]> git.saurik.com Git - wxWidgets.git/blame - configure
Added screen locking code to popup window for X11.
[wxWidgets.git] / configure
CommitLineData
a848cd7e
SC
1#! /bin/sh
2# From configure.in Id: configure.in.
3# Guess values for system-dependent variables and create Makefiles.
7714864e 4# Generated by GNU Autoconf 2.59 for wxWidgets 2.5.3.
a848cd7e 5#
77ffb593 6# Report bugs to <wx-dev@lists.wxwidgets.org>.
a848cd7e 7#
ac1cb8d3 8# Copyright (C) 2003 Free Software Foundation, Inc.
a848cd7e
SC
9# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
11## --------------------- ##
12## M4sh Initialization. ##
13## --------------------- ##
14
15# Be Bourne compatible
16if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17 emulate sh
18 NULLCMD=:
19 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20 # is contrary to our usage. Disable this feature.
21 alias -g '${1+"$@"}'='"$@"'
22elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
23 set -o posix
24fi
ac1cb8d3 25DUALCASE=1; export DUALCASE # for MKS sh
a848cd7e
SC
26
27# Support unset when possible.
ac1cb8d3 28if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
a848cd7e
SC
29 as_unset=unset
30else
31 as_unset=false
32fi
33
34
35# Work around bugs in pre-3.0 UWIN ksh.
36$as_unset ENV MAIL MAILPATH
37PS1='$ '
38PS2='> '
39PS4='+ '
40
41# NLS nuisances.
42for as_var in \
43 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
44 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
45 LC_TELEPHONE LC_TIME
46do
ac1cb8d3 47 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
a848cd7e
SC
48 eval $as_var=C; export $as_var
49 else
50 $as_unset $as_var
51 fi
52done
53
54# Required to use basename.
55if expr a : '\(a\)' >/dev/null 2>&1; then
56 as_expr=expr
57else
58 as_expr=false
59fi
60
61if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
62 as_basename=basename
63else
64 as_basename=false
65fi
66
67
68# Name of the executable.
69as_me=`$as_basename "$0" ||
70$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
71 X"$0" : 'X\(//\)$' \| \
72 X"$0" : 'X\(/\)$' \| \
73 . : '\(.\)' 2>/dev/null ||
74echo X/"$0" |
75 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
76 /^X\/\(\/\/\)$/{ s//\1/; q; }
77 /^X\/\(\/\).*/{ s//\1/; q; }
78 s/.*/./; q'`
79
80
81# PATH needs CR, and LINENO needs CR and PATH.
82# Avoid depending upon Character Ranges.
83as_cr_letters='abcdefghijklmnopqrstuvwxyz'
84as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
85as_cr_Letters=$as_cr_letters$as_cr_LETTERS
86as_cr_digits='0123456789'
87as_cr_alnum=$as_cr_Letters$as_cr_digits
88
89# The user is always right.
90if test "${PATH_SEPARATOR+set}" != set; then
91 echo "#! /bin/sh" >conf$$.sh
92 echo "exit 0" >>conf$$.sh
93 chmod +x conf$$.sh
94 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
95 PATH_SEPARATOR=';'
96 else
97 PATH_SEPARATOR=:
98 fi
99 rm -f conf$$.sh
100fi
101
102
103 as_lineno_1=$LINENO
104 as_lineno_2=$LINENO
105 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
106 test "x$as_lineno_1" != "x$as_lineno_2" &&
107 test "x$as_lineno_3" = "x$as_lineno_2" || {
108 # Find who we are. Look in the path if we contain no path at all
109 # relative or not.
110 case $0 in
111 *[\\/]* ) as_myself=$0 ;;
112 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
113for as_dir in $PATH
114do
115 IFS=$as_save_IFS
116 test -z "$as_dir" && as_dir=.
117 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
118done
119
120 ;;
121 esac
122 # We did not find ourselves, most probably we were run as `sh COMMAND'
123 # in which case we are not to be found in the path.
124 if test "x$as_myself" = x; then
125 as_myself=$0
126 fi
127 if test ! -f "$as_myself"; then
128 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
129 { (exit 1); exit 1; }; }
130 fi
131 case $CONFIG_SHELL in
132 '')
133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
134for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
135do
136 IFS=$as_save_IFS
137 test -z "$as_dir" && as_dir=.
138 for as_base in sh bash ksh sh5; do
139 case $as_dir in
140 /*)
141 if ("$as_dir/$as_base" -c '
142 as_lineno_1=$LINENO
143 as_lineno_2=$LINENO
144 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
145 test "x$as_lineno_1" != "x$as_lineno_2" &&
146 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
147 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
148 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
149 CONFIG_SHELL=$as_dir/$as_base
150 export CONFIG_SHELL
151 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
152 fi;;
153 esac
154 done
155done
156;;
157 esac
158
159 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
160 # uniformly replaced by the line number. The first 'sed' inserts a
161 # line-number line before each line; the second 'sed' does the real
162 # work. The second script uses 'N' to pair each line-number line
163 # with the numbered line, and appends trailing '-' during
164 # substitution so that $LINENO is not a special case at line end.
165 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
166 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
167 sed '=' <$as_myself |
168 sed '
169 N
170 s,$,-,
171 : loop
172 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
173 t loop
174 s,-$,,
175 s,^['$as_cr_digits']*\n,,
176 ' >$as_me.lineno &&
177 chmod +x $as_me.lineno ||
178 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
179 { (exit 1); exit 1; }; }
180
181 # Don't try to exec as it changes $[0], causing all sort of problems
182 # (the dirname of $[0] is not the place where we might find the
183 # original and so on. Autoconf is especially sensible to this).
184 . ./$as_me.lineno
185 # Exit status is that of the last command.
186 exit
187}
188
189
190case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
191 *c*,-n*) ECHO_N= ECHO_C='
192' ECHO_T=' ' ;;
193 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
194 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
195esac
196
197if expr a : '\(a\)' >/dev/null 2>&1; then
198 as_expr=expr
199else
200 as_expr=false
201fi
202
203rm -f conf$$ conf$$.exe conf$$.file
204echo >conf$$.file
205if ln -s conf$$.file conf$$ 2>/dev/null; then
206 # We could just check for DJGPP; but this test a) works b) is more generic
207 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
208 if test -f conf$$.exe; then
209 # Don't use ln at all; we don't have any links
210 as_ln_s='cp -p'
211 else
212 as_ln_s='ln -s'
213 fi
214elif ln conf$$.file conf$$ 2>/dev/null; then
215 as_ln_s=ln
216else
217 as_ln_s='cp -p'
218fi
219rm -f conf$$ conf$$.exe conf$$.file
220
221if mkdir -p . 2>/dev/null; then
222 as_mkdir_p=:
223else
ac1cb8d3 224 test -d ./-p && rmdir ./-p
a848cd7e
SC
225 as_mkdir_p=false
226fi
227
228as_executable_p="test -f"
229
230# Sed expression to map a string onto a valid CPP name.
ac1cb8d3 231as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
a848cd7e
SC
232
233# Sed expression to map a string onto a valid variable name.
ac1cb8d3 234as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
a848cd7e
SC
235
236
237# IFS
238# We need space, tab and new line, in precisely that order.
239as_nl='
240'
241IFS=" $as_nl"
242
243# CDPATH.
244$as_unset CDPATH
245
246
247# Name of the host.
248# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
249# so uname gets run too.
250ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
251
252exec 6>&1
253
254#
255# Initializations.
256#
257ac_default_prefix=/usr/local
258ac_config_libobj_dir=.
259cross_compiling=no
260subdirs=
261MFLAGS=
262MAKEFLAGS=
263SHELL=${CONFIG_SHELL-/bin/sh}
264
265# Maximum number of lines to put in a shell here document.
266# This variable seems obsolete. It should probably be removed, and
267# only ac_max_sed_lines should be used.
268: ${ac_max_here_lines=38}
269
270# Identity of this package.
77ffb593
JS
271PACKAGE_NAME='wxWidgets'
272PACKAGE_TARNAME='wxwidgets'
7714864e
RL
273PACKAGE_VERSION='2.5.3'
274PACKAGE_STRING='wxWidgets 2.5.3'
77ffb593 275PACKAGE_BUGREPORT='wx-dev@lists.wxwidgets.org'
a848cd7e
SC
276
277ac_unique_file="wx-config.in"
278# Factoring default headers for most tests.
279ac_includes_default="\
280#include <stdio.h>
281#if HAVE_SYS_TYPES_H
282# include <sys/types.h>
283#endif
284#if HAVE_SYS_STAT_H
285# include <sys/stat.h>
286#endif
287#if STDC_HEADERS
288# include <stdlib.h>
289# include <stddef.h>
290#else
291# if HAVE_STDLIB_H
292# include <stdlib.h>
293# endif
294#endif
295#if HAVE_STRING_H
296# if !STDC_HEADERS && HAVE_MEMORY_H
297# include <memory.h>
298# endif
299# include <string.h>
300#endif
301#if HAVE_STRINGS_H
302# include <strings.h>
303#endif
304#if HAVE_INTTYPES_H
305# include <inttypes.h>
306#else
307# if HAVE_STDINT_H
308# include <stdint.h>
309# endif
310#endif
311#if HAVE_UNISTD_H
312# include <unistd.h>
313#endif"
314
315ac_subdirs_all="$ac_subdirs_all src/expat"
1e6eb025 316ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP EGREP CXX CXXFLAGS ac_ct_CXX RANLIB ac_ct_RANLIB AR INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA STRIP IF_GNU_MAKE LN_S CXXCPP subdirs PKG_CONFIG GTK_CFLAGS GTK_LIBS GTK_CONFIG X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS PANGOX_CFLAGS PANGOX_LIBS PANGOFT2_CFLAGS PANGOFT2_LIBS PANGOXFT_CFLAGS PANGOXFT_LIBS RESCOMP DEREZ SETFILE LIBICONV EXTRALIBS_ESD SDL_CONFIG SDL_CFLAGS SDL_LIBS LIBGNOMEPRINTUI_CFLAGS LIBGNOMEPRINTUI_LIBS CORE_BASE_LIBS CORE_GUI_LIBS wxUSE_ZLIB wxUSE_REGEX wxUSE_EXPAT wxUSE_ODBC wxUSE_LIBJPEG wxUSE_LIBPNG wxUSE_LIBTIFF VENDOR OFFICIAL_BUILD WX_FLAVOUR WX_LIB_FLAVOUR WXUNIV MONOLITHIC USE_PLUGINS EXTRALIBS EXTRALIBS_XML EXTRALIBS_HTML EXTRALIBS_ODBC EXTRALIBS_GUI EXTRALIBS_OPENGL EXTRALIBS_SDL WITH_PLUGIN_SDL EXTRALIBS_GNOMEPRINT UNICODE BUILD DEBUG_INFO DEBUG_FLAG TOOLKIT_LOWERCASE TOOLKIT_VERSION SAMPLES_RPATH_FLAG SAMPLES_RPATH_POSTLINK HOST_SUFFIX CPPUNIT_CFLAGS CPPUNIT_LIBS SET_MAKE MAKE_SET ac_ct_AR ac_ct_STRIP NM ac_ct_NM INSTALL_DIR LDFLAGS_GUI PLATFORM_UNIX PLATFORM_WIN32 PLATFORM_MSDOS PLATFORM_MAC PLATFORM_MACOS PLATFORM_MACOSX PLATFORM_OS2 PLATFORM_BEOS SO_SUFFIX SO_SUFFIX_MODULE DLLIMP_SUFFIX LIBPREFIX LIBEXT DLLPREFIX DLLPREFIX_MODULE AIX_CXX_LD SHARED_LD_CC SHARED_LD_CXX SHARED_LD_MODULE_CC SHARED_LD_MODULE_CXX PIC_FLAG USE_SOVERSION USE_SOVERLINUX USE_SOVERSOLARIS USE_MACVERSION USE_SOSYMLINKS SONAME_FLAG DEPS_TRACKING GCC_PCH COND_BUILD_DEBUG COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT COND_BUILD_DEBUG_UNICODE_0 COND_BUILD_DEBUG_UNICODE_1 COND_BUILD_RELEASE COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT COND_BUILD_RELEASE_UNICODE_0 COND_BUILD_RELEASE_UNICODE_1 COND_DEBUG_FLAG_1 COND_DEBUG_INFO_0 COND_DEBUG_INFO_1 COND_DEPS_TRACKING_0 COND_DEPS_TRACKING_1 COND_GCC_PCH_1 COND_MONOLITHIC_0 COND_MONOLITHIC_0_SHARED_0 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1 COND_MONOLITHIC_0_SHARED_0_USE_XRC_1 COND_MONOLITHIC_0_SHARED_1 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1 COND_MONOLITHIC_0_SHARED_1_USE_XRC_1 COND_MONOLITHIC_0_USE_ODBC_1 COND_MONOLITHIC_1 COND_MONOLITHIC_1_SHARED_0 COND_MONOLITHIC_1_SHARED_1 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1 COND_PLATFORM_MACOSX_1 COND_PLATFORM_MACOSX_1_TOOLKIT_ COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA COND_PLATFORM_MACOSX_1_TOOLKIT_GTK COND_PLATFORM_MACOSX_1_TOOLKIT_MAC COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0 COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF COND_PLATFORM_MACOSX_1_TOOLKIT_X11 COND_PLATFORM_MACOSX_1_USE_GUI_1 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1 COND_PLATFORM_MACOS_1 COND_PLATFORM_MAC_1 COND_PLATFORM_OS2_1 COND_PLATFORM_UNIX_0 COND_PLATFORM_UNIX_1 COND_PLATFORM_UNIX_1_USE_GUI_1 COND_PLATFORM_UNIX_1_USE_PLUGINS_0 COND_PLATFORM_WIN32_0 COND_PLATFORM_WIN32_1 COND_SHARED_0 COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0 COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0 COND_SHARED_0_TOOLKIT_PM_WXUNIV_0 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN COND_SHARED_0_WXUSE_EXPAT_BUILTIN COND_SHARED_0_WXUSE_ODBC_BUILTIN COND_SHARED_0_WXUSE_REGEX_BUILTIN COND_SHARED_0_WXUSE_ZLIB_BUILTIN COND_SHARED_1 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1 COND_TOOLKIT_ COND_TOOLKIT_COCOA COND_TOOLKIT_COCOA_USE_GUI_1 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_GTK COND_TOOLKIT_GTK_USE_GUI_1 COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_MAC COND_TOOLKIT_MAC_USE_GUI_1 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_MGL COND_TOOLKIT_MGL_USE_GUI_1 COND_TOOLKIT_MOTIF COND_TOOLKIT_MOTIF_USE_GUI_1 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_MSW COND_TOOLKIT_MSW_USE_GUI_1 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_PM COND_TOOLKIT_PM_USE_GUI_1 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_WINCE COND_TOOLKIT_WINCE_USE_GUI_1 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_X11 COND_TOOLKIT_X11_USE_GUI_1 COND_UNICODE_1 COND_USE_EXCEPTIONS_0 COND_USE_EXCEPTIONS_1 COND_USE_GUI_0 COND_USE_GUI_1 COND_USE_GUI_1_WXUNIV_0 COND_USE_GUI_1_WXUNIV_1 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN COND_USE_ODBC_1 COND_USE_OPENGL_1 COND_USE_PLUGINS_0 COND_USE_SOSYMLINKS_1 COND_USE_SOVERLINUX_1 COND_USE_SOVERSION_0 COND_USE_SOVERSOLARIS_1 COND_USE_XRC_1 COND_WITH_PLUGIN_SDL_1 COND_WXUNIV_0 COND_WXUNIV_1 COND_WXUSE_EXPAT_BUILTIN COND_WXUSE_LIBJPEG_BUILTIN COND_WXUSE_LIBPNG_BUILTIN COND_WXUSE_LIBTIFF_BUILTIN COND_WXUSE_ODBC_BUILTIN COND_WXUSE_REGEX_BUILTIN COND_WXUSE_ZLIB_BUILTIN SHARED WX_LIBRARY_BASENAME_NOGUI WX_LIBRARY_BASENAME_GUI WXDEBUG_DEFINE USE_GUI AFMINSTALL WIN32INSTALL TOOLKIT TOOLKIT_DIR TOOLCHAIN_NAME TOOLCHAIN_FULLNAME TOOLCHAIN_DEFS TOOLCHAIN_DLL_DEFS cross_compiling WIDGET_SET WX_RELEASE WX_VERSION WX_SUBVERSION WX_CHARTYPE WX_DEBUGTYPE WXCONFIG_EXTRALIBS WXCONFIG_INCLUDE WXCONFIG_RPATH WXCONFIG_LDFLAGS_GUI WX_LARGEFILE_FLAGS GCC_PRAGMA_FLAGS CODE_GEN_FLAGS CODE_GEN_FLAGS_CXX EXE_LINKER GUIDIST DISTDIR SAMPLES_SUBDIRS LDFLAGS_GL OPENGL_LIBS DMALLOC_LIBS WX_VERSION_TAG RESFLAGS RESPROGRAMOBJ WX_RESOURCES_MACOSX_ASCII WX_RESOURCES_MACOSX_DATA LIBWXMACRES MACRESCOMP MACSETFILE MACRESWXCONFIG GCC DLLTOOL CPPUNIT_CONFIG LIBOBJS LTLIBOBJS'
a848cd7e
SC
317ac_subst_files=''
318
319# Initialize some variables set by options.
320ac_init_help=
321ac_init_version=false
322# The variables have the same names as the options, with
323# dashes changed to underlines.
324cache_file=/dev/null
325exec_prefix=NONE
326no_create=
327no_recursion=
328prefix=NONE
329program_prefix=NONE
330program_suffix=NONE
331program_transform_name=s,x,x,
332silent=
333site=
334srcdir=
335verbose=
336x_includes=NONE
337x_libraries=NONE
338
339# Installation directory options.
340# These are left unexpanded so users can "make install exec_prefix=/foo"
341# and all the variables that are supposed to be based on exec_prefix
342# by default will actually change.
343# Use braces instead of parens because sh, perl, etc. also accept them.
344bindir='${exec_prefix}/bin'
345sbindir='${exec_prefix}/sbin'
346libexecdir='${exec_prefix}/libexec'
347datadir='${prefix}/share'
348sysconfdir='${prefix}/etc'
349sharedstatedir='${prefix}/com'
350localstatedir='${prefix}/var'
351libdir='${exec_prefix}/lib'
352includedir='${prefix}/include'
353oldincludedir='/usr/include'
354infodir='${prefix}/info'
355mandir='${prefix}/man'
356
357ac_prev=
358for ac_option
359do
360 # If the previous option needs an argument, assign it.
361 if test -n "$ac_prev"; then
362 eval "$ac_prev=\$ac_option"
363 ac_prev=
364 continue
365 fi
366
367 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
368
369 # Accept the important Cygnus configure options, so we can diagnose typos.
370
371 case $ac_option in
372
373 -bindir | --bindir | --bindi | --bind | --bin | --bi)
374 ac_prev=bindir ;;
375 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
376 bindir=$ac_optarg ;;
377
378 -build | --build | --buil | --bui | --bu)
379 ac_prev=build_alias ;;
380 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
381 build_alias=$ac_optarg ;;
382
383 -cache-file | --cache-file | --cache-fil | --cache-fi \
384 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
385 ac_prev=cache_file ;;
386 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
387 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
388 cache_file=$ac_optarg ;;
389
390 --config-cache | -C)
391 cache_file=config.cache ;;
392
393 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
394 ac_prev=datadir ;;
395 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
396 | --da=*)
397 datadir=$ac_optarg ;;
398
399 -disable-* | --disable-*)
400 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
401 # Reject names that are not valid shell variable names.
402 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
403 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
404 { (exit 1); exit 1; }; }
405 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
406 eval "enable_$ac_feature=no" ;;
407
408 -enable-* | --enable-*)
409 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
410 # Reject names that are not valid shell variable names.
411 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
412 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
413 { (exit 1); exit 1; }; }
414 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
415 case $ac_option in
416 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
417 *) ac_optarg=yes ;;
418 esac
419 eval "enable_$ac_feature='$ac_optarg'" ;;
420
421 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
422 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
423 | --exec | --exe | --ex)
424 ac_prev=exec_prefix ;;
425 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
426 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
427 | --exec=* | --exe=* | --ex=*)
428 exec_prefix=$ac_optarg ;;
429
430 -gas | --gas | --ga | --g)
431 # Obsolete; use --with-gas.
432 with_gas=yes ;;
433
434 -help | --help | --hel | --he | -h)
435 ac_init_help=long ;;
436 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
437 ac_init_help=recursive ;;
438 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
439 ac_init_help=short ;;
440
441 -host | --host | --hos | --ho)
442 ac_prev=host_alias ;;
443 -host=* | --host=* | --hos=* | --ho=*)
444 host_alias=$ac_optarg ;;
445
446 -includedir | --includedir | --includedi | --included | --include \
447 | --includ | --inclu | --incl | --inc)
448 ac_prev=includedir ;;
449 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
450 | --includ=* | --inclu=* | --incl=* | --inc=*)
451 includedir=$ac_optarg ;;
452
453 -infodir | --infodir | --infodi | --infod | --info | --inf)
454 ac_prev=infodir ;;
455 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
456 infodir=$ac_optarg ;;
457
458 -libdir | --libdir | --libdi | --libd)
459 ac_prev=libdir ;;
460 -libdir=* | --libdir=* | --libdi=* | --libd=*)
461 libdir=$ac_optarg ;;
462
463 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
464 | --libexe | --libex | --libe)
465 ac_prev=libexecdir ;;
466 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
467 | --libexe=* | --libex=* | --libe=*)
468 libexecdir=$ac_optarg ;;
469
470 -localstatedir | --localstatedir | --localstatedi | --localstated \
471 | --localstate | --localstat | --localsta | --localst \
472 | --locals | --local | --loca | --loc | --lo)
473 ac_prev=localstatedir ;;
474 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
475 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
476 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
477 localstatedir=$ac_optarg ;;
478
479 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
480 ac_prev=mandir ;;
481 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
482 mandir=$ac_optarg ;;
483
484 -nfp | --nfp | --nf)
485 # Obsolete; use --without-fp.
486 with_fp=no ;;
487
488 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
489 | --no-cr | --no-c | -n)
490 no_create=yes ;;
491
492 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
493 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
494 no_recursion=yes ;;
495
496 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
497 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
498 | --oldin | --oldi | --old | --ol | --o)
499 ac_prev=oldincludedir ;;
500 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
501 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
502 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
503 oldincludedir=$ac_optarg ;;
504
505 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
506 ac_prev=prefix ;;
507 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
508 prefix=$ac_optarg ;;
509
510 -program-prefix | --program-prefix | --program-prefi | --program-pref \
511 | --program-pre | --program-pr | --program-p)
512 ac_prev=program_prefix ;;
513 -program-prefix=* | --program-prefix=* | --program-prefi=* \
514 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
515 program_prefix=$ac_optarg ;;
516
517 -program-suffix | --program-suffix | --program-suffi | --program-suff \
518 | --program-suf | --program-su | --program-s)
519 ac_prev=program_suffix ;;
520 -program-suffix=* | --program-suffix=* | --program-suffi=* \
521 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
522 program_suffix=$ac_optarg ;;
523
524 -program-transform-name | --program-transform-name \
525 | --program-transform-nam | --program-transform-na \
526 | --program-transform-n | --program-transform- \
527 | --program-transform | --program-transfor \
528 | --program-transfo | --program-transf \
529 | --program-trans | --program-tran \
530 | --progr-tra | --program-tr | --program-t)
531 ac_prev=program_transform_name ;;
532 -program-transform-name=* | --program-transform-name=* \
533 | --program-transform-nam=* | --program-transform-na=* \
534 | --program-transform-n=* | --program-transform-=* \
535 | --program-transform=* | --program-transfor=* \
536 | --program-transfo=* | --program-transf=* \
537 | --program-trans=* | --program-tran=* \
538 | --progr-tra=* | --program-tr=* | --program-t=*)
539 program_transform_name=$ac_optarg ;;
540
541 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
542 | -silent | --silent | --silen | --sile | --sil)
543 silent=yes ;;
544
545 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
546 ac_prev=sbindir ;;
547 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
548 | --sbi=* | --sb=*)
549 sbindir=$ac_optarg ;;
550
551 -sharedstatedir | --sharedstatedir | --sharedstatedi \
552 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
553 | --sharedst | --shareds | --shared | --share | --shar \
554 | --sha | --sh)
555 ac_prev=sharedstatedir ;;
556 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
557 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
558 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
559 | --sha=* | --sh=*)
560 sharedstatedir=$ac_optarg ;;
561
562 -site | --site | --sit)
563 ac_prev=site ;;
564 -site=* | --site=* | --sit=*)
565 site=$ac_optarg ;;
566
567 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
568 ac_prev=srcdir ;;
569 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
570 srcdir=$ac_optarg ;;
571
572 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
573 | --syscon | --sysco | --sysc | --sys | --sy)
574 ac_prev=sysconfdir ;;
575 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
576 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
577 sysconfdir=$ac_optarg ;;
578
579 -target | --target | --targe | --targ | --tar | --ta | --t)
580 ac_prev=target_alias ;;
581 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
582 target_alias=$ac_optarg ;;
583
584 -v | -verbose | --verbose | --verbos | --verbo | --verb)
585 verbose=yes ;;
586
587 -version | --version | --versio | --versi | --vers | -V)
588 ac_init_version=: ;;
589
590 -with-* | --with-*)
591 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
592 # Reject names that are not valid shell variable names.
593 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
594 { echo "$as_me: error: invalid package name: $ac_package" >&2
595 { (exit 1); exit 1; }; }
596 ac_package=`echo $ac_package| sed 's/-/_/g'`
597 case $ac_option in
598 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
599 *) ac_optarg=yes ;;
600 esac
601 eval "with_$ac_package='$ac_optarg'" ;;
602
603 -without-* | --without-*)
604 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
605 # Reject names that are not valid shell variable names.
606 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
607 { echo "$as_me: error: invalid package name: $ac_package" >&2
608 { (exit 1); exit 1; }; }
609 ac_package=`echo $ac_package | sed 's/-/_/g'`
610 eval "with_$ac_package=no" ;;
611
612 --x)
613 # Obsolete; use --with-x.
614 with_x=yes ;;
615
616 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
617 | --x-incl | --x-inc | --x-in | --x-i)
618 ac_prev=x_includes ;;
619 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
620 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
621 x_includes=$ac_optarg ;;
622
623 -x-libraries | --x-libraries | --x-librarie | --x-librari \
624 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
625 ac_prev=x_libraries ;;
626 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
627 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
628 x_libraries=$ac_optarg ;;
629
630 -*) { echo "$as_me: error: unrecognized option: $ac_option
631Try \`$0 --help' for more information." >&2
632 { (exit 1); exit 1; }; }
633 ;;
634
635 *=*)
636 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
637 # Reject names that are not valid shell variable names.
638 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
639 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
640 { (exit 1); exit 1; }; }
641 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
642 eval "$ac_envvar='$ac_optarg'"
643 export $ac_envvar ;;
644
645 *)
646 # FIXME: should be removed in autoconf 3.0.
647 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
648 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
649 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
650 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
651 ;;
652
653 esac
654done
655
656if test -n "$ac_prev"; then
657 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
658 { echo "$as_me: error: missing argument to $ac_option" >&2
659 { (exit 1); exit 1; }; }
660fi
661
662# Be sure to have absolute paths.
663for ac_var in exec_prefix prefix
664do
665 eval ac_val=$`echo $ac_var`
666 case $ac_val in
667 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
668 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
669 { (exit 1); exit 1; }; };;
670 esac
671done
672
673# Be sure to have absolute paths.
674for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
ac1cb8d3 675 localstatedir libdir includedir oldincludedir infodir mandir
a848cd7e
SC
676do
677 eval ac_val=$`echo $ac_var`
678 case $ac_val in
679 [\\/$]* | ?:[\\/]* ) ;;
680 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
681 { (exit 1); exit 1; }; };;
682 esac
683done
684
685# There might be people who depend on the old broken behavior: `$host'
686# used to hold the argument of --host etc.
687# FIXME: To remove some day.
688build=$build_alias
689host=$host_alias
690target=$target_alias
691
692# FIXME: To remove some day.
693if test "x$host_alias" != x; then
694 if test "x$build_alias" = x; then
695 cross_compiling=maybe
696 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
697 If a cross compiler is detected then cross compile mode will be used." >&2
698 elif test "x$build_alias" != "x$host_alias"; then
699 cross_compiling=yes
700 fi
701fi
702
703ac_tool_prefix=
704test -n "$host_alias" && ac_tool_prefix=$host_alias-
705
706test "$silent" = yes && exec 6>/dev/null
707
708
709# Find the source files, if location was not specified.
710if test -z "$srcdir"; then
711 ac_srcdir_defaulted=yes
712 # Try the directory containing this script, then its parent.
713 ac_confdir=`(dirname "$0") 2>/dev/null ||
714$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
715 X"$0" : 'X\(//\)[^/]' \| \
716 X"$0" : 'X\(//\)$' \| \
717 X"$0" : 'X\(/\)' \| \
718 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
719echo X"$0" |
720 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
721 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
722 /^X\(\/\/\)$/{ s//\1/; q; }
723 /^X\(\/\).*/{ s//\1/; q; }
724 s/.*/./; q'`
725 srcdir=$ac_confdir
726 if test ! -r $srcdir/$ac_unique_file; then
727 srcdir=..
728 fi
729else
730 ac_srcdir_defaulted=no
731fi
732if test ! -r $srcdir/$ac_unique_file; then
733 if test "$ac_srcdir_defaulted" = yes; then
734 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
735 { (exit 1); exit 1; }; }
736 else
737 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
738 { (exit 1); exit 1; }; }
739 fi
740fi
741(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
742 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
743 { (exit 1); exit 1; }; }
744srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
745ac_env_build_alias_set=${build_alias+set}
746ac_env_build_alias_value=$build_alias
747ac_cv_env_build_alias_set=${build_alias+set}
748ac_cv_env_build_alias_value=$build_alias
749ac_env_host_alias_set=${host_alias+set}
750ac_env_host_alias_value=$host_alias
751ac_cv_env_host_alias_set=${host_alias+set}
752ac_cv_env_host_alias_value=$host_alias
753ac_env_target_alias_set=${target_alias+set}
754ac_env_target_alias_value=$target_alias
755ac_cv_env_target_alias_set=${target_alias+set}
756ac_cv_env_target_alias_value=$target_alias
757ac_env_CC_set=${CC+set}
758ac_env_CC_value=$CC
759ac_cv_env_CC_set=${CC+set}
760ac_cv_env_CC_value=$CC
761ac_env_CFLAGS_set=${CFLAGS+set}
762ac_env_CFLAGS_value=$CFLAGS
763ac_cv_env_CFLAGS_set=${CFLAGS+set}
764ac_cv_env_CFLAGS_value=$CFLAGS
765ac_env_LDFLAGS_set=${LDFLAGS+set}
766ac_env_LDFLAGS_value=$LDFLAGS
767ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
768ac_cv_env_LDFLAGS_value=$LDFLAGS
769ac_env_CPPFLAGS_set=${CPPFLAGS+set}
770ac_env_CPPFLAGS_value=$CPPFLAGS
771ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
772ac_cv_env_CPPFLAGS_value=$CPPFLAGS
773ac_env_CPP_set=${CPP+set}
774ac_env_CPP_value=$CPP
775ac_cv_env_CPP_set=${CPP+set}
776ac_cv_env_CPP_value=$CPP
777ac_env_CXX_set=${CXX+set}
778ac_env_CXX_value=$CXX
779ac_cv_env_CXX_set=${CXX+set}
780ac_cv_env_CXX_value=$CXX
781ac_env_CXXFLAGS_set=${CXXFLAGS+set}
782ac_env_CXXFLAGS_value=$CXXFLAGS
783ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
784ac_cv_env_CXXFLAGS_value=$CXXFLAGS
785ac_env_CXXCPP_set=${CXXCPP+set}
786ac_env_CXXCPP_value=$CXXCPP
787ac_cv_env_CXXCPP_set=${CXXCPP+set}
788ac_cv_env_CXXCPP_value=$CXXCPP
789
790#
791# Report the --help message.
792#
793if test "$ac_init_help" = "long"; then
794 # Omit some internal or obsolete options to make the list less imposing.
795 # This message is too long to be a string in the A/UX 3.1 sh.
796 cat <<_ACEOF
7714864e 797\`configure' configures wxWidgets 2.5.3 to adapt to many kinds of systems.
a848cd7e
SC
798
799Usage: $0 [OPTION]... [VAR=VALUE]...
800
801To assign environment variables (e.g., CC, CFLAGS...), specify them as
802VAR=VALUE. See below for descriptions of some of the useful variables.
803
804Defaults for the options are specified in brackets.
805
806Configuration:
807 -h, --help display this help and exit
808 --help=short display options specific to this package
809 --help=recursive display the short help of all the included packages
810 -V, --version display version information and exit
811 -q, --quiet, --silent do not print \`checking...' messages
812 --cache-file=FILE cache test results in FILE [disabled]
813 -C, --config-cache alias for \`--cache-file=config.cache'
814 -n, --no-create do not create output files
815 --srcdir=DIR find the sources in DIR [configure dir or \`..']
816
817_ACEOF
818
819 cat <<_ACEOF
820Installation directories:
821 --prefix=PREFIX install architecture-independent files in PREFIX
ac1cb8d3 822 [$ac_default_prefix]
a848cd7e 823 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
ac1cb8d3 824 [PREFIX]
a848cd7e
SC
825
826By default, \`make install' will install all the files in
827\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
828an installation prefix other than \`$ac_default_prefix' using \`--prefix',
829for instance \`--prefix=\$HOME'.
830
831For better control, use the options below.
832
833Fine tuning of the installation directories:
834 --bindir=DIR user executables [EPREFIX/bin]
835 --sbindir=DIR system admin executables [EPREFIX/sbin]
836 --libexecdir=DIR program executables [EPREFIX/libexec]
837 --datadir=DIR read-only architecture-independent data [PREFIX/share]
838 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
839 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
840 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
841 --libdir=DIR object code libraries [EPREFIX/lib]
842 --includedir=DIR C header files [PREFIX/include]
843 --oldincludedir=DIR C header files for non-gcc [/usr/include]
844 --infodir=DIR info documentation [PREFIX/info]
845 --mandir=DIR man documentation [PREFIX/man]
846_ACEOF
847
848 cat <<\_ACEOF
849
850X features:
851 --x-includes=DIR X include files are in DIR
852 --x-libraries=DIR X library files are in DIR
853
854System types:
855 --build=BUILD configure for building on BUILD [guessed]
856 --host=HOST cross-compile to build programs to run on HOST [BUILD]
857 --target=TARGET configure for building compilers for TARGET [HOST]
858_ACEOF
859fi
860
861if test -n "$ac_init_help"; then
862 case $ac_init_help in
7714864e 863 short | recursive ) echo "Configuration of wxWidgets 2.5.3:";;
a848cd7e
SC
864 esac
865 cat <<\_ACEOF
866
867Optional Features:
868 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
869 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
870 --enable-gui use GUI classes
77ffb593
JS
871 --enable-monolithic build wxWidgets as single library
872 --enable-plugins build parts of wxWidgets as loadable components
873 --enable-universal use wxWidgets GUI controls instead of native ones
a848cd7e 874 --enable-nanox use NanoX
9f45f08e 875 --disable-gtk2 use GTK+ 1.2 instead of 2.0
a848cd7e
SC
876 --enable-gpe use GNOME PDA Environment features if possible
877 --enable-shared create shared library code
878 --enable-optimise create optimised code
879 --enable-debug same as debug_flag and debug_info
880 --enable-stl use STL for containers
881 --enable-omf use OMF object format
882 --enable-debug_flag set __WXDEBUG__ flag (recommended for developers!)
883 --enable-debug_info create code with debugging information
884 --enable-debug_gdb create code with extra GDB debugging information
885 --enable-debug_cntxt use wxDebugContext
886 --enable-mem_tracing create code with memory tracing
887 --enable-profile create code with profiling information
888 --enable-no_rtti create code without RTTI information
889 --enable-no_exceptions create code without C++ exceptions handling
890 --enable-permissive compile code disregarding strict ANSI
891 --enable-no_deps create code without dependency information
77ffb593
JS
892 --enable-compat22 enable wxWidgets 2.2 compatibility
893 --disable-compat24 disable wxWidgets 2.4 compatibility
ffa0583f 894 --disable-rpath disable use of rpath for uninstalled builds
a848cd7e
SC
895 --enable-intl use internationalization system
896 --enable-config use wxConfig (and derived) classes
897 --enable-protocols use wxProtocol and derived classes
898 --enable-ftp use wxFTP (requires wxProtocol
899 --enable-http use wxHTTP (requires wxProtocol
900 --enable-fileproto use wxFileProto class (requires wxProtocol
901 --enable-sockets use socket/network classes
902 --enable-ole use OLE classes (Win32 only)
903 --enable-dataobj use data object classes
904 --enable-ipc use interprocess communication (wxSocket etc.)
905 --enable-apple_ieee use the Apple IEEE codec
906 --enable-catch_segvs catch signals in wxApp::OnFatalException (Unix only)
eaff0f0d 907 --enable-backtrace use wxStackWalker class for getting backtraces
a848cd7e
SC
908 --enable-cmdline use wxCmdLineParser class
909 --enable-datetime use wxDateTime class
910 --enable-dialupman use dialup network classes
911 --enable-dynlib use wxLibrary class for DLL loading
912 --enable-dynamicloader use (new) wxDynamicLibrary class
913 --enable-exceptions build exception-safe library
914 --enable-ffile use wxFFile class
915 --enable-file use wxFile class
916 --enable-filesystem use virtual file systems classes
917 --enable-fontmap use font encodings conversion classes
918 --enable-fs_inet use virtual HTTP/FTP filesystems
919 --enable-fs_zip use virtual ZIP filesystems
920 --enable-geometry use geometry class
921 --enable-log use logging system
922 --enable-longlong use wxLongLong class
923 --enable-mimetype use wxMimeTypesManager
924 --enable-mslu use MS Layer for Unicode on Windows 9x (Win32 only)
925 --enable-snglinst use wxSingleInstanceChecker class
926 --enable-streams use wxStream etc classes
927 --enable-std_iostreams use standard C++ stream classes
928 --enable-stopwatch use wxStopWatch class
929 --enable-sysoptions use wxSystemOptions
930 --enable-textbuf use wxTextBuffer class
931 --enable-textfile use wxTextFile class
932 --enable-timer use wxTimer class
933 --enable-unicode compile wxString with Unicode support
934 --enable-sound use wxSound class
3b57de8b 935 --enable-mediactrl use wxMediaCtrl class
77ffb593 936 --enable-wxprintfv use wxWidgets implementation of vprintf()
a848cd7e 937 --enable-zipstream use wxZipInputStream
a848cd7e
SC
938 --enable-url use wxURL class
939 --enable-protocol use wxProtocol class
940 --enable-protocol-http HTTP support in wxProtocol
941 --enable-protocol-ftp FTP support in wxProtocol
942 --enable-protocol-file FILE support in wxProtocol
943 --enable-threads use threads
944 --enable-docview use document view architecture
945 --enable-help use help subsystem
946 --enable-mshtmlhelp use MS HTML Help (win32)
947 --enable-html use wxHTML sub-library
948 --enable-htmlhelp use wxHTML-based help
9a8f0513 949 --enable-xrc use XRC resources sub-library
a848cd7e
SC
950 --enable-constraints use layout-constraints system
951 --enable-printarch use printing architecture
952 --enable-mdi use multiple document interface architecture
8a7b1113 953 --enable-mdidoc use docview architecture with MDI
a848cd7e
SC
954 --enable-loggui use standard GUI logger
955 --enable-logwin use wxLogWindow
956 --enable-logdialog use wxLogDialog
646b6ec1 957 --enable-webkit use wxWebKitCtrl (Mac)
a848cd7e
SC
958 --enable-postscript use wxPostscriptDC device context (default for gtk+)
959 --enable-prologio not available; see contrib
960 --enable-resources not available; see contrib
961 --enable-clipboard use wxClipboard class
962 --enable-dnd use Drag'n'Drop classes
963 --enable-metafile use win32 metafiles
964 --enable-controls use all usual controls
965 --enable-accel use accelerators
966 --enable-button use wxButton class
967 --enable-bmpbutton use wxBitmapButton class
968 --enable-calendar use wxCalendarCtrl class
969 --enable-caret use wxCaret class
970 --enable-checkbox use wxCheckBox class
971 --enable-checklst use wxCheckListBox (listbox with checkboxes) class
972 --enable-choice use wxChoice class
92bbdbcd 973 --enable-choicebook use wxChoicebook class
a848cd7e 974 --enable-combobox use wxComboBox class
da98e9be 975 --enable-datepick use wxDatePickerCtrl class
a848cd7e
SC
976 --enable-display use wxDisplay class
977 --enable-gauge use wxGauge class
978 --enable-grid use wxGrid class
979 --enable-imaglist use wxImageList class
980 --enable-listbook use wxListbook class
981 --enable-listbox use wxListBox class
982 --enable-listctrl use wxListCtrl class
983 --enable-notebook use wxNotebook class
984 --enable-radiobox use wxRadioBox class
985 --enable-radiobtn use wxRadioButton class
986 --enable-sash use wxSashWindow class
987 --enable-scrollbar use wxScrollBar class and scrollable windows
988 --enable-slider use wxSlider class
989 --enable-spinbtn use wxSpinButton class
990 --enable-spinctrl use wxSpinCtrl class
991 --enable-splitter use wxSplitterWindow class
992 --enable-statbmp use wxStaticBitmap class
993 --enable-statbox use wxStaticBox class
994 --enable-statline use wxStaticLine class
995 --enable-stattext use wxStaticText class
996 --enable-statusbar use wxStatusBar class
997 --enable-tabdialog use wxTabControl class
998 --enable-textctrl use wxTextCtrl class
999 --enable-togglebtn use wxToggleButton class
1000 --enable-toolbar use wxToolBar class
1001 --enable-tbarnative use native wxToolBar class
1002 --enable-tbarsmpl use wxToolBarSimple class
1003 --enable-treectrl use wxTreeCtrl class
1004 --enable-tipwindow use wxTipWindow class
1005 --enable-popupwin use wxPopUpWindow class
1006 --enable-commondlg use all common dialogs
1007 --enable-choicedlg use wxChoiceDialog
1008 --enable-coldlg use wxColourDialog
1009 --enable-filedlg use wxFileDialog
1010 --enable-finddlg use wxFindReplaceDialog
1011 --enable-fontdlg use wxFontDialog
1012 --enable-dirdlg use wxDirDialog
1013 --enable-msgdlg use wxMessageDialog
1014 --enable-numberdlg use wxNumberEntryDialog
1015 --enable-splash use wxSplashScreen
1016 --enable-textdlg use wxTextDialog
1017 --enable-tipdlg use startup tips
1018 --enable-progressdlg use wxProgressDialog
1019 --enable-wizarddlg use wxWizard
1020 --enable-menus use wxMenu/wxMenuBar/wxMenuItem classes
1021 --enable-miniframe use wxMiniFrame class
1022 --enable-tooltips use wxToolTip class
1023 --enable-splines use spline drawing code
1024 --enable-validators use wxValidator and derived classes
1025 --enable-busyinfo use wxBusyInfo
1026 --enable-joystick use wxJoystick (Linux only)
1027 --enable-metafiles use wxMetaFile (Windows only)
1028 --enable-dragimage use wxDragImage
1029 --enable-accessibility enable accessibility support
1030 --enable-palette use wxPalette class
1031 --enable-image use wxImage class
1032 --enable-gif use gif images (GIF file format)
1033 --enable-pcx use pcx images (PCX file format)
1034 --enable-iff use iff images (IFF file format)
1035 --enable-pnm use pnm images (PNM file format)
1036 --enable-xpm use xpm images (XPM file format)
1037 --enable-icocur use Windows ICO and CUR formats
77ffb593 1038 --enable-official_build official build of wxWidgets (win32 DLL only)
a848cd7e
SC
1039 --enable-vendor=VENDOR vendor name (win32 DLL only)
1040 --disable-largefile omit support for large files
1041 --disable-gtktest do not try to compile and run a test GTK+ program
1042 --disable-gtktest Do not try to compile and run a test GTK program
1043 --disable-sdltest Do not try to compile and run a test SDL program
1044 --enable-omf use OMF object format (OS/2)
ebee3cd0
VS
1045 --disable-precomp-headers
1046 don't use precompiled headers even if compiler can
a848cd7e
SC
1047
1048Optional Packages:
1049 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1050 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1051 --with-gtk use GTK+
1052 --with-motif use Motif/Lesstif
1053 --with-mac use Mac OS X
1054 --with-cocoa use Cocoa
1055 --with-wine use Wine
1056 --with-msw use MS-Windows
1057 --with-pm use OS/2 Presentation Manager
1058 --with-mgl use SciTech MGL
1059 --with-microwin use MicroWindows
1060 --with-x11 use X11
1061 --with-libpng use libpng (PNG image format)
1062 --with-libjpeg use libjpeg (JPEG file format)
1063 --with-libtiff use libtiff (TIFF file format)
1064 --with-libxpm use libxpm (XPM file format)
1065 --with-libmspack use libmspack (CHM help files loading)
1066 --with-sdl use SDL for audio on Unix
d51253e8 1067 --with-gnomeprint use GNOME print for printing under Unix
a848cd7e
SC
1068 --with-opengl use OpenGL (or Mesa)
1069 --with-dmalloc use dmalloc library (http://dmalloc.com/)
1070 --with-regex enable support for wxRegEx class
1071 --with-zlib use zlib for LZW compression
1072 --with-odbc use the IODBC and wxODBC classes
1073 --with-expat enable XML support using expat parser
ceec2216 1074 --with-flavour=NAME specify a name to identify this build
a848cd7e
SC
1075 --with-gtk-prefix=PFX Prefix where GTK is installed (optional)
1076 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)
1077 --with-x use the X Window System
1078 --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib
1079 --with-sdl-prefix=PFX Prefix where SDL is installed (optional)
1080 --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional)
1081 --with-cppunit-prefix=PFX Prefix where CppUnit is installed (optional)
1082 --with-cppunit-exec-prefix=PFX Exec prefix where CppUnit is installed (optional)
1083
1084Some influential environment variables:
dcc1b6ad
VS
1085 CC C compiler command
1086 CFLAGS C compiler flags
1087 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1088 nonstandard directory <lib dir>
1089 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1090 headers in a nonstandard directory <include dir>
1091 CPP C preprocessor
1092 CXX C++ compiler command
1093 CXXFLAGS C++ compiler flags
1094 CXXCPP C++ preprocessor
a848cd7e
SC
1095
1096Use these variables to override the choices made by `configure' or to help
1097it to find libraries and programs with nonstandard names/locations.
1098
77ffb593 1099Report bugs to <wx-dev@lists.wxwidgets.org>.
a848cd7e
SC
1100_ACEOF
1101fi
1102
1103if test "$ac_init_help" = "recursive"; then
1104 # If there are subdirs, report their specific --help.
1105 ac_popdir=`pwd`
1106 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1107 test -d $ac_dir || continue
1108 ac_builddir=.
1109
1110if test "$ac_dir" != .; then
1111 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1112 # A "../" for each directory in $ac_dir_suffix.
1113 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1114else
1115 ac_dir_suffix= ac_top_builddir=
1116fi
1117
1118case $srcdir in
1119 .) # No --srcdir option. We are building in place.
1120 ac_srcdir=.
1121 if test -z "$ac_top_builddir"; then
1122 ac_top_srcdir=.
1123 else
1124 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1125 fi ;;
1126 [\\/]* | ?:[\\/]* ) # Absolute path.
1127 ac_srcdir=$srcdir$ac_dir_suffix;
1128 ac_top_srcdir=$srcdir ;;
1129 *) # Relative path.
1130 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1131 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1132esac
ac1cb8d3
VS
1133
1134# Do not use `cd foo && pwd` to compute absolute paths, because
1135# the directories may not exist.
1136case `pwd` in
1137.) ac_abs_builddir="$ac_dir";;
1138*)
1139 case "$ac_dir" in
1140 .) ac_abs_builddir=`pwd`;;
1141 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1142 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1143 esac;;
1144esac
1145case $ac_abs_builddir in
1146.) ac_abs_top_builddir=${ac_top_builddir}.;;
1147*)
1148 case ${ac_top_builddir}. in
1149 .) ac_abs_top_builddir=$ac_abs_builddir;;
1150 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1151 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1152 esac;;
1153esac
1154case $ac_abs_builddir in
1155.) ac_abs_srcdir=$ac_srcdir;;
1156*)
1157 case $ac_srcdir in
1158 .) ac_abs_srcdir=$ac_abs_builddir;;
1159 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1160 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1161 esac;;
1162esac
1163case $ac_abs_builddir in
1164.) ac_abs_top_srcdir=$ac_top_srcdir;;
1165*)
1166 case $ac_top_srcdir in
1167 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1168 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1169 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1170 esac;;
1171esac
a848cd7e
SC
1172
1173 cd $ac_dir
1174 # Check for guested configure; otherwise get Cygnus style configure.
1175 if test -f $ac_srcdir/configure.gnu; then
1176 echo
1177 $SHELL $ac_srcdir/configure.gnu --help=recursive
1178 elif test -f $ac_srcdir/configure; then
1179 echo
1180 $SHELL $ac_srcdir/configure --help=recursive
1181 elif test -f $ac_srcdir/configure.ac ||
ac1cb8d3 1182 test -f $ac_srcdir/configure.in; then
a848cd7e
SC
1183 echo
1184 $ac_configure --help
1185 else
1186 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1187 fi
89be85c2 1188 cd $ac_popdir
a848cd7e
SC
1189 done
1190fi
1191
1192test -n "$ac_init_help" && exit 0
1193if $ac_init_version; then
1194 cat <<\_ACEOF
7714864e 1195wxWidgets configure 2.5.3
ac1cb8d3 1196generated by GNU Autoconf 2.59
a848cd7e 1197
ac1cb8d3 1198Copyright (C) 2003 Free Software Foundation, Inc.
a848cd7e
SC
1199This configure script is free software; the Free Software Foundation
1200gives unlimited permission to copy, distribute and modify it.
1201_ACEOF
1202 exit 0
1203fi
1204exec 5>config.log
1205cat >&5 <<_ACEOF
1206This file contains any messages produced by compilers while
1207running configure, to aid debugging if configure makes a mistake.
1208
7714864e 1209It was created by wxWidgets $as_me 2.5.3, which was
ac1cb8d3 1210generated by GNU Autoconf 2.59. Invocation command line was
a848cd7e
SC
1211
1212 $ $0 $@
1213
1214_ACEOF
1215{
1216cat <<_ASUNAME
1217## --------- ##
1218## Platform. ##
1219## --------- ##
1220
1221hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1222uname -m = `(uname -m) 2>/dev/null || echo unknown`
1223uname -r = `(uname -r) 2>/dev/null || echo unknown`
1224uname -s = `(uname -s) 2>/dev/null || echo unknown`
1225uname -v = `(uname -v) 2>/dev/null || echo unknown`
1226
1227/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1228/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1229
1230/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1231/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1232/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1233hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1234/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1235/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1236/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1237
1238_ASUNAME
1239
1240as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1241for as_dir in $PATH
1242do
1243 IFS=$as_save_IFS
1244 test -z "$as_dir" && as_dir=.
1245 echo "PATH: $as_dir"
1246done
1247
1248} >&5
1249
1250cat >&5 <<_ACEOF
1251
1252
1253## ----------- ##
1254## Core tests. ##
1255## ----------- ##
1256
1257_ACEOF
1258
1259
1260# Keep a trace of the command line.
1261# Strip out --no-create and --no-recursion so they do not pile up.
1262# Strip out --silent because we don't want to record it for future runs.
1263# Also quote any args containing shell meta-characters.
1264# Make two passes to allow for proper duplicate-argument suppression.
1265ac_configure_args=
1266ac_configure_args0=
1267ac_configure_args1=
1268ac_sep=
1269ac_must_keep_next=false
1270for ac_pass in 1 2
1271do
1272 for ac_arg
1273 do
1274 case $ac_arg in
1275 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1276 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1277 | -silent | --silent | --silen | --sile | --sil)
1278 continue ;;
1279 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1280 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1281 esac
1282 case $ac_pass in
1283 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1284 2)
1285 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1286 if test $ac_must_keep_next = true; then
ac1cb8d3 1287 ac_must_keep_next=false # Got value, back to normal.
a848cd7e 1288 else
ac1cb8d3
VS
1289 case $ac_arg in
1290 *=* | --config-cache | -C | -disable-* | --disable-* \
1291 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1292 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1293 | -with-* | --with-* | -without-* | --without-* | --x)
1294 case "$ac_configure_args0 " in
1295 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1296 esac
1297 ;;
1298 -* ) ac_must_keep_next=true ;;
1299 esac
a848cd7e
SC
1300 fi
1301 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1302 # Get rid of the leading space.
1303 ac_sep=" "
1304 ;;
1305 esac
1306 done
1307done
1308$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1309$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1310
1311# When interrupted or exit'd, cleanup temporary files, and complete
1312# config.log. We remove comments because anyway the quotes in there
1313# would cause problems or look ugly.
1314# WARNING: Be sure not to use single quotes in there, as some shells,
1315# such as our DU 5.0 friend, will then `close' the trap.
1316trap 'exit_status=$?
1317 # Save into config.log some information that might help in debugging.
1318 {
1319 echo
1320
1321 cat <<\_ASBOX
1322## ---------------- ##
1323## Cache variables. ##
1324## ---------------- ##
1325_ASBOX
1326 echo
1327 # The following way of writing the cache mishandles newlines in values,
1328{
1329 (set) 2>&1 |
1330 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1331 *ac_space=\ *)
1332 sed -n \
ac1cb8d3
VS
1333 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1334 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
a848cd7e
SC
1335 ;;
1336 *)
1337 sed -n \
ac1cb8d3 1338 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
1339 ;;
1340 esac;
1341}
1342 echo
1343
1344 cat <<\_ASBOX
1345## ----------------- ##
1346## Output variables. ##
1347## ----------------- ##
1348_ASBOX
1349 echo
1350 for ac_var in $ac_subst_vars
1351 do
1352 eval ac_val=$`echo $ac_var`
1353 echo "$ac_var='"'"'$ac_val'"'"'"
1354 done | sort
1355 echo
1356
1357 if test -n "$ac_subst_files"; then
1358 cat <<\_ASBOX
1359## ------------- ##
1360## Output files. ##
1361## ------------- ##
1362_ASBOX
1363 echo
1364 for ac_var in $ac_subst_files
1365 do
1366 eval ac_val=$`echo $ac_var`
ac1cb8d3 1367 echo "$ac_var='"'"'$ac_val'"'"'"
a848cd7e
SC
1368 done | sort
1369 echo
1370 fi
1371
1372 if test -s confdefs.h; then
1373 cat <<\_ASBOX
1374## ----------- ##
1375## confdefs.h. ##
1376## ----------- ##
1377_ASBOX
1378 echo
1379 sed "/^$/d" confdefs.h | sort
1380 echo
1381 fi
1382 test "$ac_signal" != 0 &&
1383 echo "$as_me: caught signal $ac_signal"
1384 echo "$as_me: exit $exit_status"
1385 } >&5
ac1cb8d3 1386 rm -f core *.core &&
a848cd7e
SC
1387 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1388 exit $exit_status
1389 ' 0
1390for ac_signal in 1 2 13 15; do
1391 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1392done
1393ac_signal=0
1394
1395# confdefs.h avoids OS command line length limits that DEFS can exceed.
1396rm -rf conftest* confdefs.h
1397# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1398echo >confdefs.h
1399
1400# Predefined preprocessor variables.
1401
1402cat >>confdefs.h <<_ACEOF
1403#define PACKAGE_NAME "$PACKAGE_NAME"
1404_ACEOF
1405
1406
1407cat >>confdefs.h <<_ACEOF
1408#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1409_ACEOF
1410
1411
1412cat >>confdefs.h <<_ACEOF
1413#define PACKAGE_VERSION "$PACKAGE_VERSION"
1414_ACEOF
1415
1416
1417cat >>confdefs.h <<_ACEOF
1418#define PACKAGE_STRING "$PACKAGE_STRING"
1419_ACEOF
1420
1421
1422cat >>confdefs.h <<_ACEOF
1423#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1424_ACEOF
1425
1426
1427# Let the site file select an alternate cache file if it wants to.
1428# Prefer explicitly selected file to automatically selected ones.
1429if test -z "$CONFIG_SITE"; then
1430 if test "x$prefix" != xNONE; then
1431 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1432 else
1433 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1434 fi
1435fi
1436for ac_site_file in $CONFIG_SITE; do
1437 if test -r "$ac_site_file"; then
1438 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1439echo "$as_me: loading site script $ac_site_file" >&6;}
1440 sed 's/^/| /' "$ac_site_file" >&5
1441 . "$ac_site_file"
1442 fi
1443done
1444
1445if test -r "$cache_file"; then
1446 # Some versions of bash will fail to source /dev/null (special
1447 # files actually), so we avoid doing that.
1448 if test -f "$cache_file"; then
1449 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1450echo "$as_me: loading cache $cache_file" >&6;}
1451 case $cache_file in
1452 [\\/]* | ?:[\\/]* ) . $cache_file;;
1453 *) . ./$cache_file;;
1454 esac
1455 fi
1456else
1457 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1458echo "$as_me: creating cache $cache_file" >&6;}
1459 >$cache_file
1460fi
1461
1462# Check that the precious variables saved in the cache have kept the same
1463# value.
1464ac_cache_corrupted=false
1465for ac_var in `(set) 2>&1 |
ac1cb8d3 1466 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
a848cd7e
SC
1467 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1468 eval ac_new_set=\$ac_env_${ac_var}_set
1469 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1470 eval ac_new_val="\$ac_env_${ac_var}_value"
1471 case $ac_old_set,$ac_new_set in
1472 set,)
1473 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1474echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1475 ac_cache_corrupted=: ;;
1476 ,set)
1477 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1478echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1479 ac_cache_corrupted=: ;;
1480 ,);;
1481 *)
1482 if test "x$ac_old_val" != "x$ac_new_val"; then
ac1cb8d3 1483 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
a848cd7e 1484echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
ac1cb8d3 1485 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
a848cd7e 1486echo "$as_me: former value: $ac_old_val" >&2;}
ac1cb8d3 1487 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
a848cd7e 1488echo "$as_me: current value: $ac_new_val" >&2;}
ac1cb8d3 1489 ac_cache_corrupted=:
a848cd7e
SC
1490 fi;;
1491 esac
1492 # Pass precious variables to config.status.
1493 if test "$ac_new_set" = set; then
1494 case $ac_new_val in
1495 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1496 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1497 *) ac_arg=$ac_var=$ac_new_val ;;
1498 esac
1499 case " $ac_configure_args " in
1500 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1501 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1502 esac
1503 fi
1504done
1505if $ac_cache_corrupted; then
1506 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1507echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1508 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1509echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1510 { (exit 1); exit 1; }; }
1511fi
1512
1513ac_ext=c
1514ac_cpp='$CPP $CPPFLAGS'
1515ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1516ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1517ac_compiler_gnu=$ac_cv_c_compiler_gnu
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548ac_aux_dir=
1549for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1550 if test -f $ac_dir/install-sh; then
1551 ac_aux_dir=$ac_dir
1552 ac_install_sh="$ac_aux_dir/install-sh -c"
1553 break
1554 elif test -f $ac_dir/install.sh; then
1555 ac_aux_dir=$ac_dir
1556 ac_install_sh="$ac_aux_dir/install.sh -c"
1557 break
1558 elif test -f $ac_dir/shtool; then
1559 ac_aux_dir=$ac_dir
1560 ac_install_sh="$ac_aux_dir/shtool install -c"
1561 break
1562 fi
1563done
1564if test -z "$ac_aux_dir"; then
1565 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1566echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1567 { (exit 1); exit 1; }; }
1568fi
1569ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1570ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1571ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1572
1573# Make sure we can run config.sub.
1574$ac_config_sub sun4 >/dev/null 2>&1 ||
1575 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1576echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1577 { (exit 1); exit 1; }; }
1578
1579echo "$as_me:$LINENO: checking build system type" >&5
1580echo $ECHO_N "checking build system type... $ECHO_C" >&6
1581if test "${ac_cv_build+set}" = set; then
1582 echo $ECHO_N "(cached) $ECHO_C" >&6
1583else
1584 ac_cv_build_alias=$build_alias
1585test -z "$ac_cv_build_alias" &&
1586 ac_cv_build_alias=`$ac_config_guess`
1587test -z "$ac_cv_build_alias" &&
1588 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1589echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1590 { (exit 1); exit 1; }; }
1591ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1592 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1593echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1594 { (exit 1); exit 1; }; }
1595
1596fi
1597echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1598echo "${ECHO_T}$ac_cv_build" >&6
1599build=$ac_cv_build
1600build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1601build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1602build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1603
1604
1605echo "$as_me:$LINENO: checking host system type" >&5
1606echo $ECHO_N "checking host system type... $ECHO_C" >&6
1607if test "${ac_cv_host+set}" = set; then
1608 echo $ECHO_N "(cached) $ECHO_C" >&6
1609else
1610 ac_cv_host_alias=$host_alias
1611test -z "$ac_cv_host_alias" &&
1612 ac_cv_host_alias=$ac_cv_build_alias
1613ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1614 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1615echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1616 { (exit 1); exit 1; }; }
1617
1618fi
1619echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1620echo "${ECHO_T}$ac_cv_host" >&6
1621host=$ac_cv_host
1622host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1623host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1624host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1625
1626
1627echo "$as_me:$LINENO: checking target system type" >&5
1628echo $ECHO_N "checking target system type... $ECHO_C" >&6
1629if test "${ac_cv_target+set}" = set; then
1630 echo $ECHO_N "(cached) $ECHO_C" >&6
1631else
1632 ac_cv_target_alias=$target_alias
1633test "x$ac_cv_target_alias" = "x" &&
1634 ac_cv_target_alias=$ac_cv_host_alias
1635ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1636 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1637echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1638 { (exit 1); exit 1; }; }
1639
1640fi
1641echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1642echo "${ECHO_T}$ac_cv_target" >&6
1643target=$ac_cv_target
1644target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1645target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1646target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1647
1648
1649# The aliases save the names the user supplied, while $host etc.
1650# will get canonicalized.
1651test -n "$target_alias" &&
1652 test "$program_prefix$program_suffix$program_transform_name" = \
1653 NONENONEs,x,x, &&
1654 program_prefix=${target_alias}-
1655
1656
1657
ceec2216
RL
1658wx_major_version_number=2
1659wx_minor_version_number=5
7714864e 1660wx_release_number=3
0210f373 1661wx_subrelease_number=3
a848cd7e 1662
ceec2216
RL
1663WX_RELEASE=$wx_major_version_number.$wx_minor_version_number
1664WX_VERSION=$WX_RELEASE.$wx_release_number
1665WX_SUBVERSION=$WX_VERSION.$wx_subrelease_number
a848cd7e 1666
ceec2216 1667WX_MSW_VERSION=$wx_major_version_number$wx_minor_version_number$wx_release_number
a848cd7e 1668
e653e181 1669WX_CURRENT=3
a848cd7e 1670WX_REVISION=0
0210f373 1671WX_AGE=3
a848cd7e
SC
1672
1673
1674
1675USE_UNIX=1
1676USE_OS2=0
1677USE_WIN32=0
1678USE_DOS=0
1679USE_BEOS=0
1680USE_MAC=0
1681
1682USE_AIX=
1683USE_BSD= USE_DARWIN= USE_FREEBSD=
1684USE_GNU= USE_HPUX=
1685USE_LINUX=
1686USE_NETBSD=
1687USE_OPENBSD=
1688USE_OSF= USE_SGI=
1689USE_SOLARIS= USE_SUN= USE_SUNOS= USE_SVR4= USE_SYSV= USE_VMS=
1690USE_ULTRIX=
1691USE_UNIXWARE=
1692
1693USE_ALPHA=
1694
1695NEEDS_D_REENTRANT_FOR_R_FUNCS=0
1696
1697ALL_TOOLKITS="COCOA GTK MAC MGL MICROWIN MOTIF MSW PM X11"
1698
1699DEFAULT_wxUSE_COCOA=0
1700DEFAULT_wxUSE_GTK=0
1701DEFAULT_wxUSE_MAC=0
1702DEFAULT_wxUSE_MGL=0
1703DEFAULT_wxUSE_MICROWIN=0
1704DEFAULT_wxUSE_MOTIF=0
1705DEFAULT_wxUSE_MSW=0
1706DEFAULT_wxUSE_PM=0
1707DEFAULT_wxUSE_X11=0
1708
1709DEFAULT_DEFAULT_wxUSE_COCOA=0
1710DEFAULT_DEFAULT_wxUSE_GTK=0
1711DEFAULT_DEFAULT_wxUSE_MAC=0
1712DEFAULT_DEFAULT_wxUSE_MGL=0
1713DEFAULT_DEFAULT_wxUSE_MICROWIN=0
1714DEFAULT_DEFAULT_wxUSE_MOTIF=0
1715DEFAULT_DEFAULT_wxUSE_MSW=0
1716DEFAULT_DEFAULT_wxUSE_PM=0
1717DEFAULT_DEFAULT_wxUSE_X11=0
1718
1719PROGRAM_EXT=
1720SO_SUFFIX=so
1721SAMPLES_RPATH_FLAG=
1722SAMPLES_RPATH_POSTLINK=
1723
1724case "${host}" in
1725 *-hp-hpux* )
1726 USE_HPUX=1
1727 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1728 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1729 SO_SUFFIX=sl
1730 cat >>confdefs.h <<\_ACEOF
1731#define __HPUX__ 1
1732_ACEOF
1733
1734 ;;
1735 *-*-linux* )
1736 USE_LINUX=1
1737 cat >>confdefs.h <<\_ACEOF
1738#define __LINUX__ 1
1739_ACEOF
1740
1741 TMP=`uname -m`
1742 if test "x$TMP" = "xalpha"; then
1743 USE_ALPHA=1
1744 cat >>confdefs.h <<\_ACEOF
1745#define __ALPHA__ 1
1746_ACEOF
1747
1748 fi
1749 DEFAULT_DEFAULT_wxUSE_GTK=1
1750 ;;
1751 *-*-gnu* | *-*-k*bsd*-gnu )
1752 USE_GNU=1
1753 TMP=`uname -m`
1754 if test "x$TMP" = "xalpha"; then
1755 USE_ALPHA=1
1756 cat >>confdefs.h <<\_ACEOF
1757#define __ALPHA__ 1
1758_ACEOF
1759
1760 fi
1761 DEFAULT_DEFAULT_wxUSE_GTK=1
1762 ;;
1763 *-*-irix5* | *-*-irix6* )
1764 USE_SGI=1
1765 USE_SVR4=1
1766 cat >>confdefs.h <<\_ACEOF
1767#define __SGI__ 1
1768_ACEOF
1769
1770 cat >>confdefs.h <<\_ACEOF
1771#define __SVR4__ 1
1772_ACEOF
1773
1774 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1775 ;;
1776 *-*-solaris2* )
1777 USE_SUN=1
1778 USE_SOLARIS=1
1779 USE_SVR4=1
1780 cat >>confdefs.h <<\_ACEOF
1781#define __SUN__ 1
1782_ACEOF
1783
1784 cat >>confdefs.h <<\_ACEOF
1785#define __SOLARIS__ 1
1786_ACEOF
1787
1788 cat >>confdefs.h <<\_ACEOF
1789#define __SVR4__ 1
1790_ACEOF
1791
1792 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1793 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1794 ;;
1795 *-*-sunos4* )
1796 USE_SUN=1
1797 USE_SUNOS=1
1798 USE_BSD=1
1799 cat >>confdefs.h <<\_ACEOF
1800#define __SUN__ 1
1801_ACEOF
1802
1803 cat >>confdefs.h <<\_ACEOF
1804#define __SUNOS__ 1
1805_ACEOF
1806
1807 cat >>confdefs.h <<\_ACEOF
1808#define __BSD__ 1
1809_ACEOF
1810
1811 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1812 ;;
1813 *-*-freebsd*)
1814 USE_BSD=1
1815 USE_FREEBSD=1
1816 cat >>confdefs.h <<\_ACEOF
1817#define __FREEBSD__ 1
1818_ACEOF
1819
1820 cat >>confdefs.h <<\_ACEOF
1821#define __BSD__ 1
1822_ACEOF
1823
1824 DEFAULT_DEFAULT_wxUSE_GTK=1
1825 ;;
1826 *-*-openbsd*)
1827 USE_BSD=1
1828 USE_OPENBSD=1
1829 cat >>confdefs.h <<\_ACEOF
1830#define __OPENBSD__ 1
1831_ACEOF
1832
1833 cat >>confdefs.h <<\_ACEOF
1834#define __BSD__ 1
1835_ACEOF
1836
1837 DEFAULT_DEFAULT_wxUSE_GTK=1
1838 ;;
1839 *-*-netbsd*)
1840 USE_BSD=1
1841 USE_NETBSD=1
1842 cat >>confdefs.h <<\_ACEOF
1843#define __NETBSD__ 1
1844_ACEOF
1845
1846 cat >>confdefs.h <<\_ACEOF
1847#define __BSD__ 1
1848_ACEOF
1849
1850 DEFAULT_DEFAULT_wxUSE_GTK=1
1851 ;;
1852 *-*-osf* )
1853 USE_ALPHA=1
1854 USE_OSF=1
1855 cat >>confdefs.h <<\_ACEOF
1856#define __ALPHA__ 1
1857_ACEOF
1858
1859 cat >>confdefs.h <<\_ACEOF
1860#define __OSF__ 1
1861_ACEOF
1862
1863 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1864 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1865 ;;
1866 *-*-dgux5* )
1867 USE_ALPHA=1
1868 USE_SVR4=1
1869 cat >>confdefs.h <<\_ACEOF
1870#define __ALPHA__ 1
1871_ACEOF
1872
1873 cat >>confdefs.h <<\_ACEOF
1874#define __SVR4__ 1
1875_ACEOF
1876
1877 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1878 ;;
1879 *-*-sysv5* )
1880 USE_SYSV=1
1881 USE_SVR4=1
1882 cat >>confdefs.h <<\_ACEOF
1883#define __SYSV__ 1
1884_ACEOF
1885
1886 cat >>confdefs.h <<\_ACEOF
1887#define __SVR4__ 1
1888_ACEOF
1889
1890 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1891 ;;
1892 *-*-aix* )
1893 USE_AIX=1
1894 USE_SYSV=1
1895 USE_SVR4=1
1896 SO_SUFFIX=a
1897 cat >>confdefs.h <<\_ACEOF
1898#define __AIX__ 1
1899_ACEOF
1900
1901 cat >>confdefs.h <<\_ACEOF
1902#define __SYSV__ 1
1903_ACEOF
1904
1905 cat >>confdefs.h <<\_ACEOF
1906#define __SVR4__ 1
1907_ACEOF
1908
1909 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1910 ;;
1911
1912 *-*-*UnixWare*)
1913 USE_SYSV=1
1914 USE_SVR4=1
1915 USE_UNIXWARE=1
1916 cat >>confdefs.h <<\_ACEOF
1917#define __UNIXWARE__ 1
1918_ACEOF
1919
1920 ;;
1921
1922 *-*-cygwin* | *-*-mingw32* )
1923 SO_SUFFIX=dll
1924 PROGRAM_EXT=".exe"
1925 RESCOMP=windres
1926 DEFAULT_DEFAULT_wxUSE_MSW=1
1927 ;;
1928
1929 *-pc-msdosdjgpp )
1930 USE_UNIX=0
1931 USE_DOS=1
1932 cat >>confdefs.h <<\_ACEOF
1933#define __DOS__ 1
1934_ACEOF
1935
1936 PROGRAM_EXT=".exe"
1937 DEFAULT_DEFAULT_wxUSE_MGL=1
1938 LIBS="$LIBS -lstdc++"
1939 ;;
1940
1941 *-pc-os2_emx | *-pc-os2-emx )
1942 cat >>confdefs.h <<\_ACEOF
1943#define __EMX__ 1
1944_ACEOF
1945
1946 USE_OS2=1
1947 cat >>confdefs.h <<\_ACEOF
1948#define __OS2__ 1
1949_ACEOF
1950
1951 PROGRAM_EXT=".exe"
1952 DEFAULT_DEFAULT_wxUSE_PM=1
1953 CXX=gcc
1954 LDFLAGS="$LDFLAGS -Zcrtdll"
1955 ac_executable_extensions=".exe"
1956 export ac_executable_extensions
1957 ac_save_IFS="$IFS"
1958 IFS='\\'
1959 ac_TEMP_PATH=
1960 for ac_dir in $PATH; do
1961 IFS=$ac_save_IFS
1962 if test -z "$ac_TEMP_PATH"; then
1963 ac_TEMP_PATH="$ac_dir"
1964 else
1965 ac_TEMP_PATH="$ac_TEMP_PATH/$ac_dir"
1966 fi
1967 done
1968 export PATH="$ac_TEMP_PATH"
1969 unset ac_TEMP_PATH
1970 ;;
1971
1972 powerpc-*-darwin* )
1973 USE_BSD=1
1974 USE_DARWIN=1
1975 SO_SUFFIX=dylib
1976 cat >>confdefs.h <<\_ACEOF
1977#define __BSD__ 1
1978_ACEOF
1979
1980 cat >>confdefs.h <<\_ACEOF
1981#define __DARWIN__ 1
1982_ACEOF
1983
1984 cat >>confdefs.h <<\_ACEOF
1985#define __POWERPC__ 1
1986_ACEOF
1987
1988 cat >>confdefs.h <<\_ACEOF
1989#define TARGET_CARBON 1
1990_ACEOF
1991
1992 DEFAULT_DEFAULT_wxUSE_MAC=1
1993 ;;
1e9e8aba
DE
1994 powerpc-apple-macos* )
1995 USE_UNIX=0
1996 ac_cv_c_bigendian=yes
1997 SO_SUFFIX=shlib
1998 DEFAULT_DEFAULT_wxUSE_MAC=1
1999 ;;
a848cd7e
SC
2000
2001 *-*-beos* )
2002 USE_BEOS=1
2003 cat >>confdefs.h <<\_ACEOF
2004#define __BEOS__ 1
2005_ACEOF
2006
2007 ;;
2008
2009 *)
2010 { { echo "$as_me:$LINENO: error: unknown system type ${host}." >&5
2011echo "$as_me: error: unknown system type ${host}." >&2;}
2012 { (exit 1); exit 1; }; }
2013esac
2014
2015
2016
2017
2018 wx_arg_cache_file="configarg.cache"
2019 echo "loading argument cache $wx_arg_cache_file"
2020 rm -f ${wx_arg_cache_file}.tmp
2021 touch ${wx_arg_cache_file}.tmp
2022 touch ${wx_arg_cache_file}
2023
2024
2025DEBUG_CONFIGURE=0
2026if test $DEBUG_CONFIGURE = 1; then
2027 DEFAULT_wxUSE_UNIVERSAL=no
2028 DEFAULT_wxUSE_STL=no
2029
2030 DEFAULT_wxUSE_NANOX=no
2031
2032 DEFAULT_wxUSE_THREADS=yes
2033
2034 DEFAULT_wxUSE_SHARED=yes
2035 DEFAULT_wxUSE_OPTIMISE=no
2036 DEFAULT_wxUSE_PROFILE=no
2037 DEFAULT_wxUSE_NO_DEPS=no
2038 DEFAULT_wxUSE_NO_RTTI=no
2039 DEFAULT_wxUSE_NO_EXCEPTIONS=no
ffa0583f 2040 DEFAULT_wxUSE_RPATH=yes
a848cd7e
SC
2041 DEFAULT_wxUSE_PERMISSIVE=no
2042 DEFAULT_wxUSE_DEBUG_FLAG=yes
2043 DEFAULT_wxUSE_DEBUG_INFO=yes
2044 DEFAULT_wxUSE_DEBUG_GDB=yes
2045 DEFAULT_wxUSE_MEM_TRACING=no
2046 DEFAULT_wxUSE_DEBUG_CONTEXT=no
2047 DEFAULT_wxUSE_DMALLOC=no
2048 DEFAULT_wxUSE_APPLE_IEEE=no
2049
2050 DEFAULT_wxUSE_EXCEPTIONS=no
2051 DEFAULT_wxUSE_LOG=yes
2052 DEFAULT_wxUSE_LOGWINDOW=no
2053 DEFAULT_wxUSE_LOGGUI=no
2054 DEFAULT_wxUSE_LOGDIALOG=no
2055
2056 DEFAULT_wxUSE_GUI=yes
2057 DEFAULT_wxUSE_CONTROLS=no
2058
2059 DEFAULT_wxUSE_REGEX=no
2060 DEFAULT_wxUSE_XML=no
2061 DEFAULT_wxUSE_EXPAT=no
2062 DEFAULT_wxUSE_ZLIB=no
2063 DEFAULT_wxUSE_LIBPNG=no
2064 DEFAULT_wxUSE_LIBJPEG=no
2065 DEFAULT_wxUSE_LIBTIFF=no
2066 DEFAULT_wxUSE_LIBXPM=no
2067 DEFAULT_wxUSE_LIBMSPACK=no
2068 DEFAULT_wxUSE_LIBSDL=no
d1c38808 2069 DEFAULT_wxUSE_LIBGNOMEPRINT=no
a848cd7e
SC
2070 DEFAULT_wxUSE_ODBC=no
2071 DEFAULT_wxUSE_OPENGL=no
2072
2073 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=no
eaff0f0d 2074 DEFAULT_wxUSE_STACKWALKER=no
a848cd7e
SC
2075 DEFAULT_wxUSE_SNGLINST_CHECKER=no
2076 DEFAULT_wxUSE_STD_IOSTREAM=no
2077 DEFAULT_wxUSE_CMDLINE_PARSER=no
2078 DEFAULT_wxUSE_DATETIME=no
2079 DEFAULT_wxUSE_TIMER=no
2080 DEFAULT_wxUSE_STOPWATCH=no
2081 DEFAULT_wxUSE_FILE=no
2082 DEFAULT_wxUSE_FFILE=no
2083 DEFAULT_wxUSE_TEXTBUFFER=no
2084 DEFAULT_wxUSE_TEXTFILE=no
2085 DEFAULT_wxUSE_SOUND=no
3b57de8b
RL
2086 DEFAULT_wxUSE_MEDIACTRL=no
2087 DEFAULT_wxUSE_DIRECTSHOW=no
a848cd7e
SC
2088 DEFAULT_wxUSE_INTL=no
2089 DEFAULT_wxUSE_CONFIG=no
2090 DEFAULT_wxUSE_FONTMAP=no
2091 DEFAULT_wxUSE_STREAMS=no
2092 DEFAULT_wxUSE_SOCKETS=no
2093 DEFAULT_wxUSE_OLE=no
2094 DEFAULT_wxUSE_DATAOBJ=no
2095 DEFAULT_wxUSE_DIALUP_MANAGER=no
2096 DEFAULT_wxUSE_JOYSTICK=no
2097 DEFAULT_wxUSE_DYNLIB_CLASS=no
2098 DEFAULT_wxUSE_DYNAMIC_LOADER=no
2099 DEFAULT_wxUSE_LONGLONG=no
2100 DEFAULT_wxUSE_GEOMETRY=no
2101
2102 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no
2103 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no
2104 DEFAULT_wxUSE_POSTSCRIPT=no
2105
2106 DEFAULT_wxUSE_CLIPBOARD=no
2107 DEFAULT_wxUSE_TOOLTIPS=no
2108 DEFAULT_wxUSE_DRAG_AND_DROP=no
2109 DEFAULT_wxUSE_DRAGIMAGE=no
2110 DEFAULT_wxUSE_SPLINES=no
2111
8a7b1113 2112 DEFAULT_wxUSE_MDI=no
a848cd7e
SC
2113 DEFAULT_wxUSE_MDI_ARCHITECTURE=no
2114 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no
2115 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no
2116
2117 DEFAULT_wxUSE_RESOURCES=no
2118 DEFAULT_wxUSE_CONSTRAINTS=no
2119 DEFAULT_wxUSE_IPC=no
2120 DEFAULT_wxUSE_HELP=no
2121 DEFAULT_wxUSE_MS_HTML_HELP=no
2122 DEFAULT_wxUSE_WXHTML_HELP=no
2123 DEFAULT_wxUSE_TREELAYOUT=no
2124 DEFAULT_wxUSE_METAFILE=no
2125 DEFAULT_wxUSE_MIMETYPE=no
2126 DEFAULT_wxUSE_SYSTEM_OPTIONS=no
2127 DEFAULT_wxUSE_PROTOCOL=no
2128 DEFAULT_wxUSE_PROTOCOL_HTTP=no
2129 DEFAULT_wxUSE_PROTOCOL_FTP=no
2130 DEFAULT_wxUSE_PROTOCOL_FILE=no
2131 DEFAULT_wxUSE_URL=no
2132
2133 DEFAULT_wxUSE_COMMONDLGS=no
2134 DEFAULT_wxUSE_CHOICEDLG=no
2135 DEFAULT_wxUSE_COLOURDLG=no
2136 DEFAULT_wxUSE_DIRDLG=no
2137 DEFAULT_wxUSE_FILEDLG=no
2138 DEFAULT_wxUSE_FINDREPLDLG=no
2139 DEFAULT_wxUSE_FONTDLG=no
2140 DEFAULT_wxUSE_MSGDLG=no
2141 DEFAULT_wxUSE_NUMBERDLG=no
2142 DEFAULT_wxUSE_TEXTDLG=no
2143 DEFAULT_wxUSE_SPLASH=no
2144 DEFAULT_wxUSE_STARTUP_TIPS=no
2145 DEFAULT_wxUSE_PROGRESSDLG=no
2146 DEFAULT_wxUSE_WIZARDDLG=no
2147
2148 DEFAULT_wxUSE_MENUS=no
2149 DEFAULT_wxUSE_MINIFRAME=no
2150 DEFAULT_wxUSE_HTML=no
9a8f0513 2151 DEFAULT_wxUSE_XRC=no
646b6ec1 2152 DEFAULT_wxUSE_WEBKIT=no
a848cd7e
SC
2153 DEFAULT_wxUSE_FILESYSTEM=no
2154 DEFAULT_wxUSE_FS_INET=no
2155 DEFAULT_wxUSE_FS_ZIP=no
2156 DEFAULT_wxUSE_BUSYINFO=no
2157 DEFAULT_wxUSE_ZIPSTREAM=no
a848cd7e
SC
2158 DEFAULT_wxUSE_VALIDATORS=no
2159
2160 DEFAULT_wxUSE_ACCEL=no
2161 DEFAULT_wxUSE_BUTTON=no
2162 DEFAULT_wxUSE_BMPBUTTON=no
2163 DEFAULT_wxUSE_CALCTRL=no
2164 DEFAULT_wxUSE_CARET=no
2165 DEFAULT_wxUSE_CHECKBOX=no
2166 DEFAULT_wxUSE_CHECKLST=no
2167 DEFAULT_wxUSE_CHOICE=no
92bbdbcd 2168 DEFAULT_wxUSE_CHOICEBOOK=no
a848cd7e 2169 DEFAULT_wxUSE_COMBOBOX=no
da98e9be 2170 DEFAULT_wxUSE_DATEPICKCTRL=no
a848cd7e
SC
2171 DEFAULT_wxUSE_DISPLAY=no
2172 DEFAULT_wxUSE_GAUGE=no
2173 DEFAULT_wxUSE_GRID=no
2174 DEFAULT_wxUSE_IMAGLIST=no
2175 DEFAULT_wxUSE_LISTBOOK=no
2176 DEFAULT_wxUSE_LISTBOX=no
2177 DEFAULT_wxUSE_LISTCTRL=no
2178 DEFAULT_wxUSE_NOTEBOOK=no
2179 DEFAULT_wxUSE_RADIOBOX=no
2180 DEFAULT_wxUSE_RADIOBTN=no
2181 DEFAULT_wxUSE_SASH=no
2182 DEFAULT_wxUSE_SCROLLBAR=no
2183 DEFAULT_wxUSE_SLIDER=no
2184 DEFAULT_wxUSE_SPINBTN=no
2185 DEFAULT_wxUSE_SPINCTRL=no
2186 DEFAULT_wxUSE_SPLITTER=no
2187 DEFAULT_wxUSE_STATBMP=no
2188 DEFAULT_wxUSE_STATBOX=no
2189 DEFAULT_wxUSE_STATLINE=no
2190 DEFAULT_wxUSE_STATTEXT=no
2191 DEFAULT_wxUSE_STATUSBAR=yes
2192 DEFAULT_wxUSE_TABDIALOG=no
2193 DEFAULT_wxUSE_TEXTCTRL=no
2194 DEFAULT_wxUSE_TOGGLEBTN=no
2195 DEFAULT_wxUSE_TOOLBAR=no
2196 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
2197 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
2198 DEFAULT_wxUSE_TREECTRL=no
2199 DEFAULT_wxUSE_POPUPWIN=no
2200 DEFAULT_wxUSE_TIPWINDOW=no
2201
2202 DEFAULT_wxUSE_UNICODE=no
2203 DEFAULT_wxUSE_UNICODE_MSLU=no
2204 DEFAULT_wxUSE_WCSRTOMBS=no
2205
2206 DEFAULT_wxUSE_PALETTE=no
2207 DEFAULT_wxUSE_IMAGE=no
2208 DEFAULT_wxUSE_GIF=no
2209 DEFAULT_wxUSE_PCX=no
2210 DEFAULT_wxUSE_PNM=no
2211 DEFAULT_wxUSE_IFF=no
2212 DEFAULT_wxUSE_XPM=no
2213 DEFAULT_wxUSE_ICO_CUR=no
2214 DEFAULT_wxUSE_ACCESSIBILITY=no
2215
2216 DEFAULT_wxUSE_MONOLITHIC=no
2217 DEFAULT_wxUSE_PLUGINS=no
2218 DEFAULT_wxUSE_OFFICIAL_BUILD=no
2219else
2220 DEFAULT_wxUSE_UNIVERSAL=no
2221 DEFAULT_wxUSE_STL=no
2222
2223 DEFAULT_wxUSE_NANOX=no
2224
2225 DEFAULT_wxUSE_THREADS=yes
2226
2227 DEFAULT_wxUSE_SHARED=yes
2228 DEFAULT_wxUSE_OPTIMISE=yes
2229 DEFAULT_wxUSE_PROFILE=no
2230 DEFAULT_wxUSE_NO_DEPS=no
2231 DEFAULT_wxUSE_NO_RTTI=no
2232 DEFAULT_wxUSE_NO_EXCEPTIONS=no
ffa0583f 2233 DEFAULT_wxUSE_RPATH=yes
a848cd7e
SC
2234 DEFAULT_wxUSE_PERMISSIVE=no
2235 DEFAULT_wxUSE_DEBUG_FLAG=no
2236 DEFAULT_wxUSE_DEBUG_INFO=no
2237 DEFAULT_wxUSE_DEBUG_GDB=no
2238 DEFAULT_wxUSE_MEM_TRACING=no
2239 DEFAULT_wxUSE_DEBUG_CONTEXT=no
2240 DEFAULT_wxUSE_DMALLOC=no
2241 DEFAULT_wxUSE_APPLE_IEEE=yes
2242
2243 DEFAULT_wxUSE_EXCEPTIONS=yes
2244 DEFAULT_wxUSE_LOG=yes
2245 DEFAULT_wxUSE_LOGWINDOW=yes
2246 DEFAULT_wxUSE_LOGGUI=yes
2247 DEFAULT_wxUSE_LOGDIALOG=yes
2248
2249 DEFAULT_wxUSE_GUI=yes
2250
2251 DEFAULT_wxUSE_REGEX=yes
2252 DEFAULT_wxUSE_XML=yes
2253 DEFAULT_wxUSE_EXPAT=yes
2254 DEFAULT_wxUSE_ZLIB=yes
2255 DEFAULT_wxUSE_LIBPNG=yes
2256 DEFAULT_wxUSE_LIBJPEG=yes
2257 DEFAULT_wxUSE_LIBTIFF=yes
2258 DEFAULT_wxUSE_LIBXPM=yes
2259 DEFAULT_wxUSE_LIBMSPACK=yes
2260 DEFAULT_wxUSE_LIBSDL=no
d1c38808 2261 DEFAULT_wxUSE_LIBGNOMEPRINT=no
a848cd7e
SC
2262 DEFAULT_wxUSE_ODBC=no
2263 DEFAULT_wxUSE_OPENGL=no
2264
2265 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=yes
eaff0f0d 2266 DEFAULT_wxUSE_STACKWALKER=yes
a848cd7e
SC
2267 DEFAULT_wxUSE_SNGLINST_CHECKER=yes
2268 DEFAULT_wxUSE_STD_IOSTREAM=no
2269 DEFAULT_wxUSE_CMDLINE_PARSER=yes
2270 DEFAULT_wxUSE_DATETIME=yes
2271 DEFAULT_wxUSE_TIMER=yes
2272 DEFAULT_wxUSE_STOPWATCH=yes
2273 DEFAULT_wxUSE_FILE=yes
2274 DEFAULT_wxUSE_FFILE=yes
2275 DEFAULT_wxUSE_TEXTBUFFER=yes
2276 DEFAULT_wxUSE_TEXTFILE=yes
2277 DEFAULT_wxUSE_SOUND=yes
3b57de8b
RL
2278 DEFAULT_wxUSE_MEDIACTRL=no
2279 DEFAULT_wxUSE_DIRECTSHOW=no
a848cd7e
SC
2280 DEFAULT_wxUSE_INTL=yes
2281 DEFAULT_wxUSE_CONFIG=yes
2282 DEFAULT_wxUSE_FONTMAP=yes
2283 DEFAULT_wxUSE_STREAMS=yes
2284 DEFAULT_wxUSE_SOCKETS=yes
2285 DEFAULT_wxUSE_OLE=yes
2286 DEFAULT_wxUSE_DATAOBJ=yes
2287 DEFAULT_wxUSE_DIALUP_MANAGER=yes
2288 DEFAULT_wxUSE_JOYSTICK=yes
2289 DEFAULT_wxUSE_DYNLIB_CLASS=yes
2290 DEFAULT_wxUSE_DYNAMIC_LOADER=yes
2291 DEFAULT_wxUSE_LONGLONG=yes
2292 DEFAULT_wxUSE_GEOMETRY=yes
2293
2294 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes
2295 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes
2296 DEFAULT_wxUSE_POSTSCRIPT=yes
2297
2298 DEFAULT_wxUSE_CLIPBOARD=yes
2299 DEFAULT_wxUSE_TOOLTIPS=yes
2300 DEFAULT_wxUSE_DRAG_AND_DROP=yes
2301 DEFAULT_wxUSE_DRAGIMAGE=yes
2302 DEFAULT_wxUSE_SPLINES=yes
2303
8a7b1113 2304 DEFAULT_wxUSE_MDI=yes
a848cd7e
SC
2305 DEFAULT_wxUSE_MDI_ARCHITECTURE=yes
2306 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes
2307 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes
2308
2309 DEFAULT_wxUSE_RESOURCES=no
2310 DEFAULT_wxUSE_CONSTRAINTS=yes
2311 DEFAULT_wxUSE_IPC=yes
2312 DEFAULT_wxUSE_HELP=yes
2313 DEFAULT_wxUSE_MS_HTML_HELP=yes
2314 DEFAULT_wxUSE_WXHTML_HELP=yes
2315 DEFAULT_wxUSE_TREELAYOUT=yes
2316 DEFAULT_wxUSE_METAFILE=yes
2317 DEFAULT_wxUSE_MIMETYPE=yes
2318 DEFAULT_wxUSE_SYSTEM_OPTIONS=yes
2319 DEFAULT_wxUSE_PROTOCOL=yes
2320 DEFAULT_wxUSE_PROTOCOL_HTTP=yes
2321 DEFAULT_wxUSE_PROTOCOL_FTP=yes
2322 DEFAULT_wxUSE_PROTOCOL_FILE=yes
2323 DEFAULT_wxUSE_URL=yes
2324
2325 DEFAULT_wxUSE_COMMONDLGS=yes
2326 DEFAULT_wxUSE_CHOICEDLG=yes
2327 DEFAULT_wxUSE_COLOURDLG=yes
2328 DEFAULT_wxUSE_DIRDLG=yes
2329 DEFAULT_wxUSE_FILEDLG=yes
2330 DEFAULT_wxUSE_FINDREPLDLG=yes
2331 DEFAULT_wxUSE_FONTDLG=yes
2332 DEFAULT_wxUSE_MSGDLG=yes
2333 DEFAULT_wxUSE_NUMBERDLG=yes
2334 DEFAULT_wxUSE_TEXTDLG=yes
2335 DEFAULT_wxUSE_SPLASH=yes
2336 DEFAULT_wxUSE_STARTUP_TIPS=yes
2337 DEFAULT_wxUSE_PROGRESSDLG=yes
2338 DEFAULT_wxUSE_WIZARDDLG=yes
2339
2340 DEFAULT_wxUSE_MENUS=yes
2341 DEFAULT_wxUSE_MINIFRAME=yes
2342 DEFAULT_wxUSE_HTML=yes
9a8f0513 2343 DEFAULT_wxUSE_XRC=yes
646b6ec1 2344 DEFAULT_wxUSE_WEBKIT=yes
a848cd7e
SC
2345 DEFAULT_wxUSE_FILESYSTEM=yes
2346 DEFAULT_wxUSE_FS_INET=yes
2347 DEFAULT_wxUSE_FS_ZIP=yes
2348 DEFAULT_wxUSE_BUSYINFO=yes
2349 DEFAULT_wxUSE_ZIPSTREAM=yes
a848cd7e
SC
2350 DEFAULT_wxUSE_VALIDATORS=yes
2351
2352 DEFAULT_wxUSE_ACCEL=yes
2353 DEFAULT_wxUSE_BUTTON=yes
2354 DEFAULT_wxUSE_BMPBUTTON=yes
2355 DEFAULT_wxUSE_CALCTRL=yes
2356 DEFAULT_wxUSE_CARET=yes
2357 DEFAULT_wxUSE_CHECKBOX=yes
2358 DEFAULT_wxUSE_CHECKLST=yes
2359 DEFAULT_wxUSE_CHOICE=yes
92bbdbcd 2360 DEFAULT_wxUSE_CHOICEBOOK=yes
a848cd7e 2361 DEFAULT_wxUSE_COMBOBOX=yes
da98e9be 2362 DEFAULT_wxUSE_DATEPICKCTRL=yes
a848cd7e
SC
2363 DEFAULT_wxUSE_DISPLAY=yes
2364 DEFAULT_wxUSE_GAUGE=yes
2365 DEFAULT_wxUSE_GRID=yes
2366 DEFAULT_wxUSE_IMAGLIST=yes
2367 DEFAULT_wxUSE_LISTBOOK=yes
2368 DEFAULT_wxUSE_LISTBOX=yes
2369 DEFAULT_wxUSE_LISTCTRL=yes
2370 DEFAULT_wxUSE_NOTEBOOK=yes
2371 DEFAULT_wxUSE_RADIOBOX=yes
2372 DEFAULT_wxUSE_RADIOBTN=yes
2373 DEFAULT_wxUSE_SASH=yes
2374 DEFAULT_wxUSE_SCROLLBAR=yes
2375 DEFAULT_wxUSE_SLIDER=yes
2376 DEFAULT_wxUSE_SPINBTN=yes
2377 DEFAULT_wxUSE_SPINCTRL=yes
2378 DEFAULT_wxUSE_SPLITTER=yes
2379 DEFAULT_wxUSE_STATBMP=yes
2380 DEFAULT_wxUSE_STATBOX=yes
2381 DEFAULT_wxUSE_STATLINE=yes
2382 DEFAULT_wxUSE_STATTEXT=yes
2383 DEFAULT_wxUSE_STATUSBAR=yes
2384 DEFAULT_wxUSE_TABDIALOG=no
2385 DEFAULT_wxUSE_TEXTCTRL=yes
2386 DEFAULT_wxUSE_TOGGLEBTN=yes
2387 DEFAULT_wxUSE_TOOLBAR=yes
2388 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
2389 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
2390 DEFAULT_wxUSE_TREECTRL=yes
2391 DEFAULT_wxUSE_POPUPWIN=yes
2392 DEFAULT_wxUSE_TIPWINDOW=yes
2393
2394 DEFAULT_wxUSE_UNICODE=no
2395 DEFAULT_wxUSE_UNICODE_MSLU=yes
2396 DEFAULT_wxUSE_WCSRTOMBS=no
2397
2398 DEFAULT_wxUSE_PALETTE=yes
2399 DEFAULT_wxUSE_IMAGE=yes
2400 DEFAULT_wxUSE_GIF=yes
2401 DEFAULT_wxUSE_PCX=yes
2402 DEFAULT_wxUSE_IFF=no
2403 DEFAULT_wxUSE_PNM=yes
2404 DEFAULT_wxUSE_XPM=yes
2405 DEFAULT_wxUSE_ICO_CUR=yes
2406 DEFAULT_wxUSE_ACCESSIBILITY=no
2407
2408 DEFAULT_wxUSE_MONOLITHIC=no
2409 DEFAULT_wxUSE_PLUGINS=no
2410 DEFAULT_wxUSE_OFFICIAL_BUILD=no
9f45f08e
VS
2411
2412 DEFAULT_wxUSE_GTK2=yes
a848cd7e
SC
2413fi
2414
2415
2416
2417for toolkit in `echo $ALL_TOOLKITS`; do
2418 LINE=`grep "wxUSE_$toolkit=" ${wx_arg_cache_file}`
2419 if test "x$LINE" != "x" ; then
2420 has_toolkit_in_cache=1
2421 eval "DEFAULT_$LINE"
2422 eval "CACHE_$toolkit=1"
2423 fi
2424done
2425
2426
2427
2428 enablestring=
2429 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gui" >&5
2430echo $ECHO_N "checking for --${enablestring:-enable}-gui... $ECHO_C" >&6
2431 no_cache=0
2432 # Check whether --enable-gui or --disable-gui was given.
2433if test "${enable_gui+set}" = set; then
2434 enableval="$enable_gui"
2435
2436 if test "$enableval" = yes; then
2437 ac_cv_use_gui='wxUSE_GUI=yes'
2438 else
2439 ac_cv_use_gui='wxUSE_GUI=no'
2440 fi
2441
2442else
2443
2444 LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}`
2445 if test "x$LINE" != x ; then
2446 eval "DEFAULT_$LINE"
2447 else
2448 no_cache=1
2449 fi
2450
2451 ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI
2452
2453fi;
2454
2455 eval "$ac_cv_use_gui"
2456 if test "$no_cache" != 1; then
2457 echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp
2458 fi
2459
2460 if test "$wxUSE_GUI" = yes; then
2461 echo "$as_me:$LINENO: result: yes" >&5
2462echo "${ECHO_T}yes" >&6
2463 else
2464 echo "$as_me:$LINENO: result: no" >&5
2465echo "${ECHO_T}no" >&6
2466 fi
2467
2468
2469 enablestring=
2470 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-monolithic" >&5
2471echo $ECHO_N "checking for --${enablestring:-enable}-monolithic... $ECHO_C" >&6
2472 no_cache=0
2473 # Check whether --enable-monolithic or --disable-monolithic was given.
2474if test "${enable_monolithic+set}" = set; then
2475 enableval="$enable_monolithic"
2476
2477 if test "$enableval" = yes; then
2478 ac_cv_use_monolithic='wxUSE_MONOLITHIC=yes'
2479 else
2480 ac_cv_use_monolithic='wxUSE_MONOLITHIC=no'
2481 fi
2482
2483else
2484
2485 LINE=`grep "wxUSE_MONOLITHIC" ${wx_arg_cache_file}`
2486 if test "x$LINE" != x ; then
2487 eval "DEFAULT_$LINE"
2488 else
2489 no_cache=1
2490 fi
2491
2492 ac_cv_use_monolithic='wxUSE_MONOLITHIC='$DEFAULT_wxUSE_MONOLITHIC
2493
2494fi;
2495
2496 eval "$ac_cv_use_monolithic"
2497 if test "$no_cache" != 1; then
2498 echo $ac_cv_use_monolithic >> ${wx_arg_cache_file}.tmp
2499 fi
2500
2501 if test "$wxUSE_MONOLITHIC" = yes; then
2502 echo "$as_me:$LINENO: result: yes" >&5
2503echo "${ECHO_T}yes" >&6
2504 else
2505 echo "$as_me:$LINENO: result: no" >&5
2506echo "${ECHO_T}no" >&6
2507 fi
2508
2509
2510 enablestring=
2511 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-plugins" >&5
2512echo $ECHO_N "checking for --${enablestring:-enable}-plugins... $ECHO_C" >&6
2513 no_cache=0
2514 # Check whether --enable-plugins or --disable-plugins was given.
2515if test "${enable_plugins+set}" = set; then
2516 enableval="$enable_plugins"
2517
2518 if test "$enableval" = yes; then
2519 ac_cv_use_plugins='wxUSE_PLUGINS=yes'
2520 else
2521 ac_cv_use_plugins='wxUSE_PLUGINS=no'
2522 fi
2523
2524else
2525
2526 LINE=`grep "wxUSE_PLUGINS" ${wx_arg_cache_file}`
2527 if test "x$LINE" != x ; then
2528 eval "DEFAULT_$LINE"
2529 else
2530 no_cache=1
2531 fi
2532
2533 ac_cv_use_plugins='wxUSE_PLUGINS='$DEFAULT_wxUSE_PLUGINS
2534
2535fi;
2536
2537 eval "$ac_cv_use_plugins"
2538 if test "$no_cache" != 1; then
2539 echo $ac_cv_use_plugins >> ${wx_arg_cache_file}.tmp
2540 fi
2541
2542 if test "$wxUSE_PLUGINS" = yes; then
2543 echo "$as_me:$LINENO: result: yes" >&5
2544echo "${ECHO_T}yes" >&6
2545 else
2546 echo "$as_me:$LINENO: result: no" >&5
2547echo "${ECHO_T}no" >&6
2548 fi
2549
2550
2551if test "$wxUSE_GUI" = "yes"; then
2552
2553
2554 enablestring=
2555 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-universal" >&5
2556echo $ECHO_N "checking for --${enablestring:-enable}-universal... $ECHO_C" >&6
2557 no_cache=0
2558 # Check whether --enable-universal or --disable-universal was given.
2559if test "${enable_universal+set}" = set; then
2560 enableval="$enable_universal"
2561
2562 if test "$enableval" = yes; then
2563 ac_cv_use_universal='wxUSE_UNIVERSAL=yes'
2564 else
2565 ac_cv_use_universal='wxUSE_UNIVERSAL=no'
2566 fi
2567
2568else
2569
2570 LINE=`grep "wxUSE_UNIVERSAL" ${wx_arg_cache_file}`
2571 if test "x$LINE" != x ; then
2572 eval "DEFAULT_$LINE"
2573 else
2574 no_cache=1
2575 fi
2576
2577 ac_cv_use_universal='wxUSE_UNIVERSAL='$DEFAULT_wxUSE_UNIVERSAL
2578
2579fi;
2580
2581 eval "$ac_cv_use_universal"
2582 if test "$no_cache" != 1; then
2583 echo $ac_cv_use_universal >> ${wx_arg_cache_file}.tmp
2584 fi
2585
2586 if test "$wxUSE_UNIVERSAL" = yes; then
2587 echo "$as_me:$LINENO: result: yes" >&5
2588echo "${ECHO_T}yes" >&6
2589 else
2590 echo "$as_me:$LINENO: result: no" >&5
2591echo "${ECHO_T}no" >&6
2592 fi
2593
2594
2595# Check whether --with-gtk or --without-gtk was given.
2596if test "${with_gtk+set}" = set; then
2597 withval="$with_gtk"
2598 wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1
2599fi;
2600
2601# Check whether --with-motif or --without-motif was given.
2602if test "${with_motif+set}" = set; then
2603 withval="$with_motif"
2604 wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1
2605fi;
2606
2607# Check whether --with-mac or --without-mac was given.
2608if test "${with_mac+set}" = set; then
2609 withval="$with_mac"
c228d3a4 2610 wxUSE_MAC="$withval" CACHE_MAC=1 TOOLKIT_GIVEN=1
a848cd7e
SC
2611fi;
2612
2613# Check whether --with-cocoa or --without-cocoa was given.
2614if test "${with_cocoa+set}" = set; then
2615 withval="$with_cocoa"
c228d3a4 2616 wxUSE_COCOA="$withval" CACHE_COCOA=1 TOOLKIT_GIVEN=1
a848cd7e
SC
2617fi;
2618
2619# Check whether --with-wine or --without-wine was given.
2620if test "${with_wine+set}" = set; then
2621 withval="$with_wine"
2622 wxUSE_WINE="$withval" CACHE_WINE=1
2623fi;
2624
2625# Check whether --with-msw or --without-msw was given.
2626if test "${with_msw+set}" = set; then
2627 withval="$with_msw"
2628 wxUSE_MSW="$withval" CACHE_MSW=1 TOOLKIT_GIVEN=1
2629fi;
2630
2631# Check whether --with-pm or --without-pm was given.
2632if test "${with_pm+set}" = set; then
2633 withval="$with_pm"
2634 wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1
2635fi;
2636
2637# Check whether --with-mgl or --without-mgl was given.
2638if test "${with_mgl+set}" = set; then
2639 withval="$with_mgl"
2640 wxUSE_MGL="$withval" wxUSE_UNIVERSAL="yes" CACHE_MGL=1 TOOLKIT_GIVEN=1
2641fi;
2642
2643# Check whether --with-microwin or --without-microwin was given.
2644if test "${with_microwin+set}" = set; then
2645 withval="$with_microwin"
2646 wxUSE_MICROWIN="$withval" CACHE_MICROWIN=1 TOOLKIT_GIVEN=1
2647fi;
2648
2649# Check whether --with-x11 or --without-x11 was given.
2650if test "${with_x11+set}" = set; then
2651 withval="$with_x11"
2652 wxUSE_X11="$withval" wxUSE_UNIVERSAL="yes" CACHE_X11=1 TOOLKIT_GIVEN=1
2653fi;
2654
2655 enablestring=
2656 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-nanox" >&5
2657echo $ECHO_N "checking for --${enablestring:-enable}-nanox... $ECHO_C" >&6
2658 no_cache=0
2659 # Check whether --enable-nanox or --disable-nanox was given.
2660if test "${enable_nanox+set}" = set; then
2661 enableval="$enable_nanox"
2662
2663 if test "$enableval" = yes; then
2664 ac_cv_use_nanox='wxUSE_NANOX=yes'
2665 else
2666 ac_cv_use_nanox='wxUSE_NANOX=no'
2667 fi
2668
2669else
2670
2671 LINE=`grep "wxUSE_NANOX" ${wx_arg_cache_file}`
2672 if test "x$LINE" != x ; then
2673 eval "DEFAULT_$LINE"
2674 else
2675 no_cache=1
2676 fi
2677
2678 ac_cv_use_nanox='wxUSE_NANOX='$DEFAULT_wxUSE_NANOX
2679
2680fi;
2681
2682 eval "$ac_cv_use_nanox"
2683 if test "$no_cache" != 1; then
2684 echo $ac_cv_use_nanox >> ${wx_arg_cache_file}.tmp
2685 fi
2686
2687 if test "$wxUSE_NANOX" = yes; then
2688 echo "$as_me:$LINENO: result: yes" >&5
2689echo "${ECHO_T}yes" >&6
2690 else
2691 echo "$as_me:$LINENO: result: no" >&5
2692echo "${ECHO_T}no" >&6
2693 fi
2694
2695
2696
2697 enablestring=
2698 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gtk2" >&5
2699echo $ECHO_N "checking for --${enablestring:-enable}-gtk2... $ECHO_C" >&6
2700 no_cache=0
2701 # Check whether --enable-gtk2 or --disable-gtk2 was given.
2702if test "${enable_gtk2+set}" = set; then
2703 enableval="$enable_gtk2"
2704
2705 if test "$enableval" = yes; then
2706 ac_cv_use_gtk2='wxUSE_GTK2=yes'
2707 else
2708 ac_cv_use_gtk2='wxUSE_GTK2=no'
2709 fi
2710
2711else
2712
2713 LINE=`grep "wxUSE_GTK2" ${wx_arg_cache_file}`
2714 if test "x$LINE" != x ; then
2715 eval "DEFAULT_$LINE"
2716 else
2717 no_cache=1
2718 fi
2719
2720 ac_cv_use_gtk2='wxUSE_GTK2='$DEFAULT_wxUSE_GTK2
2721
2722fi;
2723
2724 eval "$ac_cv_use_gtk2"
2725 if test "$no_cache" != 1; then
2726 echo $ac_cv_use_gtk2 >> ${wx_arg_cache_file}.tmp
2727 fi
2728
2729 if test "$wxUSE_GTK2" = yes; then
2730 echo "$as_me:$LINENO: result: yes" >&5
2731echo "${ECHO_T}yes" >&6
2732 else
2733 echo "$as_me:$LINENO: result: no" >&5
2734echo "${ECHO_T}no" >&6
2735 fi
2736
2737
2738 enablestring=
2739 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gpe" >&5
2740echo $ECHO_N "checking for --${enablestring:-enable}-gpe... $ECHO_C" >&6
2741 no_cache=0
2742 # Check whether --enable-gpe or --disable-gpe was given.
2743if test "${enable_gpe+set}" = set; then
2744 enableval="$enable_gpe"
2745
2746 if test "$enableval" = yes; then
2747 ac_cv_use_gpe='wxUSE_GPE=yes'
2748 else
2749 ac_cv_use_gpe='wxUSE_GPE=no'
2750 fi
2751
2752else
2753
2754 LINE=`grep "wxUSE_GPE" ${wx_arg_cache_file}`
2755 if test "x$LINE" != x ; then
2756 eval "DEFAULT_$LINE"
2757 else
2758 no_cache=1
2759 fi
2760
2761 ac_cv_use_gpe='wxUSE_GPE='$DEFAULT_wxUSE_GPE
2762
2763fi;
2764
2765 eval "$ac_cv_use_gpe"
2766 if test "$no_cache" != 1; then
2767 echo $ac_cv_use_gpe >> ${wx_arg_cache_file}.tmp
2768 fi
2769
2770 if test "$wxUSE_GPE" = yes; then
2771 echo "$as_me:$LINENO: result: yes" >&5
2772echo "${ECHO_T}yes" >&6
2773 else
2774 echo "$as_me:$LINENO: result: no" >&5
2775echo "${ECHO_T}no" >&6
2776 fi
2777
2778
2779
2780 echo "$as_me:$LINENO: checking for --with-libpng" >&5
2781echo $ECHO_N "checking for --with-libpng... $ECHO_C" >&6
2782 no_cache=0
2783
2784# Check whether --with-libpng or --without-libpng was given.
2785if test "${with_libpng+set}" = set; then
2786 withval="$with_libpng"
2787
2788 if test "$withval" = yes; then
2789 ac_cv_use_libpng='wxUSE_LIBPNG=yes'
2790 elif test "$withval" = no; then
2791 ac_cv_use_libpng='wxUSE_LIBPNG=no'
2792 elif test "$withval" = sys; then
2793 ac_cv_use_libpng='wxUSE_LIBPNG=sys'
2794 elif test "$withval" = builtin; then
2795 ac_cv_use_libpng='wxUSE_LIBPNG=builtin'
2796 else
2797 { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5
2798echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;}
2799 { (exit 1); exit 1; }; }
2800 fi
2801
2802else
2803
2804 LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}`
2805 if test "x$LINE" != x ; then
2806 eval "DEFAULT_$LINE"
2807 else
2808 no_cache=1
2809 fi
2810
2811 ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG
2812
2813fi;
2814
2815 eval "$ac_cv_use_libpng"
2816 if test "$no_cache" != 1; then
2817 echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp
2818 fi
2819
2820 if test "$wxUSE_LIBPNG" = yes; then
2821 echo "$as_me:$LINENO: result: yes" >&5
2822echo "${ECHO_T}yes" >&6
2823 elif test "$wxUSE_LIBPNG" = no; then
2824 echo "$as_me:$LINENO: result: no" >&5
2825echo "${ECHO_T}no" >&6
2826 elif test "$wxUSE_LIBPNG" = sys; then
2827 echo "$as_me:$LINENO: result: system version" >&5
2828echo "${ECHO_T}system version" >&6
2829 elif test "$wxUSE_LIBPNG" = builtin; then
2830 echo "$as_me:$LINENO: result: builtin version" >&5
2831echo "${ECHO_T}builtin version" >&6
2832 else
2833 { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5
2834echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;}
2835 { (exit 1); exit 1; }; }
2836 fi
2837
2838
2839 echo "$as_me:$LINENO: checking for --with-libjpeg" >&5
2840echo $ECHO_N "checking for --with-libjpeg... $ECHO_C" >&6
2841 no_cache=0
2842
2843# Check whether --with-libjpeg or --without-libjpeg was given.
2844if test "${with_libjpeg+set}" = set; then
2845 withval="$with_libjpeg"
2846
2847 if test "$withval" = yes; then
2848 ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes'
2849 elif test "$withval" = no; then
2850 ac_cv_use_libjpeg='wxUSE_LIBJPEG=no'
2851 elif test "$withval" = sys; then
2852 ac_cv_use_libjpeg='wxUSE_LIBJPEG=sys'
2853 elif test "$withval" = builtin; then
2854 ac_cv_use_libjpeg='wxUSE_LIBJPEG=builtin'
2855 else
2856 { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5
2857echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;}
2858 { (exit 1); exit 1; }; }
2859 fi
2860
2861else
2862
2863 LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}`
2864 if test "x$LINE" != x ; then
2865 eval "DEFAULT_$LINE"
2866 else
2867 no_cache=1
2868 fi
2869
2870 ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG
2871
2872fi;
2873
2874 eval "$ac_cv_use_libjpeg"
2875 if test "$no_cache" != 1; then
2876 echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp
2877 fi
2878
2879 if test "$wxUSE_LIBJPEG" = yes; then
2880 echo "$as_me:$LINENO: result: yes" >&5
2881echo "${ECHO_T}yes" >&6
2882 elif test "$wxUSE_LIBJPEG" = no; then
2883 echo "$as_me:$LINENO: result: no" >&5
2884echo "${ECHO_T}no" >&6
2885 elif test "$wxUSE_LIBJPEG" = sys; then
2886 echo "$as_me:$LINENO: result: system version" >&5
2887echo "${ECHO_T}system version" >&6
2888 elif test "$wxUSE_LIBJPEG" = builtin; then
2889 echo "$as_me:$LINENO: result: builtin version" >&5
2890echo "${ECHO_T}builtin version" >&6
2891 else
2892 { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5
2893echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;}
2894 { (exit 1); exit 1; }; }
2895 fi
2896
2897
2898 echo "$as_me:$LINENO: checking for --with-libtiff" >&5
2899echo $ECHO_N "checking for --with-libtiff... $ECHO_C" >&6
2900 no_cache=0
2901
2902# Check whether --with-libtiff or --without-libtiff was given.
2903if test "${with_libtiff+set}" = set; then
2904 withval="$with_libtiff"
2905
2906 if test "$withval" = yes; then
2907 ac_cv_use_libtiff='wxUSE_LIBTIFF=yes'
2908 elif test "$withval" = no; then
2909 ac_cv_use_libtiff='wxUSE_LIBTIFF=no'
2910 elif test "$withval" = sys; then
2911 ac_cv_use_libtiff='wxUSE_LIBTIFF=sys'
2912 elif test "$withval" = builtin; then
2913 ac_cv_use_libtiff='wxUSE_LIBTIFF=builtin'
2914 else
2915 { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5
2916echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;}
2917 { (exit 1); exit 1; }; }
2918 fi
2919
2920else
2921
2922 LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}`
2923 if test "x$LINE" != x ; then
2924 eval "DEFAULT_$LINE"
2925 else
2926 no_cache=1
2927 fi
2928
2929 ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF
2930
2931fi;
2932
2933 eval "$ac_cv_use_libtiff"
2934 if test "$no_cache" != 1; then
2935 echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp
2936 fi
2937
2938 if test "$wxUSE_LIBTIFF" = yes; then
2939 echo "$as_me:$LINENO: result: yes" >&5
2940echo "${ECHO_T}yes" >&6
2941 elif test "$wxUSE_LIBTIFF" = no; then
2942 echo "$as_me:$LINENO: result: no" >&5
2943echo "${ECHO_T}no" >&6
2944 elif test "$wxUSE_LIBTIFF" = sys; then
2945 echo "$as_me:$LINENO: result: system version" >&5
2946echo "${ECHO_T}system version" >&6
2947 elif test "$wxUSE_LIBTIFF" = builtin; then
2948 echo "$as_me:$LINENO: result: builtin version" >&5
2949echo "${ECHO_T}builtin version" >&6
2950 else
2951 { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5
2952echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;}
2953 { (exit 1); exit 1; }; }
2954 fi
2955
2956
2957 echo "$as_me:$LINENO: checking for --with-libxpm" >&5
2958echo $ECHO_N "checking for --with-libxpm... $ECHO_C" >&6
2959 no_cache=0
2960
2961# Check whether --with-libxpm or --without-libxpm was given.
2962if test "${with_libxpm+set}" = set; then
2963 withval="$with_libxpm"
2964
2965 if test "$withval" = yes; then
2966 ac_cv_use_libxpm='wxUSE_LIBXPM=yes'
2967 elif test "$withval" = no; then
2968 ac_cv_use_libxpm='wxUSE_LIBXPM=no'
2969 elif test "$withval" = sys; then
2970 ac_cv_use_libxpm='wxUSE_LIBXPM=sys'
2971 elif test "$withval" = builtin; then
2972 ac_cv_use_libxpm='wxUSE_LIBXPM=builtin'
2973 else
2974 { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5
2975echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;}
2976 { (exit 1); exit 1; }; }
2977 fi
2978
2979else
2980
2981 LINE=`grep "wxUSE_LIBXPM" ${wx_arg_cache_file}`
2982 if test "x$LINE" != x ; then
2983 eval "DEFAULT_$LINE"
2984 else
2985 no_cache=1
2986 fi
2987
2988 ac_cv_use_libxpm='wxUSE_LIBXPM='$DEFAULT_wxUSE_LIBXPM
2989
2990fi;
2991
2992 eval "$ac_cv_use_libxpm"
2993 if test "$no_cache" != 1; then
2994 echo $ac_cv_use_libxpm >> ${wx_arg_cache_file}.tmp
2995 fi
2996
2997 if test "$wxUSE_LIBXPM" = yes; then
2998 echo "$as_me:$LINENO: result: yes" >&5
2999echo "${ECHO_T}yes" >&6
3000 elif test "$wxUSE_LIBXPM" = no; then
3001 echo "$as_me:$LINENO: result: no" >&5
3002echo "${ECHO_T}no" >&6
3003 elif test "$wxUSE_LIBXPM" = sys; then
3004 echo "$as_me:$LINENO: result: system version" >&5
3005echo "${ECHO_T}system version" >&6
3006 elif test "$wxUSE_LIBXPM" = builtin; then
3007 echo "$as_me:$LINENO: result: builtin version" >&5
3008echo "${ECHO_T}builtin version" >&6
3009 else
3010 { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5
3011echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;}
3012 { (exit 1); exit 1; }; }
3013 fi
3014
3015
3016 echo "$as_me:$LINENO: checking for --with-libmspack" >&5
3017echo $ECHO_N "checking for --with-libmspack... $ECHO_C" >&6
3018 no_cache=0
3019
3020# Check whether --with-libmspack or --without-libmspack was given.
3021if test "${with_libmspack+set}" = set; then
3022 withval="$with_libmspack"
3023
3024 if test "$withval" = yes; then
3025 ac_cv_use_libmspack='wxUSE_LIBMSPACK=yes'
3026 else
3027 ac_cv_use_libmspack='wxUSE_LIBMSPACK=no'
3028 fi
3029
3030else
3031
3032 LINE=`grep "wxUSE_LIBMSPACK" ${wx_arg_cache_file}`
3033 if test "x$LINE" != x ; then
3034 eval "DEFAULT_$LINE"
3035 else
3036 no_cache=1
3037 fi
3038
3039 ac_cv_use_libmspack='wxUSE_LIBMSPACK='$DEFAULT_wxUSE_LIBMSPACK
3040
3041fi;
3042
3043 eval "$ac_cv_use_libmspack"
3044 if test "$no_cache" != 1; then
3045 echo $ac_cv_use_libmspack >> ${wx_arg_cache_file}.tmp
3046 fi
3047
3048 if test "$wxUSE_LIBMSPACK" = yes; then
3049 echo "$as_me:$LINENO: result: yes" >&5
3050echo "${ECHO_T}yes" >&6
3051 else
3052 echo "$as_me:$LINENO: result: no" >&5
3053echo "${ECHO_T}no" >&6
3054 fi
3055
3056
3057 echo "$as_me:$LINENO: checking for --with-sdl" >&5
3058echo $ECHO_N "checking for --with-sdl... $ECHO_C" >&6
3059 no_cache=0
3060
3061# Check whether --with-sdl or --without-sdl was given.
3062if test "${with_sdl+set}" = set; then
3063 withval="$with_sdl"
3064
3065 if test "$withval" = yes; then
3066 ac_cv_use_sdl='wxUSE_LIBSDL=yes'
3067 else
3068 ac_cv_use_sdl='wxUSE_LIBSDL=no'
3069 fi
3070
3071else
3072
3073 LINE=`grep "wxUSE_LIBSDL" ${wx_arg_cache_file}`
3074 if test "x$LINE" != x ; then
3075 eval "DEFAULT_$LINE"
3076 else
3077 no_cache=1
3078 fi
3079
3080 ac_cv_use_sdl='wxUSE_LIBSDL='$DEFAULT_wxUSE_LIBSDL
3081
3082fi;
3083
3084 eval "$ac_cv_use_sdl"
3085 if test "$no_cache" != 1; then
3086 echo $ac_cv_use_sdl >> ${wx_arg_cache_file}.tmp
3087 fi
3088
3089 if test "$wxUSE_LIBSDL" = yes; then
3090 echo "$as_me:$LINENO: result: yes" >&5
3091echo "${ECHO_T}yes" >&6
3092 else
3093 echo "$as_me:$LINENO: result: no" >&5
3094echo "${ECHO_T}no" >&6
3095 fi
3096
3097
d1c38808
VZ
3098 echo "$as_me:$LINENO: checking for --with-gnomeprint" >&5
3099echo $ECHO_N "checking for --with-gnomeprint... $ECHO_C" >&6
3100 no_cache=0
3101
3102# Check whether --with-gnomeprint or --without-gnomeprint was given.
3103if test "${with_gnomeprint+set}" = set; then
3104 withval="$with_gnomeprint"
3105
3106 if test "$withval" = yes; then
3107 ac_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT=yes'
3108 else
3109 ac_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT=no'
3110 fi
3111
3112else
3113
3114 LINE=`grep "wxUSE_LIBGNOMEPRINT" ${wx_arg_cache_file}`
3115 if test "x$LINE" != x ; then
3116 eval "DEFAULT_$LINE"
3117 else
3118 no_cache=1
3119 fi
3120
3121 ac_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT='$DEFAULT_wxUSE_LIBGNOMEPRINT
3122
3123fi;
3124
3125 eval "$ac_cv_use_gnomeprint"
3126 if test "$no_cache" != 1; then
3127 echo $ac_cv_use_gnomeprint >> ${wx_arg_cache_file}.tmp
3128 fi
3129
3130 if test "$wxUSE_LIBGNOMEPRINT" = yes; then
3131 echo "$as_me:$LINENO: result: yes" >&5
3132echo "${ECHO_T}yes" >&6
3133 else
3134 echo "$as_me:$LINENO: result: no" >&5
3135echo "${ECHO_T}no" >&6
3136 fi
3137
3138
a848cd7e
SC
3139 echo "$as_me:$LINENO: checking for --with-opengl" >&5
3140echo $ECHO_N "checking for --with-opengl... $ECHO_C" >&6
3141 no_cache=0
3142
3143# Check whether --with-opengl or --without-opengl was given.
3144if test "${with_opengl+set}" = set; then
3145 withval="$with_opengl"
3146
3147 if test "$withval" = yes; then
3148 ac_cv_use_opengl='wxUSE_OPENGL=yes'
3149 else
3150 ac_cv_use_opengl='wxUSE_OPENGL=no'
3151 fi
3152
3153else
3154
3155 LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}`
3156 if test "x$LINE" != x ; then
3157 eval "DEFAULT_$LINE"
3158 else
3159 no_cache=1
3160 fi
3161
3162 ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL
3163
3164fi;
3165
3166 eval "$ac_cv_use_opengl"
3167 if test "$no_cache" != 1; then
3168 echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp
3169 fi
3170
3171 if test "$wxUSE_OPENGL" = yes; then
3172 echo "$as_me:$LINENO: result: yes" >&5
3173echo "${ECHO_T}yes" >&6
3174 else
3175 echo "$as_me:$LINENO: result: no" >&5
3176echo "${ECHO_T}no" >&6
3177 fi
3178
3179
3180fi
3181
3182
3183 echo "$as_me:$LINENO: checking for --with-dmalloc" >&5
3184echo $ECHO_N "checking for --with-dmalloc... $ECHO_C" >&6
3185 no_cache=0
3186
3187# Check whether --with-dmalloc or --without-dmalloc was given.
3188if test "${with_dmalloc+set}" = set; then
3189 withval="$with_dmalloc"
3190
3191 if test "$withval" = yes; then
3192 ac_cv_use_dmalloc='wxUSE_DMALLOC=yes'
3193 else
3194 ac_cv_use_dmalloc='wxUSE_DMALLOC=no'
3195 fi
3196
3197else
3198
3199 LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}`
3200 if test "x$LINE" != x ; then
3201 eval "DEFAULT_$LINE"
3202 else
3203 no_cache=1
3204 fi
3205
3206 ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC
3207
3208fi;
3209
3210 eval "$ac_cv_use_dmalloc"
3211 if test "$no_cache" != 1; then
3212 echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp
3213 fi
3214
3215 if test "$wxUSE_DMALLOC" = yes; then
3216 echo "$as_me:$LINENO: result: yes" >&5
3217echo "${ECHO_T}yes" >&6
3218 else
3219 echo "$as_me:$LINENO: result: no" >&5
3220echo "${ECHO_T}no" >&6
3221 fi
3222
3223
3224 echo "$as_me:$LINENO: checking for --with-regex" >&5
3225echo $ECHO_N "checking for --with-regex... $ECHO_C" >&6
3226 no_cache=0
3227
3228# Check whether --with-regex or --without-regex was given.
3229if test "${with_regex+set}" = set; then
3230 withval="$with_regex"
3231
3232 if test "$withval" = yes; then
3233 ac_cv_use_regex='wxUSE_REGEX=yes'
3234 elif test "$withval" = no; then
3235 ac_cv_use_regex='wxUSE_REGEX=no'
3236 elif test "$withval" = sys; then
3237 ac_cv_use_regex='wxUSE_REGEX=sys'
3238 elif test "$withval" = builtin; then
3239 ac_cv_use_regex='wxUSE_REGEX=builtin'
3240 else
3241 { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5
3242echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;}
3243 { (exit 1); exit 1; }; }
3244 fi
3245
3246else
3247
3248 LINE=`grep "wxUSE_REGEX" ${wx_arg_cache_file}`
3249 if test "x$LINE" != x ; then
3250 eval "DEFAULT_$LINE"
3251 else
3252 no_cache=1
3253 fi
3254
3255 ac_cv_use_regex='wxUSE_REGEX='$DEFAULT_wxUSE_REGEX
3256
3257fi;
3258
3259 eval "$ac_cv_use_regex"
3260 if test "$no_cache" != 1; then
3261 echo $ac_cv_use_regex >> ${wx_arg_cache_file}.tmp
3262 fi
3263
3264 if test "$wxUSE_REGEX" = yes; then
3265 echo "$as_me:$LINENO: result: yes" >&5
3266echo "${ECHO_T}yes" >&6
3267 elif test "$wxUSE_REGEX" = no; then
3268 echo "$as_me:$LINENO: result: no" >&5
3269echo "${ECHO_T}no" >&6
3270 elif test "$wxUSE_REGEX" = sys; then
3271 echo "$as_me:$LINENO: result: system version" >&5
3272echo "${ECHO_T}system version" >&6
3273 elif test "$wxUSE_REGEX" = builtin; then
3274 echo "$as_me:$LINENO: result: builtin version" >&5
3275echo "${ECHO_T}builtin version" >&6
3276 else
3277 { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5
3278echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;}
3279 { (exit 1); exit 1; }; }
3280 fi
3281
3282
3283 echo "$as_me:$LINENO: checking for --with-zlib" >&5
3284echo $ECHO_N "checking for --with-zlib... $ECHO_C" >&6
3285 no_cache=0
3286
3287# Check whether --with-zlib or --without-zlib was given.
3288if test "${with_zlib+set}" = set; then
3289 withval="$with_zlib"
3290
3291 if test "$withval" = yes; then
3292 ac_cv_use_zlib='wxUSE_ZLIB=yes'
3293 elif test "$withval" = no; then
3294 ac_cv_use_zlib='wxUSE_ZLIB=no'
3295 elif test "$withval" = sys; then
3296 ac_cv_use_zlib='wxUSE_ZLIB=sys'
3297 elif test "$withval" = builtin; then
3298 ac_cv_use_zlib='wxUSE_ZLIB=builtin'
3299 else
3300 { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5
3301echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;}
3302 { (exit 1); exit 1; }; }
3303 fi
3304
3305else
3306
3307 LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}`
3308 if test "x$LINE" != x ; then
3309 eval "DEFAULT_$LINE"
3310 else
3311 no_cache=1
3312 fi
3313
3314 ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB
3315
3316fi;
3317
3318 eval "$ac_cv_use_zlib"
3319 if test "$no_cache" != 1; then
3320 echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp
3321 fi
3322
3323 if test "$wxUSE_ZLIB" = yes; then
3324 echo "$as_me:$LINENO: result: yes" >&5
3325echo "${ECHO_T}yes" >&6
3326 elif test "$wxUSE_ZLIB" = no; then
3327 echo "$as_me:$LINENO: result: no" >&5
3328echo "${ECHO_T}no" >&6
3329 elif test "$wxUSE_ZLIB" = sys; then
3330 echo "$as_me:$LINENO: result: system version" >&5
3331echo "${ECHO_T}system version" >&6
3332 elif test "$wxUSE_ZLIB" = builtin; then
3333 echo "$as_me:$LINENO: result: builtin version" >&5
3334echo "${ECHO_T}builtin version" >&6
3335 else
3336 { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5
3337echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;}
3338 { (exit 1); exit 1; }; }
3339 fi
3340
3341
3342 echo "$as_me:$LINENO: checking for --with-odbc" >&5
3343echo $ECHO_N "checking for --with-odbc... $ECHO_C" >&6
3344 no_cache=0
3345
3346# Check whether --with-odbc or --without-odbc was given.
3347if test "${with_odbc+set}" = set; then
3348 withval="$with_odbc"
3349
3350 if test "$withval" = yes; then
3351 ac_cv_use_odbc='wxUSE_ODBC=yes'
3352 elif test "$withval" = no; then
3353 ac_cv_use_odbc='wxUSE_ODBC=no'
3354 elif test "$withval" = sys; then
3355 ac_cv_use_odbc='wxUSE_ODBC=sys'
3356 elif test "$withval" = builtin; then
3357 ac_cv_use_odbc='wxUSE_ODBC=builtin'
3358 else
3359 { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5
3360echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;}
3361 { (exit 1); exit 1; }; }
3362 fi
3363
3364else
3365
3366 LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}`
3367 if test "x$LINE" != x ; then
3368 eval "DEFAULT_$LINE"
3369 else
3370 no_cache=1
3371 fi
3372
3373 ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC
3374
3375fi;
3376
3377 eval "$ac_cv_use_odbc"
3378 if test "$no_cache" != 1; then
3379 echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp
3380 fi
3381
3382 if test "$wxUSE_ODBC" = yes; then
3383 echo "$as_me:$LINENO: result: yes" >&5
3384echo "${ECHO_T}yes" >&6
3385 elif test "$wxUSE_ODBC" = no; then
3386 echo "$as_me:$LINENO: result: no" >&5
3387echo "${ECHO_T}no" >&6
3388 elif test "$wxUSE_ODBC" = sys; then
3389 echo "$as_me:$LINENO: result: system version" >&5
3390echo "${ECHO_T}system version" >&6
3391 elif test "$wxUSE_ODBC" = builtin; then
3392 echo "$as_me:$LINENO: result: builtin version" >&5
3393echo "${ECHO_T}builtin version" >&6
3394 else
3395 { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5
3396echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;}
3397 { (exit 1); exit 1; }; }
3398 fi
3399
3400
3401 echo "$as_me:$LINENO: checking for --with-expat" >&5
3402echo $ECHO_N "checking for --with-expat... $ECHO_C" >&6
3403 no_cache=0
3404
3405# Check whether --with-expat or --without-expat was given.
3406if test "${with_expat+set}" = set; then
3407 withval="$with_expat"
3408
3409 if test "$withval" = yes; then
3410 ac_cv_use_expat='wxUSE_EXPAT=yes'
3411 elif test "$withval" = no; then
3412 ac_cv_use_expat='wxUSE_EXPAT=no'
3413 elif test "$withval" = sys; then
3414 ac_cv_use_expat='wxUSE_EXPAT=sys'
3415 elif test "$withval" = builtin; then
3416 ac_cv_use_expat='wxUSE_EXPAT=builtin'
3417 else
3418 { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5
3419echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;}
3420 { (exit 1); exit 1; }; }
3421 fi
3422
3423else
3424
3425 LINE=`grep "wxUSE_EXPAT" ${wx_arg_cache_file}`
3426 if test "x$LINE" != x ; then
3427 eval "DEFAULT_$LINE"
3428 else
3429 no_cache=1
3430 fi
3431
3432 ac_cv_use_expat='wxUSE_EXPAT='$DEFAULT_wxUSE_EXPAT
3433
3434fi;
3435
3436 eval "$ac_cv_use_expat"
3437 if test "$no_cache" != 1; then
3438 echo $ac_cv_use_expat >> ${wx_arg_cache_file}.tmp
3439 fi
3440
3441 if test "$wxUSE_EXPAT" = yes; then
3442 echo "$as_me:$LINENO: result: yes" >&5
3443echo "${ECHO_T}yes" >&6
3444 elif test "$wxUSE_EXPAT" = no; then
3445 echo "$as_me:$LINENO: result: no" >&5
3446echo "${ECHO_T}no" >&6
3447 elif test "$wxUSE_EXPAT" = sys; then
3448 echo "$as_me:$LINENO: result: system version" >&5
3449echo "${ECHO_T}system version" >&6
3450 elif test "$wxUSE_EXPAT" = builtin; then
3451 echo "$as_me:$LINENO: result: builtin version" >&5
3452echo "${ECHO_T}builtin version" >&6
3453 else
3454 { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5
3455echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;}
3456 { (exit 1); exit 1; }; }
3457 fi
3458
3459
3460
3461
3462 enablestring=
3463 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-shared" >&5
3464echo $ECHO_N "checking for --${enablestring:-enable}-shared... $ECHO_C" >&6
3465 no_cache=0
3466 # Check whether --enable-shared or --disable-shared was given.
3467if test "${enable_shared+set}" = set; then
3468 enableval="$enable_shared"
3469
3470 if test "$enableval" = yes; then
3471 ac_cv_use_shared='wxUSE_SHARED=yes'
3472 else
3473 ac_cv_use_shared='wxUSE_SHARED=no'
3474 fi
3475
3476else
3477
3478 LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}`
3479 if test "x$LINE" != x ; then
3480 eval "DEFAULT_$LINE"
3481 else
3482 no_cache=1
3483 fi
3484
3485 ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED
3486
3487fi;
3488
3489 eval "$ac_cv_use_shared"
3490 if test "$no_cache" != 1; then
3491 echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp
3492 fi
3493
3494 if test "$wxUSE_SHARED" = yes; then
3495 echo "$as_me:$LINENO: result: yes" >&5
3496echo "${ECHO_T}yes" >&6
3497 else
3498 echo "$as_me:$LINENO: result: no" >&5
3499echo "${ECHO_T}no" >&6
3500 fi
3501
3502
3503 enablestring=
3504 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-optimise" >&5
3505echo $ECHO_N "checking for --${enablestring:-enable}-optimise... $ECHO_C" >&6
3506 no_cache=0
3507 # Check whether --enable-optimise or --disable-optimise was given.
3508if test "${enable_optimise+set}" = set; then
3509 enableval="$enable_optimise"
3510
3511 if test "$enableval" = yes; then
3512 ac_cv_use_optimise='wxUSE_OPTIMISE=yes'
3513 else
3514 ac_cv_use_optimise='wxUSE_OPTIMISE=no'
3515 fi
3516
3517else
3518
3519 LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}`
3520 if test "x$LINE" != x ; then
3521 eval "DEFAULT_$LINE"
3522 else
3523 no_cache=1
3524 fi
3525
3526 ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE
3527
3528fi;
3529
3530 eval "$ac_cv_use_optimise"
3531 if test "$no_cache" != 1; then
3532 echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp
3533 fi
3534
3535 if test "$wxUSE_OPTIMISE" = yes; then
3536 echo "$as_me:$LINENO: result: yes" >&5
3537echo "${ECHO_T}yes" >&6
3538 else
3539 echo "$as_me:$LINENO: result: no" >&5
3540echo "${ECHO_T}no" >&6
3541 fi
3542
3543
3544 enablestring=
3545 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug" >&5
3546echo $ECHO_N "checking for --${enablestring:-enable}-debug... $ECHO_C" >&6
3547 no_cache=0
3548 # Check whether --enable-debug or --disable-debug was given.
3549if test "${enable_debug+set}" = set; then
3550 enableval="$enable_debug"
3551
3552 if test "$enableval" = yes; then
3553 ac_cv_use_debug='wxUSE_DEBUG=yes'
3554 else
3555 ac_cv_use_debug='wxUSE_DEBUG=no'
3556 fi
3557
3558else
3559
3560 LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}`
3561 if test "x$LINE" != x ; then
3562 eval "DEFAULT_$LINE"
3563 else
3564 no_cache=1
3565 fi
3566
3567 ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG
3568
3569fi;
3570
3571 eval "$ac_cv_use_debug"
3572 if test "$no_cache" != 1; then
3573 echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp
3574 fi
3575
3576 if test "$wxUSE_DEBUG" = yes; then
3577 echo "$as_me:$LINENO: result: yes" >&5
3578echo "${ECHO_T}yes" >&6
3579 else
3580 echo "$as_me:$LINENO: result: no" >&5
3581echo "${ECHO_T}no" >&6
3582 fi
3583
3584
3585 enablestring=
3586 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stl" >&5
3587echo $ECHO_N "checking for --${enablestring:-enable}-stl... $ECHO_C" >&6
3588 no_cache=0
3589 # Check whether --enable-stl or --disable-stl was given.
3590if test "${enable_stl+set}" = set; then
3591 enableval="$enable_stl"
3592
3593 if test "$enableval" = yes; then
3594 ac_cv_use_stl='wxUSE_STL=yes'
3595 else
3596 ac_cv_use_stl='wxUSE_STL=no'
3597 fi
3598
3599else
3600
3601 LINE=`grep "wxUSE_STL" ${wx_arg_cache_file}`
3602 if test "x$LINE" != x ; then
3603 eval "DEFAULT_$LINE"
3604 else
3605 no_cache=1
3606 fi
3607
3608 ac_cv_use_stl='wxUSE_STL='$DEFAULT_wxUSE_STL
3609
3610fi;
3611
3612 eval "$ac_cv_use_stl"
3613 if test "$no_cache" != 1; then
3614 echo $ac_cv_use_stl >> ${wx_arg_cache_file}.tmp
3615 fi
3616
3617 if test "$wxUSE_STL" = yes; then
3618 echo "$as_me:$LINENO: result: yes" >&5
3619echo "${ECHO_T}yes" >&6
3620 else
3621 echo "$as_me:$LINENO: result: no" >&5
3622echo "${ECHO_T}no" >&6
3623 fi
3624
3625if test "$USE_OS2" = "1"; then
3626
3627 enablestring=
3628 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-omf" >&5
3629echo $ECHO_N "checking for --${enablestring:-enable}-omf... $ECHO_C" >&6
3630 no_cache=0
3631 # Check whether --enable-omf or --disable-omf was given.
3632if test "${enable_omf+set}" = set; then
3633 enableval="$enable_omf"
3634
3635 if test "$enableval" = yes; then
3636 ac_cv_use_omf='wxUSE_OMF=yes'
3637 else
3638 ac_cv_use_omf='wxUSE_OMF=no'
3639 fi
3640
3641else
3642
3643 LINE=`grep "wxUSE_OMF" ${wx_arg_cache_file}`
3644 if test "x$LINE" != x ; then
3645 eval "DEFAULT_$LINE"
3646 else
3647 no_cache=1
3648 fi
3649
3650 ac_cv_use_omf='wxUSE_OMF='$DEFAULT_wxUSE_OMF
3651
3652fi;
3653
3654 eval "$ac_cv_use_omf"
3655 if test "$no_cache" != 1; then
3656 echo $ac_cv_use_omf >> ${wx_arg_cache_file}.tmp
3657 fi
3658
3659 if test "$wxUSE_OMF" = yes; then
3660 echo "$as_me:$LINENO: result: yes" >&5
3661echo "${ECHO_T}yes" >&6
3662 else
3663 echo "$as_me:$LINENO: result: no" >&5
3664echo "${ECHO_T}no" >&6
3665 fi
3666
3667fi
3668
3669if test "$wxUSE_DEBUG" = "yes"; then
3670 DEFAULT_wxUSE_DEBUG_FLAG=yes
3671 DEFAULT_wxUSE_DEBUG_INFO=yes
3672 BUILD=debug
3673elif test "$wxUSE_DEBUG" = "no"; then
3674 DEFAULT_wxUSE_DEBUG_FLAG=no
3675 DEFAULT_wxUSE_DEBUG_INFO=no
3676 BUILD=release
3677fi
3678
3679
3680 enablestring=
3681 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_flag" >&5
3682echo $ECHO_N "checking for --${enablestring:-enable}-debug_flag... $ECHO_C" >&6
3683 no_cache=0
3684 # Check whether --enable-debug_flag or --disable-debug_flag was given.
3685if test "${enable_debug_flag+set}" = set; then
3686 enableval="$enable_debug_flag"
3687
3688 if test "$enableval" = yes; then
3689 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes'
3690 else
3691 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no'
3692 fi
3693
3694else
3695
3696 LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}`
3697 if test "x$LINE" != x ; then
3698 eval "DEFAULT_$LINE"
3699 else
3700 no_cache=1
3701 fi
3702
3703 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG
3704
3705fi;
3706
3707 eval "$ac_cv_use_debug_flag"
3708 if test "$no_cache" != 1; then
3709 echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp
3710 fi
3711
3712 if test "$wxUSE_DEBUG_FLAG" = yes; then
3713 echo "$as_me:$LINENO: result: yes" >&5
3714echo "${ECHO_T}yes" >&6
3715 else
3716 echo "$as_me:$LINENO: result: no" >&5
3717echo "${ECHO_T}no" >&6
3718 fi
3719
3720
3721 enablestring=
3722 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_info" >&5
3723echo $ECHO_N "checking for --${enablestring:-enable}-debug_info... $ECHO_C" >&6
3724 no_cache=0
3725 # Check whether --enable-debug_info or --disable-debug_info was given.
3726if test "${enable_debug_info+set}" = set; then
3727 enableval="$enable_debug_info"
3728
3729 if test "$enableval" = yes; then
3730 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes'
3731 else
3732 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no'
3733 fi
3734
3735else
3736
3737 LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}`
3738 if test "x$LINE" != x ; then
3739 eval "DEFAULT_$LINE"
3740 else
3741 no_cache=1
3742 fi
3743
3744 ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO
3745
3746fi;
3747
3748 eval "$ac_cv_use_debug_info"
3749 if test "$no_cache" != 1; then
3750 echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp
3751 fi
3752
3753 if test "$wxUSE_DEBUG_INFO" = yes; then
3754 echo "$as_me:$LINENO: result: yes" >&5
3755echo "${ECHO_T}yes" >&6
3756 else
3757 echo "$as_me:$LINENO: result: no" >&5
3758echo "${ECHO_T}no" >&6
3759 fi
3760
3761
3762 enablestring=
3763 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_gdb" >&5
3764echo $ECHO_N "checking for --${enablestring:-enable}-debug_gdb... $ECHO_C" >&6
3765 no_cache=0
3766 # Check whether --enable-debug_gdb or --disable-debug_gdb was given.
3767if test "${enable_debug_gdb+set}" = set; then
3768 enableval="$enable_debug_gdb"
3769
3770 if test "$enableval" = yes; then
3771 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes'
3772 else
3773 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no'
3774 fi
3775
3776else
3777
3778 LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}`
3779 if test "x$LINE" != x ; then
3780 eval "DEFAULT_$LINE"
3781 else
3782 no_cache=1
3783 fi
3784
3785 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB
3786
3787fi;
3788
3789 eval "$ac_cv_use_debug_gdb"
3790 if test "$no_cache" != 1; then
3791 echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp
3792 fi
3793
3794 if test "$wxUSE_DEBUG_GDB" = yes; then
3795 echo "$as_me:$LINENO: result: yes" >&5
3796echo "${ECHO_T}yes" >&6
3797 else
3798 echo "$as_me:$LINENO: result: no" >&5
3799echo "${ECHO_T}no" >&6
3800 fi
3801
3802
3803 enablestring=
3804 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_cntxt" >&5
3805echo $ECHO_N "checking for --${enablestring:-enable}-debug_cntxt... $ECHO_C" >&6
3806 no_cache=0
3807 # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given.
3808if test "${enable_debug_cntxt+set}" = set; then
3809 enableval="$enable_debug_cntxt"
3810
3811 if test "$enableval" = yes; then
3812 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes'
3813 else
3814 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no'
3815 fi
3816
3817else
3818
3819 LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}`
3820 if test "x$LINE" != x ; then
3821 eval "DEFAULT_$LINE"
3822 else
3823 no_cache=1
3824 fi
3825
3826 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT
3827
3828fi;
3829
3830 eval "$ac_cv_use_debug_cntxt"
3831 if test "$no_cache" != 1; then
3832 echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp
3833 fi
3834
3835 if test "$wxUSE_DEBUG_CONTEXT" = yes; then
3836 echo "$as_me:$LINENO: result: yes" >&5
3837echo "${ECHO_T}yes" >&6
3838 else
3839 echo "$as_me:$LINENO: result: no" >&5
3840echo "${ECHO_T}no" >&6
3841 fi
3842
3843
3844 enablestring=
3845 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mem_tracing" >&5
3846echo $ECHO_N "checking for --${enablestring:-enable}-mem_tracing... $ECHO_C" >&6
3847 no_cache=0
3848 # Check whether --enable-mem_tracing or --disable-mem_tracing was given.
3849if test "${enable_mem_tracing+set}" = set; then
3850 enableval="$enable_mem_tracing"
3851
3852 if test "$enableval" = yes; then
3853 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes'
3854 else
3855 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no'
3856 fi
3857
3858else
3859
3860 LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}`
3861 if test "x$LINE" != x ; then
3862 eval "DEFAULT_$LINE"
3863 else
3864 no_cache=1
3865 fi
3866
3867 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING
3868
3869fi;
3870
3871 eval "$ac_cv_use_mem_tracing"
3872 if test "$no_cache" != 1; then
3873 echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp
3874 fi
3875
3876 if test "$wxUSE_MEM_TRACING" = yes; then
3877 echo "$as_me:$LINENO: result: yes" >&5
3878echo "${ECHO_T}yes" >&6
3879 else
3880 echo "$as_me:$LINENO: result: no" >&5
3881echo "${ECHO_T}no" >&6
3882 fi
3883
3884
3885 enablestring=
3886 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-profile" >&5
3887echo $ECHO_N "checking for --${enablestring:-enable}-profile... $ECHO_C" >&6
3888 no_cache=0
3889 # Check whether --enable-profile or --disable-profile was given.
3890if test "${enable_profile+set}" = set; then
3891 enableval="$enable_profile"
3892
3893 if test "$enableval" = yes; then
3894 ac_cv_use_profile='wxUSE_PROFILE=yes'
3895 else
3896 ac_cv_use_profile='wxUSE_PROFILE=no'
3897 fi
3898
3899else
3900
3901 LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}`
3902 if test "x$LINE" != x ; then
3903 eval "DEFAULT_$LINE"
3904 else
3905 no_cache=1
3906 fi
3907
3908 ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE
3909
3910fi;
3911
3912 eval "$ac_cv_use_profile"
3913 if test "$no_cache" != 1; then
3914 echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp
3915 fi
3916
3917 if test "$wxUSE_PROFILE" = yes; then
3918 echo "$as_me:$LINENO: result: yes" >&5
3919echo "${ECHO_T}yes" >&6
3920 else
3921 echo "$as_me:$LINENO: result: no" >&5
3922echo "${ECHO_T}no" >&6
3923 fi
3924
3925
3926 enablestring=
3927 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_rtti" >&5
3928echo $ECHO_N "checking for --${enablestring:-enable}-no_rtti... $ECHO_C" >&6
3929 no_cache=0
3930 # Check whether --enable-no_rtti or --disable-no_rtti was given.
3931if test "${enable_no_rtti+set}" = set; then
3932 enableval="$enable_no_rtti"
3933
3934 if test "$enableval" = yes; then
3935 ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes'
3936 else
3937 ac_cv_use_no_rtti='wxUSE_NO_RTTI=no'
3938 fi
3939
3940else
3941
3942 LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}`
3943 if test "x$LINE" != x ; then
3944 eval "DEFAULT_$LINE"
3945 else
3946 no_cache=1
3947 fi
3948
3949 ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI
3950
3951fi;
3952
3953 eval "$ac_cv_use_no_rtti"
3954 if test "$no_cache" != 1; then
3955 echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp
3956 fi
3957
3958 if test "$wxUSE_NO_RTTI" = yes; then
3959 echo "$as_me:$LINENO: result: yes" >&5
3960echo "${ECHO_T}yes" >&6
3961 else
3962 echo "$as_me:$LINENO: result: no" >&5
3963echo "${ECHO_T}no" >&6
3964 fi
3965
3966
3967 enablestring=
3968 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_exceptions" >&5
3969echo $ECHO_N "checking for --${enablestring:-enable}-no_exceptions... $ECHO_C" >&6
3970 no_cache=0
3971 # Check whether --enable-no_exceptions or --disable-no_exceptions was given.
3972if test "${enable_no_exceptions+set}" = set; then
3973 enableval="$enable_no_exceptions"
3974
3975 if test "$enableval" = yes; then
3976 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes'
3977 else
3978 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no'
3979 fi
3980
3981else
3982
3983 LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}`
3984 if test "x$LINE" != x ; then
3985 eval "DEFAULT_$LINE"
3986 else
3987 no_cache=1
3988 fi
3989
3990 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS
3991
3992fi;
3993
3994 eval "$ac_cv_use_no_exceptions"
3995 if test "$no_cache" != 1; then
3996 echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp
3997 fi
3998
3999 if test "$wxUSE_NO_EXCEPTIONS" = yes; then
4000 echo "$as_me:$LINENO: result: yes" >&5
4001echo "${ECHO_T}yes" >&6
4002 else
4003 echo "$as_me:$LINENO: result: no" >&5
4004echo "${ECHO_T}no" >&6
4005 fi
4006
4007
4008 enablestring=
4009 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-permissive" >&5
4010echo $ECHO_N "checking for --${enablestring:-enable}-permissive... $ECHO_C" >&6
4011 no_cache=0
4012 # Check whether --enable-permissive or --disable-permissive was given.
4013if test "${enable_permissive+set}" = set; then
4014 enableval="$enable_permissive"
4015
4016 if test "$enableval" = yes; then
4017 ac_cv_use_permissive='wxUSE_PERMISSIVE=yes'
4018 else
4019 ac_cv_use_permissive='wxUSE_PERMISSIVE=no'
4020 fi
4021
4022else
4023
4024 LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}`
4025 if test "x$LINE" != x ; then
4026 eval "DEFAULT_$LINE"
4027 else
4028 no_cache=1
4029 fi
4030
4031 ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE
4032
4033fi;
4034
4035 eval "$ac_cv_use_permissive"
4036 if test "$no_cache" != 1; then
4037 echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp
4038 fi
4039
4040 if test "$wxUSE_PERMISSIVE" = yes; then
4041 echo "$as_me:$LINENO: result: yes" >&5
4042echo "${ECHO_T}yes" >&6
4043 else
4044 echo "$as_me:$LINENO: result: no" >&5
4045echo "${ECHO_T}no" >&6
4046 fi
4047
4048
4049 enablestring=
4050 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_deps" >&5
4051echo $ECHO_N "checking for --${enablestring:-enable}-no_deps... $ECHO_C" >&6
4052 no_cache=0
4053 # Check whether --enable-no_deps or --disable-no_deps was given.
4054if test "${enable_no_deps+set}" = set; then
4055 enableval="$enable_no_deps"
4056
4057 if test "$enableval" = yes; then
4058 ac_cv_use_no_deps='wxUSE_NO_DEPS=yes'
4059 else
4060 ac_cv_use_no_deps='wxUSE_NO_DEPS=no'
4061 fi
4062
4063else
4064
4065 LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}`
4066 if test "x$LINE" != x ; then
4067 eval "DEFAULT_$LINE"
4068 else
4069 no_cache=1
4070 fi
4071
4072 ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS
4073
4074fi;
4075
4076 eval "$ac_cv_use_no_deps"
4077 if test "$no_cache" != 1; then
4078 echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp
4079 fi
4080
4081 if test "$wxUSE_NO_DEPS" = yes; then
4082 echo "$as_me:$LINENO: result: yes" >&5
4083echo "${ECHO_T}yes" >&6
4084 else
4085 echo "$as_me:$LINENO: result: no" >&5
4086echo "${ECHO_T}no" >&6
4087 fi
4088
4089
4090
4091 enablestring=
4092 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat22" >&5
4093echo $ECHO_N "checking for --${enablestring:-enable}-compat22... $ECHO_C" >&6
4094 no_cache=0
4095 # Check whether --enable-compat22 or --disable-compat22 was given.
4096if test "${enable_compat22+set}" = set; then
4097 enableval="$enable_compat22"
4098
4099 if test "$enableval" = yes; then
4100 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=yes'
4101 else
4102 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=no'
4103 fi
4104
4105else
4106
4107 LINE=`grep "WXWIN_COMPATIBILITY_2_2" ${wx_arg_cache_file}`
4108 if test "x$LINE" != x ; then
4109 eval "DEFAULT_$LINE"
4110 else
4111 no_cache=1
4112 fi
4113
4114 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2='$DEFAULT_WXWIN_COMPATIBILITY_2_2
4115
4116fi;
4117
4118 eval "$ac_cv_use_compat22"
4119 if test "$no_cache" != 1; then
4120 echo $ac_cv_use_compat22 >> ${wx_arg_cache_file}.tmp
4121 fi
4122
4123 if test "$WXWIN_COMPATIBILITY_2_2" = yes; then
4124 echo "$as_me:$LINENO: result: yes" >&5
4125echo "${ECHO_T}yes" >&6
4126 else
4127 echo "$as_me:$LINENO: result: no" >&5
4128echo "${ECHO_T}no" >&6
4129 fi
4130
4131
4132 enablestring=disable
4133 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat24" >&5
4134echo $ECHO_N "checking for --${enablestring:-enable}-compat24... $ECHO_C" >&6
4135 no_cache=0
4136 # Check whether --enable-compat24 or --disable-compat24 was given.
4137if test "${enable_compat24+set}" = set; then
4138 enableval="$enable_compat24"
4139
4140 if test "$enableval" = yes; then
4141 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=yes'
4142 else
4143 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=no'
4144 fi
4145
4146else
4147
4148 LINE=`grep "WXWIN_COMPATIBILITY_2_4" ${wx_arg_cache_file}`
4149 if test "x$LINE" != x ; then
4150 eval "DEFAULT_$LINE"
4151 else
4152 no_cache=1
4153 fi
4154
4155 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4='$DEFAULT_WXWIN_COMPATIBILITY_2_4
4156
4157fi;
4158
4159 eval "$ac_cv_use_compat24"
4160 if test "$no_cache" != 1; then
4161 echo $ac_cv_use_compat24 >> ${wx_arg_cache_file}.tmp
4162 fi
4163
4164 if test "$WXWIN_COMPATIBILITY_2_4" = yes; then
4165 echo "$as_me:$LINENO: result: yes" >&5
4166echo "${ECHO_T}yes" >&6
4167 else
4168 echo "$as_me:$LINENO: result: no" >&5
4169echo "${ECHO_T}no" >&6
4170 fi
4171
4172
ffa0583f
RL
4173
4174 enablestring=
4175 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-rpath" >&5
4176echo $ECHO_N "checking for --${enablestring:-enable}-rpath... $ECHO_C" >&6
4177 no_cache=0
4178 # Check whether --enable-rpath or --disable-rpath was given.
a848cd7e
SC
4179if test "${enable_rpath+set}" = set; then
4180 enableval="$enable_rpath"
ffa0583f
RL
4181
4182 if test "$enableval" = yes; then
4183 ac_cv_use_rpath='wxUSE_RPATH=yes'
4184 else
4185 ac_cv_use_rpath='wxUSE_RPATH=no'
4186 fi
4187
4188else
4189
4190 LINE=`grep "wxUSE_RPATH" ${wx_arg_cache_file}`
4191 if test "x$LINE" != x ; then
4192 eval "DEFAULT_$LINE"
4193 else
4194 no_cache=1
4195 fi
4196
4197 ac_cv_use_rpath='wxUSE_RPATH='$DEFAULT_wxUSE_RPATH
4198
a848cd7e
SC
4199fi;
4200
ffa0583f
RL
4201 eval "$ac_cv_use_rpath"
4202 if test "$no_cache" != 1; then
4203 echo $ac_cv_use_rpath >> ${wx_arg_cache_file}.tmp
4204 fi
4205
4206 if test "$wxUSE_RPATH" = yes; then
4207 echo "$as_me:$LINENO: result: yes" >&5
4208echo "${ECHO_T}yes" >&6
4209 else
4210 echo "$as_me:$LINENO: result: no" >&5
4211echo "${ECHO_T}no" >&6
4212 fi
4213
a848cd7e
SC
4214
4215
4216
4217
4218 enablestring=
4219 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-intl" >&5
4220echo $ECHO_N "checking for --${enablestring:-enable}-intl... $ECHO_C" >&6
4221 no_cache=0
4222 # Check whether --enable-intl or --disable-intl was given.
4223if test "${enable_intl+set}" = set; then
4224 enableval="$enable_intl"
4225
4226 if test "$enableval" = yes; then
4227 ac_cv_use_intl='wxUSE_INTL=yes'
4228 else
4229 ac_cv_use_intl='wxUSE_INTL=no'
4230 fi
4231
4232else
4233
4234 LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}`
4235 if test "x$LINE" != x ; then
4236 eval "DEFAULT_$LINE"
4237 else
4238 no_cache=1
4239 fi
4240
4241 ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL
4242
4243fi;
4244
4245 eval "$ac_cv_use_intl"
4246 if test "$no_cache" != 1; then
4247 echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp
4248 fi
4249
4250 if test "$wxUSE_INTL" = yes; then
4251 echo "$as_me:$LINENO: result: yes" >&5
4252echo "${ECHO_T}yes" >&6
4253 else
4254 echo "$as_me:$LINENO: result: no" >&5
4255echo "${ECHO_T}no" >&6
4256 fi
4257
4258
4259 enablestring=
4260 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-config" >&5
4261echo $ECHO_N "checking for --${enablestring:-enable}-config... $ECHO_C" >&6
4262 no_cache=0
4263 # Check whether --enable-config or --disable-config was given.
4264if test "${enable_config+set}" = set; then
4265 enableval="$enable_config"
4266
4267 if test "$enableval" = yes; then
4268 ac_cv_use_config='wxUSE_CONFIG=yes'
4269 else
4270 ac_cv_use_config='wxUSE_CONFIG=no'
4271 fi
4272
4273else
4274
4275 LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}`
4276 if test "x$LINE" != x ; then
4277 eval "DEFAULT_$LINE"
4278 else
4279 no_cache=1
4280 fi
4281
4282 ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG
4283
4284fi;
4285
4286 eval "$ac_cv_use_config"
4287 if test "$no_cache" != 1; then
4288 echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp
4289 fi
4290
4291 if test "$wxUSE_CONFIG" = yes; then
4292 echo "$as_me:$LINENO: result: yes" >&5
4293echo "${ECHO_T}yes" >&6
4294 else
4295 echo "$as_me:$LINENO: result: no" >&5
4296echo "${ECHO_T}no" >&6
4297 fi
4298
4299
4300
4301 enablestring=
4302 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocols" >&5
4303echo $ECHO_N "checking for --${enablestring:-enable}-protocols... $ECHO_C" >&6
4304 no_cache=0
4305 # Check whether --enable-protocols or --disable-protocols was given.
4306if test "${enable_protocols+set}" = set; then
4307 enableval="$enable_protocols"
4308
4309 if test "$enableval" = yes; then
4310 ac_cv_use_protocols='wxUSE_PROTOCOL=yes'
4311 else
4312 ac_cv_use_protocols='wxUSE_PROTOCOL=no'
4313 fi
4314
4315else
4316
4317 LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
4318 if test "x$LINE" != x ; then
4319 eval "DEFAULT_$LINE"
4320 else
4321 no_cache=1
4322 fi
4323
4324 ac_cv_use_protocols='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
4325
4326fi;
4327
4328 eval "$ac_cv_use_protocols"
4329 if test "$no_cache" != 1; then
4330 echo $ac_cv_use_protocols >> ${wx_arg_cache_file}.tmp
4331 fi
4332
4333 if test "$wxUSE_PROTOCOL" = yes; then
4334 echo "$as_me:$LINENO: result: yes" >&5
4335echo "${ECHO_T}yes" >&6
4336 else
4337 echo "$as_me:$LINENO: result: no" >&5
4338echo "${ECHO_T}no" >&6
4339 fi
4340
4341
4342 enablestring=
4343 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ftp" >&5
4344echo $ECHO_N "checking for --${enablestring:-enable}-ftp... $ECHO_C" >&6
4345 no_cache=0
4346 # Check whether --enable-ftp or --disable-ftp was given.
4347if test "${enable_ftp+set}" = set; then
4348 enableval="$enable_ftp"
4349
4350 if test "$enableval" = yes; then
4351 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=yes'
4352 else
4353 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=no'
4354 fi
4355
4356else
4357
4358 LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
4359 if test "x$LINE" != x ; then
4360 eval "DEFAULT_$LINE"
4361 else
4362 no_cache=1
4363 fi
4364
4365 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
4366
4367fi;
4368
4369 eval "$ac_cv_use_ftp"
4370 if test "$no_cache" != 1; then
4371 echo $ac_cv_use_ftp >> ${wx_arg_cache_file}.tmp
4372 fi
4373
4374 if test "$wxUSE_PROTOCOL_FTP" = yes; then
4375 echo "$as_me:$LINENO: result: yes" >&5
4376echo "${ECHO_T}yes" >&6
4377 else
4378 echo "$as_me:$LINENO: result: no" >&5
4379echo "${ECHO_T}no" >&6
4380 fi
4381
4382
4383 enablestring=
4384 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-http" >&5
4385echo $ECHO_N "checking for --${enablestring:-enable}-http... $ECHO_C" >&6
4386 no_cache=0
4387 # Check whether --enable-http or --disable-http was given.
4388if test "${enable_http+set}" = set; then
4389 enableval="$enable_http"
4390
4391 if test "$enableval" = yes; then
4392 ac_cv_use_http='wxUSE_PROTOCOL_HTTP=yes'
4393 else
4394 ac_cv_use_http='wxUSE_PROTOCOL_HTTP=no'
4395 fi
4396
4397else
4398
4399 LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
4400 if test "x$LINE" != x ; then
4401 eval "DEFAULT_$LINE"
4402 else
4403 no_cache=1
4404 fi
4405
4406 ac_cv_use_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
4407
4408fi;
4409
4410 eval "$ac_cv_use_http"
4411 if test "$no_cache" != 1; then
4412 echo $ac_cv_use_http >> ${wx_arg_cache_file}.tmp
4413 fi
4414
4415 if test "$wxUSE_PROTOCOL_HTTP" = yes; then
4416 echo "$as_me:$LINENO: result: yes" >&5
4417echo "${ECHO_T}yes" >&6
4418 else
4419 echo "$as_me:$LINENO: result: no" >&5
4420echo "${ECHO_T}no" >&6
4421 fi
4422
4423
4424 enablestring=
4425 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fileproto" >&5
4426echo $ECHO_N "checking for --${enablestring:-enable}-fileproto... $ECHO_C" >&6
4427 no_cache=0
4428 # Check whether --enable-fileproto or --disable-fileproto was given.
4429if test "${enable_fileproto+set}" = set; then
4430 enableval="$enable_fileproto"
4431
4432 if test "$enableval" = yes; then
4433 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=yes'
4434 else
4435 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=no'
4436 fi
4437
4438else
4439
4440 LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
4441 if test "x$LINE" != x ; then
4442 eval "DEFAULT_$LINE"
4443 else
4444 no_cache=1
4445 fi
4446
4447 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
4448
4449fi;
4450
4451 eval "$ac_cv_use_fileproto"
4452 if test "$no_cache" != 1; then
4453 echo $ac_cv_use_fileproto >> ${wx_arg_cache_file}.tmp
4454 fi
4455
4456 if test "$wxUSE_PROTOCOL_FILE" = yes; then
4457 echo "$as_me:$LINENO: result: yes" >&5
4458echo "${ECHO_T}yes" >&6
4459 else
4460 echo "$as_me:$LINENO: result: no" >&5
4461echo "${ECHO_T}no" >&6
4462 fi
4463
4464
4465 enablestring=
4466 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sockets" >&5
4467echo $ECHO_N "checking for --${enablestring:-enable}-sockets... $ECHO_C" >&6
4468 no_cache=0
4469 # Check whether --enable-sockets or --disable-sockets was given.
4470if test "${enable_sockets+set}" = set; then
4471 enableval="$enable_sockets"
4472
4473 if test "$enableval" = yes; then
4474 ac_cv_use_sockets='wxUSE_SOCKETS=yes'
4475 else
4476 ac_cv_use_sockets='wxUSE_SOCKETS=no'
4477 fi
4478
4479else
4480
4481 LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}`
4482 if test "x$LINE" != x ; then
4483 eval "DEFAULT_$LINE"
4484 else
4485 no_cache=1
4486 fi
4487
4488 ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS
4489
4490fi;
4491
4492 eval "$ac_cv_use_sockets"
4493 if test "$no_cache" != 1; then
4494 echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp
4495 fi
4496
4497 if test "$wxUSE_SOCKETS" = yes; then
4498 echo "$as_me:$LINENO: result: yes" >&5
4499echo "${ECHO_T}yes" >&6
4500 else
4501 echo "$as_me:$LINENO: result: no" >&5
4502echo "${ECHO_T}no" >&6
4503 fi
4504
4505
4506 enablestring=
4507 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ole" >&5
4508echo $ECHO_N "checking for --${enablestring:-enable}-ole... $ECHO_C" >&6
4509 no_cache=0
4510 # Check whether --enable-ole or --disable-ole was given.
4511if test "${enable_ole+set}" = set; then
4512 enableval="$enable_ole"
4513
4514 if test "$enableval" = yes; then
4515 ac_cv_use_ole='wxUSE_OLE=yes'
4516 else
4517 ac_cv_use_ole='wxUSE_OLE=no'
4518 fi
4519
4520else
4521
4522 LINE=`grep "wxUSE_OLE" ${wx_arg_cache_file}`
4523 if test "x$LINE" != x ; then
4524 eval "DEFAULT_$LINE"
4525 else
4526 no_cache=1
4527 fi
4528
4529 ac_cv_use_ole='wxUSE_OLE='$DEFAULT_wxUSE_OLE
4530
4531fi;
4532
4533 eval "$ac_cv_use_ole"
4534 if test "$no_cache" != 1; then
4535 echo $ac_cv_use_ole >> ${wx_arg_cache_file}.tmp
4536 fi
4537
4538 if test "$wxUSE_OLE" = yes; then
4539 echo "$as_me:$LINENO: result: yes" >&5
4540echo "${ECHO_T}yes" >&6
4541 else
4542 echo "$as_me:$LINENO: result: no" >&5
4543echo "${ECHO_T}no" >&6
4544 fi
4545
4546
4547 enablestring=
4548 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dataobj" >&5
4549echo $ECHO_N "checking for --${enablestring:-enable}-dataobj... $ECHO_C" >&6
4550 no_cache=0
4551 # Check whether --enable-dataobj or --disable-dataobj was given.
4552if test "${enable_dataobj+set}" = set; then
4553 enableval="$enable_dataobj"
4554
4555 if test "$enableval" = yes; then
4556 ac_cv_use_dataobj='wxUSE_DATAOBJ=yes'
4557 else
4558 ac_cv_use_dataobj='wxUSE_DATAOBJ=no'
4559 fi
4560
4561else
4562
4563 LINE=`grep "wxUSE_DATAOBJ" ${wx_arg_cache_file}`
4564 if test "x$LINE" != x ; then
4565 eval "DEFAULT_$LINE"
4566 else
4567 no_cache=1
4568 fi
4569
4570 ac_cv_use_dataobj='wxUSE_DATAOBJ='$DEFAULT_wxUSE_DATAOBJ
4571
4572fi;
4573
4574 eval "$ac_cv_use_dataobj"
4575 if test "$no_cache" != 1; then
4576 echo $ac_cv_use_dataobj >> ${wx_arg_cache_file}.tmp
4577 fi
4578
4579 if test "$wxUSE_DATAOBJ" = yes; then
4580 echo "$as_me:$LINENO: result: yes" >&5
4581echo "${ECHO_T}yes" >&6
4582 else
4583 echo "$as_me:$LINENO: result: no" >&5
4584echo "${ECHO_T}no" >&6
4585 fi
4586
4587
4588
4589 enablestring=
4590 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ipc" >&5
4591echo $ECHO_N "checking for --${enablestring:-enable}-ipc... $ECHO_C" >&6
4592 no_cache=0
4593 # Check whether --enable-ipc or --disable-ipc was given.
4594if test "${enable_ipc+set}" = set; then
4595 enableval="$enable_ipc"
4596
4597 if test "$enableval" = yes; then
4598 ac_cv_use_ipc='wxUSE_IPC=yes'
4599 else
4600 ac_cv_use_ipc='wxUSE_IPC=no'
4601 fi
4602
4603else
4604
4605 LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}`
4606 if test "x$LINE" != x ; then
4607 eval "DEFAULT_$LINE"
4608 else
4609 no_cache=1
4610 fi
4611
4612 ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC
4613
4614fi;
4615
4616 eval "$ac_cv_use_ipc"
4617 if test "$no_cache" != 1; then
4618 echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp
4619 fi
4620
4621 if test "$wxUSE_IPC" = yes; then
4622 echo "$as_me:$LINENO: result: yes" >&5
4623echo "${ECHO_T}yes" >&6
4624 else
4625 echo "$as_me:$LINENO: result: no" >&5
4626echo "${ECHO_T}no" >&6
4627 fi
4628
4629
4630
4631 enablestring=
4632 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-apple_ieee" >&5
4633echo $ECHO_N "checking for --${enablestring:-enable}-apple_ieee... $ECHO_C" >&6
4634 no_cache=0
4635 # Check whether --enable-apple_ieee or --disable-apple_ieee was given.
4636if test "${enable_apple_ieee+set}" = set; then
4637 enableval="$enable_apple_ieee"
4638
4639 if test "$enableval" = yes; then
4640 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes'
4641 else
4642 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no'
4643 fi
4644
4645else
4646
4647 LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}`
4648 if test "x$LINE" != x ; then
4649 eval "DEFAULT_$LINE"
4650 else
4651 no_cache=1
4652 fi
4653
4654 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE
4655
4656fi;
4657
4658 eval "$ac_cv_use_apple_ieee"
4659 if test "$no_cache" != 1; then
4660 echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp
4661 fi
4662
4663 if test "$wxUSE_APPLE_IEEE" = yes; then
4664 echo "$as_me:$LINENO: result: yes" >&5
4665echo "${ECHO_T}yes" >&6
4666 else
4667 echo "$as_me:$LINENO: result: no" >&5
4668echo "${ECHO_T}no" >&6
4669 fi
4670
4671
4672 enablestring=
4673 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-catch_segvs" >&5
4674echo $ECHO_N "checking for --${enablestring:-enable}-catch_segvs... $ECHO_C" >&6
4675 no_cache=0
4676 # Check whether --enable-catch_segvs or --disable-catch_segvs was given.
4677if test "${enable_catch_segvs+set}" = set; then
4678 enableval="$enable_catch_segvs"
4679
4680 if test "$enableval" = yes; then
4681 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes'
4682 else
4683 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no'
4684 fi
4685
4686else
4687
4688 LINE=`grep "wxUSE_ON_FATAL_EXCEPTION" ${wx_arg_cache_file}`
4689 if test "x$LINE" != x ; then
4690 eval "DEFAULT_$LINE"
4691 else
4692 no_cache=1
4693 fi
4694
4695 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION='$DEFAULT_wxUSE_ON_FATAL_EXCEPTION
4696
4697fi;
4698
4699 eval "$ac_cv_use_catch_segvs"
4700 if test "$no_cache" != 1; then
4701 echo $ac_cv_use_catch_segvs >> ${wx_arg_cache_file}.tmp
4702 fi
4703
4704 if test "$wxUSE_ON_FATAL_EXCEPTION" = yes; then
4705 echo "$as_me:$LINENO: result: yes" >&5
4706echo "${ECHO_T}yes" >&6
4707 else
4708 echo "$as_me:$LINENO: result: no" >&5
4709echo "${ECHO_T}no" >&6
4710 fi
4711
4712
eaff0f0d
VZ
4713 enablestring=
4714 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-backtrace" >&5
4715echo $ECHO_N "checking for --${enablestring:-enable}-backtrace... $ECHO_C" >&6
4716 no_cache=0
4717 # Check whether --enable-backtrace or --disable-backtrace was given.
4718if test "${enable_backtrace+set}" = set; then
4719 enableval="$enable_backtrace"
4720
4721 if test "$enableval" = yes; then
4722 ac_cv_use_backtrace='wxUSE_STACKWALKER=yes'
4723 else
4724 ac_cv_use_backtrace='wxUSE_STACKWALKER=no'
4725 fi
4726
4727else
4728
4729 LINE=`grep "wxUSE_STACKWALKER" ${wx_arg_cache_file}`
4730 if test "x$LINE" != x ; then
4731 eval "DEFAULT_$LINE"
4732 else
4733 no_cache=1
4734 fi
4735
4736 ac_cv_use_backtrace='wxUSE_STACKWALKER='$DEFAULT_wxUSE_STACKWALKER
4737
4738fi;
4739
4740 eval "$ac_cv_use_backtrace"
4741 if test "$no_cache" != 1; then
4742 echo $ac_cv_use_backtrace >> ${wx_arg_cache_file}.tmp
4743 fi
4744
4745 if test "$wxUSE_STACKWALKER" = yes; then
4746 echo "$as_me:$LINENO: result: yes" >&5
4747echo "${ECHO_T}yes" >&6
4748 else
4749 echo "$as_me:$LINENO: result: no" >&5
4750echo "${ECHO_T}no" >&6
4751 fi
4752
4753
a848cd7e
SC
4754 enablestring=
4755 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-cmdline" >&5
4756echo $ECHO_N "checking for --${enablestring:-enable}-cmdline... $ECHO_C" >&6
4757 no_cache=0
4758 # Check whether --enable-cmdline or --disable-cmdline was given.
4759if test "${enable_cmdline+set}" = set; then
4760 enableval="$enable_cmdline"
4761
4762 if test "$enableval" = yes; then
4763 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=yes'
4764 else
4765 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=no'
4766 fi
4767
4768else
4769
4770 LINE=`grep "wxUSE_CMDLINE_PARSER" ${wx_arg_cache_file}`
4771 if test "x$LINE" != x ; then
4772 eval "DEFAULT_$LINE"
4773 else
4774 no_cache=1
4775 fi
4776
4777 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER='$DEFAULT_wxUSE_CMDLINE_PARSER
4778
4779fi;
4780
4781 eval "$ac_cv_use_cmdline"
4782 if test "$no_cache" != 1; then
4783 echo $ac_cv_use_cmdline >> ${wx_arg_cache_file}.tmp
4784 fi
4785
4786 if test "$wxUSE_CMDLINE_PARSER" = yes; then
4787 echo "$as_me:$LINENO: result: yes" >&5
4788echo "${ECHO_T}yes" >&6
4789 else
4790 echo "$as_me:$LINENO: result: no" >&5
4791echo "${ECHO_T}no" >&6
4792 fi
4793
4794
4795 enablestring=
4796 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-datetime" >&5
4797echo $ECHO_N "checking for --${enablestring:-enable}-datetime... $ECHO_C" >&6
4798 no_cache=0
4799 # Check whether --enable-datetime or --disable-datetime was given.
4800if test "${enable_datetime+set}" = set; then
4801 enableval="$enable_datetime"
4802
4803 if test "$enableval" = yes; then
4804 ac_cv_use_datetime='wxUSE_DATETIME=yes'
4805 else
4806 ac_cv_use_datetime='wxUSE_DATETIME=no'
4807 fi
4808
4809else
4810
4811 LINE=`grep "wxUSE_DATETIME" ${wx_arg_cache_file}`
4812 if test "x$LINE" != x ; then
4813 eval "DEFAULT_$LINE"
4814 else
4815 no_cache=1
4816 fi
4817
4818 ac_cv_use_datetime='wxUSE_DATETIME='$DEFAULT_wxUSE_DATETIME
4819
4820fi;
4821
4822 eval "$ac_cv_use_datetime"
4823 if test "$no_cache" != 1; then
4824 echo $ac_cv_use_datetime >> ${wx_arg_cache_file}.tmp
4825 fi
4826
4827 if test "$wxUSE_DATETIME" = yes; then
4828 echo "$as_me:$LINENO: result: yes" >&5
4829echo "${ECHO_T}yes" >&6
4830 else
4831 echo "$as_me:$LINENO: result: no" >&5
4832echo "${ECHO_T}no" >&6
4833 fi
4834
4835
4836 enablestring=
4837 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dialupman" >&5
4838echo $ECHO_N "checking for --${enablestring:-enable}-dialupman... $ECHO_C" >&6
4839 no_cache=0
4840 # Check whether --enable-dialupman or --disable-dialupman was given.
4841if test "${enable_dialupman+set}" = set; then
4842 enableval="$enable_dialupman"
4843
4844 if test "$enableval" = yes; then
4845 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes'
4846 else
4847 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no'
4848 fi
4849
4850else
4851
4852 LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}`
4853 if test "x$LINE" != x ; then
4854 eval "DEFAULT_$LINE"
4855 else
4856 no_cache=1
4857 fi
4858
4859 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER
4860
4861fi;
4862
4863 eval "$ac_cv_use_dialupman"
4864 if test "$no_cache" != 1; then
4865 echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp
4866 fi
4867
4868 if test "$wxUSE_DIALUP_MANAGER" = yes; then
4869 echo "$as_me:$LINENO: result: yes" >&5
4870echo "${ECHO_T}yes" >&6
4871 else
4872 echo "$as_me:$LINENO: result: no" >&5
4873echo "${ECHO_T}no" >&6
4874 fi
4875
4876
4877 enablestring=
4878 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynlib" >&5
4879echo $ECHO_N "checking for --${enablestring:-enable}-dynlib... $ECHO_C" >&6
4880 no_cache=0
4881 # Check whether --enable-dynlib or --disable-dynlib was given.
4882if test "${enable_dynlib+set}" = set; then
4883 enableval="$enable_dynlib"
4884
4885 if test "$enableval" = yes; then
4886 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes'
4887 else
4888 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no'
4889 fi
4890
4891else
4892
4893 LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}`
4894 if test "x$LINE" != x ; then
4895 eval "DEFAULT_$LINE"
4896 else
4897 no_cache=1
4898 fi
4899
4900 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS
4901
4902fi;
4903
4904 eval "$ac_cv_use_dynlib"
4905 if test "$no_cache" != 1; then
4906 echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp
4907 fi
4908
4909 if test "$wxUSE_DYNLIB_CLASS" = yes; then
4910 echo "$as_me:$LINENO: result: yes" >&5
4911echo "${ECHO_T}yes" >&6
4912 else
4913 echo "$as_me:$LINENO: result: no" >&5
4914echo "${ECHO_T}no" >&6
4915 fi
4916
4917
4918 enablestring=
4919 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynamicloader" >&5
4920echo $ECHO_N "checking for --${enablestring:-enable}-dynamicloader... $ECHO_C" >&6
4921 no_cache=0
4922 # Check whether --enable-dynamicloader or --disable-dynamicloader was given.
4923if test "${enable_dynamicloader+set}" = set; then
4924 enableval="$enable_dynamicloader"
4925
4926 if test "$enableval" = yes; then
4927 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=yes'
4928 else
4929 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=no'
4930 fi
4931
4932else
4933
4934 LINE=`grep "wxUSE_DYNAMIC_LOADER" ${wx_arg_cache_file}`
4935 if test "x$LINE" != x ; then
4936 eval "DEFAULT_$LINE"
4937 else
4938 no_cache=1
4939 fi
4940
4941 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER='$DEFAULT_wxUSE_DYNAMIC_LOADER
4942
4943fi;
4944
4945 eval "$ac_cv_use_dynamicloader"
4946 if test "$no_cache" != 1; then
4947 echo $ac_cv_use_dynamicloader >> ${wx_arg_cache_file}.tmp
4948 fi
4949
4950 if test "$wxUSE_DYNAMIC_LOADER" = yes; then
4951 echo "$as_me:$LINENO: result: yes" >&5
4952echo "${ECHO_T}yes" >&6
4953 else
4954 echo "$as_me:$LINENO: result: no" >&5
4955echo "${ECHO_T}no" >&6
4956 fi
4957
4958
4959 enablestring=
4960 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-exceptions" >&5
4961echo $ECHO_N "checking for --${enablestring:-enable}-exceptions... $ECHO_C" >&6
4962 no_cache=0
4963 # Check whether --enable-exceptions or --disable-exceptions was given.
4964if test "${enable_exceptions+set}" = set; then
4965 enableval="$enable_exceptions"
4966
4967 if test "$enableval" = yes; then
4968 ac_cv_use_exceptions='wxUSE_EXCEPTIONS=yes'
4969 else
4970 ac_cv_use_exceptions='wxUSE_EXCEPTIONS=no'
4971 fi
4972
4973else
4974
4975 LINE=`grep "wxUSE_EXCEPTIONS" ${wx_arg_cache_file}`
4976 if test "x$LINE" != x ; then
4977 eval "DEFAULT_$LINE"
4978 else
4979 no_cache=1
4980 fi
4981
4982 ac_cv_use_exceptions='wxUSE_EXCEPTIONS='$DEFAULT_wxUSE_EXCEPTIONS
4983
4984fi;
4985
4986 eval "$ac_cv_use_exceptions"
4987 if test "$no_cache" != 1; then
4988 echo $ac_cv_use_exceptions >> ${wx_arg_cache_file}.tmp
4989 fi
4990
4991 if test "$wxUSE_EXCEPTIONS" = yes; then
4992 echo "$as_me:$LINENO: result: yes" >&5
4993echo "${ECHO_T}yes" >&6
4994 else
4995 echo "$as_me:$LINENO: result: no" >&5
4996echo "${ECHO_T}no" >&6
4997 fi
4998
4999
5000 enablestring=
5001 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ffile" >&5
5002echo $ECHO_N "checking for --${enablestring:-enable}-ffile... $ECHO_C" >&6
5003 no_cache=0
5004 # Check whether --enable-ffile or --disable-ffile was given.
5005if test "${enable_ffile+set}" = set; then
5006 enableval="$enable_ffile"
5007
5008 if test "$enableval" = yes; then
5009 ac_cv_use_ffile='wxUSE_FFILE=yes'
5010 else
5011 ac_cv_use_ffile='wxUSE_FFILE=no'
5012 fi
5013
5014else
5015
5016 LINE=`grep "wxUSE_FFILE" ${wx_arg_cache_file}`
5017 if test "x$LINE" != x ; then
5018 eval "DEFAULT_$LINE"
5019 else
5020 no_cache=1
5021 fi
5022
5023 ac_cv_use_ffile='wxUSE_FFILE='$DEFAULT_wxUSE_FFILE
5024
5025fi;
5026
5027 eval "$ac_cv_use_ffile"
5028 if test "$no_cache" != 1; then
5029 echo $ac_cv_use_ffile >> ${wx_arg_cache_file}.tmp
5030 fi
5031
5032 if test "$wxUSE_FFILE" = yes; then
5033 echo "$as_me:$LINENO: result: yes" >&5
5034echo "${ECHO_T}yes" >&6
5035 else
5036 echo "$as_me:$LINENO: result: no" >&5
5037echo "${ECHO_T}no" >&6
5038 fi
5039
5040
5041 enablestring=
5042 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-file" >&5
5043echo $ECHO_N "checking for --${enablestring:-enable}-file... $ECHO_C" >&6
5044 no_cache=0
5045 # Check whether --enable-file or --disable-file was given.
5046if test "${enable_file+set}" = set; then
5047 enableval="$enable_file"
5048
5049 if test "$enableval" = yes; then
5050 ac_cv_use_file='wxUSE_FILE=yes'
5051 else
5052 ac_cv_use_file='wxUSE_FILE=no'
5053 fi
5054
5055else
5056
5057 LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}`
5058 if test "x$LINE" != x ; then
5059 eval "DEFAULT_$LINE"
5060 else
5061 no_cache=1
5062 fi
5063
5064 ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE
5065
5066fi;
5067
5068 eval "$ac_cv_use_file"
5069 if test "$no_cache" != 1; then
5070 echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp
5071 fi
5072
5073 if test "$wxUSE_FILE" = yes; then
5074 echo "$as_me:$LINENO: result: yes" >&5
5075echo "${ECHO_T}yes" >&6
5076 else
5077 echo "$as_me:$LINENO: result: no" >&5
5078echo "${ECHO_T}no" >&6
5079 fi
5080
5081
5082 enablestring=
5083 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filesystem" >&5
5084echo $ECHO_N "checking for --${enablestring:-enable}-filesystem... $ECHO_C" >&6
5085 no_cache=0
5086 # Check whether --enable-filesystem or --disable-filesystem was given.
5087if test "${enable_filesystem+set}" = set; then
5088 enableval="$enable_filesystem"
5089
5090 if test "$enableval" = yes; then
5091 ac_cv_use_filesystem='wxUSE_FILESYSTEM=yes'
5092 else
5093 ac_cv_use_filesystem='wxUSE_FILESYSTEM=no'
5094 fi
5095
5096else
5097
5098 LINE=`grep "wxUSE_FILESYSTEM" ${wx_arg_cache_file}`
5099 if test "x$LINE" != x ; then
5100 eval "DEFAULT_$LINE"
5101 else
5102 no_cache=1
5103 fi
5104
5105 ac_cv_use_filesystem='wxUSE_FILESYSTEM='$DEFAULT_wxUSE_FILESYSTEM
5106
5107fi;
5108
5109 eval "$ac_cv_use_filesystem"
5110 if test "$no_cache" != 1; then
5111 echo $ac_cv_use_filesystem >> ${wx_arg_cache_file}.tmp
5112 fi
5113
5114 if test "$wxUSE_FILESYSTEM" = yes; then
5115 echo "$as_me:$LINENO: result: yes" >&5
5116echo "${ECHO_T}yes" >&6
5117 else
5118 echo "$as_me:$LINENO: result: no" >&5
5119echo "${ECHO_T}no" >&6
5120 fi
5121
5122
5123 enablestring=
5124 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontmap" >&5
5125echo $ECHO_N "checking for --${enablestring:-enable}-fontmap... $ECHO_C" >&6
5126 no_cache=0
5127 # Check whether --enable-fontmap or --disable-fontmap was given.
5128if test "${enable_fontmap+set}" = set; then
5129 enableval="$enable_fontmap"
5130
5131 if test "$enableval" = yes; then
5132 ac_cv_use_fontmap='wxUSE_FONTMAP=yes'
5133 else
5134 ac_cv_use_fontmap='wxUSE_FONTMAP=no'
5135 fi
5136
5137else
5138
5139 LINE=`grep "wxUSE_FONTMAP" ${wx_arg_cache_file}`
5140 if test "x$LINE" != x ; then
5141 eval "DEFAULT_$LINE"
5142 else
5143 no_cache=1
5144 fi
5145
5146 ac_cv_use_fontmap='wxUSE_FONTMAP='$DEFAULT_wxUSE_FONTMAP
5147
5148fi;
5149
5150 eval "$ac_cv_use_fontmap"
5151 if test "$no_cache" != 1; then
5152 echo $ac_cv_use_fontmap >> ${wx_arg_cache_file}.tmp
5153 fi
5154
5155 if test "$wxUSE_FONTMAP" = yes; then
5156 echo "$as_me:$LINENO: result: yes" >&5
5157echo "${ECHO_T}yes" >&6
5158 else
5159 echo "$as_me:$LINENO: result: no" >&5
5160echo "${ECHO_T}no" >&6
5161 fi
5162
5163
5164 enablestring=
5165 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_inet" >&5
5166echo $ECHO_N "checking for --${enablestring:-enable}-fs_inet... $ECHO_C" >&6
5167 no_cache=0
5168 # Check whether --enable-fs_inet or --disable-fs_inet was given.
5169if test "${enable_fs_inet+set}" = set; then
5170 enableval="$enable_fs_inet"
5171
5172 if test "$enableval" = yes; then
5173 ac_cv_use_fs_inet='wxUSE_FS_INET=yes'
5174 else
5175 ac_cv_use_fs_inet='wxUSE_FS_INET=no'
5176 fi
5177
5178else
5179
5180 LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}`
5181 if test "x$LINE" != x ; then
5182 eval "DEFAULT_$LINE"
5183 else
5184 no_cache=1
5185 fi
5186
5187 ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET
5188
5189fi;
5190
5191 eval "$ac_cv_use_fs_inet"
5192 if test "$no_cache" != 1; then
5193 echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp
5194 fi
5195
5196 if test "$wxUSE_FS_INET" = yes; then
5197 echo "$as_me:$LINENO: result: yes" >&5
5198echo "${ECHO_T}yes" >&6
5199 else
5200 echo "$as_me:$LINENO: result: no" >&5
5201echo "${ECHO_T}no" >&6
5202 fi
5203
5204
5205 enablestring=
5206 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_zip" >&5
5207echo $ECHO_N "checking for --${enablestring:-enable}-fs_zip... $ECHO_C" >&6
5208 no_cache=0
5209 # Check whether --enable-fs_zip or --disable-fs_zip was given.
5210if test "${enable_fs_zip+set}" = set; then
5211 enableval="$enable_fs_zip"
5212
5213 if test "$enableval" = yes; then
5214 ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes'
5215 else
5216 ac_cv_use_fs_zip='wxUSE_FS_ZIP=no'
5217 fi
5218
5219else
5220
5221 LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}`
5222 if test "x$LINE" != x ; then
5223 eval "DEFAULT_$LINE"
5224 else
5225 no_cache=1
5226 fi
5227
5228 ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP
5229
5230fi;
5231
5232 eval "$ac_cv_use_fs_zip"
5233 if test "$no_cache" != 1; then
5234 echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp
5235 fi
5236
5237 if test "$wxUSE_FS_ZIP" = yes; then
5238 echo "$as_me:$LINENO: result: yes" >&5
5239echo "${ECHO_T}yes" >&6
5240 else
5241 echo "$as_me:$LINENO: result: no" >&5
5242echo "${ECHO_T}no" >&6
5243 fi
5244
5245
5246 enablestring=
5247 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-geometry" >&5
5248echo $ECHO_N "checking for --${enablestring:-enable}-geometry... $ECHO_C" >&6
5249 no_cache=0
5250 # Check whether --enable-geometry or --disable-geometry was given.
5251if test "${enable_geometry+set}" = set; then
5252 enableval="$enable_geometry"
5253
5254 if test "$enableval" = yes; then
5255 ac_cv_use_geometry='wxUSE_GEOMETRY=yes'
5256 else
5257 ac_cv_use_geometry='wxUSE_GEOMETRY=no'
5258 fi
5259
5260else
5261
5262 LINE=`grep "wxUSE_GEOMETRY" ${wx_arg_cache_file}`
5263 if test "x$LINE" != x ; then
5264 eval "DEFAULT_$LINE"
5265 else
5266 no_cache=1
5267 fi
5268
5269 ac_cv_use_geometry='wxUSE_GEOMETRY='$DEFAULT_wxUSE_GEOMETRY
5270
5271fi;
5272
5273 eval "$ac_cv_use_geometry"
5274 if test "$no_cache" != 1; then
5275 echo $ac_cv_use_geometry >> ${wx_arg_cache_file}.tmp
5276 fi
5277
5278 if test "$wxUSE_GEOMETRY" = yes; then
5279 echo "$as_me:$LINENO: result: yes" >&5
5280echo "${ECHO_T}yes" >&6
5281 else
5282 echo "$as_me:$LINENO: result: no" >&5
5283echo "${ECHO_T}no" >&6
5284 fi
5285
5286
5287 enablestring=
5288 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-log" >&5
5289echo $ECHO_N "checking for --${enablestring:-enable}-log... $ECHO_C" >&6
5290 no_cache=0
5291 # Check whether --enable-log or --disable-log was given.
5292if test "${enable_log+set}" = set; then
5293 enableval="$enable_log"
5294
5295 if test "$enableval" = yes; then
5296 ac_cv_use_log='wxUSE_LOG=yes'
5297 else
5298 ac_cv_use_log='wxUSE_LOG=no'
5299 fi
5300
5301else
5302
5303 LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}`
5304 if test "x$LINE" != x ; then
5305 eval "DEFAULT_$LINE"
5306 else
5307 no_cache=1
5308 fi
5309
5310 ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG
5311
5312fi;
5313
5314 eval "$ac_cv_use_log"
5315 if test "$no_cache" != 1; then
5316 echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp
5317 fi
5318
5319 if test "$wxUSE_LOG" = yes; then
5320 echo "$as_me:$LINENO: result: yes" >&5
5321echo "${ECHO_T}yes" >&6
5322 else
5323 echo "$as_me:$LINENO: result: no" >&5
5324echo "${ECHO_T}no" >&6
5325 fi
5326
5327
5328 enablestring=
5329 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-longlong" >&5
5330echo $ECHO_N "checking for --${enablestring:-enable}-longlong... $ECHO_C" >&6
5331 no_cache=0
5332 # Check whether --enable-longlong or --disable-longlong was given.
5333if test "${enable_longlong+set}" = set; then
5334 enableval="$enable_longlong"
5335
5336 if test "$enableval" = yes; then
5337 ac_cv_use_longlong='wxUSE_LONGLONG=yes'
5338 else
5339 ac_cv_use_longlong='wxUSE_LONGLONG=no'
5340 fi
5341
5342else
5343
5344 LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}`
5345 if test "x$LINE" != x ; then
5346 eval "DEFAULT_$LINE"
5347 else
5348 no_cache=1
5349 fi
5350
5351 ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG
5352
5353fi;
5354
5355 eval "$ac_cv_use_longlong"
5356 if test "$no_cache" != 1; then
5357 echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp
5358 fi
5359
5360 if test "$wxUSE_LONGLONG" = yes; then
5361 echo "$as_me:$LINENO: result: yes" >&5
5362echo "${ECHO_T}yes" >&6
5363 else
5364 echo "$as_me:$LINENO: result: no" >&5
5365echo "${ECHO_T}no" >&6
5366 fi
5367
5368
5369 enablestring=
5370 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mimetype" >&5
5371echo $ECHO_N "checking for --${enablestring:-enable}-mimetype... $ECHO_C" >&6
5372 no_cache=0
5373 # Check whether --enable-mimetype or --disable-mimetype was given.
5374if test "${enable_mimetype+set}" = set; then
5375 enableval="$enable_mimetype"
5376
5377 if test "$enableval" = yes; then
5378 ac_cv_use_mimetype='wxUSE_MIMETYPE=yes'
5379 else
5380 ac_cv_use_mimetype='wxUSE_MIMETYPE=no'
5381 fi
5382
5383else
5384
5385 LINE=`grep "wxUSE_MIMETYPE" ${wx_arg_cache_file}`
5386 if test "x$LINE" != x ; then
5387 eval "DEFAULT_$LINE"
5388 else
5389 no_cache=1
5390 fi
5391
5392 ac_cv_use_mimetype='wxUSE_MIMETYPE='$DEFAULT_wxUSE_MIMETYPE
5393
5394fi;
5395
5396 eval "$ac_cv_use_mimetype"
5397 if test "$no_cache" != 1; then
5398 echo $ac_cv_use_mimetype >> ${wx_arg_cache_file}.tmp
5399 fi
5400
5401 if test "$wxUSE_MIMETYPE" = yes; then
5402 echo "$as_me:$LINENO: result: yes" >&5
5403echo "${ECHO_T}yes" >&6
5404 else
5405 echo "$as_me:$LINENO: result: no" >&5
5406echo "${ECHO_T}no" >&6
5407 fi
5408
5409
5410 enablestring=
5411 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mslu" >&5
5412echo $ECHO_N "checking for --${enablestring:-enable}-mslu... $ECHO_C" >&6
5413 no_cache=0
5414 # Check whether --enable-mslu or --disable-mslu was given.
5415if test "${enable_mslu+set}" = set; then
5416 enableval="$enable_mslu"
5417
5418 if test "$enableval" = yes; then
5419 ac_cv_use_mslu='wxUSE_UNICODE_MSLU=yes'
5420 else
5421 ac_cv_use_mslu='wxUSE_UNICODE_MSLU=no'
5422 fi
5423
5424else
5425
5426 LINE=`grep "wxUSE_UNICODE_MSLU" ${wx_arg_cache_file}`
5427 if test "x$LINE" != x ; then
5428 eval "DEFAULT_$LINE"
5429 else
5430 no_cache=1
5431 fi
5432
5433 ac_cv_use_mslu='wxUSE_UNICODE_MSLU='$DEFAULT_wxUSE_UNICODE_MSLU
5434
5435fi;
5436
5437 eval "$ac_cv_use_mslu"
5438 if test "$no_cache" != 1; then
5439 echo $ac_cv_use_mslu >> ${wx_arg_cache_file}.tmp
5440 fi
5441
5442 if test "$wxUSE_UNICODE_MSLU" = yes; then
5443 echo "$as_me:$LINENO: result: yes" >&5
5444echo "${ECHO_T}yes" >&6
5445 else
5446 echo "$as_me:$LINENO: result: no" >&5
5447echo "${ECHO_T}no" >&6
5448 fi
5449
5450
5451 enablestring=
5452 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-snglinst" >&5
5453echo $ECHO_N "checking for --${enablestring:-enable}-snglinst... $ECHO_C" >&6
5454 no_cache=0
5455 # Check whether --enable-snglinst or --disable-snglinst was given.
5456if test "${enable_snglinst+set}" = set; then
5457 enableval="$enable_snglinst"
5458
5459 if test "$enableval" = yes; then
5460 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes'
5461 else
5462 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no'
5463 fi
5464
5465else
5466
5467 LINE=`grep "wxUSE_SNGLINST_CHECKER" ${wx_arg_cache_file}`
5468 if test "x$LINE" != x ; then
5469 eval "DEFAULT_$LINE"
5470 else
5471 no_cache=1
5472 fi
5473
5474 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER='$DEFAULT_wxUSE_SNGLINST_CHECKER
5475
5476fi;
5477
5478 eval "$ac_cv_use_snglinst"
5479 if test "$no_cache" != 1; then
5480 echo $ac_cv_use_snglinst >> ${wx_arg_cache_file}.tmp
5481 fi
5482
5483 if test "$wxUSE_SNGLINST_CHECKER" = yes; then
5484 echo "$as_me:$LINENO: result: yes" >&5
5485echo "${ECHO_T}yes" >&6
5486 else
5487 echo "$as_me:$LINENO: result: no" >&5
5488echo "${ECHO_T}no" >&6
5489 fi
5490
5491
5492 enablestring=
5493 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-streams" >&5
5494echo $ECHO_N "checking for --${enablestring:-enable}-streams... $ECHO_C" >&6
5495 no_cache=0
5496 # Check whether --enable-streams or --disable-streams was given.
5497if test "${enable_streams+set}" = set; then
5498 enableval="$enable_streams"
5499
5500 if test "$enableval" = yes; then
5501 ac_cv_use_streams='wxUSE_STREAMS=yes'
5502 else
5503 ac_cv_use_streams='wxUSE_STREAMS=no'
5504 fi
5505
5506else
5507
5508 LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}`
5509 if test "x$LINE" != x ; then
5510 eval "DEFAULT_$LINE"
5511 else
5512 no_cache=1
5513 fi
5514
5515 ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS
5516
5517fi;
5518
5519 eval "$ac_cv_use_streams"
5520 if test "$no_cache" != 1; then
5521 echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp
5522 fi
5523
5524 if test "$wxUSE_STREAMS" = yes; then
5525 echo "$as_me:$LINENO: result: yes" >&5
5526echo "${ECHO_T}yes" >&6
5527 else
5528 echo "$as_me:$LINENO: result: no" >&5
5529echo "${ECHO_T}no" >&6
5530 fi
5531
5532
5533 enablestring=
5534 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-std_iostreams" >&5
5535echo $ECHO_N "checking for --${enablestring:-enable}-std_iostreams... $ECHO_C" >&6
5536 no_cache=0
5537 # Check whether --enable-std_iostreams or --disable-std_iostreams was given.
5538if test "${enable_std_iostreams+set}" = set; then
5539 enableval="$enable_std_iostreams"
5540
5541 if test "$enableval" = yes; then
5542 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes'
5543 else
5544 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no'
5545 fi
5546
5547else
5548
5549 LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}`
5550 if test "x$LINE" != x ; then
5551 eval "DEFAULT_$LINE"
5552 else
5553 no_cache=1
5554 fi
5555
5556 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM
5557
5558fi;
5559
5560 eval "$ac_cv_use_std_iostreams"
5561 if test "$no_cache" != 1; then
5562 echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp
5563 fi
5564
5565 if test "$wxUSE_STD_IOSTREAM" = yes; then
5566 echo "$as_me:$LINENO: result: yes" >&5
5567echo "${ECHO_T}yes" >&6
5568 else
5569 echo "$as_me:$LINENO: result: no" >&5
5570echo "${ECHO_T}no" >&6
5571 fi
5572
5573
5574 enablestring=
5575 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stopwatch" >&5
5576echo $ECHO_N "checking for --${enablestring:-enable}-stopwatch... $ECHO_C" >&6
5577 no_cache=0
5578 # Check whether --enable-stopwatch or --disable-stopwatch was given.
5579if test "${enable_stopwatch+set}" = set; then
5580 enableval="$enable_stopwatch"
5581
5582 if test "$enableval" = yes; then
5583 ac_cv_use_stopwatch='wxUSE_STOPWATCH=yes'
5584 else
5585 ac_cv_use_stopwatch='wxUSE_STOPWATCH=no'
5586 fi
5587
5588else
5589
5590 LINE=`grep "wxUSE_STOPWATCH" ${wx_arg_cache_file}`
5591 if test "x$LINE" != x ; then
5592 eval "DEFAULT_$LINE"
5593 else
5594 no_cache=1
5595 fi
5596
5597 ac_cv_use_stopwatch='wxUSE_STOPWATCH='$DEFAULT_wxUSE_STOPWATCH
5598
5599fi;
5600
5601 eval "$ac_cv_use_stopwatch"
5602 if test "$no_cache" != 1; then
5603 echo $ac_cv_use_stopwatch >> ${wx_arg_cache_file}.tmp
5604 fi
5605
5606 if test "$wxUSE_STOPWATCH" = yes; then
5607 echo "$as_me:$LINENO: result: yes" >&5
5608echo "${ECHO_T}yes" >&6
5609 else
5610 echo "$as_me:$LINENO: result: no" >&5
5611echo "${ECHO_T}no" >&6
5612 fi
5613
5614
5615 enablestring=
5616 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-system_options" >&5
5617echo $ECHO_N "checking for --${enablestring:-enable}-system_options... $ECHO_C" >&6
5618 no_cache=0
5619 # Check whether --enable-system_options or --disable-system_options was given.
5620if test "${enable_system_options+set}" = set; then
5621 enableval="$enable_system_options"
5622
5623 if test "$enableval" = yes; then
5624 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=yes'
5625 else
5626 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=no'
5627 fi
5628
5629else
5630
5631 LINE=`grep "wxUSE_SYSTEM_OPTIONS" ${wx_arg_cache_file}`
5632 if test "x$LINE" != x ; then
5633 eval "DEFAULT_$LINE"
5634 else
5635 no_cache=1
5636 fi
5637
5638 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS='$DEFAULT_wxUSE_SYSTEM_OPTIONS
5639
5640fi;
5641
5642 eval "$ac_cv_use_system_options"
5643 if test "$no_cache" != 1; then
5644 echo $ac_cv_use_system_options >> ${wx_arg_cache_file}.tmp
5645 fi
5646
5647 if test "$wxUSE_SYSTEM_OPTIONS" = yes; then
5648 echo "$as_me:$LINENO: result: yes" >&5
5649echo "${ECHO_T}yes" >&6
5650 else
5651 echo "$as_me:$LINENO: result: no" >&5
5652echo "${ECHO_T}no" >&6
5653 fi
5654
5655
5656 enablestring=
5657 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textbuf" >&5
5658echo $ECHO_N "checking for --${enablestring:-enable}-textbuf... $ECHO_C" >&6
5659 no_cache=0
5660 # Check whether --enable-textbuf or --disable-textbuf was given.
5661if test "${enable_textbuf+set}" = set; then
5662 enableval="$enable_textbuf"
5663
5664 if test "$enableval" = yes; then
5665 ac_cv_use_textbuf='wxUSE_TEXTBUFFER=yes'
5666 else
5667 ac_cv_use_textbuf='wxUSE_TEXTBUFFER=no'
5668 fi
5669
5670else
5671
5672 LINE=`grep "wxUSE_TEXTBUFFER" ${wx_arg_cache_file}`
5673 if test "x$LINE" != x ; then
5674 eval "DEFAULT_$LINE"
5675 else
5676 no_cache=1
5677 fi
5678
5679 ac_cv_use_textbuf='wxUSE_TEXTBUFFER='$DEFAULT_wxUSE_TEXTBUFFER
5680
5681fi;
5682
5683 eval "$ac_cv_use_textbuf"
5684 if test "$no_cache" != 1; then
5685 echo $ac_cv_use_textbuf >> ${wx_arg_cache_file}.tmp
5686 fi
5687
5688 if test "$wxUSE_TEXTBUFFER" = yes; then
5689 echo "$as_me:$LINENO: result: yes" >&5
5690echo "${ECHO_T}yes" >&6
5691 else
5692 echo "$as_me:$LINENO: result: no" >&5
5693echo "${ECHO_T}no" >&6
5694 fi
5695
5696
5697 enablestring=
5698 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textfile" >&5
5699echo $ECHO_N "checking for --${enablestring:-enable}-textfile... $ECHO_C" >&6
5700 no_cache=0
5701 # Check whether --enable-textfile or --disable-textfile was given.
5702if test "${enable_textfile+set}" = set; then
5703 enableval="$enable_textfile"
5704
5705 if test "$enableval" = yes; then
5706 ac_cv_use_textfile='wxUSE_TEXTFILE=yes'
5707 else
5708 ac_cv_use_textfile='wxUSE_TEXTFILE=no'
5709 fi
5710
5711else
5712
5713 LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}`
5714 if test "x$LINE" != x ; then
5715 eval "DEFAULT_$LINE"
5716 else
5717 no_cache=1
5718 fi
5719
5720 ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE
5721
5722fi;
5723
5724 eval "$ac_cv_use_textfile"
5725 if test "$no_cache" != 1; then
5726 echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp
5727 fi
5728
5729 if test "$wxUSE_TEXTFILE" = yes; then
5730 echo "$as_me:$LINENO: result: yes" >&5
5731echo "${ECHO_T}yes" >&6
5732 else
5733 echo "$as_me:$LINENO: result: no" >&5
5734echo "${ECHO_T}no" >&6
5735 fi
5736
5737
5738 enablestring=
5739 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-timer" >&5
5740echo $ECHO_N "checking for --${enablestring:-enable}-timer... $ECHO_C" >&6
5741 no_cache=0
5742 # Check whether --enable-timer or --disable-timer was given.
5743if test "${enable_timer+set}" = set; then
5744 enableval="$enable_timer"
5745
5746 if test "$enableval" = yes; then
5747 ac_cv_use_timer='wxUSE_TIMER=yes'
5748 else
5749 ac_cv_use_timer='wxUSE_TIMER=no'
5750 fi
5751
5752else
5753
5754 LINE=`grep "wxUSE_TIMER" ${wx_arg_cache_file}`
5755 if test "x$LINE" != x ; then
5756 eval "DEFAULT_$LINE"
5757 else
5758 no_cache=1
5759 fi
5760
5761 ac_cv_use_timer='wxUSE_TIMER='$DEFAULT_wxUSE_TIMER
5762
5763fi;
5764
5765 eval "$ac_cv_use_timer"
5766 if test "$no_cache" != 1; then
5767 echo $ac_cv_use_timer >> ${wx_arg_cache_file}.tmp
5768 fi
5769
5770 if test "$wxUSE_TIMER" = yes; then
5771 echo "$as_me:$LINENO: result: yes" >&5
5772echo "${ECHO_T}yes" >&6
5773 else
5774 echo "$as_me:$LINENO: result: no" >&5
5775echo "${ECHO_T}no" >&6
5776 fi
5777
5778
5779 enablestring=
5780 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-unicode" >&5
5781echo $ECHO_N "checking for --${enablestring:-enable}-unicode... $ECHO_C" >&6
5782 no_cache=0
5783 # Check whether --enable-unicode or --disable-unicode was given.
5784if test "${enable_unicode+set}" = set; then
5785 enableval="$enable_unicode"
5786
5787 if test "$enableval" = yes; then
5788 ac_cv_use_unicode='wxUSE_UNICODE=yes'
5789 else
5790 ac_cv_use_unicode='wxUSE_UNICODE=no'
5791 fi
5792
5793else
5794
5795 LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}`
5796 if test "x$LINE" != x ; then
5797 eval "DEFAULT_$LINE"
5798 else
5799 no_cache=1
5800 fi
5801
5802 ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE
5803
5804fi;
5805
5806 eval "$ac_cv_use_unicode"
5807 if test "$no_cache" != 1; then
5808 echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp
5809 fi
5810
5811 if test "$wxUSE_UNICODE" = yes; then
5812 echo "$as_me:$LINENO: result: yes" >&5
5813echo "${ECHO_T}yes" >&6
5814 else
5815 echo "$as_me:$LINENO: result: no" >&5
5816echo "${ECHO_T}no" >&6
5817 fi
5818
5819
5820 enablestring=
5821 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sound" >&5
5822echo $ECHO_N "checking for --${enablestring:-enable}-sound... $ECHO_C" >&6
5823 no_cache=0
5824 # Check whether --enable-sound or --disable-sound was given.
5825if test "${enable_sound+set}" = set; then
5826 enableval="$enable_sound"
5827
5828 if test "$enableval" = yes; then
5829 ac_cv_use_sound='wxUSE_SOUND=yes'
5830 else
5831 ac_cv_use_sound='wxUSE_SOUND=no'
5832 fi
5833
5834else
5835
5836 LINE=`grep "wxUSE_SOUND" ${wx_arg_cache_file}`
5837 if test "x$LINE" != x ; then
5838 eval "DEFAULT_$LINE"
5839 else
5840 no_cache=1
5841 fi
5842
5843 ac_cv_use_sound='wxUSE_SOUND='$DEFAULT_wxUSE_SOUND
5844
5845fi;
5846
5847 eval "$ac_cv_use_sound"
5848 if test "$no_cache" != 1; then
5849 echo $ac_cv_use_sound >> ${wx_arg_cache_file}.tmp
5850 fi
5851
5852 if test "$wxUSE_SOUND" = yes; then
5853 echo "$as_me:$LINENO: result: yes" >&5
5854echo "${ECHO_T}yes" >&6
5855 else
5856 echo "$as_me:$LINENO: result: no" >&5
5857echo "${ECHO_T}no" >&6
5858 fi
5859
5860
3b57de8b
RL
5861 enablestring=
5862 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mediactrl" >&5
5863echo $ECHO_N "checking for --${enablestring:-enable}-mediactrl... $ECHO_C" >&6
5864 no_cache=0
5865 # Check whether --enable-mediactrl or --disable-mediactrl was given.
5866if test "${enable_mediactrl+set}" = set; then
5867 enableval="$enable_mediactrl"
5868
5869 if test "$enableval" = yes; then
5870 ac_cv_use_mediactrl='wxUSE_MEDIACTRL=yes'
5871 else
5872 ac_cv_use_mediactrl='wxUSE_MEDIACTRL=no'
5873 fi
5874
5875else
5876
5877 LINE=`grep "wxUSE_MEDIACTRL" ${wx_arg_cache_file}`
5878 if test "x$LINE" != x ; then
5879 eval "DEFAULT_$LINE"
5880 else
5881 no_cache=1
5882 fi
5883
5884 ac_cv_use_mediactrl='wxUSE_MEDIACTRL='$DEFAULT_wxUSE_MEDIACTRL
5885
5886fi;
5887
5888 eval "$ac_cv_use_mediactrl"
5889 if test "$no_cache" != 1; then
5890 echo $ac_cv_use_mediactrl >> ${wx_arg_cache_file}.tmp
5891 fi
5892
5893 if test "$wxUSE_MEDIACTRL" = yes; then
5894 echo "$as_me:$LINENO: result: yes" >&5
5895echo "${ECHO_T}yes" >&6
5896 else
5897 echo "$as_me:$LINENO: result: no" >&5
5898echo "${ECHO_T}no" >&6
5899 fi
5900
5901
a848cd7e
SC
5902 enablestring=
5903 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wxprintfv" >&5
5904echo $ECHO_N "checking for --${enablestring:-enable}-wxprintfv... $ECHO_C" >&6
5905 no_cache=0
5906 # Check whether --enable-wxprintfv or --disable-wxprintfv was given.
5907if test "${enable_wxprintfv+set}" = set; then
5908 enableval="$enable_wxprintfv"
5909
5910 if test "$enableval" = yes; then
5911 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=yes'
5912 else
5913 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=no'
5914 fi
5915
5916else
5917
5918 LINE=`grep "wxUSE_EXPERIMENTAL_PRINTF" ${wx_arg_cache_file}`
5919 if test "x$LINE" != x ; then
5920 eval "DEFAULT_$LINE"
5921 else
5922 no_cache=1
5923 fi
5924
5925 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF='$DEFAULT_wxUSE_EXPERIMENTAL_PRINTF
5926
5927fi;
5928
5929 eval "$ac_cv_use_wxprintfv"
5930 if test "$no_cache" != 1; then
5931 echo $ac_cv_use_wxprintfv >> ${wx_arg_cache_file}.tmp
5932 fi
5933
5934 if test "$wxUSE_EXPERIMENTAL_PRINTF" = yes; then
5935 echo "$as_me:$LINENO: result: yes" >&5
5936echo "${ECHO_T}yes" >&6
5937 else
5938 echo "$as_me:$LINENO: result: no" >&5
5939echo "${ECHO_T}no" >&6
5940 fi
5941
5942
5943 enablestring=
5944 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-zipstream" >&5
5945echo $ECHO_N "checking for --${enablestring:-enable}-zipstream... $ECHO_C" >&6
5946 no_cache=0
5947 # Check whether --enable-zipstream or --disable-zipstream was given.
5948if test "${enable_zipstream+set}" = set; then
5949 enableval="$enable_zipstream"
5950
5951 if test "$enableval" = yes; then
5952 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes'
5953 else
5954 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no'
5955 fi
5956
5957else
5958
5959 LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}`
5960 if test "x$LINE" != x ; then
5961 eval "DEFAULT_$LINE"
5962 else
5963 no_cache=1
5964 fi
5965
5966 ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM
5967
5968fi;
5969
5970 eval "$ac_cv_use_zipstream"
5971 if test "$no_cache" != 1; then
5972 echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp
5973 fi
5974
5975 if test "$wxUSE_ZIPSTREAM" = yes; then
5976 echo "$as_me:$LINENO: result: yes" >&5
5977echo "${ECHO_T}yes" >&6
5978 else
5979 echo "$as_me:$LINENO: result: no" >&5
5980echo "${ECHO_T}no" >&6
5981 fi
5982
5983
a848cd7e
SC
5984
5985 enablestring=
5986 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-url" >&5
5987echo $ECHO_N "checking for --${enablestring:-enable}-url... $ECHO_C" >&6
5988 no_cache=0
5989 # Check whether --enable-url or --disable-url was given.
5990if test "${enable_url+set}" = set; then
5991 enableval="$enable_url"
5992
5993 if test "$enableval" = yes; then
5994 ac_cv_use_url='wxUSE_URL=yes'
5995 else
5996 ac_cv_use_url='wxUSE_URL=no'
5997 fi
5998
5999else
6000
6001 LINE=`grep "wxUSE_URL" ${wx_arg_cache_file}`
6002 if test "x$LINE" != x ; then
6003 eval "DEFAULT_$LINE"
6004 else
6005 no_cache=1
6006 fi
6007
6008 ac_cv_use_url='wxUSE_URL='$DEFAULT_wxUSE_URL
6009
6010fi;
6011
6012 eval "$ac_cv_use_url"
6013 if test "$no_cache" != 1; then
6014 echo $ac_cv_use_url >> ${wx_arg_cache_file}.tmp
6015 fi
6016
6017 if test "$wxUSE_URL" = yes; then
6018 echo "$as_me:$LINENO: result: yes" >&5
6019echo "${ECHO_T}yes" >&6
6020 else
6021 echo "$as_me:$LINENO: result: no" >&5
6022echo "${ECHO_T}no" >&6
6023 fi
6024
6025
6026 enablestring=
6027 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol" >&5
6028echo $ECHO_N "checking for --${enablestring:-enable}-protocol... $ECHO_C" >&6
6029 no_cache=0
6030 # Check whether --enable-protocol or --disable-protocol was given.
6031if test "${enable_protocol+set}" = set; then
6032 enableval="$enable_protocol"
6033
6034 if test "$enableval" = yes; then
6035 ac_cv_use_protocol='wxUSE_PROTOCOL=yes'
6036 else
6037 ac_cv_use_protocol='wxUSE_PROTOCOL=no'
6038 fi
6039
6040else
6041
6042 LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
6043 if test "x$LINE" != x ; then
6044 eval "DEFAULT_$LINE"
6045 else
6046 no_cache=1
6047 fi
6048
6049 ac_cv_use_protocol='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
6050
6051fi;
6052
6053 eval "$ac_cv_use_protocol"
6054 if test "$no_cache" != 1; then
6055 echo $ac_cv_use_protocol >> ${wx_arg_cache_file}.tmp
6056 fi
6057
6058 if test "$wxUSE_PROTOCOL" = yes; then
6059 echo "$as_me:$LINENO: result: yes" >&5
6060echo "${ECHO_T}yes" >&6
6061 else
6062 echo "$as_me:$LINENO: result: no" >&5
6063echo "${ECHO_T}no" >&6
6064 fi
6065
6066
6067 enablestring=
6068 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_http" >&5
6069echo $ECHO_N "checking for --${enablestring:-enable}-protocol_http... $ECHO_C" >&6
6070 no_cache=0
6071 # Check whether --enable-protocol_http or --disable-protocol_http was given.
6072if test "${enable_protocol_http+set}" = set; then
6073 enableval="$enable_protocol_http"
6074
6075 if test "$enableval" = yes; then
6076 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=yes'
6077 else
6078 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=no'
6079 fi
6080
6081else
6082
6083 LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
6084 if test "x$LINE" != x ; then
6085 eval "DEFAULT_$LINE"
6086 else
6087 no_cache=1
6088 fi
6089
6090 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
6091
6092fi;
6093
6094 eval "$ac_cv_use_protocol_http"
6095 if test "$no_cache" != 1; then
6096 echo $ac_cv_use_protocol_http >> ${wx_arg_cache_file}.tmp
6097 fi
6098
6099 if test "$wxUSE_PROTOCOL_HTTP" = yes; then
6100 echo "$as_me:$LINENO: result: yes" >&5
6101echo "${ECHO_T}yes" >&6
6102 else
6103 echo "$as_me:$LINENO: result: no" >&5
6104echo "${ECHO_T}no" >&6
6105 fi
6106
6107
6108 enablestring=
6109 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_ftp" >&5
6110echo $ECHO_N "checking for --${enablestring:-enable}-protocol_ftp... $ECHO_C" >&6
6111 no_cache=0
6112 # Check whether --enable-protocol_ftp or --disable-protocol_ftp was given.
6113if test "${enable_protocol_ftp+set}" = set; then
6114 enableval="$enable_protocol_ftp"
6115
6116 if test "$enableval" = yes; then
6117 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=yes'
6118 else
6119 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=no'
6120 fi
6121
6122else
6123
6124 LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
6125 if test "x$LINE" != x ; then
6126 eval "DEFAULT_$LINE"
6127 else
6128 no_cache=1
6129 fi
6130
6131 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
6132
6133fi;
6134
6135 eval "$ac_cv_use_protocol_ftp"
6136 if test "$no_cache" != 1; then
6137 echo $ac_cv_use_protocol_ftp >> ${wx_arg_cache_file}.tmp
6138 fi
6139
6140 if test "$wxUSE_PROTOCOL_FTP" = yes; then
6141 echo "$as_me:$LINENO: result: yes" >&5
6142echo "${ECHO_T}yes" >&6
6143 else
6144 echo "$as_me:$LINENO: result: no" >&5
6145echo "${ECHO_T}no" >&6
6146 fi
6147
6148
6149 enablestring=
6150 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_file" >&5
6151echo $ECHO_N "checking for --${enablestring:-enable}-protocol_file... $ECHO_C" >&6
6152 no_cache=0
6153 # Check whether --enable-protocol_file or --disable-protocol_file was given.
6154if test "${enable_protocol_file+set}" = set; then
6155 enableval="$enable_protocol_file"
6156
6157 if test "$enableval" = yes; then
6158 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=yes'
6159 else
6160 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=no'
6161 fi
6162
6163else
6164
6165 LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
6166 if test "x$LINE" != x ; then
6167 eval "DEFAULT_$LINE"
6168 else
6169 no_cache=1
6170 fi
6171
6172 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
6173
6174fi;
6175
6176 eval "$ac_cv_use_protocol_file"
6177 if test "$no_cache" != 1; then
6178 echo $ac_cv_use_protocol_file >> ${wx_arg_cache_file}.tmp
6179 fi
6180
6181 if test "$wxUSE_PROTOCOL_FILE" = yes; then
6182 echo "$as_me:$LINENO: result: yes" >&5
6183echo "${ECHO_T}yes" >&6
6184 else
6185 echo "$as_me:$LINENO: result: no" >&5
6186echo "${ECHO_T}no" >&6
6187 fi
6188
6189
6190
6191
6192
6193 enablestring=
6194 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-threads" >&5
6195echo $ECHO_N "checking for --${enablestring:-enable}-threads... $ECHO_C" >&6
6196 no_cache=0
6197 # Check whether --enable-threads or --disable-threads was given.
6198if test "${enable_threads+set}" = set; then
6199 enableval="$enable_threads"
6200
6201 if test "$enableval" = yes; then
6202 ac_cv_use_threads='wxUSE_THREADS=yes'
6203 else
6204 ac_cv_use_threads='wxUSE_THREADS=no'
6205 fi
6206
6207else
6208
6209 LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}`
6210 if test "x$LINE" != x ; then
6211 eval "DEFAULT_$LINE"
6212 else
6213 no_cache=1
6214 fi
6215
6216 ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS
6217
6218fi;
6219
6220 eval "$ac_cv_use_threads"
6221 if test "$no_cache" != 1; then
6222 echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp
6223 fi
6224
6225 if test "$wxUSE_THREADS" = yes; then
6226 echo "$as_me:$LINENO: result: yes" >&5
6227echo "${ECHO_T}yes" >&6
6228 else
6229 echo "$as_me:$LINENO: result: no" >&5
6230echo "${ECHO_T}no" >&6
6231 fi
6232
6233
6234if test "$wxUSE_GUI" = "yes"; then
6235
6236
6237
6238 enablestring=
6239 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-docview" >&5
6240echo $ECHO_N "checking for --${enablestring:-enable}-docview... $ECHO_C" >&6
6241 no_cache=0
6242 # Check whether --enable-docview or --disable-docview was given.
6243if test "${enable_docview+set}" = set; then
6244 enableval="$enable_docview"
6245
6246 if test "$enableval" = yes; then
6247 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes'
6248 else
6249 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no'
6250 fi
6251
6252else
6253
6254 LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}`
6255 if test "x$LINE" != x ; then
6256 eval "DEFAULT_$LINE"
6257 else
6258 no_cache=1
6259 fi
6260
6261 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE
6262
6263fi;
6264
6265 eval "$ac_cv_use_docview"
6266 if test "$no_cache" != 1; then
6267 echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp
6268 fi
6269
6270 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then
6271 echo "$as_me:$LINENO: result: yes" >&5
6272echo "${ECHO_T}yes" >&6
6273 else
6274 echo "$as_me:$LINENO: result: no" >&5
6275echo "${ECHO_T}no" >&6
6276 fi
6277
6278
6279 enablestring=
6280 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-help" >&5
6281echo $ECHO_N "checking for --${enablestring:-enable}-help... $ECHO_C" >&6
6282 no_cache=0
6283 # Check whether --enable-help or --disable-help was given.
6284if test "${enable_help+set}" = set; then
6285 enableval="$enable_help"
6286
6287 if test "$enableval" = yes; then
6288 ac_cv_use_help='wxUSE_HELP=yes'
6289 else
6290 ac_cv_use_help='wxUSE_HELP=no'
6291 fi
6292
6293else
6294
6295 LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}`
6296 if test "x$LINE" != x ; then
6297 eval "DEFAULT_$LINE"
6298 else
6299 no_cache=1
6300 fi
6301
6302 ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP
6303
6304fi;
6305
6306 eval "$ac_cv_use_help"
6307 if test "$no_cache" != 1; then
6308 echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp
6309 fi
6310
6311 if test "$wxUSE_HELP" = yes; then
6312 echo "$as_me:$LINENO: result: yes" >&5
6313echo "${ECHO_T}yes" >&6
6314 else
6315 echo "$as_me:$LINENO: result: no" >&5
6316echo "${ECHO_T}no" >&6
6317 fi
6318
6319
6320 enablestring=
6321 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mshtmlhelp" >&5
6322echo $ECHO_N "checking for --${enablestring:-enable}-mshtmlhelp... $ECHO_C" >&6
6323 no_cache=0
6324 # Check whether --enable-mshtmlhelp or --disable-mshtmlhelp was given.
6325if test "${enable_mshtmlhelp+set}" = set; then
6326 enableval="$enable_mshtmlhelp"
6327
6328 if test "$enableval" = yes; then
6329 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=yes'
6330 else
6331 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=no'
6332 fi
6333
6334else
6335
6336 LINE=`grep "wxUSE_MS_HTML_HELP" ${wx_arg_cache_file}`
6337 if test "x$LINE" != x ; then
6338 eval "DEFAULT_$LINE"
6339 else
6340 no_cache=1
6341 fi
6342
6343 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP='$DEFAULT_wxUSE_MS_HTML_HELP
6344
6345fi;
6346
6347 eval "$ac_cv_use_mshtmlhelp"
6348 if test "$no_cache" != 1; then
6349 echo $ac_cv_use_mshtmlhelp >> ${wx_arg_cache_file}.tmp
6350 fi
6351
6352 if test "$wxUSE_MS_HTML_HELP" = yes; then
6353 echo "$as_me:$LINENO: result: yes" >&5
6354echo "${ECHO_T}yes" >&6
6355 else
6356 echo "$as_me:$LINENO: result: no" >&5
6357echo "${ECHO_T}no" >&6
6358 fi
6359
6360
6361 enablestring=
6362 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-html" >&5
6363echo $ECHO_N "checking for --${enablestring:-enable}-html... $ECHO_C" >&6
6364 no_cache=0
6365 # Check whether --enable-html or --disable-html was given.
6366if test "${enable_html+set}" = set; then
6367 enableval="$enable_html"
6368
6369 if test "$enableval" = yes; then
6370 ac_cv_use_html='wxUSE_HTML=yes'
6371 else
6372 ac_cv_use_html='wxUSE_HTML=no'
6373 fi
6374
6375else
6376
6377 LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}`
6378 if test "x$LINE" != x ; then
6379 eval "DEFAULT_$LINE"
6380 else
6381 no_cache=1
6382 fi
6383
6384 ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML
6385
6386fi;
6387
6388 eval "$ac_cv_use_html"
6389 if test "$no_cache" != 1; then
6390 echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp
6391 fi
6392
6393 if test "$wxUSE_HTML" = yes; then
6394 echo "$as_me:$LINENO: result: yes" >&5
6395echo "${ECHO_T}yes" >&6
6396 else
6397 echo "$as_me:$LINENO: result: no" >&5
6398echo "${ECHO_T}no" >&6
6399 fi
6400
6401
6402 enablestring=
6403 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-htmlhelp" >&5
6404echo $ECHO_N "checking for --${enablestring:-enable}-htmlhelp... $ECHO_C" >&6
6405 no_cache=0
6406 # Check whether --enable-htmlhelp or --disable-htmlhelp was given.
6407if test "${enable_htmlhelp+set}" = set; then
6408 enableval="$enable_htmlhelp"
6409
6410 if test "$enableval" = yes; then
6411 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=yes'
6412 else
6413 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=no'
6414 fi
6415
6416else
6417
6418 LINE=`grep "wxUSE_WXHTML_HELP" ${wx_arg_cache_file}`
6419 if test "x$LINE" != x ; then
6420 eval "DEFAULT_$LINE"
6421 else
6422 no_cache=1
6423 fi
6424
6425 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP='$DEFAULT_wxUSE_WXHTML_HELP
6426
6427fi;
6428
6429 eval "$ac_cv_use_htmlhelp"
6430 if test "$no_cache" != 1; then
6431 echo $ac_cv_use_htmlhelp >> ${wx_arg_cache_file}.tmp
6432 fi
6433
6434 if test "$wxUSE_WXHTML_HELP" = yes; then
6435 echo "$as_me:$LINENO: result: yes" >&5
6436echo "${ECHO_T}yes" >&6
6437 else
6438 echo "$as_me:$LINENO: result: no" >&5
6439echo "${ECHO_T}no" >&6
6440 fi
6441
6442
9a8f0513
VS
6443 enablestring=
6444 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xrc" >&5
6445echo $ECHO_N "checking for --${enablestring:-enable}-xrc... $ECHO_C" >&6
6446 no_cache=0
6447 # Check whether --enable-xrc or --disable-xrc was given.
6448if test "${enable_xrc+set}" = set; then
6449 enableval="$enable_xrc"
6450
6451 if test "$enableval" = yes; then
6452 ac_cv_use_xrc='wxUSE_XRC=yes'
6453 else
6454 ac_cv_use_xrc='wxUSE_XRC=no'
6455 fi
6456
6457else
6458
6459 LINE=`grep "wxUSE_XRC" ${wx_arg_cache_file}`
6460 if test "x$LINE" != x ; then
6461 eval "DEFAULT_$LINE"
6462 else
6463 no_cache=1
6464 fi
6465
6466 ac_cv_use_xrc='wxUSE_XRC='$DEFAULT_wxUSE_XRC
6467
6468fi;
6469
6470 eval "$ac_cv_use_xrc"
6471 if test "$no_cache" != 1; then
6472 echo $ac_cv_use_xrc >> ${wx_arg_cache_file}.tmp
6473 fi
6474
6475 if test "$wxUSE_XRC" = yes; then
6476 echo "$as_me:$LINENO: result: yes" >&5
6477echo "${ECHO_T}yes" >&6
6478 else
6479 echo "$as_me:$LINENO: result: no" >&5
6480echo "${ECHO_T}no" >&6
6481 fi
6482
6483
a848cd7e
SC
6484 enablestring=
6485 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-constraints" >&5
6486echo $ECHO_N "checking for --${enablestring:-enable}-constraints... $ECHO_C" >&6
6487 no_cache=0
6488 # Check whether --enable-constraints or --disable-constraints was given.
6489if test "${enable_constraints+set}" = set; then
6490 enableval="$enable_constraints"
6491
6492 if test "$enableval" = yes; then
6493 ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes'
6494 else
6495 ac_cv_use_constraints='wxUSE_CONSTRAINTS=no'
6496 fi
6497
6498else
6499
6500 LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}`
6501 if test "x$LINE" != x ; then
6502 eval "DEFAULT_$LINE"
6503 else
6504 no_cache=1
6505 fi
6506
6507 ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS
6508
6509fi;
6510
6511 eval "$ac_cv_use_constraints"
6512 if test "$no_cache" != 1; then
6513 echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp
6514 fi
6515
6516 if test "$wxUSE_CONSTRAINTS" = yes; then
6517 echo "$as_me:$LINENO: result: yes" >&5
6518echo "${ECHO_T}yes" >&6
6519 else
6520 echo "$as_me:$LINENO: result: no" >&5
6521echo "${ECHO_T}no" >&6
6522 fi
6523
6524
6525 enablestring=
6526 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-printarch" >&5
6527echo $ECHO_N "checking for --${enablestring:-enable}-printarch... $ECHO_C" >&6
6528 no_cache=0
6529 # Check whether --enable-printarch or --disable-printarch was given.
6530if test "${enable_printarch+set}" = set; then
6531 enableval="$enable_printarch"
6532
6533 if test "$enableval" = yes; then
6534 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes'
6535 else
6536 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no'
6537 fi
6538
6539else
6540
6541 LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}`
6542 if test "x$LINE" != x ; then
6543 eval "DEFAULT_$LINE"
6544 else
6545 no_cache=1
6546 fi
6547
6548 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE
6549
6550fi;
6551
6552 eval "$ac_cv_use_printarch"
6553 if test "$no_cache" != 1; then
6554 echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp
6555 fi
6556
6557 if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then
6558 echo "$as_me:$LINENO: result: yes" >&5
6559echo "${ECHO_T}yes" >&6
6560 else
6561 echo "$as_me:$LINENO: result: no" >&5
6562echo "${ECHO_T}no" >&6
6563 fi
6564
6565
6566 enablestring=
6567 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdi" >&5
6568echo $ECHO_N "checking for --${enablestring:-enable}-mdi... $ECHO_C" >&6
6569 no_cache=0
6570 # Check whether --enable-mdi or --disable-mdi was given.
6571if test "${enable_mdi+set}" = set; then
6572 enableval="$enable_mdi"
6573
6574 if test "$enableval" = yes; then
8a7b1113 6575 ac_cv_use_mdi='wxUSE_MDI=yes'
a848cd7e 6576 else
8a7b1113 6577 ac_cv_use_mdi='wxUSE_MDI=no'
a848cd7e
SC
6578 fi
6579
6580else
6581
8a7b1113 6582 LINE=`grep "wxUSE_MDI" ${wx_arg_cache_file}`
a848cd7e
SC
6583 if test "x$LINE" != x ; then
6584 eval "DEFAULT_$LINE"
6585 else
6586 no_cache=1
6587 fi
6588
8a7b1113 6589 ac_cv_use_mdi='wxUSE_MDI='$DEFAULT_wxUSE_MDI
a848cd7e
SC
6590
6591fi;
6592
6593 eval "$ac_cv_use_mdi"
6594 if test "$no_cache" != 1; then
6595 echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp
6596 fi
6597
8a7b1113
VZ
6598 if test "$wxUSE_MDI" = yes; then
6599 echo "$as_me:$LINENO: result: yes" >&5
6600echo "${ECHO_T}yes" >&6
6601 else
6602 echo "$as_me:$LINENO: result: no" >&5
6603echo "${ECHO_T}no" >&6
6604 fi
6605
6606
6607 enablestring=
6608 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdidoc" >&5
6609echo $ECHO_N "checking for --${enablestring:-enable}-mdidoc... $ECHO_C" >&6
6610 no_cache=0
6611 # Check whether --enable-mdidoc or --disable-mdidoc was given.
6612if test "${enable_mdidoc+set}" = set; then
6613 enableval="$enable_mdidoc"
6614
6615 if test "$enableval" = yes; then
6616 ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=yes'
6617 else
6618 ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=no'
6619 fi
6620
6621else
6622
6623 LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}`
6624 if test "x$LINE" != x ; then
6625 eval "DEFAULT_$LINE"
6626 else
6627 no_cache=1
6628 fi
6629
6630 ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE
6631
6632fi;
6633
6634 eval "$ac_cv_use_mdidoc"
6635 if test "$no_cache" != 1; then
6636 echo $ac_cv_use_mdidoc >> ${wx_arg_cache_file}.tmp
6637 fi
6638
a848cd7e
SC
6639 if test "$wxUSE_MDI_ARCHITECTURE" = yes; then
6640 echo "$as_me:$LINENO: result: yes" >&5
6641echo "${ECHO_T}yes" >&6
6642 else
6643 echo "$as_me:$LINENO: result: no" >&5
6644echo "${ECHO_T}no" >&6
6645 fi
6646
6647
6648 enablestring=
6649 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-loggui" >&5
6650echo $ECHO_N "checking for --${enablestring:-enable}-loggui... $ECHO_C" >&6
6651 no_cache=0
6652 # Check whether --enable-loggui or --disable-loggui was given.
6653if test "${enable_loggui+set}" = set; then
6654 enableval="$enable_loggui"
6655
6656 if test "$enableval" = yes; then
6657 ac_cv_use_loggui='wxUSE_LOGGUI=yes'
6658 else
6659 ac_cv_use_loggui='wxUSE_LOGGUI=no'
6660 fi
6661
6662else
6663
6664 LINE=`grep "wxUSE_LOGGUI" ${wx_arg_cache_file}`
6665 if test "x$LINE" != x ; then
6666 eval "DEFAULT_$LINE"
6667 else
6668 no_cache=1
6669 fi
6670
6671 ac_cv_use_loggui='wxUSE_LOGGUI='$DEFAULT_wxUSE_LOGGUI
6672
6673fi;
6674
6675 eval "$ac_cv_use_loggui"
6676 if test "$no_cache" != 1; then
6677 echo $ac_cv_use_loggui >> ${wx_arg_cache_file}.tmp
6678 fi
6679
6680 if test "$wxUSE_LOGGUI" = yes; then
6681 echo "$as_me:$LINENO: result: yes" >&5
6682echo "${ECHO_T}yes" >&6
6683 else
6684 echo "$as_me:$LINENO: result: no" >&5
6685echo "${ECHO_T}no" >&6
6686 fi
6687
6688
6689 enablestring=
6690 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logwin" >&5
6691echo $ECHO_N "checking for --${enablestring:-enable}-logwin... $ECHO_C" >&6
6692 no_cache=0
6693 # Check whether --enable-logwin or --disable-logwin was given.
6694if test "${enable_logwin+set}" = set; then
6695 enableval="$enable_logwin"
6696
6697 if test "$enableval" = yes; then
6698 ac_cv_use_logwin='wxUSE_LOGWINDOW=yes'
6699 else
6700 ac_cv_use_logwin='wxUSE_LOGWINDOW=no'
6701 fi
6702
6703else
6704
6705 LINE=`grep "wxUSE_LOGWINDOW" ${wx_arg_cache_file}`
6706 if test "x$LINE" != x ; then
6707 eval "DEFAULT_$LINE"
6708 else
6709 no_cache=1
6710 fi
6711
6712 ac_cv_use_logwin='wxUSE_LOGWINDOW='$DEFAULT_wxUSE_LOGWINDOW
6713
6714fi;
6715
6716 eval "$ac_cv_use_logwin"
6717 if test "$no_cache" != 1; then
6718 echo $ac_cv_use_logwin >> ${wx_arg_cache_file}.tmp
6719 fi
6720
6721 if test "$wxUSE_LOGWINDOW" = yes; then
6722 echo "$as_me:$LINENO: result: yes" >&5
6723echo "${ECHO_T}yes" >&6
6724 else
6725 echo "$as_me:$LINENO: result: no" >&5
6726echo "${ECHO_T}no" >&6
6727 fi
6728
6729
6730 enablestring=
6731 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logdialog" >&5
6732echo $ECHO_N "checking for --${enablestring:-enable}-logdialog... $ECHO_C" >&6
6733 no_cache=0
6734 # Check whether --enable-logdialog or --disable-logdialog was given.
6735if test "${enable_logdialog+set}" = set; then
6736 enableval="$enable_logdialog"
6737
6738 if test "$enableval" = yes; then
6739 ac_cv_use_logdialog='wxUSE_LOGDIALOG=yes'
6740 else
6741 ac_cv_use_logdialog='wxUSE_LOGDIALOG=no'
6742 fi
6743
6744else
6745
6746 LINE=`grep "wxUSE_LOGDIALOG" ${wx_arg_cache_file}`
6747 if test "x$LINE" != x ; then
6748 eval "DEFAULT_$LINE"
6749 else
6750 no_cache=1
6751 fi
6752
6753 ac_cv_use_logdialog='wxUSE_LOGDIALOG='$DEFAULT_wxUSE_LOGDIALOG
6754
6755fi;
6756
6757 eval "$ac_cv_use_logdialog"
6758 if test "$no_cache" != 1; then
6759 echo $ac_cv_use_logdialog >> ${wx_arg_cache_file}.tmp
6760 fi
6761
6762 if test "$wxUSE_LOGDIALOG" = yes; then
6763 echo "$as_me:$LINENO: result: yes" >&5
6764echo "${ECHO_T}yes" >&6
6765 else
6766 echo "$as_me:$LINENO: result: no" >&5
6767echo "${ECHO_T}no" >&6
6768 fi
6769
6770
646b6ec1
VS
6771 enablestring=
6772 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-webkit" >&5
6773echo $ECHO_N "checking for --${enablestring:-enable}-webkit... $ECHO_C" >&6
6774 no_cache=0
6775 # Check whether --enable-webkit or --disable-webkit was given.
6776if test "${enable_webkit+set}" = set; then
6777 enableval="$enable_webkit"
6778
6779 if test "$enableval" = yes; then
6780 ac_cv_use_webkit='wxUSE_WEBKIT=yes'
6781 else
6782 ac_cv_use_webkit='wxUSE_WEBKIT=no'
6783 fi
6784
6785else
6786
6787 LINE=`grep "wxUSE_WEBKIT" ${wx_arg_cache_file}`
6788 if test "x$LINE" != x ; then
6789 eval "DEFAULT_$LINE"
6790 else
6791 no_cache=1
6792 fi
6793
6794 ac_cv_use_webkit='wxUSE_WEBKIT='$DEFAULT_wxUSE_WEBKIT
6795
6796fi;
6797
6798 eval "$ac_cv_use_webkit"
6799 if test "$no_cache" != 1; then
6800 echo $ac_cv_use_webkit >> ${wx_arg_cache_file}.tmp
6801 fi
6802
6803 if test "$wxUSE_WEBKIT" = yes; then
6804 echo "$as_me:$LINENO: result: yes" >&5
6805echo "${ECHO_T}yes" >&6
6806 else
6807 echo "$as_me:$LINENO: result: no" >&5
6808echo "${ECHO_T}no" >&6
6809 fi
6810
6811
a848cd7e
SC
6812
6813 enablestring=
6814 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-postscript" >&5
6815echo $ECHO_N "checking for --${enablestring:-enable}-postscript... $ECHO_C" >&6
6816 no_cache=0
6817 # Check whether --enable-postscript or --disable-postscript was given.
6818if test "${enable_postscript+set}" = set; then
6819 enableval="$enable_postscript"
6820
6821 if test "$enableval" = yes; then
6822 ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes'
6823 else
6824 ac_cv_use_postscript='wxUSE_POSTSCRIPT=no'
6825 fi
6826
6827else
6828
6829 LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}`
6830 if test "x$LINE" != x ; then
6831 eval "DEFAULT_$LINE"
6832 else
6833 no_cache=1
6834 fi
6835
6836 ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT
6837
6838fi;
6839
6840 eval "$ac_cv_use_postscript"
6841 if test "$no_cache" != 1; then
6842 echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp
6843 fi
6844
6845 if test "$wxUSE_POSTSCRIPT" = yes; then
6846 echo "$as_me:$LINENO: result: yes" >&5
6847echo "${ECHO_T}yes" >&6
6848 else
6849 echo "$as_me:$LINENO: result: no" >&5
6850echo "${ECHO_T}no" >&6
6851 fi
6852
6853
6854
6855
6856
6857 enablestring=
6858 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-prologio" >&5
6859echo $ECHO_N "checking for --${enablestring:-enable}-prologio... $ECHO_C" >&6
6860 no_cache=0
6861 # Check whether --enable-prologio or --disable-prologio was given.
6862if test "${enable_prologio+set}" = set; then
6863 enableval="$enable_prologio"
6864
6865 if test "$enableval" = yes; then
6866 ac_cv_use_prologio='wxUSE_PROLOGIO=yes'
6867 else
6868 ac_cv_use_prologio='wxUSE_PROLOGIO=no'
6869 fi
6870
6871else
6872
6873 LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}`
6874 if test "x$LINE" != x ; then
6875 eval "DEFAULT_$LINE"
6876 else
6877 no_cache=1
6878 fi
6879
6880 ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO
6881
6882fi;
6883
6884 eval "$ac_cv_use_prologio"
6885 if test "$no_cache" != 1; then
6886 echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp
6887 fi
6888
6889 if test "$wxUSE_PROLOGIO" = yes; then
6890 echo "$as_me:$LINENO: result: yes" >&5
6891echo "${ECHO_T}yes" >&6
6892 else
6893 echo "$as_me:$LINENO: result: no" >&5
6894echo "${ECHO_T}no" >&6
6895 fi
6896
6897
6898 enablestring=
6899 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-resources" >&5
6900echo $ECHO_N "checking for --${enablestring:-enable}-resources... $ECHO_C" >&6
6901 no_cache=0
6902 # Check whether --enable-resources or --disable-resources was given.
6903if test "${enable_resources+set}" = set; then
6904 enableval="$enable_resources"
6905
6906 if test "$enableval" = yes; then
6907 ac_cv_use_resources='wxUSE_RESOURCES=yes'
6908 else
6909 ac_cv_use_resources='wxUSE_RESOURCES=no'
6910 fi
6911
6912else
6913
6914 LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}`
6915 if test "x$LINE" != x ; then
6916 eval "DEFAULT_$LINE"
6917 else
6918 no_cache=1
6919 fi
6920
6921 ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES
6922
6923fi;
6924
6925 eval "$ac_cv_use_resources"
6926 if test "$no_cache" != 1; then
6927 echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp
6928 fi
6929
6930 if test "$wxUSE_RESOURCES" = yes; then
6931 echo "$as_me:$LINENO: result: yes" >&5
6932echo "${ECHO_T}yes" >&6
6933 else
6934 echo "$as_me:$LINENO: result: no" >&5
6935echo "${ECHO_T}no" >&6
6936 fi
6937
6938
6939
6940
6941 enablestring=
6942 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-clipboard" >&5
6943echo $ECHO_N "checking for --${enablestring:-enable}-clipboard... $ECHO_C" >&6
6944 no_cache=0
6945 # Check whether --enable-clipboard or --disable-clipboard was given.
6946if test "${enable_clipboard+set}" = set; then
6947 enableval="$enable_clipboard"
6948
6949 if test "$enableval" = yes; then
6950 ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes'
6951 else
6952 ac_cv_use_clipboard='wxUSE_CLIPBOARD=no'
6953 fi
6954
6955else
6956
6957 LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}`
6958 if test "x$LINE" != x ; then
6959 eval "DEFAULT_$LINE"
6960 else
6961 no_cache=1
6962 fi
6963
6964 ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD
6965
6966fi;
6967
6968 eval "$ac_cv_use_clipboard"
6969 if test "$no_cache" != 1; then
6970 echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp
6971 fi
6972
6973 if test "$wxUSE_CLIPBOARD" = yes; then
6974 echo "$as_me:$LINENO: result: yes" >&5
6975echo "${ECHO_T}yes" >&6
6976 else
6977 echo "$as_me:$LINENO: result: no" >&5
6978echo "${ECHO_T}no" >&6
6979 fi
6980
6981
6982 enablestring=
6983 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dnd" >&5
6984echo $ECHO_N "checking for --${enablestring:-enable}-dnd... $ECHO_C" >&6
6985 no_cache=0
6986 # Check whether --enable-dnd or --disable-dnd was given.
6987if test "${enable_dnd+set}" = set; then
6988 enableval="$enable_dnd"
6989
6990 if test "$enableval" = yes; then
6991 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes'
6992 else
6993 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no'
6994 fi
6995
6996else
6997
6998 LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}`
6999 if test "x$LINE" != x ; then
7000 eval "DEFAULT_$LINE"
7001 else
7002 no_cache=1
7003 fi
7004
7005 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP
7006
7007fi;
7008
7009 eval "$ac_cv_use_dnd"
7010 if test "$no_cache" != 1; then
7011 echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp
7012 fi
7013
7014 if test "$wxUSE_DRAG_AND_DROP" = yes; then
7015 echo "$as_me:$LINENO: result: yes" >&5
7016echo "${ECHO_T}yes" >&6
7017 else
7018 echo "$as_me:$LINENO: result: no" >&5
7019echo "${ECHO_T}no" >&6
7020 fi
7021
7022
7023 enablestring=
7024 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5
7025echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6
7026 no_cache=0
7027 # Check whether --enable-metafile or --disable-metafile was given.
7028if test "${enable_metafile+set}" = set; then
7029 enableval="$enable_metafile"
7030
7031 if test "$enableval" = yes; then
7032 ac_cv_use_metafile='wxUSE_METAFILE=yes'
7033 else
7034 ac_cv_use_metafile='wxUSE_METAFILE=no'
7035 fi
7036
7037else
7038
7039 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
7040 if test "x$LINE" != x ; then
7041 eval "DEFAULT_$LINE"
7042 else
7043 no_cache=1
7044 fi
7045
7046 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
7047
7048fi;
7049
7050 eval "$ac_cv_use_metafile"
7051 if test "$no_cache" != 1; then
7052 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
7053 fi
7054
7055 if test "$wxUSE_METAFILE" = yes; then
7056 echo "$as_me:$LINENO: result: yes" >&5
7057echo "${ECHO_T}yes" >&6
7058 else
7059 echo "$as_me:$LINENO: result: no" >&5
7060echo "${ECHO_T}no" >&6
7061 fi
7062
7063
7064
7065
7066
7067 enablestring=
7068 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-controls" >&5
7069echo $ECHO_N "checking for --${enablestring:-enable}-controls... $ECHO_C" >&6
7070 no_cache=0
7071 # Check whether --enable-controls or --disable-controls was given.
7072if test "${enable_controls+set}" = set; then
7073 enableval="$enable_controls"
7074
7075 if test "$enableval" = yes; then
7076 ac_cv_use_controls='wxUSE_CONTROLS=yes'
7077 else
7078 ac_cv_use_controls='wxUSE_CONTROLS=no'
7079 fi
7080
7081else
7082
7083 LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}`
7084 if test "x$LINE" != x ; then
7085 eval "DEFAULT_$LINE"
7086 else
7087 no_cache=1
7088 fi
7089
7090 ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS
7091
7092fi;
7093
7094 eval "$ac_cv_use_controls"
7095 if test "$no_cache" != 1; then
7096 echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp
7097 fi
7098
7099 if test "$wxUSE_CONTROLS" = yes; then
7100 echo "$as_me:$LINENO: result: yes" >&5
7101echo "${ECHO_T}yes" >&6
7102 else
7103 echo "$as_me:$LINENO: result: no" >&5
7104echo "${ECHO_T}no" >&6
7105 fi
7106
7107
7108if test "$wxUSE_CONTROLS" = "yes"; then
7109 DEFAULT_wxUSE_ACCEL=yes
7110 DEFAULT_wxUSE_BMPBUTTON=yes
7111 DEFAULT_wxUSE_BUTTON=yes
da98e9be 7112 DEFAULT_wxUSE_CALCTRL=yes
a848cd7e
SC
7113 DEFAULT_wxUSE_CARET=yes
7114 DEFAULT_wxUSE_COMBOBOX=yes
7115 DEFAULT_wxUSE_CHECKBOX=yes
7116 DEFAULT_wxUSE_CHECKLISTBOX=yes
7117 DEFAULT_wxUSE_CHOICE=yes
92bbdbcd 7118 DEFAULT_wxUSE_CHOICEBOOK=yes
da98e9be 7119 DEFAULT_wxUSE_DATEPICKCTRL=yes
a848cd7e
SC
7120 DEFAULT_wxUSE_GAUGE=yes
7121 DEFAULT_wxUSE_GRID=yes
7122 DEFAULT_wxUSE_IMAGLIST=yes
7123 DEFAULT_wxUSE_LISTBOOK=yes
7124 DEFAULT_wxUSE_LISTBOX=yes
7125 DEFAULT_wxUSE_LISTCTRL=yes
7126 DEFAULT_wxUSE_NOTEBOOK=yes
7127 DEFAULT_wxUSE_RADIOBOX=yes
7128 DEFAULT_wxUSE_RADIOBTN=yes
7129 DEFAULT_wxUSE_SASH=yes
7130 DEFAULT_wxUSE_SCROLLBAR=yes
7131 DEFAULT_wxUSE_SLIDER=yes
7132 DEFAULT_wxUSE_SPINBTN=yes
7133 DEFAULT_wxUSE_SPINCTRL=yes
7134 DEFAULT_wxUSE_SPLITTER=yes
7135 DEFAULT_wxUSE_STATBMP=yes
7136 DEFAULT_wxUSE_STATBOX=yes
7137 DEFAULT_wxUSE_STATLINE=yes
7138 DEFAULT_wxUSE_STATUSBAR=yes
7139 DEFAULT_wxUSE_TAB_DIALOG=yes
7140 DEFAULT_wxUSE_TOGGLEBTN=yes
7141 DEFAULT_wxUSE_TOOLBAR=yes
7142 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
7143 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
7144 DEFAULT_wxUSE_TOOLTIPS=yes
7145 DEFAULT_wxUSE_TREECTRL=yes
7146 DEFAULT_wxUSE_POPUPWIN=yes
7147 DEFAULT_wxUSE_TIPWINDOW=yes
7148elif test "$wxUSE_CONTROLS" = "no"; then
7149 DEFAULT_wxUSE_ACCEL=no
7150 DEFAULT_wxUSE_BMPBUTTON=no
7151 DEFAULT_wxUSE_BUTTON=no
7152 DEFAULT_wxUSE_CALCTRL=no
7153 DEFAULT_wxUSE_CARET=no
7154 DEFAULT_wxUSE_COMBOBOX=no
7155 DEFAULT_wxUSE_CHECKBOX=no
7156 DEFAULT_wxUSE_CHECKLISTBOX=no
7157 DEFAULT_wxUSE_CHOICE=no
92bbdbcd 7158 DEFAULT_wxUSE_CHOICEBOOK=no
da98e9be 7159 DEFAULT_wxUSE_DATEPICKCTRL=no
a848cd7e
SC
7160 DEFAULT_wxUSE_GAUGE=no
7161 DEFAULT_wxUSE_GRID=no
7162 DEFAULT_wxUSE_IMAGLIST=no
7163 DEFAULT_wxUSE_LISTBOOK=no
7164 DEFAULT_wxUSE_LISTBOX=no
7165 DEFAULT_wxUSE_LISTCTRL=no
7166 DEFAULT_wxUSE_NOTEBOOK=no
7167 DEFAULT_wxUSE_RADIOBOX=no
7168 DEFAULT_wxUSE_RADIOBTN=no
7169 DEFAULT_wxUSE_SASH=no
7170 DEFAULT_wxUSE_SCROLLBAR=no
7171 DEFAULT_wxUSE_SLIDER=no
7172 DEFAULT_wxUSE_SPINBTN=no
7173 DEFAULT_wxUSE_SPINCTRL=no
7174 DEFAULT_wxUSE_SPLITTER=no
7175 DEFAULT_wxUSE_STATBMP=no
7176 DEFAULT_wxUSE_STATBOX=no
7177 DEFAULT_wxUSE_STATLINE=no
7178 DEFAULT_wxUSE_STATUSBAR=no
7179 DEFAULT_wxUSE_TAB_DIALOG=no
7180 DEFAULT_wxUSE_TOGGLEBTN=no
7181 DEFAULT_wxUSE_TOOLBAR=no
7182 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
7183 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
7184 DEFAULT_wxUSE_TOOLTIPS=no
7185 DEFAULT_wxUSE_TREECTRL=no
7186 DEFAULT_wxUSE_POPUPWIN=no
7187 DEFAULT_wxUSE_TIPWINDOW=no
7188fi
7189
a848cd7e
SC
7190
7191 enablestring=
7192 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accel" >&5
7193echo $ECHO_N "checking for --${enablestring:-enable}-accel... $ECHO_C" >&6
7194 no_cache=0
7195 # Check whether --enable-accel or --disable-accel was given.
7196if test "${enable_accel+set}" = set; then
7197 enableval="$enable_accel"
7198
7199 if test "$enableval" = yes; then
7200 ac_cv_use_accel='wxUSE_ACCEL=yes'
7201 else
7202 ac_cv_use_accel='wxUSE_ACCEL=no'
7203 fi
7204
7205else
7206
7207 LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}`
7208 if test "x$LINE" != x ; then
7209 eval "DEFAULT_$LINE"
7210 else
7211 no_cache=1
7212 fi
7213
7214 ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL
7215
7216fi;
7217
7218 eval "$ac_cv_use_accel"
7219 if test "$no_cache" != 1; then
7220 echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp
7221 fi
7222
7223 if test "$wxUSE_ACCEL" = yes; then
7224 echo "$as_me:$LINENO: result: yes" >&5
7225echo "${ECHO_T}yes" >&6
7226 else
7227 echo "$as_me:$LINENO: result: no" >&5
7228echo "${ECHO_T}no" >&6
7229 fi
7230
7231
7232 enablestring=
7233 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-button" >&5
7234echo $ECHO_N "checking for --${enablestring:-enable}-button... $ECHO_C" >&6
7235 no_cache=0
7236 # Check whether --enable-button or --disable-button was given.
7237if test "${enable_button+set}" = set; then
7238 enableval="$enable_button"
7239
7240 if test "$enableval" = yes; then
7241 ac_cv_use_button='wxUSE_BUTTON=yes'
7242 else
7243 ac_cv_use_button='wxUSE_BUTTON=no'
7244 fi
7245
7246else
7247
7248 LINE=`grep "wxUSE_BUTTON" ${wx_arg_cache_file}`
7249 if test "x$LINE" != x ; then
7250 eval "DEFAULT_$LINE"
7251 else
7252 no_cache=1
7253 fi
7254
7255 ac_cv_use_button='wxUSE_BUTTON='$DEFAULT_wxUSE_BUTTON
7256
7257fi;
7258
7259 eval "$ac_cv_use_button"
7260 if test "$no_cache" != 1; then
7261 echo $ac_cv_use_button >> ${wx_arg_cache_file}.tmp
7262 fi
7263
7264 if test "$wxUSE_BUTTON" = yes; then
7265 echo "$as_me:$LINENO: result: yes" >&5
7266echo "${ECHO_T}yes" >&6
7267 else
7268 echo "$as_me:$LINENO: result: no" >&5
7269echo "${ECHO_T}no" >&6
7270 fi
7271
7272
7273 enablestring=
7274 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-bmpbutton" >&5
7275echo $ECHO_N "checking for --${enablestring:-enable}-bmpbutton... $ECHO_C" >&6
7276 no_cache=0
7277 # Check whether --enable-bmpbutton or --disable-bmpbutton was given.
7278if test "${enable_bmpbutton+set}" = set; then
7279 enableval="$enable_bmpbutton"
7280
7281 if test "$enableval" = yes; then
7282 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes'
7283 else
7284 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no'
7285 fi
7286
7287else
7288
7289 LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}`
7290 if test "x$LINE" != x ; then
7291 eval "DEFAULT_$LINE"
7292 else
7293 no_cache=1
7294 fi
7295
7296 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON
7297
7298fi;
7299
7300 eval "$ac_cv_use_bmpbutton"
7301 if test "$no_cache" != 1; then
7302 echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp
7303 fi
7304
7305 if test "$wxUSE_BMPBUTTON" = yes; then
7306 echo "$as_me:$LINENO: result: yes" >&5
7307echo "${ECHO_T}yes" >&6
7308 else
7309 echo "$as_me:$LINENO: result: no" >&5
7310echo "${ECHO_T}no" >&6
7311 fi
7312
7313
7314 enablestring=
7315 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-calendar" >&5
7316echo $ECHO_N "checking for --${enablestring:-enable}-calendar... $ECHO_C" >&6
7317 no_cache=0
7318 # Check whether --enable-calendar or --disable-calendar was given.
7319if test "${enable_calendar+set}" = set; then
7320 enableval="$enable_calendar"
7321
7322 if test "$enableval" = yes; then
7323 ac_cv_use_calendar='wxUSE_CALCTRL=yes'
7324 else
7325 ac_cv_use_calendar='wxUSE_CALCTRL=no'
7326 fi
7327
7328else
7329
7330 LINE=`grep "wxUSE_CALCTRL" ${wx_arg_cache_file}`
7331 if test "x$LINE" != x ; then
7332 eval "DEFAULT_$LINE"
7333 else
7334 no_cache=1
7335 fi
7336
7337 ac_cv_use_calendar='wxUSE_CALCTRL='$DEFAULT_wxUSE_CALCTRL
7338
7339fi;
7340
7341 eval "$ac_cv_use_calendar"
7342 if test "$no_cache" != 1; then
7343 echo $ac_cv_use_calendar >> ${wx_arg_cache_file}.tmp
7344 fi
7345
7346 if test "$wxUSE_CALCTRL" = yes; then
7347 echo "$as_me:$LINENO: result: yes" >&5
7348echo "${ECHO_T}yes" >&6
7349 else
7350 echo "$as_me:$LINENO: result: no" >&5
7351echo "${ECHO_T}no" >&6
7352 fi
7353
7354
7355 enablestring=
7356 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-caret" >&5
7357echo $ECHO_N "checking for --${enablestring:-enable}-caret... $ECHO_C" >&6
7358 no_cache=0
7359 # Check whether --enable-caret or --disable-caret was given.
7360if test "${enable_caret+set}" = set; then
7361 enableval="$enable_caret"
7362
7363 if test "$enableval" = yes; then
7364 ac_cv_use_caret='wxUSE_CARET=yes'
7365 else
7366 ac_cv_use_caret='wxUSE_CARET=no'
7367 fi
7368
7369else
7370
7371 LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}`
7372 if test "x$LINE" != x ; then
7373 eval "DEFAULT_$LINE"
7374 else
7375 no_cache=1
7376 fi
7377
7378 ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET
7379
7380fi;
7381
7382 eval "$ac_cv_use_caret"
7383 if test "$no_cache" != 1; then
7384 echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp
7385 fi
7386
7387 if test "$wxUSE_CARET" = yes; then
7388 echo "$as_me:$LINENO: result: yes" >&5
7389echo "${ECHO_T}yes" >&6
7390 else
7391 echo "$as_me:$LINENO: result: no" >&5
7392echo "${ECHO_T}no" >&6
7393 fi
7394
7395
7396 enablestring=
7397 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checkbox" >&5
7398echo $ECHO_N "checking for --${enablestring:-enable}-checkbox... $ECHO_C" >&6
7399 no_cache=0
7400 # Check whether --enable-checkbox or --disable-checkbox was given.
7401if test "${enable_checkbox+set}" = set; then
7402 enableval="$enable_checkbox"
7403
7404 if test "$enableval" = yes; then
7405 ac_cv_use_checkbox='wxUSE_CHECKBOX=yes'
7406 else
7407 ac_cv_use_checkbox='wxUSE_CHECKBOX=no'
7408 fi
7409
7410else
7411
7412 LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}`
7413 if test "x$LINE" != x ; then
7414 eval "DEFAULT_$LINE"
7415 else
7416 no_cache=1
7417 fi
7418
7419 ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX
7420
7421fi;
7422
7423 eval "$ac_cv_use_checkbox"
7424 if test "$no_cache" != 1; then
7425 echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp
7426 fi
7427
7428 if test "$wxUSE_CHECKBOX" = yes; then
7429 echo "$as_me:$LINENO: result: yes" >&5
7430echo "${ECHO_T}yes" >&6
7431 else
7432 echo "$as_me:$LINENO: result: no" >&5
7433echo "${ECHO_T}no" >&6
7434 fi
7435
7436
7437 enablestring=
7438 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checklst" >&5
7439echo $ECHO_N "checking for --${enablestring:-enable}-checklst... $ECHO_C" >&6
7440 no_cache=0
7441 # Check whether --enable-checklst or --disable-checklst was given.
7442if test "${enable_checklst+set}" = set; then
7443 enableval="$enable_checklst"
7444
7445 if test "$enableval" = yes; then
7446 ac_cv_use_checklst='wxUSE_CHECKLST=yes'
7447 else
7448 ac_cv_use_checklst='wxUSE_CHECKLST=no'
7449 fi
7450
7451else
7452
7453 LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}`
7454 if test "x$LINE" != x ; then
7455 eval "DEFAULT_$LINE"
7456 else
7457 no_cache=1
7458 fi
7459
7460 ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST
7461
7462fi;
7463
7464 eval "$ac_cv_use_checklst"
7465 if test "$no_cache" != 1; then
7466 echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp
7467 fi
7468
7469 if test "$wxUSE_CHECKLST" = yes; then
7470 echo "$as_me:$LINENO: result: yes" >&5
7471echo "${ECHO_T}yes" >&6
7472 else
7473 echo "$as_me:$LINENO: result: no" >&5
7474echo "${ECHO_T}no" >&6
7475 fi
7476
7477
7478 enablestring=
7479 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choice" >&5
7480echo $ECHO_N "checking for --${enablestring:-enable}-choice... $ECHO_C" >&6
7481 no_cache=0
7482 # Check whether --enable-choice or --disable-choice was given.
7483if test "${enable_choice+set}" = set; then
7484 enableval="$enable_choice"
7485
7486 if test "$enableval" = yes; then
7487 ac_cv_use_choice='wxUSE_CHOICE=yes'
7488 else
7489 ac_cv_use_choice='wxUSE_CHOICE=no'
7490 fi
7491
7492else
7493
7494 LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}`
7495 if test "x$LINE" != x ; then
7496 eval "DEFAULT_$LINE"
7497 else
7498 no_cache=1
7499 fi
7500
7501 ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE
7502
7503fi;
7504
7505 eval "$ac_cv_use_choice"
7506 if test "$no_cache" != 1; then
7507 echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp
7508 fi
7509
7510 if test "$wxUSE_CHOICE" = yes; then
7511 echo "$as_me:$LINENO: result: yes" >&5
7512echo "${ECHO_T}yes" >&6
7513 else
7514 echo "$as_me:$LINENO: result: no" >&5
7515echo "${ECHO_T}no" >&6
7516 fi
7517
7518
92bbdbcd
WS
7519 enablestring=
7520 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicebook" >&5
7521echo $ECHO_N "checking for --${enablestring:-enable}-choicebook... $ECHO_C" >&6
7522 no_cache=0
7523 # Check whether --enable-choicebook or --disable-choicebook was given.
7524if test "${enable_choicebook+set}" = set; then
7525 enableval="$enable_choicebook"
7526
7527 if test "$enableval" = yes; then
7528 ac_cv_use_choicebook='wxUSE_CHOICEBOOK=yes'
7529 else
7530 ac_cv_use_choicebook='wxUSE_CHOICEBOOK=no'
7531 fi
7532
7533else
7534
7535 LINE=`grep "wxUSE_CHOICEBOOK" ${wx_arg_cache_file}`
7536 if test "x$LINE" != x ; then
7537 eval "DEFAULT_$LINE"
7538 else
7539 no_cache=1
7540 fi
7541
7542 ac_cv_use_choicebook='wxUSE_CHOICEBOOK='$DEFAULT_wxUSE_CHOICEBOOK
7543
7544fi;
7545
7546 eval "$ac_cv_use_choicebook"
7547 if test "$no_cache" != 1; then
7548 echo $ac_cv_use_choicebook >> ${wx_arg_cache_file}.tmp
7549 fi
7550
7551 if test "$wxUSE_CHOICEBOOK" = yes; then
7552 echo "$as_me:$LINENO: result: yes" >&5
7553echo "${ECHO_T}yes" >&6
7554 else
7555 echo "$as_me:$LINENO: result: no" >&5
7556echo "${ECHO_T}no" >&6
7557 fi
7558
7559
a848cd7e
SC
7560 enablestring=
7561 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-combobox" >&5
7562echo $ECHO_N "checking for --${enablestring:-enable}-combobox... $ECHO_C" >&6
7563 no_cache=0
7564 # Check whether --enable-combobox or --disable-combobox was given.
7565if test "${enable_combobox+set}" = set; then
7566 enableval="$enable_combobox"
7567
7568 if test "$enableval" = yes; then
7569 ac_cv_use_combobox='wxUSE_COMBOBOX=yes'
7570 else
7571 ac_cv_use_combobox='wxUSE_COMBOBOX=no'
7572 fi
7573
7574else
7575
7576 LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}`
7577 if test "x$LINE" != x ; then
7578 eval "DEFAULT_$LINE"
7579 else
7580 no_cache=1
7581 fi
7582
7583 ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX
7584
7585fi;
7586
7587 eval "$ac_cv_use_combobox"
7588 if test "$no_cache" != 1; then
7589 echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp
7590 fi
7591
7592 if test "$wxUSE_COMBOBOX" = yes; then
7593 echo "$as_me:$LINENO: result: yes" >&5
7594echo "${ECHO_T}yes" >&6
7595 else
7596 echo "$as_me:$LINENO: result: no" >&5
7597echo "${ECHO_T}no" >&6
7598 fi
7599
7600
da98e9be
VZ
7601 enablestring=
7602 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-datepick" >&5
7603echo $ECHO_N "checking for --${enablestring:-enable}-datepick... $ECHO_C" >&6
7604 no_cache=0
7605 # Check whether --enable-datepick or --disable-datepick was given.
7606if test "${enable_datepick+set}" = set; then
7607 enableval="$enable_datepick"
7608
7609 if test "$enableval" = yes; then
7610 ac_cv_use_datepick='wxUSE_DATEPICKCTRL=yes'
7611 else
7612 ac_cv_use_datepick='wxUSE_DATEPICKCTRL=no'
7613 fi
7614
7615else
7616
7617 LINE=`grep "wxUSE_DATEPICKCTRL" ${wx_arg_cache_file}`
7618 if test "x$LINE" != x ; then
7619 eval "DEFAULT_$LINE"
7620 else
7621 no_cache=1
7622 fi
7623
7624 ac_cv_use_datepick='wxUSE_DATEPICKCTRL='$DEFAULT_wxUSE_DATEPICKCTRL
7625
7626fi;
7627
7628 eval "$ac_cv_use_datepick"
7629 if test "$no_cache" != 1; then
7630 echo $ac_cv_use_datepick >> ${wx_arg_cache_file}.tmp
7631 fi
7632
7633 if test "$wxUSE_DATEPICKCTRL" = yes; then
7634 echo "$as_me:$LINENO: result: yes" >&5
7635echo "${ECHO_T}yes" >&6
7636 else
7637 echo "$as_me:$LINENO: result: no" >&5
7638echo "${ECHO_T}no" >&6
7639 fi
7640
7641
a848cd7e
SC
7642 enablestring=
7643 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-display" >&5
7644echo $ECHO_N "checking for --${enablestring:-enable}-display... $ECHO_C" >&6
7645 no_cache=0
7646 # Check whether --enable-display or --disable-display was given.
7647if test "${enable_display+set}" = set; then
7648 enableval="$enable_display"
7649
7650 if test "$enableval" = yes; then
7651 ac_cv_use_display='wxUSE_DISPLAY=yes'
7652 else
7653 ac_cv_use_display='wxUSE_DISPLAY=no'
7654 fi
7655
7656else
7657
7658 LINE=`grep "wxUSE_DISPLAY" ${wx_arg_cache_file}`
7659 if test "x$LINE" != x ; then
7660 eval "DEFAULT_$LINE"
7661 else
7662 no_cache=1
7663 fi
7664
7665 ac_cv_use_display='wxUSE_DISPLAY='$DEFAULT_wxUSE_DISPLAY
7666
7667fi;
7668
7669 eval "$ac_cv_use_display"
7670 if test "$no_cache" != 1; then
7671 echo $ac_cv_use_display >> ${wx_arg_cache_file}.tmp
7672 fi
7673
7674 if test "$wxUSE_DISPLAY" = yes; then
7675 echo "$as_me:$LINENO: result: yes" >&5
7676echo "${ECHO_T}yes" >&6
7677 else
7678 echo "$as_me:$LINENO: result: no" >&5
7679echo "${ECHO_T}no" >&6
7680 fi
7681
7682
7683 enablestring=
7684 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gauge" >&5
7685echo $ECHO_N "checking for --${enablestring:-enable}-gauge... $ECHO_C" >&6
7686 no_cache=0
7687 # Check whether --enable-gauge or --disable-gauge was given.
7688if test "${enable_gauge+set}" = set; then
7689 enableval="$enable_gauge"
7690
7691 if test "$enableval" = yes; then
7692 ac_cv_use_gauge='wxUSE_GAUGE=yes'
7693 else
7694 ac_cv_use_gauge='wxUSE_GAUGE=no'
7695 fi
7696
7697else
7698
7699 LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}`
7700 if test "x$LINE" != x ; then
7701 eval "DEFAULT_$LINE"
7702 else
7703 no_cache=1
7704 fi
7705
7706 ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE
7707
7708fi;
7709
7710 eval "$ac_cv_use_gauge"
7711 if test "$no_cache" != 1; then
7712 echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp
7713 fi
7714
7715 if test "$wxUSE_GAUGE" = yes; then
7716 echo "$as_me:$LINENO: result: yes" >&5
7717echo "${ECHO_T}yes" >&6
7718 else
7719 echo "$as_me:$LINENO: result: no" >&5
7720echo "${ECHO_T}no" >&6
7721 fi
7722
7723
7724 enablestring=
7725 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-grid" >&5
7726echo $ECHO_N "checking for --${enablestring:-enable}-grid... $ECHO_C" >&6
7727 no_cache=0
7728 # Check whether --enable-grid or --disable-grid was given.
7729if test "${enable_grid+set}" = set; then
7730 enableval="$enable_grid"
7731
7732 if test "$enableval" = yes; then
7733 ac_cv_use_grid='wxUSE_GRID=yes'
7734 else
7735 ac_cv_use_grid='wxUSE_GRID=no'
7736 fi
7737
7738else
7739
7740 LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}`
7741 if test "x$LINE" != x ; then
7742 eval "DEFAULT_$LINE"
7743 else
7744 no_cache=1
7745 fi
7746
7747 ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID
7748
7749fi;
7750
7751 eval "$ac_cv_use_grid"
7752 if test "$no_cache" != 1; then
7753 echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp
7754 fi
7755
7756 if test "$wxUSE_GRID" = yes; then
7757 echo "$as_me:$LINENO: result: yes" >&5
7758echo "${ECHO_T}yes" >&6
7759 else
7760 echo "$as_me:$LINENO: result: no" >&5
7761echo "${ECHO_T}no" >&6
7762 fi
7763
7764
7765 enablestring=
7766 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-imaglist" >&5
7767echo $ECHO_N "checking for --${enablestring:-enable}-imaglist... $ECHO_C" >&6
7768 no_cache=0
7769 # Check whether --enable-imaglist or --disable-imaglist was given.
7770if test "${enable_imaglist+set}" = set; then
7771 enableval="$enable_imaglist"
7772
7773 if test "$enableval" = yes; then
7774 ac_cv_use_imaglist='wxUSE_IMAGLIST=yes'
7775 else
7776 ac_cv_use_imaglist='wxUSE_IMAGLIST=no'
7777 fi
7778
7779else
7780
7781 LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}`
7782 if test "x$LINE" != x ; then
7783 eval "DEFAULT_$LINE"
7784 else
7785 no_cache=1
7786 fi
7787
7788 ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST
7789
7790fi;
7791
7792 eval "$ac_cv_use_imaglist"
7793 if test "$no_cache" != 1; then
7794 echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp
7795 fi
7796
7797 if test "$wxUSE_IMAGLIST" = yes; then
7798 echo "$as_me:$LINENO: result: yes" >&5
7799echo "${ECHO_T}yes" >&6
7800 else
7801 echo "$as_me:$LINENO: result: no" >&5
7802echo "${ECHO_T}no" >&6
7803 fi
7804
7805
7806 enablestring=
7807 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbook" >&5
7808echo $ECHO_N "checking for --${enablestring:-enable}-listbook... $ECHO_C" >&6
7809 no_cache=0
7810 # Check whether --enable-listbook or --disable-listbook was given.
7811if test "${enable_listbook+set}" = set; then
7812 enableval="$enable_listbook"
7813
7814 if test "$enableval" = yes; then
7815 ac_cv_use_listbook='wxUSE_LISTBOOK=yes'
7816 else
7817 ac_cv_use_listbook='wxUSE_LISTBOOK=no'
7818 fi
7819
7820else
7821
7822 LINE=`grep "wxUSE_LISTBOOK" ${wx_arg_cache_file}`
7823 if test "x$LINE" != x ; then
7824 eval "DEFAULT_$LINE"
7825 else
7826 no_cache=1
7827 fi
7828
7829 ac_cv_use_listbook='wxUSE_LISTBOOK='$DEFAULT_wxUSE_LISTBOOK
7830
7831fi;
7832
7833 eval "$ac_cv_use_listbook"
7834 if test "$no_cache" != 1; then
7835 echo $ac_cv_use_listbook >> ${wx_arg_cache_file}.tmp
7836 fi
7837
7838 if test "$wxUSE_LISTBOOK" = yes; then
7839 echo "$as_me:$LINENO: result: yes" >&5
7840echo "${ECHO_T}yes" >&6
7841 else
7842 echo "$as_me:$LINENO: result: no" >&5
7843echo "${ECHO_T}no" >&6
7844 fi
7845
7846
7847 enablestring=
7848 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbox" >&5
7849echo $ECHO_N "checking for --${enablestring:-enable}-listbox... $ECHO_C" >&6
7850 no_cache=0
7851 # Check whether --enable-listbox or --disable-listbox was given.
7852if test "${enable_listbox+set}" = set; then
7853 enableval="$enable_listbox"
7854
7855 if test "$enableval" = yes; then
7856 ac_cv_use_listbox='wxUSE_LISTBOX=yes'
7857 else
7858 ac_cv_use_listbox='wxUSE_LISTBOX=no'
7859 fi
7860
7861else
7862
7863 LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}`
7864 if test "x$LINE" != x ; then
7865 eval "DEFAULT_$LINE"
7866 else
7867 no_cache=1
7868 fi
7869
7870 ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX
7871
7872fi;
7873
7874 eval "$ac_cv_use_listbox"
7875 if test "$no_cache" != 1; then
7876 echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp
7877 fi
7878
7879 if test "$wxUSE_LISTBOX" = yes; then
7880 echo "$as_me:$LINENO: result: yes" >&5
7881echo "${ECHO_T}yes" >&6
7882 else
7883 echo "$as_me:$LINENO: result: no" >&5
7884echo "${ECHO_T}no" >&6
7885 fi
7886
7887
7888 enablestring=
7889 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listctrl" >&5
7890echo $ECHO_N "checking for --${enablestring:-enable}-listctrl... $ECHO_C" >&6
7891 no_cache=0
7892 # Check whether --enable-listctrl or --disable-listctrl was given.
7893if test "${enable_listctrl+set}" = set; then
7894 enableval="$enable_listctrl"
7895
7896 if test "$enableval" = yes; then
7897 ac_cv_use_listctrl='wxUSE_LISTCTRL=yes'
7898 else
7899 ac_cv_use_listctrl='wxUSE_LISTCTRL=no'
7900 fi
7901
7902else
7903
7904 LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}`
7905 if test "x$LINE" != x ; then
7906 eval "DEFAULT_$LINE"
7907 else
7908 no_cache=1
7909 fi
7910
7911 ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL
7912
7913fi;
7914
7915 eval "$ac_cv_use_listctrl"
7916 if test "$no_cache" != 1; then
7917 echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp
7918 fi
7919
7920 if test "$wxUSE_LISTCTRL" = yes; then
7921 echo "$as_me:$LINENO: result: yes" >&5
7922echo "${ECHO_T}yes" >&6
7923 else
7924 echo "$as_me:$LINENO: result: no" >&5
7925echo "${ECHO_T}no" >&6
7926 fi
7927
7928
7929 enablestring=
7930 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-notebook" >&5
7931echo $ECHO_N "checking for --${enablestring:-enable}-notebook... $ECHO_C" >&6
7932 no_cache=0
7933 # Check whether --enable-notebook or --disable-notebook was given.
7934if test "${enable_notebook+set}" = set; then
7935 enableval="$enable_notebook"
7936
7937 if test "$enableval" = yes; then
7938 ac_cv_use_notebook='wxUSE_NOTEBOOK=yes'
7939 else
7940 ac_cv_use_notebook='wxUSE_NOTEBOOK=no'
7941 fi
7942
7943else
7944
7945 LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}`
7946 if test "x$LINE" != x ; then
7947 eval "DEFAULT_$LINE"
7948 else
7949 no_cache=1
7950 fi
7951
7952 ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK
7953
7954fi;
7955
7956 eval "$ac_cv_use_notebook"
7957 if test "$no_cache" != 1; then
7958 echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp
7959 fi
7960
7961 if test "$wxUSE_NOTEBOOK" = yes; then
7962 echo "$as_me:$LINENO: result: yes" >&5
7963echo "${ECHO_T}yes" >&6
7964 else
7965 echo "$as_me:$LINENO: result: no" >&5
7966echo "${ECHO_T}no" >&6
7967 fi
7968
7969
7970 enablestring=
7971 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobox" >&5
7972echo $ECHO_N "checking for --${enablestring:-enable}-radiobox... $ECHO_C" >&6
7973 no_cache=0
7974 # Check whether --enable-radiobox or --disable-radiobox was given.
7975if test "${enable_radiobox+set}" = set; then
7976 enableval="$enable_radiobox"
7977
7978 if test "$enableval" = yes; then
7979 ac_cv_use_radiobox='wxUSE_RADIOBOX=yes'
7980 else
7981 ac_cv_use_radiobox='wxUSE_RADIOBOX=no'
7982 fi
7983
7984else
7985
7986 LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}`
7987 if test "x$LINE" != x ; then
7988 eval "DEFAULT_$LINE"
7989 else
7990 no_cache=1
7991 fi
7992
7993 ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX
7994
7995fi;
7996
7997 eval "$ac_cv_use_radiobox"
7998 if test "$no_cache" != 1; then
7999 echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp
8000 fi
8001
8002 if test "$wxUSE_RADIOBOX" = yes; then
8003 echo "$as_me:$LINENO: result: yes" >&5
8004echo "${ECHO_T}yes" >&6
8005 else
8006 echo "$as_me:$LINENO: result: no" >&5
8007echo "${ECHO_T}no" >&6
8008 fi
8009
8010
8011 enablestring=
8012 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobtn" >&5
8013echo $ECHO_N "checking for --${enablestring:-enable}-radiobtn... $ECHO_C" >&6
8014 no_cache=0
8015 # Check whether --enable-radiobtn or --disable-radiobtn was given.
8016if test "${enable_radiobtn+set}" = set; then
8017 enableval="$enable_radiobtn"
8018
8019 if test "$enableval" = yes; then
8020 ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes'
8021 else
8022 ac_cv_use_radiobtn='wxUSE_RADIOBTN=no'
8023 fi
8024
8025else
8026
8027 LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}`
8028 if test "x$LINE" != x ; then
8029 eval "DEFAULT_$LINE"
8030 else
8031 no_cache=1
8032 fi
8033
8034 ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN
8035
8036fi;
8037
8038 eval "$ac_cv_use_radiobtn"
8039 if test "$no_cache" != 1; then
8040 echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp
8041 fi
8042
8043 if test "$wxUSE_RADIOBTN" = yes; then
8044 echo "$as_me:$LINENO: result: yes" >&5
8045echo "${ECHO_T}yes" >&6
8046 else
8047 echo "$as_me:$LINENO: result: no" >&5
8048echo "${ECHO_T}no" >&6
8049 fi
8050
8051
8052 enablestring=
8053 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sash" >&5
8054echo $ECHO_N "checking for --${enablestring:-enable}-sash... $ECHO_C" >&6
8055 no_cache=0
8056 # Check whether --enable-sash or --disable-sash was given.
8057if test "${enable_sash+set}" = set; then
8058 enableval="$enable_sash"
8059
8060 if test "$enableval" = yes; then
8061 ac_cv_use_sash='wxUSE_SASH=yes'
8062 else
8063 ac_cv_use_sash='wxUSE_SASH=no'
8064 fi
8065
8066else
8067
8068 LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}`
8069 if test "x$LINE" != x ; then
8070 eval "DEFAULT_$LINE"
8071 else
8072 no_cache=1
8073 fi
8074
8075 ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH
8076
8077fi;
8078
8079 eval "$ac_cv_use_sash"
8080 if test "$no_cache" != 1; then
8081 echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp
8082 fi
8083
8084 if test "$wxUSE_SASH" = yes; then
8085 echo "$as_me:$LINENO: result: yes" >&5
8086echo "${ECHO_T}yes" >&6
8087 else
8088 echo "$as_me:$LINENO: result: no" >&5
8089echo "${ECHO_T}no" >&6
8090 fi
8091
8092
8093 enablestring=
8094 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-scrollbar" >&5
8095echo $ECHO_N "checking for --${enablestring:-enable}-scrollbar... $ECHO_C" >&6
8096 no_cache=0
8097 # Check whether --enable-scrollbar or --disable-scrollbar was given.
8098if test "${enable_scrollbar+set}" = set; then
8099 enableval="$enable_scrollbar"
8100
8101 if test "$enableval" = yes; then
8102 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes'
8103 else
8104 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no'
8105 fi
8106
8107else
8108
8109 LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}`
8110 if test "x$LINE" != x ; then
8111 eval "DEFAULT_$LINE"
8112 else
8113 no_cache=1
8114 fi
8115
8116 ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR
8117
8118fi;
8119
8120 eval "$ac_cv_use_scrollbar"
8121 if test "$no_cache" != 1; then
8122 echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp
8123 fi
8124
8125 if test "$wxUSE_SCROLLBAR" = yes; then
8126 echo "$as_me:$LINENO: result: yes" >&5
8127echo "${ECHO_T}yes" >&6
8128 else
8129 echo "$as_me:$LINENO: result: no" >&5
8130echo "${ECHO_T}no" >&6
8131 fi
8132
8133
8134 enablestring=
8135 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-slider" >&5
8136echo $ECHO_N "checking for --${enablestring:-enable}-slider... $ECHO_C" >&6
8137 no_cache=0
8138 # Check whether --enable-slider or --disable-slider was given.
8139if test "${enable_slider+set}" = set; then
8140 enableval="$enable_slider"
8141
8142 if test "$enableval" = yes; then
8143 ac_cv_use_slider='wxUSE_SLIDER=yes'
8144 else
8145 ac_cv_use_slider='wxUSE_SLIDER=no'
8146 fi
8147
8148else
8149
8150 LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}`
8151 if test "x$LINE" != x ; then
8152 eval "DEFAULT_$LINE"
8153 else
8154 no_cache=1
8155 fi
8156
8157 ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER
8158
8159fi;
8160
8161 eval "$ac_cv_use_slider"
8162 if test "$no_cache" != 1; then
8163 echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp
8164 fi
8165
8166 if test "$wxUSE_SLIDER" = yes; then
8167 echo "$as_me:$LINENO: result: yes" >&5
8168echo "${ECHO_T}yes" >&6
8169 else
8170 echo "$as_me:$LINENO: result: no" >&5
8171echo "${ECHO_T}no" >&6
8172 fi
8173
8174
8175 enablestring=
8176 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinbtn" >&5
8177echo $ECHO_N "checking for --${enablestring:-enable}-spinbtn... $ECHO_C" >&6
8178 no_cache=0
8179 # Check whether --enable-spinbtn or --disable-spinbtn was given.
8180if test "${enable_spinbtn+set}" = set; then
8181 enableval="$enable_spinbtn"
8182
8183 if test "$enableval" = yes; then
8184 ac_cv_use_spinbtn='wxUSE_SPINBTN=yes'
8185 else
8186 ac_cv_use_spinbtn='wxUSE_SPINBTN=no'
8187 fi
8188
8189else
8190
8191 LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}`
8192 if test "x$LINE" != x ; then
8193 eval "DEFAULT_$LINE"
8194 else
8195 no_cache=1
8196 fi
8197
8198 ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN
8199
8200fi;
8201
8202 eval "$ac_cv_use_spinbtn"
8203 if test "$no_cache" != 1; then
8204 echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp
8205 fi
8206
8207 if test "$wxUSE_SPINBTN" = yes; then
8208 echo "$as_me:$LINENO: result: yes" >&5
8209echo "${ECHO_T}yes" >&6
8210 else
8211 echo "$as_me:$LINENO: result: no" >&5
8212echo "${ECHO_T}no" >&6
8213 fi
8214
8215
8216 enablestring=
8217 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinctrl" >&5
8218echo $ECHO_N "checking for --${enablestring:-enable}-spinctrl... $ECHO_C" >&6
8219 no_cache=0
8220 # Check whether --enable-spinctrl or --disable-spinctrl was given.
8221if test "${enable_spinctrl+set}" = set; then
8222 enableval="$enable_spinctrl"
8223
8224 if test "$enableval" = yes; then
8225 ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes'
8226 else
8227 ac_cv_use_spinctrl='wxUSE_SPINCTRL=no'
8228 fi
8229
8230else
8231
8232 LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}`
8233 if test "x$LINE" != x ; then
8234 eval "DEFAULT_$LINE"
8235 else
8236 no_cache=1
8237 fi
8238
8239 ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL
8240
8241fi;
8242
8243 eval "$ac_cv_use_spinctrl"
8244 if test "$no_cache" != 1; then
8245 echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp
8246 fi
8247
8248 if test "$wxUSE_SPINCTRL" = yes; then
8249 echo "$as_me:$LINENO: result: yes" >&5
8250echo "${ECHO_T}yes" >&6
8251 else
8252 echo "$as_me:$LINENO: result: no" >&5
8253echo "${ECHO_T}no" >&6
8254 fi
8255
8256
8257 enablestring=
8258 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splitter" >&5
8259echo $ECHO_N "checking for --${enablestring:-enable}-splitter... $ECHO_C" >&6
8260 no_cache=0
8261 # Check whether --enable-splitter or --disable-splitter was given.
8262if test "${enable_splitter+set}" = set; then
8263 enableval="$enable_splitter"
8264
8265 if test "$enableval" = yes; then
8266 ac_cv_use_splitter='wxUSE_SPLITTER=yes'
8267 else
8268 ac_cv_use_splitter='wxUSE_SPLITTER=no'
8269 fi
8270
8271else
8272
8273 LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}`
8274 if test "x$LINE" != x ; then
8275 eval "DEFAULT_$LINE"
8276 else
8277 no_cache=1
8278 fi
8279
8280 ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER
8281
8282fi;
8283
8284 eval "$ac_cv_use_splitter"
8285 if test "$no_cache" != 1; then
8286 echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp
8287 fi
8288
8289 if test "$wxUSE_SPLITTER" = yes; then
8290 echo "$as_me:$LINENO: result: yes" >&5
8291echo "${ECHO_T}yes" >&6
8292 else
8293 echo "$as_me:$LINENO: result: no" >&5
8294echo "${ECHO_T}no" >&6
8295 fi
8296
8297
8298 enablestring=
8299 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbmp" >&5
8300echo $ECHO_N "checking for --${enablestring:-enable}-statbmp... $ECHO_C" >&6
8301 no_cache=0
8302 # Check whether --enable-statbmp or --disable-statbmp was given.
8303if test "${enable_statbmp+set}" = set; then
8304 enableval="$enable_statbmp"
8305
8306 if test "$enableval" = yes; then
8307 ac_cv_use_statbmp='wxUSE_STATBMP=yes'
8308 else
8309 ac_cv_use_statbmp='wxUSE_STATBMP=no'
8310 fi
8311
8312else
8313
8314 LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}`
8315 if test "x$LINE" != x ; then
8316 eval "DEFAULT_$LINE"
8317 else
8318 no_cache=1
8319 fi
8320
8321 ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP
8322
8323fi;
8324
8325 eval "$ac_cv_use_statbmp"
8326 if test "$no_cache" != 1; then
8327 echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp
8328 fi
8329
8330 if test "$wxUSE_STATBMP" = yes; then
8331 echo "$as_me:$LINENO: result: yes" >&5
8332echo "${ECHO_T}yes" >&6
8333 else
8334 echo "$as_me:$LINENO: result: no" >&5
8335echo "${ECHO_T}no" >&6
8336 fi
8337
8338
8339 enablestring=
8340 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbox" >&5
8341echo $ECHO_N "checking for --${enablestring:-enable}-statbox... $ECHO_C" >&6
8342 no_cache=0
8343 # Check whether --enable-statbox or --disable-statbox was given.
8344if test "${enable_statbox+set}" = set; then
8345 enableval="$enable_statbox"
8346
8347 if test "$enableval" = yes; then
8348 ac_cv_use_statbox='wxUSE_STATBOX=yes'
8349 else
8350 ac_cv_use_statbox='wxUSE_STATBOX=no'
8351 fi
8352
8353else
8354
8355 LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}`
8356 if test "x$LINE" != x ; then
8357 eval "DEFAULT_$LINE"
8358 else
8359 no_cache=1
8360 fi
8361
8362 ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX
8363
8364fi;
8365
8366 eval "$ac_cv_use_statbox"
8367 if test "$no_cache" != 1; then
8368 echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp
8369 fi
8370
8371 if test "$wxUSE_STATBOX" = yes; then
8372 echo "$as_me:$LINENO: result: yes" >&5
8373echo "${ECHO_T}yes" >&6
8374 else
8375 echo "$as_me:$LINENO: result: no" >&5
8376echo "${ECHO_T}no" >&6
8377 fi
8378
8379
8380 enablestring=
8381 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statline" >&5
8382echo $ECHO_N "checking for --${enablestring:-enable}-statline... $ECHO_C" >&6
8383 no_cache=0
8384 # Check whether --enable-statline or --disable-statline was given.
8385if test "${enable_statline+set}" = set; then
8386 enableval="$enable_statline"
8387
8388 if test "$enableval" = yes; then
8389 ac_cv_use_statline='wxUSE_STATLINE=yes'
8390 else
8391 ac_cv_use_statline='wxUSE_STATLINE=no'
8392 fi
8393
8394else
8395
8396 LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}`
8397 if test "x$LINE" != x ; then
8398 eval "DEFAULT_$LINE"
8399 else
8400 no_cache=1
8401 fi
8402
8403 ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE
8404
8405fi;
8406
8407 eval "$ac_cv_use_statline"
8408 if test "$no_cache" != 1; then
8409 echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp
8410 fi
8411
8412 if test "$wxUSE_STATLINE" = yes; then
8413 echo "$as_me:$LINENO: result: yes" >&5
8414echo "${ECHO_T}yes" >&6
8415 else
8416 echo "$as_me:$LINENO: result: no" >&5
8417echo "${ECHO_T}no" >&6
8418 fi
8419
8420
8421 enablestring=
8422 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stattext" >&5
8423echo $ECHO_N "checking for --${enablestring:-enable}-stattext... $ECHO_C" >&6
8424 no_cache=0
8425 # Check whether --enable-stattext or --disable-stattext was given.
8426if test "${enable_stattext+set}" = set; then
8427 enableval="$enable_stattext"
8428
8429 if test "$enableval" = yes; then
8430 ac_cv_use_stattext='wxUSE_STATTEXT=yes'
8431 else
8432 ac_cv_use_stattext='wxUSE_STATTEXT=no'
8433 fi
8434
8435else
8436
8437 LINE=`grep "wxUSE_STATTEXT" ${wx_arg_cache_file}`
8438 if test "x$LINE" != x ; then
8439 eval "DEFAULT_$LINE"
8440 else
8441 no_cache=1
8442 fi
8443
8444 ac_cv_use_stattext='wxUSE_STATTEXT='$DEFAULT_wxUSE_STATTEXT
8445
8446fi;
8447
8448 eval "$ac_cv_use_stattext"
8449 if test "$no_cache" != 1; then
8450 echo $ac_cv_use_stattext >> ${wx_arg_cache_file}.tmp
8451 fi
8452
8453 if test "$wxUSE_STATTEXT" = yes; then
8454 echo "$as_me:$LINENO: result: yes" >&5
8455echo "${ECHO_T}yes" >&6
8456 else
8457 echo "$as_me:$LINENO: result: no" >&5
8458echo "${ECHO_T}no" >&6
8459 fi
8460
8461
8462 enablestring=
8463 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statusbar" >&5
8464echo $ECHO_N "checking for --${enablestring:-enable}-statusbar... $ECHO_C" >&6
8465 no_cache=0
8466 # Check whether --enable-statusbar or --disable-statusbar was given.
8467if test "${enable_statusbar+set}" = set; then
8468 enableval="$enable_statusbar"
8469
8470 if test "$enableval" = yes; then
8471 ac_cv_use_statusbar='wxUSE_STATUSBAR=yes'
8472 else
8473 ac_cv_use_statusbar='wxUSE_STATUSBAR=no'
8474 fi
8475
8476else
8477
8478 LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}`
8479 if test "x$LINE" != x ; then
8480 eval "DEFAULT_$LINE"
8481 else
8482 no_cache=1
8483 fi
8484
8485 ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR
8486
8487fi;
8488
8489 eval "$ac_cv_use_statusbar"
8490 if test "$no_cache" != 1; then
8491 echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp
8492 fi
8493
8494 if test "$wxUSE_STATUSBAR" = yes; then
8495 echo "$as_me:$LINENO: result: yes" >&5
8496echo "${ECHO_T}yes" >&6
8497 else
8498 echo "$as_me:$LINENO: result: no" >&5
8499echo "${ECHO_T}no" >&6
8500 fi
8501
8502
8503 enablestring=
8504 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tabdialog" >&5
8505echo $ECHO_N "checking for --${enablestring:-enable}-tabdialog... $ECHO_C" >&6
8506 no_cache=0
8507 # Check whether --enable-tabdialog or --disable-tabdialog was given.
8508if test "${enable_tabdialog+set}" = set; then
8509 enableval="$enable_tabdialog"
8510
8511 if test "$enableval" = yes; then
8512 ac_cv_use_tabdialog='wxUSE_TABDIALOG=yes'
8513 else
8514 ac_cv_use_tabdialog='wxUSE_TABDIALOG=no'
8515 fi
8516
8517else
8518
8519 LINE=`grep "wxUSE_TABDIALOG" ${wx_arg_cache_file}`
8520 if test "x$LINE" != x ; then
8521 eval "DEFAULT_$LINE"
8522 else
8523 no_cache=1
8524 fi
8525
8526 ac_cv_use_tabdialog='wxUSE_TABDIALOG='$DEFAULT_wxUSE_TABDIALOG
8527
8528fi;
8529
8530 eval "$ac_cv_use_tabdialog"
8531 if test "$no_cache" != 1; then
8532 echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp
8533 fi
8534
8535 if test "$wxUSE_TABDIALOG" = yes; then
8536 echo "$as_me:$LINENO: result: yes" >&5
8537echo "${ECHO_T}yes" >&6
8538 else
8539 echo "$as_me:$LINENO: result: no" >&5
8540echo "${ECHO_T}no" >&6
8541 fi
8542
8543
8544 enablestring=
8545 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textctrl" >&5
8546echo $ECHO_N "checking for --${enablestring:-enable}-textctrl... $ECHO_C" >&6
8547 no_cache=0
8548 # Check whether --enable-textctrl or --disable-textctrl was given.
8549if test "${enable_textctrl+set}" = set; then
8550 enableval="$enable_textctrl"
8551
8552 if test "$enableval" = yes; then
8553 ac_cv_use_textctrl='wxUSE_TEXTCTRL=yes'
8554 else
8555 ac_cv_use_textctrl='wxUSE_TEXTCTRL=no'
8556 fi
8557
8558else
8559
8560 LINE=`grep "wxUSE_TEXTCTRL" ${wx_arg_cache_file}`
8561 if test "x$LINE" != x ; then
8562 eval "DEFAULT_$LINE"
8563 else
8564 no_cache=1
8565 fi
8566
8567 ac_cv_use_textctrl='wxUSE_TEXTCTRL='$DEFAULT_wxUSE_TEXTCTRL
8568
8569fi;
8570
8571 eval "$ac_cv_use_textctrl"
8572 if test "$no_cache" != 1; then
8573 echo $ac_cv_use_textctrl >> ${wx_arg_cache_file}.tmp
8574 fi
8575
8576 if test "$wxUSE_TEXTCTRL" = yes; then
8577 echo "$as_me:$LINENO: result: yes" >&5
8578echo "${ECHO_T}yes" >&6
8579 else
8580 echo "$as_me:$LINENO: result: no" >&5
8581echo "${ECHO_T}no" >&6
8582 fi
8583
8584
8585 enablestring=
8586 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-togglebtn" >&5
8587echo $ECHO_N "checking for --${enablestring:-enable}-togglebtn... $ECHO_C" >&6
8588 no_cache=0
8589 # Check whether --enable-togglebtn or --disable-togglebtn was given.
8590if test "${enable_togglebtn+set}" = set; then
8591 enableval="$enable_togglebtn"
8592
8593 if test "$enableval" = yes; then
8594 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes'
8595 else
8596 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=no'
8597 fi
8598
8599else
8600
8601 LINE=`grep "wxUSE_TOGGLEBTN" ${wx_arg_cache_file}`
8602 if test "x$LINE" != x ; then
8603 eval "DEFAULT_$LINE"
8604 else
8605 no_cache=1
8606 fi
8607
8608 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN='$DEFAULT_wxUSE_TOGGLEBTN
8609
8610fi;
8611
8612 eval "$ac_cv_use_togglebtn"
8613 if test "$no_cache" != 1; then
8614 echo $ac_cv_use_togglebtn >> ${wx_arg_cache_file}.tmp
8615 fi
8616
8617 if test "$wxUSE_TOGGLEBTN" = yes; then
8618 echo "$as_me:$LINENO: result: yes" >&5
8619echo "${ECHO_T}yes" >&6
8620 else
8621 echo "$as_me:$LINENO: result: no" >&5
8622echo "${ECHO_T}no" >&6
8623 fi
8624
8625
8626 enablestring=
8627 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-toolbar" >&5
8628echo $ECHO_N "checking for --${enablestring:-enable}-toolbar... $ECHO_C" >&6
8629 no_cache=0
8630 # Check whether --enable-toolbar or --disable-toolbar was given.
8631if test "${enable_toolbar+set}" = set; then
8632 enableval="$enable_toolbar"
8633
8634 if test "$enableval" = yes; then
8635 ac_cv_use_toolbar='wxUSE_TOOLBAR=yes'
8636 else
8637 ac_cv_use_toolbar='wxUSE_TOOLBAR=no'
8638 fi
8639
8640else
8641
8642 LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}`
8643 if test "x$LINE" != x ; then
8644 eval "DEFAULT_$LINE"
8645 else
8646 no_cache=1
8647 fi
8648
8649 ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR
8650
8651fi;
8652
8653 eval "$ac_cv_use_toolbar"
8654 if test "$no_cache" != 1; then
8655 echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp
8656 fi
8657
8658 if test "$wxUSE_TOOLBAR" = yes; then
8659 echo "$as_me:$LINENO: result: yes" >&5
8660echo "${ECHO_T}yes" >&6
8661 else
8662 echo "$as_me:$LINENO: result: no" >&5
8663echo "${ECHO_T}no" >&6
8664 fi
8665
8666
8667 enablestring=
8668 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarnative" >&5
8669echo $ECHO_N "checking for --${enablestring:-enable}-tbarnative... $ECHO_C" >&6
8670 no_cache=0
8671 # Check whether --enable-tbarnative or --disable-tbarnative was given.
8672if test "${enable_tbarnative+set}" = set; then
8673 enableval="$enable_tbarnative"
8674
8675 if test "$enableval" = yes; then
8676 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes'
8677 else
8678 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no'
8679 fi
8680
8681else
8682
8683 LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}`
8684 if test "x$LINE" != x ; then
8685 eval "DEFAULT_$LINE"
8686 else
8687 no_cache=1
8688 fi
8689
8690 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE
8691
8692fi;
8693
8694 eval "$ac_cv_use_tbarnative"
8695 if test "$no_cache" != 1; then
8696 echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp
8697 fi
8698
8699 if test "$wxUSE_TOOLBAR_NATIVE" = yes; then
8700 echo "$as_me:$LINENO: result: yes" >&5
8701echo "${ECHO_T}yes" >&6
8702 else
8703 echo "$as_me:$LINENO: result: no" >&5
8704echo "${ECHO_T}no" >&6
8705 fi
8706
8707
8708 enablestring=
8709 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarsmpl" >&5
8710echo $ECHO_N "checking for --${enablestring:-enable}-tbarsmpl... $ECHO_C" >&6
8711 no_cache=0
8712 # Check whether --enable-tbarsmpl or --disable-tbarsmpl was given.
8713if test "${enable_tbarsmpl+set}" = set; then
8714 enableval="$enable_tbarsmpl"
8715
8716 if test "$enableval" = yes; then
8717 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=yes'
8718 else
8719 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=no'
8720 fi
8721
8722else
8723
8724 LINE=`grep "wxUSE_TOOLBAR_SIMPLE" ${wx_arg_cache_file}`
8725 if test "x$LINE" != x ; then
8726 eval "DEFAULT_$LINE"
8727 else
8728 no_cache=1
8729 fi
8730
8731 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE='$DEFAULT_wxUSE_TOOLBAR_SIMPLE
8732
8733fi;
8734
8735 eval "$ac_cv_use_tbarsmpl"
8736 if test "$no_cache" != 1; then
8737 echo $ac_cv_use_tbarsmpl >> ${wx_arg_cache_file}.tmp
8738 fi
8739
8740 if test "$wxUSE_TOOLBAR_SIMPLE" = yes; then
8741 echo "$as_me:$LINENO: result: yes" >&5
8742echo "${ECHO_T}yes" >&6
8743 else
8744 echo "$as_me:$LINENO: result: no" >&5
8745echo "${ECHO_T}no" >&6
8746 fi
8747
8748
8749 enablestring=
8750 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-treectrl" >&5
8751echo $ECHO_N "checking for --${enablestring:-enable}-treectrl... $ECHO_C" >&6
8752 no_cache=0
8753 # Check whether --enable-treectrl or --disable-treectrl was given.
8754if test "${enable_treectrl+set}" = set; then
8755 enableval="$enable_treectrl"
8756
8757 if test "$enableval" = yes; then
8758 ac_cv_use_treectrl='wxUSE_TREECTRL=yes'
8759 else
8760 ac_cv_use_treectrl='wxUSE_TREECTRL=no'
8761 fi
8762
8763else
8764
8765 LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}`
8766 if test "x$LINE" != x ; then
8767 eval "DEFAULT_$LINE"
8768 else
8769 no_cache=1
8770 fi
8771
8772 ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL
8773
8774fi;
8775
8776 eval "$ac_cv_use_treectrl"
8777 if test "$no_cache" != 1; then
8778 echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp
8779 fi
8780
8781 if test "$wxUSE_TREECTRL" = yes; then
8782 echo "$as_me:$LINENO: result: yes" >&5
8783echo "${ECHO_T}yes" >&6
8784 else
8785 echo "$as_me:$LINENO: result: no" >&5
8786echo "${ECHO_T}no" >&6
8787 fi
8788
8789
8790 enablestring=
8791 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipwindow" >&5
8792echo $ECHO_N "checking for --${enablestring:-enable}-tipwindow... $ECHO_C" >&6
8793 no_cache=0
8794 # Check whether --enable-tipwindow or --disable-tipwindow was given.
8795if test "${enable_tipwindow+set}" = set; then
8796 enableval="$enable_tipwindow"
8797
8798 if test "$enableval" = yes; then
8799 ac_cv_use_tipwindow='wxUSE_TIPWINDOW=yes'
8800 else
8801 ac_cv_use_tipwindow='wxUSE_TIPWINDOW=no'
8802 fi
8803
8804else
8805
8806 LINE=`grep "wxUSE_TIPWINDOW" ${wx_arg_cache_file}`
8807 if test "x$LINE" != x ; then
8808 eval "DEFAULT_$LINE"
8809 else
8810 no_cache=1
8811 fi
8812
8813 ac_cv_use_tipwindow='wxUSE_TIPWINDOW='$DEFAULT_wxUSE_TIPWINDOW
8814
8815fi;
8816
8817 eval "$ac_cv_use_tipwindow"
8818 if test "$no_cache" != 1; then
8819 echo $ac_cv_use_tipwindow >> ${wx_arg_cache_file}.tmp
8820 fi
8821
8822 if test "$wxUSE_TIPWINDOW" = yes; then
8823 echo "$as_me:$LINENO: result: yes" >&5
8824echo "${ECHO_T}yes" >&6
8825 else
8826 echo "$as_me:$LINENO: result: no" >&5
8827echo "${ECHO_T}no" >&6
8828 fi
8829
8830
8831 enablestring=
8832 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-popupwin" >&5
8833echo $ECHO_N "checking for --${enablestring:-enable}-popupwin... $ECHO_C" >&6
8834 no_cache=0
8835 # Check whether --enable-popupwin or --disable-popupwin was given.
8836if test "${enable_popupwin+set}" = set; then
8837 enableval="$enable_popupwin"
8838
8839 if test "$enableval" = yes; then
8840 ac_cv_use_popupwin='wxUSE_POPUPWIN=yes'
8841 else
8842 ac_cv_use_popupwin='wxUSE_POPUPWIN=no'
8843 fi
8844
8845else
8846
8847 LINE=`grep "wxUSE_POPUPWIN" ${wx_arg_cache_file}`
8848 if test "x$LINE" != x ; then
8849 eval "DEFAULT_$LINE"
8850 else
8851 no_cache=1
8852 fi
8853
8854 ac_cv_use_popupwin='wxUSE_POPUPWIN='$DEFAULT_wxUSE_POPUPWIN
8855
8856fi;
8857
8858 eval "$ac_cv_use_popupwin"
8859 if test "$no_cache" != 1; then
8860 echo $ac_cv_use_popupwin >> ${wx_arg_cache_file}.tmp
8861 fi
8862
8863 if test "$wxUSE_POPUPWIN" = yes; then
8864 echo "$as_me:$LINENO: result: yes" >&5
8865echo "${ECHO_T}yes" >&6
8866 else
8867 echo "$as_me:$LINENO: result: no" >&5
8868echo "${ECHO_T}no" >&6
8869 fi
8870
8871
8872
8873
8874 enablestring=
8875 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-commondlg" >&5
8876echo $ECHO_N "checking for --${enablestring:-enable}-commondlg... $ECHO_C" >&6
8877 no_cache=0
8878 # Check whether --enable-commondlg or --disable-commondlg was given.
8879if test "${enable_commondlg+set}" = set; then
8880 enableval="$enable_commondlg"
8881
8882 if test "$enableval" = yes; then
8883 ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes'
8884 else
8885 ac_cv_use_commondlg='wxUSE_COMMONDLGS=no'
8886 fi
8887
8888else
8889
8890 LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}`
8891 if test "x$LINE" != x ; then
8892 eval "DEFAULT_$LINE"
8893 else
8894 no_cache=1
8895 fi
8896
8897 ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS
8898
8899fi;
8900
8901 eval "$ac_cv_use_commondlg"
8902 if test "$no_cache" != 1; then
8903 echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp
8904 fi
8905
8906 if test "$wxUSE_COMMONDLGS" = yes; then
8907 echo "$as_me:$LINENO: result: yes" >&5
8908echo "${ECHO_T}yes" >&6
8909 else
8910 echo "$as_me:$LINENO: result: no" >&5
8911echo "${ECHO_T}no" >&6
8912 fi
8913
8914
8915 enablestring=
8916 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicedlg" >&5
8917echo $ECHO_N "checking for --${enablestring:-enable}-choicedlg... $ECHO_C" >&6
8918 no_cache=0
8919 # Check whether --enable-choicedlg or --disable-choicedlg was given.
8920if test "${enable_choicedlg+set}" = set; then
8921 enableval="$enable_choicedlg"
8922
8923 if test "$enableval" = yes; then
8924 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=yes'
8925 else
8926 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=no'
8927 fi
8928
8929else
8930
8931 LINE=`grep "wxUSE_CHOICEDLG" ${wx_arg_cache_file}`
8932 if test "x$LINE" != x ; then
8933 eval "DEFAULT_$LINE"
8934 else
8935 no_cache=1
8936 fi
8937
8938 ac_cv_use_choicedlg='wxUSE_CHOICEDLG='$DEFAULT_wxUSE_CHOICEDLG
8939
8940fi;
8941
8942 eval "$ac_cv_use_choicedlg"
8943 if test "$no_cache" != 1; then
8944 echo $ac_cv_use_choicedlg >> ${wx_arg_cache_file}.tmp
8945 fi
8946
8947 if test "$wxUSE_CHOICEDLG" = yes; then
8948 echo "$as_me:$LINENO: result: yes" >&5
8949echo "${ECHO_T}yes" >&6
8950 else
8951 echo "$as_me:$LINENO: result: no" >&5
8952echo "${ECHO_T}no" >&6
8953 fi
8954
8955
8956 enablestring=
8957 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-coldlg" >&5
8958echo $ECHO_N "checking for --${enablestring:-enable}-coldlg... $ECHO_C" >&6
8959 no_cache=0
8960 # Check whether --enable-coldlg or --disable-coldlg was given.
8961if test "${enable_coldlg+set}" = set; then
8962 enableval="$enable_coldlg"
8963
8964 if test "$enableval" = yes; then
8965 ac_cv_use_coldlg='wxUSE_COLOURDLG=yes'
8966 else
8967 ac_cv_use_coldlg='wxUSE_COLOURDLG=no'
8968 fi
8969
8970else
8971
8972 LINE=`grep "wxUSE_COLOURDLG" ${wx_arg_cache_file}`
8973 if test "x$LINE" != x ; then
8974 eval "DEFAULT_$LINE"
8975 else
8976 no_cache=1
8977 fi
8978
8979 ac_cv_use_coldlg='wxUSE_COLOURDLG='$DEFAULT_wxUSE_COLOURDLG
8980
8981fi;
8982
8983 eval "$ac_cv_use_coldlg"
8984 if test "$no_cache" != 1; then
8985 echo $ac_cv_use_coldlg >> ${wx_arg_cache_file}.tmp
8986 fi
8987
8988 if test "$wxUSE_COLOURDLG" = yes; then
8989 echo "$as_me:$LINENO: result: yes" >&5
8990echo "${ECHO_T}yes" >&6
8991 else
8992 echo "$as_me:$LINENO: result: no" >&5
8993echo "${ECHO_T}no" >&6
8994 fi
8995
8996
8997 enablestring=
8998 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filedlg" >&5
8999echo $ECHO_N "checking for --${enablestring:-enable}-filedlg... $ECHO_C" >&6
9000 no_cache=0
9001 # Check whether --enable-filedlg or --disable-filedlg was given.
9002if test "${enable_filedlg+set}" = set; then
9003 enableval="$enable_filedlg"
9004
9005 if test "$enableval" = yes; then
9006 ac_cv_use_filedlg='wxUSE_FILEDLG=yes'
9007 else
9008 ac_cv_use_filedlg='wxUSE_FILEDLG=no'
9009 fi
9010
9011else
9012
9013 LINE=`grep "wxUSE_FILEDLG" ${wx_arg_cache_file}`
9014 if test "x$LINE" != x ; then
9015 eval "DEFAULT_$LINE"
9016 else
9017 no_cache=1
9018 fi
9019
9020 ac_cv_use_filedlg='wxUSE_FILEDLG='$DEFAULT_wxUSE_FILEDLG
9021
9022fi;
9023
9024 eval "$ac_cv_use_filedlg"
9025 if test "$no_cache" != 1; then
9026 echo $ac_cv_use_filedlg >> ${wx_arg_cache_file}.tmp
9027 fi
9028
9029 if test "$wxUSE_FILEDLG" = yes; then
9030 echo "$as_me:$LINENO: result: yes" >&5
9031echo "${ECHO_T}yes" >&6
9032 else
9033 echo "$as_me:$LINENO: result: no" >&5
9034echo "${ECHO_T}no" >&6
9035 fi
9036
9037
9038 enablestring=
9039 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-finddlg" >&5
9040echo $ECHO_N "checking for --${enablestring:-enable}-finddlg... $ECHO_C" >&6
9041 no_cache=0
9042 # Check whether --enable-finddlg or --disable-finddlg was given.
9043if test "${enable_finddlg+set}" = set; then
9044 enableval="$enable_finddlg"
9045
9046 if test "$enableval" = yes; then
9047 ac_cv_use_finddlg='wxUSE_FINDREPLDLG=yes'
9048 else
9049 ac_cv_use_finddlg='wxUSE_FINDREPLDLG=no'
9050 fi
9051
9052else
9053
9054 LINE=`grep "wxUSE_FINDREPLDLG" ${wx_arg_cache_file}`
9055 if test "x$LINE" != x ; then
9056 eval "DEFAULT_$LINE"
9057 else
9058 no_cache=1
9059 fi
9060
9061 ac_cv_use_finddlg='wxUSE_FINDREPLDLG='$DEFAULT_wxUSE_FINDREPLDLG
9062
9063fi;
9064
9065 eval "$ac_cv_use_finddlg"
9066 if test "$no_cache" != 1; then
9067 echo $ac_cv_use_finddlg >> ${wx_arg_cache_file}.tmp
9068 fi
9069
9070 if test "$wxUSE_FINDREPLDLG" = yes; then
9071 echo "$as_me:$LINENO: result: yes" >&5
9072echo "${ECHO_T}yes" >&6
9073 else
9074 echo "$as_me:$LINENO: result: no" >&5
9075echo "${ECHO_T}no" >&6
9076 fi
9077
9078
9079 enablestring=
9080 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontdlg" >&5
9081echo $ECHO_N "checking for --${enablestring:-enable}-fontdlg... $ECHO_C" >&6
9082 no_cache=0
9083 # Check whether --enable-fontdlg or --disable-fontdlg was given.
9084if test "${enable_fontdlg+set}" = set; then
9085 enableval="$enable_fontdlg"
9086
9087 if test "$enableval" = yes; then
9088 ac_cv_use_fontdlg='wxUSE_FONTDLG=yes'
9089 else
9090 ac_cv_use_fontdlg='wxUSE_FONTDLG=no'
9091 fi
9092
9093else
9094
9095 LINE=`grep "wxUSE_FONTDLG" ${wx_arg_cache_file}`
9096 if test "x$LINE" != x ; then
9097 eval "DEFAULT_$LINE"
9098 else
9099 no_cache=1
9100 fi
9101
9102 ac_cv_use_fontdlg='wxUSE_FONTDLG='$DEFAULT_wxUSE_FONTDLG
9103
9104fi;
9105
9106 eval "$ac_cv_use_fontdlg"
9107 if test "$no_cache" != 1; then
9108 echo $ac_cv_use_fontdlg >> ${wx_arg_cache_file}.tmp
9109 fi
9110
9111 if test "$wxUSE_FONTDLG" = yes; then
9112 echo "$as_me:$LINENO: result: yes" >&5
9113echo "${ECHO_T}yes" >&6
9114 else
9115 echo "$as_me:$LINENO: result: no" >&5
9116echo "${ECHO_T}no" >&6
9117 fi
9118
9119
9120 enablestring=
9121 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dirdlg" >&5
9122echo $ECHO_N "checking for --${enablestring:-enable}-dirdlg... $ECHO_C" >&6
9123 no_cache=0
9124 # Check whether --enable-dirdlg or --disable-dirdlg was given.
9125if test "${enable_dirdlg+set}" = set; then
9126 enableval="$enable_dirdlg"
9127
9128 if test "$enableval" = yes; then
9129 ac_cv_use_dirdlg='wxUSE_DIRDLG=yes'
9130 else
9131 ac_cv_use_dirdlg='wxUSE_DIRDLG=no'
9132 fi
9133
9134else
9135
9136 LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}`
9137 if test "x$LINE" != x ; then
9138 eval "DEFAULT_$LINE"
9139 else
9140 no_cache=1
9141 fi
9142
9143 ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG
9144
9145fi;
9146
9147 eval "$ac_cv_use_dirdlg"
9148 if test "$no_cache" != 1; then
9149 echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp
9150 fi
9151
9152 if test "$wxUSE_DIRDLG" = yes; then
9153 echo "$as_me:$LINENO: result: yes" >&5
9154echo "${ECHO_T}yes" >&6
9155 else
9156 echo "$as_me:$LINENO: result: no" >&5
9157echo "${ECHO_T}no" >&6
9158 fi
9159
9160
9161 enablestring=
9162 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-msgdlg" >&5
9163echo $ECHO_N "checking for --${enablestring:-enable}-msgdlg... $ECHO_C" >&6
9164 no_cache=0
9165 # Check whether --enable-msgdlg or --disable-msgdlg was given.
9166if test "${enable_msgdlg+set}" = set; then
9167 enableval="$enable_msgdlg"
9168
9169 if test "$enableval" = yes; then
9170 ac_cv_use_msgdlg='wxUSE_MSGDLG=yes'
9171 else
9172 ac_cv_use_msgdlg='wxUSE_MSGDLG=no'
9173 fi
9174
9175else
9176
9177 LINE=`grep "wxUSE_MSGDLG" ${wx_arg_cache_file}`
9178 if test "x$LINE" != x ; then
9179 eval "DEFAULT_$LINE"
9180 else
9181 no_cache=1
9182 fi
9183
9184 ac_cv_use_msgdlg='wxUSE_MSGDLG='$DEFAULT_wxUSE_MSGDLG
9185
9186fi;
9187
9188 eval "$ac_cv_use_msgdlg"
9189 if test "$no_cache" != 1; then
9190 echo $ac_cv_use_msgdlg >> ${wx_arg_cache_file}.tmp
9191 fi
9192
9193 if test "$wxUSE_MSGDLG" = yes; then
9194 echo "$as_me:$LINENO: result: yes" >&5
9195echo "${ECHO_T}yes" >&6
9196 else
9197 echo "$as_me:$LINENO: result: no" >&5
9198echo "${ECHO_T}no" >&6
9199 fi
9200
9201
9202 enablestring=
9203 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-numberdlg" >&5
9204echo $ECHO_N "checking for --${enablestring:-enable}-numberdlg... $ECHO_C" >&6
9205 no_cache=0
9206 # Check whether --enable-numberdlg or --disable-numberdlg was given.
9207if test "${enable_numberdlg+set}" = set; then
9208 enableval="$enable_numberdlg"
9209
9210 if test "$enableval" = yes; then
9211 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=yes'
9212 else
9213 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=no'
9214 fi
9215
9216else
9217
9218 LINE=`grep "wxUSE_NUMBERDLG" ${wx_arg_cache_file}`
9219 if test "x$LINE" != x ; then
9220 eval "DEFAULT_$LINE"
9221 else
9222 no_cache=1
9223 fi
9224
9225 ac_cv_use_numberdlg='wxUSE_NUMBERDLG='$DEFAULT_wxUSE_NUMBERDLG
9226
9227fi;
9228
9229 eval "$ac_cv_use_numberdlg"
9230 if test "$no_cache" != 1; then
9231 echo $ac_cv_use_numberdlg >> ${wx_arg_cache_file}.tmp
9232 fi
9233
9234 if test "$wxUSE_NUMBERDLG" = yes; then
9235 echo "$as_me:$LINENO: result: yes" >&5
9236echo "${ECHO_T}yes" >&6
9237 else
9238 echo "$as_me:$LINENO: result: no" >&5
9239echo "${ECHO_T}no" >&6
9240 fi
9241
9242
9243 enablestring=
9244 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splash" >&5
9245echo $ECHO_N "checking for --${enablestring:-enable}-splash... $ECHO_C" >&6
9246 no_cache=0
9247 # Check whether --enable-splash or --disable-splash was given.
9248if test "${enable_splash+set}" = set; then
9249 enableval="$enable_splash"
9250
9251 if test "$enableval" = yes; then
9252 ac_cv_use_splash='wxUSE_SPLASH=yes'
9253 else
9254 ac_cv_use_splash='wxUSE_SPLASH=no'
9255 fi
9256
9257else
9258
9259 LINE=`grep "wxUSE_SPLASH" ${wx_arg_cache_file}`
9260 if test "x$LINE" != x ; then
9261 eval "DEFAULT_$LINE"
9262 else
9263 no_cache=1
9264 fi
9265
9266 ac_cv_use_splash='wxUSE_SPLASH='$DEFAULT_wxUSE_SPLASH
9267
9268fi;
9269
9270 eval "$ac_cv_use_splash"
9271 if test "$no_cache" != 1; then
9272 echo $ac_cv_use_splash >> ${wx_arg_cache_file}.tmp
9273 fi
9274
9275 if test "$wxUSE_SPLASH" = yes; then
9276 echo "$as_me:$LINENO: result: yes" >&5
9277echo "${ECHO_T}yes" >&6
9278 else
9279 echo "$as_me:$LINENO: result: no" >&5
9280echo "${ECHO_T}no" >&6
9281 fi
9282
9283
9284 enablestring=
9285 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textdlg" >&5
9286echo $ECHO_N "checking for --${enablestring:-enable}-textdlg... $ECHO_C" >&6
9287 no_cache=0
9288 # Check whether --enable-textdlg or --disable-textdlg was given.
9289if test "${enable_textdlg+set}" = set; then
9290 enableval="$enable_textdlg"
9291
9292 if test "$enableval" = yes; then
9293 ac_cv_use_textdlg='wxUSE_TEXTDLG=yes'
9294 else
9295 ac_cv_use_textdlg='wxUSE_TEXTDLG=no'
9296 fi
9297
9298else
9299
9300 LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}`
9301 if test "x$LINE" != x ; then
9302 eval "DEFAULT_$LINE"
9303 else
9304 no_cache=1
9305 fi
9306
9307 ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG
9308
9309fi;
9310
9311 eval "$ac_cv_use_textdlg"
9312 if test "$no_cache" != 1; then
9313 echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp
9314 fi
9315
9316 if test "$wxUSE_TEXTDLG" = yes; then
9317 echo "$as_me:$LINENO: result: yes" >&5
9318echo "${ECHO_T}yes" >&6
9319 else
9320 echo "$as_me:$LINENO: result: no" >&5
9321echo "${ECHO_T}no" >&6
9322 fi
9323
9324
9325 enablestring=
9326 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipdlg" >&5
9327echo $ECHO_N "checking for --${enablestring:-enable}-tipdlg... $ECHO_C" >&6
9328 no_cache=0
9329 # Check whether --enable-tipdlg or --disable-tipdlg was given.
9330if test "${enable_tipdlg+set}" = set; then
9331 enableval="$enable_tipdlg"
9332
9333 if test "$enableval" = yes; then
9334 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes'
9335 else
9336 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no'
9337 fi
9338
9339else
9340
9341 LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}`
9342 if test "x$LINE" != x ; then
9343 eval "DEFAULT_$LINE"
9344 else
9345 no_cache=1
9346 fi
9347
9348 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS
9349
9350fi;
9351
9352 eval "$ac_cv_use_tipdlg"
9353 if test "$no_cache" != 1; then
9354 echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp
9355 fi
9356
9357 if test "$wxUSE_STARTUP_TIPS" = yes; then
9358 echo "$as_me:$LINENO: result: yes" >&5
9359echo "${ECHO_T}yes" >&6
9360 else
9361 echo "$as_me:$LINENO: result: no" >&5
9362echo "${ECHO_T}no" >&6
9363 fi
9364
9365
9366 enablestring=
9367 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-progressdlg" >&5
9368echo $ECHO_N "checking for --${enablestring:-enable}-progressdlg... $ECHO_C" >&6
9369 no_cache=0
9370 # Check whether --enable-progressdlg or --disable-progressdlg was given.
9371if test "${enable_progressdlg+set}" = set; then
9372 enableval="$enable_progressdlg"
9373
9374 if test "$enableval" = yes; then
9375 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes'
9376 else
9377 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no'
9378 fi
9379
9380else
9381
9382 LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}`
9383 if test "x$LINE" != x ; then
9384 eval "DEFAULT_$LINE"
9385 else
9386 no_cache=1
9387 fi
9388
9389 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG
9390
9391fi;
9392
9393 eval "$ac_cv_use_progressdlg"
9394 if test "$no_cache" != 1; then
9395 echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp
9396 fi
9397
9398 if test "$wxUSE_PROGRESSDLG" = yes; then
9399 echo "$as_me:$LINENO: result: yes" >&5
9400echo "${ECHO_T}yes" >&6
9401 else
9402 echo "$as_me:$LINENO: result: no" >&5
9403echo "${ECHO_T}no" >&6
9404 fi
9405
9406
9407 enablestring=
9408 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wizarddlg" >&5
9409echo $ECHO_N "checking for --${enablestring:-enable}-wizarddlg... $ECHO_C" >&6
9410 no_cache=0
9411 # Check whether --enable-wizarddlg or --disable-wizarddlg was given.
9412if test "${enable_wizarddlg+set}" = set; then
9413 enableval="$enable_wizarddlg"
9414
9415 if test "$enableval" = yes; then
9416 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=yes'
9417 else
9418 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=no'
9419 fi
9420
9421else
9422
9423 LINE=`grep "wxUSE_WIZARDDLG" ${wx_arg_cache_file}`
9424 if test "x$LINE" != x ; then
9425 eval "DEFAULT_$LINE"
9426 else
9427 no_cache=1
9428 fi
9429
9430 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG='$DEFAULT_wxUSE_WIZARDDLG
9431
9432fi;
9433
9434 eval "$ac_cv_use_wizarddlg"
9435 if test "$no_cache" != 1; then
9436 echo $ac_cv_use_wizarddlg >> ${wx_arg_cache_file}.tmp
9437 fi
9438
9439 if test "$wxUSE_WIZARDDLG" = yes; then
9440 echo "$as_me:$LINENO: result: yes" >&5
9441echo "${ECHO_T}yes" >&6
9442 else
9443 echo "$as_me:$LINENO: result: no" >&5
9444echo "${ECHO_T}no" >&6
9445 fi
9446
9447
9448
9449
9450 enablestring=
9451 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-menus" >&5
9452echo $ECHO_N "checking for --${enablestring:-enable}-menus... $ECHO_C" >&6
9453 no_cache=0
9454 # Check whether --enable-menus or --disable-menus was given.
9455if test "${enable_menus+set}" = set; then
9456 enableval="$enable_menus"
9457
9458 if test "$enableval" = yes; then
9459 ac_cv_use_menus='wxUSE_MENUS=yes'
9460 else
9461 ac_cv_use_menus='wxUSE_MENUS=no'
9462 fi
9463
9464else
9465
9466 LINE=`grep "wxUSE_MENUS" ${wx_arg_cache_file}`
9467 if test "x$LINE" != x ; then
9468 eval "DEFAULT_$LINE"
9469 else
9470 no_cache=1
9471 fi
9472
9473 ac_cv_use_menus='wxUSE_MENUS='$DEFAULT_wxUSE_MENUS
9474
9475fi;
9476
9477 eval "$ac_cv_use_menus"
9478 if test "$no_cache" != 1; then
9479 echo $ac_cv_use_menus >> ${wx_arg_cache_file}.tmp
9480 fi
9481
9482 if test "$wxUSE_MENUS" = yes; then
9483 echo "$as_me:$LINENO: result: yes" >&5
9484echo "${ECHO_T}yes" >&6
9485 else
9486 echo "$as_me:$LINENO: result: no" >&5
9487echo "${ECHO_T}no" >&6
9488 fi
9489
9490
9491 enablestring=
9492 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-miniframe" >&5
9493echo $ECHO_N "checking for --${enablestring:-enable}-miniframe... $ECHO_C" >&6
9494 no_cache=0
9495 # Check whether --enable-miniframe or --disable-miniframe was given.
9496if test "${enable_miniframe+set}" = set; then
9497 enableval="$enable_miniframe"
9498
9499 if test "$enableval" = yes; then
9500 ac_cv_use_miniframe='wxUSE_MINIFRAME=yes'
9501 else
9502 ac_cv_use_miniframe='wxUSE_MINIFRAME=no'
9503 fi
9504
9505else
9506
9507 LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}`
9508 if test "x$LINE" != x ; then
9509 eval "DEFAULT_$LINE"
9510 else
9511 no_cache=1
9512 fi
9513
9514 ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME
9515
9516fi;
9517
9518 eval "$ac_cv_use_miniframe"
9519 if test "$no_cache" != 1; then
9520 echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp
9521 fi
9522
9523 if test "$wxUSE_MINIFRAME" = yes; then
9524 echo "$as_me:$LINENO: result: yes" >&5
9525echo "${ECHO_T}yes" >&6
9526 else
9527 echo "$as_me:$LINENO: result: no" >&5
9528echo "${ECHO_T}no" >&6
9529 fi
9530
9531
9532 enablestring=
9533 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tooltips" >&5
9534echo $ECHO_N "checking for --${enablestring:-enable}-tooltips... $ECHO_C" >&6
9535 no_cache=0
9536 # Check whether --enable-tooltips or --disable-tooltips was given.
9537if test "${enable_tooltips+set}" = set; then
9538 enableval="$enable_tooltips"
9539
9540 if test "$enableval" = yes; then
9541 ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes'
9542 else
9543 ac_cv_use_tooltips='wxUSE_TOOLTIPS=no'
9544 fi
9545
9546else
9547
9548 LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}`
9549 if test "x$LINE" != x ; then
9550 eval "DEFAULT_$LINE"
9551 else
9552 no_cache=1
9553 fi
9554
9555 ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS
9556
9557fi;
9558
9559 eval "$ac_cv_use_tooltips"
9560 if test "$no_cache" != 1; then
9561 echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp
9562 fi
9563
9564 if test "$wxUSE_TOOLTIPS" = yes; then
9565 echo "$as_me:$LINENO: result: yes" >&5
9566echo "${ECHO_T}yes" >&6
9567 else
9568 echo "$as_me:$LINENO: result: no" >&5
9569echo "${ECHO_T}no" >&6
9570 fi
9571
9572
9573 enablestring=
9574 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splines" >&5
9575echo $ECHO_N "checking for --${enablestring:-enable}-splines... $ECHO_C" >&6
9576 no_cache=0
9577 # Check whether --enable-splines or --disable-splines was given.
9578if test "${enable_splines+set}" = set; then
9579 enableval="$enable_splines"
9580
9581 if test "$enableval" = yes; then
9582 ac_cv_use_splines='wxUSE_SPLINES=yes'
9583 else
9584 ac_cv_use_splines='wxUSE_SPLINES=no'
9585 fi
9586
9587else
9588
9589 LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}`
9590 if test "x$LINE" != x ; then
9591 eval "DEFAULT_$LINE"
9592 else
9593 no_cache=1
9594 fi
9595
9596 ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES
9597
9598fi;
9599
9600 eval "$ac_cv_use_splines"
9601 if test "$no_cache" != 1; then
9602 echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp
9603 fi
9604
9605 if test "$wxUSE_SPLINES" = yes; then
9606 echo "$as_me:$LINENO: result: yes" >&5
9607echo "${ECHO_T}yes" >&6
9608 else
9609 echo "$as_me:$LINENO: result: no" >&5
9610echo "${ECHO_T}no" >&6
9611 fi
9612
9613
9614 enablestring=
9615 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-validators" >&5
9616echo $ECHO_N "checking for --${enablestring:-enable}-validators... $ECHO_C" >&6
9617 no_cache=0
9618 # Check whether --enable-validators or --disable-validators was given.
9619if test "${enable_validators+set}" = set; then
9620 enableval="$enable_validators"
9621
9622 if test "$enableval" = yes; then
9623 ac_cv_use_validators='wxUSE_VALIDATORS=yes'
9624 else
9625 ac_cv_use_validators='wxUSE_VALIDATORS=no'
9626 fi
9627
9628else
9629
9630 LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}`
9631 if test "x$LINE" != x ; then
9632 eval "DEFAULT_$LINE"
9633 else
9634 no_cache=1
9635 fi
9636
9637 ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS
9638
9639fi;
9640
9641 eval "$ac_cv_use_validators"
9642 if test "$no_cache" != 1; then
9643 echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp
9644 fi
9645
9646 if test "$wxUSE_VALIDATORS" = yes; then
9647 echo "$as_me:$LINENO: result: yes" >&5
9648echo "${ECHO_T}yes" >&6
9649 else
9650 echo "$as_me:$LINENO: result: no" >&5
9651echo "${ECHO_T}no" >&6
9652 fi
9653
9654
9655 enablestring=
9656 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-busyinfo" >&5
9657echo $ECHO_N "checking for --${enablestring:-enable}-busyinfo... $ECHO_C" >&6
9658 no_cache=0
9659 # Check whether --enable-busyinfo or --disable-busyinfo was given.
9660if test "${enable_busyinfo+set}" = set; then
9661 enableval="$enable_busyinfo"
9662
9663 if test "$enableval" = yes; then
9664 ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes'
9665 else
9666 ac_cv_use_busyinfo='wxUSE_BUSYINFO=no'
9667 fi
9668
9669else
9670
9671 LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}`
9672 if test "x$LINE" != x ; then
9673 eval "DEFAULT_$LINE"
9674 else
9675 no_cache=1
9676 fi
9677
9678 ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO
9679
9680fi;
9681
9682 eval "$ac_cv_use_busyinfo"
9683 if test "$no_cache" != 1; then
9684 echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp
9685 fi
9686
9687 if test "$wxUSE_BUSYINFO" = yes; then
9688 echo "$as_me:$LINENO: result: yes" >&5
9689echo "${ECHO_T}yes" >&6
9690 else
9691 echo "$as_me:$LINENO: result: no" >&5
9692echo "${ECHO_T}no" >&6
9693 fi
9694
9695
9696 enablestring=
9697 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-joystick" >&5
9698echo $ECHO_N "checking for --${enablestring:-enable}-joystick... $ECHO_C" >&6
9699 no_cache=0
9700 # Check whether --enable-joystick or --disable-joystick was given.
9701if test "${enable_joystick+set}" = set; then
9702 enableval="$enable_joystick"
9703
9704 if test "$enableval" = yes; then
9705 ac_cv_use_joystick='wxUSE_JOYSTICK=yes'
9706 else
9707 ac_cv_use_joystick='wxUSE_JOYSTICK=no'
9708 fi
9709
9710else
9711
9712 LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}`
9713 if test "x$LINE" != x ; then
9714 eval "DEFAULT_$LINE"
9715 else
9716 no_cache=1
9717 fi
9718
9719 ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK
9720
9721fi;
9722
9723 eval "$ac_cv_use_joystick"
9724 if test "$no_cache" != 1; then
9725 echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp
9726 fi
9727
9728 if test "$wxUSE_JOYSTICK" = yes; then
9729 echo "$as_me:$LINENO: result: yes" >&5
9730echo "${ECHO_T}yes" >&6
9731 else
9732 echo "$as_me:$LINENO: result: no" >&5
9733echo "${ECHO_T}no" >&6
9734 fi
9735
9736
9737 enablestring=
9738 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5
9739echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6
9740 no_cache=0
9741 # Check whether --enable-metafile or --disable-metafile was given.
9742if test "${enable_metafile+set}" = set; then
9743 enableval="$enable_metafile"
9744
9745 if test "$enableval" = yes; then
9746 ac_cv_use_metafile='wxUSE_METAFILE=yes'
9747 else
9748 ac_cv_use_metafile='wxUSE_METAFILE=no'
9749 fi
9750
9751else
9752
9753 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
9754 if test "x$LINE" != x ; then
9755 eval "DEFAULT_$LINE"
9756 else
9757 no_cache=1
9758 fi
9759
9760 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
9761
9762fi;
9763
9764 eval "$ac_cv_use_metafile"
9765 if test "$no_cache" != 1; then
9766 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
9767 fi
9768
9769 if test "$wxUSE_METAFILE" = yes; then
9770 echo "$as_me:$LINENO: result: yes" >&5
9771echo "${ECHO_T}yes" >&6
9772 else
9773 echo "$as_me:$LINENO: result: no" >&5
9774echo "${ECHO_T}no" >&6
9775 fi
9776
9777
9778 enablestring=
9779 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dragimage" >&5
9780echo $ECHO_N "checking for --${enablestring:-enable}-dragimage... $ECHO_C" >&6
9781 no_cache=0
9782 # Check whether --enable-dragimage or --disable-dragimage was given.
9783if test "${enable_dragimage+set}" = set; then
9784 enableval="$enable_dragimage"
9785
9786 if test "$enableval" = yes; then
9787 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=yes'
9788 else
9789 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=no'
9790 fi
9791
9792else
9793
9794 LINE=`grep "wxUSE_DRAGIMAGE" ${wx_arg_cache_file}`
9795 if test "x$LINE" != x ; then
9796 eval "DEFAULT_$LINE"
9797 else
9798 no_cache=1
9799 fi
9800
9801 ac_cv_use_dragimage='wxUSE_DRAGIMAGE='$DEFAULT_wxUSE_DRAGIMAGE
9802
9803fi;
9804
9805 eval "$ac_cv_use_dragimage"
9806 if test "$no_cache" != 1; then
9807 echo $ac_cv_use_dragimage >> ${wx_arg_cache_file}.tmp
9808 fi
9809
9810 if test "$wxUSE_DRAGIMAGE" = yes; then
9811 echo "$as_me:$LINENO: result: yes" >&5
9812echo "${ECHO_T}yes" >&6
9813 else
9814 echo "$as_me:$LINENO: result: no" >&5
9815echo "${ECHO_T}no" >&6
9816 fi
9817
9818
9819 enablestring=
9820 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accessibility" >&5
9821echo $ECHO_N "checking for --${enablestring:-enable}-accessibility... $ECHO_C" >&6
9822 no_cache=0
9823 # Check whether --enable-accessibility or --disable-accessibility was given.
9824if test "${enable_accessibility+set}" = set; then
9825 enableval="$enable_accessibility"
9826
9827 if test "$enableval" = yes; then
9828 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=yes'
9829 else
9830 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=no'
9831 fi
9832
9833else
9834
9835 LINE=`grep "wxUSE_ACCESSIBILITY" ${wx_arg_cache_file}`
9836 if test "x$LINE" != x ; then
9837 eval "DEFAULT_$LINE"
9838 else
9839 no_cache=1
9840 fi
9841
9842 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY='$DEFAULT_wxUSE_ACCESSIBILITY
9843
9844fi;
9845
9846 eval "$ac_cv_use_accessibility"
9847 if test "$no_cache" != 1; then
9848 echo $ac_cv_use_accessibility >> ${wx_arg_cache_file}.tmp
9849 fi
9850
9851 if test "$wxUSE_ACCESSIBILITY" = yes; then
9852 echo "$as_me:$LINENO: result: yes" >&5
9853echo "${ECHO_T}yes" >&6
9854 else
9855 echo "$as_me:$LINENO: result: no" >&5
9856echo "${ECHO_T}no" >&6
9857 fi
9858
9859
9860
9861
9862 enablestring=
9863 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-palette" >&5
9864echo $ECHO_N "checking for --${enablestring:-enable}-palette... $ECHO_C" >&6
9865 no_cache=0
9866 # Check whether --enable-palette or --disable-palette was given.
9867if test "${enable_palette+set}" = set; then
9868 enableval="$enable_palette"
9869
9870 if test "$enableval" = yes; then
9871 ac_cv_use_palette='wxUSE_PALETTE=yes'
9872 else
9873 ac_cv_use_palette='wxUSE_PALETTE=no'
9874 fi
9875
9876else
9877
9878 LINE=`grep "wxUSE_PALETTE" ${wx_arg_cache_file}`
9879 if test "x$LINE" != x ; then
9880 eval "DEFAULT_$LINE"
9881 else
9882 no_cache=1
9883 fi
9884
9885 ac_cv_use_palette='wxUSE_PALETTE='$DEFAULT_wxUSE_PALETTE
9886
9887fi;
9888
9889 eval "$ac_cv_use_palette"
9890 if test "$no_cache" != 1; then
9891 echo $ac_cv_use_palette >> ${wx_arg_cache_file}.tmp
9892 fi
9893
9894 if test "$wxUSE_PALETTE" = yes; then
9895 echo "$as_me:$LINENO: result: yes" >&5
9896echo "${ECHO_T}yes" >&6
9897 else
9898 echo "$as_me:$LINENO: result: no" >&5
9899echo "${ECHO_T}no" >&6
9900 fi
9901
9902
9903 enablestring=
9904 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-image" >&5
9905echo $ECHO_N "checking for --${enablestring:-enable}-image... $ECHO_C" >&6
9906 no_cache=0
9907 # Check whether --enable-image or --disable-image was given.
9908if test "${enable_image+set}" = set; then
9909 enableval="$enable_image"
9910
9911 if test "$enableval" = yes; then
9912 ac_cv_use_image='wxUSE_IMAGE=yes'
9913 else
9914 ac_cv_use_image='wxUSE_IMAGE=no'
9915 fi
9916
9917else
9918
9919 LINE=`grep "wxUSE_IMAGE" ${wx_arg_cache_file}`
9920 if test "x$LINE" != x ; then
9921 eval "DEFAULT_$LINE"
9922 else
9923 no_cache=1
9924 fi
9925
9926 ac_cv_use_image='wxUSE_IMAGE='$DEFAULT_wxUSE_IMAGE
9927
9928fi;
9929
9930 eval "$ac_cv_use_image"
9931 if test "$no_cache" != 1; then
9932 echo $ac_cv_use_image >> ${wx_arg_cache_file}.tmp
9933 fi
9934
9935 if test "$wxUSE_IMAGE" = yes; then
9936 echo "$as_me:$LINENO: result: yes" >&5
9937echo "${ECHO_T}yes" >&6
9938 else
9939 echo "$as_me:$LINENO: result: no" >&5
9940echo "${ECHO_T}no" >&6
9941 fi
9942
9943
9944 enablestring=
9945 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gif" >&5
9946echo $ECHO_N "checking for --${enablestring:-enable}-gif... $ECHO_C" >&6
9947 no_cache=0
9948 # Check whether --enable-gif or --disable-gif was given.
9949if test "${enable_gif+set}" = set; then
9950 enableval="$enable_gif"
9951
9952 if test "$enableval" = yes; then
9953 ac_cv_use_gif='wxUSE_GIF=yes'
9954 else
9955 ac_cv_use_gif='wxUSE_GIF=no'
9956 fi
9957
9958else
9959
9960 LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}`
9961 if test "x$LINE" != x ; then
9962 eval "DEFAULT_$LINE"
9963 else
9964 no_cache=1
9965 fi
9966
9967 ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF
9968
9969fi;
9970
9971 eval "$ac_cv_use_gif"
9972 if test "$no_cache" != 1; then
9973 echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp
9974 fi
9975
9976 if test "$wxUSE_GIF" = yes; then
9977 echo "$as_me:$LINENO: result: yes" >&5
9978echo "${ECHO_T}yes" >&6
9979 else
9980 echo "$as_me:$LINENO: result: no" >&5
9981echo "${ECHO_T}no" >&6
9982 fi
9983
9984
9985 enablestring=
9986 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pcx" >&5
9987echo $ECHO_N "checking for --${enablestring:-enable}-pcx... $ECHO_C" >&6
9988 no_cache=0
9989 # Check whether --enable-pcx or --disable-pcx was given.
9990if test "${enable_pcx+set}" = set; then
9991 enableval="$enable_pcx"
9992
9993 if test "$enableval" = yes; then
9994 ac_cv_use_pcx='wxUSE_PCX=yes'
9995 else
9996 ac_cv_use_pcx='wxUSE_PCX=no'
9997 fi
9998
9999else
10000
10001 LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}`
10002 if test "x$LINE" != x ; then
10003 eval "DEFAULT_$LINE"
10004 else
10005 no_cache=1
10006 fi
10007
10008 ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX
10009
10010fi;
10011
10012 eval "$ac_cv_use_pcx"
10013 if test "$no_cache" != 1; then
10014 echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp
10015 fi
10016
10017 if test "$wxUSE_PCX" = yes; then
10018 echo "$as_me:$LINENO: result: yes" >&5
10019echo "${ECHO_T}yes" >&6
10020 else
10021 echo "$as_me:$LINENO: result: no" >&5
10022echo "${ECHO_T}no" >&6
10023 fi
10024
10025
10026 enablestring=
10027 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-iff" >&5
10028echo $ECHO_N "checking for --${enablestring:-enable}-iff... $ECHO_C" >&6
10029 no_cache=0
10030 # Check whether --enable-iff or --disable-iff was given.
10031if test "${enable_iff+set}" = set; then
10032 enableval="$enable_iff"
10033
10034 if test "$enableval" = yes; then
10035 ac_cv_use_iff='wxUSE_IFF=yes'
10036 else
10037 ac_cv_use_iff='wxUSE_IFF=no'
10038 fi
10039
10040else
10041
10042 LINE=`grep "wxUSE_IFF" ${wx_arg_cache_file}`
10043 if test "x$LINE" != x ; then
10044 eval "DEFAULT_$LINE"
10045 else
10046 no_cache=1
10047 fi
10048
10049 ac_cv_use_iff='wxUSE_IFF='$DEFAULT_wxUSE_IFF
10050
10051fi;
10052
10053 eval "$ac_cv_use_iff"
10054 if test "$no_cache" != 1; then
10055 echo $ac_cv_use_iff >> ${wx_arg_cache_file}.tmp
10056 fi
10057
10058 if test "$wxUSE_IFF" = yes; then
10059 echo "$as_me:$LINENO: result: yes" >&5
10060echo "${ECHO_T}yes" >&6
10061 else
10062 echo "$as_me:$LINENO: result: no" >&5
10063echo "${ECHO_T}no" >&6
10064 fi
10065
10066
10067 enablestring=
10068 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pnm" >&5
10069echo $ECHO_N "checking for --${enablestring:-enable}-pnm... $ECHO_C" >&6
10070 no_cache=0
10071 # Check whether --enable-pnm or --disable-pnm was given.
10072if test "${enable_pnm+set}" = set; then
10073 enableval="$enable_pnm"
10074
10075 if test "$enableval" = yes; then
10076 ac_cv_use_pnm='wxUSE_PNM=yes'
10077 else
10078 ac_cv_use_pnm='wxUSE_PNM=no'
10079 fi
10080
10081else
10082
10083 LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}`
10084 if test "x$LINE" != x ; then
10085 eval "DEFAULT_$LINE"
10086 else
10087 no_cache=1
10088 fi
10089
10090 ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM
10091
10092fi;
10093
10094 eval "$ac_cv_use_pnm"
10095 if test "$no_cache" != 1; then
10096 echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp
10097 fi
10098
10099 if test "$wxUSE_PNM" = yes; then
10100 echo "$as_me:$LINENO: result: yes" >&5
10101echo "${ECHO_T}yes" >&6
10102 else
10103 echo "$as_me:$LINENO: result: no" >&5
10104echo "${ECHO_T}no" >&6
10105 fi
10106
10107
10108 enablestring=
10109 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xpm" >&5
10110echo $ECHO_N "checking for --${enablestring:-enable}-xpm... $ECHO_C" >&6
10111 no_cache=0
10112 # Check whether --enable-xpm or --disable-xpm was given.
10113if test "${enable_xpm+set}" = set; then
10114 enableval="$enable_xpm"
10115
10116 if test "$enableval" = yes; then
10117 ac_cv_use_xpm='wxUSE_XPM=yes'
10118 else
10119 ac_cv_use_xpm='wxUSE_XPM=no'
10120 fi
10121
10122else
10123
10124 LINE=`grep "wxUSE_XPM" ${wx_arg_cache_file}`
10125 if test "x$LINE" != x ; then
10126 eval "DEFAULT_$LINE"
10127 else
10128 no_cache=1
10129 fi
10130
10131 ac_cv_use_xpm='wxUSE_XPM='$DEFAULT_wxUSE_XPM
10132
10133fi;
10134
10135 eval "$ac_cv_use_xpm"
10136 if test "$no_cache" != 1; then
10137 echo $ac_cv_use_xpm >> ${wx_arg_cache_file}.tmp
10138 fi
10139
10140 if test "$wxUSE_XPM" = yes; then
10141 echo "$as_me:$LINENO: result: yes" >&5
10142echo "${ECHO_T}yes" >&6
10143 else
10144 echo "$as_me:$LINENO: result: no" >&5
10145echo "${ECHO_T}no" >&6
10146 fi
10147
10148
10149 enablestring=
10150 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ico_cur" >&5
10151echo $ECHO_N "checking for --${enablestring:-enable}-ico_cur... $ECHO_C" >&6
10152 no_cache=0
10153 # Check whether --enable-ico_cur or --disable-ico_cur was given.
10154if test "${enable_ico_cur+set}" = set; then
10155 enableval="$enable_ico_cur"
10156
10157 if test "$enableval" = yes; then
10158 ac_cv_use_ico_cur='wxUSE_ICO_CUR=yes'
10159 else
10160 ac_cv_use_ico_cur='wxUSE_ICO_CUR=no'
10161 fi
10162
10163else
10164
10165 LINE=`grep "wxUSE_ICO_CUR" ${wx_arg_cache_file}`
10166 if test "x$LINE" != x ; then
10167 eval "DEFAULT_$LINE"
10168 else
10169 no_cache=1
10170 fi
10171
10172 ac_cv_use_ico_cur='wxUSE_ICO_CUR='$DEFAULT_wxUSE_ICO_CUR
10173
10174fi;
10175
10176 eval "$ac_cv_use_ico_cur"
10177 if test "$no_cache" != 1; then
10178 echo $ac_cv_use_ico_cur >> ${wx_arg_cache_file}.tmp
10179 fi
10180
10181 if test "$wxUSE_ICO_CUR" = yes; then
10182 echo "$as_me:$LINENO: result: yes" >&5
10183echo "${ECHO_T}yes" >&6
10184 else
10185 echo "$as_me:$LINENO: result: no" >&5
10186echo "${ECHO_T}no" >&6
10187 fi
10188
10189
10190fi
10191
10192
10193
ceec2216
RL
10194# Check whether --with-flavour or --without-flavour was given.
10195if test "${with_flavour+set}" = set; then
10196 withval="$with_flavour"
10197 WX_FLAVOUR="$withval"
10198fi;
10199
10200
10201
a848cd7e
SC
10202 enablestring=
10203 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-official_build" >&5
10204echo $ECHO_N "checking for --${enablestring:-enable}-official_build... $ECHO_C" >&6
10205 no_cache=0
10206 # Check whether --enable-official_build or --disable-official_build was given.
10207if test "${enable_official_build+set}" = set; then
10208 enableval="$enable_official_build"
10209
10210 if test "$enableval" = yes; then
10211 ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD=yes'
10212 else
10213 ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD=no'
10214 fi
10215
10216else
10217
10218 LINE=`grep "wxUSE_OFFICIAL_BUILD" ${wx_arg_cache_file}`
10219 if test "x$LINE" != x ; then
10220 eval "DEFAULT_$LINE"
10221 else
10222 no_cache=1
10223 fi
10224
10225 ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD='$DEFAULT_wxUSE_OFFICIAL_BUILD
10226
10227fi;
10228
10229 eval "$ac_cv_use_official_build"
10230 if test "$no_cache" != 1; then
10231 echo $ac_cv_use_official_build >> ${wx_arg_cache_file}.tmp
10232 fi
10233
10234 if test "$wxUSE_OFFICIAL_BUILD" = yes; then
10235 echo "$as_me:$LINENO: result: yes" >&5
10236echo "${ECHO_T}yes" >&6
10237 else
10238 echo "$as_me:$LINENO: result: no" >&5
10239echo "${ECHO_T}no" >&6
10240 fi
10241
10242# Check whether --enable-vendor or --disable-vendor was given.
10243if test "${enable_vendor+set}" = set; then
10244 enableval="$enable_vendor"
10245 VENDOR="$enableval"
10246fi;
10247if test "x$VENDOR" = "x"; then
10248 VENDOR="custom"
10249fi
10250
a848cd7e
SC
10251
10252
10253
10254 echo "saving argument cache $wx_arg_cache_file"
10255 mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file}
10256
10257
10258
10259echo "$as_me:$LINENO: checking for toolkit" >&5
10260echo $ECHO_N "checking for toolkit... $ECHO_C" >&6
10261
10262# In Wine, we need to default to MSW, not GTK or MOTIF
10263if test "$wxUSE_WINE" = "yes"; then
10264 DEFAULT_DEFAULT_wxUSE_GTK=0
10265 DEFAULT_DEFAULT_wxUSE_MOTIF=0
10266 DEFAULT_DEFAULT_wxUSE_MSW=1
10267 wxUSE_SHARED=no
10268fi
10269
10270if test "$wxUSE_GUI" = "yes"; then
10271
10272 if test "$USE_BEOS" = 1; then
10273 { { echo "$as_me:$LINENO: error: BeOS GUI is not supported yet, use --disable-gui" >&5
10274echo "$as_me: error: BeOS GUI is not supported yet, use --disable-gui" >&2;}
10275 { (exit 1); exit 1; }; }
10276 fi
10277
10278 if test "$TOOLKIT_GIVEN" = 1; then
10279 for toolkit in `echo $ALL_TOOLKITS`; do
10280 var=wxUSE_$toolkit
10281 eval "value=\$${var}"
10282 eval "$var=`echo \$value | sed -e "s/yes/1/" -e "s/no/0/"`"
10283 done
10284 else
10285 for toolkit in `echo $ALL_TOOLKITS`; do
10286 if test "$has_toolkit_in_cache" != 1; then
10287 var=DEFAULT_DEFAULT_wxUSE_$toolkit
10288 else
10289 var=DEFAULT_wxUSE_$toolkit
10290 fi
10291 eval "wxUSE_$toolkit=\$${var}"
10292 done
10293 fi
10294
10295 NUM_TOOLKITS=`expr ${wxUSE_COCOA:-0} + ${wxUSE_GTK:-0} + ${wxUSE_MAC:-0} \
10296 + ${wxUSE_MGL:-0} + ${wxUSE_MICROWIN:-0} \
10297 + ${wxUSE_MOTIF:-0} + ${wxUSE_MSW:-0} + ${wxUSE_X11:-0}`
10298
10299 case "${host}" in
10300 *-pc-os2_emx | *-pc-os2-emx )
10301 NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}`
10302 esac
10303
10304 case "$NUM_TOOLKITS" in
10305 1)
10306 ;;
10307 0)
10308 { { echo "$as_me:$LINENO: error: Please specify a toolkit -- cannot determine the default for ${host}" >&5
10309echo "$as_me: error: Please specify a toolkit -- cannot determine the default for ${host}" >&2;}
10310 { (exit 1); exit 1; }; }
10311 ;;
10312 *)
10313 { { echo "$as_me:$LINENO: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&5
10314echo "$as_me: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&2;}
10315 { (exit 1); exit 1; }; }
10316 esac
10317
10318 for toolkit in `echo $ALL_TOOLKITS`; do
10319 var=wxUSE_$toolkit
10320 eval "value=\$${var}"
10321 if test "x$value" != x; then
10322 cache_var=CACHE_$toolkit
10323 eval "cache=\$${cache_var}"
10324 if test "$cache" = 1; then
10325 echo "$var=$value" >> ${wx_arg_cache_file}
10326 fi
10327 if test "$value" = 1; then
10328 toolkit_echo=`echo $toolkit | tr "[A-Z]" "[a-z]"`
10329 echo "$as_me:$LINENO: result: $toolkit_echo" >&5
10330echo "${ECHO_T}$toolkit_echo" >&6
10331 fi
10332 fi
10333 done
10334else
10335 if test "x$host_alias" != "x"; then
10336 echo "$as_me:$LINENO: result: base ($host_alias hosted) only" >&5
10337echo "${ECHO_T}base ($host_alias hosted) only" >&6
10338 else
10339 echo "$as_me:$LINENO: result: base only" >&5
10340echo "${ECHO_T}base only" >&6
10341 fi
10342fi
10343
10344wants_win32=0
10345doesnt_want_win32=0
10346case "${host}" in
10347 *-*-cygwin*)
10348 if test "$wxUSE_MSW" = 1 ; then
10349 wants_win32=1
10350 else
10351 doesnt_want_win32=1
10352 fi
10353 ;;
10354 *-*-mingw*)
10355 wants_win32=1
10356 ;;
10357esac
10358
10359if test "$wxUSE_WINE" = "yes"; then
10360 wants_win32=1
10361 CC=winegcc
10362 CXX=wineg++
10363 RESCOMP=wrc
10364 LDFLAGS_GUI="-mwindows"
10365fi
10366
10367if test "$wants_win32" = 1 ; then
10368 USE_UNIX=0
10369 USE_WIN32=1
10370 cat >>confdefs.h <<\_ACEOF
10371#define __WIN32__ 1
10372_ACEOF
10373
10374 cat >>confdefs.h <<\_ACEOF
10375#define __WIN95__ 1
10376_ACEOF
10377
10378 cat >>confdefs.h <<\_ACEOF
10379#define __WINDOWS__ 1
10380_ACEOF
10381
10382 cat >>confdefs.h <<\_ACEOF
10383#define __GNUWIN32__ 1
10384_ACEOF
10385
10386 cat >>confdefs.h <<\_ACEOF
10387#define STRICT 1
10388_ACEOF
10389
10390 cat >>confdefs.h <<\_ACEOF
10391#define WINVER 0x0400
10392_ACEOF
10393
10394fi
10395if test "$doesnt_want_win32" = 1 ; then
10396 USE_UNIX=1
10397 USE_WIN32=0
10398fi
10399
10400if test "$USE_UNIX" = 1 ; then
10401 wxUSE_UNIX=yes
10402 cat >>confdefs.h <<\_ACEOF
10403#define __UNIX__ 1
10404_ACEOF
10405
10406fi
10407
10408
10409cat >confcache <<\_ACEOF
10410# This file is a shell script that caches the results of configure
10411# tests run on this system so they can be shared between configure
10412# scripts and configure runs, see configure's option --config-cache.
10413# It is not useful on other systems. If it contains results you don't
10414# want to keep, you may remove or edit it.
10415#
10416# config.status only pays attention to the cache file if you give it
10417# the --recheck option to rerun configure.
10418#
10419# `ac_cv_env_foo' variables (set or unset) will be overridden when
10420# loading this file, other *unset* `ac_cv_foo' will be assigned the
10421# following values.
10422
10423_ACEOF
10424
10425# The following way of writing the cache mishandles newlines in values,
10426# but we know of no workaround that is simple, portable, and efficient.
10427# So, don't put newlines in cache variables' values.
10428# Ultrix sh set writes to stderr and can't be redirected directly,
10429# and sets the high bit in the cache file unless we assign to the vars.
10430{
10431 (set) 2>&1 |
10432 case `(ac_space=' '; set | grep ac_space) 2>&1` in
10433 *ac_space=\ *)
10434 # `set' does not quote correctly, so add quotes (double-quote
10435 # substitution turns \\\\ into \\, and sed turns \\ into \).
10436 sed -n \
ac1cb8d3
VS
10437 "s/'/'\\\\''/g;
10438 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a848cd7e
SC
10439 ;;
10440 *)
10441 # `set' quotes correctly as required by POSIX, so do not add quotes.
10442 sed -n \
ac1cb8d3 10443 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
10444 ;;
10445 esac;
10446} |
10447 sed '
10448 t clear
10449 : clear
10450 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10451 t end
10452 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10453 : end' >>confcache
10454if diff $cache_file confcache >/dev/null 2>&1; then :; else
10455 if test -w $cache_file; then
10456 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
10457 cat confcache >$cache_file
10458 else
10459 echo "not updating unwritable cache $cache_file"
10460 fi
10461fi
10462rm -f confcache
10463
10464if test "$build" != "$host" ; then
1e9e8aba 10465 if test "$USE_WIN32" = 1 -o "$USE_DOS" = 1 -o "$USE_UNIX" = 1; then
a848cd7e
SC
10466 CC=$host_alias-gcc
10467 CXX=$host_alias-c++
10468 AR=$host_alias-ar
10469 RANLIB=$host_alias-ranlib
10470 DLLTOOL=$host_alias-dlltool
10471 RESCOMP=$host_alias-windres
a848cd7e 10472 STRIP=$host_alias-strip
1e9e8aba
DE
10473 elif test "x$CC" '!=' "x"; then
10474 echo "You set CC, I assume you know what you are doing."
a848cd7e
SC
10475 else
10476 { { echo "$as_me:$LINENO: error: $build_alias -> $host_alias cross compilation not supported yet." >&5
10477echo "$as_me: error: $build_alias -> $host_alias cross compilation not supported yet." >&2;}
10478 { (exit 1); exit 1; }; }
10479 fi
10480fi
10481
10482CFLAGS=${CFLAGS:=}
10483ac_ext=c
10484ac_cpp='$CPP $CPPFLAGS'
10485ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10486ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10487ac_compiler_gnu=$ac_cv_c_compiler_gnu
10488if test -n "$ac_tool_prefix"; then
10489 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
10490set dummy ${ac_tool_prefix}gcc; ac_word=$2
10491echo "$as_me:$LINENO: checking for $ac_word" >&5
10492echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10493if test "${ac_cv_prog_CC+set}" = set; then
10494 echo $ECHO_N "(cached) $ECHO_C" >&6
10495else
10496 if test -n "$CC"; then
10497 ac_cv_prog_CC="$CC" # Let the user override the test.
10498else
10499as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10500for as_dir in $PATH
10501do
10502 IFS=$as_save_IFS
10503 test -z "$as_dir" && as_dir=.
10504 for ac_exec_ext in '' $ac_executable_extensions; do
10505 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10506 ac_cv_prog_CC="${ac_tool_prefix}gcc"
10507 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10508 break 2
10509 fi
10510done
10511done
10512
10513fi
10514fi
10515CC=$ac_cv_prog_CC
10516if test -n "$CC"; then
10517 echo "$as_me:$LINENO: result: $CC" >&5
10518echo "${ECHO_T}$CC" >&6
10519else
10520 echo "$as_me:$LINENO: result: no" >&5
10521echo "${ECHO_T}no" >&6
10522fi
10523
10524fi
10525if test -z "$ac_cv_prog_CC"; then
10526 ac_ct_CC=$CC
10527 # Extract the first word of "gcc", so it can be a program name with args.
10528set dummy gcc; ac_word=$2
10529echo "$as_me:$LINENO: checking for $ac_word" >&5
10530echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10531if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
10532 echo $ECHO_N "(cached) $ECHO_C" >&6
10533else
10534 if test -n "$ac_ct_CC"; then
10535 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
10536else
10537as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10538for as_dir in $PATH
10539do
10540 IFS=$as_save_IFS
10541 test -z "$as_dir" && as_dir=.
10542 for ac_exec_ext in '' $ac_executable_extensions; do
10543 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10544 ac_cv_prog_ac_ct_CC="gcc"
10545 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10546 break 2
10547 fi
10548done
10549done
10550
10551fi
10552fi
10553ac_ct_CC=$ac_cv_prog_ac_ct_CC
10554if test -n "$ac_ct_CC"; then
10555 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
10556echo "${ECHO_T}$ac_ct_CC" >&6
10557else
10558 echo "$as_me:$LINENO: result: no" >&5
10559echo "${ECHO_T}no" >&6
10560fi
10561
10562 CC=$ac_ct_CC
10563else
10564 CC="$ac_cv_prog_CC"
10565fi
10566
10567if test -z "$CC"; then
10568 if test -n "$ac_tool_prefix"; then
10569 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
10570set dummy ${ac_tool_prefix}cc; ac_word=$2
10571echo "$as_me:$LINENO: checking for $ac_word" >&5
10572echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10573if test "${ac_cv_prog_CC+set}" = set; then
10574 echo $ECHO_N "(cached) $ECHO_C" >&6
10575else
10576 if test -n "$CC"; then
10577 ac_cv_prog_CC="$CC" # Let the user override the test.
10578else
10579as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10580for as_dir in $PATH
10581do
10582 IFS=$as_save_IFS
10583 test -z "$as_dir" && as_dir=.
10584 for ac_exec_ext in '' $ac_executable_extensions; do
10585 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10586 ac_cv_prog_CC="${ac_tool_prefix}cc"
10587 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10588 break 2
10589 fi
10590done
10591done
10592
10593fi
10594fi
10595CC=$ac_cv_prog_CC
10596if test -n "$CC"; then
10597 echo "$as_me:$LINENO: result: $CC" >&5
10598echo "${ECHO_T}$CC" >&6
10599else
10600 echo "$as_me:$LINENO: result: no" >&5
10601echo "${ECHO_T}no" >&6
10602fi
10603
10604fi
10605if test -z "$ac_cv_prog_CC"; then
10606 ac_ct_CC=$CC
10607 # Extract the first word of "cc", so it can be a program name with args.
10608set dummy cc; ac_word=$2
10609echo "$as_me:$LINENO: checking for $ac_word" >&5
10610echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10611if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
10612 echo $ECHO_N "(cached) $ECHO_C" >&6
10613else
10614 if test -n "$ac_ct_CC"; then
10615 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
10616else
10617as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10618for as_dir in $PATH
10619do
10620 IFS=$as_save_IFS
10621 test -z "$as_dir" && as_dir=.
10622 for ac_exec_ext in '' $ac_executable_extensions; do
10623 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10624 ac_cv_prog_ac_ct_CC="cc"
10625 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10626 break 2
10627 fi
10628done
10629done
10630
10631fi
10632fi
10633ac_ct_CC=$ac_cv_prog_ac_ct_CC
10634if test -n "$ac_ct_CC"; then
10635 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
10636echo "${ECHO_T}$ac_ct_CC" >&6
10637else
10638 echo "$as_me:$LINENO: result: no" >&5
10639echo "${ECHO_T}no" >&6
10640fi
10641
10642 CC=$ac_ct_CC
10643else
10644 CC="$ac_cv_prog_CC"
10645fi
10646
10647fi
10648if test -z "$CC"; then
10649 # Extract the first word of "cc", so it can be a program name with args.
10650set dummy cc; ac_word=$2
10651echo "$as_me:$LINENO: checking for $ac_word" >&5
10652echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10653if test "${ac_cv_prog_CC+set}" = set; then
10654 echo $ECHO_N "(cached) $ECHO_C" >&6
10655else
10656 if test -n "$CC"; then
10657 ac_cv_prog_CC="$CC" # Let the user override the test.
10658else
10659 ac_prog_rejected=no
10660as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10661for as_dir in $PATH
10662do
10663 IFS=$as_save_IFS
10664 test -z "$as_dir" && as_dir=.
10665 for ac_exec_ext in '' $ac_executable_extensions; do
10666 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10667 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
10668 ac_prog_rejected=yes
10669 continue
10670 fi
10671 ac_cv_prog_CC="cc"
10672 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10673 break 2
10674 fi
10675done
10676done
10677
10678if test $ac_prog_rejected = yes; then
10679 # We found a bogon in the path, so make sure we never use it.
10680 set dummy $ac_cv_prog_CC
10681 shift
10682 if test $# != 0; then
10683 # We chose a different compiler from the bogus one.
10684 # However, it has the same basename, so the bogon will be chosen
10685 # first if we set CC to just the basename; use the full file name.
10686 shift
10687 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
10688 fi
10689fi
10690fi
10691fi
10692CC=$ac_cv_prog_CC
10693if test -n "$CC"; then
10694 echo "$as_me:$LINENO: result: $CC" >&5
10695echo "${ECHO_T}$CC" >&6
10696else
10697 echo "$as_me:$LINENO: result: no" >&5
10698echo "${ECHO_T}no" >&6
10699fi
10700
10701fi
10702if test -z "$CC"; then
10703 if test -n "$ac_tool_prefix"; then
10704 for ac_prog in cl
10705 do
10706 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10707set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10708echo "$as_me:$LINENO: checking for $ac_word" >&5
10709echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10710if test "${ac_cv_prog_CC+set}" = set; then
10711 echo $ECHO_N "(cached) $ECHO_C" >&6
10712else
10713 if test -n "$CC"; then
10714 ac_cv_prog_CC="$CC" # Let the user override the test.
10715else
10716as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10717for as_dir in $PATH
10718do
10719 IFS=$as_save_IFS
10720 test -z "$as_dir" && as_dir=.
10721 for ac_exec_ext in '' $ac_executable_extensions; do
10722 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10723 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
10724 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10725 break 2
10726 fi
10727done
10728done
10729
10730fi
10731fi
10732CC=$ac_cv_prog_CC
10733if test -n "$CC"; then
10734 echo "$as_me:$LINENO: result: $CC" >&5
10735echo "${ECHO_T}$CC" >&6
10736else
10737 echo "$as_me:$LINENO: result: no" >&5
10738echo "${ECHO_T}no" >&6
10739fi
10740
10741 test -n "$CC" && break
10742 done
10743fi
10744if test -z "$CC"; then
10745 ac_ct_CC=$CC
10746 for ac_prog in cl
10747do
10748 # Extract the first word of "$ac_prog", so it can be a program name with args.
10749set dummy $ac_prog; ac_word=$2
10750echo "$as_me:$LINENO: checking for $ac_word" >&5
10751echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10752if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
10753 echo $ECHO_N "(cached) $ECHO_C" >&6
10754else
10755 if test -n "$ac_ct_CC"; then
10756 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
10757else
10758as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10759for as_dir in $PATH
10760do
10761 IFS=$as_save_IFS
10762 test -z "$as_dir" && as_dir=.
10763 for ac_exec_ext in '' $ac_executable_extensions; do
10764 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10765 ac_cv_prog_ac_ct_CC="$ac_prog"
10766 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10767 break 2
10768 fi
10769done
10770done
10771
10772fi
10773fi
10774ac_ct_CC=$ac_cv_prog_ac_ct_CC
10775if test -n "$ac_ct_CC"; then
10776 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
10777echo "${ECHO_T}$ac_ct_CC" >&6
10778else
10779 echo "$as_me:$LINENO: result: no" >&5
10780echo "${ECHO_T}no" >&6
10781fi
10782
10783 test -n "$ac_ct_CC" && break
10784done
10785
10786 CC=$ac_ct_CC
10787fi
10788
10789fi
10790
10791
10792test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
10793See \`config.log' for more details." >&5
10794echo "$as_me: error: no acceptable C compiler found in \$PATH
10795See \`config.log' for more details." >&2;}
10796 { (exit 1); exit 1; }; }
10797
10798# Provide some information about the compiler.
10799echo "$as_me:$LINENO:" \
10800 "checking for C compiler version" >&5
10801ac_compiler=`set X $ac_compile; echo $2`
10802{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
10803 (eval $ac_compiler --version </dev/null >&5) 2>&5
10804 ac_status=$?
10805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10806 (exit $ac_status); }
10807{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
10808 (eval $ac_compiler -v </dev/null >&5) 2>&5
10809 ac_status=$?
10810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10811 (exit $ac_status); }
10812{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
10813 (eval $ac_compiler -V </dev/null >&5) 2>&5
10814 ac_status=$?
10815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10816 (exit $ac_status); }
10817
10818cat >conftest.$ac_ext <<_ACEOF
10819/* confdefs.h. */
10820_ACEOF
10821cat confdefs.h >>conftest.$ac_ext
10822cat >>conftest.$ac_ext <<_ACEOF
10823/* end confdefs.h. */
10824
10825int
10826main ()
10827{
10828
10829 ;
10830 return 0;
10831}
10832_ACEOF
10833ac_clean_files_save=$ac_clean_files
10834ac_clean_files="$ac_clean_files a.out a.exe b.out"
10835# Try to create an executable without -o first, disregard a.out.
10836# It will help us diagnose broken compilers, and finding out an intuition
10837# of exeext.
ac1cb8d3
VS
10838echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
10839echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
a848cd7e
SC
10840ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
10841if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
10842 (eval $ac_link_default) 2>&5
10843 ac_status=$?
10844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10845 (exit $ac_status); }; then
10846 # Find the output, starting from the most likely. This scheme is
10847# not robust to junk in `.', hence go to wildcards (a.*) only as a last
10848# resort.
10849
10850# Be careful to initialize this variable, since it used to be cached.
10851# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
10852ac_cv_exeext=
10853# b.out is created by i960 compilers.
10854for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
10855do
10856 test -f "$ac_file" || continue
10857 case $ac_file in
10858 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
ac1cb8d3 10859 ;;
a848cd7e 10860 conftest.$ac_ext )
ac1cb8d3
VS
10861 # This is the source file.
10862 ;;
a848cd7e 10863 [ab].out )
ac1cb8d3
VS
10864 # We found the default executable, but exeext='' is most
10865 # certainly right.
10866 break;;
a848cd7e 10867 *.* )
ac1cb8d3
VS
10868 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
10869 # FIXME: I believe we export ac_cv_exeext for Libtool,
10870 # but it would be cool to find out if it's true. Does anybody
10871 # maintain Libtool? --akim.
10872 export ac_cv_exeext
10873 break;;
a848cd7e 10874 * )
ac1cb8d3 10875 break;;
a848cd7e
SC
10876 esac
10877done
10878else
10879 echo "$as_me: failed program was:" >&5
10880sed 's/^/| /' conftest.$ac_ext >&5
10881
10882{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
10883See \`config.log' for more details." >&5
10884echo "$as_me: error: C compiler cannot create executables
10885See \`config.log' for more details." >&2;}
10886 { (exit 77); exit 77; }; }
10887fi
10888
10889ac_exeext=$ac_cv_exeext
10890echo "$as_me:$LINENO: result: $ac_file" >&5
10891echo "${ECHO_T}$ac_file" >&6
10892
10893# Check the compiler produces executables we can run. If not, either
10894# the compiler is broken, or we cross compile.
10895echo "$as_me:$LINENO: checking whether the C compiler works" >&5
10896echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
10897# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
10898# If not cross compiling, check that we can run a simple program.
10899if test "$cross_compiling" != yes; then
10900 if { ac_try='./$ac_file'
10901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10902 (eval $ac_try) 2>&5
10903 ac_status=$?
10904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10905 (exit $ac_status); }; }; then
10906 cross_compiling=no
10907 else
10908 if test "$cross_compiling" = maybe; then
10909 cross_compiling=yes
10910 else
10911 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
10912If you meant to cross compile, use \`--host'.
10913See \`config.log' for more details." >&5
10914echo "$as_me: error: cannot run C compiled programs.
10915If you meant to cross compile, use \`--host'.
10916See \`config.log' for more details." >&2;}
10917 { (exit 1); exit 1; }; }
10918 fi
10919 fi
10920fi
10921echo "$as_me:$LINENO: result: yes" >&5
10922echo "${ECHO_T}yes" >&6
10923
10924rm -f a.out a.exe conftest$ac_cv_exeext b.out
10925ac_clean_files=$ac_clean_files_save
10926# Check the compiler produces executables we can run. If not, either
10927# the compiler is broken, or we cross compile.
10928echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
10929echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
10930echo "$as_me:$LINENO: result: $cross_compiling" >&5
10931echo "${ECHO_T}$cross_compiling" >&6
10932
10933echo "$as_me:$LINENO: checking for suffix of executables" >&5
10934echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
10935if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10936 (eval $ac_link) 2>&5
10937 ac_status=$?
10938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10939 (exit $ac_status); }; then
10940 # If both `conftest.exe' and `conftest' are `present' (well, observable)
10941# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
10942# work properly (i.e., refer to `conftest.exe'), while it won't with
10943# `rm'.
10944for ac_file in conftest.exe conftest conftest.*; do
10945 test -f "$ac_file" || continue
10946 case $ac_file in
10947 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
10948 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
ac1cb8d3
VS
10949 export ac_cv_exeext
10950 break;;
a848cd7e
SC
10951 * ) break;;
10952 esac
10953done
10954else
10955 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
10956See \`config.log' for more details." >&5
10957echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
10958See \`config.log' for more details." >&2;}
10959 { (exit 1); exit 1; }; }
10960fi
10961
10962rm -f conftest$ac_cv_exeext
10963echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
10964echo "${ECHO_T}$ac_cv_exeext" >&6
10965
10966rm -f conftest.$ac_ext
10967EXEEXT=$ac_cv_exeext
10968ac_exeext=$EXEEXT
10969echo "$as_me:$LINENO: checking for suffix of object files" >&5
10970echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
10971if test "${ac_cv_objext+set}" = set; then
10972 echo $ECHO_N "(cached) $ECHO_C" >&6
10973else
10974 cat >conftest.$ac_ext <<_ACEOF
10975/* confdefs.h. */
10976_ACEOF
10977cat confdefs.h >>conftest.$ac_ext
10978cat >>conftest.$ac_ext <<_ACEOF
10979/* end confdefs.h. */
10980
10981int
10982main ()
10983{
10984
10985 ;
10986 return 0;
10987}
10988_ACEOF
10989rm -f conftest.o conftest.obj
10990if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10991 (eval $ac_compile) 2>&5
10992 ac_status=$?
10993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10994 (exit $ac_status); }; then
10995 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
10996 case $ac_file in
10997 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
10998 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
10999 break;;
11000 esac
11001done
11002else
11003 echo "$as_me: failed program was:" >&5
11004sed 's/^/| /' conftest.$ac_ext >&5
11005
11006{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
11007See \`config.log' for more details." >&5
11008echo "$as_me: error: cannot compute suffix of object files: cannot compile
11009See \`config.log' for more details." >&2;}
11010 { (exit 1); exit 1; }; }
11011fi
11012
11013rm -f conftest.$ac_cv_objext conftest.$ac_ext
11014fi
11015echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
11016echo "${ECHO_T}$ac_cv_objext" >&6
11017OBJEXT=$ac_cv_objext
11018ac_objext=$OBJEXT
11019echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
11020echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
11021if test "${ac_cv_c_compiler_gnu+set}" = set; then
11022 echo $ECHO_N "(cached) $ECHO_C" >&6
11023else
11024 cat >conftest.$ac_ext <<_ACEOF
11025/* confdefs.h. */
11026_ACEOF
11027cat confdefs.h >>conftest.$ac_ext
11028cat >>conftest.$ac_ext <<_ACEOF
11029/* end confdefs.h. */
11030
11031int
11032main ()
11033{
11034#ifndef __GNUC__
11035 choke me
11036#endif
11037
11038 ;
11039 return 0;
11040}
11041_ACEOF
11042rm -f conftest.$ac_objext
11043if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11044 (eval $ac_compile) 2>conftest.er1
a848cd7e 11045 ac_status=$?
ac1cb8d3
VS
11046 grep -v '^ *+' conftest.er1 >conftest.err
11047 rm -f conftest.er1
11048 cat conftest.err >&5
a848cd7e
SC
11049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11050 (exit $ac_status); } &&
89be85c2
VS
11051 { ac_try='test -z "$ac_c_werror_flag"
11052 || test ! -s conftest.err'
ac1cb8d3
VS
11053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11054 (eval $ac_try) 2>&5
11055 ac_status=$?
11056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11057 (exit $ac_status); }; } &&
11058 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11060 (eval $ac_try) 2>&5
11061 ac_status=$?
11062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11063 (exit $ac_status); }; }; then
11064 ac_compiler_gnu=yes
11065else
11066 echo "$as_me: failed program was:" >&5
11067sed 's/^/| /' conftest.$ac_ext >&5
11068
11069ac_compiler_gnu=no
11070fi
ac1cb8d3 11071rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11072ac_cv_c_compiler_gnu=$ac_compiler_gnu
11073
11074fi
11075echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
11076echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
11077GCC=`test $ac_compiler_gnu = yes && echo yes`
11078ac_test_CFLAGS=${CFLAGS+set}
11079ac_save_CFLAGS=$CFLAGS
11080CFLAGS="-g"
11081echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
11082echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
11083if test "${ac_cv_prog_cc_g+set}" = set; then
11084 echo $ECHO_N "(cached) $ECHO_C" >&6
11085else
11086 cat >conftest.$ac_ext <<_ACEOF
11087/* confdefs.h. */
11088_ACEOF
11089cat confdefs.h >>conftest.$ac_ext
11090cat >>conftest.$ac_ext <<_ACEOF
11091/* end confdefs.h. */
11092
11093int
11094main ()
11095{
11096
11097 ;
11098 return 0;
11099}
11100_ACEOF
11101rm -f conftest.$ac_objext
11102if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11103 (eval $ac_compile) 2>conftest.er1
a848cd7e 11104 ac_status=$?
ac1cb8d3
VS
11105 grep -v '^ *+' conftest.er1 >conftest.err
11106 rm -f conftest.er1
11107 cat conftest.err >&5
a848cd7e
SC
11108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11109 (exit $ac_status); } &&
89be85c2
VS
11110 { ac_try='test -z "$ac_c_werror_flag"
11111 || test ! -s conftest.err'
ac1cb8d3
VS
11112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11113 (eval $ac_try) 2>&5
11114 ac_status=$?
11115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11116 (exit $ac_status); }; } &&
11117 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11119 (eval $ac_try) 2>&5
11120 ac_status=$?
11121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11122 (exit $ac_status); }; }; then
11123 ac_cv_prog_cc_g=yes
11124else
11125 echo "$as_me: failed program was:" >&5
11126sed 's/^/| /' conftest.$ac_ext >&5
11127
11128ac_cv_prog_cc_g=no
11129fi
ac1cb8d3 11130rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11131fi
11132echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
11133echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
11134if test "$ac_test_CFLAGS" = set; then
11135 CFLAGS=$ac_save_CFLAGS
11136elif test $ac_cv_prog_cc_g = yes; then
11137 if test "$GCC" = yes; then
11138 CFLAGS="-g -O2"
11139 else
11140 CFLAGS="-g"
11141 fi
11142else
11143 if test "$GCC" = yes; then
11144 CFLAGS="-O2"
11145 else
11146 CFLAGS=
11147 fi
11148fi
11149echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
11150echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
11151if test "${ac_cv_prog_cc_stdc+set}" = set; then
11152 echo $ECHO_N "(cached) $ECHO_C" >&6
11153else
11154 ac_cv_prog_cc_stdc=no
11155ac_save_CC=$CC
11156cat >conftest.$ac_ext <<_ACEOF
11157/* confdefs.h. */
11158_ACEOF
11159cat confdefs.h >>conftest.$ac_ext
11160cat >>conftest.$ac_ext <<_ACEOF
11161/* end confdefs.h. */
11162#include <stdarg.h>
11163#include <stdio.h>
11164#include <sys/types.h>
11165#include <sys/stat.h>
11166/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
11167struct buf { int x; };
11168FILE * (*rcsopen) (struct buf *, struct stat *, int);
11169static char *e (p, i)
11170 char **p;
11171 int i;
11172{
11173 return p[i];
11174}
11175static char *f (char * (*g) (char **, int), char **p, ...)
11176{
11177 char *s;
11178 va_list v;
11179 va_start (v,p);
11180 s = g (p, va_arg (v,int));
11181 va_end (v);
11182 return s;
11183}
ac1cb8d3
VS
11184
11185/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
11186 function prototypes and stuff, but not '\xHH' hex character constants.
11187 These don't provoke an error unfortunately, instead are silently treated
11188 as 'x'. The following induces an error, until -std1 is added to get
11189 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
11190 array size at least. It's necessary to write '\x00'==0 to get something
11191 that's true only with -std1. */
11192int osf4_cc_array ['\x00' == 0 ? 1 : -1];
11193
a848cd7e
SC
11194int test (int i, double x);
11195struct s1 {int (*f) (int a);};
11196struct s2 {int (*f) (double a);};
11197int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
11198int argc;
11199char **argv;
11200int
11201main ()
11202{
11203return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
11204 ;
11205 return 0;
11206}
11207_ACEOF
11208# Don't try gcc -ansi; that turns off useful extensions and
11209# breaks some systems' header files.
11210# AIX -qlanglvl=ansi
11211# Ultrix and OSF/1 -std1
11212# HP-UX 10.20 and later -Ae
11213# HP-UX older versions -Aa -D_HPUX_SOURCE
11214# SVR4 -Xc -D__EXTENSIONS__
11215for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
11216do
11217 CC="$ac_save_CC $ac_arg"
11218 rm -f conftest.$ac_objext
11219if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11220 (eval $ac_compile) 2>conftest.er1
a848cd7e 11221 ac_status=$?
ac1cb8d3
VS
11222 grep -v '^ *+' conftest.er1 >conftest.err
11223 rm -f conftest.er1
11224 cat conftest.err >&5
a848cd7e
SC
11225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11226 (exit $ac_status); } &&
89be85c2
VS
11227 { ac_try='test -z "$ac_c_werror_flag"
11228 || test ! -s conftest.err'
ac1cb8d3
VS
11229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11230 (eval $ac_try) 2>&5
11231 ac_status=$?
11232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11233 (exit $ac_status); }; } &&
11234 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11236 (eval $ac_try) 2>&5
11237 ac_status=$?
11238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11239 (exit $ac_status); }; }; then
11240 ac_cv_prog_cc_stdc=$ac_arg
11241break
11242else
11243 echo "$as_me: failed program was:" >&5
11244sed 's/^/| /' conftest.$ac_ext >&5
11245
11246fi
ac1cb8d3 11247rm -f conftest.err conftest.$ac_objext
a848cd7e
SC
11248done
11249rm -f conftest.$ac_ext conftest.$ac_objext
11250CC=$ac_save_CC
11251
11252fi
11253
11254case "x$ac_cv_prog_cc_stdc" in
11255 x|xno)
11256 echo "$as_me:$LINENO: result: none needed" >&5
11257echo "${ECHO_T}none needed" >&6 ;;
11258 *)
11259 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
11260echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
11261 CC="$CC $ac_cv_prog_cc_stdc" ;;
11262esac
11263
11264# Some people use a C++ compiler to compile C. Since we use `exit',
11265# in C++ we need to declare it. In case someone uses the same compiler
11266# for both compiling C and C++ we need to have the C++ compiler decide
11267# the declaration of exit, since it's the most demanding environment.
11268cat >conftest.$ac_ext <<_ACEOF
11269#ifndef __cplusplus
11270 choke me
11271#endif
11272_ACEOF
11273rm -f conftest.$ac_objext
11274if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11275 (eval $ac_compile) 2>conftest.er1
a848cd7e 11276 ac_status=$?
ac1cb8d3
VS
11277 grep -v '^ *+' conftest.er1 >conftest.err
11278 rm -f conftest.er1
11279 cat conftest.err >&5
a848cd7e
SC
11280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11281 (exit $ac_status); } &&
89be85c2
VS
11282 { ac_try='test -z "$ac_c_werror_flag"
11283 || test ! -s conftest.err'
ac1cb8d3
VS
11284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11285 (eval $ac_try) 2>&5
11286 ac_status=$?
11287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11288 (exit $ac_status); }; } &&
11289 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11291 (eval $ac_try) 2>&5
11292 ac_status=$?
11293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11294 (exit $ac_status); }; }; then
11295 for ac_declaration in \
ac1cb8d3 11296 '' \
a848cd7e
SC
11297 'extern "C" void std::exit (int) throw (); using std::exit;' \
11298 'extern "C" void std::exit (int); using std::exit;' \
11299 'extern "C" void exit (int) throw ();' \
11300 'extern "C" void exit (int);' \
11301 'void exit (int);'
11302do
11303 cat >conftest.$ac_ext <<_ACEOF
11304/* confdefs.h. */
11305_ACEOF
11306cat confdefs.h >>conftest.$ac_ext
11307cat >>conftest.$ac_ext <<_ACEOF
11308/* end confdefs.h. */
de59c161 11309$ac_declaration
ac1cb8d3 11310#include <stdlib.h>
a848cd7e
SC
11311int
11312main ()
11313{
11314exit (42);
11315 ;
11316 return 0;
11317}
11318_ACEOF
11319rm -f conftest.$ac_objext
11320if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11321 (eval $ac_compile) 2>conftest.er1
a848cd7e 11322 ac_status=$?
ac1cb8d3
VS
11323 grep -v '^ *+' conftest.er1 >conftest.err
11324 rm -f conftest.er1
11325 cat conftest.err >&5
a848cd7e
SC
11326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11327 (exit $ac_status); } &&
89be85c2
VS
11328 { ac_try='test -z "$ac_c_werror_flag"
11329 || test ! -s conftest.err'
ac1cb8d3
VS
11330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11331 (eval $ac_try) 2>&5
11332 ac_status=$?
11333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11334 (exit $ac_status); }; } &&
11335 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11337 (eval $ac_try) 2>&5
11338 ac_status=$?
11339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11340 (exit $ac_status); }; }; then
11341 :
11342else
11343 echo "$as_me: failed program was:" >&5
11344sed 's/^/| /' conftest.$ac_ext >&5
11345
11346continue
11347fi
ac1cb8d3 11348rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11349 cat >conftest.$ac_ext <<_ACEOF
11350/* confdefs.h. */
11351_ACEOF
11352cat confdefs.h >>conftest.$ac_ext
11353cat >>conftest.$ac_ext <<_ACEOF
11354/* end confdefs.h. */
11355$ac_declaration
11356int
11357main ()
11358{
11359exit (42);
11360 ;
11361 return 0;
11362}
11363_ACEOF
11364rm -f conftest.$ac_objext
11365if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11366 (eval $ac_compile) 2>conftest.er1
a848cd7e 11367 ac_status=$?
ac1cb8d3
VS
11368 grep -v '^ *+' conftest.er1 >conftest.err
11369 rm -f conftest.er1
11370 cat conftest.err >&5
a848cd7e
SC
11371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11372 (exit $ac_status); } &&
89be85c2
VS
11373 { ac_try='test -z "$ac_c_werror_flag"
11374 || test ! -s conftest.err'
ac1cb8d3
VS
11375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11376 (eval $ac_try) 2>&5
11377 ac_status=$?
11378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11379 (exit $ac_status); }; } &&
11380 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11382 (eval $ac_try) 2>&5
11383 ac_status=$?
11384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11385 (exit $ac_status); }; }; then
11386 break
11387else
11388 echo "$as_me: failed program was:" >&5
11389sed 's/^/| /' conftest.$ac_ext >&5
11390
11391fi
ac1cb8d3 11392rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11393done
11394rm -f conftest*
11395if test -n "$ac_declaration"; then
11396 echo '#ifdef __cplusplus' >>confdefs.h
11397 echo $ac_declaration >>confdefs.h
11398 echo '#endif' >>confdefs.h
11399fi
11400
11401else
11402 echo "$as_me: failed program was:" >&5
11403sed 's/^/| /' conftest.$ac_ext >&5
11404
11405fi
ac1cb8d3 11406rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11407ac_ext=c
11408ac_cpp='$CPP $CPPFLAGS'
11409ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11410ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11411ac_compiler_gnu=$ac_cv_c_compiler_gnu
11412
11413
95986553
DE
11414ac_ext=c
11415ac_cpp='$CPP $CPPFLAGS'
11416ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11417ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11418ac_compiler_gnu=$ac_cv_c_compiler_gnu
11419
11420echo "$as_me:$LINENO: checking whether we are using the Metrowerks C compiler" >&5
11421echo $ECHO_N "checking whether we are using the Metrowerks C compiler... $ECHO_C" >&6
11422if test "${bakefile_cv_c_compiler_mwerks+set}" = set; then
11423 echo $ECHO_N "(cached) $ECHO_C" >&6
11424else
11425 cat >conftest.$ac_ext <<_ACEOF
11426/* confdefs.h. */
11427_ACEOF
11428cat confdefs.h >>conftest.$ac_ext
11429cat >>conftest.$ac_ext <<_ACEOF
11430/* end confdefs.h. */
11431
11432int
11433main ()
11434{
11435#ifndef __MWERKS__
11436 choke me
11437#endif
11438
11439 ;
11440 return 0;
11441}
11442_ACEOF
11443rm -f conftest.$ac_objext
11444if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11445 (eval $ac_compile) 2>conftest.er1
11446 ac_status=$?
11447 grep -v '^ *+' conftest.er1 >conftest.err
11448 rm -f conftest.er1
11449 cat conftest.err >&5
11450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11451 (exit $ac_status); } &&
89be85c2
VS
11452 { ac_try='test -z "$ac_c_werror_flag"
11453 || test ! -s conftest.err'
95986553
DE
11454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11455 (eval $ac_try) 2>&5
11456 ac_status=$?
11457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11458 (exit $ac_status); }; } &&
11459 { ac_try='test -s conftest.$ac_objext'
11460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11461 (eval $ac_try) 2>&5
11462 ac_status=$?
11463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11464 (exit $ac_status); }; }; then
11465 bakefile_compiler_mwerks=yes
11466else
11467 echo "$as_me: failed program was:" >&5
11468sed 's/^/| /' conftest.$ac_ext >&5
11469
11470bakefile_compiler_mwerks=no
11471fi
11472rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11473 bakefile_cv_c_compiler_mwerks=$bakefile_compiler_mwerks
11474
11475fi
11476echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler_mwerks" >&5
11477echo "${ECHO_T}$bakefile_cv_c_compiler_mwerks" >&6
11478
11479MWCC=`test $bakefile_compiler_mwerks = yes && echo yes`
11480ac_ext=c
11481ac_cpp='$CPP $CPPFLAGS'
11482ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11483ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11484ac_compiler_gnu=$ac_cv_c_compiler_gnu
11485
11486
a848cd7e
SC
11487
11488ac_ext=c
11489ac_cpp='$CPP $CPPFLAGS'
11490ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11491ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11492ac_compiler_gnu=$ac_cv_c_compiler_gnu
11493echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
11494echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
11495# On Suns, sometimes $CPP names a directory.
11496if test -n "$CPP" && test -d "$CPP"; then
11497 CPP=
11498fi
11499if test -z "$CPP"; then
11500 if test "${ac_cv_prog_CPP+set}" = set; then
11501 echo $ECHO_N "(cached) $ECHO_C" >&6
11502else
11503 # Double quotes because CPP needs to be expanded
11504 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
11505 do
11506 ac_preproc_ok=false
11507for ac_c_preproc_warn_flag in '' yes
11508do
11509 # Use a header file that comes with gcc, so configuring glibc
11510 # with a fresh cross-compiler works.
11511 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11512 # <limits.h> exists even on freestanding compilers.
11513 # On the NeXT, cc -E runs the code through the compiler's parser,
11514 # not just through cpp. "Syntax error" is here to catch this case.
11515 cat >conftest.$ac_ext <<_ACEOF
11516/* confdefs.h. */
11517_ACEOF
11518cat confdefs.h >>conftest.$ac_ext
11519cat >>conftest.$ac_ext <<_ACEOF
11520/* end confdefs.h. */
11521#ifdef __STDC__
11522# include <limits.h>
11523#else
11524# include <assert.h>
11525#endif
ac1cb8d3 11526 Syntax error
a848cd7e
SC
11527_ACEOF
11528if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11529 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11530 ac_status=$?
11531 grep -v '^ *+' conftest.er1 >conftest.err
11532 rm -f conftest.er1
11533 cat conftest.err >&5
11534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11535 (exit $ac_status); } >/dev/null; then
11536 if test -s conftest.err; then
11537 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 11538 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
11539 else
11540 ac_cpp_err=
11541 fi
11542else
11543 ac_cpp_err=yes
11544fi
11545if test -z "$ac_cpp_err"; then
11546 :
11547else
11548 echo "$as_me: failed program was:" >&5
11549sed 's/^/| /' conftest.$ac_ext >&5
11550
11551 # Broken: fails on valid input.
11552continue
11553fi
11554rm -f conftest.err conftest.$ac_ext
11555
11556 # OK, works on sane cases. Now check whether non-existent headers
11557 # can be detected and how.
11558 cat >conftest.$ac_ext <<_ACEOF
11559/* confdefs.h. */
11560_ACEOF
11561cat confdefs.h >>conftest.$ac_ext
11562cat >>conftest.$ac_ext <<_ACEOF
11563/* end confdefs.h. */
11564#include <ac_nonexistent.h>
11565_ACEOF
11566if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11567 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11568 ac_status=$?
11569 grep -v '^ *+' conftest.er1 >conftest.err
11570 rm -f conftest.er1
11571 cat conftest.err >&5
11572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11573 (exit $ac_status); } >/dev/null; then
11574 if test -s conftest.err; then
11575 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 11576 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
11577 else
11578 ac_cpp_err=
11579 fi
11580else
11581 ac_cpp_err=yes
11582fi
11583if test -z "$ac_cpp_err"; then
11584 # Broken: success on invalid input.
11585continue
11586else
11587 echo "$as_me: failed program was:" >&5
11588sed 's/^/| /' conftest.$ac_ext >&5
11589
11590 # Passes both tests.
11591ac_preproc_ok=:
11592break
11593fi
11594rm -f conftest.err conftest.$ac_ext
11595
11596done
11597# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11598rm -f conftest.err conftest.$ac_ext
11599if $ac_preproc_ok; then
11600 break
11601fi
11602
11603 done
11604 ac_cv_prog_CPP=$CPP
11605
11606fi
11607 CPP=$ac_cv_prog_CPP
11608else
11609 ac_cv_prog_CPP=$CPP
11610fi
11611echo "$as_me:$LINENO: result: $CPP" >&5
11612echo "${ECHO_T}$CPP" >&6
11613ac_preproc_ok=false
11614for ac_c_preproc_warn_flag in '' yes
11615do
11616 # Use a header file that comes with gcc, so configuring glibc
11617 # with a fresh cross-compiler works.
11618 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11619 # <limits.h> exists even on freestanding compilers.
11620 # On the NeXT, cc -E runs the code through the compiler's parser,
11621 # not just through cpp. "Syntax error" is here to catch this case.
11622 cat >conftest.$ac_ext <<_ACEOF
11623/* confdefs.h. */
11624_ACEOF
11625cat confdefs.h >>conftest.$ac_ext
11626cat >>conftest.$ac_ext <<_ACEOF
11627/* end confdefs.h. */
11628#ifdef __STDC__
11629# include <limits.h>
11630#else
11631# include <assert.h>
11632#endif
ac1cb8d3 11633 Syntax error
a848cd7e
SC
11634_ACEOF
11635if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11636 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11637 ac_status=$?
11638 grep -v '^ *+' conftest.er1 >conftest.err
11639 rm -f conftest.er1
11640 cat conftest.err >&5
11641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11642 (exit $ac_status); } >/dev/null; then
11643 if test -s conftest.err; then
11644 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 11645 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
11646 else
11647 ac_cpp_err=
11648 fi
11649else
11650 ac_cpp_err=yes
11651fi
11652if test -z "$ac_cpp_err"; then
11653 :
11654else
11655 echo "$as_me: failed program was:" >&5
11656sed 's/^/| /' conftest.$ac_ext >&5
11657
11658 # Broken: fails on valid input.
11659continue
11660fi
11661rm -f conftest.err conftest.$ac_ext
11662
11663 # OK, works on sane cases. Now check whether non-existent headers
11664 # can be detected and how.
11665 cat >conftest.$ac_ext <<_ACEOF
11666/* confdefs.h. */
11667_ACEOF
11668cat confdefs.h >>conftest.$ac_ext
11669cat >>conftest.$ac_ext <<_ACEOF
11670/* end confdefs.h. */
11671#include <ac_nonexistent.h>
11672_ACEOF
11673if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11674 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11675 ac_status=$?
11676 grep -v '^ *+' conftest.er1 >conftest.err
11677 rm -f conftest.er1
11678 cat conftest.err >&5
11679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11680 (exit $ac_status); } >/dev/null; then
11681 if test -s conftest.err; then
11682 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 11683 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
11684 else
11685 ac_cpp_err=
11686 fi
11687else
11688 ac_cpp_err=yes
11689fi
11690if test -z "$ac_cpp_err"; then
11691 # Broken: success on invalid input.
11692continue
11693else
11694 echo "$as_me: failed program was:" >&5
11695sed 's/^/| /' conftest.$ac_ext >&5
11696
11697 # Passes both tests.
11698ac_preproc_ok=:
11699break
11700fi
11701rm -f conftest.err conftest.$ac_ext
11702
11703done
11704# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11705rm -f conftest.err conftest.$ac_ext
11706if $ac_preproc_ok; then
11707 :
11708else
11709 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
11710See \`config.log' for more details." >&5
11711echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
11712See \`config.log' for more details." >&2;}
11713 { (exit 1); exit 1; }; }
11714fi
11715
11716ac_ext=c
11717ac_cpp='$CPP $CPPFLAGS'
11718ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11719ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11720ac_compiler_gnu=$ac_cv_c_compiler_gnu
11721
11722
11723echo "$as_me:$LINENO: checking for egrep" >&5
11724echo $ECHO_N "checking for egrep... $ECHO_C" >&6
11725if test "${ac_cv_prog_egrep+set}" = set; then
11726 echo $ECHO_N "(cached) $ECHO_C" >&6
11727else
11728 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
11729 then ac_cv_prog_egrep='grep -E'
11730 else ac_cv_prog_egrep='egrep'
11731 fi
11732fi
11733echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
11734echo "${ECHO_T}$ac_cv_prog_egrep" >&6
11735 EGREP=$ac_cv_prog_egrep
11736
11737
11738if test $ac_cv_c_compiler_gnu = yes; then
11739 echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
11740echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
11741if test "${ac_cv_prog_gcc_traditional+set}" = set; then
11742 echo $ECHO_N "(cached) $ECHO_C" >&6
11743else
11744 ac_pattern="Autoconf.*'x'"
11745 cat >conftest.$ac_ext <<_ACEOF
11746/* confdefs.h. */
11747_ACEOF
11748cat confdefs.h >>conftest.$ac_ext
11749cat >>conftest.$ac_ext <<_ACEOF
11750/* end confdefs.h. */
11751#include <sgtty.h>
11752Autoconf TIOCGETP
11753_ACEOF
11754if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11755 $EGREP "$ac_pattern" >/dev/null 2>&1; then
11756 ac_cv_prog_gcc_traditional=yes
11757else
11758 ac_cv_prog_gcc_traditional=no
11759fi
11760rm -f conftest*
11761
11762
11763 if test $ac_cv_prog_gcc_traditional = no; then
11764 cat >conftest.$ac_ext <<_ACEOF
11765/* confdefs.h. */
11766_ACEOF
11767cat confdefs.h >>conftest.$ac_ext
11768cat >>conftest.$ac_ext <<_ACEOF
11769/* end confdefs.h. */
11770#include <termio.h>
11771Autoconf TCGETA
11772_ACEOF
11773if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11774 $EGREP "$ac_pattern" >/dev/null 2>&1; then
11775 ac_cv_prog_gcc_traditional=yes
11776fi
11777rm -f conftest*
11778
11779 fi
11780fi
11781echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
11782echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
11783 if test $ac_cv_prog_gcc_traditional = yes; then
11784 CC="$CC -traditional"
11785 fi
11786fi
11787
11788
11789
11790
11791ac_ext=cc
11792ac_cpp='$CXXCPP $CPPFLAGS'
11793ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11794ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11795ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11796
11797
11798CXXFLAGS=${CXXFLAGS:=}
11799ac_ext=cc
11800ac_cpp='$CXXCPP $CPPFLAGS'
11801ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11802ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11803ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11804if test -n "$ac_tool_prefix"; then
11805 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
11806 do
11807 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11808set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11809echo "$as_me:$LINENO: checking for $ac_word" >&5
11810echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11811if test "${ac_cv_prog_CXX+set}" = set; then
11812 echo $ECHO_N "(cached) $ECHO_C" >&6
11813else
11814 if test -n "$CXX"; then
11815 ac_cv_prog_CXX="$CXX" # Let the user override the test.
11816else
11817as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11818for as_dir in $PATH
11819do
11820 IFS=$as_save_IFS
11821 test -z "$as_dir" && as_dir=.
11822 for ac_exec_ext in '' $ac_executable_extensions; do
11823 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11824 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
11825 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11826 break 2
11827 fi
11828done
11829done
11830
11831fi
11832fi
11833CXX=$ac_cv_prog_CXX
11834if test -n "$CXX"; then
11835 echo "$as_me:$LINENO: result: $CXX" >&5
11836echo "${ECHO_T}$CXX" >&6
11837else
11838 echo "$as_me:$LINENO: result: no" >&5
11839echo "${ECHO_T}no" >&6
11840fi
11841
11842 test -n "$CXX" && break
11843 done
11844fi
11845if test -z "$CXX"; then
11846 ac_ct_CXX=$CXX
11847 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
11848do
11849 # Extract the first word of "$ac_prog", so it can be a program name with args.
11850set dummy $ac_prog; ac_word=$2
11851echo "$as_me:$LINENO: checking for $ac_word" >&5
11852echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11853if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
11854 echo $ECHO_N "(cached) $ECHO_C" >&6
11855else
11856 if test -n "$ac_ct_CXX"; then
11857 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
11858else
11859as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11860for as_dir in $PATH
11861do
11862 IFS=$as_save_IFS
11863 test -z "$as_dir" && as_dir=.
11864 for ac_exec_ext in '' $ac_executable_extensions; do
11865 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11866 ac_cv_prog_ac_ct_CXX="$ac_prog"
11867 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11868 break 2
11869 fi
11870done
11871done
11872
11873fi
11874fi
11875ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
11876if test -n "$ac_ct_CXX"; then
11877 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
11878echo "${ECHO_T}$ac_ct_CXX" >&6
11879else
11880 echo "$as_me:$LINENO: result: no" >&5
11881echo "${ECHO_T}no" >&6
11882fi
11883
11884 test -n "$ac_ct_CXX" && break
11885done
11886test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
11887
11888 CXX=$ac_ct_CXX
11889fi
11890
11891
11892# Provide some information about the compiler.
11893echo "$as_me:$LINENO:" \
11894 "checking for C++ compiler version" >&5
11895ac_compiler=`set X $ac_compile; echo $2`
11896{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
11897 (eval $ac_compiler --version </dev/null >&5) 2>&5
11898 ac_status=$?
11899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11900 (exit $ac_status); }
11901{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
11902 (eval $ac_compiler -v </dev/null >&5) 2>&5
11903 ac_status=$?
11904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11905 (exit $ac_status); }
11906{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
11907 (eval $ac_compiler -V </dev/null >&5) 2>&5
11908 ac_status=$?
11909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11910 (exit $ac_status); }
11911
11912echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
11913echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
11914if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
11915 echo $ECHO_N "(cached) $ECHO_C" >&6
11916else
11917 cat >conftest.$ac_ext <<_ACEOF
11918/* confdefs.h. */
11919_ACEOF
11920cat confdefs.h >>conftest.$ac_ext
11921cat >>conftest.$ac_ext <<_ACEOF
11922/* end confdefs.h. */
11923
11924int
11925main ()
11926{
11927#ifndef __GNUC__
11928 choke me
11929#endif
11930
11931 ;
11932 return 0;
11933}
11934_ACEOF
11935rm -f conftest.$ac_objext
11936if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11937 (eval $ac_compile) 2>conftest.er1
a848cd7e 11938 ac_status=$?
ac1cb8d3
VS
11939 grep -v '^ *+' conftest.er1 >conftest.err
11940 rm -f conftest.er1
11941 cat conftest.err >&5
a848cd7e
SC
11942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11943 (exit $ac_status); } &&
89be85c2
VS
11944 { ac_try='test -z "$ac_cxx_werror_flag"
11945 || test ! -s conftest.err'
ac1cb8d3
VS
11946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11947 (eval $ac_try) 2>&5
11948 ac_status=$?
11949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11950 (exit $ac_status); }; } &&
11951 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11953 (eval $ac_try) 2>&5
11954 ac_status=$?
11955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11956 (exit $ac_status); }; }; then
11957 ac_compiler_gnu=yes
11958else
11959 echo "$as_me: failed program was:" >&5
11960sed 's/^/| /' conftest.$ac_ext >&5
11961
11962ac_compiler_gnu=no
11963fi
ac1cb8d3 11964rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11965ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
11966
11967fi
11968echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
11969echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
11970GXX=`test $ac_compiler_gnu = yes && echo yes`
11971ac_test_CXXFLAGS=${CXXFLAGS+set}
11972ac_save_CXXFLAGS=$CXXFLAGS
11973CXXFLAGS="-g"
11974echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
11975echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
11976if test "${ac_cv_prog_cxx_g+set}" = set; then
11977 echo $ECHO_N "(cached) $ECHO_C" >&6
11978else
11979 cat >conftest.$ac_ext <<_ACEOF
11980/* confdefs.h. */
11981_ACEOF
11982cat confdefs.h >>conftest.$ac_ext
11983cat >>conftest.$ac_ext <<_ACEOF
11984/* end confdefs.h. */
11985
11986int
11987main ()
11988{
11989
11990 ;
11991 return 0;
11992}
11993_ACEOF
11994rm -f conftest.$ac_objext
11995if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11996 (eval $ac_compile) 2>conftest.er1
a848cd7e 11997 ac_status=$?
ac1cb8d3
VS
11998 grep -v '^ *+' conftest.er1 >conftest.err
11999 rm -f conftest.er1
12000 cat conftest.err >&5
a848cd7e
SC
12001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12002 (exit $ac_status); } &&
89be85c2
VS
12003 { ac_try='test -z "$ac_cxx_werror_flag"
12004 || test ! -s conftest.err'
ac1cb8d3
VS
12005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12006 (eval $ac_try) 2>&5
12007 ac_status=$?
12008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12009 (exit $ac_status); }; } &&
12010 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12012 (eval $ac_try) 2>&5
12013 ac_status=$?
12014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12015 (exit $ac_status); }; }; then
12016 ac_cv_prog_cxx_g=yes
12017else
12018 echo "$as_me: failed program was:" >&5
12019sed 's/^/| /' conftest.$ac_ext >&5
12020
12021ac_cv_prog_cxx_g=no
12022fi
ac1cb8d3 12023rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12024fi
12025echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
12026echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
12027if test "$ac_test_CXXFLAGS" = set; then
12028 CXXFLAGS=$ac_save_CXXFLAGS
12029elif test $ac_cv_prog_cxx_g = yes; then
12030 if test "$GXX" = yes; then
12031 CXXFLAGS="-g -O2"
12032 else
12033 CXXFLAGS="-g"
12034 fi
12035else
12036 if test "$GXX" = yes; then
12037 CXXFLAGS="-O2"
12038 else
12039 CXXFLAGS=
12040 fi
12041fi
12042for ac_declaration in \
ac1cb8d3 12043 '' \
a848cd7e
SC
12044 'extern "C" void std::exit (int) throw (); using std::exit;' \
12045 'extern "C" void std::exit (int); using std::exit;' \
12046 'extern "C" void exit (int) throw ();' \
12047 'extern "C" void exit (int);' \
12048 'void exit (int);'
12049do
12050 cat >conftest.$ac_ext <<_ACEOF
12051/* confdefs.h. */
12052_ACEOF
12053cat confdefs.h >>conftest.$ac_ext
12054cat >>conftest.$ac_ext <<_ACEOF
12055/* end confdefs.h. */
de59c161 12056$ac_declaration
ac1cb8d3 12057#include <stdlib.h>
a848cd7e
SC
12058int
12059main ()
12060{
12061exit (42);
12062 ;
12063 return 0;
12064}
12065_ACEOF
12066rm -f conftest.$ac_objext
12067if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12068 (eval $ac_compile) 2>conftest.er1
a848cd7e 12069 ac_status=$?
ac1cb8d3
VS
12070 grep -v '^ *+' conftest.er1 >conftest.err
12071 rm -f conftest.er1
12072 cat conftest.err >&5
a848cd7e
SC
12073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12074 (exit $ac_status); } &&
89be85c2
VS
12075 { ac_try='test -z "$ac_cxx_werror_flag"
12076 || test ! -s conftest.err'
ac1cb8d3
VS
12077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12078 (eval $ac_try) 2>&5
12079 ac_status=$?
12080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12081 (exit $ac_status); }; } &&
12082 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12084 (eval $ac_try) 2>&5
12085 ac_status=$?
12086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12087 (exit $ac_status); }; }; then
12088 :
12089else
12090 echo "$as_me: failed program was:" >&5
12091sed 's/^/| /' conftest.$ac_ext >&5
12092
12093continue
12094fi
ac1cb8d3 12095rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12096 cat >conftest.$ac_ext <<_ACEOF
12097/* confdefs.h. */
12098_ACEOF
12099cat confdefs.h >>conftest.$ac_ext
12100cat >>conftest.$ac_ext <<_ACEOF
12101/* end confdefs.h. */
12102$ac_declaration
12103int
12104main ()
12105{
12106exit (42);
12107 ;
12108 return 0;
12109}
12110_ACEOF
12111rm -f conftest.$ac_objext
12112if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12113 (eval $ac_compile) 2>conftest.er1
a848cd7e 12114 ac_status=$?
ac1cb8d3
VS
12115 grep -v '^ *+' conftest.er1 >conftest.err
12116 rm -f conftest.er1
12117 cat conftest.err >&5
a848cd7e
SC
12118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12119 (exit $ac_status); } &&
89be85c2
VS
12120 { ac_try='test -z "$ac_cxx_werror_flag"
12121 || test ! -s conftest.err'
ac1cb8d3
VS
12122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12123 (eval $ac_try) 2>&5
12124 ac_status=$?
12125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12126 (exit $ac_status); }; } &&
12127 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12129 (eval $ac_try) 2>&5
12130 ac_status=$?
12131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12132 (exit $ac_status); }; }; then
12133 break
12134else
12135 echo "$as_me: failed program was:" >&5
12136sed 's/^/| /' conftest.$ac_ext >&5
12137
12138fi
ac1cb8d3 12139rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12140done
12141rm -f conftest*
12142if test -n "$ac_declaration"; then
12143 echo '#ifdef __cplusplus' >>confdefs.h
12144 echo $ac_declaration >>confdefs.h
12145 echo '#endif' >>confdefs.h
12146fi
12147
12148ac_ext=cc
12149ac_cpp='$CXXCPP $CPPFLAGS'
12150ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12151ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12152ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12153
12154
95986553
DE
12155ac_ext=cc
12156ac_cpp='$CXXCPP $CPPFLAGS'
12157ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12158ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12159ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12160
12161echo "$as_me:$LINENO: checking whether we are using the Metrowerks C++ compiler" >&5
12162echo $ECHO_N "checking whether we are using the Metrowerks C++ compiler... $ECHO_C" >&6
12163if test "${bakefile_cv_cxx_compiler_mwerks+set}" = set; then
12164 echo $ECHO_N "(cached) $ECHO_C" >&6
12165else
12166 cat >conftest.$ac_ext <<_ACEOF
12167/* confdefs.h. */
12168_ACEOF
12169cat confdefs.h >>conftest.$ac_ext
12170cat >>conftest.$ac_ext <<_ACEOF
12171/* end confdefs.h. */
12172
12173int
12174main ()
12175{
12176#ifndef __MWERKS__
12177 choke me
12178#endif
12179
12180 ;
12181 return 0;
12182}
12183_ACEOF
12184rm -f conftest.$ac_objext
12185if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12186 (eval $ac_compile) 2>conftest.er1
12187 ac_status=$?
12188 grep -v '^ *+' conftest.er1 >conftest.err
12189 rm -f conftest.er1
12190 cat conftest.err >&5
12191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12192 (exit $ac_status); } &&
89be85c2
VS
12193 { ac_try='test -z "$ac_cxx_werror_flag"
12194 || test ! -s conftest.err'
95986553
DE
12195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12196 (eval $ac_try) 2>&5
12197 ac_status=$?
12198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12199 (exit $ac_status); }; } &&
12200 { ac_try='test -s conftest.$ac_objext'
12201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12202 (eval $ac_try) 2>&5
12203 ac_status=$?
12204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12205 (exit $ac_status); }; }; then
12206 bakefile_compiler_mwerks=yes
12207else
12208 echo "$as_me: failed program was:" >&5
12209sed 's/^/| /' conftest.$ac_ext >&5
12210
12211bakefile_compiler_mwerks=no
12212fi
12213rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12214 bakefile_cv_cxx_compiler_mwerks=$bakefile_compiler_mwerks
12215
12216fi
12217echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler_mwerks" >&5
12218echo "${ECHO_T}$bakefile_cv_cxx_compiler_mwerks" >&6
12219
12220MWCXX=`test $bakefile_compiler_mwerks = yes && echo yes`
12221ac_ext=cc
12222ac_cpp='$CXXCPP $CPPFLAGS'
12223ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12224ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12225ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12226
12227
12228
a848cd7e
SC
12229ac_ext=c
12230ac_cpp='$CPP $CPPFLAGS'
12231ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12232ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12233ac_compiler_gnu=$ac_cv_c_compiler_gnu
12234
12235
a848cd7e
SC
12236if test -n "$ac_tool_prefix"; then
12237 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
12238set dummy ${ac_tool_prefix}ranlib; ac_word=$2
12239echo "$as_me:$LINENO: checking for $ac_word" >&5
12240echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12241if test "${ac_cv_prog_RANLIB+set}" = set; then
12242 echo $ECHO_N "(cached) $ECHO_C" >&6
12243else
12244 if test -n "$RANLIB"; then
12245 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
12246else
12247as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12248for as_dir in $PATH
12249do
12250 IFS=$as_save_IFS
12251 test -z "$as_dir" && as_dir=.
12252 for ac_exec_ext in '' $ac_executable_extensions; do
12253 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12254 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
12255 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12256 break 2
12257 fi
12258done
12259done
12260
12261fi
12262fi
12263RANLIB=$ac_cv_prog_RANLIB
12264if test -n "$RANLIB"; then
12265 echo "$as_me:$LINENO: result: $RANLIB" >&5
12266echo "${ECHO_T}$RANLIB" >&6
12267else
12268 echo "$as_me:$LINENO: result: no" >&5
12269echo "${ECHO_T}no" >&6
12270fi
12271
12272fi
12273if test -z "$ac_cv_prog_RANLIB"; then
12274 ac_ct_RANLIB=$RANLIB
12275 # Extract the first word of "ranlib", so it can be a program name with args.
12276set dummy ranlib; ac_word=$2
12277echo "$as_me:$LINENO: checking for $ac_word" >&5
12278echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12279if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
12280 echo $ECHO_N "(cached) $ECHO_C" >&6
12281else
12282 if test -n "$ac_ct_RANLIB"; then
12283 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
12284else
12285as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12286for as_dir in $PATH
12287do
12288 IFS=$as_save_IFS
12289 test -z "$as_dir" && as_dir=.
12290 for ac_exec_ext in '' $ac_executable_extensions; do
12291 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12292 ac_cv_prog_ac_ct_RANLIB="ranlib"
12293 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12294 break 2
12295 fi
12296done
12297done
12298
12299 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
12300fi
12301fi
12302ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
12303if test -n "$ac_ct_RANLIB"; then
12304 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
12305echo "${ECHO_T}$ac_ct_RANLIB" >&6
12306else
12307 echo "$as_me:$LINENO: result: no" >&5
12308echo "${ECHO_T}no" >&6
12309fi
12310
12311 RANLIB=$ac_ct_RANLIB
12312else
12313 RANLIB="$ac_cv_prog_RANLIB"
12314fi
12315
12316
12317# Extract the first word of "ar", so it can be a program name with args.
12318set dummy ar; ac_word=$2
12319echo "$as_me:$LINENO: checking for $ac_word" >&5
12320echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12321if test "${ac_cv_prog_AR+set}" = set; then
12322 echo $ECHO_N "(cached) $ECHO_C" >&6
12323else
12324 if test -n "$AR"; then
12325 ac_cv_prog_AR="$AR" # Let the user override the test.
12326else
12327as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12328for as_dir in $PATH
12329do
12330 IFS=$as_save_IFS
12331 test -z "$as_dir" && as_dir=.
12332 for ac_exec_ext in '' $ac_executable_extensions; do
12333 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12334 ac_cv_prog_AR="ar"
12335 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12336 break 2
12337 fi
12338done
12339done
12340
12341fi
12342fi
12343AR=$ac_cv_prog_AR
12344if test -n "$AR"; then
12345 echo "$as_me:$LINENO: result: $AR" >&5
12346echo "${ECHO_T}$AR" >&6
12347else
12348 echo "$as_me:$LINENO: result: no" >&5
12349echo "${ECHO_T}no" >&6
12350fi
12351
12352if test "x$AR" = "x" ; then
77ffb593
JS
12353 { { echo "$as_me:$LINENO: error: ar is needed to build wxWidgets" >&5
12354echo "$as_me: error: ar is needed to build wxWidgets" >&2;}
a848cd7e
SC
12355 { (exit 1); exit 1; }; }
12356fi
12357
12358# Find a good install program. We prefer a C program (faster),
12359# so one script is as good as another. But avoid the broken or
12360# incompatible versions:
12361# SysV /etc/install, /usr/sbin/install
12362# SunOS /usr/etc/install
12363# IRIX /sbin/install
12364# AIX /bin/install
12365# AmigaOS /C/install, which installs bootblocks on floppy discs
12366# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
12367# AFS /usr/afsws/bin/install, which mishandles nonexistent args
12368# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
ac1cb8d3 12369# OS/2's system install, which has a completely different semantic
a848cd7e
SC
12370# ./install, which can be erroneously created by make from ./install.sh.
12371echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
12372echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
12373if test -z "$INSTALL"; then
12374if test "${ac_cv_path_install+set}" = set; then
12375 echo $ECHO_N "(cached) $ECHO_C" >&6
12376else
12377 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12378for as_dir in $PATH
12379do
12380 IFS=$as_save_IFS
12381 test -z "$as_dir" && as_dir=.
12382 # Account for people who put trailing slashes in PATH elements.
12383case $as_dir/ in
12384 ./ | .// | /cC/* | \
12385 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
ac1cb8d3 12386 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
a848cd7e
SC
12387 /usr/ucb/* ) ;;
12388 *)
12389 # OSF1 and SCO ODT 3.0 have their own names for install.
12390 # Don't use installbsd from OSF since it installs stuff as root
12391 # by default.
12392 for ac_prog in ginstall scoinst install; do
12393 for ac_exec_ext in '' $ac_executable_extensions; do
ac1cb8d3
VS
12394 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
12395 if test $ac_prog = install &&
12396 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
12397 # AIX install. It has an incompatible calling convention.
12398 :
12399 elif test $ac_prog = install &&
12400 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
12401 # program-specific install script used by HP pwplus--don't use.
12402 :
12403 else
12404 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
12405 break 3
12406 fi
12407 fi
a848cd7e
SC
12408 done
12409 done
12410 ;;
12411esac
12412done
12413
12414
12415fi
12416 if test "${ac_cv_path_install+set}" = set; then
12417 INSTALL=$ac_cv_path_install
12418 else
12419 # As a last resort, use the slow shell script. We don't cache a
12420 # path for INSTALL within a source directory, because that will
12421 # break other packages using the cache if that directory is
12422 # removed, or if the path is relative.
12423 INSTALL=$ac_install_sh
12424 fi
12425fi
12426echo "$as_me:$LINENO: result: $INSTALL" >&5
12427echo "${ECHO_T}$INSTALL" >&6
12428
12429# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
12430# It thinks the first close brace ends the variable substitution.
12431test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
12432
12433test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
12434
12435test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
12436
12437
12438case ${INSTALL} in
12439 /* ) # Absolute
12440 ;;
12441 ?:* ) # Drive letter, considered as absolute.
12442 ;;
12443 *)
12444 INSTALL=`pwd`/${INSTALL} ;;
12445esac
12446
a848cd7e
SC
12447
12448case "${host}" in
12449
12450 powerpc-*-darwin* )
12451 INSTALL_PROGRAM="cp -fp"
12452 INSTALL_DATA="cp -fp"
12453 ;;
12454 *)
12455 ;;
12456esac
12457
12458# Extract the first word of "strip", so it can be a program name with args.
12459set dummy strip; ac_word=$2
12460echo "$as_me:$LINENO: checking for $ac_word" >&5
12461echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12462if test "${ac_cv_prog_STRIP+set}" = set; then
12463 echo $ECHO_N "(cached) $ECHO_C" >&6
12464else
12465 if test -n "$STRIP"; then
12466 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
12467else
12468as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12469for as_dir in $PATH
12470do
12471 IFS=$as_save_IFS
12472 test -z "$as_dir" && as_dir=.
12473 for ac_exec_ext in '' $ac_executable_extensions; do
12474 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12475 ac_cv_prog_STRIP="strip"
12476 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12477 break 2
12478 fi
12479done
12480done
12481
12482 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="true"
12483fi
12484fi
12485STRIP=$ac_cv_prog_STRIP
12486if test -n "$STRIP"; then
12487 echo "$as_me:$LINENO: result: $STRIP" >&5
12488echo "${ECHO_T}$STRIP" >&6
12489else
12490 echo "$as_me:$LINENO: result: no" >&5
12491echo "${ECHO_T}no" >&6
12492fi
12493
12494
12495echo "$as_me:$LINENO: checking if make is GNU make" >&5
12496echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6
12497if test "${wx_cv_prog_makeisgnu+set}" = set; then
12498 echo $ECHO_N "(cached) $ECHO_C" >&6
12499else
12500
12501 if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
12502 egrep -s GNU > /dev/null); then
12503 wx_cv_prog_makeisgnu="yes"
12504 else
12505 wx_cv_prog_makeisgnu="no"
12506 fi
12507
12508fi
12509echo "$as_me:$LINENO: result: $wx_cv_prog_makeisgnu" >&5
12510echo "${ECHO_T}$wx_cv_prog_makeisgnu" >&6
12511
12512if test "x$wx_cv_prog_makeisgnu" = "xyes"; then
12513 IF_GNU_MAKE=""
12514else
12515 IF_GNU_MAKE="#"
12516fi
12517
12518
12519
12520if test "x$wx_cv_prog_makeisgnu" != "xyes"; then
12521echo "$as_me:$LINENO: checking if make supports VPATH" >&5
12522echo $ECHO_N "checking if make supports VPATH... $ECHO_C" >&6
12523if test "${wx_cv_prog_makevpath+set}" = set; then
12524 echo $ECHO_N "(cached) $ECHO_C" >&6
12525else
12526
12527cat - << EOF > confMake
12528check : file
12529 cp \$? \$@
12530 cp \$? final_file
12531EOF
12532
12533if test ! -d sub ; then
12534 mkdir sub
12535fi
12536echo dummy > sub/file
12537${MAKE-make} -f confMake VPATH=sub 2>&5 > /dev/null
12538RESULT=$?
12539rm -f sub/file check final_file confMake
12540rmdir sub
12541if test "$RESULT" = 0; then
12542 wx_cv_prog_makevpath="yes"
12543else
12544 wx_cv_prog_makevpath="no"
12545fi
12546
12547fi
12548echo "$as_me:$LINENO: result: $wx_cv_prog_makevpath" >&5
12549echo "${ECHO_T}$wx_cv_prog_makevpath" >&6
12550
12551if test "x$wx_cv_prog_makevpath" != "xyes"; then
12552{ { echo "$as_me:$LINENO: error:
12553You need a make-utility that is able to use the variable
12554VPATH correctly.
12555If your version of make does not support VPATH correctly,
12556please install GNU-make (possibly as gmake), and start
12557configure with the following command:
12558export MAKE=gmake; ./configure for sh-type shells
12559setenv MAKE gmake; ./configure for csh-type shells
12560Also please do remember to use gmake in this case every time
12561you are trying to compile.
12562" >&5
12563echo "$as_me: error:
12564You need a make-utility that is able to use the variable
12565VPATH correctly.
12566If your version of make does not support VPATH correctly,
12567please install GNU-make (possibly as gmake), and start
12568configure with the following command:
12569export MAKE=gmake; ./configure for sh-type shells
12570setenv MAKE gmake; ./configure for csh-type shells
12571Also please do remember to use gmake in this case every time
12572you are trying to compile.
12573" >&2;}
12574 { (exit 1); exit 1; }; }
12575fi fi
12576echo "$as_me:$LINENO: checking whether ln -s works" >&5
12577echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
12578LN_S=$as_ln_s
12579if test "$LN_S" = "ln -s"; then
12580 echo "$as_me:$LINENO: result: yes" >&5
12581echo "${ECHO_T}yes" >&6
12582else
12583 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
12584echo "${ECHO_T}no, using $LN_S" >&6
12585fi
12586
12587
12588
12589case "${host}" in
12590 *-pc-os2_emx | *-pc-os2-emx )
12591 if test "$wxUSE_MOTIF" = 1 -o "$wxUSE_GTK" = 1 -o "$wxUSE_X11" = 1; then
12592 echo "$as_me:$LINENO: checking for drand48 in -lcExt" >&5
12593echo $ECHO_N "checking for drand48 in -lcExt... $ECHO_C" >&6
12594if test "${ac_cv_lib_cExt_drand48+set}" = set; then
12595 echo $ECHO_N "(cached) $ECHO_C" >&6
12596else
12597 ac_check_lib_save_LIBS=$LIBS
12598LIBS="-lcExt $LIBS"
12599cat >conftest.$ac_ext <<_ACEOF
12600/* confdefs.h. */
12601_ACEOF
12602cat confdefs.h >>conftest.$ac_ext
12603cat >>conftest.$ac_ext <<_ACEOF
12604/* end confdefs.h. */
12605
12606/* Override any gcc2 internal prototype to avoid an error. */
12607#ifdef __cplusplus
12608extern "C"
12609#endif
12610/* We use char because int might match the return type of a gcc2
12611 builtin and then its argument prototype would still apply. */
12612char drand48 ();
12613int
12614main ()
12615{
12616drand48 ();
12617 ;
12618 return 0;
12619}
12620_ACEOF
12621rm -f conftest.$ac_objext conftest$ac_exeext
12622if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 12623 (eval $ac_link) 2>conftest.er1
a848cd7e 12624 ac_status=$?
ac1cb8d3
VS
12625 grep -v '^ *+' conftest.er1 >conftest.err
12626 rm -f conftest.er1
12627 cat conftest.err >&5
a848cd7e
SC
12628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12629 (exit $ac_status); } &&
89be85c2
VS
12630 { ac_try='test -z "$ac_c_werror_flag"
12631 || test ! -s conftest.err'
ac1cb8d3
VS
12632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12633 (eval $ac_try) 2>&5
12634 ac_status=$?
12635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12636 (exit $ac_status); }; } &&
12637 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
12638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12639 (eval $ac_try) 2>&5
12640 ac_status=$?
12641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12642 (exit $ac_status); }; }; then
12643 ac_cv_lib_cExt_drand48=yes
12644else
12645 echo "$as_me: failed program was:" >&5
12646sed 's/^/| /' conftest.$ac_ext >&5
12647
12648ac_cv_lib_cExt_drand48=no
12649fi
ac1cb8d3
VS
12650rm -f conftest.err conftest.$ac_objext \
12651 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
12652LIBS=$ac_check_lib_save_LIBS
12653fi
12654echo "$as_me:$LINENO: result: $ac_cv_lib_cExt_drand48" >&5
12655echo "${ECHO_T}$ac_cv_lib_cExt_drand48" >&6
12656if test $ac_cv_lib_cExt_drand48 = yes; then
12657 LIBS="$LIBS -lcExt"
12658fi
12659
12660 else
12661 RESPROGRAMOBJ="\${top_srcdir}/include/wx/os2/wx.res"
12662 fi
12663 echo "$as_me:$LINENO: checking for gcc version" >&5
12664echo $ECHO_N "checking for gcc version... $ECHO_C" >&6
12665if test "${wx_cv_gccversion+set}" = set; then
12666 echo $ECHO_N "(cached) $ECHO_C" >&6
12667else
12668
12669 cat >conftest.$ac_ext <<_ACEOF
12670/* confdefs.h. */
12671_ACEOF
12672cat confdefs.h >>conftest.$ac_ext
12673cat >>conftest.$ac_ext <<_ACEOF
12674/* end confdefs.h. */
12675
12676int
12677main ()
12678{
12679
12680 #if (__GNUC__ < 3)
12681 #error old gcc
12682 #endif
12683
12684 ;
12685 return 0;
12686}
12687_ACEOF
12688rm -f conftest.$ac_objext
12689if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12690 (eval $ac_compile) 2>conftest.er1
a848cd7e 12691 ac_status=$?
ac1cb8d3
VS
12692 grep -v '^ *+' conftest.er1 >conftest.err
12693 rm -f conftest.er1
12694 cat conftest.err >&5
a848cd7e
SC
12695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12696 (exit $ac_status); } &&
89be85c2
VS
12697 { ac_try='test -z "$ac_c_werror_flag"
12698 || test ! -s conftest.err'
ac1cb8d3
VS
12699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12700 (eval $ac_try) 2>&5
12701 ac_status=$?
12702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12703 (exit $ac_status); }; } &&
12704 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12706 (eval $ac_try) 2>&5
12707 ac_status=$?
12708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12709 (exit $ac_status); }; }; then
12710
12711 cat >conftest.$ac_ext <<_ACEOF
12712/* confdefs.h. */
12713_ACEOF
12714cat confdefs.h >>conftest.$ac_ext
12715cat >>conftest.$ac_ext <<_ACEOF
12716/* end confdefs.h. */
12717
12718int
12719main ()
12720{
12721
12722 #if (__GNUC__==3) && ((__GNUC_MINOR__ < 2) || ((__GNUC_MINOR__==2) && (__GNUC_PATCHLEVEL__<2)))
12723 #error intermediate gcc
12724 #endif
12725
12726 ;
12727 return 0;
12728}
12729_ACEOF
12730rm -f conftest.$ac_objext
12731if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12732 (eval $ac_compile) 2>conftest.er1
a848cd7e 12733 ac_status=$?
ac1cb8d3
VS
12734 grep -v '^ *+' conftest.er1 >conftest.err
12735 rm -f conftest.er1
12736 cat conftest.err >&5
a848cd7e
SC
12737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12738 (exit $ac_status); } &&
89be85c2
VS
12739 { ac_try='test -z "$ac_c_werror_flag"
12740 || test ! -s conftest.err'
ac1cb8d3
VS
12741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12742 (eval $ac_try) 2>&5
12743 ac_status=$?
12744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12745 (exit $ac_status); }; } &&
12746 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12748 (eval $ac_try) 2>&5
12749 ac_status=$?
12750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12751 (exit $ac_status); }; }; then
12752
12753 wx_cv_gccversion=Innotek
12754
12755else
12756 echo "$as_me: failed program was:" >&5
12757sed 's/^/| /' conftest.$ac_ext >&5
12758
12759
12760 wx_cv_gccversion=3
12761
12762
12763fi
ac1cb8d3 12764rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12765
12766else
12767 echo "$as_me: failed program was:" >&5
12768sed 's/^/| /' conftest.$ac_ext >&5
12769
12770
12771 wx_cv_gccversion=2
12772
12773
12774fi
ac1cb8d3 12775rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12776
12777fi
12778echo "$as_me:$LINENO: result: $wx_cv_gccversion" >&5
12779echo "${ECHO_T}$wx_cv_gccversion" >&6
12780 if test "$wx_cv_gccversion" = "2"; then
12781 LIBS="$LIBS -lstdcpp"
12782 LDFLAGS="$LDFLAGS -Zsysv-signals"
12783 else
12784 if test "$wx_cv_gccversion" = "3"; then
12785 LIBS="$LIBS -lstdcxx"
12786 LDFLAGS="$LDFLAGS -Zsysv-signals"
12787 else
12788 LIBS="$LIBS -lstdc++"
12789 fi
12790 fi
12791 if test "$wxUSE_OMF" = "yes"; then
de59c161 12792 LDFLAGS="$LDFLAGS -Zomf -Zlinker /PMTYPE:PM -Zlinker /EXEPACK"
a848cd7e
SC
12793 fi
12794 ;;
12795 *)
12796
12797
12798
12799 ac_ext=cc
12800ac_cpp='$CXXCPP $CPPFLAGS'
12801ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12802ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12803ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12804
12805
95986553 12806 echo "$as_me:$LINENO: checking for strcasecmp() in string.h" >&5
a848cd7e
SC
12807echo $ECHO_N "checking for strcasecmp() in string.h... $ECHO_C" >&6
12808if test "${ac_cv_string_strcasecmp+set}" = set; then
12809 echo $ECHO_N "(cached) $ECHO_C" >&6
12810else
12811
12812 cat >conftest.$ac_ext <<_ACEOF
12813/* confdefs.h. */
12814_ACEOF
12815cat confdefs.h >>conftest.$ac_ext
12816cat >>conftest.$ac_ext <<_ACEOF
12817/* end confdefs.h. */
12818
12819 #include <string.h>
12820
12821int
12822main ()
12823{
12824
12825 strcasecmp("foo", "bar");
12826
12827 ;
12828 return 0;
12829}
12830_ACEOF
12831rm -f conftest.$ac_objext conftest$ac_exeext
12832if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 12833 (eval $ac_link) 2>conftest.er1
a848cd7e 12834 ac_status=$?
ac1cb8d3
VS
12835 grep -v '^ *+' conftest.er1 >conftest.err
12836 rm -f conftest.er1
12837 cat conftest.err >&5
a848cd7e
SC
12838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12839 (exit $ac_status); } &&
89be85c2
VS
12840 { ac_try='test -z "$ac_cxx_werror_flag"
12841 || test ! -s conftest.err'
ac1cb8d3
VS
12842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12843 (eval $ac_try) 2>&5
12844 ac_status=$?
12845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12846 (exit $ac_status); }; } &&
12847 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
12848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12849 (eval $ac_try) 2>&5
12850 ac_status=$?
12851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12852 (exit $ac_status); }; }; then
12853 ac_cv_string_strcasecmp=yes
12854else
12855 echo "$as_me: failed program was:" >&5
12856sed 's/^/| /' conftest.$ac_ext >&5
12857
12858ac_cv_string_strcasecmp=no
12859
12860fi
ac1cb8d3
VS
12861rm -f conftest.err conftest.$ac_objext \
12862 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
12863
12864fi
12865echo "$as_me:$LINENO: result: $ac_cv_string_strcasecmp" >&5
12866echo "${ECHO_T}$ac_cv_string_strcasecmp" >&6
12867
12868 if test x"$ac_cv_string_strcasecmp" = "xyes"; then
12869 cat >>confdefs.h <<\_ACEOF
12870#define HAVE_STRCASECMP_IN_STRING_H 1
12871_ACEOF
12872
12873 else
12874 echo "$as_me:$LINENO: checking for strcasecmp() in strings.h" >&5
12875echo $ECHO_N "checking for strcasecmp() in strings.h... $ECHO_C" >&6
12876if test "${ac_cv_strings_strcasecmp+set}" = set; then
12877 echo $ECHO_N "(cached) $ECHO_C" >&6
12878else
12879
12880 cat >conftest.$ac_ext <<_ACEOF
12881/* confdefs.h. */
12882_ACEOF
12883cat confdefs.h >>conftest.$ac_ext
12884cat >>conftest.$ac_ext <<_ACEOF
12885/* end confdefs.h. */
12886
12887 #include <strings.h>
12888
12889int
12890main ()
12891{
12892
12893 strcasecmp("foo", "bar");
12894
12895 ;
12896 return 0;
12897}
12898_ACEOF
12899rm -f conftest.$ac_objext conftest$ac_exeext
12900if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 12901 (eval $ac_link) 2>conftest.er1
a848cd7e 12902 ac_status=$?
ac1cb8d3
VS
12903 grep -v '^ *+' conftest.er1 >conftest.err
12904 rm -f conftest.er1
12905 cat conftest.err >&5
a848cd7e
SC
12906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12907 (exit $ac_status); } &&
89be85c2
VS
12908 { ac_try='test -z "$ac_cxx_werror_flag"
12909 || test ! -s conftest.err'
ac1cb8d3
VS
12910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12911 (eval $ac_try) 2>&5
12912 ac_status=$?
12913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12914 (exit $ac_status); }; } &&
12915 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
12916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12917 (eval $ac_try) 2>&5
12918 ac_status=$?
12919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12920 (exit $ac_status); }; }; then
12921 ac_cv_strings_strcasecmp=yes
12922else
12923 echo "$as_me: failed program was:" >&5
12924sed 's/^/| /' conftest.$ac_ext >&5
12925
12926ac_cv_strings_strcasecmp=no
12927
12928fi
ac1cb8d3
VS
12929rm -f conftest.err conftest.$ac_objext \
12930 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
12931
12932fi
12933echo "$as_me:$LINENO: result: $ac_cv_strings_strcasecmp" >&5
12934echo "${ECHO_T}$ac_cv_strings_strcasecmp" >&6
12935
0c3c69fc 12936 if test x"$ac_cv_strings_strcasecmp" = "xyes"; then
a848cd7e
SC
12937 cat >>confdefs.h <<\_ACEOF
12938#define HAVE_STRCASECMP_IN_STRINGS_H 1
12939_ACEOF
12940
12941 else
12942 { { echo "$as_me:$LINENO: error: No case-insensitive string comparison function found." >&5
12943echo "$as_me: error: No case-insensitive string comparison function found." >&2;}
12944 { (exit 1); exit 1; }; }
12945 fi
12946 fi
12947
12948 ac_ext=c
12949ac_cpp='$CPP $CPPFLAGS'
12950ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12951ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12952ac_compiler_gnu=$ac_cv_c_compiler_gnu
12953
12954 ;;
12955esac
12956
12957
12958echo "$as_me:$LINENO: checking for ANSI C header files" >&5
12959echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
12960if test "${ac_cv_header_stdc+set}" = set; then
12961 echo $ECHO_N "(cached) $ECHO_C" >&6
12962else
12963 cat >conftest.$ac_ext <<_ACEOF
12964/* confdefs.h. */
12965_ACEOF
12966cat confdefs.h >>conftest.$ac_ext
12967cat >>conftest.$ac_ext <<_ACEOF
12968/* end confdefs.h. */
12969#include <stdlib.h>
12970#include <stdarg.h>
12971#include <string.h>
12972#include <float.h>
12973
12974int
12975main ()
12976{
12977
12978 ;
12979 return 0;
12980}
12981_ACEOF
12982rm -f conftest.$ac_objext
12983if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12984 (eval $ac_compile) 2>conftest.er1
a848cd7e 12985 ac_status=$?
ac1cb8d3
VS
12986 grep -v '^ *+' conftest.er1 >conftest.err
12987 rm -f conftest.er1
12988 cat conftest.err >&5
a848cd7e
SC
12989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12990 (exit $ac_status); } &&
89be85c2
VS
12991 { ac_try='test -z "$ac_c_werror_flag"
12992 || test ! -s conftest.err'
ac1cb8d3
VS
12993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12994 (eval $ac_try) 2>&5
12995 ac_status=$?
12996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12997 (exit $ac_status); }; } &&
12998 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13000 (eval $ac_try) 2>&5
13001 ac_status=$?
13002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13003 (exit $ac_status); }; }; then
13004 ac_cv_header_stdc=yes
13005else
13006 echo "$as_me: failed program was:" >&5
13007sed 's/^/| /' conftest.$ac_ext >&5
13008
13009ac_cv_header_stdc=no
13010fi
ac1cb8d3 13011rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
13012
13013if test $ac_cv_header_stdc = yes; then
13014 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
13015 cat >conftest.$ac_ext <<_ACEOF
13016/* confdefs.h. */
13017_ACEOF
13018cat confdefs.h >>conftest.$ac_ext
13019cat >>conftest.$ac_ext <<_ACEOF
13020/* end confdefs.h. */
13021#include <string.h>
13022
13023_ACEOF
13024if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13025 $EGREP "memchr" >/dev/null 2>&1; then
13026 :
13027else
13028 ac_cv_header_stdc=no
13029fi
13030rm -f conftest*
13031
13032fi
13033
13034if test $ac_cv_header_stdc = yes; then
13035 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
13036 cat >conftest.$ac_ext <<_ACEOF
13037/* confdefs.h. */
13038_ACEOF
13039cat confdefs.h >>conftest.$ac_ext
13040cat >>conftest.$ac_ext <<_ACEOF
13041/* end confdefs.h. */
13042#include <stdlib.h>
13043
13044_ACEOF
13045if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13046 $EGREP "free" >/dev/null 2>&1; then
13047 :
13048else
13049 ac_cv_header_stdc=no
13050fi
13051rm -f conftest*
13052
13053fi
13054
13055if test $ac_cv_header_stdc = yes; then
13056 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
13057 if test "$cross_compiling" = yes; then
13058 :
13059else
13060 cat >conftest.$ac_ext <<_ACEOF
13061/* confdefs.h. */
13062_ACEOF
13063cat confdefs.h >>conftest.$ac_ext
13064cat >>conftest.$ac_ext <<_ACEOF
13065/* end confdefs.h. */
13066#include <ctype.h>
13067#if ((' ' & 0x0FF) == 0x020)
13068# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
13069# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
13070#else
13071# define ISLOWER(c) \
ac1cb8d3
VS
13072 (('a' <= (c) && (c) <= 'i') \
13073 || ('j' <= (c) && (c) <= 'r') \
13074 || ('s' <= (c) && (c) <= 'z'))
a848cd7e
SC
13075# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
13076#endif
13077
13078#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
13079int
13080main ()
13081{
13082 int i;
13083 for (i = 0; i < 256; i++)
13084 if (XOR (islower (i), ISLOWER (i))
ac1cb8d3 13085 || toupper (i) != TOUPPER (i))
a848cd7e
SC
13086 exit(2);
13087 exit (0);
13088}
13089_ACEOF
13090rm -f conftest$ac_exeext
13091if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13092 (eval $ac_link) 2>&5
13093 ac_status=$?
13094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13095 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13097 (eval $ac_try) 2>&5
13098 ac_status=$?
13099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13100 (exit $ac_status); }; }; then
13101 :
13102else
13103 echo "$as_me: program exited with status $ac_status" >&5
13104echo "$as_me: failed program was:" >&5
13105sed 's/^/| /' conftest.$ac_ext >&5
13106
13107( exit $ac_status )
13108ac_cv_header_stdc=no
13109fi
ac1cb8d3 13110rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
13111fi
13112fi
13113fi
13114echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
13115echo "${ECHO_T}$ac_cv_header_stdc" >&6
13116if test $ac_cv_header_stdc = yes; then
13117
13118cat >>confdefs.h <<\_ACEOF
13119#define STDC_HEADERS 1
13120_ACEOF
13121
13122fi
13123
13124# On IRIX 5.3, sys/types and inttypes.h are conflicting.
13125
13126
13127
13128
13129
13130
13131
13132
13133
13134for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
ac1cb8d3 13135 inttypes.h stdint.h unistd.h
a848cd7e
SC
13136do
13137as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13138echo "$as_me:$LINENO: checking for $ac_header" >&5
13139echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13140if eval "test \"\${$as_ac_Header+set}\" = set"; then
13141 echo $ECHO_N "(cached) $ECHO_C" >&6
13142else
13143 cat >conftest.$ac_ext <<_ACEOF
13144/* confdefs.h. */
13145_ACEOF
13146cat confdefs.h >>conftest.$ac_ext
13147cat >>conftest.$ac_ext <<_ACEOF
13148/* end confdefs.h. */
13149$ac_includes_default
13150
13151#include <$ac_header>
13152_ACEOF
13153rm -f conftest.$ac_objext
13154if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 13155 (eval $ac_compile) 2>conftest.er1
a848cd7e 13156 ac_status=$?
ac1cb8d3
VS
13157 grep -v '^ *+' conftest.er1 >conftest.err
13158 rm -f conftest.er1
13159 cat conftest.err >&5
a848cd7e
SC
13160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13161 (exit $ac_status); } &&
89be85c2
VS
13162 { ac_try='test -z "$ac_c_werror_flag"
13163 || test ! -s conftest.err'
ac1cb8d3
VS
13164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13165 (eval $ac_try) 2>&5
13166 ac_status=$?
13167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13168 (exit $ac_status); }; } &&
13169 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
13170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13171 (eval $ac_try) 2>&5
13172 ac_status=$?
13173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13174 (exit $ac_status); }; }; then
13175 eval "$as_ac_Header=yes"
13176else
13177 echo "$as_me: failed program was:" >&5
13178sed 's/^/| /' conftest.$ac_ext >&5
13179
13180eval "$as_ac_Header=no"
13181fi
ac1cb8d3 13182rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
13183fi
13184echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13185echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13186if test `eval echo '${'$as_ac_Header'}'` = yes; then
13187 cat >>confdefs.h <<_ACEOF
13188#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13189_ACEOF
13190
13191fi
13192
13193done
13194
13195
13196
13197for ac_header in stdlib.h
13198do
13199as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13200if eval "test \"\${$as_ac_Header+set}\" = set"; then
13201 echo "$as_me:$LINENO: checking for $ac_header" >&5
13202echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13203if eval "test \"\${$as_ac_Header+set}\" = set"; then
13204 echo $ECHO_N "(cached) $ECHO_C" >&6
13205fi
13206echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13207echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13208else
13209 # Is the header compilable?
13210echo "$as_me:$LINENO: checking $ac_header usability" >&5
13211echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13212cat >conftest.$ac_ext <<_ACEOF
13213/* confdefs.h. */
13214_ACEOF
13215cat confdefs.h >>conftest.$ac_ext
13216cat >>conftest.$ac_ext <<_ACEOF
13217/* end confdefs.h. */
13218$ac_includes_default
13219#include <$ac_header>
13220_ACEOF
13221rm -f conftest.$ac_objext
13222if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 13223 (eval $ac_compile) 2>conftest.er1
a848cd7e 13224 ac_status=$?
ac1cb8d3
VS
13225 grep -v '^ *+' conftest.er1 >conftest.err
13226 rm -f conftest.er1
13227 cat conftest.err >&5
a848cd7e
SC
13228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13229 (exit $ac_status); } &&
89be85c2
VS
13230 { ac_try='test -z "$ac_c_werror_flag"
13231 || test ! -s conftest.err'
ac1cb8d3
VS
13232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13233 (eval $ac_try) 2>&5
13234 ac_status=$?
13235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13236 (exit $ac_status); }; } &&
13237 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
13238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13239 (eval $ac_try) 2>&5
13240 ac_status=$?
13241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13242 (exit $ac_status); }; }; then
13243 ac_header_compiler=yes
13244else
13245 echo "$as_me: failed program was:" >&5
13246sed 's/^/| /' conftest.$ac_ext >&5
13247
13248ac_header_compiler=no
13249fi
ac1cb8d3 13250rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
13251echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13252echo "${ECHO_T}$ac_header_compiler" >&6
13253
13254# Is the header present?
13255echo "$as_me:$LINENO: checking $ac_header presence" >&5
13256echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13257cat >conftest.$ac_ext <<_ACEOF
13258/* confdefs.h. */
13259_ACEOF
13260cat confdefs.h >>conftest.$ac_ext
13261cat >>conftest.$ac_ext <<_ACEOF
13262/* end confdefs.h. */
13263#include <$ac_header>
13264_ACEOF
13265if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13266 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13267 ac_status=$?
13268 grep -v '^ *+' conftest.er1 >conftest.err
13269 rm -f conftest.er1
13270 cat conftest.err >&5
13271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13272 (exit $ac_status); } >/dev/null; then
13273 if test -s conftest.err; then
13274 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 13275 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
13276 else
13277 ac_cpp_err=
13278 fi
13279else
13280 ac_cpp_err=yes
13281fi
13282if test -z "$ac_cpp_err"; then
13283 ac_header_preproc=yes
13284else
13285 echo "$as_me: failed program was:" >&5
13286sed 's/^/| /' conftest.$ac_ext >&5
13287
13288 ac_header_preproc=no
13289fi
13290rm -f conftest.err conftest.$ac_ext
13291echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13292echo "${ECHO_T}$ac_header_preproc" >&6
13293
13294# So? What about this header?
ac1cb8d3
VS
13295case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13296 yes:no: )
a848cd7e
SC
13297 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13298echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
13299 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13300echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13301 ac_header_preproc=yes
a848cd7e 13302 ;;
ac1cb8d3 13303 no:yes:* )
a848cd7e
SC
13304 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13305echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
13306 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13307echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13308 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13309echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13310 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13311echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
13312 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13313echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
13314 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13315echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
13316 (
13317 cat <<\_ASBOX
ac1cb8d3
VS
13318## ----------------------------------------- ##
13319## Report this to wx-dev@lists.wxwidgets.org ##
13320## ----------------------------------------- ##
a848cd7e
SC
13321_ASBOX
13322 ) |
13323 sed "s/^/$as_me: WARNING: /" >&2
13324 ;;
13325esac
13326echo "$as_me:$LINENO: checking for $ac_header" >&5
13327echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13328if eval "test \"\${$as_ac_Header+set}\" = set"; then
13329 echo $ECHO_N "(cached) $ECHO_C" >&6
13330else
ac1cb8d3 13331 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
13332fi
13333echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13334echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13335
13336fi
13337if test `eval echo '${'$as_ac_Header'}'` = yes; then
13338 cat >>confdefs.h <<_ACEOF
13339#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13340_ACEOF
13341
13342fi
13343
13344done
13345
13346
13347for ac_header in malloc.h
13348do
13349as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13350if eval "test \"\${$as_ac_Header+set}\" = set"; then
13351 echo "$as_me:$LINENO: checking for $ac_header" >&5
13352echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13353if eval "test \"\${$as_ac_Header+set}\" = set"; then
13354 echo $ECHO_N "(cached) $ECHO_C" >&6
13355fi
13356echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13357echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13358else
13359 # Is the header compilable?
13360echo "$as_me:$LINENO: checking $ac_header usability" >&5
13361echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13362cat >conftest.$ac_ext <<_ACEOF
13363/* confdefs.h. */
13364_ACEOF
13365cat confdefs.h >>conftest.$ac_ext
13366cat >>conftest.$ac_ext <<_ACEOF
13367/* end confdefs.h. */
13368$ac_includes_default
13369#include <$ac_header>
13370_ACEOF
13371rm -f conftest.$ac_objext
13372if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 13373 (eval $ac_compile) 2>conftest.er1
a848cd7e 13374 ac_status=$?
ac1cb8d3
VS
13375 grep -v '^ *+' conftest.er1 >conftest.err
13376 rm -f conftest.er1
13377 cat conftest.err >&5
a848cd7e
SC
13378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13379 (exit $ac_status); } &&
89be85c2
VS
13380 { ac_try='test -z "$ac_c_werror_flag"
13381 || test ! -s conftest.err'
ac1cb8d3
VS
13382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13383 (eval $ac_try) 2>&5
13384 ac_status=$?
13385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13386 (exit $ac_status); }; } &&
13387 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
13388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13389 (eval $ac_try) 2>&5
13390 ac_status=$?
13391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13392 (exit $ac_status); }; }; then
13393 ac_header_compiler=yes
13394else
13395 echo "$as_me: failed program was:" >&5
13396sed 's/^/| /' conftest.$ac_ext >&5
13397
13398ac_header_compiler=no
13399fi
ac1cb8d3 13400rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
13401echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13402echo "${ECHO_T}$ac_header_compiler" >&6
13403
13404# Is the header present?
13405echo "$as_me:$LINENO: checking $ac_header presence" >&5
13406echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13407cat >conftest.$ac_ext <<_ACEOF
13408/* confdefs.h. */
13409_ACEOF
13410cat confdefs.h >>conftest.$ac_ext
13411cat >>conftest.$ac_ext <<_ACEOF
13412/* end confdefs.h. */
13413#include <$ac_header>
13414_ACEOF
13415if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13416 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13417 ac_status=$?
13418 grep -v '^ *+' conftest.er1 >conftest.err
13419 rm -f conftest.er1
13420 cat conftest.err >&5
13421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13422 (exit $ac_status); } >/dev/null; then
13423 if test -s conftest.err; then
13424 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 13425 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
13426 else
13427 ac_cpp_err=
13428 fi
13429else
13430 ac_cpp_err=yes
13431fi
13432if test -z "$ac_cpp_err"; then
13433 ac_header_preproc=yes
13434else
13435 echo "$as_me: failed program was:" >&5
13436sed 's/^/| /' conftest.$ac_ext >&5
13437
13438 ac_header_preproc=no
13439fi
13440rm -f conftest.err conftest.$ac_ext
13441echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13442echo "${ECHO_T}$ac_header_preproc" >&6
13443
13444# So? What about this header?
ac1cb8d3
VS
13445case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13446 yes:no: )
a848cd7e
SC
13447 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13448echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
13449 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13450echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13451 ac_header_preproc=yes
a848cd7e 13452 ;;
ac1cb8d3 13453 no:yes:* )
a848cd7e
SC
13454 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13455echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
13456 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13457echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13458 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13459echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13460 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13461echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
13462 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13463echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
13464 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13465echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
13466 (
13467 cat <<\_ASBOX
ac1cb8d3
VS
13468## ----------------------------------------- ##
13469## Report this to wx-dev@lists.wxwidgets.org ##
13470## ----------------------------------------- ##
a848cd7e
SC
13471_ASBOX
13472 ) |
13473 sed "s/^/$as_me: WARNING: /" >&2
13474 ;;
13475esac
13476echo "$as_me:$LINENO: checking for $ac_header" >&5
13477echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13478if eval "test \"\${$as_ac_Header+set}\" = set"; then
13479 echo $ECHO_N "(cached) $ECHO_C" >&6
13480else
ac1cb8d3 13481 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
13482fi
13483echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13484echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13485
13486fi
13487if test `eval echo '${'$as_ac_Header'}'` = yes; then
13488 cat >>confdefs.h <<_ACEOF
13489#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13490_ACEOF
13491
13492fi
13493
13494done
13495
13496
13497for ac_header in unistd.h
13498do
13499as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13500if eval "test \"\${$as_ac_Header+set}\" = set"; then
13501 echo "$as_me:$LINENO: checking for $ac_header" >&5
13502echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13503if eval "test \"\${$as_ac_Header+set}\" = set"; then
13504 echo $ECHO_N "(cached) $ECHO_C" >&6
13505fi
13506echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13507echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13508else
13509 # Is the header compilable?
13510echo "$as_me:$LINENO: checking $ac_header usability" >&5
13511echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13512cat >conftest.$ac_ext <<_ACEOF
13513/* confdefs.h. */
13514_ACEOF
13515cat confdefs.h >>conftest.$ac_ext
13516cat >>conftest.$ac_ext <<_ACEOF
13517/* end confdefs.h. */
13518$ac_includes_default
13519#include <$ac_header>
13520_ACEOF
13521rm -f conftest.$ac_objext
13522if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 13523 (eval $ac_compile) 2>conftest.er1
a848cd7e 13524 ac_status=$?
ac1cb8d3
VS
13525 grep -v '^ *+' conftest.er1 >conftest.err
13526 rm -f conftest.er1
13527 cat conftest.err >&5
a848cd7e
SC
13528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13529 (exit $ac_status); } &&
89be85c2
VS
13530 { ac_try='test -z "$ac_c_werror_flag"
13531 || test ! -s conftest.err'
ac1cb8d3
VS
13532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13533 (eval $ac_try) 2>&5
13534 ac_status=$?
13535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13536 (exit $ac_status); }; } &&
13537 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
13538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13539 (eval $ac_try) 2>&5
13540 ac_status=$?
13541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13542 (exit $ac_status); }; }; then
13543 ac_header_compiler=yes
13544else
13545 echo "$as_me: failed program was:" >&5
13546sed 's/^/| /' conftest.$ac_ext >&5
13547
13548ac_header_compiler=no
13549fi
ac1cb8d3 13550rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
13551echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13552echo "${ECHO_T}$ac_header_compiler" >&6
13553
13554# Is the header present?
13555echo "$as_me:$LINENO: checking $ac_header presence" >&5
13556echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13557cat >conftest.$ac_ext <<_ACEOF
13558/* confdefs.h. */
13559_ACEOF
13560cat confdefs.h >>conftest.$ac_ext
13561cat >>conftest.$ac_ext <<_ACEOF
13562/* end confdefs.h. */
13563#include <$ac_header>
13564_ACEOF
13565if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13566 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13567 ac_status=$?
13568 grep -v '^ *+' conftest.er1 >conftest.err
13569 rm -f conftest.er1
13570 cat conftest.err >&5
13571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13572 (exit $ac_status); } >/dev/null; then
13573 if test -s conftest.err; then
13574 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 13575 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
13576 else
13577 ac_cpp_err=
13578 fi
13579else
13580 ac_cpp_err=yes
13581fi
13582if test -z "$ac_cpp_err"; then
13583 ac_header_preproc=yes
13584else
13585 echo "$as_me: failed program was:" >&5
13586sed 's/^/| /' conftest.$ac_ext >&5
13587
13588 ac_header_preproc=no
13589fi
13590rm -f conftest.err conftest.$ac_ext
13591echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13592echo "${ECHO_T}$ac_header_preproc" >&6
13593
13594# So? What about this header?
ac1cb8d3
VS
13595case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13596 yes:no: )
a848cd7e
SC
13597 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13598echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
13599 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13600echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13601 ac_header_preproc=yes
a848cd7e 13602 ;;
ac1cb8d3 13603 no:yes:* )
a848cd7e
SC
13604 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13605echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
13606 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13607echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13608 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13609echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13610 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13611echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
13612 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13613echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
13614 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13615echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
13616 (
13617 cat <<\_ASBOX
ac1cb8d3
VS
13618## ----------------------------------------- ##
13619## Report this to wx-dev@lists.wxwidgets.org ##
13620## ----------------------------------------- ##
a848cd7e
SC
13621_ASBOX
13622 ) |
13623 sed "s/^/$as_me: WARNING: /" >&2
13624 ;;
13625esac
13626echo "$as_me:$LINENO: checking for $ac_header" >&5
13627echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13628if eval "test \"\${$as_ac_Header+set}\" = set"; then
13629 echo $ECHO_N "(cached) $ECHO_C" >&6
13630else
ac1cb8d3 13631 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
13632fi
13633echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13634echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13635
13636fi
13637if test `eval echo '${'$as_ac_Header'}'` = yes; then
13638 cat >>confdefs.h <<_ACEOF
13639#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13640_ACEOF
13641
13642fi
13643
13644done
13645
13646
13647for ac_header in wchar.h
13648do
13649as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13650if eval "test \"\${$as_ac_Header+set}\" = set"; then
13651 echo "$as_me:$LINENO: checking for $ac_header" >&5
13652echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13653if eval "test \"\${$as_ac_Header+set}\" = set"; then
13654 echo $ECHO_N "(cached) $ECHO_C" >&6
13655fi
13656echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13657echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13658else
13659 # Is the header compilable?
13660echo "$as_me:$LINENO: checking $ac_header usability" >&5
13661echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13662cat >conftest.$ac_ext <<_ACEOF
13663/* confdefs.h. */
13664_ACEOF
13665cat confdefs.h >>conftest.$ac_ext
13666cat >>conftest.$ac_ext <<_ACEOF
13667/* end confdefs.h. */
13668$ac_includes_default
13669#include <$ac_header>
13670_ACEOF
13671rm -f conftest.$ac_objext
13672if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 13673 (eval $ac_compile) 2>conftest.er1
a848cd7e 13674 ac_status=$?
ac1cb8d3
VS
13675 grep -v '^ *+' conftest.er1 >conftest.err
13676 rm -f conftest.er1
13677 cat conftest.err >&5
a848cd7e
SC
13678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13679 (exit $ac_status); } &&
89be85c2
VS
13680 { ac_try='test -z "$ac_c_werror_flag"
13681 || test ! -s conftest.err'
ac1cb8d3
VS
13682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13683 (eval $ac_try) 2>&5
13684 ac_status=$?
13685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13686 (exit $ac_status); }; } &&
13687 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
13688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13689 (eval $ac_try) 2>&5
13690 ac_status=$?
13691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13692 (exit $ac_status); }; }; then
13693 ac_header_compiler=yes
13694else
13695 echo "$as_me: failed program was:" >&5
13696sed 's/^/| /' conftest.$ac_ext >&5
13697
13698ac_header_compiler=no
13699fi
ac1cb8d3 13700rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
13701echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13702echo "${ECHO_T}$ac_header_compiler" >&6
13703
13704# Is the header present?
13705echo "$as_me:$LINENO: checking $ac_header presence" >&5
13706echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13707cat >conftest.$ac_ext <<_ACEOF
13708/* confdefs.h. */
13709_ACEOF
13710cat confdefs.h >>conftest.$ac_ext
13711cat >>conftest.$ac_ext <<_ACEOF
13712/* end confdefs.h. */
13713#include <$ac_header>
13714_ACEOF
13715if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13716 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13717 ac_status=$?
13718 grep -v '^ *+' conftest.er1 >conftest.err
13719 rm -f conftest.er1
13720 cat conftest.err >&5
13721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13722 (exit $ac_status); } >/dev/null; then
13723 if test -s conftest.err; then
13724 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 13725 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
13726 else
13727 ac_cpp_err=
13728 fi
13729else
13730 ac_cpp_err=yes
13731fi
13732if test -z "$ac_cpp_err"; then
13733 ac_header_preproc=yes
13734else
13735 echo "$as_me: failed program was:" >&5
13736sed 's/^/| /' conftest.$ac_ext >&5
13737
13738 ac_header_preproc=no
13739fi
13740rm -f conftest.err conftest.$ac_ext
13741echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13742echo "${ECHO_T}$ac_header_preproc" >&6
13743
13744# So? What about this header?
ac1cb8d3
VS
13745case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13746 yes:no: )
a848cd7e
SC
13747 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13748echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
13749 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13750echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13751 ac_header_preproc=yes
a848cd7e 13752 ;;
ac1cb8d3 13753 no:yes:* )
a848cd7e
SC
13754 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13755echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
13756 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13757echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13758 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13759echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13760 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13761echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
13762 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13763echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
13764 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13765echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
13766 (
13767 cat <<\_ASBOX
ac1cb8d3
VS
13768## ----------------------------------------- ##
13769## Report this to wx-dev@lists.wxwidgets.org ##
13770## ----------------------------------------- ##
a848cd7e
SC
13771_ASBOX
13772 ) |
13773 sed "s/^/$as_me: WARNING: /" >&2
13774 ;;
13775esac
13776echo "$as_me:$LINENO: checking for $ac_header" >&5
13777echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13778if eval "test \"\${$as_ac_Header+set}\" = set"; then
13779 echo $ECHO_N "(cached) $ECHO_C" >&6
13780else
ac1cb8d3 13781 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
13782fi
13783echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13784echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13785
13786fi
13787if test `eval echo '${'$as_ac_Header'}'` = yes; then
13788 cat >>confdefs.h <<_ACEOF
13789#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13790_ACEOF
13791
13792fi
13793
13794done
13795
13796
13797if test "$ac_cv_header_wchar_h" != "yes"; then
13798
13799for ac_header in wcstr.h
13800do
13801as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13802if eval "test \"\${$as_ac_Header+set}\" = set"; then
13803 echo "$as_me:$LINENO: checking for $ac_header" >&5
13804echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13805if eval "test \"\${$as_ac_Header+set}\" = set"; then
13806 echo $ECHO_N "(cached) $ECHO_C" >&6
13807fi
13808echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13809echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13810else
13811 # Is the header compilable?
13812echo "$as_me:$LINENO: checking $ac_header usability" >&5
13813echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13814cat >conftest.$ac_ext <<_ACEOF
13815/* confdefs.h. */
13816_ACEOF
13817cat confdefs.h >>conftest.$ac_ext
13818cat >>conftest.$ac_ext <<_ACEOF
13819/* end confdefs.h. */
13820$ac_includes_default
13821#include <$ac_header>
13822_ACEOF
13823rm -f conftest.$ac_objext
13824if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 13825 (eval $ac_compile) 2>conftest.er1
a848cd7e 13826 ac_status=$?
ac1cb8d3
VS
13827 grep -v '^ *+' conftest.er1 >conftest.err
13828 rm -f conftest.er1
13829 cat conftest.err >&5
a848cd7e
SC
13830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13831 (exit $ac_status); } &&
89be85c2
VS
13832 { ac_try='test -z "$ac_c_werror_flag"
13833 || test ! -s conftest.err'
ac1cb8d3
VS
13834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13835 (eval $ac_try) 2>&5
13836 ac_status=$?
13837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13838 (exit $ac_status); }; } &&
13839 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
13840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13841 (eval $ac_try) 2>&5
13842 ac_status=$?
13843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13844 (exit $ac_status); }; }; then
13845 ac_header_compiler=yes
13846else
13847 echo "$as_me: failed program was:" >&5
13848sed 's/^/| /' conftest.$ac_ext >&5
13849
13850ac_header_compiler=no
13851fi
ac1cb8d3 13852rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
13853echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13854echo "${ECHO_T}$ac_header_compiler" >&6
13855
13856# Is the header present?
13857echo "$as_me:$LINENO: checking $ac_header presence" >&5
13858echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13859cat >conftest.$ac_ext <<_ACEOF
13860/* confdefs.h. */
13861_ACEOF
13862cat confdefs.h >>conftest.$ac_ext
13863cat >>conftest.$ac_ext <<_ACEOF
13864/* end confdefs.h. */
13865#include <$ac_header>
13866_ACEOF
13867if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13868 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13869 ac_status=$?
13870 grep -v '^ *+' conftest.er1 >conftest.err
13871 rm -f conftest.er1
13872 cat conftest.err >&5
13873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13874 (exit $ac_status); } >/dev/null; then
13875 if test -s conftest.err; then
13876 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 13877 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
13878 else
13879 ac_cpp_err=
13880 fi
13881else
13882 ac_cpp_err=yes
13883fi
13884if test -z "$ac_cpp_err"; then
13885 ac_header_preproc=yes
13886else
13887 echo "$as_me: failed program was:" >&5
13888sed 's/^/| /' conftest.$ac_ext >&5
13889
13890 ac_header_preproc=no
13891fi
13892rm -f conftest.err conftest.$ac_ext
13893echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13894echo "${ECHO_T}$ac_header_preproc" >&6
13895
13896# So? What about this header?
ac1cb8d3
VS
13897case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13898 yes:no: )
a848cd7e
SC
13899 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13900echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
13901 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13902echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13903 ac_header_preproc=yes
a848cd7e 13904 ;;
ac1cb8d3 13905 no:yes:* )
a848cd7e
SC
13906 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13907echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
13908 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13909echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13910 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13911echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13912 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13913echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
13914 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13915echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
13916 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13917echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
13918 (
13919 cat <<\_ASBOX
ac1cb8d3
VS
13920## ----------------------------------------- ##
13921## Report this to wx-dev@lists.wxwidgets.org ##
13922## ----------------------------------------- ##
a848cd7e
SC
13923_ASBOX
13924 ) |
13925 sed "s/^/$as_me: WARNING: /" >&2
13926 ;;
13927esac
13928echo "$as_me:$LINENO: checking for $ac_header" >&5
13929echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13930if eval "test \"\${$as_ac_Header+set}\" = set"; then
13931 echo $ECHO_N "(cached) $ECHO_C" >&6
13932else
ac1cb8d3 13933 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
13934fi
13935echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13936echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13937
13938fi
13939if test `eval echo '${'$as_ac_Header'}'` = yes; then
13940 cat >>confdefs.h <<_ACEOF
13941#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13942_ACEOF
13943
13944fi
13945
13946done
13947
13948fi
13949
13950
13951for ac_header in fnmatch.h
13952do
13953as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13954if eval "test \"\${$as_ac_Header+set}\" = set"; then
13955 echo "$as_me:$LINENO: checking for $ac_header" >&5
13956echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13957if eval "test \"\${$as_ac_Header+set}\" = set"; then
13958 echo $ECHO_N "(cached) $ECHO_C" >&6
13959fi
13960echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13961echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13962else
13963 # Is the header compilable?
13964echo "$as_me:$LINENO: checking $ac_header usability" >&5
13965echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13966cat >conftest.$ac_ext <<_ACEOF
13967/* confdefs.h. */
13968_ACEOF
13969cat confdefs.h >>conftest.$ac_ext
13970cat >>conftest.$ac_ext <<_ACEOF
13971/* end confdefs.h. */
13972$ac_includes_default
13973#include <$ac_header>
13974_ACEOF
13975rm -f conftest.$ac_objext
13976if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 13977 (eval $ac_compile) 2>conftest.er1
a848cd7e 13978 ac_status=$?
ac1cb8d3
VS
13979 grep -v '^ *+' conftest.er1 >conftest.err
13980 rm -f conftest.er1
13981 cat conftest.err >&5
a848cd7e
SC
13982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13983 (exit $ac_status); } &&
89be85c2
VS
13984 { ac_try='test -z "$ac_c_werror_flag"
13985 || test ! -s conftest.err'
ac1cb8d3
VS
13986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13987 (eval $ac_try) 2>&5
13988 ac_status=$?
13989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13990 (exit $ac_status); }; } &&
13991 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
13992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13993 (eval $ac_try) 2>&5
13994 ac_status=$?
13995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13996 (exit $ac_status); }; }; then
13997 ac_header_compiler=yes
13998else
13999 echo "$as_me: failed program was:" >&5
14000sed 's/^/| /' conftest.$ac_ext >&5
14001
14002ac_header_compiler=no
14003fi
ac1cb8d3 14004rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14005echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14006echo "${ECHO_T}$ac_header_compiler" >&6
14007
14008# Is the header present?
14009echo "$as_me:$LINENO: checking $ac_header presence" >&5
14010echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14011cat >conftest.$ac_ext <<_ACEOF
14012/* confdefs.h. */
14013_ACEOF
14014cat confdefs.h >>conftest.$ac_ext
14015cat >>conftest.$ac_ext <<_ACEOF
14016/* end confdefs.h. */
14017#include <$ac_header>
14018_ACEOF
14019if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14020 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14021 ac_status=$?
14022 grep -v '^ *+' conftest.er1 >conftest.err
14023 rm -f conftest.er1
14024 cat conftest.err >&5
14025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14026 (exit $ac_status); } >/dev/null; then
14027 if test -s conftest.err; then
14028 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 14029 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
14030 else
14031 ac_cpp_err=
14032 fi
14033else
14034 ac_cpp_err=yes
14035fi
14036if test -z "$ac_cpp_err"; then
14037 ac_header_preproc=yes
14038else
14039 echo "$as_me: failed program was:" >&5
14040sed 's/^/| /' conftest.$ac_ext >&5
14041
14042 ac_header_preproc=no
14043fi
14044rm -f conftest.err conftest.$ac_ext
14045echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14046echo "${ECHO_T}$ac_header_preproc" >&6
14047
14048# So? What about this header?
ac1cb8d3
VS
14049case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14050 yes:no: )
a848cd7e
SC
14051 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14052echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
14053 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14054echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14055 ac_header_preproc=yes
a848cd7e 14056 ;;
ac1cb8d3 14057 no:yes:* )
a848cd7e
SC
14058 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14059echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
14060 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14061echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14062 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14063echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14064 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14065echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
14066 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14067echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
14068 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14069echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
14070 (
14071 cat <<\_ASBOX
ac1cb8d3
VS
14072## ----------------------------------------- ##
14073## Report this to wx-dev@lists.wxwidgets.org ##
14074## ----------------------------------------- ##
a848cd7e
SC
14075_ASBOX
14076 ) |
14077 sed "s/^/$as_me: WARNING: /" >&2
14078 ;;
14079esac
14080echo "$as_me:$LINENO: checking for $ac_header" >&5
14081echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14082if eval "test \"\${$as_ac_Header+set}\" = set"; then
14083 echo $ECHO_N "(cached) $ECHO_C" >&6
14084else
ac1cb8d3 14085 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
14086fi
14087echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14088echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14089
14090fi
14091if test `eval echo '${'$as_ac_Header'}'` = yes; then
14092 cat >>confdefs.h <<_ACEOF
14093#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14094_ACEOF
14095
14096fi
14097
14098done
14099
14100
14101if test "x$ac_cv_header_fnmatch_h" = "xyes"; then
14102
14103for ac_func in fnmatch
14104do
14105as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14106echo "$as_me:$LINENO: checking for $ac_func" >&5
14107echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14108if eval "test \"\${$as_ac_var+set}\" = set"; then
14109 echo $ECHO_N "(cached) $ECHO_C" >&6
14110else
14111 cat >conftest.$ac_ext <<_ACEOF
14112/* confdefs.h. */
14113_ACEOF
14114cat confdefs.h >>conftest.$ac_ext
14115cat >>conftest.$ac_ext <<_ACEOF
14116/* end confdefs.h. */
ac1cb8d3
VS
14117/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14118 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14119#define $ac_func innocuous_$ac_func
14120
a848cd7e
SC
14121/* System header to define __stub macros and hopefully few prototypes,
14122 which can conflict with char $ac_func (); below.
14123 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14124 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 14125
a848cd7e
SC
14126#ifdef __STDC__
14127# include <limits.h>
14128#else
14129# include <assert.h>
14130#endif
ac1cb8d3
VS
14131
14132#undef $ac_func
14133
a848cd7e
SC
14134/* Override any gcc2 internal prototype to avoid an error. */
14135#ifdef __cplusplus
14136extern "C"
14137{
14138#endif
14139/* We use char because int might match the return type of a gcc2
14140 builtin and then its argument prototype would still apply. */
14141char $ac_func ();
14142/* The GNU C library defines this for functions which it implements
14143 to always fail with ENOSYS. Some functions are actually named
14144 something starting with __ and the normal name is an alias. */
14145#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14146choke me
14147#else
14148char (*f) () = $ac_func;
14149#endif
14150#ifdef __cplusplus
14151}
14152#endif
14153
14154int
14155main ()
14156{
14157return f != $ac_func;
14158 ;
14159 return 0;
14160}
14161_ACEOF
14162rm -f conftest.$ac_objext conftest$ac_exeext
14163if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 14164 (eval $ac_link) 2>conftest.er1
a848cd7e 14165 ac_status=$?
ac1cb8d3
VS
14166 grep -v '^ *+' conftest.er1 >conftest.err
14167 rm -f conftest.er1
14168 cat conftest.err >&5
a848cd7e
SC
14169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14170 (exit $ac_status); } &&
89be85c2
VS
14171 { ac_try='test -z "$ac_c_werror_flag"
14172 || test ! -s conftest.err'
ac1cb8d3
VS
14173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14174 (eval $ac_try) 2>&5
14175 ac_status=$?
14176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14177 (exit $ac_status); }; } &&
14178 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
14179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14180 (eval $ac_try) 2>&5
14181 ac_status=$?
14182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14183 (exit $ac_status); }; }; then
14184 eval "$as_ac_var=yes"
14185else
14186 echo "$as_me: failed program was:" >&5
14187sed 's/^/| /' conftest.$ac_ext >&5
14188
14189eval "$as_ac_var=no"
14190fi
ac1cb8d3
VS
14191rm -f conftest.err conftest.$ac_objext \
14192 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
14193fi
14194echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14195echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14196if test `eval echo '${'$as_ac_var'}'` = yes; then
14197 cat >>confdefs.h <<_ACEOF
14198#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14199_ACEOF
14200
14201fi
14202done
14203
14204fi
14205
14206
14207for ac_header in langinfo.h
14208do
14209as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14210if eval "test \"\${$as_ac_Header+set}\" = set"; then
14211 echo "$as_me:$LINENO: checking for $ac_header" >&5
14212echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14213if eval "test \"\${$as_ac_Header+set}\" = set"; then
14214 echo $ECHO_N "(cached) $ECHO_C" >&6
14215fi
14216echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14217echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14218else
14219 # Is the header compilable?
14220echo "$as_me:$LINENO: checking $ac_header usability" >&5
14221echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14222cat >conftest.$ac_ext <<_ACEOF
14223/* confdefs.h. */
14224_ACEOF
14225cat confdefs.h >>conftest.$ac_ext
14226cat >>conftest.$ac_ext <<_ACEOF
14227/* end confdefs.h. */
14228$ac_includes_default
14229#include <$ac_header>
14230_ACEOF
14231rm -f conftest.$ac_objext
14232if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14233 (eval $ac_compile) 2>conftest.er1
a848cd7e 14234 ac_status=$?
ac1cb8d3
VS
14235 grep -v '^ *+' conftest.er1 >conftest.err
14236 rm -f conftest.er1
14237 cat conftest.err >&5
a848cd7e
SC
14238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14239 (exit $ac_status); } &&
89be85c2
VS
14240 { ac_try='test -z "$ac_c_werror_flag"
14241 || test ! -s conftest.err'
ac1cb8d3
VS
14242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14243 (eval $ac_try) 2>&5
14244 ac_status=$?
14245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14246 (exit $ac_status); }; } &&
14247 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14249 (eval $ac_try) 2>&5
14250 ac_status=$?
14251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14252 (exit $ac_status); }; }; then
14253 ac_header_compiler=yes
14254else
14255 echo "$as_me: failed program was:" >&5
14256sed 's/^/| /' conftest.$ac_ext >&5
14257
14258ac_header_compiler=no
14259fi
ac1cb8d3 14260rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14261echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14262echo "${ECHO_T}$ac_header_compiler" >&6
14263
14264# Is the header present?
14265echo "$as_me:$LINENO: checking $ac_header presence" >&5
14266echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14267cat >conftest.$ac_ext <<_ACEOF
14268/* confdefs.h. */
14269_ACEOF
14270cat confdefs.h >>conftest.$ac_ext
14271cat >>conftest.$ac_ext <<_ACEOF
14272/* end confdefs.h. */
14273#include <$ac_header>
14274_ACEOF
14275if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14276 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14277 ac_status=$?
14278 grep -v '^ *+' conftest.er1 >conftest.err
14279 rm -f conftest.er1
14280 cat conftest.err >&5
14281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14282 (exit $ac_status); } >/dev/null; then
14283 if test -s conftest.err; then
14284 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 14285 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
14286 else
14287 ac_cpp_err=
14288 fi
14289else
14290 ac_cpp_err=yes
14291fi
14292if test -z "$ac_cpp_err"; then
14293 ac_header_preproc=yes
14294else
14295 echo "$as_me: failed program was:" >&5
14296sed 's/^/| /' conftest.$ac_ext >&5
14297
14298 ac_header_preproc=no
14299fi
14300rm -f conftest.err conftest.$ac_ext
14301echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14302echo "${ECHO_T}$ac_header_preproc" >&6
14303
14304# So? What about this header?
ac1cb8d3
VS
14305case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14306 yes:no: )
a848cd7e
SC
14307 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14308echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
14309 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14310echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14311 ac_header_preproc=yes
a848cd7e 14312 ;;
ac1cb8d3 14313 no:yes:* )
a848cd7e
SC
14314 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14315echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
14316 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14317echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14318 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14319echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14320 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14321echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
14322 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14323echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
14324 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14325echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
14326 (
14327 cat <<\_ASBOX
ac1cb8d3
VS
14328## ----------------------------------------- ##
14329## Report this to wx-dev@lists.wxwidgets.org ##
14330## ----------------------------------------- ##
a848cd7e
SC
14331_ASBOX
14332 ) |
14333 sed "s/^/$as_me: WARNING: /" >&2
14334 ;;
14335esac
14336echo "$as_me:$LINENO: checking for $ac_header" >&5
14337echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14338if eval "test \"\${$as_ac_Header+set}\" = set"; then
14339 echo $ECHO_N "(cached) $ECHO_C" >&6
14340else
ac1cb8d3 14341 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
14342fi
14343echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14344echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14345
14346fi
14347if test `eval echo '${'$as_ac_Header'}'` = yes; then
14348 cat >>confdefs.h <<_ACEOF
14349#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14350_ACEOF
14351
14352fi
14353
14354done
14355
14356
14357case "${host}" in
14358 *-pc-os2_emx | *-pc-os2-emx )
14359 if test $ac_cv_header_langinfo_h = "yes"; then
14360 LIBS="$LIBS -lintl"
14361 fi
14362 ;;
14363esac
14364
14365if test "$wxUSE_GUI" = "yes"; then
14366 if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_PM" != 1; then
14367
14368for ac_header in X11/Xlib.h
14369do
14370as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14371if eval "test \"\${$as_ac_Header+set}\" = set"; then
14372 echo "$as_me:$LINENO: checking for $ac_header" >&5
14373echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14374if eval "test \"\${$as_ac_Header+set}\" = set"; then
14375 echo $ECHO_N "(cached) $ECHO_C" >&6
14376fi
14377echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14378echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14379else
14380 # Is the header compilable?
14381echo "$as_me:$LINENO: checking $ac_header usability" >&5
14382echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14383cat >conftest.$ac_ext <<_ACEOF
14384/* confdefs.h. */
14385_ACEOF
14386cat confdefs.h >>conftest.$ac_ext
14387cat >>conftest.$ac_ext <<_ACEOF
14388/* end confdefs.h. */
14389$ac_includes_default
14390#include <$ac_header>
14391_ACEOF
14392rm -f conftest.$ac_objext
14393if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14394 (eval $ac_compile) 2>conftest.er1
a848cd7e 14395 ac_status=$?
ac1cb8d3
VS
14396 grep -v '^ *+' conftest.er1 >conftest.err
14397 rm -f conftest.er1
14398 cat conftest.err >&5
a848cd7e
SC
14399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14400 (exit $ac_status); } &&
89be85c2
VS
14401 { ac_try='test -z "$ac_c_werror_flag"
14402 || test ! -s conftest.err'
ac1cb8d3
VS
14403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14404 (eval $ac_try) 2>&5
14405 ac_status=$?
14406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14407 (exit $ac_status); }; } &&
14408 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14410 (eval $ac_try) 2>&5
14411 ac_status=$?
14412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14413 (exit $ac_status); }; }; then
14414 ac_header_compiler=yes
14415else
14416 echo "$as_me: failed program was:" >&5
14417sed 's/^/| /' conftest.$ac_ext >&5
14418
14419ac_header_compiler=no
14420fi
ac1cb8d3 14421rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14422echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14423echo "${ECHO_T}$ac_header_compiler" >&6
14424
14425# Is the header present?
14426echo "$as_me:$LINENO: checking $ac_header presence" >&5
14427echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14428cat >conftest.$ac_ext <<_ACEOF
14429/* confdefs.h. */
14430_ACEOF
14431cat confdefs.h >>conftest.$ac_ext
14432cat >>conftest.$ac_ext <<_ACEOF
14433/* end confdefs.h. */
14434#include <$ac_header>
14435_ACEOF
14436if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14437 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14438 ac_status=$?
14439 grep -v '^ *+' conftest.er1 >conftest.err
14440 rm -f conftest.er1
14441 cat conftest.err >&5
14442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14443 (exit $ac_status); } >/dev/null; then
14444 if test -s conftest.err; then
14445 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 14446 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
14447 else
14448 ac_cpp_err=
14449 fi
14450else
14451 ac_cpp_err=yes
14452fi
14453if test -z "$ac_cpp_err"; then
14454 ac_header_preproc=yes
14455else
14456 echo "$as_me: failed program was:" >&5
14457sed 's/^/| /' conftest.$ac_ext >&5
14458
14459 ac_header_preproc=no
14460fi
14461rm -f conftest.err conftest.$ac_ext
14462echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14463echo "${ECHO_T}$ac_header_preproc" >&6
14464
14465# So? What about this header?
ac1cb8d3
VS
14466case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14467 yes:no: )
a848cd7e
SC
14468 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14469echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
14470 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14471echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14472 ac_header_preproc=yes
a848cd7e 14473 ;;
ac1cb8d3 14474 no:yes:* )
a848cd7e
SC
14475 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14476echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
14477 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14478echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14479 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14480echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14481 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14482echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
14483 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14484echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
14485 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14486echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
14487 (
14488 cat <<\_ASBOX
ac1cb8d3
VS
14489## ----------------------------------------- ##
14490## Report this to wx-dev@lists.wxwidgets.org ##
14491## ----------------------------------------- ##
a848cd7e
SC
14492_ASBOX
14493 ) |
14494 sed "s/^/$as_me: WARNING: /" >&2
14495 ;;
14496esac
14497echo "$as_me:$LINENO: checking for $ac_header" >&5
14498echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14499if eval "test \"\${$as_ac_Header+set}\" = set"; then
14500 echo $ECHO_N "(cached) $ECHO_C" >&6
14501else
ac1cb8d3 14502 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
14503fi
14504echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14505echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14506
14507fi
14508if test `eval echo '${'$as_ac_Header'}'` = yes; then
14509 cat >>confdefs.h <<_ACEOF
14510#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14511_ACEOF
14512
14513fi
14514
14515done
14516
14517
14518for ac_header in X11/XKBlib.h
14519do
14520as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14521echo "$as_me:$LINENO: checking for $ac_header" >&5
14522echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14523if eval "test \"\${$as_ac_Header+set}\" = set"; then
14524 echo $ECHO_N "(cached) $ECHO_C" >&6
14525else
14526 cat >conftest.$ac_ext <<_ACEOF
14527/* confdefs.h. */
14528_ACEOF
14529cat confdefs.h >>conftest.$ac_ext
14530cat >>conftest.$ac_ext <<_ACEOF
14531/* end confdefs.h. */
14532
14533 #if HAVE_X11_XLIB_H
14534 #include <X11/Xlib.h>
14535 #endif
14536
14537
14538#include <$ac_header>
14539_ACEOF
14540rm -f conftest.$ac_objext
14541if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14542 (eval $ac_compile) 2>conftest.er1
a848cd7e 14543 ac_status=$?
ac1cb8d3
VS
14544 grep -v '^ *+' conftest.er1 >conftest.err
14545 rm -f conftest.er1
14546 cat conftest.err >&5
a848cd7e
SC
14547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14548 (exit $ac_status); } &&
89be85c2
VS
14549 { ac_try='test -z "$ac_c_werror_flag"
14550 || test ! -s conftest.err'
ac1cb8d3
VS
14551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14552 (eval $ac_try) 2>&5
14553 ac_status=$?
14554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14555 (exit $ac_status); }; } &&
14556 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14558 (eval $ac_try) 2>&5
14559 ac_status=$?
14560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14561 (exit $ac_status); }; }; then
14562 eval "$as_ac_Header=yes"
14563else
14564 echo "$as_me: failed program was:" >&5
14565sed 's/^/| /' conftest.$ac_ext >&5
14566
14567eval "$as_ac_Header=no"
14568fi
ac1cb8d3 14569rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14570fi
14571echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14572echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14573if test `eval echo '${'$as_ac_Header'}'` = yes; then
14574 cat >>confdefs.h <<_ACEOF
14575#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14576_ACEOF
14577
14578fi
14579
14580done
14581
14582 fi
14583fi
14584
14585
14586echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
14587echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
14588if test "${ac_cv_c_const+set}" = set; then
14589 echo $ECHO_N "(cached) $ECHO_C" >&6
14590else
14591 cat >conftest.$ac_ext <<_ACEOF
14592/* confdefs.h. */
14593_ACEOF
14594cat confdefs.h >>conftest.$ac_ext
14595cat >>conftest.$ac_ext <<_ACEOF
14596/* end confdefs.h. */
14597
14598int
14599main ()
14600{
14601/* FIXME: Include the comments suggested by Paul. */
14602#ifndef __cplusplus
14603 /* Ultrix mips cc rejects this. */
14604 typedef int charset[2];
14605 const charset x;
14606 /* SunOS 4.1.1 cc rejects this. */
14607 char const *const *ccp;
14608 char **p;
14609 /* NEC SVR4.0.2 mips cc rejects this. */
14610 struct point {int x, y;};
14611 static struct point const zero = {0,0};
14612 /* AIX XL C 1.02.0.0 rejects this.
14613 It does not let you subtract one const X* pointer from another in
14614 an arm of an if-expression whose if-part is not a constant
14615 expression */
14616 const char *g = "string";
14617 ccp = &g + (g ? g-g : 0);
14618 /* HPUX 7.0 cc rejects these. */
14619 ++ccp;
14620 p = (char**) ccp;
14621 ccp = (char const *const *) p;
14622 { /* SCO 3.2v4 cc rejects this. */
14623 char *t;
14624 char const *s = 0 ? (char *) 0 : (char const *) 0;
14625
14626 *t++ = 0;
14627 }
14628 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
14629 int x[] = {25, 17};
14630 const int *foo = &x[0];
14631 ++foo;
14632 }
14633 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
14634 typedef const int *iptr;
14635 iptr p = 0;
14636 ++p;
14637 }
14638 { /* AIX XL C 1.02.0.0 rejects this saying
14639 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
14640 struct s { int j; const int *ap[3]; };
14641 struct s *b; b->j = 5;
14642 }
14643 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
14644 const int foo = 10;
14645 }
14646#endif
14647
14648 ;
14649 return 0;
14650}
14651_ACEOF
14652rm -f conftest.$ac_objext
14653if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14654 (eval $ac_compile) 2>conftest.er1
a848cd7e 14655 ac_status=$?
ac1cb8d3
VS
14656 grep -v '^ *+' conftest.er1 >conftest.err
14657 rm -f conftest.er1
14658 cat conftest.err >&5
a848cd7e
SC
14659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14660 (exit $ac_status); } &&
89be85c2
VS
14661 { ac_try='test -z "$ac_c_werror_flag"
14662 || test ! -s conftest.err'
ac1cb8d3
VS
14663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14664 (eval $ac_try) 2>&5
14665 ac_status=$?
14666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14667 (exit $ac_status); }; } &&
14668 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14670 (eval $ac_try) 2>&5
14671 ac_status=$?
14672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14673 (exit $ac_status); }; }; then
14674 ac_cv_c_const=yes
14675else
14676 echo "$as_me: failed program was:" >&5
14677sed 's/^/| /' conftest.$ac_ext >&5
14678
14679ac_cv_c_const=no
14680fi
ac1cb8d3 14681rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14682fi
14683echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
14684echo "${ECHO_T}$ac_cv_c_const" >&6
14685if test $ac_cv_c_const = no; then
14686
14687cat >>confdefs.h <<\_ACEOF
14688#define const
14689_ACEOF
14690
14691fi
14692
14693echo "$as_me:$LINENO: checking for inline" >&5
14694echo $ECHO_N "checking for inline... $ECHO_C" >&6
14695if test "${ac_cv_c_inline+set}" = set; then
14696 echo $ECHO_N "(cached) $ECHO_C" >&6
14697else
14698 ac_cv_c_inline=no
14699for ac_kw in inline __inline__ __inline; do
14700 cat >conftest.$ac_ext <<_ACEOF
14701/* confdefs.h. */
14702_ACEOF
14703cat confdefs.h >>conftest.$ac_ext
14704cat >>conftest.$ac_ext <<_ACEOF
14705/* end confdefs.h. */
14706#ifndef __cplusplus
14707typedef int foo_t;
14708static $ac_kw foo_t static_foo () {return 0; }
14709$ac_kw foo_t foo () {return 0; }
14710#endif
14711
14712_ACEOF
14713rm -f conftest.$ac_objext
14714if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14715 (eval $ac_compile) 2>conftest.er1
a848cd7e 14716 ac_status=$?
ac1cb8d3
VS
14717 grep -v '^ *+' conftest.er1 >conftest.err
14718 rm -f conftest.er1
14719 cat conftest.err >&5
a848cd7e
SC
14720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14721 (exit $ac_status); } &&
89be85c2
VS
14722 { ac_try='test -z "$ac_c_werror_flag"
14723 || test ! -s conftest.err'
ac1cb8d3
VS
14724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14725 (eval $ac_try) 2>&5
14726 ac_status=$?
14727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14728 (exit $ac_status); }; } &&
14729 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14731 (eval $ac_try) 2>&5
14732 ac_status=$?
14733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14734 (exit $ac_status); }; }; then
14735 ac_cv_c_inline=$ac_kw; break
14736else
14737 echo "$as_me: failed program was:" >&5
14738sed 's/^/| /' conftest.$ac_ext >&5
14739
14740fi
ac1cb8d3 14741rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14742done
14743
14744fi
14745echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
14746echo "${ECHO_T}$ac_cv_c_inline" >&6
ac1cb8d3
VS
14747
14748
a848cd7e
SC
14749case $ac_cv_c_inline in
14750 inline | yes) ;;
ac1cb8d3
VS
14751 *)
14752 case $ac_cv_c_inline in
14753 no) ac_val=;;
14754 *) ac_val=$ac_cv_c_inline;;
14755 esac
14756 cat >>confdefs.h <<_ACEOF
14757#ifndef __cplusplus
14758#define inline $ac_val
14759#endif
de59c161 14760_ACEOF
ac1cb8d3 14761 ;;
a848cd7e
SC
14762esac
14763
14764
14765echo "$as_me:$LINENO: checking for char" >&5
14766echo $ECHO_N "checking for char... $ECHO_C" >&6
14767if test "${ac_cv_type_char+set}" = set; then
14768 echo $ECHO_N "(cached) $ECHO_C" >&6
14769else
14770 cat >conftest.$ac_ext <<_ACEOF
14771/* confdefs.h. */
14772_ACEOF
14773cat confdefs.h >>conftest.$ac_ext
14774cat >>conftest.$ac_ext <<_ACEOF
14775/* end confdefs.h. */
14776$ac_includes_default
14777int
14778main ()
14779{
14780if ((char *) 0)
14781 return 0;
14782if (sizeof (char))
14783 return 0;
14784 ;
14785 return 0;
14786}
14787_ACEOF
14788rm -f conftest.$ac_objext
14789if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14790 (eval $ac_compile) 2>conftest.er1
a848cd7e 14791 ac_status=$?
ac1cb8d3
VS
14792 grep -v '^ *+' conftest.er1 >conftest.err
14793 rm -f conftest.er1
14794 cat conftest.err >&5
a848cd7e
SC
14795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14796 (exit $ac_status); } &&
89be85c2
VS
14797 { ac_try='test -z "$ac_c_werror_flag"
14798 || test ! -s conftest.err'
ac1cb8d3
VS
14799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14800 (eval $ac_try) 2>&5
14801 ac_status=$?
14802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14803 (exit $ac_status); }; } &&
14804 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14806 (eval $ac_try) 2>&5
14807 ac_status=$?
14808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14809 (exit $ac_status); }; }; then
14810 ac_cv_type_char=yes
14811else
14812 echo "$as_me: failed program was:" >&5
14813sed 's/^/| /' conftest.$ac_ext >&5
14814
14815ac_cv_type_char=no
14816fi
ac1cb8d3 14817rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14818fi
14819echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
14820echo "${ECHO_T}$ac_cv_type_char" >&6
14821
14822echo "$as_me:$LINENO: checking size of char" >&5
14823echo $ECHO_N "checking size of char... $ECHO_C" >&6
14824if test "${ac_cv_sizeof_char+set}" = set; then
14825 echo $ECHO_N "(cached) $ECHO_C" >&6
14826else
14827 if test "$ac_cv_type_char" = yes; then
14828 # The cast to unsigned long works around a bug in the HP C Compiler
14829 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14830 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14831 # This bug is HP SR number 8606223364.
14832 if test "$cross_compiling" = yes; then
14833 # Depending upon the size, compute the lo and hi bounds.
14834cat >conftest.$ac_ext <<_ACEOF
14835/* confdefs.h. */
14836_ACEOF
14837cat confdefs.h >>conftest.$ac_ext
14838cat >>conftest.$ac_ext <<_ACEOF
14839/* end confdefs.h. */
14840$ac_includes_default
14841int
14842main ()
14843{
14844static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
14845test_array [0] = 0
14846
14847 ;
14848 return 0;
14849}
14850_ACEOF
14851rm -f conftest.$ac_objext
14852if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14853 (eval $ac_compile) 2>conftest.er1
a848cd7e 14854 ac_status=$?
ac1cb8d3
VS
14855 grep -v '^ *+' conftest.er1 >conftest.err
14856 rm -f conftest.er1
14857 cat conftest.err >&5
a848cd7e
SC
14858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14859 (exit $ac_status); } &&
89be85c2
VS
14860 { ac_try='test -z "$ac_c_werror_flag"
14861 || test ! -s conftest.err'
ac1cb8d3
VS
14862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14863 (eval $ac_try) 2>&5
14864 ac_status=$?
14865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14866 (exit $ac_status); }; } &&
14867 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14869 (eval $ac_try) 2>&5
14870 ac_status=$?
14871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14872 (exit $ac_status); }; }; then
14873 ac_lo=0 ac_mid=0
14874 while :; do
14875 cat >conftest.$ac_ext <<_ACEOF
14876/* confdefs.h. */
14877_ACEOF
14878cat confdefs.h >>conftest.$ac_ext
14879cat >>conftest.$ac_ext <<_ACEOF
14880/* end confdefs.h. */
14881$ac_includes_default
14882int
14883main ()
14884{
14885static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
14886test_array [0] = 0
14887
14888 ;
14889 return 0;
14890}
14891_ACEOF
14892rm -f conftest.$ac_objext
14893if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14894 (eval $ac_compile) 2>conftest.er1
a848cd7e 14895 ac_status=$?
ac1cb8d3
VS
14896 grep -v '^ *+' conftest.er1 >conftest.err
14897 rm -f conftest.er1
14898 cat conftest.err >&5
a848cd7e
SC
14899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14900 (exit $ac_status); } &&
89be85c2
VS
14901 { ac_try='test -z "$ac_c_werror_flag"
14902 || test ! -s conftest.err'
ac1cb8d3
VS
14903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14904 (eval $ac_try) 2>&5
14905 ac_status=$?
14906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14907 (exit $ac_status); }; } &&
14908 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14910 (eval $ac_try) 2>&5
14911 ac_status=$?
14912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14913 (exit $ac_status); }; }; then
14914 ac_hi=$ac_mid; break
14915else
14916 echo "$as_me: failed program was:" >&5
14917sed 's/^/| /' conftest.$ac_ext >&5
14918
14919ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
14920 if test $ac_lo -le $ac_mid; then
14921 ac_lo= ac_hi=
14922 break
14923 fi
14924 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 14925fi
ac1cb8d3 14926rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14927 done
14928else
14929 echo "$as_me: failed program was:" >&5
14930sed 's/^/| /' conftest.$ac_ext >&5
14931
14932cat >conftest.$ac_ext <<_ACEOF
14933/* confdefs.h. */
14934_ACEOF
14935cat confdefs.h >>conftest.$ac_ext
14936cat >>conftest.$ac_ext <<_ACEOF
14937/* end confdefs.h. */
14938$ac_includes_default
14939int
14940main ()
14941{
14942static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
14943test_array [0] = 0
14944
14945 ;
14946 return 0;
14947}
14948_ACEOF
14949rm -f conftest.$ac_objext
14950if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14951 (eval $ac_compile) 2>conftest.er1
a848cd7e 14952 ac_status=$?
ac1cb8d3
VS
14953 grep -v '^ *+' conftest.er1 >conftest.err
14954 rm -f conftest.er1
14955 cat conftest.err >&5
a848cd7e
SC
14956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14957 (exit $ac_status); } &&
89be85c2
VS
14958 { ac_try='test -z "$ac_c_werror_flag"
14959 || test ! -s conftest.err'
ac1cb8d3
VS
14960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14961 (eval $ac_try) 2>&5
14962 ac_status=$?
14963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14964 (exit $ac_status); }; } &&
14965 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14967 (eval $ac_try) 2>&5
14968 ac_status=$?
14969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14970 (exit $ac_status); }; }; then
14971 ac_hi=-1 ac_mid=-1
14972 while :; do
14973 cat >conftest.$ac_ext <<_ACEOF
14974/* confdefs.h. */
14975_ACEOF
14976cat confdefs.h >>conftest.$ac_ext
14977cat >>conftest.$ac_ext <<_ACEOF
14978/* end confdefs.h. */
14979$ac_includes_default
14980int
14981main ()
14982{
14983static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
14984test_array [0] = 0
14985
14986 ;
14987 return 0;
14988}
14989_ACEOF
14990rm -f conftest.$ac_objext
14991if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14992 (eval $ac_compile) 2>conftest.er1
a848cd7e 14993 ac_status=$?
ac1cb8d3
VS
14994 grep -v '^ *+' conftest.er1 >conftest.err
14995 rm -f conftest.er1
14996 cat conftest.err >&5
a848cd7e
SC
14997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14998 (exit $ac_status); } &&
89be85c2
VS
14999 { ac_try='test -z "$ac_c_werror_flag"
15000 || test ! -s conftest.err'
ac1cb8d3
VS
15001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15002 (eval $ac_try) 2>&5
15003 ac_status=$?
15004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15005 (exit $ac_status); }; } &&
15006 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15008 (eval $ac_try) 2>&5
15009 ac_status=$?
15010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15011 (exit $ac_status); }; }; then
15012 ac_lo=$ac_mid; break
15013else
15014 echo "$as_me: failed program was:" >&5
15015sed 's/^/| /' conftest.$ac_ext >&5
15016
15017ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
15018 if test $ac_mid -le $ac_hi; then
15019 ac_lo= ac_hi=
15020 break
15021 fi
15022 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 15023fi
ac1cb8d3 15024rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15025 done
15026else
15027 echo "$as_me: failed program was:" >&5
15028sed 's/^/| /' conftest.$ac_ext >&5
15029
15030ac_lo= ac_hi=
15031fi
ac1cb8d3 15032rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 15033fi
ac1cb8d3 15034rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15035# Binary search between lo and hi bounds.
15036while test "x$ac_lo" != "x$ac_hi"; do
15037 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15038 cat >conftest.$ac_ext <<_ACEOF
15039/* confdefs.h. */
15040_ACEOF
15041cat confdefs.h >>conftest.$ac_ext
15042cat >>conftest.$ac_ext <<_ACEOF
15043/* end confdefs.h. */
15044$ac_includes_default
15045int
15046main ()
15047{
15048static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
15049test_array [0] = 0
15050
15051 ;
15052 return 0;
15053}
15054_ACEOF
15055rm -f conftest.$ac_objext
15056if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15057 (eval $ac_compile) 2>conftest.er1
a848cd7e 15058 ac_status=$?
ac1cb8d3
VS
15059 grep -v '^ *+' conftest.er1 >conftest.err
15060 rm -f conftest.er1
15061 cat conftest.err >&5
a848cd7e
SC
15062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15063 (exit $ac_status); } &&
89be85c2
VS
15064 { ac_try='test -z "$ac_c_werror_flag"
15065 || test ! -s conftest.err'
ac1cb8d3
VS
15066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15067 (eval $ac_try) 2>&5
15068 ac_status=$?
15069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15070 (exit $ac_status); }; } &&
15071 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15073 (eval $ac_try) 2>&5
15074 ac_status=$?
15075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15076 (exit $ac_status); }; }; then
15077 ac_hi=$ac_mid
15078else
15079 echo "$as_me: failed program was:" >&5
15080sed 's/^/| /' conftest.$ac_ext >&5
15081
15082ac_lo=`expr '(' $ac_mid ')' + 1`
15083fi
ac1cb8d3 15084rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15085done
15086case $ac_lo in
15087?*) ac_cv_sizeof_char=$ac_lo;;
15088'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
15089See \`config.log' for more details." >&5
15090echo "$as_me: error: cannot compute sizeof (char), 77
15091See \`config.log' for more details." >&2;}
15092 { (exit 1); exit 1; }; } ;;
15093esac
15094else
15095 if test "$cross_compiling" = yes; then
89be85c2
VS
15096 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15097See \`config.log' for more details." >&5
15098echo "$as_me: error: cannot run test program while cross compiling
15099See \`config.log' for more details." >&2;}
a848cd7e
SC
15100 { (exit 1); exit 1; }; }
15101else
15102 cat >conftest.$ac_ext <<_ACEOF
15103/* confdefs.h. */
15104_ACEOF
15105cat confdefs.h >>conftest.$ac_ext
15106cat >>conftest.$ac_ext <<_ACEOF
15107/* end confdefs.h. */
15108$ac_includes_default
15109long longval () { return (long) (sizeof (char)); }
15110unsigned long ulongval () { return (long) (sizeof (char)); }
15111#include <stdio.h>
15112#include <stdlib.h>
15113int
15114main ()
15115{
15116
15117 FILE *f = fopen ("conftest.val", "w");
15118 if (! f)
15119 exit (1);
15120 if (((long) (sizeof (char))) < 0)
15121 {
15122 long i = longval ();
15123 if (i != ((long) (sizeof (char))))
15124 exit (1);
15125 fprintf (f, "%ld\n", i);
15126 }
15127 else
15128 {
15129 unsigned long i = ulongval ();
15130 if (i != ((long) (sizeof (char))))
15131 exit (1);
15132 fprintf (f, "%lu\n", i);
15133 }
15134 exit (ferror (f) || fclose (f) != 0);
15135
15136 ;
15137 return 0;
15138}
15139_ACEOF
15140rm -f conftest$ac_exeext
15141if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15142 (eval $ac_link) 2>&5
15143 ac_status=$?
15144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15145 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15147 (eval $ac_try) 2>&5
15148 ac_status=$?
15149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15150 (exit $ac_status); }; }; then
15151 ac_cv_sizeof_char=`cat conftest.val`
15152else
15153 echo "$as_me: program exited with status $ac_status" >&5
15154echo "$as_me: failed program was:" >&5
15155sed 's/^/| /' conftest.$ac_ext >&5
15156
15157( exit $ac_status )
15158{ { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
15159See \`config.log' for more details." >&5
15160echo "$as_me: error: cannot compute sizeof (char), 77
15161See \`config.log' for more details." >&2;}
15162 { (exit 1); exit 1; }; }
15163fi
ac1cb8d3 15164rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15165fi
15166fi
15167rm -f conftest.val
15168else
15169 ac_cv_sizeof_char=0
15170fi
15171fi
15172echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
15173echo "${ECHO_T}$ac_cv_sizeof_char" >&6
15174cat >>confdefs.h <<_ACEOF
15175#define SIZEOF_CHAR $ac_cv_sizeof_char
15176_ACEOF
15177
15178
15179echo "$as_me:$LINENO: checking for short" >&5
15180echo $ECHO_N "checking for short... $ECHO_C" >&6
15181if test "${ac_cv_type_short+set}" = set; then
15182 echo $ECHO_N "(cached) $ECHO_C" >&6
15183else
15184 cat >conftest.$ac_ext <<_ACEOF
15185/* confdefs.h. */
15186_ACEOF
15187cat confdefs.h >>conftest.$ac_ext
15188cat >>conftest.$ac_ext <<_ACEOF
15189/* end confdefs.h. */
15190$ac_includes_default
15191int
15192main ()
15193{
15194if ((short *) 0)
15195 return 0;
15196if (sizeof (short))
15197 return 0;
15198 ;
15199 return 0;
15200}
15201_ACEOF
15202rm -f conftest.$ac_objext
15203if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15204 (eval $ac_compile) 2>conftest.er1
a848cd7e 15205 ac_status=$?
ac1cb8d3
VS
15206 grep -v '^ *+' conftest.er1 >conftest.err
15207 rm -f conftest.er1
15208 cat conftest.err >&5
a848cd7e
SC
15209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15210 (exit $ac_status); } &&
89be85c2
VS
15211 { ac_try='test -z "$ac_c_werror_flag"
15212 || test ! -s conftest.err'
ac1cb8d3
VS
15213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15214 (eval $ac_try) 2>&5
15215 ac_status=$?
15216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15217 (exit $ac_status); }; } &&
15218 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15220 (eval $ac_try) 2>&5
15221 ac_status=$?
15222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15223 (exit $ac_status); }; }; then
15224 ac_cv_type_short=yes
15225else
15226 echo "$as_me: failed program was:" >&5
15227sed 's/^/| /' conftest.$ac_ext >&5
15228
15229ac_cv_type_short=no
15230fi
ac1cb8d3 15231rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15232fi
15233echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
15234echo "${ECHO_T}$ac_cv_type_short" >&6
15235
15236echo "$as_me:$LINENO: checking size of short" >&5
15237echo $ECHO_N "checking size of short... $ECHO_C" >&6
15238if test "${ac_cv_sizeof_short+set}" = set; then
15239 echo $ECHO_N "(cached) $ECHO_C" >&6
15240else
15241 if test "$ac_cv_type_short" = yes; then
15242 # The cast to unsigned long works around a bug in the HP C Compiler
15243 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15244 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15245 # This bug is HP SR number 8606223364.
15246 if test "$cross_compiling" = yes; then
15247 # Depending upon the size, compute the lo and hi bounds.
15248cat >conftest.$ac_ext <<_ACEOF
15249/* confdefs.h. */
15250_ACEOF
15251cat confdefs.h >>conftest.$ac_ext
15252cat >>conftest.$ac_ext <<_ACEOF
15253/* end confdefs.h. */
15254$ac_includes_default
15255int
15256main ()
15257{
15258static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
15259test_array [0] = 0
15260
15261 ;
15262 return 0;
15263}
15264_ACEOF
15265rm -f conftest.$ac_objext
15266if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15267 (eval $ac_compile) 2>conftest.er1
a848cd7e 15268 ac_status=$?
ac1cb8d3
VS
15269 grep -v '^ *+' conftest.er1 >conftest.err
15270 rm -f conftest.er1
15271 cat conftest.err >&5
a848cd7e
SC
15272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15273 (exit $ac_status); } &&
89be85c2
VS
15274 { ac_try='test -z "$ac_c_werror_flag"
15275 || test ! -s conftest.err'
ac1cb8d3
VS
15276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15277 (eval $ac_try) 2>&5
15278 ac_status=$?
15279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15280 (exit $ac_status); }; } &&
15281 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15283 (eval $ac_try) 2>&5
15284 ac_status=$?
15285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15286 (exit $ac_status); }; }; then
15287 ac_lo=0 ac_mid=0
15288 while :; do
15289 cat >conftest.$ac_ext <<_ACEOF
15290/* confdefs.h. */
15291_ACEOF
15292cat confdefs.h >>conftest.$ac_ext
15293cat >>conftest.$ac_ext <<_ACEOF
15294/* end confdefs.h. */
15295$ac_includes_default
15296int
15297main ()
15298{
15299static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
15300test_array [0] = 0
15301
15302 ;
15303 return 0;
15304}
15305_ACEOF
15306rm -f conftest.$ac_objext
15307if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15308 (eval $ac_compile) 2>conftest.er1
a848cd7e 15309 ac_status=$?
ac1cb8d3
VS
15310 grep -v '^ *+' conftest.er1 >conftest.err
15311 rm -f conftest.er1
15312 cat conftest.err >&5
a848cd7e
SC
15313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15314 (exit $ac_status); } &&
89be85c2
VS
15315 { ac_try='test -z "$ac_c_werror_flag"
15316 || test ! -s conftest.err'
ac1cb8d3
VS
15317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15318 (eval $ac_try) 2>&5
15319 ac_status=$?
15320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15321 (exit $ac_status); }; } &&
15322 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15324 (eval $ac_try) 2>&5
15325 ac_status=$?
15326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15327 (exit $ac_status); }; }; then
15328 ac_hi=$ac_mid; break
15329else
15330 echo "$as_me: failed program was:" >&5
15331sed 's/^/| /' conftest.$ac_ext >&5
15332
15333ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
15334 if test $ac_lo -le $ac_mid; then
15335 ac_lo= ac_hi=
15336 break
15337 fi
15338 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 15339fi
ac1cb8d3 15340rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15341 done
15342else
15343 echo "$as_me: failed program was:" >&5
15344sed 's/^/| /' conftest.$ac_ext >&5
15345
15346cat >conftest.$ac_ext <<_ACEOF
15347/* confdefs.h. */
15348_ACEOF
15349cat confdefs.h >>conftest.$ac_ext
15350cat >>conftest.$ac_ext <<_ACEOF
15351/* end confdefs.h. */
15352$ac_includes_default
15353int
15354main ()
15355{
15356static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
15357test_array [0] = 0
15358
15359 ;
15360 return 0;
15361}
15362_ACEOF
15363rm -f conftest.$ac_objext
15364if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15365 (eval $ac_compile) 2>conftest.er1
a848cd7e 15366 ac_status=$?
ac1cb8d3
VS
15367 grep -v '^ *+' conftest.er1 >conftest.err
15368 rm -f conftest.er1
15369 cat conftest.err >&5
a848cd7e
SC
15370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15371 (exit $ac_status); } &&
89be85c2
VS
15372 { ac_try='test -z "$ac_c_werror_flag"
15373 || test ! -s conftest.err'
ac1cb8d3
VS
15374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15375 (eval $ac_try) 2>&5
15376 ac_status=$?
15377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15378 (exit $ac_status); }; } &&
15379 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15381 (eval $ac_try) 2>&5
15382 ac_status=$?
15383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15384 (exit $ac_status); }; }; then
15385 ac_hi=-1 ac_mid=-1
15386 while :; do
15387 cat >conftest.$ac_ext <<_ACEOF
15388/* confdefs.h. */
15389_ACEOF
15390cat confdefs.h >>conftest.$ac_ext
15391cat >>conftest.$ac_ext <<_ACEOF
15392/* end confdefs.h. */
15393$ac_includes_default
15394int
15395main ()
15396{
15397static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
15398test_array [0] = 0
15399
15400 ;
15401 return 0;
15402}
15403_ACEOF
15404rm -f conftest.$ac_objext
15405if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15406 (eval $ac_compile) 2>conftest.er1
a848cd7e 15407 ac_status=$?
ac1cb8d3
VS
15408 grep -v '^ *+' conftest.er1 >conftest.err
15409 rm -f conftest.er1
15410 cat conftest.err >&5
a848cd7e
SC
15411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15412 (exit $ac_status); } &&
89be85c2
VS
15413 { ac_try='test -z "$ac_c_werror_flag"
15414 || test ! -s conftest.err'
ac1cb8d3
VS
15415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15416 (eval $ac_try) 2>&5
15417 ac_status=$?
15418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15419 (exit $ac_status); }; } &&
15420 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15422 (eval $ac_try) 2>&5
15423 ac_status=$?
15424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15425 (exit $ac_status); }; }; then
15426 ac_lo=$ac_mid; break
15427else
15428 echo "$as_me: failed program was:" >&5
15429sed 's/^/| /' conftest.$ac_ext >&5
15430
15431ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
15432 if test $ac_mid -le $ac_hi; then
15433 ac_lo= ac_hi=
15434 break
15435 fi
15436 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 15437fi
ac1cb8d3 15438rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15439 done
15440else
15441 echo "$as_me: failed program was:" >&5
15442sed 's/^/| /' conftest.$ac_ext >&5
15443
15444ac_lo= ac_hi=
15445fi
ac1cb8d3 15446rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 15447fi
ac1cb8d3 15448rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15449# Binary search between lo and hi bounds.
15450while test "x$ac_lo" != "x$ac_hi"; do
15451 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15452 cat >conftest.$ac_ext <<_ACEOF
15453/* confdefs.h. */
15454_ACEOF
15455cat confdefs.h >>conftest.$ac_ext
15456cat >>conftest.$ac_ext <<_ACEOF
15457/* end confdefs.h. */
15458$ac_includes_default
15459int
15460main ()
15461{
15462static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
15463test_array [0] = 0
15464
15465 ;
15466 return 0;
15467}
15468_ACEOF
15469rm -f conftest.$ac_objext
15470if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15471 (eval $ac_compile) 2>conftest.er1
a848cd7e 15472 ac_status=$?
ac1cb8d3
VS
15473 grep -v '^ *+' conftest.er1 >conftest.err
15474 rm -f conftest.er1
15475 cat conftest.err >&5
a848cd7e
SC
15476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15477 (exit $ac_status); } &&
89be85c2
VS
15478 { ac_try='test -z "$ac_c_werror_flag"
15479 || test ! -s conftest.err'
ac1cb8d3
VS
15480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15481 (eval $ac_try) 2>&5
15482 ac_status=$?
15483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15484 (exit $ac_status); }; } &&
15485 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15487 (eval $ac_try) 2>&5
15488 ac_status=$?
15489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15490 (exit $ac_status); }; }; then
15491 ac_hi=$ac_mid
15492else
15493 echo "$as_me: failed program was:" >&5
15494sed 's/^/| /' conftest.$ac_ext >&5
15495
15496ac_lo=`expr '(' $ac_mid ')' + 1`
15497fi
ac1cb8d3 15498rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15499done
15500case $ac_lo in
15501?*) ac_cv_sizeof_short=$ac_lo;;
15502'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
15503See \`config.log' for more details." >&5
15504echo "$as_me: error: cannot compute sizeof (short), 77
15505See \`config.log' for more details." >&2;}
15506 { (exit 1); exit 1; }; } ;;
15507esac
15508else
15509 if test "$cross_compiling" = yes; then
89be85c2
VS
15510 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15511See \`config.log' for more details." >&5
15512echo "$as_me: error: cannot run test program while cross compiling
15513See \`config.log' for more details." >&2;}
a848cd7e
SC
15514 { (exit 1); exit 1; }; }
15515else
15516 cat >conftest.$ac_ext <<_ACEOF
15517/* confdefs.h. */
15518_ACEOF
15519cat confdefs.h >>conftest.$ac_ext
15520cat >>conftest.$ac_ext <<_ACEOF
15521/* end confdefs.h. */
15522$ac_includes_default
15523long longval () { return (long) (sizeof (short)); }
15524unsigned long ulongval () { return (long) (sizeof (short)); }
15525#include <stdio.h>
15526#include <stdlib.h>
15527int
15528main ()
15529{
15530
15531 FILE *f = fopen ("conftest.val", "w");
15532 if (! f)
15533 exit (1);
15534 if (((long) (sizeof (short))) < 0)
15535 {
15536 long i = longval ();
15537 if (i != ((long) (sizeof (short))))
15538 exit (1);
15539 fprintf (f, "%ld\n", i);
15540 }
15541 else
15542 {
15543 unsigned long i = ulongval ();
15544 if (i != ((long) (sizeof (short))))
15545 exit (1);
15546 fprintf (f, "%lu\n", i);
15547 }
15548 exit (ferror (f) || fclose (f) != 0);
15549
15550 ;
15551 return 0;
15552}
15553_ACEOF
15554rm -f conftest$ac_exeext
15555if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15556 (eval $ac_link) 2>&5
15557 ac_status=$?
15558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15559 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15561 (eval $ac_try) 2>&5
15562 ac_status=$?
15563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15564 (exit $ac_status); }; }; then
15565 ac_cv_sizeof_short=`cat conftest.val`
15566else
15567 echo "$as_me: program exited with status $ac_status" >&5
15568echo "$as_me: failed program was:" >&5
15569sed 's/^/| /' conftest.$ac_ext >&5
15570
15571( exit $ac_status )
15572{ { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
15573See \`config.log' for more details." >&5
15574echo "$as_me: error: cannot compute sizeof (short), 77
15575See \`config.log' for more details." >&2;}
15576 { (exit 1); exit 1; }; }
15577fi
ac1cb8d3 15578rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15579fi
15580fi
15581rm -f conftest.val
15582else
15583 ac_cv_sizeof_short=0
15584fi
15585fi
15586echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
15587echo "${ECHO_T}$ac_cv_sizeof_short" >&6
15588cat >>confdefs.h <<_ACEOF
15589#define SIZEOF_SHORT $ac_cv_sizeof_short
15590_ACEOF
15591
15592
15593echo "$as_me:$LINENO: checking for void *" >&5
15594echo $ECHO_N "checking for void *... $ECHO_C" >&6
15595if test "${ac_cv_type_void_p+set}" = set; then
15596 echo $ECHO_N "(cached) $ECHO_C" >&6
15597else
15598 cat >conftest.$ac_ext <<_ACEOF
15599/* confdefs.h. */
15600_ACEOF
15601cat confdefs.h >>conftest.$ac_ext
15602cat >>conftest.$ac_ext <<_ACEOF
15603/* end confdefs.h. */
15604$ac_includes_default
15605int
15606main ()
15607{
15608if ((void * *) 0)
15609 return 0;
15610if (sizeof (void *))
15611 return 0;
15612 ;
15613 return 0;
15614}
15615_ACEOF
15616rm -f conftest.$ac_objext
15617if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15618 (eval $ac_compile) 2>conftest.er1
a848cd7e 15619 ac_status=$?
ac1cb8d3
VS
15620 grep -v '^ *+' conftest.er1 >conftest.err
15621 rm -f conftest.er1
15622 cat conftest.err >&5
a848cd7e
SC
15623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15624 (exit $ac_status); } &&
89be85c2
VS
15625 { ac_try='test -z "$ac_c_werror_flag"
15626 || test ! -s conftest.err'
ac1cb8d3
VS
15627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15628 (eval $ac_try) 2>&5
15629 ac_status=$?
15630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15631 (exit $ac_status); }; } &&
15632 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15634 (eval $ac_try) 2>&5
15635 ac_status=$?
15636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15637 (exit $ac_status); }; }; then
15638 ac_cv_type_void_p=yes
15639else
15640 echo "$as_me: failed program was:" >&5
15641sed 's/^/| /' conftest.$ac_ext >&5
15642
15643ac_cv_type_void_p=no
15644fi
ac1cb8d3 15645rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15646fi
15647echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
15648echo "${ECHO_T}$ac_cv_type_void_p" >&6
15649
15650echo "$as_me:$LINENO: checking size of void *" >&5
15651echo $ECHO_N "checking size of void *... $ECHO_C" >&6
15652if test "${ac_cv_sizeof_void_p+set}" = set; then
15653 echo $ECHO_N "(cached) $ECHO_C" >&6
15654else
15655 if test "$ac_cv_type_void_p" = yes; then
15656 # The cast to unsigned long works around a bug in the HP C Compiler
15657 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15658 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15659 # This bug is HP SR number 8606223364.
15660 if test "$cross_compiling" = yes; then
15661 # Depending upon the size, compute the lo and hi bounds.
15662cat >conftest.$ac_ext <<_ACEOF
15663/* confdefs.h. */
15664_ACEOF
15665cat confdefs.h >>conftest.$ac_ext
15666cat >>conftest.$ac_ext <<_ACEOF
15667/* end confdefs.h. */
15668$ac_includes_default
15669int
15670main ()
15671{
15672static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
15673test_array [0] = 0
15674
15675 ;
15676 return 0;
15677}
15678_ACEOF
15679rm -f conftest.$ac_objext
15680if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15681 (eval $ac_compile) 2>conftest.er1
a848cd7e 15682 ac_status=$?
ac1cb8d3
VS
15683 grep -v '^ *+' conftest.er1 >conftest.err
15684 rm -f conftest.er1
15685 cat conftest.err >&5
a848cd7e
SC
15686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15687 (exit $ac_status); } &&
89be85c2
VS
15688 { ac_try='test -z "$ac_c_werror_flag"
15689 || test ! -s conftest.err'
ac1cb8d3
VS
15690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15691 (eval $ac_try) 2>&5
15692 ac_status=$?
15693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15694 (exit $ac_status); }; } &&
15695 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15697 (eval $ac_try) 2>&5
15698 ac_status=$?
15699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15700 (exit $ac_status); }; }; then
15701 ac_lo=0 ac_mid=0
15702 while :; do
15703 cat >conftest.$ac_ext <<_ACEOF
15704/* confdefs.h. */
15705_ACEOF
15706cat confdefs.h >>conftest.$ac_ext
15707cat >>conftest.$ac_ext <<_ACEOF
15708/* end confdefs.h. */
15709$ac_includes_default
15710int
15711main ()
15712{
15713static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
15714test_array [0] = 0
15715
15716 ;
15717 return 0;
15718}
15719_ACEOF
15720rm -f conftest.$ac_objext
15721if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15722 (eval $ac_compile) 2>conftest.er1
a848cd7e 15723 ac_status=$?
ac1cb8d3
VS
15724 grep -v '^ *+' conftest.er1 >conftest.err
15725 rm -f conftest.er1
15726 cat conftest.err >&5
a848cd7e
SC
15727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15728 (exit $ac_status); } &&
89be85c2
VS
15729 { ac_try='test -z "$ac_c_werror_flag"
15730 || test ! -s conftest.err'
ac1cb8d3
VS
15731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15732 (eval $ac_try) 2>&5
15733 ac_status=$?
15734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15735 (exit $ac_status); }; } &&
15736 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15738 (eval $ac_try) 2>&5
15739 ac_status=$?
15740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15741 (exit $ac_status); }; }; then
15742 ac_hi=$ac_mid; break
15743else
15744 echo "$as_me: failed program was:" >&5
15745sed 's/^/| /' conftest.$ac_ext >&5
15746
15747ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
15748 if test $ac_lo -le $ac_mid; then
15749 ac_lo= ac_hi=
15750 break
15751 fi
15752 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 15753fi
ac1cb8d3 15754rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15755 done
15756else
15757 echo "$as_me: failed program was:" >&5
15758sed 's/^/| /' conftest.$ac_ext >&5
15759
15760cat >conftest.$ac_ext <<_ACEOF
15761/* confdefs.h. */
15762_ACEOF
15763cat confdefs.h >>conftest.$ac_ext
15764cat >>conftest.$ac_ext <<_ACEOF
15765/* end confdefs.h. */
15766$ac_includes_default
15767int
15768main ()
15769{
15770static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
15771test_array [0] = 0
15772
15773 ;
15774 return 0;
15775}
15776_ACEOF
15777rm -f conftest.$ac_objext
15778if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15779 (eval $ac_compile) 2>conftest.er1
a848cd7e 15780 ac_status=$?
ac1cb8d3
VS
15781 grep -v '^ *+' conftest.er1 >conftest.err
15782 rm -f conftest.er1
15783 cat conftest.err >&5
a848cd7e
SC
15784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15785 (exit $ac_status); } &&
89be85c2
VS
15786 { ac_try='test -z "$ac_c_werror_flag"
15787 || test ! -s conftest.err'
ac1cb8d3
VS
15788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15789 (eval $ac_try) 2>&5
15790 ac_status=$?
15791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15792 (exit $ac_status); }; } &&
15793 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15795 (eval $ac_try) 2>&5
15796 ac_status=$?
15797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15798 (exit $ac_status); }; }; then
15799 ac_hi=-1 ac_mid=-1
15800 while :; do
15801 cat >conftest.$ac_ext <<_ACEOF
15802/* confdefs.h. */
15803_ACEOF
15804cat confdefs.h >>conftest.$ac_ext
15805cat >>conftest.$ac_ext <<_ACEOF
15806/* end confdefs.h. */
15807$ac_includes_default
15808int
15809main ()
15810{
15811static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
15812test_array [0] = 0
15813
15814 ;
15815 return 0;
15816}
15817_ACEOF
15818rm -f conftest.$ac_objext
15819if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15820 (eval $ac_compile) 2>conftest.er1
a848cd7e 15821 ac_status=$?
ac1cb8d3
VS
15822 grep -v '^ *+' conftest.er1 >conftest.err
15823 rm -f conftest.er1
15824 cat conftest.err >&5
a848cd7e
SC
15825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15826 (exit $ac_status); } &&
89be85c2
VS
15827 { ac_try='test -z "$ac_c_werror_flag"
15828 || test ! -s conftest.err'
ac1cb8d3
VS
15829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15830 (eval $ac_try) 2>&5
15831 ac_status=$?
15832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15833 (exit $ac_status); }; } &&
15834 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15836 (eval $ac_try) 2>&5
15837 ac_status=$?
15838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15839 (exit $ac_status); }; }; then
15840 ac_lo=$ac_mid; break
15841else
15842 echo "$as_me: failed program was:" >&5
15843sed 's/^/| /' conftest.$ac_ext >&5
15844
15845ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
15846 if test $ac_mid -le $ac_hi; then
15847 ac_lo= ac_hi=
15848 break
15849 fi
15850 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 15851fi
ac1cb8d3 15852rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15853 done
15854else
15855 echo "$as_me: failed program was:" >&5
15856sed 's/^/| /' conftest.$ac_ext >&5
15857
15858ac_lo= ac_hi=
15859fi
ac1cb8d3 15860rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 15861fi
ac1cb8d3 15862rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15863# Binary search between lo and hi bounds.
15864while test "x$ac_lo" != "x$ac_hi"; do
15865 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15866 cat >conftest.$ac_ext <<_ACEOF
15867/* confdefs.h. */
15868_ACEOF
15869cat confdefs.h >>conftest.$ac_ext
15870cat >>conftest.$ac_ext <<_ACEOF
15871/* end confdefs.h. */
15872$ac_includes_default
15873int
15874main ()
15875{
15876static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
15877test_array [0] = 0
15878
15879 ;
15880 return 0;
15881}
15882_ACEOF
15883rm -f conftest.$ac_objext
15884if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15885 (eval $ac_compile) 2>conftest.er1
a848cd7e 15886 ac_status=$?
ac1cb8d3
VS
15887 grep -v '^ *+' conftest.er1 >conftest.err
15888 rm -f conftest.er1
15889 cat conftest.err >&5
a848cd7e
SC
15890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15891 (exit $ac_status); } &&
89be85c2
VS
15892 { ac_try='test -z "$ac_c_werror_flag"
15893 || test ! -s conftest.err'
ac1cb8d3
VS
15894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15895 (eval $ac_try) 2>&5
15896 ac_status=$?
15897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15898 (exit $ac_status); }; } &&
15899 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15901 (eval $ac_try) 2>&5
15902 ac_status=$?
15903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15904 (exit $ac_status); }; }; then
15905 ac_hi=$ac_mid
15906else
15907 echo "$as_me: failed program was:" >&5
15908sed 's/^/| /' conftest.$ac_ext >&5
15909
15910ac_lo=`expr '(' $ac_mid ')' + 1`
15911fi
ac1cb8d3 15912rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15913done
15914case $ac_lo in
15915?*) ac_cv_sizeof_void_p=$ac_lo;;
15916'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
15917See \`config.log' for more details." >&5
15918echo "$as_me: error: cannot compute sizeof (void *), 77
15919See \`config.log' for more details." >&2;}
15920 { (exit 1); exit 1; }; } ;;
15921esac
15922else
15923 if test "$cross_compiling" = yes; then
89be85c2
VS
15924 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15925See \`config.log' for more details." >&5
15926echo "$as_me: error: cannot run test program while cross compiling
15927See \`config.log' for more details." >&2;}
a848cd7e
SC
15928 { (exit 1); exit 1; }; }
15929else
15930 cat >conftest.$ac_ext <<_ACEOF
15931/* confdefs.h. */
15932_ACEOF
15933cat confdefs.h >>conftest.$ac_ext
15934cat >>conftest.$ac_ext <<_ACEOF
15935/* end confdefs.h. */
15936$ac_includes_default
15937long longval () { return (long) (sizeof (void *)); }
15938unsigned long ulongval () { return (long) (sizeof (void *)); }
15939#include <stdio.h>
15940#include <stdlib.h>
15941int
15942main ()
15943{
15944
15945 FILE *f = fopen ("conftest.val", "w");
15946 if (! f)
15947 exit (1);
15948 if (((long) (sizeof (void *))) < 0)
15949 {
15950 long i = longval ();
15951 if (i != ((long) (sizeof (void *))))
15952 exit (1);
15953 fprintf (f, "%ld\n", i);
15954 }
15955 else
15956 {
15957 unsigned long i = ulongval ();
15958 if (i != ((long) (sizeof (void *))))
15959 exit (1);
15960 fprintf (f, "%lu\n", i);
15961 }
15962 exit (ferror (f) || fclose (f) != 0);
15963
15964 ;
15965 return 0;
15966}
15967_ACEOF
15968rm -f conftest$ac_exeext
15969if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15970 (eval $ac_link) 2>&5
15971 ac_status=$?
15972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15973 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15975 (eval $ac_try) 2>&5
15976 ac_status=$?
15977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15978 (exit $ac_status); }; }; then
15979 ac_cv_sizeof_void_p=`cat conftest.val`
15980else
15981 echo "$as_me: program exited with status $ac_status" >&5
15982echo "$as_me: failed program was:" >&5
15983sed 's/^/| /' conftest.$ac_ext >&5
15984
15985( exit $ac_status )
15986{ { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
15987See \`config.log' for more details." >&5
15988echo "$as_me: error: cannot compute sizeof (void *), 77
15989See \`config.log' for more details." >&2;}
15990 { (exit 1); exit 1; }; }
15991fi
ac1cb8d3 15992rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15993fi
15994fi
15995rm -f conftest.val
15996else
15997 ac_cv_sizeof_void_p=0
15998fi
15999fi
16000echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
16001echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
16002cat >>confdefs.h <<_ACEOF
16003#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
16004_ACEOF
16005
16006
16007echo "$as_me:$LINENO: checking for int" >&5
16008echo $ECHO_N "checking for int... $ECHO_C" >&6
16009if test "${ac_cv_type_int+set}" = set; then
16010 echo $ECHO_N "(cached) $ECHO_C" >&6
16011else
16012 cat >conftest.$ac_ext <<_ACEOF
16013/* confdefs.h. */
16014_ACEOF
16015cat confdefs.h >>conftest.$ac_ext
16016cat >>conftest.$ac_ext <<_ACEOF
16017/* end confdefs.h. */
16018$ac_includes_default
16019int
16020main ()
16021{
16022if ((int *) 0)
16023 return 0;
16024if (sizeof (int))
16025 return 0;
16026 ;
16027 return 0;
16028}
16029_ACEOF
16030rm -f conftest.$ac_objext
16031if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16032 (eval $ac_compile) 2>conftest.er1
a848cd7e 16033 ac_status=$?
ac1cb8d3
VS
16034 grep -v '^ *+' conftest.er1 >conftest.err
16035 rm -f conftest.er1
16036 cat conftest.err >&5
a848cd7e
SC
16037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16038 (exit $ac_status); } &&
89be85c2
VS
16039 { ac_try='test -z "$ac_c_werror_flag"
16040 || test ! -s conftest.err'
ac1cb8d3
VS
16041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16042 (eval $ac_try) 2>&5
16043 ac_status=$?
16044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16045 (exit $ac_status); }; } &&
16046 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16048 (eval $ac_try) 2>&5
16049 ac_status=$?
16050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16051 (exit $ac_status); }; }; then
16052 ac_cv_type_int=yes
16053else
16054 echo "$as_me: failed program was:" >&5
16055sed 's/^/| /' conftest.$ac_ext >&5
16056
16057ac_cv_type_int=no
16058fi
ac1cb8d3 16059rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16060fi
16061echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
16062echo "${ECHO_T}$ac_cv_type_int" >&6
16063
16064echo "$as_me:$LINENO: checking size of int" >&5
16065echo $ECHO_N "checking size of int... $ECHO_C" >&6
16066if test "${ac_cv_sizeof_int+set}" = set; then
16067 echo $ECHO_N "(cached) $ECHO_C" >&6
16068else
16069 if test "$ac_cv_type_int" = yes; then
16070 # The cast to unsigned long works around a bug in the HP C Compiler
16071 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16072 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16073 # This bug is HP SR number 8606223364.
16074 if test "$cross_compiling" = yes; then
16075 # Depending upon the size, compute the lo and hi bounds.
16076cat >conftest.$ac_ext <<_ACEOF
16077/* confdefs.h. */
16078_ACEOF
16079cat confdefs.h >>conftest.$ac_ext
16080cat >>conftest.$ac_ext <<_ACEOF
16081/* end confdefs.h. */
16082$ac_includes_default
16083int
16084main ()
16085{
16086static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
16087test_array [0] = 0
16088
16089 ;
16090 return 0;
16091}
16092_ACEOF
16093rm -f conftest.$ac_objext
16094if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16095 (eval $ac_compile) 2>conftest.er1
a848cd7e 16096 ac_status=$?
ac1cb8d3
VS
16097 grep -v '^ *+' conftest.er1 >conftest.err
16098 rm -f conftest.er1
16099 cat conftest.err >&5
a848cd7e
SC
16100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16101 (exit $ac_status); } &&
89be85c2
VS
16102 { ac_try='test -z "$ac_c_werror_flag"
16103 || test ! -s conftest.err'
ac1cb8d3
VS
16104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16105 (eval $ac_try) 2>&5
16106 ac_status=$?
16107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16108 (exit $ac_status); }; } &&
16109 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16111 (eval $ac_try) 2>&5
16112 ac_status=$?
16113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16114 (exit $ac_status); }; }; then
16115 ac_lo=0 ac_mid=0
16116 while :; do
16117 cat >conftest.$ac_ext <<_ACEOF
16118/* confdefs.h. */
16119_ACEOF
16120cat confdefs.h >>conftest.$ac_ext
16121cat >>conftest.$ac_ext <<_ACEOF
16122/* end confdefs.h. */
16123$ac_includes_default
16124int
16125main ()
16126{
16127static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
16128test_array [0] = 0
16129
16130 ;
16131 return 0;
16132}
16133_ACEOF
16134rm -f conftest.$ac_objext
16135if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16136 (eval $ac_compile) 2>conftest.er1
a848cd7e 16137 ac_status=$?
ac1cb8d3
VS
16138 grep -v '^ *+' conftest.er1 >conftest.err
16139 rm -f conftest.er1
16140 cat conftest.err >&5
a848cd7e
SC
16141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16142 (exit $ac_status); } &&
89be85c2
VS
16143 { ac_try='test -z "$ac_c_werror_flag"
16144 || test ! -s conftest.err'
ac1cb8d3
VS
16145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16146 (eval $ac_try) 2>&5
16147 ac_status=$?
16148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16149 (exit $ac_status); }; } &&
16150 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16152 (eval $ac_try) 2>&5
16153 ac_status=$?
16154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16155 (exit $ac_status); }; }; then
16156 ac_hi=$ac_mid; break
16157else
16158 echo "$as_me: failed program was:" >&5
16159sed 's/^/| /' conftest.$ac_ext >&5
16160
16161ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
16162 if test $ac_lo -le $ac_mid; then
16163 ac_lo= ac_hi=
16164 break
16165 fi
16166 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 16167fi
ac1cb8d3 16168rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16169 done
16170else
16171 echo "$as_me: failed program was:" >&5
16172sed 's/^/| /' conftest.$ac_ext >&5
16173
16174cat >conftest.$ac_ext <<_ACEOF
16175/* confdefs.h. */
16176_ACEOF
16177cat confdefs.h >>conftest.$ac_ext
16178cat >>conftest.$ac_ext <<_ACEOF
16179/* end confdefs.h. */
16180$ac_includes_default
16181int
16182main ()
16183{
16184static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
16185test_array [0] = 0
16186
16187 ;
16188 return 0;
16189}
16190_ACEOF
16191rm -f conftest.$ac_objext
16192if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16193 (eval $ac_compile) 2>conftest.er1
a848cd7e 16194 ac_status=$?
ac1cb8d3
VS
16195 grep -v '^ *+' conftest.er1 >conftest.err
16196 rm -f conftest.er1
16197 cat conftest.err >&5
a848cd7e
SC
16198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16199 (exit $ac_status); } &&
89be85c2
VS
16200 { ac_try='test -z "$ac_c_werror_flag"
16201 || test ! -s conftest.err'
ac1cb8d3
VS
16202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16203 (eval $ac_try) 2>&5
16204 ac_status=$?
16205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16206 (exit $ac_status); }; } &&
16207 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16209 (eval $ac_try) 2>&5
16210 ac_status=$?
16211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16212 (exit $ac_status); }; }; then
16213 ac_hi=-1 ac_mid=-1
16214 while :; do
16215 cat >conftest.$ac_ext <<_ACEOF
16216/* confdefs.h. */
16217_ACEOF
16218cat confdefs.h >>conftest.$ac_ext
16219cat >>conftest.$ac_ext <<_ACEOF
16220/* end confdefs.h. */
16221$ac_includes_default
16222int
16223main ()
16224{
16225static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
16226test_array [0] = 0
16227
16228 ;
16229 return 0;
16230}
16231_ACEOF
16232rm -f conftest.$ac_objext
16233if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16234 (eval $ac_compile) 2>conftest.er1
a848cd7e 16235 ac_status=$?
ac1cb8d3
VS
16236 grep -v '^ *+' conftest.er1 >conftest.err
16237 rm -f conftest.er1
16238 cat conftest.err >&5
a848cd7e
SC
16239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16240 (exit $ac_status); } &&
89be85c2
VS
16241 { ac_try='test -z "$ac_c_werror_flag"
16242 || test ! -s conftest.err'
ac1cb8d3
VS
16243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16244 (eval $ac_try) 2>&5
16245 ac_status=$?
16246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16247 (exit $ac_status); }; } &&
16248 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16250 (eval $ac_try) 2>&5
16251 ac_status=$?
16252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16253 (exit $ac_status); }; }; then
16254 ac_lo=$ac_mid; break
16255else
16256 echo "$as_me: failed program was:" >&5
16257sed 's/^/| /' conftest.$ac_ext >&5
16258
16259ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
16260 if test $ac_mid -le $ac_hi; then
16261 ac_lo= ac_hi=
16262 break
16263 fi
16264 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 16265fi
ac1cb8d3 16266rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16267 done
16268else
16269 echo "$as_me: failed program was:" >&5
16270sed 's/^/| /' conftest.$ac_ext >&5
16271
16272ac_lo= ac_hi=
16273fi
ac1cb8d3 16274rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 16275fi
ac1cb8d3 16276rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16277# Binary search between lo and hi bounds.
16278while test "x$ac_lo" != "x$ac_hi"; do
16279 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16280 cat >conftest.$ac_ext <<_ACEOF
16281/* confdefs.h. */
16282_ACEOF
16283cat confdefs.h >>conftest.$ac_ext
16284cat >>conftest.$ac_ext <<_ACEOF
16285/* end confdefs.h. */
16286$ac_includes_default
16287int
16288main ()
16289{
16290static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
16291test_array [0] = 0
16292
16293 ;
16294 return 0;
16295}
16296_ACEOF
16297rm -f conftest.$ac_objext
16298if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16299 (eval $ac_compile) 2>conftest.er1
a848cd7e 16300 ac_status=$?
ac1cb8d3
VS
16301 grep -v '^ *+' conftest.er1 >conftest.err
16302 rm -f conftest.er1
16303 cat conftest.err >&5
a848cd7e
SC
16304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16305 (exit $ac_status); } &&
89be85c2
VS
16306 { ac_try='test -z "$ac_c_werror_flag"
16307 || test ! -s conftest.err'
ac1cb8d3
VS
16308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16309 (eval $ac_try) 2>&5
16310 ac_status=$?
16311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16312 (exit $ac_status); }; } &&
16313 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16315 (eval $ac_try) 2>&5
16316 ac_status=$?
16317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16318 (exit $ac_status); }; }; then
16319 ac_hi=$ac_mid
16320else
16321 echo "$as_me: failed program was:" >&5
16322sed 's/^/| /' conftest.$ac_ext >&5
16323
16324ac_lo=`expr '(' $ac_mid ')' + 1`
16325fi
ac1cb8d3 16326rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16327done
16328case $ac_lo in
16329?*) ac_cv_sizeof_int=$ac_lo;;
16330'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
16331See \`config.log' for more details." >&5
16332echo "$as_me: error: cannot compute sizeof (int), 77
16333See \`config.log' for more details." >&2;}
16334 { (exit 1); exit 1; }; } ;;
16335esac
16336else
16337 if test "$cross_compiling" = yes; then
89be85c2
VS
16338 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
16339See \`config.log' for more details." >&5
16340echo "$as_me: error: cannot run test program while cross compiling
16341See \`config.log' for more details." >&2;}
a848cd7e
SC
16342 { (exit 1); exit 1; }; }
16343else
16344 cat >conftest.$ac_ext <<_ACEOF
16345/* confdefs.h. */
16346_ACEOF
16347cat confdefs.h >>conftest.$ac_ext
16348cat >>conftest.$ac_ext <<_ACEOF
16349/* end confdefs.h. */
16350$ac_includes_default
16351long longval () { return (long) (sizeof (int)); }
16352unsigned long ulongval () { return (long) (sizeof (int)); }
16353#include <stdio.h>
16354#include <stdlib.h>
16355int
16356main ()
16357{
16358
16359 FILE *f = fopen ("conftest.val", "w");
16360 if (! f)
16361 exit (1);
16362 if (((long) (sizeof (int))) < 0)
16363 {
16364 long i = longval ();
16365 if (i != ((long) (sizeof (int))))
16366 exit (1);
16367 fprintf (f, "%ld\n", i);
16368 }
16369 else
16370 {
16371 unsigned long i = ulongval ();
16372 if (i != ((long) (sizeof (int))))
16373 exit (1);
16374 fprintf (f, "%lu\n", i);
16375 }
16376 exit (ferror (f) || fclose (f) != 0);
16377
16378 ;
16379 return 0;
16380}
16381_ACEOF
16382rm -f conftest$ac_exeext
16383if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16384 (eval $ac_link) 2>&5
16385 ac_status=$?
16386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16387 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16389 (eval $ac_try) 2>&5
16390 ac_status=$?
16391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16392 (exit $ac_status); }; }; then
16393 ac_cv_sizeof_int=`cat conftest.val`
16394else
16395 echo "$as_me: program exited with status $ac_status" >&5
16396echo "$as_me: failed program was:" >&5
16397sed 's/^/| /' conftest.$ac_ext >&5
16398
16399( exit $ac_status )
16400{ { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
16401See \`config.log' for more details." >&5
16402echo "$as_me: error: cannot compute sizeof (int), 77
16403See \`config.log' for more details." >&2;}
16404 { (exit 1); exit 1; }; }
16405fi
ac1cb8d3 16406rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16407fi
16408fi
16409rm -f conftest.val
16410else
16411 ac_cv_sizeof_int=0
16412fi
16413fi
16414echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
16415echo "${ECHO_T}$ac_cv_sizeof_int" >&6
16416cat >>confdefs.h <<_ACEOF
16417#define SIZEOF_INT $ac_cv_sizeof_int
16418_ACEOF
16419
16420
16421echo "$as_me:$LINENO: checking for long" >&5
16422echo $ECHO_N "checking for long... $ECHO_C" >&6
16423if test "${ac_cv_type_long+set}" = set; then
16424 echo $ECHO_N "(cached) $ECHO_C" >&6
16425else
16426 cat >conftest.$ac_ext <<_ACEOF
16427/* confdefs.h. */
16428_ACEOF
16429cat confdefs.h >>conftest.$ac_ext
16430cat >>conftest.$ac_ext <<_ACEOF
16431/* end confdefs.h. */
16432$ac_includes_default
16433int
16434main ()
16435{
16436if ((long *) 0)
16437 return 0;
16438if (sizeof (long))
16439 return 0;
16440 ;
16441 return 0;
16442}
16443_ACEOF
16444rm -f conftest.$ac_objext
16445if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16446 (eval $ac_compile) 2>conftest.er1
a848cd7e 16447 ac_status=$?
ac1cb8d3
VS
16448 grep -v '^ *+' conftest.er1 >conftest.err
16449 rm -f conftest.er1
16450 cat conftest.err >&5
a848cd7e
SC
16451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16452 (exit $ac_status); } &&
89be85c2
VS
16453 { ac_try='test -z "$ac_c_werror_flag"
16454 || test ! -s conftest.err'
ac1cb8d3
VS
16455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16456 (eval $ac_try) 2>&5
16457 ac_status=$?
16458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16459 (exit $ac_status); }; } &&
16460 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16462 (eval $ac_try) 2>&5
16463 ac_status=$?
16464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16465 (exit $ac_status); }; }; then
16466 ac_cv_type_long=yes
16467else
16468 echo "$as_me: failed program was:" >&5
16469sed 's/^/| /' conftest.$ac_ext >&5
16470
16471ac_cv_type_long=no
16472fi
ac1cb8d3 16473rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16474fi
16475echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
16476echo "${ECHO_T}$ac_cv_type_long" >&6
16477
16478echo "$as_me:$LINENO: checking size of long" >&5
16479echo $ECHO_N "checking size of long... $ECHO_C" >&6
16480if test "${ac_cv_sizeof_long+set}" = set; then
16481 echo $ECHO_N "(cached) $ECHO_C" >&6
16482else
16483 if test "$ac_cv_type_long" = yes; then
16484 # The cast to unsigned long works around a bug in the HP C Compiler
16485 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16486 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16487 # This bug is HP SR number 8606223364.
16488 if test "$cross_compiling" = yes; then
16489 # Depending upon the size, compute the lo and hi bounds.
16490cat >conftest.$ac_ext <<_ACEOF
16491/* confdefs.h. */
16492_ACEOF
16493cat confdefs.h >>conftest.$ac_ext
16494cat >>conftest.$ac_ext <<_ACEOF
16495/* end confdefs.h. */
16496$ac_includes_default
16497int
16498main ()
16499{
16500static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
16501test_array [0] = 0
16502
16503 ;
16504 return 0;
16505}
16506_ACEOF
16507rm -f conftest.$ac_objext
16508if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16509 (eval $ac_compile) 2>conftest.er1
a848cd7e 16510 ac_status=$?
ac1cb8d3
VS
16511 grep -v '^ *+' conftest.er1 >conftest.err
16512 rm -f conftest.er1
16513 cat conftest.err >&5
a848cd7e
SC
16514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16515 (exit $ac_status); } &&
89be85c2
VS
16516 { ac_try='test -z "$ac_c_werror_flag"
16517 || test ! -s conftest.err'
ac1cb8d3
VS
16518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16519 (eval $ac_try) 2>&5
16520 ac_status=$?
16521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16522 (exit $ac_status); }; } &&
16523 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16525 (eval $ac_try) 2>&5
16526 ac_status=$?
16527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16528 (exit $ac_status); }; }; then
16529 ac_lo=0 ac_mid=0
16530 while :; do
16531 cat >conftest.$ac_ext <<_ACEOF
16532/* confdefs.h. */
16533_ACEOF
16534cat confdefs.h >>conftest.$ac_ext
16535cat >>conftest.$ac_ext <<_ACEOF
16536/* end confdefs.h. */
16537$ac_includes_default
16538int
16539main ()
16540{
16541static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
16542test_array [0] = 0
16543
16544 ;
16545 return 0;
16546}
16547_ACEOF
16548rm -f conftest.$ac_objext
16549if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16550 (eval $ac_compile) 2>conftest.er1
a848cd7e 16551 ac_status=$?
ac1cb8d3
VS
16552 grep -v '^ *+' conftest.er1 >conftest.err
16553 rm -f conftest.er1
16554 cat conftest.err >&5
a848cd7e
SC
16555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16556 (exit $ac_status); } &&
89be85c2
VS
16557 { ac_try='test -z "$ac_c_werror_flag"
16558 || test ! -s conftest.err'
ac1cb8d3
VS
16559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16560 (eval $ac_try) 2>&5
16561 ac_status=$?
16562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16563 (exit $ac_status); }; } &&
16564 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16566 (eval $ac_try) 2>&5
16567 ac_status=$?
16568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16569 (exit $ac_status); }; }; then
16570 ac_hi=$ac_mid; break
16571else
16572 echo "$as_me: failed program was:" >&5
16573sed 's/^/| /' conftest.$ac_ext >&5
16574
16575ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
16576 if test $ac_lo -le $ac_mid; then
16577 ac_lo= ac_hi=
16578 break
16579 fi
16580 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 16581fi
ac1cb8d3 16582rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16583 done
16584else
16585 echo "$as_me: failed program was:" >&5
16586sed 's/^/| /' conftest.$ac_ext >&5
16587
16588cat >conftest.$ac_ext <<_ACEOF
16589/* confdefs.h. */
16590_ACEOF
16591cat confdefs.h >>conftest.$ac_ext
16592cat >>conftest.$ac_ext <<_ACEOF
16593/* end confdefs.h. */
16594$ac_includes_default
16595int
16596main ()
16597{
16598static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
16599test_array [0] = 0
16600
16601 ;
16602 return 0;
16603}
16604_ACEOF
16605rm -f conftest.$ac_objext
16606if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16607 (eval $ac_compile) 2>conftest.er1
a848cd7e 16608 ac_status=$?
ac1cb8d3
VS
16609 grep -v '^ *+' conftest.er1 >conftest.err
16610 rm -f conftest.er1
16611 cat conftest.err >&5
a848cd7e
SC
16612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16613 (exit $ac_status); } &&
89be85c2
VS
16614 { ac_try='test -z "$ac_c_werror_flag"
16615 || test ! -s conftest.err'
ac1cb8d3
VS
16616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16617 (eval $ac_try) 2>&5
16618 ac_status=$?
16619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16620 (exit $ac_status); }; } &&
16621 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16623 (eval $ac_try) 2>&5
16624 ac_status=$?
16625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16626 (exit $ac_status); }; }; then
16627 ac_hi=-1 ac_mid=-1
16628 while :; do
16629 cat >conftest.$ac_ext <<_ACEOF
16630/* confdefs.h. */
16631_ACEOF
16632cat confdefs.h >>conftest.$ac_ext
16633cat >>conftest.$ac_ext <<_ACEOF
16634/* end confdefs.h. */
16635$ac_includes_default
16636int
16637main ()
16638{
16639static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
16640test_array [0] = 0
16641
16642 ;
16643 return 0;
16644}
16645_ACEOF
16646rm -f conftest.$ac_objext
16647if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16648 (eval $ac_compile) 2>conftest.er1
a848cd7e 16649 ac_status=$?
ac1cb8d3
VS
16650 grep -v '^ *+' conftest.er1 >conftest.err
16651 rm -f conftest.er1
16652 cat conftest.err >&5
a848cd7e
SC
16653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16654 (exit $ac_status); } &&
89be85c2
VS
16655 { ac_try='test -z "$ac_c_werror_flag"
16656 || test ! -s conftest.err'
ac1cb8d3
VS
16657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16658 (eval $ac_try) 2>&5
16659 ac_status=$?
16660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16661 (exit $ac_status); }; } &&
16662 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16664 (eval $ac_try) 2>&5
16665 ac_status=$?
16666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16667 (exit $ac_status); }; }; then
16668 ac_lo=$ac_mid; break
16669else
16670 echo "$as_me: failed program was:" >&5
16671sed 's/^/| /' conftest.$ac_ext >&5
16672
16673ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
16674 if test $ac_mid -le $ac_hi; then
16675 ac_lo= ac_hi=
16676 break
16677 fi
16678 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 16679fi
ac1cb8d3 16680rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16681 done
16682else
16683 echo "$as_me: failed program was:" >&5
16684sed 's/^/| /' conftest.$ac_ext >&5
16685
16686ac_lo= ac_hi=
16687fi
ac1cb8d3 16688rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 16689fi
ac1cb8d3 16690rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16691# Binary search between lo and hi bounds.
16692while test "x$ac_lo" != "x$ac_hi"; do
16693 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16694 cat >conftest.$ac_ext <<_ACEOF
16695/* confdefs.h. */
16696_ACEOF
16697cat confdefs.h >>conftest.$ac_ext
16698cat >>conftest.$ac_ext <<_ACEOF
16699/* end confdefs.h. */
16700$ac_includes_default
16701int
16702main ()
16703{
16704static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
16705test_array [0] = 0
16706
16707 ;
16708 return 0;
16709}
16710_ACEOF
16711rm -f conftest.$ac_objext
16712if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16713 (eval $ac_compile) 2>conftest.er1
a848cd7e 16714 ac_status=$?
ac1cb8d3
VS
16715 grep -v '^ *+' conftest.er1 >conftest.err
16716 rm -f conftest.er1
16717 cat conftest.err >&5
a848cd7e
SC
16718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16719 (exit $ac_status); } &&
89be85c2
VS
16720 { ac_try='test -z "$ac_c_werror_flag"
16721 || test ! -s conftest.err'
ac1cb8d3
VS
16722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16723 (eval $ac_try) 2>&5
16724 ac_status=$?
16725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16726 (exit $ac_status); }; } &&
16727 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16729 (eval $ac_try) 2>&5
16730 ac_status=$?
16731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16732 (exit $ac_status); }; }; then
16733 ac_hi=$ac_mid
16734else
16735 echo "$as_me: failed program was:" >&5
16736sed 's/^/| /' conftest.$ac_ext >&5
16737
16738ac_lo=`expr '(' $ac_mid ')' + 1`
16739fi
ac1cb8d3 16740rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16741done
16742case $ac_lo in
16743?*) ac_cv_sizeof_long=$ac_lo;;
16744'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
16745See \`config.log' for more details." >&5
16746echo "$as_me: error: cannot compute sizeof (long), 77
16747See \`config.log' for more details." >&2;}
16748 { (exit 1); exit 1; }; } ;;
16749esac
16750else
16751 if test "$cross_compiling" = yes; then
89be85c2
VS
16752 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
16753See \`config.log' for more details." >&5
16754echo "$as_me: error: cannot run test program while cross compiling
16755See \`config.log' for more details." >&2;}
a848cd7e
SC
16756 { (exit 1); exit 1; }; }
16757else
16758 cat >conftest.$ac_ext <<_ACEOF
16759/* confdefs.h. */
16760_ACEOF
16761cat confdefs.h >>conftest.$ac_ext
16762cat >>conftest.$ac_ext <<_ACEOF
16763/* end confdefs.h. */
16764$ac_includes_default
16765long longval () { return (long) (sizeof (long)); }
16766unsigned long ulongval () { return (long) (sizeof (long)); }
16767#include <stdio.h>
16768#include <stdlib.h>
16769int
16770main ()
16771{
16772
16773 FILE *f = fopen ("conftest.val", "w");
16774 if (! f)
16775 exit (1);
16776 if (((long) (sizeof (long))) < 0)
16777 {
16778 long i = longval ();
16779 if (i != ((long) (sizeof (long))))
16780 exit (1);
16781 fprintf (f, "%ld\n", i);
16782 }
16783 else
16784 {
16785 unsigned long i = ulongval ();
16786 if (i != ((long) (sizeof (long))))
16787 exit (1);
16788 fprintf (f, "%lu\n", i);
16789 }
16790 exit (ferror (f) || fclose (f) != 0);
16791
16792 ;
16793 return 0;
16794}
16795_ACEOF
16796rm -f conftest$ac_exeext
16797if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16798 (eval $ac_link) 2>&5
16799 ac_status=$?
16800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16801 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16803 (eval $ac_try) 2>&5
16804 ac_status=$?
16805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16806 (exit $ac_status); }; }; then
16807 ac_cv_sizeof_long=`cat conftest.val`
16808else
16809 echo "$as_me: program exited with status $ac_status" >&5
16810echo "$as_me: failed program was:" >&5
16811sed 's/^/| /' conftest.$ac_ext >&5
16812
16813( exit $ac_status )
16814{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
16815See \`config.log' for more details." >&5
16816echo "$as_me: error: cannot compute sizeof (long), 77
16817See \`config.log' for more details." >&2;}
16818 { (exit 1); exit 1; }; }
16819fi
ac1cb8d3 16820rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16821fi
16822fi
16823rm -f conftest.val
16824else
16825 ac_cv_sizeof_long=0
16826fi
16827fi
16828echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
16829echo "${ECHO_T}$ac_cv_sizeof_long" >&6
16830cat >>confdefs.h <<_ACEOF
16831#define SIZEOF_LONG $ac_cv_sizeof_long
16832_ACEOF
16833
16834
16835echo "$as_me:$LINENO: checking for size_t" >&5
16836echo $ECHO_N "checking for size_t... $ECHO_C" >&6
16837if test "${ac_cv_type_size_t+set}" = set; then
16838 echo $ECHO_N "(cached) $ECHO_C" >&6
16839else
16840 cat >conftest.$ac_ext <<_ACEOF
16841/* confdefs.h. */
16842_ACEOF
16843cat confdefs.h >>conftest.$ac_ext
16844cat >>conftest.$ac_ext <<_ACEOF
16845/* end confdefs.h. */
16846$ac_includes_default
16847int
16848main ()
16849{
16850if ((size_t *) 0)
16851 return 0;
16852if (sizeof (size_t))
16853 return 0;
16854 ;
16855 return 0;
16856}
16857_ACEOF
16858rm -f conftest.$ac_objext
16859if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16860 (eval $ac_compile) 2>conftest.er1
a848cd7e 16861 ac_status=$?
ac1cb8d3
VS
16862 grep -v '^ *+' conftest.er1 >conftest.err
16863 rm -f conftest.er1
16864 cat conftest.err >&5
a848cd7e
SC
16865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16866 (exit $ac_status); } &&
89be85c2
VS
16867 { ac_try='test -z "$ac_c_werror_flag"
16868 || test ! -s conftest.err'
ac1cb8d3
VS
16869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16870 (eval $ac_try) 2>&5
16871 ac_status=$?
16872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16873 (exit $ac_status); }; } &&
16874 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16876 (eval $ac_try) 2>&5
16877 ac_status=$?
16878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16879 (exit $ac_status); }; }; then
16880 ac_cv_type_size_t=yes
16881else
16882 echo "$as_me: failed program was:" >&5
16883sed 's/^/| /' conftest.$ac_ext >&5
16884
16885ac_cv_type_size_t=no
16886fi
ac1cb8d3 16887rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16888fi
16889echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
16890echo "${ECHO_T}$ac_cv_type_size_t" >&6
16891
16892echo "$as_me:$LINENO: checking size of size_t" >&5
16893echo $ECHO_N "checking size of size_t... $ECHO_C" >&6
16894if test "${ac_cv_sizeof_size_t+set}" = set; then
16895 echo $ECHO_N "(cached) $ECHO_C" >&6
16896else
16897 if test "$ac_cv_type_size_t" = yes; then
16898 # The cast to unsigned long works around a bug in the HP C Compiler
16899 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16900 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16901 # This bug is HP SR number 8606223364.
16902 if test "$cross_compiling" = yes; then
16903 # Depending upon the size, compute the lo and hi bounds.
16904cat >conftest.$ac_ext <<_ACEOF
16905/* confdefs.h. */
16906_ACEOF
16907cat confdefs.h >>conftest.$ac_ext
16908cat >>conftest.$ac_ext <<_ACEOF
16909/* end confdefs.h. */
16910$ac_includes_default
16911int
16912main ()
16913{
16914static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= 0)];
16915test_array [0] = 0
16916
16917 ;
16918 return 0;
16919}
16920_ACEOF
16921rm -f conftest.$ac_objext
16922if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16923 (eval $ac_compile) 2>conftest.er1
a848cd7e 16924 ac_status=$?
ac1cb8d3
VS
16925 grep -v '^ *+' conftest.er1 >conftest.err
16926 rm -f conftest.er1
16927 cat conftest.err >&5
a848cd7e
SC
16928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16929 (exit $ac_status); } &&
89be85c2
VS
16930 { ac_try='test -z "$ac_c_werror_flag"
16931 || test ! -s conftest.err'
ac1cb8d3
VS
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); }; } &&
16937 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16939 (eval $ac_try) 2>&5
16940 ac_status=$?
16941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16942 (exit $ac_status); }; }; then
16943 ac_lo=0 ac_mid=0
16944 while :; do
16945 cat >conftest.$ac_ext <<_ACEOF
16946/* confdefs.h. */
16947_ACEOF
16948cat confdefs.h >>conftest.$ac_ext
16949cat >>conftest.$ac_ext <<_ACEOF
16950/* end confdefs.h. */
16951$ac_includes_default
16952int
16953main ()
16954{
16955static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
16956test_array [0] = 0
16957
16958 ;
16959 return 0;
16960}
16961_ACEOF
16962rm -f conftest.$ac_objext
16963if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16964 (eval $ac_compile) 2>conftest.er1
a848cd7e 16965 ac_status=$?
ac1cb8d3
VS
16966 grep -v '^ *+' conftest.er1 >conftest.err
16967 rm -f conftest.er1
16968 cat conftest.err >&5
a848cd7e
SC
16969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16970 (exit $ac_status); } &&
89be85c2
VS
16971 { ac_try='test -z "$ac_c_werror_flag"
16972 || test ! -s conftest.err'
ac1cb8d3
VS
16973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16974 (eval $ac_try) 2>&5
16975 ac_status=$?
16976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16977 (exit $ac_status); }; } &&
16978 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16980 (eval $ac_try) 2>&5
16981 ac_status=$?
16982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16983 (exit $ac_status); }; }; then
16984 ac_hi=$ac_mid; break
16985else
16986 echo "$as_me: failed program was:" >&5
16987sed 's/^/| /' conftest.$ac_ext >&5
16988
16989ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
16990 if test $ac_lo -le $ac_mid; then
16991 ac_lo= ac_hi=
16992 break
16993 fi
16994 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 16995fi
ac1cb8d3 16996rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16997 done
16998else
16999 echo "$as_me: failed program was:" >&5
17000sed 's/^/| /' conftest.$ac_ext >&5
17001
17002cat >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 (size_t))) < 0)];
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); } &&
89be85c2
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=-1 ac_mid=-1
17042 while :; do
17043 cat >conftest.$ac_ext <<_ACEOF
17044/* confdefs.h. */
17045_ACEOF
17046cat confdefs.h >>conftest.$ac_ext
17047cat >>conftest.$ac_ext <<_ACEOF
17048/* end confdefs.h. */
17049$ac_includes_default
17050int
17051main ()
17052{
17053static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= $ac_mid)];
17054test_array [0] = 0
17055
17056 ;
17057 return 0;
17058}
17059_ACEOF
17060rm -f conftest.$ac_objext
17061if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17062 (eval $ac_compile) 2>conftest.er1
a848cd7e 17063 ac_status=$?
ac1cb8d3
VS
17064 grep -v '^ *+' conftest.er1 >conftest.err
17065 rm -f conftest.er1
17066 cat conftest.err >&5
a848cd7e
SC
17067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17068 (exit $ac_status); } &&
89be85c2
VS
17069 { ac_try='test -z "$ac_c_werror_flag"
17070 || test ! -s conftest.err'
ac1cb8d3
VS
17071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17072 (eval $ac_try) 2>&5
17073 ac_status=$?
17074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17075 (exit $ac_status); }; } &&
17076 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17078 (eval $ac_try) 2>&5
17079 ac_status=$?
17080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17081 (exit $ac_status); }; }; then
17082 ac_lo=$ac_mid; break
17083else
17084 echo "$as_me: failed program was:" >&5
17085sed 's/^/| /' conftest.$ac_ext >&5
17086
17087ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
17088 if test $ac_mid -le $ac_hi; then
17089 ac_lo= ac_hi=
17090 break
17091 fi
17092 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 17093fi
ac1cb8d3 17094rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17095 done
17096else
17097 echo "$as_me: failed program was:" >&5
17098sed 's/^/| /' conftest.$ac_ext >&5
17099
17100ac_lo= ac_hi=
17101fi
ac1cb8d3 17102rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 17103fi
ac1cb8d3 17104rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17105# Binary search between lo and hi bounds.
17106while test "x$ac_lo" != "x$ac_hi"; do
17107 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
17108 cat >conftest.$ac_ext <<_ACEOF
17109/* confdefs.h. */
17110_ACEOF
17111cat confdefs.h >>conftest.$ac_ext
17112cat >>conftest.$ac_ext <<_ACEOF
17113/* end confdefs.h. */
17114$ac_includes_default
17115int
17116main ()
17117{
17118static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
17119test_array [0] = 0
17120
17121 ;
17122 return 0;
17123}
17124_ACEOF
17125rm -f conftest.$ac_objext
17126if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17127 (eval $ac_compile) 2>conftest.er1
a848cd7e 17128 ac_status=$?
ac1cb8d3
VS
17129 grep -v '^ *+' conftest.er1 >conftest.err
17130 rm -f conftest.er1
17131 cat conftest.err >&5
a848cd7e
SC
17132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17133 (exit $ac_status); } &&
89be85c2
VS
17134 { ac_try='test -z "$ac_c_werror_flag"
17135 || test ! -s conftest.err'
ac1cb8d3
VS
17136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17137 (eval $ac_try) 2>&5
17138 ac_status=$?
17139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17140 (exit $ac_status); }; } &&
17141 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17143 (eval $ac_try) 2>&5
17144 ac_status=$?
17145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17146 (exit $ac_status); }; }; then
17147 ac_hi=$ac_mid
17148else
17149 echo "$as_me: failed program was:" >&5
17150sed 's/^/| /' conftest.$ac_ext >&5
17151
17152ac_lo=`expr '(' $ac_mid ')' + 1`
17153fi
ac1cb8d3 17154rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17155done
17156case $ac_lo in
17157?*) ac_cv_sizeof_size_t=$ac_lo;;
17158'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
17159See \`config.log' for more details." >&5
17160echo "$as_me: error: cannot compute sizeof (size_t), 77
17161See \`config.log' for more details." >&2;}
17162 { (exit 1); exit 1; }; } ;;
17163esac
17164else
17165 if test "$cross_compiling" = yes; then
89be85c2
VS
17166 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
17167See \`config.log' for more details." >&5
17168echo "$as_me: error: cannot run test program while cross compiling
17169See \`config.log' for more details." >&2;}
a848cd7e
SC
17170 { (exit 1); exit 1; }; }
17171else
17172 cat >conftest.$ac_ext <<_ACEOF
17173/* confdefs.h. */
17174_ACEOF
17175cat confdefs.h >>conftest.$ac_ext
17176cat >>conftest.$ac_ext <<_ACEOF
17177/* end confdefs.h. */
17178$ac_includes_default
17179long longval () { return (long) (sizeof (size_t)); }
17180unsigned long ulongval () { return (long) (sizeof (size_t)); }
17181#include <stdio.h>
17182#include <stdlib.h>
17183int
17184main ()
17185{
17186
17187 FILE *f = fopen ("conftest.val", "w");
17188 if (! f)
17189 exit (1);
17190 if (((long) (sizeof (size_t))) < 0)
17191 {
17192 long i = longval ();
17193 if (i != ((long) (sizeof (size_t))))
17194 exit (1);
17195 fprintf (f, "%ld\n", i);
17196 }
17197 else
17198 {
17199 unsigned long i = ulongval ();
17200 if (i != ((long) (sizeof (size_t))))
17201 exit (1);
17202 fprintf (f, "%lu\n", i);
17203 }
17204 exit (ferror (f) || fclose (f) != 0);
17205
17206 ;
17207 return 0;
17208}
17209_ACEOF
17210rm -f conftest$ac_exeext
17211if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17212 (eval $ac_link) 2>&5
17213 ac_status=$?
17214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17215 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17217 (eval $ac_try) 2>&5
17218 ac_status=$?
17219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17220 (exit $ac_status); }; }; then
17221 ac_cv_sizeof_size_t=`cat conftest.val`
17222else
17223 echo "$as_me: program exited with status $ac_status" >&5
17224echo "$as_me: failed program was:" >&5
17225sed 's/^/| /' conftest.$ac_ext >&5
17226
17227( exit $ac_status )
17228{ { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
17229See \`config.log' for more details." >&5
17230echo "$as_me: error: cannot compute sizeof (size_t), 77
17231See \`config.log' for more details." >&2;}
17232 { (exit 1); exit 1; }; }
17233fi
ac1cb8d3 17234rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17235fi
17236fi
17237rm -f conftest.val
17238else
17239 ac_cv_sizeof_size_t=0
17240fi
17241fi
17242echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
17243echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6
17244cat >>confdefs.h <<_ACEOF
17245#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
17246_ACEOF
17247
17248
17249
17250case "${host}" in
17251 arm-*-linux* )
17252 echo "$as_me:$LINENO: checking for long long" >&5
17253echo $ECHO_N "checking for long long... $ECHO_C" >&6
17254if test "${ac_cv_type_long_long+set}" = set; then
17255 echo $ECHO_N "(cached) $ECHO_C" >&6
17256else
17257 cat >conftest.$ac_ext <<_ACEOF
17258/* confdefs.h. */
17259_ACEOF
17260cat confdefs.h >>conftest.$ac_ext
17261cat >>conftest.$ac_ext <<_ACEOF
17262/* end confdefs.h. */
17263$ac_includes_default
17264int
17265main ()
17266{
17267if ((long long *) 0)
17268 return 0;
17269if (sizeof (long long))
17270 return 0;
17271 ;
17272 return 0;
17273}
17274_ACEOF
17275rm -f conftest.$ac_objext
17276if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17277 (eval $ac_compile) 2>conftest.er1
a848cd7e 17278 ac_status=$?
ac1cb8d3
VS
17279 grep -v '^ *+' conftest.er1 >conftest.err
17280 rm -f conftest.er1
17281 cat conftest.err >&5
a848cd7e
SC
17282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17283 (exit $ac_status); } &&
89be85c2
VS
17284 { ac_try='test -z "$ac_c_werror_flag"
17285 || test ! -s conftest.err'
ac1cb8d3
VS
17286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17287 (eval $ac_try) 2>&5
17288 ac_status=$?
17289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17290 (exit $ac_status); }; } &&
17291 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17293 (eval $ac_try) 2>&5
17294 ac_status=$?
17295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17296 (exit $ac_status); }; }; then
17297 ac_cv_type_long_long=yes
17298else
17299 echo "$as_me: failed program was:" >&5
17300sed 's/^/| /' conftest.$ac_ext >&5
17301
17302ac_cv_type_long_long=no
17303fi
ac1cb8d3 17304rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17305fi
17306echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
17307echo "${ECHO_T}$ac_cv_type_long_long" >&6
17308
17309echo "$as_me:$LINENO: checking size of long long" >&5
17310echo $ECHO_N "checking size of long long... $ECHO_C" >&6
17311if test "${ac_cv_sizeof_long_long+set}" = set; then
17312 echo $ECHO_N "(cached) $ECHO_C" >&6
17313else
17314 if test "$ac_cv_type_long_long" = yes; then
17315 # The cast to unsigned long works around a bug in the HP C Compiler
17316 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17317 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17318 # This bug is HP SR number 8606223364.
17319 if test "$cross_compiling" = yes; then
17320 # Depending upon the size, compute the lo and hi bounds.
17321cat >conftest.$ac_ext <<_ACEOF
17322/* confdefs.h. */
17323_ACEOF
17324cat confdefs.h >>conftest.$ac_ext
17325cat >>conftest.$ac_ext <<_ACEOF
17326/* end confdefs.h. */
17327$ac_includes_default
17328int
17329main ()
17330{
17331static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
17332test_array [0] = 0
17333
17334 ;
17335 return 0;
17336}
17337_ACEOF
17338rm -f conftest.$ac_objext
17339if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17340 (eval $ac_compile) 2>conftest.er1
a848cd7e 17341 ac_status=$?
ac1cb8d3
VS
17342 grep -v '^ *+' conftest.er1 >conftest.err
17343 rm -f conftest.er1
17344 cat conftest.err >&5
a848cd7e
SC
17345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17346 (exit $ac_status); } &&
89be85c2
VS
17347 { ac_try='test -z "$ac_c_werror_flag"
17348 || test ! -s conftest.err'
ac1cb8d3
VS
17349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17350 (eval $ac_try) 2>&5
17351 ac_status=$?
17352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17353 (exit $ac_status); }; } &&
17354 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17356 (eval $ac_try) 2>&5
17357 ac_status=$?
17358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17359 (exit $ac_status); }; }; then
17360 ac_lo=0 ac_mid=0
17361 while :; do
17362 cat >conftest.$ac_ext <<_ACEOF
17363/* confdefs.h. */
17364_ACEOF
17365cat confdefs.h >>conftest.$ac_ext
17366cat >>conftest.$ac_ext <<_ACEOF
17367/* end confdefs.h. */
17368$ac_includes_default
17369int
17370main ()
17371{
17372static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
17373test_array [0] = 0
17374
17375 ;
17376 return 0;
17377}
17378_ACEOF
17379rm -f conftest.$ac_objext
17380if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17381 (eval $ac_compile) 2>conftest.er1
a848cd7e 17382 ac_status=$?
ac1cb8d3
VS
17383 grep -v '^ *+' conftest.er1 >conftest.err
17384 rm -f conftest.er1
17385 cat conftest.err >&5
a848cd7e
SC
17386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17387 (exit $ac_status); } &&
89be85c2
VS
17388 { ac_try='test -z "$ac_c_werror_flag"
17389 || test ! -s conftest.err'
ac1cb8d3
VS
17390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17391 (eval $ac_try) 2>&5
17392 ac_status=$?
17393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17394 (exit $ac_status); }; } &&
17395 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17397 (eval $ac_try) 2>&5
17398 ac_status=$?
17399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17400 (exit $ac_status); }; }; then
17401 ac_hi=$ac_mid; break
17402else
17403 echo "$as_me: failed program was:" >&5
17404sed 's/^/| /' conftest.$ac_ext >&5
17405
17406ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
17407 if test $ac_lo -le $ac_mid; then
17408 ac_lo= ac_hi=
17409 break
17410 fi
17411 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 17412fi
ac1cb8d3 17413rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17414 done
17415else
17416 echo "$as_me: failed program was:" >&5
17417sed 's/^/| /' conftest.$ac_ext >&5
17418
17419cat >conftest.$ac_ext <<_ACEOF
17420/* confdefs.h. */
17421_ACEOF
17422cat confdefs.h >>conftest.$ac_ext
17423cat >>conftest.$ac_ext <<_ACEOF
17424/* end confdefs.h. */
17425$ac_includes_default
17426int
17427main ()
17428{
17429static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
17430test_array [0] = 0
17431
17432 ;
17433 return 0;
17434}
17435_ACEOF
17436rm -f conftest.$ac_objext
17437if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17438 (eval $ac_compile) 2>conftest.er1
a848cd7e 17439 ac_status=$?
ac1cb8d3
VS
17440 grep -v '^ *+' conftest.er1 >conftest.err
17441 rm -f conftest.er1
17442 cat conftest.err >&5
a848cd7e
SC
17443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17444 (exit $ac_status); } &&
89be85c2
VS
17445 { ac_try='test -z "$ac_c_werror_flag"
17446 || test ! -s conftest.err'
ac1cb8d3
VS
17447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17448 (eval $ac_try) 2>&5
17449 ac_status=$?
17450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17451 (exit $ac_status); }; } &&
17452 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17454 (eval $ac_try) 2>&5
17455 ac_status=$?
17456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17457 (exit $ac_status); }; }; then
17458 ac_hi=-1 ac_mid=-1
17459 while :; do
17460 cat >conftest.$ac_ext <<_ACEOF
17461/* confdefs.h. */
17462_ACEOF
17463cat confdefs.h >>conftest.$ac_ext
17464cat >>conftest.$ac_ext <<_ACEOF
17465/* end confdefs.h. */
17466$ac_includes_default
17467int
17468main ()
17469{
17470static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
17471test_array [0] = 0
17472
17473 ;
17474 return 0;
17475}
17476_ACEOF
17477rm -f conftest.$ac_objext
17478if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17479 (eval $ac_compile) 2>conftest.er1
a848cd7e 17480 ac_status=$?
ac1cb8d3
VS
17481 grep -v '^ *+' conftest.er1 >conftest.err
17482 rm -f conftest.er1
17483 cat conftest.err >&5
a848cd7e
SC
17484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17485 (exit $ac_status); } &&
89be85c2
VS
17486 { ac_try='test -z "$ac_c_werror_flag"
17487 || test ! -s conftest.err'
ac1cb8d3
VS
17488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17489 (eval $ac_try) 2>&5
17490 ac_status=$?
17491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17492 (exit $ac_status); }; } &&
17493 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17495 (eval $ac_try) 2>&5
17496 ac_status=$?
17497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17498 (exit $ac_status); }; }; then
17499 ac_lo=$ac_mid; break
17500else
17501 echo "$as_me: failed program was:" >&5
17502sed 's/^/| /' conftest.$ac_ext >&5
17503
17504ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
17505 if test $ac_mid -le $ac_hi; then
17506 ac_lo= ac_hi=
17507 break
17508 fi
17509 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 17510fi
ac1cb8d3 17511rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17512 done
17513else
17514 echo "$as_me: failed program was:" >&5
17515sed 's/^/| /' conftest.$ac_ext >&5
17516
17517ac_lo= ac_hi=
17518fi
ac1cb8d3 17519rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 17520fi
ac1cb8d3 17521rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17522# Binary search between lo and hi bounds.
17523while test "x$ac_lo" != "x$ac_hi"; do
17524 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
17525 cat >conftest.$ac_ext <<_ACEOF
17526/* confdefs.h. */
17527_ACEOF
17528cat confdefs.h >>conftest.$ac_ext
17529cat >>conftest.$ac_ext <<_ACEOF
17530/* end confdefs.h. */
17531$ac_includes_default
17532int
17533main ()
17534{
17535static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
17536test_array [0] = 0
17537
17538 ;
17539 return 0;
17540}
17541_ACEOF
17542rm -f conftest.$ac_objext
17543if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17544 (eval $ac_compile) 2>conftest.er1
a848cd7e 17545 ac_status=$?
ac1cb8d3
VS
17546 grep -v '^ *+' conftest.er1 >conftest.err
17547 rm -f conftest.er1
17548 cat conftest.err >&5
a848cd7e
SC
17549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17550 (exit $ac_status); } &&
89be85c2
VS
17551 { ac_try='test -z "$ac_c_werror_flag"
17552 || test ! -s conftest.err'
ac1cb8d3
VS
17553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17554 (eval $ac_try) 2>&5
17555 ac_status=$?
17556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17557 (exit $ac_status); }; } &&
17558 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17560 (eval $ac_try) 2>&5
17561 ac_status=$?
17562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17563 (exit $ac_status); }; }; then
17564 ac_hi=$ac_mid
17565else
17566 echo "$as_me: failed program was:" >&5
17567sed 's/^/| /' conftest.$ac_ext >&5
17568
17569ac_lo=`expr '(' $ac_mid ')' + 1`
17570fi
ac1cb8d3 17571rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17572done
17573case $ac_lo in
17574?*) ac_cv_sizeof_long_long=$ac_lo;;
17575'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
17576See \`config.log' for more details." >&5
17577echo "$as_me: error: cannot compute sizeof (long long), 77
17578See \`config.log' for more details." >&2;}
17579 { (exit 1); exit 1; }; } ;;
17580esac
17581else
17582 if test "$cross_compiling" = yes; then
89be85c2
VS
17583 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
17584See \`config.log' for more details." >&5
17585echo "$as_me: error: cannot run test program while cross compiling
17586See \`config.log' for more details." >&2;}
a848cd7e
SC
17587 { (exit 1); exit 1; }; }
17588else
17589 cat >conftest.$ac_ext <<_ACEOF
17590/* confdefs.h. */
17591_ACEOF
17592cat confdefs.h >>conftest.$ac_ext
17593cat >>conftest.$ac_ext <<_ACEOF
17594/* end confdefs.h. */
17595$ac_includes_default
17596long longval () { return (long) (sizeof (long long)); }
17597unsigned long ulongval () { return (long) (sizeof (long long)); }
17598#include <stdio.h>
17599#include <stdlib.h>
17600int
17601main ()
17602{
17603
17604 FILE *f = fopen ("conftest.val", "w");
17605 if (! f)
17606 exit (1);
17607 if (((long) (sizeof (long long))) < 0)
17608 {
17609 long i = longval ();
17610 if (i != ((long) (sizeof (long long))))
17611 exit (1);
17612 fprintf (f, "%ld\n", i);
17613 }
17614 else
17615 {
17616 unsigned long i = ulongval ();
17617 if (i != ((long) (sizeof (long long))))
17618 exit (1);
17619 fprintf (f, "%lu\n", i);
17620 }
17621 exit (ferror (f) || fclose (f) != 0);
17622
17623 ;
17624 return 0;
17625}
17626_ACEOF
17627rm -f conftest$ac_exeext
17628if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17629 (eval $ac_link) 2>&5
17630 ac_status=$?
17631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17632 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17634 (eval $ac_try) 2>&5
17635 ac_status=$?
17636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17637 (exit $ac_status); }; }; then
17638 ac_cv_sizeof_long_long=`cat conftest.val`
17639else
17640 echo "$as_me: program exited with status $ac_status" >&5
17641echo "$as_me: failed program was:" >&5
17642sed 's/^/| /' conftest.$ac_ext >&5
17643
17644( exit $ac_status )
17645{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
17646See \`config.log' for more details." >&5
17647echo "$as_me: error: cannot compute sizeof (long long), 77
17648See \`config.log' for more details." >&2;}
17649 { (exit 1); exit 1; }; }
17650fi
ac1cb8d3 17651rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17652fi
17653fi
17654rm -f conftest.val
17655else
17656 ac_cv_sizeof_long_long=0
17657fi
17658fi
17659echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
17660echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
17661cat >>confdefs.h <<_ACEOF
17662#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
17663_ACEOF
17664
17665
17666 ;;
17667 *-hp-hpux* )
17668 echo "$as_me:$LINENO: checking for long long" >&5
17669echo $ECHO_N "checking for long long... $ECHO_C" >&6
17670if test "${ac_cv_type_long_long+set}" = set; then
17671 echo $ECHO_N "(cached) $ECHO_C" >&6
17672else
17673 cat >conftest.$ac_ext <<_ACEOF
17674/* confdefs.h. */
17675_ACEOF
17676cat confdefs.h >>conftest.$ac_ext
17677cat >>conftest.$ac_ext <<_ACEOF
17678/* end confdefs.h. */
17679$ac_includes_default
17680int
17681main ()
17682{
17683if ((long long *) 0)
17684 return 0;
17685if (sizeof (long long))
17686 return 0;
17687 ;
17688 return 0;
17689}
17690_ACEOF
17691rm -f conftest.$ac_objext
17692if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17693 (eval $ac_compile) 2>conftest.er1
a848cd7e 17694 ac_status=$?
ac1cb8d3
VS
17695 grep -v '^ *+' conftest.er1 >conftest.err
17696 rm -f conftest.er1
17697 cat conftest.err >&5
a848cd7e
SC
17698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17699 (exit $ac_status); } &&
89be85c2
VS
17700 { ac_try='test -z "$ac_c_werror_flag"
17701 || test ! -s conftest.err'
ac1cb8d3
VS
17702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17703 (eval $ac_try) 2>&5
17704 ac_status=$?
17705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17706 (exit $ac_status); }; } &&
17707 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17709 (eval $ac_try) 2>&5
17710 ac_status=$?
17711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17712 (exit $ac_status); }; }; then
17713 ac_cv_type_long_long=yes
17714else
17715 echo "$as_me: failed program was:" >&5
17716sed 's/^/| /' conftest.$ac_ext >&5
17717
17718ac_cv_type_long_long=no
17719fi
ac1cb8d3 17720rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17721fi
17722echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
17723echo "${ECHO_T}$ac_cv_type_long_long" >&6
17724
17725echo "$as_me:$LINENO: checking size of long long" >&5
17726echo $ECHO_N "checking size of long long... $ECHO_C" >&6
17727if test "${ac_cv_sizeof_long_long+set}" = set; then
17728 echo $ECHO_N "(cached) $ECHO_C" >&6
17729else
17730 if test "$ac_cv_type_long_long" = yes; then
17731 # The cast to unsigned long works around a bug in the HP C Compiler
17732 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17733 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17734 # This bug is HP SR number 8606223364.
17735 if test "$cross_compiling" = yes; then
17736 # Depending upon the size, compute the lo and hi bounds.
17737cat >conftest.$ac_ext <<_ACEOF
17738/* confdefs.h. */
17739_ACEOF
17740cat confdefs.h >>conftest.$ac_ext
17741cat >>conftest.$ac_ext <<_ACEOF
17742/* end confdefs.h. */
17743$ac_includes_default
17744int
17745main ()
17746{
17747static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
17748test_array [0] = 0
17749
17750 ;
17751 return 0;
17752}
17753_ACEOF
17754rm -f conftest.$ac_objext
17755if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17756 (eval $ac_compile) 2>conftest.er1
a848cd7e 17757 ac_status=$?
ac1cb8d3
VS
17758 grep -v '^ *+' conftest.er1 >conftest.err
17759 rm -f conftest.er1
17760 cat conftest.err >&5
a848cd7e
SC
17761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17762 (exit $ac_status); } &&
89be85c2
VS
17763 { ac_try='test -z "$ac_c_werror_flag"
17764 || test ! -s conftest.err'
ac1cb8d3
VS
17765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17766 (eval $ac_try) 2>&5
17767 ac_status=$?
17768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17769 (exit $ac_status); }; } &&
17770 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17772 (eval $ac_try) 2>&5
17773 ac_status=$?
17774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17775 (exit $ac_status); }; }; then
17776 ac_lo=0 ac_mid=0
17777 while :; do
17778 cat >conftest.$ac_ext <<_ACEOF
17779/* confdefs.h. */
17780_ACEOF
17781cat confdefs.h >>conftest.$ac_ext
17782cat >>conftest.$ac_ext <<_ACEOF
17783/* end confdefs.h. */
17784$ac_includes_default
17785int
17786main ()
17787{
17788static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
17789test_array [0] = 0
17790
17791 ;
17792 return 0;
17793}
17794_ACEOF
17795rm -f conftest.$ac_objext
17796if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17797 (eval $ac_compile) 2>conftest.er1
a848cd7e 17798 ac_status=$?
ac1cb8d3
VS
17799 grep -v '^ *+' conftest.er1 >conftest.err
17800 rm -f conftest.er1
17801 cat conftest.err >&5
a848cd7e
SC
17802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17803 (exit $ac_status); } &&
89be85c2
VS
17804 { ac_try='test -z "$ac_c_werror_flag"
17805 || test ! -s conftest.err'
ac1cb8d3
VS
17806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17807 (eval $ac_try) 2>&5
17808 ac_status=$?
17809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17810 (exit $ac_status); }; } &&
17811 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17813 (eval $ac_try) 2>&5
17814 ac_status=$?
17815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17816 (exit $ac_status); }; }; then
17817 ac_hi=$ac_mid; break
17818else
17819 echo "$as_me: failed program was:" >&5
17820sed 's/^/| /' conftest.$ac_ext >&5
17821
17822ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
17823 if test $ac_lo -le $ac_mid; then
17824 ac_lo= ac_hi=
17825 break
17826 fi
17827 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 17828fi
ac1cb8d3 17829rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17830 done
17831else
17832 echo "$as_me: failed program was:" >&5
17833sed 's/^/| /' conftest.$ac_ext >&5
17834
17835cat >conftest.$ac_ext <<_ACEOF
17836/* confdefs.h. */
17837_ACEOF
17838cat confdefs.h >>conftest.$ac_ext
17839cat >>conftest.$ac_ext <<_ACEOF
17840/* end confdefs.h. */
17841$ac_includes_default
17842int
17843main ()
17844{
17845static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
17846test_array [0] = 0
17847
17848 ;
17849 return 0;
17850}
17851_ACEOF
17852rm -f conftest.$ac_objext
17853if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17854 (eval $ac_compile) 2>conftest.er1
a848cd7e 17855 ac_status=$?
ac1cb8d3
VS
17856 grep -v '^ *+' conftest.er1 >conftest.err
17857 rm -f conftest.er1
17858 cat conftest.err >&5
a848cd7e
SC
17859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17860 (exit $ac_status); } &&
89be85c2
VS
17861 { ac_try='test -z "$ac_c_werror_flag"
17862 || test ! -s conftest.err'
ac1cb8d3
VS
17863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17864 (eval $ac_try) 2>&5
17865 ac_status=$?
17866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17867 (exit $ac_status); }; } &&
17868 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17870 (eval $ac_try) 2>&5
17871 ac_status=$?
17872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17873 (exit $ac_status); }; }; then
17874 ac_hi=-1 ac_mid=-1
17875 while :; do
17876 cat >conftest.$ac_ext <<_ACEOF
17877/* confdefs.h. */
17878_ACEOF
17879cat confdefs.h >>conftest.$ac_ext
17880cat >>conftest.$ac_ext <<_ACEOF
17881/* end confdefs.h. */
17882$ac_includes_default
17883int
17884main ()
17885{
17886static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
17887test_array [0] = 0
17888
17889 ;
17890 return 0;
17891}
17892_ACEOF
17893rm -f conftest.$ac_objext
17894if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17895 (eval $ac_compile) 2>conftest.er1
a848cd7e 17896 ac_status=$?
ac1cb8d3
VS
17897 grep -v '^ *+' conftest.er1 >conftest.err
17898 rm -f conftest.er1
17899 cat conftest.err >&5
a848cd7e
SC
17900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17901 (exit $ac_status); } &&
89be85c2
VS
17902 { ac_try='test -z "$ac_c_werror_flag"
17903 || test ! -s conftest.err'
ac1cb8d3
VS
17904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17905 (eval $ac_try) 2>&5
17906 ac_status=$?
17907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17908 (exit $ac_status); }; } &&
17909 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17911 (eval $ac_try) 2>&5
17912 ac_status=$?
17913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17914 (exit $ac_status); }; }; then
17915 ac_lo=$ac_mid; break
17916else
17917 echo "$as_me: failed program was:" >&5
17918sed 's/^/| /' conftest.$ac_ext >&5
17919
17920ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
17921 if test $ac_mid -le $ac_hi; then
17922 ac_lo= ac_hi=
17923 break
17924 fi
17925 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 17926fi
ac1cb8d3 17927rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17928 done
17929else
17930 echo "$as_me: failed program was:" >&5
17931sed 's/^/| /' conftest.$ac_ext >&5
17932
17933ac_lo= ac_hi=
17934fi
ac1cb8d3 17935rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 17936fi
ac1cb8d3 17937rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17938# Binary search between lo and hi bounds.
17939while test "x$ac_lo" != "x$ac_hi"; do
17940 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
17941 cat >conftest.$ac_ext <<_ACEOF
17942/* confdefs.h. */
17943_ACEOF
17944cat confdefs.h >>conftest.$ac_ext
17945cat >>conftest.$ac_ext <<_ACEOF
17946/* end confdefs.h. */
17947$ac_includes_default
17948int
17949main ()
17950{
17951static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
17952test_array [0] = 0
17953
17954 ;
17955 return 0;
17956}
17957_ACEOF
17958rm -f conftest.$ac_objext
17959if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17960 (eval $ac_compile) 2>conftest.er1
a848cd7e 17961 ac_status=$?
ac1cb8d3
VS
17962 grep -v '^ *+' conftest.er1 >conftest.err
17963 rm -f conftest.er1
17964 cat conftest.err >&5
a848cd7e
SC
17965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17966 (exit $ac_status); } &&
89be85c2
VS
17967 { ac_try='test -z "$ac_c_werror_flag"
17968 || test ! -s conftest.err'
ac1cb8d3
VS
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); }; } &&
17974 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17976 (eval $ac_try) 2>&5
17977 ac_status=$?
17978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17979 (exit $ac_status); }; }; then
17980 ac_hi=$ac_mid
17981else
17982 echo "$as_me: failed program was:" >&5
17983sed 's/^/| /' conftest.$ac_ext >&5
17984
17985ac_lo=`expr '(' $ac_mid ')' + 1`
17986fi
ac1cb8d3 17987rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17988done
17989case $ac_lo in
17990?*) ac_cv_sizeof_long_long=$ac_lo;;
17991'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
17992See \`config.log' for more details." >&5
17993echo "$as_me: error: cannot compute sizeof (long long), 77
17994See \`config.log' for more details." >&2;}
17995 { (exit 1); exit 1; }; } ;;
17996esac
17997else
17998 if test "$cross_compiling" = yes; then
89be85c2
VS
17999 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
18000See \`config.log' for more details." >&5
18001echo "$as_me: error: cannot run test program while cross compiling
18002See \`config.log' for more details." >&2;}
a848cd7e
SC
18003 { (exit 1); exit 1; }; }
18004else
18005 cat >conftest.$ac_ext <<_ACEOF
18006/* confdefs.h. */
18007_ACEOF
18008cat confdefs.h >>conftest.$ac_ext
18009cat >>conftest.$ac_ext <<_ACEOF
18010/* end confdefs.h. */
18011$ac_includes_default
18012long longval () { return (long) (sizeof (long long)); }
18013unsigned long ulongval () { return (long) (sizeof (long long)); }
18014#include <stdio.h>
18015#include <stdlib.h>
18016int
18017main ()
18018{
18019
18020 FILE *f = fopen ("conftest.val", "w");
18021 if (! f)
18022 exit (1);
18023 if (((long) (sizeof (long long))) < 0)
18024 {
18025 long i = longval ();
18026 if (i != ((long) (sizeof (long long))))
18027 exit (1);
18028 fprintf (f, "%ld\n", i);
18029 }
18030 else
18031 {
18032 unsigned long i = ulongval ();
18033 if (i != ((long) (sizeof (long long))))
18034 exit (1);
18035 fprintf (f, "%lu\n", i);
18036 }
18037 exit (ferror (f) || fclose (f) != 0);
18038
18039 ;
18040 return 0;
18041}
18042_ACEOF
18043rm -f conftest$ac_exeext
18044if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18045 (eval $ac_link) 2>&5
18046 ac_status=$?
18047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18048 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18050 (eval $ac_try) 2>&5
18051 ac_status=$?
18052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18053 (exit $ac_status); }; }; then
18054 ac_cv_sizeof_long_long=`cat conftest.val`
18055else
18056 echo "$as_me: program exited with status $ac_status" >&5
18057echo "$as_me: failed program was:" >&5
18058sed 's/^/| /' conftest.$ac_ext >&5
18059
18060( exit $ac_status )
18061{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
18062See \`config.log' for more details." >&5
18063echo "$as_me: error: cannot compute sizeof (long long), 77
18064See \`config.log' for more details." >&2;}
18065 { (exit 1); exit 1; }; }
18066fi
ac1cb8d3 18067rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18068fi
18069fi
18070rm -f conftest.val
18071else
18072 ac_cv_sizeof_long_long=0
18073fi
18074fi
18075echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
18076echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
18077cat >>confdefs.h <<_ACEOF
18078#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
18079_ACEOF
18080
18081
18082 if test "$ac_cv_sizeof_long_long" != "0"; then
18083 CPPFLAGS="$CPPFLAGS -D_INCLUDE_LONGLONG"
18084 fi
18085 ;;
18086 * )
18087 echo "$as_me:$LINENO: checking for long long" >&5
18088echo $ECHO_N "checking for long long... $ECHO_C" >&6
18089if test "${ac_cv_type_long_long+set}" = set; then
18090 echo $ECHO_N "(cached) $ECHO_C" >&6
18091else
18092 cat >conftest.$ac_ext <<_ACEOF
18093/* confdefs.h. */
18094_ACEOF
18095cat confdefs.h >>conftest.$ac_ext
18096cat >>conftest.$ac_ext <<_ACEOF
18097/* end confdefs.h. */
18098$ac_includes_default
18099int
18100main ()
18101{
18102if ((long long *) 0)
18103 return 0;
18104if (sizeof (long long))
18105 return 0;
18106 ;
18107 return 0;
18108}
18109_ACEOF
18110rm -f conftest.$ac_objext
18111if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18112 (eval $ac_compile) 2>conftest.er1
a848cd7e 18113 ac_status=$?
ac1cb8d3
VS
18114 grep -v '^ *+' conftest.er1 >conftest.err
18115 rm -f conftest.er1
18116 cat conftest.err >&5
a848cd7e
SC
18117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18118 (exit $ac_status); } &&
89be85c2
VS
18119 { ac_try='test -z "$ac_c_werror_flag"
18120 || test ! -s conftest.err'
ac1cb8d3
VS
18121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18122 (eval $ac_try) 2>&5
18123 ac_status=$?
18124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18125 (exit $ac_status); }; } &&
18126 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18128 (eval $ac_try) 2>&5
18129 ac_status=$?
18130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18131 (exit $ac_status); }; }; then
18132 ac_cv_type_long_long=yes
18133else
18134 echo "$as_me: failed program was:" >&5
18135sed 's/^/| /' conftest.$ac_ext >&5
18136
18137ac_cv_type_long_long=no
18138fi
ac1cb8d3 18139rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18140fi
18141echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
18142echo "${ECHO_T}$ac_cv_type_long_long" >&6
18143
18144echo "$as_me:$LINENO: checking size of long long" >&5
18145echo $ECHO_N "checking size of long long... $ECHO_C" >&6
18146if test "${ac_cv_sizeof_long_long+set}" = set; then
18147 echo $ECHO_N "(cached) $ECHO_C" >&6
18148else
18149 if test "$ac_cv_type_long_long" = yes; then
18150 # The cast to unsigned long works around a bug in the HP C Compiler
18151 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18152 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18153 # This bug is HP SR number 8606223364.
18154 if test "$cross_compiling" = yes; then
18155 # Depending upon the size, compute the lo and hi bounds.
18156cat >conftest.$ac_ext <<_ACEOF
18157/* confdefs.h. */
18158_ACEOF
18159cat confdefs.h >>conftest.$ac_ext
18160cat >>conftest.$ac_ext <<_ACEOF
18161/* end confdefs.h. */
18162$ac_includes_default
18163int
18164main ()
18165{
18166static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
18167test_array [0] = 0
18168
18169 ;
18170 return 0;
18171}
18172_ACEOF
18173rm -f conftest.$ac_objext
18174if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18175 (eval $ac_compile) 2>conftest.er1
a848cd7e 18176 ac_status=$?
ac1cb8d3
VS
18177 grep -v '^ *+' conftest.er1 >conftest.err
18178 rm -f conftest.er1
18179 cat conftest.err >&5
a848cd7e
SC
18180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18181 (exit $ac_status); } &&
89be85c2
VS
18182 { ac_try='test -z "$ac_c_werror_flag"
18183 || test ! -s conftest.err'
ac1cb8d3
VS
18184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18185 (eval $ac_try) 2>&5
18186 ac_status=$?
18187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18188 (exit $ac_status); }; } &&
18189 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18191 (eval $ac_try) 2>&5
18192 ac_status=$?
18193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18194 (exit $ac_status); }; }; then
18195 ac_lo=0 ac_mid=0
18196 while :; do
18197 cat >conftest.$ac_ext <<_ACEOF
18198/* confdefs.h. */
18199_ACEOF
18200cat confdefs.h >>conftest.$ac_ext
18201cat >>conftest.$ac_ext <<_ACEOF
18202/* end confdefs.h. */
18203$ac_includes_default
18204int
18205main ()
18206{
18207static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
18208test_array [0] = 0
18209
18210 ;
18211 return 0;
18212}
18213_ACEOF
18214rm -f conftest.$ac_objext
18215if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18216 (eval $ac_compile) 2>conftest.er1
a848cd7e 18217 ac_status=$?
ac1cb8d3
VS
18218 grep -v '^ *+' conftest.er1 >conftest.err
18219 rm -f conftest.er1
18220 cat conftest.err >&5
a848cd7e
SC
18221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18222 (exit $ac_status); } &&
89be85c2
VS
18223 { ac_try='test -z "$ac_c_werror_flag"
18224 || test ! -s conftest.err'
ac1cb8d3
VS
18225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18226 (eval $ac_try) 2>&5
18227 ac_status=$?
18228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18229 (exit $ac_status); }; } &&
18230 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18232 (eval $ac_try) 2>&5
18233 ac_status=$?
18234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18235 (exit $ac_status); }; }; then
18236 ac_hi=$ac_mid; break
18237else
18238 echo "$as_me: failed program was:" >&5
18239sed 's/^/| /' conftest.$ac_ext >&5
18240
18241ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
18242 if test $ac_lo -le $ac_mid; then
18243 ac_lo= ac_hi=
18244 break
18245 fi
18246 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 18247fi
ac1cb8d3 18248rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18249 done
18250else
18251 echo "$as_me: failed program was:" >&5
18252sed 's/^/| /' conftest.$ac_ext >&5
18253
18254cat >conftest.$ac_ext <<_ACEOF
18255/* confdefs.h. */
18256_ACEOF
18257cat confdefs.h >>conftest.$ac_ext
18258cat >>conftest.$ac_ext <<_ACEOF
18259/* end confdefs.h. */
18260$ac_includes_default
18261int
18262main ()
18263{
18264static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
18265test_array [0] = 0
18266
18267 ;
18268 return 0;
18269}
18270_ACEOF
18271rm -f conftest.$ac_objext
18272if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18273 (eval $ac_compile) 2>conftest.er1
a848cd7e 18274 ac_status=$?
ac1cb8d3
VS
18275 grep -v '^ *+' conftest.er1 >conftest.err
18276 rm -f conftest.er1
18277 cat conftest.err >&5
a848cd7e
SC
18278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18279 (exit $ac_status); } &&
89be85c2
VS
18280 { ac_try='test -z "$ac_c_werror_flag"
18281 || test ! -s conftest.err'
ac1cb8d3
VS
18282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18283 (eval $ac_try) 2>&5
18284 ac_status=$?
18285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18286 (exit $ac_status); }; } &&
18287 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18289 (eval $ac_try) 2>&5
18290 ac_status=$?
18291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18292 (exit $ac_status); }; }; then
18293 ac_hi=-1 ac_mid=-1
18294 while :; do
18295 cat >conftest.$ac_ext <<_ACEOF
18296/* confdefs.h. */
18297_ACEOF
18298cat confdefs.h >>conftest.$ac_ext
18299cat >>conftest.$ac_ext <<_ACEOF
18300/* end confdefs.h. */
18301$ac_includes_default
18302int
18303main ()
18304{
18305static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
18306test_array [0] = 0
18307
18308 ;
18309 return 0;
18310}
18311_ACEOF
18312rm -f conftest.$ac_objext
18313if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18314 (eval $ac_compile) 2>conftest.er1
a848cd7e 18315 ac_status=$?
ac1cb8d3
VS
18316 grep -v '^ *+' conftest.er1 >conftest.err
18317 rm -f conftest.er1
18318 cat conftest.err >&5
a848cd7e
SC
18319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18320 (exit $ac_status); } &&
89be85c2
VS
18321 { ac_try='test -z "$ac_c_werror_flag"
18322 || test ! -s conftest.err'
ac1cb8d3
VS
18323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18324 (eval $ac_try) 2>&5
18325 ac_status=$?
18326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18327 (exit $ac_status); }; } &&
18328 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18330 (eval $ac_try) 2>&5
18331 ac_status=$?
18332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18333 (exit $ac_status); }; }; then
18334 ac_lo=$ac_mid; break
18335else
18336 echo "$as_me: failed program was:" >&5
18337sed 's/^/| /' conftest.$ac_ext >&5
18338
18339ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
18340 if test $ac_mid -le $ac_hi; then
18341 ac_lo= ac_hi=
18342 break
18343 fi
18344 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 18345fi
ac1cb8d3 18346rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18347 done
18348else
18349 echo "$as_me: failed program was:" >&5
18350sed 's/^/| /' conftest.$ac_ext >&5
18351
18352ac_lo= ac_hi=
18353fi
ac1cb8d3 18354rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 18355fi
ac1cb8d3 18356rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18357# Binary search between lo and hi bounds.
18358while test "x$ac_lo" != "x$ac_hi"; do
18359 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18360 cat >conftest.$ac_ext <<_ACEOF
18361/* confdefs.h. */
18362_ACEOF
18363cat confdefs.h >>conftest.$ac_ext
18364cat >>conftest.$ac_ext <<_ACEOF
18365/* end confdefs.h. */
18366$ac_includes_default
18367int
18368main ()
18369{
18370static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
18371test_array [0] = 0
18372
18373 ;
18374 return 0;
18375}
18376_ACEOF
18377rm -f conftest.$ac_objext
18378if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18379 (eval $ac_compile) 2>conftest.er1
a848cd7e 18380 ac_status=$?
ac1cb8d3
VS
18381 grep -v '^ *+' conftest.er1 >conftest.err
18382 rm -f conftest.er1
18383 cat conftest.err >&5
a848cd7e
SC
18384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18385 (exit $ac_status); } &&
89be85c2
VS
18386 { ac_try='test -z "$ac_c_werror_flag"
18387 || test ! -s conftest.err'
ac1cb8d3
VS
18388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18389 (eval $ac_try) 2>&5
18390 ac_status=$?
18391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18392 (exit $ac_status); }; } &&
18393 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18395 (eval $ac_try) 2>&5
18396 ac_status=$?
18397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18398 (exit $ac_status); }; }; then
18399 ac_hi=$ac_mid
18400else
18401 echo "$as_me: failed program was:" >&5
18402sed 's/^/| /' conftest.$ac_ext >&5
18403
18404ac_lo=`expr '(' $ac_mid ')' + 1`
18405fi
ac1cb8d3 18406rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18407done
18408case $ac_lo in
18409?*) ac_cv_sizeof_long_long=$ac_lo;;
18410'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
18411See \`config.log' for more details." >&5
18412echo "$as_me: error: cannot compute sizeof (long long), 77
18413See \`config.log' for more details." >&2;}
18414 { (exit 1); exit 1; }; } ;;
18415esac
18416else
18417 if test "$cross_compiling" = yes; then
89be85c2
VS
18418 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
18419See \`config.log' for more details." >&5
18420echo "$as_me: error: cannot run test program while cross compiling
18421See \`config.log' for more details." >&2;}
a848cd7e
SC
18422 { (exit 1); exit 1; }; }
18423else
18424 cat >conftest.$ac_ext <<_ACEOF
18425/* confdefs.h. */
18426_ACEOF
18427cat confdefs.h >>conftest.$ac_ext
18428cat >>conftest.$ac_ext <<_ACEOF
18429/* end confdefs.h. */
18430$ac_includes_default
18431long longval () { return (long) (sizeof (long long)); }
18432unsigned long ulongval () { return (long) (sizeof (long long)); }
18433#include <stdio.h>
18434#include <stdlib.h>
18435int
18436main ()
18437{
18438
18439 FILE *f = fopen ("conftest.val", "w");
18440 if (! f)
18441 exit (1);
18442 if (((long) (sizeof (long long))) < 0)
18443 {
18444 long i = longval ();
18445 if (i != ((long) (sizeof (long long))))
18446 exit (1);
18447 fprintf (f, "%ld\n", i);
18448 }
18449 else
18450 {
18451 unsigned long i = ulongval ();
18452 if (i != ((long) (sizeof (long long))))
18453 exit (1);
18454 fprintf (f, "%lu\n", i);
18455 }
18456 exit (ferror (f) || fclose (f) != 0);
18457
18458 ;
18459 return 0;
18460}
18461_ACEOF
18462rm -f conftest$ac_exeext
18463if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18464 (eval $ac_link) 2>&5
18465 ac_status=$?
18466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18467 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18469 (eval $ac_try) 2>&5
18470 ac_status=$?
18471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18472 (exit $ac_status); }; }; then
18473 ac_cv_sizeof_long_long=`cat conftest.val`
18474else
18475 echo "$as_me: program exited with status $ac_status" >&5
18476echo "$as_me: failed program was:" >&5
18477sed 's/^/| /' conftest.$ac_ext >&5
18478
18479( exit $ac_status )
18480{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
18481See \`config.log' for more details." >&5
18482echo "$as_me: error: cannot compute sizeof (long long), 77
18483See \`config.log' for more details." >&2;}
18484 { (exit 1); exit 1; }; }
18485fi
ac1cb8d3 18486rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18487fi
18488fi
18489rm -f conftest.val
18490else
18491 ac_cv_sizeof_long_long=0
18492fi
18493fi
18494echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
18495echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
18496cat >>confdefs.h <<_ACEOF
18497#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
18498_ACEOF
18499
18500
18501esac
18502
18503echo "$as_me:$LINENO: checking size of wchar_t" >&5
18504echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6
18505if test "${wx_cv_sizeof_wchar_t+set}" = set; then
18506 echo $ECHO_N "(cached) $ECHO_C" >&6
18507else
18508
18509 if test "$cross_compiling" = yes; then
18510
18511 case "${host}" in
18512 *-pc-msdosdjgpp )
18513 wx_cv_sizeof_wchar_t=0
18514 ;;
18515 * )
18516 wx_cv_sizeof_wchar_t=4
18517 ;;
18518 esac
18519
18520
18521else
18522 cat >conftest.$ac_ext <<_ACEOF
18523/* confdefs.h. */
18524_ACEOF
18525cat confdefs.h >>conftest.$ac_ext
18526cat >>conftest.$ac_ext <<_ACEOF
18527/* end confdefs.h. */
18528
18529 /* DJGPP only has fake wchar_t: */
18530 #ifdef __DJGPP__
18531 # error "fake wchar_t"
18532 #endif
18533 #ifdef HAVE_WCHAR_H
18534 # ifdef __CYGWIN__
18535 # include <stddef.h>
18536 # endif
18537 # include <wchar.h>
18538 #endif
18539 #ifdef HAVE_STDLIB_H
18540 # include <stdlib.h>
18541 #endif
18542 #include <stdio.h>
18543 int main()
18544 {
18545 FILE *f=fopen("conftestval", "w");
18546 if (!f) exit(1);
18547 fprintf(f, "%i", sizeof(wchar_t));
18548 exit(0);
18549 }
18550
18551_ACEOF
18552rm -f conftest$ac_exeext
18553if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18554 (eval $ac_link) 2>&5
18555 ac_status=$?
18556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18557 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18559 (eval $ac_try) 2>&5
18560 ac_status=$?
18561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18562 (exit $ac_status); }; }; then
18563 wx_cv_sizeof_wchar_t=`cat conftestval`
18564else
18565 echo "$as_me: program exited with status $ac_status" >&5
18566echo "$as_me: failed program was:" >&5
18567sed 's/^/| /' conftest.$ac_ext >&5
18568
18569( exit $ac_status )
18570wx_cv_sizeof_wchar_t=0
18571fi
ac1cb8d3 18572rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18573fi
18574
18575fi
18576echo "$as_me:$LINENO: result: $wx_cv_sizeof_wchar_t" >&5
18577echo "${ECHO_T}$wx_cv_sizeof_wchar_t" >&6
18578
18579cat >>confdefs.h <<_ACEOF
18580#define SIZEOF_WCHAR_T $wx_cv_sizeof_wchar_t
18581_ACEOF
18582
18583
ba3d13e1
VZ
18584echo "$as_me:$LINENO: checking for va_copy" >&5
18585echo $ECHO_N "checking for va_copy... $ECHO_C" >&6
18586if test "${wx_cv_func_va_copy+set}" = set; then
18587 echo $ECHO_N "(cached) $ECHO_C" >&6
18588else
18589
18590 cat >conftest.$ac_ext <<_ACEOF
18591
18592 #include <stdarg.h>
18593 void foo(char *f, ...)
18594 {
18595 va_list ap1, ap2;
18596 va_start(ap1, f);
18597 va_copy(ap2, ap1);
18598 va_end(ap2);
18599 va_end(ap1);
18600 }
5886b072
VZ
18601 int main()
18602 {
b902e639
VZ
18603 foo("hi", 17);
18604 return 0;
5886b072 18605 }
ba3d13e1
VZ
18606_ACEOF
18607rm -f conftest.$ac_objext conftest$ac_exeext
18608if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18609 (eval $ac_link) 2>conftest.er1
18610 ac_status=$?
18611 grep -v '^ *+' conftest.er1 >conftest.err
18612 rm -f conftest.er1
18613 cat conftest.err >&5
18614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18615 (exit $ac_status); } &&
89be85c2
VS
18616 { ac_try='test -z "$ac_c_werror_flag"
18617 || test ! -s conftest.err'
ba3d13e1
VZ
18618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18619 (eval $ac_try) 2>&5
18620 ac_status=$?
18621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18622 (exit $ac_status); }; } &&
18623 { ac_try='test -s conftest$ac_exeext'
18624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18625 (eval $ac_try) 2>&5
18626 ac_status=$?
18627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18628 (exit $ac_status); }; }; then
18629 wx_cv_func_va_copy=yes
18630else
18631 echo "$as_me: failed program was:" >&5
18632sed 's/^/| /' conftest.$ac_ext >&5
18633
18634wx_cv_func_va_copy=no
18635
18636fi
18637rm -f conftest.err conftest.$ac_objext \
18638 conftest$ac_exeext conftest.$ac_ext
18639
18640
18641fi
18642echo "$as_me:$LINENO: result: $wx_cv_func_va_copy" >&5
18643echo "${ECHO_T}$wx_cv_func_va_copy" >&6
18644
18645if test $wx_cv_func_va_copy = "yes"; then
18646 cat >>confdefs.h <<\_ACEOF
18647#define HAVE_VA_COPY 1
18648_ACEOF
18649
18650else
18651 echo "$as_me:$LINENO: checking if va_list can be copied by value" >&5
18652echo $ECHO_N "checking if va_list can be copied by value... $ECHO_C" >&6
18653if test "${wx_cv_type_va_list_lvalue+set}" = set; then
18654 echo $ECHO_N "(cached) $ECHO_C" >&6
18655else
18656
18657 if test "$cross_compiling" = yes; then
18658 wx_cv_type_va_list_lvalue=yes
18659
18660else
18661 cat >conftest.$ac_ext <<_ACEOF
18662
18663 #include <stdarg.h>
18664 int foo(char *f, ...)
18665 {
18666 va_list ap1, ap2;
18667 va_start(ap1, f);
18668 ap2 = ap1;
18669 if ( va_arg(ap1, int) != 17 || va_arg(ap2, int) != 17 )
18670 return 1;
18671 va_end(ap2);
18672 va_end(ap1);
18673 return 0;
18674 }
18675 int main()
18676 {
18677 return foo("hi", 17);
18678 }
18679_ACEOF
18680rm -f conftest$ac_exeext
18681if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18682 (eval $ac_link) 2>&5
18683 ac_status=$?
18684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18685 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18687 (eval $ac_try) 2>&5
18688 ac_status=$?
18689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18690 (exit $ac_status); }; }; then
18691 wx_cv_type_va_list_lvalue=yes
18692else
18693 echo "$as_me: program exited with status $ac_status" >&5
18694echo "$as_me: failed program was:" >&5
18695sed 's/^/| /' conftest.$ac_ext >&5
18696
18697( exit $ac_status )
18698wx_cv_type_va_list_lvalue=no
18699fi
18700rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18701fi
18702
18703
18704fi
18705echo "$as_me:$LINENO: result: $wx_cv_type_va_list_lvalue" >&5
18706echo "${ECHO_T}$wx_cv_type_va_list_lvalue" >&6
18707
18708 if test $wx_cv_type_va_list_lvalue != "yes"; then
18709 cat >>confdefs.h <<\_ACEOF
18710#define VA_LIST_IS_ARRAY 1
18711_ACEOF
18712
18713 fi
18714fi
18715
a848cd7e
SC
18716# Check whether --enable-largefile or --disable-largefile was given.
18717if test "${enable_largefile+set}" = set; then
18718 enableval="$enable_largefile"
18719
18720fi;
18721if test "$enable_largefile" != no; then
18722 wx_largefile=no
18723
18724 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
18725echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
18726if test "${ac_cv_sys_file_offset_bits+set}" = set; then
18727 echo $ECHO_N "(cached) $ECHO_C" >&6
18728else
18729
18730 cat >conftest.$ac_ext <<_ACEOF
18731/* confdefs.h. */
18732_ACEOF
18733cat confdefs.h >>conftest.$ac_ext
18734cat >>conftest.$ac_ext <<_ACEOF
18735/* end confdefs.h. */
18736#define _FILE_OFFSET_BITS 64
18737 #include <sys/types.h>
18738int
18739main ()
18740{
18741typedef struct {
18742 unsigned int field: sizeof(off_t) == 8;
18743} wxlf;
18744
18745 ;
18746 return 0;
18747}
18748_ACEOF
18749rm -f conftest.$ac_objext
18750if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18751 (eval $ac_compile) 2>conftest.er1
a848cd7e 18752 ac_status=$?
ac1cb8d3
VS
18753 grep -v '^ *+' conftest.er1 >conftest.err
18754 rm -f conftest.er1
18755 cat conftest.err >&5
a848cd7e
SC
18756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18757 (exit $ac_status); } &&
89be85c2
VS
18758 { ac_try='test -z "$ac_c_werror_flag"
18759 || test ! -s conftest.err'
ac1cb8d3
VS
18760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18761 (eval $ac_try) 2>&5
18762 ac_status=$?
18763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18764 (exit $ac_status); }; } &&
18765 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18767 (eval $ac_try) 2>&5
18768 ac_status=$?
18769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18770 (exit $ac_status); }; }; then
18771 ac_cv_sys_file_offset_bits=64
18772else
18773 echo "$as_me: failed program was:" >&5
18774sed 's/^/| /' conftest.$ac_ext >&5
18775
18776ac_cv_sys_file_offset_bits=no
18777fi
ac1cb8d3 18778rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18779
18780
18781fi
18782echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
18783echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
18784
18785 if test "$ac_cv_sys_file_offset_bits" != no; then
18786 wx_largefile=yes
18787 cat >>confdefs.h <<_ACEOF
18788#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
18789_ACEOF
18790
18791 fi
18792
18793 if test "x$wx_largefile" != "xyes"; then
18794
18795 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
18796echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
18797if test "${ac_cv_sys_large_files+set}" = set; then
18798 echo $ECHO_N "(cached) $ECHO_C" >&6
18799else
18800
18801 cat >conftest.$ac_ext <<_ACEOF
18802/* confdefs.h. */
18803_ACEOF
18804cat confdefs.h >>conftest.$ac_ext
18805cat >>conftest.$ac_ext <<_ACEOF
18806/* end confdefs.h. */
18807#define _LARGE_FILES 1
18808 #include <sys/types.h>
18809int
18810main ()
18811{
18812typedef struct {
18813 unsigned int field: sizeof(off_t) == 8;
18814} wxlf;
18815
18816 ;
18817 return 0;
18818}
18819_ACEOF
18820rm -f conftest.$ac_objext
18821if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18822 (eval $ac_compile) 2>conftest.er1
a848cd7e 18823 ac_status=$?
ac1cb8d3
VS
18824 grep -v '^ *+' conftest.er1 >conftest.err
18825 rm -f conftest.er1
18826 cat conftest.err >&5
a848cd7e
SC
18827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18828 (exit $ac_status); } &&
89be85c2
VS
18829 { ac_try='test -z "$ac_c_werror_flag"
18830 || test ! -s conftest.err'
ac1cb8d3
VS
18831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18832 (eval $ac_try) 2>&5
18833 ac_status=$?
18834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18835 (exit $ac_status); }; } &&
18836 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18838 (eval $ac_try) 2>&5
18839 ac_status=$?
18840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18841 (exit $ac_status); }; }; then
18842 ac_cv_sys_large_files=1
18843else
18844 echo "$as_me: failed program was:" >&5
18845sed 's/^/| /' conftest.$ac_ext >&5
18846
18847ac_cv_sys_large_files=no
18848fi
ac1cb8d3 18849rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18850
18851
18852fi
18853echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
18854echo "${ECHO_T}$ac_cv_sys_large_files" >&6
18855
18856 if test "$ac_cv_sys_large_files" != no; then
18857 wx_largefile=yes
18858 cat >>confdefs.h <<_ACEOF
18859#define _LARGE_FILES $ac_cv_sys_large_files
18860_ACEOF
18861
18862 fi
18863
18864 fi
18865
18866 echo "$as_me:$LINENO: checking if large file support is available" >&5
18867echo $ECHO_N "checking if large file support is available... $ECHO_C" >&6
18868 if test "x$wx_largefile" = "xyes"; then
18869 cat >>confdefs.h <<\_ACEOF
18870#define HAVE_LARGEFILE_SUPPORT 1
18871_ACEOF
18872
18873 fi
18874 echo "$as_me:$LINENO: result: $wx_largefile" >&5
18875echo "${ECHO_T}$wx_largefile" >&6
18876fi
18877
5b674b9d
DE
18878
18879if test "x$wx_largefile" = "xyes"; then
18880 if test "x$ac_cv_sys_file_offset_bits" = "x64"; then
18881 WX_LARGEFILE_FLAGS="-D_FILE_OFFSET_BITS=64 -D_LARGE_FILES"
18882 else
18883 WX_LARGEFILE_FLAGS="-D_LARGE_FILES"
18884 fi
18885 echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
5294a27e
VZ
18886echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
18887if test "${ac_cv_sys_largefile_source+set}" = set; then
18888 echo $ECHO_N "(cached) $ECHO_C" >&6
18889else
18890 while :; do
18891 ac_cv_sys_largefile_source=no
18892 cat >conftest.$ac_ext <<_ACEOF
18893/* confdefs.h. */
18894_ACEOF
18895cat confdefs.h >>conftest.$ac_ext
18896cat >>conftest.$ac_ext <<_ACEOF
18897/* end confdefs.h. */
18898#include <stdio.h>
18899int
18900main ()
18901{
18902return !fseeko;
18903 ;
18904 return 0;
18905}
18906_ACEOF
18907rm -f conftest.$ac_objext
18908if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18909 (eval $ac_compile) 2>conftest.er1
18910 ac_status=$?
18911 grep -v '^ *+' conftest.er1 >conftest.err
18912 rm -f conftest.er1
18913 cat conftest.err >&5
18914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18915 (exit $ac_status); } &&
89be85c2
VS
18916 { ac_try='test -z "$ac_c_werror_flag"
18917 || test ! -s conftest.err'
5294a27e
VZ
18918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18919 (eval $ac_try) 2>&5
18920 ac_status=$?
18921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18922 (exit $ac_status); }; } &&
18923 { ac_try='test -s conftest.$ac_objext'
18924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18925 (eval $ac_try) 2>&5
18926 ac_status=$?
18927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18928 (exit $ac_status); }; }; then
18929 break
18930else
18931 echo "$as_me: failed program was:" >&5
18932sed 's/^/| /' conftest.$ac_ext >&5
18933
18934fi
18935rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18936 cat >conftest.$ac_ext <<_ACEOF
18937/* confdefs.h. */
18938_ACEOF
18939cat confdefs.h >>conftest.$ac_ext
18940cat >>conftest.$ac_ext <<_ACEOF
18941/* end confdefs.h. */
18942#define _LARGEFILE_SOURCE 1
18943#include <stdio.h>
18944int
18945main ()
18946{
18947return !fseeko;
18948 ;
18949 return 0;
18950}
18951_ACEOF
18952rm -f conftest.$ac_objext
18953if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18954 (eval $ac_compile) 2>conftest.er1
18955 ac_status=$?
18956 grep -v '^ *+' conftest.er1 >conftest.err
18957 rm -f conftest.er1
18958 cat conftest.err >&5
18959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18960 (exit $ac_status); } &&
89be85c2
VS
18961 { ac_try='test -z "$ac_c_werror_flag"
18962 || test ! -s conftest.err'
5294a27e
VZ
18963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18964 (eval $ac_try) 2>&5
18965 ac_status=$?
18966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18967 (exit $ac_status); }; } &&
18968 { ac_try='test -s conftest.$ac_objext'
18969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18970 (eval $ac_try) 2>&5
18971 ac_status=$?
18972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18973 (exit $ac_status); }; }; then
18974 ac_cv_sys_largefile_source=1; break
18975else
18976 echo "$as_me: failed program was:" >&5
18977sed 's/^/| /' conftest.$ac_ext >&5
18978
18979fi
18980rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18981 break
18982done
18983fi
18984echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
18985echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
18986if test "$ac_cv_sys_largefile_source" != no; then
18987
18988cat >>confdefs.h <<_ACEOF
18989#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
18990_ACEOF
18991
18992fi
18993rm -f conftest*
18994
18995# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
18996# in glibc 2.1.3, but that breaks too many other things.
18997# If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
18998echo "$as_me:$LINENO: checking for fseeko" >&5
18999echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
19000if test "${ac_cv_func_fseeko+set}" = set; then
19001 echo $ECHO_N "(cached) $ECHO_C" >&6
19002else
19003 cat >conftest.$ac_ext <<_ACEOF
19004/* confdefs.h. */
19005_ACEOF
19006cat confdefs.h >>conftest.$ac_ext
19007cat >>conftest.$ac_ext <<_ACEOF
19008/* end confdefs.h. */
19009#include <stdio.h>
19010int
19011main ()
19012{
19013return fseeko && fseeko (stdin, 0, 0);
19014 ;
19015 return 0;
19016}
19017_ACEOF
19018rm -f conftest.$ac_objext conftest$ac_exeext
19019if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19020 (eval $ac_link) 2>conftest.er1
19021 ac_status=$?
19022 grep -v '^ *+' conftest.er1 >conftest.err
19023 rm -f conftest.er1
19024 cat conftest.err >&5
19025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19026 (exit $ac_status); } &&
89be85c2
VS
19027 { ac_try='test -z "$ac_c_werror_flag"
19028 || test ! -s conftest.err'
5294a27e
VZ
19029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19030 (eval $ac_try) 2>&5
19031 ac_status=$?
19032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19033 (exit $ac_status); }; } &&
19034 { ac_try='test -s conftest$ac_exeext'
19035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19036 (eval $ac_try) 2>&5
19037 ac_status=$?
19038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19039 (exit $ac_status); }; }; then
19040 ac_cv_func_fseeko=yes
19041else
19042 echo "$as_me: failed program was:" >&5
19043sed 's/^/| /' conftest.$ac_ext >&5
19044
19045ac_cv_func_fseeko=no
19046fi
19047rm -f conftest.err conftest.$ac_objext \
19048 conftest$ac_exeext conftest.$ac_ext
19049fi
19050echo "$as_me:$LINENO: result: $ac_cv_func_fseeko" >&5
19051echo "${ECHO_T}$ac_cv_func_fseeko" >&6
19052if test $ac_cv_func_fseeko = yes; then
19053
19054cat >>confdefs.h <<\_ACEOF
19055#define HAVE_FSEEKO 1
19056_ACEOF
19057
19058fi
19059
5b674b9d
DE
19060 if test "$ac_cv_sys_largefile_source" != no; then
19061 WX_LARGEFILE_FLAGS="$WX_LARGEFILE_FLAGS -D_LARGEFILE_SOURCE=$ac_cv_sys_largefile_source"
a848cd7e
SC
19062 fi
19063 CPPFLAGS="$CPPFLAGS $WX_LARGEFILE_FLAGS"
19064fi
19065
19066echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
19067echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
19068if test "${ac_cv_c_bigendian+set}" = set; then
19069 echo $ECHO_N "(cached) $ECHO_C" >&6
19070else
19071 ac_cv_c_bigendian=unknown
19072# See if sys/param.h defines the BYTE_ORDER macro.
19073cat >conftest.$ac_ext <<_ACEOF
19074/* confdefs.h. */
19075_ACEOF
19076cat confdefs.h >>conftest.$ac_ext
19077cat >>conftest.$ac_ext <<_ACEOF
19078/* end confdefs.h. */
19079#include <sys/types.h>
19080#include <sys/param.h>
19081int
19082main ()
19083{
19084
19085#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
19086 bogus endian macros
19087#endif
19088 ;
19089 return 0;
19090}
19091_ACEOF
19092rm -f conftest.$ac_objext
19093if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19094 (eval $ac_compile) 2>conftest.er1
a848cd7e 19095 ac_status=$?
ac1cb8d3
VS
19096 grep -v '^ *+' conftest.er1 >conftest.err
19097 rm -f conftest.er1
19098 cat conftest.err >&5
a848cd7e
SC
19099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19100 (exit $ac_status); } &&
89be85c2
VS
19101 { ac_try='test -z "$ac_c_werror_flag"
19102 || test ! -s conftest.err'
ac1cb8d3
VS
19103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19104 (eval $ac_try) 2>&5
19105 ac_status=$?
19106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19107 (exit $ac_status); }; } &&
19108 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19110 (eval $ac_try) 2>&5
19111 ac_status=$?
19112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19113 (exit $ac_status); }; }; then
19114 # It does; now see whether it defined to BIG_ENDIAN or not.
19115cat >conftest.$ac_ext <<_ACEOF
19116/* confdefs.h. */
19117_ACEOF
19118cat confdefs.h >>conftest.$ac_ext
19119cat >>conftest.$ac_ext <<_ACEOF
19120/* end confdefs.h. */
19121#include <sys/types.h>
19122#include <sys/param.h>
19123int
19124main ()
19125{
19126
19127#if BYTE_ORDER != BIG_ENDIAN
19128 not big endian
19129#endif
19130 ;
19131 return 0;
19132}
19133_ACEOF
19134rm -f conftest.$ac_objext
19135if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19136 (eval $ac_compile) 2>conftest.er1
a848cd7e 19137 ac_status=$?
ac1cb8d3
VS
19138 grep -v '^ *+' conftest.er1 >conftest.err
19139 rm -f conftest.er1
19140 cat conftest.err >&5
a848cd7e
SC
19141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19142 (exit $ac_status); } &&
89be85c2
VS
19143 { ac_try='test -z "$ac_c_werror_flag"
19144 || test ! -s conftest.err'
ac1cb8d3
VS
19145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19146 (eval $ac_try) 2>&5
19147 ac_status=$?
19148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19149 (exit $ac_status); }; } &&
19150 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19152 (eval $ac_try) 2>&5
19153 ac_status=$?
19154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19155 (exit $ac_status); }; }; then
19156 ac_cv_c_bigendian=yes
19157else
19158 echo "$as_me: failed program was:" >&5
19159sed 's/^/| /' conftest.$ac_ext >&5
19160
19161ac_cv_c_bigendian=no
19162fi
ac1cb8d3 19163rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19164else
19165 echo "$as_me: failed program was:" >&5
19166sed 's/^/| /' conftest.$ac_ext >&5
19167
19168fi
ac1cb8d3 19169rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19170if test $ac_cv_c_bigendian = unknown; then
19171if test "$cross_compiling" = yes; then
19172 ac_cv_c_bigendian=unknown
19173else
19174 cat >conftest.$ac_ext <<_ACEOF
19175/* confdefs.h. */
19176_ACEOF
19177cat confdefs.h >>conftest.$ac_ext
19178cat >>conftest.$ac_ext <<_ACEOF
19179/* end confdefs.h. */
19180main () {
19181 /* Are we little or big endian? From Harbison&Steele. */
19182 union
19183 {
19184 long l;
19185 char c[sizeof (long)];
19186 } u;
19187 u.l = 1;
19188 exit (u.c[sizeof (long) - 1] == 1);
19189}
19190_ACEOF
19191rm -f conftest$ac_exeext
19192if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19193 (eval $ac_link) 2>&5
19194 ac_status=$?
19195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19196 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19198 (eval $ac_try) 2>&5
19199 ac_status=$?
19200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19201 (exit $ac_status); }; }; then
19202 ac_cv_c_bigendian=no
19203else
19204 echo "$as_me: program exited with status $ac_status" >&5
19205echo "$as_me: failed program was:" >&5
19206sed 's/^/| /' conftest.$ac_ext >&5
19207
19208( exit $ac_status )
19209ac_cv_c_bigendian=yes
19210fi
ac1cb8d3 19211rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19212fi
19213fi
19214fi
19215echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
19216echo "${ECHO_T}$ac_cv_c_bigendian" >&6
19217if test $ac_cv_c_bigendian = unknown; then
19218 { 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
19219echo "$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;}
19220fi
19221if test $ac_cv_c_bigendian = yes; then
19222 cat >>confdefs.h <<\_ACEOF
19223#define WORDS_BIGENDIAN 1
19224_ACEOF
19225
19226fi
19227
19228
19229ac_ext=cc
19230ac_cpp='$CXXCPP $CPPFLAGS'
19231ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19232ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19233ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19234echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
19235echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
19236if test -z "$CXXCPP"; then
19237 if test "${ac_cv_prog_CXXCPP+set}" = set; then
19238 echo $ECHO_N "(cached) $ECHO_C" >&6
19239else
19240 # Double quotes because CXXCPP needs to be expanded
19241 for CXXCPP in "$CXX -E" "/lib/cpp"
19242 do
19243 ac_preproc_ok=false
19244for ac_cxx_preproc_warn_flag in '' yes
19245do
19246 # Use a header file that comes with gcc, so configuring glibc
19247 # with a fresh cross-compiler works.
19248 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19249 # <limits.h> exists even on freestanding compilers.
19250 # On the NeXT, cc -E runs the code through the compiler's parser,
19251 # not just through cpp. "Syntax error" is here to catch this case.
19252 cat >conftest.$ac_ext <<_ACEOF
19253/* confdefs.h. */
19254_ACEOF
19255cat confdefs.h >>conftest.$ac_ext
19256cat >>conftest.$ac_ext <<_ACEOF
19257/* end confdefs.h. */
19258#ifdef __STDC__
19259# include <limits.h>
19260#else
19261# include <assert.h>
19262#endif
ac1cb8d3 19263 Syntax error
a848cd7e
SC
19264_ACEOF
19265if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19266 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19267 ac_status=$?
19268 grep -v '^ *+' conftest.er1 >conftest.err
19269 rm -f conftest.er1
19270 cat conftest.err >&5
19271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19272 (exit $ac_status); } >/dev/null; then
19273 if test -s conftest.err; then
19274 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 19275 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
19276 else
19277 ac_cpp_err=
19278 fi
19279else
19280 ac_cpp_err=yes
19281fi
19282if test -z "$ac_cpp_err"; then
19283 :
19284else
19285 echo "$as_me: failed program was:" >&5
19286sed 's/^/| /' conftest.$ac_ext >&5
19287
19288 # Broken: fails on valid input.
19289continue
19290fi
19291rm -f conftest.err conftest.$ac_ext
19292
19293 # OK, works on sane cases. Now check whether non-existent headers
19294 # can be detected and how.
19295 cat >conftest.$ac_ext <<_ACEOF
19296/* confdefs.h. */
19297_ACEOF
19298cat confdefs.h >>conftest.$ac_ext
19299cat >>conftest.$ac_ext <<_ACEOF
19300/* end confdefs.h. */
19301#include <ac_nonexistent.h>
19302_ACEOF
19303if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19304 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19305 ac_status=$?
19306 grep -v '^ *+' conftest.er1 >conftest.err
19307 rm -f conftest.er1
19308 cat conftest.err >&5
19309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19310 (exit $ac_status); } >/dev/null; then
19311 if test -s conftest.err; then
19312 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 19313 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
19314 else
19315 ac_cpp_err=
19316 fi
19317else
19318 ac_cpp_err=yes
19319fi
19320if test -z "$ac_cpp_err"; then
19321 # Broken: success on invalid input.
19322continue
19323else
19324 echo "$as_me: failed program was:" >&5
19325sed 's/^/| /' conftest.$ac_ext >&5
19326
19327 # Passes both tests.
19328ac_preproc_ok=:
19329break
19330fi
19331rm -f conftest.err conftest.$ac_ext
19332
19333done
19334# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
19335rm -f conftest.err conftest.$ac_ext
19336if $ac_preproc_ok; then
19337 break
19338fi
19339
19340 done
19341 ac_cv_prog_CXXCPP=$CXXCPP
19342
19343fi
19344 CXXCPP=$ac_cv_prog_CXXCPP
19345else
19346 ac_cv_prog_CXXCPP=$CXXCPP
19347fi
19348echo "$as_me:$LINENO: result: $CXXCPP" >&5
19349echo "${ECHO_T}$CXXCPP" >&6
19350ac_preproc_ok=false
19351for ac_cxx_preproc_warn_flag in '' yes
19352do
19353 # Use a header file that comes with gcc, so configuring glibc
19354 # with a fresh cross-compiler works.
19355 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19356 # <limits.h> exists even on freestanding compilers.
19357 # On the NeXT, cc -E runs the code through the compiler's parser,
19358 # not just through cpp. "Syntax error" is here to catch this case.
19359 cat >conftest.$ac_ext <<_ACEOF
19360/* confdefs.h. */
19361_ACEOF
19362cat confdefs.h >>conftest.$ac_ext
19363cat >>conftest.$ac_ext <<_ACEOF
19364/* end confdefs.h. */
19365#ifdef __STDC__
19366# include <limits.h>
19367#else
19368# include <assert.h>
19369#endif
ac1cb8d3 19370 Syntax error
a848cd7e
SC
19371_ACEOF
19372if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19373 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19374 ac_status=$?
19375 grep -v '^ *+' conftest.er1 >conftest.err
19376 rm -f conftest.er1
19377 cat conftest.err >&5
19378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19379 (exit $ac_status); } >/dev/null; then
19380 if test -s conftest.err; then
19381 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 19382 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
19383 else
19384 ac_cpp_err=
19385 fi
19386else
19387 ac_cpp_err=yes
19388fi
19389if test -z "$ac_cpp_err"; then
19390 :
19391else
19392 echo "$as_me: failed program was:" >&5
19393sed 's/^/| /' conftest.$ac_ext >&5
19394
19395 # Broken: fails on valid input.
19396continue
19397fi
19398rm -f conftest.err conftest.$ac_ext
19399
19400 # OK, works on sane cases. Now check whether non-existent headers
19401 # can be detected and how.
19402 cat >conftest.$ac_ext <<_ACEOF
19403/* confdefs.h. */
19404_ACEOF
19405cat confdefs.h >>conftest.$ac_ext
19406cat >>conftest.$ac_ext <<_ACEOF
19407/* end confdefs.h. */
19408#include <ac_nonexistent.h>
19409_ACEOF
19410if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19411 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19412 ac_status=$?
19413 grep -v '^ *+' conftest.er1 >conftest.err
19414 rm -f conftest.er1
19415 cat conftest.err >&5
19416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19417 (exit $ac_status); } >/dev/null; then
19418 if test -s conftest.err; then
19419 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 19420 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
19421 else
19422 ac_cpp_err=
19423 fi
19424else
19425 ac_cpp_err=yes
19426fi
19427if test -z "$ac_cpp_err"; then
19428 # Broken: success on invalid input.
19429continue
19430else
19431 echo "$as_me: failed program was:" >&5
19432sed 's/^/| /' conftest.$ac_ext >&5
19433
19434 # Passes both tests.
19435ac_preproc_ok=:
19436break
19437fi
19438rm -f conftest.err conftest.$ac_ext
19439
19440done
19441# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
19442rm -f conftest.err conftest.$ac_ext
19443if $ac_preproc_ok; then
19444 :
19445else
19446 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
19447See \`config.log' for more details." >&5
19448echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
19449See \`config.log' for more details." >&2;}
19450 { (exit 1); exit 1; }; }
19451fi
19452
19453ac_ext=cc
19454ac_cpp='$CXXCPP $CPPFLAGS'
19455ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19456ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19457ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19458
19459
19460
19461
19462
19463 ac_ext=cc
19464ac_cpp='$CXXCPP $CPPFLAGS'
19465ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19466ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19467ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19468
19469
19470
19471for ac_header in iostream
19472do
19473as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19474if eval "test \"\${$as_ac_Header+set}\" = set"; then
19475 echo "$as_me:$LINENO: checking for $ac_header" >&5
19476echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19477if eval "test \"\${$as_ac_Header+set}\" = set"; then
19478 echo $ECHO_N "(cached) $ECHO_C" >&6
19479fi
19480echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19481echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19482else
19483 # Is the header compilable?
19484echo "$as_me:$LINENO: checking $ac_header usability" >&5
19485echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19486cat >conftest.$ac_ext <<_ACEOF
19487/* confdefs.h. */
19488_ACEOF
19489cat confdefs.h >>conftest.$ac_ext
19490cat >>conftest.$ac_ext <<_ACEOF
19491/* end confdefs.h. */
19492$ac_includes_default
19493#include <$ac_header>
19494_ACEOF
19495rm -f conftest.$ac_objext
19496if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19497 (eval $ac_compile) 2>conftest.er1
a848cd7e 19498 ac_status=$?
ac1cb8d3
VS
19499 grep -v '^ *+' conftest.er1 >conftest.err
19500 rm -f conftest.er1
19501 cat conftest.err >&5
a848cd7e
SC
19502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19503 (exit $ac_status); } &&
89be85c2
VS
19504 { ac_try='test -z "$ac_cxx_werror_flag"
19505 || test ! -s conftest.err'
ac1cb8d3
VS
19506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19507 (eval $ac_try) 2>&5
19508 ac_status=$?
19509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19510 (exit $ac_status); }; } &&
19511 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
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); }; }; then
19517 ac_header_compiler=yes
19518else
19519 echo "$as_me: failed program was:" >&5
19520sed 's/^/| /' conftest.$ac_ext >&5
19521
19522ac_header_compiler=no
19523fi
ac1cb8d3 19524rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19525echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19526echo "${ECHO_T}$ac_header_compiler" >&6
19527
19528# Is the header present?
19529echo "$as_me:$LINENO: checking $ac_header presence" >&5
19530echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19531cat >conftest.$ac_ext <<_ACEOF
19532/* confdefs.h. */
19533_ACEOF
19534cat confdefs.h >>conftest.$ac_ext
19535cat >>conftest.$ac_ext <<_ACEOF
19536/* end confdefs.h. */
19537#include <$ac_header>
19538_ACEOF
19539if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19540 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19541 ac_status=$?
19542 grep -v '^ *+' conftest.er1 >conftest.err
19543 rm -f conftest.er1
19544 cat conftest.err >&5
19545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19546 (exit $ac_status); } >/dev/null; then
19547 if test -s conftest.err; then
19548 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 19549 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
19550 else
19551 ac_cpp_err=
19552 fi
19553else
19554 ac_cpp_err=yes
19555fi
19556if test -z "$ac_cpp_err"; then
19557 ac_header_preproc=yes
19558else
19559 echo "$as_me: failed program was:" >&5
19560sed 's/^/| /' conftest.$ac_ext >&5
19561
19562 ac_header_preproc=no
19563fi
19564rm -f conftest.err conftest.$ac_ext
19565echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19566echo "${ECHO_T}$ac_header_preproc" >&6
19567
19568# So? What about this header?
ac1cb8d3
VS
19569case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
19570 yes:no: )
a848cd7e
SC
19571 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19572echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
19573 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19574echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19575 ac_header_preproc=yes
a848cd7e 19576 ;;
ac1cb8d3 19577 no:yes:* )
a848cd7e
SC
19578 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19579echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
19580 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19581echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19582 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19583echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19584 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19585echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
19586 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19587echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
19588 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19589echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
19590 (
19591 cat <<\_ASBOX
ac1cb8d3
VS
19592## ----------------------------------------- ##
19593## Report this to wx-dev@lists.wxwidgets.org ##
19594## ----------------------------------------- ##
a848cd7e
SC
19595_ASBOX
19596 ) |
19597 sed "s/^/$as_me: WARNING: /" >&2
19598 ;;
19599esac
19600echo "$as_me:$LINENO: checking for $ac_header" >&5
19601echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19602if eval "test \"\${$as_ac_Header+set}\" = set"; then
19603 echo $ECHO_N "(cached) $ECHO_C" >&6
19604else
ac1cb8d3 19605 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
19606fi
19607echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19608echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19609
19610fi
19611if test `eval echo '${'$as_ac_Header'}'` = yes; then
19612 cat >>confdefs.h <<_ACEOF
19613#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19614_ACEOF
19615
19616fi
19617
19618done
19619
19620
19621 if test "$ac_cv_header_iostream" = "yes" ; then
19622 :
19623 else
19624 cat >>confdefs.h <<\_ACEOF
19625#define wxUSE_IOSTREAMH 1
19626_ACEOF
19627
19628 fi
19629
19630 ac_ext=c
19631ac_cpp='$CPP $CPPFLAGS'
19632ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19633ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19634ac_compiler_gnu=$ac_cv_c_compiler_gnu
19635
19636
19637
19638
19639 echo "$as_me:$LINENO: checking if C++ compiler supports bool" >&5
19640echo $ECHO_N "checking if C++ compiler supports bool... $ECHO_C" >&6
19641if test "${wx_cv_cpp_bool+set}" = set; then
19642 echo $ECHO_N "(cached) $ECHO_C" >&6
19643else
19644
19645
19646
19647 ac_ext=cc
19648ac_cpp='$CXXCPP $CPPFLAGS'
19649ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19650ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19651ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19652
19653
19654 cat >conftest.$ac_ext <<_ACEOF
19655/* confdefs.h. */
19656_ACEOF
19657cat confdefs.h >>conftest.$ac_ext
19658cat >>conftest.$ac_ext <<_ACEOF
19659/* end confdefs.h. */
19660
19661
19662int
19663main ()
19664{
19665
19666 bool b = true;
19667
19668 return 0;
19669
19670 ;
19671 return 0;
19672}
19673_ACEOF
19674rm -f conftest.$ac_objext
19675if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19676 (eval $ac_compile) 2>conftest.er1
a848cd7e 19677 ac_status=$?
ac1cb8d3
VS
19678 grep -v '^ *+' conftest.er1 >conftest.err
19679 rm -f conftest.er1
19680 cat conftest.err >&5
a848cd7e
SC
19681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19682 (exit $ac_status); } &&
89be85c2
VS
19683 { ac_try='test -z "$ac_cxx_werror_flag"
19684 || test ! -s conftest.err'
ac1cb8d3
VS
19685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19686 (eval $ac_try) 2>&5
19687 ac_status=$?
19688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19689 (exit $ac_status); }; } &&
19690 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19692 (eval $ac_try) 2>&5
19693 ac_status=$?
19694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19695 (exit $ac_status); }; }; then
19696
19697 wx_cv_cpp_bool=yes
19698
19699else
19700 echo "$as_me: failed program was:" >&5
19701sed 's/^/| /' conftest.$ac_ext >&5
19702
19703
19704 wx_cv_cpp_bool=no
19705
19706
19707fi
ac1cb8d3 19708rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19709
19710 ac_ext=c
19711ac_cpp='$CPP $CPPFLAGS'
19712ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19713ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19714ac_compiler_gnu=$ac_cv_c_compiler_gnu
19715
19716
19717fi
19718echo "$as_me:$LINENO: result: $wx_cv_cpp_bool" >&5
19719echo "${ECHO_T}$wx_cv_cpp_bool" >&6
19720
19721 if test "$wx_cv_cpp_bool" = "yes"; then
19722 cat >>confdefs.h <<\_ACEOF
19723#define HAVE_BOOL 1
19724_ACEOF
19725
19726 fi
19727
19728
19729
19730 echo "$as_me:$LINENO: checking if C++ compiler supports the explicit keyword" >&5
19731echo $ECHO_N "checking if C++ compiler supports the explicit keyword... $ECHO_C" >&6
19732if test "${wx_cv_explicit+set}" = set; then
19733 echo $ECHO_N "(cached) $ECHO_C" >&6
19734else
19735
19736
19737
19738 ac_ext=cc
19739ac_cpp='$CXXCPP $CPPFLAGS'
19740ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19741ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19742ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19743
19744
19745 cat >conftest.$ac_ext <<_ACEOF
19746/* confdefs.h. */
19747_ACEOF
19748cat confdefs.h >>conftest.$ac_ext
19749cat >>conftest.$ac_ext <<_ACEOF
19750/* end confdefs.h. */
19751
19752 class Foo { public: explicit Foo(int) {} };
19753
19754int
19755main ()
19756{
19757
19758 return 0;
19759
19760 ;
19761 return 0;
19762}
19763_ACEOF
19764rm -f conftest.$ac_objext
19765if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19766 (eval $ac_compile) 2>conftest.er1
a848cd7e 19767 ac_status=$?
ac1cb8d3
VS
19768 grep -v '^ *+' conftest.er1 >conftest.err
19769 rm -f conftest.er1
19770 cat conftest.err >&5
a848cd7e
SC
19771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19772 (exit $ac_status); } &&
89be85c2
VS
19773 { ac_try='test -z "$ac_cxx_werror_flag"
19774 || test ! -s conftest.err'
ac1cb8d3
VS
19775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19776 (eval $ac_try) 2>&5
19777 ac_status=$?
19778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19779 (exit $ac_status); }; } &&
19780 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19782 (eval $ac_try) 2>&5
19783 ac_status=$?
19784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19785 (exit $ac_status); }; }; then
19786
19787 cat >conftest.$ac_ext <<_ACEOF
19788/* confdefs.h. */
19789_ACEOF
19790cat confdefs.h >>conftest.$ac_ext
19791cat >>conftest.$ac_ext <<_ACEOF
19792/* end confdefs.h. */
19793
19794 class Foo { public: explicit Foo(int) {} };
19795 static void TakeFoo(const Foo& foo) { }
19796
19797int
19798main ()
19799{
19800
19801 TakeFoo(17);
19802 return 0;
19803
19804 ;
19805 return 0;
19806}
19807_ACEOF
19808rm -f conftest.$ac_objext
19809if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19810 (eval $ac_compile) 2>conftest.er1
a848cd7e 19811 ac_status=$?
ac1cb8d3
VS
19812 grep -v '^ *+' conftest.er1 >conftest.err
19813 rm -f conftest.er1
19814 cat conftest.err >&5
a848cd7e
SC
19815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19816 (exit $ac_status); } &&
89be85c2
VS
19817 { ac_try='test -z "$ac_cxx_werror_flag"
19818 || test ! -s conftest.err'
ac1cb8d3
VS
19819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19820 (eval $ac_try) 2>&5
19821 ac_status=$?
19822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19823 (exit $ac_status); }; } &&
19824 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19826 (eval $ac_try) 2>&5
19827 ac_status=$?
19828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19829 (exit $ac_status); }; }; then
19830 wx_cv_explicit=no
19831else
19832 echo "$as_me: failed program was:" >&5
19833sed 's/^/| /' conftest.$ac_ext >&5
19834
19835wx_cv_explicit=yes
19836
19837fi
ac1cb8d3 19838rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19839
19840else
19841 echo "$as_me: failed program was:" >&5
19842sed 's/^/| /' conftest.$ac_ext >&5
19843
19844wx_cv_explicit=no
19845
19846fi
ac1cb8d3 19847rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19848
19849 ac_ext=c
19850ac_cpp='$CPP $CPPFLAGS'
19851ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19852ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19853ac_compiler_gnu=$ac_cv_c_compiler_gnu
19854
19855
19856fi
19857echo "$as_me:$LINENO: result: $wx_cv_explicit" >&5
19858echo "${ECHO_T}$wx_cv_explicit" >&6
19859
19860 if test "$wx_cv_explicit" = "yes"; then
19861 cat >>confdefs.h <<\_ACEOF
19862#define HAVE_EXPLICIT 1
19863_ACEOF
19864
19865 fi
19866
19867
19868echo "$as_me:$LINENO: checking whether the compiler supports const_cast<>" >&5
19869echo $ECHO_N "checking whether the compiler supports const_cast<>... $ECHO_C" >&6
19870if test "${ac_cv_cxx_const_cast+set}" = set; then
19871 echo $ECHO_N "(cached) $ECHO_C" >&6
19872else
19873
19874
19875 ac_ext=cc
19876ac_cpp='$CXXCPP $CPPFLAGS'
19877ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19878ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19879ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19880
19881 cat >conftest.$ac_ext <<_ACEOF
19882/* confdefs.h. */
19883_ACEOF
19884cat confdefs.h >>conftest.$ac_ext
19885cat >>conftest.$ac_ext <<_ACEOF
19886/* end confdefs.h. */
19887
19888int
19889main ()
19890{
19891int x = 0;const int& y = x;int& z = const_cast<int&>(y);return z;
19892 ;
19893 return 0;
19894}
19895_ACEOF
19896rm -f conftest.$ac_objext
19897if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19898 (eval $ac_compile) 2>conftest.er1
a848cd7e 19899 ac_status=$?
ac1cb8d3
VS
19900 grep -v '^ *+' conftest.er1 >conftest.err
19901 rm -f conftest.er1
19902 cat conftest.err >&5
a848cd7e
SC
19903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19904 (exit $ac_status); } &&
89be85c2
VS
19905 { ac_try='test -z "$ac_cxx_werror_flag"
19906 || test ! -s conftest.err'
ac1cb8d3
VS
19907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19908 (eval $ac_try) 2>&5
19909 ac_status=$?
19910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19911 (exit $ac_status); }; } &&
19912 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19914 (eval $ac_try) 2>&5
19915 ac_status=$?
19916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19917 (exit $ac_status); }; }; then
19918 ac_cv_cxx_const_cast=yes
19919else
19920 echo "$as_me: failed program was:" >&5
19921sed 's/^/| /' conftest.$ac_ext >&5
19922
19923ac_cv_cxx_const_cast=no
19924fi
ac1cb8d3 19925rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19926 ac_ext=c
19927ac_cpp='$CPP $CPPFLAGS'
19928ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19929ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19930ac_compiler_gnu=$ac_cv_c_compiler_gnu
19931
19932
19933fi
19934echo "$as_me:$LINENO: result: $ac_cv_cxx_const_cast" >&5
19935echo "${ECHO_T}$ac_cv_cxx_const_cast" >&6
19936if test "$ac_cv_cxx_const_cast" = yes; then
19937
19938cat >>confdefs.h <<\_ACEOF
19939#define HAVE_CONST_CAST
19940_ACEOF
19941
19942fi
19943
7714864e
RL
19944echo "$as_me:$LINENO: checking whether the compiler supports reinterpret_cast<>" >&5
19945echo $ECHO_N "checking whether the compiler supports reinterpret_cast<>... $ECHO_C" >&6
19946if test "${ac_cv_cxx_reinterpret_cast+set}" = set; then
19947 echo $ECHO_N "(cached) $ECHO_C" >&6
19948else
19949
19950
19951 ac_ext=cc
19952ac_cpp='$CXXCPP $CPPFLAGS'
19953ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19954ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19955ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19956
19957 cat >conftest.$ac_ext <<_ACEOF
19958/* confdefs.h. */
19959_ACEOF
19960cat confdefs.h >>conftest.$ac_ext
19961cat >>conftest.$ac_ext <<_ACEOF
19962/* end confdefs.h. */
19963#include <typeinfo>
19964class Base { public : Base () {} virtual void f () = 0;};
19965class Derived : public Base { public : Derived () {} virtual void f () {} };
19966class Unrelated { public : Unrelated () {} };
19967int g (Unrelated&) { return 0; }
19968int
19969main ()
19970{
19971
19972Derived d;Base& b=d;Unrelated& e=reinterpret_cast<Unrelated&>(b);return g(e);
19973 ;
19974 return 0;
19975}
19976_ACEOF
19977rm -f conftest.$ac_objext
19978if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19979 (eval $ac_compile) 2>conftest.er1
19980 ac_status=$?
19981 grep -v '^ *+' conftest.er1 >conftest.err
19982 rm -f conftest.er1
19983 cat conftest.err >&5
19984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19985 (exit $ac_status); } &&
89be85c2
VS
19986 { ac_try='test -z "$ac_cxx_werror_flag"
19987 || test ! -s conftest.err'
7714864e
RL
19988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19989 (eval $ac_try) 2>&5
19990 ac_status=$?
19991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19992 (exit $ac_status); }; } &&
19993 { ac_try='test -s conftest.$ac_objext'
19994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19995 (eval $ac_try) 2>&5
19996 ac_status=$?
19997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19998 (exit $ac_status); }; }; then
19999 ac_cv_cxx_reinterpret_cast=yes
20000else
20001 echo "$as_me: failed program was:" >&5
20002sed 's/^/| /' conftest.$ac_ext >&5
20003
20004ac_cv_cxx_reinterpret_cast=no
20005fi
20006rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20007 ac_ext=c
20008ac_cpp='$CPP $CPPFLAGS'
20009ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20010ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20011ac_compiler_gnu=$ac_cv_c_compiler_gnu
20012
20013
20014fi
20015echo "$as_me:$LINENO: result: $ac_cv_cxx_reinterpret_cast" >&5
20016echo "${ECHO_T}$ac_cv_cxx_reinterpret_cast" >&6
20017if test "$ac_cv_cxx_reinterpret_cast" = yes; then
20018
20019cat >>confdefs.h <<\_ACEOF
20020#define HAVE_REINTERPRET_CAST
20021_ACEOF
20022
20023fi
20024
a848cd7e
SC
20025echo "$as_me:$LINENO: checking whether the compiler supports static_cast<>" >&5
20026echo $ECHO_N "checking whether the compiler supports static_cast<>... $ECHO_C" >&6
20027if test "${ac_cv_cxx_static_cast+set}" = set; then
20028 echo $ECHO_N "(cached) $ECHO_C" >&6
20029else
20030
20031
20032 ac_ext=cc
20033ac_cpp='$CXXCPP $CPPFLAGS'
20034ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20035ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20036ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20037
20038 cat >conftest.$ac_ext <<_ACEOF
20039/* confdefs.h. */
20040_ACEOF
20041cat confdefs.h >>conftest.$ac_ext
20042cat >>conftest.$ac_ext <<_ACEOF
20043/* end confdefs.h. */
20044#include <typeinfo>
20045class Base { public : Base () {} virtual void f () = 0; };
20046class Derived : public Base { public : Derived () {} virtual void f () {} };
20047int g (Derived&) { return 0; }
20048int
20049main ()
20050{
20051
20052Derived d; Base& b = d; Derived& s = static_cast<Derived&> (b); return g (s);
20053 ;
20054 return 0;
20055}
20056_ACEOF
20057rm -f conftest.$ac_objext
20058if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20059 (eval $ac_compile) 2>conftest.er1
a848cd7e 20060 ac_status=$?
ac1cb8d3
VS
20061 grep -v '^ *+' conftest.er1 >conftest.err
20062 rm -f conftest.er1
20063 cat conftest.err >&5
a848cd7e
SC
20064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20065 (exit $ac_status); } &&
89be85c2
VS
20066 { ac_try='test -z "$ac_cxx_werror_flag"
20067 || test ! -s conftest.err'
ac1cb8d3
VS
20068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20069 (eval $ac_try) 2>&5
20070 ac_status=$?
20071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20072 (exit $ac_status); }; } &&
20073 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20075 (eval $ac_try) 2>&5
20076 ac_status=$?
20077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20078 (exit $ac_status); }; }; then
20079 ac_cv_cxx_static_cast=yes
20080else
20081 echo "$as_me: failed program was:" >&5
20082sed 's/^/| /' conftest.$ac_ext >&5
20083
20084ac_cv_cxx_static_cast=no
20085fi
ac1cb8d3 20086rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20087 ac_ext=c
20088ac_cpp='$CPP $CPPFLAGS'
20089ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20090ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20091ac_compiler_gnu=$ac_cv_c_compiler_gnu
20092
20093
20094fi
20095echo "$as_me:$LINENO: result: $ac_cv_cxx_static_cast" >&5
20096echo "${ECHO_T}$ac_cv_cxx_static_cast" >&6
20097if test "$ac_cv_cxx_static_cast" = yes; then
20098
20099cat >>confdefs.h <<\_ACEOF
20100#define HAVE_STATIC_CAST
20101_ACEOF
20102
20103fi
20104
20105
20106if test "$wxUSE_STL" = "yes"; then
20107 ac_ext=cc
20108ac_cpp='$CXXCPP $CPPFLAGS'
20109ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20110ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20111ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20112
20113
20114 echo "$as_me:$LINENO: checking for basic STL functionality" >&5
20115echo $ECHO_N "checking for basic STL functionality... $ECHO_C" >&6
20116 cat >conftest.$ac_ext <<_ACEOF
20117/* confdefs.h. */
20118_ACEOF
20119cat confdefs.h >>conftest.$ac_ext
20120cat >>conftest.$ac_ext <<_ACEOF
20121/* end confdefs.h. */
20122#include <string>
20123 #include <functional>
20124 #include <algorithm>
20125 #include <vector>
20126 #include <list>
20127int
20128main ()
20129{
20130std::vector<int> moo;
20131 std::list<int> foo;
20132 std::vector<int>::iterator it =
20133 std::find_if(moo.begin(), moo.end(),
20134 std::bind2nd(std::less<int>(), 3));
20135 ;
20136 return 0;
20137}
20138_ACEOF
20139rm -f conftest.$ac_objext
20140if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20141 (eval $ac_compile) 2>conftest.er1
a848cd7e 20142 ac_status=$?
ac1cb8d3
VS
20143 grep -v '^ *+' conftest.er1 >conftest.err
20144 rm -f conftest.er1
20145 cat conftest.err >&5
a848cd7e
SC
20146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20147 (exit $ac_status); } &&
89be85c2
VS
20148 { ac_try='test -z "$ac_cxx_werror_flag"
20149 || test ! -s conftest.err'
ac1cb8d3
VS
20150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20151 (eval $ac_try) 2>&5
20152 ac_status=$?
20153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20154 (exit $ac_status); }; } &&
20155 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20157 (eval $ac_try) 2>&5
20158 ac_status=$?
20159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20160 (exit $ac_status); }; }; then
20161 echo "$as_me:$LINENO: result: yes" >&5
20162echo "${ECHO_T}yes" >&6
20163else
20164 echo "$as_me: failed program was:" >&5
20165sed 's/^/| /' conftest.$ac_ext >&5
20166
20167echo "$as_me:$LINENO: result: no" >&5
20168echo "${ECHO_T}no" >&6
20169 { { echo "$as_me:$LINENO: error: Basic STL functionality missing" >&5
20170echo "$as_me: error: Basic STL functionality missing" >&2;}
20171 { (exit 1); exit 1; }; }
20172fi
ac1cb8d3 20173rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20174
20175 echo "$as_me:$LINENO: checking for std::wstring in <string>" >&5
20176echo $ECHO_N "checking for std::wstring in <string>... $ECHO_C" >&6
20177 cat >conftest.$ac_ext <<_ACEOF
20178/* confdefs.h. */
20179_ACEOF
20180cat confdefs.h >>conftest.$ac_ext
20181cat >>conftest.$ac_ext <<_ACEOF
20182/* end confdefs.h. */
20183#include <string>
20184int
20185main ()
20186{
20187std::wstring foo;
20188 ;
20189 return 0;
20190}
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); } &&
89be85c2
VS
20201 { ac_try='test -z "$ac_cxx_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 echo "$as_me:$LINENO: result: yes" >&5
20215echo "${ECHO_T}yes" >&6
20216 cat >>confdefs.h <<\_ACEOF
20217#define HAVE_STD_WSTRING 1
20218_ACEOF
20219
20220else
20221 echo "$as_me: failed program was:" >&5
20222sed 's/^/| /' conftest.$ac_ext >&5
20223
20224echo "$as_me:$LINENO: result: no" >&5
20225echo "${ECHO_T}no" >&6
20226fi
ac1cb8d3 20227rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20228
20229 echo "$as_me:$LINENO: checking for compliant std::string::compare" >&5
20230echo $ECHO_N "checking for compliant std::string::compare... $ECHO_C" >&6
20231 cat >conftest.$ac_ext <<_ACEOF
20232/* confdefs.h. */
20233_ACEOF
20234cat confdefs.h >>conftest.$ac_ext
20235cat >>conftest.$ac_ext <<_ACEOF
20236/* end confdefs.h. */
20237#include <string>
20238int
20239main ()
20240{
20241std::string foo, bar;
20242 foo.compare(bar);
20243 foo.compare(1, 1, bar);
20244 foo.compare(1, 1, bar, 1, 1);
20245 foo.compare("");
20246 foo.compare(1, 1, "");
20247 foo.compare(1, 1, "", 2);
20248 ;
20249 return 0;
20250}
20251_ACEOF
20252rm -f conftest.$ac_objext
20253if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20254 (eval $ac_compile) 2>conftest.er1
a848cd7e 20255 ac_status=$?
ac1cb8d3
VS
20256 grep -v '^ *+' conftest.er1 >conftest.err
20257 rm -f conftest.er1
20258 cat conftest.err >&5
a848cd7e
SC
20259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20260 (exit $ac_status); } &&
89be85c2
VS
20261 { ac_try='test -z "$ac_cxx_werror_flag"
20262 || test ! -s conftest.err'
ac1cb8d3
VS
20263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20264 (eval $ac_try) 2>&5
20265 ac_status=$?
20266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20267 (exit $ac_status); }; } &&
20268 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20270 (eval $ac_try) 2>&5
20271 ac_status=$?
20272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20273 (exit $ac_status); }; }; then
20274 echo "$as_me:$LINENO: result: yes" >&5
20275echo "${ECHO_T}yes" >&6
20276 cat >>confdefs.h <<\_ACEOF
20277#define HAVE_STD_STRING_COMPARE 1
20278_ACEOF
20279
20280else
20281 echo "$as_me: failed program was:" >&5
20282sed 's/^/| /' conftest.$ac_ext >&5
20283
20284echo "$as_me:$LINENO: result: no" >&5
20285echo "${ECHO_T}no" >&6
20286fi
ac1cb8d3 20287rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
20288
20289 if test "${ac_cv_header_hash_map+set}" = set; then
20290 echo "$as_me:$LINENO: checking for hash_map" >&5
20291echo $ECHO_N "checking for hash_map... $ECHO_C" >&6
20292if test "${ac_cv_header_hash_map+set}" = set; then
20293 echo $ECHO_N "(cached) $ECHO_C" >&6
20294fi
20295echo "$as_me:$LINENO: result: $ac_cv_header_hash_map" >&5
20296echo "${ECHO_T}$ac_cv_header_hash_map" >&6
20297else
20298 # Is the header compilable?
20299echo "$as_me:$LINENO: checking hash_map usability" >&5
20300echo $ECHO_N "checking hash_map usability... $ECHO_C" >&6
20301cat >conftest.$ac_ext <<_ACEOF
20302/* confdefs.h. */
20303_ACEOF
20304cat confdefs.h >>conftest.$ac_ext
20305cat >>conftest.$ac_ext <<_ACEOF
20306/* end confdefs.h. */
20307$ac_includes_default
20308#include <hash_map>
20309_ACEOF
20310rm -f conftest.$ac_objext
20311if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20312 (eval $ac_compile) 2>conftest.er1
bdcade0a 20313 ac_status=$?
ac1cb8d3
VS
20314 grep -v '^ *+' conftest.er1 >conftest.err
20315 rm -f conftest.er1
20316 cat conftest.err >&5
bdcade0a
MB
20317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20318 (exit $ac_status); } &&
89be85c2
VS
20319 { ac_try='test -z "$ac_cxx_werror_flag"
20320 || test ! -s conftest.err'
ac1cb8d3
VS
20321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20322 (eval $ac_try) 2>&5
20323 ac_status=$?
20324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20325 (exit $ac_status); }; } &&
20326 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
20327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20328 (eval $ac_try) 2>&5
20329 ac_status=$?
20330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20331 (exit $ac_status); }; }; then
20332 ac_header_compiler=yes
20333else
20334 echo "$as_me: failed program was:" >&5
20335sed 's/^/| /' conftest.$ac_ext >&5
20336
20337ac_header_compiler=no
20338fi
ac1cb8d3 20339rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
20340echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20341echo "${ECHO_T}$ac_header_compiler" >&6
20342
20343# Is the header present?
20344echo "$as_me:$LINENO: checking hash_map presence" >&5
20345echo $ECHO_N "checking hash_map presence... $ECHO_C" >&6
20346cat >conftest.$ac_ext <<_ACEOF
20347/* confdefs.h. */
20348_ACEOF
20349cat confdefs.h >>conftest.$ac_ext
20350cat >>conftest.$ac_ext <<_ACEOF
20351/* end confdefs.h. */
20352#include <hash_map>
20353_ACEOF
20354if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20355 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20356 ac_status=$?
20357 grep -v '^ *+' conftest.er1 >conftest.err
20358 rm -f conftest.er1
20359 cat conftest.err >&5
20360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20361 (exit $ac_status); } >/dev/null; then
20362 if test -s conftest.err; then
20363 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 20364 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
bdcade0a
MB
20365 else
20366 ac_cpp_err=
20367 fi
20368else
20369 ac_cpp_err=yes
20370fi
20371if test -z "$ac_cpp_err"; then
20372 ac_header_preproc=yes
20373else
20374 echo "$as_me: failed program was:" >&5
20375sed 's/^/| /' conftest.$ac_ext >&5
20376
20377 ac_header_preproc=no
20378fi
20379rm -f conftest.err conftest.$ac_ext
20380echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20381echo "${ECHO_T}$ac_header_preproc" >&6
20382
20383# So? What about this header?
ac1cb8d3
VS
20384case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
20385 yes:no: )
bdcade0a
MB
20386 { echo "$as_me:$LINENO: WARNING: hash_map: accepted by the compiler, rejected by the preprocessor!" >&5
20387echo "$as_me: WARNING: hash_map: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
20388 { echo "$as_me:$LINENO: WARNING: hash_map: proceeding with the compiler's result" >&5
20389echo "$as_me: WARNING: hash_map: proceeding with the compiler's result" >&2;}
20390 ac_header_preproc=yes
bdcade0a 20391 ;;
ac1cb8d3 20392 no:yes:* )
bdcade0a
MB
20393 { echo "$as_me:$LINENO: WARNING: hash_map: present but cannot be compiled" >&5
20394echo "$as_me: WARNING: hash_map: present but cannot be compiled" >&2;}
ac1cb8d3
VS
20395 { echo "$as_me:$LINENO: WARNING: hash_map: check for missing prerequisite headers?" >&5
20396echo "$as_me: WARNING: hash_map: check for missing prerequisite headers?" >&2;}
20397 { echo "$as_me:$LINENO: WARNING: hash_map: see the Autoconf documentation" >&5
20398echo "$as_me: WARNING: hash_map: see the Autoconf documentation" >&2;}
20399 { echo "$as_me:$LINENO: WARNING: hash_map: section \"Present But Cannot Be Compiled\"" >&5
20400echo "$as_me: WARNING: hash_map: section \"Present But Cannot Be Compiled\"" >&2;}
bdcade0a
MB
20401 { echo "$as_me:$LINENO: WARNING: hash_map: proceeding with the preprocessor's result" >&5
20402echo "$as_me: WARNING: hash_map: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
20403 { echo "$as_me:$LINENO: WARNING: hash_map: in the future, the compiler will take precedence" >&5
20404echo "$as_me: WARNING: hash_map: in the future, the compiler will take precedence" >&2;}
bdcade0a
MB
20405 (
20406 cat <<\_ASBOX
ac1cb8d3
VS
20407## ----------------------------------------- ##
20408## Report this to wx-dev@lists.wxwidgets.org ##
20409## ----------------------------------------- ##
bdcade0a
MB
20410_ASBOX
20411 ) |
20412 sed "s/^/$as_me: WARNING: /" >&2
20413 ;;
20414esac
20415echo "$as_me:$LINENO: checking for hash_map" >&5
20416echo $ECHO_N "checking for hash_map... $ECHO_C" >&6
20417if test "${ac_cv_header_hash_map+set}" = set; then
20418 echo $ECHO_N "(cached) $ECHO_C" >&6
20419else
20420 ac_cv_header_hash_map=$ac_header_preproc
20421fi
20422echo "$as_me:$LINENO: result: $ac_cv_header_hash_map" >&5
20423echo "${ECHO_T}$ac_cv_header_hash_map" >&6
20424
20425fi
20426if test $ac_cv_header_hash_map = yes; then
20427 echo "$as_me:$LINENO: checking for hash_map and hash_set" >&5
20428echo $ECHO_N "checking for hash_map and hash_set... $ECHO_C" >&6
20429 cat >conftest.$ac_ext <<_ACEOF
20430/* confdefs.h. */
20431_ACEOF
20432cat confdefs.h >>conftest.$ac_ext
20433cat >>conftest.$ac_ext <<_ACEOF
20434/* end confdefs.h. */
20435#include <hash_map>
20436 #include <hash_set>
20437int
20438main ()
20439{
20440std::hash_map<double*, char*, std::hash<double*>, std::equal_to<double*> > test1;
20441 std::hash_set<char*, std::hash<char*>, std::equal_to<char*> > test2;
20442 ;
20443 return 0;
20444}
20445_ACEOF
20446rm -f conftest.$ac_objext
20447if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20448 (eval $ac_compile) 2>conftest.er1
bdcade0a 20449 ac_status=$?
ac1cb8d3
VS
20450 grep -v '^ *+' conftest.er1 >conftest.err
20451 rm -f conftest.er1
20452 cat conftest.err >&5
bdcade0a
MB
20453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20454 (exit $ac_status); } &&
89be85c2
VS
20455 { ac_try='test -z "$ac_cxx_werror_flag"
20456 || test ! -s conftest.err'
ac1cb8d3
VS
20457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20458 (eval $ac_try) 2>&5
20459 ac_status=$?
20460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20461 (exit $ac_status); }; } &&
20462 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
20463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20464 (eval $ac_try) 2>&5
20465 ac_status=$?
20466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20467 (exit $ac_status); }; }; then
20468 echo "$as_me:$LINENO: result: yes" >&5
20469echo "${ECHO_T}yes" >&6
20470 cat >>confdefs.h <<\_ACEOF
20471#define HAVE_HASH_MAP 1
20472_ACEOF
20473
20474 cat >>confdefs.h <<\_ACEOF
20475#define HAVE_STD_HASH_MAP 1
20476_ACEOF
20477
20478else
20479 echo "$as_me: failed program was:" >&5
20480sed 's/^/| /' conftest.$ac_ext >&5
20481
20482echo "$as_me:$LINENO: result: no" >&5
20483echo "${ECHO_T}no" >&6
20484fi
ac1cb8d3 20485rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
20486
20487fi
20488
20489
20490
20491 if test "${ac_cv_header_ext_hash_map+set}" = set; then
20492 echo "$as_me:$LINENO: checking for ext/hash_map" >&5
20493echo $ECHO_N "checking for ext/hash_map... $ECHO_C" >&6
20494if test "${ac_cv_header_ext_hash_map+set}" = set; then
20495 echo $ECHO_N "(cached) $ECHO_C" >&6
20496fi
20497echo "$as_me:$LINENO: result: $ac_cv_header_ext_hash_map" >&5
20498echo "${ECHO_T}$ac_cv_header_ext_hash_map" >&6
20499else
20500 # Is the header compilable?
20501echo "$as_me:$LINENO: checking ext/hash_map usability" >&5
20502echo $ECHO_N "checking ext/hash_map usability... $ECHO_C" >&6
20503cat >conftest.$ac_ext <<_ACEOF
20504/* confdefs.h. */
20505_ACEOF
20506cat confdefs.h >>conftest.$ac_ext
20507cat >>conftest.$ac_ext <<_ACEOF
20508/* end confdefs.h. */
20509$ac_includes_default
20510#include <ext/hash_map>
20511_ACEOF
20512rm -f conftest.$ac_objext
20513if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20514 (eval $ac_compile) 2>conftest.er1
bdcade0a 20515 ac_status=$?
ac1cb8d3
VS
20516 grep -v '^ *+' conftest.er1 >conftest.err
20517 rm -f conftest.er1
20518 cat conftest.err >&5
bdcade0a
MB
20519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20520 (exit $ac_status); } &&
89be85c2
VS
20521 { ac_try='test -z "$ac_cxx_werror_flag"
20522 || test ! -s conftest.err'
ac1cb8d3
VS
20523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20524 (eval $ac_try) 2>&5
20525 ac_status=$?
20526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20527 (exit $ac_status); }; } &&
20528 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
20529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20530 (eval $ac_try) 2>&5
20531 ac_status=$?
20532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20533 (exit $ac_status); }; }; then
20534 ac_header_compiler=yes
20535else
20536 echo "$as_me: failed program was:" >&5
20537sed 's/^/| /' conftest.$ac_ext >&5
20538
20539ac_header_compiler=no
20540fi
ac1cb8d3 20541rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
20542echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20543echo "${ECHO_T}$ac_header_compiler" >&6
20544
20545# Is the header present?
20546echo "$as_me:$LINENO: checking ext/hash_map presence" >&5
20547echo $ECHO_N "checking ext/hash_map presence... $ECHO_C" >&6
20548cat >conftest.$ac_ext <<_ACEOF
20549/* confdefs.h. */
20550_ACEOF
20551cat confdefs.h >>conftest.$ac_ext
20552cat >>conftest.$ac_ext <<_ACEOF
20553/* end confdefs.h. */
20554#include <ext/hash_map>
20555_ACEOF
20556if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20557 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20558 ac_status=$?
20559 grep -v '^ *+' conftest.er1 >conftest.err
20560 rm -f conftest.er1
20561 cat conftest.err >&5
20562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20563 (exit $ac_status); } >/dev/null; then
20564 if test -s conftest.err; then
20565 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 20566 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
bdcade0a
MB
20567 else
20568 ac_cpp_err=
20569 fi
20570else
20571 ac_cpp_err=yes
20572fi
20573if test -z "$ac_cpp_err"; then
20574 ac_header_preproc=yes
20575else
20576 echo "$as_me: failed program was:" >&5
20577sed 's/^/| /' conftest.$ac_ext >&5
20578
20579 ac_header_preproc=no
20580fi
20581rm -f conftest.err conftest.$ac_ext
20582echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20583echo "${ECHO_T}$ac_header_preproc" >&6
20584
20585# So? What about this header?
ac1cb8d3
VS
20586case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
20587 yes:no: )
bdcade0a
MB
20588 { echo "$as_me:$LINENO: WARNING: ext/hash_map: accepted by the compiler, rejected by the preprocessor!" >&5
20589echo "$as_me: WARNING: ext/hash_map: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
20590 { echo "$as_me:$LINENO: WARNING: ext/hash_map: proceeding with the compiler's result" >&5
20591echo "$as_me: WARNING: ext/hash_map: proceeding with the compiler's result" >&2;}
20592 ac_header_preproc=yes
bdcade0a 20593 ;;
ac1cb8d3 20594 no:yes:* )
bdcade0a
MB
20595 { echo "$as_me:$LINENO: WARNING: ext/hash_map: present but cannot be compiled" >&5
20596echo "$as_me: WARNING: ext/hash_map: present but cannot be compiled" >&2;}
ac1cb8d3
VS
20597 { echo "$as_me:$LINENO: WARNING: ext/hash_map: check for missing prerequisite headers?" >&5
20598echo "$as_me: WARNING: ext/hash_map: check for missing prerequisite headers?" >&2;}
20599 { echo "$as_me:$LINENO: WARNING: ext/hash_map: see the Autoconf documentation" >&5
20600echo "$as_me: WARNING: ext/hash_map: see the Autoconf documentation" >&2;}
20601 { echo "$as_me:$LINENO: WARNING: ext/hash_map: section \"Present But Cannot Be Compiled\"" >&5
20602echo "$as_me: WARNING: ext/hash_map: section \"Present But Cannot Be Compiled\"" >&2;}
bdcade0a
MB
20603 { echo "$as_me:$LINENO: WARNING: ext/hash_map: proceeding with the preprocessor's result" >&5
20604echo "$as_me: WARNING: ext/hash_map: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
20605 { echo "$as_me:$LINENO: WARNING: ext/hash_map: in the future, the compiler will take precedence" >&5
20606echo "$as_me: WARNING: ext/hash_map: in the future, the compiler will take precedence" >&2;}
bdcade0a
MB
20607 (
20608 cat <<\_ASBOX
ac1cb8d3
VS
20609## ----------------------------------------- ##
20610## Report this to wx-dev@lists.wxwidgets.org ##
20611## ----------------------------------------- ##
bdcade0a
MB
20612_ASBOX
20613 ) |
20614 sed "s/^/$as_me: WARNING: /" >&2
20615 ;;
20616esac
20617echo "$as_me:$LINENO: checking for ext/hash_map" >&5
20618echo $ECHO_N "checking for ext/hash_map... $ECHO_C" >&6
20619if test "${ac_cv_header_ext_hash_map+set}" = set; then
20620 echo $ECHO_N "(cached) $ECHO_C" >&6
20621else
20622 ac_cv_header_ext_hash_map=$ac_header_preproc
20623fi
20624echo "$as_me:$LINENO: result: $ac_cv_header_ext_hash_map" >&5
20625echo "${ECHO_T}$ac_cv_header_ext_hash_map" >&6
20626
20627fi
20628if test $ac_cv_header_ext_hash_map = yes; then
20629 echo "$as_me:$LINENO: checking for hash_map and hash_set" >&5
20630echo $ECHO_N "checking for hash_map and hash_set... $ECHO_C" >&6
20631 cat >conftest.$ac_ext <<_ACEOF
20632/* confdefs.h. */
20633_ACEOF
20634cat confdefs.h >>conftest.$ac_ext
20635cat >>conftest.$ac_ext <<_ACEOF
20636/* end confdefs.h. */
20637#include <ext/hash_map>
20638 #include <ext/hash_set>
20639int
20640main ()
20641{
20642__gnu_cxx::hash_map<double*, char*, __gnu_cxx::hash<double*>, std::equal_to<double*> > test1;
20643 __gnu_cxx::hash_set<char*, __gnu_cxx::hash<char*>, std::equal_to<char*> > test2;
20644 ;
20645 return 0;
20646}
20647_ACEOF
20648rm -f conftest.$ac_objext
20649if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20650 (eval $ac_compile) 2>conftest.er1
bdcade0a 20651 ac_status=$?
ac1cb8d3
VS
20652 grep -v '^ *+' conftest.er1 >conftest.err
20653 rm -f conftest.er1
20654 cat conftest.err >&5
bdcade0a
MB
20655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20656 (exit $ac_status); } &&
89be85c2
VS
20657 { ac_try='test -z "$ac_cxx_werror_flag"
20658 || test ! -s conftest.err'
ac1cb8d3
VS
20659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20660 (eval $ac_try) 2>&5
20661 ac_status=$?
20662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20663 (exit $ac_status); }; } &&
20664 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
20665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20666 (eval $ac_try) 2>&5
20667 ac_status=$?
20668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20669 (exit $ac_status); }; }; then
20670 echo "$as_me:$LINENO: result: yes" >&5
20671echo "${ECHO_T}yes" >&6
20672 cat >>confdefs.h <<\_ACEOF
20673#define HAVE_EXT_HASH_MAP 1
20674_ACEOF
20675
20676 cat >>confdefs.h <<\_ACEOF
20677#define HAVE_GNU_CXX_HASH_MAP 1
20678_ACEOF
20679
20680else
20681 echo "$as_me: failed program was:" >&5
20682sed 's/^/| /' conftest.$ac_ext >&5
20683
20684echo "$as_me:$LINENO: result: no" >&5
20685echo "${ECHO_T}no" >&6
20686fi
ac1cb8d3 20687rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
20688
20689fi
20690
20691
a848cd7e
SC
20692
20693 ac_ext=c
20694ac_cpp='$CPP $CPPFLAGS'
20695ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20696ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20697ac_compiler_gnu=$ac_cv_c_compiler_gnu
20698
20699fi
20700
20701
20702SEARCH_INCLUDE="\
20703 /usr/local/include \
20704 \
20705 /usr/Motif-2.1/include \
20706 /usr/Motif-1.2/include \
20707 /usr/include/Motif1.2 \
20708 /opt/xpm/include/X11 \
20709 /opt/GBxpm/include/ \
20710 /opt/GBxpm/X11/include/ \
20711 \
20712 /usr/dt/include \
20713 /usr/openwin/include \
20714 \
20715 /usr/include/Xm \
20716 \
20717 /usr/X11R6/include \
20718 /usr/X11R6.4/include \
20719 /usr/X11R5/include \
20720 /usr/X11R4/include \
20721 \
20722 /usr/include/X11R6 \
20723 /usr/include/X11R5 \
20724 /usr/include/X11R4 \
20725 \
20726 /usr/local/X11R6/include \
20727 /usr/local/X11R5/include \
20728 /usr/local/X11R4/include \
20729 \
20730 /usr/local/include/X11R6 \
20731 /usr/local/include/X11R5 \
20732 /usr/local/include/X11R4 \
20733 \
20734 /usr/X11/include \
20735 /usr/include/X11 \
20736 /usr/local/X11/include \
20737 /usr/local/include/X11 \
20738 \
20739 /usr/X386/include \
20740 /usr/x386/include \
20741 /usr/XFree86/include/X11 \
20742 \
20743 X:/XFree86/include \
20744 X:/XFree86/include/X11 \
20745 \
20746 /usr/include/gtk \
20747 /usr/local/include/gtk \
20748 /usr/include/glib \
20749 /usr/local/include/glib \
20750 \
20751 /usr/include/qt \
20752 /usr/local/include/qt \
20753 \
20754 /usr/local/arm/3.3.2/include \
20755 \
20756 /usr/include/windows \
20757 /usr/include/wine \
20758 /usr/local/include/wine \
20759 \
20760 /usr/unsupported/include \
20761 /usr/athena/include \
20762 /usr/local/x11r5/include \
20763 /usr/lpp/Xamples/include \
20764 \
20765 /usr/openwin/share/include"
20766
20767SEARCH_LIB="/usr/lib /usr/lib32 `echo "$SEARCH_INCLUDE" | sed s/include/lib/g` /usr/lib64 /usr/X11R6/lib64"
20768
20769
20770cat >confcache <<\_ACEOF
20771# This file is a shell script that caches the results of configure
20772# tests run on this system so they can be shared between configure
20773# scripts and configure runs, see configure's option --config-cache.
20774# It is not useful on other systems. If it contains results you don't
20775# want to keep, you may remove or edit it.
20776#
20777# config.status only pays attention to the cache file if you give it
20778# the --recheck option to rerun configure.
20779#
20780# `ac_cv_env_foo' variables (set or unset) will be overridden when
20781# loading this file, other *unset* `ac_cv_foo' will be assigned the
20782# following values.
20783
20784_ACEOF
20785
20786# The following way of writing the cache mishandles newlines in values,
20787# but we know of no workaround that is simple, portable, and efficient.
20788# So, don't put newlines in cache variables' values.
20789# Ultrix sh set writes to stderr and can't be redirected directly,
20790# and sets the high bit in the cache file unless we assign to the vars.
20791{
20792 (set) 2>&1 |
20793 case `(ac_space=' '; set | grep ac_space) 2>&1` in
20794 *ac_space=\ *)
20795 # `set' does not quote correctly, so add quotes (double-quote
20796 # substitution turns \\\\ into \\, and sed turns \\ into \).
20797 sed -n \
ac1cb8d3
VS
20798 "s/'/'\\\\''/g;
20799 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a848cd7e
SC
20800 ;;
20801 *)
20802 # `set' quotes correctly as required by POSIX, so do not add quotes.
20803 sed -n \
ac1cb8d3 20804 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
20805 ;;
20806 esac;
20807} |
20808 sed '
20809 t clear
20810 : clear
20811 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20812 t end
20813 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20814 : end' >>confcache
20815if diff $cache_file confcache >/dev/null 2>&1; then :; else
20816 if test -w $cache_file; then
20817 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
20818 cat confcache >$cache_file
20819 else
20820 echo "not updating unwritable cache $cache_file"
20821 fi
20822fi
20823rm -f confcache
20824
20825if test "$USE_LINUX" = 1 -o "$USE_GNU" = 1; then
20826 echo "$as_me:$LINENO: checking for glibc 2.1 or later" >&5
20827echo $ECHO_N "checking for glibc 2.1 or later... $ECHO_C" >&6
20828if test "${wx_cv_lib_glibc21+set}" = set; then
20829 echo $ECHO_N "(cached) $ECHO_C" >&6
20830else
20831
20832 cat >conftest.$ac_ext <<_ACEOF
20833/* confdefs.h. */
20834_ACEOF
20835cat confdefs.h >>conftest.$ac_ext
20836cat >>conftest.$ac_ext <<_ACEOF
20837/* end confdefs.h. */
20838#include <features.h>
20839int
20840main ()
20841{
20842
20843 #if (__GLIBC__ < 2) || (__GLIBC_MINOR__ < 1)
20844 #error not glibc2.1
20845 #endif
20846
20847 ;
20848 return 0;
20849}
20850_ACEOF
20851rm -f conftest.$ac_objext
20852if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20853 (eval $ac_compile) 2>conftest.er1
a848cd7e 20854 ac_status=$?
ac1cb8d3
VS
20855 grep -v '^ *+' conftest.er1 >conftest.err
20856 rm -f conftest.er1
20857 cat conftest.err >&5
a848cd7e
SC
20858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20859 (exit $ac_status); } &&
89be85c2
VS
20860 { ac_try='test -z "$ac_c_werror_flag"
20861 || test ! -s conftest.err'
ac1cb8d3
VS
20862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20863 (eval $ac_try) 2>&5
20864 ac_status=$?
20865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20866 (exit $ac_status); }; } &&
20867 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20869 (eval $ac_try) 2>&5
20870 ac_status=$?
20871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20872 (exit $ac_status); }; }; then
20873
20874 wx_cv_lib_glibc21=yes
20875
20876else
20877 echo "$as_me: failed program was:" >&5
20878sed 's/^/| /' conftest.$ac_ext >&5
20879
20880
20881 wx_cv_lib_glibc21=no
20882
20883
20884fi
ac1cb8d3 20885rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20886
20887fi
20888echo "$as_me:$LINENO: result: $wx_cv_lib_glibc21" >&5
20889echo "${ECHO_T}$wx_cv_lib_glibc21" >&6
20890 if test "$wx_cv_lib_glibc21" = "yes"; then
20891 cat >>confdefs.h <<\_ACEOF
20892#define wxHAVE_GLIBC2 1
20893_ACEOF
20894
20895 fi
20896fi
20897
20898if test "x$wx_cv_lib_glibc21" = "xyes"; then
20899 if test "$wxUSE_UNICODE" = "yes" -o "$wxUSE_THREADS" = "yes"; then
20900 cat >>confdefs.h <<\_ACEOF
20901#define _GNU_SOURCE 1
20902_ACEOF
20903
20904 fi
20905fi
20906
20907
20908
20909if test "$wxUSE_REGEX" != "no"; then
20910 cat >>confdefs.h <<\_ACEOF
20911#define wxUSE_REGEX 1
20912_ACEOF
20913
20914
20915 if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_REGEX" = "yes"; then
20916 { echo "$as_me:$LINENO: WARNING: Defaulting to the the builtin regex library for Unicode build." >&5
20917echo "$as_me: WARNING: Defaulting to the the builtin regex library for Unicode build." >&2;}
20918 wxUSE_REGEX=builtin
20919 fi
20920
20921 if test "$wxUSE_REGEX" = "sys" -o "$wxUSE_REGEX" = "yes" ; then
20922 if test "${ac_cv_header_regex_h+set}" = set; then
20923 echo "$as_me:$LINENO: checking for regex.h" >&5
20924echo $ECHO_N "checking for regex.h... $ECHO_C" >&6
20925if test "${ac_cv_header_regex_h+set}" = set; then
20926 echo $ECHO_N "(cached) $ECHO_C" >&6
20927fi
20928echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
20929echo "${ECHO_T}$ac_cv_header_regex_h" >&6
20930else
20931 # Is the header compilable?
20932echo "$as_me:$LINENO: checking regex.h usability" >&5
20933echo $ECHO_N "checking regex.h usability... $ECHO_C" >&6
20934cat >conftest.$ac_ext <<_ACEOF
20935/* confdefs.h. */
20936_ACEOF
20937cat confdefs.h >>conftest.$ac_ext
20938cat >>conftest.$ac_ext <<_ACEOF
20939/* end confdefs.h. */
20940$ac_includes_default
20941#include <regex.h>
20942_ACEOF
20943rm -f conftest.$ac_objext
20944if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20945 (eval $ac_compile) 2>conftest.er1
a848cd7e 20946 ac_status=$?
ac1cb8d3
VS
20947 grep -v '^ *+' conftest.er1 >conftest.err
20948 rm -f conftest.er1
20949 cat conftest.err >&5
a848cd7e
SC
20950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20951 (exit $ac_status); } &&
89be85c2
VS
20952 { ac_try='test -z "$ac_c_werror_flag"
20953 || test ! -s conftest.err'
ac1cb8d3
VS
20954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20955 (eval $ac_try) 2>&5
20956 ac_status=$?
20957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20958 (exit $ac_status); }; } &&
20959 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20961 (eval $ac_try) 2>&5
20962 ac_status=$?
20963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20964 (exit $ac_status); }; }; then
20965 ac_header_compiler=yes
20966else
20967 echo "$as_me: failed program was:" >&5
20968sed 's/^/| /' conftest.$ac_ext >&5
20969
20970ac_header_compiler=no
20971fi
ac1cb8d3 20972rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20973echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20974echo "${ECHO_T}$ac_header_compiler" >&6
20975
20976# Is the header present?
20977echo "$as_me:$LINENO: checking regex.h presence" >&5
20978echo $ECHO_N "checking regex.h presence... $ECHO_C" >&6
20979cat >conftest.$ac_ext <<_ACEOF
20980/* confdefs.h. */
20981_ACEOF
20982cat confdefs.h >>conftest.$ac_ext
20983cat >>conftest.$ac_ext <<_ACEOF
20984/* end confdefs.h. */
20985#include <regex.h>
20986_ACEOF
20987if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20988 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20989 ac_status=$?
20990 grep -v '^ *+' conftest.er1 >conftest.err
20991 rm -f conftest.er1
20992 cat conftest.err >&5
20993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20994 (exit $ac_status); } >/dev/null; then
20995 if test -s conftest.err; then
20996 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 20997 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
20998 else
20999 ac_cpp_err=
21000 fi
21001else
21002 ac_cpp_err=yes
21003fi
21004if test -z "$ac_cpp_err"; then
21005 ac_header_preproc=yes
21006else
21007 echo "$as_me: failed program was:" >&5
21008sed 's/^/| /' conftest.$ac_ext >&5
21009
21010 ac_header_preproc=no
21011fi
21012rm -f conftest.err conftest.$ac_ext
21013echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21014echo "${ECHO_T}$ac_header_preproc" >&6
21015
21016# So? What about this header?
ac1cb8d3
VS
21017case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21018 yes:no: )
a848cd7e
SC
21019 { echo "$as_me:$LINENO: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&5
21020echo "$as_me: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
21021 { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the compiler's result" >&5
21022echo "$as_me: WARNING: regex.h: proceeding with the compiler's result" >&2;}
21023 ac_header_preproc=yes
a848cd7e 21024 ;;
ac1cb8d3 21025 no:yes:* )
a848cd7e
SC
21026 { echo "$as_me:$LINENO: WARNING: regex.h: present but cannot be compiled" >&5
21027echo "$as_me: WARNING: regex.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
21028 { echo "$as_me:$LINENO: WARNING: regex.h: check for missing prerequisite headers?" >&5
21029echo "$as_me: WARNING: regex.h: check for missing prerequisite headers?" >&2;}
21030 { echo "$as_me:$LINENO: WARNING: regex.h: see the Autoconf documentation" >&5
21031echo "$as_me: WARNING: regex.h: see the Autoconf documentation" >&2;}
21032 { echo "$as_me:$LINENO: WARNING: regex.h: section \"Present But Cannot Be Compiled\"" >&5
21033echo "$as_me: WARNING: regex.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
21034 { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the preprocessor's result" >&5
21035echo "$as_me: WARNING: regex.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
21036 { echo "$as_me:$LINENO: WARNING: regex.h: in the future, the compiler will take precedence" >&5
21037echo "$as_me: WARNING: regex.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
21038 (
21039 cat <<\_ASBOX
ac1cb8d3
VS
21040## ----------------------------------------- ##
21041## Report this to wx-dev@lists.wxwidgets.org ##
21042## ----------------------------------------- ##
a848cd7e
SC
21043_ASBOX
21044 ) |
21045 sed "s/^/$as_me: WARNING: /" >&2
21046 ;;
21047esac
21048echo "$as_me:$LINENO: checking for regex.h" >&5
21049echo $ECHO_N "checking for regex.h... $ECHO_C" >&6
21050if test "${ac_cv_header_regex_h+set}" = set; then
21051 echo $ECHO_N "(cached) $ECHO_C" >&6
21052else
21053 ac_cv_header_regex_h=$ac_header_preproc
21054fi
21055echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
21056echo "${ECHO_T}$ac_cv_header_regex_h" >&6
21057
21058fi
21059if test $ac_cv_header_regex_h = yes; then
21060
21061for ac_func in regcomp
21062do
21063as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21064echo "$as_me:$LINENO: checking for $ac_func" >&5
21065echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21066if eval "test \"\${$as_ac_var+set}\" = set"; then
21067 echo $ECHO_N "(cached) $ECHO_C" >&6
21068else
21069 cat >conftest.$ac_ext <<_ACEOF
21070/* confdefs.h. */
21071_ACEOF
21072cat confdefs.h >>conftest.$ac_ext
21073cat >>conftest.$ac_ext <<_ACEOF
21074/* end confdefs.h. */
ac1cb8d3
VS
21075/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21076 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21077#define $ac_func innocuous_$ac_func
21078
a848cd7e
SC
21079/* System header to define __stub macros and hopefully few prototypes,
21080 which can conflict with char $ac_func (); below.
21081 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21082 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 21083
a848cd7e
SC
21084#ifdef __STDC__
21085# include <limits.h>
21086#else
21087# include <assert.h>
21088#endif
ac1cb8d3
VS
21089
21090#undef $ac_func
21091
a848cd7e
SC
21092/* Override any gcc2 internal prototype to avoid an error. */
21093#ifdef __cplusplus
21094extern "C"
21095{
21096#endif
21097/* We use char because int might match the return type of a gcc2
21098 builtin and then its argument prototype would still apply. */
21099char $ac_func ();
21100/* The GNU C library defines this for functions which it implements
21101 to always fail with ENOSYS. Some functions are actually named
21102 something starting with __ and the normal name is an alias. */
21103#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21104choke me
21105#else
21106char (*f) () = $ac_func;
21107#endif
21108#ifdef __cplusplus
21109}
21110#endif
21111
21112int
21113main ()
21114{
21115return f != $ac_func;
21116 ;
21117 return 0;
21118}
21119_ACEOF
21120rm -f conftest.$ac_objext conftest$ac_exeext
21121if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 21122 (eval $ac_link) 2>conftest.er1
a848cd7e 21123 ac_status=$?
ac1cb8d3
VS
21124 grep -v '^ *+' conftest.er1 >conftest.err
21125 rm -f conftest.er1
21126 cat conftest.err >&5
a848cd7e
SC
21127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21128 (exit $ac_status); } &&
89be85c2
VS
21129 { ac_try='test -z "$ac_c_werror_flag"
21130 || test ! -s conftest.err'
ac1cb8d3
VS
21131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21132 (eval $ac_try) 2>&5
21133 ac_status=$?
21134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21135 (exit $ac_status); }; } &&
21136 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
21137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21138 (eval $ac_try) 2>&5
21139 ac_status=$?
21140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21141 (exit $ac_status); }; }; then
21142 eval "$as_ac_var=yes"
21143else
21144 echo "$as_me: failed program was:" >&5
21145sed 's/^/| /' conftest.$ac_ext >&5
21146
21147eval "$as_ac_var=no"
21148fi
ac1cb8d3
VS
21149rm -f conftest.err conftest.$ac_objext \
21150 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
21151fi
21152echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21153echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21154if test `eval echo '${'$as_ac_var'}'` = yes; then
21155 cat >>confdefs.h <<_ACEOF
21156#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21157_ACEOF
21158
21159fi
21160done
21161
21162fi
21163
21164
21165
21166 if test "x$ac_cv_func_regcomp" != "xyes"; then
21167 if test "$wxUSE_REGEX" = "sys" ; then
21168 { { echo "$as_me:$LINENO: error: system regex library not found! Use --with-regex to use built-in version" >&5
21169echo "$as_me: error: system regex library not found! Use --with-regex to use built-in version" >&2;}
21170 { (exit 1); exit 1; }; }
21171 else
21172 { echo "$as_me:$LINENO: WARNING: system regex library not found, will use built-in instead" >&5
21173echo "$as_me: WARNING: system regex library not found, will use built-in instead" >&2;}
21174 wxUSE_REGEX=builtin
21175 fi
21176 else
21177 wxUSE_REGEX=sys
21178 cat >>confdefs.h <<\_ACEOF
21179#define WX_NO_REGEX_ADVANCED 1
21180_ACEOF
21181
21182 fi
21183 fi
21184fi
21185
21186
21187ZLIB_LINK=
21188if test "$wxUSE_ZLIB" != "no" ; then
21189 cat >>confdefs.h <<\_ACEOF
21190#define wxUSE_ZLIB 1
21191_ACEOF
21192
21193
21194 if test "$wxUSE_ZLIB" = "sys" -o "$wxUSE_ZLIB" = "yes" ; then
21195 if test "$USE_DARWIN" = 1; then
21196 system_zlib_h_ok="yes"
21197 else
21198 echo "$as_me:$LINENO: checking for zlib.h >= 1.1.4" >&5
21199echo $ECHO_N "checking for zlib.h >= 1.1.4... $ECHO_C" >&6
21200if test "${ac_cv_header_zlib_h+set}" = set; then
21201 echo $ECHO_N "(cached) $ECHO_C" >&6
21202else
21203 if test "$cross_compiling" = yes; then
21204 unset ac_cv_header_zlib_h
21205
21206else
21207 cat >conftest.$ac_ext <<_ACEOF
21208/* confdefs.h. */
21209_ACEOF
21210cat confdefs.h >>conftest.$ac_ext
21211cat >>conftest.$ac_ext <<_ACEOF
21212/* end confdefs.h. */
21213
21214 #include <zlib.h>
21215 #include <stdio.h>
21216
21217 int main()
21218 {
21219 FILE *f=fopen("conftestval", "w");
21220 if (!f) exit(1);
21221 fprintf(f, "%s",
21222 ZLIB_VERSION[0] == '1' &&
21223 (ZLIB_VERSION[2] > '1' ||
21224 (ZLIB_VERSION[2] == '1' &&
21225 ZLIB_VERSION[4] >= '4')) ? "yes" : "no");
21226 exit(0);
21227 }
21228
21229_ACEOF
21230rm -f conftest$ac_exeext
21231if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21232 (eval $ac_link) 2>&5
21233 ac_status=$?
21234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21235 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21237 (eval $ac_try) 2>&5
21238 ac_status=$?
21239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21240 (exit $ac_status); }; }; then
21241 ac_cv_header_zlib_h=`cat conftestval`
21242else
21243 echo "$as_me: program exited with status $ac_status" >&5
21244echo "$as_me: failed program was:" >&5
21245sed 's/^/| /' conftest.$ac_ext >&5
21246
21247( exit $ac_status )
21248ac_cv_header_zlib_h=no
21249fi
ac1cb8d3 21250rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21251fi
21252
21253fi
21254echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
21255echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
21256 if test "${ac_cv_header_zlib_h+set}" = set; then
21257 echo "$as_me:$LINENO: checking for zlib.h" >&5
21258echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
21259if test "${ac_cv_header_zlib_h+set}" = set; then
21260 echo $ECHO_N "(cached) $ECHO_C" >&6
21261fi
21262echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
21263echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
21264else
21265 # Is the header compilable?
21266echo "$as_me:$LINENO: checking zlib.h usability" >&5
21267echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6
21268cat >conftest.$ac_ext <<_ACEOF
21269/* confdefs.h. */
21270_ACEOF
21271cat confdefs.h >>conftest.$ac_ext
21272cat >>conftest.$ac_ext <<_ACEOF
21273/* end confdefs.h. */
21274$ac_includes_default
21275#include <zlib.h>
21276_ACEOF
21277rm -f conftest.$ac_objext
21278if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21279 (eval $ac_compile) 2>conftest.er1
a848cd7e 21280 ac_status=$?
ac1cb8d3
VS
21281 grep -v '^ *+' conftest.er1 >conftest.err
21282 rm -f conftest.er1
21283 cat conftest.err >&5
a848cd7e
SC
21284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21285 (exit $ac_status); } &&
89be85c2
VS
21286 { ac_try='test -z "$ac_c_werror_flag"
21287 || test ! -s conftest.err'
ac1cb8d3
VS
21288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21289 (eval $ac_try) 2>&5
21290 ac_status=$?
21291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21292 (exit $ac_status); }; } &&
21293 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21295 (eval $ac_try) 2>&5
21296 ac_status=$?
21297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21298 (exit $ac_status); }; }; then
21299 ac_header_compiler=yes
21300else
21301 echo "$as_me: failed program was:" >&5
21302sed 's/^/| /' conftest.$ac_ext >&5
21303
21304ac_header_compiler=no
21305fi
ac1cb8d3 21306rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21307echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21308echo "${ECHO_T}$ac_header_compiler" >&6
21309
21310# Is the header present?
21311echo "$as_me:$LINENO: checking zlib.h presence" >&5
21312echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6
21313cat >conftest.$ac_ext <<_ACEOF
21314/* confdefs.h. */
21315_ACEOF
21316cat confdefs.h >>conftest.$ac_ext
21317cat >>conftest.$ac_ext <<_ACEOF
21318/* end confdefs.h. */
21319#include <zlib.h>
21320_ACEOF
21321if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21322 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21323 ac_status=$?
21324 grep -v '^ *+' conftest.er1 >conftest.err
21325 rm -f conftest.er1
21326 cat conftest.err >&5
21327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21328 (exit $ac_status); } >/dev/null; then
21329 if test -s conftest.err; then
21330 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 21331 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
21332 else
21333 ac_cpp_err=
21334 fi
21335else
21336 ac_cpp_err=yes
21337fi
21338if test -z "$ac_cpp_err"; then
21339 ac_header_preproc=yes
21340else
21341 echo "$as_me: failed program was:" >&5
21342sed 's/^/| /' conftest.$ac_ext >&5
21343
21344 ac_header_preproc=no
21345fi
21346rm -f conftest.err conftest.$ac_ext
21347echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21348echo "${ECHO_T}$ac_header_preproc" >&6
21349
21350# So? What about this header?
ac1cb8d3
VS
21351case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21352 yes:no: )
a848cd7e
SC
21353 { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
21354echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
21355 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
21356echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
21357 ac_header_preproc=yes
a848cd7e 21358 ;;
ac1cb8d3 21359 no:yes:* )
a848cd7e
SC
21360 { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
21361echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
21362 { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
21363echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
21364 { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
21365echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
21366 { echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5
21367echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
21368 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
21369echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
21370 { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
21371echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
21372 (
21373 cat <<\_ASBOX
ac1cb8d3
VS
21374## ----------------------------------------- ##
21375## Report this to wx-dev@lists.wxwidgets.org ##
21376## ----------------------------------------- ##
a848cd7e
SC
21377_ASBOX
21378 ) |
21379 sed "s/^/$as_me: WARNING: /" >&2
21380 ;;
21381esac
21382echo "$as_me:$LINENO: checking for zlib.h" >&5
21383echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
21384if test "${ac_cv_header_zlib_h+set}" = set; then
21385 echo $ECHO_N "(cached) $ECHO_C" >&6
21386else
21387 ac_cv_header_zlib_h=$ac_header_preproc
21388fi
21389echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
21390echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
21391
21392fi
21393
21394
21395
21396 system_zlib_h_ok=$ac_cv_header_zlib_h
21397 fi
21398
21399 if test "$system_zlib_h_ok" = "yes"; then
21400 echo "$as_me:$LINENO: checking for deflate in -lz" >&5
21401echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
21402if test "${ac_cv_lib_z_deflate+set}" = set; then
21403 echo $ECHO_N "(cached) $ECHO_C" >&6
21404else
21405 ac_check_lib_save_LIBS=$LIBS
21406LIBS="-lz $LIBS"
21407cat >conftest.$ac_ext <<_ACEOF
21408/* confdefs.h. */
21409_ACEOF
21410cat confdefs.h >>conftest.$ac_ext
21411cat >>conftest.$ac_ext <<_ACEOF
21412/* end confdefs.h. */
21413
21414/* Override any gcc2 internal prototype to avoid an error. */
21415#ifdef __cplusplus
21416extern "C"
21417#endif
21418/* We use char because int might match the return type of a gcc2
21419 builtin and then its argument prototype would still apply. */
21420char deflate ();
21421int
21422main ()
21423{
21424deflate ();
21425 ;
21426 return 0;
21427}
21428_ACEOF
21429rm -f conftest.$ac_objext conftest$ac_exeext
21430if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 21431 (eval $ac_link) 2>conftest.er1
a848cd7e 21432 ac_status=$?
ac1cb8d3
VS
21433 grep -v '^ *+' conftest.er1 >conftest.err
21434 rm -f conftest.er1
21435 cat conftest.err >&5
a848cd7e
SC
21436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21437 (exit $ac_status); } &&
89be85c2
VS
21438 { ac_try='test -z "$ac_c_werror_flag"
21439 || test ! -s conftest.err'
ac1cb8d3
VS
21440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21441 (eval $ac_try) 2>&5
21442 ac_status=$?
21443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21444 (exit $ac_status); }; } &&
21445 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
21446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21447 (eval $ac_try) 2>&5
21448 ac_status=$?
21449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21450 (exit $ac_status); }; }; then
21451 ac_cv_lib_z_deflate=yes
21452else
21453 echo "$as_me: failed program was:" >&5
21454sed 's/^/| /' conftest.$ac_ext >&5
21455
21456ac_cv_lib_z_deflate=no
21457fi
ac1cb8d3
VS
21458rm -f conftest.err conftest.$ac_objext \
21459 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
21460LIBS=$ac_check_lib_save_LIBS
21461fi
21462echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
21463echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
21464if test $ac_cv_lib_z_deflate = yes; then
21465 ZLIB_LINK=" -lz"
21466fi
21467
21468 fi
21469
21470 if test "x$ZLIB_LINK" = "x" ; then
21471 if test "$wxUSE_ZLIB" = "sys" ; then
21472 { { echo "$as_me:$LINENO: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&5
21473echo "$as_me: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&2;}
21474 { (exit 1); exit 1; }; }
21475 else
21476 { echo "$as_me:$LINENO: WARNING: zlib library not found or too old, will use built-in instead" >&5
21477echo "$as_me: WARNING: zlib library not found or too old, will use built-in instead" >&2;}
21478 wxUSE_ZLIB=builtin
21479 fi
21480 else
21481 wxUSE_ZLIB=sys
21482 fi
21483 fi
21484fi
21485
21486
21487PNG_LINK=
21488if test "$wxUSE_LIBPNG" != "no" ; then
21489 cat >>confdefs.h <<\_ACEOF
21490#define wxUSE_LIBPNG 1
21491_ACEOF
21492
21493
21494 if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBPNG" = "builtin" ; then
21495 { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&5
21496echo "$as_me: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&2;}
21497 wxUSE_LIBPNG=sys
21498 fi
21499
21500 if test "$wxUSE_MGL" != 1 -a "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then
21501 { echo "$as_me:$LINENO: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&5
21502echo "$as_me: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&2;}
21503 wxUSE_LIBPNG=builtin
21504 fi
21505
21506 if test "$wxUSE_MGL" != 1 ; then
21507 if test "$wxUSE_LIBPNG" = "sys" -o "$wxUSE_LIBPNG" = "yes" ; then
21508 echo "$as_me:$LINENO: checking for png.h > 0.90" >&5
21509echo $ECHO_N "checking for png.h > 0.90... $ECHO_C" >&6
21510if test "${ac_cv_header_png_h+set}" = set; then
21511 echo $ECHO_N "(cached) $ECHO_C" >&6
21512else
21513 if test "$cross_compiling" = yes; then
21514 unset ac_cv_header_png_h
21515
21516else
21517 cat >conftest.$ac_ext <<_ACEOF
21518/* confdefs.h. */
21519_ACEOF
21520cat confdefs.h >>conftest.$ac_ext
21521cat >>conftest.$ac_ext <<_ACEOF
21522/* end confdefs.h. */
21523
21524 #include <png.h>
21525 #include <stdio.h>
21526
21527 int main()
21528 {
21529 FILE *f=fopen("conftestval", "w");
21530 if (!f) exit(1);
21531 fprintf(f, "%s",
21532 PNG_LIBPNG_VER > 90 ? "yes" : "no");
21533 exit(0);
21534 }
21535
21536_ACEOF
21537rm -f conftest$ac_exeext
21538if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21539 (eval $ac_link) 2>&5
21540 ac_status=$?
21541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21542 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21544 (eval $ac_try) 2>&5
21545 ac_status=$?
21546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21547 (exit $ac_status); }; }; then
21548 ac_cv_header_png_h=`cat conftestval`
21549else
21550 echo "$as_me: program exited with status $ac_status" >&5
21551echo "$as_me: failed program was:" >&5
21552sed 's/^/| /' conftest.$ac_ext >&5
21553
21554( exit $ac_status )
21555ac_cv_header_png_h=no
21556fi
ac1cb8d3 21557rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21558fi
21559
21560fi
21561echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
21562echo "${ECHO_T}$ac_cv_header_png_h" >&6
21563 if test "${ac_cv_header_png_h+set}" = set; then
21564 echo "$as_me:$LINENO: checking for png.h" >&5
21565echo $ECHO_N "checking for png.h... $ECHO_C" >&6
21566if test "${ac_cv_header_png_h+set}" = set; then
21567 echo $ECHO_N "(cached) $ECHO_C" >&6
21568fi
21569echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
21570echo "${ECHO_T}$ac_cv_header_png_h" >&6
21571else
21572 # Is the header compilable?
21573echo "$as_me:$LINENO: checking png.h usability" >&5
21574echo $ECHO_N "checking png.h usability... $ECHO_C" >&6
21575cat >conftest.$ac_ext <<_ACEOF
21576/* confdefs.h. */
21577_ACEOF
21578cat confdefs.h >>conftest.$ac_ext
21579cat >>conftest.$ac_ext <<_ACEOF
21580/* end confdefs.h. */
21581$ac_includes_default
21582#include <png.h>
21583_ACEOF
21584rm -f conftest.$ac_objext
21585if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21586 (eval $ac_compile) 2>conftest.er1
a848cd7e 21587 ac_status=$?
ac1cb8d3
VS
21588 grep -v '^ *+' conftest.er1 >conftest.err
21589 rm -f conftest.er1
21590 cat conftest.err >&5
a848cd7e
SC
21591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21592 (exit $ac_status); } &&
89be85c2
VS
21593 { ac_try='test -z "$ac_c_werror_flag"
21594 || test ! -s conftest.err'
ac1cb8d3
VS
21595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21596 (eval $ac_try) 2>&5
21597 ac_status=$?
21598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21599 (exit $ac_status); }; } &&
21600 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21602 (eval $ac_try) 2>&5
21603 ac_status=$?
21604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21605 (exit $ac_status); }; }; then
21606 ac_header_compiler=yes
21607else
21608 echo "$as_me: failed program was:" >&5
21609sed 's/^/| /' conftest.$ac_ext >&5
21610
21611ac_header_compiler=no
21612fi
ac1cb8d3 21613rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21614echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21615echo "${ECHO_T}$ac_header_compiler" >&6
21616
21617# Is the header present?
21618echo "$as_me:$LINENO: checking png.h presence" >&5
21619echo $ECHO_N "checking png.h presence... $ECHO_C" >&6
21620cat >conftest.$ac_ext <<_ACEOF
21621/* confdefs.h. */
21622_ACEOF
21623cat confdefs.h >>conftest.$ac_ext
21624cat >>conftest.$ac_ext <<_ACEOF
21625/* end confdefs.h. */
21626#include <png.h>
21627_ACEOF
21628if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21629 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21630 ac_status=$?
21631 grep -v '^ *+' conftest.er1 >conftest.err
21632 rm -f conftest.er1
21633 cat conftest.err >&5
21634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21635 (exit $ac_status); } >/dev/null; then
21636 if test -s conftest.err; then
21637 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 21638 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
21639 else
21640 ac_cpp_err=
21641 fi
21642else
21643 ac_cpp_err=yes
21644fi
21645if test -z "$ac_cpp_err"; then
21646 ac_header_preproc=yes
21647else
21648 echo "$as_me: failed program was:" >&5
21649sed 's/^/| /' conftest.$ac_ext >&5
21650
21651 ac_header_preproc=no
21652fi
21653rm -f conftest.err conftest.$ac_ext
21654echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21655echo "${ECHO_T}$ac_header_preproc" >&6
21656
21657# So? What about this header?
ac1cb8d3
VS
21658case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21659 yes:no: )
a848cd7e
SC
21660 { echo "$as_me:$LINENO: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&5
21661echo "$as_me: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
21662 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the compiler's result" >&5
21663echo "$as_me: WARNING: png.h: proceeding with the compiler's result" >&2;}
21664 ac_header_preproc=yes
a848cd7e 21665 ;;
ac1cb8d3 21666 no:yes:* )
a848cd7e
SC
21667 { echo "$as_me:$LINENO: WARNING: png.h: present but cannot be compiled" >&5
21668echo "$as_me: WARNING: png.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
21669 { echo "$as_me:$LINENO: WARNING: png.h: check for missing prerequisite headers?" >&5
21670echo "$as_me: WARNING: png.h: check for missing prerequisite headers?" >&2;}
21671 { echo "$as_me:$LINENO: WARNING: png.h: see the Autoconf documentation" >&5
21672echo "$as_me: WARNING: png.h: see the Autoconf documentation" >&2;}
21673 { echo "$as_me:$LINENO: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&5
21674echo "$as_me: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
21675 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5
21676echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
21677 { echo "$as_me:$LINENO: WARNING: png.h: in the future, the compiler will take precedence" >&5
21678echo "$as_me: WARNING: png.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
21679 (
21680 cat <<\_ASBOX
ac1cb8d3
VS
21681## ----------------------------------------- ##
21682## Report this to wx-dev@lists.wxwidgets.org ##
21683## ----------------------------------------- ##
a848cd7e
SC
21684_ASBOX
21685 ) |
21686 sed "s/^/$as_me: WARNING: /" >&2
21687 ;;
21688esac
21689echo "$as_me:$LINENO: checking for png.h" >&5
21690echo $ECHO_N "checking for png.h... $ECHO_C" >&6
21691if test "${ac_cv_header_png_h+set}" = set; then
21692 echo $ECHO_N "(cached) $ECHO_C" >&6
21693else
21694 ac_cv_header_png_h=$ac_header_preproc
21695fi
21696echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
21697echo "${ECHO_T}$ac_cv_header_png_h" >&6
21698
21699fi
21700
21701
21702
21703 if test "$ac_cv_header_png_h" = "yes"; then
21704 echo "$as_me:$LINENO: checking for png_check_sig in -lpng" >&5
21705echo $ECHO_N "checking for png_check_sig in -lpng... $ECHO_C" >&6
21706if test "${ac_cv_lib_png_png_check_sig+set}" = set; then
21707 echo $ECHO_N "(cached) $ECHO_C" >&6
21708else
21709 ac_check_lib_save_LIBS=$LIBS
21710LIBS="-lpng -lz -lm $LIBS"
21711cat >conftest.$ac_ext <<_ACEOF
21712/* confdefs.h. */
21713_ACEOF
21714cat confdefs.h >>conftest.$ac_ext
21715cat >>conftest.$ac_ext <<_ACEOF
21716/* end confdefs.h. */
21717
21718/* Override any gcc2 internal prototype to avoid an error. */
21719#ifdef __cplusplus
21720extern "C"
21721#endif
21722/* We use char because int might match the return type of a gcc2
21723 builtin and then its argument prototype would still apply. */
21724char png_check_sig ();
21725int
21726main ()
21727{
21728png_check_sig ();
21729 ;
21730 return 0;
21731}
21732_ACEOF
21733rm -f conftest.$ac_objext conftest$ac_exeext
21734if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 21735 (eval $ac_link) 2>conftest.er1
a848cd7e 21736 ac_status=$?
ac1cb8d3
VS
21737 grep -v '^ *+' conftest.er1 >conftest.err
21738 rm -f conftest.er1
21739 cat conftest.err >&5
a848cd7e
SC
21740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21741 (exit $ac_status); } &&
89be85c2
VS
21742 { ac_try='test -z "$ac_c_werror_flag"
21743 || test ! -s conftest.err'
ac1cb8d3
VS
21744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21745 (eval $ac_try) 2>&5
21746 ac_status=$?
21747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21748 (exit $ac_status); }; } &&
21749 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
21750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21751 (eval $ac_try) 2>&5
21752 ac_status=$?
21753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21754 (exit $ac_status); }; }; then
21755 ac_cv_lib_png_png_check_sig=yes
21756else
21757 echo "$as_me: failed program was:" >&5
21758sed 's/^/| /' conftest.$ac_ext >&5
21759
21760ac_cv_lib_png_png_check_sig=no
21761fi
ac1cb8d3
VS
21762rm -f conftest.err conftest.$ac_objext \
21763 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
21764LIBS=$ac_check_lib_save_LIBS
21765fi
21766echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_check_sig" >&5
21767echo "${ECHO_T}$ac_cv_lib_png_png_check_sig" >&6
21768if test $ac_cv_lib_png_png_check_sig = yes; then
21769 PNG_LINK=" -lpng -lz"
21770fi
21771
21772 fi
21773
21774 if test "x$PNG_LINK" = "x" ; then
21775 if test "$wxUSE_LIBPNG" = "sys" ; then
21776 { { echo "$as_me:$LINENO: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&5
21777echo "$as_me: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&2;}
21778 { (exit 1); exit 1; }; }
21779 else
21780 { echo "$as_me:$LINENO: WARNING: system png library not found or too old, will use built-in instead" >&5
21781echo "$as_me: WARNING: system png library not found or too old, will use built-in instead" >&2;}
21782 wxUSE_LIBPNG=builtin
21783 fi
21784 else
21785 wxUSE_LIBPNG=sys
21786 fi
21787 fi
21788 fi
21789
21790 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png"
21791fi
21792
21793
21794JPEG_LINK=
21795if test "$wxUSE_LIBJPEG" != "no" ; then
21796 cat >>confdefs.h <<\_ACEOF
21797#define wxUSE_LIBJPEG 1
21798_ACEOF
21799
21800
21801 if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBJPEG" = "builtin" ; then
21802 { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&5
21803echo "$as_me: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&2;}
21804 wxUSE_LIBJPEG=sys
21805 fi
21806
21807 if test "$wxUSE_MGL" != 1 ; then
21808 if test "$wxUSE_LIBJPEG" = "sys" -o "$wxUSE_LIBJPEG" = "yes" ; then
21809 echo "$as_me:$LINENO: checking for jpeglib.h" >&5
21810echo $ECHO_N "checking for jpeglib.h... $ECHO_C" >&6
21811 if test "${ac_cv_header_jpeglib_h+set}" = set; then
21812 echo $ECHO_N "(cached) $ECHO_C" >&6
21813else
21814 cat >conftest.$ac_ext <<_ACEOF
21815/* confdefs.h. */
21816_ACEOF
21817cat confdefs.h >>conftest.$ac_ext
21818cat >>conftest.$ac_ext <<_ACEOF
21819/* end confdefs.h. */
21820
21821 #undef HAVE_STDLIB_H
21822 #include <stdio.h>
21823 #include <jpeglib.h>
21824
21825int
21826main ()
21827{
21828
21829
21830 ;
21831 return 0;
21832}
21833_ACEOF
21834rm -f conftest.$ac_objext
21835if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21836 (eval $ac_compile) 2>conftest.er1
a848cd7e 21837 ac_status=$?
ac1cb8d3
VS
21838 grep -v '^ *+' conftest.er1 >conftest.err
21839 rm -f conftest.er1
21840 cat conftest.err >&5
a848cd7e
SC
21841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21842 (exit $ac_status); } &&
89be85c2
VS
21843 { ac_try='test -z "$ac_c_werror_flag"
21844 || test ! -s conftest.err'
ac1cb8d3
VS
21845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21846 (eval $ac_try) 2>&5
21847 ac_status=$?
21848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21849 (exit $ac_status); }; } &&
21850 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21852 (eval $ac_try) 2>&5
21853 ac_status=$?
21854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21855 (exit $ac_status); }; }; then
21856 ac_cv_header_jpeglib_h=yes
21857else
21858 echo "$as_me: failed program was:" >&5
21859sed 's/^/| /' conftest.$ac_ext >&5
21860
21861ac_cv_header_jpeglib_h=no
21862
21863fi
ac1cb8d3 21864rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21865
21866fi
21867
21868 echo "$as_me:$LINENO: result: $ac_cv_header_jpeglib_h" >&5
21869echo "${ECHO_T}$ac_cv_header_jpeglib_h" >&6
21870
21871 if test "$ac_cv_header_jpeglib_h" = "yes"; then
21872 echo "$as_me:$LINENO: checking for jpeg_read_header in -ljpeg" >&5
21873echo $ECHO_N "checking for jpeg_read_header in -ljpeg... $ECHO_C" >&6
21874if test "${ac_cv_lib_jpeg_jpeg_read_header+set}" = set; then
21875 echo $ECHO_N "(cached) $ECHO_C" >&6
21876else
21877 ac_check_lib_save_LIBS=$LIBS
21878LIBS="-ljpeg $LIBS"
21879cat >conftest.$ac_ext <<_ACEOF
21880/* confdefs.h. */
21881_ACEOF
21882cat confdefs.h >>conftest.$ac_ext
21883cat >>conftest.$ac_ext <<_ACEOF
21884/* end confdefs.h. */
21885
21886/* Override any gcc2 internal prototype to avoid an error. */
21887#ifdef __cplusplus
21888extern "C"
21889#endif
21890/* We use char because int might match the return type of a gcc2
21891 builtin and then its argument prototype would still apply. */
21892char jpeg_read_header ();
21893int
21894main ()
21895{
21896jpeg_read_header ();
21897 ;
21898 return 0;
21899}
21900_ACEOF
21901rm -f conftest.$ac_objext conftest$ac_exeext
21902if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 21903 (eval $ac_link) 2>conftest.er1
a848cd7e 21904 ac_status=$?
ac1cb8d3
VS
21905 grep -v '^ *+' conftest.er1 >conftest.err
21906 rm -f conftest.er1
21907 cat conftest.err >&5
a848cd7e
SC
21908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21909 (exit $ac_status); } &&
89be85c2
VS
21910 { ac_try='test -z "$ac_c_werror_flag"
21911 || test ! -s conftest.err'
ac1cb8d3
VS
21912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21913 (eval $ac_try) 2>&5
21914 ac_status=$?
21915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21916 (exit $ac_status); }; } &&
21917 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
21918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21919 (eval $ac_try) 2>&5
21920 ac_status=$?
21921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21922 (exit $ac_status); }; }; then
21923 ac_cv_lib_jpeg_jpeg_read_header=yes
21924else
21925 echo "$as_me: failed program was:" >&5
21926sed 's/^/| /' conftest.$ac_ext >&5
21927
21928ac_cv_lib_jpeg_jpeg_read_header=no
21929fi
ac1cb8d3
VS
21930rm -f conftest.err conftest.$ac_objext \
21931 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
21932LIBS=$ac_check_lib_save_LIBS
21933fi
21934echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5
21935echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_read_header" >&6
21936if test $ac_cv_lib_jpeg_jpeg_read_header = yes; then
21937 JPEG_LINK=" -ljpeg"
21938fi
21939
21940 fi
21941
21942 if test "x$JPEG_LINK" = "x" ; then
21943 if test "$wxUSE_LIBJPEG" = "sys" ; then
21944 { { echo "$as_me:$LINENO: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&5
21945echo "$as_me: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&2;}
21946 { (exit 1); exit 1; }; }
21947 else
21948 { echo "$as_me:$LINENO: WARNING: system jpeg library not found, will use built-in instead" >&5
21949echo "$as_me: WARNING: system jpeg library not found, will use built-in instead" >&2;}
21950 wxUSE_LIBJPEG=builtin
21951 fi
21952 else
21953 wxUSE_LIBJPEG=sys
21954 fi
21955 fi
21956 fi
21957fi
21958
21959
21960TIFF_LINK=
21961TIFF_PREREQ_LINKS=-lm
21962if test "$wxUSE_LIBTIFF" != "no" ; then
21963 cat >>confdefs.h <<\_ACEOF
21964#define wxUSE_LIBTIFF 1
21965_ACEOF
21966
21967
21968 if test "$wxUSE_LIBTIFF" = "sys" -o "$wxUSE_LIBTIFF" = "yes" ; then
21969 if test "$wxUSE_LIBJPEG" = "sys"; then
21970 TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $JPEG_LINK"
21971 fi
21972 if test "$wxUSE_ZLIB" = "sys"; then
21973 TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $ZLIB_LINK"
21974 fi
21975 if test "${ac_cv_header_tiffio_h+set}" = set; then
21976 echo "$as_me:$LINENO: checking for tiffio.h" >&5
21977echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
21978if test "${ac_cv_header_tiffio_h+set}" = set; then
21979 echo $ECHO_N "(cached) $ECHO_C" >&6
21980fi
21981echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
21982echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
21983else
21984 # Is the header compilable?
21985echo "$as_me:$LINENO: checking tiffio.h usability" >&5
21986echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6
21987cat >conftest.$ac_ext <<_ACEOF
21988/* confdefs.h. */
21989_ACEOF
21990cat confdefs.h >>conftest.$ac_ext
21991cat >>conftest.$ac_ext <<_ACEOF
21992/* end confdefs.h. */
21993$ac_includes_default
21994#include <tiffio.h>
21995_ACEOF
21996rm -f conftest.$ac_objext
21997if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21998 (eval $ac_compile) 2>conftest.er1
a848cd7e 21999 ac_status=$?
ac1cb8d3
VS
22000 grep -v '^ *+' conftest.er1 >conftest.err
22001 rm -f conftest.er1
22002 cat conftest.err >&5
a848cd7e
SC
22003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22004 (exit $ac_status); } &&
89be85c2
VS
22005 { ac_try='test -z "$ac_c_werror_flag"
22006 || test ! -s conftest.err'
ac1cb8d3
VS
22007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22008 (eval $ac_try) 2>&5
22009 ac_status=$?
22010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22011 (exit $ac_status); }; } &&
22012 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22014 (eval $ac_try) 2>&5
22015 ac_status=$?
22016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22017 (exit $ac_status); }; }; then
22018 ac_header_compiler=yes
22019else
22020 echo "$as_me: failed program was:" >&5
22021sed 's/^/| /' conftest.$ac_ext >&5
22022
22023ac_header_compiler=no
22024fi
ac1cb8d3 22025rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22026echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22027echo "${ECHO_T}$ac_header_compiler" >&6
22028
22029# Is the header present?
22030echo "$as_me:$LINENO: checking tiffio.h presence" >&5
22031echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6
22032cat >conftest.$ac_ext <<_ACEOF
22033/* confdefs.h. */
22034_ACEOF
22035cat confdefs.h >>conftest.$ac_ext
22036cat >>conftest.$ac_ext <<_ACEOF
22037/* end confdefs.h. */
22038#include <tiffio.h>
22039_ACEOF
22040if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22041 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22042 ac_status=$?
22043 grep -v '^ *+' conftest.er1 >conftest.err
22044 rm -f conftest.er1
22045 cat conftest.err >&5
22046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22047 (exit $ac_status); } >/dev/null; then
22048 if test -s conftest.err; then
22049 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 22050 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
22051 else
22052 ac_cpp_err=
22053 fi
22054else
22055 ac_cpp_err=yes
22056fi
22057if test -z "$ac_cpp_err"; then
22058 ac_header_preproc=yes
22059else
22060 echo "$as_me: failed program was:" >&5
22061sed 's/^/| /' conftest.$ac_ext >&5
22062
22063 ac_header_preproc=no
22064fi
22065rm -f conftest.err conftest.$ac_ext
22066echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22067echo "${ECHO_T}$ac_header_preproc" >&6
22068
22069# So? What about this header?
ac1cb8d3
VS
22070case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22071 yes:no: )
a848cd7e
SC
22072 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
22073echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
22074 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5
22075echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;}
22076 ac_header_preproc=yes
a848cd7e 22077 ;;
ac1cb8d3 22078 no:yes:* )
a848cd7e
SC
22079 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
22080echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
22081 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
22082echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
22083 { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
22084echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
22085 { echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
22086echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
22087 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
22088echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
22089 { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
22090echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
22091 (
22092 cat <<\_ASBOX
ac1cb8d3
VS
22093## ----------------------------------------- ##
22094## Report this to wx-dev@lists.wxwidgets.org ##
22095## ----------------------------------------- ##
a848cd7e
SC
22096_ASBOX
22097 ) |
22098 sed "s/^/$as_me: WARNING: /" >&2
22099 ;;
22100esac
22101echo "$as_me:$LINENO: checking for tiffio.h" >&5
22102echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
22103if test "${ac_cv_header_tiffio_h+set}" = set; then
22104 echo $ECHO_N "(cached) $ECHO_C" >&6
22105else
22106 ac_cv_header_tiffio_h=$ac_header_preproc
22107fi
22108echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
22109echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
22110
22111fi
22112if test $ac_cv_header_tiffio_h = yes; then
22113
22114 echo "$as_me:$LINENO: checking for TIFFError in -ltiff" >&5
22115echo $ECHO_N "checking for TIFFError in -ltiff... $ECHO_C" >&6
22116if test "${ac_cv_lib_tiff_TIFFError+set}" = set; then
22117 echo $ECHO_N "(cached) $ECHO_C" >&6
22118else
22119 ac_check_lib_save_LIBS=$LIBS
22120LIBS="-ltiff $TIFF_PREREQ_LINKS $LIBS"
22121cat >conftest.$ac_ext <<_ACEOF
22122/* confdefs.h. */
22123_ACEOF
22124cat confdefs.h >>conftest.$ac_ext
22125cat >>conftest.$ac_ext <<_ACEOF
22126/* end confdefs.h. */
22127
22128/* Override any gcc2 internal prototype to avoid an error. */
22129#ifdef __cplusplus
22130extern "C"
22131#endif
22132/* We use char because int might match the return type of a gcc2
22133 builtin and then its argument prototype would still apply. */
22134char TIFFError ();
22135int
22136main ()
22137{
22138TIFFError ();
22139 ;
22140 return 0;
22141}
22142_ACEOF
22143rm -f conftest.$ac_objext conftest$ac_exeext
22144if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 22145 (eval $ac_link) 2>conftest.er1
a848cd7e 22146 ac_status=$?
ac1cb8d3
VS
22147 grep -v '^ *+' conftest.er1 >conftest.err
22148 rm -f conftest.er1
22149 cat conftest.err >&5
a848cd7e
SC
22150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22151 (exit $ac_status); } &&
89be85c2
VS
22152 { ac_try='test -z "$ac_c_werror_flag"
22153 || test ! -s conftest.err'
ac1cb8d3
VS
22154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22155 (eval $ac_try) 2>&5
22156 ac_status=$?
22157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22158 (exit $ac_status); }; } &&
22159 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
22160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22161 (eval $ac_try) 2>&5
22162 ac_status=$?
22163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22164 (exit $ac_status); }; }; then
22165 ac_cv_lib_tiff_TIFFError=yes
22166else
22167 echo "$as_me: failed program was:" >&5
22168sed 's/^/| /' conftest.$ac_ext >&5
22169
22170ac_cv_lib_tiff_TIFFError=no
22171fi
ac1cb8d3
VS
22172rm -f conftest.err conftest.$ac_objext \
22173 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
22174LIBS=$ac_check_lib_save_LIBS
22175fi
22176echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFError" >&5
22177echo "${ECHO_T}$ac_cv_lib_tiff_TIFFError" >&6
22178if test $ac_cv_lib_tiff_TIFFError = yes; then
22179 TIFF_LINK=" -ltiff"
22180fi
22181
22182
22183
22184fi
22185
22186
22187
22188 if test "x$TIFF_LINK" = "x" ; then
22189 if test "$wxUSE_LIBTIFF" = "sys" ; then
22190 { { echo "$as_me:$LINENO: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&5
22191echo "$as_me: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&2;}
22192 { (exit 1); exit 1; }; }
22193 else
22194 { echo "$as_me:$LINENO: WARNING: system tiff library not found, will use built-in instead" >&5
22195echo "$as_me: WARNING: system tiff library not found, will use built-in instead" >&2;}
22196 wxUSE_LIBTIFF=builtin
22197 fi
22198 else
22199 wxUSE_LIBTIFF=sys
22200 fi
22201 fi
22202fi
22203
22204
22205if test "$wxUSE_EXPAT" != "no"; then
22206 wxUSE_XML=yes
22207 cat >>confdefs.h <<\_ACEOF
22208#define wxUSE_EXPAT 1
22209_ACEOF
22210
22211 cat >>confdefs.h <<\_ACEOF
22212#define wxUSE_XML 1
22213_ACEOF
22214
22215
22216 if test "$wxUSE_EXPAT" = "sys" -o "$wxUSE_EXPAT" = "yes" ; then
22217 if test "${ac_cv_header_expat_h+set}" = set; then
22218 echo "$as_me:$LINENO: checking for expat.h" >&5
22219echo $ECHO_N "checking for expat.h... $ECHO_C" >&6
22220if test "${ac_cv_header_expat_h+set}" = set; then
22221 echo $ECHO_N "(cached) $ECHO_C" >&6
22222fi
22223echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5
22224echo "${ECHO_T}$ac_cv_header_expat_h" >&6
22225else
22226 # Is the header compilable?
22227echo "$as_me:$LINENO: checking expat.h usability" >&5
22228echo $ECHO_N "checking expat.h usability... $ECHO_C" >&6
22229cat >conftest.$ac_ext <<_ACEOF
22230/* confdefs.h. */
22231_ACEOF
22232cat confdefs.h >>conftest.$ac_ext
22233cat >>conftest.$ac_ext <<_ACEOF
22234/* end confdefs.h. */
22235$ac_includes_default
22236#include <expat.h>
22237_ACEOF
22238rm -f conftest.$ac_objext
22239if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22240 (eval $ac_compile) 2>conftest.er1
a848cd7e 22241 ac_status=$?
ac1cb8d3
VS
22242 grep -v '^ *+' conftest.er1 >conftest.err
22243 rm -f conftest.er1
22244 cat conftest.err >&5
a848cd7e
SC
22245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22246 (exit $ac_status); } &&
89be85c2
VS
22247 { ac_try='test -z "$ac_c_werror_flag"
22248 || test ! -s conftest.err'
ac1cb8d3
VS
22249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22250 (eval $ac_try) 2>&5
22251 ac_status=$?
22252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22253 (exit $ac_status); }; } &&
22254 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22256 (eval $ac_try) 2>&5
22257 ac_status=$?
22258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22259 (exit $ac_status); }; }; then
22260 ac_header_compiler=yes
22261else
22262 echo "$as_me: failed program was:" >&5
22263sed 's/^/| /' conftest.$ac_ext >&5
22264
22265ac_header_compiler=no
22266fi
ac1cb8d3 22267rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22268echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22269echo "${ECHO_T}$ac_header_compiler" >&6
22270
22271# Is the header present?
22272echo "$as_me:$LINENO: checking expat.h presence" >&5
22273echo $ECHO_N "checking expat.h presence... $ECHO_C" >&6
22274cat >conftest.$ac_ext <<_ACEOF
22275/* confdefs.h. */
22276_ACEOF
22277cat confdefs.h >>conftest.$ac_ext
22278cat >>conftest.$ac_ext <<_ACEOF
22279/* end confdefs.h. */
22280#include <expat.h>
22281_ACEOF
22282if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22283 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22284 ac_status=$?
22285 grep -v '^ *+' conftest.er1 >conftest.err
22286 rm -f conftest.er1
22287 cat conftest.err >&5
22288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22289 (exit $ac_status); } >/dev/null; then
22290 if test -s conftest.err; then
22291 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 22292 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
22293 else
22294 ac_cpp_err=
22295 fi
22296else
22297 ac_cpp_err=yes
22298fi
22299if test -z "$ac_cpp_err"; then
22300 ac_header_preproc=yes
22301else
22302 echo "$as_me: failed program was:" >&5
22303sed 's/^/| /' conftest.$ac_ext >&5
22304
22305 ac_header_preproc=no
22306fi
22307rm -f conftest.err conftest.$ac_ext
22308echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22309echo "${ECHO_T}$ac_header_preproc" >&6
22310
22311# So? What about this header?
ac1cb8d3
VS
22312case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22313 yes:no: )
a848cd7e
SC
22314 { echo "$as_me:$LINENO: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&5
22315echo "$as_me: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
22316 { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the compiler's result" >&5
22317echo "$as_me: WARNING: expat.h: proceeding with the compiler's result" >&2;}
22318 ac_header_preproc=yes
a848cd7e 22319 ;;
ac1cb8d3 22320 no:yes:* )
a848cd7e
SC
22321 { echo "$as_me:$LINENO: WARNING: expat.h: present but cannot be compiled" >&5
22322echo "$as_me: WARNING: expat.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
22323 { echo "$as_me:$LINENO: WARNING: expat.h: check for missing prerequisite headers?" >&5
22324echo "$as_me: WARNING: expat.h: check for missing prerequisite headers?" >&2;}
22325 { echo "$as_me:$LINENO: WARNING: expat.h: see the Autoconf documentation" >&5
22326echo "$as_me: WARNING: expat.h: see the Autoconf documentation" >&2;}
22327 { echo "$as_me:$LINENO: WARNING: expat.h: section \"Present But Cannot Be Compiled\"" >&5
22328echo "$as_me: WARNING: expat.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
22329 { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the preprocessor's result" >&5
22330echo "$as_me: WARNING: expat.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
22331 { echo "$as_me:$LINENO: WARNING: expat.h: in the future, the compiler will take precedence" >&5
22332echo "$as_me: WARNING: expat.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
22333 (
22334 cat <<\_ASBOX
ac1cb8d3
VS
22335## ----------------------------------------- ##
22336## Report this to wx-dev@lists.wxwidgets.org ##
22337## ----------------------------------------- ##
a848cd7e
SC
22338_ASBOX
22339 ) |
22340 sed "s/^/$as_me: WARNING: /" >&2
22341 ;;
22342esac
22343echo "$as_me:$LINENO: checking for expat.h" >&5
22344echo $ECHO_N "checking for expat.h... $ECHO_C" >&6
22345if test "${ac_cv_header_expat_h+set}" = set; then
22346 echo $ECHO_N "(cached) $ECHO_C" >&6
22347else
22348 ac_cv_header_expat_h=$ac_header_preproc
22349fi
22350echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5
22351echo "${ECHO_T}$ac_cv_header_expat_h" >&6
22352
22353fi
22354if test $ac_cv_header_expat_h = yes; then
22355 found_expat_h=1
22356fi
22357
22358
22359 if test "x$found_expat_h" = "x1"; then
22360 echo "$as_me:$LINENO: checking if expat.h is valid C++ header" >&5
22361echo $ECHO_N "checking if expat.h is valid C++ header... $ECHO_C" >&6
22362if test "${wx_cv_expat_is_not_broken+set}" = set; then
22363 echo $ECHO_N "(cached) $ECHO_C" >&6
22364else
22365
22366
22367
22368 ac_ext=cc
22369ac_cpp='$CXXCPP $CPPFLAGS'
22370ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22371ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22372ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22373
22374 cat >conftest.$ac_ext <<_ACEOF
22375/* confdefs.h. */
22376_ACEOF
22377cat confdefs.h >>conftest.$ac_ext
22378cat >>conftest.$ac_ext <<_ACEOF
22379/* end confdefs.h. */
22380#include <expat.h>
22381int
22382main ()
22383{
22384
22385 ;
22386 return 0;
22387}
22388_ACEOF
22389rm -f conftest.$ac_objext
22390if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22391 (eval $ac_compile) 2>conftest.er1
a848cd7e 22392 ac_status=$?
ac1cb8d3
VS
22393 grep -v '^ *+' conftest.er1 >conftest.err
22394 rm -f conftest.er1
22395 cat conftest.err >&5
a848cd7e
SC
22396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22397 (exit $ac_status); } &&
89be85c2
VS
22398 { ac_try='test -z "$ac_cxx_werror_flag"
22399 || test ! -s conftest.err'
ac1cb8d3
VS
22400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22401 (eval $ac_try) 2>&5
22402 ac_status=$?
22403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22404 (exit $ac_status); }; } &&
22405 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22407 (eval $ac_try) 2>&5
22408 ac_status=$?
22409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22410 (exit $ac_status); }; }; then
22411 wx_cv_expat_is_not_broken=yes
22412else
22413 echo "$as_me: failed program was:" >&5
22414sed 's/^/| /' conftest.$ac_ext >&5
22415
22416wx_cv_expat_is_not_broken=no
22417
22418fi
ac1cb8d3 22419rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22420 ac_ext=c
22421ac_cpp='$CPP $CPPFLAGS'
22422ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22423ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22424ac_compiler_gnu=$ac_cv_c_compiler_gnu
22425
22426
22427
22428fi
22429echo "$as_me:$LINENO: result: $wx_cv_expat_is_not_broken" >&5
22430echo "${ECHO_T}$wx_cv_expat_is_not_broken" >&6
22431 if test "$wx_cv_expat_is_not_broken" = "yes" ; then
22432 echo "$as_me:$LINENO: checking for XML_ParserCreate in -lexpat" >&5
22433echo $ECHO_N "checking for XML_ParserCreate in -lexpat... $ECHO_C" >&6
22434if test "${ac_cv_lib_expat_XML_ParserCreate+set}" = set; then
22435 echo $ECHO_N "(cached) $ECHO_C" >&6
22436else
22437 ac_check_lib_save_LIBS=$LIBS
22438LIBS="-lexpat $LIBS"
22439cat >conftest.$ac_ext <<_ACEOF
22440/* confdefs.h. */
22441_ACEOF
22442cat confdefs.h >>conftest.$ac_ext
22443cat >>conftest.$ac_ext <<_ACEOF
22444/* end confdefs.h. */
22445
22446/* Override any gcc2 internal prototype to avoid an error. */
22447#ifdef __cplusplus
22448extern "C"
22449#endif
22450/* We use char because int might match the return type of a gcc2
22451 builtin and then its argument prototype would still apply. */
22452char XML_ParserCreate ();
22453int
22454main ()
22455{
22456XML_ParserCreate ();
22457 ;
22458 return 0;
22459}
22460_ACEOF
22461rm -f conftest.$ac_objext conftest$ac_exeext
22462if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 22463 (eval $ac_link) 2>conftest.er1
a848cd7e 22464 ac_status=$?
ac1cb8d3
VS
22465 grep -v '^ *+' conftest.er1 >conftest.err
22466 rm -f conftest.er1
22467 cat conftest.err >&5
a848cd7e
SC
22468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22469 (exit $ac_status); } &&
89be85c2
VS
22470 { ac_try='test -z "$ac_c_werror_flag"
22471 || test ! -s conftest.err'
ac1cb8d3
VS
22472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22473 (eval $ac_try) 2>&5
22474 ac_status=$?
22475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22476 (exit $ac_status); }; } &&
22477 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
22478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22479 (eval $ac_try) 2>&5
22480 ac_status=$?
22481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22482 (exit $ac_status); }; }; then
22483 ac_cv_lib_expat_XML_ParserCreate=yes
22484else
22485 echo "$as_me: failed program was:" >&5
22486sed 's/^/| /' conftest.$ac_ext >&5
22487
22488ac_cv_lib_expat_XML_ParserCreate=no
22489fi
ac1cb8d3
VS
22490rm -f conftest.err conftest.$ac_objext \
22491 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
22492LIBS=$ac_check_lib_save_LIBS
22493fi
22494echo "$as_me:$LINENO: result: $ac_cv_lib_expat_XML_ParserCreate" >&5
22495echo "${ECHO_T}$ac_cv_lib_expat_XML_ParserCreate" >&6
22496if test $ac_cv_lib_expat_XML_ParserCreate = yes; then
22497 EXPAT_LINK=" -lexpat"
22498fi
22499
22500 fi
22501 fi
22502 if test "x$EXPAT_LINK" = "x" ; then
22503 if test "$wxUSE_EXPAT" = "sys" ; then
22504 { { echo "$as_me:$LINENO: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&5
22505echo "$as_me: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&2;}
22506 { (exit 1); exit 1; }; }
22507 else
22508 { echo "$as_me:$LINENO: WARNING: system expat library not found, will use built-in instead" >&5
22509echo "$as_me: WARNING: system expat library not found, will use built-in instead" >&2;}
22510 wxUSE_EXPAT=builtin
22511 fi
22512 else
22513 wxUSE_EXPAT=sys
22514 fi
22515 fi
22516 if test "$wxUSE_EXPAT" = "builtin" ; then
22517
22518
22519subdirs="$subdirs src/expat"
22520
22521 fi
22522fi
22523
22524
22525
22526if test "$wxUSE_LIBMSPACK" != "no"; then
a848cd7e
SC
22527 if test "${ac_cv_header_mspack_h+set}" = set; then
22528 echo "$as_me:$LINENO: checking for mspack.h" >&5
22529echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6
22530if test "${ac_cv_header_mspack_h+set}" = set; then
22531 echo $ECHO_N "(cached) $ECHO_C" >&6
22532fi
22533echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5
22534echo "${ECHO_T}$ac_cv_header_mspack_h" >&6
22535else
22536 # Is the header compilable?
22537echo "$as_me:$LINENO: checking mspack.h usability" >&5
22538echo $ECHO_N "checking mspack.h usability... $ECHO_C" >&6
22539cat >conftest.$ac_ext <<_ACEOF
22540/* confdefs.h. */
22541_ACEOF
22542cat confdefs.h >>conftest.$ac_ext
22543cat >>conftest.$ac_ext <<_ACEOF
22544/* end confdefs.h. */
22545$ac_includes_default
22546#include <mspack.h>
22547_ACEOF
22548rm -f conftest.$ac_objext
22549if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22550 (eval $ac_compile) 2>conftest.er1
a848cd7e 22551 ac_status=$?
ac1cb8d3
VS
22552 grep -v '^ *+' conftest.er1 >conftest.err
22553 rm -f conftest.er1
22554 cat conftest.err >&5
a848cd7e
SC
22555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22556 (exit $ac_status); } &&
89be85c2
VS
22557 { ac_try='test -z "$ac_c_werror_flag"
22558 || test ! -s conftest.err'
ac1cb8d3
VS
22559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22560 (eval $ac_try) 2>&5
22561 ac_status=$?
22562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22563 (exit $ac_status); }; } &&
22564 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22566 (eval $ac_try) 2>&5
22567 ac_status=$?
22568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22569 (exit $ac_status); }; }; then
22570 ac_header_compiler=yes
22571else
22572 echo "$as_me: failed program was:" >&5
22573sed 's/^/| /' conftest.$ac_ext >&5
22574
22575ac_header_compiler=no
22576fi
ac1cb8d3 22577rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22578echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22579echo "${ECHO_T}$ac_header_compiler" >&6
22580
22581# Is the header present?
22582echo "$as_me:$LINENO: checking mspack.h presence" >&5
22583echo $ECHO_N "checking mspack.h presence... $ECHO_C" >&6
22584cat >conftest.$ac_ext <<_ACEOF
22585/* confdefs.h. */
22586_ACEOF
22587cat confdefs.h >>conftest.$ac_ext
22588cat >>conftest.$ac_ext <<_ACEOF
22589/* end confdefs.h. */
22590#include <mspack.h>
22591_ACEOF
22592if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22593 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22594 ac_status=$?
22595 grep -v '^ *+' conftest.er1 >conftest.err
22596 rm -f conftest.er1
22597 cat conftest.err >&5
22598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22599 (exit $ac_status); } >/dev/null; then
22600 if test -s conftest.err; then
22601 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 22602 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
22603 else
22604 ac_cpp_err=
22605 fi
22606else
22607 ac_cpp_err=yes
22608fi
22609if test -z "$ac_cpp_err"; then
22610 ac_header_preproc=yes
22611else
22612 echo "$as_me: failed program was:" >&5
22613sed 's/^/| /' conftest.$ac_ext >&5
22614
22615 ac_header_preproc=no
22616fi
22617rm -f conftest.err conftest.$ac_ext
22618echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22619echo "${ECHO_T}$ac_header_preproc" >&6
22620
22621# So? What about this header?
ac1cb8d3
VS
22622case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22623 yes:no: )
a848cd7e
SC
22624 { echo "$as_me:$LINENO: WARNING: mspack.h: accepted by the compiler, rejected by the preprocessor!" >&5
22625echo "$as_me: WARNING: mspack.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
22626 { echo "$as_me:$LINENO: WARNING: mspack.h: proceeding with the compiler's result" >&5
22627echo "$as_me: WARNING: mspack.h: proceeding with the compiler's result" >&2;}
22628 ac_header_preproc=yes
a848cd7e 22629 ;;
ac1cb8d3 22630 no:yes:* )
a848cd7e
SC
22631 { echo "$as_me:$LINENO: WARNING: mspack.h: present but cannot be compiled" >&5
22632echo "$as_me: WARNING: mspack.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
22633 { echo "$as_me:$LINENO: WARNING: mspack.h: check for missing prerequisite headers?" >&5
22634echo "$as_me: WARNING: mspack.h: check for missing prerequisite headers?" >&2;}
22635 { echo "$as_me:$LINENO: WARNING: mspack.h: see the Autoconf documentation" >&5
22636echo "$as_me: WARNING: mspack.h: see the Autoconf documentation" >&2;}
22637 { echo "$as_me:$LINENO: WARNING: mspack.h: section \"Present But Cannot Be Compiled\"" >&5
22638echo "$as_me: WARNING: mspack.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
22639 { echo "$as_me:$LINENO: WARNING: mspack.h: proceeding with the preprocessor's result" >&5
22640echo "$as_me: WARNING: mspack.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
22641 { echo "$as_me:$LINENO: WARNING: mspack.h: in the future, the compiler will take precedence" >&5
22642echo "$as_me: WARNING: mspack.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
22643 (
22644 cat <<\_ASBOX
ac1cb8d3
VS
22645## ----------------------------------------- ##
22646## Report this to wx-dev@lists.wxwidgets.org ##
22647## ----------------------------------------- ##
a848cd7e
SC
22648_ASBOX
22649 ) |
22650 sed "s/^/$as_me: WARNING: /" >&2
22651 ;;
22652esac
22653echo "$as_me:$LINENO: checking for mspack.h" >&5
22654echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6
22655if test "${ac_cv_header_mspack_h+set}" = set; then
22656 echo $ECHO_N "(cached) $ECHO_C" >&6
22657else
22658 ac_cv_header_mspack_h=$ac_header_preproc
22659fi
22660echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5
22661echo "${ECHO_T}$ac_cv_header_mspack_h" >&6
22662
22663fi
22664if test $ac_cv_header_mspack_h = yes; then
22665 found_mspack_h=1
22666fi
22667
22668
22669 if test "x$found_mspack_h" = "x1"; then
22670 echo "$as_me:$LINENO: checking for mspack_create_chm_decompressor in -lmspack" >&5
22671echo $ECHO_N "checking for mspack_create_chm_decompressor in -lmspack... $ECHO_C" >&6
22672if test "${ac_cv_lib_mspack_mspack_create_chm_decompressor+set}" = set; then
22673 echo $ECHO_N "(cached) $ECHO_C" >&6
22674else
22675 ac_check_lib_save_LIBS=$LIBS
22676LIBS="-lmspack $LIBS"
22677cat >conftest.$ac_ext <<_ACEOF
22678/* confdefs.h. */
22679_ACEOF
22680cat confdefs.h >>conftest.$ac_ext
22681cat >>conftest.$ac_ext <<_ACEOF
22682/* end confdefs.h. */
22683
22684/* Override any gcc2 internal prototype to avoid an error. */
22685#ifdef __cplusplus
22686extern "C"
22687#endif
22688/* We use char because int might match the return type of a gcc2
22689 builtin and then its argument prototype would still apply. */
22690char mspack_create_chm_decompressor ();
22691int
22692main ()
22693{
22694mspack_create_chm_decompressor ();
22695 ;
22696 return 0;
22697}
22698_ACEOF
22699rm -f conftest.$ac_objext conftest$ac_exeext
22700if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 22701 (eval $ac_link) 2>conftest.er1
a848cd7e 22702 ac_status=$?
ac1cb8d3
VS
22703 grep -v '^ *+' conftest.er1 >conftest.err
22704 rm -f conftest.er1
22705 cat conftest.err >&5
a848cd7e
SC
22706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22707 (exit $ac_status); } &&
89be85c2
VS
22708 { ac_try='test -z "$ac_c_werror_flag"
22709 || test ! -s conftest.err'
ac1cb8d3
VS
22710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22711 (eval $ac_try) 2>&5
22712 ac_status=$?
22713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22714 (exit $ac_status); }; } &&
22715 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
22716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22717 (eval $ac_try) 2>&5
22718 ac_status=$?
22719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22720 (exit $ac_status); }; }; then
22721 ac_cv_lib_mspack_mspack_create_chm_decompressor=yes
22722else
22723 echo "$as_me: failed program was:" >&5
22724sed 's/^/| /' conftest.$ac_ext >&5
22725
22726ac_cv_lib_mspack_mspack_create_chm_decompressor=no
22727fi
ac1cb8d3
VS
22728rm -f conftest.err conftest.$ac_objext \
22729 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
22730LIBS=$ac_check_lib_save_LIBS
22731fi
22732echo "$as_me:$LINENO: result: $ac_cv_lib_mspack_mspack_create_chm_decompressor" >&5
22733echo "${ECHO_T}$ac_cv_lib_mspack_mspack_create_chm_decompressor" >&6
22734if test $ac_cv_lib_mspack_mspack_create_chm_decompressor = yes; then
22735 MSPACK_LINK=" -lmspack"
22736fi
22737
22738 fi
22739 if test "x$MSPACK_LINK" = "x" ; then
22740 wxUSE_LIBMSPACK=no
dd3a2d96
VZ
22741 fi
22742fi
22743
22744if test "$wxUSE_LIBMSPACK" != "no"; then
22745 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
22746#define wxUSE_LIBMSPACK 1
22747_ACEOF
22748
a848cd7e
SC
22749fi
22750
22751
22752
22753AFMINSTALL=
22754WIN32INSTALL=
22755
22756TOOLKIT=
22757TOOLKIT_INCLUDE=
22758WIDGET_SET=
22759
22760if test "$USE_WIN32" = 1 ; then
22761
22762for ac_header in w32api.h
22763do
22764as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22765if eval "test \"\${$as_ac_Header+set}\" = set"; then
22766 echo "$as_me:$LINENO: checking for $ac_header" >&5
22767echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22768if eval "test \"\${$as_ac_Header+set}\" = set"; then
22769 echo $ECHO_N "(cached) $ECHO_C" >&6
22770fi
22771echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22772echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22773else
22774 # Is the header compilable?
22775echo "$as_me:$LINENO: checking $ac_header usability" >&5
22776echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
22777cat >conftest.$ac_ext <<_ACEOF
22778/* confdefs.h. */
22779_ACEOF
22780cat confdefs.h >>conftest.$ac_ext
22781cat >>conftest.$ac_ext <<_ACEOF
22782/* end confdefs.h. */
22783$ac_includes_default
22784#include <$ac_header>
22785_ACEOF
22786rm -f conftest.$ac_objext
22787if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22788 (eval $ac_compile) 2>conftest.er1
a848cd7e 22789 ac_status=$?
ac1cb8d3
VS
22790 grep -v '^ *+' conftest.er1 >conftest.err
22791 rm -f conftest.er1
22792 cat conftest.err >&5
a848cd7e
SC
22793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22794 (exit $ac_status); } &&
89be85c2
VS
22795 { ac_try='test -z "$ac_c_werror_flag"
22796 || test ! -s conftest.err'
ac1cb8d3
VS
22797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22798 (eval $ac_try) 2>&5
22799 ac_status=$?
22800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22801 (exit $ac_status); }; } &&
22802 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22804 (eval $ac_try) 2>&5
22805 ac_status=$?
22806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22807 (exit $ac_status); }; }; then
22808 ac_header_compiler=yes
22809else
22810 echo "$as_me: failed program was:" >&5
22811sed 's/^/| /' conftest.$ac_ext >&5
22812
22813ac_header_compiler=no
22814fi
ac1cb8d3 22815rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22816echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22817echo "${ECHO_T}$ac_header_compiler" >&6
22818
22819# Is the header present?
22820echo "$as_me:$LINENO: checking $ac_header presence" >&5
22821echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
22822cat >conftest.$ac_ext <<_ACEOF
22823/* confdefs.h. */
22824_ACEOF
22825cat confdefs.h >>conftest.$ac_ext
22826cat >>conftest.$ac_ext <<_ACEOF
22827/* end confdefs.h. */
22828#include <$ac_header>
22829_ACEOF
22830if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22831 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22832 ac_status=$?
22833 grep -v '^ *+' conftest.er1 >conftest.err
22834 rm -f conftest.er1
22835 cat conftest.err >&5
22836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22837 (exit $ac_status); } >/dev/null; then
22838 if test -s conftest.err; then
22839 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 22840 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
22841 else
22842 ac_cpp_err=
22843 fi
22844else
22845 ac_cpp_err=yes
22846fi
22847if test -z "$ac_cpp_err"; then
22848 ac_header_preproc=yes
22849else
22850 echo "$as_me: failed program was:" >&5
22851sed 's/^/| /' conftest.$ac_ext >&5
22852
22853 ac_header_preproc=no
22854fi
22855rm -f conftest.err conftest.$ac_ext
22856echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22857echo "${ECHO_T}$ac_header_preproc" >&6
22858
22859# So? What about this header?
ac1cb8d3
VS
22860case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22861 yes:no: )
a848cd7e
SC
22862 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22863echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
22864 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22865echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22866 ac_header_preproc=yes
a848cd7e 22867 ;;
ac1cb8d3 22868 no:yes:* )
a848cd7e
SC
22869 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22870echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
22871 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22872echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22873 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22874echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22875 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22876echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
22877 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22878echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
22879 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22880echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
22881 (
22882 cat <<\_ASBOX
ac1cb8d3
VS
22883## ----------------------------------------- ##
22884## Report this to wx-dev@lists.wxwidgets.org ##
22885## ----------------------------------------- ##
a848cd7e
SC
22886_ASBOX
22887 ) |
22888 sed "s/^/$as_me: WARNING: /" >&2
22889 ;;
22890esac
22891echo "$as_me:$LINENO: checking for $ac_header" >&5
22892echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22893if eval "test \"\${$as_ac_Header+set}\" = set"; then
22894 echo $ECHO_N "(cached) $ECHO_C" >&6
22895else
ac1cb8d3 22896 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
22897fi
22898echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22899echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22900
22901fi
22902if test `eval echo '${'$as_ac_Header'}'` = yes; then
22903 cat >>confdefs.h <<_ACEOF
22904#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22905_ACEOF
22906
22907fi
22908
22909done
22910
22911 if test "${ac_cv_header_windows_h+set}" = set; then
22912 echo "$as_me:$LINENO: checking for windows.h" >&5
22913echo $ECHO_N "checking for windows.h... $ECHO_C" >&6
22914if test "${ac_cv_header_windows_h+set}" = set; then
22915 echo $ECHO_N "(cached) $ECHO_C" >&6
22916fi
22917echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
22918echo "${ECHO_T}$ac_cv_header_windows_h" >&6
22919else
22920 # Is the header compilable?
22921echo "$as_me:$LINENO: checking windows.h usability" >&5
22922echo $ECHO_N "checking windows.h usability... $ECHO_C" >&6
22923cat >conftest.$ac_ext <<_ACEOF
22924/* confdefs.h. */
22925_ACEOF
22926cat confdefs.h >>conftest.$ac_ext
22927cat >>conftest.$ac_ext <<_ACEOF
22928/* end confdefs.h. */
22929$ac_includes_default
22930#include <windows.h>
22931_ACEOF
22932rm -f conftest.$ac_objext
22933if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22934 (eval $ac_compile) 2>conftest.er1
a848cd7e 22935 ac_status=$?
ac1cb8d3
VS
22936 grep -v '^ *+' conftest.er1 >conftest.err
22937 rm -f conftest.er1
22938 cat conftest.err >&5
a848cd7e
SC
22939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22940 (exit $ac_status); } &&
89be85c2
VS
22941 { ac_try='test -z "$ac_c_werror_flag"
22942 || test ! -s conftest.err'
ac1cb8d3
VS
22943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22944 (eval $ac_try) 2>&5
22945 ac_status=$?
22946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22947 (exit $ac_status); }; } &&
22948 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22950 (eval $ac_try) 2>&5
22951 ac_status=$?
22952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22953 (exit $ac_status); }; }; then
22954 ac_header_compiler=yes
22955else
22956 echo "$as_me: failed program was:" >&5
22957sed 's/^/| /' conftest.$ac_ext >&5
22958
22959ac_header_compiler=no
22960fi
ac1cb8d3 22961rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22962echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22963echo "${ECHO_T}$ac_header_compiler" >&6
22964
22965# Is the header present?
22966echo "$as_me:$LINENO: checking windows.h presence" >&5
22967echo $ECHO_N "checking windows.h presence... $ECHO_C" >&6
22968cat >conftest.$ac_ext <<_ACEOF
22969/* confdefs.h. */
22970_ACEOF
22971cat confdefs.h >>conftest.$ac_ext
22972cat >>conftest.$ac_ext <<_ACEOF
22973/* end confdefs.h. */
22974#include <windows.h>
22975_ACEOF
22976if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22977 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22978 ac_status=$?
22979 grep -v '^ *+' conftest.er1 >conftest.err
22980 rm -f conftest.er1
22981 cat conftest.err >&5
22982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22983 (exit $ac_status); } >/dev/null; then
22984 if test -s conftest.err; then
22985 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 22986 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
22987 else
22988 ac_cpp_err=
22989 fi
22990else
22991 ac_cpp_err=yes
22992fi
22993if test -z "$ac_cpp_err"; then
22994 ac_header_preproc=yes
22995else
22996 echo "$as_me: failed program was:" >&5
22997sed 's/^/| /' conftest.$ac_ext >&5
22998
22999 ac_header_preproc=no
23000fi
23001rm -f conftest.err conftest.$ac_ext
23002echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23003echo "${ECHO_T}$ac_header_preproc" >&6
23004
23005# So? What about this header?
ac1cb8d3
VS
23006case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23007 yes:no: )
a848cd7e
SC
23008 { echo "$as_me:$LINENO: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&5
23009echo "$as_me: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
23010 { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the compiler's result" >&5
23011echo "$as_me: WARNING: windows.h: proceeding with the compiler's result" >&2;}
23012 ac_header_preproc=yes
a848cd7e 23013 ;;
ac1cb8d3 23014 no:yes:* )
a848cd7e
SC
23015 { echo "$as_me:$LINENO: WARNING: windows.h: present but cannot be compiled" >&5
23016echo "$as_me: WARNING: windows.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
23017 { echo "$as_me:$LINENO: WARNING: windows.h: check for missing prerequisite headers?" >&5
23018echo "$as_me: WARNING: windows.h: check for missing prerequisite headers?" >&2;}
23019 { echo "$as_me:$LINENO: WARNING: windows.h: see the Autoconf documentation" >&5
23020echo "$as_me: WARNING: windows.h: see the Autoconf documentation" >&2;}
23021 { echo "$as_me:$LINENO: WARNING: windows.h: section \"Present But Cannot Be Compiled\"" >&5
23022echo "$as_me: WARNING: windows.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
23023 { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the preprocessor's result" >&5
23024echo "$as_me: WARNING: windows.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
23025 { echo "$as_me:$LINENO: WARNING: windows.h: in the future, the compiler will take precedence" >&5
23026echo "$as_me: WARNING: windows.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
23027 (
23028 cat <<\_ASBOX
ac1cb8d3
VS
23029## ----------------------------------------- ##
23030## Report this to wx-dev@lists.wxwidgets.org ##
23031## ----------------------------------------- ##
a848cd7e
SC
23032_ASBOX
23033 ) |
23034 sed "s/^/$as_me: WARNING: /" >&2
23035 ;;
23036esac
23037echo "$as_me:$LINENO: checking for windows.h" >&5
23038echo $ECHO_N "checking for windows.h... $ECHO_C" >&6
23039if test "${ac_cv_header_windows_h+set}" = set; then
23040 echo $ECHO_N "(cached) $ECHO_C" >&6
23041else
23042 ac_cv_header_windows_h=$ac_header_preproc
23043fi
23044echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
23045echo "${ECHO_T}$ac_cv_header_windows_h" >&6
23046
23047fi
23048if test $ac_cv_header_windows_h = yes; then
23049 :
23050else
23051
23052 { { echo "$as_me:$LINENO: error: please set CFLAGS to contain the location of windows.h" >&5
23053echo "$as_me: error: please set CFLAGS to contain the location of windows.h" >&2;}
23054 { (exit 1); exit 1; }; }
23055
23056fi
23057
23058
23059
23060 LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lcomdlg32 -lctl3d32 -ladvapi32 -lwsock32 -lgdi32"
23061
23062 if test "$wxUSE_ACCESSIBILITY" = "yes" ; then
23063 LIBS="$LIBS -loleacc"
23064 fi
23065
23066 case "${host}" in
23067 *-*-cygwin* )
23068 LIBS="$LIBS -lkernel32 -luser32"
23069 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WIN95__"
23070 esac
23071
23072 if test "$wxUSE_ODBC" = "sys" ; then
23073 wxUSE_ODBC = "yes"
23074 fi
23075 if test "$wxUSE_ODBC" = "yes" ; then
23076 LIBS=" -lodbc32 -lole32 -loleaut32 $LIBS"
23077 cat >>confdefs.h <<\_ACEOF
23078#define wxUSE_ODBC 1
23079_ACEOF
23080
23081 fi
23082
23083 RESFLAGS="--include-dir \$(top_srcdir)/include --include-dir \$(top_srcdir)/\$(program_dir) --define __WIN32__ --define __WIN95__ --define __GNUWIN32__"
23084 RESPROGRAMOBJ="\$(PROGRAM)_resources.o"
23085
23086 WIN32INSTALL=win32install
23087fi
23088
23089if test "$wxUSE_GUI" = "yes"; then
23090 USE_GUI=1
23091
23092 GUI_TK_LIBRARY=
23093
23094 WXGTK12=
23095 WXGTK127=
23096 WXGTK20=
23097 WXGPE=
23098
207bc66c
RN
23099 if test "$wxUSE_COCOA" = 1 ; then
23100 if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes"; then
23101 { echo "$as_me:$LINENO: WARNING: Printing not supported under wxCocoa yet, disabled" >&5
23102echo "$as_me: WARNING: Printing not supported under wxCocoa yet, disabled" >&2;}
23103 wxUSE_PRINTING_ARCHITECTURE=no
23104 fi
23105 if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
23106 { echo "$as_me:$LINENO: WARNING: Drag and Drop not supported under wxCocoa yet, disabled" >&5
23107echo "$as_me: WARNING: Drag and Drop not supported under wxCocoa yet, disabled" >&2;}
23108 wxUSE_DRAG_AND_DROP=no
23109 fi
23110 if test "$wxUSE_DRAGIMAGE" = "yes"; then
23111 { echo "$as_me:$LINENO: WARNING: Drag Image and DandD not supported under wxCocoa yet, disabled" >&5
23112echo "$as_me: WARNING: Drag Image and DandD not supported under wxCocoa yet, disabled" >&2;}
23113 wxUSE_DRAGIMAGE=no
23114 fi
23115 fi
23116
a848cd7e
SC
23117 if test "$wxUSE_MSW" = 1 ; then
23118 TOOLKIT=MSW
23119 GUIDIST=MSW_DIST
23120
ceec2216 23121 case "${host}" in
a848cd7e
SC
23122 *-*-mingw32* )
23123 WXCONFIG_LDFLAGS_GUI="$LDFLAGS -Wl,--subsystem,windows -mwindows"
23124 esac
23125 fi
23126
23127 if test "$wxUSE_GTK" = 1; then
23128 echo "$as_me:$LINENO: checking for GTK+ version" >&5
23129echo $ECHO_N "checking for GTK+ version... $ECHO_C" >&6
23130
23131 gtk_version_cached=1
23132 if test "${wx_cv_lib_gtk+set}" = set; then
23133 echo $ECHO_N "(cached) $ECHO_C" >&6
23134else
23135
23136 gtk_version_cached=0
23137 echo "$as_me:$LINENO: result: " >&5
23138echo "${ECHO_T}" >&6
23139
23140 GTK_MODULES=
23141 if test "$wxUSE_THREADS" = "yes"; then
23142 GTK_MODULES=gthread
23143 fi
23144
23145 wx_cv_lib_gtk=
23146 if test "x$wxUSE_GTK2" = "xyes"; then
23147 # Check whether --enable-gtktest or --disable-gtktest was given.
23148if test "${enable_gtktest+set}" = set; then
23149 enableval="$enable_gtktest"
23150
23151else
23152 enable_gtktest=yes
23153fi;
23154
23155 pkg_config_args=gtk+-2.0
23156 for module in . $GTK_MODULES
23157 do
23158 case "$module" in
23159 gthread)
23160 pkg_config_args="$pkg_config_args gthread-2.0"
23161 ;;
23162 esac
23163 done
23164
23165 no_gtk=""
23166
23167 # Extract the first word of "pkg-config", so it can be a program name with args.
23168set dummy pkg-config; ac_word=$2
23169echo "$as_me:$LINENO: checking for $ac_word" >&5
23170echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
23171if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
23172 echo $ECHO_N "(cached) $ECHO_C" >&6
23173else
23174 case $PKG_CONFIG in
23175 [\\/]* | ?:[\\/]*)
23176 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
23177 ;;
23178 *)
23179 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23180for as_dir in $PATH
23181do
23182 IFS=$as_save_IFS
23183 test -z "$as_dir" && as_dir=.
23184 for ac_exec_ext in '' $ac_executable_extensions; do
23185 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23186 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
23187 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23188 break 2
23189 fi
23190done
23191done
23192
23193 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
23194 ;;
23195esac
23196fi
23197PKG_CONFIG=$ac_cv_path_PKG_CONFIG
23198
23199if test -n "$PKG_CONFIG"; then
23200 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
23201echo "${ECHO_T}$PKG_CONFIG" >&6
23202else
23203 echo "$as_me:$LINENO: result: no" >&5
23204echo "${ECHO_T}no" >&6
23205fi
23206
23207
23208 if test x$PKG_CONFIG != xno ; then
23209 if pkg-config --atleast-pkgconfig-version 0.7 ; then
23210 :
23211 else
c2218763 23212 echo "*** pkg-config too old; version 0.7 or better required."
a848cd7e
SC
23213 no_gtk=yes
23214 PKG_CONFIG=no
23215 fi
23216 else
23217 no_gtk=yes
23218 fi
23219
23220 min_gtk_version=2.0.0
23221 echo "$as_me:$LINENO: checking for GTK+ - version >= $min_gtk_version" >&5
23222echo $ECHO_N "checking for GTK+ - version >= $min_gtk_version... $ECHO_C" >&6
23223
23224 if test x$PKG_CONFIG != xno ; then
23225 ## don't try to run the test against uninstalled libtool libs
23226 if $PKG_CONFIG --uninstalled $pkg_config_args; then
23227 echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH"
23228 enable_gtktest=no
23229 fi
23230
23231 if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then
23232 :
23233 else
23234 no_gtk=yes
23235 fi
23236 fi
23237
23238 if test x"$no_gtk" = x ; then
23239 GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags`
23240 GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs`
23241 gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
23242 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
23243 gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
23244 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
23245 gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
23246 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
23247 if test "x$enable_gtktest" = "xyes" ; then
23248 ac_save_CFLAGS="$CFLAGS"
23249 ac_save_LIBS="$LIBS"
23250 CFLAGS="$CFLAGS $GTK_CFLAGS"
23251 LIBS="$GTK_LIBS $LIBS"
23252 rm -f conf.gtktest
23253 if test "$cross_compiling" = yes; then
23254 echo $ac_n "cross compiling; assumed OK... $ac_c"
23255else
23256 cat >conftest.$ac_ext <<_ACEOF
23257/* confdefs.h. */
23258_ACEOF
23259cat confdefs.h >>conftest.$ac_ext
23260cat >>conftest.$ac_ext <<_ACEOF
23261/* end confdefs.h. */
23262
23263#include <gtk/gtk.h>
23264#include <stdio.h>
23265#include <stdlib.h>
23266
23267int
23268main ()
23269{
23270 int major, minor, micro;
23271 char *tmp_version;
23272
23273 system ("touch conf.gtktest");
23274
23275 /* HP/UX 9 (%@#!) writes to sscanf strings */
23276 tmp_version = g_strdup("$min_gtk_version");
23277 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
23278 printf("%s, bad version string\n", "$min_gtk_version");
23279 exit(1);
23280 }
23281
23282 if ((gtk_major_version != $gtk_config_major_version) ||
23283 (gtk_minor_version != $gtk_config_minor_version) ||
23284 (gtk_micro_version != $gtk_config_micro_version))
23285 {
23286 printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
23287 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
23288 gtk_major_version, gtk_minor_version, gtk_micro_version);
23289 printf ("*** was found! If pkg-config was correct, then it is best\n");
23290 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
23291 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
23292 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
23293 printf("*** required on your system.\n");
23294 printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
23295 printf("*** to point to the correct configuration files\n");
23296 }
23297 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
23298 (gtk_minor_version != GTK_MINOR_VERSION) ||
23299 (gtk_micro_version != GTK_MICRO_VERSION))
23300 {
23301 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
23302 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
23303 printf("*** library (version %d.%d.%d)\n",
23304 gtk_major_version, gtk_minor_version, gtk_micro_version);
23305 }
23306 else
23307 {
23308 if ((gtk_major_version > major) ||
23309 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
23310 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
23311 {
23312 return 0;
23313 }
23314 else
23315 {
23316 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
23317 gtk_major_version, gtk_minor_version, gtk_micro_version);
23318 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
23319 major, minor, micro);
23320 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
23321 printf("***\n");
23322 printf("*** If you have already installed a sufficiently new version, this error\n");
23323 printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
23324 printf("*** being found. The easiest way to fix this is to remove the old version\n");
23325 printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n");
23326 printf("*** correct copy of pkg-config. (In this case, you will have to\n");
23327 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
23328 printf("*** so that the correct libraries are found at run-time))\n");
23329 }
23330 }
23331 return 1;
23332}
23333
23334_ACEOF
23335rm -f conftest$ac_exeext
23336if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23337 (eval $ac_link) 2>&5
23338 ac_status=$?
23339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23340 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23342 (eval $ac_try) 2>&5
23343 ac_status=$?
23344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23345 (exit $ac_status); }; }; then
23346 :
23347else
23348 echo "$as_me: program exited with status $ac_status" >&5
23349echo "$as_me: failed program was:" >&5
23350sed 's/^/| /' conftest.$ac_ext >&5
23351
23352( exit $ac_status )
23353no_gtk=yes
23354fi
ac1cb8d3 23355rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
23356fi
23357 CFLAGS="$ac_save_CFLAGS"
23358 LIBS="$ac_save_LIBS"
23359 fi
23360 fi
23361 if test "x$no_gtk" = x ; then
23362 echo "$as_me:$LINENO: result: yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&5
23363echo "${ECHO_T}yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&6
23364 wx_cv_lib_gtk=2.0
23365 else
23366 echo "$as_me:$LINENO: result: no" >&5
23367echo "${ECHO_T}no" >&6
23368 if test "$PKG_CONFIG" = "no" ; then
23369 echo "*** A new enough version of pkg-config was not found."
23370 echo "*** See http://pkgconfig.sourceforge.net"
23371 else
23372 if test -f conf.gtktest ; then
23373 :
23374 else
23375 echo "*** Could not run GTK+ test program, checking why..."
23376 ac_save_CFLAGS="$CFLAGS"
23377 ac_save_LIBS="$LIBS"
23378 CFLAGS="$CFLAGS $GTK_CFLAGS"
23379 LIBS="$LIBS $GTK_LIBS"
23380 cat >conftest.$ac_ext <<_ACEOF
23381/* confdefs.h. */
23382_ACEOF
23383cat confdefs.h >>conftest.$ac_ext
23384cat >>conftest.$ac_ext <<_ACEOF
23385/* end confdefs.h. */
23386
23387#include <gtk/gtk.h>
23388#include <stdio.h>
23389
23390int
23391main ()
23392{
23393 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
23394 ;
23395 return 0;
23396}
23397_ACEOF
23398rm -f conftest.$ac_objext conftest$ac_exeext
23399if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 23400 (eval $ac_link) 2>conftest.er1
a848cd7e 23401 ac_status=$?
ac1cb8d3
VS
23402 grep -v '^ *+' conftest.er1 >conftest.err
23403 rm -f conftest.er1
23404 cat conftest.err >&5
a848cd7e
SC
23405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23406 (exit $ac_status); } &&
89be85c2
VS
23407 { ac_try='test -z "$ac_c_werror_flag"
23408 || test ! -s conftest.err'
ac1cb8d3
VS
23409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23410 (eval $ac_try) 2>&5
23411 ac_status=$?
23412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23413 (exit $ac_status); }; } &&
23414 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
23415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23416 (eval $ac_try) 2>&5
23417 ac_status=$?
23418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23419 (exit $ac_status); }; }; then
23420 echo "*** The test program compiled, but did not run. This usually means"
23421 echo "*** that the run-time linker is not finding GTK+ or finding the wrong"
23422 echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your"
23423 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
23424 echo "*** to the installed location Also, make sure you have run ldconfig if that"
23425 echo "*** is required on your system"
23426 echo "***"
23427 echo "*** If you have an old version installed, it is best to remove it, although"
23428 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
23429else
23430 echo "$as_me: failed program was:" >&5
23431sed 's/^/| /' conftest.$ac_ext >&5
23432
23433 echo "*** The test program failed to compile or link. See the file config.log for the"
23434 echo "*** exact error that occured. This usually means GTK+ is incorrectly installed."
23435fi
ac1cb8d3
VS
23436rm -f conftest.err conftest.$ac_objext \
23437 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
23438 CFLAGS="$ac_save_CFLAGS"
23439 LIBS="$ac_save_LIBS"
23440 fi
23441 fi
23442 GTK_CFLAGS=""
23443 GTK_LIBS=""
23444 :
23445 fi
23446
23447
23448 rm -f conf.gtktest
23449
23450 else
23451
23452# Check whether --with-gtk-prefix or --without-gtk-prefix was given.
23453if test "${with_gtk_prefix+set}" = set; then
23454 withval="$with_gtk_prefix"
23455 gtk_config_prefix="$withval"
23456else
23457 gtk_config_prefix=""
23458fi;
23459
23460# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
23461if test "${with_gtk_exec_prefix+set}" = set; then
23462 withval="$with_gtk_exec_prefix"
23463 gtk_config_exec_prefix="$withval"
23464else
23465 gtk_config_exec_prefix=""
23466fi;
23467# Check whether --enable-gtktest or --disable-gtktest was given.
23468if test "${enable_gtktest+set}" = set; then
23469 enableval="$enable_gtktest"
23470
23471else
23472 enable_gtktest=yes
23473fi;
23474
23475 for module in . $GTK_MODULES
23476 do
23477 case "$module" in
23478 gthread)
23479 gtk_config_args="$gtk_config_args gthread"
23480 ;;
23481 esac
23482 done
23483
23484 if test x$gtk_config_exec_prefix != x ; then
23485 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
23486 if test x${GTK_CONFIG+set} != xset ; then
23487 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
23488 fi
23489 fi
23490 if test x$gtk_config_prefix != x ; then
23491 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
23492 if test x${GTK_CONFIG+set} != xset ; then
23493 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
23494 fi
23495 fi
23496
23497 # Extract the first word of "gtk-config", so it can be a program name with args.
23498set dummy gtk-config; ac_word=$2
23499echo "$as_me:$LINENO: checking for $ac_word" >&5
23500echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
23501if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
23502 echo $ECHO_N "(cached) $ECHO_C" >&6
23503else
23504 case $GTK_CONFIG in
23505 [\\/]* | ?:[\\/]*)
23506 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
23507 ;;
23508 *)
23509 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23510for as_dir in $PATH
23511do
23512 IFS=$as_save_IFS
23513 test -z "$as_dir" && as_dir=.
23514 for ac_exec_ext in '' $ac_executable_extensions; do
23515 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23516 ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
23517 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23518 break 2
23519 fi
23520done
23521done
23522
23523 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
23524 ;;
23525esac
23526fi
23527GTK_CONFIG=$ac_cv_path_GTK_CONFIG
23528
23529if test -n "$GTK_CONFIG"; then
23530 echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
23531echo "${ECHO_T}$GTK_CONFIG" >&6
23532else
23533 echo "$as_me:$LINENO: result: no" >&5
23534echo "${ECHO_T}no" >&6
23535fi
23536
23537 min_gtk_version=1.2.7
23538 echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
23539echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6
23540 no_gtk=""
23541 if test "$GTK_CONFIG" = "no" ; then
23542 no_gtk=yes
23543 else
23544 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
23545 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
23546 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
23547 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
23548 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
23549 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
23550 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
23551 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
23552 if test "x$enable_gtktest" = "xyes" ; then
23553 ac_save_CFLAGS="$CFLAGS"
23554 ac_save_LIBS="$LIBS"
23555 CFLAGS="$CFLAGS $GTK_CFLAGS"
23556 LIBS="$GTK_LIBS $LIBS"
23557 rm -f conf.gtktest
23558 if test "$cross_compiling" = yes; then
23559 echo $ac_n "cross compiling; assumed OK... $ac_c"
23560else
23561 cat >conftest.$ac_ext <<_ACEOF
23562/* confdefs.h. */
23563_ACEOF
23564cat confdefs.h >>conftest.$ac_ext
23565cat >>conftest.$ac_ext <<_ACEOF
23566/* end confdefs.h. */
23567
23568#include <gtk/gtk.h>
23569#include <stdio.h>
23570#include <stdlib.h>
23571
23572int
23573main ()
23574{
23575 int major, minor, micro;
23576 char *tmp_version;
23577
23578 system ("touch conf.gtktest");
23579
23580 /* HP/UX 9 (%@#!) writes to sscanf strings */
23581 tmp_version = g_strdup("$min_gtk_version");
23582 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
23583 printf("%s, bad version string\n", "$min_gtk_version");
23584 exit(1);
23585 }
23586
23587 if ((gtk_major_version != $gtk_config_major_version) ||
23588 (gtk_minor_version != $gtk_config_minor_version) ||
23589 (gtk_micro_version != $gtk_config_micro_version))
23590 {
23591 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
23592 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
23593 gtk_major_version, gtk_minor_version, gtk_micro_version);
23594 printf ("*** was found! If gtk-config was correct, then it is best\n");
23595 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
23596 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
23597 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
23598 printf("*** required on your system.\n");
23599 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
23600 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
23601 printf("*** before re-running configure\n");
23602 }
23603#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
23604 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
23605 (gtk_minor_version != GTK_MINOR_VERSION) ||
23606 (gtk_micro_version != GTK_MICRO_VERSION))
23607 {
23608 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
23609 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
23610 printf("*** library (version %d.%d.%d)\n",
23611 gtk_major_version, gtk_minor_version, gtk_micro_version);
23612 }
23613#endif /* defined (GTK_MAJOR_VERSION) ... */
23614 else
23615 {
23616 if ((gtk_major_version > major) ||
23617 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
23618 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
23619 {
23620 return 0;
23621 }
23622 else
23623 {
23624 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
23625 gtk_major_version, gtk_minor_version, gtk_micro_version);
23626 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
23627 major, minor, micro);
23628 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
23629 printf("***\n");
23630 printf("*** If you have already installed a sufficiently new version, this error\n");
23631 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
23632 printf("*** being found. The easiest way to fix this is to remove the old version\n");
23633 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
23634 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
23635 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
23636 printf("*** so that the correct libraries are found at run-time))\n");
23637 }
23638 }
23639 return 1;
23640}
23641
23642_ACEOF
23643rm -f conftest$ac_exeext
23644if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23645 (eval $ac_link) 2>&5
23646 ac_status=$?
23647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23648 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23650 (eval $ac_try) 2>&5
23651 ac_status=$?
23652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23653 (exit $ac_status); }; }; then
23654 :
23655else
23656 echo "$as_me: program exited with status $ac_status" >&5
23657echo "$as_me: failed program was:" >&5
23658sed 's/^/| /' conftest.$ac_ext >&5
23659
23660( exit $ac_status )
23661no_gtk=yes
23662fi
ac1cb8d3 23663rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
23664fi
23665 CFLAGS="$ac_save_CFLAGS"
23666 LIBS="$ac_save_LIBS"
23667 fi
23668 fi
23669 if test "x$no_gtk" = x ; then
23670 echo "$as_me:$LINENO: result: yes" >&5
23671echo "${ECHO_T}yes" >&6
23672 wx_cv_lib_gtk=1.2.7
23673 else
23674 echo "$as_me:$LINENO: result: no" >&5
23675echo "${ECHO_T}no" >&6
23676 if test "$GTK_CONFIG" = "no" ; then
23677 echo "*** The gtk-config script installed by GTK could not be found"
23678 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
23679 echo "*** your path, or set the GTK_CONFIG environment variable to the"
23680 echo "*** full path to gtk-config."
23681 else
23682 if test -f conf.gtktest ; then
23683 :
23684 else
23685 echo "*** Could not run GTK test program, checking why..."
23686 CFLAGS="$CFLAGS $GTK_CFLAGS"
23687 LIBS="$LIBS $GTK_LIBS"
23688 cat >conftest.$ac_ext <<_ACEOF
23689/* confdefs.h. */
23690_ACEOF
23691cat confdefs.h >>conftest.$ac_ext
23692cat >>conftest.$ac_ext <<_ACEOF
23693/* end confdefs.h. */
23694
23695#include <gtk/gtk.h>
23696#include <stdio.h>
23697
23698int
23699main ()
23700{
23701 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
23702 ;
23703 return 0;
23704}
23705_ACEOF
23706rm -f conftest.$ac_objext conftest$ac_exeext
23707if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 23708 (eval $ac_link) 2>conftest.er1
a848cd7e 23709 ac_status=$?
ac1cb8d3
VS
23710 grep -v '^ *+' conftest.er1 >conftest.err
23711 rm -f conftest.er1
23712 cat conftest.err >&5
a848cd7e
SC
23713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23714 (exit $ac_status); } &&
89be85c2
VS
23715 { ac_try='test -z "$ac_c_werror_flag"
23716 || test ! -s conftest.err'
ac1cb8d3
VS
23717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23718 (eval $ac_try) 2>&5
23719 ac_status=$?
23720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23721 (exit $ac_status); }; } &&
23722 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
23723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23724 (eval $ac_try) 2>&5
23725 ac_status=$?
23726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23727 (exit $ac_status); }; }; then
23728 echo "*** The test program compiled, but did not run. This usually means"
23729 echo "*** that the run-time linker is not finding GTK or finding the wrong"
23730 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
23731 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
23732 echo "*** to the installed location Also, make sure you have run ldconfig if that"
23733 echo "*** is required on your system"
23734 echo "***"
23735 echo "*** If you have an old version installed, it is best to remove it, although"
23736 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
23737 echo "***"
23738 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
23739 echo "*** came with the system with the command"
23740 echo "***"
23741 echo "*** rpm --erase --nodeps gtk gtk-devel"
23742else
23743 echo "$as_me: failed program was:" >&5
23744sed 's/^/| /' conftest.$ac_ext >&5
23745
23746 echo "*** The test program failed to compile or link. See the file config.log for the"
23747 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
23748 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
23749 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
23750fi
ac1cb8d3
VS
23751rm -f conftest.err conftest.$ac_objext \
23752 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
23753 CFLAGS="$ac_save_CFLAGS"
23754 LIBS="$ac_save_LIBS"
23755 fi
23756 fi
23757 GTK_CFLAGS=""
23758 GTK_LIBS=""
23759 :
23760 fi
23761
23762
23763 rm -f conf.gtktest
23764
23765
23766 if test -z "$wx_cv_lib_gtk"; then
23767
23768# Check whether --with-gtk-prefix or --without-gtk-prefix was given.
23769if test "${with_gtk_prefix+set}" = set; then
23770 withval="$with_gtk_prefix"
23771 gtk_config_prefix="$withval"
23772else
23773 gtk_config_prefix=""
23774fi;
23775
23776# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
23777if test "${with_gtk_exec_prefix+set}" = set; then
23778 withval="$with_gtk_exec_prefix"
23779 gtk_config_exec_prefix="$withval"
23780else
23781 gtk_config_exec_prefix=""
23782fi;
23783# Check whether --enable-gtktest or --disable-gtktest was given.
23784if test "${enable_gtktest+set}" = set; then
23785 enableval="$enable_gtktest"
23786
23787else
23788 enable_gtktest=yes
23789fi;
23790
23791 for module in . $GTK_MODULES
23792 do
23793 case "$module" in
23794 gthread)
23795 gtk_config_args="$gtk_config_args gthread"
23796 ;;
23797 esac
23798 done
23799
23800 if test x$gtk_config_exec_prefix != x ; then
23801 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
23802 if test x${GTK_CONFIG+set} != xset ; then
23803 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
23804 fi
23805 fi
23806 if test x$gtk_config_prefix != x ; then
23807 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
23808 if test x${GTK_CONFIG+set} != xset ; then
23809 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
23810 fi
23811 fi
23812
23813 # Extract the first word of "gtk-config", so it can be a program name with args.
23814set dummy gtk-config; ac_word=$2
23815echo "$as_me:$LINENO: checking for $ac_word" >&5
23816echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
23817if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
23818 echo $ECHO_N "(cached) $ECHO_C" >&6
23819else
23820 case $GTK_CONFIG in
23821 [\\/]* | ?:[\\/]*)
23822 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
23823 ;;
23824 *)
23825 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23826for as_dir in $PATH
23827do
23828 IFS=$as_save_IFS
23829 test -z "$as_dir" && as_dir=.
23830 for ac_exec_ext in '' $ac_executable_extensions; do
23831 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23832 ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
23833 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23834 break 2
23835 fi
23836done
23837done
23838
23839 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
23840 ;;
23841esac
23842fi
23843GTK_CONFIG=$ac_cv_path_GTK_CONFIG
23844
23845if test -n "$GTK_CONFIG"; then
23846 echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
23847echo "${ECHO_T}$GTK_CONFIG" >&6
23848else
23849 echo "$as_me:$LINENO: result: no" >&5
23850echo "${ECHO_T}no" >&6
23851fi
23852
23853 min_gtk_version=1.2.3
23854 echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
23855echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6
23856 no_gtk=""
23857 if test "$GTK_CONFIG" = "no" ; then
23858 no_gtk=yes
23859 else
23860 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
23861 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
23862 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
23863 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
23864 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
23865 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
23866 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
23867 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
23868 if test "x$enable_gtktest" = "xyes" ; then
23869 ac_save_CFLAGS="$CFLAGS"
23870 ac_save_LIBS="$LIBS"
23871 CFLAGS="$CFLAGS $GTK_CFLAGS"
23872 LIBS="$GTK_LIBS $LIBS"
23873 rm -f conf.gtktest
23874 if test "$cross_compiling" = yes; then
23875 echo $ac_n "cross compiling; assumed OK... $ac_c"
23876else
23877 cat >conftest.$ac_ext <<_ACEOF
23878/* confdefs.h. */
23879_ACEOF
23880cat confdefs.h >>conftest.$ac_ext
23881cat >>conftest.$ac_ext <<_ACEOF
23882/* end confdefs.h. */
23883
23884#include <gtk/gtk.h>
23885#include <stdio.h>
23886#include <stdlib.h>
23887
23888int
23889main ()
23890{
23891 int major, minor, micro;
23892 char *tmp_version;
23893
23894 system ("touch conf.gtktest");
23895
23896 /* HP/UX 9 (%@#!) writes to sscanf strings */
23897 tmp_version = g_strdup("$min_gtk_version");
23898 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
23899 printf("%s, bad version string\n", "$min_gtk_version");
23900 exit(1);
23901 }
23902
23903 if ((gtk_major_version != $gtk_config_major_version) ||
23904 (gtk_minor_version != $gtk_config_minor_version) ||
23905 (gtk_micro_version != $gtk_config_micro_version))
23906 {
23907 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
23908 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
23909 gtk_major_version, gtk_minor_version, gtk_micro_version);
23910 printf ("*** was found! If gtk-config was correct, then it is best\n");
23911 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
23912 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
23913 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
23914 printf("*** required on your system.\n");
23915 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
23916 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
23917 printf("*** before re-running configure\n");
23918 }
23919#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
23920 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
23921 (gtk_minor_version != GTK_MINOR_VERSION) ||
23922 (gtk_micro_version != GTK_MICRO_VERSION))
23923 {
23924 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
23925 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
23926 printf("*** library (version %d.%d.%d)\n",
23927 gtk_major_version, gtk_minor_version, gtk_micro_version);
23928 }
23929#endif /* defined (GTK_MAJOR_VERSION) ... */
23930 else
23931 {
23932 if ((gtk_major_version > major) ||
23933 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
23934 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
23935 {
23936 return 0;
23937 }
23938 else
23939 {
23940 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
23941 gtk_major_version, gtk_minor_version, gtk_micro_version);
23942 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
23943 major, minor, micro);
23944 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
23945 printf("***\n");
23946 printf("*** If you have already installed a sufficiently new version, this error\n");
23947 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
23948 printf("*** being found. The easiest way to fix this is to remove the old version\n");
23949 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
23950 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
23951 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
23952 printf("*** so that the correct libraries are found at run-time))\n");
23953 }
23954 }
23955 return 1;
23956}
23957
23958_ACEOF
23959rm -f conftest$ac_exeext
23960if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23961 (eval $ac_link) 2>&5
23962 ac_status=$?
23963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23964 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23966 (eval $ac_try) 2>&5
23967 ac_status=$?
23968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23969 (exit $ac_status); }; }; then
23970 :
23971else
23972 echo "$as_me: program exited with status $ac_status" >&5
23973echo "$as_me: failed program was:" >&5
23974sed 's/^/| /' conftest.$ac_ext >&5
23975
23976( exit $ac_status )
23977no_gtk=yes
23978fi
ac1cb8d3 23979rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
23980fi
23981 CFLAGS="$ac_save_CFLAGS"
23982 LIBS="$ac_save_LIBS"
23983 fi
23984 fi
23985 if test "x$no_gtk" = x ; then
23986 echo "$as_me:$LINENO: result: yes" >&5
23987echo "${ECHO_T}yes" >&6
23988 wx_cv_lib_gtk=1.2.3
23989 else
23990 echo "$as_me:$LINENO: result: no" >&5
23991echo "${ECHO_T}no" >&6
23992 if test "$GTK_CONFIG" = "no" ; then
23993 echo "*** The gtk-config script installed by GTK could not be found"
23994 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
23995 echo "*** your path, or set the GTK_CONFIG environment variable to the"
23996 echo "*** full path to gtk-config."
23997 else
23998 if test -f conf.gtktest ; then
23999 :
24000 else
24001 echo "*** Could not run GTK test program, checking why..."
24002 CFLAGS="$CFLAGS $GTK_CFLAGS"
24003 LIBS="$LIBS $GTK_LIBS"
24004 cat >conftest.$ac_ext <<_ACEOF
24005/* confdefs.h. */
24006_ACEOF
24007cat confdefs.h >>conftest.$ac_ext
24008cat >>conftest.$ac_ext <<_ACEOF
24009/* end confdefs.h. */
24010
24011#include <gtk/gtk.h>
24012#include <stdio.h>
24013
24014int
24015main ()
24016{
24017 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
24018 ;
24019 return 0;
24020}
24021_ACEOF
24022rm -f conftest.$ac_objext conftest$ac_exeext
24023if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24024 (eval $ac_link) 2>conftest.er1
a848cd7e 24025 ac_status=$?
ac1cb8d3
VS
24026 grep -v '^ *+' conftest.er1 >conftest.err
24027 rm -f conftest.er1
24028 cat conftest.err >&5
a848cd7e
SC
24029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24030 (exit $ac_status); } &&
89be85c2
VS
24031 { ac_try='test -z "$ac_c_werror_flag"
24032 || test ! -s conftest.err'
ac1cb8d3
VS
24033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24034 (eval $ac_try) 2>&5
24035 ac_status=$?
24036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24037 (exit $ac_status); }; } &&
24038 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24040 (eval $ac_try) 2>&5
24041 ac_status=$?
24042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24043 (exit $ac_status); }; }; then
24044 echo "*** The test program compiled, but did not run. This usually means"
24045 echo "*** that the run-time linker is not finding GTK or finding the wrong"
24046 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
24047 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
24048 echo "*** to the installed location Also, make sure you have run ldconfig if that"
24049 echo "*** is required on your system"
24050 echo "***"
24051 echo "*** If you have an old version installed, it is best to remove it, although"
24052 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
24053 echo "***"
24054 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
24055 echo "*** came with the system with the command"
24056 echo "***"
24057 echo "*** rpm --erase --nodeps gtk gtk-devel"
24058else
24059 echo "$as_me: failed program was:" >&5
24060sed 's/^/| /' conftest.$ac_ext >&5
24061
24062 echo "*** The test program failed to compile or link. See the file config.log for the"
24063 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
24064 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
24065 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
24066fi
ac1cb8d3
VS
24067rm -f conftest.err conftest.$ac_objext \
24068 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24069 CFLAGS="$ac_save_CFLAGS"
24070 LIBS="$ac_save_LIBS"
24071 fi
24072 fi
24073 GTK_CFLAGS=""
24074 GTK_LIBS=""
24075 :
24076 fi
24077
24078
24079 rm -f conf.gtktest
24080
24081 fi
24082 fi
24083
24084 if test -z "$wx_cv_lib_gtk"; then
24085 wx_cv_lib_gtk=none
24086 else
24087 wx_cv_cflags_gtk=$GTK_CFLAGS
24088 wx_cv_libs_gtk=$GTK_LIBS
24089 fi
24090
24091
24092fi
24093
24094
24095 if test "$gtk_version_cached" = 1; then
24096 echo "$as_me:$LINENO: result: $wx_cv_lib_gtk" >&5
24097echo "${ECHO_T}$wx_cv_lib_gtk" >&6
24098 fi
24099
24100 case "$wx_cv_lib_gtk" in
24101 2.0) WXGTK20=1
24102 TOOLKIT_VERSION=2
24103 ;;
24104 1.2.7) WXGTK127=1
24105 WXGTK12=1
24106 ;;
24107 1.2.3) WXGTK12=1
24108 ;;
24109 *) { { echo "$as_me:$LINENO: error:
24110Please check that gtk-config is in path, the directory
24111where GTK+ libraries are installed (returned by
24112'gtk-config --libs' command) is in LD_LIBRARY_PATH or
24113equivalent variable and GTK+ is version 1.2.3 or above.
24114 " >&5
24115echo "$as_me: error:
24116Please check that gtk-config is in path, the directory
24117where GTK+ libraries are installed (returned by
24118'gtk-config --libs' command) is in LD_LIBRARY_PATH or
24119equivalent variable and GTK+ is version 1.2.3 or above.
24120 " >&2;}
24121 { (exit 1); exit 1; }; }
24122 ;;
24123 esac
24124
24125 if test "$WXGTK20" = 1; then
304205f1
VS
24126 save_CFLAGS="$CFLAGS"
24127 save_LIBS="$LIBS"
24128 CFLAGS="$CFLAGS $GTK_CFLAGS"
24129 LIBS="$LIBS $GTK_LIBS"
24130
9755e73b 24131
304205f1
VS
24132for ac_func in pango_font_family_is_monospace
24133do
24134as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24135echo "$as_me:$LINENO: checking for $ac_func" >&5
24136echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24137if eval "test \"\${$as_ac_var+set}\" = set"; then
24138 echo $ECHO_N "(cached) $ECHO_C" >&6
24139else
24140 cat >conftest.$ac_ext <<_ACEOF
24141/* confdefs.h. */
24142_ACEOF
24143cat confdefs.h >>conftest.$ac_ext
24144cat >>conftest.$ac_ext <<_ACEOF
24145/* end confdefs.h. */
24146/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24147 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24148#define $ac_func innocuous_$ac_func
24149
24150/* System header to define __stub macros and hopefully few prototypes,
24151 which can conflict with char $ac_func (); below.
24152 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24153 <limits.h> exists even on freestanding compilers. */
24154
24155#ifdef __STDC__
24156# include <limits.h>
24157#else
24158# include <assert.h>
24159#endif
24160
24161#undef $ac_func
24162
24163/* Override any gcc2 internal prototype to avoid an error. */
24164#ifdef __cplusplus
24165extern "C"
24166{
24167#endif
24168/* We use char because int might match the return type of a gcc2
24169 builtin and then its argument prototype would still apply. */
24170char $ac_func ();
24171/* The GNU C library defines this for functions which it implements
24172 to always fail with ENOSYS. Some functions are actually named
24173 something starting with __ and the normal name is an alias. */
24174#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24175choke me
24176#else
24177char (*f) () = $ac_func;
24178#endif
24179#ifdef __cplusplus
24180}
24181#endif
24182
24183int
24184main ()
24185{
24186return f != $ac_func;
24187 ;
24188 return 0;
24189}
24190_ACEOF
24191rm -f conftest.$ac_objext conftest$ac_exeext
24192if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24193 (eval $ac_link) 2>conftest.er1
24194 ac_status=$?
24195 grep -v '^ *+' conftest.er1 >conftest.err
24196 rm -f conftest.er1
24197 cat conftest.err >&5
24198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24199 (exit $ac_status); } &&
89be85c2
VS
24200 { ac_try='test -z "$ac_c_werror_flag"
24201 || test ! -s conftest.err'
304205f1
VS
24202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24203 (eval $ac_try) 2>&5
24204 ac_status=$?
24205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24206 (exit $ac_status); }; } &&
24207 { ac_try='test -s conftest$ac_exeext'
24208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24209 (eval $ac_try) 2>&5
24210 ac_status=$?
24211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24212 (exit $ac_status); }; }; then
24213 eval "$as_ac_var=yes"
24214else
24215 echo "$as_me: failed program was:" >&5
24216sed 's/^/| /' conftest.$ac_ext >&5
24217
24218eval "$as_ac_var=no"
24219fi
24220rm -f conftest.err conftest.$ac_objext \
24221 conftest$ac_exeext conftest.$ac_ext
24222fi
24223echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24224echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24225if test `eval echo '${'$as_ac_var'}'` = yes; then
24226 cat >>confdefs.h <<_ACEOF
24227#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24228_ACEOF
24229
24230fi
24231done
24232
9755e73b
VS
24233
24234 echo "$as_me:$LINENO: checking if GTK+ is version >= 2.4" >&5
24235echo $ECHO_N "checking if GTK+ is version >= 2.4... $ECHO_C" >&6
24236 cat >conftest.$ac_ext <<_ACEOF
24237/* confdefs.h. */
24238_ACEOF
24239cat confdefs.h >>conftest.$ac_ext
24240cat >>conftest.$ac_ext <<_ACEOF
24241/* end confdefs.h. */
24242
24243 #include <gtk/gtk.h>
24244
24245int
24246main ()
24247{
24248
24249 #if !GTK_CHECK_VERSION(2,4,0)
24250 #error "Not GTK+ 2.4"
24251 #endif
24252
24253 ;
24254 return 0;
24255}
24256_ACEOF
24257rm -f conftest.$ac_objext
24258if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24259 (eval $ac_compile) 2>conftest.er1
24260 ac_status=$?
24261 grep -v '^ *+' conftest.er1 >conftest.err
24262 rm -f conftest.er1
24263 cat conftest.err >&5
24264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24265 (exit $ac_status); } &&
89be85c2
VS
24266 { ac_try='test -z "$ac_c_werror_flag"
24267 || test ! -s conftest.err'
9755e73b
VS
24268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24269 (eval $ac_try) 2>&5
24270 ac_status=$?
24271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24272 (exit $ac_status); }; } &&
24273 { ac_try='test -s conftest.$ac_objext'
24274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24275 (eval $ac_try) 2>&5
24276 ac_status=$?
24277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24278 (exit $ac_status); }; }; then
24279
24280 cat >>confdefs.h <<\_ACEOF
24281#define __WXGTK24__ 1
24282_ACEOF
24283
24284 echo "$as_me:$LINENO: result: yes" >&5
24285echo "${ECHO_T}yes" >&6
24286
24287else
24288 echo "$as_me: failed program was:" >&5
24289sed 's/^/| /' conftest.$ac_ext >&5
24290
24291
24292 echo "$as_me:$LINENO: result: no" >&5
24293echo "${ECHO_T}no" >&6
24294
24295fi
24296rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24297
304205f1
VS
24298 CFLAGS="$save_CFLAGS"
24299 LIBS="$save_LIBS"
a848cd7e
SC
24300 else
24301 if test "$wxUSE_UNICODE" = "yes"; then
24302 { echo "$as_me:$LINENO: WARNING: Unicode configuration not supported with GTK+ 1.x" >&5
24303echo "$as_me: WARNING: Unicode configuration not supported with GTK+ 1.x" >&2;}
24304 wxUSE_UNICODE=no
24305 fi
24306 fi
24307
24308 if test "$USE_DARWIN" != 1; then
24309
24310for ac_func in poll
24311do
24312as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24313echo "$as_me:$LINENO: checking for $ac_func" >&5
24314echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24315if eval "test \"\${$as_ac_var+set}\" = set"; then
24316 echo $ECHO_N "(cached) $ECHO_C" >&6
24317else
24318 cat >conftest.$ac_ext <<_ACEOF
24319/* confdefs.h. */
24320_ACEOF
24321cat confdefs.h >>conftest.$ac_ext
24322cat >>conftest.$ac_ext <<_ACEOF
24323/* end confdefs.h. */
ac1cb8d3
VS
24324/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24325 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24326#define $ac_func innocuous_$ac_func
24327
a848cd7e
SC
24328/* System header to define __stub macros and hopefully few prototypes,
24329 which can conflict with char $ac_func (); below.
24330 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24331 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 24332
a848cd7e
SC
24333#ifdef __STDC__
24334# include <limits.h>
24335#else
24336# include <assert.h>
24337#endif
ac1cb8d3
VS
24338
24339#undef $ac_func
24340
a848cd7e
SC
24341/* Override any gcc2 internal prototype to avoid an error. */
24342#ifdef __cplusplus
24343extern "C"
24344{
24345#endif
24346/* We use char because int might match the return type of a gcc2
24347 builtin and then its argument prototype would still apply. */
24348char $ac_func ();
24349/* The GNU C library defines this for functions which it implements
24350 to always fail with ENOSYS. Some functions are actually named
24351 something starting with __ and the normal name is an alias. */
24352#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24353choke me
24354#else
24355char (*f) () = $ac_func;
24356#endif
24357#ifdef __cplusplus
24358}
24359#endif
24360
24361int
24362main ()
24363{
24364return f != $ac_func;
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); } &&
89be85c2
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 eval "$as_ac_var=yes"
24392else
24393 echo "$as_me: failed program was:" >&5
24394sed 's/^/| /' conftest.$ac_ext >&5
24395
24396eval "$as_ac_var=no"
24397fi
ac1cb8d3
VS
24398rm -f conftest.err conftest.$ac_objext \
24399 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24400fi
24401echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24402echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24403if test `eval echo '${'$as_ac_var'}'` = yes; then
24404 cat >>confdefs.h <<_ACEOF
24405#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24406_ACEOF
24407
24408fi
24409done
24410
24411 fi
24412
24413 TOOLKIT_INCLUDE="$wx_cv_cflags_gtk"
24414 GUI_TK_LIBRARY="$wx_cv_libs_gtk $GUI_TK_LIBRARY"
24415
24416 AFMINSTALL=afminstall
24417 TOOLKIT=GTK
24418 GUIDIST=GTK_DIST
24419
24420 echo "$as_me:$LINENO: checking for gdk_im_open in -lgdk" >&5
24421echo $ECHO_N "checking for gdk_im_open in -lgdk... $ECHO_C" >&6
24422if test "${ac_cv_lib_gdk_gdk_im_open+set}" = set; then
24423 echo $ECHO_N "(cached) $ECHO_C" >&6
24424else
24425 ac_check_lib_save_LIBS=$LIBS
24426LIBS="-lgdk $LIBS"
24427cat >conftest.$ac_ext <<_ACEOF
24428/* confdefs.h. */
24429_ACEOF
24430cat confdefs.h >>conftest.$ac_ext
24431cat >>conftest.$ac_ext <<_ACEOF
24432/* end confdefs.h. */
24433
24434/* Override any gcc2 internal prototype to avoid an error. */
24435#ifdef __cplusplus
24436extern "C"
24437#endif
24438/* We use char because int might match the return type of a gcc2
24439 builtin and then its argument prototype would still apply. */
24440char gdk_im_open ();
24441int
24442main ()
24443{
24444gdk_im_open ();
24445 ;
24446 return 0;
24447}
24448_ACEOF
24449rm -f conftest.$ac_objext conftest$ac_exeext
24450if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24451 (eval $ac_link) 2>conftest.er1
a848cd7e 24452 ac_status=$?
ac1cb8d3
VS
24453 grep -v '^ *+' conftest.er1 >conftest.err
24454 rm -f conftest.er1
24455 cat conftest.err >&5
a848cd7e
SC
24456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24457 (exit $ac_status); } &&
89be85c2
VS
24458 { ac_try='test -z "$ac_c_werror_flag"
24459 || test ! -s conftest.err'
ac1cb8d3
VS
24460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24461 (eval $ac_try) 2>&5
24462 ac_status=$?
24463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24464 (exit $ac_status); }; } &&
24465 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24467 (eval $ac_try) 2>&5
24468 ac_status=$?
24469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24470 (exit $ac_status); }; }; then
24471 ac_cv_lib_gdk_gdk_im_open=yes
24472else
24473 echo "$as_me: failed program was:" >&5
24474sed 's/^/| /' conftest.$ac_ext >&5
24475
24476ac_cv_lib_gdk_gdk_im_open=no
24477fi
ac1cb8d3
VS
24478rm -f conftest.err conftest.$ac_objext \
24479 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24480LIBS=$ac_check_lib_save_LIBS
24481fi
24482echo "$as_me:$LINENO: result: $ac_cv_lib_gdk_gdk_im_open" >&5
24483echo "${ECHO_T}$ac_cv_lib_gdk_gdk_im_open" >&6
24484if test $ac_cv_lib_gdk_gdk_im_open = yes; then
24485 cat >>confdefs.h <<\_ACEOF
24486#define HAVE_XIM 1
24487_ACEOF
24488
24489fi
24490
24491
24492
24493 if test "$wxUSE_GPE" = "yes"; then
24494 echo "$as_me:$LINENO: checking for gpewidget library" >&5
24495echo $ECHO_N "checking for gpewidget library... $ECHO_C" >&6
24496
24497ac_find_libraries=
24498for ac_dir in $SEARCH_LIB /usr/lib;
24499 do
24500 for ac_extension in a so sl dylib; do
24501 if test -f "$ac_dir/libgpewidget.$ac_extension"; then
24502 ac_find_libraries=$ac_dir
24503 break 2
24504 fi
24505 done
24506 done
24507
24508 if test "$ac_find_libraries" != "" ; then
24509
24510 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
24511 result=$?
24512 if test $result = 0; then
24513 ac_path_to_link=""
24514 else
24515 ac_path_to_link=" -L$ac_find_libraries"
24516 fi
24517
24518 GUI_TK_LIBRARY="-L${prefix}/lib -lgpewidget $GUI_TK_LIBRARY"
24519 WXGPE=1
24520 echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5
24521echo "${ECHO_T}found at $ac_find_libraries" >&6
24522 else
24523 echo "$as_me:$LINENO: result: not found" >&5
24524echo "${ECHO_T}not found" >&6
24525 fi
24526
24527 fi
24528 fi
24529
24530 if test "$wxUSE_MGL" = 1; then
24531 echo "$as_me:$LINENO: checking for SciTech MGL library" >&5
24532echo $ECHO_N "checking for SciTech MGL library... $ECHO_C" >&6
24533 if test "x$MGL_ROOT" = x ; then
24534 echo "$as_me:$LINENO: result: not found" >&5
24535echo "${ECHO_T}not found" >&6
24536 { { echo "$as_me:$LINENO: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&5
24537echo "$as_me: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&2;}
24538 { (exit 1); exit 1; }; }
24539 else
24540 echo "$as_me:$LINENO: result: $MGL_ROOT" >&5
24541echo "${ECHO_T}$MGL_ROOT" >&6
24542 fi
24543
24544 echo "$as_me:$LINENO: checking for libmgl location" >&5
24545echo $ECHO_N "checking for libmgl location... $ECHO_C" >&6
24546 case "${host}" in
24547 *-*-linux* )
24548 if test "x$wxUSE_SHARED" = xyes ; then
24549 mgl_os_candidates="linux/gcc/x86/so linux/gcc/x86/a linux/gcc/glibc.so linux/gcc/glibc"
24550 else
24551 mgl_os_candidates="linux/gcc/x86/a linux/gcc/x86/so linux/gcc/glibc linux/gcc/glibc.so"
24552 fi
24553 ;;
24554 *-pc-msdosdjgpp )
24555 mgl_os_candidates="dos32/dj2"
24556 ;;
24557 *)
24558 { { echo "$as_me:$LINENO: error: This system type ${host} is not yet supported by wxMGL." >&5
24559echo "$as_me: error: This system type ${host} is not yet supported by wxMGL." >&2;}
24560 { (exit 1); exit 1; }; }
24561 esac
24562
24563 mgl_lib_type=""
24564 mgl_os=""
24565
24566 for mgl_os_i in $mgl_os_candidates ; do
24567 if test "x$mgl_os" = x ; then
24568 if test "$wxUSE_DEBUG_FLAG" = yes ; then
24569 if test -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.a -o \
24570 -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.so; then
24571 mgl_lib_type=debug
24572 mgl_os=$mgl_os_i
24573 fi
24574 fi
24575 if test "x$mgl_lib_type" = x ; then
24576 if test -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.a -o \
24577 -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.so; then
24578 mgl_lib_type=release
24579 mgl_os=$mgl_os_i
24580 fi
24581 fi
24582 fi
24583 done
24584
24585 if test "x$mgl_os" = x ; then
24586 echo "$as_me:$LINENO: result: not found" >&5
24587echo "${ECHO_T}not found" >&6
24588 { { echo "$as_me:$LINENO: error: Cannot find MGL libraries, make sure they are compiled." >&5
24589echo "$as_me: error: Cannot find MGL libraries, make sure they are compiled." >&2;}
24590 { (exit 1); exit 1; }; }
24591 fi
24592 echo "$as_me:$LINENO: result: \"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&5
24593echo "${ECHO_T}\"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&6
24594
24595 wxUSE_UNIVERSAL="yes"
24596
24597 TOOLKIT_INCLUDE="-I$MGL_ROOT/include"
24598 GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$mgl_lib_type/$mgl_os -lmgl -lmglcpp -lpm"
24599
24600 AFMINSTALL=afminstall
24601 TOOLKIT=MGL
24602 GUIDIST=MGL_DIST
24603 fi
24604
24605 if test "$wxUSE_MICROWIN" = 1; then
24606 echo "$as_me:$LINENO: checking for MicroWindows" >&5
24607echo $ECHO_N "checking for MicroWindows... $ECHO_C" >&6
24608 if test "x$MICROWINDOWS" = x ; then
24609 echo "$as_me:$LINENO: result: not found" >&5
24610echo "${ECHO_T}not found" >&6
24611 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&5
24612echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&2;}
24613 { (exit 1); exit 1; }; }
24614 else
24615 echo "$as_me:$LINENO: result: $MICROWINDOWS" >&5
24616echo "${ECHO_T}$MICROWINDOWS" >&6
24617 fi
24618
24619 if test -f $MICROWINDOWS/lib/libmwin.a; then
24620 echo "$as_me:$LINENO: result: MicroWindows' libraries found." >&5
24621echo "${ECHO_T}MicroWindows' libraries found." >&6
24622 else
24623 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows libraries, make sure they are compiled." >&5
24624echo "$as_me: error: Cannot find MicroWindows libraries, make sure they are compiled." >&2;}
24625 { (exit 1); exit 1; }; }
24626 fi
24627
24628 TOOLKIT_INCLUDE="-I$MICROWINDOWS/include"
24629 GUI_TK_LIBRARY="-L$MICROWINDOWS/lib -lmwin -lmwengine -mwfonts -mwdrivers -mwinlib"
24630
24631 wxUSE_UNIVERSAL="yes"
24632
24633 AFMINSTALL=afminstall
24634 TOOLKIT=MICROWIN
24635 GUIDIST=MICROWIN_DIST
24636
24637 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXMSW__ -D__WIN95__ -D__WIN32__ -DMWIN -DMICROWIN_NOCONTROLS -DMICROWIN_TODO=1"
24638 fi
24639
74b84332 24640 if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
89be85c2 24641 echo "$as_me:$LINENO: checking for X" >&5
a848cd7e
SC
24642echo $ECHO_N "checking for X... $ECHO_C" >&6
24643
24644
24645# Check whether --with-x or --without-x was given.
24646if test "${with_x+set}" = set; then
24647 withval="$with_x"
24648
24649fi;
24650# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
24651if test "x$with_x" = xno; then
24652 # The user explicitly disabled X.
24653 have_x=disabled
24654else
24655 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
24656 # Both variables are already set.
24657 have_x=yes
24658 else
24659 if test "${ac_cv_have_x+set}" = set; then
24660 echo $ECHO_N "(cached) $ECHO_C" >&6
24661else
24662 # One or both of the vars are not set, and there is no cached value.
24663ac_x_includes=no ac_x_libraries=no
24664rm -fr conftest.dir
24665if mkdir conftest.dir; then
24666 cd conftest.dir
24667 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
24668 cat >Imakefile <<'_ACEOF'
24669acfindx:
24670 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
24671_ACEOF
24672 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
24673 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
24674 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
24675 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
24676 for ac_extension in a so sl; do
24677 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
ac1cb8d3
VS
24678 test -f $ac_im_libdir/libX11.$ac_extension; then
24679 ac_im_usrlibdir=$ac_im_libdir; break
a848cd7e
SC
24680 fi
24681 done
24682 # Screen out bogus values from the imake configuration. They are
24683 # bogus both because they are the default anyway, and because
24684 # using them would break gcc on systems where it needs fixed includes.
24685 case $ac_im_incroot in
24686 /usr/include) ;;
24687 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
24688 esac
24689 case $ac_im_usrlibdir in
24690 /usr/lib | /lib) ;;
24691 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
24692 esac
24693 fi
24694 cd ..
24695 rm -fr conftest.dir
24696fi
24697
24698# Standard set of common directories for X headers.
24699# Check X11 before X11Rn because it is often a symlink to the current release.
24700ac_x_header_dirs='
24701/usr/X11/include
24702/usr/X11R6/include
24703/usr/X11R5/include
24704/usr/X11R4/include
24705
24706/usr/include/X11
24707/usr/include/X11R6
24708/usr/include/X11R5
24709/usr/include/X11R4
24710
24711/usr/local/X11/include
24712/usr/local/X11R6/include
24713/usr/local/X11R5/include
24714/usr/local/X11R4/include
24715
24716/usr/local/include/X11
24717/usr/local/include/X11R6
24718/usr/local/include/X11R5
24719/usr/local/include/X11R4
24720
24721/usr/X386/include
24722/usr/x386/include
24723/usr/XFree86/include/X11
24724
24725/usr/include
24726/usr/local/include
24727/usr/unsupported/include
24728/usr/athena/include
24729/usr/local/x11r5/include
24730/usr/lpp/Xamples/include
24731
24732/usr/openwin/include
24733/usr/openwin/share/include'
24734
24735if test "$ac_x_includes" = no; then
89be85c2 24736 # Guess where to find include files, by looking for Intrinsic.h.
a848cd7e
SC
24737 # First, try using that file with no special directory specified.
24738 cat >conftest.$ac_ext <<_ACEOF
24739/* confdefs.h. */
24740_ACEOF
24741cat confdefs.h >>conftest.$ac_ext
24742cat >>conftest.$ac_ext <<_ACEOF
24743/* end confdefs.h. */
24744#include <X11/Intrinsic.h>
24745_ACEOF
24746if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24747 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24748 ac_status=$?
24749 grep -v '^ *+' conftest.er1 >conftest.err
24750 rm -f conftest.er1
24751 cat conftest.err >&5
24752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24753 (exit $ac_status); } >/dev/null; then
24754 if test -s conftest.err; then
24755 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 24756 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
24757 else
24758 ac_cpp_err=
24759 fi
24760else
24761 ac_cpp_err=yes
24762fi
24763if test -z "$ac_cpp_err"; then
24764 # We can compile using X headers with no special include directory.
24765ac_x_includes=
24766else
24767 echo "$as_me: failed program was:" >&5
24768sed 's/^/| /' conftest.$ac_ext >&5
24769
24770 for ac_dir in $ac_x_header_dirs; do
24771 if test -r "$ac_dir/X11/Intrinsic.h"; then
24772 ac_x_includes=$ac_dir
24773 break
24774 fi
24775done
24776fi
24777rm -f conftest.err conftest.$ac_ext
24778fi # $ac_x_includes = no
24779
24780if test "$ac_x_libraries" = no; then
24781 # Check for the libraries.
24782 # See if we find them without any special options.
24783 # Don't add to $LIBS permanently.
24784 ac_save_LIBS=$LIBS
24785 LIBS="-lXt $LIBS"
24786 cat >conftest.$ac_ext <<_ACEOF
24787/* confdefs.h. */
24788_ACEOF
24789cat confdefs.h >>conftest.$ac_ext
24790cat >>conftest.$ac_ext <<_ACEOF
24791/* end confdefs.h. */
24792#include <X11/Intrinsic.h>
24793int
24794main ()
24795{
24796XtMalloc (0)
24797 ;
24798 return 0;
24799}
24800_ACEOF
24801rm -f conftest.$ac_objext conftest$ac_exeext
24802if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24803 (eval $ac_link) 2>conftest.er1
a848cd7e 24804 ac_status=$?
ac1cb8d3
VS
24805 grep -v '^ *+' conftest.er1 >conftest.err
24806 rm -f conftest.er1
24807 cat conftest.err >&5
a848cd7e
SC
24808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24809 (exit $ac_status); } &&
89be85c2
VS
24810 { ac_try='test -z "$ac_c_werror_flag"
24811 || test ! -s conftest.err'
ac1cb8d3
VS
24812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24813 (eval $ac_try) 2>&5
24814 ac_status=$?
24815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24816 (exit $ac_status); }; } &&
24817 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24819 (eval $ac_try) 2>&5
24820 ac_status=$?
24821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24822 (exit $ac_status); }; }; then
24823 LIBS=$ac_save_LIBS
24824# We can link X programs with no special library path.
24825ac_x_libraries=
24826else
24827 echo "$as_me: failed program was:" >&5
24828sed 's/^/| /' conftest.$ac_ext >&5
24829
24830LIBS=$ac_save_LIBS
24831for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
24832do
24833 # Don't even attempt the hair of trying to link an X program!
24834 for ac_extension in a so sl; do
24835 if test -r $ac_dir/libXt.$ac_extension; then
24836 ac_x_libraries=$ac_dir
24837 break 2
24838 fi
24839 done
24840done
24841fi
ac1cb8d3
VS
24842rm -f conftest.err conftest.$ac_objext \
24843 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24844fi # $ac_x_libraries = no
24845
24846if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
24847 # Didn't find X anywhere. Cache the known absence of X.
24848 ac_cv_have_x="have_x=no"
24849else
24850 # Record where we found X for the cache.
24851 ac_cv_have_x="have_x=yes \
ac1cb8d3 24852 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
a848cd7e
SC
24853fi
24854fi
24855
24856 fi
24857 eval "$ac_cv_have_x"
24858fi # $with_x != no
24859
24860if test "$have_x" != yes; then
24861 echo "$as_me:$LINENO: result: $have_x" >&5
24862echo "${ECHO_T}$have_x" >&6
24863 no_x=yes
24864else
24865 # If each of the values was on the command line, it overrides each guess.
24866 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
24867 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
24868 # Update the cache value to reflect the command line values.
24869 ac_cv_have_x="have_x=yes \
24870 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
89be85c2
VS
24871 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
24872echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
a848cd7e
SC
24873fi
24874
24875if test "$no_x" = yes; then
24876 # Not all programs may use this symbol, but it does not hurt to define it.
24877
24878cat >>confdefs.h <<\_ACEOF
24879#define X_DISPLAY_MISSING 1
24880_ACEOF
24881
24882 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
24883else
24884 if test -n "$x_includes"; then
24885 X_CFLAGS="$X_CFLAGS -I$x_includes"
24886 fi
24887
24888 # It would also be nice to do this for all -L options, not just this one.
24889 if test -n "$x_libraries"; then
24890 X_LIBS="$X_LIBS -L$x_libraries"
24891 # For Solaris; some versions of Sun CC require a space after -R and
24892 # others require no space. Words are not sufficient . . . .
24893 case `(uname -sr) 2>/dev/null` in
24894 "SunOS 5"*)
24895 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
24896echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
24897 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
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. */
24904
24905int
24906main ()
24907{
24908
24909 ;
24910 return 0;
24911}
24912_ACEOF
24913rm -f conftest.$ac_objext conftest$ac_exeext
24914if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24915 (eval $ac_link) 2>conftest.er1
a848cd7e 24916 ac_status=$?
ac1cb8d3
VS
24917 grep -v '^ *+' conftest.er1 >conftest.err
24918 rm -f conftest.er1
24919 cat conftest.err >&5
a848cd7e
SC
24920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24921 (exit $ac_status); } &&
89be85c2
VS
24922 { ac_try='test -z "$ac_c_werror_flag"
24923 || test ! -s conftest.err'
ac1cb8d3
VS
24924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24925 (eval $ac_try) 2>&5
24926 ac_status=$?
24927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24928 (exit $ac_status); }; } &&
24929 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24931 (eval $ac_try) 2>&5
24932 ac_status=$?
24933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24934 (exit $ac_status); }; }; then
24935 ac_R_nospace=yes
24936else
24937 echo "$as_me: failed program was:" >&5
24938sed 's/^/| /' conftest.$ac_ext >&5
24939
24940ac_R_nospace=no
24941fi
ac1cb8d3
VS
24942rm -f conftest.err conftest.$ac_objext \
24943 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24944 if test $ac_R_nospace = yes; then
24945 echo "$as_me:$LINENO: result: no" >&5
24946echo "${ECHO_T}no" >&6
24947 X_LIBS="$X_LIBS -R$x_libraries"
24948 else
24949 LIBS="$ac_xsave_LIBS -R $x_libraries"
24950 cat >conftest.$ac_ext <<_ACEOF
24951/* confdefs.h. */
24952_ACEOF
24953cat confdefs.h >>conftest.$ac_ext
24954cat >>conftest.$ac_ext <<_ACEOF
24955/* end confdefs.h. */
24956
24957int
24958main ()
24959{
24960
24961 ;
24962 return 0;
24963}
24964_ACEOF
24965rm -f conftest.$ac_objext conftest$ac_exeext
24966if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24967 (eval $ac_link) 2>conftest.er1
a848cd7e 24968 ac_status=$?
ac1cb8d3
VS
24969 grep -v '^ *+' conftest.er1 >conftest.err
24970 rm -f conftest.er1
24971 cat conftest.err >&5
a848cd7e
SC
24972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24973 (exit $ac_status); } &&
89be85c2
VS
24974 { ac_try='test -z "$ac_c_werror_flag"
24975 || test ! -s conftest.err'
ac1cb8d3
VS
24976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24977 (eval $ac_try) 2>&5
24978 ac_status=$?
24979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24980 (exit $ac_status); }; } &&
24981 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24983 (eval $ac_try) 2>&5
24984 ac_status=$?
24985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24986 (exit $ac_status); }; }; then
24987 ac_R_space=yes
24988else
24989 echo "$as_me: failed program was:" >&5
24990sed 's/^/| /' conftest.$ac_ext >&5
24991
24992ac_R_space=no
24993fi
ac1cb8d3
VS
24994rm -f conftest.err conftest.$ac_objext \
24995 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24996 if test $ac_R_space = yes; then
24997 echo "$as_me:$LINENO: result: yes" >&5
24998echo "${ECHO_T}yes" >&6
24999 X_LIBS="$X_LIBS -R $x_libraries"
25000 else
25001 echo "$as_me:$LINENO: result: neither works" >&5
25002echo "${ECHO_T}neither works" >&6
25003 fi
25004 fi
25005 LIBS=$ac_xsave_LIBS
25006 esac
25007 fi
25008
25009 # Check for system-dependent libraries X programs must link with.
25010 # Do this before checking for the system-independent R6 libraries
25011 # (-lICE), since we may need -lsocket or whatever for X linking.
25012
25013 if test "$ISC" = yes; then
25014 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
25015 else
25016 # Martyn Johnson says this is needed for Ultrix, if the X
25017 # libraries were built with DECnet support. And Karl Berry says
25018 # the Alpha needs dnet_stub (dnet does not exist).
25019 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
25020 cat >conftest.$ac_ext <<_ACEOF
25021/* confdefs.h. */
25022_ACEOF
25023cat confdefs.h >>conftest.$ac_ext
25024cat >>conftest.$ac_ext <<_ACEOF
25025/* end confdefs.h. */
25026
25027/* Override any gcc2 internal prototype to avoid an error. */
25028#ifdef __cplusplus
25029extern "C"
25030#endif
25031/* We use char because int might match the return type of a gcc2
25032 builtin and then its argument prototype would still apply. */
25033char XOpenDisplay ();
25034int
25035main ()
25036{
25037XOpenDisplay ();
25038 ;
25039 return 0;
25040}
25041_ACEOF
25042rm -f conftest.$ac_objext conftest$ac_exeext
25043if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25044 (eval $ac_link) 2>conftest.er1
a848cd7e 25045 ac_status=$?
ac1cb8d3
VS
25046 grep -v '^ *+' conftest.er1 >conftest.err
25047 rm -f conftest.er1
25048 cat conftest.err >&5
a848cd7e
SC
25049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25050 (exit $ac_status); } &&
89be85c2
VS
25051 { ac_try='test -z "$ac_c_werror_flag"
25052 || test ! -s conftest.err'
ac1cb8d3
VS
25053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25054 (eval $ac_try) 2>&5
25055 ac_status=$?
25056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25057 (exit $ac_status); }; } &&
25058 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25060 (eval $ac_try) 2>&5
25061 ac_status=$?
25062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25063 (exit $ac_status); }; }; then
25064 :
25065else
25066 echo "$as_me: failed program was:" >&5
25067sed 's/^/| /' conftest.$ac_ext >&5
25068
25069echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
25070echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
25071if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
25072 echo $ECHO_N "(cached) $ECHO_C" >&6
25073else
25074 ac_check_lib_save_LIBS=$LIBS
25075LIBS="-ldnet $LIBS"
25076cat >conftest.$ac_ext <<_ACEOF
25077/* confdefs.h. */
25078_ACEOF
25079cat confdefs.h >>conftest.$ac_ext
25080cat >>conftest.$ac_ext <<_ACEOF
25081/* end confdefs.h. */
25082
25083/* Override any gcc2 internal prototype to avoid an error. */
25084#ifdef __cplusplus
25085extern "C"
25086#endif
25087/* We use char because int might match the return type of a gcc2
25088 builtin and then its argument prototype would still apply. */
25089char dnet_ntoa ();
25090int
25091main ()
25092{
25093dnet_ntoa ();
25094 ;
25095 return 0;
25096}
25097_ACEOF
25098rm -f conftest.$ac_objext conftest$ac_exeext
25099if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25100 (eval $ac_link) 2>conftest.er1
a848cd7e 25101 ac_status=$?
ac1cb8d3
VS
25102 grep -v '^ *+' conftest.er1 >conftest.err
25103 rm -f conftest.er1
25104 cat conftest.err >&5
a848cd7e
SC
25105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25106 (exit $ac_status); } &&
89be85c2
VS
25107 { ac_try='test -z "$ac_c_werror_flag"
25108 || test ! -s conftest.err'
ac1cb8d3
VS
25109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25110 (eval $ac_try) 2>&5
25111 ac_status=$?
25112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25113 (exit $ac_status); }; } &&
25114 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25116 (eval $ac_try) 2>&5
25117 ac_status=$?
25118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25119 (exit $ac_status); }; }; then
25120 ac_cv_lib_dnet_dnet_ntoa=yes
25121else
25122 echo "$as_me: failed program was:" >&5
25123sed 's/^/| /' conftest.$ac_ext >&5
25124
25125ac_cv_lib_dnet_dnet_ntoa=no
25126fi
ac1cb8d3
VS
25127rm -f conftest.err conftest.$ac_objext \
25128 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25129LIBS=$ac_check_lib_save_LIBS
25130fi
25131echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
25132echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
25133if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
25134 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
25135fi
25136
25137 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
25138 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
25139echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
25140if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
25141 echo $ECHO_N "(cached) $ECHO_C" >&6
25142else
25143 ac_check_lib_save_LIBS=$LIBS
25144LIBS="-ldnet_stub $LIBS"
25145cat >conftest.$ac_ext <<_ACEOF
25146/* confdefs.h. */
25147_ACEOF
25148cat confdefs.h >>conftest.$ac_ext
25149cat >>conftest.$ac_ext <<_ACEOF
25150/* end confdefs.h. */
25151
25152/* Override any gcc2 internal prototype to avoid an error. */
25153#ifdef __cplusplus
25154extern "C"
25155#endif
25156/* We use char because int might match the return type of a gcc2
25157 builtin and then its argument prototype would still apply. */
25158char dnet_ntoa ();
25159int
25160main ()
25161{
25162dnet_ntoa ();
25163 ;
25164 return 0;
25165}
25166_ACEOF
25167rm -f conftest.$ac_objext conftest$ac_exeext
25168if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25169 (eval $ac_link) 2>conftest.er1
a848cd7e 25170 ac_status=$?
ac1cb8d3
VS
25171 grep -v '^ *+' conftest.er1 >conftest.err
25172 rm -f conftest.er1
25173 cat conftest.err >&5
a848cd7e
SC
25174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25175 (exit $ac_status); } &&
89be85c2
VS
25176 { ac_try='test -z "$ac_c_werror_flag"
25177 || test ! -s conftest.err'
ac1cb8d3
VS
25178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25179 (eval $ac_try) 2>&5
25180 ac_status=$?
25181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25182 (exit $ac_status); }; } &&
25183 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25185 (eval $ac_try) 2>&5
25186 ac_status=$?
25187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25188 (exit $ac_status); }; }; then
25189 ac_cv_lib_dnet_stub_dnet_ntoa=yes
25190else
25191 echo "$as_me: failed program was:" >&5
25192sed 's/^/| /' conftest.$ac_ext >&5
25193
25194ac_cv_lib_dnet_stub_dnet_ntoa=no
25195fi
ac1cb8d3
VS
25196rm -f conftest.err conftest.$ac_objext \
25197 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25198LIBS=$ac_check_lib_save_LIBS
25199fi
25200echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
25201echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
25202if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
25203 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
25204fi
25205
25206 fi
25207fi
ac1cb8d3
VS
25208rm -f conftest.err conftest.$ac_objext \
25209 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25210 LIBS="$ac_xsave_LIBS"
25211
25212 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
25213 # to get the SysV transport functions.
25214 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
25215 # needs -lnsl.
25216 # The nsl library prevents programs from opening the X display
25217 # on Irix 5.2, according to T.E. Dickey.
25218 # The functions gethostbyname, getservbyname, and inet_addr are
25219 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
25220 echo "$as_me:$LINENO: checking for gethostbyname" >&5
25221echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
25222if test "${ac_cv_func_gethostbyname+set}" = set; then
25223 echo $ECHO_N "(cached) $ECHO_C" >&6
25224else
25225 cat >conftest.$ac_ext <<_ACEOF
25226/* confdefs.h. */
25227_ACEOF
25228cat confdefs.h >>conftest.$ac_ext
25229cat >>conftest.$ac_ext <<_ACEOF
25230/* end confdefs.h. */
ac1cb8d3
VS
25231/* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
25232 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25233#define gethostbyname innocuous_gethostbyname
25234
a848cd7e
SC
25235/* System header to define __stub macros and hopefully few prototypes,
25236 which can conflict with char gethostbyname (); below.
25237 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25238 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 25239
a848cd7e
SC
25240#ifdef __STDC__
25241# include <limits.h>
25242#else
25243# include <assert.h>
25244#endif
ac1cb8d3
VS
25245
25246#undef gethostbyname
25247
a848cd7e
SC
25248/* Override any gcc2 internal prototype to avoid an error. */
25249#ifdef __cplusplus
25250extern "C"
25251{
25252#endif
25253/* We use char because int might match the return type of a gcc2
25254 builtin and then its argument prototype would still apply. */
25255char gethostbyname ();
25256/* The GNU C library defines this for functions which it implements
25257 to always fail with ENOSYS. Some functions are actually named
25258 something starting with __ and the normal name is an alias. */
25259#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
25260choke me
25261#else
25262char (*f) () = gethostbyname;
25263#endif
25264#ifdef __cplusplus
25265}
25266#endif
25267
25268int
25269main ()
25270{
25271return f != gethostbyname;
25272 ;
25273 return 0;
25274}
25275_ACEOF
25276rm -f conftest.$ac_objext conftest$ac_exeext
25277if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25278 (eval $ac_link) 2>conftest.er1
a848cd7e 25279 ac_status=$?
ac1cb8d3
VS
25280 grep -v '^ *+' conftest.er1 >conftest.err
25281 rm -f conftest.er1
25282 cat conftest.err >&5
a848cd7e
SC
25283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25284 (exit $ac_status); } &&
89be85c2
VS
25285 { ac_try='test -z "$ac_c_werror_flag"
25286 || test ! -s conftest.err'
ac1cb8d3
VS
25287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25288 (eval $ac_try) 2>&5
25289 ac_status=$?
25290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25291 (exit $ac_status); }; } &&
25292 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25294 (eval $ac_try) 2>&5
25295 ac_status=$?
25296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25297 (exit $ac_status); }; }; then
25298 ac_cv_func_gethostbyname=yes
25299else
25300 echo "$as_me: failed program was:" >&5
25301sed 's/^/| /' conftest.$ac_ext >&5
25302
25303ac_cv_func_gethostbyname=no
25304fi
ac1cb8d3
VS
25305rm -f conftest.err conftest.$ac_objext \
25306 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25307fi
25308echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
25309echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
25310
25311 if test $ac_cv_func_gethostbyname = no; then
25312 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
25313echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
25314if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
25315 echo $ECHO_N "(cached) $ECHO_C" >&6
25316else
25317 ac_check_lib_save_LIBS=$LIBS
25318LIBS="-lnsl $LIBS"
25319cat >conftest.$ac_ext <<_ACEOF
25320/* confdefs.h. */
25321_ACEOF
25322cat confdefs.h >>conftest.$ac_ext
25323cat >>conftest.$ac_ext <<_ACEOF
25324/* end confdefs.h. */
25325
25326/* Override any gcc2 internal prototype to avoid an error. */
25327#ifdef __cplusplus
25328extern "C"
25329#endif
25330/* We use char because int might match the return type of a gcc2
25331 builtin and then its argument prototype would still apply. */
25332char gethostbyname ();
25333int
25334main ()
25335{
25336gethostbyname ();
25337 ;
25338 return 0;
25339}
25340_ACEOF
25341rm -f conftest.$ac_objext conftest$ac_exeext
25342if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3
VS
25343 (eval $ac_link) 2>conftest.er1
25344 ac_status=$?
25345 grep -v '^ *+' conftest.er1 >conftest.err
25346 rm -f conftest.er1
25347 cat conftest.err >&5
25348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25349 (exit $ac_status); } &&
89be85c2
VS
25350 { ac_try='test -z "$ac_c_werror_flag"
25351 || test ! -s conftest.err'
ac1cb8d3
VS
25352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25353 (eval $ac_try) 2>&5
25354 ac_status=$?
25355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25356 (exit $ac_status); }; } &&
25357 { ac_try='test -s conftest$ac_exeext'
25358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25359 (eval $ac_try) 2>&5
25360 ac_status=$?
25361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25362 (exit $ac_status); }; }; then
25363 ac_cv_lib_nsl_gethostbyname=yes
25364else
25365 echo "$as_me: failed program was:" >&5
25366sed 's/^/| /' conftest.$ac_ext >&5
25367
25368ac_cv_lib_nsl_gethostbyname=no
25369fi
25370rm -f conftest.err conftest.$ac_objext \
25371 conftest$ac_exeext conftest.$ac_ext
25372LIBS=$ac_check_lib_save_LIBS
25373fi
25374echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
25375echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
25376if test $ac_cv_lib_nsl_gethostbyname = yes; then
25377 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
25378fi
25379
25380 if test $ac_cv_lib_nsl_gethostbyname = no; then
25381 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
25382echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
25383if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
25384 echo $ECHO_N "(cached) $ECHO_C" >&6
25385else
25386 ac_check_lib_save_LIBS=$LIBS
25387LIBS="-lbsd $LIBS"
25388cat >conftest.$ac_ext <<_ACEOF
25389/* confdefs.h. */
25390_ACEOF
25391cat confdefs.h >>conftest.$ac_ext
25392cat >>conftest.$ac_ext <<_ACEOF
25393/* end confdefs.h. */
25394
25395/* Override any gcc2 internal prototype to avoid an error. */
25396#ifdef __cplusplus
25397extern "C"
25398#endif
25399/* We use char because int might match the return type of a gcc2
25400 builtin and then its argument prototype would still apply. */
25401char gethostbyname ();
25402int
25403main ()
25404{
25405gethostbyname ();
25406 ;
25407 return 0;
25408}
25409_ACEOF
25410rm -f conftest.$ac_objext conftest$ac_exeext
25411if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25412 (eval $ac_link) 2>conftest.er1
a848cd7e 25413 ac_status=$?
ac1cb8d3
VS
25414 grep -v '^ *+' conftest.er1 >conftest.err
25415 rm -f conftest.er1
25416 cat conftest.err >&5
a848cd7e
SC
25417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25418 (exit $ac_status); } &&
89be85c2
VS
25419 { ac_try='test -z "$ac_c_werror_flag"
25420 || test ! -s conftest.err'
a848cd7e
SC
25421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25422 (eval $ac_try) 2>&5
25423 ac_status=$?
25424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ac1cb8d3
VS
25425 (exit $ac_status); }; } &&
25426 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25428 (eval $ac_try) 2>&5
25429 ac_status=$?
25430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25431 (exit $ac_status); }; }; then
25432 ac_cv_lib_bsd_gethostbyname=yes
25433else
25434 echo "$as_me: failed program was:" >&5
25435sed 's/^/| /' conftest.$ac_ext >&5
25436
25437ac_cv_lib_bsd_gethostbyname=no
25438fi
ac1cb8d3
VS
25439rm -f conftest.err conftest.$ac_objext \
25440 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25441LIBS=$ac_check_lib_save_LIBS
25442fi
25443echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
25444echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
25445if test $ac_cv_lib_bsd_gethostbyname = yes; then
25446 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
25447fi
25448
25449 fi
25450 fi
25451
25452 # lieder@skyler.mavd.honeywell.com says without -lsocket,
25453 # socket/setsockopt and other routines are undefined under SCO ODT
25454 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
25455 # on later versions), says Simon Leinen: it contains gethostby*
25456 # variants that don't use the name server (or something). -lsocket
25457 # must be given before -lnsl if both are needed. We assume that
25458 # if connect needs -lnsl, so does gethostbyname.
25459 echo "$as_me:$LINENO: checking for connect" >&5
25460echo $ECHO_N "checking for connect... $ECHO_C" >&6
25461if test "${ac_cv_func_connect+set}" = set; then
25462 echo $ECHO_N "(cached) $ECHO_C" >&6
25463else
25464 cat >conftest.$ac_ext <<_ACEOF
25465/* confdefs.h. */
25466_ACEOF
25467cat confdefs.h >>conftest.$ac_ext
25468cat >>conftest.$ac_ext <<_ACEOF
25469/* end confdefs.h. */
ac1cb8d3
VS
25470/* Define connect to an innocuous variant, in case <limits.h> declares connect.
25471 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25472#define connect innocuous_connect
25473
a848cd7e
SC
25474/* System header to define __stub macros and hopefully few prototypes,
25475 which can conflict with char connect (); below.
25476 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25477 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 25478
a848cd7e
SC
25479#ifdef __STDC__
25480# include <limits.h>
25481#else
25482# include <assert.h>
25483#endif
ac1cb8d3
VS
25484
25485#undef connect
25486
a848cd7e
SC
25487/* Override any gcc2 internal prototype to avoid an error. */
25488#ifdef __cplusplus
25489extern "C"
25490{
25491#endif
25492/* We use char because int might match the return type of a gcc2
25493 builtin and then its argument prototype would still apply. */
25494char connect ();
25495/* The GNU C library defines this for functions which it implements
25496 to always fail with ENOSYS. Some functions are actually named
25497 something starting with __ and the normal name is an alias. */
25498#if defined (__stub_connect) || defined (__stub___connect)
25499choke me
25500#else
25501char (*f) () = connect;
25502#endif
25503#ifdef __cplusplus
25504}
25505#endif
25506
25507int
25508main ()
25509{
25510return f != connect;
25511 ;
25512 return 0;
25513}
25514_ACEOF
25515rm -f conftest.$ac_objext conftest$ac_exeext
25516if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25517 (eval $ac_link) 2>conftest.er1
a848cd7e 25518 ac_status=$?
ac1cb8d3
VS
25519 grep -v '^ *+' conftest.er1 >conftest.err
25520 rm -f conftest.er1
25521 cat conftest.err >&5
a848cd7e
SC
25522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25523 (exit $ac_status); } &&
89be85c2
VS
25524 { ac_try='test -z "$ac_c_werror_flag"
25525 || test ! -s conftest.err'
ac1cb8d3
VS
25526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25527 (eval $ac_try) 2>&5
25528 ac_status=$?
25529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25530 (exit $ac_status); }; } &&
25531 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25533 (eval $ac_try) 2>&5
25534 ac_status=$?
25535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25536 (exit $ac_status); }; }; then
25537 ac_cv_func_connect=yes
25538else
25539 echo "$as_me: failed program was:" >&5
25540sed 's/^/| /' conftest.$ac_ext >&5
25541
25542ac_cv_func_connect=no
25543fi
ac1cb8d3
VS
25544rm -f conftest.err conftest.$ac_objext \
25545 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25546fi
25547echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
25548echo "${ECHO_T}$ac_cv_func_connect" >&6
25549
25550 if test $ac_cv_func_connect = no; then
25551 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
25552echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
25553if test "${ac_cv_lib_socket_connect+set}" = set; then
25554 echo $ECHO_N "(cached) $ECHO_C" >&6
25555else
25556 ac_check_lib_save_LIBS=$LIBS
25557LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
25558cat >conftest.$ac_ext <<_ACEOF
25559/* confdefs.h. */
25560_ACEOF
25561cat confdefs.h >>conftest.$ac_ext
25562cat >>conftest.$ac_ext <<_ACEOF
25563/* end confdefs.h. */
25564
25565/* Override any gcc2 internal prototype to avoid an error. */
25566#ifdef __cplusplus
25567extern "C"
25568#endif
25569/* We use char because int might match the return type of a gcc2
25570 builtin and then its argument prototype would still apply. */
25571char connect ();
25572int
25573main ()
25574{
25575connect ();
25576 ;
25577 return 0;
25578}
25579_ACEOF
25580rm -f conftest.$ac_objext conftest$ac_exeext
25581if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25582 (eval $ac_link) 2>conftest.er1
a848cd7e 25583 ac_status=$?
ac1cb8d3
VS
25584 grep -v '^ *+' conftest.er1 >conftest.err
25585 rm -f conftest.er1
25586 cat conftest.err >&5
a848cd7e
SC
25587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25588 (exit $ac_status); } &&
89be85c2
VS
25589 { ac_try='test -z "$ac_c_werror_flag"
25590 || test ! -s conftest.err'
ac1cb8d3
VS
25591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25592 (eval $ac_try) 2>&5
25593 ac_status=$?
25594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25595 (exit $ac_status); }; } &&
25596 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25598 (eval $ac_try) 2>&5
25599 ac_status=$?
25600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25601 (exit $ac_status); }; }; then
25602 ac_cv_lib_socket_connect=yes
25603else
25604 echo "$as_me: failed program was:" >&5
25605sed 's/^/| /' conftest.$ac_ext >&5
25606
25607ac_cv_lib_socket_connect=no
25608fi
ac1cb8d3
VS
25609rm -f conftest.err conftest.$ac_objext \
25610 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25611LIBS=$ac_check_lib_save_LIBS
25612fi
25613echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
25614echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
25615if test $ac_cv_lib_socket_connect = yes; then
25616 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
25617fi
25618
25619 fi
25620
25621 # Guillermo Gomez says -lposix is necessary on A/UX.
25622 echo "$as_me:$LINENO: checking for remove" >&5
25623echo $ECHO_N "checking for remove... $ECHO_C" >&6
25624if test "${ac_cv_func_remove+set}" = set; then
25625 echo $ECHO_N "(cached) $ECHO_C" >&6
25626else
25627 cat >conftest.$ac_ext <<_ACEOF
25628/* confdefs.h. */
25629_ACEOF
25630cat confdefs.h >>conftest.$ac_ext
25631cat >>conftest.$ac_ext <<_ACEOF
25632/* end confdefs.h. */
ac1cb8d3
VS
25633/* Define remove to an innocuous variant, in case <limits.h> declares remove.
25634 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25635#define remove innocuous_remove
25636
a848cd7e
SC
25637/* System header to define __stub macros and hopefully few prototypes,
25638 which can conflict with char remove (); below.
25639 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25640 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 25641
a848cd7e
SC
25642#ifdef __STDC__
25643# include <limits.h>
25644#else
25645# include <assert.h>
25646#endif
ac1cb8d3
VS
25647
25648#undef remove
25649
a848cd7e
SC
25650/* Override any gcc2 internal prototype to avoid an error. */
25651#ifdef __cplusplus
25652extern "C"
25653{
25654#endif
25655/* We use char because int might match the return type of a gcc2
25656 builtin and then its argument prototype would still apply. */
25657char remove ();
25658/* The GNU C library defines this for functions which it implements
25659 to always fail with ENOSYS. Some functions are actually named
25660 something starting with __ and the normal name is an alias. */
25661#if defined (__stub_remove) || defined (__stub___remove)
25662choke me
25663#else
25664char (*f) () = remove;
25665#endif
25666#ifdef __cplusplus
25667}
25668#endif
25669
25670int
25671main ()
25672{
25673return f != remove;
25674 ;
25675 return 0;
25676}
25677_ACEOF
25678rm -f conftest.$ac_objext conftest$ac_exeext
25679if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25680 (eval $ac_link) 2>conftest.er1
a848cd7e 25681 ac_status=$?
ac1cb8d3
VS
25682 grep -v '^ *+' conftest.er1 >conftest.err
25683 rm -f conftest.er1
25684 cat conftest.err >&5
a848cd7e
SC
25685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25686 (exit $ac_status); } &&
89be85c2
VS
25687 { ac_try='test -z "$ac_c_werror_flag"
25688 || test ! -s conftest.err'
ac1cb8d3
VS
25689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25690 (eval $ac_try) 2>&5
25691 ac_status=$?
25692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25693 (exit $ac_status); }; } &&
25694 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25696 (eval $ac_try) 2>&5
25697 ac_status=$?
25698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25699 (exit $ac_status); }; }; then
25700 ac_cv_func_remove=yes
25701else
25702 echo "$as_me: failed program was:" >&5
25703sed 's/^/| /' conftest.$ac_ext >&5
25704
25705ac_cv_func_remove=no
25706fi
ac1cb8d3
VS
25707rm -f conftest.err conftest.$ac_objext \
25708 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25709fi
25710echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
25711echo "${ECHO_T}$ac_cv_func_remove" >&6
25712
25713 if test $ac_cv_func_remove = no; then
25714 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
25715echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
25716if test "${ac_cv_lib_posix_remove+set}" = set; then
25717 echo $ECHO_N "(cached) $ECHO_C" >&6
25718else
25719 ac_check_lib_save_LIBS=$LIBS
25720LIBS="-lposix $LIBS"
25721cat >conftest.$ac_ext <<_ACEOF
25722/* confdefs.h. */
25723_ACEOF
25724cat confdefs.h >>conftest.$ac_ext
25725cat >>conftest.$ac_ext <<_ACEOF
25726/* end confdefs.h. */
25727
25728/* Override any gcc2 internal prototype to avoid an error. */
25729#ifdef __cplusplus
25730extern "C"
25731#endif
25732/* We use char because int might match the return type of a gcc2
25733 builtin and then its argument prototype would still apply. */
25734char remove ();
25735int
25736main ()
25737{
25738remove ();
25739 ;
25740 return 0;
25741}
25742_ACEOF
25743rm -f conftest.$ac_objext conftest$ac_exeext
25744if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25745 (eval $ac_link) 2>conftest.er1
a848cd7e 25746 ac_status=$?
ac1cb8d3
VS
25747 grep -v '^ *+' conftest.er1 >conftest.err
25748 rm -f conftest.er1
25749 cat conftest.err >&5
a848cd7e
SC
25750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25751 (exit $ac_status); } &&
89be85c2
VS
25752 { ac_try='test -z "$ac_c_werror_flag"
25753 || test ! -s conftest.err'
ac1cb8d3
VS
25754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25755 (eval $ac_try) 2>&5
25756 ac_status=$?
25757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25758 (exit $ac_status); }; } &&
25759 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25761 (eval $ac_try) 2>&5
25762 ac_status=$?
25763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25764 (exit $ac_status); }; }; then
25765 ac_cv_lib_posix_remove=yes
25766else
25767 echo "$as_me: failed program was:" >&5
25768sed 's/^/| /' conftest.$ac_ext >&5
25769
25770ac_cv_lib_posix_remove=no
25771fi
ac1cb8d3
VS
25772rm -f conftest.err conftest.$ac_objext \
25773 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25774LIBS=$ac_check_lib_save_LIBS
25775fi
25776echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
25777echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
25778if test $ac_cv_lib_posix_remove = yes; then
25779 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
25780fi
25781
25782 fi
25783
25784 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
25785 echo "$as_me:$LINENO: checking for shmat" >&5
25786echo $ECHO_N "checking for shmat... $ECHO_C" >&6
25787if test "${ac_cv_func_shmat+set}" = set; then
25788 echo $ECHO_N "(cached) $ECHO_C" >&6
25789else
25790 cat >conftest.$ac_ext <<_ACEOF
25791/* confdefs.h. */
25792_ACEOF
25793cat confdefs.h >>conftest.$ac_ext
25794cat >>conftest.$ac_ext <<_ACEOF
25795/* end confdefs.h. */
ac1cb8d3
VS
25796/* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
25797 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25798#define shmat innocuous_shmat
25799
a848cd7e
SC
25800/* System header to define __stub macros and hopefully few prototypes,
25801 which can conflict with char shmat (); below.
25802 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25803 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 25804
a848cd7e
SC
25805#ifdef __STDC__
25806# include <limits.h>
25807#else
25808# include <assert.h>
25809#endif
ac1cb8d3
VS
25810
25811#undef shmat
25812
a848cd7e
SC
25813/* Override any gcc2 internal prototype to avoid an error. */
25814#ifdef __cplusplus
25815extern "C"
25816{
25817#endif
25818/* We use char because int might match the return type of a gcc2
25819 builtin and then its argument prototype would still apply. */
25820char shmat ();
25821/* The GNU C library defines this for functions which it implements
25822 to always fail with ENOSYS. Some functions are actually named
25823 something starting with __ and the normal name is an alias. */
25824#if defined (__stub_shmat) || defined (__stub___shmat)
25825choke me
25826#else
25827char (*f) () = shmat;
25828#endif
25829#ifdef __cplusplus
25830}
25831#endif
25832
25833int
25834main ()
25835{
25836return f != shmat;
25837 ;
25838 return 0;
25839}
25840_ACEOF
25841rm -f conftest.$ac_objext conftest$ac_exeext
25842if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25843 (eval $ac_link) 2>conftest.er1
a848cd7e 25844 ac_status=$?
ac1cb8d3
VS
25845 grep -v '^ *+' conftest.er1 >conftest.err
25846 rm -f conftest.er1
25847 cat conftest.err >&5
a848cd7e
SC
25848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25849 (exit $ac_status); } &&
89be85c2
VS
25850 { ac_try='test -z "$ac_c_werror_flag"
25851 || test ! -s conftest.err'
ac1cb8d3
VS
25852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25853 (eval $ac_try) 2>&5
25854 ac_status=$?
25855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25856 (exit $ac_status); }; } &&
25857 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25859 (eval $ac_try) 2>&5
25860 ac_status=$?
25861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25862 (exit $ac_status); }; }; then
25863 ac_cv_func_shmat=yes
25864else
25865 echo "$as_me: failed program was:" >&5
25866sed 's/^/| /' conftest.$ac_ext >&5
25867
25868ac_cv_func_shmat=no
25869fi
ac1cb8d3
VS
25870rm -f conftest.err conftest.$ac_objext \
25871 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25872fi
25873echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
25874echo "${ECHO_T}$ac_cv_func_shmat" >&6
25875
25876 if test $ac_cv_func_shmat = no; then
25877 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
25878echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
25879if test "${ac_cv_lib_ipc_shmat+set}" = set; then
25880 echo $ECHO_N "(cached) $ECHO_C" >&6
25881else
25882 ac_check_lib_save_LIBS=$LIBS
25883LIBS="-lipc $LIBS"
25884cat >conftest.$ac_ext <<_ACEOF
25885/* confdefs.h. */
25886_ACEOF
25887cat confdefs.h >>conftest.$ac_ext
25888cat >>conftest.$ac_ext <<_ACEOF
25889/* end confdefs.h. */
25890
25891/* Override any gcc2 internal prototype to avoid an error. */
25892#ifdef __cplusplus
25893extern "C"
25894#endif
25895/* We use char because int might match the return type of a gcc2
25896 builtin and then its argument prototype would still apply. */
25897char shmat ();
25898int
25899main ()
25900{
25901shmat ();
25902 ;
25903 return 0;
25904}
25905_ACEOF
25906rm -f conftest.$ac_objext conftest$ac_exeext
25907if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25908 (eval $ac_link) 2>conftest.er1
a848cd7e 25909 ac_status=$?
ac1cb8d3
VS
25910 grep -v '^ *+' conftest.er1 >conftest.err
25911 rm -f conftest.er1
25912 cat conftest.err >&5
a848cd7e
SC
25913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25914 (exit $ac_status); } &&
89be85c2
VS
25915 { ac_try='test -z "$ac_c_werror_flag"
25916 || test ! -s conftest.err'
ac1cb8d3
VS
25917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25918 (eval $ac_try) 2>&5
25919 ac_status=$?
25920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25921 (exit $ac_status); }; } &&
25922 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25924 (eval $ac_try) 2>&5
25925 ac_status=$?
25926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25927 (exit $ac_status); }; }; then
25928 ac_cv_lib_ipc_shmat=yes
25929else
25930 echo "$as_me: failed program was:" >&5
25931sed 's/^/| /' conftest.$ac_ext >&5
25932
25933ac_cv_lib_ipc_shmat=no
25934fi
ac1cb8d3
VS
25935rm -f conftest.err conftest.$ac_objext \
25936 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25937LIBS=$ac_check_lib_save_LIBS
25938fi
25939echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
25940echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
25941if test $ac_cv_lib_ipc_shmat = yes; then
25942 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
25943fi
25944
25945 fi
25946 fi
25947
25948 # Check for libraries that X11R6 Xt/Xaw programs need.
25949 ac_save_LDFLAGS=$LDFLAGS
25950 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
25951 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
25952 # check for ICE first), but we must link in the order -lSM -lICE or
25953 # we get undefined symbols. So assume we have SM if we have ICE.
25954 # These have to be linked with before -lX11, unlike the other
25955 # libraries we check for below, so use a different variable.
25956 # John Interrante, Karl Berry
25957 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
25958echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
25959if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
25960 echo $ECHO_N "(cached) $ECHO_C" >&6
25961else
25962 ac_check_lib_save_LIBS=$LIBS
25963LIBS="-lICE $X_EXTRA_LIBS $LIBS"
25964cat >conftest.$ac_ext <<_ACEOF
25965/* confdefs.h. */
25966_ACEOF
25967cat confdefs.h >>conftest.$ac_ext
25968cat >>conftest.$ac_ext <<_ACEOF
25969/* end confdefs.h. */
25970
25971/* Override any gcc2 internal prototype to avoid an error. */
25972#ifdef __cplusplus
25973extern "C"
25974#endif
25975/* We use char because int might match the return type of a gcc2
25976 builtin and then its argument prototype would still apply. */
25977char IceConnectionNumber ();
25978int
25979main ()
25980{
25981IceConnectionNumber ();
25982 ;
25983 return 0;
25984}
25985_ACEOF
25986rm -f conftest.$ac_objext conftest$ac_exeext
25987if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25988 (eval $ac_link) 2>conftest.er1
a848cd7e 25989 ac_status=$?
ac1cb8d3
VS
25990 grep -v '^ *+' conftest.er1 >conftest.err
25991 rm -f conftest.er1
25992 cat conftest.err >&5
a848cd7e
SC
25993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25994 (exit $ac_status); } &&
89be85c2
VS
25995 { ac_try='test -z "$ac_c_werror_flag"
25996 || test ! -s conftest.err'
ac1cb8d3
VS
25997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25998 (eval $ac_try) 2>&5
25999 ac_status=$?
26000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26001 (exit $ac_status); }; } &&
26002 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26004 (eval $ac_try) 2>&5
26005 ac_status=$?
26006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26007 (exit $ac_status); }; }; then
26008 ac_cv_lib_ICE_IceConnectionNumber=yes
26009else
26010 echo "$as_me: failed program was:" >&5
26011sed 's/^/| /' conftest.$ac_ext >&5
26012
26013ac_cv_lib_ICE_IceConnectionNumber=no
26014fi
ac1cb8d3
VS
26015rm -f conftest.err conftest.$ac_objext \
26016 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26017LIBS=$ac_check_lib_save_LIBS
26018fi
26019echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
26020echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
26021if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
26022 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
26023fi
26024
26025 LDFLAGS=$ac_save_LDFLAGS
26026
26027fi
26028
26029
26030 if test "$no_x" = "yes"; then
26031 { { echo "$as_me:$LINENO: error: X11 not found" >&5
26032echo "$as_me: error: X11 not found" >&2;}
26033 { (exit please use --x-includes and/or --x-libraries options); exit please use --x-includes and/or --x-libraries options; }; }
26034 fi
26035
74b84332
VS
26036 GUI_TK_LIBRARY=`echo $X_LIBS | sed 's/ -LNONE//' | sed 's/ -RNONE//'`
26037 TOOLKIT_INCLUDE=`echo $X_CFLAGS | sed 's/ -INONE//'`
a848cd7e
SC
26038 AFMINSTALL=afminstall
26039 COMPILED_X_PROGRAM=0
26040
74b84332
VS
26041 fi
26042
26043 if test "$wxUSE_X11" = 1; then
a848cd7e
SC
26044 if test "$wxUSE_NANOX" = "yes"; then
26045 echo "$as_me:$LINENO: checking for MicroWindows/NanoX distribution" >&5
26046echo $ECHO_N "checking for MicroWindows/NanoX distribution... $ECHO_C" >&6
26047 if test "x$MICROWIN" = x ; then
26048 echo "$as_me:$LINENO: result: not found" >&5
26049echo "${ECHO_T}not found" >&6
26050 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&5
26051echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&2;}
26052 { (exit 1); exit 1; }; }
26053 else
26054 echo "$as_me:$LINENO: result: $MICROWIN" >&5
26055echo "${ECHO_T}$MICROWIN" >&6
26056 cat >>confdefs.h <<\_ACEOF
26057#define wxUSE_NANOX 1
26058_ACEOF
26059
26060 fi
26061 fi
26062
26063 if test "$wxUSE_UNICODE" = "yes"; then
26064
26065 succeeded=no
26066
26067 if test -z "$PKG_CONFIG"; then
26068 # Extract the first word of "pkg-config", so it can be a program name with args.
26069set dummy pkg-config; ac_word=$2
26070echo "$as_me:$LINENO: checking for $ac_word" >&5
26071echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
26072if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
26073 echo $ECHO_N "(cached) $ECHO_C" >&6
26074else
26075 case $PKG_CONFIG in
26076 [\\/]* | ?:[\\/]*)
26077 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
26078 ;;
26079 *)
26080 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26081for as_dir in $PATH
26082do
26083 IFS=$as_save_IFS
26084 test -z "$as_dir" && as_dir=.
26085 for ac_exec_ext in '' $ac_executable_extensions; do
26086 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26087 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
26088 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26089 break 2
26090 fi
26091done
26092done
26093
26094 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
26095 ;;
26096esac
26097fi
26098PKG_CONFIG=$ac_cv_path_PKG_CONFIG
26099
26100if test -n "$PKG_CONFIG"; then
26101 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
26102echo "${ECHO_T}$PKG_CONFIG" >&6
26103else
26104 echo "$as_me:$LINENO: result: no" >&5
26105echo "${ECHO_T}no" >&6
26106fi
26107
26108 fi
26109
26110 if test "$PKG_CONFIG" = "no" ; then
26111 echo "*** The pkg-config script could not be found. Make sure it is"
26112 echo "*** in your path, or set the PKG_CONFIG environment variable"
26113 echo "*** to the full path to pkg-config."
26114 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
26115 else
26116 PKG_CONFIG_MIN_VERSION=0.9.0
26117 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
26118 echo "$as_me:$LINENO: checking for pangox" >&5
26119echo $ECHO_N "checking for pangox... $ECHO_C" >&6
26120
26121 if $PKG_CONFIG --exists "pangox" ; then
26122 echo "$as_me:$LINENO: result: yes" >&5
26123echo "${ECHO_T}yes" >&6
26124 succeeded=yes
26125
26126 echo "$as_me:$LINENO: checking PANGOX_CFLAGS" >&5
26127echo $ECHO_N "checking PANGOX_CFLAGS... $ECHO_C" >&6
26128 PANGOX_CFLAGS=`$PKG_CONFIG --cflags "pangox"`
26129 echo "$as_me:$LINENO: result: $PANGOX_CFLAGS" >&5
26130echo "${ECHO_T}$PANGOX_CFLAGS" >&6
26131
26132 echo "$as_me:$LINENO: checking PANGOX_LIBS" >&5
26133echo $ECHO_N "checking PANGOX_LIBS... $ECHO_C" >&6
26134 PANGOX_LIBS=`$PKG_CONFIG --libs "pangox"`
26135 echo "$as_me:$LINENO: result: $PANGOX_LIBS" >&5
26136echo "${ECHO_T}$PANGOX_LIBS" >&6
26137 else
26138 PANGOX_CFLAGS=""
26139 PANGOX_LIBS=""
26140 ## If we have a custom action on failure, don't print errors, but
26141 ## do set a variable so people can do so.
26142 PANGOX_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangox"`
26143
26144 fi
26145
26146
26147
26148 else
26149 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
26150 echo "*** See http://www.freedesktop.org/software/pkgconfig"
26151 fi
26152 fi
26153
26154 if test $succeeded = yes; then
26155
26156 CXXFLAGS="$CXXFLAGS $PANGOX_CFLAGS"
26157 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOX_LIBS"
26158
26159 else
26160
26161 { { echo "$as_me:$LINENO: error: pangox library not found, library cannot be compiled in Unicode mode" >&5
26162echo "$as_me: error: pangox library not found, library cannot be compiled in Unicode mode" >&2;}
26163 { (exit 1); exit 1; }; }
26164
26165
26166 fi
26167
26168
26169 succeeded=no
26170
26171 if test -z "$PKG_CONFIG"; then
26172 # Extract the first word of "pkg-config", so it can be a program name with args.
26173set dummy pkg-config; ac_word=$2
26174echo "$as_me:$LINENO: checking for $ac_word" >&5
26175echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
26176if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
26177 echo $ECHO_N "(cached) $ECHO_C" >&6
26178else
26179 case $PKG_CONFIG in
26180 [\\/]* | ?:[\\/]*)
26181 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
26182 ;;
26183 *)
26184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26185for as_dir in $PATH
26186do
26187 IFS=$as_save_IFS
26188 test -z "$as_dir" && as_dir=.
26189 for ac_exec_ext in '' $ac_executable_extensions; do
26190 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26191 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
26192 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26193 break 2
26194 fi
26195done
26196done
26197
26198 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
26199 ;;
26200esac
26201fi
26202PKG_CONFIG=$ac_cv_path_PKG_CONFIG
26203
26204if test -n "$PKG_CONFIG"; then
26205 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
26206echo "${ECHO_T}$PKG_CONFIG" >&6
26207else
26208 echo "$as_me:$LINENO: result: no" >&5
26209echo "${ECHO_T}no" >&6
26210fi
26211
26212 fi
26213
26214 if test "$PKG_CONFIG" = "no" ; then
26215 echo "*** The pkg-config script could not be found. Make sure it is"
26216 echo "*** in your path, or set the PKG_CONFIG environment variable"
26217 echo "*** to the full path to pkg-config."
26218 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
26219 else
26220 PKG_CONFIG_MIN_VERSION=0.9.0
26221 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
26222 echo "$as_me:$LINENO: checking for pangoft2" >&5
26223echo $ECHO_N "checking for pangoft2... $ECHO_C" >&6
26224
26225 if $PKG_CONFIG --exists "pangoft2" ; then
26226 echo "$as_me:$LINENO: result: yes" >&5
26227echo "${ECHO_T}yes" >&6
26228 succeeded=yes
26229
26230 echo "$as_me:$LINENO: checking PANGOFT2_CFLAGS" >&5
26231echo $ECHO_N "checking PANGOFT2_CFLAGS... $ECHO_C" >&6
26232 PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"`
26233 echo "$as_me:$LINENO: result: $PANGOFT2_CFLAGS" >&5
26234echo "${ECHO_T}$PANGOFT2_CFLAGS" >&6
26235
26236 echo "$as_me:$LINENO: checking PANGOFT2_LIBS" >&5
26237echo $ECHO_N "checking PANGOFT2_LIBS... $ECHO_C" >&6
26238 PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"`
26239 echo "$as_me:$LINENO: result: $PANGOFT2_LIBS" >&5
26240echo "${ECHO_T}$PANGOFT2_LIBS" >&6
26241 else
26242 PANGOFT2_CFLAGS=""
26243 PANGOFT2_LIBS=""
26244 ## If we have a custom action on failure, don't print errors, but
26245 ## do set a variable so people can do so.
26246 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
26247
26248 fi
26249
26250
26251
26252 else
26253 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
26254 echo "*** See http://www.freedesktop.org/software/pkgconfig"
26255 fi
26256 fi
26257
26258 if test $succeeded = yes; then
26259
26260 CXXFLAGS="$CXXFLAGS $PANGOFT2_CFLAGS"
26261 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOFT2_LIBS"
26262
26263 else
26264
26265 { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5
26266echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;}
26267 wxUSE_PRINTING_ARCHITECTURE="no"
26268
26269
26270 fi
26271
26272
26273 succeeded=no
26274
26275 if test -z "$PKG_CONFIG"; then
26276 # Extract the first word of "pkg-config", so it can be a program name with args.
26277set dummy pkg-config; ac_word=$2
26278echo "$as_me:$LINENO: checking for $ac_word" >&5
26279echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
26280if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
26281 echo $ECHO_N "(cached) $ECHO_C" >&6
26282else
26283 case $PKG_CONFIG in
26284 [\\/]* | ?:[\\/]*)
26285 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
26286 ;;
26287 *)
26288 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26289for as_dir in $PATH
26290do
26291 IFS=$as_save_IFS
26292 test -z "$as_dir" && as_dir=.
26293 for ac_exec_ext in '' $ac_executable_extensions; do
26294 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26295 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
26296 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26297 break 2
26298 fi
26299done
26300done
26301
26302 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
26303 ;;
26304esac
26305fi
26306PKG_CONFIG=$ac_cv_path_PKG_CONFIG
26307
26308if test -n "$PKG_CONFIG"; then
26309 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
26310echo "${ECHO_T}$PKG_CONFIG" >&6
26311else
26312 echo "$as_me:$LINENO: result: no" >&5
26313echo "${ECHO_T}no" >&6
26314fi
26315
26316 fi
26317
26318 if test "$PKG_CONFIG" = "no" ; then
26319 echo "*** The pkg-config script could not be found. Make sure it is"
26320 echo "*** in your path, or set the PKG_CONFIG environment variable"
26321 echo "*** to the full path to pkg-config."
26322 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
26323 else
26324 PKG_CONFIG_MIN_VERSION=0.9.0
26325 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
26326 echo "$as_me:$LINENO: checking for pangoxft" >&5
26327echo $ECHO_N "checking for pangoxft... $ECHO_C" >&6
26328
26329 if $PKG_CONFIG --exists "pangoxft" ; then
26330 echo "$as_me:$LINENO: result: yes" >&5
26331echo "${ECHO_T}yes" >&6
26332 succeeded=yes
26333
26334 echo "$as_me:$LINENO: checking PANGOXFT_CFLAGS" >&5
26335echo $ECHO_N "checking PANGOXFT_CFLAGS... $ECHO_C" >&6
26336 PANGOXFT_CFLAGS=`$PKG_CONFIG --cflags "pangoxft"`
26337 echo "$as_me:$LINENO: result: $PANGOXFT_CFLAGS" >&5
26338echo "${ECHO_T}$PANGOXFT_CFLAGS" >&6
26339
26340 echo "$as_me:$LINENO: checking PANGOXFT_LIBS" >&5
26341echo $ECHO_N "checking PANGOXFT_LIBS... $ECHO_C" >&6
26342 PANGOXFT_LIBS=`$PKG_CONFIG --libs "pangoxft"`
26343 echo "$as_me:$LINENO: result: $PANGOXFT_LIBS" >&5
26344echo "${ECHO_T}$PANGOXFT_LIBS" >&6
26345 else
26346 PANGOXFT_CFLAGS=""
26347 PANGOXFT_LIBS=""
26348 ## If we have a custom action on failure, don't print errors, but
26349 ## do set a variable so people can do so.
26350 PANGOXFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoxft"`
26351
26352 fi
26353
26354
26355
26356 else
26357 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
26358 echo "*** See http://www.freedesktop.org/software/pkgconfig"
26359 fi
26360 fi
26361
26362 if test $succeeded = yes; then
26363
4ae1af05
MB
26364 cat >>confdefs.h <<\_ACEOF
26365#define HAVE_PANGO_XFT 1
26366_ACEOF
26367
a848cd7e
SC
26368 CXXFLAGS="$CXXFLAGS $PANGOXFT_CFLAGS"
26369 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOXFT_LIBS"
26370
26371 else
26372
26373 { echo "$as_me:$LINENO: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&5
26374echo "$as_me: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&2;}
26375
26376
26377 fi
26378
304205f1
VS
26379 save_CFLAGS="$CFLAGS"
26380 save_LIBS="$LIBS"
26381 CFLAGS="$CFLAGS $PANGOX_CFLAGS"
26382 LIBS="$LIBS $PANGOX_LIBS"
26383
26384for ac_func in pango_font_family_is_monospace
26385do
26386as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26387echo "$as_me:$LINENO: checking for $ac_func" >&5
26388echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26389if eval "test \"\${$as_ac_var+set}\" = set"; then
26390 echo $ECHO_N "(cached) $ECHO_C" >&6
26391else
26392 cat >conftest.$ac_ext <<_ACEOF
26393/* confdefs.h. */
26394_ACEOF
26395cat confdefs.h >>conftest.$ac_ext
26396cat >>conftest.$ac_ext <<_ACEOF
26397/* end confdefs.h. */
26398/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26399 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26400#define $ac_func innocuous_$ac_func
26401
26402/* System header to define __stub macros and hopefully few prototypes,
26403 which can conflict with char $ac_func (); below.
26404 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26405 <limits.h> exists even on freestanding compilers. */
26406
26407#ifdef __STDC__
26408# include <limits.h>
26409#else
26410# include <assert.h>
26411#endif
26412
26413#undef $ac_func
26414
26415/* Override any gcc2 internal prototype to avoid an error. */
26416#ifdef __cplusplus
26417extern "C"
26418{
26419#endif
26420/* We use char because int might match the return type of a gcc2
26421 builtin and then its argument prototype would still apply. */
26422char $ac_func ();
26423/* The GNU C library defines this for functions which it implements
26424 to always fail with ENOSYS. Some functions are actually named
26425 something starting with __ and the normal name is an alias. */
26426#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26427choke me
26428#else
26429char (*f) () = $ac_func;
26430#endif
26431#ifdef __cplusplus
26432}
26433#endif
26434
26435int
26436main ()
26437{
26438return f != $ac_func;
26439 ;
26440 return 0;
26441}
26442_ACEOF
26443rm -f conftest.$ac_objext conftest$ac_exeext
26444if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26445 (eval $ac_link) 2>conftest.er1
26446 ac_status=$?
26447 grep -v '^ *+' conftest.er1 >conftest.err
26448 rm -f conftest.er1
26449 cat conftest.err >&5
26450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26451 (exit $ac_status); } &&
89be85c2
VS
26452 { ac_try='test -z "$ac_c_werror_flag"
26453 || test ! -s conftest.err'
304205f1
VS
26454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26455 (eval $ac_try) 2>&5
26456 ac_status=$?
26457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26458 (exit $ac_status); }; } &&
26459 { ac_try='test -s conftest$ac_exeext'
26460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26461 (eval $ac_try) 2>&5
26462 ac_status=$?
26463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26464 (exit $ac_status); }; }; then
26465 eval "$as_ac_var=yes"
26466else
26467 echo "$as_me: failed program was:" >&5
26468sed 's/^/| /' conftest.$ac_ext >&5
26469
26470eval "$as_ac_var=no"
26471fi
26472rm -f conftest.err conftest.$ac_objext \
26473 conftest$ac_exeext conftest.$ac_ext
26474fi
26475echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26476echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26477if test `eval echo '${'$as_ac_var'}'` = yes; then
26478 cat >>confdefs.h <<_ACEOF
26479#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26480_ACEOF
26481
26482fi
26483done
26484
26485 CFLAGS="$save_CFLAGS"
26486 LIBS="$save_LIBS"
a848cd7e
SC
26487 fi
26488
26489 wxUSE_UNIVERSAL="yes"
26490
26491 if test "$wxUSE_NANOX" = "yes"; then
26492 TOOLKIT_INCLUDE="-I\$(top_srcdir)/include/wx/x11/nanox -I\$(MICROWIN)/src/include $TOOLKIT_INCLUDE"
26493 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"
26494 GUI_TK_LIBRARY="$GUI_TK_LIBRARY \$(MICROWIN)/src/lib/libnano-X.a"
26495 else
26496 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lX11"
26497 fi
26498
a848cd7e
SC
26499 TOOLKIT=X11
26500 GUIDIST=X11_DIST
26501 fi
26502
26503 if test "$wxUSE_MOTIF" = 1; then
74b84332
VS
26504 echo "$as_me:$LINENO: checking for Motif/Lesstif headers" >&5
26505echo $ECHO_N "checking for Motif/Lesstif headers... $ECHO_C" >&6
a848cd7e 26506
74b84332
VS
26507ac_find_includes=
26508for ac_dir in $SEARCH_INCLUDE /usr/include;
26509 do
26510 if test -f "$ac_dir/Xm/Xm.h"; then
26511 ac_find_includes=$ac_dir
26512 break
26513 fi
26514 done
a848cd7e 26515
74b84332
VS
26516 if test "$ac_find_includes" != "" ; then
26517 echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
26518echo "${ECHO_T}found in $ac_find_includes" >&6
26519
26520 if test "x$ac_find_includes" = "x/usr/include"; then
26521 ac_path_to_include=""
26522 else
26523 echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null
26524 result=$?
26525 if test $result = 0; then
26526 ac_path_to_include=""
26527 else
26528 ac_path_to_include=" -I$ac_find_includes"
26529 fi
a848cd7e
SC
26530 fi
26531
74b84332
VS
26532 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE$ac_path_to_include"
26533 else
26534 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
26535/* confdefs.h. */
26536_ACEOF
26537cat confdefs.h >>conftest.$ac_ext
26538cat >>conftest.$ac_ext <<_ACEOF
26539/* end confdefs.h. */
26540
74b84332
VS
26541 #include <Xm/Xm.h>
26542
a848cd7e
SC
26543int
26544main ()
26545{
26546
74b84332
VS
26547 int version;
26548 version = xmUseVersion;
26549
a848cd7e
SC
26550 ;
26551 return 0;
26552}
26553_ACEOF
74b84332
VS
26554rm -f conftest.$ac_objext
26555if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26556 (eval $ac_compile) 2>conftest.er1
a848cd7e 26557 ac_status=$?
ac1cb8d3
VS
26558 grep -v '^ *+' conftest.er1 >conftest.err
26559 rm -f conftest.er1
26560 cat conftest.err >&5
a848cd7e
SC
26561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26562 (exit $ac_status); } &&
89be85c2
VS
26563 { ac_try='test -z "$ac_c_werror_flag"
26564 || test ! -s conftest.err'
ac1cb8d3
VS
26565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26566 (eval $ac_try) 2>&5
26567 ac_status=$?
26568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26569 (exit $ac_status); }; } &&
74b84332 26570 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
26571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26572 (eval $ac_try) 2>&5
26573 ac_status=$?
26574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26575 (exit $ac_status); }; }; then
74b84332
VS
26576
26577 echo "$as_me:$LINENO: result: found in default search path" >&5
26578echo "${ECHO_T}found in default search path" >&6
26579 COMPILED_X_PROGRAM=1
26580
a848cd7e
SC
26581else
26582 echo "$as_me: failed program was:" >&5
26583sed 's/^/| /' conftest.$ac_ext >&5
26584
a848cd7e 26585
74b84332
VS
26586 echo "$as_me:$LINENO: result: no" >&5
26587echo "${ECHO_T}no" >&6
26588 { { echo "$as_me:$LINENO: error: please set CFLAGS to contain the location of Xm/Xm.h" >&5
26589echo "$as_me: error: please set CFLAGS to contain the location of Xm/Xm.h" >&2;}
26590 { (exit 1); exit 1; }; }
a848cd7e 26591
a848cd7e 26592
a848cd7e 26593fi
74b84332
VS
26594rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26595 fi
26596
26597 if test "$COMPILED_X_PROGRAM" = 0; then
26598 echo "$as_me:$LINENO: checking for Motif/Lesstif library" >&5
26599echo $ECHO_N "checking for Motif/Lesstif library... $ECHO_C" >&6
26600
26601ac_find_libraries=
26602for ac_dir in $SEARCH_LIB /usr/lib;
26603 do
26604 for ac_extension in a so sl dylib; do
26605 if test -f "$ac_dir/libXm.$ac_extension"; then
26606 ac_find_libraries=$ac_dir
26607 break 2
a848cd7e 26608 fi
74b84332
VS
26609 done
26610 done
a848cd7e 26611
74b84332
VS
26612 if test "$ac_find_libraries" != "" ; then
26613 echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5
26614echo "${ECHO_T}found at $ac_find_libraries" >&6
a848cd7e 26615
74b84332
VS
26616
26617 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
26618 result=$?
26619 if test $result = 0; then
26620 ac_path_to_link=""
a848cd7e 26621 else
74b84332
VS
26622 ac_path_to_link=" -L$ac_find_libraries"
26623 fi
26624
26625 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
26626 else
26627 save_CFLAGS=$CFLAGS
26628 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
26629
26630 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
26631/* confdefs.h. */
26632_ACEOF
26633cat confdefs.h >>conftest.$ac_ext
26634cat >>conftest.$ac_ext <<_ACEOF
26635/* end confdefs.h. */
26636
74b84332
VS
26637 #include <Xm/Xm.h>
26638
a848cd7e
SC
26639int
26640main ()
26641{
74b84332
VS
26642
26643 int version;
26644 version = xmUseVersion;
26645
a848cd7e
SC
26646 ;
26647 return 0;
26648}
26649_ACEOF
74b84332
VS
26650rm -f conftest.$ac_objext
26651if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26652 (eval $ac_compile) 2>conftest.er1
a848cd7e 26653 ac_status=$?
ac1cb8d3
VS
26654 grep -v '^ *+' conftest.er1 >conftest.err
26655 rm -f conftest.er1
26656 cat conftest.err >&5
a848cd7e
SC
26657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26658 (exit $ac_status); } &&
89be85c2
VS
26659 { ac_try='test -z "$ac_c_werror_flag"
26660 || test ! -s conftest.err'
ac1cb8d3
VS
26661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26662 (eval $ac_try) 2>&5
26663 ac_status=$?
26664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26665 (exit $ac_status); }; } &&
74b84332 26666 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
26667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26668 (eval $ac_try) 2>&5
26669 ac_status=$?
26670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26671 (exit $ac_status); }; }; then
74b84332
VS
26672
26673 echo "$as_me:$LINENO: result: found in default search path" >&5
26674echo "${ECHO_T}found in default search path" >&6
26675 COMPILED_X_PROGRAM=1
26676
a848cd7e
SC
26677else
26678 echo "$as_me: failed program was:" >&5
26679sed 's/^/| /' conftest.$ac_ext >&5
26680
74b84332
VS
26681
26682 echo "$as_me:$LINENO: result: no" >&5
26683echo "${ECHO_T}no" >&6
26684 { { echo "$as_me:$LINENO: error: please set LDFLAGS to contain the location of libXm" >&5
26685echo "$as_me: error: please set LDFLAGS to contain the location of libXm" >&2;}
26686 { (exit 1); exit 1; }; }
26687
26688
26689fi
26690rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26691
26692 CFLAGS=$save_CFLAGS
26693 fi
26694 fi
26695
26696 echo "$as_me:$LINENO: checking if we need -lXp and/or -lSM -lICE" >&5
26697echo $ECHO_N "checking if we need -lXp and/or -lSM -lICE... $ECHO_C" >&6
26698 libp_link=""
26699 libsm_ice_link=""
26700 libs_found=0
26701 for libp in "" " -lXp"; do
26702 if test "$libs_found" = "0"; then
26703 for libsm_ice in "" " -lSM -lICE"; do
26704 if test "$libs_found" = "0"; then
26705 save_LIBS="$LIBS"
26706 LIBS="$GUI_TK_LIBRARY -lXm ${libp} -lXmu -lXext -lXt${libsm_ice} -lX11"
26707 save_CFLAGS=$CFLAGS
26708 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
26709
26710 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
26711/* confdefs.h. */
26712_ACEOF
26713cat confdefs.h >>conftest.$ac_ext
26714cat >>conftest.$ac_ext <<_ACEOF
26715/* end confdefs.h. */
26716
74b84332
VS
26717 #include <Xm/Xm.h>
26718 #include <Xm/List.h>
26719
a848cd7e
SC
26720int
26721main ()
26722{
74b84332
VS
26723
26724 XmString string = NULL;
26725 Widget w = NULL;
26726 int position = 0;
26727 XmListAddItem(w, string, position);
26728
a848cd7e
SC
26729 ;
26730 return 0;
26731}
26732_ACEOF
26733rm -f conftest.$ac_objext conftest$ac_exeext
26734if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26735 (eval $ac_link) 2>conftest.er1
a848cd7e 26736 ac_status=$?
ac1cb8d3
VS
26737 grep -v '^ *+' conftest.er1 >conftest.err
26738 rm -f conftest.er1
26739 cat conftest.err >&5
a848cd7e
SC
26740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26741 (exit $ac_status); } &&
89be85c2
VS
26742 { ac_try='test -z "$ac_c_werror_flag"
26743 || test ! -s conftest.err'
ac1cb8d3
VS
26744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26745 (eval $ac_try) 2>&5
26746 ac_status=$?
26747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26748 (exit $ac_status); }; } &&
26749 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26751 (eval $ac_try) 2>&5
26752 ac_status=$?
26753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26754 (exit $ac_status); }; }; then
26755
26756 libp_link="$libp"
26757 libsm_ice_link="$libsm_ice"
26758 echo "$as_me:$LINENO: result: need${libp_link}${libsm_ice_link}" >&5
26759echo "${ECHO_T}need${libp_link}${libsm_ice_link}" >&6
26760 libs_found=1
26761
26762else
26763 echo "$as_me: failed program was:" >&5
26764sed 's/^/| /' conftest.$ac_ext >&5
26765
26766
26767
26768fi
ac1cb8d3
VS
26769rm -f conftest.err conftest.$ac_objext \
26770 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26771
26772 LIBS="$save_LIBS"
26773 CFLAGS=$save_CFLAGS
26774 fi
26775 done
26776 fi
26777 done
26778
26779 if test "$libs_found" = "0"; then
26780 echo "$as_me:$LINENO: result: can't find the right libraries" >&5
26781echo "${ECHO_T}can't find the right libraries" >&6
26782 { { echo "$as_me:$LINENO: error: can't link a simple motif program" >&5
26783echo "$as_me: error: can't link a simple motif program" >&2;}
26784 { (exit 1); exit 1; }; }
26785 fi
26786
26787 save_CFLAGS=$CFLAGS
26788 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
26789 echo "$as_me:$LINENO: checking for Motif 2" >&5
26790echo $ECHO_N "checking for Motif 2... $ECHO_C" >&6
26791 cat >conftest.$ac_ext <<_ACEOF
26792/* confdefs.h. */
26793_ACEOF
26794cat confdefs.h >>conftest.$ac_ext
26795cat >>conftest.$ac_ext <<_ACEOF
26796/* end confdefs.h. */
26797
26798 #include <Xm/Xm.h>
26799
26800int
26801main ()
26802{
26803
26804 #if XmVersion < 2000
26805 #error "Not Motif 2"
26806 #endif
26807
26808 ;
26809 return 0;
26810}
26811_ACEOF
26812rm -f conftest.$ac_objext
26813if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 26814 (eval $ac_compile) 2>conftest.er1
a848cd7e 26815 ac_status=$?
ac1cb8d3
VS
26816 grep -v '^ *+' conftest.er1 >conftest.err
26817 rm -f conftest.er1
26818 cat conftest.err >&5
a848cd7e
SC
26819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26820 (exit $ac_status); } &&
89be85c2
VS
26821 { ac_try='test -z "$ac_c_werror_flag"
26822 || test ! -s conftest.err'
ac1cb8d3
VS
26823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26824 (eval $ac_try) 2>&5
26825 ac_status=$?
26826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26827 (exit $ac_status); }; } &&
26828 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
26829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26830 (eval $ac_try) 2>&5
26831 ac_status=$?
26832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26833 (exit $ac_status); }; }; then
26834
26835 cat >>confdefs.h <<\_ACEOF
26836#define __WXMOTIF20__ 1
26837_ACEOF
26838
26839 echo "$as_me:$LINENO: result: found" >&5
26840echo "${ECHO_T}found" >&6
26841
26842else
26843 echo "$as_me: failed program was:" >&5
26844sed 's/^/| /' conftest.$ac_ext >&5
26845
26846
26847 cat >>confdefs.h <<\_ACEOF
26848#define __WXMOTIF20__ 0
26849_ACEOF
26850
26851 echo "$as_me:$LINENO: result: not found" >&5
26852echo "${ECHO_T}not found" >&6
26853
26854fi
ac1cb8d3 26855rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
26856 CFLAGS=$save_CFLAGS
26857
26858 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXm${libp_link} -lXmu -lXext -lXt${libsm_ice_link} -lX11"
a848cd7e
SC
26859 TOOLKIT=MOTIF
26860 GUIDIST=MOTIF_DIST
26861 fi
26862
74b84332 26863 if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
a848cd7e
SC
26864 if test "$wxUSE_LIBXPM" = "sys"; then
26865 echo "$as_me:$LINENO: checking for Xpm library" >&5
26866echo $ECHO_N "checking for Xpm library... $ECHO_C" >&6
26867
26868ac_find_libraries=
26869for ac_dir in $SEARCH_LIB /usr/lib;
26870 do
26871 for ac_extension in a so sl dylib; do
26872 if test -f "$ac_dir/libXpm.$ac_extension"; then
26873 ac_find_libraries=$ac_dir
26874 break 2
26875 fi
26876 done
26877 done
26878
26879 if test "$ac_find_libraries" != "" ; then
26880
26881 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
26882 result=$?
26883 if test $result = 0; then
26884 ac_path_to_link=""
26885 else
26886 ac_path_to_link=" -L$ac_find_libraries"
26887 fi
26888
26889 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
26890 echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5
26891echo "${ECHO_T}found at $ac_find_libraries" >&6
26892
26893 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
26894echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
26895if test "${wx_cv_x11_xpm_h+set}" = set; then
26896 echo $ECHO_N "(cached) $ECHO_C" >&6
26897else
26898
26899 save_CFLAGS=$CFLAGS
26900 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
26901
26902 cat >conftest.$ac_ext <<_ACEOF
26903/* confdefs.h. */
26904_ACEOF
26905cat confdefs.h >>conftest.$ac_ext
26906cat >>conftest.$ac_ext <<_ACEOF
26907/* end confdefs.h. */
26908
26909 #include <X11/xpm.h>
26910
26911int
26912main ()
26913{
26914
26915 int version;
26916 version = XpmLibraryVersion();
26917
26918 ;
26919 return 0;
26920}
26921_ACEOF
26922rm -f conftest.$ac_objext
26923if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 26924 (eval $ac_compile) 2>conftest.er1
a848cd7e 26925 ac_status=$?
ac1cb8d3
VS
26926 grep -v '^ *+' conftest.er1 >conftest.err
26927 rm -f conftest.er1
26928 cat conftest.err >&5
a848cd7e
SC
26929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26930 (exit $ac_status); } &&
89be85c2
VS
26931 { ac_try='test -z "$ac_c_werror_flag"
26932 || test ! -s conftest.err'
ac1cb8d3
VS
26933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26934 (eval $ac_try) 2>&5
26935 ac_status=$?
26936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26937 (exit $ac_status); }; } &&
26938 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
26939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26940 (eval $ac_try) 2>&5
26941 ac_status=$?
26942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26943 (exit $ac_status); }; }; then
26944 wx_cv_x11_xpm_h=yes
26945else
26946 echo "$as_me: failed program was:" >&5
26947sed 's/^/| /' conftest.$ac_ext >&5
26948
26949wx_cv_x11_xpm_h=no
26950
26951fi
ac1cb8d3 26952rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
26953
26954 CFLAGS=$save_CFLAGS
26955
26956
26957fi
26958echo "$as_me:$LINENO: result: $wx_cv_x11_xpm_h" >&5
26959echo "${ECHO_T}$wx_cv_x11_xpm_h" >&6
26960
26961 if test $wx_cv_x11_xpm_h = "yes"; then
26962 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXpm"
26963 cat >>confdefs.h <<\_ACEOF
26964#define wxHAVE_LIB_XPM 1
26965_ACEOF
26966
26967 else
26968 { echo "$as_me:$LINENO: WARNING: built-in less efficient XPM decoder will be used" >&5
26969echo "$as_me: WARNING: built-in less efficient XPM decoder will be used" >&2;}
26970 fi
26971 fi
26972
26973 fi
26974
26975 echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
26976echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6
26977if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
26978 echo $ECHO_N "(cached) $ECHO_C" >&6
26979else
26980 ac_check_lib_save_LIBS=$LIBS
26981LIBS="-lXext $GUI_TK_LIBRARY -lX11 $LIBS"
26982cat >conftest.$ac_ext <<_ACEOF
26983/* confdefs.h. */
26984_ACEOF
26985cat confdefs.h >>conftest.$ac_ext
26986cat >>conftest.$ac_ext <<_ACEOF
26987/* end confdefs.h. */
26988
26989/* Override any gcc2 internal prototype to avoid an error. */
26990#ifdef __cplusplus
26991extern "C"
26992#endif
26993/* We use char because int might match the return type of a gcc2
26994 builtin and then its argument prototype would still apply. */
26995char XShapeQueryExtension ();
26996int
26997main ()
26998{
26999XShapeQueryExtension ();
27000 ;
27001 return 0;
27002}
27003_ACEOF
27004rm -f conftest.$ac_objext conftest$ac_exeext
27005if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27006 (eval $ac_link) 2>conftest.er1
a848cd7e 27007 ac_status=$?
ac1cb8d3
VS
27008 grep -v '^ *+' conftest.er1 >conftest.err
27009 rm -f conftest.er1
27010 cat conftest.err >&5
a848cd7e
SC
27011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27012 (exit $ac_status); } &&
89be85c2
VS
27013 { ac_try='test -z "$ac_c_werror_flag"
27014 || test ! -s conftest.err'
ac1cb8d3
VS
27015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27016 (eval $ac_try) 2>&5
27017 ac_status=$?
27018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27019 (exit $ac_status); }; } &&
27020 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27022 (eval $ac_try) 2>&5
27023 ac_status=$?
27024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27025 (exit $ac_status); }; }; then
27026 ac_cv_lib_Xext_XShapeQueryExtension=yes
27027else
27028 echo "$as_me: failed program was:" >&5
27029sed 's/^/| /' conftest.$ac_ext >&5
27030
27031ac_cv_lib_Xext_XShapeQueryExtension=no
27032fi
ac1cb8d3
VS
27033rm -f conftest.err conftest.$ac_objext \
27034 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27035LIBS=$ac_check_lib_save_LIBS
27036fi
27037echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
27038echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6
27039if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
27040
27041 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXext"
27042 wxHAVE_XEXT_LIB=1
27043
27044fi
27045
27046
27047 if test "$wxHAVE_XEXT_LIB" = 1; then
27048 save_CFLAGS="$CFLAGS"
27049 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
27050
27051 echo "$as_me:$LINENO: checking for X11/extensions/shape.h" >&5
27052echo $ECHO_N "checking for X11/extensions/shape.h... $ECHO_C" >&6
27053 cat >conftest.$ac_ext <<_ACEOF
27054/* confdefs.h. */
27055_ACEOF
27056cat confdefs.h >>conftest.$ac_ext
27057cat >>conftest.$ac_ext <<_ACEOF
27058/* end confdefs.h. */
27059
27060 #include <X11/Xlib.h>
27061 #include <X11/extensions/shape.h>
27062
27063int
27064main ()
27065{
27066
27067 int dummy1, dummy2;
27068 XShapeQueryExtension((Display*)NULL,
27069 (int*)NULL, (int*)NULL);
27070
27071 ;
27072 return 0;
27073}
27074_ACEOF
27075rm -f conftest.$ac_objext
27076if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 27077 (eval $ac_compile) 2>conftest.er1
a848cd7e 27078 ac_status=$?
ac1cb8d3
VS
27079 grep -v '^ *+' conftest.er1 >conftest.err
27080 rm -f conftest.er1
27081 cat conftest.err >&5
a848cd7e
SC
27082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27083 (exit $ac_status); } &&
89be85c2
VS
27084 { ac_try='test -z "$ac_c_werror_flag"
27085 || test ! -s conftest.err'
ac1cb8d3
VS
27086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27087 (eval $ac_try) 2>&5
27088 ac_status=$?
27089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27090 (exit $ac_status); }; } &&
27091 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
27092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27093 (eval $ac_try) 2>&5
27094 ac_status=$?
27095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27096 (exit $ac_status); }; }; then
27097
27098 cat >>confdefs.h <<\_ACEOF
27099#define HAVE_XSHAPE 1
27100_ACEOF
27101
27102 echo "$as_me:$LINENO: result: found" >&5
27103echo "${ECHO_T}found" >&6
27104
27105else
27106 echo "$as_me: failed program was:" >&5
27107sed 's/^/| /' conftest.$ac_ext >&5
27108
27109
27110 echo "$as_me:$LINENO: result: not found" >&5
27111echo "${ECHO_T}not found" >&6
27112
27113fi
ac1cb8d3 27114rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
27115 CFLAGS="$save_CFLAGS"
27116
27117 fi
27118 fi
27119
27120 if test "$wxUSE_MAC" = 1; then
27121 echo "$as_me:$LINENO: checking for compiler syntax to enable Pascal strings" >&5
27122echo $ECHO_N "checking for compiler syntax to enable Pascal strings... $ECHO_C" >&6
27123 if test "$GCC" = yes; then
27124 echo "$as_me:$LINENO: result: gcc" >&5
27125echo "${ECHO_T}gcc" >&6
27126 CPPFLAGS_PASCAL="-fpascal-strings"
27127 elif test "`echo $CXX | sed -e 's@.*/@@'`" = "xlC"; then
27128 echo "$as_me:$LINENO: result: xlc" >&5
27129echo "${ECHO_T}xlc" >&6
27130 CPPFLAGS_PASCAL="-qmacpstr"
27131 else
27132 echo "$as_me:$LINENO: result: none" >&5
27133echo "${ECHO_T}none" >&6
27134 fi
27135
1e9e8aba
DE
27136 if test "x$wxUSE_UNIX" = "xyes"; then
27137 CPPFLAGS="$CPPFLAGS $CPPFLAGS_PASCAL -I\${top_srcdir}/src/mac/carbon/morefilex -I/Developer/Headers/FlatCarbon"
27138 else
27139 CPPFLAGS="$CPPFLAGS $CPPFLAGS_PASCAL -I\${top_srcdir}/src/mac/carbon/morefilex -DTARGET_CARBON"
27140 fi
a848cd7e 27141
a848cd7e
SC
27142 TOOLKIT=MAC
27143 GUIDIST=MACX_DIST
dd21ced8 27144 WXBASEPORT="_carbon"
a848cd7e
SC
27145 fi
27146
27147 if test "$wxUSE_COCOA" = 1; then
a848cd7e
SC
27148 TOOLKIT=COCOA
27149 GUIDIST=COCOA_DIST
27150 fi
27151
27152 if test "$wxUSE_PM" = 1; then
27153 TOOLKIT=PM
de59c161
RD
27154 GUIDIST=PM_DIST
27155 echo "$as_me:$LINENO: checking for type SPBCDATA" >&5
27156echo $ECHO_N "checking for type SPBCDATA... $ECHO_C" >&6
27157if test "${wx_cv_spbcdata+set}" = set; then
27158 echo $ECHO_N "(cached) $ECHO_C" >&6
27159else
27160
27161 cat >conftest.$ac_ext <<_ACEOF
de59c161
RD
27162/* confdefs.h. */
27163_ACEOF
27164cat confdefs.h >>conftest.$ac_ext
27165cat >>conftest.$ac_ext <<_ACEOF
27166/* end confdefs.h. */
27167
27168 #define INCL_PM
27169 #include <os2.h>
27170
27171int
27172main ()
27173{
27174
27175 SPBCDATA test;
27176
27177 ;
27178 return 0;
27179}
27180_ACEOF
27181rm -f conftest.$ac_objext
27182if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 27183 (eval $ac_compile) 2>conftest.er1
de59c161 27184 ac_status=$?
ac1cb8d3
VS
27185 grep -v '^ *+' conftest.er1 >conftest.err
27186 rm -f conftest.er1
27187 cat conftest.err >&5
de59c161
RD
27188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27189 (exit $ac_status); } &&
89be85c2
VS
27190 { ac_try='test -z "$ac_c_werror_flag"
27191 || test ! -s conftest.err'
ac1cb8d3
VS
27192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27193 (eval $ac_try) 2>&5
27194 ac_status=$?
27195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27196 (exit $ac_status); }; } &&
27197 { ac_try='test -s conftest.$ac_objext'
de59c161
RD
27198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27199 (eval $ac_try) 2>&5
27200 ac_status=$?
27201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27202 (exit $ac_status); }; }; then
27203 wx_cv_spbcdata=yes
27204else
27205 echo "$as_me: failed program was:" >&5
27206sed 's/^/| /' conftest.$ac_ext >&5
27207
27208wx_cv_spbcdata=no
27209
27210fi
ac1cb8d3 27211rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
de59c161
RD
27212
27213
27214fi
27215echo "$as_me:$LINENO: result: $wx_cv_spbcdata" >&5
27216echo "${ECHO_T}$wx_cv_spbcdata" >&6
27217
27218 if test $wx_cv_spbcdata = "yes"; then
27219 cat >>confdefs.h <<\_ACEOF
27220#define HAVE_SPBCDATA 1
27221_ACEOF
27222
27223 fi
a848cd7e
SC
27224 fi
27225
27226 if test "$TOOLKIT" = "PM" ; then
27227 TOOLKIT_DIR="os2"
27228 else
27229 TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"`
27230 fi
27231
a848cd7e 27232 if test "$wxUSE_UNIVERSAL" = "yes"; then
a848cd7e
SC
27233 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__"
27234 WIDGET_SET=univ
a848cd7e
SC
27235 fi
27236
27237 GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST"
27238 DISTDIR="wx\$(TOOLKIT)"
27239else
27240 USE_GUI=0
27241
27242 TOOLKIT_DIR="base"
27243
27244 if test "$USE_WIN32" = 1 ; then
a848cd7e 27245 TOOLKIT="MSW"
a848cd7e
SC
27246 fi
27247
a848cd7e
SC
27248 GUIDIST="BASE_DIST"
27249 DISTDIR="wxBase"
27250fi
27251
27252
27253
27254
27255IODBC_C_SRC=""
27256
27257
27258if test "$TOOLKIT" != "MSW" ; then
27259
27260 if test "$wxUSE_ODBC" = "sys" -o "$wxUSE_ODBC" = "yes" ; then
27261
27262 if test "${ac_cv_header_sql_h+set}" = set; then
27263 echo "$as_me:$LINENO: checking for sql.h" >&5
27264echo $ECHO_N "checking for sql.h... $ECHO_C" >&6
27265if test "${ac_cv_header_sql_h+set}" = set; then
27266 echo $ECHO_N "(cached) $ECHO_C" >&6
27267fi
27268echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
27269echo "${ECHO_T}$ac_cv_header_sql_h" >&6
27270else
27271 # Is the header compilable?
27272echo "$as_me:$LINENO: checking sql.h usability" >&5
27273echo $ECHO_N "checking sql.h usability... $ECHO_C" >&6
27274cat >conftest.$ac_ext <<_ACEOF
27275/* confdefs.h. */
27276_ACEOF
27277cat confdefs.h >>conftest.$ac_ext
27278cat >>conftest.$ac_ext <<_ACEOF
27279/* end confdefs.h. */
27280$ac_includes_default
27281#include <sql.h>
27282_ACEOF
27283rm -f conftest.$ac_objext
27284if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 27285 (eval $ac_compile) 2>conftest.er1
a848cd7e 27286 ac_status=$?
ac1cb8d3
VS
27287 grep -v '^ *+' conftest.er1 >conftest.err
27288 rm -f conftest.er1
27289 cat conftest.err >&5
a848cd7e
SC
27290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27291 (exit $ac_status); } &&
89be85c2
VS
27292 { ac_try='test -z "$ac_c_werror_flag"
27293 || test ! -s conftest.err'
ac1cb8d3
VS
27294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27295 (eval $ac_try) 2>&5
27296 ac_status=$?
27297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27298 (exit $ac_status); }; } &&
27299 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
27300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27301 (eval $ac_try) 2>&5
27302 ac_status=$?
27303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27304 (exit $ac_status); }; }; then
27305 ac_header_compiler=yes
27306else
27307 echo "$as_me: failed program was:" >&5
27308sed 's/^/| /' conftest.$ac_ext >&5
27309
27310ac_header_compiler=no
27311fi
ac1cb8d3 27312rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
27313echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27314echo "${ECHO_T}$ac_header_compiler" >&6
27315
27316# Is the header present?
27317echo "$as_me:$LINENO: checking sql.h presence" >&5
27318echo $ECHO_N "checking sql.h presence... $ECHO_C" >&6
27319cat >conftest.$ac_ext <<_ACEOF
27320/* confdefs.h. */
27321_ACEOF
27322cat confdefs.h >>conftest.$ac_ext
27323cat >>conftest.$ac_ext <<_ACEOF
27324/* end confdefs.h. */
27325#include <sql.h>
27326_ACEOF
27327if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27328 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27329 ac_status=$?
27330 grep -v '^ *+' conftest.er1 >conftest.err
27331 rm -f conftest.er1
27332 cat conftest.err >&5
27333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27334 (exit $ac_status); } >/dev/null; then
27335 if test -s conftest.err; then
27336 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 27337 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
27338 else
27339 ac_cpp_err=
27340 fi
27341else
27342 ac_cpp_err=yes
27343fi
27344if test -z "$ac_cpp_err"; then
27345 ac_header_preproc=yes
27346else
27347 echo "$as_me: failed program was:" >&5
27348sed 's/^/| /' conftest.$ac_ext >&5
27349
27350 ac_header_preproc=no
27351fi
27352rm -f conftest.err conftest.$ac_ext
27353echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27354echo "${ECHO_T}$ac_header_preproc" >&6
27355
27356# So? What about this header?
ac1cb8d3
VS
27357case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27358 yes:no: )
a848cd7e
SC
27359 { echo "$as_me:$LINENO: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&5
27360echo "$as_me: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
27361 { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the compiler's result" >&5
27362echo "$as_me: WARNING: sql.h: proceeding with the compiler's result" >&2;}
27363 ac_header_preproc=yes
a848cd7e 27364 ;;
ac1cb8d3 27365 no:yes:* )
a848cd7e
SC
27366 { echo "$as_me:$LINENO: WARNING: sql.h: present but cannot be compiled" >&5
27367echo "$as_me: WARNING: sql.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
27368 { echo "$as_me:$LINENO: WARNING: sql.h: check for missing prerequisite headers?" >&5
27369echo "$as_me: WARNING: sql.h: check for missing prerequisite headers?" >&2;}
27370 { echo "$as_me:$LINENO: WARNING: sql.h: see the Autoconf documentation" >&5
27371echo "$as_me: WARNING: sql.h: see the Autoconf documentation" >&2;}
27372 { echo "$as_me:$LINENO: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&5
27373echo "$as_me: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
27374 { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the preprocessor's result" >&5
27375echo "$as_me: WARNING: sql.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
27376 { echo "$as_me:$LINENO: WARNING: sql.h: in the future, the compiler will take precedence" >&5
27377echo "$as_me: WARNING: sql.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
27378 (
27379 cat <<\_ASBOX
ac1cb8d3
VS
27380## ----------------------------------------- ##
27381## Report this to wx-dev@lists.wxwidgets.org ##
27382## ----------------------------------------- ##
a848cd7e
SC
27383_ASBOX
27384 ) |
27385 sed "s/^/$as_me: WARNING: /" >&2
27386 ;;
27387esac
27388echo "$as_me:$LINENO: checking for sql.h" >&5
27389echo $ECHO_N "checking for sql.h... $ECHO_C" >&6
27390if test "${ac_cv_header_sql_h+set}" = set; then
27391 echo $ECHO_N "(cached) $ECHO_C" >&6
27392else
27393 ac_cv_header_sql_h=$ac_header_preproc
27394fi
27395echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
27396echo "${ECHO_T}$ac_cv_header_sql_h" >&6
27397
27398fi
27399if test $ac_cv_header_sql_h = yes; then
27400 found_sql_h=1
27401fi
27402
27403
27404 if test "x$found_sql_h" = "x1" ; then
27405 echo "$as_me:$LINENO: checking for SQLAllocEnv in -liodbc" >&5
27406echo $ECHO_N "checking for SQLAllocEnv in -liodbc... $ECHO_C" >&6
27407if test "${ac_cv_lib_iodbc_SQLAllocEnv+set}" = set; then
27408 echo $ECHO_N "(cached) $ECHO_C" >&6
27409else
27410 ac_check_lib_save_LIBS=$LIBS
27411LIBS="-liodbc $LIBS"
27412cat >conftest.$ac_ext <<_ACEOF
27413/* confdefs.h. */
27414_ACEOF
27415cat confdefs.h >>conftest.$ac_ext
27416cat >>conftest.$ac_ext <<_ACEOF
27417/* end confdefs.h. */
27418
27419/* Override any gcc2 internal prototype to avoid an error. */
27420#ifdef __cplusplus
27421extern "C"
27422#endif
27423/* We use char because int might match the return type of a gcc2
27424 builtin and then its argument prototype would still apply. */
27425char SQLAllocEnv ();
27426int
27427main ()
27428{
27429SQLAllocEnv ();
27430 ;
27431 return 0;
27432}
27433_ACEOF
27434rm -f conftest.$ac_objext conftest$ac_exeext
27435if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27436 (eval $ac_link) 2>conftest.er1
a848cd7e 27437 ac_status=$?
ac1cb8d3
VS
27438 grep -v '^ *+' conftest.er1 >conftest.err
27439 rm -f conftest.er1
27440 cat conftest.err >&5
a848cd7e
SC
27441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27442 (exit $ac_status); } &&
89be85c2
VS
27443 { ac_try='test -z "$ac_c_werror_flag"
27444 || test ! -s conftest.err'
ac1cb8d3
VS
27445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27446 (eval $ac_try) 2>&5
27447 ac_status=$?
27448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27449 (exit $ac_status); }; } &&
27450 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27452 (eval $ac_try) 2>&5
27453 ac_status=$?
27454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27455 (exit $ac_status); }; }; then
27456 ac_cv_lib_iodbc_SQLAllocEnv=yes
27457else
27458 echo "$as_me: failed program was:" >&5
27459sed 's/^/| /' conftest.$ac_ext >&5
27460
27461ac_cv_lib_iodbc_SQLAllocEnv=no
27462fi
ac1cb8d3
VS
27463rm -f conftest.err conftest.$ac_objext \
27464 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27465LIBS=$ac_check_lib_save_LIBS
27466fi
27467echo "$as_me:$LINENO: result: $ac_cv_lib_iodbc_SQLAllocEnv" >&5
27468echo "${ECHO_T}$ac_cv_lib_iodbc_SQLAllocEnv" >&6
27469if test $ac_cv_lib_iodbc_SQLAllocEnv = yes; then
27470 ODBC_LINK=" -liodbc"
27471else
27472
27473 echo "$as_me:$LINENO: checking for SQLAllocEnv in -lunixodbc" >&5
27474echo $ECHO_N "checking for SQLAllocEnv in -lunixodbc... $ECHO_C" >&6
27475if test "${ac_cv_lib_unixodbc_SQLAllocEnv+set}" = set; then
27476 echo $ECHO_N "(cached) $ECHO_C" >&6
27477else
27478 ac_check_lib_save_LIBS=$LIBS
27479LIBS="-lunixodbc $LIBS"
27480cat >conftest.$ac_ext <<_ACEOF
27481/* confdefs.h. */
27482_ACEOF
27483cat confdefs.h >>conftest.$ac_ext
27484cat >>conftest.$ac_ext <<_ACEOF
27485/* end confdefs.h. */
27486
27487/* Override any gcc2 internal prototype to avoid an error. */
27488#ifdef __cplusplus
27489extern "C"
27490#endif
27491/* We use char because int might match the return type of a gcc2
27492 builtin and then its argument prototype would still apply. */
27493char SQLAllocEnv ();
27494int
27495main ()
27496{
27497SQLAllocEnv ();
27498 ;
27499 return 0;
27500}
27501_ACEOF
27502rm -f conftest.$ac_objext conftest$ac_exeext
27503if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27504 (eval $ac_link) 2>conftest.er1
a848cd7e 27505 ac_status=$?
ac1cb8d3
VS
27506 grep -v '^ *+' conftest.er1 >conftest.err
27507 rm -f conftest.er1
27508 cat conftest.err >&5
a848cd7e
SC
27509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27510 (exit $ac_status); } &&
89be85c2
VS
27511 { ac_try='test -z "$ac_c_werror_flag"
27512 || test ! -s conftest.err'
ac1cb8d3
VS
27513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27514 (eval $ac_try) 2>&5
27515 ac_status=$?
27516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27517 (exit $ac_status); }; } &&
27518 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27520 (eval $ac_try) 2>&5
27521 ac_status=$?
27522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27523 (exit $ac_status); }; }; then
27524 ac_cv_lib_unixodbc_SQLAllocEnv=yes
27525else
27526 echo "$as_me: failed program was:" >&5
27527sed 's/^/| /' conftest.$ac_ext >&5
27528
27529ac_cv_lib_unixodbc_SQLAllocEnv=no
27530fi
ac1cb8d3
VS
27531rm -f conftest.err conftest.$ac_objext \
27532 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27533LIBS=$ac_check_lib_save_LIBS
27534fi
27535echo "$as_me:$LINENO: result: $ac_cv_lib_unixodbc_SQLAllocEnv" >&5
27536echo "${ECHO_T}$ac_cv_lib_unixodbc_SQLAllocEnv" >&6
27537if test $ac_cv_lib_unixodbc_SQLAllocEnv = yes; then
27538 ODBC_LINK=" -lunixodbc"
27539else
27540
27541 echo "$as_me:$LINENO: checking for SQLAllocEnv in -lodbc" >&5
27542echo $ECHO_N "checking for SQLAllocEnv in -lodbc... $ECHO_C" >&6
27543if test "${ac_cv_lib_odbc_SQLAllocEnv+set}" = set; then
27544 echo $ECHO_N "(cached) $ECHO_C" >&6
27545else
27546 ac_check_lib_save_LIBS=$LIBS
27547LIBS="-lodbc $LIBS"
27548cat >conftest.$ac_ext <<_ACEOF
27549/* confdefs.h. */
27550_ACEOF
27551cat confdefs.h >>conftest.$ac_ext
27552cat >>conftest.$ac_ext <<_ACEOF
27553/* end confdefs.h. */
27554
27555/* Override any gcc2 internal prototype to avoid an error. */
27556#ifdef __cplusplus
27557extern "C"
27558#endif
27559/* We use char because int might match the return type of a gcc2
27560 builtin and then its argument prototype would still apply. */
27561char SQLAllocEnv ();
27562int
27563main ()
27564{
27565SQLAllocEnv ();
27566 ;
27567 return 0;
27568}
27569_ACEOF
27570rm -f conftest.$ac_objext conftest$ac_exeext
27571if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27572 (eval $ac_link) 2>conftest.er1
a848cd7e 27573 ac_status=$?
ac1cb8d3
VS
27574 grep -v '^ *+' conftest.er1 >conftest.err
27575 rm -f conftest.er1
27576 cat conftest.err >&5
a848cd7e
SC
27577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27578 (exit $ac_status); } &&
89be85c2
VS
27579 { ac_try='test -z "$ac_c_werror_flag"
27580 || test ! -s conftest.err'
ac1cb8d3
VS
27581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27582 (eval $ac_try) 2>&5
27583 ac_status=$?
27584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27585 (exit $ac_status); }; } &&
27586 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27588 (eval $ac_try) 2>&5
27589 ac_status=$?
27590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27591 (exit $ac_status); }; }; then
27592 ac_cv_lib_odbc_SQLAllocEnv=yes
27593else
27594 echo "$as_me: failed program was:" >&5
27595sed 's/^/| /' conftest.$ac_ext >&5
27596
27597ac_cv_lib_odbc_SQLAllocEnv=no
27598fi
ac1cb8d3
VS
27599rm -f conftest.err conftest.$ac_objext \
27600 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27601LIBS=$ac_check_lib_save_LIBS
27602fi
27603echo "$as_me:$LINENO: result: $ac_cv_lib_odbc_SQLAllocEnv" >&5
27604echo "${ECHO_T}$ac_cv_lib_odbc_SQLAllocEnv" >&6
27605if test $ac_cv_lib_odbc_SQLAllocEnv = yes; then
27606 ODBC_LINK=" -lodbc"
27607fi
27608
27609
27610fi
27611
27612
27613fi
27614
27615 fi
27616 if test "x$ODBC_LINK" = "x" ; then
27617 if test "$wxUSE_ODBC" = "sys" ; then
27618 { { echo "$as_me:$LINENO: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&5
27619echo "$as_me: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&2;}
27620 { (exit 1); exit 1; }; }
27621 else
27622 { echo "$as_me:$LINENO: WARNING: system ODBC library not found, will use built-in instead" >&5
27623echo "$as_me: WARNING: system ODBC library not found, will use built-in instead" >&2;}
27624 wxUSE_ODBC=builtin
27625 fi
27626 else
27627 wxUSE_ODBC=sys
27628 fi
27629 fi
27630 if test "$wxUSE_ODBC" != "no" ; then
27631 cat >>confdefs.h <<\_ACEOF
27632#define wxUSE_ODBC 1
27633_ACEOF
27634
27635 if test "$wxUSE_ODBC" = "builtin" ; then
27636 cat >>confdefs.h <<\_ACEOF
27637#define wxUSE_BUILTIN_IODBC 1
27638_ACEOF
27639
27640 fi
27641 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db"
27642
27643 WXODBCFLAG="-D_IODBC_"
27644 fi
27645fi
27646
a848cd7e 27647
01cb68df 27648
a848cd7e 27649if test "$wxUSE_DISPLAY" = "yes"; then
2a5d7a98 27650 if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_MAC" != 1 -a "$wxUSE_COCOA" != 1; then
a848cd7e
SC
27651 echo "$as_me:$LINENO: checking for Xinerama" >&5
27652echo $ECHO_N "checking for Xinerama... $ECHO_C" >&6
27653
27654ac_find_libraries=
27655for ac_dir in $SEARCH_LIB /usr/lib;
27656 do
27657 for ac_extension in a so sl dylib; do
27658 if test -f "$ac_dir/libXinerama.$ac_extension"; then
27659 ac_find_libraries=$ac_dir
27660 break 2
27661 fi
27662 done
27663 done
27664
27665 if test "$ac_find_libraries" != "" ; then
27666
27667 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
27668 result=$?
27669 if test $result = 0; then
27670 ac_path_to_link=""
27671 else
27672 ac_path_to_link=" -L$ac_find_libraries"
27673 fi
27674
27675 if test "$ac_path_to_link" != " -L/usr/lib" ; then
27676 LDFLAGS="$LDFLAGS $ac_path_to_link"
27677 fi
27678 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXinerama"
27679 echo "$as_me:$LINENO: result: yes" >&5
27680echo "${ECHO_T}yes" >&6
27681
27682 echo "$as_me:$LINENO: checking for Xxf86vm extension" >&5
27683echo $ECHO_N "checking for Xxf86vm extension... $ECHO_C" >&6
27684
27685ac_find_libraries=
27686for ac_dir in $SEARCH_LIB /usr/lib;
27687 do
27688 for ac_extension in a so sl dylib; do
27689 if test -f "$ac_dir/libXxf86vm.$ac_extension"; then
27690 ac_find_libraries=$ac_dir
27691 break 2
27692 fi
27693 done
27694 done
27695
27696 if test "$ac_find_libraries" != "" ; then
27697 echo "$as_me:$LINENO: result: yes" >&5
27698echo "${ECHO_T}yes" >&6
27699
27700for ac_header in X11/extensions/xf86vmode.h
27701do
27702as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27703echo "$as_me:$LINENO: checking for $ac_header" >&5
27704echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27705if eval "test \"\${$as_ac_Header+set}\" = set"; then
27706 echo $ECHO_N "(cached) $ECHO_C" >&6
27707else
27708 cat >conftest.$ac_ext <<_ACEOF
27709/* confdefs.h. */
27710_ACEOF
27711cat confdefs.h >>conftest.$ac_ext
27712cat >>conftest.$ac_ext <<_ACEOF
27713/* end confdefs.h. */
27714
27715 #if HAVE_X11_XLIB_H
27716 #include <X11/Xlib.h>
27717 #endif
27718
27719
27720#include <$ac_header>
27721_ACEOF
27722rm -f conftest.$ac_objext
27723if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 27724 (eval $ac_compile) 2>conftest.er1
a848cd7e 27725 ac_status=$?
ac1cb8d3
VS
27726 grep -v '^ *+' conftest.er1 >conftest.err
27727 rm -f conftest.er1
27728 cat conftest.err >&5
a848cd7e
SC
27729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27730 (exit $ac_status); } &&
89be85c2
VS
27731 { ac_try='test -z "$ac_c_werror_flag"
27732 || test ! -s conftest.err'
ac1cb8d3
VS
27733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27734 (eval $ac_try) 2>&5
27735 ac_status=$?
27736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27737 (exit $ac_status); }; } &&
27738 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
27739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27740 (eval $ac_try) 2>&5
27741 ac_status=$?
27742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27743 (exit $ac_status); }; }; then
27744 eval "$as_ac_Header=yes"
27745else
27746 echo "$as_me: failed program was:" >&5
27747sed 's/^/| /' conftest.$ac_ext >&5
27748
27749eval "$as_ac_Header=no"
27750fi
ac1cb8d3 27751rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
27752fi
27753echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27754echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27755if test `eval echo '${'$as_ac_Header'}'` = yes; then
27756 cat >>confdefs.h <<_ACEOF
27757#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27758_ACEOF
27759
27760 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXxf86vm"
27761
27762fi
27763
27764done
27765
27766 else
27767 echo "$as_me:$LINENO: result: no" >&5
27768echo "${ECHO_T}no" >&6
27769 fi
27770
27771 else
27772 echo "$as_me:$LINENO: result: no" >&5
27773echo "${ECHO_T}no" >&6
dcc1b6ad
VS
27774 { echo "$as_me:$LINENO: WARNING: Xinerama not found; disabling wxDisplay" >&5
27775echo "$as_me: WARNING: Xinerama not found; disabling wxDisplay" >&2;}
a848cd7e
SC
27776 wxUSE_DISPLAY="no"
27777 fi
01cb68df
RG
27778 elif test "$wxUSE_MSW" = 1; then
27779
27780
27781for ac_header in multimon.h ddraw.h
27782do
27783as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5294a27e 27784echo "$as_me:$LINENO: checking for $ac_header" >&5
01cb68df
RG
27785echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27786if eval "test \"\${$as_ac_Header+set}\" = set"; then
27787 echo $ECHO_N "(cached) $ECHO_C" >&6
01cb68df 27788else
5294a27e 27789 cat >conftest.$ac_ext <<_ACEOF
01cb68df
RG
27790/* confdefs.h. */
27791_ACEOF
27792cat confdefs.h >>conftest.$ac_ext
27793cat >>conftest.$ac_ext <<_ACEOF
27794/* end confdefs.h. */
5294a27e
VZ
27795#include <windows.h>
27796
01cb68df
RG
27797#include <$ac_header>
27798_ACEOF
27799rm -f conftest.$ac_objext
27800if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 27801 (eval $ac_compile) 2>conftest.er1
01cb68df 27802 ac_status=$?
ac1cb8d3
VS
27803 grep -v '^ *+' conftest.er1 >conftest.err
27804 rm -f conftest.er1
27805 cat conftest.err >&5
01cb68df
RG
27806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27807 (exit $ac_status); } &&
89be85c2
VS
27808 { ac_try='test -z "$ac_c_werror_flag"
27809 || test ! -s conftest.err'
ac1cb8d3
VS
27810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27811 (eval $ac_try) 2>&5
27812 ac_status=$?
27813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27814 (exit $ac_status); }; } &&
27815 { ac_try='test -s conftest.$ac_objext'
01cb68df
RG
27816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27817 (eval $ac_try) 2>&5
27818 ac_status=$?
27819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27820 (exit $ac_status); }; }; then
5294a27e 27821 eval "$as_ac_Header=yes"
01cb68df
RG
27822else
27823 echo "$as_me: failed program was:" >&5
27824sed 's/^/| /' conftest.$ac_ext >&5
27825
5294a27e 27826eval "$as_ac_Header=no"
01cb68df 27827fi
ac1cb8d3 27828rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
01cb68df
RG
27829fi
27830echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27831echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
01cb68df
RG
27832if test `eval echo '${'$as_ac_Header'}'` = yes; then
27833 cat >>confdefs.h <<_ACEOF
27834#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27835_ACEOF
27836
27837else
27838
5294a27e
VZ
27839 wxUSE_DISPLAY="no"
27840 { echo "$as_me:$LINENO: WARNING: ddraw.h or multimon.h not found; disabling wxDisplay" >&5
dcc1b6ad 27841echo "$as_me: WARNING: ddraw.h or multimon.h not found; disabling wxDisplay" >&2;}
01cb68df
RG
27842
27843fi
27844
27845done
27846
a848cd7e
SC
27847 fi
27848fi
27849
27850
3b57de8b
RL
27851if test "$wxUSE_MEDIACTRL" = "yes"; then
27852 if test "$wxUSE_MSW" = 1; then
27853 wxUSE_DIRECTSHOW="yes"
27854
27855for ac_header in dshow.h
27856do
27857as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5294a27e 27858echo "$as_me:$LINENO: checking for $ac_header" >&5
3b57de8b
RL
27859echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27860if eval "test \"\${$as_ac_Header+set}\" = set"; then
27861 echo $ECHO_N "(cached) $ECHO_C" >&6
3b57de8b 27862else
5294a27e 27863 cat >conftest.$ac_ext <<_ACEOF
3b57de8b
RL
27864/* confdefs.h. */
27865_ACEOF
27866cat confdefs.h >>conftest.$ac_ext
27867cat >>conftest.$ac_ext <<_ACEOF
27868/* end confdefs.h. */
5294a27e
VZ
27869#include <windows.h>
27870
3b57de8b
RL
27871#include <$ac_header>
27872_ACEOF
27873rm -f conftest.$ac_objext
27874if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27875 (eval $ac_compile) 2>conftest.er1
27876 ac_status=$?
27877 grep -v '^ *+' conftest.er1 >conftest.err
27878 rm -f conftest.er1
27879 cat conftest.err >&5
27880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27881 (exit $ac_status); } &&
89be85c2
VS
27882 { ac_try='test -z "$ac_c_werror_flag"
27883 || test ! -s conftest.err'
3b57de8b
RL
27884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27885 (eval $ac_try) 2>&5
27886 ac_status=$?
27887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27888 (exit $ac_status); }; } &&
27889 { ac_try='test -s conftest.$ac_objext'
27890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27891 (eval $ac_try) 2>&5
27892 ac_status=$?
27893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27894 (exit $ac_status); }; }; then
5294a27e 27895 eval "$as_ac_Header=yes"
3b57de8b
RL
27896else
27897 echo "$as_me: failed program was:" >&5
27898sed 's/^/| /' conftest.$ac_ext >&5
27899
5294a27e 27900eval "$as_ac_Header=no"
3b57de8b
RL
27901fi
27902rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3b57de8b
RL
27903fi
27904echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27905echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3b57de8b
RL
27906if test `eval echo '${'$as_ac_Header'}'` = yes; then
27907 cat >>confdefs.h <<_ACEOF
27908#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27909_ACEOF
27910
27911else
27912
5294a27e
VZ
27913 wxUSE_DIRECTSHOW="no"
27914 { echo "$as_me:$LINENO: WARNING: DirectShow not installed; consider installing the DirectX7 SDK or higher" >&5
3b57de8b
RL
27915echo "$as_me: WARNING: DirectShow not installed; consider installing the DirectX7 SDK or higher" >&2;}
27916
27917fi
27918
27919done
27920
27921
27922 if test "$wxUSE_DIRECTSHOW" = "yes"; then
5294a27e 27923 cat >>confdefs.h <<\_ACEOF
3b57de8b
RL
27924#define wxUSE_DIRECTSHOW 1
27925_ACEOF
27926
5294a27e 27927 LIBS="$LIBS -lstrmiids"
a98bf0c0 27928 fi
3b57de8b 27929 fi
7e4a1c28 27930
fa9ad408 27931 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mediaplayer"
7e4a1c28
RN
27932 cat >>confdefs.h <<\_ACEOF
27933#define wxUSE_MEDIACTRL 1
27934_ACEOF
27935
3b57de8b
RL
27936fi
27937
27938
a848cd7e
SC
27939USE_OPENGL=0
27940if test "$wxUSE_OPENGL" = "yes"; then
27941 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = "1"; then
27942 OPENGL_LIBS="-framework OpenGL -framework AGL"
27943 elif test "$wxUSE_MSW" = 1; then
27944 OPENGL_LIBS="-lopengl32 -lglu32"
27945 else
27946
27947
27948ac_find_includes=
27949for ac_dir in $SEARCH_INCLUDE /usr/include;
27950 do
27951 if test -f "$ac_dir/GL/gl.h"; then
27952 ac_find_includes=$ac_dir
27953 break
27954 fi
27955 done
27956
27957 if test "$ac_find_includes" != "" ; then
27958 echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
27959echo "${ECHO_T}found in $ac_find_includes" >&6
27960
27961 if test "x$ac_find_includes" = "x/usr/include"; then
27962 ac_path_to_include=""
27963 else
27964 echo "$CPPFLAGS" | grep "\-I$ac_find_includes" > /dev/null
27965 result=$?
27966 if test $result = 0; then
27967 ac_path_to_include=""
27968 else
27969 ac_path_to_include=" -I$ac_find_includes"
27970 fi
27971 fi
27972
27973 CPPFLAGS="$CPPFLAGS$ac_path_to_include"
27974 fi
27975
27976 if test "${ac_cv_header_GL_gl_h+set}" = set; then
27977 echo "$as_me:$LINENO: checking for GL/gl.h" >&5
27978echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6
27979if test "${ac_cv_header_GL_gl_h+set}" = set; then
27980 echo $ECHO_N "(cached) $ECHO_C" >&6
27981fi
27982echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
27983echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6
27984else
27985 # Is the header compilable?
27986echo "$as_me:$LINENO: checking GL/gl.h usability" >&5
27987echo $ECHO_N "checking GL/gl.h usability... $ECHO_C" >&6
27988cat >conftest.$ac_ext <<_ACEOF
27989/* confdefs.h. */
27990_ACEOF
27991cat confdefs.h >>conftest.$ac_ext
27992cat >>conftest.$ac_ext <<_ACEOF
27993/* end confdefs.h. */
27994$ac_includes_default
27995#include <GL/gl.h>
27996_ACEOF
27997rm -f conftest.$ac_objext
27998if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 27999 (eval $ac_compile) 2>conftest.er1
a848cd7e 28000 ac_status=$?
ac1cb8d3
VS
28001 grep -v '^ *+' conftest.er1 >conftest.err
28002 rm -f conftest.er1
28003 cat conftest.err >&5
a848cd7e
SC
28004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28005 (exit $ac_status); } &&
89be85c2
VS
28006 { ac_try='test -z "$ac_c_werror_flag"
28007 || test ! -s conftest.err'
ac1cb8d3
VS
28008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28009 (eval $ac_try) 2>&5
28010 ac_status=$?
28011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28012 (exit $ac_status); }; } &&
28013 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
28014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28015 (eval $ac_try) 2>&5
28016 ac_status=$?
28017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28018 (exit $ac_status); }; }; then
28019 ac_header_compiler=yes
28020else
28021 echo "$as_me: failed program was:" >&5
28022sed 's/^/| /' conftest.$ac_ext >&5
28023
28024ac_header_compiler=no
28025fi
ac1cb8d3 28026rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
28027echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28028echo "${ECHO_T}$ac_header_compiler" >&6
28029
28030# Is the header present?
28031echo "$as_me:$LINENO: checking GL/gl.h presence" >&5
28032echo $ECHO_N "checking GL/gl.h presence... $ECHO_C" >&6
28033cat >conftest.$ac_ext <<_ACEOF
28034/* confdefs.h. */
28035_ACEOF
28036cat confdefs.h >>conftest.$ac_ext
28037cat >>conftest.$ac_ext <<_ACEOF
28038/* end confdefs.h. */
28039#include <GL/gl.h>
28040_ACEOF
28041if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
28042 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
28043 ac_status=$?
28044 grep -v '^ *+' conftest.er1 >conftest.err
28045 rm -f conftest.er1
28046 cat conftest.err >&5
28047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28048 (exit $ac_status); } >/dev/null; then
28049 if test -s conftest.err; then
28050 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 28051 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
28052 else
28053 ac_cpp_err=
28054 fi
28055else
28056 ac_cpp_err=yes
28057fi
28058if test -z "$ac_cpp_err"; then
28059 ac_header_preproc=yes
28060else
28061 echo "$as_me: failed program was:" >&5
28062sed 's/^/| /' conftest.$ac_ext >&5
28063
28064 ac_header_preproc=no
28065fi
28066rm -f conftest.err conftest.$ac_ext
28067echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28068echo "${ECHO_T}$ac_header_preproc" >&6
28069
28070# So? What about this header?
ac1cb8d3
VS
28071case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28072 yes:no: )
a848cd7e
SC
28073 { echo "$as_me:$LINENO: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&5
28074echo "$as_me: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
28075 { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the compiler's result" >&5
28076echo "$as_me: WARNING: GL/gl.h: proceeding with the compiler's result" >&2;}
28077 ac_header_preproc=yes
a848cd7e 28078 ;;
ac1cb8d3 28079 no:yes:* )
a848cd7e
SC
28080 { echo "$as_me:$LINENO: WARNING: GL/gl.h: present but cannot be compiled" >&5
28081echo "$as_me: WARNING: GL/gl.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
28082 { echo "$as_me:$LINENO: WARNING: GL/gl.h: check for missing prerequisite headers?" >&5
28083echo "$as_me: WARNING: GL/gl.h: check for missing prerequisite headers?" >&2;}
28084 { echo "$as_me:$LINENO: WARNING: GL/gl.h: see the Autoconf documentation" >&5
28085echo "$as_me: WARNING: GL/gl.h: see the Autoconf documentation" >&2;}
28086 { echo "$as_me:$LINENO: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&5
28087echo "$as_me: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
28088 { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&5
28089echo "$as_me: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
28090 { echo "$as_me:$LINENO: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&5
28091echo "$as_me: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
28092 (
28093 cat <<\_ASBOX
ac1cb8d3
VS
28094## ----------------------------------------- ##
28095## Report this to wx-dev@lists.wxwidgets.org ##
28096## ----------------------------------------- ##
a848cd7e
SC
28097_ASBOX
28098 ) |
28099 sed "s/^/$as_me: WARNING: /" >&2
28100 ;;
28101esac
28102echo "$as_me:$LINENO: checking for GL/gl.h" >&5
28103echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6
28104if test "${ac_cv_header_GL_gl_h+set}" = set; then
28105 echo $ECHO_N "(cached) $ECHO_C" >&6
28106else
28107 ac_cv_header_GL_gl_h=$ac_header_preproc
28108fi
28109echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
28110echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6
28111
28112fi
28113if test $ac_cv_header_GL_gl_h = yes; then
28114
28115 found_gl=0
28116
28117 echo "$as_me:$LINENO: checking for -lGL" >&5
28118echo $ECHO_N "checking for -lGL... $ECHO_C" >&6
28119
28120ac_find_libraries=
28121for ac_dir in $SEARCH_LIB /usr/lib;
28122 do
28123 for ac_extension in a so sl dylib; do
28124 if test -f "$ac_dir/libGL.$ac_extension"; then
28125 ac_find_libraries=$ac_dir
28126 break 2
28127 fi
28128 done
28129 done
28130
28131 if test "$ac_find_libraries" != "" ; then
28132
28133 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
28134 result=$?
28135 if test $result = 0; then
28136 ac_path_to_link=""
28137 else
28138 ac_path_to_link=" -L$ac_find_libraries"
28139 fi
28140
28141 if test "$ac_path_to_link" != " -L/usr/lib" ; then
28142 LDFLAGS_GL="$ac_path_to_link"
28143 fi
28144
28145
28146ac_find_libraries=
28147for ac_dir in $SEARCH_LIB /usr/lib;
28148 do
28149 for ac_extension in a so sl dylib; do
28150 if test -f "$ac_dir/libGLU.$ac_extension"; then
28151 ac_find_libraries=$ac_dir
28152 break 2
28153 fi
28154 done
28155 done
28156
28157 if test "$ac_find_libraries" != "" ; then
28158
28159 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
28160 result=$?
28161 if test $result = 0; then
28162 ac_path_to_link=""
28163 else
28164 ac_path_to_link=" -L$ac_find_libraries"
28165 fi
28166
28167 if test "$ac_path_to_link" != " -L/usr/lib" -a \
28168 "$ac_path_to_link" != "$LDFLAGS_GL"; then
28169 LDFLAGS_GL="$LDFLAGS_GL$ac_path_to_link"
28170 fi
28171
28172 found_gl=1
28173 OPENGL_LIBS="-lGL -lGLU"
28174 echo "$as_me:$LINENO: result: yes" >&5
28175echo "${ECHO_T}yes" >&6
28176 fi
28177 fi
28178
28179 if test "$found_gl" != 1; then
28180 echo "$as_me:$LINENO: result: no" >&5
28181echo "${ECHO_T}no" >&6
28182 echo "$as_me:$LINENO: checking for -lMesaGL" >&5
28183echo $ECHO_N "checking for -lMesaGL... $ECHO_C" >&6
28184
28185ac_find_libraries=
28186for ac_dir in $SEARCH_LIB /usr/lib;
28187 do
28188 for ac_extension in a so sl dylib; do
28189 if test -f "$ac_dir/libMesaGL.$ac_extension"; then
28190 ac_find_libraries=$ac_dir
28191 break 2
28192 fi
28193 done
28194 done
28195
28196 if test "$ac_find_libraries" != "" ; then
28197
28198 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
28199 result=$?
28200 if test $result = 0; then
28201 ac_path_to_link=""
28202 else
28203 ac_path_to_link=" -L$ac_find_libraries"
28204 fi
28205
28206 LDFLAGS_GL="$LDFLAGS$ac_path_to_link"
28207 OPENGL_LIBS="-lMesaGL -lMesaGLU"
28208 echo "$as_me:$LINENO: result: yes" >&5
28209echo "${ECHO_T}yes" >&6
28210 else
28211 echo "$as_me:$LINENO: result: no" >&5
28212echo "${ECHO_T}no" >&6
28213 fi
28214 fi
28215
28216fi
28217
28218
28219
28220 if test "x$OPENGL_LIBS" = "x"; then
28221 { { echo "$as_me:$LINENO: error: OpenGL libraries not available" >&5
28222echo "$as_me: error: OpenGL libraries not available" >&2;}
28223 { (exit 1); exit 1; }; }
28224 fi
28225 fi
28226
28227 if test "$wxUSE_OPENGL" = "yes"; then
28228 USE_OPENGL=1
28229 cat >>confdefs.h <<\_ACEOF
28230#define wxUSE_OPENGL 1
28231_ACEOF
28232
28233 cat >>confdefs.h <<\_ACEOF
28234#define wxUSE_GLCANVAS 1
28235_ACEOF
28236
28237 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl opengl/cube opengl/penguin opengl/isosurf"
28238 fi
28239fi
28240
a848cd7e
SC
28241
28242if test -n "$TOOLKIT" ; then
28243 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WX${TOOLKIT}__"
28244fi
28245
a848cd7e
SC
28246
28247
28248if test "$wxUSE_SHARED" = "yes"; then
28249 case "${host}" in
28250 *-pc-msdosdjgpp )
28251 wxUSE_SHARED=no
28252 { echo "$as_me:$LINENO: WARNING: Host system doesn't support shared libraries, disabling" >&5
28253echo "$as_me: WARNING: Host system doesn't support shared libraries, disabling" >&2;}
28254 ;;
28255 esac
28256fi
28257
a848cd7e 28258if test "$wxUSE_SHARED" = "yes"; then
a848cd7e
SC
28259
28260
28261 found_versioning=no
28262
28263
28264 if test $found_versioning = no ; then
28265 echo "$as_me:$LINENO: checking if the linker accepts --version-script" >&5
28266echo $ECHO_N "checking if the linker accepts --version-script... $ECHO_C" >&6
28267if test "${wx_cv_version_script+set}" = set; then
28268 echo $ECHO_N "(cached) $ECHO_C" >&6
28269else
28270
28271 echo "VER_1 { *; };" >conftest.sym
28272 echo "int main() { return 0; }" >conftest.cpp
28273
28274 if { ac_try='
28275 $CXX -o conftest.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
28276 -Wl,--version-script,conftest.sym >/dev/null 2>conftest.stderr'
28277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28278 (eval $ac_try) 2>&5
28279 ac_status=$?
28280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28281 (exit $ac_status); }; } ; then
28282 if test -s conftest.stderr ; then
28283 wx_cv_version_script=no
28284 else
28285 wx_cv_version_script=yes
28286 fi
28287 else
28288 wx_cv_version_script=no
28289 fi
28290 rm -f conftest.output conftest.stderr conftest.sym conftest.cpp
28291
28292fi
28293echo "$as_me:$LINENO: result: $wx_cv_version_script" >&5
28294echo "${ECHO_T}$wx_cv_version_script" >&6
28295 if test $wx_cv_version_script = yes ; then
28296 LDFLAGS_VERSIONING="-Wl,--version-script,\$(top_builddir)version-script"
28297 fi
28298 fi
28299
28300
28301 case "${host}" in
28302 *-*-linux* | *-*-gnu* )
28303 SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib"
ffa0583f 28304 WXCONFIG_RPATH="-Wl,-rpath,\$libdir"
a848cd7e
SC
28305 ;;
28306
28307 *-*-solaris2* )
28308 if test "$GCC" = yes ; then
28309 CPPFLAGS="$CPPFLAGS -isystem /usr/openwin/include"
28310
28311 saveLdflags="$LDFLAGS"
28312 LDFLAGS="$saveLdflags -Wl,-rpath,/"
28313 echo "$as_me:$LINENO: checking if the linker accepts -rpath" >&5
28314echo $ECHO_N "checking if the linker accepts -rpath... $ECHO_C" >&6
28315 cat >conftest.$ac_ext <<_ACEOF
28316/* confdefs.h. */
28317_ACEOF
28318cat confdefs.h >>conftest.$ac_ext
28319cat >>conftest.$ac_ext <<_ACEOF
28320/* end confdefs.h. */
28321
28322int
28323main ()
28324{
28325
28326 ;
28327 return 0;
28328}
28329_ACEOF
28330rm -f conftest.$ac_objext conftest$ac_exeext
28331if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28332 (eval $ac_link) 2>conftest.er1
a848cd7e 28333 ac_status=$?
ac1cb8d3
VS
28334 grep -v '^ *+' conftest.er1 >conftest.err
28335 rm -f conftest.er1
28336 cat conftest.err >&5
a848cd7e
SC
28337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28338 (exit $ac_status); } &&
89be85c2
VS
28339 { ac_try='test -z "$ac_c_werror_flag"
28340 || test ! -s conftest.err'
ac1cb8d3
VS
28341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28342 (eval $ac_try) 2>&5
28343 ac_status=$?
28344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28345 (exit $ac_status); }; } &&
28346 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28348 (eval $ac_try) 2>&5
28349 ac_status=$?
28350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28351 (exit $ac_status); }; }; then
28352
28353 echo "$as_me:$LINENO: result: yes" >&5
28354echo "${ECHO_T}yes" >&6
28355 SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib"
ffa0583f 28356 WXCONFIG_RPATH="-Wl,-rpath,\$libdir"
a848cd7e
SC
28357
28358else
28359 echo "$as_me: failed program was:" >&5
28360sed 's/^/| /' conftest.$ac_ext >&5
28361
28362
28363 echo "$as_me:$LINENO: result: no" >&5
28364echo "${ECHO_T}no" >&6
28365 echo "$as_me:$LINENO: checking if the linker accepts -R" >&5
28366echo $ECHO_N "checking if the linker accepts -R... $ECHO_C" >&6
28367 LDFLAGS="$saveLdflags -Wl,-R,/"
28368 cat >conftest.$ac_ext <<_ACEOF
28369/* confdefs.h. */
28370_ACEOF
28371cat confdefs.h >>conftest.$ac_ext
28372cat >>conftest.$ac_ext <<_ACEOF
28373/* end confdefs.h. */
28374
28375int
28376main ()
28377{
28378
28379 ;
28380 return 0;
28381}
28382_ACEOF
28383rm -f conftest.$ac_objext conftest$ac_exeext
28384if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28385 (eval $ac_link) 2>conftest.er1
a848cd7e 28386 ac_status=$?
ac1cb8d3
VS
28387 grep -v '^ *+' conftest.er1 >conftest.err
28388 rm -f conftest.er1
28389 cat conftest.err >&5
a848cd7e
SC
28390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28391 (exit $ac_status); } &&
89be85c2
VS
28392 { ac_try='test -z "$ac_c_werror_flag"
28393 || test ! -s conftest.err'
ac1cb8d3
VS
28394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28395 (eval $ac_try) 2>&5
28396 ac_status=$?
28397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28398 (exit $ac_status); }; } &&
28399 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28401 (eval $ac_try) 2>&5
28402 ac_status=$?
28403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28404 (exit $ac_status); }; }; then
28405
ffa0583f 28406 echo "$as_me:$LINENO: result: yes" >&5
a848cd7e 28407echo "${ECHO_T}yes" >&6
ffa0583f
RL
28408 SAMPLES_RPATH_FLAG="-Wl,-R,\$(top_builddir)lib"
28409 WXCONFIG_RPATH="-Wl,-R,\$libdir"
28410
a848cd7e
SC
28411else
28412 echo "$as_me: failed program was:" >&5
28413sed 's/^/| /' conftest.$ac_ext >&5
28414
28415
28416 echo "$as_me:$LINENO: result: no" >&5
28417echo "${ECHO_T}no" >&6
28418
28419fi
ac1cb8d3
VS
28420rm -f conftest.err conftest.$ac_objext \
28421 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28422
28423fi
ac1cb8d3
VS
28424rm -f conftest.err conftest.$ac_objext \
28425 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28426 LDFLAGS="$saveLdflags"
28427 else
a848cd7e 28428 SAMPLES_RPATH_FLAG="-R\$(top_builddir)lib"
ffa0583f 28429 WXCONFIG_RPATH="-R\$libdir"
a848cd7e
SC
28430 fi
28431 ;;
28432
28433 powerpc-*-darwin* )
28434 SAMPLES_RPATH_POSTLINK="\$(top_builddir)change-install-names \$(LIBDIRNAME) \$(prefix) \$@"
28435 cat <<EOF >change-install-names
28436#!/bin/sh
28437libnames=\`cd \${1} ; ls -1 | grep '\.[0-9][0-9]*\.dylib\$'\`
28438inst_cmd="install_name_tool "
28439for i in \${libnames} ; do
28440 inst_cmd="\${inst_cmd} -change \${2}/lib/\${i} \${1}/\${i}"
28441done
28442\${inst_cmd} \${3}
28443EOF
28444 chmod +x change-install-names
28445 ;;
28446
28447 *-*-cygwin* | *-*-mingw32* )
28448 TOOLCHAIN_DLL_DEFS="${TOOLCHAIN_DLL_DEFS} -DWXUSINGDLL=1"
28449 ;;
28450
28451 esac
ceec2216 28452
ffa0583f
RL
28453 if test $wxUSE_RPATH = "no"; then
28454 SAMPLES_RPATH_FLAG=''
28455 SAMPLES_RPATH_POSTLINK=''
28456 WXCONFIG_RPATH=''
28457 fi
28458
28459 SHARED=1
28460
28461else
28462
ceec2216
RL
28463 config_linkage_component="-static"
28464 SHARED=0
ffa0583f 28465
ceec2216 28466fi
a848cd7e 28467
a848cd7e 28468
ceec2216
RL
28469UNICODE=0
28470lib_unicode_suffix=
28471WX_CHARTYPE="ansi"
28472if test "$wxUSE_UNICODE" = "yes"; then
28473 lib_unicode_suffix=u
28474 WX_CHARTYPE="unicode"
28475 UNICODE=1
a848cd7e
SC
28476fi
28477
ceec2216
RL
28478lib_debug_suffix=
28479WX_DEBUGTYPE="release"
28480DEBUG_FLAG=0
28481if test "$wxUSE_DEBUG_FLAG" = "yes"; then
28482 lib_debug_suffix=d
28483 WX_DEBUGTYPE="debug"
28484 DEBUG_FLAG=1
28485fi
a848cd7e 28486
ceec2216
RL
28487WX_FLAVOUR=${WX_FLAVOUR:+-$WX_FLAVOUR}
28488WX_LIB_FLAVOUR=`echo $WX_FLAVOUR | tr '-' '_'`
a848cd7e 28489
ceec2216
RL
28490DEBUG_INFO=0
28491if test "$wxUSE_DEBUG_INFO" = "yes"; then
28492 DEBUG_INFO=1
28493fi
a848cd7e 28494
ceec2216 28495WX_VERSION_TAG=`echo WX${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}_${WX_RELEASE} | tr "[a-z]" "[A-Z]"`
a848cd7e 28496
ceec2216 28497TOOLCHAIN_NAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}-${WX_RELEASE}"
a848cd7e 28498
ceec2216 28499TOOLCHAIN_FULLNAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}-${WX_CHARTYPE}-${WX_DEBUGTYPE}${config_linkage_component}-${WX_RELEASE}${WX_FLAVOUR}"
a848cd7e 28500
ceec2216
RL
28501if test "$cross_compiling" = "yes"; then
28502 HOST_SUFFIX="-$host_alias"
28503 TOOLCHAIN_NAME="$TOOLCHAIN_NAME$HOST_SUFFIX"
28504 TOOLCHAIN_FULLNAME="${host_alias}-$TOOLCHAIN_FULLNAME"
a848cd7e
SC
28505fi
28506
dd21ced8 28507WX_LIBRARY_BASENAME_NOGUI="wx_base${WXBASEPORT}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}"
ceec2216
RL
28508WX_LIBRARY_BASENAME_GUI="wx_${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}"
28509
28510
28511
a848cd7e 28512if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1; then
abb9aae7
VZ
28513 WX_RESOURCES_MACOSX_ASCII="libwx_${TOOLCHAIN_NAME}.${wx_release_number}.r"
28514 WX_RESOURCES_MACOSX_DATA="libwx_${TOOLCHAIN_NAME}.${wx_release_number}.rsrc"
ceec2216 28515
a848cd7e 28516 LIBWXMACRES="\$(top_builddir)lib/${WX_RESOURCES_MACOSX_ASCII}"
a848cd7e
SC
28517
28518 # Extract the first word of "Rez", so it can be a program name with args.
28519set dummy Rez; ac_word=$2
28520echo "$as_me:$LINENO: checking for $ac_word" >&5
28521echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
28522if test "${ac_cv_prog_RESCOMP+set}" = set; then
28523 echo $ECHO_N "(cached) $ECHO_C" >&6
28524else
28525 if test -n "$RESCOMP"; then
28526 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
28527else
28528as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28529for as_dir in $PATH
28530do
28531 IFS=$as_save_IFS
28532 test -z "$as_dir" && as_dir=.
28533 for ac_exec_ext in '' $ac_executable_extensions; do
28534 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
28535 ac_cv_prog_RESCOMP="Rez"
28536 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28537 break 2
28538 fi
28539done
28540done
28541
28542 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez"
28543fi
28544fi
28545RESCOMP=$ac_cv_prog_RESCOMP
28546if test -n "$RESCOMP"; then
28547 echo "$as_me:$LINENO: result: $RESCOMP" >&5
28548echo "${ECHO_T}$RESCOMP" >&6
28549else
28550 echo "$as_me:$LINENO: result: no" >&5
28551echo "${ECHO_T}no" >&6
28552fi
28553
28554 # Extract the first word of "DeRez", so it can be a program name with args.
28555set dummy DeRez; ac_word=$2
28556echo "$as_me:$LINENO: checking for $ac_word" >&5
28557echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
28558if test "${ac_cv_prog_DEREZ+set}" = set; then
28559 echo $ECHO_N "(cached) $ECHO_C" >&6
28560else
28561 if test -n "$DEREZ"; then
28562 ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test.
28563else
28564as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28565for as_dir in $PATH
28566do
28567 IFS=$as_save_IFS
28568 test -z "$as_dir" && as_dir=.
28569 for ac_exec_ext in '' $ac_executable_extensions; do
28570 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
28571 ac_cv_prog_DEREZ="DeRez"
28572 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28573 break 2
28574 fi
28575done
28576done
28577
28578 test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez"
28579fi
28580fi
28581DEREZ=$ac_cv_prog_DEREZ
28582if test -n "$DEREZ"; then
28583 echo "$as_me:$LINENO: result: $DEREZ" >&5
28584echo "${ECHO_T}$DEREZ" >&6
28585else
28586 echo "$as_me:$LINENO: result: no" >&5
28587echo "${ECHO_T}no" >&6
28588fi
28589
28590 # Extract the first word of "SetFile", so it can be a program name with args.
28591set dummy SetFile; ac_word=$2
28592echo "$as_me:$LINENO: checking for $ac_word" >&5
28593echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
28594if test "${ac_cv_prog_SETFILE+set}" = set; then
28595 echo $ECHO_N "(cached) $ECHO_C" >&6
28596else
28597 if test -n "$SETFILE"; then
28598 ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
28599else
28600as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28601for as_dir in $PATH
28602do
28603 IFS=$as_save_IFS
28604 test -z "$as_dir" && as_dir=.
28605 for ac_exec_ext in '' $ac_executable_extensions; do
28606 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
28607 ac_cv_prog_SETFILE="SetFile"
28608 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28609 break 2
28610 fi
28611done
28612done
28613
28614 test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
28615fi
28616fi
28617SETFILE=$ac_cv_prog_SETFILE
28618if test -n "$SETFILE"; then
28619 echo "$as_me:$LINENO: result: $SETFILE" >&5
28620echo "${ECHO_T}$SETFILE" >&6
28621else
28622 echo "$as_me:$LINENO: result: no" >&5
28623echo "${ECHO_T}no" >&6
28624fi
28625
28626
28627 MACSETFILE="\$(SETFILE)"
28628
28629 if test "$wxUSE_MAC" = 1; then
28630 MACRESCOMP="\$(RESCOMP) -d __DARWIN__ -t APPL Carbon.r ${LIBWXMACRES} -o"
28631
28632 MACRESWXCONFIG="${RESCOMP} -d __DARWIN__ -t APPL Carbon.r \\\${exec_prefix}/lib/${WX_RESOURCES_MACOSX_ASCII} -o"
28633 else
28634 MACRESCOMP="echo -n | \$(RESCOMP) -d __DARWIN__ -t APPL ${LIBWXMACRES} -o"
28635 MACRESWXCONFIG="echo -n \\\| ${RESCOMP} -d __DARWIN__ -t APPL \\\${exec_prefix}/lib/${WX_RESOURCES_MACOSX_ASCII} -o"
28636 fi
28637else
ffa0583f
RL
28638 MACSETFILE="@true"
28639 MACRESWXCONFIG="@true"
a848cd7e
SC
28640
28641 if test "$wxUSE_PM" = 1; then
28642 MACRESCOMP="emxbind -ep"
28643 else
ffa0583f 28644 MACRESCOMP="@true"
a848cd7e
SC
28645 fi
28646fi
28647
28648
28649
28650echo "$as_me:$LINENO: checking for mode_t" >&5
28651echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
28652if test "${ac_cv_type_mode_t+set}" = set; then
28653 echo $ECHO_N "(cached) $ECHO_C" >&6
28654else
28655 cat >conftest.$ac_ext <<_ACEOF
28656/* confdefs.h. */
28657_ACEOF
28658cat confdefs.h >>conftest.$ac_ext
28659cat >>conftest.$ac_ext <<_ACEOF
28660/* end confdefs.h. */
28661$ac_includes_default
28662int
28663main ()
28664{
28665if ((mode_t *) 0)
28666 return 0;
28667if (sizeof (mode_t))
28668 return 0;
28669 ;
28670 return 0;
28671}
28672_ACEOF
28673rm -f conftest.$ac_objext
28674if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 28675 (eval $ac_compile) 2>conftest.er1
a848cd7e 28676 ac_status=$?
ac1cb8d3
VS
28677 grep -v '^ *+' conftest.er1 >conftest.err
28678 rm -f conftest.er1
28679 cat conftest.err >&5
a848cd7e
SC
28680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28681 (exit $ac_status); } &&
89be85c2
VS
28682 { ac_try='test -z "$ac_c_werror_flag"
28683 || test ! -s conftest.err'
ac1cb8d3
VS
28684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28685 (eval $ac_try) 2>&5
28686 ac_status=$?
28687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28688 (exit $ac_status); }; } &&
28689 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
28690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28691 (eval $ac_try) 2>&5
28692 ac_status=$?
28693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28694 (exit $ac_status); }; }; then
28695 ac_cv_type_mode_t=yes
28696else
28697 echo "$as_me: failed program was:" >&5
28698sed 's/^/| /' conftest.$ac_ext >&5
28699
28700ac_cv_type_mode_t=no
28701fi
ac1cb8d3 28702rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
28703fi
28704echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
28705echo "${ECHO_T}$ac_cv_type_mode_t" >&6
28706if test $ac_cv_type_mode_t = yes; then
28707 :
28708else
28709
28710cat >>confdefs.h <<_ACEOF
28711#define mode_t int
28712_ACEOF
28713
28714fi
28715
28716echo "$as_me:$LINENO: checking for off_t" >&5
28717echo $ECHO_N "checking for off_t... $ECHO_C" >&6
28718if test "${ac_cv_type_off_t+set}" = set; then
28719 echo $ECHO_N "(cached) $ECHO_C" >&6
28720else
28721 cat >conftest.$ac_ext <<_ACEOF
28722/* confdefs.h. */
28723_ACEOF
28724cat confdefs.h >>conftest.$ac_ext
28725cat >>conftest.$ac_ext <<_ACEOF
28726/* end confdefs.h. */
28727$ac_includes_default
28728int
28729main ()
28730{
28731if ((off_t *) 0)
28732 return 0;
28733if (sizeof (off_t))
28734 return 0;
28735 ;
28736 return 0;
28737}
28738_ACEOF
28739rm -f conftest.$ac_objext
28740if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 28741 (eval $ac_compile) 2>conftest.er1
a848cd7e 28742 ac_status=$?
ac1cb8d3
VS
28743 grep -v '^ *+' conftest.er1 >conftest.err
28744 rm -f conftest.er1
28745 cat conftest.err >&5
a848cd7e
SC
28746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28747 (exit $ac_status); } &&
89be85c2
VS
28748 { ac_try='test -z "$ac_c_werror_flag"
28749 || test ! -s conftest.err'
ac1cb8d3
VS
28750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28751 (eval $ac_try) 2>&5
28752 ac_status=$?
28753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28754 (exit $ac_status); }; } &&
28755 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
28756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28757 (eval $ac_try) 2>&5
28758 ac_status=$?
28759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28760 (exit $ac_status); }; }; then
28761 ac_cv_type_off_t=yes
28762else
28763 echo "$as_me: failed program was:" >&5
28764sed 's/^/| /' conftest.$ac_ext >&5
28765
28766ac_cv_type_off_t=no
28767fi
ac1cb8d3 28768rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
28769fi
28770echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
28771echo "${ECHO_T}$ac_cv_type_off_t" >&6
28772if test $ac_cv_type_off_t = yes; then
28773 :
28774else
28775
28776cat >>confdefs.h <<_ACEOF
28777#define off_t long
28778_ACEOF
28779
28780fi
28781
28782echo "$as_me:$LINENO: checking for pid_t" >&5
28783echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
28784if test "${ac_cv_type_pid_t+set}" = set; then
28785 echo $ECHO_N "(cached) $ECHO_C" >&6
28786else
28787 cat >conftest.$ac_ext <<_ACEOF
28788/* confdefs.h. */
28789_ACEOF
28790cat confdefs.h >>conftest.$ac_ext
28791cat >>conftest.$ac_ext <<_ACEOF
28792/* end confdefs.h. */
28793$ac_includes_default
28794int
28795main ()
28796{
28797if ((pid_t *) 0)
28798 return 0;
28799if (sizeof (pid_t))
28800 return 0;
28801 ;
28802 return 0;
28803}
28804_ACEOF
28805rm -f conftest.$ac_objext
28806if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 28807 (eval $ac_compile) 2>conftest.er1
a848cd7e 28808 ac_status=$?
ac1cb8d3
VS
28809 grep -v '^ *+' conftest.er1 >conftest.err
28810 rm -f conftest.er1
28811 cat conftest.err >&5
a848cd7e
SC
28812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28813 (exit $ac_status); } &&
89be85c2
VS
28814 { ac_try='test -z "$ac_c_werror_flag"
28815 || test ! -s conftest.err'
ac1cb8d3
VS
28816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28817 (eval $ac_try) 2>&5
28818 ac_status=$?
28819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28820 (exit $ac_status); }; } &&
28821 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
28822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28823 (eval $ac_try) 2>&5
28824 ac_status=$?
28825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28826 (exit $ac_status); }; }; then
28827 ac_cv_type_pid_t=yes
28828else
28829 echo "$as_me: failed program was:" >&5
28830sed 's/^/| /' conftest.$ac_ext >&5
28831
28832ac_cv_type_pid_t=no
28833fi
ac1cb8d3 28834rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
28835fi
28836echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
28837echo "${ECHO_T}$ac_cv_type_pid_t" >&6
28838if test $ac_cv_type_pid_t = yes; then
28839 :
28840else
28841
28842cat >>confdefs.h <<_ACEOF
28843#define pid_t int
28844_ACEOF
28845
28846fi
28847
28848echo "$as_me:$LINENO: checking for size_t" >&5
28849echo $ECHO_N "checking for size_t... $ECHO_C" >&6
28850if test "${ac_cv_type_size_t+set}" = set; then
28851 echo $ECHO_N "(cached) $ECHO_C" >&6
28852else
28853 cat >conftest.$ac_ext <<_ACEOF
28854/* confdefs.h. */
28855_ACEOF
28856cat confdefs.h >>conftest.$ac_ext
28857cat >>conftest.$ac_ext <<_ACEOF
28858/* end confdefs.h. */
28859$ac_includes_default
28860int
28861main ()
28862{
28863if ((size_t *) 0)
28864 return 0;
28865if (sizeof (size_t))
28866 return 0;
28867 ;
28868 return 0;
28869}
28870_ACEOF
28871rm -f conftest.$ac_objext
28872if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 28873 (eval $ac_compile) 2>conftest.er1
a848cd7e 28874 ac_status=$?
ac1cb8d3
VS
28875 grep -v '^ *+' conftest.er1 >conftest.err
28876 rm -f conftest.er1
28877 cat conftest.err >&5
a848cd7e
SC
28878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28879 (exit $ac_status); } &&
89be85c2
VS
28880 { ac_try='test -z "$ac_c_werror_flag"
28881 || test ! -s conftest.err'
ac1cb8d3
VS
28882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28883 (eval $ac_try) 2>&5
28884 ac_status=$?
28885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28886 (exit $ac_status); }; } &&
28887 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
28888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28889 (eval $ac_try) 2>&5
28890 ac_status=$?
28891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28892 (exit $ac_status); }; }; then
28893 ac_cv_type_size_t=yes
28894else
28895 echo "$as_me: failed program was:" >&5
28896sed 's/^/| /' conftest.$ac_ext >&5
28897
28898ac_cv_type_size_t=no
28899fi
ac1cb8d3 28900rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
28901fi
28902echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
28903echo "${ECHO_T}$ac_cv_type_size_t" >&6
28904if test $ac_cv_type_size_t = yes; then
28905 :
28906else
28907
28908cat >>confdefs.h <<_ACEOF
28909#define size_t unsigned
28910_ACEOF
28911
28912fi
28913
28914echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
28915echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
28916if test "${ac_cv_type_uid_t+set}" = set; then
28917 echo $ECHO_N "(cached) $ECHO_C" >&6
28918else
28919 cat >conftest.$ac_ext <<_ACEOF
28920/* confdefs.h. */
28921_ACEOF
28922cat confdefs.h >>conftest.$ac_ext
28923cat >>conftest.$ac_ext <<_ACEOF
28924/* end confdefs.h. */
28925#include <sys/types.h>
28926
28927_ACEOF
28928if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28929 $EGREP "uid_t" >/dev/null 2>&1; then
28930 ac_cv_type_uid_t=yes
28931else
28932 ac_cv_type_uid_t=no
28933fi
28934rm -f conftest*
28935
28936fi
28937echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
28938echo "${ECHO_T}$ac_cv_type_uid_t" >&6
28939if test $ac_cv_type_uid_t = no; then
28940
28941cat >>confdefs.h <<\_ACEOF
28942#define uid_t int
28943_ACEOF
28944
28945
28946cat >>confdefs.h <<\_ACEOF
28947#define gid_t int
28948_ACEOF
28949
28950fi
28951
28952
d51253e8
RL
28953echo "$as_me:$LINENO: checking for ssize_t" >&5
28954echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
28955if test "${ac_cv_type_ssize_t+set}" = set; then
28956 echo $ECHO_N "(cached) $ECHO_C" >&6
28957else
28958 cat >conftest.$ac_ext <<_ACEOF
28959/* confdefs.h. */
28960_ACEOF
28961cat confdefs.h >>conftest.$ac_ext
28962cat >>conftest.$ac_ext <<_ACEOF
28963/* end confdefs.h. */
28964$ac_includes_default
28965int
28966main ()
28967{
28968if ((ssize_t *) 0)
28969 return 0;
28970if (sizeof (ssize_t))
28971 return 0;
28972 ;
28973 return 0;
28974}
28975_ACEOF
28976rm -f conftest.$ac_objext
28977if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28978 (eval $ac_compile) 2>conftest.er1
28979 ac_status=$?
28980 grep -v '^ *+' conftest.er1 >conftest.err
28981 rm -f conftest.er1
28982 cat conftest.err >&5
28983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28984 (exit $ac_status); } &&
89be85c2
VS
28985 { ac_try='test -z "$ac_c_werror_flag"
28986 || test ! -s conftest.err'
d51253e8
RL
28987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28988 (eval $ac_try) 2>&5
28989 ac_status=$?
28990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28991 (exit $ac_status); }; } &&
28992 { ac_try='test -s conftest.$ac_objext'
28993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28994 (eval $ac_try) 2>&5
28995 ac_status=$?
28996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28997 (exit $ac_status); }; }; then
28998 ac_cv_type_ssize_t=yes
28999else
29000 echo "$as_me: failed program was:" >&5
29001sed 's/^/| /' conftest.$ac_ext >&5
29002
29003ac_cv_type_ssize_t=no
29004fi
29005rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29006fi
29007echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
29008echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
29009if test $ac_cv_type_ssize_t = yes; then
29010
29011cat >>confdefs.h <<_ACEOF
29012#define HAVE_SSIZE_T 1
29013_ACEOF
29014
29015
29016fi
29017
29018
a848cd7e
SC
29019
29020
29021ac_ext=cc
29022ac_cpp='$CXXCPP $CPPFLAGS'
29023ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29024ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29025ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29026
29027echo "$as_me:$LINENO: checking if size_t is unsigned int" >&5
29028echo $ECHO_N "checking if size_t is unsigned int... $ECHO_C" >&6
29029if test "${wx_cv_size_t_is_uint+set}" = set; then
29030 echo $ECHO_N "(cached) $ECHO_C" >&6
29031else
29032
29033 cat >conftest.$ac_ext <<_ACEOF
29034/* confdefs.h. */
29035_ACEOF
29036cat confdefs.h >>conftest.$ac_ext
29037cat >>conftest.$ac_ext <<_ACEOF
29038/* end confdefs.h. */
29039#include <stddef.h>
29040int
29041main ()
29042{
29043
29044 return 0; }
29045
29046 struct Foo { void foo(size_t); void foo(unsigned int); };
29047
29048 int bar() {
29049
29050 ;
29051 return 0;
29052}
29053_ACEOF
29054rm -f conftest.$ac_objext
29055if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 29056 (eval $ac_compile) 2>conftest.er1
a848cd7e 29057 ac_status=$?
ac1cb8d3
VS
29058 grep -v '^ *+' conftest.er1 >conftest.err
29059 rm -f conftest.er1
29060 cat conftest.err >&5
a848cd7e
SC
29061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29062 (exit $ac_status); } &&
89be85c2
VS
29063 { ac_try='test -z "$ac_cxx_werror_flag"
29064 || test ! -s conftest.err'
ac1cb8d3
VS
29065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29066 (eval $ac_try) 2>&5
29067 ac_status=$?
29068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29069 (exit $ac_status); }; } &&
29070 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
29071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29072 (eval $ac_try) 2>&5
29073 ac_status=$?
29074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29075 (exit $ac_status); }; }; then
29076 wx_cv_size_t_is_uint=no
29077else
29078 echo "$as_me: failed program was:" >&5
29079sed 's/^/| /' conftest.$ac_ext >&5
29080
29081wx_cv_size_t_is_uint=yes
29082
29083fi
ac1cb8d3 29084rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
29085
29086
29087fi
29088echo "$as_me:$LINENO: result: $wx_cv_size_t_is_uint" >&5
29089echo "${ECHO_T}$wx_cv_size_t_is_uint" >&6
29090
29091if test "$wx_cv_size_t_is_uint" = "yes"; then
29092 cat >>confdefs.h <<\_ACEOF
29093#define wxSIZE_T_IS_UINT 1
29094_ACEOF
29095
29096else
29097 echo "$as_me:$LINENO: checking if size_t is unsigned long" >&5
29098echo $ECHO_N "checking if size_t is unsigned long... $ECHO_C" >&6
29099if test "${wx_cv_size_t_is_ulong+set}" = set; then
29100 echo $ECHO_N "(cached) $ECHO_C" >&6
29101else
29102 cat >conftest.$ac_ext <<_ACEOF
29103/* confdefs.h. */
29104_ACEOF
29105cat confdefs.h >>conftest.$ac_ext
29106cat >>conftest.$ac_ext <<_ACEOF
29107/* end confdefs.h. */
29108#include <stddef.h>
29109int
29110main ()
29111{
29112
29113 return 0; }
29114
29115 struct Foo { void foo(size_t); void foo(unsigned long); };
29116
29117 int bar() {
29118
29119 ;
29120 return 0;
29121}
29122_ACEOF
29123rm -f conftest.$ac_objext
29124if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 29125 (eval $ac_compile) 2>conftest.er1
a848cd7e 29126 ac_status=$?
ac1cb8d3
VS
29127 grep -v '^ *+' conftest.er1 >conftest.err
29128 rm -f conftest.er1
29129 cat conftest.err >&5
a848cd7e
SC
29130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29131 (exit $ac_status); } &&
89be85c2
VS
29132 { ac_try='test -z "$ac_cxx_werror_flag"
29133 || test ! -s conftest.err'
ac1cb8d3
VS
29134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29135 (eval $ac_try) 2>&5
29136 ac_status=$?
29137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29138 (exit $ac_status); }; } &&
29139 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
29140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29141 (eval $ac_try) 2>&5
29142 ac_status=$?
29143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29144 (exit $ac_status); }; }; then
29145 wx_cv_size_t_is_ulong=no
29146else
29147 echo "$as_me: failed program was:" >&5
29148sed 's/^/| /' conftest.$ac_ext >&5
29149
29150wx_cv_size_t_is_ulong=yes
29151
29152fi
ac1cb8d3 29153rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
29154
29155fi
29156echo "$as_me:$LINENO: result: $wx_cv_size_t_is_ulong" >&5
29157echo "${ECHO_T}$wx_cv_size_t_is_ulong" >&6
29158
29159 if test "$wx_cv_size_t_is_ulong" = "yes"; then
29160 cat >>confdefs.h <<\_ACEOF
29161#define wxSIZE_T_IS_ULONG 1
29162_ACEOF
29163
29164 fi
29165fi
29166
29167ac_ext=c
29168ac_cpp='$CPP $CPPFLAGS'
29169ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29170ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29171ac_compiler_gnu=$ac_cv_c_compiler_gnu
29172
29173
29174
29175echo "$as_me:$LINENO: checking for pw_gecos in struct passwd" >&5
29176echo $ECHO_N "checking for pw_gecos in struct passwd... $ECHO_C" >&6
29177if test "${wx_cv_struct_pw_gecos+set}" = set; then
29178 echo $ECHO_N "(cached) $ECHO_C" >&6
29179else
29180
29181 cat >conftest.$ac_ext <<_ACEOF
29182/* confdefs.h. */
29183_ACEOF
29184cat confdefs.h >>conftest.$ac_ext
29185cat >>conftest.$ac_ext <<_ACEOF
29186/* end confdefs.h. */
29187#include <pwd.h>
29188int
29189main ()
29190{
29191
29192 char *p;
29193 struct passwd *pw;
29194 p = pw->pw_gecos;
29195
29196 ;
29197 return 0;
29198}
29199_ACEOF
29200rm -f conftest.$ac_objext
29201if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 29202 (eval $ac_compile) 2>conftest.er1
a848cd7e 29203 ac_status=$?
ac1cb8d3
VS
29204 grep -v '^ *+' conftest.er1 >conftest.err
29205 rm -f conftest.er1
29206 cat conftest.err >&5
a848cd7e
SC
29207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29208 (exit $ac_status); } &&
89be85c2
VS
29209 { ac_try='test -z "$ac_c_werror_flag"
29210 || test ! -s conftest.err'
ac1cb8d3
VS
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); }; } &&
29216 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
29217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29218 (eval $ac_try) 2>&5
29219 ac_status=$?
29220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29221 (exit $ac_status); }; }; then
29222
29223 wx_cv_struct_pw_gecos=yes
29224
29225else
29226 echo "$as_me: failed program was:" >&5
29227sed 's/^/| /' conftest.$ac_ext >&5
29228
29229
29230 wx_cv_struct_pw_gecos=no
29231
29232
29233fi
ac1cb8d3 29234rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
29235
29236
29237fi
29238echo "$as_me:$LINENO: result: $wx_cv_struct_pw_gecos" >&5
29239echo "${ECHO_T}$wx_cv_struct_pw_gecos" >&6
29240
29241if test "$wx_cv_struct_pw_gecos" = "yes"; then
29242 cat >>confdefs.h <<\_ACEOF
29243#define HAVE_PW_GECOS 1
29244_ACEOF
29245
29246fi
29247
29248
29249if test "$wx_cv_sizeof_wchar_t" != "0"; then
29250 cat >>confdefs.h <<\_ACEOF
29251#define wxUSE_WCHAR_T 1
29252_ACEOF
29253
29254
29255 WCSLEN_FOUND=0
29256 WCHAR_LINK=
29257
29258for ac_func in wcslen
29259do
29260as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29261echo "$as_me:$LINENO: checking for $ac_func" >&5
29262echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29263if eval "test \"\${$as_ac_var+set}\" = set"; then
29264 echo $ECHO_N "(cached) $ECHO_C" >&6
29265else
29266 cat >conftest.$ac_ext <<_ACEOF
29267/* confdefs.h. */
29268_ACEOF
29269cat confdefs.h >>conftest.$ac_ext
29270cat >>conftest.$ac_ext <<_ACEOF
29271/* end confdefs.h. */
ac1cb8d3
VS
29272/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29273 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29274#define $ac_func innocuous_$ac_func
29275
a848cd7e
SC
29276/* System header to define __stub macros and hopefully few prototypes,
29277 which can conflict with char $ac_func (); below.
29278 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29279 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 29280
a848cd7e
SC
29281#ifdef __STDC__
29282# include <limits.h>
29283#else
29284# include <assert.h>
29285#endif
ac1cb8d3
VS
29286
29287#undef $ac_func
29288
a848cd7e
SC
29289/* Override any gcc2 internal prototype to avoid an error. */
29290#ifdef __cplusplus
29291extern "C"
29292{
29293#endif
29294/* We use char because int might match the return type of a gcc2
29295 builtin and then its argument prototype would still apply. */
29296char $ac_func ();
29297/* The GNU C library defines this for functions which it implements
29298 to always fail with ENOSYS. Some functions are actually named
29299 something starting with __ and the normal name is an alias. */
29300#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29301choke me
29302#else
29303char (*f) () = $ac_func;
29304#endif
29305#ifdef __cplusplus
29306}
29307#endif
29308
29309int
29310main ()
29311{
29312return f != $ac_func;
29313 ;
29314 return 0;
29315}
29316_ACEOF
29317rm -f conftest.$ac_objext conftest$ac_exeext
29318if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29319 (eval $ac_link) 2>conftest.er1
a848cd7e 29320 ac_status=$?
ac1cb8d3
VS
29321 grep -v '^ *+' conftest.er1 >conftest.err
29322 rm -f conftest.er1
29323 cat conftest.err >&5
a848cd7e
SC
29324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29325 (exit $ac_status); } &&
89be85c2
VS
29326 { ac_try='test -z "$ac_c_werror_flag"
29327 || test ! -s conftest.err'
ac1cb8d3
VS
29328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29329 (eval $ac_try) 2>&5
29330 ac_status=$?
29331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29332 (exit $ac_status); }; } &&
29333 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29335 (eval $ac_try) 2>&5
29336 ac_status=$?
29337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29338 (exit $ac_status); }; }; then
29339 eval "$as_ac_var=yes"
29340else
29341 echo "$as_me: failed program was:" >&5
29342sed 's/^/| /' conftest.$ac_ext >&5
29343
29344eval "$as_ac_var=no"
29345fi
ac1cb8d3
VS
29346rm -f conftest.err conftest.$ac_objext \
29347 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29348fi
29349echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29350echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29351if test `eval echo '${'$as_ac_var'}'` = yes; then
29352 cat >>confdefs.h <<_ACEOF
29353#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29354_ACEOF
29355 WCSLEN_FOUND=1
29356fi
29357done
29358
29359
29360 if test "$WCSLEN_FOUND" = 0; then
29361 if test "$TOOLKIT" = "MSW"; then
29362 echo "$as_me:$LINENO: checking for wcslen in -lmsvcrt" >&5
29363echo $ECHO_N "checking for wcslen in -lmsvcrt... $ECHO_C" >&6
29364if test "${ac_cv_lib_msvcrt_wcslen+set}" = set; then
29365 echo $ECHO_N "(cached) $ECHO_C" >&6
29366else
29367 ac_check_lib_save_LIBS=$LIBS
29368LIBS="-lmsvcrt $LIBS"
29369cat >conftest.$ac_ext <<_ACEOF
29370/* confdefs.h. */
29371_ACEOF
29372cat confdefs.h >>conftest.$ac_ext
29373cat >>conftest.$ac_ext <<_ACEOF
29374/* end confdefs.h. */
29375
29376/* Override any gcc2 internal prototype to avoid an error. */
29377#ifdef __cplusplus
29378extern "C"
29379#endif
29380/* We use char because int might match the return type of a gcc2
29381 builtin and then its argument prototype would still apply. */
29382char wcslen ();
29383int
29384main ()
29385{
29386wcslen ();
29387 ;
29388 return 0;
29389}
29390_ACEOF
29391rm -f conftest.$ac_objext conftest$ac_exeext
29392if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29393 (eval $ac_link) 2>conftest.er1
a848cd7e 29394 ac_status=$?
ac1cb8d3
VS
29395 grep -v '^ *+' conftest.er1 >conftest.err
29396 rm -f conftest.er1
29397 cat conftest.err >&5
a848cd7e
SC
29398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29399 (exit $ac_status); } &&
89be85c2
VS
29400 { ac_try='test -z "$ac_c_werror_flag"
29401 || test ! -s conftest.err'
ac1cb8d3
VS
29402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29403 (eval $ac_try) 2>&5
29404 ac_status=$?
29405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29406 (exit $ac_status); }; } &&
29407 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29409 (eval $ac_try) 2>&5
29410 ac_status=$?
29411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29412 (exit $ac_status); }; }; then
29413 ac_cv_lib_msvcrt_wcslen=yes
29414else
29415 echo "$as_me: failed program was:" >&5
29416sed 's/^/| /' conftest.$ac_ext >&5
29417
29418ac_cv_lib_msvcrt_wcslen=no
29419fi
ac1cb8d3
VS
29420rm -f conftest.err conftest.$ac_objext \
29421 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29422LIBS=$ac_check_lib_save_LIBS
29423fi
29424echo "$as_me:$LINENO: result: $ac_cv_lib_msvcrt_wcslen" >&5
29425echo "${ECHO_T}$ac_cv_lib_msvcrt_wcslen" >&6
29426if test $ac_cv_lib_msvcrt_wcslen = yes; then
29427 WCHAR_OK=1
29428fi
29429
29430 else
29431 echo "$as_me:$LINENO: checking for wcslen in -lw" >&5
29432echo $ECHO_N "checking for wcslen in -lw... $ECHO_C" >&6
29433if test "${ac_cv_lib_w_wcslen+set}" = set; then
29434 echo $ECHO_N "(cached) $ECHO_C" >&6
29435else
29436 ac_check_lib_save_LIBS=$LIBS
29437LIBS="-lw $LIBS"
29438cat >conftest.$ac_ext <<_ACEOF
29439/* confdefs.h. */
29440_ACEOF
29441cat confdefs.h >>conftest.$ac_ext
29442cat >>conftest.$ac_ext <<_ACEOF
29443/* end confdefs.h. */
29444
29445/* Override any gcc2 internal prototype to avoid an error. */
29446#ifdef __cplusplus
29447extern "C"
29448#endif
29449/* We use char because int might match the return type of a gcc2
29450 builtin and then its argument prototype would still apply. */
29451char wcslen ();
29452int
29453main ()
29454{
29455wcslen ();
29456 ;
29457 return 0;
29458}
29459_ACEOF
29460rm -f conftest.$ac_objext conftest$ac_exeext
29461if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29462 (eval $ac_link) 2>conftest.er1
a848cd7e 29463 ac_status=$?
ac1cb8d3
VS
29464 grep -v '^ *+' conftest.er1 >conftest.err
29465 rm -f conftest.er1
29466 cat conftest.err >&5
a848cd7e
SC
29467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29468 (exit $ac_status); } &&
89be85c2
VS
29469 { ac_try='test -z "$ac_c_werror_flag"
29470 || test ! -s conftest.err'
ac1cb8d3
VS
29471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29472 (eval $ac_try) 2>&5
29473 ac_status=$?
29474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29475 (exit $ac_status); }; } &&
29476 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29478 (eval $ac_try) 2>&5
29479 ac_status=$?
29480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29481 (exit $ac_status); }; }; then
29482 ac_cv_lib_w_wcslen=yes
29483else
29484 echo "$as_me: failed program was:" >&5
29485sed 's/^/| /' conftest.$ac_ext >&5
29486
29487ac_cv_lib_w_wcslen=no
29488fi
ac1cb8d3
VS
29489rm -f conftest.err conftest.$ac_objext \
29490 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29491LIBS=$ac_check_lib_save_LIBS
29492fi
29493echo "$as_me:$LINENO: result: $ac_cv_lib_w_wcslen" >&5
29494echo "${ECHO_T}$ac_cv_lib_w_wcslen" >&6
29495if test $ac_cv_lib_w_wcslen = yes; then
29496
29497 WCHAR_LINK=" -lw"
29498 WCSLEN_FOUND=1
29499
29500fi
29501
29502 fi
29503 fi
29504
29505 if test "$WCSLEN_FOUND" = 1; then
29506 cat >>confdefs.h <<\_ACEOF
29507#define HAVE_WCSLEN 1
29508_ACEOF
29509
29510 fi
29511
473276a9
VS
29512 if test "$USE_HPUX" = 1 -a "x$GCC" != "xyes"; then
29513 CPPFLAGS="$CPPFLAGS -D_INCLUDE__STDC_A1_SOURCE "
29514 fi
29515
a848cd7e
SC
29516
29517for ac_func in wcsrtombs
29518do
29519as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29520echo "$as_me:$LINENO: checking for $ac_func" >&5
29521echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29522if eval "test \"\${$as_ac_var+set}\" = set"; then
29523 echo $ECHO_N "(cached) $ECHO_C" >&6
29524else
29525 cat >conftest.$ac_ext <<_ACEOF
29526/* confdefs.h. */
29527_ACEOF
29528cat confdefs.h >>conftest.$ac_ext
29529cat >>conftest.$ac_ext <<_ACEOF
29530/* end confdefs.h. */
ac1cb8d3
VS
29531/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29532 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29533#define $ac_func innocuous_$ac_func
29534
a848cd7e
SC
29535/* System header to define __stub macros and hopefully few prototypes,
29536 which can conflict with char $ac_func (); below.
29537 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29538 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 29539
a848cd7e
SC
29540#ifdef __STDC__
29541# include <limits.h>
29542#else
29543# include <assert.h>
29544#endif
ac1cb8d3
VS
29545
29546#undef $ac_func
29547
a848cd7e
SC
29548/* Override any gcc2 internal prototype to avoid an error. */
29549#ifdef __cplusplus
29550extern "C"
29551{
29552#endif
29553/* We use char because int might match the return type of a gcc2
29554 builtin and then its argument prototype would still apply. */
29555char $ac_func ();
29556/* The GNU C library defines this for functions which it implements
29557 to always fail with ENOSYS. Some functions are actually named
29558 something starting with __ and the normal name is an alias. */
29559#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29560choke me
29561#else
29562char (*f) () = $ac_func;
29563#endif
29564#ifdef __cplusplus
29565}
29566#endif
29567
29568int
29569main ()
29570{
29571return f != $ac_func;
29572 ;
29573 return 0;
29574}
29575_ACEOF
29576rm -f conftest.$ac_objext conftest$ac_exeext
29577if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29578 (eval $ac_link) 2>conftest.er1
a848cd7e 29579 ac_status=$?
ac1cb8d3
VS
29580 grep -v '^ *+' conftest.er1 >conftest.err
29581 rm -f conftest.er1
29582 cat conftest.err >&5
a848cd7e
SC
29583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29584 (exit $ac_status); } &&
89be85c2
VS
29585 { ac_try='test -z "$ac_c_werror_flag"
29586 || test ! -s conftest.err'
ac1cb8d3
VS
29587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29588 (eval $ac_try) 2>&5
29589 ac_status=$?
29590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29591 (exit $ac_status); }; } &&
29592 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29594 (eval $ac_try) 2>&5
29595 ac_status=$?
29596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29597 (exit $ac_status); }; }; then
29598 eval "$as_ac_var=yes"
29599else
29600 echo "$as_me: failed program was:" >&5
29601sed 's/^/| /' conftest.$ac_ext >&5
29602
29603eval "$as_ac_var=no"
29604fi
ac1cb8d3
VS
29605rm -f conftest.err conftest.$ac_objext \
29606 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29607fi
29608echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29609echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29610if test `eval echo '${'$as_ac_var'}'` = yes; then
29611 cat >>confdefs.h <<_ACEOF
29612#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29613_ACEOF
29614
29615fi
29616done
29617
29618else
29619 { echo "$as_me:$LINENO: WARNING: Wide character support is unavailable" >&5
29620echo "$as_me: WARNING: Wide character support is unavailable" >&2;}
29621fi
29622
29623
29624
29625ac_ext=cc
29626ac_cpp='$CXXCPP $CPPFLAGS'
29627ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29628ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29629ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29630
29631
29632
29633for ac_func in vsnprintf
29634do
29635as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29636echo "$as_me:$LINENO: checking for $ac_func" >&5
29637echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29638if eval "test \"\${$as_ac_var+set}\" = set"; then
29639 echo $ECHO_N "(cached) $ECHO_C" >&6
29640else
29641 cat >conftest.$ac_ext <<_ACEOF
29642/* confdefs.h. */
29643_ACEOF
29644cat confdefs.h >>conftest.$ac_ext
29645cat >>conftest.$ac_ext <<_ACEOF
29646/* end confdefs.h. */
ac1cb8d3
VS
29647/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29648 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29649#define $ac_func innocuous_$ac_func
29650
a848cd7e
SC
29651/* System header to define __stub macros and hopefully few prototypes,
29652 which can conflict with char $ac_func (); below.
29653 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29654 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 29655
a848cd7e
SC
29656#ifdef __STDC__
29657# include <limits.h>
29658#else
29659# include <assert.h>
29660#endif
ac1cb8d3
VS
29661
29662#undef $ac_func
29663
a848cd7e
SC
29664/* Override any gcc2 internal prototype to avoid an error. */
29665#ifdef __cplusplus
29666extern "C"
29667{
29668#endif
29669/* We use char because int might match the return type of a gcc2
29670 builtin and then its argument prototype would still apply. */
29671char $ac_func ();
29672/* The GNU C library defines this for functions which it implements
29673 to always fail with ENOSYS. Some functions are actually named
29674 something starting with __ and the normal name is an alias. */
29675#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29676choke me
29677#else
29678char (*f) () = $ac_func;
29679#endif
29680#ifdef __cplusplus
29681}
29682#endif
29683
29684int
29685main ()
29686{
29687return f != $ac_func;
29688 ;
29689 return 0;
29690}
29691_ACEOF
29692rm -f conftest.$ac_objext conftest$ac_exeext
29693if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29694 (eval $ac_link) 2>conftest.er1
a848cd7e 29695 ac_status=$?
ac1cb8d3
VS
29696 grep -v '^ *+' conftest.er1 >conftest.err
29697 rm -f conftest.er1
29698 cat conftest.err >&5
a848cd7e
SC
29699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29700 (exit $ac_status); } &&
89be85c2
VS
29701 { ac_try='test -z "$ac_cxx_werror_flag"
29702 || test ! -s conftest.err'
ac1cb8d3
VS
29703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29704 (eval $ac_try) 2>&5
29705 ac_status=$?
29706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29707 (exit $ac_status); }; } &&
29708 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29710 (eval $ac_try) 2>&5
29711 ac_status=$?
29712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29713 (exit $ac_status); }; }; then
29714 eval "$as_ac_var=yes"
29715else
29716 echo "$as_me: failed program was:" >&5
29717sed 's/^/| /' conftest.$ac_ext >&5
29718
29719eval "$as_ac_var=no"
29720fi
ac1cb8d3
VS
29721rm -f conftest.err conftest.$ac_objext \
29722 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29723fi
29724echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29725echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29726if test `eval echo '${'$as_ac_var'}'` = yes; then
29727 cat >>confdefs.h <<_ACEOF
29728#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29729_ACEOF
29730
29731fi
29732done
29733
29734
29735if test "$ac_cv_func_vsnprintf" = "yes"; then
29736 echo "$as_me:$LINENO: checking for vsnprintf declaration" >&5
29737echo $ECHO_N "checking for vsnprintf declaration... $ECHO_C" >&6
29738if test "${wx_cv_func_vsnprintf_decl+set}" = set; then
29739 echo $ECHO_N "(cached) $ECHO_C" >&6
29740else
29741
29742 cat >conftest.$ac_ext <<_ACEOF
29743/* confdefs.h. */
29744_ACEOF
29745cat confdefs.h >>conftest.$ac_ext
29746cat >>conftest.$ac_ext <<_ACEOF
29747/* end confdefs.h. */
29748
29749 #include <stdio.h>
29750 #include <stdarg.h>
29751
29752int
29753main ()
29754{
29755
29756 char *buf;
29757 va_list ap;
29758 vsnprintf(buf, 10u, "%s", ap);
29759
29760 ;
29761 return 0;
29762}
29763_ACEOF
29764rm -f conftest.$ac_objext
29765if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 29766 (eval $ac_compile) 2>conftest.er1
a848cd7e 29767 ac_status=$?
ac1cb8d3
VS
29768 grep -v '^ *+' conftest.er1 >conftest.err
29769 rm -f conftest.er1
29770 cat conftest.err >&5
a848cd7e
SC
29771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29772 (exit $ac_status); } &&
89be85c2
VS
29773 { ac_try='test -z "$ac_cxx_werror_flag"
29774 || test ! -s conftest.err'
ac1cb8d3
VS
29775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29776 (eval $ac_try) 2>&5
29777 ac_status=$?
29778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29779 (exit $ac_status); }; } &&
29780 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
29781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29782 (eval $ac_try) 2>&5
29783 ac_status=$?
29784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29785 (exit $ac_status); }; }; then
29786 wx_cv_func_vsnprintf_decl=yes
29787else
29788 echo "$as_me: failed program was:" >&5
29789sed 's/^/| /' conftest.$ac_ext >&5
29790
c122b164
DE
29791
29792 cat >conftest.$ac_ext <<_ACEOF
29793/* confdefs.h. */
29794_ACEOF
29795cat confdefs.h >>conftest.$ac_ext
29796cat >>conftest.$ac_ext <<_ACEOF
29797/* end confdefs.h. */
29798
29799 #include <stdio.h>
29800 #include <stdarg.h>
29801 using namespace std;
29802
29803int
29804main ()
29805{
29806
29807 char *buf;
29808 va_list ap;
29809 vsnprintf(buf, 10u, "%s", ap);
29810
29811 ;
29812 return 0;
29813}
29814_ACEOF
29815rm -f conftest.$ac_objext
29816if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29817 (eval $ac_compile) 2>conftest.er1
29818 ac_status=$?
29819 grep -v '^ *+' conftest.er1 >conftest.err
29820 rm -f conftest.er1
29821 cat conftest.err >&5
29822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29823 (exit $ac_status); } &&
89be85c2
VS
29824 { ac_try='test -z "$ac_cxx_werror_flag"
29825 || test ! -s conftest.err'
c122b164
DE
29826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29827 (eval $ac_try) 2>&5
29828 ac_status=$?
29829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29830 (exit $ac_status); }; } &&
29831 { ac_try='test -s conftest.$ac_objext'
29832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29833 (eval $ac_try) 2>&5
29834 ac_status=$?
29835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29836 (exit $ac_status); }; }; then
29837 wx_cv_func_vsnprintf_decl=yes
29838else
29839 echo "$as_me: failed program was:" >&5
29840sed 's/^/| /' conftest.$ac_ext >&5
29841
a848cd7e
SC
29842wx_cv_func_vsnprintf_decl=no
29843
29844fi
ac1cb8d3 29845rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
29846
29847
c122b164
DE
29848fi
29849rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29850
29851
a848cd7e
SC
29852fi
29853echo "$as_me:$LINENO: result: $wx_cv_func_vsnprintf_decl" >&5
29854echo "${ECHO_T}$wx_cv_func_vsnprintf_decl" >&6
29855
29856 if test "$wx_cv_func_vsnprintf_decl" = "yes"; then
29857 cat >>confdefs.h <<\_ACEOF
29858#define HAVE_VSNPRINTF_DECL 1
29859_ACEOF
29860
29861 fi
29862fi
29863
29864if test "$wxUSE_UNICODE" = yes; then
29865
29866
29867
fbe47c7b
VS
29868
29869
29870
29871for ac_func in wputc wputchar putws fputws wprintf vswprintf
a848cd7e
SC
29872do
29873as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29874echo "$as_me:$LINENO: checking for $ac_func" >&5
29875echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29876if eval "test \"\${$as_ac_var+set}\" = set"; then
29877 echo $ECHO_N "(cached) $ECHO_C" >&6
29878else
29879 cat >conftest.$ac_ext <<_ACEOF
29880/* confdefs.h. */
29881_ACEOF
29882cat confdefs.h >>conftest.$ac_ext
29883cat >>conftest.$ac_ext <<_ACEOF
29884/* end confdefs.h. */
ac1cb8d3
VS
29885/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29886 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29887#define $ac_func innocuous_$ac_func
29888
a848cd7e
SC
29889/* System header to define __stub macros and hopefully few prototypes,
29890 which can conflict with char $ac_func (); below.
29891 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29892 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 29893
a848cd7e
SC
29894#ifdef __STDC__
29895# include <limits.h>
29896#else
29897# include <assert.h>
29898#endif
ac1cb8d3
VS
29899
29900#undef $ac_func
29901
a848cd7e
SC
29902/* Override any gcc2 internal prototype to avoid an error. */
29903#ifdef __cplusplus
29904extern "C"
29905{
29906#endif
29907/* We use char because int might match the return type of a gcc2
29908 builtin and then its argument prototype would still apply. */
29909char $ac_func ();
29910/* The GNU C library defines this for functions which it implements
29911 to always fail with ENOSYS. Some functions are actually named
29912 something starting with __ and the normal name is an alias. */
29913#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29914choke me
29915#else
29916char (*f) () = $ac_func;
29917#endif
29918#ifdef __cplusplus
29919}
29920#endif
29921
29922int
29923main ()
29924{
29925return f != $ac_func;
29926 ;
29927 return 0;
29928}
29929_ACEOF
29930rm -f conftest.$ac_objext conftest$ac_exeext
29931if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29932 (eval $ac_link) 2>conftest.er1
a848cd7e 29933 ac_status=$?
ac1cb8d3
VS
29934 grep -v '^ *+' conftest.er1 >conftest.err
29935 rm -f conftest.er1
29936 cat conftest.err >&5
a848cd7e
SC
29937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29938 (exit $ac_status); } &&
89be85c2
VS
29939 { ac_try='test -z "$ac_cxx_werror_flag"
29940 || test ! -s conftest.err'
ac1cb8d3
VS
29941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29942 (eval $ac_try) 2>&5
29943 ac_status=$?
29944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29945 (exit $ac_status); }; } &&
29946 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29948 (eval $ac_try) 2>&5
29949 ac_status=$?
29950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29951 (exit $ac_status); }; }; then
29952 eval "$as_ac_var=yes"
29953else
29954 echo "$as_me: failed program was:" >&5
29955sed 's/^/| /' conftest.$ac_ext >&5
29956
29957eval "$as_ac_var=no"
29958fi
ac1cb8d3
VS
29959rm -f conftest.err conftest.$ac_objext \
29960 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29961fi
29962echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29963echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29964if test `eval echo '${'$as_ac_var'}'` = yes; then
29965 cat >>confdefs.h <<_ACEOF
29966#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29967_ACEOF
29968
29969fi
29970done
29971
29972
29973 echo "$as_me:$LINENO: checking for _vsnwprintf" >&5
29974echo $ECHO_N "checking for _vsnwprintf... $ECHO_C" >&6
29975 cat >conftest.$ac_ext <<_ACEOF
29976/* confdefs.h. */
29977_ACEOF
29978cat confdefs.h >>conftest.$ac_ext
29979cat >>conftest.$ac_ext <<_ACEOF
29980/* end confdefs.h. */
29981#include <wchar.h>
29982int
29983main ()
29984{
29985&_vsnwprintf;
29986 ;
29987 return 0;
29988}
29989_ACEOF
29990rm -f conftest.$ac_objext
29991if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 29992 (eval $ac_compile) 2>conftest.er1
a848cd7e 29993 ac_status=$?
ac1cb8d3
VS
29994 grep -v '^ *+' conftest.er1 >conftest.err
29995 rm -f conftest.er1
29996 cat conftest.err >&5
a848cd7e
SC
29997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29998 (exit $ac_status); } &&
89be85c2
VS
29999 { ac_try='test -z "$ac_cxx_werror_flag"
30000 || test ! -s conftest.err'
ac1cb8d3
VS
30001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30002 (eval $ac_try) 2>&5
30003 ac_status=$?
30004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30005 (exit $ac_status); }; } &&
30006 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
30007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30008 (eval $ac_try) 2>&5
30009 ac_status=$?
30010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30011 (exit $ac_status); }; }; then
30012 echo "$as_me:$LINENO: result: yes" >&5
30013echo "${ECHO_T}yes" >&6
30014 cat >>confdefs.h <<\_ACEOF
30015#define HAVE__VSNWPRINTF 1
30016_ACEOF
30017
30018else
30019 echo "$as_me: failed program was:" >&5
30020sed 's/^/| /' conftest.$ac_ext >&5
30021
30022echo "$as_me:$LINENO: result: no" >&5
30023echo "${ECHO_T}no" >&6
30024fi
ac1cb8d3 30025rm -f conftest.err conftest.$ac_objext conftest.$ac_ext;
a848cd7e
SC
30026fi
30027
30028ac_ext=c
30029ac_cpp='$CPP $CPPFLAGS'
30030ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30031ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30032ac_compiler_gnu=$ac_cv_c_compiler_gnu
30033
30034
30035
30036
30037if test "$TOOLKIT" != "MSW"; then
30038
30039
30040
30041
30042ac_ext=cc
30043ac_cpp='$CXXCPP $CPPFLAGS'
30044ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30045ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30046ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30047
30048
30049
30050
30051# Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
30052if test "${with_libiconv_prefix+set}" = set; then
30053 withval="$with_libiconv_prefix"
30054
30055 for dir in `echo "$withval" | tr : ' '`; do
30056 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
30057 if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
30058 done
30059
30060fi;
30061
30062 echo "$as_me:$LINENO: checking for iconv" >&5
30063echo $ECHO_N "checking for iconv... $ECHO_C" >&6
30064if test "${am_cv_func_iconv+set}" = set; then
30065 echo $ECHO_N "(cached) $ECHO_C" >&6
30066else
30067
30068 am_cv_func_iconv="no, consider installing GNU libiconv"
30069 am_cv_lib_iconv=no
30070 cat >conftest.$ac_ext <<_ACEOF
30071/* confdefs.h. */
30072_ACEOF
30073cat confdefs.h >>conftest.$ac_ext
30074cat >>conftest.$ac_ext <<_ACEOF
30075/* end confdefs.h. */
30076#include <stdlib.h>
30077#include <iconv.h>
30078int
30079main ()
30080{
30081iconv_t cd = iconv_open("","");
30082 iconv(cd,NULL,NULL,NULL,NULL);
30083 iconv_close(cd);
30084 ;
30085 return 0;
30086}
30087_ACEOF
30088rm -f conftest.$ac_objext conftest$ac_exeext
30089if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30090 (eval $ac_link) 2>conftest.er1
a848cd7e 30091 ac_status=$?
ac1cb8d3
VS
30092 grep -v '^ *+' conftest.er1 >conftest.err
30093 rm -f conftest.er1
30094 cat conftest.err >&5
a848cd7e
SC
30095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30096 (exit $ac_status); } &&
89be85c2
VS
30097 { ac_try='test -z "$ac_cxx_werror_flag"
30098 || test ! -s conftest.err'
ac1cb8d3
VS
30099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30100 (eval $ac_try) 2>&5
30101 ac_status=$?
30102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30103 (exit $ac_status); }; } &&
30104 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30106 (eval $ac_try) 2>&5
30107 ac_status=$?
30108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30109 (exit $ac_status); }; }; then
30110 am_cv_func_iconv=yes
30111else
30112 echo "$as_me: failed program was:" >&5
30113sed 's/^/| /' conftest.$ac_ext >&5
30114
30115fi
ac1cb8d3
VS
30116rm -f conftest.err conftest.$ac_objext \
30117 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30118 if test "$am_cv_func_iconv" != yes; then
30119 am_save_LIBS="$LIBS"
30120 LIBS="$LIBS -liconv"
30121 cat >conftest.$ac_ext <<_ACEOF
30122/* confdefs.h. */
30123_ACEOF
30124cat confdefs.h >>conftest.$ac_ext
30125cat >>conftest.$ac_ext <<_ACEOF
30126/* end confdefs.h. */
30127#include <stdlib.h>
30128#include <iconv.h>
30129int
30130main ()
30131{
30132iconv_t cd = iconv_open("","");
30133 iconv(cd,NULL,NULL,NULL,NULL);
30134 iconv_close(cd);
30135 ;
30136 return 0;
30137}
30138_ACEOF
30139rm -f conftest.$ac_objext conftest$ac_exeext
30140if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30141 (eval $ac_link) 2>conftest.er1
a848cd7e 30142 ac_status=$?
ac1cb8d3
VS
30143 grep -v '^ *+' conftest.er1 >conftest.err
30144 rm -f conftest.er1
30145 cat conftest.err >&5
a848cd7e
SC
30146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30147 (exit $ac_status); } &&
89be85c2
VS
30148 { ac_try='test -z "$ac_cxx_werror_flag"
30149 || test ! -s conftest.err'
ac1cb8d3
VS
30150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30151 (eval $ac_try) 2>&5
30152 ac_status=$?
30153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30154 (exit $ac_status); }; } &&
30155 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30157 (eval $ac_try) 2>&5
30158 ac_status=$?
30159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30160 (exit $ac_status); }; }; then
30161 am_cv_lib_iconv=yes
30162 am_cv_func_iconv=yes
30163else
30164 echo "$as_me: failed program was:" >&5
30165sed 's/^/| /' conftest.$ac_ext >&5
30166
30167fi
ac1cb8d3
VS
30168rm -f conftest.err conftest.$ac_objext \
30169 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30170 LIBS="$am_save_LIBS"
30171 fi
30172
30173fi
30174echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
30175echo "${ECHO_T}$am_cv_func_iconv" >&6
30176 if test "$am_cv_func_iconv" = yes; then
30177
30178cat >>confdefs.h <<\_ACEOF
30179#define HAVE_ICONV 1
30180_ACEOF
30181
30182 echo "$as_me:$LINENO: checking if iconv needs const" >&5
30183echo $ECHO_N "checking if iconv needs const... $ECHO_C" >&6
30184if test "${wx_cv_func_iconv_const+set}" = set; then
30185 echo $ECHO_N "(cached) $ECHO_C" >&6
30186else
30187 cat >conftest.$ac_ext <<_ACEOF
30188/* confdefs.h. */
30189_ACEOF
30190cat confdefs.h >>conftest.$ac_ext
30191cat >>conftest.$ac_ext <<_ACEOF
30192/* end confdefs.h. */
30193
30194#include <stdlib.h>
30195#include <iconv.h>
30196extern
30197#ifdef __cplusplus
30198"C"
30199#endif
30200#if defined(__STDC__) || defined(__cplusplus)
30201size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
30202#else
30203size_t iconv();
30204#endif
30205
30206int
30207main ()
30208{
30209
30210 ;
30211 return 0;
30212}
30213_ACEOF
30214rm -f conftest.$ac_objext
30215if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 30216 (eval $ac_compile) 2>conftest.er1
a848cd7e 30217 ac_status=$?
ac1cb8d3
VS
30218 grep -v '^ *+' conftest.er1 >conftest.err
30219 rm -f conftest.er1
30220 cat conftest.err >&5
a848cd7e
SC
30221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30222 (exit $ac_status); } &&
89be85c2
VS
30223 { ac_try='test -z "$ac_cxx_werror_flag"
30224 || test ! -s conftest.err'
ac1cb8d3
VS
30225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30226 (eval $ac_try) 2>&5
30227 ac_status=$?
30228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30229 (exit $ac_status); }; } &&
30230 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
30231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30232 (eval $ac_try) 2>&5
30233 ac_status=$?
30234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30235 (exit $ac_status); }; }; then
30236 wx_cv_func_iconv_const="no"
30237else
30238 echo "$as_me: failed program was:" >&5
30239sed 's/^/| /' conftest.$ac_ext >&5
30240
30241wx_cv_func_iconv_const="yes"
30242
30243fi
ac1cb8d3 30244rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
30245
30246fi
30247echo "$as_me:$LINENO: result: $wx_cv_func_iconv_const" >&5
30248echo "${ECHO_T}$wx_cv_func_iconv_const" >&6
30249
30250 iconv_const=
30251 if test "x$wx_cv_func_iconv_const" = "xyes"; then
30252 iconv_const="const"
30253 fi
30254
30255
30256cat >>confdefs.h <<_ACEOF
30257#define ICONV_CONST $iconv_const
30258_ACEOF
30259
30260 fi
30261 LIBICONV=
30262 if test "$am_cv_lib_iconv" = yes; then
30263 LIBICONV="-liconv"
30264 fi
30265
30266
30267LIBS="$LIBICONV $LIBS"
30268ac_ext=c
30269ac_cpp='$CPP $CPPFLAGS'
30270ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30271ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30272ac_compiler_gnu=$ac_cv_c_compiler_gnu
30273
30274
30275if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then
30276
30277for ac_func in sigaction
30278do
30279as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30280echo "$as_me:$LINENO: checking for $ac_func" >&5
30281echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30282if eval "test \"\${$as_ac_var+set}\" = set"; then
30283 echo $ECHO_N "(cached) $ECHO_C" >&6
30284else
30285 cat >conftest.$ac_ext <<_ACEOF
30286/* confdefs.h. */
30287_ACEOF
30288cat confdefs.h >>conftest.$ac_ext
30289cat >>conftest.$ac_ext <<_ACEOF
30290/* end confdefs.h. */
ac1cb8d3
VS
30291/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30292 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30293#define $ac_func innocuous_$ac_func
30294
a848cd7e
SC
30295/* System header to define __stub macros and hopefully few prototypes,
30296 which can conflict with char $ac_func (); below.
30297 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30298 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 30299
a848cd7e
SC
30300#ifdef __STDC__
30301# include <limits.h>
30302#else
30303# include <assert.h>
30304#endif
ac1cb8d3
VS
30305
30306#undef $ac_func
30307
a848cd7e
SC
30308/* Override any gcc2 internal prototype to avoid an error. */
30309#ifdef __cplusplus
30310extern "C"
30311{
30312#endif
30313/* We use char because int might match the return type of a gcc2
30314 builtin and then its argument prototype would still apply. */
30315char $ac_func ();
30316/* The GNU C library defines this for functions which it implements
30317 to always fail with ENOSYS. Some functions are actually named
30318 something starting with __ and the normal name is an alias. */
30319#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30320choke me
30321#else
30322char (*f) () = $ac_func;
30323#endif
30324#ifdef __cplusplus
30325}
30326#endif
30327
30328int
30329main ()
30330{
30331return f != $ac_func;
30332 ;
30333 return 0;
30334}
30335_ACEOF
30336rm -f conftest.$ac_objext conftest$ac_exeext
30337if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30338 (eval $ac_link) 2>conftest.er1
a848cd7e 30339 ac_status=$?
ac1cb8d3
VS
30340 grep -v '^ *+' conftest.er1 >conftest.err
30341 rm -f conftest.er1
30342 cat conftest.err >&5
a848cd7e
SC
30343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30344 (exit $ac_status); } &&
89be85c2
VS
30345 { ac_try='test -z "$ac_c_werror_flag"
30346 || test ! -s conftest.err'
ac1cb8d3
VS
30347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30348 (eval $ac_try) 2>&5
30349 ac_status=$?
30350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30351 (exit $ac_status); }; } &&
30352 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30354 (eval $ac_try) 2>&5
30355 ac_status=$?
30356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30357 (exit $ac_status); }; }; then
30358 eval "$as_ac_var=yes"
30359else
30360 echo "$as_me: failed program was:" >&5
30361sed 's/^/| /' conftest.$ac_ext >&5
30362
30363eval "$as_ac_var=no"
30364fi
ac1cb8d3
VS
30365rm -f conftest.err conftest.$ac_objext \
30366 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30367fi
30368echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30369echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30370if test `eval echo '${'$as_ac_var'}'` = yes; then
30371 cat >>confdefs.h <<_ACEOF
30372#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30373_ACEOF
30374
30375fi
30376done
30377
30378
30379 if test "$ac_cv_func_sigaction" = "no"; then
30380 { echo "$as_me:$LINENO: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&5
30381echo "$as_me: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&2;}
30382 wxUSE_ON_FATAL_EXCEPTION=no
30383 fi
30384
30385 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
30386
30387
30388 ac_ext=cc
30389ac_cpp='$CXXCPP $CPPFLAGS'
30390ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30391ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30392ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30393
30394
30395 echo "$as_me:$LINENO: checking for sa_handler type" >&5
30396echo $ECHO_N "checking for sa_handler type... $ECHO_C" >&6
30397if test "${wx_cv_type_sa_handler+set}" = set; then
30398 echo $ECHO_N "(cached) $ECHO_C" >&6
30399else
30400
30401 cat >conftest.$ac_ext <<_ACEOF
30402/* confdefs.h. */
30403_ACEOF
30404cat confdefs.h >>conftest.$ac_ext
30405cat >>conftest.$ac_ext <<_ACEOF
30406/* end confdefs.h. */
30407#include <signal.h>
30408int
30409main ()
30410{
30411
30412 extern void testSigHandler(int);
30413
30414 struct sigaction sa;
30415 sa.sa_handler = testSigHandler;
30416
30417 ;
30418 return 0;
30419}
30420_ACEOF
30421rm -f conftest.$ac_objext
30422if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 30423 (eval $ac_compile) 2>conftest.er1
a848cd7e 30424 ac_status=$?
ac1cb8d3
VS
30425 grep -v '^ *+' conftest.er1 >conftest.err
30426 rm -f conftest.er1
30427 cat conftest.err >&5
a848cd7e
SC
30428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30429 (exit $ac_status); } &&
89be85c2
VS
30430 { ac_try='test -z "$ac_cxx_werror_flag"
30431 || test ! -s conftest.err'
ac1cb8d3
VS
30432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30433 (eval $ac_try) 2>&5
30434 ac_status=$?
30435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30436 (exit $ac_status); }; } &&
30437 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
30438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30439 (eval $ac_try) 2>&5
30440 ac_status=$?
30441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30442 (exit $ac_status); }; }; then
30443
30444 wx_cv_type_sa_handler=int
30445
30446else
30447 echo "$as_me: failed program was:" >&5
30448sed 's/^/| /' conftest.$ac_ext >&5
30449
30450
30451 wx_cv_type_sa_handler=void
30452
30453fi
ac1cb8d3 30454rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
30455
30456fi
30457echo "$as_me:$LINENO: result: $wx_cv_type_sa_handler" >&5
30458echo "${ECHO_T}$wx_cv_type_sa_handler" >&6
30459
30460 ac_ext=c
30461ac_cpp='$CPP $CPPFLAGS'
30462ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30463ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30464ac_compiler_gnu=$ac_cv_c_compiler_gnu
30465
30466
30467 cat >>confdefs.h <<_ACEOF
30468#define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler
30469_ACEOF
30470
30471 fi
30472fi
30473
eaff0f0d
VZ
30474if test "$wxUSE_STACKWALKER" = "yes" -a "$wxUSE_UNIX" = "yes"; then
30475
30476
30477 ac_ext=cc
30478ac_cpp='$CXXCPP $CPPFLAGS'
30479ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30480ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30481ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30482
30483
30484 echo "$as_me:$LINENO: checking for backtrace() in <execinfo.h>" >&5
30485echo $ECHO_N "checking for backtrace() in <execinfo.h>... $ECHO_C" >&6
30486if test "${wx_cv_func_backtrace+set}" = set; then
30487 echo $ECHO_N "(cached) $ECHO_C" >&6
30488else
30489
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. */
30496#include <execinfo.h>
30497int
30498main ()
30499{
30500
30501 void *trace[1];
30502 char **messages;
30503
30504 backtrace(trace, 1);
30505 messages = backtrace_symbols(trace, 1);
30506
30507 ;
30508 return 0;
30509}
30510_ACEOF
30511rm -f conftest.$ac_objext
30512if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30513 (eval $ac_compile) 2>conftest.er1
30514 ac_status=$?
30515 grep -v '^ *+' conftest.er1 >conftest.err
30516 rm -f conftest.er1
30517 cat conftest.err >&5
30518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30519 (exit $ac_status); } &&
89be85c2
VS
30520 { ac_try='test -z "$ac_cxx_werror_flag"
30521 || test ! -s conftest.err'
eaff0f0d
VZ
30522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30523 (eval $ac_try) 2>&5
30524 ac_status=$?
30525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30526 (exit $ac_status); }; } &&
30527 { ac_try='test -s conftest.$ac_objext'
30528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30529 (eval $ac_try) 2>&5
30530 ac_status=$?
30531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30532 (exit $ac_status); }; }; then
30533 wx_cv_func_backtrace=yes
30534else
30535 echo "$as_me: failed program was:" >&5
30536sed 's/^/| /' conftest.$ac_ext >&5
30537
30538wx_cv_func_backtrace=no
30539
30540fi
30541rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30542
30543
30544fi
30545echo "$as_me:$LINENO: result: $wx_cv_func_backtrace" >&5
30546echo "${ECHO_T}$wx_cv_func_backtrace" >&6
30547
30548
30549 if test "$wx_cv_func_backtrace" = "no"; then
30550 { echo "$as_me:$LINENO: WARNING: backtrace() is not available, wxStackWalker will not be available" >&5
30551echo "$as_me: WARNING: backtrace() is not available, wxStackWalker will not be available" >&2;}
30552 wxUSE_STACKWALKER=no
30553 else
30554 echo "$as_me:$LINENO: checking for __cxa_demangle() in <cxxabi.h>" >&5
30555echo $ECHO_N "checking for __cxa_demangle() in <cxxabi.h>... $ECHO_C" >&6
30556if test "${wx_cv_func_cxa_demangle+set}" = set; then
30557 echo $ECHO_N "(cached) $ECHO_C" >&6
30558else
30559
30560 cat >conftest.$ac_ext <<_ACEOF
30561/* confdefs.h. */
30562_ACEOF
30563cat confdefs.h >>conftest.$ac_ext
30564cat >>conftest.$ac_ext <<_ACEOF
30565/* end confdefs.h. */
30566#include <cxxabi.h>
30567int
30568main ()
30569{
30570
30571 int rc;
30572 __cxxabiv1::__cxa_demangle("foo", 0, 0, &rc);
30573
30574 ;
30575 return 0;
30576}
30577_ACEOF
30578rm -f conftest.$ac_objext
30579if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30580 (eval $ac_compile) 2>conftest.er1
30581 ac_status=$?
30582 grep -v '^ *+' conftest.er1 >conftest.err
30583 rm -f conftest.er1
30584 cat conftest.err >&5
30585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30586 (exit $ac_status); } &&
89be85c2
VS
30587 { ac_try='test -z "$ac_cxx_werror_flag"
30588 || test ! -s conftest.err'
eaff0f0d
VZ
30589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30590 (eval $ac_try) 2>&5
30591 ac_status=$?
30592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30593 (exit $ac_status); }; } &&
30594 { ac_try='test -s conftest.$ac_objext'
30595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30596 (eval $ac_try) 2>&5
30597 ac_status=$?
30598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30599 (exit $ac_status); }; }; then
30600 wx_cv_func_cxa_demangle=yes
30601else
30602 echo "$as_me: failed program was:" >&5
30603sed 's/^/| /' conftest.$ac_ext >&5
30604
30605wx_cv_func_cxa_demangle=no
30606
30607fi
30608rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30609
30610
30611fi
30612echo "$as_me:$LINENO: result: $wx_cv_func_cxa_demangle" >&5
30613echo "${ECHO_T}$wx_cv_func_cxa_demangle" >&6
30614
30615 if test "$wx_cv_func_cxa_demangle" = "yes"; then
30616 cat >>confdefs.h <<\_ACEOF
30617#define HAVE_CXA_DEMANGLE 1
30618_ACEOF
30619
30620 fi
30621 fi
30622
30623 ac_ext=c
30624ac_cpp='$CPP $CPPFLAGS'
30625ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30626ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30627ac_compiler_gnu=$ac_cv_c_compiler_gnu
30628
30629fi
30630
a848cd7e
SC
30631
30632
30633for ac_func in mkstemp mktemp
30634do
30635as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30636echo "$as_me:$LINENO: checking for $ac_func" >&5
30637echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30638if eval "test \"\${$as_ac_var+set}\" = set"; then
30639 echo $ECHO_N "(cached) $ECHO_C" >&6
30640else
30641 cat >conftest.$ac_ext <<_ACEOF
30642/* confdefs.h. */
30643_ACEOF
30644cat confdefs.h >>conftest.$ac_ext
30645cat >>conftest.$ac_ext <<_ACEOF
30646/* end confdefs.h. */
ac1cb8d3
VS
30647/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30648 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30649#define $ac_func innocuous_$ac_func
30650
a848cd7e
SC
30651/* System header to define __stub macros and hopefully few prototypes,
30652 which can conflict with char $ac_func (); below.
30653 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30654 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 30655
a848cd7e
SC
30656#ifdef __STDC__
30657# include <limits.h>
30658#else
30659# include <assert.h>
30660#endif
ac1cb8d3
VS
30661
30662#undef $ac_func
30663
a848cd7e
SC
30664/* Override any gcc2 internal prototype to avoid an error. */
30665#ifdef __cplusplus
30666extern "C"
30667{
30668#endif
30669/* We use char because int might match the return type of a gcc2
30670 builtin and then its argument prototype would still apply. */
30671char $ac_func ();
30672/* The GNU C library defines this for functions which it implements
30673 to always fail with ENOSYS. Some functions are actually named
30674 something starting with __ and the normal name is an alias. */
30675#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30676choke me
30677#else
30678char (*f) () = $ac_func;
30679#endif
30680#ifdef __cplusplus
30681}
30682#endif
30683
30684int
30685main ()
30686{
30687return f != $ac_func;
30688 ;
30689 return 0;
30690}
30691_ACEOF
30692rm -f conftest.$ac_objext conftest$ac_exeext
30693if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30694 (eval $ac_link) 2>conftest.er1
a848cd7e 30695 ac_status=$?
ac1cb8d3
VS
30696 grep -v '^ *+' conftest.er1 >conftest.err
30697 rm -f conftest.er1
30698 cat conftest.err >&5
a848cd7e
SC
30699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30700 (exit $ac_status); } &&
89be85c2
VS
30701 { ac_try='test -z "$ac_c_werror_flag"
30702 || test ! -s conftest.err'
ac1cb8d3
VS
30703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30704 (eval $ac_try) 2>&5
30705 ac_status=$?
30706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30707 (exit $ac_status); }; } &&
30708 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30710 (eval $ac_try) 2>&5
30711 ac_status=$?
30712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30713 (exit $ac_status); }; }; then
30714 eval "$as_ac_var=yes"
30715else
30716 echo "$as_me: failed program was:" >&5
30717sed 's/^/| /' conftest.$ac_ext >&5
30718
30719eval "$as_ac_var=no"
30720fi
ac1cb8d3
VS
30721rm -f conftest.err conftest.$ac_objext \
30722 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30723fi
30724echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30725echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30726if test `eval echo '${'$as_ac_var'}'` = yes; then
30727 cat >>confdefs.h <<_ACEOF
30728#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30729_ACEOF
30730 break
30731fi
30732done
30733
30734
30735echo "$as_me:$LINENO: checking for statfs" >&5
30736echo $ECHO_N "checking for statfs... $ECHO_C" >&6
30737if test "${wx_cv_func_statfs+set}" = set; then
30738 echo $ECHO_N "(cached) $ECHO_C" >&6
30739else
30740 cat >conftest.$ac_ext <<_ACEOF
30741/* confdefs.h. */
30742_ACEOF
30743cat confdefs.h >>conftest.$ac_ext
30744cat >>conftest.$ac_ext <<_ACEOF
30745/* end confdefs.h. */
30746
30747 #if defined(__BSD__)
30748 #include <sys/param.h>
30749 #include <sys/mount.h>
30750 #else
30751 #include <sys/vfs.h>
30752 #endif
30753
30754int
30755main ()
30756{
30757
30758 long l;
30759 struct statfs fs;
30760 statfs("/", &fs);
30761 l = fs.f_bsize;
30762 l += fs.f_blocks;
30763 l += fs.f_bavail;
30764
30765 ;
30766 return 0;
30767}
30768_ACEOF
30769rm -f conftest.$ac_objext
30770if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 30771 (eval $ac_compile) 2>conftest.er1
a848cd7e 30772 ac_status=$?
ac1cb8d3
VS
30773 grep -v '^ *+' conftest.er1 >conftest.err
30774 rm -f conftest.er1
30775 cat conftest.err >&5
a848cd7e
SC
30776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30777 (exit $ac_status); } &&
89be85c2
VS
30778 { ac_try='test -z "$ac_c_werror_flag"
30779 || test ! -s conftest.err'
ac1cb8d3
VS
30780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30781 (eval $ac_try) 2>&5
30782 ac_status=$?
30783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30784 (exit $ac_status); }; } &&
30785 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
30786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30787 (eval $ac_try) 2>&5
30788 ac_status=$?
30789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30790 (exit $ac_status); }; }; then
30791
30792 wx_cv_func_statfs=yes
30793
30794else
30795 echo "$as_me: failed program was:" >&5
30796sed 's/^/| /' conftest.$ac_ext >&5
30797
30798
30799 wx_cv_func_statfs=no
30800
30801
30802fi
ac1cb8d3 30803rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
30804
30805fi
30806echo "$as_me:$LINENO: result: $wx_cv_func_statfs" >&5
30807echo "${ECHO_T}$wx_cv_func_statfs" >&6
30808
30809if test "$wx_cv_func_statfs" = "yes"; then
30810 wx_cv_type_statvfs_t="struct statfs"
30811 cat >>confdefs.h <<\_ACEOF
30812#define HAVE_STATFS 1
30813_ACEOF
30814
30815else
30816 echo "$as_me:$LINENO: checking for statvfs" >&5
30817echo $ECHO_N "checking for statvfs... $ECHO_C" >&6
30818if test "${wx_cv_func_statvfs+set}" = set; then
30819 echo $ECHO_N "(cached) $ECHO_C" >&6
30820else
30821 cat >conftest.$ac_ext <<_ACEOF
30822/* confdefs.h. */
30823_ACEOF
30824cat confdefs.h >>conftest.$ac_ext
30825cat >>conftest.$ac_ext <<_ACEOF
30826/* end confdefs.h. */
30827
30828 #include <stddef.h>
30829 #include <sys/statvfs.h>
30830
30831int
30832main ()
30833{
30834
30835 statvfs("/", NULL);
30836
30837 ;
30838 return 0;
30839}
30840_ACEOF
30841rm -f conftest.$ac_objext
30842if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 30843 (eval $ac_compile) 2>conftest.er1
a848cd7e 30844 ac_status=$?
ac1cb8d3
VS
30845 grep -v '^ *+' conftest.er1 >conftest.err
30846 rm -f conftest.er1
30847 cat conftest.err >&5
a848cd7e
SC
30848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30849 (exit $ac_status); } &&
89be85c2
VS
30850 { ac_try='test -z "$ac_c_werror_flag"
30851 || test ! -s conftest.err'
ac1cb8d3
VS
30852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30853 (eval $ac_try) 2>&5
30854 ac_status=$?
30855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30856 (exit $ac_status); }; } &&
30857 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
30858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30859 (eval $ac_try) 2>&5
30860 ac_status=$?
30861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30862 (exit $ac_status); }; }; then
30863 wx_cv_func_statvfs=yes
30864else
30865 echo "$as_me: failed program was:" >&5
30866sed 's/^/| /' conftest.$ac_ext >&5
30867
30868wx_cv_func_statvfs=no
30869
30870fi
ac1cb8d3 30871rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
30872
30873fi
30874echo "$as_me:$LINENO: result: $wx_cv_func_statvfs" >&5
30875echo "${ECHO_T}$wx_cv_func_statvfs" >&6
30876
30877 if test "$wx_cv_func_statvfs" = "yes"; then
30878
30879
30880 ac_ext=cc
30881ac_cpp='$CXXCPP $CPPFLAGS'
30882ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30883ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30884ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30885
30886
30887 echo "$as_me:$LINENO: checking for statvfs argument type" >&5
30888echo $ECHO_N "checking for statvfs argument type... $ECHO_C" >&6
30889if test "${wx_cv_type_statvfs_t+set}" = set; then
30890 echo $ECHO_N "(cached) $ECHO_C" >&6
30891else
30892 cat >conftest.$ac_ext <<_ACEOF
30893/* confdefs.h. */
30894_ACEOF
30895cat confdefs.h >>conftest.$ac_ext
30896cat >>conftest.$ac_ext <<_ACEOF
30897/* end confdefs.h. */
30898
30899 #include <sys/statvfs.h>
30900
30901int
30902main ()
30903{
30904
30905 long l;
30906 statvfs_t fs;
30907 statvfs("/", &fs);
30908 l = fs.f_bsize;
30909 l += fs.f_blocks;
30910 l += fs.f_bavail;
30911
30912 ;
30913 return 0;
30914}
30915_ACEOF
30916rm -f conftest.$ac_objext
30917if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 30918 (eval $ac_compile) 2>conftest.er1
a848cd7e 30919 ac_status=$?
ac1cb8d3
VS
30920 grep -v '^ *+' conftest.er1 >conftest.err
30921 rm -f conftest.er1
30922 cat conftest.err >&5
a848cd7e
SC
30923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30924 (exit $ac_status); } &&
89be85c2
VS
30925 { ac_try='test -z "$ac_cxx_werror_flag"
30926 || test ! -s conftest.err'
ac1cb8d3
VS
30927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30928 (eval $ac_try) 2>&5
30929 ac_status=$?
30930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30931 (exit $ac_status); }; } &&
30932 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
30933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30934 (eval $ac_try) 2>&5
30935 ac_status=$?
30936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30937 (exit $ac_status); }; }; then
30938 wx_cv_type_statvfs_t=statvfs_t
30939else
30940 echo "$as_me: failed program was:" >&5
30941sed 's/^/| /' conftest.$ac_ext >&5
30942
30943
30944 cat >conftest.$ac_ext <<_ACEOF
30945/* confdefs.h. */
30946_ACEOF
30947cat confdefs.h >>conftest.$ac_ext
30948cat >>conftest.$ac_ext <<_ACEOF
30949/* end confdefs.h. */
30950
30951 #include <sys/statvfs.h>
30952
30953int
30954main ()
30955{
30956
30957 long l;
30958 struct statvfs fs;
30959 statvfs("/", &fs);
30960 l = fs.f_bsize;
30961 l += fs.f_blocks;
30962 l += fs.f_bavail;
30963
30964 ;
30965 return 0;
30966}
30967_ACEOF
30968rm -f conftest.$ac_objext
30969if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 30970 (eval $ac_compile) 2>conftest.er1
a848cd7e 30971 ac_status=$?
ac1cb8d3
VS
30972 grep -v '^ *+' conftest.er1 >conftest.err
30973 rm -f conftest.er1
30974 cat conftest.err >&5
a848cd7e
SC
30975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30976 (exit $ac_status); } &&
89be85c2
VS
30977 { ac_try='test -z "$ac_cxx_werror_flag"
30978 || test ! -s conftest.err'
ac1cb8d3
VS
30979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30980 (eval $ac_try) 2>&5
30981 ac_status=$?
30982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30983 (exit $ac_status); }; } &&
30984 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
30985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30986 (eval $ac_try) 2>&5
30987 ac_status=$?
30988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30989 (exit $ac_status); }; }; then
30990 wx_cv_type_statvfs_t="struct statvfs"
30991else
30992 echo "$as_me: failed program was:" >&5
30993sed 's/^/| /' conftest.$ac_ext >&5
30994
30995wx_cv_type_statvfs_t="unknown"
30996
30997fi
ac1cb8d3 30998rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
30999
31000
31001fi
ac1cb8d3 31002rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
31003
31004fi
31005echo "$as_me:$LINENO: result: $wx_cv_type_statvfs_t" >&5
31006echo "${ECHO_T}$wx_cv_type_statvfs_t" >&6
31007
31008 ac_ext=c
31009ac_cpp='$CPP $CPPFLAGS'
31010ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31011ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31012ac_compiler_gnu=$ac_cv_c_compiler_gnu
31013
31014
31015 if test "$wx_cv_type_statvfs_t" != "unknown"; then
31016 cat >>confdefs.h <<\_ACEOF
31017#define HAVE_STATVFS 1
31018_ACEOF
31019
31020 fi
31021 else
31022 wx_cv_type_statvfs_t="unknown"
31023 fi
31024fi
31025
31026if test "$wx_cv_type_statvfs_t" != "unknown"; then
31027 cat >>confdefs.h <<_ACEOF
31028#define WX_STATFS_T $wx_cv_type_statvfs_t
31029_ACEOF
31030
31031else
31032 { echo "$as_me:$LINENO: WARNING: wxGetDiskSpace() function won't work without statfs()" >&5
31033echo "$as_me: WARNING: wxGetDiskSpace() function won't work without statfs()" >&2;}
31034fi
31035
31036if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
31037
31038
31039for ac_func in fcntl flock
31040do
31041as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31042echo "$as_me:$LINENO: checking for $ac_func" >&5
31043echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31044if eval "test \"\${$as_ac_var+set}\" = set"; then
31045 echo $ECHO_N "(cached) $ECHO_C" >&6
31046else
31047 cat >conftest.$ac_ext <<_ACEOF
31048/* confdefs.h. */
31049_ACEOF
31050cat confdefs.h >>conftest.$ac_ext
31051cat >>conftest.$ac_ext <<_ACEOF
31052/* end confdefs.h. */
ac1cb8d3
VS
31053/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31054 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31055#define $ac_func innocuous_$ac_func
31056
a848cd7e
SC
31057/* System header to define __stub macros and hopefully few prototypes,
31058 which can conflict with char $ac_func (); below.
31059 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31060 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 31061
a848cd7e
SC
31062#ifdef __STDC__
31063# include <limits.h>
31064#else
31065# include <assert.h>
31066#endif
ac1cb8d3
VS
31067
31068#undef $ac_func
31069
a848cd7e
SC
31070/* Override any gcc2 internal prototype to avoid an error. */
31071#ifdef __cplusplus
31072extern "C"
31073{
31074#endif
31075/* We use char because int might match the return type of a gcc2
31076 builtin and then its argument prototype would still apply. */
31077char $ac_func ();
31078/* The GNU C library defines this for functions which it implements
31079 to always fail with ENOSYS. Some functions are actually named
31080 something starting with __ and the normal name is an alias. */
31081#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31082choke me
31083#else
31084char (*f) () = $ac_func;
31085#endif
31086#ifdef __cplusplus
31087}
31088#endif
31089
31090int
31091main ()
31092{
31093return f != $ac_func;
31094 ;
31095 return 0;
31096}
31097_ACEOF
31098rm -f conftest.$ac_objext conftest$ac_exeext
31099if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31100 (eval $ac_link) 2>conftest.er1
a848cd7e 31101 ac_status=$?
ac1cb8d3
VS
31102 grep -v '^ *+' conftest.er1 >conftest.err
31103 rm -f conftest.er1
31104 cat conftest.err >&5
a848cd7e
SC
31105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31106 (exit $ac_status); } &&
89be85c2
VS
31107 { ac_try='test -z "$ac_c_werror_flag"
31108 || test ! -s conftest.err'
ac1cb8d3
VS
31109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31110 (eval $ac_try) 2>&5
31111 ac_status=$?
31112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31113 (exit $ac_status); }; } &&
31114 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31116 (eval $ac_try) 2>&5
31117 ac_status=$?
31118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31119 (exit $ac_status); }; }; then
31120 eval "$as_ac_var=yes"
31121else
31122 echo "$as_me: failed program was:" >&5
31123sed 's/^/| /' conftest.$ac_ext >&5
31124
31125eval "$as_ac_var=no"
31126fi
ac1cb8d3
VS
31127rm -f conftest.err conftest.$ac_objext \
31128 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31129fi
31130echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31131echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31132if test `eval echo '${'$as_ac_var'}'` = yes; then
31133 cat >>confdefs.h <<_ACEOF
31134#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31135_ACEOF
31136 break
31137fi
31138done
31139
31140
31141 if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then
31142 { echo "$as_me:$LINENO: WARNING: wxSingleInstanceChecker not available" >&5
31143echo "$as_me: WARNING: wxSingleInstanceChecker not available" >&2;}
31144 wxUSE_SNGLINST_CHECKER=no
31145 fi
31146fi
31147
31148
31149for ac_func in timegm
31150do
31151as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31152echo "$as_me:$LINENO: checking for $ac_func" >&5
31153echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31154if eval "test \"\${$as_ac_var+set}\" = set"; then
31155 echo $ECHO_N "(cached) $ECHO_C" >&6
31156else
31157 cat >conftest.$ac_ext <<_ACEOF
31158/* confdefs.h. */
31159_ACEOF
31160cat confdefs.h >>conftest.$ac_ext
31161cat >>conftest.$ac_ext <<_ACEOF
31162/* end confdefs.h. */
ac1cb8d3
VS
31163/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31164 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31165#define $ac_func innocuous_$ac_func
31166
a848cd7e
SC
31167/* System header to define __stub macros and hopefully few prototypes,
31168 which can conflict with char $ac_func (); below.
31169 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31170 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 31171
a848cd7e
SC
31172#ifdef __STDC__
31173# include <limits.h>
31174#else
31175# include <assert.h>
31176#endif
ac1cb8d3
VS
31177
31178#undef $ac_func
31179
a848cd7e
SC
31180/* Override any gcc2 internal prototype to avoid an error. */
31181#ifdef __cplusplus
31182extern "C"
31183{
31184#endif
31185/* We use char because int might match the return type of a gcc2
31186 builtin and then its argument prototype would still apply. */
31187char $ac_func ();
31188/* The GNU C library defines this for functions which it implements
31189 to always fail with ENOSYS. Some functions are actually named
31190 something starting with __ and the normal name is an alias. */
31191#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31192choke me
31193#else
31194char (*f) () = $ac_func;
31195#endif
31196#ifdef __cplusplus
31197}
31198#endif
31199
31200int
31201main ()
31202{
31203return f != $ac_func;
31204 ;
31205 return 0;
31206}
31207_ACEOF
31208rm -f conftest.$ac_objext conftest$ac_exeext
31209if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31210 (eval $ac_link) 2>conftest.er1
a848cd7e 31211 ac_status=$?
ac1cb8d3
VS
31212 grep -v '^ *+' conftest.er1 >conftest.err
31213 rm -f conftest.er1
31214 cat conftest.err >&5
a848cd7e
SC
31215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31216 (exit $ac_status); } &&
89be85c2
VS
31217 { ac_try='test -z "$ac_c_werror_flag"
31218 || test ! -s conftest.err'
ac1cb8d3
VS
31219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31220 (eval $ac_try) 2>&5
31221 ac_status=$?
31222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31223 (exit $ac_status); }; } &&
31224 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31226 (eval $ac_try) 2>&5
31227 ac_status=$?
31228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31229 (exit $ac_status); }; }; then
31230 eval "$as_ac_var=yes"
31231else
31232 echo "$as_me: failed program was:" >&5
31233sed 's/^/| /' conftest.$ac_ext >&5
31234
31235eval "$as_ac_var=no"
31236fi
ac1cb8d3
VS
31237rm -f conftest.err conftest.$ac_objext \
31238 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31239fi
31240echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31241echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31242if test `eval echo '${'$as_ac_var'}'` = yes; then
31243 cat >>confdefs.h <<_ACEOF
31244#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31245_ACEOF
31246
31247fi
31248done
31249
31250
31251
31252
31253for ac_func in putenv setenv
31254do
31255as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31256echo "$as_me:$LINENO: checking for $ac_func" >&5
31257echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31258if eval "test \"\${$as_ac_var+set}\" = set"; then
31259 echo $ECHO_N "(cached) $ECHO_C" >&6
31260else
31261 cat >conftest.$ac_ext <<_ACEOF
31262/* confdefs.h. */
31263_ACEOF
31264cat confdefs.h >>conftest.$ac_ext
31265cat >>conftest.$ac_ext <<_ACEOF
31266/* end confdefs.h. */
ac1cb8d3
VS
31267/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31268 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31269#define $ac_func innocuous_$ac_func
31270
a848cd7e
SC
31271/* System header to define __stub macros and hopefully few prototypes,
31272 which can conflict with char $ac_func (); below.
31273 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31274 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 31275
a848cd7e
SC
31276#ifdef __STDC__
31277# include <limits.h>
31278#else
31279# include <assert.h>
31280#endif
ac1cb8d3
VS
31281
31282#undef $ac_func
31283
a848cd7e
SC
31284/* Override any gcc2 internal prototype to avoid an error. */
31285#ifdef __cplusplus
31286extern "C"
31287{
31288#endif
31289/* We use char because int might match the return type of a gcc2
31290 builtin and then its argument prototype would still apply. */
31291char $ac_func ();
31292/* The GNU C library defines this for functions which it implements
31293 to always fail with ENOSYS. Some functions are actually named
31294 something starting with __ and the normal name is an alias. */
31295#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31296choke me
31297#else
31298char (*f) () = $ac_func;
31299#endif
31300#ifdef __cplusplus
31301}
31302#endif
31303
31304int
31305main ()
31306{
31307return f != $ac_func;
31308 ;
31309 return 0;
31310}
31311_ACEOF
31312rm -f conftest.$ac_objext conftest$ac_exeext
31313if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31314 (eval $ac_link) 2>conftest.er1
a848cd7e 31315 ac_status=$?
ac1cb8d3
VS
31316 grep -v '^ *+' conftest.er1 >conftest.err
31317 rm -f conftest.er1
31318 cat conftest.err >&5
a848cd7e
SC
31319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31320 (exit $ac_status); } &&
89be85c2
VS
31321 { ac_try='test -z "$ac_c_werror_flag"
31322 || test ! -s conftest.err'
ac1cb8d3
VS
31323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31324 (eval $ac_try) 2>&5
31325 ac_status=$?
31326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31327 (exit $ac_status); }; } &&
31328 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31330 (eval $ac_try) 2>&5
31331 ac_status=$?
31332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31333 (exit $ac_status); }; }; then
31334 eval "$as_ac_var=yes"
31335else
31336 echo "$as_me: failed program was:" >&5
31337sed 's/^/| /' conftest.$ac_ext >&5
31338
31339eval "$as_ac_var=no"
31340fi
ac1cb8d3
VS
31341rm -f conftest.err conftest.$ac_objext \
31342 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31343fi
31344echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31345echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31346if test `eval echo '${'$as_ac_var'}'` = yes; then
31347 cat >>confdefs.h <<_ACEOF
31348#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31349_ACEOF
31350 break
31351fi
31352done
31353
31354
31355HAVE_SOME_SLEEP_FUNC=0
31356if test "$USE_BEOS" = 1; then
31357 cat >>confdefs.h <<\_ACEOF
31358#define HAVE_SLEEP 1
31359_ACEOF
31360
31361 HAVE_SOME_SLEEP_FUNC=1
31362fi
31363
31364if test "$USE_DARWIN" = 1; then
31365 cat >>confdefs.h <<\_ACEOF
31366#define HAVE_USLEEP 1
31367_ACEOF
31368
31369 HAVE_SOME_SLEEP_FUNC=1
31370fi
31371
31372if test "$HAVE_SOME_SLEEP_FUNC" != 1; then
31373 POSIX4_LINK=
31374
31375for ac_func in nanosleep
31376do
31377as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31378echo "$as_me:$LINENO: checking for $ac_func" >&5
31379echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31380if eval "test \"\${$as_ac_var+set}\" = set"; then
31381 echo $ECHO_N "(cached) $ECHO_C" >&6
31382else
31383 cat >conftest.$ac_ext <<_ACEOF
31384/* confdefs.h. */
31385_ACEOF
31386cat confdefs.h >>conftest.$ac_ext
31387cat >>conftest.$ac_ext <<_ACEOF
31388/* end confdefs.h. */
ac1cb8d3
VS
31389/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31390 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31391#define $ac_func innocuous_$ac_func
31392
a848cd7e
SC
31393/* System header to define __stub macros and hopefully few prototypes,
31394 which can conflict with char $ac_func (); below.
31395 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31396 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 31397
a848cd7e
SC
31398#ifdef __STDC__
31399# include <limits.h>
31400#else
31401# include <assert.h>
31402#endif
ac1cb8d3
VS
31403
31404#undef $ac_func
31405
a848cd7e
SC
31406/* Override any gcc2 internal prototype to avoid an error. */
31407#ifdef __cplusplus
31408extern "C"
31409{
31410#endif
31411/* We use char because int might match the return type of a gcc2
31412 builtin and then its argument prototype would still apply. */
31413char $ac_func ();
31414/* The GNU C library defines this for functions which it implements
31415 to always fail with ENOSYS. Some functions are actually named
31416 something starting with __ and the normal name is an alias. */
31417#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31418choke me
31419#else
31420char (*f) () = $ac_func;
31421#endif
31422#ifdef __cplusplus
31423}
31424#endif
31425
31426int
31427main ()
31428{
31429return f != $ac_func;
31430 ;
31431 return 0;
31432}
31433_ACEOF
31434rm -f conftest.$ac_objext conftest$ac_exeext
31435if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31436 (eval $ac_link) 2>conftest.er1
a848cd7e 31437 ac_status=$?
ac1cb8d3
VS
31438 grep -v '^ *+' conftest.er1 >conftest.err
31439 rm -f conftest.er1
31440 cat conftest.err >&5
a848cd7e
SC
31441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31442 (exit $ac_status); } &&
89be85c2
VS
31443 { ac_try='test -z "$ac_c_werror_flag"
31444 || test ! -s conftest.err'
ac1cb8d3
VS
31445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31446 (eval $ac_try) 2>&5
31447 ac_status=$?
31448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31449 (exit $ac_status); }; } &&
31450 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31452 (eval $ac_try) 2>&5
31453 ac_status=$?
31454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31455 (exit $ac_status); }; }; then
31456 eval "$as_ac_var=yes"
31457else
31458 echo "$as_me: failed program was:" >&5
31459sed 's/^/| /' conftest.$ac_ext >&5
31460
31461eval "$as_ac_var=no"
31462fi
ac1cb8d3
VS
31463rm -f conftest.err conftest.$ac_objext \
31464 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31465fi
31466echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31467echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31468if test `eval echo '${'$as_ac_var'}'` = yes; then
31469 cat >>confdefs.h <<_ACEOF
31470#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31471_ACEOF
31472 cat >>confdefs.h <<\_ACEOF
31473#define HAVE_NANOSLEEP 1
31474_ACEOF
31475
31476else
31477
31478 echo "$as_me:$LINENO: checking for nanosleep in -lposix4" >&5
31479echo $ECHO_N "checking for nanosleep in -lposix4... $ECHO_C" >&6
31480if test "${ac_cv_lib_posix4_nanosleep+set}" = set; then
31481 echo $ECHO_N "(cached) $ECHO_C" >&6
31482else
31483 ac_check_lib_save_LIBS=$LIBS
31484LIBS="-lposix4 $LIBS"
31485cat >conftest.$ac_ext <<_ACEOF
31486/* confdefs.h. */
31487_ACEOF
31488cat confdefs.h >>conftest.$ac_ext
31489cat >>conftest.$ac_ext <<_ACEOF
31490/* end confdefs.h. */
31491
31492/* Override any gcc2 internal prototype to avoid an error. */
31493#ifdef __cplusplus
31494extern "C"
31495#endif
31496/* We use char because int might match the return type of a gcc2
31497 builtin and then its argument prototype would still apply. */
31498char nanosleep ();
31499int
31500main ()
31501{
31502nanosleep ();
31503 ;
31504 return 0;
31505}
31506_ACEOF
31507rm -f conftest.$ac_objext conftest$ac_exeext
31508if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31509 (eval $ac_link) 2>conftest.er1
a848cd7e 31510 ac_status=$?
ac1cb8d3
VS
31511 grep -v '^ *+' conftest.er1 >conftest.err
31512 rm -f conftest.er1
31513 cat conftest.err >&5
a848cd7e
SC
31514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31515 (exit $ac_status); } &&
89be85c2
VS
31516 { ac_try='test -z "$ac_c_werror_flag"
31517 || test ! -s conftest.err'
ac1cb8d3
VS
31518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31519 (eval $ac_try) 2>&5
31520 ac_status=$?
31521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31522 (exit $ac_status); }; } &&
31523 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31525 (eval $ac_try) 2>&5
31526 ac_status=$?
31527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31528 (exit $ac_status); }; }; then
31529 ac_cv_lib_posix4_nanosleep=yes
31530else
31531 echo "$as_me: failed program was:" >&5
31532sed 's/^/| /' conftest.$ac_ext >&5
31533
31534ac_cv_lib_posix4_nanosleep=no
31535fi
ac1cb8d3
VS
31536rm -f conftest.err conftest.$ac_objext \
31537 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31538LIBS=$ac_check_lib_save_LIBS
31539fi
31540echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_nanosleep" >&5
31541echo "${ECHO_T}$ac_cv_lib_posix4_nanosleep" >&6
31542if test $ac_cv_lib_posix4_nanosleep = yes; then
31543
31544 cat >>confdefs.h <<\_ACEOF
31545#define HAVE_NANOSLEEP 1
31546_ACEOF
31547
31548 POSIX4_LINK=" -lposix4"
31549
31550else
31551
31552
31553for ac_func in usleep
31554do
31555as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31556echo "$as_me:$LINENO: checking for $ac_func" >&5
31557echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31558if eval "test \"\${$as_ac_var+set}\" = set"; then
31559 echo $ECHO_N "(cached) $ECHO_C" >&6
31560else
31561 cat >conftest.$ac_ext <<_ACEOF
31562/* confdefs.h. */
31563_ACEOF
31564cat confdefs.h >>conftest.$ac_ext
31565cat >>conftest.$ac_ext <<_ACEOF
31566/* end confdefs.h. */
ac1cb8d3
VS
31567/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31568 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31569#define $ac_func innocuous_$ac_func
31570
a848cd7e
SC
31571/* System header to define __stub macros and hopefully few prototypes,
31572 which can conflict with char $ac_func (); below.
31573 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31574 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 31575
a848cd7e
SC
31576#ifdef __STDC__
31577# include <limits.h>
31578#else
31579# include <assert.h>
31580#endif
ac1cb8d3
VS
31581
31582#undef $ac_func
31583
a848cd7e
SC
31584/* Override any gcc2 internal prototype to avoid an error. */
31585#ifdef __cplusplus
31586extern "C"
31587{
31588#endif
31589/* We use char because int might match the return type of a gcc2
31590 builtin and then its argument prototype would still apply. */
31591char $ac_func ();
31592/* The GNU C library defines this for functions which it implements
31593 to always fail with ENOSYS. Some functions are actually named
31594 something starting with __ and the normal name is an alias. */
31595#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31596choke me
31597#else
31598char (*f) () = $ac_func;
31599#endif
31600#ifdef __cplusplus
31601}
31602#endif
31603
31604int
31605main ()
31606{
31607return f != $ac_func;
31608 ;
31609 return 0;
31610}
31611_ACEOF
31612rm -f conftest.$ac_objext conftest$ac_exeext
31613if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31614 (eval $ac_link) 2>conftest.er1
a848cd7e 31615 ac_status=$?
ac1cb8d3
VS
31616 grep -v '^ *+' conftest.er1 >conftest.err
31617 rm -f conftest.er1
31618 cat conftest.err >&5
a848cd7e
SC
31619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31620 (exit $ac_status); } &&
89be85c2
VS
31621 { ac_try='test -z "$ac_c_werror_flag"
31622 || test ! -s conftest.err'
ac1cb8d3
VS
31623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31624 (eval $ac_try) 2>&5
31625 ac_status=$?
31626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31627 (exit $ac_status); }; } &&
31628 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31630 (eval $ac_try) 2>&5
31631 ac_status=$?
31632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31633 (exit $ac_status); }; }; then
31634 eval "$as_ac_var=yes"
31635else
31636 echo "$as_me: failed program was:" >&5
31637sed 's/^/| /' conftest.$ac_ext >&5
31638
31639eval "$as_ac_var=no"
31640fi
ac1cb8d3
VS
31641rm -f conftest.err conftest.$ac_objext \
31642 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31643fi
31644echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31645echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31646if test `eval echo '${'$as_ac_var'}'` = yes; then
31647 cat >>confdefs.h <<_ACEOF
31648#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31649_ACEOF
31650 cat >>confdefs.h <<\_ACEOF
31651#define HAVE_USLEEP 1
31652_ACEOF
31653
31654else
31655 { echo "$as_me:$LINENO: WARNING: wxSleep() function will not work" >&5
31656echo "$as_me: WARNING: wxSleep() function will not work" >&2;}
31657
31658fi
31659done
31660
31661
31662
31663fi
31664
31665
31666
31667fi
31668done
31669
31670fi
31671
31672
31673
31674for ac_func in uname gethostname
31675do
31676as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31677echo "$as_me:$LINENO: checking for $ac_func" >&5
31678echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31679if eval "test \"\${$as_ac_var+set}\" = set"; then
31680 echo $ECHO_N "(cached) $ECHO_C" >&6
31681else
31682 cat >conftest.$ac_ext <<_ACEOF
31683/* confdefs.h. */
31684_ACEOF
31685cat confdefs.h >>conftest.$ac_ext
31686cat >>conftest.$ac_ext <<_ACEOF
31687/* end confdefs.h. */
ac1cb8d3
VS
31688/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31689 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31690#define $ac_func innocuous_$ac_func
31691
a848cd7e
SC
31692/* System header to define __stub macros and hopefully few prototypes,
31693 which can conflict with char $ac_func (); below.
31694 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31695 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 31696
a848cd7e
SC
31697#ifdef __STDC__
31698# include <limits.h>
31699#else
31700# include <assert.h>
31701#endif
ac1cb8d3
VS
31702
31703#undef $ac_func
31704
a848cd7e
SC
31705/* Override any gcc2 internal prototype to avoid an error. */
31706#ifdef __cplusplus
31707extern "C"
31708{
31709#endif
31710/* We use char because int might match the return type of a gcc2
31711 builtin and then its argument prototype would still apply. */
31712char $ac_func ();
31713/* The GNU C library defines this for functions which it implements
31714 to always fail with ENOSYS. Some functions are actually named
31715 something starting with __ and the normal name is an alias. */
31716#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31717choke me
31718#else
31719char (*f) () = $ac_func;
31720#endif
31721#ifdef __cplusplus
31722}
31723#endif
31724
31725int
31726main ()
31727{
31728return f != $ac_func;
31729 ;
31730 return 0;
31731}
31732_ACEOF
31733rm -f conftest.$ac_objext conftest$ac_exeext
31734if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31735 (eval $ac_link) 2>conftest.er1
a848cd7e 31736 ac_status=$?
ac1cb8d3
VS
31737 grep -v '^ *+' conftest.er1 >conftest.err
31738 rm -f conftest.er1
31739 cat conftest.err >&5
a848cd7e
SC
31740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31741 (exit $ac_status); } &&
89be85c2
VS
31742 { ac_try='test -z "$ac_c_werror_flag"
31743 || test ! -s conftest.err'
ac1cb8d3
VS
31744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31745 (eval $ac_try) 2>&5
31746 ac_status=$?
31747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31748 (exit $ac_status); }; } &&
31749 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31751 (eval $ac_try) 2>&5
31752 ac_status=$?
31753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31754 (exit $ac_status); }; }; then
31755 eval "$as_ac_var=yes"
31756else
31757 echo "$as_me: failed program was:" >&5
31758sed 's/^/| /' conftest.$ac_ext >&5
31759
31760eval "$as_ac_var=no"
31761fi
ac1cb8d3
VS
31762rm -f conftest.err conftest.$ac_objext \
31763 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31764fi
31765echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31766echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31767if test `eval echo '${'$as_ac_var'}'` = yes; then
31768 cat >>confdefs.h <<_ACEOF
31769#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31770_ACEOF
31771 break
31772fi
31773done
31774
31775
31776
31777
31778ac_ext=cc
31779ac_cpp='$CXXCPP $CPPFLAGS'
31780ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31781ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31782ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31783
31784
31785
31786for ac_func in strtok_r
31787do
31788as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31789echo "$as_me:$LINENO: checking for $ac_func" >&5
31790echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31791if eval "test \"\${$as_ac_var+set}\" = set"; then
31792 echo $ECHO_N "(cached) $ECHO_C" >&6
31793else
31794 cat >conftest.$ac_ext <<_ACEOF
31795/* confdefs.h. */
31796_ACEOF
31797cat confdefs.h >>conftest.$ac_ext
31798cat >>conftest.$ac_ext <<_ACEOF
31799/* end confdefs.h. */
ac1cb8d3
VS
31800/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31801 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31802#define $ac_func innocuous_$ac_func
31803
a848cd7e
SC
31804/* System header to define __stub macros and hopefully few prototypes,
31805 which can conflict with char $ac_func (); below.
31806 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31807 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 31808
a848cd7e
SC
31809#ifdef __STDC__
31810# include <limits.h>
31811#else
31812# include <assert.h>
31813#endif
ac1cb8d3
VS
31814
31815#undef $ac_func
31816
a848cd7e
SC
31817/* Override any gcc2 internal prototype to avoid an error. */
31818#ifdef __cplusplus
31819extern "C"
31820{
31821#endif
31822/* We use char because int might match the return type of a gcc2
31823 builtin and then its argument prototype would still apply. */
31824char $ac_func ();
31825/* The GNU C library defines this for functions which it implements
31826 to always fail with ENOSYS. Some functions are actually named
31827 something starting with __ and the normal name is an alias. */
31828#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31829choke me
31830#else
31831char (*f) () = $ac_func;
31832#endif
31833#ifdef __cplusplus
31834}
31835#endif
31836
31837int
31838main ()
31839{
31840return f != $ac_func;
31841 ;
31842 return 0;
31843}
31844_ACEOF
31845rm -f conftest.$ac_objext conftest$ac_exeext
31846if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31847 (eval $ac_link) 2>conftest.er1
a848cd7e 31848 ac_status=$?
ac1cb8d3
VS
31849 grep -v '^ *+' conftest.er1 >conftest.err
31850 rm -f conftest.er1
31851 cat conftest.err >&5
a848cd7e
SC
31852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31853 (exit $ac_status); } &&
89be85c2
VS
31854 { ac_try='test -z "$ac_cxx_werror_flag"
31855 || test ! -s conftest.err'
ac1cb8d3
VS
31856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31857 (eval $ac_try) 2>&5
31858 ac_status=$?
31859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31860 (exit $ac_status); }; } &&
31861 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31863 (eval $ac_try) 2>&5
31864 ac_status=$?
31865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31866 (exit $ac_status); }; }; then
31867 eval "$as_ac_var=yes"
31868else
31869 echo "$as_me: failed program was:" >&5
31870sed 's/^/| /' conftest.$ac_ext >&5
31871
31872eval "$as_ac_var=no"
31873fi
ac1cb8d3
VS
31874rm -f conftest.err conftest.$ac_objext \
31875 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31876fi
31877echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31878echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31879if test `eval echo '${'$as_ac_var'}'` = yes; then
31880 cat >>confdefs.h <<_ACEOF
31881#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31882_ACEOF
31883
31884fi
31885done
31886
31887
31888ac_ext=c
31889ac_cpp='$CPP $CPPFLAGS'
31890ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31891ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31892ac_compiler_gnu=$ac_cv_c_compiler_gnu
31893
31894
31895INET_LINK=
31896
31897for ac_func in inet_addr
31898do
31899as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31900echo "$as_me:$LINENO: checking for $ac_func" >&5
31901echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31902if eval "test \"\${$as_ac_var+set}\" = set"; then
31903 echo $ECHO_N "(cached) $ECHO_C" >&6
31904else
31905 cat >conftest.$ac_ext <<_ACEOF
31906/* confdefs.h. */
31907_ACEOF
31908cat confdefs.h >>conftest.$ac_ext
31909cat >>conftest.$ac_ext <<_ACEOF
31910/* end confdefs.h. */
ac1cb8d3
VS
31911/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31912 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31913#define $ac_func innocuous_$ac_func
31914
a848cd7e
SC
31915/* System header to define __stub macros and hopefully few prototypes,
31916 which can conflict with char $ac_func (); below.
31917 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31918 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 31919
a848cd7e
SC
31920#ifdef __STDC__
31921# include <limits.h>
31922#else
31923# include <assert.h>
31924#endif
ac1cb8d3
VS
31925
31926#undef $ac_func
31927
a848cd7e
SC
31928/* Override any gcc2 internal prototype to avoid an error. */
31929#ifdef __cplusplus
31930extern "C"
31931{
31932#endif
31933/* We use char because int might match the return type of a gcc2
31934 builtin and then its argument prototype would still apply. */
31935char $ac_func ();
31936/* The GNU C library defines this for functions which it implements
31937 to always fail with ENOSYS. Some functions are actually named
31938 something starting with __ and the normal name is an alias. */
31939#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31940choke me
31941#else
31942char (*f) () = $ac_func;
31943#endif
31944#ifdef __cplusplus
31945}
31946#endif
31947
31948int
31949main ()
31950{
31951return f != $ac_func;
31952 ;
31953 return 0;
31954}
31955_ACEOF
31956rm -f conftest.$ac_objext conftest$ac_exeext
31957if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31958 (eval $ac_link) 2>conftest.er1
a848cd7e 31959 ac_status=$?
ac1cb8d3
VS
31960 grep -v '^ *+' conftest.er1 >conftest.err
31961 rm -f conftest.er1
31962 cat conftest.err >&5
a848cd7e
SC
31963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31964 (exit $ac_status); } &&
89be85c2
VS
31965 { ac_try='test -z "$ac_c_werror_flag"
31966 || test ! -s conftest.err'
ac1cb8d3
VS
31967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31968 (eval $ac_try) 2>&5
31969 ac_status=$?
31970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31971 (exit $ac_status); }; } &&
31972 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31974 (eval $ac_try) 2>&5
31975 ac_status=$?
31976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31977 (exit $ac_status); }; }; then
31978 eval "$as_ac_var=yes"
31979else
31980 echo "$as_me: failed program was:" >&5
31981sed 's/^/| /' conftest.$ac_ext >&5
31982
31983eval "$as_ac_var=no"
31984fi
ac1cb8d3
VS
31985rm -f conftest.err conftest.$ac_objext \
31986 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31987fi
31988echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31989echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31990if test `eval echo '${'$as_ac_var'}'` = yes; then
31991 cat >>confdefs.h <<_ACEOF
31992#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31993_ACEOF
31994 cat >>confdefs.h <<\_ACEOF
31995#define HAVE_INET_ADDR 1
31996_ACEOF
31997
31998else
31999
32000 echo "$as_me:$LINENO: checking for inet_addr in -lnsl" >&5
32001echo $ECHO_N "checking for inet_addr in -lnsl... $ECHO_C" >&6
32002if test "${ac_cv_lib_nsl_inet_addr+set}" = set; then
32003 echo $ECHO_N "(cached) $ECHO_C" >&6
32004else
32005 ac_check_lib_save_LIBS=$LIBS
32006LIBS="-lnsl $LIBS"
32007cat >conftest.$ac_ext <<_ACEOF
32008/* confdefs.h. */
32009_ACEOF
32010cat confdefs.h >>conftest.$ac_ext
32011cat >>conftest.$ac_ext <<_ACEOF
32012/* end confdefs.h. */
32013
32014/* Override any gcc2 internal prototype to avoid an error. */
32015#ifdef __cplusplus
32016extern "C"
32017#endif
32018/* We use char because int might match the return type of a gcc2
32019 builtin and then its argument prototype would still apply. */
32020char inet_addr ();
32021int
32022main ()
32023{
32024inet_addr ();
32025 ;
32026 return 0;
32027}
32028_ACEOF
32029rm -f conftest.$ac_objext conftest$ac_exeext
32030if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32031 (eval $ac_link) 2>conftest.er1
a848cd7e 32032 ac_status=$?
ac1cb8d3
VS
32033 grep -v '^ *+' conftest.er1 >conftest.err
32034 rm -f conftest.er1
32035 cat conftest.err >&5
a848cd7e
SC
32036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32037 (exit $ac_status); } &&
89be85c2
VS
32038 { ac_try='test -z "$ac_c_werror_flag"
32039 || test ! -s conftest.err'
ac1cb8d3
VS
32040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32041 (eval $ac_try) 2>&5
32042 ac_status=$?
32043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32044 (exit $ac_status); }; } &&
32045 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32047 (eval $ac_try) 2>&5
32048 ac_status=$?
32049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32050 (exit $ac_status); }; }; then
32051 ac_cv_lib_nsl_inet_addr=yes
32052else
32053 echo "$as_me: failed program was:" >&5
32054sed 's/^/| /' conftest.$ac_ext >&5
32055
32056ac_cv_lib_nsl_inet_addr=no
32057fi
ac1cb8d3
VS
32058rm -f conftest.err conftest.$ac_objext \
32059 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32060LIBS=$ac_check_lib_save_LIBS
32061fi
32062echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_inet_addr" >&5
32063echo "${ECHO_T}$ac_cv_lib_nsl_inet_addr" >&6
32064if test $ac_cv_lib_nsl_inet_addr = yes; then
32065 INET_LINK="nsl"
32066else
32067
32068 echo "$as_me:$LINENO: checking for inet_addr in -lresolv" >&5
32069echo $ECHO_N "checking for inet_addr in -lresolv... $ECHO_C" >&6
32070if test "${ac_cv_lib_resolv_inet_addr+set}" = set; then
32071 echo $ECHO_N "(cached) $ECHO_C" >&6
32072else
32073 ac_check_lib_save_LIBS=$LIBS
32074LIBS="-lresolv $LIBS"
32075cat >conftest.$ac_ext <<_ACEOF
32076/* confdefs.h. */
32077_ACEOF
32078cat confdefs.h >>conftest.$ac_ext
32079cat >>conftest.$ac_ext <<_ACEOF
32080/* end confdefs.h. */
32081
32082/* Override any gcc2 internal prototype to avoid an error. */
32083#ifdef __cplusplus
32084extern "C"
32085#endif
32086/* We use char because int might match the return type of a gcc2
32087 builtin and then its argument prototype would still apply. */
32088char inet_addr ();
32089int
32090main ()
32091{
32092inet_addr ();
32093 ;
32094 return 0;
32095}
32096_ACEOF
32097rm -f conftest.$ac_objext conftest$ac_exeext
32098if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32099 (eval $ac_link) 2>conftest.er1
a848cd7e 32100 ac_status=$?
ac1cb8d3
VS
32101 grep -v '^ *+' conftest.er1 >conftest.err
32102 rm -f conftest.er1
32103 cat conftest.err >&5
a848cd7e
SC
32104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32105 (exit $ac_status); } &&
89be85c2
VS
32106 { ac_try='test -z "$ac_c_werror_flag"
32107 || test ! -s conftest.err'
ac1cb8d3
VS
32108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32109 (eval $ac_try) 2>&5
32110 ac_status=$?
32111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32112 (exit $ac_status); }; } &&
32113 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32115 (eval $ac_try) 2>&5
32116 ac_status=$?
32117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32118 (exit $ac_status); }; }; then
32119 ac_cv_lib_resolv_inet_addr=yes
32120else
32121 echo "$as_me: failed program was:" >&5
32122sed 's/^/| /' conftest.$ac_ext >&5
32123
32124ac_cv_lib_resolv_inet_addr=no
32125fi
ac1cb8d3
VS
32126rm -f conftest.err conftest.$ac_objext \
32127 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32128LIBS=$ac_check_lib_save_LIBS
32129fi
32130echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_addr" >&5
32131echo "${ECHO_T}$ac_cv_lib_resolv_inet_addr" >&6
32132if test $ac_cv_lib_resolv_inet_addr = yes; then
32133 INET_LINK="resolv"
32134else
32135
32136 echo "$as_me:$LINENO: checking for inet_addr in -lsocket" >&5
32137echo $ECHO_N "checking for inet_addr in -lsocket... $ECHO_C" >&6
32138if test "${ac_cv_lib_socket_inet_addr+set}" = set; then
32139 echo $ECHO_N "(cached) $ECHO_C" >&6
32140else
32141 ac_check_lib_save_LIBS=$LIBS
32142LIBS="-lsocket $LIBS"
32143cat >conftest.$ac_ext <<_ACEOF
32144/* confdefs.h. */
32145_ACEOF
32146cat confdefs.h >>conftest.$ac_ext
32147cat >>conftest.$ac_ext <<_ACEOF
32148/* end confdefs.h. */
32149
32150/* Override any gcc2 internal prototype to avoid an error. */
32151#ifdef __cplusplus
32152extern "C"
32153#endif
32154/* We use char because int might match the return type of a gcc2
32155 builtin and then its argument prototype would still apply. */
32156char inet_addr ();
32157int
32158main ()
32159{
32160inet_addr ();
32161 ;
32162 return 0;
32163}
32164_ACEOF
32165rm -f conftest.$ac_objext conftest$ac_exeext
32166if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32167 (eval $ac_link) 2>conftest.er1
a848cd7e 32168 ac_status=$?
ac1cb8d3
VS
32169 grep -v '^ *+' conftest.er1 >conftest.err
32170 rm -f conftest.er1
32171 cat conftest.err >&5
a848cd7e
SC
32172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32173 (exit $ac_status); } &&
89be85c2
VS
32174 { ac_try='test -z "$ac_c_werror_flag"
32175 || test ! -s conftest.err'
ac1cb8d3
VS
32176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32177 (eval $ac_try) 2>&5
32178 ac_status=$?
32179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32180 (exit $ac_status); }; } &&
32181 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32183 (eval $ac_try) 2>&5
32184 ac_status=$?
32185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32186 (exit $ac_status); }; }; then
32187 ac_cv_lib_socket_inet_addr=yes
32188else
32189 echo "$as_me: failed program was:" >&5
32190sed 's/^/| /' conftest.$ac_ext >&5
32191
32192ac_cv_lib_socket_inet_addr=no
32193fi
ac1cb8d3
VS
32194rm -f conftest.err conftest.$ac_objext \
32195 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32196LIBS=$ac_check_lib_save_LIBS
32197fi
32198echo "$as_me:$LINENO: result: $ac_cv_lib_socket_inet_addr" >&5
32199echo "${ECHO_T}$ac_cv_lib_socket_inet_addr" >&6
32200if test $ac_cv_lib_socket_inet_addr = yes; then
32201 INET_LINK="socket"
32202
32203fi
32204
32205
32206
32207fi
32208
32209
32210
32211fi
32212
32213
32214
32215fi
32216done
32217
32218
32219
32220for ac_func in inet_aton
32221do
32222as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32223echo "$as_me:$LINENO: checking for $ac_func" >&5
32224echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32225if eval "test \"\${$as_ac_var+set}\" = set"; then
32226 echo $ECHO_N "(cached) $ECHO_C" >&6
32227else
32228 cat >conftest.$ac_ext <<_ACEOF
32229/* confdefs.h. */
32230_ACEOF
32231cat confdefs.h >>conftest.$ac_ext
32232cat >>conftest.$ac_ext <<_ACEOF
32233/* end confdefs.h. */
ac1cb8d3
VS
32234/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32235 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32236#define $ac_func innocuous_$ac_func
32237
a848cd7e
SC
32238/* System header to define __stub macros and hopefully few prototypes,
32239 which can conflict with char $ac_func (); below.
32240 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32241 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 32242
a848cd7e
SC
32243#ifdef __STDC__
32244# include <limits.h>
32245#else
32246# include <assert.h>
32247#endif
ac1cb8d3
VS
32248
32249#undef $ac_func
32250
a848cd7e
SC
32251/* Override any gcc2 internal prototype to avoid an error. */
32252#ifdef __cplusplus
32253extern "C"
32254{
32255#endif
32256/* We use char because int might match the return type of a gcc2
32257 builtin and then its argument prototype would still apply. */
32258char $ac_func ();
32259/* The GNU C library defines this for functions which it implements
32260 to always fail with ENOSYS. Some functions are actually named
32261 something starting with __ and the normal name is an alias. */
32262#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32263choke me
32264#else
32265char (*f) () = $ac_func;
32266#endif
32267#ifdef __cplusplus
32268}
32269#endif
32270
32271int
32272main ()
32273{
32274return f != $ac_func;
32275 ;
32276 return 0;
32277}
32278_ACEOF
32279rm -f conftest.$ac_objext conftest$ac_exeext
32280if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32281 (eval $ac_link) 2>conftest.er1
a848cd7e 32282 ac_status=$?
ac1cb8d3
VS
32283 grep -v '^ *+' conftest.er1 >conftest.err
32284 rm -f conftest.er1
32285 cat conftest.err >&5
a848cd7e
SC
32286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32287 (exit $ac_status); } &&
89be85c2
VS
32288 { ac_try='test -z "$ac_c_werror_flag"
32289 || test ! -s conftest.err'
ac1cb8d3
VS
32290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32291 (eval $ac_try) 2>&5
32292 ac_status=$?
32293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32294 (exit $ac_status); }; } &&
32295 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32297 (eval $ac_try) 2>&5
32298 ac_status=$?
32299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32300 (exit $ac_status); }; }; then
32301 eval "$as_ac_var=yes"
32302else
32303 echo "$as_me: failed program was:" >&5
32304sed 's/^/| /' conftest.$ac_ext >&5
32305
32306eval "$as_ac_var=no"
32307fi
ac1cb8d3
VS
32308rm -f conftest.err conftest.$ac_objext \
32309 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32310fi
32311echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32312echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32313if test `eval echo '${'$as_ac_var'}'` = yes; then
32314 cat >>confdefs.h <<_ACEOF
32315#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32316_ACEOF
32317 cat >>confdefs.h <<\_ACEOF
32318#define HAVE_INET_ATON 1
32319_ACEOF
32320
32321else
32322
32323 as_ac_Lib=`echo "ac_cv_lib_$INET_LINK''_inet_aton" | $as_tr_sh`
32324echo "$as_me:$LINENO: checking for inet_aton in -l$INET_LINK" >&5
32325echo $ECHO_N "checking for inet_aton in -l$INET_LINK... $ECHO_C" >&6
32326if eval "test \"\${$as_ac_Lib+set}\" = set"; then
32327 echo $ECHO_N "(cached) $ECHO_C" >&6
32328else
32329 ac_check_lib_save_LIBS=$LIBS
32330LIBS="-l$INET_LINK $LIBS"
32331cat >conftest.$ac_ext <<_ACEOF
32332/* confdefs.h. */
32333_ACEOF
32334cat confdefs.h >>conftest.$ac_ext
32335cat >>conftest.$ac_ext <<_ACEOF
32336/* end confdefs.h. */
32337
32338/* Override any gcc2 internal prototype to avoid an error. */
32339#ifdef __cplusplus
32340extern "C"
32341#endif
32342/* We use char because int might match the return type of a gcc2
32343 builtin and then its argument prototype would still apply. */
32344char inet_aton ();
32345int
32346main ()
32347{
32348inet_aton ();
32349 ;
32350 return 0;
32351}
32352_ACEOF
32353rm -f conftest.$ac_objext conftest$ac_exeext
32354if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32355 (eval $ac_link) 2>conftest.er1
a848cd7e 32356 ac_status=$?
ac1cb8d3
VS
32357 grep -v '^ *+' conftest.er1 >conftest.err
32358 rm -f conftest.er1
32359 cat conftest.err >&5
a848cd7e
SC
32360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32361 (exit $ac_status); } &&
89be85c2
VS
32362 { ac_try='test -z "$ac_c_werror_flag"
32363 || test ! -s conftest.err'
ac1cb8d3
VS
32364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32365 (eval $ac_try) 2>&5
32366 ac_status=$?
32367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32368 (exit $ac_status); }; } &&
32369 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32371 (eval $ac_try) 2>&5
32372 ac_status=$?
32373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32374 (exit $ac_status); }; }; then
32375 eval "$as_ac_Lib=yes"
32376else
32377 echo "$as_me: failed program was:" >&5
32378sed 's/^/| /' conftest.$ac_ext >&5
32379
32380eval "$as_ac_Lib=no"
32381fi
ac1cb8d3
VS
32382rm -f conftest.err conftest.$ac_objext \
32383 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32384LIBS=$ac_check_lib_save_LIBS
32385fi
32386echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
32387echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
32388if test `eval echo '${'$as_ac_Lib'}'` = yes; then
32389 cat >>confdefs.h <<\_ACEOF
32390#define HAVE_INET_ATON 1
32391_ACEOF
32392
32393fi
32394
32395
32396fi
32397done
32398
32399
32400if test "x$INET_LINK" != "x"; then
32401 cat >>confdefs.h <<\_ACEOF
32402#define HAVE_INET_ADDR 1
32403_ACEOF
32404
32405 INET_LINK=" -l$INET_LINK"
32406fi
32407
32408fi
32409
32410
32411
32412EXTRALIBS_ESD=
32413echo "$as_me:$LINENO: checking for esd_close in -lesd" >&5
32414echo $ECHO_N "checking for esd_close in -lesd... $ECHO_C" >&6
32415if test "${ac_cv_lib_esd_esd_close+set}" = set; then
32416 echo $ECHO_N "(cached) $ECHO_C" >&6
32417else
32418 ac_check_lib_save_LIBS=$LIBS
32419LIBS="-lesd $LIBS"
32420cat >conftest.$ac_ext <<_ACEOF
32421/* confdefs.h. */
32422_ACEOF
32423cat confdefs.h >>conftest.$ac_ext
32424cat >>conftest.$ac_ext <<_ACEOF
32425/* end confdefs.h. */
32426
32427/* Override any gcc2 internal prototype to avoid an error. */
32428#ifdef __cplusplus
32429extern "C"
32430#endif
32431/* We use char because int might match the return type of a gcc2
32432 builtin and then its argument prototype would still apply. */
32433char esd_close ();
32434int
32435main ()
32436{
32437esd_close ();
32438 ;
32439 return 0;
32440}
32441_ACEOF
32442rm -f conftest.$ac_objext conftest$ac_exeext
32443if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32444 (eval $ac_link) 2>conftest.er1
a848cd7e 32445 ac_status=$?
ac1cb8d3
VS
32446 grep -v '^ *+' conftest.er1 >conftest.err
32447 rm -f conftest.er1
32448 cat conftest.err >&5
a848cd7e
SC
32449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32450 (exit $ac_status); } &&
89be85c2
VS
32451 { ac_try='test -z "$ac_c_werror_flag"
32452 || test ! -s conftest.err'
ac1cb8d3
VS
32453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32454 (eval $ac_try) 2>&5
32455 ac_status=$?
32456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32457 (exit $ac_status); }; } &&
32458 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32460 (eval $ac_try) 2>&5
32461 ac_status=$?
32462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32463 (exit $ac_status); }; }; then
32464 ac_cv_lib_esd_esd_close=yes
32465else
32466 echo "$as_me: failed program was:" >&5
32467sed 's/^/| /' conftest.$ac_ext >&5
32468
32469ac_cv_lib_esd_esd_close=no
32470fi
ac1cb8d3
VS
32471rm -f conftest.err conftest.$ac_objext \
32472 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32473LIBS=$ac_check_lib_save_LIBS
32474fi
32475echo "$as_me:$LINENO: result: $ac_cv_lib_esd_esd_close" >&5
32476echo "${ECHO_T}$ac_cv_lib_esd_esd_close" >&6
32477if test $ac_cv_lib_esd_esd_close = yes; then
32478
32479
32480for ac_header in esd.h
32481do
32482as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
32483if eval "test \"\${$as_ac_Header+set}\" = set"; then
32484 echo "$as_me:$LINENO: checking for $ac_header" >&5
32485echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
32486if eval "test \"\${$as_ac_Header+set}\" = set"; then
32487 echo $ECHO_N "(cached) $ECHO_C" >&6
32488fi
32489echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
32490echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
32491else
32492 # Is the header compilable?
32493echo "$as_me:$LINENO: checking $ac_header usability" >&5
32494echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
32495cat >conftest.$ac_ext <<_ACEOF
32496/* confdefs.h. */
32497_ACEOF
32498cat confdefs.h >>conftest.$ac_ext
32499cat >>conftest.$ac_ext <<_ACEOF
32500/* end confdefs.h. */
32501$ac_includes_default
32502#include <$ac_header>
32503_ACEOF
32504rm -f conftest.$ac_objext
32505if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 32506 (eval $ac_compile) 2>conftest.er1
a848cd7e 32507 ac_status=$?
ac1cb8d3
VS
32508 grep -v '^ *+' conftest.er1 >conftest.err
32509 rm -f conftest.er1
32510 cat conftest.err >&5
a848cd7e
SC
32511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32512 (exit $ac_status); } &&
89be85c2
VS
32513 { ac_try='test -z "$ac_c_werror_flag"
32514 || test ! -s conftest.err'
ac1cb8d3
VS
32515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32516 (eval $ac_try) 2>&5
32517 ac_status=$?
32518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32519 (exit $ac_status); }; } &&
32520 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
32521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32522 (eval $ac_try) 2>&5
32523 ac_status=$?
32524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32525 (exit $ac_status); }; }; then
32526 ac_header_compiler=yes
32527else
32528 echo "$as_me: failed program was:" >&5
32529sed 's/^/| /' conftest.$ac_ext >&5
32530
32531ac_header_compiler=no
32532fi
ac1cb8d3 32533rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
32534echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32535echo "${ECHO_T}$ac_header_compiler" >&6
32536
32537# Is the header present?
32538echo "$as_me:$LINENO: checking $ac_header presence" >&5
32539echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
32540cat >conftest.$ac_ext <<_ACEOF
32541/* confdefs.h. */
32542_ACEOF
32543cat confdefs.h >>conftest.$ac_ext
32544cat >>conftest.$ac_ext <<_ACEOF
32545/* end confdefs.h. */
32546#include <$ac_header>
32547_ACEOF
32548if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
32549 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
32550 ac_status=$?
32551 grep -v '^ *+' conftest.er1 >conftest.err
32552 rm -f conftest.er1
32553 cat conftest.err >&5
32554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32555 (exit $ac_status); } >/dev/null; then
32556 if test -s conftest.err; then
32557 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 32558 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
32559 else
32560 ac_cpp_err=
32561 fi
32562else
32563 ac_cpp_err=yes
32564fi
32565if test -z "$ac_cpp_err"; then
32566 ac_header_preproc=yes
32567else
32568 echo "$as_me: failed program was:" >&5
32569sed 's/^/| /' conftest.$ac_ext >&5
32570
32571 ac_header_preproc=no
32572fi
32573rm -f conftest.err conftest.$ac_ext
32574echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32575echo "${ECHO_T}$ac_header_preproc" >&6
32576
32577# So? What about this header?
ac1cb8d3
VS
32578case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32579 yes:no: )
a848cd7e
SC
32580 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
32581echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
32582 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
32583echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
32584 ac_header_preproc=yes
a848cd7e 32585 ;;
ac1cb8d3 32586 no:yes:* )
a848cd7e
SC
32587 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
32588echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
32589 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
32590echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
32591 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
32592echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
32593 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
32594echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
32595 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
32596echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
32597 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
32598echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
32599 (
32600 cat <<\_ASBOX
ac1cb8d3
VS
32601## ----------------------------------------- ##
32602## Report this to wx-dev@lists.wxwidgets.org ##
32603## ----------------------------------------- ##
a848cd7e
SC
32604_ASBOX
32605 ) |
32606 sed "s/^/$as_me: WARNING: /" >&2
32607 ;;
32608esac
32609echo "$as_me:$LINENO: checking for $ac_header" >&5
32610echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
32611if eval "test \"\${$as_ac_Header+set}\" = set"; then
32612 echo $ECHO_N "(cached) $ECHO_C" >&6
32613else
ac1cb8d3 32614 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
32615fi
32616echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
32617echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
32618
32619fi
32620if test `eval echo '${'$as_ac_Header'}'` = yes; then
32621 cat >>confdefs.h <<_ACEOF
32622#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
32623_ACEOF
32624
32625 EXTRALIBS_ESD="-lesd"
32626
32627fi
32628
32629done
32630
32631
32632fi
32633
32634
32635
32636echo "$as_me:$LINENO: checking for known CD-ROM interface" >&5
32637echo $ECHO_N "checking for known CD-ROM interface... $ECHO_C" >&6
32638cat >conftest.$ac_ext <<_ACEOF
32639/* confdefs.h. */
32640_ACEOF
32641cat confdefs.h >>conftest.$ac_ext
32642cat >>conftest.$ac_ext <<_ACEOF
32643/* end confdefs.h. */
32644#ifdef __linux__
32645 #include <linux/cdrom.h>
32646 #else
32647 /* For Solaris */
32648 #include <sys/cdio.h>
32649 #endif
32650
32651int
32652main ()
32653{
32654struct cdrom_tocentry entry, old_entry;
32655 ;
32656 return 0;
32657}
32658_ACEOF
32659rm -f conftest.$ac_objext
32660if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 32661 (eval $ac_compile) 2>conftest.er1
a848cd7e 32662 ac_status=$?
ac1cb8d3
VS
32663 grep -v '^ *+' conftest.er1 >conftest.err
32664 rm -f conftest.er1
32665 cat conftest.err >&5
a848cd7e
SC
32666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32667 (exit $ac_status); } &&
89be85c2
VS
32668 { ac_try='test -z "$ac_c_werror_flag"
32669 || test ! -s conftest.err'
ac1cb8d3
VS
32670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32671 (eval $ac_try) 2>&5
32672 ac_status=$?
32673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32674 (exit $ac_status); }; } &&
32675 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
32676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32677 (eval $ac_try) 2>&5
32678 ac_status=$?
32679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32680 (exit $ac_status); }; }; then
32681 echo "$as_me:$LINENO: result: yes" >&5
32682echo "${ECHO_T}yes" >&6
32683 cat >>confdefs.h <<\_ACEOF
32684#define HAVE_KNOWN_CDROM_INTERFACE 1
32685_ACEOF
32686
32687else
32688 echo "$as_me: failed program was:" >&5
32689sed 's/^/| /' conftest.$ac_ext >&5
32690
32691echo "$as_me:$LINENO: result: no" >&5
32692echo "${ECHO_T}no" >&6
32693fi
ac1cb8d3 32694rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
32695
32696
32697cat >confcache <<\_ACEOF
32698# This file is a shell script that caches the results of configure
32699# tests run on this system so they can be shared between configure
32700# scripts and configure runs, see configure's option --config-cache.
32701# It is not useful on other systems. If it contains results you don't
32702# want to keep, you may remove or edit it.
32703#
32704# config.status only pays attention to the cache file if you give it
32705# the --recheck option to rerun configure.
32706#
32707# `ac_cv_env_foo' variables (set or unset) will be overridden when
32708# loading this file, other *unset* `ac_cv_foo' will be assigned the
32709# following values.
32710
32711_ACEOF
32712
32713# The following way of writing the cache mishandles newlines in values,
32714# but we know of no workaround that is simple, portable, and efficient.
32715# So, don't put newlines in cache variables' values.
32716# Ultrix sh set writes to stderr and can't be redirected directly,
32717# and sets the high bit in the cache file unless we assign to the vars.
32718{
32719 (set) 2>&1 |
32720 case `(ac_space=' '; set | grep ac_space) 2>&1` in
32721 *ac_space=\ *)
32722 # `set' does not quote correctly, so add quotes (double-quote
32723 # substitution turns \\\\ into \\, and sed turns \\ into \).
32724 sed -n \
ac1cb8d3
VS
32725 "s/'/'\\\\''/g;
32726 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a848cd7e
SC
32727 ;;
32728 *)
32729 # `set' quotes correctly as required by POSIX, so do not add quotes.
32730 sed -n \
ac1cb8d3 32731 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
32732 ;;
32733 esac;
32734} |
32735 sed '
32736 t clear
32737 : clear
32738 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
32739 t end
32740 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
32741 : end' >>confcache
32742if diff $cache_file confcache >/dev/null 2>&1; then :; else
32743 if test -w $cache_file; then
32744 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
32745 cat confcache >$cache_file
32746 else
32747 echo "not updating unwritable cache $cache_file"
32748 fi
32749fi
32750rm -f confcache
32751
32752
32753CPP_MT_FLAG=
32754if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then
32755
32756
32757 THREADS_LINK=
32758 THREADS_CFLAGS=
32759
32760 if test "$wxUSE_THREADS" = "yes" ; then
32761 if test "$USE_BEOS" = 1; then
32762 { echo "$as_me:$LINENO: WARNING: BeOS threads are not yet supported... disabled" >&5
32763echo "$as_me: WARNING: BeOS threads are not yet supported... disabled" >&2;}
32764 wxUSE_THREADS="no"
32765 fi
32766 fi
32767
32768 if test "$wxUSE_THREADS" = "yes" ; then
32769
32770
32771 THREAD_OPTS="-pthread"
32772 case "${host}" in
32773 *-*-solaris2* | *-*-sunos4* )
32774 if test "x$GCC" = "xyes"; then
32775 THREAD_OPTS="-pthreads $THREAD_OPTS"
32776 else
32777 THREAD_OPTS="-mt $THREAD_OPTS"
32778 fi
32779 ;;
32780 *-*-freebsd*)
32781 THREAD_OPTS="-kthread lthread $THREAD_OPTS c_r"
32782 ;;
32783 *-*-darwin* | *-*-cygwin* )
32784 THREAD_OPTS=""
32785 ;;
32786 *-*-aix*)
32787 THREAD_OPTS="pthreads"
32788 ;;
32789 *-hp-hpux* )
32790 if test "x$GCC" != "xyes"; then
32791 THREAD_OPTS=""
32792 fi
32793 ;;
32794
32795 *-*-irix* )
32796 if test "x$GCC" = "xyes"; then
32797 THREAD_OPTS=""
32798 fi
32799 ;;
32800
32801 *-*-*UnixWare*)
32802 if test "x$GCC" != "xyes"; then
32803 THREAD_OPTS="-Ethread"
32804 fi
32805 ;;
32806 esac
32807
32808 THREAD_OPTS="$THREAD_OPTS pthread none"
32809
32810 THREADS_OK=no
32811 for flag in $THREAD_OPTS; do
32812 case $flag in
32813 none)
32814 echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
32815echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6
32816 ;;
32817
32818 -*)
32819 echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
32820echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6
32821 THREADS_CFLAGS="$flag"
32822 ;;
32823
32824 *)
32825 echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
32826echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6
32827 THREADS_LINK="-l$flag"
32828 ;;
32829 esac
32830
32831 save_LIBS="$LIBS"
32832 save_CFLAGS="$CFLAGS"
32833 LIBS="$THREADS_LINK $LIBS"
32834 CFLAGS="$THREADS_CFLAGS $CFLAGS"
32835
32836 cat >conftest.$ac_ext <<_ACEOF
32837/* confdefs.h. */
32838_ACEOF
32839cat confdefs.h >>conftest.$ac_ext
32840cat >>conftest.$ac_ext <<_ACEOF
32841/* end confdefs.h. */
32842#include <pthread.h>
32843int
32844main ()
32845{
32846pthread_create(0,0,0,0);
32847 ;
32848 return 0;
32849}
32850_ACEOF
32851rm -f conftest.$ac_objext conftest$ac_exeext
32852if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32853 (eval $ac_link) 2>conftest.er1
a848cd7e 32854 ac_status=$?
ac1cb8d3
VS
32855 grep -v '^ *+' conftest.er1 >conftest.err
32856 rm -f conftest.er1
32857 cat conftest.err >&5
a848cd7e
SC
32858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32859 (exit $ac_status); } &&
89be85c2
VS
32860 { ac_try='test -z "$ac_c_werror_flag"
32861 || test ! -s conftest.err'
ac1cb8d3
VS
32862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32863 (eval $ac_try) 2>&5
32864 ac_status=$?
32865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32866 (exit $ac_status); }; } &&
32867 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32869 (eval $ac_try) 2>&5
32870 ac_status=$?
32871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32872 (exit $ac_status); }; }; then
32873 THREADS_OK=yes
32874else
32875 echo "$as_me: failed program was:" >&5
32876sed 's/^/| /' conftest.$ac_ext >&5
32877
32878fi
ac1cb8d3
VS
32879rm -f conftest.err conftest.$ac_objext \
32880 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32881
32882 LIBS="$save_LIBS"
32883 CFLAGS="$save_CFLAGS"
32884
32885 echo "$as_me:$LINENO: result: $THREADS_OK" >&5
32886echo "${ECHO_T}$THREADS_OK" >&6
32887 if test "x$THREADS_OK" = "xyes"; then
32888 break;
32889 fi
32890
32891 THREADS_LINK=""
32892 THREADS_CFLAGS=""
32893 done
32894
32895 if test "x$THREADS_OK" != "xyes"; then
32896 wxUSE_THREADS=no
32897 { echo "$as_me:$LINENO: WARNING: No thread support on this system... disabled" >&5
32898echo "$as_me: WARNING: No thread support on this system... disabled" >&2;}
32899 else
32900 LDFLAGS="$THREADS_CFLAGS $LDFLAGS"
32901 LIBS="$THREADS_LINK $LIBS"
32902
32903 echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
32904echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6
32905 flag=no
32906 case "${host}" in
32907 *-aix*)
32908 LDFLAGS="-L/usr/lib/threads $LDFLAGS"
32909 flag="-D_THREAD_SAFE"
32910 ;;
32911 *-freebsd*)
32912 flag="-D_THREAD_SAFE"
32913 ;;
32914 *-hp-hpux* )
32915 flag="-D_REENTRANT"
32916 if test "x$GCC" != "xyes"; then
32917 flag="$flag -D_RWSTD_MULTI_THREAD"
32918 fi
32919 ;;
32920 *solaris* | alpha*-osf*)
32921 flag="-D_REENTRANT"
32922 ;;
32923 esac
32924 echo "$as_me:$LINENO: result: ${flag}" >&5
32925echo "${ECHO_T}${flag}" >&6
32926 if test "x$flag" != xno; then
32927 THREADS_CFLAGS="$THREADS_CFLAGS $flag"
32928 fi
32929
32930 if test "x$THREADS_CFLAGS" != "x"; then
32931 CFLAGS="$CFLAGS $THREADS_CFLAGS"
32932 CXXFLAGS="$CXXFLAGS $THREADS_CFLAGS"
32933 fi
32934 fi
32935 fi
32936
32937 if test "$wxUSE_THREADS" = "yes" ; then
32938
32939for ac_func in thr_setconcurrency
32940do
32941as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32942echo "$as_me:$LINENO: checking for $ac_func" >&5
32943echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32944if eval "test \"\${$as_ac_var+set}\" = set"; then
32945 echo $ECHO_N "(cached) $ECHO_C" >&6
32946else
32947 cat >conftest.$ac_ext <<_ACEOF
32948/* confdefs.h. */
32949_ACEOF
32950cat confdefs.h >>conftest.$ac_ext
32951cat >>conftest.$ac_ext <<_ACEOF
32952/* end confdefs.h. */
ac1cb8d3
VS
32953/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32954 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32955#define $ac_func innocuous_$ac_func
32956
a848cd7e
SC
32957/* System header to define __stub macros and hopefully few prototypes,
32958 which can conflict with char $ac_func (); below.
32959 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32960 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 32961
a848cd7e
SC
32962#ifdef __STDC__
32963# include <limits.h>
32964#else
32965# include <assert.h>
32966#endif
ac1cb8d3
VS
32967
32968#undef $ac_func
32969
a848cd7e
SC
32970/* Override any gcc2 internal prototype to avoid an error. */
32971#ifdef __cplusplus
32972extern "C"
32973{
32974#endif
32975/* We use char because int might match the return type of a gcc2
32976 builtin and then its argument prototype would still apply. */
32977char $ac_func ();
32978/* The GNU C library defines this for functions which it implements
32979 to always fail with ENOSYS. Some functions are actually named
32980 something starting with __ and the normal name is an alias. */
32981#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32982choke me
32983#else
32984char (*f) () = $ac_func;
32985#endif
32986#ifdef __cplusplus
32987}
32988#endif
32989
32990int
32991main ()
32992{
32993return f != $ac_func;
32994 ;
32995 return 0;
32996}
32997_ACEOF
32998rm -f conftest.$ac_objext conftest$ac_exeext
32999if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33000 (eval $ac_link) 2>conftest.er1
a848cd7e 33001 ac_status=$?
ac1cb8d3
VS
33002 grep -v '^ *+' conftest.er1 >conftest.err
33003 rm -f conftest.er1
33004 cat conftest.err >&5
a848cd7e
SC
33005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33006 (exit $ac_status); } &&
89be85c2
VS
33007 { ac_try='test -z "$ac_c_werror_flag"
33008 || test ! -s conftest.err'
ac1cb8d3
VS
33009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33010 (eval $ac_try) 2>&5
33011 ac_status=$?
33012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33013 (exit $ac_status); }; } &&
33014 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33016 (eval $ac_try) 2>&5
33017 ac_status=$?
33018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33019 (exit $ac_status); }; }; then
33020 eval "$as_ac_var=yes"
33021else
33022 echo "$as_me: failed program was:" >&5
33023sed 's/^/| /' conftest.$ac_ext >&5
33024
33025eval "$as_ac_var=no"
33026fi
ac1cb8d3
VS
33027rm -f conftest.err conftest.$ac_objext \
33028 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33029fi
33030echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33031echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33032if test `eval echo '${'$as_ac_var'}'` = yes; then
33033 cat >>confdefs.h <<_ACEOF
33034#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33035_ACEOF
33036
33037fi
33038done
33039
33040
33041
33042for ac_header in sched.h
33043do
33044as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
33045if eval "test \"\${$as_ac_Header+set}\" = set"; then
33046 echo "$as_me:$LINENO: checking for $ac_header" >&5
33047echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
33048if eval "test \"\${$as_ac_Header+set}\" = set"; then
33049 echo $ECHO_N "(cached) $ECHO_C" >&6
33050fi
33051echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
33052echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
33053else
33054 # Is the header compilable?
33055echo "$as_me:$LINENO: checking $ac_header usability" >&5
33056echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
33057cat >conftest.$ac_ext <<_ACEOF
33058/* confdefs.h. */
33059_ACEOF
33060cat confdefs.h >>conftest.$ac_ext
33061cat >>conftest.$ac_ext <<_ACEOF
33062/* end confdefs.h. */
33063$ac_includes_default
33064#include <$ac_header>
33065_ACEOF
33066rm -f conftest.$ac_objext
33067if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 33068 (eval $ac_compile) 2>conftest.er1
a848cd7e 33069 ac_status=$?
ac1cb8d3
VS
33070 grep -v '^ *+' conftest.er1 >conftest.err
33071 rm -f conftest.er1
33072 cat conftest.err >&5
a848cd7e
SC
33073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33074 (exit $ac_status); } &&
89be85c2
VS
33075 { ac_try='test -z "$ac_c_werror_flag"
33076 || test ! -s conftest.err'
ac1cb8d3
VS
33077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33078 (eval $ac_try) 2>&5
33079 ac_status=$?
33080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33081 (exit $ac_status); }; } &&
33082 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
33083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33084 (eval $ac_try) 2>&5
33085 ac_status=$?
33086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33087 (exit $ac_status); }; }; then
33088 ac_header_compiler=yes
33089else
33090 echo "$as_me: failed program was:" >&5
33091sed 's/^/| /' conftest.$ac_ext >&5
33092
33093ac_header_compiler=no
33094fi
ac1cb8d3 33095rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
33096echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33097echo "${ECHO_T}$ac_header_compiler" >&6
33098
33099# Is the header present?
33100echo "$as_me:$LINENO: checking $ac_header presence" >&5
33101echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
33102cat >conftest.$ac_ext <<_ACEOF
33103/* confdefs.h. */
33104_ACEOF
33105cat confdefs.h >>conftest.$ac_ext
33106cat >>conftest.$ac_ext <<_ACEOF
33107/* end confdefs.h. */
33108#include <$ac_header>
33109_ACEOF
33110if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
33111 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
33112 ac_status=$?
33113 grep -v '^ *+' conftest.er1 >conftest.err
33114 rm -f conftest.er1
33115 cat conftest.err >&5
33116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33117 (exit $ac_status); } >/dev/null; then
33118 if test -s conftest.err; then
33119 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 33120 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
33121 else
33122 ac_cpp_err=
33123 fi
33124else
33125 ac_cpp_err=yes
33126fi
33127if test -z "$ac_cpp_err"; then
33128 ac_header_preproc=yes
33129else
33130 echo "$as_me: failed program was:" >&5
33131sed 's/^/| /' conftest.$ac_ext >&5
33132
33133 ac_header_preproc=no
33134fi
33135rm -f conftest.err conftest.$ac_ext
33136echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33137echo "${ECHO_T}$ac_header_preproc" >&6
33138
33139# So? What about this header?
ac1cb8d3
VS
33140case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33141 yes:no: )
a848cd7e
SC
33142 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
33143echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
33144 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
33145echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
33146 ac_header_preproc=yes
a848cd7e 33147 ;;
ac1cb8d3 33148 no:yes:* )
a848cd7e
SC
33149 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
33150echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
33151 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
33152echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
33153 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
33154echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
33155 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
33156echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
33157 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
33158echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
33159 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
33160echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
33161 (
33162 cat <<\_ASBOX
ac1cb8d3
VS
33163## ----------------------------------------- ##
33164## Report this to wx-dev@lists.wxwidgets.org ##
33165## ----------------------------------------- ##
a848cd7e
SC
33166_ASBOX
33167 ) |
33168 sed "s/^/$as_me: WARNING: /" >&2
33169 ;;
33170esac
33171echo "$as_me:$LINENO: checking for $ac_header" >&5
33172echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
33173if eval "test \"\${$as_ac_Header+set}\" = set"; then
33174 echo $ECHO_N "(cached) $ECHO_C" >&6
33175else
ac1cb8d3 33176 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
33177fi
33178echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
33179echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
33180
33181fi
33182if test `eval echo '${'$as_ac_Header'}'` = yes; then
33183 cat >>confdefs.h <<_ACEOF
33184#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
33185_ACEOF
33186
33187fi
33188
33189done
33190
33191 if test "$ac_cv_header_sched_h" = "yes"; then
33192 echo "$as_me:$LINENO: checking for sched_yield" >&5
33193echo $ECHO_N "checking for sched_yield... $ECHO_C" >&6
33194if test "${ac_cv_func_sched_yield+set}" = set; then
33195 echo $ECHO_N "(cached) $ECHO_C" >&6
33196else
33197 cat >conftest.$ac_ext <<_ACEOF
33198/* confdefs.h. */
33199_ACEOF
33200cat confdefs.h >>conftest.$ac_ext
33201cat >>conftest.$ac_ext <<_ACEOF
33202/* end confdefs.h. */
ac1cb8d3
VS
33203/* Define sched_yield to an innocuous variant, in case <limits.h> declares sched_yield.
33204 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33205#define sched_yield innocuous_sched_yield
33206
a848cd7e
SC
33207/* System header to define __stub macros and hopefully few prototypes,
33208 which can conflict with char sched_yield (); below.
33209 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33210 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 33211
a848cd7e
SC
33212#ifdef __STDC__
33213# include <limits.h>
33214#else
33215# include <assert.h>
33216#endif
ac1cb8d3
VS
33217
33218#undef sched_yield
33219
a848cd7e
SC
33220/* Override any gcc2 internal prototype to avoid an error. */
33221#ifdef __cplusplus
33222extern "C"
33223{
33224#endif
33225/* We use char because int might match the return type of a gcc2
33226 builtin and then its argument prototype would still apply. */
33227char sched_yield ();
33228/* The GNU C library defines this for functions which it implements
33229 to always fail with ENOSYS. Some functions are actually named
33230 something starting with __ and the normal name is an alias. */
33231#if defined (__stub_sched_yield) || defined (__stub___sched_yield)
33232choke me
33233#else
33234char (*f) () = sched_yield;
33235#endif
33236#ifdef __cplusplus
33237}
33238#endif
33239
33240int
33241main ()
33242{
33243return f != sched_yield;
33244 ;
33245 return 0;
33246}
33247_ACEOF
33248rm -f conftest.$ac_objext conftest$ac_exeext
33249if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33250 (eval $ac_link) 2>conftest.er1
a848cd7e 33251 ac_status=$?
ac1cb8d3
VS
33252 grep -v '^ *+' conftest.er1 >conftest.err
33253 rm -f conftest.er1
33254 cat conftest.err >&5
a848cd7e
SC
33255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33256 (exit $ac_status); } &&
89be85c2
VS
33257 { ac_try='test -z "$ac_c_werror_flag"
33258 || test ! -s conftest.err'
ac1cb8d3
VS
33259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33260 (eval $ac_try) 2>&5
33261 ac_status=$?
33262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33263 (exit $ac_status); }; } &&
33264 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33266 (eval $ac_try) 2>&5
33267 ac_status=$?
33268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33269 (exit $ac_status); }; }; then
33270 ac_cv_func_sched_yield=yes
33271else
33272 echo "$as_me: failed program was:" >&5
33273sed 's/^/| /' conftest.$ac_ext >&5
33274
33275ac_cv_func_sched_yield=no
33276fi
ac1cb8d3
VS
33277rm -f conftest.err conftest.$ac_objext \
33278 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33279fi
33280echo "$as_me:$LINENO: result: $ac_cv_func_sched_yield" >&5
33281echo "${ECHO_T}$ac_cv_func_sched_yield" >&6
33282if test $ac_cv_func_sched_yield = yes; then
33283 cat >>confdefs.h <<\_ACEOF
33284#define HAVE_SCHED_YIELD 1
33285_ACEOF
33286
33287else
33288
33289 echo "$as_me:$LINENO: checking for sched_yield in -lposix4" >&5
33290echo $ECHO_N "checking for sched_yield in -lposix4... $ECHO_C" >&6
33291if test "${ac_cv_lib_posix4_sched_yield+set}" = set; then
33292 echo $ECHO_N "(cached) $ECHO_C" >&6
33293else
33294 ac_check_lib_save_LIBS=$LIBS
33295LIBS="-lposix4 $LIBS"
33296cat >conftest.$ac_ext <<_ACEOF
33297/* confdefs.h. */
33298_ACEOF
33299cat confdefs.h >>conftest.$ac_ext
33300cat >>conftest.$ac_ext <<_ACEOF
33301/* end confdefs.h. */
33302
33303/* Override any gcc2 internal prototype to avoid an error. */
33304#ifdef __cplusplus
33305extern "C"
33306#endif
33307/* We use char because int might match the return type of a gcc2
33308 builtin and then its argument prototype would still apply. */
33309char sched_yield ();
33310int
33311main ()
33312{
33313sched_yield ();
33314 ;
33315 return 0;
33316}
33317_ACEOF
33318rm -f conftest.$ac_objext conftest$ac_exeext
33319if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33320 (eval $ac_link) 2>conftest.er1
a848cd7e 33321 ac_status=$?
ac1cb8d3
VS
33322 grep -v '^ *+' conftest.er1 >conftest.err
33323 rm -f conftest.er1
33324 cat conftest.err >&5
a848cd7e
SC
33325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33326 (exit $ac_status); } &&
89be85c2
VS
33327 { ac_try='test -z "$ac_c_werror_flag"
33328 || test ! -s conftest.err'
ac1cb8d3
VS
33329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33330 (eval $ac_try) 2>&5
33331 ac_status=$?
33332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33333 (exit $ac_status); }; } &&
33334 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33336 (eval $ac_try) 2>&5
33337 ac_status=$?
33338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33339 (exit $ac_status); }; }; then
33340 ac_cv_lib_posix4_sched_yield=yes
33341else
33342 echo "$as_me: failed program was:" >&5
33343sed 's/^/| /' conftest.$ac_ext >&5
33344
33345ac_cv_lib_posix4_sched_yield=no
33346fi
ac1cb8d3
VS
33347rm -f conftest.err conftest.$ac_objext \
33348 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33349LIBS=$ac_check_lib_save_LIBS
33350fi
33351echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_yield" >&5
33352echo "${ECHO_T}$ac_cv_lib_posix4_sched_yield" >&6
33353if test $ac_cv_lib_posix4_sched_yield = yes; then
33354 cat >>confdefs.h <<\_ACEOF
33355#define HAVE_SCHED_YIELD 1
33356_ACEOF
33357 POSIX4_LINK=" -lposix4"
33358else
33359 { echo "$as_me:$LINENO: WARNING: wxThread::Yield will not work properly" >&5
33360echo "$as_me: WARNING: wxThread::Yield will not work properly" >&2;}
33361
33362fi
33363
33364
33365
33366fi
33367
33368 fi
33369
33370 HAVE_PRIOR_FUNCS=0
33371 echo "$as_me:$LINENO: checking for pthread_attr_getschedpolicy" >&5
33372echo $ECHO_N "checking for pthread_attr_getschedpolicy... $ECHO_C" >&6
33373if test "${ac_cv_func_pthread_attr_getschedpolicy+set}" = set; then
33374 echo $ECHO_N "(cached) $ECHO_C" >&6
33375else
33376 cat >conftest.$ac_ext <<_ACEOF
33377/* confdefs.h. */
33378_ACEOF
33379cat confdefs.h >>conftest.$ac_ext
33380cat >>conftest.$ac_ext <<_ACEOF
33381/* end confdefs.h. */
ac1cb8d3
VS
33382/* Define pthread_attr_getschedpolicy to an innocuous variant, in case <limits.h> declares pthread_attr_getschedpolicy.
33383 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33384#define pthread_attr_getschedpolicy innocuous_pthread_attr_getschedpolicy
33385
a848cd7e
SC
33386/* System header to define __stub macros and hopefully few prototypes,
33387 which can conflict with char pthread_attr_getschedpolicy (); below.
33388 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33389 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 33390
a848cd7e
SC
33391#ifdef __STDC__
33392# include <limits.h>
33393#else
33394# include <assert.h>
33395#endif
ac1cb8d3
VS
33396
33397#undef pthread_attr_getschedpolicy
33398
a848cd7e
SC
33399/* Override any gcc2 internal prototype to avoid an error. */
33400#ifdef __cplusplus
33401extern "C"
33402{
33403#endif
33404/* We use char because int might match the return type of a gcc2
33405 builtin and then its argument prototype would still apply. */
33406char pthread_attr_getschedpolicy ();
33407/* The GNU C library defines this for functions which it implements
33408 to always fail with ENOSYS. Some functions are actually named
33409 something starting with __ and the normal name is an alias. */
33410#if defined (__stub_pthread_attr_getschedpolicy) || defined (__stub___pthread_attr_getschedpolicy)
33411choke me
33412#else
33413char (*f) () = pthread_attr_getschedpolicy;
33414#endif
33415#ifdef __cplusplus
33416}
33417#endif
33418
33419int
33420main ()
33421{
33422return f != pthread_attr_getschedpolicy;
33423 ;
33424 return 0;
33425}
33426_ACEOF
33427rm -f conftest.$ac_objext conftest$ac_exeext
33428if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33429 (eval $ac_link) 2>conftest.er1
a848cd7e 33430 ac_status=$?
ac1cb8d3
VS
33431 grep -v '^ *+' conftest.er1 >conftest.err
33432 rm -f conftest.er1
33433 cat conftest.err >&5
a848cd7e
SC
33434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33435 (exit $ac_status); } &&
89be85c2
VS
33436 { ac_try='test -z "$ac_c_werror_flag"
33437 || test ! -s conftest.err'
ac1cb8d3
VS
33438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33439 (eval $ac_try) 2>&5
33440 ac_status=$?
33441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33442 (exit $ac_status); }; } &&
33443 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33445 (eval $ac_try) 2>&5
33446 ac_status=$?
33447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33448 (exit $ac_status); }; }; then
33449 ac_cv_func_pthread_attr_getschedpolicy=yes
33450else
33451 echo "$as_me: failed program was:" >&5
33452sed 's/^/| /' conftest.$ac_ext >&5
33453
33454ac_cv_func_pthread_attr_getschedpolicy=no
33455fi
ac1cb8d3
VS
33456rm -f conftest.err conftest.$ac_objext \
33457 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33458fi
33459echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_getschedpolicy" >&5
33460echo "${ECHO_T}$ac_cv_func_pthread_attr_getschedpolicy" >&6
33461if test $ac_cv_func_pthread_attr_getschedpolicy = yes; then
33462 echo "$as_me:$LINENO: checking for pthread_attr_setschedparam" >&5
33463echo $ECHO_N "checking for pthread_attr_setschedparam... $ECHO_C" >&6
33464if test "${ac_cv_func_pthread_attr_setschedparam+set}" = set; then
33465 echo $ECHO_N "(cached) $ECHO_C" >&6
33466else
33467 cat >conftest.$ac_ext <<_ACEOF
33468/* confdefs.h. */
33469_ACEOF
33470cat confdefs.h >>conftest.$ac_ext
33471cat >>conftest.$ac_ext <<_ACEOF
33472/* end confdefs.h. */
ac1cb8d3
VS
33473/* Define pthread_attr_setschedparam to an innocuous variant, in case <limits.h> declares pthread_attr_setschedparam.
33474 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33475#define pthread_attr_setschedparam innocuous_pthread_attr_setschedparam
33476
a848cd7e
SC
33477/* System header to define __stub macros and hopefully few prototypes,
33478 which can conflict with char pthread_attr_setschedparam (); below.
33479 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33480 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 33481
a848cd7e
SC
33482#ifdef __STDC__
33483# include <limits.h>
33484#else
33485# include <assert.h>
33486#endif
ac1cb8d3
VS
33487
33488#undef pthread_attr_setschedparam
33489
a848cd7e
SC
33490/* Override any gcc2 internal prototype to avoid an error. */
33491#ifdef __cplusplus
33492extern "C"
33493{
33494#endif
33495/* We use char because int might match the return type of a gcc2
33496 builtin and then its argument prototype would still apply. */
33497char pthread_attr_setschedparam ();
33498/* The GNU C library defines this for functions which it implements
33499 to always fail with ENOSYS. Some functions are actually named
33500 something starting with __ and the normal name is an alias. */
33501#if defined (__stub_pthread_attr_setschedparam) || defined (__stub___pthread_attr_setschedparam)
33502choke me
33503#else
33504char (*f) () = pthread_attr_setschedparam;
33505#endif
33506#ifdef __cplusplus
33507}
33508#endif
33509
33510int
33511main ()
33512{
33513return f != pthread_attr_setschedparam;
33514 ;
33515 return 0;
33516}
33517_ACEOF
33518rm -f conftest.$ac_objext conftest$ac_exeext
33519if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33520 (eval $ac_link) 2>conftest.er1
a848cd7e 33521 ac_status=$?
ac1cb8d3
VS
33522 grep -v '^ *+' conftest.er1 >conftest.err
33523 rm -f conftest.er1
33524 cat conftest.err >&5
a848cd7e
SC
33525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33526 (exit $ac_status); } &&
89be85c2
VS
33527 { ac_try='test -z "$ac_c_werror_flag"
33528 || test ! -s conftest.err'
ac1cb8d3
VS
33529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33530 (eval $ac_try) 2>&5
33531 ac_status=$?
33532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33533 (exit $ac_status); }; } &&
33534 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33536 (eval $ac_try) 2>&5
33537 ac_status=$?
33538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33539 (exit $ac_status); }; }; then
33540 ac_cv_func_pthread_attr_setschedparam=yes
33541else
33542 echo "$as_me: failed program was:" >&5
33543sed 's/^/| /' conftest.$ac_ext >&5
33544
33545ac_cv_func_pthread_attr_setschedparam=no
33546fi
ac1cb8d3
VS
33547rm -f conftest.err conftest.$ac_objext \
33548 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33549fi
33550echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_setschedparam" >&5
33551echo "${ECHO_T}$ac_cv_func_pthread_attr_setschedparam" >&6
33552if test $ac_cv_func_pthread_attr_setschedparam = yes; then
33553 echo "$as_me:$LINENO: checking for sched_get_priority_max" >&5
33554echo $ECHO_N "checking for sched_get_priority_max... $ECHO_C" >&6
33555if test "${ac_cv_func_sched_get_priority_max+set}" = set; then
33556 echo $ECHO_N "(cached) $ECHO_C" >&6
33557else
33558 cat >conftest.$ac_ext <<_ACEOF
33559/* confdefs.h. */
33560_ACEOF
33561cat confdefs.h >>conftest.$ac_ext
33562cat >>conftest.$ac_ext <<_ACEOF
33563/* end confdefs.h. */
ac1cb8d3
VS
33564/* Define sched_get_priority_max to an innocuous variant, in case <limits.h> declares sched_get_priority_max.
33565 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33566#define sched_get_priority_max innocuous_sched_get_priority_max
33567
a848cd7e
SC
33568/* System header to define __stub macros and hopefully few prototypes,
33569 which can conflict with char sched_get_priority_max (); below.
33570 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33571 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 33572
a848cd7e
SC
33573#ifdef __STDC__
33574# include <limits.h>
33575#else
33576# include <assert.h>
33577#endif
ac1cb8d3
VS
33578
33579#undef sched_get_priority_max
33580
a848cd7e
SC
33581/* Override any gcc2 internal prototype to avoid an error. */
33582#ifdef __cplusplus
33583extern "C"
33584{
33585#endif
33586/* We use char because int might match the return type of a gcc2
33587 builtin and then its argument prototype would still apply. */
33588char sched_get_priority_max ();
33589/* The GNU C library defines this for functions which it implements
33590 to always fail with ENOSYS. Some functions are actually named
33591 something starting with __ and the normal name is an alias. */
33592#if defined (__stub_sched_get_priority_max) || defined (__stub___sched_get_priority_max)
33593choke me
33594#else
33595char (*f) () = sched_get_priority_max;
33596#endif
33597#ifdef __cplusplus
33598}
33599#endif
33600
33601int
33602main ()
33603{
33604return f != sched_get_priority_max;
33605 ;
33606 return 0;
33607}
33608_ACEOF
33609rm -f conftest.$ac_objext conftest$ac_exeext
33610if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33611 (eval $ac_link) 2>conftest.er1
a848cd7e 33612 ac_status=$?
ac1cb8d3
VS
33613 grep -v '^ *+' conftest.er1 >conftest.err
33614 rm -f conftest.er1
33615 cat conftest.err >&5
a848cd7e
SC
33616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33617 (exit $ac_status); } &&
89be85c2
VS
33618 { ac_try='test -z "$ac_c_werror_flag"
33619 || test ! -s conftest.err'
ac1cb8d3
VS
33620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33621 (eval $ac_try) 2>&5
33622 ac_status=$?
33623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33624 (exit $ac_status); }; } &&
33625 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33627 (eval $ac_try) 2>&5
33628 ac_status=$?
33629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33630 (exit $ac_status); }; }; then
33631 ac_cv_func_sched_get_priority_max=yes
33632else
33633 echo "$as_me: failed program was:" >&5
33634sed 's/^/| /' conftest.$ac_ext >&5
33635
33636ac_cv_func_sched_get_priority_max=no
33637fi
ac1cb8d3
VS
33638rm -f conftest.err conftest.$ac_objext \
33639 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33640fi
33641echo "$as_me:$LINENO: result: $ac_cv_func_sched_get_priority_max" >&5
33642echo "${ECHO_T}$ac_cv_func_sched_get_priority_max" >&6
33643if test $ac_cv_func_sched_get_priority_max = yes; then
33644 HAVE_PRIOR_FUNCS=1
33645else
33646 echo "$as_me:$LINENO: checking for sched_get_priority_max in -lposix4" >&5
33647echo $ECHO_N "checking for sched_get_priority_max in -lposix4... $ECHO_C" >&6
33648if test "${ac_cv_lib_posix4_sched_get_priority_max+set}" = set; then
33649 echo $ECHO_N "(cached) $ECHO_C" >&6
33650else
33651 ac_check_lib_save_LIBS=$LIBS
33652LIBS="-lposix4 $LIBS"
33653cat >conftest.$ac_ext <<_ACEOF
33654/* confdefs.h. */
33655_ACEOF
33656cat confdefs.h >>conftest.$ac_ext
33657cat >>conftest.$ac_ext <<_ACEOF
33658/* end confdefs.h. */
33659
33660/* Override any gcc2 internal prototype to avoid an error. */
33661#ifdef __cplusplus
33662extern "C"
33663#endif
33664/* We use char because int might match the return type of a gcc2
33665 builtin and then its argument prototype would still apply. */
33666char sched_get_priority_max ();
33667int
33668main ()
33669{
33670sched_get_priority_max ();
33671 ;
33672 return 0;
33673}
33674_ACEOF
33675rm -f conftest.$ac_objext conftest$ac_exeext
33676if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33677 (eval $ac_link) 2>conftest.er1
a848cd7e 33678 ac_status=$?
ac1cb8d3
VS
33679 grep -v '^ *+' conftest.er1 >conftest.err
33680 rm -f conftest.er1
33681 cat conftest.err >&5
a848cd7e
SC
33682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33683 (exit $ac_status); } &&
89be85c2
VS
33684 { ac_try='test -z "$ac_c_werror_flag"
33685 || test ! -s conftest.err'
ac1cb8d3
VS
33686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33687 (eval $ac_try) 2>&5
33688 ac_status=$?
33689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33690 (exit $ac_status); }; } &&
33691 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33693 (eval $ac_try) 2>&5
33694 ac_status=$?
33695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33696 (exit $ac_status); }; }; then
33697 ac_cv_lib_posix4_sched_get_priority_max=yes
33698else
33699 echo "$as_me: failed program was:" >&5
33700sed 's/^/| /' conftest.$ac_ext >&5
33701
33702ac_cv_lib_posix4_sched_get_priority_max=no
33703fi
ac1cb8d3
VS
33704rm -f conftest.err conftest.$ac_objext \
33705 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33706LIBS=$ac_check_lib_save_LIBS
33707fi
33708echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_get_priority_max" >&5
33709echo "${ECHO_T}$ac_cv_lib_posix4_sched_get_priority_max" >&6
33710if test $ac_cv_lib_posix4_sched_get_priority_max = yes; then
33711
33712 HAVE_PRIOR_FUNCS=1
33713 POSIX4_LINK=" -lposix4"
33714
33715fi
33716
33717
33718fi
33719
33720
33721fi
33722
33723
33724fi
33725
33726
33727 if test "$HAVE_PRIOR_FUNCS" = 1; then
33728 cat >>confdefs.h <<\_ACEOF
33729#define HAVE_THREAD_PRIORITY_FUNCTIONS 1
33730_ACEOF
33731
33732 else
33733 { echo "$as_me:$LINENO: WARNING: Setting thread priority will not work" >&5
33734echo "$as_me: WARNING: Setting thread priority will not work" >&2;}
33735 fi
33736
33737 echo "$as_me:$LINENO: checking for pthread_cancel" >&5
33738echo $ECHO_N "checking for pthread_cancel... $ECHO_C" >&6
33739if test "${ac_cv_func_pthread_cancel+set}" = set; then
33740 echo $ECHO_N "(cached) $ECHO_C" >&6
33741else
33742 cat >conftest.$ac_ext <<_ACEOF
33743/* confdefs.h. */
33744_ACEOF
33745cat confdefs.h >>conftest.$ac_ext
33746cat >>conftest.$ac_ext <<_ACEOF
33747/* end confdefs.h. */
ac1cb8d3
VS
33748/* Define pthread_cancel to an innocuous variant, in case <limits.h> declares pthread_cancel.
33749 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33750#define pthread_cancel innocuous_pthread_cancel
33751
a848cd7e
SC
33752/* System header to define __stub macros and hopefully few prototypes,
33753 which can conflict with char pthread_cancel (); below.
33754 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33755 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 33756
a848cd7e
SC
33757#ifdef __STDC__
33758# include <limits.h>
33759#else
33760# include <assert.h>
33761#endif
ac1cb8d3
VS
33762
33763#undef pthread_cancel
33764
a848cd7e
SC
33765/* Override any gcc2 internal prototype to avoid an error. */
33766#ifdef __cplusplus
33767extern "C"
33768{
33769#endif
33770/* We use char because int might match the return type of a gcc2
33771 builtin and then its argument prototype would still apply. */
33772char pthread_cancel ();
33773/* The GNU C library defines this for functions which it implements
33774 to always fail with ENOSYS. Some functions are actually named
33775 something starting with __ and the normal name is an alias. */
33776#if defined (__stub_pthread_cancel) || defined (__stub___pthread_cancel)
33777choke me
33778#else
33779char (*f) () = pthread_cancel;
33780#endif
33781#ifdef __cplusplus
33782}
33783#endif
33784
33785int
33786main ()
33787{
33788return f != pthread_cancel;
33789 ;
33790 return 0;
33791}
33792_ACEOF
33793rm -f conftest.$ac_objext conftest$ac_exeext
33794if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33795 (eval $ac_link) 2>conftest.er1
a848cd7e 33796 ac_status=$?
ac1cb8d3
VS
33797 grep -v '^ *+' conftest.er1 >conftest.err
33798 rm -f conftest.er1
33799 cat conftest.err >&5
a848cd7e
SC
33800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33801 (exit $ac_status); } &&
89be85c2
VS
33802 { ac_try='test -z "$ac_c_werror_flag"
33803 || test ! -s conftest.err'
ac1cb8d3
VS
33804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33805 (eval $ac_try) 2>&5
33806 ac_status=$?
33807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33808 (exit $ac_status); }; } &&
33809 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33811 (eval $ac_try) 2>&5
33812 ac_status=$?
33813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33814 (exit $ac_status); }; }; then
33815 ac_cv_func_pthread_cancel=yes
33816else
33817 echo "$as_me: failed program was:" >&5
33818sed 's/^/| /' conftest.$ac_ext >&5
33819
33820ac_cv_func_pthread_cancel=no
33821fi
ac1cb8d3
VS
33822rm -f conftest.err conftest.$ac_objext \
33823 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33824fi
33825echo "$as_me:$LINENO: result: $ac_cv_func_pthread_cancel" >&5
33826echo "${ECHO_T}$ac_cv_func_pthread_cancel" >&6
33827if test $ac_cv_func_pthread_cancel = yes; then
33828 cat >>confdefs.h <<\_ACEOF
33829#define HAVE_PTHREAD_CANCEL 1
33830_ACEOF
33831
33832else
33833 { echo "$as_me:$LINENO: WARNING: wxThread::Kill() will not work properly" >&5
33834echo "$as_me: WARNING: wxThread::Kill() will not work properly" >&2;}
33835fi
33836
33837
33838
33839
33840 echo "$as_me:$LINENO: checking for pthread_mutexattr_t" >&5
33841echo $ECHO_N "checking for pthread_mutexattr_t... $ECHO_C" >&6
33842if test "${wx_cv_type_pthread_mutexattr_t+set}" = set; then
33843 echo $ECHO_N "(cached) $ECHO_C" >&6
33844else
33845
33846 cat >conftest.$ac_ext <<_ACEOF
33847/* confdefs.h. */
33848_ACEOF
33849cat confdefs.h >>conftest.$ac_ext
33850cat >>conftest.$ac_ext <<_ACEOF
33851/* end confdefs.h. */
33852#include <pthread.h>
33853int
33854main ()
33855{
33856
33857 pthread_mutexattr_t attr;
33858 pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
33859
33860 ;
33861 return 0;
33862}
33863_ACEOF
33864rm -f conftest.$ac_objext
33865if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 33866 (eval $ac_compile) 2>conftest.er1
a848cd7e 33867 ac_status=$?
ac1cb8d3
VS
33868 grep -v '^ *+' conftest.er1 >conftest.err
33869 rm -f conftest.er1
33870 cat conftest.err >&5
a848cd7e
SC
33871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33872 (exit $ac_status); } &&
89be85c2
VS
33873 { ac_try='test -z "$ac_c_werror_flag"
33874 || test ! -s conftest.err'
ac1cb8d3
VS
33875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33876 (eval $ac_try) 2>&5
33877 ac_status=$?
33878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33879 (exit $ac_status); }; } &&
33880 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
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); }; }; then
33886
33887 wx_cv_type_pthread_mutexattr_t=yes
33888
33889else
33890 echo "$as_me: failed program was:" >&5
33891sed 's/^/| /' conftest.$ac_ext >&5
33892
33893
33894 wx_cv_type_pthread_mutexattr_t=no
33895
33896
33897fi
ac1cb8d3 33898rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
33899
33900fi
33901echo "$as_me:$LINENO: result: $wx_cv_type_pthread_mutexattr_t" >&5
33902echo "${ECHO_T}$wx_cv_type_pthread_mutexattr_t" >&6
33903
33904 if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then
33905 cat >>confdefs.h <<\_ACEOF
33906#define HAVE_PTHREAD_MUTEXATTR_T 1
33907_ACEOF
33908
33909 else
33910 echo "$as_me:$LINENO: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5
33911echo $ECHO_N "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER... $ECHO_C" >&6
33912if test "${wx_cv_type_pthread_rec_mutex_init+set}" = set; then
33913 echo $ECHO_N "(cached) $ECHO_C" >&6
33914else
33915
33916 cat >conftest.$ac_ext <<_ACEOF
33917/* confdefs.h. */
33918_ACEOF
33919cat confdefs.h >>conftest.$ac_ext
33920cat >>conftest.$ac_ext <<_ACEOF
33921/* end confdefs.h. */
33922#include <pthread.h>
33923int
33924main ()
33925{
33926
33927 pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;
33928
33929 ;
33930 return 0;
33931}
33932_ACEOF
33933rm -f conftest.$ac_objext
33934if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 33935 (eval $ac_compile) 2>conftest.er1
a848cd7e 33936 ac_status=$?
ac1cb8d3
VS
33937 grep -v '^ *+' conftest.er1 >conftest.err
33938 rm -f conftest.er1
33939 cat conftest.err >&5
a848cd7e
SC
33940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33941 (exit $ac_status); } &&
89be85c2
VS
33942 { ac_try='test -z "$ac_c_werror_flag"
33943 || test ! -s conftest.err'
ac1cb8d3
VS
33944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33945 (eval $ac_try) 2>&5
33946 ac_status=$?
33947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33948 (exit $ac_status); }; } &&
33949 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
33950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33951 (eval $ac_try) 2>&5
33952 ac_status=$?
33953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33954 (exit $ac_status); }; }; then
33955
33956 wx_cv_type_pthread_rec_mutex_init=yes
33957
33958else
33959 echo "$as_me: failed program was:" >&5
33960sed 's/^/| /' conftest.$ac_ext >&5
33961
33962
33963 wx_cv_type_pthread_rec_mutex_init=no
33964
33965
33966fi
ac1cb8d3 33967rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
33968
33969fi
33970echo "$as_me:$LINENO: result: $wx_cv_type_pthread_rec_mutex_init" >&5
33971echo "${ECHO_T}$wx_cv_type_pthread_rec_mutex_init" >&6
33972 if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then
33973 cat >>confdefs.h <<\_ACEOF
33974#define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1
33975_ACEOF
33976
33977 else
33978 { echo "$as_me:$LINENO: WARNING: wxMutex won't be recursive on this platform" >&5
33979echo "$as_me: WARNING: wxMutex won't be recursive on this platform" >&2;}
33980 fi
33981 fi
33982 fi
33983
33984else
33985 if test "$wxUSE_THREADS" = "yes" ; then
33986 case "${host}" in
33987 *-*-mingw32* )
33988 echo "$as_me:$LINENO: checking if compiler supports -mthreads" >&5
33989echo $ECHO_N "checking if compiler supports -mthreads... $ECHO_C" >&6
33990if test "${wx_cv_cflags_mthread+set}" = set; then
33991 echo $ECHO_N "(cached) $ECHO_C" >&6
33992else
33993
33994 CFLAGS_OLD="$CFLAGS"
33995 CFLAGS="$CFLAGS -mthreads"
33996 cat >conftest.$ac_ext <<_ACEOF
33997/* confdefs.h. */
33998_ACEOF
33999cat confdefs.h >>conftest.$ac_ext
34000cat >>conftest.$ac_ext <<_ACEOF
34001/* end confdefs.h. */
34002
34003int
34004main ()
34005{
34006
34007 ;
34008 return 0;
34009}
34010_ACEOF
34011rm -f conftest.$ac_objext
34012if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 34013 (eval $ac_compile) 2>conftest.er1
a848cd7e 34014 ac_status=$?
ac1cb8d3
VS
34015 grep -v '^ *+' conftest.er1 >conftest.err
34016 rm -f conftest.er1
34017 cat conftest.err >&5
a848cd7e
SC
34018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34019 (exit $ac_status); } &&
89be85c2
VS
34020 { ac_try='test -z "$ac_c_werror_flag"
34021 || test ! -s conftest.err'
ac1cb8d3
VS
34022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34023 (eval $ac_try) 2>&5
34024 ac_status=$?
34025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34026 (exit $ac_status); }; } &&
34027 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
34028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34029 (eval $ac_try) 2>&5
34030 ac_status=$?
34031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34032 (exit $ac_status); }; }; then
34033 wx_cv_cflags_mthread=yes
34034else
34035 echo "$as_me: failed program was:" >&5
34036sed 's/^/| /' conftest.$ac_ext >&5
34037
34038wx_cv_cflags_mthread=no
34039
34040fi
ac1cb8d3 34041rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
34042
34043
34044fi
34045echo "$as_me:$LINENO: result: $wx_cv_cflags_mthread" >&5
34046echo "${ECHO_T}$wx_cv_cflags_mthread" >&6
34047
34048 if test "$wx_cv_cflags_mthread" = "yes"; then
34049 CXXFLAGS="$CXXFLAGS -mthreads"
34050 TOOLCHAIN_DEFS="$TOOLCHAIN_DEFS -mthreads"
34051 LDFLAGS="$LDFLAGS -mthreads"
34052 else
34053 CFLAGS="$CFLAGS_OLD"
34054 fi
34055 ;;
34056 *-pc-os2*emx )
34057 CFLAGS="$CFLAGS -Zmt -D__ST_MT_ERRNO__"
34058 CXXFLAGS="$CXXFLAGS -Zmt -D__ST_MT_ERRNO__"
34059 LDFLAGS="$LDFLAGS -Zmt"
34060 ;;
34061 esac
34062 fi
34063fi
34064
34065if test "$wxUSE_THREADS" = "yes"; then
34066 cat >>confdefs.h <<\_ACEOF
34067#define wxUSE_THREADS 1
34068_ACEOF
34069
34070
34071 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread"
34072else
34073 if test "$ac_cv_func_strtok_r" = "yes"; then
34074 echo "$as_me:$LINENO: checking if -D_REENTRANT is needed" >&5
34075echo $ECHO_N "checking if -D_REENTRANT is needed... $ECHO_C" >&6
34076 if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then
34077 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D_REENTRANT"
34078 echo "$as_me:$LINENO: result: yes" >&5
34079echo "${ECHO_T}yes" >&6
34080 else
34081 echo "$as_me:$LINENO: result: no" >&5
34082echo "${ECHO_T}no" >&6
34083 fi
34084 fi
34085fi
34086
34087if test "$WXGTK20" = 1 ; then
34088 cat >>confdefs.h <<_ACEOF
34089#define __WXGTK20__ $WXGTK20
34090_ACEOF
34091
34092 WXGTK12=1
34093fi
34094
34095if test "$WXGTK12" = 1 ; then
34096 cat >>confdefs.h <<_ACEOF
34097#define __WXGTK12__ $WXGTK12
34098_ACEOF
34099
34100fi
34101
34102if test "$WXGTK127" = 1 ; then
34103 cat >>confdefs.h <<_ACEOF
34104#define __WXGTK127__ $WXGTK127
34105_ACEOF
34106
34107fi
34108
34109if test "$WXGPE" = 1 ; then
34110 cat >>confdefs.h <<_ACEOF
34111#define __WXGPE__ $WXGPE
34112_ACEOF
34113
34114fi
34115
34116WXDEBUG=
34117
34118if test "$wxUSE_DEBUG_INFO" = "yes" ; then
34119 WXDEBUG="-g"
34120 wxUSE_OPTIMISE=no
34121fi
34122
34123if test "$wxUSE_DEBUG_GDB" = "yes" ; then
34124 wxUSE_DEBUG_INFO=yes
34125 WXDEBUG="-ggdb"
34126fi
34127
34128if test "$wxUSE_DEBUG_FLAG" = "yes" ; then
34129 cat >>confdefs.h <<\_ACEOF
34130#define WXDEBUG 1
34131_ACEOF
34132
34133 WXDEBUG_DEFINE="-D__WXDEBUG__"
34134else
34135 if test "$wxUSE_GTK" = 1 ; then
34136 WXDEBUG_DEFINE="-DGTK_NO_CHECK_CASTS"
34137 fi
34138fi
34139
34140if test "$wxUSE_MEM_TRACING" = "yes" ; then
34141 cat >>confdefs.h <<\_ACEOF
34142#define wxUSE_MEMORY_TRACING 1
34143_ACEOF
34144
34145 cat >>confdefs.h <<\_ACEOF
34146#define wxUSE_GLOBAL_MEMORY_OPERATORS 1
34147_ACEOF
34148
34149 cat >>confdefs.h <<\_ACEOF
34150#define wxUSE_DEBUG_NEW_ALWAYS 1
34151_ACEOF
34152
34153 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck"
34154fi
34155
34156if test "$wxUSE_DMALLOC" = "yes" ; then
34157 DMALLOC_LIBS="-ldmalloc"
34158fi
34159
34160PROFILE=
34161if test "$wxUSE_PROFILE" = "yes" ; then
34162 PROFILE=" -pg"
34163fi
34164
34165CODE_GEN_FLAGS=
34166CODE_GEN_FLAGS_CXX=
34167if test "$GCC" = "yes" ; then
34168 if test "$wxUSE_NO_RTTI" = "yes" ; then
34169 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-rtti"
34170 fi
34171 if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
34172 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-exceptions"
34173 fi
34174 if test "$wxUSE_PERMISSIVE" = "yes" ; then
34175 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fpermissive"
34176 fi
34177
34178 case "${host}" in
34179 powerpc*-*-aix* )
34180 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -mminimal-toc"
34181 ;;
34182 *-hppa* )
34183 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -ffunction-sections"
34184 ;;
34185 esac
34186fi
34187
34188OPTIMISE=
34189if test "$wxUSE_OPTIMISE" = "no" ; then
34190 if test "$GCC" = yes ; then
34191 OPTIMISE="-O0"
34192 fi
34193else
34194 if test "$GCC" = yes ; then
34195 OPTIMISE="-O2"
34196
34197 case "${host}" in
34198 i586-*-*|i686-*-* )
34199 OPTIMISE="${OPTIMISE} "
34200 ;;
34201 esac
34202 else
34203 OPTIMISE="-O"
34204 fi
34205fi
34206
34207
34208if test "x$WXWIN_COMPATIBILITY_2_2" = "xyes"; then
34209 cat >>confdefs.h <<\_ACEOF
34210#define WXWIN_COMPATIBILITY_2_2 1
34211_ACEOF
34212
34213
34214 WXWIN_COMPATIBILITY_2_4="yes"
34215fi
34216
34217if test "x$WXWIN_COMPATIBILITY_2_4" != "xno"; then
34218 cat >>confdefs.h <<\_ACEOF
34219#define WXWIN_COMPATIBILITY_2_4 1
34220_ACEOF
34221
34222fi
34223
34224
34225if test "$wxUSE_GUI" = "yes"; then
881bfcd6 34226 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
34227#define wxUSE_GUI 1
34228_ACEOF
34229
34230
370fd4c2 34231 fi
a848cd7e
SC
34232
34233
34234if test "$wxUSE_UNIX" = "yes"; then
34235 cat >>confdefs.h <<\_ACEOF
34236#define wxUSE_UNIX 1
34237_ACEOF
34238
34239fi
34240
34241
34242if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then
34243
34244 HAVE_DL_FUNCS=0
34245 HAVE_SHL_FUNCS=0
34246 if test "$wxUSE_DYNAMIC_LOADER" = "yes" -o "$wxUSE_DYNLIB_CLASS" = "yes" ; then
34247 if test "$USE_DARWIN" = 1; then
34248 HAVE_DL_FUNCS=1
34249 else
34250
34251for ac_func in dlopen
34252do
34253as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34254echo "$as_me:$LINENO: checking for $ac_func" >&5
34255echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34256if eval "test \"\${$as_ac_var+set}\" = set"; then
34257 echo $ECHO_N "(cached) $ECHO_C" >&6
34258else
34259 cat >conftest.$ac_ext <<_ACEOF
34260/* confdefs.h. */
34261_ACEOF
34262cat confdefs.h >>conftest.$ac_ext
34263cat >>conftest.$ac_ext <<_ACEOF
34264/* end confdefs.h. */
ac1cb8d3
VS
34265/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34266 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34267#define $ac_func innocuous_$ac_func
34268
a848cd7e
SC
34269/* System header to define __stub macros and hopefully few prototypes,
34270 which can conflict with char $ac_func (); below.
34271 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34272 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 34273
a848cd7e
SC
34274#ifdef __STDC__
34275# include <limits.h>
34276#else
34277# include <assert.h>
34278#endif
ac1cb8d3
VS
34279
34280#undef $ac_func
34281
a848cd7e
SC
34282/* Override any gcc2 internal prototype to avoid an error. */
34283#ifdef __cplusplus
34284extern "C"
34285{
34286#endif
34287/* We use char because int might match the return type of a gcc2
34288 builtin and then its argument prototype would still apply. */
34289char $ac_func ();
34290/* The GNU C library defines this for functions which it implements
34291 to always fail with ENOSYS. Some functions are actually named
34292 something starting with __ and the normal name is an alias. */
34293#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34294choke me
34295#else
34296char (*f) () = $ac_func;
34297#endif
34298#ifdef __cplusplus
34299}
34300#endif
34301
34302int
34303main ()
34304{
34305return f != $ac_func;
34306 ;
34307 return 0;
34308}
34309_ACEOF
34310rm -f conftest.$ac_objext conftest$ac_exeext
34311if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34312 (eval $ac_link) 2>conftest.er1
a848cd7e 34313 ac_status=$?
ac1cb8d3
VS
34314 grep -v '^ *+' conftest.er1 >conftest.err
34315 rm -f conftest.er1
34316 cat conftest.err >&5
a848cd7e
SC
34317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34318 (exit $ac_status); } &&
89be85c2
VS
34319 { ac_try='test -z "$ac_c_werror_flag"
34320 || test ! -s conftest.err'
ac1cb8d3
VS
34321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34322 (eval $ac_try) 2>&5
34323 ac_status=$?
34324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34325 (exit $ac_status); }; } &&
34326 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
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 eval "$as_ac_var=yes"
34333else
34334 echo "$as_me: failed program was:" >&5
34335sed 's/^/| /' conftest.$ac_ext >&5
34336
34337eval "$as_ac_var=no"
34338fi
ac1cb8d3
VS
34339rm -f conftest.err conftest.$ac_objext \
34340 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34341fi
34342echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34343echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34344if test `eval echo '${'$as_ac_var'}'` = yes; then
34345 cat >>confdefs.h <<_ACEOF
34346#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34347_ACEOF
34348
34349 cat >>confdefs.h <<\_ACEOF
34350#define HAVE_DLOPEN 1
34351_ACEOF
34352
34353 HAVE_DL_FUNCS=1
34354
34355else
34356
34357 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
34358echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
34359if test "${ac_cv_lib_dl_dlopen+set}" = set; then
34360 echo $ECHO_N "(cached) $ECHO_C" >&6
34361else
34362 ac_check_lib_save_LIBS=$LIBS
34363LIBS="-ldl $LIBS"
34364cat >conftest.$ac_ext <<_ACEOF
34365/* confdefs.h. */
34366_ACEOF
34367cat confdefs.h >>conftest.$ac_ext
34368cat >>conftest.$ac_ext <<_ACEOF
34369/* end confdefs.h. */
34370
34371/* Override any gcc2 internal prototype to avoid an error. */
34372#ifdef __cplusplus
34373extern "C"
34374#endif
34375/* We use char because int might match the return type of a gcc2
34376 builtin and then its argument prototype would still apply. */
34377char dlopen ();
34378int
34379main ()
34380{
34381dlopen ();
34382 ;
34383 return 0;
34384}
34385_ACEOF
34386rm -f conftest.$ac_objext conftest$ac_exeext
34387if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34388 (eval $ac_link) 2>conftest.er1
a848cd7e 34389 ac_status=$?
ac1cb8d3
VS
34390 grep -v '^ *+' conftest.er1 >conftest.err
34391 rm -f conftest.er1
34392 cat conftest.err >&5
a848cd7e
SC
34393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34394 (exit $ac_status); } &&
89be85c2
VS
34395 { ac_try='test -z "$ac_c_werror_flag"
34396 || test ! -s conftest.err'
ac1cb8d3
VS
34397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34398 (eval $ac_try) 2>&5
34399 ac_status=$?
34400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34401 (exit $ac_status); }; } &&
34402 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34404 (eval $ac_try) 2>&5
34405 ac_status=$?
34406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34407 (exit $ac_status); }; }; then
34408 ac_cv_lib_dl_dlopen=yes
34409else
34410 echo "$as_me: failed program was:" >&5
34411sed 's/^/| /' conftest.$ac_ext >&5
34412
34413ac_cv_lib_dl_dlopen=no
34414fi
ac1cb8d3
VS
34415rm -f conftest.err conftest.$ac_objext \
34416 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34417LIBS=$ac_check_lib_save_LIBS
34418fi
34419echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
34420echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
34421if test $ac_cv_lib_dl_dlopen = yes; then
34422
34423 cat >>confdefs.h <<\_ACEOF
34424#define HAVE_DLOPEN 1
34425_ACEOF
34426
34427 HAVE_DL_FUNCS=1
34428 DL_LINK=" -ldl$DL_LINK"
34429
34430else
34431
34432
34433for ac_func in shl_load
34434do
34435as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34436echo "$as_me:$LINENO: checking for $ac_func" >&5
34437echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34438if eval "test \"\${$as_ac_var+set}\" = set"; then
34439 echo $ECHO_N "(cached) $ECHO_C" >&6
34440else
34441 cat >conftest.$ac_ext <<_ACEOF
34442/* confdefs.h. */
34443_ACEOF
34444cat confdefs.h >>conftest.$ac_ext
34445cat >>conftest.$ac_ext <<_ACEOF
34446/* end confdefs.h. */
ac1cb8d3
VS
34447/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34448 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34449#define $ac_func innocuous_$ac_func
34450
a848cd7e
SC
34451/* System header to define __stub macros and hopefully few prototypes,
34452 which can conflict with char $ac_func (); below.
34453 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34454 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 34455
a848cd7e
SC
34456#ifdef __STDC__
34457# include <limits.h>
34458#else
34459# include <assert.h>
34460#endif
ac1cb8d3
VS
34461
34462#undef $ac_func
34463
a848cd7e
SC
34464/* Override any gcc2 internal prototype to avoid an error. */
34465#ifdef __cplusplus
34466extern "C"
34467{
34468#endif
34469/* We use char because int might match the return type of a gcc2
34470 builtin and then its argument prototype would still apply. */
34471char $ac_func ();
34472/* The GNU C library defines this for functions which it implements
34473 to always fail with ENOSYS. Some functions are actually named
34474 something starting with __ and the normal name is an alias. */
34475#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34476choke me
34477#else
34478char (*f) () = $ac_func;
34479#endif
34480#ifdef __cplusplus
34481}
34482#endif
34483
34484int
34485main ()
34486{
34487return f != $ac_func;
34488 ;
34489 return 0;
34490}
34491_ACEOF
34492rm -f conftest.$ac_objext conftest$ac_exeext
34493if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34494 (eval $ac_link) 2>conftest.er1
a848cd7e 34495 ac_status=$?
ac1cb8d3
VS
34496 grep -v '^ *+' conftest.er1 >conftest.err
34497 rm -f conftest.er1
34498 cat conftest.err >&5
a848cd7e
SC
34499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34500 (exit $ac_status); } &&
89be85c2
VS
34501 { ac_try='test -z "$ac_c_werror_flag"
34502 || test ! -s conftest.err'
ac1cb8d3
VS
34503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34504 (eval $ac_try) 2>&5
34505 ac_status=$?
34506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34507 (exit $ac_status); }; } &&
34508 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34510 (eval $ac_try) 2>&5
34511 ac_status=$?
34512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34513 (exit $ac_status); }; }; then
34514 eval "$as_ac_var=yes"
34515else
34516 echo "$as_me: failed program was:" >&5
34517sed 's/^/| /' conftest.$ac_ext >&5
34518
34519eval "$as_ac_var=no"
34520fi
ac1cb8d3
VS
34521rm -f conftest.err conftest.$ac_objext \
34522 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34523fi
34524echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34525echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34526if test `eval echo '${'$as_ac_var'}'` = yes; then
34527 cat >>confdefs.h <<_ACEOF
34528#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34529_ACEOF
34530
34531 cat >>confdefs.h <<\_ACEOF
34532#define HAVE_SHL_LOAD 1
34533_ACEOF
34534
34535 HAVE_SHL_FUNCS=1
34536
34537else
34538
34539 echo "$as_me:$LINENO: checking for dld in -lshl_load" >&5
34540echo $ECHO_N "checking for dld in -lshl_load... $ECHO_C" >&6
34541if test "${ac_cv_lib_shl_load_dld+set}" = set; then
34542 echo $ECHO_N "(cached) $ECHO_C" >&6
34543else
34544 ac_check_lib_save_LIBS=$LIBS
34545LIBS="-lshl_load $LIBS"
34546cat >conftest.$ac_ext <<_ACEOF
34547/* confdefs.h. */
34548_ACEOF
34549cat confdefs.h >>conftest.$ac_ext
34550cat >>conftest.$ac_ext <<_ACEOF
34551/* end confdefs.h. */
34552
34553/* Override any gcc2 internal prototype to avoid an error. */
34554#ifdef __cplusplus
34555extern "C"
34556#endif
34557/* We use char because int might match the return type of a gcc2
34558 builtin and then its argument prototype would still apply. */
34559char dld ();
34560int
34561main ()
34562{
34563dld ();
34564 ;
34565 return 0;
34566}
34567_ACEOF
34568rm -f conftest.$ac_objext conftest$ac_exeext
34569if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34570 (eval $ac_link) 2>conftest.er1
a848cd7e 34571 ac_status=$?
ac1cb8d3
VS
34572 grep -v '^ *+' conftest.er1 >conftest.err
34573 rm -f conftest.er1
34574 cat conftest.err >&5
a848cd7e
SC
34575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34576 (exit $ac_status); } &&
89be85c2
VS
34577 { ac_try='test -z "$ac_c_werror_flag"
34578 || test ! -s conftest.err'
ac1cb8d3
VS
34579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34580 (eval $ac_try) 2>&5
34581 ac_status=$?
34582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34583 (exit $ac_status); }; } &&
34584 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34586 (eval $ac_try) 2>&5
34587 ac_status=$?
34588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34589 (exit $ac_status); }; }; then
34590 ac_cv_lib_shl_load_dld=yes
34591else
34592 echo "$as_me: failed program was:" >&5
34593sed 's/^/| /' conftest.$ac_ext >&5
34594
34595ac_cv_lib_shl_load_dld=no
34596fi
ac1cb8d3
VS
34597rm -f conftest.err conftest.$ac_objext \
34598 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34599LIBS=$ac_check_lib_save_LIBS
34600fi
34601echo "$as_me:$LINENO: result: $ac_cv_lib_shl_load_dld" >&5
34602echo "${ECHO_T}$ac_cv_lib_shl_load_dld" >&6
34603if test $ac_cv_lib_shl_load_dld = yes; then
34604
34605 HAVE_SHL_FUNCS=1
34606 DL_LINK=" -ldld$DL_LINK"
34607
34608fi
34609
34610
34611fi
34612done
34613
34614
34615fi
34616
34617
34618fi
34619done
34620
34621
34622 if test "$HAVE_DL_FUNCS" = 1; then
34623
34624for ac_func in dlerror
34625do
34626as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34627echo "$as_me:$LINENO: checking for $ac_func" >&5
34628echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34629if eval "test \"\${$as_ac_var+set}\" = set"; then
34630 echo $ECHO_N "(cached) $ECHO_C" >&6
34631else
34632 cat >conftest.$ac_ext <<_ACEOF
34633/* confdefs.h. */
34634_ACEOF
34635cat confdefs.h >>conftest.$ac_ext
34636cat >>conftest.$ac_ext <<_ACEOF
34637/* end confdefs.h. */
ac1cb8d3
VS
34638/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34639 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34640#define $ac_func innocuous_$ac_func
34641
a848cd7e
SC
34642/* System header to define __stub macros and hopefully few prototypes,
34643 which can conflict with char $ac_func (); below.
34644 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34645 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 34646
a848cd7e
SC
34647#ifdef __STDC__
34648# include <limits.h>
34649#else
34650# include <assert.h>
34651#endif
ac1cb8d3
VS
34652
34653#undef $ac_func
34654
a848cd7e
SC
34655/* Override any gcc2 internal prototype to avoid an error. */
34656#ifdef __cplusplus
34657extern "C"
34658{
34659#endif
34660/* We use char because int might match the return type of a gcc2
34661 builtin and then its argument prototype would still apply. */
34662char $ac_func ();
34663/* The GNU C library defines this for functions which it implements
34664 to always fail with ENOSYS. Some functions are actually named
34665 something starting with __ and the normal name is an alias. */
34666#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34667choke me
34668#else
34669char (*f) () = $ac_func;
34670#endif
34671#ifdef __cplusplus
34672}
34673#endif
34674
34675int
34676main ()
34677{
34678return f != $ac_func;
34679 ;
34680 return 0;
34681}
34682_ACEOF
34683rm -f conftest.$ac_objext conftest$ac_exeext
34684if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34685 (eval $ac_link) 2>conftest.er1
a848cd7e 34686 ac_status=$?
ac1cb8d3
VS
34687 grep -v '^ *+' conftest.er1 >conftest.err
34688 rm -f conftest.er1
34689 cat conftest.err >&5
a848cd7e
SC
34690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34691 (exit $ac_status); } &&
89be85c2
VS
34692 { ac_try='test -z "$ac_c_werror_flag"
34693 || test ! -s conftest.err'
ac1cb8d3
VS
34694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34695 (eval $ac_try) 2>&5
34696 ac_status=$?
34697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34698 (exit $ac_status); }; } &&
34699 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34701 (eval $ac_try) 2>&5
34702 ac_status=$?
34703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34704 (exit $ac_status); }; }; then
34705 eval "$as_ac_var=yes"
34706else
34707 echo "$as_me: failed program was:" >&5
34708sed 's/^/| /' conftest.$ac_ext >&5
34709
34710eval "$as_ac_var=no"
34711fi
ac1cb8d3
VS
34712rm -f conftest.err conftest.$ac_objext \
34713 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34714fi
34715echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34716echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34717if test `eval echo '${'$as_ac_var'}'` = yes; then
34718 cat >>confdefs.h <<_ACEOF
34719#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34720_ACEOF
34721 cat >>confdefs.h <<\_ACEOF
34722#define HAVE_DLERROR 1
34723_ACEOF
34724
34725else
34726
34727 echo "$as_me:$LINENO: checking for dlerror in -ldl" >&5
34728echo $ECHO_N "checking for dlerror in -ldl... $ECHO_C" >&6
34729if test "${ac_cv_lib_dl_dlerror+set}" = set; then
34730 echo $ECHO_N "(cached) $ECHO_C" >&6
34731else
34732 ac_check_lib_save_LIBS=$LIBS
34733LIBS="-ldl $LIBS"
34734cat >conftest.$ac_ext <<_ACEOF
34735/* confdefs.h. */
34736_ACEOF
34737cat confdefs.h >>conftest.$ac_ext
34738cat >>conftest.$ac_ext <<_ACEOF
34739/* end confdefs.h. */
34740
34741/* Override any gcc2 internal prototype to avoid an error. */
34742#ifdef __cplusplus
34743extern "C"
34744#endif
34745/* We use char because int might match the return type of a gcc2
34746 builtin and then its argument prototype would still apply. */
34747char dlerror ();
34748int
34749main ()
34750{
34751dlerror ();
34752 ;
34753 return 0;
34754}
34755_ACEOF
34756rm -f conftest.$ac_objext conftest$ac_exeext
34757if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34758 (eval $ac_link) 2>conftest.er1
a848cd7e 34759 ac_status=$?
ac1cb8d3
VS
34760 grep -v '^ *+' conftest.er1 >conftest.err
34761 rm -f conftest.er1
34762 cat conftest.err >&5
a848cd7e
SC
34763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34764 (exit $ac_status); } &&
89be85c2
VS
34765 { ac_try='test -z "$ac_c_werror_flag"
34766 || test ! -s conftest.err'
ac1cb8d3
VS
34767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34768 (eval $ac_try) 2>&5
34769 ac_status=$?
34770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34771 (exit $ac_status); }; } &&
34772 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34774 (eval $ac_try) 2>&5
34775 ac_status=$?
34776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34777 (exit $ac_status); }; }; then
34778 ac_cv_lib_dl_dlerror=yes
34779else
34780 echo "$as_me: failed program was:" >&5
34781sed 's/^/| /' conftest.$ac_ext >&5
34782
34783ac_cv_lib_dl_dlerror=no
34784fi
ac1cb8d3
VS
34785rm -f conftest.err conftest.$ac_objext \
34786 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34787LIBS=$ac_check_lib_save_LIBS
34788fi
34789echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlerror" >&5
34790echo "${ECHO_T}$ac_cv_lib_dl_dlerror" >&6
34791if test $ac_cv_lib_dl_dlerror = yes; then
34792 cat >>confdefs.h <<\_ACEOF
34793#define HAVE_DLERROR 1
34794_ACEOF
34795
34796fi
34797
34798
34799
34800fi
34801done
34802
34803 fi
34804 fi
34805
34806 if test "$HAVE_DL_FUNCS" = 0; then
34807 if test "$HAVE_SHL_FUNCS" = 0; then
34808 if test "$USE_UNIX" = 1; then
34809 { echo "$as_me:$LINENO: WARNING: Missing dynamic loading support, several features will be disabled" >&5
34810echo "$as_me: WARNING: Missing dynamic loading support, several features will be disabled" >&2;}
34811 wxUSE_DYNAMIC_LOADER=no
34812 wxUSE_DYNLIB_CLASS=no
34813 else
34814 { echo "$as_me:$LINENO: WARNING: Assuming wxLibrary class works on this platform" >&5
34815echo "$as_me: WARNING: Assuming wxLibrary class works on this platform" >&2;}
34816 fi
34817 fi
34818 fi
34819 fi
34820fi
34821
34822if test "$wxUSE_DYNAMIC_LOADER" = "yes" ; then
34823 cat >>confdefs.h <<\_ACEOF
34824#define wxUSE_DYNAMIC_LOADER 1
34825_ACEOF
34826
34827fi
34828if test "$wxUSE_DYNLIB_CLASS" = "yes" ; then
34829 cat >>confdefs.h <<\_ACEOF
34830#define wxUSE_DYNLIB_CLASS 1
34831_ACEOF
34832
34833fi
34834
34835
34836
34837if test "$wxUSE_PLUGINS" = "yes" ; then
34838 if test "$wxUSE_SHARED" = "no" ; then
34839 { echo "$as_me:$LINENO: WARNING: plugins supported only in shared build, disabling" >&5
34840echo "$as_me: WARNING: plugins supported only in shared build, disabling" >&2;}
34841 wxUSE_PLUGINS=no
34842 fi
34843 if test "$wxUSE_MONOLITHIC" = "yes" ; then
34844 { echo "$as_me:$LINENO: WARNING: plugins not supported monolithic build, disabling" >&5
34845echo "$as_me: WARNING: plugins not supported monolithic build, disabling" >&2;}
34846 wxUSE_PLUGINS=no
34847 fi
34848 if test "$wxUSE_DYNLIB_CLASS" = "no" ; then
34849 { echo "$as_me:$LINENO: WARNING: plugins require wxDynamicLibrary, disabling" >&5
34850echo "$as_me: WARNING: plugins require wxDynamicLibrary, disabling" >&2;}
34851 wxUSE_PLUGINS=no
34852 fi
34853 if test "$wxUSE_PLUGINS" = "yes" ; then
34854 cat >>confdefs.h <<\_ACEOF
34855#define wxUSE_PLUGINS 1
34856_ACEOF
34857
34858 fi
34859fi
34860
34861
34862if test "$wxUSE_STL" = "yes"; then
34863 cat >>confdefs.h <<\_ACEOF
34864#define wxUSE_STL 1
34865_ACEOF
34866
34867fi
34868
34869if test "$wxUSE_APPLE_IEEE" = "yes"; then
34870 cat >>confdefs.h <<\_ACEOF
34871#define wxUSE_APPLE_IEEE 1
34872_ACEOF
34873
34874fi
34875
34876if test "$wxUSE_TIMER" = "yes"; then
34877 cat >>confdefs.h <<\_ACEOF
34878#define wxUSE_TIMER 1
34879_ACEOF
34880
34881fi
34882
34883WITH_PLUGIN_SDL=0
34884if test "$wxUSE_SOUND" = "yes"; then
34885 if test "$USE_UNIX" = "1" ; then
34886
34887for ac_header in sys/soundcard.h
34888do
34889as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
34890if eval "test \"\${$as_ac_Header+set}\" = set"; then
34891 echo "$as_me:$LINENO: checking for $ac_header" >&5
34892echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
34893if eval "test \"\${$as_ac_Header+set}\" = set"; then
34894 echo $ECHO_N "(cached) $ECHO_C" >&6
34895fi
34896echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
34897echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
34898else
34899 # Is the header compilable?
34900echo "$as_me:$LINENO: checking $ac_header usability" >&5
34901echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
34902cat >conftest.$ac_ext <<_ACEOF
34903/* confdefs.h. */
34904_ACEOF
34905cat confdefs.h >>conftest.$ac_ext
34906cat >>conftest.$ac_ext <<_ACEOF
34907/* end confdefs.h. */
34908$ac_includes_default
34909#include <$ac_header>
34910_ACEOF
34911rm -f conftest.$ac_objext
34912if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 34913 (eval $ac_compile) 2>conftest.er1
a848cd7e 34914 ac_status=$?
ac1cb8d3
VS
34915 grep -v '^ *+' conftest.er1 >conftest.err
34916 rm -f conftest.er1
34917 cat conftest.err >&5
a848cd7e
SC
34918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34919 (exit $ac_status); } &&
89be85c2
VS
34920 { ac_try='test -z "$ac_c_werror_flag"
34921 || test ! -s conftest.err'
ac1cb8d3
VS
34922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34923 (eval $ac_try) 2>&5
34924 ac_status=$?
34925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34926 (exit $ac_status); }; } &&
34927 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
34928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34929 (eval $ac_try) 2>&5
34930 ac_status=$?
34931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34932 (exit $ac_status); }; }; then
34933 ac_header_compiler=yes
34934else
34935 echo "$as_me: failed program was:" >&5
34936sed 's/^/| /' conftest.$ac_ext >&5
34937
34938ac_header_compiler=no
34939fi
ac1cb8d3 34940rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
34941echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
34942echo "${ECHO_T}$ac_header_compiler" >&6
34943
34944# Is the header present?
34945echo "$as_me:$LINENO: checking $ac_header presence" >&5
34946echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
34947cat >conftest.$ac_ext <<_ACEOF
34948/* confdefs.h. */
34949_ACEOF
34950cat confdefs.h >>conftest.$ac_ext
34951cat >>conftest.$ac_ext <<_ACEOF
34952/* end confdefs.h. */
34953#include <$ac_header>
34954_ACEOF
34955if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
34956 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
34957 ac_status=$?
34958 grep -v '^ *+' conftest.er1 >conftest.err
34959 rm -f conftest.er1
34960 cat conftest.err >&5
34961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34962 (exit $ac_status); } >/dev/null; then
34963 if test -s conftest.err; then
34964 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 34965 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
34966 else
34967 ac_cpp_err=
34968 fi
34969else
34970 ac_cpp_err=yes
34971fi
34972if test -z "$ac_cpp_err"; then
34973 ac_header_preproc=yes
34974else
34975 echo "$as_me: failed program was:" >&5
34976sed 's/^/| /' conftest.$ac_ext >&5
34977
34978 ac_header_preproc=no
34979fi
34980rm -f conftest.err conftest.$ac_ext
34981echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
34982echo "${ECHO_T}$ac_header_preproc" >&6
34983
34984# So? What about this header?
ac1cb8d3
VS
34985case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
34986 yes:no: )
a848cd7e
SC
34987 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
34988echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
34989 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
34990echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
34991 ac_header_preproc=yes
a848cd7e 34992 ;;
ac1cb8d3 34993 no:yes:* )
a848cd7e
SC
34994 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
34995echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
34996 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
34997echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
34998 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
34999echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
35000 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
35001echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
35002 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
35003echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
35004 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
35005echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
35006 (
35007 cat <<\_ASBOX
ac1cb8d3
VS
35008## ----------------------------------------- ##
35009## Report this to wx-dev@lists.wxwidgets.org ##
35010## ----------------------------------------- ##
a848cd7e
SC
35011_ASBOX
35012 ) |
35013 sed "s/^/$as_me: WARNING: /" >&2
35014 ;;
35015esac
35016echo "$as_me:$LINENO: checking for $ac_header" >&5
35017echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35018if eval "test \"\${$as_ac_Header+set}\" = set"; then
35019 echo $ECHO_N "(cached) $ECHO_C" >&6
35020else
ac1cb8d3 35021 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
35022fi
35023echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35024echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35025
35026fi
35027if test `eval echo '${'$as_ac_Header'}'` = yes; then
35028 cat >>confdefs.h <<_ACEOF
35029#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
35030_ACEOF
35031
35032fi
35033
35034done
35035
35036
35037 if test "$wxUSE_LIBSDL" != "no"; then
35038
35039# Check whether --with-sdl-prefix or --without-sdl-prefix was given.
35040if test "${with_sdl_prefix+set}" = set; then
35041 withval="$with_sdl_prefix"
35042 sdl_prefix="$withval"
35043else
35044 sdl_prefix=""
35045fi;
35046
35047# Check whether --with-sdl-exec-prefix or --without-sdl-exec-prefix was given.
35048if test "${with_sdl_exec_prefix+set}" = set; then
35049 withval="$with_sdl_exec_prefix"
35050 sdl_exec_prefix="$withval"
35051else
35052 sdl_exec_prefix=""
35053fi;
35054# Check whether --enable-sdltest or --disable-sdltest was given.
35055if test "${enable_sdltest+set}" = set; then
35056 enableval="$enable_sdltest"
35057
35058else
35059 enable_sdltest=yes
35060fi;
35061
35062 if test x$sdl_exec_prefix != x ; then
35063 sdl_args="$sdl_args --exec-prefix=$sdl_exec_prefix"
35064 if test x${SDL_CONFIG+set} != xset ; then
35065 SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config
35066 fi
35067 fi
35068 if test x$sdl_prefix != x ; then
35069 sdl_args="$sdl_args --prefix=$sdl_prefix"
35070 if test x${SDL_CONFIG+set} != xset ; then
35071 SDL_CONFIG=$sdl_prefix/bin/sdl-config
35072 fi
35073 fi
35074
35075
35076 PATH="$prefix/bin:$prefix/usr/bin:$PATH"
35077 # Extract the first word of "sdl-config", so it can be a program name with args.
35078set dummy sdl-config; ac_word=$2
35079echo "$as_me:$LINENO: checking for $ac_word" >&5
35080echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
35081if test "${ac_cv_path_SDL_CONFIG+set}" = set; then
35082 echo $ECHO_N "(cached) $ECHO_C" >&6
35083else
35084 case $SDL_CONFIG in
35085 [\\/]* | ?:[\\/]*)
35086 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
35087 ;;
35088 *)
35089 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35090for as_dir in $PATH
35091do
35092 IFS=$as_save_IFS
35093 test -z "$as_dir" && as_dir=.
35094 for ac_exec_ext in '' $ac_executable_extensions; do
35095 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
35096 ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
35097 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
35098 break 2
35099 fi
35100done
35101done
35102
35103 test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
35104 ;;
35105esac
35106fi
35107SDL_CONFIG=$ac_cv_path_SDL_CONFIG
35108
35109if test -n "$SDL_CONFIG"; then
35110 echo "$as_me:$LINENO: result: $SDL_CONFIG" >&5
35111echo "${ECHO_T}$SDL_CONFIG" >&6
35112else
35113 echo "$as_me:$LINENO: result: no" >&5
35114echo "${ECHO_T}no" >&6
35115fi
35116
35117 min_sdl_version=1.2.0
35118 echo "$as_me:$LINENO: checking for SDL - version >= $min_sdl_version" >&5
35119echo $ECHO_N "checking for SDL - version >= $min_sdl_version... $ECHO_C" >&6
35120 no_sdl=""
35121 if test "$SDL_CONFIG" = "no" ; then
35122 no_sdl=yes
35123 else
35124 SDL_CFLAGS=`$SDL_CONFIG $sdlconf_args --cflags`
35125 SDL_LIBS=`$SDL_CONFIG $sdlconf_args --libs`
35126
35127 sdl_major_version=`$SDL_CONFIG $sdl_args --version | \
35128 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
35129 sdl_minor_version=`$SDL_CONFIG $sdl_args --version | \
35130 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
35131 sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
35132 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
35133 if test "x$enable_sdltest" = "xyes" ; then
35134 ac_save_CFLAGS="$CFLAGS"
35135 ac_save_LIBS="$LIBS"
35136 CFLAGS="$CFLAGS $SDL_CFLAGS"
35137 LIBS="$LIBS $SDL_LIBS"
35138 rm -f conf.sdltest
35139 if test "$cross_compiling" = yes; then
35140 echo $ac_n "cross compiling; assumed OK... $ac_c"
35141else
35142 cat >conftest.$ac_ext <<_ACEOF
35143/* confdefs.h. */
35144_ACEOF
35145cat confdefs.h >>conftest.$ac_ext
35146cat >>conftest.$ac_ext <<_ACEOF
35147/* end confdefs.h. */
35148
35149#include <stdio.h>
35150#include <stdlib.h>
35151#include <string.h>
35152#include "SDL.h"
35153
35154char*
35155my_strdup (char *str)
35156{
35157 char *new_str;
35158
35159 if (str)
35160 {
35161 new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
35162 strcpy (new_str, str);
35163 }
35164 else
35165 new_str = NULL;
35166
35167 return new_str;
35168}
35169
35170int main (int argc, char *argv[])
35171{
35172 int major, minor, micro;
35173 char *tmp_version;
35174
35175 /* This hangs on some systems (?)
35176 system ("touch conf.sdltest");
35177 */
35178 { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
35179
35180 /* HP/UX 9 (%@#!) writes to sscanf strings */
35181 tmp_version = my_strdup("$min_sdl_version");
35182 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
35183 printf("%s, bad version string\n", "$min_sdl_version");
35184 exit(1);
35185 }
35186
35187 if (($sdl_major_version > major) ||
35188 (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
35189 (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
35190 {
35191 return 0;
35192 }
35193 else
35194 {
35195 printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
35196 printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
35197 printf("*** best to upgrade to the required version.\n");
35198 printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
35199 printf("*** to point to the correct copy of sdl-config, and remove the file\n");
35200 printf("*** config.cache before re-running configure\n");
35201 return 1;
35202 }
35203}
35204
35205
35206_ACEOF
35207rm -f conftest$ac_exeext
35208if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35209 (eval $ac_link) 2>&5
35210 ac_status=$?
35211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35212 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
35213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35214 (eval $ac_try) 2>&5
35215 ac_status=$?
35216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35217 (exit $ac_status); }; }; then
35218 :
35219else
35220 echo "$as_me: program exited with status $ac_status" >&5
35221echo "$as_me: failed program was:" >&5
35222sed 's/^/| /' conftest.$ac_ext >&5
35223
35224( exit $ac_status )
35225no_sdl=yes
35226fi
ac1cb8d3 35227rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
35228fi
35229 CFLAGS="$ac_save_CFLAGS"
35230 LIBS="$ac_save_LIBS"
35231 fi
35232 fi
35233 if test "x$no_sdl" = x ; then
35234 echo "$as_me:$LINENO: result: yes" >&5
35235echo "${ECHO_T}yes" >&6
35236
35237 EXTRALIBS_SDL="$SDL_LIBS"
35238 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
35239 cat >>confdefs.h <<\_ACEOF
35240#define wxUSE_LIBSDL 1
35241_ACEOF
35242
35243
35244 else
35245 echo "$as_me:$LINENO: result: no" >&5
35246echo "${ECHO_T}no" >&6
35247 if test "$SDL_CONFIG" = "no" ; then
35248 echo "*** The sdl-config script installed by SDL could not be found"
35249 echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
35250 echo "*** your path, or set the SDL_CONFIG environment variable to the"
35251 echo "*** full path to sdl-config."
35252 else
35253 if test -f conf.sdltest ; then
35254 :
35255 else
35256 echo "*** Could not run SDL test program, checking why..."
35257 CFLAGS="$CFLAGS $SDL_CFLAGS"
35258 LIBS="$LIBS $SDL_LIBS"
35259 cat >conftest.$ac_ext <<_ACEOF
35260/* confdefs.h. */
35261_ACEOF
35262cat confdefs.h >>conftest.$ac_ext
35263cat >>conftest.$ac_ext <<_ACEOF
35264/* end confdefs.h. */
35265
35266#include <stdio.h>
35267#include "SDL.h"
35268
35269int main(int argc, char *argv[])
35270{ return 0; }
35271#undef main
35272#define main K_and_R_C_main
35273
35274int
35275main ()
35276{
35277 return 0;
35278 ;
35279 return 0;
35280}
35281_ACEOF
35282rm -f conftest.$ac_objext conftest$ac_exeext
35283if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35284 (eval $ac_link) 2>conftest.er1
a848cd7e 35285 ac_status=$?
ac1cb8d3
VS
35286 grep -v '^ *+' conftest.er1 >conftest.err
35287 rm -f conftest.er1
35288 cat conftest.err >&5
a848cd7e
SC
35289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35290 (exit $ac_status); } &&
89be85c2
VS
35291 { ac_try='test -z "$ac_c_werror_flag"
35292 || test ! -s conftest.err'
ac1cb8d3
VS
35293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35294 (eval $ac_try) 2>&5
35295 ac_status=$?
35296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35297 (exit $ac_status); }; } &&
35298 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35300 (eval $ac_try) 2>&5
35301 ac_status=$?
35302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35303 (exit $ac_status); }; }; then
35304 echo "*** The test program compiled, but did not run. This usually means"
35305 echo "*** that the run-time linker is not finding SDL or finding the wrong"
35306 echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
35307 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
35308 echo "*** to the installed location Also, make sure you have run ldconfig if that"
35309 echo "*** is required on your system"
35310 echo "***"
35311 echo "*** If you have an old version installed, it is best to remove it, although"
35312 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
35313else
35314 echo "$as_me: failed program was:" >&5
35315sed 's/^/| /' conftest.$ac_ext >&5
35316
35317 echo "*** The test program failed to compile or link. See the file config.log for the"
35318 echo "*** exact error that occured. This usually means SDL was incorrectly installed"
35319 echo "*** or that you have moved SDL since it was installed. In the latter case, you"
35320 echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
35321fi
ac1cb8d3
VS
35322rm -f conftest.err conftest.$ac_objext \
35323 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35324 CFLAGS="$ac_save_CFLAGS"
35325 LIBS="$ac_save_LIBS"
35326 fi
35327 fi
35328 SDL_CFLAGS=""
35329 SDL_LIBS=""
35330 wxUSE_LIBSDL="no"
35331 fi
35332
35333
35334 rm -f conf.sdltest
35335
35336 if test "$wxUSE_LIBSDL" = "yes" -a "$wxUSE_PLUGINS" = "yes" ; then
35337 WITH_PLUGIN_SDL=1
35338 fi
35339 fi
35340 fi
35341
35342 cat >>confdefs.h <<\_ACEOF
35343#define wxUSE_SOUND 1
35344_ACEOF
35345
35346 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sound"
35347fi
35348
d1c38808
VZ
35349if test "$WXGTK20" = 1; then
35350 if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
35351 if test "$wxUSE_LIBGNOMEPRINT" = "yes" ; then
35352
35353
35354 succeeded=no
35355
35356 if test -z "$PKG_CONFIG"; then
35357 # Extract the first word of "pkg-config", so it can be a program name with args.
35358set dummy pkg-config; ac_word=$2
35359echo "$as_me:$LINENO: checking for $ac_word" >&5
35360echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
35361if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
35362 echo $ECHO_N "(cached) $ECHO_C" >&6
35363else
35364 case $PKG_CONFIG in
35365 [\\/]* | ?:[\\/]*)
35366 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
35367 ;;
35368 *)
35369 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35370for as_dir in $PATH
35371do
35372 IFS=$as_save_IFS
35373 test -z "$as_dir" && as_dir=.
35374 for ac_exec_ext in '' $ac_executable_extensions; do
35375 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
35376 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
35377 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
35378 break 2
35379 fi
35380done
35381done
35382
35383 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
35384 ;;
35385esac
35386fi
35387PKG_CONFIG=$ac_cv_path_PKG_CONFIG
35388
35389if test -n "$PKG_CONFIG"; then
35390 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
35391echo "${ECHO_T}$PKG_CONFIG" >&6
35392else
35393 echo "$as_me:$LINENO: result: no" >&5
35394echo "${ECHO_T}no" >&6
35395fi
35396
35397 fi
35398
35399 if test "$PKG_CONFIG" = "no" ; then
35400 echo "*** The pkg-config script could not be found. Make sure it is"
35401 echo "*** in your path, or set the PKG_CONFIG environment variable"
35402 echo "*** to the full path to pkg-config."
35403 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
35404 else
35405 PKG_CONFIG_MIN_VERSION=0.9.0
35406 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
ffa762ff
VS
35407 echo "$as_me:$LINENO: checking for libgnomeprintui-2.2 >= 2.8" >&5
35408echo $ECHO_N "checking for libgnomeprintui-2.2 >= 2.8... $ECHO_C" >&6
d1c38808 35409
ffa762ff 35410 if $PKG_CONFIG --exists "libgnomeprintui-2.2 >= 2.8" ; then
d1c38808
VZ
35411 echo "$as_me:$LINENO: result: yes" >&5
35412echo "${ECHO_T}yes" >&6
35413 succeeded=yes
35414
35415 echo "$as_me:$LINENO: checking LIBGNOMEPRINTUI_CFLAGS" >&5
35416echo $ECHO_N "checking LIBGNOMEPRINTUI_CFLAGS... $ECHO_C" >&6
ffa762ff 35417 LIBGNOMEPRINTUI_CFLAGS=`$PKG_CONFIG --cflags "libgnomeprintui-2.2 >= 2.8"`
d1c38808
VZ
35418 echo "$as_me:$LINENO: result: $LIBGNOMEPRINTUI_CFLAGS" >&5
35419echo "${ECHO_T}$LIBGNOMEPRINTUI_CFLAGS" >&6
35420
35421 echo "$as_me:$LINENO: checking LIBGNOMEPRINTUI_LIBS" >&5
35422echo $ECHO_N "checking LIBGNOMEPRINTUI_LIBS... $ECHO_C" >&6
ffa762ff 35423 LIBGNOMEPRINTUI_LIBS=`$PKG_CONFIG --libs "libgnomeprintui-2.2 >= 2.8"`
d1c38808
VZ
35424 echo "$as_me:$LINENO: result: $LIBGNOMEPRINTUI_LIBS" >&5
35425echo "${ECHO_T}$LIBGNOMEPRINTUI_LIBS" >&6
35426 else
35427 LIBGNOMEPRINTUI_CFLAGS=""
35428 LIBGNOMEPRINTUI_LIBS=""
35429 ## If we have a custom action on failure, don't print errors, but
35430 ## do set a variable so people can do so.
ffa762ff 35431 LIBGNOMEPRINTUI_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libgnomeprintui-2.2 >= 2.8"`
d1c38808
VZ
35432
35433 fi
35434
35435
35436
35437 else
35438 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
35439 echo "*** See http://www.freedesktop.org/software/pkgconfig"
35440 fi
35441 fi
35442
35443 if test $succeeded = yes; then
35444
d1c38808
VZ
35445 CXXFLAGS="$CXXFLAGS $LIBGNOMEPRINTUI_CFLAGS"
35446 cat >>confdefs.h <<\_ACEOF
35447#define wxUSE_LIBGNOMEPRINT 1
35448_ACEOF
35449
35450
35451 else
35452
35453 { echo "$as_me:$LINENO: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&5
35454echo "$as_me: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&2;}
35455 wxUSE_LIBGNOMEPRINT="no"
35456
35457
35458 fi
35459
35460 fi
35461 fi
35462fi
35463
35464
a848cd7e
SC
35465if test "$wxUSE_CMDLINE_PARSER" = "yes"; then
35466 cat >>confdefs.h <<\_ACEOF
35467#define wxUSE_CMDLINE_PARSER 1
35468_ACEOF
35469
35470fi
35471
35472if test "$wxUSE_STOPWATCH" = "yes"; then
35473 cat >>confdefs.h <<\_ACEOF
35474#define wxUSE_STOPWATCH 1
35475_ACEOF
35476
35477fi
35478
35479if test "$wxUSE_DATETIME" = "yes"; then
35480 cat >>confdefs.h <<\_ACEOF
35481#define wxUSE_DATETIME 1
35482_ACEOF
35483
35484fi
35485
35486if test "$wxUSE_FILE" = "yes"; then
35487 cat >>confdefs.h <<\_ACEOF
35488#define wxUSE_FILE 1
35489_ACEOF
35490
35491fi
35492
35493if test "$wxUSE_FFILE" = "yes"; then
35494 cat >>confdefs.h <<\_ACEOF
35495#define wxUSE_FFILE 1
35496_ACEOF
35497
35498fi
35499
35500if test "$wxUSE_FILESYSTEM" = "yes"; then
35501 cat >>confdefs.h <<\_ACEOF
35502#define wxUSE_FILESYSTEM 1
35503_ACEOF
35504
35505fi
35506
35507if test "$wxUSE_FS_ZIP" = "yes"; then
35508 cat >>confdefs.h <<\_ACEOF
35509#define wxUSE_FS_ZIP 1
35510_ACEOF
35511
35512fi
35513
35514if test "$wxUSE_ZIPSTREAM" = "yes"; then
35515 cat >>confdefs.h <<\_ACEOF
35516#define wxUSE_ZIPSTREAM 1
35517_ACEOF
35518
35519fi
35520
a848cd7e
SC
35521if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
35522 cat >>confdefs.h <<\_ACEOF
35523#define wxUSE_ON_FATAL_EXCEPTION 1
35524_ACEOF
35525
35526fi
35527
eaff0f0d
VZ
35528if test "$wxUSE_STACKWALKER" = "yes"; then
35529 cat >>confdefs.h <<\_ACEOF
35530#define wxUSE_STACKWALKER 1
35531_ACEOF
35532
35533fi
35534
a848cd7e
SC
35535if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
35536 cat >>confdefs.h <<\_ACEOF
35537#define wxUSE_SNGLINST_CHECKER 1
35538_ACEOF
35539
35540fi
35541
35542if test "$wxUSE_BUSYINFO" = "yes"; then
35543 cat >>confdefs.h <<\_ACEOF
35544#define wxUSE_BUSYINFO 1
35545_ACEOF
35546
35547fi
35548
35549if test "$wxUSE_STD_IOSTREAM" = "yes"; then
35550 cat >>confdefs.h <<\_ACEOF
35551#define wxUSE_STD_IOSTREAM 1
35552_ACEOF
35553
35554fi
35555
35556if test "$wxUSE_TEXTBUFFER" = "yes"; then
35557 cat >>confdefs.h <<\_ACEOF
35558#define wxUSE_TEXTBUFFER 1
35559_ACEOF
35560
35561fi
35562
35563if test "$wxUSE_TEXTFILE" = "yes"; then
35564 if test "$wxUSE_FILE" != "yes" -o "$wxUSE_TEXTBUFFER" != "yes" ; then
35565 { echo "$as_me:$LINENO: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&5
35566echo "$as_me: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&2;}
35567 else
35568 cat >>confdefs.h <<\_ACEOF
35569#define wxUSE_TEXTFILE 1
35570_ACEOF
35571
35572 fi
35573fi
35574
35575if test "$wxUSE_CONFIG" = "yes" ; then
35576 if test "$wxUSE_TEXTFILE" != "yes"; then
35577 { echo "$as_me:$LINENO: WARNING: wxConfig requires wxTextFile... disabled" >&5
35578echo "$as_me: WARNING: wxConfig requires wxTextFile... disabled" >&2;}
35579 else
35580 cat >>confdefs.h <<\_ACEOF
35581#define wxUSE_CONFIG 1
89be85c2
VS
35582_ACEOF
35583
35584 cat >>confdefs.h <<\_ACEOF
35585#define wxUSE_CONFIG_NATIVE 1
a848cd7e
SC
35586_ACEOF
35587
35588 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config"
35589 fi
35590fi
35591
35592if test "$wxUSE_INTL" = "yes" ; then
35593 if test "$wxUSE_FILE" != "yes"; then
35594 { echo "$as_me:$LINENO: WARNING: I18n code requires wxFile... disabled" >&5
35595echo "$as_me: WARNING: I18n code requires wxFile... disabled" >&2;}
35596 else
35597 cat >>confdefs.h <<\_ACEOF
35598#define wxUSE_INTL 1
35599_ACEOF
35600
35601 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat"
35602 GUIDIST="$GUIDIST INTL_DIST"
35603 fi
35604fi
35605
35606if test "$wxUSE_LOG" = "yes"; then
35607 cat >>confdefs.h <<\_ACEOF
35608#define wxUSE_LOG 1
35609_ACEOF
35610
35611
35612 if test "$wxUSE_LOGGUI" = "yes"; then
35613 cat >>confdefs.h <<\_ACEOF
35614#define wxUSE_LOGGUI 1
35615_ACEOF
35616
35617 fi
35618
35619 if test "$wxUSE_LOGWINDOW" = "yes"; then
35620 cat >>confdefs.h <<\_ACEOF
35621#define wxUSE_LOGWINDOW 1
35622_ACEOF
35623
35624 fi
35625
35626 if test "$wxUSE_LOGDIALOG" = "yes"; then
35627 cat >>confdefs.h <<\_ACEOF
35628#define wxUSE_LOG_DIALOG 1
35629_ACEOF
35630
35631 fi
35632fi
35633
35634if test "$wxUSE_LONGLONG" = "yes"; then
35635 cat >>confdefs.h <<\_ACEOF
35636#define wxUSE_LONGLONG 1
35637_ACEOF
35638
35639fi
35640
35641if test "$wxUSE_GEOMETRY" = "yes"; then
35642 cat >>confdefs.h <<\_ACEOF
35643#define wxUSE_GEOMETRY 1
35644_ACEOF
35645
35646fi
35647
a848cd7e
SC
35648if test "$wxUSE_STREAMS" = "yes" ; then
35649 cat >>confdefs.h <<\_ACEOF
35650#define wxUSE_STREAMS 1
35651_ACEOF
35652
35653fi
35654
35655
35656if test "$wxUSE_DATETIME" = "yes"; then
35657
35658for ac_func in strptime
35659do
35660as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35661echo "$as_me:$LINENO: checking for $ac_func" >&5
35662echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35663if eval "test \"\${$as_ac_var+set}\" = set"; then
35664 echo $ECHO_N "(cached) $ECHO_C" >&6
35665else
35666 cat >conftest.$ac_ext <<_ACEOF
35667/* confdefs.h. */
35668_ACEOF
35669cat confdefs.h >>conftest.$ac_ext
35670cat >>conftest.$ac_ext <<_ACEOF
35671/* end confdefs.h. */
ac1cb8d3
VS
35672/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35673 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35674#define $ac_func innocuous_$ac_func
35675
a848cd7e
SC
35676/* System header to define __stub macros and hopefully few prototypes,
35677 which can conflict with char $ac_func (); below.
35678 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35679 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 35680
a848cd7e
SC
35681#ifdef __STDC__
35682# include <limits.h>
35683#else
35684# include <assert.h>
35685#endif
ac1cb8d3
VS
35686
35687#undef $ac_func
35688
a848cd7e
SC
35689/* Override any gcc2 internal prototype to avoid an error. */
35690#ifdef __cplusplus
35691extern "C"
35692{
35693#endif
35694/* We use char because int might match the return type of a gcc2
35695 builtin and then its argument prototype would still apply. */
35696char $ac_func ();
35697/* The GNU C library defines this for functions which it implements
35698 to always fail with ENOSYS. Some functions are actually named
35699 something starting with __ and the normal name is an alias. */
35700#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35701choke me
35702#else
35703char (*f) () = $ac_func;
35704#endif
35705#ifdef __cplusplus
35706}
35707#endif
35708
35709int
35710main ()
35711{
35712return f != $ac_func;
35713 ;
35714 return 0;
35715}
35716_ACEOF
35717rm -f conftest.$ac_objext conftest$ac_exeext
35718if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35719 (eval $ac_link) 2>conftest.er1
a848cd7e 35720 ac_status=$?
ac1cb8d3
VS
35721 grep -v '^ *+' conftest.er1 >conftest.err
35722 rm -f conftest.er1
35723 cat conftest.err >&5
a848cd7e
SC
35724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35725 (exit $ac_status); } &&
89be85c2
VS
35726 { ac_try='test -z "$ac_c_werror_flag"
35727 || test ! -s conftest.err'
ac1cb8d3
VS
35728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35729 (eval $ac_try) 2>&5
35730 ac_status=$?
35731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35732 (exit $ac_status); }; } &&
35733 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35735 (eval $ac_try) 2>&5
35736 ac_status=$?
35737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35738 (exit $ac_status); }; }; then
35739 eval "$as_ac_var=yes"
35740else
35741 echo "$as_me: failed program was:" >&5
35742sed 's/^/| /' conftest.$ac_ext >&5
35743
35744eval "$as_ac_var=no"
35745fi
ac1cb8d3
VS
35746rm -f conftest.err conftest.$ac_objext \
35747 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35748fi
35749echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35750echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35751if test `eval echo '${'$as_ac_var'}'` = yes; then
35752 cat >>confdefs.h <<_ACEOF
35753#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35754_ACEOF
35755
35756fi
35757done
35758
35759
35760 echo "$as_me:$LINENO: checking for timezone variable in <time.h>" >&5
35761echo $ECHO_N "checking for timezone variable in <time.h>... $ECHO_C" >&6
35762if test "${wx_cv_var_timezone+set}" = set; then
35763 echo $ECHO_N "(cached) $ECHO_C" >&6
35764else
35765
35766 cat >conftest.$ac_ext <<_ACEOF
35767/* confdefs.h. */
35768_ACEOF
35769cat confdefs.h >>conftest.$ac_ext
35770cat >>conftest.$ac_ext <<_ACEOF
35771/* end confdefs.h. */
35772
35773 #include <time.h>
35774
35775int
35776main ()
35777{
35778
35779 int tz;
35780 tz = timezone;
35781
35782 ;
35783 return 0;
35784}
35785_ACEOF
35786rm -f conftest.$ac_objext
35787if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 35788 (eval $ac_compile) 2>conftest.er1
a848cd7e 35789 ac_status=$?
ac1cb8d3
VS
35790 grep -v '^ *+' conftest.er1 >conftest.err
35791 rm -f conftest.er1
35792 cat conftest.err >&5
a848cd7e
SC
35793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35794 (exit $ac_status); } &&
89be85c2
VS
35795 { ac_try='test -z "$ac_c_werror_flag"
35796 || test ! -s conftest.err'
ac1cb8d3
VS
35797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35798 (eval $ac_try) 2>&5
35799 ac_status=$?
35800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35801 (exit $ac_status); }; } &&
35802 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
35803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35804 (eval $ac_try) 2>&5
35805 ac_status=$?
35806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35807 (exit $ac_status); }; }; then
35808
35809 wx_cv_var_timezone=timezone
35810
35811else
35812 echo "$as_me: failed program was:" >&5
35813sed 's/^/| /' conftest.$ac_ext >&5
35814
35815
35816 cat >conftest.$ac_ext <<_ACEOF
35817/* confdefs.h. */
35818_ACEOF
35819cat confdefs.h >>conftest.$ac_ext
35820cat >>conftest.$ac_ext <<_ACEOF
35821/* end confdefs.h. */
35822
35823 #include <time.h>
35824
35825int
35826main ()
35827{
35828
35829 int tz;
35830 tz = _timezone;
35831
35832 ;
35833 return 0;
35834}
35835_ACEOF
35836rm -f conftest.$ac_objext
35837if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 35838 (eval $ac_compile) 2>conftest.er1
a848cd7e 35839 ac_status=$?
ac1cb8d3
VS
35840 grep -v '^ *+' conftest.er1 >conftest.err
35841 rm -f conftest.er1
35842 cat conftest.err >&5
a848cd7e
SC
35843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35844 (exit $ac_status); } &&
89be85c2
VS
35845 { ac_try='test -z "$ac_c_werror_flag"
35846 || test ! -s conftest.err'
ac1cb8d3
VS
35847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35848 (eval $ac_try) 2>&5
35849 ac_status=$?
35850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35851 (exit $ac_status); }; } &&
35852 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
35853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35854 (eval $ac_try) 2>&5
35855 ac_status=$?
35856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35857 (exit $ac_status); }; }; then
35858
35859 wx_cv_var_timezone=_timezone
35860
35861else
35862 echo "$as_me: failed program was:" >&5
35863sed 's/^/| /' conftest.$ac_ext >&5
35864
35865
35866 cat >conftest.$ac_ext <<_ACEOF
35867/* confdefs.h. */
35868_ACEOF
35869cat confdefs.h >>conftest.$ac_ext
35870cat >>conftest.$ac_ext <<_ACEOF
35871/* end confdefs.h. */
35872
35873 #include <time.h>
35874
35875int
35876main ()
35877{
35878
35879 int tz;
35880 tz = __timezone;
35881
35882 ;
35883 return 0;
35884}
35885_ACEOF
35886rm -f conftest.$ac_objext
35887if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 35888 (eval $ac_compile) 2>conftest.er1
a848cd7e 35889 ac_status=$?
ac1cb8d3
VS
35890 grep -v '^ *+' conftest.er1 >conftest.err
35891 rm -f conftest.er1
35892 cat conftest.err >&5
a848cd7e
SC
35893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35894 (exit $ac_status); } &&
89be85c2
VS
35895 { ac_try='test -z "$ac_c_werror_flag"
35896 || test ! -s conftest.err'
ac1cb8d3
VS
35897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35898 (eval $ac_try) 2>&5
35899 ac_status=$?
35900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35901 (exit $ac_status); }; } &&
35902 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
35903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35904 (eval $ac_try) 2>&5
35905 ac_status=$?
35906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35907 (exit $ac_status); }; }; then
35908
35909 wx_cv_var_timezone=__timezone
35910
35911else
35912 echo "$as_me: failed program was:" >&5
35913sed 's/^/| /' conftest.$ac_ext >&5
35914
35915
35916 if test "$USE_DOS" = 0 ; then
35917 { echo "$as_me:$LINENO: WARNING: no timezone variable" >&5
35918echo "$as_me: WARNING: no timezone variable" >&2;}
35919 fi
35920
35921
35922fi
ac1cb8d3 35923rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
35924
35925
35926fi
ac1cb8d3 35927rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
35928
35929
35930fi
ac1cb8d3 35931rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
35932
35933
35934fi
35935echo "$as_me:$LINENO: result: $wx_cv_var_timezone" >&5
35936echo "${ECHO_T}$wx_cv_var_timezone" >&6
35937
35938 if test "x$wx_cv_var_timezone" != x ; then
35939 cat >>confdefs.h <<_ACEOF
35940#define WX_TIMEZONE $wx_cv_var_timezone
35941_ACEOF
35942
35943 fi
35944
35945
35946for ac_func in localtime
35947do
35948as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35949echo "$as_me:$LINENO: checking for $ac_func" >&5
35950echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35951if eval "test \"\${$as_ac_var+set}\" = set"; then
35952 echo $ECHO_N "(cached) $ECHO_C" >&6
35953else
35954 cat >conftest.$ac_ext <<_ACEOF
35955/* confdefs.h. */
35956_ACEOF
35957cat confdefs.h >>conftest.$ac_ext
35958cat >>conftest.$ac_ext <<_ACEOF
35959/* end confdefs.h. */
ac1cb8d3
VS
35960/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35961 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35962#define $ac_func innocuous_$ac_func
35963
a848cd7e
SC
35964/* System header to define __stub macros and hopefully few prototypes,
35965 which can conflict with char $ac_func (); below.
35966 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35967 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 35968
a848cd7e
SC
35969#ifdef __STDC__
35970# include <limits.h>
35971#else
35972# include <assert.h>
35973#endif
ac1cb8d3
VS
35974
35975#undef $ac_func
35976
a848cd7e
SC
35977/* Override any gcc2 internal prototype to avoid an error. */
35978#ifdef __cplusplus
35979extern "C"
35980{
35981#endif
35982/* We use char because int might match the return type of a gcc2
35983 builtin and then its argument prototype would still apply. */
35984char $ac_func ();
35985/* The GNU C library defines this for functions which it implements
35986 to always fail with ENOSYS. Some functions are actually named
35987 something starting with __ and the normal name is an alias. */
35988#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35989choke me
35990#else
35991char (*f) () = $ac_func;
35992#endif
35993#ifdef __cplusplus
35994}
35995#endif
35996
35997int
35998main ()
35999{
36000return f != $ac_func;
36001 ;
36002 return 0;
36003}
36004_ACEOF
36005rm -f conftest.$ac_objext conftest$ac_exeext
36006if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36007 (eval $ac_link) 2>conftest.er1
a848cd7e 36008 ac_status=$?
ac1cb8d3
VS
36009 grep -v '^ *+' conftest.er1 >conftest.err
36010 rm -f conftest.er1
36011 cat conftest.err >&5
a848cd7e
SC
36012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36013 (exit $ac_status); } &&
89be85c2
VS
36014 { ac_try='test -z "$ac_c_werror_flag"
36015 || test ! -s conftest.err'
ac1cb8d3
VS
36016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36017 (eval $ac_try) 2>&5
36018 ac_status=$?
36019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36020 (exit $ac_status); }; } &&
36021 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36023 (eval $ac_try) 2>&5
36024 ac_status=$?
36025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36026 (exit $ac_status); }; }; then
36027 eval "$as_ac_var=yes"
36028else
36029 echo "$as_me: failed program was:" >&5
36030sed 's/^/| /' conftest.$ac_ext >&5
36031
36032eval "$as_ac_var=no"
36033fi
ac1cb8d3
VS
36034rm -f conftest.err conftest.$ac_objext \
36035 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36036fi
36037echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36038echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36039if test `eval echo '${'$as_ac_var'}'` = yes; then
36040 cat >>confdefs.h <<_ACEOF
36041#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36042_ACEOF
36043
36044fi
36045done
36046
36047
36048 if test "$ac_cv_func_localtime" = "yes"; then
36049 echo "$as_me:$LINENO: checking for tm_gmtoff in struct tm" >&5
36050echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6
36051if test "${wx_cv_struct_tm_has_gmtoff+set}" = set; then
36052 echo $ECHO_N "(cached) $ECHO_C" >&6
36053else
36054
36055 cat >conftest.$ac_ext <<_ACEOF
36056/* confdefs.h. */
36057_ACEOF
36058cat confdefs.h >>conftest.$ac_ext
36059cat >>conftest.$ac_ext <<_ACEOF
36060/* end confdefs.h. */
36061
36062 #include <time.h>
36063
36064int
36065main ()
36066{
36067
36068 struct tm tm;
36069 tm.tm_gmtoff++;
36070
36071 ;
36072 return 0;
36073}
36074_ACEOF
36075rm -f conftest.$ac_objext
36076if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 36077 (eval $ac_compile) 2>conftest.er1
a848cd7e 36078 ac_status=$?
ac1cb8d3
VS
36079 grep -v '^ *+' conftest.er1 >conftest.err
36080 rm -f conftest.er1
36081 cat conftest.err >&5
a848cd7e
SC
36082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36083 (exit $ac_status); } &&
89be85c2
VS
36084 { ac_try='test -z "$ac_c_werror_flag"
36085 || test ! -s conftest.err'
ac1cb8d3
VS
36086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36087 (eval $ac_try) 2>&5
36088 ac_status=$?
36089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36090 (exit $ac_status); }; } &&
36091 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
36092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36093 (eval $ac_try) 2>&5
36094 ac_status=$?
36095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36096 (exit $ac_status); }; }; then
36097
36098 wx_cv_struct_tm_has_gmtoff=yes
36099
36100else
36101 echo "$as_me: failed program was:" >&5
36102sed 's/^/| /' conftest.$ac_ext >&5
36103
36104wx_cv_struct_tm_has_gmtoff=no
36105
36106fi
ac1cb8d3 36107rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
36108
36109fi
36110echo "$as_me:$LINENO: result: $wx_cv_struct_tm_has_gmtoff" >&5
36111echo "${ECHO_T}$wx_cv_struct_tm_has_gmtoff" >&6
36112 fi
36113
36114 if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then
36115 cat >>confdefs.h <<\_ACEOF
36116#define WX_GMTOFF_IN_TM 1
36117_ACEOF
36118
36119 fi
36120
36121
36122
36123for ac_func in gettimeofday ftime
36124do
36125as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36126echo "$as_me:$LINENO: checking for $ac_func" >&5
36127echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36128if eval "test \"\${$as_ac_var+set}\" = set"; then
36129 echo $ECHO_N "(cached) $ECHO_C" >&6
36130else
36131 cat >conftest.$ac_ext <<_ACEOF
36132/* confdefs.h. */
36133_ACEOF
36134cat confdefs.h >>conftest.$ac_ext
36135cat >>conftest.$ac_ext <<_ACEOF
36136/* end confdefs.h. */
ac1cb8d3
VS
36137/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36138 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36139#define $ac_func innocuous_$ac_func
36140
a848cd7e
SC
36141/* System header to define __stub macros and hopefully few prototypes,
36142 which can conflict with char $ac_func (); below.
36143 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36144 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 36145
a848cd7e
SC
36146#ifdef __STDC__
36147# include <limits.h>
36148#else
36149# include <assert.h>
36150#endif
ac1cb8d3
VS
36151
36152#undef $ac_func
36153
a848cd7e
SC
36154/* Override any gcc2 internal prototype to avoid an error. */
36155#ifdef __cplusplus
36156extern "C"
36157{
36158#endif
36159/* We use char because int might match the return type of a gcc2
36160 builtin and then its argument prototype would still apply. */
36161char $ac_func ();
36162/* The GNU C library defines this for functions which it implements
36163 to always fail with ENOSYS. Some functions are actually named
36164 something starting with __ and the normal name is an alias. */
36165#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36166choke me
36167#else
36168char (*f) () = $ac_func;
36169#endif
36170#ifdef __cplusplus
36171}
36172#endif
36173
36174int
36175main ()
36176{
36177return f != $ac_func;
36178 ;
36179 return 0;
36180}
36181_ACEOF
36182rm -f conftest.$ac_objext conftest$ac_exeext
36183if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36184 (eval $ac_link) 2>conftest.er1
a848cd7e 36185 ac_status=$?
ac1cb8d3
VS
36186 grep -v '^ *+' conftest.er1 >conftest.err
36187 rm -f conftest.er1
36188 cat conftest.err >&5
a848cd7e
SC
36189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36190 (exit $ac_status); } &&
89be85c2
VS
36191 { ac_try='test -z "$ac_c_werror_flag"
36192 || test ! -s conftest.err'
ac1cb8d3
VS
36193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36194 (eval $ac_try) 2>&5
36195 ac_status=$?
36196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36197 (exit $ac_status); }; } &&
36198 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36200 (eval $ac_try) 2>&5
36201 ac_status=$?
36202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36203 (exit $ac_status); }; }; then
36204 eval "$as_ac_var=yes"
36205else
36206 echo "$as_me: failed program was:" >&5
36207sed 's/^/| /' conftest.$ac_ext >&5
36208
36209eval "$as_ac_var=no"
36210fi
ac1cb8d3
VS
36211rm -f conftest.err conftest.$ac_objext \
36212 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36213fi
36214echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36215echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36216if test `eval echo '${'$as_ac_var'}'` = yes; then
36217 cat >>confdefs.h <<_ACEOF
36218#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36219_ACEOF
36220 break
36221fi
36222done
36223
36224
36225 if test "$ac_cv_func_gettimeofday" = "yes"; then
36226 echo "$as_me:$LINENO: checking whether gettimeofday takes two arguments" >&5
36227echo $ECHO_N "checking whether gettimeofday takes two arguments... $ECHO_C" >&6
36228if test "${wx_cv_func_gettimeofday_has_2_args+set}" = set; then
36229 echo $ECHO_N "(cached) $ECHO_C" >&6
36230else
36231
36232
36233
36234 ac_ext=cc
36235ac_cpp='$CXXCPP $CPPFLAGS'
36236ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36237ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36238ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
36239
36240
36241 cat >conftest.$ac_ext <<_ACEOF
36242/* confdefs.h. */
36243_ACEOF
36244cat confdefs.h >>conftest.$ac_ext
36245cat >>conftest.$ac_ext <<_ACEOF
36246/* end confdefs.h. */
36247
36248 #include <sys/time.h>
36249 #include <unistd.h>
36250
36251int
36252main ()
36253{
36254
36255 struct timeval tv;
36256 gettimeofday(&tv, NULL);
36257
36258 ;
36259 return 0;
36260}
36261_ACEOF
36262rm -f conftest.$ac_objext
36263if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 36264 (eval $ac_compile) 2>conftest.er1
a848cd7e 36265 ac_status=$?
ac1cb8d3
VS
36266 grep -v '^ *+' conftest.er1 >conftest.err
36267 rm -f conftest.er1
36268 cat conftest.err >&5
a848cd7e
SC
36269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36270 (exit $ac_status); } &&
89be85c2
VS
36271 { ac_try='test -z "$ac_cxx_werror_flag"
36272 || test ! -s conftest.err'
ac1cb8d3
VS
36273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36274 (eval $ac_try) 2>&5
36275 ac_status=$?
36276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36277 (exit $ac_status); }; } &&
36278 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
36279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36280 (eval $ac_try) 2>&5
36281 ac_status=$?
36282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36283 (exit $ac_status); }; }; then
36284 wx_cv_func_gettimeofday_has_2_args=yes
36285else
36286 echo "$as_me: failed program was:" >&5
36287sed 's/^/| /' conftest.$ac_ext >&5
36288
36289cat >conftest.$ac_ext <<_ACEOF
36290/* confdefs.h. */
36291_ACEOF
36292cat confdefs.h >>conftest.$ac_ext
36293cat >>conftest.$ac_ext <<_ACEOF
36294/* end confdefs.h. */
36295
36296 #include <sys/time.h>
36297 #include <unistd.h>
36298
36299int
36300main ()
36301{
36302
36303 struct timeval tv;
36304 gettimeofday(&tv);
36305
36306 ;
36307 return 0;
36308}
36309_ACEOF
36310rm -f conftest.$ac_objext
36311if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 36312 (eval $ac_compile) 2>conftest.er1
a848cd7e 36313 ac_status=$?
ac1cb8d3
VS
36314 grep -v '^ *+' conftest.er1 >conftest.err
36315 rm -f conftest.er1
36316 cat conftest.err >&5
a848cd7e
SC
36317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36318 (exit $ac_status); } &&
89be85c2
VS
36319 { ac_try='test -z "$ac_cxx_werror_flag"
36320 || test ! -s conftest.err'
ac1cb8d3
VS
36321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36322 (eval $ac_try) 2>&5
36323 ac_status=$?
36324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36325 (exit $ac_status); }; } &&
36326 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
36327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36328 (eval $ac_try) 2>&5
36329 ac_status=$?
36330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36331 (exit $ac_status); }; }; then
36332 wx_cv_func_gettimeofday_has_2_args=no
36333else
36334 echo "$as_me: failed program was:" >&5
36335sed 's/^/| /' conftest.$ac_ext >&5
36336
36337
36338 { echo "$as_me:$LINENO: WARNING: failed to determine number of gettimeofday() arguments" >&5
36339echo "$as_me: WARNING: failed to determine number of gettimeofday() arguments" >&2;}
36340 wx_cv_func_gettimeofday_has_2_args=unknown
36341
36342
36343fi
ac1cb8d3 36344rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
36345
36346fi
ac1cb8d3 36347rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
36348 ac_ext=c
36349ac_cpp='$CPP $CPPFLAGS'
36350ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36351ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36352ac_compiler_gnu=$ac_cv_c_compiler_gnu
36353
36354
36355fi
36356echo "$as_me:$LINENO: result: $wx_cv_func_gettimeofday_has_2_args" >&5
36357echo "${ECHO_T}$wx_cv_func_gettimeofday_has_2_args" >&6
36358
36359 if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then
36360 cat >>confdefs.h <<\_ACEOF
36361#define WX_GETTIMEOFDAY_NO_TZ 1
36362_ACEOF
36363
36364 fi
36365 fi
36366
36367 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest"
36368fi
36369
36370
36371if test "$wxUSE_SOCKETS" = "yes"; then
36372 if test "$wxUSE_MGL" = "1"; then
36373 { echo "$as_me:$LINENO: WARNING: wxSocket not yet supported under MGL... disabled" >&5
36374echo "$as_me: WARNING: wxSocket not yet supported under MGL... disabled" >&2;}
36375 wxUSE_SOCKETS="no"
36376 fi
36377fi
36378
36379if test "$wxUSE_SOCKETS" = "yes"; then
36380 if test "$TOOLKIT" != "MSW"; then
36381 echo "$as_me:$LINENO: checking for socket" >&5
36382echo $ECHO_N "checking for socket... $ECHO_C" >&6
36383if test "${ac_cv_func_socket+set}" = set; then
36384 echo $ECHO_N "(cached) $ECHO_C" >&6
36385else
36386 cat >conftest.$ac_ext <<_ACEOF
36387/* confdefs.h. */
36388_ACEOF
36389cat confdefs.h >>conftest.$ac_ext
36390cat >>conftest.$ac_ext <<_ACEOF
36391/* end confdefs.h. */
ac1cb8d3
VS
36392/* Define socket to an innocuous variant, in case <limits.h> declares socket.
36393 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36394#define socket innocuous_socket
36395
a848cd7e
SC
36396/* System header to define __stub macros and hopefully few prototypes,
36397 which can conflict with char socket (); below.
36398 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36399 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 36400
a848cd7e
SC
36401#ifdef __STDC__
36402# include <limits.h>
36403#else
36404# include <assert.h>
36405#endif
ac1cb8d3
VS
36406
36407#undef socket
36408
a848cd7e
SC
36409/* Override any gcc2 internal prototype to avoid an error. */
36410#ifdef __cplusplus
36411extern "C"
36412{
36413#endif
36414/* We use char because int might match the return type of a gcc2
36415 builtin and then its argument prototype would still apply. */
36416char socket ();
36417/* The GNU C library defines this for functions which it implements
36418 to always fail with ENOSYS. Some functions are actually named
36419 something starting with __ and the normal name is an alias. */
36420#if defined (__stub_socket) || defined (__stub___socket)
36421choke me
36422#else
36423char (*f) () = socket;
36424#endif
36425#ifdef __cplusplus
36426}
36427#endif
36428
36429int
36430main ()
36431{
36432return f != socket;
36433 ;
36434 return 0;
36435}
36436_ACEOF
36437rm -f conftest.$ac_objext conftest$ac_exeext
36438if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36439 (eval $ac_link) 2>conftest.er1
a848cd7e 36440 ac_status=$?
ac1cb8d3
VS
36441 grep -v '^ *+' conftest.er1 >conftest.err
36442 rm -f conftest.er1
36443 cat conftest.err >&5
a848cd7e
SC
36444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36445 (exit $ac_status); } &&
89be85c2
VS
36446 { ac_try='test -z "$ac_c_werror_flag"
36447 || test ! -s conftest.err'
ac1cb8d3
VS
36448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36449 (eval $ac_try) 2>&5
36450 ac_status=$?
36451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36452 (exit $ac_status); }; } &&
36453 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36455 (eval $ac_try) 2>&5
36456 ac_status=$?
36457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36458 (exit $ac_status); }; }; then
36459 ac_cv_func_socket=yes
36460else
36461 echo "$as_me: failed program was:" >&5
36462sed 's/^/| /' conftest.$ac_ext >&5
36463
36464ac_cv_func_socket=no
36465fi
ac1cb8d3
VS
36466rm -f conftest.err conftest.$ac_objext \
36467 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36468fi
36469echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
36470echo "${ECHO_T}$ac_cv_func_socket" >&6
36471if test $ac_cv_func_socket = yes; then
36472 :
36473else
36474
36475 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
36476echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
36477if test "${ac_cv_lib_socket_socket+set}" = set; then
36478 echo $ECHO_N "(cached) $ECHO_C" >&6
36479else
36480 ac_check_lib_save_LIBS=$LIBS
36481LIBS="-lsocket $LIBS"
36482cat >conftest.$ac_ext <<_ACEOF
36483/* confdefs.h. */
36484_ACEOF
36485cat confdefs.h >>conftest.$ac_ext
36486cat >>conftest.$ac_ext <<_ACEOF
36487/* end confdefs.h. */
36488
36489/* Override any gcc2 internal prototype to avoid an error. */
36490#ifdef __cplusplus
36491extern "C"
36492#endif
36493/* We use char because int might match the return type of a gcc2
36494 builtin and then its argument prototype would still apply. */
36495char socket ();
36496int
36497main ()
36498{
36499socket ();
36500 ;
36501 return 0;
36502}
36503_ACEOF
36504rm -f conftest.$ac_objext conftest$ac_exeext
36505if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36506 (eval $ac_link) 2>conftest.er1
a848cd7e 36507 ac_status=$?
ac1cb8d3
VS
36508 grep -v '^ *+' conftest.er1 >conftest.err
36509 rm -f conftest.er1
36510 cat conftest.err >&5
a848cd7e
SC
36511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36512 (exit $ac_status); } &&
89be85c2
VS
36513 { ac_try='test -z "$ac_c_werror_flag"
36514 || test ! -s conftest.err'
ac1cb8d3
VS
36515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36516 (eval $ac_try) 2>&5
36517 ac_status=$?
36518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36519 (exit $ac_status); }; } &&
36520 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36522 (eval $ac_try) 2>&5
36523 ac_status=$?
36524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36525 (exit $ac_status); }; }; then
36526 ac_cv_lib_socket_socket=yes
36527else
36528 echo "$as_me: failed program was:" >&5
36529sed 's/^/| /' conftest.$ac_ext >&5
36530
36531ac_cv_lib_socket_socket=no
36532fi
ac1cb8d3
VS
36533rm -f conftest.err conftest.$ac_objext \
36534 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36535LIBS=$ac_check_lib_save_LIBS
36536fi
36537echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
36538echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
36539if test $ac_cv_lib_socket_socket = yes; then
36540 if test "$INET_LINK" != " -lsocket"; then
36541 INET_LINK="$INET_LINK -lsocket"
36542 fi
36543else
36544
36545 { echo "$as_me:$LINENO: WARNING: socket library not found - sockets will be disabled" >&5
36546echo "$as_me: WARNING: socket library not found - sockets will be disabled" >&2;}
36547 wxUSE_SOCKETS=no
36548
36549
36550fi
36551
36552
36553
36554fi
36555
36556 fi
36557fi
36558
36559if test "$wxUSE_SOCKETS" = "yes" ; then
36560 if test "$TOOLKIT" != "MSW"; then
4d4ff94c
VZ
36561 ac_ext=cc
36562ac_cpp='$CXXCPP $CPPFLAGS'
36563ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36564ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36565ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
36566
36567 echo "$as_me:$LINENO: checking what is the type of the third argument of getsockname" >&5
a848cd7e
SC
36568echo $ECHO_N "checking what is the type of the third argument of getsockname... $ECHO_C" >&6
36569if test "${wx_cv_type_getsockname3+set}" = set; then
36570 echo $ECHO_N "(cached) $ECHO_C" >&6
36571else
36572
36573 cat >conftest.$ac_ext <<_ACEOF
36574/* confdefs.h. */
36575_ACEOF
36576cat confdefs.h >>conftest.$ac_ext
36577cat >>conftest.$ac_ext <<_ACEOF
36578/* end confdefs.h. */
36579
36580 #include <sys/types.h>
36581 #include <sys/socket.h>
36582
36583int
36584main ()
36585{
36586
36587 socklen_t len;
36588 getsockname(0, 0, &len);
36589
36590 ;
36591 return 0;
36592}
36593_ACEOF
36594rm -f conftest.$ac_objext
36595if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 36596 (eval $ac_compile) 2>conftest.er1
a848cd7e 36597 ac_status=$?
ac1cb8d3
VS
36598 grep -v '^ *+' conftest.er1 >conftest.err
36599 rm -f conftest.er1
36600 cat conftest.err >&5
a848cd7e
SC
36601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36602 (exit $ac_status); } &&
89be85c2
VS
36603 { ac_try='test -z "$ac_cxx_werror_flag"
36604 || test ! -s conftest.err'
ac1cb8d3
VS
36605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36606 (eval $ac_try) 2>&5
36607 ac_status=$?
36608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36609 (exit $ac_status); }; } &&
36610 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
36611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36612 (eval $ac_try) 2>&5
36613 ac_status=$?
36614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36615 (exit $ac_status); }; }; then
36616 wx_cv_type_getsockname3=socklen_t
36617else
36618 echo "$as_me: failed program was:" >&5
36619sed 's/^/| /' conftest.$ac_ext >&5
36620
36621
36622 CFLAGS_OLD="$CFLAGS"
36623 if test "$GCC" = yes ; then
36624 CFLAGS="$CFLAGS -Werror"
36625 fi
36626
36627 cat >conftest.$ac_ext <<_ACEOF
36628/* confdefs.h. */
36629_ACEOF
36630cat confdefs.h >>conftest.$ac_ext
36631cat >>conftest.$ac_ext <<_ACEOF
36632/* end confdefs.h. */
36633
36634 #include <sys/types.h>
36635 #include <sys/socket.h>
36636
36637int
36638main ()
36639{
36640
36641 size_t len;
36642 getsockname(0, 0, &len);
36643
36644 ;
36645 return 0;
36646}
36647_ACEOF
36648rm -f conftest.$ac_objext
36649if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 36650 (eval $ac_compile) 2>conftest.er1
a848cd7e 36651 ac_status=$?
ac1cb8d3
VS
36652 grep -v '^ *+' conftest.er1 >conftest.err
36653 rm -f conftest.er1
36654 cat conftest.err >&5
a848cd7e
SC
36655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36656 (exit $ac_status); } &&
89be85c2
VS
36657 { ac_try='test -z "$ac_cxx_werror_flag"
36658 || test ! -s conftest.err'
ac1cb8d3
VS
36659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36660 (eval $ac_try) 2>&5
36661 ac_status=$?
36662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36663 (exit $ac_status); }; } &&
36664 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
36665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36666 (eval $ac_try) 2>&5
36667 ac_status=$?
36668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36669 (exit $ac_status); }; }; then
36670 wx_cv_type_getsockname3=size_t
36671else
36672 echo "$as_me: failed program was:" >&5
36673sed 's/^/| /' conftest.$ac_ext >&5
36674
36675cat >conftest.$ac_ext <<_ACEOF
36676/* confdefs.h. */
36677_ACEOF
36678cat confdefs.h >>conftest.$ac_ext
36679cat >>conftest.$ac_ext <<_ACEOF
36680/* end confdefs.h. */
36681
36682 #include <sys/types.h>
36683 #include <sys/socket.h>
36684
36685int
36686main ()
36687{
36688
36689 int len;
36690 getsockname(0, 0, &len);
36691
36692 ;
36693 return 0;
36694}
36695_ACEOF
36696rm -f conftest.$ac_objext
36697if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 36698 (eval $ac_compile) 2>conftest.er1
a848cd7e 36699 ac_status=$?
ac1cb8d3
VS
36700 grep -v '^ *+' conftest.er1 >conftest.err
36701 rm -f conftest.er1
36702 cat conftest.err >&5
a848cd7e
SC
36703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36704 (exit $ac_status); } &&
89be85c2
VS
36705 { ac_try='test -z "$ac_cxx_werror_flag"
36706 || test ! -s conftest.err'
ac1cb8d3
VS
36707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36708 (eval $ac_try) 2>&5
36709 ac_status=$?
36710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36711 (exit $ac_status); }; } &&
36712 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
36713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36714 (eval $ac_try) 2>&5
36715 ac_status=$?
36716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36717 (exit $ac_status); }; }; then
36718 wx_cv_type_getsockname3=int
36719else
36720 echo "$as_me: failed program was:" >&5
36721sed 's/^/| /' conftest.$ac_ext >&5
36722
36723wx_cv_type_getsockname3=unknown
36724
36725fi
ac1cb8d3 36726rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
36727
36728fi
ac1cb8d3 36729rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
36730
36731 CFLAGS="$CFLAGS_OLD"
36732
36733
36734fi
ac1cb8d3 36735rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
36736
36737fi
36738echo "$as_me:$LINENO: result: $wx_cv_type_getsockname3" >&5
36739echo "${ECHO_T}$wx_cv_type_getsockname3" >&6
36740
36741 if test "$wx_cv_type_getsockname3" = "unknown"; then
36742 wxUSE_SOCKETS=no
36743 { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5
36744echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;}
36745 else
36746 cat >>confdefs.h <<_ACEOF
36747#define SOCKLEN_T $wx_cv_type_getsockname3
5b674b9d
DE
36748_ACEOF
36749
36750 fi
36751 echo "$as_me:$LINENO: checking what is the type of the fifth argument of getsockopt" >&5
36752echo $ECHO_N "checking what is the type of the fifth argument of getsockopt... $ECHO_C" >&6
36753if test "${wx_cv_type_getsockopt5+set}" = set; then
36754 echo $ECHO_N "(cached) $ECHO_C" >&6
36755else
36756
36757 cat >conftest.$ac_ext <<_ACEOF
36758/* confdefs.h. */
36759_ACEOF
36760cat confdefs.h >>conftest.$ac_ext
36761cat >>conftest.$ac_ext <<_ACEOF
36762/* end confdefs.h. */
36763
36764 #include <sys/types.h>
36765 #include <sys/socket.h>
36766
36767int
36768main ()
36769{
36770
36771 socklen_t len;
36772 getsockopt(0, 0, 0, 0, &len);
36773
36774 ;
36775 return 0;
36776}
36777_ACEOF
36778rm -f conftest.$ac_objext
36779if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36780 (eval $ac_compile) 2>conftest.er1
36781 ac_status=$?
36782 grep -v '^ *+' conftest.er1 >conftest.err
36783 rm -f conftest.er1
36784 cat conftest.err >&5
36785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36786 (exit $ac_status); } &&
89be85c2
VS
36787 { ac_try='test -z "$ac_cxx_werror_flag"
36788 || test ! -s conftest.err'
5b674b9d
DE
36789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36790 (eval $ac_try) 2>&5
36791 ac_status=$?
36792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36793 (exit $ac_status); }; } &&
36794 { ac_try='test -s conftest.$ac_objext'
36795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36796 (eval $ac_try) 2>&5
36797 ac_status=$?
36798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36799 (exit $ac_status); }; }; then
36800 wx_cv_type_getsockopt5=socklen_t
36801else
36802 echo "$as_me: failed program was:" >&5
36803sed 's/^/| /' conftest.$ac_ext >&5
36804
36805
36806 CFLAGS_OLD="$CFLAGS"
36807 if test "$GCC" = yes ; then
36808 CFLAGS="$CFLAGS -Werror"
36809 fi
36810
36811 cat >conftest.$ac_ext <<_ACEOF
36812/* confdefs.h. */
36813_ACEOF
36814cat confdefs.h >>conftest.$ac_ext
36815cat >>conftest.$ac_ext <<_ACEOF
36816/* end confdefs.h. */
36817
36818 #include <sys/types.h>
36819 #include <sys/socket.h>
36820
36821int
36822main ()
36823{
36824
36825 size_t len;
36826 getsockopt(0, 0, 0, 0, &len);
36827
36828 ;
36829 return 0;
36830}
36831_ACEOF
36832rm -f conftest.$ac_objext
36833if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36834 (eval $ac_compile) 2>conftest.er1
36835 ac_status=$?
36836 grep -v '^ *+' conftest.er1 >conftest.err
36837 rm -f conftest.er1
36838 cat conftest.err >&5
36839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36840 (exit $ac_status); } &&
89be85c2
VS
36841 { ac_try='test -z "$ac_cxx_werror_flag"
36842 || test ! -s conftest.err'
5b674b9d
DE
36843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36844 (eval $ac_try) 2>&5
36845 ac_status=$?
36846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36847 (exit $ac_status); }; } &&
36848 { ac_try='test -s conftest.$ac_objext'
36849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36850 (eval $ac_try) 2>&5
36851 ac_status=$?
36852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36853 (exit $ac_status); }; }; then
36854 wx_cv_type_getsockopt5=size_t
36855else
36856 echo "$as_me: failed program was:" >&5
36857sed 's/^/| /' conftest.$ac_ext >&5
36858
36859cat >conftest.$ac_ext <<_ACEOF
36860/* confdefs.h. */
36861_ACEOF
36862cat confdefs.h >>conftest.$ac_ext
36863cat >>conftest.$ac_ext <<_ACEOF
36864/* end confdefs.h. */
36865
36866 #include <sys/types.h>
36867 #include <sys/socket.h>
36868
36869int
36870main ()
36871{
36872
36873 int len;
36874 getsockopt(0, 0, 0, 0, &len);
36875
36876 ;
36877 return 0;
36878}
36879_ACEOF
36880rm -f conftest.$ac_objext
36881if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36882 (eval $ac_compile) 2>conftest.er1
36883 ac_status=$?
36884 grep -v '^ *+' conftest.er1 >conftest.err
36885 rm -f conftest.er1
36886 cat conftest.err >&5
36887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36888 (exit $ac_status); } &&
89be85c2
VS
36889 { ac_try='test -z "$ac_cxx_werror_flag"
36890 || test ! -s conftest.err'
5b674b9d
DE
36891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36892 (eval $ac_try) 2>&5
36893 ac_status=$?
36894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36895 (exit $ac_status); }; } &&
36896 { ac_try='test -s conftest.$ac_objext'
36897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36898 (eval $ac_try) 2>&5
36899 ac_status=$?
36900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36901 (exit $ac_status); }; }; then
36902 wx_cv_type_getsockopt5=int
36903else
36904 echo "$as_me: failed program was:" >&5
36905sed 's/^/| /' conftest.$ac_ext >&5
36906
36907wx_cv_type_getsockopt5=unknown
36908
36909fi
36910rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36911
36912fi
36913rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36914
36915 CFLAGS="$CFLAGS_OLD"
36916
36917
36918fi
36919rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36920
36921fi
36922echo "$as_me:$LINENO: result: $wx_cv_type_getsockopt5" >&5
36923echo "${ECHO_T}$wx_cv_type_getsockopt5" >&6
36924
36925 if test "$wx_cv_type_getsockopt5" = "unknown"; then
36926 wxUSE_SOCKETS=no
36927 { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5
36928echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;}
36929 else
36930 cat >>confdefs.h <<_ACEOF
36931#define SOCKOPTLEN_T $wx_cv_type_getsockopt5
a848cd7e
SC
36932_ACEOF
36933
36934 fi
4d4ff94c
VZ
36935 ac_ext=c
36936ac_cpp='$CPP $CPPFLAGS'
36937ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36938ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36939ac_compiler_gnu=$ac_cv_c_compiler_gnu
36940
a848cd7e
SC
36941 fi
36942fi
36943
36944if test "$wxUSE_SOCKETS" = "yes" ; then
36945 cat >>confdefs.h <<\_ACEOF
36946#define wxUSE_SOCKETS 1
36947_ACEOF
36948
36949 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets"
36950fi
36951
36952if test "$wxUSE_PROTOCOL" = "yes"; then
36953 if test "$wxUSE_SOCKETS" != "yes"; then
36954 { echo "$as_me:$LINENO: WARNING: Protocol classes require sockets... disabled" >&5
36955echo "$as_me: WARNING: Protocol classes require sockets... disabled" >&2;}
36956 wxUSE_PROTOCOL=no
36957 fi
36958fi
36959
36960if test "$wxUSE_PROTOCOL" = "yes"; then
36961 cat >>confdefs.h <<\_ACEOF
36962#define wxUSE_PROTOCOL 1
36963_ACEOF
36964
36965
36966 if test "$wxUSE_PROTOCOL_HTTP" = "yes"; then
36967 cat >>confdefs.h <<\_ACEOF
36968#define wxUSE_PROTOCOL_HTTP 1
36969_ACEOF
36970
36971 fi
36972 if test "$wxUSE_PROTOCOL_FTP" = "yes"; then
36973 cat >>confdefs.h <<\_ACEOF
36974#define wxUSE_PROTOCOL_FTP 1
36975_ACEOF
36976
36977 fi
36978 if test "$wxUSE_PROTOCOL_FILE" = "yes"; then
36979 cat >>confdefs.h <<\_ACEOF
36980#define wxUSE_PROTOCOL_FILE 1
36981_ACEOF
36982
36983 fi
36984else
36985 if test "$wxUSE_FS_INET" = "yes"; then
36986 { echo "$as_me:$LINENO: WARNING: HTTP filesystem require protocol classes... disabled" >&5
36987echo "$as_me: WARNING: HTTP filesystem require protocol classes... disabled" >&2;}
36988 wxUSE_FS_INET="no"
36989 fi
36990fi
36991
36992if test "$wxUSE_URL" = "yes"; then
36993 if test "$wxUSE_PROTOCOL" != "yes"; then
36994 { echo "$as_me:$LINENO: WARNING: wxURL class requires wxProtocol... disabled" >&5
36995echo "$as_me: WARNING: wxURL class requires wxProtocol... disabled" >&2;}
36996 wxUSE_URL=no
36997 fi
36998 if test "$wxUSE_URL" = "yes"; then
36999 cat >>confdefs.h <<\_ACEOF
37000#define wxUSE_URL 1
37001_ACEOF
37002
37003 fi
37004fi
37005
37006if test "$wxUSE_FS_INET" = "yes"; then
37007 cat >>confdefs.h <<\_ACEOF
37008#define wxUSE_FS_INET 1
37009_ACEOF
37010
37011fi
37012
37013
37014if test "$wxUSE_GUI" = "yes"; then
37015
37016 if test "$TOOLKIT" = "MAC" -o "$TOOLKIT" = "COCOA"; then
37017 { echo "$as_me:$LINENO: WARNING: Joystick not yet supported under Mac OS X... disabled" >&5
37018echo "$as_me: WARNING: Joystick not yet supported under Mac OS X... disabled" >&2;}
37019 wxUSE_JOYSTICK=no
37020 fi
37021
37022 if test "$TOOLKIT" != "MSW"; then
37023 if test "$wxUSE_JOYSTICK" = "yes"; then
37024
37025for ac_header in linux/joystick.h
37026do
37027as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
37028if eval "test \"\${$as_ac_Header+set}\" = set"; then
37029 echo "$as_me:$LINENO: checking for $ac_header" >&5
37030echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
37031if eval "test \"\${$as_ac_Header+set}\" = set"; then
37032 echo $ECHO_N "(cached) $ECHO_C" >&6
37033fi
37034echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
37035echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
37036else
37037 # Is the header compilable?
37038echo "$as_me:$LINENO: checking $ac_header usability" >&5
37039echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
37040cat >conftest.$ac_ext <<_ACEOF
37041/* confdefs.h. */
37042_ACEOF
37043cat confdefs.h >>conftest.$ac_ext
37044cat >>conftest.$ac_ext <<_ACEOF
37045/* end confdefs.h. */
37046$ac_includes_default
37047#include <$ac_header>
37048_ACEOF
37049rm -f conftest.$ac_objext
37050if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 37051 (eval $ac_compile) 2>conftest.er1
a848cd7e 37052 ac_status=$?
ac1cb8d3
VS
37053 grep -v '^ *+' conftest.er1 >conftest.err
37054 rm -f conftest.er1
37055 cat conftest.err >&5
a848cd7e
SC
37056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37057 (exit $ac_status); } &&
89be85c2
VS
37058 { ac_try='test -z "$ac_c_werror_flag"
37059 || test ! -s conftest.err'
ac1cb8d3
VS
37060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37061 (eval $ac_try) 2>&5
37062 ac_status=$?
37063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37064 (exit $ac_status); }; } &&
37065 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
37066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37067 (eval $ac_try) 2>&5
37068 ac_status=$?
37069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37070 (exit $ac_status); }; }; then
37071 ac_header_compiler=yes
37072else
37073 echo "$as_me: failed program was:" >&5
37074sed 's/^/| /' conftest.$ac_ext >&5
37075
37076ac_header_compiler=no
37077fi
ac1cb8d3 37078rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
37079echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
37080echo "${ECHO_T}$ac_header_compiler" >&6
37081
37082# Is the header present?
37083echo "$as_me:$LINENO: checking $ac_header presence" >&5
37084echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
37085cat >conftest.$ac_ext <<_ACEOF
37086/* confdefs.h. */
37087_ACEOF
37088cat confdefs.h >>conftest.$ac_ext
37089cat >>conftest.$ac_ext <<_ACEOF
37090/* end confdefs.h. */
37091#include <$ac_header>
37092_ACEOF
37093if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
37094 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
37095 ac_status=$?
37096 grep -v '^ *+' conftest.er1 >conftest.err
37097 rm -f conftest.er1
37098 cat conftest.err >&5
37099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37100 (exit $ac_status); } >/dev/null; then
37101 if test -s conftest.err; then
37102 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 37103 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
37104 else
37105 ac_cpp_err=
37106 fi
37107else
37108 ac_cpp_err=yes
37109fi
37110if test -z "$ac_cpp_err"; then
37111 ac_header_preproc=yes
37112else
37113 echo "$as_me: failed program was:" >&5
37114sed 's/^/| /' conftest.$ac_ext >&5
37115
37116 ac_header_preproc=no
37117fi
37118rm -f conftest.err conftest.$ac_ext
37119echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
37120echo "${ECHO_T}$ac_header_preproc" >&6
37121
37122# So? What about this header?
ac1cb8d3
VS
37123case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
37124 yes:no: )
a848cd7e
SC
37125 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
37126echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
37127 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
37128echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
37129 ac_header_preproc=yes
a848cd7e 37130 ;;
ac1cb8d3 37131 no:yes:* )
a848cd7e
SC
37132 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
37133echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
37134 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
37135echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
37136 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
37137echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
37138 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
37139echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
37140 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
37141echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
37142 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
37143echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
37144 (
37145 cat <<\_ASBOX
ac1cb8d3
VS
37146## ----------------------------------------- ##
37147## Report this to wx-dev@lists.wxwidgets.org ##
37148## ----------------------------------------- ##
a848cd7e
SC
37149_ASBOX
37150 ) |
37151 sed "s/^/$as_me: WARNING: /" >&2
37152 ;;
37153esac
37154echo "$as_me:$LINENO: checking for $ac_header" >&5
37155echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
37156if eval "test \"\${$as_ac_Header+set}\" = set"; then
37157 echo $ECHO_N "(cached) $ECHO_C" >&6
37158else
ac1cb8d3 37159 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
37160fi
37161echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
37162echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
37163
37164fi
37165if test `eval echo '${'$as_ac_Header'}'` = yes; then
37166 cat >>confdefs.h <<_ACEOF
37167#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
37168_ACEOF
37169
37170fi
37171
37172done
37173
37174 if test "$ac_cv_header_linux_joystick_h" != "yes"; then
37175 wxUSE_JOYSTICK=no
37176 { echo "$as_me:$LINENO: WARNING: Joystick not supported by this system... disabled" >&5
37177echo "$as_me: WARNING: Joystick not supported by this system... disabled" >&2;}
37178 fi
37179 fi
37180 fi
37181
37182 if test "$wxUSE_JOYSTICK" = "yes"; then
37183 cat >>confdefs.h <<\_ACEOF
37184#define wxUSE_JOYSTICK 1
37185_ACEOF
37186
37187 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest"
37188 fi
37189fi
37190
37191
37192
37193if test "$wxUSE_FONTMAP" = "yes" ; then
37194 cat >>confdefs.h <<\_ACEOF
37195#define wxUSE_FONTMAP 1
37196_ACEOF
37197
37198fi
37199
37200if test "$wxUSE_UNICODE" = "yes" ; then
37201 cat >>confdefs.h <<\_ACEOF
37202#define wxUSE_UNICODE 1
37203_ACEOF
37204
37205
37206 if test "$USE_WIN32" != 1; then
37207 wxUSE_UNICODE_MSLU=no
37208 fi
37209
37210 if test "$USE_WIN32" = 1 -a "$wxUSE_UNICODE_MSLU" = "yes"; then
37211 echo "$as_me:$LINENO: checking for main in -lunicows" >&5
37212echo $ECHO_N "checking for main in -lunicows... $ECHO_C" >&6
37213if test "${ac_cv_lib_unicows_main+set}" = set; then
37214 echo $ECHO_N "(cached) $ECHO_C" >&6
37215else
37216 ac_check_lib_save_LIBS=$LIBS
37217LIBS="-lunicows $LIBS"
37218cat >conftest.$ac_ext <<_ACEOF
37219/* confdefs.h. */
37220_ACEOF
37221cat confdefs.h >>conftest.$ac_ext
37222cat >>conftest.$ac_ext <<_ACEOF
37223/* end confdefs.h. */
37224
37225
37226int
37227main ()
37228{
37229main ();
37230 ;
37231 return 0;
37232}
37233_ACEOF
37234rm -f conftest.$ac_objext conftest$ac_exeext
37235if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37236 (eval $ac_link) 2>conftest.er1
a848cd7e 37237 ac_status=$?
ac1cb8d3
VS
37238 grep -v '^ *+' conftest.er1 >conftest.err
37239 rm -f conftest.er1
37240 cat conftest.err >&5
a848cd7e
SC
37241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37242 (exit $ac_status); } &&
89be85c2
VS
37243 { ac_try='test -z "$ac_c_werror_flag"
37244 || test ! -s conftest.err'
ac1cb8d3
VS
37245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37246 (eval $ac_try) 2>&5
37247 ac_status=$?
37248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37249 (exit $ac_status); }; } &&
37250 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37252 (eval $ac_try) 2>&5
37253 ac_status=$?
37254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37255 (exit $ac_status); }; }; then
37256 ac_cv_lib_unicows_main=yes
37257else
37258 echo "$as_me: failed program was:" >&5
37259sed 's/^/| /' conftest.$ac_ext >&5
37260
37261ac_cv_lib_unicows_main=no
37262fi
ac1cb8d3
VS
37263rm -f conftest.err conftest.$ac_objext \
37264 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37265LIBS=$ac_check_lib_save_LIBS
37266fi
37267echo "$as_me:$LINENO: result: $ac_cv_lib_unicows_main" >&5
37268echo "${ECHO_T}$ac_cv_lib_unicows_main" >&6
37269if test $ac_cv_lib_unicows_main = yes; then
37270
37271 cat >>confdefs.h <<\_ACEOF
37272#define wxUSE_UNICODE_MSLU 1
37273_ACEOF
37274
37275
37276else
37277
37278 { echo "$as_me:$LINENO: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
37279 Applications will only run on Windows NT/2000/XP!" >&5
37280echo "$as_me: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
37281 Applications will only run on Windows NT/2000/XP!" >&2;}
37282 wxUSE_UNICODE_MSLU=no
37283
37284fi
37285
37286 fi
37287fi
37288
37289if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then
37290 cat >>confdefs.h <<\_ACEOF
37291#define wxUSE_EXPERIMENTAL_PRINTF 1
37292_ACEOF
37293
37294fi
37295
37296
37297if test "$wxUSE_POSTSCRIPT" = "yes" ; then
37298 cat >>confdefs.h <<\_ACEOF
37299#define wxUSE_POSTSCRIPT 1
37300_ACEOF
37301
37302fi
37303
37304cat >>confdefs.h <<\_ACEOF
37305#define wxUSE_AFM_FOR_POSTSCRIPT 1
37306_ACEOF
37307
37308
37309cat >>confdefs.h <<\_ACEOF
37310#define wxUSE_NORMALIZED_PS_FONTS 1
37311_ACEOF
37312
37313
37314
37315if test "$wxUSE_CONSTRAINTS" = "yes"; then
37316 cat >>confdefs.h <<\_ACEOF
37317#define wxUSE_CONSTRAINTS 1
37318_ACEOF
37319
37320 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout"
37321fi
37322
8a7b1113
VZ
37323if test "$wxUSE_MDI" = "yes"; then
37324 cat >>confdefs.h <<\_ACEOF
37325#define wxUSE_MDI 1
37326_ACEOF
37327
37328
37329 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
37330 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
37331#define wxUSE_MDI_ARCHITECTURE 1
37332_ACEOF
37333
8a7b1113
VZ
37334 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi"
37335 fi
a848cd7e
SC
37336fi
37337
37338if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then
37339 cat >>confdefs.h <<\_ACEOF
37340#define wxUSE_DOC_VIEW_ARCHITECTURE 1
37341_ACEOF
37342
37343 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview"
37344 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
37345 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi"
37346 fi
37347fi
37348
37349if test "$wxUSE_HELP" = "yes"; then
37350 cat >>confdefs.h <<\_ACEOF
37351#define wxUSE_HELP 1
37352_ACEOF
37353
37354 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help"
37355
37356 if test "$wxUSE_MSW" = 1; then
37357 if test "$wxUSE_MS_HTML_HELP" = "yes"; then
37358 cat >>confdefs.h <<\_ACEOF
37359#define wxUSE_MS_HTML_HELP 1
37360_ACEOF
37361
37362 fi
37363 fi
37364
37365 if test "$wxUSE_WXHTML_HELP" = "yes"; then
37366 if test "$wxUSE_HTML" = "yes"; then
37367 cat >>confdefs.h <<\_ACEOF
37368#define wxUSE_WXHTML_HELP 1
37369_ACEOF
37370
37371 else
37372 { echo "$as_me:$LINENO: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&5
37373echo "$as_me: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&2;}
37374 wxUSE_WXHTML_HELP=no
37375 fi
37376 fi
37377fi
37378
37379if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
37380 if test "$wxUSE_CONSTRAINTS" != "yes"; then
37381 { echo "$as_me:$LINENO: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&5
37382echo "$as_me: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&2;}
37383 else
37384 cat >>confdefs.h <<\_ACEOF
37385#define wxUSE_PRINTING_ARCHITECTURE 1
37386_ACEOF
37387
37388 fi
37389 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing"
37390fi
37391
37392if test "$wxUSE_PROLOGIO" = "yes" -o "$wxUSE_RESOURCES" = "yes"; then
37393 { { echo "$as_me:$LINENO: error: wxExpr and old-style resources are now available in contrib only" >&5
37394echo "$as_me: error: wxExpr and old-style resources are now available in contrib only" >&2;}
37395 { (exit 1); exit 1; }; }
37396fi
37397
37398
37399if test "$USE_WIN32" = 1 -a \( "$wxUSE_DATAOBJ" = "yes" \
37400 -o "$wxUSE_CLIPBOARD" = "yes" \
37401 -o "$wxUSE_OLE" = "yes" \
37402 -o "$wxUSE_DRAG_AND_DROP" = "yes" \) ; then
37403
37404for ac_header in ole2.h
37405do
37406as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
37407if eval "test \"\${$as_ac_Header+set}\" = set"; then
37408 echo "$as_me:$LINENO: checking for $ac_header" >&5
37409echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
37410if eval "test \"\${$as_ac_Header+set}\" = set"; then
37411 echo $ECHO_N "(cached) $ECHO_C" >&6
37412fi
37413echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
37414echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
37415else
37416 # Is the header compilable?
37417echo "$as_me:$LINENO: checking $ac_header usability" >&5
37418echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
37419cat >conftest.$ac_ext <<_ACEOF
37420/* confdefs.h. */
37421_ACEOF
37422cat confdefs.h >>conftest.$ac_ext
37423cat >>conftest.$ac_ext <<_ACEOF
37424/* end confdefs.h. */
37425$ac_includes_default
37426#include <$ac_header>
37427_ACEOF
37428rm -f conftest.$ac_objext
37429if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 37430 (eval $ac_compile) 2>conftest.er1
a848cd7e 37431 ac_status=$?
ac1cb8d3
VS
37432 grep -v '^ *+' conftest.er1 >conftest.err
37433 rm -f conftest.er1
37434 cat conftest.err >&5
a848cd7e
SC
37435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37436 (exit $ac_status); } &&
89be85c2
VS
37437 { ac_try='test -z "$ac_c_werror_flag"
37438 || test ! -s conftest.err'
ac1cb8d3
VS
37439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37440 (eval $ac_try) 2>&5
37441 ac_status=$?
37442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37443 (exit $ac_status); }; } &&
37444 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
37445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37446 (eval $ac_try) 2>&5
37447 ac_status=$?
37448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37449 (exit $ac_status); }; }; then
37450 ac_header_compiler=yes
37451else
37452 echo "$as_me: failed program was:" >&5
37453sed 's/^/| /' conftest.$ac_ext >&5
37454
37455ac_header_compiler=no
37456fi
ac1cb8d3 37457rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
37458echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
37459echo "${ECHO_T}$ac_header_compiler" >&6
37460
37461# Is the header present?
37462echo "$as_me:$LINENO: checking $ac_header presence" >&5
37463echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
37464cat >conftest.$ac_ext <<_ACEOF
37465/* confdefs.h. */
37466_ACEOF
37467cat confdefs.h >>conftest.$ac_ext
37468cat >>conftest.$ac_ext <<_ACEOF
37469/* end confdefs.h. */
37470#include <$ac_header>
37471_ACEOF
37472if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
37473 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
37474 ac_status=$?
37475 grep -v '^ *+' conftest.er1 >conftest.err
37476 rm -f conftest.er1
37477 cat conftest.err >&5
37478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37479 (exit $ac_status); } >/dev/null; then
37480 if test -s conftest.err; then
37481 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 37482 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
37483 else
37484 ac_cpp_err=
37485 fi
37486else
37487 ac_cpp_err=yes
37488fi
37489if test -z "$ac_cpp_err"; then
37490 ac_header_preproc=yes
37491else
37492 echo "$as_me: failed program was:" >&5
37493sed 's/^/| /' conftest.$ac_ext >&5
37494
37495 ac_header_preproc=no
37496fi
37497rm -f conftest.err conftest.$ac_ext
37498echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
37499echo "${ECHO_T}$ac_header_preproc" >&6
37500
37501# So? What about this header?
ac1cb8d3
VS
37502case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
37503 yes:no: )
a848cd7e
SC
37504 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
37505echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
37506 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
37507echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
37508 ac_header_preproc=yes
a848cd7e 37509 ;;
ac1cb8d3 37510 no:yes:* )
a848cd7e
SC
37511 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
37512echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
37513 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
37514echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
37515 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
37516echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
37517 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
37518echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
37519 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
37520echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
37521 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
37522echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
37523 (
37524 cat <<\_ASBOX
ac1cb8d3
VS
37525## ----------------------------------------- ##
37526## Report this to wx-dev@lists.wxwidgets.org ##
37527## ----------------------------------------- ##
a848cd7e
SC
37528_ASBOX
37529 ) |
37530 sed "s/^/$as_me: WARNING: /" >&2
37531 ;;
37532esac
37533echo "$as_me:$LINENO: checking for $ac_header" >&5
37534echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
37535if eval "test \"\${$as_ac_Header+set}\" = set"; then
37536 echo $ECHO_N "(cached) $ECHO_C" >&6
37537else
ac1cb8d3 37538 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
37539fi
37540echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
37541echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
37542
37543fi
37544if test `eval echo '${'$as_ac_Header'}'` = yes; then
37545 cat >>confdefs.h <<_ACEOF
37546#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
37547_ACEOF
37548
37549fi
37550
37551done
37552
37553
37554 if test "$ac_cv_header_ole2_h" = "yes" ; then
37555 if test "$GCC" = yes ; then
37556
37557
37558 ac_ext=cc
37559ac_cpp='$CXXCPP $CPPFLAGS'
37560ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37561ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37562ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
37563
37564
37565 echo "$as_me:$LINENO: checking if g++ requires -fvtable-thunks" >&5
37566echo $ECHO_N "checking if g++ requires -fvtable-thunks... $ECHO_C" >&6
37567 cat >conftest.$ac_ext <<_ACEOF
37568/* confdefs.h. */
37569_ACEOF
37570cat confdefs.h >>conftest.$ac_ext
37571cat >>conftest.$ac_ext <<_ACEOF
37572/* end confdefs.h. */
37573#include <windows.h>
37574 #include <ole2.h>
37575int
37576main ()
37577{
37578
37579 ;
37580 return 0;
37581}
37582_ACEOF
37583rm -f conftest.$ac_objext
37584if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 37585 (eval $ac_compile) 2>conftest.er1
a848cd7e 37586 ac_status=$?
ac1cb8d3
VS
37587 grep -v '^ *+' conftest.er1 >conftest.err
37588 rm -f conftest.er1
37589 cat conftest.err >&5
a848cd7e
SC
37590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37591 (exit $ac_status); } &&
89be85c2
VS
37592 { ac_try='test -z "$ac_cxx_werror_flag"
37593 || test ! -s conftest.err'
ac1cb8d3
VS
37594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37595 (eval $ac_try) 2>&5
37596 ac_status=$?
37597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37598 (exit $ac_status); }; } &&
37599 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
37600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37601 (eval $ac_try) 2>&5
37602 ac_status=$?
37603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37604 (exit $ac_status); }; }; then
37605 echo "$as_me:$LINENO: result: no" >&5
37606echo "${ECHO_T}no" >&6
37607else
37608 echo "$as_me: failed program was:" >&5
37609sed 's/^/| /' conftest.$ac_ext >&5
37610
37611echo "$as_me:$LINENO: result: yes" >&5
37612echo "${ECHO_T}yes" >&6
37613 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fvtable-thunks"
37614fi
ac1cb8d3 37615rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
37616 ac_ext=c
37617ac_cpp='$CPP $CPPFLAGS'
37618ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37619ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37620ac_compiler_gnu=$ac_cv_c_compiler_gnu
37621
a848cd7e
SC
37622 LIBS=" -lrpcrt4 -loleaut32 -lole32 -luuid$LIBS"
37623 if test "$wxUSE_OLE" = "yes" ; then
37624 cat >>confdefs.h <<\_ACEOF
37625#define wxUSE_OLE 1
37626_ACEOF
37627
37628 fi
37629 fi
37630
37631 if test "$wxUSE_DATAOBJ" = "yes" ; then
37632 cat >>confdefs.h <<\_ACEOF
37633#define wxUSE_DATAOBJ 1
37634_ACEOF
37635
37636 fi
37637 else
37638 { echo "$as_me:$LINENO: WARNING: Some features disabled because OLE headers not found" >&5
37639echo "$as_me: WARNING: Some features disabled because OLE headers not found" >&2;}
37640
37641 wxUSE_CLIPBOARD=no
37642 wxUSE_DRAG_AND_DROP=no
37643 wxUSE_DATAOBJ=no
37644 wxUSE_OLE=no
37645 fi
37646
37647 if test "$wxUSE_METAFILE" = "yes"; then
37648 cat >>confdefs.h <<\_ACEOF
37649#define wxUSE_METAFILE 1
37650_ACEOF
37651
37652
37653 cat >>confdefs.h <<\_ACEOF
37654#define wxUSE_ENH_METAFILE 1
37655_ACEOF
37656
37657 fi
37658fi
37659
37660if test "$wxUSE_IPC" = "yes"; then
37661 if test "$wxUSE_SOCKETS" != "yes"; then
77ffb593
JS
37662 { echo "$as_me:$LINENO: WARNING: wxWidgets IPC classes require sockets... disabled" >&5
37663echo "$as_me: WARNING: wxWidgets IPC classes require sockets... disabled" >&2;}
a848cd7e
SC
37664 fi
37665
37666 cat >>confdefs.h <<\_ACEOF
37667#define wxUSE_IPC 1
37668_ACEOF
37669
37670fi
37671
37672if test "$wxUSE_CLIPBOARD" = "yes"; then
37673 if test "$wxUSE_MGL" = 1; then
37674 { echo "$as_me:$LINENO: WARNING: Clipboard not yet supported under MGL... disabled" >&5
37675echo "$as_me: WARNING: Clipboard not yet supported under MGL... disabled" >&2;}
37676 wxUSE_CLIPBOARD=no
37677 fi
37678
37679 if test "$wxUSE_CLIPBOARD" = "yes"; then
37680 cat >>confdefs.h <<\_ACEOF
37681#define wxUSE_CLIPBOARD 1
37682_ACEOF
37683
37684
37685 cat >>confdefs.h <<\_ACEOF
37686#define wxUSE_DATAOBJ 1
37687_ACEOF
37688
37689 fi
37690fi
37691
37692if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then
37693 if test "$wxUSE_GTK" = 1; then
37694 if test "$WXGTK12" != 1; then
37695 { echo "$as_me:$LINENO: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&5
37696echo "$as_me: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&2;}
37697 wxUSE_DRAG_AND_DROP=no
37698 fi
37699 fi
37700
37701 if test "$wxUSE_MOTIF" = 1; then
37702 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under Motif... disabled" >&5
37703echo "$as_me: WARNING: Drag and drop not yet supported under Motif... disabled" >&2;}
37704 wxUSE_DRAG_AND_DROP=no
37705 fi
37706
37707 if test "$wxUSE_X11" = 1; then
37708 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under X11... disabled" >&5
37709echo "$as_me: WARNING: Drag and drop not yet supported under X11... disabled" >&2;}
37710 wxUSE_DRAG_AND_DROP=no
37711 fi
37712
37713 if test "$wxUSE_MGL" = 1; then
37714 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under MGL... disabled" >&5
37715echo "$as_me: WARNING: Drag and drop not yet supported under MGL... disabled" >&2;}
37716 wxUSE_DRAG_AND_DROP=no
37717 fi
37718
37719 if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
37720 cat >>confdefs.h <<\_ACEOF
37721#define wxUSE_DRAG_AND_DROP 1
37722_ACEOF
37723
37724 fi
37725
37726fi
37727
37728if test "$wxUSE_DRAG_AND_DROP" = "yes" -o "$wxUSE_CLIPBOARD" = "yes"; then
37729 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd"
37730fi
37731
37732if test "$wxUSE_SPLINES" = "yes" ; then
37733 cat >>confdefs.h <<\_ACEOF
37734#define wxUSE_SPLINES 1
37735_ACEOF
37736
37737fi
37738
37739
37740USES_CONTROLS=0
37741if test "$wxUSE_CONTROLS" = "yes"; then
37742 USES_CONTROLS=1
37743fi
37744
37745if test "$wxUSE_ACCEL" = "yes"; then
37746 cat >>confdefs.h <<\_ACEOF
37747#define wxUSE_ACCEL 1
37748_ACEOF
37749
37750 USES_CONTROLS=1
37751fi
37752
37753if test "$wxUSE_BUTTON" = "yes"; then
37754 cat >>confdefs.h <<\_ACEOF
37755#define wxUSE_BUTTON 1
37756_ACEOF
37757
37758 USES_CONTROLS=1
37759fi
37760
37761if test "$wxUSE_BMPBUTTON" = "yes"; then
37762 cat >>confdefs.h <<\_ACEOF
37763#define wxUSE_BMPBUTTON 1
37764_ACEOF
37765
37766 USES_CONTROLS=1
37767fi
37768
37769if test "$wxUSE_CALCTRL" = "yes"; then
37770 cat >>confdefs.h <<\_ACEOF
37771#define wxUSE_CALENDARCTRL 1
37772_ACEOF
37773
37774 USES_CONTROLS=1
37775 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar"
37776fi
37777
37778if test "$wxUSE_CARET" = "yes"; then
37779 cat >>confdefs.h <<\_ACEOF
37780#define wxUSE_CARET 1
37781_ACEOF
37782
37783 USES_CONTROLS=1
37784 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret"
37785fi
37786
37787if test "$wxUSE_COMBOBOX" = "yes"; then
37788 cat >>confdefs.h <<\_ACEOF
37789#define wxUSE_COMBOBOX 1
37790_ACEOF
37791
37792 USES_CONTROLS=1
37793fi
37794
37795if test "$wxUSE_CHOICE" = "yes"; then
37796 cat >>confdefs.h <<\_ACEOF
37797#define wxUSE_CHOICE 1
37798_ACEOF
37799
37800 USES_CONTROLS=1
37801fi
37802
92bbdbcd
WS
37803if test "$wxUSE_CHOICEBOOK" = "yes"; then
37804 cat >>confdefs.h <<\_ACEOF
37805#define wxUSE_CHOICEBOOK 1
37806_ACEOF
37807
37808 USES_CONTROLS=1
37809fi
37810
a848cd7e
SC
37811if test "$wxUSE_CHECKBOX" = "yes"; then
37812 cat >>confdefs.h <<\_ACEOF
37813#define wxUSE_CHECKBOX 1
37814_ACEOF
37815
37816 USES_CONTROLS=1
37817fi
37818
37819if test "$wxUSE_CHECKLST" = "yes"; then
37820 cat >>confdefs.h <<\_ACEOF
37821#define wxUSE_CHECKLISTBOX 1
37822_ACEOF
37823
37824 USES_CONTROLS=1
37825 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst"
37826fi
37827
da98e9be
VZ
37828if test "$wxUSE_DATEPICKCTRL" = "yes"; then
37829 cat >>confdefs.h <<\_ACEOF
37830#define wxUSE_DATEPICKCTRL 1
37831_ACEOF
37832
37833 USES_CONTROLS=1
37834fi
37835
a848cd7e
SC
37836if test "$wxUSE_DISPLAY" = "yes"; then
37837 cat >>confdefs.h <<\_ACEOF
37838#define wxUSE_DISPLAY 1
37839_ACEOF
37840
37841 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS display"
37842fi
37843
37844if test "$wxUSE_GAUGE" = "yes"; then
37845 cat >>confdefs.h <<\_ACEOF
37846#define wxUSE_GAUGE 1
37847_ACEOF
37848
37849 USES_CONTROLS=1
37850fi
37851
37852if test "$wxUSE_GRID" = "yes"; then
37853 cat >>confdefs.h <<\_ACEOF
37854#define wxUSE_GRID 1
37855_ACEOF
37856
37857 USES_CONTROLS=1
37858 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid"
37859fi
37860
37861if test "$wxUSE_IMAGLIST" = "yes"; then
37862 cat >>confdefs.h <<\_ACEOF
37863#define wxUSE_IMAGLIST 1
37864_ACEOF
37865
37866fi
37867
37868if test "$wxUSE_LISTBOOK" = "yes"; then
37869 cat >>confdefs.h <<\_ACEOF
37870#define wxUSE_LISTBOOK 1
37871_ACEOF
37872
37873 USES_CONTROLS=1
37874fi
37875
37876if test "$wxUSE_LISTBOX" = "yes"; then
37877 cat >>confdefs.h <<\_ACEOF
37878#define wxUSE_LISTBOX 1
37879_ACEOF
37880
37881 USES_CONTROLS=1
37882fi
37883
37884if test "$wxUSE_LISTCTRL" = "yes"; then
37885 if test "$wxUSE_IMAGLIST" = "yes"; then
37886 cat >>confdefs.h <<\_ACEOF
37887#define wxUSE_LISTCTRL 1
37888_ACEOF
37889
37890 USES_CONTROLS=1
37891 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl"
37892 else
37893 { echo "$as_me:$LINENO: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&5
37894echo "$as_me: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&2;}
37895 fi
37896fi
37897
37898if test "$wxUSE_NOTEBOOK" = "yes"; then
37899 cat >>confdefs.h <<\_ACEOF
37900#define wxUSE_NOTEBOOK 1
37901_ACEOF
37902
37903 USES_CONTROLS=1
37904 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook"
37905fi
37906
37907
37908if test "$wxUSE_RADIOBOX" = "yes"; then
37909 cat >>confdefs.h <<\_ACEOF
37910#define wxUSE_RADIOBOX 1
37911_ACEOF
37912
37913 USES_CONTROLS=1
37914fi
37915
37916if test "$wxUSE_RADIOBTN" = "yes"; then
37917 cat >>confdefs.h <<\_ACEOF
37918#define wxUSE_RADIOBTN 1
37919_ACEOF
37920
37921 USES_CONTROLS=1
37922fi
37923
37924if test "$wxUSE_SASH" = "yes"; then
37925 cat >>confdefs.h <<\_ACEOF
37926#define wxUSE_SASH 1
37927_ACEOF
37928
37929 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest"
37930fi
37931
37932if test "$wxUSE_SCROLLBAR" = "yes"; then
37933 cat >>confdefs.h <<\_ACEOF
37934#define wxUSE_SCROLLBAR 1
37935_ACEOF
37936
37937 USES_CONTROLS=1
37938 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub"
37939fi
37940
37941if test "$wxUSE_SLIDER" = "yes"; then
37942 cat >>confdefs.h <<\_ACEOF
37943#define wxUSE_SLIDER 1
37944_ACEOF
37945
37946 USES_CONTROLS=1
37947fi
37948
37949if test "$wxUSE_SPINBTN" = "yes"; then
37950 cat >>confdefs.h <<\_ACEOF
37951#define wxUSE_SPINBTN 1
37952_ACEOF
37953
37954 USES_CONTROLS=1
37955fi
37956
37957if test "$wxUSE_SPINCTRL" = "yes"; then
37958 cat >>confdefs.h <<\_ACEOF
37959#define wxUSE_SPINCTRL 1
37960_ACEOF
37961
37962 USES_CONTROLS=1
37963fi
37964
37965if test "$wxUSE_SPLITTER" = "yes"; then
37966 cat >>confdefs.h <<\_ACEOF
37967#define wxUSE_SPLITTER 1
37968_ACEOF
37969
37970 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter"
37971fi
37972
37973if test "$wxUSE_STATBMP" = "yes"; then
37974 cat >>confdefs.h <<\_ACEOF
37975#define wxUSE_STATBMP 1
37976_ACEOF
37977
37978 USES_CONTROLS=1
37979fi
37980
37981if test "$wxUSE_STATBOX" = "yes"; then
37982 cat >>confdefs.h <<\_ACEOF
37983#define wxUSE_STATBOX 1
37984_ACEOF
37985
37986 USES_CONTROLS=1
37987fi
37988
37989if test "$wxUSE_STATTEXT" = "yes"; then
37990 cat >>confdefs.h <<\_ACEOF
37991#define wxUSE_STATTEXT 1
37992_ACEOF
37993
37994 USES_CONTROLS=1
37995fi
37996
37997if test "$wxUSE_STATLINE" = "yes"; then
37998 cat >>confdefs.h <<\_ACEOF
37999#define wxUSE_STATLINE 1
38000_ACEOF
38001
38002 USES_CONTROLS=1
38003fi
38004
38005if test "$wxUSE_STATUSBAR" = "yes"; then
da4486fb
VZ
38006 cat >>confdefs.h <<\_ACEOF
38007#define wxUSE_NATIVE_STATUSBAR 1
38008_ACEOF
38009
a848cd7e
SC
38010 cat >>confdefs.h <<\_ACEOF
38011#define wxUSE_STATUSBAR 1
38012_ACEOF
38013
38014 USES_CONTROLS=1
38015
38016 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar"
38017fi
38018
38019if test "$wxUSE_TABDIALOG" = "yes"; then
38020 cat >>confdefs.h <<\_ACEOF
38021#define wxUSE_TAB_DIALOG 1
38022_ACEOF
38023
38024 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS tab"
38025fi
38026
38027if test "$wxUSE_TEXTCTRL" = "yes"; then
38028 cat >>confdefs.h <<\_ACEOF
38029#define wxUSE_TEXTCTRL 1
38030_ACEOF
38031
38032 USES_CONTROLS=1
38033 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text"
38034fi
38035
38036if test "$wxUSE_TOGGLEBTN" = "yes"; then
38037 if test "$wxUSE_COCOA" = 1 ; then
38038 { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&5
38039echo "$as_me: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&2;}
38040 wxUSE_TOGGLEBTN=no
bdcade0a
MB
38041 else
38042 if test "$wxUSE_PM" = 1; then
38043 { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under PM... disabled" >&5
38044echo "$as_me: WARNING: Toggle button not yet supported under PM... disabled" >&2;}
38045 wxUSE_TOGGLEBTN=no
38046 fi
a848cd7e
SC
38047 fi
38048 if test "$wxUSE_UNIVERSAL" = "yes"; then
38049 { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under wxUniversal... disabled" >&5
38050echo "$as_me: WARNING: Toggle button not yet supported under wxUniversal... disabled" >&2;}
38051 wxUSE_TOGGLEBTN=no
38052 fi
38053
38054 if test "$wxUSE_TOGGLEBTN" = "yes"; then
38055 cat >>confdefs.h <<\_ACEOF
38056#define wxUSE_TOGGLEBTN 1
38057_ACEOF
38058
38059 USES_CONTROLS=1
38060 fi
38061fi
38062
38063if test "$wxUSE_TOOLBAR_SIMPLE" = "yes"; then
38064 cat >>confdefs.h <<\_ACEOF
38065#define wxUSE_TOOLBAR_SIMPLE 1
38066_ACEOF
38067
38068 wxUSE_TOOLBAR="yes"
38069 USES_CONTROLS=1
38070fi
38071
38072if test "$wxUSE_TOOLBAR" = "yes"; then
38073 cat >>confdefs.h <<\_ACEOF
38074#define wxUSE_TOOLBAR 1
38075_ACEOF
38076
38077 USES_CONTROLS=1
38078
38079 if test "$wxUSE_TOOLBAR_SIMPLE" != "yes"; then
38080 wxUSE_TOOLBAR_NATIVE="yes"
38081 fi
38082
38083 if test "$wxUSE_TOOLBAR_NATIVE" = "yes"; then
38084 cat >>confdefs.h <<\_ACEOF
38085#define wxUSE_TOOLBAR_NATIVE 1
38086_ACEOF
38087
38088 USES_CONTROLS=1
38089 fi
38090
38091 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar"
38092fi
38093
38094if test "$wxUSE_TOOLTIPS" = "yes"; then
38095 if test "$wxUSE_MOTIF" = 1; then
38096 { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet under Motif... disabled" >&5
38097echo "$as_me: WARNING: wxTooltip not supported yet under Motif... disabled" >&2;}
38098 else
38099 if test "$wxUSE_UNIVERSAL" = "yes"; then
38100 { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&5
38101echo "$as_me: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&2;}
38102 else
38103 cat >>confdefs.h <<\_ACEOF
38104#define wxUSE_TOOLTIPS 1
38105_ACEOF
38106
38107 fi
38108 fi
38109fi
38110
38111if test "$wxUSE_TREECTRL" = "yes"; then
38112 if test "$wxUSE_IMAGLIST" = "yes"; then
38113 cat >>confdefs.h <<\_ACEOF
38114#define wxUSE_TREECTRL 1
38115_ACEOF
38116
38117 USES_CONTROLS=1
38118 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl"
38119 else
38120 { echo "$as_me:$LINENO: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&5
38121echo "$as_me: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&2;}
38122 fi
38123fi
38124
38125if test "$wxUSE_POPUPWIN" = "yes"; then
38126 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
38127 { echo "$as_me:$LINENO: WARNING: Popup window not yet supported under Mac OS X... disabled" >&5
38128echo "$as_me: WARNING: Popup window not yet supported under Mac OS X... disabled" >&2;}
38129 else
38130 if test "$wxUSE_PM" = 1; then
38131 { echo "$as_me:$LINENO: WARNING: wxPopupWindow not yet supported under PM... disabled" >&5
38132echo "$as_me: WARNING: wxPopupWindow not yet supported under PM... disabled" >&2;}
38133 else
38134 cat >>confdefs.h <<\_ACEOF
38135#define wxUSE_POPUPWIN 1
38136_ACEOF
38137
38138
38139 USES_CONTROLS=1
38140 fi
38141 fi
38142fi
38143
0dcd06dd 38144if test "$wxUSE_DIALUP_MANAGER" = "yes"; then
b843b628
MB
38145 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
38146 { echo "$as_me:$LINENO: WARNING: Dialup manager not yet supported under Mac OS X... disabled" >&5
38147echo "$as_me: WARNING: Dialup manager not yet supported under Mac OS X... disabled" >&2;}
38148 else
38149 cat >>confdefs.h <<\_ACEOF
38150#define wxUSE_DIALUP_MANAGER 1
38151_ACEOF
38152
38153 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup"
38154 fi
38155fi
38156
a848cd7e
SC
38157if test "$wxUSE_TIPWINDOW" = "yes"; then
38158 if test "$wxUSE_PM" = 1; then
38159 { echo "$as_me:$LINENO: WARNING: wxTipWindow not yet supported under PM... disabled" >&5
38160echo "$as_me: WARNING: wxTipWindow not yet supported under PM... disabled" >&2;}
38161 else
38162 cat >>confdefs.h <<\_ACEOF
38163#define wxUSE_TIPWINDOW 1
38164_ACEOF
38165
38166 fi
38167fi
38168
38169if test "$USES_CONTROLS" = 1; then
38170 cat >>confdefs.h <<\_ACEOF
38171#define wxUSE_CONTROLS 1
38172_ACEOF
38173
38174fi
38175
38176
38177if test "$wxUSE_ACCESSIBILITY" = "yes"; then
38178 cat >>confdefs.h <<\_ACEOF
38179#define wxUSE_ACCESSIBILITY 1
38180_ACEOF
38181
38182 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS access"
38183fi
38184
38185if test "$wxUSE_DRAGIMAGE" = "yes"; then
38186 cat >>confdefs.h <<\_ACEOF
38187#define wxUSE_DRAGIMAGE 1
38188_ACEOF
38189
38190 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag"
38191fi
38192
38193if test "$wxUSE_EXCEPTIONS" = "yes"; then
07bea8f0
VS
38194 if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
38195 { echo "$as_me:$LINENO: WARNING: --enable-exceptions can't be used with --enable-no_exceptions" >&5
38196echo "$as_me: WARNING: --enable-exceptions can't be used with --enable-no_exceptions" >&2;}
38197 else
38198 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
38199#define wxUSE_EXCEPTIONS 1
38200_ACEOF
38201
07bea8f0
VS
38202 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS except"
38203 fi
a848cd7e
SC
38204fi
38205
38206USE_HTML=0
38207if test "$wxUSE_HTML" = "yes"; then
38208 cat >>confdefs.h <<\_ACEOF
38209#define wxUSE_HTML 1
38210_ACEOF
38211
38212 USE_HTML=1
38213 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html html/about html/help html/helpview html/printing html/test html/virtual html/widget html/zip htlbox"
de59c161
RD
38214 if test "$wxUSE_MAC" = 1; then
38215 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html/htmlctrl"
38216 fi
a848cd7e 38217fi
646b6ec1 38218if test "$wxUSE_WEBKIT" = "yes"; then
1e9e8aba 38219 if test "$wxUSE_MAC" = 1 -a "$USE_DARWIN" = 1; then
07bea8f0
VS
38220 old_CPPFLAGS="$CPPFLAGS"
38221 CPPFLAGS="$CPPFLAGS -x objective-c++"
38222 echo "$as_me:$LINENO: checking for WebKit/HIWebView.h" >&5
38223echo $ECHO_N "checking for WebKit/HIWebView.h... $ECHO_C" >&6
38224if test "${ac_cv_header_WebKit_HIWebView_h+set}" = set; then
38225 echo $ECHO_N "(cached) $ECHO_C" >&6
38226else
38227 cat >conftest.$ac_ext <<_ACEOF
38228/* confdefs.h. */
38229_ACEOF
38230cat confdefs.h >>conftest.$ac_ext
38231cat >>conftest.$ac_ext <<_ACEOF
38232/* end confdefs.h. */
38233#include <Carbon/Carbon.h>
38234
38235#include <WebKit/HIWebView.h>
38236_ACEOF
38237rm -f conftest.$ac_objext
38238if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38239 (eval $ac_compile) 2>conftest.er1
38240 ac_status=$?
38241 grep -v '^ *+' conftest.er1 >conftest.err
38242 rm -f conftest.er1
38243 cat conftest.err >&5
38244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38245 (exit $ac_status); } &&
89be85c2
VS
38246 { ac_try='test -z "$ac_c_werror_flag"
38247 || test ! -s conftest.err'
07bea8f0
VS
38248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38249 (eval $ac_try) 2>&5
38250 ac_status=$?
38251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38252 (exit $ac_status); }; } &&
38253 { ac_try='test -s conftest.$ac_objext'
38254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38255 (eval $ac_try) 2>&5
38256 ac_status=$?
38257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38258 (exit $ac_status); }; }; then
38259 ac_cv_header_WebKit_HIWebView_h=yes
38260else
38261 echo "$as_me: failed program was:" >&5
38262sed 's/^/| /' conftest.$ac_ext >&5
38263
38264ac_cv_header_WebKit_HIWebView_h=no
38265fi
38266rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38267fi
38268echo "$as_me:$LINENO: result: $ac_cv_header_WebKit_HIWebView_h" >&5
38269echo "${ECHO_T}$ac_cv_header_WebKit_HIWebView_h" >&6
38270if test $ac_cv_header_WebKit_HIWebView_h = yes; then
38271
38272 cat >>confdefs.h <<\_ACEOF
646b6ec1
VS
38273#define wxUSE_WEBKIT 1
38274_ACEOF
38275
07bea8f0
VS
38276 WEBKIT_LINK="-framework WebKit"
38277
38278else
38279
38280 { echo "$as_me:$LINENO: WARNING: WebKit headers not found; disabling wxWebKit" >&5
38281echo "$as_me: WARNING: WebKit headers not found; disabling wxWebKit" >&2;}
38282 wxUSE_WEBKIT=no
38283
646b6ec1
VS
38284fi
38285
07bea8f0
VS
38286
38287 CPPFLAGS="$old_CPPFLAGS"
38288 elif test "$wxUSE_COCOA" = 1; then
38289 cat >>confdefs.h <<\_ACEOF
38290#define wxUSE_WEBKIT 1
38291_ACEOF
38292
38293 else
38294 wxUSE_WEBKIT=no
38295 fi
38296fi
38297
9a8f0513
VS
38298USE_XRC=0
38299if test "$wxUSE_XRC" = "yes"; then
d2ebf0b7
VS
38300 if test "$wxUSE_XML" != "yes"; then
38301 { echo "$as_me:$LINENO: WARNING: XML library not built, XRC resources disabled" >&5
38302echo "$as_me: WARNING: XML library not built, XRC resources disabled" >&2;}
38303 wxUSE_XRC=no
38304 else
38305 cat >>confdefs.h <<\_ACEOF
9a8f0513
VS
38306#define wxUSE_XRC 1
38307_ACEOF
38308
d2ebf0b7
VS
38309 USE_XRC=1
38310 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS xrc"
38311 fi
9a8f0513 38312fi
07bea8f0 38313
a848cd7e
SC
38314if test "$wxUSE_MENUS" = "yes"; then
38315 cat >>confdefs.h <<\_ACEOF
38316#define wxUSE_MENUS 1
38317_ACEOF
38318
38319 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu"
38320fi
38321
38322if test "$wxUSE_METAFILE" = "yes"; then
38323 cat >>confdefs.h <<\_ACEOF
38324#define wxUSE_METAFILE 1
38325_ACEOF
38326
38327fi
38328
38329if test "$wxUSE_MIMETYPE" = "yes"; then
38330 cat >>confdefs.h <<\_ACEOF
38331#define wxUSE_MIMETYPE 1
38332_ACEOF
38333
38334fi
38335
38336if test "$wxUSE_MINIFRAME" = "yes"; then
38337 cat >>confdefs.h <<\_ACEOF
38338#define wxUSE_MINIFRAME 1
38339_ACEOF
38340
38341 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram"
38342fi
38343
38344if test "$wxUSE_SYSTEM_OPTIONS" = "yes"; then
38345 cat >>confdefs.h <<\_ACEOF
38346#define wxUSE_SYSTEM_OPTIONS 1
38347_ACEOF
38348
38349 if test "$TOOLKIT" = "MSW" -o "$TOOLKIT" = "GTK" -o "$TOOLKIT" = "X11" -o \
a49baeab 38350 "$TOOLKIT" = "MOTIF" -o "$TOOLKIT" = "COCOA"; then
a848cd7e
SC
38351 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS taskbar"
38352 fi
38353fi
38354
38355
38356if test "$wxUSE_VALIDATORS" = "yes"; then
38357 cat >>confdefs.h <<\_ACEOF
38358#define wxUSE_VALIDATORS 1
38359_ACEOF
38360
38361 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate"
38362fi
38363
38364if test "$wxUSE_PALETTE" = "yes" ; then
38365 cat >>confdefs.h <<\_ACEOF
38366#define wxUSE_PALETTE 1
38367_ACEOF
38368
38369fi
38370
38371if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_MSLU" = "yes" ; then
38372 LIBS=" -lunicows $LIBS"
38373fi
38374
38375
38376if test "$wxUSE_IMAGE" = "yes" ; then
38377 cat >>confdefs.h <<\_ACEOF
38378#define wxUSE_IMAGE 1
38379_ACEOF
38380
38381
38382 if test "$wxUSE_GIF" = "yes" ; then
38383 cat >>confdefs.h <<\_ACEOF
38384#define wxUSE_GIF 1
38385_ACEOF
38386
38387 fi
38388
38389 if test "$wxUSE_PCX" = "yes" ; then
38390 cat >>confdefs.h <<\_ACEOF
38391#define wxUSE_PCX 1
38392_ACEOF
38393
38394 fi
38395
38396 if test "$wxUSE_IFF" = "yes" ; then
38397 cat >>confdefs.h <<\_ACEOF
38398#define wxUSE_IFF 1
38399_ACEOF
38400
38401 fi
38402
38403 if test "$wxUSE_PNM" = "yes" ; then
38404 cat >>confdefs.h <<\_ACEOF
38405#define wxUSE_PNM 1
38406_ACEOF
38407
38408 fi
38409
38410 if test "$wxUSE_XPM" = "yes" ; then
38411 cat >>confdefs.h <<\_ACEOF
38412#define wxUSE_XPM 1
38413_ACEOF
38414
38415 fi
38416
38417 if test "$wxUSE_ICO_CUR" = "yes" ; then
38418 cat >>confdefs.h <<\_ACEOF
38419#define wxUSE_ICO_CUR 1
38420_ACEOF
38421
38422 fi
38423fi
38424
38425
38426if test "$wxUSE_CHOICEDLG" = "yes"; then
38427 cat >>confdefs.h <<\_ACEOF
38428#define wxUSE_CHOICEDLG 1
38429_ACEOF
38430
38431fi
38432
38433if test "$wxUSE_COLOURDLG" = "yes"; then
38434 cat >>confdefs.h <<\_ACEOF
38435#define wxUSE_COLOURDLG 1
38436_ACEOF
38437
38438fi
38439
38440if test "$wxUSE_FILEDLG" = "yes"; then
38441 cat >>confdefs.h <<\_ACEOF
38442#define wxUSE_FILEDLG 1
38443_ACEOF
38444
38445fi
38446
38447if test "$wxUSE_FINDREPLDLG" = "yes"; then
38448 cat >>confdefs.h <<\_ACEOF
38449#define wxUSE_FINDREPLDLG 1
38450_ACEOF
38451
38452fi
38453
38454if test "$wxUSE_FONTDLG" = "yes"; then
38455 cat >>confdefs.h <<\_ACEOF
38456#define wxUSE_FONTDLG 1
38457_ACEOF
38458
38459fi
38460
38461if test "$wxUSE_DIRDLG" = "yes"; then
38462 if test "$wxUSE_TREECTRL" != "yes"; then
38463 { echo "$as_me:$LINENO: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&5
38464echo "$as_me: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&2;}
38465 else
38466 cat >>confdefs.h <<\_ACEOF
38467#define wxUSE_DIRDLG 1
38468_ACEOF
38469
38470 fi
38471fi
38472
38473if test "$wxUSE_MSGDLG" = "yes"; then
38474 cat >>confdefs.h <<\_ACEOF
38475#define wxUSE_MSGDLG 1
38476_ACEOF
38477
38478fi
38479
38480if test "$wxUSE_NUMBERDLG" = "yes"; then
38481 cat >>confdefs.h <<\_ACEOF
38482#define wxUSE_NUMBERDLG 1
38483_ACEOF
38484
38485fi
38486
38487if test "$wxUSE_PROGRESSDLG" = "yes"; then
38488 if test "$wxUSE_CONSTRAINTS" != "yes"; then
38489 { echo "$as_me:$LINENO: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&5
38490echo "$as_me: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&2;}
38491 else
38492 cat >>confdefs.h <<\_ACEOF
38493#define wxUSE_PROGRESSDLG 1
38494_ACEOF
38495
38496 fi
38497fi
38498
38499if test "$wxUSE_SPLASH" = "yes"; then
38500 cat >>confdefs.h <<\_ACEOF
38501#define wxUSE_SPLASH 1
38502_ACEOF
38503
2057db16 38504 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splash"
a848cd7e
SC
38505fi
38506
38507if test "$wxUSE_STARTUP_TIPS" = "yes"; then
38508 if test "$wxUSE_CONSTRAINTS" != "yes"; then
38509 { echo "$as_me:$LINENO: WARNING: Startup tips requires constraints and won't be compiled without them" >&5
38510echo "$as_me: WARNING: Startup tips requires constraints and won't be compiled without them" >&2;}
38511 else
38512 cat >>confdefs.h <<\_ACEOF
38513#define wxUSE_STARTUP_TIPS 1
38514_ACEOF
38515
38516 fi
38517fi
38518
38519if test "$wxUSE_TEXTDLG" = "yes"; then
38520 cat >>confdefs.h <<\_ACEOF
38521#define wxUSE_TEXTDLG 1
38522_ACEOF
38523
38524fi
38525
38526if test "$wxUSE_WIZARDDLG" = "yes"; then
38527 cat >>confdefs.h <<\_ACEOF
38528#define wxUSE_WIZARDDLG 1
38529_ACEOF
38530
38531 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard"
38532fi
38533
38534
38535if test "$cross_compiling" = "yes"; then
38536 OSINFO="\"$host\""
38537else
38538 OSINFO=`uname -s -r -m`
38539 OSINFO="\"$OSINFO\""
38540fi
38541
38542cat >>confdefs.h <<_ACEOF
38543#define WXWIN_OS_DESCRIPTION $OSINFO
38544_ACEOF
38545
38546
38547
38548if test "x$prefix" != "xNONE"; then
38549 wxPREFIX=$prefix
38550else
38551 wxPREFIX=$ac_default_prefix
38552fi
38553
38554cat >>confdefs.h <<_ACEOF
38555#define wxINSTALL_PREFIX "$wxPREFIX"
38556_ACEOF
38557
38558
a848cd7e
SC
38559
38560
38561CORE_BASE_LIBS="net base"
38562CORE_GUI_LIBS="adv core"
38563
38564if test "$wxUSE_XML" = "yes" ; then
38565 CORE_BASE_LIBS="xml $CORE_BASE_LIBS"
38566fi
38567if test "$wxUSE_ODBC" != "no" ; then
38568 CORE_BASE_LIBS="odbc $CORE_BASE_LIBS"
38569 CORE_GUI_LIBS="dbgrid $CORE_GUI_LIBS"
38570fi
38571if test "$wxUSE_HTML" = "yes" ; then
38572 CORE_GUI_LIBS="html $CORE_GUI_LIBS"
38573fi
9a8f0513
VS
38574if test "$wxUSE_XRC" = "yes" ; then
38575 CORE_GUI_LIBS="xrc $CORE_GUI_LIBS"
38576fi
a848cd7e
SC
38577
38578if test "$wxUSE_GUI" != "yes"; then
38579 CORE_GUI_LIBS=""
38580fi
38581
38582
38583
38584
38585
38586
38587
38588
38589if test "$wxUSE_MAC" = 1 ; then
a98bf0c0 38590 if test "$wxUSE_SOUND" = "yes" || test "$wxUSE_MEDIACTRL" = "yes"; then
1e9e8aba
DE
38591 if test "$USE_DARWIN" = 1; then
38592 LDFLAGS="$LDFLAGS -framework QuickTime"
38593 else
38594 LDFLAGS="$LDFLAGS -lQuickTimeLib"
38595 fi
07bea8f0 38596 fi
5dcf30a0 38597 if test "$USE_DARWIN" = 1; then
1e9e8aba
DE
38598 LDFLAGS="$LDFLAGS -framework IOKit -framework Carbon -framework Cocoa -framework System"
38599 else
38600 LDFLAGS="$LDFLAGS -lCarbonLib"
5dcf30a0 38601 fi
a848cd7e
SC
38602fi
38603if test "$wxUSE_COCOA" = 1 ; then
f7e98dee 38604 LDFLAGS="$LDFLAGS -framework Cocoa"
4fc81cbc
RN
38605 if test "$wxUSE_MEDIACTRL" = "yes"; then
38606 LDFLAGS="$LDFLAGS -framework QuickTime"
38607 fi
a848cd7e
SC
38608fi
38609
38610
38611LIBS="$ZLIB_LINK $POSIX4_LINK $INET_LINK $WCHAR_LINK $DL_LINK $LIBS"
38612
38613have_cos=0
38614have_floor=0
38615
38616for ac_func in cos
38617do
38618as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38619echo "$as_me:$LINENO: checking for $ac_func" >&5
38620echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
38621if eval "test \"\${$as_ac_var+set}\" = set"; then
38622 echo $ECHO_N "(cached) $ECHO_C" >&6
38623else
38624 cat >conftest.$ac_ext <<_ACEOF
38625/* confdefs.h. */
38626_ACEOF
38627cat confdefs.h >>conftest.$ac_ext
38628cat >>conftest.$ac_ext <<_ACEOF
38629/* end confdefs.h. */
ac1cb8d3
VS
38630/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38631 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38632#define $ac_func innocuous_$ac_func
38633
a848cd7e
SC
38634/* System header to define __stub macros and hopefully few prototypes,
38635 which can conflict with char $ac_func (); below.
38636 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38637 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 38638
a848cd7e
SC
38639#ifdef __STDC__
38640# include <limits.h>
38641#else
38642# include <assert.h>
38643#endif
ac1cb8d3
VS
38644
38645#undef $ac_func
38646
a848cd7e
SC
38647/* Override any gcc2 internal prototype to avoid an error. */
38648#ifdef __cplusplus
38649extern "C"
38650{
38651#endif
38652/* We use char because int might match the return type of a gcc2
38653 builtin and then its argument prototype would still apply. */
38654char $ac_func ();
38655/* The GNU C library defines this for functions which it implements
38656 to always fail with ENOSYS. Some functions are actually named
38657 something starting with __ and the normal name is an alias. */
38658#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
38659choke me
38660#else
38661char (*f) () = $ac_func;
38662#endif
38663#ifdef __cplusplus
38664}
38665#endif
38666
38667int
38668main ()
38669{
38670return f != $ac_func;
38671 ;
38672 return 0;
38673}
38674_ACEOF
38675rm -f conftest.$ac_objext conftest$ac_exeext
38676if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 38677 (eval $ac_link) 2>conftest.er1
a848cd7e 38678 ac_status=$?
ac1cb8d3
VS
38679 grep -v '^ *+' conftest.er1 >conftest.err
38680 rm -f conftest.er1
38681 cat conftest.err >&5
a848cd7e
SC
38682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38683 (exit $ac_status); } &&
89be85c2
VS
38684 { ac_try='test -z "$ac_c_werror_flag"
38685 || test ! -s conftest.err'
ac1cb8d3
VS
38686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38687 (eval $ac_try) 2>&5
38688 ac_status=$?
38689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38690 (exit $ac_status); }; } &&
38691 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
38692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38693 (eval $ac_try) 2>&5
38694 ac_status=$?
38695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38696 (exit $ac_status); }; }; then
38697 eval "$as_ac_var=yes"
38698else
38699 echo "$as_me: failed program was:" >&5
38700sed 's/^/| /' conftest.$ac_ext >&5
38701
38702eval "$as_ac_var=no"
38703fi
ac1cb8d3
VS
38704rm -f conftest.err conftest.$ac_objext \
38705 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
38706fi
38707echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
38708echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
38709if test `eval echo '${'$as_ac_var'}'` = yes; then
38710 cat >>confdefs.h <<_ACEOF
38711#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38712_ACEOF
38713 have_cos=1
38714fi
38715done
38716
38717
38718for ac_func in floor
38719do
38720as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38721echo "$as_me:$LINENO: checking for $ac_func" >&5
38722echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
38723if eval "test \"\${$as_ac_var+set}\" = set"; then
38724 echo $ECHO_N "(cached) $ECHO_C" >&6
38725else
38726 cat >conftest.$ac_ext <<_ACEOF
38727/* confdefs.h. */
38728_ACEOF
38729cat confdefs.h >>conftest.$ac_ext
38730cat >>conftest.$ac_ext <<_ACEOF
38731/* end confdefs.h. */
ac1cb8d3
VS
38732/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38733 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38734#define $ac_func innocuous_$ac_func
38735
a848cd7e
SC
38736/* System header to define __stub macros and hopefully few prototypes,
38737 which can conflict with char $ac_func (); below.
38738 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38739 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 38740
a848cd7e
SC
38741#ifdef __STDC__
38742# include <limits.h>
38743#else
38744# include <assert.h>
38745#endif
ac1cb8d3
VS
38746
38747#undef $ac_func
38748
a848cd7e
SC
38749/* Override any gcc2 internal prototype to avoid an error. */
38750#ifdef __cplusplus
38751extern "C"
38752{
38753#endif
38754/* We use char because int might match the return type of a gcc2
38755 builtin and then its argument prototype would still apply. */
38756char $ac_func ();
38757/* The GNU C library defines this for functions which it implements
38758 to always fail with ENOSYS. Some functions are actually named
38759 something starting with __ and the normal name is an alias. */
38760#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
38761choke me
38762#else
38763char (*f) () = $ac_func;
38764#endif
38765#ifdef __cplusplus
38766}
38767#endif
38768
38769int
38770main ()
38771{
38772return f != $ac_func;
38773 ;
38774 return 0;
38775}
38776_ACEOF
38777rm -f conftest.$ac_objext conftest$ac_exeext
38778if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 38779 (eval $ac_link) 2>conftest.er1
a848cd7e 38780 ac_status=$?
ac1cb8d3
VS
38781 grep -v '^ *+' conftest.er1 >conftest.err
38782 rm -f conftest.er1
38783 cat conftest.err >&5
a848cd7e
SC
38784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38785 (exit $ac_status); } &&
89be85c2
VS
38786 { ac_try='test -z "$ac_c_werror_flag"
38787 || test ! -s conftest.err'
ac1cb8d3
VS
38788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38789 (eval $ac_try) 2>&5
38790 ac_status=$?
38791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38792 (exit $ac_status); }; } &&
38793 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
38794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38795 (eval $ac_try) 2>&5
38796 ac_status=$?
38797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38798 (exit $ac_status); }; }; then
38799 eval "$as_ac_var=yes"
38800else
38801 echo "$as_me: failed program was:" >&5
38802sed 's/^/| /' conftest.$ac_ext >&5
38803
38804eval "$as_ac_var=no"
38805fi
ac1cb8d3
VS
38806rm -f conftest.err conftest.$ac_objext \
38807 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
38808fi
38809echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
38810echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
38811if test `eval echo '${'$as_ac_var'}'` = yes; then
38812 cat >>confdefs.h <<_ACEOF
38813#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38814_ACEOF
38815 have_floor=1
38816fi
38817done
38818
38819echo "$as_me:$LINENO: checking if floating point functions link without -lm" >&5
38820echo $ECHO_N "checking if floating point functions link without -lm... $ECHO_C" >&6
38821if test "$have_cos" = 1 -a "$have_floor" = 1; then
38822 echo "$as_me:$LINENO: result: yes" >&5
38823echo "${ECHO_T}yes" >&6
38824else
38825 echo "$as_me:$LINENO: result: no" >&5
38826echo "${ECHO_T}no" >&6
38827 LIBS="$LIBS -lm"
38828 # use different functions to avoid configure caching
38829 have_sin=0
38830 have_ceil=0
38831
38832for ac_func in sin
38833do
38834as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38835echo "$as_me:$LINENO: checking for $ac_func" >&5
38836echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
38837if eval "test \"\${$as_ac_var+set}\" = set"; then
38838 echo $ECHO_N "(cached) $ECHO_C" >&6
38839else
38840 cat >conftest.$ac_ext <<_ACEOF
38841/* confdefs.h. */
38842_ACEOF
38843cat confdefs.h >>conftest.$ac_ext
38844cat >>conftest.$ac_ext <<_ACEOF
38845/* end confdefs.h. */
ac1cb8d3
VS
38846/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38847 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38848#define $ac_func innocuous_$ac_func
38849
a848cd7e
SC
38850/* System header to define __stub macros and hopefully few prototypes,
38851 which can conflict with char $ac_func (); below.
38852 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38853 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 38854
a848cd7e
SC
38855#ifdef __STDC__
38856# include <limits.h>
38857#else
38858# include <assert.h>
38859#endif
ac1cb8d3
VS
38860
38861#undef $ac_func
38862
a848cd7e
SC
38863/* Override any gcc2 internal prototype to avoid an error. */
38864#ifdef __cplusplus
38865extern "C"
38866{
38867#endif
38868/* We use char because int might match the return type of a gcc2
38869 builtin and then its argument prototype would still apply. */
38870char $ac_func ();
38871/* The GNU C library defines this for functions which it implements
38872 to always fail with ENOSYS. Some functions are actually named
38873 something starting with __ and the normal name is an alias. */
38874#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
38875choke me
38876#else
38877char (*f) () = $ac_func;
38878#endif
38879#ifdef __cplusplus
38880}
38881#endif
38882
38883int
38884main ()
38885{
38886return f != $ac_func;
38887 ;
38888 return 0;
38889}
38890_ACEOF
38891rm -f conftest.$ac_objext conftest$ac_exeext
38892if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 38893 (eval $ac_link) 2>conftest.er1
a848cd7e 38894 ac_status=$?
ac1cb8d3
VS
38895 grep -v '^ *+' conftest.er1 >conftest.err
38896 rm -f conftest.er1
38897 cat conftest.err >&5
a848cd7e
SC
38898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38899 (exit $ac_status); } &&
89be85c2
VS
38900 { ac_try='test -z "$ac_c_werror_flag"
38901 || test ! -s conftest.err'
ac1cb8d3
VS
38902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38903 (eval $ac_try) 2>&5
38904 ac_status=$?
38905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38906 (exit $ac_status); }; } &&
38907 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
38908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38909 (eval $ac_try) 2>&5
38910 ac_status=$?
38911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38912 (exit $ac_status); }; }; then
38913 eval "$as_ac_var=yes"
38914else
38915 echo "$as_me: failed program was:" >&5
38916sed 's/^/| /' conftest.$ac_ext >&5
38917
38918eval "$as_ac_var=no"
38919fi
ac1cb8d3
VS
38920rm -f conftest.err conftest.$ac_objext \
38921 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
38922fi
38923echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
38924echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
38925if test `eval echo '${'$as_ac_var'}'` = yes; then
38926 cat >>confdefs.h <<_ACEOF
38927#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38928_ACEOF
38929 have_sin=1
38930fi
38931done
38932
38933
38934for ac_func in ceil
38935do
38936as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38937echo "$as_me:$LINENO: checking for $ac_func" >&5
38938echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
38939if eval "test \"\${$as_ac_var+set}\" = set"; then
38940 echo $ECHO_N "(cached) $ECHO_C" >&6
38941else
38942 cat >conftest.$ac_ext <<_ACEOF
38943/* confdefs.h. */
38944_ACEOF
38945cat confdefs.h >>conftest.$ac_ext
38946cat >>conftest.$ac_ext <<_ACEOF
38947/* end confdefs.h. */
ac1cb8d3
VS
38948/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38949 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38950#define $ac_func innocuous_$ac_func
38951
a848cd7e
SC
38952/* System header to define __stub macros and hopefully few prototypes,
38953 which can conflict with char $ac_func (); below.
38954 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38955 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 38956
a848cd7e
SC
38957#ifdef __STDC__
38958# include <limits.h>
38959#else
38960# include <assert.h>
38961#endif
ac1cb8d3
VS
38962
38963#undef $ac_func
38964
a848cd7e
SC
38965/* Override any gcc2 internal prototype to avoid an error. */
38966#ifdef __cplusplus
38967extern "C"
38968{
38969#endif
38970/* We use char because int might match the return type of a gcc2
38971 builtin and then its argument prototype would still apply. */
38972char $ac_func ();
38973/* The GNU C library defines this for functions which it implements
38974 to always fail with ENOSYS. Some functions are actually named
38975 something starting with __ and the normal name is an alias. */
38976#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
38977choke me
38978#else
38979char (*f) () = $ac_func;
38980#endif
38981#ifdef __cplusplus
38982}
38983#endif
38984
38985int
38986main ()
38987{
38988return f != $ac_func;
38989 ;
38990 return 0;
38991}
38992_ACEOF
38993rm -f conftest.$ac_objext conftest$ac_exeext
38994if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 38995 (eval $ac_link) 2>conftest.er1
a848cd7e 38996 ac_status=$?
ac1cb8d3
VS
38997 grep -v '^ *+' conftest.er1 >conftest.err
38998 rm -f conftest.er1
38999 cat conftest.err >&5
a848cd7e
SC
39000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39001 (exit $ac_status); } &&
89be85c2
VS
39002 { ac_try='test -z "$ac_c_werror_flag"
39003 || test ! -s conftest.err'
ac1cb8d3
VS
39004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39005 (eval $ac_try) 2>&5
39006 ac_status=$?
39007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39008 (exit $ac_status); }; } &&
39009 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
39010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39011 (eval $ac_try) 2>&5
39012 ac_status=$?
39013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39014 (exit $ac_status); }; }; then
39015 eval "$as_ac_var=yes"
39016else
39017 echo "$as_me: failed program was:" >&5
39018sed 's/^/| /' conftest.$ac_ext >&5
39019
39020eval "$as_ac_var=no"
39021fi
ac1cb8d3
VS
39022rm -f conftest.err conftest.$ac_objext \
39023 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
39024fi
39025echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
39026echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
39027if test `eval echo '${'$as_ac_var'}'` = yes; then
39028 cat >>confdefs.h <<_ACEOF
39029#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39030_ACEOF
39031 have_ceil=1
39032fi
39033done
39034
39035 echo "$as_me:$LINENO: checking if floating point functions link with -lm" >&5
39036echo $ECHO_N "checking if floating point functions link with -lm... $ECHO_C" >&6
39037 if test "$have_sin" = 1 -a "$have_ceil" = 1; then
39038 echo "$as_me:$LINENO: result: yes" >&5
39039echo "${ECHO_T}yes" >&6
39040 else
39041 echo "$as_me:$LINENO: result: no" >&5
39042echo "${ECHO_T}no" >&6
39043 # not sure we should warn the user, crash, etc.
39044 fi
39045fi
39046
39047if test "$wxUSE_GUI" = "yes"; then
39048
39049
39050 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS artprov controls dialogs \
39051 drawing dynamic erase event exec font image \
39052 minimal propsize rotate shaped widgets render"
39053
39054 if test "$wxUSE_MONOLITHIC" != "yes"; then
39055 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS console"
39056 fi
39057else
39058 SAMPLES_SUBDIRS="console"
39059fi
39060
39061
ceec2216 39062INCLUDES="-I\${top_builddir}lib/wx/include/${TOOLCHAIN_FULLNAME} \
a848cd7e
SC
39063-I\${top_srcdir}/include $TOOLKIT_INCLUDE"
39064
39065if test "$GXX" = yes ; then
5294a27e
VZ
39066 CWARNINGS="-Wall"
39067 CXXWARNINGS="$CWARNINGS -Wno-ctor-dtor-privacy"
a848cd7e
SC
39068 fi
39069
39070EXTRA_CFLAGS="$WXDEBUG $WXODBCFLAG $PROFILE $OPTIMISE"
39071
0c3c69fc 39072CPPFLAGS=`echo $WXDEBUG_DEFINE $INCLUDES $CPPFLAGS`
5294a27e 39073CFLAGS=`echo $CODE_GEN_FLAGS $EXTRA_CFLAGS $CFLAGS $CWARNINGS`
0c3c69fc 39074CXXFLAGS=`echo $CODE_GEN_FLAGS $CODE_GEN_FLAGS_CXX $EXTRA_CFLAGS $CXXFLAGS $CXXWARNINGS`
a848cd7e 39075
95986553
DE
39076if test "x$MWCC" = "xyes"; then
39077
39078 CC="$CC -cwd source -I-"
39079 CXX="$CXX -cwd source -I-"
39080fi
39081
a848cd7e 39082
0c3c69fc 39083LIBS=`echo $LIBS`
a848cd7e
SC
39084EXTRALIBS="$LDFLAGS $LDFLAGS_VERSIONING $LIBS $DMALLOC_LIBS"
39085EXTRALIBS_XML="$EXPAT_LINK"
39086EXTRALIBS_HTML="$MSPACK_LINK"
39087EXTRALIBS_ODBC="$ODBC_LINK"
39088if test "$wxUSE_GUI" = "yes"; then
0c3c69fc 39089 EXTRALIBS_GUI=`echo $GUI_TK_LIBRARY $PNG_LINK $JPEG_LINK $TIFF_LINK $WEBKIT_LINK`
a848cd7e
SC
39090fi
39091if test "$wxUSE_OPENGL" = "yes"; then
39092 EXTRALIBS_OPENGL="$LDFLAGS_GL $OPENGL_LIBS"
39093fi
39094
39095LDFLAGS="$LDFLAGS $PROFILE"
39096
39097if test "$wxUSE_GTK" = 1; then
39098 WXCONFIG_INCLUDE=
39099else
39100 WXCONFIG_INCLUDE="$TOOLKIT_INCLUDE"
39101fi
39102
39103WXCONFIG_EXTRALIBS="$LIBS"
39104
39105if test "$wxUSE_REGEX" = "builtin" ; then
39106 wxconfig_3rdparty="$wxconfig_3rdparty regex${lib_unicode_suffix}"
39107fi
39108if test "$wxUSE_EXPAT" = "builtin" ; then
39109 wxconfig_3rdparty="$wxconfig_3rdparty expat"
39110fi
39111if test "$wxUSE_ODBC" = "builtin" ; then
39112 wxconfig_3rdparty="$wxconfig_3rdparty odbc"
39113fi
39114if test "$wxUSE_LIBTIFF" = "builtin" ; then
39115 wxconfig_3rdparty="$wxconfig_3rdparty tiff"
39116fi
39117if test "$wxUSE_LIBJPEG" = "builtin" ; then
39118 wxconfig_3rdparty="$wxconfig_3rdparty jpeg"
39119fi
39120if test "$wxUSE_LIBPNG" = "builtin" ; then
39121 wxconfig_3rdparty="$wxconfig_3rdparty png"
39122fi
39123if test "$wxUSE_ZLIB" = "builtin" ; then
39124 wxconfig_3rdparty="$wxconfig_3rdparty zlib"
39125fi
39126if test "$wxUSE_ODBC" = "builtin" ; then
39127 wxconfig_3rdparty="$wxconfig_3rdparty odbc"
39128fi
39129
39130for i in $wxconfig_3rdparty ; do
ceec2216 39131 WXCONFIG_EXTRALIBS="$WXCONFIG_EXTRALIBS -lwx${i}${lib_debug_suffix}${WX_LIB_FLAVOUR}-${WX_RELEASE}${HOST_SUFFIX}"
a848cd7e
SC
39132done
39133
39134
39135if test "x$wxUSE_UNIVERSAL" = "xyes" ; then
39136 WXUNIV=1
39137else
39138 WXUNIV=0
39139fi
39140
39141
39142
39143
39144
39145
39146
39147
39148
39149if test $wxUSE_MONOLITHIC = "yes" ; then
39150 MONOLITHIC=1
39151else
39152 MONOLITHIC=0
39153fi
39154
39155if test $wxUSE_PLUGINS = "yes" ; then
39156 USE_PLUGINS=1
39157else
39158 USE_PLUGINS=0
39159fi
39160
39161if test $wxUSE_ODBC != "no" ; then
39162 USE_ODBC=1
39163else
39164 USE_ODBC=0
39165fi
39166
39167if test $wxUSE_OFFICIAL_BUILD = "yes" ; then
39168 OFFICIAL_BUILD=1
39169else
39170 OFFICIAL_BUILD=0
39171fi
39172
39173
39174
39175
39176
39177
39178
39179
39180
39181
39182
39183
39184
39185
39186
39187
39188
39189
39190
ceec2216 39191
d1c38808 39192
a848cd7e
SC
39193
39194
39195TOOLKIT_LOWERCASE=`echo $TOOLKIT | tr "[A-Z]" "[a-z]"`
39196
39197
39198
39199
39200
39201
39202
39203
4d4ff94c
VZ
39204case "$TOOLKIT" in
39205 GTK)
39206 TOOLKIT_USER="GTK+"
39207 if test "$WXGTK20" = 1; then
39208 TOOLKIT_USER="$TOOLKIT_USER 2"
39209 fi
9a8f0513 39210 ;;
4d4ff94c
VZ
39211
39212 *)
39213 TOOLKIT_USER=$TOOLKIT_LOWERCASE
9a8f0513 39214 ;;
4d4ff94c 39215esac
a848cd7e 39216
9a8f0513 39217
1e9e8aba
DE
39218
39219
a848cd7e
SC
39220 if test "x$BAKEFILE_HOST" = "x"; then
39221 BAKEFILE_HOST="${host}"
39222 fi
39223
39224 if test "x$BAKEFILE_CHECK_BASICS" != "xno"; then
39225
39226 if test -n "$ac_tool_prefix"; then
39227 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
39228set dummy ${ac_tool_prefix}ranlib; ac_word=$2
39229echo "$as_me:$LINENO: checking for $ac_word" >&5
39230echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
39231if test "${ac_cv_prog_RANLIB+set}" = set; then
39232 echo $ECHO_N "(cached) $ECHO_C" >&6
39233else
39234 if test -n "$RANLIB"; then
39235 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
39236else
39237as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
39238for as_dir in $PATH
39239do
39240 IFS=$as_save_IFS
39241 test -z "$as_dir" && as_dir=.
39242 for ac_exec_ext in '' $ac_executable_extensions; do
39243 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
39244 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
39245 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
39246 break 2
39247 fi
39248done
39249done
39250
39251fi
39252fi
39253RANLIB=$ac_cv_prog_RANLIB
39254if test -n "$RANLIB"; then
39255 echo "$as_me:$LINENO: result: $RANLIB" >&5
39256echo "${ECHO_T}$RANLIB" >&6
39257else
39258 echo "$as_me:$LINENO: result: no" >&5
39259echo "${ECHO_T}no" >&6
39260fi
39261
39262fi
39263if test -z "$ac_cv_prog_RANLIB"; then
39264 ac_ct_RANLIB=$RANLIB
39265 # Extract the first word of "ranlib", so it can be a program name with args.
39266set dummy ranlib; ac_word=$2
39267echo "$as_me:$LINENO: checking for $ac_word" >&5
39268echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
39269if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
39270 echo $ECHO_N "(cached) $ECHO_C" >&6
39271else
39272 if test -n "$ac_ct_RANLIB"; then
39273 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
39274else
39275as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
39276for as_dir in $PATH
39277do
39278 IFS=$as_save_IFS
39279 test -z "$as_dir" && as_dir=.
39280 for ac_exec_ext in '' $ac_executable_extensions; do
39281 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
39282 ac_cv_prog_ac_ct_RANLIB="ranlib"
39283 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
39284 break 2
39285 fi
39286done
39287done
39288
39289 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
39290fi
39291fi
39292ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
39293if test -n "$ac_ct_RANLIB"; then
39294 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
39295echo "${ECHO_T}$ac_ct_RANLIB" >&6
39296else
39297 echo "$as_me:$LINENO: result: no" >&5
39298echo "${ECHO_T}no" >&6
39299fi
39300
39301 RANLIB=$ac_ct_RANLIB
39302else
39303 RANLIB="$ac_cv_prog_RANLIB"
39304fi
39305
39306 # Find a good install program. We prefer a C program (faster),
39307# so one script is as good as another. But avoid the broken or
39308# incompatible versions:
39309# SysV /etc/install, /usr/sbin/install
39310# SunOS /usr/etc/install
39311# IRIX /sbin/install
39312# AIX /bin/install
39313# AmigaOS /C/install, which installs bootblocks on floppy discs
39314# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
39315# AFS /usr/afsws/bin/install, which mishandles nonexistent args
39316# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
ac1cb8d3 39317# OS/2's system install, which has a completely different semantic
a848cd7e
SC
39318# ./install, which can be erroneously created by make from ./install.sh.
39319echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
39320echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
39321if test -z "$INSTALL"; then
39322if test "${ac_cv_path_install+set}" = set; then
39323 echo $ECHO_N "(cached) $ECHO_C" >&6
39324else
39325 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
39326for as_dir in $PATH
39327do
39328 IFS=$as_save_IFS
39329 test -z "$as_dir" && as_dir=.
39330 # Account for people who put trailing slashes in PATH elements.
39331case $as_dir/ in
39332 ./ | .// | /cC/* | \
39333 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
ac1cb8d3 39334 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
a848cd7e
SC
39335 /usr/ucb/* ) ;;
39336 *)
39337 # OSF1 and SCO ODT 3.0 have their own names for install.
39338 # Don't use installbsd from OSF since it installs stuff as root
39339 # by default.
39340 for ac_prog in ginstall scoinst install; do
39341 for ac_exec_ext in '' $ac_executable_extensions; do
ac1cb8d3
VS
39342 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
39343 if test $ac_prog = install &&
39344 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
39345 # AIX install. It has an incompatible calling convention.
39346 :
39347 elif test $ac_prog = install &&
39348 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
39349 # program-specific install script used by HP pwplus--don't use.
39350 :
39351 else
39352 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
39353 break 3
39354 fi
39355 fi
a848cd7e
SC
39356 done
39357 done
39358 ;;
39359esac
39360done
39361
39362
39363fi
39364 if test "${ac_cv_path_install+set}" = set; then
39365 INSTALL=$ac_cv_path_install
39366 else
39367 # As a last resort, use the slow shell script. We don't cache a
39368 # path for INSTALL within a source directory, because that will
39369 # break other packages using the cache if that directory is
39370 # removed, or if the path is relative.
39371 INSTALL=$ac_install_sh
39372 fi
39373fi
39374echo "$as_me:$LINENO: result: $INSTALL" >&5
39375echo "${ECHO_T}$INSTALL" >&6
39376
39377# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
39378# It thinks the first close brace ends the variable substitution.
39379test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
39380
39381test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
39382
39383test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
39384
39385 echo "$as_me:$LINENO: checking whether ln -s works" >&5
39386echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
39387LN_S=$as_ln_s
39388if test "$LN_S" = "ln -s"; then
39389 echo "$as_me:$LINENO: result: yes" >&5
39390echo "${ECHO_T}yes" >&6
39391else
39392 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
39393echo "${ECHO_T}no, using $LN_S" >&6
39394fi
39395
39396
39397 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
39398echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
ac1cb8d3 39399set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
a848cd7e
SC
39400if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
39401 echo $ECHO_N "(cached) $ECHO_C" >&6
39402else
39403 cat >conftest.make <<\_ACEOF
39404all:
39405 @echo 'ac_maketemp="$(MAKE)"'
39406_ACEOF
39407# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
39408eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
39409if test -n "$ac_maketemp"; then
39410 eval ac_cv_prog_make_${ac_make}_set=yes
39411else
39412 eval ac_cv_prog_make_${ac_make}_set=no
39413fi
39414rm -f conftest.make
39415fi
39416if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
39417 echo "$as_me:$LINENO: result: yes" >&5
39418echo "${ECHO_T}yes" >&6
39419 SET_MAKE=
39420else
39421 echo "$as_me:$LINENO: result: no" >&5
39422echo "${ECHO_T}no" >&6
39423 SET_MAKE="MAKE=${MAKE-make}"
39424fi
39425
39426
39427
39428 if test -n "$ac_tool_prefix"; then
39429 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
39430set dummy ${ac_tool_prefix}ar; ac_word=$2
39431echo "$as_me:$LINENO: checking for $ac_word" >&5
39432echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
39433if test "${ac_cv_prog_AR+set}" = set; then
39434 echo $ECHO_N "(cached) $ECHO_C" >&6
39435else
39436 if test -n "$AR"; then
39437 ac_cv_prog_AR="$AR" # Let the user override the test.
39438else
39439as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
39440for as_dir in $PATH
39441do
39442 IFS=$as_save_IFS
39443 test -z "$as_dir" && as_dir=.
39444 for ac_exec_ext in '' $ac_executable_extensions; do
39445 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
39446 ac_cv_prog_AR="${ac_tool_prefix}ar"
39447 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
39448 break 2
39449 fi
39450done
39451done
39452
39453fi
39454fi
39455AR=$ac_cv_prog_AR
39456if test -n "$AR"; then
39457 echo "$as_me:$LINENO: result: $AR" >&5
39458echo "${ECHO_T}$AR" >&6
39459else
39460 echo "$as_me:$LINENO: result: no" >&5
39461echo "${ECHO_T}no" >&6
39462fi
39463
39464fi
39465if test -z "$ac_cv_prog_AR"; then
39466 ac_ct_AR=$AR
39467 # Extract the first word of "ar", so it can be a program name with args.
39468set dummy ar; ac_word=$2
39469echo "$as_me:$LINENO: checking for $ac_word" >&5
39470echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
39471if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
39472 echo $ECHO_N "(cached) $ECHO_C" >&6
39473else
39474 if test -n "$ac_ct_AR"; then
39475 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
39476else
39477as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
39478for as_dir in $PATH
39479do
39480 IFS=$as_save_IFS
39481 test -z "$as_dir" && as_dir=.
39482 for ac_exec_ext in '' $ac_executable_extensions; do
39483 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
39484 ac_cv_prog_ac_ct_AR="ar"
39485 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
39486 break 2
39487 fi
39488done
39489done
39490
39491 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
39492fi
39493fi
39494ac_ct_AR=$ac_cv_prog_ac_ct_AR
39495if test -n "$ac_ct_AR"; then
39496 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
39497echo "${ECHO_T}$ac_ct_AR" >&6
39498else
39499 echo "$as_me:$LINENO: result: no" >&5
39500echo "${ECHO_T}no" >&6
39501fi
39502
39503 AR=$ac_ct_AR
39504else
39505 AR="$ac_cv_prog_AR"
39506fi
39507
39508 if test -n "$ac_tool_prefix"; then
39509 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
39510set dummy ${ac_tool_prefix}strip; ac_word=$2
39511echo "$as_me:$LINENO: checking for $ac_word" >&5
39512echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
39513if test "${ac_cv_prog_STRIP+set}" = set; then
39514 echo $ECHO_N "(cached) $ECHO_C" >&6
39515else
39516 if test -n "$STRIP"; then
39517 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
39518else
39519as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
39520for as_dir in $PATH
39521do
39522 IFS=$as_save_IFS
39523 test -z "$as_dir" && as_dir=.
39524 for ac_exec_ext in '' $ac_executable_extensions; do
39525 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
39526 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
39527 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
39528 break 2
39529 fi
39530done
39531done
39532
39533fi
39534fi
39535STRIP=$ac_cv_prog_STRIP
39536if test -n "$STRIP"; then
39537 echo "$as_me:$LINENO: result: $STRIP" >&5
39538echo "${ECHO_T}$STRIP" >&6
39539else
39540 echo "$as_me:$LINENO: result: no" >&5
39541echo "${ECHO_T}no" >&6
39542fi
39543
39544fi
39545if test -z "$ac_cv_prog_STRIP"; then
39546 ac_ct_STRIP=$STRIP
39547 # Extract the first word of "strip", so it can be a program name with args.
39548set dummy strip; ac_word=$2
39549echo "$as_me:$LINENO: checking for $ac_word" >&5
39550echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
39551if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
39552 echo $ECHO_N "(cached) $ECHO_C" >&6
39553else
39554 if test -n "$ac_ct_STRIP"; then
39555 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
39556else
39557as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
39558for as_dir in $PATH
39559do
39560 IFS=$as_save_IFS
39561 test -z "$as_dir" && as_dir=.
39562 for ac_exec_ext in '' $ac_executable_extensions; do
39563 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
39564 ac_cv_prog_ac_ct_STRIP="strip"
39565 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
39566 break 2
39567 fi
39568done
39569done
39570
39571 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
39572fi
39573fi
39574ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
39575if test -n "$ac_ct_STRIP"; then
39576 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
39577echo "${ECHO_T}$ac_ct_STRIP" >&6
39578else
39579 echo "$as_me:$LINENO: result: no" >&5
39580echo "${ECHO_T}no" >&6
39581fi
39582
39583 STRIP=$ac_ct_STRIP
39584else
39585 STRIP="$ac_cv_prog_STRIP"
39586fi
39587
39588 if test -n "$ac_tool_prefix"; then
39589 # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
39590set dummy ${ac_tool_prefix}nm; ac_word=$2
39591echo "$as_me:$LINENO: checking for $ac_word" >&5
39592echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
39593if test "${ac_cv_prog_NM+set}" = set; then
39594 echo $ECHO_N "(cached) $ECHO_C" >&6
39595else
39596 if test -n "$NM"; then
39597 ac_cv_prog_NM="$NM" # Let the user override the test.
39598else
39599as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
39600for as_dir in $PATH
39601do
39602 IFS=$as_save_IFS
39603 test -z "$as_dir" && as_dir=.
39604 for ac_exec_ext in '' $ac_executable_extensions; do
39605 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
39606 ac_cv_prog_NM="${ac_tool_prefix}nm"
39607 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
39608 break 2
39609 fi
39610done
39611done
39612
39613fi
39614fi
39615NM=$ac_cv_prog_NM
39616if test -n "$NM"; then
39617 echo "$as_me:$LINENO: result: $NM" >&5
39618echo "${ECHO_T}$NM" >&6
39619else
39620 echo "$as_me:$LINENO: result: no" >&5
39621echo "${ECHO_T}no" >&6
39622fi
39623
39624fi
39625if test -z "$ac_cv_prog_NM"; then
39626 ac_ct_NM=$NM
39627 # Extract the first word of "nm", so it can be a program name with args.
39628set dummy nm; ac_word=$2
39629echo "$as_me:$LINENO: checking for $ac_word" >&5
39630echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
39631if test "${ac_cv_prog_ac_ct_NM+set}" = set; then
39632 echo $ECHO_N "(cached) $ECHO_C" >&6
39633else
39634 if test -n "$ac_ct_NM"; then
39635 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
39636else
39637as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
39638for as_dir in $PATH
39639do
39640 IFS=$as_save_IFS
39641 test -z "$as_dir" && as_dir=.
39642 for ac_exec_ext in '' $ac_executable_extensions; do
39643 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
39644 ac_cv_prog_ac_ct_NM="nm"
39645 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
39646 break 2
39647 fi
39648done
39649done
39650
39651 test -z "$ac_cv_prog_ac_ct_NM" && ac_cv_prog_ac_ct_NM=":"
39652fi
39653fi
39654ac_ct_NM=$ac_cv_prog_ac_ct_NM
39655if test -n "$ac_ct_NM"; then
39656 echo "$as_me:$LINENO: result: $ac_ct_NM" >&5
39657echo "${ECHO_T}$ac_ct_NM" >&6
39658else
39659 echo "$as_me:$LINENO: result: no" >&5
39660echo "${ECHO_T}no" >&6
39661fi
39662
39663 NM=$ac_ct_NM
39664else
39665 NM="$ac_cv_prog_NM"
39666fi
39667
39668
39669 case ${BAKEFILE_HOST} in
39670 *-hp-hpux* )
1e9e8aba 39671 INSTALL_DIR="mkdir -p"
a848cd7e
SC
39672 ;;
39673 *) INSTALL_DIR="$INSTALL -d"
39674 ;;
39675 esac
39676
39677
39678 LDFLAGS_GUI=
39679 case ${BAKEFILE_HOST} in
39680 *-*-cygwin* | *-*-mingw32* )
39681 LDFLAGS_GUI="-mwindows"
39682 esac
39683
39684
39685 fi
39686
39687 echo "$as_me:$LINENO: checking if make is GNU make" >&5
39688echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6
39689if test "${bakefile_cv_prog_makeisgnu+set}" = set; then
39690 echo $ECHO_N "(cached) $ECHO_C" >&6
39691else
39692
39693 if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
39694 egrep -s GNU > /dev/null); then
39695 bakefile_cv_prog_makeisgnu="yes"
39696 else
39697 bakefile_cv_prog_makeisgnu="no"
39698 fi
39699
39700fi
39701echo "$as_me:$LINENO: result: $bakefile_cv_prog_makeisgnu" >&5
39702echo "${ECHO_T}$bakefile_cv_prog_makeisgnu" >&6
39703
39704 if test "x$bakefile_cv_prog_makeisgnu" = "xyes"; then
39705 IF_GNU_MAKE=""
39706 else
39707 IF_GNU_MAKE="#"
39708 fi
39709
39710
39711
39712 PLATFORM_UNIX=0
39713 PLATFORM_WIN32=0
39714 PLATFORM_MSDOS=0
39715 PLATFORM_MAC=0
1e9e8aba 39716 PLATFORM_MACOS=0
a848cd7e
SC
39717 PLATFORM_MACOSX=0
39718 PLATFORM_OS2=0
1e9e8aba 39719 PLATFORM_BEOS=0
a848cd7e
SC
39720
39721 if test "x$BAKEFILE_FORCE_PLATFORM" = "x"; then
39722 case "${BAKEFILE_HOST}" in
39723 *-*-cygwin* | *-*-mingw32* )
39724 PLATFORM_WIN32=1
39725 ;;
39726 *-pc-msdosdjgpp )
39727 PLATFORM_MSDOS=1
39728 ;;
39729 *-pc-os2_emx | *-pc-os2-emx )
39730 PLATFORM_OS2=1
39731 ;;
39732 powerpc-*-darwin* )
39733 PLATFORM_MAC=1
39734 PLATFORM_MACOSX=1
39735 ;;
1e9e8aba
DE
39736 *-*-beos* )
39737 PLATFORM_BEOS=1
39738 ;;
39739 powerpc-apple-macos* )
39740 PLATFORM_MAC=1
39741 PLATFORM_MACOS=1
39742 ;;
a848cd7e
SC
39743 * )
39744 PLATFORM_UNIX=1
39745 ;;
39746 esac
39747 else
39748 case "$BAKEFILE_FORCE_PLATFORM" in
39749 win32 )
39750 PLATFORM_WIN32=1
39751 ;;
39752 msdos )
39753 PLATFORM_MSDOS=1
39754 ;;
39755 os2 )
39756 PLATFORM_OS2=1
39757 ;;
39758 darwin )
39759 PLATFORM_MAC=1
39760 PLATFORM_MACOSX=1
39761 ;;
39762 unix )
39763 PLATFORM_UNIX=1
39764 ;;
1e9e8aba
DE
39765 beos )
39766 PLATFORM_BEOS=1
39767 ;;
a848cd7e
SC
39768 * )
39769 { { echo "$as_me:$LINENO: error: Unknown platform: $BAKEFILE_FORCE_PLATFORM" >&5
39770echo "$as_me: error: Unknown platform: $BAKEFILE_FORCE_PLATFORM" >&2;}
39771 { (exit 1); exit 1; }; }
39772 ;;
39773 esac
39774 fi
39775
39776
39777
39778
39779
39780
39781
39782
39783
1e9e8aba
DE
39784
39785
a848cd7e
SC
39786 # Check whether --enable-omf or --disable-omf was given.
39787if test "${enable_omf+set}" = set; then
39788 enableval="$enable_omf"
39789 bk_os2_use_omf="$enableval"
39790fi;
39791
39792 case "${BAKEFILE_HOST}" in
39793 *-*-darwin* )
39794 CFLAGS="$CFLAGS -fno-common"
39795 CXXFLAGS="$CXXFLAGS -fno-common"
39796 ;;
39797
39798 *-pc-os2_emx | *-pc-os2-emx )
39799 if test "x$bk_os2_use_omf" = "xyes" ; then
39800 AR=emxomfar
39801 RANLIB=:
39802 LDFLAGS="-Zomf $LDFLAGS"
39803 CFLAGS="-Zomf $CFLAGS"
39804 CXXFLAGS="-Zomf $CXXFLAGS"
39805 OS2_LIBEXT="lib"
39806 else
39807 OS2_LIBEXT="a"
39808 fi
39809 ;;
1e9e8aba
DE
39810
39811 i*86-*-beos* )
39812 LDFLAGS="-L/boot/develop/lib/x86 $LDFLAGS"
39813 ;;
a848cd7e
SC
39814 esac
39815
39816
39817 SO_SUFFIX="so"
39818 SO_SUFFIX_MODULE="so"
39819 EXEEXT=""
39820 LIBPREFIX="lib"
39821 LIBEXT=".a"
39822 DLLPREFIX="lib"
39823 DLLPREFIX_MODULE=""
39824 DLLIMP_SUFFIX=""
39825
39826 case "${BAKEFILE_HOST}" in
39827 *-hp-hpux* )
39828 SO_SUFFIX="sl"
39829 SO_SUFFIX_MODULE="sl"
39830 ;;
39831 *-*-aix* )
39832 SO_SUFFIX="a"
39833 SO_SUFFIX_MODULE="a"
39834 ;;
39835 *-*-cygwin* | *-*-mingw32* )
39836 SO_SUFFIX="dll"
39837 SO_SUFFIX_MODULE="dll"
39838 DLLIMP_SUFFIX="dll.a"
39839 EXEEXT=".exe"
39840 DLLPREFIX=""
39841 ;;
39842 *-pc-msdosdjgpp )
39843 EXEEXT=".exe"
39844 DLLPREFIX=""
39845 ;;
39846 *-pc-os2_emx | *-pc-os2-emx )
39847 SO_SUFFIX="dll"
39848 SO_SUFFIX_MODULE="dll"
39849 DLLIMP_SUFFIX=$OS2_LIBEXT
39850 EXEEXT=".exe"
39851 DLLPREFIX=""
39852 LIBPREFIX=""
39853 LIBEXT=".$OS2_LIBEXT"
39854 ;;
39855 powerpc-*-darwin* )
39856 SO_SUFFIX="dylib"
39857 SO_SUFFIX_MODULE="bundle"
39858 ;;
39859 esac
39860
39861 if test "x$DLLIMP_SUFFIX" = "x" ; then
39862 DLLIMP_SUFFIX="$SO_SUFFIX"
39863 fi
39864
39865
39866
39867
39868
39869
39870
39871
39872
39873
39874
1e9e8aba
DE
39875 PIC_FLAG=""
39876 if test "x$GCC" = "xyes"; then
a848cd7e
SC
39877 PIC_FLAG="-fPIC"
39878 fi
39879
1e9e8aba
DE
39880 SHARED_LD_CC="\$(CC) -shared ${PIC_FLAG} -o"
39881 SHARED_LD_CXX="\$(CXX) -shared ${PIC_FLAG} -o"
39882
a848cd7e
SC
39883 case "${BAKEFILE_HOST}" in
39884 *-hp-hpux* )
1e9e8aba 39885 if test "x$GCC" != "xyes"; then
a848cd7e
SC
39886 LDFLAGS="$LDFLAGS -L/usr/lib"
39887
39888 SHARED_LD_CC="${CC} -b -o"
39889 SHARED_LD_CXX="${CXX} -b -o"
39890 PIC_FLAG="+Z"
39891 fi
39892 ;;
39893
39894 *-*-linux* )
39895 if test "x$GCC" != "xyes"; then
39896 echo "$as_me:$LINENO: checking for Intel compiler" >&5
39897echo $ECHO_N "checking for Intel compiler... $ECHO_C" >&6
39898if test "${bakefile_cv_prog_icc+set}" = set; then
39899 echo $ECHO_N "(cached) $ECHO_C" >&6
39900else
39901
39902 cat >conftest.$ac_ext <<_ACEOF
39903/* confdefs.h. */
39904_ACEOF
39905cat confdefs.h >>conftest.$ac_ext
39906cat >>conftest.$ac_ext <<_ACEOF
39907/* end confdefs.h. */
39908
39909int
39910main ()
39911{
39912
39913 #ifndef __INTEL_COMPILER
39914 #error Not icc
39915 #endif
39916
39917 ;
39918 return 0;
39919}
39920_ACEOF
39921rm -f conftest.$ac_objext
39922if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 39923 (eval $ac_compile) 2>conftest.er1
a848cd7e 39924 ac_status=$?
ac1cb8d3
VS
39925 grep -v '^ *+' conftest.er1 >conftest.err
39926 rm -f conftest.er1
39927 cat conftest.err >&5
a848cd7e
SC
39928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39929 (exit $ac_status); } &&
89be85c2
VS
39930 { ac_try='test -z "$ac_c_werror_flag"
39931 || test ! -s conftest.err'
ac1cb8d3
VS
39932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39933 (eval $ac_try) 2>&5
39934 ac_status=$?
39935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39936 (exit $ac_status); }; } &&
39937 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
39938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39939 (eval $ac_try) 2>&5
39940 ac_status=$?
39941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39942 (exit $ac_status); }; }; then
39943 bakefile_cv_prog_icc=yes
39944else
39945 echo "$as_me: failed program was:" >&5
39946sed 's/^/| /' conftest.$ac_ext >&5
39947
39948bakefile_cv_prog_icc=no
39949
39950fi
ac1cb8d3 39951rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
39952
39953fi
39954echo "$as_me:$LINENO: result: $bakefile_cv_prog_icc" >&5
39955echo "${ECHO_T}$bakefile_cv_prog_icc" >&6
39956 if test "$bakefile_cv_prog_icc" = "yes"; then
39957 PIC_FLAG="-KPIC"
39958 fi
39959 fi
39960 ;;
39961
39962 *-*-solaris2* )
39963 if test "x$GCC" != xyes ; then
39964 SHARED_LD_CC="${CC} -G -o"
39965 SHARED_LD_CXX="${CXX} -G -o"
39966 PIC_FLAG="-KPIC"
39967 fi
39968 ;;
39969
39970 *-*-darwin* )
39971
39972 echo "$as_me:$LINENO: checking for gcc 3.1 or later" >&5
39973echo $ECHO_N "checking for gcc 3.1 or later... $ECHO_C" >&6
39974if test "${wx_cv_gcc31+set}" = set; then
39975 echo $ECHO_N "(cached) $ECHO_C" >&6
39976else
39977
39978 cat >conftest.$ac_ext <<_ACEOF
39979/* confdefs.h. */
39980_ACEOF
39981cat confdefs.h >>conftest.$ac_ext
39982cat >>conftest.$ac_ext <<_ACEOF
39983/* end confdefs.h. */
39984
39985int
39986main ()
39987{
39988
39989 #if (__GNUC__ < 3) || \
39990 ((__GNUC__ == 3) && (__GNUC_MINOR__ < 1))
39991 #error old gcc
39992 #endif
39993
39994 ;
39995 return 0;
39996}
39997_ACEOF
39998rm -f conftest.$ac_objext
39999if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 40000 (eval $ac_compile) 2>conftest.er1
a848cd7e 40001 ac_status=$?
ac1cb8d3
VS
40002 grep -v '^ *+' conftest.er1 >conftest.err
40003 rm -f conftest.er1
40004 cat conftest.err >&5
a848cd7e
SC
40005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40006 (exit $ac_status); } &&
89be85c2
VS
40007 { ac_try='test -z "$ac_c_werror_flag"
40008 || test ! -s conftest.err'
ac1cb8d3
VS
40009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40010 (eval $ac_try) 2>&5
40011 ac_status=$?
40012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40013 (exit $ac_status); }; } &&
40014 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
40015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40016 (eval $ac_try) 2>&5
40017 ac_status=$?
40018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40019 (exit $ac_status); }; }; then
40020
40021 wx_cv_gcc31=yes
40022
40023else
40024 echo "$as_me: failed program was:" >&5
40025sed 's/^/| /' conftest.$ac_ext >&5
40026
40027
40028 wx_cv_gcc31=no
40029
40030
40031fi
ac1cb8d3 40032rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
40033
40034fi
40035echo "$as_me:$LINENO: result: $wx_cv_gcc31" >&5
40036echo "${ECHO_T}$wx_cv_gcc31" >&6
40037 if test "$wx_cv_gcc31" = "no"; then
473276a9
VS
40038
40039D='$'
40040cat <<EOF >shared-ld-sh
a848cd7e
SC
40041#!/bin/sh
40042#-----------------------------------------------------------------------------
40043#-- Name: distrib/mac/shared-ld-sh
40044#-- Purpose: Link a mach-o dynamic shared library for Darwin / Mac OS X
40045#-- Author: Gilles Depeyrot
40046#-- Copyright: (c) 2002 Gilles Depeyrot
40047#-- Licence: any use permitted
40048#-----------------------------------------------------------------------------
40049
40050verbose=0
40051args=""
40052objects=""
40053linking_flag="-dynamiclib"
40054
473276a9
VS
40055while test ${D}# -gt 0; do
40056 case ${D}1 in
a848cd7e
SC
40057
40058 -v)
40059 verbose=1
40060 ;;
40061
40062 -o|-compatibility_version|-current_version|-framework|-undefined|-install_name)
40063 # collect these options and values
473276a9 40064 args="${D}{args} ${D}1 ${D}2"
a848cd7e
SC
40065 shift
40066 ;;
40067
40068 -l*|-L*|-flat_namespace|-headerpad_max_install_names)
40069 # collect these options
473276a9 40070 args="${D}{args} ${D}1"
a848cd7e
SC
40071 ;;
40072
40073 -dynamiclib|-bundle)
473276a9 40074 linking_flag="${D}1"
a848cd7e
SC
40075 ;;
40076
40077 -*)
473276a9 40078 echo "shared-ld: unhandled option '${D}1'"
a848cd7e
SC
40079 exit 1
40080 ;;
40081
40082 *.o | *.a | *.dylib)
40083 # collect object files
473276a9 40084 objects="${D}{objects} ${D}1"
a848cd7e
SC
40085 ;;
40086
40087 *)
473276a9 40088 echo "shared-ld: unhandled argument '${D}1'"
a848cd7e
SC
40089 exit 1
40090 ;;
40091
40092 esac
40093 shift
40094done
40095
40096#
40097# Link one module containing all the others
40098#
473276a9
VS
40099if test ${D}{verbose} = 1; then
40100 echo "c++ -r -keep_private_externs -nostdlib ${D}{objects} -o master.${D}${D}.o"
a848cd7e 40101fi
473276a9
VS
40102c++ -r -keep_private_externs -nostdlib ${D}{objects} -o master.${D}${D}.o
40103status=${D}?
40104if test ${D}{status} != 0; then
40105 exit ${D}{status}
a848cd7e
SC
40106fi
40107
40108#
40109# Link the shared library from the single module created
40110#
473276a9
VS
40111if test ${D}{verbose} = 1; then
40112 echo "cc ${D}{linking_flag} master.${D}${D}.o ${D}{args}"
a848cd7e 40113fi
473276a9
VS
40114c++ ${D}{linking_flag} master.${D}${D}.o ${D}{args}
40115status=${D}?
40116if test ${D}{status} != 0; then
40117 exit ${D}{status}
a848cd7e
SC
40118fi
40119
40120#
40121# Remove intermediate module
40122#
473276a9 40123rm -f master.${D}${D}.o
a848cd7e
SC
40124
40125exit 0
40126EOF
473276a9 40127
a848cd7e
SC
40128 chmod +x shared-ld-sh
40129
40130 SHARED_LD_CC="`pwd`/shared-ld-sh -dynamiclib -headerpad_max_install_names -o"
40131 SHARED_LD_MODULE_CC="`pwd`/shared-ld-sh -bundle -headerpad_max_install_names -o"
40132 SHARED_LD_CXX="$SHARED_LD_CC"
40133 SHARED_LD_MODULE_CXX="$SHARED_LD_MODULE_CC"
40134 else
40135 SHARED_LD_CC="\${CC} -dynamiclib -single_module -headerpad_max_install_names -o"
40136 SHARED_LD_MODULE_CC="\${CC} -bundle -single_module -headerpad_max_install_names -o"
40137 SHARED_LD_CXX="\${CXX} -dynamiclib -single_module -headerpad_max_install_names -o"
40138 SHARED_LD_MODULE_CXX="\${CXX} -bundle -single_module -headerpad_max_install_names -o"
40139 fi
40140
40141 PIC_FLAG="-dynamic -fPIC"
40142 ;;
40143
40144 *-*-aix* )
40145 if test "x$GCC" != "xyes"; then
40146 # Extract the first word of "makeC++SharedLib", so it can be a program name with args.
40147set dummy makeC++SharedLib; ac_word=$2
40148echo "$as_me:$LINENO: checking for $ac_word" >&5
40149echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
40150if test "${ac_cv_prog_AIX_CXX_LD+set}" = set; then
40151 echo $ECHO_N "(cached) $ECHO_C" >&6
40152else
40153 if test -n "$AIX_CXX_LD"; then
40154 ac_cv_prog_AIX_CXX_LD="$AIX_CXX_LD" # Let the user override the test.
40155else
40156as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
40157for as_dir in $PATH
40158do
40159 IFS=$as_save_IFS
40160 test -z "$as_dir" && as_dir=.
40161 for ac_exec_ext in '' $ac_executable_extensions; do
40162 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
40163 ac_cv_prog_AIX_CXX_LD="makeC++SharedLib"
40164 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
40165 break 2
40166 fi
40167done
40168done
40169
40170 test -z "$ac_cv_prog_AIX_CXX_LD" && ac_cv_prog_AIX_CXX_LD="/usr/lpp/xlC/bin/makeC++SharedLib"
40171fi
40172fi
40173AIX_CXX_LD=$ac_cv_prog_AIX_CXX_LD
40174if test -n "$AIX_CXX_LD"; then
40175 echo "$as_me:$LINENO: result: $AIX_CXX_LD" >&5
40176echo "${ECHO_T}$AIX_CXX_LD" >&6
40177else
40178 echo "$as_me:$LINENO: result: no" >&5
40179echo "${ECHO_T}no" >&6
40180fi
40181
40182 SHARED_LD_CC="$AIX_CC_LD -p 0 -o"
40183 SHARED_LD_CXX="$AIX_CXX_LD -p 0 -o"
40184 fi
40185 ;;
40186
40187 *-*-beos* )
1e9e8aba
DE
40188 SHARED_LD_CC="${LD} -nostart -o"
40189 SHARED_LD_CXX="${LD} -nostart -o"
a848cd7e
SC
40190 ;;
40191
40192 *-*-irix* )
40193 if test "x$GCC" != "xyes"; then
40194 PIC_FLAG="-KPIC"
40195 fi
40196 ;;
40197
40198 *-*-cygwin* | *-*-mingw32* )
40199 PIC_FLAG=""
1e9e8aba
DE
40200 SHARED_LD_CC="\$(CC) -shared -o"
40201 SHARED_LD_CXX="\$(CXX) -shared -o"
a848cd7e
SC
40202 ;;
40203
40204 *-pc-os2_emx | *-pc-os2-emx )
b1d22ded
DE
40205 SHARED_LD_CC="`pwd`/dllar.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
40206 SHARED_LD_CXX="`pwd`/dllar.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
a848cd7e 40207 PIC_FLAG=""
473276a9
VS
40208
40209D='$'
40210cat <<EOF >dllar.sh
40211#!/bin/sh
40212#
40213# dllar - a tool to build both a .dll and an .a file
40214# from a set of object (.o) files for EMX/OS2.
40215#
40216# Written by Andrew Zabolotny, bit@freya.etu.ru
40217# Ported to Unix like shell by Stefan Neis, Stefan.Neis@t-online.de
40218#
40219# This script will accept a set of files on the command line.
40220# All the public symbols from the .o files will be exported into
40221# a .DEF file, then linker will be run (through gcc) against them to
40222# build a shared library consisting of all given .o files. All libraries
40223# (.a) will be first decompressed into component .o files then act as
40224# described above. You can optionally give a description (-d "description")
40225# which will be put into .DLL. To see the list of accepted options (as well
40226# as command-line format) simply run this program without options. The .DLL
40227# is built to be imported by name (there is no guarantee that new versions
40228# of the library you build will have same ordinals for same symbols).
40229#
40230# dllar is free software; you can redistribute it and/or modify
40231# it under the terms of the GNU General Public License as published by
40232# the Free Software Foundation; either version 2, or (at your option)
40233# any later version.
40234#
40235# dllar is distributed in the hope that it will be useful,
40236# but WITHOUT ANY WARRANTY; without even the implied warranty of
40237# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
40238# GNU General Public License for more details.
40239#
40240# You should have received a copy of the GNU General Public License
40241# along with dllar; see the file COPYING. If not, write to the Free
40242# Software Foundation, 59 Temple Place - Suite 330, Boston, MA
40243# 02111-1307, USA.
40244
40245# To successfuly run this program you will need:
40246# - Current drive should have LFN support (HPFS, ext2, network, etc)
40247# (Sometimes dllar generates filenames which won't fit 8.3 scheme)
40248# - gcc
40249# (used to build the .dll)
40250# - emxexp
40251# (used to create .def file from .o files)
40252# - emximp
40253# (used to create .a file from .def file)
40254# - GNU text utilites (cat, sort, uniq)
40255# used to process emxexp output
40256# - GNU file utilities (mv, rm)
40257# - GNU sed
40258# - lxlite (optional, see flag below)
40259# (used for general .dll cleanup)
40260#
40261
40262flag_USE_LXLITE=1;
40263
40264#
40265# helper functions
40266# basnam, variant of basename, which does _not_ remove the path, _iff_
40267# second argument (suffix to remove) is given
40268basnam(){
40269 case ${D}# in
40270 1)
1e9e8aba 40271 echo ${D}1 | sed 's/.*\\///' | sed 's/.*\\\\//'
473276a9
VS
40272 ;;
40273 2)
40274 echo ${D}1 | sed 's/'${D}2'${D}//'
40275 ;;
40276 *)
40277 echo "error in basnam ${D}*"
40278 exit 8
40279 ;;
40280 esac
40281}
40282
40283# Cleanup temporary files and output
40284CleanUp() {
40285 cd ${D}curDir
40286 for i in ${D}inputFiles ; do
40287 case ${D}i in
40288 *!)
40289 rm -rf \`basnam ${D}i !\`
40290 ;;
40291 *)
40292 ;;
40293 esac
40294 done
40295
40296 # Kill result in case of failure as there is just to many stupid make/nmake
40297 # things out there which doesn't do this.
1e9e8aba 40298 if [ ${D}# -eq 0 ]; then
473276a9
VS
40299 rm -f ${D}arcFile ${D}arcFile2 ${D}defFile ${D}dllFile
40300 fi
40301}
40302
40303# Print usage and exit script with rc=1.
40304PrintHelp() {
b1d22ded
DE
40305 echo 'Usage: dllar.sh [-o[utput] output_file] [-i[mport] importlib_name]'
40306 echo ' [-name-mangler-script script.sh]'
40307 echo ' [-d[escription] "dll descrption"] [-cc "CC"] [-f[lags] "CFLAGS"]'
40308 echo ' [-ord[inals]] -ex[clude] "symbol(s)"'
40309 echo ' [-libf[lags] "{INIT|TERM}{GLOBAL|INSTANCE}"] [-nocrt[dll]] [-nolxl[ite]]'
1e9e8aba 40310 echo ' [*.o] [*.a]'
473276a9
VS
40311 echo '*> "output_file" should have no extension.'
40312 echo ' If it has the .o, .a or .dll extension, it is automatically removed.'
40313 echo ' The import library name is derived from this and is set to "name".a,'
40314 echo ' unless overridden by -import'
40315 echo '*> "importlib_name" should have no extension.'
40316 echo ' If it has the .o, or .a extension, it is automatically removed.'
40317 echo ' This name is used as the import library name and may be longer and'
40318 echo ' more descriptive than the DLL name which has to follow the old '
40319 echo ' 8.3 convention of FAT.'
b1d22ded
DE
40320 echo '*> "script.sh may be given to override the output_file name by a'
40321 echo ' different name. It is mainly useful if the regular make process'
40322 echo ' of some package does not take into account OS/2 restriction of'
40323 echo ' DLL name lengths. It takes the importlib name as input and is'
40324 echo ' supposed to procude a shorter name as output. The script should'
40325 echo ' expect to get importlib_name without extension and should produce'
40326 echo ' a (max.) 8 letter name without extension.'
473276a9
VS
40327 echo '*> "cc" is used to use another GCC executable. (default: gcc.exe)'
40328 echo '*> "flags" should be any set of valid GCC flags. (default: -s -Zcrtdll)'
40329 echo ' These flags will be put at the start of GCC command line.'
b1d22ded
DE
40330 echo '*> -ord[inals] tells dllar to export entries by ordinals. Be careful.'
40331 echo '*> -ex[clude] defines symbols which will not be exported. You can define'
473276a9
VS
40332 echo ' multiple symbols, for example -ex "myfunc yourfunc _GLOBAL*".'
40333 echo ' If the last character of a symbol is "*", all symbols beginning'
40334 echo ' with the prefix before "*" will be exclude, (see _GLOBAL* above).'
b1d22ded 40335 echo '*> -libf[lags] can be used to add INITGLOBAL/INITINSTANCE and/or'
473276a9 40336 echo ' TERMGLOBAL/TERMINSTANCE flags to the dynamically-linked library.'
b1d22ded 40337 echo '*> -nocrt[dll] switch will disable linking the library against emx''s'
473276a9 40338 echo ' C runtime DLLs.'
b1d22ded 40339 echo '*> -nolxl[ite] switch will disable running lxlite on the resulting DLL.'
473276a9
VS
40340 echo '*> All other switches (for example -L./ or -lmylib) will be passed'
40341 echo ' unchanged to GCC at the end of command line.'
40342 echo '*> If you create a DLL from a library and you do not specify -o,'
40343 echo ' the basename for DLL and import library will be set to library name,'
40344 echo ' the initial library will be renamed to 'name'_s.a (_s for static)'
40345 echo ' i.e. "dllar gcc.a" will create gcc.dll and gcc.a, and the initial'
40346 echo ' library will be renamed into gcc_s.a.'
40347 echo '--------'
40348 echo 'Example:'
40349 echo ' dllar -o gcc290.dll libgcc.a -d "GNU C runtime library" -ord'
40350 echo ' -ex "__main __ctordtor*" -libf "INITINSTANCE TERMINSTANCE"'
40351 CleanUp
40352 exit 1
40353}
40354
40355# Execute a command.
40356# If exit code of the commnad <> 0 CleanUp() is called and we'll exit the script.
40357# @Uses Whatever CleanUp() uses.
40358doCommand() {
40359 echo "${D}*"
40360 eval ${D}*
40361 rcCmd=${D}?
40362
1e9e8aba 40363 if [ ${D}rcCmd -ne 0 ]; then
473276a9
VS
40364 echo "command failed, exit code="${D}rcCmd
40365 CleanUp
40366 exit ${D}rcCmd
40367 fi
40368}
40369
40370# main routine
40371# setup globals
40372cmdLine=${D}*
40373outFile=""
40374outimpFile=""
40375inputFiles=""
b1d22ded 40376renameScript=""
473276a9
VS
40377description=""
40378CC=gcc.exe
40379CFLAGS="-s -Zcrtdll"
40380EXTRA_CFLAGS=""
40381EXPORT_BY_ORDINALS=0
40382exclude_symbols=""
40383library_flags=""
40384curDir=\`pwd\`
40385curDirS=curDir
40386case ${D}curDirS in
40387*/)
40388 ;;
40389*)
40390 curDirS=${D}{curDirS}"/"
40391 ;;
40392esac
40393# Parse commandline
40394libsToLink=0
b1d22ded 40395omfLinking=0
1e9e8aba 40396while [ ${D}1 ]; do
473276a9
VS
40397 case ${D}1 in
40398 -ord*)
40399 EXPORT_BY_ORDINALS=1;
40400 ;;
40401 -o*)
40402 shift
40403 outFile=${D}1
40404 ;;
40405 -i*)
40406 shift
40407 outimpFile=${D}1
40408 ;;
b1d22ded
DE
40409 -name-mangler-script)
40410 shift
40411 renameScript=${D}1
40412 ;;
473276a9
VS
40413 -d*)
40414 shift
40415 description=${D}1
40416 ;;
40417 -f*)
40418 shift
40419 CFLAGS=${D}1
40420 ;;
40421 -c*)
40422 shift
40423 CC=${D}1
40424 ;;
40425 -h*)
40426 PrintHelp
40427 ;;
40428 -ex*)
40429 shift
40430 exclude_symbols=${D}{exclude_symbols}${D}1" "
40431 ;;
40432 -libf*)
40433 shift
40434 library_flags=${D}{library_flags}${D}1" "
40435 ;;
40436 -nocrt*)
40437 CFLAGS="-s"
40438 ;;
40439 -nolxl*)
40440 flag_USE_LXLITE=0
40441 ;;
40442 -* | /*)
40443 case ${D}1 in
40444 -L* | -l*)
40445 libsToLink=1
40446 ;;
b1d22ded
DE
40447 -Zomf)
40448 omfLinking=1
40449 ;;
473276a9
VS
40450 *)
40451 ;;
40452 esac
40453 EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1
40454 ;;
b1d22ded
DE
40455 *.dll)
40456 EXTRA_CFLAGS="${D}{EXTRA_CFLAGS} \`basnam ${D}1 .dll\`"
40457 if [ ${D}omfLinking -eq 1 ]; then
40458 EXTRA_CFLAGS="${D}{EXTRA_CFLAGS}.lib"
40459 else
40460 EXTRA_CFLAGS="${D}{EXTRA_CFLAGS}.a"
40461 fi
40462 ;;
473276a9
VS
40463 *)
40464 found=0;
1e9e8aba 40465 if [ ${D}libsToLink -ne 0 ]; then
473276a9
VS
40466 EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1
40467 else
40468 for file in ${D}1 ; do
1e9e8aba 40469 if [ -f ${D}file ]; then
473276a9
VS
40470 inputFiles="${D}{inputFiles} ${D}file"
40471 found=1
40472 fi
40473 done
1e9e8aba 40474 if [ ${D}found -eq 0 ]; then
473276a9
VS
40475 echo "ERROR: No file(s) found: "${D}1
40476 exit 8
40477 fi
40478 fi
40479 ;;
40480 esac
40481 shift
40482done # iterate cmdline words
40483
40484#
1e9e8aba 40485if [ -z "${D}inputFiles" ]; then
473276a9
VS
40486 echo "dllar: no input files"
40487 PrintHelp
40488fi
40489
40490# Now extract all .o files from .a files
40491newInputFiles=""
40492for file in ${D}inputFiles ; do
40493 case ${D}file in
40494 *.a | *.lib)
40495 case ${D}file in
40496 *.a)
40497 suffix=".a"
40498 AR="ar"
40499 ;;
40500 *.lib)
40501 suffix=".lib"
40502 AR="emxomfar"
40503 EXTRA_CFLAGS="${D}EXTRA_CFLAGS -Zomf"
40504 ;;
40505 *)
40506 ;;
40507 esac
40508 dirname=\`basnam ${D}file ${D}suffix\`"_%"
40509 mkdir ${D}dirname
1e9e8aba 40510 if [ ${D}? -ne 0 ]; then
473276a9
VS
40511 echo "Failed to create subdirectory ./${D}dirname"
40512 CleanUp
40513 exit 8;
40514 fi
40515 # Append '!' to indicate archive
40516 newInputFiles="${D}newInputFiles ${D}{dirname}!"
40517 doCommand "cd ${D}dirname; ${D}AR x ../${D}file"
40518 cd ${D}curDir
40519 found=0;
40520 for subfile in ${D}dirname/*.o* ; do
1e9e8aba 40521 if [ -f ${D}subfile ]; then
473276a9 40522 found=1
1e9e8aba 40523 if [ -s ${D}subfile ]; then
473276a9
VS
40524 # FIXME: This should be: is file size > 32 byte, _not_ > 0!
40525 newInputFiles="${D}newInputFiles ${D}subfile"
40526 fi
40527 fi
40528 done
1e9e8aba
DE
40529 if [ ${D}found -eq 0 ]; then
40530 echo "WARNING: there are no files in archive \\'${D}file\\'"
473276a9
VS
40531 fi
40532 ;;
40533 *)
40534 newInputFiles="${D}{newInputFiles} ${D}file"
40535 ;;
40536 esac
40537done
40538inputFiles="${D}newInputFiles"
40539
40540# Output filename(s).
40541do_backup=0;
1e9e8aba 40542if [ -z ${D}outFile ]; then
473276a9
VS
40543 do_backup=1;
40544 set outFile ${D}inputFiles; outFile=${D}2
40545fi
40546
40547# If it is an archive, remove the '!' and the '_%' suffixes
40548case ${D}outFile in
40549*_%!)
40550 outFile=\`basnam ${D}outFile _%!\`
40551 ;;
40552*)
40553 ;;
40554esac
40555case ${D}outFile in
40556*.dll)
40557 outFile=\`basnam ${D}outFile .dll\`
40558 ;;
40559*.DLL)
40560 outFile=\`basnam ${D}outFile .DLL\`
40561 ;;
40562*.o)
40563 outFile=\`basnam ${D}outFile .o\`
40564 ;;
40565*.obj)
40566 outFile=\`basnam ${D}outFile .obj\`
40567 ;;
40568*.a)
40569 outFile=\`basnam ${D}outFile .a\`
40570 ;;
40571*.lib)
40572 outFile=\`basnam ${D}outFile .lib\`
40573 ;;
40574*)
40575 ;;
40576esac
40577case ${D}outimpFile in
40578*.a)
40579 outimpFile=\`basnam ${D}outimpFile .a\`
40580 ;;
40581*.lib)
40582 outimpFile=\`basnam ${D}outimpFile .lib\`
40583 ;;
40584*)
40585 ;;
40586esac
1e9e8aba 40587if [ -z ${D}outimpFile ]; then
473276a9
VS
40588 outimpFile=${D}outFile
40589fi
40590defFile="${D}{outFile}.def"
40591arcFile="${D}{outimpFile}.a"
40592arcFile2="${D}{outimpFile}.lib"
b1d22ded
DE
40593
40594#create ${D}dllFile as something matching 8.3 restrictions,
40595if [ -z ${D}renameScript ] ; then
40596 dllFile="${D}outFile"
40597else
40598 dllFile=\`${D}renameScript ${D}outimpFile\`
40599fi
473276a9 40600
1e9e8aba
DE
40601if [ ${D}do_backup -ne 0 ] ; then
40602 if [ -f ${D}arcFile ] ; then
473276a9
VS
40603 doCommand "mv ${D}arcFile ${D}{outFile}_s.a"
40604 fi
1e9e8aba 40605 if [ -f ${D}arcFile2 ] ; then
473276a9
VS
40606 doCommand "mv ${D}arcFile2 ${D}{outFile}_s.lib"
40607 fi
40608fi
40609
40610# Extract public symbols from all the object files.
40611tmpdefFile=${D}{defFile}_%
40612rm -f ${D}tmpdefFile
40613for file in ${D}inputFiles ; do
40614 case ${D}file in
40615 *!)
40616 ;;
40617 *)
40618 doCommand "emxexp -u ${D}file >> ${D}tmpdefFile"
40619 ;;
40620 esac
40621done
40622
40623# Create the def file.
40624rm -f ${D}defFile
40625echo "LIBRARY \`basnam ${D}dllFile\` ${D}library_flags" >> ${D}defFile
b1d22ded
DE
40626dllFile="${D}{dllFile}.dll"
40627if [ ! -z ${D}description ]; then
1e9e8aba 40628 echo "DESCRIPTION \\"${D}{description}\\"" >> ${D}defFile
473276a9
VS
40629fi
40630echo "EXPORTS" >> ${D}defFile
40631
40632doCommand "cat ${D}tmpdefFile | sort.exe | uniq.exe > ${D}{tmpdefFile}%"
40633grep -v "^ *;" < ${D}{tmpdefFile}% | grep -v "^ *${D}" >${D}tmpdefFile
40634
40635# Checks if the export is ok or not.
40636for word in ${D}exclude_symbols; do
40637 grep -v ${D}word < ${D}tmpdefFile >${D}{tmpdefFile}%
40638 mv ${D}{tmpdefFile}% ${D}tmpdefFile
40639done
40640
40641
1e9e8aba
DE
40642if [ ${D}EXPORT_BY_ORDINALS -ne 0 ]; then
40643 sed "=" < ${D}tmpdefFile | \\
473276a9
VS
40644 sed '
40645 N
40646 : loop
1e9e8aba 40647 s/^\\([0-9]\\+\\)\\([^;]*\\)\\(;.*\\)\\?/\\2 @\\1 NONAME/
473276a9
VS
40648 t loop
40649 ' > ${D}{tmpdefFile}%
40650 grep -v "^ *${D}" < ${D}{tmpdefFile}% > ${D}tmpdefFile
40651else
40652 rm -f ${D}{tmpdefFile}%
40653fi
40654cat ${D}tmpdefFile >> ${D}defFile
40655rm -f ${D}tmpdefFile
40656
40657# Do linking, create implib, and apply lxlite.
40658gccCmdl="";
40659for file in ${D}inputFiles ; do
40660 case ${D}file in
40661 *!)
40662 ;;
40663 *)
40664 gccCmdl="${D}gccCmdl ${D}file"
40665 ;;
40666 esac
40667done
40668doCommand "${D}CC ${D}CFLAGS -Zdll -o ${D}dllFile ${D}defFile ${D}gccCmdl ${D}EXTRA_CFLAGS"
40669touch "${D}{outFile}.dll"
40670
40671doCommand "emximp -o ${D}arcFile ${D}defFile"
1e9e8aba 40672if [ ${D}flag_USE_LXLITE -ne 0 ]; then
473276a9 40673 add_flags="";
1e9e8aba 40674 if [ ${D}EXPORT_BY_ORDINALS -ne 0 ]; then
473276a9
VS
40675 add_flags="-ynd"
40676 fi
40677 doCommand "lxlite -cs -t: -mrn -mln ${D}add_flags ${D}dllFile"
40678fi
40679doCommand "emxomf -s -l ${D}arcFile"
40680
40681# Successful exit.
40682CleanUp 1
40683exit 0
40684EOF
40685
40686 chmod +x dllar.sh
a848cd7e
SC
40687 ;;
40688
1e9e8aba 40689 powerpc-apple-macos* | \
a848cd7e
SC
40690 *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | \
40691 *-*-sunos4* | \
40692 *-*-osf* | \
40693 *-*-dgux5* | \
40694 *-*-sysv5* )
40695 ;;
40696
40697 *)
40698 { { echo "$as_me:$LINENO: error: unknown system type $BAKEFILE_HOST." >&5
40699echo "$as_me: error: unknown system type $BAKEFILE_HOST." >&2;}
40700 { (exit 1); exit 1; }; }
40701 esac
40702
2057db16
VS
40703 if test "x$PIC_FLAG" != "x" ; then
40704 PIC_FLAG="$PIC_FLAG -DPIC"
40705 fi
40706
a848cd7e
SC
40707 if test "x$SHARED_LD_MODULE_CC" = "x" ; then
40708 SHARED_LD_MODULE_CC="$SHARED_LD_CC"
40709 fi
40710 if test "x$SHARED_LD_MODULE_CXX" = "x" ; then
40711 SHARED_LD_MODULE_CXX="$SHARED_LD_CXX"
40712 fi
40713
40714
40715
40716
40717
40718
40719
40720
40721 USE_SOVERSION=0
40722 USE_SOVERLINUX=0
40723 USE_SOVERSOLARIS=0
40724 USE_SOSYMLINKS=0
40725 USE_MACVERSION=0
40726 SONAME_FLAG=
40727
40728 case "${BAKEFILE_HOST}" in
b1d22ded 40729 *-*-linux* | *-*-freebsd* )
5f652d0d
VS
40730 SONAME_FLAG="-Wl,-soname,"
40731 USE_SOVERSION=1
40732 USE_SOVERLINUX=1
40733 USE_SOSYMLINKS=1
40734 ;;
40735
a848cd7e
SC
40736 *-*-solaris2* )
40737 SONAME_FLAG="-h "
40738 USE_SOVERSION=1
40739 USE_SOVERSOLARIS=1
40740 USE_SOSYMLINKS=1
40741 ;;
40742
40743 *-*-darwin* )
40744 USE_MACVERSION=1
40745 USE_SOVERSION=1
40746 USE_SOSYMLINKS=1
40747 ;;
40748 esac
40749
40750
40751
40752
40753
40754
40755
40756
40757
40758 echo "$as_me:$LINENO: checking for dependency tracking method" >&5
40759echo $ECHO_N "checking for dependency tracking method... $ECHO_C" >&6
40760 DEPS_TRACKING=0
40761
40762 if test "x$GCC" = "xyes"; then
40763 DEPSMODE=gcc
40764 DEPS_TRACKING=1
40765 case "${BAKEFILE_HOST}" in
40766 powerpc-*-darwin* )
40767 DEPSFLAG_GCC="-no-cpp-precomp -MMD"
40768 ;;
40769 * )
40770 DEPSFLAG_GCC="-MMD"
40771 ;;
40772 esac
40773 echo "$as_me:$LINENO: result: gcc" >&5
40774echo "${ECHO_T}gcc" >&6
b1d22ded 40775 elif test "x$MWCC" = "xyes"; then
04840eaa 40776 DEPSMODE=gcc
b1d22ded 40777 DEPS_TRACKING=1
04840eaa 40778 DEPSFLAG_GCC="-MMD"
b1d22ded
DE
40779 echo "$as_me:$LINENO: result: mwcc" >&5
40780echo "${ECHO_T}mwcc" >&6
a848cd7e
SC
40781 else
40782 echo "$as_me:$LINENO: result: none" >&5
40783echo "${ECHO_T}none" >&6
40784 fi
40785
40786 if test $DEPS_TRACKING = 1 ; then
473276a9
VS
40787
40788D='$'
40789cat <<EOF >bk-deps
a848cd7e
SC
40790#!/bin/sh
40791
40792# This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf
40793# script. It is used to track C/C++ files dependencies in portable way.
40794#
40795# Permission is given to use this file in any way.
40796
473276a9 40797DEPSMODE=${DEPSMODE}
a848cd7e 40798DEPSDIR=.deps
473276a9 40799DEPSFLAG_GCC="${DEPSFLAG_GCC}"
a848cd7e 40800
473276a9 40801mkdir -p ${D}DEPSDIR
a848cd7e 40802
473276a9
VS
40803if test ${D}DEPSMODE = gcc ; then
40804 ${D}* ${D}{DEPSFLAG_GCC}
40805 status=${D}?
40806 if test ${D}{status} != 0 ; then
40807 exit ${D}{status}
a848cd7e
SC
40808 fi
40809 # move created file to the location we want it in:
473276a9
VS
40810 while test ${D}# -gt 0; do
40811 case "${D}1" in
a848cd7e
SC
40812 -o )
40813 shift
473276a9 40814 objfile=${D}1
a848cd7e
SC
40815 ;;
40816 -* )
40817 ;;
40818 * )
473276a9 40819 srcfile=${D}1
a848cd7e
SC
40820 ;;
40821 esac
40822 shift
40823 done
1e9e8aba
DE
40824 depfile=\`basename ${D}srcfile | sed -e 's/\\..*${D}/.d/g'\`
40825 depobjname=\`echo ${D}depfile |sed -e 's/\\.d/.o/g'\`
473276a9
VS
40826 if test -f ${D}depfile ; then
40827 sed -e "s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{DEPSDIR}/${D}{objfile}.d
40828 rm -f ${D}depfile
a848cd7e 40829 else
1e9e8aba 40830 depfile=\`basename ${D}objfile | sed -e 's/\\..*${D}/.d/g'\`
473276a9
VS
40831 if test -f ${D}depfile ; then
40832 sed -e "/^${D}objfile/!s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{DEPSDIR}/${D}{objfile}.d
40833 rm -f ${D}depfile
a848cd7e
SC
40834 fi
40835 fi
40836 exit 0
40837else
473276a9
VS
40838 ${D}*
40839 exit ${D}?
a848cd7e
SC
40840fi
40841EOF
473276a9 40842
a848cd7e
SC
40843 chmod +x bk-deps
40844 fi
40845
40846
40847
40848
40849 RESCOMP=
40850 SETFILE=
40851
40852 case ${BAKEFILE_HOST} in
40853 *-*-cygwin* | *-*-mingw32* )
40854 if test "$build" != "$host" ; then
40855 RESCOMP=$host_alias-windres
40856 else
40857 # Extract the first word of "windres", so it can be a program name with args.
40858set dummy windres; ac_word=$2
40859echo "$as_me:$LINENO: checking for $ac_word" >&5
40860echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
40861if test "${ac_cv_prog_RESCOMP+set}" = set; then
40862 echo $ECHO_N "(cached) $ECHO_C" >&6
40863else
40864 if test -n "$RESCOMP"; then
40865 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
40866else
40867as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
40868for as_dir in $PATH
40869do
40870 IFS=$as_save_IFS
40871 test -z "$as_dir" && as_dir=.
40872 for ac_exec_ext in '' $ac_executable_extensions; do
40873 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
40874 ac_cv_prog_RESCOMP="windres"
40875 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
40876 break 2
40877 fi
40878done
40879done
40880
40881 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="windres"
40882fi
40883fi
40884RESCOMP=$ac_cv_prog_RESCOMP
40885if test -n "$RESCOMP"; then
40886 echo "$as_me:$LINENO: result: $RESCOMP" >&5
40887echo "${ECHO_T}$RESCOMP" >&6
40888else
40889 echo "$as_me:$LINENO: result: no" >&5
40890echo "${ECHO_T}no" >&6
40891fi
40892
40893 fi
40894 ;;
40895
1e9e8aba 40896 *-*-darwin* | powerpc-apple-macos* )
a848cd7e
SC
40897 # Extract the first word of "Rez", so it can be a program name with args.
40898set dummy Rez; ac_word=$2
40899echo "$as_me:$LINENO: checking for $ac_word" >&5
40900echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
40901if test "${ac_cv_prog_RESCOMP+set}" = set; then
40902 echo $ECHO_N "(cached) $ECHO_C" >&6
40903else
40904 if test -n "$RESCOMP"; then
40905 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
40906else
40907as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
40908for as_dir in $PATH
40909do
40910 IFS=$as_save_IFS
40911 test -z "$as_dir" && as_dir=.
40912 for ac_exec_ext in '' $ac_executable_extensions; do
40913 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
40914 ac_cv_prog_RESCOMP="Rez"
40915 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
40916 break 2
40917 fi
40918done
40919done
40920
40921 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez"
40922fi
40923fi
40924RESCOMP=$ac_cv_prog_RESCOMP
40925if test -n "$RESCOMP"; then
40926 echo "$as_me:$LINENO: result: $RESCOMP" >&5
40927echo "${ECHO_T}$RESCOMP" >&6
40928else
40929 echo "$as_me:$LINENO: result: no" >&5
40930echo "${ECHO_T}no" >&6
40931fi
40932
40933 # Extract the first word of "SetFile", so it can be a program name with args.
40934set dummy SetFile; ac_word=$2
40935echo "$as_me:$LINENO: checking for $ac_word" >&5
40936echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
40937if test "${ac_cv_prog_SETFILE+set}" = set; then
40938 echo $ECHO_N "(cached) $ECHO_C" >&6
40939else
40940 if test -n "$SETFILE"; then
40941 ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
40942else
40943as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
40944for as_dir in $PATH
40945do
40946 IFS=$as_save_IFS
40947 test -z "$as_dir" && as_dir=.
40948 for ac_exec_ext in '' $ac_executable_extensions; do
40949 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
40950 ac_cv_prog_SETFILE="SetFile"
40951 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
40952 break 2
40953 fi
40954done
40955done
40956
40957 test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
40958fi
40959fi
40960SETFILE=$ac_cv_prog_SETFILE
40961if test -n "$SETFILE"; then
40962 echo "$as_me:$LINENO: result: $SETFILE" >&5
40963echo "${ECHO_T}$SETFILE" >&6
40964else
40965 echo "$as_me:$LINENO: result: no" >&5
40966echo "${ECHO_T}no" >&6
40967fi
40968
40969 ;;
40970 esac
40971
40972
40973
40974
40975
04840eaa 40976 BAKEFILE_BAKEFILE_M4_VERSION="0.1.5"
a848cd7e 40977
dcc1b6ad 40978
04840eaa 40979BAKEFILE_AUTOCONF_INC_M4_VERSION="0.1.5"
a848cd7e 40980
646b6ec1 40981
74b84332 40982
a848cd7e
SC
40983 # Check whether --enable-precomp-headers or --disable-precomp-headers was given.
40984if test "${enable_precomp_headers+set}" = set; then
40985 enableval="$enable_precomp_headers"
40986 bk_use_pch="$enableval"
40987fi;
40988
40989 GCC_PCH=0
40990
40991 if test "x$bk_use_pch" = "x" -o "x$bk_use_pch" = "xyes" ; then
40992 if test "x$GCC" = "xyes"; then
40993 echo "$as_me:$LINENO: checking if the compiler supports precompiled headers" >&5
40994echo $ECHO_N "checking if the compiler supports precompiled headers... $ECHO_C" >&6
40995 cat >conftest.$ac_ext <<_ACEOF
40996/* confdefs.h. */
40997_ACEOF
40998cat confdefs.h >>conftest.$ac_ext
40999cat >>conftest.$ac_ext <<_ACEOF
41000/* end confdefs.h. */
41001
41002int
41003main ()
41004{
41005
41006 #if !defined(__GNUC__) || !defined(__GNUC_MINOR__)
41007 #error "no pch support"
41008 #endif
41009 #if (__GNUC__ < 3)
41010 #error "no pch support"
41011 #endif
41012 #if (__GNUC__ == 3) && \
41013 ((!defined(__APPLE_CC__) && (__GNUC_MINOR__ < 4)) || \
41014 ( defined(__APPLE_CC__) && (__GNUC_MINOR__ < 3)))
41015 #error "no pch support"
41016 #endif
41017
41018 ;
41019 return 0;
41020}
41021_ACEOF
41022rm -f conftest.$ac_objext
41023if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 41024 (eval $ac_compile) 2>conftest.er1
a848cd7e 41025 ac_status=$?
ac1cb8d3
VS
41026 grep -v '^ *+' conftest.er1 >conftest.err
41027 rm -f conftest.er1
41028 cat conftest.err >&5
a848cd7e
SC
41029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41030 (exit $ac_status); } &&
89be85c2
VS
41031 { ac_try='test -z "$ac_c_werror_flag"
41032 || test ! -s conftest.err'
ac1cb8d3
VS
41033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41034 (eval $ac_try) 2>&5
41035 ac_status=$?
41036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41037 (exit $ac_status); }; } &&
41038 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
41039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41040 (eval $ac_try) 2>&5
41041 ac_status=$?
41042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41043 (exit $ac_status); }; }; then
41044
41045 echo "$as_me:$LINENO: result: yes" >&5
41046echo "${ECHO_T}yes" >&6
a848cd7e
SC
41047 GCC_PCH=1
41048
41049else
41050 echo "$as_me: failed program was:" >&5
41051sed 's/^/| /' conftest.$ac_ext >&5
41052
41053
41054 echo "$as_me:$LINENO: result: no" >&5
41055echo "${ECHO_T}no" >&6
41056
41057fi
ac1cb8d3 41058rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 41059 if test $GCC_PCH = 1 ; then
1e9e8aba
DE
41060
41061D='$'
41062cat <<EOF >bk-make-pch
a848cd7e
SC
41063#!/bin/sh
41064
41065# This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf
41066# script. It is used to generated precompiled headers.
41067#
41068# Permission is given to use this file in any way.
41069
1e9e8aba
DE
41070outfile="${D}{1}"
41071header="${D}{2}"
a848cd7e
SC
41072shift
41073shift
41074
41075compiler=
41076headerfile=
1e9e8aba
DE
41077while test ${D}{#} -gt 0; do
41078 case "${D}{1}" in
a848cd7e 41079 -I* )
1e9e8aba
DE
41080 incdir=\`echo ${D}{1} | sed -e 's/-I\\(.*\\)/\\1/g'\`
41081 if test "x${D}{headerfile}" = "x" -a -f "${D}{incdir}/${D}{header}" ; then
41082 headerfile="${D}{incdir}/${D}{header}"
a848cd7e
SC
41083 fi
41084 ;;
41085 esac
1e9e8aba 41086 compiler="${D}{compiler} ${D}{1}"
a848cd7e
SC
41087 shift
41088done
41089
1e9e8aba
DE
41090if test "x${D}{headerfile}" = "x" ; then
41091 echo "error: can't find header ${D}{header} in include paths" >2
a848cd7e 41092else
1e9e8aba
DE
41093 if test -f ${D}{outfile} ; then
41094 rm -f ${D}{outfile}
a848cd7e 41095 else
1e9e8aba 41096 mkdir -p \`dirname ${D}{outfile}\`
a848cd7e 41097 fi
1e9e8aba 41098 depsfile=".deps/\`echo ${D}{outfile} | tr '/.' '__'\`.d"
a848cd7e
SC
41099 mkdir -p .deps
41100 # can do this because gcc is >= 3.4:
1e9e8aba
DE
41101 ${D}{compiler} -o ${D}{outfile} -MMD -MF "${D}{depsfile}" "${D}{headerfile}"
41102 exit ${D}{?}
a848cd7e
SC
41103fi
41104EOF
1e9e8aba 41105
a848cd7e
SC
41106 chmod +x bk-make-pch
41107 fi
41108 fi
41109 fi
41110
41111
41112
a848cd7e
SC
41113 COND_BUILD_DEBUG="#"
41114 if test "x$BUILD" = "xdebug" ; then
41115 COND_BUILD_DEBUG=""
41116 fi
41117
41118 COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT="#"
41119 if test "x$BUILD" = "xdebug" -a "x$DEBUG_FLAG" = "xdefault" ; then
41120 COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT=""
41121 fi
41122
41123 COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT="#"
41124 if test "x$BUILD" = "xdebug" -a "x$DEBUG_INFO" = "xdefault" ; then
41125 COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT=""
41126 fi
41127
41128 COND_BUILD_DEBUG_UNICODE_0="#"
41129 if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x0" ; then
41130 COND_BUILD_DEBUG_UNICODE_0=""
41131 fi
41132
41133 COND_BUILD_DEBUG_UNICODE_1="#"
41134 if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x1" ; then
41135 COND_BUILD_DEBUG_UNICODE_1=""
41136 fi
41137
41138 COND_BUILD_RELEASE="#"
41139 if test "x$BUILD" = "xrelease" ; then
41140 COND_BUILD_RELEASE=""
41141 fi
41142
41143 COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT="#"
41144 if test "x$BUILD" = "xrelease" -a "x$DEBUG_INFO" = "xdefault" ; then
41145 COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT=""
41146 fi
41147
41148 COND_BUILD_RELEASE_UNICODE_0="#"
41149 if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x0" ; then
41150 COND_BUILD_RELEASE_UNICODE_0=""
41151 fi
41152
41153 COND_BUILD_RELEASE_UNICODE_1="#"
41154 if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x1" ; then
41155 COND_BUILD_RELEASE_UNICODE_1=""
41156 fi
41157
41158 COND_DEBUG_FLAG_1="#"
41159 if test "x$DEBUG_FLAG" = "x1" ; then
41160 COND_DEBUG_FLAG_1=""
41161 fi
41162
41163 COND_DEBUG_INFO_0="#"
41164 if test "x$DEBUG_INFO" = "x0" ; then
41165 COND_DEBUG_INFO_0=""
41166 fi
41167
41168 COND_DEBUG_INFO_1="#"
41169 if test "x$DEBUG_INFO" = "x1" ; then
41170 COND_DEBUG_INFO_1=""
41171 fi
41172
41173 COND_DEPS_TRACKING_0="#"
41174 if test "x$DEPS_TRACKING" = "x0" ; then
41175 COND_DEPS_TRACKING_0=""
41176 fi
41177
41178 COND_DEPS_TRACKING_1="#"
41179 if test "x$DEPS_TRACKING" = "x1" ; then
41180 COND_DEPS_TRACKING_1=""
41181 fi
41182
41183 COND_GCC_PCH_1="#"
41184 if test "x$GCC_PCH" = "x1" ; then
41185 COND_GCC_PCH_1=""
41186 fi
41187
41188 COND_MONOLITHIC_0="#"
41189 if test "x$MONOLITHIC" = "x0" ; then
41190 COND_MONOLITHIC_0=""
41191 fi
41192
41193 COND_MONOLITHIC_0_SHARED_0="#"
41194 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" ; then
41195 COND_MONOLITHIC_0_SHARED_0=""
41196 fi
41197
41198 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1="#"
41199 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" ; then
41200 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1=""
41201 fi
41202
90970d69
DE
41203 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1="#"
41204 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_HTML" = "x1" ; then
41205 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1=""
41206 fi
41207
a848cd7e
SC
41208 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1="#"
41209 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then
41210 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1=""
41211 fi
41212
a848cd7e
SC
41213 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1="#"
41214 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_ODBC" = "x1" ; then
41215 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1=""
41216 fi
41217
ceec2216
RL
41218 COND_MONOLITHIC_0_SHARED_0_USE_XRC_1="#"
41219 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_XRC" = "x1" ; then
41220 COND_MONOLITHIC_0_SHARED_0_USE_XRC_1=""
41221 fi
41222
a848cd7e
SC
41223 COND_MONOLITHIC_0_SHARED_1="#"
41224 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" ; then
41225 COND_MONOLITHIC_0_SHARED_1=""
41226 fi
41227
41228 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1="#"
41229 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" ; then
41230 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1=""
41231 fi
41232
90970d69
DE
41233 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1="#"
41234 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_HTML" = "x1" ; then
41235 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1=""
41236 fi
41237
a848cd7e
SC
41238 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1="#"
41239 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then
41240 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1=""
41241 fi
41242
a848cd7e
SC
41243 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1="#"
41244 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_ODBC" = "x1" ; then
41245 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1=""
41246 fi
41247
ceec2216
RL
41248 COND_MONOLITHIC_0_SHARED_1_USE_XRC_1="#"
41249 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_XRC" = "x1" ; then
41250 COND_MONOLITHIC_0_SHARED_1_USE_XRC_1=""
41251 fi
41252
a848cd7e
SC
41253 COND_MONOLITHIC_0_USE_ODBC_1="#"
41254 if test "x$MONOLITHIC" = "x0" -a "x$USE_ODBC" = "x1" ; then
41255 COND_MONOLITHIC_0_USE_ODBC_1=""
41256 fi
41257
41258 COND_MONOLITHIC_1="#"
41259 if test "x$MONOLITHIC" = "x1" ; then
41260 COND_MONOLITHIC_1=""
41261 fi
41262
41263 COND_MONOLITHIC_1_SHARED_0="#"
41264 if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x0" ; then
41265 COND_MONOLITHIC_1_SHARED_0=""
41266 fi
41267
41268 COND_MONOLITHIC_1_SHARED_1="#"
41269 if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x1" ; then
41270 COND_MONOLITHIC_1_SHARED_1=""
41271 fi
41272
41273 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1="#"
41274 if test "x$OFFICIAL_BUILD" = "x0" -a "x$PLATFORM_WIN32" = "x1" ; then
41275 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1=""
41276 fi
41277
41278 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1="#"
41279 if test "x$OFFICIAL_BUILD" = "x1" -a "x$PLATFORM_WIN32" = "x1" ; then
41280 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1=""
41281 fi
41282
41283 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1="#"
41284 if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERSION" = "x1" ; then
41285 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1=""
41286 fi
41287
41288 COND_PLATFORM_MACOSX_1="#"
41289 if test "x$PLATFORM_MACOSX" = "x1" ; then
41290 COND_PLATFORM_MACOSX_1=""
41291 fi
41292
a30f955f
VS
41293 COND_PLATFORM_MACOSX_1_TOOLKIT_="#"
41294 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "x" ; then
41295 COND_PLATFORM_MACOSX_1_TOOLKIT_=""
41296 fi
41297
a848cd7e
SC
41298 COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA="#"
41299 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xCOCOA" ; then
41300 COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA=""
41301 fi
41302
41303 COND_PLATFORM_MACOSX_1_TOOLKIT_GTK="#"
41304 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xGTK" ; then
41305 COND_PLATFORM_MACOSX_1_TOOLKIT_GTK=""
41306 fi
41307
41308 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC="#"
41309 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" ; then
41310 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC=""
41311 fi
41312
fc480dc1
DE
41313 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1="#"
41314 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" ; then
41315 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1=""
41316 fi
41317
1e9e8aba
DE
41318 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="#"
41319 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
41320 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0=""
41321 fi
41322
ebee3cd0
VS
41323 COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF="#"
41324 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMOTIF" ; then
41325 COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF=""
41326 fi
41327
41328 COND_PLATFORM_MACOSX_1_TOOLKIT_X11="#"
41329 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xX11" ; then
41330 COND_PLATFORM_MACOSX_1_TOOLKIT_X11=""
41331 fi
41332
a848cd7e
SC
41333 COND_PLATFORM_MACOSX_1_USE_GUI_1="#"
41334 if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_GUI" = "x1" ; then
41335 COND_PLATFORM_MACOSX_1_USE_GUI_1=""
41336 fi
41337
41338 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1="#"
41339 if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_SOVERSION" = "x1" ; then
41340 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1=""
41341 fi
41342
b48a2016
DE
41343 COND_PLATFORM_MACOS_1="#"
41344 if test "x$PLATFORM_MACOS" = "x1" ; then
41345 COND_PLATFORM_MACOS_1=""
41346 fi
41347
a848cd7e
SC
41348 COND_PLATFORM_MAC_1="#"
41349 if test "x$PLATFORM_MAC" = "x1" ; then
41350 COND_PLATFORM_MAC_1=""
41351 fi
41352
41353 COND_PLATFORM_OS2_1="#"
41354 if test "x$PLATFORM_OS2" = "x1" ; then
41355 COND_PLATFORM_OS2_1=""
41356 fi
41357
41358 COND_PLATFORM_UNIX_0="#"
41359 if test "x$PLATFORM_UNIX" = "x0" ; then
41360 COND_PLATFORM_UNIX_0=""
41361 fi
41362
41363 COND_PLATFORM_UNIX_1="#"
41364 if test "x$PLATFORM_UNIX" = "x1" ; then
41365 COND_PLATFORM_UNIX_1=""
41366 fi
41367
41368 COND_PLATFORM_UNIX_1_USE_GUI_1="#"
41369 if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_GUI" = "x1" ; then
41370 COND_PLATFORM_UNIX_1_USE_GUI_1=""
41371 fi
41372
41373 COND_PLATFORM_UNIX_1_USE_PLUGINS_0="#"
41374 if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_PLUGINS" = "x0" ; then
41375 COND_PLATFORM_UNIX_1_USE_PLUGINS_0=""
41376 fi
41377
41378 COND_PLATFORM_WIN32_0="#"
41379 if test "x$PLATFORM_WIN32" = "x0" ; then
41380 COND_PLATFORM_WIN32_0=""
41381 fi
41382
41383 COND_PLATFORM_WIN32_1="#"
41384 if test "x$PLATFORM_WIN32" = "x1" ; then
41385 COND_PLATFORM_WIN32_1=""
41386 fi
41387
41388 COND_SHARED_0="#"
41389 if test "x$SHARED" = "x0" ; then
41390 COND_SHARED_0=""
41391 fi
41392
ceec2216
RL
41393 COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0="#"
41394 if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xMAC" -a "x$WXUNIV" = "x0" ; then
41395 COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0=""
41396 fi
41397
41398 COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0="#"
41399 if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xMSW" -a "x$WXUNIV" = "x0" ; then
41400 COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0=""
41401 fi
41402
41403 COND_SHARED_0_TOOLKIT_PM_WXUNIV_0="#"
41404 if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xPM" -a "x$WXUNIV" = "x0" ; then
41405 COND_SHARED_0_TOOLKIT_PM_WXUNIV_0=""
41406 fi
41407
a848cd7e
SC
41408 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1="#"
41409 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
41410 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1=""
41411 fi
41412
41413 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
41414 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
41415 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
41416 fi
41417
41418 COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
41419 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
41420 COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
41421 fi
41422
41423 COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
41424 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
41425 COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
41426 fi
41427
41428 COND_SHARED_0_WXUSE_EXPAT_BUILTIN="#"
41429 if test "x$SHARED" = "x0" -a "x$wxUSE_EXPAT" = "xbuiltin" ; then
41430 COND_SHARED_0_WXUSE_EXPAT_BUILTIN=""
41431 fi
41432
41433 COND_SHARED_0_WXUSE_ODBC_BUILTIN="#"
41434 if test "x$SHARED" = "x0" -a "x$wxUSE_ODBC" = "xbuiltin" ; then
41435 COND_SHARED_0_WXUSE_ODBC_BUILTIN=""
41436 fi
41437
41438 COND_SHARED_0_WXUSE_REGEX_BUILTIN="#"
41439 if test "x$SHARED" = "x0" -a "x$wxUSE_REGEX" = "xbuiltin" ; then
41440 COND_SHARED_0_WXUSE_REGEX_BUILTIN=""
41441 fi
41442
41443 COND_SHARED_0_WXUSE_ZLIB_BUILTIN="#"
41444 if test "x$SHARED" = "x0" -a "x$wxUSE_ZLIB" = "xbuiltin" ; then
41445 COND_SHARED_0_WXUSE_ZLIB_BUILTIN=""
41446 fi
41447
41448 COND_SHARED_1="#"
41449 if test "x$SHARED" = "x1" ; then
41450 COND_SHARED_1=""
41451 fi
41452
41453 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1="#"
41454 if test "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
41455 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1=""
41456 fi
41457
a30f955f
VS
41458 COND_TOOLKIT_="#"
41459 if test "x$TOOLKIT" = "x" ; then
41460 COND_TOOLKIT_=""
41461 fi
41462
a848cd7e
SC
41463 COND_TOOLKIT_COCOA="#"
41464 if test "x$TOOLKIT" = "xCOCOA" ; then
41465 COND_TOOLKIT_COCOA=""
41466 fi
41467
a49baeab
DE
41468 COND_TOOLKIT_COCOA_USE_GUI_1="#"
41469 if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" ; then
41470 COND_TOOLKIT_COCOA_USE_GUI_1=""
41471 fi
41472
a848cd7e
SC
41473 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0="#"
41474 if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
41475 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0=""
41476 fi
41477
41478 COND_TOOLKIT_GTK="#"
41479 if test "x$TOOLKIT" = "xGTK" ; then
41480 COND_TOOLKIT_GTK=""
41481 fi
41482
41483 COND_TOOLKIT_GTK_USE_GUI_1="#"
41484 if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" ; then
41485 COND_TOOLKIT_GTK_USE_GUI_1=""
41486 fi
41487
41488 COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0="#"
41489 if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
41490 COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0=""
41491 fi
41492
41493 COND_TOOLKIT_MAC="#"
41494 if test "x$TOOLKIT" = "xMAC" ; then
41495 COND_TOOLKIT_MAC=""
41496 fi
41497
41498 COND_TOOLKIT_MAC_USE_GUI_1="#"
41499 if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" ; then
41500 COND_TOOLKIT_MAC_USE_GUI_1=""
41501 fi
41502
41503 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="#"
41504 if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
41505 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0=""
41506 fi
41507
41508 COND_TOOLKIT_MGL="#"
41509 if test "x$TOOLKIT" = "xMGL" ; then
41510 COND_TOOLKIT_MGL=""
41511 fi
41512
41513 COND_TOOLKIT_MGL_USE_GUI_1="#"
41514 if test "x$TOOLKIT" = "xMGL" -a "x$USE_GUI" = "x1" ; then
41515 COND_TOOLKIT_MGL_USE_GUI_1=""
41516 fi
41517
41518 COND_TOOLKIT_MOTIF="#"
41519 if test "x$TOOLKIT" = "xMOTIF" ; then
41520 COND_TOOLKIT_MOTIF=""
41521 fi
41522
41523 COND_TOOLKIT_MOTIF_USE_GUI_1="#"
41524 if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" ; then
41525 COND_TOOLKIT_MOTIF_USE_GUI_1=""
41526 fi
41527
41528 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0="#"
41529 if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
41530 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0=""
41531 fi
41532
41533 COND_TOOLKIT_MSW="#"
41534 if test "x$TOOLKIT" = "xMSW" ; then
41535 COND_TOOLKIT_MSW=""
41536 fi
41537
41538 COND_TOOLKIT_MSW_USE_GUI_1="#"
41539 if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" ; then
41540 COND_TOOLKIT_MSW_USE_GUI_1=""
41541 fi
41542
41543 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0="#"
41544 if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
41545 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0=""
41546 fi
41547
41548 COND_TOOLKIT_PM="#"
41549 if test "x$TOOLKIT" = "xPM" ; then
41550 COND_TOOLKIT_PM=""
41551 fi
41552
41553 COND_TOOLKIT_PM_USE_GUI_1="#"
41554 if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" ; then
41555 COND_TOOLKIT_PM_USE_GUI_1=""
41556 fi
41557
41558 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0="#"
41559 if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
41560 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0=""
41561 fi
41562
3fd9c298
DE
41563 COND_TOOLKIT_WINCE="#"
41564 if test "x$TOOLKIT" = "xWINCE" ; then
41565 COND_TOOLKIT_WINCE=""
41566 fi
41567
41568 COND_TOOLKIT_WINCE_USE_GUI_1="#"
41569 if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" ; then
41570 COND_TOOLKIT_WINCE_USE_GUI_1=""
41571 fi
41572
41573 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0="#"
41574 if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
41575 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0=""
41576 fi
41577
a848cd7e
SC
41578 COND_TOOLKIT_X11="#"
41579 if test "x$TOOLKIT" = "xX11" ; then
41580 COND_TOOLKIT_X11=""
41581 fi
41582
41583 COND_TOOLKIT_X11_USE_GUI_1="#"
41584 if test "x$TOOLKIT" = "xX11" -a "x$USE_GUI" = "x1" ; then
41585 COND_TOOLKIT_X11_USE_GUI_1=""
41586 fi
41587
41588 COND_UNICODE_1="#"
41589 if test "x$UNICODE" = "x1" ; then
41590 COND_UNICODE_1=""
41591 fi
41592
41593 COND_USE_EXCEPTIONS_0="#"
41594 if test "x$USE_EXCEPTIONS" = "x0" ; then
41595 COND_USE_EXCEPTIONS_0=""
41596 fi
41597
41598 COND_USE_EXCEPTIONS_1="#"
41599 if test "x$USE_EXCEPTIONS" = "x1" ; then
41600 COND_USE_EXCEPTIONS_1=""
41601 fi
41602
41603 COND_USE_GUI_0="#"
41604 if test "x$USE_GUI" = "x0" ; then
41605 COND_USE_GUI_0=""
41606 fi
41607
41608 COND_USE_GUI_1="#"
41609 if test "x$USE_GUI" = "x1" ; then
41610 COND_USE_GUI_1=""
41611 fi
41612
41613 COND_USE_GUI_1_WXUNIV_0="#"
41614 if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
41615 COND_USE_GUI_1_WXUNIV_0=""
41616 fi
41617
41618 COND_USE_GUI_1_WXUNIV_1="#"
41619 if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x1" ; then
41620 COND_USE_GUI_1_WXUNIV_1=""
41621 fi
41622
41623 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
41624 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
41625 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
41626 fi
41627
41628 COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
41629 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
41630 COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
41631 fi
41632
41633 COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
41634 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
41635 COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
41636 fi
41637
ceec2216
RL
41638 COND_USE_ODBC_1="#"
41639 if test "x$USE_ODBC" = "x1" ; then
41640 COND_USE_ODBC_1=""
41641 fi
41642
ffa0583f
RL
41643 COND_USE_OPENGL_1="#"
41644 if test "x$USE_OPENGL" = "x1" ; then
41645 COND_USE_OPENGL_1=""
41646 fi
41647
a848cd7e
SC
41648 COND_USE_PLUGINS_0="#"
41649 if test "x$USE_PLUGINS" = "x0" ; then
41650 COND_USE_PLUGINS_0=""
41651 fi
41652
41653 COND_USE_SOSYMLINKS_1="#"
41654 if test "x$USE_SOSYMLINKS" = "x1" ; then
41655 COND_USE_SOSYMLINKS_1=""
41656 fi
41657
41658 COND_USE_SOVERLINUX_1="#"
41659 if test "x$USE_SOVERLINUX" = "x1" ; then
41660 COND_USE_SOVERLINUX_1=""
41661 fi
41662
41663 COND_USE_SOVERSION_0="#"
41664 if test "x$USE_SOVERSION" = "x0" ; then
41665 COND_USE_SOVERSION_0=""
41666 fi
41667
41668 COND_USE_SOVERSOLARIS_1="#"
41669 if test "x$USE_SOVERSOLARIS" = "x1" ; then
41670 COND_USE_SOVERSOLARIS_1=""
41671 fi
41672
a13a7f89
RL
41673 COND_USE_XRC_1="#"
41674 if test "x$USE_XRC" = "x1" ; then
41675 COND_USE_XRC_1=""
41676 fi
41677
a848cd7e
SC
41678 COND_WITH_PLUGIN_SDL_1="#"
41679 if test "x$WITH_PLUGIN_SDL" = "x1" ; then
41680 COND_WITH_PLUGIN_SDL_1=""
41681 fi
41682
1e6eb025
VZ
41683 COND_WXUNIV_0="#"
41684 if test "x$WXUNIV" = "x0" ; then
41685 COND_WXUNIV_0=""
41686 fi
41687
a848cd7e
SC
41688 COND_WXUNIV_1="#"
41689 if test "x$WXUNIV" = "x1" ; then
41690 COND_WXUNIV_1=""
41691 fi
41692
41693 COND_WXUSE_EXPAT_BUILTIN="#"
41694 if test "x$wxUSE_EXPAT" = "xbuiltin" ; then
41695 COND_WXUSE_EXPAT_BUILTIN=""
41696 fi
41697
41698 COND_WXUSE_LIBJPEG_BUILTIN="#"
41699 if test "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
41700 COND_WXUSE_LIBJPEG_BUILTIN=""
41701 fi
41702
41703 COND_WXUSE_LIBPNG_BUILTIN="#"
41704 if test "x$wxUSE_LIBPNG" = "xbuiltin" ; then
41705 COND_WXUSE_LIBPNG_BUILTIN=""
41706 fi
41707
41708 COND_WXUSE_LIBTIFF_BUILTIN="#"
41709 if test "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
41710 COND_WXUSE_LIBTIFF_BUILTIN=""
41711 fi
41712
41713 COND_WXUSE_ODBC_BUILTIN="#"
41714 if test "x$wxUSE_ODBC" = "xbuiltin" ; then
41715 COND_WXUSE_ODBC_BUILTIN=""
41716 fi
41717
41718 COND_WXUSE_REGEX_BUILTIN="#"
41719 if test "x$wxUSE_REGEX" = "xbuiltin" ; then
41720 COND_WXUSE_REGEX_BUILTIN=""
41721 fi
41722
41723 COND_WXUSE_ZLIB_BUILTIN="#"
41724 if test "x$wxUSE_ZLIB" = "xbuiltin" ; then
41725 COND_WXUSE_ZLIB_BUILTIN=""
41726 fi
41727
41728
41729
2057db16
VS
41730 if test "$BAKEFILE_BAKEFILE_M4_VERSION" != "$BAKEFILE_AUTOCONF_INC_M4_VERSION" ; then
41731 { { 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
41732echo "$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;}
41733 { (exit 1); exit 1; }; }
41734 fi
41735
a848cd7e 41736
ceec2216
RL
41737if test "$wxUSE_SHARED" = "yes"; then
41738
41739 sanitised_bakefile_mess=`echo "$SHARED_LD_CXX" | tr -d '()'`
41740 EXE_LINKER=`eval echo "$sanitised_bakefile_mess"`
41741
5b674b9d
DE
41742 case "${host}" in
41743 *-pc-os2_emx | *-pc-os2-emx )
41744 SHARED_LD_CC="`pwd`/dllar.sh -name-mangler-script ./dllnames.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
41745 SHARED_LD_CXX="`pwd`/dllar.sh -name-mangler-script ./dllnames.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
41746 cp -p ${srcdir}/src/os2/dllnames.sh .
41747 cp -p ${srcdir}/src/os2/dllar.sh .
41748 ;;
41749 esac
ceec2216
RL
41750else
41751
41752 EXE_LINKER="$CXX -o"
41753
41754fi
a848cd7e 41755
74b84332 41756GCC_PRAGMA_FLAGS=""
c08ebc62
DE
41757PCH_FLAGS=""
41758if test $GCC_PCH = 1 ; then
41759 GCC_PRAGMA_FLAGS="-DNO_GCC_PRAGMA"
41760 PCH_FLAGS="-DWX_PRECOMP"
41761else
a848cd7e
SC
41762 case "${host}" in
41763 powerpc-*-darwin* )
74b84332 41764 GCC_PRAGMA_FLAGS="-DNO_GCC_PRAGMA"
a848cd7e 41765 ;;
bea8e651 41766 *-*-mingw32* )
1f344abf
VS
41767 if test "$wxUSE_STL" = "yes" -o \
41768 "$wxUSE_NO_EXCEPTIONS" != "yes" -o \
41769 "$wxUSE_NO_RTTI" != "yes"; then
41770 echo "$as_me:$LINENO: checking if this MinGW version needs -DNO_GCC_PRAGMA" >&5
41771echo $ECHO_N "checking if this MinGW version needs -DNO_GCC_PRAGMA... $ECHO_C" >&6
bea8e651
MB
41772 cat >conftest.$ac_ext <<_ACEOF
41773/* confdefs.h. */
41774_ACEOF
41775cat confdefs.h >>conftest.$ac_ext
41776cat >>conftest.$ac_ext <<_ACEOF
41777/* end confdefs.h. */
41778
3314e67b
RR
41779int
41780main ()
41781{
41782#if !(__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 2))
41783 #error "Not GCC 3.2 or greater"
41784 #endif
41785
41786 ;
41787 return 0;
41788}
41789_ACEOF
41790rm -f conftest.$ac_objext
41791if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41792 (eval $ac_compile) 2>conftest.er1
41793 ac_status=$?
41794 grep -v '^ *+' conftest.er1 >conftest.err
41795 rm -f conftest.er1
41796 cat conftest.err >&5
41797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41798 (exit $ac_status); } &&
89be85c2
VS
41799 { ac_try='test -z "$ac_c_werror_flag"
41800 || test ! -s conftest.err'
3314e67b
RR
41801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41802 (eval $ac_try) 2>&5
41803 ac_status=$?
41804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41805 (exit $ac_status); }; } &&
41806 { ac_try='test -s conftest.$ac_objext'
41807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41808 (eval $ac_try) 2>&5
41809 ac_status=$?
41810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41811 (exit $ac_status); }; }; then
41812 GCC_PRAGMA_FLAGS="-DNO_GCC_PRAGMA"
41813 echo "$as_me:$LINENO: result: yes" >&5
41814echo "${ECHO_T}yes" >&6
41815else
41816 echo "$as_me: failed program was:" >&5
41817sed 's/^/| /' conftest.$ac_ext >&5
41818
41819echo "$as_me:$LINENO: result: no" >&5
41820echo "${ECHO_T}no" >&6
41821fi
41822rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41823 fi
41824 ;;
41825 *-pc-os2_emx | *-pc-os2-emx )
41826 if test "$wxUSE_STL" = "yes"; then
41827 echo "$as_me:$LINENO: checking if this gcc version needs -DNO_GCC_PRAGMA" >&5
41828echo $ECHO_N "checking if this gcc version needs -DNO_GCC_PRAGMA... $ECHO_C" >&6
41829 cat >conftest.$ac_ext <<_ACEOF
41830/* confdefs.h. */
41831_ACEOF
41832cat confdefs.h >>conftest.$ac_ext
41833cat >>conftest.$ac_ext <<_ACEOF
41834/* end confdefs.h. */
41835
bea8e651
MB
41836int
41837main ()
41838{
1f344abf 41839#if !(__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 2))
bea8e651
MB
41840 #error "Not GCC 3.2 or greater"
41841 #endif
41842
41843 ;
41844 return 0;
41845}
41846_ACEOF
41847rm -f conftest.$ac_objext
41848if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 41849 (eval $ac_compile) 2>conftest.er1
bea8e651 41850 ac_status=$?
ac1cb8d3
VS
41851 grep -v '^ *+' conftest.er1 >conftest.err
41852 rm -f conftest.er1
41853 cat conftest.err >&5
bea8e651
MB
41854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41855 (exit $ac_status); } &&
89be85c2
VS
41856 { ac_try='test -z "$ac_c_werror_flag"
41857 || test ! -s conftest.err'
ac1cb8d3
VS
41858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41859 (eval $ac_try) 2>&5
41860 ac_status=$?
41861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41862 (exit $ac_status); }; } &&
41863 { ac_try='test -s conftest.$ac_objext'
bea8e651
MB
41864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41865 (eval $ac_try) 2>&5
41866 ac_status=$?
41867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41868 (exit $ac_status); }; }; then
74b84332 41869 GCC_PRAGMA_FLAGS="-DNO_GCC_PRAGMA"
bea8e651
MB
41870 echo "$as_me:$LINENO: result: yes" >&5
41871echo "${ECHO_T}yes" >&6
41872else
41873 echo "$as_me: failed program was:" >&5
41874sed 's/^/| /' conftest.$ac_ext >&5
41875
41876echo "$as_me:$LINENO: result: no" >&5
41877echo "${ECHO_T}no" >&6
41878fi
ac1cb8d3 41879rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bea8e651
MB
41880 fi
41881 ;;
a848cd7e
SC
41882 esac
41883fi
d2083416 41884CPPFLAGS="$PCH_FLAGS $GCC_PRAGMA_FLAGS $CPPFLAGS"
a848cd7e
SC
41885
41886
41887SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`"
41888
41889
41890
41891
41892
41893
41894
41895
41896
41897
41898
41899
41900
41901
41902
41903
41904
41905
41906
41907
41908
41909
41910
41911
41912
41913
41914
41915
41916
41917
41918
41919
41920
41921
41922
41923
41924
41925
41926
41927
41928
41929
a848cd7e
SC
41930
41931
41932
41933
41934
41935
41936
41937
41938
41939
41940
41941
41942
41943
41944
41945
41946
41947
74b84332 41948
a848cd7e
SC
41949
41950
41951echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
41952echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
ac1cb8d3 41953set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
a848cd7e
SC
41954if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
41955 echo $ECHO_N "(cached) $ECHO_C" >&6
41956else
41957 cat >conftest.make <<\_ACEOF
41958all:
41959 @echo 'ac_maketemp="$(MAKE)"'
41960_ACEOF
41961# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
41962eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
41963if test -n "$ac_maketemp"; then
41964 eval ac_cv_prog_make_${ac_make}_set=yes
41965else
41966 eval ac_cv_prog_make_${ac_make}_set=no
41967fi
41968rm -f conftest.make
41969fi
41970if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
41971 echo "$as_me:$LINENO: result: yes" >&5
41972echo "${ECHO_T}yes" >&6
41973 SET_MAKE=
41974else
41975 echo "$as_me:$LINENO: result: no" >&5
41976echo "${ECHO_T}no" >&6
41977 SET_MAKE="MAKE=${MAKE-make}"
41978fi
41979
41980
a848cd7e 41981
ceec2216
RL
41982 ac_config_headers="$ac_config_headers lib/wx/include/${TOOLCHAIN_FULLNAME}/wx/setup.h:setup.h.in"
41983
a848cd7e 41984
ceec2216 41985 ac_config_files="$ac_config_files lib/wx/config/${TOOLCHAIN_FULLNAME}:wx-config.in"
a848cd7e 41986
a848cd7e 41987
ceec2216 41988 ac_config_files="$ac_config_files lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}:wx-config-inplace.in"
a848cd7e 41989
ceec2216
RL
41990
41991 ac_config_files="$ac_config_files version-script Makefile"
41992
41993
41994 ac_config_commands="$ac_config_commands wx-config
41995 "
a848cd7e
SC
41996
41997
9103d280
RL
41998
41999
a848cd7e
SC
42000if test "$wxUSE_GUI" = "yes"; then
42001 SUBDIRS="samples demos utils contrib"
42002else SUBDIRS="samples utils"
42003fi
42004
42005
42006
42007# Check whether --with-cppunit-prefix or --without-cppunit-prefix was given.
42008if test "${with_cppunit_prefix+set}" = set; then
42009 withval="$with_cppunit_prefix"
42010 cppunit_config_prefix="$withval"
42011else
42012 cppunit_config_prefix=""
42013fi;
42014
42015# Check whether --with-cppunit-exec-prefix or --without-cppunit-exec-prefix was given.
42016if test "${with_cppunit_exec_prefix+set}" = set; then
42017 withval="$with_cppunit_exec_prefix"
42018 cppunit_config_exec_prefix="$withval"
42019else
42020 cppunit_config_exec_prefix=""
42021fi;
42022
42023 if test x$cppunit_config_exec_prefix != x ; then
42024 cppunit_config_args="$cppunit_config_args --exec-prefix=$cppunit_config_exec_prefix"
42025 if test x${CPPUNIT_CONFIG+set} != xset ; then
42026 CPPUNIT_CONFIG=$cppunit_config_exec_prefix/bin/cppunit-config
42027 fi
42028 fi
42029 if test x$cppunit_config_prefix != x ; then
42030 cppunit_config_args="$cppunit_config_args --prefix=$cppunit_config_prefix"
42031 if test x${CPPUNIT_CONFIG+set} != xset ; then
42032 CPPUNIT_CONFIG=$cppunit_config_prefix/bin/cppunit-config
42033 fi
42034 fi
42035
42036 # Extract the first word of "cppunit-config", so it can be a program name with args.
42037set dummy cppunit-config; ac_word=$2
42038echo "$as_me:$LINENO: checking for $ac_word" >&5
42039echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
42040if test "${ac_cv_path_CPPUNIT_CONFIG+set}" = set; then
42041 echo $ECHO_N "(cached) $ECHO_C" >&6
42042else
42043 case $CPPUNIT_CONFIG in
42044 [\\/]* | ?:[\\/]*)
42045 ac_cv_path_CPPUNIT_CONFIG="$CPPUNIT_CONFIG" # Let the user override the test with a path.
42046 ;;
42047 *)
42048 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
42049for as_dir in $PATH
42050do
42051 IFS=$as_save_IFS
42052 test -z "$as_dir" && as_dir=.
42053 for ac_exec_ext in '' $ac_executable_extensions; do
42054 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
42055 ac_cv_path_CPPUNIT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
42056 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
42057 break 2
42058 fi
42059done
42060done
42061
42062 test -z "$ac_cv_path_CPPUNIT_CONFIG" && ac_cv_path_CPPUNIT_CONFIG="no"
42063 ;;
42064esac
42065fi
42066CPPUNIT_CONFIG=$ac_cv_path_CPPUNIT_CONFIG
42067
42068if test -n "$CPPUNIT_CONFIG"; then
42069 echo "$as_me:$LINENO: result: $CPPUNIT_CONFIG" >&5
42070echo "${ECHO_T}$CPPUNIT_CONFIG" >&6
42071else
42072 echo "$as_me:$LINENO: result: no" >&5
42073echo "${ECHO_T}no" >&6
42074fi
42075
42076 cppunit_version_min=1.8.0
42077
42078 echo "$as_me:$LINENO: checking for Cppunit - version >= $cppunit_version_min" >&5
42079echo $ECHO_N "checking for Cppunit - version >= $cppunit_version_min... $ECHO_C" >&6
42080 no_cppunit=""
42081 if test "$CPPUNIT_CONFIG" = "no" ; then
42082 no_cppunit=yes
42083 else
42084 CPPUNIT_CFLAGS=`$CPPUNIT_CONFIG --cflags`
42085 CPPUNIT_LIBS=`$CPPUNIT_CONFIG --libs`
42086 cppunit_version=`$CPPUNIT_CONFIG --version`
42087
42088 cppunit_major_version=`echo $cppunit_version | \
42089 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
42090 cppunit_minor_version=`echo $cppunit_version | \
42091 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
42092 cppunit_micro_version=`echo $cppunit_version | \
42093 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
42094
42095 cppunit_major_min=`echo $cppunit_version_min | \
42096 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
42097 cppunit_minor_min=`echo $cppunit_version_min | \
42098 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
42099 cppunit_micro_min=`echo $cppunit_version_min | \
42100 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
42101
42102 cppunit_version_proper=`expr \
42103 $cppunit_major_version \> $cppunit_major_min \| \
42104 $cppunit_major_version \= $cppunit_major_min \& \
42105 $cppunit_minor_version \> $cppunit_minor_min \| \
42106 $cppunit_major_version \= $cppunit_major_min \& \
42107 $cppunit_minor_version \= $cppunit_minor_min \& \
42108 $cppunit_micro_version \>= $cppunit_micro_min `
42109
42110 if test "$cppunit_version_proper" = "1" ; then
42111 echo "$as_me:$LINENO: result: $cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&5
42112echo "${ECHO_T}$cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&6
42113 else
42114 echo "$as_me:$LINENO: result: no" >&5
42115echo "${ECHO_T}no" >&6
42116 no_cppunit=yes
42117 fi
42118 fi
42119
42120 if test "x$no_cppunit" = x ; then
c2218763 42121 SUBDIRS="$SUBDIRS tests"
a848cd7e
SC
42122 else
42123 CPPUNIT_CFLAGS=""
42124 CPPUNIT_LIBS=""
c2218763 42125 :
a848cd7e
SC
42126 fi
42127
42128
42129
42130
42131
42132for subdir in `echo $SUBDIRS`; do
42133 if test -d ${srcdir}/${subdir} ; then
42134 if test "$wxUSE_GUI" = "yes"; then
42135 if test ${subdir} = "samples"; then
42136 makefiles="samples/Makefile.in $makefiles"
42137 for sample in `echo $SAMPLES_SUBDIRS`; do
42138 if test -d $srcdir/samples/$sample; then
42139 makefiles="samples/$sample/Makefile.in $makefiles"
42140 fi
42141 done
42142 else makefiles=`(cd $srcdir ; find $subdir -name Makefile.in)`
42143 fi
42144 else if test ${subdir} = "samples"; then
42145 makefiles="samples/Makefile.in samples/console/Makefile.in"
42146 elif test ${subdir} = "utils"; then
6537ccf8
VS
42147 makefiles=""
42148 for util in HelpGen tex2rtf ; do
42149 if test -d $srcdir/utils/$util ; then
42150 makefiles="utils/$util/Makefile.in \
42151 utils/$util/src/Makefile.in \
42152 $makefiles"
42153 fi
42154 done
a848cd7e
SC
42155 else makefiles=`(cd $srcdir ; find $subdir -name Makefile.in)`
42156 fi
42157 fi
42158
42159 for mkin in $makefiles ; do
42160 mk=`echo $mkin | sed 's/Makefile\.in/Makefile/g'`
42161 ac_config_files="$ac_config_files $mk"
42162
42163 done
42164 fi
42165done
42166
42167
42168cat >confcache <<\_ACEOF
42169# This file is a shell script that caches the results of configure
42170# tests run on this system so they can be shared between configure
42171# scripts and configure runs, see configure's option --config-cache.
42172# It is not useful on other systems. If it contains results you don't
42173# want to keep, you may remove or edit it.
42174#
42175# config.status only pays attention to the cache file if you give it
42176# the --recheck option to rerun configure.
42177#
42178# `ac_cv_env_foo' variables (set or unset) will be overridden when
42179# loading this file, other *unset* `ac_cv_foo' will be assigned the
42180# following values.
42181
42182_ACEOF
42183
42184# The following way of writing the cache mishandles newlines in values,
42185# but we know of no workaround that is simple, portable, and efficient.
42186# So, don't put newlines in cache variables' values.
42187# Ultrix sh set writes to stderr and can't be redirected directly,
42188# and sets the high bit in the cache file unless we assign to the vars.
42189{
42190 (set) 2>&1 |
42191 case `(ac_space=' '; set | grep ac_space) 2>&1` in
42192 *ac_space=\ *)
42193 # `set' does not quote correctly, so add quotes (double-quote
42194 # substitution turns \\\\ into \\, and sed turns \\ into \).
42195 sed -n \
ac1cb8d3
VS
42196 "s/'/'\\\\''/g;
42197 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a848cd7e
SC
42198 ;;
42199 *)
42200 # `set' quotes correctly as required by POSIX, so do not add quotes.
42201 sed -n \
ac1cb8d3 42202 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
42203 ;;
42204 esac;
42205} |
42206 sed '
42207 t clear
42208 : clear
42209 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
42210 t end
42211 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
42212 : end' >>confcache
42213if diff $cache_file confcache >/dev/null 2>&1; then :; else
42214 if test -w $cache_file; then
42215 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
42216 cat confcache >$cache_file
42217 else
42218 echo "not updating unwritable cache $cache_file"
42219 fi
42220fi
42221rm -f confcache
42222
42223test "x$prefix" = xNONE && prefix=$ac_default_prefix
42224# Let make expand exec_prefix.
42225test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
42226
42227# VPATH may cause trouble with some makes, so we remove $(srcdir),
42228# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
42229# trailing colons and then remove the whole line if VPATH becomes empty
42230# (actually we leave an empty line to preserve line numbers).
42231if test "x$srcdir" = x.; then
ac1cb8d3 42232 ac_vpsub='/^[ ]*VPATH[ ]*=/{
a848cd7e
SC
42233s/:*\$(srcdir):*/:/;
42234s/:*\${srcdir}:*/:/;
42235s/:*@srcdir@:*/:/;
ac1cb8d3 42236s/^\([^=]*=[ ]*\):*/\1/;
a848cd7e 42237s/:*$//;
ac1cb8d3 42238s/^[^=]*=[ ]*$//;
a848cd7e
SC
42239}'
42240fi
42241
42242DEFS=-DHAVE_CONFIG_H
42243
42244ac_libobjs=
42245ac_ltlibobjs=
42246for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
42247 # 1. Remove the extension, and $U if already installed.
42248 ac_i=`echo "$ac_i" |
ac1cb8d3 42249 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
a848cd7e
SC
42250 # 2. Add them.
42251 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
42252 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
42253done
42254LIBOBJS=$ac_libobjs
42255
42256LTLIBOBJS=$ac_ltlibobjs
42257
42258
42259
42260: ${CONFIG_STATUS=./config.status}
42261ac_clean_files_save=$ac_clean_files
42262ac_clean_files="$ac_clean_files $CONFIG_STATUS"
42263{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
42264echo "$as_me: creating $CONFIG_STATUS" >&6;}
42265cat >$CONFIG_STATUS <<_ACEOF
42266#! $SHELL
42267# Generated by $as_me.
42268# Run this file to recreate the current configuration.
42269# Compiler output produced by configure, useful for debugging
42270# configure, is in config.log if it exists.
42271
42272debug=false
42273ac_cs_recheck=false
42274ac_cs_silent=false
42275SHELL=\${CONFIG_SHELL-$SHELL}
42276_ACEOF
42277
42278cat >>$CONFIG_STATUS <<\_ACEOF
42279## --------------------- ##
42280## M4sh Initialization. ##
42281## --------------------- ##
42282
42283# Be Bourne compatible
42284if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
42285 emulate sh
42286 NULLCMD=:
42287 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
42288 # is contrary to our usage. Disable this feature.
42289 alias -g '${1+"$@"}'='"$@"'
42290elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
42291 set -o posix
42292fi
ac1cb8d3 42293DUALCASE=1; export DUALCASE # for MKS sh
a848cd7e
SC
42294
42295# Support unset when possible.
ac1cb8d3 42296if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
a848cd7e
SC
42297 as_unset=unset
42298else
42299 as_unset=false
42300fi
42301
42302
42303# Work around bugs in pre-3.0 UWIN ksh.
42304$as_unset ENV MAIL MAILPATH
42305PS1='$ '
42306PS2='> '
42307PS4='+ '
42308
42309# NLS nuisances.
42310for as_var in \
42311 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
42312 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42313 LC_TELEPHONE LC_TIME
42314do
ac1cb8d3 42315 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
a848cd7e
SC
42316 eval $as_var=C; export $as_var
42317 else
42318 $as_unset $as_var
42319 fi
42320done
42321
42322# Required to use basename.
42323if expr a : '\(a\)' >/dev/null 2>&1; then
42324 as_expr=expr
42325else
42326 as_expr=false
42327fi
42328
42329if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
42330 as_basename=basename
42331else
42332 as_basename=false
42333fi
42334
42335
42336# Name of the executable.
42337as_me=`$as_basename "$0" ||
42338$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
42339 X"$0" : 'X\(//\)$' \| \
42340 X"$0" : 'X\(/\)$' \| \
42341 . : '\(.\)' 2>/dev/null ||
42342echo X/"$0" |
42343 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
42344 /^X\/\(\/\/\)$/{ s//\1/; q; }
42345 /^X\/\(\/\).*/{ s//\1/; q; }
42346 s/.*/./; q'`
42347
42348
42349# PATH needs CR, and LINENO needs CR and PATH.
42350# Avoid depending upon Character Ranges.
42351as_cr_letters='abcdefghijklmnopqrstuvwxyz'
42352as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
42353as_cr_Letters=$as_cr_letters$as_cr_LETTERS
42354as_cr_digits='0123456789'
42355as_cr_alnum=$as_cr_Letters$as_cr_digits
42356
42357# The user is always right.
42358if test "${PATH_SEPARATOR+set}" != set; then
42359 echo "#! /bin/sh" >conf$$.sh
42360 echo "exit 0" >>conf$$.sh
42361 chmod +x conf$$.sh
42362 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
42363 PATH_SEPARATOR=';'
42364 else
42365 PATH_SEPARATOR=:
42366 fi
42367 rm -f conf$$.sh
42368fi
42369
42370
42371 as_lineno_1=$LINENO
42372 as_lineno_2=$LINENO
42373 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
42374 test "x$as_lineno_1" != "x$as_lineno_2" &&
42375 test "x$as_lineno_3" = "x$as_lineno_2" || {
42376 # Find who we are. Look in the path if we contain no path at all
42377 # relative or not.
42378 case $0 in
42379 *[\\/]* ) as_myself=$0 ;;
42380 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
42381for as_dir in $PATH
42382do
42383 IFS=$as_save_IFS
42384 test -z "$as_dir" && as_dir=.
42385 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
42386done
42387
42388 ;;
42389 esac
42390 # We did not find ourselves, most probably we were run as `sh COMMAND'
42391 # in which case we are not to be found in the path.
42392 if test "x$as_myself" = x; then
42393 as_myself=$0
42394 fi
42395 if test ! -f "$as_myself"; then
42396 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
42397echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
42398 { (exit 1); exit 1; }; }
42399 fi
42400 case $CONFIG_SHELL in
42401 '')
42402 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
42403for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
42404do
42405 IFS=$as_save_IFS
42406 test -z "$as_dir" && as_dir=.
42407 for as_base in sh bash ksh sh5; do
42408 case $as_dir in
42409 /*)
42410 if ("$as_dir/$as_base" -c '
42411 as_lineno_1=$LINENO
42412 as_lineno_2=$LINENO
42413 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
42414 test "x$as_lineno_1" != "x$as_lineno_2" &&
42415 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
42416 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
42417 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
42418 CONFIG_SHELL=$as_dir/$as_base
42419 export CONFIG_SHELL
42420 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
42421 fi;;
42422 esac
42423 done
42424done
42425;;
42426 esac
42427
42428 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
42429 # uniformly replaced by the line number. The first 'sed' inserts a
42430 # line-number line before each line; the second 'sed' does the real
42431 # work. The second script uses 'N' to pair each line-number line
42432 # with the numbered line, and appends trailing '-' during
42433 # substitution so that $LINENO is not a special case at line end.
42434 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
42435 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
42436 sed '=' <$as_myself |
42437 sed '
42438 N
42439 s,$,-,
42440 : loop
42441 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
42442 t loop
42443 s,-$,,
42444 s,^['$as_cr_digits']*\n,,
42445 ' >$as_me.lineno &&
42446 chmod +x $as_me.lineno ||
42447 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
42448echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
42449 { (exit 1); exit 1; }; }
42450
42451 # Don't try to exec as it changes $[0], causing all sort of problems
42452 # (the dirname of $[0] is not the place where we might find the
42453 # original and so on. Autoconf is especially sensible to this).
42454 . ./$as_me.lineno
42455 # Exit status is that of the last command.
42456 exit
42457}
42458
42459
42460case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
42461 *c*,-n*) ECHO_N= ECHO_C='
42462' ECHO_T=' ' ;;
42463 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
42464 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
42465esac
42466
42467if expr a : '\(a\)' >/dev/null 2>&1; then
42468 as_expr=expr
42469else
42470 as_expr=false
42471fi
42472
42473rm -f conf$$ conf$$.exe conf$$.file
42474echo >conf$$.file
42475if ln -s conf$$.file conf$$ 2>/dev/null; then
42476 # We could just check for DJGPP; but this test a) works b) is more generic
42477 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
42478 if test -f conf$$.exe; then
42479 # Don't use ln at all; we don't have any links
42480 as_ln_s='cp -p'
42481 else
42482 as_ln_s='ln -s'
42483 fi
42484elif ln conf$$.file conf$$ 2>/dev/null; then
42485 as_ln_s=ln
42486else
42487 as_ln_s='cp -p'
42488fi
42489rm -f conf$$ conf$$.exe conf$$.file
42490
42491if mkdir -p . 2>/dev/null; then
42492 as_mkdir_p=:
42493else
ac1cb8d3 42494 test -d ./-p && rmdir ./-p
a848cd7e
SC
42495 as_mkdir_p=false
42496fi
42497
42498as_executable_p="test -f"
42499
42500# Sed expression to map a string onto a valid CPP name.
ac1cb8d3 42501as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
a848cd7e
SC
42502
42503# Sed expression to map a string onto a valid variable name.
ac1cb8d3 42504as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
a848cd7e
SC
42505
42506
42507# IFS
42508# We need space, tab and new line, in precisely that order.
42509as_nl='
42510'
42511IFS=" $as_nl"
42512
42513# CDPATH.
42514$as_unset CDPATH
42515
42516exec 6>&1
42517
42518# Open the log real soon, to keep \$[0] and so on meaningful, and to
42519# report actual input values of CONFIG_FILES etc. instead of their
42520# values after options handling. Logging --version etc. is OK.
42521exec 5>>config.log
42522{
42523 echo
42524 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
42525## Running $as_me. ##
42526_ASBOX
42527} >&5
42528cat >&5 <<_CSEOF
42529
7714864e 42530This file was extended by wxWidgets $as_me 2.5.3, which was
ac1cb8d3 42531generated by GNU Autoconf 2.59. Invocation command line was
a848cd7e
SC
42532
42533 CONFIG_FILES = $CONFIG_FILES
42534 CONFIG_HEADERS = $CONFIG_HEADERS
42535 CONFIG_LINKS = $CONFIG_LINKS
42536 CONFIG_COMMANDS = $CONFIG_COMMANDS
42537 $ $0 $@
42538
42539_CSEOF
42540echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
42541echo >&5
42542_ACEOF
42543
42544# Files that config.status was made for.
42545if test -n "$ac_config_files"; then
42546 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
42547fi
42548
42549if test -n "$ac_config_headers"; then
42550 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
42551fi
42552
42553if test -n "$ac_config_links"; then
42554 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
42555fi
42556
42557if test -n "$ac_config_commands"; then
42558 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
42559fi
42560
42561cat >>$CONFIG_STATUS <<\_ACEOF
42562
42563ac_cs_usage="\
42564\`$as_me' instantiates files from templates according to the
42565current configuration.
42566
42567Usage: $0 [OPTIONS] [FILE]...
42568
42569 -h, --help print this help, then exit
42570 -V, --version print version number, then exit
42571 -q, --quiet do not print progress messages
42572 -d, --debug don't remove temporary files
42573 --recheck update $as_me by reconfiguring in the same conditions
42574 --file=FILE[:TEMPLATE]
ac1cb8d3 42575 instantiate the configuration file FILE
a848cd7e 42576 --header=FILE[:TEMPLATE]
ac1cb8d3 42577 instantiate the configuration header FILE
a848cd7e
SC
42578
42579Configuration files:
42580$config_files
42581
42582Configuration headers:
42583$config_headers
42584
42585Configuration commands:
42586$config_commands
42587
42588Report bugs to <bug-autoconf@gnu.org>."
42589_ACEOF
42590
42591cat >>$CONFIG_STATUS <<_ACEOF
42592ac_cs_version="\\
7714864e 42593wxWidgets config.status 2.5.3
ac1cb8d3 42594configured by $0, generated by GNU Autoconf 2.59,
a848cd7e
SC
42595 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
42596
ac1cb8d3 42597Copyright (C) 2003 Free Software Foundation, Inc.
a848cd7e
SC
42598This config.status script is free software; the Free Software Foundation
42599gives unlimited permission to copy, distribute and modify it."
42600srcdir=$srcdir
42601INSTALL="$INSTALL"
42602_ACEOF
42603
42604cat >>$CONFIG_STATUS <<\_ACEOF
42605# If no file are specified by the user, then we need to provide default
42606# value. By we need to know if files were specified by the user.
42607ac_need_defaults=:
42608while test $# != 0
42609do
42610 case $1 in
42611 --*=*)
42612 ac_option=`expr "x$1" : 'x\([^=]*\)='`
42613 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
42614 ac_shift=:
42615 ;;
42616 -*)
42617 ac_option=$1
42618 ac_optarg=$2
42619 ac_shift=shift
42620 ;;
42621 *) # This is not an option, so the user has probably given explicit
42622 # arguments.
42623 ac_option=$1
42624 ac_need_defaults=false;;
42625 esac
42626
42627 case $ac_option in
42628 # Handling of the options.
42629_ACEOF
42630cat >>$CONFIG_STATUS <<\_ACEOF
42631 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
42632 ac_cs_recheck=: ;;
42633 --version | --vers* | -V )
42634 echo "$ac_cs_version"; exit 0 ;;
42635 --he | --h)
42636 # Conflict between --help and --header
42637 { { echo "$as_me:$LINENO: error: ambiguous option: $1
42638Try \`$0 --help' for more information." >&5
42639echo "$as_me: error: ambiguous option: $1
42640Try \`$0 --help' for more information." >&2;}
42641 { (exit 1); exit 1; }; };;
42642 --help | --hel | -h )
42643 echo "$ac_cs_usage"; exit 0 ;;
42644 --debug | --d* | -d )
42645 debug=: ;;
42646 --file | --fil | --fi | --f )
42647 $ac_shift
42648 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
42649 ac_need_defaults=false;;
42650 --header | --heade | --head | --hea )
42651 $ac_shift
42652 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
42653 ac_need_defaults=false;;
42654 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
42655 | -silent | --silent | --silen | --sile | --sil | --si | --s)
42656 ac_cs_silent=: ;;
42657
42658 # This is an error.
42659 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
42660Try \`$0 --help' for more information." >&5
42661echo "$as_me: error: unrecognized option: $1
42662Try \`$0 --help' for more information." >&2;}
42663 { (exit 1); exit 1; }; } ;;
42664
42665 *) ac_config_targets="$ac_config_targets $1" ;;
42666
42667 esac
42668 shift
42669done
42670
42671ac_configure_extra_args=
42672
42673if $ac_cs_silent; then
42674 exec 6>/dev/null
42675 ac_configure_extra_args="$ac_configure_extra_args --silent"
42676fi
42677
42678_ACEOF
42679cat >>$CONFIG_STATUS <<_ACEOF
42680if \$ac_cs_recheck; then
42681 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
42682 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
42683fi
42684
42685_ACEOF
42686
42687cat >>$CONFIG_STATUS <<_ACEOF
42688#
42689# INIT-COMMANDS section.
42690#
42691
ceec2216
RL
42692 TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
42693 TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
42694 TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
42695 LN_S="${LN_S}"
a848cd7e
SC
42696
42697
42698_ACEOF
42699
42700
42701
42702cat >>$CONFIG_STATUS <<\_ACEOF
42703for ac_config_target in $ac_config_targets
42704do
42705 case "$ac_config_target" in
42706 # Handling of arguments.
ceec2216
RL
42707 "lib/wx/config/${TOOLCHAIN_FULLNAME}" ) CONFIG_FILES="$CONFIG_FILES lib/wx/config/${TOOLCHAIN_FULLNAME}:wx-config.in" ;;
42708 "lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}" ) CONFIG_FILES="$CONFIG_FILES lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}:wx-config-inplace.in" ;;
a848cd7e
SC
42709 "version-script" ) CONFIG_FILES="$CONFIG_FILES version-script" ;;
42710 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
42711 "$mk" ) CONFIG_FILES="$CONFIG_FILES $mk" ;;
ceec2216
RL
42712 "wx-config" ) CONFIG_COMMANDS="$CONFIG_COMMANDS wx-config" ;;
42713 "lib/wx/include/${TOOLCHAIN_FULLNAME}/wx/setup.h" ) CONFIG_HEADERS="$CONFIG_HEADERS lib/wx/include/${TOOLCHAIN_FULLNAME}/wx/setup.h:setup.h.in" ;;
a848cd7e
SC
42714 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
42715echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
42716 { (exit 1); exit 1; }; };;
42717 esac
42718done
42719
42720# If the user did not use the arguments to specify the items to instantiate,
42721# then the envvar interface is used. Set only those that are not.
42722# We use the long form for the default assignment because of an extremely
42723# bizarre bug on SunOS 4.1.3.
42724if $ac_need_defaults; then
42725 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
42726 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
42727 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
42728fi
42729
42730# Have a temporary directory for convenience. Make it in the build tree
42731# simply because there is no reason to put it here, and in addition,
42732# creating and moving files from /tmp can sometimes cause problems.
42733# Create a temporary directory, and hook for its removal unless debugging.
42734$debug ||
42735{
42736 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
42737 trap '{ (exit 1); exit 1; }' 1 2 13 15
42738}
42739
42740# Create a (secure) tmp directory for tmp files.
42741
42742{
42743 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
42744 test -n "$tmp" && test -d "$tmp"
42745} ||
42746{
42747 tmp=./confstat$$-$RANDOM
42748 (umask 077 && mkdir $tmp)
42749} ||
42750{
42751 echo "$me: cannot create a temporary directory in ." >&2
42752 { (exit 1); exit 1; }
42753}
42754
42755_ACEOF
42756
42757cat >>$CONFIG_STATUS <<_ACEOF
42758
42759#
42760# CONFIG_FILES section.
42761#
42762
42763# No need to generate the scripts if there are no CONFIG_FILES.
42764# This happens for instance when ./config.status config.h
42765if test -n "\$CONFIG_FILES"; then
42766 # Protect against being on the right side of a sed subst in config.status.
42767 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
42768 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
42769s,@SHELL@,$SHELL,;t t
42770s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
42771s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
42772s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
42773s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
42774s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
42775s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
42776s,@exec_prefix@,$exec_prefix,;t t
42777s,@prefix@,$prefix,;t t
42778s,@program_transform_name@,$program_transform_name,;t t
42779s,@bindir@,$bindir,;t t
42780s,@sbindir@,$sbindir,;t t
42781s,@libexecdir@,$libexecdir,;t t
42782s,@datadir@,$datadir,;t t
42783s,@sysconfdir@,$sysconfdir,;t t
42784s,@sharedstatedir@,$sharedstatedir,;t t
42785s,@localstatedir@,$localstatedir,;t t
42786s,@libdir@,$libdir,;t t
42787s,@includedir@,$includedir,;t t
42788s,@oldincludedir@,$oldincludedir,;t t
42789s,@infodir@,$infodir,;t t
42790s,@mandir@,$mandir,;t t
42791s,@build_alias@,$build_alias,;t t
42792s,@host_alias@,$host_alias,;t t
42793s,@target_alias@,$target_alias,;t t
42794s,@DEFS@,$DEFS,;t t
42795s,@ECHO_C@,$ECHO_C,;t t
42796s,@ECHO_N@,$ECHO_N,;t t
42797s,@ECHO_T@,$ECHO_T,;t t
42798s,@LIBS@,$LIBS,;t t
42799s,@build@,$build,;t t
42800s,@build_cpu@,$build_cpu,;t t
42801s,@build_vendor@,$build_vendor,;t t
42802s,@build_os@,$build_os,;t t
42803s,@host@,$host,;t t
42804s,@host_cpu@,$host_cpu,;t t
42805s,@host_vendor@,$host_vendor,;t t
42806s,@host_os@,$host_os,;t t
42807s,@target@,$target,;t t
42808s,@target_cpu@,$target_cpu,;t t
42809s,@target_vendor@,$target_vendor,;t t
42810s,@target_os@,$target_os,;t t
42811s,@CC@,$CC,;t t
42812s,@CFLAGS@,$CFLAGS,;t t
42813s,@LDFLAGS@,$LDFLAGS,;t t
42814s,@CPPFLAGS@,$CPPFLAGS,;t t
42815s,@ac_ct_CC@,$ac_ct_CC,;t t
42816s,@EXEEXT@,$EXEEXT,;t t
42817s,@OBJEXT@,$OBJEXT,;t t
42818s,@CPP@,$CPP,;t t
42819s,@EGREP@,$EGREP,;t t
42820s,@CXX@,$CXX,;t t
42821s,@CXXFLAGS@,$CXXFLAGS,;t t
42822s,@ac_ct_CXX@,$ac_ct_CXX,;t t
42823s,@RANLIB@,$RANLIB,;t t
42824s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
42825s,@AR@,$AR,;t t
42826s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
42827s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
42828s,@INSTALL_DATA@,$INSTALL_DATA,;t t
42829s,@STRIP@,$STRIP,;t t
42830s,@IF_GNU_MAKE@,$IF_GNU_MAKE,;t t
42831s,@LN_S@,$LN_S,;t t
42832s,@CXXCPP@,$CXXCPP,;t t
42833s,@subdirs@,$subdirs,;t t
42834s,@PKG_CONFIG@,$PKG_CONFIG,;t t
42835s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
42836s,@GTK_LIBS@,$GTK_LIBS,;t t
42837s,@GTK_CONFIG@,$GTK_CONFIG,;t t
a848cd7e
SC
42838s,@X_CFLAGS@,$X_CFLAGS,;t t
42839s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
42840s,@X_LIBS@,$X_LIBS,;t t
42841s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
42842s,@PANGOX_CFLAGS@,$PANGOX_CFLAGS,;t t
42843s,@PANGOX_LIBS@,$PANGOX_LIBS,;t t
d1c38808
VZ
42844s,@PANGOFT2_CFLAGS@,$PANGOFT2_CFLAGS,;t t
42845s,@PANGOFT2_LIBS@,$PANGOFT2_LIBS,;t t
a848cd7e
SC
42846s,@PANGOXFT_CFLAGS@,$PANGOXFT_CFLAGS,;t t
42847s,@PANGOXFT_LIBS@,$PANGOXFT_LIBS,;t t
42848s,@RESCOMP@,$RESCOMP,;t t
42849s,@DEREZ@,$DEREZ,;t t
42850s,@SETFILE@,$SETFILE,;t t
42851s,@LIBICONV@,$LIBICONV,;t t
42852s,@EXTRALIBS_ESD@,$EXTRALIBS_ESD,;t t
42853s,@SDL_CONFIG@,$SDL_CONFIG,;t t
42854s,@SDL_CFLAGS@,$SDL_CFLAGS,;t t
42855s,@SDL_LIBS@,$SDL_LIBS,;t t
d1c38808
VZ
42856s,@LIBGNOMEPRINTUI_CFLAGS@,$LIBGNOMEPRINTUI_CFLAGS,;t t
42857s,@LIBGNOMEPRINTUI_LIBS@,$LIBGNOMEPRINTUI_LIBS,;t t
a848cd7e
SC
42858s,@CORE_BASE_LIBS@,$CORE_BASE_LIBS,;t t
42859s,@CORE_GUI_LIBS@,$CORE_GUI_LIBS,;t t
42860s,@wxUSE_ZLIB@,$wxUSE_ZLIB,;t t
42861s,@wxUSE_REGEX@,$wxUSE_REGEX,;t t
42862s,@wxUSE_EXPAT@,$wxUSE_EXPAT,;t t
42863s,@wxUSE_ODBC@,$wxUSE_ODBC,;t t
42864s,@wxUSE_LIBJPEG@,$wxUSE_LIBJPEG,;t t
42865s,@wxUSE_LIBPNG@,$wxUSE_LIBPNG,;t t
42866s,@wxUSE_LIBTIFF@,$wxUSE_LIBTIFF,;t t
42867s,@VENDOR@,$VENDOR,;t t
42868s,@OFFICIAL_BUILD@,$OFFICIAL_BUILD,;t t
ceec2216
RL
42869s,@WX_FLAVOUR@,$WX_FLAVOUR,;t t
42870s,@WX_LIB_FLAVOUR@,$WX_LIB_FLAVOUR,;t t
a848cd7e
SC
42871s,@WXUNIV@,$WXUNIV,;t t
42872s,@MONOLITHIC@,$MONOLITHIC,;t t
42873s,@USE_PLUGINS@,$USE_PLUGINS,;t t
42874s,@EXTRALIBS@,$EXTRALIBS,;t t
42875s,@EXTRALIBS_XML@,$EXTRALIBS_XML,;t t
42876s,@EXTRALIBS_HTML@,$EXTRALIBS_HTML,;t t
42877s,@EXTRALIBS_ODBC@,$EXTRALIBS_ODBC,;t t
42878s,@EXTRALIBS_GUI@,$EXTRALIBS_GUI,;t t
42879s,@EXTRALIBS_OPENGL@,$EXTRALIBS_OPENGL,;t t
42880s,@EXTRALIBS_SDL@,$EXTRALIBS_SDL,;t t
42881s,@WITH_PLUGIN_SDL@,$WITH_PLUGIN_SDL,;t t
d1c38808 42882s,@EXTRALIBS_GNOMEPRINT@,$EXTRALIBS_GNOMEPRINT,;t t
a848cd7e
SC
42883s,@UNICODE@,$UNICODE,;t t
42884s,@BUILD@,$BUILD,;t t
42885s,@DEBUG_INFO@,$DEBUG_INFO,;t t
42886s,@DEBUG_FLAG@,$DEBUG_FLAG,;t t
a848cd7e
SC
42887s,@TOOLKIT_LOWERCASE@,$TOOLKIT_LOWERCASE,;t t
42888s,@TOOLKIT_VERSION@,$TOOLKIT_VERSION,;t t
42889s,@SAMPLES_RPATH_FLAG@,$SAMPLES_RPATH_FLAG,;t t
42890s,@SAMPLES_RPATH_POSTLINK@,$SAMPLES_RPATH_POSTLINK,;t t
42891s,@HOST_SUFFIX@,$HOST_SUFFIX,;t t
42892s,@CPPUNIT_CFLAGS@,$CPPUNIT_CFLAGS,;t t
42893s,@CPPUNIT_LIBS@,$CPPUNIT_LIBS,;t t
42894s,@SET_MAKE@,$SET_MAKE,;t t
42895s,@MAKE_SET@,$MAKE_SET,;t t
42896s,@ac_ct_AR@,$ac_ct_AR,;t t
42897s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
42898s,@NM@,$NM,;t t
42899s,@ac_ct_NM@,$ac_ct_NM,;t t
42900s,@INSTALL_DIR@,$INSTALL_DIR,;t t
42901s,@LDFLAGS_GUI@,$LDFLAGS_GUI,;t t
42902s,@PLATFORM_UNIX@,$PLATFORM_UNIX,;t t
42903s,@PLATFORM_WIN32@,$PLATFORM_WIN32,;t t
42904s,@PLATFORM_MSDOS@,$PLATFORM_MSDOS,;t t
42905s,@PLATFORM_MAC@,$PLATFORM_MAC,;t t
1e9e8aba 42906s,@PLATFORM_MACOS@,$PLATFORM_MACOS,;t t
a848cd7e
SC
42907s,@PLATFORM_MACOSX@,$PLATFORM_MACOSX,;t t
42908s,@PLATFORM_OS2@,$PLATFORM_OS2,;t t
1e9e8aba 42909s,@PLATFORM_BEOS@,$PLATFORM_BEOS,;t t
a848cd7e
SC
42910s,@SO_SUFFIX@,$SO_SUFFIX,;t t
42911s,@SO_SUFFIX_MODULE@,$SO_SUFFIX_MODULE,;t t
42912s,@DLLIMP_SUFFIX@,$DLLIMP_SUFFIX,;t t
42913s,@LIBPREFIX@,$LIBPREFIX,;t t
42914s,@LIBEXT@,$LIBEXT,;t t
42915s,@DLLPREFIX@,$DLLPREFIX,;t t
42916s,@DLLPREFIX_MODULE@,$DLLPREFIX_MODULE,;t t
42917s,@AIX_CXX_LD@,$AIX_CXX_LD,;t t
42918s,@SHARED_LD_CC@,$SHARED_LD_CC,;t t
42919s,@SHARED_LD_CXX@,$SHARED_LD_CXX,;t t
42920s,@SHARED_LD_MODULE_CC@,$SHARED_LD_MODULE_CC,;t t
42921s,@SHARED_LD_MODULE_CXX@,$SHARED_LD_MODULE_CXX,;t t
42922s,@PIC_FLAG@,$PIC_FLAG,;t t
42923s,@USE_SOVERSION@,$USE_SOVERSION,;t t
42924s,@USE_SOVERLINUX@,$USE_SOVERLINUX,;t t
42925s,@USE_SOVERSOLARIS@,$USE_SOVERSOLARIS,;t t
42926s,@USE_MACVERSION@,$USE_MACVERSION,;t t
42927s,@USE_SOSYMLINKS@,$USE_SOSYMLINKS,;t t
42928s,@SONAME_FLAG@,$SONAME_FLAG,;t t
42929s,@DEPS_TRACKING@,$DEPS_TRACKING,;t t
42930s,@GCC_PCH@,$GCC_PCH,;t t
42931s,@COND_BUILD_DEBUG@,$COND_BUILD_DEBUG,;t t
42932s,@COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT@,$COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT,;t t
42933s,@COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT@,$COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT,;t t
42934s,@COND_BUILD_DEBUG_UNICODE_0@,$COND_BUILD_DEBUG_UNICODE_0,;t t
42935s,@COND_BUILD_DEBUG_UNICODE_1@,$COND_BUILD_DEBUG_UNICODE_1,;t t
42936s,@COND_BUILD_RELEASE@,$COND_BUILD_RELEASE,;t t
42937s,@COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT@,$COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT,;t t
42938s,@COND_BUILD_RELEASE_UNICODE_0@,$COND_BUILD_RELEASE_UNICODE_0,;t t
42939s,@COND_BUILD_RELEASE_UNICODE_1@,$COND_BUILD_RELEASE_UNICODE_1,;t t
42940s,@COND_DEBUG_FLAG_1@,$COND_DEBUG_FLAG_1,;t t
42941s,@COND_DEBUG_INFO_0@,$COND_DEBUG_INFO_0,;t t
42942s,@COND_DEBUG_INFO_1@,$COND_DEBUG_INFO_1,;t t
42943s,@COND_DEPS_TRACKING_0@,$COND_DEPS_TRACKING_0,;t t
42944s,@COND_DEPS_TRACKING_1@,$COND_DEPS_TRACKING_1,;t t
42945s,@COND_GCC_PCH_1@,$COND_GCC_PCH_1,;t t
42946s,@COND_MONOLITHIC_0@,$COND_MONOLITHIC_0,;t t
42947s,@COND_MONOLITHIC_0_SHARED_0@,$COND_MONOLITHIC_0_SHARED_0,;t t
42948s,@COND_MONOLITHIC_0_SHARED_0_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1,;t t
90970d69 42949s,@COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1@,$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1,;t t
a848cd7e 42950s,@COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1,;t t
a848cd7e 42951s,@COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1,;t t
ceec2216 42952s,@COND_MONOLITHIC_0_SHARED_0_USE_XRC_1@,$COND_MONOLITHIC_0_SHARED_0_USE_XRC_1,;t t
a848cd7e
SC
42953s,@COND_MONOLITHIC_0_SHARED_1@,$COND_MONOLITHIC_0_SHARED_1,;t t
42954s,@COND_MONOLITHIC_0_SHARED_1_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1,;t t
90970d69 42955s,@COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1@,$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1,;t t
a848cd7e 42956s,@COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1,;t t
a848cd7e 42957s,@COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1,;t t
ceec2216 42958s,@COND_MONOLITHIC_0_SHARED_1_USE_XRC_1@,$COND_MONOLITHIC_0_SHARED_1_USE_XRC_1,;t t
a848cd7e
SC
42959s,@COND_MONOLITHIC_0_USE_ODBC_1@,$COND_MONOLITHIC_0_USE_ODBC_1,;t t
42960s,@COND_MONOLITHIC_1@,$COND_MONOLITHIC_1,;t t
42961s,@COND_MONOLITHIC_1_SHARED_0@,$COND_MONOLITHIC_1_SHARED_0,;t t
42962s,@COND_MONOLITHIC_1_SHARED_1@,$COND_MONOLITHIC_1_SHARED_1,;t t
42963s,@COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1,;t t
42964s,@COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1,;t t
42965s,@COND_PLATFORM_MACOSX_0_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_0_USE_SOVERSION_1,;t t
42966s,@COND_PLATFORM_MACOSX_1@,$COND_PLATFORM_MACOSX_1,;t t
a30f955f 42967s,@COND_PLATFORM_MACOSX_1_TOOLKIT_@,$COND_PLATFORM_MACOSX_1_TOOLKIT_,;t t
a848cd7e
SC
42968s,@COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA@,$COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA,;t t
42969s,@COND_PLATFORM_MACOSX_1_TOOLKIT_GTK@,$COND_PLATFORM_MACOSX_1_TOOLKIT_GTK,;t t
42970s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MAC@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MAC,;t t
fc480dc1 42971s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1,;t t
1e9e8aba 42972s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0,;t t
ebee3cd0
VS
42973s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF,;t t
42974s,@COND_PLATFORM_MACOSX_1_TOOLKIT_X11@,$COND_PLATFORM_MACOSX_1_TOOLKIT_X11,;t t
a848cd7e
SC
42975s,@COND_PLATFORM_MACOSX_1_USE_GUI_1@,$COND_PLATFORM_MACOSX_1_USE_GUI_1,;t t
42976s,@COND_PLATFORM_MACOSX_1_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_1_USE_SOVERSION_1,;t t
b48a2016 42977s,@COND_PLATFORM_MACOS_1@,$COND_PLATFORM_MACOS_1,;t t
a848cd7e
SC
42978s,@COND_PLATFORM_MAC_1@,$COND_PLATFORM_MAC_1,;t t
42979s,@COND_PLATFORM_OS2_1@,$COND_PLATFORM_OS2_1,;t t
42980s,@COND_PLATFORM_UNIX_0@,$COND_PLATFORM_UNIX_0,;t t
42981s,@COND_PLATFORM_UNIX_1@,$COND_PLATFORM_UNIX_1,;t t
42982s,@COND_PLATFORM_UNIX_1_USE_GUI_1@,$COND_PLATFORM_UNIX_1_USE_GUI_1,;t t
42983s,@COND_PLATFORM_UNIX_1_USE_PLUGINS_0@,$COND_PLATFORM_UNIX_1_USE_PLUGINS_0,;t t
42984s,@COND_PLATFORM_WIN32_0@,$COND_PLATFORM_WIN32_0,;t t
42985s,@COND_PLATFORM_WIN32_1@,$COND_PLATFORM_WIN32_1,;t t
42986s,@COND_SHARED_0@,$COND_SHARED_0,;t t
ceec2216
RL
42987s,@COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0,;t t
42988s,@COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0,;t t
42989s,@COND_SHARED_0_TOOLKIT_PM_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_PM_WXUNIV_0,;t t
a848cd7e
SC
42990s,@COND_SHARED_0_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_0_USE_GUI_1_USE_OPENGL_1,;t t
42991s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN,;t t
42992s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN,;t t
42993s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN,;t t
42994s,@COND_SHARED_0_WXUSE_EXPAT_BUILTIN@,$COND_SHARED_0_WXUSE_EXPAT_BUILTIN,;t t
42995s,@COND_SHARED_0_WXUSE_ODBC_BUILTIN@,$COND_SHARED_0_WXUSE_ODBC_BUILTIN,;t t
42996s,@COND_SHARED_0_WXUSE_REGEX_BUILTIN@,$COND_SHARED_0_WXUSE_REGEX_BUILTIN,;t t
42997s,@COND_SHARED_0_WXUSE_ZLIB_BUILTIN@,$COND_SHARED_0_WXUSE_ZLIB_BUILTIN,;t t
42998s,@COND_SHARED_1@,$COND_SHARED_1,;t t
42999s,@COND_SHARED_1_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_1_USE_GUI_1_USE_OPENGL_1,;t t
a30f955f 43000s,@COND_TOOLKIT_@,$COND_TOOLKIT_,;t t
a848cd7e 43001s,@COND_TOOLKIT_COCOA@,$COND_TOOLKIT_COCOA,;t t
a49baeab 43002s,@COND_TOOLKIT_COCOA_USE_GUI_1@,$COND_TOOLKIT_COCOA_USE_GUI_1,;t t
a848cd7e
SC
43003s,@COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0,;t t
43004s,@COND_TOOLKIT_GTK@,$COND_TOOLKIT_GTK,;t t
43005s,@COND_TOOLKIT_GTK_USE_GUI_1@,$COND_TOOLKIT_GTK_USE_GUI_1,;t t
43006s,@COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0,;t t
43007s,@COND_TOOLKIT_MAC@,$COND_TOOLKIT_MAC,;t t
43008s,@COND_TOOLKIT_MAC_USE_GUI_1@,$COND_TOOLKIT_MAC_USE_GUI_1,;t t
43009s,@COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0,;t t
43010s,@COND_TOOLKIT_MGL@,$COND_TOOLKIT_MGL,;t t
43011s,@COND_TOOLKIT_MGL_USE_GUI_1@,$COND_TOOLKIT_MGL_USE_GUI_1,;t t
43012s,@COND_TOOLKIT_MOTIF@,$COND_TOOLKIT_MOTIF,;t t
43013s,@COND_TOOLKIT_MOTIF_USE_GUI_1@,$COND_TOOLKIT_MOTIF_USE_GUI_1,;t t
43014s,@COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0,;t t
43015s,@COND_TOOLKIT_MSW@,$COND_TOOLKIT_MSW,;t t
43016s,@COND_TOOLKIT_MSW_USE_GUI_1@,$COND_TOOLKIT_MSW_USE_GUI_1,;t t
43017s,@COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0,;t t
43018s,@COND_TOOLKIT_PM@,$COND_TOOLKIT_PM,;t t
43019s,@COND_TOOLKIT_PM_USE_GUI_1@,$COND_TOOLKIT_PM_USE_GUI_1,;t t
43020s,@COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0,;t t
3fd9c298
DE
43021s,@COND_TOOLKIT_WINCE@,$COND_TOOLKIT_WINCE,;t t
43022s,@COND_TOOLKIT_WINCE_USE_GUI_1@,$COND_TOOLKIT_WINCE_USE_GUI_1,;t t
43023s,@COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0,;t t
a848cd7e
SC
43024s,@COND_TOOLKIT_X11@,$COND_TOOLKIT_X11,;t t
43025s,@COND_TOOLKIT_X11_USE_GUI_1@,$COND_TOOLKIT_X11_USE_GUI_1,;t t
43026s,@COND_UNICODE_1@,$COND_UNICODE_1,;t t
43027s,@COND_USE_EXCEPTIONS_0@,$COND_USE_EXCEPTIONS_0,;t t
43028s,@COND_USE_EXCEPTIONS_1@,$COND_USE_EXCEPTIONS_1,;t t
43029s,@COND_USE_GUI_0@,$COND_USE_GUI_0,;t t
43030s,@COND_USE_GUI_1@,$COND_USE_GUI_1,;t t
43031s,@COND_USE_GUI_1_WXUNIV_0@,$COND_USE_GUI_1_WXUNIV_0,;t t
43032s,@COND_USE_GUI_1_WXUNIV_1@,$COND_USE_GUI_1_WXUNIV_1,;t t
43033s,@COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN,;t t
43034s,@COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN,;t t
43035s,@COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN,;t t
ceec2216 43036s,@COND_USE_ODBC_1@,$COND_USE_ODBC_1,;t t
ffa0583f 43037s,@COND_USE_OPENGL_1@,$COND_USE_OPENGL_1,;t t
a848cd7e
SC
43038s,@COND_USE_PLUGINS_0@,$COND_USE_PLUGINS_0,;t t
43039s,@COND_USE_SOSYMLINKS_1@,$COND_USE_SOSYMLINKS_1,;t t
43040s,@COND_USE_SOVERLINUX_1@,$COND_USE_SOVERLINUX_1,;t t
43041s,@COND_USE_SOVERSION_0@,$COND_USE_SOVERSION_0,;t t
43042s,@COND_USE_SOVERSOLARIS_1@,$COND_USE_SOVERSOLARIS_1,;t t
a13a7f89 43043s,@COND_USE_XRC_1@,$COND_USE_XRC_1,;t t
a848cd7e 43044s,@COND_WITH_PLUGIN_SDL_1@,$COND_WITH_PLUGIN_SDL_1,;t t
1e6eb025 43045s,@COND_WXUNIV_0@,$COND_WXUNIV_0,;t t
a848cd7e
SC
43046s,@COND_WXUNIV_1@,$COND_WXUNIV_1,;t t
43047s,@COND_WXUSE_EXPAT_BUILTIN@,$COND_WXUSE_EXPAT_BUILTIN,;t t
43048s,@COND_WXUSE_LIBJPEG_BUILTIN@,$COND_WXUSE_LIBJPEG_BUILTIN,;t t
43049s,@COND_WXUSE_LIBPNG_BUILTIN@,$COND_WXUSE_LIBPNG_BUILTIN,;t t
43050s,@COND_WXUSE_LIBTIFF_BUILTIN@,$COND_WXUSE_LIBTIFF_BUILTIN,;t t
43051s,@COND_WXUSE_ODBC_BUILTIN@,$COND_WXUSE_ODBC_BUILTIN,;t t
43052s,@COND_WXUSE_REGEX_BUILTIN@,$COND_WXUSE_REGEX_BUILTIN,;t t
43053s,@COND_WXUSE_ZLIB_BUILTIN@,$COND_WXUSE_ZLIB_BUILTIN,;t t
ceec2216 43054s,@SHARED@,$SHARED,;t t
a848cd7e
SC
43055s,@WX_LIBRARY_BASENAME_NOGUI@,$WX_LIBRARY_BASENAME_NOGUI,;t t
43056s,@WX_LIBRARY_BASENAME_GUI@,$WX_LIBRARY_BASENAME_GUI,;t t
a848cd7e
SC
43057s,@WXDEBUG_DEFINE@,$WXDEBUG_DEFINE,;t t
43058s,@USE_GUI@,$USE_GUI,;t t
43059s,@AFMINSTALL@,$AFMINSTALL,;t t
43060s,@WIN32INSTALL@,$WIN32INSTALL,;t t
43061s,@TOOLKIT@,$TOOLKIT,;t t
43062s,@TOOLKIT_DIR@,$TOOLKIT_DIR,;t t
a848cd7e 43063s,@TOOLCHAIN_NAME@,$TOOLCHAIN_NAME,;t t
ceec2216 43064s,@TOOLCHAIN_FULLNAME@,$TOOLCHAIN_FULLNAME,;t t
a848cd7e
SC
43065s,@TOOLCHAIN_DEFS@,$TOOLCHAIN_DEFS,;t t
43066s,@TOOLCHAIN_DLL_DEFS@,$TOOLCHAIN_DLL_DEFS,;t t
a848cd7e 43067s,@cross_compiling@,$cross_compiling,;t t
ceec2216
RL
43068s,@WIDGET_SET@,$WIDGET_SET,;t t
43069s,@WX_RELEASE@,$WX_RELEASE,;t t
43070s,@WX_VERSION@,$WX_VERSION,;t t
43071s,@WX_SUBVERSION@,$WX_SUBVERSION,;t t
43072s,@WX_CHARTYPE@,$WX_CHARTYPE,;t t
43073s,@WX_DEBUGTYPE@,$WX_DEBUGTYPE,;t t
a848cd7e 43074s,@WXCONFIG_EXTRALIBS@,$WXCONFIG_EXTRALIBS,;t t
a848cd7e
SC
43075s,@WXCONFIG_INCLUDE@,$WXCONFIG_INCLUDE,;t t
43076s,@WXCONFIG_RPATH@,$WXCONFIG_RPATH,;t t
43077s,@WXCONFIG_LDFLAGS_GUI@,$WXCONFIG_LDFLAGS_GUI,;t t
43078s,@WX_LARGEFILE_FLAGS@,$WX_LARGEFILE_FLAGS,;t t
74b84332 43079s,@GCC_PRAGMA_FLAGS@,$GCC_PRAGMA_FLAGS,;t t
a848cd7e
SC
43080s,@CODE_GEN_FLAGS@,$CODE_GEN_FLAGS,;t t
43081s,@CODE_GEN_FLAGS_CXX@,$CODE_GEN_FLAGS_CXX,;t t
ceec2216 43082s,@EXE_LINKER@,$EXE_LINKER,;t t
a848cd7e 43083s,@GUIDIST@,$GUIDIST,;t t
a848cd7e
SC
43084s,@DISTDIR@,$DISTDIR,;t t
43085s,@SAMPLES_SUBDIRS@,$SAMPLES_SUBDIRS,;t t
43086s,@LDFLAGS_GL@,$LDFLAGS_GL,;t t
a848cd7e
SC
43087s,@OPENGL_LIBS@,$OPENGL_LIBS,;t t
43088s,@DMALLOC_LIBS@,$DMALLOC_LIBS,;t t
43089s,@WX_VERSION_TAG@,$WX_VERSION_TAG,;t t
43090s,@RESFLAGS@,$RESFLAGS,;t t
43091s,@RESPROGRAMOBJ@,$RESPROGRAMOBJ,;t t
43092s,@WX_RESOURCES_MACOSX_ASCII@,$WX_RESOURCES_MACOSX_ASCII,;t t
43093s,@WX_RESOURCES_MACOSX_DATA@,$WX_RESOURCES_MACOSX_DATA,;t t
43094s,@LIBWXMACRES@,$LIBWXMACRES,;t t
43095s,@MACRESCOMP@,$MACRESCOMP,;t t
43096s,@MACSETFILE@,$MACSETFILE,;t t
43097s,@MACRESWXCONFIG@,$MACRESWXCONFIG,;t t
43098s,@GCC@,$GCC,;t t
a848cd7e 43099s,@DLLTOOL@,$DLLTOOL,;t t
a848cd7e
SC
43100s,@CPPUNIT_CONFIG@,$CPPUNIT_CONFIG,;t t
43101s,@LIBOBJS@,$LIBOBJS,;t t
43102s,@LTLIBOBJS@,$LTLIBOBJS,;t t
43103CEOF
43104
43105_ACEOF
43106
43107 cat >>$CONFIG_STATUS <<\_ACEOF
43108 # Split the substitutions into bite-sized pieces for seds with
43109 # small command number limits, like on Digital OSF/1 and HP-UX.
43110 ac_max_sed_lines=48
43111 ac_sed_frag=1 # Number of current file.
43112 ac_beg=1 # First line for current file.
43113 ac_end=$ac_max_sed_lines # Line after last line for current file.
43114 ac_more_lines=:
43115 ac_sed_cmds=
43116 while $ac_more_lines; do
43117 if test $ac_beg -gt 1; then
43118 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
43119 else
43120 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
43121 fi
43122 if test ! -s $tmp/subs.frag; then
43123 ac_more_lines=false
43124 else
43125 # The purpose of the label and of the branching condition is to
43126 # speed up the sed processing (if there are no `@' at all, there
43127 # is no need to browse any of the substitutions).
43128 # These are the two extra sed commands mentioned above.
43129 (echo ':t
43130 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
43131 if test -z "$ac_sed_cmds"; then
ac1cb8d3 43132 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
a848cd7e 43133 else
ac1cb8d3 43134 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
a848cd7e
SC
43135 fi
43136 ac_sed_frag=`expr $ac_sed_frag + 1`
43137 ac_beg=$ac_end
43138 ac_end=`expr $ac_end + $ac_max_sed_lines`
43139 fi
43140 done
43141 if test -z "$ac_sed_cmds"; then
43142 ac_sed_cmds=cat
43143 fi
43144fi # test -n "$CONFIG_FILES"
43145
43146_ACEOF
43147cat >>$CONFIG_STATUS <<\_ACEOF
43148for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
43149 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
43150 case $ac_file in
43151 - | *:- | *:-:* ) # input from stdin
ac1cb8d3
VS
43152 cat >$tmp/stdin
43153 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
43154 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e 43155 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
ac1cb8d3 43156 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e
SC
43157 * ) ac_file_in=$ac_file.in ;;
43158 esac
43159
43160 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
43161 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
43162$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
43163 X"$ac_file" : 'X\(//\)[^/]' \| \
43164 X"$ac_file" : 'X\(//\)$' \| \
43165 X"$ac_file" : 'X\(/\)' \| \
43166 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
43167echo X"$ac_file" |
43168 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
43169 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
43170 /^X\(\/\/\)$/{ s//\1/; q; }
43171 /^X\(\/\).*/{ s//\1/; q; }
43172 s/.*/./; q'`
43173 { if $as_mkdir_p; then
43174 mkdir -p "$ac_dir"
43175 else
43176 as_dir="$ac_dir"
43177 as_dirs=
43178 while test ! -d "$as_dir"; do
43179 as_dirs="$as_dir $as_dirs"
43180 as_dir=`(dirname "$as_dir") 2>/dev/null ||
43181$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
43182 X"$as_dir" : 'X\(//\)[^/]' \| \
43183 X"$as_dir" : 'X\(//\)$' \| \
43184 X"$as_dir" : 'X\(/\)' \| \
43185 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
43186echo X"$as_dir" |
43187 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
43188 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
43189 /^X\(\/\/\)$/{ s//\1/; q; }
43190 /^X\(\/\).*/{ s//\1/; q; }
43191 s/.*/./; q'`
43192 done
43193 test ! -n "$as_dirs" || mkdir $as_dirs
43194 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
43195echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
43196 { (exit 1); exit 1; }; }; }
43197
43198 ac_builddir=.
43199
43200if test "$ac_dir" != .; then
43201 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
43202 # A "../" for each directory in $ac_dir_suffix.
43203 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
43204else
43205 ac_dir_suffix= ac_top_builddir=
43206fi
43207
43208case $srcdir in
43209 .) # No --srcdir option. We are building in place.
43210 ac_srcdir=.
43211 if test -z "$ac_top_builddir"; then
43212 ac_top_srcdir=.
43213 else
43214 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
43215 fi ;;
43216 [\\/]* | ?:[\\/]* ) # Absolute path.
43217 ac_srcdir=$srcdir$ac_dir_suffix;
43218 ac_top_srcdir=$srcdir ;;
43219 *) # Relative path.
43220 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
43221 ac_top_srcdir=$ac_top_builddir$srcdir ;;
43222esac
ac1cb8d3
VS
43223
43224# Do not use `cd foo && pwd` to compute absolute paths, because
43225# the directories may not exist.
43226case `pwd` in
43227.) ac_abs_builddir="$ac_dir";;
43228*)
43229 case "$ac_dir" in
43230 .) ac_abs_builddir=`pwd`;;
43231 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
43232 *) ac_abs_builddir=`pwd`/"$ac_dir";;
43233 esac;;
43234esac
43235case $ac_abs_builddir in
43236.) ac_abs_top_builddir=${ac_top_builddir}.;;
43237*)
43238 case ${ac_top_builddir}. in
43239 .) ac_abs_top_builddir=$ac_abs_builddir;;
43240 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
43241 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
43242 esac;;
43243esac
43244case $ac_abs_builddir in
43245.) ac_abs_srcdir=$ac_srcdir;;
43246*)
43247 case $ac_srcdir in
43248 .) ac_abs_srcdir=$ac_abs_builddir;;
43249 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
43250 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
43251 esac;;
43252esac
43253case $ac_abs_builddir in
43254.) ac_abs_top_srcdir=$ac_top_srcdir;;
43255*)
43256 case $ac_top_srcdir in
43257 .) ac_abs_top_srcdir=$ac_abs_builddir;;
43258 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
43259 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
43260 esac;;
43261esac
a848cd7e
SC
43262
43263
43264 case $INSTALL in
43265 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
43266 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
43267 esac
43268
89be85c2
VS
43269 if test x"$ac_file" != x-; then
43270 { echo "$as_me:$LINENO: creating $ac_file" >&5
43271echo "$as_me: creating $ac_file" >&6;}
43272 rm -f "$ac_file"
43273 fi
a848cd7e
SC
43274 # Let's still pretend it is `configure' which instantiates (i.e., don't
43275 # use $as_me), people would be surprised to read:
43276 # /* config.h. Generated by config.status. */
43277 if test x"$ac_file" = x-; then
43278 configure_input=
43279 else
43280 configure_input="$ac_file. "
43281 fi
43282 configure_input=$configure_input"Generated from `echo $ac_file_in |
ac1cb8d3 43283 sed 's,.*/,,'` by configure."
a848cd7e
SC
43284
43285 # First look for the input files in the build tree, otherwise in the
43286 # src tree.
43287 ac_file_inputs=`IFS=:
43288 for f in $ac_file_in; do
43289 case $f in
43290 -) echo $tmp/stdin ;;
43291 [\\/$]*)
ac1cb8d3
VS
43292 # Absolute (can't be DOS-style, as IFS=:)
43293 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
43294echo "$as_me: error: cannot find input file: $f" >&2;}
43295 { (exit 1); exit 1; }; }
ac1cb8d3 43296 echo "$f";;
a848cd7e 43297 *) # Relative
ac1cb8d3
VS
43298 if test -f "$f"; then
43299 # Build tree
43300 echo "$f"
43301 elif test -f "$srcdir/$f"; then
43302 # Source tree
43303 echo "$srcdir/$f"
43304 else
43305 # /dev/null tree
43306 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
43307echo "$as_me: error: cannot find input file: $f" >&2;}
43308 { (exit 1); exit 1; }; }
ac1cb8d3 43309 fi;;
a848cd7e
SC
43310 esac
43311 done` || { (exit 1); exit 1; }
43312_ACEOF
43313cat >>$CONFIG_STATUS <<_ACEOF
43314 sed "$ac_vpsub
43315$extrasub
43316_ACEOF
43317cat >>$CONFIG_STATUS <<\_ACEOF
43318:t
43319/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
43320s,@configure_input@,$configure_input,;t t
43321s,@srcdir@,$ac_srcdir,;t t
43322s,@abs_srcdir@,$ac_abs_srcdir,;t t
43323s,@top_srcdir@,$ac_top_srcdir,;t t
43324s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
43325s,@builddir@,$ac_builddir,;t t
43326s,@abs_builddir@,$ac_abs_builddir,;t t
43327s,@top_builddir@,$ac_top_builddir,;t t
43328s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
43329s,@INSTALL@,$ac_INSTALL,;t t
43330" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
43331 rm -f $tmp/stdin
43332 if test x"$ac_file" != x-; then
43333 mv $tmp/out $ac_file
43334 else
43335 cat $tmp/out
43336 rm -f $tmp/out
43337 fi
43338
ceec2216
RL
43339 # Run the commands associated with the file.
43340 case $ac_file in
43341 lib/wx/config/${TOOLCHAIN_FULLNAME} ) chmod +x lib/wx/config/${TOOLCHAIN_FULLNAME} ;;
43342 lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} ) chmod +x lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} ;;
43343 esac
a848cd7e
SC
43344done
43345_ACEOF
43346cat >>$CONFIG_STATUS <<\_ACEOF
43347
43348#
43349# CONFIG_HEADER section.
43350#
43351
43352# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
43353# NAME is the cpp macro being defined and VALUE is the value it is being given.
43354#
43355# ac_d sets the value in "#define NAME VALUE" lines.
ac1cb8d3
VS
43356ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
43357ac_dB='[ ].*$,\1#\2'
a848cd7e
SC
43358ac_dC=' '
43359ac_dD=',;t'
43360# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
ac1cb8d3 43361ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
a848cd7e
SC
43362ac_uB='$,\1#\2define\3'
43363ac_uC=' '
43364ac_uD=',;t'
43365
43366for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
43367 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
43368 case $ac_file in
43369 - | *:- | *:-:* ) # input from stdin
ac1cb8d3
VS
43370 cat >$tmp/stdin
43371 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
43372 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e 43373 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
ac1cb8d3 43374 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e
SC
43375 * ) ac_file_in=$ac_file.in ;;
43376 esac
43377
43378 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
43379echo "$as_me: creating $ac_file" >&6;}
43380
43381 # First look for the input files in the build tree, otherwise in the
43382 # src tree.
43383 ac_file_inputs=`IFS=:
43384 for f in $ac_file_in; do
43385 case $f in
43386 -) echo $tmp/stdin ;;
43387 [\\/$]*)
ac1cb8d3
VS
43388 # Absolute (can't be DOS-style, as IFS=:)
43389 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
43390echo "$as_me: error: cannot find input file: $f" >&2;}
43391 { (exit 1); exit 1; }; }
ac1cb8d3
VS
43392 # Do quote $f, to prevent DOS paths from being IFS'd.
43393 echo "$f";;
a848cd7e 43394 *) # Relative
ac1cb8d3
VS
43395 if test -f "$f"; then
43396 # Build tree
43397 echo "$f"
43398 elif test -f "$srcdir/$f"; then
43399 # Source tree
43400 echo "$srcdir/$f"
43401 else
43402 # /dev/null tree
43403 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
43404echo "$as_me: error: cannot find input file: $f" >&2;}
43405 { (exit 1); exit 1; }; }
ac1cb8d3 43406 fi;;
a848cd7e
SC
43407 esac
43408 done` || { (exit 1); exit 1; }
43409 # Remove the trailing spaces.
ac1cb8d3 43410 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
a848cd7e
SC
43411
43412_ACEOF
43413
43414# Transform confdefs.h into two sed scripts, `conftest.defines' and
43415# `conftest.undefs', that substitutes the proper values into
43416# config.h.in to produce config.h. The first handles `#define'
43417# templates, and the second `#undef' templates.
43418# And first: Protect against being on the right side of a sed subst in
43419# config.status. Protect against being in an unquoted here document
43420# in config.status.
43421rm -f conftest.defines conftest.undefs
43422# Using a here document instead of a string reduces the quoting nightmare.
43423# Putting comments in sed scripts is not portable.
43424#
43425# `end' is used to avoid that the second main sed command (meant for
43426# 0-ary CPP macros) applies to n-ary macro definitions.
43427# See the Autoconf documentation for `clear'.
43428cat >confdef2sed.sed <<\_ACEOF
43429s/[\\&,]/\\&/g
43430s,[\\$`],\\&,g
43431t clear
43432: clear
ac1cb8d3 43433s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
a848cd7e 43434t end
ac1cb8d3 43435s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
a848cd7e
SC
43436: end
43437_ACEOF
43438# If some macros were called several times there might be several times
43439# the same #defines, which is useless. Nevertheless, we may not want to
43440# sort them, since we want the *last* AC-DEFINE to be honored.
43441uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
43442sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
43443rm -f confdef2sed.sed
43444
43445# This sed command replaces #undef with comments. This is necessary, for
43446# example, in the case of _POSIX_SOURCE, which is predefined and required
43447# on some systems where configure will not decide to define it.
43448cat >>conftest.undefs <<\_ACEOF
ac1cb8d3 43449s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
a848cd7e
SC
43450_ACEOF
43451
43452# Break up conftest.defines because some shells have a limit on the size
43453# of here documents, and old seds have small limits too (100 cmds).
43454echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
ac1cb8d3 43455echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
a848cd7e
SC
43456echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
43457echo ' :' >>$CONFIG_STATUS
43458rm -f conftest.tail
43459while grep . conftest.defines >/dev/null
43460do
43461 # Write a limited-size here document to $tmp/defines.sed.
43462 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
43463 # Speed up: don't consider the non `#define' lines.
ac1cb8d3 43464 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
a848cd7e
SC
43465 # Work around the forget-to-reset-the-flag bug.
43466 echo 't clr' >>$CONFIG_STATUS
43467 echo ': clr' >>$CONFIG_STATUS
43468 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
43469 echo 'CEOF
43470 sed -f $tmp/defines.sed $tmp/in >$tmp/out
43471 rm -f $tmp/in
43472 mv $tmp/out $tmp/in
43473' >>$CONFIG_STATUS
43474 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
43475 rm -f conftest.defines
43476 mv conftest.tail conftest.defines
43477done
43478rm -f conftest.defines
43479echo ' fi # grep' >>$CONFIG_STATUS
43480echo >>$CONFIG_STATUS
43481
43482# Break up conftest.undefs because some shells have a limit on the size
43483# of here documents, and old seds have small limits too (100 cmds).
43484echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
43485rm -f conftest.tail
43486while grep . conftest.undefs >/dev/null
43487do
43488 # Write a limited-size here document to $tmp/undefs.sed.
43489 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
43490 # Speed up: don't consider the non `#undef'
ac1cb8d3 43491 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
a848cd7e
SC
43492 # Work around the forget-to-reset-the-flag bug.
43493 echo 't clr' >>$CONFIG_STATUS
43494 echo ': clr' >>$CONFIG_STATUS
43495 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
43496 echo 'CEOF
43497 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
43498 rm -f $tmp/in
43499 mv $tmp/out $tmp/in
43500' >>$CONFIG_STATUS
43501 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
43502 rm -f conftest.undefs
43503 mv conftest.tail conftest.undefs
43504done
43505rm -f conftest.undefs
43506
43507cat >>$CONFIG_STATUS <<\_ACEOF
43508 # Let's still pretend it is `configure' which instantiates (i.e., don't
43509 # use $as_me), people would be surprised to read:
43510 # /* config.h. Generated by config.status. */
43511 if test x"$ac_file" = x-; then
43512 echo "/* Generated by configure. */" >$tmp/config.h
43513 else
43514 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
43515 fi
43516 cat $tmp/in >>$tmp/config.h
43517 rm -f $tmp/in
43518 if test x"$ac_file" != x-; then
43519 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
43520 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
43521echo "$as_me: $ac_file is unchanged" >&6;}
43522 else
43523 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
43524$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
43525 X"$ac_file" : 'X\(//\)[^/]' \| \
43526 X"$ac_file" : 'X\(//\)$' \| \
43527 X"$ac_file" : 'X\(/\)' \| \
43528 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
43529echo X"$ac_file" |
43530 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
43531 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
43532 /^X\(\/\/\)$/{ s//\1/; q; }
43533 /^X\(\/\).*/{ s//\1/; q; }
43534 s/.*/./; q'`
43535 { if $as_mkdir_p; then
43536 mkdir -p "$ac_dir"
43537 else
43538 as_dir="$ac_dir"
43539 as_dirs=
43540 while test ! -d "$as_dir"; do
43541 as_dirs="$as_dir $as_dirs"
43542 as_dir=`(dirname "$as_dir") 2>/dev/null ||
43543$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
43544 X"$as_dir" : 'X\(//\)[^/]' \| \
43545 X"$as_dir" : 'X\(//\)$' \| \
43546 X"$as_dir" : 'X\(/\)' \| \
43547 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
43548echo X"$as_dir" |
43549 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
43550 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
43551 /^X\(\/\/\)$/{ s//\1/; q; }
43552 /^X\(\/\).*/{ s//\1/; q; }
43553 s/.*/./; q'`
43554 done
43555 test ! -n "$as_dirs" || mkdir $as_dirs
43556 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
43557echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
43558 { (exit 1); exit 1; }; }; }
43559
43560 rm -f $ac_file
43561 mv $tmp/config.h $ac_file
43562 fi
43563 else
43564 cat $tmp/config.h
43565 rm -f $tmp/config.h
43566 fi
43567done
43568_ACEOF
43569cat >>$CONFIG_STATUS <<\_ACEOF
43570
43571#
43572# CONFIG_COMMANDS section.
43573#
43574for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
43575 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
43576 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
43577 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
43578$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
43579 X"$ac_dest" : 'X\(//\)[^/]' \| \
43580 X"$ac_dest" : 'X\(//\)$' \| \
43581 X"$ac_dest" : 'X\(/\)' \| \
43582 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
43583echo X"$ac_dest" |
43584 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
43585 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
43586 /^X\(\/\/\)$/{ s//\1/; q; }
43587 /^X\(\/\).*/{ s//\1/; q; }
43588 s/.*/./; q'`
ac1cb8d3
VS
43589 { if $as_mkdir_p; then
43590 mkdir -p "$ac_dir"
43591 else
43592 as_dir="$ac_dir"
43593 as_dirs=
43594 while test ! -d "$as_dir"; do
43595 as_dirs="$as_dir $as_dirs"
43596 as_dir=`(dirname "$as_dir") 2>/dev/null ||
43597$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
43598 X"$as_dir" : 'X\(//\)[^/]' \| \
43599 X"$as_dir" : 'X\(//\)$' \| \
43600 X"$as_dir" : 'X\(/\)' \| \
43601 . : '\(.\)' 2>/dev/null ||
43602echo X"$as_dir" |
43603 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
43604 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
43605 /^X\(\/\/\)$/{ s//\1/; q; }
43606 /^X\(\/\).*/{ s//\1/; q; }
43607 s/.*/./; q'`
43608 done
43609 test ! -n "$as_dirs" || mkdir $as_dirs
43610 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
43611echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
43612 { (exit 1); exit 1; }; }; }
43613
a848cd7e
SC
43614 ac_builddir=.
43615
43616if test "$ac_dir" != .; then
43617 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
43618 # A "../" for each directory in $ac_dir_suffix.
43619 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
43620else
43621 ac_dir_suffix= ac_top_builddir=
43622fi
43623
43624case $srcdir in
43625 .) # No --srcdir option. We are building in place.
43626 ac_srcdir=.
43627 if test -z "$ac_top_builddir"; then
43628 ac_top_srcdir=.
43629 else
43630 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
43631 fi ;;
43632 [\\/]* | ?:[\\/]* ) # Absolute path.
43633 ac_srcdir=$srcdir$ac_dir_suffix;
43634 ac_top_srcdir=$srcdir ;;
43635 *) # Relative path.
43636 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
43637 ac_top_srcdir=$ac_top_builddir$srcdir ;;
43638esac
ac1cb8d3
VS
43639
43640# Do not use `cd foo && pwd` to compute absolute paths, because
43641# the directories may not exist.
43642case `pwd` in
43643.) ac_abs_builddir="$ac_dir";;
43644*)
43645 case "$ac_dir" in
43646 .) ac_abs_builddir=`pwd`;;
43647 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
43648 *) ac_abs_builddir=`pwd`/"$ac_dir";;
43649 esac;;
43650esac
43651case $ac_abs_builddir in
43652.) ac_abs_top_builddir=${ac_top_builddir}.;;
43653*)
43654 case ${ac_top_builddir}. in
43655 .) ac_abs_top_builddir=$ac_abs_builddir;;
43656 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
43657 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
43658 esac;;
43659esac
43660case $ac_abs_builddir in
43661.) ac_abs_srcdir=$ac_srcdir;;
43662*)
43663 case $ac_srcdir in
43664 .) ac_abs_srcdir=$ac_abs_builddir;;
43665 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
43666 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
43667 esac;;
43668esac
43669case $ac_abs_builddir in
43670.) ac_abs_top_srcdir=$ac_top_srcdir;;
43671*)
43672 case $ac_top_srcdir in
43673 .) ac_abs_top_srcdir=$ac_abs_builddir;;
43674 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
43675 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
43676 esac;;
43677esac
a848cd7e
SC
43678
43679
43680 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
43681echo "$as_me: executing $ac_dest commands" >&6;}
43682 case $ac_dest in
ceec2216
RL
43683 wx-config ) rm -f wx-config
43684 ${LN_S} lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} wx-config
43685 ;;
a848cd7e
SC
43686 esac
43687done
43688_ACEOF
43689
43690cat >>$CONFIG_STATUS <<\_ACEOF
43691
43692{ (exit 0); exit 0; }
43693_ACEOF
43694chmod +x $CONFIG_STATUS
43695ac_clean_files=$ac_clean_files_save
43696
43697
43698# configure is writing to config.log, and then calls config.status.
43699# config.status does its own redirection, appending to config.log.
43700# Unfortunately, on DOS this fails, as config.log is still kept open
43701# by configure, so config.status won't be able to write to it; its
43702# output is simply discarded. So we exec the FD to /dev/null,
43703# effectively closing config.log, so it can be properly (re)opened and
43704# appended to by config.status. When coming back to configure, we
43705# need to make the FD available again.
43706if test "$no_create" != yes; then
43707 ac_cs_success=:
43708 ac_config_status_args=
43709 test "$silent" = yes &&
43710 ac_config_status_args="$ac_config_status_args --quiet"
43711 exec 5>/dev/null
43712 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
43713 exec 5>>config.log
43714 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
43715 # would make configure fail if this is the last instruction.
43716 $ac_cs_success || { (exit 1); exit 1; }
43717fi
43718
43719#
43720# CONFIG_SUBDIRS section.
43721#
43722if test "$no_recursion" != yes; then
43723
43724 # Remove --cache-file and --srcdir arguments so they do not pile up.
43725 ac_sub_configure_args=
43726 ac_prev=
43727 for ac_arg in $ac_configure_args; do
43728 if test -n "$ac_prev"; then
43729 ac_prev=
43730 continue
43731 fi
43732 case $ac_arg in
43733 -cache-file | --cache-file | --cache-fil | --cache-fi \
43734 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
43735 ac_prev=cache_file ;;
43736 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
43737 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
43738 | --c=*)
43739 ;;
43740 --config-cache | -C)
43741 ;;
43742 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
43743 ac_prev=srcdir ;;
43744 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
43745 ;;
43746 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
43747 ac_prev=prefix ;;
43748 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
43749 ;;
43750 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
43751 esac
43752 done
43753
43754 # Always prepend --prefix to ensure using the same prefix
43755 # in subdir configurations.
43756 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
43757
43758 ac_popdir=`pwd`
43759 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
43760
43761 # Do not complain, so a configure script can configure whichever
43762 # parts of a large source tree are present.
43763 test -d $srcdir/$ac_dir || continue
43764
43765 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
43766echo "$as_me: configuring in $ac_dir" >&6;}
43767 { if $as_mkdir_p; then
43768 mkdir -p "$ac_dir"
43769 else
43770 as_dir="$ac_dir"
43771 as_dirs=
43772 while test ! -d "$as_dir"; do
43773 as_dirs="$as_dir $as_dirs"
43774 as_dir=`(dirname "$as_dir") 2>/dev/null ||
43775$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
43776 X"$as_dir" : 'X\(//\)[^/]' \| \
43777 X"$as_dir" : 'X\(//\)$' \| \
43778 X"$as_dir" : 'X\(/\)' \| \
43779 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
43780echo X"$as_dir" |
43781 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
43782 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
43783 /^X\(\/\/\)$/{ s//\1/; q; }
43784 /^X\(\/\).*/{ s//\1/; q; }
43785 s/.*/./; q'`
43786 done
43787 test ! -n "$as_dirs" || mkdir $as_dirs
43788 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
43789echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
43790 { (exit 1); exit 1; }; }; }
43791
43792 ac_builddir=.
43793
43794if test "$ac_dir" != .; then
43795 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
43796 # A "../" for each directory in $ac_dir_suffix.
43797 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
43798else
43799 ac_dir_suffix= ac_top_builddir=
43800fi
43801
43802case $srcdir in
43803 .) # No --srcdir option. We are building in place.
43804 ac_srcdir=.
43805 if test -z "$ac_top_builddir"; then
43806 ac_top_srcdir=.
43807 else
43808 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
43809 fi ;;
43810 [\\/]* | ?:[\\/]* ) # Absolute path.
43811 ac_srcdir=$srcdir$ac_dir_suffix;
43812 ac_top_srcdir=$srcdir ;;
43813 *) # Relative path.
43814 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
43815 ac_top_srcdir=$ac_top_builddir$srcdir ;;
43816esac
ac1cb8d3
VS
43817
43818# Do not use `cd foo && pwd` to compute absolute paths, because
43819# the directories may not exist.
43820case `pwd` in
43821.) ac_abs_builddir="$ac_dir";;
43822*)
43823 case "$ac_dir" in
43824 .) ac_abs_builddir=`pwd`;;
43825 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
43826 *) ac_abs_builddir=`pwd`/"$ac_dir";;
43827 esac;;
43828esac
43829case $ac_abs_builddir in
43830.) ac_abs_top_builddir=${ac_top_builddir}.;;
43831*)
43832 case ${ac_top_builddir}. in
43833 .) ac_abs_top_builddir=$ac_abs_builddir;;
43834 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
43835 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
43836 esac;;
43837esac
43838case $ac_abs_builddir in
43839.) ac_abs_srcdir=$ac_srcdir;;
43840*)
43841 case $ac_srcdir in
43842 .) ac_abs_srcdir=$ac_abs_builddir;;
43843 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
43844 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
43845 esac;;
43846esac
43847case $ac_abs_builddir in
43848.) ac_abs_top_srcdir=$ac_top_srcdir;;
43849*)
43850 case $ac_top_srcdir in
43851 .) ac_abs_top_srcdir=$ac_abs_builddir;;
43852 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
43853 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
43854 esac;;
43855esac
a848cd7e
SC
43856
43857
43858 cd $ac_dir
43859
43860 # Check for guested configure; otherwise get Cygnus style configure.
43861 if test -f $ac_srcdir/configure.gnu; then
43862 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
43863 elif test -f $ac_srcdir/configure; then
43864 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
43865 elif test -f $ac_srcdir/configure.in; then
43866 ac_sub_configure=$ac_configure
43867 else
43868 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
43869echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
43870 ac_sub_configure=
43871 fi
43872
43873 # The recursion is here.
43874 if test -n "$ac_sub_configure"; then
43875 # Make the cache file name correct relative to the subdirectory.
43876 case $cache_file in
43877 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
43878 *) # Relative path.
ac1cb8d3 43879 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
a848cd7e
SC
43880 esac
43881
43882 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
43883echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
43884 # The eval makes quoting arguments work.
43885 eval $ac_sub_configure $ac_sub_configure_args \
ac1cb8d3
VS
43886 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
43887 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
a848cd7e
SC
43888echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
43889 { (exit 1); exit 1; }; }
43890 fi
43891
89be85c2 43892 cd $ac_popdir
a848cd7e
SC
43893 done
43894fi
43895
43896
43897echo
77ffb593 43898echo "Configured wxWidgets ${WX_VERSION} for \`${host}'"
a848cd7e 43899echo ""
4d4ff94c 43900echo " Which GUI toolkit should wxWidgets use? ${TOOLKIT_USER:-base only}"
77ffb593 43901echo " Should wxWidgets be compiled into single library? ${wxUSE_MONOLITHIC:-yes}"
a848cd7e 43902
77ffb593
JS
43903echo " Should wxWidgets be compiled in debug mode? ${wxUSE_DEBUG:-no}"
43904echo " Should wxWidgets be linked as a shared library? ${wxUSE_SHARED:-no}"
43905echo " Should wxWidgets be compiled in Unicode mode? ${wxUSE_UNICODE:-no}"
a848cd7e 43906
77ffb593
JS
43907echo " What level of wxWidgets compatibility should be enabled?"
43908echo " wxWidgets 2.2 ${WXWIN_COMPATIBILITY_2_2:-no}"
43909echo " wxWidgets 2.4 ${WXWIN_COMPATIBILITY_2_4:-yes}"
a848cd7e 43910
77ffb593 43911echo " Which libraries should wxWidgets use?"
a848cd7e
SC
43912echo " jpeg ${wxUSE_LIBJPEG-none}"
43913echo " png ${wxUSE_LIBPNG-none}"
43914echo " regex ${wxUSE_REGEX}"
43915echo " tiff ${wxUSE_LIBTIFF-none}"
43916if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
43917echo " xpm ${wxUSE_LIBXPM-none}"
43918fi
43919echo " zlib ${wxUSE_ZLIB}"
43920echo " odbc ${wxUSE_ODBC}"
43921echo " expat ${wxUSE_EXPAT}"
43922echo " libmspack ${wxUSE_LIBMSPACK}"
43923echo " sdl ${wxUSE_LIBSDL}"
6d1ce868 43924echo " gnomeprint ${wxUSE_LIBGNOMEPRINT-none}"
a848cd7e
SC
43925
43926echo ""
43927