]> git.saurik.com Git - wxWidgets.git/blame - configure
Missing includes.
[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.
e0d84535 4# Generated by GNU Autoconf 2.59 for wxWidgets 2.6.0.
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'
e0d84535
RL
273PACKAGE_VERSION='2.6.0'
274PACKAGE_STRING='wxWidgets 2.6.0'
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"
52ada004 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 GSTREAMER_CFLAGS GSTREAMER_LIBS GST_INSPECT 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_GUI_1_USE_QA_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_GUI_1_USE_QA_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_USE_XRC_1 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_SHARED_1_USE_XRC_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_RTTI_0 COND_USE_RTTI_1 COND_USE_SOSYMLINKS_1 COND_USE_SOVERLINUX_1 COND_USE_SOVERSION_0 COND_USE_SOVERSOLARIS_1 COND_USE_THREADS_0 COND_USE_THREADS_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
e0d84535 797\`configure' configures wxWidgets 2.6.0 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
e0d84535 863 short | recursive ) echo "Configuration of wxWidgets 2.6.0:";;
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
a848cd7e
SC
875 --enable-gpe use GNOME PDA Environment features if possible
876 --enable-shared create shared library code
877 --enable-optimise create optimised code
878 --enable-debug same as debug_flag and debug_info
879 --enable-stl use STL for containers
880 --enable-omf use OMF object format
881 --enable-debug_flag set __WXDEBUG__ flag (recommended for developers!)
882 --enable-debug_info create code with debugging information
883 --enable-debug_gdb create code with extra GDB debugging information
884 --enable-debug_cntxt use wxDebugContext
885 --enable-mem_tracing create code with memory tracing
886 --enable-profile create code with profiling information
887 --enable-no_rtti create code without RTTI information
888 --enable-no_exceptions create code without C++ exceptions handling
889 --enable-permissive compile code disregarding strict ANSI
890 --enable-no_deps create code without dependency information
77ffb593
JS
891 --enable-compat22 enable wxWidgets 2.2 compatibility
892 --disable-compat24 disable wxWidgets 2.4 compatibility
ffa0583f 893 --disable-rpath disable use of rpath for uninstalled builds
a848cd7e
SC
894 --enable-intl use internationalization system
895 --enable-config use wxConfig (and derived) classes
896 --enable-protocols use wxProtocol and derived classes
897 --enable-ftp use wxFTP (requires wxProtocol
898 --enable-http use wxHTTP (requires wxProtocol
899 --enable-fileproto use wxFileProto class (requires wxProtocol
900 --enable-sockets use socket/network classes
901 --enable-ole use OLE classes (Win32 only)
902 --enable-dataobj use data object classes
903 --enable-ipc use interprocess communication (wxSocket etc.)
904 --enable-apple_ieee use the Apple IEEE codec
81f90336 905 --enable-arcstream use wxArchive streams
eaff0f0d 906 --enable-backtrace use wxStackWalker class for getting backtraces
36b6448c 907 --enable-catch_segvs catch signals in wxApp::OnFatalException (Unix only)
a848cd7e
SC
908 --enable-cmdline use wxCmdLineParser class
909 --enable-datetime use wxDateTime class
36b6448c 910 --enable-debugreport use wxDebugReport class
a848cd7e
SC
911 --enable-dialupman use dialup network classes
912 --enable-dynlib use wxLibrary class for DLL loading
913 --enable-dynamicloader use (new) wxDynamicLibrary class
914 --enable-exceptions build exception-safe library
915 --enable-ffile use wxFFile class
916 --enable-file use wxFile class
917 --enable-filesystem use virtual file systems classes
918 --enable-fontmap use font encodings conversion classes
919 --enable-fs_inet use virtual HTTP/FTP filesystems
920 --enable-fs_zip use virtual ZIP filesystems
921 --enable-geometry use geometry class
922 --enable-log use logging system
923 --enable-longlong use wxLongLong class
924 --enable-mimetype use wxMimeTypesManager
925 --enable-mslu use MS Layer for Unicode on Windows 9x (Win32 only)
926 --enable-snglinst use wxSingleInstanceChecker class
a848cd7e 927 --enable-std_iostreams use standard C++ stream classes
59746b65 928 --enable-std_string use standard C++ string classes
07158944 929 --enable-stdpaths use wxStandardPaths class
a848cd7e 930 --enable-stopwatch use wxStopWatch class
07158944 931 --enable-streams use wxStream etc classes
a848cd7e
SC
932 --enable-sysoptions use wxSystemOptions
933 --enable-textbuf use wxTextBuffer class
934 --enable-textfile use wxTextFile class
935 --enable-timer use wxTimer class
936 --enable-unicode compile wxString with Unicode support
937 --enable-sound use wxSound class
3b57de8b 938 --enable-mediactrl use wxMediaCtrl class
77ffb593 939 --enable-wxprintfv use wxWidgets implementation of vprintf()
81f90336 940 --enable-zipstream use wxZip streams
a848cd7e
SC
941 --enable-url use wxURL class
942 --enable-protocol use wxProtocol class
943 --enable-protocol-http HTTP support in wxProtocol
944 --enable-protocol-ftp FTP support in wxProtocol
945 --enable-protocol-file FILE support in wxProtocol
946 --enable-threads use threads
947 --enable-docview use document view architecture
948 --enable-help use help subsystem
949 --enable-mshtmlhelp use MS HTML Help (win32)
950 --enable-html use wxHTML sub-library
951 --enable-htmlhelp use wxHTML-based help
9a8f0513 952 --enable-xrc use XRC resources sub-library
a848cd7e
SC
953 --enable-constraints use layout-constraints system
954 --enable-printarch use printing architecture
955 --enable-mdi use multiple document interface architecture
8a7b1113 956 --enable-mdidoc use docview architecture with MDI
a848cd7e
SC
957 --enable-loggui use standard GUI logger
958 --enable-logwin use wxLogWindow
959 --enable-logdialog use wxLogDialog
646b6ec1 960 --enable-webkit use wxWebKitCtrl (Mac)
a848cd7e
SC
961 --enable-postscript use wxPostscriptDC device context (default for gtk+)
962 --enable-prologio not available; see contrib
963 --enable-resources not available; see contrib
964 --enable-clipboard use wxClipboard class
965 --enable-dnd use Drag'n'Drop classes
966 --enable-metafile use win32 metafiles
967 --enable-controls use all usual controls
968 --enable-accel use accelerators
969 --enable-button use wxButton class
970 --enable-bmpbutton use wxBitmapButton class
971 --enable-calendar use wxCalendarCtrl class
972 --enable-caret use wxCaret class
973 --enable-checkbox use wxCheckBox class
974 --enable-checklst use wxCheckListBox (listbox with checkboxes) class
975 --enable-choice use wxChoice class
92bbdbcd 976 --enable-choicebook use wxChoicebook class
a848cd7e 977 --enable-combobox use wxComboBox class
da98e9be 978 --enable-datepick use wxDatePickerCtrl class
a848cd7e
SC
979 --enable-display use wxDisplay class
980 --enable-gauge use wxGauge class
981 --enable-grid use wxGrid class
982 --enable-imaglist use wxImageList class
983 --enable-listbook use wxListbook class
984 --enable-listbox use wxListBox class
985 --enable-listctrl use wxListCtrl class
986 --enable-notebook use wxNotebook class
987 --enable-radiobox use wxRadioBox class
988 --enable-radiobtn use wxRadioButton class
989 --enable-sash use wxSashWindow class
990 --enable-scrollbar use wxScrollBar class and scrollable windows
991 --enable-slider use wxSlider class
992 --enable-spinbtn use wxSpinButton class
993 --enable-spinctrl use wxSpinCtrl class
994 --enable-splitter use wxSplitterWindow class
995 --enable-statbmp use wxStaticBitmap class
996 --enable-statbox use wxStaticBox class
997 --enable-statline use wxStaticLine class
998 --enable-stattext use wxStaticText class
999 --enable-statusbar use wxStatusBar class
1000 --enable-tabdialog use wxTabControl class
1001 --enable-textctrl use wxTextCtrl class
1002 --enable-togglebtn use wxToggleButton class
1003 --enable-toolbar use wxToolBar class
1004 --enable-tbarnative use native wxToolBar class
1005 --enable-tbarsmpl use wxToolBarSimple class
1006 --enable-treectrl use wxTreeCtrl class
1007 --enable-tipwindow use wxTipWindow class
1008 --enable-popupwin use wxPopUpWindow class
1009 --enable-commondlg use all common dialogs
1010 --enable-choicedlg use wxChoiceDialog
1011 --enable-coldlg use wxColourDialog
1012 --enable-filedlg use wxFileDialog
1013 --enable-finddlg use wxFindReplaceDialog
1014 --enable-fontdlg use wxFontDialog
1015 --enable-dirdlg use wxDirDialog
1016 --enable-msgdlg use wxMessageDialog
1017 --enable-numberdlg use wxNumberEntryDialog
1018 --enable-splash use wxSplashScreen
1019 --enable-textdlg use wxTextDialog
1020 --enable-tipdlg use startup tips
1021 --enable-progressdlg use wxProgressDialog
1022 --enable-wizarddlg use wxWizard
1023 --enable-menus use wxMenu/wxMenuBar/wxMenuItem classes
1024 --enable-miniframe use wxMiniFrame class
1025 --enable-tooltips use wxToolTip class
1026 --enable-splines use spline drawing code
fbe2ca43 1027 --enable-mousewheel use mousewheel
a848cd7e
SC
1028 --enable-validators use wxValidator and derived classes
1029 --enable-busyinfo use wxBusyInfo
4cb1d3da 1030 --enable-joystick use wxJoystick
a848cd7e
SC
1031 --enable-metafiles use wxMetaFile (Windows only)
1032 --enable-dragimage use wxDragImage
1033 --enable-accessibility enable accessibility support
1034 --enable-palette use wxPalette class
1035 --enable-image use wxImage class
1036 --enable-gif use gif images (GIF file format)
1037 --enable-pcx use pcx images (PCX file format)
1038 --enable-iff use iff images (IFF file format)
1039 --enable-pnm use pnm images (PNM file format)
1040 --enable-xpm use xpm images (XPM file format)
1041 --enable-icocur use Windows ICO and CUR formats
77ffb593 1042 --enable-official_build official build of wxWidgets (win32 DLL only)
a848cd7e
SC
1043 --enable-vendor=VENDOR vendor name (win32 DLL only)
1044 --disable-largefile omit support for large files
1045 --disable-gtktest do not try to compile and run a test GTK+ program
1046 --disable-gtktest Do not try to compile and run a test GTK program
1047 --disable-sdltest Do not try to compile and run a test SDL program
1048 --enable-omf use OMF object format (OS/2)
ebee3cd0
VS
1049 --disable-precomp-headers
1050 don't use precompiled headers even if compiler can
a848cd7e
SC
1051
1052Optional Packages:
1053 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1054 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
f597b41c
MW
1055 --with-gtk use GTK+ (currently uses 2.0)
1056 --with-gtk1 use GTK+ 1.2
1057 --with-gtk2 use GTK+ 2.0
a848cd7e
SC
1058 --with-motif use Motif/Lesstif
1059 --with-mac use Mac OS X
1060 --with-cocoa use Cocoa
1061 --with-wine use Wine
1062 --with-msw use MS-Windows
1063 --with-pm use OS/2 Presentation Manager
1064 --with-mgl use SciTech MGL
1065 --with-microwin use MicroWindows
1066 --with-x11 use X11
1067 --with-libpng use libpng (PNG image format)
1068 --with-libjpeg use libjpeg (JPEG file format)
1069 --with-libtiff use libtiff (TIFF file format)
1070 --with-libxpm use libxpm (XPM file format)
1071 --with-libmspack use libmspack (CHM help files loading)
1072 --with-sdl use SDL for audio on Unix
d51253e8 1073 --with-gnomeprint use GNOME print for printing under Unix
a848cd7e
SC
1074 --with-opengl use OpenGL (or Mesa)
1075 --with-dmalloc use dmalloc library (http://dmalloc.com/)
1076 --with-regex enable support for wxRegEx class
1077 --with-zlib use zlib for LZW compression
1078 --with-odbc use the IODBC and wxODBC classes
1079 --with-expat enable XML support using expat parser
ceec2216 1080 --with-flavour=NAME specify a name to identify this build
a848cd7e
SC
1081 --with-gtk-prefix=PFX Prefix where GTK is installed (optional)
1082 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)
1083 --with-x use the X Window System
1084 --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib
1085 --with-sdl-prefix=PFX Prefix where SDL is installed (optional)
1086 --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional)
1087 --with-cppunit-prefix=PFX Prefix where CppUnit is installed (optional)
1088 --with-cppunit-exec-prefix=PFX Exec prefix where CppUnit is installed (optional)
1089
1090Some influential environment variables:
dcc1b6ad
VS
1091 CC C compiler command
1092 CFLAGS C compiler flags
1093 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1094 nonstandard directory <lib dir>
1095 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1096 headers in a nonstandard directory <include dir>
1097 CPP C preprocessor
1098 CXX C++ compiler command
1099 CXXFLAGS C++ compiler flags
1100 CXXCPP C++ preprocessor
a848cd7e
SC
1101
1102Use these variables to override the choices made by `configure' or to help
1103it to find libraries and programs with nonstandard names/locations.
1104
77ffb593 1105Report bugs to <wx-dev@lists.wxwidgets.org>.
a848cd7e
SC
1106_ACEOF
1107fi
1108
1109if test "$ac_init_help" = "recursive"; then
1110 # If there are subdirs, report their specific --help.
1111 ac_popdir=`pwd`
1112 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1113 test -d $ac_dir || continue
1114 ac_builddir=.
1115
1116if test "$ac_dir" != .; then
1117 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1118 # A "../" for each directory in $ac_dir_suffix.
1119 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1120else
1121 ac_dir_suffix= ac_top_builddir=
1122fi
1123
1124case $srcdir in
1125 .) # No --srcdir option. We are building in place.
1126 ac_srcdir=.
1127 if test -z "$ac_top_builddir"; then
1128 ac_top_srcdir=.
1129 else
1130 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1131 fi ;;
1132 [\\/]* | ?:[\\/]* ) # Absolute path.
1133 ac_srcdir=$srcdir$ac_dir_suffix;
1134 ac_top_srcdir=$srcdir ;;
1135 *) # Relative path.
1136 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1137 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1138esac
ac1cb8d3
VS
1139
1140# Do not use `cd foo && pwd` to compute absolute paths, because
1141# the directories may not exist.
1142case `pwd` in
1143.) ac_abs_builddir="$ac_dir";;
1144*)
1145 case "$ac_dir" in
1146 .) ac_abs_builddir=`pwd`;;
1147 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1148 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1149 esac;;
1150esac
1151case $ac_abs_builddir in
1152.) ac_abs_top_builddir=${ac_top_builddir}.;;
1153*)
1154 case ${ac_top_builddir}. in
1155 .) ac_abs_top_builddir=$ac_abs_builddir;;
1156 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1157 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1158 esac;;
1159esac
1160case $ac_abs_builddir in
1161.) ac_abs_srcdir=$ac_srcdir;;
1162*)
1163 case $ac_srcdir in
1164 .) ac_abs_srcdir=$ac_abs_builddir;;
1165 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1166 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1167 esac;;
1168esac
1169case $ac_abs_builddir in
1170.) ac_abs_top_srcdir=$ac_top_srcdir;;
1171*)
1172 case $ac_top_srcdir in
1173 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1174 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1175 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1176 esac;;
1177esac
a848cd7e
SC
1178
1179 cd $ac_dir
1180 # Check for guested configure; otherwise get Cygnus style configure.
1181 if test -f $ac_srcdir/configure.gnu; then
1182 echo
1183 $SHELL $ac_srcdir/configure.gnu --help=recursive
1184 elif test -f $ac_srcdir/configure; then
1185 echo
1186 $SHELL $ac_srcdir/configure --help=recursive
1187 elif test -f $ac_srcdir/configure.ac ||
ac1cb8d3 1188 test -f $ac_srcdir/configure.in; then
a848cd7e
SC
1189 echo
1190 $ac_configure --help
1191 else
1192 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1193 fi
9dd0f6c2 1194 cd "$ac_popdir"
a848cd7e
SC
1195 done
1196fi
1197
1198test -n "$ac_init_help" && exit 0
1199if $ac_init_version; then
1200 cat <<\_ACEOF
e0d84535 1201wxWidgets configure 2.6.0
ac1cb8d3 1202generated by GNU Autoconf 2.59
a848cd7e 1203
ac1cb8d3 1204Copyright (C) 2003 Free Software Foundation, Inc.
a848cd7e
SC
1205This configure script is free software; the Free Software Foundation
1206gives unlimited permission to copy, distribute and modify it.
1207_ACEOF
1208 exit 0
1209fi
1210exec 5>config.log
1211cat >&5 <<_ACEOF
1212This file contains any messages produced by compilers while
1213running configure, to aid debugging if configure makes a mistake.
1214
e0d84535 1215It was created by wxWidgets $as_me 2.6.0, which was
ac1cb8d3 1216generated by GNU Autoconf 2.59. Invocation command line was
a848cd7e
SC
1217
1218 $ $0 $@
1219
1220_ACEOF
1221{
1222cat <<_ASUNAME
1223## --------- ##
1224## Platform. ##
1225## --------- ##
1226
1227hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1228uname -m = `(uname -m) 2>/dev/null || echo unknown`
1229uname -r = `(uname -r) 2>/dev/null || echo unknown`
1230uname -s = `(uname -s) 2>/dev/null || echo unknown`
1231uname -v = `(uname -v) 2>/dev/null || echo unknown`
1232
1233/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1234/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1235
1236/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1237/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1238/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1239hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1240/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1241/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1242/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1243
1244_ASUNAME
1245
1246as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1247for as_dir in $PATH
1248do
1249 IFS=$as_save_IFS
1250 test -z "$as_dir" && as_dir=.
1251 echo "PATH: $as_dir"
1252done
1253
1254} >&5
1255
1256cat >&5 <<_ACEOF
1257
1258
1259## ----------- ##
1260## Core tests. ##
1261## ----------- ##
1262
1263_ACEOF
1264
1265
1266# Keep a trace of the command line.
1267# Strip out --no-create and --no-recursion so they do not pile up.
1268# Strip out --silent because we don't want to record it for future runs.
1269# Also quote any args containing shell meta-characters.
1270# Make two passes to allow for proper duplicate-argument suppression.
1271ac_configure_args=
1272ac_configure_args0=
1273ac_configure_args1=
1274ac_sep=
1275ac_must_keep_next=false
1276for ac_pass in 1 2
1277do
1278 for ac_arg
1279 do
1280 case $ac_arg in
1281 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1282 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1283 | -silent | --silent | --silen | --sile | --sil)
1284 continue ;;
1285 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1286 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1287 esac
1288 case $ac_pass in
1289 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1290 2)
1291 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1292 if test $ac_must_keep_next = true; then
ac1cb8d3 1293 ac_must_keep_next=false # Got value, back to normal.
a848cd7e 1294 else
ac1cb8d3
VS
1295 case $ac_arg in
1296 *=* | --config-cache | -C | -disable-* | --disable-* \
1297 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1298 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1299 | -with-* | --with-* | -without-* | --without-* | --x)
1300 case "$ac_configure_args0 " in
1301 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1302 esac
1303 ;;
1304 -* ) ac_must_keep_next=true ;;
1305 esac
a848cd7e
SC
1306 fi
1307 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1308 # Get rid of the leading space.
1309 ac_sep=" "
1310 ;;
1311 esac
1312 done
1313done
1314$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1315$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1316
1317# When interrupted or exit'd, cleanup temporary files, and complete
1318# config.log. We remove comments because anyway the quotes in there
1319# would cause problems or look ugly.
1320# WARNING: Be sure not to use single quotes in there, as some shells,
1321# such as our DU 5.0 friend, will then `close' the trap.
1322trap 'exit_status=$?
1323 # Save into config.log some information that might help in debugging.
1324 {
1325 echo
1326
1327 cat <<\_ASBOX
1328## ---------------- ##
1329## Cache variables. ##
1330## ---------------- ##
1331_ASBOX
1332 echo
1333 # The following way of writing the cache mishandles newlines in values,
1334{
1335 (set) 2>&1 |
1336 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1337 *ac_space=\ *)
1338 sed -n \
ac1cb8d3
VS
1339 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1340 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
a848cd7e
SC
1341 ;;
1342 *)
1343 sed -n \
ac1cb8d3 1344 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
1345 ;;
1346 esac;
1347}
1348 echo
1349
1350 cat <<\_ASBOX
1351## ----------------- ##
1352## Output variables. ##
1353## ----------------- ##
1354_ASBOX
1355 echo
1356 for ac_var in $ac_subst_vars
1357 do
1358 eval ac_val=$`echo $ac_var`
1359 echo "$ac_var='"'"'$ac_val'"'"'"
1360 done | sort
1361 echo
1362
1363 if test -n "$ac_subst_files"; then
1364 cat <<\_ASBOX
1365## ------------- ##
1366## Output files. ##
1367## ------------- ##
1368_ASBOX
1369 echo
1370 for ac_var in $ac_subst_files
1371 do
1372 eval ac_val=$`echo $ac_var`
ac1cb8d3 1373 echo "$ac_var='"'"'$ac_val'"'"'"
a848cd7e
SC
1374 done | sort
1375 echo
1376 fi
1377
1378 if test -s confdefs.h; then
1379 cat <<\_ASBOX
1380## ----------- ##
1381## confdefs.h. ##
1382## ----------- ##
1383_ASBOX
1384 echo
1385 sed "/^$/d" confdefs.h | sort
1386 echo
1387 fi
1388 test "$ac_signal" != 0 &&
1389 echo "$as_me: caught signal $ac_signal"
1390 echo "$as_me: exit $exit_status"
1391 } >&5
ac1cb8d3 1392 rm -f core *.core &&
a848cd7e
SC
1393 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1394 exit $exit_status
1395 ' 0
1396for ac_signal in 1 2 13 15; do
1397 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1398done
1399ac_signal=0
1400
1401# confdefs.h avoids OS command line length limits that DEFS can exceed.
1402rm -rf conftest* confdefs.h
1403# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1404echo >confdefs.h
1405
1406# Predefined preprocessor variables.
1407
1408cat >>confdefs.h <<_ACEOF
1409#define PACKAGE_NAME "$PACKAGE_NAME"
1410_ACEOF
1411
1412
1413cat >>confdefs.h <<_ACEOF
1414#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1415_ACEOF
1416
1417
1418cat >>confdefs.h <<_ACEOF
1419#define PACKAGE_VERSION "$PACKAGE_VERSION"
1420_ACEOF
1421
1422
1423cat >>confdefs.h <<_ACEOF
1424#define PACKAGE_STRING "$PACKAGE_STRING"
1425_ACEOF
1426
1427
1428cat >>confdefs.h <<_ACEOF
1429#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1430_ACEOF
1431
1432
1433# Let the site file select an alternate cache file if it wants to.
1434# Prefer explicitly selected file to automatically selected ones.
1435if test -z "$CONFIG_SITE"; then
1436 if test "x$prefix" != xNONE; then
1437 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1438 else
1439 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1440 fi
1441fi
1442for ac_site_file in $CONFIG_SITE; do
1443 if test -r "$ac_site_file"; then
1444 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1445echo "$as_me: loading site script $ac_site_file" >&6;}
1446 sed 's/^/| /' "$ac_site_file" >&5
1447 . "$ac_site_file"
1448 fi
1449done
1450
1451if test -r "$cache_file"; then
1452 # Some versions of bash will fail to source /dev/null (special
1453 # files actually), so we avoid doing that.
1454 if test -f "$cache_file"; then
1455 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1456echo "$as_me: loading cache $cache_file" >&6;}
1457 case $cache_file in
1458 [\\/]* | ?:[\\/]* ) . $cache_file;;
1459 *) . ./$cache_file;;
1460 esac
1461 fi
1462else
1463 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1464echo "$as_me: creating cache $cache_file" >&6;}
1465 >$cache_file
1466fi
1467
1468# Check that the precious variables saved in the cache have kept the same
1469# value.
1470ac_cache_corrupted=false
1471for ac_var in `(set) 2>&1 |
ac1cb8d3 1472 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
a848cd7e
SC
1473 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1474 eval ac_new_set=\$ac_env_${ac_var}_set
1475 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1476 eval ac_new_val="\$ac_env_${ac_var}_value"
1477 case $ac_old_set,$ac_new_set in
1478 set,)
1479 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1480echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1481 ac_cache_corrupted=: ;;
1482 ,set)
1483 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1484echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1485 ac_cache_corrupted=: ;;
1486 ,);;
1487 *)
1488 if test "x$ac_old_val" != "x$ac_new_val"; then
ac1cb8d3 1489 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
a848cd7e 1490echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
ac1cb8d3 1491 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
a848cd7e 1492echo "$as_me: former value: $ac_old_val" >&2;}
ac1cb8d3 1493 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
a848cd7e 1494echo "$as_me: current value: $ac_new_val" >&2;}
ac1cb8d3 1495 ac_cache_corrupted=:
a848cd7e
SC
1496 fi;;
1497 esac
1498 # Pass precious variables to config.status.
1499 if test "$ac_new_set" = set; then
1500 case $ac_new_val in
1501 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1502 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1503 *) ac_arg=$ac_var=$ac_new_val ;;
1504 esac
1505 case " $ac_configure_args " in
1506 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1507 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1508 esac
1509 fi
1510done
1511if $ac_cache_corrupted; then
1512 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1513echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1514 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1515echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1516 { (exit 1); exit 1; }; }
1517fi
1518
1519ac_ext=c
1520ac_cpp='$CPP $CPPFLAGS'
1521ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1522ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1523ac_compiler_gnu=$ac_cv_c_compiler_gnu
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554ac_aux_dir=
1555for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1556 if test -f $ac_dir/install-sh; then
1557 ac_aux_dir=$ac_dir
1558 ac_install_sh="$ac_aux_dir/install-sh -c"
1559 break
1560 elif test -f $ac_dir/install.sh; then
1561 ac_aux_dir=$ac_dir
1562 ac_install_sh="$ac_aux_dir/install.sh -c"
1563 break
1564 elif test -f $ac_dir/shtool; then
1565 ac_aux_dir=$ac_dir
1566 ac_install_sh="$ac_aux_dir/shtool install -c"
1567 break
1568 fi
1569done
1570if test -z "$ac_aux_dir"; then
1571 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1572echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1573 { (exit 1); exit 1; }; }
1574fi
1575ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1576ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1577ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1578
1579# Make sure we can run config.sub.
1580$ac_config_sub sun4 >/dev/null 2>&1 ||
1581 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1582echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1583 { (exit 1); exit 1; }; }
1584
1585echo "$as_me:$LINENO: checking build system type" >&5
1586echo $ECHO_N "checking build system type... $ECHO_C" >&6
1587if test "${ac_cv_build+set}" = set; then
1588 echo $ECHO_N "(cached) $ECHO_C" >&6
1589else
1590 ac_cv_build_alias=$build_alias
1591test -z "$ac_cv_build_alias" &&
1592 ac_cv_build_alias=`$ac_config_guess`
1593test -z "$ac_cv_build_alias" &&
1594 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1595echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1596 { (exit 1); exit 1; }; }
1597ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1598 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1599echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1600 { (exit 1); exit 1; }; }
1601
1602fi
1603echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1604echo "${ECHO_T}$ac_cv_build" >&6
1605build=$ac_cv_build
1606build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1607build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1608build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1609
1610
1611echo "$as_me:$LINENO: checking host system type" >&5
1612echo $ECHO_N "checking host system type... $ECHO_C" >&6
1613if test "${ac_cv_host+set}" = set; then
1614 echo $ECHO_N "(cached) $ECHO_C" >&6
1615else
1616 ac_cv_host_alias=$host_alias
1617test -z "$ac_cv_host_alias" &&
1618 ac_cv_host_alias=$ac_cv_build_alias
1619ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1620 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1621echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1622 { (exit 1); exit 1; }; }
1623
1624fi
1625echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1626echo "${ECHO_T}$ac_cv_host" >&6
1627host=$ac_cv_host
1628host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1629host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1630host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1631
1632
1633echo "$as_me:$LINENO: checking target system type" >&5
1634echo $ECHO_N "checking target system type... $ECHO_C" >&6
1635if test "${ac_cv_target+set}" = set; then
1636 echo $ECHO_N "(cached) $ECHO_C" >&6
1637else
1638 ac_cv_target_alias=$target_alias
1639test "x$ac_cv_target_alias" = "x" &&
1640 ac_cv_target_alias=$ac_cv_host_alias
1641ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1642 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1643echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1644 { (exit 1); exit 1; }; }
1645
1646fi
1647echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1648echo "${ECHO_T}$ac_cv_target" >&6
1649target=$ac_cv_target
1650target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1651target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1652target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1653
1654
1655# The aliases save the names the user supplied, while $host etc.
1656# will get canonicalized.
1657test -n "$target_alias" &&
1658 test "$program_prefix$program_suffix$program_transform_name" = \
1659 NONENONEs,x,x, &&
1660 program_prefix=${target_alias}-
1661
1662
1663
ceec2216 1664wx_major_version_number=2
e0d84535
RL
1665wx_minor_version_number=6
1666wx_release_number=0
1667wx_subrelease_number=0
a848cd7e 1668
ceec2216
RL
1669WX_RELEASE=$wx_major_version_number.$wx_minor_version_number
1670WX_VERSION=$WX_RELEASE.$wx_release_number
1671WX_SUBVERSION=$WX_VERSION.$wx_subrelease_number
a848cd7e 1672
ceec2216 1673WX_MSW_VERSION=$wx_major_version_number$wx_minor_version_number$wx_release_number
a848cd7e 1674
e0d84535 1675WX_CURRENT=0
a848cd7e 1676WX_REVISION=0
e0d84535 1677WX_AGE=0
a848cd7e
SC
1678
1679
1680
1681USE_UNIX=1
1682USE_OS2=0
1683USE_WIN32=0
1684USE_DOS=0
1685USE_BEOS=0
1686USE_MAC=0
1687
1688USE_AIX=
1689USE_BSD= USE_DARWIN= USE_FREEBSD=
1690USE_GNU= USE_HPUX=
1691USE_LINUX=
1692USE_NETBSD=
1693USE_OPENBSD=
1694USE_OSF= USE_SGI=
1695USE_SOLARIS= USE_SUN= USE_SUNOS= USE_SVR4= USE_SYSV= USE_VMS=
1696USE_ULTRIX=
1697USE_UNIXWARE=
1698
1699USE_ALPHA=
1700
1701NEEDS_D_REENTRANT_FOR_R_FUNCS=0
1702
1703ALL_TOOLKITS="COCOA GTK MAC MGL MICROWIN MOTIF MSW PM X11"
1704
1705DEFAULT_wxUSE_COCOA=0
1706DEFAULT_wxUSE_GTK=0
1707DEFAULT_wxUSE_MAC=0
1708DEFAULT_wxUSE_MGL=0
1709DEFAULT_wxUSE_MICROWIN=0
1710DEFAULT_wxUSE_MOTIF=0
1711DEFAULT_wxUSE_MSW=0
1712DEFAULT_wxUSE_PM=0
1713DEFAULT_wxUSE_X11=0
1714
1715DEFAULT_DEFAULT_wxUSE_COCOA=0
1716DEFAULT_DEFAULT_wxUSE_GTK=0
1717DEFAULT_DEFAULT_wxUSE_MAC=0
1718DEFAULT_DEFAULT_wxUSE_MGL=0
1719DEFAULT_DEFAULT_wxUSE_MICROWIN=0
1720DEFAULT_DEFAULT_wxUSE_MOTIF=0
1721DEFAULT_DEFAULT_wxUSE_MSW=0
1722DEFAULT_DEFAULT_wxUSE_PM=0
1723DEFAULT_DEFAULT_wxUSE_X11=0
1724
1725PROGRAM_EXT=
1726SO_SUFFIX=so
1727SAMPLES_RPATH_FLAG=
1728SAMPLES_RPATH_POSTLINK=
1729
1730case "${host}" in
1731 *-hp-hpux* )
1732 USE_HPUX=1
1733 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1734 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1735 SO_SUFFIX=sl
1736 cat >>confdefs.h <<\_ACEOF
1737#define __HPUX__ 1
1738_ACEOF
1739
1740 ;;
1741 *-*-linux* )
1742 USE_LINUX=1
1743 cat >>confdefs.h <<\_ACEOF
1744#define __LINUX__ 1
1745_ACEOF
1746
1747 TMP=`uname -m`
1748 if test "x$TMP" = "xalpha"; then
1749 USE_ALPHA=1
1750 cat >>confdefs.h <<\_ACEOF
1751#define __ALPHA__ 1
1752_ACEOF
1753
1754 fi
1755 DEFAULT_DEFAULT_wxUSE_GTK=1
1756 ;;
1757 *-*-gnu* | *-*-k*bsd*-gnu )
1758 USE_GNU=1
1759 TMP=`uname -m`
1760 if test "x$TMP" = "xalpha"; then
1761 USE_ALPHA=1
1762 cat >>confdefs.h <<\_ACEOF
1763#define __ALPHA__ 1
1764_ACEOF
1765
1766 fi
1767 DEFAULT_DEFAULT_wxUSE_GTK=1
1768 ;;
1769 *-*-irix5* | *-*-irix6* )
1770 USE_SGI=1
1771 USE_SVR4=1
1772 cat >>confdefs.h <<\_ACEOF
1773#define __SGI__ 1
1774_ACEOF
1775
1776 cat >>confdefs.h <<\_ACEOF
1777#define __SVR4__ 1
1778_ACEOF
1779
1780 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1781 ;;
1782 *-*-solaris2* )
1783 USE_SUN=1
1784 USE_SOLARIS=1
1785 USE_SVR4=1
1786 cat >>confdefs.h <<\_ACEOF
1787#define __SUN__ 1
1788_ACEOF
1789
1790 cat >>confdefs.h <<\_ACEOF
1791#define __SOLARIS__ 1
1792_ACEOF
1793
1794 cat >>confdefs.h <<\_ACEOF
1795#define __SVR4__ 1
1796_ACEOF
1797
1798 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1799 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1800 ;;
1801 *-*-sunos4* )
1802 USE_SUN=1
1803 USE_SUNOS=1
1804 USE_BSD=1
1805 cat >>confdefs.h <<\_ACEOF
1806#define __SUN__ 1
1807_ACEOF
1808
1809 cat >>confdefs.h <<\_ACEOF
1810#define __SUNOS__ 1
1811_ACEOF
1812
1813 cat >>confdefs.h <<\_ACEOF
1814#define __BSD__ 1
1815_ACEOF
1816
1817 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1818 ;;
1819 *-*-freebsd*)
1820 USE_BSD=1
1821 USE_FREEBSD=1
1822 cat >>confdefs.h <<\_ACEOF
1823#define __FREEBSD__ 1
1824_ACEOF
1825
1826 cat >>confdefs.h <<\_ACEOF
1827#define __BSD__ 1
1828_ACEOF
1829
1830 DEFAULT_DEFAULT_wxUSE_GTK=1
1831 ;;
1832 *-*-openbsd*)
1833 USE_BSD=1
1834 USE_OPENBSD=1
1835 cat >>confdefs.h <<\_ACEOF
1836#define __OPENBSD__ 1
1837_ACEOF
1838
1839 cat >>confdefs.h <<\_ACEOF
1840#define __BSD__ 1
1841_ACEOF
1842
1843 DEFAULT_DEFAULT_wxUSE_GTK=1
1844 ;;
1845 *-*-netbsd*)
1846 USE_BSD=1
1847 USE_NETBSD=1
1848 cat >>confdefs.h <<\_ACEOF
1849#define __NETBSD__ 1
1850_ACEOF
1851
1852 cat >>confdefs.h <<\_ACEOF
1853#define __BSD__ 1
1854_ACEOF
1855
1856 DEFAULT_DEFAULT_wxUSE_GTK=1
1857 ;;
1858 *-*-osf* )
1859 USE_ALPHA=1
1860 USE_OSF=1
1861 cat >>confdefs.h <<\_ACEOF
1862#define __ALPHA__ 1
1863_ACEOF
1864
1865 cat >>confdefs.h <<\_ACEOF
1866#define __OSF__ 1
1867_ACEOF
1868
1869 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1870 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1871 ;;
1872 *-*-dgux5* )
1873 USE_ALPHA=1
1874 USE_SVR4=1
1875 cat >>confdefs.h <<\_ACEOF
1876#define __ALPHA__ 1
1877_ACEOF
1878
1879 cat >>confdefs.h <<\_ACEOF
1880#define __SVR4__ 1
1881_ACEOF
1882
1883 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1884 ;;
1885 *-*-sysv5* )
1886 USE_SYSV=1
1887 USE_SVR4=1
1888 cat >>confdefs.h <<\_ACEOF
1889#define __SYSV__ 1
1890_ACEOF
1891
1892 cat >>confdefs.h <<\_ACEOF
1893#define __SVR4__ 1
1894_ACEOF
1895
1896 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1897 ;;
1898 *-*-aix* )
1899 USE_AIX=1
1900 USE_SYSV=1
1901 USE_SVR4=1
1902 SO_SUFFIX=a
1903 cat >>confdefs.h <<\_ACEOF
1904#define __AIX__ 1
1905_ACEOF
1906
1907 cat >>confdefs.h <<\_ACEOF
1908#define __SYSV__ 1
1909_ACEOF
1910
1911 cat >>confdefs.h <<\_ACEOF
1912#define __SVR4__ 1
1913_ACEOF
1914
1915 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1916 ;;
1917
1918 *-*-*UnixWare*)
1919 USE_SYSV=1
1920 USE_SVR4=1
1921 USE_UNIXWARE=1
1922 cat >>confdefs.h <<\_ACEOF
1923#define __UNIXWARE__ 1
1924_ACEOF
1925
1926 ;;
1927
1928 *-*-cygwin* | *-*-mingw32* )
1929 SO_SUFFIX=dll
1930 PROGRAM_EXT=".exe"
1931 RESCOMP=windres
1932 DEFAULT_DEFAULT_wxUSE_MSW=1
1933 ;;
1934
1935 *-pc-msdosdjgpp )
1936 USE_UNIX=0
1937 USE_DOS=1
1938 cat >>confdefs.h <<\_ACEOF
1939#define __DOS__ 1
1940_ACEOF
1941
1942 PROGRAM_EXT=".exe"
1943 DEFAULT_DEFAULT_wxUSE_MGL=1
1944 LIBS="$LIBS -lstdc++"
1945 ;;
1946
1947 *-pc-os2_emx | *-pc-os2-emx )
1948 cat >>confdefs.h <<\_ACEOF
1949#define __EMX__ 1
1950_ACEOF
1951
1952 USE_OS2=1
1953 cat >>confdefs.h <<\_ACEOF
1954#define __OS2__ 1
1955_ACEOF
1956
1957 PROGRAM_EXT=".exe"
1958 DEFAULT_DEFAULT_wxUSE_PM=1
1959 CXX=gcc
1960 LDFLAGS="$LDFLAGS -Zcrtdll"
1961 ac_executable_extensions=".exe"
1962 export ac_executable_extensions
1963 ac_save_IFS="$IFS"
1964 IFS='\\'
1965 ac_TEMP_PATH=
1966 for ac_dir in $PATH; do
1967 IFS=$ac_save_IFS
1968 if test -z "$ac_TEMP_PATH"; then
1969 ac_TEMP_PATH="$ac_dir"
1970 else
1971 ac_TEMP_PATH="$ac_TEMP_PATH/$ac_dir"
1972 fi
1973 done
1974 export PATH="$ac_TEMP_PATH"
1975 unset ac_TEMP_PATH
1976 ;;
1977
1978 powerpc-*-darwin* )
1979 USE_BSD=1
1980 USE_DARWIN=1
1981 SO_SUFFIX=dylib
1982 cat >>confdefs.h <<\_ACEOF
1983#define __BSD__ 1
1984_ACEOF
1985
1986 cat >>confdefs.h <<\_ACEOF
1987#define __DARWIN__ 1
a848cd7e
SC
1988_ACEOF
1989
1990 cat >>confdefs.h <<\_ACEOF
1991#define TARGET_CARBON 1
1992_ACEOF
1993
1994 DEFAULT_DEFAULT_wxUSE_MAC=1
1995 ;;
1e9e8aba
DE
1996 powerpc-apple-macos* )
1997 USE_UNIX=0
1998 ac_cv_c_bigendian=yes
1999 SO_SUFFIX=shlib
2000 DEFAULT_DEFAULT_wxUSE_MAC=1
2001 ;;
a848cd7e
SC
2002
2003 *-*-beos* )
2004 USE_BEOS=1
2005 cat >>confdefs.h <<\_ACEOF
2006#define __BEOS__ 1
2007_ACEOF
2008
2009 ;;
2010
2011 *)
2012 { { echo "$as_me:$LINENO: error: unknown system type ${host}." >&5
2013echo "$as_me: error: unknown system type ${host}." >&2;}
2014 { (exit 1); exit 1; }; }
2015esac
2016
2017
2018
2019
2020 wx_arg_cache_file="configarg.cache"
2021 echo "loading argument cache $wx_arg_cache_file"
2022 rm -f ${wx_arg_cache_file}.tmp
2023 touch ${wx_arg_cache_file}.tmp
2024 touch ${wx_arg_cache_file}
2025
2026
2027DEBUG_CONFIGURE=0
2028if test $DEBUG_CONFIGURE = 1; then
2029 DEFAULT_wxUSE_UNIVERSAL=no
2030 DEFAULT_wxUSE_STL=no
2031
2032 DEFAULT_wxUSE_NANOX=no
2033
2034 DEFAULT_wxUSE_THREADS=yes
2035
2036 DEFAULT_wxUSE_SHARED=yes
2037 DEFAULT_wxUSE_OPTIMISE=no
2038 DEFAULT_wxUSE_PROFILE=no
2039 DEFAULT_wxUSE_NO_DEPS=no
2040 DEFAULT_wxUSE_NO_RTTI=no
2041 DEFAULT_wxUSE_NO_EXCEPTIONS=no
ffa0583f 2042 DEFAULT_wxUSE_RPATH=yes
a848cd7e
SC
2043 DEFAULT_wxUSE_PERMISSIVE=no
2044 DEFAULT_wxUSE_DEBUG_FLAG=yes
2045 DEFAULT_wxUSE_DEBUG_INFO=yes
2046 DEFAULT_wxUSE_DEBUG_GDB=yes
2047 DEFAULT_wxUSE_MEM_TRACING=no
2048 DEFAULT_wxUSE_DEBUG_CONTEXT=no
2049 DEFAULT_wxUSE_DMALLOC=no
2050 DEFAULT_wxUSE_APPLE_IEEE=no
2051
2052 DEFAULT_wxUSE_EXCEPTIONS=no
2053 DEFAULT_wxUSE_LOG=yes
2054 DEFAULT_wxUSE_LOGWINDOW=no
2055 DEFAULT_wxUSE_LOGGUI=no
2056 DEFAULT_wxUSE_LOGDIALOG=no
2057
2058 DEFAULT_wxUSE_GUI=yes
2059 DEFAULT_wxUSE_CONTROLS=no
2060
2061 DEFAULT_wxUSE_REGEX=no
2062 DEFAULT_wxUSE_XML=no
2063 DEFAULT_wxUSE_EXPAT=no
2064 DEFAULT_wxUSE_ZLIB=no
2065 DEFAULT_wxUSE_LIBPNG=no
2066 DEFAULT_wxUSE_LIBJPEG=no
2067 DEFAULT_wxUSE_LIBTIFF=no
2068 DEFAULT_wxUSE_LIBXPM=no
2069 DEFAULT_wxUSE_LIBMSPACK=no
2070 DEFAULT_wxUSE_LIBSDL=no
d1c38808 2071 DEFAULT_wxUSE_LIBGNOMEPRINT=no
a848cd7e
SC
2072 DEFAULT_wxUSE_ODBC=no
2073 DEFAULT_wxUSE_OPENGL=no
2074
2075 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=no
eaff0f0d 2076 DEFAULT_wxUSE_STACKWALKER=no
36b6448c 2077 DEFAULT_wxUSE_DEBUGREPORT=no
a848cd7e
SC
2078 DEFAULT_wxUSE_SNGLINST_CHECKER=no
2079 DEFAULT_wxUSE_STD_IOSTREAM=no
59746b65 2080 DEFAULT_wxUSE_STD_STRING=no
a848cd7e
SC
2081 DEFAULT_wxUSE_CMDLINE_PARSER=no
2082 DEFAULT_wxUSE_DATETIME=no
2083 DEFAULT_wxUSE_TIMER=no
2084 DEFAULT_wxUSE_STOPWATCH=no
2085 DEFAULT_wxUSE_FILE=no
2086 DEFAULT_wxUSE_FFILE=no
07158944 2087 DEFAULT_wxUSE_STDPATHS=no
a848cd7e
SC
2088 DEFAULT_wxUSE_TEXTBUFFER=no
2089 DEFAULT_wxUSE_TEXTFILE=no
2090 DEFAULT_wxUSE_SOUND=no
3b57de8b
RL
2091 DEFAULT_wxUSE_MEDIACTRL=no
2092 DEFAULT_wxUSE_DIRECTSHOW=no
a848cd7e
SC
2093 DEFAULT_wxUSE_INTL=no
2094 DEFAULT_wxUSE_CONFIG=no
2095 DEFAULT_wxUSE_FONTMAP=no
2096 DEFAULT_wxUSE_STREAMS=no
2097 DEFAULT_wxUSE_SOCKETS=no
2098 DEFAULT_wxUSE_OLE=no
2099 DEFAULT_wxUSE_DATAOBJ=no
2100 DEFAULT_wxUSE_DIALUP_MANAGER=no
2101 DEFAULT_wxUSE_JOYSTICK=no
2102 DEFAULT_wxUSE_DYNLIB_CLASS=no
2103 DEFAULT_wxUSE_DYNAMIC_LOADER=no
2104 DEFAULT_wxUSE_LONGLONG=no
2105 DEFAULT_wxUSE_GEOMETRY=no
2106
2107 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no
2108 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no
2109 DEFAULT_wxUSE_POSTSCRIPT=no
2110
2111 DEFAULT_wxUSE_CLIPBOARD=no
2112 DEFAULT_wxUSE_TOOLTIPS=no
2113 DEFAULT_wxUSE_DRAG_AND_DROP=no
2114 DEFAULT_wxUSE_DRAGIMAGE=no
2115 DEFAULT_wxUSE_SPLINES=no
fbe2ca43 2116 DEFAULT_wxUSE_MOUSEWHEEL=no
a848cd7e 2117
8a7b1113 2118 DEFAULT_wxUSE_MDI=no
a848cd7e
SC
2119 DEFAULT_wxUSE_MDI_ARCHITECTURE=no
2120 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no
2121 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no
2122
2123 DEFAULT_wxUSE_RESOURCES=no
2124 DEFAULT_wxUSE_CONSTRAINTS=no
2125 DEFAULT_wxUSE_IPC=no
2126 DEFAULT_wxUSE_HELP=no
2127 DEFAULT_wxUSE_MS_HTML_HELP=no
2128 DEFAULT_wxUSE_WXHTML_HELP=no
2129 DEFAULT_wxUSE_TREELAYOUT=no
2130 DEFAULT_wxUSE_METAFILE=no
2131 DEFAULT_wxUSE_MIMETYPE=no
2132 DEFAULT_wxUSE_SYSTEM_OPTIONS=no
2133 DEFAULT_wxUSE_PROTOCOL=no
2134 DEFAULT_wxUSE_PROTOCOL_HTTP=no
2135 DEFAULT_wxUSE_PROTOCOL_FTP=no
2136 DEFAULT_wxUSE_PROTOCOL_FILE=no
2137 DEFAULT_wxUSE_URL=no
2138
2139 DEFAULT_wxUSE_COMMONDLGS=no
2140 DEFAULT_wxUSE_CHOICEDLG=no
2141 DEFAULT_wxUSE_COLOURDLG=no
2142 DEFAULT_wxUSE_DIRDLG=no
2143 DEFAULT_wxUSE_FILEDLG=no
2144 DEFAULT_wxUSE_FINDREPLDLG=no
2145 DEFAULT_wxUSE_FONTDLG=no
2146 DEFAULT_wxUSE_MSGDLG=no
2147 DEFAULT_wxUSE_NUMBERDLG=no
2148 DEFAULT_wxUSE_TEXTDLG=no
2149 DEFAULT_wxUSE_SPLASH=no
2150 DEFAULT_wxUSE_STARTUP_TIPS=no
2151 DEFAULT_wxUSE_PROGRESSDLG=no
2152 DEFAULT_wxUSE_WIZARDDLG=no
2153
2154 DEFAULT_wxUSE_MENUS=no
2155 DEFAULT_wxUSE_MINIFRAME=no
2156 DEFAULT_wxUSE_HTML=no
9a8f0513 2157 DEFAULT_wxUSE_XRC=no
646b6ec1 2158 DEFAULT_wxUSE_WEBKIT=no
a848cd7e
SC
2159 DEFAULT_wxUSE_FILESYSTEM=no
2160 DEFAULT_wxUSE_FS_INET=no
2161 DEFAULT_wxUSE_FS_ZIP=no
2162 DEFAULT_wxUSE_BUSYINFO=no
9e8e867f 2163 DEFAULT_wxUSE_ARCHIVE_STREAMS=no
a848cd7e 2164 DEFAULT_wxUSE_ZIPSTREAM=no
a848cd7e
SC
2165 DEFAULT_wxUSE_VALIDATORS=no
2166
2167 DEFAULT_wxUSE_ACCEL=no
2168 DEFAULT_wxUSE_BUTTON=no
2169 DEFAULT_wxUSE_BMPBUTTON=no
2170 DEFAULT_wxUSE_CALCTRL=no
2171 DEFAULT_wxUSE_CARET=no
2172 DEFAULT_wxUSE_CHECKBOX=no
2173 DEFAULT_wxUSE_CHECKLST=no
2174 DEFAULT_wxUSE_CHOICE=no
92bbdbcd 2175 DEFAULT_wxUSE_CHOICEBOOK=no
a848cd7e 2176 DEFAULT_wxUSE_COMBOBOX=no
da98e9be 2177 DEFAULT_wxUSE_DATEPICKCTRL=no
a848cd7e
SC
2178 DEFAULT_wxUSE_DISPLAY=no
2179 DEFAULT_wxUSE_GAUGE=no
2180 DEFAULT_wxUSE_GRID=no
2181 DEFAULT_wxUSE_IMAGLIST=no
2182 DEFAULT_wxUSE_LISTBOOK=no
2183 DEFAULT_wxUSE_LISTBOX=no
2184 DEFAULT_wxUSE_LISTCTRL=no
2185 DEFAULT_wxUSE_NOTEBOOK=no
2186 DEFAULT_wxUSE_RADIOBOX=no
2187 DEFAULT_wxUSE_RADIOBTN=no
2188 DEFAULT_wxUSE_SASH=no
2189 DEFAULT_wxUSE_SCROLLBAR=no
2190 DEFAULT_wxUSE_SLIDER=no
2191 DEFAULT_wxUSE_SPINBTN=no
2192 DEFAULT_wxUSE_SPINCTRL=no
2193 DEFAULT_wxUSE_SPLITTER=no
2194 DEFAULT_wxUSE_STATBMP=no
2195 DEFAULT_wxUSE_STATBOX=no
2196 DEFAULT_wxUSE_STATLINE=no
2197 DEFAULT_wxUSE_STATTEXT=no
2198 DEFAULT_wxUSE_STATUSBAR=yes
2199 DEFAULT_wxUSE_TABDIALOG=no
2200 DEFAULT_wxUSE_TEXTCTRL=no
2201 DEFAULT_wxUSE_TOGGLEBTN=no
2202 DEFAULT_wxUSE_TOOLBAR=no
2203 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
2204 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
2205 DEFAULT_wxUSE_TREECTRL=no
2206 DEFAULT_wxUSE_POPUPWIN=no
2207 DEFAULT_wxUSE_TIPWINDOW=no
2208
2209 DEFAULT_wxUSE_UNICODE=no
2210 DEFAULT_wxUSE_UNICODE_MSLU=no
2211 DEFAULT_wxUSE_WCSRTOMBS=no
2212
2213 DEFAULT_wxUSE_PALETTE=no
2214 DEFAULT_wxUSE_IMAGE=no
2215 DEFAULT_wxUSE_GIF=no
2216 DEFAULT_wxUSE_PCX=no
2217 DEFAULT_wxUSE_PNM=no
2218 DEFAULT_wxUSE_IFF=no
2219 DEFAULT_wxUSE_XPM=no
2220 DEFAULT_wxUSE_ICO_CUR=no
2221 DEFAULT_wxUSE_ACCESSIBILITY=no
2222
2223 DEFAULT_wxUSE_MONOLITHIC=no
2224 DEFAULT_wxUSE_PLUGINS=no
2225 DEFAULT_wxUSE_OFFICIAL_BUILD=no
f597b41c
MW
2226
2227 DEFAULT_wxUSE_GTK1=no
2228 DEFAULT_wxUSE_GTK2=no
a848cd7e
SC
2229else
2230 DEFAULT_wxUSE_UNIVERSAL=no
2231 DEFAULT_wxUSE_STL=no
2232
2233 DEFAULT_wxUSE_NANOX=no
2234
2235 DEFAULT_wxUSE_THREADS=yes
2236
2237 DEFAULT_wxUSE_SHARED=yes
2238 DEFAULT_wxUSE_OPTIMISE=yes
2239 DEFAULT_wxUSE_PROFILE=no
2240 DEFAULT_wxUSE_NO_DEPS=no
2241 DEFAULT_wxUSE_NO_RTTI=no
2242 DEFAULT_wxUSE_NO_EXCEPTIONS=no
ffa0583f 2243 DEFAULT_wxUSE_RPATH=yes
a848cd7e
SC
2244 DEFAULT_wxUSE_PERMISSIVE=no
2245 DEFAULT_wxUSE_DEBUG_FLAG=no
2246 DEFAULT_wxUSE_DEBUG_INFO=no
2247 DEFAULT_wxUSE_DEBUG_GDB=no
2248 DEFAULT_wxUSE_MEM_TRACING=no
2249 DEFAULT_wxUSE_DEBUG_CONTEXT=no
2250 DEFAULT_wxUSE_DMALLOC=no
2251 DEFAULT_wxUSE_APPLE_IEEE=yes
2252
2253 DEFAULT_wxUSE_EXCEPTIONS=yes
2254 DEFAULT_wxUSE_LOG=yes
2255 DEFAULT_wxUSE_LOGWINDOW=yes
2256 DEFAULT_wxUSE_LOGGUI=yes
2257 DEFAULT_wxUSE_LOGDIALOG=yes
2258
2259 DEFAULT_wxUSE_GUI=yes
2260
2261 DEFAULT_wxUSE_REGEX=yes
2262 DEFAULT_wxUSE_XML=yes
2263 DEFAULT_wxUSE_EXPAT=yes
2264 DEFAULT_wxUSE_ZLIB=yes
2265 DEFAULT_wxUSE_LIBPNG=yes
2266 DEFAULT_wxUSE_LIBJPEG=yes
2267 DEFAULT_wxUSE_LIBTIFF=yes
2268 DEFAULT_wxUSE_LIBXPM=yes
2269 DEFAULT_wxUSE_LIBMSPACK=yes
2270 DEFAULT_wxUSE_LIBSDL=no
52ada004 2271 DEFAULT_wxUSE_LIBGNOMEPRINT=yes
a848cd7e 2272 DEFAULT_wxUSE_ODBC=no
52ada004 2273 DEFAULT_wxUSE_OPENGL=yes
a848cd7e
SC
2274
2275 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=yes
eaff0f0d 2276 DEFAULT_wxUSE_STACKWALKER=yes
6671c68b 2277 DEFAULT_wxUSE_DEBUGREPORT=yes
a848cd7e 2278 DEFAULT_wxUSE_SNGLINST_CHECKER=yes
52ada004
RL
2279 DEFAULT_wxUSE_STD_IOSTREAM=yes
2280 DEFAULT_wxUSE_STD_STRING=yes
a848cd7e
SC
2281 DEFAULT_wxUSE_CMDLINE_PARSER=yes
2282 DEFAULT_wxUSE_DATETIME=yes
2283 DEFAULT_wxUSE_TIMER=yes
2284 DEFAULT_wxUSE_STOPWATCH=yes
2285 DEFAULT_wxUSE_FILE=yes
2286 DEFAULT_wxUSE_FFILE=yes
07158944 2287 DEFAULT_wxUSE_STDPATHS=yes
a848cd7e
SC
2288 DEFAULT_wxUSE_TEXTBUFFER=yes
2289 DEFAULT_wxUSE_TEXTFILE=yes
2290 DEFAULT_wxUSE_SOUND=yes
3b57de8b
RL
2291 DEFAULT_wxUSE_MEDIACTRL=no
2292 DEFAULT_wxUSE_DIRECTSHOW=no
a848cd7e
SC
2293 DEFAULT_wxUSE_INTL=yes
2294 DEFAULT_wxUSE_CONFIG=yes
2295 DEFAULT_wxUSE_FONTMAP=yes
2296 DEFAULT_wxUSE_STREAMS=yes
2297 DEFAULT_wxUSE_SOCKETS=yes
2298 DEFAULT_wxUSE_OLE=yes
2299 DEFAULT_wxUSE_DATAOBJ=yes
2300 DEFAULT_wxUSE_DIALUP_MANAGER=yes
2301 DEFAULT_wxUSE_JOYSTICK=yes
2302 DEFAULT_wxUSE_DYNLIB_CLASS=yes
2303 DEFAULT_wxUSE_DYNAMIC_LOADER=yes
2304 DEFAULT_wxUSE_LONGLONG=yes
2305 DEFAULT_wxUSE_GEOMETRY=yes
2306
2307 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes
2308 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes
2309 DEFAULT_wxUSE_POSTSCRIPT=yes
2310
2311 DEFAULT_wxUSE_CLIPBOARD=yes
2312 DEFAULT_wxUSE_TOOLTIPS=yes
2313 DEFAULT_wxUSE_DRAG_AND_DROP=yes
2314 DEFAULT_wxUSE_DRAGIMAGE=yes
2315 DEFAULT_wxUSE_SPLINES=yes
fbe2ca43 2316 DEFAULT_wxUSE_MOUSEWHEEL=yes
a848cd7e 2317
8a7b1113 2318 DEFAULT_wxUSE_MDI=yes
a848cd7e
SC
2319 DEFAULT_wxUSE_MDI_ARCHITECTURE=yes
2320 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes
2321 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes
2322
2323 DEFAULT_wxUSE_RESOURCES=no
2324 DEFAULT_wxUSE_CONSTRAINTS=yes
2325 DEFAULT_wxUSE_IPC=yes
2326 DEFAULT_wxUSE_HELP=yes
2327 DEFAULT_wxUSE_MS_HTML_HELP=yes
2328 DEFAULT_wxUSE_WXHTML_HELP=yes
2329 DEFAULT_wxUSE_TREELAYOUT=yes
2330 DEFAULT_wxUSE_METAFILE=yes
2331 DEFAULT_wxUSE_MIMETYPE=yes
2332 DEFAULT_wxUSE_SYSTEM_OPTIONS=yes
2333 DEFAULT_wxUSE_PROTOCOL=yes
2334 DEFAULT_wxUSE_PROTOCOL_HTTP=yes
2335 DEFAULT_wxUSE_PROTOCOL_FTP=yes
2336 DEFAULT_wxUSE_PROTOCOL_FILE=yes
2337 DEFAULT_wxUSE_URL=yes
2338
2339 DEFAULT_wxUSE_COMMONDLGS=yes
2340 DEFAULT_wxUSE_CHOICEDLG=yes
2341 DEFAULT_wxUSE_COLOURDLG=yes
2342 DEFAULT_wxUSE_DIRDLG=yes
2343 DEFAULT_wxUSE_FILEDLG=yes
2344 DEFAULT_wxUSE_FINDREPLDLG=yes
2345 DEFAULT_wxUSE_FONTDLG=yes
2346 DEFAULT_wxUSE_MSGDLG=yes
2347 DEFAULT_wxUSE_NUMBERDLG=yes
2348 DEFAULT_wxUSE_TEXTDLG=yes
2349 DEFAULT_wxUSE_SPLASH=yes
2350 DEFAULT_wxUSE_STARTUP_TIPS=yes
2351 DEFAULT_wxUSE_PROGRESSDLG=yes
2352 DEFAULT_wxUSE_WIZARDDLG=yes
2353
2354 DEFAULT_wxUSE_MENUS=yes
2355 DEFAULT_wxUSE_MINIFRAME=yes
2356 DEFAULT_wxUSE_HTML=yes
9a8f0513 2357 DEFAULT_wxUSE_XRC=yes
646b6ec1 2358 DEFAULT_wxUSE_WEBKIT=yes
a848cd7e
SC
2359 DEFAULT_wxUSE_FILESYSTEM=yes
2360 DEFAULT_wxUSE_FS_INET=yes
2361 DEFAULT_wxUSE_FS_ZIP=yes
2362 DEFAULT_wxUSE_BUSYINFO=yes
9e8e867f 2363 DEFAULT_wxUSE_ARCHIVE_STREAMS=yes
a848cd7e 2364 DEFAULT_wxUSE_ZIPSTREAM=yes
a848cd7e
SC
2365 DEFAULT_wxUSE_VALIDATORS=yes
2366
2367 DEFAULT_wxUSE_ACCEL=yes
2368 DEFAULT_wxUSE_BUTTON=yes
2369 DEFAULT_wxUSE_BMPBUTTON=yes
2370 DEFAULT_wxUSE_CALCTRL=yes
2371 DEFAULT_wxUSE_CARET=yes
2372 DEFAULT_wxUSE_CHECKBOX=yes
2373 DEFAULT_wxUSE_CHECKLST=yes
2374 DEFAULT_wxUSE_CHOICE=yes
92bbdbcd 2375 DEFAULT_wxUSE_CHOICEBOOK=yes
a848cd7e 2376 DEFAULT_wxUSE_COMBOBOX=yes
da98e9be 2377 DEFAULT_wxUSE_DATEPICKCTRL=yes
a848cd7e
SC
2378 DEFAULT_wxUSE_DISPLAY=yes
2379 DEFAULT_wxUSE_GAUGE=yes
2380 DEFAULT_wxUSE_GRID=yes
2381 DEFAULT_wxUSE_IMAGLIST=yes
2382 DEFAULT_wxUSE_LISTBOOK=yes
2383 DEFAULT_wxUSE_LISTBOX=yes
2384 DEFAULT_wxUSE_LISTCTRL=yes
2385 DEFAULT_wxUSE_NOTEBOOK=yes
2386 DEFAULT_wxUSE_RADIOBOX=yes
2387 DEFAULT_wxUSE_RADIOBTN=yes
2388 DEFAULT_wxUSE_SASH=yes
2389 DEFAULT_wxUSE_SCROLLBAR=yes
2390 DEFAULT_wxUSE_SLIDER=yes
2391 DEFAULT_wxUSE_SPINBTN=yes
2392 DEFAULT_wxUSE_SPINCTRL=yes
2393 DEFAULT_wxUSE_SPLITTER=yes
2394 DEFAULT_wxUSE_STATBMP=yes
2395 DEFAULT_wxUSE_STATBOX=yes
2396 DEFAULT_wxUSE_STATLINE=yes
2397 DEFAULT_wxUSE_STATTEXT=yes
2398 DEFAULT_wxUSE_STATUSBAR=yes
2399 DEFAULT_wxUSE_TABDIALOG=no
2400 DEFAULT_wxUSE_TEXTCTRL=yes
2401 DEFAULT_wxUSE_TOGGLEBTN=yes
2402 DEFAULT_wxUSE_TOOLBAR=yes
2403 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
2404 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
2405 DEFAULT_wxUSE_TREECTRL=yes
2406 DEFAULT_wxUSE_POPUPWIN=yes
2407 DEFAULT_wxUSE_TIPWINDOW=yes
2408
78de529b 2409 DEFAULT_wxUSE_UNICODE=no
a848cd7e
SC
2410 DEFAULT_wxUSE_UNICODE_MSLU=yes
2411 DEFAULT_wxUSE_WCSRTOMBS=no
2412
2413 DEFAULT_wxUSE_PALETTE=yes
2414 DEFAULT_wxUSE_IMAGE=yes
2415 DEFAULT_wxUSE_GIF=yes
2416 DEFAULT_wxUSE_PCX=yes
2417 DEFAULT_wxUSE_IFF=no
2418 DEFAULT_wxUSE_PNM=yes
2419 DEFAULT_wxUSE_XPM=yes
2420 DEFAULT_wxUSE_ICO_CUR=yes
2421 DEFAULT_wxUSE_ACCESSIBILITY=no
2422
2423 DEFAULT_wxUSE_MONOLITHIC=no
2424 DEFAULT_wxUSE_PLUGINS=no
2425 DEFAULT_wxUSE_OFFICIAL_BUILD=no
9f45f08e 2426
f597b41c
MW
2427 DEFAULT_wxUSE_GTK1=no
2428 DEFAULT_wxUSE_GTK2=no
a848cd7e
SC
2429fi
2430
2431
2432
2433for toolkit in `echo $ALL_TOOLKITS`; do
2434 LINE=`grep "wxUSE_$toolkit=" ${wx_arg_cache_file}`
2435 if test "x$LINE" != "x" ; then
2436 has_toolkit_in_cache=1
2437 eval "DEFAULT_$LINE"
2438 eval "CACHE_$toolkit=1"
2439 fi
2440done
2441
2442
2443
2444 enablestring=
2445 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gui" >&5
2446echo $ECHO_N "checking for --${enablestring:-enable}-gui... $ECHO_C" >&6
2447 no_cache=0
2448 # Check whether --enable-gui or --disable-gui was given.
2449if test "${enable_gui+set}" = set; then
2450 enableval="$enable_gui"
2451
2452 if test "$enableval" = yes; then
2453 ac_cv_use_gui='wxUSE_GUI=yes'
2454 else
2455 ac_cv_use_gui='wxUSE_GUI=no'
2456 fi
2457
2458else
2459
2460 LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}`
2461 if test "x$LINE" != x ; then
2462 eval "DEFAULT_$LINE"
2463 else
2464 no_cache=1
2465 fi
2466
2467 ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI
2468
2469fi;
2470
2471 eval "$ac_cv_use_gui"
2472 if test "$no_cache" != 1; then
2473 echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp
2474 fi
2475
2476 if test "$wxUSE_GUI" = yes; then
2477 echo "$as_me:$LINENO: result: yes" >&5
2478echo "${ECHO_T}yes" >&6
2479 else
2480 echo "$as_me:$LINENO: result: no" >&5
2481echo "${ECHO_T}no" >&6
2482 fi
2483
2484
2485 enablestring=
2486 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-monolithic" >&5
2487echo $ECHO_N "checking for --${enablestring:-enable}-monolithic... $ECHO_C" >&6
2488 no_cache=0
2489 # Check whether --enable-monolithic or --disable-monolithic was given.
2490if test "${enable_monolithic+set}" = set; then
2491 enableval="$enable_monolithic"
2492
2493 if test "$enableval" = yes; then
2494 ac_cv_use_monolithic='wxUSE_MONOLITHIC=yes'
2495 else
2496 ac_cv_use_monolithic='wxUSE_MONOLITHIC=no'
2497 fi
2498
2499else
2500
2501 LINE=`grep "wxUSE_MONOLITHIC" ${wx_arg_cache_file}`
2502 if test "x$LINE" != x ; then
2503 eval "DEFAULT_$LINE"
2504 else
2505 no_cache=1
2506 fi
2507
2508 ac_cv_use_monolithic='wxUSE_MONOLITHIC='$DEFAULT_wxUSE_MONOLITHIC
2509
2510fi;
2511
2512 eval "$ac_cv_use_monolithic"
2513 if test "$no_cache" != 1; then
2514 echo $ac_cv_use_monolithic >> ${wx_arg_cache_file}.tmp
2515 fi
2516
2517 if test "$wxUSE_MONOLITHIC" = yes; then
2518 echo "$as_me:$LINENO: result: yes" >&5
2519echo "${ECHO_T}yes" >&6
2520 else
2521 echo "$as_me:$LINENO: result: no" >&5
2522echo "${ECHO_T}no" >&6
2523 fi
2524
2525
2526 enablestring=
2527 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-plugins" >&5
2528echo $ECHO_N "checking for --${enablestring:-enable}-plugins... $ECHO_C" >&6
2529 no_cache=0
2530 # Check whether --enable-plugins or --disable-plugins was given.
2531if test "${enable_plugins+set}" = set; then
2532 enableval="$enable_plugins"
2533
2534 if test "$enableval" = yes; then
2535 ac_cv_use_plugins='wxUSE_PLUGINS=yes'
2536 else
2537 ac_cv_use_plugins='wxUSE_PLUGINS=no'
2538 fi
2539
2540else
2541
2542 LINE=`grep "wxUSE_PLUGINS" ${wx_arg_cache_file}`
2543 if test "x$LINE" != x ; then
2544 eval "DEFAULT_$LINE"
2545 else
2546 no_cache=1
2547 fi
2548
2549 ac_cv_use_plugins='wxUSE_PLUGINS='$DEFAULT_wxUSE_PLUGINS
2550
2551fi;
2552
2553 eval "$ac_cv_use_plugins"
2554 if test "$no_cache" != 1; then
2555 echo $ac_cv_use_plugins >> ${wx_arg_cache_file}.tmp
2556 fi
2557
2558 if test "$wxUSE_PLUGINS" = yes; then
2559 echo "$as_me:$LINENO: result: yes" >&5
2560echo "${ECHO_T}yes" >&6
2561 else
2562 echo "$as_me:$LINENO: result: no" >&5
2563echo "${ECHO_T}no" >&6
2564 fi
2565
2566
2567if test "$wxUSE_GUI" = "yes"; then
2568
2569
2570 enablestring=
2571 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-universal" >&5
2572echo $ECHO_N "checking for --${enablestring:-enable}-universal... $ECHO_C" >&6
2573 no_cache=0
2574 # Check whether --enable-universal or --disable-universal was given.
2575if test "${enable_universal+set}" = set; then
2576 enableval="$enable_universal"
2577
2578 if test "$enableval" = yes; then
2579 ac_cv_use_universal='wxUSE_UNIVERSAL=yes'
2580 else
2581 ac_cv_use_universal='wxUSE_UNIVERSAL=no'
2582 fi
2583
2584else
2585
2586 LINE=`grep "wxUSE_UNIVERSAL" ${wx_arg_cache_file}`
2587 if test "x$LINE" != x ; then
2588 eval "DEFAULT_$LINE"
2589 else
2590 no_cache=1
2591 fi
2592
2593 ac_cv_use_universal='wxUSE_UNIVERSAL='$DEFAULT_wxUSE_UNIVERSAL
2594
2595fi;
2596
2597 eval "$ac_cv_use_universal"
2598 if test "$no_cache" != 1; then
2599 echo $ac_cv_use_universal >> ${wx_arg_cache_file}.tmp
2600 fi
2601
2602 if test "$wxUSE_UNIVERSAL" = yes; then
2603 echo "$as_me:$LINENO: result: yes" >&5
2604echo "${ECHO_T}yes" >&6
2605 else
2606 echo "$as_me:$LINENO: result: no" >&5
2607echo "${ECHO_T}no" >&6
2608 fi
2609
2610
2611# Check whether --with-gtk or --without-gtk was given.
2612if test "${with_gtk+set}" = set; then
2613 withval="$with_gtk"
2614 wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1
2615fi;
2616
f597b41c
MW
2617 echo "$as_me:$LINENO: checking for --with-gtk1" >&5
2618echo $ECHO_N "checking for --with-gtk1... $ECHO_C" >&6
2619 no_cache=0
2620
2621# Check whether --with-gtk1 or --without-gtk1 was given.
2622if test "${with_gtk1+set}" = set; then
2623 withval="$with_gtk1"
2624
2625 if test "$withval" = yes; then
2626 ac_cv_use_gtk1='wxUSE_GTK1=yes'
2627 else
2628 ac_cv_use_gtk1='wxUSE_GTK1=no'
2629 fi
2630
2631else
2632
2633 LINE=`grep "wxUSE_GTK1" ${wx_arg_cache_file}`
2634 if test "x$LINE" != x ; then
2635 eval "DEFAULT_$LINE"
2636 else
2637 no_cache=1
2638 fi
2639
2640 ac_cv_use_gtk1='wxUSE_GTK1='$DEFAULT_wxUSE_GTK1
2641
2642fi;
2643
2644 eval "$ac_cv_use_gtk1"
2645 if test "$no_cache" != 1; then
2646 echo $ac_cv_use_gtk1 >> ${wx_arg_cache_file}.tmp
2647 fi
2648
2649 if test "$wxUSE_GTK1" = yes; then
2650 echo "$as_me:$LINENO: result: yes" >&5
2651echo "${ECHO_T}yes" >&6
2652 else
2653 echo "$as_me:$LINENO: result: no" >&5
2654echo "${ECHO_T}no" >&6
2655 fi
2656
2657
2658 echo "$as_me:$LINENO: checking for --with-gtk2" >&5
2659echo $ECHO_N "checking for --with-gtk2... $ECHO_C" >&6
2660 no_cache=0
2661
2662# Check whether --with-gtk2 or --without-gtk2 was given.
2663if test "${with_gtk2+set}" = set; then
2664 withval="$with_gtk2"
2665
2666 if test "$withval" = yes; then
2667 ac_cv_use_gtk2='wxUSE_GTK2=yes'
2668 else
2669 ac_cv_use_gtk2='wxUSE_GTK2=no'
2670 fi
2671
2672else
2673
2674 LINE=`grep "wxUSE_GTK2" ${wx_arg_cache_file}`
2675 if test "x$LINE" != x ; then
2676 eval "DEFAULT_$LINE"
2677 else
2678 no_cache=1
2679 fi
2680
2681 ac_cv_use_gtk2='wxUSE_GTK2='$DEFAULT_wxUSE_GTK2
2682
2683fi;
2684
2685 eval "$ac_cv_use_gtk2"
2686 if test "$no_cache" != 1; then
2687 echo $ac_cv_use_gtk2 >> ${wx_arg_cache_file}.tmp
2688 fi
2689
2690 if test "$wxUSE_GTK2" = yes; then
2691 echo "$as_me:$LINENO: result: yes" >&5
2692echo "${ECHO_T}yes" >&6
2693 else
2694 echo "$as_me:$LINENO: result: no" >&5
2695echo "${ECHO_T}no" >&6
2696 fi
2697
2698
a848cd7e
SC
2699# Check whether --with-motif or --without-motif was given.
2700if test "${with_motif+set}" = set; then
2701 withval="$with_motif"
2702 wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1
2703fi;
2704
2705# Check whether --with-mac or --without-mac was given.
2706if test "${with_mac+set}" = set; then
2707 withval="$with_mac"
c228d3a4 2708 wxUSE_MAC="$withval" CACHE_MAC=1 TOOLKIT_GIVEN=1
a848cd7e
SC
2709fi;
2710
2711# Check whether --with-cocoa or --without-cocoa was given.
2712if test "${with_cocoa+set}" = set; then
2713 withval="$with_cocoa"
c228d3a4 2714 wxUSE_COCOA="$withval" CACHE_COCOA=1 TOOLKIT_GIVEN=1
a848cd7e
SC
2715fi;
2716
2717# Check whether --with-wine or --without-wine was given.
2718if test "${with_wine+set}" = set; then
2719 withval="$with_wine"
2720 wxUSE_WINE="$withval" CACHE_WINE=1
2721fi;
2722
2723# Check whether --with-msw or --without-msw was given.
2724if test "${with_msw+set}" = set; then
2725 withval="$with_msw"
2726 wxUSE_MSW="$withval" CACHE_MSW=1 TOOLKIT_GIVEN=1
2727fi;
2728
2729# Check whether --with-pm or --without-pm was given.
2730if test "${with_pm+set}" = set; then
2731 withval="$with_pm"
2732 wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1
2733fi;
2734
2735# Check whether --with-mgl or --without-mgl was given.
2736if test "${with_mgl+set}" = set; then
2737 withval="$with_mgl"
2738 wxUSE_MGL="$withval" wxUSE_UNIVERSAL="yes" CACHE_MGL=1 TOOLKIT_GIVEN=1
2739fi;
2740
2741# Check whether --with-microwin or --without-microwin was given.
2742if test "${with_microwin+set}" = set; then
2743 withval="$with_microwin"
2744 wxUSE_MICROWIN="$withval" CACHE_MICROWIN=1 TOOLKIT_GIVEN=1
2745fi;
2746
2747# Check whether --with-x11 or --without-x11 was given.
2748if test "${with_x11+set}" = set; then
2749 withval="$with_x11"
2750 wxUSE_X11="$withval" wxUSE_UNIVERSAL="yes" CACHE_X11=1 TOOLKIT_GIVEN=1
2751fi;
2752
2753 enablestring=
2754 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-nanox" >&5
2755echo $ECHO_N "checking for --${enablestring:-enable}-nanox... $ECHO_C" >&6
2756 no_cache=0
2757 # Check whether --enable-nanox or --disable-nanox was given.
2758if test "${enable_nanox+set}" = set; then
2759 enableval="$enable_nanox"
2760
2761 if test "$enableval" = yes; then
2762 ac_cv_use_nanox='wxUSE_NANOX=yes'
2763 else
2764 ac_cv_use_nanox='wxUSE_NANOX=no'
2765 fi
2766
2767else
2768
2769 LINE=`grep "wxUSE_NANOX" ${wx_arg_cache_file}`
2770 if test "x$LINE" != x ; then
2771 eval "DEFAULT_$LINE"
2772 else
2773 no_cache=1
2774 fi
2775
2776 ac_cv_use_nanox='wxUSE_NANOX='$DEFAULT_wxUSE_NANOX
2777
2778fi;
2779
2780 eval "$ac_cv_use_nanox"
2781 if test "$no_cache" != 1; then
2782 echo $ac_cv_use_nanox >> ${wx_arg_cache_file}.tmp
2783 fi
2784
2785 if test "$wxUSE_NANOX" = yes; then
2786 echo "$as_me:$LINENO: result: yes" >&5
2787echo "${ECHO_T}yes" >&6
2788 else
2789 echo "$as_me:$LINENO: result: no" >&5
2790echo "${ECHO_T}no" >&6
2791 fi
2792
2793
2794
a848cd7e
SC
2795 enablestring=
2796 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gpe" >&5
2797echo $ECHO_N "checking for --${enablestring:-enable}-gpe... $ECHO_C" >&6
2798 no_cache=0
2799 # Check whether --enable-gpe or --disable-gpe was given.
2800if test "${enable_gpe+set}" = set; then
2801 enableval="$enable_gpe"
2802
2803 if test "$enableval" = yes; then
2804 ac_cv_use_gpe='wxUSE_GPE=yes'
2805 else
2806 ac_cv_use_gpe='wxUSE_GPE=no'
2807 fi
2808
2809else
2810
2811 LINE=`grep "wxUSE_GPE" ${wx_arg_cache_file}`
2812 if test "x$LINE" != x ; then
2813 eval "DEFAULT_$LINE"
2814 else
2815 no_cache=1
2816 fi
2817
2818 ac_cv_use_gpe='wxUSE_GPE='$DEFAULT_wxUSE_GPE
2819
2820fi;
2821
2822 eval "$ac_cv_use_gpe"
2823 if test "$no_cache" != 1; then
2824 echo $ac_cv_use_gpe >> ${wx_arg_cache_file}.tmp
2825 fi
2826
2827 if test "$wxUSE_GPE" = yes; then
2828 echo "$as_me:$LINENO: result: yes" >&5
2829echo "${ECHO_T}yes" >&6
2830 else
2831 echo "$as_me:$LINENO: result: no" >&5
2832echo "${ECHO_T}no" >&6
2833 fi
2834
2835
2836
2837 echo "$as_me:$LINENO: checking for --with-libpng" >&5
2838echo $ECHO_N "checking for --with-libpng... $ECHO_C" >&6
2839 no_cache=0
2840
2841# Check whether --with-libpng or --without-libpng was given.
2842if test "${with_libpng+set}" = set; then
2843 withval="$with_libpng"
2844
2845 if test "$withval" = yes; then
2846 ac_cv_use_libpng='wxUSE_LIBPNG=yes'
2847 elif test "$withval" = no; then
2848 ac_cv_use_libpng='wxUSE_LIBPNG=no'
2849 elif test "$withval" = sys; then
2850 ac_cv_use_libpng='wxUSE_LIBPNG=sys'
2851 elif test "$withval" = builtin; then
2852 ac_cv_use_libpng='wxUSE_LIBPNG=builtin'
2853 else
2854 { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5
2855echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;}
2856 { (exit 1); exit 1; }; }
2857 fi
2858
2859else
2860
2861 LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}`
2862 if test "x$LINE" != x ; then
2863 eval "DEFAULT_$LINE"
2864 else
2865 no_cache=1
2866 fi
2867
2868 ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG
2869
2870fi;
2871
2872 eval "$ac_cv_use_libpng"
2873 if test "$no_cache" != 1; then
2874 echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp
2875 fi
2876
2877 if test "$wxUSE_LIBPNG" = yes; then
2878 echo "$as_me:$LINENO: result: yes" >&5
2879echo "${ECHO_T}yes" >&6
2880 elif test "$wxUSE_LIBPNG" = no; then
2881 echo "$as_me:$LINENO: result: no" >&5
2882echo "${ECHO_T}no" >&6
2883 elif test "$wxUSE_LIBPNG" = sys; then
2884 echo "$as_me:$LINENO: result: system version" >&5
2885echo "${ECHO_T}system version" >&6
2886 elif test "$wxUSE_LIBPNG" = builtin; then
2887 echo "$as_me:$LINENO: result: builtin version" >&5
2888echo "${ECHO_T}builtin version" >&6
2889 else
2890 { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5
2891echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;}
2892 { (exit 1); exit 1; }; }
2893 fi
2894
2895
2896 echo "$as_me:$LINENO: checking for --with-libjpeg" >&5
2897echo $ECHO_N "checking for --with-libjpeg... $ECHO_C" >&6
2898 no_cache=0
2899
2900# Check whether --with-libjpeg or --without-libjpeg was given.
2901if test "${with_libjpeg+set}" = set; then
2902 withval="$with_libjpeg"
2903
2904 if test "$withval" = yes; then
2905 ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes'
2906 elif test "$withval" = no; then
2907 ac_cv_use_libjpeg='wxUSE_LIBJPEG=no'
2908 elif test "$withval" = sys; then
2909 ac_cv_use_libjpeg='wxUSE_LIBJPEG=sys'
2910 elif test "$withval" = builtin; then
2911 ac_cv_use_libjpeg='wxUSE_LIBJPEG=builtin'
2912 else
2913 { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5
2914echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;}
2915 { (exit 1); exit 1; }; }
2916 fi
2917
2918else
2919
2920 LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}`
2921 if test "x$LINE" != x ; then
2922 eval "DEFAULT_$LINE"
2923 else
2924 no_cache=1
2925 fi
2926
2927 ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG
2928
2929fi;
2930
2931 eval "$ac_cv_use_libjpeg"
2932 if test "$no_cache" != 1; then
2933 echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp
2934 fi
2935
2936 if test "$wxUSE_LIBJPEG" = yes; then
2937 echo "$as_me:$LINENO: result: yes" >&5
2938echo "${ECHO_T}yes" >&6
2939 elif test "$wxUSE_LIBJPEG" = no; then
2940 echo "$as_me:$LINENO: result: no" >&5
2941echo "${ECHO_T}no" >&6
2942 elif test "$wxUSE_LIBJPEG" = sys; then
2943 echo "$as_me:$LINENO: result: system version" >&5
2944echo "${ECHO_T}system version" >&6
2945 elif test "$wxUSE_LIBJPEG" = builtin; then
2946 echo "$as_me:$LINENO: result: builtin version" >&5
2947echo "${ECHO_T}builtin version" >&6
2948 else
2949 { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5
2950echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;}
2951 { (exit 1); exit 1; }; }
2952 fi
2953
2954
2955 echo "$as_me:$LINENO: checking for --with-libtiff" >&5
2956echo $ECHO_N "checking for --with-libtiff... $ECHO_C" >&6
2957 no_cache=0
2958
2959# Check whether --with-libtiff or --without-libtiff was given.
2960if test "${with_libtiff+set}" = set; then
2961 withval="$with_libtiff"
2962
2963 if test "$withval" = yes; then
2964 ac_cv_use_libtiff='wxUSE_LIBTIFF=yes'
2965 elif test "$withval" = no; then
2966 ac_cv_use_libtiff='wxUSE_LIBTIFF=no'
2967 elif test "$withval" = sys; then
2968 ac_cv_use_libtiff='wxUSE_LIBTIFF=sys'
2969 elif test "$withval" = builtin; then
2970 ac_cv_use_libtiff='wxUSE_LIBTIFF=builtin'
2971 else
2972 { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5
2973echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;}
2974 { (exit 1); exit 1; }; }
2975 fi
2976
2977else
2978
2979 LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}`
2980 if test "x$LINE" != x ; then
2981 eval "DEFAULT_$LINE"
2982 else
2983 no_cache=1
2984 fi
2985
2986 ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF
2987
2988fi;
2989
2990 eval "$ac_cv_use_libtiff"
2991 if test "$no_cache" != 1; then
2992 echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp
2993 fi
2994
2995 if test "$wxUSE_LIBTIFF" = yes; then
2996 echo "$as_me:$LINENO: result: yes" >&5
2997echo "${ECHO_T}yes" >&6
2998 elif test "$wxUSE_LIBTIFF" = no; then
2999 echo "$as_me:$LINENO: result: no" >&5
3000echo "${ECHO_T}no" >&6
3001 elif test "$wxUSE_LIBTIFF" = sys; then
3002 echo "$as_me:$LINENO: result: system version" >&5
3003echo "${ECHO_T}system version" >&6
3004 elif test "$wxUSE_LIBTIFF" = builtin; then
3005 echo "$as_me:$LINENO: result: builtin version" >&5
3006echo "${ECHO_T}builtin version" >&6
3007 else
3008 { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5
3009echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;}
3010 { (exit 1); exit 1; }; }
3011 fi
3012
3013
3014 echo "$as_me:$LINENO: checking for --with-libxpm" >&5
3015echo $ECHO_N "checking for --with-libxpm... $ECHO_C" >&6
3016 no_cache=0
3017
3018# Check whether --with-libxpm or --without-libxpm was given.
3019if test "${with_libxpm+set}" = set; then
3020 withval="$with_libxpm"
3021
3022 if test "$withval" = yes; then
3023 ac_cv_use_libxpm='wxUSE_LIBXPM=yes'
3024 elif test "$withval" = no; then
3025 ac_cv_use_libxpm='wxUSE_LIBXPM=no'
3026 elif test "$withval" = sys; then
3027 ac_cv_use_libxpm='wxUSE_LIBXPM=sys'
3028 elif test "$withval" = builtin; then
3029 ac_cv_use_libxpm='wxUSE_LIBXPM=builtin'
3030 else
3031 { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5
3032echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;}
3033 { (exit 1); exit 1; }; }
3034 fi
3035
3036else
3037
3038 LINE=`grep "wxUSE_LIBXPM" ${wx_arg_cache_file}`
3039 if test "x$LINE" != x ; then
3040 eval "DEFAULT_$LINE"
3041 else
3042 no_cache=1
3043 fi
3044
3045 ac_cv_use_libxpm='wxUSE_LIBXPM='$DEFAULT_wxUSE_LIBXPM
3046
3047fi;
3048
3049 eval "$ac_cv_use_libxpm"
3050 if test "$no_cache" != 1; then
3051 echo $ac_cv_use_libxpm >> ${wx_arg_cache_file}.tmp
3052 fi
3053
3054 if test "$wxUSE_LIBXPM" = yes; then
3055 echo "$as_me:$LINENO: result: yes" >&5
3056echo "${ECHO_T}yes" >&6
3057 elif test "$wxUSE_LIBXPM" = no; then
3058 echo "$as_me:$LINENO: result: no" >&5
3059echo "${ECHO_T}no" >&6
3060 elif test "$wxUSE_LIBXPM" = sys; then
3061 echo "$as_me:$LINENO: result: system version" >&5
3062echo "${ECHO_T}system version" >&6
3063 elif test "$wxUSE_LIBXPM" = builtin; then
3064 echo "$as_me:$LINENO: result: builtin version" >&5
3065echo "${ECHO_T}builtin version" >&6
3066 else
3067 { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5
3068echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;}
3069 { (exit 1); exit 1; }; }
3070 fi
3071
3072
3073 echo "$as_me:$LINENO: checking for --with-libmspack" >&5
3074echo $ECHO_N "checking for --with-libmspack... $ECHO_C" >&6
3075 no_cache=0
3076
3077# Check whether --with-libmspack or --without-libmspack was given.
3078if test "${with_libmspack+set}" = set; then
3079 withval="$with_libmspack"
3080
3081 if test "$withval" = yes; then
3082 ac_cv_use_libmspack='wxUSE_LIBMSPACK=yes'
3083 else
3084 ac_cv_use_libmspack='wxUSE_LIBMSPACK=no'
3085 fi
3086
3087else
3088
3089 LINE=`grep "wxUSE_LIBMSPACK" ${wx_arg_cache_file}`
3090 if test "x$LINE" != x ; then
3091 eval "DEFAULT_$LINE"
3092 else
3093 no_cache=1
3094 fi
3095
3096 ac_cv_use_libmspack='wxUSE_LIBMSPACK='$DEFAULT_wxUSE_LIBMSPACK
3097
3098fi;
3099
3100 eval "$ac_cv_use_libmspack"
3101 if test "$no_cache" != 1; then
3102 echo $ac_cv_use_libmspack >> ${wx_arg_cache_file}.tmp
3103 fi
3104
3105 if test "$wxUSE_LIBMSPACK" = yes; then
3106 echo "$as_me:$LINENO: result: yes" >&5
3107echo "${ECHO_T}yes" >&6
3108 else
3109 echo "$as_me:$LINENO: result: no" >&5
3110echo "${ECHO_T}no" >&6
3111 fi
3112
3113
3114 echo "$as_me:$LINENO: checking for --with-sdl" >&5
3115echo $ECHO_N "checking for --with-sdl... $ECHO_C" >&6
3116 no_cache=0
3117
3118# Check whether --with-sdl or --without-sdl was given.
3119if test "${with_sdl+set}" = set; then
3120 withval="$with_sdl"
3121
3122 if test "$withval" = yes; then
3123 ac_cv_use_sdl='wxUSE_LIBSDL=yes'
3124 else
3125 ac_cv_use_sdl='wxUSE_LIBSDL=no'
3126 fi
3127
3128else
3129
3130 LINE=`grep "wxUSE_LIBSDL" ${wx_arg_cache_file}`
3131 if test "x$LINE" != x ; then
3132 eval "DEFAULT_$LINE"
3133 else
3134 no_cache=1
3135 fi
3136
3137 ac_cv_use_sdl='wxUSE_LIBSDL='$DEFAULT_wxUSE_LIBSDL
3138
3139fi;
3140
3141 eval "$ac_cv_use_sdl"
3142 if test "$no_cache" != 1; then
3143 echo $ac_cv_use_sdl >> ${wx_arg_cache_file}.tmp
3144 fi
3145
3146 if test "$wxUSE_LIBSDL" = yes; then
3147 echo "$as_me:$LINENO: result: yes" >&5
3148echo "${ECHO_T}yes" >&6
3149 else
3150 echo "$as_me:$LINENO: result: no" >&5
3151echo "${ECHO_T}no" >&6
3152 fi
3153
3154
d1c38808
VZ
3155 echo "$as_me:$LINENO: checking for --with-gnomeprint" >&5
3156echo $ECHO_N "checking for --with-gnomeprint... $ECHO_C" >&6
3157 no_cache=0
3158
3159# Check whether --with-gnomeprint or --without-gnomeprint was given.
3160if test "${with_gnomeprint+set}" = set; then
3161 withval="$with_gnomeprint"
3162
3163 if test "$withval" = yes; then
3164 ac_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT=yes'
3165 else
3166 ac_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT=no'
3167 fi
3168
3169else
3170
3171 LINE=`grep "wxUSE_LIBGNOMEPRINT" ${wx_arg_cache_file}`
3172 if test "x$LINE" != x ; then
3173 eval "DEFAULT_$LINE"
3174 else
3175 no_cache=1
3176 fi
3177
3178 ac_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT='$DEFAULT_wxUSE_LIBGNOMEPRINT
3179
3180fi;
3181
3182 eval "$ac_cv_use_gnomeprint"
3183 if test "$no_cache" != 1; then
3184 echo $ac_cv_use_gnomeprint >> ${wx_arg_cache_file}.tmp
3185 fi
3186
3187 if test "$wxUSE_LIBGNOMEPRINT" = yes; then
3188 echo "$as_me:$LINENO: result: yes" >&5
3189echo "${ECHO_T}yes" >&6
3190 else
3191 echo "$as_me:$LINENO: result: no" >&5
3192echo "${ECHO_T}no" >&6
3193 fi
3194
3195
a848cd7e
SC
3196 echo "$as_me:$LINENO: checking for --with-opengl" >&5
3197echo $ECHO_N "checking for --with-opengl... $ECHO_C" >&6
3198 no_cache=0
3199
3200# Check whether --with-opengl or --without-opengl was given.
3201if test "${with_opengl+set}" = set; then
3202 withval="$with_opengl"
3203
3204 if test "$withval" = yes; then
3205 ac_cv_use_opengl='wxUSE_OPENGL=yes'
3206 else
3207 ac_cv_use_opengl='wxUSE_OPENGL=no'
3208 fi
3209
3210else
3211
3212 LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}`
3213 if test "x$LINE" != x ; then
3214 eval "DEFAULT_$LINE"
3215 else
3216 no_cache=1
3217 fi
3218
3219 ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL
3220
3221fi;
3222
3223 eval "$ac_cv_use_opengl"
3224 if test "$no_cache" != 1; then
3225 echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp
3226 fi
3227
3228 if test "$wxUSE_OPENGL" = yes; then
3229 echo "$as_me:$LINENO: result: yes" >&5
3230echo "${ECHO_T}yes" >&6
3231 else
3232 echo "$as_me:$LINENO: result: no" >&5
3233echo "${ECHO_T}no" >&6
3234 fi
3235
3236
3237fi
3238
3239
3240 echo "$as_me:$LINENO: checking for --with-dmalloc" >&5
3241echo $ECHO_N "checking for --with-dmalloc... $ECHO_C" >&6
3242 no_cache=0
3243
3244# Check whether --with-dmalloc or --without-dmalloc was given.
3245if test "${with_dmalloc+set}" = set; then
3246 withval="$with_dmalloc"
3247
3248 if test "$withval" = yes; then
3249 ac_cv_use_dmalloc='wxUSE_DMALLOC=yes'
3250 else
3251 ac_cv_use_dmalloc='wxUSE_DMALLOC=no'
3252 fi
3253
3254else
3255
3256 LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}`
3257 if test "x$LINE" != x ; then
3258 eval "DEFAULT_$LINE"
3259 else
3260 no_cache=1
3261 fi
3262
3263 ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC
3264
3265fi;
3266
3267 eval "$ac_cv_use_dmalloc"
3268 if test "$no_cache" != 1; then
3269 echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp
3270 fi
3271
3272 if test "$wxUSE_DMALLOC" = yes; then
3273 echo "$as_me:$LINENO: result: yes" >&5
3274echo "${ECHO_T}yes" >&6
3275 else
3276 echo "$as_me:$LINENO: result: no" >&5
3277echo "${ECHO_T}no" >&6
3278 fi
3279
3280
3281 echo "$as_me:$LINENO: checking for --with-regex" >&5
3282echo $ECHO_N "checking for --with-regex... $ECHO_C" >&6
3283 no_cache=0
3284
3285# Check whether --with-regex or --without-regex was given.
3286if test "${with_regex+set}" = set; then
3287 withval="$with_regex"
3288
3289 if test "$withval" = yes; then
3290 ac_cv_use_regex='wxUSE_REGEX=yes'
3291 elif test "$withval" = no; then
3292 ac_cv_use_regex='wxUSE_REGEX=no'
3293 elif test "$withval" = sys; then
3294 ac_cv_use_regex='wxUSE_REGEX=sys'
3295 elif test "$withval" = builtin; then
3296 ac_cv_use_regex='wxUSE_REGEX=builtin'
3297 else
3298 { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5
3299echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;}
3300 { (exit 1); exit 1; }; }
3301 fi
3302
3303else
3304
3305 LINE=`grep "wxUSE_REGEX" ${wx_arg_cache_file}`
3306 if test "x$LINE" != x ; then
3307 eval "DEFAULT_$LINE"
3308 else
3309 no_cache=1
3310 fi
3311
3312 ac_cv_use_regex='wxUSE_REGEX='$DEFAULT_wxUSE_REGEX
3313
3314fi;
3315
3316 eval "$ac_cv_use_regex"
3317 if test "$no_cache" != 1; then
3318 echo $ac_cv_use_regex >> ${wx_arg_cache_file}.tmp
3319 fi
3320
3321 if test "$wxUSE_REGEX" = yes; then
3322 echo "$as_me:$LINENO: result: yes" >&5
3323echo "${ECHO_T}yes" >&6
3324 elif test "$wxUSE_REGEX" = no; then
3325 echo "$as_me:$LINENO: result: no" >&5
3326echo "${ECHO_T}no" >&6
3327 elif test "$wxUSE_REGEX" = sys; then
3328 echo "$as_me:$LINENO: result: system version" >&5
3329echo "${ECHO_T}system version" >&6
3330 elif test "$wxUSE_REGEX" = builtin; then
3331 echo "$as_me:$LINENO: result: builtin version" >&5
3332echo "${ECHO_T}builtin version" >&6
3333 else
3334 { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5
3335echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;}
3336 { (exit 1); exit 1; }; }
3337 fi
3338
3339
3340 echo "$as_me:$LINENO: checking for --with-zlib" >&5
3341echo $ECHO_N "checking for --with-zlib... $ECHO_C" >&6
3342 no_cache=0
3343
3344# Check whether --with-zlib or --without-zlib was given.
3345if test "${with_zlib+set}" = set; then
3346 withval="$with_zlib"
3347
3348 if test "$withval" = yes; then
3349 ac_cv_use_zlib='wxUSE_ZLIB=yes'
3350 elif test "$withval" = no; then
3351 ac_cv_use_zlib='wxUSE_ZLIB=no'
3352 elif test "$withval" = sys; then
3353 ac_cv_use_zlib='wxUSE_ZLIB=sys'
3354 elif test "$withval" = builtin; then
3355 ac_cv_use_zlib='wxUSE_ZLIB=builtin'
3356 else
3357 { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5
3358echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;}
3359 { (exit 1); exit 1; }; }
3360 fi
3361
3362else
3363
3364 LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}`
3365 if test "x$LINE" != x ; then
3366 eval "DEFAULT_$LINE"
3367 else
3368 no_cache=1
3369 fi
3370
3371 ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB
3372
3373fi;
3374
3375 eval "$ac_cv_use_zlib"
3376 if test "$no_cache" != 1; then
3377 echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp
3378 fi
3379
3380 if test "$wxUSE_ZLIB" = yes; then
3381 echo "$as_me:$LINENO: result: yes" >&5
3382echo "${ECHO_T}yes" >&6
3383 elif test "$wxUSE_ZLIB" = no; then
3384 echo "$as_me:$LINENO: result: no" >&5
3385echo "${ECHO_T}no" >&6
3386 elif test "$wxUSE_ZLIB" = sys; then
3387 echo "$as_me:$LINENO: result: system version" >&5
3388echo "${ECHO_T}system version" >&6
3389 elif test "$wxUSE_ZLIB" = builtin; then
3390 echo "$as_me:$LINENO: result: builtin version" >&5
3391echo "${ECHO_T}builtin version" >&6
3392 else
3393 { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5
3394echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;}
3395 { (exit 1); exit 1; }; }
3396 fi
3397
3398
3399 echo "$as_me:$LINENO: checking for --with-odbc" >&5
3400echo $ECHO_N "checking for --with-odbc... $ECHO_C" >&6
3401 no_cache=0
3402
3403# Check whether --with-odbc or --without-odbc was given.
3404if test "${with_odbc+set}" = set; then
3405 withval="$with_odbc"
3406
3407 if test "$withval" = yes; then
3408 ac_cv_use_odbc='wxUSE_ODBC=yes'
3409 elif test "$withval" = no; then
3410 ac_cv_use_odbc='wxUSE_ODBC=no'
3411 elif test "$withval" = sys; then
3412 ac_cv_use_odbc='wxUSE_ODBC=sys'
3413 elif test "$withval" = builtin; then
3414 ac_cv_use_odbc='wxUSE_ODBC=builtin'
3415 else
3416 { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5
3417echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;}
3418 { (exit 1); exit 1; }; }
3419 fi
3420
3421else
3422
3423 LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}`
3424 if test "x$LINE" != x ; then
3425 eval "DEFAULT_$LINE"
3426 else
3427 no_cache=1
3428 fi
3429
3430 ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC
3431
3432fi;
3433
3434 eval "$ac_cv_use_odbc"
3435 if test "$no_cache" != 1; then
3436 echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp
3437 fi
3438
3439 if test "$wxUSE_ODBC" = yes; then
3440 echo "$as_me:$LINENO: result: yes" >&5
3441echo "${ECHO_T}yes" >&6
3442 elif test "$wxUSE_ODBC" = no; then
3443 echo "$as_me:$LINENO: result: no" >&5
3444echo "${ECHO_T}no" >&6
3445 elif test "$wxUSE_ODBC" = sys; then
3446 echo "$as_me:$LINENO: result: system version" >&5
3447echo "${ECHO_T}system version" >&6
3448 elif test "$wxUSE_ODBC" = builtin; then
3449 echo "$as_me:$LINENO: result: builtin version" >&5
3450echo "${ECHO_T}builtin version" >&6
3451 else
3452 { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5
3453echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;}
3454 { (exit 1); exit 1; }; }
3455 fi
3456
3457
3458 echo "$as_me:$LINENO: checking for --with-expat" >&5
3459echo $ECHO_N "checking for --with-expat... $ECHO_C" >&6
3460 no_cache=0
3461
3462# Check whether --with-expat or --without-expat was given.
3463if test "${with_expat+set}" = set; then
3464 withval="$with_expat"
3465
3466 if test "$withval" = yes; then
3467 ac_cv_use_expat='wxUSE_EXPAT=yes'
3468 elif test "$withval" = no; then
3469 ac_cv_use_expat='wxUSE_EXPAT=no'
3470 elif test "$withval" = sys; then
3471 ac_cv_use_expat='wxUSE_EXPAT=sys'
3472 elif test "$withval" = builtin; then
3473 ac_cv_use_expat='wxUSE_EXPAT=builtin'
3474 else
3475 { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5
3476echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;}
3477 { (exit 1); exit 1; }; }
3478 fi
3479
3480else
3481
3482 LINE=`grep "wxUSE_EXPAT" ${wx_arg_cache_file}`
3483 if test "x$LINE" != x ; then
3484 eval "DEFAULT_$LINE"
3485 else
3486 no_cache=1
3487 fi
3488
3489 ac_cv_use_expat='wxUSE_EXPAT='$DEFAULT_wxUSE_EXPAT
3490
3491fi;
3492
3493 eval "$ac_cv_use_expat"
3494 if test "$no_cache" != 1; then
3495 echo $ac_cv_use_expat >> ${wx_arg_cache_file}.tmp
3496 fi
3497
3498 if test "$wxUSE_EXPAT" = yes; then
3499 echo "$as_me:$LINENO: result: yes" >&5
3500echo "${ECHO_T}yes" >&6
3501 elif test "$wxUSE_EXPAT" = no; then
3502 echo "$as_me:$LINENO: result: no" >&5
3503echo "${ECHO_T}no" >&6
3504 elif test "$wxUSE_EXPAT" = sys; then
3505 echo "$as_me:$LINENO: result: system version" >&5
3506echo "${ECHO_T}system version" >&6
3507 elif test "$wxUSE_EXPAT" = builtin; then
3508 echo "$as_me:$LINENO: result: builtin version" >&5
3509echo "${ECHO_T}builtin version" >&6
3510 else
3511 { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5
3512echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;}
3513 { (exit 1); exit 1; }; }
3514 fi
3515
3516
3517
3518
3519 enablestring=
3520 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-shared" >&5
3521echo $ECHO_N "checking for --${enablestring:-enable}-shared... $ECHO_C" >&6
3522 no_cache=0
3523 # Check whether --enable-shared or --disable-shared was given.
3524if test "${enable_shared+set}" = set; then
3525 enableval="$enable_shared"
3526
3527 if test "$enableval" = yes; then
3528 ac_cv_use_shared='wxUSE_SHARED=yes'
3529 else
3530 ac_cv_use_shared='wxUSE_SHARED=no'
3531 fi
3532
3533else
3534
3535 LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}`
3536 if test "x$LINE" != x ; then
3537 eval "DEFAULT_$LINE"
3538 else
3539 no_cache=1
3540 fi
3541
3542 ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED
3543
3544fi;
3545
3546 eval "$ac_cv_use_shared"
3547 if test "$no_cache" != 1; then
3548 echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp
3549 fi
3550
3551 if test "$wxUSE_SHARED" = yes; then
3552 echo "$as_me:$LINENO: result: yes" >&5
3553echo "${ECHO_T}yes" >&6
3554 else
3555 echo "$as_me:$LINENO: result: no" >&5
3556echo "${ECHO_T}no" >&6
3557 fi
3558
3559
3560 enablestring=
3561 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-optimise" >&5
3562echo $ECHO_N "checking for --${enablestring:-enable}-optimise... $ECHO_C" >&6
3563 no_cache=0
3564 # Check whether --enable-optimise or --disable-optimise was given.
3565if test "${enable_optimise+set}" = set; then
3566 enableval="$enable_optimise"
3567
3568 if test "$enableval" = yes; then
3569 ac_cv_use_optimise='wxUSE_OPTIMISE=yes'
3570 else
3571 ac_cv_use_optimise='wxUSE_OPTIMISE=no'
3572 fi
3573
3574else
3575
3576 LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}`
3577 if test "x$LINE" != x ; then
3578 eval "DEFAULT_$LINE"
3579 else
3580 no_cache=1
3581 fi
3582
3583 ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE
3584
3585fi;
3586
3587 eval "$ac_cv_use_optimise"
3588 if test "$no_cache" != 1; then
3589 echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp
3590 fi
3591
3592 if test "$wxUSE_OPTIMISE" = yes; then
3593 echo "$as_me:$LINENO: result: yes" >&5
3594echo "${ECHO_T}yes" >&6
3595 else
3596 echo "$as_me:$LINENO: result: no" >&5
3597echo "${ECHO_T}no" >&6
3598 fi
3599
3600
3601 enablestring=
3602 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug" >&5
3603echo $ECHO_N "checking for --${enablestring:-enable}-debug... $ECHO_C" >&6
3604 no_cache=0
3605 # Check whether --enable-debug or --disable-debug was given.
3606if test "${enable_debug+set}" = set; then
3607 enableval="$enable_debug"
3608
3609 if test "$enableval" = yes; then
3610 ac_cv_use_debug='wxUSE_DEBUG=yes'
3611 else
3612 ac_cv_use_debug='wxUSE_DEBUG=no'
3613 fi
3614
3615else
3616
3617 LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}`
3618 if test "x$LINE" != x ; then
3619 eval "DEFAULT_$LINE"
3620 else
3621 no_cache=1
3622 fi
3623
3624 ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG
3625
3626fi;
3627
3628 eval "$ac_cv_use_debug"
3629 if test "$no_cache" != 1; then
3630 echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp
3631 fi
3632
3633 if test "$wxUSE_DEBUG" = yes; then
3634 echo "$as_me:$LINENO: result: yes" >&5
3635echo "${ECHO_T}yes" >&6
3636 else
3637 echo "$as_me:$LINENO: result: no" >&5
3638echo "${ECHO_T}no" >&6
3639 fi
3640
3641
3642 enablestring=
3643 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stl" >&5
3644echo $ECHO_N "checking for --${enablestring:-enable}-stl... $ECHO_C" >&6
3645 no_cache=0
3646 # Check whether --enable-stl or --disable-stl was given.
3647if test "${enable_stl+set}" = set; then
3648 enableval="$enable_stl"
3649
3650 if test "$enableval" = yes; then
3651 ac_cv_use_stl='wxUSE_STL=yes'
3652 else
3653 ac_cv_use_stl='wxUSE_STL=no'
3654 fi
3655
3656else
3657
3658 LINE=`grep "wxUSE_STL" ${wx_arg_cache_file}`
3659 if test "x$LINE" != x ; then
3660 eval "DEFAULT_$LINE"
3661 else
3662 no_cache=1
3663 fi
3664
3665 ac_cv_use_stl='wxUSE_STL='$DEFAULT_wxUSE_STL
3666
3667fi;
3668
3669 eval "$ac_cv_use_stl"
3670 if test "$no_cache" != 1; then
3671 echo $ac_cv_use_stl >> ${wx_arg_cache_file}.tmp
3672 fi
3673
3674 if test "$wxUSE_STL" = yes; then
3675 echo "$as_me:$LINENO: result: yes" >&5
3676echo "${ECHO_T}yes" >&6
3677 else
3678 echo "$as_me:$LINENO: result: no" >&5
3679echo "${ECHO_T}no" >&6
3680 fi
3681
3682if test "$USE_OS2" = "1"; then
69120ee4 3683 DEFAULT_wxUSE_OMF=no
a848cd7e
SC
3684
3685 enablestring=
3686 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-omf" >&5
3687echo $ECHO_N "checking for --${enablestring:-enable}-omf... $ECHO_C" >&6
3688 no_cache=0
3689 # Check whether --enable-omf or --disable-omf was given.
3690if test "${enable_omf+set}" = set; then
3691 enableval="$enable_omf"
3692
3693 if test "$enableval" = yes; then
3694 ac_cv_use_omf='wxUSE_OMF=yes'
3695 else
3696 ac_cv_use_omf='wxUSE_OMF=no'
3697 fi
3698
3699else
3700
3701 LINE=`grep "wxUSE_OMF" ${wx_arg_cache_file}`
3702 if test "x$LINE" != x ; then
3703 eval "DEFAULT_$LINE"
3704 else
3705 no_cache=1
3706 fi
3707
3708 ac_cv_use_omf='wxUSE_OMF='$DEFAULT_wxUSE_OMF
3709
3710fi;
3711
3712 eval "$ac_cv_use_omf"
3713 if test "$no_cache" != 1; then
3714 echo $ac_cv_use_omf >> ${wx_arg_cache_file}.tmp
3715 fi
3716
3717 if test "$wxUSE_OMF" = yes; then
3718 echo "$as_me:$LINENO: result: yes" >&5
3719echo "${ECHO_T}yes" >&6
3720 else
3721 echo "$as_me:$LINENO: result: no" >&5
3722echo "${ECHO_T}no" >&6
3723 fi
3724
3725fi
3726
3727if test "$wxUSE_DEBUG" = "yes"; then
3728 DEFAULT_wxUSE_DEBUG_FLAG=yes
3729 DEFAULT_wxUSE_DEBUG_INFO=yes
3730 BUILD=debug
3731elif test "$wxUSE_DEBUG" = "no"; then
3732 DEFAULT_wxUSE_DEBUG_FLAG=no
3733 DEFAULT_wxUSE_DEBUG_INFO=no
3734 BUILD=release
3735fi
3736
3737
3738 enablestring=
3739 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_flag" >&5
3740echo $ECHO_N "checking for --${enablestring:-enable}-debug_flag... $ECHO_C" >&6
3741 no_cache=0
3742 # Check whether --enable-debug_flag or --disable-debug_flag was given.
3743if test "${enable_debug_flag+set}" = set; then
3744 enableval="$enable_debug_flag"
3745
3746 if test "$enableval" = yes; then
3747 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes'
3748 else
3749 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no'
3750 fi
3751
3752else
3753
3754 LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}`
3755 if test "x$LINE" != x ; then
3756 eval "DEFAULT_$LINE"
3757 else
3758 no_cache=1
3759 fi
3760
3761 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG
3762
3763fi;
3764
3765 eval "$ac_cv_use_debug_flag"
3766 if test "$no_cache" != 1; then
3767 echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp
3768 fi
3769
3770 if test "$wxUSE_DEBUG_FLAG" = yes; then
3771 echo "$as_me:$LINENO: result: yes" >&5
3772echo "${ECHO_T}yes" >&6
3773 else
3774 echo "$as_me:$LINENO: result: no" >&5
3775echo "${ECHO_T}no" >&6
3776 fi
3777
3778
3779 enablestring=
3780 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_info" >&5
3781echo $ECHO_N "checking for --${enablestring:-enable}-debug_info... $ECHO_C" >&6
3782 no_cache=0
3783 # Check whether --enable-debug_info or --disable-debug_info was given.
3784if test "${enable_debug_info+set}" = set; then
3785 enableval="$enable_debug_info"
3786
3787 if test "$enableval" = yes; then
3788 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes'
3789 else
3790 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no'
3791 fi
3792
3793else
3794
3795 LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}`
3796 if test "x$LINE" != x ; then
3797 eval "DEFAULT_$LINE"
3798 else
3799 no_cache=1
3800 fi
3801
3802 ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO
3803
3804fi;
3805
3806 eval "$ac_cv_use_debug_info"
3807 if test "$no_cache" != 1; then
3808 echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp
3809 fi
3810
3811 if test "$wxUSE_DEBUG_INFO" = yes; then
3812 echo "$as_me:$LINENO: result: yes" >&5
3813echo "${ECHO_T}yes" >&6
3814 else
3815 echo "$as_me:$LINENO: result: no" >&5
3816echo "${ECHO_T}no" >&6
3817 fi
3818
3819
3820 enablestring=
3821 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_gdb" >&5
3822echo $ECHO_N "checking for --${enablestring:-enable}-debug_gdb... $ECHO_C" >&6
3823 no_cache=0
3824 # Check whether --enable-debug_gdb or --disable-debug_gdb was given.
3825if test "${enable_debug_gdb+set}" = set; then
3826 enableval="$enable_debug_gdb"
3827
3828 if test "$enableval" = yes; then
3829 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes'
3830 else
3831 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no'
3832 fi
3833
3834else
3835
3836 LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}`
3837 if test "x$LINE" != x ; then
3838 eval "DEFAULT_$LINE"
3839 else
3840 no_cache=1
3841 fi
3842
3843 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB
3844
3845fi;
3846
3847 eval "$ac_cv_use_debug_gdb"
3848 if test "$no_cache" != 1; then
3849 echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp
3850 fi
3851
3852 if test "$wxUSE_DEBUG_GDB" = yes; then
3853 echo "$as_me:$LINENO: result: yes" >&5
3854echo "${ECHO_T}yes" >&6
3855 else
3856 echo "$as_me:$LINENO: result: no" >&5
3857echo "${ECHO_T}no" >&6
3858 fi
3859
3860
3861 enablestring=
3862 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_cntxt" >&5
3863echo $ECHO_N "checking for --${enablestring:-enable}-debug_cntxt... $ECHO_C" >&6
3864 no_cache=0
3865 # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given.
3866if test "${enable_debug_cntxt+set}" = set; then
3867 enableval="$enable_debug_cntxt"
3868
3869 if test "$enableval" = yes; then
3870 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes'
3871 else
3872 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no'
3873 fi
3874
3875else
3876
3877 LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}`
3878 if test "x$LINE" != x ; then
3879 eval "DEFAULT_$LINE"
3880 else
3881 no_cache=1
3882 fi
3883
3884 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT
3885
3886fi;
3887
3888 eval "$ac_cv_use_debug_cntxt"
3889 if test "$no_cache" != 1; then
3890 echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp
3891 fi
3892
3893 if test "$wxUSE_DEBUG_CONTEXT" = yes; then
3894 echo "$as_me:$LINENO: result: yes" >&5
3895echo "${ECHO_T}yes" >&6
3896 else
3897 echo "$as_me:$LINENO: result: no" >&5
3898echo "${ECHO_T}no" >&6
3899 fi
3900
3901
3902 enablestring=
3903 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mem_tracing" >&5
3904echo $ECHO_N "checking for --${enablestring:-enable}-mem_tracing... $ECHO_C" >&6
3905 no_cache=0
3906 # Check whether --enable-mem_tracing or --disable-mem_tracing was given.
3907if test "${enable_mem_tracing+set}" = set; then
3908 enableval="$enable_mem_tracing"
3909
3910 if test "$enableval" = yes; then
3911 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes'
3912 else
3913 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no'
3914 fi
3915
3916else
3917
3918 LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}`
3919 if test "x$LINE" != x ; then
3920 eval "DEFAULT_$LINE"
3921 else
3922 no_cache=1
3923 fi
3924
3925 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING
3926
3927fi;
3928
3929 eval "$ac_cv_use_mem_tracing"
3930 if test "$no_cache" != 1; then
3931 echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp
3932 fi
3933
3934 if test "$wxUSE_MEM_TRACING" = yes; then
3935 echo "$as_me:$LINENO: result: yes" >&5
3936echo "${ECHO_T}yes" >&6
3937 else
3938 echo "$as_me:$LINENO: result: no" >&5
3939echo "${ECHO_T}no" >&6
3940 fi
3941
3942
3943 enablestring=
3944 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-profile" >&5
3945echo $ECHO_N "checking for --${enablestring:-enable}-profile... $ECHO_C" >&6
3946 no_cache=0
3947 # Check whether --enable-profile or --disable-profile was given.
3948if test "${enable_profile+set}" = set; then
3949 enableval="$enable_profile"
3950
3951 if test "$enableval" = yes; then
3952 ac_cv_use_profile='wxUSE_PROFILE=yes'
3953 else
3954 ac_cv_use_profile='wxUSE_PROFILE=no'
3955 fi
3956
3957else
3958
3959 LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}`
3960 if test "x$LINE" != x ; then
3961 eval "DEFAULT_$LINE"
3962 else
3963 no_cache=1
3964 fi
3965
3966 ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE
3967
3968fi;
3969
3970 eval "$ac_cv_use_profile"
3971 if test "$no_cache" != 1; then
3972 echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp
3973 fi
3974
3975 if test "$wxUSE_PROFILE" = yes; then
3976 echo "$as_me:$LINENO: result: yes" >&5
3977echo "${ECHO_T}yes" >&6
3978 else
3979 echo "$as_me:$LINENO: result: no" >&5
3980echo "${ECHO_T}no" >&6
3981 fi
3982
3983
3984 enablestring=
3985 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_rtti" >&5
3986echo $ECHO_N "checking for --${enablestring:-enable}-no_rtti... $ECHO_C" >&6
3987 no_cache=0
3988 # Check whether --enable-no_rtti or --disable-no_rtti was given.
3989if test "${enable_no_rtti+set}" = set; then
3990 enableval="$enable_no_rtti"
3991
3992 if test "$enableval" = yes; then
3993 ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes'
3994 else
3995 ac_cv_use_no_rtti='wxUSE_NO_RTTI=no'
3996 fi
3997
3998else
3999
4000 LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}`
4001 if test "x$LINE" != x ; then
4002 eval "DEFAULT_$LINE"
4003 else
4004 no_cache=1
4005 fi
4006
4007 ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI
4008
4009fi;
4010
4011 eval "$ac_cv_use_no_rtti"
4012 if test "$no_cache" != 1; then
4013 echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp
4014 fi
4015
4016 if test "$wxUSE_NO_RTTI" = yes; then
4017 echo "$as_me:$LINENO: result: yes" >&5
4018echo "${ECHO_T}yes" >&6
4019 else
4020 echo "$as_me:$LINENO: result: no" >&5
4021echo "${ECHO_T}no" >&6
4022 fi
4023
4024
4025 enablestring=
4026 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_exceptions" >&5
4027echo $ECHO_N "checking for --${enablestring:-enable}-no_exceptions... $ECHO_C" >&6
4028 no_cache=0
4029 # Check whether --enable-no_exceptions or --disable-no_exceptions was given.
4030if test "${enable_no_exceptions+set}" = set; then
4031 enableval="$enable_no_exceptions"
4032
4033 if test "$enableval" = yes; then
4034 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes'
4035 else
4036 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no'
4037 fi
4038
4039else
4040
4041 LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}`
4042 if test "x$LINE" != x ; then
4043 eval "DEFAULT_$LINE"
4044 else
4045 no_cache=1
4046 fi
4047
4048 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS
4049
4050fi;
4051
4052 eval "$ac_cv_use_no_exceptions"
4053 if test "$no_cache" != 1; then
4054 echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp
4055 fi
4056
4057 if test "$wxUSE_NO_EXCEPTIONS" = yes; then
4058 echo "$as_me:$LINENO: result: yes" >&5
4059echo "${ECHO_T}yes" >&6
4060 else
4061 echo "$as_me:$LINENO: result: no" >&5
4062echo "${ECHO_T}no" >&6
4063 fi
4064
4065
4066 enablestring=
4067 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-permissive" >&5
4068echo $ECHO_N "checking for --${enablestring:-enable}-permissive... $ECHO_C" >&6
4069 no_cache=0
4070 # Check whether --enable-permissive or --disable-permissive was given.
4071if test "${enable_permissive+set}" = set; then
4072 enableval="$enable_permissive"
4073
4074 if test "$enableval" = yes; then
4075 ac_cv_use_permissive='wxUSE_PERMISSIVE=yes'
4076 else
4077 ac_cv_use_permissive='wxUSE_PERMISSIVE=no'
4078 fi
4079
4080else
4081
4082 LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}`
4083 if test "x$LINE" != x ; then
4084 eval "DEFAULT_$LINE"
4085 else
4086 no_cache=1
4087 fi
4088
4089 ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE
4090
4091fi;
4092
4093 eval "$ac_cv_use_permissive"
4094 if test "$no_cache" != 1; then
4095 echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp
4096 fi
4097
4098 if test "$wxUSE_PERMISSIVE" = yes; then
4099 echo "$as_me:$LINENO: result: yes" >&5
4100echo "${ECHO_T}yes" >&6
4101 else
4102 echo "$as_me:$LINENO: result: no" >&5
4103echo "${ECHO_T}no" >&6
4104 fi
4105
4106
4107 enablestring=
4108 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_deps" >&5
4109echo $ECHO_N "checking for --${enablestring:-enable}-no_deps... $ECHO_C" >&6
4110 no_cache=0
4111 # Check whether --enable-no_deps or --disable-no_deps was given.
4112if test "${enable_no_deps+set}" = set; then
4113 enableval="$enable_no_deps"
4114
4115 if test "$enableval" = yes; then
4116 ac_cv_use_no_deps='wxUSE_NO_DEPS=yes'
4117 else
4118 ac_cv_use_no_deps='wxUSE_NO_DEPS=no'
4119 fi
4120
4121else
4122
4123 LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}`
4124 if test "x$LINE" != x ; then
4125 eval "DEFAULT_$LINE"
4126 else
4127 no_cache=1
4128 fi
4129
4130 ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS
4131
4132fi;
4133
4134 eval "$ac_cv_use_no_deps"
4135 if test "$no_cache" != 1; then
4136 echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp
4137 fi
4138
4139 if test "$wxUSE_NO_DEPS" = yes; then
4140 echo "$as_me:$LINENO: result: yes" >&5
4141echo "${ECHO_T}yes" >&6
4142 else
4143 echo "$as_me:$LINENO: result: no" >&5
4144echo "${ECHO_T}no" >&6
4145 fi
4146
4147
4148
4149 enablestring=
4150 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat22" >&5
4151echo $ECHO_N "checking for --${enablestring:-enable}-compat22... $ECHO_C" >&6
4152 no_cache=0
4153 # Check whether --enable-compat22 or --disable-compat22 was given.
4154if test "${enable_compat22+set}" = set; then
4155 enableval="$enable_compat22"
4156
4157 if test "$enableval" = yes; then
4158 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=yes'
4159 else
4160 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=no'
4161 fi
4162
4163else
4164
4165 LINE=`grep "WXWIN_COMPATIBILITY_2_2" ${wx_arg_cache_file}`
4166 if test "x$LINE" != x ; then
4167 eval "DEFAULT_$LINE"
4168 else
4169 no_cache=1
4170 fi
4171
4172 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2='$DEFAULT_WXWIN_COMPATIBILITY_2_2
4173
4174fi;
4175
4176 eval "$ac_cv_use_compat22"
4177 if test "$no_cache" != 1; then
4178 echo $ac_cv_use_compat22 >> ${wx_arg_cache_file}.tmp
4179 fi
4180
4181 if test "$WXWIN_COMPATIBILITY_2_2" = yes; then
4182 echo "$as_me:$LINENO: result: yes" >&5
4183echo "${ECHO_T}yes" >&6
4184 else
4185 echo "$as_me:$LINENO: result: no" >&5
4186echo "${ECHO_T}no" >&6
4187 fi
4188
4189
4190 enablestring=disable
4191 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat24" >&5
4192echo $ECHO_N "checking for --${enablestring:-enable}-compat24... $ECHO_C" >&6
4193 no_cache=0
4194 # Check whether --enable-compat24 or --disable-compat24 was given.
4195if test "${enable_compat24+set}" = set; then
4196 enableval="$enable_compat24"
4197
4198 if test "$enableval" = yes; then
4199 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=yes'
4200 else
4201 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=no'
4202 fi
4203
4204else
4205
4206 LINE=`grep "WXWIN_COMPATIBILITY_2_4" ${wx_arg_cache_file}`
4207 if test "x$LINE" != x ; then
4208 eval "DEFAULT_$LINE"
4209 else
4210 no_cache=1
4211 fi
4212
4213 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4='$DEFAULT_WXWIN_COMPATIBILITY_2_4
4214
4215fi;
4216
4217 eval "$ac_cv_use_compat24"
4218 if test "$no_cache" != 1; then
4219 echo $ac_cv_use_compat24 >> ${wx_arg_cache_file}.tmp
4220 fi
4221
4222 if test "$WXWIN_COMPATIBILITY_2_4" = yes; then
4223 echo "$as_me:$LINENO: result: yes" >&5
4224echo "${ECHO_T}yes" >&6
4225 else
4226 echo "$as_me:$LINENO: result: no" >&5
4227echo "${ECHO_T}no" >&6
4228 fi
4229
4230
ffa0583f
RL
4231
4232 enablestring=
4233 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-rpath" >&5
4234echo $ECHO_N "checking for --${enablestring:-enable}-rpath... $ECHO_C" >&6
4235 no_cache=0
4236 # Check whether --enable-rpath or --disable-rpath was given.
a848cd7e
SC
4237if test "${enable_rpath+set}" = set; then
4238 enableval="$enable_rpath"
ffa0583f
RL
4239
4240 if test "$enableval" = yes; then
4241 ac_cv_use_rpath='wxUSE_RPATH=yes'
4242 else
4243 ac_cv_use_rpath='wxUSE_RPATH=no'
4244 fi
4245
4246else
4247
4248 LINE=`grep "wxUSE_RPATH" ${wx_arg_cache_file}`
4249 if test "x$LINE" != x ; then
4250 eval "DEFAULT_$LINE"
4251 else
4252 no_cache=1
4253 fi
4254
4255 ac_cv_use_rpath='wxUSE_RPATH='$DEFAULT_wxUSE_RPATH
4256
a848cd7e
SC
4257fi;
4258
ffa0583f
RL
4259 eval "$ac_cv_use_rpath"
4260 if test "$no_cache" != 1; then
4261 echo $ac_cv_use_rpath >> ${wx_arg_cache_file}.tmp
4262 fi
4263
4264 if test "$wxUSE_RPATH" = yes; then
4265 echo "$as_me:$LINENO: result: yes" >&5
4266echo "${ECHO_T}yes" >&6
4267 else
4268 echo "$as_me:$LINENO: result: no" >&5
4269echo "${ECHO_T}no" >&6
4270 fi
4271
a848cd7e
SC
4272
4273
4274
4275
4276 enablestring=
4277 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-intl" >&5
4278echo $ECHO_N "checking for --${enablestring:-enable}-intl... $ECHO_C" >&6
4279 no_cache=0
4280 # Check whether --enable-intl or --disable-intl was given.
4281if test "${enable_intl+set}" = set; then
4282 enableval="$enable_intl"
4283
4284 if test "$enableval" = yes; then
4285 ac_cv_use_intl='wxUSE_INTL=yes'
4286 else
4287 ac_cv_use_intl='wxUSE_INTL=no'
4288 fi
4289
4290else
4291
4292 LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}`
4293 if test "x$LINE" != x ; then
4294 eval "DEFAULT_$LINE"
4295 else
4296 no_cache=1
4297 fi
4298
4299 ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL
4300
4301fi;
4302
4303 eval "$ac_cv_use_intl"
4304 if test "$no_cache" != 1; then
4305 echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp
4306 fi
4307
4308 if test "$wxUSE_INTL" = yes; then
4309 echo "$as_me:$LINENO: result: yes" >&5
4310echo "${ECHO_T}yes" >&6
4311 else
4312 echo "$as_me:$LINENO: result: no" >&5
4313echo "${ECHO_T}no" >&6
4314 fi
4315
4316
4317 enablestring=
4318 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-config" >&5
4319echo $ECHO_N "checking for --${enablestring:-enable}-config... $ECHO_C" >&6
4320 no_cache=0
4321 # Check whether --enable-config or --disable-config was given.
4322if test "${enable_config+set}" = set; then
4323 enableval="$enable_config"
4324
4325 if test "$enableval" = yes; then
4326 ac_cv_use_config='wxUSE_CONFIG=yes'
4327 else
4328 ac_cv_use_config='wxUSE_CONFIG=no'
4329 fi
4330
4331else
4332
4333 LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}`
4334 if test "x$LINE" != x ; then
4335 eval "DEFAULT_$LINE"
4336 else
4337 no_cache=1
4338 fi
4339
4340 ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG
4341
4342fi;
4343
4344 eval "$ac_cv_use_config"
4345 if test "$no_cache" != 1; then
4346 echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp
4347 fi
4348
4349 if test "$wxUSE_CONFIG" = yes; then
4350 echo "$as_me:$LINENO: result: yes" >&5
4351echo "${ECHO_T}yes" >&6
4352 else
4353 echo "$as_me:$LINENO: result: no" >&5
4354echo "${ECHO_T}no" >&6
4355 fi
4356
4357
4358
4359 enablestring=
4360 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocols" >&5
4361echo $ECHO_N "checking for --${enablestring:-enable}-protocols... $ECHO_C" >&6
4362 no_cache=0
4363 # Check whether --enable-protocols or --disable-protocols was given.
4364if test "${enable_protocols+set}" = set; then
4365 enableval="$enable_protocols"
4366
4367 if test "$enableval" = yes; then
4368 ac_cv_use_protocols='wxUSE_PROTOCOL=yes'
4369 else
4370 ac_cv_use_protocols='wxUSE_PROTOCOL=no'
4371 fi
4372
4373else
4374
4375 LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
4376 if test "x$LINE" != x ; then
4377 eval "DEFAULT_$LINE"
4378 else
4379 no_cache=1
4380 fi
4381
4382 ac_cv_use_protocols='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
4383
4384fi;
4385
4386 eval "$ac_cv_use_protocols"
4387 if test "$no_cache" != 1; then
4388 echo $ac_cv_use_protocols >> ${wx_arg_cache_file}.tmp
4389 fi
4390
4391 if test "$wxUSE_PROTOCOL" = yes; then
4392 echo "$as_me:$LINENO: result: yes" >&5
4393echo "${ECHO_T}yes" >&6
4394 else
4395 echo "$as_me:$LINENO: result: no" >&5
4396echo "${ECHO_T}no" >&6
4397 fi
4398
4399
4400 enablestring=
4401 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ftp" >&5
4402echo $ECHO_N "checking for --${enablestring:-enable}-ftp... $ECHO_C" >&6
4403 no_cache=0
4404 # Check whether --enable-ftp or --disable-ftp was given.
4405if test "${enable_ftp+set}" = set; then
4406 enableval="$enable_ftp"
4407
4408 if test "$enableval" = yes; then
4409 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=yes'
4410 else
4411 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=no'
4412 fi
4413
4414else
4415
4416 LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
4417 if test "x$LINE" != x ; then
4418 eval "DEFAULT_$LINE"
4419 else
4420 no_cache=1
4421 fi
4422
4423 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
4424
4425fi;
4426
4427 eval "$ac_cv_use_ftp"
4428 if test "$no_cache" != 1; then
4429 echo $ac_cv_use_ftp >> ${wx_arg_cache_file}.tmp
4430 fi
4431
4432 if test "$wxUSE_PROTOCOL_FTP" = yes; then
4433 echo "$as_me:$LINENO: result: yes" >&5
4434echo "${ECHO_T}yes" >&6
4435 else
4436 echo "$as_me:$LINENO: result: no" >&5
4437echo "${ECHO_T}no" >&6
4438 fi
4439
4440
4441 enablestring=
4442 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-http" >&5
4443echo $ECHO_N "checking for --${enablestring:-enable}-http... $ECHO_C" >&6
4444 no_cache=0
4445 # Check whether --enable-http or --disable-http was given.
4446if test "${enable_http+set}" = set; then
4447 enableval="$enable_http"
4448
4449 if test "$enableval" = yes; then
4450 ac_cv_use_http='wxUSE_PROTOCOL_HTTP=yes'
4451 else
4452 ac_cv_use_http='wxUSE_PROTOCOL_HTTP=no'
4453 fi
4454
4455else
4456
4457 LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
4458 if test "x$LINE" != x ; then
4459 eval "DEFAULT_$LINE"
4460 else
4461 no_cache=1
4462 fi
4463
4464 ac_cv_use_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
4465
4466fi;
4467
4468 eval "$ac_cv_use_http"
4469 if test "$no_cache" != 1; then
4470 echo $ac_cv_use_http >> ${wx_arg_cache_file}.tmp
4471 fi
4472
4473 if test "$wxUSE_PROTOCOL_HTTP" = yes; then
4474 echo "$as_me:$LINENO: result: yes" >&5
4475echo "${ECHO_T}yes" >&6
4476 else
4477 echo "$as_me:$LINENO: result: no" >&5
4478echo "${ECHO_T}no" >&6
4479 fi
4480
4481
4482 enablestring=
4483 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fileproto" >&5
4484echo $ECHO_N "checking for --${enablestring:-enable}-fileproto... $ECHO_C" >&6
4485 no_cache=0
4486 # Check whether --enable-fileproto or --disable-fileproto was given.
4487if test "${enable_fileproto+set}" = set; then
4488 enableval="$enable_fileproto"
4489
4490 if test "$enableval" = yes; then
4491 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=yes'
4492 else
4493 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=no'
4494 fi
4495
4496else
4497
4498 LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
4499 if test "x$LINE" != x ; then
4500 eval "DEFAULT_$LINE"
4501 else
4502 no_cache=1
4503 fi
4504
4505 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
4506
4507fi;
4508
4509 eval "$ac_cv_use_fileproto"
4510 if test "$no_cache" != 1; then
4511 echo $ac_cv_use_fileproto >> ${wx_arg_cache_file}.tmp
4512 fi
4513
4514 if test "$wxUSE_PROTOCOL_FILE" = yes; then
4515 echo "$as_me:$LINENO: result: yes" >&5
4516echo "${ECHO_T}yes" >&6
4517 else
4518 echo "$as_me:$LINENO: result: no" >&5
4519echo "${ECHO_T}no" >&6
4520 fi
4521
4522
4523 enablestring=
4524 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sockets" >&5
4525echo $ECHO_N "checking for --${enablestring:-enable}-sockets... $ECHO_C" >&6
4526 no_cache=0
4527 # Check whether --enable-sockets or --disable-sockets was given.
4528if test "${enable_sockets+set}" = set; then
4529 enableval="$enable_sockets"
4530
4531 if test "$enableval" = yes; then
4532 ac_cv_use_sockets='wxUSE_SOCKETS=yes'
4533 else
4534 ac_cv_use_sockets='wxUSE_SOCKETS=no'
4535 fi
4536
4537else
4538
4539 LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}`
4540 if test "x$LINE" != x ; then
4541 eval "DEFAULT_$LINE"
4542 else
4543 no_cache=1
4544 fi
4545
4546 ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS
4547
4548fi;
4549
4550 eval "$ac_cv_use_sockets"
4551 if test "$no_cache" != 1; then
4552 echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp
4553 fi
4554
4555 if test "$wxUSE_SOCKETS" = yes; then
4556 echo "$as_me:$LINENO: result: yes" >&5
4557echo "${ECHO_T}yes" >&6
4558 else
4559 echo "$as_me:$LINENO: result: no" >&5
4560echo "${ECHO_T}no" >&6
4561 fi
4562
4563
4564 enablestring=
4565 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ole" >&5
4566echo $ECHO_N "checking for --${enablestring:-enable}-ole... $ECHO_C" >&6
4567 no_cache=0
4568 # Check whether --enable-ole or --disable-ole was given.
4569if test "${enable_ole+set}" = set; then
4570 enableval="$enable_ole"
4571
4572 if test "$enableval" = yes; then
4573 ac_cv_use_ole='wxUSE_OLE=yes'
4574 else
4575 ac_cv_use_ole='wxUSE_OLE=no'
4576 fi
4577
4578else
4579
4580 LINE=`grep "wxUSE_OLE" ${wx_arg_cache_file}`
4581 if test "x$LINE" != x ; then
4582 eval "DEFAULT_$LINE"
4583 else
4584 no_cache=1
4585 fi
4586
4587 ac_cv_use_ole='wxUSE_OLE='$DEFAULT_wxUSE_OLE
4588
4589fi;
4590
4591 eval "$ac_cv_use_ole"
4592 if test "$no_cache" != 1; then
4593 echo $ac_cv_use_ole >> ${wx_arg_cache_file}.tmp
4594 fi
4595
4596 if test "$wxUSE_OLE" = yes; then
4597 echo "$as_me:$LINENO: result: yes" >&5
4598echo "${ECHO_T}yes" >&6
4599 else
4600 echo "$as_me:$LINENO: result: no" >&5
4601echo "${ECHO_T}no" >&6
4602 fi
4603
4604
4605 enablestring=
4606 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dataobj" >&5
4607echo $ECHO_N "checking for --${enablestring:-enable}-dataobj... $ECHO_C" >&6
4608 no_cache=0
4609 # Check whether --enable-dataobj or --disable-dataobj was given.
4610if test "${enable_dataobj+set}" = set; then
4611 enableval="$enable_dataobj"
4612
4613 if test "$enableval" = yes; then
4614 ac_cv_use_dataobj='wxUSE_DATAOBJ=yes'
4615 else
4616 ac_cv_use_dataobj='wxUSE_DATAOBJ=no'
4617 fi
4618
4619else
4620
4621 LINE=`grep "wxUSE_DATAOBJ" ${wx_arg_cache_file}`
4622 if test "x$LINE" != x ; then
4623 eval "DEFAULT_$LINE"
4624 else
4625 no_cache=1
4626 fi
4627
4628 ac_cv_use_dataobj='wxUSE_DATAOBJ='$DEFAULT_wxUSE_DATAOBJ
4629
4630fi;
4631
4632 eval "$ac_cv_use_dataobj"
4633 if test "$no_cache" != 1; then
4634 echo $ac_cv_use_dataobj >> ${wx_arg_cache_file}.tmp
4635 fi
4636
4637 if test "$wxUSE_DATAOBJ" = yes; then
4638 echo "$as_me:$LINENO: result: yes" >&5
4639echo "${ECHO_T}yes" >&6
4640 else
4641 echo "$as_me:$LINENO: result: no" >&5
4642echo "${ECHO_T}no" >&6
4643 fi
4644
4645
4646
4647 enablestring=
4648 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ipc" >&5
4649echo $ECHO_N "checking for --${enablestring:-enable}-ipc... $ECHO_C" >&6
4650 no_cache=0
4651 # Check whether --enable-ipc or --disable-ipc was given.
4652if test "${enable_ipc+set}" = set; then
4653 enableval="$enable_ipc"
4654
4655 if test "$enableval" = yes; then
4656 ac_cv_use_ipc='wxUSE_IPC=yes'
4657 else
4658 ac_cv_use_ipc='wxUSE_IPC=no'
4659 fi
4660
4661else
4662
4663 LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}`
4664 if test "x$LINE" != x ; then
4665 eval "DEFAULT_$LINE"
4666 else
4667 no_cache=1
4668 fi
4669
4670 ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC
4671
4672fi;
4673
4674 eval "$ac_cv_use_ipc"
4675 if test "$no_cache" != 1; then
4676 echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp
4677 fi
4678
4679 if test "$wxUSE_IPC" = yes; then
4680 echo "$as_me:$LINENO: result: yes" >&5
4681echo "${ECHO_T}yes" >&6
4682 else
4683 echo "$as_me:$LINENO: result: no" >&5
4684echo "${ECHO_T}no" >&6
4685 fi
4686
4687
4688
4689 enablestring=
4690 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-apple_ieee" >&5
4691echo $ECHO_N "checking for --${enablestring:-enable}-apple_ieee... $ECHO_C" >&6
4692 no_cache=0
4693 # Check whether --enable-apple_ieee or --disable-apple_ieee was given.
4694if test "${enable_apple_ieee+set}" = set; then
4695 enableval="$enable_apple_ieee"
4696
4697 if test "$enableval" = yes; then
4698 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes'
4699 else
4700 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no'
4701 fi
4702
4703else
4704
4705 LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}`
4706 if test "x$LINE" != x ; then
4707 eval "DEFAULT_$LINE"
4708 else
4709 no_cache=1
4710 fi
4711
4712 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE
4713
4714fi;
4715
4716 eval "$ac_cv_use_apple_ieee"
4717 if test "$no_cache" != 1; then
4718 echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp
4719 fi
4720
4721 if test "$wxUSE_APPLE_IEEE" = yes; then
4722 echo "$as_me:$LINENO: result: yes" >&5
4723echo "${ECHO_T}yes" >&6
4724 else
4725 echo "$as_me:$LINENO: result: no" >&5
4726echo "${ECHO_T}no" >&6
4727 fi
4728
4729
81f90336
MW
4730 enablestring=
4731 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-arcstream" >&5
4732echo $ECHO_N "checking for --${enablestring:-enable}-arcstream... $ECHO_C" >&6
4733 no_cache=0
4734 # Check whether --enable-arcstream or --disable-arcstream was given.
4735if test "${enable_arcstream+set}" = set; then
4736 enableval="$enable_arcstream"
4737
4738 if test "$enableval" = yes; then
9e8e867f 4739 ac_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS=yes'
81f90336 4740 else
9e8e867f 4741 ac_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS=no'
81f90336
MW
4742 fi
4743
4744else
4745
9e8e867f 4746 LINE=`grep "wxUSE_ARCHIVE_STREAMS" ${wx_arg_cache_file}`
81f90336
MW
4747 if test "x$LINE" != x ; then
4748 eval "DEFAULT_$LINE"
4749 else
4750 no_cache=1
4751 fi
4752
9e8e867f 4753 ac_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS='$DEFAULT_wxUSE_ARCHIVE_STREAMS
81f90336
MW
4754
4755fi;
4756
4757 eval "$ac_cv_use_arcstream"
4758 if test "$no_cache" != 1; then
4759 echo $ac_cv_use_arcstream >> ${wx_arg_cache_file}.tmp
4760 fi
4761
9e8e867f 4762 if test "$wxUSE_ARCHIVE_STREAMS" = yes; then
81f90336
MW
4763 echo "$as_me:$LINENO: result: yes" >&5
4764echo "${ECHO_T}yes" >&6
4765 else
4766 echo "$as_me:$LINENO: result: no" >&5
4767echo "${ECHO_T}no" >&6
4768 fi
4769
4770
a848cd7e 4771 enablestring=
36b6448c
VZ
4772 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-backtrace" >&5
4773echo $ECHO_N "checking for --${enablestring:-enable}-backtrace... $ECHO_C" >&6
a848cd7e 4774 no_cache=0
36b6448c
VZ
4775 # Check whether --enable-backtrace or --disable-backtrace was given.
4776if test "${enable_backtrace+set}" = set; then
4777 enableval="$enable_backtrace"
a848cd7e
SC
4778
4779 if test "$enableval" = yes; then
36b6448c 4780 ac_cv_use_backtrace='wxUSE_STACKWALKER=yes'
a848cd7e 4781 else
36b6448c 4782 ac_cv_use_backtrace='wxUSE_STACKWALKER=no'
a848cd7e
SC
4783 fi
4784
4785else
4786
36b6448c 4787 LINE=`grep "wxUSE_STACKWALKER" ${wx_arg_cache_file}`
a848cd7e
SC
4788 if test "x$LINE" != x ; then
4789 eval "DEFAULT_$LINE"
4790 else
4791 no_cache=1
4792 fi
4793
36b6448c 4794 ac_cv_use_backtrace='wxUSE_STACKWALKER='$DEFAULT_wxUSE_STACKWALKER
a848cd7e
SC
4795
4796fi;
4797
36b6448c 4798 eval "$ac_cv_use_backtrace"
a848cd7e 4799 if test "$no_cache" != 1; then
36b6448c 4800 echo $ac_cv_use_backtrace >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
4801 fi
4802
36b6448c 4803 if test "$wxUSE_STACKWALKER" = yes; then
a848cd7e
SC
4804 echo "$as_me:$LINENO: result: yes" >&5
4805echo "${ECHO_T}yes" >&6
4806 else
4807 echo "$as_me:$LINENO: result: no" >&5
4808echo "${ECHO_T}no" >&6
4809 fi
4810
4811
eaff0f0d 4812 enablestring=
36b6448c
VZ
4813 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-catch_segvs" >&5
4814echo $ECHO_N "checking for --${enablestring:-enable}-catch_segvs... $ECHO_C" >&6
eaff0f0d 4815 no_cache=0
36b6448c
VZ
4816 # Check whether --enable-catch_segvs or --disable-catch_segvs was given.
4817if test "${enable_catch_segvs+set}" = set; then
4818 enableval="$enable_catch_segvs"
eaff0f0d
VZ
4819
4820 if test "$enableval" = yes; then
36b6448c 4821 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes'
eaff0f0d 4822 else
36b6448c 4823 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no'
eaff0f0d
VZ
4824 fi
4825
4826else
4827
36b6448c 4828 LINE=`grep "wxUSE_ON_FATAL_EXCEPTION" ${wx_arg_cache_file}`
eaff0f0d
VZ
4829 if test "x$LINE" != x ; then
4830 eval "DEFAULT_$LINE"
4831 else
4832 no_cache=1
4833 fi
4834
36b6448c 4835 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION='$DEFAULT_wxUSE_ON_FATAL_EXCEPTION
eaff0f0d
VZ
4836
4837fi;
4838
36b6448c 4839 eval "$ac_cv_use_catch_segvs"
eaff0f0d 4840 if test "$no_cache" != 1; then
36b6448c 4841 echo $ac_cv_use_catch_segvs >> ${wx_arg_cache_file}.tmp
eaff0f0d
VZ
4842 fi
4843
36b6448c 4844 if test "$wxUSE_ON_FATAL_EXCEPTION" = yes; then
eaff0f0d
VZ
4845 echo "$as_me:$LINENO: result: yes" >&5
4846echo "${ECHO_T}yes" >&6
4847 else
4848 echo "$as_me:$LINENO: result: no" >&5
4849echo "${ECHO_T}no" >&6
4850 fi
4851
4852
a848cd7e
SC
4853 enablestring=
4854 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-cmdline" >&5
4855echo $ECHO_N "checking for --${enablestring:-enable}-cmdline... $ECHO_C" >&6
4856 no_cache=0
4857 # Check whether --enable-cmdline or --disable-cmdline was given.
4858if test "${enable_cmdline+set}" = set; then
4859 enableval="$enable_cmdline"
4860
4861 if test "$enableval" = yes; then
4862 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=yes'
4863 else
4864 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=no'
4865 fi
4866
4867else
4868
4869 LINE=`grep "wxUSE_CMDLINE_PARSER" ${wx_arg_cache_file}`
4870 if test "x$LINE" != x ; then
4871 eval "DEFAULT_$LINE"
4872 else
4873 no_cache=1
4874 fi
4875
4876 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER='$DEFAULT_wxUSE_CMDLINE_PARSER
4877
4878fi;
4879
4880 eval "$ac_cv_use_cmdline"
4881 if test "$no_cache" != 1; then
4882 echo $ac_cv_use_cmdline >> ${wx_arg_cache_file}.tmp
4883 fi
4884
4885 if test "$wxUSE_CMDLINE_PARSER" = yes; then
4886 echo "$as_me:$LINENO: result: yes" >&5
4887echo "${ECHO_T}yes" >&6
4888 else
4889 echo "$as_me:$LINENO: result: no" >&5
4890echo "${ECHO_T}no" >&6
4891 fi
4892
4893
4894 enablestring=
4895 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-datetime" >&5
4896echo $ECHO_N "checking for --${enablestring:-enable}-datetime... $ECHO_C" >&6
4897 no_cache=0
4898 # Check whether --enable-datetime or --disable-datetime was given.
4899if test "${enable_datetime+set}" = set; then
4900 enableval="$enable_datetime"
4901
4902 if test "$enableval" = yes; then
4903 ac_cv_use_datetime='wxUSE_DATETIME=yes'
4904 else
4905 ac_cv_use_datetime='wxUSE_DATETIME=no'
4906 fi
4907
4908else
4909
4910 LINE=`grep "wxUSE_DATETIME" ${wx_arg_cache_file}`
4911 if test "x$LINE" != x ; then
4912 eval "DEFAULT_$LINE"
4913 else
4914 no_cache=1
4915 fi
4916
4917 ac_cv_use_datetime='wxUSE_DATETIME='$DEFAULT_wxUSE_DATETIME
4918
4919fi;
4920
4921 eval "$ac_cv_use_datetime"
4922 if test "$no_cache" != 1; then
4923 echo $ac_cv_use_datetime >> ${wx_arg_cache_file}.tmp
4924 fi
4925
4926 if test "$wxUSE_DATETIME" = yes; then
4927 echo "$as_me:$LINENO: result: yes" >&5
4928echo "${ECHO_T}yes" >&6
4929 else
4930 echo "$as_me:$LINENO: result: no" >&5
4931echo "${ECHO_T}no" >&6
4932 fi
4933
4934
36b6448c
VZ
4935 enablestring=
4936 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debugreport" >&5
4937echo $ECHO_N "checking for --${enablestring:-enable}-debugreport... $ECHO_C" >&6
4938 no_cache=0
4939 # Check whether --enable-debugreport or --disable-debugreport was given.
4940if test "${enable_debugreport+set}" = set; then
4941 enableval="$enable_debugreport"
4942
4943 if test "$enableval" = yes; then
4944 ac_cv_use_debugreport='wxUSE_DEBUGREPORT=yes'
4945 else
4946 ac_cv_use_debugreport='wxUSE_DEBUGREPORT=no'
4947 fi
4948
4949else
4950
4951 LINE=`grep "wxUSE_DEBUGREPORT" ${wx_arg_cache_file}`
4952 if test "x$LINE" != x ; then
4953 eval "DEFAULT_$LINE"
4954 else
4955 no_cache=1
4956 fi
4957
4958 ac_cv_use_debugreport='wxUSE_DEBUGREPORT='$DEFAULT_wxUSE_DEBUGREPORT
4959
4960fi;
4961
4962 eval "$ac_cv_use_debugreport"
4963 if test "$no_cache" != 1; then
4964 echo $ac_cv_use_debugreport >> ${wx_arg_cache_file}.tmp
4965 fi
4966
4967 if test "$wxUSE_DEBUGREPORT" = yes; then
4968 echo "$as_me:$LINENO: result: yes" >&5
4969echo "${ECHO_T}yes" >&6
4970 else
4971 echo "$as_me:$LINENO: result: no" >&5
4972echo "${ECHO_T}no" >&6
4973 fi
4974
4975
a848cd7e
SC
4976 enablestring=
4977 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dialupman" >&5
4978echo $ECHO_N "checking for --${enablestring:-enable}-dialupman... $ECHO_C" >&6
4979 no_cache=0
4980 # Check whether --enable-dialupman or --disable-dialupman was given.
4981if test "${enable_dialupman+set}" = set; then
4982 enableval="$enable_dialupman"
4983
4984 if test "$enableval" = yes; then
4985 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes'
4986 else
4987 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no'
4988 fi
4989
4990else
4991
4992 LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}`
4993 if test "x$LINE" != x ; then
4994 eval "DEFAULT_$LINE"
4995 else
4996 no_cache=1
4997 fi
4998
4999 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER
5000
5001fi;
5002
5003 eval "$ac_cv_use_dialupman"
5004 if test "$no_cache" != 1; then
5005 echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp
5006 fi
5007
5008 if test "$wxUSE_DIALUP_MANAGER" = yes; then
5009 echo "$as_me:$LINENO: result: yes" >&5
5010echo "${ECHO_T}yes" >&6
5011 else
5012 echo "$as_me:$LINENO: result: no" >&5
5013echo "${ECHO_T}no" >&6
5014 fi
5015
5016
5017 enablestring=
5018 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynlib" >&5
5019echo $ECHO_N "checking for --${enablestring:-enable}-dynlib... $ECHO_C" >&6
5020 no_cache=0
5021 # Check whether --enable-dynlib or --disable-dynlib was given.
5022if test "${enable_dynlib+set}" = set; then
5023 enableval="$enable_dynlib"
5024
5025 if test "$enableval" = yes; then
5026 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes'
5027 else
5028 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no'
5029 fi
5030
5031else
5032
5033 LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}`
5034 if test "x$LINE" != x ; then
5035 eval "DEFAULT_$LINE"
5036 else
5037 no_cache=1
5038 fi
5039
5040 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS
5041
5042fi;
5043
5044 eval "$ac_cv_use_dynlib"
5045 if test "$no_cache" != 1; then
5046 echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp
5047 fi
5048
5049 if test "$wxUSE_DYNLIB_CLASS" = yes; then
5050 echo "$as_me:$LINENO: result: yes" >&5
5051echo "${ECHO_T}yes" >&6
5052 else
5053 echo "$as_me:$LINENO: result: no" >&5
5054echo "${ECHO_T}no" >&6
5055 fi
5056
5057
5058 enablestring=
5059 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynamicloader" >&5
5060echo $ECHO_N "checking for --${enablestring:-enable}-dynamicloader... $ECHO_C" >&6
5061 no_cache=0
5062 # Check whether --enable-dynamicloader or --disable-dynamicloader was given.
5063if test "${enable_dynamicloader+set}" = set; then
5064 enableval="$enable_dynamicloader"
5065
5066 if test "$enableval" = yes; then
5067 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=yes'
5068 else
5069 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=no'
5070 fi
5071
5072else
5073
5074 LINE=`grep "wxUSE_DYNAMIC_LOADER" ${wx_arg_cache_file}`
5075 if test "x$LINE" != x ; then
5076 eval "DEFAULT_$LINE"
5077 else
5078 no_cache=1
5079 fi
5080
5081 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER='$DEFAULT_wxUSE_DYNAMIC_LOADER
5082
5083fi;
5084
5085 eval "$ac_cv_use_dynamicloader"
5086 if test "$no_cache" != 1; then
5087 echo $ac_cv_use_dynamicloader >> ${wx_arg_cache_file}.tmp
5088 fi
5089
5090 if test "$wxUSE_DYNAMIC_LOADER" = yes; then
5091 echo "$as_me:$LINENO: result: yes" >&5
5092echo "${ECHO_T}yes" >&6
5093 else
5094 echo "$as_me:$LINENO: result: no" >&5
5095echo "${ECHO_T}no" >&6
5096 fi
5097
5098
5099 enablestring=
5100 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-exceptions" >&5
5101echo $ECHO_N "checking for --${enablestring:-enable}-exceptions... $ECHO_C" >&6
5102 no_cache=0
5103 # Check whether --enable-exceptions or --disable-exceptions was given.
5104if test "${enable_exceptions+set}" = set; then
5105 enableval="$enable_exceptions"
5106
5107 if test "$enableval" = yes; then
5108 ac_cv_use_exceptions='wxUSE_EXCEPTIONS=yes'
5109 else
5110 ac_cv_use_exceptions='wxUSE_EXCEPTIONS=no'
5111 fi
5112
5113else
5114
5115 LINE=`grep "wxUSE_EXCEPTIONS" ${wx_arg_cache_file}`
5116 if test "x$LINE" != x ; then
5117 eval "DEFAULT_$LINE"
5118 else
5119 no_cache=1
5120 fi
5121
5122 ac_cv_use_exceptions='wxUSE_EXCEPTIONS='$DEFAULT_wxUSE_EXCEPTIONS
5123
5124fi;
5125
5126 eval "$ac_cv_use_exceptions"
5127 if test "$no_cache" != 1; then
5128 echo $ac_cv_use_exceptions >> ${wx_arg_cache_file}.tmp
5129 fi
5130
5131 if test "$wxUSE_EXCEPTIONS" = yes; then
5132 echo "$as_me:$LINENO: result: yes" >&5
5133echo "${ECHO_T}yes" >&6
5134 else
5135 echo "$as_me:$LINENO: result: no" >&5
5136echo "${ECHO_T}no" >&6
5137 fi
5138
5139
5140 enablestring=
5141 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ffile" >&5
5142echo $ECHO_N "checking for --${enablestring:-enable}-ffile... $ECHO_C" >&6
5143 no_cache=0
5144 # Check whether --enable-ffile or --disable-ffile was given.
5145if test "${enable_ffile+set}" = set; then
5146 enableval="$enable_ffile"
5147
5148 if test "$enableval" = yes; then
5149 ac_cv_use_ffile='wxUSE_FFILE=yes'
5150 else
5151 ac_cv_use_ffile='wxUSE_FFILE=no'
5152 fi
5153
5154else
5155
5156 LINE=`grep "wxUSE_FFILE" ${wx_arg_cache_file}`
5157 if test "x$LINE" != x ; then
5158 eval "DEFAULT_$LINE"
5159 else
5160 no_cache=1
5161 fi
5162
5163 ac_cv_use_ffile='wxUSE_FFILE='$DEFAULT_wxUSE_FFILE
5164
5165fi;
5166
5167 eval "$ac_cv_use_ffile"
5168 if test "$no_cache" != 1; then
5169 echo $ac_cv_use_ffile >> ${wx_arg_cache_file}.tmp
5170 fi
5171
5172 if test "$wxUSE_FFILE" = yes; then
5173 echo "$as_me:$LINENO: result: yes" >&5
5174echo "${ECHO_T}yes" >&6
5175 else
5176 echo "$as_me:$LINENO: result: no" >&5
5177echo "${ECHO_T}no" >&6
5178 fi
5179
5180
5181 enablestring=
5182 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-file" >&5
5183echo $ECHO_N "checking for --${enablestring:-enable}-file... $ECHO_C" >&6
5184 no_cache=0
5185 # Check whether --enable-file or --disable-file was given.
5186if test "${enable_file+set}" = set; then
5187 enableval="$enable_file"
5188
5189 if test "$enableval" = yes; then
5190 ac_cv_use_file='wxUSE_FILE=yes'
5191 else
5192 ac_cv_use_file='wxUSE_FILE=no'
5193 fi
5194
5195else
5196
5197 LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}`
5198 if test "x$LINE" != x ; then
5199 eval "DEFAULT_$LINE"
5200 else
5201 no_cache=1
5202 fi
5203
5204 ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE
5205
5206fi;
5207
5208 eval "$ac_cv_use_file"
5209 if test "$no_cache" != 1; then
5210 echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp
5211 fi
5212
5213 if test "$wxUSE_FILE" = yes; then
5214 echo "$as_me:$LINENO: result: yes" >&5
5215echo "${ECHO_T}yes" >&6
5216 else
5217 echo "$as_me:$LINENO: result: no" >&5
5218echo "${ECHO_T}no" >&6
5219 fi
5220
5221
5222 enablestring=
5223 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filesystem" >&5
5224echo $ECHO_N "checking for --${enablestring:-enable}-filesystem... $ECHO_C" >&6
5225 no_cache=0
5226 # Check whether --enable-filesystem or --disable-filesystem was given.
5227if test "${enable_filesystem+set}" = set; then
5228 enableval="$enable_filesystem"
5229
5230 if test "$enableval" = yes; then
5231 ac_cv_use_filesystem='wxUSE_FILESYSTEM=yes'
5232 else
5233 ac_cv_use_filesystem='wxUSE_FILESYSTEM=no'
5234 fi
5235
5236else
5237
5238 LINE=`grep "wxUSE_FILESYSTEM" ${wx_arg_cache_file}`
5239 if test "x$LINE" != x ; then
5240 eval "DEFAULT_$LINE"
5241 else
5242 no_cache=1
5243 fi
5244
5245 ac_cv_use_filesystem='wxUSE_FILESYSTEM='$DEFAULT_wxUSE_FILESYSTEM
5246
5247fi;
5248
5249 eval "$ac_cv_use_filesystem"
5250 if test "$no_cache" != 1; then
5251 echo $ac_cv_use_filesystem >> ${wx_arg_cache_file}.tmp
5252 fi
5253
5254 if test "$wxUSE_FILESYSTEM" = yes; then
5255 echo "$as_me:$LINENO: result: yes" >&5
5256echo "${ECHO_T}yes" >&6
5257 else
5258 echo "$as_me:$LINENO: result: no" >&5
5259echo "${ECHO_T}no" >&6
5260 fi
5261
5262
5263 enablestring=
5264 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontmap" >&5
5265echo $ECHO_N "checking for --${enablestring:-enable}-fontmap... $ECHO_C" >&6
5266 no_cache=0
5267 # Check whether --enable-fontmap or --disable-fontmap was given.
5268if test "${enable_fontmap+set}" = set; then
5269 enableval="$enable_fontmap"
5270
5271 if test "$enableval" = yes; then
5272 ac_cv_use_fontmap='wxUSE_FONTMAP=yes'
5273 else
5274 ac_cv_use_fontmap='wxUSE_FONTMAP=no'
5275 fi
5276
5277else
5278
5279 LINE=`grep "wxUSE_FONTMAP" ${wx_arg_cache_file}`
5280 if test "x$LINE" != x ; then
5281 eval "DEFAULT_$LINE"
5282 else
5283 no_cache=1
5284 fi
5285
5286 ac_cv_use_fontmap='wxUSE_FONTMAP='$DEFAULT_wxUSE_FONTMAP
5287
5288fi;
5289
5290 eval "$ac_cv_use_fontmap"
5291 if test "$no_cache" != 1; then
5292 echo $ac_cv_use_fontmap >> ${wx_arg_cache_file}.tmp
5293 fi
5294
5295 if test "$wxUSE_FONTMAP" = yes; then
5296 echo "$as_me:$LINENO: result: yes" >&5
5297echo "${ECHO_T}yes" >&6
5298 else
5299 echo "$as_me:$LINENO: result: no" >&5
5300echo "${ECHO_T}no" >&6
5301 fi
5302
5303
5304 enablestring=
5305 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_inet" >&5
5306echo $ECHO_N "checking for --${enablestring:-enable}-fs_inet... $ECHO_C" >&6
5307 no_cache=0
5308 # Check whether --enable-fs_inet or --disable-fs_inet was given.
5309if test "${enable_fs_inet+set}" = set; then
5310 enableval="$enable_fs_inet"
5311
5312 if test "$enableval" = yes; then
5313 ac_cv_use_fs_inet='wxUSE_FS_INET=yes'
5314 else
5315 ac_cv_use_fs_inet='wxUSE_FS_INET=no'
5316 fi
5317
5318else
5319
5320 LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}`
5321 if test "x$LINE" != x ; then
5322 eval "DEFAULT_$LINE"
5323 else
5324 no_cache=1
5325 fi
5326
5327 ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET
5328
5329fi;
5330
5331 eval "$ac_cv_use_fs_inet"
5332 if test "$no_cache" != 1; then
5333 echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp
5334 fi
5335
5336 if test "$wxUSE_FS_INET" = yes; then
5337 echo "$as_me:$LINENO: result: yes" >&5
5338echo "${ECHO_T}yes" >&6
5339 else
5340 echo "$as_me:$LINENO: result: no" >&5
5341echo "${ECHO_T}no" >&6
5342 fi
5343
5344
5345 enablestring=
5346 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_zip" >&5
5347echo $ECHO_N "checking for --${enablestring:-enable}-fs_zip... $ECHO_C" >&6
5348 no_cache=0
5349 # Check whether --enable-fs_zip or --disable-fs_zip was given.
5350if test "${enable_fs_zip+set}" = set; then
5351 enableval="$enable_fs_zip"
5352
5353 if test "$enableval" = yes; then
5354 ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes'
5355 else
5356 ac_cv_use_fs_zip='wxUSE_FS_ZIP=no'
5357 fi
5358
5359else
5360
5361 LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}`
5362 if test "x$LINE" != x ; then
5363 eval "DEFAULT_$LINE"
5364 else
5365 no_cache=1
5366 fi
5367
5368 ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP
5369
5370fi;
5371
5372 eval "$ac_cv_use_fs_zip"
5373 if test "$no_cache" != 1; then
5374 echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp
5375 fi
5376
5377 if test "$wxUSE_FS_ZIP" = yes; then
5378 echo "$as_me:$LINENO: result: yes" >&5
5379echo "${ECHO_T}yes" >&6
5380 else
5381 echo "$as_me:$LINENO: result: no" >&5
5382echo "${ECHO_T}no" >&6
5383 fi
5384
5385
5386 enablestring=
5387 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-geometry" >&5
5388echo $ECHO_N "checking for --${enablestring:-enable}-geometry... $ECHO_C" >&6
5389 no_cache=0
5390 # Check whether --enable-geometry or --disable-geometry was given.
5391if test "${enable_geometry+set}" = set; then
5392 enableval="$enable_geometry"
5393
5394 if test "$enableval" = yes; then
5395 ac_cv_use_geometry='wxUSE_GEOMETRY=yes'
5396 else
5397 ac_cv_use_geometry='wxUSE_GEOMETRY=no'
5398 fi
5399
5400else
5401
5402 LINE=`grep "wxUSE_GEOMETRY" ${wx_arg_cache_file}`
5403 if test "x$LINE" != x ; then
5404 eval "DEFAULT_$LINE"
5405 else
5406 no_cache=1
5407 fi
5408
5409 ac_cv_use_geometry='wxUSE_GEOMETRY='$DEFAULT_wxUSE_GEOMETRY
5410
5411fi;
5412
5413 eval "$ac_cv_use_geometry"
5414 if test "$no_cache" != 1; then
5415 echo $ac_cv_use_geometry >> ${wx_arg_cache_file}.tmp
5416 fi
5417
5418 if test "$wxUSE_GEOMETRY" = yes; then
5419 echo "$as_me:$LINENO: result: yes" >&5
5420echo "${ECHO_T}yes" >&6
5421 else
5422 echo "$as_me:$LINENO: result: no" >&5
5423echo "${ECHO_T}no" >&6
5424 fi
5425
5426
5427 enablestring=
5428 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-log" >&5
5429echo $ECHO_N "checking for --${enablestring:-enable}-log... $ECHO_C" >&6
5430 no_cache=0
5431 # Check whether --enable-log or --disable-log was given.
5432if test "${enable_log+set}" = set; then
5433 enableval="$enable_log"
5434
5435 if test "$enableval" = yes; then
5436 ac_cv_use_log='wxUSE_LOG=yes'
5437 else
5438 ac_cv_use_log='wxUSE_LOG=no'
5439 fi
5440
5441else
5442
5443 LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}`
5444 if test "x$LINE" != x ; then
5445 eval "DEFAULT_$LINE"
5446 else
5447 no_cache=1
5448 fi
5449
5450 ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG
5451
5452fi;
5453
5454 eval "$ac_cv_use_log"
5455 if test "$no_cache" != 1; then
5456 echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp
5457 fi
5458
5459 if test "$wxUSE_LOG" = yes; then
5460 echo "$as_me:$LINENO: result: yes" >&5
5461echo "${ECHO_T}yes" >&6
5462 else
5463 echo "$as_me:$LINENO: result: no" >&5
5464echo "${ECHO_T}no" >&6
5465 fi
5466
5467
5468 enablestring=
5469 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-longlong" >&5
5470echo $ECHO_N "checking for --${enablestring:-enable}-longlong... $ECHO_C" >&6
5471 no_cache=0
5472 # Check whether --enable-longlong or --disable-longlong was given.
5473if test "${enable_longlong+set}" = set; then
5474 enableval="$enable_longlong"
5475
5476 if test "$enableval" = yes; then
5477 ac_cv_use_longlong='wxUSE_LONGLONG=yes'
5478 else
5479 ac_cv_use_longlong='wxUSE_LONGLONG=no'
5480 fi
5481
5482else
5483
5484 LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}`
5485 if test "x$LINE" != x ; then
5486 eval "DEFAULT_$LINE"
5487 else
5488 no_cache=1
5489 fi
5490
5491 ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG
5492
5493fi;
5494
5495 eval "$ac_cv_use_longlong"
5496 if test "$no_cache" != 1; then
5497 echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp
5498 fi
5499
5500 if test "$wxUSE_LONGLONG" = yes; then
5501 echo "$as_me:$LINENO: result: yes" >&5
5502echo "${ECHO_T}yes" >&6
5503 else
5504 echo "$as_me:$LINENO: result: no" >&5
5505echo "${ECHO_T}no" >&6
5506 fi
5507
5508
5509 enablestring=
5510 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mimetype" >&5
5511echo $ECHO_N "checking for --${enablestring:-enable}-mimetype... $ECHO_C" >&6
5512 no_cache=0
5513 # Check whether --enable-mimetype or --disable-mimetype was given.
5514if test "${enable_mimetype+set}" = set; then
5515 enableval="$enable_mimetype"
5516
5517 if test "$enableval" = yes; then
5518 ac_cv_use_mimetype='wxUSE_MIMETYPE=yes'
5519 else
5520 ac_cv_use_mimetype='wxUSE_MIMETYPE=no'
5521 fi
5522
5523else
5524
5525 LINE=`grep "wxUSE_MIMETYPE" ${wx_arg_cache_file}`
5526 if test "x$LINE" != x ; then
5527 eval "DEFAULT_$LINE"
5528 else
5529 no_cache=1
5530 fi
5531
5532 ac_cv_use_mimetype='wxUSE_MIMETYPE='$DEFAULT_wxUSE_MIMETYPE
5533
5534fi;
5535
5536 eval "$ac_cv_use_mimetype"
5537 if test "$no_cache" != 1; then
5538 echo $ac_cv_use_mimetype >> ${wx_arg_cache_file}.tmp
5539 fi
5540
5541 if test "$wxUSE_MIMETYPE" = yes; then
5542 echo "$as_me:$LINENO: result: yes" >&5
5543echo "${ECHO_T}yes" >&6
5544 else
5545 echo "$as_me:$LINENO: result: no" >&5
5546echo "${ECHO_T}no" >&6
5547 fi
5548
5549
5550 enablestring=
5551 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mslu" >&5
5552echo $ECHO_N "checking for --${enablestring:-enable}-mslu... $ECHO_C" >&6
5553 no_cache=0
5554 # Check whether --enable-mslu or --disable-mslu was given.
5555if test "${enable_mslu+set}" = set; then
5556 enableval="$enable_mslu"
5557
5558 if test "$enableval" = yes; then
5559 ac_cv_use_mslu='wxUSE_UNICODE_MSLU=yes'
5560 else
5561 ac_cv_use_mslu='wxUSE_UNICODE_MSLU=no'
5562 fi
5563
5564else
5565
5566 LINE=`grep "wxUSE_UNICODE_MSLU" ${wx_arg_cache_file}`
5567 if test "x$LINE" != x ; then
5568 eval "DEFAULT_$LINE"
5569 else
5570 no_cache=1
5571 fi
5572
5573 ac_cv_use_mslu='wxUSE_UNICODE_MSLU='$DEFAULT_wxUSE_UNICODE_MSLU
5574
5575fi;
5576
5577 eval "$ac_cv_use_mslu"
5578 if test "$no_cache" != 1; then
5579 echo $ac_cv_use_mslu >> ${wx_arg_cache_file}.tmp
5580 fi
5581
5582 if test "$wxUSE_UNICODE_MSLU" = yes; then
5583 echo "$as_me:$LINENO: result: yes" >&5
5584echo "${ECHO_T}yes" >&6
5585 else
5586 echo "$as_me:$LINENO: result: no" >&5
5587echo "${ECHO_T}no" >&6
5588 fi
5589
5590
5591 enablestring=
5592 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-snglinst" >&5
5593echo $ECHO_N "checking for --${enablestring:-enable}-snglinst... $ECHO_C" >&6
5594 no_cache=0
5595 # Check whether --enable-snglinst or --disable-snglinst was given.
5596if test "${enable_snglinst+set}" = set; then
5597 enableval="$enable_snglinst"
5598
5599 if test "$enableval" = yes; then
5600 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes'
5601 else
5602 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no'
5603 fi
5604
5605else
5606
5607 LINE=`grep "wxUSE_SNGLINST_CHECKER" ${wx_arg_cache_file}`
5608 if test "x$LINE" != x ; then
5609 eval "DEFAULT_$LINE"
5610 else
5611 no_cache=1
5612 fi
5613
5614 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER='$DEFAULT_wxUSE_SNGLINST_CHECKER
5615
5616fi;
5617
5618 eval "$ac_cv_use_snglinst"
5619 if test "$no_cache" != 1; then
5620 echo $ac_cv_use_snglinst >> ${wx_arg_cache_file}.tmp
5621 fi
5622
5623 if test "$wxUSE_SNGLINST_CHECKER" = yes; then
5624 echo "$as_me:$LINENO: result: yes" >&5
5625echo "${ECHO_T}yes" >&6
5626 else
5627 echo "$as_me:$LINENO: result: no" >&5
5628echo "${ECHO_T}no" >&6
5629 fi
5630
5631
5632 enablestring=
07158944
VZ
5633 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-std_iostreams" >&5
5634echo $ECHO_N "checking for --${enablestring:-enable}-std_iostreams... $ECHO_C" >&6
a848cd7e 5635 no_cache=0
07158944
VZ
5636 # Check whether --enable-std_iostreams or --disable-std_iostreams was given.
5637if test "${enable_std_iostreams+set}" = set; then
5638 enableval="$enable_std_iostreams"
a848cd7e
SC
5639
5640 if test "$enableval" = yes; then
07158944 5641 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes'
a848cd7e 5642 else
07158944 5643 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no'
a848cd7e
SC
5644 fi
5645
5646else
5647
07158944 5648 LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}`
a848cd7e
SC
5649 if test "x$LINE" != x ; then
5650 eval "DEFAULT_$LINE"
5651 else
5652 no_cache=1
5653 fi
5654
07158944 5655 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM
a848cd7e
SC
5656
5657fi;
5658
07158944 5659 eval "$ac_cv_use_std_iostreams"
a848cd7e 5660 if test "$no_cache" != 1; then
07158944 5661 echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
5662 fi
5663
07158944 5664 if test "$wxUSE_STD_IOSTREAM" = yes; then
a848cd7e
SC
5665 echo "$as_me:$LINENO: result: yes" >&5
5666echo "${ECHO_T}yes" >&6
5667 else
5668 echo "$as_me:$LINENO: result: no" >&5
5669echo "${ECHO_T}no" >&6
5670 fi
5671
5672
59746b65
MW
5673 enablestring=
5674 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-std_string" >&5
5675echo $ECHO_N "checking for --${enablestring:-enable}-std_string... $ECHO_C" >&6
5676 no_cache=0
5677 # Check whether --enable-std_string or --disable-std_string was given.
5678if test "${enable_std_string+set}" = set; then
5679 enableval="$enable_std_string"
5680
5681 if test "$enableval" = yes; then
5682 ac_cv_use_std_string='wxUSE_STD_STRING=yes'
5683 else
5684 ac_cv_use_std_string='wxUSE_STD_STRING=no'
5685 fi
5686
5687else
5688
5689 LINE=`grep "wxUSE_STD_STRING" ${wx_arg_cache_file}`
5690 if test "x$LINE" != x ; then
5691 eval "DEFAULT_$LINE"
5692 else
5693 no_cache=1
5694 fi
5695
5696 ac_cv_use_std_string='wxUSE_STD_STRING='$DEFAULT_wxUSE_STD_STRING
5697
5698fi;
5699
5700 eval "$ac_cv_use_std_string"
5701 if test "$no_cache" != 1; then
5702 echo $ac_cv_use_std_string >> ${wx_arg_cache_file}.tmp
5703 fi
5704
5705 if test "$wxUSE_STD_STRING" = yes; then
5706 echo "$as_me:$LINENO: result: yes" >&5
5707echo "${ECHO_T}yes" >&6
5708 else
5709 echo "$as_me:$LINENO: result: no" >&5
5710echo "${ECHO_T}no" >&6
5711 fi
5712
5713
a848cd7e 5714 enablestring=
07158944
VZ
5715 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stdpaths" >&5
5716echo $ECHO_N "checking for --${enablestring:-enable}-stdpaths... $ECHO_C" >&6
a848cd7e 5717 no_cache=0
07158944
VZ
5718 # Check whether --enable-stdpaths or --disable-stdpaths was given.
5719if test "${enable_stdpaths+set}" = set; then
5720 enableval="$enable_stdpaths"
a848cd7e
SC
5721
5722 if test "$enableval" = yes; then
07158944 5723 ac_cv_use_stdpaths='wxUSE_STDPATHS=yes'
a848cd7e 5724 else
07158944 5725 ac_cv_use_stdpaths='wxUSE_STDPATHS=no'
a848cd7e
SC
5726 fi
5727
5728else
5729
07158944 5730 LINE=`grep "wxUSE_STDPATHS" ${wx_arg_cache_file}`
a848cd7e
SC
5731 if test "x$LINE" != x ; then
5732 eval "DEFAULT_$LINE"
5733 else
5734 no_cache=1
5735 fi
5736
07158944 5737 ac_cv_use_stdpaths='wxUSE_STDPATHS='$DEFAULT_wxUSE_STDPATHS
a848cd7e
SC
5738
5739fi;
5740
07158944 5741 eval "$ac_cv_use_stdpaths"
a848cd7e 5742 if test "$no_cache" != 1; then
07158944 5743 echo $ac_cv_use_stdpaths >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
5744 fi
5745
07158944 5746 if test "$wxUSE_STDPATHS" = yes; then
a848cd7e
SC
5747 echo "$as_me:$LINENO: result: yes" >&5
5748echo "${ECHO_T}yes" >&6
5749 else
5750 echo "$as_me:$LINENO: result: no" >&5
5751echo "${ECHO_T}no" >&6
5752 fi
5753
5754
5755 enablestring=
5756 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stopwatch" >&5
5757echo $ECHO_N "checking for --${enablestring:-enable}-stopwatch... $ECHO_C" >&6
5758 no_cache=0
5759 # Check whether --enable-stopwatch or --disable-stopwatch was given.
5760if test "${enable_stopwatch+set}" = set; then
5761 enableval="$enable_stopwatch"
5762
5763 if test "$enableval" = yes; then
5764 ac_cv_use_stopwatch='wxUSE_STOPWATCH=yes'
5765 else
5766 ac_cv_use_stopwatch='wxUSE_STOPWATCH=no'
5767 fi
5768
5769else
5770
5771 LINE=`grep "wxUSE_STOPWATCH" ${wx_arg_cache_file}`
5772 if test "x$LINE" != x ; then
5773 eval "DEFAULT_$LINE"
5774 else
5775 no_cache=1
5776 fi
5777
5778 ac_cv_use_stopwatch='wxUSE_STOPWATCH='$DEFAULT_wxUSE_STOPWATCH
5779
5780fi;
5781
5782 eval "$ac_cv_use_stopwatch"
5783 if test "$no_cache" != 1; then
5784 echo $ac_cv_use_stopwatch >> ${wx_arg_cache_file}.tmp
5785 fi
5786
5787 if test "$wxUSE_STOPWATCH" = yes; then
5788 echo "$as_me:$LINENO: result: yes" >&5
5789echo "${ECHO_T}yes" >&6
5790 else
5791 echo "$as_me:$LINENO: result: no" >&5
5792echo "${ECHO_T}no" >&6
5793 fi
5794
5795
07158944
VZ
5796 enablestring=
5797 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-streams" >&5
5798echo $ECHO_N "checking for --${enablestring:-enable}-streams... $ECHO_C" >&6
5799 no_cache=0
5800 # Check whether --enable-streams or --disable-streams was given.
5801if test "${enable_streams+set}" = set; then
5802 enableval="$enable_streams"
5803
5804 if test "$enableval" = yes; then
5805 ac_cv_use_streams='wxUSE_STREAMS=yes'
5806 else
5807 ac_cv_use_streams='wxUSE_STREAMS=no'
5808 fi
5809
5810else
5811
5812 LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}`
5813 if test "x$LINE" != x ; then
5814 eval "DEFAULT_$LINE"
5815 else
5816 no_cache=1
5817 fi
5818
5819 ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS
5820
5821fi;
5822
5823 eval "$ac_cv_use_streams"
5824 if test "$no_cache" != 1; then
5825 echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp
5826 fi
5827
5828 if test "$wxUSE_STREAMS" = yes; then
5829 echo "$as_me:$LINENO: result: yes" >&5
5830echo "${ECHO_T}yes" >&6
5831 else
5832 echo "$as_me:$LINENO: result: no" >&5
5833echo "${ECHO_T}no" >&6
5834 fi
5835
5836
a848cd7e
SC
5837 enablestring=
5838 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-system_options" >&5
5839echo $ECHO_N "checking for --${enablestring:-enable}-system_options... $ECHO_C" >&6
5840 no_cache=0
5841 # Check whether --enable-system_options or --disable-system_options was given.
5842if test "${enable_system_options+set}" = set; then
5843 enableval="$enable_system_options"
5844
5845 if test "$enableval" = yes; then
5846 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=yes'
5847 else
5848 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=no'
5849 fi
5850
5851else
5852
5853 LINE=`grep "wxUSE_SYSTEM_OPTIONS" ${wx_arg_cache_file}`
5854 if test "x$LINE" != x ; then
5855 eval "DEFAULT_$LINE"
5856 else
5857 no_cache=1
5858 fi
5859
5860 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS='$DEFAULT_wxUSE_SYSTEM_OPTIONS
5861
5862fi;
5863
5864 eval "$ac_cv_use_system_options"
5865 if test "$no_cache" != 1; then
5866 echo $ac_cv_use_system_options >> ${wx_arg_cache_file}.tmp
5867 fi
5868
5869 if test "$wxUSE_SYSTEM_OPTIONS" = yes; then
5870 echo "$as_me:$LINENO: result: yes" >&5
5871echo "${ECHO_T}yes" >&6
5872 else
5873 echo "$as_me:$LINENO: result: no" >&5
5874echo "${ECHO_T}no" >&6
5875 fi
5876
5877
5878 enablestring=
5879 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textbuf" >&5
5880echo $ECHO_N "checking for --${enablestring:-enable}-textbuf... $ECHO_C" >&6
5881 no_cache=0
5882 # Check whether --enable-textbuf or --disable-textbuf was given.
5883if test "${enable_textbuf+set}" = set; then
5884 enableval="$enable_textbuf"
5885
5886 if test "$enableval" = yes; then
5887 ac_cv_use_textbuf='wxUSE_TEXTBUFFER=yes'
5888 else
5889 ac_cv_use_textbuf='wxUSE_TEXTBUFFER=no'
5890 fi
5891
5892else
5893
5894 LINE=`grep "wxUSE_TEXTBUFFER" ${wx_arg_cache_file}`
5895 if test "x$LINE" != x ; then
5896 eval "DEFAULT_$LINE"
5897 else
5898 no_cache=1
5899 fi
5900
5901 ac_cv_use_textbuf='wxUSE_TEXTBUFFER='$DEFAULT_wxUSE_TEXTBUFFER
5902
5903fi;
5904
5905 eval "$ac_cv_use_textbuf"
5906 if test "$no_cache" != 1; then
5907 echo $ac_cv_use_textbuf >> ${wx_arg_cache_file}.tmp
5908 fi
5909
5910 if test "$wxUSE_TEXTBUFFER" = yes; then
5911 echo "$as_me:$LINENO: result: yes" >&5
5912echo "${ECHO_T}yes" >&6
5913 else
5914 echo "$as_me:$LINENO: result: no" >&5
5915echo "${ECHO_T}no" >&6
5916 fi
5917
5918
5919 enablestring=
5920 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textfile" >&5
5921echo $ECHO_N "checking for --${enablestring:-enable}-textfile... $ECHO_C" >&6
5922 no_cache=0
5923 # Check whether --enable-textfile or --disable-textfile was given.
5924if test "${enable_textfile+set}" = set; then
5925 enableval="$enable_textfile"
5926
5927 if test "$enableval" = yes; then
5928 ac_cv_use_textfile='wxUSE_TEXTFILE=yes'
5929 else
5930 ac_cv_use_textfile='wxUSE_TEXTFILE=no'
5931 fi
5932
5933else
5934
5935 LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}`
5936 if test "x$LINE" != x ; then
5937 eval "DEFAULT_$LINE"
5938 else
5939 no_cache=1
5940 fi
5941
5942 ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE
5943
5944fi;
5945
5946 eval "$ac_cv_use_textfile"
5947 if test "$no_cache" != 1; then
5948 echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp
5949 fi
5950
5951 if test "$wxUSE_TEXTFILE" = yes; then
5952 echo "$as_me:$LINENO: result: yes" >&5
5953echo "${ECHO_T}yes" >&6
5954 else
5955 echo "$as_me:$LINENO: result: no" >&5
5956echo "${ECHO_T}no" >&6
5957 fi
5958
5959
5960 enablestring=
5961 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-timer" >&5
5962echo $ECHO_N "checking for --${enablestring:-enable}-timer... $ECHO_C" >&6
5963 no_cache=0
5964 # Check whether --enable-timer or --disable-timer was given.
5965if test "${enable_timer+set}" = set; then
5966 enableval="$enable_timer"
5967
5968 if test "$enableval" = yes; then
5969 ac_cv_use_timer='wxUSE_TIMER=yes'
5970 else
5971 ac_cv_use_timer='wxUSE_TIMER=no'
5972 fi
5973
5974else
5975
5976 LINE=`grep "wxUSE_TIMER" ${wx_arg_cache_file}`
5977 if test "x$LINE" != x ; then
5978 eval "DEFAULT_$LINE"
5979 else
5980 no_cache=1
5981 fi
5982
5983 ac_cv_use_timer='wxUSE_TIMER='$DEFAULT_wxUSE_TIMER
5984
5985fi;
5986
5987 eval "$ac_cv_use_timer"
5988 if test "$no_cache" != 1; then
5989 echo $ac_cv_use_timer >> ${wx_arg_cache_file}.tmp
5990 fi
5991
5992 if test "$wxUSE_TIMER" = yes; then
5993 echo "$as_me:$LINENO: result: yes" >&5
5994echo "${ECHO_T}yes" >&6
5995 else
5996 echo "$as_me:$LINENO: result: no" >&5
5997echo "${ECHO_T}no" >&6
5998 fi
5999
6000
6001 enablestring=
6002 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-unicode" >&5
6003echo $ECHO_N "checking for --${enablestring:-enable}-unicode... $ECHO_C" >&6
6004 no_cache=0
6005 # Check whether --enable-unicode or --disable-unicode was given.
6006if test "${enable_unicode+set}" = set; then
6007 enableval="$enable_unicode"
6008
6009 if test "$enableval" = yes; then
6010 ac_cv_use_unicode='wxUSE_UNICODE=yes'
6011 else
6012 ac_cv_use_unicode='wxUSE_UNICODE=no'
6013 fi
6014
6015else
6016
6017 LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}`
6018 if test "x$LINE" != x ; then
6019 eval "DEFAULT_$LINE"
6020 else
6021 no_cache=1
6022 fi
6023
6024 ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE
6025
6026fi;
6027
6028 eval "$ac_cv_use_unicode"
6029 if test "$no_cache" != 1; then
6030 echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp
6031 fi
6032
6033 if test "$wxUSE_UNICODE" = yes; then
6034 echo "$as_me:$LINENO: result: yes" >&5
6035echo "${ECHO_T}yes" >&6
6036 else
6037 echo "$as_me:$LINENO: result: no" >&5
6038echo "${ECHO_T}no" >&6
6039 fi
6040
6041
6042 enablestring=
6043 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sound" >&5
6044echo $ECHO_N "checking for --${enablestring:-enable}-sound... $ECHO_C" >&6
6045 no_cache=0
6046 # Check whether --enable-sound or --disable-sound was given.
6047if test "${enable_sound+set}" = set; then
6048 enableval="$enable_sound"
6049
6050 if test "$enableval" = yes; then
6051 ac_cv_use_sound='wxUSE_SOUND=yes'
6052 else
6053 ac_cv_use_sound='wxUSE_SOUND=no'
6054 fi
6055
6056else
6057
6058 LINE=`grep "wxUSE_SOUND" ${wx_arg_cache_file}`
6059 if test "x$LINE" != x ; then
6060 eval "DEFAULT_$LINE"
6061 else
6062 no_cache=1
6063 fi
6064
6065 ac_cv_use_sound='wxUSE_SOUND='$DEFAULT_wxUSE_SOUND
6066
6067fi;
6068
6069 eval "$ac_cv_use_sound"
6070 if test "$no_cache" != 1; then
6071 echo $ac_cv_use_sound >> ${wx_arg_cache_file}.tmp
6072 fi
6073
6074 if test "$wxUSE_SOUND" = yes; then
6075 echo "$as_me:$LINENO: result: yes" >&5
6076echo "${ECHO_T}yes" >&6
6077 else
6078 echo "$as_me:$LINENO: result: no" >&5
6079echo "${ECHO_T}no" >&6
6080 fi
6081
6082
3b57de8b
RL
6083 enablestring=
6084 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mediactrl" >&5
6085echo $ECHO_N "checking for --${enablestring:-enable}-mediactrl... $ECHO_C" >&6
6086 no_cache=0
6087 # Check whether --enable-mediactrl or --disable-mediactrl was given.
6088if test "${enable_mediactrl+set}" = set; then
6089 enableval="$enable_mediactrl"
6090
6091 if test "$enableval" = yes; then
6092 ac_cv_use_mediactrl='wxUSE_MEDIACTRL=yes'
6093 else
6094 ac_cv_use_mediactrl='wxUSE_MEDIACTRL=no'
6095 fi
6096
6097else
6098
6099 LINE=`grep "wxUSE_MEDIACTRL" ${wx_arg_cache_file}`
6100 if test "x$LINE" != x ; then
6101 eval "DEFAULT_$LINE"
6102 else
6103 no_cache=1
6104 fi
6105
6106 ac_cv_use_mediactrl='wxUSE_MEDIACTRL='$DEFAULT_wxUSE_MEDIACTRL
6107
6108fi;
6109
6110 eval "$ac_cv_use_mediactrl"
6111 if test "$no_cache" != 1; then
6112 echo $ac_cv_use_mediactrl >> ${wx_arg_cache_file}.tmp
6113 fi
6114
6115 if test "$wxUSE_MEDIACTRL" = yes; then
6116 echo "$as_me:$LINENO: result: yes" >&5
6117echo "${ECHO_T}yes" >&6
6118 else
6119 echo "$as_me:$LINENO: result: no" >&5
6120echo "${ECHO_T}no" >&6
6121 fi
6122
6123
a848cd7e
SC
6124 enablestring=
6125 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wxprintfv" >&5
6126echo $ECHO_N "checking for --${enablestring:-enable}-wxprintfv... $ECHO_C" >&6
6127 no_cache=0
6128 # Check whether --enable-wxprintfv or --disable-wxprintfv was given.
6129if test "${enable_wxprintfv+set}" = set; then
6130 enableval="$enable_wxprintfv"
6131
6132 if test "$enableval" = yes; then
6133 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=yes'
6134 else
6135 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=no'
6136 fi
6137
6138else
6139
6140 LINE=`grep "wxUSE_EXPERIMENTAL_PRINTF" ${wx_arg_cache_file}`
6141 if test "x$LINE" != x ; then
6142 eval "DEFAULT_$LINE"
6143 else
6144 no_cache=1
6145 fi
6146
6147 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF='$DEFAULT_wxUSE_EXPERIMENTAL_PRINTF
6148
6149fi;
6150
6151 eval "$ac_cv_use_wxprintfv"
6152 if test "$no_cache" != 1; then
6153 echo $ac_cv_use_wxprintfv >> ${wx_arg_cache_file}.tmp
6154 fi
6155
6156 if test "$wxUSE_EXPERIMENTAL_PRINTF" = yes; then
6157 echo "$as_me:$LINENO: result: yes" >&5
6158echo "${ECHO_T}yes" >&6
6159 else
6160 echo "$as_me:$LINENO: result: no" >&5
6161echo "${ECHO_T}no" >&6
6162 fi
6163
6164
6165 enablestring=
6166 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-zipstream" >&5
6167echo $ECHO_N "checking for --${enablestring:-enable}-zipstream... $ECHO_C" >&6
6168 no_cache=0
6169 # Check whether --enable-zipstream or --disable-zipstream was given.
6170if test "${enable_zipstream+set}" = set; then
6171 enableval="$enable_zipstream"
6172
6173 if test "$enableval" = yes; then
6174 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes'
6175 else
6176 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no'
6177 fi
6178
6179else
6180
6181 LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}`
6182 if test "x$LINE" != x ; then
6183 eval "DEFAULT_$LINE"
6184 else
6185 no_cache=1
6186 fi
6187
6188 ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM
6189
6190fi;
6191
6192 eval "$ac_cv_use_zipstream"
6193 if test "$no_cache" != 1; then
6194 echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp
6195 fi
6196
6197 if test "$wxUSE_ZIPSTREAM" = yes; then
6198 echo "$as_me:$LINENO: result: yes" >&5
6199echo "${ECHO_T}yes" >&6
6200 else
6201 echo "$as_me:$LINENO: result: no" >&5
6202echo "${ECHO_T}no" >&6
6203 fi
6204
6205
a848cd7e
SC
6206
6207 enablestring=
6208 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-url" >&5
6209echo $ECHO_N "checking for --${enablestring:-enable}-url... $ECHO_C" >&6
6210 no_cache=0
6211 # Check whether --enable-url or --disable-url was given.
6212if test "${enable_url+set}" = set; then
6213 enableval="$enable_url"
6214
6215 if test "$enableval" = yes; then
6216 ac_cv_use_url='wxUSE_URL=yes'
6217 else
6218 ac_cv_use_url='wxUSE_URL=no'
6219 fi
6220
6221else
6222
6223 LINE=`grep "wxUSE_URL" ${wx_arg_cache_file}`
6224 if test "x$LINE" != x ; then
6225 eval "DEFAULT_$LINE"
6226 else
6227 no_cache=1
6228 fi
6229
6230 ac_cv_use_url='wxUSE_URL='$DEFAULT_wxUSE_URL
6231
6232fi;
6233
6234 eval "$ac_cv_use_url"
6235 if test "$no_cache" != 1; then
6236 echo $ac_cv_use_url >> ${wx_arg_cache_file}.tmp
6237 fi
6238
6239 if test "$wxUSE_URL" = yes; then
6240 echo "$as_me:$LINENO: result: yes" >&5
6241echo "${ECHO_T}yes" >&6
6242 else
6243 echo "$as_me:$LINENO: result: no" >&5
6244echo "${ECHO_T}no" >&6
6245 fi
6246
6247
6248 enablestring=
6249 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol" >&5
6250echo $ECHO_N "checking for --${enablestring:-enable}-protocol... $ECHO_C" >&6
6251 no_cache=0
6252 # Check whether --enable-protocol or --disable-protocol was given.
6253if test "${enable_protocol+set}" = set; then
6254 enableval="$enable_protocol"
6255
6256 if test "$enableval" = yes; then
6257 ac_cv_use_protocol='wxUSE_PROTOCOL=yes'
6258 else
6259 ac_cv_use_protocol='wxUSE_PROTOCOL=no'
6260 fi
6261
6262else
6263
6264 LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
6265 if test "x$LINE" != x ; then
6266 eval "DEFAULT_$LINE"
6267 else
6268 no_cache=1
6269 fi
6270
6271 ac_cv_use_protocol='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
6272
6273fi;
6274
6275 eval "$ac_cv_use_protocol"
6276 if test "$no_cache" != 1; then
6277 echo $ac_cv_use_protocol >> ${wx_arg_cache_file}.tmp
6278 fi
6279
6280 if test "$wxUSE_PROTOCOL" = yes; then
6281 echo "$as_me:$LINENO: result: yes" >&5
6282echo "${ECHO_T}yes" >&6
6283 else
6284 echo "$as_me:$LINENO: result: no" >&5
6285echo "${ECHO_T}no" >&6
6286 fi
6287
6288
6289 enablestring=
6290 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_http" >&5
6291echo $ECHO_N "checking for --${enablestring:-enable}-protocol_http... $ECHO_C" >&6
6292 no_cache=0
6293 # Check whether --enable-protocol_http or --disable-protocol_http was given.
6294if test "${enable_protocol_http+set}" = set; then
6295 enableval="$enable_protocol_http"
6296
6297 if test "$enableval" = yes; then
6298 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=yes'
6299 else
6300 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=no'
6301 fi
6302
6303else
6304
6305 LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
6306 if test "x$LINE" != x ; then
6307 eval "DEFAULT_$LINE"
6308 else
6309 no_cache=1
6310 fi
6311
6312 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
6313
6314fi;
6315
6316 eval "$ac_cv_use_protocol_http"
6317 if test "$no_cache" != 1; then
6318 echo $ac_cv_use_protocol_http >> ${wx_arg_cache_file}.tmp
6319 fi
6320
6321 if test "$wxUSE_PROTOCOL_HTTP" = yes; then
6322 echo "$as_me:$LINENO: result: yes" >&5
6323echo "${ECHO_T}yes" >&6
6324 else
6325 echo "$as_me:$LINENO: result: no" >&5
6326echo "${ECHO_T}no" >&6
6327 fi
6328
6329
6330 enablestring=
6331 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_ftp" >&5
6332echo $ECHO_N "checking for --${enablestring:-enable}-protocol_ftp... $ECHO_C" >&6
6333 no_cache=0
6334 # Check whether --enable-protocol_ftp or --disable-protocol_ftp was given.
6335if test "${enable_protocol_ftp+set}" = set; then
6336 enableval="$enable_protocol_ftp"
6337
6338 if test "$enableval" = yes; then
6339 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=yes'
6340 else
6341 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=no'
6342 fi
6343
6344else
6345
6346 LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
6347 if test "x$LINE" != x ; then
6348 eval "DEFAULT_$LINE"
6349 else
6350 no_cache=1
6351 fi
6352
6353 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
6354
6355fi;
6356
6357 eval "$ac_cv_use_protocol_ftp"
6358 if test "$no_cache" != 1; then
6359 echo $ac_cv_use_protocol_ftp >> ${wx_arg_cache_file}.tmp
6360 fi
6361
6362 if test "$wxUSE_PROTOCOL_FTP" = yes; then
6363 echo "$as_me:$LINENO: result: yes" >&5
6364echo "${ECHO_T}yes" >&6
6365 else
6366 echo "$as_me:$LINENO: result: no" >&5
6367echo "${ECHO_T}no" >&6
6368 fi
6369
6370
6371 enablestring=
6372 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_file" >&5
6373echo $ECHO_N "checking for --${enablestring:-enable}-protocol_file... $ECHO_C" >&6
6374 no_cache=0
6375 # Check whether --enable-protocol_file or --disable-protocol_file was given.
6376if test "${enable_protocol_file+set}" = set; then
6377 enableval="$enable_protocol_file"
6378
6379 if test "$enableval" = yes; then
6380 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=yes'
6381 else
6382 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=no'
6383 fi
6384
6385else
6386
6387 LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
6388 if test "x$LINE" != x ; then
6389 eval "DEFAULT_$LINE"
6390 else
6391 no_cache=1
6392 fi
6393
6394 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
6395
6396fi;
6397
6398 eval "$ac_cv_use_protocol_file"
6399 if test "$no_cache" != 1; then
6400 echo $ac_cv_use_protocol_file >> ${wx_arg_cache_file}.tmp
6401 fi
6402
6403 if test "$wxUSE_PROTOCOL_FILE" = yes; then
6404 echo "$as_me:$LINENO: result: yes" >&5
6405echo "${ECHO_T}yes" >&6
6406 else
6407 echo "$as_me:$LINENO: result: no" >&5
6408echo "${ECHO_T}no" >&6
6409 fi
6410
6411
6412
6413
6414
6415 enablestring=
6416 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-threads" >&5
6417echo $ECHO_N "checking for --${enablestring:-enable}-threads... $ECHO_C" >&6
6418 no_cache=0
6419 # Check whether --enable-threads or --disable-threads was given.
6420if test "${enable_threads+set}" = set; then
6421 enableval="$enable_threads"
6422
6423 if test "$enableval" = yes; then
6424 ac_cv_use_threads='wxUSE_THREADS=yes'
6425 else
6426 ac_cv_use_threads='wxUSE_THREADS=no'
6427 fi
6428
6429else
6430
6431 LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}`
6432 if test "x$LINE" != x ; then
6433 eval "DEFAULT_$LINE"
6434 else
6435 no_cache=1
6436 fi
6437
6438 ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS
6439
6440fi;
6441
6442 eval "$ac_cv_use_threads"
6443 if test "$no_cache" != 1; then
6444 echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp
6445 fi
6446
6447 if test "$wxUSE_THREADS" = yes; then
6448 echo "$as_me:$LINENO: result: yes" >&5
6449echo "${ECHO_T}yes" >&6
6450 else
6451 echo "$as_me:$LINENO: result: no" >&5
6452echo "${ECHO_T}no" >&6
6453 fi
6454
6455
6456if test "$wxUSE_GUI" = "yes"; then
6457
6458
6459
6460 enablestring=
6461 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-docview" >&5
6462echo $ECHO_N "checking for --${enablestring:-enable}-docview... $ECHO_C" >&6
6463 no_cache=0
6464 # Check whether --enable-docview or --disable-docview was given.
6465if test "${enable_docview+set}" = set; then
6466 enableval="$enable_docview"
6467
6468 if test "$enableval" = yes; then
6469 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes'
6470 else
6471 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no'
6472 fi
6473
6474else
6475
6476 LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}`
6477 if test "x$LINE" != x ; then
6478 eval "DEFAULT_$LINE"
6479 else
6480 no_cache=1
6481 fi
6482
6483 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE
6484
6485fi;
6486
6487 eval "$ac_cv_use_docview"
6488 if test "$no_cache" != 1; then
6489 echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp
6490 fi
6491
6492 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then
6493 echo "$as_me:$LINENO: result: yes" >&5
6494echo "${ECHO_T}yes" >&6
6495 else
6496 echo "$as_me:$LINENO: result: no" >&5
6497echo "${ECHO_T}no" >&6
6498 fi
6499
6500
6501 enablestring=
6502 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-help" >&5
6503echo $ECHO_N "checking for --${enablestring:-enable}-help... $ECHO_C" >&6
6504 no_cache=0
6505 # Check whether --enable-help or --disable-help was given.
6506if test "${enable_help+set}" = set; then
6507 enableval="$enable_help"
6508
6509 if test "$enableval" = yes; then
6510 ac_cv_use_help='wxUSE_HELP=yes'
6511 else
6512 ac_cv_use_help='wxUSE_HELP=no'
6513 fi
6514
6515else
6516
6517 LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}`
6518 if test "x$LINE" != x ; then
6519 eval "DEFAULT_$LINE"
6520 else
6521 no_cache=1
6522 fi
6523
6524 ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP
6525
6526fi;
6527
6528 eval "$ac_cv_use_help"
6529 if test "$no_cache" != 1; then
6530 echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp
6531 fi
6532
6533 if test "$wxUSE_HELP" = yes; then
6534 echo "$as_me:$LINENO: result: yes" >&5
6535echo "${ECHO_T}yes" >&6
6536 else
6537 echo "$as_me:$LINENO: result: no" >&5
6538echo "${ECHO_T}no" >&6
6539 fi
6540
6541
6542 enablestring=
6543 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mshtmlhelp" >&5
6544echo $ECHO_N "checking for --${enablestring:-enable}-mshtmlhelp... $ECHO_C" >&6
6545 no_cache=0
6546 # Check whether --enable-mshtmlhelp or --disable-mshtmlhelp was given.
6547if test "${enable_mshtmlhelp+set}" = set; then
6548 enableval="$enable_mshtmlhelp"
6549
6550 if test "$enableval" = yes; then
6551 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=yes'
6552 else
6553 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=no'
6554 fi
6555
6556else
6557
6558 LINE=`grep "wxUSE_MS_HTML_HELP" ${wx_arg_cache_file}`
6559 if test "x$LINE" != x ; then
6560 eval "DEFAULT_$LINE"
6561 else
6562 no_cache=1
6563 fi
6564
6565 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP='$DEFAULT_wxUSE_MS_HTML_HELP
6566
6567fi;
6568
6569 eval "$ac_cv_use_mshtmlhelp"
6570 if test "$no_cache" != 1; then
6571 echo $ac_cv_use_mshtmlhelp >> ${wx_arg_cache_file}.tmp
6572 fi
6573
6574 if test "$wxUSE_MS_HTML_HELP" = yes; then
6575 echo "$as_me:$LINENO: result: yes" >&5
6576echo "${ECHO_T}yes" >&6
6577 else
6578 echo "$as_me:$LINENO: result: no" >&5
6579echo "${ECHO_T}no" >&6
6580 fi
6581
6582
6583 enablestring=
6584 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-html" >&5
6585echo $ECHO_N "checking for --${enablestring:-enable}-html... $ECHO_C" >&6
6586 no_cache=0
6587 # Check whether --enable-html or --disable-html was given.
6588if test "${enable_html+set}" = set; then
6589 enableval="$enable_html"
6590
6591 if test "$enableval" = yes; then
6592 ac_cv_use_html='wxUSE_HTML=yes'
6593 else
6594 ac_cv_use_html='wxUSE_HTML=no'
6595 fi
6596
6597else
6598
6599 LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}`
6600 if test "x$LINE" != x ; then
6601 eval "DEFAULT_$LINE"
6602 else
6603 no_cache=1
6604 fi
6605
6606 ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML
6607
6608fi;
6609
6610 eval "$ac_cv_use_html"
6611 if test "$no_cache" != 1; then
6612 echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp
6613 fi
6614
6615 if test "$wxUSE_HTML" = yes; then
6616 echo "$as_me:$LINENO: result: yes" >&5
6617echo "${ECHO_T}yes" >&6
6618 else
6619 echo "$as_me:$LINENO: result: no" >&5
6620echo "${ECHO_T}no" >&6
6621 fi
6622
6623
6624 enablestring=
6625 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-htmlhelp" >&5
6626echo $ECHO_N "checking for --${enablestring:-enable}-htmlhelp... $ECHO_C" >&6
6627 no_cache=0
6628 # Check whether --enable-htmlhelp or --disable-htmlhelp was given.
6629if test "${enable_htmlhelp+set}" = set; then
6630 enableval="$enable_htmlhelp"
6631
6632 if test "$enableval" = yes; then
6633 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=yes'
6634 else
6635 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=no'
6636 fi
6637
6638else
6639
6640 LINE=`grep "wxUSE_WXHTML_HELP" ${wx_arg_cache_file}`
6641 if test "x$LINE" != x ; then
6642 eval "DEFAULT_$LINE"
6643 else
6644 no_cache=1
6645 fi
6646
6647 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP='$DEFAULT_wxUSE_WXHTML_HELP
6648
6649fi;
6650
6651 eval "$ac_cv_use_htmlhelp"
6652 if test "$no_cache" != 1; then
6653 echo $ac_cv_use_htmlhelp >> ${wx_arg_cache_file}.tmp
6654 fi
6655
6656 if test "$wxUSE_WXHTML_HELP" = yes; then
6657 echo "$as_me:$LINENO: result: yes" >&5
6658echo "${ECHO_T}yes" >&6
6659 else
6660 echo "$as_me:$LINENO: result: no" >&5
6661echo "${ECHO_T}no" >&6
6662 fi
6663
6664
9a8f0513
VS
6665 enablestring=
6666 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xrc" >&5
6667echo $ECHO_N "checking for --${enablestring:-enable}-xrc... $ECHO_C" >&6
6668 no_cache=0
6669 # Check whether --enable-xrc or --disable-xrc was given.
6670if test "${enable_xrc+set}" = set; then
6671 enableval="$enable_xrc"
6672
6673 if test "$enableval" = yes; then
6674 ac_cv_use_xrc='wxUSE_XRC=yes'
6675 else
6676 ac_cv_use_xrc='wxUSE_XRC=no'
6677 fi
6678
6679else
6680
6681 LINE=`grep "wxUSE_XRC" ${wx_arg_cache_file}`
6682 if test "x$LINE" != x ; then
6683 eval "DEFAULT_$LINE"
6684 else
6685 no_cache=1
6686 fi
6687
6688 ac_cv_use_xrc='wxUSE_XRC='$DEFAULT_wxUSE_XRC
6689
6690fi;
6691
6692 eval "$ac_cv_use_xrc"
6693 if test "$no_cache" != 1; then
6694 echo $ac_cv_use_xrc >> ${wx_arg_cache_file}.tmp
6695 fi
6696
6697 if test "$wxUSE_XRC" = yes; then
6698 echo "$as_me:$LINENO: result: yes" >&5
6699echo "${ECHO_T}yes" >&6
6700 else
6701 echo "$as_me:$LINENO: result: no" >&5
6702echo "${ECHO_T}no" >&6
6703 fi
6704
6705
a848cd7e
SC
6706 enablestring=
6707 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-constraints" >&5
6708echo $ECHO_N "checking for --${enablestring:-enable}-constraints... $ECHO_C" >&6
6709 no_cache=0
6710 # Check whether --enable-constraints or --disable-constraints was given.
6711if test "${enable_constraints+set}" = set; then
6712 enableval="$enable_constraints"
6713
6714 if test "$enableval" = yes; then
6715 ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes'
6716 else
6717 ac_cv_use_constraints='wxUSE_CONSTRAINTS=no'
6718 fi
6719
6720else
6721
6722 LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}`
6723 if test "x$LINE" != x ; then
6724 eval "DEFAULT_$LINE"
6725 else
6726 no_cache=1
6727 fi
6728
6729 ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS
6730
6731fi;
6732
6733 eval "$ac_cv_use_constraints"
6734 if test "$no_cache" != 1; then
6735 echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp
6736 fi
6737
6738 if test "$wxUSE_CONSTRAINTS" = yes; then
6739 echo "$as_me:$LINENO: result: yes" >&5
6740echo "${ECHO_T}yes" >&6
6741 else
6742 echo "$as_me:$LINENO: result: no" >&5
6743echo "${ECHO_T}no" >&6
6744 fi
6745
6746
6747 enablestring=
6748 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-printarch" >&5
6749echo $ECHO_N "checking for --${enablestring:-enable}-printarch... $ECHO_C" >&6
6750 no_cache=0
6751 # Check whether --enable-printarch or --disable-printarch was given.
6752if test "${enable_printarch+set}" = set; then
6753 enableval="$enable_printarch"
6754
6755 if test "$enableval" = yes; then
6756 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes'
6757 else
6758 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no'
6759 fi
6760
6761else
6762
6763 LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}`
6764 if test "x$LINE" != x ; then
6765 eval "DEFAULT_$LINE"
6766 else
6767 no_cache=1
6768 fi
6769
6770 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE
6771
6772fi;
6773
6774 eval "$ac_cv_use_printarch"
6775 if test "$no_cache" != 1; then
6776 echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp
6777 fi
6778
6779 if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then
6780 echo "$as_me:$LINENO: result: yes" >&5
6781echo "${ECHO_T}yes" >&6
6782 else
6783 echo "$as_me:$LINENO: result: no" >&5
6784echo "${ECHO_T}no" >&6
6785 fi
6786
6787
6788 enablestring=
6789 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdi" >&5
6790echo $ECHO_N "checking for --${enablestring:-enable}-mdi... $ECHO_C" >&6
6791 no_cache=0
6792 # Check whether --enable-mdi or --disable-mdi was given.
6793if test "${enable_mdi+set}" = set; then
6794 enableval="$enable_mdi"
6795
6796 if test "$enableval" = yes; then
8a7b1113 6797 ac_cv_use_mdi='wxUSE_MDI=yes'
a848cd7e 6798 else
8a7b1113 6799 ac_cv_use_mdi='wxUSE_MDI=no'
a848cd7e
SC
6800 fi
6801
6802else
6803
8a7b1113 6804 LINE=`grep "wxUSE_MDI" ${wx_arg_cache_file}`
a848cd7e
SC
6805 if test "x$LINE" != x ; then
6806 eval "DEFAULT_$LINE"
6807 else
6808 no_cache=1
6809 fi
6810
8a7b1113 6811 ac_cv_use_mdi='wxUSE_MDI='$DEFAULT_wxUSE_MDI
a848cd7e
SC
6812
6813fi;
6814
6815 eval "$ac_cv_use_mdi"
6816 if test "$no_cache" != 1; then
6817 echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp
6818 fi
6819
8a7b1113
VZ
6820 if test "$wxUSE_MDI" = yes; then
6821 echo "$as_me:$LINENO: result: yes" >&5
6822echo "${ECHO_T}yes" >&6
6823 else
6824 echo "$as_me:$LINENO: result: no" >&5
6825echo "${ECHO_T}no" >&6
6826 fi
6827
6828
6829 enablestring=
6830 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdidoc" >&5
6831echo $ECHO_N "checking for --${enablestring:-enable}-mdidoc... $ECHO_C" >&6
6832 no_cache=0
6833 # Check whether --enable-mdidoc or --disable-mdidoc was given.
6834if test "${enable_mdidoc+set}" = set; then
6835 enableval="$enable_mdidoc"
6836
6837 if test "$enableval" = yes; then
6838 ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=yes'
6839 else
6840 ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=no'
6841 fi
6842
6843else
6844
6845 LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}`
6846 if test "x$LINE" != x ; then
6847 eval "DEFAULT_$LINE"
6848 else
6849 no_cache=1
6850 fi
6851
6852 ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE
6853
6854fi;
6855
6856 eval "$ac_cv_use_mdidoc"
6857 if test "$no_cache" != 1; then
6858 echo $ac_cv_use_mdidoc >> ${wx_arg_cache_file}.tmp
6859 fi
6860
a848cd7e
SC
6861 if test "$wxUSE_MDI_ARCHITECTURE" = yes; then
6862 echo "$as_me:$LINENO: result: yes" >&5
6863echo "${ECHO_T}yes" >&6
6864 else
6865 echo "$as_me:$LINENO: result: no" >&5
6866echo "${ECHO_T}no" >&6
6867 fi
6868
6869
6870 enablestring=
6871 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-loggui" >&5
6872echo $ECHO_N "checking for --${enablestring:-enable}-loggui... $ECHO_C" >&6
6873 no_cache=0
6874 # Check whether --enable-loggui or --disable-loggui was given.
6875if test "${enable_loggui+set}" = set; then
6876 enableval="$enable_loggui"
6877
6878 if test "$enableval" = yes; then
6879 ac_cv_use_loggui='wxUSE_LOGGUI=yes'
6880 else
6881 ac_cv_use_loggui='wxUSE_LOGGUI=no'
6882 fi
6883
6884else
6885
6886 LINE=`grep "wxUSE_LOGGUI" ${wx_arg_cache_file}`
6887 if test "x$LINE" != x ; then
6888 eval "DEFAULT_$LINE"
6889 else
6890 no_cache=1
6891 fi
6892
6893 ac_cv_use_loggui='wxUSE_LOGGUI='$DEFAULT_wxUSE_LOGGUI
6894
6895fi;
6896
6897 eval "$ac_cv_use_loggui"
6898 if test "$no_cache" != 1; then
6899 echo $ac_cv_use_loggui >> ${wx_arg_cache_file}.tmp
6900 fi
6901
6902 if test "$wxUSE_LOGGUI" = yes; then
6903 echo "$as_me:$LINENO: result: yes" >&5
6904echo "${ECHO_T}yes" >&6
6905 else
6906 echo "$as_me:$LINENO: result: no" >&5
6907echo "${ECHO_T}no" >&6
6908 fi
6909
6910
6911 enablestring=
6912 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logwin" >&5
6913echo $ECHO_N "checking for --${enablestring:-enable}-logwin... $ECHO_C" >&6
6914 no_cache=0
6915 # Check whether --enable-logwin or --disable-logwin was given.
6916if test "${enable_logwin+set}" = set; then
6917 enableval="$enable_logwin"
6918
6919 if test "$enableval" = yes; then
6920 ac_cv_use_logwin='wxUSE_LOGWINDOW=yes'
6921 else
6922 ac_cv_use_logwin='wxUSE_LOGWINDOW=no'
6923 fi
6924
6925else
6926
6927 LINE=`grep "wxUSE_LOGWINDOW" ${wx_arg_cache_file}`
6928 if test "x$LINE" != x ; then
6929 eval "DEFAULT_$LINE"
6930 else
6931 no_cache=1
6932 fi
6933
6934 ac_cv_use_logwin='wxUSE_LOGWINDOW='$DEFAULT_wxUSE_LOGWINDOW
6935
6936fi;
6937
6938 eval "$ac_cv_use_logwin"
6939 if test "$no_cache" != 1; then
6940 echo $ac_cv_use_logwin >> ${wx_arg_cache_file}.tmp
6941 fi
6942
6943 if test "$wxUSE_LOGWINDOW" = yes; then
6944 echo "$as_me:$LINENO: result: yes" >&5
6945echo "${ECHO_T}yes" >&6
6946 else
6947 echo "$as_me:$LINENO: result: no" >&5
6948echo "${ECHO_T}no" >&6
6949 fi
6950
6951
6952 enablestring=
6953 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logdialog" >&5
6954echo $ECHO_N "checking for --${enablestring:-enable}-logdialog... $ECHO_C" >&6
6955 no_cache=0
6956 # Check whether --enable-logdialog or --disable-logdialog was given.
6957if test "${enable_logdialog+set}" = set; then
6958 enableval="$enable_logdialog"
6959
6960 if test "$enableval" = yes; then
6961 ac_cv_use_logdialog='wxUSE_LOGDIALOG=yes'
6962 else
6963 ac_cv_use_logdialog='wxUSE_LOGDIALOG=no'
6964 fi
6965
6966else
6967
6968 LINE=`grep "wxUSE_LOGDIALOG" ${wx_arg_cache_file}`
6969 if test "x$LINE" != x ; then
6970 eval "DEFAULT_$LINE"
6971 else
6972 no_cache=1
6973 fi
6974
6975 ac_cv_use_logdialog='wxUSE_LOGDIALOG='$DEFAULT_wxUSE_LOGDIALOG
6976
6977fi;
6978
6979 eval "$ac_cv_use_logdialog"
6980 if test "$no_cache" != 1; then
6981 echo $ac_cv_use_logdialog >> ${wx_arg_cache_file}.tmp
6982 fi
6983
6984 if test "$wxUSE_LOGDIALOG" = yes; then
6985 echo "$as_me:$LINENO: result: yes" >&5
6986echo "${ECHO_T}yes" >&6
6987 else
6988 echo "$as_me:$LINENO: result: no" >&5
6989echo "${ECHO_T}no" >&6
6990 fi
6991
6992
646b6ec1
VS
6993 enablestring=
6994 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-webkit" >&5
6995echo $ECHO_N "checking for --${enablestring:-enable}-webkit... $ECHO_C" >&6
6996 no_cache=0
6997 # Check whether --enable-webkit or --disable-webkit was given.
6998if test "${enable_webkit+set}" = set; then
6999 enableval="$enable_webkit"
7000
7001 if test "$enableval" = yes; then
7002 ac_cv_use_webkit='wxUSE_WEBKIT=yes'
7003 else
7004 ac_cv_use_webkit='wxUSE_WEBKIT=no'
7005 fi
7006
7007else
7008
7009 LINE=`grep "wxUSE_WEBKIT" ${wx_arg_cache_file}`
7010 if test "x$LINE" != x ; then
7011 eval "DEFAULT_$LINE"
7012 else
7013 no_cache=1
7014 fi
7015
7016 ac_cv_use_webkit='wxUSE_WEBKIT='$DEFAULT_wxUSE_WEBKIT
7017
7018fi;
7019
7020 eval "$ac_cv_use_webkit"
7021 if test "$no_cache" != 1; then
7022 echo $ac_cv_use_webkit >> ${wx_arg_cache_file}.tmp
7023 fi
7024
7025 if test "$wxUSE_WEBKIT" = yes; then
7026 echo "$as_me:$LINENO: result: yes" >&5
7027echo "${ECHO_T}yes" >&6
7028 else
7029 echo "$as_me:$LINENO: result: no" >&5
7030echo "${ECHO_T}no" >&6
7031 fi
7032
7033
a848cd7e
SC
7034
7035 enablestring=
7036 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-postscript" >&5
7037echo $ECHO_N "checking for --${enablestring:-enable}-postscript... $ECHO_C" >&6
7038 no_cache=0
7039 # Check whether --enable-postscript or --disable-postscript was given.
7040if test "${enable_postscript+set}" = set; then
7041 enableval="$enable_postscript"
7042
7043 if test "$enableval" = yes; then
7044 ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes'
7045 else
7046 ac_cv_use_postscript='wxUSE_POSTSCRIPT=no'
7047 fi
7048
7049else
7050
7051 LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}`
7052 if test "x$LINE" != x ; then
7053 eval "DEFAULT_$LINE"
7054 else
7055 no_cache=1
7056 fi
7057
7058 ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT
7059
7060fi;
7061
7062 eval "$ac_cv_use_postscript"
7063 if test "$no_cache" != 1; then
7064 echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp
7065 fi
7066
7067 if test "$wxUSE_POSTSCRIPT" = yes; then
7068 echo "$as_me:$LINENO: result: yes" >&5
7069echo "${ECHO_T}yes" >&6
7070 else
7071 echo "$as_me:$LINENO: result: no" >&5
7072echo "${ECHO_T}no" >&6
7073 fi
7074
7075
7076
7077
7078
7079 enablestring=
7080 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-prologio" >&5
7081echo $ECHO_N "checking for --${enablestring:-enable}-prologio... $ECHO_C" >&6
7082 no_cache=0
7083 # Check whether --enable-prologio or --disable-prologio was given.
7084if test "${enable_prologio+set}" = set; then
7085 enableval="$enable_prologio"
7086
7087 if test "$enableval" = yes; then
7088 ac_cv_use_prologio='wxUSE_PROLOGIO=yes'
7089 else
7090 ac_cv_use_prologio='wxUSE_PROLOGIO=no'
7091 fi
7092
7093else
7094
7095 LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}`
7096 if test "x$LINE" != x ; then
7097 eval "DEFAULT_$LINE"
7098 else
7099 no_cache=1
7100 fi
7101
7102 ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO
7103
7104fi;
7105
7106 eval "$ac_cv_use_prologio"
7107 if test "$no_cache" != 1; then
7108 echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp
7109 fi
7110
7111 if test "$wxUSE_PROLOGIO" = yes; then
7112 echo "$as_me:$LINENO: result: yes" >&5
7113echo "${ECHO_T}yes" >&6
7114 else
7115 echo "$as_me:$LINENO: result: no" >&5
7116echo "${ECHO_T}no" >&6
7117 fi
7118
7119
7120 enablestring=
7121 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-resources" >&5
7122echo $ECHO_N "checking for --${enablestring:-enable}-resources... $ECHO_C" >&6
7123 no_cache=0
7124 # Check whether --enable-resources or --disable-resources was given.
7125if test "${enable_resources+set}" = set; then
7126 enableval="$enable_resources"
7127
7128 if test "$enableval" = yes; then
7129 ac_cv_use_resources='wxUSE_RESOURCES=yes'
7130 else
7131 ac_cv_use_resources='wxUSE_RESOURCES=no'
7132 fi
7133
7134else
7135
7136 LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}`
7137 if test "x$LINE" != x ; then
7138 eval "DEFAULT_$LINE"
7139 else
7140 no_cache=1
7141 fi
7142
7143 ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES
7144
7145fi;
7146
7147 eval "$ac_cv_use_resources"
7148 if test "$no_cache" != 1; then
7149 echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp
7150 fi
7151
7152 if test "$wxUSE_RESOURCES" = yes; then
7153 echo "$as_me:$LINENO: result: yes" >&5
7154echo "${ECHO_T}yes" >&6
7155 else
7156 echo "$as_me:$LINENO: result: no" >&5
7157echo "${ECHO_T}no" >&6
7158 fi
7159
7160
7161
7162
7163 enablestring=
7164 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-clipboard" >&5
7165echo $ECHO_N "checking for --${enablestring:-enable}-clipboard... $ECHO_C" >&6
7166 no_cache=0
7167 # Check whether --enable-clipboard or --disable-clipboard was given.
7168if test "${enable_clipboard+set}" = set; then
7169 enableval="$enable_clipboard"
7170
7171 if test "$enableval" = yes; then
7172 ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes'
7173 else
7174 ac_cv_use_clipboard='wxUSE_CLIPBOARD=no'
7175 fi
7176
7177else
7178
7179 LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}`
7180 if test "x$LINE" != x ; then
7181 eval "DEFAULT_$LINE"
7182 else
7183 no_cache=1
7184 fi
7185
7186 ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD
7187
7188fi;
7189
7190 eval "$ac_cv_use_clipboard"
7191 if test "$no_cache" != 1; then
7192 echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp
7193 fi
7194
7195 if test "$wxUSE_CLIPBOARD" = yes; then
7196 echo "$as_me:$LINENO: result: yes" >&5
7197echo "${ECHO_T}yes" >&6
7198 else
7199 echo "$as_me:$LINENO: result: no" >&5
7200echo "${ECHO_T}no" >&6
7201 fi
7202
7203
7204 enablestring=
7205 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dnd" >&5
7206echo $ECHO_N "checking for --${enablestring:-enable}-dnd... $ECHO_C" >&6
7207 no_cache=0
7208 # Check whether --enable-dnd or --disable-dnd was given.
7209if test "${enable_dnd+set}" = set; then
7210 enableval="$enable_dnd"
7211
7212 if test "$enableval" = yes; then
7213 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes'
7214 else
7215 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no'
7216 fi
7217
7218else
7219
7220 LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}`
7221 if test "x$LINE" != x ; then
7222 eval "DEFAULT_$LINE"
7223 else
7224 no_cache=1
7225 fi
7226
7227 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP
7228
7229fi;
7230
7231 eval "$ac_cv_use_dnd"
7232 if test "$no_cache" != 1; then
7233 echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp
7234 fi
7235
7236 if test "$wxUSE_DRAG_AND_DROP" = yes; then
7237 echo "$as_me:$LINENO: result: yes" >&5
7238echo "${ECHO_T}yes" >&6
7239 else
7240 echo "$as_me:$LINENO: result: no" >&5
7241echo "${ECHO_T}no" >&6
7242 fi
7243
7244
7245 enablestring=
7246 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5
7247echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6
7248 no_cache=0
7249 # Check whether --enable-metafile or --disable-metafile was given.
7250if test "${enable_metafile+set}" = set; then
7251 enableval="$enable_metafile"
7252
7253 if test "$enableval" = yes; then
7254 ac_cv_use_metafile='wxUSE_METAFILE=yes'
7255 else
7256 ac_cv_use_metafile='wxUSE_METAFILE=no'
7257 fi
7258
7259else
7260
7261 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
7262 if test "x$LINE" != x ; then
7263 eval "DEFAULT_$LINE"
7264 else
7265 no_cache=1
7266 fi
7267
7268 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
7269
7270fi;
7271
7272 eval "$ac_cv_use_metafile"
7273 if test "$no_cache" != 1; then
7274 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
7275 fi
7276
7277 if test "$wxUSE_METAFILE" = yes; then
7278 echo "$as_me:$LINENO: result: yes" >&5
7279echo "${ECHO_T}yes" >&6
7280 else
7281 echo "$as_me:$LINENO: result: no" >&5
7282echo "${ECHO_T}no" >&6
7283 fi
7284
7285
7286
7287
7288
7289 enablestring=
7290 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-controls" >&5
7291echo $ECHO_N "checking for --${enablestring:-enable}-controls... $ECHO_C" >&6
7292 no_cache=0
7293 # Check whether --enable-controls or --disable-controls was given.
7294if test "${enable_controls+set}" = set; then
7295 enableval="$enable_controls"
7296
7297 if test "$enableval" = yes; then
7298 ac_cv_use_controls='wxUSE_CONTROLS=yes'
7299 else
7300 ac_cv_use_controls='wxUSE_CONTROLS=no'
7301 fi
7302
7303else
7304
7305 LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}`
7306 if test "x$LINE" != x ; then
7307 eval "DEFAULT_$LINE"
7308 else
7309 no_cache=1
7310 fi
7311
7312 ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS
7313
7314fi;
7315
7316 eval "$ac_cv_use_controls"
7317 if test "$no_cache" != 1; then
7318 echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp
7319 fi
7320
7321 if test "$wxUSE_CONTROLS" = yes; then
7322 echo "$as_me:$LINENO: result: yes" >&5
7323echo "${ECHO_T}yes" >&6
7324 else
7325 echo "$as_me:$LINENO: result: no" >&5
7326echo "${ECHO_T}no" >&6
7327 fi
7328
7329
7330if test "$wxUSE_CONTROLS" = "yes"; then
7331 DEFAULT_wxUSE_ACCEL=yes
7332 DEFAULT_wxUSE_BMPBUTTON=yes
7333 DEFAULT_wxUSE_BUTTON=yes
da98e9be 7334 DEFAULT_wxUSE_CALCTRL=yes
a848cd7e
SC
7335 DEFAULT_wxUSE_CARET=yes
7336 DEFAULT_wxUSE_COMBOBOX=yes
7337 DEFAULT_wxUSE_CHECKBOX=yes
7338 DEFAULT_wxUSE_CHECKLISTBOX=yes
7339 DEFAULT_wxUSE_CHOICE=yes
92bbdbcd 7340 DEFAULT_wxUSE_CHOICEBOOK=yes
da98e9be 7341 DEFAULT_wxUSE_DATEPICKCTRL=yes
a848cd7e
SC
7342 DEFAULT_wxUSE_GAUGE=yes
7343 DEFAULT_wxUSE_GRID=yes
7344 DEFAULT_wxUSE_IMAGLIST=yes
7345 DEFAULT_wxUSE_LISTBOOK=yes
7346 DEFAULT_wxUSE_LISTBOX=yes
7347 DEFAULT_wxUSE_LISTCTRL=yes
7348 DEFAULT_wxUSE_NOTEBOOK=yes
7349 DEFAULT_wxUSE_RADIOBOX=yes
7350 DEFAULT_wxUSE_RADIOBTN=yes
7351 DEFAULT_wxUSE_SASH=yes
7352 DEFAULT_wxUSE_SCROLLBAR=yes
7353 DEFAULT_wxUSE_SLIDER=yes
7354 DEFAULT_wxUSE_SPINBTN=yes
7355 DEFAULT_wxUSE_SPINCTRL=yes
7356 DEFAULT_wxUSE_SPLITTER=yes
7357 DEFAULT_wxUSE_STATBMP=yes
7358 DEFAULT_wxUSE_STATBOX=yes
7359 DEFAULT_wxUSE_STATLINE=yes
7360 DEFAULT_wxUSE_STATUSBAR=yes
7361 DEFAULT_wxUSE_TAB_DIALOG=yes
7362 DEFAULT_wxUSE_TOGGLEBTN=yes
7363 DEFAULT_wxUSE_TOOLBAR=yes
7364 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
7365 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
7366 DEFAULT_wxUSE_TOOLTIPS=yes
7367 DEFAULT_wxUSE_TREECTRL=yes
7368 DEFAULT_wxUSE_POPUPWIN=yes
7369 DEFAULT_wxUSE_TIPWINDOW=yes
7370elif test "$wxUSE_CONTROLS" = "no"; then
7371 DEFAULT_wxUSE_ACCEL=no
7372 DEFAULT_wxUSE_BMPBUTTON=no
7373 DEFAULT_wxUSE_BUTTON=no
7374 DEFAULT_wxUSE_CALCTRL=no
7375 DEFAULT_wxUSE_CARET=no
7376 DEFAULT_wxUSE_COMBOBOX=no
7377 DEFAULT_wxUSE_CHECKBOX=no
7378 DEFAULT_wxUSE_CHECKLISTBOX=no
7379 DEFAULT_wxUSE_CHOICE=no
92bbdbcd 7380 DEFAULT_wxUSE_CHOICEBOOK=no
da98e9be 7381 DEFAULT_wxUSE_DATEPICKCTRL=no
a848cd7e
SC
7382 DEFAULT_wxUSE_GAUGE=no
7383 DEFAULT_wxUSE_GRID=no
7384 DEFAULT_wxUSE_IMAGLIST=no
7385 DEFAULT_wxUSE_LISTBOOK=no
7386 DEFAULT_wxUSE_LISTBOX=no
7387 DEFAULT_wxUSE_LISTCTRL=no
7388 DEFAULT_wxUSE_NOTEBOOK=no
7389 DEFAULT_wxUSE_RADIOBOX=no
7390 DEFAULT_wxUSE_RADIOBTN=no
7391 DEFAULT_wxUSE_SASH=no
7392 DEFAULT_wxUSE_SCROLLBAR=no
7393 DEFAULT_wxUSE_SLIDER=no
7394 DEFAULT_wxUSE_SPINBTN=no
7395 DEFAULT_wxUSE_SPINCTRL=no
7396 DEFAULT_wxUSE_SPLITTER=no
7397 DEFAULT_wxUSE_STATBMP=no
7398 DEFAULT_wxUSE_STATBOX=no
7399 DEFAULT_wxUSE_STATLINE=no
7400 DEFAULT_wxUSE_STATUSBAR=no
7401 DEFAULT_wxUSE_TAB_DIALOG=no
7402 DEFAULT_wxUSE_TOGGLEBTN=no
7403 DEFAULT_wxUSE_TOOLBAR=no
7404 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
7405 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
7406 DEFAULT_wxUSE_TOOLTIPS=no
7407 DEFAULT_wxUSE_TREECTRL=no
7408 DEFAULT_wxUSE_POPUPWIN=no
7409 DEFAULT_wxUSE_TIPWINDOW=no
7410fi
7411
a848cd7e
SC
7412
7413 enablestring=
7414 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accel" >&5
7415echo $ECHO_N "checking for --${enablestring:-enable}-accel... $ECHO_C" >&6
7416 no_cache=0
7417 # Check whether --enable-accel or --disable-accel was given.
7418if test "${enable_accel+set}" = set; then
7419 enableval="$enable_accel"
7420
7421 if test "$enableval" = yes; then
7422 ac_cv_use_accel='wxUSE_ACCEL=yes'
7423 else
7424 ac_cv_use_accel='wxUSE_ACCEL=no'
7425 fi
7426
7427else
7428
7429 LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}`
7430 if test "x$LINE" != x ; then
7431 eval "DEFAULT_$LINE"
7432 else
7433 no_cache=1
7434 fi
7435
7436 ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL
7437
7438fi;
7439
7440 eval "$ac_cv_use_accel"
7441 if test "$no_cache" != 1; then
7442 echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp
7443 fi
7444
7445 if test "$wxUSE_ACCEL" = yes; then
7446 echo "$as_me:$LINENO: result: yes" >&5
7447echo "${ECHO_T}yes" >&6
7448 else
7449 echo "$as_me:$LINENO: result: no" >&5
7450echo "${ECHO_T}no" >&6
7451 fi
7452
7453
7454 enablestring=
7455 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-button" >&5
7456echo $ECHO_N "checking for --${enablestring:-enable}-button... $ECHO_C" >&6
7457 no_cache=0
7458 # Check whether --enable-button or --disable-button was given.
7459if test "${enable_button+set}" = set; then
7460 enableval="$enable_button"
7461
7462 if test "$enableval" = yes; then
7463 ac_cv_use_button='wxUSE_BUTTON=yes'
7464 else
7465 ac_cv_use_button='wxUSE_BUTTON=no'
7466 fi
7467
7468else
7469
7470 LINE=`grep "wxUSE_BUTTON" ${wx_arg_cache_file}`
7471 if test "x$LINE" != x ; then
7472 eval "DEFAULT_$LINE"
7473 else
7474 no_cache=1
7475 fi
7476
7477 ac_cv_use_button='wxUSE_BUTTON='$DEFAULT_wxUSE_BUTTON
7478
7479fi;
7480
7481 eval "$ac_cv_use_button"
7482 if test "$no_cache" != 1; then
7483 echo $ac_cv_use_button >> ${wx_arg_cache_file}.tmp
7484 fi
7485
7486 if test "$wxUSE_BUTTON" = yes; then
7487 echo "$as_me:$LINENO: result: yes" >&5
7488echo "${ECHO_T}yes" >&6
7489 else
7490 echo "$as_me:$LINENO: result: no" >&5
7491echo "${ECHO_T}no" >&6
7492 fi
7493
7494
7495 enablestring=
7496 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-bmpbutton" >&5
7497echo $ECHO_N "checking for --${enablestring:-enable}-bmpbutton... $ECHO_C" >&6
7498 no_cache=0
7499 # Check whether --enable-bmpbutton or --disable-bmpbutton was given.
7500if test "${enable_bmpbutton+set}" = set; then
7501 enableval="$enable_bmpbutton"
7502
7503 if test "$enableval" = yes; then
7504 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes'
7505 else
7506 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no'
7507 fi
7508
7509else
7510
7511 LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}`
7512 if test "x$LINE" != x ; then
7513 eval "DEFAULT_$LINE"
7514 else
7515 no_cache=1
7516 fi
7517
7518 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON
7519
7520fi;
7521
7522 eval "$ac_cv_use_bmpbutton"
7523 if test "$no_cache" != 1; then
7524 echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp
7525 fi
7526
7527 if test "$wxUSE_BMPBUTTON" = yes; then
7528 echo "$as_me:$LINENO: result: yes" >&5
7529echo "${ECHO_T}yes" >&6
7530 else
7531 echo "$as_me:$LINENO: result: no" >&5
7532echo "${ECHO_T}no" >&6
7533 fi
7534
7535
7536 enablestring=
7537 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-calendar" >&5
7538echo $ECHO_N "checking for --${enablestring:-enable}-calendar... $ECHO_C" >&6
7539 no_cache=0
7540 # Check whether --enable-calendar or --disable-calendar was given.
7541if test "${enable_calendar+set}" = set; then
7542 enableval="$enable_calendar"
7543
7544 if test "$enableval" = yes; then
7545 ac_cv_use_calendar='wxUSE_CALCTRL=yes'
7546 else
7547 ac_cv_use_calendar='wxUSE_CALCTRL=no'
7548 fi
7549
7550else
7551
7552 LINE=`grep "wxUSE_CALCTRL" ${wx_arg_cache_file}`
7553 if test "x$LINE" != x ; then
7554 eval "DEFAULT_$LINE"
7555 else
7556 no_cache=1
7557 fi
7558
7559 ac_cv_use_calendar='wxUSE_CALCTRL='$DEFAULT_wxUSE_CALCTRL
7560
7561fi;
7562
7563 eval "$ac_cv_use_calendar"
7564 if test "$no_cache" != 1; then
7565 echo $ac_cv_use_calendar >> ${wx_arg_cache_file}.tmp
7566 fi
7567
7568 if test "$wxUSE_CALCTRL" = yes; then
7569 echo "$as_me:$LINENO: result: yes" >&5
7570echo "${ECHO_T}yes" >&6
7571 else
7572 echo "$as_me:$LINENO: result: no" >&5
7573echo "${ECHO_T}no" >&6
7574 fi
7575
7576
7577 enablestring=
7578 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-caret" >&5
7579echo $ECHO_N "checking for --${enablestring:-enable}-caret... $ECHO_C" >&6
7580 no_cache=0
7581 # Check whether --enable-caret or --disable-caret was given.
7582if test "${enable_caret+set}" = set; then
7583 enableval="$enable_caret"
7584
7585 if test "$enableval" = yes; then
7586 ac_cv_use_caret='wxUSE_CARET=yes'
7587 else
7588 ac_cv_use_caret='wxUSE_CARET=no'
7589 fi
7590
7591else
7592
7593 LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}`
7594 if test "x$LINE" != x ; then
7595 eval "DEFAULT_$LINE"
7596 else
7597 no_cache=1
7598 fi
7599
7600 ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET
7601
7602fi;
7603
7604 eval "$ac_cv_use_caret"
7605 if test "$no_cache" != 1; then
7606 echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp
7607 fi
7608
7609 if test "$wxUSE_CARET" = yes; then
7610 echo "$as_me:$LINENO: result: yes" >&5
7611echo "${ECHO_T}yes" >&6
7612 else
7613 echo "$as_me:$LINENO: result: no" >&5
7614echo "${ECHO_T}no" >&6
7615 fi
7616
7617
7618 enablestring=
7619 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checkbox" >&5
7620echo $ECHO_N "checking for --${enablestring:-enable}-checkbox... $ECHO_C" >&6
7621 no_cache=0
7622 # Check whether --enable-checkbox or --disable-checkbox was given.
7623if test "${enable_checkbox+set}" = set; then
7624 enableval="$enable_checkbox"
7625
7626 if test "$enableval" = yes; then
7627 ac_cv_use_checkbox='wxUSE_CHECKBOX=yes'
7628 else
7629 ac_cv_use_checkbox='wxUSE_CHECKBOX=no'
7630 fi
7631
7632else
7633
7634 LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}`
7635 if test "x$LINE" != x ; then
7636 eval "DEFAULT_$LINE"
7637 else
7638 no_cache=1
7639 fi
7640
7641 ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX
7642
7643fi;
7644
7645 eval "$ac_cv_use_checkbox"
7646 if test "$no_cache" != 1; then
7647 echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp
7648 fi
7649
7650 if test "$wxUSE_CHECKBOX" = yes; then
7651 echo "$as_me:$LINENO: result: yes" >&5
7652echo "${ECHO_T}yes" >&6
7653 else
7654 echo "$as_me:$LINENO: result: no" >&5
7655echo "${ECHO_T}no" >&6
7656 fi
7657
7658
7659 enablestring=
7660 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checklst" >&5
7661echo $ECHO_N "checking for --${enablestring:-enable}-checklst... $ECHO_C" >&6
7662 no_cache=0
7663 # Check whether --enable-checklst or --disable-checklst was given.
7664if test "${enable_checklst+set}" = set; then
7665 enableval="$enable_checklst"
7666
7667 if test "$enableval" = yes; then
7668 ac_cv_use_checklst='wxUSE_CHECKLST=yes'
7669 else
7670 ac_cv_use_checklst='wxUSE_CHECKLST=no'
7671 fi
7672
7673else
7674
7675 LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}`
7676 if test "x$LINE" != x ; then
7677 eval "DEFAULT_$LINE"
7678 else
7679 no_cache=1
7680 fi
7681
7682 ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST
7683
7684fi;
7685
7686 eval "$ac_cv_use_checklst"
7687 if test "$no_cache" != 1; then
7688 echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp
7689 fi
7690
7691 if test "$wxUSE_CHECKLST" = yes; then
7692 echo "$as_me:$LINENO: result: yes" >&5
7693echo "${ECHO_T}yes" >&6
7694 else
7695 echo "$as_me:$LINENO: result: no" >&5
7696echo "${ECHO_T}no" >&6
7697 fi
7698
7699
7700 enablestring=
7701 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choice" >&5
7702echo $ECHO_N "checking for --${enablestring:-enable}-choice... $ECHO_C" >&6
7703 no_cache=0
7704 # Check whether --enable-choice or --disable-choice was given.
7705if test "${enable_choice+set}" = set; then
7706 enableval="$enable_choice"
7707
7708 if test "$enableval" = yes; then
7709 ac_cv_use_choice='wxUSE_CHOICE=yes'
7710 else
7711 ac_cv_use_choice='wxUSE_CHOICE=no'
7712 fi
7713
7714else
7715
7716 LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}`
7717 if test "x$LINE" != x ; then
7718 eval "DEFAULT_$LINE"
7719 else
7720 no_cache=1
7721 fi
7722
7723 ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE
7724
7725fi;
7726
7727 eval "$ac_cv_use_choice"
7728 if test "$no_cache" != 1; then
7729 echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp
7730 fi
7731
7732 if test "$wxUSE_CHOICE" = yes; then
7733 echo "$as_me:$LINENO: result: yes" >&5
7734echo "${ECHO_T}yes" >&6
7735 else
7736 echo "$as_me:$LINENO: result: no" >&5
7737echo "${ECHO_T}no" >&6
7738 fi
7739
7740
92bbdbcd
WS
7741 enablestring=
7742 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicebook" >&5
7743echo $ECHO_N "checking for --${enablestring:-enable}-choicebook... $ECHO_C" >&6
7744 no_cache=0
7745 # Check whether --enable-choicebook or --disable-choicebook was given.
7746if test "${enable_choicebook+set}" = set; then
7747 enableval="$enable_choicebook"
7748
7749 if test "$enableval" = yes; then
7750 ac_cv_use_choicebook='wxUSE_CHOICEBOOK=yes'
7751 else
7752 ac_cv_use_choicebook='wxUSE_CHOICEBOOK=no'
7753 fi
7754
7755else
7756
7757 LINE=`grep "wxUSE_CHOICEBOOK" ${wx_arg_cache_file}`
7758 if test "x$LINE" != x ; then
7759 eval "DEFAULT_$LINE"
7760 else
7761 no_cache=1
7762 fi
7763
7764 ac_cv_use_choicebook='wxUSE_CHOICEBOOK='$DEFAULT_wxUSE_CHOICEBOOK
7765
7766fi;
7767
7768 eval "$ac_cv_use_choicebook"
7769 if test "$no_cache" != 1; then
7770 echo $ac_cv_use_choicebook >> ${wx_arg_cache_file}.tmp
7771 fi
7772
7773 if test "$wxUSE_CHOICEBOOK" = yes; then
7774 echo "$as_me:$LINENO: result: yes" >&5
7775echo "${ECHO_T}yes" >&6
7776 else
7777 echo "$as_me:$LINENO: result: no" >&5
7778echo "${ECHO_T}no" >&6
7779 fi
7780
7781
a848cd7e
SC
7782 enablestring=
7783 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-combobox" >&5
7784echo $ECHO_N "checking for --${enablestring:-enable}-combobox... $ECHO_C" >&6
7785 no_cache=0
7786 # Check whether --enable-combobox or --disable-combobox was given.
7787if test "${enable_combobox+set}" = set; then
7788 enableval="$enable_combobox"
7789
7790 if test "$enableval" = yes; then
7791 ac_cv_use_combobox='wxUSE_COMBOBOX=yes'
7792 else
7793 ac_cv_use_combobox='wxUSE_COMBOBOX=no'
7794 fi
7795
7796else
7797
7798 LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}`
7799 if test "x$LINE" != x ; then
7800 eval "DEFAULT_$LINE"
7801 else
7802 no_cache=1
7803 fi
7804
7805 ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX
7806
7807fi;
7808
7809 eval "$ac_cv_use_combobox"
7810 if test "$no_cache" != 1; then
7811 echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp
7812 fi
7813
7814 if test "$wxUSE_COMBOBOX" = yes; then
7815 echo "$as_me:$LINENO: result: yes" >&5
7816echo "${ECHO_T}yes" >&6
7817 else
7818 echo "$as_me:$LINENO: result: no" >&5
7819echo "${ECHO_T}no" >&6
7820 fi
7821
7822
da98e9be
VZ
7823 enablestring=
7824 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-datepick" >&5
7825echo $ECHO_N "checking for --${enablestring:-enable}-datepick... $ECHO_C" >&6
7826 no_cache=0
7827 # Check whether --enable-datepick or --disable-datepick was given.
7828if test "${enable_datepick+set}" = set; then
7829 enableval="$enable_datepick"
7830
7831 if test "$enableval" = yes; then
7832 ac_cv_use_datepick='wxUSE_DATEPICKCTRL=yes'
7833 else
7834 ac_cv_use_datepick='wxUSE_DATEPICKCTRL=no'
7835 fi
7836
7837else
7838
7839 LINE=`grep "wxUSE_DATEPICKCTRL" ${wx_arg_cache_file}`
7840 if test "x$LINE" != x ; then
7841 eval "DEFAULT_$LINE"
7842 else
7843 no_cache=1
7844 fi
7845
7846 ac_cv_use_datepick='wxUSE_DATEPICKCTRL='$DEFAULT_wxUSE_DATEPICKCTRL
7847
7848fi;
7849
7850 eval "$ac_cv_use_datepick"
7851 if test "$no_cache" != 1; then
7852 echo $ac_cv_use_datepick >> ${wx_arg_cache_file}.tmp
7853 fi
7854
7855 if test "$wxUSE_DATEPICKCTRL" = yes; then
7856 echo "$as_me:$LINENO: result: yes" >&5
7857echo "${ECHO_T}yes" >&6
7858 else
7859 echo "$as_me:$LINENO: result: no" >&5
7860echo "${ECHO_T}no" >&6
7861 fi
7862
7863
a848cd7e
SC
7864 enablestring=
7865 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-display" >&5
7866echo $ECHO_N "checking for --${enablestring:-enable}-display... $ECHO_C" >&6
7867 no_cache=0
7868 # Check whether --enable-display or --disable-display was given.
7869if test "${enable_display+set}" = set; then
7870 enableval="$enable_display"
7871
7872 if test "$enableval" = yes; then
7873 ac_cv_use_display='wxUSE_DISPLAY=yes'
7874 else
7875 ac_cv_use_display='wxUSE_DISPLAY=no'
7876 fi
7877
7878else
7879
7880 LINE=`grep "wxUSE_DISPLAY" ${wx_arg_cache_file}`
7881 if test "x$LINE" != x ; then
7882 eval "DEFAULT_$LINE"
7883 else
7884 no_cache=1
7885 fi
7886
7887 ac_cv_use_display='wxUSE_DISPLAY='$DEFAULT_wxUSE_DISPLAY
7888
7889fi;
7890
7891 eval "$ac_cv_use_display"
7892 if test "$no_cache" != 1; then
7893 echo $ac_cv_use_display >> ${wx_arg_cache_file}.tmp
7894 fi
7895
7896 if test "$wxUSE_DISPLAY" = yes; then
7897 echo "$as_me:$LINENO: result: yes" >&5
7898echo "${ECHO_T}yes" >&6
7899 else
7900 echo "$as_me:$LINENO: result: no" >&5
7901echo "${ECHO_T}no" >&6
7902 fi
7903
7904
7905 enablestring=
7906 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gauge" >&5
7907echo $ECHO_N "checking for --${enablestring:-enable}-gauge... $ECHO_C" >&6
7908 no_cache=0
7909 # Check whether --enable-gauge or --disable-gauge was given.
7910if test "${enable_gauge+set}" = set; then
7911 enableval="$enable_gauge"
7912
7913 if test "$enableval" = yes; then
7914 ac_cv_use_gauge='wxUSE_GAUGE=yes'
7915 else
7916 ac_cv_use_gauge='wxUSE_GAUGE=no'
7917 fi
7918
7919else
7920
7921 LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}`
7922 if test "x$LINE" != x ; then
7923 eval "DEFAULT_$LINE"
7924 else
7925 no_cache=1
7926 fi
7927
7928 ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE
7929
7930fi;
7931
7932 eval "$ac_cv_use_gauge"
7933 if test "$no_cache" != 1; then
7934 echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp
7935 fi
7936
7937 if test "$wxUSE_GAUGE" = yes; then
7938 echo "$as_me:$LINENO: result: yes" >&5
7939echo "${ECHO_T}yes" >&6
7940 else
7941 echo "$as_me:$LINENO: result: no" >&5
7942echo "${ECHO_T}no" >&6
7943 fi
7944
7945
7946 enablestring=
7947 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-grid" >&5
7948echo $ECHO_N "checking for --${enablestring:-enable}-grid... $ECHO_C" >&6
7949 no_cache=0
7950 # Check whether --enable-grid or --disable-grid was given.
7951if test "${enable_grid+set}" = set; then
7952 enableval="$enable_grid"
7953
7954 if test "$enableval" = yes; then
7955 ac_cv_use_grid='wxUSE_GRID=yes'
7956 else
7957 ac_cv_use_grid='wxUSE_GRID=no'
7958 fi
7959
7960else
7961
7962 LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}`
7963 if test "x$LINE" != x ; then
7964 eval "DEFAULT_$LINE"
7965 else
7966 no_cache=1
7967 fi
7968
7969 ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID
7970
7971fi;
7972
7973 eval "$ac_cv_use_grid"
7974 if test "$no_cache" != 1; then
7975 echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp
7976 fi
7977
7978 if test "$wxUSE_GRID" = yes; then
7979 echo "$as_me:$LINENO: result: yes" >&5
7980echo "${ECHO_T}yes" >&6
7981 else
7982 echo "$as_me:$LINENO: result: no" >&5
7983echo "${ECHO_T}no" >&6
7984 fi
7985
7986
7987 enablestring=
7988 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-imaglist" >&5
7989echo $ECHO_N "checking for --${enablestring:-enable}-imaglist... $ECHO_C" >&6
7990 no_cache=0
7991 # Check whether --enable-imaglist or --disable-imaglist was given.
7992if test "${enable_imaglist+set}" = set; then
7993 enableval="$enable_imaglist"
7994
7995 if test "$enableval" = yes; then
7996 ac_cv_use_imaglist='wxUSE_IMAGLIST=yes'
7997 else
7998 ac_cv_use_imaglist='wxUSE_IMAGLIST=no'
7999 fi
8000
8001else
8002
8003 LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}`
8004 if test "x$LINE" != x ; then
8005 eval "DEFAULT_$LINE"
8006 else
8007 no_cache=1
8008 fi
8009
8010 ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST
8011
8012fi;
8013
8014 eval "$ac_cv_use_imaglist"
8015 if test "$no_cache" != 1; then
8016 echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp
8017 fi
8018
8019 if test "$wxUSE_IMAGLIST" = yes; then
8020 echo "$as_me:$LINENO: result: yes" >&5
8021echo "${ECHO_T}yes" >&6
8022 else
8023 echo "$as_me:$LINENO: result: no" >&5
8024echo "${ECHO_T}no" >&6
8025 fi
8026
8027
8028 enablestring=
8029 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbook" >&5
8030echo $ECHO_N "checking for --${enablestring:-enable}-listbook... $ECHO_C" >&6
8031 no_cache=0
8032 # Check whether --enable-listbook or --disable-listbook was given.
8033if test "${enable_listbook+set}" = set; then
8034 enableval="$enable_listbook"
8035
8036 if test "$enableval" = yes; then
8037 ac_cv_use_listbook='wxUSE_LISTBOOK=yes'
8038 else
8039 ac_cv_use_listbook='wxUSE_LISTBOOK=no'
8040 fi
8041
8042else
8043
8044 LINE=`grep "wxUSE_LISTBOOK" ${wx_arg_cache_file}`
8045 if test "x$LINE" != x ; then
8046 eval "DEFAULT_$LINE"
8047 else
8048 no_cache=1
8049 fi
8050
8051 ac_cv_use_listbook='wxUSE_LISTBOOK='$DEFAULT_wxUSE_LISTBOOK
8052
8053fi;
8054
8055 eval "$ac_cv_use_listbook"
8056 if test "$no_cache" != 1; then
8057 echo $ac_cv_use_listbook >> ${wx_arg_cache_file}.tmp
8058 fi
8059
8060 if test "$wxUSE_LISTBOOK" = yes; then
8061 echo "$as_me:$LINENO: result: yes" >&5
8062echo "${ECHO_T}yes" >&6
8063 else
8064 echo "$as_me:$LINENO: result: no" >&5
8065echo "${ECHO_T}no" >&6
8066 fi
8067
8068
8069 enablestring=
8070 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbox" >&5
8071echo $ECHO_N "checking for --${enablestring:-enable}-listbox... $ECHO_C" >&6
8072 no_cache=0
8073 # Check whether --enable-listbox or --disable-listbox was given.
8074if test "${enable_listbox+set}" = set; then
8075 enableval="$enable_listbox"
8076
8077 if test "$enableval" = yes; then
8078 ac_cv_use_listbox='wxUSE_LISTBOX=yes'
8079 else
8080 ac_cv_use_listbox='wxUSE_LISTBOX=no'
8081 fi
8082
8083else
8084
8085 LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}`
8086 if test "x$LINE" != x ; then
8087 eval "DEFAULT_$LINE"
8088 else
8089 no_cache=1
8090 fi
8091
8092 ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX
8093
8094fi;
8095
8096 eval "$ac_cv_use_listbox"
8097 if test "$no_cache" != 1; then
8098 echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp
8099 fi
8100
8101 if test "$wxUSE_LISTBOX" = yes; then
8102 echo "$as_me:$LINENO: result: yes" >&5
8103echo "${ECHO_T}yes" >&6
8104 else
8105 echo "$as_me:$LINENO: result: no" >&5
8106echo "${ECHO_T}no" >&6
8107 fi
8108
8109
8110 enablestring=
8111 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listctrl" >&5
8112echo $ECHO_N "checking for --${enablestring:-enable}-listctrl... $ECHO_C" >&6
8113 no_cache=0
8114 # Check whether --enable-listctrl or --disable-listctrl was given.
8115if test "${enable_listctrl+set}" = set; then
8116 enableval="$enable_listctrl"
8117
8118 if test "$enableval" = yes; then
8119 ac_cv_use_listctrl='wxUSE_LISTCTRL=yes'
8120 else
8121 ac_cv_use_listctrl='wxUSE_LISTCTRL=no'
8122 fi
8123
8124else
8125
8126 LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}`
8127 if test "x$LINE" != x ; then
8128 eval "DEFAULT_$LINE"
8129 else
8130 no_cache=1
8131 fi
8132
8133 ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL
8134
8135fi;
8136
8137 eval "$ac_cv_use_listctrl"
8138 if test "$no_cache" != 1; then
8139 echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp
8140 fi
8141
8142 if test "$wxUSE_LISTCTRL" = yes; then
8143 echo "$as_me:$LINENO: result: yes" >&5
8144echo "${ECHO_T}yes" >&6
8145 else
8146 echo "$as_me:$LINENO: result: no" >&5
8147echo "${ECHO_T}no" >&6
8148 fi
8149
8150
8151 enablestring=
8152 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-notebook" >&5
8153echo $ECHO_N "checking for --${enablestring:-enable}-notebook... $ECHO_C" >&6
8154 no_cache=0
8155 # Check whether --enable-notebook or --disable-notebook was given.
8156if test "${enable_notebook+set}" = set; then
8157 enableval="$enable_notebook"
8158
8159 if test "$enableval" = yes; then
8160 ac_cv_use_notebook='wxUSE_NOTEBOOK=yes'
8161 else
8162 ac_cv_use_notebook='wxUSE_NOTEBOOK=no'
8163 fi
8164
8165else
8166
8167 LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}`
8168 if test "x$LINE" != x ; then
8169 eval "DEFAULT_$LINE"
8170 else
8171 no_cache=1
8172 fi
8173
8174 ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK
8175
8176fi;
8177
8178 eval "$ac_cv_use_notebook"
8179 if test "$no_cache" != 1; then
8180 echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp
8181 fi
8182
8183 if test "$wxUSE_NOTEBOOK" = yes; then
8184 echo "$as_me:$LINENO: result: yes" >&5
8185echo "${ECHO_T}yes" >&6
8186 else
8187 echo "$as_me:$LINENO: result: no" >&5
8188echo "${ECHO_T}no" >&6
8189 fi
8190
8191
8192 enablestring=
8193 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobox" >&5
8194echo $ECHO_N "checking for --${enablestring:-enable}-radiobox... $ECHO_C" >&6
8195 no_cache=0
8196 # Check whether --enable-radiobox or --disable-radiobox was given.
8197if test "${enable_radiobox+set}" = set; then
8198 enableval="$enable_radiobox"
8199
8200 if test "$enableval" = yes; then
8201 ac_cv_use_radiobox='wxUSE_RADIOBOX=yes'
8202 else
8203 ac_cv_use_radiobox='wxUSE_RADIOBOX=no'
8204 fi
8205
8206else
8207
8208 LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}`
8209 if test "x$LINE" != x ; then
8210 eval "DEFAULT_$LINE"
8211 else
8212 no_cache=1
8213 fi
8214
8215 ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX
8216
8217fi;
8218
8219 eval "$ac_cv_use_radiobox"
8220 if test "$no_cache" != 1; then
8221 echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp
8222 fi
8223
8224 if test "$wxUSE_RADIOBOX" = yes; then
8225 echo "$as_me:$LINENO: result: yes" >&5
8226echo "${ECHO_T}yes" >&6
8227 else
8228 echo "$as_me:$LINENO: result: no" >&5
8229echo "${ECHO_T}no" >&6
8230 fi
8231
8232
8233 enablestring=
8234 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobtn" >&5
8235echo $ECHO_N "checking for --${enablestring:-enable}-radiobtn... $ECHO_C" >&6
8236 no_cache=0
8237 # Check whether --enable-radiobtn or --disable-radiobtn was given.
8238if test "${enable_radiobtn+set}" = set; then
8239 enableval="$enable_radiobtn"
8240
8241 if test "$enableval" = yes; then
8242 ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes'
8243 else
8244 ac_cv_use_radiobtn='wxUSE_RADIOBTN=no'
8245 fi
8246
8247else
8248
8249 LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}`
8250 if test "x$LINE" != x ; then
8251 eval "DEFAULT_$LINE"
8252 else
8253 no_cache=1
8254 fi
8255
8256 ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN
8257
8258fi;
8259
8260 eval "$ac_cv_use_radiobtn"
8261 if test "$no_cache" != 1; then
8262 echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp
8263 fi
8264
8265 if test "$wxUSE_RADIOBTN" = yes; then
8266 echo "$as_me:$LINENO: result: yes" >&5
8267echo "${ECHO_T}yes" >&6
8268 else
8269 echo "$as_me:$LINENO: result: no" >&5
8270echo "${ECHO_T}no" >&6
8271 fi
8272
8273
8274 enablestring=
8275 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sash" >&5
8276echo $ECHO_N "checking for --${enablestring:-enable}-sash... $ECHO_C" >&6
8277 no_cache=0
8278 # Check whether --enable-sash or --disable-sash was given.
8279if test "${enable_sash+set}" = set; then
8280 enableval="$enable_sash"
8281
8282 if test "$enableval" = yes; then
8283 ac_cv_use_sash='wxUSE_SASH=yes'
8284 else
8285 ac_cv_use_sash='wxUSE_SASH=no'
8286 fi
8287
8288else
8289
8290 LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}`
8291 if test "x$LINE" != x ; then
8292 eval "DEFAULT_$LINE"
8293 else
8294 no_cache=1
8295 fi
8296
8297 ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH
8298
8299fi;
8300
8301 eval "$ac_cv_use_sash"
8302 if test "$no_cache" != 1; then
8303 echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp
8304 fi
8305
8306 if test "$wxUSE_SASH" = yes; then
8307 echo "$as_me:$LINENO: result: yes" >&5
8308echo "${ECHO_T}yes" >&6
8309 else
8310 echo "$as_me:$LINENO: result: no" >&5
8311echo "${ECHO_T}no" >&6
8312 fi
8313
8314
8315 enablestring=
8316 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-scrollbar" >&5
8317echo $ECHO_N "checking for --${enablestring:-enable}-scrollbar... $ECHO_C" >&6
8318 no_cache=0
8319 # Check whether --enable-scrollbar or --disable-scrollbar was given.
8320if test "${enable_scrollbar+set}" = set; then
8321 enableval="$enable_scrollbar"
8322
8323 if test "$enableval" = yes; then
8324 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes'
8325 else
8326 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no'
8327 fi
8328
8329else
8330
8331 LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}`
8332 if test "x$LINE" != x ; then
8333 eval "DEFAULT_$LINE"
8334 else
8335 no_cache=1
8336 fi
8337
8338 ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR
8339
8340fi;
8341
8342 eval "$ac_cv_use_scrollbar"
8343 if test "$no_cache" != 1; then
8344 echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp
8345 fi
8346
8347 if test "$wxUSE_SCROLLBAR" = yes; then
8348 echo "$as_me:$LINENO: result: yes" >&5
8349echo "${ECHO_T}yes" >&6
8350 else
8351 echo "$as_me:$LINENO: result: no" >&5
8352echo "${ECHO_T}no" >&6
8353 fi
8354
8355
8356 enablestring=
8357 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-slider" >&5
8358echo $ECHO_N "checking for --${enablestring:-enable}-slider... $ECHO_C" >&6
8359 no_cache=0
8360 # Check whether --enable-slider or --disable-slider was given.
8361if test "${enable_slider+set}" = set; then
8362 enableval="$enable_slider"
8363
8364 if test "$enableval" = yes; then
8365 ac_cv_use_slider='wxUSE_SLIDER=yes'
8366 else
8367 ac_cv_use_slider='wxUSE_SLIDER=no'
8368 fi
8369
8370else
8371
8372 LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}`
8373 if test "x$LINE" != x ; then
8374 eval "DEFAULT_$LINE"
8375 else
8376 no_cache=1
8377 fi
8378
8379 ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER
8380
8381fi;
8382
8383 eval "$ac_cv_use_slider"
8384 if test "$no_cache" != 1; then
8385 echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp
8386 fi
8387
8388 if test "$wxUSE_SLIDER" = yes; then
8389 echo "$as_me:$LINENO: result: yes" >&5
8390echo "${ECHO_T}yes" >&6
8391 else
8392 echo "$as_me:$LINENO: result: no" >&5
8393echo "${ECHO_T}no" >&6
8394 fi
8395
8396
8397 enablestring=
8398 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinbtn" >&5
8399echo $ECHO_N "checking for --${enablestring:-enable}-spinbtn... $ECHO_C" >&6
8400 no_cache=0
8401 # Check whether --enable-spinbtn or --disable-spinbtn was given.
8402if test "${enable_spinbtn+set}" = set; then
8403 enableval="$enable_spinbtn"
8404
8405 if test "$enableval" = yes; then
8406 ac_cv_use_spinbtn='wxUSE_SPINBTN=yes'
8407 else
8408 ac_cv_use_spinbtn='wxUSE_SPINBTN=no'
8409 fi
8410
8411else
8412
8413 LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}`
8414 if test "x$LINE" != x ; then
8415 eval "DEFAULT_$LINE"
8416 else
8417 no_cache=1
8418 fi
8419
8420 ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN
8421
8422fi;
8423
8424 eval "$ac_cv_use_spinbtn"
8425 if test "$no_cache" != 1; then
8426 echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp
8427 fi
8428
8429 if test "$wxUSE_SPINBTN" = yes; then
8430 echo "$as_me:$LINENO: result: yes" >&5
8431echo "${ECHO_T}yes" >&6
8432 else
8433 echo "$as_me:$LINENO: result: no" >&5
8434echo "${ECHO_T}no" >&6
8435 fi
8436
8437
8438 enablestring=
8439 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinctrl" >&5
8440echo $ECHO_N "checking for --${enablestring:-enable}-spinctrl... $ECHO_C" >&6
8441 no_cache=0
8442 # Check whether --enable-spinctrl or --disable-spinctrl was given.
8443if test "${enable_spinctrl+set}" = set; then
8444 enableval="$enable_spinctrl"
8445
8446 if test "$enableval" = yes; then
8447 ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes'
8448 else
8449 ac_cv_use_spinctrl='wxUSE_SPINCTRL=no'
8450 fi
8451
8452else
8453
8454 LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}`
8455 if test "x$LINE" != x ; then
8456 eval "DEFAULT_$LINE"
8457 else
8458 no_cache=1
8459 fi
8460
8461 ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL
8462
8463fi;
8464
8465 eval "$ac_cv_use_spinctrl"
8466 if test "$no_cache" != 1; then
8467 echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp
8468 fi
8469
8470 if test "$wxUSE_SPINCTRL" = yes; then
8471 echo "$as_me:$LINENO: result: yes" >&5
8472echo "${ECHO_T}yes" >&6
8473 else
8474 echo "$as_me:$LINENO: result: no" >&5
8475echo "${ECHO_T}no" >&6
8476 fi
8477
8478
8479 enablestring=
8480 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splitter" >&5
8481echo $ECHO_N "checking for --${enablestring:-enable}-splitter... $ECHO_C" >&6
8482 no_cache=0
8483 # Check whether --enable-splitter or --disable-splitter was given.
8484if test "${enable_splitter+set}" = set; then
8485 enableval="$enable_splitter"
8486
8487 if test "$enableval" = yes; then
8488 ac_cv_use_splitter='wxUSE_SPLITTER=yes'
8489 else
8490 ac_cv_use_splitter='wxUSE_SPLITTER=no'
8491 fi
8492
8493else
8494
8495 LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}`
8496 if test "x$LINE" != x ; then
8497 eval "DEFAULT_$LINE"
8498 else
8499 no_cache=1
8500 fi
8501
8502 ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER
8503
8504fi;
8505
8506 eval "$ac_cv_use_splitter"
8507 if test "$no_cache" != 1; then
8508 echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp
8509 fi
8510
8511 if test "$wxUSE_SPLITTER" = yes; then
8512 echo "$as_me:$LINENO: result: yes" >&5
8513echo "${ECHO_T}yes" >&6
8514 else
8515 echo "$as_me:$LINENO: result: no" >&5
8516echo "${ECHO_T}no" >&6
8517 fi
8518
8519
8520 enablestring=
8521 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbmp" >&5
8522echo $ECHO_N "checking for --${enablestring:-enable}-statbmp... $ECHO_C" >&6
8523 no_cache=0
8524 # Check whether --enable-statbmp or --disable-statbmp was given.
8525if test "${enable_statbmp+set}" = set; then
8526 enableval="$enable_statbmp"
8527
8528 if test "$enableval" = yes; then
8529 ac_cv_use_statbmp='wxUSE_STATBMP=yes'
8530 else
8531 ac_cv_use_statbmp='wxUSE_STATBMP=no'
8532 fi
8533
8534else
8535
8536 LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}`
8537 if test "x$LINE" != x ; then
8538 eval "DEFAULT_$LINE"
8539 else
8540 no_cache=1
8541 fi
8542
8543 ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP
8544
8545fi;
8546
8547 eval "$ac_cv_use_statbmp"
8548 if test "$no_cache" != 1; then
8549 echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp
8550 fi
8551
8552 if test "$wxUSE_STATBMP" = yes; then
8553 echo "$as_me:$LINENO: result: yes" >&5
8554echo "${ECHO_T}yes" >&6
8555 else
8556 echo "$as_me:$LINENO: result: no" >&5
8557echo "${ECHO_T}no" >&6
8558 fi
8559
8560
8561 enablestring=
8562 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbox" >&5
8563echo $ECHO_N "checking for --${enablestring:-enable}-statbox... $ECHO_C" >&6
8564 no_cache=0
8565 # Check whether --enable-statbox or --disable-statbox was given.
8566if test "${enable_statbox+set}" = set; then
8567 enableval="$enable_statbox"
8568
8569 if test "$enableval" = yes; then
8570 ac_cv_use_statbox='wxUSE_STATBOX=yes'
8571 else
8572 ac_cv_use_statbox='wxUSE_STATBOX=no'
8573 fi
8574
8575else
8576
8577 LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}`
8578 if test "x$LINE" != x ; then
8579 eval "DEFAULT_$LINE"
8580 else
8581 no_cache=1
8582 fi
8583
8584 ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX
8585
8586fi;
8587
8588 eval "$ac_cv_use_statbox"
8589 if test "$no_cache" != 1; then
8590 echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp
8591 fi
8592
8593 if test "$wxUSE_STATBOX" = yes; then
8594 echo "$as_me:$LINENO: result: yes" >&5
8595echo "${ECHO_T}yes" >&6
8596 else
8597 echo "$as_me:$LINENO: result: no" >&5
8598echo "${ECHO_T}no" >&6
8599 fi
8600
8601
8602 enablestring=
8603 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statline" >&5
8604echo $ECHO_N "checking for --${enablestring:-enable}-statline... $ECHO_C" >&6
8605 no_cache=0
8606 # Check whether --enable-statline or --disable-statline was given.
8607if test "${enable_statline+set}" = set; then
8608 enableval="$enable_statline"
8609
8610 if test "$enableval" = yes; then
8611 ac_cv_use_statline='wxUSE_STATLINE=yes'
8612 else
8613 ac_cv_use_statline='wxUSE_STATLINE=no'
8614 fi
8615
8616else
8617
8618 LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}`
8619 if test "x$LINE" != x ; then
8620 eval "DEFAULT_$LINE"
8621 else
8622 no_cache=1
8623 fi
8624
8625 ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE
8626
8627fi;
8628
8629 eval "$ac_cv_use_statline"
8630 if test "$no_cache" != 1; then
8631 echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp
8632 fi
8633
8634 if test "$wxUSE_STATLINE" = yes; then
8635 echo "$as_me:$LINENO: result: yes" >&5
8636echo "${ECHO_T}yes" >&6
8637 else
8638 echo "$as_me:$LINENO: result: no" >&5
8639echo "${ECHO_T}no" >&6
8640 fi
8641
8642
8643 enablestring=
8644 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stattext" >&5
8645echo $ECHO_N "checking for --${enablestring:-enable}-stattext... $ECHO_C" >&6
8646 no_cache=0
8647 # Check whether --enable-stattext or --disable-stattext was given.
8648if test "${enable_stattext+set}" = set; then
8649 enableval="$enable_stattext"
8650
8651 if test "$enableval" = yes; then
8652 ac_cv_use_stattext='wxUSE_STATTEXT=yes'
8653 else
8654 ac_cv_use_stattext='wxUSE_STATTEXT=no'
8655 fi
8656
8657else
8658
8659 LINE=`grep "wxUSE_STATTEXT" ${wx_arg_cache_file}`
8660 if test "x$LINE" != x ; then
8661 eval "DEFAULT_$LINE"
8662 else
8663 no_cache=1
8664 fi
8665
8666 ac_cv_use_stattext='wxUSE_STATTEXT='$DEFAULT_wxUSE_STATTEXT
8667
8668fi;
8669
8670 eval "$ac_cv_use_stattext"
8671 if test "$no_cache" != 1; then
8672 echo $ac_cv_use_stattext >> ${wx_arg_cache_file}.tmp
8673 fi
8674
8675 if test "$wxUSE_STATTEXT" = yes; then
8676 echo "$as_me:$LINENO: result: yes" >&5
8677echo "${ECHO_T}yes" >&6
8678 else
8679 echo "$as_me:$LINENO: result: no" >&5
8680echo "${ECHO_T}no" >&6
8681 fi
8682
8683
8684 enablestring=
8685 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statusbar" >&5
8686echo $ECHO_N "checking for --${enablestring:-enable}-statusbar... $ECHO_C" >&6
8687 no_cache=0
8688 # Check whether --enable-statusbar or --disable-statusbar was given.
8689if test "${enable_statusbar+set}" = set; then
8690 enableval="$enable_statusbar"
8691
8692 if test "$enableval" = yes; then
8693 ac_cv_use_statusbar='wxUSE_STATUSBAR=yes'
8694 else
8695 ac_cv_use_statusbar='wxUSE_STATUSBAR=no'
8696 fi
8697
8698else
8699
8700 LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}`
8701 if test "x$LINE" != x ; then
8702 eval "DEFAULT_$LINE"
8703 else
8704 no_cache=1
8705 fi
8706
8707 ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR
8708
8709fi;
8710
8711 eval "$ac_cv_use_statusbar"
8712 if test "$no_cache" != 1; then
8713 echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp
8714 fi
8715
8716 if test "$wxUSE_STATUSBAR" = yes; then
8717 echo "$as_me:$LINENO: result: yes" >&5
8718echo "${ECHO_T}yes" >&6
8719 else
8720 echo "$as_me:$LINENO: result: no" >&5
8721echo "${ECHO_T}no" >&6
8722 fi
8723
8724
8725 enablestring=
8726 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tabdialog" >&5
8727echo $ECHO_N "checking for --${enablestring:-enable}-tabdialog... $ECHO_C" >&6
8728 no_cache=0
8729 # Check whether --enable-tabdialog or --disable-tabdialog was given.
8730if test "${enable_tabdialog+set}" = set; then
8731 enableval="$enable_tabdialog"
8732
8733 if test "$enableval" = yes; then
8734 ac_cv_use_tabdialog='wxUSE_TABDIALOG=yes'
8735 else
8736 ac_cv_use_tabdialog='wxUSE_TABDIALOG=no'
8737 fi
8738
8739else
8740
8741 LINE=`grep "wxUSE_TABDIALOG" ${wx_arg_cache_file}`
8742 if test "x$LINE" != x ; then
8743 eval "DEFAULT_$LINE"
8744 else
8745 no_cache=1
8746 fi
8747
8748 ac_cv_use_tabdialog='wxUSE_TABDIALOG='$DEFAULT_wxUSE_TABDIALOG
8749
8750fi;
8751
8752 eval "$ac_cv_use_tabdialog"
8753 if test "$no_cache" != 1; then
8754 echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp
8755 fi
8756
8757 if test "$wxUSE_TABDIALOG" = yes; then
8758 echo "$as_me:$LINENO: result: yes" >&5
8759echo "${ECHO_T}yes" >&6
8760 else
8761 echo "$as_me:$LINENO: result: no" >&5
8762echo "${ECHO_T}no" >&6
8763 fi
8764
8765
8766 enablestring=
8767 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textctrl" >&5
8768echo $ECHO_N "checking for --${enablestring:-enable}-textctrl... $ECHO_C" >&6
8769 no_cache=0
8770 # Check whether --enable-textctrl or --disable-textctrl was given.
8771if test "${enable_textctrl+set}" = set; then
8772 enableval="$enable_textctrl"
8773
8774 if test "$enableval" = yes; then
8775 ac_cv_use_textctrl='wxUSE_TEXTCTRL=yes'
8776 else
8777 ac_cv_use_textctrl='wxUSE_TEXTCTRL=no'
8778 fi
8779
8780else
8781
8782 LINE=`grep "wxUSE_TEXTCTRL" ${wx_arg_cache_file}`
8783 if test "x$LINE" != x ; then
8784 eval "DEFAULT_$LINE"
8785 else
8786 no_cache=1
8787 fi
8788
8789 ac_cv_use_textctrl='wxUSE_TEXTCTRL='$DEFAULT_wxUSE_TEXTCTRL
8790
8791fi;
8792
8793 eval "$ac_cv_use_textctrl"
8794 if test "$no_cache" != 1; then
8795 echo $ac_cv_use_textctrl >> ${wx_arg_cache_file}.tmp
8796 fi
8797
8798 if test "$wxUSE_TEXTCTRL" = yes; then
8799 echo "$as_me:$LINENO: result: yes" >&5
8800echo "${ECHO_T}yes" >&6
8801 else
8802 echo "$as_me:$LINENO: result: no" >&5
8803echo "${ECHO_T}no" >&6
8804 fi
8805
8806
8807 enablestring=
8808 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-togglebtn" >&5
8809echo $ECHO_N "checking for --${enablestring:-enable}-togglebtn... $ECHO_C" >&6
8810 no_cache=0
8811 # Check whether --enable-togglebtn or --disable-togglebtn was given.
8812if test "${enable_togglebtn+set}" = set; then
8813 enableval="$enable_togglebtn"
8814
8815 if test "$enableval" = yes; then
8816 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes'
8817 else
8818 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=no'
8819 fi
8820
8821else
8822
8823 LINE=`grep "wxUSE_TOGGLEBTN" ${wx_arg_cache_file}`
8824 if test "x$LINE" != x ; then
8825 eval "DEFAULT_$LINE"
8826 else
8827 no_cache=1
8828 fi
8829
8830 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN='$DEFAULT_wxUSE_TOGGLEBTN
8831
8832fi;
8833
8834 eval "$ac_cv_use_togglebtn"
8835 if test "$no_cache" != 1; then
8836 echo $ac_cv_use_togglebtn >> ${wx_arg_cache_file}.tmp
8837 fi
8838
8839 if test "$wxUSE_TOGGLEBTN" = yes; then
8840 echo "$as_me:$LINENO: result: yes" >&5
8841echo "${ECHO_T}yes" >&6
8842 else
8843 echo "$as_me:$LINENO: result: no" >&5
8844echo "${ECHO_T}no" >&6
8845 fi
8846
8847
8848 enablestring=
8849 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-toolbar" >&5
8850echo $ECHO_N "checking for --${enablestring:-enable}-toolbar... $ECHO_C" >&6
8851 no_cache=0
8852 # Check whether --enable-toolbar or --disable-toolbar was given.
8853if test "${enable_toolbar+set}" = set; then
8854 enableval="$enable_toolbar"
8855
8856 if test "$enableval" = yes; then
8857 ac_cv_use_toolbar='wxUSE_TOOLBAR=yes'
8858 else
8859 ac_cv_use_toolbar='wxUSE_TOOLBAR=no'
8860 fi
8861
8862else
8863
8864 LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}`
8865 if test "x$LINE" != x ; then
8866 eval "DEFAULT_$LINE"
8867 else
8868 no_cache=1
8869 fi
8870
8871 ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR
8872
8873fi;
8874
8875 eval "$ac_cv_use_toolbar"
8876 if test "$no_cache" != 1; then
8877 echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp
8878 fi
8879
8880 if test "$wxUSE_TOOLBAR" = yes; then
8881 echo "$as_me:$LINENO: result: yes" >&5
8882echo "${ECHO_T}yes" >&6
8883 else
8884 echo "$as_me:$LINENO: result: no" >&5
8885echo "${ECHO_T}no" >&6
8886 fi
8887
8888
8889 enablestring=
8890 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarnative" >&5
8891echo $ECHO_N "checking for --${enablestring:-enable}-tbarnative... $ECHO_C" >&6
8892 no_cache=0
8893 # Check whether --enable-tbarnative or --disable-tbarnative was given.
8894if test "${enable_tbarnative+set}" = set; then
8895 enableval="$enable_tbarnative"
8896
8897 if test "$enableval" = yes; then
8898 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes'
8899 else
8900 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no'
8901 fi
8902
8903else
8904
8905 LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}`
8906 if test "x$LINE" != x ; then
8907 eval "DEFAULT_$LINE"
8908 else
8909 no_cache=1
8910 fi
8911
8912 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE
8913
8914fi;
8915
8916 eval "$ac_cv_use_tbarnative"
8917 if test "$no_cache" != 1; then
8918 echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp
8919 fi
8920
8921 if test "$wxUSE_TOOLBAR_NATIVE" = yes; then
8922 echo "$as_me:$LINENO: result: yes" >&5
8923echo "${ECHO_T}yes" >&6
8924 else
8925 echo "$as_me:$LINENO: result: no" >&5
8926echo "${ECHO_T}no" >&6
8927 fi
8928
8929
8930 enablestring=
8931 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarsmpl" >&5
8932echo $ECHO_N "checking for --${enablestring:-enable}-tbarsmpl... $ECHO_C" >&6
8933 no_cache=0
8934 # Check whether --enable-tbarsmpl or --disable-tbarsmpl was given.
8935if test "${enable_tbarsmpl+set}" = set; then
8936 enableval="$enable_tbarsmpl"
8937
8938 if test "$enableval" = yes; then
8939 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=yes'
8940 else
8941 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=no'
8942 fi
8943
8944else
8945
8946 LINE=`grep "wxUSE_TOOLBAR_SIMPLE" ${wx_arg_cache_file}`
8947 if test "x$LINE" != x ; then
8948 eval "DEFAULT_$LINE"
8949 else
8950 no_cache=1
8951 fi
8952
8953 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE='$DEFAULT_wxUSE_TOOLBAR_SIMPLE
8954
8955fi;
8956
8957 eval "$ac_cv_use_tbarsmpl"
8958 if test "$no_cache" != 1; then
8959 echo $ac_cv_use_tbarsmpl >> ${wx_arg_cache_file}.tmp
8960 fi
8961
8962 if test "$wxUSE_TOOLBAR_SIMPLE" = yes; then
8963 echo "$as_me:$LINENO: result: yes" >&5
8964echo "${ECHO_T}yes" >&6
8965 else
8966 echo "$as_me:$LINENO: result: no" >&5
8967echo "${ECHO_T}no" >&6
8968 fi
8969
8970
8971 enablestring=
8972 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-treectrl" >&5
8973echo $ECHO_N "checking for --${enablestring:-enable}-treectrl... $ECHO_C" >&6
8974 no_cache=0
8975 # Check whether --enable-treectrl or --disable-treectrl was given.
8976if test "${enable_treectrl+set}" = set; then
8977 enableval="$enable_treectrl"
8978
8979 if test "$enableval" = yes; then
8980 ac_cv_use_treectrl='wxUSE_TREECTRL=yes'
8981 else
8982 ac_cv_use_treectrl='wxUSE_TREECTRL=no'
8983 fi
8984
8985else
8986
8987 LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}`
8988 if test "x$LINE" != x ; then
8989 eval "DEFAULT_$LINE"
8990 else
8991 no_cache=1
8992 fi
8993
8994 ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL
8995
8996fi;
8997
8998 eval "$ac_cv_use_treectrl"
8999 if test "$no_cache" != 1; then
9000 echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp
9001 fi
9002
9003 if test "$wxUSE_TREECTRL" = yes; then
9004 echo "$as_me:$LINENO: result: yes" >&5
9005echo "${ECHO_T}yes" >&6
9006 else
9007 echo "$as_me:$LINENO: result: no" >&5
9008echo "${ECHO_T}no" >&6
9009 fi
9010
9011
9012 enablestring=
9013 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipwindow" >&5
9014echo $ECHO_N "checking for --${enablestring:-enable}-tipwindow... $ECHO_C" >&6
9015 no_cache=0
9016 # Check whether --enable-tipwindow or --disable-tipwindow was given.
9017if test "${enable_tipwindow+set}" = set; then
9018 enableval="$enable_tipwindow"
9019
9020 if test "$enableval" = yes; then
9021 ac_cv_use_tipwindow='wxUSE_TIPWINDOW=yes'
9022 else
9023 ac_cv_use_tipwindow='wxUSE_TIPWINDOW=no'
9024 fi
9025
9026else
9027
9028 LINE=`grep "wxUSE_TIPWINDOW" ${wx_arg_cache_file}`
9029 if test "x$LINE" != x ; then
9030 eval "DEFAULT_$LINE"
9031 else
9032 no_cache=1
9033 fi
9034
9035 ac_cv_use_tipwindow='wxUSE_TIPWINDOW='$DEFAULT_wxUSE_TIPWINDOW
9036
9037fi;
9038
9039 eval "$ac_cv_use_tipwindow"
9040 if test "$no_cache" != 1; then
9041 echo $ac_cv_use_tipwindow >> ${wx_arg_cache_file}.tmp
9042 fi
9043
9044 if test "$wxUSE_TIPWINDOW" = yes; then
9045 echo "$as_me:$LINENO: result: yes" >&5
9046echo "${ECHO_T}yes" >&6
9047 else
9048 echo "$as_me:$LINENO: result: no" >&5
9049echo "${ECHO_T}no" >&6
9050 fi
9051
9052
9053 enablestring=
9054 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-popupwin" >&5
9055echo $ECHO_N "checking for --${enablestring:-enable}-popupwin... $ECHO_C" >&6
9056 no_cache=0
9057 # Check whether --enable-popupwin or --disable-popupwin was given.
9058if test "${enable_popupwin+set}" = set; then
9059 enableval="$enable_popupwin"
9060
9061 if test "$enableval" = yes; then
9062 ac_cv_use_popupwin='wxUSE_POPUPWIN=yes'
9063 else
9064 ac_cv_use_popupwin='wxUSE_POPUPWIN=no'
9065 fi
9066
9067else
9068
9069 LINE=`grep "wxUSE_POPUPWIN" ${wx_arg_cache_file}`
9070 if test "x$LINE" != x ; then
9071 eval "DEFAULT_$LINE"
9072 else
9073 no_cache=1
9074 fi
9075
9076 ac_cv_use_popupwin='wxUSE_POPUPWIN='$DEFAULT_wxUSE_POPUPWIN
9077
9078fi;
9079
9080 eval "$ac_cv_use_popupwin"
9081 if test "$no_cache" != 1; then
9082 echo $ac_cv_use_popupwin >> ${wx_arg_cache_file}.tmp
9083 fi
9084
9085 if test "$wxUSE_POPUPWIN" = yes; then
9086 echo "$as_me:$LINENO: result: yes" >&5
9087echo "${ECHO_T}yes" >&6
9088 else
9089 echo "$as_me:$LINENO: result: no" >&5
9090echo "${ECHO_T}no" >&6
9091 fi
9092
9093
9094
9095
9096 enablestring=
9097 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-commondlg" >&5
9098echo $ECHO_N "checking for --${enablestring:-enable}-commondlg... $ECHO_C" >&6
9099 no_cache=0
9100 # Check whether --enable-commondlg or --disable-commondlg was given.
9101if test "${enable_commondlg+set}" = set; then
9102 enableval="$enable_commondlg"
9103
9104 if test "$enableval" = yes; then
9105 ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes'
9106 else
9107 ac_cv_use_commondlg='wxUSE_COMMONDLGS=no'
9108 fi
9109
9110else
9111
9112 LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}`
9113 if test "x$LINE" != x ; then
9114 eval "DEFAULT_$LINE"
9115 else
9116 no_cache=1
9117 fi
9118
9119 ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS
9120
9121fi;
9122
9123 eval "$ac_cv_use_commondlg"
9124 if test "$no_cache" != 1; then
9125 echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp
9126 fi
9127
9128 if test "$wxUSE_COMMONDLGS" = yes; then
9129 echo "$as_me:$LINENO: result: yes" >&5
9130echo "${ECHO_T}yes" >&6
9131 else
9132 echo "$as_me:$LINENO: result: no" >&5
9133echo "${ECHO_T}no" >&6
9134 fi
9135
9136
9137 enablestring=
9138 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicedlg" >&5
9139echo $ECHO_N "checking for --${enablestring:-enable}-choicedlg... $ECHO_C" >&6
9140 no_cache=0
9141 # Check whether --enable-choicedlg or --disable-choicedlg was given.
9142if test "${enable_choicedlg+set}" = set; then
9143 enableval="$enable_choicedlg"
9144
9145 if test "$enableval" = yes; then
9146 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=yes'
9147 else
9148 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=no'
9149 fi
9150
9151else
9152
9153 LINE=`grep "wxUSE_CHOICEDLG" ${wx_arg_cache_file}`
9154 if test "x$LINE" != x ; then
9155 eval "DEFAULT_$LINE"
9156 else
9157 no_cache=1
9158 fi
9159
9160 ac_cv_use_choicedlg='wxUSE_CHOICEDLG='$DEFAULT_wxUSE_CHOICEDLG
9161
9162fi;
9163
9164 eval "$ac_cv_use_choicedlg"
9165 if test "$no_cache" != 1; then
9166 echo $ac_cv_use_choicedlg >> ${wx_arg_cache_file}.tmp
9167 fi
9168
9169 if test "$wxUSE_CHOICEDLG" = yes; then
9170 echo "$as_me:$LINENO: result: yes" >&5
9171echo "${ECHO_T}yes" >&6
9172 else
9173 echo "$as_me:$LINENO: result: no" >&5
9174echo "${ECHO_T}no" >&6
9175 fi
9176
9177
9178 enablestring=
9179 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-coldlg" >&5
9180echo $ECHO_N "checking for --${enablestring:-enable}-coldlg... $ECHO_C" >&6
9181 no_cache=0
9182 # Check whether --enable-coldlg or --disable-coldlg was given.
9183if test "${enable_coldlg+set}" = set; then
9184 enableval="$enable_coldlg"
9185
9186 if test "$enableval" = yes; then
9187 ac_cv_use_coldlg='wxUSE_COLOURDLG=yes'
9188 else
9189 ac_cv_use_coldlg='wxUSE_COLOURDLG=no'
9190 fi
9191
9192else
9193
9194 LINE=`grep "wxUSE_COLOURDLG" ${wx_arg_cache_file}`
9195 if test "x$LINE" != x ; then
9196 eval "DEFAULT_$LINE"
9197 else
9198 no_cache=1
9199 fi
9200
9201 ac_cv_use_coldlg='wxUSE_COLOURDLG='$DEFAULT_wxUSE_COLOURDLG
9202
9203fi;
9204
9205 eval "$ac_cv_use_coldlg"
9206 if test "$no_cache" != 1; then
9207 echo $ac_cv_use_coldlg >> ${wx_arg_cache_file}.tmp
9208 fi
9209
9210 if test "$wxUSE_COLOURDLG" = yes; then
9211 echo "$as_me:$LINENO: result: yes" >&5
9212echo "${ECHO_T}yes" >&6
9213 else
9214 echo "$as_me:$LINENO: result: no" >&5
9215echo "${ECHO_T}no" >&6
9216 fi
9217
9218
9219 enablestring=
9220 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filedlg" >&5
9221echo $ECHO_N "checking for --${enablestring:-enable}-filedlg... $ECHO_C" >&6
9222 no_cache=0
9223 # Check whether --enable-filedlg or --disable-filedlg was given.
9224if test "${enable_filedlg+set}" = set; then
9225 enableval="$enable_filedlg"
9226
9227 if test "$enableval" = yes; then
9228 ac_cv_use_filedlg='wxUSE_FILEDLG=yes'
9229 else
9230 ac_cv_use_filedlg='wxUSE_FILEDLG=no'
9231 fi
9232
9233else
9234
9235 LINE=`grep "wxUSE_FILEDLG" ${wx_arg_cache_file}`
9236 if test "x$LINE" != x ; then
9237 eval "DEFAULT_$LINE"
9238 else
9239 no_cache=1
9240 fi
9241
9242 ac_cv_use_filedlg='wxUSE_FILEDLG='$DEFAULT_wxUSE_FILEDLG
9243
9244fi;
9245
9246 eval "$ac_cv_use_filedlg"
9247 if test "$no_cache" != 1; then
9248 echo $ac_cv_use_filedlg >> ${wx_arg_cache_file}.tmp
9249 fi
9250
9251 if test "$wxUSE_FILEDLG" = yes; then
9252 echo "$as_me:$LINENO: result: yes" >&5
9253echo "${ECHO_T}yes" >&6
9254 else
9255 echo "$as_me:$LINENO: result: no" >&5
9256echo "${ECHO_T}no" >&6
9257 fi
9258
9259
9260 enablestring=
9261 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-finddlg" >&5
9262echo $ECHO_N "checking for --${enablestring:-enable}-finddlg... $ECHO_C" >&6
9263 no_cache=0
9264 # Check whether --enable-finddlg or --disable-finddlg was given.
9265if test "${enable_finddlg+set}" = set; then
9266 enableval="$enable_finddlg"
9267
9268 if test "$enableval" = yes; then
9269 ac_cv_use_finddlg='wxUSE_FINDREPLDLG=yes'
9270 else
9271 ac_cv_use_finddlg='wxUSE_FINDREPLDLG=no'
9272 fi
9273
9274else
9275
9276 LINE=`grep "wxUSE_FINDREPLDLG" ${wx_arg_cache_file}`
9277 if test "x$LINE" != x ; then
9278 eval "DEFAULT_$LINE"
9279 else
9280 no_cache=1
9281 fi
9282
9283 ac_cv_use_finddlg='wxUSE_FINDREPLDLG='$DEFAULT_wxUSE_FINDREPLDLG
9284
9285fi;
9286
9287 eval "$ac_cv_use_finddlg"
9288 if test "$no_cache" != 1; then
9289 echo $ac_cv_use_finddlg >> ${wx_arg_cache_file}.tmp
9290 fi
9291
9292 if test "$wxUSE_FINDREPLDLG" = yes; then
9293 echo "$as_me:$LINENO: result: yes" >&5
9294echo "${ECHO_T}yes" >&6
9295 else
9296 echo "$as_me:$LINENO: result: no" >&5
9297echo "${ECHO_T}no" >&6
9298 fi
9299
9300
9301 enablestring=
9302 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontdlg" >&5
9303echo $ECHO_N "checking for --${enablestring:-enable}-fontdlg... $ECHO_C" >&6
9304 no_cache=0
9305 # Check whether --enable-fontdlg or --disable-fontdlg was given.
9306if test "${enable_fontdlg+set}" = set; then
9307 enableval="$enable_fontdlg"
9308
9309 if test "$enableval" = yes; then
9310 ac_cv_use_fontdlg='wxUSE_FONTDLG=yes'
9311 else
9312 ac_cv_use_fontdlg='wxUSE_FONTDLG=no'
9313 fi
9314
9315else
9316
9317 LINE=`grep "wxUSE_FONTDLG" ${wx_arg_cache_file}`
9318 if test "x$LINE" != x ; then
9319 eval "DEFAULT_$LINE"
9320 else
9321 no_cache=1
9322 fi
9323
9324 ac_cv_use_fontdlg='wxUSE_FONTDLG='$DEFAULT_wxUSE_FONTDLG
9325
9326fi;
9327
9328 eval "$ac_cv_use_fontdlg"
9329 if test "$no_cache" != 1; then
9330 echo $ac_cv_use_fontdlg >> ${wx_arg_cache_file}.tmp
9331 fi
9332
9333 if test "$wxUSE_FONTDLG" = yes; then
9334 echo "$as_me:$LINENO: result: yes" >&5
9335echo "${ECHO_T}yes" >&6
9336 else
9337 echo "$as_me:$LINENO: result: no" >&5
9338echo "${ECHO_T}no" >&6
9339 fi
9340
9341
9342 enablestring=
9343 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dirdlg" >&5
9344echo $ECHO_N "checking for --${enablestring:-enable}-dirdlg... $ECHO_C" >&6
9345 no_cache=0
9346 # Check whether --enable-dirdlg or --disable-dirdlg was given.
9347if test "${enable_dirdlg+set}" = set; then
9348 enableval="$enable_dirdlg"
9349
9350 if test "$enableval" = yes; then
9351 ac_cv_use_dirdlg='wxUSE_DIRDLG=yes'
9352 else
9353 ac_cv_use_dirdlg='wxUSE_DIRDLG=no'
9354 fi
9355
9356else
9357
9358 LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}`
9359 if test "x$LINE" != x ; then
9360 eval "DEFAULT_$LINE"
9361 else
9362 no_cache=1
9363 fi
9364
9365 ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG
9366
9367fi;
9368
9369 eval "$ac_cv_use_dirdlg"
9370 if test "$no_cache" != 1; then
9371 echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp
9372 fi
9373
9374 if test "$wxUSE_DIRDLG" = yes; then
9375 echo "$as_me:$LINENO: result: yes" >&5
9376echo "${ECHO_T}yes" >&6
9377 else
9378 echo "$as_me:$LINENO: result: no" >&5
9379echo "${ECHO_T}no" >&6
9380 fi
9381
9382
9383 enablestring=
9384 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-msgdlg" >&5
9385echo $ECHO_N "checking for --${enablestring:-enable}-msgdlg... $ECHO_C" >&6
9386 no_cache=0
9387 # Check whether --enable-msgdlg or --disable-msgdlg was given.
9388if test "${enable_msgdlg+set}" = set; then
9389 enableval="$enable_msgdlg"
9390
9391 if test "$enableval" = yes; then
9392 ac_cv_use_msgdlg='wxUSE_MSGDLG=yes'
9393 else
9394 ac_cv_use_msgdlg='wxUSE_MSGDLG=no'
9395 fi
9396
9397else
9398
9399 LINE=`grep "wxUSE_MSGDLG" ${wx_arg_cache_file}`
9400 if test "x$LINE" != x ; then
9401 eval "DEFAULT_$LINE"
9402 else
9403 no_cache=1
9404 fi
9405
9406 ac_cv_use_msgdlg='wxUSE_MSGDLG='$DEFAULT_wxUSE_MSGDLG
9407
9408fi;
9409
9410 eval "$ac_cv_use_msgdlg"
9411 if test "$no_cache" != 1; then
9412 echo $ac_cv_use_msgdlg >> ${wx_arg_cache_file}.tmp
9413 fi
9414
9415 if test "$wxUSE_MSGDLG" = yes; then
9416 echo "$as_me:$LINENO: result: yes" >&5
9417echo "${ECHO_T}yes" >&6
9418 else
9419 echo "$as_me:$LINENO: result: no" >&5
9420echo "${ECHO_T}no" >&6
9421 fi
9422
9423
9424 enablestring=
9425 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-numberdlg" >&5
9426echo $ECHO_N "checking for --${enablestring:-enable}-numberdlg... $ECHO_C" >&6
9427 no_cache=0
9428 # Check whether --enable-numberdlg or --disable-numberdlg was given.
9429if test "${enable_numberdlg+set}" = set; then
9430 enableval="$enable_numberdlg"
9431
9432 if test "$enableval" = yes; then
9433 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=yes'
9434 else
9435 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=no'
9436 fi
9437
9438else
9439
9440 LINE=`grep "wxUSE_NUMBERDLG" ${wx_arg_cache_file}`
9441 if test "x$LINE" != x ; then
9442 eval "DEFAULT_$LINE"
9443 else
9444 no_cache=1
9445 fi
9446
9447 ac_cv_use_numberdlg='wxUSE_NUMBERDLG='$DEFAULT_wxUSE_NUMBERDLG
9448
9449fi;
9450
9451 eval "$ac_cv_use_numberdlg"
9452 if test "$no_cache" != 1; then
9453 echo $ac_cv_use_numberdlg >> ${wx_arg_cache_file}.tmp
9454 fi
9455
9456 if test "$wxUSE_NUMBERDLG" = yes; then
9457 echo "$as_me:$LINENO: result: yes" >&5
9458echo "${ECHO_T}yes" >&6
9459 else
9460 echo "$as_me:$LINENO: result: no" >&5
9461echo "${ECHO_T}no" >&6
9462 fi
9463
9464
9465 enablestring=
9466 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splash" >&5
9467echo $ECHO_N "checking for --${enablestring:-enable}-splash... $ECHO_C" >&6
9468 no_cache=0
9469 # Check whether --enable-splash or --disable-splash was given.
9470if test "${enable_splash+set}" = set; then
9471 enableval="$enable_splash"
9472
9473 if test "$enableval" = yes; then
9474 ac_cv_use_splash='wxUSE_SPLASH=yes'
9475 else
9476 ac_cv_use_splash='wxUSE_SPLASH=no'
9477 fi
9478
9479else
9480
9481 LINE=`grep "wxUSE_SPLASH" ${wx_arg_cache_file}`
9482 if test "x$LINE" != x ; then
9483 eval "DEFAULT_$LINE"
9484 else
9485 no_cache=1
9486 fi
9487
9488 ac_cv_use_splash='wxUSE_SPLASH='$DEFAULT_wxUSE_SPLASH
9489
9490fi;
9491
9492 eval "$ac_cv_use_splash"
9493 if test "$no_cache" != 1; then
9494 echo $ac_cv_use_splash >> ${wx_arg_cache_file}.tmp
9495 fi
9496
9497 if test "$wxUSE_SPLASH" = yes; then
9498 echo "$as_me:$LINENO: result: yes" >&5
9499echo "${ECHO_T}yes" >&6
9500 else
9501 echo "$as_me:$LINENO: result: no" >&5
9502echo "${ECHO_T}no" >&6
9503 fi
9504
9505
9506 enablestring=
9507 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textdlg" >&5
9508echo $ECHO_N "checking for --${enablestring:-enable}-textdlg... $ECHO_C" >&6
9509 no_cache=0
9510 # Check whether --enable-textdlg or --disable-textdlg was given.
9511if test "${enable_textdlg+set}" = set; then
9512 enableval="$enable_textdlg"
9513
9514 if test "$enableval" = yes; then
9515 ac_cv_use_textdlg='wxUSE_TEXTDLG=yes'
9516 else
9517 ac_cv_use_textdlg='wxUSE_TEXTDLG=no'
9518 fi
9519
9520else
9521
9522 LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}`
9523 if test "x$LINE" != x ; then
9524 eval "DEFAULT_$LINE"
9525 else
9526 no_cache=1
9527 fi
9528
9529 ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG
9530
9531fi;
9532
9533 eval "$ac_cv_use_textdlg"
9534 if test "$no_cache" != 1; then
9535 echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp
9536 fi
9537
9538 if test "$wxUSE_TEXTDLG" = yes; then
9539 echo "$as_me:$LINENO: result: yes" >&5
9540echo "${ECHO_T}yes" >&6
9541 else
9542 echo "$as_me:$LINENO: result: no" >&5
9543echo "${ECHO_T}no" >&6
9544 fi
9545
9546
9547 enablestring=
9548 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipdlg" >&5
9549echo $ECHO_N "checking for --${enablestring:-enable}-tipdlg... $ECHO_C" >&6
9550 no_cache=0
9551 # Check whether --enable-tipdlg or --disable-tipdlg was given.
9552if test "${enable_tipdlg+set}" = set; then
9553 enableval="$enable_tipdlg"
9554
9555 if test "$enableval" = yes; then
9556 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes'
9557 else
9558 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no'
9559 fi
9560
9561else
9562
9563 LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}`
9564 if test "x$LINE" != x ; then
9565 eval "DEFAULT_$LINE"
9566 else
9567 no_cache=1
9568 fi
9569
9570 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS
9571
9572fi;
9573
9574 eval "$ac_cv_use_tipdlg"
9575 if test "$no_cache" != 1; then
9576 echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp
9577 fi
9578
9579 if test "$wxUSE_STARTUP_TIPS" = yes; then
9580 echo "$as_me:$LINENO: result: yes" >&5
9581echo "${ECHO_T}yes" >&6
9582 else
9583 echo "$as_me:$LINENO: result: no" >&5
9584echo "${ECHO_T}no" >&6
9585 fi
9586
9587
9588 enablestring=
9589 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-progressdlg" >&5
9590echo $ECHO_N "checking for --${enablestring:-enable}-progressdlg... $ECHO_C" >&6
9591 no_cache=0
9592 # Check whether --enable-progressdlg or --disable-progressdlg was given.
9593if test "${enable_progressdlg+set}" = set; then
9594 enableval="$enable_progressdlg"
9595
9596 if test "$enableval" = yes; then
9597 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes'
9598 else
9599 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no'
9600 fi
9601
9602else
9603
9604 LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}`
9605 if test "x$LINE" != x ; then
9606 eval "DEFAULT_$LINE"
9607 else
9608 no_cache=1
9609 fi
9610
9611 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG
9612
9613fi;
9614
9615 eval "$ac_cv_use_progressdlg"
9616 if test "$no_cache" != 1; then
9617 echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp
9618 fi
9619
9620 if test "$wxUSE_PROGRESSDLG" = yes; then
9621 echo "$as_me:$LINENO: result: yes" >&5
9622echo "${ECHO_T}yes" >&6
9623 else
9624 echo "$as_me:$LINENO: result: no" >&5
9625echo "${ECHO_T}no" >&6
9626 fi
9627
9628
9629 enablestring=
9630 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wizarddlg" >&5
9631echo $ECHO_N "checking for --${enablestring:-enable}-wizarddlg... $ECHO_C" >&6
9632 no_cache=0
9633 # Check whether --enable-wizarddlg or --disable-wizarddlg was given.
9634if test "${enable_wizarddlg+set}" = set; then
9635 enableval="$enable_wizarddlg"
9636
9637 if test "$enableval" = yes; then
9638 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=yes'
9639 else
9640 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=no'
9641 fi
9642
9643else
9644
9645 LINE=`grep "wxUSE_WIZARDDLG" ${wx_arg_cache_file}`
9646 if test "x$LINE" != x ; then
9647 eval "DEFAULT_$LINE"
9648 else
9649 no_cache=1
9650 fi
9651
9652 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG='$DEFAULT_wxUSE_WIZARDDLG
9653
9654fi;
9655
9656 eval "$ac_cv_use_wizarddlg"
9657 if test "$no_cache" != 1; then
9658 echo $ac_cv_use_wizarddlg >> ${wx_arg_cache_file}.tmp
9659 fi
9660
9661 if test "$wxUSE_WIZARDDLG" = yes; then
9662 echo "$as_me:$LINENO: result: yes" >&5
9663echo "${ECHO_T}yes" >&6
9664 else
9665 echo "$as_me:$LINENO: result: no" >&5
9666echo "${ECHO_T}no" >&6
9667 fi
9668
9669
9670
9671
9672 enablestring=
9673 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-menus" >&5
9674echo $ECHO_N "checking for --${enablestring:-enable}-menus... $ECHO_C" >&6
9675 no_cache=0
9676 # Check whether --enable-menus or --disable-menus was given.
9677if test "${enable_menus+set}" = set; then
9678 enableval="$enable_menus"
9679
9680 if test "$enableval" = yes; then
9681 ac_cv_use_menus='wxUSE_MENUS=yes'
9682 else
9683 ac_cv_use_menus='wxUSE_MENUS=no'
9684 fi
9685
9686else
9687
9688 LINE=`grep "wxUSE_MENUS" ${wx_arg_cache_file}`
9689 if test "x$LINE" != x ; then
9690 eval "DEFAULT_$LINE"
9691 else
9692 no_cache=1
9693 fi
9694
9695 ac_cv_use_menus='wxUSE_MENUS='$DEFAULT_wxUSE_MENUS
9696
9697fi;
9698
9699 eval "$ac_cv_use_menus"
9700 if test "$no_cache" != 1; then
9701 echo $ac_cv_use_menus >> ${wx_arg_cache_file}.tmp
9702 fi
9703
9704 if test "$wxUSE_MENUS" = yes; then
9705 echo "$as_me:$LINENO: result: yes" >&5
9706echo "${ECHO_T}yes" >&6
9707 else
9708 echo "$as_me:$LINENO: result: no" >&5
9709echo "${ECHO_T}no" >&6
9710 fi
9711
9712
9713 enablestring=
9714 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-miniframe" >&5
9715echo $ECHO_N "checking for --${enablestring:-enable}-miniframe... $ECHO_C" >&6
9716 no_cache=0
9717 # Check whether --enable-miniframe or --disable-miniframe was given.
9718if test "${enable_miniframe+set}" = set; then
9719 enableval="$enable_miniframe"
9720
9721 if test "$enableval" = yes; then
9722 ac_cv_use_miniframe='wxUSE_MINIFRAME=yes'
9723 else
9724 ac_cv_use_miniframe='wxUSE_MINIFRAME=no'
9725 fi
9726
9727else
9728
9729 LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}`
9730 if test "x$LINE" != x ; then
9731 eval "DEFAULT_$LINE"
9732 else
9733 no_cache=1
9734 fi
9735
9736 ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME
9737
9738fi;
9739
9740 eval "$ac_cv_use_miniframe"
9741 if test "$no_cache" != 1; then
9742 echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp
9743 fi
9744
9745 if test "$wxUSE_MINIFRAME" = yes; then
9746 echo "$as_me:$LINENO: result: yes" >&5
9747echo "${ECHO_T}yes" >&6
9748 else
9749 echo "$as_me:$LINENO: result: no" >&5
9750echo "${ECHO_T}no" >&6
9751 fi
9752
9753
9754 enablestring=
9755 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tooltips" >&5
9756echo $ECHO_N "checking for --${enablestring:-enable}-tooltips... $ECHO_C" >&6
9757 no_cache=0
9758 # Check whether --enable-tooltips or --disable-tooltips was given.
9759if test "${enable_tooltips+set}" = set; then
9760 enableval="$enable_tooltips"
9761
9762 if test "$enableval" = yes; then
9763 ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes'
9764 else
9765 ac_cv_use_tooltips='wxUSE_TOOLTIPS=no'
9766 fi
9767
9768else
9769
9770 LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}`
9771 if test "x$LINE" != x ; then
9772 eval "DEFAULT_$LINE"
9773 else
9774 no_cache=1
9775 fi
9776
9777 ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS
9778
9779fi;
9780
9781 eval "$ac_cv_use_tooltips"
9782 if test "$no_cache" != 1; then
9783 echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp
9784 fi
9785
9786 if test "$wxUSE_TOOLTIPS" = yes; then
9787 echo "$as_me:$LINENO: result: yes" >&5
9788echo "${ECHO_T}yes" >&6
9789 else
9790 echo "$as_me:$LINENO: result: no" >&5
9791echo "${ECHO_T}no" >&6
9792 fi
9793
9794
9795 enablestring=
9796 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splines" >&5
9797echo $ECHO_N "checking for --${enablestring:-enable}-splines... $ECHO_C" >&6
9798 no_cache=0
9799 # Check whether --enable-splines or --disable-splines was given.
9800if test "${enable_splines+set}" = set; then
9801 enableval="$enable_splines"
9802
9803 if test "$enableval" = yes; then
9804 ac_cv_use_splines='wxUSE_SPLINES=yes'
9805 else
9806 ac_cv_use_splines='wxUSE_SPLINES=no'
9807 fi
9808
9809else
9810
9811 LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}`
9812 if test "x$LINE" != x ; then
9813 eval "DEFAULT_$LINE"
9814 else
9815 no_cache=1
9816 fi
9817
9818 ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES
9819
9820fi;
9821
9822 eval "$ac_cv_use_splines"
9823 if test "$no_cache" != 1; then
9824 echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp
9825 fi
9826
9827 if test "$wxUSE_SPLINES" = yes; then
9828 echo "$as_me:$LINENO: result: yes" >&5
9829echo "${ECHO_T}yes" >&6
9830 else
9831 echo "$as_me:$LINENO: result: no" >&5
9832echo "${ECHO_T}no" >&6
9833 fi
9834
9835
fbe2ca43
SN
9836 enablestring=
9837 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mousewheel" >&5
9838echo $ECHO_N "checking for --${enablestring:-enable}-mousewheel... $ECHO_C" >&6
9839 no_cache=0
9840 # Check whether --enable-mousewheel or --disable-mousewheel was given.
9841if test "${enable_mousewheel+set}" = set; then
9842 enableval="$enable_mousewheel"
9843
9844 if test "$enableval" = yes; then
9845 ac_cv_use_mousewheel='wxUSE_MOUSEWHEEL=yes'
9846 else
9847 ac_cv_use_mousewheel='wxUSE_MOUSEWHEEL=no'
9848 fi
9849
9850else
9851
9852 LINE=`grep "wxUSE_MOUSEWHEEL" ${wx_arg_cache_file}`
9853 if test "x$LINE" != x ; then
9854 eval "DEFAULT_$LINE"
9855 else
9856 no_cache=1
9857 fi
9858
9859 ac_cv_use_mousewheel='wxUSE_MOUSEWHEEL='$DEFAULT_wxUSE_MOUSEWHEEL
9860
9861fi;
9862
9863 eval "$ac_cv_use_mousewheel"
9864 if test "$no_cache" != 1; then
9865 echo $ac_cv_use_mousewheel >> ${wx_arg_cache_file}.tmp
9866 fi
9867
9868 if test "$wxUSE_MOUSEWHEEL" = yes; then
9869 echo "$as_me:$LINENO: result: yes" >&5
9870echo "${ECHO_T}yes" >&6
9871 else
9872 echo "$as_me:$LINENO: result: no" >&5
9873echo "${ECHO_T}no" >&6
9874 fi
9875
9876
a848cd7e
SC
9877 enablestring=
9878 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-validators" >&5
9879echo $ECHO_N "checking for --${enablestring:-enable}-validators... $ECHO_C" >&6
9880 no_cache=0
9881 # Check whether --enable-validators or --disable-validators was given.
9882if test "${enable_validators+set}" = set; then
9883 enableval="$enable_validators"
9884
9885 if test "$enableval" = yes; then
9886 ac_cv_use_validators='wxUSE_VALIDATORS=yes'
9887 else
9888 ac_cv_use_validators='wxUSE_VALIDATORS=no'
9889 fi
9890
9891else
9892
9893 LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}`
9894 if test "x$LINE" != x ; then
9895 eval "DEFAULT_$LINE"
9896 else
9897 no_cache=1
9898 fi
9899
9900 ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS
9901
9902fi;
9903
9904 eval "$ac_cv_use_validators"
9905 if test "$no_cache" != 1; then
9906 echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp
9907 fi
9908
9909 if test "$wxUSE_VALIDATORS" = yes; then
9910 echo "$as_me:$LINENO: result: yes" >&5
9911echo "${ECHO_T}yes" >&6
9912 else
9913 echo "$as_me:$LINENO: result: no" >&5
9914echo "${ECHO_T}no" >&6
9915 fi
9916
9917
9918 enablestring=
9919 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-busyinfo" >&5
9920echo $ECHO_N "checking for --${enablestring:-enable}-busyinfo... $ECHO_C" >&6
9921 no_cache=0
9922 # Check whether --enable-busyinfo or --disable-busyinfo was given.
9923if test "${enable_busyinfo+set}" = set; then
9924 enableval="$enable_busyinfo"
9925
9926 if test "$enableval" = yes; then
9927 ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes'
9928 else
9929 ac_cv_use_busyinfo='wxUSE_BUSYINFO=no'
9930 fi
9931
9932else
9933
9934 LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}`
9935 if test "x$LINE" != x ; then
9936 eval "DEFAULT_$LINE"
9937 else
9938 no_cache=1
9939 fi
9940
9941 ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO
9942
9943fi;
9944
9945 eval "$ac_cv_use_busyinfo"
9946 if test "$no_cache" != 1; then
9947 echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp
9948 fi
9949
9950 if test "$wxUSE_BUSYINFO" = yes; then
9951 echo "$as_me:$LINENO: result: yes" >&5
9952echo "${ECHO_T}yes" >&6
9953 else
9954 echo "$as_me:$LINENO: result: no" >&5
9955echo "${ECHO_T}no" >&6
9956 fi
9957
9958
9959 enablestring=
9960 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-joystick" >&5
9961echo $ECHO_N "checking for --${enablestring:-enable}-joystick... $ECHO_C" >&6
9962 no_cache=0
9963 # Check whether --enable-joystick or --disable-joystick was given.
9964if test "${enable_joystick+set}" = set; then
9965 enableval="$enable_joystick"
9966
9967 if test "$enableval" = yes; then
9968 ac_cv_use_joystick='wxUSE_JOYSTICK=yes'
9969 else
9970 ac_cv_use_joystick='wxUSE_JOYSTICK=no'
9971 fi
9972
9973else
9974
9975 LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}`
9976 if test "x$LINE" != x ; then
9977 eval "DEFAULT_$LINE"
9978 else
9979 no_cache=1
9980 fi
9981
9982 ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK
9983
9984fi;
9985
9986 eval "$ac_cv_use_joystick"
9987 if test "$no_cache" != 1; then
9988 echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp
9989 fi
9990
9991 if test "$wxUSE_JOYSTICK" = yes; then
9992 echo "$as_me:$LINENO: result: yes" >&5
9993echo "${ECHO_T}yes" >&6
9994 else
9995 echo "$as_me:$LINENO: result: no" >&5
9996echo "${ECHO_T}no" >&6
9997 fi
9998
9999
10000 enablestring=
10001 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5
10002echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6
10003 no_cache=0
10004 # Check whether --enable-metafile or --disable-metafile was given.
10005if test "${enable_metafile+set}" = set; then
10006 enableval="$enable_metafile"
10007
10008 if test "$enableval" = yes; then
10009 ac_cv_use_metafile='wxUSE_METAFILE=yes'
10010 else
10011 ac_cv_use_metafile='wxUSE_METAFILE=no'
10012 fi
10013
10014else
10015
10016 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
10017 if test "x$LINE" != x ; then
10018 eval "DEFAULT_$LINE"
10019 else
10020 no_cache=1
10021 fi
10022
10023 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
10024
10025fi;
10026
10027 eval "$ac_cv_use_metafile"
10028 if test "$no_cache" != 1; then
10029 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
10030 fi
10031
10032 if test "$wxUSE_METAFILE" = yes; then
10033 echo "$as_me:$LINENO: result: yes" >&5
10034echo "${ECHO_T}yes" >&6
10035 else
10036 echo "$as_me:$LINENO: result: no" >&5
10037echo "${ECHO_T}no" >&6
10038 fi
10039
10040
10041 enablestring=
10042 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dragimage" >&5
10043echo $ECHO_N "checking for --${enablestring:-enable}-dragimage... $ECHO_C" >&6
10044 no_cache=0
10045 # Check whether --enable-dragimage or --disable-dragimage was given.
10046if test "${enable_dragimage+set}" = set; then
10047 enableval="$enable_dragimage"
10048
10049 if test "$enableval" = yes; then
10050 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=yes'
10051 else
10052 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=no'
10053 fi
10054
10055else
10056
10057 LINE=`grep "wxUSE_DRAGIMAGE" ${wx_arg_cache_file}`
10058 if test "x$LINE" != x ; then
10059 eval "DEFAULT_$LINE"
10060 else
10061 no_cache=1
10062 fi
10063
10064 ac_cv_use_dragimage='wxUSE_DRAGIMAGE='$DEFAULT_wxUSE_DRAGIMAGE
10065
10066fi;
10067
10068 eval "$ac_cv_use_dragimage"
10069 if test "$no_cache" != 1; then
10070 echo $ac_cv_use_dragimage >> ${wx_arg_cache_file}.tmp
10071 fi
10072
10073 if test "$wxUSE_DRAGIMAGE" = yes; then
10074 echo "$as_me:$LINENO: result: yes" >&5
10075echo "${ECHO_T}yes" >&6
10076 else
10077 echo "$as_me:$LINENO: result: no" >&5
10078echo "${ECHO_T}no" >&6
10079 fi
10080
10081
10082 enablestring=
10083 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accessibility" >&5
10084echo $ECHO_N "checking for --${enablestring:-enable}-accessibility... $ECHO_C" >&6
10085 no_cache=0
10086 # Check whether --enable-accessibility or --disable-accessibility was given.
10087if test "${enable_accessibility+set}" = set; then
10088 enableval="$enable_accessibility"
10089
10090 if test "$enableval" = yes; then
10091 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=yes'
10092 else
10093 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=no'
10094 fi
10095
10096else
10097
10098 LINE=`grep "wxUSE_ACCESSIBILITY" ${wx_arg_cache_file}`
10099 if test "x$LINE" != x ; then
10100 eval "DEFAULT_$LINE"
10101 else
10102 no_cache=1
10103 fi
10104
10105 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY='$DEFAULT_wxUSE_ACCESSIBILITY
10106
10107fi;
10108
10109 eval "$ac_cv_use_accessibility"
10110 if test "$no_cache" != 1; then
10111 echo $ac_cv_use_accessibility >> ${wx_arg_cache_file}.tmp
10112 fi
10113
10114 if test "$wxUSE_ACCESSIBILITY" = yes; then
10115 echo "$as_me:$LINENO: result: yes" >&5
10116echo "${ECHO_T}yes" >&6
10117 else
10118 echo "$as_me:$LINENO: result: no" >&5
10119echo "${ECHO_T}no" >&6
10120 fi
10121
10122
10123
10124
10125 enablestring=
10126 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-palette" >&5
10127echo $ECHO_N "checking for --${enablestring:-enable}-palette... $ECHO_C" >&6
10128 no_cache=0
10129 # Check whether --enable-palette or --disable-palette was given.
10130if test "${enable_palette+set}" = set; then
10131 enableval="$enable_palette"
10132
10133 if test "$enableval" = yes; then
10134 ac_cv_use_palette='wxUSE_PALETTE=yes'
10135 else
10136 ac_cv_use_palette='wxUSE_PALETTE=no'
10137 fi
10138
10139else
10140
10141 LINE=`grep "wxUSE_PALETTE" ${wx_arg_cache_file}`
10142 if test "x$LINE" != x ; then
10143 eval "DEFAULT_$LINE"
10144 else
10145 no_cache=1
10146 fi
10147
10148 ac_cv_use_palette='wxUSE_PALETTE='$DEFAULT_wxUSE_PALETTE
10149
10150fi;
10151
10152 eval "$ac_cv_use_palette"
10153 if test "$no_cache" != 1; then
10154 echo $ac_cv_use_palette >> ${wx_arg_cache_file}.tmp
10155 fi
10156
10157 if test "$wxUSE_PALETTE" = yes; then
10158 echo "$as_me:$LINENO: result: yes" >&5
10159echo "${ECHO_T}yes" >&6
10160 else
10161 echo "$as_me:$LINENO: result: no" >&5
10162echo "${ECHO_T}no" >&6
10163 fi
10164
10165
10166 enablestring=
10167 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-image" >&5
10168echo $ECHO_N "checking for --${enablestring:-enable}-image... $ECHO_C" >&6
10169 no_cache=0
10170 # Check whether --enable-image or --disable-image was given.
10171if test "${enable_image+set}" = set; then
10172 enableval="$enable_image"
10173
10174 if test "$enableval" = yes; then
10175 ac_cv_use_image='wxUSE_IMAGE=yes'
10176 else
10177 ac_cv_use_image='wxUSE_IMAGE=no'
10178 fi
10179
10180else
10181
10182 LINE=`grep "wxUSE_IMAGE" ${wx_arg_cache_file}`
10183 if test "x$LINE" != x ; then
10184 eval "DEFAULT_$LINE"
10185 else
10186 no_cache=1
10187 fi
10188
10189 ac_cv_use_image='wxUSE_IMAGE='$DEFAULT_wxUSE_IMAGE
10190
10191fi;
10192
10193 eval "$ac_cv_use_image"
10194 if test "$no_cache" != 1; then
10195 echo $ac_cv_use_image >> ${wx_arg_cache_file}.tmp
10196 fi
10197
10198 if test "$wxUSE_IMAGE" = yes; then
10199 echo "$as_me:$LINENO: result: yes" >&5
10200echo "${ECHO_T}yes" >&6
10201 else
10202 echo "$as_me:$LINENO: result: no" >&5
10203echo "${ECHO_T}no" >&6
10204 fi
10205
10206
10207 enablestring=
10208 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gif" >&5
10209echo $ECHO_N "checking for --${enablestring:-enable}-gif... $ECHO_C" >&6
10210 no_cache=0
10211 # Check whether --enable-gif or --disable-gif was given.
10212if test "${enable_gif+set}" = set; then
10213 enableval="$enable_gif"
10214
10215 if test "$enableval" = yes; then
10216 ac_cv_use_gif='wxUSE_GIF=yes'
10217 else
10218 ac_cv_use_gif='wxUSE_GIF=no'
10219 fi
10220
10221else
10222
10223 LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}`
10224 if test "x$LINE" != x ; then
10225 eval "DEFAULT_$LINE"
10226 else
10227 no_cache=1
10228 fi
10229
10230 ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF
10231
10232fi;
10233
10234 eval "$ac_cv_use_gif"
10235 if test "$no_cache" != 1; then
10236 echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp
10237 fi
10238
10239 if test "$wxUSE_GIF" = yes; then
10240 echo "$as_me:$LINENO: result: yes" >&5
10241echo "${ECHO_T}yes" >&6
10242 else
10243 echo "$as_me:$LINENO: result: no" >&5
10244echo "${ECHO_T}no" >&6
10245 fi
10246
10247
10248 enablestring=
10249 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pcx" >&5
10250echo $ECHO_N "checking for --${enablestring:-enable}-pcx... $ECHO_C" >&6
10251 no_cache=0
10252 # Check whether --enable-pcx or --disable-pcx was given.
10253if test "${enable_pcx+set}" = set; then
10254 enableval="$enable_pcx"
10255
10256 if test "$enableval" = yes; then
10257 ac_cv_use_pcx='wxUSE_PCX=yes'
10258 else
10259 ac_cv_use_pcx='wxUSE_PCX=no'
10260 fi
10261
10262else
10263
10264 LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}`
10265 if test "x$LINE" != x ; then
10266 eval "DEFAULT_$LINE"
10267 else
10268 no_cache=1
10269 fi
10270
10271 ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX
10272
10273fi;
10274
10275 eval "$ac_cv_use_pcx"
10276 if test "$no_cache" != 1; then
10277 echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp
10278 fi
10279
10280 if test "$wxUSE_PCX" = yes; then
10281 echo "$as_me:$LINENO: result: yes" >&5
10282echo "${ECHO_T}yes" >&6
10283 else
10284 echo "$as_me:$LINENO: result: no" >&5
10285echo "${ECHO_T}no" >&6
10286 fi
10287
10288
10289 enablestring=
10290 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-iff" >&5
10291echo $ECHO_N "checking for --${enablestring:-enable}-iff... $ECHO_C" >&6
10292 no_cache=0
10293 # Check whether --enable-iff or --disable-iff was given.
10294if test "${enable_iff+set}" = set; then
10295 enableval="$enable_iff"
10296
10297 if test "$enableval" = yes; then
10298 ac_cv_use_iff='wxUSE_IFF=yes'
10299 else
10300 ac_cv_use_iff='wxUSE_IFF=no'
10301 fi
10302
10303else
10304
10305 LINE=`grep "wxUSE_IFF" ${wx_arg_cache_file}`
10306 if test "x$LINE" != x ; then
10307 eval "DEFAULT_$LINE"
10308 else
10309 no_cache=1
10310 fi
10311
10312 ac_cv_use_iff='wxUSE_IFF='$DEFAULT_wxUSE_IFF
10313
10314fi;
10315
10316 eval "$ac_cv_use_iff"
10317 if test "$no_cache" != 1; then
10318 echo $ac_cv_use_iff >> ${wx_arg_cache_file}.tmp
10319 fi
10320
10321 if test "$wxUSE_IFF" = yes; then
10322 echo "$as_me:$LINENO: result: yes" >&5
10323echo "${ECHO_T}yes" >&6
10324 else
10325 echo "$as_me:$LINENO: result: no" >&5
10326echo "${ECHO_T}no" >&6
10327 fi
10328
10329
10330 enablestring=
10331 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pnm" >&5
10332echo $ECHO_N "checking for --${enablestring:-enable}-pnm... $ECHO_C" >&6
10333 no_cache=0
10334 # Check whether --enable-pnm or --disable-pnm was given.
10335if test "${enable_pnm+set}" = set; then
10336 enableval="$enable_pnm"
10337
10338 if test "$enableval" = yes; then
10339 ac_cv_use_pnm='wxUSE_PNM=yes'
10340 else
10341 ac_cv_use_pnm='wxUSE_PNM=no'
10342 fi
10343
10344else
10345
10346 LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}`
10347 if test "x$LINE" != x ; then
10348 eval "DEFAULT_$LINE"
10349 else
10350 no_cache=1
10351 fi
10352
10353 ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM
10354
10355fi;
10356
10357 eval "$ac_cv_use_pnm"
10358 if test "$no_cache" != 1; then
10359 echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp
10360 fi
10361
10362 if test "$wxUSE_PNM" = yes; then
10363 echo "$as_me:$LINENO: result: yes" >&5
10364echo "${ECHO_T}yes" >&6
10365 else
10366 echo "$as_me:$LINENO: result: no" >&5
10367echo "${ECHO_T}no" >&6
10368 fi
10369
10370
10371 enablestring=
10372 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xpm" >&5
10373echo $ECHO_N "checking for --${enablestring:-enable}-xpm... $ECHO_C" >&6
10374 no_cache=0
10375 # Check whether --enable-xpm or --disable-xpm was given.
10376if test "${enable_xpm+set}" = set; then
10377 enableval="$enable_xpm"
10378
10379 if test "$enableval" = yes; then
10380 ac_cv_use_xpm='wxUSE_XPM=yes'
10381 else
10382 ac_cv_use_xpm='wxUSE_XPM=no'
10383 fi
10384
10385else
10386
10387 LINE=`grep "wxUSE_XPM" ${wx_arg_cache_file}`
10388 if test "x$LINE" != x ; then
10389 eval "DEFAULT_$LINE"
10390 else
10391 no_cache=1
10392 fi
10393
10394 ac_cv_use_xpm='wxUSE_XPM='$DEFAULT_wxUSE_XPM
10395
10396fi;
10397
10398 eval "$ac_cv_use_xpm"
10399 if test "$no_cache" != 1; then
10400 echo $ac_cv_use_xpm >> ${wx_arg_cache_file}.tmp
10401 fi
10402
10403 if test "$wxUSE_XPM" = yes; then
10404 echo "$as_me:$LINENO: result: yes" >&5
10405echo "${ECHO_T}yes" >&6
10406 else
10407 echo "$as_me:$LINENO: result: no" >&5
10408echo "${ECHO_T}no" >&6
10409 fi
10410
10411
10412 enablestring=
10413 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ico_cur" >&5
10414echo $ECHO_N "checking for --${enablestring:-enable}-ico_cur... $ECHO_C" >&6
10415 no_cache=0
10416 # Check whether --enable-ico_cur or --disable-ico_cur was given.
10417if test "${enable_ico_cur+set}" = set; then
10418 enableval="$enable_ico_cur"
10419
10420 if test "$enableval" = yes; then
10421 ac_cv_use_ico_cur='wxUSE_ICO_CUR=yes'
10422 else
10423 ac_cv_use_ico_cur='wxUSE_ICO_CUR=no'
10424 fi
10425
10426else
10427
10428 LINE=`grep "wxUSE_ICO_CUR" ${wx_arg_cache_file}`
10429 if test "x$LINE" != x ; then
10430 eval "DEFAULT_$LINE"
10431 else
10432 no_cache=1
10433 fi
10434
10435 ac_cv_use_ico_cur='wxUSE_ICO_CUR='$DEFAULT_wxUSE_ICO_CUR
10436
10437fi;
10438
10439 eval "$ac_cv_use_ico_cur"
10440 if test "$no_cache" != 1; then
10441 echo $ac_cv_use_ico_cur >> ${wx_arg_cache_file}.tmp
10442 fi
10443
10444 if test "$wxUSE_ICO_CUR" = yes; then
10445 echo "$as_me:$LINENO: result: yes" >&5
10446echo "${ECHO_T}yes" >&6
10447 else
10448 echo "$as_me:$LINENO: result: no" >&5
10449echo "${ECHO_T}no" >&6
10450 fi
10451
10452
10453fi
10454
10455
10456
ceec2216
RL
10457# Check whether --with-flavour or --without-flavour was given.
10458if test "${with_flavour+set}" = set; then
10459 withval="$with_flavour"
10460 WX_FLAVOUR="$withval"
10461fi;
10462
10463
10464
a848cd7e
SC
10465 enablestring=
10466 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-official_build" >&5
10467echo $ECHO_N "checking for --${enablestring:-enable}-official_build... $ECHO_C" >&6
10468 no_cache=0
10469 # Check whether --enable-official_build or --disable-official_build was given.
10470if test "${enable_official_build+set}" = set; then
10471 enableval="$enable_official_build"
10472
10473 if test "$enableval" = yes; then
10474 ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD=yes'
10475 else
10476 ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD=no'
10477 fi
10478
10479else
10480
10481 LINE=`grep "wxUSE_OFFICIAL_BUILD" ${wx_arg_cache_file}`
10482 if test "x$LINE" != x ; then
10483 eval "DEFAULT_$LINE"
10484 else
10485 no_cache=1
10486 fi
10487
10488 ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD='$DEFAULT_wxUSE_OFFICIAL_BUILD
10489
10490fi;
10491
10492 eval "$ac_cv_use_official_build"
10493 if test "$no_cache" != 1; then
10494 echo $ac_cv_use_official_build >> ${wx_arg_cache_file}.tmp
10495 fi
10496
10497 if test "$wxUSE_OFFICIAL_BUILD" = yes; then
10498 echo "$as_me:$LINENO: result: yes" >&5
10499echo "${ECHO_T}yes" >&6
10500 else
10501 echo "$as_me:$LINENO: result: no" >&5
10502echo "${ECHO_T}no" >&6
10503 fi
10504
10505# Check whether --enable-vendor or --disable-vendor was given.
10506if test "${enable_vendor+set}" = set; then
10507 enableval="$enable_vendor"
10508 VENDOR="$enableval"
10509fi;
10510if test "x$VENDOR" = "x"; then
10511 VENDOR="custom"
10512fi
10513
a848cd7e
SC
10514
10515
10516
10517 echo "saving argument cache $wx_arg_cache_file"
10518 mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file}
10519
10520
10521
10522echo "$as_me:$LINENO: checking for toolkit" >&5
10523echo $ECHO_N "checking for toolkit... $ECHO_C" >&6
10524
10525# In Wine, we need to default to MSW, not GTK or MOTIF
10526if test "$wxUSE_WINE" = "yes"; then
10527 DEFAULT_DEFAULT_wxUSE_GTK=0
10528 DEFAULT_DEFAULT_wxUSE_MOTIF=0
10529 DEFAULT_DEFAULT_wxUSE_MSW=1
10530 wxUSE_SHARED=no
10531fi
10532
f597b41c
MW
10533if test "$wxUSE_GTK1" = "yes" -o "$wxUSE_GTK2" = "yes"; then
10534 wxUSE_GTK=yes
10535 TOOLKIT_GIVEN=1
10536fi
10537
a848cd7e
SC
10538if test "$wxUSE_GUI" = "yes"; then
10539
10540 if test "$USE_BEOS" = 1; then
10541 { { echo "$as_me:$LINENO: error: BeOS GUI is not supported yet, use --disable-gui" >&5
10542echo "$as_me: error: BeOS GUI is not supported yet, use --disable-gui" >&2;}
10543 { (exit 1); exit 1; }; }
10544 fi
10545
10546 if test "$TOOLKIT_GIVEN" = 1; then
10547 for toolkit in `echo $ALL_TOOLKITS`; do
10548 var=wxUSE_$toolkit
10549 eval "value=\$${var}"
10550 eval "$var=`echo \$value | sed -e "s/yes/1/" -e "s/no/0/"`"
10551 done
10552 else
10553 for toolkit in `echo $ALL_TOOLKITS`; do
10554 if test "$has_toolkit_in_cache" != 1; then
10555 var=DEFAULT_DEFAULT_wxUSE_$toolkit
10556 else
10557 var=DEFAULT_wxUSE_$toolkit
10558 fi
10559 eval "wxUSE_$toolkit=\$${var}"
10560 done
10561 fi
10562
10563 NUM_TOOLKITS=`expr ${wxUSE_COCOA:-0} + ${wxUSE_GTK:-0} + ${wxUSE_MAC:-0} \
10564 + ${wxUSE_MGL:-0} + ${wxUSE_MICROWIN:-0} \
10565 + ${wxUSE_MOTIF:-0} + ${wxUSE_MSW:-0} + ${wxUSE_X11:-0}`
10566
10567 case "${host}" in
10568 *-pc-os2_emx | *-pc-os2-emx )
10569 NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}`
10570 esac
10571
10572 case "$NUM_TOOLKITS" in
10573 1)
10574 ;;
10575 0)
10576 { { echo "$as_me:$LINENO: error: Please specify a toolkit -- cannot determine the default for ${host}" >&5
10577echo "$as_me: error: Please specify a toolkit -- cannot determine the default for ${host}" >&2;}
10578 { (exit 1); exit 1; }; }
10579 ;;
10580 *)
10581 { { echo "$as_me:$LINENO: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&5
10582echo "$as_me: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&2;}
10583 { (exit 1); exit 1; }; }
10584 esac
10585
10586 for toolkit in `echo $ALL_TOOLKITS`; do
10587 var=wxUSE_$toolkit
10588 eval "value=\$${var}"
10589 if test "x$value" != x; then
10590 cache_var=CACHE_$toolkit
10591 eval "cache=\$${cache_var}"
10592 if test "$cache" = 1; then
10593 echo "$var=$value" >> ${wx_arg_cache_file}
10594 fi
10595 if test "$value" = 1; then
10596 toolkit_echo=`echo $toolkit | tr "[A-Z]" "[a-z]"`
10597 echo "$as_me:$LINENO: result: $toolkit_echo" >&5
10598echo "${ECHO_T}$toolkit_echo" >&6
10599 fi
10600 fi
10601 done
10602else
10603 if test "x$host_alias" != "x"; then
10604 echo "$as_me:$LINENO: result: base ($host_alias hosted) only" >&5
10605echo "${ECHO_T}base ($host_alias hosted) only" >&6
10606 else
10607 echo "$as_me:$LINENO: result: base only" >&5
10608echo "${ECHO_T}base only" >&6
10609 fi
10610fi
10611
10612wants_win32=0
10613doesnt_want_win32=0
10614case "${host}" in
10615 *-*-cygwin*)
10616 if test "$wxUSE_MSW" = 1 ; then
10617 wants_win32=1
10618 else
10619 doesnt_want_win32=1
10620 fi
10621 ;;
10622 *-*-mingw*)
10623 wants_win32=1
10624 ;;
10625esac
10626
10627if test "$wxUSE_WINE" = "yes"; then
10628 wants_win32=1
10629 CC=winegcc
10630 CXX=wineg++
10631 RESCOMP=wrc
10632 LDFLAGS_GUI="-mwindows"
10633fi
10634
10635if test "$wants_win32" = 1 ; then
10636 USE_UNIX=0
10637 USE_WIN32=1
10638 cat >>confdefs.h <<\_ACEOF
10639#define __WIN32__ 1
10640_ACEOF
10641
10642 cat >>confdefs.h <<\_ACEOF
10643#define __WIN95__ 1
10644_ACEOF
10645
10646 cat >>confdefs.h <<\_ACEOF
10647#define __WINDOWS__ 1
10648_ACEOF
10649
10650 cat >>confdefs.h <<\_ACEOF
10651#define __GNUWIN32__ 1
10652_ACEOF
10653
10654 cat >>confdefs.h <<\_ACEOF
10655#define STRICT 1
10656_ACEOF
10657
10658 cat >>confdefs.h <<\_ACEOF
10659#define WINVER 0x0400
10660_ACEOF
10661
10662fi
10663if test "$doesnt_want_win32" = 1 ; then
10664 USE_UNIX=1
10665 USE_WIN32=0
10666fi
10667
10668if test "$USE_UNIX" = 1 ; then
10669 wxUSE_UNIX=yes
10670 cat >>confdefs.h <<\_ACEOF
10671#define __UNIX__ 1
10672_ACEOF
10673
10674fi
10675
10676
10677cat >confcache <<\_ACEOF
10678# This file is a shell script that caches the results of configure
10679# tests run on this system so they can be shared between configure
10680# scripts and configure runs, see configure's option --config-cache.
10681# It is not useful on other systems. If it contains results you don't
10682# want to keep, you may remove or edit it.
10683#
10684# config.status only pays attention to the cache file if you give it
10685# the --recheck option to rerun configure.
10686#
10687# `ac_cv_env_foo' variables (set or unset) will be overridden when
10688# loading this file, other *unset* `ac_cv_foo' will be assigned the
10689# following values.
10690
10691_ACEOF
10692
10693# The following way of writing the cache mishandles newlines in values,
10694# but we know of no workaround that is simple, portable, and efficient.
10695# So, don't put newlines in cache variables' values.
10696# Ultrix sh set writes to stderr and can't be redirected directly,
10697# and sets the high bit in the cache file unless we assign to the vars.
10698{
10699 (set) 2>&1 |
10700 case `(ac_space=' '; set | grep ac_space) 2>&1` in
10701 *ac_space=\ *)
10702 # `set' does not quote correctly, so add quotes (double-quote
10703 # substitution turns \\\\ into \\, and sed turns \\ into \).
10704 sed -n \
ac1cb8d3
VS
10705 "s/'/'\\\\''/g;
10706 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a848cd7e
SC
10707 ;;
10708 *)
10709 # `set' quotes correctly as required by POSIX, so do not add quotes.
10710 sed -n \
ac1cb8d3 10711 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
10712 ;;
10713 esac;
10714} |
10715 sed '
10716 t clear
10717 : clear
10718 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10719 t end
10720 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10721 : end' >>confcache
10722if diff $cache_file confcache >/dev/null 2>&1; then :; else
10723 if test -w $cache_file; then
10724 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
10725 cat confcache >$cache_file
10726 else
10727 echo "not updating unwritable cache $cache_file"
10728 fi
10729fi
10730rm -f confcache
10731
10732if test "$build" != "$host" ; then
1e9e8aba 10733 if test "$USE_WIN32" = 1 -o "$USE_DOS" = 1 -o "$USE_UNIX" = 1; then
a848cd7e
SC
10734 CC=$host_alias-gcc
10735 CXX=$host_alias-c++
10736 AR=$host_alias-ar
10737 RANLIB=$host_alias-ranlib
10738 DLLTOOL=$host_alias-dlltool
10739 RESCOMP=$host_alias-windres
a848cd7e 10740 STRIP=$host_alias-strip
1e9e8aba
DE
10741 elif test "x$CC" '!=' "x"; then
10742 echo "You set CC, I assume you know what you are doing."
a848cd7e
SC
10743 else
10744 { { echo "$as_me:$LINENO: error: $build_alias -> $host_alias cross compilation not supported yet." >&5
10745echo "$as_me: error: $build_alias -> $host_alias cross compilation not supported yet." >&2;}
10746 { (exit 1); exit 1; }; }
10747 fi
10748fi
10749
10750CFLAGS=${CFLAGS:=}
6dcfc289
DE
10751
10752
10753 ac_ext=c
a848cd7e
SC
10754ac_cpp='$CPP $CPPFLAGS'
10755ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10756ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10757ac_compiler_gnu=$ac_cv_c_compiler_gnu
10758if test -n "$ac_tool_prefix"; then
10759 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
10760set dummy ${ac_tool_prefix}gcc; ac_word=$2
10761echo "$as_me:$LINENO: checking for $ac_word" >&5
10762echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10763if test "${ac_cv_prog_CC+set}" = set; then
10764 echo $ECHO_N "(cached) $ECHO_C" >&6
10765else
10766 if test -n "$CC"; then
10767 ac_cv_prog_CC="$CC" # Let the user override the test.
10768else
10769as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10770for as_dir in $PATH
10771do
10772 IFS=$as_save_IFS
10773 test -z "$as_dir" && as_dir=.
10774 for ac_exec_ext in '' $ac_executable_extensions; do
10775 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10776 ac_cv_prog_CC="${ac_tool_prefix}gcc"
10777 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10778 break 2
10779 fi
10780done
10781done
10782
10783fi
10784fi
10785CC=$ac_cv_prog_CC
10786if test -n "$CC"; then
10787 echo "$as_me:$LINENO: result: $CC" >&5
10788echo "${ECHO_T}$CC" >&6
10789else
10790 echo "$as_me:$LINENO: result: no" >&5
10791echo "${ECHO_T}no" >&6
10792fi
10793
10794fi
10795if test -z "$ac_cv_prog_CC"; then
10796 ac_ct_CC=$CC
10797 # Extract the first word of "gcc", so it can be a program name with args.
10798set dummy gcc; ac_word=$2
10799echo "$as_me:$LINENO: checking for $ac_word" >&5
10800echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10801if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
10802 echo $ECHO_N "(cached) $ECHO_C" >&6
10803else
10804 if test -n "$ac_ct_CC"; then
10805 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
10806else
10807as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10808for as_dir in $PATH
10809do
10810 IFS=$as_save_IFS
10811 test -z "$as_dir" && as_dir=.
10812 for ac_exec_ext in '' $ac_executable_extensions; do
10813 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10814 ac_cv_prog_ac_ct_CC="gcc"
10815 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10816 break 2
10817 fi
10818done
10819done
10820
10821fi
10822fi
10823ac_ct_CC=$ac_cv_prog_ac_ct_CC
10824if test -n "$ac_ct_CC"; then
10825 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
10826echo "${ECHO_T}$ac_ct_CC" >&6
10827else
10828 echo "$as_me:$LINENO: result: no" >&5
10829echo "${ECHO_T}no" >&6
10830fi
10831
10832 CC=$ac_ct_CC
10833else
10834 CC="$ac_cv_prog_CC"
10835fi
10836
10837if test -z "$CC"; then
10838 if test -n "$ac_tool_prefix"; then
10839 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
10840set dummy ${ac_tool_prefix}cc; ac_word=$2
10841echo "$as_me:$LINENO: checking for $ac_word" >&5
10842echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10843if test "${ac_cv_prog_CC+set}" = set; then
10844 echo $ECHO_N "(cached) $ECHO_C" >&6
10845else
10846 if test -n "$CC"; then
10847 ac_cv_prog_CC="$CC" # Let the user override the test.
10848else
10849as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10850for as_dir in $PATH
10851do
10852 IFS=$as_save_IFS
10853 test -z "$as_dir" && as_dir=.
10854 for ac_exec_ext in '' $ac_executable_extensions; do
10855 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10856 ac_cv_prog_CC="${ac_tool_prefix}cc"
10857 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10858 break 2
10859 fi
10860done
10861done
10862
10863fi
10864fi
10865CC=$ac_cv_prog_CC
10866if test -n "$CC"; then
10867 echo "$as_me:$LINENO: result: $CC" >&5
10868echo "${ECHO_T}$CC" >&6
10869else
10870 echo "$as_me:$LINENO: result: no" >&5
10871echo "${ECHO_T}no" >&6
10872fi
10873
10874fi
10875if test -z "$ac_cv_prog_CC"; then
10876 ac_ct_CC=$CC
10877 # Extract the first word of "cc", so it can be a program name with args.
10878set dummy cc; ac_word=$2
10879echo "$as_me:$LINENO: checking for $ac_word" >&5
10880echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10881if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
10882 echo $ECHO_N "(cached) $ECHO_C" >&6
10883else
10884 if test -n "$ac_ct_CC"; then
10885 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
10886else
10887as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10888for as_dir in $PATH
10889do
10890 IFS=$as_save_IFS
10891 test -z "$as_dir" && as_dir=.
10892 for ac_exec_ext in '' $ac_executable_extensions; do
10893 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10894 ac_cv_prog_ac_ct_CC="cc"
10895 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10896 break 2
10897 fi
10898done
10899done
10900
10901fi
10902fi
10903ac_ct_CC=$ac_cv_prog_ac_ct_CC
10904if test -n "$ac_ct_CC"; then
10905 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
10906echo "${ECHO_T}$ac_ct_CC" >&6
10907else
10908 echo "$as_me:$LINENO: result: no" >&5
10909echo "${ECHO_T}no" >&6
10910fi
10911
10912 CC=$ac_ct_CC
10913else
10914 CC="$ac_cv_prog_CC"
10915fi
10916
10917fi
10918if test -z "$CC"; then
10919 # Extract the first word of "cc", so it can be a program name with args.
10920set dummy cc; ac_word=$2
10921echo "$as_me:$LINENO: checking for $ac_word" >&5
10922echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10923if test "${ac_cv_prog_CC+set}" = set; then
10924 echo $ECHO_N "(cached) $ECHO_C" >&6
10925else
10926 if test -n "$CC"; then
10927 ac_cv_prog_CC="$CC" # Let the user override the test.
10928else
10929 ac_prog_rejected=no
10930as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10931for as_dir in $PATH
10932do
10933 IFS=$as_save_IFS
10934 test -z "$as_dir" && as_dir=.
10935 for ac_exec_ext in '' $ac_executable_extensions; do
10936 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10937 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
10938 ac_prog_rejected=yes
10939 continue
10940 fi
10941 ac_cv_prog_CC="cc"
10942 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10943 break 2
10944 fi
10945done
10946done
10947
10948if test $ac_prog_rejected = yes; then
10949 # We found a bogon in the path, so make sure we never use it.
10950 set dummy $ac_cv_prog_CC
10951 shift
10952 if test $# != 0; then
10953 # We chose a different compiler from the bogus one.
10954 # However, it has the same basename, so the bogon will be chosen
10955 # first if we set CC to just the basename; use the full file name.
10956 shift
10957 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
10958 fi
10959fi
10960fi
10961fi
10962CC=$ac_cv_prog_CC
10963if test -n "$CC"; then
10964 echo "$as_me:$LINENO: result: $CC" >&5
10965echo "${ECHO_T}$CC" >&6
10966else
10967 echo "$as_me:$LINENO: result: no" >&5
10968echo "${ECHO_T}no" >&6
10969fi
10970
10971fi
10972if test -z "$CC"; then
10973 if test -n "$ac_tool_prefix"; then
10974 for ac_prog in cl
10975 do
10976 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10977set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10978echo "$as_me:$LINENO: checking for $ac_word" >&5
10979echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10980if test "${ac_cv_prog_CC+set}" = set; then
10981 echo $ECHO_N "(cached) $ECHO_C" >&6
10982else
10983 if test -n "$CC"; then
10984 ac_cv_prog_CC="$CC" # Let the user override the test.
10985else
10986as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10987for as_dir in $PATH
10988do
10989 IFS=$as_save_IFS
10990 test -z "$as_dir" && as_dir=.
10991 for ac_exec_ext in '' $ac_executable_extensions; do
10992 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10993 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
10994 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10995 break 2
10996 fi
10997done
10998done
10999
11000fi
11001fi
11002CC=$ac_cv_prog_CC
11003if test -n "$CC"; then
11004 echo "$as_me:$LINENO: result: $CC" >&5
11005echo "${ECHO_T}$CC" >&6
11006else
11007 echo "$as_me:$LINENO: result: no" >&5
11008echo "${ECHO_T}no" >&6
11009fi
11010
11011 test -n "$CC" && break
11012 done
11013fi
11014if test -z "$CC"; then
11015 ac_ct_CC=$CC
11016 for ac_prog in cl
11017do
11018 # Extract the first word of "$ac_prog", so it can be a program name with args.
11019set dummy $ac_prog; ac_word=$2
11020echo "$as_me:$LINENO: checking for $ac_word" >&5
11021echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11022if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
11023 echo $ECHO_N "(cached) $ECHO_C" >&6
11024else
11025 if test -n "$ac_ct_CC"; then
11026 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11027else
11028as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11029for as_dir in $PATH
11030do
11031 IFS=$as_save_IFS
11032 test -z "$as_dir" && as_dir=.
11033 for ac_exec_ext in '' $ac_executable_extensions; do
11034 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11035 ac_cv_prog_ac_ct_CC="$ac_prog"
11036 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11037 break 2
11038 fi
11039done
11040done
11041
11042fi
11043fi
11044ac_ct_CC=$ac_cv_prog_ac_ct_CC
11045if test -n "$ac_ct_CC"; then
11046 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
11047echo "${ECHO_T}$ac_ct_CC" >&6
11048else
11049 echo "$as_me:$LINENO: result: no" >&5
11050echo "${ECHO_T}no" >&6
11051fi
11052
11053 test -n "$ac_ct_CC" && break
11054done
11055
11056 CC=$ac_ct_CC
11057fi
11058
11059fi
11060
11061
11062test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
11063See \`config.log' for more details." >&5
11064echo "$as_me: error: no acceptable C compiler found in \$PATH
11065See \`config.log' for more details." >&2;}
11066 { (exit 1); exit 1; }; }
11067
11068# Provide some information about the compiler.
11069echo "$as_me:$LINENO:" \
11070 "checking for C compiler version" >&5
11071ac_compiler=`set X $ac_compile; echo $2`
11072{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
11073 (eval $ac_compiler --version </dev/null >&5) 2>&5
11074 ac_status=$?
11075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11076 (exit $ac_status); }
11077{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
11078 (eval $ac_compiler -v </dev/null >&5) 2>&5
11079 ac_status=$?
11080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11081 (exit $ac_status); }
11082{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
11083 (eval $ac_compiler -V </dev/null >&5) 2>&5
11084 ac_status=$?
11085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11086 (exit $ac_status); }
11087
11088cat >conftest.$ac_ext <<_ACEOF
11089/* confdefs.h. */
11090_ACEOF
11091cat confdefs.h >>conftest.$ac_ext
11092cat >>conftest.$ac_ext <<_ACEOF
11093/* end confdefs.h. */
11094
11095int
11096main ()
11097{
11098
11099 ;
11100 return 0;
11101}
11102_ACEOF
11103ac_clean_files_save=$ac_clean_files
11104ac_clean_files="$ac_clean_files a.out a.exe b.out"
11105# Try to create an executable without -o first, disregard a.out.
11106# It will help us diagnose broken compilers, and finding out an intuition
11107# of exeext.
ac1cb8d3
VS
11108echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
11109echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
a848cd7e
SC
11110ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
11111if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
11112 (eval $ac_link_default) 2>&5
11113 ac_status=$?
11114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11115 (exit $ac_status); }; then
11116 # Find the output, starting from the most likely. This scheme is
11117# not robust to junk in `.', hence go to wildcards (a.*) only as a last
11118# resort.
11119
11120# Be careful to initialize this variable, since it used to be cached.
11121# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
11122ac_cv_exeext=
11123# b.out is created by i960 compilers.
11124for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
11125do
11126 test -f "$ac_file" || continue
11127 case $ac_file in
11128 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
ac1cb8d3 11129 ;;
a848cd7e 11130 conftest.$ac_ext )
ac1cb8d3
VS
11131 # This is the source file.
11132 ;;
a848cd7e 11133 [ab].out )
ac1cb8d3
VS
11134 # We found the default executable, but exeext='' is most
11135 # certainly right.
11136 break;;
a848cd7e 11137 *.* )
ac1cb8d3
VS
11138 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
11139 # FIXME: I believe we export ac_cv_exeext for Libtool,
11140 # but it would be cool to find out if it's true. Does anybody
11141 # maintain Libtool? --akim.
11142 export ac_cv_exeext
11143 break;;
a848cd7e 11144 * )
ac1cb8d3 11145 break;;
a848cd7e
SC
11146 esac
11147done
11148else
11149 echo "$as_me: failed program was:" >&5
11150sed 's/^/| /' conftest.$ac_ext >&5
11151
11152{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
11153See \`config.log' for more details." >&5
11154echo "$as_me: error: C compiler cannot create executables
11155See \`config.log' for more details." >&2;}
11156 { (exit 77); exit 77; }; }
11157fi
11158
11159ac_exeext=$ac_cv_exeext
11160echo "$as_me:$LINENO: result: $ac_file" >&5
11161echo "${ECHO_T}$ac_file" >&6
11162
11163# Check the compiler produces executables we can run. If not, either
11164# the compiler is broken, or we cross compile.
11165echo "$as_me:$LINENO: checking whether the C compiler works" >&5
11166echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
11167# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
11168# If not cross compiling, check that we can run a simple program.
11169if test "$cross_compiling" != yes; then
11170 if { ac_try='./$ac_file'
11171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11172 (eval $ac_try) 2>&5
11173 ac_status=$?
11174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11175 (exit $ac_status); }; }; then
11176 cross_compiling=no
11177 else
11178 if test "$cross_compiling" = maybe; then
11179 cross_compiling=yes
11180 else
11181 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
11182If you meant to cross compile, use \`--host'.
11183See \`config.log' for more details." >&5
11184echo "$as_me: error: cannot run C compiled programs.
11185If you meant to cross compile, use \`--host'.
11186See \`config.log' for more details." >&2;}
11187 { (exit 1); exit 1; }; }
11188 fi
11189 fi
11190fi
11191echo "$as_me:$LINENO: result: yes" >&5
11192echo "${ECHO_T}yes" >&6
11193
11194rm -f a.out a.exe conftest$ac_cv_exeext b.out
11195ac_clean_files=$ac_clean_files_save
11196# Check the compiler produces executables we can run. If not, either
11197# the compiler is broken, or we cross compile.
11198echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
11199echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
11200echo "$as_me:$LINENO: result: $cross_compiling" >&5
11201echo "${ECHO_T}$cross_compiling" >&6
11202
11203echo "$as_me:$LINENO: checking for suffix of executables" >&5
11204echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
11205if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11206 (eval $ac_link) 2>&5
11207 ac_status=$?
11208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11209 (exit $ac_status); }; then
11210 # If both `conftest.exe' and `conftest' are `present' (well, observable)
11211# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
11212# work properly (i.e., refer to `conftest.exe'), while it won't with
11213# `rm'.
11214for ac_file in conftest.exe conftest conftest.*; do
11215 test -f "$ac_file" || continue
11216 case $ac_file in
11217 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
11218 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
ac1cb8d3
VS
11219 export ac_cv_exeext
11220 break;;
a848cd7e
SC
11221 * ) break;;
11222 esac
11223done
11224else
11225 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
11226See \`config.log' for more details." >&5
11227echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
11228See \`config.log' for more details." >&2;}
11229 { (exit 1); exit 1; }; }
11230fi
11231
11232rm -f conftest$ac_cv_exeext
11233echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
11234echo "${ECHO_T}$ac_cv_exeext" >&6
11235
11236rm -f conftest.$ac_ext
11237EXEEXT=$ac_cv_exeext
11238ac_exeext=$EXEEXT
11239echo "$as_me:$LINENO: checking for suffix of object files" >&5
11240echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
11241if test "${ac_cv_objext+set}" = set; then
11242 echo $ECHO_N "(cached) $ECHO_C" >&6
11243else
11244 cat >conftest.$ac_ext <<_ACEOF
11245/* confdefs.h. */
11246_ACEOF
11247cat confdefs.h >>conftest.$ac_ext
11248cat >>conftest.$ac_ext <<_ACEOF
11249/* end confdefs.h. */
11250
11251int
11252main ()
11253{
11254
11255 ;
11256 return 0;
11257}
11258_ACEOF
11259rm -f conftest.o conftest.obj
11260if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11261 (eval $ac_compile) 2>&5
11262 ac_status=$?
11263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11264 (exit $ac_status); }; then
11265 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
11266 case $ac_file in
11267 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
11268 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
11269 break;;
11270 esac
11271done
11272else
11273 echo "$as_me: failed program was:" >&5
11274sed 's/^/| /' conftest.$ac_ext >&5
11275
11276{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
11277See \`config.log' for more details." >&5
11278echo "$as_me: error: cannot compute suffix of object files: cannot compile
11279See \`config.log' for more details." >&2;}
11280 { (exit 1); exit 1; }; }
11281fi
11282
11283rm -f conftest.$ac_cv_objext conftest.$ac_ext
11284fi
11285echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
11286echo "${ECHO_T}$ac_cv_objext" >&6
11287OBJEXT=$ac_cv_objext
11288ac_objext=$OBJEXT
11289echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
11290echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
11291if test "${ac_cv_c_compiler_gnu+set}" = set; then
11292 echo $ECHO_N "(cached) $ECHO_C" >&6
11293else
11294 cat >conftest.$ac_ext <<_ACEOF
11295/* confdefs.h. */
11296_ACEOF
11297cat confdefs.h >>conftest.$ac_ext
11298cat >>conftest.$ac_ext <<_ACEOF
11299/* end confdefs.h. */
11300
11301int
11302main ()
11303{
11304#ifndef __GNUC__
11305 choke me
11306#endif
11307
11308 ;
11309 return 0;
11310}
11311_ACEOF
11312rm -f conftest.$ac_objext
11313if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11314 (eval $ac_compile) 2>conftest.er1
a848cd7e 11315 ac_status=$?
ac1cb8d3
VS
11316 grep -v '^ *+' conftest.er1 >conftest.err
11317 rm -f conftest.er1
11318 cat conftest.err >&5
a848cd7e
SC
11319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11320 (exit $ac_status); } &&
9dd0f6c2 11321 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
11322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11323 (eval $ac_try) 2>&5
11324 ac_status=$?
11325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11326 (exit $ac_status); }; } &&
11327 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11329 (eval $ac_try) 2>&5
11330 ac_status=$?
11331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11332 (exit $ac_status); }; }; then
11333 ac_compiler_gnu=yes
11334else
11335 echo "$as_me: failed program was:" >&5
11336sed 's/^/| /' conftest.$ac_ext >&5
11337
11338ac_compiler_gnu=no
11339fi
ac1cb8d3 11340rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11341ac_cv_c_compiler_gnu=$ac_compiler_gnu
11342
11343fi
11344echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
11345echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
11346GCC=`test $ac_compiler_gnu = yes && echo yes`
11347ac_test_CFLAGS=${CFLAGS+set}
11348ac_save_CFLAGS=$CFLAGS
52ada004 11349CFLAGS="-g"
a848cd7e
SC
11350echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
11351echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
11352if test "${ac_cv_prog_cc_g+set}" = set; then
11353 echo $ECHO_N "(cached) $ECHO_C" >&6
11354else
11355 cat >conftest.$ac_ext <<_ACEOF
11356/* confdefs.h. */
11357_ACEOF
11358cat confdefs.h >>conftest.$ac_ext
11359cat >>conftest.$ac_ext <<_ACEOF
11360/* end confdefs.h. */
11361
11362int
11363main ()
11364{
11365
11366 ;
11367 return 0;
11368}
11369_ACEOF
11370rm -f conftest.$ac_objext
11371if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11372 (eval $ac_compile) 2>conftest.er1
a848cd7e 11373 ac_status=$?
ac1cb8d3
VS
11374 grep -v '^ *+' conftest.er1 >conftest.err
11375 rm -f conftest.er1
11376 cat conftest.err >&5
a848cd7e
SC
11377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11378 (exit $ac_status); } &&
9dd0f6c2 11379 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
11380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11381 (eval $ac_try) 2>&5
11382 ac_status=$?
11383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11384 (exit $ac_status); }; } &&
11385 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11387 (eval $ac_try) 2>&5
11388 ac_status=$?
11389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11390 (exit $ac_status); }; }; then
11391 ac_cv_prog_cc_g=yes
11392else
11393 echo "$as_me: failed program was:" >&5
11394sed 's/^/| /' conftest.$ac_ext >&5
11395
11396ac_cv_prog_cc_g=no
11397fi
ac1cb8d3 11398rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11399fi
11400echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
11401echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
11402if test "$ac_test_CFLAGS" = set; then
11403 CFLAGS=$ac_save_CFLAGS
11404elif test $ac_cv_prog_cc_g = yes; then
11405 if test "$GCC" = yes; then
11406 CFLAGS="-g -O2"
11407 else
11408 CFLAGS="-g"
11409 fi
11410else
11411 if test "$GCC" = yes; then
11412 CFLAGS="-O2"
11413 else
11414 CFLAGS=
11415 fi
11416fi
11417echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
11418echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
11419if test "${ac_cv_prog_cc_stdc+set}" = set; then
11420 echo $ECHO_N "(cached) $ECHO_C" >&6
11421else
11422 ac_cv_prog_cc_stdc=no
11423ac_save_CC=$CC
11424cat >conftest.$ac_ext <<_ACEOF
11425/* confdefs.h. */
11426_ACEOF
11427cat confdefs.h >>conftest.$ac_ext
11428cat >>conftest.$ac_ext <<_ACEOF
11429/* end confdefs.h. */
11430#include <stdarg.h>
11431#include <stdio.h>
11432#include <sys/types.h>
11433#include <sys/stat.h>
11434/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
11435struct buf { int x; };
11436FILE * (*rcsopen) (struct buf *, struct stat *, int);
11437static char *e (p, i)
11438 char **p;
11439 int i;
11440{
11441 return p[i];
11442}
11443static char *f (char * (*g) (char **, int), char **p, ...)
11444{
11445 char *s;
11446 va_list v;
11447 va_start (v,p);
11448 s = g (p, va_arg (v,int));
11449 va_end (v);
11450 return s;
11451}
ac1cb8d3
VS
11452
11453/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
11454 function prototypes and stuff, but not '\xHH' hex character constants.
11455 These don't provoke an error unfortunately, instead are silently treated
11456 as 'x'. The following induces an error, until -std1 is added to get
11457 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
11458 array size at least. It's necessary to write '\x00'==0 to get something
11459 that's true only with -std1. */
11460int osf4_cc_array ['\x00' == 0 ? 1 : -1];
11461
a848cd7e
SC
11462int test (int i, double x);
11463struct s1 {int (*f) (int a);};
11464struct s2 {int (*f) (double a);};
11465int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
11466int argc;
11467char **argv;
11468int
11469main ()
11470{
11471return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
11472 ;
11473 return 0;
11474}
11475_ACEOF
11476# Don't try gcc -ansi; that turns off useful extensions and
11477# breaks some systems' header files.
11478# AIX -qlanglvl=ansi
11479# Ultrix and OSF/1 -std1
11480# HP-UX 10.20 and later -Ae
11481# HP-UX older versions -Aa -D_HPUX_SOURCE
11482# SVR4 -Xc -D__EXTENSIONS__
11483for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
11484do
11485 CC="$ac_save_CC $ac_arg"
11486 rm -f conftest.$ac_objext
11487if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11488 (eval $ac_compile) 2>conftest.er1
a848cd7e 11489 ac_status=$?
ac1cb8d3
VS
11490 grep -v '^ *+' conftest.er1 >conftest.err
11491 rm -f conftest.er1
11492 cat conftest.err >&5
a848cd7e
SC
11493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11494 (exit $ac_status); } &&
9dd0f6c2 11495 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
11496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11497 (eval $ac_try) 2>&5
11498 ac_status=$?
11499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11500 (exit $ac_status); }; } &&
11501 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11503 (eval $ac_try) 2>&5
11504 ac_status=$?
11505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11506 (exit $ac_status); }; }; then
11507 ac_cv_prog_cc_stdc=$ac_arg
11508break
11509else
11510 echo "$as_me: failed program was:" >&5
11511sed 's/^/| /' conftest.$ac_ext >&5
11512
11513fi
ac1cb8d3 11514rm -f conftest.err conftest.$ac_objext
a848cd7e
SC
11515done
11516rm -f conftest.$ac_ext conftest.$ac_objext
11517CC=$ac_save_CC
11518
11519fi
11520
11521case "x$ac_cv_prog_cc_stdc" in
11522 x|xno)
11523 echo "$as_me:$LINENO: result: none needed" >&5
11524echo "${ECHO_T}none needed" >&6 ;;
11525 *)
11526 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
11527echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
11528 CC="$CC $ac_cv_prog_cc_stdc" ;;
11529esac
11530
11531# Some people use a C++ compiler to compile C. Since we use `exit',
11532# in C++ we need to declare it. In case someone uses the same compiler
11533# for both compiling C and C++ we need to have the C++ compiler decide
11534# the declaration of exit, since it's the most demanding environment.
11535cat >conftest.$ac_ext <<_ACEOF
11536#ifndef __cplusplus
11537 choke me
11538#endif
11539_ACEOF
11540rm -f conftest.$ac_objext
11541if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11542 (eval $ac_compile) 2>conftest.er1
a848cd7e 11543 ac_status=$?
ac1cb8d3
VS
11544 grep -v '^ *+' conftest.er1 >conftest.err
11545 rm -f conftest.er1
11546 cat conftest.err >&5
a848cd7e
SC
11547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11548 (exit $ac_status); } &&
9dd0f6c2 11549 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
11550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11551 (eval $ac_try) 2>&5
11552 ac_status=$?
11553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11554 (exit $ac_status); }; } &&
11555 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11557 (eval $ac_try) 2>&5
11558 ac_status=$?
11559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11560 (exit $ac_status); }; }; then
11561 for ac_declaration in \
ac1cb8d3 11562 '' \
a848cd7e
SC
11563 'extern "C" void std::exit (int) throw (); using std::exit;' \
11564 'extern "C" void std::exit (int); using std::exit;' \
11565 'extern "C" void exit (int) throw ();' \
11566 'extern "C" void exit (int);' \
11567 'void exit (int);'
11568do
11569 cat >conftest.$ac_ext <<_ACEOF
11570/* confdefs.h. */
11571_ACEOF
11572cat confdefs.h >>conftest.$ac_ext
11573cat >>conftest.$ac_ext <<_ACEOF
11574/* end confdefs.h. */
de59c161 11575$ac_declaration
ac1cb8d3 11576#include <stdlib.h>
a848cd7e
SC
11577int
11578main ()
11579{
11580exit (42);
11581 ;
11582 return 0;
11583}
11584_ACEOF
11585rm -f conftest.$ac_objext
11586if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11587 (eval $ac_compile) 2>conftest.er1
a848cd7e 11588 ac_status=$?
ac1cb8d3
VS
11589 grep -v '^ *+' conftest.er1 >conftest.err
11590 rm -f conftest.er1
11591 cat conftest.err >&5
a848cd7e
SC
11592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11593 (exit $ac_status); } &&
9dd0f6c2 11594 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
11595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11596 (eval $ac_try) 2>&5
11597 ac_status=$?
11598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11599 (exit $ac_status); }; } &&
11600 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11602 (eval $ac_try) 2>&5
11603 ac_status=$?
11604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11605 (exit $ac_status); }; }; then
11606 :
11607else
11608 echo "$as_me: failed program was:" >&5
11609sed 's/^/| /' conftest.$ac_ext >&5
11610
11611continue
11612fi
ac1cb8d3 11613rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11614 cat >conftest.$ac_ext <<_ACEOF
11615/* confdefs.h. */
11616_ACEOF
11617cat confdefs.h >>conftest.$ac_ext
11618cat >>conftest.$ac_ext <<_ACEOF
11619/* end confdefs.h. */
11620$ac_declaration
11621int
11622main ()
11623{
11624exit (42);
11625 ;
11626 return 0;
11627}
11628_ACEOF
11629rm -f conftest.$ac_objext
11630if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11631 (eval $ac_compile) 2>conftest.er1
a848cd7e 11632 ac_status=$?
ac1cb8d3
VS
11633 grep -v '^ *+' conftest.er1 >conftest.err
11634 rm -f conftest.er1
11635 cat conftest.err >&5
a848cd7e
SC
11636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11637 (exit $ac_status); } &&
9dd0f6c2 11638 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
11639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11640 (eval $ac_try) 2>&5
11641 ac_status=$?
11642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11643 (exit $ac_status); }; } &&
11644 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11646 (eval $ac_try) 2>&5
11647 ac_status=$?
11648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11649 (exit $ac_status); }; }; then
11650 break
11651else
11652 echo "$as_me: failed program was:" >&5
11653sed 's/^/| /' conftest.$ac_ext >&5
11654
11655fi
ac1cb8d3 11656rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11657done
11658rm -f conftest*
11659if test -n "$ac_declaration"; then
11660 echo '#ifdef __cplusplus' >>confdefs.h
11661 echo $ac_declaration >>confdefs.h
11662 echo '#endif' >>confdefs.h
11663fi
11664
11665else
11666 echo "$as_me: failed program was:" >&5
11667sed 's/^/| /' conftest.$ac_ext >&5
11668
11669fi
ac1cb8d3 11670rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11671ac_ext=c
11672ac_cpp='$CPP $CPPFLAGS'
11673ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11674ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11675ac_compiler_gnu=$ac_cv_c_compiler_gnu
11676
6dcfc289 11677 echo "$as_me:$LINENO: checking if the C compiler requires -ext o" >&5
480ccd21
DE
11678echo $ECHO_N "checking if the C compiler requires -ext o... $ECHO_C" >&6
11679if test "${wx_cv_c_exto+set}" = set; then
11680 echo $ECHO_N "(cached) $ECHO_C" >&6
11681else
11682 cat >conftest.$ac_ext <<_ACEOF
11683/* confdefs.h. */
11684_ACEOF
11685cat confdefs.h >>conftest.$ac_ext
11686cat >>conftest.$ac_ext <<_ACEOF
11687/* end confdefs.h. */
11688
11689int
11690main ()
11691{
11692
11693 ;
11694 return 0;
11695}
11696_ACEOF
11697rm -f conftest.$ac_objext conftest.$ac_ext.o
11698if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11699 (eval $ac_compile) 2>&5
11700 ac_status=$?
11701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11702 (exit $ac_status); }; then
11703 for ac_file in `(ls conftest.* 2>/dev/null)`; do
11704 case $ac_file in
11705 conftest.$ac_ext.o)
11706 wx_cv_c_exto="-ext o"
11707 ;;
11708 *)
11709 ;;
11710 esac
11711done
11712else
11713 { { echo "$as_me:$LINENO: error: cannot figure out if compiler needs -ext o: cannot compile
11714See \`config.log' for more details." >&5
11715echo "$as_me: error: cannot figure out if compiler needs -ext o: cannot compile
11716See \`config.log' for more details." >&2;}
11717 { (exit 1); exit 1; }; }
11718
11719fi
11720
11721rm -f conftest.$ac_ext.o conftest.$ac_objext conftest.$ac_ext
11722
11723fi
11724echo "$as_me:$LINENO: result: $wx_cv_c_exto" >&5
11725echo "${ECHO_T}$wx_cv_c_exto" >&6
11726if test "x$wx_cv_c_exto" '!=' "x"; then
11727 if test "c" = "c"; then
11728 CFLAGS="$wx_cv_c_exto $CFLAGS"
11729 fi
11730 if test "c" = "cxx"; then
11731 CXXFLAGS="$wx_cv_c_exto $CXXFLAGS"
11732 fi
11733fi
11734
6dcfc289
DE
11735 if test "x$wx_cv_c_exto" '!=' "x"; then
11736 unset ac_cv_prog_cc_g
11737 ac_test_CFLAGS=${CFLAGS+set}
480ccd21 11738ac_save_CFLAGS=$CFLAGS
52ada004 11739CFLAGS="-g"
480ccd21
DE
11740echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
11741echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
11742if test "${ac_cv_prog_cc_g+set}" = set; then
11743 echo $ECHO_N "(cached) $ECHO_C" >&6
11744else
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
11752int
11753main ()
11754{
11755
11756 ;
11757 return 0;
11758}
11759_ACEOF
11760rm -f conftest.$ac_objext
11761if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11762 (eval $ac_compile) 2>conftest.er1
11763 ac_status=$?
11764 grep -v '^ *+' conftest.er1 >conftest.err
11765 rm -f conftest.er1
11766 cat conftest.err >&5
11767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11768 (exit $ac_status); } &&
9dd0f6c2 11769 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
480ccd21
DE
11770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11771 (eval $ac_try) 2>&5
11772 ac_status=$?
11773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11774 (exit $ac_status); }; } &&
11775 { ac_try='test -s conftest.$ac_objext'
11776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11777 (eval $ac_try) 2>&5
11778 ac_status=$?
11779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11780 (exit $ac_status); }; }; then
11781 ac_cv_prog_cc_g=yes
11782else
11783 echo "$as_me: failed program was:" >&5
11784sed 's/^/| /' conftest.$ac_ext >&5
11785
11786ac_cv_prog_cc_g=no
11787fi
11788rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11789fi
11790echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
11791echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
11792if test "$ac_test_CFLAGS" = set; then
11793 CFLAGS=$ac_save_CFLAGS
11794elif test $ac_cv_prog_cc_g = yes; then
11795 if test "$GCC" = yes; then
11796 CFLAGS="-g -O2"
11797 else
11798 CFLAGS="-g"
11799 fi
11800else
11801 if test "$GCC" = yes; then
11802 CFLAGS="-O2"
11803 else
11804 CFLAGS=
11805 fi
11806fi
6dcfc289
DE
11807 fi
11808 ac_ext=c
95986553
DE
11809ac_cpp='$CPP $CPPFLAGS'
11810ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11811ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11812ac_compiler_gnu=$ac_cv_c_compiler_gnu
11813
11814echo "$as_me:$LINENO: checking whether we are using the Metrowerks C compiler" >&5
11815echo $ECHO_N "checking whether we are using the Metrowerks C compiler... $ECHO_C" >&6
11816if test "${bakefile_cv_c_compiler_mwerks+set}" = set; then
11817 echo $ECHO_N "(cached) $ECHO_C" >&6
11818else
11819 cat >conftest.$ac_ext <<_ACEOF
11820/* confdefs.h. */
11821_ACEOF
11822cat confdefs.h >>conftest.$ac_ext
11823cat >>conftest.$ac_ext <<_ACEOF
11824/* end confdefs.h. */
11825
11826int
11827main ()
11828{
11829#ifndef __MWERKS__
11830 choke me
11831#endif
11832
11833 ;
11834 return 0;
11835}
11836_ACEOF
11837rm -f conftest.$ac_objext
11838if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11839 (eval $ac_compile) 2>conftest.er1
11840 ac_status=$?
11841 grep -v '^ *+' conftest.er1 >conftest.err
11842 rm -f conftest.er1
11843 cat conftest.err >&5
11844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11845 (exit $ac_status); } &&
9dd0f6c2 11846 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
95986553
DE
11847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11848 (eval $ac_try) 2>&5
11849 ac_status=$?
11850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11851 (exit $ac_status); }; } &&
11852 { ac_try='test -s conftest.$ac_objext'
11853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11854 (eval $ac_try) 2>&5
11855 ac_status=$?
11856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11857 (exit $ac_status); }; }; then
11858 bakefile_compiler_mwerks=yes
11859else
11860 echo "$as_me: failed program was:" >&5
11861sed 's/^/| /' conftest.$ac_ext >&5
11862
11863bakefile_compiler_mwerks=no
11864fi
11865rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11866 bakefile_cv_c_compiler_mwerks=$bakefile_compiler_mwerks
11867
11868fi
11869echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler_mwerks" >&5
11870echo "${ECHO_T}$bakefile_cv_c_compiler_mwerks" >&6
11871
0e6fa1d9 11872MWCC=`test $bakefile_cv_c_compiler_mwerks = yes && echo yes`
95986553
DE
11873ac_ext=c
11874ac_cpp='$CPP $CPPFLAGS'
11875ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11876ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11877ac_compiler_gnu=$ac_cv_c_compiler_gnu
11878
11879
6dcfc289 11880 ac_ext=c
9273ffba
DE
11881ac_cpp='$CPP $CPPFLAGS'
11882ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11883ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11884ac_compiler_gnu=$ac_cv_c_compiler_gnu
11885
11886echo "$as_me:$LINENO: checking whether we are using the IBM xlC C compiler" >&5
11887echo $ECHO_N "checking whether we are using the IBM xlC C compiler... $ECHO_C" >&6
11888if test "${wx_cv_c_compiler_xlc+set}" = set; then
11889 echo $ECHO_N "(cached) $ECHO_C" >&6
11890else
11891 cat >conftest.$ac_ext <<_ACEOF
11892/* confdefs.h. */
11893_ACEOF
11894cat confdefs.h >>conftest.$ac_ext
11895cat >>conftest.$ac_ext <<_ACEOF
11896/* end confdefs.h. */
11897
11898int
11899main ()
11900{
11901#ifndef __xlC__
11902 choke me
11903#endif
11904
11905 ;
11906 return 0;
11907}
11908_ACEOF
11909rm -f conftest.$ac_objext
11910if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11911 (eval $ac_compile) 2>conftest.er1
11912 ac_status=$?
11913 grep -v '^ *+' conftest.er1 >conftest.err
11914 rm -f conftest.er1
11915 cat conftest.err >&5
11916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11917 (exit $ac_status); } &&
9dd0f6c2 11918 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9273ffba
DE
11919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11920 (eval $ac_try) 2>&5
11921 ac_status=$?
11922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11923 (exit $ac_status); }; } &&
11924 { ac_try='test -s conftest.$ac_objext'
11925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11926 (eval $ac_try) 2>&5
11927 ac_status=$?
11928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11929 (exit $ac_status); }; }; then
11930 wx_compiler_xlc=yes
11931else
11932 echo "$as_me: failed program was:" >&5
11933sed 's/^/| /' conftest.$ac_ext >&5
11934
11935wx_compiler_xlc=no
11936fi
11937rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11938 wx_cv_c_compiler_xlc=$wx_compiler_xlc
11939
11940fi
11941echo "$as_me:$LINENO: result: $wx_cv_c_compiler_xlc" >&5
11942echo "${ECHO_T}$wx_cv_c_compiler_xlc" >&6
11943
0e6fa1d9 11944XLCC=`test $wx_cv_c_compiler_xlc = yes && echo yes`
9273ffba
DE
11945ac_ext=c
11946ac_cpp='$CPP $CPPFLAGS'
11947ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11948ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11949ac_compiler_gnu=$ac_cv_c_compiler_gnu
11950
11951
a848cd7e 11952
6dcfc289 11953
a848cd7e
SC
11954ac_ext=c
11955ac_cpp='$CPP $CPPFLAGS'
11956ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11957ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11958ac_compiler_gnu=$ac_cv_c_compiler_gnu
11959echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
11960echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
11961# On Suns, sometimes $CPP names a directory.
11962if test -n "$CPP" && test -d "$CPP"; then
11963 CPP=
11964fi
11965if test -z "$CPP"; then
11966 if test "${ac_cv_prog_CPP+set}" = set; then
11967 echo $ECHO_N "(cached) $ECHO_C" >&6
11968else
11969 # Double quotes because CPP needs to be expanded
11970 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
11971 do
11972 ac_preproc_ok=false
11973for ac_c_preproc_warn_flag in '' yes
11974do
11975 # Use a header file that comes with gcc, so configuring glibc
11976 # with a fresh cross-compiler works.
11977 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11978 # <limits.h> exists even on freestanding compilers.
11979 # On the NeXT, cc -E runs the code through the compiler's parser,
11980 # not just through cpp. "Syntax error" is here to catch this case.
11981 cat >conftest.$ac_ext <<_ACEOF
11982/* confdefs.h. */
11983_ACEOF
11984cat confdefs.h >>conftest.$ac_ext
11985cat >>conftest.$ac_ext <<_ACEOF
11986/* end confdefs.h. */
11987#ifdef __STDC__
11988# include <limits.h>
11989#else
11990# include <assert.h>
11991#endif
ac1cb8d3 11992 Syntax error
a848cd7e
SC
11993_ACEOF
11994if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11995 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11996 ac_status=$?
11997 grep -v '^ *+' conftest.er1 >conftest.err
11998 rm -f conftest.er1
11999 cat conftest.err >&5
12000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12001 (exit $ac_status); } >/dev/null; then
12002 if test -s conftest.err; then
12003 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 12004 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
12005 else
12006 ac_cpp_err=
12007 fi
12008else
12009 ac_cpp_err=yes
12010fi
12011if test -z "$ac_cpp_err"; then
12012 :
12013else
12014 echo "$as_me: failed program was:" >&5
12015sed 's/^/| /' conftest.$ac_ext >&5
12016
12017 # Broken: fails on valid input.
12018continue
12019fi
12020rm -f conftest.err conftest.$ac_ext
12021
12022 # OK, works on sane cases. Now check whether non-existent headers
12023 # can be detected and how.
12024 cat >conftest.$ac_ext <<_ACEOF
12025/* confdefs.h. */
12026_ACEOF
12027cat confdefs.h >>conftest.$ac_ext
12028cat >>conftest.$ac_ext <<_ACEOF
12029/* end confdefs.h. */
12030#include <ac_nonexistent.h>
12031_ACEOF
12032if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12033 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12034 ac_status=$?
12035 grep -v '^ *+' conftest.er1 >conftest.err
12036 rm -f conftest.er1
12037 cat conftest.err >&5
12038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12039 (exit $ac_status); } >/dev/null; then
12040 if test -s conftest.err; then
12041 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 12042 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
12043 else
12044 ac_cpp_err=
12045 fi
12046else
12047 ac_cpp_err=yes
12048fi
12049if test -z "$ac_cpp_err"; then
12050 # Broken: success on invalid input.
12051continue
12052else
12053 echo "$as_me: failed program was:" >&5
12054sed 's/^/| /' conftest.$ac_ext >&5
12055
12056 # Passes both tests.
12057ac_preproc_ok=:
12058break
12059fi
12060rm -f conftest.err conftest.$ac_ext
12061
12062done
12063# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12064rm -f conftest.err conftest.$ac_ext
12065if $ac_preproc_ok; then
12066 break
12067fi
12068
12069 done
12070 ac_cv_prog_CPP=$CPP
12071
12072fi
12073 CPP=$ac_cv_prog_CPP
12074else
12075 ac_cv_prog_CPP=$CPP
12076fi
12077echo "$as_me:$LINENO: result: $CPP" >&5
12078echo "${ECHO_T}$CPP" >&6
12079ac_preproc_ok=false
12080for ac_c_preproc_warn_flag in '' yes
12081do
12082 # Use a header file that comes with gcc, so configuring glibc
12083 # with a fresh cross-compiler works.
12084 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12085 # <limits.h> exists even on freestanding compilers.
12086 # On the NeXT, cc -E runs the code through the compiler's parser,
12087 # not just through cpp. "Syntax error" is here to catch this case.
12088 cat >conftest.$ac_ext <<_ACEOF
12089/* confdefs.h. */
12090_ACEOF
12091cat confdefs.h >>conftest.$ac_ext
12092cat >>conftest.$ac_ext <<_ACEOF
12093/* end confdefs.h. */
12094#ifdef __STDC__
12095# include <limits.h>
12096#else
12097# include <assert.h>
12098#endif
ac1cb8d3 12099 Syntax error
a848cd7e
SC
12100_ACEOF
12101if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12102 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12103 ac_status=$?
12104 grep -v '^ *+' conftest.er1 >conftest.err
12105 rm -f conftest.er1
12106 cat conftest.err >&5
12107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12108 (exit $ac_status); } >/dev/null; then
12109 if test -s conftest.err; then
12110 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 12111 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
12112 else
12113 ac_cpp_err=
12114 fi
12115else
12116 ac_cpp_err=yes
12117fi
12118if test -z "$ac_cpp_err"; then
12119 :
12120else
12121 echo "$as_me: failed program was:" >&5
12122sed 's/^/| /' conftest.$ac_ext >&5
12123
12124 # Broken: fails on valid input.
12125continue
12126fi
12127rm -f conftest.err conftest.$ac_ext
12128
12129 # OK, works on sane cases. Now check whether non-existent headers
12130 # can be detected and how.
12131 cat >conftest.$ac_ext <<_ACEOF
12132/* confdefs.h. */
12133_ACEOF
12134cat confdefs.h >>conftest.$ac_ext
12135cat >>conftest.$ac_ext <<_ACEOF
12136/* end confdefs.h. */
12137#include <ac_nonexistent.h>
12138_ACEOF
12139if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12140 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12141 ac_status=$?
12142 grep -v '^ *+' conftest.er1 >conftest.err
12143 rm -f conftest.er1
12144 cat conftest.err >&5
12145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12146 (exit $ac_status); } >/dev/null; then
12147 if test -s conftest.err; then
12148 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 12149 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
12150 else
12151 ac_cpp_err=
12152 fi
12153else
12154 ac_cpp_err=yes
12155fi
12156if test -z "$ac_cpp_err"; then
12157 # Broken: success on invalid input.
12158continue
12159else
12160 echo "$as_me: failed program was:" >&5
12161sed 's/^/| /' conftest.$ac_ext >&5
12162
12163 # Passes both tests.
12164ac_preproc_ok=:
12165break
12166fi
12167rm -f conftest.err conftest.$ac_ext
12168
12169done
12170# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12171rm -f conftest.err conftest.$ac_ext
12172if $ac_preproc_ok; then
12173 :
12174else
12175 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
12176See \`config.log' for more details." >&5
12177echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
12178See \`config.log' for more details." >&2;}
12179 { (exit 1); exit 1; }; }
12180fi
12181
12182ac_ext=c
12183ac_cpp='$CPP $CPPFLAGS'
12184ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12185ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12186ac_compiler_gnu=$ac_cv_c_compiler_gnu
12187
12188
12189echo "$as_me:$LINENO: checking for egrep" >&5
12190echo $ECHO_N "checking for egrep... $ECHO_C" >&6
12191if test "${ac_cv_prog_egrep+set}" = set; then
12192 echo $ECHO_N "(cached) $ECHO_C" >&6
12193else
12194 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
12195 then ac_cv_prog_egrep='grep -E'
12196 else ac_cv_prog_egrep='egrep'
12197 fi
12198fi
12199echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
12200echo "${ECHO_T}$ac_cv_prog_egrep" >&6
12201 EGREP=$ac_cv_prog_egrep
12202
12203
12204if test $ac_cv_c_compiler_gnu = yes; then
12205 echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
12206echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
12207if test "${ac_cv_prog_gcc_traditional+set}" = set; then
12208 echo $ECHO_N "(cached) $ECHO_C" >&6
12209else
12210 ac_pattern="Autoconf.*'x'"
12211 cat >conftest.$ac_ext <<_ACEOF
12212/* confdefs.h. */
12213_ACEOF
12214cat confdefs.h >>conftest.$ac_ext
12215cat >>conftest.$ac_ext <<_ACEOF
12216/* end confdefs.h. */
12217#include <sgtty.h>
12218Autoconf TIOCGETP
12219_ACEOF
12220if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12221 $EGREP "$ac_pattern" >/dev/null 2>&1; then
12222 ac_cv_prog_gcc_traditional=yes
12223else
12224 ac_cv_prog_gcc_traditional=no
12225fi
12226rm -f conftest*
12227
12228
12229 if test $ac_cv_prog_gcc_traditional = no; then
12230 cat >conftest.$ac_ext <<_ACEOF
12231/* confdefs.h. */
12232_ACEOF
12233cat confdefs.h >>conftest.$ac_ext
12234cat >>conftest.$ac_ext <<_ACEOF
12235/* end confdefs.h. */
12236#include <termio.h>
12237Autoconf TCGETA
12238_ACEOF
12239if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12240 $EGREP "$ac_pattern" >/dev/null 2>&1; then
12241 ac_cv_prog_gcc_traditional=yes
12242fi
12243rm -f conftest*
12244
12245 fi
12246fi
12247echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
12248echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
12249 if test $ac_cv_prog_gcc_traditional = yes; then
12250 CC="$CC -traditional"
12251 fi
12252fi
12253
12254
12255
12256
12257ac_ext=cc
12258ac_cpp='$CXXCPP $CPPFLAGS'
12259ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12260ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12261ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12262
12263
12264CXXFLAGS=${CXXFLAGS:=}
6dcfc289
DE
12265
12266
12267 ac_ext=cc
a848cd7e
SC
12268ac_cpp='$CXXCPP $CPPFLAGS'
12269ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12270ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12271ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12272if test -n "$ac_tool_prefix"; then
12273 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
12274 do
12275 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12276set dummy $ac_tool_prefix$ac_prog; 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_CXX+set}" = set; then
12280 echo $ECHO_N "(cached) $ECHO_C" >&6
12281else
12282 if test -n "$CXX"; then
12283 ac_cv_prog_CXX="$CXX" # 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_CXX="$ac_tool_prefix$ac_prog"
12293 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12294 break 2
12295 fi
12296done
12297done
12298
12299fi
12300fi
12301CXX=$ac_cv_prog_CXX
12302if test -n "$CXX"; then
12303 echo "$as_me:$LINENO: result: $CXX" >&5
12304echo "${ECHO_T}$CXX" >&6
12305else
12306 echo "$as_me:$LINENO: result: no" >&5
12307echo "${ECHO_T}no" >&6
12308fi
12309
12310 test -n "$CXX" && break
12311 done
12312fi
12313if test -z "$CXX"; then
12314 ac_ct_CXX=$CXX
12315 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
12316do
12317 # Extract the first word of "$ac_prog", so it can be a program name with args.
12318set dummy $ac_prog; 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_ac_ct_CXX+set}" = set; then
12322 echo $ECHO_N "(cached) $ECHO_C" >&6
12323else
12324 if test -n "$ac_ct_CXX"; then
12325 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # 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_ac_ct_CXX="$ac_prog"
12335 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12336 break 2
12337 fi
12338done
12339done
12340
12341fi
12342fi
12343ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
12344if test -n "$ac_ct_CXX"; then
12345 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
12346echo "${ECHO_T}$ac_ct_CXX" >&6
12347else
12348 echo "$as_me:$LINENO: result: no" >&5
12349echo "${ECHO_T}no" >&6
12350fi
12351
12352 test -n "$ac_ct_CXX" && break
12353done
12354test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
12355
12356 CXX=$ac_ct_CXX
12357fi
12358
12359
12360# Provide some information about the compiler.
12361echo "$as_me:$LINENO:" \
12362 "checking for C++ compiler version" >&5
12363ac_compiler=`set X $ac_compile; echo $2`
12364{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
12365 (eval $ac_compiler --version </dev/null >&5) 2>&5
12366 ac_status=$?
12367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12368 (exit $ac_status); }
12369{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
12370 (eval $ac_compiler -v </dev/null >&5) 2>&5
12371 ac_status=$?
12372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12373 (exit $ac_status); }
12374{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
12375 (eval $ac_compiler -V </dev/null >&5) 2>&5
12376 ac_status=$?
12377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12378 (exit $ac_status); }
12379
12380echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
12381echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
12382if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
12383 echo $ECHO_N "(cached) $ECHO_C" >&6
12384else
12385 cat >conftest.$ac_ext <<_ACEOF
12386/* confdefs.h. */
12387_ACEOF
12388cat confdefs.h >>conftest.$ac_ext
12389cat >>conftest.$ac_ext <<_ACEOF
12390/* end confdefs.h. */
12391
12392int
12393main ()
12394{
12395#ifndef __GNUC__
12396 choke me
12397#endif
12398
12399 ;
12400 return 0;
12401}
12402_ACEOF
12403rm -f conftest.$ac_objext
12404if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12405 (eval $ac_compile) 2>conftest.er1
a848cd7e 12406 ac_status=$?
ac1cb8d3
VS
12407 grep -v '^ *+' conftest.er1 >conftest.err
12408 rm -f conftest.er1
12409 cat conftest.err >&5
a848cd7e
SC
12410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12411 (exit $ac_status); } &&
9dd0f6c2 12412 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
12413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12414 (eval $ac_try) 2>&5
12415 ac_status=$?
12416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12417 (exit $ac_status); }; } &&
12418 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12420 (eval $ac_try) 2>&5
12421 ac_status=$?
12422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12423 (exit $ac_status); }; }; then
12424 ac_compiler_gnu=yes
12425else
12426 echo "$as_me: failed program was:" >&5
12427sed 's/^/| /' conftest.$ac_ext >&5
12428
12429ac_compiler_gnu=no
12430fi
ac1cb8d3 12431rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12432ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
12433
12434fi
12435echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
12436echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
12437GXX=`test $ac_compiler_gnu = yes && echo yes`
12438ac_test_CXXFLAGS=${CXXFLAGS+set}
12439ac_save_CXXFLAGS=$CXXFLAGS
12440CXXFLAGS="-g"
12441echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
12442echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
12443if test "${ac_cv_prog_cxx_g+set}" = set; then
12444 echo $ECHO_N "(cached) $ECHO_C" >&6
12445else
12446 cat >conftest.$ac_ext <<_ACEOF
12447/* confdefs.h. */
12448_ACEOF
12449cat confdefs.h >>conftest.$ac_ext
12450cat >>conftest.$ac_ext <<_ACEOF
12451/* end confdefs.h. */
12452
12453int
12454main ()
12455{
12456
12457 ;
12458 return 0;
12459}
12460_ACEOF
12461rm -f conftest.$ac_objext
12462if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12463 (eval $ac_compile) 2>conftest.er1
a848cd7e 12464 ac_status=$?
ac1cb8d3
VS
12465 grep -v '^ *+' conftest.er1 >conftest.err
12466 rm -f conftest.er1
12467 cat conftest.err >&5
a848cd7e
SC
12468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12469 (exit $ac_status); } &&
9dd0f6c2 12470 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
12471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12472 (eval $ac_try) 2>&5
12473 ac_status=$?
12474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12475 (exit $ac_status); }; } &&
12476 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12478 (eval $ac_try) 2>&5
12479 ac_status=$?
12480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12481 (exit $ac_status); }; }; then
12482 ac_cv_prog_cxx_g=yes
12483else
12484 echo "$as_me: failed program was:" >&5
12485sed 's/^/| /' conftest.$ac_ext >&5
12486
12487ac_cv_prog_cxx_g=no
12488fi
ac1cb8d3 12489rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12490fi
12491echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
12492echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
12493if test "$ac_test_CXXFLAGS" = set; then
12494 CXXFLAGS=$ac_save_CXXFLAGS
12495elif test $ac_cv_prog_cxx_g = yes; then
12496 if test "$GXX" = yes; then
52ada004 12497 CXXFLAGS="-g -O2"
a848cd7e 12498 else
52ada004 12499 CXXFLAGS="-g"
a848cd7e
SC
12500 fi
12501else
12502 if test "$GXX" = yes; then
12503 CXXFLAGS="-O2"
12504 else
12505 CXXFLAGS=
12506 fi
12507fi
12508for ac_declaration in \
ac1cb8d3 12509 '' \
a848cd7e
SC
12510 'extern "C" void std::exit (int) throw (); using std::exit;' \
12511 'extern "C" void std::exit (int); using std::exit;' \
12512 'extern "C" void exit (int) throw ();' \
12513 'extern "C" void exit (int);' \
12514 'void exit (int);'
12515do
12516 cat >conftest.$ac_ext <<_ACEOF
12517/* confdefs.h. */
12518_ACEOF
12519cat confdefs.h >>conftest.$ac_ext
12520cat >>conftest.$ac_ext <<_ACEOF
12521/* end confdefs.h. */
de59c161 12522$ac_declaration
ac1cb8d3 12523#include <stdlib.h>
a848cd7e
SC
12524int
12525main ()
12526{
12527exit (42);
12528 ;
12529 return 0;
12530}
12531_ACEOF
12532rm -f conftest.$ac_objext
12533if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12534 (eval $ac_compile) 2>conftest.er1
a848cd7e 12535 ac_status=$?
ac1cb8d3
VS
12536 grep -v '^ *+' conftest.er1 >conftest.err
12537 rm -f conftest.er1
12538 cat conftest.err >&5
a848cd7e
SC
12539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12540 (exit $ac_status); } &&
9dd0f6c2 12541 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
12542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12543 (eval $ac_try) 2>&5
12544 ac_status=$?
12545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12546 (exit $ac_status); }; } &&
12547 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12549 (eval $ac_try) 2>&5
12550 ac_status=$?
12551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12552 (exit $ac_status); }; }; then
12553 :
12554else
12555 echo "$as_me: failed program was:" >&5
12556sed 's/^/| /' conftest.$ac_ext >&5
12557
12558continue
12559fi
ac1cb8d3 12560rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12561 cat >conftest.$ac_ext <<_ACEOF
12562/* confdefs.h. */
12563_ACEOF
12564cat confdefs.h >>conftest.$ac_ext
12565cat >>conftest.$ac_ext <<_ACEOF
12566/* end confdefs.h. */
12567$ac_declaration
12568int
12569main ()
12570{
12571exit (42);
12572 ;
12573 return 0;
12574}
12575_ACEOF
12576rm -f conftest.$ac_objext
12577if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12578 (eval $ac_compile) 2>conftest.er1
a848cd7e 12579 ac_status=$?
ac1cb8d3
VS
12580 grep -v '^ *+' conftest.er1 >conftest.err
12581 rm -f conftest.er1
12582 cat conftest.err >&5
a848cd7e
SC
12583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12584 (exit $ac_status); } &&
9dd0f6c2 12585 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
12586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12587 (eval $ac_try) 2>&5
12588 ac_status=$?
12589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12590 (exit $ac_status); }; } &&
12591 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12593 (eval $ac_try) 2>&5
12594 ac_status=$?
12595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12596 (exit $ac_status); }; }; then
12597 break
12598else
12599 echo "$as_me: failed program was:" >&5
12600sed 's/^/| /' conftest.$ac_ext >&5
12601
12602fi
ac1cb8d3 12603rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12604done
12605rm -f conftest*
12606if test -n "$ac_declaration"; then
12607 echo '#ifdef __cplusplus' >>confdefs.h
12608 echo $ac_declaration >>confdefs.h
12609 echo '#endif' >>confdefs.h
12610fi
12611
12612ac_ext=cc
12613ac_cpp='$CXXCPP $CPPFLAGS'
12614ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12615ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12616ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12617
6dcfc289 12618 echo "$as_me:$LINENO: checking if the C++ compiler requires -ext o" >&5
480ccd21
DE
12619echo $ECHO_N "checking if the C++ compiler requires -ext o... $ECHO_C" >&6
12620if test "${wx_cv_cxx_exto+set}" = set; then
12621 echo $ECHO_N "(cached) $ECHO_C" >&6
12622else
12623 cat >conftest.$ac_ext <<_ACEOF
12624/* confdefs.h. */
12625_ACEOF
12626cat confdefs.h >>conftest.$ac_ext
12627cat >>conftest.$ac_ext <<_ACEOF
12628/* end confdefs.h. */
12629
12630int
12631main ()
12632{
12633
12634 ;
12635 return 0;
12636}
12637_ACEOF
12638rm -f conftest.$ac_objext conftest.$ac_ext.o
12639if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12640 (eval $ac_compile) 2>&5
12641 ac_status=$?
12642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12643 (exit $ac_status); }; then
12644 for ac_file in `(ls conftest.* 2>/dev/null)`; do
12645 case $ac_file in
12646 conftest.$ac_ext.o)
12647 wx_cv_cxx_exto="-ext o"
12648 ;;
12649 *)
12650 ;;
12651 esac
12652done
12653else
12654 { { echo "$as_me:$LINENO: error: cannot figure out if compiler needs -ext o: cannot compile
12655See \`config.log' for more details." >&5
12656echo "$as_me: error: cannot figure out if compiler needs -ext o: cannot compile
12657See \`config.log' for more details." >&2;}
12658 { (exit 1); exit 1; }; }
12659
12660fi
12661
12662rm -f conftest.$ac_ext.o conftest.$ac_objext conftest.$ac_ext
12663
12664fi
12665echo "$as_me:$LINENO: result: $wx_cv_cxx_exto" >&5
12666echo "${ECHO_T}$wx_cv_cxx_exto" >&6
12667if test "x$wx_cv_cxx_exto" '!=' "x"; then
12668 if test "cxx" = "c"; then
12669 CFLAGS="$wx_cv_cxx_exto $CFLAGS"
12670 fi
12671 if test "cxx" = "cxx"; then
12672 CXXFLAGS="$wx_cv_cxx_exto $CXXFLAGS"
12673 fi
12674fi
12675
6dcfc289
DE
12676 if test "x$wx_cv_cxx_exto" '!=' "x"; then
12677 unset ac_cv_prog_cxx_g
12678 ac_test_CXXFLAGS=${CXXFLAGS+set}
480ccd21
DE
12679ac_save_CXXFLAGS=$CXXFLAGS
12680CXXFLAGS="-g"
12681echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
12682echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
12683if test "${ac_cv_prog_cxx_g+set}" = set; then
12684 echo $ECHO_N "(cached) $ECHO_C" >&6
12685else
12686 cat >conftest.$ac_ext <<_ACEOF
12687/* confdefs.h. */
12688_ACEOF
12689cat confdefs.h >>conftest.$ac_ext
12690cat >>conftest.$ac_ext <<_ACEOF
12691/* end confdefs.h. */
12692
12693int
12694main ()
12695{
12696
12697 ;
12698 return 0;
12699}
12700_ACEOF
12701rm -f conftest.$ac_objext
12702if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12703 (eval $ac_compile) 2>conftest.er1
12704 ac_status=$?
12705 grep -v '^ *+' conftest.er1 >conftest.err
12706 rm -f conftest.er1
12707 cat conftest.err >&5
12708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12709 (exit $ac_status); } &&
9dd0f6c2 12710 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
480ccd21
DE
12711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12712 (eval $ac_try) 2>&5
12713 ac_status=$?
12714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12715 (exit $ac_status); }; } &&
12716 { ac_try='test -s conftest.$ac_objext'
12717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12718 (eval $ac_try) 2>&5
12719 ac_status=$?
12720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12721 (exit $ac_status); }; }; then
12722 ac_cv_prog_cxx_g=yes
12723else
12724 echo "$as_me: failed program was:" >&5
12725sed 's/^/| /' conftest.$ac_ext >&5
12726
12727ac_cv_prog_cxx_g=no
12728fi
12729rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12730fi
12731echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
12732echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
12733if test "$ac_test_CXXFLAGS" = set; then
12734 CXXFLAGS=$ac_save_CXXFLAGS
12735elif test $ac_cv_prog_cxx_g = yes; then
12736 if test "$GXX" = yes; then
52ada004 12737 CXXFLAGS="-g -O2"
480ccd21 12738 else
52ada004 12739 CXXFLAGS="-g"
480ccd21
DE
12740 fi
12741else
12742 if test "$GXX" = yes; then
12743 CXXFLAGS="-O2"
12744 else
12745 CXXFLAGS=
12746 fi
12747fi
6dcfc289
DE
12748 fi
12749 ac_ext=cc
95986553
DE
12750ac_cpp='$CXXCPP $CPPFLAGS'
12751ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12752ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12753ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12754
12755echo "$as_me:$LINENO: checking whether we are using the Metrowerks C++ compiler" >&5
12756echo $ECHO_N "checking whether we are using the Metrowerks C++ compiler... $ECHO_C" >&6
12757if test "${bakefile_cv_cxx_compiler_mwerks+set}" = set; then
12758 echo $ECHO_N "(cached) $ECHO_C" >&6
12759else
12760 cat >conftest.$ac_ext <<_ACEOF
12761/* confdefs.h. */
12762_ACEOF
12763cat confdefs.h >>conftest.$ac_ext
12764cat >>conftest.$ac_ext <<_ACEOF
12765/* end confdefs.h. */
12766
12767int
12768main ()
12769{
12770#ifndef __MWERKS__
12771 choke me
12772#endif
12773
12774 ;
12775 return 0;
12776}
12777_ACEOF
12778rm -f conftest.$ac_objext
12779if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12780 (eval $ac_compile) 2>conftest.er1
12781 ac_status=$?
12782 grep -v '^ *+' conftest.er1 >conftest.err
12783 rm -f conftest.er1
12784 cat conftest.err >&5
12785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12786 (exit $ac_status); } &&
9dd0f6c2 12787 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
95986553
DE
12788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12789 (eval $ac_try) 2>&5
12790 ac_status=$?
12791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12792 (exit $ac_status); }; } &&
12793 { ac_try='test -s conftest.$ac_objext'
12794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12795 (eval $ac_try) 2>&5
12796 ac_status=$?
12797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12798 (exit $ac_status); }; }; then
12799 bakefile_compiler_mwerks=yes
12800else
12801 echo "$as_me: failed program was:" >&5
12802sed 's/^/| /' conftest.$ac_ext >&5
12803
12804bakefile_compiler_mwerks=no
12805fi
12806rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12807 bakefile_cv_cxx_compiler_mwerks=$bakefile_compiler_mwerks
12808
12809fi
12810echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler_mwerks" >&5
12811echo "${ECHO_T}$bakefile_cv_cxx_compiler_mwerks" >&6
12812
0e6fa1d9 12813MWCXX=`test $bakefile_cv_cxx_compiler_mwerks = yes && echo yes`
95986553
DE
12814ac_ext=cc
12815ac_cpp='$CXXCPP $CPPFLAGS'
12816ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12817ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12818ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12819
12820
6dcfc289 12821 ac_ext=cc
9273ffba
DE
12822ac_cpp='$CXXCPP $CPPFLAGS'
12823ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12824ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12825ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12826
12827echo "$as_me:$LINENO: checking whether we are using the IBM xlC C++ compiler" >&5
12828echo $ECHO_N "checking whether we are using the IBM xlC C++ compiler... $ECHO_C" >&6
12829if test "${wx_cv_cxx_compiler_xlc+set}" = set; then
12830 echo $ECHO_N "(cached) $ECHO_C" >&6
12831else
12832 cat >conftest.$ac_ext <<_ACEOF
12833/* confdefs.h. */
12834_ACEOF
12835cat confdefs.h >>conftest.$ac_ext
12836cat >>conftest.$ac_ext <<_ACEOF
12837/* end confdefs.h. */
12838
12839int
12840main ()
12841{
12842#ifndef __xlC__
12843 choke me
12844#endif
12845
12846 ;
12847 return 0;
12848}
12849_ACEOF
12850rm -f conftest.$ac_objext
12851if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12852 (eval $ac_compile) 2>conftest.er1
12853 ac_status=$?
12854 grep -v '^ *+' conftest.er1 >conftest.err
12855 rm -f conftest.er1
12856 cat conftest.err >&5
12857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12858 (exit $ac_status); } &&
9dd0f6c2 12859 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
9273ffba
DE
12860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12861 (eval $ac_try) 2>&5
12862 ac_status=$?
12863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12864 (exit $ac_status); }; } &&
12865 { ac_try='test -s conftest.$ac_objext'
12866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12867 (eval $ac_try) 2>&5
12868 ac_status=$?
12869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12870 (exit $ac_status); }; }; then
12871 wx_compiler_xlc=yes
12872else
12873 echo "$as_me: failed program was:" >&5
12874sed 's/^/| /' conftest.$ac_ext >&5
12875
12876wx_compiler_xlc=no
12877fi
12878rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12879 wx_cv_cxx_compiler_xlc=$wx_compiler_xlc
12880
12881fi
12882echo "$as_me:$LINENO: result: $wx_cv_cxx_compiler_xlc" >&5
12883echo "${ECHO_T}$wx_cv_cxx_compiler_xlc" >&6
12884
0e6fa1d9 12885XLCXX=`test $wx_cv_cxx_compiler_xlc = yes && echo yes`
9273ffba
DE
12886ac_ext=cc
12887ac_cpp='$CXXCPP $CPPFLAGS'
12888ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12889ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12890ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12891
12892
95986553 12893
6dcfc289 12894
a848cd7e
SC
12895ac_ext=c
12896ac_cpp='$CPP $CPPFLAGS'
12897ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12898ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12899ac_compiler_gnu=$ac_cv_c_compiler_gnu
12900
12901
a848cd7e
SC
12902if test -n "$ac_tool_prefix"; then
12903 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
12904set dummy ${ac_tool_prefix}ranlib; ac_word=$2
12905echo "$as_me:$LINENO: checking for $ac_word" >&5
12906echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12907if test "${ac_cv_prog_RANLIB+set}" = set; then
12908 echo $ECHO_N "(cached) $ECHO_C" >&6
12909else
12910 if test -n "$RANLIB"; then
12911 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
12912else
12913as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12914for as_dir in $PATH
12915do
12916 IFS=$as_save_IFS
12917 test -z "$as_dir" && as_dir=.
12918 for ac_exec_ext in '' $ac_executable_extensions; do
12919 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12920 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
12921 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12922 break 2
12923 fi
12924done
12925done
12926
12927fi
12928fi
12929RANLIB=$ac_cv_prog_RANLIB
12930if test -n "$RANLIB"; then
12931 echo "$as_me:$LINENO: result: $RANLIB" >&5
12932echo "${ECHO_T}$RANLIB" >&6
12933else
12934 echo "$as_me:$LINENO: result: no" >&5
12935echo "${ECHO_T}no" >&6
12936fi
12937
12938fi
12939if test -z "$ac_cv_prog_RANLIB"; then
12940 ac_ct_RANLIB=$RANLIB
12941 # Extract the first word of "ranlib", so it can be a program name with args.
12942set dummy ranlib; ac_word=$2
12943echo "$as_me:$LINENO: checking for $ac_word" >&5
12944echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12945if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
12946 echo $ECHO_N "(cached) $ECHO_C" >&6
12947else
12948 if test -n "$ac_ct_RANLIB"; then
12949 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
12950else
12951as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12952for as_dir in $PATH
12953do
12954 IFS=$as_save_IFS
12955 test -z "$as_dir" && as_dir=.
12956 for ac_exec_ext in '' $ac_executable_extensions; do
12957 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12958 ac_cv_prog_ac_ct_RANLIB="ranlib"
12959 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12960 break 2
12961 fi
12962done
12963done
12964
12965 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
12966fi
12967fi
12968ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
12969if test -n "$ac_ct_RANLIB"; then
12970 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
12971echo "${ECHO_T}$ac_ct_RANLIB" >&6
12972else
12973 echo "$as_me:$LINENO: result: no" >&5
12974echo "${ECHO_T}no" >&6
12975fi
12976
12977 RANLIB=$ac_ct_RANLIB
12978else
12979 RANLIB="$ac_cv_prog_RANLIB"
12980fi
12981
12982
12983# Extract the first word of "ar", so it can be a program name with args.
12984set dummy ar; ac_word=$2
12985echo "$as_me:$LINENO: checking for $ac_word" >&5
12986echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12987if test "${ac_cv_prog_AR+set}" = set; then
12988 echo $ECHO_N "(cached) $ECHO_C" >&6
12989else
12990 if test -n "$AR"; then
12991 ac_cv_prog_AR="$AR" # Let the user override the test.
12992else
12993as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12994for as_dir in $PATH
12995do
12996 IFS=$as_save_IFS
12997 test -z "$as_dir" && as_dir=.
12998 for ac_exec_ext in '' $ac_executable_extensions; do
12999 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13000 ac_cv_prog_AR="ar"
13001 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13002 break 2
13003 fi
13004done
13005done
13006
13007fi
13008fi
13009AR=$ac_cv_prog_AR
13010if test -n "$AR"; then
13011 echo "$as_me:$LINENO: result: $AR" >&5
13012echo "${ECHO_T}$AR" >&6
13013else
13014 echo "$as_me:$LINENO: result: no" >&5
13015echo "${ECHO_T}no" >&6
13016fi
13017
13018if test "x$AR" = "x" ; then
77ffb593
JS
13019 { { echo "$as_me:$LINENO: error: ar is needed to build wxWidgets" >&5
13020echo "$as_me: error: ar is needed to build wxWidgets" >&2;}
a848cd7e
SC
13021 { (exit 1); exit 1; }; }
13022fi
13023
13024# Find a good install program. We prefer a C program (faster),
13025# so one script is as good as another. But avoid the broken or
13026# incompatible versions:
13027# SysV /etc/install, /usr/sbin/install
13028# SunOS /usr/etc/install
13029# IRIX /sbin/install
13030# AIX /bin/install
13031# AmigaOS /C/install, which installs bootblocks on floppy discs
13032# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
13033# AFS /usr/afsws/bin/install, which mishandles nonexistent args
13034# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
ac1cb8d3 13035# OS/2's system install, which has a completely different semantic
a848cd7e
SC
13036# ./install, which can be erroneously created by make from ./install.sh.
13037echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
13038echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
13039if test -z "$INSTALL"; then
13040if test "${ac_cv_path_install+set}" = set; then
13041 echo $ECHO_N "(cached) $ECHO_C" >&6
13042else
13043 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13044for as_dir in $PATH
13045do
13046 IFS=$as_save_IFS
13047 test -z "$as_dir" && as_dir=.
13048 # Account for people who put trailing slashes in PATH elements.
13049case $as_dir/ in
13050 ./ | .// | /cC/* | \
13051 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
ac1cb8d3 13052 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
a848cd7e
SC
13053 /usr/ucb/* ) ;;
13054 *)
13055 # OSF1 and SCO ODT 3.0 have their own names for install.
13056 # Don't use installbsd from OSF since it installs stuff as root
13057 # by default.
13058 for ac_prog in ginstall scoinst install; do
13059 for ac_exec_ext in '' $ac_executable_extensions; do
ac1cb8d3
VS
13060 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
13061 if test $ac_prog = install &&
13062 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
13063 # AIX install. It has an incompatible calling convention.
13064 :
13065 elif test $ac_prog = install &&
13066 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
13067 # program-specific install script used by HP pwplus--don't use.
13068 :
13069 else
13070 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
13071 break 3
13072 fi
13073 fi
a848cd7e
SC
13074 done
13075 done
13076 ;;
13077esac
13078done
13079
13080
13081fi
13082 if test "${ac_cv_path_install+set}" = set; then
13083 INSTALL=$ac_cv_path_install
13084 else
13085 # As a last resort, use the slow shell script. We don't cache a
13086 # path for INSTALL within a source directory, because that will
13087 # break other packages using the cache if that directory is
13088 # removed, or if the path is relative.
13089 INSTALL=$ac_install_sh
13090 fi
13091fi
13092echo "$as_me:$LINENO: result: $INSTALL" >&5
13093echo "${ECHO_T}$INSTALL" >&6
13094
13095# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
13096# It thinks the first close brace ends the variable substitution.
13097test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
13098
13099test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
13100
13101test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
13102
13103
13104case ${INSTALL} in
13105 /* ) # Absolute
13106 ;;
13107 ?:* ) # Drive letter, considered as absolute.
13108 ;;
13109 *)
13110 INSTALL=`pwd`/${INSTALL} ;;
13111esac
13112
a848cd7e
SC
13113
13114case "${host}" in
13115
13116 powerpc-*-darwin* )
13117 INSTALL_PROGRAM="cp -fp"
13118 INSTALL_DATA="cp -fp"
13119 ;;
13120 *)
13121 ;;
13122esac
13123
13124# Extract the first word of "strip", so it can be a program name with args.
13125set dummy strip; ac_word=$2
13126echo "$as_me:$LINENO: checking for $ac_word" >&5
13127echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13128if test "${ac_cv_prog_STRIP+set}" = set; then
13129 echo $ECHO_N "(cached) $ECHO_C" >&6
13130else
13131 if test -n "$STRIP"; then
13132 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
13133else
13134as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13135for as_dir in $PATH
13136do
13137 IFS=$as_save_IFS
13138 test -z "$as_dir" && as_dir=.
13139 for ac_exec_ext in '' $ac_executable_extensions; do
13140 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13141 ac_cv_prog_STRIP="strip"
13142 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13143 break 2
13144 fi
13145done
13146done
13147
13148 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="true"
13149fi
13150fi
13151STRIP=$ac_cv_prog_STRIP
13152if test -n "$STRIP"; then
13153 echo "$as_me:$LINENO: result: $STRIP" >&5
13154echo "${ECHO_T}$STRIP" >&6
13155else
13156 echo "$as_me:$LINENO: result: no" >&5
13157echo "${ECHO_T}no" >&6
13158fi
13159
13160
13161echo "$as_me:$LINENO: checking if make is GNU make" >&5
13162echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6
13163if test "${wx_cv_prog_makeisgnu+set}" = set; then
13164 echo $ECHO_N "(cached) $ECHO_C" >&6
13165else
13166
13167 if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
13168 egrep -s GNU > /dev/null); then
13169 wx_cv_prog_makeisgnu="yes"
13170 else
13171 wx_cv_prog_makeisgnu="no"
13172 fi
13173
13174fi
13175echo "$as_me:$LINENO: result: $wx_cv_prog_makeisgnu" >&5
13176echo "${ECHO_T}$wx_cv_prog_makeisgnu" >&6
13177
13178if test "x$wx_cv_prog_makeisgnu" = "xyes"; then
13179 IF_GNU_MAKE=""
13180else
13181 IF_GNU_MAKE="#"
13182fi
13183
13184
13185
13186if test "x$wx_cv_prog_makeisgnu" != "xyes"; then
13187echo "$as_me:$LINENO: checking if make supports VPATH" >&5
13188echo $ECHO_N "checking if make supports VPATH... $ECHO_C" >&6
13189if test "${wx_cv_prog_makevpath+set}" = set; then
13190 echo $ECHO_N "(cached) $ECHO_C" >&6
13191else
13192
13193cat - << EOF > confMake
13194check : file
13195 cp \$? \$@
13196 cp \$? final_file
13197EOF
13198
13199if test ! -d sub ; then
13200 mkdir sub
13201fi
13202echo dummy > sub/file
13203${MAKE-make} -f confMake VPATH=sub 2>&5 > /dev/null
13204RESULT=$?
13205rm -f sub/file check final_file confMake
13206rmdir sub
13207if test "$RESULT" = 0; then
13208 wx_cv_prog_makevpath="yes"
13209else
13210 wx_cv_prog_makevpath="no"
13211fi
13212
13213fi
13214echo "$as_me:$LINENO: result: $wx_cv_prog_makevpath" >&5
13215echo "${ECHO_T}$wx_cv_prog_makevpath" >&6
13216
13217if test "x$wx_cv_prog_makevpath" != "xyes"; then
13218{ { echo "$as_me:$LINENO: error:
13219You need a make-utility that is able to use the variable
13220VPATH correctly.
13221If your version of make does not support VPATH correctly,
13222please install GNU-make (possibly as gmake), and start
13223configure with the following command:
13224export MAKE=gmake; ./configure for sh-type shells
13225setenv MAKE gmake; ./configure for csh-type shells
13226Also please do remember to use gmake in this case every time
13227you are trying to compile.
13228" >&5
13229echo "$as_me: error:
13230You need a make-utility that is able to use the variable
13231VPATH correctly.
13232If your version of make does not support VPATH correctly,
13233please install GNU-make (possibly as gmake), and start
13234configure with the following command:
13235export MAKE=gmake; ./configure for sh-type shells
13236setenv MAKE gmake; ./configure for csh-type shells
13237Also please do remember to use gmake in this case every time
13238you are trying to compile.
13239" >&2;}
13240 { (exit 1); exit 1; }; }
13241fi fi
13242echo "$as_me:$LINENO: checking whether ln -s works" >&5
13243echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
13244LN_S=$as_ln_s
13245if test "$LN_S" = "ln -s"; then
13246 echo "$as_me:$LINENO: result: yes" >&5
13247echo "${ECHO_T}yes" >&6
13248else
13249 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
13250echo "${ECHO_T}no, using $LN_S" >&6
13251fi
13252
13253
13254
9273ffba
DE
13255if test "x$XLCXX" = "xyes"; then
13256 CXXFLAGS="$CXXFLAGS -qunique"
13257fi
13258
13259
4d7ec9f1
DE
13260case "${host}" in
13261 powerpc-*-darwin* )
13262 echo "$as_me:$LINENO: checking if __POWERPC__ is already defined" >&5
13263echo $ECHO_N "checking if __POWERPC__ is already defined... $ECHO_C" >&6
13264 cat >conftest.$ac_ext <<_ACEOF
13265/* confdefs.h. */
13266_ACEOF
13267cat confdefs.h >>conftest.$ac_ext
13268cat >>conftest.$ac_ext <<_ACEOF
13269/* end confdefs.h. */
13270
13271int
13272main ()
13273{
13274#ifndef __POWERPC__
13275 choke me for lack of PowerPC
13276#endif
13277
13278 ;
13279 return 0;
13280}
13281_ACEOF
13282rm -f conftest.$ac_objext
13283if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13284 (eval $ac_compile) 2>conftest.er1
13285 ac_status=$?
13286 grep -v '^ *+' conftest.er1 >conftest.err
13287 rm -f conftest.er1
13288 cat conftest.err >&5
13289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13290 (exit $ac_status); } &&
9dd0f6c2 13291 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4d7ec9f1
DE
13292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13293 (eval $ac_try) 2>&5
13294 ac_status=$?
13295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13296 (exit $ac_status); }; } &&
13297 { ac_try='test -s conftest.$ac_objext'
13298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13299 (eval $ac_try) 2>&5
13300 ac_status=$?
13301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13302 (exit $ac_status); }; }; then
13303 echo "$as_me:$LINENO: result: yes" >&5
13304echo "${ECHO_T}yes" >&6
13305else
13306 echo "$as_me: failed program was:" >&5
13307sed 's/^/| /' conftest.$ac_ext >&5
13308
13309echo "$as_me:$LINENO: result: no" >&5
13310echo "${ECHO_T}no" >&6
13311 cat >>confdefs.h <<\_ACEOF
13312#define __POWERPC__ 1
13313_ACEOF
13314
13315
13316fi
13317rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13318 echo "$as_me:$LINENO: checking if CoreFoundation/CFBase.h is usable" >&5
13319echo $ECHO_N "checking if CoreFoundation/CFBase.h is usable... $ECHO_C" >&6
13320 cat >conftest.$ac_ext <<_ACEOF
13321/* confdefs.h. */
13322_ACEOF
13323cat confdefs.h >>conftest.$ac_ext
13324cat >>conftest.$ac_ext <<_ACEOF
13325/* end confdefs.h. */
13326#include <CoreFoundation/CFBase.h>
13327
13328int
13329main ()
13330{
13331
13332 ;
13333 return 0;
13334}
13335_ACEOF
13336rm -f conftest.$ac_objext
13337if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13338 (eval $ac_compile) 2>conftest.er1
13339 ac_status=$?
13340 grep -v '^ *+' conftest.er1 >conftest.err
13341 rm -f conftest.er1
13342 cat conftest.err >&5
13343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13344 (exit $ac_status); } &&
9dd0f6c2 13345 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4d7ec9f1
DE
13346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13347 (eval $ac_try) 2>&5
13348 ac_status=$?
13349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13350 (exit $ac_status); }; } &&
13351 { ac_try='test -s conftest.$ac_objext'
13352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13353 (eval $ac_try) 2>&5
13354 ac_status=$?
13355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13356 (exit $ac_status); }; }; then
13357 echo "$as_me:$LINENO: result: yes" >&5
13358echo "${ECHO_T}yes" >&6
13359else
13360 echo "$as_me: failed program was:" >&5
13361sed 's/^/| /' conftest.$ac_ext >&5
13362
13363echo "$as_me:$LINENO: result: no" >&5
13364echo "${ECHO_T}no" >&6
13365 echo "$as_me:$LINENO: checking if __CF_USE_FRAMEWORK_INCLUDES__ is required" >&5
13366echo $ECHO_N "checking if __CF_USE_FRAMEWORK_INCLUDES__ is required... $ECHO_C" >&6
13367 cat >conftest.$ac_ext <<_ACEOF
13368/* confdefs.h. */
13369_ACEOF
13370cat confdefs.h >>conftest.$ac_ext
13371cat >>conftest.$ac_ext <<_ACEOF
13372/* end confdefs.h. */
13373#define __CF_USE_FRAMEWORK_INCLUDES__
13374#include <CoreFoundation/CFBase.h>
13375
13376int
13377main ()
13378{
13379
13380 ;
13381 return 0;
13382}
13383_ACEOF
13384rm -f conftest.$ac_objext
13385if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13386 (eval $ac_compile) 2>conftest.er1
13387 ac_status=$?
13388 grep -v '^ *+' conftest.er1 >conftest.err
13389 rm -f conftest.er1
13390 cat conftest.err >&5
13391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13392 (exit $ac_status); } &&
9dd0f6c2 13393 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4d7ec9f1
DE
13394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13395 (eval $ac_try) 2>&5
13396 ac_status=$?
13397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13398 (exit $ac_status); }; } &&
13399 { ac_try='test -s conftest.$ac_objext'
13400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13401 (eval $ac_try) 2>&5
13402 ac_status=$?
13403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13404 (exit $ac_status); }; }; then
13405 echo "$as_me:$LINENO: result: yes" >&5
13406echo "${ECHO_T}yes" >&6
13407 CPPFLAGS="$CPPFLAGS -D__CF_USE_FRAMEWORK_INCLUDES__"
13408else
13409 echo "$as_me: failed program was:" >&5
13410sed 's/^/| /' conftest.$ac_ext >&5
13411
13412{ { echo "$as_me:$LINENO: error: no. CoreFoundation not available.
13413See \`config.log' for more details." >&5
13414echo "$as_me: error: no. CoreFoundation not available.
13415See \`config.log' for more details." >&2;}
13416 { (exit 1); exit 1; }; }
13417
13418fi
13419rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13420
13421
13422fi
13423rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13424 ;;
13425esac
13426
a848cd7e
SC
13427case "${host}" in
13428 *-pc-os2_emx | *-pc-os2-emx )
13429 if test "$wxUSE_MOTIF" = 1 -o "$wxUSE_GTK" = 1 -o "$wxUSE_X11" = 1; then
13430 echo "$as_me:$LINENO: checking for drand48 in -lcExt" >&5
13431echo $ECHO_N "checking for drand48 in -lcExt... $ECHO_C" >&6
13432if test "${ac_cv_lib_cExt_drand48+set}" = set; then
13433 echo $ECHO_N "(cached) $ECHO_C" >&6
13434else
13435 ac_check_lib_save_LIBS=$LIBS
13436LIBS="-lcExt $LIBS"
13437cat >conftest.$ac_ext <<_ACEOF
13438/* confdefs.h. */
13439_ACEOF
13440cat confdefs.h >>conftest.$ac_ext
13441cat >>conftest.$ac_ext <<_ACEOF
13442/* end confdefs.h. */
13443
13444/* Override any gcc2 internal prototype to avoid an error. */
13445#ifdef __cplusplus
13446extern "C"
13447#endif
13448/* We use char because int might match the return type of a gcc2
13449 builtin and then its argument prototype would still apply. */
13450char drand48 ();
13451int
13452main ()
13453{
13454drand48 ();
13455 ;
13456 return 0;
13457}
13458_ACEOF
13459rm -f conftest.$ac_objext conftest$ac_exeext
13460if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 13461 (eval $ac_link) 2>conftest.er1
a848cd7e 13462 ac_status=$?
ac1cb8d3
VS
13463 grep -v '^ *+' conftest.er1 >conftest.err
13464 rm -f conftest.er1
13465 cat conftest.err >&5
a848cd7e
SC
13466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13467 (exit $ac_status); } &&
9dd0f6c2 13468 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
13469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13470 (eval $ac_try) 2>&5
13471 ac_status=$?
13472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13473 (exit $ac_status); }; } &&
13474 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
13475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13476 (eval $ac_try) 2>&5
13477 ac_status=$?
13478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13479 (exit $ac_status); }; }; then
13480 ac_cv_lib_cExt_drand48=yes
13481else
13482 echo "$as_me: failed program was:" >&5
13483sed 's/^/| /' conftest.$ac_ext >&5
13484
13485ac_cv_lib_cExt_drand48=no
13486fi
ac1cb8d3
VS
13487rm -f conftest.err conftest.$ac_objext \
13488 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
13489LIBS=$ac_check_lib_save_LIBS
13490fi
13491echo "$as_me:$LINENO: result: $ac_cv_lib_cExt_drand48" >&5
13492echo "${ECHO_T}$ac_cv_lib_cExt_drand48" >&6
13493if test $ac_cv_lib_cExt_drand48 = yes; then
13494 LIBS="$LIBS -lcExt"
13495fi
13496
13497 else
13498 RESPROGRAMOBJ="\${top_srcdir}/include/wx/os2/wx.res"
13499 fi
69120ee4
VZ
13500 echo "$as_me:$LINENO: checking for gcc/libc version" >&5
13501echo $ECHO_N "checking for gcc/libc version... $ECHO_C" >&6
a848cd7e
SC
13502if test "${wx_cv_gccversion+set}" = set; then
13503 echo $ECHO_N "(cached) $ECHO_C" >&6
13504else
13505
391a765e
VS
13506 if test "$cross_compiling" = yes; then
13507 wx_cv_gccversion="EMX2"
13508
13509else
13510 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
13511/* confdefs.h. */
13512_ACEOF
13513cat confdefs.h >>conftest.$ac_ext
13514cat >>conftest.$ac_ext <<_ACEOF
13515/* end confdefs.h. */
13516
391a765e 13517 #include <stdio.h>
a848cd7e 13518
391a765e
VS
13519 int main()
13520 {
13521 FILE *f=fopen("conftestval", "w");
13522 if (!f) exit(1);
13523 fprintf(f,
a848cd7e 13524 #if (__GNUC__ < 3)
391a765e
VS
13525 "EMX2"
13526 #elif (__GNUC__==3) && ((__GNUC_MINOR__ < 2) || ((__GNUC_MINOR__==2) && (__GNUC_PATCHLEVEL__<2)))
13527 "EMX3"
13528 #elif (__GNUC__==3) && (__GNUC_MINOR__==2) && (__GNUC_PATCHLEVEL__==2)
13529 "Innotek5"
13530 #else
13531 "Innotek6"
a848cd7e 13532 #endif
391a765e
VS
13533 );
13534 exit(0);
13535 }
a848cd7e 13536
a848cd7e 13537_ACEOF
391a765e
VS
13538rm -f conftest$ac_exeext
13539if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13540 (eval $ac_link) 2>&5
ac1cb8d3
VS
13541 ac_status=$?
13542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
391a765e 13543 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
a848cd7e
SC
13544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13545 (eval $ac_try) 2>&5
13546 ac_status=$?
13547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13548 (exit $ac_status); }; }; then
391a765e 13549 wx_cv_gccversion=`cat conftestval`
a848cd7e 13550else
391a765e
VS
13551 echo "$as_me: program exited with status $ac_status" >&5
13552echo "$as_me: failed program was:" >&5
a848cd7e
SC
13553sed 's/^/| /' conftest.$ac_ext >&5
13554
391a765e
VS
13555( exit $ac_status )
13556wx_cv_gccversion="EMX2"
a848cd7e 13557fi
391a765e 13558rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e 13559fi
a848cd7e
SC
13560
13561fi
13562echo "$as_me:$LINENO: result: $wx_cv_gccversion" >&5
13563echo "${ECHO_T}$wx_cv_gccversion" >&6
391a765e 13564 if test "$wx_cv_gccversion" = "EMX2"; then
a848cd7e
SC
13565 LIBS="$LIBS -lstdcpp"
13566 LDFLAGS="$LDFLAGS -Zsysv-signals"
13567 else
391a765e 13568 if test "$wx_cv_gccversion" = "EMX3"; then
a848cd7e
SC
13569 LIBS="$LIBS -lstdcxx"
13570 LDFLAGS="$LDFLAGS -Zsysv-signals"
13571 else
13572 LIBS="$LIBS -lstdc++"
13573 fi
13574 fi
94acd38e
DE
13575 if test "$wxUSE_SHARED" = "yes" -a "$wxUSE_OMF" = "no"; then
13576 { echo "$as_me:$LINENO: WARNING: Building DLLs requires OMF mode, enabled" >&5
13577echo "$as_me: WARNING: Building DLLs requires OMF mode, enabled" >&2;}
13578 wxUSE_OMF=yes
2da0c077 13579 enable_omf=yes
a848cd7e
SC
13580 fi
13581 ;;
13582 *)
13583
13584
13585
13586 ac_ext=cc
13587ac_cpp='$CXXCPP $CPPFLAGS'
13588ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13589ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13590ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13591
13592
95986553 13593 echo "$as_me:$LINENO: checking for strcasecmp() in string.h" >&5
a848cd7e
SC
13594echo $ECHO_N "checking for strcasecmp() in string.h... $ECHO_C" >&6
13595if test "${ac_cv_string_strcasecmp+set}" = set; then
13596 echo $ECHO_N "(cached) $ECHO_C" >&6
13597else
13598
13599 cat >conftest.$ac_ext <<_ACEOF
13600/* confdefs.h. */
13601_ACEOF
13602cat confdefs.h >>conftest.$ac_ext
13603cat >>conftest.$ac_ext <<_ACEOF
13604/* end confdefs.h. */
13605
13606 #include <string.h>
13607
13608int
13609main ()
13610{
13611
13612 strcasecmp("foo", "bar");
13613
13614 ;
13615 return 0;
13616}
13617_ACEOF
13618rm -f conftest.$ac_objext conftest$ac_exeext
13619if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 13620 (eval $ac_link) 2>conftest.er1
a848cd7e 13621 ac_status=$?
ac1cb8d3
VS
13622 grep -v '^ *+' conftest.er1 >conftest.err
13623 rm -f conftest.er1
13624 cat conftest.err >&5
a848cd7e
SC
13625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13626 (exit $ac_status); } &&
9dd0f6c2 13627 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
13628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13629 (eval $ac_try) 2>&5
13630 ac_status=$?
13631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13632 (exit $ac_status); }; } &&
13633 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
13634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13635 (eval $ac_try) 2>&5
13636 ac_status=$?
13637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13638 (exit $ac_status); }; }; then
13639 ac_cv_string_strcasecmp=yes
13640else
13641 echo "$as_me: failed program was:" >&5
13642sed 's/^/| /' conftest.$ac_ext >&5
13643
13644ac_cv_string_strcasecmp=no
13645
13646fi
ac1cb8d3
VS
13647rm -f conftest.err conftest.$ac_objext \
13648 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
13649
13650fi
13651echo "$as_me:$LINENO: result: $ac_cv_string_strcasecmp" >&5
13652echo "${ECHO_T}$ac_cv_string_strcasecmp" >&6
13653
13654 if test x"$ac_cv_string_strcasecmp" = "xyes"; then
13655 cat >>confdefs.h <<\_ACEOF
13656#define HAVE_STRCASECMP_IN_STRING_H 1
13657_ACEOF
13658
13659 else
13660 echo "$as_me:$LINENO: checking for strcasecmp() in strings.h" >&5
13661echo $ECHO_N "checking for strcasecmp() in strings.h... $ECHO_C" >&6
13662if test "${ac_cv_strings_strcasecmp+set}" = set; then
13663 echo $ECHO_N "(cached) $ECHO_C" >&6
13664else
13665
13666 cat >conftest.$ac_ext <<_ACEOF
13667/* confdefs.h. */
13668_ACEOF
13669cat confdefs.h >>conftest.$ac_ext
13670cat >>conftest.$ac_ext <<_ACEOF
13671/* end confdefs.h. */
13672
13673 #include <strings.h>
13674
13675int
13676main ()
13677{
13678
13679 strcasecmp("foo", "bar");
13680
13681 ;
13682 return 0;
13683}
13684_ACEOF
13685rm -f conftest.$ac_objext conftest$ac_exeext
13686if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 13687 (eval $ac_link) 2>conftest.er1
a848cd7e 13688 ac_status=$?
ac1cb8d3
VS
13689 grep -v '^ *+' conftest.er1 >conftest.err
13690 rm -f conftest.er1
13691 cat conftest.err >&5
a848cd7e
SC
13692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13693 (exit $ac_status); } &&
9dd0f6c2 13694 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
13695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13696 (eval $ac_try) 2>&5
13697 ac_status=$?
13698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13699 (exit $ac_status); }; } &&
13700 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
13701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13702 (eval $ac_try) 2>&5
13703 ac_status=$?
13704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13705 (exit $ac_status); }; }; then
13706 ac_cv_strings_strcasecmp=yes
13707else
13708 echo "$as_me: failed program was:" >&5
13709sed 's/^/| /' conftest.$ac_ext >&5
13710
13711ac_cv_strings_strcasecmp=no
13712
13713fi
ac1cb8d3
VS
13714rm -f conftest.err conftest.$ac_objext \
13715 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
13716
13717fi
13718echo "$as_me:$LINENO: result: $ac_cv_strings_strcasecmp" >&5
13719echo "${ECHO_T}$ac_cv_strings_strcasecmp" >&6
13720
0c3c69fc 13721 if test x"$ac_cv_strings_strcasecmp" = "xyes"; then
a848cd7e
SC
13722 cat >>confdefs.h <<\_ACEOF
13723#define HAVE_STRCASECMP_IN_STRINGS_H 1
13724_ACEOF
13725
13726 else
13727 { { echo "$as_me:$LINENO: error: No case-insensitive string comparison function found." >&5
13728echo "$as_me: error: No case-insensitive string comparison function found." >&2;}
13729 { (exit 1); exit 1; }; }
13730 fi
13731 fi
13732
13733 ac_ext=c
13734ac_cpp='$CPP $CPPFLAGS'
13735ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13736ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13737ac_compiler_gnu=$ac_cv_c_compiler_gnu
13738
13739 ;;
13740esac
13741
13742
13743echo "$as_me:$LINENO: checking for ANSI C header files" >&5
13744echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
13745if test "${ac_cv_header_stdc+set}" = set; then
13746 echo $ECHO_N "(cached) $ECHO_C" >&6
13747else
13748 cat >conftest.$ac_ext <<_ACEOF
13749/* confdefs.h. */
13750_ACEOF
13751cat confdefs.h >>conftest.$ac_ext
13752cat >>conftest.$ac_ext <<_ACEOF
13753/* end confdefs.h. */
13754#include <stdlib.h>
13755#include <stdarg.h>
13756#include <string.h>
13757#include <float.h>
13758
13759int
13760main ()
13761{
13762
13763 ;
13764 return 0;
13765}
13766_ACEOF
13767rm -f conftest.$ac_objext
13768if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 13769 (eval $ac_compile) 2>conftest.er1
a848cd7e 13770 ac_status=$?
ac1cb8d3
VS
13771 grep -v '^ *+' conftest.er1 >conftest.err
13772 rm -f conftest.er1
13773 cat conftest.err >&5
a848cd7e
SC
13774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13775 (exit $ac_status); } &&
9dd0f6c2 13776 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
13777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13778 (eval $ac_try) 2>&5
13779 ac_status=$?
13780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13781 (exit $ac_status); }; } &&
13782 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
13783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13784 (eval $ac_try) 2>&5
13785 ac_status=$?
13786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13787 (exit $ac_status); }; }; then
13788 ac_cv_header_stdc=yes
13789else
13790 echo "$as_me: failed program was:" >&5
13791sed 's/^/| /' conftest.$ac_ext >&5
13792
13793ac_cv_header_stdc=no
13794fi
ac1cb8d3 13795rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
13796
13797if test $ac_cv_header_stdc = yes; then
13798 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
13799 cat >conftest.$ac_ext <<_ACEOF
13800/* confdefs.h. */
13801_ACEOF
13802cat confdefs.h >>conftest.$ac_ext
13803cat >>conftest.$ac_ext <<_ACEOF
13804/* end confdefs.h. */
13805#include <string.h>
13806
13807_ACEOF
13808if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13809 $EGREP "memchr" >/dev/null 2>&1; then
13810 :
13811else
13812 ac_cv_header_stdc=no
13813fi
13814rm -f conftest*
13815
13816fi
13817
13818if test $ac_cv_header_stdc = yes; then
13819 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
13820 cat >conftest.$ac_ext <<_ACEOF
13821/* confdefs.h. */
13822_ACEOF
13823cat confdefs.h >>conftest.$ac_ext
13824cat >>conftest.$ac_ext <<_ACEOF
13825/* end confdefs.h. */
13826#include <stdlib.h>
13827
13828_ACEOF
13829if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13830 $EGREP "free" >/dev/null 2>&1; then
13831 :
13832else
13833 ac_cv_header_stdc=no
13834fi
13835rm -f conftest*
13836
13837fi
13838
13839if test $ac_cv_header_stdc = yes; then
13840 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
13841 if test "$cross_compiling" = yes; then
13842 :
13843else
13844 cat >conftest.$ac_ext <<_ACEOF
13845/* confdefs.h. */
13846_ACEOF
13847cat confdefs.h >>conftest.$ac_ext
13848cat >>conftest.$ac_ext <<_ACEOF
13849/* end confdefs.h. */
13850#include <ctype.h>
13851#if ((' ' & 0x0FF) == 0x020)
13852# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
13853# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
13854#else
13855# define ISLOWER(c) \
ac1cb8d3
VS
13856 (('a' <= (c) && (c) <= 'i') \
13857 || ('j' <= (c) && (c) <= 'r') \
13858 || ('s' <= (c) && (c) <= 'z'))
a848cd7e
SC
13859# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
13860#endif
13861
13862#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
13863int
13864main ()
13865{
13866 int i;
13867 for (i = 0; i < 256; i++)
13868 if (XOR (islower (i), ISLOWER (i))
ac1cb8d3 13869 || toupper (i) != TOUPPER (i))
a848cd7e
SC
13870 exit(2);
13871 exit (0);
13872}
13873_ACEOF
13874rm -f conftest$ac_exeext
13875if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13876 (eval $ac_link) 2>&5
13877 ac_status=$?
13878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13879 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13881 (eval $ac_try) 2>&5
13882 ac_status=$?
13883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13884 (exit $ac_status); }; }; then
13885 :
13886else
13887 echo "$as_me: program exited with status $ac_status" >&5
13888echo "$as_me: failed program was:" >&5
13889sed 's/^/| /' conftest.$ac_ext >&5
13890
13891( exit $ac_status )
13892ac_cv_header_stdc=no
13893fi
ac1cb8d3 13894rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
13895fi
13896fi
13897fi
13898echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
13899echo "${ECHO_T}$ac_cv_header_stdc" >&6
13900if test $ac_cv_header_stdc = yes; then
13901
13902cat >>confdefs.h <<\_ACEOF
13903#define STDC_HEADERS 1
13904_ACEOF
13905
13906fi
13907
13908# On IRIX 5.3, sys/types and inttypes.h are conflicting.
13909
13910
13911
13912
13913
13914
13915
13916
13917
13918for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
ac1cb8d3 13919 inttypes.h stdint.h unistd.h
a848cd7e
SC
13920do
13921as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13922echo "$as_me:$LINENO: checking for $ac_header" >&5
13923echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13924if eval "test \"\${$as_ac_Header+set}\" = set"; then
13925 echo $ECHO_N "(cached) $ECHO_C" >&6
13926else
13927 cat >conftest.$ac_ext <<_ACEOF
13928/* confdefs.h. */
13929_ACEOF
13930cat confdefs.h >>conftest.$ac_ext
13931cat >>conftest.$ac_ext <<_ACEOF
13932/* end confdefs.h. */
13933$ac_includes_default
13934
13935#include <$ac_header>
13936_ACEOF
13937rm -f conftest.$ac_objext
13938if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 13939 (eval $ac_compile) 2>conftest.er1
a848cd7e 13940 ac_status=$?
ac1cb8d3
VS
13941 grep -v '^ *+' conftest.er1 >conftest.err
13942 rm -f conftest.er1
13943 cat conftest.err >&5
a848cd7e
SC
13944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13945 (exit $ac_status); } &&
9dd0f6c2 13946 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
13947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13948 (eval $ac_try) 2>&5
13949 ac_status=$?
13950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13951 (exit $ac_status); }; } &&
13952 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
13953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13954 (eval $ac_try) 2>&5
13955 ac_status=$?
13956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13957 (exit $ac_status); }; }; then
13958 eval "$as_ac_Header=yes"
13959else
13960 echo "$as_me: failed program was:" >&5
13961sed 's/^/| /' conftest.$ac_ext >&5
13962
13963eval "$as_ac_Header=no"
13964fi
ac1cb8d3 13965rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
13966fi
13967echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13968echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13969if test `eval echo '${'$as_ac_Header'}'` = yes; then
13970 cat >>confdefs.h <<_ACEOF
13971#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13972_ACEOF
13973
13974fi
13975
13976done
13977
13978
13979
13980for ac_header in stdlib.h
13981do
13982as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13983if eval "test \"\${$as_ac_Header+set}\" = set"; then
13984 echo "$as_me:$LINENO: checking for $ac_header" >&5
13985echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13986if eval "test \"\${$as_ac_Header+set}\" = set"; then
13987 echo $ECHO_N "(cached) $ECHO_C" >&6
13988fi
13989echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13990echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13991else
13992 # Is the header compilable?
13993echo "$as_me:$LINENO: checking $ac_header usability" >&5
13994echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13995cat >conftest.$ac_ext <<_ACEOF
13996/* confdefs.h. */
13997_ACEOF
13998cat confdefs.h >>conftest.$ac_ext
13999cat >>conftest.$ac_ext <<_ACEOF
14000/* end confdefs.h. */
14001$ac_includes_default
14002#include <$ac_header>
14003_ACEOF
14004rm -f conftest.$ac_objext
14005if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14006 (eval $ac_compile) 2>conftest.er1
a848cd7e 14007 ac_status=$?
ac1cb8d3
VS
14008 grep -v '^ *+' conftest.er1 >conftest.err
14009 rm -f conftest.er1
14010 cat conftest.err >&5
a848cd7e
SC
14011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14012 (exit $ac_status); } &&
9dd0f6c2 14013 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
14014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14015 (eval $ac_try) 2>&5
14016 ac_status=$?
14017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14018 (exit $ac_status); }; } &&
14019 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14021 (eval $ac_try) 2>&5
14022 ac_status=$?
14023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14024 (exit $ac_status); }; }; then
14025 ac_header_compiler=yes
14026else
14027 echo "$as_me: failed program was:" >&5
14028sed 's/^/| /' conftest.$ac_ext >&5
14029
14030ac_header_compiler=no
14031fi
ac1cb8d3 14032rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14033echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14034echo "${ECHO_T}$ac_header_compiler" >&6
14035
14036# Is the header present?
14037echo "$as_me:$LINENO: checking $ac_header presence" >&5
14038echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14039cat >conftest.$ac_ext <<_ACEOF
14040/* confdefs.h. */
14041_ACEOF
14042cat confdefs.h >>conftest.$ac_ext
14043cat >>conftest.$ac_ext <<_ACEOF
14044/* end confdefs.h. */
14045#include <$ac_header>
14046_ACEOF
14047if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14048 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14049 ac_status=$?
14050 grep -v '^ *+' conftest.er1 >conftest.err
14051 rm -f conftest.er1
14052 cat conftest.err >&5
14053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14054 (exit $ac_status); } >/dev/null; then
14055 if test -s conftest.err; then
14056 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 14057 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
14058 else
14059 ac_cpp_err=
14060 fi
14061else
14062 ac_cpp_err=yes
14063fi
14064if test -z "$ac_cpp_err"; then
14065 ac_header_preproc=yes
14066else
14067 echo "$as_me: failed program was:" >&5
14068sed 's/^/| /' conftest.$ac_ext >&5
14069
14070 ac_header_preproc=no
14071fi
14072rm -f conftest.err conftest.$ac_ext
14073echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14074echo "${ECHO_T}$ac_header_preproc" >&6
14075
14076# So? What about this header?
ac1cb8d3
VS
14077case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14078 yes:no: )
a848cd7e
SC
14079 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14080echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
14081 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14082echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14083 ac_header_preproc=yes
a848cd7e 14084 ;;
ac1cb8d3 14085 no:yes:* )
a848cd7e
SC
14086 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14087echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
14088 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14089echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14090 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14091echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14092 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14093echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
14094 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14095echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
14096 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14097echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
14098 (
14099 cat <<\_ASBOX
ac1cb8d3
VS
14100## ----------------------------------------- ##
14101## Report this to wx-dev@lists.wxwidgets.org ##
14102## ----------------------------------------- ##
a848cd7e
SC
14103_ASBOX
14104 ) |
14105 sed "s/^/$as_me: WARNING: /" >&2
14106 ;;
14107esac
14108echo "$as_me:$LINENO: checking for $ac_header" >&5
14109echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14110if eval "test \"\${$as_ac_Header+set}\" = set"; then
14111 echo $ECHO_N "(cached) $ECHO_C" >&6
14112else
ac1cb8d3 14113 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
14114fi
14115echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14116echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14117
14118fi
14119if test `eval echo '${'$as_ac_Header'}'` = yes; then
14120 cat >>confdefs.h <<_ACEOF
14121#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14122_ACEOF
14123
14124fi
14125
14126done
14127
14128
14129for ac_header in malloc.h
14130do
14131as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14132if eval "test \"\${$as_ac_Header+set}\" = set"; then
14133 echo "$as_me:$LINENO: checking for $ac_header" >&5
14134echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14135if eval "test \"\${$as_ac_Header+set}\" = set"; then
14136 echo $ECHO_N "(cached) $ECHO_C" >&6
14137fi
14138echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14139echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14140else
14141 # Is the header compilable?
14142echo "$as_me:$LINENO: checking $ac_header usability" >&5
14143echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14144cat >conftest.$ac_ext <<_ACEOF
14145/* confdefs.h. */
14146_ACEOF
14147cat confdefs.h >>conftest.$ac_ext
14148cat >>conftest.$ac_ext <<_ACEOF
14149/* end confdefs.h. */
14150$ac_includes_default
14151#include <$ac_header>
14152_ACEOF
14153rm -f conftest.$ac_objext
14154if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14155 (eval $ac_compile) 2>conftest.er1
a848cd7e 14156 ac_status=$?
ac1cb8d3
VS
14157 grep -v '^ *+' conftest.er1 >conftest.err
14158 rm -f conftest.er1
14159 cat conftest.err >&5
a848cd7e
SC
14160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14161 (exit $ac_status); } &&
9dd0f6c2 14162 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
14163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14164 (eval $ac_try) 2>&5
14165 ac_status=$?
14166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14167 (exit $ac_status); }; } &&
14168 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14170 (eval $ac_try) 2>&5
14171 ac_status=$?
14172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14173 (exit $ac_status); }; }; then
14174 ac_header_compiler=yes
14175else
14176 echo "$as_me: failed program was:" >&5
14177sed 's/^/| /' conftest.$ac_ext >&5
14178
14179ac_header_compiler=no
14180fi
ac1cb8d3 14181rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14182echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14183echo "${ECHO_T}$ac_header_compiler" >&6
14184
14185# Is the header present?
14186echo "$as_me:$LINENO: checking $ac_header presence" >&5
14187echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14188cat >conftest.$ac_ext <<_ACEOF
14189/* confdefs.h. */
14190_ACEOF
14191cat confdefs.h >>conftest.$ac_ext
14192cat >>conftest.$ac_ext <<_ACEOF
14193/* end confdefs.h. */
14194#include <$ac_header>
14195_ACEOF
14196if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14197 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14198 ac_status=$?
14199 grep -v '^ *+' conftest.er1 >conftest.err
14200 rm -f conftest.er1
14201 cat conftest.err >&5
14202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14203 (exit $ac_status); } >/dev/null; then
14204 if test -s conftest.err; then
14205 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 14206 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
14207 else
14208 ac_cpp_err=
14209 fi
14210else
14211 ac_cpp_err=yes
14212fi
14213if test -z "$ac_cpp_err"; then
14214 ac_header_preproc=yes
14215else
14216 echo "$as_me: failed program was:" >&5
14217sed 's/^/| /' conftest.$ac_ext >&5
14218
14219 ac_header_preproc=no
14220fi
14221rm -f conftest.err conftest.$ac_ext
14222echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14223echo "${ECHO_T}$ac_header_preproc" >&6
14224
14225# So? What about this header?
ac1cb8d3
VS
14226case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14227 yes:no: )
a848cd7e
SC
14228 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14229echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
14230 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14231echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14232 ac_header_preproc=yes
a848cd7e 14233 ;;
ac1cb8d3 14234 no:yes:* )
a848cd7e
SC
14235 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14236echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
14237 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14238echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14239 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14240echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14241 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14242echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
14243 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14244echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
14245 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14246echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
14247 (
14248 cat <<\_ASBOX
ac1cb8d3
VS
14249## ----------------------------------------- ##
14250## Report this to wx-dev@lists.wxwidgets.org ##
14251## ----------------------------------------- ##
a848cd7e
SC
14252_ASBOX
14253 ) |
14254 sed "s/^/$as_me: WARNING: /" >&2
14255 ;;
14256esac
14257echo "$as_me:$LINENO: checking for $ac_header" >&5
14258echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14259if eval "test \"\${$as_ac_Header+set}\" = set"; then
14260 echo $ECHO_N "(cached) $ECHO_C" >&6
14261else
ac1cb8d3 14262 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
14263fi
14264echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14265echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14266
14267fi
14268if test `eval echo '${'$as_ac_Header'}'` = yes; then
14269 cat >>confdefs.h <<_ACEOF
14270#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14271_ACEOF
14272
14273fi
14274
14275done
14276
14277
14278for ac_header in unistd.h
14279do
14280as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14281if eval "test \"\${$as_ac_Header+set}\" = set"; then
14282 echo "$as_me:$LINENO: checking for $ac_header" >&5
14283echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14284if eval "test \"\${$as_ac_Header+set}\" = set"; then
14285 echo $ECHO_N "(cached) $ECHO_C" >&6
14286fi
14287echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14288echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14289else
14290 # Is the header compilable?
14291echo "$as_me:$LINENO: checking $ac_header usability" >&5
14292echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14293cat >conftest.$ac_ext <<_ACEOF
14294/* confdefs.h. */
14295_ACEOF
14296cat confdefs.h >>conftest.$ac_ext
14297cat >>conftest.$ac_ext <<_ACEOF
14298/* end confdefs.h. */
14299$ac_includes_default
14300#include <$ac_header>
14301_ACEOF
14302rm -f conftest.$ac_objext
14303if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14304 (eval $ac_compile) 2>conftest.er1
a848cd7e 14305 ac_status=$?
ac1cb8d3
VS
14306 grep -v '^ *+' conftest.er1 >conftest.err
14307 rm -f conftest.er1
14308 cat conftest.err >&5
a848cd7e
SC
14309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14310 (exit $ac_status); } &&
9dd0f6c2 14311 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
14312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14313 (eval $ac_try) 2>&5
14314 ac_status=$?
14315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14316 (exit $ac_status); }; } &&
14317 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14319 (eval $ac_try) 2>&5
14320 ac_status=$?
14321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14322 (exit $ac_status); }; }; then
14323 ac_header_compiler=yes
14324else
14325 echo "$as_me: failed program was:" >&5
14326sed 's/^/| /' conftest.$ac_ext >&5
14327
14328ac_header_compiler=no
14329fi
ac1cb8d3 14330rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14331echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14332echo "${ECHO_T}$ac_header_compiler" >&6
14333
14334# Is the header present?
14335echo "$as_me:$LINENO: checking $ac_header presence" >&5
14336echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14337cat >conftest.$ac_ext <<_ACEOF
14338/* confdefs.h. */
14339_ACEOF
14340cat confdefs.h >>conftest.$ac_ext
14341cat >>conftest.$ac_ext <<_ACEOF
14342/* end confdefs.h. */
14343#include <$ac_header>
14344_ACEOF
14345if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14346 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14347 ac_status=$?
14348 grep -v '^ *+' conftest.er1 >conftest.err
14349 rm -f conftest.er1
14350 cat conftest.err >&5
14351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14352 (exit $ac_status); } >/dev/null; then
14353 if test -s conftest.err; then
14354 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 14355 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
14356 else
14357 ac_cpp_err=
14358 fi
14359else
14360 ac_cpp_err=yes
14361fi
14362if test -z "$ac_cpp_err"; then
14363 ac_header_preproc=yes
14364else
14365 echo "$as_me: failed program was:" >&5
14366sed 's/^/| /' conftest.$ac_ext >&5
14367
14368 ac_header_preproc=no
14369fi
14370rm -f conftest.err conftest.$ac_ext
14371echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14372echo "${ECHO_T}$ac_header_preproc" >&6
14373
14374# So? What about this header?
ac1cb8d3
VS
14375case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14376 yes:no: )
a848cd7e
SC
14377 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14378echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
14379 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14380echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14381 ac_header_preproc=yes
a848cd7e 14382 ;;
ac1cb8d3 14383 no:yes:* )
a848cd7e
SC
14384 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14385echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
14386 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14387echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14388 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14389echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14390 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14391echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
14392 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14393echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
14394 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14395echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
14396 (
14397 cat <<\_ASBOX
ac1cb8d3
VS
14398## ----------------------------------------- ##
14399## Report this to wx-dev@lists.wxwidgets.org ##
14400## ----------------------------------------- ##
a848cd7e
SC
14401_ASBOX
14402 ) |
14403 sed "s/^/$as_me: WARNING: /" >&2
14404 ;;
14405esac
14406echo "$as_me:$LINENO: checking for $ac_header" >&5
14407echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14408if eval "test \"\${$as_ac_Header+set}\" = set"; then
14409 echo $ECHO_N "(cached) $ECHO_C" >&6
14410else
ac1cb8d3 14411 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
14412fi
14413echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14414echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14415
14416fi
14417if test `eval echo '${'$as_ac_Header'}'` = yes; then
14418 cat >>confdefs.h <<_ACEOF
14419#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14420_ACEOF
14421
14422fi
14423
14424done
14425
14426
14427for ac_header in wchar.h
14428do
14429as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14430if eval "test \"\${$as_ac_Header+set}\" = set"; then
14431 echo "$as_me:$LINENO: checking for $ac_header" >&5
14432echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14433if eval "test \"\${$as_ac_Header+set}\" = set"; then
14434 echo $ECHO_N "(cached) $ECHO_C" >&6
14435fi
14436echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14437echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14438else
14439 # Is the header compilable?
14440echo "$as_me:$LINENO: checking $ac_header usability" >&5
14441echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14442cat >conftest.$ac_ext <<_ACEOF
14443/* confdefs.h. */
14444_ACEOF
14445cat confdefs.h >>conftest.$ac_ext
14446cat >>conftest.$ac_ext <<_ACEOF
14447/* end confdefs.h. */
14448$ac_includes_default
14449#include <$ac_header>
14450_ACEOF
14451rm -f conftest.$ac_objext
14452if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14453 (eval $ac_compile) 2>conftest.er1
a848cd7e 14454 ac_status=$?
ac1cb8d3
VS
14455 grep -v '^ *+' conftest.er1 >conftest.err
14456 rm -f conftest.er1
14457 cat conftest.err >&5
a848cd7e
SC
14458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14459 (exit $ac_status); } &&
9dd0f6c2 14460 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
14461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14462 (eval $ac_try) 2>&5
14463 ac_status=$?
14464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14465 (exit $ac_status); }; } &&
14466 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14468 (eval $ac_try) 2>&5
14469 ac_status=$?
14470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14471 (exit $ac_status); }; }; then
14472 ac_header_compiler=yes
14473else
14474 echo "$as_me: failed program was:" >&5
14475sed 's/^/| /' conftest.$ac_ext >&5
14476
14477ac_header_compiler=no
14478fi
ac1cb8d3 14479rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14480echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14481echo "${ECHO_T}$ac_header_compiler" >&6
14482
14483# Is the header present?
14484echo "$as_me:$LINENO: checking $ac_header presence" >&5
14485echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14486cat >conftest.$ac_ext <<_ACEOF
14487/* confdefs.h. */
14488_ACEOF
14489cat confdefs.h >>conftest.$ac_ext
14490cat >>conftest.$ac_ext <<_ACEOF
14491/* end confdefs.h. */
14492#include <$ac_header>
14493_ACEOF
14494if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14495 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14496 ac_status=$?
14497 grep -v '^ *+' conftest.er1 >conftest.err
14498 rm -f conftest.er1
14499 cat conftest.err >&5
14500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14501 (exit $ac_status); } >/dev/null; then
14502 if test -s conftest.err; then
14503 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 14504 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
14505 else
14506 ac_cpp_err=
14507 fi
14508else
14509 ac_cpp_err=yes
14510fi
14511if test -z "$ac_cpp_err"; then
14512 ac_header_preproc=yes
14513else
14514 echo "$as_me: failed program was:" >&5
14515sed 's/^/| /' conftest.$ac_ext >&5
14516
14517 ac_header_preproc=no
14518fi
14519rm -f conftest.err conftest.$ac_ext
14520echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14521echo "${ECHO_T}$ac_header_preproc" >&6
14522
14523# So? What about this header?
ac1cb8d3
VS
14524case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14525 yes:no: )
a848cd7e
SC
14526 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14527echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
14528 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14529echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14530 ac_header_preproc=yes
a848cd7e 14531 ;;
ac1cb8d3 14532 no:yes:* )
a848cd7e
SC
14533 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14534echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
14535 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14536echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14537 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14538echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14539 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14540echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
14541 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14542echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
14543 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14544echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
14545 (
14546 cat <<\_ASBOX
ac1cb8d3
VS
14547## ----------------------------------------- ##
14548## Report this to wx-dev@lists.wxwidgets.org ##
14549## ----------------------------------------- ##
a848cd7e
SC
14550_ASBOX
14551 ) |
14552 sed "s/^/$as_me: WARNING: /" >&2
14553 ;;
14554esac
14555echo "$as_me:$LINENO: checking for $ac_header" >&5
14556echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14557if eval "test \"\${$as_ac_Header+set}\" = set"; then
14558 echo $ECHO_N "(cached) $ECHO_C" >&6
14559else
ac1cb8d3 14560 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
14561fi
14562echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14563echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14564
14565fi
14566if test `eval echo '${'$as_ac_Header'}'` = yes; then
14567 cat >>confdefs.h <<_ACEOF
14568#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14569_ACEOF
14570
14571fi
14572
14573done
14574
14575
14576if test "$ac_cv_header_wchar_h" != "yes"; then
14577
14578for ac_header in wcstr.h
14579do
14580as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14581if eval "test \"\${$as_ac_Header+set}\" = set"; then
14582 echo "$as_me:$LINENO: checking for $ac_header" >&5
14583echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14584if eval "test \"\${$as_ac_Header+set}\" = set"; then
14585 echo $ECHO_N "(cached) $ECHO_C" >&6
14586fi
14587echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14588echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14589else
14590 # Is the header compilable?
14591echo "$as_me:$LINENO: checking $ac_header usability" >&5
14592echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14593cat >conftest.$ac_ext <<_ACEOF
14594/* confdefs.h. */
14595_ACEOF
14596cat confdefs.h >>conftest.$ac_ext
14597cat >>conftest.$ac_ext <<_ACEOF
14598/* end confdefs.h. */
14599$ac_includes_default
14600#include <$ac_header>
14601_ACEOF
14602rm -f conftest.$ac_objext
14603if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14604 (eval $ac_compile) 2>conftest.er1
a848cd7e 14605 ac_status=$?
ac1cb8d3
VS
14606 grep -v '^ *+' conftest.er1 >conftest.err
14607 rm -f conftest.er1
14608 cat conftest.err >&5
a848cd7e
SC
14609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14610 (exit $ac_status); } &&
9dd0f6c2 14611 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
14612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14613 (eval $ac_try) 2>&5
14614 ac_status=$?
14615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14616 (exit $ac_status); }; } &&
14617 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14619 (eval $ac_try) 2>&5
14620 ac_status=$?
14621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14622 (exit $ac_status); }; }; then
14623 ac_header_compiler=yes
14624else
14625 echo "$as_me: failed program was:" >&5
14626sed 's/^/| /' conftest.$ac_ext >&5
14627
14628ac_header_compiler=no
14629fi
ac1cb8d3 14630rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14631echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14632echo "${ECHO_T}$ac_header_compiler" >&6
14633
14634# Is the header present?
14635echo "$as_me:$LINENO: checking $ac_header presence" >&5
14636echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14637cat >conftest.$ac_ext <<_ACEOF
14638/* confdefs.h. */
14639_ACEOF
14640cat confdefs.h >>conftest.$ac_ext
14641cat >>conftest.$ac_ext <<_ACEOF
14642/* end confdefs.h. */
14643#include <$ac_header>
14644_ACEOF
14645if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14646 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14647 ac_status=$?
14648 grep -v '^ *+' conftest.er1 >conftest.err
14649 rm -f conftest.er1
14650 cat conftest.err >&5
14651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14652 (exit $ac_status); } >/dev/null; then
14653 if test -s conftest.err; then
14654 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 14655 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
14656 else
14657 ac_cpp_err=
14658 fi
14659else
14660 ac_cpp_err=yes
14661fi
14662if test -z "$ac_cpp_err"; then
14663 ac_header_preproc=yes
14664else
14665 echo "$as_me: failed program was:" >&5
14666sed 's/^/| /' conftest.$ac_ext >&5
14667
14668 ac_header_preproc=no
14669fi
14670rm -f conftest.err conftest.$ac_ext
14671echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14672echo "${ECHO_T}$ac_header_preproc" >&6
14673
14674# So? What about this header?
ac1cb8d3
VS
14675case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14676 yes:no: )
a848cd7e
SC
14677 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14678echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
14679 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14680echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14681 ac_header_preproc=yes
a848cd7e 14682 ;;
ac1cb8d3 14683 no:yes:* )
a848cd7e
SC
14684 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14685echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
14686 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14687echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14688 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14689echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14690 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14691echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
14692 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14693echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
14694 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14695echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
14696 (
14697 cat <<\_ASBOX
ac1cb8d3
VS
14698## ----------------------------------------- ##
14699## Report this to wx-dev@lists.wxwidgets.org ##
14700## ----------------------------------------- ##
a848cd7e
SC
14701_ASBOX
14702 ) |
14703 sed "s/^/$as_me: WARNING: /" >&2
14704 ;;
14705esac
14706echo "$as_me:$LINENO: checking for $ac_header" >&5
14707echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14708if eval "test \"\${$as_ac_Header+set}\" = set"; then
14709 echo $ECHO_N "(cached) $ECHO_C" >&6
14710else
ac1cb8d3 14711 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
14712fi
14713echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14714echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14715
14716fi
14717if test `eval echo '${'$as_ac_Header'}'` = yes; then
14718 cat >>confdefs.h <<_ACEOF
14719#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14720_ACEOF
14721
14722fi
14723
14724done
14725
14726fi
14727
14728
14729for ac_header in fnmatch.h
14730do
14731as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14732if eval "test \"\${$as_ac_Header+set}\" = set"; then
14733 echo "$as_me:$LINENO: checking for $ac_header" >&5
14734echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14735if eval "test \"\${$as_ac_Header+set}\" = set"; then
14736 echo $ECHO_N "(cached) $ECHO_C" >&6
14737fi
14738echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14739echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14740else
14741 # Is the header compilable?
14742echo "$as_me:$LINENO: checking $ac_header usability" >&5
14743echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14744cat >conftest.$ac_ext <<_ACEOF
14745/* confdefs.h. */
14746_ACEOF
14747cat confdefs.h >>conftest.$ac_ext
14748cat >>conftest.$ac_ext <<_ACEOF
14749/* end confdefs.h. */
14750$ac_includes_default
14751#include <$ac_header>
14752_ACEOF
14753rm -f conftest.$ac_objext
14754if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14755 (eval $ac_compile) 2>conftest.er1
a848cd7e 14756 ac_status=$?
ac1cb8d3
VS
14757 grep -v '^ *+' conftest.er1 >conftest.err
14758 rm -f conftest.er1
14759 cat conftest.err >&5
a848cd7e
SC
14760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14761 (exit $ac_status); } &&
9dd0f6c2 14762 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
14763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14764 (eval $ac_try) 2>&5
14765 ac_status=$?
14766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14767 (exit $ac_status); }; } &&
14768 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14770 (eval $ac_try) 2>&5
14771 ac_status=$?
14772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14773 (exit $ac_status); }; }; then
14774 ac_header_compiler=yes
14775else
14776 echo "$as_me: failed program was:" >&5
14777sed 's/^/| /' conftest.$ac_ext >&5
14778
14779ac_header_compiler=no
14780fi
ac1cb8d3 14781rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14782echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14783echo "${ECHO_T}$ac_header_compiler" >&6
14784
14785# Is the header present?
14786echo "$as_me:$LINENO: checking $ac_header presence" >&5
14787echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14788cat >conftest.$ac_ext <<_ACEOF
14789/* confdefs.h. */
14790_ACEOF
14791cat confdefs.h >>conftest.$ac_ext
14792cat >>conftest.$ac_ext <<_ACEOF
14793/* end confdefs.h. */
14794#include <$ac_header>
14795_ACEOF
14796if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14797 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14798 ac_status=$?
14799 grep -v '^ *+' conftest.er1 >conftest.err
14800 rm -f conftest.er1
14801 cat conftest.err >&5
14802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14803 (exit $ac_status); } >/dev/null; then
14804 if test -s conftest.err; then
14805 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 14806 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
14807 else
14808 ac_cpp_err=
14809 fi
14810else
14811 ac_cpp_err=yes
14812fi
14813if test -z "$ac_cpp_err"; then
14814 ac_header_preproc=yes
14815else
14816 echo "$as_me: failed program was:" >&5
14817sed 's/^/| /' conftest.$ac_ext >&5
14818
14819 ac_header_preproc=no
14820fi
14821rm -f conftest.err conftest.$ac_ext
14822echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14823echo "${ECHO_T}$ac_header_preproc" >&6
14824
14825# So? What about this header?
ac1cb8d3
VS
14826case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14827 yes:no: )
a848cd7e
SC
14828 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14829echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
14830 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14831echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14832 ac_header_preproc=yes
a848cd7e 14833 ;;
ac1cb8d3 14834 no:yes:* )
a848cd7e
SC
14835 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14836echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
14837 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14838echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14839 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14840echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14841 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14842echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
14843 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14844echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
14845 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14846echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
14847 (
14848 cat <<\_ASBOX
ac1cb8d3
VS
14849## ----------------------------------------- ##
14850## Report this to wx-dev@lists.wxwidgets.org ##
14851## ----------------------------------------- ##
a848cd7e
SC
14852_ASBOX
14853 ) |
14854 sed "s/^/$as_me: WARNING: /" >&2
14855 ;;
14856esac
14857echo "$as_me:$LINENO: checking for $ac_header" >&5
14858echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14859if eval "test \"\${$as_ac_Header+set}\" = set"; then
14860 echo $ECHO_N "(cached) $ECHO_C" >&6
14861else
ac1cb8d3 14862 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
14863fi
14864echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14865echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14866
14867fi
14868if test `eval echo '${'$as_ac_Header'}'` = yes; then
14869 cat >>confdefs.h <<_ACEOF
14870#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14871_ACEOF
14872
14873fi
14874
14875done
14876
14877
14878if test "x$ac_cv_header_fnmatch_h" = "xyes"; then
14879
14880for ac_func in fnmatch
14881do
14882as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14883echo "$as_me:$LINENO: checking for $ac_func" >&5
14884echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14885if eval "test \"\${$as_ac_var+set}\" = set"; then
14886 echo $ECHO_N "(cached) $ECHO_C" >&6
14887else
14888 cat >conftest.$ac_ext <<_ACEOF
14889/* confdefs.h. */
14890_ACEOF
14891cat confdefs.h >>conftest.$ac_ext
14892cat >>conftest.$ac_ext <<_ACEOF
14893/* end confdefs.h. */
ac1cb8d3
VS
14894/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14895 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14896#define $ac_func innocuous_$ac_func
14897
a848cd7e
SC
14898/* System header to define __stub macros and hopefully few prototypes,
14899 which can conflict with char $ac_func (); below.
14900 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14901 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 14902
a848cd7e
SC
14903#ifdef __STDC__
14904# include <limits.h>
14905#else
14906# include <assert.h>
14907#endif
ac1cb8d3
VS
14908
14909#undef $ac_func
14910
a848cd7e
SC
14911/* Override any gcc2 internal prototype to avoid an error. */
14912#ifdef __cplusplus
14913extern "C"
14914{
14915#endif
14916/* We use char because int might match the return type of a gcc2
14917 builtin and then its argument prototype would still apply. */
14918char $ac_func ();
14919/* The GNU C library defines this for functions which it implements
14920 to always fail with ENOSYS. Some functions are actually named
14921 something starting with __ and the normal name is an alias. */
14922#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14923choke me
14924#else
14925char (*f) () = $ac_func;
14926#endif
14927#ifdef __cplusplus
14928}
14929#endif
14930
14931int
14932main ()
14933{
14934return f != $ac_func;
14935 ;
14936 return 0;
14937}
14938_ACEOF
14939rm -f conftest.$ac_objext conftest$ac_exeext
14940if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 14941 (eval $ac_link) 2>conftest.er1
a848cd7e 14942 ac_status=$?
ac1cb8d3
VS
14943 grep -v '^ *+' conftest.er1 >conftest.err
14944 rm -f conftest.er1
14945 cat conftest.err >&5
a848cd7e
SC
14946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14947 (exit $ac_status); } &&
9dd0f6c2 14948 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
14949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14950 (eval $ac_try) 2>&5
14951 ac_status=$?
14952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14953 (exit $ac_status); }; } &&
14954 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
14955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14956 (eval $ac_try) 2>&5
14957 ac_status=$?
14958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14959 (exit $ac_status); }; }; then
14960 eval "$as_ac_var=yes"
14961else
14962 echo "$as_me: failed program was:" >&5
14963sed 's/^/| /' conftest.$ac_ext >&5
14964
14965eval "$as_ac_var=no"
14966fi
ac1cb8d3
VS
14967rm -f conftest.err conftest.$ac_objext \
14968 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
14969fi
14970echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14971echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14972if test `eval echo '${'$as_ac_var'}'` = yes; then
14973 cat >>confdefs.h <<_ACEOF
14974#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14975_ACEOF
14976
14977fi
14978done
14979
14980fi
14981
14982
14983for ac_header in langinfo.h
14984do
14985as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14986if eval "test \"\${$as_ac_Header+set}\" = set"; then
14987 echo "$as_me:$LINENO: checking for $ac_header" >&5
14988echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14989if eval "test \"\${$as_ac_Header+set}\" = set"; then
14990 echo $ECHO_N "(cached) $ECHO_C" >&6
14991fi
14992echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14993echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14994else
14995 # Is the header compilable?
14996echo "$as_me:$LINENO: checking $ac_header usability" >&5
14997echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14998cat >conftest.$ac_ext <<_ACEOF
14999/* confdefs.h. */
15000_ACEOF
15001cat confdefs.h >>conftest.$ac_ext
15002cat >>conftest.$ac_ext <<_ACEOF
15003/* end confdefs.h. */
15004$ac_includes_default
15005#include <$ac_header>
15006_ACEOF
15007rm -f conftest.$ac_objext
15008if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15009 (eval $ac_compile) 2>conftest.er1
a848cd7e 15010 ac_status=$?
ac1cb8d3
VS
15011 grep -v '^ *+' conftest.er1 >conftest.err
15012 rm -f conftest.er1
15013 cat conftest.err >&5
a848cd7e
SC
15014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15015 (exit $ac_status); } &&
9dd0f6c2 15016 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15018 (eval $ac_try) 2>&5
15019 ac_status=$?
15020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15021 (exit $ac_status); }; } &&
15022 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15024 (eval $ac_try) 2>&5
15025 ac_status=$?
15026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15027 (exit $ac_status); }; }; then
15028 ac_header_compiler=yes
15029else
15030 echo "$as_me: failed program was:" >&5
15031sed 's/^/| /' conftest.$ac_ext >&5
15032
15033ac_header_compiler=no
15034fi
ac1cb8d3 15035rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15036echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15037echo "${ECHO_T}$ac_header_compiler" >&6
15038
15039# Is the header present?
15040echo "$as_me:$LINENO: checking $ac_header presence" >&5
15041echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15042cat >conftest.$ac_ext <<_ACEOF
15043/* confdefs.h. */
15044_ACEOF
15045cat confdefs.h >>conftest.$ac_ext
15046cat >>conftest.$ac_ext <<_ACEOF
15047/* end confdefs.h. */
15048#include <$ac_header>
15049_ACEOF
15050if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15051 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15052 ac_status=$?
15053 grep -v '^ *+' conftest.er1 >conftest.err
15054 rm -f conftest.er1
15055 cat conftest.err >&5
15056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15057 (exit $ac_status); } >/dev/null; then
15058 if test -s conftest.err; then
15059 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 15060 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
15061 else
15062 ac_cpp_err=
15063 fi
15064else
15065 ac_cpp_err=yes
15066fi
15067if test -z "$ac_cpp_err"; then
15068 ac_header_preproc=yes
15069else
15070 echo "$as_me: failed program was:" >&5
15071sed 's/^/| /' conftest.$ac_ext >&5
15072
15073 ac_header_preproc=no
15074fi
15075rm -f conftest.err conftest.$ac_ext
15076echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15077echo "${ECHO_T}$ac_header_preproc" >&6
15078
15079# So? What about this header?
ac1cb8d3
VS
15080case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15081 yes:no: )
a848cd7e
SC
15082 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15083echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
15084 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15085echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15086 ac_header_preproc=yes
a848cd7e 15087 ;;
ac1cb8d3 15088 no:yes:* )
a848cd7e
SC
15089 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15090echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
15091 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15092echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15093 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15094echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15095 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15096echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
15097 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15098echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
15099 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15100echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
15101 (
15102 cat <<\_ASBOX
ac1cb8d3
VS
15103## ----------------------------------------- ##
15104## Report this to wx-dev@lists.wxwidgets.org ##
15105## ----------------------------------------- ##
a848cd7e
SC
15106_ASBOX
15107 ) |
15108 sed "s/^/$as_me: WARNING: /" >&2
15109 ;;
15110esac
15111echo "$as_me:$LINENO: checking for $ac_header" >&5
15112echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15113if eval "test \"\${$as_ac_Header+set}\" = set"; then
15114 echo $ECHO_N "(cached) $ECHO_C" >&6
15115else
ac1cb8d3 15116 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
15117fi
15118echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15119echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15120
15121fi
15122if test `eval echo '${'$as_ac_Header'}'` = yes; then
15123 cat >>confdefs.h <<_ACEOF
15124#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15125_ACEOF
15126
15127fi
15128
15129done
15130
15131
15132case "${host}" in
15133 *-pc-os2_emx | *-pc-os2-emx )
391a765e
VS
15134 if test $ac_cv_header_langinfo_h = "yes" \
15135 -a \( "$wx_cv_gccversion" = "EMX2" \
15136 -o "$wx_cv_gccversion" = "EMX3" \
15137 -o "$wx_cv_gccversion" = "Innotek5" \); then
a848cd7e
SC
15138 LIBS="$LIBS -lintl"
15139 fi
15140 ;;
15141esac
15142
15143if test "$wxUSE_GUI" = "yes"; then
15144 if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_PM" != 1; then
15145
15146for ac_header in X11/Xlib.h
15147do
15148as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15149if eval "test \"\${$as_ac_Header+set}\" = set"; then
15150 echo "$as_me:$LINENO: checking for $ac_header" >&5
15151echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15152if eval "test \"\${$as_ac_Header+set}\" = set"; then
15153 echo $ECHO_N "(cached) $ECHO_C" >&6
15154fi
15155echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15156echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15157else
15158 # Is the header compilable?
15159echo "$as_me:$LINENO: checking $ac_header usability" >&5
15160echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15161cat >conftest.$ac_ext <<_ACEOF
15162/* confdefs.h. */
15163_ACEOF
15164cat confdefs.h >>conftest.$ac_ext
15165cat >>conftest.$ac_ext <<_ACEOF
15166/* end confdefs.h. */
15167$ac_includes_default
15168#include <$ac_header>
15169_ACEOF
15170rm -f conftest.$ac_objext
15171if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15172 (eval $ac_compile) 2>conftest.er1
a848cd7e 15173 ac_status=$?
ac1cb8d3
VS
15174 grep -v '^ *+' conftest.er1 >conftest.err
15175 rm -f conftest.er1
15176 cat conftest.err >&5
a848cd7e
SC
15177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15178 (exit $ac_status); } &&
9dd0f6c2 15179 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15181 (eval $ac_try) 2>&5
15182 ac_status=$?
15183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15184 (exit $ac_status); }; } &&
15185 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15187 (eval $ac_try) 2>&5
15188 ac_status=$?
15189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15190 (exit $ac_status); }; }; then
15191 ac_header_compiler=yes
15192else
15193 echo "$as_me: failed program was:" >&5
15194sed 's/^/| /' conftest.$ac_ext >&5
15195
15196ac_header_compiler=no
15197fi
ac1cb8d3 15198rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15199echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15200echo "${ECHO_T}$ac_header_compiler" >&6
15201
15202# Is the header present?
15203echo "$as_me:$LINENO: checking $ac_header presence" >&5
15204echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15205cat >conftest.$ac_ext <<_ACEOF
15206/* confdefs.h. */
15207_ACEOF
15208cat confdefs.h >>conftest.$ac_ext
15209cat >>conftest.$ac_ext <<_ACEOF
15210/* end confdefs.h. */
15211#include <$ac_header>
15212_ACEOF
15213if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15214 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15215 ac_status=$?
15216 grep -v '^ *+' conftest.er1 >conftest.err
15217 rm -f conftest.er1
15218 cat conftest.err >&5
15219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15220 (exit $ac_status); } >/dev/null; then
15221 if test -s conftest.err; then
15222 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 15223 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
15224 else
15225 ac_cpp_err=
15226 fi
15227else
15228 ac_cpp_err=yes
15229fi
15230if test -z "$ac_cpp_err"; then
15231 ac_header_preproc=yes
15232else
15233 echo "$as_me: failed program was:" >&5
15234sed 's/^/| /' conftest.$ac_ext >&5
15235
15236 ac_header_preproc=no
15237fi
15238rm -f conftest.err conftest.$ac_ext
15239echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15240echo "${ECHO_T}$ac_header_preproc" >&6
15241
15242# So? What about this header?
ac1cb8d3
VS
15243case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15244 yes:no: )
a848cd7e
SC
15245 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15246echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
15247 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15248echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15249 ac_header_preproc=yes
a848cd7e 15250 ;;
ac1cb8d3 15251 no:yes:* )
a848cd7e
SC
15252 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15253echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
15254 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15255echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15256 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15257echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15258 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15259echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
15260 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15261echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
15262 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15263echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
15264 (
15265 cat <<\_ASBOX
ac1cb8d3
VS
15266## ----------------------------------------- ##
15267## Report this to wx-dev@lists.wxwidgets.org ##
15268## ----------------------------------------- ##
a848cd7e
SC
15269_ASBOX
15270 ) |
15271 sed "s/^/$as_me: WARNING: /" >&2
15272 ;;
15273esac
15274echo "$as_me:$LINENO: checking for $ac_header" >&5
15275echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15276if eval "test \"\${$as_ac_Header+set}\" = set"; then
15277 echo $ECHO_N "(cached) $ECHO_C" >&6
15278else
ac1cb8d3 15279 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
15280fi
15281echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15282echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15283
15284fi
15285if test `eval echo '${'$as_ac_Header'}'` = yes; then
15286 cat >>confdefs.h <<_ACEOF
15287#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15288_ACEOF
15289
15290fi
15291
15292done
15293
15294
15295for ac_header in X11/XKBlib.h
15296do
15297as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15298echo "$as_me:$LINENO: checking for $ac_header" >&5
15299echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15300if eval "test \"\${$as_ac_Header+set}\" = set"; then
15301 echo $ECHO_N "(cached) $ECHO_C" >&6
15302else
15303 cat >conftest.$ac_ext <<_ACEOF
15304/* confdefs.h. */
15305_ACEOF
15306cat confdefs.h >>conftest.$ac_ext
15307cat >>conftest.$ac_ext <<_ACEOF
15308/* end confdefs.h. */
15309
15310 #if HAVE_X11_XLIB_H
15311 #include <X11/Xlib.h>
15312 #endif
15313
15314
15315#include <$ac_header>
15316_ACEOF
15317rm -f conftest.$ac_objext
15318if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15319 (eval $ac_compile) 2>conftest.er1
a848cd7e 15320 ac_status=$?
ac1cb8d3
VS
15321 grep -v '^ *+' conftest.er1 >conftest.err
15322 rm -f conftest.er1
15323 cat conftest.err >&5
a848cd7e
SC
15324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15325 (exit $ac_status); } &&
9dd0f6c2 15326 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15328 (eval $ac_try) 2>&5
15329 ac_status=$?
15330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15331 (exit $ac_status); }; } &&
15332 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15334 (eval $ac_try) 2>&5
15335 ac_status=$?
15336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15337 (exit $ac_status); }; }; then
15338 eval "$as_ac_Header=yes"
15339else
15340 echo "$as_me: failed program was:" >&5
15341sed 's/^/| /' conftest.$ac_ext >&5
15342
15343eval "$as_ac_Header=no"
15344fi
ac1cb8d3 15345rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15346fi
15347echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15348echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15349if test `eval echo '${'$as_ac_Header'}'` = yes; then
15350 cat >>confdefs.h <<_ACEOF
15351#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15352_ACEOF
15353
15354fi
15355
15356done
15357
15358 fi
15359fi
15360
15361
15362echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
15363echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
15364if test "${ac_cv_c_const+set}" = set; then
15365 echo $ECHO_N "(cached) $ECHO_C" >&6
15366else
15367 cat >conftest.$ac_ext <<_ACEOF
15368/* confdefs.h. */
15369_ACEOF
15370cat confdefs.h >>conftest.$ac_ext
15371cat >>conftest.$ac_ext <<_ACEOF
15372/* end confdefs.h. */
15373
15374int
15375main ()
15376{
15377/* FIXME: Include the comments suggested by Paul. */
15378#ifndef __cplusplus
15379 /* Ultrix mips cc rejects this. */
15380 typedef int charset[2];
15381 const charset x;
15382 /* SunOS 4.1.1 cc rejects this. */
15383 char const *const *ccp;
15384 char **p;
15385 /* NEC SVR4.0.2 mips cc rejects this. */
15386 struct point {int x, y;};
15387 static struct point const zero = {0,0};
15388 /* AIX XL C 1.02.0.0 rejects this.
15389 It does not let you subtract one const X* pointer from another in
15390 an arm of an if-expression whose if-part is not a constant
15391 expression */
15392 const char *g = "string";
15393 ccp = &g + (g ? g-g : 0);
15394 /* HPUX 7.0 cc rejects these. */
15395 ++ccp;
15396 p = (char**) ccp;
15397 ccp = (char const *const *) p;
15398 { /* SCO 3.2v4 cc rejects this. */
15399 char *t;
15400 char const *s = 0 ? (char *) 0 : (char const *) 0;
15401
15402 *t++ = 0;
15403 }
15404 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
15405 int x[] = {25, 17};
15406 const int *foo = &x[0];
15407 ++foo;
15408 }
15409 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
15410 typedef const int *iptr;
15411 iptr p = 0;
15412 ++p;
15413 }
15414 { /* AIX XL C 1.02.0.0 rejects this saying
15415 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
15416 struct s { int j; const int *ap[3]; };
15417 struct s *b; b->j = 5;
15418 }
15419 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
15420 const int foo = 10;
15421 }
15422#endif
15423
15424 ;
15425 return 0;
15426}
15427_ACEOF
15428rm -f conftest.$ac_objext
15429if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15430 (eval $ac_compile) 2>conftest.er1
a848cd7e 15431 ac_status=$?
ac1cb8d3
VS
15432 grep -v '^ *+' conftest.er1 >conftest.err
15433 rm -f conftest.er1
15434 cat conftest.err >&5
a848cd7e
SC
15435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15436 (exit $ac_status); } &&
9dd0f6c2 15437 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15439 (eval $ac_try) 2>&5
15440 ac_status=$?
15441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15442 (exit $ac_status); }; } &&
15443 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15445 (eval $ac_try) 2>&5
15446 ac_status=$?
15447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15448 (exit $ac_status); }; }; then
15449 ac_cv_c_const=yes
15450else
15451 echo "$as_me: failed program was:" >&5
15452sed 's/^/| /' conftest.$ac_ext >&5
15453
15454ac_cv_c_const=no
15455fi
ac1cb8d3 15456rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15457fi
15458echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
15459echo "${ECHO_T}$ac_cv_c_const" >&6
15460if test $ac_cv_c_const = no; then
15461
15462cat >>confdefs.h <<\_ACEOF
15463#define const
15464_ACEOF
15465
15466fi
15467
15468echo "$as_me:$LINENO: checking for inline" >&5
15469echo $ECHO_N "checking for inline... $ECHO_C" >&6
15470if test "${ac_cv_c_inline+set}" = set; then
15471 echo $ECHO_N "(cached) $ECHO_C" >&6
15472else
15473 ac_cv_c_inline=no
15474for ac_kw in inline __inline__ __inline; do
15475 cat >conftest.$ac_ext <<_ACEOF
15476/* confdefs.h. */
15477_ACEOF
15478cat confdefs.h >>conftest.$ac_ext
15479cat >>conftest.$ac_ext <<_ACEOF
15480/* end confdefs.h. */
15481#ifndef __cplusplus
15482typedef int foo_t;
15483static $ac_kw foo_t static_foo () {return 0; }
15484$ac_kw foo_t foo () {return 0; }
15485#endif
15486
15487_ACEOF
15488rm -f conftest.$ac_objext
15489if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15490 (eval $ac_compile) 2>conftest.er1
a848cd7e 15491 ac_status=$?
ac1cb8d3
VS
15492 grep -v '^ *+' conftest.er1 >conftest.err
15493 rm -f conftest.er1
15494 cat conftest.err >&5
a848cd7e
SC
15495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15496 (exit $ac_status); } &&
9dd0f6c2 15497 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15499 (eval $ac_try) 2>&5
15500 ac_status=$?
15501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15502 (exit $ac_status); }; } &&
15503 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15505 (eval $ac_try) 2>&5
15506 ac_status=$?
15507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15508 (exit $ac_status); }; }; then
15509 ac_cv_c_inline=$ac_kw; break
15510else
15511 echo "$as_me: failed program was:" >&5
15512sed 's/^/| /' conftest.$ac_ext >&5
15513
15514fi
ac1cb8d3 15515rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15516done
15517
15518fi
15519echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
15520echo "${ECHO_T}$ac_cv_c_inline" >&6
ac1cb8d3
VS
15521
15522
a848cd7e
SC
15523case $ac_cv_c_inline in
15524 inline | yes) ;;
ac1cb8d3
VS
15525 *)
15526 case $ac_cv_c_inline in
15527 no) ac_val=;;
15528 *) ac_val=$ac_cv_c_inline;;
15529 esac
15530 cat >>confdefs.h <<_ACEOF
15531#ifndef __cplusplus
15532#define inline $ac_val
15533#endif
de59c161 15534_ACEOF
ac1cb8d3 15535 ;;
a848cd7e
SC
15536esac
15537
15538
15539echo "$as_me:$LINENO: checking for char" >&5
15540echo $ECHO_N "checking for char... $ECHO_C" >&6
15541if test "${ac_cv_type_char+set}" = set; then
15542 echo $ECHO_N "(cached) $ECHO_C" >&6
15543else
15544 cat >conftest.$ac_ext <<_ACEOF
15545/* confdefs.h. */
15546_ACEOF
15547cat confdefs.h >>conftest.$ac_ext
15548cat >>conftest.$ac_ext <<_ACEOF
15549/* end confdefs.h. */
15550$ac_includes_default
15551int
15552main ()
15553{
15554if ((char *) 0)
15555 return 0;
15556if (sizeof (char))
15557 return 0;
15558 ;
15559 return 0;
15560}
15561_ACEOF
15562rm -f conftest.$ac_objext
15563if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15564 (eval $ac_compile) 2>conftest.er1
a848cd7e 15565 ac_status=$?
ac1cb8d3
VS
15566 grep -v '^ *+' conftest.er1 >conftest.err
15567 rm -f conftest.er1
15568 cat conftest.err >&5
a848cd7e
SC
15569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15570 (exit $ac_status); } &&
9dd0f6c2 15571 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15573 (eval $ac_try) 2>&5
15574 ac_status=$?
15575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15576 (exit $ac_status); }; } &&
15577 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15579 (eval $ac_try) 2>&5
15580 ac_status=$?
15581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15582 (exit $ac_status); }; }; then
15583 ac_cv_type_char=yes
15584else
15585 echo "$as_me: failed program was:" >&5
15586sed 's/^/| /' conftest.$ac_ext >&5
15587
15588ac_cv_type_char=no
15589fi
ac1cb8d3 15590rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15591fi
15592echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
15593echo "${ECHO_T}$ac_cv_type_char" >&6
15594
15595echo "$as_me:$LINENO: checking size of char" >&5
15596echo $ECHO_N "checking size of char... $ECHO_C" >&6
15597if test "${ac_cv_sizeof_char+set}" = set; then
15598 echo $ECHO_N "(cached) $ECHO_C" >&6
15599else
15600 if test "$ac_cv_type_char" = yes; then
15601 # The cast to unsigned long works around a bug in the HP C Compiler
15602 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15603 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15604 # This bug is HP SR number 8606223364.
15605 if test "$cross_compiling" = yes; then
15606 # Depending upon the size, compute the lo and hi bounds.
15607cat >conftest.$ac_ext <<_ACEOF
15608/* confdefs.h. */
15609_ACEOF
15610cat confdefs.h >>conftest.$ac_ext
15611cat >>conftest.$ac_ext <<_ACEOF
15612/* end confdefs.h. */
15613$ac_includes_default
15614int
15615main ()
15616{
15617static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
15618test_array [0] = 0
15619
15620 ;
15621 return 0;
15622}
15623_ACEOF
15624rm -f conftest.$ac_objext
15625if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15626 (eval $ac_compile) 2>conftest.er1
a848cd7e 15627 ac_status=$?
ac1cb8d3
VS
15628 grep -v '^ *+' conftest.er1 >conftest.err
15629 rm -f conftest.er1
15630 cat conftest.err >&5
a848cd7e
SC
15631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15632 (exit $ac_status); } &&
9dd0f6c2 15633 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15635 (eval $ac_try) 2>&5
15636 ac_status=$?
15637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15638 (exit $ac_status); }; } &&
15639 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15641 (eval $ac_try) 2>&5
15642 ac_status=$?
15643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15644 (exit $ac_status); }; }; then
15645 ac_lo=0 ac_mid=0
15646 while :; do
15647 cat >conftest.$ac_ext <<_ACEOF
15648/* confdefs.h. */
15649_ACEOF
15650cat confdefs.h >>conftest.$ac_ext
15651cat >>conftest.$ac_ext <<_ACEOF
15652/* end confdefs.h. */
15653$ac_includes_default
15654int
15655main ()
15656{
15657static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
15658test_array [0] = 0
15659
15660 ;
15661 return 0;
15662}
15663_ACEOF
15664rm -f conftest.$ac_objext
15665if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15666 (eval $ac_compile) 2>conftest.er1
a848cd7e 15667 ac_status=$?
ac1cb8d3
VS
15668 grep -v '^ *+' conftest.er1 >conftest.err
15669 rm -f conftest.er1
15670 cat conftest.err >&5
a848cd7e
SC
15671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15672 (exit $ac_status); } &&
9dd0f6c2 15673 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15675 (eval $ac_try) 2>&5
15676 ac_status=$?
15677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15678 (exit $ac_status); }; } &&
15679 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15681 (eval $ac_try) 2>&5
15682 ac_status=$?
15683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15684 (exit $ac_status); }; }; then
15685 ac_hi=$ac_mid; break
15686else
15687 echo "$as_me: failed program was:" >&5
15688sed 's/^/| /' conftest.$ac_ext >&5
15689
15690ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
15691 if test $ac_lo -le $ac_mid; then
15692 ac_lo= ac_hi=
15693 break
15694 fi
15695 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 15696fi
ac1cb8d3 15697rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15698 done
15699else
15700 echo "$as_me: failed program was:" >&5
15701sed 's/^/| /' conftest.$ac_ext >&5
15702
15703cat >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 (char))) < 0)];
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); } &&
9dd0f6c2 15729 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15731 (eval $ac_try) 2>&5
15732 ac_status=$?
15733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15734 (exit $ac_status); }; } &&
15735 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15737 (eval $ac_try) 2>&5
15738 ac_status=$?
15739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15740 (exit $ac_status); }; }; then
15741 ac_hi=-1 ac_mid=-1
15742 while :; do
15743 cat >conftest.$ac_ext <<_ACEOF
15744/* confdefs.h. */
15745_ACEOF
15746cat confdefs.h >>conftest.$ac_ext
15747cat >>conftest.$ac_ext <<_ACEOF
15748/* end confdefs.h. */
15749$ac_includes_default
15750int
15751main ()
15752{
15753static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
15754test_array [0] = 0
15755
15756 ;
15757 return 0;
15758}
15759_ACEOF
15760rm -f conftest.$ac_objext
15761if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15762 (eval $ac_compile) 2>conftest.er1
a848cd7e 15763 ac_status=$?
ac1cb8d3
VS
15764 grep -v '^ *+' conftest.er1 >conftest.err
15765 rm -f conftest.er1
15766 cat conftest.err >&5
a848cd7e
SC
15767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15768 (exit $ac_status); } &&
9dd0f6c2 15769 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15771 (eval $ac_try) 2>&5
15772 ac_status=$?
15773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15774 (exit $ac_status); }; } &&
15775 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15777 (eval $ac_try) 2>&5
15778 ac_status=$?
15779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15780 (exit $ac_status); }; }; then
15781 ac_lo=$ac_mid; break
15782else
15783 echo "$as_me: failed program was:" >&5
15784sed 's/^/| /' conftest.$ac_ext >&5
15785
15786ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
15787 if test $ac_mid -le $ac_hi; then
15788 ac_lo= ac_hi=
15789 break
15790 fi
15791 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 15792fi
ac1cb8d3 15793rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15794 done
15795else
15796 echo "$as_me: failed program was:" >&5
15797sed 's/^/| /' conftest.$ac_ext >&5
15798
15799ac_lo= ac_hi=
15800fi
ac1cb8d3 15801rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 15802fi
ac1cb8d3 15803rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15804# Binary search between lo and hi bounds.
15805while test "x$ac_lo" != "x$ac_hi"; do
15806 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15807 cat >conftest.$ac_ext <<_ACEOF
15808/* confdefs.h. */
15809_ACEOF
15810cat confdefs.h >>conftest.$ac_ext
15811cat >>conftest.$ac_ext <<_ACEOF
15812/* end confdefs.h. */
15813$ac_includes_default
15814int
15815main ()
15816{
15817static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
15818test_array [0] = 0
15819
15820 ;
15821 return 0;
15822}
15823_ACEOF
15824rm -f conftest.$ac_objext
15825if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15826 (eval $ac_compile) 2>conftest.er1
a848cd7e 15827 ac_status=$?
ac1cb8d3
VS
15828 grep -v '^ *+' conftest.er1 >conftest.err
15829 rm -f conftest.er1
15830 cat conftest.err >&5
a848cd7e
SC
15831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15832 (exit $ac_status); } &&
9dd0f6c2 15833 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15835 (eval $ac_try) 2>&5
15836 ac_status=$?
15837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15838 (exit $ac_status); }; } &&
15839 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15841 (eval $ac_try) 2>&5
15842 ac_status=$?
15843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15844 (exit $ac_status); }; }; then
15845 ac_hi=$ac_mid
15846else
15847 echo "$as_me: failed program was:" >&5
15848sed 's/^/| /' conftest.$ac_ext >&5
15849
15850ac_lo=`expr '(' $ac_mid ')' + 1`
15851fi
ac1cb8d3 15852rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15853done
15854case $ac_lo in
15855?*) ac_cv_sizeof_char=$ac_lo;;
15856'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
15857See \`config.log' for more details." >&5
15858echo "$as_me: error: cannot compute sizeof (char), 77
15859See \`config.log' for more details." >&2;}
15860 { (exit 1); exit 1; }; } ;;
15861esac
15862else
15863 if test "$cross_compiling" = yes; then
9dd0f6c2
DE
15864 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
15865echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
15866 { (exit 1); exit 1; }; }
15867else
15868 cat >conftest.$ac_ext <<_ACEOF
15869/* confdefs.h. */
15870_ACEOF
15871cat confdefs.h >>conftest.$ac_ext
15872cat >>conftest.$ac_ext <<_ACEOF
15873/* end confdefs.h. */
15874$ac_includes_default
15875long longval () { return (long) (sizeof (char)); }
15876unsigned long ulongval () { return (long) (sizeof (char)); }
15877#include <stdio.h>
15878#include <stdlib.h>
15879int
15880main ()
15881{
15882
15883 FILE *f = fopen ("conftest.val", "w");
15884 if (! f)
15885 exit (1);
15886 if (((long) (sizeof (char))) < 0)
15887 {
15888 long i = longval ();
15889 if (i != ((long) (sizeof (char))))
15890 exit (1);
15891 fprintf (f, "%ld\n", i);
15892 }
15893 else
15894 {
15895 unsigned long i = ulongval ();
15896 if (i != ((long) (sizeof (char))))
15897 exit (1);
15898 fprintf (f, "%lu\n", i);
15899 }
15900 exit (ferror (f) || fclose (f) != 0);
15901
15902 ;
15903 return 0;
15904}
15905_ACEOF
15906rm -f conftest$ac_exeext
15907if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15908 (eval $ac_link) 2>&5
15909 ac_status=$?
15910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15911 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15913 (eval $ac_try) 2>&5
15914 ac_status=$?
15915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15916 (exit $ac_status); }; }; then
15917 ac_cv_sizeof_char=`cat conftest.val`
15918else
15919 echo "$as_me: program exited with status $ac_status" >&5
15920echo "$as_me: failed program was:" >&5
15921sed 's/^/| /' conftest.$ac_ext >&5
15922
15923( exit $ac_status )
15924{ { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
15925See \`config.log' for more details." >&5
15926echo "$as_me: error: cannot compute sizeof (char), 77
15927See \`config.log' for more details." >&2;}
15928 { (exit 1); exit 1; }; }
15929fi
ac1cb8d3 15930rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15931fi
15932fi
15933rm -f conftest.val
15934else
15935 ac_cv_sizeof_char=0
15936fi
15937fi
15938echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
15939echo "${ECHO_T}$ac_cv_sizeof_char" >&6
15940cat >>confdefs.h <<_ACEOF
15941#define SIZEOF_CHAR $ac_cv_sizeof_char
15942_ACEOF
15943
15944
15945echo "$as_me:$LINENO: checking for short" >&5
15946echo $ECHO_N "checking for short... $ECHO_C" >&6
15947if test "${ac_cv_type_short+set}" = set; then
15948 echo $ECHO_N "(cached) $ECHO_C" >&6
15949else
15950 cat >conftest.$ac_ext <<_ACEOF
15951/* confdefs.h. */
15952_ACEOF
15953cat confdefs.h >>conftest.$ac_ext
15954cat >>conftest.$ac_ext <<_ACEOF
15955/* end confdefs.h. */
15956$ac_includes_default
15957int
15958main ()
15959{
15960if ((short *) 0)
15961 return 0;
15962if (sizeof (short))
15963 return 0;
15964 ;
15965 return 0;
15966}
15967_ACEOF
15968rm -f conftest.$ac_objext
15969if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15970 (eval $ac_compile) 2>conftest.er1
a848cd7e 15971 ac_status=$?
ac1cb8d3
VS
15972 grep -v '^ *+' conftest.er1 >conftest.err
15973 rm -f conftest.er1
15974 cat conftest.err >&5
a848cd7e
SC
15975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15976 (exit $ac_status); } &&
9dd0f6c2 15977 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15979 (eval $ac_try) 2>&5
15980 ac_status=$?
15981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15982 (exit $ac_status); }; } &&
15983 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15985 (eval $ac_try) 2>&5
15986 ac_status=$?
15987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15988 (exit $ac_status); }; }; then
15989 ac_cv_type_short=yes
15990else
15991 echo "$as_me: failed program was:" >&5
15992sed 's/^/| /' conftest.$ac_ext >&5
15993
15994ac_cv_type_short=no
15995fi
ac1cb8d3 15996rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15997fi
15998echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
15999echo "${ECHO_T}$ac_cv_type_short" >&6
16000
16001echo "$as_me:$LINENO: checking size of short" >&5
16002echo $ECHO_N "checking size of short... $ECHO_C" >&6
16003if test "${ac_cv_sizeof_short+set}" = set; then
16004 echo $ECHO_N "(cached) $ECHO_C" >&6
16005else
16006 if test "$ac_cv_type_short" = yes; then
16007 # The cast to unsigned long works around a bug in the HP C Compiler
16008 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16009 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16010 # This bug is HP SR number 8606223364.
16011 if test "$cross_compiling" = yes; then
16012 # Depending upon the size, compute the lo and hi bounds.
16013cat >conftest.$ac_ext <<_ACEOF
16014/* confdefs.h. */
16015_ACEOF
16016cat confdefs.h >>conftest.$ac_ext
16017cat >>conftest.$ac_ext <<_ACEOF
16018/* end confdefs.h. */
16019$ac_includes_default
16020int
16021main ()
16022{
16023static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
16024test_array [0] = 0
16025
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); } &&
9dd0f6c2 16039 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16041 (eval $ac_try) 2>&5
16042 ac_status=$?
16043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16044 (exit $ac_status); }; } &&
16045 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16047 (eval $ac_try) 2>&5
16048 ac_status=$?
16049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16050 (exit $ac_status); }; }; then
16051 ac_lo=0 ac_mid=0
16052 while :; do
16053 cat >conftest.$ac_ext <<_ACEOF
16054/* confdefs.h. */
16055_ACEOF
16056cat confdefs.h >>conftest.$ac_ext
16057cat >>conftest.$ac_ext <<_ACEOF
16058/* end confdefs.h. */
16059$ac_includes_default
16060int
16061main ()
16062{
16063static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
16064test_array [0] = 0
16065
16066 ;
16067 return 0;
16068}
16069_ACEOF
16070rm -f conftest.$ac_objext
16071if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16072 (eval $ac_compile) 2>conftest.er1
a848cd7e 16073 ac_status=$?
ac1cb8d3
VS
16074 grep -v '^ *+' conftest.er1 >conftest.err
16075 rm -f conftest.er1
16076 cat conftest.err >&5
a848cd7e
SC
16077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16078 (exit $ac_status); } &&
9dd0f6c2 16079 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16081 (eval $ac_try) 2>&5
16082 ac_status=$?
16083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16084 (exit $ac_status); }; } &&
16085 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16087 (eval $ac_try) 2>&5
16088 ac_status=$?
16089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16090 (exit $ac_status); }; }; then
16091 ac_hi=$ac_mid; break
16092else
16093 echo "$as_me: failed program was:" >&5
16094sed 's/^/| /' conftest.$ac_ext >&5
16095
16096ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
16097 if test $ac_lo -le $ac_mid; then
16098 ac_lo= ac_hi=
16099 break
16100 fi
16101 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 16102fi
ac1cb8d3 16103rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16104 done
16105else
16106 echo "$as_me: failed program was:" >&5
16107sed 's/^/| /' conftest.$ac_ext >&5
16108
16109cat >conftest.$ac_ext <<_ACEOF
16110/* confdefs.h. */
16111_ACEOF
16112cat confdefs.h >>conftest.$ac_ext
16113cat >>conftest.$ac_ext <<_ACEOF
16114/* end confdefs.h. */
16115$ac_includes_default
16116int
16117main ()
16118{
16119static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
16120test_array [0] = 0
16121
16122 ;
16123 return 0;
16124}
16125_ACEOF
16126rm -f conftest.$ac_objext
16127if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16128 (eval $ac_compile) 2>conftest.er1
a848cd7e 16129 ac_status=$?
ac1cb8d3
VS
16130 grep -v '^ *+' conftest.er1 >conftest.err
16131 rm -f conftest.er1
16132 cat conftest.err >&5
a848cd7e
SC
16133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16134 (exit $ac_status); } &&
9dd0f6c2 16135 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16137 (eval $ac_try) 2>&5
16138 ac_status=$?
16139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16140 (exit $ac_status); }; } &&
16141 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16143 (eval $ac_try) 2>&5
16144 ac_status=$?
16145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16146 (exit $ac_status); }; }; then
16147 ac_hi=-1 ac_mid=-1
16148 while :; do
16149 cat >conftest.$ac_ext <<_ACEOF
16150/* confdefs.h. */
16151_ACEOF
16152cat confdefs.h >>conftest.$ac_ext
16153cat >>conftest.$ac_ext <<_ACEOF
16154/* end confdefs.h. */
16155$ac_includes_default
16156int
16157main ()
16158{
16159static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
16160test_array [0] = 0
16161
16162 ;
16163 return 0;
16164}
16165_ACEOF
16166rm -f conftest.$ac_objext
16167if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16168 (eval $ac_compile) 2>conftest.er1
a848cd7e 16169 ac_status=$?
ac1cb8d3
VS
16170 grep -v '^ *+' conftest.er1 >conftest.err
16171 rm -f conftest.er1
16172 cat conftest.err >&5
a848cd7e
SC
16173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16174 (exit $ac_status); } &&
9dd0f6c2 16175 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16177 (eval $ac_try) 2>&5
16178 ac_status=$?
16179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16180 (exit $ac_status); }; } &&
16181 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16183 (eval $ac_try) 2>&5
16184 ac_status=$?
16185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16186 (exit $ac_status); }; }; then
16187 ac_lo=$ac_mid; break
16188else
16189 echo "$as_me: failed program was:" >&5
16190sed 's/^/| /' conftest.$ac_ext >&5
16191
16192ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
16193 if test $ac_mid -le $ac_hi; then
16194 ac_lo= ac_hi=
16195 break
16196 fi
16197 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 16198fi
ac1cb8d3 16199rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16200 done
16201else
16202 echo "$as_me: failed program was:" >&5
16203sed 's/^/| /' conftest.$ac_ext >&5
16204
16205ac_lo= ac_hi=
16206fi
ac1cb8d3 16207rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 16208fi
ac1cb8d3 16209rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16210# Binary search between lo and hi bounds.
16211while test "x$ac_lo" != "x$ac_hi"; do
16212 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16213 cat >conftest.$ac_ext <<_ACEOF
16214/* confdefs.h. */
16215_ACEOF
16216cat confdefs.h >>conftest.$ac_ext
16217cat >>conftest.$ac_ext <<_ACEOF
16218/* end confdefs.h. */
16219$ac_includes_default
16220int
16221main ()
16222{
16223static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
16224test_array [0] = 0
16225
16226 ;
16227 return 0;
16228}
16229_ACEOF
16230rm -f conftest.$ac_objext
16231if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16232 (eval $ac_compile) 2>conftest.er1
a848cd7e 16233 ac_status=$?
ac1cb8d3
VS
16234 grep -v '^ *+' conftest.er1 >conftest.err
16235 rm -f conftest.er1
16236 cat conftest.err >&5
a848cd7e
SC
16237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16238 (exit $ac_status); } &&
9dd0f6c2 16239 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16241 (eval $ac_try) 2>&5
16242 ac_status=$?
16243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16244 (exit $ac_status); }; } &&
16245 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16247 (eval $ac_try) 2>&5
16248 ac_status=$?
16249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16250 (exit $ac_status); }; }; then
16251 ac_hi=$ac_mid
16252else
16253 echo "$as_me: failed program was:" >&5
16254sed 's/^/| /' conftest.$ac_ext >&5
16255
16256ac_lo=`expr '(' $ac_mid ')' + 1`
16257fi
ac1cb8d3 16258rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16259done
16260case $ac_lo in
16261?*) ac_cv_sizeof_short=$ac_lo;;
16262'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
16263See \`config.log' for more details." >&5
16264echo "$as_me: error: cannot compute sizeof (short), 77
16265See \`config.log' for more details." >&2;}
16266 { (exit 1); exit 1; }; } ;;
16267esac
16268else
16269 if test "$cross_compiling" = yes; then
9dd0f6c2
DE
16270 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
16271echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
16272 { (exit 1); exit 1; }; }
16273else
16274 cat >conftest.$ac_ext <<_ACEOF
16275/* confdefs.h. */
16276_ACEOF
16277cat confdefs.h >>conftest.$ac_ext
16278cat >>conftest.$ac_ext <<_ACEOF
16279/* end confdefs.h. */
16280$ac_includes_default
16281long longval () { return (long) (sizeof (short)); }
16282unsigned long ulongval () { return (long) (sizeof (short)); }
16283#include <stdio.h>
16284#include <stdlib.h>
16285int
16286main ()
16287{
16288
16289 FILE *f = fopen ("conftest.val", "w");
16290 if (! f)
16291 exit (1);
16292 if (((long) (sizeof (short))) < 0)
16293 {
16294 long i = longval ();
16295 if (i != ((long) (sizeof (short))))
16296 exit (1);
16297 fprintf (f, "%ld\n", i);
16298 }
16299 else
16300 {
16301 unsigned long i = ulongval ();
16302 if (i != ((long) (sizeof (short))))
16303 exit (1);
16304 fprintf (f, "%lu\n", i);
16305 }
16306 exit (ferror (f) || fclose (f) != 0);
16307
16308 ;
16309 return 0;
16310}
16311_ACEOF
16312rm -f conftest$ac_exeext
16313if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16314 (eval $ac_link) 2>&5
16315 ac_status=$?
16316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16317 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16319 (eval $ac_try) 2>&5
16320 ac_status=$?
16321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16322 (exit $ac_status); }; }; then
16323 ac_cv_sizeof_short=`cat conftest.val`
16324else
16325 echo "$as_me: program exited with status $ac_status" >&5
16326echo "$as_me: failed program was:" >&5
16327sed 's/^/| /' conftest.$ac_ext >&5
16328
16329( exit $ac_status )
16330{ { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
16331See \`config.log' for more details." >&5
16332echo "$as_me: error: cannot compute sizeof (short), 77
16333See \`config.log' for more details." >&2;}
16334 { (exit 1); exit 1; }; }
16335fi
ac1cb8d3 16336rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16337fi
16338fi
16339rm -f conftest.val
16340else
16341 ac_cv_sizeof_short=0
16342fi
16343fi
16344echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
16345echo "${ECHO_T}$ac_cv_sizeof_short" >&6
16346cat >>confdefs.h <<_ACEOF
16347#define SIZEOF_SHORT $ac_cv_sizeof_short
16348_ACEOF
16349
16350
16351echo "$as_me:$LINENO: checking for void *" >&5
16352echo $ECHO_N "checking for void *... $ECHO_C" >&6
16353if test "${ac_cv_type_void_p+set}" = set; then
16354 echo $ECHO_N "(cached) $ECHO_C" >&6
16355else
16356 cat >conftest.$ac_ext <<_ACEOF
16357/* confdefs.h. */
16358_ACEOF
16359cat confdefs.h >>conftest.$ac_ext
16360cat >>conftest.$ac_ext <<_ACEOF
16361/* end confdefs.h. */
16362$ac_includes_default
16363int
16364main ()
16365{
16366if ((void * *) 0)
16367 return 0;
16368if (sizeof (void *))
16369 return 0;
16370 ;
16371 return 0;
16372}
16373_ACEOF
16374rm -f conftest.$ac_objext
16375if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16376 (eval $ac_compile) 2>conftest.er1
a848cd7e 16377 ac_status=$?
ac1cb8d3
VS
16378 grep -v '^ *+' conftest.er1 >conftest.err
16379 rm -f conftest.er1
16380 cat conftest.err >&5
a848cd7e
SC
16381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16382 (exit $ac_status); } &&
9dd0f6c2 16383 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16385 (eval $ac_try) 2>&5
16386 ac_status=$?
16387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16388 (exit $ac_status); }; } &&
16389 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16391 (eval $ac_try) 2>&5
16392 ac_status=$?
16393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16394 (exit $ac_status); }; }; then
16395 ac_cv_type_void_p=yes
16396else
16397 echo "$as_me: failed program was:" >&5
16398sed 's/^/| /' conftest.$ac_ext >&5
16399
16400ac_cv_type_void_p=no
16401fi
ac1cb8d3 16402rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16403fi
16404echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
16405echo "${ECHO_T}$ac_cv_type_void_p" >&6
16406
16407echo "$as_me:$LINENO: checking size of void *" >&5
16408echo $ECHO_N "checking size of void *... $ECHO_C" >&6
16409if test "${ac_cv_sizeof_void_p+set}" = set; then
16410 echo $ECHO_N "(cached) $ECHO_C" >&6
16411else
16412 if test "$ac_cv_type_void_p" = yes; then
16413 # The cast to unsigned long works around a bug in the HP C Compiler
16414 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16415 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16416 # This bug is HP SR number 8606223364.
16417 if test "$cross_compiling" = yes; then
16418 # Depending upon the size, compute the lo and hi bounds.
16419cat >conftest.$ac_ext <<_ACEOF
16420/* confdefs.h. */
16421_ACEOF
16422cat confdefs.h >>conftest.$ac_ext
16423cat >>conftest.$ac_ext <<_ACEOF
16424/* end confdefs.h. */
16425$ac_includes_default
16426int
16427main ()
16428{
16429static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
16430test_array [0] = 0
16431
16432 ;
16433 return 0;
16434}
16435_ACEOF
16436rm -f conftest.$ac_objext
16437if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16438 (eval $ac_compile) 2>conftest.er1
a848cd7e 16439 ac_status=$?
ac1cb8d3
VS
16440 grep -v '^ *+' conftest.er1 >conftest.err
16441 rm -f conftest.er1
16442 cat conftest.err >&5
a848cd7e
SC
16443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16444 (exit $ac_status); } &&
9dd0f6c2 16445 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16447 (eval $ac_try) 2>&5
16448 ac_status=$?
16449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16450 (exit $ac_status); }; } &&
16451 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16453 (eval $ac_try) 2>&5
16454 ac_status=$?
16455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16456 (exit $ac_status); }; }; then
16457 ac_lo=0 ac_mid=0
16458 while :; do
16459 cat >conftest.$ac_ext <<_ACEOF
16460/* confdefs.h. */
16461_ACEOF
16462cat confdefs.h >>conftest.$ac_ext
16463cat >>conftest.$ac_ext <<_ACEOF
16464/* end confdefs.h. */
16465$ac_includes_default
16466int
16467main ()
16468{
16469static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
16470test_array [0] = 0
16471
16472 ;
16473 return 0;
16474}
16475_ACEOF
16476rm -f conftest.$ac_objext
16477if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16478 (eval $ac_compile) 2>conftest.er1
a848cd7e 16479 ac_status=$?
ac1cb8d3
VS
16480 grep -v '^ *+' conftest.er1 >conftest.err
16481 rm -f conftest.er1
16482 cat conftest.err >&5
a848cd7e
SC
16483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16484 (exit $ac_status); } &&
9dd0f6c2 16485 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16487 (eval $ac_try) 2>&5
16488 ac_status=$?
16489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16490 (exit $ac_status); }; } &&
16491 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16493 (eval $ac_try) 2>&5
16494 ac_status=$?
16495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16496 (exit $ac_status); }; }; then
16497 ac_hi=$ac_mid; break
16498else
16499 echo "$as_me: failed program was:" >&5
16500sed 's/^/| /' conftest.$ac_ext >&5
16501
16502ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
16503 if test $ac_lo -le $ac_mid; then
16504 ac_lo= ac_hi=
16505 break
16506 fi
16507 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 16508fi
ac1cb8d3 16509rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16510 done
16511else
16512 echo "$as_me: failed program was:" >&5
16513sed 's/^/| /' conftest.$ac_ext >&5
16514
16515cat >conftest.$ac_ext <<_ACEOF
16516/* confdefs.h. */
16517_ACEOF
16518cat confdefs.h >>conftest.$ac_ext
16519cat >>conftest.$ac_ext <<_ACEOF
16520/* end confdefs.h. */
16521$ac_includes_default
16522int
16523main ()
16524{
16525static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
16526test_array [0] = 0
16527
16528 ;
16529 return 0;
16530}
16531_ACEOF
16532rm -f conftest.$ac_objext
16533if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16534 (eval $ac_compile) 2>conftest.er1
a848cd7e 16535 ac_status=$?
ac1cb8d3
VS
16536 grep -v '^ *+' conftest.er1 >conftest.err
16537 rm -f conftest.er1
16538 cat conftest.err >&5
a848cd7e
SC
16539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16540 (exit $ac_status); } &&
9dd0f6c2 16541 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16543 (eval $ac_try) 2>&5
16544 ac_status=$?
16545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16546 (exit $ac_status); }; } &&
16547 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16549 (eval $ac_try) 2>&5
16550 ac_status=$?
16551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16552 (exit $ac_status); }; }; then
16553 ac_hi=-1 ac_mid=-1
16554 while :; do
16555 cat >conftest.$ac_ext <<_ACEOF
16556/* confdefs.h. */
16557_ACEOF
16558cat confdefs.h >>conftest.$ac_ext
16559cat >>conftest.$ac_ext <<_ACEOF
16560/* end confdefs.h. */
16561$ac_includes_default
16562int
16563main ()
16564{
16565static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
16566test_array [0] = 0
16567
16568 ;
16569 return 0;
16570}
16571_ACEOF
16572rm -f conftest.$ac_objext
16573if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16574 (eval $ac_compile) 2>conftest.er1
a848cd7e 16575 ac_status=$?
ac1cb8d3
VS
16576 grep -v '^ *+' conftest.er1 >conftest.err
16577 rm -f conftest.er1
16578 cat conftest.err >&5
a848cd7e
SC
16579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16580 (exit $ac_status); } &&
9dd0f6c2 16581 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16583 (eval $ac_try) 2>&5
16584 ac_status=$?
16585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16586 (exit $ac_status); }; } &&
16587 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16589 (eval $ac_try) 2>&5
16590 ac_status=$?
16591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16592 (exit $ac_status); }; }; then
16593 ac_lo=$ac_mid; break
16594else
16595 echo "$as_me: failed program was:" >&5
16596sed 's/^/| /' conftest.$ac_ext >&5
16597
16598ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
16599 if test $ac_mid -le $ac_hi; then
16600 ac_lo= ac_hi=
16601 break
16602 fi
16603 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 16604fi
ac1cb8d3 16605rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16606 done
16607else
16608 echo "$as_me: failed program was:" >&5
16609sed 's/^/| /' conftest.$ac_ext >&5
16610
16611ac_lo= ac_hi=
16612fi
ac1cb8d3 16613rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 16614fi
ac1cb8d3 16615rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16616# Binary search between lo and hi bounds.
16617while test "x$ac_lo" != "x$ac_hi"; do
16618 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16619 cat >conftest.$ac_ext <<_ACEOF
16620/* confdefs.h. */
16621_ACEOF
16622cat confdefs.h >>conftest.$ac_ext
16623cat >>conftest.$ac_ext <<_ACEOF
16624/* end confdefs.h. */
16625$ac_includes_default
16626int
16627main ()
16628{
16629static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
16630test_array [0] = 0
16631
16632 ;
16633 return 0;
16634}
16635_ACEOF
16636rm -f conftest.$ac_objext
16637if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16638 (eval $ac_compile) 2>conftest.er1
a848cd7e 16639 ac_status=$?
ac1cb8d3
VS
16640 grep -v '^ *+' conftest.er1 >conftest.err
16641 rm -f conftest.er1
16642 cat conftest.err >&5
a848cd7e
SC
16643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16644 (exit $ac_status); } &&
9dd0f6c2 16645 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16647 (eval $ac_try) 2>&5
16648 ac_status=$?
16649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16650 (exit $ac_status); }; } &&
16651 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16653 (eval $ac_try) 2>&5
16654 ac_status=$?
16655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16656 (exit $ac_status); }; }; then
16657 ac_hi=$ac_mid
16658else
16659 echo "$as_me: failed program was:" >&5
16660sed 's/^/| /' conftest.$ac_ext >&5
16661
16662ac_lo=`expr '(' $ac_mid ')' + 1`
16663fi
ac1cb8d3 16664rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16665done
16666case $ac_lo in
16667?*) ac_cv_sizeof_void_p=$ac_lo;;
16668'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
16669See \`config.log' for more details." >&5
16670echo "$as_me: error: cannot compute sizeof (void *), 77
16671See \`config.log' for more details." >&2;}
16672 { (exit 1); exit 1; }; } ;;
16673esac
16674else
16675 if test "$cross_compiling" = yes; then
9dd0f6c2
DE
16676 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
16677echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
16678 { (exit 1); exit 1; }; }
16679else
16680 cat >conftest.$ac_ext <<_ACEOF
16681/* confdefs.h. */
16682_ACEOF
16683cat confdefs.h >>conftest.$ac_ext
16684cat >>conftest.$ac_ext <<_ACEOF
16685/* end confdefs.h. */
16686$ac_includes_default
16687long longval () { return (long) (sizeof (void *)); }
16688unsigned long ulongval () { return (long) (sizeof (void *)); }
16689#include <stdio.h>
16690#include <stdlib.h>
16691int
16692main ()
16693{
16694
16695 FILE *f = fopen ("conftest.val", "w");
16696 if (! f)
16697 exit (1);
16698 if (((long) (sizeof (void *))) < 0)
16699 {
16700 long i = longval ();
16701 if (i != ((long) (sizeof (void *))))
16702 exit (1);
16703 fprintf (f, "%ld\n", i);
16704 }
16705 else
16706 {
16707 unsigned long i = ulongval ();
16708 if (i != ((long) (sizeof (void *))))
16709 exit (1);
16710 fprintf (f, "%lu\n", i);
16711 }
16712 exit (ferror (f) || fclose (f) != 0);
16713
16714 ;
16715 return 0;
16716}
16717_ACEOF
16718rm -f conftest$ac_exeext
16719if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16720 (eval $ac_link) 2>&5
16721 ac_status=$?
16722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16723 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16725 (eval $ac_try) 2>&5
16726 ac_status=$?
16727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16728 (exit $ac_status); }; }; then
16729 ac_cv_sizeof_void_p=`cat conftest.val`
16730else
16731 echo "$as_me: program exited with status $ac_status" >&5
16732echo "$as_me: failed program was:" >&5
16733sed 's/^/| /' conftest.$ac_ext >&5
16734
16735( exit $ac_status )
16736{ { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
16737See \`config.log' for more details." >&5
16738echo "$as_me: error: cannot compute sizeof (void *), 77
16739See \`config.log' for more details." >&2;}
16740 { (exit 1); exit 1; }; }
16741fi
ac1cb8d3 16742rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16743fi
16744fi
16745rm -f conftest.val
16746else
16747 ac_cv_sizeof_void_p=0
16748fi
16749fi
16750echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
16751echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
16752cat >>confdefs.h <<_ACEOF
16753#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
16754_ACEOF
16755
16756
16757echo "$as_me:$LINENO: checking for int" >&5
16758echo $ECHO_N "checking for int... $ECHO_C" >&6
16759if test "${ac_cv_type_int+set}" = set; then
16760 echo $ECHO_N "(cached) $ECHO_C" >&6
16761else
16762 cat >conftest.$ac_ext <<_ACEOF
16763/* confdefs.h. */
16764_ACEOF
16765cat confdefs.h >>conftest.$ac_ext
16766cat >>conftest.$ac_ext <<_ACEOF
16767/* end confdefs.h. */
16768$ac_includes_default
16769int
16770main ()
16771{
16772if ((int *) 0)
16773 return 0;
16774if (sizeof (int))
16775 return 0;
16776 ;
16777 return 0;
16778}
16779_ACEOF
16780rm -f conftest.$ac_objext
16781if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16782 (eval $ac_compile) 2>conftest.er1
a848cd7e 16783 ac_status=$?
ac1cb8d3
VS
16784 grep -v '^ *+' conftest.er1 >conftest.err
16785 rm -f conftest.er1
16786 cat conftest.err >&5
a848cd7e
SC
16787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16788 (exit $ac_status); } &&
9dd0f6c2 16789 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16791 (eval $ac_try) 2>&5
16792 ac_status=$?
16793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16794 (exit $ac_status); }; } &&
16795 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16797 (eval $ac_try) 2>&5
16798 ac_status=$?
16799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16800 (exit $ac_status); }; }; then
16801 ac_cv_type_int=yes
16802else
16803 echo "$as_me: failed program was:" >&5
16804sed 's/^/| /' conftest.$ac_ext >&5
16805
16806ac_cv_type_int=no
16807fi
ac1cb8d3 16808rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16809fi
16810echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
16811echo "${ECHO_T}$ac_cv_type_int" >&6
16812
16813echo "$as_me:$LINENO: checking size of int" >&5
16814echo $ECHO_N "checking size of int... $ECHO_C" >&6
16815if test "${ac_cv_sizeof_int+set}" = set; then
16816 echo $ECHO_N "(cached) $ECHO_C" >&6
16817else
16818 if test "$ac_cv_type_int" = yes; then
16819 # The cast to unsigned long works around a bug in the HP C Compiler
16820 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16821 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16822 # This bug is HP SR number 8606223364.
16823 if test "$cross_compiling" = yes; then
16824 # Depending upon the size, compute the lo and hi bounds.
16825cat >conftest.$ac_ext <<_ACEOF
16826/* confdefs.h. */
16827_ACEOF
16828cat confdefs.h >>conftest.$ac_ext
16829cat >>conftest.$ac_ext <<_ACEOF
16830/* end confdefs.h. */
16831$ac_includes_default
16832int
16833main ()
16834{
16835static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
16836test_array [0] = 0
16837
16838 ;
16839 return 0;
16840}
16841_ACEOF
16842rm -f conftest.$ac_objext
16843if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16844 (eval $ac_compile) 2>conftest.er1
a848cd7e 16845 ac_status=$?
ac1cb8d3
VS
16846 grep -v '^ *+' conftest.er1 >conftest.err
16847 rm -f conftest.er1
16848 cat conftest.err >&5
a848cd7e
SC
16849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16850 (exit $ac_status); } &&
9dd0f6c2 16851 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16853 (eval $ac_try) 2>&5
16854 ac_status=$?
16855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16856 (exit $ac_status); }; } &&
16857 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16859 (eval $ac_try) 2>&5
16860 ac_status=$?
16861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16862 (exit $ac_status); }; }; then
16863 ac_lo=0 ac_mid=0
16864 while :; do
16865 cat >conftest.$ac_ext <<_ACEOF
16866/* confdefs.h. */
16867_ACEOF
16868cat confdefs.h >>conftest.$ac_ext
16869cat >>conftest.$ac_ext <<_ACEOF
16870/* end confdefs.h. */
16871$ac_includes_default
16872int
16873main ()
16874{
16875static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
16876test_array [0] = 0
16877
16878 ;
16879 return 0;
16880}
16881_ACEOF
16882rm -f conftest.$ac_objext
16883if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16884 (eval $ac_compile) 2>conftest.er1
a848cd7e 16885 ac_status=$?
ac1cb8d3
VS
16886 grep -v '^ *+' conftest.er1 >conftest.err
16887 rm -f conftest.er1
16888 cat conftest.err >&5
a848cd7e
SC
16889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16890 (exit $ac_status); } &&
9dd0f6c2 16891 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16893 (eval $ac_try) 2>&5
16894 ac_status=$?
16895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16896 (exit $ac_status); }; } &&
16897 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16899 (eval $ac_try) 2>&5
16900 ac_status=$?
16901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16902 (exit $ac_status); }; }; then
16903 ac_hi=$ac_mid; break
16904else
16905 echo "$as_me: failed program was:" >&5
16906sed 's/^/| /' conftest.$ac_ext >&5
16907
16908ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
16909 if test $ac_lo -le $ac_mid; then
16910 ac_lo= ac_hi=
16911 break
16912 fi
16913 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 16914fi
ac1cb8d3 16915rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16916 done
16917else
16918 echo "$as_me: failed program was:" >&5
16919sed 's/^/| /' conftest.$ac_ext >&5
16920
16921cat >conftest.$ac_ext <<_ACEOF
16922/* confdefs.h. */
16923_ACEOF
16924cat confdefs.h >>conftest.$ac_ext
16925cat >>conftest.$ac_ext <<_ACEOF
16926/* end confdefs.h. */
16927$ac_includes_default
16928int
16929main ()
16930{
16931static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
16932test_array [0] = 0
16933
16934 ;
16935 return 0;
16936}
16937_ACEOF
16938rm -f conftest.$ac_objext
16939if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16940 (eval $ac_compile) 2>conftest.er1
a848cd7e 16941 ac_status=$?
ac1cb8d3
VS
16942 grep -v '^ *+' conftest.er1 >conftest.err
16943 rm -f conftest.er1
16944 cat conftest.err >&5
a848cd7e
SC
16945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16946 (exit $ac_status); } &&
9dd0f6c2 16947 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16949 (eval $ac_try) 2>&5
16950 ac_status=$?
16951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16952 (exit $ac_status); }; } &&
16953 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16955 (eval $ac_try) 2>&5
16956 ac_status=$?
16957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16958 (exit $ac_status); }; }; then
16959 ac_hi=-1 ac_mid=-1
16960 while :; do
16961 cat >conftest.$ac_ext <<_ACEOF
16962/* confdefs.h. */
16963_ACEOF
16964cat confdefs.h >>conftest.$ac_ext
16965cat >>conftest.$ac_ext <<_ACEOF
16966/* end confdefs.h. */
16967$ac_includes_default
16968int
16969main ()
16970{
16971static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
16972test_array [0] = 0
16973
16974 ;
16975 return 0;
16976}
16977_ACEOF
16978rm -f conftest.$ac_objext
16979if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16980 (eval $ac_compile) 2>conftest.er1
a848cd7e 16981 ac_status=$?
ac1cb8d3
VS
16982 grep -v '^ *+' conftest.er1 >conftest.err
16983 rm -f conftest.er1
16984 cat conftest.err >&5
a848cd7e
SC
16985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16986 (exit $ac_status); } &&
9dd0f6c2 16987 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16989 (eval $ac_try) 2>&5
16990 ac_status=$?
16991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16992 (exit $ac_status); }; } &&
16993 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16995 (eval $ac_try) 2>&5
16996 ac_status=$?
16997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16998 (exit $ac_status); }; }; then
16999 ac_lo=$ac_mid; break
17000else
17001 echo "$as_me: failed program was:" >&5
17002sed 's/^/| /' conftest.$ac_ext >&5
17003
17004ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
17005 if test $ac_mid -le $ac_hi; then
17006 ac_lo= ac_hi=
17007 break
17008 fi
17009 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 17010fi
ac1cb8d3 17011rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17012 done
17013else
17014 echo "$as_me: failed program was:" >&5
17015sed 's/^/| /' conftest.$ac_ext >&5
17016
17017ac_lo= ac_hi=
17018fi
ac1cb8d3 17019rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 17020fi
ac1cb8d3 17021rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17022# Binary search between lo and hi bounds.
17023while test "x$ac_lo" != "x$ac_hi"; do
17024 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
17025 cat >conftest.$ac_ext <<_ACEOF
17026/* confdefs.h. */
17027_ACEOF
17028cat confdefs.h >>conftest.$ac_ext
17029cat >>conftest.$ac_ext <<_ACEOF
17030/* end confdefs.h. */
17031$ac_includes_default
17032int
17033main ()
17034{
17035static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
17036test_array [0] = 0
17037
17038 ;
17039 return 0;
17040}
17041_ACEOF
17042rm -f conftest.$ac_objext
17043if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17044 (eval $ac_compile) 2>conftest.er1
a848cd7e 17045 ac_status=$?
ac1cb8d3
VS
17046 grep -v '^ *+' conftest.er1 >conftest.err
17047 rm -f conftest.er1
17048 cat conftest.err >&5
a848cd7e
SC
17049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17050 (exit $ac_status); } &&
9dd0f6c2 17051 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17053 (eval $ac_try) 2>&5
17054 ac_status=$?
17055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17056 (exit $ac_status); }; } &&
17057 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17059 (eval $ac_try) 2>&5
17060 ac_status=$?
17061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17062 (exit $ac_status); }; }; then
17063 ac_hi=$ac_mid
17064else
17065 echo "$as_me: failed program was:" >&5
17066sed 's/^/| /' conftest.$ac_ext >&5
17067
17068ac_lo=`expr '(' $ac_mid ')' + 1`
17069fi
ac1cb8d3 17070rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17071done
17072case $ac_lo in
17073?*) ac_cv_sizeof_int=$ac_lo;;
17074'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
17075See \`config.log' for more details." >&5
17076echo "$as_me: error: cannot compute sizeof (int), 77
17077See \`config.log' for more details." >&2;}
17078 { (exit 1); exit 1; }; } ;;
17079esac
17080else
17081 if test "$cross_compiling" = yes; then
9dd0f6c2
DE
17082 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
17083echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
17084 { (exit 1); exit 1; }; }
17085else
17086 cat >conftest.$ac_ext <<_ACEOF
17087/* confdefs.h. */
17088_ACEOF
17089cat confdefs.h >>conftest.$ac_ext
17090cat >>conftest.$ac_ext <<_ACEOF
17091/* end confdefs.h. */
17092$ac_includes_default
17093long longval () { return (long) (sizeof (int)); }
17094unsigned long ulongval () { return (long) (sizeof (int)); }
17095#include <stdio.h>
17096#include <stdlib.h>
17097int
17098main ()
17099{
17100
17101 FILE *f = fopen ("conftest.val", "w");
17102 if (! f)
17103 exit (1);
17104 if (((long) (sizeof (int))) < 0)
17105 {
17106 long i = longval ();
17107 if (i != ((long) (sizeof (int))))
17108 exit (1);
17109 fprintf (f, "%ld\n", i);
17110 }
17111 else
17112 {
17113 unsigned long i = ulongval ();
17114 if (i != ((long) (sizeof (int))))
17115 exit (1);
17116 fprintf (f, "%lu\n", i);
17117 }
17118 exit (ferror (f) || fclose (f) != 0);
17119
17120 ;
17121 return 0;
17122}
17123_ACEOF
17124rm -f conftest$ac_exeext
17125if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17126 (eval $ac_link) 2>&5
17127 ac_status=$?
17128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17129 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17131 (eval $ac_try) 2>&5
17132 ac_status=$?
17133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17134 (exit $ac_status); }; }; then
17135 ac_cv_sizeof_int=`cat conftest.val`
17136else
17137 echo "$as_me: program exited with status $ac_status" >&5
17138echo "$as_me: failed program was:" >&5
17139sed 's/^/| /' conftest.$ac_ext >&5
17140
17141( exit $ac_status )
17142{ { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
17143See \`config.log' for more details." >&5
17144echo "$as_me: error: cannot compute sizeof (int), 77
17145See \`config.log' for more details." >&2;}
17146 { (exit 1); exit 1; }; }
17147fi
ac1cb8d3 17148rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17149fi
17150fi
17151rm -f conftest.val
17152else
17153 ac_cv_sizeof_int=0
17154fi
17155fi
17156echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
17157echo "${ECHO_T}$ac_cv_sizeof_int" >&6
17158cat >>confdefs.h <<_ACEOF
17159#define SIZEOF_INT $ac_cv_sizeof_int
17160_ACEOF
17161
17162
17163echo "$as_me:$LINENO: checking for long" >&5
17164echo $ECHO_N "checking for long... $ECHO_C" >&6
17165if test "${ac_cv_type_long+set}" = set; then
17166 echo $ECHO_N "(cached) $ECHO_C" >&6
17167else
17168 cat >conftest.$ac_ext <<_ACEOF
17169/* confdefs.h. */
17170_ACEOF
17171cat confdefs.h >>conftest.$ac_ext
17172cat >>conftest.$ac_ext <<_ACEOF
17173/* end confdefs.h. */
17174$ac_includes_default
17175int
17176main ()
17177{
17178if ((long *) 0)
17179 return 0;
17180if (sizeof (long))
17181 return 0;
17182 ;
17183 return 0;
17184}
17185_ACEOF
17186rm -f conftest.$ac_objext
17187if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17188 (eval $ac_compile) 2>conftest.er1
a848cd7e 17189 ac_status=$?
ac1cb8d3
VS
17190 grep -v '^ *+' conftest.er1 >conftest.err
17191 rm -f conftest.er1
17192 cat conftest.err >&5
a848cd7e
SC
17193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17194 (exit $ac_status); } &&
9dd0f6c2 17195 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17197 (eval $ac_try) 2>&5
17198 ac_status=$?
17199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17200 (exit $ac_status); }; } &&
17201 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17203 (eval $ac_try) 2>&5
17204 ac_status=$?
17205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17206 (exit $ac_status); }; }; then
17207 ac_cv_type_long=yes
17208else
17209 echo "$as_me: failed program was:" >&5
17210sed 's/^/| /' conftest.$ac_ext >&5
17211
17212ac_cv_type_long=no
17213fi
ac1cb8d3 17214rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17215fi
17216echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
17217echo "${ECHO_T}$ac_cv_type_long" >&6
17218
17219echo "$as_me:$LINENO: checking size of long" >&5
17220echo $ECHO_N "checking size of long... $ECHO_C" >&6
17221if test "${ac_cv_sizeof_long+set}" = set; then
17222 echo $ECHO_N "(cached) $ECHO_C" >&6
17223else
17224 if test "$ac_cv_type_long" = yes; then
17225 # The cast to unsigned long works around a bug in the HP C Compiler
17226 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17227 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17228 # This bug is HP SR number 8606223364.
17229 if test "$cross_compiling" = yes; then
17230 # Depending upon the size, compute the lo and hi bounds.
17231cat >conftest.$ac_ext <<_ACEOF
17232/* confdefs.h. */
17233_ACEOF
17234cat confdefs.h >>conftest.$ac_ext
17235cat >>conftest.$ac_ext <<_ACEOF
17236/* end confdefs.h. */
17237$ac_includes_default
17238int
17239main ()
17240{
17241static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
17242test_array [0] = 0
17243
17244 ;
17245 return 0;
17246}
17247_ACEOF
17248rm -f conftest.$ac_objext
17249if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17250 (eval $ac_compile) 2>conftest.er1
a848cd7e 17251 ac_status=$?
ac1cb8d3
VS
17252 grep -v '^ *+' conftest.er1 >conftest.err
17253 rm -f conftest.er1
17254 cat conftest.err >&5
a848cd7e
SC
17255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17256 (exit $ac_status); } &&
9dd0f6c2 17257 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17259 (eval $ac_try) 2>&5
17260 ac_status=$?
17261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17262 (exit $ac_status); }; } &&
17263 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17265 (eval $ac_try) 2>&5
17266 ac_status=$?
17267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17268 (exit $ac_status); }; }; then
17269 ac_lo=0 ac_mid=0
17270 while :; do
17271 cat >conftest.$ac_ext <<_ACEOF
17272/* confdefs.h. */
17273_ACEOF
17274cat confdefs.h >>conftest.$ac_ext
17275cat >>conftest.$ac_ext <<_ACEOF
17276/* end confdefs.h. */
17277$ac_includes_default
17278int
17279main ()
17280{
17281static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
17282test_array [0] = 0
17283
17284 ;
17285 return 0;
17286}
17287_ACEOF
17288rm -f conftest.$ac_objext
17289if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17290 (eval $ac_compile) 2>conftest.er1
a848cd7e 17291 ac_status=$?
ac1cb8d3
VS
17292 grep -v '^ *+' conftest.er1 >conftest.err
17293 rm -f conftest.er1
17294 cat conftest.err >&5
a848cd7e
SC
17295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17296 (exit $ac_status); } &&
9dd0f6c2 17297 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17299 (eval $ac_try) 2>&5
17300 ac_status=$?
17301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17302 (exit $ac_status); }; } &&
17303 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17305 (eval $ac_try) 2>&5
17306 ac_status=$?
17307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17308 (exit $ac_status); }; }; then
17309 ac_hi=$ac_mid; break
17310else
17311 echo "$as_me: failed program was:" >&5
17312sed 's/^/| /' conftest.$ac_ext >&5
17313
17314ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
17315 if test $ac_lo -le $ac_mid; then
17316 ac_lo= ac_hi=
17317 break
17318 fi
17319 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 17320fi
ac1cb8d3 17321rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17322 done
17323else
17324 echo "$as_me: failed program was:" >&5
17325sed 's/^/| /' conftest.$ac_ext >&5
17326
17327cat >conftest.$ac_ext <<_ACEOF
17328/* confdefs.h. */
17329_ACEOF
17330cat confdefs.h >>conftest.$ac_ext
17331cat >>conftest.$ac_ext <<_ACEOF
17332/* end confdefs.h. */
17333$ac_includes_default
17334int
17335main ()
17336{
17337static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
17338test_array [0] = 0
17339
17340 ;
17341 return 0;
17342}
17343_ACEOF
17344rm -f conftest.$ac_objext
17345if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17346 (eval $ac_compile) 2>conftest.er1
a848cd7e 17347 ac_status=$?
ac1cb8d3
VS
17348 grep -v '^ *+' conftest.er1 >conftest.err
17349 rm -f conftest.er1
17350 cat conftest.err >&5
a848cd7e
SC
17351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17352 (exit $ac_status); } &&
9dd0f6c2 17353 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17355 (eval $ac_try) 2>&5
17356 ac_status=$?
17357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17358 (exit $ac_status); }; } &&
17359 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17361 (eval $ac_try) 2>&5
17362 ac_status=$?
17363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17364 (exit $ac_status); }; }; then
17365 ac_hi=-1 ac_mid=-1
17366 while :; do
17367 cat >conftest.$ac_ext <<_ACEOF
17368/* confdefs.h. */
17369_ACEOF
17370cat confdefs.h >>conftest.$ac_ext
17371cat >>conftest.$ac_ext <<_ACEOF
17372/* end confdefs.h. */
17373$ac_includes_default
17374int
17375main ()
17376{
17377static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
17378test_array [0] = 0
17379
17380 ;
17381 return 0;
17382}
17383_ACEOF
17384rm -f conftest.$ac_objext
17385if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17386 (eval $ac_compile) 2>conftest.er1
a848cd7e 17387 ac_status=$?
ac1cb8d3
VS
17388 grep -v '^ *+' conftest.er1 >conftest.err
17389 rm -f conftest.er1
17390 cat conftest.err >&5
a848cd7e
SC
17391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17392 (exit $ac_status); } &&
9dd0f6c2 17393 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17395 (eval $ac_try) 2>&5
17396 ac_status=$?
17397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17398 (exit $ac_status); }; } &&
17399 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17401 (eval $ac_try) 2>&5
17402 ac_status=$?
17403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17404 (exit $ac_status); }; }; then
17405 ac_lo=$ac_mid; break
17406else
17407 echo "$as_me: failed program was:" >&5
17408sed 's/^/| /' conftest.$ac_ext >&5
17409
17410ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
17411 if test $ac_mid -le $ac_hi; then
17412 ac_lo= ac_hi=
17413 break
17414 fi
17415 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 17416fi
ac1cb8d3 17417rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17418 done
17419else
17420 echo "$as_me: failed program was:" >&5
17421sed 's/^/| /' conftest.$ac_ext >&5
17422
17423ac_lo= ac_hi=
17424fi
ac1cb8d3 17425rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 17426fi
ac1cb8d3 17427rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17428# Binary search between lo and hi bounds.
17429while test "x$ac_lo" != "x$ac_hi"; do
17430 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
17431 cat >conftest.$ac_ext <<_ACEOF
17432/* confdefs.h. */
17433_ACEOF
17434cat confdefs.h >>conftest.$ac_ext
17435cat >>conftest.$ac_ext <<_ACEOF
17436/* end confdefs.h. */
17437$ac_includes_default
17438int
17439main ()
17440{
17441static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
17442test_array [0] = 0
17443
17444 ;
17445 return 0;
17446}
17447_ACEOF
17448rm -f conftest.$ac_objext
17449if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17450 (eval $ac_compile) 2>conftest.er1
a848cd7e 17451 ac_status=$?
ac1cb8d3
VS
17452 grep -v '^ *+' conftest.er1 >conftest.err
17453 rm -f conftest.er1
17454 cat conftest.err >&5
a848cd7e
SC
17455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17456 (exit $ac_status); } &&
9dd0f6c2 17457 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17459 (eval $ac_try) 2>&5
17460 ac_status=$?
17461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17462 (exit $ac_status); }; } &&
17463 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17465 (eval $ac_try) 2>&5
17466 ac_status=$?
17467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17468 (exit $ac_status); }; }; then
17469 ac_hi=$ac_mid
17470else
17471 echo "$as_me: failed program was:" >&5
17472sed 's/^/| /' conftest.$ac_ext >&5
17473
17474ac_lo=`expr '(' $ac_mid ')' + 1`
17475fi
ac1cb8d3 17476rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17477done
17478case $ac_lo in
17479?*) ac_cv_sizeof_long=$ac_lo;;
17480'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
17481See \`config.log' for more details." >&5
17482echo "$as_me: error: cannot compute sizeof (long), 77
17483See \`config.log' for more details." >&2;}
17484 { (exit 1); exit 1; }; } ;;
17485esac
17486else
17487 if test "$cross_compiling" = yes; then
9dd0f6c2
DE
17488 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
17489echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
17490 { (exit 1); exit 1; }; }
17491else
17492 cat >conftest.$ac_ext <<_ACEOF
17493/* confdefs.h. */
17494_ACEOF
17495cat confdefs.h >>conftest.$ac_ext
17496cat >>conftest.$ac_ext <<_ACEOF
17497/* end confdefs.h. */
17498$ac_includes_default
17499long longval () { return (long) (sizeof (long)); }
17500unsigned long ulongval () { return (long) (sizeof (long)); }
17501#include <stdio.h>
17502#include <stdlib.h>
17503int
17504main ()
17505{
17506
17507 FILE *f = fopen ("conftest.val", "w");
17508 if (! f)
17509 exit (1);
17510 if (((long) (sizeof (long))) < 0)
17511 {
17512 long i = longval ();
17513 if (i != ((long) (sizeof (long))))
17514 exit (1);
17515 fprintf (f, "%ld\n", i);
17516 }
17517 else
17518 {
17519 unsigned long i = ulongval ();
17520 if (i != ((long) (sizeof (long))))
17521 exit (1);
17522 fprintf (f, "%lu\n", i);
17523 }
17524 exit (ferror (f) || fclose (f) != 0);
17525
17526 ;
17527 return 0;
17528}
17529_ACEOF
17530rm -f conftest$ac_exeext
17531if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17532 (eval $ac_link) 2>&5
17533 ac_status=$?
17534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17535 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17537 (eval $ac_try) 2>&5
17538 ac_status=$?
17539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17540 (exit $ac_status); }; }; then
17541 ac_cv_sizeof_long=`cat conftest.val`
17542else
17543 echo "$as_me: program exited with status $ac_status" >&5
17544echo "$as_me: failed program was:" >&5
17545sed 's/^/| /' conftest.$ac_ext >&5
17546
17547( exit $ac_status )
17548{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
17549See \`config.log' for more details." >&5
17550echo "$as_me: error: cannot compute sizeof (long), 77
17551See \`config.log' for more details." >&2;}
17552 { (exit 1); exit 1; }; }
17553fi
ac1cb8d3 17554rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17555fi
17556fi
17557rm -f conftest.val
17558else
17559 ac_cv_sizeof_long=0
17560fi
17561fi
17562echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
17563echo "${ECHO_T}$ac_cv_sizeof_long" >&6
17564cat >>confdefs.h <<_ACEOF
17565#define SIZEOF_LONG $ac_cv_sizeof_long
17566_ACEOF
17567
17568
17569echo "$as_me:$LINENO: checking for size_t" >&5
17570echo $ECHO_N "checking for size_t... $ECHO_C" >&6
17571if test "${ac_cv_type_size_t+set}" = set; then
17572 echo $ECHO_N "(cached) $ECHO_C" >&6
17573else
17574 cat >conftest.$ac_ext <<_ACEOF
17575/* confdefs.h. */
17576_ACEOF
17577cat confdefs.h >>conftest.$ac_ext
17578cat >>conftest.$ac_ext <<_ACEOF
17579/* end confdefs.h. */
17580$ac_includes_default
17581int
17582main ()
17583{
17584if ((size_t *) 0)
17585 return 0;
17586if (sizeof (size_t))
17587 return 0;
17588 ;
17589 return 0;
17590}
17591_ACEOF
17592rm -f conftest.$ac_objext
17593if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17594 (eval $ac_compile) 2>conftest.er1
a848cd7e 17595 ac_status=$?
ac1cb8d3
VS
17596 grep -v '^ *+' conftest.er1 >conftest.err
17597 rm -f conftest.er1
17598 cat conftest.err >&5
a848cd7e
SC
17599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17600 (exit $ac_status); } &&
9dd0f6c2 17601 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17603 (eval $ac_try) 2>&5
17604 ac_status=$?
17605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17606 (exit $ac_status); }; } &&
17607 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17609 (eval $ac_try) 2>&5
17610 ac_status=$?
17611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17612 (exit $ac_status); }; }; then
17613 ac_cv_type_size_t=yes
17614else
17615 echo "$as_me: failed program was:" >&5
17616sed 's/^/| /' conftest.$ac_ext >&5
17617
17618ac_cv_type_size_t=no
17619fi
ac1cb8d3 17620rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17621fi
17622echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
17623echo "${ECHO_T}$ac_cv_type_size_t" >&6
17624
17625echo "$as_me:$LINENO: checking size of size_t" >&5
17626echo $ECHO_N "checking size of size_t... $ECHO_C" >&6
17627if test "${ac_cv_sizeof_size_t+set}" = set; then
17628 echo $ECHO_N "(cached) $ECHO_C" >&6
17629else
17630 if test "$ac_cv_type_size_t" = yes; then
17631 # The cast to unsigned long works around a bug in the HP C Compiler
17632 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17633 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17634 # This bug is HP SR number 8606223364.
17635 if test "$cross_compiling" = yes; then
17636 # Depending upon the size, compute the lo and hi bounds.
17637cat >conftest.$ac_ext <<_ACEOF
17638/* confdefs.h. */
17639_ACEOF
17640cat confdefs.h >>conftest.$ac_ext
17641cat >>conftest.$ac_ext <<_ACEOF
17642/* end confdefs.h. */
17643$ac_includes_default
17644int
17645main ()
17646{
17647static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= 0)];
17648test_array [0] = 0
17649
17650 ;
17651 return 0;
17652}
17653_ACEOF
17654rm -f conftest.$ac_objext
17655if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17656 (eval $ac_compile) 2>conftest.er1
a848cd7e 17657 ac_status=$?
ac1cb8d3
VS
17658 grep -v '^ *+' conftest.er1 >conftest.err
17659 rm -f conftest.er1
17660 cat conftest.err >&5
a848cd7e
SC
17661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17662 (exit $ac_status); } &&
9dd0f6c2 17663 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17665 (eval $ac_try) 2>&5
17666 ac_status=$?
17667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17668 (exit $ac_status); }; } &&
17669 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17671 (eval $ac_try) 2>&5
17672 ac_status=$?
17673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17674 (exit $ac_status); }; }; then
17675 ac_lo=0 ac_mid=0
17676 while :; do
17677 cat >conftest.$ac_ext <<_ACEOF
17678/* confdefs.h. */
17679_ACEOF
17680cat confdefs.h >>conftest.$ac_ext
17681cat >>conftest.$ac_ext <<_ACEOF
17682/* end confdefs.h. */
17683$ac_includes_default
17684int
17685main ()
17686{
17687static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
17688test_array [0] = 0
17689
17690 ;
17691 return 0;
17692}
17693_ACEOF
17694rm -f conftest.$ac_objext
17695if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17696 (eval $ac_compile) 2>conftest.er1
a848cd7e 17697 ac_status=$?
ac1cb8d3
VS
17698 grep -v '^ *+' conftest.er1 >conftest.err
17699 rm -f conftest.er1
17700 cat conftest.err >&5
a848cd7e
SC
17701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17702 (exit $ac_status); } &&
9dd0f6c2 17703 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17705 (eval $ac_try) 2>&5
17706 ac_status=$?
17707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17708 (exit $ac_status); }; } &&
17709 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17711 (eval $ac_try) 2>&5
17712 ac_status=$?
17713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17714 (exit $ac_status); }; }; then
17715 ac_hi=$ac_mid; break
17716else
17717 echo "$as_me: failed program was:" >&5
17718sed 's/^/| /' conftest.$ac_ext >&5
17719
17720ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
17721 if test $ac_lo -le $ac_mid; then
17722 ac_lo= ac_hi=
17723 break
17724 fi
17725 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 17726fi
ac1cb8d3 17727rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17728 done
17729else
17730 echo "$as_me: failed program was:" >&5
17731sed 's/^/| /' conftest.$ac_ext >&5
17732
17733cat >conftest.$ac_ext <<_ACEOF
17734/* confdefs.h. */
17735_ACEOF
17736cat confdefs.h >>conftest.$ac_ext
17737cat >>conftest.$ac_ext <<_ACEOF
17738/* end confdefs.h. */
17739$ac_includes_default
17740int
17741main ()
17742{
17743static int test_array [1 - 2 * !(((long) (sizeof (size_t))) < 0)];
17744test_array [0] = 0
17745
17746 ;
17747 return 0;
17748}
17749_ACEOF
17750rm -f conftest.$ac_objext
17751if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17752 (eval $ac_compile) 2>conftest.er1
a848cd7e 17753 ac_status=$?
ac1cb8d3
VS
17754 grep -v '^ *+' conftest.er1 >conftest.err
17755 rm -f conftest.er1
17756 cat conftest.err >&5
a848cd7e
SC
17757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17758 (exit $ac_status); } &&
9dd0f6c2 17759 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17761 (eval $ac_try) 2>&5
17762 ac_status=$?
17763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17764 (exit $ac_status); }; } &&
17765 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17767 (eval $ac_try) 2>&5
17768 ac_status=$?
17769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17770 (exit $ac_status); }; }; then
17771 ac_hi=-1 ac_mid=-1
17772 while :; do
17773 cat >conftest.$ac_ext <<_ACEOF
17774/* confdefs.h. */
17775_ACEOF
17776cat confdefs.h >>conftest.$ac_ext
17777cat >>conftest.$ac_ext <<_ACEOF
17778/* end confdefs.h. */
17779$ac_includes_default
17780int
17781main ()
17782{
17783static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= $ac_mid)];
17784test_array [0] = 0
17785
17786 ;
17787 return 0;
17788}
17789_ACEOF
17790rm -f conftest.$ac_objext
17791if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17792 (eval $ac_compile) 2>conftest.er1
a848cd7e 17793 ac_status=$?
ac1cb8d3
VS
17794 grep -v '^ *+' conftest.er1 >conftest.err
17795 rm -f conftest.er1
17796 cat conftest.err >&5
a848cd7e
SC
17797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17798 (exit $ac_status); } &&
9dd0f6c2 17799 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17801 (eval $ac_try) 2>&5
17802 ac_status=$?
17803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17804 (exit $ac_status); }; } &&
17805 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
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); }; }; then
17811 ac_lo=$ac_mid; break
17812else
17813 echo "$as_me: failed program was:" >&5
17814sed 's/^/| /' conftest.$ac_ext >&5
17815
17816ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
17817 if test $ac_mid -le $ac_hi; then
17818 ac_lo= ac_hi=
17819 break
17820 fi
17821 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 17822fi
ac1cb8d3 17823rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17824 done
17825else
17826 echo "$as_me: failed program was:" >&5
17827sed 's/^/| /' conftest.$ac_ext >&5
17828
17829ac_lo= ac_hi=
17830fi
ac1cb8d3 17831rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 17832fi
ac1cb8d3 17833rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17834# Binary search between lo and hi bounds.
17835while test "x$ac_lo" != "x$ac_hi"; do
17836 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
17837 cat >conftest.$ac_ext <<_ACEOF
17838/* confdefs.h. */
17839_ACEOF
17840cat confdefs.h >>conftest.$ac_ext
17841cat >>conftest.$ac_ext <<_ACEOF
17842/* end confdefs.h. */
17843$ac_includes_default
17844int
17845main ()
17846{
17847static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
17848test_array [0] = 0
17849
17850 ;
17851 return 0;
17852}
17853_ACEOF
17854rm -f conftest.$ac_objext
17855if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17856 (eval $ac_compile) 2>conftest.er1
a848cd7e 17857 ac_status=$?
ac1cb8d3
VS
17858 grep -v '^ *+' conftest.er1 >conftest.err
17859 rm -f conftest.er1
17860 cat conftest.err >&5
a848cd7e
SC
17861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17862 (exit $ac_status); } &&
9dd0f6c2 17863 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17865 (eval $ac_try) 2>&5
17866 ac_status=$?
17867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17868 (exit $ac_status); }; } &&
17869 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17871 (eval $ac_try) 2>&5
17872 ac_status=$?
17873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17874 (exit $ac_status); }; }; then
17875 ac_hi=$ac_mid
17876else
17877 echo "$as_me: failed program was:" >&5
17878sed 's/^/| /' conftest.$ac_ext >&5
17879
17880ac_lo=`expr '(' $ac_mid ')' + 1`
17881fi
ac1cb8d3 17882rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17883done
17884case $ac_lo in
17885?*) ac_cv_sizeof_size_t=$ac_lo;;
17886'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
17887See \`config.log' for more details." >&5
17888echo "$as_me: error: cannot compute sizeof (size_t), 77
17889See \`config.log' for more details." >&2;}
17890 { (exit 1); exit 1; }; } ;;
17891esac
17892else
17893 if test "$cross_compiling" = yes; then
9dd0f6c2
DE
17894 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
17895echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
17896 { (exit 1); exit 1; }; }
17897else
17898 cat >conftest.$ac_ext <<_ACEOF
17899/* confdefs.h. */
17900_ACEOF
17901cat confdefs.h >>conftest.$ac_ext
17902cat >>conftest.$ac_ext <<_ACEOF
17903/* end confdefs.h. */
17904$ac_includes_default
17905long longval () { return (long) (sizeof (size_t)); }
17906unsigned long ulongval () { return (long) (sizeof (size_t)); }
17907#include <stdio.h>
17908#include <stdlib.h>
17909int
17910main ()
17911{
17912
17913 FILE *f = fopen ("conftest.val", "w");
17914 if (! f)
17915 exit (1);
17916 if (((long) (sizeof (size_t))) < 0)
17917 {
17918 long i = longval ();
17919 if (i != ((long) (sizeof (size_t))))
17920 exit (1);
17921 fprintf (f, "%ld\n", i);
17922 }
17923 else
17924 {
17925 unsigned long i = ulongval ();
17926 if (i != ((long) (sizeof (size_t))))
17927 exit (1);
17928 fprintf (f, "%lu\n", i);
17929 }
17930 exit (ferror (f) || fclose (f) != 0);
17931
17932 ;
17933 return 0;
17934}
17935_ACEOF
17936rm -f conftest$ac_exeext
17937if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17938 (eval $ac_link) 2>&5
17939 ac_status=$?
17940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17941 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17943 (eval $ac_try) 2>&5
17944 ac_status=$?
17945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17946 (exit $ac_status); }; }; then
17947 ac_cv_sizeof_size_t=`cat conftest.val`
17948else
17949 echo "$as_me: program exited with status $ac_status" >&5
17950echo "$as_me: failed program was:" >&5
17951sed 's/^/| /' conftest.$ac_ext >&5
17952
17953( exit $ac_status )
17954{ { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
17955See \`config.log' for more details." >&5
17956echo "$as_me: error: cannot compute sizeof (size_t), 77
17957See \`config.log' for more details." >&2;}
17958 { (exit 1); exit 1; }; }
17959fi
ac1cb8d3 17960rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17961fi
17962fi
17963rm -f conftest.val
17964else
17965 ac_cv_sizeof_size_t=0
17966fi
17967fi
17968echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
17969echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6
17970cat >>confdefs.h <<_ACEOF
17971#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
17972_ACEOF
17973
17974
17975
17976case "${host}" in
17977 arm-*-linux* )
17978 echo "$as_me:$LINENO: checking for long long" >&5
17979echo $ECHO_N "checking for long long... $ECHO_C" >&6
17980if test "${ac_cv_type_long_long+set}" = set; then
17981 echo $ECHO_N "(cached) $ECHO_C" >&6
17982else
17983 cat >conftest.$ac_ext <<_ACEOF
17984/* confdefs.h. */
17985_ACEOF
17986cat confdefs.h >>conftest.$ac_ext
17987cat >>conftest.$ac_ext <<_ACEOF
17988/* end confdefs.h. */
17989$ac_includes_default
17990int
17991main ()
17992{
17993if ((long long *) 0)
17994 return 0;
17995if (sizeof (long long))
17996 return 0;
17997 ;
17998 return 0;
17999}
18000_ACEOF
18001rm -f conftest.$ac_objext
18002if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18003 (eval $ac_compile) 2>conftest.er1
a848cd7e 18004 ac_status=$?
ac1cb8d3
VS
18005 grep -v '^ *+' conftest.er1 >conftest.err
18006 rm -f conftest.er1
18007 cat conftest.err >&5
a848cd7e
SC
18008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18009 (exit $ac_status); } &&
9dd0f6c2 18010 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18012 (eval $ac_try) 2>&5
18013 ac_status=$?
18014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18015 (exit $ac_status); }; } &&
18016 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18018 (eval $ac_try) 2>&5
18019 ac_status=$?
18020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18021 (exit $ac_status); }; }; then
18022 ac_cv_type_long_long=yes
18023else
18024 echo "$as_me: failed program was:" >&5
18025sed 's/^/| /' conftest.$ac_ext >&5
18026
18027ac_cv_type_long_long=no
18028fi
ac1cb8d3 18029rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18030fi
18031echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
18032echo "${ECHO_T}$ac_cv_type_long_long" >&6
18033
18034echo "$as_me:$LINENO: checking size of long long" >&5
18035echo $ECHO_N "checking size of long long... $ECHO_C" >&6
18036if test "${ac_cv_sizeof_long_long+set}" = set; then
18037 echo $ECHO_N "(cached) $ECHO_C" >&6
18038else
18039 if test "$ac_cv_type_long_long" = yes; then
18040 # The cast to unsigned long works around a bug in the HP C Compiler
18041 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18042 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18043 # This bug is HP SR number 8606223364.
18044 if test "$cross_compiling" = yes; then
18045 # Depending upon the size, compute the lo and hi bounds.
18046cat >conftest.$ac_ext <<_ACEOF
18047/* confdefs.h. */
18048_ACEOF
18049cat confdefs.h >>conftest.$ac_ext
18050cat >>conftest.$ac_ext <<_ACEOF
18051/* end confdefs.h. */
18052$ac_includes_default
18053int
18054main ()
18055{
18056static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
18057test_array [0] = 0
18058
18059 ;
18060 return 0;
18061}
18062_ACEOF
18063rm -f conftest.$ac_objext
18064if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18065 (eval $ac_compile) 2>conftest.er1
a848cd7e 18066 ac_status=$?
ac1cb8d3
VS
18067 grep -v '^ *+' conftest.er1 >conftest.err
18068 rm -f conftest.er1
18069 cat conftest.err >&5
a848cd7e
SC
18070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18071 (exit $ac_status); } &&
9dd0f6c2 18072 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18074 (eval $ac_try) 2>&5
18075 ac_status=$?
18076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18077 (exit $ac_status); }; } &&
18078 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18080 (eval $ac_try) 2>&5
18081 ac_status=$?
18082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18083 (exit $ac_status); }; }; then
18084 ac_lo=0 ac_mid=0
18085 while :; do
18086 cat >conftest.$ac_ext <<_ACEOF
18087/* confdefs.h. */
18088_ACEOF
18089cat confdefs.h >>conftest.$ac_ext
18090cat >>conftest.$ac_ext <<_ACEOF
18091/* end confdefs.h. */
18092$ac_includes_default
18093int
18094main ()
18095{
18096static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
18097test_array [0] = 0
18098
18099 ;
18100 return 0;
18101}
18102_ACEOF
18103rm -f conftest.$ac_objext
18104if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18105 (eval $ac_compile) 2>conftest.er1
a848cd7e 18106 ac_status=$?
ac1cb8d3
VS
18107 grep -v '^ *+' conftest.er1 >conftest.err
18108 rm -f conftest.er1
18109 cat conftest.err >&5
a848cd7e
SC
18110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18111 (exit $ac_status); } &&
9dd0f6c2 18112 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18114 (eval $ac_try) 2>&5
18115 ac_status=$?
18116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18117 (exit $ac_status); }; } &&
18118 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18120 (eval $ac_try) 2>&5
18121 ac_status=$?
18122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18123 (exit $ac_status); }; }; then
18124 ac_hi=$ac_mid; break
18125else
18126 echo "$as_me: failed program was:" >&5
18127sed 's/^/| /' conftest.$ac_ext >&5
18128
18129ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
18130 if test $ac_lo -le $ac_mid; then
18131 ac_lo= ac_hi=
18132 break
18133 fi
18134 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 18135fi
ac1cb8d3 18136rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18137 done
18138else
18139 echo "$as_me: failed program was:" >&5
18140sed 's/^/| /' conftest.$ac_ext >&5
18141
18142cat >conftest.$ac_ext <<_ACEOF
18143/* confdefs.h. */
18144_ACEOF
18145cat confdefs.h >>conftest.$ac_ext
18146cat >>conftest.$ac_ext <<_ACEOF
18147/* end confdefs.h. */
18148$ac_includes_default
18149int
18150main ()
18151{
18152static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
18153test_array [0] = 0
18154
18155 ;
18156 return 0;
18157}
18158_ACEOF
18159rm -f conftest.$ac_objext
18160if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18161 (eval $ac_compile) 2>conftest.er1
a848cd7e 18162 ac_status=$?
ac1cb8d3
VS
18163 grep -v '^ *+' conftest.er1 >conftest.err
18164 rm -f conftest.er1
18165 cat conftest.err >&5
a848cd7e
SC
18166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18167 (exit $ac_status); } &&
9dd0f6c2 18168 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18170 (eval $ac_try) 2>&5
18171 ac_status=$?
18172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18173 (exit $ac_status); }; } &&
18174 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18176 (eval $ac_try) 2>&5
18177 ac_status=$?
18178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18179 (exit $ac_status); }; }; then
18180 ac_hi=-1 ac_mid=-1
18181 while :; do
18182 cat >conftest.$ac_ext <<_ACEOF
18183/* confdefs.h. */
18184_ACEOF
18185cat confdefs.h >>conftest.$ac_ext
18186cat >>conftest.$ac_ext <<_ACEOF
18187/* end confdefs.h. */
18188$ac_includes_default
18189int
18190main ()
18191{
18192static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
18193test_array [0] = 0
18194
18195 ;
18196 return 0;
18197}
18198_ACEOF
18199rm -f conftest.$ac_objext
18200if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18201 (eval $ac_compile) 2>conftest.er1
a848cd7e 18202 ac_status=$?
ac1cb8d3
VS
18203 grep -v '^ *+' conftest.er1 >conftest.err
18204 rm -f conftest.er1
18205 cat conftest.err >&5
a848cd7e
SC
18206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18207 (exit $ac_status); } &&
9dd0f6c2 18208 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18210 (eval $ac_try) 2>&5
18211 ac_status=$?
18212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18213 (exit $ac_status); }; } &&
18214 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18216 (eval $ac_try) 2>&5
18217 ac_status=$?
18218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18219 (exit $ac_status); }; }; then
18220 ac_lo=$ac_mid; break
18221else
18222 echo "$as_me: failed program was:" >&5
18223sed 's/^/| /' conftest.$ac_ext >&5
18224
18225ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
18226 if test $ac_mid -le $ac_hi; then
18227 ac_lo= ac_hi=
18228 break
18229 fi
18230 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 18231fi
ac1cb8d3 18232rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18233 done
18234else
18235 echo "$as_me: failed program was:" >&5
18236sed 's/^/| /' conftest.$ac_ext >&5
18237
18238ac_lo= ac_hi=
18239fi
ac1cb8d3 18240rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 18241fi
ac1cb8d3 18242rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18243# Binary search between lo and hi bounds.
18244while test "x$ac_lo" != "x$ac_hi"; do
18245 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18246 cat >conftest.$ac_ext <<_ACEOF
18247/* confdefs.h. */
18248_ACEOF
18249cat confdefs.h >>conftest.$ac_ext
18250cat >>conftest.$ac_ext <<_ACEOF
18251/* end confdefs.h. */
18252$ac_includes_default
18253int
18254main ()
18255{
18256static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
18257test_array [0] = 0
18258
18259 ;
18260 return 0;
18261}
18262_ACEOF
18263rm -f conftest.$ac_objext
18264if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18265 (eval $ac_compile) 2>conftest.er1
a848cd7e 18266 ac_status=$?
ac1cb8d3
VS
18267 grep -v '^ *+' conftest.er1 >conftest.err
18268 rm -f conftest.er1
18269 cat conftest.err >&5
a848cd7e
SC
18270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18271 (exit $ac_status); } &&
9dd0f6c2 18272 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18274 (eval $ac_try) 2>&5
18275 ac_status=$?
18276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18277 (exit $ac_status); }; } &&
18278 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18280 (eval $ac_try) 2>&5
18281 ac_status=$?
18282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18283 (exit $ac_status); }; }; then
18284 ac_hi=$ac_mid
18285else
18286 echo "$as_me: failed program was:" >&5
18287sed 's/^/| /' conftest.$ac_ext >&5
18288
18289ac_lo=`expr '(' $ac_mid ')' + 1`
18290fi
ac1cb8d3 18291rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18292done
18293case $ac_lo in
18294?*) ac_cv_sizeof_long_long=$ac_lo;;
18295'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
18296See \`config.log' for more details." >&5
18297echo "$as_me: error: cannot compute sizeof (long long), 77
18298See \`config.log' for more details." >&2;}
18299 { (exit 1); exit 1; }; } ;;
18300esac
18301else
18302 if test "$cross_compiling" = yes; then
9dd0f6c2
DE
18303 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
18304echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
18305 { (exit 1); exit 1; }; }
18306else
18307 cat >conftest.$ac_ext <<_ACEOF
18308/* confdefs.h. */
18309_ACEOF
18310cat confdefs.h >>conftest.$ac_ext
18311cat >>conftest.$ac_ext <<_ACEOF
18312/* end confdefs.h. */
18313$ac_includes_default
18314long longval () { return (long) (sizeof (long long)); }
18315unsigned long ulongval () { return (long) (sizeof (long long)); }
18316#include <stdio.h>
18317#include <stdlib.h>
18318int
18319main ()
18320{
18321
18322 FILE *f = fopen ("conftest.val", "w");
18323 if (! f)
18324 exit (1);
18325 if (((long) (sizeof (long long))) < 0)
18326 {
18327 long i = longval ();
18328 if (i != ((long) (sizeof (long long))))
18329 exit (1);
18330 fprintf (f, "%ld\n", i);
18331 }
18332 else
18333 {
18334 unsigned long i = ulongval ();
18335 if (i != ((long) (sizeof (long long))))
18336 exit (1);
18337 fprintf (f, "%lu\n", i);
18338 }
18339 exit (ferror (f) || fclose (f) != 0);
18340
18341 ;
18342 return 0;
18343}
18344_ACEOF
18345rm -f conftest$ac_exeext
18346if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18347 (eval $ac_link) 2>&5
18348 ac_status=$?
18349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18350 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18352 (eval $ac_try) 2>&5
18353 ac_status=$?
18354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18355 (exit $ac_status); }; }; then
18356 ac_cv_sizeof_long_long=`cat conftest.val`
18357else
18358 echo "$as_me: program exited with status $ac_status" >&5
18359echo "$as_me: failed program was:" >&5
18360sed 's/^/| /' conftest.$ac_ext >&5
18361
18362( exit $ac_status )
18363{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
18364See \`config.log' for more details." >&5
18365echo "$as_me: error: cannot compute sizeof (long long), 77
18366See \`config.log' for more details." >&2;}
18367 { (exit 1); exit 1; }; }
18368fi
ac1cb8d3 18369rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18370fi
18371fi
18372rm -f conftest.val
18373else
18374 ac_cv_sizeof_long_long=0
18375fi
18376fi
18377echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
18378echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
18379cat >>confdefs.h <<_ACEOF
18380#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
18381_ACEOF
18382
18383
18384 ;;
18385 *-hp-hpux* )
18386 echo "$as_me:$LINENO: checking for long long" >&5
18387echo $ECHO_N "checking for long long... $ECHO_C" >&6
18388if test "${ac_cv_type_long_long+set}" = set; then
18389 echo $ECHO_N "(cached) $ECHO_C" >&6
18390else
18391 cat >conftest.$ac_ext <<_ACEOF
18392/* confdefs.h. */
18393_ACEOF
18394cat confdefs.h >>conftest.$ac_ext
18395cat >>conftest.$ac_ext <<_ACEOF
18396/* end confdefs.h. */
18397$ac_includes_default
18398int
18399main ()
18400{
18401if ((long long *) 0)
18402 return 0;
18403if (sizeof (long long))
18404 return 0;
18405 ;
18406 return 0;
18407}
18408_ACEOF
18409rm -f conftest.$ac_objext
18410if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18411 (eval $ac_compile) 2>conftest.er1
a848cd7e 18412 ac_status=$?
ac1cb8d3
VS
18413 grep -v '^ *+' conftest.er1 >conftest.err
18414 rm -f conftest.er1
18415 cat conftest.err >&5
a848cd7e
SC
18416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18417 (exit $ac_status); } &&
9dd0f6c2 18418 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18420 (eval $ac_try) 2>&5
18421 ac_status=$?
18422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18423 (exit $ac_status); }; } &&
18424 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18426 (eval $ac_try) 2>&5
18427 ac_status=$?
18428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18429 (exit $ac_status); }; }; then
18430 ac_cv_type_long_long=yes
18431else
18432 echo "$as_me: failed program was:" >&5
18433sed 's/^/| /' conftest.$ac_ext >&5
18434
18435ac_cv_type_long_long=no
18436fi
ac1cb8d3 18437rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18438fi
18439echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
18440echo "${ECHO_T}$ac_cv_type_long_long" >&6
18441
18442echo "$as_me:$LINENO: checking size of long long" >&5
18443echo $ECHO_N "checking size of long long... $ECHO_C" >&6
18444if test "${ac_cv_sizeof_long_long+set}" = set; then
18445 echo $ECHO_N "(cached) $ECHO_C" >&6
18446else
18447 if test "$ac_cv_type_long_long" = yes; then
18448 # The cast to unsigned long works around a bug in the HP C Compiler
18449 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18450 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18451 # This bug is HP SR number 8606223364.
18452 if test "$cross_compiling" = yes; then
18453 # Depending upon the size, compute the lo and hi bounds.
18454cat >conftest.$ac_ext <<_ACEOF
18455/* confdefs.h. */
18456_ACEOF
18457cat confdefs.h >>conftest.$ac_ext
18458cat >>conftest.$ac_ext <<_ACEOF
18459/* end confdefs.h. */
18460$ac_includes_default
18461int
18462main ()
18463{
18464static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
18465test_array [0] = 0
18466
18467 ;
18468 return 0;
18469}
18470_ACEOF
18471rm -f conftest.$ac_objext
18472if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18473 (eval $ac_compile) 2>conftest.er1
a848cd7e 18474 ac_status=$?
ac1cb8d3
VS
18475 grep -v '^ *+' conftest.er1 >conftest.err
18476 rm -f conftest.er1
18477 cat conftest.err >&5
a848cd7e
SC
18478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18479 (exit $ac_status); } &&
9dd0f6c2 18480 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18482 (eval $ac_try) 2>&5
18483 ac_status=$?
18484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18485 (exit $ac_status); }; } &&
18486 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18488 (eval $ac_try) 2>&5
18489 ac_status=$?
18490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18491 (exit $ac_status); }; }; then
18492 ac_lo=0 ac_mid=0
18493 while :; do
18494 cat >conftest.$ac_ext <<_ACEOF
18495/* confdefs.h. */
18496_ACEOF
18497cat confdefs.h >>conftest.$ac_ext
18498cat >>conftest.$ac_ext <<_ACEOF
18499/* end confdefs.h. */
18500$ac_includes_default
18501int
18502main ()
18503{
18504static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
18505test_array [0] = 0
18506
18507 ;
18508 return 0;
18509}
18510_ACEOF
18511rm -f conftest.$ac_objext
18512if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18513 (eval $ac_compile) 2>conftest.er1
a848cd7e 18514 ac_status=$?
ac1cb8d3
VS
18515 grep -v '^ *+' conftest.er1 >conftest.err
18516 rm -f conftest.er1
18517 cat conftest.err >&5
a848cd7e
SC
18518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18519 (exit $ac_status); } &&
9dd0f6c2 18520 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18522 (eval $ac_try) 2>&5
18523 ac_status=$?
18524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18525 (exit $ac_status); }; } &&
18526 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18528 (eval $ac_try) 2>&5
18529 ac_status=$?
18530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18531 (exit $ac_status); }; }; then
18532 ac_hi=$ac_mid; break
18533else
18534 echo "$as_me: failed program was:" >&5
18535sed 's/^/| /' conftest.$ac_ext >&5
18536
18537ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
18538 if test $ac_lo -le $ac_mid; then
18539 ac_lo= ac_hi=
18540 break
18541 fi
18542 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 18543fi
ac1cb8d3 18544rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18545 done
18546else
18547 echo "$as_me: failed program was:" >&5
18548sed 's/^/| /' conftest.$ac_ext >&5
18549
18550cat >conftest.$ac_ext <<_ACEOF
18551/* confdefs.h. */
18552_ACEOF
18553cat confdefs.h >>conftest.$ac_ext
18554cat >>conftest.$ac_ext <<_ACEOF
18555/* end confdefs.h. */
18556$ac_includes_default
18557int
18558main ()
18559{
18560static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
18561test_array [0] = 0
18562
18563 ;
18564 return 0;
18565}
18566_ACEOF
18567rm -f conftest.$ac_objext
18568if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18569 (eval $ac_compile) 2>conftest.er1
a848cd7e 18570 ac_status=$?
ac1cb8d3
VS
18571 grep -v '^ *+' conftest.er1 >conftest.err
18572 rm -f conftest.er1
18573 cat conftest.err >&5
a848cd7e
SC
18574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18575 (exit $ac_status); } &&
9dd0f6c2 18576 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18578 (eval $ac_try) 2>&5
18579 ac_status=$?
18580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18581 (exit $ac_status); }; } &&
18582 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18584 (eval $ac_try) 2>&5
18585 ac_status=$?
18586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18587 (exit $ac_status); }; }; then
18588 ac_hi=-1 ac_mid=-1
18589 while :; do
18590 cat >conftest.$ac_ext <<_ACEOF
18591/* confdefs.h. */
18592_ACEOF
18593cat confdefs.h >>conftest.$ac_ext
18594cat >>conftest.$ac_ext <<_ACEOF
18595/* end confdefs.h. */
18596$ac_includes_default
18597int
18598main ()
18599{
18600static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
18601test_array [0] = 0
18602
18603 ;
18604 return 0;
18605}
18606_ACEOF
18607rm -f conftest.$ac_objext
18608if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18609 (eval $ac_compile) 2>conftest.er1
a848cd7e 18610 ac_status=$?
ac1cb8d3
VS
18611 grep -v '^ *+' conftest.er1 >conftest.err
18612 rm -f conftest.er1
18613 cat conftest.err >&5
a848cd7e
SC
18614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18615 (exit $ac_status); } &&
9dd0f6c2 18616 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18618 (eval $ac_try) 2>&5
18619 ac_status=$?
18620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18621 (exit $ac_status); }; } &&
18622 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18624 (eval $ac_try) 2>&5
18625 ac_status=$?
18626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18627 (exit $ac_status); }; }; then
18628 ac_lo=$ac_mid; break
18629else
18630 echo "$as_me: failed program was:" >&5
18631sed 's/^/| /' conftest.$ac_ext >&5
18632
18633ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
18634 if test $ac_mid -le $ac_hi; then
18635 ac_lo= ac_hi=
18636 break
18637 fi
18638 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 18639fi
ac1cb8d3 18640rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18641 done
18642else
18643 echo "$as_me: failed program was:" >&5
18644sed 's/^/| /' conftest.$ac_ext >&5
18645
18646ac_lo= ac_hi=
18647fi
ac1cb8d3 18648rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 18649fi
ac1cb8d3 18650rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18651# Binary search between lo and hi bounds.
18652while test "x$ac_lo" != "x$ac_hi"; do
18653 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18654 cat >conftest.$ac_ext <<_ACEOF
18655/* confdefs.h. */
18656_ACEOF
18657cat confdefs.h >>conftest.$ac_ext
18658cat >>conftest.$ac_ext <<_ACEOF
18659/* end confdefs.h. */
18660$ac_includes_default
18661int
18662main ()
18663{
18664static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
18665test_array [0] = 0
18666
18667 ;
18668 return 0;
18669}
18670_ACEOF
18671rm -f conftest.$ac_objext
18672if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18673 (eval $ac_compile) 2>conftest.er1
a848cd7e 18674 ac_status=$?
ac1cb8d3
VS
18675 grep -v '^ *+' conftest.er1 >conftest.err
18676 rm -f conftest.er1
18677 cat conftest.err >&5
a848cd7e
SC
18678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18679 (exit $ac_status); } &&
9dd0f6c2 18680 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18682 (eval $ac_try) 2>&5
18683 ac_status=$?
18684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18685 (exit $ac_status); }; } &&
18686 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18688 (eval $ac_try) 2>&5
18689 ac_status=$?
18690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18691 (exit $ac_status); }; }; then
18692 ac_hi=$ac_mid
18693else
18694 echo "$as_me: failed program was:" >&5
18695sed 's/^/| /' conftest.$ac_ext >&5
18696
18697ac_lo=`expr '(' $ac_mid ')' + 1`
18698fi
ac1cb8d3 18699rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18700done
18701case $ac_lo in
18702?*) ac_cv_sizeof_long_long=$ac_lo;;
18703'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
18704See \`config.log' for more details." >&5
18705echo "$as_me: error: cannot compute sizeof (long long), 77
18706See \`config.log' for more details." >&2;}
18707 { (exit 1); exit 1; }; } ;;
18708esac
18709else
18710 if test "$cross_compiling" = yes; then
9dd0f6c2
DE
18711 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
18712echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
18713 { (exit 1); exit 1; }; }
18714else
18715 cat >conftest.$ac_ext <<_ACEOF
18716/* confdefs.h. */
18717_ACEOF
18718cat confdefs.h >>conftest.$ac_ext
18719cat >>conftest.$ac_ext <<_ACEOF
18720/* end confdefs.h. */
18721$ac_includes_default
18722long longval () { return (long) (sizeof (long long)); }
18723unsigned long ulongval () { return (long) (sizeof (long long)); }
18724#include <stdio.h>
18725#include <stdlib.h>
18726int
18727main ()
18728{
18729
18730 FILE *f = fopen ("conftest.val", "w");
18731 if (! f)
18732 exit (1);
18733 if (((long) (sizeof (long long))) < 0)
18734 {
18735 long i = longval ();
18736 if (i != ((long) (sizeof (long long))))
18737 exit (1);
18738 fprintf (f, "%ld\n", i);
18739 }
18740 else
18741 {
18742 unsigned long i = ulongval ();
18743 if (i != ((long) (sizeof (long long))))
18744 exit (1);
18745 fprintf (f, "%lu\n", i);
18746 }
18747 exit (ferror (f) || fclose (f) != 0);
18748
18749 ;
18750 return 0;
18751}
18752_ACEOF
18753rm -f conftest$ac_exeext
18754if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18755 (eval $ac_link) 2>&5
18756 ac_status=$?
18757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18758 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18760 (eval $ac_try) 2>&5
18761 ac_status=$?
18762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18763 (exit $ac_status); }; }; then
18764 ac_cv_sizeof_long_long=`cat conftest.val`
18765else
18766 echo "$as_me: program exited with status $ac_status" >&5
18767echo "$as_me: failed program was:" >&5
18768sed 's/^/| /' conftest.$ac_ext >&5
18769
18770( exit $ac_status )
18771{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
18772See \`config.log' for more details." >&5
18773echo "$as_me: error: cannot compute sizeof (long long), 77
18774See \`config.log' for more details." >&2;}
18775 { (exit 1); exit 1; }; }
18776fi
ac1cb8d3 18777rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18778fi
18779fi
18780rm -f conftest.val
18781else
18782 ac_cv_sizeof_long_long=0
18783fi
18784fi
18785echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
18786echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
18787cat >>confdefs.h <<_ACEOF
18788#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
18789_ACEOF
18790
18791
18792 if test "$ac_cv_sizeof_long_long" != "0"; then
18793 CPPFLAGS="$CPPFLAGS -D_INCLUDE_LONGLONG"
18794 fi
18795 ;;
18796 * )
18797 echo "$as_me:$LINENO: checking for long long" >&5
18798echo $ECHO_N "checking for long long... $ECHO_C" >&6
18799if test "${ac_cv_type_long_long+set}" = set; then
18800 echo $ECHO_N "(cached) $ECHO_C" >&6
18801else
18802 cat >conftest.$ac_ext <<_ACEOF
18803/* confdefs.h. */
18804_ACEOF
18805cat confdefs.h >>conftest.$ac_ext
18806cat >>conftest.$ac_ext <<_ACEOF
18807/* end confdefs.h. */
18808$ac_includes_default
18809int
18810main ()
18811{
18812if ((long long *) 0)
18813 return 0;
18814if (sizeof (long long))
18815 return 0;
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); } &&
9dd0f6c2 18829 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18831 (eval $ac_try) 2>&5
18832 ac_status=$?
18833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18834 (exit $ac_status); }; } &&
18835 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18837 (eval $ac_try) 2>&5
18838 ac_status=$?
18839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18840 (exit $ac_status); }; }; then
18841 ac_cv_type_long_long=yes
18842else
18843 echo "$as_me: failed program was:" >&5
18844sed 's/^/| /' conftest.$ac_ext >&5
18845
18846ac_cv_type_long_long=no
18847fi
ac1cb8d3 18848rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18849fi
18850echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
18851echo "${ECHO_T}$ac_cv_type_long_long" >&6
18852
18853echo "$as_me:$LINENO: checking size of long long" >&5
18854echo $ECHO_N "checking size of long long... $ECHO_C" >&6
18855if test "${ac_cv_sizeof_long_long+set}" = set; then
18856 echo $ECHO_N "(cached) $ECHO_C" >&6
18857else
18858 if test "$ac_cv_type_long_long" = yes; then
18859 # The cast to unsigned long works around a bug in the HP C Compiler
18860 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18861 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18862 # This bug is HP SR number 8606223364.
18863 if test "$cross_compiling" = yes; then
18864 # Depending upon the size, compute the lo and hi bounds.
18865cat >conftest.$ac_ext <<_ACEOF
18866/* confdefs.h. */
18867_ACEOF
18868cat confdefs.h >>conftest.$ac_ext
18869cat >>conftest.$ac_ext <<_ACEOF
18870/* end confdefs.h. */
18871$ac_includes_default
18872int
18873main ()
18874{
18875static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
18876test_array [0] = 0
18877
18878 ;
18879 return 0;
18880}
18881_ACEOF
18882rm -f conftest.$ac_objext
18883if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18884 (eval $ac_compile) 2>conftest.er1
a848cd7e 18885 ac_status=$?
ac1cb8d3
VS
18886 grep -v '^ *+' conftest.er1 >conftest.err
18887 rm -f conftest.er1
18888 cat conftest.err >&5
a848cd7e
SC
18889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18890 (exit $ac_status); } &&
9dd0f6c2 18891 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18893 (eval $ac_try) 2>&5
18894 ac_status=$?
18895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18896 (exit $ac_status); }; } &&
18897 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18899 (eval $ac_try) 2>&5
18900 ac_status=$?
18901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18902 (exit $ac_status); }; }; then
18903 ac_lo=0 ac_mid=0
18904 while :; do
18905 cat >conftest.$ac_ext <<_ACEOF
18906/* confdefs.h. */
18907_ACEOF
18908cat confdefs.h >>conftest.$ac_ext
18909cat >>conftest.$ac_ext <<_ACEOF
18910/* end confdefs.h. */
18911$ac_includes_default
18912int
18913main ()
18914{
18915static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
18916test_array [0] = 0
18917
18918 ;
18919 return 0;
18920}
18921_ACEOF
18922rm -f conftest.$ac_objext
18923if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18924 (eval $ac_compile) 2>conftest.er1
a848cd7e 18925 ac_status=$?
ac1cb8d3
VS
18926 grep -v '^ *+' conftest.er1 >conftest.err
18927 rm -f conftest.er1
18928 cat conftest.err >&5
a848cd7e
SC
18929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18930 (exit $ac_status); } &&
9dd0f6c2 18931 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18933 (eval $ac_try) 2>&5
18934 ac_status=$?
18935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18936 (exit $ac_status); }; } &&
18937 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18939 (eval $ac_try) 2>&5
18940 ac_status=$?
18941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18942 (exit $ac_status); }; }; then
18943 ac_hi=$ac_mid; break
18944else
18945 echo "$as_me: failed program was:" >&5
18946sed 's/^/| /' conftest.$ac_ext >&5
18947
18948ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
18949 if test $ac_lo -le $ac_mid; then
18950 ac_lo= ac_hi=
18951 break
18952 fi
18953 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 18954fi
ac1cb8d3 18955rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18956 done
18957else
18958 echo "$as_me: failed program was:" >&5
18959sed 's/^/| /' conftest.$ac_ext >&5
18960
18961cat >conftest.$ac_ext <<_ACEOF
18962/* confdefs.h. */
18963_ACEOF
18964cat confdefs.h >>conftest.$ac_ext
18965cat >>conftest.$ac_ext <<_ACEOF
18966/* end confdefs.h. */
18967$ac_includes_default
18968int
18969main ()
18970{
18971static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
18972test_array [0] = 0
18973
18974 ;
18975 return 0;
18976}
18977_ACEOF
18978rm -f conftest.$ac_objext
18979if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18980 (eval $ac_compile) 2>conftest.er1
a848cd7e 18981 ac_status=$?
ac1cb8d3
VS
18982 grep -v '^ *+' conftest.er1 >conftest.err
18983 rm -f conftest.er1
18984 cat conftest.err >&5
a848cd7e
SC
18985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18986 (exit $ac_status); } &&
9dd0f6c2 18987 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18989 (eval $ac_try) 2>&5
18990 ac_status=$?
18991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18992 (exit $ac_status); }; } &&
18993 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18995 (eval $ac_try) 2>&5
18996 ac_status=$?
18997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18998 (exit $ac_status); }; }; then
18999 ac_hi=-1 ac_mid=-1
19000 while :; do
19001 cat >conftest.$ac_ext <<_ACEOF
19002/* confdefs.h. */
19003_ACEOF
19004cat confdefs.h >>conftest.$ac_ext
19005cat >>conftest.$ac_ext <<_ACEOF
19006/* end confdefs.h. */
19007$ac_includes_default
19008int
19009main ()
19010{
19011static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
19012test_array [0] = 0
19013
19014 ;
19015 return 0;
19016}
19017_ACEOF
19018rm -f conftest.$ac_objext
19019if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19020 (eval $ac_compile) 2>conftest.er1
a848cd7e 19021 ac_status=$?
ac1cb8d3
VS
19022 grep -v '^ *+' conftest.er1 >conftest.err
19023 rm -f conftest.er1
19024 cat conftest.err >&5
a848cd7e
SC
19025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19026 (exit $ac_status); } &&
9dd0f6c2 19027 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19029 (eval $ac_try) 2>&5
19030 ac_status=$?
19031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19032 (exit $ac_status); }; } &&
19033 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19035 (eval $ac_try) 2>&5
19036 ac_status=$?
19037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19038 (exit $ac_status); }; }; then
19039 ac_lo=$ac_mid; break
19040else
19041 echo "$as_me: failed program was:" >&5
19042sed 's/^/| /' conftest.$ac_ext >&5
19043
19044ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
19045 if test $ac_mid -le $ac_hi; then
19046 ac_lo= ac_hi=
19047 break
19048 fi
19049 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 19050fi
ac1cb8d3 19051rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19052 done
19053else
19054 echo "$as_me: failed program was:" >&5
19055sed 's/^/| /' conftest.$ac_ext >&5
19056
19057ac_lo= ac_hi=
19058fi
ac1cb8d3 19059rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 19060fi
ac1cb8d3 19061rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19062# Binary search between lo and hi bounds.
19063while test "x$ac_lo" != "x$ac_hi"; do
19064 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
19065 cat >conftest.$ac_ext <<_ACEOF
19066/* confdefs.h. */
19067_ACEOF
19068cat confdefs.h >>conftest.$ac_ext
19069cat >>conftest.$ac_ext <<_ACEOF
19070/* end confdefs.h. */
19071$ac_includes_default
19072int
19073main ()
19074{
19075static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
19076test_array [0] = 0
19077
19078 ;
19079 return 0;
19080}
19081_ACEOF
19082rm -f conftest.$ac_objext
19083if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19084 (eval $ac_compile) 2>conftest.er1
a848cd7e 19085 ac_status=$?
ac1cb8d3
VS
19086 grep -v '^ *+' conftest.er1 >conftest.err
19087 rm -f conftest.er1
19088 cat conftest.err >&5
a848cd7e
SC
19089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19090 (exit $ac_status); } &&
9dd0f6c2 19091 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19093 (eval $ac_try) 2>&5
19094 ac_status=$?
19095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19096 (exit $ac_status); }; } &&
19097 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19099 (eval $ac_try) 2>&5
19100 ac_status=$?
19101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19102 (exit $ac_status); }; }; then
19103 ac_hi=$ac_mid
19104else
19105 echo "$as_me: failed program was:" >&5
19106sed 's/^/| /' conftest.$ac_ext >&5
19107
19108ac_lo=`expr '(' $ac_mid ')' + 1`
19109fi
ac1cb8d3 19110rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19111done
19112case $ac_lo in
19113?*) ac_cv_sizeof_long_long=$ac_lo;;
19114'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
19115See \`config.log' for more details." >&5
19116echo "$as_me: error: cannot compute sizeof (long long), 77
19117See \`config.log' for more details." >&2;}
19118 { (exit 1); exit 1; }; } ;;
19119esac
19120else
19121 if test "$cross_compiling" = yes; then
9dd0f6c2
DE
19122 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
19123echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
19124 { (exit 1); exit 1; }; }
19125else
19126 cat >conftest.$ac_ext <<_ACEOF
19127/* confdefs.h. */
19128_ACEOF
19129cat confdefs.h >>conftest.$ac_ext
19130cat >>conftest.$ac_ext <<_ACEOF
19131/* end confdefs.h. */
19132$ac_includes_default
19133long longval () { return (long) (sizeof (long long)); }
19134unsigned long ulongval () { return (long) (sizeof (long long)); }
19135#include <stdio.h>
19136#include <stdlib.h>
19137int
19138main ()
19139{
19140
19141 FILE *f = fopen ("conftest.val", "w");
19142 if (! f)
19143 exit (1);
19144 if (((long) (sizeof (long long))) < 0)
19145 {
19146 long i = longval ();
19147 if (i != ((long) (sizeof (long long))))
19148 exit (1);
19149 fprintf (f, "%ld\n", i);
19150 }
19151 else
19152 {
19153 unsigned long i = ulongval ();
19154 if (i != ((long) (sizeof (long long))))
19155 exit (1);
19156 fprintf (f, "%lu\n", i);
19157 }
19158 exit (ferror (f) || fclose (f) != 0);
19159
19160 ;
19161 return 0;
19162}
19163_ACEOF
19164rm -f conftest$ac_exeext
19165if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19166 (eval $ac_link) 2>&5
19167 ac_status=$?
19168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19169 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19171 (eval $ac_try) 2>&5
19172 ac_status=$?
19173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19174 (exit $ac_status); }; }; then
19175 ac_cv_sizeof_long_long=`cat conftest.val`
19176else
19177 echo "$as_me: program exited with status $ac_status" >&5
19178echo "$as_me: failed program was:" >&5
19179sed 's/^/| /' conftest.$ac_ext >&5
19180
19181( exit $ac_status )
19182{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
19183See \`config.log' for more details." >&5
19184echo "$as_me: error: cannot compute sizeof (long long), 77
19185See \`config.log' for more details." >&2;}
19186 { (exit 1); exit 1; }; }
19187fi
ac1cb8d3 19188rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19189fi
19190fi
19191rm -f conftest.val
19192else
19193 ac_cv_sizeof_long_long=0
19194fi
19195fi
19196echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
19197echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
19198cat >>confdefs.h <<_ACEOF
19199#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
19200_ACEOF
19201
19202
19203esac
19204
238ecede
MW
19205echo "$as_me:$LINENO: checking for wchar_t" >&5
19206echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6
19207if test "${ac_cv_type_wchar_t+set}" = set; then
19208 echo $ECHO_N "(cached) $ECHO_C" >&6
19209else
19210 cat >conftest.$ac_ext <<_ACEOF
19211/* confdefs.h. */
19212_ACEOF
19213cat confdefs.h >>conftest.$ac_ext
19214cat >>conftest.$ac_ext <<_ACEOF
19215/* end confdefs.h. */
19216
19217 /* DJGPP only has fake wchar_t: */
19218 #ifdef __DJGPP__
19219 # error "fake wchar_t"
19220 #endif
19221 #ifdef HAVE_WCHAR_H
19222 # ifdef __CYGWIN__
19223 # include <stddef.h>
19224 # endif
19225 # include <wchar.h>
19226 #endif
19227 #ifdef HAVE_STDLIB_H
19228 # include <stdlib.h>
19229 #endif
19230 #include <stdio.h>
19231
19232
19233
19234int
19235main ()
19236{
19237if ((wchar_t *) 0)
19238 return 0;
19239if (sizeof (wchar_t))
19240 return 0;
19241 ;
19242 return 0;
19243}
19244_ACEOF
19245rm -f conftest.$ac_objext
19246if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19247 (eval $ac_compile) 2>conftest.er1
19248 ac_status=$?
19249 grep -v '^ *+' conftest.er1 >conftest.err
19250 rm -f conftest.er1
19251 cat conftest.err >&5
19252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19253 (exit $ac_status); } &&
9dd0f6c2 19254 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
238ecede
MW
19255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19256 (eval $ac_try) 2>&5
19257 ac_status=$?
19258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19259 (exit $ac_status); }; } &&
19260 { ac_try='test -s conftest.$ac_objext'
19261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19262 (eval $ac_try) 2>&5
19263 ac_status=$?
19264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19265 (exit $ac_status); }; }; then
19266 ac_cv_type_wchar_t=yes
19267else
19268 echo "$as_me: failed program was:" >&5
19269sed 's/^/| /' conftest.$ac_ext >&5
19270
19271ac_cv_type_wchar_t=no
19272fi
19273rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19274fi
19275echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5
19276echo "${ECHO_T}$ac_cv_type_wchar_t" >&6
19277
a848cd7e
SC
19278echo "$as_me:$LINENO: checking size of wchar_t" >&5
19279echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6
238ecede 19280if test "${ac_cv_sizeof_wchar_t+set}" = set; then
a848cd7e
SC
19281 echo $ECHO_N "(cached) $ECHO_C" >&6
19282else
238ecede
MW
19283 if test "$ac_cv_type_wchar_t" = yes; then
19284 # The cast to unsigned long works around a bug in the HP C Compiler
19285 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19286 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19287 # This bug is HP SR number 8606223364.
19288 if test "$cross_compiling" = yes; then
19289 # Depending upon the size, compute the lo and hi bounds.
19290cat >conftest.$ac_ext <<_ACEOF
19291/* confdefs.h. */
19292_ACEOF
19293cat confdefs.h >>conftest.$ac_ext
19294cat >>conftest.$ac_ext <<_ACEOF
19295/* end confdefs.h. */
19296
19297 /* DJGPP only has fake wchar_t: */
19298 #ifdef __DJGPP__
19299 # error "fake wchar_t"
19300 #endif
19301 #ifdef HAVE_WCHAR_H
19302 # ifdef __CYGWIN__
19303 # include <stddef.h>
19304 # endif
19305 # include <wchar.h>
19306 #endif
19307 #ifdef HAVE_STDLIB_H
19308 # include <stdlib.h>
19309 #endif
19310 #include <stdio.h>
19311
19312
19313
19314int
19315main ()
19316{
19317static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= 0)];
19318test_array [0] = 0
19319
19320 ;
19321 return 0;
19322}
19323_ACEOF
19324rm -f conftest.$ac_objext
19325if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19326 (eval $ac_compile) 2>conftest.er1
19327 ac_status=$?
19328 grep -v '^ *+' conftest.er1 >conftest.err
19329 rm -f conftest.er1
19330 cat conftest.err >&5
19331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19332 (exit $ac_status); } &&
9dd0f6c2 19333 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
238ecede
MW
19334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19335 (eval $ac_try) 2>&5
19336 ac_status=$?
19337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19338 (exit $ac_status); }; } &&
19339 { ac_try='test -s conftest.$ac_objext'
19340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19341 (eval $ac_try) 2>&5
19342 ac_status=$?
19343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19344 (exit $ac_status); }; }; then
19345 ac_lo=0 ac_mid=0
19346 while :; do
19347 cat >conftest.$ac_ext <<_ACEOF
19348/* confdefs.h. */
19349_ACEOF
19350cat confdefs.h >>conftest.$ac_ext
19351cat >>conftest.$ac_ext <<_ACEOF
19352/* end confdefs.h. */
19353
19354 /* DJGPP only has fake wchar_t: */
19355 #ifdef __DJGPP__
19356 # error "fake wchar_t"
19357 #endif
19358 #ifdef HAVE_WCHAR_H
19359 # ifdef __CYGWIN__
19360 # include <stddef.h>
19361 # endif
19362 # include <wchar.h>
19363 #endif
19364 #ifdef HAVE_STDLIB_H
19365 # include <stdlib.h>
19366 #endif
19367 #include <stdio.h>
19368
19369
19370
19371int
19372main ()
19373{
19374static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)];
19375test_array [0] = 0
19376
19377 ;
19378 return 0;
19379}
19380_ACEOF
19381rm -f conftest.$ac_objext
19382if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19383 (eval $ac_compile) 2>conftest.er1
19384 ac_status=$?
19385 grep -v '^ *+' conftest.er1 >conftest.err
19386 rm -f conftest.er1
19387 cat conftest.err >&5
19388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19389 (exit $ac_status); } &&
9dd0f6c2 19390 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
238ecede
MW
19391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19392 (eval $ac_try) 2>&5
19393 ac_status=$?
19394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19395 (exit $ac_status); }; } &&
19396 { ac_try='test -s conftest.$ac_objext'
19397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19398 (eval $ac_try) 2>&5
19399 ac_status=$?
19400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19401 (exit $ac_status); }; }; then
19402 ac_hi=$ac_mid; break
19403else
19404 echo "$as_me: failed program was:" >&5
19405sed 's/^/| /' conftest.$ac_ext >&5
19406
19407ac_lo=`expr $ac_mid + 1`
19408 if test $ac_lo -le $ac_mid; then
19409 ac_lo= ac_hi=
19410 break
19411 fi
19412 ac_mid=`expr 2 '*' $ac_mid + 1`
19413fi
19414rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19415 done
19416else
19417 echo "$as_me: failed program was:" >&5
19418sed 's/^/| /' conftest.$ac_ext >&5
19419
19420cat >conftest.$ac_ext <<_ACEOF
19421/* confdefs.h. */
19422_ACEOF
19423cat confdefs.h >>conftest.$ac_ext
19424cat >>conftest.$ac_ext <<_ACEOF
19425/* end confdefs.h. */
19426
19427 /* DJGPP only has fake wchar_t: */
19428 #ifdef __DJGPP__
19429 # error "fake wchar_t"
19430 #endif
19431 #ifdef HAVE_WCHAR_H
19432 # ifdef __CYGWIN__
19433 # include <stddef.h>
19434 # endif
19435 # include <wchar.h>
19436 #endif
19437 #ifdef HAVE_STDLIB_H
19438 # include <stdlib.h>
19439 #endif
19440 #include <stdio.h>
19441
19442
19443
19444int
19445main ()
19446{
19447static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) < 0)];
19448test_array [0] = 0
19449
19450 ;
19451 return 0;
19452}
19453_ACEOF
19454rm -f conftest.$ac_objext
19455if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19456 (eval $ac_compile) 2>conftest.er1
19457 ac_status=$?
19458 grep -v '^ *+' conftest.er1 >conftest.err
19459 rm -f conftest.er1
19460 cat conftest.err >&5
19461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19462 (exit $ac_status); } &&
9dd0f6c2 19463 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
238ecede
MW
19464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19465 (eval $ac_try) 2>&5
19466 ac_status=$?
19467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19468 (exit $ac_status); }; } &&
19469 { ac_try='test -s conftest.$ac_objext'
19470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19471 (eval $ac_try) 2>&5
19472 ac_status=$?
19473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19474 (exit $ac_status); }; }; then
19475 ac_hi=-1 ac_mid=-1
19476 while :; do
19477 cat >conftest.$ac_ext <<_ACEOF
19478/* confdefs.h. */
19479_ACEOF
19480cat confdefs.h >>conftest.$ac_ext
19481cat >>conftest.$ac_ext <<_ACEOF
19482/* end confdefs.h. */
19483
19484 /* DJGPP only has fake wchar_t: */
19485 #ifdef __DJGPP__
19486 # error "fake wchar_t"
19487 #endif
19488 #ifdef HAVE_WCHAR_H
19489 # ifdef __CYGWIN__
19490 # include <stddef.h>
19491 # endif
19492 # include <wchar.h>
19493 #endif
19494 #ifdef HAVE_STDLIB_H
19495 # include <stdlib.h>
19496 #endif
19497 #include <stdio.h>
19498
19499
19500
19501int
19502main ()
19503{
19504static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= $ac_mid)];
19505test_array [0] = 0
19506
19507 ;
19508 return 0;
19509}
19510_ACEOF
19511rm -f conftest.$ac_objext
19512if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19513 (eval $ac_compile) 2>conftest.er1
19514 ac_status=$?
19515 grep -v '^ *+' conftest.er1 >conftest.err
19516 rm -f conftest.er1
19517 cat conftest.err >&5
19518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19519 (exit $ac_status); } &&
9dd0f6c2 19520 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
238ecede
MW
19521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19522 (eval $ac_try) 2>&5
19523 ac_status=$?
19524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19525 (exit $ac_status); }; } &&
19526 { ac_try='test -s conftest.$ac_objext'
19527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19528 (eval $ac_try) 2>&5
19529 ac_status=$?
19530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19531 (exit $ac_status); }; }; then
19532 ac_lo=$ac_mid; break
19533else
19534 echo "$as_me: failed program was:" >&5
19535sed 's/^/| /' conftest.$ac_ext >&5
19536
19537ac_hi=`expr '(' $ac_mid ')' - 1`
19538 if test $ac_mid -le $ac_hi; then
19539 ac_lo= ac_hi=
19540 break
19541 fi
19542 ac_mid=`expr 2 '*' $ac_mid`
19543fi
19544rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19545 done
19546else
19547 echo "$as_me: failed program was:" >&5
19548sed 's/^/| /' conftest.$ac_ext >&5
19549
19550ac_lo= ac_hi=
19551fi
19552rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19553fi
19554rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19555# Binary search between lo and hi bounds.
19556while test "x$ac_lo" != "x$ac_hi"; do
19557 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
19558 cat >conftest.$ac_ext <<_ACEOF
19559/* confdefs.h. */
19560_ACEOF
19561cat confdefs.h >>conftest.$ac_ext
19562cat >>conftest.$ac_ext <<_ACEOF
19563/* end confdefs.h. */
19564
19565 /* DJGPP only has fake wchar_t: */
19566 #ifdef __DJGPP__
19567 # error "fake wchar_t"
19568 #endif
19569 #ifdef HAVE_WCHAR_H
19570 # ifdef __CYGWIN__
19571 # include <stddef.h>
19572 # endif
19573 # include <wchar.h>
19574 #endif
19575 #ifdef HAVE_STDLIB_H
19576 # include <stdlib.h>
19577 #endif
19578 #include <stdio.h>
a848cd7e 19579
a848cd7e 19580
a848cd7e 19581
238ecede
MW
19582int
19583main ()
19584{
19585static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)];
19586test_array [0] = 0
a848cd7e 19587
238ecede
MW
19588 ;
19589 return 0;
19590}
19591_ACEOF
19592rm -f conftest.$ac_objext
19593if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19594 (eval $ac_compile) 2>conftest.er1
19595 ac_status=$?
19596 grep -v '^ *+' conftest.er1 >conftest.err
19597 rm -f conftest.er1
19598 cat conftest.err >&5
19599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19600 (exit $ac_status); } &&
9dd0f6c2 19601 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
238ecede
MW
19602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19603 (eval $ac_try) 2>&5
19604 ac_status=$?
19605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19606 (exit $ac_status); }; } &&
19607 { ac_try='test -s conftest.$ac_objext'
19608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19609 (eval $ac_try) 2>&5
19610 ac_status=$?
19611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19612 (exit $ac_status); }; }; then
19613 ac_hi=$ac_mid
19614else
19615 echo "$as_me: failed program was:" >&5
19616sed 's/^/| /' conftest.$ac_ext >&5
19617
19618ac_lo=`expr '(' $ac_mid ')' + 1`
19619fi
19620rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19621done
19622case $ac_lo in
19623?*) ac_cv_sizeof_wchar_t=$ac_lo;;
19624'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77
19625See \`config.log' for more details." >&5
19626echo "$as_me: error: cannot compute sizeof (wchar_t), 77
19627See \`config.log' for more details." >&2;}
19628 { (exit 1); exit 1; }; } ;;
19629esac
19630else
19631 if test "$cross_compiling" = yes; then
9dd0f6c2
DE
19632 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
19633echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
238ecede 19634 { (exit 1); exit 1; }; }
a848cd7e
SC
19635else
19636 cat >conftest.$ac_ext <<_ACEOF
19637/* confdefs.h. */
19638_ACEOF
19639cat confdefs.h >>conftest.$ac_ext
19640cat >>conftest.$ac_ext <<_ACEOF
19641/* end confdefs.h. */
19642
238ecede
MW
19643 /* DJGPP only has fake wchar_t: */
19644 #ifdef __DJGPP__
19645 # error "fake wchar_t"
19646 #endif
19647 #ifdef HAVE_WCHAR_H
19648 # ifdef __CYGWIN__
19649 # include <stddef.h>
19650 # endif
19651 # include <wchar.h>
19652 #endif
19653 #ifdef HAVE_STDLIB_H
19654 # include <stdlib.h>
19655 #endif
19656 #include <stdio.h>
19657
19658
19659
19660long longval () { return (long) (sizeof (wchar_t)); }
19661unsigned long ulongval () { return (long) (sizeof (wchar_t)); }
19662#include <stdio.h>
19663#include <stdlib.h>
19664int
19665main ()
19666{
a848cd7e 19667
238ecede
MW
19668 FILE *f = fopen ("conftest.val", "w");
19669 if (! f)
19670 exit (1);
19671 if (((long) (sizeof (wchar_t))) < 0)
19672 {
19673 long i = longval ();
19674 if (i != ((long) (sizeof (wchar_t))))
19675 exit (1);
19676 fprintf (f, "%ld\n", i);
19677 }
19678 else
19679 {
19680 unsigned long i = ulongval ();
19681 if (i != ((long) (sizeof (wchar_t))))
19682 exit (1);
19683 fprintf (f, "%lu\n", i);
19684 }
19685 exit (ferror (f) || fclose (f) != 0);
19686
19687 ;
19688 return 0;
19689}
a848cd7e
SC
19690_ACEOF
19691rm -f conftest$ac_exeext
19692if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19693 (eval $ac_link) 2>&5
19694 ac_status=$?
19695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19696 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19698 (eval $ac_try) 2>&5
19699 ac_status=$?
19700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19701 (exit $ac_status); }; }; then
238ecede 19702 ac_cv_sizeof_wchar_t=`cat conftest.val`
a848cd7e
SC
19703else
19704 echo "$as_me: program exited with status $ac_status" >&5
19705echo "$as_me: failed program was:" >&5
19706sed 's/^/| /' conftest.$ac_ext >&5
19707
19708( exit $ac_status )
238ecede
MW
19709{ { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77
19710See \`config.log' for more details." >&5
19711echo "$as_me: error: cannot compute sizeof (wchar_t), 77
19712See \`config.log' for more details." >&2;}
19713 { (exit 1); exit 1; }; }
a848cd7e 19714fi
ac1cb8d3 19715rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e 19716fi
a848cd7e 19717fi
238ecede
MW
19718rm -f conftest.val
19719else
19720 ac_cv_sizeof_wchar_t=0
19721fi
19722fi
19723echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5
19724echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6
a848cd7e 19725cat >>confdefs.h <<_ACEOF
238ecede 19726#define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
a848cd7e
SC
19727_ACEOF
19728
19729
238ecede 19730
ba3d13e1
VZ
19731echo "$as_me:$LINENO: checking for va_copy" >&5
19732echo $ECHO_N "checking for va_copy... $ECHO_C" >&6
19733if test "${wx_cv_func_va_copy+set}" = set; then
19734 echo $ECHO_N "(cached) $ECHO_C" >&6
19735else
19736
19737 cat >conftest.$ac_ext <<_ACEOF
19738
19739 #include <stdarg.h>
19740 void foo(char *f, ...)
19741 {
19742 va_list ap1, ap2;
19743 va_start(ap1, f);
19744 va_copy(ap2, ap1);
19745 va_end(ap2);
19746 va_end(ap1);
19747 }
5886b072
VZ
19748 int main()
19749 {
b902e639
VZ
19750 foo("hi", 17);
19751 return 0;
5886b072 19752 }
ba3d13e1
VZ
19753_ACEOF
19754rm -f conftest.$ac_objext conftest$ac_exeext
19755if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19756 (eval $ac_link) 2>conftest.er1
19757 ac_status=$?
19758 grep -v '^ *+' conftest.er1 >conftest.err
19759 rm -f conftest.er1
19760 cat conftest.err >&5
19761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19762 (exit $ac_status); } &&
9dd0f6c2 19763 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ba3d13e1
VZ
19764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19765 (eval $ac_try) 2>&5
19766 ac_status=$?
19767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19768 (exit $ac_status); }; } &&
19769 { ac_try='test -s conftest$ac_exeext'
19770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19771 (eval $ac_try) 2>&5
19772 ac_status=$?
19773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19774 (exit $ac_status); }; }; then
19775 wx_cv_func_va_copy=yes
19776else
19777 echo "$as_me: failed program was:" >&5
19778sed 's/^/| /' conftest.$ac_ext >&5
19779
19780wx_cv_func_va_copy=no
19781
19782fi
19783rm -f conftest.err conftest.$ac_objext \
19784 conftest$ac_exeext conftest.$ac_ext
19785
19786
19787fi
19788echo "$as_me:$LINENO: result: $wx_cv_func_va_copy" >&5
19789echo "${ECHO_T}$wx_cv_func_va_copy" >&6
19790
19791if test $wx_cv_func_va_copy = "yes"; then
19792 cat >>confdefs.h <<\_ACEOF
19793#define HAVE_VA_COPY 1
19794_ACEOF
19795
19796else
19797 echo "$as_me:$LINENO: checking if va_list can be copied by value" >&5
19798echo $ECHO_N "checking if va_list can be copied by value... $ECHO_C" >&6
19799if test "${wx_cv_type_va_list_lvalue+set}" = set; then
19800 echo $ECHO_N "(cached) $ECHO_C" >&6
19801else
19802
19803 if test "$cross_compiling" = yes; then
19804 wx_cv_type_va_list_lvalue=yes
19805
19806else
19807 cat >conftest.$ac_ext <<_ACEOF
19808
19809 #include <stdarg.h>
19810 int foo(char *f, ...)
19811 {
19812 va_list ap1, ap2;
19813 va_start(ap1, f);
19814 ap2 = ap1;
19815 if ( va_arg(ap1, int) != 17 || va_arg(ap2, int) != 17 )
19816 return 1;
19817 va_end(ap2);
19818 va_end(ap1);
19819 return 0;
19820 }
19821 int main()
19822 {
19823 return foo("hi", 17);
19824 }
19825_ACEOF
19826rm -f conftest$ac_exeext
19827if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19828 (eval $ac_link) 2>&5
19829 ac_status=$?
19830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19831 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19833 (eval $ac_try) 2>&5
19834 ac_status=$?
19835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19836 (exit $ac_status); }; }; then
19837 wx_cv_type_va_list_lvalue=yes
19838else
19839 echo "$as_me: program exited with status $ac_status" >&5
19840echo "$as_me: failed program was:" >&5
19841sed 's/^/| /' conftest.$ac_ext >&5
19842
19843( exit $ac_status )
19844wx_cv_type_va_list_lvalue=no
19845fi
19846rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19847fi
19848
19849
19850fi
19851echo "$as_me:$LINENO: result: $wx_cv_type_va_list_lvalue" >&5
19852echo "${ECHO_T}$wx_cv_type_va_list_lvalue" >&6
19853
19854 if test $wx_cv_type_va_list_lvalue != "yes"; then
19855 cat >>confdefs.h <<\_ACEOF
19856#define VA_LIST_IS_ARRAY 1
19857_ACEOF
19858
19859 fi
19860fi
19861
a848cd7e
SC
19862# Check whether --enable-largefile or --disable-largefile was given.
19863if test "${enable_largefile+set}" = set; then
19864 enableval="$enable_largefile"
19865
19866fi;
19867if test "$enable_largefile" != no; then
19868 wx_largefile=no
19869
19870 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
19871echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
19872if test "${ac_cv_sys_file_offset_bits+set}" = set; then
19873 echo $ECHO_N "(cached) $ECHO_C" >&6
19874else
19875
19876 cat >conftest.$ac_ext <<_ACEOF
19877/* confdefs.h. */
19878_ACEOF
19879cat confdefs.h >>conftest.$ac_ext
19880cat >>conftest.$ac_ext <<_ACEOF
19881/* end confdefs.h. */
19882#define _FILE_OFFSET_BITS 64
19883 #include <sys/types.h>
19884int
19885main ()
19886{
19887typedef struct {
19888 unsigned int field: sizeof(off_t) == 8;
19889} wxlf;
19890
19891 ;
19892 return 0;
19893}
19894_ACEOF
19895rm -f conftest.$ac_objext
19896if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19897 (eval $ac_compile) 2>conftest.er1
a848cd7e 19898 ac_status=$?
ac1cb8d3
VS
19899 grep -v '^ *+' conftest.er1 >conftest.err
19900 rm -f conftest.er1
19901 cat conftest.err >&5
a848cd7e
SC
19902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19903 (exit $ac_status); } &&
9dd0f6c2 19904 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19906 (eval $ac_try) 2>&5
19907 ac_status=$?
19908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19909 (exit $ac_status); }; } &&
19910 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19912 (eval $ac_try) 2>&5
19913 ac_status=$?
19914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19915 (exit $ac_status); }; }; then
19916 ac_cv_sys_file_offset_bits=64
19917else
19918 echo "$as_me: failed program was:" >&5
19919sed 's/^/| /' conftest.$ac_ext >&5
19920
19921ac_cv_sys_file_offset_bits=no
19922fi
ac1cb8d3 19923rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19924
19925
19926fi
19927echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
19928echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
19929
19930 if test "$ac_cv_sys_file_offset_bits" != no; then
19931 wx_largefile=yes
19932 cat >>confdefs.h <<_ACEOF
19933#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
19934_ACEOF
19935
19936 fi
19937
19938 if test "x$wx_largefile" != "xyes"; then
19939
19940 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
19941echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
19942if test "${ac_cv_sys_large_files+set}" = set; then
19943 echo $ECHO_N "(cached) $ECHO_C" >&6
19944else
19945
19946 cat >conftest.$ac_ext <<_ACEOF
19947/* confdefs.h. */
19948_ACEOF
19949cat confdefs.h >>conftest.$ac_ext
19950cat >>conftest.$ac_ext <<_ACEOF
19951/* end confdefs.h. */
19952#define _LARGE_FILES 1
19953 #include <sys/types.h>
19954int
19955main ()
19956{
19957typedef struct {
19958 unsigned int field: sizeof(off_t) == 8;
19959} wxlf;
19960
19961 ;
19962 return 0;
19963}
19964_ACEOF
19965rm -f conftest.$ac_objext
19966if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19967 (eval $ac_compile) 2>conftest.er1
a848cd7e 19968 ac_status=$?
ac1cb8d3
VS
19969 grep -v '^ *+' conftest.er1 >conftest.err
19970 rm -f conftest.er1
19971 cat conftest.err >&5
a848cd7e
SC
19972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19973 (exit $ac_status); } &&
9dd0f6c2 19974 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19976 (eval $ac_try) 2>&5
19977 ac_status=$?
19978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19979 (exit $ac_status); }; } &&
19980 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19982 (eval $ac_try) 2>&5
19983 ac_status=$?
19984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19985 (exit $ac_status); }; }; then
19986 ac_cv_sys_large_files=1
19987else
19988 echo "$as_me: failed program was:" >&5
19989sed 's/^/| /' conftest.$ac_ext >&5
19990
19991ac_cv_sys_large_files=no
19992fi
ac1cb8d3 19993rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19994
19995
19996fi
19997echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
19998echo "${ECHO_T}$ac_cv_sys_large_files" >&6
19999
20000 if test "$ac_cv_sys_large_files" != no; then
20001 wx_largefile=yes
20002 cat >>confdefs.h <<_ACEOF
20003#define _LARGE_FILES $ac_cv_sys_large_files
20004_ACEOF
20005
20006 fi
20007
20008 fi
20009
20010 echo "$as_me:$LINENO: checking if large file support is available" >&5
20011echo $ECHO_N "checking if large file support is available... $ECHO_C" >&6
20012 if test "x$wx_largefile" = "xyes"; then
20013 cat >>confdefs.h <<\_ACEOF
20014#define HAVE_LARGEFILE_SUPPORT 1
20015_ACEOF
20016
20017 fi
20018 echo "$as_me:$LINENO: result: $wx_largefile" >&5
20019echo "${ECHO_T}$wx_largefile" >&6
20020fi
20021
5b674b9d
DE
20022
20023if test "x$wx_largefile" = "xyes"; then
20024 if test "x$ac_cv_sys_file_offset_bits" = "x64"; then
20025 WX_LARGEFILE_FLAGS="-D_FILE_OFFSET_BITS=64 -D_LARGE_FILES"
20026 else
20027 WX_LARGEFILE_FLAGS="-D_LARGE_FILES"
20028 fi
20029 echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
5294a27e
VZ
20030echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
20031if test "${ac_cv_sys_largefile_source+set}" = set; then
20032 echo $ECHO_N "(cached) $ECHO_C" >&6
20033else
20034 while :; do
20035 ac_cv_sys_largefile_source=no
20036 cat >conftest.$ac_ext <<_ACEOF
20037/* confdefs.h. */
20038_ACEOF
20039cat confdefs.h >>conftest.$ac_ext
20040cat >>conftest.$ac_ext <<_ACEOF
20041/* end confdefs.h. */
20042#include <stdio.h>
20043int
20044main ()
20045{
20046return !fseeko;
20047 ;
20048 return 0;
20049}
20050_ACEOF
20051rm -f conftest.$ac_objext
20052if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20053 (eval $ac_compile) 2>conftest.er1
20054 ac_status=$?
20055 grep -v '^ *+' conftest.er1 >conftest.err
20056 rm -f conftest.er1
20057 cat conftest.err >&5
20058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20059 (exit $ac_status); } &&
9dd0f6c2 20060 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5294a27e
VZ
20061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20062 (eval $ac_try) 2>&5
20063 ac_status=$?
20064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20065 (exit $ac_status); }; } &&
20066 { ac_try='test -s conftest.$ac_objext'
20067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20068 (eval $ac_try) 2>&5
20069 ac_status=$?
20070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20071 (exit $ac_status); }; }; then
20072 break
20073else
20074 echo "$as_me: failed program was:" >&5
20075sed 's/^/| /' conftest.$ac_ext >&5
20076
20077fi
20078rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20079 cat >conftest.$ac_ext <<_ACEOF
20080/* confdefs.h. */
20081_ACEOF
20082cat confdefs.h >>conftest.$ac_ext
20083cat >>conftest.$ac_ext <<_ACEOF
20084/* end confdefs.h. */
20085#define _LARGEFILE_SOURCE 1
20086#include <stdio.h>
20087int
20088main ()
20089{
20090return !fseeko;
20091 ;
20092 return 0;
20093}
20094_ACEOF
20095rm -f conftest.$ac_objext
20096if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20097 (eval $ac_compile) 2>conftest.er1
20098 ac_status=$?
20099 grep -v '^ *+' conftest.er1 >conftest.err
20100 rm -f conftest.er1
20101 cat conftest.err >&5
20102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20103 (exit $ac_status); } &&
9dd0f6c2 20104 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5294a27e
VZ
20105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20106 (eval $ac_try) 2>&5
20107 ac_status=$?
20108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20109 (exit $ac_status); }; } &&
20110 { ac_try='test -s conftest.$ac_objext'
20111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20112 (eval $ac_try) 2>&5
20113 ac_status=$?
20114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20115 (exit $ac_status); }; }; then
20116 ac_cv_sys_largefile_source=1; break
20117else
20118 echo "$as_me: failed program was:" >&5
20119sed 's/^/| /' conftest.$ac_ext >&5
20120
20121fi
20122rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20123 break
20124done
20125fi
20126echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
20127echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
20128if test "$ac_cv_sys_largefile_source" != no; then
20129
20130cat >>confdefs.h <<_ACEOF
20131#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
20132_ACEOF
20133
20134fi
20135rm -f conftest*
20136
20137# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
20138# in glibc 2.1.3, but that breaks too many other things.
20139# If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
20140echo "$as_me:$LINENO: checking for fseeko" >&5
20141echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
20142if test "${ac_cv_func_fseeko+set}" = set; then
20143 echo $ECHO_N "(cached) $ECHO_C" >&6
20144else
20145 cat >conftest.$ac_ext <<_ACEOF
20146/* confdefs.h. */
20147_ACEOF
20148cat confdefs.h >>conftest.$ac_ext
20149cat >>conftest.$ac_ext <<_ACEOF
20150/* end confdefs.h. */
20151#include <stdio.h>
20152int
20153main ()
20154{
20155return fseeko && fseeko (stdin, 0, 0);
20156 ;
20157 return 0;
20158}
20159_ACEOF
20160rm -f conftest.$ac_objext conftest$ac_exeext
20161if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20162 (eval $ac_link) 2>conftest.er1
20163 ac_status=$?
20164 grep -v '^ *+' conftest.er1 >conftest.err
20165 rm -f conftest.er1
20166 cat conftest.err >&5
20167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20168 (exit $ac_status); } &&
9dd0f6c2 20169 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5294a27e
VZ
20170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20171 (eval $ac_try) 2>&5
20172 ac_status=$?
20173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20174 (exit $ac_status); }; } &&
20175 { ac_try='test -s conftest$ac_exeext'
20176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20177 (eval $ac_try) 2>&5
20178 ac_status=$?
20179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20180 (exit $ac_status); }; }; then
20181 ac_cv_func_fseeko=yes
20182else
20183 echo "$as_me: failed program was:" >&5
20184sed 's/^/| /' conftest.$ac_ext >&5
20185
20186ac_cv_func_fseeko=no
20187fi
20188rm -f conftest.err conftest.$ac_objext \
20189 conftest$ac_exeext conftest.$ac_ext
20190fi
20191echo "$as_me:$LINENO: result: $ac_cv_func_fseeko" >&5
20192echo "${ECHO_T}$ac_cv_func_fseeko" >&6
20193if test $ac_cv_func_fseeko = yes; then
20194
20195cat >>confdefs.h <<\_ACEOF
20196#define HAVE_FSEEKO 1
20197_ACEOF
20198
20199fi
20200
5b674b9d
DE
20201 if test "$ac_cv_sys_largefile_source" != no; then
20202 WX_LARGEFILE_FLAGS="$WX_LARGEFILE_FLAGS -D_LARGEFILE_SOURCE=$ac_cv_sys_largefile_source"
a848cd7e
SC
20203 fi
20204 CPPFLAGS="$CPPFLAGS $WX_LARGEFILE_FLAGS"
20205fi
20206
20207echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
20208echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
20209if test "${ac_cv_c_bigendian+set}" = set; then
20210 echo $ECHO_N "(cached) $ECHO_C" >&6
20211else
20212 ac_cv_c_bigendian=unknown
20213# See if sys/param.h defines the BYTE_ORDER macro.
20214cat >conftest.$ac_ext <<_ACEOF
20215/* confdefs.h. */
20216_ACEOF
20217cat confdefs.h >>conftest.$ac_ext
20218cat >>conftest.$ac_ext <<_ACEOF
20219/* end confdefs.h. */
20220#include <sys/types.h>
20221#include <sys/param.h>
20222int
20223main ()
20224{
20225
20226#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
20227 bogus endian macros
20228#endif
20229 ;
20230 return 0;
20231}
20232_ACEOF
20233rm -f conftest.$ac_objext
20234if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20235 (eval $ac_compile) 2>conftest.er1
a848cd7e 20236 ac_status=$?
ac1cb8d3
VS
20237 grep -v '^ *+' conftest.er1 >conftest.err
20238 rm -f conftest.er1
20239 cat conftest.err >&5
a848cd7e
SC
20240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20241 (exit $ac_status); } &&
9dd0f6c2 20242 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20244 (eval $ac_try) 2>&5
20245 ac_status=$?
20246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20247 (exit $ac_status); }; } &&
20248 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20250 (eval $ac_try) 2>&5
20251 ac_status=$?
20252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20253 (exit $ac_status); }; }; then
20254 # It does; now see whether it defined to BIG_ENDIAN or not.
20255cat >conftest.$ac_ext <<_ACEOF
20256/* confdefs.h. */
20257_ACEOF
20258cat confdefs.h >>conftest.$ac_ext
20259cat >>conftest.$ac_ext <<_ACEOF
20260/* end confdefs.h. */
20261#include <sys/types.h>
20262#include <sys/param.h>
20263int
20264main ()
20265{
20266
20267#if BYTE_ORDER != BIG_ENDIAN
20268 not big endian
20269#endif
20270 ;
20271 return 0;
20272}
20273_ACEOF
20274rm -f conftest.$ac_objext
20275if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20276 (eval $ac_compile) 2>conftest.er1
a848cd7e 20277 ac_status=$?
ac1cb8d3
VS
20278 grep -v '^ *+' conftest.er1 >conftest.err
20279 rm -f conftest.er1
20280 cat conftest.err >&5
a848cd7e
SC
20281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20282 (exit $ac_status); } &&
9dd0f6c2 20283 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20285 (eval $ac_try) 2>&5
20286 ac_status=$?
20287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20288 (exit $ac_status); }; } &&
20289 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20291 (eval $ac_try) 2>&5
20292 ac_status=$?
20293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20294 (exit $ac_status); }; }; then
20295 ac_cv_c_bigendian=yes
20296else
20297 echo "$as_me: failed program was:" >&5
20298sed 's/^/| /' conftest.$ac_ext >&5
20299
20300ac_cv_c_bigendian=no
20301fi
ac1cb8d3 20302rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20303else
20304 echo "$as_me: failed program was:" >&5
20305sed 's/^/| /' conftest.$ac_ext >&5
20306
20307fi
ac1cb8d3 20308rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20309if test $ac_cv_c_bigendian = unknown; then
20310if test "$cross_compiling" = yes; then
20311 ac_cv_c_bigendian=unknown
20312else
20313 cat >conftest.$ac_ext <<_ACEOF
20314/* confdefs.h. */
20315_ACEOF
20316cat confdefs.h >>conftest.$ac_ext
20317cat >>conftest.$ac_ext <<_ACEOF
20318/* end confdefs.h. */
20319main () {
20320 /* Are we little or big endian? From Harbison&Steele. */
20321 union
20322 {
20323 long l;
20324 char c[sizeof (long)];
20325 } u;
20326 u.l = 1;
20327 exit (u.c[sizeof (long) - 1] == 1);
20328}
20329_ACEOF
20330rm -f conftest$ac_exeext
20331if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20332 (eval $ac_link) 2>&5
20333 ac_status=$?
20334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20335 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20337 (eval $ac_try) 2>&5
20338 ac_status=$?
20339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20340 (exit $ac_status); }; }; then
20341 ac_cv_c_bigendian=no
20342else
20343 echo "$as_me: program exited with status $ac_status" >&5
20344echo "$as_me: failed program was:" >&5
20345sed 's/^/| /' conftest.$ac_ext >&5
20346
20347( exit $ac_status )
20348ac_cv_c_bigendian=yes
20349fi
ac1cb8d3 20350rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20351fi
20352fi
20353fi
20354echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
20355echo "${ECHO_T}$ac_cv_c_bigendian" >&6
20356if test $ac_cv_c_bigendian = unknown; then
20357 { 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
20358echo "$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;}
20359fi
20360if test $ac_cv_c_bigendian = yes; then
20361 cat >>confdefs.h <<\_ACEOF
20362#define WORDS_BIGENDIAN 1
20363_ACEOF
20364
20365fi
20366
20367
20368ac_ext=cc
20369ac_cpp='$CXXCPP $CPPFLAGS'
20370ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20371ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20372ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20373echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
20374echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
20375if test -z "$CXXCPP"; then
20376 if test "${ac_cv_prog_CXXCPP+set}" = set; then
20377 echo $ECHO_N "(cached) $ECHO_C" >&6
20378else
20379 # Double quotes because CXXCPP needs to be expanded
20380 for CXXCPP in "$CXX -E" "/lib/cpp"
20381 do
20382 ac_preproc_ok=false
20383for ac_cxx_preproc_warn_flag in '' yes
20384do
20385 # Use a header file that comes with gcc, so configuring glibc
20386 # with a fresh cross-compiler works.
20387 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20388 # <limits.h> exists even on freestanding compilers.
20389 # On the NeXT, cc -E runs the code through the compiler's parser,
20390 # not just through cpp. "Syntax error" is here to catch this case.
20391 cat >conftest.$ac_ext <<_ACEOF
20392/* confdefs.h. */
20393_ACEOF
20394cat confdefs.h >>conftest.$ac_ext
20395cat >>conftest.$ac_ext <<_ACEOF
20396/* end confdefs.h. */
20397#ifdef __STDC__
20398# include <limits.h>
20399#else
20400# include <assert.h>
20401#endif
ac1cb8d3 20402 Syntax error
a848cd7e
SC
20403_ACEOF
20404if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20405 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20406 ac_status=$?
20407 grep -v '^ *+' conftest.er1 >conftest.err
20408 rm -f conftest.er1
20409 cat conftest.err >&5
20410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20411 (exit $ac_status); } >/dev/null; then
20412 if test -s conftest.err; then
20413 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 20414 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
20415 else
20416 ac_cpp_err=
20417 fi
20418else
20419 ac_cpp_err=yes
20420fi
20421if test -z "$ac_cpp_err"; then
20422 :
20423else
20424 echo "$as_me: failed program was:" >&5
20425sed 's/^/| /' conftest.$ac_ext >&5
20426
20427 # Broken: fails on valid input.
20428continue
20429fi
20430rm -f conftest.err conftest.$ac_ext
20431
20432 # OK, works on sane cases. Now check whether non-existent headers
20433 # can be detected and how.
20434 cat >conftest.$ac_ext <<_ACEOF
20435/* confdefs.h. */
20436_ACEOF
20437cat confdefs.h >>conftest.$ac_ext
20438cat >>conftest.$ac_ext <<_ACEOF
20439/* end confdefs.h. */
20440#include <ac_nonexistent.h>
20441_ACEOF
20442if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20443 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20444 ac_status=$?
20445 grep -v '^ *+' conftest.er1 >conftest.err
20446 rm -f conftest.er1
20447 cat conftest.err >&5
20448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20449 (exit $ac_status); } >/dev/null; then
20450 if test -s conftest.err; then
20451 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 20452 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
20453 else
20454 ac_cpp_err=
20455 fi
20456else
20457 ac_cpp_err=yes
20458fi
20459if test -z "$ac_cpp_err"; then
20460 # Broken: success on invalid input.
20461continue
20462else
20463 echo "$as_me: failed program was:" >&5
20464sed 's/^/| /' conftest.$ac_ext >&5
20465
20466 # Passes both tests.
20467ac_preproc_ok=:
20468break
20469fi
20470rm -f conftest.err conftest.$ac_ext
20471
20472done
20473# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
20474rm -f conftest.err conftest.$ac_ext
20475if $ac_preproc_ok; then
20476 break
20477fi
20478
20479 done
20480 ac_cv_prog_CXXCPP=$CXXCPP
20481
20482fi
20483 CXXCPP=$ac_cv_prog_CXXCPP
20484else
20485 ac_cv_prog_CXXCPP=$CXXCPP
20486fi
20487echo "$as_me:$LINENO: result: $CXXCPP" >&5
20488echo "${ECHO_T}$CXXCPP" >&6
20489ac_preproc_ok=false
20490for ac_cxx_preproc_warn_flag in '' yes
20491do
20492 # Use a header file that comes with gcc, so configuring glibc
20493 # with a fresh cross-compiler works.
20494 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20495 # <limits.h> exists even on freestanding compilers.
20496 # On the NeXT, cc -E runs the code through the compiler's parser,
20497 # not just through cpp. "Syntax error" is here to catch this case.
20498 cat >conftest.$ac_ext <<_ACEOF
20499/* confdefs.h. */
20500_ACEOF
20501cat confdefs.h >>conftest.$ac_ext
20502cat >>conftest.$ac_ext <<_ACEOF
20503/* end confdefs.h. */
20504#ifdef __STDC__
20505# include <limits.h>
20506#else
20507# include <assert.h>
20508#endif
ac1cb8d3 20509 Syntax error
a848cd7e
SC
20510_ACEOF
20511if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20512 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20513 ac_status=$?
20514 grep -v '^ *+' conftest.er1 >conftest.err
20515 rm -f conftest.er1
20516 cat conftest.err >&5
20517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20518 (exit $ac_status); } >/dev/null; then
20519 if test -s conftest.err; then
20520 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 20521 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
20522 else
20523 ac_cpp_err=
20524 fi
20525else
20526 ac_cpp_err=yes
20527fi
20528if test -z "$ac_cpp_err"; then
20529 :
20530else
20531 echo "$as_me: failed program was:" >&5
20532sed 's/^/| /' conftest.$ac_ext >&5
20533
20534 # Broken: fails on valid input.
20535continue
20536fi
20537rm -f conftest.err conftest.$ac_ext
20538
20539 # OK, works on sane cases. Now check whether non-existent headers
20540 # can be detected and how.
20541 cat >conftest.$ac_ext <<_ACEOF
20542/* confdefs.h. */
20543_ACEOF
20544cat confdefs.h >>conftest.$ac_ext
20545cat >>conftest.$ac_ext <<_ACEOF
20546/* end confdefs.h. */
20547#include <ac_nonexistent.h>
20548_ACEOF
20549if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20550 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20551 ac_status=$?
20552 grep -v '^ *+' conftest.er1 >conftest.err
20553 rm -f conftest.er1
20554 cat conftest.err >&5
20555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20556 (exit $ac_status); } >/dev/null; then
20557 if test -s conftest.err; then
20558 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 20559 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
20560 else
20561 ac_cpp_err=
20562 fi
20563else
20564 ac_cpp_err=yes
20565fi
20566if test -z "$ac_cpp_err"; then
20567 # Broken: success on invalid input.
20568continue
20569else
20570 echo "$as_me: failed program was:" >&5
20571sed 's/^/| /' conftest.$ac_ext >&5
20572
20573 # Passes both tests.
20574ac_preproc_ok=:
20575break
20576fi
20577rm -f conftest.err conftest.$ac_ext
20578
20579done
20580# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
20581rm -f conftest.err conftest.$ac_ext
20582if $ac_preproc_ok; then
20583 :
20584else
20585 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
20586See \`config.log' for more details." >&5
20587echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
20588See \`config.log' for more details." >&2;}
20589 { (exit 1); exit 1; }; }
20590fi
20591
20592ac_ext=cc
20593ac_cpp='$CXXCPP $CPPFLAGS'
20594ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20595ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20596ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20597
20598
20599
20600
20601
20602 ac_ext=cc
20603ac_cpp='$CXXCPP $CPPFLAGS'
20604ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20605ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20606ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20607
20608
20609
20610for ac_header in iostream
20611do
20612as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20613if eval "test \"\${$as_ac_Header+set}\" = set"; then
20614 echo "$as_me:$LINENO: checking for $ac_header" >&5
20615echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20616if eval "test \"\${$as_ac_Header+set}\" = set"; then
20617 echo $ECHO_N "(cached) $ECHO_C" >&6
20618fi
20619echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20620echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20621else
20622 # Is the header compilable?
20623echo "$as_me:$LINENO: checking $ac_header usability" >&5
20624echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20625cat >conftest.$ac_ext <<_ACEOF
20626/* confdefs.h. */
20627_ACEOF
20628cat confdefs.h >>conftest.$ac_ext
20629cat >>conftest.$ac_ext <<_ACEOF
20630/* end confdefs.h. */
20631$ac_includes_default
20632#include <$ac_header>
20633_ACEOF
20634rm -f conftest.$ac_objext
20635if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20636 (eval $ac_compile) 2>conftest.er1
a848cd7e 20637 ac_status=$?
ac1cb8d3
VS
20638 grep -v '^ *+' conftest.er1 >conftest.err
20639 rm -f conftest.er1
20640 cat conftest.err >&5
a848cd7e
SC
20641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20642 (exit $ac_status); } &&
9dd0f6c2 20643 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20645 (eval $ac_try) 2>&5
20646 ac_status=$?
20647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20648 (exit $ac_status); }; } &&
20649 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20651 (eval $ac_try) 2>&5
20652 ac_status=$?
20653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20654 (exit $ac_status); }; }; then
20655 ac_header_compiler=yes
20656else
20657 echo "$as_me: failed program was:" >&5
20658sed 's/^/| /' conftest.$ac_ext >&5
20659
20660ac_header_compiler=no
20661fi
ac1cb8d3 20662rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20663echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20664echo "${ECHO_T}$ac_header_compiler" >&6
20665
20666# Is the header present?
20667echo "$as_me:$LINENO: checking $ac_header presence" >&5
20668echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20669cat >conftest.$ac_ext <<_ACEOF
20670/* confdefs.h. */
20671_ACEOF
20672cat confdefs.h >>conftest.$ac_ext
20673cat >>conftest.$ac_ext <<_ACEOF
20674/* end confdefs.h. */
20675#include <$ac_header>
20676_ACEOF
20677if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20678 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20679 ac_status=$?
20680 grep -v '^ *+' conftest.er1 >conftest.err
20681 rm -f conftest.er1
20682 cat conftest.err >&5
20683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20684 (exit $ac_status); } >/dev/null; then
20685 if test -s conftest.err; then
20686 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 20687 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
20688 else
20689 ac_cpp_err=
20690 fi
20691else
20692 ac_cpp_err=yes
20693fi
20694if test -z "$ac_cpp_err"; then
20695 ac_header_preproc=yes
20696else
20697 echo "$as_me: failed program was:" >&5
20698sed 's/^/| /' conftest.$ac_ext >&5
20699
20700 ac_header_preproc=no
20701fi
20702rm -f conftest.err conftest.$ac_ext
20703echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20704echo "${ECHO_T}$ac_header_preproc" >&6
20705
20706# So? What about this header?
ac1cb8d3
VS
20707case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
20708 yes:no: )
a848cd7e
SC
20709 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20710echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
20711 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20712echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20713 ac_header_preproc=yes
a848cd7e 20714 ;;
ac1cb8d3 20715 no:yes:* )
a848cd7e
SC
20716 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20717echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
20718 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20719echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20720 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20721echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20722 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20723echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
20724 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20725echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
20726 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20727echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
20728 (
20729 cat <<\_ASBOX
ac1cb8d3
VS
20730## ----------------------------------------- ##
20731## Report this to wx-dev@lists.wxwidgets.org ##
20732## ----------------------------------------- ##
a848cd7e
SC
20733_ASBOX
20734 ) |
20735 sed "s/^/$as_me: WARNING: /" >&2
20736 ;;
20737esac
20738echo "$as_me:$LINENO: checking for $ac_header" >&5
20739echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20740if eval "test \"\${$as_ac_Header+set}\" = set"; then
20741 echo $ECHO_N "(cached) $ECHO_C" >&6
20742else
ac1cb8d3 20743 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
20744fi
20745echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20746echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20747
20748fi
20749if test `eval echo '${'$as_ac_Header'}'` = yes; then
20750 cat >>confdefs.h <<_ACEOF
20751#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20752_ACEOF
20753
20754fi
20755
20756done
20757
20758
20759 if test "$ac_cv_header_iostream" = "yes" ; then
20760 :
20761 else
20762 cat >>confdefs.h <<\_ACEOF
20763#define wxUSE_IOSTREAMH 1
20764_ACEOF
20765
20766 fi
20767
20768 ac_ext=c
20769ac_cpp='$CPP $CPPFLAGS'
20770ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20771ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20772ac_compiler_gnu=$ac_cv_c_compiler_gnu
20773
20774
20775
20776
20777 echo "$as_me:$LINENO: checking if C++ compiler supports bool" >&5
20778echo $ECHO_N "checking if C++ compiler supports bool... $ECHO_C" >&6
20779if test "${wx_cv_cpp_bool+set}" = set; then
20780 echo $ECHO_N "(cached) $ECHO_C" >&6
20781else
20782
20783
20784
20785 ac_ext=cc
20786ac_cpp='$CXXCPP $CPPFLAGS'
20787ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20788ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20789ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20790
20791
20792 cat >conftest.$ac_ext <<_ACEOF
20793/* confdefs.h. */
20794_ACEOF
20795cat confdefs.h >>conftest.$ac_ext
20796cat >>conftest.$ac_ext <<_ACEOF
20797/* end confdefs.h. */
20798
20799
20800int
20801main ()
20802{
20803
20804 bool b = true;
20805
20806 return 0;
20807
20808 ;
20809 return 0;
20810}
20811_ACEOF
20812rm -f conftest.$ac_objext
20813if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20814 (eval $ac_compile) 2>conftest.er1
a848cd7e 20815 ac_status=$?
ac1cb8d3
VS
20816 grep -v '^ *+' conftest.er1 >conftest.err
20817 rm -f conftest.er1
20818 cat conftest.err >&5
a848cd7e
SC
20819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20820 (exit $ac_status); } &&
9dd0f6c2 20821 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20823 (eval $ac_try) 2>&5
20824 ac_status=$?
20825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20826 (exit $ac_status); }; } &&
20827 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20829 (eval $ac_try) 2>&5
20830 ac_status=$?
20831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20832 (exit $ac_status); }; }; then
20833
20834 wx_cv_cpp_bool=yes
20835
20836else
20837 echo "$as_me: failed program was:" >&5
20838sed 's/^/| /' conftest.$ac_ext >&5
20839
20840
20841 wx_cv_cpp_bool=no
20842
20843
20844fi
ac1cb8d3 20845rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20846
20847 ac_ext=c
20848ac_cpp='$CPP $CPPFLAGS'
20849ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20850ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20851ac_compiler_gnu=$ac_cv_c_compiler_gnu
20852
20853
20854fi
20855echo "$as_me:$LINENO: result: $wx_cv_cpp_bool" >&5
20856echo "${ECHO_T}$wx_cv_cpp_bool" >&6
20857
20858 if test "$wx_cv_cpp_bool" = "yes"; then
20859 cat >>confdefs.h <<\_ACEOF
20860#define HAVE_BOOL 1
20861_ACEOF
20862
20863 fi
20864
20865
20866
20867 echo "$as_me:$LINENO: checking if C++ compiler supports the explicit keyword" >&5
20868echo $ECHO_N "checking if C++ compiler supports the explicit keyword... $ECHO_C" >&6
20869if test "${wx_cv_explicit+set}" = set; then
20870 echo $ECHO_N "(cached) $ECHO_C" >&6
20871else
20872
20873
20874
20875 ac_ext=cc
20876ac_cpp='$CXXCPP $CPPFLAGS'
20877ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20878ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20879ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20880
20881
20882 cat >conftest.$ac_ext <<_ACEOF
20883/* confdefs.h. */
20884_ACEOF
20885cat confdefs.h >>conftest.$ac_ext
20886cat >>conftest.$ac_ext <<_ACEOF
20887/* end confdefs.h. */
20888
20889 class Foo { public: explicit Foo(int) {} };
20890
20891int
20892main ()
20893{
20894
20895 return 0;
20896
20897 ;
20898 return 0;
20899}
20900_ACEOF
20901rm -f conftest.$ac_objext
20902if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20903 (eval $ac_compile) 2>conftest.er1
a848cd7e 20904 ac_status=$?
ac1cb8d3
VS
20905 grep -v '^ *+' conftest.er1 >conftest.err
20906 rm -f conftest.er1
20907 cat conftest.err >&5
a848cd7e
SC
20908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20909 (exit $ac_status); } &&
9dd0f6c2 20910 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20912 (eval $ac_try) 2>&5
20913 ac_status=$?
20914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20915 (exit $ac_status); }; } &&
20916 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20918 (eval $ac_try) 2>&5
20919 ac_status=$?
20920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20921 (exit $ac_status); }; }; then
20922
20923 cat >conftest.$ac_ext <<_ACEOF
20924/* confdefs.h. */
20925_ACEOF
20926cat confdefs.h >>conftest.$ac_ext
20927cat >>conftest.$ac_ext <<_ACEOF
20928/* end confdefs.h. */
20929
20930 class Foo { public: explicit Foo(int) {} };
20931 static void TakeFoo(const Foo& foo) { }
20932
20933int
20934main ()
20935{
20936
20937 TakeFoo(17);
20938 return 0;
20939
20940 ;
20941 return 0;
20942}
20943_ACEOF
20944rm -f conftest.$ac_objext
20945if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20946 (eval $ac_compile) 2>conftest.er1
a848cd7e 20947 ac_status=$?
ac1cb8d3
VS
20948 grep -v '^ *+' conftest.er1 >conftest.err
20949 rm -f conftest.er1
20950 cat conftest.err >&5
a848cd7e
SC
20951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20952 (exit $ac_status); } &&
9dd0f6c2 20953 { ac_try='test -z "$ac_cxx_werror_flag" || 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 wx_cv_explicit=no
20966else
20967 echo "$as_me: failed program was:" >&5
20968sed 's/^/| /' conftest.$ac_ext >&5
20969
20970wx_cv_explicit=yes
20971
20972fi
ac1cb8d3 20973rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20974
20975else
20976 echo "$as_me: failed program was:" >&5
20977sed 's/^/| /' conftest.$ac_ext >&5
20978
20979wx_cv_explicit=no
20980
20981fi
ac1cb8d3 20982rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20983
20984 ac_ext=c
20985ac_cpp='$CPP $CPPFLAGS'
20986ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20987ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20988ac_compiler_gnu=$ac_cv_c_compiler_gnu
20989
20990
20991fi
20992echo "$as_me:$LINENO: result: $wx_cv_explicit" >&5
20993echo "${ECHO_T}$wx_cv_explicit" >&6
20994
20995 if test "$wx_cv_explicit" = "yes"; then
20996 cat >>confdefs.h <<\_ACEOF
20997#define HAVE_EXPLICIT 1
20998_ACEOF
20999
21000 fi
21001
21002
21003echo "$as_me:$LINENO: checking whether the compiler supports const_cast<>" >&5
21004echo $ECHO_N "checking whether the compiler supports const_cast<>... $ECHO_C" >&6
21005if test "${ac_cv_cxx_const_cast+set}" = set; then
21006 echo $ECHO_N "(cached) $ECHO_C" >&6
21007else
21008
21009
21010 ac_ext=cc
21011ac_cpp='$CXXCPP $CPPFLAGS'
21012ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21013ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21014ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21015
21016 cat >conftest.$ac_ext <<_ACEOF
21017/* confdefs.h. */
21018_ACEOF
21019cat confdefs.h >>conftest.$ac_ext
21020cat >>conftest.$ac_ext <<_ACEOF
21021/* end confdefs.h. */
21022
21023int
21024main ()
21025{
21026int x = 0;const int& y = x;int& z = const_cast<int&>(y);return z;
21027 ;
21028 return 0;
21029}
21030_ACEOF
21031rm -f conftest.$ac_objext
21032if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21033 (eval $ac_compile) 2>conftest.er1
a848cd7e 21034 ac_status=$?
ac1cb8d3
VS
21035 grep -v '^ *+' conftest.er1 >conftest.err
21036 rm -f conftest.er1
21037 cat conftest.err >&5
a848cd7e
SC
21038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21039 (exit $ac_status); } &&
9dd0f6c2 21040 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21042 (eval $ac_try) 2>&5
21043 ac_status=$?
21044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21045 (exit $ac_status); }; } &&
21046 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21048 (eval $ac_try) 2>&5
21049 ac_status=$?
21050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21051 (exit $ac_status); }; }; then
21052 ac_cv_cxx_const_cast=yes
21053else
21054 echo "$as_me: failed program was:" >&5
21055sed 's/^/| /' conftest.$ac_ext >&5
21056
21057ac_cv_cxx_const_cast=no
21058fi
ac1cb8d3 21059rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21060 ac_ext=c
21061ac_cpp='$CPP $CPPFLAGS'
21062ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21063ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21064ac_compiler_gnu=$ac_cv_c_compiler_gnu
21065
21066
21067fi
21068echo "$as_me:$LINENO: result: $ac_cv_cxx_const_cast" >&5
21069echo "${ECHO_T}$ac_cv_cxx_const_cast" >&6
21070if test "$ac_cv_cxx_const_cast" = yes; then
21071
21072cat >>confdefs.h <<\_ACEOF
21073#define HAVE_CONST_CAST
21074_ACEOF
21075
21076fi
21077
7714864e
RL
21078echo "$as_me:$LINENO: checking whether the compiler supports reinterpret_cast<>" >&5
21079echo $ECHO_N "checking whether the compiler supports reinterpret_cast<>... $ECHO_C" >&6
21080if test "${ac_cv_cxx_reinterpret_cast+set}" = set; then
21081 echo $ECHO_N "(cached) $ECHO_C" >&6
21082else
21083
21084
21085 ac_ext=cc
21086ac_cpp='$CXXCPP $CPPFLAGS'
21087ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21088ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21089ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21090
21091 cat >conftest.$ac_ext <<_ACEOF
21092/* confdefs.h. */
21093_ACEOF
21094cat confdefs.h >>conftest.$ac_ext
21095cat >>conftest.$ac_ext <<_ACEOF
21096/* end confdefs.h. */
21097#include <typeinfo>
21098class Base { public : Base () {} virtual void f () = 0;};
21099class Derived : public Base { public : Derived () {} virtual void f () {} };
21100class Unrelated { public : Unrelated () {} };
21101int g (Unrelated&) { return 0; }
21102int
21103main ()
21104{
21105
21106Derived d;Base& b=d;Unrelated& e=reinterpret_cast<Unrelated&>(b);return g(e);
21107 ;
21108 return 0;
21109}
21110_ACEOF
21111rm -f conftest.$ac_objext
21112if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21113 (eval $ac_compile) 2>conftest.er1
21114 ac_status=$?
21115 grep -v '^ *+' conftest.er1 >conftest.err
21116 rm -f conftest.er1
21117 cat conftest.err >&5
21118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21119 (exit $ac_status); } &&
9dd0f6c2 21120 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
7714864e
RL
21121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21122 (eval $ac_try) 2>&5
21123 ac_status=$?
21124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21125 (exit $ac_status); }; } &&
21126 { ac_try='test -s conftest.$ac_objext'
21127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21128 (eval $ac_try) 2>&5
21129 ac_status=$?
21130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21131 (exit $ac_status); }; }; then
21132 ac_cv_cxx_reinterpret_cast=yes
21133else
21134 echo "$as_me: failed program was:" >&5
21135sed 's/^/| /' conftest.$ac_ext >&5
21136
21137ac_cv_cxx_reinterpret_cast=no
21138fi
21139rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21140 ac_ext=c
21141ac_cpp='$CPP $CPPFLAGS'
21142ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21143ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21144ac_compiler_gnu=$ac_cv_c_compiler_gnu
21145
21146
21147fi
21148echo "$as_me:$LINENO: result: $ac_cv_cxx_reinterpret_cast" >&5
21149echo "${ECHO_T}$ac_cv_cxx_reinterpret_cast" >&6
21150if test "$ac_cv_cxx_reinterpret_cast" = yes; then
21151
21152cat >>confdefs.h <<\_ACEOF
21153#define HAVE_REINTERPRET_CAST
21154_ACEOF
21155
21156fi
21157
a848cd7e
SC
21158echo "$as_me:$LINENO: checking whether the compiler supports static_cast<>" >&5
21159echo $ECHO_N "checking whether the compiler supports static_cast<>... $ECHO_C" >&6
21160if test "${ac_cv_cxx_static_cast+set}" = set; then
21161 echo $ECHO_N "(cached) $ECHO_C" >&6
21162else
21163
21164
21165 ac_ext=cc
21166ac_cpp='$CXXCPP $CPPFLAGS'
21167ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21168ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21169ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21170
21171 cat >conftest.$ac_ext <<_ACEOF
21172/* confdefs.h. */
21173_ACEOF
21174cat confdefs.h >>conftest.$ac_ext
21175cat >>conftest.$ac_ext <<_ACEOF
21176/* end confdefs.h. */
21177#include <typeinfo>
21178class Base { public : Base () {} virtual void f () = 0; };
21179class Derived : public Base { public : Derived () {} virtual void f () {} };
21180int g (Derived&) { return 0; }
21181int
21182main ()
21183{
21184
21185Derived d; Base& b = d; Derived& s = static_cast<Derived&> (b); return g (s);
21186 ;
21187 return 0;
21188}
21189_ACEOF
21190rm -f conftest.$ac_objext
21191if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21192 (eval $ac_compile) 2>conftest.er1
a848cd7e 21193 ac_status=$?
ac1cb8d3
VS
21194 grep -v '^ *+' conftest.er1 >conftest.err
21195 rm -f conftest.er1
21196 cat conftest.err >&5
a848cd7e
SC
21197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21198 (exit $ac_status); } &&
9dd0f6c2 21199 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21201 (eval $ac_try) 2>&5
21202 ac_status=$?
21203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21204 (exit $ac_status); }; } &&
21205 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21207 (eval $ac_try) 2>&5
21208 ac_status=$?
21209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21210 (exit $ac_status); }; }; then
21211 ac_cv_cxx_static_cast=yes
21212else
21213 echo "$as_me: failed program was:" >&5
21214sed 's/^/| /' conftest.$ac_ext >&5
21215
21216ac_cv_cxx_static_cast=no
21217fi
ac1cb8d3 21218rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21219 ac_ext=c
21220ac_cpp='$CPP $CPPFLAGS'
21221ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21222ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21223ac_compiler_gnu=$ac_cv_c_compiler_gnu
21224
21225
21226fi
21227echo "$as_me:$LINENO: result: $ac_cv_cxx_static_cast" >&5
21228echo "${ECHO_T}$ac_cv_cxx_static_cast" >&6
21229if test "$ac_cv_cxx_static_cast" = yes; then
21230
21231cat >>confdefs.h <<\_ACEOF
21232#define HAVE_STATIC_CAST
21233_ACEOF
21234
21235fi
21236
21237
0a08f02a
MB
21238if test "$wxUSE_UNICODE" = "yes" -a \
21239 \( "$wxUSE_STD_STRING" = "yes" -o "$wxUSE_STL" = "yes" \); then
a848cd7e
SC
21240 ac_ext=cc
21241ac_cpp='$CXXCPP $CPPFLAGS'
21242ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21243ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21244ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21245
21246
0a08f02a
MB
21247 echo "$as_me:$LINENO: checking for std::wstring in <string>" >&5
21248echo $ECHO_N "checking for std::wstring in <string>... $ECHO_C" >&6
a848cd7e
SC
21249 cat >conftest.$ac_ext <<_ACEOF
21250/* confdefs.h. */
21251_ACEOF
21252cat confdefs.h >>conftest.$ac_ext
21253cat >>conftest.$ac_ext <<_ACEOF
21254/* end confdefs.h. */
21255#include <string>
a848cd7e
SC
21256int
21257main ()
21258{
0a08f02a 21259std::wstring foo;
a848cd7e
SC
21260 ;
21261 return 0;
21262}
21263_ACEOF
21264rm -f conftest.$ac_objext
21265if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21266 (eval $ac_compile) 2>conftest.er1
a848cd7e 21267 ac_status=$?
ac1cb8d3
VS
21268 grep -v '^ *+' conftest.er1 >conftest.err
21269 rm -f conftest.er1
21270 cat conftest.err >&5
a848cd7e
SC
21271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21272 (exit $ac_status); } &&
9dd0f6c2 21273 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21275 (eval $ac_try) 2>&5
21276 ac_status=$?
21277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21278 (exit $ac_status); }; } &&
21279 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21281 (eval $ac_try) 2>&5
21282 ac_status=$?
21283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21284 (exit $ac_status); }; }; then
21285 echo "$as_me:$LINENO: result: yes" >&5
21286echo "${ECHO_T}yes" >&6
0a08f02a
MB
21287 cat >>confdefs.h <<\_ACEOF
21288#define HAVE_STD_WSTRING 1
21289_ACEOF
21290
a848cd7e
SC
21291else
21292 echo "$as_me: failed program was:" >&5
21293sed 's/^/| /' conftest.$ac_ext >&5
21294
21295echo "$as_me:$LINENO: result: no" >&5
21296echo "${ECHO_T}no" >&6
0a08f02a
MB
21297 echo "$as_me:$LINENO: checking if std::basic_string<wchar_t> works" >&5
21298echo $ECHO_N "checking if std::basic_string<wchar_t> works... $ECHO_C" >&6
21299 cat >conftest.$ac_ext <<_ACEOF
21300/* confdefs.h. */
21301_ACEOF
21302cat confdefs.h >>conftest.$ac_ext
21303cat >>conftest.$ac_ext <<_ACEOF
21304/* end confdefs.h. */
21305
21306 #ifdef HAVE_WCHAR_H
21307 # ifdef __CYGWIN__
21308 # include <stddef.h>
21309 # endif
21310 # include <wchar.h>
21311 #endif
21312 #ifdef HAVE_STDLIB_H
21313 # include <stdlib.h>
21314 #endif
21315 #include <stdio.h>
21316 #include <string>
21317
21318int
21319main ()
21320{
21321std::basic_string<wchar_t> foo;
21322 const wchar_t* dummy = foo.c_str();
21323 ;
21324 return 0;
21325}
21326_ACEOF
21327rm -f conftest.$ac_objext
21328if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21329 (eval $ac_compile) 2>conftest.er1
21330 ac_status=$?
21331 grep -v '^ *+' conftest.er1 >conftest.err
21332 rm -f conftest.er1
21333 cat conftest.err >&5
21334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21335 (exit $ac_status); } &&
21336 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21338 (eval $ac_try) 2>&5
21339 ac_status=$?
21340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21341 (exit $ac_status); }; } &&
21342 { ac_try='test -s conftest.$ac_objext'
21343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21344 (eval $ac_try) 2>&5
21345 ac_status=$?
21346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21347 (exit $ac_status); }; }; then
21348 echo "$as_me:$LINENO: result: yes" >&5
21349echo "${ECHO_T}yes" >&6
21350else
21351 echo "$as_me: failed program was:" >&5
21352sed 's/^/| /' conftest.$ac_ext >&5
21353
21354echo "$as_me:$LINENO: result: no" >&5
21355echo "${ECHO_T}no" >&6
21356 { { echo "$as_me:$LINENO: error: Can't compile without unicode string class" >&5
21357echo "$as_me: error: Can't compile without unicode string class" >&2;}
a848cd7e 21358 { (exit 1); exit 1; }; }
0a08f02a 21359
a848cd7e 21360fi
ac1cb8d3 21361rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 21362
0a08f02a
MB
21363fi
21364rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21365
21366 ac_ext=c
21367ac_cpp='$CPP $CPPFLAGS'
21368ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21369ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21370ac_compiler_gnu=$ac_cv_c_compiler_gnu
21371
21372fi
21373
21374if test "$wxUSE_STL" = "yes"; then
21375 ac_ext=cc
21376ac_cpp='$CXXCPP $CPPFLAGS'
21377ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21378ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21379ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21380
21381
21382 echo "$as_me:$LINENO: checking for basic STL functionality" >&5
21383echo $ECHO_N "checking for basic STL functionality... $ECHO_C" >&6
a848cd7e
SC
21384 cat >conftest.$ac_ext <<_ACEOF
21385/* confdefs.h. */
21386_ACEOF
21387cat confdefs.h >>conftest.$ac_ext
21388cat >>conftest.$ac_ext <<_ACEOF
21389/* end confdefs.h. */
21390#include <string>
0a08f02a
MB
21391 #include <functional>
21392 #include <algorithm>
21393 #include <vector>
21394 #include <list>
a848cd7e
SC
21395int
21396main ()
21397{
0a08f02a
MB
21398std::vector<int> moo;
21399 std::list<int> foo;
21400 std::vector<int>::iterator it =
21401 std::find_if(moo.begin(), moo.end(),
21402 std::bind2nd(std::less<int>(), 3));
a848cd7e
SC
21403 ;
21404 return 0;
21405}
21406_ACEOF
21407rm -f conftest.$ac_objext
21408if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21409 (eval $ac_compile) 2>conftest.er1
a848cd7e 21410 ac_status=$?
ac1cb8d3
VS
21411 grep -v '^ *+' conftest.er1 >conftest.err
21412 rm -f conftest.er1
21413 cat conftest.err >&5
a848cd7e
SC
21414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21415 (exit $ac_status); } &&
9dd0f6c2 21416 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21418 (eval $ac_try) 2>&5
21419 ac_status=$?
21420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21421 (exit $ac_status); }; } &&
21422 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21424 (eval $ac_try) 2>&5
21425 ac_status=$?
21426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21427 (exit $ac_status); }; }; then
21428 echo "$as_me:$LINENO: result: yes" >&5
21429echo "${ECHO_T}yes" >&6
a848cd7e
SC
21430else
21431 echo "$as_me: failed program was:" >&5
21432sed 's/^/| /' conftest.$ac_ext >&5
21433
21434echo "$as_me:$LINENO: result: no" >&5
21435echo "${ECHO_T}no" >&6
0a08f02a
MB
21436 { { echo "$as_me:$LINENO: error: Basic STL functionality missing" >&5
21437echo "$as_me: error: Basic STL functionality missing" >&2;}
21438 { (exit 1); exit 1; }; }
a848cd7e 21439fi
ac1cb8d3 21440rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21441
21442 echo "$as_me:$LINENO: checking for compliant std::string::compare" >&5
21443echo $ECHO_N "checking for compliant std::string::compare... $ECHO_C" >&6
21444 cat >conftest.$ac_ext <<_ACEOF
21445/* confdefs.h. */
21446_ACEOF
21447cat confdefs.h >>conftest.$ac_ext
21448cat >>conftest.$ac_ext <<_ACEOF
21449/* end confdefs.h. */
21450#include <string>
21451int
21452main ()
21453{
21454std::string foo, bar;
21455 foo.compare(bar);
21456 foo.compare(1, 1, bar);
21457 foo.compare(1, 1, bar, 1, 1);
21458 foo.compare("");
21459 foo.compare(1, 1, "");
21460 foo.compare(1, 1, "", 2);
21461 ;
21462 return 0;
21463}
21464_ACEOF
21465rm -f conftest.$ac_objext
21466if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21467 (eval $ac_compile) 2>conftest.er1
a848cd7e 21468 ac_status=$?
ac1cb8d3
VS
21469 grep -v '^ *+' conftest.er1 >conftest.err
21470 rm -f conftest.er1
21471 cat conftest.err >&5
a848cd7e
SC
21472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21473 (exit $ac_status); } &&
9dd0f6c2 21474 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21476 (eval $ac_try) 2>&5
21477 ac_status=$?
21478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21479 (exit $ac_status); }; } &&
21480 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21482 (eval $ac_try) 2>&5
21483 ac_status=$?
21484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21485 (exit $ac_status); }; }; then
21486 echo "$as_me:$LINENO: result: yes" >&5
21487echo "${ECHO_T}yes" >&6
21488 cat >>confdefs.h <<\_ACEOF
21489#define HAVE_STD_STRING_COMPARE 1
21490_ACEOF
21491
21492else
21493 echo "$as_me: failed program was:" >&5
21494sed 's/^/| /' conftest.$ac_ext >&5
21495
21496echo "$as_me:$LINENO: result: no" >&5
21497echo "${ECHO_T}no" >&6
21498fi
ac1cb8d3 21499rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
21500
21501 if test "${ac_cv_header_hash_map+set}" = set; then
21502 echo "$as_me:$LINENO: checking for hash_map" >&5
21503echo $ECHO_N "checking for hash_map... $ECHO_C" >&6
21504if test "${ac_cv_header_hash_map+set}" = set; then
21505 echo $ECHO_N "(cached) $ECHO_C" >&6
21506fi
21507echo "$as_me:$LINENO: result: $ac_cv_header_hash_map" >&5
21508echo "${ECHO_T}$ac_cv_header_hash_map" >&6
21509else
21510 # Is the header compilable?
21511echo "$as_me:$LINENO: checking hash_map usability" >&5
21512echo $ECHO_N "checking hash_map usability... $ECHO_C" >&6
21513cat >conftest.$ac_ext <<_ACEOF
21514/* confdefs.h. */
21515_ACEOF
21516cat confdefs.h >>conftest.$ac_ext
21517cat >>conftest.$ac_ext <<_ACEOF
21518/* end confdefs.h. */
21519$ac_includes_default
21520#include <hash_map>
21521_ACEOF
21522rm -f conftest.$ac_objext
21523if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21524 (eval $ac_compile) 2>conftest.er1
bdcade0a 21525 ac_status=$?
ac1cb8d3
VS
21526 grep -v '^ *+' conftest.er1 >conftest.err
21527 rm -f conftest.er1
21528 cat conftest.err >&5
bdcade0a
MB
21529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21530 (exit $ac_status); } &&
9dd0f6c2 21531 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21533 (eval $ac_try) 2>&5
21534 ac_status=$?
21535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21536 (exit $ac_status); }; } &&
21537 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
21538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21539 (eval $ac_try) 2>&5
21540 ac_status=$?
21541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21542 (exit $ac_status); }; }; then
21543 ac_header_compiler=yes
21544else
21545 echo "$as_me: failed program was:" >&5
21546sed 's/^/| /' conftest.$ac_ext >&5
21547
21548ac_header_compiler=no
21549fi
ac1cb8d3 21550rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
21551echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21552echo "${ECHO_T}$ac_header_compiler" >&6
21553
21554# Is the header present?
21555echo "$as_me:$LINENO: checking hash_map presence" >&5
21556echo $ECHO_N "checking hash_map presence... $ECHO_C" >&6
21557cat >conftest.$ac_ext <<_ACEOF
21558/* confdefs.h. */
21559_ACEOF
21560cat confdefs.h >>conftest.$ac_ext
21561cat >>conftest.$ac_ext <<_ACEOF
21562/* end confdefs.h. */
21563#include <hash_map>
21564_ACEOF
21565if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21566 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21567 ac_status=$?
21568 grep -v '^ *+' conftest.er1 >conftest.err
21569 rm -f conftest.er1
21570 cat conftest.err >&5
21571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21572 (exit $ac_status); } >/dev/null; then
21573 if test -s conftest.err; then
21574 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 21575 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
bdcade0a
MB
21576 else
21577 ac_cpp_err=
21578 fi
21579else
21580 ac_cpp_err=yes
21581fi
21582if test -z "$ac_cpp_err"; then
21583 ac_header_preproc=yes
21584else
21585 echo "$as_me: failed program was:" >&5
21586sed 's/^/| /' conftest.$ac_ext >&5
21587
21588 ac_header_preproc=no
21589fi
21590rm -f conftest.err conftest.$ac_ext
21591echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21592echo "${ECHO_T}$ac_header_preproc" >&6
21593
21594# So? What about this header?
ac1cb8d3
VS
21595case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
21596 yes:no: )
bdcade0a
MB
21597 { echo "$as_me:$LINENO: WARNING: hash_map: accepted by the compiler, rejected by the preprocessor!" >&5
21598echo "$as_me: WARNING: hash_map: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
21599 { echo "$as_me:$LINENO: WARNING: hash_map: proceeding with the compiler's result" >&5
21600echo "$as_me: WARNING: hash_map: proceeding with the compiler's result" >&2;}
21601 ac_header_preproc=yes
bdcade0a 21602 ;;
ac1cb8d3 21603 no:yes:* )
bdcade0a
MB
21604 { echo "$as_me:$LINENO: WARNING: hash_map: present but cannot be compiled" >&5
21605echo "$as_me: WARNING: hash_map: present but cannot be compiled" >&2;}
ac1cb8d3
VS
21606 { echo "$as_me:$LINENO: WARNING: hash_map: check for missing prerequisite headers?" >&5
21607echo "$as_me: WARNING: hash_map: check for missing prerequisite headers?" >&2;}
21608 { echo "$as_me:$LINENO: WARNING: hash_map: see the Autoconf documentation" >&5
21609echo "$as_me: WARNING: hash_map: see the Autoconf documentation" >&2;}
21610 { echo "$as_me:$LINENO: WARNING: hash_map: section \"Present But Cannot Be Compiled\"" >&5
21611echo "$as_me: WARNING: hash_map: section \"Present But Cannot Be Compiled\"" >&2;}
bdcade0a
MB
21612 { echo "$as_me:$LINENO: WARNING: hash_map: proceeding with the preprocessor's result" >&5
21613echo "$as_me: WARNING: hash_map: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
21614 { echo "$as_me:$LINENO: WARNING: hash_map: in the future, the compiler will take precedence" >&5
21615echo "$as_me: WARNING: hash_map: in the future, the compiler will take precedence" >&2;}
bdcade0a
MB
21616 (
21617 cat <<\_ASBOX
ac1cb8d3
VS
21618## ----------------------------------------- ##
21619## Report this to wx-dev@lists.wxwidgets.org ##
21620## ----------------------------------------- ##
bdcade0a
MB
21621_ASBOX
21622 ) |
21623 sed "s/^/$as_me: WARNING: /" >&2
21624 ;;
21625esac
21626echo "$as_me:$LINENO: checking for hash_map" >&5
21627echo $ECHO_N "checking for hash_map... $ECHO_C" >&6
21628if test "${ac_cv_header_hash_map+set}" = set; then
21629 echo $ECHO_N "(cached) $ECHO_C" >&6
21630else
21631 ac_cv_header_hash_map=$ac_header_preproc
21632fi
21633echo "$as_me:$LINENO: result: $ac_cv_header_hash_map" >&5
21634echo "${ECHO_T}$ac_cv_header_hash_map" >&6
21635
21636fi
21637if test $ac_cv_header_hash_map = yes; then
21638 echo "$as_me:$LINENO: checking for hash_map and hash_set" >&5
21639echo $ECHO_N "checking for hash_map and hash_set... $ECHO_C" >&6
21640 cat >conftest.$ac_ext <<_ACEOF
21641/* confdefs.h. */
21642_ACEOF
21643cat confdefs.h >>conftest.$ac_ext
21644cat >>conftest.$ac_ext <<_ACEOF
21645/* end confdefs.h. */
21646#include <hash_map>
21647 #include <hash_set>
21648int
21649main ()
21650{
21651std::hash_map<double*, char*, std::hash<double*>, std::equal_to<double*> > test1;
21652 std::hash_set<char*, std::hash<char*>, std::equal_to<char*> > test2;
21653 ;
21654 return 0;
21655}
21656_ACEOF
21657rm -f conftest.$ac_objext
21658if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21659 (eval $ac_compile) 2>conftest.er1
bdcade0a 21660 ac_status=$?
ac1cb8d3
VS
21661 grep -v '^ *+' conftest.er1 >conftest.err
21662 rm -f conftest.er1
21663 cat conftest.err >&5
bdcade0a
MB
21664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21665 (exit $ac_status); } &&
9dd0f6c2 21666 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21668 (eval $ac_try) 2>&5
21669 ac_status=$?
21670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21671 (exit $ac_status); }; } &&
21672 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
21673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21674 (eval $ac_try) 2>&5
21675 ac_status=$?
21676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21677 (exit $ac_status); }; }; then
21678 echo "$as_me:$LINENO: result: yes" >&5
21679echo "${ECHO_T}yes" >&6
21680 cat >>confdefs.h <<\_ACEOF
21681#define HAVE_HASH_MAP 1
21682_ACEOF
21683
21684 cat >>confdefs.h <<\_ACEOF
21685#define HAVE_STD_HASH_MAP 1
21686_ACEOF
21687
21688else
21689 echo "$as_me: failed program was:" >&5
21690sed 's/^/| /' conftest.$ac_ext >&5
21691
21692echo "$as_me:$LINENO: result: no" >&5
21693echo "${ECHO_T}no" >&6
21694fi
ac1cb8d3 21695rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
21696
21697fi
21698
21699
21700
21701 if test "${ac_cv_header_ext_hash_map+set}" = set; then
21702 echo "$as_me:$LINENO: checking for ext/hash_map" >&5
21703echo $ECHO_N "checking for ext/hash_map... $ECHO_C" >&6
21704if test "${ac_cv_header_ext_hash_map+set}" = set; then
21705 echo $ECHO_N "(cached) $ECHO_C" >&6
21706fi
21707echo "$as_me:$LINENO: result: $ac_cv_header_ext_hash_map" >&5
21708echo "${ECHO_T}$ac_cv_header_ext_hash_map" >&6
21709else
21710 # Is the header compilable?
21711echo "$as_me:$LINENO: checking ext/hash_map usability" >&5
21712echo $ECHO_N "checking ext/hash_map usability... $ECHO_C" >&6
21713cat >conftest.$ac_ext <<_ACEOF
21714/* confdefs.h. */
21715_ACEOF
21716cat confdefs.h >>conftest.$ac_ext
21717cat >>conftest.$ac_ext <<_ACEOF
21718/* end confdefs.h. */
21719$ac_includes_default
21720#include <ext/hash_map>
21721_ACEOF
21722rm -f conftest.$ac_objext
21723if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21724 (eval $ac_compile) 2>conftest.er1
bdcade0a 21725 ac_status=$?
ac1cb8d3
VS
21726 grep -v '^ *+' conftest.er1 >conftest.err
21727 rm -f conftest.er1
21728 cat conftest.err >&5
bdcade0a
MB
21729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21730 (exit $ac_status); } &&
9dd0f6c2 21731 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21733 (eval $ac_try) 2>&5
21734 ac_status=$?
21735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21736 (exit $ac_status); }; } &&
21737 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
21738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21739 (eval $ac_try) 2>&5
21740 ac_status=$?
21741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21742 (exit $ac_status); }; }; then
21743 ac_header_compiler=yes
21744else
21745 echo "$as_me: failed program was:" >&5
21746sed 's/^/| /' conftest.$ac_ext >&5
21747
21748ac_header_compiler=no
21749fi
ac1cb8d3 21750rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
21751echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21752echo "${ECHO_T}$ac_header_compiler" >&6
21753
21754# Is the header present?
21755echo "$as_me:$LINENO: checking ext/hash_map presence" >&5
21756echo $ECHO_N "checking ext/hash_map presence... $ECHO_C" >&6
21757cat >conftest.$ac_ext <<_ACEOF
21758/* confdefs.h. */
21759_ACEOF
21760cat confdefs.h >>conftest.$ac_ext
21761cat >>conftest.$ac_ext <<_ACEOF
21762/* end confdefs.h. */
21763#include <ext/hash_map>
21764_ACEOF
21765if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21766 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21767 ac_status=$?
21768 grep -v '^ *+' conftest.er1 >conftest.err
21769 rm -f conftest.er1
21770 cat conftest.err >&5
21771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21772 (exit $ac_status); } >/dev/null; then
21773 if test -s conftest.err; then
21774 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 21775 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
bdcade0a
MB
21776 else
21777 ac_cpp_err=
21778 fi
21779else
21780 ac_cpp_err=yes
21781fi
21782if test -z "$ac_cpp_err"; then
21783 ac_header_preproc=yes
21784else
21785 echo "$as_me: failed program was:" >&5
21786sed 's/^/| /' conftest.$ac_ext >&5
21787
21788 ac_header_preproc=no
21789fi
21790rm -f conftest.err conftest.$ac_ext
21791echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21792echo "${ECHO_T}$ac_header_preproc" >&6
21793
21794# So? What about this header?
ac1cb8d3
VS
21795case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
21796 yes:no: )
bdcade0a
MB
21797 { echo "$as_me:$LINENO: WARNING: ext/hash_map: accepted by the compiler, rejected by the preprocessor!" >&5
21798echo "$as_me: WARNING: ext/hash_map: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
21799 { echo "$as_me:$LINENO: WARNING: ext/hash_map: proceeding with the compiler's result" >&5
21800echo "$as_me: WARNING: ext/hash_map: proceeding with the compiler's result" >&2;}
21801 ac_header_preproc=yes
bdcade0a 21802 ;;
ac1cb8d3 21803 no:yes:* )
bdcade0a
MB
21804 { echo "$as_me:$LINENO: WARNING: ext/hash_map: present but cannot be compiled" >&5
21805echo "$as_me: WARNING: ext/hash_map: present but cannot be compiled" >&2;}
ac1cb8d3
VS
21806 { echo "$as_me:$LINENO: WARNING: ext/hash_map: check for missing prerequisite headers?" >&5
21807echo "$as_me: WARNING: ext/hash_map: check for missing prerequisite headers?" >&2;}
21808 { echo "$as_me:$LINENO: WARNING: ext/hash_map: see the Autoconf documentation" >&5
21809echo "$as_me: WARNING: ext/hash_map: see the Autoconf documentation" >&2;}
21810 { echo "$as_me:$LINENO: WARNING: ext/hash_map: section \"Present But Cannot Be Compiled\"" >&5
21811echo "$as_me: WARNING: ext/hash_map: section \"Present But Cannot Be Compiled\"" >&2;}
bdcade0a
MB
21812 { echo "$as_me:$LINENO: WARNING: ext/hash_map: proceeding with the preprocessor's result" >&5
21813echo "$as_me: WARNING: ext/hash_map: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
21814 { echo "$as_me:$LINENO: WARNING: ext/hash_map: in the future, the compiler will take precedence" >&5
21815echo "$as_me: WARNING: ext/hash_map: in the future, the compiler will take precedence" >&2;}
bdcade0a
MB
21816 (
21817 cat <<\_ASBOX
ac1cb8d3
VS
21818## ----------------------------------------- ##
21819## Report this to wx-dev@lists.wxwidgets.org ##
21820## ----------------------------------------- ##
bdcade0a
MB
21821_ASBOX
21822 ) |
21823 sed "s/^/$as_me: WARNING: /" >&2
21824 ;;
21825esac
21826echo "$as_me:$LINENO: checking for ext/hash_map" >&5
21827echo $ECHO_N "checking for ext/hash_map... $ECHO_C" >&6
21828if test "${ac_cv_header_ext_hash_map+set}" = set; then
21829 echo $ECHO_N "(cached) $ECHO_C" >&6
21830else
21831 ac_cv_header_ext_hash_map=$ac_header_preproc
21832fi
21833echo "$as_me:$LINENO: result: $ac_cv_header_ext_hash_map" >&5
21834echo "${ECHO_T}$ac_cv_header_ext_hash_map" >&6
21835
21836fi
21837if test $ac_cv_header_ext_hash_map = yes; then
21838 echo "$as_me:$LINENO: checking for hash_map and hash_set" >&5
21839echo $ECHO_N "checking for hash_map and hash_set... $ECHO_C" >&6
21840 cat >conftest.$ac_ext <<_ACEOF
21841/* confdefs.h. */
21842_ACEOF
21843cat confdefs.h >>conftest.$ac_ext
21844cat >>conftest.$ac_ext <<_ACEOF
21845/* end confdefs.h. */
21846#include <ext/hash_map>
21847 #include <ext/hash_set>
21848int
21849main ()
21850{
21851__gnu_cxx::hash_map<double*, char*, __gnu_cxx::hash<double*>, std::equal_to<double*> > test1;
21852 __gnu_cxx::hash_set<char*, __gnu_cxx::hash<char*>, std::equal_to<char*> > test2;
21853 ;
21854 return 0;
21855}
21856_ACEOF
21857rm -f conftest.$ac_objext
21858if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21859 (eval $ac_compile) 2>conftest.er1
bdcade0a 21860 ac_status=$?
ac1cb8d3
VS
21861 grep -v '^ *+' conftest.er1 >conftest.err
21862 rm -f conftest.er1
21863 cat conftest.err >&5
bdcade0a
MB
21864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21865 (exit $ac_status); } &&
9dd0f6c2 21866 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21868 (eval $ac_try) 2>&5
21869 ac_status=$?
21870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21871 (exit $ac_status); }; } &&
21872 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
21873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21874 (eval $ac_try) 2>&5
21875 ac_status=$?
21876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21877 (exit $ac_status); }; }; then
21878 echo "$as_me:$LINENO: result: yes" >&5
21879echo "${ECHO_T}yes" >&6
21880 cat >>confdefs.h <<\_ACEOF
21881#define HAVE_EXT_HASH_MAP 1
21882_ACEOF
21883
21884 cat >>confdefs.h <<\_ACEOF
21885#define HAVE_GNU_CXX_HASH_MAP 1
21886_ACEOF
21887
21888else
21889 echo "$as_me: failed program was:" >&5
21890sed 's/^/| /' conftest.$ac_ext >&5
21891
21892echo "$as_me:$LINENO: result: no" >&5
21893echo "${ECHO_T}no" >&6
21894fi
ac1cb8d3 21895rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
21896
21897fi
21898
21899
a848cd7e
SC
21900
21901 ac_ext=c
21902ac_cpp='$CPP $CPPFLAGS'
21903ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21904ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21905ac_compiler_gnu=$ac_cv_c_compiler_gnu
21906
21907fi
21908
21909
21910SEARCH_INCLUDE="\
21911 /usr/local/include \
21912 \
21913 /usr/Motif-2.1/include \
21914 /usr/Motif-1.2/include \
21915 /usr/include/Motif1.2 \
21916 /opt/xpm/include/X11 \
21917 /opt/GBxpm/include/ \
21918 /opt/GBxpm/X11/include/ \
21919 \
21920 /usr/dt/include \
21921 /usr/openwin/include \
21922 \
21923 /usr/include/Xm \
21924 \
21925 /usr/X11R6/include \
21926 /usr/X11R6.4/include \
21927 /usr/X11R5/include \
21928 /usr/X11R4/include \
21929 \
21930 /usr/include/X11R6 \
21931 /usr/include/X11R5 \
21932 /usr/include/X11R4 \
21933 \
21934 /usr/local/X11R6/include \
21935 /usr/local/X11R5/include \
21936 /usr/local/X11R4/include \
21937 \
21938 /usr/local/include/X11R6 \
21939 /usr/local/include/X11R5 \
21940 /usr/local/include/X11R4 \
21941 \
21942 /usr/X11/include \
21943 /usr/include/X11 \
21944 /usr/local/X11/include \
21945 /usr/local/include/X11 \
21946 \
21947 /usr/X386/include \
21948 /usr/x386/include \
21949 /usr/XFree86/include/X11 \
21950 \
21951 X:/XFree86/include \
21952 X:/XFree86/include/X11 \
21953 \
21954 /usr/include/gtk \
21955 /usr/local/include/gtk \
21956 /usr/include/glib \
21957 /usr/local/include/glib \
21958 \
21959 /usr/include/qt \
21960 /usr/local/include/qt \
21961 \
21962 /usr/local/arm/3.3.2/include \
21963 \
21964 /usr/include/windows \
21965 /usr/include/wine \
21966 /usr/local/include/wine \
21967 \
21968 /usr/unsupported/include \
21969 /usr/athena/include \
21970 /usr/local/x11r5/include \
21971 /usr/lpp/Xamples/include \
21972 \
21973 /usr/openwin/share/include"
21974
07158944 21975SEARCH_LIB="/usr/lib /usr/lib32 /usr/lib64 /usr/X11R6/lib64 `echo "$SEARCH_INCLUDE" | sed s/include/lib/g`"
a848cd7e
SC
21976
21977
21978cat >confcache <<\_ACEOF
21979# This file is a shell script that caches the results of configure
21980# tests run on this system so they can be shared between configure
21981# scripts and configure runs, see configure's option --config-cache.
21982# It is not useful on other systems. If it contains results you don't
21983# want to keep, you may remove or edit it.
21984#
21985# config.status only pays attention to the cache file if you give it
21986# the --recheck option to rerun configure.
21987#
21988# `ac_cv_env_foo' variables (set or unset) will be overridden when
21989# loading this file, other *unset* `ac_cv_foo' will be assigned the
21990# following values.
21991
21992_ACEOF
21993
21994# The following way of writing the cache mishandles newlines in values,
21995# but we know of no workaround that is simple, portable, and efficient.
21996# So, don't put newlines in cache variables' values.
21997# Ultrix sh set writes to stderr and can't be redirected directly,
21998# and sets the high bit in the cache file unless we assign to the vars.
21999{
22000 (set) 2>&1 |
22001 case `(ac_space=' '; set | grep ac_space) 2>&1` in
22002 *ac_space=\ *)
22003 # `set' does not quote correctly, so add quotes (double-quote
22004 # substitution turns \\\\ into \\, and sed turns \\ into \).
22005 sed -n \
ac1cb8d3
VS
22006 "s/'/'\\\\''/g;
22007 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a848cd7e
SC
22008 ;;
22009 *)
22010 # `set' quotes correctly as required by POSIX, so do not add quotes.
22011 sed -n \
ac1cb8d3 22012 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
22013 ;;
22014 esac;
22015} |
22016 sed '
22017 t clear
22018 : clear
22019 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22020 t end
22021 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22022 : end' >>confcache
22023if diff $cache_file confcache >/dev/null 2>&1; then :; else
22024 if test -w $cache_file; then
22025 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
22026 cat confcache >$cache_file
22027 else
22028 echo "not updating unwritable cache $cache_file"
22029 fi
22030fi
22031rm -f confcache
22032
22033if test "$USE_LINUX" = 1 -o "$USE_GNU" = 1; then
22034 echo "$as_me:$LINENO: checking for glibc 2.1 or later" >&5
22035echo $ECHO_N "checking for glibc 2.1 or later... $ECHO_C" >&6
22036if test "${wx_cv_lib_glibc21+set}" = set; then
22037 echo $ECHO_N "(cached) $ECHO_C" >&6
22038else
22039
22040 cat >conftest.$ac_ext <<_ACEOF
22041/* confdefs.h. */
22042_ACEOF
22043cat confdefs.h >>conftest.$ac_ext
22044cat >>conftest.$ac_ext <<_ACEOF
22045/* end confdefs.h. */
22046#include <features.h>
22047int
22048main ()
22049{
22050
22051 #if (__GLIBC__ < 2) || (__GLIBC_MINOR__ < 1)
22052 #error not glibc2.1
22053 #endif
22054
22055 ;
22056 return 0;
22057}
22058_ACEOF
22059rm -f conftest.$ac_objext
22060if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22061 (eval $ac_compile) 2>conftest.er1
a848cd7e 22062 ac_status=$?
ac1cb8d3
VS
22063 grep -v '^ *+' conftest.er1 >conftest.err
22064 rm -f conftest.er1
22065 cat conftest.err >&5
a848cd7e
SC
22066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22067 (exit $ac_status); } &&
9dd0f6c2 22068 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
22069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22070 (eval $ac_try) 2>&5
22071 ac_status=$?
22072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22073 (exit $ac_status); }; } &&
22074 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22076 (eval $ac_try) 2>&5
22077 ac_status=$?
22078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22079 (exit $ac_status); }; }; then
22080
22081 wx_cv_lib_glibc21=yes
22082
22083else
22084 echo "$as_me: failed program was:" >&5
22085sed 's/^/| /' conftest.$ac_ext >&5
22086
22087
22088 wx_cv_lib_glibc21=no
22089
22090
22091fi
ac1cb8d3 22092rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22093
22094fi
22095echo "$as_me:$LINENO: result: $wx_cv_lib_glibc21" >&5
22096echo "${ECHO_T}$wx_cv_lib_glibc21" >&6
22097 if test "$wx_cv_lib_glibc21" = "yes"; then
22098 cat >>confdefs.h <<\_ACEOF
22099#define wxHAVE_GLIBC2 1
22100_ACEOF
22101
22102 fi
22103fi
22104
22105if test "x$wx_cv_lib_glibc21" = "xyes"; then
22106 if test "$wxUSE_UNICODE" = "yes" -o "$wxUSE_THREADS" = "yes"; then
22107 cat >>confdefs.h <<\_ACEOF
22108#define _GNU_SOURCE 1
22109_ACEOF
22110
22111 fi
22112fi
22113
22114
22115
22116if test "$wxUSE_REGEX" != "no"; then
22117 cat >>confdefs.h <<\_ACEOF
22118#define wxUSE_REGEX 1
22119_ACEOF
22120
22121
22122 if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_REGEX" = "yes"; then
22123 { echo "$as_me:$LINENO: WARNING: Defaulting to the the builtin regex library for Unicode build." >&5
22124echo "$as_me: WARNING: Defaulting to the the builtin regex library for Unicode build." >&2;}
22125 wxUSE_REGEX=builtin
22126 fi
22127
22128 if test "$wxUSE_REGEX" = "sys" -o "$wxUSE_REGEX" = "yes" ; then
22129 if test "${ac_cv_header_regex_h+set}" = set; then
22130 echo "$as_me:$LINENO: checking for regex.h" >&5
22131echo $ECHO_N "checking for regex.h... $ECHO_C" >&6
22132if test "${ac_cv_header_regex_h+set}" = set; then
22133 echo $ECHO_N "(cached) $ECHO_C" >&6
22134fi
22135echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
22136echo "${ECHO_T}$ac_cv_header_regex_h" >&6
22137else
22138 # Is the header compilable?
22139echo "$as_me:$LINENO: checking regex.h usability" >&5
22140echo $ECHO_N "checking regex.h usability... $ECHO_C" >&6
22141cat >conftest.$ac_ext <<_ACEOF
22142/* confdefs.h. */
22143_ACEOF
22144cat confdefs.h >>conftest.$ac_ext
22145cat >>conftest.$ac_ext <<_ACEOF
22146/* end confdefs.h. */
22147$ac_includes_default
22148#include <regex.h>
22149_ACEOF
22150rm -f conftest.$ac_objext
22151if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22152 (eval $ac_compile) 2>conftest.er1
a848cd7e 22153 ac_status=$?
ac1cb8d3
VS
22154 grep -v '^ *+' conftest.er1 >conftest.err
22155 rm -f conftest.er1
22156 cat conftest.err >&5
a848cd7e
SC
22157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22158 (exit $ac_status); } &&
9dd0f6c2 22159 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
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); }; } &&
22165 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22167 (eval $ac_try) 2>&5
22168 ac_status=$?
22169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22170 (exit $ac_status); }; }; then
22171 ac_header_compiler=yes
22172else
22173 echo "$as_me: failed program was:" >&5
22174sed 's/^/| /' conftest.$ac_ext >&5
22175
22176ac_header_compiler=no
22177fi
ac1cb8d3 22178rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22179echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22180echo "${ECHO_T}$ac_header_compiler" >&6
22181
22182# Is the header present?
22183echo "$as_me:$LINENO: checking regex.h presence" >&5
22184echo $ECHO_N "checking regex.h presence... $ECHO_C" >&6
22185cat >conftest.$ac_ext <<_ACEOF
22186/* confdefs.h. */
22187_ACEOF
22188cat confdefs.h >>conftest.$ac_ext
22189cat >>conftest.$ac_ext <<_ACEOF
22190/* end confdefs.h. */
22191#include <regex.h>
22192_ACEOF
22193if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22194 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22195 ac_status=$?
22196 grep -v '^ *+' conftest.er1 >conftest.err
22197 rm -f conftest.er1
22198 cat conftest.err >&5
22199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22200 (exit $ac_status); } >/dev/null; then
22201 if test -s conftest.err; then
22202 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 22203 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
22204 else
22205 ac_cpp_err=
22206 fi
22207else
22208 ac_cpp_err=yes
22209fi
22210if test -z "$ac_cpp_err"; then
22211 ac_header_preproc=yes
22212else
22213 echo "$as_me: failed program was:" >&5
22214sed 's/^/| /' conftest.$ac_ext >&5
22215
22216 ac_header_preproc=no
22217fi
22218rm -f conftest.err conftest.$ac_ext
22219echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22220echo "${ECHO_T}$ac_header_preproc" >&6
22221
22222# So? What about this header?
ac1cb8d3
VS
22223case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22224 yes:no: )
a848cd7e
SC
22225 { echo "$as_me:$LINENO: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&5
22226echo "$as_me: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
22227 { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the compiler's result" >&5
22228echo "$as_me: WARNING: regex.h: proceeding with the compiler's result" >&2;}
22229 ac_header_preproc=yes
a848cd7e 22230 ;;
ac1cb8d3 22231 no:yes:* )
a848cd7e
SC
22232 { echo "$as_me:$LINENO: WARNING: regex.h: present but cannot be compiled" >&5
22233echo "$as_me: WARNING: regex.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
22234 { echo "$as_me:$LINENO: WARNING: regex.h: check for missing prerequisite headers?" >&5
22235echo "$as_me: WARNING: regex.h: check for missing prerequisite headers?" >&2;}
22236 { echo "$as_me:$LINENO: WARNING: regex.h: see the Autoconf documentation" >&5
22237echo "$as_me: WARNING: regex.h: see the Autoconf documentation" >&2;}
22238 { echo "$as_me:$LINENO: WARNING: regex.h: section \"Present But Cannot Be Compiled\"" >&5
22239echo "$as_me: WARNING: regex.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
22240 { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the preprocessor's result" >&5
22241echo "$as_me: WARNING: regex.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
22242 { echo "$as_me:$LINENO: WARNING: regex.h: in the future, the compiler will take precedence" >&5
22243echo "$as_me: WARNING: regex.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
22244 (
22245 cat <<\_ASBOX
ac1cb8d3
VS
22246## ----------------------------------------- ##
22247## Report this to wx-dev@lists.wxwidgets.org ##
22248## ----------------------------------------- ##
a848cd7e
SC
22249_ASBOX
22250 ) |
22251 sed "s/^/$as_me: WARNING: /" >&2
22252 ;;
22253esac
22254echo "$as_me:$LINENO: checking for regex.h" >&5
22255echo $ECHO_N "checking for regex.h... $ECHO_C" >&6
22256if test "${ac_cv_header_regex_h+set}" = set; then
22257 echo $ECHO_N "(cached) $ECHO_C" >&6
22258else
22259 ac_cv_header_regex_h=$ac_header_preproc
22260fi
22261echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
22262echo "${ECHO_T}$ac_cv_header_regex_h" >&6
22263
22264fi
22265if test $ac_cv_header_regex_h = yes; then
22266
22267for ac_func in regcomp
22268do
22269as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22270echo "$as_me:$LINENO: checking for $ac_func" >&5
22271echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22272if eval "test \"\${$as_ac_var+set}\" = set"; then
22273 echo $ECHO_N "(cached) $ECHO_C" >&6
22274else
22275 cat >conftest.$ac_ext <<_ACEOF
22276/* confdefs.h. */
22277_ACEOF
22278cat confdefs.h >>conftest.$ac_ext
22279cat >>conftest.$ac_ext <<_ACEOF
22280/* end confdefs.h. */
ac1cb8d3
VS
22281/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22282 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22283#define $ac_func innocuous_$ac_func
22284
a848cd7e
SC
22285/* System header to define __stub macros and hopefully few prototypes,
22286 which can conflict with char $ac_func (); below.
22287 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22288 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 22289
a848cd7e
SC
22290#ifdef __STDC__
22291# include <limits.h>
22292#else
22293# include <assert.h>
22294#endif
ac1cb8d3
VS
22295
22296#undef $ac_func
22297
a848cd7e
SC
22298/* Override any gcc2 internal prototype to avoid an error. */
22299#ifdef __cplusplus
22300extern "C"
22301{
22302#endif
22303/* We use char because int might match the return type of a gcc2
22304 builtin and then its argument prototype would still apply. */
22305char $ac_func ();
22306/* The GNU C library defines this for functions which it implements
22307 to always fail with ENOSYS. Some functions are actually named
22308 something starting with __ and the normal name is an alias. */
22309#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22310choke me
22311#else
22312char (*f) () = $ac_func;
22313#endif
22314#ifdef __cplusplus
22315}
22316#endif
22317
22318int
22319main ()
22320{
22321return f != $ac_func;
22322 ;
22323 return 0;
22324}
22325_ACEOF
22326rm -f conftest.$ac_objext conftest$ac_exeext
22327if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 22328 (eval $ac_link) 2>conftest.er1
a848cd7e 22329 ac_status=$?
ac1cb8d3
VS
22330 grep -v '^ *+' conftest.er1 >conftest.err
22331 rm -f conftest.er1
22332 cat conftest.err >&5
a848cd7e
SC
22333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22334 (exit $ac_status); } &&
9dd0f6c2 22335 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
22336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22337 (eval $ac_try) 2>&5
22338 ac_status=$?
22339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22340 (exit $ac_status); }; } &&
22341 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
22342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22343 (eval $ac_try) 2>&5
22344 ac_status=$?
22345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22346 (exit $ac_status); }; }; then
22347 eval "$as_ac_var=yes"
22348else
22349 echo "$as_me: failed program was:" >&5
22350sed 's/^/| /' conftest.$ac_ext >&5
22351
22352eval "$as_ac_var=no"
22353fi
ac1cb8d3
VS
22354rm -f conftest.err conftest.$ac_objext \
22355 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
22356fi
22357echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22358echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22359if test `eval echo '${'$as_ac_var'}'` = yes; then
22360 cat >>confdefs.h <<_ACEOF
22361#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22362_ACEOF
22363
22364fi
22365done
22366
22367fi
22368
22369
22370
22371 if test "x$ac_cv_func_regcomp" != "xyes"; then
22372 if test "$wxUSE_REGEX" = "sys" ; then
22373 { { echo "$as_me:$LINENO: error: system regex library not found! Use --with-regex to use built-in version" >&5
22374echo "$as_me: error: system regex library not found! Use --with-regex to use built-in version" >&2;}
22375 { (exit 1); exit 1; }; }
22376 else
22377 { echo "$as_me:$LINENO: WARNING: system regex library not found, will use built-in instead" >&5
22378echo "$as_me: WARNING: system regex library not found, will use built-in instead" >&2;}
22379 wxUSE_REGEX=builtin
22380 fi
22381 else
22382 wxUSE_REGEX=sys
22383 cat >>confdefs.h <<\_ACEOF
22384#define WX_NO_REGEX_ADVANCED 1
22385_ACEOF
22386
22387 fi
22388 fi
22389fi
22390
22391
22392ZLIB_LINK=
22393if test "$wxUSE_ZLIB" != "no" ; then
22394 cat >>confdefs.h <<\_ACEOF
22395#define wxUSE_ZLIB 1
22396_ACEOF
22397
22398
22399 if test "$wxUSE_ZLIB" = "sys" -o "$wxUSE_ZLIB" = "yes" ; then
22400 if test "$USE_DARWIN" = 1; then
22401 system_zlib_h_ok="yes"
22402 else
22403 echo "$as_me:$LINENO: checking for zlib.h >= 1.1.4" >&5
22404echo $ECHO_N "checking for zlib.h >= 1.1.4... $ECHO_C" >&6
22405if test "${ac_cv_header_zlib_h+set}" = set; then
22406 echo $ECHO_N "(cached) $ECHO_C" >&6
22407else
22408 if test "$cross_compiling" = yes; then
22409 unset ac_cv_header_zlib_h
22410
22411else
22412 cat >conftest.$ac_ext <<_ACEOF
22413/* confdefs.h. */
22414_ACEOF
22415cat confdefs.h >>conftest.$ac_ext
22416cat >>conftest.$ac_ext <<_ACEOF
22417/* end confdefs.h. */
22418
22419 #include <zlib.h>
22420 #include <stdio.h>
22421
22422 int main()
22423 {
22424 FILE *f=fopen("conftestval", "w");
22425 if (!f) exit(1);
22426 fprintf(f, "%s",
22427 ZLIB_VERSION[0] == '1' &&
22428 (ZLIB_VERSION[2] > '1' ||
22429 (ZLIB_VERSION[2] == '1' &&
22430 ZLIB_VERSION[4] >= '4')) ? "yes" : "no");
22431 exit(0);
22432 }
22433
22434_ACEOF
22435rm -f conftest$ac_exeext
22436if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22437 (eval $ac_link) 2>&5
22438 ac_status=$?
22439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22440 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22442 (eval $ac_try) 2>&5
22443 ac_status=$?
22444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22445 (exit $ac_status); }; }; then
22446 ac_cv_header_zlib_h=`cat conftestval`
22447else
22448 echo "$as_me: program exited with status $ac_status" >&5
22449echo "$as_me: failed program was:" >&5
22450sed 's/^/| /' conftest.$ac_ext >&5
22451
22452( exit $ac_status )
22453ac_cv_header_zlib_h=no
22454fi
ac1cb8d3 22455rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22456fi
22457
22458fi
22459echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
22460echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
22461 if test "${ac_cv_header_zlib_h+set}" = set; then
22462 echo "$as_me:$LINENO: checking for zlib.h" >&5
22463echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
22464if test "${ac_cv_header_zlib_h+set}" = set; then
22465 echo $ECHO_N "(cached) $ECHO_C" >&6
22466fi
22467echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
22468echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
22469else
22470 # Is the header compilable?
22471echo "$as_me:$LINENO: checking zlib.h usability" >&5
22472echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6
22473cat >conftest.$ac_ext <<_ACEOF
22474/* confdefs.h. */
22475_ACEOF
22476cat confdefs.h >>conftest.$ac_ext
22477cat >>conftest.$ac_ext <<_ACEOF
22478/* end confdefs.h. */
22479$ac_includes_default
22480#include <zlib.h>
22481_ACEOF
22482rm -f conftest.$ac_objext
22483if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22484 (eval $ac_compile) 2>conftest.er1
a848cd7e 22485 ac_status=$?
ac1cb8d3
VS
22486 grep -v '^ *+' conftest.er1 >conftest.err
22487 rm -f conftest.er1
22488 cat conftest.err >&5
a848cd7e
SC
22489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22490 (exit $ac_status); } &&
9dd0f6c2 22491 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
22492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22493 (eval $ac_try) 2>&5
22494 ac_status=$?
22495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22496 (exit $ac_status); }; } &&
22497 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22499 (eval $ac_try) 2>&5
22500 ac_status=$?
22501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22502 (exit $ac_status); }; }; then
22503 ac_header_compiler=yes
22504else
22505 echo "$as_me: failed program was:" >&5
22506sed 's/^/| /' conftest.$ac_ext >&5
22507
22508ac_header_compiler=no
22509fi
ac1cb8d3 22510rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22511echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22512echo "${ECHO_T}$ac_header_compiler" >&6
22513
22514# Is the header present?
22515echo "$as_me:$LINENO: checking zlib.h presence" >&5
22516echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6
22517cat >conftest.$ac_ext <<_ACEOF
22518/* confdefs.h. */
22519_ACEOF
22520cat confdefs.h >>conftest.$ac_ext
22521cat >>conftest.$ac_ext <<_ACEOF
22522/* end confdefs.h. */
22523#include <zlib.h>
22524_ACEOF
22525if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22526 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22527 ac_status=$?
22528 grep -v '^ *+' conftest.er1 >conftest.err
22529 rm -f conftest.er1
22530 cat conftest.err >&5
22531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22532 (exit $ac_status); } >/dev/null; then
22533 if test -s conftest.err; then
22534 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 22535 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
22536 else
22537 ac_cpp_err=
22538 fi
22539else
22540 ac_cpp_err=yes
22541fi
22542if test -z "$ac_cpp_err"; then
22543 ac_header_preproc=yes
22544else
22545 echo "$as_me: failed program was:" >&5
22546sed 's/^/| /' conftest.$ac_ext >&5
22547
22548 ac_header_preproc=no
22549fi
22550rm -f conftest.err conftest.$ac_ext
22551echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22552echo "${ECHO_T}$ac_header_preproc" >&6
22553
22554# So? What about this header?
ac1cb8d3
VS
22555case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22556 yes:no: )
a848cd7e
SC
22557 { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
22558echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
22559 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
22560echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
22561 ac_header_preproc=yes
a848cd7e 22562 ;;
ac1cb8d3 22563 no:yes:* )
a848cd7e
SC
22564 { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
22565echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
22566 { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
22567echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
22568 { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
22569echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
22570 { echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5
22571echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
22572 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
22573echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
22574 { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
22575echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
22576 (
22577 cat <<\_ASBOX
ac1cb8d3
VS
22578## ----------------------------------------- ##
22579## Report this to wx-dev@lists.wxwidgets.org ##
22580## ----------------------------------------- ##
a848cd7e
SC
22581_ASBOX
22582 ) |
22583 sed "s/^/$as_me: WARNING: /" >&2
22584 ;;
22585esac
22586echo "$as_me:$LINENO: checking for zlib.h" >&5
22587echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
22588if test "${ac_cv_header_zlib_h+set}" = set; then
22589 echo $ECHO_N "(cached) $ECHO_C" >&6
22590else
22591 ac_cv_header_zlib_h=$ac_header_preproc
22592fi
22593echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
22594echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
22595
22596fi
22597
22598
22599
22600 system_zlib_h_ok=$ac_cv_header_zlib_h
22601 fi
22602
22603 if test "$system_zlib_h_ok" = "yes"; then
22604 echo "$as_me:$LINENO: checking for deflate in -lz" >&5
22605echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
22606if test "${ac_cv_lib_z_deflate+set}" = set; then
22607 echo $ECHO_N "(cached) $ECHO_C" >&6
22608else
22609 ac_check_lib_save_LIBS=$LIBS
22610LIBS="-lz $LIBS"
22611cat >conftest.$ac_ext <<_ACEOF
22612/* confdefs.h. */
22613_ACEOF
22614cat confdefs.h >>conftest.$ac_ext
22615cat >>conftest.$ac_ext <<_ACEOF
22616/* end confdefs.h. */
22617
22618/* Override any gcc2 internal prototype to avoid an error. */
22619#ifdef __cplusplus
22620extern "C"
22621#endif
22622/* We use char because int might match the return type of a gcc2
22623 builtin and then its argument prototype would still apply. */
22624char deflate ();
22625int
22626main ()
22627{
22628deflate ();
22629 ;
22630 return 0;
22631}
22632_ACEOF
22633rm -f conftest.$ac_objext conftest$ac_exeext
22634if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 22635 (eval $ac_link) 2>conftest.er1
a848cd7e 22636 ac_status=$?
ac1cb8d3
VS
22637 grep -v '^ *+' conftest.er1 >conftest.err
22638 rm -f conftest.er1
22639 cat conftest.err >&5
a848cd7e
SC
22640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22641 (exit $ac_status); } &&
9dd0f6c2 22642 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
22643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22644 (eval $ac_try) 2>&5
22645 ac_status=$?
22646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22647 (exit $ac_status); }; } &&
22648 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
22649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22650 (eval $ac_try) 2>&5
22651 ac_status=$?
22652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22653 (exit $ac_status); }; }; then
22654 ac_cv_lib_z_deflate=yes
22655else
22656 echo "$as_me: failed program was:" >&5
22657sed 's/^/| /' conftest.$ac_ext >&5
22658
22659ac_cv_lib_z_deflate=no
22660fi
ac1cb8d3
VS
22661rm -f conftest.err conftest.$ac_objext \
22662 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
22663LIBS=$ac_check_lib_save_LIBS
22664fi
22665echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
22666echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
22667if test $ac_cv_lib_z_deflate = yes; then
22668 ZLIB_LINK=" -lz"
22669fi
22670
22671 fi
22672
22673 if test "x$ZLIB_LINK" = "x" ; then
22674 if test "$wxUSE_ZLIB" = "sys" ; then
22675 { { echo "$as_me:$LINENO: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&5
22676echo "$as_me: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&2;}
22677 { (exit 1); exit 1; }; }
22678 else
22679 { echo "$as_me:$LINENO: WARNING: zlib library not found or too old, will use built-in instead" >&5
22680echo "$as_me: WARNING: zlib library not found or too old, will use built-in instead" >&2;}
22681 wxUSE_ZLIB=builtin
22682 fi
22683 else
22684 wxUSE_ZLIB=sys
22685 fi
22686 fi
22687fi
22688
22689
22690PNG_LINK=
22691if test "$wxUSE_LIBPNG" != "no" ; then
22692 cat >>confdefs.h <<\_ACEOF
22693#define wxUSE_LIBPNG 1
22694_ACEOF
22695
22696
22697 if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBPNG" = "builtin" ; then
22698 { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&5
22699echo "$as_me: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&2;}
22700 wxUSE_LIBPNG=sys
22701 fi
22702
22703 if test "$wxUSE_MGL" != 1 -a "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then
22704 { echo "$as_me:$LINENO: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&5
22705echo "$as_me: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&2;}
22706 wxUSE_LIBPNG=builtin
22707 fi
22708
22709 if test "$wxUSE_MGL" != 1 ; then
22710 if test "$wxUSE_LIBPNG" = "sys" -o "$wxUSE_LIBPNG" = "yes" ; then
22711 echo "$as_me:$LINENO: checking for png.h > 0.90" >&5
22712echo $ECHO_N "checking for png.h > 0.90... $ECHO_C" >&6
22713if test "${ac_cv_header_png_h+set}" = set; then
22714 echo $ECHO_N "(cached) $ECHO_C" >&6
22715else
22716 if test "$cross_compiling" = yes; then
22717 unset ac_cv_header_png_h
22718
22719else
22720 cat >conftest.$ac_ext <<_ACEOF
22721/* confdefs.h. */
22722_ACEOF
22723cat confdefs.h >>conftest.$ac_ext
22724cat >>conftest.$ac_ext <<_ACEOF
22725/* end confdefs.h. */
22726
22727 #include <png.h>
22728 #include <stdio.h>
22729
22730 int main()
22731 {
22732 FILE *f=fopen("conftestval", "w");
22733 if (!f) exit(1);
22734 fprintf(f, "%s",
22735 PNG_LIBPNG_VER > 90 ? "yes" : "no");
22736 exit(0);
22737 }
22738
22739_ACEOF
22740rm -f conftest$ac_exeext
22741if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22742 (eval $ac_link) 2>&5
22743 ac_status=$?
22744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22745 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22747 (eval $ac_try) 2>&5
22748 ac_status=$?
22749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22750 (exit $ac_status); }; }; then
22751 ac_cv_header_png_h=`cat conftestval`
22752else
22753 echo "$as_me: program exited with status $ac_status" >&5
22754echo "$as_me: failed program was:" >&5
22755sed 's/^/| /' conftest.$ac_ext >&5
22756
22757( exit $ac_status )
22758ac_cv_header_png_h=no
22759fi
ac1cb8d3 22760rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22761fi
22762
22763fi
22764echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
22765echo "${ECHO_T}$ac_cv_header_png_h" >&6
22766 if test "${ac_cv_header_png_h+set}" = set; then
22767 echo "$as_me:$LINENO: checking for png.h" >&5
22768echo $ECHO_N "checking for png.h... $ECHO_C" >&6
22769if test "${ac_cv_header_png_h+set}" = set; then
22770 echo $ECHO_N "(cached) $ECHO_C" >&6
22771fi
22772echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
22773echo "${ECHO_T}$ac_cv_header_png_h" >&6
22774else
22775 # Is the header compilable?
22776echo "$as_me:$LINENO: checking png.h usability" >&5
22777echo $ECHO_N "checking png.h usability... $ECHO_C" >&6
22778cat >conftest.$ac_ext <<_ACEOF
22779/* confdefs.h. */
22780_ACEOF
22781cat confdefs.h >>conftest.$ac_ext
22782cat >>conftest.$ac_ext <<_ACEOF
22783/* end confdefs.h. */
22784$ac_includes_default
22785#include <png.h>
22786_ACEOF
22787rm -f conftest.$ac_objext
22788if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22789 (eval $ac_compile) 2>conftest.er1
a848cd7e 22790 ac_status=$?
ac1cb8d3
VS
22791 grep -v '^ *+' conftest.er1 >conftest.err
22792 rm -f conftest.er1
22793 cat conftest.err >&5
a848cd7e
SC
22794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22795 (exit $ac_status); } &&
9dd0f6c2 22796 { ac_try='test -z "$ac_c_werror_flag" || 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 png.h presence" >&5
22821echo $ECHO_N "checking png.h 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 <png.h>
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: png.h: accepted by the compiler, rejected by the preprocessor!" >&5
22863echo "$as_me: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
22864 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the compiler's result" >&5
22865echo "$as_me: WARNING: png.h: 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: png.h: present but cannot be compiled" >&5
22870echo "$as_me: WARNING: png.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
22871 { echo "$as_me:$LINENO: WARNING: png.h: check for missing prerequisite headers?" >&5
22872echo "$as_me: WARNING: png.h: check for missing prerequisite headers?" >&2;}
22873 { echo "$as_me:$LINENO: WARNING: png.h: see the Autoconf documentation" >&5
22874echo "$as_me: WARNING: png.h: see the Autoconf documentation" >&2;}
22875 { echo "$as_me:$LINENO: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&5
22876echo "$as_me: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
22877 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5
22878echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
22879 { echo "$as_me:$LINENO: WARNING: png.h: in the future, the compiler will take precedence" >&5
22880echo "$as_me: WARNING: png.h: 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 png.h" >&5
22892echo $ECHO_N "checking for png.h... $ECHO_C" >&6
22893if test "${ac_cv_header_png_h+set}" = set; then
22894 echo $ECHO_N "(cached) $ECHO_C" >&6
22895else
22896 ac_cv_header_png_h=$ac_header_preproc
22897fi
22898echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
22899echo "${ECHO_T}$ac_cv_header_png_h" >&6
22900
22901fi
22902
22903
22904
22905 if test "$ac_cv_header_png_h" = "yes"; then
22906 echo "$as_me:$LINENO: checking for png_check_sig in -lpng" >&5
22907echo $ECHO_N "checking for png_check_sig in -lpng... $ECHO_C" >&6
22908if test "${ac_cv_lib_png_png_check_sig+set}" = set; then
22909 echo $ECHO_N "(cached) $ECHO_C" >&6
22910else
22911 ac_check_lib_save_LIBS=$LIBS
22912LIBS="-lpng -lz -lm $LIBS"
22913cat >conftest.$ac_ext <<_ACEOF
22914/* confdefs.h. */
22915_ACEOF
22916cat confdefs.h >>conftest.$ac_ext
22917cat >>conftest.$ac_ext <<_ACEOF
22918/* end confdefs.h. */
22919
22920/* Override any gcc2 internal prototype to avoid an error. */
22921#ifdef __cplusplus
22922extern "C"
22923#endif
22924/* We use char because int might match the return type of a gcc2
22925 builtin and then its argument prototype would still apply. */
22926char png_check_sig ();
22927int
22928main ()
22929{
22930png_check_sig ();
22931 ;
22932 return 0;
22933}
22934_ACEOF
22935rm -f conftest.$ac_objext conftest$ac_exeext
22936if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 22937 (eval $ac_link) 2>conftest.er1
a848cd7e 22938 ac_status=$?
ac1cb8d3
VS
22939 grep -v '^ *+' conftest.er1 >conftest.err
22940 rm -f conftest.er1
22941 cat conftest.err >&5
a848cd7e
SC
22942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22943 (exit $ac_status); } &&
9dd0f6c2 22944 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
22945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22946 (eval $ac_try) 2>&5
22947 ac_status=$?
22948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22949 (exit $ac_status); }; } &&
22950 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
22951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22952 (eval $ac_try) 2>&5
22953 ac_status=$?
22954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22955 (exit $ac_status); }; }; then
22956 ac_cv_lib_png_png_check_sig=yes
22957else
22958 echo "$as_me: failed program was:" >&5
22959sed 's/^/| /' conftest.$ac_ext >&5
22960
22961ac_cv_lib_png_png_check_sig=no
22962fi
ac1cb8d3
VS
22963rm -f conftest.err conftest.$ac_objext \
22964 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
22965LIBS=$ac_check_lib_save_LIBS
22966fi
22967echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_check_sig" >&5
22968echo "${ECHO_T}$ac_cv_lib_png_png_check_sig" >&6
22969if test $ac_cv_lib_png_png_check_sig = yes; then
22970 PNG_LINK=" -lpng -lz"
22971fi
22972
22973 fi
22974
22975 if test "x$PNG_LINK" = "x" ; then
22976 if test "$wxUSE_LIBPNG" = "sys" ; then
22977 { { echo "$as_me:$LINENO: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&5
22978echo "$as_me: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&2;}
22979 { (exit 1); exit 1; }; }
22980 else
22981 { echo "$as_me:$LINENO: WARNING: system png library not found or too old, will use built-in instead" >&5
22982echo "$as_me: WARNING: system png library not found or too old, will use built-in instead" >&2;}
22983 wxUSE_LIBPNG=builtin
22984 fi
22985 else
22986 wxUSE_LIBPNG=sys
22987 fi
22988 fi
22989 fi
22990
22991 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png"
22992fi
22993
22994
22995JPEG_LINK=
22996if test "$wxUSE_LIBJPEG" != "no" ; then
22997 cat >>confdefs.h <<\_ACEOF
22998#define wxUSE_LIBJPEG 1
22999_ACEOF
23000
23001
23002 if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBJPEG" = "builtin" ; then
23003 { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&5
23004echo "$as_me: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&2;}
23005 wxUSE_LIBJPEG=sys
23006 fi
23007
23008 if test "$wxUSE_MGL" != 1 ; then
23009 if test "$wxUSE_LIBJPEG" = "sys" -o "$wxUSE_LIBJPEG" = "yes" ; then
23010 echo "$as_me:$LINENO: checking for jpeglib.h" >&5
23011echo $ECHO_N "checking for jpeglib.h... $ECHO_C" >&6
23012 if test "${ac_cv_header_jpeglib_h+set}" = set; then
23013 echo $ECHO_N "(cached) $ECHO_C" >&6
23014else
23015 cat >conftest.$ac_ext <<_ACEOF
23016/* confdefs.h. */
23017_ACEOF
23018cat confdefs.h >>conftest.$ac_ext
23019cat >>conftest.$ac_ext <<_ACEOF
23020/* end confdefs.h. */
23021
23022 #undef HAVE_STDLIB_H
23023 #include <stdio.h>
23024 #include <jpeglib.h>
23025
23026int
23027main ()
23028{
23029
23030
23031 ;
23032 return 0;
23033}
23034_ACEOF
23035rm -f conftest.$ac_objext
23036if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23037 (eval $ac_compile) 2>conftest.er1
a848cd7e 23038 ac_status=$?
ac1cb8d3
VS
23039 grep -v '^ *+' conftest.er1 >conftest.err
23040 rm -f conftest.er1
23041 cat conftest.err >&5
a848cd7e
SC
23042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23043 (exit $ac_status); } &&
9dd0f6c2 23044 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23046 (eval $ac_try) 2>&5
23047 ac_status=$?
23048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23049 (exit $ac_status); }; } &&
23050 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
23051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23052 (eval $ac_try) 2>&5
23053 ac_status=$?
23054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23055 (exit $ac_status); }; }; then
23056 ac_cv_header_jpeglib_h=yes
23057else
23058 echo "$as_me: failed program was:" >&5
23059sed 's/^/| /' conftest.$ac_ext >&5
23060
23061ac_cv_header_jpeglib_h=no
23062
23063fi
ac1cb8d3 23064rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
23065
23066fi
23067
23068 echo "$as_me:$LINENO: result: $ac_cv_header_jpeglib_h" >&5
23069echo "${ECHO_T}$ac_cv_header_jpeglib_h" >&6
23070
23071 if test "$ac_cv_header_jpeglib_h" = "yes"; then
23072 echo "$as_me:$LINENO: checking for jpeg_read_header in -ljpeg" >&5
23073echo $ECHO_N "checking for jpeg_read_header in -ljpeg... $ECHO_C" >&6
23074if test "${ac_cv_lib_jpeg_jpeg_read_header+set}" = set; then
23075 echo $ECHO_N "(cached) $ECHO_C" >&6
23076else
23077 ac_check_lib_save_LIBS=$LIBS
23078LIBS="-ljpeg $LIBS"
23079cat >conftest.$ac_ext <<_ACEOF
23080/* confdefs.h. */
23081_ACEOF
23082cat confdefs.h >>conftest.$ac_ext
23083cat >>conftest.$ac_ext <<_ACEOF
23084/* end confdefs.h. */
23085
23086/* Override any gcc2 internal prototype to avoid an error. */
23087#ifdef __cplusplus
23088extern "C"
23089#endif
23090/* We use char because int might match the return type of a gcc2
23091 builtin and then its argument prototype would still apply. */
23092char jpeg_read_header ();
23093int
23094main ()
23095{
23096jpeg_read_header ();
23097 ;
23098 return 0;
23099}
23100_ACEOF
23101rm -f conftest.$ac_objext conftest$ac_exeext
23102if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 23103 (eval $ac_link) 2>conftest.er1
a848cd7e 23104 ac_status=$?
ac1cb8d3
VS
23105 grep -v '^ *+' conftest.er1 >conftest.err
23106 rm -f conftest.er1
23107 cat conftest.err >&5
a848cd7e
SC
23108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23109 (exit $ac_status); } &&
9dd0f6c2 23110 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23112 (eval $ac_try) 2>&5
23113 ac_status=$?
23114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23115 (exit $ac_status); }; } &&
23116 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
23117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23118 (eval $ac_try) 2>&5
23119 ac_status=$?
23120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23121 (exit $ac_status); }; }; then
23122 ac_cv_lib_jpeg_jpeg_read_header=yes
23123else
23124 echo "$as_me: failed program was:" >&5
23125sed 's/^/| /' conftest.$ac_ext >&5
23126
23127ac_cv_lib_jpeg_jpeg_read_header=no
23128fi
ac1cb8d3
VS
23129rm -f conftest.err conftest.$ac_objext \
23130 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
23131LIBS=$ac_check_lib_save_LIBS
23132fi
23133echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5
23134echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_read_header" >&6
23135if test $ac_cv_lib_jpeg_jpeg_read_header = yes; then
23136 JPEG_LINK=" -ljpeg"
23137fi
23138
23139 fi
23140
23141 if test "x$JPEG_LINK" = "x" ; then
23142 if test "$wxUSE_LIBJPEG" = "sys" ; then
23143 { { echo "$as_me:$LINENO: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&5
23144echo "$as_me: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&2;}
23145 { (exit 1); exit 1; }; }
23146 else
23147 { echo "$as_me:$LINENO: WARNING: system jpeg library not found, will use built-in instead" >&5
23148echo "$as_me: WARNING: system jpeg library not found, will use built-in instead" >&2;}
23149 wxUSE_LIBJPEG=builtin
23150 fi
23151 else
23152 wxUSE_LIBJPEG=sys
23153 fi
23154 fi
23155 fi
23156fi
23157
23158
23159TIFF_LINK=
23160TIFF_PREREQ_LINKS=-lm
23161if test "$wxUSE_LIBTIFF" != "no" ; then
23162 cat >>confdefs.h <<\_ACEOF
23163#define wxUSE_LIBTIFF 1
23164_ACEOF
23165
23166
23167 if test "$wxUSE_LIBTIFF" = "sys" -o "$wxUSE_LIBTIFF" = "yes" ; then
23168 if test "$wxUSE_LIBJPEG" = "sys"; then
23169 TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $JPEG_LINK"
23170 fi
23171 if test "$wxUSE_ZLIB" = "sys"; then
23172 TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $ZLIB_LINK"
23173 fi
23174 if test "${ac_cv_header_tiffio_h+set}" = set; then
23175 echo "$as_me:$LINENO: checking for tiffio.h" >&5
23176echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
23177if test "${ac_cv_header_tiffio_h+set}" = set; then
23178 echo $ECHO_N "(cached) $ECHO_C" >&6
23179fi
23180echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
23181echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
23182else
23183 # Is the header compilable?
23184echo "$as_me:$LINENO: checking tiffio.h usability" >&5
23185echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6
23186cat >conftest.$ac_ext <<_ACEOF
23187/* confdefs.h. */
23188_ACEOF
23189cat confdefs.h >>conftest.$ac_ext
23190cat >>conftest.$ac_ext <<_ACEOF
23191/* end confdefs.h. */
23192$ac_includes_default
23193#include <tiffio.h>
23194_ACEOF
23195rm -f conftest.$ac_objext
23196if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23197 (eval $ac_compile) 2>conftest.er1
a848cd7e 23198 ac_status=$?
ac1cb8d3
VS
23199 grep -v '^ *+' conftest.er1 >conftest.err
23200 rm -f conftest.er1
23201 cat conftest.err >&5
a848cd7e
SC
23202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23203 (exit $ac_status); } &&
9dd0f6c2 23204 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23206 (eval $ac_try) 2>&5
23207 ac_status=$?
23208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23209 (exit $ac_status); }; } &&
23210 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
23211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23212 (eval $ac_try) 2>&5
23213 ac_status=$?
23214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23215 (exit $ac_status); }; }; then
23216 ac_header_compiler=yes
23217else
23218 echo "$as_me: failed program was:" >&5
23219sed 's/^/| /' conftest.$ac_ext >&5
23220
23221ac_header_compiler=no
23222fi
ac1cb8d3 23223rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
23224echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23225echo "${ECHO_T}$ac_header_compiler" >&6
23226
23227# Is the header present?
23228echo "$as_me:$LINENO: checking tiffio.h presence" >&5
23229echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6
23230cat >conftest.$ac_ext <<_ACEOF
23231/* confdefs.h. */
23232_ACEOF
23233cat confdefs.h >>conftest.$ac_ext
23234cat >>conftest.$ac_ext <<_ACEOF
23235/* end confdefs.h. */
23236#include <tiffio.h>
23237_ACEOF
23238if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23239 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23240 ac_status=$?
23241 grep -v '^ *+' conftest.er1 >conftest.err
23242 rm -f conftest.er1
23243 cat conftest.err >&5
23244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23245 (exit $ac_status); } >/dev/null; then
23246 if test -s conftest.err; then
23247 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 23248 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
23249 else
23250 ac_cpp_err=
23251 fi
23252else
23253 ac_cpp_err=yes
23254fi
23255if test -z "$ac_cpp_err"; then
23256 ac_header_preproc=yes
23257else
23258 echo "$as_me: failed program was:" >&5
23259sed 's/^/| /' conftest.$ac_ext >&5
23260
23261 ac_header_preproc=no
23262fi
23263rm -f conftest.err conftest.$ac_ext
23264echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23265echo "${ECHO_T}$ac_header_preproc" >&6
23266
23267# So? What about this header?
ac1cb8d3
VS
23268case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23269 yes:no: )
a848cd7e
SC
23270 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
23271echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
23272 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5
23273echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;}
23274 ac_header_preproc=yes
a848cd7e 23275 ;;
ac1cb8d3 23276 no:yes:* )
a848cd7e
SC
23277 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
23278echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
23279 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
23280echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
23281 { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
23282echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
23283 { echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
23284echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
23285 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
23286echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
23287 { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
23288echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
23289 (
23290 cat <<\_ASBOX
ac1cb8d3
VS
23291## ----------------------------------------- ##
23292## Report this to wx-dev@lists.wxwidgets.org ##
23293## ----------------------------------------- ##
a848cd7e
SC
23294_ASBOX
23295 ) |
23296 sed "s/^/$as_me: WARNING: /" >&2
23297 ;;
23298esac
23299echo "$as_me:$LINENO: checking for tiffio.h" >&5
23300echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
23301if test "${ac_cv_header_tiffio_h+set}" = set; then
23302 echo $ECHO_N "(cached) $ECHO_C" >&6
23303else
23304 ac_cv_header_tiffio_h=$ac_header_preproc
23305fi
23306echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
23307echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
23308
23309fi
23310if test $ac_cv_header_tiffio_h = yes; then
23311
23312 echo "$as_me:$LINENO: checking for TIFFError in -ltiff" >&5
23313echo $ECHO_N "checking for TIFFError in -ltiff... $ECHO_C" >&6
23314if test "${ac_cv_lib_tiff_TIFFError+set}" = set; then
23315 echo $ECHO_N "(cached) $ECHO_C" >&6
23316else
23317 ac_check_lib_save_LIBS=$LIBS
23318LIBS="-ltiff $TIFF_PREREQ_LINKS $LIBS"
23319cat >conftest.$ac_ext <<_ACEOF
23320/* confdefs.h. */
23321_ACEOF
23322cat confdefs.h >>conftest.$ac_ext
23323cat >>conftest.$ac_ext <<_ACEOF
23324/* end confdefs.h. */
23325
23326/* Override any gcc2 internal prototype to avoid an error. */
23327#ifdef __cplusplus
23328extern "C"
23329#endif
23330/* We use char because int might match the return type of a gcc2
23331 builtin and then its argument prototype would still apply. */
23332char TIFFError ();
23333int
23334main ()
23335{
23336TIFFError ();
23337 ;
23338 return 0;
23339}
23340_ACEOF
23341rm -f conftest.$ac_objext conftest$ac_exeext
23342if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 23343 (eval $ac_link) 2>conftest.er1
a848cd7e 23344 ac_status=$?
ac1cb8d3
VS
23345 grep -v '^ *+' conftest.er1 >conftest.err
23346 rm -f conftest.er1
23347 cat conftest.err >&5
a848cd7e
SC
23348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23349 (exit $ac_status); } &&
9dd0f6c2 23350 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23352 (eval $ac_try) 2>&5
23353 ac_status=$?
23354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23355 (exit $ac_status); }; } &&
23356 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
23357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23358 (eval $ac_try) 2>&5
23359 ac_status=$?
23360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23361 (exit $ac_status); }; }; then
23362 ac_cv_lib_tiff_TIFFError=yes
23363else
23364 echo "$as_me: failed program was:" >&5
23365sed 's/^/| /' conftest.$ac_ext >&5
23366
23367ac_cv_lib_tiff_TIFFError=no
23368fi
ac1cb8d3
VS
23369rm -f conftest.err conftest.$ac_objext \
23370 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
23371LIBS=$ac_check_lib_save_LIBS
23372fi
23373echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFError" >&5
23374echo "${ECHO_T}$ac_cv_lib_tiff_TIFFError" >&6
23375if test $ac_cv_lib_tiff_TIFFError = yes; then
23376 TIFF_LINK=" -ltiff"
23377fi
23378
23379
23380
23381fi
23382
23383
23384
23385 if test "x$TIFF_LINK" = "x" ; then
23386 if test "$wxUSE_LIBTIFF" = "sys" ; then
23387 { { echo "$as_me:$LINENO: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&5
23388echo "$as_me: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&2;}
23389 { (exit 1); exit 1; }; }
23390 else
23391 { echo "$as_me:$LINENO: WARNING: system tiff library not found, will use built-in instead" >&5
23392echo "$as_me: WARNING: system tiff library not found, will use built-in instead" >&2;}
23393 wxUSE_LIBTIFF=builtin
23394 fi
23395 else
23396 wxUSE_LIBTIFF=sys
23397 fi
23398 fi
23399fi
23400
23401
23402if test "$wxUSE_EXPAT" != "no"; then
23403 wxUSE_XML=yes
23404 cat >>confdefs.h <<\_ACEOF
23405#define wxUSE_EXPAT 1
23406_ACEOF
23407
23408 cat >>confdefs.h <<\_ACEOF
23409#define wxUSE_XML 1
23410_ACEOF
23411
23412
23413 if test "$wxUSE_EXPAT" = "sys" -o "$wxUSE_EXPAT" = "yes" ; then
23414 if test "${ac_cv_header_expat_h+set}" = set; then
23415 echo "$as_me:$LINENO: checking for expat.h" >&5
23416echo $ECHO_N "checking for expat.h... $ECHO_C" >&6
23417if test "${ac_cv_header_expat_h+set}" = set; then
23418 echo $ECHO_N "(cached) $ECHO_C" >&6
23419fi
23420echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5
23421echo "${ECHO_T}$ac_cv_header_expat_h" >&6
23422else
23423 # Is the header compilable?
23424echo "$as_me:$LINENO: checking expat.h usability" >&5
23425echo $ECHO_N "checking expat.h usability... $ECHO_C" >&6
23426cat >conftest.$ac_ext <<_ACEOF
23427/* confdefs.h. */
23428_ACEOF
23429cat confdefs.h >>conftest.$ac_ext
23430cat >>conftest.$ac_ext <<_ACEOF
23431/* end confdefs.h. */
23432$ac_includes_default
23433#include <expat.h>
23434_ACEOF
23435rm -f conftest.$ac_objext
23436if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23437 (eval $ac_compile) 2>conftest.er1
a848cd7e 23438 ac_status=$?
ac1cb8d3
VS
23439 grep -v '^ *+' conftest.er1 >conftest.err
23440 rm -f conftest.er1
23441 cat conftest.err >&5
a848cd7e
SC
23442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23443 (exit $ac_status); } &&
9dd0f6c2 23444 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23446 (eval $ac_try) 2>&5
23447 ac_status=$?
23448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23449 (exit $ac_status); }; } &&
23450 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
23451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23452 (eval $ac_try) 2>&5
23453 ac_status=$?
23454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23455 (exit $ac_status); }; }; then
23456 ac_header_compiler=yes
23457else
23458 echo "$as_me: failed program was:" >&5
23459sed 's/^/| /' conftest.$ac_ext >&5
23460
23461ac_header_compiler=no
23462fi
ac1cb8d3 23463rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
23464echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23465echo "${ECHO_T}$ac_header_compiler" >&6
23466
23467# Is the header present?
23468echo "$as_me:$LINENO: checking expat.h presence" >&5
23469echo $ECHO_N "checking expat.h presence... $ECHO_C" >&6
23470cat >conftest.$ac_ext <<_ACEOF
23471/* confdefs.h. */
23472_ACEOF
23473cat confdefs.h >>conftest.$ac_ext
23474cat >>conftest.$ac_ext <<_ACEOF
23475/* end confdefs.h. */
23476#include <expat.h>
23477_ACEOF
23478if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23479 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23480 ac_status=$?
23481 grep -v '^ *+' conftest.er1 >conftest.err
23482 rm -f conftest.er1
23483 cat conftest.err >&5
23484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23485 (exit $ac_status); } >/dev/null; then
23486 if test -s conftest.err; then
23487 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 23488 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
23489 else
23490 ac_cpp_err=
23491 fi
23492else
23493 ac_cpp_err=yes
23494fi
23495if test -z "$ac_cpp_err"; then
23496 ac_header_preproc=yes
23497else
23498 echo "$as_me: failed program was:" >&5
23499sed 's/^/| /' conftest.$ac_ext >&5
23500
23501 ac_header_preproc=no
23502fi
23503rm -f conftest.err conftest.$ac_ext
23504echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23505echo "${ECHO_T}$ac_header_preproc" >&6
23506
23507# So? What about this header?
ac1cb8d3
VS
23508case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23509 yes:no: )
a848cd7e
SC
23510 { echo "$as_me:$LINENO: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&5
23511echo "$as_me: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
23512 { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the compiler's result" >&5
23513echo "$as_me: WARNING: expat.h: proceeding with the compiler's result" >&2;}
23514 ac_header_preproc=yes
a848cd7e 23515 ;;
ac1cb8d3 23516 no:yes:* )
a848cd7e
SC
23517 { echo "$as_me:$LINENO: WARNING: expat.h: present but cannot be compiled" >&5
23518echo "$as_me: WARNING: expat.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
23519 { echo "$as_me:$LINENO: WARNING: expat.h: check for missing prerequisite headers?" >&5
23520echo "$as_me: WARNING: expat.h: check for missing prerequisite headers?" >&2;}
23521 { echo "$as_me:$LINENO: WARNING: expat.h: see the Autoconf documentation" >&5
23522echo "$as_me: WARNING: expat.h: see the Autoconf documentation" >&2;}
23523 { echo "$as_me:$LINENO: WARNING: expat.h: section \"Present But Cannot Be Compiled\"" >&5
23524echo "$as_me: WARNING: expat.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
23525 { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the preprocessor's result" >&5
23526echo "$as_me: WARNING: expat.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
23527 { echo "$as_me:$LINENO: WARNING: expat.h: in the future, the compiler will take precedence" >&5
23528echo "$as_me: WARNING: expat.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
23529 (
23530 cat <<\_ASBOX
ac1cb8d3
VS
23531## ----------------------------------------- ##
23532## Report this to wx-dev@lists.wxwidgets.org ##
23533## ----------------------------------------- ##
a848cd7e
SC
23534_ASBOX
23535 ) |
23536 sed "s/^/$as_me: WARNING: /" >&2
23537 ;;
23538esac
23539echo "$as_me:$LINENO: checking for expat.h" >&5
23540echo $ECHO_N "checking for expat.h... $ECHO_C" >&6
23541if test "${ac_cv_header_expat_h+set}" = set; then
23542 echo $ECHO_N "(cached) $ECHO_C" >&6
23543else
23544 ac_cv_header_expat_h=$ac_header_preproc
23545fi
23546echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5
23547echo "${ECHO_T}$ac_cv_header_expat_h" >&6
23548
23549fi
23550if test $ac_cv_header_expat_h = yes; then
23551 found_expat_h=1
23552fi
23553
23554
23555 if test "x$found_expat_h" = "x1"; then
23556 echo "$as_me:$LINENO: checking if expat.h is valid C++ header" >&5
23557echo $ECHO_N "checking if expat.h is valid C++ header... $ECHO_C" >&6
23558if test "${wx_cv_expat_is_not_broken+set}" = set; then
23559 echo $ECHO_N "(cached) $ECHO_C" >&6
23560else
23561
23562
23563
23564 ac_ext=cc
23565ac_cpp='$CXXCPP $CPPFLAGS'
23566ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23567ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23568ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23569
23570 cat >conftest.$ac_ext <<_ACEOF
23571/* confdefs.h. */
23572_ACEOF
23573cat confdefs.h >>conftest.$ac_ext
23574cat >>conftest.$ac_ext <<_ACEOF
23575/* end confdefs.h. */
23576#include <expat.h>
23577int
23578main ()
23579{
23580
23581 ;
23582 return 0;
23583}
23584_ACEOF
23585rm -f conftest.$ac_objext
23586if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23587 (eval $ac_compile) 2>conftest.er1
a848cd7e 23588 ac_status=$?
ac1cb8d3
VS
23589 grep -v '^ *+' conftest.er1 >conftest.err
23590 rm -f conftest.er1
23591 cat conftest.err >&5
a848cd7e
SC
23592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23593 (exit $ac_status); } &&
9dd0f6c2 23594 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23596 (eval $ac_try) 2>&5
23597 ac_status=$?
23598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23599 (exit $ac_status); }; } &&
23600 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
23601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23602 (eval $ac_try) 2>&5
23603 ac_status=$?
23604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23605 (exit $ac_status); }; }; then
23606 wx_cv_expat_is_not_broken=yes
23607else
23608 echo "$as_me: failed program was:" >&5
23609sed 's/^/| /' conftest.$ac_ext >&5
23610
23611wx_cv_expat_is_not_broken=no
23612
23613fi
ac1cb8d3 23614rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
23615 ac_ext=c
23616ac_cpp='$CPP $CPPFLAGS'
23617ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23618ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23619ac_compiler_gnu=$ac_cv_c_compiler_gnu
23620
23621
23622
23623fi
23624echo "$as_me:$LINENO: result: $wx_cv_expat_is_not_broken" >&5
23625echo "${ECHO_T}$wx_cv_expat_is_not_broken" >&6
23626 if test "$wx_cv_expat_is_not_broken" = "yes" ; then
23627 echo "$as_me:$LINENO: checking for XML_ParserCreate in -lexpat" >&5
23628echo $ECHO_N "checking for XML_ParserCreate in -lexpat... $ECHO_C" >&6
23629if test "${ac_cv_lib_expat_XML_ParserCreate+set}" = set; then
23630 echo $ECHO_N "(cached) $ECHO_C" >&6
23631else
23632 ac_check_lib_save_LIBS=$LIBS
23633LIBS="-lexpat $LIBS"
23634cat >conftest.$ac_ext <<_ACEOF
23635/* confdefs.h. */
23636_ACEOF
23637cat confdefs.h >>conftest.$ac_ext
23638cat >>conftest.$ac_ext <<_ACEOF
23639/* end confdefs.h. */
23640
23641/* Override any gcc2 internal prototype to avoid an error. */
23642#ifdef __cplusplus
23643extern "C"
23644#endif
23645/* We use char because int might match the return type of a gcc2
23646 builtin and then its argument prototype would still apply. */
23647char XML_ParserCreate ();
23648int
23649main ()
23650{
23651XML_ParserCreate ();
23652 ;
23653 return 0;
23654}
23655_ACEOF
23656rm -f conftest.$ac_objext conftest$ac_exeext
23657if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 23658 (eval $ac_link) 2>conftest.er1
a848cd7e 23659 ac_status=$?
ac1cb8d3
VS
23660 grep -v '^ *+' conftest.er1 >conftest.err
23661 rm -f conftest.er1
23662 cat conftest.err >&5
a848cd7e
SC
23663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23664 (exit $ac_status); } &&
9dd0f6c2 23665 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23667 (eval $ac_try) 2>&5
23668 ac_status=$?
23669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23670 (exit $ac_status); }; } &&
23671 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
23672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23673 (eval $ac_try) 2>&5
23674 ac_status=$?
23675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23676 (exit $ac_status); }; }; then
23677 ac_cv_lib_expat_XML_ParserCreate=yes
23678else
23679 echo "$as_me: failed program was:" >&5
23680sed 's/^/| /' conftest.$ac_ext >&5
23681
23682ac_cv_lib_expat_XML_ParserCreate=no
23683fi
ac1cb8d3
VS
23684rm -f conftest.err conftest.$ac_objext \
23685 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
23686LIBS=$ac_check_lib_save_LIBS
23687fi
23688echo "$as_me:$LINENO: result: $ac_cv_lib_expat_XML_ParserCreate" >&5
23689echo "${ECHO_T}$ac_cv_lib_expat_XML_ParserCreate" >&6
23690if test $ac_cv_lib_expat_XML_ParserCreate = yes; then
23691 EXPAT_LINK=" -lexpat"
23692fi
23693
23694 fi
23695 fi
23696 if test "x$EXPAT_LINK" = "x" ; then
23697 if test "$wxUSE_EXPAT" = "sys" ; then
23698 { { echo "$as_me:$LINENO: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&5
23699echo "$as_me: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&2;}
23700 { (exit 1); exit 1; }; }
23701 else
23702 { echo "$as_me:$LINENO: WARNING: system expat library not found, will use built-in instead" >&5
23703echo "$as_me: WARNING: system expat library not found, will use built-in instead" >&2;}
23704 wxUSE_EXPAT=builtin
23705 fi
23706 else
23707 wxUSE_EXPAT=sys
23708 fi
23709 fi
23710 if test "$wxUSE_EXPAT" = "builtin" ; then
23711
23712
23713subdirs="$subdirs src/expat"
23714
23715 fi
23716fi
23717
23718
23719
23720if test "$wxUSE_LIBMSPACK" != "no"; then
a848cd7e
SC
23721 if test "${ac_cv_header_mspack_h+set}" = set; then
23722 echo "$as_me:$LINENO: checking for mspack.h" >&5
23723echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6
23724if test "${ac_cv_header_mspack_h+set}" = set; then
23725 echo $ECHO_N "(cached) $ECHO_C" >&6
23726fi
23727echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5
23728echo "${ECHO_T}$ac_cv_header_mspack_h" >&6
23729else
23730 # Is the header compilable?
23731echo "$as_me:$LINENO: checking mspack.h usability" >&5
23732echo $ECHO_N "checking mspack.h usability... $ECHO_C" >&6
23733cat >conftest.$ac_ext <<_ACEOF
23734/* confdefs.h. */
23735_ACEOF
23736cat confdefs.h >>conftest.$ac_ext
23737cat >>conftest.$ac_ext <<_ACEOF
23738/* end confdefs.h. */
23739$ac_includes_default
23740#include <mspack.h>
23741_ACEOF
23742rm -f conftest.$ac_objext
23743if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23744 (eval $ac_compile) 2>conftest.er1
a848cd7e 23745 ac_status=$?
ac1cb8d3
VS
23746 grep -v '^ *+' conftest.er1 >conftest.err
23747 rm -f conftest.er1
23748 cat conftest.err >&5
a848cd7e
SC
23749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23750 (exit $ac_status); } &&
9dd0f6c2 23751 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23753 (eval $ac_try) 2>&5
23754 ac_status=$?
23755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23756 (exit $ac_status); }; } &&
23757 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
23758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23759 (eval $ac_try) 2>&5
23760 ac_status=$?
23761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23762 (exit $ac_status); }; }; then
23763 ac_header_compiler=yes
23764else
23765 echo "$as_me: failed program was:" >&5
23766sed 's/^/| /' conftest.$ac_ext >&5
23767
23768ac_header_compiler=no
23769fi
ac1cb8d3 23770rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
23771echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23772echo "${ECHO_T}$ac_header_compiler" >&6
23773
23774# Is the header present?
23775echo "$as_me:$LINENO: checking mspack.h presence" >&5
23776echo $ECHO_N "checking mspack.h presence... $ECHO_C" >&6
23777cat >conftest.$ac_ext <<_ACEOF
23778/* confdefs.h. */
23779_ACEOF
23780cat confdefs.h >>conftest.$ac_ext
23781cat >>conftest.$ac_ext <<_ACEOF
23782/* end confdefs.h. */
23783#include <mspack.h>
23784_ACEOF
23785if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23786 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23787 ac_status=$?
23788 grep -v '^ *+' conftest.er1 >conftest.err
23789 rm -f conftest.er1
23790 cat conftest.err >&5
23791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23792 (exit $ac_status); } >/dev/null; then
23793 if test -s conftest.err; then
23794 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 23795 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
23796 else
23797 ac_cpp_err=
23798 fi
23799else
23800 ac_cpp_err=yes
23801fi
23802if test -z "$ac_cpp_err"; then
23803 ac_header_preproc=yes
23804else
23805 echo "$as_me: failed program was:" >&5
23806sed 's/^/| /' conftest.$ac_ext >&5
23807
23808 ac_header_preproc=no
23809fi
23810rm -f conftest.err conftest.$ac_ext
23811echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23812echo "${ECHO_T}$ac_header_preproc" >&6
23813
23814# So? What about this header?
ac1cb8d3
VS
23815case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23816 yes:no: )
a848cd7e
SC
23817 { echo "$as_me:$LINENO: WARNING: mspack.h: accepted by the compiler, rejected by the preprocessor!" >&5
23818echo "$as_me: WARNING: mspack.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
23819 { echo "$as_me:$LINENO: WARNING: mspack.h: proceeding with the compiler's result" >&5
23820echo "$as_me: WARNING: mspack.h: proceeding with the compiler's result" >&2;}
23821 ac_header_preproc=yes
a848cd7e 23822 ;;
ac1cb8d3 23823 no:yes:* )
a848cd7e
SC
23824 { echo "$as_me:$LINENO: WARNING: mspack.h: present but cannot be compiled" >&5
23825echo "$as_me: WARNING: mspack.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
23826 { echo "$as_me:$LINENO: WARNING: mspack.h: check for missing prerequisite headers?" >&5
23827echo "$as_me: WARNING: mspack.h: check for missing prerequisite headers?" >&2;}
23828 { echo "$as_me:$LINENO: WARNING: mspack.h: see the Autoconf documentation" >&5
23829echo "$as_me: WARNING: mspack.h: see the Autoconf documentation" >&2;}
23830 { echo "$as_me:$LINENO: WARNING: mspack.h: section \"Present But Cannot Be Compiled\"" >&5
23831echo "$as_me: WARNING: mspack.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
23832 { echo "$as_me:$LINENO: WARNING: mspack.h: proceeding with the preprocessor's result" >&5
23833echo "$as_me: WARNING: mspack.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
23834 { echo "$as_me:$LINENO: WARNING: mspack.h: in the future, the compiler will take precedence" >&5
23835echo "$as_me: WARNING: mspack.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
23836 (
23837 cat <<\_ASBOX
ac1cb8d3
VS
23838## ----------------------------------------- ##
23839## Report this to wx-dev@lists.wxwidgets.org ##
23840## ----------------------------------------- ##
a848cd7e
SC
23841_ASBOX
23842 ) |
23843 sed "s/^/$as_me: WARNING: /" >&2
23844 ;;
23845esac
23846echo "$as_me:$LINENO: checking for mspack.h" >&5
23847echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6
23848if test "${ac_cv_header_mspack_h+set}" = set; then
23849 echo $ECHO_N "(cached) $ECHO_C" >&6
23850else
23851 ac_cv_header_mspack_h=$ac_header_preproc
23852fi
23853echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5
23854echo "${ECHO_T}$ac_cv_header_mspack_h" >&6
23855
23856fi
23857if test $ac_cv_header_mspack_h = yes; then
23858 found_mspack_h=1
23859fi
23860
23861
23862 if test "x$found_mspack_h" = "x1"; then
23863 echo "$as_me:$LINENO: checking for mspack_create_chm_decompressor in -lmspack" >&5
23864echo $ECHO_N "checking for mspack_create_chm_decompressor in -lmspack... $ECHO_C" >&6
23865if test "${ac_cv_lib_mspack_mspack_create_chm_decompressor+set}" = set; then
23866 echo $ECHO_N "(cached) $ECHO_C" >&6
23867else
23868 ac_check_lib_save_LIBS=$LIBS
23869LIBS="-lmspack $LIBS"
23870cat >conftest.$ac_ext <<_ACEOF
23871/* confdefs.h. */
23872_ACEOF
23873cat confdefs.h >>conftest.$ac_ext
23874cat >>conftest.$ac_ext <<_ACEOF
23875/* end confdefs.h. */
23876
23877/* Override any gcc2 internal prototype to avoid an error. */
23878#ifdef __cplusplus
23879extern "C"
23880#endif
23881/* We use char because int might match the return type of a gcc2
23882 builtin and then its argument prototype would still apply. */
23883char mspack_create_chm_decompressor ();
23884int
23885main ()
23886{
23887mspack_create_chm_decompressor ();
23888 ;
23889 return 0;
23890}
23891_ACEOF
23892rm -f conftest.$ac_objext conftest$ac_exeext
23893if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 23894 (eval $ac_link) 2>conftest.er1
a848cd7e 23895 ac_status=$?
ac1cb8d3
VS
23896 grep -v '^ *+' conftest.er1 >conftest.err
23897 rm -f conftest.er1
23898 cat conftest.err >&5
a848cd7e
SC
23899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23900 (exit $ac_status); } &&
9dd0f6c2 23901 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23903 (eval $ac_try) 2>&5
23904 ac_status=$?
23905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23906 (exit $ac_status); }; } &&
23907 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
23908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23909 (eval $ac_try) 2>&5
23910 ac_status=$?
23911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23912 (exit $ac_status); }; }; then
23913 ac_cv_lib_mspack_mspack_create_chm_decompressor=yes
23914else
23915 echo "$as_me: failed program was:" >&5
23916sed 's/^/| /' conftest.$ac_ext >&5
23917
23918ac_cv_lib_mspack_mspack_create_chm_decompressor=no
23919fi
ac1cb8d3
VS
23920rm -f conftest.err conftest.$ac_objext \
23921 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
23922LIBS=$ac_check_lib_save_LIBS
23923fi
23924echo "$as_me:$LINENO: result: $ac_cv_lib_mspack_mspack_create_chm_decompressor" >&5
23925echo "${ECHO_T}$ac_cv_lib_mspack_mspack_create_chm_decompressor" >&6
23926if test $ac_cv_lib_mspack_mspack_create_chm_decompressor = yes; then
23927 MSPACK_LINK=" -lmspack"
23928fi
23929
23930 fi
23931 if test "x$MSPACK_LINK" = "x" ; then
23932 wxUSE_LIBMSPACK=no
dd3a2d96
VZ
23933 fi
23934fi
23935
23936if test "$wxUSE_LIBMSPACK" != "no"; then
23937 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
23938#define wxUSE_LIBMSPACK 1
23939_ACEOF
23940
a848cd7e
SC
23941fi
23942
23943
23944
23945AFMINSTALL=
23946WIN32INSTALL=
23947
23948TOOLKIT=
23949TOOLKIT_INCLUDE=
23950WIDGET_SET=
23951
23952if test "$USE_WIN32" = 1 ; then
23953
23954for ac_header in w32api.h
23955do
23956as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23957if eval "test \"\${$as_ac_Header+set}\" = set"; then
23958 echo "$as_me:$LINENO: checking for $ac_header" >&5
23959echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
23960if eval "test \"\${$as_ac_Header+set}\" = set"; then
23961 echo $ECHO_N "(cached) $ECHO_C" >&6
23962fi
23963echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
23964echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
23965else
23966 # Is the header compilable?
23967echo "$as_me:$LINENO: checking $ac_header usability" >&5
23968echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
23969cat >conftest.$ac_ext <<_ACEOF
23970/* confdefs.h. */
23971_ACEOF
23972cat confdefs.h >>conftest.$ac_ext
23973cat >>conftest.$ac_ext <<_ACEOF
23974/* end confdefs.h. */
23975$ac_includes_default
23976#include <$ac_header>
23977_ACEOF
23978rm -f conftest.$ac_objext
23979if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23980 (eval $ac_compile) 2>conftest.er1
a848cd7e 23981 ac_status=$?
ac1cb8d3
VS
23982 grep -v '^ *+' conftest.er1 >conftest.err
23983 rm -f conftest.er1
23984 cat conftest.err >&5
a848cd7e
SC
23985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23986 (exit $ac_status); } &&
9dd0f6c2 23987 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23989 (eval $ac_try) 2>&5
23990 ac_status=$?
23991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23992 (exit $ac_status); }; } &&
23993 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
23994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23995 (eval $ac_try) 2>&5
23996 ac_status=$?
23997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23998 (exit $ac_status); }; }; then
23999 ac_header_compiler=yes
24000else
24001 echo "$as_me: failed program was:" >&5
24002sed 's/^/| /' conftest.$ac_ext >&5
24003
24004ac_header_compiler=no
24005fi
ac1cb8d3 24006rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
24007echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24008echo "${ECHO_T}$ac_header_compiler" >&6
24009
24010# Is the header present?
24011echo "$as_me:$LINENO: checking $ac_header presence" >&5
24012echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
24013cat >conftest.$ac_ext <<_ACEOF
24014/* confdefs.h. */
24015_ACEOF
24016cat confdefs.h >>conftest.$ac_ext
24017cat >>conftest.$ac_ext <<_ACEOF
24018/* end confdefs.h. */
24019#include <$ac_header>
24020_ACEOF
24021if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24022 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24023 ac_status=$?
24024 grep -v '^ *+' conftest.er1 >conftest.err
24025 rm -f conftest.er1
24026 cat conftest.err >&5
24027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24028 (exit $ac_status); } >/dev/null; then
24029 if test -s conftest.err; then
24030 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 24031 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
24032 else
24033 ac_cpp_err=
24034 fi
24035else
24036 ac_cpp_err=yes
24037fi
24038if test -z "$ac_cpp_err"; then
24039 ac_header_preproc=yes
24040else
24041 echo "$as_me: failed program was:" >&5
24042sed 's/^/| /' conftest.$ac_ext >&5
24043
24044 ac_header_preproc=no
24045fi
24046rm -f conftest.err conftest.$ac_ext
24047echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24048echo "${ECHO_T}$ac_header_preproc" >&6
24049
24050# So? What about this header?
ac1cb8d3
VS
24051case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24052 yes:no: )
a848cd7e
SC
24053 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24054echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
24055 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24056echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24057 ac_header_preproc=yes
a848cd7e 24058 ;;
ac1cb8d3 24059 no:yes:* )
a848cd7e
SC
24060 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24061echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
24062 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
24063echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
24064 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24065echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24066 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
24067echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
24068 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24069echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
24070 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24071echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
24072 (
24073 cat <<\_ASBOX
ac1cb8d3
VS
24074## ----------------------------------------- ##
24075## Report this to wx-dev@lists.wxwidgets.org ##
24076## ----------------------------------------- ##
a848cd7e
SC
24077_ASBOX
24078 ) |
24079 sed "s/^/$as_me: WARNING: /" >&2
24080 ;;
24081esac
24082echo "$as_me:$LINENO: checking for $ac_header" >&5
24083echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24084if eval "test \"\${$as_ac_Header+set}\" = set"; then
24085 echo $ECHO_N "(cached) $ECHO_C" >&6
24086else
ac1cb8d3 24087 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
24088fi
24089echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24090echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24091
24092fi
24093if test `eval echo '${'$as_ac_Header'}'` = yes; then
24094 cat >>confdefs.h <<_ACEOF
24095#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24096_ACEOF
24097
24098fi
24099
24100done
24101
24102 if test "${ac_cv_header_windows_h+set}" = set; then
24103 echo "$as_me:$LINENO: checking for windows.h" >&5
24104echo $ECHO_N "checking for windows.h... $ECHO_C" >&6
24105if test "${ac_cv_header_windows_h+set}" = set; then
24106 echo $ECHO_N "(cached) $ECHO_C" >&6
24107fi
24108echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
24109echo "${ECHO_T}$ac_cv_header_windows_h" >&6
24110else
24111 # Is the header compilable?
24112echo "$as_me:$LINENO: checking windows.h usability" >&5
24113echo $ECHO_N "checking windows.h usability... $ECHO_C" >&6
24114cat >conftest.$ac_ext <<_ACEOF
24115/* confdefs.h. */
24116_ACEOF
24117cat confdefs.h >>conftest.$ac_ext
24118cat >>conftest.$ac_ext <<_ACEOF
24119/* end confdefs.h. */
24120$ac_includes_default
24121#include <windows.h>
24122_ACEOF
24123rm -f conftest.$ac_objext
24124if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 24125 (eval $ac_compile) 2>conftest.er1
a848cd7e 24126 ac_status=$?
ac1cb8d3
VS
24127 grep -v '^ *+' conftest.er1 >conftest.err
24128 rm -f conftest.er1
24129 cat conftest.err >&5
a848cd7e
SC
24130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24131 (exit $ac_status); } &&
9dd0f6c2 24132 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
24133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24134 (eval $ac_try) 2>&5
24135 ac_status=$?
24136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24137 (exit $ac_status); }; } &&
24138 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
24139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24140 (eval $ac_try) 2>&5
24141 ac_status=$?
24142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24143 (exit $ac_status); }; }; then
24144 ac_header_compiler=yes
24145else
24146 echo "$as_me: failed program was:" >&5
24147sed 's/^/| /' conftest.$ac_ext >&5
24148
24149ac_header_compiler=no
24150fi
ac1cb8d3 24151rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
24152echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24153echo "${ECHO_T}$ac_header_compiler" >&6
24154
24155# Is the header present?
24156echo "$as_me:$LINENO: checking windows.h presence" >&5
24157echo $ECHO_N "checking windows.h presence... $ECHO_C" >&6
24158cat >conftest.$ac_ext <<_ACEOF
24159/* confdefs.h. */
24160_ACEOF
24161cat confdefs.h >>conftest.$ac_ext
24162cat >>conftest.$ac_ext <<_ACEOF
24163/* end confdefs.h. */
24164#include <windows.h>
24165_ACEOF
24166if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24167 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24168 ac_status=$?
24169 grep -v '^ *+' conftest.er1 >conftest.err
24170 rm -f conftest.er1
24171 cat conftest.err >&5
24172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24173 (exit $ac_status); } >/dev/null; then
24174 if test -s conftest.err; then
24175 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 24176 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
24177 else
24178 ac_cpp_err=
24179 fi
24180else
24181 ac_cpp_err=yes
24182fi
24183if test -z "$ac_cpp_err"; then
24184 ac_header_preproc=yes
24185else
24186 echo "$as_me: failed program was:" >&5
24187sed 's/^/| /' conftest.$ac_ext >&5
24188
24189 ac_header_preproc=no
24190fi
24191rm -f conftest.err conftest.$ac_ext
24192echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24193echo "${ECHO_T}$ac_header_preproc" >&6
24194
24195# So? What about this header?
ac1cb8d3
VS
24196case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24197 yes:no: )
a848cd7e
SC
24198 { echo "$as_me:$LINENO: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&5
24199echo "$as_me: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
24200 { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the compiler's result" >&5
24201echo "$as_me: WARNING: windows.h: proceeding with the compiler's result" >&2;}
24202 ac_header_preproc=yes
a848cd7e 24203 ;;
ac1cb8d3 24204 no:yes:* )
a848cd7e
SC
24205 { echo "$as_me:$LINENO: WARNING: windows.h: present but cannot be compiled" >&5
24206echo "$as_me: WARNING: windows.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
24207 { echo "$as_me:$LINENO: WARNING: windows.h: check for missing prerequisite headers?" >&5
24208echo "$as_me: WARNING: windows.h: check for missing prerequisite headers?" >&2;}
24209 { echo "$as_me:$LINENO: WARNING: windows.h: see the Autoconf documentation" >&5
24210echo "$as_me: WARNING: windows.h: see the Autoconf documentation" >&2;}
24211 { echo "$as_me:$LINENO: WARNING: windows.h: section \"Present But Cannot Be Compiled\"" >&5
24212echo "$as_me: WARNING: windows.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
24213 { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the preprocessor's result" >&5
24214echo "$as_me: WARNING: windows.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
24215 { echo "$as_me:$LINENO: WARNING: windows.h: in the future, the compiler will take precedence" >&5
24216echo "$as_me: WARNING: windows.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
24217 (
24218 cat <<\_ASBOX
ac1cb8d3
VS
24219## ----------------------------------------- ##
24220## Report this to wx-dev@lists.wxwidgets.org ##
24221## ----------------------------------------- ##
a848cd7e
SC
24222_ASBOX
24223 ) |
24224 sed "s/^/$as_me: WARNING: /" >&2
24225 ;;
24226esac
24227echo "$as_me:$LINENO: checking for windows.h" >&5
24228echo $ECHO_N "checking for windows.h... $ECHO_C" >&6
24229if test "${ac_cv_header_windows_h+set}" = set; then
24230 echo $ECHO_N "(cached) $ECHO_C" >&6
24231else
24232 ac_cv_header_windows_h=$ac_header_preproc
24233fi
24234echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
24235echo "${ECHO_T}$ac_cv_header_windows_h" >&6
24236
24237fi
24238if test $ac_cv_header_windows_h = yes; then
24239 :
24240else
24241
24242 { { echo "$as_me:$LINENO: error: please set CFLAGS to contain the location of windows.h" >&5
24243echo "$as_me: error: please set CFLAGS to contain the location of windows.h" >&2;}
24244 { (exit 1); exit 1; }; }
24245
24246fi
24247
24248
24249
24250 LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lcomdlg32 -lctl3d32 -ladvapi32 -lwsock32 -lgdi32"
24251
24252 if test "$wxUSE_ACCESSIBILITY" = "yes" ; then
24253 LIBS="$LIBS -loleacc"
24254 fi
24255
24256 case "${host}" in
24257 *-*-cygwin* )
24258 LIBS="$LIBS -lkernel32 -luser32"
24259 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WIN95__"
24260 esac
24261
24262 if test "$wxUSE_ODBC" = "sys" ; then
24263 wxUSE_ODBC = "yes"
24264 fi
24265 if test "$wxUSE_ODBC" = "yes" ; then
24266 LIBS=" -lodbc32 -lole32 -loleaut32 $LIBS"
24267 cat >>confdefs.h <<\_ACEOF
24268#define wxUSE_ODBC 1
24269_ACEOF
24270
24271 fi
24272
24273 RESFLAGS="--include-dir \$(top_srcdir)/include --include-dir \$(top_srcdir)/\$(program_dir) --define __WIN32__ --define __WIN95__ --define __GNUWIN32__"
24274 RESPROGRAMOBJ="\$(PROGRAM)_resources.o"
24275
24276 WIN32INSTALL=win32install
24277fi
24278
24279if test "$wxUSE_GUI" = "yes"; then
24280 USE_GUI=1
24281
24282 GUI_TK_LIBRARY=
24283
24284 WXGTK12=
24285 WXGTK127=
24286 WXGTK20=
24287 WXGPE=
24288
207bc66c
RN
24289 if test "$wxUSE_COCOA" = 1 ; then
24290 if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes"; then
24291 { echo "$as_me:$LINENO: WARNING: Printing not supported under wxCocoa yet, disabled" >&5
24292echo "$as_me: WARNING: Printing not supported under wxCocoa yet, disabled" >&2;}
24293 wxUSE_PRINTING_ARCHITECTURE=no
24294 fi
24295 if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
24296 { echo "$as_me:$LINENO: WARNING: Drag and Drop not supported under wxCocoa yet, disabled" >&5
24297echo "$as_me: WARNING: Drag and Drop not supported under wxCocoa yet, disabled" >&2;}
24298 wxUSE_DRAG_AND_DROP=no
24299 fi
24300 if test "$wxUSE_DRAGIMAGE" = "yes"; then
24301 { echo "$as_me:$LINENO: WARNING: Drag Image and DandD not supported under wxCocoa yet, disabled" >&5
24302echo "$as_me: WARNING: Drag Image and DandD not supported under wxCocoa yet, disabled" >&2;}
24303 wxUSE_DRAGIMAGE=no
24304 fi
24305 fi
24306
a848cd7e
SC
24307 if test "$wxUSE_MSW" = 1 ; then
24308 TOOLKIT=MSW
24309 GUIDIST=MSW_DIST
24310
ceec2216 24311 case "${host}" in
a848cd7e
SC
24312 *-*-mingw32* )
24313 WXCONFIG_LDFLAGS_GUI="$LDFLAGS -Wl,--subsystem,windows -mwindows"
24314 esac
24315 fi
24316
24317 if test "$wxUSE_GTK" = 1; then
24318 echo "$as_me:$LINENO: checking for GTK+ version" >&5
24319echo $ECHO_N "checking for GTK+ version... $ECHO_C" >&6
24320
24321 gtk_version_cached=1
24322 if test "${wx_cv_lib_gtk+set}" = set; then
24323 echo $ECHO_N "(cached) $ECHO_C" >&6
24324else
24325
24326 gtk_version_cached=0
24327 echo "$as_me:$LINENO: result: " >&5
24328echo "${ECHO_T}" >&6
24329
24330 GTK_MODULES=
24331 if test "$wxUSE_THREADS" = "yes"; then
24332 GTK_MODULES=gthread
24333 fi
24334
f597b41c
MW
24335 if test "x$wxUSE_GTK1" != "xyes" -a "x$wxUSE_GTK2" != "xyes"; then
24336 wxUSE_GTK2=yes
24337 fi
24338
24339 wx_cv_lib_gtk=
a848cd7e
SC
24340 if test "x$wxUSE_GTK2" = "xyes"; then
24341 # Check whether --enable-gtktest or --disable-gtktest was given.
24342if test "${enable_gtktest+set}" = set; then
24343 enableval="$enable_gtktest"
24344
24345else
24346 enable_gtktest=yes
24347fi;
24348
24349 pkg_config_args=gtk+-2.0
24350 for module in . $GTK_MODULES
24351 do
24352 case "$module" in
24353 gthread)
24354 pkg_config_args="$pkg_config_args gthread-2.0"
24355 ;;
24356 esac
24357 done
24358
24359 no_gtk=""
24360
24361 # Extract the first word of "pkg-config", so it can be a program name with args.
24362set dummy pkg-config; ac_word=$2
24363echo "$as_me:$LINENO: checking for $ac_word" >&5
24364echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24365if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
24366 echo $ECHO_N "(cached) $ECHO_C" >&6
24367else
24368 case $PKG_CONFIG in
24369 [\\/]* | ?:[\\/]*)
24370 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
24371 ;;
24372 *)
24373 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24374for as_dir in $PATH
24375do
24376 IFS=$as_save_IFS
24377 test -z "$as_dir" && as_dir=.
24378 for ac_exec_ext in '' $ac_executable_extensions; do
24379 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24380 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
24381 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24382 break 2
24383 fi
24384done
24385done
24386
24387 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
24388 ;;
24389esac
24390fi
24391PKG_CONFIG=$ac_cv_path_PKG_CONFIG
24392
24393if test -n "$PKG_CONFIG"; then
24394 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
24395echo "${ECHO_T}$PKG_CONFIG" >&6
24396else
24397 echo "$as_me:$LINENO: result: no" >&5
24398echo "${ECHO_T}no" >&6
24399fi
24400
24401
24402 if test x$PKG_CONFIG != xno ; then
24403 if pkg-config --atleast-pkgconfig-version 0.7 ; then
24404 :
24405 else
c2218763 24406 echo "*** pkg-config too old; version 0.7 or better required."
a848cd7e
SC
24407 no_gtk=yes
24408 PKG_CONFIG=no
24409 fi
24410 else
24411 no_gtk=yes
24412 fi
24413
24414 min_gtk_version=2.0.0
24415 echo "$as_me:$LINENO: checking for GTK+ - version >= $min_gtk_version" >&5
24416echo $ECHO_N "checking for GTK+ - version >= $min_gtk_version... $ECHO_C" >&6
24417
24418 if test x$PKG_CONFIG != xno ; then
24419 ## don't try to run the test against uninstalled libtool libs
24420 if $PKG_CONFIG --uninstalled $pkg_config_args; then
24421 echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH"
24422 enable_gtktest=no
24423 fi
24424
24425 if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then
24426 :
24427 else
24428 no_gtk=yes
24429 fi
24430 fi
24431
24432 if test x"$no_gtk" = x ; then
24433 GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags`
24434 GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs`
24435 gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
24436 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
24437 gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
24438 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
24439 gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
24440 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
24441 if test "x$enable_gtktest" = "xyes" ; then
24442 ac_save_CFLAGS="$CFLAGS"
24443 ac_save_LIBS="$LIBS"
24444 CFLAGS="$CFLAGS $GTK_CFLAGS"
24445 LIBS="$GTK_LIBS $LIBS"
24446 rm -f conf.gtktest
24447 if test "$cross_compiling" = yes; then
24448 echo $ac_n "cross compiling; assumed OK... $ac_c"
24449else
24450 cat >conftest.$ac_ext <<_ACEOF
24451/* confdefs.h. */
24452_ACEOF
24453cat confdefs.h >>conftest.$ac_ext
24454cat >>conftest.$ac_ext <<_ACEOF
24455/* end confdefs.h. */
24456
24457#include <gtk/gtk.h>
24458#include <stdio.h>
24459#include <stdlib.h>
24460
24461int
24462main ()
24463{
24464 int major, minor, micro;
24465 char *tmp_version;
24466
24467 system ("touch conf.gtktest");
24468
24469 /* HP/UX 9 (%@#!) writes to sscanf strings */
24470 tmp_version = g_strdup("$min_gtk_version");
24471 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
24472 printf("%s, bad version string\n", "$min_gtk_version");
24473 exit(1);
24474 }
24475
24476 if ((gtk_major_version != $gtk_config_major_version) ||
24477 (gtk_minor_version != $gtk_config_minor_version) ||
24478 (gtk_micro_version != $gtk_config_micro_version))
24479 {
24480 printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
24481 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
24482 gtk_major_version, gtk_minor_version, gtk_micro_version);
24483 printf ("*** was found! If pkg-config was correct, then it is best\n");
24484 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
24485 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
24486 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
24487 printf("*** required on your system.\n");
24488 printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
24489 printf("*** to point to the correct configuration files\n");
24490 }
24491 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
24492 (gtk_minor_version != GTK_MINOR_VERSION) ||
24493 (gtk_micro_version != GTK_MICRO_VERSION))
24494 {
24495 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
24496 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
24497 printf("*** library (version %d.%d.%d)\n",
24498 gtk_major_version, gtk_minor_version, gtk_micro_version);
24499 }
24500 else
24501 {
24502 if ((gtk_major_version > major) ||
24503 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
24504 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
24505 {
24506 return 0;
24507 }
24508 else
24509 {
24510 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
24511 gtk_major_version, gtk_minor_version, gtk_micro_version);
24512 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
24513 major, minor, micro);
24514 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
24515 printf("***\n");
24516 printf("*** If you have already installed a sufficiently new version, this error\n");
24517 printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
24518 printf("*** being found. The easiest way to fix this is to remove the old version\n");
24519 printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n");
24520 printf("*** correct copy of pkg-config. (In this case, you will have to\n");
24521 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
24522 printf("*** so that the correct libraries are found at run-time))\n");
24523 }
24524 }
24525 return 1;
24526}
24527
24528_ACEOF
24529rm -f conftest$ac_exeext
24530if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24531 (eval $ac_link) 2>&5
24532 ac_status=$?
24533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24534 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24536 (eval $ac_try) 2>&5
24537 ac_status=$?
24538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24539 (exit $ac_status); }; }; then
24540 :
24541else
24542 echo "$as_me: program exited with status $ac_status" >&5
24543echo "$as_me: failed program was:" >&5
24544sed 's/^/| /' conftest.$ac_ext >&5
24545
24546( exit $ac_status )
24547no_gtk=yes
24548fi
ac1cb8d3 24549rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
24550fi
24551 CFLAGS="$ac_save_CFLAGS"
24552 LIBS="$ac_save_LIBS"
24553 fi
24554 fi
24555 if test "x$no_gtk" = x ; then
24556 echo "$as_me:$LINENO: result: yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&5
24557echo "${ECHO_T}yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&6
24558 wx_cv_lib_gtk=2.0
24559 else
24560 echo "$as_me:$LINENO: result: no" >&5
24561echo "${ECHO_T}no" >&6
24562 if test "$PKG_CONFIG" = "no" ; then
24563 echo "*** A new enough version of pkg-config was not found."
24564 echo "*** See http://pkgconfig.sourceforge.net"
24565 else
24566 if test -f conf.gtktest ; then
24567 :
24568 else
24569 echo "*** Could not run GTK+ test program, checking why..."
24570 ac_save_CFLAGS="$CFLAGS"
24571 ac_save_LIBS="$LIBS"
24572 CFLAGS="$CFLAGS $GTK_CFLAGS"
24573 LIBS="$LIBS $GTK_LIBS"
24574 cat >conftest.$ac_ext <<_ACEOF
24575/* confdefs.h. */
24576_ACEOF
24577cat confdefs.h >>conftest.$ac_ext
24578cat >>conftest.$ac_ext <<_ACEOF
24579/* end confdefs.h. */
24580
24581#include <gtk/gtk.h>
24582#include <stdio.h>
24583
24584int
24585main ()
24586{
24587 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
24588 ;
24589 return 0;
24590}
24591_ACEOF
24592rm -f conftest.$ac_objext conftest$ac_exeext
24593if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24594 (eval $ac_link) 2>conftest.er1
a848cd7e 24595 ac_status=$?
ac1cb8d3
VS
24596 grep -v '^ *+' conftest.er1 >conftest.err
24597 rm -f conftest.er1
24598 cat conftest.err >&5
a848cd7e
SC
24599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24600 (exit $ac_status); } &&
9dd0f6c2 24601 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
24602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24603 (eval $ac_try) 2>&5
24604 ac_status=$?
24605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24606 (exit $ac_status); }; } &&
24607 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24609 (eval $ac_try) 2>&5
24610 ac_status=$?
24611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24612 (exit $ac_status); }; }; then
24613 echo "*** The test program compiled, but did not run. This usually means"
24614 echo "*** that the run-time linker is not finding GTK+ or finding the wrong"
24615 echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your"
24616 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
24617 echo "*** to the installed location Also, make sure you have run ldconfig if that"
24618 echo "*** is required on your system"
24619 echo "***"
24620 echo "*** If you have an old version installed, it is best to remove it, although"
24621 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
24622else
24623 echo "$as_me: failed program was:" >&5
24624sed 's/^/| /' conftest.$ac_ext >&5
24625
24626 echo "*** The test program failed to compile or link. See the file config.log for the"
24627 echo "*** exact error that occured. This usually means GTK+ is incorrectly installed."
24628fi
ac1cb8d3
VS
24629rm -f conftest.err conftest.$ac_objext \
24630 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24631 CFLAGS="$ac_save_CFLAGS"
24632 LIBS="$ac_save_LIBS"
24633 fi
24634 fi
24635 GTK_CFLAGS=""
24636 GTK_LIBS=""
24637 :
24638 fi
24639
24640
24641 rm -f conf.gtktest
24642
f597b41c
MW
24643 fi
24644
24645 if test -z "$wx_cv_lib_gtk" -a "x$wxUSE_GTK1" = "xyes"; then
a848cd7e
SC
24646
24647# Check whether --with-gtk-prefix or --without-gtk-prefix was given.
24648if test "${with_gtk_prefix+set}" = set; then
24649 withval="$with_gtk_prefix"
24650 gtk_config_prefix="$withval"
24651else
24652 gtk_config_prefix=""
24653fi;
24654
24655# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
24656if test "${with_gtk_exec_prefix+set}" = set; then
24657 withval="$with_gtk_exec_prefix"
24658 gtk_config_exec_prefix="$withval"
24659else
24660 gtk_config_exec_prefix=""
24661fi;
24662# Check whether --enable-gtktest or --disable-gtktest was given.
24663if test "${enable_gtktest+set}" = set; then
24664 enableval="$enable_gtktest"
24665
24666else
24667 enable_gtktest=yes
24668fi;
24669
24670 for module in . $GTK_MODULES
24671 do
24672 case "$module" in
24673 gthread)
24674 gtk_config_args="$gtk_config_args gthread"
24675 ;;
24676 esac
24677 done
24678
24679 if test x$gtk_config_exec_prefix != x ; then
24680 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
24681 if test x${GTK_CONFIG+set} != xset ; then
24682 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
24683 fi
24684 fi
24685 if test x$gtk_config_prefix != x ; then
24686 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
24687 if test x${GTK_CONFIG+set} != xset ; then
24688 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
24689 fi
24690 fi
24691
24692 # Extract the first word of "gtk-config", so it can be a program name with args.
24693set dummy gtk-config; ac_word=$2
24694echo "$as_me:$LINENO: checking for $ac_word" >&5
24695echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24696if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
24697 echo $ECHO_N "(cached) $ECHO_C" >&6
24698else
24699 case $GTK_CONFIG in
24700 [\\/]* | ?:[\\/]*)
24701 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
24702 ;;
24703 *)
24704 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24705for as_dir in $PATH
24706do
24707 IFS=$as_save_IFS
24708 test -z "$as_dir" && as_dir=.
24709 for ac_exec_ext in '' $ac_executable_extensions; do
24710 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24711 ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
24712 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24713 break 2
24714 fi
24715done
24716done
24717
24718 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
24719 ;;
24720esac
24721fi
24722GTK_CONFIG=$ac_cv_path_GTK_CONFIG
24723
24724if test -n "$GTK_CONFIG"; then
24725 echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
24726echo "${ECHO_T}$GTK_CONFIG" >&6
24727else
24728 echo "$as_me:$LINENO: result: no" >&5
24729echo "${ECHO_T}no" >&6
24730fi
24731
24732 min_gtk_version=1.2.7
24733 echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
24734echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6
24735 no_gtk=""
24736 if test "$GTK_CONFIG" = "no" ; then
24737 no_gtk=yes
24738 else
24739 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
24740 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
24741 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
24742 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
24743 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
24744 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
24745 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
24746 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
24747 if test "x$enable_gtktest" = "xyes" ; then
24748 ac_save_CFLAGS="$CFLAGS"
24749 ac_save_LIBS="$LIBS"
24750 CFLAGS="$CFLAGS $GTK_CFLAGS"
24751 LIBS="$GTK_LIBS $LIBS"
24752 rm -f conf.gtktest
24753 if test "$cross_compiling" = yes; then
24754 echo $ac_n "cross compiling; assumed OK... $ac_c"
24755else
24756 cat >conftest.$ac_ext <<_ACEOF
24757/* confdefs.h. */
24758_ACEOF
24759cat confdefs.h >>conftest.$ac_ext
24760cat >>conftest.$ac_ext <<_ACEOF
24761/* end confdefs.h. */
24762
24763#include <gtk/gtk.h>
24764#include <stdio.h>
24765#include <stdlib.h>
24766
24767int
24768main ()
24769{
24770 int major, minor, micro;
24771 char *tmp_version;
24772
24773 system ("touch conf.gtktest");
24774
24775 /* HP/UX 9 (%@#!) writes to sscanf strings */
24776 tmp_version = g_strdup("$min_gtk_version");
24777 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
24778 printf("%s, bad version string\n", "$min_gtk_version");
24779 exit(1);
24780 }
24781
24782 if ((gtk_major_version != $gtk_config_major_version) ||
24783 (gtk_minor_version != $gtk_config_minor_version) ||
24784 (gtk_micro_version != $gtk_config_micro_version))
24785 {
24786 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
24787 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
24788 gtk_major_version, gtk_minor_version, gtk_micro_version);
24789 printf ("*** was found! If gtk-config was correct, then it is best\n");
24790 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
24791 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
24792 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
24793 printf("*** required on your system.\n");
24794 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
24795 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
24796 printf("*** before re-running configure\n");
24797 }
24798#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
24799 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
24800 (gtk_minor_version != GTK_MINOR_VERSION) ||
24801 (gtk_micro_version != GTK_MICRO_VERSION))
24802 {
24803 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
24804 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
24805 printf("*** library (version %d.%d.%d)\n",
24806 gtk_major_version, gtk_minor_version, gtk_micro_version);
24807 }
24808#endif /* defined (GTK_MAJOR_VERSION) ... */
24809 else
24810 {
24811 if ((gtk_major_version > major) ||
24812 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
24813 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
24814 {
24815 return 0;
24816 }
24817 else
24818 {
24819 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
24820 gtk_major_version, gtk_minor_version, gtk_micro_version);
24821 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
24822 major, minor, micro);
24823 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
24824 printf("***\n");
24825 printf("*** If you have already installed a sufficiently new version, this error\n");
24826 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
24827 printf("*** being found. The easiest way to fix this is to remove the old version\n");
24828 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
24829 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
24830 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
24831 printf("*** so that the correct libraries are found at run-time))\n");
24832 }
24833 }
24834 return 1;
24835}
24836
24837_ACEOF
24838rm -f conftest$ac_exeext
24839if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24840 (eval $ac_link) 2>&5
24841 ac_status=$?
24842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24843 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24845 (eval $ac_try) 2>&5
24846 ac_status=$?
24847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24848 (exit $ac_status); }; }; then
24849 :
24850else
24851 echo "$as_me: program exited with status $ac_status" >&5
24852echo "$as_me: failed program was:" >&5
24853sed 's/^/| /' conftest.$ac_ext >&5
24854
24855( exit $ac_status )
24856no_gtk=yes
24857fi
ac1cb8d3 24858rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
24859fi
24860 CFLAGS="$ac_save_CFLAGS"
24861 LIBS="$ac_save_LIBS"
24862 fi
24863 fi
24864 if test "x$no_gtk" = x ; then
24865 echo "$as_me:$LINENO: result: yes" >&5
24866echo "${ECHO_T}yes" >&6
24867 wx_cv_lib_gtk=1.2.7
24868 else
24869 echo "$as_me:$LINENO: result: no" >&5
24870echo "${ECHO_T}no" >&6
24871 if test "$GTK_CONFIG" = "no" ; then
24872 echo "*** The gtk-config script installed by GTK could not be found"
24873 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
24874 echo "*** your path, or set the GTK_CONFIG environment variable to the"
24875 echo "*** full path to gtk-config."
24876 else
24877 if test -f conf.gtktest ; then
24878 :
24879 else
24880 echo "*** Could not run GTK test program, checking why..."
24881 CFLAGS="$CFLAGS $GTK_CFLAGS"
24882 LIBS="$LIBS $GTK_LIBS"
24883 cat >conftest.$ac_ext <<_ACEOF
24884/* confdefs.h. */
24885_ACEOF
24886cat confdefs.h >>conftest.$ac_ext
24887cat >>conftest.$ac_ext <<_ACEOF
24888/* end confdefs.h. */
24889
24890#include <gtk/gtk.h>
24891#include <stdio.h>
24892
24893int
24894main ()
24895{
24896 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
24897 ;
24898 return 0;
24899}
24900_ACEOF
24901rm -f conftest.$ac_objext conftest$ac_exeext
24902if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24903 (eval $ac_link) 2>conftest.er1
a848cd7e 24904 ac_status=$?
ac1cb8d3
VS
24905 grep -v '^ *+' conftest.er1 >conftest.err
24906 rm -f conftest.er1
24907 cat conftest.err >&5
a848cd7e
SC
24908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24909 (exit $ac_status); } &&
9dd0f6c2 24910 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
24911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24912 (eval $ac_try) 2>&5
24913 ac_status=$?
24914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24915 (exit $ac_status); }; } &&
24916 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24918 (eval $ac_try) 2>&5
24919 ac_status=$?
24920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24921 (exit $ac_status); }; }; then
24922 echo "*** The test program compiled, but did not run. This usually means"
24923 echo "*** that the run-time linker is not finding GTK or finding the wrong"
24924 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
24925 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
24926 echo "*** to the installed location Also, make sure you have run ldconfig if that"
24927 echo "*** is required on your system"
24928 echo "***"
24929 echo "*** If you have an old version installed, it is best to remove it, although"
24930 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
24931 echo "***"
24932 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
24933 echo "*** came with the system with the command"
24934 echo "***"
24935 echo "*** rpm --erase --nodeps gtk gtk-devel"
24936else
24937 echo "$as_me: failed program was:" >&5
24938sed 's/^/| /' conftest.$ac_ext >&5
24939
24940 echo "*** The test program failed to compile or link. See the file config.log for the"
24941 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
24942 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
24943 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
24944fi
ac1cb8d3
VS
24945rm -f conftest.err conftest.$ac_objext \
24946 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24947 CFLAGS="$ac_save_CFLAGS"
24948 LIBS="$ac_save_LIBS"
24949 fi
24950 fi
24951 GTK_CFLAGS=""
24952 GTK_LIBS=""
24953 :
24954 fi
24955
24956
24957 rm -f conf.gtktest
24958
24959
24960 if test -z "$wx_cv_lib_gtk"; then
24961
24962# Check whether --with-gtk-prefix or --without-gtk-prefix was given.
24963if test "${with_gtk_prefix+set}" = set; then
24964 withval="$with_gtk_prefix"
24965 gtk_config_prefix="$withval"
24966else
24967 gtk_config_prefix=""
24968fi;
24969
24970# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
24971if test "${with_gtk_exec_prefix+set}" = set; then
24972 withval="$with_gtk_exec_prefix"
24973 gtk_config_exec_prefix="$withval"
24974else
24975 gtk_config_exec_prefix=""
24976fi;
24977# Check whether --enable-gtktest or --disable-gtktest was given.
24978if test "${enable_gtktest+set}" = set; then
24979 enableval="$enable_gtktest"
24980
24981else
24982 enable_gtktest=yes
24983fi;
24984
24985 for module in . $GTK_MODULES
24986 do
24987 case "$module" in
24988 gthread)
24989 gtk_config_args="$gtk_config_args gthread"
24990 ;;
24991 esac
24992 done
24993
24994 if test x$gtk_config_exec_prefix != x ; then
24995 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
24996 if test x${GTK_CONFIG+set} != xset ; then
24997 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
24998 fi
24999 fi
25000 if test x$gtk_config_prefix != x ; then
25001 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
25002 if test x${GTK_CONFIG+set} != xset ; then
25003 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
25004 fi
25005 fi
25006
25007 # Extract the first word of "gtk-config", so it can be a program name with args.
25008set dummy gtk-config; ac_word=$2
25009echo "$as_me:$LINENO: checking for $ac_word" >&5
25010echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25011if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
25012 echo $ECHO_N "(cached) $ECHO_C" >&6
25013else
25014 case $GTK_CONFIG in
25015 [\\/]* | ?:[\\/]*)
25016 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
25017 ;;
25018 *)
25019 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25020for as_dir in $PATH
25021do
25022 IFS=$as_save_IFS
25023 test -z "$as_dir" && as_dir=.
25024 for ac_exec_ext in '' $ac_executable_extensions; do
25025 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25026 ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
25027 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25028 break 2
25029 fi
25030done
25031done
25032
25033 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
25034 ;;
25035esac
25036fi
25037GTK_CONFIG=$ac_cv_path_GTK_CONFIG
25038
25039if test -n "$GTK_CONFIG"; then
25040 echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
25041echo "${ECHO_T}$GTK_CONFIG" >&6
25042else
25043 echo "$as_me:$LINENO: result: no" >&5
25044echo "${ECHO_T}no" >&6
25045fi
25046
25047 min_gtk_version=1.2.3
25048 echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
25049echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6
25050 no_gtk=""
25051 if test "$GTK_CONFIG" = "no" ; then
25052 no_gtk=yes
25053 else
25054 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
25055 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
25056 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
25057 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
25058 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
25059 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
25060 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
25061 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
25062 if test "x$enable_gtktest" = "xyes" ; then
25063 ac_save_CFLAGS="$CFLAGS"
25064 ac_save_LIBS="$LIBS"
25065 CFLAGS="$CFLAGS $GTK_CFLAGS"
25066 LIBS="$GTK_LIBS $LIBS"
25067 rm -f conf.gtktest
25068 if test "$cross_compiling" = yes; then
25069 echo $ac_n "cross compiling; assumed OK... $ac_c"
25070else
25071 cat >conftest.$ac_ext <<_ACEOF
25072/* confdefs.h. */
25073_ACEOF
25074cat confdefs.h >>conftest.$ac_ext
25075cat >>conftest.$ac_ext <<_ACEOF
25076/* end confdefs.h. */
25077
25078#include <gtk/gtk.h>
25079#include <stdio.h>
25080#include <stdlib.h>
25081
25082int
25083main ()
25084{
25085 int major, minor, micro;
25086 char *tmp_version;
25087
25088 system ("touch conf.gtktest");
25089
25090 /* HP/UX 9 (%@#!) writes to sscanf strings */
25091 tmp_version = g_strdup("$min_gtk_version");
25092 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
25093 printf("%s, bad version string\n", "$min_gtk_version");
25094 exit(1);
25095 }
25096
25097 if ((gtk_major_version != $gtk_config_major_version) ||
25098 (gtk_minor_version != $gtk_config_minor_version) ||
25099 (gtk_micro_version != $gtk_config_micro_version))
25100 {
25101 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
25102 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
25103 gtk_major_version, gtk_minor_version, gtk_micro_version);
25104 printf ("*** was found! If gtk-config was correct, then it is best\n");
25105 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
25106 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
25107 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
25108 printf("*** required on your system.\n");
25109 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
25110 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
25111 printf("*** before re-running configure\n");
25112 }
25113#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
25114 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
25115 (gtk_minor_version != GTK_MINOR_VERSION) ||
25116 (gtk_micro_version != GTK_MICRO_VERSION))
25117 {
25118 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
25119 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
25120 printf("*** library (version %d.%d.%d)\n",
25121 gtk_major_version, gtk_minor_version, gtk_micro_version);
25122 }
25123#endif /* defined (GTK_MAJOR_VERSION) ... */
25124 else
25125 {
25126 if ((gtk_major_version > major) ||
25127 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
25128 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
25129 {
25130 return 0;
25131 }
25132 else
25133 {
25134 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
25135 gtk_major_version, gtk_minor_version, gtk_micro_version);
25136 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
25137 major, minor, micro);
25138 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
25139 printf("***\n");
25140 printf("*** If you have already installed a sufficiently new version, this error\n");
25141 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
25142 printf("*** being found. The easiest way to fix this is to remove the old version\n");
25143 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
25144 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
25145 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
25146 printf("*** so that the correct libraries are found at run-time))\n");
25147 }
25148 }
25149 return 1;
25150}
25151
25152_ACEOF
25153rm -f conftest$ac_exeext
25154if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25155 (eval $ac_link) 2>&5
25156 ac_status=$?
25157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25158 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25160 (eval $ac_try) 2>&5
25161 ac_status=$?
25162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25163 (exit $ac_status); }; }; then
25164 :
25165else
25166 echo "$as_me: program exited with status $ac_status" >&5
25167echo "$as_me: failed program was:" >&5
25168sed 's/^/| /' conftest.$ac_ext >&5
25169
25170( exit $ac_status )
25171no_gtk=yes
25172fi
ac1cb8d3 25173rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
25174fi
25175 CFLAGS="$ac_save_CFLAGS"
25176 LIBS="$ac_save_LIBS"
25177 fi
25178 fi
25179 if test "x$no_gtk" = x ; then
25180 echo "$as_me:$LINENO: result: yes" >&5
25181echo "${ECHO_T}yes" >&6
25182 wx_cv_lib_gtk=1.2.3
25183 else
25184 echo "$as_me:$LINENO: result: no" >&5
25185echo "${ECHO_T}no" >&6
25186 if test "$GTK_CONFIG" = "no" ; then
25187 echo "*** The gtk-config script installed by GTK could not be found"
25188 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
25189 echo "*** your path, or set the GTK_CONFIG environment variable to the"
25190 echo "*** full path to gtk-config."
25191 else
25192 if test -f conf.gtktest ; then
25193 :
25194 else
25195 echo "*** Could not run GTK test program, checking why..."
25196 CFLAGS="$CFLAGS $GTK_CFLAGS"
25197 LIBS="$LIBS $GTK_LIBS"
25198 cat >conftest.$ac_ext <<_ACEOF
25199/* confdefs.h. */
25200_ACEOF
25201cat confdefs.h >>conftest.$ac_ext
25202cat >>conftest.$ac_ext <<_ACEOF
25203/* end confdefs.h. */
25204
25205#include <gtk/gtk.h>
25206#include <stdio.h>
25207
25208int
25209main ()
25210{
25211 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
25212 ;
25213 return 0;
25214}
25215_ACEOF
25216rm -f conftest.$ac_objext conftest$ac_exeext
25217if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25218 (eval $ac_link) 2>conftest.er1
a848cd7e 25219 ac_status=$?
ac1cb8d3
VS
25220 grep -v '^ *+' conftest.er1 >conftest.err
25221 rm -f conftest.er1
25222 cat conftest.err >&5
a848cd7e
SC
25223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25224 (exit $ac_status); } &&
9dd0f6c2 25225 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
25226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25227 (eval $ac_try) 2>&5
25228 ac_status=$?
25229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25230 (exit $ac_status); }; } &&
25231 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25233 (eval $ac_try) 2>&5
25234 ac_status=$?
25235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25236 (exit $ac_status); }; }; then
25237 echo "*** The test program compiled, but did not run. This usually means"
25238 echo "*** that the run-time linker is not finding GTK or finding the wrong"
25239 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
25240 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
25241 echo "*** to the installed location Also, make sure you have run ldconfig if that"
25242 echo "*** is required on your system"
25243 echo "***"
25244 echo "*** If you have an old version installed, it is best to remove it, although"
25245 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
25246 echo "***"
25247 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
25248 echo "*** came with the system with the command"
25249 echo "***"
25250 echo "*** rpm --erase --nodeps gtk gtk-devel"
25251else
25252 echo "$as_me: failed program was:" >&5
25253sed 's/^/| /' conftest.$ac_ext >&5
25254
25255 echo "*** The test program failed to compile or link. See the file config.log for the"
25256 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
25257 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
25258 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
25259fi
ac1cb8d3
VS
25260rm -f conftest.err conftest.$ac_objext \
25261 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25262 CFLAGS="$ac_save_CFLAGS"
25263 LIBS="$ac_save_LIBS"
25264 fi
25265 fi
25266 GTK_CFLAGS=""
25267 GTK_LIBS=""
25268 :
25269 fi
25270
25271
25272 rm -f conf.gtktest
25273
25274 fi
25275 fi
25276
25277 if test -z "$wx_cv_lib_gtk"; then
25278 wx_cv_lib_gtk=none
25279 else
25280 wx_cv_cflags_gtk=$GTK_CFLAGS
25281 wx_cv_libs_gtk=$GTK_LIBS
25282 fi
25283
25284
25285fi
25286
25287
25288 if test "$gtk_version_cached" = 1; then
25289 echo "$as_me:$LINENO: result: $wx_cv_lib_gtk" >&5
25290echo "${ECHO_T}$wx_cv_lib_gtk" >&6
25291 fi
25292
25293 case "$wx_cv_lib_gtk" in
25294 2.0) WXGTK20=1
25295 TOOLKIT_VERSION=2
25296 ;;
25297 1.2.7) WXGTK127=1
25298 WXGTK12=1
25299 ;;
25300 1.2.3) WXGTK12=1
25301 ;;
25302 *) { { echo "$as_me:$LINENO: error:
f597b41c
MW
25303The development files for GTK+ were not found. For GTK+ 2, please
25304ensure that pkg-config is in the path and that gtk+-2.0.pc is
25305installed. For GTK+ 1.2 please check that gtk-config is in the path,
25306and that the version is 1.2.3 or above. Also check that the
25307libraries returned by 'pkg-config gtk+-2.0 --libs' or 'gtk-config
25308--libs' are in the LD_LIBRARY_PATH or equivalent.
a848cd7e
SC
25309 " >&5
25310echo "$as_me: error:
f597b41c
MW
25311The development files for GTK+ were not found. For GTK+ 2, please
25312ensure that pkg-config is in the path and that gtk+-2.0.pc is
25313installed. For GTK+ 1.2 please check that gtk-config is in the path,
25314and that the version is 1.2.3 or above. Also check that the
25315libraries returned by 'pkg-config gtk+-2.0 --libs' or 'gtk-config
25316--libs' are in the LD_LIBRARY_PATH or equivalent.
a848cd7e
SC
25317 " >&2;}
25318 { (exit 1); exit 1; }; }
25319 ;;
25320 esac
25321
25322 if test "$WXGTK20" = 1; then
304205f1
VS
25323 save_CFLAGS="$CFLAGS"
25324 save_LIBS="$LIBS"
9d271838
VZ
25325 CFLAGS="$CFLAGS $wx_cv_cflags_gtk"
25326 LIBS="$LIBS $wx_cv_lib_gtk"
304205f1 25327
9755e73b 25328
304205f1
VS
25329for ac_func in pango_font_family_is_monospace
25330do
25331as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25332echo "$as_me:$LINENO: checking for $ac_func" >&5
25333echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25334if eval "test \"\${$as_ac_var+set}\" = set"; then
25335 echo $ECHO_N "(cached) $ECHO_C" >&6
25336else
25337 cat >conftest.$ac_ext <<_ACEOF
25338/* confdefs.h. */
25339_ACEOF
25340cat confdefs.h >>conftest.$ac_ext
25341cat >>conftest.$ac_ext <<_ACEOF
25342/* end confdefs.h. */
25343/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25344 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25345#define $ac_func innocuous_$ac_func
25346
25347/* System header to define __stub macros and hopefully few prototypes,
25348 which can conflict with char $ac_func (); below.
25349 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25350 <limits.h> exists even on freestanding compilers. */
25351
25352#ifdef __STDC__
25353# include <limits.h>
25354#else
25355# include <assert.h>
25356#endif
25357
25358#undef $ac_func
25359
25360/* Override any gcc2 internal prototype to avoid an error. */
25361#ifdef __cplusplus
25362extern "C"
25363{
25364#endif
25365/* We use char because int might match the return type of a gcc2
25366 builtin and then its argument prototype would still apply. */
25367char $ac_func ();
25368/* The GNU C library defines this for functions which it implements
25369 to always fail with ENOSYS. Some functions are actually named
25370 something starting with __ and the normal name is an alias. */
25371#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25372choke me
25373#else
25374char (*f) () = $ac_func;
25375#endif
25376#ifdef __cplusplus
25377}
25378#endif
25379
25380int
25381main ()
25382{
25383return f != $ac_func;
25384 ;
25385 return 0;
25386}
25387_ACEOF
25388rm -f conftest.$ac_objext conftest$ac_exeext
25389if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25390 (eval $ac_link) 2>conftest.er1
25391 ac_status=$?
25392 grep -v '^ *+' conftest.er1 >conftest.err
25393 rm -f conftest.er1
25394 cat conftest.err >&5
25395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25396 (exit $ac_status); } &&
9dd0f6c2 25397 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
304205f1
VS
25398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25399 (eval $ac_try) 2>&5
25400 ac_status=$?
25401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25402 (exit $ac_status); }; } &&
25403 { ac_try='test -s conftest$ac_exeext'
25404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25405 (eval $ac_try) 2>&5
25406 ac_status=$?
25407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25408 (exit $ac_status); }; }; then
25409 eval "$as_ac_var=yes"
25410else
25411 echo "$as_me: failed program was:" >&5
25412sed 's/^/| /' conftest.$ac_ext >&5
25413
25414eval "$as_ac_var=no"
25415fi
25416rm -f conftest.err conftest.$ac_objext \
25417 conftest$ac_exeext conftest.$ac_ext
25418fi
25419echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25420echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25421if test `eval echo '${'$as_ac_var'}'` = yes; then
25422 cat >>confdefs.h <<_ACEOF
25423#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25424_ACEOF
25425
25426fi
25427done
25428
9755e73b
VS
25429
25430 echo "$as_me:$LINENO: checking if GTK+ is version >= 2.4" >&5
25431echo $ECHO_N "checking if GTK+ is version >= 2.4... $ECHO_C" >&6
25432 cat >conftest.$ac_ext <<_ACEOF
25433/* confdefs.h. */
25434_ACEOF
25435cat confdefs.h >>conftest.$ac_ext
25436cat >>conftest.$ac_ext <<_ACEOF
25437/* end confdefs.h. */
25438
25439 #include <gtk/gtk.h>
25440
25441int
25442main ()
25443{
25444
25445 #if !GTK_CHECK_VERSION(2,4,0)
25446 #error "Not GTK+ 2.4"
25447 #endif
25448
25449 ;
25450 return 0;
25451}
25452_ACEOF
25453rm -f conftest.$ac_objext
25454if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25455 (eval $ac_compile) 2>conftest.er1
25456 ac_status=$?
25457 grep -v '^ *+' conftest.er1 >conftest.err
25458 rm -f conftest.er1
25459 cat conftest.err >&5
25460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25461 (exit $ac_status); } &&
9dd0f6c2 25462 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9755e73b
VS
25463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25464 (eval $ac_try) 2>&5
25465 ac_status=$?
25466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25467 (exit $ac_status); }; } &&
25468 { ac_try='test -s conftest.$ac_objext'
25469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25470 (eval $ac_try) 2>&5
25471 ac_status=$?
25472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25473 (exit $ac_status); }; }; then
25474
25475 cat >>confdefs.h <<\_ACEOF
25476#define __WXGTK24__ 1
25477_ACEOF
25478
25479 echo "$as_me:$LINENO: result: yes" >&5
25480echo "${ECHO_T}yes" >&6
25481
25482else
25483 echo "$as_me: failed program was:" >&5
25484sed 's/^/| /' conftest.$ac_ext >&5
25485
25486
25487 echo "$as_me:$LINENO: result: no" >&5
25488echo "${ECHO_T}no" >&6
25489
25490fi
25491rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25492
304205f1
VS
25493 CFLAGS="$save_CFLAGS"
25494 LIBS="$save_LIBS"
a848cd7e
SC
25495 else
25496 if test "$wxUSE_UNICODE" = "yes"; then
25497 { echo "$as_me:$LINENO: WARNING: Unicode configuration not supported with GTK+ 1.x" >&5
25498echo "$as_me: WARNING: Unicode configuration not supported with GTK+ 1.x" >&2;}
25499 wxUSE_UNICODE=no
25500 fi
25501 fi
25502
25503 if test "$USE_DARWIN" != 1; then
25504
25505for ac_func in poll
25506do
25507as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25508echo "$as_me:$LINENO: checking for $ac_func" >&5
25509echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25510if eval "test \"\${$as_ac_var+set}\" = set"; then
25511 echo $ECHO_N "(cached) $ECHO_C" >&6
25512else
25513 cat >conftest.$ac_ext <<_ACEOF
25514/* confdefs.h. */
25515_ACEOF
25516cat confdefs.h >>conftest.$ac_ext
25517cat >>conftest.$ac_ext <<_ACEOF
25518/* end confdefs.h. */
ac1cb8d3
VS
25519/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25520 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25521#define $ac_func innocuous_$ac_func
25522
a848cd7e
SC
25523/* System header to define __stub macros and hopefully few prototypes,
25524 which can conflict with char $ac_func (); below.
25525 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25526 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 25527
a848cd7e
SC
25528#ifdef __STDC__
25529# include <limits.h>
25530#else
25531# include <assert.h>
25532#endif
ac1cb8d3
VS
25533
25534#undef $ac_func
25535
a848cd7e
SC
25536/* Override any gcc2 internal prototype to avoid an error. */
25537#ifdef __cplusplus
25538extern "C"
25539{
25540#endif
25541/* We use char because int might match the return type of a gcc2
25542 builtin and then its argument prototype would still apply. */
25543char $ac_func ();
25544/* The GNU C library defines this for functions which it implements
25545 to always fail with ENOSYS. Some functions are actually named
25546 something starting with __ and the normal name is an alias. */
25547#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25548choke me
25549#else
25550char (*f) () = $ac_func;
25551#endif
25552#ifdef __cplusplus
25553}
25554#endif
25555
25556int
25557main ()
25558{
25559return f != $ac_func;
25560 ;
25561 return 0;
25562}
25563_ACEOF
25564rm -f conftest.$ac_objext conftest$ac_exeext
25565if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25566 (eval $ac_link) 2>conftest.er1
a848cd7e 25567 ac_status=$?
ac1cb8d3
VS
25568 grep -v '^ *+' conftest.er1 >conftest.err
25569 rm -f conftest.er1
25570 cat conftest.err >&5
a848cd7e
SC
25571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25572 (exit $ac_status); } &&
9dd0f6c2 25573 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
25574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25575 (eval $ac_try) 2>&5
25576 ac_status=$?
25577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25578 (exit $ac_status); }; } &&
25579 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25581 (eval $ac_try) 2>&5
25582 ac_status=$?
25583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25584 (exit $ac_status); }; }; then
25585 eval "$as_ac_var=yes"
25586else
25587 echo "$as_me: failed program was:" >&5
25588sed 's/^/| /' conftest.$ac_ext >&5
25589
25590eval "$as_ac_var=no"
25591fi
ac1cb8d3
VS
25592rm -f conftest.err conftest.$ac_objext \
25593 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25594fi
25595echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25596echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25597if test `eval echo '${'$as_ac_var'}'` = yes; then
25598 cat >>confdefs.h <<_ACEOF
25599#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25600_ACEOF
25601
25602fi
25603done
25604
25605 fi
25606
25607 TOOLKIT_INCLUDE="$wx_cv_cflags_gtk"
25608 GUI_TK_LIBRARY="$wx_cv_libs_gtk $GUI_TK_LIBRARY"
25609
25610 AFMINSTALL=afminstall
25611 TOOLKIT=GTK
25612 GUIDIST=GTK_DIST
25613
25614 echo "$as_me:$LINENO: checking for gdk_im_open in -lgdk" >&5
25615echo $ECHO_N "checking for gdk_im_open in -lgdk... $ECHO_C" >&6
25616if test "${ac_cv_lib_gdk_gdk_im_open+set}" = set; then
25617 echo $ECHO_N "(cached) $ECHO_C" >&6
25618else
25619 ac_check_lib_save_LIBS=$LIBS
25620LIBS="-lgdk $LIBS"
25621cat >conftest.$ac_ext <<_ACEOF
25622/* confdefs.h. */
25623_ACEOF
25624cat confdefs.h >>conftest.$ac_ext
25625cat >>conftest.$ac_ext <<_ACEOF
25626/* end confdefs.h. */
25627
25628/* Override any gcc2 internal prototype to avoid an error. */
25629#ifdef __cplusplus
25630extern "C"
25631#endif
25632/* We use char because int might match the return type of a gcc2
25633 builtin and then its argument prototype would still apply. */
25634char gdk_im_open ();
25635int
25636main ()
25637{
25638gdk_im_open ();
25639 ;
25640 return 0;
25641}
25642_ACEOF
25643rm -f conftest.$ac_objext conftest$ac_exeext
25644if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25645 (eval $ac_link) 2>conftest.er1
a848cd7e 25646 ac_status=$?
ac1cb8d3
VS
25647 grep -v '^ *+' conftest.er1 >conftest.err
25648 rm -f conftest.er1
25649 cat conftest.err >&5
a848cd7e
SC
25650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25651 (exit $ac_status); } &&
9dd0f6c2 25652 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
25653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25654 (eval $ac_try) 2>&5
25655 ac_status=$?
25656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25657 (exit $ac_status); }; } &&
25658 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25660 (eval $ac_try) 2>&5
25661 ac_status=$?
25662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25663 (exit $ac_status); }; }; then
25664 ac_cv_lib_gdk_gdk_im_open=yes
25665else
25666 echo "$as_me: failed program was:" >&5
25667sed 's/^/| /' conftest.$ac_ext >&5
25668
25669ac_cv_lib_gdk_gdk_im_open=no
25670fi
ac1cb8d3
VS
25671rm -f conftest.err conftest.$ac_objext \
25672 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25673LIBS=$ac_check_lib_save_LIBS
25674fi
25675echo "$as_me:$LINENO: result: $ac_cv_lib_gdk_gdk_im_open" >&5
25676echo "${ECHO_T}$ac_cv_lib_gdk_gdk_im_open" >&6
25677if test $ac_cv_lib_gdk_gdk_im_open = yes; then
25678 cat >>confdefs.h <<\_ACEOF
25679#define HAVE_XIM 1
25680_ACEOF
25681
25682fi
25683
25684
25685
25686 if test "$wxUSE_GPE" = "yes"; then
25687 echo "$as_me:$LINENO: checking for gpewidget library" >&5
25688echo $ECHO_N "checking for gpewidget library... $ECHO_C" >&6
25689
25690ac_find_libraries=
25691for ac_dir in $SEARCH_LIB /usr/lib;
25692 do
25693 for ac_extension in a so sl dylib; do
25694 if test -f "$ac_dir/libgpewidget.$ac_extension"; then
25695 ac_find_libraries=$ac_dir
25696 break 2
25697 fi
25698 done
25699 done
25700
25701 if test "$ac_find_libraries" != "" ; then
25702
25703 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
25704 result=$?
25705 if test $result = 0; then
25706 ac_path_to_link=""
25707 else
25708 ac_path_to_link=" -L$ac_find_libraries"
25709 fi
25710
25711 GUI_TK_LIBRARY="-L${prefix}/lib -lgpewidget $GUI_TK_LIBRARY"
25712 WXGPE=1
25713 echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5
25714echo "${ECHO_T}found at $ac_find_libraries" >&6
25715 else
25716 echo "$as_me:$LINENO: result: not found" >&5
25717echo "${ECHO_T}not found" >&6
25718 fi
25719
25720 fi
25721 fi
25722
25723 if test "$wxUSE_MGL" = 1; then
25724 echo "$as_me:$LINENO: checking for SciTech MGL library" >&5
25725echo $ECHO_N "checking for SciTech MGL library... $ECHO_C" >&6
25726 if test "x$MGL_ROOT" = x ; then
25727 echo "$as_me:$LINENO: result: not found" >&5
25728echo "${ECHO_T}not found" >&6
25729 { { echo "$as_me:$LINENO: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&5
25730echo "$as_me: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&2;}
25731 { (exit 1); exit 1; }; }
25732 else
25733 echo "$as_me:$LINENO: result: $MGL_ROOT" >&5
25734echo "${ECHO_T}$MGL_ROOT" >&6
25735 fi
25736
25737 echo "$as_me:$LINENO: checking for libmgl location" >&5
25738echo $ECHO_N "checking for libmgl location... $ECHO_C" >&6
25739 case "${host}" in
25740 *-*-linux* )
25741 if test "x$wxUSE_SHARED" = xyes ; then
25742 mgl_os_candidates="linux/gcc/x86/so linux/gcc/x86/a linux/gcc/glibc.so linux/gcc/glibc"
25743 else
25744 mgl_os_candidates="linux/gcc/x86/a linux/gcc/x86/so linux/gcc/glibc linux/gcc/glibc.so"
25745 fi
25746 ;;
25747 *-pc-msdosdjgpp )
25748 mgl_os_candidates="dos32/dj2"
25749 ;;
25750 *)
25751 { { echo "$as_me:$LINENO: error: This system type ${host} is not yet supported by wxMGL." >&5
25752echo "$as_me: error: This system type ${host} is not yet supported by wxMGL." >&2;}
25753 { (exit 1); exit 1; }; }
25754 esac
25755
25756 mgl_lib_type=""
25757 mgl_os=""
25758
25759 for mgl_os_i in $mgl_os_candidates ; do
25760 if test "x$mgl_os" = x ; then
25761 if test "$wxUSE_DEBUG_FLAG" = yes ; then
25762 if test -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.a -o \
25763 -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.so; then
25764 mgl_lib_type=debug
25765 mgl_os=$mgl_os_i
25766 fi
25767 fi
25768 if test "x$mgl_lib_type" = x ; then
25769 if test -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.a -o \
25770 -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.so; then
25771 mgl_lib_type=release
25772 mgl_os=$mgl_os_i
25773 fi
25774 fi
25775 fi
25776 done
25777
25778 if test "x$mgl_os" = x ; then
25779 echo "$as_me:$LINENO: result: not found" >&5
25780echo "${ECHO_T}not found" >&6
25781 { { echo "$as_me:$LINENO: error: Cannot find MGL libraries, make sure they are compiled." >&5
25782echo "$as_me: error: Cannot find MGL libraries, make sure they are compiled." >&2;}
25783 { (exit 1); exit 1; }; }
25784 fi
25785 echo "$as_me:$LINENO: result: \"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&5
25786echo "${ECHO_T}\"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&6
25787
25788 wxUSE_UNIVERSAL="yes"
25789
25790 TOOLKIT_INCLUDE="-I$MGL_ROOT/include"
25791 GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$mgl_lib_type/$mgl_os -lmgl -lmglcpp -lpm"
25792
25793 AFMINSTALL=afminstall
25794 TOOLKIT=MGL
25795 GUIDIST=MGL_DIST
25796 fi
25797
25798 if test "$wxUSE_MICROWIN" = 1; then
25799 echo "$as_me:$LINENO: checking for MicroWindows" >&5
25800echo $ECHO_N "checking for MicroWindows... $ECHO_C" >&6
25801 if test "x$MICROWINDOWS" = x ; then
25802 echo "$as_me:$LINENO: result: not found" >&5
25803echo "${ECHO_T}not found" >&6
25804 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&5
25805echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&2;}
25806 { (exit 1); exit 1; }; }
25807 else
25808 echo "$as_me:$LINENO: result: $MICROWINDOWS" >&5
25809echo "${ECHO_T}$MICROWINDOWS" >&6
25810 fi
25811
25812 if test -f $MICROWINDOWS/lib/libmwin.a; then
25813 echo "$as_me:$LINENO: result: MicroWindows' libraries found." >&5
25814echo "${ECHO_T}MicroWindows' libraries found." >&6
25815 else
25816 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows libraries, make sure they are compiled." >&5
25817echo "$as_me: error: Cannot find MicroWindows libraries, make sure they are compiled." >&2;}
25818 { (exit 1); exit 1; }; }
25819 fi
25820
25821 TOOLKIT_INCLUDE="-I$MICROWINDOWS/include"
25822 GUI_TK_LIBRARY="-L$MICROWINDOWS/lib -lmwin -lmwengine -mwfonts -mwdrivers -mwinlib"
25823
25824 wxUSE_UNIVERSAL="yes"
25825
25826 AFMINSTALL=afminstall
25827 TOOLKIT=MICROWIN
25828 GUIDIST=MICROWIN_DIST
25829
25830 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXMSW__ -D__WIN95__ -D__WIN32__ -DMWIN -DMICROWIN_NOCONTROLS -DMICROWIN_TODO=1"
25831 fi
25832
74b84332 25833 if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
9dd0f6c2
DE
25834
25835if test "x$ac_path_x_has_been_run" != xyes; then
25836 echo "$as_me:$LINENO: checking for X" >&5
a848cd7e
SC
25837echo $ECHO_N "checking for X... $ECHO_C" >&6
25838
9dd0f6c2 25839ac_path_x_has_been_run=yes
a848cd7e
SC
25840
25841# Check whether --with-x or --without-x was given.
25842if test "${with_x+set}" = set; then
25843 withval="$with_x"
25844
25845fi;
25846# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
25847if test "x$with_x" = xno; then
25848 # The user explicitly disabled X.
25849 have_x=disabled
25850else
25851 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
25852 # Both variables are already set.
25853 have_x=yes
25854 else
25855 if test "${ac_cv_have_x+set}" = set; then
25856 echo $ECHO_N "(cached) $ECHO_C" >&6
25857else
25858 # One or both of the vars are not set, and there is no cached value.
25859ac_x_includes=no ac_x_libraries=no
25860rm -fr conftest.dir
25861if mkdir conftest.dir; then
25862 cd conftest.dir
25863 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
25864 cat >Imakefile <<'_ACEOF'
25865acfindx:
25866 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
25867_ACEOF
25868 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
25869 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
25870 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
25871 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
25872 for ac_extension in a so sl; do
25873 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
ac1cb8d3
VS
25874 test -f $ac_im_libdir/libX11.$ac_extension; then
25875 ac_im_usrlibdir=$ac_im_libdir; break
a848cd7e
SC
25876 fi
25877 done
25878 # Screen out bogus values from the imake configuration. They are
25879 # bogus both because they are the default anyway, and because
25880 # using them would break gcc on systems where it needs fixed includes.
25881 case $ac_im_incroot in
25882 /usr/include) ;;
25883 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
25884 esac
25885 case $ac_im_usrlibdir in
25886 /usr/lib | /lib) ;;
25887 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
25888 esac
25889 fi
25890 cd ..
25891 rm -fr conftest.dir
25892fi
25893
25894# Standard set of common directories for X headers.
25895# Check X11 before X11Rn because it is often a symlink to the current release.
25896ac_x_header_dirs='
25897/usr/X11/include
25898/usr/X11R6/include
25899/usr/X11R5/include
25900/usr/X11R4/include
25901
25902/usr/include/X11
25903/usr/include/X11R6
25904/usr/include/X11R5
25905/usr/include/X11R4
25906
25907/usr/local/X11/include
25908/usr/local/X11R6/include
25909/usr/local/X11R5/include
25910/usr/local/X11R4/include
25911
25912/usr/local/include/X11
25913/usr/local/include/X11R6
25914/usr/local/include/X11R5
25915/usr/local/include/X11R4
25916
25917/usr/X386/include
25918/usr/x386/include
25919/usr/XFree86/include/X11
25920
25921/usr/include
25922/usr/local/include
25923/usr/unsupported/include
25924/usr/athena/include
25925/usr/local/x11r5/include
25926/usr/lpp/Xamples/include
25927
25928/usr/openwin/include
25929/usr/openwin/share/include'
25930
25931if test "$ac_x_includes" = no; then
9dd0f6c2 25932 # Guess where to find include files, by looking for a specified header file.
a848cd7e
SC
25933 # First, try using that file with no special directory specified.
25934 cat >conftest.$ac_ext <<_ACEOF
25935/* confdefs.h. */
25936_ACEOF
25937cat confdefs.h >>conftest.$ac_ext
25938cat >>conftest.$ac_ext <<_ACEOF
25939/* end confdefs.h. */
25940#include <X11/Intrinsic.h>
25941_ACEOF
25942if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25943 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25944 ac_status=$?
25945 grep -v '^ *+' conftest.er1 >conftest.err
25946 rm -f conftest.er1
25947 cat conftest.err >&5
25948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25949 (exit $ac_status); } >/dev/null; then
25950 if test -s conftest.err; then
25951 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 25952 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
25953 else
25954 ac_cpp_err=
25955 fi
25956else
25957 ac_cpp_err=yes
25958fi
25959if test -z "$ac_cpp_err"; then
25960 # We can compile using X headers with no special include directory.
25961ac_x_includes=
25962else
25963 echo "$as_me: failed program was:" >&5
25964sed 's/^/| /' conftest.$ac_ext >&5
25965
25966 for ac_dir in $ac_x_header_dirs; do
25967 if test -r "$ac_dir/X11/Intrinsic.h"; then
25968 ac_x_includes=$ac_dir
25969 break
25970 fi
25971done
25972fi
25973rm -f conftest.err conftest.$ac_ext
25974fi # $ac_x_includes = no
25975
25976if test "$ac_x_libraries" = no; then
25977 # Check for the libraries.
25978 # See if we find them without any special options.
25979 # Don't add to $LIBS permanently.
25980 ac_save_LIBS=$LIBS
25981 LIBS="-lXt $LIBS"
25982 cat >conftest.$ac_ext <<_ACEOF
25983/* confdefs.h. */
25984_ACEOF
25985cat confdefs.h >>conftest.$ac_ext
25986cat >>conftest.$ac_ext <<_ACEOF
25987/* end confdefs.h. */
25988#include <X11/Intrinsic.h>
25989int
25990main ()
25991{
25992XtMalloc (0)
25993 ;
25994 return 0;
25995}
25996_ACEOF
25997rm -f conftest.$ac_objext conftest$ac_exeext
25998if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25999 (eval $ac_link) 2>conftest.er1
a848cd7e 26000 ac_status=$?
ac1cb8d3
VS
26001 grep -v '^ *+' conftest.er1 >conftest.err
26002 rm -f conftest.er1
26003 cat conftest.err >&5
a848cd7e
SC
26004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26005 (exit $ac_status); } &&
9dd0f6c2 26006 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26008 (eval $ac_try) 2>&5
26009 ac_status=$?
26010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26011 (exit $ac_status); }; } &&
26012 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26014 (eval $ac_try) 2>&5
26015 ac_status=$?
26016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26017 (exit $ac_status); }; }; then
26018 LIBS=$ac_save_LIBS
26019# We can link X programs with no special library path.
26020ac_x_libraries=
26021else
26022 echo "$as_me: failed program was:" >&5
26023sed 's/^/| /' conftest.$ac_ext >&5
26024
26025LIBS=$ac_save_LIBS
26026for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
26027do
26028 # Don't even attempt the hair of trying to link an X program!
26029 for ac_extension in a so sl; do
26030 if test -r $ac_dir/libXt.$ac_extension; then
26031 ac_x_libraries=$ac_dir
26032 break 2
26033 fi
26034 done
26035done
26036fi
ac1cb8d3
VS
26037rm -f conftest.err conftest.$ac_objext \
26038 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26039fi # $ac_x_libraries = no
26040
26041if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
26042 # Didn't find X anywhere. Cache the known absence of X.
26043 ac_cv_have_x="have_x=no"
26044else
26045 # Record where we found X for the cache.
26046 ac_cv_have_x="have_x=yes \
ac1cb8d3 26047 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
a848cd7e
SC
26048fi
26049fi
26050
26051 fi
26052 eval "$ac_cv_have_x"
26053fi # $with_x != no
26054
26055if test "$have_x" != yes; then
26056 echo "$as_me:$LINENO: result: $have_x" >&5
26057echo "${ECHO_T}$have_x" >&6
26058 no_x=yes
26059else
26060 # If each of the values was on the command line, it overrides each guess.
26061 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
26062 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
26063 # Update the cache value to reflect the command line values.
26064 ac_cv_have_x="have_x=yes \
26065 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
9dd0f6c2
DE
26066 # It might be that x_includes is empty (headers are found in the
26067 # standard search path. Then output the corresponding message
26068 ac_out_x_includes=$x_includes
26069 test "x$x_includes" = x && ac_out_x_includes="in standard search path"
26070 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $ac_out_x_includes" >&5
26071echo "${ECHO_T}libraries $x_libraries, headers $ac_out_x_includes" >&6
a848cd7e
SC
26072fi
26073
9dd0f6c2 26074fi
a848cd7e
SC
26075if test "$no_x" = yes; then
26076 # Not all programs may use this symbol, but it does not hurt to define it.
26077
26078cat >>confdefs.h <<\_ACEOF
26079#define X_DISPLAY_MISSING 1
26080_ACEOF
26081
26082 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
26083else
26084 if test -n "$x_includes"; then
26085 X_CFLAGS="$X_CFLAGS -I$x_includes"
26086 fi
26087
26088 # It would also be nice to do this for all -L options, not just this one.
26089 if test -n "$x_libraries"; then
26090 X_LIBS="$X_LIBS -L$x_libraries"
26091 # For Solaris; some versions of Sun CC require a space after -R and
26092 # others require no space. Words are not sufficient . . . .
26093 case `(uname -sr) 2>/dev/null` in
26094 "SunOS 5"*)
26095 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
26096echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
26097 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
26098 cat >conftest.$ac_ext <<_ACEOF
26099/* confdefs.h. */
26100_ACEOF
26101cat confdefs.h >>conftest.$ac_ext
26102cat >>conftest.$ac_ext <<_ACEOF
26103/* end confdefs.h. */
26104
26105int
26106main ()
26107{
26108
26109 ;
26110 return 0;
26111}
26112_ACEOF
26113rm -f conftest.$ac_objext conftest$ac_exeext
26114if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26115 (eval $ac_link) 2>conftest.er1
a848cd7e 26116 ac_status=$?
ac1cb8d3
VS
26117 grep -v '^ *+' conftest.er1 >conftest.err
26118 rm -f conftest.er1
26119 cat conftest.err >&5
a848cd7e
SC
26120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26121 (exit $ac_status); } &&
9dd0f6c2 26122 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26124 (eval $ac_try) 2>&5
26125 ac_status=$?
26126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26127 (exit $ac_status); }; } &&
26128 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26130 (eval $ac_try) 2>&5
26131 ac_status=$?
26132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26133 (exit $ac_status); }; }; then
26134 ac_R_nospace=yes
26135else
26136 echo "$as_me: failed program was:" >&5
26137sed 's/^/| /' conftest.$ac_ext >&5
26138
26139ac_R_nospace=no
26140fi
ac1cb8d3
VS
26141rm -f conftest.err conftest.$ac_objext \
26142 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26143 if test $ac_R_nospace = yes; then
26144 echo "$as_me:$LINENO: result: no" >&5
26145echo "${ECHO_T}no" >&6
26146 X_LIBS="$X_LIBS -R$x_libraries"
26147 else
26148 LIBS="$ac_xsave_LIBS -R $x_libraries"
26149 cat >conftest.$ac_ext <<_ACEOF
26150/* confdefs.h. */
26151_ACEOF
26152cat confdefs.h >>conftest.$ac_ext
26153cat >>conftest.$ac_ext <<_ACEOF
26154/* end confdefs.h. */
26155
26156int
26157main ()
26158{
26159
26160 ;
26161 return 0;
26162}
26163_ACEOF
26164rm -f conftest.$ac_objext conftest$ac_exeext
26165if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26166 (eval $ac_link) 2>conftest.er1
a848cd7e 26167 ac_status=$?
ac1cb8d3
VS
26168 grep -v '^ *+' conftest.er1 >conftest.err
26169 rm -f conftest.er1
26170 cat conftest.err >&5
a848cd7e
SC
26171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26172 (exit $ac_status); } &&
9dd0f6c2 26173 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26175 (eval $ac_try) 2>&5
26176 ac_status=$?
26177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26178 (exit $ac_status); }; } &&
26179 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26181 (eval $ac_try) 2>&5
26182 ac_status=$?
26183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26184 (exit $ac_status); }; }; then
26185 ac_R_space=yes
26186else
26187 echo "$as_me: failed program was:" >&5
26188sed 's/^/| /' conftest.$ac_ext >&5
26189
26190ac_R_space=no
26191fi
ac1cb8d3
VS
26192rm -f conftest.err conftest.$ac_objext \
26193 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26194 if test $ac_R_space = yes; then
26195 echo "$as_me:$LINENO: result: yes" >&5
26196echo "${ECHO_T}yes" >&6
26197 X_LIBS="$X_LIBS -R $x_libraries"
26198 else
26199 echo "$as_me:$LINENO: result: neither works" >&5
26200echo "${ECHO_T}neither works" >&6
26201 fi
26202 fi
26203 LIBS=$ac_xsave_LIBS
26204 esac
26205 fi
26206
26207 # Check for system-dependent libraries X programs must link with.
26208 # Do this before checking for the system-independent R6 libraries
26209 # (-lICE), since we may need -lsocket or whatever for X linking.
26210
26211 if test "$ISC" = yes; then
26212 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
26213 else
26214 # Martyn Johnson says this is needed for Ultrix, if the X
26215 # libraries were built with DECnet support. And Karl Berry says
26216 # the Alpha needs dnet_stub (dnet does not exist).
26217 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
26218 cat >conftest.$ac_ext <<_ACEOF
26219/* confdefs.h. */
26220_ACEOF
26221cat confdefs.h >>conftest.$ac_ext
26222cat >>conftest.$ac_ext <<_ACEOF
26223/* end confdefs.h. */
26224
26225/* Override any gcc2 internal prototype to avoid an error. */
26226#ifdef __cplusplus
26227extern "C"
26228#endif
26229/* We use char because int might match the return type of a gcc2
26230 builtin and then its argument prototype would still apply. */
26231char XOpenDisplay ();
26232int
26233main ()
26234{
26235XOpenDisplay ();
26236 ;
26237 return 0;
26238}
26239_ACEOF
26240rm -f conftest.$ac_objext conftest$ac_exeext
26241if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26242 (eval $ac_link) 2>conftest.er1
a848cd7e 26243 ac_status=$?
ac1cb8d3
VS
26244 grep -v '^ *+' conftest.er1 >conftest.err
26245 rm -f conftest.er1
26246 cat conftest.err >&5
a848cd7e
SC
26247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26248 (exit $ac_status); } &&
9dd0f6c2 26249 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26251 (eval $ac_try) 2>&5
26252 ac_status=$?
26253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26254 (exit $ac_status); }; } &&
26255 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26257 (eval $ac_try) 2>&5
26258 ac_status=$?
26259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26260 (exit $ac_status); }; }; then
26261 :
26262else
26263 echo "$as_me: failed program was:" >&5
26264sed 's/^/| /' conftest.$ac_ext >&5
26265
26266echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
26267echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
26268if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
26269 echo $ECHO_N "(cached) $ECHO_C" >&6
26270else
26271 ac_check_lib_save_LIBS=$LIBS
26272LIBS="-ldnet $LIBS"
26273cat >conftest.$ac_ext <<_ACEOF
26274/* confdefs.h. */
26275_ACEOF
26276cat confdefs.h >>conftest.$ac_ext
26277cat >>conftest.$ac_ext <<_ACEOF
26278/* end confdefs.h. */
26279
26280/* Override any gcc2 internal prototype to avoid an error. */
26281#ifdef __cplusplus
26282extern "C"
26283#endif
26284/* We use char because int might match the return type of a gcc2
26285 builtin and then its argument prototype would still apply. */
26286char dnet_ntoa ();
26287int
26288main ()
26289{
26290dnet_ntoa ();
26291 ;
26292 return 0;
26293}
26294_ACEOF
26295rm -f conftest.$ac_objext conftest$ac_exeext
26296if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26297 (eval $ac_link) 2>conftest.er1
a848cd7e 26298 ac_status=$?
ac1cb8d3
VS
26299 grep -v '^ *+' conftest.er1 >conftest.err
26300 rm -f conftest.er1
26301 cat conftest.err >&5
a848cd7e
SC
26302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26303 (exit $ac_status); } &&
9dd0f6c2 26304 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26306 (eval $ac_try) 2>&5
26307 ac_status=$?
26308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26309 (exit $ac_status); }; } &&
26310 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26312 (eval $ac_try) 2>&5
26313 ac_status=$?
26314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26315 (exit $ac_status); }; }; then
26316 ac_cv_lib_dnet_dnet_ntoa=yes
26317else
26318 echo "$as_me: failed program was:" >&5
26319sed 's/^/| /' conftest.$ac_ext >&5
26320
26321ac_cv_lib_dnet_dnet_ntoa=no
26322fi
ac1cb8d3
VS
26323rm -f conftest.err conftest.$ac_objext \
26324 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26325LIBS=$ac_check_lib_save_LIBS
26326fi
26327echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
26328echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
26329if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
26330 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
26331fi
26332
26333 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
26334 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
26335echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
26336if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
26337 echo $ECHO_N "(cached) $ECHO_C" >&6
26338else
26339 ac_check_lib_save_LIBS=$LIBS
26340LIBS="-ldnet_stub $LIBS"
26341cat >conftest.$ac_ext <<_ACEOF
26342/* confdefs.h. */
26343_ACEOF
26344cat confdefs.h >>conftest.$ac_ext
26345cat >>conftest.$ac_ext <<_ACEOF
26346/* end confdefs.h. */
26347
26348/* Override any gcc2 internal prototype to avoid an error. */
26349#ifdef __cplusplus
26350extern "C"
26351#endif
26352/* We use char because int might match the return type of a gcc2
26353 builtin and then its argument prototype would still apply. */
26354char dnet_ntoa ();
26355int
26356main ()
26357{
26358dnet_ntoa ();
26359 ;
26360 return 0;
26361}
26362_ACEOF
26363rm -f conftest.$ac_objext conftest$ac_exeext
26364if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26365 (eval $ac_link) 2>conftest.er1
a848cd7e 26366 ac_status=$?
ac1cb8d3
VS
26367 grep -v '^ *+' conftest.er1 >conftest.err
26368 rm -f conftest.er1
26369 cat conftest.err >&5
a848cd7e
SC
26370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26371 (exit $ac_status); } &&
9dd0f6c2 26372 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26374 (eval $ac_try) 2>&5
26375 ac_status=$?
26376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26377 (exit $ac_status); }; } &&
26378 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26380 (eval $ac_try) 2>&5
26381 ac_status=$?
26382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26383 (exit $ac_status); }; }; then
26384 ac_cv_lib_dnet_stub_dnet_ntoa=yes
26385else
26386 echo "$as_me: failed program was:" >&5
26387sed 's/^/| /' conftest.$ac_ext >&5
26388
26389ac_cv_lib_dnet_stub_dnet_ntoa=no
26390fi
ac1cb8d3
VS
26391rm -f conftest.err conftest.$ac_objext \
26392 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26393LIBS=$ac_check_lib_save_LIBS
26394fi
26395echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
26396echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
26397if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
26398 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
26399fi
26400
26401 fi
26402fi
ac1cb8d3
VS
26403rm -f conftest.err conftest.$ac_objext \
26404 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26405 LIBS="$ac_xsave_LIBS"
26406
26407 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
26408 # to get the SysV transport functions.
26409 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
26410 # needs -lnsl.
26411 # The nsl library prevents programs from opening the X display
26412 # on Irix 5.2, according to T.E. Dickey.
26413 # The functions gethostbyname, getservbyname, and inet_addr are
26414 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
26415 echo "$as_me:$LINENO: checking for gethostbyname" >&5
26416echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
26417if test "${ac_cv_func_gethostbyname+set}" = set; then
26418 echo $ECHO_N "(cached) $ECHO_C" >&6
26419else
26420 cat >conftest.$ac_ext <<_ACEOF
26421/* confdefs.h. */
26422_ACEOF
26423cat confdefs.h >>conftest.$ac_ext
26424cat >>conftest.$ac_ext <<_ACEOF
26425/* end confdefs.h. */
ac1cb8d3
VS
26426/* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
26427 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26428#define gethostbyname innocuous_gethostbyname
26429
a848cd7e
SC
26430/* System header to define __stub macros and hopefully few prototypes,
26431 which can conflict with char gethostbyname (); below.
26432 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26433 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 26434
a848cd7e
SC
26435#ifdef __STDC__
26436# include <limits.h>
26437#else
26438# include <assert.h>
26439#endif
ac1cb8d3
VS
26440
26441#undef gethostbyname
26442
a848cd7e
SC
26443/* Override any gcc2 internal prototype to avoid an error. */
26444#ifdef __cplusplus
26445extern "C"
26446{
26447#endif
26448/* We use char because int might match the return type of a gcc2
26449 builtin and then its argument prototype would still apply. */
26450char gethostbyname ();
26451/* The GNU C library defines this for functions which it implements
26452 to always fail with ENOSYS. Some functions are actually named
26453 something starting with __ and the normal name is an alias. */
26454#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
26455choke me
26456#else
26457char (*f) () = gethostbyname;
26458#endif
26459#ifdef __cplusplus
26460}
26461#endif
26462
26463int
26464main ()
26465{
26466return f != gethostbyname;
26467 ;
26468 return 0;
26469}
26470_ACEOF
26471rm -f conftest.$ac_objext conftest$ac_exeext
26472if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26473 (eval $ac_link) 2>conftest.er1
a848cd7e 26474 ac_status=$?
ac1cb8d3
VS
26475 grep -v '^ *+' conftest.er1 >conftest.err
26476 rm -f conftest.er1
26477 cat conftest.err >&5
a848cd7e
SC
26478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26479 (exit $ac_status); } &&
9dd0f6c2 26480 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26482 (eval $ac_try) 2>&5
26483 ac_status=$?
26484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26485 (exit $ac_status); }; } &&
26486 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26488 (eval $ac_try) 2>&5
26489 ac_status=$?
26490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26491 (exit $ac_status); }; }; then
26492 ac_cv_func_gethostbyname=yes
26493else
26494 echo "$as_me: failed program was:" >&5
26495sed 's/^/| /' conftest.$ac_ext >&5
26496
26497ac_cv_func_gethostbyname=no
26498fi
ac1cb8d3
VS
26499rm -f conftest.err conftest.$ac_objext \
26500 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26501fi
26502echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
26503echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
26504
26505 if test $ac_cv_func_gethostbyname = no; then
26506 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
26507echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
26508if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
26509 echo $ECHO_N "(cached) $ECHO_C" >&6
26510else
26511 ac_check_lib_save_LIBS=$LIBS
26512LIBS="-lnsl $LIBS"
26513cat >conftest.$ac_ext <<_ACEOF
26514/* confdefs.h. */
26515_ACEOF
26516cat confdefs.h >>conftest.$ac_ext
26517cat >>conftest.$ac_ext <<_ACEOF
26518/* end confdefs.h. */
26519
26520/* Override any gcc2 internal prototype to avoid an error. */
26521#ifdef __cplusplus
26522extern "C"
26523#endif
26524/* We use char because int might match the return type of a gcc2
26525 builtin and then its argument prototype would still apply. */
26526char gethostbyname ();
26527int
26528main ()
26529{
26530gethostbyname ();
26531 ;
26532 return 0;
26533}
26534_ACEOF
26535rm -f conftest.$ac_objext conftest$ac_exeext
26536if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3
VS
26537 (eval $ac_link) 2>conftest.er1
26538 ac_status=$?
26539 grep -v '^ *+' conftest.er1 >conftest.err
26540 rm -f conftest.er1
26541 cat conftest.err >&5
26542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26543 (exit $ac_status); } &&
9dd0f6c2 26544 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26546 (eval $ac_try) 2>&5
26547 ac_status=$?
26548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26549 (exit $ac_status); }; } &&
26550 { ac_try='test -s conftest$ac_exeext'
26551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26552 (eval $ac_try) 2>&5
26553 ac_status=$?
26554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26555 (exit $ac_status); }; }; then
26556 ac_cv_lib_nsl_gethostbyname=yes
26557else
26558 echo "$as_me: failed program was:" >&5
26559sed 's/^/| /' conftest.$ac_ext >&5
26560
26561ac_cv_lib_nsl_gethostbyname=no
26562fi
26563rm -f conftest.err conftest.$ac_objext \
26564 conftest$ac_exeext conftest.$ac_ext
26565LIBS=$ac_check_lib_save_LIBS
26566fi
26567echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
26568echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
26569if test $ac_cv_lib_nsl_gethostbyname = yes; then
26570 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
26571fi
26572
26573 if test $ac_cv_lib_nsl_gethostbyname = no; then
26574 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
26575echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
26576if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
26577 echo $ECHO_N "(cached) $ECHO_C" >&6
26578else
26579 ac_check_lib_save_LIBS=$LIBS
26580LIBS="-lbsd $LIBS"
26581cat >conftest.$ac_ext <<_ACEOF
26582/* confdefs.h. */
26583_ACEOF
26584cat confdefs.h >>conftest.$ac_ext
26585cat >>conftest.$ac_ext <<_ACEOF
26586/* end confdefs.h. */
26587
26588/* Override any gcc2 internal prototype to avoid an error. */
26589#ifdef __cplusplus
26590extern "C"
26591#endif
26592/* We use char because int might match the return type of a gcc2
26593 builtin and then its argument prototype would still apply. */
26594char gethostbyname ();
26595int
26596main ()
26597{
26598gethostbyname ();
26599 ;
26600 return 0;
26601}
26602_ACEOF
26603rm -f conftest.$ac_objext conftest$ac_exeext
26604if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26605 (eval $ac_link) 2>conftest.er1
a848cd7e 26606 ac_status=$?
ac1cb8d3
VS
26607 grep -v '^ *+' conftest.er1 >conftest.err
26608 rm -f conftest.er1
26609 cat conftest.err >&5
a848cd7e
SC
26610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26611 (exit $ac_status); } &&
9dd0f6c2 26612 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
a848cd7e
SC
26613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26614 (eval $ac_try) 2>&5
26615 ac_status=$?
26616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ac1cb8d3
VS
26617 (exit $ac_status); }; } &&
26618 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26620 (eval $ac_try) 2>&5
26621 ac_status=$?
26622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26623 (exit $ac_status); }; }; then
26624 ac_cv_lib_bsd_gethostbyname=yes
26625else
26626 echo "$as_me: failed program was:" >&5
26627sed 's/^/| /' conftest.$ac_ext >&5
26628
26629ac_cv_lib_bsd_gethostbyname=no
26630fi
ac1cb8d3
VS
26631rm -f conftest.err conftest.$ac_objext \
26632 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26633LIBS=$ac_check_lib_save_LIBS
26634fi
26635echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
26636echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
26637if test $ac_cv_lib_bsd_gethostbyname = yes; then
26638 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
26639fi
26640
26641 fi
26642 fi
26643
26644 # lieder@skyler.mavd.honeywell.com says without -lsocket,
26645 # socket/setsockopt and other routines are undefined under SCO ODT
26646 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
26647 # on later versions), says Simon Leinen: it contains gethostby*
26648 # variants that don't use the name server (or something). -lsocket
26649 # must be given before -lnsl if both are needed. We assume that
26650 # if connect needs -lnsl, so does gethostbyname.
26651 echo "$as_me:$LINENO: checking for connect" >&5
26652echo $ECHO_N "checking for connect... $ECHO_C" >&6
26653if test "${ac_cv_func_connect+set}" = set; then
26654 echo $ECHO_N "(cached) $ECHO_C" >&6
26655else
26656 cat >conftest.$ac_ext <<_ACEOF
26657/* confdefs.h. */
26658_ACEOF
26659cat confdefs.h >>conftest.$ac_ext
26660cat >>conftest.$ac_ext <<_ACEOF
26661/* end confdefs.h. */
ac1cb8d3
VS
26662/* Define connect to an innocuous variant, in case <limits.h> declares connect.
26663 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26664#define connect innocuous_connect
26665
a848cd7e
SC
26666/* System header to define __stub macros and hopefully few prototypes,
26667 which can conflict with char connect (); below.
26668 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26669 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 26670
a848cd7e
SC
26671#ifdef __STDC__
26672# include <limits.h>
26673#else
26674# include <assert.h>
26675#endif
ac1cb8d3
VS
26676
26677#undef connect
26678
a848cd7e
SC
26679/* Override any gcc2 internal prototype to avoid an error. */
26680#ifdef __cplusplus
26681extern "C"
26682{
26683#endif
26684/* We use char because int might match the return type of a gcc2
26685 builtin and then its argument prototype would still apply. */
26686char connect ();
26687/* The GNU C library defines this for functions which it implements
26688 to always fail with ENOSYS. Some functions are actually named
26689 something starting with __ and the normal name is an alias. */
26690#if defined (__stub_connect) || defined (__stub___connect)
26691choke me
26692#else
26693char (*f) () = connect;
26694#endif
26695#ifdef __cplusplus
26696}
26697#endif
26698
26699int
26700main ()
26701{
26702return f != connect;
26703 ;
26704 return 0;
26705}
26706_ACEOF
26707rm -f conftest.$ac_objext conftest$ac_exeext
26708if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26709 (eval $ac_link) 2>conftest.er1
a848cd7e 26710 ac_status=$?
ac1cb8d3
VS
26711 grep -v '^ *+' conftest.er1 >conftest.err
26712 rm -f conftest.er1
26713 cat conftest.err >&5
a848cd7e
SC
26714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26715 (exit $ac_status); } &&
9dd0f6c2 26716 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26718 (eval $ac_try) 2>&5
26719 ac_status=$?
26720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26721 (exit $ac_status); }; } &&
26722 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26724 (eval $ac_try) 2>&5
26725 ac_status=$?
26726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26727 (exit $ac_status); }; }; then
26728 ac_cv_func_connect=yes
26729else
26730 echo "$as_me: failed program was:" >&5
26731sed 's/^/| /' conftest.$ac_ext >&5
26732
26733ac_cv_func_connect=no
26734fi
ac1cb8d3
VS
26735rm -f conftest.err conftest.$ac_objext \
26736 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26737fi
26738echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
26739echo "${ECHO_T}$ac_cv_func_connect" >&6
26740
26741 if test $ac_cv_func_connect = no; then
26742 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
26743echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
26744if test "${ac_cv_lib_socket_connect+set}" = set; then
26745 echo $ECHO_N "(cached) $ECHO_C" >&6
26746else
26747 ac_check_lib_save_LIBS=$LIBS
26748LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
26749cat >conftest.$ac_ext <<_ACEOF
26750/* confdefs.h. */
26751_ACEOF
26752cat confdefs.h >>conftest.$ac_ext
26753cat >>conftest.$ac_ext <<_ACEOF
26754/* end confdefs.h. */
26755
26756/* Override any gcc2 internal prototype to avoid an error. */
26757#ifdef __cplusplus
26758extern "C"
26759#endif
26760/* We use char because int might match the return type of a gcc2
26761 builtin and then its argument prototype would still apply. */
26762char connect ();
26763int
26764main ()
26765{
26766connect ();
26767 ;
26768 return 0;
26769}
26770_ACEOF
26771rm -f conftest.$ac_objext conftest$ac_exeext
26772if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26773 (eval $ac_link) 2>conftest.er1
a848cd7e 26774 ac_status=$?
ac1cb8d3
VS
26775 grep -v '^ *+' conftest.er1 >conftest.err
26776 rm -f conftest.er1
26777 cat conftest.err >&5
a848cd7e
SC
26778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26779 (exit $ac_status); } &&
9dd0f6c2 26780 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26782 (eval $ac_try) 2>&5
26783 ac_status=$?
26784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26785 (exit $ac_status); }; } &&
26786 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26788 (eval $ac_try) 2>&5
26789 ac_status=$?
26790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26791 (exit $ac_status); }; }; then
26792 ac_cv_lib_socket_connect=yes
26793else
26794 echo "$as_me: failed program was:" >&5
26795sed 's/^/| /' conftest.$ac_ext >&5
26796
26797ac_cv_lib_socket_connect=no
26798fi
ac1cb8d3
VS
26799rm -f conftest.err conftest.$ac_objext \
26800 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26801LIBS=$ac_check_lib_save_LIBS
26802fi
26803echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
26804echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
26805if test $ac_cv_lib_socket_connect = yes; then
26806 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
26807fi
26808
26809 fi
26810
26811 # Guillermo Gomez says -lposix is necessary on A/UX.
26812 echo "$as_me:$LINENO: checking for remove" >&5
26813echo $ECHO_N "checking for remove... $ECHO_C" >&6
26814if test "${ac_cv_func_remove+set}" = set; then
26815 echo $ECHO_N "(cached) $ECHO_C" >&6
26816else
26817 cat >conftest.$ac_ext <<_ACEOF
26818/* confdefs.h. */
26819_ACEOF
26820cat confdefs.h >>conftest.$ac_ext
26821cat >>conftest.$ac_ext <<_ACEOF
26822/* end confdefs.h. */
ac1cb8d3
VS
26823/* Define remove to an innocuous variant, in case <limits.h> declares remove.
26824 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26825#define remove innocuous_remove
26826
a848cd7e
SC
26827/* System header to define __stub macros and hopefully few prototypes,
26828 which can conflict with char remove (); below.
26829 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26830 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 26831
a848cd7e
SC
26832#ifdef __STDC__
26833# include <limits.h>
26834#else
26835# include <assert.h>
26836#endif
ac1cb8d3
VS
26837
26838#undef remove
26839
a848cd7e
SC
26840/* Override any gcc2 internal prototype to avoid an error. */
26841#ifdef __cplusplus
26842extern "C"
26843{
26844#endif
26845/* We use char because int might match the return type of a gcc2
26846 builtin and then its argument prototype would still apply. */
26847char remove ();
26848/* The GNU C library defines this for functions which it implements
26849 to always fail with ENOSYS. Some functions are actually named
26850 something starting with __ and the normal name is an alias. */
26851#if defined (__stub_remove) || defined (__stub___remove)
26852choke me
26853#else
26854char (*f) () = remove;
26855#endif
26856#ifdef __cplusplus
26857}
26858#endif
26859
26860int
26861main ()
26862{
26863return f != remove;
26864 ;
26865 return 0;
26866}
26867_ACEOF
26868rm -f conftest.$ac_objext conftest$ac_exeext
26869if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26870 (eval $ac_link) 2>conftest.er1
a848cd7e 26871 ac_status=$?
ac1cb8d3
VS
26872 grep -v '^ *+' conftest.er1 >conftest.err
26873 rm -f conftest.er1
26874 cat conftest.err >&5
a848cd7e
SC
26875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26876 (exit $ac_status); } &&
9dd0f6c2 26877 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26879 (eval $ac_try) 2>&5
26880 ac_status=$?
26881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26882 (exit $ac_status); }; } &&
26883 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26885 (eval $ac_try) 2>&5
26886 ac_status=$?
26887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26888 (exit $ac_status); }; }; then
26889 ac_cv_func_remove=yes
26890else
26891 echo "$as_me: failed program was:" >&5
26892sed 's/^/| /' conftest.$ac_ext >&5
26893
26894ac_cv_func_remove=no
26895fi
ac1cb8d3
VS
26896rm -f conftest.err conftest.$ac_objext \
26897 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26898fi
26899echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
26900echo "${ECHO_T}$ac_cv_func_remove" >&6
26901
26902 if test $ac_cv_func_remove = no; then
26903 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
26904echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
26905if test "${ac_cv_lib_posix_remove+set}" = set; then
26906 echo $ECHO_N "(cached) $ECHO_C" >&6
26907else
26908 ac_check_lib_save_LIBS=$LIBS
26909LIBS="-lposix $LIBS"
26910cat >conftest.$ac_ext <<_ACEOF
26911/* confdefs.h. */
26912_ACEOF
26913cat confdefs.h >>conftest.$ac_ext
26914cat >>conftest.$ac_ext <<_ACEOF
26915/* end confdefs.h. */
26916
26917/* Override any gcc2 internal prototype to avoid an error. */
26918#ifdef __cplusplus
26919extern "C"
26920#endif
26921/* We use char because int might match the return type of a gcc2
26922 builtin and then its argument prototype would still apply. */
26923char remove ();
26924int
26925main ()
26926{
26927remove ();
26928 ;
26929 return 0;
26930}
26931_ACEOF
26932rm -f conftest.$ac_objext conftest$ac_exeext
26933if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26934 (eval $ac_link) 2>conftest.er1
a848cd7e 26935 ac_status=$?
ac1cb8d3
VS
26936 grep -v '^ *+' conftest.er1 >conftest.err
26937 rm -f conftest.er1
26938 cat conftest.err >&5
a848cd7e
SC
26939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26940 (exit $ac_status); } &&
9dd0f6c2 26941 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26943 (eval $ac_try) 2>&5
26944 ac_status=$?
26945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26946 (exit $ac_status); }; } &&
26947 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26949 (eval $ac_try) 2>&5
26950 ac_status=$?
26951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26952 (exit $ac_status); }; }; then
26953 ac_cv_lib_posix_remove=yes
26954else
26955 echo "$as_me: failed program was:" >&5
26956sed 's/^/| /' conftest.$ac_ext >&5
26957
26958ac_cv_lib_posix_remove=no
26959fi
ac1cb8d3
VS
26960rm -f conftest.err conftest.$ac_objext \
26961 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26962LIBS=$ac_check_lib_save_LIBS
26963fi
26964echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
26965echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
26966if test $ac_cv_lib_posix_remove = yes; then
26967 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
26968fi
26969
26970 fi
26971
26972 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
26973 echo "$as_me:$LINENO: checking for shmat" >&5
26974echo $ECHO_N "checking for shmat... $ECHO_C" >&6
26975if test "${ac_cv_func_shmat+set}" = set; then
26976 echo $ECHO_N "(cached) $ECHO_C" >&6
26977else
26978 cat >conftest.$ac_ext <<_ACEOF
26979/* confdefs.h. */
26980_ACEOF
26981cat confdefs.h >>conftest.$ac_ext
26982cat >>conftest.$ac_ext <<_ACEOF
26983/* end confdefs.h. */
ac1cb8d3
VS
26984/* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
26985 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26986#define shmat innocuous_shmat
26987
a848cd7e
SC
26988/* System header to define __stub macros and hopefully few prototypes,
26989 which can conflict with char shmat (); below.
26990 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26991 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 26992
a848cd7e
SC
26993#ifdef __STDC__
26994# include <limits.h>
26995#else
26996# include <assert.h>
26997#endif
ac1cb8d3
VS
26998
26999#undef shmat
27000
a848cd7e
SC
27001/* Override any gcc2 internal prototype to avoid an error. */
27002#ifdef __cplusplus
27003extern "C"
27004{
27005#endif
27006/* We use char because int might match the return type of a gcc2
27007 builtin and then its argument prototype would still apply. */
27008char shmat ();
27009/* The GNU C library defines this for functions which it implements
27010 to always fail with ENOSYS. Some functions are actually named
27011 something starting with __ and the normal name is an alias. */
27012#if defined (__stub_shmat) || defined (__stub___shmat)
27013choke me
27014#else
27015char (*f) () = shmat;
27016#endif
27017#ifdef __cplusplus
27018}
27019#endif
27020
27021int
27022main ()
27023{
27024return f != shmat;
27025 ;
27026 return 0;
27027}
27028_ACEOF
27029rm -f conftest.$ac_objext conftest$ac_exeext
27030if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27031 (eval $ac_link) 2>conftest.er1
a848cd7e 27032 ac_status=$?
ac1cb8d3
VS
27033 grep -v '^ *+' conftest.er1 >conftest.err
27034 rm -f conftest.er1
27035 cat conftest.err >&5
a848cd7e
SC
27036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27037 (exit $ac_status); } &&
9dd0f6c2 27038 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
27039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27040 (eval $ac_try) 2>&5
27041 ac_status=$?
27042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27043 (exit $ac_status); }; } &&
27044 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27046 (eval $ac_try) 2>&5
27047 ac_status=$?
27048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27049 (exit $ac_status); }; }; then
27050 ac_cv_func_shmat=yes
27051else
27052 echo "$as_me: failed program was:" >&5
27053sed 's/^/| /' conftest.$ac_ext >&5
27054
27055ac_cv_func_shmat=no
27056fi
ac1cb8d3
VS
27057rm -f conftest.err conftest.$ac_objext \
27058 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27059fi
27060echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
27061echo "${ECHO_T}$ac_cv_func_shmat" >&6
27062
27063 if test $ac_cv_func_shmat = no; then
27064 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
27065echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
27066if test "${ac_cv_lib_ipc_shmat+set}" = set; then
27067 echo $ECHO_N "(cached) $ECHO_C" >&6
27068else
27069 ac_check_lib_save_LIBS=$LIBS
27070LIBS="-lipc $LIBS"
27071cat >conftest.$ac_ext <<_ACEOF
27072/* confdefs.h. */
27073_ACEOF
27074cat confdefs.h >>conftest.$ac_ext
27075cat >>conftest.$ac_ext <<_ACEOF
27076/* end confdefs.h. */
27077
27078/* Override any gcc2 internal prototype to avoid an error. */
27079#ifdef __cplusplus
27080extern "C"
27081#endif
27082/* We use char because int might match the return type of a gcc2
27083 builtin and then its argument prototype would still apply. */
27084char shmat ();
27085int
27086main ()
27087{
27088shmat ();
27089 ;
27090 return 0;
27091}
27092_ACEOF
27093rm -f conftest.$ac_objext conftest$ac_exeext
27094if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27095 (eval $ac_link) 2>conftest.er1
a848cd7e 27096 ac_status=$?
ac1cb8d3
VS
27097 grep -v '^ *+' conftest.er1 >conftest.err
27098 rm -f conftest.er1
27099 cat conftest.err >&5
a848cd7e
SC
27100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27101 (exit $ac_status); } &&
9dd0f6c2 27102 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
27103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27104 (eval $ac_try) 2>&5
27105 ac_status=$?
27106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27107 (exit $ac_status); }; } &&
27108 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27110 (eval $ac_try) 2>&5
27111 ac_status=$?
27112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27113 (exit $ac_status); }; }; then
27114 ac_cv_lib_ipc_shmat=yes
27115else
27116 echo "$as_me: failed program was:" >&5
27117sed 's/^/| /' conftest.$ac_ext >&5
27118
27119ac_cv_lib_ipc_shmat=no
27120fi
ac1cb8d3
VS
27121rm -f conftest.err conftest.$ac_objext \
27122 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27123LIBS=$ac_check_lib_save_LIBS
27124fi
27125echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
27126echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
27127if test $ac_cv_lib_ipc_shmat = yes; then
27128 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
27129fi
27130
27131 fi
27132 fi
27133
27134 # Check for libraries that X11R6 Xt/Xaw programs need.
27135 ac_save_LDFLAGS=$LDFLAGS
27136 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
27137 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
27138 # check for ICE first), but we must link in the order -lSM -lICE or
27139 # we get undefined symbols. So assume we have SM if we have ICE.
27140 # These have to be linked with before -lX11, unlike the other
27141 # libraries we check for below, so use a different variable.
27142 # John Interrante, Karl Berry
27143 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
27144echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
27145if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
27146 echo $ECHO_N "(cached) $ECHO_C" >&6
27147else
27148 ac_check_lib_save_LIBS=$LIBS
27149LIBS="-lICE $X_EXTRA_LIBS $LIBS"
27150cat >conftest.$ac_ext <<_ACEOF
27151/* confdefs.h. */
27152_ACEOF
27153cat confdefs.h >>conftest.$ac_ext
27154cat >>conftest.$ac_ext <<_ACEOF
27155/* end confdefs.h. */
27156
27157/* Override any gcc2 internal prototype to avoid an error. */
27158#ifdef __cplusplus
27159extern "C"
27160#endif
27161/* We use char because int might match the return type of a gcc2
27162 builtin and then its argument prototype would still apply. */
27163char IceConnectionNumber ();
27164int
27165main ()
27166{
27167IceConnectionNumber ();
27168 ;
27169 return 0;
27170}
27171_ACEOF
27172rm -f conftest.$ac_objext conftest$ac_exeext
27173if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27174 (eval $ac_link) 2>conftest.er1
a848cd7e 27175 ac_status=$?
ac1cb8d3
VS
27176 grep -v '^ *+' conftest.er1 >conftest.err
27177 rm -f conftest.er1
27178 cat conftest.err >&5
a848cd7e
SC
27179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27180 (exit $ac_status); } &&
9dd0f6c2 27181 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
27182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27183 (eval $ac_try) 2>&5
27184 ac_status=$?
27185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27186 (exit $ac_status); }; } &&
27187 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27189 (eval $ac_try) 2>&5
27190 ac_status=$?
27191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27192 (exit $ac_status); }; }; then
27193 ac_cv_lib_ICE_IceConnectionNumber=yes
27194else
27195 echo "$as_me: failed program was:" >&5
27196sed 's/^/| /' conftest.$ac_ext >&5
27197
27198ac_cv_lib_ICE_IceConnectionNumber=no
27199fi
ac1cb8d3
VS
27200rm -f conftest.err conftest.$ac_objext \
27201 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27202LIBS=$ac_check_lib_save_LIBS
27203fi
27204echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
27205echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
27206if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
27207 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
27208fi
27209
27210 LDFLAGS=$ac_save_LDFLAGS
27211
27212fi
27213
27214
27215 if test "$no_x" = "yes"; then
27216 { { echo "$as_me:$LINENO: error: X11 not found" >&5
27217echo "$as_me: error: X11 not found" >&2;}
27218 { (exit please use --x-includes and/or --x-libraries options); exit please use --x-includes and/or --x-libraries options; }; }
27219 fi
27220
74b84332
VS
27221 GUI_TK_LIBRARY=`echo $X_LIBS | sed 's/ -LNONE//' | sed 's/ -RNONE//'`
27222 TOOLKIT_INCLUDE=`echo $X_CFLAGS | sed 's/ -INONE//'`
a848cd7e
SC
27223 AFMINSTALL=afminstall
27224 COMPILED_X_PROGRAM=0
27225
74b84332
VS
27226 fi
27227
27228 if test "$wxUSE_X11" = 1; then
a848cd7e
SC
27229 if test "$wxUSE_NANOX" = "yes"; then
27230 echo "$as_me:$LINENO: checking for MicroWindows/NanoX distribution" >&5
27231echo $ECHO_N "checking for MicroWindows/NanoX distribution... $ECHO_C" >&6
27232 if test "x$MICROWIN" = x ; then
27233 echo "$as_me:$LINENO: result: not found" >&5
27234echo "${ECHO_T}not found" >&6
27235 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&5
27236echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&2;}
27237 { (exit 1); exit 1; }; }
27238 else
27239 echo "$as_me:$LINENO: result: $MICROWIN" >&5
27240echo "${ECHO_T}$MICROWIN" >&6
27241 cat >>confdefs.h <<\_ACEOF
27242#define wxUSE_NANOX 1
27243_ACEOF
27244
27245 fi
27246 fi
27247
27248 if test "$wxUSE_UNICODE" = "yes"; then
27249
27250 succeeded=no
27251
27252 if test -z "$PKG_CONFIG"; then
27253 # Extract the first word of "pkg-config", so it can be a program name with args.
27254set dummy pkg-config; ac_word=$2
27255echo "$as_me:$LINENO: checking for $ac_word" >&5
27256echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
27257if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
27258 echo $ECHO_N "(cached) $ECHO_C" >&6
27259else
27260 case $PKG_CONFIG in
27261 [\\/]* | ?:[\\/]*)
27262 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
27263 ;;
27264 *)
27265 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27266for as_dir in $PATH
27267do
27268 IFS=$as_save_IFS
27269 test -z "$as_dir" && as_dir=.
27270 for ac_exec_ext in '' $ac_executable_extensions; do
27271 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27272 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
27273 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27274 break 2
27275 fi
27276done
27277done
27278
27279 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
27280 ;;
27281esac
27282fi
27283PKG_CONFIG=$ac_cv_path_PKG_CONFIG
27284
27285if test -n "$PKG_CONFIG"; then
27286 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
27287echo "${ECHO_T}$PKG_CONFIG" >&6
27288else
27289 echo "$as_me:$LINENO: result: no" >&5
27290echo "${ECHO_T}no" >&6
27291fi
27292
27293 fi
27294
27295 if test "$PKG_CONFIG" = "no" ; then
27296 echo "*** The pkg-config script could not be found. Make sure it is"
27297 echo "*** in your path, or set the PKG_CONFIG environment variable"
27298 echo "*** to the full path to pkg-config."
27299 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
27300 else
27301 PKG_CONFIG_MIN_VERSION=0.9.0
27302 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
27303 echo "$as_me:$LINENO: checking for pangox" >&5
27304echo $ECHO_N "checking for pangox... $ECHO_C" >&6
27305
27306 if $PKG_CONFIG --exists "pangox" ; then
27307 echo "$as_me:$LINENO: result: yes" >&5
27308echo "${ECHO_T}yes" >&6
27309 succeeded=yes
27310
27311 echo "$as_me:$LINENO: checking PANGOX_CFLAGS" >&5
27312echo $ECHO_N "checking PANGOX_CFLAGS... $ECHO_C" >&6
27313 PANGOX_CFLAGS=`$PKG_CONFIG --cflags "pangox"`
27314 echo "$as_me:$LINENO: result: $PANGOX_CFLAGS" >&5
27315echo "${ECHO_T}$PANGOX_CFLAGS" >&6
27316
27317 echo "$as_me:$LINENO: checking PANGOX_LIBS" >&5
27318echo $ECHO_N "checking PANGOX_LIBS... $ECHO_C" >&6
27319 PANGOX_LIBS=`$PKG_CONFIG --libs "pangox"`
27320 echo "$as_me:$LINENO: result: $PANGOX_LIBS" >&5
27321echo "${ECHO_T}$PANGOX_LIBS" >&6
27322 else
27323 PANGOX_CFLAGS=""
27324 PANGOX_LIBS=""
27325 ## If we have a custom action on failure, don't print errors, but
27326 ## do set a variable so people can do so.
27327 PANGOX_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangox"`
27328
27329 fi
27330
27331
27332
27333 else
27334 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
27335 echo "*** See http://www.freedesktop.org/software/pkgconfig"
27336 fi
27337 fi
27338
27339 if test $succeeded = yes; then
27340
27341 CXXFLAGS="$CXXFLAGS $PANGOX_CFLAGS"
27342 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOX_LIBS"
27343
27344 else
27345
27346 { { echo "$as_me:$LINENO: error: pangox library not found, library cannot be compiled in Unicode mode" >&5
27347echo "$as_me: error: pangox library not found, library cannot be compiled in Unicode mode" >&2;}
27348 { (exit 1); exit 1; }; }
27349
27350
27351 fi
27352
27353
27354 succeeded=no
27355
27356 if test -z "$PKG_CONFIG"; then
27357 # Extract the first word of "pkg-config", so it can be a program name with args.
27358set dummy pkg-config; ac_word=$2
27359echo "$as_me:$LINENO: checking for $ac_word" >&5
27360echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
27361if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
27362 echo $ECHO_N "(cached) $ECHO_C" >&6
27363else
27364 case $PKG_CONFIG in
27365 [\\/]* | ?:[\\/]*)
27366 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
27367 ;;
27368 *)
27369 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27370for as_dir in $PATH
27371do
27372 IFS=$as_save_IFS
27373 test -z "$as_dir" && as_dir=.
27374 for ac_exec_ext in '' $ac_executable_extensions; do
27375 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27376 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
27377 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27378 break 2
27379 fi
27380done
27381done
27382
27383 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
27384 ;;
27385esac
27386fi
27387PKG_CONFIG=$ac_cv_path_PKG_CONFIG
27388
27389if test -n "$PKG_CONFIG"; then
27390 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
27391echo "${ECHO_T}$PKG_CONFIG" >&6
27392else
27393 echo "$as_me:$LINENO: result: no" >&5
27394echo "${ECHO_T}no" >&6
27395fi
27396
27397 fi
27398
27399 if test "$PKG_CONFIG" = "no" ; then
27400 echo "*** The pkg-config script could not be found. Make sure it is"
27401 echo "*** in your path, or set the PKG_CONFIG environment variable"
27402 echo "*** to the full path to pkg-config."
27403 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
27404 else
27405 PKG_CONFIG_MIN_VERSION=0.9.0
27406 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
27407 echo "$as_me:$LINENO: checking for pangoft2" >&5
27408echo $ECHO_N "checking for pangoft2... $ECHO_C" >&6
27409
27410 if $PKG_CONFIG --exists "pangoft2" ; then
27411 echo "$as_me:$LINENO: result: yes" >&5
27412echo "${ECHO_T}yes" >&6
27413 succeeded=yes
27414
27415 echo "$as_me:$LINENO: checking PANGOFT2_CFLAGS" >&5
27416echo $ECHO_N "checking PANGOFT2_CFLAGS... $ECHO_C" >&6
27417 PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"`
27418 echo "$as_me:$LINENO: result: $PANGOFT2_CFLAGS" >&5
27419echo "${ECHO_T}$PANGOFT2_CFLAGS" >&6
27420
27421 echo "$as_me:$LINENO: checking PANGOFT2_LIBS" >&5
27422echo $ECHO_N "checking PANGOFT2_LIBS... $ECHO_C" >&6
27423 PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"`
27424 echo "$as_me:$LINENO: result: $PANGOFT2_LIBS" >&5
27425echo "${ECHO_T}$PANGOFT2_LIBS" >&6
27426 else
27427 PANGOFT2_CFLAGS=""
27428 PANGOFT2_LIBS=""
27429 ## If we have a custom action on failure, don't print errors, but
27430 ## do set a variable so people can do so.
27431 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
27432
27433 fi
27434
27435
27436
27437 else
27438 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
27439 echo "*** See http://www.freedesktop.org/software/pkgconfig"
27440 fi
27441 fi
27442
27443 if test $succeeded = yes; then
27444
27445 CXXFLAGS="$CXXFLAGS $PANGOFT2_CFLAGS"
27446 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOFT2_LIBS"
27447
27448 else
27449
27450 { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5
27451echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;}
27452 wxUSE_PRINTING_ARCHITECTURE="no"
27453
27454
27455 fi
27456
27457
27458 succeeded=no
27459
27460 if test -z "$PKG_CONFIG"; then
27461 # Extract the first word of "pkg-config", so it can be a program name with args.
27462set dummy pkg-config; ac_word=$2
27463echo "$as_me:$LINENO: checking for $ac_word" >&5
27464echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
27465if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
27466 echo $ECHO_N "(cached) $ECHO_C" >&6
27467else
27468 case $PKG_CONFIG in
27469 [\\/]* | ?:[\\/]*)
27470 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
27471 ;;
27472 *)
27473 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27474for as_dir in $PATH
27475do
27476 IFS=$as_save_IFS
27477 test -z "$as_dir" && as_dir=.
27478 for ac_exec_ext in '' $ac_executable_extensions; do
27479 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27480 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
27481 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27482 break 2
27483 fi
27484done
27485done
27486
27487 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
27488 ;;
27489esac
27490fi
27491PKG_CONFIG=$ac_cv_path_PKG_CONFIG
27492
27493if test -n "$PKG_CONFIG"; then
27494 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
27495echo "${ECHO_T}$PKG_CONFIG" >&6
27496else
27497 echo "$as_me:$LINENO: result: no" >&5
27498echo "${ECHO_T}no" >&6
27499fi
27500
27501 fi
27502
27503 if test "$PKG_CONFIG" = "no" ; then
27504 echo "*** The pkg-config script could not be found. Make sure it is"
27505 echo "*** in your path, or set the PKG_CONFIG environment variable"
27506 echo "*** to the full path to pkg-config."
27507 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
27508 else
27509 PKG_CONFIG_MIN_VERSION=0.9.0
27510 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
27511 echo "$as_me:$LINENO: checking for pangoxft" >&5
27512echo $ECHO_N "checking for pangoxft... $ECHO_C" >&6
27513
27514 if $PKG_CONFIG --exists "pangoxft" ; then
27515 echo "$as_me:$LINENO: result: yes" >&5
27516echo "${ECHO_T}yes" >&6
27517 succeeded=yes
27518
27519 echo "$as_me:$LINENO: checking PANGOXFT_CFLAGS" >&5
27520echo $ECHO_N "checking PANGOXFT_CFLAGS... $ECHO_C" >&6
27521 PANGOXFT_CFLAGS=`$PKG_CONFIG --cflags "pangoxft"`
27522 echo "$as_me:$LINENO: result: $PANGOXFT_CFLAGS" >&5
27523echo "${ECHO_T}$PANGOXFT_CFLAGS" >&6
27524
27525 echo "$as_me:$LINENO: checking PANGOXFT_LIBS" >&5
27526echo $ECHO_N "checking PANGOXFT_LIBS... $ECHO_C" >&6
27527 PANGOXFT_LIBS=`$PKG_CONFIG --libs "pangoxft"`
27528 echo "$as_me:$LINENO: result: $PANGOXFT_LIBS" >&5
27529echo "${ECHO_T}$PANGOXFT_LIBS" >&6
27530 else
27531 PANGOXFT_CFLAGS=""
27532 PANGOXFT_LIBS=""
27533 ## If we have a custom action on failure, don't print errors, but
27534 ## do set a variable so people can do so.
27535 PANGOXFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoxft"`
27536
27537 fi
27538
27539
27540
27541 else
27542 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
27543 echo "*** See http://www.freedesktop.org/software/pkgconfig"
27544 fi
27545 fi
27546
27547 if test $succeeded = yes; then
27548
4ae1af05
MB
27549 cat >>confdefs.h <<\_ACEOF
27550#define HAVE_PANGO_XFT 1
27551_ACEOF
27552
a848cd7e
SC
27553 CXXFLAGS="$CXXFLAGS $PANGOXFT_CFLAGS"
27554 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOXFT_LIBS"
27555
27556 else
27557
27558 { echo "$as_me:$LINENO: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&5
27559echo "$as_me: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&2;}
27560
27561
27562 fi
27563
304205f1
VS
27564 save_CFLAGS="$CFLAGS"
27565 save_LIBS="$LIBS"
27566 CFLAGS="$CFLAGS $PANGOX_CFLAGS"
27567 LIBS="$LIBS $PANGOX_LIBS"
27568
27569for ac_func in pango_font_family_is_monospace
27570do
27571as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27572echo "$as_me:$LINENO: checking for $ac_func" >&5
27573echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27574if eval "test \"\${$as_ac_var+set}\" = set"; then
27575 echo $ECHO_N "(cached) $ECHO_C" >&6
27576else
27577 cat >conftest.$ac_ext <<_ACEOF
27578/* confdefs.h. */
27579_ACEOF
27580cat confdefs.h >>conftest.$ac_ext
27581cat >>conftest.$ac_ext <<_ACEOF
27582/* end confdefs.h. */
27583/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27584 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27585#define $ac_func innocuous_$ac_func
27586
27587/* System header to define __stub macros and hopefully few prototypes,
27588 which can conflict with char $ac_func (); below.
27589 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27590 <limits.h> exists even on freestanding compilers. */
27591
27592#ifdef __STDC__
27593# include <limits.h>
27594#else
27595# include <assert.h>
27596#endif
27597
27598#undef $ac_func
27599
27600/* Override any gcc2 internal prototype to avoid an error. */
27601#ifdef __cplusplus
27602extern "C"
27603{
27604#endif
27605/* We use char because int might match the return type of a gcc2
27606 builtin and then its argument prototype would still apply. */
27607char $ac_func ();
27608/* The GNU C library defines this for functions which it implements
27609 to always fail with ENOSYS. Some functions are actually named
27610 something starting with __ and the normal name is an alias. */
27611#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27612choke me
27613#else
27614char (*f) () = $ac_func;
27615#endif
27616#ifdef __cplusplus
27617}
27618#endif
27619
27620int
27621main ()
27622{
27623return f != $ac_func;
27624 ;
27625 return 0;
27626}
27627_ACEOF
27628rm -f conftest.$ac_objext conftest$ac_exeext
27629if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27630 (eval $ac_link) 2>conftest.er1
27631 ac_status=$?
27632 grep -v '^ *+' conftest.er1 >conftest.err
27633 rm -f conftest.er1
27634 cat conftest.err >&5
27635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27636 (exit $ac_status); } &&
9dd0f6c2 27637 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
304205f1
VS
27638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27639 (eval $ac_try) 2>&5
27640 ac_status=$?
27641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27642 (exit $ac_status); }; } &&
27643 { ac_try='test -s conftest$ac_exeext'
27644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27645 (eval $ac_try) 2>&5
27646 ac_status=$?
27647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27648 (exit $ac_status); }; }; then
27649 eval "$as_ac_var=yes"
27650else
27651 echo "$as_me: failed program was:" >&5
27652sed 's/^/| /' conftest.$ac_ext >&5
27653
27654eval "$as_ac_var=no"
27655fi
27656rm -f conftest.err conftest.$ac_objext \
27657 conftest$ac_exeext conftest.$ac_ext
27658fi
27659echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27660echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27661if test `eval echo '${'$as_ac_var'}'` = yes; then
27662 cat >>confdefs.h <<_ACEOF
27663#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27664_ACEOF
27665
27666fi
27667done
27668
27669 CFLAGS="$save_CFLAGS"
27670 LIBS="$save_LIBS"
a848cd7e
SC
27671 fi
27672
27673 wxUSE_UNIVERSAL="yes"
27674
27675 if test "$wxUSE_NANOX" = "yes"; then
27676 TOOLKIT_INCLUDE="-I\$(top_srcdir)/include/wx/x11/nanox -I\$(MICROWIN)/src/include $TOOLKIT_INCLUDE"
27677 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"
27678 GUI_TK_LIBRARY="$GUI_TK_LIBRARY \$(MICROWIN)/src/lib/libnano-X.a"
27679 else
27680 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lX11"
27681 fi
27682
a848cd7e
SC
27683 TOOLKIT=X11
27684 GUIDIST=X11_DIST
27685 fi
27686
27687 if test "$wxUSE_MOTIF" = 1; then
0a08f02a
MB
27688 if test "$wxUSE_UNICODE" = "yes"; then
27689 { { echo "$as_me:$LINENO: error: Unicode configuration not supported with Motif" >&5
27690echo "$as_me: error: Unicode configuration not supported with Motif" >&2;}
27691 { (exit 1); exit 1; }; }
27692 fi
27693
74b84332
VS
27694 echo "$as_me:$LINENO: checking for Motif/Lesstif headers" >&5
27695echo $ECHO_N "checking for Motif/Lesstif headers... $ECHO_C" >&6
a848cd7e 27696
74b84332
VS
27697ac_find_includes=
27698for ac_dir in $SEARCH_INCLUDE /usr/include;
27699 do
27700 if test -f "$ac_dir/Xm/Xm.h"; then
27701 ac_find_includes=$ac_dir
27702 break
27703 fi
27704 done
a848cd7e 27705
74b84332
VS
27706 if test "$ac_find_includes" != "" ; then
27707 echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
27708echo "${ECHO_T}found in $ac_find_includes" >&6
27709
27710 if test "x$ac_find_includes" = "x/usr/include"; then
27711 ac_path_to_include=""
27712 else
27713 echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null
27714 result=$?
27715 if test $result = 0; then
27716 ac_path_to_include=""
27717 else
27718 ac_path_to_include=" -I$ac_find_includes"
27719 fi
a848cd7e
SC
27720 fi
27721
74b84332
VS
27722 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE$ac_path_to_include"
27723 else
27724 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
27725/* confdefs.h. */
27726_ACEOF
27727cat confdefs.h >>conftest.$ac_ext
27728cat >>conftest.$ac_ext <<_ACEOF
27729/* end confdefs.h. */
27730
74b84332
VS
27731 #include <Xm/Xm.h>
27732
a848cd7e
SC
27733int
27734main ()
27735{
27736
74b84332
VS
27737 int version;
27738 version = xmUseVersion;
27739
a848cd7e
SC
27740 ;
27741 return 0;
27742}
27743_ACEOF
74b84332
VS
27744rm -f conftest.$ac_objext
27745if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27746 (eval $ac_compile) 2>conftest.er1
a848cd7e 27747 ac_status=$?
ac1cb8d3
VS
27748 grep -v '^ *+' conftest.er1 >conftest.err
27749 rm -f conftest.er1
27750 cat conftest.err >&5
a848cd7e
SC
27751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27752 (exit $ac_status); } &&
9dd0f6c2 27753 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
27754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27755 (eval $ac_try) 2>&5
27756 ac_status=$?
27757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27758 (exit $ac_status); }; } &&
74b84332 27759 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
27760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27761 (eval $ac_try) 2>&5
27762 ac_status=$?
27763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27764 (exit $ac_status); }; }; then
74b84332
VS
27765
27766 echo "$as_me:$LINENO: result: found in default search path" >&5
27767echo "${ECHO_T}found in default search path" >&6
27768 COMPILED_X_PROGRAM=1
27769
a848cd7e
SC
27770else
27771 echo "$as_me: failed program was:" >&5
27772sed 's/^/| /' conftest.$ac_ext >&5
27773
a848cd7e 27774
74b84332
VS
27775 echo "$as_me:$LINENO: result: no" >&5
27776echo "${ECHO_T}no" >&6
27777 { { echo "$as_me:$LINENO: error: please set CFLAGS to contain the location of Xm/Xm.h" >&5
27778echo "$as_me: error: please set CFLAGS to contain the location of Xm/Xm.h" >&2;}
27779 { (exit 1); exit 1; }; }
a848cd7e 27780
a848cd7e 27781
a848cd7e 27782fi
74b84332
VS
27783rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27784 fi
27785
27786 if test "$COMPILED_X_PROGRAM" = 0; then
27787 echo "$as_me:$LINENO: checking for Motif/Lesstif library" >&5
27788echo $ECHO_N "checking for Motif/Lesstif library... $ECHO_C" >&6
27789
27790ac_find_libraries=
27791for ac_dir in $SEARCH_LIB /usr/lib;
27792 do
27793 for ac_extension in a so sl dylib; do
27794 if test -f "$ac_dir/libXm.$ac_extension"; then
27795 ac_find_libraries=$ac_dir
27796 break 2
a848cd7e 27797 fi
74b84332
VS
27798 done
27799 done
a848cd7e 27800
74b84332
VS
27801 if test "$ac_find_libraries" != "" ; then
27802 echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5
27803echo "${ECHO_T}found at $ac_find_libraries" >&6
a848cd7e 27804
74b84332
VS
27805
27806 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
27807 result=$?
27808 if test $result = 0; then
27809 ac_path_to_link=""
a848cd7e 27810 else
74b84332
VS
27811 ac_path_to_link=" -L$ac_find_libraries"
27812 fi
27813
27814 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
27815 else
27816 save_CFLAGS=$CFLAGS
27817 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
27818
27819 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
27820/* confdefs.h. */
27821_ACEOF
27822cat confdefs.h >>conftest.$ac_ext
27823cat >>conftest.$ac_ext <<_ACEOF
27824/* end confdefs.h. */
27825
74b84332
VS
27826 #include <Xm/Xm.h>
27827
a848cd7e
SC
27828int
27829main ()
27830{
74b84332
VS
27831
27832 int version;
27833 version = xmUseVersion;
27834
a848cd7e
SC
27835 ;
27836 return 0;
27837}
27838_ACEOF
74b84332
VS
27839rm -f conftest.$ac_objext
27840if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27841 (eval $ac_compile) 2>conftest.er1
a848cd7e 27842 ac_status=$?
ac1cb8d3
VS
27843 grep -v '^ *+' conftest.er1 >conftest.err
27844 rm -f conftest.er1
27845 cat conftest.err >&5
a848cd7e
SC
27846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27847 (exit $ac_status); } &&
9dd0f6c2 27848 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
27849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27850 (eval $ac_try) 2>&5
27851 ac_status=$?
27852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27853 (exit $ac_status); }; } &&
74b84332 27854 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
27855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27856 (eval $ac_try) 2>&5
27857 ac_status=$?
27858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27859 (exit $ac_status); }; }; then
74b84332
VS
27860
27861 echo "$as_me:$LINENO: result: found in default search path" >&5
27862echo "${ECHO_T}found in default search path" >&6
27863 COMPILED_X_PROGRAM=1
27864
a848cd7e
SC
27865else
27866 echo "$as_me: failed program was:" >&5
27867sed 's/^/| /' conftest.$ac_ext >&5
27868
74b84332
VS
27869
27870 echo "$as_me:$LINENO: result: no" >&5
27871echo "${ECHO_T}no" >&6
27872 { { echo "$as_me:$LINENO: error: please set LDFLAGS to contain the location of libXm" >&5
27873echo "$as_me: error: please set LDFLAGS to contain the location of libXm" >&2;}
27874 { (exit 1); exit 1; }; }
27875
27876
27877fi
27878rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27879
27880 CFLAGS=$save_CFLAGS
27881 fi
27882 fi
27883
27884 echo "$as_me:$LINENO: checking if we need -lXp and/or -lSM -lICE" >&5
27885echo $ECHO_N "checking if we need -lXp and/or -lSM -lICE... $ECHO_C" >&6
27886 libp_link=""
27887 libsm_ice_link=""
27888 libs_found=0
27889 for libp in "" " -lXp"; do
27890 if test "$libs_found" = "0"; then
27891 for libsm_ice in "" " -lSM -lICE"; do
27892 if test "$libs_found" = "0"; then
27893 save_LIBS="$LIBS"
27894 LIBS="$GUI_TK_LIBRARY -lXm ${libp} -lXmu -lXext -lXt${libsm_ice} -lX11"
27895 save_CFLAGS=$CFLAGS
27896 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
27897
27898 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
27899/* confdefs.h. */
27900_ACEOF
27901cat confdefs.h >>conftest.$ac_ext
27902cat >>conftest.$ac_ext <<_ACEOF
27903/* end confdefs.h. */
27904
74b84332
VS
27905 #include <Xm/Xm.h>
27906 #include <Xm/List.h>
27907
a848cd7e
SC
27908int
27909main ()
27910{
74b84332
VS
27911
27912 XmString string = NULL;
27913 Widget w = NULL;
27914 int position = 0;
27915 XmListAddItem(w, string, position);
27916
a848cd7e
SC
27917 ;
27918 return 0;
27919}
27920_ACEOF
27921rm -f conftest.$ac_objext conftest$ac_exeext
27922if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27923 (eval $ac_link) 2>conftest.er1
a848cd7e 27924 ac_status=$?
ac1cb8d3
VS
27925 grep -v '^ *+' conftest.er1 >conftest.err
27926 rm -f conftest.er1
27927 cat conftest.err >&5
a848cd7e
SC
27928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27929 (exit $ac_status); } &&
9dd0f6c2 27930 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
27931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27932 (eval $ac_try) 2>&5
27933 ac_status=$?
27934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27935 (exit $ac_status); }; } &&
27936 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27938 (eval $ac_try) 2>&5
27939 ac_status=$?
27940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27941 (exit $ac_status); }; }; then
27942
27943 libp_link="$libp"
27944 libsm_ice_link="$libsm_ice"
27945 echo "$as_me:$LINENO: result: need${libp_link}${libsm_ice_link}" >&5
27946echo "${ECHO_T}need${libp_link}${libsm_ice_link}" >&6
27947 libs_found=1
27948
27949else
27950 echo "$as_me: failed program was:" >&5
27951sed 's/^/| /' conftest.$ac_ext >&5
27952
27953
27954
27955fi
ac1cb8d3
VS
27956rm -f conftest.err conftest.$ac_objext \
27957 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27958
27959 LIBS="$save_LIBS"
27960 CFLAGS=$save_CFLAGS
27961 fi
27962 done
27963 fi
27964 done
27965
27966 if test "$libs_found" = "0"; then
27967 echo "$as_me:$LINENO: result: can't find the right libraries" >&5
27968echo "${ECHO_T}can't find the right libraries" >&6
27969 { { echo "$as_me:$LINENO: error: can't link a simple motif program" >&5
27970echo "$as_me: error: can't link a simple motif program" >&2;}
27971 { (exit 1); exit 1; }; }
27972 fi
27973
27974 save_CFLAGS=$CFLAGS
27975 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
27976 echo "$as_me:$LINENO: checking for Motif 2" >&5
27977echo $ECHO_N "checking for Motif 2... $ECHO_C" >&6
27978 cat >conftest.$ac_ext <<_ACEOF
27979/* confdefs.h. */
27980_ACEOF
27981cat confdefs.h >>conftest.$ac_ext
27982cat >>conftest.$ac_ext <<_ACEOF
27983/* end confdefs.h. */
27984
27985 #include <Xm/Xm.h>
27986
27987int
27988main ()
27989{
27990
27991 #if XmVersion < 2000
27992 #error "Not Motif 2"
27993 #endif
27994
27995 ;
27996 return 0;
27997}
27998_ACEOF
27999rm -f conftest.$ac_objext
28000if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 28001 (eval $ac_compile) 2>conftest.er1
a848cd7e 28002 ac_status=$?
ac1cb8d3
VS
28003 grep -v '^ *+' conftest.er1 >conftest.err
28004 rm -f conftest.er1
28005 cat conftest.err >&5
a848cd7e
SC
28006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28007 (exit $ac_status); } &&
9dd0f6c2 28008 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28010 (eval $ac_try) 2>&5
28011 ac_status=$?
28012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28013 (exit $ac_status); }; } &&
28014 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
28015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28016 (eval $ac_try) 2>&5
28017 ac_status=$?
28018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28019 (exit $ac_status); }; }; then
28020
28021 cat >>confdefs.h <<\_ACEOF
28022#define __WXMOTIF20__ 1
28023_ACEOF
28024
28025 echo "$as_me:$LINENO: result: found" >&5
28026echo "${ECHO_T}found" >&6
28027
28028else
28029 echo "$as_me: failed program was:" >&5
28030sed 's/^/| /' conftest.$ac_ext >&5
28031
28032
28033 cat >>confdefs.h <<\_ACEOF
28034#define __WXMOTIF20__ 0
28035_ACEOF
28036
28037 echo "$as_me:$LINENO: result: not found" >&5
28038echo "${ECHO_T}not found" >&6
28039
28040fi
ac1cb8d3 28041rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
28042 CFLAGS=$save_CFLAGS
28043
28044 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXm${libp_link} -lXmu -lXext -lXt${libsm_ice_link} -lX11"
a848cd7e
SC
28045 TOOLKIT=MOTIF
28046 GUIDIST=MOTIF_DIST
28047 fi
28048
74b84332 28049 if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
a848cd7e
SC
28050 if test "$wxUSE_LIBXPM" = "sys"; then
28051 echo "$as_me:$LINENO: checking for Xpm library" >&5
28052echo $ECHO_N "checking for Xpm library... $ECHO_C" >&6
28053
28054ac_find_libraries=
28055for ac_dir in $SEARCH_LIB /usr/lib;
28056 do
28057 for ac_extension in a so sl dylib; do
28058 if test -f "$ac_dir/libXpm.$ac_extension"; then
28059 ac_find_libraries=$ac_dir
28060 break 2
28061 fi
28062 done
28063 done
28064
28065 if test "$ac_find_libraries" != "" ; then
28066
28067 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
28068 result=$?
28069 if test $result = 0; then
28070 ac_path_to_link=""
28071 else
28072 ac_path_to_link=" -L$ac_find_libraries"
28073 fi
28074
28075 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
28076 echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5
28077echo "${ECHO_T}found at $ac_find_libraries" >&6
28078
28079 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
28080echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
28081if test "${wx_cv_x11_xpm_h+set}" = set; then
28082 echo $ECHO_N "(cached) $ECHO_C" >&6
28083else
28084
28085 save_CFLAGS=$CFLAGS
28086 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
28087
28088 cat >conftest.$ac_ext <<_ACEOF
28089/* confdefs.h. */
28090_ACEOF
28091cat confdefs.h >>conftest.$ac_ext
28092cat >>conftest.$ac_ext <<_ACEOF
28093/* end confdefs.h. */
28094
28095 #include <X11/xpm.h>
28096
28097int
28098main ()
28099{
28100
28101 int version;
28102 version = XpmLibraryVersion();
28103
28104 ;
28105 return 0;
28106}
28107_ACEOF
28108rm -f conftest.$ac_objext
28109if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 28110 (eval $ac_compile) 2>conftest.er1
a848cd7e 28111 ac_status=$?
ac1cb8d3
VS
28112 grep -v '^ *+' conftest.er1 >conftest.err
28113 rm -f conftest.er1
28114 cat conftest.err >&5
a848cd7e
SC
28115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28116 (exit $ac_status); } &&
9dd0f6c2 28117 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28119 (eval $ac_try) 2>&5
28120 ac_status=$?
28121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28122 (exit $ac_status); }; } &&
28123 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
28124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28125 (eval $ac_try) 2>&5
28126 ac_status=$?
28127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28128 (exit $ac_status); }; }; then
28129 wx_cv_x11_xpm_h=yes
28130else
28131 echo "$as_me: failed program was:" >&5
28132sed 's/^/| /' conftest.$ac_ext >&5
28133
28134wx_cv_x11_xpm_h=no
28135
28136fi
ac1cb8d3 28137rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
28138
28139 CFLAGS=$save_CFLAGS
28140
28141
28142fi
28143echo "$as_me:$LINENO: result: $wx_cv_x11_xpm_h" >&5
28144echo "${ECHO_T}$wx_cv_x11_xpm_h" >&6
28145
28146 if test $wx_cv_x11_xpm_h = "yes"; then
28147 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXpm"
28148 cat >>confdefs.h <<\_ACEOF
28149#define wxHAVE_LIB_XPM 1
28150_ACEOF
28151
28152 else
28153 { echo "$as_me:$LINENO: WARNING: built-in less efficient XPM decoder will be used" >&5
28154echo "$as_me: WARNING: built-in less efficient XPM decoder will be used" >&2;}
28155 fi
28156 fi
28157
28158 fi
28159
28160 echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
28161echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6
28162if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
28163 echo $ECHO_N "(cached) $ECHO_C" >&6
28164else
28165 ac_check_lib_save_LIBS=$LIBS
28166LIBS="-lXext $GUI_TK_LIBRARY -lX11 $LIBS"
28167cat >conftest.$ac_ext <<_ACEOF
28168/* confdefs.h. */
28169_ACEOF
28170cat confdefs.h >>conftest.$ac_ext
28171cat >>conftest.$ac_ext <<_ACEOF
28172/* end confdefs.h. */
28173
28174/* Override any gcc2 internal prototype to avoid an error. */
28175#ifdef __cplusplus
28176extern "C"
28177#endif
28178/* We use char because int might match the return type of a gcc2
28179 builtin and then its argument prototype would still apply. */
28180char XShapeQueryExtension ();
28181int
28182main ()
28183{
28184XShapeQueryExtension ();
28185 ;
28186 return 0;
28187}
28188_ACEOF
28189rm -f conftest.$ac_objext conftest$ac_exeext
28190if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28191 (eval $ac_link) 2>conftest.er1
a848cd7e 28192 ac_status=$?
ac1cb8d3
VS
28193 grep -v '^ *+' conftest.er1 >conftest.err
28194 rm -f conftest.er1
28195 cat conftest.err >&5
a848cd7e
SC
28196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28197 (exit $ac_status); } &&
9dd0f6c2 28198 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28200 (eval $ac_try) 2>&5
28201 ac_status=$?
28202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28203 (exit $ac_status); }; } &&
28204 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28206 (eval $ac_try) 2>&5
28207 ac_status=$?
28208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28209 (exit $ac_status); }; }; then
28210 ac_cv_lib_Xext_XShapeQueryExtension=yes
28211else
28212 echo "$as_me: failed program was:" >&5
28213sed 's/^/| /' conftest.$ac_ext >&5
28214
28215ac_cv_lib_Xext_XShapeQueryExtension=no
28216fi
ac1cb8d3
VS
28217rm -f conftest.err conftest.$ac_objext \
28218 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28219LIBS=$ac_check_lib_save_LIBS
28220fi
28221echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
28222echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6
28223if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
28224
28225 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXext"
28226 wxHAVE_XEXT_LIB=1
28227
28228fi
28229
28230
28231 if test "$wxHAVE_XEXT_LIB" = 1; then
28232 save_CFLAGS="$CFLAGS"
28233 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
28234
28235 echo "$as_me:$LINENO: checking for X11/extensions/shape.h" >&5
28236echo $ECHO_N "checking for X11/extensions/shape.h... $ECHO_C" >&6
28237 cat >conftest.$ac_ext <<_ACEOF
28238/* confdefs.h. */
28239_ACEOF
28240cat confdefs.h >>conftest.$ac_ext
28241cat >>conftest.$ac_ext <<_ACEOF
28242/* end confdefs.h. */
28243
28244 #include <X11/Xlib.h>
28245 #include <X11/extensions/shape.h>
28246
28247int
28248main ()
28249{
28250
28251 int dummy1, dummy2;
28252 XShapeQueryExtension((Display*)NULL,
28253 (int*)NULL, (int*)NULL);
28254
28255 ;
28256 return 0;
28257}
28258_ACEOF
28259rm -f conftest.$ac_objext
28260if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 28261 (eval $ac_compile) 2>conftest.er1
a848cd7e 28262 ac_status=$?
ac1cb8d3
VS
28263 grep -v '^ *+' conftest.er1 >conftest.err
28264 rm -f conftest.er1
28265 cat conftest.err >&5
a848cd7e
SC
28266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28267 (exit $ac_status); } &&
9dd0f6c2 28268 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28270 (eval $ac_try) 2>&5
28271 ac_status=$?
28272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28273 (exit $ac_status); }; } &&
28274 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
28275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28276 (eval $ac_try) 2>&5
28277 ac_status=$?
28278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28279 (exit $ac_status); }; }; then
28280
28281 cat >>confdefs.h <<\_ACEOF
28282#define HAVE_XSHAPE 1
28283_ACEOF
28284
28285 echo "$as_me:$LINENO: result: found" >&5
28286echo "${ECHO_T}found" >&6
28287
28288else
28289 echo "$as_me: failed program was:" >&5
28290sed 's/^/| /' conftest.$ac_ext >&5
28291
28292
28293 echo "$as_me:$LINENO: result: not found" >&5
28294echo "${ECHO_T}not found" >&6
28295
28296fi
ac1cb8d3 28297rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
28298 CFLAGS="$save_CFLAGS"
28299
28300 fi
28301 fi
28302
28303 if test "$wxUSE_MAC" = 1; then
28304 echo "$as_me:$LINENO: checking for compiler syntax to enable Pascal strings" >&5
28305echo $ECHO_N "checking for compiler syntax to enable Pascal strings... $ECHO_C" >&6
28306 if test "$GCC" = yes; then
28307 echo "$as_me:$LINENO: result: gcc" >&5
28308echo "${ECHO_T}gcc" >&6
28309 CPPFLAGS_PASCAL="-fpascal-strings"
28310 elif test "`echo $CXX | sed -e 's@.*/@@'`" = "xlC"; then
28311 echo "$as_me:$LINENO: result: xlc" >&5
28312echo "${ECHO_T}xlc" >&6
28313 CPPFLAGS_PASCAL="-qmacpstr"
28314 else
28315 echo "$as_me:$LINENO: result: none" >&5
28316echo "${ECHO_T}none" >&6
28317 fi
28318
1e9e8aba
DE
28319 if test "x$wxUSE_UNIX" = "xyes"; then
28320 CPPFLAGS="$CPPFLAGS $CPPFLAGS_PASCAL -I\${top_srcdir}/src/mac/carbon/morefilex -I/Developer/Headers/FlatCarbon"
28321 else
28322 CPPFLAGS="$CPPFLAGS $CPPFLAGS_PASCAL -I\${top_srcdir}/src/mac/carbon/morefilex -DTARGET_CARBON"
28323 fi
a848cd7e 28324
a848cd7e
SC
28325 TOOLKIT=MAC
28326 GUIDIST=MACX_DIST
dd21ced8 28327 WXBASEPORT="_carbon"
a848cd7e
SC
28328 fi
28329
28330 if test "$wxUSE_COCOA" = 1; then
a848cd7e
SC
28331 TOOLKIT=COCOA
28332 GUIDIST=COCOA_DIST
28333 fi
28334
28335 if test "$wxUSE_PM" = 1; then
28336 TOOLKIT=PM
de59c161
RD
28337 GUIDIST=PM_DIST
28338 echo "$as_me:$LINENO: checking for type SPBCDATA" >&5
28339echo $ECHO_N "checking for type SPBCDATA... $ECHO_C" >&6
28340if test "${wx_cv_spbcdata+set}" = set; then
28341 echo $ECHO_N "(cached) $ECHO_C" >&6
28342else
28343
28344 cat >conftest.$ac_ext <<_ACEOF
de59c161
RD
28345/* confdefs.h. */
28346_ACEOF
28347cat confdefs.h >>conftest.$ac_ext
28348cat >>conftest.$ac_ext <<_ACEOF
28349/* end confdefs.h. */
28350
28351 #define INCL_PM
28352 #include <os2.h>
28353
28354int
28355main ()
28356{
28357
28358 SPBCDATA test;
28359
28360 ;
28361 return 0;
28362}
28363_ACEOF
28364rm -f conftest.$ac_objext
28365if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 28366 (eval $ac_compile) 2>conftest.er1
de59c161 28367 ac_status=$?
ac1cb8d3
VS
28368 grep -v '^ *+' conftest.er1 >conftest.err
28369 rm -f conftest.er1
28370 cat conftest.err >&5
de59c161
RD
28371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28372 (exit $ac_status); } &&
9dd0f6c2 28373 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28375 (eval $ac_try) 2>&5
28376 ac_status=$?
28377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28378 (exit $ac_status); }; } &&
28379 { ac_try='test -s conftest.$ac_objext'
de59c161
RD
28380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28381 (eval $ac_try) 2>&5
28382 ac_status=$?
28383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28384 (exit $ac_status); }; }; then
28385 wx_cv_spbcdata=yes
28386else
28387 echo "$as_me: failed program was:" >&5
28388sed 's/^/| /' conftest.$ac_ext >&5
28389
28390wx_cv_spbcdata=no
28391
28392fi
ac1cb8d3 28393rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
de59c161
RD
28394
28395
28396fi
28397echo "$as_me:$LINENO: result: $wx_cv_spbcdata" >&5
28398echo "${ECHO_T}$wx_cv_spbcdata" >&6
28399
28400 if test $wx_cv_spbcdata = "yes"; then
28401 cat >>confdefs.h <<\_ACEOF
28402#define HAVE_SPBCDATA 1
28403_ACEOF
28404
28405 fi
a848cd7e
SC
28406 fi
28407
28408 if test "$TOOLKIT" = "PM" ; then
28409 TOOLKIT_DIR="os2"
28410 else
28411 TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"`
28412 fi
28413
a848cd7e 28414 if test "$wxUSE_UNIVERSAL" = "yes"; then
a848cd7e
SC
28415 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__"
28416 WIDGET_SET=univ
a848cd7e
SC
28417 fi
28418
28419 GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST"
28420 DISTDIR="wx\$(TOOLKIT)"
28421else
28422 USE_GUI=0
28423
28424 TOOLKIT_DIR="base"
28425
28426 if test "$USE_WIN32" = 1 ; then
a848cd7e 28427 TOOLKIT="MSW"
a848cd7e
SC
28428 fi
28429
a848cd7e
SC
28430 GUIDIST="BASE_DIST"
28431 DISTDIR="wxBase"
28432fi
28433
28434
28435
28436
28437IODBC_C_SRC=""
28438
28439
28440if test "$TOOLKIT" != "MSW" ; then
28441
28442 if test "$wxUSE_ODBC" = "sys" -o "$wxUSE_ODBC" = "yes" ; then
28443
28444 if test "${ac_cv_header_sql_h+set}" = set; then
28445 echo "$as_me:$LINENO: checking for sql.h" >&5
28446echo $ECHO_N "checking for sql.h... $ECHO_C" >&6
28447if test "${ac_cv_header_sql_h+set}" = set; then
28448 echo $ECHO_N "(cached) $ECHO_C" >&6
28449fi
28450echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
28451echo "${ECHO_T}$ac_cv_header_sql_h" >&6
28452else
28453 # Is the header compilable?
28454echo "$as_me:$LINENO: checking sql.h usability" >&5
28455echo $ECHO_N "checking sql.h usability... $ECHO_C" >&6
28456cat >conftest.$ac_ext <<_ACEOF
28457/* confdefs.h. */
28458_ACEOF
28459cat confdefs.h >>conftest.$ac_ext
28460cat >>conftest.$ac_ext <<_ACEOF
28461/* end confdefs.h. */
28462$ac_includes_default
28463#include <sql.h>
28464_ACEOF
28465rm -f conftest.$ac_objext
28466if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 28467 (eval $ac_compile) 2>conftest.er1
a848cd7e 28468 ac_status=$?
ac1cb8d3
VS
28469 grep -v '^ *+' conftest.er1 >conftest.err
28470 rm -f conftest.er1
28471 cat conftest.err >&5
a848cd7e
SC
28472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28473 (exit $ac_status); } &&
9dd0f6c2 28474 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28476 (eval $ac_try) 2>&5
28477 ac_status=$?
28478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28479 (exit $ac_status); }; } &&
28480 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
28481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28482 (eval $ac_try) 2>&5
28483 ac_status=$?
28484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28485 (exit $ac_status); }; }; then
28486 ac_header_compiler=yes
28487else
28488 echo "$as_me: failed program was:" >&5
28489sed 's/^/| /' conftest.$ac_ext >&5
28490
28491ac_header_compiler=no
28492fi
ac1cb8d3 28493rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
28494echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28495echo "${ECHO_T}$ac_header_compiler" >&6
28496
28497# Is the header present?
28498echo "$as_me:$LINENO: checking sql.h presence" >&5
28499echo $ECHO_N "checking sql.h presence... $ECHO_C" >&6
28500cat >conftest.$ac_ext <<_ACEOF
28501/* confdefs.h. */
28502_ACEOF
28503cat confdefs.h >>conftest.$ac_ext
28504cat >>conftest.$ac_ext <<_ACEOF
28505/* end confdefs.h. */
28506#include <sql.h>
28507_ACEOF
28508if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
28509 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
28510 ac_status=$?
28511 grep -v '^ *+' conftest.er1 >conftest.err
28512 rm -f conftest.er1
28513 cat conftest.err >&5
28514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28515 (exit $ac_status); } >/dev/null; then
28516 if test -s conftest.err; then
28517 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 28518 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
28519 else
28520 ac_cpp_err=
28521 fi
28522else
28523 ac_cpp_err=yes
28524fi
28525if test -z "$ac_cpp_err"; then
28526 ac_header_preproc=yes
28527else
28528 echo "$as_me: failed program was:" >&5
28529sed 's/^/| /' conftest.$ac_ext >&5
28530
28531 ac_header_preproc=no
28532fi
28533rm -f conftest.err conftest.$ac_ext
28534echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28535echo "${ECHO_T}$ac_header_preproc" >&6
28536
28537# So? What about this header?
ac1cb8d3
VS
28538case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28539 yes:no: )
a848cd7e
SC
28540 { echo "$as_me:$LINENO: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&5
28541echo "$as_me: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
28542 { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the compiler's result" >&5
28543echo "$as_me: WARNING: sql.h: proceeding with the compiler's result" >&2;}
28544 ac_header_preproc=yes
a848cd7e 28545 ;;
ac1cb8d3 28546 no:yes:* )
a848cd7e
SC
28547 { echo "$as_me:$LINENO: WARNING: sql.h: present but cannot be compiled" >&5
28548echo "$as_me: WARNING: sql.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
28549 { echo "$as_me:$LINENO: WARNING: sql.h: check for missing prerequisite headers?" >&5
28550echo "$as_me: WARNING: sql.h: check for missing prerequisite headers?" >&2;}
28551 { echo "$as_me:$LINENO: WARNING: sql.h: see the Autoconf documentation" >&5
28552echo "$as_me: WARNING: sql.h: see the Autoconf documentation" >&2;}
28553 { echo "$as_me:$LINENO: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&5
28554echo "$as_me: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
28555 { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the preprocessor's result" >&5
28556echo "$as_me: WARNING: sql.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
28557 { echo "$as_me:$LINENO: WARNING: sql.h: in the future, the compiler will take precedence" >&5
28558echo "$as_me: WARNING: sql.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
28559 (
28560 cat <<\_ASBOX
ac1cb8d3
VS
28561## ----------------------------------------- ##
28562## Report this to wx-dev@lists.wxwidgets.org ##
28563## ----------------------------------------- ##
a848cd7e
SC
28564_ASBOX
28565 ) |
28566 sed "s/^/$as_me: WARNING: /" >&2
28567 ;;
28568esac
28569echo "$as_me:$LINENO: checking for sql.h" >&5
28570echo $ECHO_N "checking for sql.h... $ECHO_C" >&6
28571if test "${ac_cv_header_sql_h+set}" = set; then
28572 echo $ECHO_N "(cached) $ECHO_C" >&6
28573else
28574 ac_cv_header_sql_h=$ac_header_preproc
28575fi
28576echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
28577echo "${ECHO_T}$ac_cv_header_sql_h" >&6
28578
28579fi
28580if test $ac_cv_header_sql_h = yes; then
28581 found_sql_h=1
28582fi
28583
28584
28585 if test "x$found_sql_h" = "x1" ; then
28586 echo "$as_me:$LINENO: checking for SQLAllocEnv in -liodbc" >&5
28587echo $ECHO_N "checking for SQLAllocEnv in -liodbc... $ECHO_C" >&6
28588if test "${ac_cv_lib_iodbc_SQLAllocEnv+set}" = set; then
28589 echo $ECHO_N "(cached) $ECHO_C" >&6
28590else
28591 ac_check_lib_save_LIBS=$LIBS
28592LIBS="-liodbc $LIBS"
28593cat >conftest.$ac_ext <<_ACEOF
28594/* confdefs.h. */
28595_ACEOF
28596cat confdefs.h >>conftest.$ac_ext
28597cat >>conftest.$ac_ext <<_ACEOF
28598/* end confdefs.h. */
28599
28600/* Override any gcc2 internal prototype to avoid an error. */
28601#ifdef __cplusplus
28602extern "C"
28603#endif
28604/* We use char because int might match the return type of a gcc2
28605 builtin and then its argument prototype would still apply. */
28606char SQLAllocEnv ();
28607int
28608main ()
28609{
28610SQLAllocEnv ();
28611 ;
28612 return 0;
28613}
28614_ACEOF
28615rm -f conftest.$ac_objext conftest$ac_exeext
28616if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28617 (eval $ac_link) 2>conftest.er1
a848cd7e 28618 ac_status=$?
ac1cb8d3
VS
28619 grep -v '^ *+' conftest.er1 >conftest.err
28620 rm -f conftest.er1
28621 cat conftest.err >&5
a848cd7e
SC
28622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28623 (exit $ac_status); } &&
9dd0f6c2 28624 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28626 (eval $ac_try) 2>&5
28627 ac_status=$?
28628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28629 (exit $ac_status); }; } &&
28630 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28632 (eval $ac_try) 2>&5
28633 ac_status=$?
28634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28635 (exit $ac_status); }; }; then
28636 ac_cv_lib_iodbc_SQLAllocEnv=yes
28637else
28638 echo "$as_me: failed program was:" >&5
28639sed 's/^/| /' conftest.$ac_ext >&5
28640
28641ac_cv_lib_iodbc_SQLAllocEnv=no
28642fi
ac1cb8d3
VS
28643rm -f conftest.err conftest.$ac_objext \
28644 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28645LIBS=$ac_check_lib_save_LIBS
28646fi
28647echo "$as_me:$LINENO: result: $ac_cv_lib_iodbc_SQLAllocEnv" >&5
28648echo "${ECHO_T}$ac_cv_lib_iodbc_SQLAllocEnv" >&6
28649if test $ac_cv_lib_iodbc_SQLAllocEnv = yes; then
28650 ODBC_LINK=" -liodbc"
28651else
28652
28653 echo "$as_me:$LINENO: checking for SQLAllocEnv in -lunixodbc" >&5
28654echo $ECHO_N "checking for SQLAllocEnv in -lunixodbc... $ECHO_C" >&6
28655if test "${ac_cv_lib_unixodbc_SQLAllocEnv+set}" = set; then
28656 echo $ECHO_N "(cached) $ECHO_C" >&6
28657else
28658 ac_check_lib_save_LIBS=$LIBS
28659LIBS="-lunixodbc $LIBS"
28660cat >conftest.$ac_ext <<_ACEOF
28661/* confdefs.h. */
28662_ACEOF
28663cat confdefs.h >>conftest.$ac_ext
28664cat >>conftest.$ac_ext <<_ACEOF
28665/* end confdefs.h. */
28666
28667/* Override any gcc2 internal prototype to avoid an error. */
28668#ifdef __cplusplus
28669extern "C"
28670#endif
28671/* We use char because int might match the return type of a gcc2
28672 builtin and then its argument prototype would still apply. */
28673char SQLAllocEnv ();
28674int
28675main ()
28676{
28677SQLAllocEnv ();
28678 ;
28679 return 0;
28680}
28681_ACEOF
28682rm -f conftest.$ac_objext conftest$ac_exeext
28683if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28684 (eval $ac_link) 2>conftest.er1
a848cd7e 28685 ac_status=$?
ac1cb8d3
VS
28686 grep -v '^ *+' conftest.er1 >conftest.err
28687 rm -f conftest.er1
28688 cat conftest.err >&5
a848cd7e
SC
28689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28690 (exit $ac_status); } &&
9dd0f6c2 28691 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28693 (eval $ac_try) 2>&5
28694 ac_status=$?
28695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28696 (exit $ac_status); }; } &&
28697 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28699 (eval $ac_try) 2>&5
28700 ac_status=$?
28701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28702 (exit $ac_status); }; }; then
28703 ac_cv_lib_unixodbc_SQLAllocEnv=yes
28704else
28705 echo "$as_me: failed program was:" >&5
28706sed 's/^/| /' conftest.$ac_ext >&5
28707
28708ac_cv_lib_unixodbc_SQLAllocEnv=no
28709fi
ac1cb8d3
VS
28710rm -f conftest.err conftest.$ac_objext \
28711 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28712LIBS=$ac_check_lib_save_LIBS
28713fi
28714echo "$as_me:$LINENO: result: $ac_cv_lib_unixodbc_SQLAllocEnv" >&5
28715echo "${ECHO_T}$ac_cv_lib_unixodbc_SQLAllocEnv" >&6
28716if test $ac_cv_lib_unixodbc_SQLAllocEnv = yes; then
28717 ODBC_LINK=" -lunixodbc"
28718else
28719
28720 echo "$as_me:$LINENO: checking for SQLAllocEnv in -lodbc" >&5
28721echo $ECHO_N "checking for SQLAllocEnv in -lodbc... $ECHO_C" >&6
28722if test "${ac_cv_lib_odbc_SQLAllocEnv+set}" = set; then
28723 echo $ECHO_N "(cached) $ECHO_C" >&6
28724else
28725 ac_check_lib_save_LIBS=$LIBS
28726LIBS="-lodbc $LIBS"
28727cat >conftest.$ac_ext <<_ACEOF
28728/* confdefs.h. */
28729_ACEOF
28730cat confdefs.h >>conftest.$ac_ext
28731cat >>conftest.$ac_ext <<_ACEOF
28732/* end confdefs.h. */
28733
28734/* Override any gcc2 internal prototype to avoid an error. */
28735#ifdef __cplusplus
28736extern "C"
28737#endif
28738/* We use char because int might match the return type of a gcc2
28739 builtin and then its argument prototype would still apply. */
28740char SQLAllocEnv ();
28741int
28742main ()
28743{
28744SQLAllocEnv ();
28745 ;
28746 return 0;
28747}
28748_ACEOF
28749rm -f conftest.$ac_objext conftest$ac_exeext
28750if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28751 (eval $ac_link) 2>conftest.er1
a848cd7e 28752 ac_status=$?
ac1cb8d3
VS
28753 grep -v '^ *+' conftest.er1 >conftest.err
28754 rm -f conftest.er1
28755 cat conftest.err >&5
a848cd7e
SC
28756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28757 (exit $ac_status); } &&
9dd0f6c2 28758 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28760 (eval $ac_try) 2>&5
28761 ac_status=$?
28762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28763 (exit $ac_status); }; } &&
28764 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28766 (eval $ac_try) 2>&5
28767 ac_status=$?
28768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28769 (exit $ac_status); }; }; then
28770 ac_cv_lib_odbc_SQLAllocEnv=yes
28771else
28772 echo "$as_me: failed program was:" >&5
28773sed 's/^/| /' conftest.$ac_ext >&5
28774
28775ac_cv_lib_odbc_SQLAllocEnv=no
28776fi
ac1cb8d3
VS
28777rm -f conftest.err conftest.$ac_objext \
28778 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28779LIBS=$ac_check_lib_save_LIBS
28780fi
28781echo "$as_me:$LINENO: result: $ac_cv_lib_odbc_SQLAllocEnv" >&5
28782echo "${ECHO_T}$ac_cv_lib_odbc_SQLAllocEnv" >&6
28783if test $ac_cv_lib_odbc_SQLAllocEnv = yes; then
28784 ODBC_LINK=" -lodbc"
28785fi
28786
28787
28788fi
28789
28790
28791fi
28792
28793 fi
28794 if test "x$ODBC_LINK" = "x" ; then
28795 if test "$wxUSE_ODBC" = "sys" ; then
28796 { { echo "$as_me:$LINENO: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&5
28797echo "$as_me: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&2;}
28798 { (exit 1); exit 1; }; }
28799 else
28800 { echo "$as_me:$LINENO: WARNING: system ODBC library not found, will use built-in instead" >&5
28801echo "$as_me: WARNING: system ODBC library not found, will use built-in instead" >&2;}
28802 wxUSE_ODBC=builtin
28803 fi
28804 else
28805 wxUSE_ODBC=sys
28806 fi
28807 fi
a848cd7e 28808
2da0c077
RD
28809 if test "$wxUSE_ODBC" = "builtin" ; then
28810 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
28811#define wxUSE_BUILTIN_IODBC 1
28812_ACEOF
28813
a848cd7e
SC
28814 fi
28815fi
28816
2da0c077
RD
28817if test "$wxUSE_ODBC" != "no" ; then
28818 cat >>confdefs.h <<\_ACEOF
28819#define wxUSE_ODBC 1
28820_ACEOF
28821
28822 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db"
28823
28824 WXODBCFLAG="-D_IODBC_"
28825fi
a848cd7e 28826
01cb68df 28827
a848cd7e 28828if test "$wxUSE_DISPLAY" = "yes"; then
2a5d7a98 28829 if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_MAC" != 1 -a "$wxUSE_COCOA" != 1; then
a848cd7e
SC
28830 echo "$as_me:$LINENO: checking for Xinerama" >&5
28831echo $ECHO_N "checking for Xinerama... $ECHO_C" >&6
28832
28833ac_find_libraries=
28834for ac_dir in $SEARCH_LIB /usr/lib;
28835 do
28836 for ac_extension in a so sl dylib; do
28837 if test -f "$ac_dir/libXinerama.$ac_extension"; then
28838 ac_find_libraries=$ac_dir
28839 break 2
28840 fi
28841 done
28842 done
28843
28844 if test "$ac_find_libraries" != "" ; then
28845
28846 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
28847 result=$?
28848 if test $result = 0; then
28849 ac_path_to_link=""
28850 else
28851 ac_path_to_link=" -L$ac_find_libraries"
28852 fi
28853
28854 if test "$ac_path_to_link" != " -L/usr/lib" ; then
28855 LDFLAGS="$LDFLAGS $ac_path_to_link"
28856 fi
28857 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXinerama"
28858 echo "$as_me:$LINENO: result: yes" >&5
28859echo "${ECHO_T}yes" >&6
28860
28861 echo "$as_me:$LINENO: checking for Xxf86vm extension" >&5
28862echo $ECHO_N "checking for Xxf86vm extension... $ECHO_C" >&6
28863
28864ac_find_libraries=
28865for ac_dir in $SEARCH_LIB /usr/lib;
28866 do
28867 for ac_extension in a so sl dylib; do
28868 if test -f "$ac_dir/libXxf86vm.$ac_extension"; then
28869 ac_find_libraries=$ac_dir
28870 break 2
28871 fi
28872 done
28873 done
28874
28875 if test "$ac_find_libraries" != "" ; then
28876 echo "$as_me:$LINENO: result: yes" >&5
28877echo "${ECHO_T}yes" >&6
28878
28879for ac_header in X11/extensions/xf86vmode.h
28880do
28881as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28882echo "$as_me:$LINENO: checking for $ac_header" >&5
28883echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28884if eval "test \"\${$as_ac_Header+set}\" = set"; then
28885 echo $ECHO_N "(cached) $ECHO_C" >&6
28886else
28887 cat >conftest.$ac_ext <<_ACEOF
28888/* confdefs.h. */
28889_ACEOF
28890cat confdefs.h >>conftest.$ac_ext
28891cat >>conftest.$ac_ext <<_ACEOF
28892/* end confdefs.h. */
28893
28894 #if HAVE_X11_XLIB_H
28895 #include <X11/Xlib.h>
28896 #endif
28897
28898
28899#include <$ac_header>
28900_ACEOF
28901rm -f conftest.$ac_objext
28902if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 28903 (eval $ac_compile) 2>conftest.er1
a848cd7e 28904 ac_status=$?
ac1cb8d3
VS
28905 grep -v '^ *+' conftest.er1 >conftest.err
28906 rm -f conftest.er1
28907 cat conftest.err >&5
a848cd7e
SC
28908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28909 (exit $ac_status); } &&
9dd0f6c2 28910 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28912 (eval $ac_try) 2>&5
28913 ac_status=$?
28914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28915 (exit $ac_status); }; } &&
28916 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
28917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28918 (eval $ac_try) 2>&5
28919 ac_status=$?
28920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28921 (exit $ac_status); }; }; then
28922 eval "$as_ac_Header=yes"
28923else
28924 echo "$as_me: failed program was:" >&5
28925sed 's/^/| /' conftest.$ac_ext >&5
28926
28927eval "$as_ac_Header=no"
28928fi
ac1cb8d3 28929rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
28930fi
28931echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28932echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28933if test `eval echo '${'$as_ac_Header'}'` = yes; then
28934 cat >>confdefs.h <<_ACEOF
28935#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28936_ACEOF
28937
28938 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXxf86vm"
28939
28940fi
28941
28942done
28943
28944 else
28945 echo "$as_me:$LINENO: result: no" >&5
28946echo "${ECHO_T}no" >&6
28947 fi
28948
28949 else
28950 echo "$as_me:$LINENO: result: no" >&5
28951echo "${ECHO_T}no" >&6
dcc1b6ad
VS
28952 { echo "$as_me:$LINENO: WARNING: Xinerama not found; disabling wxDisplay" >&5
28953echo "$as_me: WARNING: Xinerama not found; disabling wxDisplay" >&2;}
a848cd7e
SC
28954 wxUSE_DISPLAY="no"
28955 fi
01cb68df
RG
28956 elif test "$wxUSE_MSW" = 1; then
28957
28958
28959for ac_header in multimon.h ddraw.h
28960do
28961as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5294a27e 28962echo "$as_me:$LINENO: checking for $ac_header" >&5
01cb68df
RG
28963echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28964if eval "test \"\${$as_ac_Header+set}\" = set"; then
28965 echo $ECHO_N "(cached) $ECHO_C" >&6
01cb68df 28966else
5294a27e 28967 cat >conftest.$ac_ext <<_ACEOF
01cb68df
RG
28968/* confdefs.h. */
28969_ACEOF
28970cat confdefs.h >>conftest.$ac_ext
28971cat >>conftest.$ac_ext <<_ACEOF
28972/* end confdefs.h. */
5294a27e
VZ
28973#include <windows.h>
28974
01cb68df
RG
28975#include <$ac_header>
28976_ACEOF
28977rm -f conftest.$ac_objext
28978if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 28979 (eval $ac_compile) 2>conftest.er1
01cb68df 28980 ac_status=$?
ac1cb8d3
VS
28981 grep -v '^ *+' conftest.er1 >conftest.err
28982 rm -f conftest.er1
28983 cat conftest.err >&5
01cb68df
RG
28984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28985 (exit $ac_status); } &&
9dd0f6c2 28986 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
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'
01cb68df
RG
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
5294a27e 28998 eval "$as_ac_Header=yes"
01cb68df
RG
28999else
29000 echo "$as_me: failed program was:" >&5
29001sed 's/^/| /' conftest.$ac_ext >&5
29002
5294a27e 29003eval "$as_ac_Header=no"
01cb68df 29004fi
ac1cb8d3 29005rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
01cb68df
RG
29006fi
29007echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29008echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
01cb68df
RG
29009if test `eval echo '${'$as_ac_Header'}'` = yes; then
29010 cat >>confdefs.h <<_ACEOF
29011#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29012_ACEOF
29013
29014else
29015
5294a27e
VZ
29016 wxUSE_DISPLAY="no"
29017 { echo "$as_me:$LINENO: WARNING: ddraw.h or multimon.h not found; disabling wxDisplay" >&5
dcc1b6ad 29018echo "$as_me: WARNING: ddraw.h or multimon.h not found; disabling wxDisplay" >&2;}
01cb68df
RG
29019
29020fi
29021
29022done
29023
a848cd7e
SC
29024 fi
29025fi
29026
29027
29028USE_OPENGL=0
29029if test "$wxUSE_OPENGL" = "yes"; then
29030 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = "1"; then
29031 OPENGL_LIBS="-framework OpenGL -framework AGL"
29032 elif test "$wxUSE_MSW" = 1; then
29033 OPENGL_LIBS="-lopengl32 -lglu32"
29034 else
29035
29036
29037ac_find_includes=
29038for ac_dir in $SEARCH_INCLUDE /usr/include;
29039 do
29040 if test -f "$ac_dir/GL/gl.h"; then
29041 ac_find_includes=$ac_dir
29042 break
29043 fi
29044 done
29045
29046 if test "$ac_find_includes" != "" ; then
29047 echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
29048echo "${ECHO_T}found in $ac_find_includes" >&6
29049
29050 if test "x$ac_find_includes" = "x/usr/include"; then
29051 ac_path_to_include=""
29052 else
29053 echo "$CPPFLAGS" | grep "\-I$ac_find_includes" > /dev/null
29054 result=$?
29055 if test $result = 0; then
29056 ac_path_to_include=""
29057 else
29058 ac_path_to_include=" -I$ac_find_includes"
29059 fi
29060 fi
29061
29062 CPPFLAGS="$CPPFLAGS$ac_path_to_include"
29063 fi
29064
29065 if test "${ac_cv_header_GL_gl_h+set}" = set; then
29066 echo "$as_me:$LINENO: checking for GL/gl.h" >&5
29067echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6
29068if test "${ac_cv_header_GL_gl_h+set}" = set; then
29069 echo $ECHO_N "(cached) $ECHO_C" >&6
29070fi
29071echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
29072echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6
29073else
29074 # Is the header compilable?
29075echo "$as_me:$LINENO: checking GL/gl.h usability" >&5
29076echo $ECHO_N "checking GL/gl.h usability... $ECHO_C" >&6
29077cat >conftest.$ac_ext <<_ACEOF
29078/* confdefs.h. */
29079_ACEOF
29080cat confdefs.h >>conftest.$ac_ext
29081cat >>conftest.$ac_ext <<_ACEOF
29082/* end confdefs.h. */
29083$ac_includes_default
29084#include <GL/gl.h>
29085_ACEOF
29086rm -f conftest.$ac_objext
29087if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 29088 (eval $ac_compile) 2>conftest.er1
a848cd7e 29089 ac_status=$?
ac1cb8d3
VS
29090 grep -v '^ *+' conftest.er1 >conftest.err
29091 rm -f conftest.er1
29092 cat conftest.err >&5
a848cd7e
SC
29093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29094 (exit $ac_status); } &&
9dd0f6c2 29095 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29097 (eval $ac_try) 2>&5
29098 ac_status=$?
29099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29100 (exit $ac_status); }; } &&
29101 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
29102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29103 (eval $ac_try) 2>&5
29104 ac_status=$?
29105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29106 (exit $ac_status); }; }; then
29107 ac_header_compiler=yes
29108else
29109 echo "$as_me: failed program was:" >&5
29110sed 's/^/| /' conftest.$ac_ext >&5
29111
29112ac_header_compiler=no
29113fi
ac1cb8d3 29114rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
29115echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29116echo "${ECHO_T}$ac_header_compiler" >&6
29117
29118# Is the header present?
29119echo "$as_me:$LINENO: checking GL/gl.h presence" >&5
29120echo $ECHO_N "checking GL/gl.h presence... $ECHO_C" >&6
29121cat >conftest.$ac_ext <<_ACEOF
29122/* confdefs.h. */
29123_ACEOF
29124cat confdefs.h >>conftest.$ac_ext
29125cat >>conftest.$ac_ext <<_ACEOF
29126/* end confdefs.h. */
29127#include <GL/gl.h>
29128_ACEOF
29129if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
29130 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
29131 ac_status=$?
29132 grep -v '^ *+' conftest.er1 >conftest.err
29133 rm -f conftest.er1
29134 cat conftest.err >&5
29135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29136 (exit $ac_status); } >/dev/null; then
29137 if test -s conftest.err; then
29138 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 29139 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
29140 else
29141 ac_cpp_err=
29142 fi
29143else
29144 ac_cpp_err=yes
29145fi
29146if test -z "$ac_cpp_err"; then
29147 ac_header_preproc=yes
29148else
29149 echo "$as_me: failed program was:" >&5
29150sed 's/^/| /' conftest.$ac_ext >&5
29151
29152 ac_header_preproc=no
29153fi
29154rm -f conftest.err conftest.$ac_ext
29155echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29156echo "${ECHO_T}$ac_header_preproc" >&6
29157
29158# So? What about this header?
ac1cb8d3
VS
29159case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29160 yes:no: )
a848cd7e
SC
29161 { echo "$as_me:$LINENO: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&5
29162echo "$as_me: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
29163 { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the compiler's result" >&5
29164echo "$as_me: WARNING: GL/gl.h: proceeding with the compiler's result" >&2;}
29165 ac_header_preproc=yes
a848cd7e 29166 ;;
ac1cb8d3 29167 no:yes:* )
a848cd7e
SC
29168 { echo "$as_me:$LINENO: WARNING: GL/gl.h: present but cannot be compiled" >&5
29169echo "$as_me: WARNING: GL/gl.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
29170 { echo "$as_me:$LINENO: WARNING: GL/gl.h: check for missing prerequisite headers?" >&5
29171echo "$as_me: WARNING: GL/gl.h: check for missing prerequisite headers?" >&2;}
29172 { echo "$as_me:$LINENO: WARNING: GL/gl.h: see the Autoconf documentation" >&5
29173echo "$as_me: WARNING: GL/gl.h: see the Autoconf documentation" >&2;}
29174 { echo "$as_me:$LINENO: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&5
29175echo "$as_me: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
29176 { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&5
29177echo "$as_me: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
29178 { echo "$as_me:$LINENO: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&5
29179echo "$as_me: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
29180 (
29181 cat <<\_ASBOX
ac1cb8d3
VS
29182## ----------------------------------------- ##
29183## Report this to wx-dev@lists.wxwidgets.org ##
29184## ----------------------------------------- ##
a848cd7e
SC
29185_ASBOX
29186 ) |
29187 sed "s/^/$as_me: WARNING: /" >&2
29188 ;;
29189esac
29190echo "$as_me:$LINENO: checking for GL/gl.h" >&5
29191echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6
29192if test "${ac_cv_header_GL_gl_h+set}" = set; then
29193 echo $ECHO_N "(cached) $ECHO_C" >&6
29194else
29195 ac_cv_header_GL_gl_h=$ac_header_preproc
29196fi
29197echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
29198echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6
29199
29200fi
29201if test $ac_cv_header_GL_gl_h = yes; then
29202
29203 found_gl=0
29204
29205 echo "$as_me:$LINENO: checking for -lGL" >&5
29206echo $ECHO_N "checking for -lGL... $ECHO_C" >&6
29207
29208ac_find_libraries=
29209for ac_dir in $SEARCH_LIB /usr/lib;
29210 do
29211 for ac_extension in a so sl dylib; do
29212 if test -f "$ac_dir/libGL.$ac_extension"; then
29213 ac_find_libraries=$ac_dir
29214 break 2
29215 fi
29216 done
29217 done
29218
29219 if test "$ac_find_libraries" != "" ; then
69120ee4
VZ
29220 echo "$as_me:$LINENO: result: yes" >&5
29221echo "${ECHO_T}yes" >&6
29222
a848cd7e
SC
29223
29224 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
29225 result=$?
29226 if test $result = 0; then
29227 ac_path_to_link=""
29228 else
29229 ac_path_to_link=" -L$ac_find_libraries"
29230 fi
29231
29232 if test "$ac_path_to_link" != " -L/usr/lib" ; then
29233 LDFLAGS_GL="$ac_path_to_link"
29234 fi
29235
69120ee4
VZ
29236 echo "$as_me:$LINENO: checking for -lGLU" >&5
29237echo $ECHO_N "checking for -lGLU... $ECHO_C" >&6
a848cd7e
SC
29238
29239ac_find_libraries=
29240for ac_dir in $SEARCH_LIB /usr/lib;
29241 do
29242 for ac_extension in a so sl dylib; do
29243 if test -f "$ac_dir/libGLU.$ac_extension"; then
29244 ac_find_libraries=$ac_dir
29245 break 2
29246 fi
29247 done
29248 done
29249
29250 if test "$ac_find_libraries" != "" ; then
29251
29252 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
29253 result=$?
29254 if test $result = 0; then
29255 ac_path_to_link=""
29256 else
29257 ac_path_to_link=" -L$ac_find_libraries"
29258 fi
29259
29260 if test "$ac_path_to_link" != " -L/usr/lib" -a \
29261 "$ac_path_to_link" != "$LDFLAGS_GL"; then
29262 LDFLAGS_GL="$LDFLAGS_GL$ac_path_to_link"
29263 fi
29264
29265 found_gl=1
29266 OPENGL_LIBS="-lGL -lGLU"
29267 echo "$as_me:$LINENO: result: yes" >&5
29268echo "${ECHO_T}yes" >&6
69120ee4
VZ
29269 else
29270 echo "$as_me:$LINENO: result: no" >&5
29271echo "${ECHO_T}no" >&6
a848cd7e 29272 fi
69120ee4
VZ
29273 else
29274 echo "$as_me:$LINENO: result: no" >&5
29275echo "${ECHO_T}no" >&6
a848cd7e
SC
29276 fi
29277
29278 if test "$found_gl" != 1; then
a848cd7e
SC
29279 echo "$as_me:$LINENO: checking for -lMesaGL" >&5
29280echo $ECHO_N "checking for -lMesaGL... $ECHO_C" >&6
29281
29282ac_find_libraries=
29283for ac_dir in $SEARCH_LIB /usr/lib;
29284 do
29285 for ac_extension in a so sl dylib; do
29286 if test -f "$ac_dir/libMesaGL.$ac_extension"; then
29287 ac_find_libraries=$ac_dir
29288 break 2
29289 fi
29290 done
29291 done
29292
29293 if test "$ac_find_libraries" != "" ; then
29294
29295 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
29296 result=$?
29297 if test $result = 0; then
29298 ac_path_to_link=""
29299 else
29300 ac_path_to_link=" -L$ac_find_libraries"
29301 fi
29302
29303 LDFLAGS_GL="$LDFLAGS$ac_path_to_link"
29304 OPENGL_LIBS="-lMesaGL -lMesaGLU"
29305 echo "$as_me:$LINENO: result: yes" >&5
29306echo "${ECHO_T}yes" >&6
29307 else
29308 echo "$as_me:$LINENO: result: no" >&5
29309echo "${ECHO_T}no" >&6
29310 fi
29311 fi
29312
29313fi
29314
29315
29316
29317 if test "x$OPENGL_LIBS" = "x"; then
29318 { { echo "$as_me:$LINENO: error: OpenGL libraries not available" >&5
29319echo "$as_me: error: OpenGL libraries not available" >&2;}
29320 { (exit 1); exit 1; }; }
29321 fi
29322 fi
29323
29324 if test "$wxUSE_OPENGL" = "yes"; then
29325 USE_OPENGL=1
29326 cat >>confdefs.h <<\_ACEOF
29327#define wxUSE_OPENGL 1
29328_ACEOF
29329
29330 cat >>confdefs.h <<\_ACEOF
29331#define wxUSE_GLCANVAS 1
29332_ACEOF
29333
29334 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl opengl/cube opengl/penguin opengl/isosurf"
29335 fi
29336fi
29337
a848cd7e
SC
29338
29339if test -n "$TOOLKIT" ; then
29340 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WX${TOOLKIT}__"
29341fi
29342
a848cd7e
SC
29343
29344
29345if test "$wxUSE_SHARED" = "yes"; then
29346 case "${host}" in
29347 *-pc-msdosdjgpp )
29348 wxUSE_SHARED=no
29349 { echo "$as_me:$LINENO: WARNING: Host system doesn't support shared libraries, disabling" >&5
29350echo "$as_me: WARNING: Host system doesn't support shared libraries, disabling" >&2;}
29351 ;;
29352 esac
29353fi
29354
a848cd7e 29355if test "$wxUSE_SHARED" = "yes"; then
a848cd7e
SC
29356
29357
29358 found_versioning=no
29359
29360
29361 if test $found_versioning = no ; then
29362 echo "$as_me:$LINENO: checking if the linker accepts --version-script" >&5
29363echo $ECHO_N "checking if the linker accepts --version-script... $ECHO_C" >&6
29364if test "${wx_cv_version_script+set}" = set; then
29365 echo $ECHO_N "(cached) $ECHO_C" >&6
29366else
29367
29368 echo "VER_1 { *; };" >conftest.sym
29369 echo "int main() { return 0; }" >conftest.cpp
29370
29371 if { ac_try='
29372 $CXX -o conftest.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
29373 -Wl,--version-script,conftest.sym >/dev/null 2>conftest.stderr'
29374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29375 (eval $ac_try) 2>&5
29376 ac_status=$?
29377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29378 (exit $ac_status); }; } ; then
29379 if test -s conftest.stderr ; then
29380 wx_cv_version_script=no
29381 else
29382 wx_cv_version_script=yes
29383 fi
29384 else
29385 wx_cv_version_script=no
29386 fi
29387 rm -f conftest.output conftest.stderr conftest.sym conftest.cpp
29388
29389fi
29390echo "$as_me:$LINENO: result: $wx_cv_version_script" >&5
29391echo "${ECHO_T}$wx_cv_version_script" >&6
29392 if test $wx_cv_version_script = yes ; then
29393 LDFLAGS_VERSIONING="-Wl,--version-script,\$(top_builddir)version-script"
29394 fi
29395 fi
29396
29397
29398 case "${host}" in
29399 *-*-linux* | *-*-gnu* )
29400 SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib"
ffa0583f 29401 WXCONFIG_RPATH="-Wl,-rpath,\$libdir"
a848cd7e
SC
29402 ;;
29403
29404 *-*-solaris2* )
29405 if test "$GCC" = yes ; then
29406 CPPFLAGS="$CPPFLAGS -isystem /usr/openwin/include"
29407
29408 saveLdflags="$LDFLAGS"
29409 LDFLAGS="$saveLdflags -Wl,-rpath,/"
29410 echo "$as_me:$LINENO: checking if the linker accepts -rpath" >&5
29411echo $ECHO_N "checking if the linker accepts -rpath... $ECHO_C" >&6
29412 cat >conftest.$ac_ext <<_ACEOF
29413/* confdefs.h. */
29414_ACEOF
29415cat confdefs.h >>conftest.$ac_ext
29416cat >>conftest.$ac_ext <<_ACEOF
29417/* end confdefs.h. */
29418
29419int
29420main ()
29421{
29422
29423 ;
29424 return 0;
29425}
29426_ACEOF
29427rm -f conftest.$ac_objext conftest$ac_exeext
29428if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29429 (eval $ac_link) 2>conftest.er1
a848cd7e 29430 ac_status=$?
ac1cb8d3
VS
29431 grep -v '^ *+' conftest.er1 >conftest.err
29432 rm -f conftest.er1
29433 cat conftest.err >&5
a848cd7e
SC
29434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29435 (exit $ac_status); } &&
9dd0f6c2 29436 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29438 (eval $ac_try) 2>&5
29439 ac_status=$?
29440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29441 (exit $ac_status); }; } &&
29442 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29444 (eval $ac_try) 2>&5
29445 ac_status=$?
29446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29447 (exit $ac_status); }; }; then
29448
29449 echo "$as_me:$LINENO: result: yes" >&5
29450echo "${ECHO_T}yes" >&6
29451 SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib"
ffa0583f 29452 WXCONFIG_RPATH="-Wl,-rpath,\$libdir"
a848cd7e
SC
29453
29454else
29455 echo "$as_me: failed program was:" >&5
29456sed 's/^/| /' conftest.$ac_ext >&5
29457
29458
29459 echo "$as_me:$LINENO: result: no" >&5
29460echo "${ECHO_T}no" >&6
29461 echo "$as_me:$LINENO: checking if the linker accepts -R" >&5
29462echo $ECHO_N "checking if the linker accepts -R... $ECHO_C" >&6
29463 LDFLAGS="$saveLdflags -Wl,-R,/"
29464 cat >conftest.$ac_ext <<_ACEOF
29465/* confdefs.h. */
29466_ACEOF
29467cat confdefs.h >>conftest.$ac_ext
29468cat >>conftest.$ac_ext <<_ACEOF
29469/* end confdefs.h. */
29470
29471int
29472main ()
29473{
29474
29475 ;
29476 return 0;
29477}
29478_ACEOF
29479rm -f conftest.$ac_objext conftest$ac_exeext
29480if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29481 (eval $ac_link) 2>conftest.er1
a848cd7e 29482 ac_status=$?
ac1cb8d3
VS
29483 grep -v '^ *+' conftest.er1 >conftest.err
29484 rm -f conftest.er1
29485 cat conftest.err >&5
a848cd7e
SC
29486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29487 (exit $ac_status); } &&
9dd0f6c2 29488 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29490 (eval $ac_try) 2>&5
29491 ac_status=$?
29492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29493 (exit $ac_status); }; } &&
29494 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29496 (eval $ac_try) 2>&5
29497 ac_status=$?
29498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29499 (exit $ac_status); }; }; then
29500
ffa0583f 29501 echo "$as_me:$LINENO: result: yes" >&5
a848cd7e 29502echo "${ECHO_T}yes" >&6
ffa0583f
RL
29503 SAMPLES_RPATH_FLAG="-Wl,-R,\$(top_builddir)lib"
29504 WXCONFIG_RPATH="-Wl,-R,\$libdir"
29505
a848cd7e
SC
29506else
29507 echo "$as_me: failed program was:" >&5
29508sed 's/^/| /' conftest.$ac_ext >&5
29509
29510
29511 echo "$as_me:$LINENO: result: no" >&5
29512echo "${ECHO_T}no" >&6
29513
29514fi
ac1cb8d3
VS
29515rm -f conftest.err conftest.$ac_objext \
29516 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29517
29518fi
ac1cb8d3
VS
29519rm -f conftest.err conftest.$ac_objext \
29520 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29521 LDFLAGS="$saveLdflags"
29522 else
a848cd7e 29523 SAMPLES_RPATH_FLAG="-R\$(top_builddir)lib"
ffa0583f 29524 WXCONFIG_RPATH="-R\$libdir"
a848cd7e
SC
29525 fi
29526 ;;
29527
29528 powerpc-*-darwin* )
29529 SAMPLES_RPATH_POSTLINK="\$(top_builddir)change-install-names \$(LIBDIRNAME) \$(prefix) \$@"
29530 cat <<EOF >change-install-names
29531#!/bin/sh
29532libnames=\`cd \${1} ; ls -1 | grep '\.[0-9][0-9]*\.dylib\$'\`
29533inst_cmd="install_name_tool "
29534for i in \${libnames} ; do
29535 inst_cmd="\${inst_cmd} -change \${2}/lib/\${i} \${1}/\${i}"
29536done
29537\${inst_cmd} \${3}
29538EOF
29539 chmod +x change-install-names
29540 ;;
29541
29542 *-*-cygwin* | *-*-mingw32* )
29543 TOOLCHAIN_DLL_DEFS="${TOOLCHAIN_DLL_DEFS} -DWXUSINGDLL=1"
29544 ;;
29545
81f90336
MW
29546 *-*-hpux* )
29547 SAMPLES_RPATH_FLAG="-Wl,+b,\$(top_builddir)lib"
29548 WXCONFIG_RPATH="-Wl,+b,\$libdir"
29549 ;;
29550
a848cd7e 29551 esac
ceec2216 29552
ffa0583f
RL
29553 if test $wxUSE_RPATH = "no"; then
29554 SAMPLES_RPATH_FLAG=''
29555 SAMPLES_RPATH_POSTLINK=''
29556 WXCONFIG_RPATH=''
29557 fi
29558
29559 SHARED=1
29560
29561else
29562
ceec2216
RL
29563 config_linkage_component="-static"
29564 SHARED=0
ffa0583f 29565
ceec2216 29566fi
a848cd7e 29567
a848cd7e 29568
ceec2216
RL
29569UNICODE=0
29570lib_unicode_suffix=
29571WX_CHARTYPE="ansi"
29572if test "$wxUSE_UNICODE" = "yes"; then
29573 lib_unicode_suffix=u
29574 WX_CHARTYPE="unicode"
29575 UNICODE=1
a848cd7e
SC
29576fi
29577
ceec2216
RL
29578lib_debug_suffix=
29579WX_DEBUGTYPE="release"
29580DEBUG_FLAG=0
29581if test "$wxUSE_DEBUG_FLAG" = "yes"; then
29582 lib_debug_suffix=d
29583 WX_DEBUGTYPE="debug"
29584 DEBUG_FLAG=1
29585fi
a848cd7e 29586
ceec2216
RL
29587WX_FLAVOUR=${WX_FLAVOUR:+-$WX_FLAVOUR}
29588WX_LIB_FLAVOUR=`echo $WX_FLAVOUR | tr '-' '_'`
a848cd7e 29589
ceec2216
RL
29590DEBUG_INFO=0
29591if test "$wxUSE_DEBUG_INFO" = "yes"; then
29592 DEBUG_INFO=1
29593fi
a848cd7e 29594
ceec2216 29595WX_VERSION_TAG=`echo WX${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}_${WX_RELEASE} | tr "[a-z]" "[A-Z]"`
a848cd7e 29596
ceec2216 29597TOOLCHAIN_NAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}-${WX_RELEASE}"
a848cd7e 29598
ceec2216 29599TOOLCHAIN_FULLNAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}-${WX_CHARTYPE}-${WX_DEBUGTYPE}${config_linkage_component}-${WX_RELEASE}${WX_FLAVOUR}"
a848cd7e 29600
ceec2216
RL
29601if test "$cross_compiling" = "yes"; then
29602 HOST_SUFFIX="-$host_alias"
29603 TOOLCHAIN_NAME="$TOOLCHAIN_NAME$HOST_SUFFIX"
29604 TOOLCHAIN_FULLNAME="${host_alias}-$TOOLCHAIN_FULLNAME"
a848cd7e
SC
29605fi
29606
dd21ced8 29607WX_LIBRARY_BASENAME_NOGUI="wx_base${WXBASEPORT}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}"
ceec2216
RL
29608WX_LIBRARY_BASENAME_GUI="wx_${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}"
29609
29610
29611
1d1af5ea
DE
29612if test "$wxUSE_COCOA" = 1; then
29613
29614
29615 ac_ext=c
29616ac_cpp='$CPP $CPPFLAGS'
29617ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29618ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29619ac_compiler_gnu=$ac_cv_c_compiler_gnu
29620
29621ac_ext=m
29622
29623 echo "$as_me:$LINENO: checking if AppKit/NSEvent.h conflicts with CoreFoundation" >&5
29624echo $ECHO_N "checking if AppKit/NSEvent.h conflicts with CoreFoundation... $ECHO_C" >&6
29625 cat >conftest.$ac_ext <<_ACEOF
29626/* confdefs.h. */
29627_ACEOF
29628cat confdefs.h >>conftest.$ac_ext
29629cat >>conftest.$ac_ext <<_ACEOF
29630/* end confdefs.h. */
29631#include <AppKit/NSEvent.h>
29632#include <CoreFoundation/CoreFoundation.h>
29633
29634int
29635main ()
29636{
29637
29638 ;
29639 return 0;
29640}
29641_ACEOF
29642rm -f conftest.$ac_objext
29643if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29644 (eval $ac_compile) 2>conftest.er1
29645 ac_status=$?
29646 grep -v '^ *+' conftest.er1 >conftest.err
29647 rm -f conftest.er1
29648 cat conftest.err >&5
29649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29650 (exit $ac_status); } &&
9dd0f6c2 29651 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
1d1af5ea
DE
29652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29653 (eval $ac_try) 2>&5
29654 ac_status=$?
29655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29656 (exit $ac_status); }; } &&
29657 { ac_try='test -s conftest.$ac_objext'
29658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29659 (eval $ac_try) 2>&5
29660 ac_status=$?
29661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29662 (exit $ac_status); }; }; then
29663 echo "$as_me:$LINENO: result: no" >&5
29664echo "${ECHO_T}no" >&6
29665else
29666 echo "$as_me: failed program was:" >&5
29667sed 's/^/| /' conftest.$ac_ext >&5
29668
29669echo "$as_me:$LINENO: result: yes" >&5
29670echo "${ECHO_T}yes" >&6
29671 echo "$as_me:$LINENO: checking if defining __Point__ will fix it" >&5
29672echo $ECHO_N "checking if defining __Point__ will fix it... $ECHO_C" >&6
29673 cat >conftest.$ac_ext <<_ACEOF
29674/* confdefs.h. */
29675_ACEOF
29676cat confdefs.h >>conftest.$ac_ext
29677cat >>conftest.$ac_ext <<_ACEOF
29678/* end confdefs.h. */
29679#define __Point__ 1
29680#include <AppKit/NSEvent.h>
29681#include <CoreFoundation/CoreFoundation.h>
29682
29683int
29684main ()
29685{
29686
29687 ;
29688 return 0;
29689}
29690_ACEOF
29691rm -f conftest.$ac_objext
29692if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29693 (eval $ac_compile) 2>conftest.er1
29694 ac_status=$?
29695 grep -v '^ *+' conftest.er1 >conftest.err
29696 rm -f conftest.er1
29697 cat conftest.err >&5
29698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29699 (exit $ac_status); } &&
9dd0f6c2 29700 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
1d1af5ea
DE
29701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29702 (eval $ac_try) 2>&5
29703 ac_status=$?
29704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29705 (exit $ac_status); }; } &&
29706 { ac_try='test -s conftest.$ac_objext'
29707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29708 (eval $ac_try) 2>&5
29709 ac_status=$?
29710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29711 (exit $ac_status); }; }; then
29712 echo "$as_me:$LINENO: result: yes" >&5
29713echo "${ECHO_T}yes" >&6
29714 cat >>confdefs.h <<\_ACEOF
29715#define __Point__ 1
29716_ACEOF
29717
29718
29719else
29720 echo "$as_me: failed program was:" >&5
29721sed 's/^/| /' conftest.$ac_ext >&5
29722
29723{ { echo "$as_me:$LINENO: error: no
29724See \`config.log' for more details." >&5
29725echo "$as_me: error: no
29726See \`config.log' for more details." >&2;}
29727 { (exit 1); exit 1; }; }
29728
29729fi
29730rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29731
29732fi
29733rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29734 ac_ext=c
29735ac_cpp='$CPP $CPPFLAGS'
29736ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29737ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29738ac_compiler_gnu=$ac_cv_c_compiler_gnu
29739
29740fi
29741
a848cd7e 29742if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1; then
abb9aae7
VZ
29743 WX_RESOURCES_MACOSX_ASCII="libwx_${TOOLCHAIN_NAME}.${wx_release_number}.r"
29744 WX_RESOURCES_MACOSX_DATA="libwx_${TOOLCHAIN_NAME}.${wx_release_number}.rsrc"
ceec2216 29745
a848cd7e 29746 LIBWXMACRES="\$(top_builddir)lib/${WX_RESOURCES_MACOSX_ASCII}"
a848cd7e
SC
29747
29748 # Extract the first word of "Rez", so it can be a program name with args.
29749set dummy Rez; ac_word=$2
29750echo "$as_me:$LINENO: checking for $ac_word" >&5
29751echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
29752if test "${ac_cv_prog_RESCOMP+set}" = set; then
29753 echo $ECHO_N "(cached) $ECHO_C" >&6
29754else
29755 if test -n "$RESCOMP"; then
29756 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
29757else
29758as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29759for as_dir in $PATH
29760do
29761 IFS=$as_save_IFS
29762 test -z "$as_dir" && as_dir=.
29763 for ac_exec_ext in '' $ac_executable_extensions; do
29764 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
29765 ac_cv_prog_RESCOMP="Rez"
29766 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29767 break 2
29768 fi
29769done
29770done
29771
29772 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez"
29773fi
29774fi
29775RESCOMP=$ac_cv_prog_RESCOMP
29776if test -n "$RESCOMP"; then
29777 echo "$as_me:$LINENO: result: $RESCOMP" >&5
29778echo "${ECHO_T}$RESCOMP" >&6
29779else
29780 echo "$as_me:$LINENO: result: no" >&5
29781echo "${ECHO_T}no" >&6
29782fi
29783
29784 # Extract the first word of "DeRez", so it can be a program name with args.
29785set dummy DeRez; ac_word=$2
29786echo "$as_me:$LINENO: checking for $ac_word" >&5
29787echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
29788if test "${ac_cv_prog_DEREZ+set}" = set; then
29789 echo $ECHO_N "(cached) $ECHO_C" >&6
29790else
29791 if test -n "$DEREZ"; then
29792 ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test.
29793else
29794as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29795for as_dir in $PATH
29796do
29797 IFS=$as_save_IFS
29798 test -z "$as_dir" && as_dir=.
29799 for ac_exec_ext in '' $ac_executable_extensions; do
29800 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
29801 ac_cv_prog_DEREZ="DeRez"
29802 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29803 break 2
29804 fi
29805done
29806done
29807
29808 test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez"
29809fi
29810fi
29811DEREZ=$ac_cv_prog_DEREZ
29812if test -n "$DEREZ"; then
29813 echo "$as_me:$LINENO: result: $DEREZ" >&5
29814echo "${ECHO_T}$DEREZ" >&6
29815else
29816 echo "$as_me:$LINENO: result: no" >&5
29817echo "${ECHO_T}no" >&6
29818fi
29819
29820 # Extract the first word of "SetFile", so it can be a program name with args.
29821set dummy SetFile; ac_word=$2
29822echo "$as_me:$LINENO: checking for $ac_word" >&5
29823echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
29824if test "${ac_cv_prog_SETFILE+set}" = set; then
29825 echo $ECHO_N "(cached) $ECHO_C" >&6
29826else
29827 if test -n "$SETFILE"; then
29828 ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
29829else
29830as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29831for as_dir in $PATH
29832do
29833 IFS=$as_save_IFS
29834 test -z "$as_dir" && as_dir=.
29835 for ac_exec_ext in '' $ac_executable_extensions; do
29836 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
29837 ac_cv_prog_SETFILE="SetFile"
29838 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29839 break 2
29840 fi
29841done
29842done
29843
29844 test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
29845fi
29846fi
29847SETFILE=$ac_cv_prog_SETFILE
29848if test -n "$SETFILE"; then
29849 echo "$as_me:$LINENO: result: $SETFILE" >&5
29850echo "${ECHO_T}$SETFILE" >&6
29851else
29852 echo "$as_me:$LINENO: result: no" >&5
29853echo "${ECHO_T}no" >&6
29854fi
29855
29856
29857 MACSETFILE="\$(SETFILE)"
29858
29859 if test "$wxUSE_MAC" = 1; then
29860 MACRESCOMP="\$(RESCOMP) -d __DARWIN__ -t APPL Carbon.r ${LIBWXMACRES} -o"
29861
29862 MACRESWXCONFIG="${RESCOMP} -d __DARWIN__ -t APPL Carbon.r \\\${exec_prefix}/lib/${WX_RESOURCES_MACOSX_ASCII} -o"
29863 else
29864 MACRESCOMP="echo -n | \$(RESCOMP) -d __DARWIN__ -t APPL ${LIBWXMACRES} -o"
29865 MACRESWXCONFIG="echo -n \\\| ${RESCOMP} -d __DARWIN__ -t APPL \\\${exec_prefix}/lib/${WX_RESOURCES_MACOSX_ASCII} -o"
29866 fi
29867else
ffa0583f
RL
29868 MACSETFILE="@true"
29869 MACRESWXCONFIG="@true"
a848cd7e
SC
29870
29871 if test "$wxUSE_PM" = 1; then
29872 MACRESCOMP="emxbind -ep"
29873 else
ffa0583f 29874 MACRESCOMP="@true"
a848cd7e
SC
29875 fi
29876fi
29877
29878
29879
29880echo "$as_me:$LINENO: checking for mode_t" >&5
29881echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
29882if test "${ac_cv_type_mode_t+set}" = set; then
29883 echo $ECHO_N "(cached) $ECHO_C" >&6
29884else
29885 cat >conftest.$ac_ext <<_ACEOF
29886/* confdefs.h. */
29887_ACEOF
29888cat confdefs.h >>conftest.$ac_ext
29889cat >>conftest.$ac_ext <<_ACEOF
29890/* end confdefs.h. */
29891$ac_includes_default
29892int
29893main ()
29894{
29895if ((mode_t *) 0)
29896 return 0;
29897if (sizeof (mode_t))
29898 return 0;
29899 ;
29900 return 0;
29901}
29902_ACEOF
29903rm -f conftest.$ac_objext
29904if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 29905 (eval $ac_compile) 2>conftest.er1
a848cd7e 29906 ac_status=$?
ac1cb8d3
VS
29907 grep -v '^ *+' conftest.er1 >conftest.err
29908 rm -f conftest.er1
29909 cat conftest.err >&5
a848cd7e
SC
29910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29911 (exit $ac_status); } &&
9dd0f6c2 29912 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29914 (eval $ac_try) 2>&5
29915 ac_status=$?
29916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29917 (exit $ac_status); }; } &&
29918 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
29919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29920 (eval $ac_try) 2>&5
29921 ac_status=$?
29922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29923 (exit $ac_status); }; }; then
29924 ac_cv_type_mode_t=yes
29925else
29926 echo "$as_me: failed program was:" >&5
29927sed 's/^/| /' conftest.$ac_ext >&5
29928
29929ac_cv_type_mode_t=no
29930fi
ac1cb8d3 29931rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
29932fi
29933echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
29934echo "${ECHO_T}$ac_cv_type_mode_t" >&6
29935if test $ac_cv_type_mode_t = yes; then
29936 :
29937else
29938
29939cat >>confdefs.h <<_ACEOF
29940#define mode_t int
29941_ACEOF
29942
29943fi
29944
29945echo "$as_me:$LINENO: checking for off_t" >&5
29946echo $ECHO_N "checking for off_t... $ECHO_C" >&6
29947if test "${ac_cv_type_off_t+set}" = set; then
29948 echo $ECHO_N "(cached) $ECHO_C" >&6
29949else
29950 cat >conftest.$ac_ext <<_ACEOF
29951/* confdefs.h. */
29952_ACEOF
29953cat confdefs.h >>conftest.$ac_ext
29954cat >>conftest.$ac_ext <<_ACEOF
29955/* end confdefs.h. */
29956$ac_includes_default
29957int
29958main ()
29959{
29960if ((off_t *) 0)
29961 return 0;
29962if (sizeof (off_t))
29963 return 0;
29964 ;
29965 return 0;
29966}
29967_ACEOF
29968rm -f conftest.$ac_objext
29969if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 29970 (eval $ac_compile) 2>conftest.er1
a848cd7e 29971 ac_status=$?
ac1cb8d3
VS
29972 grep -v '^ *+' conftest.er1 >conftest.err
29973 rm -f conftest.er1
29974 cat conftest.err >&5
a848cd7e
SC
29975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29976 (exit $ac_status); } &&
9dd0f6c2 29977 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29979 (eval $ac_try) 2>&5
29980 ac_status=$?
29981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29982 (exit $ac_status); }; } &&
29983 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
29984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29985 (eval $ac_try) 2>&5
29986 ac_status=$?
29987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29988 (exit $ac_status); }; }; then
29989 ac_cv_type_off_t=yes
29990else
29991 echo "$as_me: failed program was:" >&5
29992sed 's/^/| /' conftest.$ac_ext >&5
29993
29994ac_cv_type_off_t=no
29995fi
ac1cb8d3 29996rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
29997fi
29998echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
29999echo "${ECHO_T}$ac_cv_type_off_t" >&6
30000if test $ac_cv_type_off_t = yes; then
30001 :
30002else
30003
30004cat >>confdefs.h <<_ACEOF
30005#define off_t long
30006_ACEOF
30007
30008fi
30009
30010echo "$as_me:$LINENO: checking for pid_t" >&5
30011echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
30012if test "${ac_cv_type_pid_t+set}" = set; then
30013 echo $ECHO_N "(cached) $ECHO_C" >&6
30014else
30015 cat >conftest.$ac_ext <<_ACEOF
30016/* confdefs.h. */
30017_ACEOF
30018cat confdefs.h >>conftest.$ac_ext
30019cat >>conftest.$ac_ext <<_ACEOF
30020/* end confdefs.h. */
30021$ac_includes_default
30022int
30023main ()
30024{
30025if ((pid_t *) 0)
30026 return 0;
30027if (sizeof (pid_t))
30028 return 0;
30029 ;
30030 return 0;
30031}
30032_ACEOF
30033rm -f conftest.$ac_objext
30034if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 30035 (eval $ac_compile) 2>conftest.er1
a848cd7e 30036 ac_status=$?
ac1cb8d3
VS
30037 grep -v '^ *+' conftest.er1 >conftest.err
30038 rm -f conftest.er1
30039 cat conftest.err >&5
a848cd7e
SC
30040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30041 (exit $ac_status); } &&
9dd0f6c2 30042 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30044 (eval $ac_try) 2>&5
30045 ac_status=$?
30046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30047 (exit $ac_status); }; } &&
30048 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
30049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30050 (eval $ac_try) 2>&5
30051 ac_status=$?
30052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30053 (exit $ac_status); }; }; then
30054 ac_cv_type_pid_t=yes
30055else
30056 echo "$as_me: failed program was:" >&5
30057sed 's/^/| /' conftest.$ac_ext >&5
30058
30059ac_cv_type_pid_t=no
30060fi
ac1cb8d3 30061rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
30062fi
30063echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
30064echo "${ECHO_T}$ac_cv_type_pid_t" >&6
30065if test $ac_cv_type_pid_t = yes; then
30066 :
30067else
30068
30069cat >>confdefs.h <<_ACEOF
30070#define pid_t int
30071_ACEOF
30072
30073fi
30074
30075echo "$as_me:$LINENO: checking for size_t" >&5
30076echo $ECHO_N "checking for size_t... $ECHO_C" >&6
30077if test "${ac_cv_type_size_t+set}" = set; then
30078 echo $ECHO_N "(cached) $ECHO_C" >&6
30079else
30080 cat >conftest.$ac_ext <<_ACEOF
30081/* confdefs.h. */
30082_ACEOF
30083cat confdefs.h >>conftest.$ac_ext
30084cat >>conftest.$ac_ext <<_ACEOF
30085/* end confdefs.h. */
30086$ac_includes_default
30087int
30088main ()
30089{
30090if ((size_t *) 0)
30091 return 0;
30092if (sizeof (size_t))
30093 return 0;
30094 ;
30095 return 0;
30096}
30097_ACEOF
30098rm -f conftest.$ac_objext
30099if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 30100 (eval $ac_compile) 2>conftest.er1
a848cd7e 30101 ac_status=$?
ac1cb8d3
VS
30102 grep -v '^ *+' conftest.er1 >conftest.err
30103 rm -f conftest.er1
30104 cat conftest.err >&5
a848cd7e
SC
30105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30106 (exit $ac_status); } &&
9dd0f6c2 30107 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30109 (eval $ac_try) 2>&5
30110 ac_status=$?
30111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30112 (exit $ac_status); }; } &&
30113 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
30114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30115 (eval $ac_try) 2>&5
30116 ac_status=$?
30117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30118 (exit $ac_status); }; }; then
30119 ac_cv_type_size_t=yes
30120else
30121 echo "$as_me: failed program was:" >&5
30122sed 's/^/| /' conftest.$ac_ext >&5
30123
30124ac_cv_type_size_t=no
30125fi
ac1cb8d3 30126rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
30127fi
30128echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
30129echo "${ECHO_T}$ac_cv_type_size_t" >&6
30130if test $ac_cv_type_size_t = yes; then
30131 :
30132else
30133
30134cat >>confdefs.h <<_ACEOF
30135#define size_t unsigned
30136_ACEOF
30137
30138fi
30139
30140echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
30141echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
30142if test "${ac_cv_type_uid_t+set}" = set; then
30143 echo $ECHO_N "(cached) $ECHO_C" >&6
30144else
30145 cat >conftest.$ac_ext <<_ACEOF
30146/* confdefs.h. */
30147_ACEOF
30148cat confdefs.h >>conftest.$ac_ext
30149cat >>conftest.$ac_ext <<_ACEOF
30150/* end confdefs.h. */
30151#include <sys/types.h>
30152
30153_ACEOF
30154if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30155 $EGREP "uid_t" >/dev/null 2>&1; then
30156 ac_cv_type_uid_t=yes
30157else
30158 ac_cv_type_uid_t=no
30159fi
30160rm -f conftest*
30161
30162fi
30163echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
30164echo "${ECHO_T}$ac_cv_type_uid_t" >&6
30165if test $ac_cv_type_uid_t = no; then
30166
30167cat >>confdefs.h <<\_ACEOF
30168#define uid_t int
30169_ACEOF
30170
30171
30172cat >>confdefs.h <<\_ACEOF
30173#define gid_t int
30174_ACEOF
30175
30176fi
30177
30178
d51253e8
RL
30179echo "$as_me:$LINENO: checking for ssize_t" >&5
30180echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
30181if test "${ac_cv_type_ssize_t+set}" = set; then
30182 echo $ECHO_N "(cached) $ECHO_C" >&6
30183else
30184 cat >conftest.$ac_ext <<_ACEOF
30185/* confdefs.h. */
30186_ACEOF
30187cat confdefs.h >>conftest.$ac_ext
30188cat >>conftest.$ac_ext <<_ACEOF
30189/* end confdefs.h. */
30190$ac_includes_default
30191int
30192main ()
30193{
30194if ((ssize_t *) 0)
30195 return 0;
30196if (sizeof (ssize_t))
30197 return 0;
30198 ;
30199 return 0;
30200}
30201_ACEOF
30202rm -f conftest.$ac_objext
30203if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30204 (eval $ac_compile) 2>conftest.er1
30205 ac_status=$?
30206 grep -v '^ *+' conftest.er1 >conftest.err
30207 rm -f conftest.er1
30208 cat conftest.err >&5
30209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30210 (exit $ac_status); } &&
9dd0f6c2 30211 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
d51253e8
RL
30212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30213 (eval $ac_try) 2>&5
30214 ac_status=$?
30215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30216 (exit $ac_status); }; } &&
30217 { ac_try='test -s conftest.$ac_objext'
30218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30219 (eval $ac_try) 2>&5
30220 ac_status=$?
30221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30222 (exit $ac_status); }; }; then
30223 ac_cv_type_ssize_t=yes
30224else
30225 echo "$as_me: failed program was:" >&5
30226sed 's/^/| /' conftest.$ac_ext >&5
30227
30228ac_cv_type_ssize_t=no
30229fi
30230rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30231fi
30232echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
30233echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
30234if test $ac_cv_type_ssize_t = yes; then
30235
30236cat >>confdefs.h <<_ACEOF
30237#define HAVE_SSIZE_T 1
30238_ACEOF
30239
30240
30241fi
30242
30243
a848cd7e
SC
30244
30245
30246ac_ext=cc
30247ac_cpp='$CXXCPP $CPPFLAGS'
30248ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30249ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30250ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30251
30252echo "$as_me:$LINENO: checking if size_t is unsigned int" >&5
30253echo $ECHO_N "checking if size_t is unsigned int... $ECHO_C" >&6
30254if test "${wx_cv_size_t_is_uint+set}" = set; then
30255 echo $ECHO_N "(cached) $ECHO_C" >&6
30256else
30257
30258 cat >conftest.$ac_ext <<_ACEOF
30259/* confdefs.h. */
30260_ACEOF
30261cat confdefs.h >>conftest.$ac_ext
30262cat >>conftest.$ac_ext <<_ACEOF
30263/* end confdefs.h. */
30264#include <stddef.h>
30265int
30266main ()
30267{
30268
30269 return 0; }
30270
30271 struct Foo { void foo(size_t); void foo(unsigned int); };
30272
30273 int bar() {
30274
30275 ;
30276 return 0;
30277}
30278_ACEOF
30279rm -f conftest.$ac_objext
30280if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 30281 (eval $ac_compile) 2>conftest.er1
a848cd7e 30282 ac_status=$?
ac1cb8d3
VS
30283 grep -v '^ *+' conftest.er1 >conftest.err
30284 rm -f conftest.er1
30285 cat conftest.err >&5
a848cd7e
SC
30286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30287 (exit $ac_status); } &&
9dd0f6c2 30288 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30290 (eval $ac_try) 2>&5
30291 ac_status=$?
30292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30293 (exit $ac_status); }; } &&
30294 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
30295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30296 (eval $ac_try) 2>&5
30297 ac_status=$?
30298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30299 (exit $ac_status); }; }; then
30300 wx_cv_size_t_is_uint=no
30301else
30302 echo "$as_me: failed program was:" >&5
30303sed 's/^/| /' conftest.$ac_ext >&5
30304
30305wx_cv_size_t_is_uint=yes
30306
30307fi
ac1cb8d3 30308rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
30309
30310
30311fi
30312echo "$as_me:$LINENO: result: $wx_cv_size_t_is_uint" >&5
30313echo "${ECHO_T}$wx_cv_size_t_is_uint" >&6
30314
30315if test "$wx_cv_size_t_is_uint" = "yes"; then
30316 cat >>confdefs.h <<\_ACEOF
30317#define wxSIZE_T_IS_UINT 1
30318_ACEOF
30319
30320else
30321 echo "$as_me:$LINENO: checking if size_t is unsigned long" >&5
30322echo $ECHO_N "checking if size_t is unsigned long... $ECHO_C" >&6
30323if test "${wx_cv_size_t_is_ulong+set}" = set; then
30324 echo $ECHO_N "(cached) $ECHO_C" >&6
30325else
30326 cat >conftest.$ac_ext <<_ACEOF
30327/* confdefs.h. */
30328_ACEOF
30329cat confdefs.h >>conftest.$ac_ext
30330cat >>conftest.$ac_ext <<_ACEOF
30331/* end confdefs.h. */
30332#include <stddef.h>
30333int
30334main ()
30335{
30336
30337 return 0; }
30338
30339 struct Foo { void foo(size_t); void foo(unsigned long); };
30340
30341 int bar() {
30342
30343 ;
30344 return 0;
30345}
30346_ACEOF
30347rm -f conftest.$ac_objext
30348if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 30349 (eval $ac_compile) 2>conftest.er1
a848cd7e 30350 ac_status=$?
ac1cb8d3
VS
30351 grep -v '^ *+' conftest.er1 >conftest.err
30352 rm -f conftest.er1
30353 cat conftest.err >&5
a848cd7e
SC
30354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30355 (exit $ac_status); } &&
9dd0f6c2 30356 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30358 (eval $ac_try) 2>&5
30359 ac_status=$?
30360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30361 (exit $ac_status); }; } &&
30362 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
30363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30364 (eval $ac_try) 2>&5
30365 ac_status=$?
30366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30367 (exit $ac_status); }; }; then
30368 wx_cv_size_t_is_ulong=no
30369else
30370 echo "$as_me: failed program was:" >&5
30371sed 's/^/| /' conftest.$ac_ext >&5
30372
30373wx_cv_size_t_is_ulong=yes
30374
30375fi
ac1cb8d3 30376rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
30377
30378fi
30379echo "$as_me:$LINENO: result: $wx_cv_size_t_is_ulong" >&5
30380echo "${ECHO_T}$wx_cv_size_t_is_ulong" >&6
30381
30382 if test "$wx_cv_size_t_is_ulong" = "yes"; then
30383 cat >>confdefs.h <<\_ACEOF
30384#define wxSIZE_T_IS_ULONG 1
30385_ACEOF
30386
30387 fi
30388fi
30389
30390ac_ext=c
30391ac_cpp='$CPP $CPPFLAGS'
30392ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30393ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30394ac_compiler_gnu=$ac_cv_c_compiler_gnu
30395
30396
30397
30398echo "$as_me:$LINENO: checking for pw_gecos in struct passwd" >&5
30399echo $ECHO_N "checking for pw_gecos in struct passwd... $ECHO_C" >&6
30400if test "${wx_cv_struct_pw_gecos+set}" = set; then
30401 echo $ECHO_N "(cached) $ECHO_C" >&6
30402else
30403
30404 cat >conftest.$ac_ext <<_ACEOF
30405/* confdefs.h. */
30406_ACEOF
30407cat confdefs.h >>conftest.$ac_ext
30408cat >>conftest.$ac_ext <<_ACEOF
30409/* end confdefs.h. */
30410#include <pwd.h>
30411int
30412main ()
30413{
30414
30415 char *p;
30416 struct passwd *pw;
30417 p = pw->pw_gecos;
30418
30419 ;
30420 return 0;
30421}
30422_ACEOF
30423rm -f conftest.$ac_objext
30424if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 30425 (eval $ac_compile) 2>conftest.er1
a848cd7e 30426 ac_status=$?
ac1cb8d3
VS
30427 grep -v '^ *+' conftest.er1 >conftest.err
30428 rm -f conftest.er1
30429 cat conftest.err >&5
a848cd7e
SC
30430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30431 (exit $ac_status); } &&
9dd0f6c2 30432 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30434 (eval $ac_try) 2>&5
30435 ac_status=$?
30436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30437 (exit $ac_status); }; } &&
30438 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
30439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30440 (eval $ac_try) 2>&5
30441 ac_status=$?
30442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30443 (exit $ac_status); }; }; then
30444
30445 wx_cv_struct_pw_gecos=yes
30446
30447else
30448 echo "$as_me: failed program was:" >&5
30449sed 's/^/| /' conftest.$ac_ext >&5
30450
30451
30452 wx_cv_struct_pw_gecos=no
30453
30454
30455fi
ac1cb8d3 30456rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
30457
30458
30459fi
30460echo "$as_me:$LINENO: result: $wx_cv_struct_pw_gecos" >&5
30461echo "${ECHO_T}$wx_cv_struct_pw_gecos" >&6
30462
30463if test "$wx_cv_struct_pw_gecos" = "yes"; then
30464 cat >>confdefs.h <<\_ACEOF
30465#define HAVE_PW_GECOS 1
30466_ACEOF
30467
30468fi
30469
30470
238ecede 30471if test "$ac_cv_sizeof_wchar_t" != "0"; then
a848cd7e
SC
30472 cat >>confdefs.h <<\_ACEOF
30473#define wxUSE_WCHAR_T 1
30474_ACEOF
30475
30476
30477 WCSLEN_FOUND=0
30478 WCHAR_LINK=
30479
30480for ac_func in wcslen
30481do
30482as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30483echo "$as_me:$LINENO: checking for $ac_func" >&5
30484echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30485if eval "test \"\${$as_ac_var+set}\" = set"; then
30486 echo $ECHO_N "(cached) $ECHO_C" >&6
30487else
30488 cat >conftest.$ac_ext <<_ACEOF
30489/* confdefs.h. */
30490_ACEOF
30491cat confdefs.h >>conftest.$ac_ext
30492cat >>conftest.$ac_ext <<_ACEOF
30493/* end confdefs.h. */
ac1cb8d3
VS
30494/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30495 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30496#define $ac_func innocuous_$ac_func
30497
a848cd7e
SC
30498/* System header to define __stub macros and hopefully few prototypes,
30499 which can conflict with char $ac_func (); below.
30500 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30501 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 30502
a848cd7e
SC
30503#ifdef __STDC__
30504# include <limits.h>
30505#else
30506# include <assert.h>
30507#endif
ac1cb8d3
VS
30508
30509#undef $ac_func
30510
a848cd7e
SC
30511/* Override any gcc2 internal prototype to avoid an error. */
30512#ifdef __cplusplus
30513extern "C"
30514{
30515#endif
30516/* We use char because int might match the return type of a gcc2
30517 builtin and then its argument prototype would still apply. */
30518char $ac_func ();
30519/* The GNU C library defines this for functions which it implements
30520 to always fail with ENOSYS. Some functions are actually named
30521 something starting with __ and the normal name is an alias. */
30522#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30523choke me
30524#else
30525char (*f) () = $ac_func;
30526#endif
30527#ifdef __cplusplus
30528}
30529#endif
30530
30531int
30532main ()
30533{
30534return f != $ac_func;
30535 ;
30536 return 0;
30537}
30538_ACEOF
30539rm -f conftest.$ac_objext conftest$ac_exeext
30540if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30541 (eval $ac_link) 2>conftest.er1
a848cd7e 30542 ac_status=$?
ac1cb8d3
VS
30543 grep -v '^ *+' conftest.er1 >conftest.err
30544 rm -f conftest.er1
30545 cat conftest.err >&5
a848cd7e
SC
30546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30547 (exit $ac_status); } &&
9dd0f6c2 30548 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30550 (eval $ac_try) 2>&5
30551 ac_status=$?
30552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30553 (exit $ac_status); }; } &&
30554 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30556 (eval $ac_try) 2>&5
30557 ac_status=$?
30558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30559 (exit $ac_status); }; }; then
30560 eval "$as_ac_var=yes"
30561else
30562 echo "$as_me: failed program was:" >&5
30563sed 's/^/| /' conftest.$ac_ext >&5
30564
30565eval "$as_ac_var=no"
30566fi
ac1cb8d3
VS
30567rm -f conftest.err conftest.$ac_objext \
30568 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30569fi
30570echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30571echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30572if test `eval echo '${'$as_ac_var'}'` = yes; then
30573 cat >>confdefs.h <<_ACEOF
30574#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30575_ACEOF
30576 WCSLEN_FOUND=1
30577fi
30578done
30579
30580
30581 if test "$WCSLEN_FOUND" = 0; then
30582 if test "$TOOLKIT" = "MSW"; then
30583 echo "$as_me:$LINENO: checking for wcslen in -lmsvcrt" >&5
30584echo $ECHO_N "checking for wcslen in -lmsvcrt... $ECHO_C" >&6
30585if test "${ac_cv_lib_msvcrt_wcslen+set}" = set; then
30586 echo $ECHO_N "(cached) $ECHO_C" >&6
30587else
30588 ac_check_lib_save_LIBS=$LIBS
30589LIBS="-lmsvcrt $LIBS"
30590cat >conftest.$ac_ext <<_ACEOF
30591/* confdefs.h. */
30592_ACEOF
30593cat confdefs.h >>conftest.$ac_ext
30594cat >>conftest.$ac_ext <<_ACEOF
30595/* end confdefs.h. */
30596
30597/* Override any gcc2 internal prototype to avoid an error. */
30598#ifdef __cplusplus
30599extern "C"
30600#endif
30601/* We use char because int might match the return type of a gcc2
30602 builtin and then its argument prototype would still apply. */
30603char wcslen ();
30604int
30605main ()
30606{
30607wcslen ();
30608 ;
30609 return 0;
30610}
30611_ACEOF
30612rm -f conftest.$ac_objext conftest$ac_exeext
30613if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30614 (eval $ac_link) 2>conftest.er1
a848cd7e 30615 ac_status=$?
ac1cb8d3
VS
30616 grep -v '^ *+' conftest.er1 >conftest.err
30617 rm -f conftest.er1
30618 cat conftest.err >&5
a848cd7e
SC
30619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30620 (exit $ac_status); } &&
9dd0f6c2 30621 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30623 (eval $ac_try) 2>&5
30624 ac_status=$?
30625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30626 (exit $ac_status); }; } &&
30627 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30629 (eval $ac_try) 2>&5
30630 ac_status=$?
30631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30632 (exit $ac_status); }; }; then
30633 ac_cv_lib_msvcrt_wcslen=yes
30634else
30635 echo "$as_me: failed program was:" >&5
30636sed 's/^/| /' conftest.$ac_ext >&5
30637
30638ac_cv_lib_msvcrt_wcslen=no
30639fi
ac1cb8d3
VS
30640rm -f conftest.err conftest.$ac_objext \
30641 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30642LIBS=$ac_check_lib_save_LIBS
30643fi
30644echo "$as_me:$LINENO: result: $ac_cv_lib_msvcrt_wcslen" >&5
30645echo "${ECHO_T}$ac_cv_lib_msvcrt_wcslen" >&6
30646if test $ac_cv_lib_msvcrt_wcslen = yes; then
30647 WCHAR_OK=1
30648fi
30649
30650 else
30651 echo "$as_me:$LINENO: checking for wcslen in -lw" >&5
30652echo $ECHO_N "checking for wcslen in -lw... $ECHO_C" >&6
30653if test "${ac_cv_lib_w_wcslen+set}" = set; then
30654 echo $ECHO_N "(cached) $ECHO_C" >&6
30655else
30656 ac_check_lib_save_LIBS=$LIBS
30657LIBS="-lw $LIBS"
30658cat >conftest.$ac_ext <<_ACEOF
30659/* confdefs.h. */
30660_ACEOF
30661cat confdefs.h >>conftest.$ac_ext
30662cat >>conftest.$ac_ext <<_ACEOF
30663/* end confdefs.h. */
30664
30665/* Override any gcc2 internal prototype to avoid an error. */
30666#ifdef __cplusplus
30667extern "C"
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 wcslen ();
30672int
30673main ()
30674{
30675wcslen ();
30676 ;
30677 return 0;
30678}
30679_ACEOF
30680rm -f conftest.$ac_objext conftest$ac_exeext
30681if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30682 (eval $ac_link) 2>conftest.er1
a848cd7e 30683 ac_status=$?
ac1cb8d3
VS
30684 grep -v '^ *+' conftest.er1 >conftest.err
30685 rm -f conftest.er1
30686 cat conftest.err >&5
a848cd7e
SC
30687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30688 (exit $ac_status); } &&
9dd0f6c2 30689 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30691 (eval $ac_try) 2>&5
30692 ac_status=$?
30693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30694 (exit $ac_status); }; } &&
30695 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30697 (eval $ac_try) 2>&5
30698 ac_status=$?
30699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30700 (exit $ac_status); }; }; then
30701 ac_cv_lib_w_wcslen=yes
30702else
30703 echo "$as_me: failed program was:" >&5
30704sed 's/^/| /' conftest.$ac_ext >&5
30705
30706ac_cv_lib_w_wcslen=no
30707fi
ac1cb8d3
VS
30708rm -f conftest.err conftest.$ac_objext \
30709 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30710LIBS=$ac_check_lib_save_LIBS
30711fi
30712echo "$as_me:$LINENO: result: $ac_cv_lib_w_wcslen" >&5
30713echo "${ECHO_T}$ac_cv_lib_w_wcslen" >&6
30714if test $ac_cv_lib_w_wcslen = yes; then
30715
30716 WCHAR_LINK=" -lw"
30717 WCSLEN_FOUND=1
30718
30719fi
30720
30721 fi
30722 fi
30723
30724 if test "$WCSLEN_FOUND" = 1; then
30725 cat >>confdefs.h <<\_ACEOF
30726#define HAVE_WCSLEN 1
30727_ACEOF
30728
30729 fi
30730
81f90336 30731 if test "$USE_HPUX" = 1; then
473276a9
VS
30732 CPPFLAGS="$CPPFLAGS -D_INCLUDE__STDC_A1_SOURCE "
30733 fi
30734
a848cd7e
SC
30735
30736for ac_func in wcsrtombs
30737do
30738as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30739echo "$as_me:$LINENO: checking for $ac_func" >&5
30740echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30741if eval "test \"\${$as_ac_var+set}\" = set"; then
30742 echo $ECHO_N "(cached) $ECHO_C" >&6
30743else
30744 cat >conftest.$ac_ext <<_ACEOF
30745/* confdefs.h. */
30746_ACEOF
30747cat confdefs.h >>conftest.$ac_ext
30748cat >>conftest.$ac_ext <<_ACEOF
30749/* end confdefs.h. */
ac1cb8d3
VS
30750/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30751 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30752#define $ac_func innocuous_$ac_func
30753
a848cd7e
SC
30754/* System header to define __stub macros and hopefully few prototypes,
30755 which can conflict with char $ac_func (); below.
30756 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30757 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 30758
a848cd7e
SC
30759#ifdef __STDC__
30760# include <limits.h>
30761#else
30762# include <assert.h>
30763#endif
ac1cb8d3
VS
30764
30765#undef $ac_func
30766
a848cd7e
SC
30767/* Override any gcc2 internal prototype to avoid an error. */
30768#ifdef __cplusplus
30769extern "C"
30770{
30771#endif
30772/* We use char because int might match the return type of a gcc2
30773 builtin and then its argument prototype would still apply. */
30774char $ac_func ();
30775/* The GNU C library defines this for functions which it implements
30776 to always fail with ENOSYS. Some functions are actually named
30777 something starting with __ and the normal name is an alias. */
30778#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30779choke me
30780#else
30781char (*f) () = $ac_func;
30782#endif
30783#ifdef __cplusplus
30784}
30785#endif
30786
30787int
30788main ()
30789{
30790return f != $ac_func;
30791 ;
30792 return 0;
30793}
30794_ACEOF
30795rm -f conftest.$ac_objext conftest$ac_exeext
30796if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30797 (eval $ac_link) 2>conftest.er1
a848cd7e 30798 ac_status=$?
ac1cb8d3
VS
30799 grep -v '^ *+' conftest.er1 >conftest.err
30800 rm -f conftest.er1
30801 cat conftest.err >&5
a848cd7e
SC
30802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30803 (exit $ac_status); } &&
9dd0f6c2 30804 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30806 (eval $ac_try) 2>&5
30807 ac_status=$?
30808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30809 (exit $ac_status); }; } &&
30810 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30812 (eval $ac_try) 2>&5
30813 ac_status=$?
30814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30815 (exit $ac_status); }; }; then
30816 eval "$as_ac_var=yes"
30817else
30818 echo "$as_me: failed program was:" >&5
30819sed 's/^/| /' conftest.$ac_ext >&5
30820
30821eval "$as_ac_var=no"
30822fi
ac1cb8d3
VS
30823rm -f conftest.err conftest.$ac_objext \
30824 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30825fi
30826echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30827echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30828if test `eval echo '${'$as_ac_var'}'` = yes; then
30829 cat >>confdefs.h <<_ACEOF
30830#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30831_ACEOF
30832
30833fi
30834done
30835
30836else
30837 { echo "$as_me:$LINENO: WARNING: Wide character support is unavailable" >&5
30838echo "$as_me: WARNING: Wide character support is unavailable" >&2;}
30839fi
30840
30841
30842
30843ac_ext=cc
30844ac_cpp='$CXXCPP $CPPFLAGS'
30845ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30846ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30847ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30848
30849
30850
30851for ac_func in vsnprintf
30852do
30853as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30854echo "$as_me:$LINENO: checking for $ac_func" >&5
30855echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30856if eval "test \"\${$as_ac_var+set}\" = set"; then
30857 echo $ECHO_N "(cached) $ECHO_C" >&6
30858else
30859 cat >conftest.$ac_ext <<_ACEOF
30860/* confdefs.h. */
30861_ACEOF
30862cat confdefs.h >>conftest.$ac_ext
30863cat >>conftest.$ac_ext <<_ACEOF
30864/* end confdefs.h. */
ac1cb8d3
VS
30865/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30866 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30867#define $ac_func innocuous_$ac_func
30868
a848cd7e
SC
30869/* System header to define __stub macros and hopefully few prototypes,
30870 which can conflict with char $ac_func (); below.
30871 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30872 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 30873
a848cd7e
SC
30874#ifdef __STDC__
30875# include <limits.h>
30876#else
30877# include <assert.h>
30878#endif
ac1cb8d3
VS
30879
30880#undef $ac_func
30881
a848cd7e
SC
30882/* Override any gcc2 internal prototype to avoid an error. */
30883#ifdef __cplusplus
30884extern "C"
30885{
30886#endif
30887/* We use char because int might match the return type of a gcc2
30888 builtin and then its argument prototype would still apply. */
30889char $ac_func ();
30890/* The GNU C library defines this for functions which it implements
30891 to always fail with ENOSYS. Some functions are actually named
30892 something starting with __ and the normal name is an alias. */
30893#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30894choke me
30895#else
30896char (*f) () = $ac_func;
30897#endif
30898#ifdef __cplusplus
30899}
30900#endif
30901
30902int
30903main ()
30904{
30905return f != $ac_func;
30906 ;
30907 return 0;
30908}
30909_ACEOF
30910rm -f conftest.$ac_objext conftest$ac_exeext
30911if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30912 (eval $ac_link) 2>conftest.er1
a848cd7e 30913 ac_status=$?
ac1cb8d3
VS
30914 grep -v '^ *+' conftest.er1 >conftest.err
30915 rm -f conftest.er1
30916 cat conftest.err >&5
a848cd7e
SC
30917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30918 (exit $ac_status); } &&
9dd0f6c2 30919 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30921 (eval $ac_try) 2>&5
30922 ac_status=$?
30923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30924 (exit $ac_status); }; } &&
30925 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30927 (eval $ac_try) 2>&5
30928 ac_status=$?
30929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30930 (exit $ac_status); }; }; then
30931 eval "$as_ac_var=yes"
30932else
30933 echo "$as_me: failed program was:" >&5
30934sed 's/^/| /' conftest.$ac_ext >&5
30935
30936eval "$as_ac_var=no"
30937fi
ac1cb8d3
VS
30938rm -f conftest.err conftest.$ac_objext \
30939 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30940fi
30941echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30942echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30943if test `eval echo '${'$as_ac_var'}'` = yes; then
30944 cat >>confdefs.h <<_ACEOF
30945#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30946_ACEOF
30947
30948fi
30949done
30950
30951
30952if test "$ac_cv_func_vsnprintf" = "yes"; then
30953 echo "$as_me:$LINENO: checking for vsnprintf declaration" >&5
30954echo $ECHO_N "checking for vsnprintf declaration... $ECHO_C" >&6
30955if test "${wx_cv_func_vsnprintf_decl+set}" = set; then
30956 echo $ECHO_N "(cached) $ECHO_C" >&6
30957else
30958
30959 cat >conftest.$ac_ext <<_ACEOF
30960/* confdefs.h. */
30961_ACEOF
30962cat confdefs.h >>conftest.$ac_ext
30963cat >>conftest.$ac_ext <<_ACEOF
30964/* end confdefs.h. */
30965
30966 #include <stdio.h>
30967 #include <stdarg.h>
30968
30969int
30970main ()
30971{
30972
30973 char *buf;
30974 va_list ap;
30975 vsnprintf(buf, 10u, "%s", ap);
30976
30977 ;
30978 return 0;
30979}
30980_ACEOF
30981rm -f conftest.$ac_objext
30982if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 30983 (eval $ac_compile) 2>conftest.er1
a848cd7e 30984 ac_status=$?
ac1cb8d3
VS
30985 grep -v '^ *+' conftest.er1 >conftest.err
30986 rm -f conftest.er1
30987 cat conftest.err >&5
a848cd7e
SC
30988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30989 (exit $ac_status); } &&
9dd0f6c2 30990 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30992 (eval $ac_try) 2>&5
30993 ac_status=$?
30994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30995 (exit $ac_status); }; } &&
30996 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
30997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30998 (eval $ac_try) 2>&5
30999 ac_status=$?
31000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31001 (exit $ac_status); }; }; then
31002 wx_cv_func_vsnprintf_decl=yes
31003else
31004 echo "$as_me: failed program was:" >&5
31005sed 's/^/| /' conftest.$ac_ext >&5
31006
c122b164
DE
31007
31008 cat >conftest.$ac_ext <<_ACEOF
31009/* confdefs.h. */
31010_ACEOF
31011cat confdefs.h >>conftest.$ac_ext
31012cat >>conftest.$ac_ext <<_ACEOF
31013/* end confdefs.h. */
31014
31015 #include <stdio.h>
31016 #include <stdarg.h>
31017 using namespace std;
31018
31019int
31020main ()
31021{
31022
31023 char *buf;
31024 va_list ap;
31025 vsnprintf(buf, 10u, "%s", ap);
31026
31027 ;
31028 return 0;
31029}
31030_ACEOF
31031rm -f conftest.$ac_objext
31032if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31033 (eval $ac_compile) 2>conftest.er1
31034 ac_status=$?
31035 grep -v '^ *+' conftest.er1 >conftest.err
31036 rm -f conftest.er1
31037 cat conftest.err >&5
31038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31039 (exit $ac_status); } &&
9dd0f6c2 31040 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
c122b164
DE
31041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31042 (eval $ac_try) 2>&5
31043 ac_status=$?
31044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31045 (exit $ac_status); }; } &&
31046 { ac_try='test -s conftest.$ac_objext'
31047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31048 (eval $ac_try) 2>&5
31049 ac_status=$?
31050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31051 (exit $ac_status); }; }; then
31052 wx_cv_func_vsnprintf_decl=yes
31053else
31054 echo "$as_me: failed program was:" >&5
31055sed 's/^/| /' conftest.$ac_ext >&5
31056
a848cd7e
SC
31057wx_cv_func_vsnprintf_decl=no
31058
31059fi
ac1cb8d3 31060rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
31061
31062
c122b164
DE
31063fi
31064rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31065
31066
a848cd7e
SC
31067fi
31068echo "$as_me:$LINENO: result: $wx_cv_func_vsnprintf_decl" >&5
31069echo "${ECHO_T}$wx_cv_func_vsnprintf_decl" >&6
31070
31071 if test "$wx_cv_func_vsnprintf_decl" = "yes"; then
31072 cat >>confdefs.h <<\_ACEOF
31073#define HAVE_VSNPRINTF_DECL 1
31074_ACEOF
31075
31076 fi
31077fi
31078
31079if test "$wxUSE_UNICODE" = yes; then
31080
31081
31082
fbe47c7b
VS
31083
31084
31085
31086for ac_func in wputc wputchar putws fputws wprintf vswprintf
a848cd7e
SC
31087do
31088as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31089echo "$as_me:$LINENO: checking for $ac_func" >&5
31090echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31091if eval "test \"\${$as_ac_var+set}\" = set"; then
31092 echo $ECHO_N "(cached) $ECHO_C" >&6
31093else
31094 cat >conftest.$ac_ext <<_ACEOF
31095/* confdefs.h. */
31096_ACEOF
31097cat confdefs.h >>conftest.$ac_ext
31098cat >>conftest.$ac_ext <<_ACEOF
31099/* end confdefs.h. */
ac1cb8d3
VS
31100/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31101 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31102#define $ac_func innocuous_$ac_func
31103
a848cd7e
SC
31104/* System header to define __stub macros and hopefully few prototypes,
31105 which can conflict with char $ac_func (); below.
31106 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31107 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 31108
a848cd7e
SC
31109#ifdef __STDC__
31110# include <limits.h>
31111#else
31112# include <assert.h>
31113#endif
ac1cb8d3
VS
31114
31115#undef $ac_func
31116
a848cd7e
SC
31117/* Override any gcc2 internal prototype to avoid an error. */
31118#ifdef __cplusplus
31119extern "C"
31120{
31121#endif
31122/* We use char because int might match the return type of a gcc2
31123 builtin and then its argument prototype would still apply. */
31124char $ac_func ();
31125/* The GNU C library defines this for functions which it implements
31126 to always fail with ENOSYS. Some functions are actually named
31127 something starting with __ and the normal name is an alias. */
31128#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31129choke me
31130#else
31131char (*f) () = $ac_func;
31132#endif
31133#ifdef __cplusplus
31134}
31135#endif
31136
31137int
31138main ()
31139{
31140return f != $ac_func;
31141 ;
31142 return 0;
31143}
31144_ACEOF
31145rm -f conftest.$ac_objext conftest$ac_exeext
31146if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31147 (eval $ac_link) 2>conftest.er1
a848cd7e 31148 ac_status=$?
ac1cb8d3
VS
31149 grep -v '^ *+' conftest.er1 >conftest.err
31150 rm -f conftest.er1
31151 cat conftest.err >&5
a848cd7e
SC
31152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31153 (exit $ac_status); } &&
9dd0f6c2 31154 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31156 (eval $ac_try) 2>&5
31157 ac_status=$?
31158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31159 (exit $ac_status); }; } &&
31160 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31162 (eval $ac_try) 2>&5
31163 ac_status=$?
31164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31165 (exit $ac_status); }; }; then
31166 eval "$as_ac_var=yes"
31167else
31168 echo "$as_me: failed program was:" >&5
31169sed 's/^/| /' conftest.$ac_ext >&5
31170
31171eval "$as_ac_var=no"
31172fi
ac1cb8d3
VS
31173rm -f conftest.err conftest.$ac_objext \
31174 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31175fi
31176echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31177echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31178if test `eval echo '${'$as_ac_var'}'` = yes; then
31179 cat >>confdefs.h <<_ACEOF
31180#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31181_ACEOF
31182
31183fi
31184done
31185
31186
31187 echo "$as_me:$LINENO: checking for _vsnwprintf" >&5
31188echo $ECHO_N "checking for _vsnwprintf... $ECHO_C" >&6
31189 cat >conftest.$ac_ext <<_ACEOF
31190/* confdefs.h. */
31191_ACEOF
31192cat confdefs.h >>conftest.$ac_ext
31193cat >>conftest.$ac_ext <<_ACEOF
31194/* end confdefs.h. */
31195#include <wchar.h>
31196int
31197main ()
31198{
31199&_vsnwprintf;
31200 ;
31201 return 0;
31202}
31203_ACEOF
31204rm -f conftest.$ac_objext
31205if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 31206 (eval $ac_compile) 2>conftest.er1
a848cd7e 31207 ac_status=$?
ac1cb8d3
VS
31208 grep -v '^ *+' conftest.er1 >conftest.err
31209 rm -f conftest.er1
31210 cat conftest.err >&5
a848cd7e
SC
31211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31212 (exit $ac_status); } &&
9dd0f6c2 31213 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31215 (eval $ac_try) 2>&5
31216 ac_status=$?
31217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31218 (exit $ac_status); }; } &&
31219 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
31220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31221 (eval $ac_try) 2>&5
31222 ac_status=$?
31223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31224 (exit $ac_status); }; }; then
31225 echo "$as_me:$LINENO: result: yes" >&5
31226echo "${ECHO_T}yes" >&6
31227 cat >>confdefs.h <<\_ACEOF
31228#define HAVE__VSNWPRINTF 1
31229_ACEOF
31230
31231else
31232 echo "$as_me: failed program was:" >&5
31233sed 's/^/| /' conftest.$ac_ext >&5
31234
31235echo "$as_me:$LINENO: result: no" >&5
31236echo "${ECHO_T}no" >&6
31237fi
ac1cb8d3 31238rm -f conftest.err conftest.$ac_objext conftest.$ac_ext;
a848cd7e
SC
31239fi
31240
31241ac_ext=c
31242ac_cpp='$CPP $CPPFLAGS'
31243ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31244ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31245ac_compiler_gnu=$ac_cv_c_compiler_gnu
31246
31247
31248
31249
31250if test "$TOOLKIT" != "MSW"; then
31251
31252
31253
31254
31255ac_ext=cc
31256ac_cpp='$CXXCPP $CPPFLAGS'
31257ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31258ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31259ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31260
31261
31262
31263
31264# Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
31265if test "${with_libiconv_prefix+set}" = set; then
31266 withval="$with_libiconv_prefix"
31267
31268 for dir in `echo "$withval" | tr : ' '`; do
31269 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
31270 if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
31271 done
31272
31273fi;
31274
31275 echo "$as_me:$LINENO: checking for iconv" >&5
31276echo $ECHO_N "checking for iconv... $ECHO_C" >&6
31277if test "${am_cv_func_iconv+set}" = set; then
31278 echo $ECHO_N "(cached) $ECHO_C" >&6
31279else
31280
31281 am_cv_func_iconv="no, consider installing GNU libiconv"
31282 am_cv_lib_iconv=no
31283 cat >conftest.$ac_ext <<_ACEOF
31284/* confdefs.h. */
31285_ACEOF
31286cat confdefs.h >>conftest.$ac_ext
31287cat >>conftest.$ac_ext <<_ACEOF
31288/* end confdefs.h. */
31289#include <stdlib.h>
31290#include <iconv.h>
31291int
31292main ()
31293{
31294iconv_t cd = iconv_open("","");
31295 iconv(cd,NULL,NULL,NULL,NULL);
31296 iconv_close(cd);
31297 ;
31298 return 0;
31299}
31300_ACEOF
31301rm -f conftest.$ac_objext conftest$ac_exeext
31302if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31303 (eval $ac_link) 2>conftest.er1
a848cd7e 31304 ac_status=$?
ac1cb8d3
VS
31305 grep -v '^ *+' conftest.er1 >conftest.err
31306 rm -f conftest.er1
31307 cat conftest.err >&5
a848cd7e
SC
31308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31309 (exit $ac_status); } &&
9dd0f6c2 31310 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31312 (eval $ac_try) 2>&5
31313 ac_status=$?
31314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31315 (exit $ac_status); }; } &&
31316 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31318 (eval $ac_try) 2>&5
31319 ac_status=$?
31320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31321 (exit $ac_status); }; }; then
31322 am_cv_func_iconv=yes
31323else
31324 echo "$as_me: failed program was:" >&5
31325sed 's/^/| /' conftest.$ac_ext >&5
31326
31327fi
ac1cb8d3
VS
31328rm -f conftest.err conftest.$ac_objext \
31329 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31330 if test "$am_cv_func_iconv" != yes; then
31331 am_save_LIBS="$LIBS"
31332 LIBS="$LIBS -liconv"
31333 cat >conftest.$ac_ext <<_ACEOF
31334/* confdefs.h. */
31335_ACEOF
31336cat confdefs.h >>conftest.$ac_ext
31337cat >>conftest.$ac_ext <<_ACEOF
31338/* end confdefs.h. */
31339#include <stdlib.h>
31340#include <iconv.h>
31341int
31342main ()
31343{
31344iconv_t cd = iconv_open("","");
31345 iconv(cd,NULL,NULL,NULL,NULL);
31346 iconv_close(cd);
31347 ;
31348 return 0;
31349}
31350_ACEOF
31351rm -f conftest.$ac_objext conftest$ac_exeext
31352if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31353 (eval $ac_link) 2>conftest.er1
a848cd7e 31354 ac_status=$?
ac1cb8d3
VS
31355 grep -v '^ *+' conftest.er1 >conftest.err
31356 rm -f conftest.er1
31357 cat conftest.err >&5
a848cd7e
SC
31358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31359 (exit $ac_status); } &&
9dd0f6c2 31360 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31362 (eval $ac_try) 2>&5
31363 ac_status=$?
31364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31365 (exit $ac_status); }; } &&
31366 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31368 (eval $ac_try) 2>&5
31369 ac_status=$?
31370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31371 (exit $ac_status); }; }; then
31372 am_cv_lib_iconv=yes
31373 am_cv_func_iconv=yes
31374else
31375 echo "$as_me: failed program was:" >&5
31376sed 's/^/| /' conftest.$ac_ext >&5
31377
31378fi
ac1cb8d3
VS
31379rm -f conftest.err conftest.$ac_objext \
31380 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31381 LIBS="$am_save_LIBS"
31382 fi
31383
31384fi
31385echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
31386echo "${ECHO_T}$am_cv_func_iconv" >&6
31387 if test "$am_cv_func_iconv" = yes; then
31388
31389cat >>confdefs.h <<\_ACEOF
31390#define HAVE_ICONV 1
31391_ACEOF
31392
31393 echo "$as_me:$LINENO: checking if iconv needs const" >&5
31394echo $ECHO_N "checking if iconv needs const... $ECHO_C" >&6
31395if test "${wx_cv_func_iconv_const+set}" = set; then
31396 echo $ECHO_N "(cached) $ECHO_C" >&6
31397else
31398 cat >conftest.$ac_ext <<_ACEOF
31399/* confdefs.h. */
31400_ACEOF
31401cat confdefs.h >>conftest.$ac_ext
31402cat >>conftest.$ac_ext <<_ACEOF
31403/* end confdefs.h. */
31404
31405#include <stdlib.h>
31406#include <iconv.h>
31407extern
31408#ifdef __cplusplus
31409"C"
31410#endif
31411#if defined(__STDC__) || defined(__cplusplus)
31412size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
31413#else
31414size_t iconv();
31415#endif
31416
31417int
31418main ()
31419{
31420
31421 ;
31422 return 0;
31423}
31424_ACEOF
31425rm -f conftest.$ac_objext
31426if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 31427 (eval $ac_compile) 2>conftest.er1
a848cd7e 31428 ac_status=$?
ac1cb8d3
VS
31429 grep -v '^ *+' conftest.er1 >conftest.err
31430 rm -f conftest.er1
31431 cat conftest.err >&5
a848cd7e
SC
31432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31433 (exit $ac_status); } &&
9dd0f6c2 31434 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31436 (eval $ac_try) 2>&5
31437 ac_status=$?
31438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31439 (exit $ac_status); }; } &&
31440 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
31441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31442 (eval $ac_try) 2>&5
31443 ac_status=$?
31444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31445 (exit $ac_status); }; }; then
31446 wx_cv_func_iconv_const="no"
31447else
31448 echo "$as_me: failed program was:" >&5
31449sed 's/^/| /' conftest.$ac_ext >&5
31450
31451wx_cv_func_iconv_const="yes"
31452
31453fi
ac1cb8d3 31454rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
31455
31456fi
31457echo "$as_me:$LINENO: result: $wx_cv_func_iconv_const" >&5
31458echo "${ECHO_T}$wx_cv_func_iconv_const" >&6
31459
31460 iconv_const=
31461 if test "x$wx_cv_func_iconv_const" = "xyes"; then
31462 iconv_const="const"
31463 fi
31464
31465
31466cat >>confdefs.h <<_ACEOF
31467#define ICONV_CONST $iconv_const
31468_ACEOF
31469
31470 fi
31471 LIBICONV=
31472 if test "$am_cv_lib_iconv" = yes; then
31473 LIBICONV="-liconv"
31474 fi
31475
31476
31477LIBS="$LIBICONV $LIBS"
31478ac_ext=c
31479ac_cpp='$CPP $CPPFLAGS'
31480ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31481ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31482ac_compiler_gnu=$ac_cv_c_compiler_gnu
31483
31484
31485if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then
31486
31487for ac_func in sigaction
31488do
31489as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31490echo "$as_me:$LINENO: checking for $ac_func" >&5
31491echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31492if eval "test \"\${$as_ac_var+set}\" = set"; then
31493 echo $ECHO_N "(cached) $ECHO_C" >&6
31494else
31495 cat >conftest.$ac_ext <<_ACEOF
31496/* confdefs.h. */
31497_ACEOF
31498cat confdefs.h >>conftest.$ac_ext
31499cat >>conftest.$ac_ext <<_ACEOF
31500/* end confdefs.h. */
ac1cb8d3
VS
31501/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31502 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31503#define $ac_func innocuous_$ac_func
31504
a848cd7e
SC
31505/* System header to define __stub macros and hopefully few prototypes,
31506 which can conflict with char $ac_func (); below.
31507 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31508 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 31509
a848cd7e
SC
31510#ifdef __STDC__
31511# include <limits.h>
31512#else
31513# include <assert.h>
31514#endif
ac1cb8d3
VS
31515
31516#undef $ac_func
31517
a848cd7e
SC
31518/* Override any gcc2 internal prototype to avoid an error. */
31519#ifdef __cplusplus
31520extern "C"
31521{
31522#endif
31523/* We use char because int might match the return type of a gcc2
31524 builtin and then its argument prototype would still apply. */
31525char $ac_func ();
31526/* The GNU C library defines this for functions which it implements
31527 to always fail with ENOSYS. Some functions are actually named
31528 something starting with __ and the normal name is an alias. */
31529#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31530choke me
31531#else
31532char (*f) () = $ac_func;
31533#endif
31534#ifdef __cplusplus
31535}
31536#endif
31537
31538int
31539main ()
31540{
31541return f != $ac_func;
31542 ;
31543 return 0;
31544}
31545_ACEOF
31546rm -f conftest.$ac_objext conftest$ac_exeext
31547if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31548 (eval $ac_link) 2>conftest.er1
a848cd7e 31549 ac_status=$?
ac1cb8d3
VS
31550 grep -v '^ *+' conftest.er1 >conftest.err
31551 rm -f conftest.er1
31552 cat conftest.err >&5
a848cd7e
SC
31553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31554 (exit $ac_status); } &&
9dd0f6c2 31555 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31557 (eval $ac_try) 2>&5
31558 ac_status=$?
31559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31560 (exit $ac_status); }; } &&
31561 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31563 (eval $ac_try) 2>&5
31564 ac_status=$?
31565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31566 (exit $ac_status); }; }; then
31567 eval "$as_ac_var=yes"
31568else
31569 echo "$as_me: failed program was:" >&5
31570sed 's/^/| /' conftest.$ac_ext >&5
31571
31572eval "$as_ac_var=no"
31573fi
ac1cb8d3
VS
31574rm -f conftest.err conftest.$ac_objext \
31575 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31576fi
31577echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31578echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31579if test `eval echo '${'$as_ac_var'}'` = yes; then
31580 cat >>confdefs.h <<_ACEOF
31581#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31582_ACEOF
31583
31584fi
31585done
31586
31587
31588 if test "$ac_cv_func_sigaction" = "no"; then
31589 { echo "$as_me:$LINENO: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&5
31590echo "$as_me: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&2;}
31591 wxUSE_ON_FATAL_EXCEPTION=no
31592 fi
31593
31594 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
31595
31596
31597 ac_ext=cc
31598ac_cpp='$CXXCPP $CPPFLAGS'
31599ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31600ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31601ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31602
31603
31604 echo "$as_me:$LINENO: checking for sa_handler type" >&5
31605echo $ECHO_N "checking for sa_handler type... $ECHO_C" >&6
31606if test "${wx_cv_type_sa_handler+set}" = set; then
31607 echo $ECHO_N "(cached) $ECHO_C" >&6
31608else
31609
31610 cat >conftest.$ac_ext <<_ACEOF
31611/* confdefs.h. */
31612_ACEOF
31613cat confdefs.h >>conftest.$ac_ext
31614cat >>conftest.$ac_ext <<_ACEOF
31615/* end confdefs.h. */
31616#include <signal.h>
31617int
31618main ()
31619{
31620
31621 extern void testSigHandler(int);
31622
31623 struct sigaction sa;
31624 sa.sa_handler = testSigHandler;
31625
31626 ;
31627 return 0;
31628}
31629_ACEOF
31630rm -f conftest.$ac_objext
31631if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 31632 (eval $ac_compile) 2>conftest.er1
a848cd7e 31633 ac_status=$?
ac1cb8d3
VS
31634 grep -v '^ *+' conftest.er1 >conftest.err
31635 rm -f conftest.er1
31636 cat conftest.err >&5
a848cd7e
SC
31637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31638 (exit $ac_status); } &&
9dd0f6c2 31639 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31641 (eval $ac_try) 2>&5
31642 ac_status=$?
31643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31644 (exit $ac_status); }; } &&
31645 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
31646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31647 (eval $ac_try) 2>&5
31648 ac_status=$?
31649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31650 (exit $ac_status); }; }; then
31651
31652 wx_cv_type_sa_handler=int
31653
31654else
31655 echo "$as_me: failed program was:" >&5
31656sed 's/^/| /' conftest.$ac_ext >&5
31657
31658
31659 wx_cv_type_sa_handler=void
31660
31661fi
ac1cb8d3 31662rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
31663
31664fi
31665echo "$as_me:$LINENO: result: $wx_cv_type_sa_handler" >&5
31666echo "${ECHO_T}$wx_cv_type_sa_handler" >&6
31667
31668 ac_ext=c
31669ac_cpp='$CPP $CPPFLAGS'
31670ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31671ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31672ac_compiler_gnu=$ac_cv_c_compiler_gnu
31673
31674
31675 cat >>confdefs.h <<_ACEOF
31676#define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler
31677_ACEOF
31678
31679 fi
31680fi
31681
eaff0f0d
VZ
31682if test "$wxUSE_STACKWALKER" = "yes" -a "$wxUSE_UNIX" = "yes"; then
31683
31684
31685 ac_ext=cc
31686ac_cpp='$CXXCPP $CPPFLAGS'
31687ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31688ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31689ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31690
31691
31692 echo "$as_me:$LINENO: checking for backtrace() in <execinfo.h>" >&5
31693echo $ECHO_N "checking for backtrace() in <execinfo.h>... $ECHO_C" >&6
31694if test "${wx_cv_func_backtrace+set}" = set; then
31695 echo $ECHO_N "(cached) $ECHO_C" >&6
31696else
31697
31698 cat >conftest.$ac_ext <<_ACEOF
31699/* confdefs.h. */
31700_ACEOF
31701cat confdefs.h >>conftest.$ac_ext
31702cat >>conftest.$ac_ext <<_ACEOF
31703/* end confdefs.h. */
31704#include <execinfo.h>
31705int
31706main ()
31707{
31708
31709 void *trace[1];
31710 char **messages;
31711
31712 backtrace(trace, 1);
31713 messages = backtrace_symbols(trace, 1);
31714
31715 ;
31716 return 0;
31717}
31718_ACEOF
31719rm -f conftest.$ac_objext
31720if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31721 (eval $ac_compile) 2>conftest.er1
31722 ac_status=$?
31723 grep -v '^ *+' conftest.er1 >conftest.err
31724 rm -f conftest.er1
31725 cat conftest.err >&5
31726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31727 (exit $ac_status); } &&
9dd0f6c2 31728 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
eaff0f0d
VZ
31729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31730 (eval $ac_try) 2>&5
31731 ac_status=$?
31732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31733 (exit $ac_status); }; } &&
31734 { ac_try='test -s conftest.$ac_objext'
31735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31736 (eval $ac_try) 2>&5
31737 ac_status=$?
31738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31739 (exit $ac_status); }; }; then
31740 wx_cv_func_backtrace=yes
31741else
31742 echo "$as_me: failed program was:" >&5
31743sed 's/^/| /' conftest.$ac_ext >&5
31744
31745wx_cv_func_backtrace=no
31746
31747fi
31748rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31749
31750
31751fi
31752echo "$as_me:$LINENO: result: $wx_cv_func_backtrace" >&5
31753echo "${ECHO_T}$wx_cv_func_backtrace" >&6
31754
31755
31756 if test "$wx_cv_func_backtrace" = "no"; then
31757 { echo "$as_me:$LINENO: WARNING: backtrace() is not available, wxStackWalker will not be available" >&5
31758echo "$as_me: WARNING: backtrace() is not available, wxStackWalker will not be available" >&2;}
31759 wxUSE_STACKWALKER=no
31760 else
31761 echo "$as_me:$LINENO: checking for __cxa_demangle() in <cxxabi.h>" >&5
31762echo $ECHO_N "checking for __cxa_demangle() in <cxxabi.h>... $ECHO_C" >&6
31763if test "${wx_cv_func_cxa_demangle+set}" = set; then
31764 echo $ECHO_N "(cached) $ECHO_C" >&6
31765else
31766
31767 cat >conftest.$ac_ext <<_ACEOF
31768/* confdefs.h. */
31769_ACEOF
31770cat confdefs.h >>conftest.$ac_ext
31771cat >>conftest.$ac_ext <<_ACEOF
31772/* end confdefs.h. */
31773#include <cxxabi.h>
31774int
31775main ()
31776{
31777
31778 int rc;
31779 __cxxabiv1::__cxa_demangle("foo", 0, 0, &rc);
31780
31781 ;
31782 return 0;
31783}
31784_ACEOF
dfe0c803
JS
31785rm -f conftest.$ac_objext conftest$ac_exeext
31786if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31787 (eval $ac_link) 2>conftest.er1
eaff0f0d
VZ
31788 ac_status=$?
31789 grep -v '^ *+' conftest.er1 >conftest.err
31790 rm -f conftest.er1
31791 cat conftest.err >&5
31792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31793 (exit $ac_status); } &&
9dd0f6c2 31794 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
eaff0f0d
VZ
31795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31796 (eval $ac_try) 2>&5
31797 ac_status=$?
31798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31799 (exit $ac_status); }; } &&
dfe0c803 31800 { ac_try='test -s conftest$ac_exeext'
eaff0f0d
VZ
31801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31802 (eval $ac_try) 2>&5
31803 ac_status=$?
31804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31805 (exit $ac_status); }; }; then
31806 wx_cv_func_cxa_demangle=yes
31807else
31808 echo "$as_me: failed program was:" >&5
31809sed 's/^/| /' conftest.$ac_ext >&5
31810
31811wx_cv_func_cxa_demangle=no
31812
31813fi
dfe0c803
JS
31814rm -f conftest.err conftest.$ac_objext \
31815 conftest$ac_exeext conftest.$ac_ext
eaff0f0d
VZ
31816
31817
31818fi
31819echo "$as_me:$LINENO: result: $wx_cv_func_cxa_demangle" >&5
31820echo "${ECHO_T}$wx_cv_func_cxa_demangle" >&6
31821
31822 if test "$wx_cv_func_cxa_demangle" = "yes"; then
31823 cat >>confdefs.h <<\_ACEOF
31824#define HAVE_CXA_DEMANGLE 1
31825_ACEOF
31826
31827 fi
31828 fi
31829
31830 ac_ext=c
31831ac_cpp='$CPP $CPPFLAGS'
31832ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31833ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31834ac_compiler_gnu=$ac_cv_c_compiler_gnu
31835
31836fi
31837
898beab1
DE
31838if test "$wxUSE_STACKWALKER" = "yes" -a "$USE_WIN32" != "1" -a "$USE_UNIX" != "1"; then
31839 { echo "$as_me:$LINENO: WARNING: wxStackWalker is only available on Win32 and UNIX... disabled" >&5
31840echo "$as_me: WARNING: wxStackWalker is only available on Win32 and UNIX... disabled" >&2;}
31841 wxUSE_STACKWALKER=no
31842fi
31843
31844
a848cd7e
SC
31845
31846
31847for ac_func in mkstemp mktemp
31848do
31849as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31850echo "$as_me:$LINENO: checking for $ac_func" >&5
31851echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31852if eval "test \"\${$as_ac_var+set}\" = set"; then
31853 echo $ECHO_N "(cached) $ECHO_C" >&6
31854else
31855 cat >conftest.$ac_ext <<_ACEOF
31856/* confdefs.h. */
31857_ACEOF
31858cat confdefs.h >>conftest.$ac_ext
31859cat >>conftest.$ac_ext <<_ACEOF
31860/* end confdefs.h. */
ac1cb8d3
VS
31861/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31862 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31863#define $ac_func innocuous_$ac_func
31864
a848cd7e
SC
31865/* System header to define __stub macros and hopefully few prototypes,
31866 which can conflict with char $ac_func (); below.
31867 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31868 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 31869
a848cd7e
SC
31870#ifdef __STDC__
31871# include <limits.h>
31872#else
31873# include <assert.h>
31874#endif
ac1cb8d3
VS
31875
31876#undef $ac_func
31877
a848cd7e
SC
31878/* Override any gcc2 internal prototype to avoid an error. */
31879#ifdef __cplusplus
31880extern "C"
31881{
31882#endif
31883/* We use char because int might match the return type of a gcc2
31884 builtin and then its argument prototype would still apply. */
31885char $ac_func ();
31886/* The GNU C library defines this for functions which it implements
31887 to always fail with ENOSYS. Some functions are actually named
31888 something starting with __ and the normal name is an alias. */
31889#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31890choke me
31891#else
31892char (*f) () = $ac_func;
31893#endif
31894#ifdef __cplusplus
31895}
31896#endif
31897
31898int
31899main ()
31900{
31901return f != $ac_func;
31902 ;
31903 return 0;
31904}
31905_ACEOF
31906rm -f conftest.$ac_objext conftest$ac_exeext
31907if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31908 (eval $ac_link) 2>conftest.er1
a848cd7e 31909 ac_status=$?
ac1cb8d3
VS
31910 grep -v '^ *+' conftest.er1 >conftest.err
31911 rm -f conftest.er1
31912 cat conftest.err >&5
a848cd7e
SC
31913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31914 (exit $ac_status); } &&
9dd0f6c2 31915 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31917 (eval $ac_try) 2>&5
31918 ac_status=$?
31919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31920 (exit $ac_status); }; } &&
31921 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31923 (eval $ac_try) 2>&5
31924 ac_status=$?
31925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31926 (exit $ac_status); }; }; then
31927 eval "$as_ac_var=yes"
31928else
31929 echo "$as_me: failed program was:" >&5
31930sed 's/^/| /' conftest.$ac_ext >&5
31931
31932eval "$as_ac_var=no"
31933fi
ac1cb8d3
VS
31934rm -f conftest.err conftest.$ac_objext \
31935 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31936fi
31937echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31938echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31939if test `eval echo '${'$as_ac_var'}'` = yes; then
31940 cat >>confdefs.h <<_ACEOF
31941#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31942_ACEOF
31943 break
31944fi
31945done
31946
31947
31948echo "$as_me:$LINENO: checking for statfs" >&5
31949echo $ECHO_N "checking for statfs... $ECHO_C" >&6
31950if test "${wx_cv_func_statfs+set}" = set; then
31951 echo $ECHO_N "(cached) $ECHO_C" >&6
31952else
31953 cat >conftest.$ac_ext <<_ACEOF
31954/* confdefs.h. */
31955_ACEOF
31956cat confdefs.h >>conftest.$ac_ext
31957cat >>conftest.$ac_ext <<_ACEOF
31958/* end confdefs.h. */
31959
31960 #if defined(__BSD__)
31961 #include <sys/param.h>
31962 #include <sys/mount.h>
31963 #else
31964 #include <sys/vfs.h>
31965 #endif
31966
31967int
31968main ()
31969{
31970
31971 long l;
31972 struct statfs fs;
31973 statfs("/", &fs);
31974 l = fs.f_bsize;
31975 l += fs.f_blocks;
31976 l += fs.f_bavail;
31977
31978 ;
31979 return 0;
31980}
31981_ACEOF
31982rm -f conftest.$ac_objext
31983if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 31984 (eval $ac_compile) 2>conftest.er1
a848cd7e 31985 ac_status=$?
ac1cb8d3
VS
31986 grep -v '^ *+' conftest.er1 >conftest.err
31987 rm -f conftest.er1
31988 cat conftest.err >&5
a848cd7e
SC
31989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31990 (exit $ac_status); } &&
9dd0f6c2 31991 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31993 (eval $ac_try) 2>&5
31994 ac_status=$?
31995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31996 (exit $ac_status); }; } &&
31997 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
31998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31999 (eval $ac_try) 2>&5
32000 ac_status=$?
32001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32002 (exit $ac_status); }; }; then
32003
32004 wx_cv_func_statfs=yes
32005
32006else
32007 echo "$as_me: failed program was:" >&5
32008sed 's/^/| /' conftest.$ac_ext >&5
32009
32010
32011 wx_cv_func_statfs=no
32012
32013
32014fi
ac1cb8d3 32015rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
32016
32017fi
32018echo "$as_me:$LINENO: result: $wx_cv_func_statfs" >&5
32019echo "${ECHO_T}$wx_cv_func_statfs" >&6
32020
32021if test "$wx_cv_func_statfs" = "yes"; then
32022 wx_cv_type_statvfs_t="struct statfs"
32023 cat >>confdefs.h <<\_ACEOF
32024#define HAVE_STATFS 1
32025_ACEOF
32026
32027else
32028 echo "$as_me:$LINENO: checking for statvfs" >&5
32029echo $ECHO_N "checking for statvfs... $ECHO_C" >&6
32030if test "${wx_cv_func_statvfs+set}" = set; then
32031 echo $ECHO_N "(cached) $ECHO_C" >&6
32032else
32033 cat >conftest.$ac_ext <<_ACEOF
32034/* confdefs.h. */
32035_ACEOF
32036cat confdefs.h >>conftest.$ac_ext
32037cat >>conftest.$ac_ext <<_ACEOF
32038/* end confdefs.h. */
32039
32040 #include <stddef.h>
32041 #include <sys/statvfs.h>
32042
32043int
32044main ()
32045{
32046
32047 statvfs("/", NULL);
32048
32049 ;
32050 return 0;
32051}
32052_ACEOF
32053rm -f conftest.$ac_objext
32054if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 32055 (eval $ac_compile) 2>conftest.er1
a848cd7e 32056 ac_status=$?
ac1cb8d3
VS
32057 grep -v '^ *+' conftest.er1 >conftest.err
32058 rm -f conftest.er1
32059 cat conftest.err >&5
a848cd7e
SC
32060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32061 (exit $ac_status); } &&
9dd0f6c2 32062 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32064 (eval $ac_try) 2>&5
32065 ac_status=$?
32066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32067 (exit $ac_status); }; } &&
32068 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
32069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32070 (eval $ac_try) 2>&5
32071 ac_status=$?
32072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32073 (exit $ac_status); }; }; then
32074 wx_cv_func_statvfs=yes
32075else
32076 echo "$as_me: failed program was:" >&5
32077sed 's/^/| /' conftest.$ac_ext >&5
32078
32079wx_cv_func_statvfs=no
32080
32081fi
ac1cb8d3 32082rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
32083
32084fi
32085echo "$as_me:$LINENO: result: $wx_cv_func_statvfs" >&5
32086echo "${ECHO_T}$wx_cv_func_statvfs" >&6
32087
32088 if test "$wx_cv_func_statvfs" = "yes"; then
32089
32090
32091 ac_ext=cc
32092ac_cpp='$CXXCPP $CPPFLAGS'
32093ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32094ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32095ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32096
32097
32098 echo "$as_me:$LINENO: checking for statvfs argument type" >&5
32099echo $ECHO_N "checking for statvfs argument type... $ECHO_C" >&6
32100if test "${wx_cv_type_statvfs_t+set}" = set; then
32101 echo $ECHO_N "(cached) $ECHO_C" >&6
32102else
32103 cat >conftest.$ac_ext <<_ACEOF
32104/* confdefs.h. */
32105_ACEOF
32106cat confdefs.h >>conftest.$ac_ext
32107cat >>conftest.$ac_ext <<_ACEOF
32108/* end confdefs.h. */
32109
32110 #include <sys/statvfs.h>
32111
32112int
32113main ()
32114{
32115
32116 long l;
32117 statvfs_t fs;
32118 statvfs("/", &fs);
32119 l = fs.f_bsize;
32120 l += fs.f_blocks;
32121 l += fs.f_bavail;
32122
32123 ;
32124 return 0;
32125}
32126_ACEOF
32127rm -f conftest.$ac_objext
32128if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 32129 (eval $ac_compile) 2>conftest.er1
a848cd7e 32130 ac_status=$?
ac1cb8d3
VS
32131 grep -v '^ *+' conftest.er1 >conftest.err
32132 rm -f conftest.er1
32133 cat conftest.err >&5
a848cd7e
SC
32134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32135 (exit $ac_status); } &&
9dd0f6c2 32136 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32138 (eval $ac_try) 2>&5
32139 ac_status=$?
32140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32141 (exit $ac_status); }; } &&
32142 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
32143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32144 (eval $ac_try) 2>&5
32145 ac_status=$?
32146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32147 (exit $ac_status); }; }; then
32148 wx_cv_type_statvfs_t=statvfs_t
32149else
32150 echo "$as_me: failed program was:" >&5
32151sed 's/^/| /' conftest.$ac_ext >&5
32152
32153
32154 cat >conftest.$ac_ext <<_ACEOF
32155/* confdefs.h. */
32156_ACEOF
32157cat confdefs.h >>conftest.$ac_ext
32158cat >>conftest.$ac_ext <<_ACEOF
32159/* end confdefs.h. */
32160
32161 #include <sys/statvfs.h>
32162
32163int
32164main ()
32165{
32166
32167 long l;
32168 struct statvfs fs;
32169 statvfs("/", &fs);
32170 l = fs.f_bsize;
32171 l += fs.f_blocks;
32172 l += fs.f_bavail;
32173
32174 ;
32175 return 0;
32176}
32177_ACEOF
32178rm -f conftest.$ac_objext
32179if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 32180 (eval $ac_compile) 2>conftest.er1
a848cd7e 32181 ac_status=$?
ac1cb8d3
VS
32182 grep -v '^ *+' conftest.er1 >conftest.err
32183 rm -f conftest.er1
32184 cat conftest.err >&5
a848cd7e
SC
32185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32186 (exit $ac_status); } &&
9dd0f6c2 32187 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32189 (eval $ac_try) 2>&5
32190 ac_status=$?
32191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32192 (exit $ac_status); }; } &&
32193 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
32194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32195 (eval $ac_try) 2>&5
32196 ac_status=$?
32197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32198 (exit $ac_status); }; }; then
32199 wx_cv_type_statvfs_t="struct statvfs"
32200else
32201 echo "$as_me: failed program was:" >&5
32202sed 's/^/| /' conftest.$ac_ext >&5
32203
32204wx_cv_type_statvfs_t="unknown"
32205
32206fi
ac1cb8d3 32207rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
32208
32209
32210fi
ac1cb8d3 32211rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
32212
32213fi
32214echo "$as_me:$LINENO: result: $wx_cv_type_statvfs_t" >&5
32215echo "${ECHO_T}$wx_cv_type_statvfs_t" >&6
32216
32217 ac_ext=c
32218ac_cpp='$CPP $CPPFLAGS'
32219ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32220ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32221ac_compiler_gnu=$ac_cv_c_compiler_gnu
32222
32223
32224 if test "$wx_cv_type_statvfs_t" != "unknown"; then
32225 cat >>confdefs.h <<\_ACEOF
32226#define HAVE_STATVFS 1
32227_ACEOF
32228
32229 fi
32230 else
32231 wx_cv_type_statvfs_t="unknown"
32232 fi
32233fi
32234
32235if test "$wx_cv_type_statvfs_t" != "unknown"; then
32236 cat >>confdefs.h <<_ACEOF
32237#define WX_STATFS_T $wx_cv_type_statvfs_t
32238_ACEOF
32239
32240else
32241 { echo "$as_me:$LINENO: WARNING: wxGetDiskSpace() function won't work without statfs()" >&5
32242echo "$as_me: WARNING: wxGetDiskSpace() function won't work without statfs()" >&2;}
32243fi
32244
32245if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
32246
32247
32248for ac_func in fcntl flock
32249do
32250as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32251echo "$as_me:$LINENO: checking for $ac_func" >&5
32252echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32253if eval "test \"\${$as_ac_var+set}\" = set"; then
32254 echo $ECHO_N "(cached) $ECHO_C" >&6
32255else
32256 cat >conftest.$ac_ext <<_ACEOF
32257/* confdefs.h. */
32258_ACEOF
32259cat confdefs.h >>conftest.$ac_ext
32260cat >>conftest.$ac_ext <<_ACEOF
32261/* end confdefs.h. */
ac1cb8d3
VS
32262/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32263 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32264#define $ac_func innocuous_$ac_func
32265
a848cd7e
SC
32266/* System header to define __stub macros and hopefully few prototypes,
32267 which can conflict with char $ac_func (); below.
32268 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32269 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 32270
a848cd7e
SC
32271#ifdef __STDC__
32272# include <limits.h>
32273#else
32274# include <assert.h>
32275#endif
ac1cb8d3
VS
32276
32277#undef $ac_func
32278
a848cd7e
SC
32279/* Override any gcc2 internal prototype to avoid an error. */
32280#ifdef __cplusplus
32281extern "C"
32282{
32283#endif
32284/* We use char because int might match the return type of a gcc2
32285 builtin and then its argument prototype would still apply. */
32286char $ac_func ();
32287/* The GNU C library defines this for functions which it implements
32288 to always fail with ENOSYS. Some functions are actually named
32289 something starting with __ and the normal name is an alias. */
32290#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32291choke me
32292#else
32293char (*f) () = $ac_func;
32294#endif
32295#ifdef __cplusplus
32296}
32297#endif
32298
32299int
32300main ()
32301{
32302return f != $ac_func;
32303 ;
32304 return 0;
32305}
32306_ACEOF
32307rm -f conftest.$ac_objext conftest$ac_exeext
32308if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32309 (eval $ac_link) 2>conftest.er1
a848cd7e 32310 ac_status=$?
ac1cb8d3
VS
32311 grep -v '^ *+' conftest.er1 >conftest.err
32312 rm -f conftest.er1
32313 cat conftest.err >&5
a848cd7e
SC
32314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32315 (exit $ac_status); } &&
9dd0f6c2 32316 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32318 (eval $ac_try) 2>&5
32319 ac_status=$?
32320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32321 (exit $ac_status); }; } &&
32322 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32324 (eval $ac_try) 2>&5
32325 ac_status=$?
32326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32327 (exit $ac_status); }; }; then
32328 eval "$as_ac_var=yes"
32329else
32330 echo "$as_me: failed program was:" >&5
32331sed 's/^/| /' conftest.$ac_ext >&5
32332
32333eval "$as_ac_var=no"
32334fi
ac1cb8d3
VS
32335rm -f conftest.err conftest.$ac_objext \
32336 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32337fi
32338echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32339echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32340if test `eval echo '${'$as_ac_var'}'` = yes; then
32341 cat >>confdefs.h <<_ACEOF
32342#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32343_ACEOF
32344 break
32345fi
32346done
32347
32348
32349 if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then
32350 { echo "$as_me:$LINENO: WARNING: wxSingleInstanceChecker not available" >&5
32351echo "$as_me: WARNING: wxSingleInstanceChecker not available" >&2;}
32352 wxUSE_SNGLINST_CHECKER=no
32353 fi
32354fi
32355
32356
32357for ac_func in timegm
32358do
32359as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32360echo "$as_me:$LINENO: checking for $ac_func" >&5
32361echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32362if eval "test \"\${$as_ac_var+set}\" = set"; then
32363 echo $ECHO_N "(cached) $ECHO_C" >&6
32364else
32365 cat >conftest.$ac_ext <<_ACEOF
32366/* confdefs.h. */
32367_ACEOF
32368cat confdefs.h >>conftest.$ac_ext
32369cat >>conftest.$ac_ext <<_ACEOF
32370/* end confdefs.h. */
ac1cb8d3
VS
32371/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32372 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32373#define $ac_func innocuous_$ac_func
32374
a848cd7e
SC
32375/* System header to define __stub macros and hopefully few prototypes,
32376 which can conflict with char $ac_func (); below.
32377 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32378 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 32379
a848cd7e
SC
32380#ifdef __STDC__
32381# include <limits.h>
32382#else
32383# include <assert.h>
32384#endif
ac1cb8d3
VS
32385
32386#undef $ac_func
32387
a848cd7e
SC
32388/* Override any gcc2 internal prototype to avoid an error. */
32389#ifdef __cplusplus
32390extern "C"
32391{
32392#endif
32393/* We use char because int might match the return type of a gcc2
32394 builtin and then its argument prototype would still apply. */
32395char $ac_func ();
32396/* The GNU C library defines this for functions which it implements
32397 to always fail with ENOSYS. Some functions are actually named
32398 something starting with __ and the normal name is an alias. */
32399#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32400choke me
32401#else
32402char (*f) () = $ac_func;
32403#endif
32404#ifdef __cplusplus
32405}
32406#endif
32407
32408int
32409main ()
32410{
32411return f != $ac_func;
32412 ;
32413 return 0;
32414}
32415_ACEOF
32416rm -f conftest.$ac_objext conftest$ac_exeext
32417if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32418 (eval $ac_link) 2>conftest.er1
a848cd7e 32419 ac_status=$?
ac1cb8d3
VS
32420 grep -v '^ *+' conftest.er1 >conftest.err
32421 rm -f conftest.er1
32422 cat conftest.err >&5
a848cd7e
SC
32423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32424 (exit $ac_status); } &&
9dd0f6c2 32425 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32427 (eval $ac_try) 2>&5
32428 ac_status=$?
32429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32430 (exit $ac_status); }; } &&
32431 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32433 (eval $ac_try) 2>&5
32434 ac_status=$?
32435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32436 (exit $ac_status); }; }; then
32437 eval "$as_ac_var=yes"
32438else
32439 echo "$as_me: failed program was:" >&5
32440sed 's/^/| /' conftest.$ac_ext >&5
32441
32442eval "$as_ac_var=no"
32443fi
ac1cb8d3
VS
32444rm -f conftest.err conftest.$ac_objext \
32445 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32446fi
32447echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32448echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32449if test `eval echo '${'$as_ac_var'}'` = yes; then
32450 cat >>confdefs.h <<_ACEOF
32451#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32452_ACEOF
32453
32454fi
32455done
32456
32457
32458
32459
32460for ac_func in putenv setenv
32461do
32462as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32463echo "$as_me:$LINENO: checking for $ac_func" >&5
32464echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32465if eval "test \"\${$as_ac_var+set}\" = set"; then
32466 echo $ECHO_N "(cached) $ECHO_C" >&6
32467else
32468 cat >conftest.$ac_ext <<_ACEOF
32469/* confdefs.h. */
32470_ACEOF
32471cat confdefs.h >>conftest.$ac_ext
32472cat >>conftest.$ac_ext <<_ACEOF
32473/* end confdefs.h. */
ac1cb8d3
VS
32474/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32475 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32476#define $ac_func innocuous_$ac_func
32477
a848cd7e
SC
32478/* System header to define __stub macros and hopefully few prototypes,
32479 which can conflict with char $ac_func (); below.
32480 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32481 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 32482
a848cd7e
SC
32483#ifdef __STDC__
32484# include <limits.h>
32485#else
32486# include <assert.h>
32487#endif
ac1cb8d3
VS
32488
32489#undef $ac_func
32490
a848cd7e
SC
32491/* Override any gcc2 internal prototype to avoid an error. */
32492#ifdef __cplusplus
32493extern "C"
32494{
32495#endif
32496/* We use char because int might match the return type of a gcc2
32497 builtin and then its argument prototype would still apply. */
32498char $ac_func ();
32499/* The GNU C library defines this for functions which it implements
32500 to always fail with ENOSYS. Some functions are actually named
32501 something starting with __ and the normal name is an alias. */
32502#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32503choke me
32504#else
32505char (*f) () = $ac_func;
32506#endif
32507#ifdef __cplusplus
32508}
32509#endif
32510
32511int
32512main ()
32513{
32514return f != $ac_func;
32515 ;
32516 return 0;
32517}
32518_ACEOF
32519rm -f conftest.$ac_objext conftest$ac_exeext
32520if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32521 (eval $ac_link) 2>conftest.er1
a848cd7e 32522 ac_status=$?
ac1cb8d3
VS
32523 grep -v '^ *+' conftest.er1 >conftest.err
32524 rm -f conftest.er1
32525 cat conftest.err >&5
a848cd7e
SC
32526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32527 (exit $ac_status); } &&
9dd0f6c2 32528 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32530 (eval $ac_try) 2>&5
32531 ac_status=$?
32532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32533 (exit $ac_status); }; } &&
32534 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32536 (eval $ac_try) 2>&5
32537 ac_status=$?
32538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32539 (exit $ac_status); }; }; then
32540 eval "$as_ac_var=yes"
32541else
32542 echo "$as_me: failed program was:" >&5
32543sed 's/^/| /' conftest.$ac_ext >&5
32544
32545eval "$as_ac_var=no"
32546fi
ac1cb8d3
VS
32547rm -f conftest.err conftest.$ac_objext \
32548 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32549fi
32550echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32551echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32552if test `eval echo '${'$as_ac_var'}'` = yes; then
32553 cat >>confdefs.h <<_ACEOF
32554#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32555_ACEOF
32556 break
32557fi
32558done
32559
32560
32561HAVE_SOME_SLEEP_FUNC=0
32562if test "$USE_BEOS" = 1; then
32563 cat >>confdefs.h <<\_ACEOF
32564#define HAVE_SLEEP 1
32565_ACEOF
32566
32567 HAVE_SOME_SLEEP_FUNC=1
32568fi
32569
32570if test "$USE_DARWIN" = 1; then
32571 cat >>confdefs.h <<\_ACEOF
32572#define HAVE_USLEEP 1
32573_ACEOF
32574
32575 HAVE_SOME_SLEEP_FUNC=1
32576fi
32577
32578if test "$HAVE_SOME_SLEEP_FUNC" != 1; then
32579 POSIX4_LINK=
32580
32581for ac_func in nanosleep
32582do
32583as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32584echo "$as_me:$LINENO: checking for $ac_func" >&5
32585echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32586if eval "test \"\${$as_ac_var+set}\" = set"; then
32587 echo $ECHO_N "(cached) $ECHO_C" >&6
32588else
32589 cat >conftest.$ac_ext <<_ACEOF
32590/* confdefs.h. */
32591_ACEOF
32592cat confdefs.h >>conftest.$ac_ext
32593cat >>conftest.$ac_ext <<_ACEOF
32594/* end confdefs.h. */
ac1cb8d3
VS
32595/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32596 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32597#define $ac_func innocuous_$ac_func
32598
a848cd7e
SC
32599/* System header to define __stub macros and hopefully few prototypes,
32600 which can conflict with char $ac_func (); below.
32601 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32602 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 32603
a848cd7e
SC
32604#ifdef __STDC__
32605# include <limits.h>
32606#else
32607# include <assert.h>
32608#endif
ac1cb8d3
VS
32609
32610#undef $ac_func
32611
a848cd7e
SC
32612/* Override any gcc2 internal prototype to avoid an error. */
32613#ifdef __cplusplus
32614extern "C"
32615{
32616#endif
32617/* We use char because int might match the return type of a gcc2
32618 builtin and then its argument prototype would still apply. */
32619char $ac_func ();
32620/* The GNU C library defines this for functions which it implements
32621 to always fail with ENOSYS. Some functions are actually named
32622 something starting with __ and the normal name is an alias. */
32623#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32624choke me
32625#else
32626char (*f) () = $ac_func;
32627#endif
32628#ifdef __cplusplus
32629}
32630#endif
32631
32632int
32633main ()
32634{
32635return f != $ac_func;
32636 ;
32637 return 0;
32638}
32639_ACEOF
32640rm -f conftest.$ac_objext conftest$ac_exeext
32641if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32642 (eval $ac_link) 2>conftest.er1
a848cd7e 32643 ac_status=$?
ac1cb8d3
VS
32644 grep -v '^ *+' conftest.er1 >conftest.err
32645 rm -f conftest.er1
32646 cat conftest.err >&5
a848cd7e
SC
32647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32648 (exit $ac_status); } &&
9dd0f6c2 32649 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32651 (eval $ac_try) 2>&5
32652 ac_status=$?
32653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32654 (exit $ac_status); }; } &&
32655 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32657 (eval $ac_try) 2>&5
32658 ac_status=$?
32659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32660 (exit $ac_status); }; }; then
32661 eval "$as_ac_var=yes"
32662else
32663 echo "$as_me: failed program was:" >&5
32664sed 's/^/| /' conftest.$ac_ext >&5
32665
32666eval "$as_ac_var=no"
32667fi
ac1cb8d3
VS
32668rm -f conftest.err conftest.$ac_objext \
32669 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32670fi
32671echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32672echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32673if test `eval echo '${'$as_ac_var'}'` = yes; then
32674 cat >>confdefs.h <<_ACEOF
32675#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32676_ACEOF
32677 cat >>confdefs.h <<\_ACEOF
32678#define HAVE_NANOSLEEP 1
32679_ACEOF
32680
32681else
32682
32683 echo "$as_me:$LINENO: checking for nanosleep in -lposix4" >&5
32684echo $ECHO_N "checking for nanosleep in -lposix4... $ECHO_C" >&6
32685if test "${ac_cv_lib_posix4_nanosleep+set}" = set; then
32686 echo $ECHO_N "(cached) $ECHO_C" >&6
32687else
32688 ac_check_lib_save_LIBS=$LIBS
32689LIBS="-lposix4 $LIBS"
32690cat >conftest.$ac_ext <<_ACEOF
32691/* confdefs.h. */
32692_ACEOF
32693cat confdefs.h >>conftest.$ac_ext
32694cat >>conftest.$ac_ext <<_ACEOF
32695/* end confdefs.h. */
32696
32697/* Override any gcc2 internal prototype to avoid an error. */
32698#ifdef __cplusplus
32699extern "C"
32700#endif
32701/* We use char because int might match the return type of a gcc2
32702 builtin and then its argument prototype would still apply. */
32703char nanosleep ();
32704int
32705main ()
32706{
32707nanosleep ();
32708 ;
32709 return 0;
32710}
32711_ACEOF
32712rm -f conftest.$ac_objext conftest$ac_exeext
32713if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32714 (eval $ac_link) 2>conftest.er1
a848cd7e 32715 ac_status=$?
ac1cb8d3
VS
32716 grep -v '^ *+' conftest.er1 >conftest.err
32717 rm -f conftest.er1
32718 cat conftest.err >&5
a848cd7e
SC
32719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32720 (exit $ac_status); } &&
9dd0f6c2 32721 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32723 (eval $ac_try) 2>&5
32724 ac_status=$?
32725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32726 (exit $ac_status); }; } &&
32727 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32729 (eval $ac_try) 2>&5
32730 ac_status=$?
32731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32732 (exit $ac_status); }; }; then
32733 ac_cv_lib_posix4_nanosleep=yes
32734else
32735 echo "$as_me: failed program was:" >&5
32736sed 's/^/| /' conftest.$ac_ext >&5
32737
32738ac_cv_lib_posix4_nanosleep=no
32739fi
ac1cb8d3
VS
32740rm -f conftest.err conftest.$ac_objext \
32741 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32742LIBS=$ac_check_lib_save_LIBS
32743fi
32744echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_nanosleep" >&5
32745echo "${ECHO_T}$ac_cv_lib_posix4_nanosleep" >&6
32746if test $ac_cv_lib_posix4_nanosleep = yes; then
32747
32748 cat >>confdefs.h <<\_ACEOF
32749#define HAVE_NANOSLEEP 1
32750_ACEOF
32751
32752 POSIX4_LINK=" -lposix4"
32753
32754else
32755
32756
32757for ac_func in usleep
32758do
32759as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32760echo "$as_me:$LINENO: checking for $ac_func" >&5
32761echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32762if eval "test \"\${$as_ac_var+set}\" = set"; then
32763 echo $ECHO_N "(cached) $ECHO_C" >&6
32764else
32765 cat >conftest.$ac_ext <<_ACEOF
32766/* confdefs.h. */
32767_ACEOF
32768cat confdefs.h >>conftest.$ac_ext
32769cat >>conftest.$ac_ext <<_ACEOF
32770/* end confdefs.h. */
ac1cb8d3
VS
32771/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32772 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32773#define $ac_func innocuous_$ac_func
32774
a848cd7e
SC
32775/* System header to define __stub macros and hopefully few prototypes,
32776 which can conflict with char $ac_func (); below.
32777 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32778 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 32779
a848cd7e
SC
32780#ifdef __STDC__
32781# include <limits.h>
32782#else
32783# include <assert.h>
32784#endif
ac1cb8d3
VS
32785
32786#undef $ac_func
32787
a848cd7e
SC
32788/* Override any gcc2 internal prototype to avoid an error. */
32789#ifdef __cplusplus
32790extern "C"
32791{
32792#endif
32793/* We use char because int might match the return type of a gcc2
32794 builtin and then its argument prototype would still apply. */
32795char $ac_func ();
32796/* The GNU C library defines this for functions which it implements
32797 to always fail with ENOSYS. Some functions are actually named
32798 something starting with __ and the normal name is an alias. */
32799#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32800choke me
32801#else
32802char (*f) () = $ac_func;
32803#endif
32804#ifdef __cplusplus
32805}
32806#endif
32807
32808int
32809main ()
32810{
32811return f != $ac_func;
32812 ;
32813 return 0;
32814}
32815_ACEOF
32816rm -f conftest.$ac_objext conftest$ac_exeext
32817if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32818 (eval $ac_link) 2>conftest.er1
a848cd7e 32819 ac_status=$?
ac1cb8d3
VS
32820 grep -v '^ *+' conftest.er1 >conftest.err
32821 rm -f conftest.er1
32822 cat conftest.err >&5
a848cd7e
SC
32823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32824 (exit $ac_status); } &&
9dd0f6c2 32825 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32827 (eval $ac_try) 2>&5
32828 ac_status=$?
32829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32830 (exit $ac_status); }; } &&
32831 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32833 (eval $ac_try) 2>&5
32834 ac_status=$?
32835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32836 (exit $ac_status); }; }; then
32837 eval "$as_ac_var=yes"
32838else
32839 echo "$as_me: failed program was:" >&5
32840sed 's/^/| /' conftest.$ac_ext >&5
32841
32842eval "$as_ac_var=no"
32843fi
ac1cb8d3
VS
32844rm -f conftest.err conftest.$ac_objext \
32845 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32846fi
32847echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32848echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32849if test `eval echo '${'$as_ac_var'}'` = yes; then
32850 cat >>confdefs.h <<_ACEOF
32851#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32852_ACEOF
32853 cat >>confdefs.h <<\_ACEOF
32854#define HAVE_USLEEP 1
32855_ACEOF
32856
32857else
32858 { echo "$as_me:$LINENO: WARNING: wxSleep() function will not work" >&5
32859echo "$as_me: WARNING: wxSleep() function will not work" >&2;}
32860
32861fi
32862done
32863
32864
32865
32866fi
32867
32868
32869
32870fi
32871done
32872
32873fi
32874
32875
32876
32877for ac_func in uname gethostname
32878do
32879as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32880echo "$as_me:$LINENO: checking for $ac_func" >&5
32881echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32882if eval "test \"\${$as_ac_var+set}\" = set"; then
32883 echo $ECHO_N "(cached) $ECHO_C" >&6
32884else
32885 cat >conftest.$ac_ext <<_ACEOF
32886/* confdefs.h. */
32887_ACEOF
32888cat confdefs.h >>conftest.$ac_ext
32889cat >>conftest.$ac_ext <<_ACEOF
32890/* end confdefs.h. */
ac1cb8d3
VS
32891/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32892 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32893#define $ac_func innocuous_$ac_func
32894
a848cd7e
SC
32895/* System header to define __stub macros and hopefully few prototypes,
32896 which can conflict with char $ac_func (); below.
32897 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32898 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 32899
a848cd7e
SC
32900#ifdef __STDC__
32901# include <limits.h>
32902#else
32903# include <assert.h>
32904#endif
ac1cb8d3
VS
32905
32906#undef $ac_func
32907
a848cd7e
SC
32908/* Override any gcc2 internal prototype to avoid an error. */
32909#ifdef __cplusplus
32910extern "C"
32911{
32912#endif
32913/* We use char because int might match the return type of a gcc2
32914 builtin and then its argument prototype would still apply. */
32915char $ac_func ();
32916/* The GNU C library defines this for functions which it implements
32917 to always fail with ENOSYS. Some functions are actually named
32918 something starting with __ and the normal name is an alias. */
32919#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32920choke me
32921#else
32922char (*f) () = $ac_func;
32923#endif
32924#ifdef __cplusplus
32925}
32926#endif
32927
32928int
32929main ()
32930{
32931return f != $ac_func;
32932 ;
32933 return 0;
32934}
32935_ACEOF
32936rm -f conftest.$ac_objext conftest$ac_exeext
32937if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32938 (eval $ac_link) 2>conftest.er1
a848cd7e 32939 ac_status=$?
ac1cb8d3
VS
32940 grep -v '^ *+' conftest.er1 >conftest.err
32941 rm -f conftest.er1
32942 cat conftest.err >&5
a848cd7e
SC
32943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32944 (exit $ac_status); } &&
9dd0f6c2 32945 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32947 (eval $ac_try) 2>&5
32948 ac_status=$?
32949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32950 (exit $ac_status); }; } &&
32951 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32953 (eval $ac_try) 2>&5
32954 ac_status=$?
32955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32956 (exit $ac_status); }; }; then
32957 eval "$as_ac_var=yes"
32958else
32959 echo "$as_me: failed program was:" >&5
32960sed 's/^/| /' conftest.$ac_ext >&5
32961
32962eval "$as_ac_var=no"
32963fi
ac1cb8d3
VS
32964rm -f conftest.err conftest.$ac_objext \
32965 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32966fi
32967echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32968echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32969if test `eval echo '${'$as_ac_var'}'` = yes; then
32970 cat >>confdefs.h <<_ACEOF
32971#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32972_ACEOF
32973 break
32974fi
32975done
32976
32977
32978
32979
32980ac_ext=cc
32981ac_cpp='$CXXCPP $CPPFLAGS'
32982ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32983ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32984ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32985
32986
32987
32988for ac_func in strtok_r
32989do
32990as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32991echo "$as_me:$LINENO: checking for $ac_func" >&5
32992echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32993if eval "test \"\${$as_ac_var+set}\" = set"; then
32994 echo $ECHO_N "(cached) $ECHO_C" >&6
32995else
32996 cat >conftest.$ac_ext <<_ACEOF
32997/* confdefs.h. */
32998_ACEOF
32999cat confdefs.h >>conftest.$ac_ext
33000cat >>conftest.$ac_ext <<_ACEOF
33001/* end confdefs.h. */
ac1cb8d3
VS
33002/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33003 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33004#define $ac_func innocuous_$ac_func
33005
a848cd7e
SC
33006/* System header to define __stub macros and hopefully few prototypes,
33007 which can conflict with char $ac_func (); below.
33008 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33009 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 33010
a848cd7e
SC
33011#ifdef __STDC__
33012# include <limits.h>
33013#else
33014# include <assert.h>
33015#endif
ac1cb8d3
VS
33016
33017#undef $ac_func
33018
a848cd7e
SC
33019/* Override any gcc2 internal prototype to avoid an error. */
33020#ifdef __cplusplus
33021extern "C"
33022{
33023#endif
33024/* We use char because int might match the return type of a gcc2
33025 builtin and then its argument prototype would still apply. */
33026char $ac_func ();
33027/* The GNU C library defines this for functions which it implements
33028 to always fail with ENOSYS. Some functions are actually named
33029 something starting with __ and the normal name is an alias. */
33030#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33031choke me
33032#else
33033char (*f) () = $ac_func;
33034#endif
33035#ifdef __cplusplus
33036}
33037#endif
33038
33039int
33040main ()
33041{
33042return f != $ac_func;
33043 ;
33044 return 0;
33045}
33046_ACEOF
33047rm -f conftest.$ac_objext conftest$ac_exeext
33048if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33049 (eval $ac_link) 2>conftest.er1
a848cd7e 33050 ac_status=$?
ac1cb8d3
VS
33051 grep -v '^ *+' conftest.er1 >conftest.err
33052 rm -f conftest.er1
33053 cat conftest.err >&5
a848cd7e
SC
33054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33055 (exit $ac_status); } &&
9dd0f6c2 33056 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33058 (eval $ac_try) 2>&5
33059 ac_status=$?
33060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33061 (exit $ac_status); }; } &&
33062 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33064 (eval $ac_try) 2>&5
33065 ac_status=$?
33066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33067 (exit $ac_status); }; }; then
33068 eval "$as_ac_var=yes"
33069else
33070 echo "$as_me: failed program was:" >&5
33071sed 's/^/| /' conftest.$ac_ext >&5
33072
33073eval "$as_ac_var=no"
33074fi
ac1cb8d3
VS
33075rm -f conftest.err conftest.$ac_objext \
33076 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33077fi
33078echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33079echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33080if test `eval echo '${'$as_ac_var'}'` = yes; then
33081 cat >>confdefs.h <<_ACEOF
33082#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33083_ACEOF
33084
33085fi
33086done
33087
33088
33089ac_ext=c
33090ac_cpp='$CPP $CPPFLAGS'
33091ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33092ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33093ac_compiler_gnu=$ac_cv_c_compiler_gnu
33094
33095
33096INET_LINK=
33097
33098for ac_func in inet_addr
33099do
33100as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33101echo "$as_me:$LINENO: checking for $ac_func" >&5
33102echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33103if eval "test \"\${$as_ac_var+set}\" = set"; then
33104 echo $ECHO_N "(cached) $ECHO_C" >&6
33105else
33106 cat >conftest.$ac_ext <<_ACEOF
33107/* confdefs.h. */
33108_ACEOF
33109cat confdefs.h >>conftest.$ac_ext
33110cat >>conftest.$ac_ext <<_ACEOF
33111/* end confdefs.h. */
ac1cb8d3
VS
33112/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33113 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33114#define $ac_func innocuous_$ac_func
33115
a848cd7e
SC
33116/* System header to define __stub macros and hopefully few prototypes,
33117 which can conflict with char $ac_func (); below.
33118 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33119 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 33120
a848cd7e
SC
33121#ifdef __STDC__
33122# include <limits.h>
33123#else
33124# include <assert.h>
33125#endif
ac1cb8d3
VS
33126
33127#undef $ac_func
33128
a848cd7e
SC
33129/* Override any gcc2 internal prototype to avoid an error. */
33130#ifdef __cplusplus
33131extern "C"
33132{
33133#endif
33134/* We use char because int might match the return type of a gcc2
33135 builtin and then its argument prototype would still apply. */
33136char $ac_func ();
33137/* The GNU C library defines this for functions which it implements
33138 to always fail with ENOSYS. Some functions are actually named
33139 something starting with __ and the normal name is an alias. */
33140#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33141choke me
33142#else
33143char (*f) () = $ac_func;
33144#endif
33145#ifdef __cplusplus
33146}
33147#endif
33148
33149int
33150main ()
33151{
33152return f != $ac_func;
33153 ;
33154 return 0;
33155}
33156_ACEOF
33157rm -f conftest.$ac_objext conftest$ac_exeext
33158if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33159 (eval $ac_link) 2>conftest.er1
a848cd7e 33160 ac_status=$?
ac1cb8d3
VS
33161 grep -v '^ *+' conftest.er1 >conftest.err
33162 rm -f conftest.er1
33163 cat conftest.err >&5
a848cd7e
SC
33164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33165 (exit $ac_status); } &&
9dd0f6c2 33166 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33168 (eval $ac_try) 2>&5
33169 ac_status=$?
33170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33171 (exit $ac_status); }; } &&
33172 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33174 (eval $ac_try) 2>&5
33175 ac_status=$?
33176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33177 (exit $ac_status); }; }; then
33178 eval "$as_ac_var=yes"
33179else
33180 echo "$as_me: failed program was:" >&5
33181sed 's/^/| /' conftest.$ac_ext >&5
33182
33183eval "$as_ac_var=no"
33184fi
ac1cb8d3
VS
33185rm -f conftest.err conftest.$ac_objext \
33186 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33187fi
33188echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33189echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33190if test `eval echo '${'$as_ac_var'}'` = yes; then
33191 cat >>confdefs.h <<_ACEOF
33192#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33193_ACEOF
33194 cat >>confdefs.h <<\_ACEOF
33195#define HAVE_INET_ADDR 1
33196_ACEOF
33197
33198else
33199
33200 echo "$as_me:$LINENO: checking for inet_addr in -lnsl" >&5
33201echo $ECHO_N "checking for inet_addr in -lnsl... $ECHO_C" >&6
33202if test "${ac_cv_lib_nsl_inet_addr+set}" = set; then
33203 echo $ECHO_N "(cached) $ECHO_C" >&6
33204else
33205 ac_check_lib_save_LIBS=$LIBS
33206LIBS="-lnsl $LIBS"
33207cat >conftest.$ac_ext <<_ACEOF
33208/* confdefs.h. */
33209_ACEOF
33210cat confdefs.h >>conftest.$ac_ext
33211cat >>conftest.$ac_ext <<_ACEOF
33212/* end confdefs.h. */
33213
33214/* Override any gcc2 internal prototype to avoid an error. */
33215#ifdef __cplusplus
33216extern "C"
33217#endif
33218/* We use char because int might match the return type of a gcc2
33219 builtin and then its argument prototype would still apply. */
33220char inet_addr ();
33221int
33222main ()
33223{
33224inet_addr ();
33225 ;
33226 return 0;
33227}
33228_ACEOF
33229rm -f conftest.$ac_objext conftest$ac_exeext
33230if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33231 (eval $ac_link) 2>conftest.er1
a848cd7e 33232 ac_status=$?
ac1cb8d3
VS
33233 grep -v '^ *+' conftest.er1 >conftest.err
33234 rm -f conftest.er1
33235 cat conftest.err >&5
a848cd7e
SC
33236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33237 (exit $ac_status); } &&
9dd0f6c2 33238 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33240 (eval $ac_try) 2>&5
33241 ac_status=$?
33242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33243 (exit $ac_status); }; } &&
33244 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33246 (eval $ac_try) 2>&5
33247 ac_status=$?
33248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33249 (exit $ac_status); }; }; then
33250 ac_cv_lib_nsl_inet_addr=yes
33251else
33252 echo "$as_me: failed program was:" >&5
33253sed 's/^/| /' conftest.$ac_ext >&5
33254
33255ac_cv_lib_nsl_inet_addr=no
33256fi
ac1cb8d3
VS
33257rm -f conftest.err conftest.$ac_objext \
33258 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33259LIBS=$ac_check_lib_save_LIBS
33260fi
33261echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_inet_addr" >&5
33262echo "${ECHO_T}$ac_cv_lib_nsl_inet_addr" >&6
33263if test $ac_cv_lib_nsl_inet_addr = yes; then
33264 INET_LINK="nsl"
33265else
33266
33267 echo "$as_me:$LINENO: checking for inet_addr in -lresolv" >&5
33268echo $ECHO_N "checking for inet_addr in -lresolv... $ECHO_C" >&6
33269if test "${ac_cv_lib_resolv_inet_addr+set}" = set; then
33270 echo $ECHO_N "(cached) $ECHO_C" >&6
33271else
33272 ac_check_lib_save_LIBS=$LIBS
33273LIBS="-lresolv $LIBS"
33274cat >conftest.$ac_ext <<_ACEOF
33275/* confdefs.h. */
33276_ACEOF
33277cat confdefs.h >>conftest.$ac_ext
33278cat >>conftest.$ac_ext <<_ACEOF
33279/* end confdefs.h. */
33280
33281/* Override any gcc2 internal prototype to avoid an error. */
33282#ifdef __cplusplus
33283extern "C"
33284#endif
33285/* We use char because int might match the return type of a gcc2
33286 builtin and then its argument prototype would still apply. */
33287char inet_addr ();
33288int
33289main ()
33290{
33291inet_addr ();
33292 ;
33293 return 0;
33294}
33295_ACEOF
33296rm -f conftest.$ac_objext conftest$ac_exeext
33297if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33298 (eval $ac_link) 2>conftest.er1
a848cd7e 33299 ac_status=$?
ac1cb8d3
VS
33300 grep -v '^ *+' conftest.er1 >conftest.err
33301 rm -f conftest.er1
33302 cat conftest.err >&5
a848cd7e
SC
33303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33304 (exit $ac_status); } &&
9dd0f6c2 33305 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33307 (eval $ac_try) 2>&5
33308 ac_status=$?
33309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33310 (exit $ac_status); }; } &&
33311 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33313 (eval $ac_try) 2>&5
33314 ac_status=$?
33315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33316 (exit $ac_status); }; }; then
33317 ac_cv_lib_resolv_inet_addr=yes
33318else
33319 echo "$as_me: failed program was:" >&5
33320sed 's/^/| /' conftest.$ac_ext >&5
33321
33322ac_cv_lib_resolv_inet_addr=no
33323fi
ac1cb8d3
VS
33324rm -f conftest.err conftest.$ac_objext \
33325 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33326LIBS=$ac_check_lib_save_LIBS
33327fi
33328echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_addr" >&5
33329echo "${ECHO_T}$ac_cv_lib_resolv_inet_addr" >&6
33330if test $ac_cv_lib_resolv_inet_addr = yes; then
33331 INET_LINK="resolv"
33332else
33333
33334 echo "$as_me:$LINENO: checking for inet_addr in -lsocket" >&5
33335echo $ECHO_N "checking for inet_addr in -lsocket... $ECHO_C" >&6
33336if test "${ac_cv_lib_socket_inet_addr+set}" = set; then
33337 echo $ECHO_N "(cached) $ECHO_C" >&6
33338else
33339 ac_check_lib_save_LIBS=$LIBS
33340LIBS="-lsocket $LIBS"
33341cat >conftest.$ac_ext <<_ACEOF
33342/* confdefs.h. */
33343_ACEOF
33344cat confdefs.h >>conftest.$ac_ext
33345cat >>conftest.$ac_ext <<_ACEOF
33346/* end confdefs.h. */
33347
33348/* Override any gcc2 internal prototype to avoid an error. */
33349#ifdef __cplusplus
33350extern "C"
33351#endif
33352/* We use char because int might match the return type of a gcc2
33353 builtin and then its argument prototype would still apply. */
33354char inet_addr ();
33355int
33356main ()
33357{
33358inet_addr ();
33359 ;
33360 return 0;
33361}
33362_ACEOF
33363rm -f conftest.$ac_objext conftest$ac_exeext
33364if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33365 (eval $ac_link) 2>conftest.er1
a848cd7e 33366 ac_status=$?
ac1cb8d3
VS
33367 grep -v '^ *+' conftest.er1 >conftest.err
33368 rm -f conftest.er1
33369 cat conftest.err >&5
a848cd7e
SC
33370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33371 (exit $ac_status); } &&
9dd0f6c2 33372 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33374 (eval $ac_try) 2>&5
33375 ac_status=$?
33376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33377 (exit $ac_status); }; } &&
33378 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33380 (eval $ac_try) 2>&5
33381 ac_status=$?
33382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33383 (exit $ac_status); }; }; then
33384 ac_cv_lib_socket_inet_addr=yes
33385else
33386 echo "$as_me: failed program was:" >&5
33387sed 's/^/| /' conftest.$ac_ext >&5
33388
33389ac_cv_lib_socket_inet_addr=no
33390fi
ac1cb8d3
VS
33391rm -f conftest.err conftest.$ac_objext \
33392 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33393LIBS=$ac_check_lib_save_LIBS
33394fi
33395echo "$as_me:$LINENO: result: $ac_cv_lib_socket_inet_addr" >&5
33396echo "${ECHO_T}$ac_cv_lib_socket_inet_addr" >&6
33397if test $ac_cv_lib_socket_inet_addr = yes; then
33398 INET_LINK="socket"
33399
33400fi
33401
33402
33403
33404fi
33405
33406
33407
33408fi
33409
33410
33411
33412fi
33413done
33414
33415
33416
33417for ac_func in inet_aton
33418do
33419as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33420echo "$as_me:$LINENO: checking for $ac_func" >&5
33421echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33422if eval "test \"\${$as_ac_var+set}\" = set"; then
33423 echo $ECHO_N "(cached) $ECHO_C" >&6
33424else
33425 cat >conftest.$ac_ext <<_ACEOF
33426/* confdefs.h. */
33427_ACEOF
33428cat confdefs.h >>conftest.$ac_ext
33429cat >>conftest.$ac_ext <<_ACEOF
33430/* end confdefs.h. */
ac1cb8d3
VS
33431/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33432 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33433#define $ac_func innocuous_$ac_func
33434
a848cd7e
SC
33435/* System header to define __stub macros and hopefully few prototypes,
33436 which can conflict with char $ac_func (); below.
33437 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33438 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 33439
a848cd7e
SC
33440#ifdef __STDC__
33441# include <limits.h>
33442#else
33443# include <assert.h>
33444#endif
ac1cb8d3
VS
33445
33446#undef $ac_func
33447
a848cd7e
SC
33448/* Override any gcc2 internal prototype to avoid an error. */
33449#ifdef __cplusplus
33450extern "C"
33451{
33452#endif
33453/* We use char because int might match the return type of a gcc2
33454 builtin and then its argument prototype would still apply. */
33455char $ac_func ();
33456/* The GNU C library defines this for functions which it implements
33457 to always fail with ENOSYS. Some functions are actually named
33458 something starting with __ and the normal name is an alias. */
33459#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33460choke me
33461#else
33462char (*f) () = $ac_func;
33463#endif
33464#ifdef __cplusplus
33465}
33466#endif
33467
33468int
33469main ()
33470{
33471return f != $ac_func;
33472 ;
33473 return 0;
33474}
33475_ACEOF
33476rm -f conftest.$ac_objext conftest$ac_exeext
33477if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33478 (eval $ac_link) 2>conftest.er1
a848cd7e 33479 ac_status=$?
ac1cb8d3
VS
33480 grep -v '^ *+' conftest.er1 >conftest.err
33481 rm -f conftest.er1
33482 cat conftest.err >&5
a848cd7e
SC
33483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33484 (exit $ac_status); } &&
9dd0f6c2 33485 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33487 (eval $ac_try) 2>&5
33488 ac_status=$?
33489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33490 (exit $ac_status); }; } &&
33491 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33493 (eval $ac_try) 2>&5
33494 ac_status=$?
33495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33496 (exit $ac_status); }; }; then
33497 eval "$as_ac_var=yes"
33498else
33499 echo "$as_me: failed program was:" >&5
33500sed 's/^/| /' conftest.$ac_ext >&5
33501
33502eval "$as_ac_var=no"
33503fi
ac1cb8d3
VS
33504rm -f conftest.err conftest.$ac_objext \
33505 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33506fi
33507echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33508echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33509if test `eval echo '${'$as_ac_var'}'` = yes; then
33510 cat >>confdefs.h <<_ACEOF
33511#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33512_ACEOF
33513 cat >>confdefs.h <<\_ACEOF
33514#define HAVE_INET_ATON 1
33515_ACEOF
33516
33517else
33518
33519 as_ac_Lib=`echo "ac_cv_lib_$INET_LINK''_inet_aton" | $as_tr_sh`
33520echo "$as_me:$LINENO: checking for inet_aton in -l$INET_LINK" >&5
33521echo $ECHO_N "checking for inet_aton in -l$INET_LINK... $ECHO_C" >&6
33522if eval "test \"\${$as_ac_Lib+set}\" = set"; then
33523 echo $ECHO_N "(cached) $ECHO_C" >&6
33524else
33525 ac_check_lib_save_LIBS=$LIBS
33526LIBS="-l$INET_LINK $LIBS"
33527cat >conftest.$ac_ext <<_ACEOF
33528/* confdefs.h. */
33529_ACEOF
33530cat confdefs.h >>conftest.$ac_ext
33531cat >>conftest.$ac_ext <<_ACEOF
33532/* end confdefs.h. */
33533
33534/* Override any gcc2 internal prototype to avoid an error. */
33535#ifdef __cplusplus
33536extern "C"
33537#endif
33538/* We use char because int might match the return type of a gcc2
33539 builtin and then its argument prototype would still apply. */
33540char inet_aton ();
33541int
33542main ()
33543{
33544inet_aton ();
33545 ;
33546 return 0;
33547}
33548_ACEOF
33549rm -f conftest.$ac_objext conftest$ac_exeext
33550if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33551 (eval $ac_link) 2>conftest.er1
a848cd7e 33552 ac_status=$?
ac1cb8d3
VS
33553 grep -v '^ *+' conftest.er1 >conftest.err
33554 rm -f conftest.er1
33555 cat conftest.err >&5
a848cd7e
SC
33556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33557 (exit $ac_status); } &&
9dd0f6c2 33558 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33560 (eval $ac_try) 2>&5
33561 ac_status=$?
33562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33563 (exit $ac_status); }; } &&
33564 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33566 (eval $ac_try) 2>&5
33567 ac_status=$?
33568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33569 (exit $ac_status); }; }; then
33570 eval "$as_ac_Lib=yes"
33571else
33572 echo "$as_me: failed program was:" >&5
33573sed 's/^/| /' conftest.$ac_ext >&5
33574
33575eval "$as_ac_Lib=no"
33576fi
ac1cb8d3
VS
33577rm -f conftest.err conftest.$ac_objext \
33578 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33579LIBS=$ac_check_lib_save_LIBS
33580fi
33581echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
33582echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
33583if test `eval echo '${'$as_ac_Lib'}'` = yes; then
33584 cat >>confdefs.h <<\_ACEOF
33585#define HAVE_INET_ATON 1
33586_ACEOF
33587
33588fi
33589
33590
33591fi
33592done
33593
33594
33595if test "x$INET_LINK" != "x"; then
33596 cat >>confdefs.h <<\_ACEOF
33597#define HAVE_INET_ADDR 1
33598_ACEOF
33599
33600 INET_LINK=" -l$INET_LINK"
33601fi
33602
33603fi
33604
33605
33606
33607EXTRALIBS_ESD=
33608echo "$as_me:$LINENO: checking for esd_close in -lesd" >&5
33609echo $ECHO_N "checking for esd_close in -lesd... $ECHO_C" >&6
33610if test "${ac_cv_lib_esd_esd_close+set}" = set; then
33611 echo $ECHO_N "(cached) $ECHO_C" >&6
33612else
33613 ac_check_lib_save_LIBS=$LIBS
33614LIBS="-lesd $LIBS"
33615cat >conftest.$ac_ext <<_ACEOF
33616/* confdefs.h. */
33617_ACEOF
33618cat confdefs.h >>conftest.$ac_ext
33619cat >>conftest.$ac_ext <<_ACEOF
33620/* end confdefs.h. */
33621
33622/* Override any gcc2 internal prototype to avoid an error. */
33623#ifdef __cplusplus
33624extern "C"
33625#endif
33626/* We use char because int might match the return type of a gcc2
33627 builtin and then its argument prototype would still apply. */
33628char esd_close ();
33629int
33630main ()
33631{
33632esd_close ();
33633 ;
33634 return 0;
33635}
33636_ACEOF
33637rm -f conftest.$ac_objext conftest$ac_exeext
33638if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33639 (eval $ac_link) 2>conftest.er1
a848cd7e 33640 ac_status=$?
ac1cb8d3
VS
33641 grep -v '^ *+' conftest.er1 >conftest.err
33642 rm -f conftest.er1
33643 cat conftest.err >&5
a848cd7e
SC
33644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33645 (exit $ac_status); } &&
9dd0f6c2 33646 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33648 (eval $ac_try) 2>&5
33649 ac_status=$?
33650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33651 (exit $ac_status); }; } &&
33652 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33654 (eval $ac_try) 2>&5
33655 ac_status=$?
33656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33657 (exit $ac_status); }; }; then
33658 ac_cv_lib_esd_esd_close=yes
33659else
33660 echo "$as_me: failed program was:" >&5
33661sed 's/^/| /' conftest.$ac_ext >&5
33662
33663ac_cv_lib_esd_esd_close=no
33664fi
ac1cb8d3
VS
33665rm -f conftest.err conftest.$ac_objext \
33666 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33667LIBS=$ac_check_lib_save_LIBS
33668fi
33669echo "$as_me:$LINENO: result: $ac_cv_lib_esd_esd_close" >&5
33670echo "${ECHO_T}$ac_cv_lib_esd_esd_close" >&6
33671if test $ac_cv_lib_esd_esd_close = yes; then
33672
33673
33674for ac_header in esd.h
33675do
33676as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
33677if eval "test \"\${$as_ac_Header+set}\" = set"; then
33678 echo "$as_me:$LINENO: checking for $ac_header" >&5
33679echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
33680if eval "test \"\${$as_ac_Header+set}\" = set"; then
33681 echo $ECHO_N "(cached) $ECHO_C" >&6
33682fi
33683echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
33684echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
33685else
33686 # Is the header compilable?
33687echo "$as_me:$LINENO: checking $ac_header usability" >&5
33688echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
33689cat >conftest.$ac_ext <<_ACEOF
33690/* confdefs.h. */
33691_ACEOF
33692cat confdefs.h >>conftest.$ac_ext
33693cat >>conftest.$ac_ext <<_ACEOF
33694/* end confdefs.h. */
33695$ac_includes_default
33696#include <$ac_header>
33697_ACEOF
33698rm -f conftest.$ac_objext
33699if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 33700 (eval $ac_compile) 2>conftest.er1
a848cd7e 33701 ac_status=$?
ac1cb8d3
VS
33702 grep -v '^ *+' conftest.er1 >conftest.err
33703 rm -f conftest.er1
33704 cat conftest.err >&5
a848cd7e
SC
33705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33706 (exit $ac_status); } &&
9dd0f6c2 33707 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33709 (eval $ac_try) 2>&5
33710 ac_status=$?
33711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33712 (exit $ac_status); }; } &&
33713 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
33714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33715 (eval $ac_try) 2>&5
33716 ac_status=$?
33717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33718 (exit $ac_status); }; }; then
33719 ac_header_compiler=yes
33720else
33721 echo "$as_me: failed program was:" >&5
33722sed 's/^/| /' conftest.$ac_ext >&5
33723
33724ac_header_compiler=no
33725fi
ac1cb8d3 33726rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
33727echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33728echo "${ECHO_T}$ac_header_compiler" >&6
33729
33730# Is the header present?
33731echo "$as_me:$LINENO: checking $ac_header presence" >&5
33732echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
33733cat >conftest.$ac_ext <<_ACEOF
33734/* confdefs.h. */
33735_ACEOF
33736cat confdefs.h >>conftest.$ac_ext
33737cat >>conftest.$ac_ext <<_ACEOF
33738/* end confdefs.h. */
33739#include <$ac_header>
33740_ACEOF
33741if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
33742 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
33743 ac_status=$?
33744 grep -v '^ *+' conftest.er1 >conftest.err
33745 rm -f conftest.er1
33746 cat conftest.err >&5
33747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33748 (exit $ac_status); } >/dev/null; then
33749 if test -s conftest.err; then
33750 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 33751 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
33752 else
33753 ac_cpp_err=
33754 fi
33755else
33756 ac_cpp_err=yes
33757fi
33758if test -z "$ac_cpp_err"; then
33759 ac_header_preproc=yes
33760else
33761 echo "$as_me: failed program was:" >&5
33762sed 's/^/| /' conftest.$ac_ext >&5
33763
33764 ac_header_preproc=no
33765fi
33766rm -f conftest.err conftest.$ac_ext
33767echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33768echo "${ECHO_T}$ac_header_preproc" >&6
33769
33770# So? What about this header?
ac1cb8d3
VS
33771case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33772 yes:no: )
a848cd7e
SC
33773 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
33774echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
33775 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
33776echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
33777 ac_header_preproc=yes
a848cd7e 33778 ;;
ac1cb8d3 33779 no:yes:* )
a848cd7e
SC
33780 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
33781echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
33782 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
33783echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
33784 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
33785echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
33786 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
33787echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
33788 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
33789echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
33790 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
33791echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
33792 (
33793 cat <<\_ASBOX
ac1cb8d3
VS
33794## ----------------------------------------- ##
33795## Report this to wx-dev@lists.wxwidgets.org ##
33796## ----------------------------------------- ##
a848cd7e
SC
33797_ASBOX
33798 ) |
33799 sed "s/^/$as_me: WARNING: /" >&2
33800 ;;
33801esac
33802echo "$as_me:$LINENO: checking for $ac_header" >&5
33803echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
33804if eval "test \"\${$as_ac_Header+set}\" = set"; then
33805 echo $ECHO_N "(cached) $ECHO_C" >&6
33806else
ac1cb8d3 33807 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
33808fi
33809echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
33810echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
33811
33812fi
33813if test `eval echo '${'$as_ac_Header'}'` = yes; then
33814 cat >>confdefs.h <<_ACEOF
33815#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
33816_ACEOF
33817
33818 EXTRALIBS_ESD="-lesd"
33819
33820fi
33821
33822done
33823
33824
33825fi
33826
33827
33828
33829echo "$as_me:$LINENO: checking for known CD-ROM interface" >&5
33830echo $ECHO_N "checking for known CD-ROM interface... $ECHO_C" >&6
33831cat >conftest.$ac_ext <<_ACEOF
33832/* confdefs.h. */
33833_ACEOF
33834cat confdefs.h >>conftest.$ac_ext
33835cat >>conftest.$ac_ext <<_ACEOF
33836/* end confdefs.h. */
33837#ifdef __linux__
33838 #include <linux/cdrom.h>
33839 #else
33840 /* For Solaris */
33841 #include <sys/cdio.h>
33842 #endif
33843
33844int
33845main ()
33846{
33847struct cdrom_tocentry entry, old_entry;
33848 ;
33849 return 0;
33850}
33851_ACEOF
33852rm -f conftest.$ac_objext
33853if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 33854 (eval $ac_compile) 2>conftest.er1
a848cd7e 33855 ac_status=$?
ac1cb8d3
VS
33856 grep -v '^ *+' conftest.er1 >conftest.err
33857 rm -f conftest.er1
33858 cat conftest.err >&5
a848cd7e
SC
33859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33860 (exit $ac_status); } &&
9dd0f6c2 33861 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33863 (eval $ac_try) 2>&5
33864 ac_status=$?
33865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33866 (exit $ac_status); }; } &&
33867 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
33868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33869 (eval $ac_try) 2>&5
33870 ac_status=$?
33871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33872 (exit $ac_status); }; }; then
33873 echo "$as_me:$LINENO: result: yes" >&5
33874echo "${ECHO_T}yes" >&6
33875 cat >>confdefs.h <<\_ACEOF
33876#define HAVE_KNOWN_CDROM_INTERFACE 1
33877_ACEOF
33878
33879else
33880 echo "$as_me: failed program was:" >&5
33881sed 's/^/| /' conftest.$ac_ext >&5
33882
33883echo "$as_me:$LINENO: result: no" >&5
33884echo "${ECHO_T}no" >&6
33885fi
ac1cb8d3 33886rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
33887
33888
33889cat >confcache <<\_ACEOF
33890# This file is a shell script that caches the results of configure
33891# tests run on this system so they can be shared between configure
33892# scripts and configure runs, see configure's option --config-cache.
33893# It is not useful on other systems. If it contains results you don't
33894# want to keep, you may remove or edit it.
33895#
33896# config.status only pays attention to the cache file if you give it
33897# the --recheck option to rerun configure.
33898#
33899# `ac_cv_env_foo' variables (set or unset) will be overridden when
33900# loading this file, other *unset* `ac_cv_foo' will be assigned the
33901# following values.
33902
33903_ACEOF
33904
33905# The following way of writing the cache mishandles newlines in values,
33906# but we know of no workaround that is simple, portable, and efficient.
33907# So, don't put newlines in cache variables' values.
33908# Ultrix sh set writes to stderr and can't be redirected directly,
33909# and sets the high bit in the cache file unless we assign to the vars.
33910{
33911 (set) 2>&1 |
33912 case `(ac_space=' '; set | grep ac_space) 2>&1` in
33913 *ac_space=\ *)
33914 # `set' does not quote correctly, so add quotes (double-quote
33915 # substitution turns \\\\ into \\, and sed turns \\ into \).
33916 sed -n \
ac1cb8d3
VS
33917 "s/'/'\\\\''/g;
33918 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a848cd7e
SC
33919 ;;
33920 *)
33921 # `set' quotes correctly as required by POSIX, so do not add quotes.
33922 sed -n \
ac1cb8d3 33923 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
33924 ;;
33925 esac;
33926} |
33927 sed '
33928 t clear
33929 : clear
33930 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
33931 t end
33932 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
33933 : end' >>confcache
33934if diff $cache_file confcache >/dev/null 2>&1; then :; else
33935 if test -w $cache_file; then
33936 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
33937 cat confcache >$cache_file
33938 else
33939 echo "not updating unwritable cache $cache_file"
33940 fi
33941fi
33942rm -f confcache
33943
33944
33945CPP_MT_FLAG=
33946if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then
33947
33948
33949 THREADS_LINK=
33950 THREADS_CFLAGS=
33951
33952 if test "$wxUSE_THREADS" = "yes" ; then
33953 if test "$USE_BEOS" = 1; then
33954 { echo "$as_me:$LINENO: WARNING: BeOS threads are not yet supported... disabled" >&5
33955echo "$as_me: WARNING: BeOS threads are not yet supported... disabled" >&2;}
33956 wxUSE_THREADS="no"
33957 fi
33958 fi
33959
33960 if test "$wxUSE_THREADS" = "yes" ; then
33961
33962
33963 THREAD_OPTS="-pthread"
33964 case "${host}" in
33965 *-*-solaris2* | *-*-sunos4* )
33966 if test "x$GCC" = "xyes"; then
33967 THREAD_OPTS="-pthreads $THREAD_OPTS"
33968 else
33969 THREAD_OPTS="-mt $THREAD_OPTS"
33970 fi
33971 ;;
33972 *-*-freebsd*)
33973 THREAD_OPTS="-kthread lthread $THREAD_OPTS c_r"
33974 ;;
33975 *-*-darwin* | *-*-cygwin* )
33976 THREAD_OPTS=""
33977 ;;
33978 *-*-aix*)
33979 THREAD_OPTS="pthreads"
33980 ;;
33981 *-hp-hpux* )
33982 if test "x$GCC" != "xyes"; then
33983 THREAD_OPTS=""
33984 fi
33985 ;;
33986
33987 *-*-irix* )
33988 if test "x$GCC" = "xyes"; then
33989 THREAD_OPTS=""
33990 fi
33991 ;;
33992
33993 *-*-*UnixWare*)
33994 if test "x$GCC" != "xyes"; then
33995 THREAD_OPTS="-Ethread"
33996 fi
33997 ;;
33998 esac
33999
34000 THREAD_OPTS="$THREAD_OPTS pthread none"
34001
34002 THREADS_OK=no
34003 for flag in $THREAD_OPTS; do
34004 case $flag in
34005 none)
34006 echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
34007echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6
34008 ;;
34009
34010 -*)
34011 echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
34012echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6
34013 THREADS_CFLAGS="$flag"
34014 ;;
34015
34016 *)
34017 echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
34018echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6
34019 THREADS_LINK="-l$flag"
34020 ;;
34021 esac
34022
34023 save_LIBS="$LIBS"
34024 save_CFLAGS="$CFLAGS"
34025 LIBS="$THREADS_LINK $LIBS"
34026 CFLAGS="$THREADS_CFLAGS $CFLAGS"
34027
34028 cat >conftest.$ac_ext <<_ACEOF
34029/* confdefs.h. */
34030_ACEOF
34031cat confdefs.h >>conftest.$ac_ext
34032cat >>conftest.$ac_ext <<_ACEOF
34033/* end confdefs.h. */
34034#include <pthread.h>
34035int
34036main ()
34037{
34038pthread_create(0,0,0,0);
34039 ;
34040 return 0;
34041}
34042_ACEOF
34043rm -f conftest.$ac_objext conftest$ac_exeext
34044if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34045 (eval $ac_link) 2>conftest.er1
a848cd7e 34046 ac_status=$?
ac1cb8d3
VS
34047 grep -v '^ *+' conftest.er1 >conftest.err
34048 rm -f conftest.er1
34049 cat conftest.err >&5
a848cd7e
SC
34050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34051 (exit $ac_status); } &&
9dd0f6c2 34052 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34054 (eval $ac_try) 2>&5
34055 ac_status=$?
34056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34057 (exit $ac_status); }; } &&
34058 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34060 (eval $ac_try) 2>&5
34061 ac_status=$?
34062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34063 (exit $ac_status); }; }; then
34064 THREADS_OK=yes
34065else
34066 echo "$as_me: failed program was:" >&5
34067sed 's/^/| /' conftest.$ac_ext >&5
34068
34069fi
ac1cb8d3
VS
34070rm -f conftest.err conftest.$ac_objext \
34071 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34072
34073 LIBS="$save_LIBS"
34074 CFLAGS="$save_CFLAGS"
34075
34076 echo "$as_me:$LINENO: result: $THREADS_OK" >&5
34077echo "${ECHO_T}$THREADS_OK" >&6
34078 if test "x$THREADS_OK" = "xyes"; then
34079 break;
34080 fi
34081
34082 THREADS_LINK=""
34083 THREADS_CFLAGS=""
34084 done
34085
34086 if test "x$THREADS_OK" != "xyes"; then
34087 wxUSE_THREADS=no
34088 { echo "$as_me:$LINENO: WARNING: No thread support on this system... disabled" >&5
34089echo "$as_me: WARNING: No thread support on this system... disabled" >&2;}
34090 else
34091 LDFLAGS="$THREADS_CFLAGS $LDFLAGS"
34092 LIBS="$THREADS_LINK $LIBS"
34093
34094 echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
34095echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6
34096 flag=no
34097 case "${host}" in
34098 *-aix*)
34099 LDFLAGS="-L/usr/lib/threads $LDFLAGS"
34100 flag="-D_THREAD_SAFE"
34101 ;;
34102 *-freebsd*)
34103 flag="-D_THREAD_SAFE"
34104 ;;
34105 *-hp-hpux* )
34106 flag="-D_REENTRANT"
34107 if test "x$GCC" != "xyes"; then
34108 flag="$flag -D_RWSTD_MULTI_THREAD"
34109 fi
34110 ;;
34111 *solaris* | alpha*-osf*)
34112 flag="-D_REENTRANT"
34113 ;;
34114 esac
34115 echo "$as_me:$LINENO: result: ${flag}" >&5
34116echo "${ECHO_T}${flag}" >&6
34117 if test "x$flag" != xno; then
34118 THREADS_CFLAGS="$THREADS_CFLAGS $flag"
34119 fi
34120
34121 if test "x$THREADS_CFLAGS" != "x"; then
34122 CFLAGS="$CFLAGS $THREADS_CFLAGS"
34123 CXXFLAGS="$CXXFLAGS $THREADS_CFLAGS"
34124 fi
34125 fi
34126 fi
34127
34128 if test "$wxUSE_THREADS" = "yes" ; then
34129
34130for ac_func in thr_setconcurrency
34131do
34132as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34133echo "$as_me:$LINENO: checking for $ac_func" >&5
34134echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34135if eval "test \"\${$as_ac_var+set}\" = set"; then
34136 echo $ECHO_N "(cached) $ECHO_C" >&6
34137else
34138 cat >conftest.$ac_ext <<_ACEOF
34139/* confdefs.h. */
34140_ACEOF
34141cat confdefs.h >>conftest.$ac_ext
34142cat >>conftest.$ac_ext <<_ACEOF
34143/* end confdefs.h. */
ac1cb8d3
VS
34144/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34145 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34146#define $ac_func innocuous_$ac_func
34147
a848cd7e
SC
34148/* System header to define __stub macros and hopefully few prototypes,
34149 which can conflict with char $ac_func (); below.
34150 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34151 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 34152
a848cd7e
SC
34153#ifdef __STDC__
34154# include <limits.h>
34155#else
34156# include <assert.h>
34157#endif
ac1cb8d3
VS
34158
34159#undef $ac_func
34160
a848cd7e
SC
34161/* Override any gcc2 internal prototype to avoid an error. */
34162#ifdef __cplusplus
34163extern "C"
34164{
34165#endif
34166/* We use char because int might match the return type of a gcc2
34167 builtin and then its argument prototype would still apply. */
34168char $ac_func ();
34169/* The GNU C library defines this for functions which it implements
34170 to always fail with ENOSYS. Some functions are actually named
34171 something starting with __ and the normal name is an alias. */
34172#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34173choke me
34174#else
34175char (*f) () = $ac_func;
34176#endif
34177#ifdef __cplusplus
34178}
34179#endif
34180
34181int
34182main ()
34183{
34184return f != $ac_func;
34185 ;
34186 return 0;
34187}
34188_ACEOF
34189rm -f conftest.$ac_objext conftest$ac_exeext
34190if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34191 (eval $ac_link) 2>conftest.er1
a848cd7e 34192 ac_status=$?
ac1cb8d3
VS
34193 grep -v '^ *+' conftest.er1 >conftest.err
34194 rm -f conftest.er1
34195 cat conftest.err >&5
a848cd7e
SC
34196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34197 (exit $ac_status); } &&
9dd0f6c2 34198 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34200 (eval $ac_try) 2>&5
34201 ac_status=$?
34202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34203 (exit $ac_status); }; } &&
34204 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34206 (eval $ac_try) 2>&5
34207 ac_status=$?
34208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34209 (exit $ac_status); }; }; then
34210 eval "$as_ac_var=yes"
34211else
34212 echo "$as_me: failed program was:" >&5
34213sed 's/^/| /' conftest.$ac_ext >&5
34214
34215eval "$as_ac_var=no"
34216fi
ac1cb8d3
VS
34217rm -f conftest.err conftest.$ac_objext \
34218 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34219fi
34220echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34221echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34222if test `eval echo '${'$as_ac_var'}'` = yes; then
34223 cat >>confdefs.h <<_ACEOF
34224#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34225_ACEOF
34226
34227fi
34228done
34229
34230
34231
34232for ac_header in sched.h
34233do
34234as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
34235if eval "test \"\${$as_ac_Header+set}\" = set"; then
34236 echo "$as_me:$LINENO: checking for $ac_header" >&5
34237echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
34238if eval "test \"\${$as_ac_Header+set}\" = set"; then
34239 echo $ECHO_N "(cached) $ECHO_C" >&6
34240fi
34241echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
34242echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
34243else
34244 # Is the header compilable?
34245echo "$as_me:$LINENO: checking $ac_header usability" >&5
34246echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
34247cat >conftest.$ac_ext <<_ACEOF
34248/* confdefs.h. */
34249_ACEOF
34250cat confdefs.h >>conftest.$ac_ext
34251cat >>conftest.$ac_ext <<_ACEOF
34252/* end confdefs.h. */
34253$ac_includes_default
34254#include <$ac_header>
34255_ACEOF
34256rm -f conftest.$ac_objext
34257if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 34258 (eval $ac_compile) 2>conftest.er1
a848cd7e 34259 ac_status=$?
ac1cb8d3
VS
34260 grep -v '^ *+' conftest.er1 >conftest.err
34261 rm -f conftest.er1
34262 cat conftest.err >&5
a848cd7e
SC
34263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34264 (exit $ac_status); } &&
9dd0f6c2 34265 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34267 (eval $ac_try) 2>&5
34268 ac_status=$?
34269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34270 (exit $ac_status); }; } &&
34271 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
34272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34273 (eval $ac_try) 2>&5
34274 ac_status=$?
34275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34276 (exit $ac_status); }; }; then
34277 ac_header_compiler=yes
34278else
34279 echo "$as_me: failed program was:" >&5
34280sed 's/^/| /' conftest.$ac_ext >&5
34281
34282ac_header_compiler=no
34283fi
ac1cb8d3 34284rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
34285echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
34286echo "${ECHO_T}$ac_header_compiler" >&6
34287
34288# Is the header present?
34289echo "$as_me:$LINENO: checking $ac_header presence" >&5
34290echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
34291cat >conftest.$ac_ext <<_ACEOF
34292/* confdefs.h. */
34293_ACEOF
34294cat confdefs.h >>conftest.$ac_ext
34295cat >>conftest.$ac_ext <<_ACEOF
34296/* end confdefs.h. */
34297#include <$ac_header>
34298_ACEOF
34299if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
34300 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
34301 ac_status=$?
34302 grep -v '^ *+' conftest.er1 >conftest.err
34303 rm -f conftest.er1
34304 cat conftest.err >&5
34305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34306 (exit $ac_status); } >/dev/null; then
34307 if test -s conftest.err; then
34308 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 34309 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
34310 else
34311 ac_cpp_err=
34312 fi
34313else
34314 ac_cpp_err=yes
34315fi
34316if test -z "$ac_cpp_err"; then
34317 ac_header_preproc=yes
34318else
34319 echo "$as_me: failed program was:" >&5
34320sed 's/^/| /' conftest.$ac_ext >&5
34321
34322 ac_header_preproc=no
34323fi
34324rm -f conftest.err conftest.$ac_ext
34325echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
34326echo "${ECHO_T}$ac_header_preproc" >&6
34327
34328# So? What about this header?
ac1cb8d3
VS
34329case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
34330 yes:no: )
a848cd7e
SC
34331 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
34332echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
34333 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
34334echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
34335 ac_header_preproc=yes
a848cd7e 34336 ;;
ac1cb8d3 34337 no:yes:* )
a848cd7e
SC
34338 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
34339echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
34340 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
34341echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
34342 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
34343echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
34344 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
34345echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
34346 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
34347echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
34348 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
34349echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
34350 (
34351 cat <<\_ASBOX
ac1cb8d3
VS
34352## ----------------------------------------- ##
34353## Report this to wx-dev@lists.wxwidgets.org ##
34354## ----------------------------------------- ##
a848cd7e
SC
34355_ASBOX
34356 ) |
34357 sed "s/^/$as_me: WARNING: /" >&2
34358 ;;
34359esac
34360echo "$as_me:$LINENO: checking for $ac_header" >&5
34361echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
34362if eval "test \"\${$as_ac_Header+set}\" = set"; then
34363 echo $ECHO_N "(cached) $ECHO_C" >&6
34364else
ac1cb8d3 34365 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
34366fi
34367echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
34368echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
34369
34370fi
34371if test `eval echo '${'$as_ac_Header'}'` = yes; then
34372 cat >>confdefs.h <<_ACEOF
34373#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
34374_ACEOF
34375
34376fi
34377
34378done
34379
34380 if test "$ac_cv_header_sched_h" = "yes"; then
34381 echo "$as_me:$LINENO: checking for sched_yield" >&5
34382echo $ECHO_N "checking for sched_yield... $ECHO_C" >&6
34383if test "${ac_cv_func_sched_yield+set}" = set; then
34384 echo $ECHO_N "(cached) $ECHO_C" >&6
34385else
34386 cat >conftest.$ac_ext <<_ACEOF
34387/* confdefs.h. */
34388_ACEOF
34389cat confdefs.h >>conftest.$ac_ext
34390cat >>conftest.$ac_ext <<_ACEOF
34391/* end confdefs.h. */
ac1cb8d3
VS
34392/* Define sched_yield to an innocuous variant, in case <limits.h> declares sched_yield.
34393 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34394#define sched_yield innocuous_sched_yield
34395
a848cd7e
SC
34396/* System header to define __stub macros and hopefully few prototypes,
34397 which can conflict with char sched_yield (); below.
34398 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34399 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 34400
a848cd7e
SC
34401#ifdef __STDC__
34402# include <limits.h>
34403#else
34404# include <assert.h>
34405#endif
ac1cb8d3
VS
34406
34407#undef sched_yield
34408
a848cd7e
SC
34409/* Override any gcc2 internal prototype to avoid an error. */
34410#ifdef __cplusplus
34411extern "C"
34412{
34413#endif
34414/* We use char because int might match the return type of a gcc2
34415 builtin and then its argument prototype would still apply. */
34416char sched_yield ();
34417/* The GNU C library defines this for functions which it implements
34418 to always fail with ENOSYS. Some functions are actually named
34419 something starting with __ and the normal name is an alias. */
34420#if defined (__stub_sched_yield) || defined (__stub___sched_yield)
34421choke me
34422#else
34423char (*f) () = sched_yield;
34424#endif
34425#ifdef __cplusplus
34426}
34427#endif
34428
34429int
34430main ()
34431{
34432return f != sched_yield;
34433 ;
34434 return 0;
34435}
34436_ACEOF
34437rm -f conftest.$ac_objext conftest$ac_exeext
34438if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34439 (eval $ac_link) 2>conftest.er1
a848cd7e 34440 ac_status=$?
ac1cb8d3
VS
34441 grep -v '^ *+' conftest.er1 >conftest.err
34442 rm -f conftest.er1
34443 cat conftest.err >&5
a848cd7e
SC
34444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34445 (exit $ac_status); } &&
9dd0f6c2 34446 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34448 (eval $ac_try) 2>&5
34449 ac_status=$?
34450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34451 (exit $ac_status); }; } &&
34452 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34454 (eval $ac_try) 2>&5
34455 ac_status=$?
34456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34457 (exit $ac_status); }; }; then
34458 ac_cv_func_sched_yield=yes
34459else
34460 echo "$as_me: failed program was:" >&5
34461sed 's/^/| /' conftest.$ac_ext >&5
34462
34463ac_cv_func_sched_yield=no
34464fi
ac1cb8d3
VS
34465rm -f conftest.err conftest.$ac_objext \
34466 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34467fi
34468echo "$as_me:$LINENO: result: $ac_cv_func_sched_yield" >&5
34469echo "${ECHO_T}$ac_cv_func_sched_yield" >&6
34470if test $ac_cv_func_sched_yield = yes; then
34471 cat >>confdefs.h <<\_ACEOF
34472#define HAVE_SCHED_YIELD 1
34473_ACEOF
34474
34475else
34476
34477 echo "$as_me:$LINENO: checking for sched_yield in -lposix4" >&5
34478echo $ECHO_N "checking for sched_yield in -lposix4... $ECHO_C" >&6
34479if test "${ac_cv_lib_posix4_sched_yield+set}" = set; then
34480 echo $ECHO_N "(cached) $ECHO_C" >&6
34481else
34482 ac_check_lib_save_LIBS=$LIBS
34483LIBS="-lposix4 $LIBS"
34484cat >conftest.$ac_ext <<_ACEOF
34485/* confdefs.h. */
34486_ACEOF
34487cat confdefs.h >>conftest.$ac_ext
34488cat >>conftest.$ac_ext <<_ACEOF
34489/* end confdefs.h. */
34490
34491/* Override any gcc2 internal prototype to avoid an error. */
34492#ifdef __cplusplus
34493extern "C"
34494#endif
34495/* We use char because int might match the return type of a gcc2
34496 builtin and then its argument prototype would still apply. */
34497char sched_yield ();
34498int
34499main ()
34500{
34501sched_yield ();
34502 ;
34503 return 0;
34504}
34505_ACEOF
34506rm -f conftest.$ac_objext conftest$ac_exeext
34507if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34508 (eval $ac_link) 2>conftest.er1
a848cd7e 34509 ac_status=$?
ac1cb8d3
VS
34510 grep -v '^ *+' conftest.er1 >conftest.err
34511 rm -f conftest.er1
34512 cat conftest.err >&5
a848cd7e
SC
34513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34514 (exit $ac_status); } &&
9dd0f6c2 34515 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34517 (eval $ac_try) 2>&5
34518 ac_status=$?
34519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34520 (exit $ac_status); }; } &&
34521 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34523 (eval $ac_try) 2>&5
34524 ac_status=$?
34525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34526 (exit $ac_status); }; }; then
34527 ac_cv_lib_posix4_sched_yield=yes
34528else
34529 echo "$as_me: failed program was:" >&5
34530sed 's/^/| /' conftest.$ac_ext >&5
34531
34532ac_cv_lib_posix4_sched_yield=no
34533fi
ac1cb8d3
VS
34534rm -f conftest.err conftest.$ac_objext \
34535 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34536LIBS=$ac_check_lib_save_LIBS
34537fi
34538echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_yield" >&5
34539echo "${ECHO_T}$ac_cv_lib_posix4_sched_yield" >&6
34540if test $ac_cv_lib_posix4_sched_yield = yes; then
34541 cat >>confdefs.h <<\_ACEOF
34542#define HAVE_SCHED_YIELD 1
34543_ACEOF
34544 POSIX4_LINK=" -lposix4"
34545else
34546 { echo "$as_me:$LINENO: WARNING: wxThread::Yield will not work properly" >&5
34547echo "$as_me: WARNING: wxThread::Yield will not work properly" >&2;}
34548
34549fi
34550
34551
34552
34553fi
34554
34555 fi
34556
34557 HAVE_PRIOR_FUNCS=0
34558 echo "$as_me:$LINENO: checking for pthread_attr_getschedpolicy" >&5
34559echo $ECHO_N "checking for pthread_attr_getschedpolicy... $ECHO_C" >&6
34560if test "${ac_cv_func_pthread_attr_getschedpolicy+set}" = set; then
34561 echo $ECHO_N "(cached) $ECHO_C" >&6
34562else
34563 cat >conftest.$ac_ext <<_ACEOF
34564/* confdefs.h. */
34565_ACEOF
34566cat confdefs.h >>conftest.$ac_ext
34567cat >>conftest.$ac_ext <<_ACEOF
34568/* end confdefs.h. */
ac1cb8d3
VS
34569/* Define pthread_attr_getschedpolicy to an innocuous variant, in case <limits.h> declares pthread_attr_getschedpolicy.
34570 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34571#define pthread_attr_getschedpolicy innocuous_pthread_attr_getschedpolicy
34572
a848cd7e
SC
34573/* System header to define __stub macros and hopefully few prototypes,
34574 which can conflict with char pthread_attr_getschedpolicy (); below.
34575 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34576 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 34577
a848cd7e
SC
34578#ifdef __STDC__
34579# include <limits.h>
34580#else
34581# include <assert.h>
34582#endif
ac1cb8d3
VS
34583
34584#undef pthread_attr_getschedpolicy
34585
a848cd7e
SC
34586/* Override any gcc2 internal prototype to avoid an error. */
34587#ifdef __cplusplus
34588extern "C"
34589{
34590#endif
34591/* We use char because int might match the return type of a gcc2
34592 builtin and then its argument prototype would still apply. */
34593char pthread_attr_getschedpolicy ();
34594/* The GNU C library defines this for functions which it implements
34595 to always fail with ENOSYS. Some functions are actually named
34596 something starting with __ and the normal name is an alias. */
34597#if defined (__stub_pthread_attr_getschedpolicy) || defined (__stub___pthread_attr_getschedpolicy)
34598choke me
34599#else
34600char (*f) () = pthread_attr_getschedpolicy;
34601#endif
34602#ifdef __cplusplus
34603}
34604#endif
34605
34606int
34607main ()
34608{
34609return f != pthread_attr_getschedpolicy;
34610 ;
34611 return 0;
34612}
34613_ACEOF
34614rm -f conftest.$ac_objext conftest$ac_exeext
34615if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34616 (eval $ac_link) 2>conftest.er1
a848cd7e 34617 ac_status=$?
ac1cb8d3
VS
34618 grep -v '^ *+' conftest.er1 >conftest.err
34619 rm -f conftest.er1
34620 cat conftest.err >&5
a848cd7e
SC
34621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34622 (exit $ac_status); } &&
9dd0f6c2 34623 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34625 (eval $ac_try) 2>&5
34626 ac_status=$?
34627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34628 (exit $ac_status); }; } &&
34629 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34631 (eval $ac_try) 2>&5
34632 ac_status=$?
34633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34634 (exit $ac_status); }; }; then
34635 ac_cv_func_pthread_attr_getschedpolicy=yes
34636else
34637 echo "$as_me: failed program was:" >&5
34638sed 's/^/| /' conftest.$ac_ext >&5
34639
34640ac_cv_func_pthread_attr_getschedpolicy=no
34641fi
ac1cb8d3
VS
34642rm -f conftest.err conftest.$ac_objext \
34643 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34644fi
34645echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_getschedpolicy" >&5
34646echo "${ECHO_T}$ac_cv_func_pthread_attr_getschedpolicy" >&6
34647if test $ac_cv_func_pthread_attr_getschedpolicy = yes; then
34648 echo "$as_me:$LINENO: checking for pthread_attr_setschedparam" >&5
34649echo $ECHO_N "checking for pthread_attr_setschedparam... $ECHO_C" >&6
34650if test "${ac_cv_func_pthread_attr_setschedparam+set}" = set; then
34651 echo $ECHO_N "(cached) $ECHO_C" >&6
34652else
34653 cat >conftest.$ac_ext <<_ACEOF
34654/* confdefs.h. */
34655_ACEOF
34656cat confdefs.h >>conftest.$ac_ext
34657cat >>conftest.$ac_ext <<_ACEOF
34658/* end confdefs.h. */
ac1cb8d3
VS
34659/* Define pthread_attr_setschedparam to an innocuous variant, in case <limits.h> declares pthread_attr_setschedparam.
34660 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34661#define pthread_attr_setschedparam innocuous_pthread_attr_setschedparam
34662
a848cd7e
SC
34663/* System header to define __stub macros and hopefully few prototypes,
34664 which can conflict with char pthread_attr_setschedparam (); below.
34665 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34666 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 34667
a848cd7e
SC
34668#ifdef __STDC__
34669# include <limits.h>
34670#else
34671# include <assert.h>
34672#endif
ac1cb8d3
VS
34673
34674#undef pthread_attr_setschedparam
34675
a848cd7e
SC
34676/* Override any gcc2 internal prototype to avoid an error. */
34677#ifdef __cplusplus
34678extern "C"
34679{
34680#endif
34681/* We use char because int might match the return type of a gcc2
34682 builtin and then its argument prototype would still apply. */
34683char pthread_attr_setschedparam ();
34684/* The GNU C library defines this for functions which it implements
34685 to always fail with ENOSYS. Some functions are actually named
34686 something starting with __ and the normal name is an alias. */
34687#if defined (__stub_pthread_attr_setschedparam) || defined (__stub___pthread_attr_setschedparam)
34688choke me
34689#else
34690char (*f) () = pthread_attr_setschedparam;
34691#endif
34692#ifdef __cplusplus
34693}
34694#endif
34695
34696int
34697main ()
34698{
34699return f != pthread_attr_setschedparam;
34700 ;
34701 return 0;
34702}
34703_ACEOF
34704rm -f conftest.$ac_objext conftest$ac_exeext
34705if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34706 (eval $ac_link) 2>conftest.er1
a848cd7e 34707 ac_status=$?
ac1cb8d3
VS
34708 grep -v '^ *+' conftest.er1 >conftest.err
34709 rm -f conftest.er1
34710 cat conftest.err >&5
a848cd7e
SC
34711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34712 (exit $ac_status); } &&
9dd0f6c2 34713 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34715 (eval $ac_try) 2>&5
34716 ac_status=$?
34717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34718 (exit $ac_status); }; } &&
34719 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34721 (eval $ac_try) 2>&5
34722 ac_status=$?
34723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34724 (exit $ac_status); }; }; then
34725 ac_cv_func_pthread_attr_setschedparam=yes
34726else
34727 echo "$as_me: failed program was:" >&5
34728sed 's/^/| /' conftest.$ac_ext >&5
34729
34730ac_cv_func_pthread_attr_setschedparam=no
34731fi
ac1cb8d3
VS
34732rm -f conftest.err conftest.$ac_objext \
34733 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34734fi
34735echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_setschedparam" >&5
34736echo "${ECHO_T}$ac_cv_func_pthread_attr_setschedparam" >&6
34737if test $ac_cv_func_pthread_attr_setschedparam = yes; then
34738 echo "$as_me:$LINENO: checking for sched_get_priority_max" >&5
34739echo $ECHO_N "checking for sched_get_priority_max... $ECHO_C" >&6
34740if test "${ac_cv_func_sched_get_priority_max+set}" = set; then
34741 echo $ECHO_N "(cached) $ECHO_C" >&6
34742else
34743 cat >conftest.$ac_ext <<_ACEOF
34744/* confdefs.h. */
34745_ACEOF
34746cat confdefs.h >>conftest.$ac_ext
34747cat >>conftest.$ac_ext <<_ACEOF
34748/* end confdefs.h. */
ac1cb8d3
VS
34749/* Define sched_get_priority_max to an innocuous variant, in case <limits.h> declares sched_get_priority_max.
34750 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34751#define sched_get_priority_max innocuous_sched_get_priority_max
34752
a848cd7e
SC
34753/* System header to define __stub macros and hopefully few prototypes,
34754 which can conflict with char sched_get_priority_max (); below.
34755 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34756 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 34757
a848cd7e
SC
34758#ifdef __STDC__
34759# include <limits.h>
34760#else
34761# include <assert.h>
34762#endif
ac1cb8d3
VS
34763
34764#undef sched_get_priority_max
34765
a848cd7e
SC
34766/* Override any gcc2 internal prototype to avoid an error. */
34767#ifdef __cplusplus
34768extern "C"
34769{
34770#endif
34771/* We use char because int might match the return type of a gcc2
34772 builtin and then its argument prototype would still apply. */
34773char sched_get_priority_max ();
34774/* The GNU C library defines this for functions which it implements
34775 to always fail with ENOSYS. Some functions are actually named
34776 something starting with __ and the normal name is an alias. */
34777#if defined (__stub_sched_get_priority_max) || defined (__stub___sched_get_priority_max)
34778choke me
34779#else
34780char (*f) () = sched_get_priority_max;
34781#endif
34782#ifdef __cplusplus
34783}
34784#endif
34785
34786int
34787main ()
34788{
34789return f != sched_get_priority_max;
34790 ;
34791 return 0;
34792}
34793_ACEOF
34794rm -f conftest.$ac_objext conftest$ac_exeext
34795if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34796 (eval $ac_link) 2>conftest.er1
a848cd7e 34797 ac_status=$?
ac1cb8d3
VS
34798 grep -v '^ *+' conftest.er1 >conftest.err
34799 rm -f conftest.er1
34800 cat conftest.err >&5
a848cd7e
SC
34801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34802 (exit $ac_status); } &&
9dd0f6c2 34803 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34805 (eval $ac_try) 2>&5
34806 ac_status=$?
34807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34808 (exit $ac_status); }; } &&
34809 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34811 (eval $ac_try) 2>&5
34812 ac_status=$?
34813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34814 (exit $ac_status); }; }; then
34815 ac_cv_func_sched_get_priority_max=yes
34816else
34817 echo "$as_me: failed program was:" >&5
34818sed 's/^/| /' conftest.$ac_ext >&5
34819
34820ac_cv_func_sched_get_priority_max=no
34821fi
ac1cb8d3
VS
34822rm -f conftest.err conftest.$ac_objext \
34823 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34824fi
34825echo "$as_me:$LINENO: result: $ac_cv_func_sched_get_priority_max" >&5
34826echo "${ECHO_T}$ac_cv_func_sched_get_priority_max" >&6
34827if test $ac_cv_func_sched_get_priority_max = yes; then
34828 HAVE_PRIOR_FUNCS=1
34829else
34830 echo "$as_me:$LINENO: checking for sched_get_priority_max in -lposix4" >&5
34831echo $ECHO_N "checking for sched_get_priority_max in -lposix4... $ECHO_C" >&6
34832if test "${ac_cv_lib_posix4_sched_get_priority_max+set}" = set; then
34833 echo $ECHO_N "(cached) $ECHO_C" >&6
34834else
34835 ac_check_lib_save_LIBS=$LIBS
34836LIBS="-lposix4 $LIBS"
34837cat >conftest.$ac_ext <<_ACEOF
34838/* confdefs.h. */
34839_ACEOF
34840cat confdefs.h >>conftest.$ac_ext
34841cat >>conftest.$ac_ext <<_ACEOF
34842/* end confdefs.h. */
34843
34844/* Override any gcc2 internal prototype to avoid an error. */
34845#ifdef __cplusplus
34846extern "C"
34847#endif
34848/* We use char because int might match the return type of a gcc2
34849 builtin and then its argument prototype would still apply. */
34850char sched_get_priority_max ();
34851int
34852main ()
34853{
34854sched_get_priority_max ();
34855 ;
34856 return 0;
34857}
34858_ACEOF
34859rm -f conftest.$ac_objext conftest$ac_exeext
34860if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34861 (eval $ac_link) 2>conftest.er1
a848cd7e 34862 ac_status=$?
ac1cb8d3
VS
34863 grep -v '^ *+' conftest.er1 >conftest.err
34864 rm -f conftest.er1
34865 cat conftest.err >&5
a848cd7e
SC
34866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34867 (exit $ac_status); } &&
9dd0f6c2 34868 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34870 (eval $ac_try) 2>&5
34871 ac_status=$?
34872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34873 (exit $ac_status); }; } &&
34874 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34876 (eval $ac_try) 2>&5
34877 ac_status=$?
34878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34879 (exit $ac_status); }; }; then
34880 ac_cv_lib_posix4_sched_get_priority_max=yes
34881else
34882 echo "$as_me: failed program was:" >&5
34883sed 's/^/| /' conftest.$ac_ext >&5
34884
34885ac_cv_lib_posix4_sched_get_priority_max=no
34886fi
ac1cb8d3
VS
34887rm -f conftest.err conftest.$ac_objext \
34888 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34889LIBS=$ac_check_lib_save_LIBS
34890fi
34891echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_get_priority_max" >&5
34892echo "${ECHO_T}$ac_cv_lib_posix4_sched_get_priority_max" >&6
34893if test $ac_cv_lib_posix4_sched_get_priority_max = yes; then
34894
34895 HAVE_PRIOR_FUNCS=1
34896 POSIX4_LINK=" -lposix4"
34897
34898fi
34899
34900
34901fi
34902
34903
34904fi
34905
34906
34907fi
34908
34909
34910 if test "$HAVE_PRIOR_FUNCS" = 1; then
34911 cat >>confdefs.h <<\_ACEOF
34912#define HAVE_THREAD_PRIORITY_FUNCTIONS 1
34913_ACEOF
34914
34915 else
34916 { echo "$as_me:$LINENO: WARNING: Setting thread priority will not work" >&5
34917echo "$as_me: WARNING: Setting thread priority will not work" >&2;}
34918 fi
34919
34920 echo "$as_me:$LINENO: checking for pthread_cancel" >&5
34921echo $ECHO_N "checking for pthread_cancel... $ECHO_C" >&6
34922if test "${ac_cv_func_pthread_cancel+set}" = set; then
34923 echo $ECHO_N "(cached) $ECHO_C" >&6
34924else
34925 cat >conftest.$ac_ext <<_ACEOF
34926/* confdefs.h. */
34927_ACEOF
34928cat confdefs.h >>conftest.$ac_ext
34929cat >>conftest.$ac_ext <<_ACEOF
34930/* end confdefs.h. */
ac1cb8d3
VS
34931/* Define pthread_cancel to an innocuous variant, in case <limits.h> declares pthread_cancel.
34932 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34933#define pthread_cancel innocuous_pthread_cancel
34934
a848cd7e
SC
34935/* System header to define __stub macros and hopefully few prototypes,
34936 which can conflict with char pthread_cancel (); below.
34937 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34938 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 34939
a848cd7e
SC
34940#ifdef __STDC__
34941# include <limits.h>
34942#else
34943# include <assert.h>
34944#endif
ac1cb8d3
VS
34945
34946#undef pthread_cancel
34947
a848cd7e
SC
34948/* Override any gcc2 internal prototype to avoid an error. */
34949#ifdef __cplusplus
34950extern "C"
34951{
34952#endif
34953/* We use char because int might match the return type of a gcc2
34954 builtin and then its argument prototype would still apply. */
34955char pthread_cancel ();
34956/* The GNU C library defines this for functions which it implements
34957 to always fail with ENOSYS. Some functions are actually named
34958 something starting with __ and the normal name is an alias. */
34959#if defined (__stub_pthread_cancel) || defined (__stub___pthread_cancel)
34960choke me
34961#else
34962char (*f) () = pthread_cancel;
34963#endif
34964#ifdef __cplusplus
34965}
34966#endif
34967
34968int
34969main ()
34970{
34971return f != pthread_cancel;
34972 ;
34973 return 0;
34974}
34975_ACEOF
34976rm -f conftest.$ac_objext conftest$ac_exeext
34977if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34978 (eval $ac_link) 2>conftest.er1
a848cd7e 34979 ac_status=$?
ac1cb8d3
VS
34980 grep -v '^ *+' conftest.er1 >conftest.err
34981 rm -f conftest.er1
34982 cat conftest.err >&5
a848cd7e
SC
34983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34984 (exit $ac_status); } &&
9dd0f6c2 34985 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34987 (eval $ac_try) 2>&5
34988 ac_status=$?
34989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34990 (exit $ac_status); }; } &&
34991 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34993 (eval $ac_try) 2>&5
34994 ac_status=$?
34995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34996 (exit $ac_status); }; }; then
34997 ac_cv_func_pthread_cancel=yes
34998else
34999 echo "$as_me: failed program was:" >&5
35000sed 's/^/| /' conftest.$ac_ext >&5
35001
35002ac_cv_func_pthread_cancel=no
35003fi
ac1cb8d3
VS
35004rm -f conftest.err conftest.$ac_objext \
35005 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35006fi
35007echo "$as_me:$LINENO: result: $ac_cv_func_pthread_cancel" >&5
35008echo "${ECHO_T}$ac_cv_func_pthread_cancel" >&6
35009if test $ac_cv_func_pthread_cancel = yes; then
35010 cat >>confdefs.h <<\_ACEOF
35011#define HAVE_PTHREAD_CANCEL 1
35012_ACEOF
35013
35014else
35015 { echo "$as_me:$LINENO: WARNING: wxThread::Kill() will not work properly" >&5
35016echo "$as_me: WARNING: wxThread::Kill() will not work properly" >&2;}
35017fi
35018
35019
35020
35021
35022 echo "$as_me:$LINENO: checking for pthread_mutexattr_t" >&5
35023echo $ECHO_N "checking for pthread_mutexattr_t... $ECHO_C" >&6
35024if test "${wx_cv_type_pthread_mutexattr_t+set}" = set; then
35025 echo $ECHO_N "(cached) $ECHO_C" >&6
35026else
35027
35028 cat >conftest.$ac_ext <<_ACEOF
35029/* confdefs.h. */
35030_ACEOF
35031cat confdefs.h >>conftest.$ac_ext
35032cat >>conftest.$ac_ext <<_ACEOF
35033/* end confdefs.h. */
35034#include <pthread.h>
35035int
35036main ()
35037{
35038
35039 pthread_mutexattr_t attr;
35040 pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
35041
35042 ;
35043 return 0;
35044}
35045_ACEOF
35046rm -f conftest.$ac_objext
35047if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 35048 (eval $ac_compile) 2>conftest.er1
a848cd7e 35049 ac_status=$?
ac1cb8d3
VS
35050 grep -v '^ *+' conftest.er1 >conftest.err
35051 rm -f conftest.er1
35052 cat conftest.err >&5
a848cd7e
SC
35053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35054 (exit $ac_status); } &&
9dd0f6c2 35055 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35057 (eval $ac_try) 2>&5
35058 ac_status=$?
35059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35060 (exit $ac_status); }; } &&
35061 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
35062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35063 (eval $ac_try) 2>&5
35064 ac_status=$?
35065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35066 (exit $ac_status); }; }; then
35067
35068 wx_cv_type_pthread_mutexattr_t=yes
35069
35070else
35071 echo "$as_me: failed program was:" >&5
35072sed 's/^/| /' conftest.$ac_ext >&5
35073
35074
35075 wx_cv_type_pthread_mutexattr_t=no
35076
35077
35078fi
ac1cb8d3 35079rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
35080
35081fi
35082echo "$as_me:$LINENO: result: $wx_cv_type_pthread_mutexattr_t" >&5
35083echo "${ECHO_T}$wx_cv_type_pthread_mutexattr_t" >&6
35084
35085 if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then
35086 cat >>confdefs.h <<\_ACEOF
35087#define HAVE_PTHREAD_MUTEXATTR_T 1
35088_ACEOF
35089
35090 else
35091 echo "$as_me:$LINENO: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5
35092echo $ECHO_N "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER... $ECHO_C" >&6
35093if test "${wx_cv_type_pthread_rec_mutex_init+set}" = set; then
35094 echo $ECHO_N "(cached) $ECHO_C" >&6
35095else
35096
35097 cat >conftest.$ac_ext <<_ACEOF
35098/* confdefs.h. */
35099_ACEOF
35100cat confdefs.h >>conftest.$ac_ext
35101cat >>conftest.$ac_ext <<_ACEOF
35102/* end confdefs.h. */
35103#include <pthread.h>
35104int
35105main ()
35106{
35107
35108 pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;
35109
35110 ;
35111 return 0;
35112}
35113_ACEOF
35114rm -f conftest.$ac_objext
35115if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 35116 (eval $ac_compile) 2>conftest.er1
a848cd7e 35117 ac_status=$?
ac1cb8d3
VS
35118 grep -v '^ *+' conftest.er1 >conftest.err
35119 rm -f conftest.er1
35120 cat conftest.err >&5
a848cd7e
SC
35121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35122 (exit $ac_status); } &&
9dd0f6c2 35123 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35125 (eval $ac_try) 2>&5
35126 ac_status=$?
35127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35128 (exit $ac_status); }; } &&
35129 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
35130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35131 (eval $ac_try) 2>&5
35132 ac_status=$?
35133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35134 (exit $ac_status); }; }; then
35135
35136 wx_cv_type_pthread_rec_mutex_init=yes
35137
35138else
35139 echo "$as_me: failed program was:" >&5
35140sed 's/^/| /' conftest.$ac_ext >&5
35141
35142
35143 wx_cv_type_pthread_rec_mutex_init=no
35144
35145
35146fi
ac1cb8d3 35147rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
35148
35149fi
35150echo "$as_me:$LINENO: result: $wx_cv_type_pthread_rec_mutex_init" >&5
35151echo "${ECHO_T}$wx_cv_type_pthread_rec_mutex_init" >&6
35152 if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then
35153 cat >>confdefs.h <<\_ACEOF
35154#define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1
35155_ACEOF
35156
35157 else
35158 { echo "$as_me:$LINENO: WARNING: wxMutex won't be recursive on this platform" >&5
35159echo "$as_me: WARNING: wxMutex won't be recursive on this platform" >&2;}
35160 fi
35161 fi
35162 fi
35163
35164else
35165 if test "$wxUSE_THREADS" = "yes" ; then
35166 case "${host}" in
35167 *-*-mingw32* )
35168 echo "$as_me:$LINENO: checking if compiler supports -mthreads" >&5
35169echo $ECHO_N "checking if compiler supports -mthreads... $ECHO_C" >&6
35170if test "${wx_cv_cflags_mthread+set}" = set; then
35171 echo $ECHO_N "(cached) $ECHO_C" >&6
35172else
35173
35174 CFLAGS_OLD="$CFLAGS"
35175 CFLAGS="$CFLAGS -mthreads"
35176 cat >conftest.$ac_ext <<_ACEOF
35177/* confdefs.h. */
35178_ACEOF
35179cat confdefs.h >>conftest.$ac_ext
35180cat >>conftest.$ac_ext <<_ACEOF
35181/* end confdefs.h. */
35182
35183int
35184main ()
35185{
35186
35187 ;
35188 return 0;
35189}
35190_ACEOF
35191rm -f conftest.$ac_objext
35192if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 35193 (eval $ac_compile) 2>conftest.er1
a848cd7e 35194 ac_status=$?
ac1cb8d3
VS
35195 grep -v '^ *+' conftest.er1 >conftest.err
35196 rm -f conftest.er1
35197 cat conftest.err >&5
a848cd7e
SC
35198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35199 (exit $ac_status); } &&
9dd0f6c2 35200 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35202 (eval $ac_try) 2>&5
35203 ac_status=$?
35204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35205 (exit $ac_status); }; } &&
35206 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
35207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35208 (eval $ac_try) 2>&5
35209 ac_status=$?
35210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35211 (exit $ac_status); }; }; then
35212 wx_cv_cflags_mthread=yes
35213else
35214 echo "$as_me: failed program was:" >&5
35215sed 's/^/| /' conftest.$ac_ext >&5
35216
35217wx_cv_cflags_mthread=no
35218
35219fi
ac1cb8d3 35220rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
35221
35222
35223fi
35224echo "$as_me:$LINENO: result: $wx_cv_cflags_mthread" >&5
35225echo "${ECHO_T}$wx_cv_cflags_mthread" >&6
35226
35227 if test "$wx_cv_cflags_mthread" = "yes"; then
35228 CXXFLAGS="$CXXFLAGS -mthreads"
35229 TOOLCHAIN_DEFS="$TOOLCHAIN_DEFS -mthreads"
35230 LDFLAGS="$LDFLAGS -mthreads"
35231 else
35232 CFLAGS="$CFLAGS_OLD"
35233 fi
35234 ;;
35235 *-pc-os2*emx )
35236 CFLAGS="$CFLAGS -Zmt -D__ST_MT_ERRNO__"
35237 CXXFLAGS="$CXXFLAGS -Zmt -D__ST_MT_ERRNO__"
35238 LDFLAGS="$LDFLAGS -Zmt"
35239 ;;
35240 esac
35241 fi
35242fi
35243
35244if test "$wxUSE_THREADS" = "yes"; then
35245 cat >>confdefs.h <<\_ACEOF
35246#define wxUSE_THREADS 1
35247_ACEOF
35248
35249
35250 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread"
35251else
35252 if test "$ac_cv_func_strtok_r" = "yes"; then
35253 echo "$as_me:$LINENO: checking if -D_REENTRANT is needed" >&5
35254echo $ECHO_N "checking if -D_REENTRANT is needed... $ECHO_C" >&6
35255 if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then
35256 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D_REENTRANT"
35257 echo "$as_me:$LINENO: result: yes" >&5
35258echo "${ECHO_T}yes" >&6
35259 else
35260 echo "$as_me:$LINENO: result: no" >&5
35261echo "${ECHO_T}no" >&6
35262 fi
35263 fi
35264fi
35265
35266if test "$WXGTK20" = 1 ; then
35267 cat >>confdefs.h <<_ACEOF
35268#define __WXGTK20__ $WXGTK20
35269_ACEOF
35270
35271 WXGTK12=1
35272fi
35273
35274if test "$WXGTK12" = 1 ; then
35275 cat >>confdefs.h <<_ACEOF
35276#define __WXGTK12__ $WXGTK12
35277_ACEOF
35278
35279fi
35280
35281if test "$WXGTK127" = 1 ; then
35282 cat >>confdefs.h <<_ACEOF
35283#define __WXGTK127__ $WXGTK127
35284_ACEOF
35285
35286fi
35287
35288if test "$WXGPE" = 1 ; then
35289 cat >>confdefs.h <<_ACEOF
35290#define __WXGPE__ $WXGPE
35291_ACEOF
35292
35293fi
35294
35295WXDEBUG=
35296
35297if test "$wxUSE_DEBUG_INFO" = "yes" ; then
35298 WXDEBUG="-g"
35299 wxUSE_OPTIMISE=no
35300fi
35301
35302if test "$wxUSE_DEBUG_GDB" = "yes" ; then
35303 wxUSE_DEBUG_INFO=yes
35304 WXDEBUG="-ggdb"
35305fi
35306
35307if test "$wxUSE_DEBUG_FLAG" = "yes" ; then
35308 cat >>confdefs.h <<\_ACEOF
35309#define WXDEBUG 1
35310_ACEOF
35311
35312 WXDEBUG_DEFINE="-D__WXDEBUG__"
35313else
35314 if test "$wxUSE_GTK" = 1 ; then
35315 WXDEBUG_DEFINE="-DGTK_NO_CHECK_CASTS"
35316 fi
35317fi
35318
35319if test "$wxUSE_MEM_TRACING" = "yes" ; then
35320 cat >>confdefs.h <<\_ACEOF
35321#define wxUSE_MEMORY_TRACING 1
35322_ACEOF
35323
35324 cat >>confdefs.h <<\_ACEOF
35325#define wxUSE_GLOBAL_MEMORY_OPERATORS 1
35326_ACEOF
35327
35328 cat >>confdefs.h <<\_ACEOF
35329#define wxUSE_DEBUG_NEW_ALWAYS 1
35330_ACEOF
35331
35332 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck"
35333fi
35334
35335if test "$wxUSE_DMALLOC" = "yes" ; then
35336 DMALLOC_LIBS="-ldmalloc"
35337fi
35338
35339PROFILE=
35340if test "$wxUSE_PROFILE" = "yes" ; then
35341 PROFILE=" -pg"
35342fi
35343
35344CODE_GEN_FLAGS=
35345CODE_GEN_FLAGS_CXX=
35346if test "$GCC" = "yes" ; then
35347 if test "$wxUSE_NO_RTTI" = "yes" ; then
35348 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-rtti"
35349 fi
35350 if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
35351 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-exceptions"
35352 fi
35353 if test "$wxUSE_PERMISSIVE" = "yes" ; then
35354 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fpermissive"
35355 fi
35356
35357 case "${host}" in
35358 powerpc*-*-aix* )
35359 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -mminimal-toc"
35360 ;;
35361 *-hppa* )
35362 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -ffunction-sections"
35363 ;;
35364 esac
35365fi
35366
35367OPTIMISE=
35368if test "$wxUSE_OPTIMISE" = "no" ; then
35369 if test "$GCC" = yes ; then
35370 OPTIMISE="-O0"
35371 fi
35372else
35373 if test "$GCC" = yes ; then
35374 OPTIMISE="-O2"
35375
35376 case "${host}" in
35377 i586-*-*|i686-*-* )
35378 OPTIMISE="${OPTIMISE} "
35379 ;;
35380 esac
35381 else
35382 OPTIMISE="-O"
35383 fi
35384fi
35385
35386
35387if test "x$WXWIN_COMPATIBILITY_2_2" = "xyes"; then
35388 cat >>confdefs.h <<\_ACEOF
35389#define WXWIN_COMPATIBILITY_2_2 1
35390_ACEOF
35391
35392
35393 WXWIN_COMPATIBILITY_2_4="yes"
35394fi
35395
35396if test "x$WXWIN_COMPATIBILITY_2_4" != "xno"; then
35397 cat >>confdefs.h <<\_ACEOF
35398#define WXWIN_COMPATIBILITY_2_4 1
35399_ACEOF
35400
35401fi
35402
35403
35404if test "$wxUSE_GUI" = "yes"; then
881bfcd6 35405 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
35406#define wxUSE_GUI 1
35407_ACEOF
35408
35409
370fd4c2 35410 fi
a848cd7e
SC
35411
35412
35413if test "$wxUSE_UNIX" = "yes"; then
35414 cat >>confdefs.h <<\_ACEOF
35415#define wxUSE_UNIX 1
35416_ACEOF
35417
35418fi
35419
35420
35421if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then
35422
35423 HAVE_DL_FUNCS=0
35424 HAVE_SHL_FUNCS=0
35425 if test "$wxUSE_DYNAMIC_LOADER" = "yes" -o "$wxUSE_DYNLIB_CLASS" = "yes" ; then
35426 if test "$USE_DARWIN" = 1; then
35427 HAVE_DL_FUNCS=1
35428 else
35429
35430for ac_func in dlopen
35431do
35432as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35433echo "$as_me:$LINENO: checking for $ac_func" >&5
35434echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35435if eval "test \"\${$as_ac_var+set}\" = set"; then
35436 echo $ECHO_N "(cached) $ECHO_C" >&6
35437else
35438 cat >conftest.$ac_ext <<_ACEOF
35439/* confdefs.h. */
35440_ACEOF
35441cat confdefs.h >>conftest.$ac_ext
35442cat >>conftest.$ac_ext <<_ACEOF
35443/* end confdefs.h. */
ac1cb8d3
VS
35444/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35445 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35446#define $ac_func innocuous_$ac_func
35447
a848cd7e
SC
35448/* System header to define __stub macros and hopefully few prototypes,
35449 which can conflict with char $ac_func (); below.
35450 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35451 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 35452
a848cd7e
SC
35453#ifdef __STDC__
35454# include <limits.h>
35455#else
35456# include <assert.h>
35457#endif
ac1cb8d3
VS
35458
35459#undef $ac_func
35460
a848cd7e
SC
35461/* Override any gcc2 internal prototype to avoid an error. */
35462#ifdef __cplusplus
35463extern "C"
35464{
35465#endif
35466/* We use char because int might match the return type of a gcc2
35467 builtin and then its argument prototype would still apply. */
35468char $ac_func ();
35469/* The GNU C library defines this for functions which it implements
35470 to always fail with ENOSYS. Some functions are actually named
35471 something starting with __ and the normal name is an alias. */
35472#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35473choke me
35474#else
35475char (*f) () = $ac_func;
35476#endif
35477#ifdef __cplusplus
35478}
35479#endif
35480
35481int
35482main ()
35483{
35484return f != $ac_func;
35485 ;
35486 return 0;
35487}
35488_ACEOF
35489rm -f conftest.$ac_objext conftest$ac_exeext
35490if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35491 (eval $ac_link) 2>conftest.er1
a848cd7e 35492 ac_status=$?
ac1cb8d3
VS
35493 grep -v '^ *+' conftest.er1 >conftest.err
35494 rm -f conftest.er1
35495 cat conftest.err >&5
a848cd7e
SC
35496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35497 (exit $ac_status); } &&
9dd0f6c2 35498 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35500 (eval $ac_try) 2>&5
35501 ac_status=$?
35502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35503 (exit $ac_status); }; } &&
35504 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35506 (eval $ac_try) 2>&5
35507 ac_status=$?
35508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35509 (exit $ac_status); }; }; then
35510 eval "$as_ac_var=yes"
35511else
35512 echo "$as_me: failed program was:" >&5
35513sed 's/^/| /' conftest.$ac_ext >&5
35514
35515eval "$as_ac_var=no"
35516fi
ac1cb8d3
VS
35517rm -f conftest.err conftest.$ac_objext \
35518 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35519fi
35520echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35521echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35522if test `eval echo '${'$as_ac_var'}'` = yes; then
35523 cat >>confdefs.h <<_ACEOF
35524#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35525_ACEOF
35526
35527 cat >>confdefs.h <<\_ACEOF
35528#define HAVE_DLOPEN 1
35529_ACEOF
35530
35531 HAVE_DL_FUNCS=1
35532
35533else
35534
35535 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
35536echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
35537if test "${ac_cv_lib_dl_dlopen+set}" = set; then
35538 echo $ECHO_N "(cached) $ECHO_C" >&6
35539else
35540 ac_check_lib_save_LIBS=$LIBS
35541LIBS="-ldl $LIBS"
35542cat >conftest.$ac_ext <<_ACEOF
35543/* confdefs.h. */
35544_ACEOF
35545cat confdefs.h >>conftest.$ac_ext
35546cat >>conftest.$ac_ext <<_ACEOF
35547/* end confdefs.h. */
35548
35549/* Override any gcc2 internal prototype to avoid an error. */
35550#ifdef __cplusplus
35551extern "C"
35552#endif
35553/* We use char because int might match the return type of a gcc2
35554 builtin and then its argument prototype would still apply. */
35555char dlopen ();
35556int
35557main ()
35558{
35559dlopen ();
35560 ;
35561 return 0;
35562}
35563_ACEOF
35564rm -f conftest.$ac_objext conftest$ac_exeext
35565if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35566 (eval $ac_link) 2>conftest.er1
a848cd7e 35567 ac_status=$?
ac1cb8d3
VS
35568 grep -v '^ *+' conftest.er1 >conftest.err
35569 rm -f conftest.er1
35570 cat conftest.err >&5
a848cd7e
SC
35571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35572 (exit $ac_status); } &&
9dd0f6c2 35573 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35575 (eval $ac_try) 2>&5
35576 ac_status=$?
35577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35578 (exit $ac_status); }; } &&
35579 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35581 (eval $ac_try) 2>&5
35582 ac_status=$?
35583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35584 (exit $ac_status); }; }; then
35585 ac_cv_lib_dl_dlopen=yes
35586else
35587 echo "$as_me: failed program was:" >&5
35588sed 's/^/| /' conftest.$ac_ext >&5
35589
35590ac_cv_lib_dl_dlopen=no
35591fi
ac1cb8d3
VS
35592rm -f conftest.err conftest.$ac_objext \
35593 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35594LIBS=$ac_check_lib_save_LIBS
35595fi
35596echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
35597echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
35598if test $ac_cv_lib_dl_dlopen = yes; then
35599
35600 cat >>confdefs.h <<\_ACEOF
35601#define HAVE_DLOPEN 1
35602_ACEOF
35603
35604 HAVE_DL_FUNCS=1
35605 DL_LINK=" -ldl$DL_LINK"
35606
35607else
35608
35609
35610for ac_func in shl_load
35611do
35612as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35613echo "$as_me:$LINENO: checking for $ac_func" >&5
35614echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35615if eval "test \"\${$as_ac_var+set}\" = set"; then
35616 echo $ECHO_N "(cached) $ECHO_C" >&6
35617else
35618 cat >conftest.$ac_ext <<_ACEOF
35619/* confdefs.h. */
35620_ACEOF
35621cat confdefs.h >>conftest.$ac_ext
35622cat >>conftest.$ac_ext <<_ACEOF
35623/* end confdefs.h. */
ac1cb8d3
VS
35624/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35625 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35626#define $ac_func innocuous_$ac_func
35627
a848cd7e
SC
35628/* System header to define __stub macros and hopefully few prototypes,
35629 which can conflict with char $ac_func (); below.
35630 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35631 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 35632
a848cd7e
SC
35633#ifdef __STDC__
35634# include <limits.h>
35635#else
35636# include <assert.h>
35637#endif
ac1cb8d3
VS
35638
35639#undef $ac_func
35640
a848cd7e
SC
35641/* Override any gcc2 internal prototype to avoid an error. */
35642#ifdef __cplusplus
35643extern "C"
35644{
35645#endif
35646/* We use char because int might match the return type of a gcc2
35647 builtin and then its argument prototype would still apply. */
35648char $ac_func ();
35649/* The GNU C library defines this for functions which it implements
35650 to always fail with ENOSYS. Some functions are actually named
35651 something starting with __ and the normal name is an alias. */
35652#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35653choke me
35654#else
35655char (*f) () = $ac_func;
35656#endif
35657#ifdef __cplusplus
35658}
35659#endif
35660
35661int
35662main ()
35663{
35664return f != $ac_func;
35665 ;
35666 return 0;
35667}
35668_ACEOF
35669rm -f conftest.$ac_objext conftest$ac_exeext
35670if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35671 (eval $ac_link) 2>conftest.er1
a848cd7e 35672 ac_status=$?
ac1cb8d3
VS
35673 grep -v '^ *+' conftest.er1 >conftest.err
35674 rm -f conftest.er1
35675 cat conftest.err >&5
a848cd7e
SC
35676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35677 (exit $ac_status); } &&
9dd0f6c2 35678 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35680 (eval $ac_try) 2>&5
35681 ac_status=$?
35682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35683 (exit $ac_status); }; } &&
35684 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35686 (eval $ac_try) 2>&5
35687 ac_status=$?
35688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35689 (exit $ac_status); }; }; then
35690 eval "$as_ac_var=yes"
35691else
35692 echo "$as_me: failed program was:" >&5
35693sed 's/^/| /' conftest.$ac_ext >&5
35694
35695eval "$as_ac_var=no"
35696fi
ac1cb8d3
VS
35697rm -f conftest.err conftest.$ac_objext \
35698 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35699fi
35700echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35701echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35702if test `eval echo '${'$as_ac_var'}'` = yes; then
35703 cat >>confdefs.h <<_ACEOF
35704#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35705_ACEOF
35706
35707 cat >>confdefs.h <<\_ACEOF
35708#define HAVE_SHL_LOAD 1
35709_ACEOF
35710
35711 HAVE_SHL_FUNCS=1
35712
35713else
35714
35715 echo "$as_me:$LINENO: checking for dld in -lshl_load" >&5
35716echo $ECHO_N "checking for dld in -lshl_load... $ECHO_C" >&6
35717if test "${ac_cv_lib_shl_load_dld+set}" = set; then
35718 echo $ECHO_N "(cached) $ECHO_C" >&6
35719else
35720 ac_check_lib_save_LIBS=$LIBS
35721LIBS="-lshl_load $LIBS"
35722cat >conftest.$ac_ext <<_ACEOF
35723/* confdefs.h. */
35724_ACEOF
35725cat confdefs.h >>conftest.$ac_ext
35726cat >>conftest.$ac_ext <<_ACEOF
35727/* end confdefs.h. */
35728
35729/* Override any gcc2 internal prototype to avoid an error. */
35730#ifdef __cplusplus
35731extern "C"
35732#endif
35733/* We use char because int might match the return type of a gcc2
35734 builtin and then its argument prototype would still apply. */
35735char dld ();
35736int
35737main ()
35738{
35739dld ();
35740 ;
35741 return 0;
35742}
35743_ACEOF
35744rm -f conftest.$ac_objext conftest$ac_exeext
35745if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35746 (eval $ac_link) 2>conftest.er1
a848cd7e 35747 ac_status=$?
ac1cb8d3
VS
35748 grep -v '^ *+' conftest.er1 >conftest.err
35749 rm -f conftest.er1
35750 cat conftest.err >&5
a848cd7e
SC
35751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35752 (exit $ac_status); } &&
9dd0f6c2 35753 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35755 (eval $ac_try) 2>&5
35756 ac_status=$?
35757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35758 (exit $ac_status); }; } &&
35759 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35761 (eval $ac_try) 2>&5
35762 ac_status=$?
35763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35764 (exit $ac_status); }; }; then
35765 ac_cv_lib_shl_load_dld=yes
35766else
35767 echo "$as_me: failed program was:" >&5
35768sed 's/^/| /' conftest.$ac_ext >&5
35769
35770ac_cv_lib_shl_load_dld=no
35771fi
ac1cb8d3
VS
35772rm -f conftest.err conftest.$ac_objext \
35773 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35774LIBS=$ac_check_lib_save_LIBS
35775fi
35776echo "$as_me:$LINENO: result: $ac_cv_lib_shl_load_dld" >&5
35777echo "${ECHO_T}$ac_cv_lib_shl_load_dld" >&6
35778if test $ac_cv_lib_shl_load_dld = yes; then
35779
35780 HAVE_SHL_FUNCS=1
35781 DL_LINK=" -ldld$DL_LINK"
35782
35783fi
35784
35785
35786fi
35787done
35788
35789
35790fi
35791
35792
35793fi
35794done
35795
35796
35797 if test "$HAVE_DL_FUNCS" = 1; then
35798
35799for ac_func in dlerror
35800do
35801as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35802echo "$as_me:$LINENO: checking for $ac_func" >&5
35803echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35804if eval "test \"\${$as_ac_var+set}\" = set"; then
35805 echo $ECHO_N "(cached) $ECHO_C" >&6
35806else
35807 cat >conftest.$ac_ext <<_ACEOF
35808/* confdefs.h. */
35809_ACEOF
35810cat confdefs.h >>conftest.$ac_ext
35811cat >>conftest.$ac_ext <<_ACEOF
35812/* end confdefs.h. */
ac1cb8d3
VS
35813/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35814 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35815#define $ac_func innocuous_$ac_func
35816
a848cd7e
SC
35817/* System header to define __stub macros and hopefully few prototypes,
35818 which can conflict with char $ac_func (); below.
35819 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35820 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 35821
a848cd7e
SC
35822#ifdef __STDC__
35823# include <limits.h>
35824#else
35825# include <assert.h>
35826#endif
ac1cb8d3
VS
35827
35828#undef $ac_func
35829
a848cd7e
SC
35830/* Override any gcc2 internal prototype to avoid an error. */
35831#ifdef __cplusplus
35832extern "C"
35833{
35834#endif
35835/* We use char because int might match the return type of a gcc2
35836 builtin and then its argument prototype would still apply. */
35837char $ac_func ();
35838/* The GNU C library defines this for functions which it implements
35839 to always fail with ENOSYS. Some functions are actually named
35840 something starting with __ and the normal name is an alias. */
35841#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35842choke me
35843#else
35844char (*f) () = $ac_func;
35845#endif
35846#ifdef __cplusplus
35847}
35848#endif
35849
35850int
35851main ()
35852{
35853return f != $ac_func;
35854 ;
35855 return 0;
35856}
35857_ACEOF
35858rm -f conftest.$ac_objext conftest$ac_exeext
35859if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35860 (eval $ac_link) 2>conftest.er1
a848cd7e 35861 ac_status=$?
ac1cb8d3
VS
35862 grep -v '^ *+' conftest.er1 >conftest.err
35863 rm -f conftest.er1
35864 cat conftest.err >&5
a848cd7e
SC
35865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35866 (exit $ac_status); } &&
9dd0f6c2 35867 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35869 (eval $ac_try) 2>&5
35870 ac_status=$?
35871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35872 (exit $ac_status); }; } &&
35873 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35875 (eval $ac_try) 2>&5
35876 ac_status=$?
35877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35878 (exit $ac_status); }; }; then
35879 eval "$as_ac_var=yes"
35880else
35881 echo "$as_me: failed program was:" >&5
35882sed 's/^/| /' conftest.$ac_ext >&5
35883
35884eval "$as_ac_var=no"
35885fi
ac1cb8d3
VS
35886rm -f conftest.err conftest.$ac_objext \
35887 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35888fi
35889echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35890echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35891if test `eval echo '${'$as_ac_var'}'` = yes; then
35892 cat >>confdefs.h <<_ACEOF
35893#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35894_ACEOF
35895 cat >>confdefs.h <<\_ACEOF
35896#define HAVE_DLERROR 1
35897_ACEOF
35898
35899else
35900
35901 echo "$as_me:$LINENO: checking for dlerror in -ldl" >&5
35902echo $ECHO_N "checking for dlerror in -ldl... $ECHO_C" >&6
35903if test "${ac_cv_lib_dl_dlerror+set}" = set; then
35904 echo $ECHO_N "(cached) $ECHO_C" >&6
35905else
35906 ac_check_lib_save_LIBS=$LIBS
35907LIBS="-ldl $LIBS"
35908cat >conftest.$ac_ext <<_ACEOF
35909/* confdefs.h. */
35910_ACEOF
35911cat confdefs.h >>conftest.$ac_ext
35912cat >>conftest.$ac_ext <<_ACEOF
35913/* end confdefs.h. */
35914
35915/* Override any gcc2 internal prototype to avoid an error. */
35916#ifdef __cplusplus
35917extern "C"
35918#endif
35919/* We use char because int might match the return type of a gcc2
35920 builtin and then its argument prototype would still apply. */
35921char dlerror ();
35922int
35923main ()
35924{
35925dlerror ();
35926 ;
35927 return 0;
35928}
35929_ACEOF
35930rm -f conftest.$ac_objext conftest$ac_exeext
35931if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35932 (eval $ac_link) 2>conftest.er1
a848cd7e 35933 ac_status=$?
ac1cb8d3
VS
35934 grep -v '^ *+' conftest.er1 >conftest.err
35935 rm -f conftest.er1
35936 cat conftest.err >&5
a848cd7e
SC
35937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35938 (exit $ac_status); } &&
9dd0f6c2 35939 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35941 (eval $ac_try) 2>&5
35942 ac_status=$?
35943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35944 (exit $ac_status); }; } &&
35945 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35947 (eval $ac_try) 2>&5
35948 ac_status=$?
35949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35950 (exit $ac_status); }; }; then
35951 ac_cv_lib_dl_dlerror=yes
35952else
35953 echo "$as_me: failed program was:" >&5
35954sed 's/^/| /' conftest.$ac_ext >&5
35955
35956ac_cv_lib_dl_dlerror=no
35957fi
ac1cb8d3
VS
35958rm -f conftest.err conftest.$ac_objext \
35959 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35960LIBS=$ac_check_lib_save_LIBS
35961fi
35962echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlerror" >&5
35963echo "${ECHO_T}$ac_cv_lib_dl_dlerror" >&6
35964if test $ac_cv_lib_dl_dlerror = yes; then
35965 cat >>confdefs.h <<\_ACEOF
35966#define HAVE_DLERROR 1
35967_ACEOF
35968
35969fi
35970
35971
35972
35973fi
35974done
35975
35976 fi
35977 fi
35978
35979 if test "$HAVE_DL_FUNCS" = 0; then
35980 if test "$HAVE_SHL_FUNCS" = 0; then
35981 if test "$USE_UNIX" = 1; then
35982 { echo "$as_me:$LINENO: WARNING: Missing dynamic loading support, several features will be disabled" >&5
35983echo "$as_me: WARNING: Missing dynamic loading support, several features will be disabled" >&2;}
35984 wxUSE_DYNAMIC_LOADER=no
35985 wxUSE_DYNLIB_CLASS=no
35986 else
35987 { echo "$as_me:$LINENO: WARNING: Assuming wxLibrary class works on this platform" >&5
35988echo "$as_me: WARNING: Assuming wxLibrary class works on this platform" >&2;}
35989 fi
35990 fi
35991 fi
35992 fi
35993fi
35994
35995if test "$wxUSE_DYNAMIC_LOADER" = "yes" ; then
35996 cat >>confdefs.h <<\_ACEOF
35997#define wxUSE_DYNAMIC_LOADER 1
35998_ACEOF
35999
36000fi
36001if test "$wxUSE_DYNLIB_CLASS" = "yes" ; then
36002 cat >>confdefs.h <<\_ACEOF
36003#define wxUSE_DYNLIB_CLASS 1
36004_ACEOF
36005
36006fi
36007
36008
36009
36010if test "$wxUSE_PLUGINS" = "yes" ; then
36011 if test "$wxUSE_SHARED" = "no" ; then
36012 { echo "$as_me:$LINENO: WARNING: plugins supported only in shared build, disabling" >&5
36013echo "$as_me: WARNING: plugins supported only in shared build, disabling" >&2;}
36014 wxUSE_PLUGINS=no
36015 fi
36016 if test "$wxUSE_MONOLITHIC" = "yes" ; then
36017 { echo "$as_me:$LINENO: WARNING: plugins not supported monolithic build, disabling" >&5
36018echo "$as_me: WARNING: plugins not supported monolithic build, disabling" >&2;}
36019 wxUSE_PLUGINS=no
36020 fi
36021 if test "$wxUSE_DYNLIB_CLASS" = "no" ; then
36022 { echo "$as_me:$LINENO: WARNING: plugins require wxDynamicLibrary, disabling" >&5
36023echo "$as_me: WARNING: plugins require wxDynamicLibrary, disabling" >&2;}
36024 wxUSE_PLUGINS=no
36025 fi
36026 if test "$wxUSE_PLUGINS" = "yes" ; then
36027 cat >>confdefs.h <<\_ACEOF
36028#define wxUSE_PLUGINS 1
36029_ACEOF
36030
36031 fi
36032fi
36033
36034
36035if test "$wxUSE_STL" = "yes"; then
36036 cat >>confdefs.h <<\_ACEOF
36037#define wxUSE_STL 1
36038_ACEOF
36039
36040fi
36041
36042if test "$wxUSE_APPLE_IEEE" = "yes"; then
36043 cat >>confdefs.h <<\_ACEOF
36044#define wxUSE_APPLE_IEEE 1
36045_ACEOF
36046
36047fi
36048
36049if test "$wxUSE_TIMER" = "yes"; then
36050 cat >>confdefs.h <<\_ACEOF
36051#define wxUSE_TIMER 1
36052_ACEOF
36053
36054fi
36055
36056WITH_PLUGIN_SDL=0
36057if test "$wxUSE_SOUND" = "yes"; then
36058 if test "$USE_UNIX" = "1" ; then
36059
36060for ac_header in sys/soundcard.h
36061do
36062as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
36063if eval "test \"\${$as_ac_Header+set}\" = set"; then
36064 echo "$as_me:$LINENO: checking for $ac_header" >&5
36065echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36066if eval "test \"\${$as_ac_Header+set}\" = set"; then
36067 echo $ECHO_N "(cached) $ECHO_C" >&6
36068fi
36069echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36070echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36071else
36072 # Is the header compilable?
36073echo "$as_me:$LINENO: checking $ac_header usability" >&5
36074echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
36075cat >conftest.$ac_ext <<_ACEOF
36076/* confdefs.h. */
36077_ACEOF
36078cat confdefs.h >>conftest.$ac_ext
36079cat >>conftest.$ac_ext <<_ACEOF
36080/* end confdefs.h. */
36081$ac_includes_default
36082#include <$ac_header>
36083_ACEOF
36084rm -f conftest.$ac_objext
36085if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 36086 (eval $ac_compile) 2>conftest.er1
a848cd7e 36087 ac_status=$?
ac1cb8d3
VS
36088 grep -v '^ *+' conftest.er1 >conftest.err
36089 rm -f conftest.er1
36090 cat conftest.err >&5
a848cd7e
SC
36091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36092 (exit $ac_status); } &&
9dd0f6c2 36093 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36095 (eval $ac_try) 2>&5
36096 ac_status=$?
36097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36098 (exit $ac_status); }; } &&
36099 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
36100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36101 (eval $ac_try) 2>&5
36102 ac_status=$?
36103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36104 (exit $ac_status); }; }; then
36105 ac_header_compiler=yes
36106else
36107 echo "$as_me: failed program was:" >&5
36108sed 's/^/| /' conftest.$ac_ext >&5
36109
36110ac_header_compiler=no
36111fi
ac1cb8d3 36112rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
36113echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36114echo "${ECHO_T}$ac_header_compiler" >&6
36115
36116# Is the header present?
36117echo "$as_me:$LINENO: checking $ac_header presence" >&5
36118echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
36119cat >conftest.$ac_ext <<_ACEOF
36120/* confdefs.h. */
36121_ACEOF
36122cat confdefs.h >>conftest.$ac_ext
36123cat >>conftest.$ac_ext <<_ACEOF
36124/* end confdefs.h. */
36125#include <$ac_header>
36126_ACEOF
36127if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
36128 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
36129 ac_status=$?
36130 grep -v '^ *+' conftest.er1 >conftest.err
36131 rm -f conftest.er1
36132 cat conftest.err >&5
36133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36134 (exit $ac_status); } >/dev/null; then
36135 if test -s conftest.err; then
36136 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 36137 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
36138 else
36139 ac_cpp_err=
36140 fi
36141else
36142 ac_cpp_err=yes
36143fi
36144if test -z "$ac_cpp_err"; then
36145 ac_header_preproc=yes
36146else
36147 echo "$as_me: failed program was:" >&5
36148sed 's/^/| /' conftest.$ac_ext >&5
36149
36150 ac_header_preproc=no
36151fi
36152rm -f conftest.err conftest.$ac_ext
36153echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36154echo "${ECHO_T}$ac_header_preproc" >&6
36155
36156# So? What about this header?
ac1cb8d3
VS
36157case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36158 yes:no: )
a848cd7e
SC
36159 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
36160echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
36161 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
36162echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
36163 ac_header_preproc=yes
a848cd7e 36164 ;;
ac1cb8d3 36165 no:yes:* )
a848cd7e
SC
36166 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
36167echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
36168 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
36169echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
36170 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
36171echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
36172 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
36173echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
36174 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
36175echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
36176 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
36177echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
36178 (
36179 cat <<\_ASBOX
ac1cb8d3
VS
36180## ----------------------------------------- ##
36181## Report this to wx-dev@lists.wxwidgets.org ##
36182## ----------------------------------------- ##
a848cd7e
SC
36183_ASBOX
36184 ) |
36185 sed "s/^/$as_me: WARNING: /" >&2
36186 ;;
36187esac
36188echo "$as_me:$LINENO: checking for $ac_header" >&5
36189echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36190if eval "test \"\${$as_ac_Header+set}\" = set"; then
36191 echo $ECHO_N "(cached) $ECHO_C" >&6
36192else
ac1cb8d3 36193 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
36194fi
36195echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36196echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36197
36198fi
36199if test `eval echo '${'$as_ac_Header'}'` = yes; then
36200 cat >>confdefs.h <<_ACEOF
36201#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
36202_ACEOF
36203
36204fi
36205
36206done
36207
36208
36209 if test "$wxUSE_LIBSDL" != "no"; then
36210
36211# Check whether --with-sdl-prefix or --without-sdl-prefix was given.
36212if test "${with_sdl_prefix+set}" = set; then
36213 withval="$with_sdl_prefix"
36214 sdl_prefix="$withval"
36215else
36216 sdl_prefix=""
36217fi;
36218
36219# Check whether --with-sdl-exec-prefix or --without-sdl-exec-prefix was given.
36220if test "${with_sdl_exec_prefix+set}" = set; then
36221 withval="$with_sdl_exec_prefix"
36222 sdl_exec_prefix="$withval"
36223else
36224 sdl_exec_prefix=""
36225fi;
36226# Check whether --enable-sdltest or --disable-sdltest was given.
36227if test "${enable_sdltest+set}" = set; then
36228 enableval="$enable_sdltest"
36229
36230else
36231 enable_sdltest=yes
36232fi;
36233
36234 if test x$sdl_exec_prefix != x ; then
36235 sdl_args="$sdl_args --exec-prefix=$sdl_exec_prefix"
36236 if test x${SDL_CONFIG+set} != xset ; then
36237 SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config
36238 fi
36239 fi
36240 if test x$sdl_prefix != x ; then
36241 sdl_args="$sdl_args --prefix=$sdl_prefix"
36242 if test x${SDL_CONFIG+set} != xset ; then
36243 SDL_CONFIG=$sdl_prefix/bin/sdl-config
36244 fi
36245 fi
36246
36247
36248 PATH="$prefix/bin:$prefix/usr/bin:$PATH"
36249 # Extract the first word of "sdl-config", so it can be a program name with args.
36250set dummy sdl-config; ac_word=$2
36251echo "$as_me:$LINENO: checking for $ac_word" >&5
36252echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
36253if test "${ac_cv_path_SDL_CONFIG+set}" = set; then
36254 echo $ECHO_N "(cached) $ECHO_C" >&6
36255else
36256 case $SDL_CONFIG in
36257 [\\/]* | ?:[\\/]*)
36258 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
36259 ;;
36260 *)
36261 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36262for as_dir in $PATH
36263do
36264 IFS=$as_save_IFS
36265 test -z "$as_dir" && as_dir=.
36266 for ac_exec_ext in '' $ac_executable_extensions; do
36267 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
36268 ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
36269 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
36270 break 2
36271 fi
36272done
36273done
36274
36275 test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
36276 ;;
36277esac
36278fi
36279SDL_CONFIG=$ac_cv_path_SDL_CONFIG
36280
36281if test -n "$SDL_CONFIG"; then
36282 echo "$as_me:$LINENO: result: $SDL_CONFIG" >&5
36283echo "${ECHO_T}$SDL_CONFIG" >&6
36284else
36285 echo "$as_me:$LINENO: result: no" >&5
36286echo "${ECHO_T}no" >&6
36287fi
36288
36289 min_sdl_version=1.2.0
36290 echo "$as_me:$LINENO: checking for SDL - version >= $min_sdl_version" >&5
36291echo $ECHO_N "checking for SDL - version >= $min_sdl_version... $ECHO_C" >&6
36292 no_sdl=""
36293 if test "$SDL_CONFIG" = "no" ; then
36294 no_sdl=yes
36295 else
36296 SDL_CFLAGS=`$SDL_CONFIG $sdlconf_args --cflags`
36297 SDL_LIBS=`$SDL_CONFIG $sdlconf_args --libs`
36298
36299 sdl_major_version=`$SDL_CONFIG $sdl_args --version | \
36300 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
36301 sdl_minor_version=`$SDL_CONFIG $sdl_args --version | \
36302 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
36303 sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
36304 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
36305 if test "x$enable_sdltest" = "xyes" ; then
36306 ac_save_CFLAGS="$CFLAGS"
94acd38e 36307 ac_save_CXXFLAGS="$CXXFLAGS"
a848cd7e
SC
36308 ac_save_LIBS="$LIBS"
36309 CFLAGS="$CFLAGS $SDL_CFLAGS"
94acd38e 36310 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
a848cd7e
SC
36311 LIBS="$LIBS $SDL_LIBS"
36312 rm -f conf.sdltest
36313 if test "$cross_compiling" = yes; then
36314 echo $ac_n "cross compiling; assumed OK... $ac_c"
36315else
36316 cat >conftest.$ac_ext <<_ACEOF
36317/* confdefs.h. */
36318_ACEOF
36319cat confdefs.h >>conftest.$ac_ext
36320cat >>conftest.$ac_ext <<_ACEOF
36321/* end confdefs.h. */
36322
36323#include <stdio.h>
36324#include <stdlib.h>
36325#include <string.h>
36326#include "SDL.h"
36327
36328char*
36329my_strdup (char *str)
36330{
36331 char *new_str;
36332
36333 if (str)
36334 {
36335 new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
36336 strcpy (new_str, str);
36337 }
36338 else
36339 new_str = NULL;
36340
36341 return new_str;
36342}
36343
36344int main (int argc, char *argv[])
36345{
36346 int major, minor, micro;
36347 char *tmp_version;
36348
36349 /* This hangs on some systems (?)
36350 system ("touch conf.sdltest");
36351 */
36352 { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
36353
36354 /* HP/UX 9 (%@#!) writes to sscanf strings */
36355 tmp_version = my_strdup("$min_sdl_version");
36356 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
36357 printf("%s, bad version string\n", "$min_sdl_version");
36358 exit(1);
36359 }
36360
36361 if (($sdl_major_version > major) ||
36362 (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
36363 (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
36364 {
36365 return 0;
36366 }
36367 else
36368 {
36369 printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
36370 printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
36371 printf("*** best to upgrade to the required version.\n");
36372 printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
36373 printf("*** to point to the correct copy of sdl-config, and remove the file\n");
36374 printf("*** config.cache before re-running configure\n");
36375 return 1;
36376 }
36377}
36378
36379
36380_ACEOF
36381rm -f conftest$ac_exeext
36382if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36383 (eval $ac_link) 2>&5
36384 ac_status=$?
36385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36386 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
36387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36388 (eval $ac_try) 2>&5
36389 ac_status=$?
36390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36391 (exit $ac_status); }; }; then
36392 :
36393else
36394 echo "$as_me: program exited with status $ac_status" >&5
36395echo "$as_me: failed program was:" >&5
36396sed 's/^/| /' conftest.$ac_ext >&5
36397
36398( exit $ac_status )
36399no_sdl=yes
36400fi
ac1cb8d3 36401rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
36402fi
36403 CFLAGS="$ac_save_CFLAGS"
94acd38e 36404 CXXFLAGS="$ac_save_CXXFLAGS"
a848cd7e
SC
36405 LIBS="$ac_save_LIBS"
36406 fi
36407 fi
36408 if test "x$no_sdl" = x ; then
36409 echo "$as_me:$LINENO: result: yes" >&5
36410echo "${ECHO_T}yes" >&6
36411
36412 EXTRALIBS_SDL="$SDL_LIBS"
36413 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
36414 cat >>confdefs.h <<\_ACEOF
36415#define wxUSE_LIBSDL 1
36416_ACEOF
36417
36418
36419 else
36420 echo "$as_me:$LINENO: result: no" >&5
36421echo "${ECHO_T}no" >&6
36422 if test "$SDL_CONFIG" = "no" ; then
36423 echo "*** The sdl-config script installed by SDL could not be found"
36424 echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
36425 echo "*** your path, or set the SDL_CONFIG environment variable to the"
36426 echo "*** full path to sdl-config."
36427 else
36428 if test -f conf.sdltest ; then
36429 :
36430 else
36431 echo "*** Could not run SDL test program, checking why..."
36432 CFLAGS="$CFLAGS $SDL_CFLAGS"
94acd38e 36433 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
a848cd7e
SC
36434 LIBS="$LIBS $SDL_LIBS"
36435 cat >conftest.$ac_ext <<_ACEOF
36436/* confdefs.h. */
36437_ACEOF
36438cat confdefs.h >>conftest.$ac_ext
36439cat >>conftest.$ac_ext <<_ACEOF
36440/* end confdefs.h. */
36441
36442#include <stdio.h>
36443#include "SDL.h"
36444
36445int main(int argc, char *argv[])
36446{ return 0; }
36447#undef main
36448#define main K_and_R_C_main
36449
36450int
36451main ()
36452{
36453 return 0;
36454 ;
36455 return 0;
36456}
36457_ACEOF
36458rm -f conftest.$ac_objext conftest$ac_exeext
36459if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36460 (eval $ac_link) 2>conftest.er1
a848cd7e 36461 ac_status=$?
ac1cb8d3
VS
36462 grep -v '^ *+' conftest.er1 >conftest.err
36463 rm -f conftest.er1
36464 cat conftest.err >&5
a848cd7e
SC
36465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36466 (exit $ac_status); } &&
9dd0f6c2 36467 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36469 (eval $ac_try) 2>&5
36470 ac_status=$?
36471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36472 (exit $ac_status); }; } &&
36473 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36475 (eval $ac_try) 2>&5
36476 ac_status=$?
36477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36478 (exit $ac_status); }; }; then
36479 echo "*** The test program compiled, but did not run. This usually means"
36480 echo "*** that the run-time linker is not finding SDL or finding the wrong"
36481 echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
36482 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
36483 echo "*** to the installed location Also, make sure you have run ldconfig if that"
36484 echo "*** is required on your system"
36485 echo "***"
36486 echo "*** If you have an old version installed, it is best to remove it, although"
36487 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
36488else
36489 echo "$as_me: failed program was:" >&5
36490sed 's/^/| /' conftest.$ac_ext >&5
36491
36492 echo "*** The test program failed to compile or link. See the file config.log for the"
36493 echo "*** exact error that occured. This usually means SDL was incorrectly installed"
36494 echo "*** or that you have moved SDL since it was installed. In the latter case, you"
36495 echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
36496fi
ac1cb8d3
VS
36497rm -f conftest.err conftest.$ac_objext \
36498 conftest$ac_exeext conftest.$ac_ext
a848cd7e 36499 CFLAGS="$ac_save_CFLAGS"
94acd38e 36500 CXXFLAGS="$ac_save_CXXFLAGS"
a848cd7e
SC
36501 LIBS="$ac_save_LIBS"
36502 fi
36503 fi
36504 SDL_CFLAGS=""
36505 SDL_LIBS=""
36506 wxUSE_LIBSDL="no"
36507 fi
36508
36509
36510 rm -f conf.sdltest
36511
36512 if test "$wxUSE_LIBSDL" = "yes" -a "$wxUSE_PLUGINS" = "yes" ; then
36513 WITH_PLUGIN_SDL=1
36514 fi
36515 fi
36516 fi
36517
36518 cat >>confdefs.h <<\_ACEOF
36519#define wxUSE_SOUND 1
36520_ACEOF
36521
36522 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sound"
36523fi
36524
d1c38808
VZ
36525if test "$WXGTK20" = 1; then
36526 if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
36527 if test "$wxUSE_LIBGNOMEPRINT" = "yes" ; then
36528
36529
36530 succeeded=no
36531
36532 if test -z "$PKG_CONFIG"; then
36533 # Extract the first word of "pkg-config", so it can be a program name with args.
36534set dummy pkg-config; ac_word=$2
36535echo "$as_me:$LINENO: checking for $ac_word" >&5
36536echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
36537if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
36538 echo $ECHO_N "(cached) $ECHO_C" >&6
36539else
36540 case $PKG_CONFIG in
36541 [\\/]* | ?:[\\/]*)
36542 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
36543 ;;
36544 *)
36545 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36546for as_dir in $PATH
36547do
36548 IFS=$as_save_IFS
36549 test -z "$as_dir" && as_dir=.
36550 for ac_exec_ext in '' $ac_executable_extensions; do
36551 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
36552 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
36553 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
36554 break 2
36555 fi
36556done
36557done
36558
36559 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
36560 ;;
36561esac
36562fi
36563PKG_CONFIG=$ac_cv_path_PKG_CONFIG
36564
36565if test -n "$PKG_CONFIG"; then
36566 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
36567echo "${ECHO_T}$PKG_CONFIG" >&6
36568else
36569 echo "$as_me:$LINENO: result: no" >&5
36570echo "${ECHO_T}no" >&6
36571fi
36572
36573 fi
36574
36575 if test "$PKG_CONFIG" = "no" ; then
36576 echo "*** The pkg-config script could not be found. Make sure it is"
36577 echo "*** in your path, or set the PKG_CONFIG environment variable"
36578 echo "*** to the full path to pkg-config."
36579 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
36580 else
36581 PKG_CONFIG_MIN_VERSION=0.9.0
36582 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
ffa762ff
VS
36583 echo "$as_me:$LINENO: checking for libgnomeprintui-2.2 >= 2.8" >&5
36584echo $ECHO_N "checking for libgnomeprintui-2.2 >= 2.8... $ECHO_C" >&6
d1c38808 36585
ffa762ff 36586 if $PKG_CONFIG --exists "libgnomeprintui-2.2 >= 2.8" ; then
d1c38808
VZ
36587 echo "$as_me:$LINENO: result: yes" >&5
36588echo "${ECHO_T}yes" >&6
36589 succeeded=yes
36590
36591 echo "$as_me:$LINENO: checking LIBGNOMEPRINTUI_CFLAGS" >&5
36592echo $ECHO_N "checking LIBGNOMEPRINTUI_CFLAGS... $ECHO_C" >&6
ffa762ff 36593 LIBGNOMEPRINTUI_CFLAGS=`$PKG_CONFIG --cflags "libgnomeprintui-2.2 >= 2.8"`
d1c38808
VZ
36594 echo "$as_me:$LINENO: result: $LIBGNOMEPRINTUI_CFLAGS" >&5
36595echo "${ECHO_T}$LIBGNOMEPRINTUI_CFLAGS" >&6
36596
36597 echo "$as_me:$LINENO: checking LIBGNOMEPRINTUI_LIBS" >&5
36598echo $ECHO_N "checking LIBGNOMEPRINTUI_LIBS... $ECHO_C" >&6
ffa762ff 36599 LIBGNOMEPRINTUI_LIBS=`$PKG_CONFIG --libs "libgnomeprintui-2.2 >= 2.8"`
d1c38808
VZ
36600 echo "$as_me:$LINENO: result: $LIBGNOMEPRINTUI_LIBS" >&5
36601echo "${ECHO_T}$LIBGNOMEPRINTUI_LIBS" >&6
36602 else
36603 LIBGNOMEPRINTUI_CFLAGS=""
36604 LIBGNOMEPRINTUI_LIBS=""
36605 ## If we have a custom action on failure, don't print errors, but
36606 ## do set a variable so people can do so.
ffa762ff 36607 LIBGNOMEPRINTUI_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libgnomeprintui-2.2 >= 2.8"`
d1c38808
VZ
36608
36609 fi
36610
36611
36612
36613 else
36614 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
36615 echo "*** See http://www.freedesktop.org/software/pkgconfig"
36616 fi
36617 fi
36618
36619 if test $succeeded = yes; then
36620
d1c38808
VZ
36621 CXXFLAGS="$CXXFLAGS $LIBGNOMEPRINTUI_CFLAGS"
36622 cat >>confdefs.h <<\_ACEOF
36623#define wxUSE_LIBGNOMEPRINT 1
36624_ACEOF
36625
36626
36627 else
36628
36629 { echo "$as_me:$LINENO: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&5
36630echo "$as_me: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&2;}
36631 wxUSE_LIBGNOMEPRINT="no"
36632
36633
36634 fi
36635
36636 fi
36637 fi
36638fi
36639
36640
a848cd7e
SC
36641if test "$wxUSE_CMDLINE_PARSER" = "yes"; then
36642 cat >>confdefs.h <<\_ACEOF
36643#define wxUSE_CMDLINE_PARSER 1
36644_ACEOF
36645
36646fi
36647
36648if test "$wxUSE_STOPWATCH" = "yes"; then
36649 cat >>confdefs.h <<\_ACEOF
36650#define wxUSE_STOPWATCH 1
36651_ACEOF
36652
36653fi
36654
36655if test "$wxUSE_DATETIME" = "yes"; then
36656 cat >>confdefs.h <<\_ACEOF
36657#define wxUSE_DATETIME 1
36658_ACEOF
36659
36660fi
36661
36662if test "$wxUSE_FILE" = "yes"; then
36663 cat >>confdefs.h <<\_ACEOF
36664#define wxUSE_FILE 1
36665_ACEOF
36666
36667fi
36668
36669if test "$wxUSE_FFILE" = "yes"; then
36670 cat >>confdefs.h <<\_ACEOF
36671#define wxUSE_FFILE 1
36672_ACEOF
36673
36674fi
36675
36676if test "$wxUSE_FILESYSTEM" = "yes"; then
36677 cat >>confdefs.h <<\_ACEOF
36678#define wxUSE_FILESYSTEM 1
36679_ACEOF
36680
36681fi
36682
36683if test "$wxUSE_FS_ZIP" = "yes"; then
36684 cat >>confdefs.h <<\_ACEOF
36685#define wxUSE_FS_ZIP 1
36686_ACEOF
36687
36688fi
36689
9e8e867f 36690if test "$wxUSE_ARCHIVE_STREAMS" = "yes"; then
a848cd7e 36691 cat >>confdefs.h <<\_ACEOF
9e8e867f 36692#define wxUSE_ARCHIVE_STREAMS 1
81f90336
MW
36693_ACEOF
36694
36695fi
36696
36697if test "$wxUSE_ZIPSTREAM" = "yes"; then
9e8e867f 36698 if test "$wxUSE_ARCHIVE_STREAMS" != "yes"; then
81f90336
MW
36699 { echo "$as_me:$LINENO: WARNING: wxZip requires wxArchive... disabled" >&5
36700echo "$as_me: WARNING: wxZip requires wxArchive... disabled" >&2;}
36701 elif test "$wxUSE_ZLIB" = "no"; then
36702 { echo "$as_me:$LINENO: WARNING: wxZip requires wxZlib... disabled" >&5
36703echo "$as_me: WARNING: wxZip requires wxZlib... disabled" >&2;}
36704 else
36705 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
36706#define wxUSE_ZIPSTREAM 1
36707_ACEOF
36708
81f90336 36709 fi
a848cd7e
SC
36710fi
36711
a848cd7e
SC
36712if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
36713 cat >>confdefs.h <<\_ACEOF
36714#define wxUSE_ON_FATAL_EXCEPTION 1
36715_ACEOF
36716
36717fi
36718
eaff0f0d
VZ
36719if test "$wxUSE_STACKWALKER" = "yes"; then
36720 cat >>confdefs.h <<\_ACEOF
36721#define wxUSE_STACKWALKER 1
36722_ACEOF
36723
36724fi
36725
36b6448c 36726if test "$wxUSE_DEBUGREPORT" = "yes"; then
dfe0c803
JS
36727 if test "$USE_OS2" = "1"; then
36728 { echo "$as_me:$LINENO: WARNING: Creating debug reports not supported under OS/2 yet, disabled" >&5
36729echo "$as_me: WARNING: Creating debug reports not supported under OS/2 yet, disabled" >&2;}
36730 wxUSE_DEBUGREPORT=no
36731 else
36732 cat >>confdefs.h <<\_ACEOF
36b6448c
VZ
36733#define wxUSE_DEBUGREPORT 1
36734_ACEOF
36735
dfe0c803
JS
36736 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS debugrpt"
36737 fi
36b6448c
VZ
36738fi
36739
a848cd7e
SC
36740if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
36741 cat >>confdefs.h <<\_ACEOF
36742#define wxUSE_SNGLINST_CHECKER 1
36743_ACEOF
36744
36745fi
36746
36747if test "$wxUSE_BUSYINFO" = "yes"; then
36748 cat >>confdefs.h <<\_ACEOF
36749#define wxUSE_BUSYINFO 1
36750_ACEOF
36751
36752fi
36753
36754if test "$wxUSE_STD_IOSTREAM" = "yes"; then
36755 cat >>confdefs.h <<\_ACEOF
36756#define wxUSE_STD_IOSTREAM 1
36757_ACEOF
36758
36759fi
36760
59746b65
MW
36761if test "$wxUSE_STD_STRING" = "yes"; then
36762 cat >>confdefs.h <<\_ACEOF
36763#define wxUSE_STD_STRING 1
36764_ACEOF
36765
36766fi
36767
07158944
VZ
36768if test "$wxUSE_STDPATHS" = "yes"; then
36769 cat >>confdefs.h <<\_ACEOF
36770#define wxUSE_STDPATHS 1
36771_ACEOF
36772
36773fi
36774
a848cd7e
SC
36775if test "$wxUSE_TEXTBUFFER" = "yes"; then
36776 cat >>confdefs.h <<\_ACEOF
36777#define wxUSE_TEXTBUFFER 1
36778_ACEOF
36779
36780fi
36781
36782if test "$wxUSE_TEXTFILE" = "yes"; then
36783 if test "$wxUSE_FILE" != "yes" -o "$wxUSE_TEXTBUFFER" != "yes" ; then
36784 { echo "$as_me:$LINENO: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&5
36785echo "$as_me: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&2;}
36786 else
36787 cat >>confdefs.h <<\_ACEOF
36788#define wxUSE_TEXTFILE 1
36789_ACEOF
36790
36791 fi
36792fi
36793
36794if test "$wxUSE_CONFIG" = "yes" ; then
36795 if test "$wxUSE_TEXTFILE" != "yes"; then
36796 { echo "$as_me:$LINENO: WARNING: wxConfig requires wxTextFile... disabled" >&5
36797echo "$as_me: WARNING: wxConfig requires wxTextFile... disabled" >&2;}
36798 else
36799 cat >>confdefs.h <<\_ACEOF
36800#define wxUSE_CONFIG 1
89be85c2
VS
36801_ACEOF
36802
36803 cat >>confdefs.h <<\_ACEOF
36804#define wxUSE_CONFIG_NATIVE 1
a848cd7e
SC
36805_ACEOF
36806
36807 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config"
36808 fi
36809fi
36810
36811if test "$wxUSE_INTL" = "yes" ; then
36812 if test "$wxUSE_FILE" != "yes"; then
36813 { echo "$as_me:$LINENO: WARNING: I18n code requires wxFile... disabled" >&5
36814echo "$as_me: WARNING: I18n code requires wxFile... disabled" >&2;}
36815 else
36816 cat >>confdefs.h <<\_ACEOF
36817#define wxUSE_INTL 1
36818_ACEOF
36819
36820 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat"
36821 GUIDIST="$GUIDIST INTL_DIST"
36822 fi
36823fi
36824
36825if test "$wxUSE_LOG" = "yes"; then
36826 cat >>confdefs.h <<\_ACEOF
36827#define wxUSE_LOG 1
36828_ACEOF
36829
36830
36831 if test "$wxUSE_LOGGUI" = "yes"; then
36832 cat >>confdefs.h <<\_ACEOF
36833#define wxUSE_LOGGUI 1
36834_ACEOF
36835
36836 fi
36837
36838 if test "$wxUSE_LOGWINDOW" = "yes"; then
36839 cat >>confdefs.h <<\_ACEOF
36840#define wxUSE_LOGWINDOW 1
36841_ACEOF
36842
36843 fi
36844
36845 if test "$wxUSE_LOGDIALOG" = "yes"; then
36846 cat >>confdefs.h <<\_ACEOF
36847#define wxUSE_LOG_DIALOG 1
36848_ACEOF
36849
36850 fi
0b78747f
MW
36851
36852 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS keyboard"
a848cd7e
SC
36853fi
36854
36855if test "$wxUSE_LONGLONG" = "yes"; then
36856 cat >>confdefs.h <<\_ACEOF
36857#define wxUSE_LONGLONG 1
36858_ACEOF
36859
36860fi
36861
36862if test "$wxUSE_GEOMETRY" = "yes"; then
36863 cat >>confdefs.h <<\_ACEOF
36864#define wxUSE_GEOMETRY 1
36865_ACEOF
36866
36867fi
36868
a848cd7e
SC
36869if test "$wxUSE_STREAMS" = "yes" ; then
36870 cat >>confdefs.h <<\_ACEOF
36871#define wxUSE_STREAMS 1
36872_ACEOF
36873
36874fi
36875
36876
36877if test "$wxUSE_DATETIME" = "yes"; then
36878
36879for ac_func in strptime
36880do
36881as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36882echo "$as_me:$LINENO: checking for $ac_func" >&5
36883echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36884if eval "test \"\${$as_ac_var+set}\" = set"; then
36885 echo $ECHO_N "(cached) $ECHO_C" >&6
36886else
36887 cat >conftest.$ac_ext <<_ACEOF
36888/* confdefs.h. */
36889_ACEOF
36890cat confdefs.h >>conftest.$ac_ext
36891cat >>conftest.$ac_ext <<_ACEOF
36892/* end confdefs.h. */
ac1cb8d3
VS
36893/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36894 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36895#define $ac_func innocuous_$ac_func
36896
a848cd7e
SC
36897/* System header to define __stub macros and hopefully few prototypes,
36898 which can conflict with char $ac_func (); below.
36899 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36900 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 36901
a848cd7e
SC
36902#ifdef __STDC__
36903# include <limits.h>
36904#else
36905# include <assert.h>
36906#endif
ac1cb8d3
VS
36907
36908#undef $ac_func
36909
a848cd7e
SC
36910/* Override any gcc2 internal prototype to avoid an error. */
36911#ifdef __cplusplus
36912extern "C"
36913{
36914#endif
36915/* We use char because int might match the return type of a gcc2
36916 builtin and then its argument prototype would still apply. */
36917char $ac_func ();
36918/* The GNU C library defines this for functions which it implements
36919 to always fail with ENOSYS. Some functions are actually named
36920 something starting with __ and the normal name is an alias. */
36921#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36922choke me
36923#else
36924char (*f) () = $ac_func;
36925#endif
36926#ifdef __cplusplus
36927}
36928#endif
36929
36930int
36931main ()
36932{
36933return f != $ac_func;
36934 ;
36935 return 0;
36936}
36937_ACEOF
36938rm -f conftest.$ac_objext conftest$ac_exeext
36939if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36940 (eval $ac_link) 2>conftest.er1
a848cd7e 36941 ac_status=$?
ac1cb8d3
VS
36942 grep -v '^ *+' conftest.er1 >conftest.err
36943 rm -f conftest.er1
36944 cat conftest.err >&5
a848cd7e
SC
36945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36946 (exit $ac_status); } &&
9dd0f6c2 36947 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36949 (eval $ac_try) 2>&5
36950 ac_status=$?
36951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36952 (exit $ac_status); }; } &&
36953 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36955 (eval $ac_try) 2>&5
36956 ac_status=$?
36957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36958 (exit $ac_status); }; }; then
36959 eval "$as_ac_var=yes"
36960else
36961 echo "$as_me: failed program was:" >&5
36962sed 's/^/| /' conftest.$ac_ext >&5
36963
36964eval "$as_ac_var=no"
36965fi
ac1cb8d3
VS
36966rm -f conftest.err conftest.$ac_objext \
36967 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36968fi
36969echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36970echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36971if test `eval echo '${'$as_ac_var'}'` = yes; then
36972 cat >>confdefs.h <<_ACEOF
36973#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36974_ACEOF
36975
36976fi
36977done
36978
36979
36980 echo "$as_me:$LINENO: checking for timezone variable in <time.h>" >&5
36981echo $ECHO_N "checking for timezone variable in <time.h>... $ECHO_C" >&6
36982if test "${wx_cv_var_timezone+set}" = set; then
36983 echo $ECHO_N "(cached) $ECHO_C" >&6
36984else
36985
36986 cat >conftest.$ac_ext <<_ACEOF
36987/* confdefs.h. */
36988_ACEOF
36989cat confdefs.h >>conftest.$ac_ext
36990cat >>conftest.$ac_ext <<_ACEOF
36991/* end confdefs.h. */
36992
36993 #include <time.h>
36994
36995int
36996main ()
36997{
36998
36999 int tz;
37000 tz = timezone;
37001
37002 ;
37003 return 0;
37004}
37005_ACEOF
37006rm -f conftest.$ac_objext
37007if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 37008 (eval $ac_compile) 2>conftest.er1
a848cd7e 37009 ac_status=$?
ac1cb8d3
VS
37010 grep -v '^ *+' conftest.er1 >conftest.err
37011 rm -f conftest.er1
37012 cat conftest.err >&5
a848cd7e
SC
37013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37014 (exit $ac_status); } &&
9dd0f6c2 37015 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37017 (eval $ac_try) 2>&5
37018 ac_status=$?
37019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37020 (exit $ac_status); }; } &&
37021 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
37022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37023 (eval $ac_try) 2>&5
37024 ac_status=$?
37025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37026 (exit $ac_status); }; }; then
37027
37028 wx_cv_var_timezone=timezone
37029
37030else
37031 echo "$as_me: failed program was:" >&5
37032sed 's/^/| /' conftest.$ac_ext >&5
37033
37034
37035 cat >conftest.$ac_ext <<_ACEOF
37036/* confdefs.h. */
37037_ACEOF
37038cat confdefs.h >>conftest.$ac_ext
37039cat >>conftest.$ac_ext <<_ACEOF
37040/* end confdefs.h. */
37041
37042 #include <time.h>
37043
37044int
37045main ()
37046{
37047
37048 int tz;
37049 tz = _timezone;
37050
37051 ;
37052 return 0;
37053}
37054_ACEOF
37055rm -f conftest.$ac_objext
37056if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 37057 (eval $ac_compile) 2>conftest.er1
a848cd7e 37058 ac_status=$?
ac1cb8d3
VS
37059 grep -v '^ *+' conftest.er1 >conftest.err
37060 rm -f conftest.er1
37061 cat conftest.err >&5
a848cd7e
SC
37062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37063 (exit $ac_status); } &&
9dd0f6c2 37064 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37066 (eval $ac_try) 2>&5
37067 ac_status=$?
37068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37069 (exit $ac_status); }; } &&
37070 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
37071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37072 (eval $ac_try) 2>&5
37073 ac_status=$?
37074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37075 (exit $ac_status); }; }; then
37076
37077 wx_cv_var_timezone=_timezone
37078
37079else
37080 echo "$as_me: failed program was:" >&5
37081sed 's/^/| /' conftest.$ac_ext >&5
37082
37083
37084 cat >conftest.$ac_ext <<_ACEOF
37085/* confdefs.h. */
37086_ACEOF
37087cat confdefs.h >>conftest.$ac_ext
37088cat >>conftest.$ac_ext <<_ACEOF
37089/* end confdefs.h. */
37090
37091 #include <time.h>
37092
37093int
37094main ()
37095{
37096
37097 int tz;
37098 tz = __timezone;
37099
37100 ;
37101 return 0;
37102}
37103_ACEOF
37104rm -f conftest.$ac_objext
37105if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 37106 (eval $ac_compile) 2>conftest.er1
a848cd7e 37107 ac_status=$?
ac1cb8d3
VS
37108 grep -v '^ *+' conftest.er1 >conftest.err
37109 rm -f conftest.er1
37110 cat conftest.err >&5
a848cd7e
SC
37111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37112 (exit $ac_status); } &&
9dd0f6c2 37113 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37115 (eval $ac_try) 2>&5
37116 ac_status=$?
37117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37118 (exit $ac_status); }; } &&
37119 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
37120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37121 (eval $ac_try) 2>&5
37122 ac_status=$?
37123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37124 (exit $ac_status); }; }; then
37125
37126 wx_cv_var_timezone=__timezone
37127
37128else
37129 echo "$as_me: failed program was:" >&5
37130sed 's/^/| /' conftest.$ac_ext >&5
37131
37132
37133 if test "$USE_DOS" = 0 ; then
37134 { echo "$as_me:$LINENO: WARNING: no timezone variable" >&5
37135echo "$as_me: WARNING: no timezone variable" >&2;}
37136 fi
37137
37138
37139fi
ac1cb8d3 37140rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
37141
37142
37143fi
ac1cb8d3 37144rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
37145
37146
37147fi
ac1cb8d3 37148rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
37149
37150
37151fi
37152echo "$as_me:$LINENO: result: $wx_cv_var_timezone" >&5
37153echo "${ECHO_T}$wx_cv_var_timezone" >&6
37154
37155 if test "x$wx_cv_var_timezone" != x ; then
37156 cat >>confdefs.h <<_ACEOF
37157#define WX_TIMEZONE $wx_cv_var_timezone
37158_ACEOF
37159
37160 fi
37161
37162
37163for ac_func in localtime
37164do
37165as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37166echo "$as_me:$LINENO: checking for $ac_func" >&5
37167echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37168if eval "test \"\${$as_ac_var+set}\" = set"; then
37169 echo $ECHO_N "(cached) $ECHO_C" >&6
37170else
37171 cat >conftest.$ac_ext <<_ACEOF
37172/* confdefs.h. */
37173_ACEOF
37174cat confdefs.h >>conftest.$ac_ext
37175cat >>conftest.$ac_ext <<_ACEOF
37176/* end confdefs.h. */
ac1cb8d3
VS
37177/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37178 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37179#define $ac_func innocuous_$ac_func
37180
a848cd7e
SC
37181/* System header to define __stub macros and hopefully few prototypes,
37182 which can conflict with char $ac_func (); below.
37183 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37184 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 37185
a848cd7e
SC
37186#ifdef __STDC__
37187# include <limits.h>
37188#else
37189# include <assert.h>
37190#endif
ac1cb8d3
VS
37191
37192#undef $ac_func
37193
a848cd7e
SC
37194/* Override any gcc2 internal prototype to avoid an error. */
37195#ifdef __cplusplus
37196extern "C"
37197{
37198#endif
37199/* We use char because int might match the return type of a gcc2
37200 builtin and then its argument prototype would still apply. */
37201char $ac_func ();
37202/* The GNU C library defines this for functions which it implements
37203 to always fail with ENOSYS. Some functions are actually named
37204 something starting with __ and the normal name is an alias. */
37205#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37206choke me
37207#else
37208char (*f) () = $ac_func;
37209#endif
37210#ifdef __cplusplus
37211}
37212#endif
37213
37214int
37215main ()
37216{
37217return f != $ac_func;
37218 ;
37219 return 0;
37220}
37221_ACEOF
37222rm -f conftest.$ac_objext conftest$ac_exeext
37223if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37224 (eval $ac_link) 2>conftest.er1
a848cd7e 37225 ac_status=$?
ac1cb8d3
VS
37226 grep -v '^ *+' conftest.er1 >conftest.err
37227 rm -f conftest.er1
37228 cat conftest.err >&5
a848cd7e
SC
37229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37230 (exit $ac_status); } &&
9dd0f6c2 37231 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37233 (eval $ac_try) 2>&5
37234 ac_status=$?
37235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37236 (exit $ac_status); }; } &&
37237 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37239 (eval $ac_try) 2>&5
37240 ac_status=$?
37241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37242 (exit $ac_status); }; }; then
37243 eval "$as_ac_var=yes"
37244else
37245 echo "$as_me: failed program was:" >&5
37246sed 's/^/| /' conftest.$ac_ext >&5
37247
37248eval "$as_ac_var=no"
37249fi
ac1cb8d3
VS
37250rm -f conftest.err conftest.$ac_objext \
37251 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37252fi
37253echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37254echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37255if test `eval echo '${'$as_ac_var'}'` = yes; then
37256 cat >>confdefs.h <<_ACEOF
37257#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37258_ACEOF
37259
37260fi
37261done
37262
37263
37264 if test "$ac_cv_func_localtime" = "yes"; then
37265 echo "$as_me:$LINENO: checking for tm_gmtoff in struct tm" >&5
37266echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6
37267if test "${wx_cv_struct_tm_has_gmtoff+set}" = set; then
37268 echo $ECHO_N "(cached) $ECHO_C" >&6
37269else
37270
37271 cat >conftest.$ac_ext <<_ACEOF
37272/* confdefs.h. */
37273_ACEOF
37274cat confdefs.h >>conftest.$ac_ext
37275cat >>conftest.$ac_ext <<_ACEOF
37276/* end confdefs.h. */
37277
37278 #include <time.h>
37279
37280int
37281main ()
37282{
37283
37284 struct tm tm;
37285 tm.tm_gmtoff++;
37286
37287 ;
37288 return 0;
37289}
37290_ACEOF
37291rm -f conftest.$ac_objext
37292if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 37293 (eval $ac_compile) 2>conftest.er1
a848cd7e 37294 ac_status=$?
ac1cb8d3
VS
37295 grep -v '^ *+' conftest.er1 >conftest.err
37296 rm -f conftest.er1
37297 cat conftest.err >&5
a848cd7e
SC
37298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37299 (exit $ac_status); } &&
9dd0f6c2 37300 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37302 (eval $ac_try) 2>&5
37303 ac_status=$?
37304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37305 (exit $ac_status); }; } &&
37306 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
37307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37308 (eval $ac_try) 2>&5
37309 ac_status=$?
37310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37311 (exit $ac_status); }; }; then
37312
37313 wx_cv_struct_tm_has_gmtoff=yes
37314
37315else
37316 echo "$as_me: failed program was:" >&5
37317sed 's/^/| /' conftest.$ac_ext >&5
37318
37319wx_cv_struct_tm_has_gmtoff=no
37320
37321fi
ac1cb8d3 37322rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
37323
37324fi
37325echo "$as_me:$LINENO: result: $wx_cv_struct_tm_has_gmtoff" >&5
37326echo "${ECHO_T}$wx_cv_struct_tm_has_gmtoff" >&6
37327 fi
37328
37329 if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then
37330 cat >>confdefs.h <<\_ACEOF
37331#define WX_GMTOFF_IN_TM 1
37332_ACEOF
37333
37334 fi
37335
37336
37337
37338for ac_func in gettimeofday ftime
37339do
37340as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37341echo "$as_me:$LINENO: checking for $ac_func" >&5
37342echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37343if eval "test \"\${$as_ac_var+set}\" = set"; then
37344 echo $ECHO_N "(cached) $ECHO_C" >&6
37345else
37346 cat >conftest.$ac_ext <<_ACEOF
37347/* confdefs.h. */
37348_ACEOF
37349cat confdefs.h >>conftest.$ac_ext
37350cat >>conftest.$ac_ext <<_ACEOF
37351/* end confdefs.h. */
ac1cb8d3
VS
37352/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37353 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37354#define $ac_func innocuous_$ac_func
37355
a848cd7e
SC
37356/* System header to define __stub macros and hopefully few prototypes,
37357 which can conflict with char $ac_func (); below.
37358 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37359 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 37360
a848cd7e
SC
37361#ifdef __STDC__
37362# include <limits.h>
37363#else
37364# include <assert.h>
37365#endif
ac1cb8d3
VS
37366
37367#undef $ac_func
37368
a848cd7e
SC
37369/* Override any gcc2 internal prototype to avoid an error. */
37370#ifdef __cplusplus
37371extern "C"
37372{
37373#endif
37374/* We use char because int might match the return type of a gcc2
37375 builtin and then its argument prototype would still apply. */
37376char $ac_func ();
37377/* The GNU C library defines this for functions which it implements
37378 to always fail with ENOSYS. Some functions are actually named
37379 something starting with __ and the normal name is an alias. */
37380#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37381choke me
37382#else
37383char (*f) () = $ac_func;
37384#endif
37385#ifdef __cplusplus
37386}
37387#endif
37388
37389int
37390main ()
37391{
37392return f != $ac_func;
37393 ;
37394 return 0;
37395}
37396_ACEOF
37397rm -f conftest.$ac_objext conftest$ac_exeext
37398if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37399 (eval $ac_link) 2>conftest.er1
a848cd7e 37400 ac_status=$?
ac1cb8d3
VS
37401 grep -v '^ *+' conftest.er1 >conftest.err
37402 rm -f conftest.er1
37403 cat conftest.err >&5
a848cd7e
SC
37404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37405 (exit $ac_status); } &&
9dd0f6c2 37406 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37408 (eval $ac_try) 2>&5
37409 ac_status=$?
37410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37411 (exit $ac_status); }; } &&
37412 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37414 (eval $ac_try) 2>&5
37415 ac_status=$?
37416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37417 (exit $ac_status); }; }; then
37418 eval "$as_ac_var=yes"
37419else
37420 echo "$as_me: failed program was:" >&5
37421sed 's/^/| /' conftest.$ac_ext >&5
37422
37423eval "$as_ac_var=no"
37424fi
ac1cb8d3
VS
37425rm -f conftest.err conftest.$ac_objext \
37426 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37427fi
37428echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37429echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37430if test `eval echo '${'$as_ac_var'}'` = yes; then
37431 cat >>confdefs.h <<_ACEOF
37432#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37433_ACEOF
37434 break
37435fi
37436done
37437
37438
37439 if test "$ac_cv_func_gettimeofday" = "yes"; then
37440 echo "$as_me:$LINENO: checking whether gettimeofday takes two arguments" >&5
37441echo $ECHO_N "checking whether gettimeofday takes two arguments... $ECHO_C" >&6
37442if test "${wx_cv_func_gettimeofday_has_2_args+set}" = set; then
37443 echo $ECHO_N "(cached) $ECHO_C" >&6
37444else
37445
37446
37447
37448 ac_ext=cc
37449ac_cpp='$CXXCPP $CPPFLAGS'
37450ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37451ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37452ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
37453
37454
37455 cat >conftest.$ac_ext <<_ACEOF
37456/* confdefs.h. */
37457_ACEOF
37458cat confdefs.h >>conftest.$ac_ext
37459cat >>conftest.$ac_ext <<_ACEOF
37460/* end confdefs.h. */
37461
37462 #include <sys/time.h>
37463 #include <unistd.h>
37464
37465int
37466main ()
37467{
37468
37469 struct timeval tv;
37470 gettimeofday(&tv, NULL);
37471
37472 ;
37473 return 0;
37474}
37475_ACEOF
37476rm -f conftest.$ac_objext
37477if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 37478 (eval $ac_compile) 2>conftest.er1
a848cd7e 37479 ac_status=$?
ac1cb8d3
VS
37480 grep -v '^ *+' conftest.er1 >conftest.err
37481 rm -f conftest.er1
37482 cat conftest.err >&5
a848cd7e
SC
37483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37484 (exit $ac_status); } &&
9dd0f6c2 37485 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37487 (eval $ac_try) 2>&5
37488 ac_status=$?
37489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37490 (exit $ac_status); }; } &&
37491 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
37492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37493 (eval $ac_try) 2>&5
37494 ac_status=$?
37495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37496 (exit $ac_status); }; }; then
37497 wx_cv_func_gettimeofday_has_2_args=yes
37498else
37499 echo "$as_me: failed program was:" >&5
37500sed 's/^/| /' conftest.$ac_ext >&5
37501
37502cat >conftest.$ac_ext <<_ACEOF
37503/* confdefs.h. */
37504_ACEOF
37505cat confdefs.h >>conftest.$ac_ext
37506cat >>conftest.$ac_ext <<_ACEOF
37507/* end confdefs.h. */
37508
37509 #include <sys/time.h>
37510 #include <unistd.h>
37511
37512int
37513main ()
37514{
37515
37516 struct timeval tv;
37517 gettimeofday(&tv);
37518
37519 ;
37520 return 0;
37521}
37522_ACEOF
37523rm -f conftest.$ac_objext
37524if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 37525 (eval $ac_compile) 2>conftest.er1
a848cd7e 37526 ac_status=$?
ac1cb8d3
VS
37527 grep -v '^ *+' conftest.er1 >conftest.err
37528 rm -f conftest.er1
37529 cat conftest.err >&5
a848cd7e
SC
37530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37531 (exit $ac_status); } &&
9dd0f6c2 37532 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37534 (eval $ac_try) 2>&5
37535 ac_status=$?
37536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37537 (exit $ac_status); }; } &&
37538 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
37539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37540 (eval $ac_try) 2>&5
37541 ac_status=$?
37542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37543 (exit $ac_status); }; }; then
37544 wx_cv_func_gettimeofday_has_2_args=no
37545else
37546 echo "$as_me: failed program was:" >&5
37547sed 's/^/| /' conftest.$ac_ext >&5
37548
37549
37550 { echo "$as_me:$LINENO: WARNING: failed to determine number of gettimeofday() arguments" >&5
37551echo "$as_me: WARNING: failed to determine number of gettimeofday() arguments" >&2;}
37552 wx_cv_func_gettimeofday_has_2_args=unknown
37553
37554
37555fi
ac1cb8d3 37556rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
37557
37558fi
ac1cb8d3 37559rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
37560 ac_ext=c
37561ac_cpp='$CPP $CPPFLAGS'
37562ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37563ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37564ac_compiler_gnu=$ac_cv_c_compiler_gnu
37565
37566
37567fi
37568echo "$as_me:$LINENO: result: $wx_cv_func_gettimeofday_has_2_args" >&5
37569echo "${ECHO_T}$wx_cv_func_gettimeofday_has_2_args" >&6
37570
37571 if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then
37572 cat >>confdefs.h <<\_ACEOF
37573#define WX_GETTIMEOFDAY_NO_TZ 1
37574_ACEOF
37575
37576 fi
37577 fi
37578
37579 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest"
37580fi
37581
37582
37583if test "$wxUSE_SOCKETS" = "yes"; then
37584 if test "$wxUSE_MGL" = "1"; then
37585 { echo "$as_me:$LINENO: WARNING: wxSocket not yet supported under MGL... disabled" >&5
37586echo "$as_me: WARNING: wxSocket not yet supported under MGL... disabled" >&2;}
37587 wxUSE_SOCKETS="no"
37588 fi
37589fi
37590
37591if test "$wxUSE_SOCKETS" = "yes"; then
37592 if test "$TOOLKIT" != "MSW"; then
37593 echo "$as_me:$LINENO: checking for socket" >&5
37594echo $ECHO_N "checking for socket... $ECHO_C" >&6
37595if test "${ac_cv_func_socket+set}" = set; then
37596 echo $ECHO_N "(cached) $ECHO_C" >&6
37597else
37598 cat >conftest.$ac_ext <<_ACEOF
37599/* confdefs.h. */
37600_ACEOF
37601cat confdefs.h >>conftest.$ac_ext
37602cat >>conftest.$ac_ext <<_ACEOF
37603/* end confdefs.h. */
ac1cb8d3
VS
37604/* Define socket to an innocuous variant, in case <limits.h> declares socket.
37605 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37606#define socket innocuous_socket
37607
a848cd7e
SC
37608/* System header to define __stub macros and hopefully few prototypes,
37609 which can conflict with char socket (); below.
37610 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37611 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 37612
a848cd7e
SC
37613#ifdef __STDC__
37614# include <limits.h>
37615#else
37616# include <assert.h>
37617#endif
ac1cb8d3
VS
37618
37619#undef socket
37620
a848cd7e
SC
37621/* Override any gcc2 internal prototype to avoid an error. */
37622#ifdef __cplusplus
37623extern "C"
37624{
37625#endif
37626/* We use char because int might match the return type of a gcc2
37627 builtin and then its argument prototype would still apply. */
37628char socket ();
37629/* The GNU C library defines this for functions which it implements
37630 to always fail with ENOSYS. Some functions are actually named
37631 something starting with __ and the normal name is an alias. */
37632#if defined (__stub_socket) || defined (__stub___socket)
37633choke me
37634#else
37635char (*f) () = socket;
37636#endif
37637#ifdef __cplusplus
37638}
37639#endif
37640
37641int
37642main ()
37643{
37644return f != socket;
37645 ;
37646 return 0;
37647}
37648_ACEOF
37649rm -f conftest.$ac_objext conftest$ac_exeext
37650if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37651 (eval $ac_link) 2>conftest.er1
a848cd7e 37652 ac_status=$?
ac1cb8d3
VS
37653 grep -v '^ *+' conftest.er1 >conftest.err
37654 rm -f conftest.er1
37655 cat conftest.err >&5
a848cd7e
SC
37656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37657 (exit $ac_status); } &&
9dd0f6c2 37658 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37660 (eval $ac_try) 2>&5
37661 ac_status=$?
37662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37663 (exit $ac_status); }; } &&
37664 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37666 (eval $ac_try) 2>&5
37667 ac_status=$?
37668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37669 (exit $ac_status); }; }; then
37670 ac_cv_func_socket=yes
37671else
37672 echo "$as_me: failed program was:" >&5
37673sed 's/^/| /' conftest.$ac_ext >&5
37674
37675ac_cv_func_socket=no
37676fi
ac1cb8d3
VS
37677rm -f conftest.err conftest.$ac_objext \
37678 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37679fi
37680echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
37681echo "${ECHO_T}$ac_cv_func_socket" >&6
37682if test $ac_cv_func_socket = yes; then
37683 :
37684else
37685
37686 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
37687echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
37688if test "${ac_cv_lib_socket_socket+set}" = set; then
37689 echo $ECHO_N "(cached) $ECHO_C" >&6
37690else
37691 ac_check_lib_save_LIBS=$LIBS
37692LIBS="-lsocket $LIBS"
37693cat >conftest.$ac_ext <<_ACEOF
37694/* confdefs.h. */
37695_ACEOF
37696cat confdefs.h >>conftest.$ac_ext
37697cat >>conftest.$ac_ext <<_ACEOF
37698/* end confdefs.h. */
37699
37700/* Override any gcc2 internal prototype to avoid an error. */
37701#ifdef __cplusplus
37702extern "C"
37703#endif
37704/* We use char because int might match the return type of a gcc2
37705 builtin and then its argument prototype would still apply. */
37706char socket ();
37707int
37708main ()
37709{
37710socket ();
37711 ;
37712 return 0;
37713}
37714_ACEOF
37715rm -f conftest.$ac_objext conftest$ac_exeext
37716if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37717 (eval $ac_link) 2>conftest.er1
a848cd7e 37718 ac_status=$?
ac1cb8d3
VS
37719 grep -v '^ *+' conftest.er1 >conftest.err
37720 rm -f conftest.er1
37721 cat conftest.err >&5
a848cd7e
SC
37722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37723 (exit $ac_status); } &&
9dd0f6c2 37724 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37726 (eval $ac_try) 2>&5
37727 ac_status=$?
37728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37729 (exit $ac_status); }; } &&
37730 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37732 (eval $ac_try) 2>&5
37733 ac_status=$?
37734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37735 (exit $ac_status); }; }; then
37736 ac_cv_lib_socket_socket=yes
37737else
37738 echo "$as_me: failed program was:" >&5
37739sed 's/^/| /' conftest.$ac_ext >&5
37740
37741ac_cv_lib_socket_socket=no
37742fi
ac1cb8d3
VS
37743rm -f conftest.err conftest.$ac_objext \
37744 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37745LIBS=$ac_check_lib_save_LIBS
37746fi
37747echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
37748echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
37749if test $ac_cv_lib_socket_socket = yes; then
37750 if test "$INET_LINK" != " -lsocket"; then
37751 INET_LINK="$INET_LINK -lsocket"
37752 fi
37753else
37754
37755 { echo "$as_me:$LINENO: WARNING: socket library not found - sockets will be disabled" >&5
37756echo "$as_me: WARNING: socket library not found - sockets will be disabled" >&2;}
37757 wxUSE_SOCKETS=no
37758
37759
37760fi
37761
37762
37763
37764fi
37765
37766 fi
37767fi
37768
37769if test "$wxUSE_SOCKETS" = "yes" ; then
37770 if test "$TOOLKIT" != "MSW"; then
4d4ff94c
VZ
37771 ac_ext=cc
37772ac_cpp='$CXXCPP $CPPFLAGS'
37773ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37774ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37775ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
37776
37777 echo "$as_me:$LINENO: checking what is the type of the third argument of getsockname" >&5
a848cd7e
SC
37778echo $ECHO_N "checking what is the type of the third argument of getsockname... $ECHO_C" >&6
37779if test "${wx_cv_type_getsockname3+set}" = set; then
37780 echo $ECHO_N "(cached) $ECHO_C" >&6
37781else
37782
37783 cat >conftest.$ac_ext <<_ACEOF
37784/* confdefs.h. */
37785_ACEOF
37786cat confdefs.h >>conftest.$ac_ext
37787cat >>conftest.$ac_ext <<_ACEOF
37788/* end confdefs.h. */
37789
37790 #include <sys/types.h>
37791 #include <sys/socket.h>
37792
37793int
37794main ()
37795{
37796
37797 socklen_t len;
37798 getsockname(0, 0, &len);
37799
37800 ;
37801 return 0;
37802}
37803_ACEOF
37804rm -f conftest.$ac_objext
37805if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 37806 (eval $ac_compile) 2>conftest.er1
a848cd7e 37807 ac_status=$?
ac1cb8d3
VS
37808 grep -v '^ *+' conftest.er1 >conftest.err
37809 rm -f conftest.er1
37810 cat conftest.err >&5
a848cd7e
SC
37811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37812 (exit $ac_status); } &&
9dd0f6c2 37813 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37815 (eval $ac_try) 2>&5
37816 ac_status=$?
37817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37818 (exit $ac_status); }; } &&
37819 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
37820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37821 (eval $ac_try) 2>&5
37822 ac_status=$?
37823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37824 (exit $ac_status); }; }; then
37825 wx_cv_type_getsockname3=socklen_t
37826else
37827 echo "$as_me: failed program was:" >&5
37828sed 's/^/| /' conftest.$ac_ext >&5
37829
37830
37831 CFLAGS_OLD="$CFLAGS"
37832 if test "$GCC" = yes ; then
37833 CFLAGS="$CFLAGS -Werror"
37834 fi
37835
37836 cat >conftest.$ac_ext <<_ACEOF
37837/* confdefs.h. */
37838_ACEOF
37839cat confdefs.h >>conftest.$ac_ext
37840cat >>conftest.$ac_ext <<_ACEOF
37841/* end confdefs.h. */
37842
37843 #include <sys/types.h>
37844 #include <sys/socket.h>
37845
37846int
37847main ()
37848{
37849
37850 size_t len;
37851 getsockname(0, 0, &len);
37852
37853 ;
37854 return 0;
37855}
37856_ACEOF
37857rm -f conftest.$ac_objext
37858if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 37859 (eval $ac_compile) 2>conftest.er1
a848cd7e 37860 ac_status=$?
ac1cb8d3
VS
37861 grep -v '^ *+' conftest.er1 >conftest.err
37862 rm -f conftest.er1
37863 cat conftest.err >&5
a848cd7e
SC
37864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37865 (exit $ac_status); } &&
9dd0f6c2 37866 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37868 (eval $ac_try) 2>&5
37869 ac_status=$?
37870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37871 (exit $ac_status); }; } &&
37872 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
37873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37874 (eval $ac_try) 2>&5
37875 ac_status=$?
37876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37877 (exit $ac_status); }; }; then
37878 wx_cv_type_getsockname3=size_t
37879else
37880 echo "$as_me: failed program was:" >&5
37881sed 's/^/| /' conftest.$ac_ext >&5
37882
37883cat >conftest.$ac_ext <<_ACEOF
37884/* confdefs.h. */
37885_ACEOF
37886cat confdefs.h >>conftest.$ac_ext
37887cat >>conftest.$ac_ext <<_ACEOF
37888/* end confdefs.h. */
37889
37890 #include <sys/types.h>
37891 #include <sys/socket.h>
37892
37893int
37894main ()
37895{
37896
37897 int len;
37898 getsockname(0, 0, &len);
37899
37900 ;
37901 return 0;
37902}
37903_ACEOF
37904rm -f conftest.$ac_objext
37905if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 37906 (eval $ac_compile) 2>conftest.er1
a848cd7e 37907 ac_status=$?
ac1cb8d3
VS
37908 grep -v '^ *+' conftest.er1 >conftest.err
37909 rm -f conftest.er1
37910 cat conftest.err >&5
a848cd7e
SC
37911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37912 (exit $ac_status); } &&
9dd0f6c2 37913 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37915 (eval $ac_try) 2>&5
37916 ac_status=$?
37917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37918 (exit $ac_status); }; } &&
37919 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
37920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37921 (eval $ac_try) 2>&5
37922 ac_status=$?
37923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37924 (exit $ac_status); }; }; then
37925 wx_cv_type_getsockname3=int
37926else
37927 echo "$as_me: failed program was:" >&5
37928sed 's/^/| /' conftest.$ac_ext >&5
37929
37930wx_cv_type_getsockname3=unknown
37931
37932fi
ac1cb8d3 37933rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
37934
37935fi
ac1cb8d3 37936rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
37937
37938 CFLAGS="$CFLAGS_OLD"
37939
37940
37941fi
ac1cb8d3 37942rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
37943
37944fi
37945echo "$as_me:$LINENO: result: $wx_cv_type_getsockname3" >&5
37946echo "${ECHO_T}$wx_cv_type_getsockname3" >&6
37947
37948 if test "$wx_cv_type_getsockname3" = "unknown"; then
37949 wxUSE_SOCKETS=no
37950 { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5
37951echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;}
37952 else
37953 cat >>confdefs.h <<_ACEOF
37954#define SOCKLEN_T $wx_cv_type_getsockname3
5b674b9d
DE
37955_ACEOF
37956
37957 fi
37958 echo "$as_me:$LINENO: checking what is the type of the fifth argument of getsockopt" >&5
37959echo $ECHO_N "checking what is the type of the fifth argument of getsockopt... $ECHO_C" >&6
37960if test "${wx_cv_type_getsockopt5+set}" = set; then
37961 echo $ECHO_N "(cached) $ECHO_C" >&6
37962else
37963
37964 cat >conftest.$ac_ext <<_ACEOF
37965/* confdefs.h. */
37966_ACEOF
37967cat confdefs.h >>conftest.$ac_ext
37968cat >>conftest.$ac_ext <<_ACEOF
37969/* end confdefs.h. */
37970
37971 #include <sys/types.h>
37972 #include <sys/socket.h>
37973
37974int
37975main ()
37976{
37977
37978 socklen_t len;
37979 getsockopt(0, 0, 0, 0, &len);
37980
37981 ;
37982 return 0;
37983}
37984_ACEOF
37985rm -f conftest.$ac_objext
37986if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37987 (eval $ac_compile) 2>conftest.er1
37988 ac_status=$?
37989 grep -v '^ *+' conftest.er1 >conftest.err
37990 rm -f conftest.er1
37991 cat conftest.err >&5
37992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37993 (exit $ac_status); } &&
9dd0f6c2 37994 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5b674b9d
DE
37995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37996 (eval $ac_try) 2>&5
37997 ac_status=$?
37998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37999 (exit $ac_status); }; } &&
38000 { ac_try='test -s conftest.$ac_objext'
38001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38002 (eval $ac_try) 2>&5
38003 ac_status=$?
38004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38005 (exit $ac_status); }; }; then
38006 wx_cv_type_getsockopt5=socklen_t
38007else
38008 echo "$as_me: failed program was:" >&5
38009sed 's/^/| /' conftest.$ac_ext >&5
38010
38011
38012 CFLAGS_OLD="$CFLAGS"
38013 if test "$GCC" = yes ; then
38014 CFLAGS="$CFLAGS -Werror"
38015 fi
38016
38017 cat >conftest.$ac_ext <<_ACEOF
38018/* confdefs.h. */
38019_ACEOF
38020cat confdefs.h >>conftest.$ac_ext
38021cat >>conftest.$ac_ext <<_ACEOF
38022/* end confdefs.h. */
38023
38024 #include <sys/types.h>
38025 #include <sys/socket.h>
38026
38027int
38028main ()
38029{
38030
38031 size_t len;
38032 getsockopt(0, 0, 0, 0, &len);
38033
38034 ;
38035 return 0;
38036}
38037_ACEOF
38038rm -f conftest.$ac_objext
38039if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38040 (eval $ac_compile) 2>conftest.er1
38041 ac_status=$?
38042 grep -v '^ *+' conftest.er1 >conftest.err
38043 rm -f conftest.er1
38044 cat conftest.err >&5
38045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38046 (exit $ac_status); } &&
9dd0f6c2 38047 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5b674b9d
DE
38048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38049 (eval $ac_try) 2>&5
38050 ac_status=$?
38051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38052 (exit $ac_status); }; } &&
38053 { ac_try='test -s conftest.$ac_objext'
38054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38055 (eval $ac_try) 2>&5
38056 ac_status=$?
38057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38058 (exit $ac_status); }; }; then
38059 wx_cv_type_getsockopt5=size_t
38060else
38061 echo "$as_me: failed program was:" >&5
38062sed 's/^/| /' conftest.$ac_ext >&5
38063
38064cat >conftest.$ac_ext <<_ACEOF
38065/* confdefs.h. */
38066_ACEOF
38067cat confdefs.h >>conftest.$ac_ext
38068cat >>conftest.$ac_ext <<_ACEOF
38069/* end confdefs.h. */
38070
38071 #include <sys/types.h>
38072 #include <sys/socket.h>
38073
38074int
38075main ()
38076{
38077
38078 int len;
38079 getsockopt(0, 0, 0, 0, &len);
38080
38081 ;
38082 return 0;
38083}
38084_ACEOF
38085rm -f conftest.$ac_objext
38086if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38087 (eval $ac_compile) 2>conftest.er1
38088 ac_status=$?
38089 grep -v '^ *+' conftest.er1 >conftest.err
38090 rm -f conftest.er1
38091 cat conftest.err >&5
38092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38093 (exit $ac_status); } &&
9dd0f6c2 38094 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5b674b9d
DE
38095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38096 (eval $ac_try) 2>&5
38097 ac_status=$?
38098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38099 (exit $ac_status); }; } &&
38100 { ac_try='test -s conftest.$ac_objext'
38101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38102 (eval $ac_try) 2>&5
38103 ac_status=$?
38104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38105 (exit $ac_status); }; }; then
38106 wx_cv_type_getsockopt5=int
38107else
38108 echo "$as_me: failed program was:" >&5
38109sed 's/^/| /' conftest.$ac_ext >&5
38110
38111wx_cv_type_getsockopt5=unknown
38112
38113fi
38114rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38115
38116fi
38117rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38118
38119 CFLAGS="$CFLAGS_OLD"
38120
38121
38122fi
38123rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38124
38125fi
38126echo "$as_me:$LINENO: result: $wx_cv_type_getsockopt5" >&5
38127echo "${ECHO_T}$wx_cv_type_getsockopt5" >&6
38128
38129 if test "$wx_cv_type_getsockopt5" = "unknown"; then
38130 wxUSE_SOCKETS=no
38131 { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5
38132echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;}
38133 else
38134 cat >>confdefs.h <<_ACEOF
38135#define SOCKOPTLEN_T $wx_cv_type_getsockopt5
a848cd7e
SC
38136_ACEOF
38137
38138 fi
4d4ff94c
VZ
38139 ac_ext=c
38140ac_cpp='$CPP $CPPFLAGS'
38141ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38142ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38143ac_compiler_gnu=$ac_cv_c_compiler_gnu
38144
a848cd7e
SC
38145 fi
38146fi
38147
38148if test "$wxUSE_SOCKETS" = "yes" ; then
38149 cat >>confdefs.h <<\_ACEOF
38150#define wxUSE_SOCKETS 1
38151_ACEOF
38152
38153 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets"
38154fi
38155
38156if test "$wxUSE_PROTOCOL" = "yes"; then
38157 if test "$wxUSE_SOCKETS" != "yes"; then
38158 { echo "$as_me:$LINENO: WARNING: Protocol classes require sockets... disabled" >&5
38159echo "$as_me: WARNING: Protocol classes require sockets... disabled" >&2;}
38160 wxUSE_PROTOCOL=no
38161 fi
38162fi
38163
38164if test "$wxUSE_PROTOCOL" = "yes"; then
38165 cat >>confdefs.h <<\_ACEOF
38166#define wxUSE_PROTOCOL 1
38167_ACEOF
38168
38169
38170 if test "$wxUSE_PROTOCOL_HTTP" = "yes"; then
38171 cat >>confdefs.h <<\_ACEOF
38172#define wxUSE_PROTOCOL_HTTP 1
38173_ACEOF
38174
38175 fi
38176 if test "$wxUSE_PROTOCOL_FTP" = "yes"; then
38177 cat >>confdefs.h <<\_ACEOF
38178#define wxUSE_PROTOCOL_FTP 1
38179_ACEOF
38180
38181 fi
38182 if test "$wxUSE_PROTOCOL_FILE" = "yes"; then
38183 cat >>confdefs.h <<\_ACEOF
38184#define wxUSE_PROTOCOL_FILE 1
38185_ACEOF
38186
38187 fi
38188else
38189 if test "$wxUSE_FS_INET" = "yes"; then
38190 { echo "$as_me:$LINENO: WARNING: HTTP filesystem require protocol classes... disabled" >&5
38191echo "$as_me: WARNING: HTTP filesystem require protocol classes... disabled" >&2;}
38192 wxUSE_FS_INET="no"
38193 fi
38194fi
38195
38196if test "$wxUSE_URL" = "yes"; then
38197 if test "$wxUSE_PROTOCOL" != "yes"; then
38198 { echo "$as_me:$LINENO: WARNING: wxURL class requires wxProtocol... disabled" >&5
38199echo "$as_me: WARNING: wxURL class requires wxProtocol... disabled" >&2;}
38200 wxUSE_URL=no
38201 fi
38202 if test "$wxUSE_URL" = "yes"; then
38203 cat >>confdefs.h <<\_ACEOF
38204#define wxUSE_URL 1
38205_ACEOF
38206
38207 fi
38208fi
38209
38210if test "$wxUSE_FS_INET" = "yes"; then
38211 cat >>confdefs.h <<\_ACEOF
38212#define wxUSE_FS_INET 1
38213_ACEOF
38214
38215fi
38216
38217
38218if test "$wxUSE_GUI" = "yes"; then
4cb1d3da 38219 if test "$wxUSE_JOYSTICK" = "yes"; then
a848cd7e 38220
4cb1d3da 38221 if test "$TOOLKIT" != "MAC" -a "$TOOLKIT" != "COCOA" -a "$TOOLKIT" != "MSW"; then
a848cd7e
SC
38222
38223for ac_header in linux/joystick.h
38224do
38225as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
38226if eval "test \"\${$as_ac_Header+set}\" = set"; then
38227 echo "$as_me:$LINENO: checking for $ac_header" >&5
38228echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
38229if eval "test \"\${$as_ac_Header+set}\" = set"; then
38230 echo $ECHO_N "(cached) $ECHO_C" >&6
38231fi
38232echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
38233echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
38234else
38235 # Is the header compilable?
38236echo "$as_me:$LINENO: checking $ac_header usability" >&5
38237echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
38238cat >conftest.$ac_ext <<_ACEOF
38239/* confdefs.h. */
38240_ACEOF
38241cat confdefs.h >>conftest.$ac_ext
38242cat >>conftest.$ac_ext <<_ACEOF
38243/* end confdefs.h. */
38244$ac_includes_default
38245#include <$ac_header>
38246_ACEOF
38247rm -f conftest.$ac_objext
38248if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 38249 (eval $ac_compile) 2>conftest.er1
a848cd7e 38250 ac_status=$?
ac1cb8d3
VS
38251 grep -v '^ *+' conftest.er1 >conftest.err
38252 rm -f conftest.er1
38253 cat conftest.err >&5
a848cd7e
SC
38254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38255 (exit $ac_status); } &&
9dd0f6c2 38256 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
38257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38258 (eval $ac_try) 2>&5
38259 ac_status=$?
38260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38261 (exit $ac_status); }; } &&
38262 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
38263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38264 (eval $ac_try) 2>&5
38265 ac_status=$?
38266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38267 (exit $ac_status); }; }; then
38268 ac_header_compiler=yes
38269else
38270 echo "$as_me: failed program was:" >&5
38271sed 's/^/| /' conftest.$ac_ext >&5
38272
38273ac_header_compiler=no
38274fi
ac1cb8d3 38275rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
38276echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
38277echo "${ECHO_T}$ac_header_compiler" >&6
38278
38279# Is the header present?
38280echo "$as_me:$LINENO: checking $ac_header presence" >&5
38281echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
38282cat >conftest.$ac_ext <<_ACEOF
38283/* confdefs.h. */
38284_ACEOF
38285cat confdefs.h >>conftest.$ac_ext
38286cat >>conftest.$ac_ext <<_ACEOF
38287/* end confdefs.h. */
38288#include <$ac_header>
38289_ACEOF
38290if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
38291 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
38292 ac_status=$?
38293 grep -v '^ *+' conftest.er1 >conftest.err
38294 rm -f conftest.er1
38295 cat conftest.err >&5
38296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38297 (exit $ac_status); } >/dev/null; then
38298 if test -s conftest.err; then
38299 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 38300 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
38301 else
38302 ac_cpp_err=
38303 fi
38304else
38305 ac_cpp_err=yes
38306fi
38307if test -z "$ac_cpp_err"; then
38308 ac_header_preproc=yes
38309else
38310 echo "$as_me: failed program was:" >&5
38311sed 's/^/| /' conftest.$ac_ext >&5
38312
38313 ac_header_preproc=no
38314fi
38315rm -f conftest.err conftest.$ac_ext
38316echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
38317echo "${ECHO_T}$ac_header_preproc" >&6
38318
38319# So? What about this header?
ac1cb8d3
VS
38320case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
38321 yes:no: )
a848cd7e
SC
38322 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
38323echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
38324 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
38325echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
38326 ac_header_preproc=yes
a848cd7e 38327 ;;
ac1cb8d3 38328 no:yes:* )
a848cd7e
SC
38329 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
38330echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
38331 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
38332echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
38333 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
38334echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
38335 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
38336echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
38337 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
38338echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
38339 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
38340echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
38341 (
38342 cat <<\_ASBOX
ac1cb8d3
VS
38343## ----------------------------------------- ##
38344## Report this to wx-dev@lists.wxwidgets.org ##
38345## ----------------------------------------- ##
a848cd7e
SC
38346_ASBOX
38347 ) |
38348 sed "s/^/$as_me: WARNING: /" >&2
38349 ;;
38350esac
38351echo "$as_me:$LINENO: checking for $ac_header" >&5
38352echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
38353if eval "test \"\${$as_ac_Header+set}\" = set"; then
38354 echo $ECHO_N "(cached) $ECHO_C" >&6
38355else
ac1cb8d3 38356 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
38357fi
38358echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
38359echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
38360
38361fi
38362if test `eval echo '${'$as_ac_Header'}'` = yes; then
38363 cat >>confdefs.h <<_ACEOF
38364#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
38365_ACEOF
38366
38367fi
38368
38369done
38370
38371 if test "$ac_cv_header_linux_joystick_h" != "yes"; then
38372 wxUSE_JOYSTICK=no
38373 { echo "$as_me:$LINENO: WARNING: Joystick not supported by this system... disabled" >&5
38374echo "$as_me: WARNING: Joystick not supported by this system... disabled" >&2;}
38375 fi
4cb1d3da
RN
38376 else
38377 if test "$USE_DARWIN" != 1 -a "$TOOLKIT" != "MSW"; then
38378 wxUSE_JOYSTICK=no
38379 { echo "$as_me:$LINENO: WARNING: Joystick not supported by this system... disabled" >&5
38380echo "$as_me: WARNING: Joystick not supported by this system... disabled" >&2;}
38381 fi
a848cd7e 38382 fi
a848cd7e 38383
4cb1d3da
RN
38384
38385 if test "$wxUSE_JOYSTICK" = "yes"; then
38386 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
38387#define wxUSE_JOYSTICK 1
38388_ACEOF
38389
4cb1d3da
RN
38390 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest"
38391 fi
a848cd7e
SC
38392 fi
38393fi
38394
38395
38396
38397if test "$wxUSE_FONTMAP" = "yes" ; then
38398 cat >>confdefs.h <<\_ACEOF
38399#define wxUSE_FONTMAP 1
38400_ACEOF
38401
38402fi
38403
38404if test "$wxUSE_UNICODE" = "yes" ; then
38405 cat >>confdefs.h <<\_ACEOF
38406#define wxUSE_UNICODE 1
38407_ACEOF
38408
38409
38410 if test "$USE_WIN32" != 1; then
38411 wxUSE_UNICODE_MSLU=no
38412 fi
38413
38414 if test "$USE_WIN32" = 1 -a "$wxUSE_UNICODE_MSLU" = "yes"; then
38415 echo "$as_me:$LINENO: checking for main in -lunicows" >&5
38416echo $ECHO_N "checking for main in -lunicows... $ECHO_C" >&6
38417if test "${ac_cv_lib_unicows_main+set}" = set; then
38418 echo $ECHO_N "(cached) $ECHO_C" >&6
38419else
38420 ac_check_lib_save_LIBS=$LIBS
38421LIBS="-lunicows $LIBS"
38422cat >conftest.$ac_ext <<_ACEOF
38423/* confdefs.h. */
38424_ACEOF
38425cat confdefs.h >>conftest.$ac_ext
38426cat >>conftest.$ac_ext <<_ACEOF
38427/* end confdefs.h. */
38428
38429
38430int
38431main ()
38432{
38433main ();
38434 ;
38435 return 0;
38436}
38437_ACEOF
38438rm -f conftest.$ac_objext conftest$ac_exeext
38439if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 38440 (eval $ac_link) 2>conftest.er1
a848cd7e 38441 ac_status=$?
ac1cb8d3
VS
38442 grep -v '^ *+' conftest.er1 >conftest.err
38443 rm -f conftest.er1
38444 cat conftest.err >&5
a848cd7e
SC
38445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38446 (exit $ac_status); } &&
9dd0f6c2 38447 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
38448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38449 (eval $ac_try) 2>&5
38450 ac_status=$?
38451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38452 (exit $ac_status); }; } &&
38453 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
38454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38455 (eval $ac_try) 2>&5
38456 ac_status=$?
38457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38458 (exit $ac_status); }; }; then
38459 ac_cv_lib_unicows_main=yes
38460else
38461 echo "$as_me: failed program was:" >&5
38462sed 's/^/| /' conftest.$ac_ext >&5
38463
38464ac_cv_lib_unicows_main=no
38465fi
ac1cb8d3
VS
38466rm -f conftest.err conftest.$ac_objext \
38467 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
38468LIBS=$ac_check_lib_save_LIBS
38469fi
38470echo "$as_me:$LINENO: result: $ac_cv_lib_unicows_main" >&5
38471echo "${ECHO_T}$ac_cv_lib_unicows_main" >&6
38472if test $ac_cv_lib_unicows_main = yes; then
38473
38474 cat >>confdefs.h <<\_ACEOF
38475#define wxUSE_UNICODE_MSLU 1
38476_ACEOF
38477
38478
38479else
38480
38481 { echo "$as_me:$LINENO: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
38482 Applications will only run on Windows NT/2000/XP!" >&5
38483echo "$as_me: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
38484 Applications will only run on Windows NT/2000/XP!" >&2;}
38485 wxUSE_UNICODE_MSLU=no
38486
38487fi
38488
38489 fi
38490fi
38491
38492if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then
38493 cat >>confdefs.h <<\_ACEOF
38494#define wxUSE_EXPERIMENTAL_PRINTF 1
38495_ACEOF
38496
38497fi
38498
38499
38500if test "$wxUSE_POSTSCRIPT" = "yes" ; then
38501 cat >>confdefs.h <<\_ACEOF
38502#define wxUSE_POSTSCRIPT 1
38503_ACEOF
38504
38505fi
38506
38507cat >>confdefs.h <<\_ACEOF
38508#define wxUSE_AFM_FOR_POSTSCRIPT 1
38509_ACEOF
38510
38511
38512cat >>confdefs.h <<\_ACEOF
38513#define wxUSE_NORMALIZED_PS_FONTS 1
38514_ACEOF
38515
38516
38517
38518if test "$wxUSE_CONSTRAINTS" = "yes"; then
38519 cat >>confdefs.h <<\_ACEOF
38520#define wxUSE_CONSTRAINTS 1
38521_ACEOF
38522
38523 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout"
38524fi
38525
8a7b1113
VZ
38526if test "$wxUSE_MDI" = "yes"; then
38527 cat >>confdefs.h <<\_ACEOF
38528#define wxUSE_MDI 1
38529_ACEOF
38530
38531
38532 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
38533 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
38534#define wxUSE_MDI_ARCHITECTURE 1
38535_ACEOF
38536
8a7b1113
VZ
38537 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi"
38538 fi
a848cd7e
SC
38539fi
38540
38541if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then
38542 cat >>confdefs.h <<\_ACEOF
38543#define wxUSE_DOC_VIEW_ARCHITECTURE 1
38544_ACEOF
38545
38546 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview"
38547 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
38548 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi"
38549 fi
38550fi
38551
38552if test "$wxUSE_HELP" = "yes"; then
38553 cat >>confdefs.h <<\_ACEOF
38554#define wxUSE_HELP 1
38555_ACEOF
38556
38557 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help"
38558
38559 if test "$wxUSE_MSW" = 1; then
38560 if test "$wxUSE_MS_HTML_HELP" = "yes"; then
38561 cat >>confdefs.h <<\_ACEOF
38562#define wxUSE_MS_HTML_HELP 1
38563_ACEOF
38564
38565 fi
38566 fi
38567
38568 if test "$wxUSE_WXHTML_HELP" = "yes"; then
38569 if test "$wxUSE_HTML" = "yes"; then
38570 cat >>confdefs.h <<\_ACEOF
38571#define wxUSE_WXHTML_HELP 1
38572_ACEOF
38573
38574 else
38575 { echo "$as_me:$LINENO: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&5
38576echo "$as_me: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&2;}
38577 wxUSE_WXHTML_HELP=no
38578 fi
38579 fi
38580fi
38581
38582if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
38583 if test "$wxUSE_CONSTRAINTS" != "yes"; then
38584 { echo "$as_me:$LINENO: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&5
38585echo "$as_me: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&2;}
38586 else
38587 cat >>confdefs.h <<\_ACEOF
38588#define wxUSE_PRINTING_ARCHITECTURE 1
38589_ACEOF
38590
38591 fi
38592 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing"
38593fi
38594
38595if test "$wxUSE_PROLOGIO" = "yes" -o "$wxUSE_RESOURCES" = "yes"; then
38596 { { echo "$as_me:$LINENO: error: wxExpr and old-style resources are now available in contrib only" >&5
38597echo "$as_me: error: wxExpr and old-style resources are now available in contrib only" >&2;}
38598 { (exit 1); exit 1; }; }
38599fi
38600
38601
38602if test "$USE_WIN32" = 1 -a \( "$wxUSE_DATAOBJ" = "yes" \
38603 -o "$wxUSE_CLIPBOARD" = "yes" \
38604 -o "$wxUSE_OLE" = "yes" \
38605 -o "$wxUSE_DRAG_AND_DROP" = "yes" \) ; then
38606
38607for ac_header in ole2.h
38608do
38609as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
38610if eval "test \"\${$as_ac_Header+set}\" = set"; then
38611 echo "$as_me:$LINENO: checking for $ac_header" >&5
38612echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
38613if eval "test \"\${$as_ac_Header+set}\" = set"; then
38614 echo $ECHO_N "(cached) $ECHO_C" >&6
38615fi
38616echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
38617echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
38618else
38619 # Is the header compilable?
38620echo "$as_me:$LINENO: checking $ac_header usability" >&5
38621echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
38622cat >conftest.$ac_ext <<_ACEOF
38623/* confdefs.h. */
38624_ACEOF
38625cat confdefs.h >>conftest.$ac_ext
38626cat >>conftest.$ac_ext <<_ACEOF
38627/* end confdefs.h. */
38628$ac_includes_default
38629#include <$ac_header>
38630_ACEOF
38631rm -f conftest.$ac_objext
38632if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 38633 (eval $ac_compile) 2>conftest.er1
a848cd7e 38634 ac_status=$?
ac1cb8d3
VS
38635 grep -v '^ *+' conftest.er1 >conftest.err
38636 rm -f conftest.er1
38637 cat conftest.err >&5
a848cd7e
SC
38638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38639 (exit $ac_status); } &&
9dd0f6c2 38640 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
38641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38642 (eval $ac_try) 2>&5
38643 ac_status=$?
38644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38645 (exit $ac_status); }; } &&
38646 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
38647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38648 (eval $ac_try) 2>&5
38649 ac_status=$?
38650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38651 (exit $ac_status); }; }; then
38652 ac_header_compiler=yes
38653else
38654 echo "$as_me: failed program was:" >&5
38655sed 's/^/| /' conftest.$ac_ext >&5
38656
38657ac_header_compiler=no
38658fi
ac1cb8d3 38659rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
38660echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
38661echo "${ECHO_T}$ac_header_compiler" >&6
38662
38663# Is the header present?
38664echo "$as_me:$LINENO: checking $ac_header presence" >&5
38665echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
38666cat >conftest.$ac_ext <<_ACEOF
38667/* confdefs.h. */
38668_ACEOF
38669cat confdefs.h >>conftest.$ac_ext
38670cat >>conftest.$ac_ext <<_ACEOF
38671/* end confdefs.h. */
38672#include <$ac_header>
38673_ACEOF
38674if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
38675 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
38676 ac_status=$?
38677 grep -v '^ *+' conftest.er1 >conftest.err
38678 rm -f conftest.er1
38679 cat conftest.err >&5
38680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38681 (exit $ac_status); } >/dev/null; then
38682 if test -s conftest.err; then
38683 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 38684 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
38685 else
38686 ac_cpp_err=
38687 fi
38688else
38689 ac_cpp_err=yes
38690fi
38691if test -z "$ac_cpp_err"; then
38692 ac_header_preproc=yes
38693else
38694 echo "$as_me: failed program was:" >&5
38695sed 's/^/| /' conftest.$ac_ext >&5
38696
38697 ac_header_preproc=no
38698fi
38699rm -f conftest.err conftest.$ac_ext
38700echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
38701echo "${ECHO_T}$ac_header_preproc" >&6
38702
38703# So? What about this header?
ac1cb8d3
VS
38704case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
38705 yes:no: )
a848cd7e
SC
38706 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
38707echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
38708 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
38709echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
38710 ac_header_preproc=yes
a848cd7e 38711 ;;
ac1cb8d3 38712 no:yes:* )
a848cd7e
SC
38713 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
38714echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
38715 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
38716echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
38717 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
38718echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
38719 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
38720echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
38721 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
38722echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
38723 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
38724echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
38725 (
38726 cat <<\_ASBOX
ac1cb8d3
VS
38727## ----------------------------------------- ##
38728## Report this to wx-dev@lists.wxwidgets.org ##
38729## ----------------------------------------- ##
a848cd7e
SC
38730_ASBOX
38731 ) |
38732 sed "s/^/$as_me: WARNING: /" >&2
38733 ;;
38734esac
38735echo "$as_me:$LINENO: checking for $ac_header" >&5
38736echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
38737if eval "test \"\${$as_ac_Header+set}\" = set"; then
38738 echo $ECHO_N "(cached) $ECHO_C" >&6
38739else
ac1cb8d3 38740 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
38741fi
38742echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
38743echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
38744
38745fi
38746if test `eval echo '${'$as_ac_Header'}'` = yes; then
38747 cat >>confdefs.h <<_ACEOF
38748#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
38749_ACEOF
38750
38751fi
38752
38753done
38754
38755
38756 if test "$ac_cv_header_ole2_h" = "yes" ; then
38757 if test "$GCC" = yes ; then
38758
38759
38760 ac_ext=cc
38761ac_cpp='$CXXCPP $CPPFLAGS'
38762ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38763ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38764ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
38765
38766
38767 echo "$as_me:$LINENO: checking if g++ requires -fvtable-thunks" >&5
38768echo $ECHO_N "checking if g++ requires -fvtable-thunks... $ECHO_C" >&6
38769 cat >conftest.$ac_ext <<_ACEOF
38770/* confdefs.h. */
38771_ACEOF
38772cat confdefs.h >>conftest.$ac_ext
38773cat >>conftest.$ac_ext <<_ACEOF
38774/* end confdefs.h. */
38775#include <windows.h>
38776 #include <ole2.h>
38777int
38778main ()
38779{
38780
38781 ;
38782 return 0;
38783}
38784_ACEOF
38785rm -f conftest.$ac_objext
38786if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 38787 (eval $ac_compile) 2>conftest.er1
a848cd7e 38788 ac_status=$?
ac1cb8d3
VS
38789 grep -v '^ *+' conftest.er1 >conftest.err
38790 rm -f conftest.er1
38791 cat conftest.err >&5
a848cd7e
SC
38792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38793 (exit $ac_status); } &&
9dd0f6c2 38794 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
38795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38796 (eval $ac_try) 2>&5
38797 ac_status=$?
38798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38799 (exit $ac_status); }; } &&
38800 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
38801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38802 (eval $ac_try) 2>&5
38803 ac_status=$?
38804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38805 (exit $ac_status); }; }; then
38806 echo "$as_me:$LINENO: result: no" >&5
38807echo "${ECHO_T}no" >&6
38808else
38809 echo "$as_me: failed program was:" >&5
38810sed 's/^/| /' conftest.$ac_ext >&5
38811
38812echo "$as_me:$LINENO: result: yes" >&5
38813echo "${ECHO_T}yes" >&6
38814 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fvtable-thunks"
38815fi
ac1cb8d3 38816rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
38817 ac_ext=c
38818ac_cpp='$CPP $CPPFLAGS'
38819ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38820ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38821ac_compiler_gnu=$ac_cv_c_compiler_gnu
38822
a848cd7e
SC
38823 LIBS=" -lrpcrt4 -loleaut32 -lole32 -luuid$LIBS"
38824 if test "$wxUSE_OLE" = "yes" ; then
38825 cat >>confdefs.h <<\_ACEOF
38826#define wxUSE_OLE 1
38827_ACEOF
38828
0b78747f 38829 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS oleauto"
a848cd7e
SC
38830 fi
38831 fi
38832
38833 if test "$wxUSE_DATAOBJ" = "yes" ; then
38834 cat >>confdefs.h <<\_ACEOF
38835#define wxUSE_DATAOBJ 1
38836_ACEOF
38837
38838 fi
38839 else
38840 { echo "$as_me:$LINENO: WARNING: Some features disabled because OLE headers not found" >&5
38841echo "$as_me: WARNING: Some features disabled because OLE headers not found" >&2;}
38842
38843 wxUSE_CLIPBOARD=no
38844 wxUSE_DRAG_AND_DROP=no
38845 wxUSE_DATAOBJ=no
38846 wxUSE_OLE=no
38847 fi
38848
38849 if test "$wxUSE_METAFILE" = "yes"; then
38850 cat >>confdefs.h <<\_ACEOF
38851#define wxUSE_METAFILE 1
38852_ACEOF
38853
38854
38855 cat >>confdefs.h <<\_ACEOF
38856#define wxUSE_ENH_METAFILE 1
38857_ACEOF
38858
38859 fi
38860fi
38861
38862if test "$wxUSE_IPC" = "yes"; then
0b78747f 38863 if test "$wxUSE_SOCKETS" != "yes" -a "$USE_WIN32" != 1; then
77ffb593
JS
38864 { echo "$as_me:$LINENO: WARNING: wxWidgets IPC classes require sockets... disabled" >&5
38865echo "$as_me: WARNING: wxWidgets IPC classes require sockets... disabled" >&2;}
0b78747f 38866 wxUSE_IPC=no
a848cd7e
SC
38867 fi
38868
0b78747f
MW
38869 if test "$wxUSE_IPC" = "yes"; then
38870 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
38871#define wxUSE_IPC 1
38872_ACEOF
38873
0b78747f
MW
38874 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ipc"
38875 fi
a848cd7e
SC
38876fi
38877
38878if test "$wxUSE_CLIPBOARD" = "yes"; then
38879 if test "$wxUSE_MGL" = 1; then
38880 { echo "$as_me:$LINENO: WARNING: Clipboard not yet supported under MGL... disabled" >&5
38881echo "$as_me: WARNING: Clipboard not yet supported under MGL... disabled" >&2;}
38882 wxUSE_CLIPBOARD=no
38883 fi
38884
38885 if test "$wxUSE_CLIPBOARD" = "yes"; then
38886 cat >>confdefs.h <<\_ACEOF
38887#define wxUSE_CLIPBOARD 1
38888_ACEOF
38889
38890
38891 cat >>confdefs.h <<\_ACEOF
38892#define wxUSE_DATAOBJ 1
38893_ACEOF
38894
38895 fi
38896fi
38897
38898if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then
38899 if test "$wxUSE_GTK" = 1; then
38900 if test "$WXGTK12" != 1; then
38901 { echo "$as_me:$LINENO: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&5
38902echo "$as_me: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&2;}
38903 wxUSE_DRAG_AND_DROP=no
38904 fi
38905 fi
38906
38907 if test "$wxUSE_MOTIF" = 1; then
38908 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under Motif... disabled" >&5
38909echo "$as_me: WARNING: Drag and drop not yet supported under Motif... disabled" >&2;}
38910 wxUSE_DRAG_AND_DROP=no
38911 fi
38912
38913 if test "$wxUSE_X11" = 1; then
38914 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under X11... disabled" >&5
38915echo "$as_me: WARNING: Drag and drop not yet supported under X11... disabled" >&2;}
38916 wxUSE_DRAG_AND_DROP=no
38917 fi
38918
38919 if test "$wxUSE_MGL" = 1; then
38920 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under MGL... disabled" >&5
38921echo "$as_me: WARNING: Drag and drop not yet supported under MGL... disabled" >&2;}
38922 wxUSE_DRAG_AND_DROP=no
38923 fi
38924
38925 if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
38926 cat >>confdefs.h <<\_ACEOF
38927#define wxUSE_DRAG_AND_DROP 1
38928_ACEOF
38929
38930 fi
38931
38932fi
38933
38934if test "$wxUSE_DRAG_AND_DROP" = "yes" -o "$wxUSE_CLIPBOARD" = "yes"; then
38935 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd"
38936fi
38937
38938if test "$wxUSE_SPLINES" = "yes" ; then
38939 cat >>confdefs.h <<\_ACEOF
38940#define wxUSE_SPLINES 1
38941_ACEOF
38942
38943fi
38944
fbe2ca43
SN
38945if test "$wxUSE_MOUSEWHEEL" = "yes" ; then
38946 cat >>confdefs.h <<\_ACEOF
38947#define wxUSE_MOUSEWHEEL 1
38948_ACEOF
38949
38950fi
38951
a848cd7e
SC
38952
38953USES_CONTROLS=0
38954if test "$wxUSE_CONTROLS" = "yes"; then
38955 USES_CONTROLS=1
38956fi
38957
38958if test "$wxUSE_ACCEL" = "yes"; then
38959 cat >>confdefs.h <<\_ACEOF
38960#define wxUSE_ACCEL 1
38961_ACEOF
38962
38963 USES_CONTROLS=1
38964fi
38965
38966if test "$wxUSE_BUTTON" = "yes"; then
38967 cat >>confdefs.h <<\_ACEOF
38968#define wxUSE_BUTTON 1
38969_ACEOF
38970
38971 USES_CONTROLS=1
38972fi
38973
38974if test "$wxUSE_BMPBUTTON" = "yes"; then
38975 cat >>confdefs.h <<\_ACEOF
38976#define wxUSE_BMPBUTTON 1
38977_ACEOF
38978
38979 USES_CONTROLS=1
38980fi
38981
38982if test "$wxUSE_CALCTRL" = "yes"; then
38983 cat >>confdefs.h <<\_ACEOF
38984#define wxUSE_CALENDARCTRL 1
38985_ACEOF
38986
38987 USES_CONTROLS=1
38988 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar"
38989fi
38990
38991if test "$wxUSE_CARET" = "yes"; then
38992 cat >>confdefs.h <<\_ACEOF
38993#define wxUSE_CARET 1
38994_ACEOF
38995
38996 USES_CONTROLS=1
38997 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret"
38998fi
38999
39000if test "$wxUSE_COMBOBOX" = "yes"; then
39001 cat >>confdefs.h <<\_ACEOF
39002#define wxUSE_COMBOBOX 1
39003_ACEOF
39004
39005 USES_CONTROLS=1
39006fi
39007
39008if test "$wxUSE_CHOICE" = "yes"; then
39009 cat >>confdefs.h <<\_ACEOF
39010#define wxUSE_CHOICE 1
39011_ACEOF
39012
39013 USES_CONTROLS=1
39014fi
39015
92bbdbcd
WS
39016if test "$wxUSE_CHOICEBOOK" = "yes"; then
39017 cat >>confdefs.h <<\_ACEOF
39018#define wxUSE_CHOICEBOOK 1
39019_ACEOF
39020
39021 USES_CONTROLS=1
39022fi
39023
a848cd7e
SC
39024if test "$wxUSE_CHECKBOX" = "yes"; then
39025 cat >>confdefs.h <<\_ACEOF
39026#define wxUSE_CHECKBOX 1
39027_ACEOF
39028
39029 USES_CONTROLS=1
39030fi
39031
39032if test "$wxUSE_CHECKLST" = "yes"; then
39033 cat >>confdefs.h <<\_ACEOF
39034#define wxUSE_CHECKLISTBOX 1
39035_ACEOF
39036
39037 USES_CONTROLS=1
39038 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst"
39039fi
39040
da98e9be
VZ
39041if test "$wxUSE_DATEPICKCTRL" = "yes"; then
39042 cat >>confdefs.h <<\_ACEOF
39043#define wxUSE_DATEPICKCTRL 1
39044_ACEOF
39045
39046 USES_CONTROLS=1
39047fi
39048
a848cd7e
SC
39049if test "$wxUSE_DISPLAY" = "yes"; then
39050 cat >>confdefs.h <<\_ACEOF
39051#define wxUSE_DISPLAY 1
39052_ACEOF
39053
0b78747f 39054 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS display multimon"
a848cd7e
SC
39055fi
39056
39057if test "$wxUSE_GAUGE" = "yes"; then
39058 cat >>confdefs.h <<\_ACEOF
39059#define wxUSE_GAUGE 1
39060_ACEOF
39061
39062 USES_CONTROLS=1
39063fi
39064
39065if test "$wxUSE_GRID" = "yes"; then
39066 cat >>confdefs.h <<\_ACEOF
39067#define wxUSE_GRID 1
39068_ACEOF
39069
39070 USES_CONTROLS=1
39071 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid"
39072fi
39073
39074if test "$wxUSE_IMAGLIST" = "yes"; then
39075 cat >>confdefs.h <<\_ACEOF
39076#define wxUSE_IMAGLIST 1
39077_ACEOF
39078
39079fi
39080
39081if test "$wxUSE_LISTBOOK" = "yes"; then
39082 cat >>confdefs.h <<\_ACEOF
39083#define wxUSE_LISTBOOK 1
39084_ACEOF
39085
39086 USES_CONTROLS=1
39087fi
39088
39089if test "$wxUSE_LISTBOX" = "yes"; then
39090 cat >>confdefs.h <<\_ACEOF
39091#define wxUSE_LISTBOX 1
39092_ACEOF
39093
39094 USES_CONTROLS=1
0b78747f 39095 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listbox"
a848cd7e
SC
39096fi
39097
39098if test "$wxUSE_LISTCTRL" = "yes"; then
39099 if test "$wxUSE_IMAGLIST" = "yes"; then
39100 cat >>confdefs.h <<\_ACEOF
39101#define wxUSE_LISTCTRL 1
39102_ACEOF
39103
39104 USES_CONTROLS=1
39105 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl"
39106 else
39107 { echo "$as_me:$LINENO: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&5
39108echo "$as_me: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&2;}
39109 fi
39110fi
39111
39112if test "$wxUSE_NOTEBOOK" = "yes"; then
39113 cat >>confdefs.h <<\_ACEOF
39114#define wxUSE_NOTEBOOK 1
39115_ACEOF
39116
39117 USES_CONTROLS=1
39118 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook"
39119fi
39120
39121
39122if test "$wxUSE_RADIOBOX" = "yes"; then
39123 cat >>confdefs.h <<\_ACEOF
39124#define wxUSE_RADIOBOX 1
39125_ACEOF
39126
39127 USES_CONTROLS=1
39128fi
39129
39130if test "$wxUSE_RADIOBTN" = "yes"; then
39131 cat >>confdefs.h <<\_ACEOF
39132#define wxUSE_RADIOBTN 1
39133_ACEOF
39134
39135 USES_CONTROLS=1
39136fi
39137
39138if test "$wxUSE_SASH" = "yes"; then
39139 cat >>confdefs.h <<\_ACEOF
39140#define wxUSE_SASH 1
39141_ACEOF
39142
39143 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest"
39144fi
39145
39146if test "$wxUSE_SCROLLBAR" = "yes"; then
39147 cat >>confdefs.h <<\_ACEOF
39148#define wxUSE_SCROLLBAR 1
39149_ACEOF
39150
39151 USES_CONTROLS=1
39152 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub"
39153fi
39154
39155if test "$wxUSE_SLIDER" = "yes"; then
39156 cat >>confdefs.h <<\_ACEOF
39157#define wxUSE_SLIDER 1
39158_ACEOF
39159
39160 USES_CONTROLS=1
39161fi
39162
39163if test "$wxUSE_SPINBTN" = "yes"; then
39164 cat >>confdefs.h <<\_ACEOF
39165#define wxUSE_SPINBTN 1
39166_ACEOF
39167
39168 USES_CONTROLS=1
39169fi
39170
39171if test "$wxUSE_SPINCTRL" = "yes"; then
39172 cat >>confdefs.h <<\_ACEOF
39173#define wxUSE_SPINCTRL 1
39174_ACEOF
39175
39176 USES_CONTROLS=1
39177fi
39178
39179if test "$wxUSE_SPLITTER" = "yes"; then
39180 cat >>confdefs.h <<\_ACEOF
39181#define wxUSE_SPLITTER 1
39182_ACEOF
39183
39184 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter"
39185fi
39186
39187if test "$wxUSE_STATBMP" = "yes"; then
39188 cat >>confdefs.h <<\_ACEOF
39189#define wxUSE_STATBMP 1
39190_ACEOF
39191
39192 USES_CONTROLS=1
39193fi
39194
39195if test "$wxUSE_STATBOX" = "yes"; then
39196 cat >>confdefs.h <<\_ACEOF
39197#define wxUSE_STATBOX 1
39198_ACEOF
39199
39200 USES_CONTROLS=1
39201fi
39202
39203if test "$wxUSE_STATTEXT" = "yes"; then
39204 cat >>confdefs.h <<\_ACEOF
39205#define wxUSE_STATTEXT 1
39206_ACEOF
39207
39208 USES_CONTROLS=1
39209fi
39210
39211if test "$wxUSE_STATLINE" = "yes"; then
39212 cat >>confdefs.h <<\_ACEOF
39213#define wxUSE_STATLINE 1
39214_ACEOF
39215
39216 USES_CONTROLS=1
39217fi
39218
39219if test "$wxUSE_STATUSBAR" = "yes"; then
da4486fb
VZ
39220 cat >>confdefs.h <<\_ACEOF
39221#define wxUSE_NATIVE_STATUSBAR 1
39222_ACEOF
39223
a848cd7e
SC
39224 cat >>confdefs.h <<\_ACEOF
39225#define wxUSE_STATUSBAR 1
39226_ACEOF
39227
39228 USES_CONTROLS=1
39229
39230 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar"
39231fi
39232
39233if test "$wxUSE_TABDIALOG" = "yes"; then
39234 cat >>confdefs.h <<\_ACEOF
39235#define wxUSE_TAB_DIALOG 1
39236_ACEOF
39237
a848cd7e
SC
39238fi
39239
39240if test "$wxUSE_TEXTCTRL" = "yes"; then
39241 cat >>confdefs.h <<\_ACEOF
39242#define wxUSE_TEXTCTRL 1
39243_ACEOF
39244
39245 USES_CONTROLS=1
39246 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text"
39247fi
39248
39249if test "$wxUSE_TOGGLEBTN" = "yes"; then
39250 if test "$wxUSE_COCOA" = 1 ; then
39251 { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&5
39252echo "$as_me: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&2;}
39253 wxUSE_TOGGLEBTN=no
39254 fi
39255 if test "$wxUSE_UNIVERSAL" = "yes"; then
39256 { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under wxUniversal... disabled" >&5
39257echo "$as_me: WARNING: Toggle button not yet supported under wxUniversal... disabled" >&2;}
39258 wxUSE_TOGGLEBTN=no
39259 fi
39260
39261 if test "$wxUSE_TOGGLEBTN" = "yes"; then
39262 cat >>confdefs.h <<\_ACEOF
39263#define wxUSE_TOGGLEBTN 1
39264_ACEOF
39265
39266 USES_CONTROLS=1
39267 fi
39268fi
39269
39270if test "$wxUSE_TOOLBAR_SIMPLE" = "yes"; then
39271 cat >>confdefs.h <<\_ACEOF
39272#define wxUSE_TOOLBAR_SIMPLE 1
39273_ACEOF
39274
39275 wxUSE_TOOLBAR="yes"
39276 USES_CONTROLS=1
39277fi
39278
39279if test "$wxUSE_TOOLBAR" = "yes"; then
39280 cat >>confdefs.h <<\_ACEOF
39281#define wxUSE_TOOLBAR 1
39282_ACEOF
39283
39284 USES_CONTROLS=1
39285
39286 if test "$wxUSE_TOOLBAR_SIMPLE" != "yes"; then
39287 wxUSE_TOOLBAR_NATIVE="yes"
39288 fi
39289
39290 if test "$wxUSE_TOOLBAR_NATIVE" = "yes"; then
39291 cat >>confdefs.h <<\_ACEOF
39292#define wxUSE_TOOLBAR_NATIVE 1
39293_ACEOF
39294
39295 USES_CONTROLS=1
39296 fi
39297
39298 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar"
39299fi
39300
39301if test "$wxUSE_TOOLTIPS" = "yes"; then
39302 if test "$wxUSE_MOTIF" = 1; then
39303 { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet under Motif... disabled" >&5
39304echo "$as_me: WARNING: wxTooltip not supported yet under Motif... disabled" >&2;}
39305 else
39306 if test "$wxUSE_UNIVERSAL" = "yes"; then
39307 { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&5
39308echo "$as_me: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&2;}
39309 else
39310 cat >>confdefs.h <<\_ACEOF
39311#define wxUSE_TOOLTIPS 1
39312_ACEOF
39313
39314 fi
39315 fi
39316fi
39317
39318if test "$wxUSE_TREECTRL" = "yes"; then
39319 if test "$wxUSE_IMAGLIST" = "yes"; then
39320 cat >>confdefs.h <<\_ACEOF
39321#define wxUSE_TREECTRL 1
39322_ACEOF
39323
39324 USES_CONTROLS=1
39325 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl"
39326 else
39327 { echo "$as_me:$LINENO: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&5
39328echo "$as_me: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&2;}
39329 fi
39330fi
39331
39332if test "$wxUSE_POPUPWIN" = "yes"; then
39333 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
39334 { echo "$as_me:$LINENO: WARNING: Popup window not yet supported under Mac OS X... disabled" >&5
39335echo "$as_me: WARNING: Popup window not yet supported under Mac OS X... disabled" >&2;}
39336 else
39337 if test "$wxUSE_PM" = 1; then
39338 { echo "$as_me:$LINENO: WARNING: wxPopupWindow not yet supported under PM... disabled" >&5
39339echo "$as_me: WARNING: wxPopupWindow not yet supported under PM... disabled" >&2;}
39340 else
39341 cat >>confdefs.h <<\_ACEOF
39342#define wxUSE_POPUPWIN 1
39343_ACEOF
39344
0b78747f 39345 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS popup"
a848cd7e
SC
39346
39347 USES_CONTROLS=1
39348 fi
39349 fi
39350fi
39351
0dcd06dd 39352if test "$wxUSE_DIALUP_MANAGER" = "yes"; then
b843b628
MB
39353 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
39354 { echo "$as_me:$LINENO: WARNING: Dialup manager not yet supported under Mac OS X... disabled" >&5
39355echo "$as_me: WARNING: Dialup manager not yet supported under Mac OS X... disabled" >&2;}
39356 else
39357 cat >>confdefs.h <<\_ACEOF
39358#define wxUSE_DIALUP_MANAGER 1
39359_ACEOF
39360
39361 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup"
39362 fi
39363fi
39364
a848cd7e
SC
39365if test "$wxUSE_TIPWINDOW" = "yes"; then
39366 if test "$wxUSE_PM" = 1; then
39367 { echo "$as_me:$LINENO: WARNING: wxTipWindow not yet supported under PM... disabled" >&5
39368echo "$as_me: WARNING: wxTipWindow not yet supported under PM... disabled" >&2;}
39369 else
39370 cat >>confdefs.h <<\_ACEOF
39371#define wxUSE_TIPWINDOW 1
39372_ACEOF
39373
39374 fi
39375fi
39376
39377if test "$USES_CONTROLS" = 1; then
39378 cat >>confdefs.h <<\_ACEOF
39379#define wxUSE_CONTROLS 1
39380_ACEOF
39381
39382fi
39383
39384
39385if test "$wxUSE_ACCESSIBILITY" = "yes"; then
39386 cat >>confdefs.h <<\_ACEOF
39387#define wxUSE_ACCESSIBILITY 1
39388_ACEOF
39389
39390 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS access"
39391fi
39392
39393if test "$wxUSE_DRAGIMAGE" = "yes"; then
39394 cat >>confdefs.h <<\_ACEOF
39395#define wxUSE_DRAGIMAGE 1
39396_ACEOF
39397
39398 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag"
39399fi
39400
39401if test "$wxUSE_EXCEPTIONS" = "yes"; then
07bea8f0
VS
39402 if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
39403 { echo "$as_me:$LINENO: WARNING: --enable-exceptions can't be used with --enable-no_exceptions" >&5
39404echo "$as_me: WARNING: --enable-exceptions can't be used with --enable-no_exceptions" >&2;}
39405 else
39406 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
39407#define wxUSE_EXCEPTIONS 1
39408_ACEOF
39409
07bea8f0
VS
39410 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS except"
39411 fi
a848cd7e
SC
39412fi
39413
39414USE_HTML=0
39415if test "$wxUSE_HTML" = "yes"; then
39416 cat >>confdefs.h <<\_ACEOF
39417#define wxUSE_HTML 1
39418_ACEOF
39419
39420 USE_HTML=1
39421 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html html/about html/help html/helpview html/printing html/test html/virtual html/widget html/zip htlbox"
de59c161
RD
39422 if test "$wxUSE_MAC" = 1; then
39423 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html/htmlctrl"
39424 fi
a848cd7e 39425fi
646b6ec1 39426if test "$wxUSE_WEBKIT" = "yes"; then
1e9e8aba 39427 if test "$wxUSE_MAC" = 1 -a "$USE_DARWIN" = 1; then
07bea8f0
VS
39428 old_CPPFLAGS="$CPPFLAGS"
39429 CPPFLAGS="$CPPFLAGS -x objective-c++"
39430 echo "$as_me:$LINENO: checking for WebKit/HIWebView.h" >&5
39431echo $ECHO_N "checking for WebKit/HIWebView.h... $ECHO_C" >&6
39432if test "${ac_cv_header_WebKit_HIWebView_h+set}" = set; then
39433 echo $ECHO_N "(cached) $ECHO_C" >&6
39434else
39435 cat >conftest.$ac_ext <<_ACEOF
39436/* confdefs.h. */
39437_ACEOF
39438cat confdefs.h >>conftest.$ac_ext
39439cat >>conftest.$ac_ext <<_ACEOF
39440/* end confdefs.h. */
39441#include <Carbon/Carbon.h>
39442
39443#include <WebKit/HIWebView.h>
39444_ACEOF
39445rm -f conftest.$ac_objext
39446if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39447 (eval $ac_compile) 2>conftest.er1
39448 ac_status=$?
39449 grep -v '^ *+' conftest.er1 >conftest.err
39450 rm -f conftest.er1
39451 cat conftest.err >&5
39452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39453 (exit $ac_status); } &&
9dd0f6c2 39454 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
07bea8f0
VS
39455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39456 (eval $ac_try) 2>&5
39457 ac_status=$?
39458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39459 (exit $ac_status); }; } &&
39460 { ac_try='test -s conftest.$ac_objext'
39461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39462 (eval $ac_try) 2>&5
39463 ac_status=$?
39464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39465 (exit $ac_status); }; }; then
39466 ac_cv_header_WebKit_HIWebView_h=yes
39467else
39468 echo "$as_me: failed program was:" >&5
39469sed 's/^/| /' conftest.$ac_ext >&5
39470
39471ac_cv_header_WebKit_HIWebView_h=no
39472fi
39473rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39474fi
39475echo "$as_me:$LINENO: result: $ac_cv_header_WebKit_HIWebView_h" >&5
39476echo "${ECHO_T}$ac_cv_header_WebKit_HIWebView_h" >&6
39477if test $ac_cv_header_WebKit_HIWebView_h = yes; then
39478
39479 cat >>confdefs.h <<\_ACEOF
646b6ec1
VS
39480#define wxUSE_WEBKIT 1
39481_ACEOF
39482
07bea8f0
VS
39483 WEBKIT_LINK="-framework WebKit"
39484
39485else
39486
39487 { echo "$as_me:$LINENO: WARNING: WebKit headers not found; disabling wxWebKit" >&5
39488echo "$as_me: WARNING: WebKit headers not found; disabling wxWebKit" >&2;}
39489 wxUSE_WEBKIT=no
39490
646b6ec1
VS
39491fi
39492
07bea8f0
VS
39493
39494 CPPFLAGS="$old_CPPFLAGS"
39495 elif test "$wxUSE_COCOA" = 1; then
39496 cat >>confdefs.h <<\_ACEOF
39497#define wxUSE_WEBKIT 1
39498_ACEOF
39499
39500 else
39501 wxUSE_WEBKIT=no
39502 fi
39503fi
39504
9a8f0513
VS
39505USE_XRC=0
39506if test "$wxUSE_XRC" = "yes"; then
d2ebf0b7
VS
39507 if test "$wxUSE_XML" != "yes"; then
39508 { echo "$as_me:$LINENO: WARNING: XML library not built, XRC resources disabled" >&5
39509echo "$as_me: WARNING: XML library not built, XRC resources disabled" >&2;}
39510 wxUSE_XRC=no
39511 else
39512 cat >>confdefs.h <<\_ACEOF
9a8f0513
VS
39513#define wxUSE_XRC 1
39514_ACEOF
39515
d2ebf0b7
VS
39516 USE_XRC=1
39517 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS xrc"
39518 fi
9a8f0513 39519fi
07bea8f0 39520
a848cd7e
SC
39521if test "$wxUSE_MENUS" = "yes"; then
39522 cat >>confdefs.h <<\_ACEOF
39523#define wxUSE_MENUS 1
39524_ACEOF
39525
39526 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu"
39527fi
39528
39529if test "$wxUSE_METAFILE" = "yes"; then
39530 cat >>confdefs.h <<\_ACEOF
39531#define wxUSE_METAFILE 1
39532_ACEOF
39533
39534fi
39535
39536if test "$wxUSE_MIMETYPE" = "yes"; then
39537 cat >>confdefs.h <<\_ACEOF
39538#define wxUSE_MIMETYPE 1
39539_ACEOF
39540
39541fi
39542
39543if test "$wxUSE_MINIFRAME" = "yes"; then
39544 cat >>confdefs.h <<\_ACEOF
39545#define wxUSE_MINIFRAME 1
39546_ACEOF
39547
39548 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram"
39549fi
39550
39551if test "$wxUSE_SYSTEM_OPTIONS" = "yes"; then
39552 cat >>confdefs.h <<\_ACEOF
39553#define wxUSE_SYSTEM_OPTIONS 1
39554_ACEOF
39555
39556 if test "$TOOLKIT" = "MSW" -o "$TOOLKIT" = "GTK" -o "$TOOLKIT" = "X11" -o \
a49baeab 39557 "$TOOLKIT" = "MOTIF" -o "$TOOLKIT" = "COCOA"; then
a848cd7e
SC
39558 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS taskbar"
39559 fi
39560fi
39561
39562
39563if test "$wxUSE_VALIDATORS" = "yes"; then
39564 cat >>confdefs.h <<\_ACEOF
39565#define wxUSE_VALIDATORS 1
39566_ACEOF
39567
39568 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate"
39569fi
39570
39571if test "$wxUSE_PALETTE" = "yes" ; then
39572 cat >>confdefs.h <<\_ACEOF
39573#define wxUSE_PALETTE 1
39574_ACEOF
39575
39576fi
39577
39578if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_MSLU" = "yes" ; then
39579 LIBS=" -lunicows $LIBS"
39580fi
39581
39582
39583if test "$wxUSE_IMAGE" = "yes" ; then
39584 cat >>confdefs.h <<\_ACEOF
39585#define wxUSE_IMAGE 1
39586_ACEOF
39587
39588
39589 if test "$wxUSE_GIF" = "yes" ; then
39590 cat >>confdefs.h <<\_ACEOF
39591#define wxUSE_GIF 1
39592_ACEOF
39593
39594 fi
39595
39596 if test "$wxUSE_PCX" = "yes" ; then
39597 cat >>confdefs.h <<\_ACEOF
39598#define wxUSE_PCX 1
39599_ACEOF
39600
39601 fi
39602
39603 if test "$wxUSE_IFF" = "yes" ; then
39604 cat >>confdefs.h <<\_ACEOF
39605#define wxUSE_IFF 1
39606_ACEOF
39607
39608 fi
39609
39610 if test "$wxUSE_PNM" = "yes" ; then
39611 cat >>confdefs.h <<\_ACEOF
39612#define wxUSE_PNM 1
39613_ACEOF
39614
39615 fi
39616
39617 if test "$wxUSE_XPM" = "yes" ; then
39618 cat >>confdefs.h <<\_ACEOF
39619#define wxUSE_XPM 1
39620_ACEOF
39621
39622 fi
39623
39624 if test "$wxUSE_ICO_CUR" = "yes" ; then
39625 cat >>confdefs.h <<\_ACEOF
39626#define wxUSE_ICO_CUR 1
39627_ACEOF
39628
39629 fi
39630fi
39631
39632
39633if test "$wxUSE_CHOICEDLG" = "yes"; then
39634 cat >>confdefs.h <<\_ACEOF
39635#define wxUSE_CHOICEDLG 1
39636_ACEOF
39637
39638fi
39639
39640if test "$wxUSE_COLOURDLG" = "yes"; then
39641 cat >>confdefs.h <<\_ACEOF
39642#define wxUSE_COLOURDLG 1
39643_ACEOF
39644
39645fi
39646
39647if test "$wxUSE_FILEDLG" = "yes"; then
39648 cat >>confdefs.h <<\_ACEOF
39649#define wxUSE_FILEDLG 1
39650_ACEOF
39651
39652fi
39653
39654if test "$wxUSE_FINDREPLDLG" = "yes"; then
39655 cat >>confdefs.h <<\_ACEOF
39656#define wxUSE_FINDREPLDLG 1
39657_ACEOF
39658
39659fi
39660
39661if test "$wxUSE_FONTDLG" = "yes"; then
39662 cat >>confdefs.h <<\_ACEOF
39663#define wxUSE_FONTDLG 1
39664_ACEOF
39665
39666fi
39667
39668if test "$wxUSE_DIRDLG" = "yes"; then
39669 if test "$wxUSE_TREECTRL" != "yes"; then
39670 { echo "$as_me:$LINENO: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&5
39671echo "$as_me: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&2;}
39672 else
39673 cat >>confdefs.h <<\_ACEOF
39674#define wxUSE_DIRDLG 1
39675_ACEOF
39676
39677 fi
39678fi
39679
39680if test "$wxUSE_MSGDLG" = "yes"; then
39681 cat >>confdefs.h <<\_ACEOF
39682#define wxUSE_MSGDLG 1
39683_ACEOF
39684
39685fi
39686
39687if test "$wxUSE_NUMBERDLG" = "yes"; then
39688 cat >>confdefs.h <<\_ACEOF
39689#define wxUSE_NUMBERDLG 1
39690_ACEOF
39691
39692fi
39693
39694if test "$wxUSE_PROGRESSDLG" = "yes"; then
39695 if test "$wxUSE_CONSTRAINTS" != "yes"; then
39696 { echo "$as_me:$LINENO: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&5
39697echo "$as_me: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&2;}
39698 else
39699 cat >>confdefs.h <<\_ACEOF
39700#define wxUSE_PROGRESSDLG 1
39701_ACEOF
39702
39703 fi
39704fi
39705
39706if test "$wxUSE_SPLASH" = "yes"; then
39707 cat >>confdefs.h <<\_ACEOF
39708#define wxUSE_SPLASH 1
39709_ACEOF
39710
2057db16 39711 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splash"
a848cd7e
SC
39712fi
39713
39714if test "$wxUSE_STARTUP_TIPS" = "yes"; then
39715 if test "$wxUSE_CONSTRAINTS" != "yes"; then
39716 { echo "$as_me:$LINENO: WARNING: Startup tips requires constraints and won't be compiled without them" >&5
39717echo "$as_me: WARNING: Startup tips requires constraints and won't be compiled without them" >&2;}
39718 else
39719 cat >>confdefs.h <<\_ACEOF
39720#define wxUSE_STARTUP_TIPS 1
39721_ACEOF
39722
39723 fi
39724fi
39725
39726if test "$wxUSE_TEXTDLG" = "yes"; then
39727 cat >>confdefs.h <<\_ACEOF
39728#define wxUSE_TEXTDLG 1
39729_ACEOF
39730
39731fi
39732
39733if test "$wxUSE_WIZARDDLG" = "yes"; then
39734 cat >>confdefs.h <<\_ACEOF
39735#define wxUSE_WIZARDDLG 1
39736_ACEOF
39737
39738 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard"
39739fi
39740
39741
ce756cb0
RN
39742if test "$wxUSE_MEDIACTRL" = "yes"; then
39743 if test "$wxUSE_MSW" = 1; then
39744 wxUSE_DIRECTSHOW="yes"
39745
39746for ac_header in dshow.h
39747do
39748as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
39749echo "$as_me:$LINENO: checking for $ac_header" >&5
39750echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
39751if eval "test \"\${$as_ac_Header+set}\" = set"; then
39752 echo $ECHO_N "(cached) $ECHO_C" >&6
39753else
39754 cat >conftest.$ac_ext <<_ACEOF
39755/* confdefs.h. */
39756_ACEOF
39757cat confdefs.h >>conftest.$ac_ext
39758cat >>conftest.$ac_ext <<_ACEOF
39759/* end confdefs.h. */
39760#include <windows.h>
39761
39762#include <$ac_header>
39763_ACEOF
39764rm -f conftest.$ac_objext
39765if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39766 (eval $ac_compile) 2>conftest.er1
39767 ac_status=$?
39768 grep -v '^ *+' conftest.er1 >conftest.err
39769 rm -f conftest.er1
39770 cat conftest.err >&5
39771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39772 (exit $ac_status); } &&
9dd0f6c2 39773 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ce756cb0
RN
39774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39775 (eval $ac_try) 2>&5
39776 ac_status=$?
39777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39778 (exit $ac_status); }; } &&
39779 { ac_try='test -s conftest.$ac_objext'
39780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39781 (eval $ac_try) 2>&5
39782 ac_status=$?
39783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39784 (exit $ac_status); }; }; then
39785 eval "$as_ac_Header=yes"
39786else
39787 echo "$as_me: failed program was:" >&5
39788sed 's/^/| /' conftest.$ac_ext >&5
39789
39790eval "$as_ac_Header=no"
39791fi
39792rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39793fi
39794echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
39795echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
39796if test `eval echo '${'$as_ac_Header'}'` = yes; then
39797 cat >>confdefs.h <<_ACEOF
39798#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
39799_ACEOF
39800
39801else
39802
39803 wxUSE_DIRECTSHOW="no"
39804 { echo "$as_me:$LINENO: WARNING: DirectShow not installed; consider installing the DirectX7 SDK or higher" >&5
39805echo "$as_me: WARNING: DirectShow not installed; consider installing the DirectX7 SDK or higher" >&2;}
39806
39807fi
39808
39809done
39810
39811
39812 if test "$wxUSE_DIRECTSHOW" = "yes"; then
39813 cat >>confdefs.h <<\_ACEOF
39814#define wxUSE_DIRECTSHOW 1
39815_ACEOF
39816
39817 LIBS="$LIBS -lstrmiids"
39818 fi
39819 fi
39820
39821 if test "$wxUSE_GTK" = 1; then
39822 wxUSE_GSTREAMER="yes"
39823
ce756cb0 39824
dae87f93 39825 succeeded=no
ce756cb0 39826
dae87f93
RN
39827 if test -z "$PKG_CONFIG"; then
39828 # Extract the first word of "pkg-config", so it can be a program name with args.
39829set dummy pkg-config; ac_word=$2
39830echo "$as_me:$LINENO: checking for $ac_word" >&5
39831echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
39832if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
39833 echo $ECHO_N "(cached) $ECHO_C" >&6
39834else
39835 case $PKG_CONFIG in
39836 [\\/]* | ?:[\\/]*)
39837 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
39838 ;;
39839 *)
39840 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
39841for as_dir in $PATH
39842do
39843 IFS=$as_save_IFS
39844 test -z "$as_dir" && as_dir=.
39845 for ac_exec_ext in '' $ac_executable_extensions; do
39846 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
39847 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
39848 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
39849 break 2
39850 fi
39851done
39852done
39853
39854 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
39855 ;;
39856esac
39857fi
39858PKG_CONFIG=$ac_cv_path_PKG_CONFIG
39859
39860if test -n "$PKG_CONFIG"; then
39861 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
39862echo "${ECHO_T}$PKG_CONFIG" >&6
39863else
39864 echo "$as_me:$LINENO: result: no" >&5
39865echo "${ECHO_T}no" >&6
39866fi
39867
39868 fi
39869
39870 if test "$PKG_CONFIG" = "no" ; then
39871 echo "*** The pkg-config script could not be found. Make sure it is"
39872 echo "*** in your path, or set the PKG_CONFIG environment variable"
39873 echo "*** to the full path to pkg-config."
39874 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
39875 else
39876 PKG_CONFIG_MIN_VERSION=0.9.0
39877 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
39878 echo "$as_me:$LINENO: checking for gstreamer-0.8" >&5
39879echo $ECHO_N "checking for gstreamer-0.8... $ECHO_C" >&6
39880
39881 if $PKG_CONFIG --exists "gstreamer-0.8" ; then
39882 echo "$as_me:$LINENO: result: yes" >&5
ce756cb0 39883echo "${ECHO_T}yes" >&6
dae87f93 39884 succeeded=yes
ce756cb0 39885
dae87f93
RN
39886 echo "$as_me:$LINENO: checking GSTREAMER_CFLAGS" >&5
39887echo $ECHO_N "checking GSTREAMER_CFLAGS... $ECHO_C" >&6
39888 GSTREAMER_CFLAGS=`$PKG_CONFIG --cflags "gstreamer-0.8"`
39889 echo "$as_me:$LINENO: result: $GSTREAMER_CFLAGS" >&5
39890echo "${ECHO_T}$GSTREAMER_CFLAGS" >&6
39891
39892 echo "$as_me:$LINENO: checking GSTREAMER_LIBS" >&5
39893echo $ECHO_N "checking GSTREAMER_LIBS... $ECHO_C" >&6
39894 GSTREAMER_LIBS=`$PKG_CONFIG --libs "gstreamer-0.8"`
39895 echo "$as_me:$LINENO: result: $GSTREAMER_LIBS" >&5
39896echo "${ECHO_T}$GSTREAMER_LIBS" >&6
39897 else
39898 GSTREAMER_CFLAGS=""
39899 GSTREAMER_LIBS=""
39900 ## If we have a custom action on failure, don't print errors, but
39901 ## do set a variable so people can do so.
39902 GSTREAMER_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gstreamer-0.8"`
ce756cb0 39903
dae87f93
RN
39904 fi
39905
39906
39907
39908 else
39909 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
39910 echo "*** See http://www.freedesktop.org/software/pkgconfig"
39911 fi
39912 fi
39913
39914 if test $succeeded = yes; then
39915
39916 CPPFLAGS="$CPPFLAGS $GSTREAMER_CFLAGS"
39917 LIBS="$LIBS $GSTREAMER_LIBS -lgstplay-0.8"
ce756cb0 39918
ce756cb0 39919 else
dae87f93
RN
39920
39921 { echo "$as_me:$LINENO: WARNING: GStreamer installation not found" >&5
39922echo "$as_me: WARNING: GStreamer installation not found" >&2;}
39923 wxUSE_GSTREAMER="no"
39924
39925 fi
39926
39927
39928
39929
39930
39931 if test "x$GST_INSPECT" == "x"; then
39932 # Extract the first word of "gst-inspect", so it can be a program name with args.
39933set dummy gst-inspect; ac_word=$2
39934echo "$as_me:$LINENO: checking for $ac_word" >&5
39935echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
39936if test "${ac_cv_prog_GST_INSPECT+set}" = set; then
39937 echo $ECHO_N "(cached) $ECHO_C" >&6
39938else
39939 if test -n "$GST_INSPECT"; then
39940 ac_cv_prog_GST_INSPECT="$GST_INSPECT" # Let the user override the test.
39941else
39942as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
39943for as_dir in $PATH
39944do
39945 IFS=$as_save_IFS
39946 test -z "$as_dir" && as_dir=.
39947 for ac_exec_ext in '' $ac_executable_extensions; do
39948 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
39949 ac_cv_prog_GST_INSPECT="gst-inspect"
39950 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
39951 break 2
ce756cb0 39952 fi
dae87f93
RN
39953done
39954done
39955
39956fi
39957fi
39958GST_INSPECT=$ac_cv_prog_GST_INSPECT
39959if test -n "$GST_INSPECT"; then
39960 echo "$as_me:$LINENO: result: $GST_INSPECT" >&5
39961echo "${ECHO_T}$GST_INSPECT" >&6
39962else
39963 echo "$as_me:$LINENO: result: no" >&5
39964echo "${ECHO_T}no" >&6
39965fi
39966
39967 fi
39968
39969 if test "x$GST_INSPECT" != "x"; then
39970 echo "$as_me:$LINENO: checking GStreamer element xvimagesink" >&5
39971echo $ECHO_N "checking GStreamer element xvimagesink... $ECHO_C" >&6
39972 if $GST_INSPECT xvimagesink > /dev/null 2> /dev/null ; then
39973 echo "$as_me:$LINENO: result: found." >&5
39974echo "${ECHO_T}found." >&6
ce756cb0 39975
ce756cb0 39976 else
dae87f93
RN
39977 echo "$as_me:$LINENO: result: not found." >&5
39978echo "${ECHO_T}not found." >&6
39979
39980 wxUSE_GSTREAMER="no"
39981 { echo "$as_me:$LINENO: WARNING: x video sink not found - cannot use GStreamer" >&5
39982echo "$as_me: WARNING: x video sink not found - cannot use GStreamer" >&2;}
39983
39984 fi
39985 fi
39986
39987
39988 echo "$as_me:$LINENO: checking for gst/xoverlay/xoverlay.h" >&5
39989echo $ECHO_N "checking for gst/xoverlay/xoverlay.h... $ECHO_C" >&6
39990if test "${ac_cv_header_gst_xoverlay_xoverlay_h+set}" = set; then
39991 echo $ECHO_N "(cached) $ECHO_C" >&6
39992else
39993 cat >conftest.$ac_ext <<_ACEOF
ce756cb0
RN
39994/* confdefs.h. */
39995_ACEOF
39996cat confdefs.h >>conftest.$ac_ext
39997cat >>conftest.$ac_ext <<_ACEOF
39998/* end confdefs.h. */
dae87f93 39999#include <gst/gst.h>
ce756cb0 40000
dae87f93 40001#include <gst/xoverlay/xoverlay.h>
ce756cb0
RN
40002_ACEOF
40003rm -f conftest.$ac_objext
40004if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40005 (eval $ac_compile) 2>conftest.er1
40006 ac_status=$?
40007 grep -v '^ *+' conftest.er1 >conftest.err
40008 rm -f conftest.er1
40009 cat conftest.err >&5
40010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40011 (exit $ac_status); } &&
9dd0f6c2 40012 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ce756cb0
RN
40013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40014 (eval $ac_try) 2>&5
40015 ac_status=$?
40016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40017 (exit $ac_status); }; } &&
40018 { ac_try='test -s conftest.$ac_objext'
40019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40020 (eval $ac_try) 2>&5
40021 ac_status=$?
40022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40023 (exit $ac_status); }; }; then
dae87f93 40024 ac_cv_header_gst_xoverlay_xoverlay_h=yes
ce756cb0
RN
40025else
40026 echo "$as_me: failed program was:" >&5
40027sed 's/^/| /' conftest.$ac_ext >&5
40028
dae87f93 40029ac_cv_header_gst_xoverlay_xoverlay_h=no
ce756cb0
RN
40030fi
40031rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
dae87f93
RN
40032fi
40033echo "$as_me:$LINENO: result: $ac_cv_header_gst_xoverlay_xoverlay_h" >&5
40034echo "${ECHO_T}$ac_cv_header_gst_xoverlay_xoverlay_h" >&6
40035if test $ac_cv_header_gst_xoverlay_xoverlay_h = yes; then
40036 :
40037else
ce756cb0 40038
dae87f93
RN
40039 wxUSE_GSTREAMER="no"
40040 { echo "$as_me:$LINENO: WARNING: xoverlay header not found, cannot use GStreamer" >&5
40041echo "$as_me: WARNING: xoverlay header not found, cannot use GStreamer" >&2;}
ce756cb0 40042
dae87f93 40043fi
ce756cb0 40044
dae87f93
RN
40045
40046
40047 echo "$as_me:$LINENO: checking for gstplay 0.8" >&5
ce756cb0
RN
40048echo $ECHO_N "checking for gstplay 0.8... $ECHO_C" >&6
40049
40050ac_find_libraries=
40051for ac_dir in $SEARCH_LIB /usr/lib;
40052 do
40053 for ac_extension in a so sl dylib; do
40054 if test -f "$ac_dir/libgstplay-0.8.$ac_extension"; then
40055 ac_find_libraries=$ac_dir
40056 break 2
40057 fi
40058 done
40059 done
40060
ce756cb0 40061
dae87f93
RN
40062 if test "$ac_find_libraries" = "" ; then
40063 echo "$as_me:$LINENO: result: no" >&5
40064echo "${ECHO_T}no" >&6
40065 wxUSE_GSTREAMER="no"
40066 else
40067 echo "$as_me:$LINENO: result: yes" >&5
ce756cb0 40068echo "${ECHO_T}yes" >&6
dae87f93 40069 fi
ce756cb0 40070
dae87f93
RN
40071 if test "$wxUSE_GSTREAMER" = "yes"; then
40072 cat >>confdefs.h <<\_ACEOF
ce756cb0
RN
40073#define wxUSE_GSTREAMER 1
40074_ACEOF
40075
dae87f93
RN
40076 echo "$as_me:$LINENO: result: GStreamer detection successful" >&5
40077echo "${ECHO_T}GStreamer detection successful" >&6
ce756cb0
RN
40078 fi
40079 fi
40080 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mediaplayer"
40081 cat >>confdefs.h <<\_ACEOF
40082#define wxUSE_MEDIACTRL 1
40083_ACEOF
40084
40085fi
40086
40087
a848cd7e
SC
40088if test "$cross_compiling" = "yes"; then
40089 OSINFO="\"$host\""
40090else
40091 OSINFO=`uname -s -r -m`
40092 OSINFO="\"$OSINFO\""
40093fi
40094
40095cat >>confdefs.h <<_ACEOF
40096#define WXWIN_OS_DESCRIPTION $OSINFO
40097_ACEOF
40098
40099
40100
40101if test "x$prefix" != "xNONE"; then
40102 wxPREFIX=$prefix
40103else
40104 wxPREFIX=$ac_default_prefix
40105fi
40106
40107cat >>confdefs.h <<_ACEOF
40108#define wxINSTALL_PREFIX "$wxPREFIX"
40109_ACEOF
40110
40111
a848cd7e
SC
40112
40113
40114CORE_BASE_LIBS="net base"
40115CORE_GUI_LIBS="adv core"
40116
40117if test "$wxUSE_XML" = "yes" ; then
40118 CORE_BASE_LIBS="xml $CORE_BASE_LIBS"
40119fi
40120if test "$wxUSE_ODBC" != "no" ; then
40121 CORE_BASE_LIBS="odbc $CORE_BASE_LIBS"
40122 CORE_GUI_LIBS="dbgrid $CORE_GUI_LIBS"
40123fi
40124if test "$wxUSE_HTML" = "yes" ; then
40125 CORE_GUI_LIBS="html $CORE_GUI_LIBS"
40126fi
61639efb
VZ
40127if test "$wxUSE_DEBUGREPORT" = "yes" ; then
40128 CORE_GUI_LIBS="qa $CORE_GUI_LIBS"
40129fi
9a8f0513
VS
40130if test "$wxUSE_XRC" = "yes" ; then
40131 CORE_GUI_LIBS="xrc $CORE_GUI_LIBS"
40132fi
a848cd7e
SC
40133
40134if test "$wxUSE_GUI" != "yes"; then
40135 CORE_GUI_LIBS=""
40136fi
40137
40138
40139
40140
40141
40142
40143
40144
40145if test "$wxUSE_MAC" = 1 ; then
a98bf0c0 40146 if test "$wxUSE_SOUND" = "yes" || test "$wxUSE_MEDIACTRL" = "yes"; then
1e9e8aba
DE
40147 if test "$USE_DARWIN" = 1; then
40148 LDFLAGS="$LDFLAGS -framework QuickTime"
40149 else
40150 LDFLAGS="$LDFLAGS -lQuickTimeLib"
40151 fi
07bea8f0 40152 fi
5dcf30a0 40153 if test "$USE_DARWIN" = 1; then
1e9e8aba
DE
40154 LDFLAGS="$LDFLAGS -framework IOKit -framework Carbon -framework Cocoa -framework System"
40155 else
40156 LDFLAGS="$LDFLAGS -lCarbonLib"
5dcf30a0 40157 fi
59746b65
MW
40158elif test "$USE_DARWIN" = 1; then
40159 LDFLAGS="$LDFLAGS -framework IOKit -framework CoreServices -framework System"
a848cd7e
SC
40160fi
40161if test "$wxUSE_COCOA" = 1 ; then
4cb1d3da 40162 LDFLAGS="$LDFLAGS -framework IOKit -framework Cocoa"
4fc81cbc
RN
40163 if test "$wxUSE_MEDIACTRL" = "yes"; then
40164 LDFLAGS="$LDFLAGS -framework QuickTime"
40165 fi
a848cd7e
SC
40166fi
40167
40168
40169LIBS="$ZLIB_LINK $POSIX4_LINK $INET_LINK $WCHAR_LINK $DL_LINK $LIBS"
40170
40171have_cos=0
40172have_floor=0
40173
40174for ac_func in cos
40175do
40176as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40177echo "$as_me:$LINENO: checking for $ac_func" >&5
40178echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
40179if eval "test \"\${$as_ac_var+set}\" = set"; then
40180 echo $ECHO_N "(cached) $ECHO_C" >&6
40181else
40182 cat >conftest.$ac_ext <<_ACEOF
40183/* confdefs.h. */
40184_ACEOF
40185cat confdefs.h >>conftest.$ac_ext
40186cat >>conftest.$ac_ext <<_ACEOF
40187/* end confdefs.h. */
ac1cb8d3
VS
40188/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40189 For example, HP-UX 11i <limits.h> declares gettimeofday. */
40190#define $ac_func innocuous_$ac_func
40191
a848cd7e
SC
40192/* System header to define __stub macros and hopefully few prototypes,
40193 which can conflict with char $ac_func (); below.
40194 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40195 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 40196
a848cd7e
SC
40197#ifdef __STDC__
40198# include <limits.h>
40199#else
40200# include <assert.h>
40201#endif
ac1cb8d3
VS
40202
40203#undef $ac_func
40204
a848cd7e
SC
40205/* Override any gcc2 internal prototype to avoid an error. */
40206#ifdef __cplusplus
40207extern "C"
40208{
40209#endif
40210/* We use char because int might match the return type of a gcc2
40211 builtin and then its argument prototype would still apply. */
40212char $ac_func ();
40213/* The GNU C library defines this for functions which it implements
40214 to always fail with ENOSYS. Some functions are actually named
40215 something starting with __ and the normal name is an alias. */
40216#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
40217choke me
40218#else
40219char (*f) () = $ac_func;
40220#endif
40221#ifdef __cplusplus
40222}
40223#endif
40224
40225int
40226main ()
40227{
40228return f != $ac_func;
40229 ;
40230 return 0;
40231}
40232_ACEOF
40233rm -f conftest.$ac_objext conftest$ac_exeext
40234if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 40235 (eval $ac_link) 2>conftest.er1
a848cd7e 40236 ac_status=$?
ac1cb8d3
VS
40237 grep -v '^ *+' conftest.er1 >conftest.err
40238 rm -f conftest.er1
40239 cat conftest.err >&5
a848cd7e
SC
40240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40241 (exit $ac_status); } &&
9dd0f6c2 40242 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
40243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40244 (eval $ac_try) 2>&5
40245 ac_status=$?
40246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40247 (exit $ac_status); }; } &&
40248 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
40249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40250 (eval $ac_try) 2>&5
40251 ac_status=$?
40252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40253 (exit $ac_status); }; }; then
40254 eval "$as_ac_var=yes"
40255else
40256 echo "$as_me: failed program was:" >&5
40257sed 's/^/| /' conftest.$ac_ext >&5
40258
40259eval "$as_ac_var=no"
40260fi
ac1cb8d3
VS
40261rm -f conftest.err conftest.$ac_objext \
40262 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
40263fi
40264echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
40265echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
40266if test `eval echo '${'$as_ac_var'}'` = yes; then
40267 cat >>confdefs.h <<_ACEOF
40268#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
40269_ACEOF
40270 have_cos=1
40271fi
40272done
40273
40274
40275for ac_func in floor
40276do
40277as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40278echo "$as_me:$LINENO: checking for $ac_func" >&5
40279echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
40280if eval "test \"\${$as_ac_var+set}\" = set"; then
40281 echo $ECHO_N "(cached) $ECHO_C" >&6
40282else
40283 cat >conftest.$ac_ext <<_ACEOF
40284/* confdefs.h. */
40285_ACEOF
40286cat confdefs.h >>conftest.$ac_ext
40287cat >>conftest.$ac_ext <<_ACEOF
40288/* end confdefs.h. */
ac1cb8d3
VS
40289/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40290 For example, HP-UX 11i <limits.h> declares gettimeofday. */
40291#define $ac_func innocuous_$ac_func
40292
a848cd7e
SC
40293/* System header to define __stub macros and hopefully few prototypes,
40294 which can conflict with char $ac_func (); below.
40295 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40296 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 40297
a848cd7e
SC
40298#ifdef __STDC__
40299# include <limits.h>
40300#else
40301# include <assert.h>
40302#endif
ac1cb8d3
VS
40303
40304#undef $ac_func
40305
a848cd7e
SC
40306/* Override any gcc2 internal prototype to avoid an error. */
40307#ifdef __cplusplus
40308extern "C"
40309{
40310#endif
40311/* We use char because int might match the return type of a gcc2
40312 builtin and then its argument prototype would still apply. */
40313char $ac_func ();
40314/* The GNU C library defines this for functions which it implements
40315 to always fail with ENOSYS. Some functions are actually named
40316 something starting with __ and the normal name is an alias. */
40317#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
40318choke me
40319#else
40320char (*f) () = $ac_func;
40321#endif
40322#ifdef __cplusplus
40323}
40324#endif
40325
40326int
40327main ()
40328{
40329return f != $ac_func;
40330 ;
40331 return 0;
40332}
40333_ACEOF
40334rm -f conftest.$ac_objext conftest$ac_exeext
40335if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 40336 (eval $ac_link) 2>conftest.er1
a848cd7e 40337 ac_status=$?
ac1cb8d3
VS
40338 grep -v '^ *+' conftest.er1 >conftest.err
40339 rm -f conftest.er1
40340 cat conftest.err >&5
a848cd7e
SC
40341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40342 (exit $ac_status); } &&
9dd0f6c2 40343 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
40344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40345 (eval $ac_try) 2>&5
40346 ac_status=$?
40347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40348 (exit $ac_status); }; } &&
40349 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
40350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40351 (eval $ac_try) 2>&5
40352 ac_status=$?
40353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40354 (exit $ac_status); }; }; then
40355 eval "$as_ac_var=yes"
40356else
40357 echo "$as_me: failed program was:" >&5
40358sed 's/^/| /' conftest.$ac_ext >&5
40359
40360eval "$as_ac_var=no"
40361fi
ac1cb8d3
VS
40362rm -f conftest.err conftest.$ac_objext \
40363 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
40364fi
40365echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
40366echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
40367if test `eval echo '${'$as_ac_var'}'` = yes; then
40368 cat >>confdefs.h <<_ACEOF
40369#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
40370_ACEOF
40371 have_floor=1
40372fi
40373done
40374
40375echo "$as_me:$LINENO: checking if floating point functions link without -lm" >&5
40376echo $ECHO_N "checking if floating point functions link without -lm... $ECHO_C" >&6
40377if test "$have_cos" = 1 -a "$have_floor" = 1; then
40378 echo "$as_me:$LINENO: result: yes" >&5
40379echo "${ECHO_T}yes" >&6
40380else
40381 echo "$as_me:$LINENO: result: no" >&5
40382echo "${ECHO_T}no" >&6
40383 LIBS="$LIBS -lm"
40384 # use different functions to avoid configure caching
40385 have_sin=0
40386 have_ceil=0
40387
40388for ac_func in sin
40389do
40390as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40391echo "$as_me:$LINENO: checking for $ac_func" >&5
40392echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
40393if eval "test \"\${$as_ac_var+set}\" = set"; then
40394 echo $ECHO_N "(cached) $ECHO_C" >&6
40395else
40396 cat >conftest.$ac_ext <<_ACEOF
40397/* confdefs.h. */
40398_ACEOF
40399cat confdefs.h >>conftest.$ac_ext
40400cat >>conftest.$ac_ext <<_ACEOF
40401/* end confdefs.h. */
ac1cb8d3
VS
40402/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40403 For example, HP-UX 11i <limits.h> declares gettimeofday. */
40404#define $ac_func innocuous_$ac_func
40405
a848cd7e
SC
40406/* System header to define __stub macros and hopefully few prototypes,
40407 which can conflict with char $ac_func (); below.
40408 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40409 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 40410
a848cd7e
SC
40411#ifdef __STDC__
40412# include <limits.h>
40413#else
40414# include <assert.h>
40415#endif
ac1cb8d3
VS
40416
40417#undef $ac_func
40418
a848cd7e
SC
40419/* Override any gcc2 internal prototype to avoid an error. */
40420#ifdef __cplusplus
40421extern "C"
40422{
40423#endif
40424/* We use char because int might match the return type of a gcc2
40425 builtin and then its argument prototype would still apply. */
40426char $ac_func ();
40427/* The GNU C library defines this for functions which it implements
40428 to always fail with ENOSYS. Some functions are actually named
40429 something starting with __ and the normal name is an alias. */
40430#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
40431choke me
40432#else
40433char (*f) () = $ac_func;
40434#endif
40435#ifdef __cplusplus
40436}
40437#endif
40438
40439int
40440main ()
40441{
40442return f != $ac_func;
40443 ;
40444 return 0;
40445}
40446_ACEOF
40447rm -f conftest.$ac_objext conftest$ac_exeext
40448if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 40449 (eval $ac_link) 2>conftest.er1
a848cd7e 40450 ac_status=$?
ac1cb8d3
VS
40451 grep -v '^ *+' conftest.er1 >conftest.err
40452 rm -f conftest.er1
40453 cat conftest.err >&5
a848cd7e
SC
40454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40455 (exit $ac_status); } &&
9dd0f6c2 40456 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
40457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40458 (eval $ac_try) 2>&5
40459 ac_status=$?
40460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40461 (exit $ac_status); }; } &&
40462 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
40463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40464 (eval $ac_try) 2>&5
40465 ac_status=$?
40466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40467 (exit $ac_status); }; }; then
40468 eval "$as_ac_var=yes"
40469else
40470 echo "$as_me: failed program was:" >&5
40471sed 's/^/| /' conftest.$ac_ext >&5
40472
40473eval "$as_ac_var=no"
40474fi
ac1cb8d3
VS
40475rm -f conftest.err conftest.$ac_objext \
40476 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
40477fi
40478echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
40479echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
40480if test `eval echo '${'$as_ac_var'}'` = yes; then
40481 cat >>confdefs.h <<_ACEOF
40482#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
40483_ACEOF
40484 have_sin=1
40485fi
40486done
40487
40488
40489for ac_func in ceil
40490do
40491as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40492echo "$as_me:$LINENO: checking for $ac_func" >&5
40493echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
40494if eval "test \"\${$as_ac_var+set}\" = set"; then
40495 echo $ECHO_N "(cached) $ECHO_C" >&6
40496else
40497 cat >conftest.$ac_ext <<_ACEOF
40498/* confdefs.h. */
40499_ACEOF
40500cat confdefs.h >>conftest.$ac_ext
40501cat >>conftest.$ac_ext <<_ACEOF
40502/* end confdefs.h. */
ac1cb8d3
VS
40503/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40504 For example, HP-UX 11i <limits.h> declares gettimeofday. */
40505#define $ac_func innocuous_$ac_func
40506
a848cd7e
SC
40507/* System header to define __stub macros and hopefully few prototypes,
40508 which can conflict with char $ac_func (); below.
40509 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40510 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 40511
a848cd7e
SC
40512#ifdef __STDC__
40513# include <limits.h>
40514#else
40515# include <assert.h>
40516#endif
ac1cb8d3
VS
40517
40518#undef $ac_func
40519
a848cd7e
SC
40520/* Override any gcc2 internal prototype to avoid an error. */
40521#ifdef __cplusplus
40522extern "C"
40523{
40524#endif
40525/* We use char because int might match the return type of a gcc2
40526 builtin and then its argument prototype would still apply. */
40527char $ac_func ();
40528/* The GNU C library defines this for functions which it implements
40529 to always fail with ENOSYS. Some functions are actually named
40530 something starting with __ and the normal name is an alias. */
40531#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
40532choke me
40533#else
40534char (*f) () = $ac_func;
40535#endif
40536#ifdef __cplusplus
40537}
40538#endif
40539
40540int
40541main ()
40542{
40543return f != $ac_func;
40544 ;
40545 return 0;
40546}
40547_ACEOF
40548rm -f conftest.$ac_objext conftest$ac_exeext
40549if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 40550 (eval $ac_link) 2>conftest.er1
a848cd7e 40551 ac_status=$?
ac1cb8d3
VS
40552 grep -v '^ *+' conftest.er1 >conftest.err
40553 rm -f conftest.er1
40554 cat conftest.err >&5
a848cd7e
SC
40555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40556 (exit $ac_status); } &&
9dd0f6c2 40557 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
40558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40559 (eval $ac_try) 2>&5
40560 ac_status=$?
40561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40562 (exit $ac_status); }; } &&
40563 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
40564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40565 (eval $ac_try) 2>&5
40566 ac_status=$?
40567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40568 (exit $ac_status); }; }; then
40569 eval "$as_ac_var=yes"
40570else
40571 echo "$as_me: failed program was:" >&5
40572sed 's/^/| /' conftest.$ac_ext >&5
40573
40574eval "$as_ac_var=no"
40575fi
ac1cb8d3
VS
40576rm -f conftest.err conftest.$ac_objext \
40577 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
40578fi
40579echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
40580echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
40581if test `eval echo '${'$as_ac_var'}'` = yes; then
40582 cat >>confdefs.h <<_ACEOF
40583#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
40584_ACEOF
40585 have_ceil=1
40586fi
40587done
40588
40589 echo "$as_me:$LINENO: checking if floating point functions link with -lm" >&5
40590echo $ECHO_N "checking if floating point functions link with -lm... $ECHO_C" >&6
40591 if test "$have_sin" = 1 -a "$have_ceil" = 1; then
40592 echo "$as_me:$LINENO: result: yes" >&5
40593echo "${ECHO_T}yes" >&6
40594 else
40595 echo "$as_me:$LINENO: result: no" >&5
40596echo "${ECHO_T}no" >&6
40597 # not sure we should warn the user, crash, etc.
40598 fi
40599fi
40600
40601if test "$wxUSE_GUI" = "yes"; then
40602
40603
8bce5cda
MW
40604 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS artprov controls dialogs drawing \
40605 dynamic erase event exec font image minimal mobile \
40606 mobile/wxedit mobile/styles propsize render \
40607 richedit rotate shaped vscroll widgets"
a848cd7e
SC
40608
40609 if test "$wxUSE_MONOLITHIC" != "yes"; then
40610 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS console"
40611 fi
0b78747f 40612 if test "$TOOLKIT" = "MSW"; then
8bce5cda
MW
40613 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS regtest"
40614 if test "$wxUSE_UNIVERSAL" != "yes"; then
40615 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ownerdrw nativdlg"
40616 fi
40617 fi
40618 if test "$TOOLKIT" = "PM" -a "$wxUSE_UNIVERSAL" != "yes"; then
40619 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ownerdrw"
0b78747f 40620 fi
a848cd7e
SC
40621else
40622 SAMPLES_SUBDIRS="console"
40623fi
40624
40625
ceec2216 40626INCLUDES="-I\${top_builddir}lib/wx/include/${TOOLCHAIN_FULLNAME} \
a848cd7e
SC
40627-I\${top_srcdir}/include $TOOLKIT_INCLUDE"
40628
40629if test "$GXX" = yes ; then
5294a27e
VZ
40630 CWARNINGS="-Wall"
40631 CXXWARNINGS="$CWARNINGS -Wno-ctor-dtor-privacy"
a848cd7e
SC
40632 fi
40633
40634EXTRA_CFLAGS="$WXDEBUG $WXODBCFLAG $PROFILE $OPTIMISE"
40635
0c3c69fc 40636CPPFLAGS=`echo $WXDEBUG_DEFINE $INCLUDES $CPPFLAGS`
5294a27e 40637CFLAGS=`echo $CODE_GEN_FLAGS $EXTRA_CFLAGS $CFLAGS $CWARNINGS`
0c3c69fc 40638CXXFLAGS=`echo $CODE_GEN_FLAGS $CODE_GEN_FLAGS_CXX $EXTRA_CFLAGS $CXXFLAGS $CXXWARNINGS`
a848cd7e 40639
95986553
DE
40640if test "x$MWCC" = "xyes"; then
40641
40642 CC="$CC -cwd source -I-"
40643 CXX="$CXX -cwd source -I-"
40644fi
40645
a848cd7e 40646
0c3c69fc 40647LIBS=`echo $LIBS`
a848cd7e
SC
40648EXTRALIBS="$LDFLAGS $LDFLAGS_VERSIONING $LIBS $DMALLOC_LIBS"
40649EXTRALIBS_XML="$EXPAT_LINK"
40650EXTRALIBS_HTML="$MSPACK_LINK"
40651EXTRALIBS_ODBC="$ODBC_LINK"
40652if test "$wxUSE_GUI" = "yes"; then
2e350179 40653 EXTRALIBS_GUI=`echo $GUI_TK_LIBRARY $PNG_LINK $JPEG_LINK $TIFF_LINK $WEBKIT_LINK $EXTRALIBS_GNOMEPRINT`
a848cd7e
SC
40654fi
40655if test "$wxUSE_OPENGL" = "yes"; then
40656 EXTRALIBS_OPENGL="$LDFLAGS_GL $OPENGL_LIBS"
40657fi
40658
40659LDFLAGS="$LDFLAGS $PROFILE"
40660
40661if test "$wxUSE_GTK" = 1; then
40662 WXCONFIG_INCLUDE=
40663else
40664 WXCONFIG_INCLUDE="$TOOLKIT_INCLUDE"
40665fi
40666
40667WXCONFIG_EXTRALIBS="$LIBS"
40668
40669if test "$wxUSE_REGEX" = "builtin" ; then
74802184 40670 wxconfig_3rdparty="regex${lib_unicode_suffix} $wxconfig_3rdparty"
a848cd7e
SC
40671fi
40672if test "$wxUSE_EXPAT" = "builtin" ; then
74802184 40673 wxconfig_3rdparty="expat $wxconfig_3rdparty"
a848cd7e
SC
40674fi
40675if test "$wxUSE_ODBC" = "builtin" ; then
74802184 40676 wxconfig_3rdparty="odbc $wxconfig_3rdparty"
a848cd7e
SC
40677fi
40678if test "$wxUSE_LIBTIFF" = "builtin" ; then
74802184 40679 wxconfig_3rdparty="tiff $wxconfig_3rdparty"
a848cd7e
SC
40680fi
40681if test "$wxUSE_LIBJPEG" = "builtin" ; then
74802184 40682 wxconfig_3rdparty="jpeg $wxconfig_3rdparty"
a848cd7e
SC
40683fi
40684if test "$wxUSE_LIBPNG" = "builtin" ; then
74802184 40685 wxconfig_3rdparty="png $wxconfig_3rdparty"
a848cd7e
SC
40686fi
40687if test "$wxUSE_ZLIB" = "builtin" ; then
74802184 40688 wxconfig_3rdparty="zlib $wxconfig_3rdparty"
a848cd7e
SC
40689fi
40690
40691for i in $wxconfig_3rdparty ; do
74802184 40692 WXCONFIG_EXTRALIBS="-lwx${i}${lib_debug_suffix}${WX_LIB_FLAVOUR}-${WX_RELEASE}${HOST_SUFFIX} $WXCONFIG_EXTRALIBS"
a848cd7e
SC
40693done
40694
40695
40696if test "x$wxUSE_UNIVERSAL" = "xyes" ; then
40697 WXUNIV=1
40698else
40699 WXUNIV=0
40700fi
40701
40702
40703
40704
40705
40706
40707
40708
40709
40710if test $wxUSE_MONOLITHIC = "yes" ; then
40711 MONOLITHIC=1
40712else
40713 MONOLITHIC=0
40714fi
40715
40716if test $wxUSE_PLUGINS = "yes" ; then
40717 USE_PLUGINS=1
40718else
40719 USE_PLUGINS=0
40720fi
40721
40722if test $wxUSE_ODBC != "no" ; then
40723 USE_ODBC=1
40724else
40725 USE_ODBC=0
40726fi
40727
16358932
VZ
40728if test "$wxUSE_DEBUGREPORT" = "yes" ; then
40729 USE_QA=1
40730else
40731 USE_QA=0
40732fi
40733
a848cd7e
SC
40734if test $wxUSE_OFFICIAL_BUILD = "yes" ; then
40735 OFFICIAL_BUILD=1
40736else
40737 OFFICIAL_BUILD=0
40738fi
40739
40740
40741
40742
40743
40744
40745
40746
40747
40748
40749
40750
40751
40752
40753
40754
40755
40756
40757
ceec2216 40758
d1c38808 40759
a848cd7e
SC
40760
40761
40762TOOLKIT_LOWERCASE=`echo $TOOLKIT | tr "[A-Z]" "[a-z]"`
40763
40764
40765
40766
40767
40768
40769
40770
4d4ff94c
VZ
40771case "$TOOLKIT" in
40772 GTK)
40773 TOOLKIT_USER="GTK+"
40774 if test "$WXGTK20" = 1; then
40775 TOOLKIT_USER="$TOOLKIT_USER 2"
40776 fi
9a8f0513 40777 ;;
4d4ff94c
VZ
40778
40779 *)
40780 TOOLKIT_USER=$TOOLKIT_LOWERCASE
9a8f0513 40781 ;;
4d4ff94c 40782esac
a848cd7e 40783
9a8f0513 40784
1e9e8aba
DE
40785
40786
a848cd7e
SC
40787 if test "x$BAKEFILE_HOST" = "x"; then
40788 BAKEFILE_HOST="${host}"
40789 fi
40790
40791 if test "x$BAKEFILE_CHECK_BASICS" != "xno"; then
40792
40793 if test -n "$ac_tool_prefix"; then
40794 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
40795set dummy ${ac_tool_prefix}ranlib; ac_word=$2
40796echo "$as_me:$LINENO: checking for $ac_word" >&5
40797echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
40798if test "${ac_cv_prog_RANLIB+set}" = set; then
40799 echo $ECHO_N "(cached) $ECHO_C" >&6
40800else
40801 if test -n "$RANLIB"; then
40802 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
40803else
40804as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
40805for as_dir in $PATH
40806do
40807 IFS=$as_save_IFS
40808 test -z "$as_dir" && as_dir=.
40809 for ac_exec_ext in '' $ac_executable_extensions; do
40810 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
40811 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
40812 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
40813 break 2
40814 fi
40815done
40816done
40817
40818fi
40819fi
40820RANLIB=$ac_cv_prog_RANLIB
40821if test -n "$RANLIB"; then
40822 echo "$as_me:$LINENO: result: $RANLIB" >&5
40823echo "${ECHO_T}$RANLIB" >&6
40824else
40825 echo "$as_me:$LINENO: result: no" >&5
40826echo "${ECHO_T}no" >&6
40827fi
40828
40829fi
40830if test -z "$ac_cv_prog_RANLIB"; then
40831 ac_ct_RANLIB=$RANLIB
40832 # Extract the first word of "ranlib", so it can be a program name with args.
40833set dummy ranlib; ac_word=$2
40834echo "$as_me:$LINENO: checking for $ac_word" >&5
40835echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
40836if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
40837 echo $ECHO_N "(cached) $ECHO_C" >&6
40838else
40839 if test -n "$ac_ct_RANLIB"; then
40840 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
40841else
40842as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
40843for as_dir in $PATH
40844do
40845 IFS=$as_save_IFS
40846 test -z "$as_dir" && as_dir=.
40847 for ac_exec_ext in '' $ac_executable_extensions; do
40848 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
40849 ac_cv_prog_ac_ct_RANLIB="ranlib"
40850 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
40851 break 2
40852 fi
40853done
40854done
40855
40856 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
40857fi
40858fi
40859ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
40860if test -n "$ac_ct_RANLIB"; then
40861 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
40862echo "${ECHO_T}$ac_ct_RANLIB" >&6
40863else
40864 echo "$as_me:$LINENO: result: no" >&5
40865echo "${ECHO_T}no" >&6
40866fi
40867
40868 RANLIB=$ac_ct_RANLIB
40869else
40870 RANLIB="$ac_cv_prog_RANLIB"
40871fi
40872
40873 # Find a good install program. We prefer a C program (faster),
40874# so one script is as good as another. But avoid the broken or
40875# incompatible versions:
40876# SysV /etc/install, /usr/sbin/install
40877# SunOS /usr/etc/install
40878# IRIX /sbin/install
40879# AIX /bin/install
40880# AmigaOS /C/install, which installs bootblocks on floppy discs
40881# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
40882# AFS /usr/afsws/bin/install, which mishandles nonexistent args
40883# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
ac1cb8d3 40884# OS/2's system install, which has a completely different semantic
a848cd7e
SC
40885# ./install, which can be erroneously created by make from ./install.sh.
40886echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
40887echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
40888if test -z "$INSTALL"; then
40889if test "${ac_cv_path_install+set}" = set; then
40890 echo $ECHO_N "(cached) $ECHO_C" >&6
40891else
40892 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
40893for as_dir in $PATH
40894do
40895 IFS=$as_save_IFS
40896 test -z "$as_dir" && as_dir=.
40897 # Account for people who put trailing slashes in PATH elements.
40898case $as_dir/ in
40899 ./ | .// | /cC/* | \
40900 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
ac1cb8d3 40901 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
a848cd7e
SC
40902 /usr/ucb/* ) ;;
40903 *)
40904 # OSF1 and SCO ODT 3.0 have their own names for install.
40905 # Don't use installbsd from OSF since it installs stuff as root
40906 # by default.
40907 for ac_prog in ginstall scoinst install; do
40908 for ac_exec_ext in '' $ac_executable_extensions; do
ac1cb8d3
VS
40909 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
40910 if test $ac_prog = install &&
40911 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
40912 # AIX install. It has an incompatible calling convention.
40913 :
40914 elif test $ac_prog = install &&
40915 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
40916 # program-specific install script used by HP pwplus--don't use.
40917 :
40918 else
40919 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
40920 break 3
40921 fi
40922 fi
a848cd7e
SC
40923 done
40924 done
40925 ;;
40926esac
40927done
40928
40929
40930fi
40931 if test "${ac_cv_path_install+set}" = set; then
40932 INSTALL=$ac_cv_path_install
40933 else
40934 # As a last resort, use the slow shell script. We don't cache a
40935 # path for INSTALL within a source directory, because that will
40936 # break other packages using the cache if that directory is
40937 # removed, or if the path is relative.
40938 INSTALL=$ac_install_sh
40939 fi
40940fi
40941echo "$as_me:$LINENO: result: $INSTALL" >&5
40942echo "${ECHO_T}$INSTALL" >&6
40943
40944# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
40945# It thinks the first close brace ends the variable substitution.
40946test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
40947
40948test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
40949
40950test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
40951
40952 echo "$as_me:$LINENO: checking whether ln -s works" >&5
40953echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
40954LN_S=$as_ln_s
40955if test "$LN_S" = "ln -s"; then
40956 echo "$as_me:$LINENO: result: yes" >&5
40957echo "${ECHO_T}yes" >&6
40958else
40959 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
40960echo "${ECHO_T}no, using $LN_S" >&6
40961fi
40962
40963
40964 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
40965echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
ac1cb8d3 40966set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
a848cd7e
SC
40967if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
40968 echo $ECHO_N "(cached) $ECHO_C" >&6
40969else
40970 cat >conftest.make <<\_ACEOF
40971all:
40972 @echo 'ac_maketemp="$(MAKE)"'
40973_ACEOF
40974# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
40975eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
40976if test -n "$ac_maketemp"; then
40977 eval ac_cv_prog_make_${ac_make}_set=yes
40978else
40979 eval ac_cv_prog_make_${ac_make}_set=no
40980fi
40981rm -f conftest.make
40982fi
40983if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
40984 echo "$as_me:$LINENO: result: yes" >&5
40985echo "${ECHO_T}yes" >&6
40986 SET_MAKE=
40987else
40988 echo "$as_me:$LINENO: result: no" >&5
40989echo "${ECHO_T}no" >&6
40990 SET_MAKE="MAKE=${MAKE-make}"
40991fi
40992
40993
40994
40995 if test -n "$ac_tool_prefix"; then
40996 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
40997set dummy ${ac_tool_prefix}ar; ac_word=$2
40998echo "$as_me:$LINENO: checking for $ac_word" >&5
40999echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
41000if test "${ac_cv_prog_AR+set}" = set; then
41001 echo $ECHO_N "(cached) $ECHO_C" >&6
41002else
41003 if test -n "$AR"; then
41004 ac_cv_prog_AR="$AR" # Let the user override the test.
41005else
41006as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
41007for as_dir in $PATH
41008do
41009 IFS=$as_save_IFS
41010 test -z "$as_dir" && as_dir=.
41011 for ac_exec_ext in '' $ac_executable_extensions; do
41012 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
41013 ac_cv_prog_AR="${ac_tool_prefix}ar"
41014 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
41015 break 2
41016 fi
41017done
41018done
41019
41020fi
41021fi
41022AR=$ac_cv_prog_AR
41023if test -n "$AR"; then
41024 echo "$as_me:$LINENO: result: $AR" >&5
41025echo "${ECHO_T}$AR" >&6
41026else
41027 echo "$as_me:$LINENO: result: no" >&5
41028echo "${ECHO_T}no" >&6
41029fi
41030
41031fi
41032if test -z "$ac_cv_prog_AR"; then
41033 ac_ct_AR=$AR
41034 # Extract the first word of "ar", so it can be a program name with args.
41035set dummy ar; ac_word=$2
41036echo "$as_me:$LINENO: checking for $ac_word" >&5
41037echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
41038if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
41039 echo $ECHO_N "(cached) $ECHO_C" >&6
41040else
41041 if test -n "$ac_ct_AR"; then
41042 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
41043else
41044as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
41045for as_dir in $PATH
41046do
41047 IFS=$as_save_IFS
41048 test -z "$as_dir" && as_dir=.
41049 for ac_exec_ext in '' $ac_executable_extensions; do
41050 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
41051 ac_cv_prog_ac_ct_AR="ar"
41052 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
41053 break 2
41054 fi
41055done
41056done
41057
41058 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
41059fi
41060fi
41061ac_ct_AR=$ac_cv_prog_ac_ct_AR
41062if test -n "$ac_ct_AR"; then
41063 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
41064echo "${ECHO_T}$ac_ct_AR" >&6
41065else
41066 echo "$as_me:$LINENO: result: no" >&5
41067echo "${ECHO_T}no" >&6
41068fi
41069
41070 AR=$ac_ct_AR
41071else
41072 AR="$ac_cv_prog_AR"
41073fi
41074
41075 if test -n "$ac_tool_prefix"; then
41076 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
41077set dummy ${ac_tool_prefix}strip; ac_word=$2
41078echo "$as_me:$LINENO: checking for $ac_word" >&5
41079echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
41080if test "${ac_cv_prog_STRIP+set}" = set; then
41081 echo $ECHO_N "(cached) $ECHO_C" >&6
41082else
41083 if test -n "$STRIP"; then
41084 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
41085else
41086as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
41087for as_dir in $PATH
41088do
41089 IFS=$as_save_IFS
41090 test -z "$as_dir" && as_dir=.
41091 for ac_exec_ext in '' $ac_executable_extensions; do
41092 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
41093 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
41094 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
41095 break 2
41096 fi
41097done
41098done
41099
41100fi
41101fi
41102STRIP=$ac_cv_prog_STRIP
41103if test -n "$STRIP"; then
41104 echo "$as_me:$LINENO: result: $STRIP" >&5
41105echo "${ECHO_T}$STRIP" >&6
41106else
41107 echo "$as_me:$LINENO: result: no" >&5
41108echo "${ECHO_T}no" >&6
41109fi
41110
41111fi
41112if test -z "$ac_cv_prog_STRIP"; then
41113 ac_ct_STRIP=$STRIP
41114 # Extract the first word of "strip", so it can be a program name with args.
41115set dummy strip; ac_word=$2
41116echo "$as_me:$LINENO: checking for $ac_word" >&5
41117echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
41118if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
41119 echo $ECHO_N "(cached) $ECHO_C" >&6
41120else
41121 if test -n "$ac_ct_STRIP"; then
41122 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
41123else
41124as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
41125for as_dir in $PATH
41126do
41127 IFS=$as_save_IFS
41128 test -z "$as_dir" && as_dir=.
41129 for ac_exec_ext in '' $ac_executable_extensions; do
41130 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
41131 ac_cv_prog_ac_ct_STRIP="strip"
41132 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
41133 break 2
41134 fi
41135done
41136done
41137
41138 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
41139fi
41140fi
41141ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
41142if test -n "$ac_ct_STRIP"; then
41143 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
41144echo "${ECHO_T}$ac_ct_STRIP" >&6
41145else
41146 echo "$as_me:$LINENO: result: no" >&5
41147echo "${ECHO_T}no" >&6
41148fi
41149
41150 STRIP=$ac_ct_STRIP
41151else
41152 STRIP="$ac_cv_prog_STRIP"
41153fi
41154
41155 if test -n "$ac_tool_prefix"; then
41156 # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
41157set dummy ${ac_tool_prefix}nm; ac_word=$2
41158echo "$as_me:$LINENO: checking for $ac_word" >&5
41159echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
41160if test "${ac_cv_prog_NM+set}" = set; then
41161 echo $ECHO_N "(cached) $ECHO_C" >&6
41162else
41163 if test -n "$NM"; then
41164 ac_cv_prog_NM="$NM" # Let the user override the test.
41165else
41166as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
41167for as_dir in $PATH
41168do
41169 IFS=$as_save_IFS
41170 test -z "$as_dir" && as_dir=.
41171 for ac_exec_ext in '' $ac_executable_extensions; do
41172 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
41173 ac_cv_prog_NM="${ac_tool_prefix}nm"
41174 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
41175 break 2
41176 fi
41177done
41178done
41179
41180fi
41181fi
41182NM=$ac_cv_prog_NM
41183if test -n "$NM"; then
41184 echo "$as_me:$LINENO: result: $NM" >&5
41185echo "${ECHO_T}$NM" >&6
41186else
41187 echo "$as_me:$LINENO: result: no" >&5
41188echo "${ECHO_T}no" >&6
41189fi
41190
41191fi
41192if test -z "$ac_cv_prog_NM"; then
41193 ac_ct_NM=$NM
41194 # Extract the first word of "nm", so it can be a program name with args.
41195set dummy nm; ac_word=$2
41196echo "$as_me:$LINENO: checking for $ac_word" >&5
41197echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
41198if test "${ac_cv_prog_ac_ct_NM+set}" = set; then
41199 echo $ECHO_N "(cached) $ECHO_C" >&6
41200else
41201 if test -n "$ac_ct_NM"; then
41202 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
41203else
41204as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
41205for as_dir in $PATH
41206do
41207 IFS=$as_save_IFS
41208 test -z "$as_dir" && as_dir=.
41209 for ac_exec_ext in '' $ac_executable_extensions; do
41210 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
41211 ac_cv_prog_ac_ct_NM="nm"
41212 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
41213 break 2
41214 fi
41215done
41216done
41217
41218 test -z "$ac_cv_prog_ac_ct_NM" && ac_cv_prog_ac_ct_NM=":"
41219fi
41220fi
41221ac_ct_NM=$ac_cv_prog_ac_ct_NM
41222if test -n "$ac_ct_NM"; then
41223 echo "$as_me:$LINENO: result: $ac_ct_NM" >&5
41224echo "${ECHO_T}$ac_ct_NM" >&6
41225else
41226 echo "$as_me:$LINENO: result: no" >&5
41227echo "${ECHO_T}no" >&6
41228fi
41229
41230 NM=$ac_ct_NM
41231else
41232 NM="$ac_cv_prog_NM"
41233fi
41234
41235
41236 case ${BAKEFILE_HOST} in
41237 *-hp-hpux* )
1e9e8aba 41238 INSTALL_DIR="mkdir -p"
a848cd7e
SC
41239 ;;
41240 *) INSTALL_DIR="$INSTALL -d"
41241 ;;
41242 esac
41243
41244
41245 LDFLAGS_GUI=
41246 case ${BAKEFILE_HOST} in
41247 *-*-cygwin* | *-*-mingw32* )
41248 LDFLAGS_GUI="-mwindows"
41249 esac
41250
41251
41252 fi
41253
41254 echo "$as_me:$LINENO: checking if make is GNU make" >&5
41255echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6
41256if test "${bakefile_cv_prog_makeisgnu+set}" = set; then
41257 echo $ECHO_N "(cached) $ECHO_C" >&6
41258else
41259
41260 if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
41261 egrep -s GNU > /dev/null); then
41262 bakefile_cv_prog_makeisgnu="yes"
41263 else
41264 bakefile_cv_prog_makeisgnu="no"
41265 fi
41266
41267fi
41268echo "$as_me:$LINENO: result: $bakefile_cv_prog_makeisgnu" >&5
41269echo "${ECHO_T}$bakefile_cv_prog_makeisgnu" >&6
41270
41271 if test "x$bakefile_cv_prog_makeisgnu" = "xyes"; then
41272 IF_GNU_MAKE=""
41273 else
41274 IF_GNU_MAKE="#"
41275 fi
41276
41277
41278
41279 PLATFORM_UNIX=0
41280 PLATFORM_WIN32=0
41281 PLATFORM_MSDOS=0
41282 PLATFORM_MAC=0
1e9e8aba 41283 PLATFORM_MACOS=0
a848cd7e
SC
41284 PLATFORM_MACOSX=0
41285 PLATFORM_OS2=0
1e9e8aba 41286 PLATFORM_BEOS=0
a848cd7e
SC
41287
41288 if test "x$BAKEFILE_FORCE_PLATFORM" = "x"; then
41289 case "${BAKEFILE_HOST}" in
41290 *-*-cygwin* | *-*-mingw32* )
41291 PLATFORM_WIN32=1
41292 ;;
41293 *-pc-msdosdjgpp )
41294 PLATFORM_MSDOS=1
41295 ;;
41296 *-pc-os2_emx | *-pc-os2-emx )
41297 PLATFORM_OS2=1
41298 ;;
41299 powerpc-*-darwin* )
41300 PLATFORM_MAC=1
41301 PLATFORM_MACOSX=1
41302 ;;
1e9e8aba
DE
41303 *-*-beos* )
41304 PLATFORM_BEOS=1
41305 ;;
41306 powerpc-apple-macos* )
41307 PLATFORM_MAC=1
41308 PLATFORM_MACOS=1
41309 ;;
a848cd7e
SC
41310 * )
41311 PLATFORM_UNIX=1
41312 ;;
41313 esac
41314 else
41315 case "$BAKEFILE_FORCE_PLATFORM" in
41316 win32 )
41317 PLATFORM_WIN32=1
41318 ;;
41319 msdos )
41320 PLATFORM_MSDOS=1
41321 ;;
41322 os2 )
41323 PLATFORM_OS2=1
41324 ;;
41325 darwin )
41326 PLATFORM_MAC=1
41327 PLATFORM_MACOSX=1
41328 ;;
41329 unix )
41330 PLATFORM_UNIX=1
41331 ;;
1e9e8aba
DE
41332 beos )
41333 PLATFORM_BEOS=1
41334 ;;
a848cd7e
SC
41335 * )
41336 { { echo "$as_me:$LINENO: error: Unknown platform: $BAKEFILE_FORCE_PLATFORM" >&5
41337echo "$as_me: error: Unknown platform: $BAKEFILE_FORCE_PLATFORM" >&2;}
41338 { (exit 1); exit 1; }; }
41339 ;;
41340 esac
41341 fi
41342
41343
41344
41345
41346
41347
41348
41349
41350
1e9e8aba
DE
41351
41352
a848cd7e
SC
41353 # Check whether --enable-omf or --disable-omf was given.
41354if test "${enable_omf+set}" = set; then
41355 enableval="$enable_omf"
41356 bk_os2_use_omf="$enableval"
41357fi;
41358
41359 case "${BAKEFILE_HOST}" in
41360 *-*-darwin* )
41361 CFLAGS="$CFLAGS -fno-common"
41362 CXXFLAGS="$CXXFLAGS -fno-common"
41363 ;;
41364
41365 *-pc-os2_emx | *-pc-os2-emx )
41366 if test "x$bk_os2_use_omf" = "xyes" ; then
41367 AR=emxomfar
41368 RANLIB=:
41369 LDFLAGS="-Zomf $LDFLAGS"
41370 CFLAGS="-Zomf $CFLAGS"
41371 CXXFLAGS="-Zomf $CXXFLAGS"
41372 OS2_LIBEXT="lib"
41373 else
41374 OS2_LIBEXT="a"
41375 fi
41376 ;;
1e9e8aba
DE
41377
41378 i*86-*-beos* )
41379 LDFLAGS="-L/boot/develop/lib/x86 $LDFLAGS"
41380 ;;
a848cd7e
SC
41381 esac
41382
41383
41384 SO_SUFFIX="so"
41385 SO_SUFFIX_MODULE="so"
41386 EXEEXT=""
41387 LIBPREFIX="lib"
41388 LIBEXT=".a"
41389 DLLPREFIX="lib"
41390 DLLPREFIX_MODULE=""
41391 DLLIMP_SUFFIX=""
41392
41393 case "${BAKEFILE_HOST}" in
41394 *-hp-hpux* )
41395 SO_SUFFIX="sl"
41396 SO_SUFFIX_MODULE="sl"
41397 ;;
41398 *-*-aix* )
41399 SO_SUFFIX="a"
41400 SO_SUFFIX_MODULE="a"
41401 ;;
41402 *-*-cygwin* | *-*-mingw32* )
41403 SO_SUFFIX="dll"
41404 SO_SUFFIX_MODULE="dll"
41405 DLLIMP_SUFFIX="dll.a"
41406 EXEEXT=".exe"
41407 DLLPREFIX=""
41408 ;;
41409 *-pc-msdosdjgpp )
41410 EXEEXT=".exe"
41411 DLLPREFIX=""
41412 ;;
41413 *-pc-os2_emx | *-pc-os2-emx )
41414 SO_SUFFIX="dll"
41415 SO_SUFFIX_MODULE="dll"
41416 DLLIMP_SUFFIX=$OS2_LIBEXT
41417 EXEEXT=".exe"
41418 DLLPREFIX=""
41419 LIBPREFIX=""
41420 LIBEXT=".$OS2_LIBEXT"
41421 ;;
41422 powerpc-*-darwin* )
41423 SO_SUFFIX="dylib"
41424 SO_SUFFIX_MODULE="bundle"
41425 ;;
41426 esac
41427
41428 if test "x$DLLIMP_SUFFIX" = "x" ; then
41429 DLLIMP_SUFFIX="$SO_SUFFIX"
41430 fi
41431
41432
41433
41434
41435
41436
41437
41438
41439
41440
41441
1e9e8aba
DE
41442 PIC_FLAG=""
41443 if test "x$GCC" = "xyes"; then
a848cd7e
SC
41444 PIC_FLAG="-fPIC"
41445 fi
41446
1e9e8aba
DE
41447 SHARED_LD_CC="\$(CC) -shared ${PIC_FLAG} -o"
41448 SHARED_LD_CXX="\$(CXX) -shared ${PIC_FLAG} -o"
41449
a848cd7e
SC
41450 case "${BAKEFILE_HOST}" in
41451 *-hp-hpux* )
1e9e8aba 41452 if test "x$GCC" != "xyes"; then
a848cd7e
SC
41453 LDFLAGS="$LDFLAGS -L/usr/lib"
41454
41455 SHARED_LD_CC="${CC} -b -o"
41456 SHARED_LD_CXX="${CXX} -b -o"
41457 PIC_FLAG="+Z"
41458 fi
41459 ;;
41460
41461 *-*-linux* )
41462 if test "x$GCC" != "xyes"; then
41463 echo "$as_me:$LINENO: checking for Intel compiler" >&5
41464echo $ECHO_N "checking for Intel compiler... $ECHO_C" >&6
41465if test "${bakefile_cv_prog_icc+set}" = set; then
41466 echo $ECHO_N "(cached) $ECHO_C" >&6
41467else
41468
41469 cat >conftest.$ac_ext <<_ACEOF
41470/* confdefs.h. */
41471_ACEOF
41472cat confdefs.h >>conftest.$ac_ext
41473cat >>conftest.$ac_ext <<_ACEOF
41474/* end confdefs.h. */
41475
41476int
41477main ()
41478{
41479
41480 #ifndef __INTEL_COMPILER
41481 #error Not icc
41482 #endif
41483
41484 ;
41485 return 0;
41486}
41487_ACEOF
41488rm -f conftest.$ac_objext
41489if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 41490 (eval $ac_compile) 2>conftest.er1
a848cd7e 41491 ac_status=$?
ac1cb8d3
VS
41492 grep -v '^ *+' conftest.er1 >conftest.err
41493 rm -f conftest.er1
41494 cat conftest.err >&5
a848cd7e
SC
41495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41496 (exit $ac_status); } &&
9dd0f6c2 41497 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
41498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41499 (eval $ac_try) 2>&5
41500 ac_status=$?
41501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41502 (exit $ac_status); }; } &&
41503 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
41504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41505 (eval $ac_try) 2>&5
41506 ac_status=$?
41507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41508 (exit $ac_status); }; }; then
41509 bakefile_cv_prog_icc=yes
41510else
41511 echo "$as_me: failed program was:" >&5
41512sed 's/^/| /' conftest.$ac_ext >&5
41513
41514bakefile_cv_prog_icc=no
41515
41516fi
ac1cb8d3 41517rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
41518
41519fi
41520echo "$as_me:$LINENO: result: $bakefile_cv_prog_icc" >&5
41521echo "${ECHO_T}$bakefile_cv_prog_icc" >&6
41522 if test "$bakefile_cv_prog_icc" = "yes"; then
41523 PIC_FLAG="-KPIC"
41524 fi
41525 fi
41526 ;;
41527
41528 *-*-solaris2* )
41529 if test "x$GCC" != xyes ; then
41530 SHARED_LD_CC="${CC} -G -o"
41531 SHARED_LD_CXX="${CXX} -G -o"
41532 PIC_FLAG="-KPIC"
41533 fi
41534 ;;
41535
41536 *-*-darwin* )
41537
41538 echo "$as_me:$LINENO: checking for gcc 3.1 or later" >&5
41539echo $ECHO_N "checking for gcc 3.1 or later... $ECHO_C" >&6
41540if test "${wx_cv_gcc31+set}" = set; then
41541 echo $ECHO_N "(cached) $ECHO_C" >&6
41542else
41543
41544 cat >conftest.$ac_ext <<_ACEOF
41545/* confdefs.h. */
41546_ACEOF
41547cat confdefs.h >>conftest.$ac_ext
41548cat >>conftest.$ac_ext <<_ACEOF
41549/* end confdefs.h. */
41550
41551int
41552main ()
41553{
41554
41555 #if (__GNUC__ < 3) || \
41556 ((__GNUC__ == 3) && (__GNUC_MINOR__ < 1))
41557 #error old gcc
41558 #endif
41559
41560 ;
41561 return 0;
41562}
41563_ACEOF
41564rm -f conftest.$ac_objext
41565if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 41566 (eval $ac_compile) 2>conftest.er1
a848cd7e 41567 ac_status=$?
ac1cb8d3
VS
41568 grep -v '^ *+' conftest.er1 >conftest.err
41569 rm -f conftest.er1
41570 cat conftest.err >&5
a848cd7e
SC
41571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41572 (exit $ac_status); } &&
9dd0f6c2 41573 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
41574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41575 (eval $ac_try) 2>&5
41576 ac_status=$?
41577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41578 (exit $ac_status); }; } &&
41579 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
41580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41581 (eval $ac_try) 2>&5
41582 ac_status=$?
41583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41584 (exit $ac_status); }; }; then
41585
41586 wx_cv_gcc31=yes
41587
41588else
41589 echo "$as_me: failed program was:" >&5
41590sed 's/^/| /' conftest.$ac_ext >&5
41591
41592
41593 wx_cv_gcc31=no
41594
41595
41596fi
ac1cb8d3 41597rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
41598
41599fi
41600echo "$as_me:$LINENO: result: $wx_cv_gcc31" >&5
41601echo "${ECHO_T}$wx_cv_gcc31" >&6
41602 if test "$wx_cv_gcc31" = "no"; then
473276a9
VS
41603
41604D='$'
41605cat <<EOF >shared-ld-sh
a848cd7e
SC
41606#!/bin/sh
41607#-----------------------------------------------------------------------------
41608#-- Name: distrib/mac/shared-ld-sh
41609#-- Purpose: Link a mach-o dynamic shared library for Darwin / Mac OS X
41610#-- Author: Gilles Depeyrot
41611#-- Copyright: (c) 2002 Gilles Depeyrot
41612#-- Licence: any use permitted
41613#-----------------------------------------------------------------------------
41614
41615verbose=0
41616args=""
41617objects=""
41618linking_flag="-dynamiclib"
41619
473276a9
VS
41620while test ${D}# -gt 0; do
41621 case ${D}1 in
a848cd7e
SC
41622
41623 -v)
41624 verbose=1
41625 ;;
41626
41627 -o|-compatibility_version|-current_version|-framework|-undefined|-install_name)
41628 # collect these options and values
473276a9 41629 args="${D}{args} ${D}1 ${D}2"
a848cd7e
SC
41630 shift
41631 ;;
41632
41633 -l*|-L*|-flat_namespace|-headerpad_max_install_names)
41634 # collect these options
473276a9 41635 args="${D}{args} ${D}1"
a848cd7e
SC
41636 ;;
41637
41638 -dynamiclib|-bundle)
473276a9 41639 linking_flag="${D}1"
a848cd7e
SC
41640 ;;
41641
41642 -*)
473276a9 41643 echo "shared-ld: unhandled option '${D}1'"
a848cd7e
SC
41644 exit 1
41645 ;;
41646
41647 *.o | *.a | *.dylib)
41648 # collect object files
473276a9 41649 objects="${D}{objects} ${D}1"
a848cd7e
SC
41650 ;;
41651
41652 *)
473276a9 41653 echo "shared-ld: unhandled argument '${D}1'"
a848cd7e
SC
41654 exit 1
41655 ;;
41656
41657 esac
41658 shift
41659done
41660
41661#
41662# Link one module containing all the others
41663#
473276a9
VS
41664if test ${D}{verbose} = 1; then
41665 echo "c++ -r -keep_private_externs -nostdlib ${D}{objects} -o master.${D}${D}.o"
a848cd7e 41666fi
473276a9
VS
41667c++ -r -keep_private_externs -nostdlib ${D}{objects} -o master.${D}${D}.o
41668status=${D}?
41669if test ${D}{status} != 0; then
41670 exit ${D}{status}
a848cd7e
SC
41671fi
41672
41673#
41674# Link the shared library from the single module created
41675#
473276a9
VS
41676if test ${D}{verbose} = 1; then
41677 echo "cc ${D}{linking_flag} master.${D}${D}.o ${D}{args}"
a848cd7e 41678fi
473276a9
VS
41679c++ ${D}{linking_flag} master.${D}${D}.o ${D}{args}
41680status=${D}?
41681if test ${D}{status} != 0; then
41682 exit ${D}{status}
a848cd7e
SC
41683fi
41684
41685#
41686# Remove intermediate module
41687#
473276a9 41688rm -f master.${D}${D}.o
a848cd7e
SC
41689
41690exit 0
41691EOF
473276a9 41692
a848cd7e
SC
41693 chmod +x shared-ld-sh
41694
41695 SHARED_LD_CC="`pwd`/shared-ld-sh -dynamiclib -headerpad_max_install_names -o"
41696 SHARED_LD_MODULE_CC="`pwd`/shared-ld-sh -bundle -headerpad_max_install_names -o"
41697 SHARED_LD_CXX="$SHARED_LD_CC"
41698 SHARED_LD_MODULE_CXX="$SHARED_LD_MODULE_CC"
41699 else
41700 SHARED_LD_CC="\${CC} -dynamiclib -single_module -headerpad_max_install_names -o"
41701 SHARED_LD_MODULE_CC="\${CC} -bundle -single_module -headerpad_max_install_names -o"
41702 SHARED_LD_CXX="\${CXX} -dynamiclib -single_module -headerpad_max_install_names -o"
41703 SHARED_LD_MODULE_CXX="\${CXX} -bundle -single_module -headerpad_max_install_names -o"
41704 fi
41705
41706 PIC_FLAG="-dynamic -fPIC"
41707 ;;
41708
41709 *-*-aix* )
41710 if test "x$GCC" != "xyes"; then
41711 # Extract the first word of "makeC++SharedLib", so it can be a program name with args.
41712set dummy makeC++SharedLib; ac_word=$2
41713echo "$as_me:$LINENO: checking for $ac_word" >&5
41714echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
41715if test "${ac_cv_prog_AIX_CXX_LD+set}" = set; then
41716 echo $ECHO_N "(cached) $ECHO_C" >&6
41717else
41718 if test -n "$AIX_CXX_LD"; then
41719 ac_cv_prog_AIX_CXX_LD="$AIX_CXX_LD" # Let the user override the test.
41720else
41721as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
41722for as_dir in $PATH
41723do
41724 IFS=$as_save_IFS
41725 test -z "$as_dir" && as_dir=.
41726 for ac_exec_ext in '' $ac_executable_extensions; do
41727 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
41728 ac_cv_prog_AIX_CXX_LD="makeC++SharedLib"
41729 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
41730 break 2
41731 fi
41732done
41733done
41734
41735 test -z "$ac_cv_prog_AIX_CXX_LD" && ac_cv_prog_AIX_CXX_LD="/usr/lpp/xlC/bin/makeC++SharedLib"
41736fi
41737fi
41738AIX_CXX_LD=$ac_cv_prog_AIX_CXX_LD
41739if test -n "$AIX_CXX_LD"; then
41740 echo "$as_me:$LINENO: result: $AIX_CXX_LD" >&5
41741echo "${ECHO_T}$AIX_CXX_LD" >&6
41742else
41743 echo "$as_me:$LINENO: result: no" >&5
41744echo "${ECHO_T}no" >&6
41745fi
41746
41747 SHARED_LD_CC="$AIX_CC_LD -p 0 -o"
41748 SHARED_LD_CXX="$AIX_CXX_LD -p 0 -o"
41749 fi
41750 ;;
41751
41752 *-*-beos* )
1e9e8aba
DE
41753 SHARED_LD_CC="${LD} -nostart -o"
41754 SHARED_LD_CXX="${LD} -nostart -o"
a848cd7e
SC
41755 ;;
41756
41757 *-*-irix* )
41758 if test "x$GCC" != "xyes"; then
41759 PIC_FLAG="-KPIC"
41760 fi
41761 ;;
41762
41763 *-*-cygwin* | *-*-mingw32* )
41764 PIC_FLAG=""
1e9e8aba
DE
41765 SHARED_LD_CC="\$(CC) -shared -o"
41766 SHARED_LD_CXX="\$(CXX) -shared -o"
a848cd7e
SC
41767 ;;
41768
41769 *-pc-os2_emx | *-pc-os2-emx )
b1d22ded
DE
41770 SHARED_LD_CC="`pwd`/dllar.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
41771 SHARED_LD_CXX="`pwd`/dllar.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
a848cd7e 41772 PIC_FLAG=""
473276a9
VS
41773
41774D='$'
41775cat <<EOF >dllar.sh
41776#!/bin/sh
41777#
41778# dllar - a tool to build both a .dll and an .a file
41779# from a set of object (.o) files for EMX/OS2.
41780#
41781# Written by Andrew Zabolotny, bit@freya.etu.ru
41782# Ported to Unix like shell by Stefan Neis, Stefan.Neis@t-online.de
41783#
41784# This script will accept a set of files on the command line.
41785# All the public symbols from the .o files will be exported into
41786# a .DEF file, then linker will be run (through gcc) against them to
41787# build a shared library consisting of all given .o files. All libraries
41788# (.a) will be first decompressed into component .o files then act as
41789# described above. You can optionally give a description (-d "description")
41790# which will be put into .DLL. To see the list of accepted options (as well
41791# as command-line format) simply run this program without options. The .DLL
41792# is built to be imported by name (there is no guarantee that new versions
41793# of the library you build will have same ordinals for same symbols).
41794#
41795# dllar is free software; you can redistribute it and/or modify
41796# it under the terms of the GNU General Public License as published by
41797# the Free Software Foundation; either version 2, or (at your option)
41798# any later version.
41799#
41800# dllar is distributed in the hope that it will be useful,
41801# but WITHOUT ANY WARRANTY; without even the implied warranty of
41802# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
41803# GNU General Public License for more details.
41804#
41805# You should have received a copy of the GNU General Public License
41806# along with dllar; see the file COPYING. If not, write to the Free
41807# Software Foundation, 59 Temple Place - Suite 330, Boston, MA
41808# 02111-1307, USA.
41809
41810# To successfuly run this program you will need:
41811# - Current drive should have LFN support (HPFS, ext2, network, etc)
41812# (Sometimes dllar generates filenames which won't fit 8.3 scheme)
41813# - gcc
41814# (used to build the .dll)
41815# - emxexp
41816# (used to create .def file from .o files)
41817# - emximp
41818# (used to create .a file from .def file)
41819# - GNU text utilites (cat, sort, uniq)
41820# used to process emxexp output
41821# - GNU file utilities (mv, rm)
41822# - GNU sed
41823# - lxlite (optional, see flag below)
41824# (used for general .dll cleanup)
41825#
41826
41827flag_USE_LXLITE=1;
41828
41829#
41830# helper functions
41831# basnam, variant of basename, which does _not_ remove the path, _iff_
41832# second argument (suffix to remove) is given
41833basnam(){
41834 case ${D}# in
41835 1)
1e9e8aba 41836 echo ${D}1 | sed 's/.*\\///' | sed 's/.*\\\\//'
473276a9
VS
41837 ;;
41838 2)
41839 echo ${D}1 | sed 's/'${D}2'${D}//'
41840 ;;
41841 *)
41842 echo "error in basnam ${D}*"
41843 exit 8
41844 ;;
41845 esac
41846}
41847
41848# Cleanup temporary files and output
41849CleanUp() {
41850 cd ${D}curDir
41851 for i in ${D}inputFiles ; do
41852 case ${D}i in
41853 *!)
41854 rm -rf \`basnam ${D}i !\`
41855 ;;
41856 *)
41857 ;;
41858 esac
41859 done
41860
41861 # Kill result in case of failure as there is just to many stupid make/nmake
41862 # things out there which doesn't do this.
1e9e8aba 41863 if [ ${D}# -eq 0 ]; then
473276a9
VS
41864 rm -f ${D}arcFile ${D}arcFile2 ${D}defFile ${D}dllFile
41865 fi
41866}
41867
41868# Print usage and exit script with rc=1.
41869PrintHelp() {
b1d22ded
DE
41870 echo 'Usage: dllar.sh [-o[utput] output_file] [-i[mport] importlib_name]'
41871 echo ' [-name-mangler-script script.sh]'
41872 echo ' [-d[escription] "dll descrption"] [-cc "CC"] [-f[lags] "CFLAGS"]'
41873 echo ' [-ord[inals]] -ex[clude] "symbol(s)"'
41874 echo ' [-libf[lags] "{INIT|TERM}{GLOBAL|INSTANCE}"] [-nocrt[dll]] [-nolxl[ite]]'
1e9e8aba 41875 echo ' [*.o] [*.a]'
473276a9
VS
41876 echo '*> "output_file" should have no extension.'
41877 echo ' If it has the .o, .a or .dll extension, it is automatically removed.'
41878 echo ' The import library name is derived from this and is set to "name".a,'
41879 echo ' unless overridden by -import'
41880 echo '*> "importlib_name" should have no extension.'
41881 echo ' If it has the .o, or .a extension, it is automatically removed.'
41882 echo ' This name is used as the import library name and may be longer and'
41883 echo ' more descriptive than the DLL name which has to follow the old '
41884 echo ' 8.3 convention of FAT.'
b1d22ded
DE
41885 echo '*> "script.sh may be given to override the output_file name by a'
41886 echo ' different name. It is mainly useful if the regular make process'
41887 echo ' of some package does not take into account OS/2 restriction of'
41888 echo ' DLL name lengths. It takes the importlib name as input and is'
41889 echo ' supposed to procude a shorter name as output. The script should'
41890 echo ' expect to get importlib_name without extension and should produce'
41891 echo ' a (max.) 8 letter name without extension.'
473276a9
VS
41892 echo '*> "cc" is used to use another GCC executable. (default: gcc.exe)'
41893 echo '*> "flags" should be any set of valid GCC flags. (default: -s -Zcrtdll)'
41894 echo ' These flags will be put at the start of GCC command line.'
b1d22ded
DE
41895 echo '*> -ord[inals] tells dllar to export entries by ordinals. Be careful.'
41896 echo '*> -ex[clude] defines symbols which will not be exported. You can define'
473276a9
VS
41897 echo ' multiple symbols, for example -ex "myfunc yourfunc _GLOBAL*".'
41898 echo ' If the last character of a symbol is "*", all symbols beginning'
41899 echo ' with the prefix before "*" will be exclude, (see _GLOBAL* above).'
b1d22ded 41900 echo '*> -libf[lags] can be used to add INITGLOBAL/INITINSTANCE and/or'
473276a9 41901 echo ' TERMGLOBAL/TERMINSTANCE flags to the dynamically-linked library.'
b1d22ded 41902 echo '*> -nocrt[dll] switch will disable linking the library against emx''s'
473276a9 41903 echo ' C runtime DLLs.'
b1d22ded 41904 echo '*> -nolxl[ite] switch will disable running lxlite on the resulting DLL.'
473276a9
VS
41905 echo '*> All other switches (for example -L./ or -lmylib) will be passed'
41906 echo ' unchanged to GCC at the end of command line.'
41907 echo '*> If you create a DLL from a library and you do not specify -o,'
41908 echo ' the basename for DLL and import library will be set to library name,'
41909 echo ' the initial library will be renamed to 'name'_s.a (_s for static)'
41910 echo ' i.e. "dllar gcc.a" will create gcc.dll and gcc.a, and the initial'
41911 echo ' library will be renamed into gcc_s.a.'
41912 echo '--------'
41913 echo 'Example:'
41914 echo ' dllar -o gcc290.dll libgcc.a -d "GNU C runtime library" -ord'
41915 echo ' -ex "__main __ctordtor*" -libf "INITINSTANCE TERMINSTANCE"'
41916 CleanUp
41917 exit 1
41918}
41919
41920# Execute a command.
41921# If exit code of the commnad <> 0 CleanUp() is called and we'll exit the script.
41922# @Uses Whatever CleanUp() uses.
41923doCommand() {
41924 echo "${D}*"
41925 eval ${D}*
41926 rcCmd=${D}?
41927
1e9e8aba 41928 if [ ${D}rcCmd -ne 0 ]; then
473276a9
VS
41929 echo "command failed, exit code="${D}rcCmd
41930 CleanUp
41931 exit ${D}rcCmd
41932 fi
41933}
41934
41935# main routine
41936# setup globals
41937cmdLine=${D}*
41938outFile=""
41939outimpFile=""
41940inputFiles=""
b1d22ded 41941renameScript=""
473276a9
VS
41942description=""
41943CC=gcc.exe
41944CFLAGS="-s -Zcrtdll"
41945EXTRA_CFLAGS=""
41946EXPORT_BY_ORDINALS=0
41947exclude_symbols=""
41948library_flags=""
41949curDir=\`pwd\`
41950curDirS=curDir
41951case ${D}curDirS in
41952*/)
41953 ;;
41954*)
41955 curDirS=${D}{curDirS}"/"
41956 ;;
41957esac
41958# Parse commandline
41959libsToLink=0
b1d22ded 41960omfLinking=0
1e9e8aba 41961while [ ${D}1 ]; do
473276a9
VS
41962 case ${D}1 in
41963 -ord*)
41964 EXPORT_BY_ORDINALS=1;
41965 ;;
41966 -o*)
41967 shift
41968 outFile=${D}1
41969 ;;
41970 -i*)
41971 shift
41972 outimpFile=${D}1
41973 ;;
b1d22ded
DE
41974 -name-mangler-script)
41975 shift
41976 renameScript=${D}1
41977 ;;
473276a9
VS
41978 -d*)
41979 shift
41980 description=${D}1
41981 ;;
41982 -f*)
41983 shift
41984 CFLAGS=${D}1
41985 ;;
41986 -c*)
41987 shift
41988 CC=${D}1
41989 ;;
41990 -h*)
41991 PrintHelp
41992 ;;
41993 -ex*)
41994 shift
41995 exclude_symbols=${D}{exclude_symbols}${D}1" "
41996 ;;
41997 -libf*)
41998 shift
41999 library_flags=${D}{library_flags}${D}1" "
42000 ;;
42001 -nocrt*)
42002 CFLAGS="-s"
42003 ;;
42004 -nolxl*)
42005 flag_USE_LXLITE=0
42006 ;;
42007 -* | /*)
42008 case ${D}1 in
42009 -L* | -l*)
42010 libsToLink=1
42011 ;;
b1d22ded
DE
42012 -Zomf)
42013 omfLinking=1
42014 ;;
473276a9
VS
42015 *)
42016 ;;
42017 esac
42018 EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1
42019 ;;
b1d22ded
DE
42020 *.dll)
42021 EXTRA_CFLAGS="${D}{EXTRA_CFLAGS} \`basnam ${D}1 .dll\`"
42022 if [ ${D}omfLinking -eq 1 ]; then
42023 EXTRA_CFLAGS="${D}{EXTRA_CFLAGS}.lib"
42024 else
42025 EXTRA_CFLAGS="${D}{EXTRA_CFLAGS}.a"
42026 fi
42027 ;;
473276a9
VS
42028 *)
42029 found=0;
1e9e8aba 42030 if [ ${D}libsToLink -ne 0 ]; then
473276a9
VS
42031 EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1
42032 else
42033 for file in ${D}1 ; do
1e9e8aba 42034 if [ -f ${D}file ]; then
473276a9
VS
42035 inputFiles="${D}{inputFiles} ${D}file"
42036 found=1
42037 fi
42038 done
1e9e8aba 42039 if [ ${D}found -eq 0 ]; then
473276a9
VS
42040 echo "ERROR: No file(s) found: "${D}1
42041 exit 8
42042 fi
42043 fi
42044 ;;
42045 esac
42046 shift
42047done # iterate cmdline words
42048
42049#
1e9e8aba 42050if [ -z "${D}inputFiles" ]; then
473276a9
VS
42051 echo "dllar: no input files"
42052 PrintHelp
42053fi
42054
42055# Now extract all .o files from .a files
42056newInputFiles=""
42057for file in ${D}inputFiles ; do
42058 case ${D}file in
42059 *.a | *.lib)
42060 case ${D}file in
42061 *.a)
42062 suffix=".a"
42063 AR="ar"
42064 ;;
42065 *.lib)
42066 suffix=".lib"
42067 AR="emxomfar"
42068 EXTRA_CFLAGS="${D}EXTRA_CFLAGS -Zomf"
42069 ;;
42070 *)
42071 ;;
42072 esac
42073 dirname=\`basnam ${D}file ${D}suffix\`"_%"
42074 mkdir ${D}dirname
1e9e8aba 42075 if [ ${D}? -ne 0 ]; then
473276a9
VS
42076 echo "Failed to create subdirectory ./${D}dirname"
42077 CleanUp
42078 exit 8;
42079 fi
42080 # Append '!' to indicate archive
42081 newInputFiles="${D}newInputFiles ${D}{dirname}!"
42082 doCommand "cd ${D}dirname; ${D}AR x ../${D}file"
42083 cd ${D}curDir
42084 found=0;
42085 for subfile in ${D}dirname/*.o* ; do
1e9e8aba 42086 if [ -f ${D}subfile ]; then
473276a9 42087 found=1
1e9e8aba 42088 if [ -s ${D}subfile ]; then
473276a9
VS
42089 # FIXME: This should be: is file size > 32 byte, _not_ > 0!
42090 newInputFiles="${D}newInputFiles ${D}subfile"
42091 fi
42092 fi
42093 done
1e9e8aba
DE
42094 if [ ${D}found -eq 0 ]; then
42095 echo "WARNING: there are no files in archive \\'${D}file\\'"
473276a9
VS
42096 fi
42097 ;;
42098 *)
42099 newInputFiles="${D}{newInputFiles} ${D}file"
42100 ;;
42101 esac
42102done
42103inputFiles="${D}newInputFiles"
42104
42105# Output filename(s).
42106do_backup=0;
1e9e8aba 42107if [ -z ${D}outFile ]; then
473276a9
VS
42108 do_backup=1;
42109 set outFile ${D}inputFiles; outFile=${D}2
42110fi
42111
42112# If it is an archive, remove the '!' and the '_%' suffixes
42113case ${D}outFile in
42114*_%!)
42115 outFile=\`basnam ${D}outFile _%!\`
42116 ;;
42117*)
42118 ;;
42119esac
42120case ${D}outFile in
42121*.dll)
42122 outFile=\`basnam ${D}outFile .dll\`
42123 ;;
42124*.DLL)
42125 outFile=\`basnam ${D}outFile .DLL\`
42126 ;;
42127*.o)
42128 outFile=\`basnam ${D}outFile .o\`
42129 ;;
42130*.obj)
42131 outFile=\`basnam ${D}outFile .obj\`
42132 ;;
42133*.a)
42134 outFile=\`basnam ${D}outFile .a\`
42135 ;;
42136*.lib)
42137 outFile=\`basnam ${D}outFile .lib\`
42138 ;;
42139*)
42140 ;;
42141esac
42142case ${D}outimpFile in
42143*.a)
42144 outimpFile=\`basnam ${D}outimpFile .a\`
42145 ;;
42146*.lib)
42147 outimpFile=\`basnam ${D}outimpFile .lib\`
42148 ;;
42149*)
42150 ;;
42151esac
1e9e8aba 42152if [ -z ${D}outimpFile ]; then
473276a9
VS
42153 outimpFile=${D}outFile
42154fi
42155defFile="${D}{outFile}.def"
42156arcFile="${D}{outimpFile}.a"
42157arcFile2="${D}{outimpFile}.lib"
b1d22ded
DE
42158
42159#create ${D}dllFile as something matching 8.3 restrictions,
42160if [ -z ${D}renameScript ] ; then
42161 dllFile="${D}outFile"
42162else
42163 dllFile=\`${D}renameScript ${D}outimpFile\`
42164fi
473276a9 42165
1e9e8aba
DE
42166if [ ${D}do_backup -ne 0 ] ; then
42167 if [ -f ${D}arcFile ] ; then
473276a9
VS
42168 doCommand "mv ${D}arcFile ${D}{outFile}_s.a"
42169 fi
1e9e8aba 42170 if [ -f ${D}arcFile2 ] ; then
473276a9
VS
42171 doCommand "mv ${D}arcFile2 ${D}{outFile}_s.lib"
42172 fi
42173fi
42174
42175# Extract public symbols from all the object files.
42176tmpdefFile=${D}{defFile}_%
42177rm -f ${D}tmpdefFile
42178for file in ${D}inputFiles ; do
42179 case ${D}file in
42180 *!)
42181 ;;
42182 *)
42183 doCommand "emxexp -u ${D}file >> ${D}tmpdefFile"
42184 ;;
42185 esac
42186done
42187
42188# Create the def file.
42189rm -f ${D}defFile
42190echo "LIBRARY \`basnam ${D}dllFile\` ${D}library_flags" >> ${D}defFile
b1d22ded
DE
42191dllFile="${D}{dllFile}.dll"
42192if [ ! -z ${D}description ]; then
1e9e8aba 42193 echo "DESCRIPTION \\"${D}{description}\\"" >> ${D}defFile
473276a9
VS
42194fi
42195echo "EXPORTS" >> ${D}defFile
42196
42197doCommand "cat ${D}tmpdefFile | sort.exe | uniq.exe > ${D}{tmpdefFile}%"
42198grep -v "^ *;" < ${D}{tmpdefFile}% | grep -v "^ *${D}" >${D}tmpdefFile
42199
42200# Checks if the export is ok or not.
42201for word in ${D}exclude_symbols; do
42202 grep -v ${D}word < ${D}tmpdefFile >${D}{tmpdefFile}%
42203 mv ${D}{tmpdefFile}% ${D}tmpdefFile
42204done
42205
42206
1e9e8aba
DE
42207if [ ${D}EXPORT_BY_ORDINALS -ne 0 ]; then
42208 sed "=" < ${D}tmpdefFile | \\
473276a9
VS
42209 sed '
42210 N
42211 : loop
1e9e8aba 42212 s/^\\([0-9]\\+\\)\\([^;]*\\)\\(;.*\\)\\?/\\2 @\\1 NONAME/
473276a9
VS
42213 t loop
42214 ' > ${D}{tmpdefFile}%
42215 grep -v "^ *${D}" < ${D}{tmpdefFile}% > ${D}tmpdefFile
42216else
42217 rm -f ${D}{tmpdefFile}%
42218fi
42219cat ${D}tmpdefFile >> ${D}defFile
42220rm -f ${D}tmpdefFile
42221
42222# Do linking, create implib, and apply lxlite.
42223gccCmdl="";
42224for file in ${D}inputFiles ; do
42225 case ${D}file in
42226 *!)
42227 ;;
42228 *)
42229 gccCmdl="${D}gccCmdl ${D}file"
42230 ;;
42231 esac
42232done
42233doCommand "${D}CC ${D}CFLAGS -Zdll -o ${D}dllFile ${D}defFile ${D}gccCmdl ${D}EXTRA_CFLAGS"
42234touch "${D}{outFile}.dll"
42235
42236doCommand "emximp -o ${D}arcFile ${D}defFile"
1e9e8aba 42237if [ ${D}flag_USE_LXLITE -ne 0 ]; then
473276a9 42238 add_flags="";
1e9e8aba 42239 if [ ${D}EXPORT_BY_ORDINALS -ne 0 ]; then
473276a9
VS
42240 add_flags="-ynd"
42241 fi
42242 doCommand "lxlite -cs -t: -mrn -mln ${D}add_flags ${D}dllFile"
42243fi
42244doCommand "emxomf -s -l ${D}arcFile"
42245
42246# Successful exit.
42247CleanUp 1
42248exit 0
42249EOF
42250
42251 chmod +x dllar.sh
a848cd7e
SC
42252 ;;
42253
1e9e8aba 42254 powerpc-apple-macos* | \
a848cd7e
SC
42255 *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | \
42256 *-*-sunos4* | \
42257 *-*-osf* | \
42258 *-*-dgux5* | \
42259 *-*-sysv5* )
42260 ;;
42261
42262 *)
42263 { { echo "$as_me:$LINENO: error: unknown system type $BAKEFILE_HOST." >&5
42264echo "$as_me: error: unknown system type $BAKEFILE_HOST." >&2;}
42265 { (exit 1); exit 1; }; }
42266 esac
42267
2057db16
VS
42268 if test "x$PIC_FLAG" != "x" ; then
42269 PIC_FLAG="$PIC_FLAG -DPIC"
42270 fi
42271
a848cd7e
SC
42272 if test "x$SHARED_LD_MODULE_CC" = "x" ; then
42273 SHARED_LD_MODULE_CC="$SHARED_LD_CC"
42274 fi
42275 if test "x$SHARED_LD_MODULE_CXX" = "x" ; then
42276 SHARED_LD_MODULE_CXX="$SHARED_LD_CXX"
42277 fi
42278
42279
42280
42281
42282
42283
42284
42285
42286 USE_SOVERSION=0
42287 USE_SOVERLINUX=0
42288 USE_SOVERSOLARIS=0
42289 USE_SOSYMLINKS=0
42290 USE_MACVERSION=0
42291 SONAME_FLAG=
42292
42293 case "${BAKEFILE_HOST}" in
b1d22ded 42294 *-*-linux* | *-*-freebsd* )
5f652d0d
VS
42295 SONAME_FLAG="-Wl,-soname,"
42296 USE_SOVERSION=1
42297 USE_SOVERLINUX=1
42298 USE_SOSYMLINKS=1
42299 ;;
42300
a848cd7e
SC
42301 *-*-solaris2* )
42302 SONAME_FLAG="-h "
42303 USE_SOVERSION=1
42304 USE_SOVERSOLARIS=1
42305 USE_SOSYMLINKS=1
42306 ;;
42307
42308 *-*-darwin* )
42309 USE_MACVERSION=1
42310 USE_SOVERSION=1
42311 USE_SOSYMLINKS=1
42312 ;;
42313 esac
42314
42315
42316
42317
42318
42319
42320
42321
42322
42323 echo "$as_me:$LINENO: checking for dependency tracking method" >&5
42324echo $ECHO_N "checking for dependency tracking method... $ECHO_C" >&6
42325 DEPS_TRACKING=0
42326
42327 if test "x$GCC" = "xyes"; then
42328 DEPSMODE=gcc
42329 DEPS_TRACKING=1
42330 case "${BAKEFILE_HOST}" in
42331 powerpc-*-darwin* )
42332 DEPSFLAG_GCC="-no-cpp-precomp -MMD"
42333 ;;
42334 * )
42335 DEPSFLAG_GCC="-MMD"
42336 ;;
42337 esac
42338 echo "$as_me:$LINENO: result: gcc" >&5
42339echo "${ECHO_T}gcc" >&6
b1d22ded 42340 elif test "x$MWCC" = "xyes"; then
81f90336 42341 DEPSMODE=mwcc
b1d22ded 42342 DEPS_TRACKING=1
81f90336 42343 DEPSFLAG_MWCC="-MM"
b1d22ded
DE
42344 echo "$as_me:$LINENO: result: mwcc" >&5
42345echo "${ECHO_T}mwcc" >&6
a848cd7e
SC
42346 else
42347 echo "$as_me:$LINENO: result: none" >&5
42348echo "${ECHO_T}none" >&6
42349 fi
42350
42351 if test $DEPS_TRACKING = 1 ; then
473276a9
VS
42352
42353D='$'
42354cat <<EOF >bk-deps
a848cd7e
SC
42355#!/bin/sh
42356
42357# This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf
42358# script. It is used to track C/C++ files dependencies in portable way.
42359#
42360# Permission is given to use this file in any way.
42361
473276a9 42362DEPSMODE=${DEPSMODE}
a848cd7e 42363DEPSDIR=.deps
473276a9 42364DEPSFLAG_GCC="${DEPSFLAG_GCC}"
81f90336 42365DEPSFLAG_MWCC="${DEPSFLAG_MWCC}"
a848cd7e 42366
473276a9 42367mkdir -p ${D}DEPSDIR
a848cd7e 42368
473276a9
VS
42369if test ${D}DEPSMODE = gcc ; then
42370 ${D}* ${D}{DEPSFLAG_GCC}
42371 status=${D}?
42372 if test ${D}{status} != 0 ; then
42373 exit ${D}{status}
a848cd7e
SC
42374 fi
42375 # move created file to the location we want it in:
473276a9
VS
42376 while test ${D}# -gt 0; do
42377 case "${D}1" in
a848cd7e
SC
42378 -o )
42379 shift
473276a9 42380 objfile=${D}1
a848cd7e
SC
42381 ;;
42382 -* )
42383 ;;
42384 * )
473276a9 42385 srcfile=${D}1
a848cd7e
SC
42386 ;;
42387 esac
42388 shift
42389 done
1e9e8aba
DE
42390 depfile=\`basename ${D}srcfile | sed -e 's/\\..*${D}/.d/g'\`
42391 depobjname=\`echo ${D}depfile |sed -e 's/\\.d/.o/g'\`
473276a9
VS
42392 if test -f ${D}depfile ; then
42393 sed -e "s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{DEPSDIR}/${D}{objfile}.d
42394 rm -f ${D}depfile
a848cd7e 42395 else
1e9e8aba 42396 depfile=\`basename ${D}objfile | sed -e 's/\\..*${D}/.d/g'\`
473276a9
VS
42397 if test -f ${D}depfile ; then
42398 sed -e "/^${D}objfile/!s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{DEPSDIR}/${D}{objfile}.d
42399 rm -f ${D}depfile
a848cd7e
SC
42400 fi
42401 fi
42402 exit 0
81f90336
MW
42403elif test ${D}DEPSMODE = mwcc ; then
42404 ${D}*
42405 status=${D}?
42406 if test ${D}{status} != 0 ; then
42407 exit ${D}{status}
42408 fi
42409 # Run mwcc again with -MM and redirect into the dep file we want
42410 # NOTE: We can't use shift here because we need ${D}* to be valid
42411 prevarg=
42412 for arg in ${D}* ; do
42413 if test "${D}prevarg" = "-o"; then
42414 objfile=${D}arg
42415 else
42416 case "${D}arg" in
42417 -* )
42418 ;;
42419 * )
42420 srcfile=${D}arg
42421 ;;
42422 esac
42423 fi
42424 prevarg="${D}arg"
42425 done
42426 ${D}* ${D}DEPSFLAG_MWCC >${D}{DEPSDIR}/${D}{objfile}.d
42427 exit 0
a848cd7e 42428else
473276a9
VS
42429 ${D}*
42430 exit ${D}?
a848cd7e
SC
42431fi
42432EOF
473276a9 42433
a848cd7e
SC
42434 chmod +x bk-deps
42435 fi
42436
42437
42438
42439
42440 RESCOMP=
42441 SETFILE=
42442
42443 case ${BAKEFILE_HOST} in
42444 *-*-cygwin* | *-*-mingw32* )
42445 if test "$build" != "$host" ; then
42446 RESCOMP=$host_alias-windres
42447 else
42448 # Extract the first word of "windres", so it can be a program name with args.
42449set dummy windres; ac_word=$2
42450echo "$as_me:$LINENO: checking for $ac_word" >&5
42451echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
42452if test "${ac_cv_prog_RESCOMP+set}" = set; then
42453 echo $ECHO_N "(cached) $ECHO_C" >&6
42454else
42455 if test -n "$RESCOMP"; then
42456 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
42457else
42458as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
42459for as_dir in $PATH
42460do
42461 IFS=$as_save_IFS
42462 test -z "$as_dir" && as_dir=.
42463 for ac_exec_ext in '' $ac_executable_extensions; do
42464 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
42465 ac_cv_prog_RESCOMP="windres"
42466 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
42467 break 2
42468 fi
42469done
42470done
42471
42472 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="windres"
42473fi
42474fi
42475RESCOMP=$ac_cv_prog_RESCOMP
42476if test -n "$RESCOMP"; then
42477 echo "$as_me:$LINENO: result: $RESCOMP" >&5
42478echo "${ECHO_T}$RESCOMP" >&6
42479else
42480 echo "$as_me:$LINENO: result: no" >&5
42481echo "${ECHO_T}no" >&6
42482fi
42483
42484 fi
42485 ;;
42486
1e9e8aba 42487 *-*-darwin* | powerpc-apple-macos* )
a848cd7e
SC
42488 # Extract the first word of "Rez", so it can be a program name with args.
42489set dummy Rez; ac_word=$2
42490echo "$as_me:$LINENO: checking for $ac_word" >&5
42491echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
42492if test "${ac_cv_prog_RESCOMP+set}" = set; then
42493 echo $ECHO_N "(cached) $ECHO_C" >&6
42494else
42495 if test -n "$RESCOMP"; then
42496 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
42497else
42498as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
42499for as_dir in $PATH
42500do
42501 IFS=$as_save_IFS
42502 test -z "$as_dir" && as_dir=.
42503 for ac_exec_ext in '' $ac_executable_extensions; do
42504 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
42505 ac_cv_prog_RESCOMP="Rez"
42506 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
42507 break 2
42508 fi
42509done
42510done
42511
42512 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez"
42513fi
42514fi
42515RESCOMP=$ac_cv_prog_RESCOMP
42516if test -n "$RESCOMP"; then
42517 echo "$as_me:$LINENO: result: $RESCOMP" >&5
42518echo "${ECHO_T}$RESCOMP" >&6
42519else
42520 echo "$as_me:$LINENO: result: no" >&5
42521echo "${ECHO_T}no" >&6
42522fi
42523
42524 # Extract the first word of "SetFile", so it can be a program name with args.
42525set dummy SetFile; ac_word=$2
42526echo "$as_me:$LINENO: checking for $ac_word" >&5
42527echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
42528if test "${ac_cv_prog_SETFILE+set}" = set; then
42529 echo $ECHO_N "(cached) $ECHO_C" >&6
42530else
42531 if test -n "$SETFILE"; then
42532 ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
42533else
42534as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
42535for as_dir in $PATH
42536do
42537 IFS=$as_save_IFS
42538 test -z "$as_dir" && as_dir=.
42539 for ac_exec_ext in '' $ac_executable_extensions; do
42540 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
42541 ac_cv_prog_SETFILE="SetFile"
42542 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
42543 break 2
42544 fi
42545done
42546done
42547
42548 test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
42549fi
42550fi
42551SETFILE=$ac_cv_prog_SETFILE
42552if test -n "$SETFILE"; then
42553 echo "$as_me:$LINENO: result: $SETFILE" >&5
42554echo "${ECHO_T}$SETFILE" >&6
42555else
42556 echo "$as_me:$LINENO: result: no" >&5
42557echo "${ECHO_T}no" >&6
42558fi
42559
42560 ;;
42561 esac
42562
42563
42564
42565
42566
fbb7dfff 42567 BAKEFILE_BAKEFILE_M4_VERSION="0.1.8"
a848cd7e 42568
dcc1b6ad 42569
fbb7dfff 42570BAKEFILE_AUTOCONF_INC_M4_VERSION="0.1.8"
a848cd7e 42571
646b6ec1 42572
74b84332 42573
a848cd7e
SC
42574 # Check whether --enable-precomp-headers or --disable-precomp-headers was given.
42575if test "${enable_precomp_headers+set}" = set; then
42576 enableval="$enable_precomp_headers"
42577 bk_use_pch="$enableval"
42578fi;
42579
42580 GCC_PCH=0
42581
42582 if test "x$bk_use_pch" = "x" -o "x$bk_use_pch" = "xyes" ; then
42583 if test "x$GCC" = "xyes"; then
42584 echo "$as_me:$LINENO: checking if the compiler supports precompiled headers" >&5
42585echo $ECHO_N "checking if the compiler supports precompiled headers... $ECHO_C" >&6
42586 cat >conftest.$ac_ext <<_ACEOF
42587/* confdefs.h. */
42588_ACEOF
42589cat confdefs.h >>conftest.$ac_ext
42590cat >>conftest.$ac_ext <<_ACEOF
42591/* end confdefs.h. */
42592
42593int
42594main ()
42595{
42596
42597 #if !defined(__GNUC__) || !defined(__GNUC_MINOR__)
42598 #error "no pch support"
42599 #endif
42600 #if (__GNUC__ < 3)
42601 #error "no pch support"
42602 #endif
42603 #if (__GNUC__ == 3) && \
42604 ((!defined(__APPLE_CC__) && (__GNUC_MINOR__ < 4)) || \
42605 ( defined(__APPLE_CC__) && (__GNUC_MINOR__ < 3)))
42606 #error "no pch support"
42607 #endif
42608
42609 ;
42610 return 0;
42611}
42612_ACEOF
42613rm -f conftest.$ac_objext
42614if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 42615 (eval $ac_compile) 2>conftest.er1
a848cd7e 42616 ac_status=$?
ac1cb8d3
VS
42617 grep -v '^ *+' conftest.er1 >conftest.err
42618 rm -f conftest.er1
42619 cat conftest.err >&5
a848cd7e
SC
42620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42621 (exit $ac_status); } &&
9dd0f6c2 42622 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
42623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42624 (eval $ac_try) 2>&5
42625 ac_status=$?
42626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42627 (exit $ac_status); }; } &&
42628 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
42629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42630 (eval $ac_try) 2>&5
42631 ac_status=$?
42632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42633 (exit $ac_status); }; }; then
42634
42635 echo "$as_me:$LINENO: result: yes" >&5
42636echo "${ECHO_T}yes" >&6
a848cd7e
SC
42637 GCC_PCH=1
42638
42639else
42640 echo "$as_me: failed program was:" >&5
42641sed 's/^/| /' conftest.$ac_ext >&5
42642
42643
42644 echo "$as_me:$LINENO: result: no" >&5
42645echo "${ECHO_T}no" >&6
42646
42647fi
ac1cb8d3 42648rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 42649 if test $GCC_PCH = 1 ; then
1e9e8aba
DE
42650
42651D='$'
42652cat <<EOF >bk-make-pch
a848cd7e
SC
42653#!/bin/sh
42654
42655# This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf
42656# script. It is used to generated precompiled headers.
42657#
42658# Permission is given to use this file in any way.
42659
1e9e8aba
DE
42660outfile="${D}{1}"
42661header="${D}{2}"
a848cd7e
SC
42662shift
42663shift
42664
42665compiler=
42666headerfile=
1e9e8aba
DE
42667while test ${D}{#} -gt 0; do
42668 case "${D}{1}" in
a848cd7e 42669 -I* )
1e9e8aba
DE
42670 incdir=\`echo ${D}{1} | sed -e 's/-I\\(.*\\)/\\1/g'\`
42671 if test "x${D}{headerfile}" = "x" -a -f "${D}{incdir}/${D}{header}" ; then
42672 headerfile="${D}{incdir}/${D}{header}"
a848cd7e
SC
42673 fi
42674 ;;
42675 esac
1e9e8aba 42676 compiler="${D}{compiler} ${D}{1}"
a848cd7e
SC
42677 shift
42678done
42679
1e9e8aba
DE
42680if test "x${D}{headerfile}" = "x" ; then
42681 echo "error: can't find header ${D}{header} in include paths" >2
a848cd7e 42682else
1e9e8aba
DE
42683 if test -f ${D}{outfile} ; then
42684 rm -f ${D}{outfile}
a848cd7e 42685 else
1e9e8aba 42686 mkdir -p \`dirname ${D}{outfile}\`
a848cd7e 42687 fi
1e9e8aba 42688 depsfile=".deps/\`echo ${D}{outfile} | tr '/.' '__'\`.d"
a848cd7e
SC
42689 mkdir -p .deps
42690 # can do this because gcc is >= 3.4:
1e9e8aba
DE
42691 ${D}{compiler} -o ${D}{outfile} -MMD -MF "${D}{depsfile}" "${D}{headerfile}"
42692 exit ${D}{?}
a848cd7e
SC
42693fi
42694EOF
1e9e8aba 42695
a848cd7e
SC
42696 chmod +x bk-make-pch
42697 fi
42698 fi
42699 fi
42700
42701
42702
a848cd7e
SC
42703 COND_BUILD_DEBUG="#"
42704 if test "x$BUILD" = "xdebug" ; then
42705 COND_BUILD_DEBUG=""
42706 fi
42707
42708 COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT="#"
42709 if test "x$BUILD" = "xdebug" -a "x$DEBUG_FLAG" = "xdefault" ; then
42710 COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT=""
42711 fi
42712
42713 COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT="#"
42714 if test "x$BUILD" = "xdebug" -a "x$DEBUG_INFO" = "xdefault" ; then
42715 COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT=""
42716 fi
42717
42718 COND_BUILD_DEBUG_UNICODE_0="#"
42719 if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x0" ; then
42720 COND_BUILD_DEBUG_UNICODE_0=""
42721 fi
42722
42723 COND_BUILD_DEBUG_UNICODE_1="#"
42724 if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x1" ; then
42725 COND_BUILD_DEBUG_UNICODE_1=""
42726 fi
42727
42728 COND_BUILD_RELEASE="#"
42729 if test "x$BUILD" = "xrelease" ; then
42730 COND_BUILD_RELEASE=""
42731 fi
42732
42733 COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT="#"
42734 if test "x$BUILD" = "xrelease" -a "x$DEBUG_INFO" = "xdefault" ; then
42735 COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT=""
42736 fi
42737
42738 COND_BUILD_RELEASE_UNICODE_0="#"
42739 if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x0" ; then
42740 COND_BUILD_RELEASE_UNICODE_0=""
42741 fi
42742
42743 COND_BUILD_RELEASE_UNICODE_1="#"
42744 if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x1" ; then
42745 COND_BUILD_RELEASE_UNICODE_1=""
42746 fi
42747
42748 COND_DEBUG_FLAG_1="#"
42749 if test "x$DEBUG_FLAG" = "x1" ; then
42750 COND_DEBUG_FLAG_1=""
42751 fi
42752
42753 COND_DEBUG_INFO_0="#"
42754 if test "x$DEBUG_INFO" = "x0" ; then
42755 COND_DEBUG_INFO_0=""
42756 fi
42757
42758 COND_DEBUG_INFO_1="#"
42759 if test "x$DEBUG_INFO" = "x1" ; then
42760 COND_DEBUG_INFO_1=""
42761 fi
42762
42763 COND_DEPS_TRACKING_0="#"
42764 if test "x$DEPS_TRACKING" = "x0" ; then
42765 COND_DEPS_TRACKING_0=""
42766 fi
42767
42768 COND_DEPS_TRACKING_1="#"
42769 if test "x$DEPS_TRACKING" = "x1" ; then
42770 COND_DEPS_TRACKING_1=""
42771 fi
42772
42773 COND_GCC_PCH_1="#"
42774 if test "x$GCC_PCH" = "x1" ; then
42775 COND_GCC_PCH_1=""
42776 fi
42777
42778 COND_MONOLITHIC_0="#"
42779 if test "x$MONOLITHIC" = "x0" ; then
42780 COND_MONOLITHIC_0=""
42781 fi
42782
42783 COND_MONOLITHIC_0_SHARED_0="#"
42784 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" ; then
42785 COND_MONOLITHIC_0_SHARED_0=""
42786 fi
42787
42788 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1="#"
42789 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" ; then
42790 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1=""
42791 fi
42792
90970d69
DE
42793 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1="#"
42794 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_HTML" = "x1" ; then
42795 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1=""
42796 fi
42797
a848cd7e
SC
42798 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1="#"
42799 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then
42800 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1=""
42801 fi
42802
6671c68b
VZ
42803 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1="#"
42804 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_QA" = "x1" ; then
42805 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1=""
42806 fi
42807
a848cd7e
SC
42808 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1="#"
42809 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_ODBC" = "x1" ; then
42810 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1=""
42811 fi
42812
ceec2216
RL
42813 COND_MONOLITHIC_0_SHARED_0_USE_XRC_1="#"
42814 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_XRC" = "x1" ; then
42815 COND_MONOLITHIC_0_SHARED_0_USE_XRC_1=""
42816 fi
42817
a848cd7e
SC
42818 COND_MONOLITHIC_0_SHARED_1="#"
42819 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" ; then
42820 COND_MONOLITHIC_0_SHARED_1=""
42821 fi
42822
42823 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1="#"
42824 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" ; then
42825 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1=""
42826 fi
42827
90970d69
DE
42828 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1="#"
42829 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_HTML" = "x1" ; then
42830 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1=""
42831 fi
42832
a848cd7e
SC
42833 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1="#"
42834 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then
42835 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1=""
42836 fi
42837
6671c68b
VZ
42838 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1="#"
42839 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_QA" = "x1" ; then
42840 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1=""
42841 fi
42842
a848cd7e
SC
42843 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1="#"
42844 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_ODBC" = "x1" ; then
42845 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1=""
42846 fi
42847
ceec2216
RL
42848 COND_MONOLITHIC_0_SHARED_1_USE_XRC_1="#"
42849 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_XRC" = "x1" ; then
42850 COND_MONOLITHIC_0_SHARED_1_USE_XRC_1=""
42851 fi
42852
a848cd7e
SC
42853 COND_MONOLITHIC_0_USE_ODBC_1="#"
42854 if test "x$MONOLITHIC" = "x0" -a "x$USE_ODBC" = "x1" ; then
42855 COND_MONOLITHIC_0_USE_ODBC_1=""
42856 fi
42857
42858 COND_MONOLITHIC_1="#"
42859 if test "x$MONOLITHIC" = "x1" ; then
42860 COND_MONOLITHIC_1=""
42861 fi
42862
42863 COND_MONOLITHIC_1_SHARED_0="#"
42864 if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x0" ; then
42865 COND_MONOLITHIC_1_SHARED_0=""
42866 fi
42867
42868 COND_MONOLITHIC_1_SHARED_1="#"
42869 if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x1" ; then
42870 COND_MONOLITHIC_1_SHARED_1=""
42871 fi
42872
42873 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1="#"
42874 if test "x$OFFICIAL_BUILD" = "x0" -a "x$PLATFORM_WIN32" = "x1" ; then
42875 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1=""
42876 fi
42877
42878 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1="#"
42879 if test "x$OFFICIAL_BUILD" = "x1" -a "x$PLATFORM_WIN32" = "x1" ; then
42880 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1=""
42881 fi
42882
42883 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1="#"
42884 if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERSION" = "x1" ; then
42885 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1=""
42886 fi
42887
42888 COND_PLATFORM_MACOSX_1="#"
42889 if test "x$PLATFORM_MACOSX" = "x1" ; then
42890 COND_PLATFORM_MACOSX_1=""
42891 fi
42892
a30f955f
VS
42893 COND_PLATFORM_MACOSX_1_TOOLKIT_="#"
42894 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "x" ; then
42895 COND_PLATFORM_MACOSX_1_TOOLKIT_=""
42896 fi
42897
a848cd7e
SC
42898 COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA="#"
42899 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xCOCOA" ; then
42900 COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA=""
42901 fi
42902
42903 COND_PLATFORM_MACOSX_1_TOOLKIT_GTK="#"
42904 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xGTK" ; then
42905 COND_PLATFORM_MACOSX_1_TOOLKIT_GTK=""
42906 fi
42907
42908 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC="#"
42909 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" ; then
42910 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC=""
42911 fi
42912
fc480dc1
DE
42913 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1="#"
42914 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" ; then
42915 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1=""
42916 fi
42917
1e9e8aba
DE
42918 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="#"
42919 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
42920 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0=""
42921 fi
42922
ebee3cd0
VS
42923 COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF="#"
42924 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMOTIF" ; then
42925 COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF=""
42926 fi
42927
42928 COND_PLATFORM_MACOSX_1_TOOLKIT_X11="#"
42929 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xX11" ; then
42930 COND_PLATFORM_MACOSX_1_TOOLKIT_X11=""
42931 fi
42932
a848cd7e
SC
42933 COND_PLATFORM_MACOSX_1_USE_GUI_1="#"
42934 if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_GUI" = "x1" ; then
42935 COND_PLATFORM_MACOSX_1_USE_GUI_1=""
42936 fi
42937
42938 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1="#"
42939 if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_SOVERSION" = "x1" ; then
42940 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1=""
42941 fi
42942
b48a2016
DE
42943 COND_PLATFORM_MACOS_1="#"
42944 if test "x$PLATFORM_MACOS" = "x1" ; then
42945 COND_PLATFORM_MACOS_1=""
42946 fi
42947
a848cd7e
SC
42948 COND_PLATFORM_MAC_1="#"
42949 if test "x$PLATFORM_MAC" = "x1" ; then
42950 COND_PLATFORM_MAC_1=""
42951 fi
42952
42953 COND_PLATFORM_OS2_1="#"
42954 if test "x$PLATFORM_OS2" = "x1" ; then
42955 COND_PLATFORM_OS2_1=""
42956 fi
42957
42958 COND_PLATFORM_UNIX_0="#"
42959 if test "x$PLATFORM_UNIX" = "x0" ; then
42960 COND_PLATFORM_UNIX_0=""
42961 fi
42962
42963 COND_PLATFORM_UNIX_1="#"
42964 if test "x$PLATFORM_UNIX" = "x1" ; then
42965 COND_PLATFORM_UNIX_1=""
42966 fi
42967
42968 COND_PLATFORM_UNIX_1_USE_GUI_1="#"
42969 if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_GUI" = "x1" ; then
42970 COND_PLATFORM_UNIX_1_USE_GUI_1=""
42971 fi
42972
42973 COND_PLATFORM_UNIX_1_USE_PLUGINS_0="#"
42974 if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_PLUGINS" = "x0" ; then
42975 COND_PLATFORM_UNIX_1_USE_PLUGINS_0=""
42976 fi
42977
42978 COND_PLATFORM_WIN32_0="#"
42979 if test "x$PLATFORM_WIN32" = "x0" ; then
42980 COND_PLATFORM_WIN32_0=""
42981 fi
42982
42983 COND_PLATFORM_WIN32_1="#"
42984 if test "x$PLATFORM_WIN32" = "x1" ; then
42985 COND_PLATFORM_WIN32_1=""
42986 fi
42987
42988 COND_SHARED_0="#"
42989 if test "x$SHARED" = "x0" ; then
42990 COND_SHARED_0=""
42991 fi
42992
ceec2216
RL
42993 COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0="#"
42994 if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xMAC" -a "x$WXUNIV" = "x0" ; then
42995 COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0=""
42996 fi
42997
42998 COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0="#"
42999 if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xMSW" -a "x$WXUNIV" = "x0" ; then
43000 COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0=""
43001 fi
43002
43003 COND_SHARED_0_TOOLKIT_PM_WXUNIV_0="#"
43004 if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xPM" -a "x$WXUNIV" = "x0" ; then
43005 COND_SHARED_0_TOOLKIT_PM_WXUNIV_0=""
43006 fi
43007
a848cd7e
SC
43008 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1="#"
43009 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
43010 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1=""
43011 fi
43012
43013 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
43014 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
43015 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
43016 fi
43017
43018 COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
43019 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
43020 COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
43021 fi
43022
43023 COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
43024 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
43025 COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
43026 fi
43027
52ada004
RL
43028 COND_SHARED_0_USE_XRC_1="#"
43029 if test "x$SHARED" = "x0" -a "x$USE_XRC" = "x1" ; then
43030 COND_SHARED_0_USE_XRC_1=""
43031 fi
43032
a848cd7e
SC
43033 COND_SHARED_0_WXUSE_EXPAT_BUILTIN="#"
43034 if test "x$SHARED" = "x0" -a "x$wxUSE_EXPAT" = "xbuiltin" ; then
43035 COND_SHARED_0_WXUSE_EXPAT_BUILTIN=""
43036 fi
43037
43038 COND_SHARED_0_WXUSE_ODBC_BUILTIN="#"
43039 if test "x$SHARED" = "x0" -a "x$wxUSE_ODBC" = "xbuiltin" ; then
43040 COND_SHARED_0_WXUSE_ODBC_BUILTIN=""
43041 fi
43042
43043 COND_SHARED_0_WXUSE_REGEX_BUILTIN="#"
43044 if test "x$SHARED" = "x0" -a "x$wxUSE_REGEX" = "xbuiltin" ; then
43045 COND_SHARED_0_WXUSE_REGEX_BUILTIN=""
43046 fi
43047
43048 COND_SHARED_0_WXUSE_ZLIB_BUILTIN="#"
43049 if test "x$SHARED" = "x0" -a "x$wxUSE_ZLIB" = "xbuiltin" ; then
43050 COND_SHARED_0_WXUSE_ZLIB_BUILTIN=""
43051 fi
43052
43053 COND_SHARED_1="#"
43054 if test "x$SHARED" = "x1" ; then
43055 COND_SHARED_1=""
43056 fi
43057
43058 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1="#"
43059 if test "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
43060 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1=""
43061 fi
43062
52ada004
RL
43063 COND_SHARED_1_USE_XRC_1="#"
43064 if test "x$SHARED" = "x1" -a "x$USE_XRC" = "x1" ; then
43065 COND_SHARED_1_USE_XRC_1=""
43066 fi
43067
a30f955f
VS
43068 COND_TOOLKIT_="#"
43069 if test "x$TOOLKIT" = "x" ; then
43070 COND_TOOLKIT_=""
43071 fi
43072
a848cd7e
SC
43073 COND_TOOLKIT_COCOA="#"
43074 if test "x$TOOLKIT" = "xCOCOA" ; then
43075 COND_TOOLKIT_COCOA=""
43076 fi
43077
a49baeab
DE
43078 COND_TOOLKIT_COCOA_USE_GUI_1="#"
43079 if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" ; then
43080 COND_TOOLKIT_COCOA_USE_GUI_1=""
43081 fi
43082
a848cd7e
SC
43083 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0="#"
43084 if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
43085 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0=""
43086 fi
43087
43088 COND_TOOLKIT_GTK="#"
43089 if test "x$TOOLKIT" = "xGTK" ; then
43090 COND_TOOLKIT_GTK=""
43091 fi
43092
43093 COND_TOOLKIT_GTK_USE_GUI_1="#"
43094 if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" ; then
43095 COND_TOOLKIT_GTK_USE_GUI_1=""
43096 fi
43097
43098 COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0="#"
43099 if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
43100 COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0=""
43101 fi
43102
43103 COND_TOOLKIT_MAC="#"
43104 if test "x$TOOLKIT" = "xMAC" ; then
43105 COND_TOOLKIT_MAC=""
43106 fi
43107
43108 COND_TOOLKIT_MAC_USE_GUI_1="#"
43109 if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" ; then
43110 COND_TOOLKIT_MAC_USE_GUI_1=""
43111 fi
43112
43113 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="#"
43114 if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
43115 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0=""
43116 fi
43117
43118 COND_TOOLKIT_MGL="#"
43119 if test "x$TOOLKIT" = "xMGL" ; then
43120 COND_TOOLKIT_MGL=""
43121 fi
43122
43123 COND_TOOLKIT_MGL_USE_GUI_1="#"
43124 if test "x$TOOLKIT" = "xMGL" -a "x$USE_GUI" = "x1" ; then
43125 COND_TOOLKIT_MGL_USE_GUI_1=""
43126 fi
43127
43128 COND_TOOLKIT_MOTIF="#"
43129 if test "x$TOOLKIT" = "xMOTIF" ; then
43130 COND_TOOLKIT_MOTIF=""
43131 fi
43132
43133 COND_TOOLKIT_MOTIF_USE_GUI_1="#"
43134 if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" ; then
43135 COND_TOOLKIT_MOTIF_USE_GUI_1=""
43136 fi
43137
43138 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0="#"
43139 if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
43140 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0=""
43141 fi
43142
43143 COND_TOOLKIT_MSW="#"
43144 if test "x$TOOLKIT" = "xMSW" ; then
43145 COND_TOOLKIT_MSW=""
43146 fi
43147
43148 COND_TOOLKIT_MSW_USE_GUI_1="#"
43149 if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" ; then
43150 COND_TOOLKIT_MSW_USE_GUI_1=""
43151 fi
43152
43153 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0="#"
43154 if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
43155 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0=""
43156 fi
43157
43158 COND_TOOLKIT_PM="#"
43159 if test "x$TOOLKIT" = "xPM" ; then
43160 COND_TOOLKIT_PM=""
43161 fi
43162
43163 COND_TOOLKIT_PM_USE_GUI_1="#"
43164 if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" ; then
43165 COND_TOOLKIT_PM_USE_GUI_1=""
43166 fi
43167
43168 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0="#"
43169 if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
43170 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0=""
43171 fi
43172
3fd9c298
DE
43173 COND_TOOLKIT_WINCE="#"
43174 if test "x$TOOLKIT" = "xWINCE" ; then
43175 COND_TOOLKIT_WINCE=""
43176 fi
43177
43178 COND_TOOLKIT_WINCE_USE_GUI_1="#"
43179 if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" ; then
43180 COND_TOOLKIT_WINCE_USE_GUI_1=""
43181 fi
43182
43183 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0="#"
43184 if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
43185 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0=""
43186 fi
43187
a848cd7e
SC
43188 COND_TOOLKIT_X11="#"
43189 if test "x$TOOLKIT" = "xX11" ; then
43190 COND_TOOLKIT_X11=""
43191 fi
43192
43193 COND_TOOLKIT_X11_USE_GUI_1="#"
43194 if test "x$TOOLKIT" = "xX11" -a "x$USE_GUI" = "x1" ; then
43195 COND_TOOLKIT_X11_USE_GUI_1=""
43196 fi
43197
43198 COND_UNICODE_1="#"
43199 if test "x$UNICODE" = "x1" ; then
43200 COND_UNICODE_1=""
43201 fi
43202
43203 COND_USE_EXCEPTIONS_0="#"
43204 if test "x$USE_EXCEPTIONS" = "x0" ; then
43205 COND_USE_EXCEPTIONS_0=""
43206 fi
43207
43208 COND_USE_EXCEPTIONS_1="#"
43209 if test "x$USE_EXCEPTIONS" = "x1" ; then
43210 COND_USE_EXCEPTIONS_1=""
43211 fi
43212
43213 COND_USE_GUI_0="#"
43214 if test "x$USE_GUI" = "x0" ; then
43215 COND_USE_GUI_0=""
43216 fi
43217
43218 COND_USE_GUI_1="#"
43219 if test "x$USE_GUI" = "x1" ; then
43220 COND_USE_GUI_1=""
43221 fi
43222
43223 COND_USE_GUI_1_WXUNIV_0="#"
43224 if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
43225 COND_USE_GUI_1_WXUNIV_0=""
43226 fi
43227
43228 COND_USE_GUI_1_WXUNIV_1="#"
43229 if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x1" ; then
43230 COND_USE_GUI_1_WXUNIV_1=""
43231 fi
43232
43233 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
43234 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
43235 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
43236 fi
43237
43238 COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
43239 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
43240 COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
43241 fi
43242
43243 COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
43244 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
43245 COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
43246 fi
43247
ceec2216
RL
43248 COND_USE_ODBC_1="#"
43249 if test "x$USE_ODBC" = "x1" ; then
43250 COND_USE_ODBC_1=""
43251 fi
43252
ffa0583f
RL
43253 COND_USE_OPENGL_1="#"
43254 if test "x$USE_OPENGL" = "x1" ; then
43255 COND_USE_OPENGL_1=""
43256 fi
43257
a848cd7e
SC
43258 COND_USE_PLUGINS_0="#"
43259 if test "x$USE_PLUGINS" = "x0" ; then
43260 COND_USE_PLUGINS_0=""
43261 fi
43262
0b78747f
MW
43263 COND_USE_RTTI_0="#"
43264 if test "x$USE_RTTI" = "x0" ; then
43265 COND_USE_RTTI_0=""
43266 fi
43267
43268 COND_USE_RTTI_1="#"
43269 if test "x$USE_RTTI" = "x1" ; then
43270 COND_USE_RTTI_1=""
43271 fi
43272
a848cd7e
SC
43273 COND_USE_SOSYMLINKS_1="#"
43274 if test "x$USE_SOSYMLINKS" = "x1" ; then
43275 COND_USE_SOSYMLINKS_1=""
43276 fi
43277
43278 COND_USE_SOVERLINUX_1="#"
43279 if test "x$USE_SOVERLINUX" = "x1" ; then
43280 COND_USE_SOVERLINUX_1=""
43281 fi
43282
43283 COND_USE_SOVERSION_0="#"
43284 if test "x$USE_SOVERSION" = "x0" ; then
43285 COND_USE_SOVERSION_0=""
43286 fi
43287
43288 COND_USE_SOVERSOLARIS_1="#"
43289 if test "x$USE_SOVERSOLARIS" = "x1" ; then
43290 COND_USE_SOVERSOLARIS_1=""
43291 fi
43292
0b78747f
MW
43293 COND_USE_THREADS_0="#"
43294 if test "x$USE_THREADS" = "x0" ; then
43295 COND_USE_THREADS_0=""
43296 fi
43297
43298 COND_USE_THREADS_1="#"
43299 if test "x$USE_THREADS" = "x1" ; then
43300 COND_USE_THREADS_1=""
43301 fi
43302
a13a7f89
RL
43303 COND_USE_XRC_1="#"
43304 if test "x$USE_XRC" = "x1" ; then
43305 COND_USE_XRC_1=""
43306 fi
43307
a848cd7e
SC
43308 COND_WITH_PLUGIN_SDL_1="#"
43309 if test "x$WITH_PLUGIN_SDL" = "x1" ; then
43310 COND_WITH_PLUGIN_SDL_1=""
43311 fi
43312
1e6eb025
VZ
43313 COND_WXUNIV_0="#"
43314 if test "x$WXUNIV" = "x0" ; then
43315 COND_WXUNIV_0=""
43316 fi
43317
a848cd7e
SC
43318 COND_WXUNIV_1="#"
43319 if test "x$WXUNIV" = "x1" ; then
43320 COND_WXUNIV_1=""
43321 fi
43322
43323 COND_WXUSE_EXPAT_BUILTIN="#"
43324 if test "x$wxUSE_EXPAT" = "xbuiltin" ; then
43325 COND_WXUSE_EXPAT_BUILTIN=""
43326 fi
43327
43328 COND_WXUSE_LIBJPEG_BUILTIN="#"
43329 if test "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
43330 COND_WXUSE_LIBJPEG_BUILTIN=""
43331 fi
43332
43333 COND_WXUSE_LIBPNG_BUILTIN="#"
43334 if test "x$wxUSE_LIBPNG" = "xbuiltin" ; then
43335 COND_WXUSE_LIBPNG_BUILTIN=""
43336 fi
43337
43338 COND_WXUSE_LIBTIFF_BUILTIN="#"
43339 if test "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
43340 COND_WXUSE_LIBTIFF_BUILTIN=""
43341 fi
43342
43343 COND_WXUSE_ODBC_BUILTIN="#"
43344 if test "x$wxUSE_ODBC" = "xbuiltin" ; then
43345 COND_WXUSE_ODBC_BUILTIN=""
43346 fi
43347
43348 COND_WXUSE_REGEX_BUILTIN="#"
43349 if test "x$wxUSE_REGEX" = "xbuiltin" ; then
43350 COND_WXUSE_REGEX_BUILTIN=""
43351 fi
43352
43353 COND_WXUSE_ZLIB_BUILTIN="#"
43354 if test "x$wxUSE_ZLIB" = "xbuiltin" ; then
43355 COND_WXUSE_ZLIB_BUILTIN=""
43356 fi
43357
43358
43359
2057db16
VS
43360 if test "$BAKEFILE_BAKEFILE_M4_VERSION" != "$BAKEFILE_AUTOCONF_INC_M4_VERSION" ; then
43361 { { 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
43362echo "$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;}
43363 { (exit 1); exit 1; }; }
43364 fi
43365
a848cd7e 43366
ceec2216
RL
43367if test "$wxUSE_SHARED" = "yes"; then
43368
43369 sanitised_bakefile_mess=`echo "$SHARED_LD_CXX" | tr -d '()'`
43370 EXE_LINKER=`eval echo "$sanitised_bakefile_mess"`
43371
5b674b9d
DE
43372 case "${host}" in
43373 *-pc-os2_emx | *-pc-os2-emx )
43374 SHARED_LD_CC="`pwd`/dllar.sh -name-mangler-script ./dllnames.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
43375 SHARED_LD_CXX="`pwd`/dllar.sh -name-mangler-script ./dllnames.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
43376 cp -p ${srcdir}/src/os2/dllnames.sh .
43377 cp -p ${srcdir}/src/os2/dllar.sh .
43378 ;;
43379 esac
ceec2216
RL
43380else
43381
43382 EXE_LINKER="$CXX -o"
43383
43384fi
69120ee4
VZ
43385if test "$wxUSE_OMF" = "yes"; then
43386 case "${host}" in
43387 *-pc-os2_emx | *-pc-os2-emx )
43388 LDFLAGS="$LDFLAGS -Zlinker /EXEPACK"
43389 LDFLAGS_GUI="-Zlinker /PMTYPE:PM"
43390 WXCONFIG_LDFLAGS_GUI="-Zlinker /PMTYPE:PM"
43391 ;;
43392 esac
43393fi
a848cd7e 43394
74b84332 43395GCC_PRAGMA_FLAGS=""
c08ebc62
DE
43396PCH_FLAGS=""
43397if test $GCC_PCH = 1 ; then
43398 GCC_PRAGMA_FLAGS="-DNO_GCC_PRAGMA"
43399 PCH_FLAGS="-DWX_PRECOMP"
43400else
a848cd7e
SC
43401 case "${host}" in
43402 powerpc-*-darwin* )
74b84332 43403 GCC_PRAGMA_FLAGS="-DNO_GCC_PRAGMA"
a848cd7e 43404 ;;
bea8e651 43405 *-*-mingw32* )
1f344abf
VS
43406 if test "$wxUSE_STL" = "yes" -o \
43407 "$wxUSE_NO_EXCEPTIONS" != "yes" -o \
43408 "$wxUSE_NO_RTTI" != "yes"; then
43409 echo "$as_me:$LINENO: checking if this MinGW version needs -DNO_GCC_PRAGMA" >&5
43410echo $ECHO_N "checking if this MinGW version needs -DNO_GCC_PRAGMA... $ECHO_C" >&6
bea8e651
MB
43411 cat >conftest.$ac_ext <<_ACEOF
43412/* confdefs.h. */
43413_ACEOF
43414cat confdefs.h >>conftest.$ac_ext
43415cat >>conftest.$ac_ext <<_ACEOF
43416/* end confdefs.h. */
43417
3314e67b
RR
43418int
43419main ()
43420{
43421#if !(__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 2))
43422 #error "Not GCC 3.2 or greater"
43423 #endif
43424
43425 ;
43426 return 0;
43427}
43428_ACEOF
43429rm -f conftest.$ac_objext
43430if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43431 (eval $ac_compile) 2>conftest.er1
43432 ac_status=$?
43433 grep -v '^ *+' conftest.er1 >conftest.err
43434 rm -f conftest.er1
43435 cat conftest.err >&5
43436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43437 (exit $ac_status); } &&
9dd0f6c2 43438 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3314e67b
RR
43439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43440 (eval $ac_try) 2>&5
43441 ac_status=$?
43442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43443 (exit $ac_status); }; } &&
43444 { ac_try='test -s conftest.$ac_objext'
43445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43446 (eval $ac_try) 2>&5
43447 ac_status=$?
43448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43449 (exit $ac_status); }; }; then
43450 GCC_PRAGMA_FLAGS="-DNO_GCC_PRAGMA"
43451 echo "$as_me:$LINENO: result: yes" >&5
43452echo "${ECHO_T}yes" >&6
43453else
43454 echo "$as_me: failed program was:" >&5
43455sed 's/^/| /' conftest.$ac_ext >&5
43456
43457echo "$as_me:$LINENO: result: no" >&5
43458echo "${ECHO_T}no" >&6
43459fi
43460rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
43461 fi
43462 ;;
43463 *-pc-os2_emx | *-pc-os2-emx )
43464 if test "$wxUSE_STL" = "yes"; then
43465 echo "$as_me:$LINENO: checking if this gcc version needs -DNO_GCC_PRAGMA" >&5
43466echo $ECHO_N "checking if this gcc version needs -DNO_GCC_PRAGMA... $ECHO_C" >&6
43467 cat >conftest.$ac_ext <<_ACEOF
43468/* confdefs.h. */
43469_ACEOF
43470cat confdefs.h >>conftest.$ac_ext
43471cat >>conftest.$ac_ext <<_ACEOF
43472/* end confdefs.h. */
43473
bea8e651
MB
43474int
43475main ()
43476{
1f344abf 43477#if !(__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 2))
bea8e651
MB
43478 #error "Not GCC 3.2 or greater"
43479 #endif
43480
43481 ;
43482 return 0;
43483}
43484_ACEOF
43485rm -f conftest.$ac_objext
43486if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 43487 (eval $ac_compile) 2>conftest.er1
bea8e651 43488 ac_status=$?
ac1cb8d3
VS
43489 grep -v '^ *+' conftest.er1 >conftest.err
43490 rm -f conftest.er1
43491 cat conftest.err >&5
bea8e651
MB
43492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43493 (exit $ac_status); } &&
9dd0f6c2 43494 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
43495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43496 (eval $ac_try) 2>&5
43497 ac_status=$?
43498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43499 (exit $ac_status); }; } &&
43500 { ac_try='test -s conftest.$ac_objext'
bea8e651
MB
43501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43502 (eval $ac_try) 2>&5
43503 ac_status=$?
43504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43505 (exit $ac_status); }; }; then
74b84332 43506 GCC_PRAGMA_FLAGS="-DNO_GCC_PRAGMA"
bea8e651
MB
43507 echo "$as_me:$LINENO: result: yes" >&5
43508echo "${ECHO_T}yes" >&6
43509else
43510 echo "$as_me: failed program was:" >&5
43511sed 's/^/| /' conftest.$ac_ext >&5
43512
43513echo "$as_me:$LINENO: result: no" >&5
43514echo "${ECHO_T}no" >&6
43515fi
ac1cb8d3 43516rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bea8e651
MB
43517 fi
43518 ;;
a848cd7e
SC
43519 esac
43520fi
d2083416 43521CPPFLAGS="$PCH_FLAGS $GCC_PRAGMA_FLAGS $CPPFLAGS"
a848cd7e
SC
43522
43523
43524SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`"
43525
43526
43527
43528
43529
43530
43531
43532
43533
43534
43535
43536
43537
43538
43539
43540
43541
43542
43543
43544
43545
43546
43547
43548
43549
43550
43551
43552
43553
43554
43555
43556
43557
43558
43559
43560
43561
43562
43563
43564
43565
43566
a848cd7e
SC
43567
43568
43569
43570
43571
43572
43573
43574
43575
43576
43577
43578
43579
43580
43581
43582
43583
43584
74b84332 43585
a848cd7e
SC
43586
43587
43588echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
43589echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
ac1cb8d3 43590set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
a848cd7e
SC
43591if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
43592 echo $ECHO_N "(cached) $ECHO_C" >&6
43593else
43594 cat >conftest.make <<\_ACEOF
43595all:
43596 @echo 'ac_maketemp="$(MAKE)"'
43597_ACEOF
43598# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
43599eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
43600if test -n "$ac_maketemp"; then
43601 eval ac_cv_prog_make_${ac_make}_set=yes
43602else
43603 eval ac_cv_prog_make_${ac_make}_set=no
43604fi
43605rm -f conftest.make
43606fi
43607if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
43608 echo "$as_me:$LINENO: result: yes" >&5
43609echo "${ECHO_T}yes" >&6
43610 SET_MAKE=
43611else
43612 echo "$as_me:$LINENO: result: no" >&5
43613echo "${ECHO_T}no" >&6
43614 SET_MAKE="MAKE=${MAKE-make}"
43615fi
43616
43617
a848cd7e 43618
ceec2216
RL
43619 ac_config_headers="$ac_config_headers lib/wx/include/${TOOLCHAIN_FULLNAME}/wx/setup.h:setup.h.in"
43620
a848cd7e 43621
ceec2216 43622 ac_config_files="$ac_config_files lib/wx/config/${TOOLCHAIN_FULLNAME}:wx-config.in"
a848cd7e 43623
a848cd7e 43624
ceec2216 43625 ac_config_files="$ac_config_files lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}:wx-config-inplace.in"
a848cd7e 43626
ceec2216
RL
43627
43628 ac_config_files="$ac_config_files version-script Makefile"
43629
43630
43631 ac_config_commands="$ac_config_commands wx-config
43632 "
a848cd7e
SC
43633
43634
9103d280
RL
43635
43636
a848cd7e
SC
43637if test "$wxUSE_GUI" = "yes"; then
43638 SUBDIRS="samples demos utils contrib"
43639else SUBDIRS="samples utils"
43640fi
43641
43642
43643
43644# Check whether --with-cppunit-prefix or --without-cppunit-prefix was given.
43645if test "${with_cppunit_prefix+set}" = set; then
43646 withval="$with_cppunit_prefix"
43647 cppunit_config_prefix="$withval"
43648else
43649 cppunit_config_prefix=""
43650fi;
43651
43652# Check whether --with-cppunit-exec-prefix or --without-cppunit-exec-prefix was given.
43653if test "${with_cppunit_exec_prefix+set}" = set; then
43654 withval="$with_cppunit_exec_prefix"
43655 cppunit_config_exec_prefix="$withval"
43656else
43657 cppunit_config_exec_prefix=""
43658fi;
43659
43660 if test x$cppunit_config_exec_prefix != x ; then
43661 cppunit_config_args="$cppunit_config_args --exec-prefix=$cppunit_config_exec_prefix"
43662 if test x${CPPUNIT_CONFIG+set} != xset ; then
43663 CPPUNIT_CONFIG=$cppunit_config_exec_prefix/bin/cppunit-config
43664 fi
43665 fi
43666 if test x$cppunit_config_prefix != x ; then
43667 cppunit_config_args="$cppunit_config_args --prefix=$cppunit_config_prefix"
43668 if test x${CPPUNIT_CONFIG+set} != xset ; then
43669 CPPUNIT_CONFIG=$cppunit_config_prefix/bin/cppunit-config
43670 fi
43671 fi
43672
43673 # Extract the first word of "cppunit-config", so it can be a program name with args.
43674set dummy cppunit-config; ac_word=$2
43675echo "$as_me:$LINENO: checking for $ac_word" >&5
43676echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
43677if test "${ac_cv_path_CPPUNIT_CONFIG+set}" = set; then
43678 echo $ECHO_N "(cached) $ECHO_C" >&6
43679else
43680 case $CPPUNIT_CONFIG in
43681 [\\/]* | ?:[\\/]*)
43682 ac_cv_path_CPPUNIT_CONFIG="$CPPUNIT_CONFIG" # Let the user override the test with a path.
43683 ;;
43684 *)
43685 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43686for as_dir in $PATH
43687do
43688 IFS=$as_save_IFS
43689 test -z "$as_dir" && as_dir=.
43690 for ac_exec_ext in '' $ac_executable_extensions; do
43691 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
43692 ac_cv_path_CPPUNIT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
43693 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
43694 break 2
43695 fi
43696done
43697done
43698
43699 test -z "$ac_cv_path_CPPUNIT_CONFIG" && ac_cv_path_CPPUNIT_CONFIG="no"
43700 ;;
43701esac
43702fi
43703CPPUNIT_CONFIG=$ac_cv_path_CPPUNIT_CONFIG
43704
43705if test -n "$CPPUNIT_CONFIG"; then
43706 echo "$as_me:$LINENO: result: $CPPUNIT_CONFIG" >&5
43707echo "${ECHO_T}$CPPUNIT_CONFIG" >&6
43708else
43709 echo "$as_me:$LINENO: result: no" >&5
43710echo "${ECHO_T}no" >&6
43711fi
43712
43713 cppunit_version_min=1.8.0
43714
43715 echo "$as_me:$LINENO: checking for Cppunit - version >= $cppunit_version_min" >&5
43716echo $ECHO_N "checking for Cppunit - version >= $cppunit_version_min... $ECHO_C" >&6
43717 no_cppunit=""
43718 if test "$CPPUNIT_CONFIG" = "no" ; then
43719 no_cppunit=yes
43720 else
43721 CPPUNIT_CFLAGS=`$CPPUNIT_CONFIG --cflags`
43722 CPPUNIT_LIBS=`$CPPUNIT_CONFIG --libs`
43723 cppunit_version=`$CPPUNIT_CONFIG --version`
43724
43725 cppunit_major_version=`echo $cppunit_version | \
43726 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
43727 cppunit_minor_version=`echo $cppunit_version | \
43728 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
43729 cppunit_micro_version=`echo $cppunit_version | \
43730 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
43731
43732 cppunit_major_min=`echo $cppunit_version_min | \
43733 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
43734 cppunit_minor_min=`echo $cppunit_version_min | \
43735 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
43736 cppunit_micro_min=`echo $cppunit_version_min | \
43737 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
43738
43739 cppunit_version_proper=`expr \
43740 $cppunit_major_version \> $cppunit_major_min \| \
43741 $cppunit_major_version \= $cppunit_major_min \& \
43742 $cppunit_minor_version \> $cppunit_minor_min \| \
43743 $cppunit_major_version \= $cppunit_major_min \& \
43744 $cppunit_minor_version \= $cppunit_minor_min \& \
43745 $cppunit_micro_version \>= $cppunit_micro_min `
43746
43747 if test "$cppunit_version_proper" = "1" ; then
43748 echo "$as_me:$LINENO: result: $cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&5
43749echo "${ECHO_T}$cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&6
43750 else
43751 echo "$as_me:$LINENO: result: no" >&5
43752echo "${ECHO_T}no" >&6
43753 no_cppunit=yes
43754 fi
43755 fi
43756
43757 if test "x$no_cppunit" = x ; then
c2218763 43758 SUBDIRS="$SUBDIRS tests"
a848cd7e
SC
43759 else
43760 CPPUNIT_CFLAGS=""
43761 CPPUNIT_LIBS=""
c2218763 43762 :
a848cd7e
SC
43763 fi
43764
43765
43766
43767
43768
43769for subdir in `echo $SUBDIRS`; do
43770 if test -d ${srcdir}/${subdir} ; then
43771 if test "$wxUSE_GUI" = "yes"; then
43772 if test ${subdir} = "samples"; then
43773 makefiles="samples/Makefile.in $makefiles"
43774 for sample in `echo $SAMPLES_SUBDIRS`; do
43775 if test -d $srcdir/samples/$sample; then
43776 makefiles="samples/$sample/Makefile.in $makefiles"
43777 fi
43778 done
43779 else makefiles=`(cd $srcdir ; find $subdir -name Makefile.in)`
43780 fi
43781 else if test ${subdir} = "samples"; then
43782 makefiles="samples/Makefile.in samples/console/Makefile.in"
43783 elif test ${subdir} = "utils"; then
6537ccf8
VS
43784 makefiles=""
43785 for util in HelpGen tex2rtf ; do
43786 if test -d $srcdir/utils/$util ; then
43787 makefiles="utils/$util/Makefile.in \
43788 utils/$util/src/Makefile.in \
43789 $makefiles"
43790 fi
43791 done
a848cd7e
SC
43792 else makefiles=`(cd $srcdir ; find $subdir -name Makefile.in)`
43793 fi
43794 fi
43795
43796 for mkin in $makefiles ; do
43797 mk=`echo $mkin | sed 's/Makefile\.in/Makefile/g'`
43798 ac_config_files="$ac_config_files $mk"
43799
43800 done
43801 fi
43802done
43803
43804
43805cat >confcache <<\_ACEOF
43806# This file is a shell script that caches the results of configure
43807# tests run on this system so they can be shared between configure
43808# scripts and configure runs, see configure's option --config-cache.
43809# It is not useful on other systems. If it contains results you don't
43810# want to keep, you may remove or edit it.
43811#
43812# config.status only pays attention to the cache file if you give it
43813# the --recheck option to rerun configure.
43814#
43815# `ac_cv_env_foo' variables (set or unset) will be overridden when
43816# loading this file, other *unset* `ac_cv_foo' will be assigned the
43817# following values.
43818
43819_ACEOF
43820
43821# The following way of writing the cache mishandles newlines in values,
43822# but we know of no workaround that is simple, portable, and efficient.
43823# So, don't put newlines in cache variables' values.
43824# Ultrix sh set writes to stderr and can't be redirected directly,
43825# and sets the high bit in the cache file unless we assign to the vars.
43826{
43827 (set) 2>&1 |
43828 case `(ac_space=' '; set | grep ac_space) 2>&1` in
43829 *ac_space=\ *)
43830 # `set' does not quote correctly, so add quotes (double-quote
43831 # substitution turns \\\\ into \\, and sed turns \\ into \).
43832 sed -n \
ac1cb8d3
VS
43833 "s/'/'\\\\''/g;
43834 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a848cd7e
SC
43835 ;;
43836 *)
43837 # `set' quotes correctly as required by POSIX, so do not add quotes.
43838 sed -n \
ac1cb8d3 43839 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
43840 ;;
43841 esac;
43842} |
43843 sed '
43844 t clear
43845 : clear
43846 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
43847 t end
43848 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
43849 : end' >>confcache
43850if diff $cache_file confcache >/dev/null 2>&1; then :; else
43851 if test -w $cache_file; then
43852 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
43853 cat confcache >$cache_file
43854 else
43855 echo "not updating unwritable cache $cache_file"
43856 fi
43857fi
43858rm -f confcache
43859
43860test "x$prefix" = xNONE && prefix=$ac_default_prefix
43861# Let make expand exec_prefix.
43862test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
43863
43864# VPATH may cause trouble with some makes, so we remove $(srcdir),
43865# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
43866# trailing colons and then remove the whole line if VPATH becomes empty
43867# (actually we leave an empty line to preserve line numbers).
43868if test "x$srcdir" = x.; then
ac1cb8d3 43869 ac_vpsub='/^[ ]*VPATH[ ]*=/{
a848cd7e
SC
43870s/:*\$(srcdir):*/:/;
43871s/:*\${srcdir}:*/:/;
43872s/:*@srcdir@:*/:/;
ac1cb8d3 43873s/^\([^=]*=[ ]*\):*/\1/;
a848cd7e 43874s/:*$//;
ac1cb8d3 43875s/^[^=]*=[ ]*$//;
a848cd7e
SC
43876}'
43877fi
43878
43879DEFS=-DHAVE_CONFIG_H
43880
43881ac_libobjs=
43882ac_ltlibobjs=
43883for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
43884 # 1. Remove the extension, and $U if already installed.
43885 ac_i=`echo "$ac_i" |
ac1cb8d3 43886 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
a848cd7e
SC
43887 # 2. Add them.
43888 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
43889 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
43890done
43891LIBOBJS=$ac_libobjs
43892
43893LTLIBOBJS=$ac_ltlibobjs
43894
43895
43896
43897: ${CONFIG_STATUS=./config.status}
43898ac_clean_files_save=$ac_clean_files
43899ac_clean_files="$ac_clean_files $CONFIG_STATUS"
43900{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
43901echo "$as_me: creating $CONFIG_STATUS" >&6;}
43902cat >$CONFIG_STATUS <<_ACEOF
43903#! $SHELL
43904# Generated by $as_me.
43905# Run this file to recreate the current configuration.
43906# Compiler output produced by configure, useful for debugging
43907# configure, is in config.log if it exists.
43908
43909debug=false
43910ac_cs_recheck=false
43911ac_cs_silent=false
43912SHELL=\${CONFIG_SHELL-$SHELL}
43913_ACEOF
43914
43915cat >>$CONFIG_STATUS <<\_ACEOF
43916## --------------------- ##
43917## M4sh Initialization. ##
43918## --------------------- ##
43919
43920# Be Bourne compatible
43921if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
43922 emulate sh
43923 NULLCMD=:
43924 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
43925 # is contrary to our usage. Disable this feature.
43926 alias -g '${1+"$@"}'='"$@"'
43927elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
43928 set -o posix
43929fi
ac1cb8d3 43930DUALCASE=1; export DUALCASE # for MKS sh
a848cd7e
SC
43931
43932# Support unset when possible.
ac1cb8d3 43933if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
a848cd7e
SC
43934 as_unset=unset
43935else
43936 as_unset=false
43937fi
43938
43939
43940# Work around bugs in pre-3.0 UWIN ksh.
43941$as_unset ENV MAIL MAILPATH
43942PS1='$ '
43943PS2='> '
43944PS4='+ '
43945
43946# NLS nuisances.
43947for as_var in \
43948 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
43949 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
43950 LC_TELEPHONE LC_TIME
43951do
ac1cb8d3 43952 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
a848cd7e
SC
43953 eval $as_var=C; export $as_var
43954 else
43955 $as_unset $as_var
43956 fi
43957done
43958
43959# Required to use basename.
43960if expr a : '\(a\)' >/dev/null 2>&1; then
43961 as_expr=expr
43962else
43963 as_expr=false
43964fi
43965
43966if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
43967 as_basename=basename
43968else
43969 as_basename=false
43970fi
43971
43972
43973# Name of the executable.
43974as_me=`$as_basename "$0" ||
43975$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
43976 X"$0" : 'X\(//\)$' \| \
43977 X"$0" : 'X\(/\)$' \| \
43978 . : '\(.\)' 2>/dev/null ||
43979echo X/"$0" |
43980 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
43981 /^X\/\(\/\/\)$/{ s//\1/; q; }
43982 /^X\/\(\/\).*/{ s//\1/; q; }
43983 s/.*/./; q'`
43984
43985
43986# PATH needs CR, and LINENO needs CR and PATH.
43987# Avoid depending upon Character Ranges.
43988as_cr_letters='abcdefghijklmnopqrstuvwxyz'
43989as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
43990as_cr_Letters=$as_cr_letters$as_cr_LETTERS
43991as_cr_digits='0123456789'
43992as_cr_alnum=$as_cr_Letters$as_cr_digits
43993
43994# The user is always right.
43995if test "${PATH_SEPARATOR+set}" != set; then
43996 echo "#! /bin/sh" >conf$$.sh
43997 echo "exit 0" >>conf$$.sh
43998 chmod +x conf$$.sh
43999 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
44000 PATH_SEPARATOR=';'
44001 else
44002 PATH_SEPARATOR=:
44003 fi
44004 rm -f conf$$.sh
44005fi
44006
44007
44008 as_lineno_1=$LINENO
44009 as_lineno_2=$LINENO
44010 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
44011 test "x$as_lineno_1" != "x$as_lineno_2" &&
44012 test "x$as_lineno_3" = "x$as_lineno_2" || {
44013 # Find who we are. Look in the path if we contain no path at all
44014 # relative or not.
44015 case $0 in
44016 *[\\/]* ) as_myself=$0 ;;
44017 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44018for as_dir in $PATH
44019do
44020 IFS=$as_save_IFS
44021 test -z "$as_dir" && as_dir=.
44022 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
44023done
44024
44025 ;;
44026 esac
44027 # We did not find ourselves, most probably we were run as `sh COMMAND'
44028 # in which case we are not to be found in the path.
44029 if test "x$as_myself" = x; then
44030 as_myself=$0
44031 fi
44032 if test ! -f "$as_myself"; then
44033 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
44034echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
44035 { (exit 1); exit 1; }; }
44036 fi
44037 case $CONFIG_SHELL in
44038 '')
44039 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44040for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
44041do
44042 IFS=$as_save_IFS
44043 test -z "$as_dir" && as_dir=.
44044 for as_base in sh bash ksh sh5; do
44045 case $as_dir in
44046 /*)
44047 if ("$as_dir/$as_base" -c '
44048 as_lineno_1=$LINENO
44049 as_lineno_2=$LINENO
44050 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
44051 test "x$as_lineno_1" != "x$as_lineno_2" &&
44052 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
44053 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
44054 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
44055 CONFIG_SHELL=$as_dir/$as_base
44056 export CONFIG_SHELL
44057 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
44058 fi;;
44059 esac
44060 done
44061done
44062;;
44063 esac
44064
44065 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
44066 # uniformly replaced by the line number. The first 'sed' inserts a
44067 # line-number line before each line; the second 'sed' does the real
44068 # work. The second script uses 'N' to pair each line-number line
44069 # with the numbered line, and appends trailing '-' during
44070 # substitution so that $LINENO is not a special case at line end.
44071 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
44072 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
44073 sed '=' <$as_myself |
44074 sed '
44075 N
44076 s,$,-,
44077 : loop
44078 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
44079 t loop
44080 s,-$,,
44081 s,^['$as_cr_digits']*\n,,
44082 ' >$as_me.lineno &&
44083 chmod +x $as_me.lineno ||
44084 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
44085echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
44086 { (exit 1); exit 1; }; }
44087
44088 # Don't try to exec as it changes $[0], causing all sort of problems
44089 # (the dirname of $[0] is not the place where we might find the
44090 # original and so on. Autoconf is especially sensible to this).
44091 . ./$as_me.lineno
44092 # Exit status is that of the last command.
44093 exit
44094}
44095
44096
44097case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
44098 *c*,-n*) ECHO_N= ECHO_C='
44099' ECHO_T=' ' ;;
44100 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
44101 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
44102esac
44103
44104if expr a : '\(a\)' >/dev/null 2>&1; then
44105 as_expr=expr
44106else
44107 as_expr=false
44108fi
44109
44110rm -f conf$$ conf$$.exe conf$$.file
44111echo >conf$$.file
44112if ln -s conf$$.file conf$$ 2>/dev/null; then
44113 # We could just check for DJGPP; but this test a) works b) is more generic
44114 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
44115 if test -f conf$$.exe; then
44116 # Don't use ln at all; we don't have any links
44117 as_ln_s='cp -p'
44118 else
44119 as_ln_s='ln -s'
44120 fi
44121elif ln conf$$.file conf$$ 2>/dev/null; then
44122 as_ln_s=ln
44123else
44124 as_ln_s='cp -p'
44125fi
44126rm -f conf$$ conf$$.exe conf$$.file
44127
44128if mkdir -p . 2>/dev/null; then
44129 as_mkdir_p=:
44130else
ac1cb8d3 44131 test -d ./-p && rmdir ./-p
a848cd7e
SC
44132 as_mkdir_p=false
44133fi
44134
44135as_executable_p="test -f"
44136
44137# Sed expression to map a string onto a valid CPP name.
ac1cb8d3 44138as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
a848cd7e
SC
44139
44140# Sed expression to map a string onto a valid variable name.
ac1cb8d3 44141as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
a848cd7e
SC
44142
44143
44144# IFS
44145# We need space, tab and new line, in precisely that order.
44146as_nl='
44147'
44148IFS=" $as_nl"
44149
44150# CDPATH.
44151$as_unset CDPATH
44152
44153exec 6>&1
44154
44155# Open the log real soon, to keep \$[0] and so on meaningful, and to
44156# report actual input values of CONFIG_FILES etc. instead of their
44157# values after options handling. Logging --version etc. is OK.
44158exec 5>>config.log
44159{
44160 echo
44161 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
44162## Running $as_me. ##
44163_ASBOX
44164} >&5
44165cat >&5 <<_CSEOF
44166
e0d84535 44167This file was extended by wxWidgets $as_me 2.6.0, which was
ac1cb8d3 44168generated by GNU Autoconf 2.59. Invocation command line was
a848cd7e
SC
44169
44170 CONFIG_FILES = $CONFIG_FILES
44171 CONFIG_HEADERS = $CONFIG_HEADERS
44172 CONFIG_LINKS = $CONFIG_LINKS
44173 CONFIG_COMMANDS = $CONFIG_COMMANDS
44174 $ $0 $@
44175
44176_CSEOF
44177echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
44178echo >&5
44179_ACEOF
44180
44181# Files that config.status was made for.
44182if test -n "$ac_config_files"; then
44183 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
44184fi
44185
44186if test -n "$ac_config_headers"; then
44187 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
44188fi
44189
44190if test -n "$ac_config_links"; then
44191 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
44192fi
44193
44194if test -n "$ac_config_commands"; then
44195 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
44196fi
44197
44198cat >>$CONFIG_STATUS <<\_ACEOF
44199
44200ac_cs_usage="\
44201\`$as_me' instantiates files from templates according to the
44202current configuration.
44203
44204Usage: $0 [OPTIONS] [FILE]...
44205
44206 -h, --help print this help, then exit
44207 -V, --version print version number, then exit
44208 -q, --quiet do not print progress messages
44209 -d, --debug don't remove temporary files
44210 --recheck update $as_me by reconfiguring in the same conditions
44211 --file=FILE[:TEMPLATE]
ac1cb8d3 44212 instantiate the configuration file FILE
a848cd7e 44213 --header=FILE[:TEMPLATE]
ac1cb8d3 44214 instantiate the configuration header FILE
a848cd7e
SC
44215
44216Configuration files:
44217$config_files
44218
44219Configuration headers:
44220$config_headers
44221
44222Configuration commands:
44223$config_commands
44224
44225Report bugs to <bug-autoconf@gnu.org>."
44226_ACEOF
44227
44228cat >>$CONFIG_STATUS <<_ACEOF
44229ac_cs_version="\\
e0d84535 44230wxWidgets config.status 2.6.0
ac1cb8d3 44231configured by $0, generated by GNU Autoconf 2.59,
a848cd7e
SC
44232 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
44233
ac1cb8d3 44234Copyright (C) 2003 Free Software Foundation, Inc.
a848cd7e
SC
44235This config.status script is free software; the Free Software Foundation
44236gives unlimited permission to copy, distribute and modify it."
44237srcdir=$srcdir
44238INSTALL="$INSTALL"
44239_ACEOF
44240
44241cat >>$CONFIG_STATUS <<\_ACEOF
44242# If no file are specified by the user, then we need to provide default
44243# value. By we need to know if files were specified by the user.
44244ac_need_defaults=:
44245while test $# != 0
44246do
44247 case $1 in
44248 --*=*)
44249 ac_option=`expr "x$1" : 'x\([^=]*\)='`
44250 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
44251 ac_shift=:
44252 ;;
44253 -*)
44254 ac_option=$1
44255 ac_optarg=$2
44256 ac_shift=shift
44257 ;;
44258 *) # This is not an option, so the user has probably given explicit
44259 # arguments.
44260 ac_option=$1
44261 ac_need_defaults=false;;
44262 esac
44263
44264 case $ac_option in
44265 # Handling of the options.
44266_ACEOF
44267cat >>$CONFIG_STATUS <<\_ACEOF
44268 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
44269 ac_cs_recheck=: ;;
44270 --version | --vers* | -V )
44271 echo "$ac_cs_version"; exit 0 ;;
44272 --he | --h)
44273 # Conflict between --help and --header
44274 { { echo "$as_me:$LINENO: error: ambiguous option: $1
44275Try \`$0 --help' for more information." >&5
44276echo "$as_me: error: ambiguous option: $1
44277Try \`$0 --help' for more information." >&2;}
44278 { (exit 1); exit 1; }; };;
44279 --help | --hel | -h )
44280 echo "$ac_cs_usage"; exit 0 ;;
44281 --debug | --d* | -d )
44282 debug=: ;;
44283 --file | --fil | --fi | --f )
44284 $ac_shift
44285 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
44286 ac_need_defaults=false;;
44287 --header | --heade | --head | --hea )
44288 $ac_shift
44289 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
44290 ac_need_defaults=false;;
44291 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
44292 | -silent | --silent | --silen | --sile | --sil | --si | --s)
44293 ac_cs_silent=: ;;
44294
44295 # This is an error.
44296 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
44297Try \`$0 --help' for more information." >&5
44298echo "$as_me: error: unrecognized option: $1
44299Try \`$0 --help' for more information." >&2;}
44300 { (exit 1); exit 1; }; } ;;
44301
44302 *) ac_config_targets="$ac_config_targets $1" ;;
44303
44304 esac
44305 shift
44306done
44307
44308ac_configure_extra_args=
44309
44310if $ac_cs_silent; then
44311 exec 6>/dev/null
44312 ac_configure_extra_args="$ac_configure_extra_args --silent"
44313fi
44314
44315_ACEOF
44316cat >>$CONFIG_STATUS <<_ACEOF
44317if \$ac_cs_recheck; then
44318 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
44319 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
44320fi
44321
44322_ACEOF
44323
44324cat >>$CONFIG_STATUS <<_ACEOF
44325#
44326# INIT-COMMANDS section.
44327#
44328
ceec2216
RL
44329 TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
44330 TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
44331 TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
44332 LN_S="${LN_S}"
a848cd7e
SC
44333
44334
44335_ACEOF
44336
44337
44338
44339cat >>$CONFIG_STATUS <<\_ACEOF
44340for ac_config_target in $ac_config_targets
44341do
44342 case "$ac_config_target" in
44343 # Handling of arguments.
ceec2216
RL
44344 "lib/wx/config/${TOOLCHAIN_FULLNAME}" ) CONFIG_FILES="$CONFIG_FILES lib/wx/config/${TOOLCHAIN_FULLNAME}:wx-config.in" ;;
44345 "lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}" ) CONFIG_FILES="$CONFIG_FILES lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}:wx-config-inplace.in" ;;
a848cd7e
SC
44346 "version-script" ) CONFIG_FILES="$CONFIG_FILES version-script" ;;
44347 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
44348 "$mk" ) CONFIG_FILES="$CONFIG_FILES $mk" ;;
ceec2216
RL
44349 "wx-config" ) CONFIG_COMMANDS="$CONFIG_COMMANDS wx-config" ;;
44350 "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
44351 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
44352echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
44353 { (exit 1); exit 1; }; };;
44354 esac
44355done
44356
44357# If the user did not use the arguments to specify the items to instantiate,
44358# then the envvar interface is used. Set only those that are not.
44359# We use the long form for the default assignment because of an extremely
44360# bizarre bug on SunOS 4.1.3.
44361if $ac_need_defaults; then
44362 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
44363 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
44364 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
44365fi
44366
44367# Have a temporary directory for convenience. Make it in the build tree
44368# simply because there is no reason to put it here, and in addition,
44369# creating and moving files from /tmp can sometimes cause problems.
44370# Create a temporary directory, and hook for its removal unless debugging.
44371$debug ||
44372{
44373 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
44374 trap '{ (exit 1); exit 1; }' 1 2 13 15
44375}
44376
44377# Create a (secure) tmp directory for tmp files.
44378
44379{
44380 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
44381 test -n "$tmp" && test -d "$tmp"
44382} ||
44383{
44384 tmp=./confstat$$-$RANDOM
44385 (umask 077 && mkdir $tmp)
44386} ||
44387{
44388 echo "$me: cannot create a temporary directory in ." >&2
44389 { (exit 1); exit 1; }
44390}
44391
44392_ACEOF
44393
44394cat >>$CONFIG_STATUS <<_ACEOF
44395
44396#
44397# CONFIG_FILES section.
44398#
44399
44400# No need to generate the scripts if there are no CONFIG_FILES.
44401# This happens for instance when ./config.status config.h
44402if test -n "\$CONFIG_FILES"; then
44403 # Protect against being on the right side of a sed subst in config.status.
44404 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
44405 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
44406s,@SHELL@,$SHELL,;t t
44407s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
44408s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
44409s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
44410s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
44411s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
44412s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
44413s,@exec_prefix@,$exec_prefix,;t t
44414s,@prefix@,$prefix,;t t
44415s,@program_transform_name@,$program_transform_name,;t t
44416s,@bindir@,$bindir,;t t
44417s,@sbindir@,$sbindir,;t t
44418s,@libexecdir@,$libexecdir,;t t
44419s,@datadir@,$datadir,;t t
44420s,@sysconfdir@,$sysconfdir,;t t
44421s,@sharedstatedir@,$sharedstatedir,;t t
44422s,@localstatedir@,$localstatedir,;t t
44423s,@libdir@,$libdir,;t t
44424s,@includedir@,$includedir,;t t
44425s,@oldincludedir@,$oldincludedir,;t t
44426s,@infodir@,$infodir,;t t
44427s,@mandir@,$mandir,;t t
44428s,@build_alias@,$build_alias,;t t
44429s,@host_alias@,$host_alias,;t t
44430s,@target_alias@,$target_alias,;t t
44431s,@DEFS@,$DEFS,;t t
44432s,@ECHO_C@,$ECHO_C,;t t
44433s,@ECHO_N@,$ECHO_N,;t t
44434s,@ECHO_T@,$ECHO_T,;t t
44435s,@LIBS@,$LIBS,;t t
44436s,@build@,$build,;t t
44437s,@build_cpu@,$build_cpu,;t t
44438s,@build_vendor@,$build_vendor,;t t
44439s,@build_os@,$build_os,;t t
44440s,@host@,$host,;t t
44441s,@host_cpu@,$host_cpu,;t t
44442s,@host_vendor@,$host_vendor,;t t
44443s,@host_os@,$host_os,;t t
44444s,@target@,$target,;t t
44445s,@target_cpu@,$target_cpu,;t t
44446s,@target_vendor@,$target_vendor,;t t
44447s,@target_os@,$target_os,;t t
44448s,@CC@,$CC,;t t
44449s,@CFLAGS@,$CFLAGS,;t t
44450s,@LDFLAGS@,$LDFLAGS,;t t
44451s,@CPPFLAGS@,$CPPFLAGS,;t t
44452s,@ac_ct_CC@,$ac_ct_CC,;t t
44453s,@EXEEXT@,$EXEEXT,;t t
44454s,@OBJEXT@,$OBJEXT,;t t
44455s,@CPP@,$CPP,;t t
44456s,@EGREP@,$EGREP,;t t
44457s,@CXX@,$CXX,;t t
44458s,@CXXFLAGS@,$CXXFLAGS,;t t
44459s,@ac_ct_CXX@,$ac_ct_CXX,;t t
44460s,@RANLIB@,$RANLIB,;t t
44461s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
44462s,@AR@,$AR,;t t
44463s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
44464s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
44465s,@INSTALL_DATA@,$INSTALL_DATA,;t t
44466s,@STRIP@,$STRIP,;t t
44467s,@IF_GNU_MAKE@,$IF_GNU_MAKE,;t t
44468s,@LN_S@,$LN_S,;t t
44469s,@CXXCPP@,$CXXCPP,;t t
44470s,@subdirs@,$subdirs,;t t
44471s,@PKG_CONFIG@,$PKG_CONFIG,;t t
44472s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
44473s,@GTK_LIBS@,$GTK_LIBS,;t t
44474s,@GTK_CONFIG@,$GTK_CONFIG,;t t
a848cd7e
SC
44475s,@X_CFLAGS@,$X_CFLAGS,;t t
44476s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
44477s,@X_LIBS@,$X_LIBS,;t t
44478s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
44479s,@PANGOX_CFLAGS@,$PANGOX_CFLAGS,;t t
44480s,@PANGOX_LIBS@,$PANGOX_LIBS,;t t
d1c38808
VZ
44481s,@PANGOFT2_CFLAGS@,$PANGOFT2_CFLAGS,;t t
44482s,@PANGOFT2_LIBS@,$PANGOFT2_LIBS,;t t
a848cd7e
SC
44483s,@PANGOXFT_CFLAGS@,$PANGOXFT_CFLAGS,;t t
44484s,@PANGOXFT_LIBS@,$PANGOXFT_LIBS,;t t
44485s,@RESCOMP@,$RESCOMP,;t t
44486s,@DEREZ@,$DEREZ,;t t
44487s,@SETFILE@,$SETFILE,;t t
44488s,@LIBICONV@,$LIBICONV,;t t
44489s,@EXTRALIBS_ESD@,$EXTRALIBS_ESD,;t t
44490s,@SDL_CONFIG@,$SDL_CONFIG,;t t
44491s,@SDL_CFLAGS@,$SDL_CFLAGS,;t t
44492s,@SDL_LIBS@,$SDL_LIBS,;t t
d1c38808
VZ
44493s,@LIBGNOMEPRINTUI_CFLAGS@,$LIBGNOMEPRINTUI_CFLAGS,;t t
44494s,@LIBGNOMEPRINTUI_LIBS@,$LIBGNOMEPRINTUI_LIBS,;t t
dae87f93
RN
44495s,@GSTREAMER_CFLAGS@,$GSTREAMER_CFLAGS,;t t
44496s,@GSTREAMER_LIBS@,$GSTREAMER_LIBS,;t t
44497s,@GST_INSPECT@,$GST_INSPECT,;t t
a848cd7e
SC
44498s,@CORE_BASE_LIBS@,$CORE_BASE_LIBS,;t t
44499s,@CORE_GUI_LIBS@,$CORE_GUI_LIBS,;t t
44500s,@wxUSE_ZLIB@,$wxUSE_ZLIB,;t t
44501s,@wxUSE_REGEX@,$wxUSE_REGEX,;t t
44502s,@wxUSE_EXPAT@,$wxUSE_EXPAT,;t t
44503s,@wxUSE_ODBC@,$wxUSE_ODBC,;t t
44504s,@wxUSE_LIBJPEG@,$wxUSE_LIBJPEG,;t t
44505s,@wxUSE_LIBPNG@,$wxUSE_LIBPNG,;t t
44506s,@wxUSE_LIBTIFF@,$wxUSE_LIBTIFF,;t t
44507s,@VENDOR@,$VENDOR,;t t
44508s,@OFFICIAL_BUILD@,$OFFICIAL_BUILD,;t t
ceec2216
RL
44509s,@WX_FLAVOUR@,$WX_FLAVOUR,;t t
44510s,@WX_LIB_FLAVOUR@,$WX_LIB_FLAVOUR,;t t
a848cd7e
SC
44511s,@WXUNIV@,$WXUNIV,;t t
44512s,@MONOLITHIC@,$MONOLITHIC,;t t
44513s,@USE_PLUGINS@,$USE_PLUGINS,;t t
44514s,@EXTRALIBS@,$EXTRALIBS,;t t
44515s,@EXTRALIBS_XML@,$EXTRALIBS_XML,;t t
44516s,@EXTRALIBS_HTML@,$EXTRALIBS_HTML,;t t
44517s,@EXTRALIBS_ODBC@,$EXTRALIBS_ODBC,;t t
44518s,@EXTRALIBS_GUI@,$EXTRALIBS_GUI,;t t
44519s,@EXTRALIBS_OPENGL@,$EXTRALIBS_OPENGL,;t t
44520s,@EXTRALIBS_SDL@,$EXTRALIBS_SDL,;t t
44521s,@WITH_PLUGIN_SDL@,$WITH_PLUGIN_SDL,;t t
d1c38808 44522s,@EXTRALIBS_GNOMEPRINT@,$EXTRALIBS_GNOMEPRINT,;t t
a848cd7e
SC
44523s,@UNICODE@,$UNICODE,;t t
44524s,@BUILD@,$BUILD,;t t
44525s,@DEBUG_INFO@,$DEBUG_INFO,;t t
44526s,@DEBUG_FLAG@,$DEBUG_FLAG,;t t
a848cd7e
SC
44527s,@TOOLKIT_LOWERCASE@,$TOOLKIT_LOWERCASE,;t t
44528s,@TOOLKIT_VERSION@,$TOOLKIT_VERSION,;t t
44529s,@SAMPLES_RPATH_FLAG@,$SAMPLES_RPATH_FLAG,;t t
44530s,@SAMPLES_RPATH_POSTLINK@,$SAMPLES_RPATH_POSTLINK,;t t
44531s,@HOST_SUFFIX@,$HOST_SUFFIX,;t t
44532s,@CPPUNIT_CFLAGS@,$CPPUNIT_CFLAGS,;t t
44533s,@CPPUNIT_LIBS@,$CPPUNIT_LIBS,;t t
44534s,@SET_MAKE@,$SET_MAKE,;t t
44535s,@MAKE_SET@,$MAKE_SET,;t t
44536s,@ac_ct_AR@,$ac_ct_AR,;t t
44537s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
44538s,@NM@,$NM,;t t
44539s,@ac_ct_NM@,$ac_ct_NM,;t t
44540s,@INSTALL_DIR@,$INSTALL_DIR,;t t
44541s,@LDFLAGS_GUI@,$LDFLAGS_GUI,;t t
44542s,@PLATFORM_UNIX@,$PLATFORM_UNIX,;t t
44543s,@PLATFORM_WIN32@,$PLATFORM_WIN32,;t t
44544s,@PLATFORM_MSDOS@,$PLATFORM_MSDOS,;t t
44545s,@PLATFORM_MAC@,$PLATFORM_MAC,;t t
1e9e8aba 44546s,@PLATFORM_MACOS@,$PLATFORM_MACOS,;t t
a848cd7e
SC
44547s,@PLATFORM_MACOSX@,$PLATFORM_MACOSX,;t t
44548s,@PLATFORM_OS2@,$PLATFORM_OS2,;t t
1e9e8aba 44549s,@PLATFORM_BEOS@,$PLATFORM_BEOS,;t t
a848cd7e
SC
44550s,@SO_SUFFIX@,$SO_SUFFIX,;t t
44551s,@SO_SUFFIX_MODULE@,$SO_SUFFIX_MODULE,;t t
44552s,@DLLIMP_SUFFIX@,$DLLIMP_SUFFIX,;t t
44553s,@LIBPREFIX@,$LIBPREFIX,;t t
44554s,@LIBEXT@,$LIBEXT,;t t
44555s,@DLLPREFIX@,$DLLPREFIX,;t t
44556s,@DLLPREFIX_MODULE@,$DLLPREFIX_MODULE,;t t
44557s,@AIX_CXX_LD@,$AIX_CXX_LD,;t t
44558s,@SHARED_LD_CC@,$SHARED_LD_CC,;t t
44559s,@SHARED_LD_CXX@,$SHARED_LD_CXX,;t t
44560s,@SHARED_LD_MODULE_CC@,$SHARED_LD_MODULE_CC,;t t
44561s,@SHARED_LD_MODULE_CXX@,$SHARED_LD_MODULE_CXX,;t t
44562s,@PIC_FLAG@,$PIC_FLAG,;t t
44563s,@USE_SOVERSION@,$USE_SOVERSION,;t t
44564s,@USE_SOVERLINUX@,$USE_SOVERLINUX,;t t
44565s,@USE_SOVERSOLARIS@,$USE_SOVERSOLARIS,;t t
44566s,@USE_MACVERSION@,$USE_MACVERSION,;t t
44567s,@USE_SOSYMLINKS@,$USE_SOSYMLINKS,;t t
44568s,@SONAME_FLAG@,$SONAME_FLAG,;t t
44569s,@DEPS_TRACKING@,$DEPS_TRACKING,;t t
44570s,@GCC_PCH@,$GCC_PCH,;t t
44571s,@COND_BUILD_DEBUG@,$COND_BUILD_DEBUG,;t t
44572s,@COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT@,$COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT,;t t
44573s,@COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT@,$COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT,;t t
44574s,@COND_BUILD_DEBUG_UNICODE_0@,$COND_BUILD_DEBUG_UNICODE_0,;t t
44575s,@COND_BUILD_DEBUG_UNICODE_1@,$COND_BUILD_DEBUG_UNICODE_1,;t t
44576s,@COND_BUILD_RELEASE@,$COND_BUILD_RELEASE,;t t
44577s,@COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT@,$COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT,;t t
44578s,@COND_BUILD_RELEASE_UNICODE_0@,$COND_BUILD_RELEASE_UNICODE_0,;t t
44579s,@COND_BUILD_RELEASE_UNICODE_1@,$COND_BUILD_RELEASE_UNICODE_1,;t t
44580s,@COND_DEBUG_FLAG_1@,$COND_DEBUG_FLAG_1,;t t
44581s,@COND_DEBUG_INFO_0@,$COND_DEBUG_INFO_0,;t t
44582s,@COND_DEBUG_INFO_1@,$COND_DEBUG_INFO_1,;t t
44583s,@COND_DEPS_TRACKING_0@,$COND_DEPS_TRACKING_0,;t t
44584s,@COND_DEPS_TRACKING_1@,$COND_DEPS_TRACKING_1,;t t
44585s,@COND_GCC_PCH_1@,$COND_GCC_PCH_1,;t t
44586s,@COND_MONOLITHIC_0@,$COND_MONOLITHIC_0,;t t
44587s,@COND_MONOLITHIC_0_SHARED_0@,$COND_MONOLITHIC_0_SHARED_0,;t t
44588s,@COND_MONOLITHIC_0_SHARED_0_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1,;t t
90970d69 44589s,@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 44590s,@COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1,;t t
6671c68b 44591s,@COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1@,$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1,;t t
a848cd7e 44592s,@COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1,;t t
ceec2216 44593s,@COND_MONOLITHIC_0_SHARED_0_USE_XRC_1@,$COND_MONOLITHIC_0_SHARED_0_USE_XRC_1,;t t
a848cd7e
SC
44594s,@COND_MONOLITHIC_0_SHARED_1@,$COND_MONOLITHIC_0_SHARED_1,;t t
44595s,@COND_MONOLITHIC_0_SHARED_1_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1,;t t
90970d69 44596s,@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 44597s,@COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1,;t t
6671c68b 44598s,@COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1@,$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1,;t t
a848cd7e 44599s,@COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1,;t t
ceec2216 44600s,@COND_MONOLITHIC_0_SHARED_1_USE_XRC_1@,$COND_MONOLITHIC_0_SHARED_1_USE_XRC_1,;t t
a848cd7e
SC
44601s,@COND_MONOLITHIC_0_USE_ODBC_1@,$COND_MONOLITHIC_0_USE_ODBC_1,;t t
44602s,@COND_MONOLITHIC_1@,$COND_MONOLITHIC_1,;t t
44603s,@COND_MONOLITHIC_1_SHARED_0@,$COND_MONOLITHIC_1_SHARED_0,;t t
44604s,@COND_MONOLITHIC_1_SHARED_1@,$COND_MONOLITHIC_1_SHARED_1,;t t
44605s,@COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1,;t t
44606s,@COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1,;t t
44607s,@COND_PLATFORM_MACOSX_0_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_0_USE_SOVERSION_1,;t t
44608s,@COND_PLATFORM_MACOSX_1@,$COND_PLATFORM_MACOSX_1,;t t
a30f955f 44609s,@COND_PLATFORM_MACOSX_1_TOOLKIT_@,$COND_PLATFORM_MACOSX_1_TOOLKIT_,;t t
a848cd7e
SC
44610s,@COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA@,$COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA,;t t
44611s,@COND_PLATFORM_MACOSX_1_TOOLKIT_GTK@,$COND_PLATFORM_MACOSX_1_TOOLKIT_GTK,;t t
44612s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MAC@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MAC,;t t
fc480dc1 44613s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1,;t t
1e9e8aba 44614s,@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
44615s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF,;t t
44616s,@COND_PLATFORM_MACOSX_1_TOOLKIT_X11@,$COND_PLATFORM_MACOSX_1_TOOLKIT_X11,;t t
a848cd7e
SC
44617s,@COND_PLATFORM_MACOSX_1_USE_GUI_1@,$COND_PLATFORM_MACOSX_1_USE_GUI_1,;t t
44618s,@COND_PLATFORM_MACOSX_1_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_1_USE_SOVERSION_1,;t t
b48a2016 44619s,@COND_PLATFORM_MACOS_1@,$COND_PLATFORM_MACOS_1,;t t
a848cd7e
SC
44620s,@COND_PLATFORM_MAC_1@,$COND_PLATFORM_MAC_1,;t t
44621s,@COND_PLATFORM_OS2_1@,$COND_PLATFORM_OS2_1,;t t
44622s,@COND_PLATFORM_UNIX_0@,$COND_PLATFORM_UNIX_0,;t t
44623s,@COND_PLATFORM_UNIX_1@,$COND_PLATFORM_UNIX_1,;t t
44624s,@COND_PLATFORM_UNIX_1_USE_GUI_1@,$COND_PLATFORM_UNIX_1_USE_GUI_1,;t t
44625s,@COND_PLATFORM_UNIX_1_USE_PLUGINS_0@,$COND_PLATFORM_UNIX_1_USE_PLUGINS_0,;t t
44626s,@COND_PLATFORM_WIN32_0@,$COND_PLATFORM_WIN32_0,;t t
44627s,@COND_PLATFORM_WIN32_1@,$COND_PLATFORM_WIN32_1,;t t
44628s,@COND_SHARED_0@,$COND_SHARED_0,;t t
ceec2216
RL
44629s,@COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0,;t t
44630s,@COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0,;t t
44631s,@COND_SHARED_0_TOOLKIT_PM_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_PM_WXUNIV_0,;t t
a848cd7e
SC
44632s,@COND_SHARED_0_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_0_USE_GUI_1_USE_OPENGL_1,;t t
44633s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN,;t t
44634s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN,;t t
44635s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN,;t t
52ada004 44636s,@COND_SHARED_0_USE_XRC_1@,$COND_SHARED_0_USE_XRC_1,;t t
a848cd7e
SC
44637s,@COND_SHARED_0_WXUSE_EXPAT_BUILTIN@,$COND_SHARED_0_WXUSE_EXPAT_BUILTIN,;t t
44638s,@COND_SHARED_0_WXUSE_ODBC_BUILTIN@,$COND_SHARED_0_WXUSE_ODBC_BUILTIN,;t t
44639s,@COND_SHARED_0_WXUSE_REGEX_BUILTIN@,$COND_SHARED_0_WXUSE_REGEX_BUILTIN,;t t
44640s,@COND_SHARED_0_WXUSE_ZLIB_BUILTIN@,$COND_SHARED_0_WXUSE_ZLIB_BUILTIN,;t t
44641s,@COND_SHARED_1@,$COND_SHARED_1,;t t
44642s,@COND_SHARED_1_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_1_USE_GUI_1_USE_OPENGL_1,;t t
52ada004 44643s,@COND_SHARED_1_USE_XRC_1@,$COND_SHARED_1_USE_XRC_1,;t t
a30f955f 44644s,@COND_TOOLKIT_@,$COND_TOOLKIT_,;t t
a848cd7e 44645s,@COND_TOOLKIT_COCOA@,$COND_TOOLKIT_COCOA,;t t
a49baeab 44646s,@COND_TOOLKIT_COCOA_USE_GUI_1@,$COND_TOOLKIT_COCOA_USE_GUI_1,;t t
a848cd7e
SC
44647s,@COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0,;t t
44648s,@COND_TOOLKIT_GTK@,$COND_TOOLKIT_GTK,;t t
44649s,@COND_TOOLKIT_GTK_USE_GUI_1@,$COND_TOOLKIT_GTK_USE_GUI_1,;t t
44650s,@COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0,;t t
44651s,@COND_TOOLKIT_MAC@,$COND_TOOLKIT_MAC,;t t
44652s,@COND_TOOLKIT_MAC_USE_GUI_1@,$COND_TOOLKIT_MAC_USE_GUI_1,;t t
44653s,@COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0,;t t
44654s,@COND_TOOLKIT_MGL@,$COND_TOOLKIT_MGL,;t t
44655s,@COND_TOOLKIT_MGL_USE_GUI_1@,$COND_TOOLKIT_MGL_USE_GUI_1,;t t
44656s,@COND_TOOLKIT_MOTIF@,$COND_TOOLKIT_MOTIF,;t t
44657s,@COND_TOOLKIT_MOTIF_USE_GUI_1@,$COND_TOOLKIT_MOTIF_USE_GUI_1,;t t
44658s,@COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0,;t t
44659s,@COND_TOOLKIT_MSW@,$COND_TOOLKIT_MSW,;t t
44660s,@COND_TOOLKIT_MSW_USE_GUI_1@,$COND_TOOLKIT_MSW_USE_GUI_1,;t t
44661s,@COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0,;t t
44662s,@COND_TOOLKIT_PM@,$COND_TOOLKIT_PM,;t t
44663s,@COND_TOOLKIT_PM_USE_GUI_1@,$COND_TOOLKIT_PM_USE_GUI_1,;t t
44664s,@COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0,;t t
3fd9c298
DE
44665s,@COND_TOOLKIT_WINCE@,$COND_TOOLKIT_WINCE,;t t
44666s,@COND_TOOLKIT_WINCE_USE_GUI_1@,$COND_TOOLKIT_WINCE_USE_GUI_1,;t t
44667s,@COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0,;t t
a848cd7e
SC
44668s,@COND_TOOLKIT_X11@,$COND_TOOLKIT_X11,;t t
44669s,@COND_TOOLKIT_X11_USE_GUI_1@,$COND_TOOLKIT_X11_USE_GUI_1,;t t
44670s,@COND_UNICODE_1@,$COND_UNICODE_1,;t t
44671s,@COND_USE_EXCEPTIONS_0@,$COND_USE_EXCEPTIONS_0,;t t
44672s,@COND_USE_EXCEPTIONS_1@,$COND_USE_EXCEPTIONS_1,;t t
44673s,@COND_USE_GUI_0@,$COND_USE_GUI_0,;t t
44674s,@COND_USE_GUI_1@,$COND_USE_GUI_1,;t t
44675s,@COND_USE_GUI_1_WXUNIV_0@,$COND_USE_GUI_1_WXUNIV_0,;t t
44676s,@COND_USE_GUI_1_WXUNIV_1@,$COND_USE_GUI_1_WXUNIV_1,;t t
44677s,@COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN,;t t
44678s,@COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN,;t t
44679s,@COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN,;t t
ceec2216 44680s,@COND_USE_ODBC_1@,$COND_USE_ODBC_1,;t t
ffa0583f 44681s,@COND_USE_OPENGL_1@,$COND_USE_OPENGL_1,;t t
a848cd7e 44682s,@COND_USE_PLUGINS_0@,$COND_USE_PLUGINS_0,;t t
0b78747f
MW
44683s,@COND_USE_RTTI_0@,$COND_USE_RTTI_0,;t t
44684s,@COND_USE_RTTI_1@,$COND_USE_RTTI_1,;t t
a848cd7e
SC
44685s,@COND_USE_SOSYMLINKS_1@,$COND_USE_SOSYMLINKS_1,;t t
44686s,@COND_USE_SOVERLINUX_1@,$COND_USE_SOVERLINUX_1,;t t
44687s,@COND_USE_SOVERSION_0@,$COND_USE_SOVERSION_0,;t t
44688s,@COND_USE_SOVERSOLARIS_1@,$COND_USE_SOVERSOLARIS_1,;t t
0b78747f
MW
44689s,@COND_USE_THREADS_0@,$COND_USE_THREADS_0,;t t
44690s,@COND_USE_THREADS_1@,$COND_USE_THREADS_1,;t t
a13a7f89 44691s,@COND_USE_XRC_1@,$COND_USE_XRC_1,;t t
a848cd7e 44692s,@COND_WITH_PLUGIN_SDL_1@,$COND_WITH_PLUGIN_SDL_1,;t t
1e6eb025 44693s,@COND_WXUNIV_0@,$COND_WXUNIV_0,;t t
a848cd7e
SC
44694s,@COND_WXUNIV_1@,$COND_WXUNIV_1,;t t
44695s,@COND_WXUSE_EXPAT_BUILTIN@,$COND_WXUSE_EXPAT_BUILTIN,;t t
44696s,@COND_WXUSE_LIBJPEG_BUILTIN@,$COND_WXUSE_LIBJPEG_BUILTIN,;t t
44697s,@COND_WXUSE_LIBPNG_BUILTIN@,$COND_WXUSE_LIBPNG_BUILTIN,;t t
44698s,@COND_WXUSE_LIBTIFF_BUILTIN@,$COND_WXUSE_LIBTIFF_BUILTIN,;t t
44699s,@COND_WXUSE_ODBC_BUILTIN@,$COND_WXUSE_ODBC_BUILTIN,;t t
44700s,@COND_WXUSE_REGEX_BUILTIN@,$COND_WXUSE_REGEX_BUILTIN,;t t
44701s,@COND_WXUSE_ZLIB_BUILTIN@,$COND_WXUSE_ZLIB_BUILTIN,;t t
ceec2216 44702s,@SHARED@,$SHARED,;t t
a848cd7e
SC
44703s,@WX_LIBRARY_BASENAME_NOGUI@,$WX_LIBRARY_BASENAME_NOGUI,;t t
44704s,@WX_LIBRARY_BASENAME_GUI@,$WX_LIBRARY_BASENAME_GUI,;t t
a848cd7e
SC
44705s,@WXDEBUG_DEFINE@,$WXDEBUG_DEFINE,;t t
44706s,@USE_GUI@,$USE_GUI,;t t
44707s,@AFMINSTALL@,$AFMINSTALL,;t t
44708s,@WIN32INSTALL@,$WIN32INSTALL,;t t
44709s,@TOOLKIT@,$TOOLKIT,;t t
44710s,@TOOLKIT_DIR@,$TOOLKIT_DIR,;t t
a848cd7e 44711s,@TOOLCHAIN_NAME@,$TOOLCHAIN_NAME,;t t
ceec2216 44712s,@TOOLCHAIN_FULLNAME@,$TOOLCHAIN_FULLNAME,;t t
a848cd7e
SC
44713s,@TOOLCHAIN_DEFS@,$TOOLCHAIN_DEFS,;t t
44714s,@TOOLCHAIN_DLL_DEFS@,$TOOLCHAIN_DLL_DEFS,;t t
a848cd7e 44715s,@cross_compiling@,$cross_compiling,;t t
ceec2216
RL
44716s,@WIDGET_SET@,$WIDGET_SET,;t t
44717s,@WX_RELEASE@,$WX_RELEASE,;t t
44718s,@WX_VERSION@,$WX_VERSION,;t t
44719s,@WX_SUBVERSION@,$WX_SUBVERSION,;t t
44720s,@WX_CHARTYPE@,$WX_CHARTYPE,;t t
44721s,@WX_DEBUGTYPE@,$WX_DEBUGTYPE,;t t
a848cd7e 44722s,@WXCONFIG_EXTRALIBS@,$WXCONFIG_EXTRALIBS,;t t
a848cd7e
SC
44723s,@WXCONFIG_INCLUDE@,$WXCONFIG_INCLUDE,;t t
44724s,@WXCONFIG_RPATH@,$WXCONFIG_RPATH,;t t
44725s,@WXCONFIG_LDFLAGS_GUI@,$WXCONFIG_LDFLAGS_GUI,;t t
44726s,@WX_LARGEFILE_FLAGS@,$WX_LARGEFILE_FLAGS,;t t
74b84332 44727s,@GCC_PRAGMA_FLAGS@,$GCC_PRAGMA_FLAGS,;t t
a848cd7e
SC
44728s,@CODE_GEN_FLAGS@,$CODE_GEN_FLAGS,;t t
44729s,@CODE_GEN_FLAGS_CXX@,$CODE_GEN_FLAGS_CXX,;t t
ceec2216 44730s,@EXE_LINKER@,$EXE_LINKER,;t t
a848cd7e 44731s,@GUIDIST@,$GUIDIST,;t t
a848cd7e
SC
44732s,@DISTDIR@,$DISTDIR,;t t
44733s,@SAMPLES_SUBDIRS@,$SAMPLES_SUBDIRS,;t t
44734s,@LDFLAGS_GL@,$LDFLAGS_GL,;t t
a848cd7e
SC
44735s,@OPENGL_LIBS@,$OPENGL_LIBS,;t t
44736s,@DMALLOC_LIBS@,$DMALLOC_LIBS,;t t
44737s,@WX_VERSION_TAG@,$WX_VERSION_TAG,;t t
44738s,@RESFLAGS@,$RESFLAGS,;t t
44739s,@RESPROGRAMOBJ@,$RESPROGRAMOBJ,;t t
44740s,@WX_RESOURCES_MACOSX_ASCII@,$WX_RESOURCES_MACOSX_ASCII,;t t
44741s,@WX_RESOURCES_MACOSX_DATA@,$WX_RESOURCES_MACOSX_DATA,;t t
44742s,@LIBWXMACRES@,$LIBWXMACRES,;t t
44743s,@MACRESCOMP@,$MACRESCOMP,;t t
44744s,@MACSETFILE@,$MACSETFILE,;t t
44745s,@MACRESWXCONFIG@,$MACRESWXCONFIG,;t t
44746s,@GCC@,$GCC,;t t
a848cd7e 44747s,@DLLTOOL@,$DLLTOOL,;t t
a848cd7e
SC
44748s,@CPPUNIT_CONFIG@,$CPPUNIT_CONFIG,;t t
44749s,@LIBOBJS@,$LIBOBJS,;t t
44750s,@LTLIBOBJS@,$LTLIBOBJS,;t t
44751CEOF
44752
44753_ACEOF
44754
44755 cat >>$CONFIG_STATUS <<\_ACEOF
44756 # Split the substitutions into bite-sized pieces for seds with
44757 # small command number limits, like on Digital OSF/1 and HP-UX.
44758 ac_max_sed_lines=48
44759 ac_sed_frag=1 # Number of current file.
44760 ac_beg=1 # First line for current file.
44761 ac_end=$ac_max_sed_lines # Line after last line for current file.
44762 ac_more_lines=:
44763 ac_sed_cmds=
44764 while $ac_more_lines; do
44765 if test $ac_beg -gt 1; then
44766 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
44767 else
44768 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
44769 fi
44770 if test ! -s $tmp/subs.frag; then
44771 ac_more_lines=false
44772 else
44773 # The purpose of the label and of the branching condition is to
44774 # speed up the sed processing (if there are no `@' at all, there
44775 # is no need to browse any of the substitutions).
44776 # These are the two extra sed commands mentioned above.
44777 (echo ':t
44778 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
44779 if test -z "$ac_sed_cmds"; then
ac1cb8d3 44780 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
a848cd7e 44781 else
ac1cb8d3 44782 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
a848cd7e
SC
44783 fi
44784 ac_sed_frag=`expr $ac_sed_frag + 1`
44785 ac_beg=$ac_end
44786 ac_end=`expr $ac_end + $ac_max_sed_lines`
44787 fi
44788 done
44789 if test -z "$ac_sed_cmds"; then
44790 ac_sed_cmds=cat
44791 fi
44792fi # test -n "$CONFIG_FILES"
44793
44794_ACEOF
44795cat >>$CONFIG_STATUS <<\_ACEOF
44796for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
44797 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
44798 case $ac_file in
44799 - | *:- | *:-:* ) # input from stdin
ac1cb8d3
VS
44800 cat >$tmp/stdin
44801 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
44802 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e 44803 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
ac1cb8d3 44804 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e
SC
44805 * ) ac_file_in=$ac_file.in ;;
44806 esac
44807
44808 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
44809 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
44810$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
44811 X"$ac_file" : 'X\(//\)[^/]' \| \
44812 X"$ac_file" : 'X\(//\)$' \| \
44813 X"$ac_file" : 'X\(/\)' \| \
44814 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
44815echo X"$ac_file" |
44816 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
44817 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
44818 /^X\(\/\/\)$/{ s//\1/; q; }
44819 /^X\(\/\).*/{ s//\1/; q; }
44820 s/.*/./; q'`
44821 { if $as_mkdir_p; then
44822 mkdir -p "$ac_dir"
44823 else
44824 as_dir="$ac_dir"
44825 as_dirs=
44826 while test ! -d "$as_dir"; do
44827 as_dirs="$as_dir $as_dirs"
44828 as_dir=`(dirname "$as_dir") 2>/dev/null ||
44829$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
44830 X"$as_dir" : 'X\(//\)[^/]' \| \
44831 X"$as_dir" : 'X\(//\)$' \| \
44832 X"$as_dir" : 'X\(/\)' \| \
44833 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
44834echo X"$as_dir" |
44835 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
44836 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
44837 /^X\(\/\/\)$/{ s//\1/; q; }
44838 /^X\(\/\).*/{ s//\1/; q; }
44839 s/.*/./; q'`
44840 done
44841 test ! -n "$as_dirs" || mkdir $as_dirs
44842 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
44843echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
44844 { (exit 1); exit 1; }; }; }
44845
44846 ac_builddir=.
44847
44848if test "$ac_dir" != .; then
44849 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
44850 # A "../" for each directory in $ac_dir_suffix.
44851 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
44852else
44853 ac_dir_suffix= ac_top_builddir=
44854fi
44855
44856case $srcdir in
44857 .) # No --srcdir option. We are building in place.
44858 ac_srcdir=.
44859 if test -z "$ac_top_builddir"; then
44860 ac_top_srcdir=.
44861 else
44862 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
44863 fi ;;
44864 [\\/]* | ?:[\\/]* ) # Absolute path.
44865 ac_srcdir=$srcdir$ac_dir_suffix;
44866 ac_top_srcdir=$srcdir ;;
44867 *) # Relative path.
44868 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
44869 ac_top_srcdir=$ac_top_builddir$srcdir ;;
44870esac
ac1cb8d3
VS
44871
44872# Do not use `cd foo && pwd` to compute absolute paths, because
44873# the directories may not exist.
44874case `pwd` in
44875.) ac_abs_builddir="$ac_dir";;
44876*)
44877 case "$ac_dir" in
44878 .) ac_abs_builddir=`pwd`;;
44879 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
44880 *) ac_abs_builddir=`pwd`/"$ac_dir";;
44881 esac;;
44882esac
44883case $ac_abs_builddir in
44884.) ac_abs_top_builddir=${ac_top_builddir}.;;
44885*)
44886 case ${ac_top_builddir}. in
44887 .) ac_abs_top_builddir=$ac_abs_builddir;;
44888 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
44889 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
44890 esac;;
44891esac
44892case $ac_abs_builddir in
44893.) ac_abs_srcdir=$ac_srcdir;;
44894*)
44895 case $ac_srcdir in
44896 .) ac_abs_srcdir=$ac_abs_builddir;;
44897 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
44898 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
44899 esac;;
44900esac
44901case $ac_abs_builddir in
44902.) ac_abs_top_srcdir=$ac_top_srcdir;;
44903*)
44904 case $ac_top_srcdir in
44905 .) ac_abs_top_srcdir=$ac_abs_builddir;;
44906 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
44907 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
44908 esac;;
44909esac
a848cd7e
SC
44910
44911
44912 case $INSTALL in
44913 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
44914 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
44915 esac
44916
a848cd7e
SC
44917 # Let's still pretend it is `configure' which instantiates (i.e., don't
44918 # use $as_me), people would be surprised to read:
44919 # /* config.h. Generated by config.status. */
44920 if test x"$ac_file" = x-; then
44921 configure_input=
44922 else
44923 configure_input="$ac_file. "
44924 fi
44925 configure_input=$configure_input"Generated from `echo $ac_file_in |
ac1cb8d3 44926 sed 's,.*/,,'` by configure."
a848cd7e
SC
44927
44928 # First look for the input files in the build tree, otherwise in the
44929 # src tree.
44930 ac_file_inputs=`IFS=:
44931 for f in $ac_file_in; do
44932 case $f in
44933 -) echo $tmp/stdin ;;
44934 [\\/$]*)
ac1cb8d3
VS
44935 # Absolute (can't be DOS-style, as IFS=:)
44936 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
44937echo "$as_me: error: cannot find input file: $f" >&2;}
44938 { (exit 1); exit 1; }; }
ac1cb8d3 44939 echo "$f";;
a848cd7e 44940 *) # Relative
ac1cb8d3
VS
44941 if test -f "$f"; then
44942 # Build tree
44943 echo "$f"
44944 elif test -f "$srcdir/$f"; then
44945 # Source tree
44946 echo "$srcdir/$f"
44947 else
44948 # /dev/null tree
44949 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
44950echo "$as_me: error: cannot find input file: $f" >&2;}
44951 { (exit 1); exit 1; }; }
ac1cb8d3 44952 fi;;
a848cd7e
SC
44953 esac
44954 done` || { (exit 1); exit 1; }
9dd0f6c2
DE
44955
44956 if test x"$ac_file" != x-; then
44957 { echo "$as_me:$LINENO: creating $ac_file" >&5
44958echo "$as_me: creating $ac_file" >&6;}
44959 rm -f "$ac_file"
44960 fi
a848cd7e
SC
44961_ACEOF
44962cat >>$CONFIG_STATUS <<_ACEOF
44963 sed "$ac_vpsub
44964$extrasub
44965_ACEOF
44966cat >>$CONFIG_STATUS <<\_ACEOF
44967:t
44968/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
44969s,@configure_input@,$configure_input,;t t
44970s,@srcdir@,$ac_srcdir,;t t
44971s,@abs_srcdir@,$ac_abs_srcdir,;t t
44972s,@top_srcdir@,$ac_top_srcdir,;t t
44973s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
44974s,@builddir@,$ac_builddir,;t t
44975s,@abs_builddir@,$ac_abs_builddir,;t t
44976s,@top_builddir@,$ac_top_builddir,;t t
44977s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
44978s,@INSTALL@,$ac_INSTALL,;t t
44979" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
44980 rm -f $tmp/stdin
44981 if test x"$ac_file" != x-; then
44982 mv $tmp/out $ac_file
44983 else
44984 cat $tmp/out
44985 rm -f $tmp/out
44986 fi
44987
ceec2216
RL
44988 # Run the commands associated with the file.
44989 case $ac_file in
44990 lib/wx/config/${TOOLCHAIN_FULLNAME} ) chmod +x lib/wx/config/${TOOLCHAIN_FULLNAME} ;;
44991 lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} ) chmod +x lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} ;;
44992 esac
a848cd7e
SC
44993done
44994_ACEOF
44995cat >>$CONFIG_STATUS <<\_ACEOF
44996
44997#
44998# CONFIG_HEADER section.
44999#
45000
45001# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
45002# NAME is the cpp macro being defined and VALUE is the value it is being given.
45003#
45004# ac_d sets the value in "#define NAME VALUE" lines.
ac1cb8d3
VS
45005ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
45006ac_dB='[ ].*$,\1#\2'
a848cd7e
SC
45007ac_dC=' '
45008ac_dD=',;t'
45009# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
ac1cb8d3 45010ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
a848cd7e
SC
45011ac_uB='$,\1#\2define\3'
45012ac_uC=' '
45013ac_uD=',;t'
45014
45015for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
45016 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
45017 case $ac_file in
45018 - | *:- | *:-:* ) # input from stdin
ac1cb8d3
VS
45019 cat >$tmp/stdin
45020 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
45021 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e 45022 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
ac1cb8d3 45023 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e
SC
45024 * ) ac_file_in=$ac_file.in ;;
45025 esac
45026
45027 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
45028echo "$as_me: creating $ac_file" >&6;}
45029
45030 # First look for the input files in the build tree, otherwise in the
45031 # src tree.
45032 ac_file_inputs=`IFS=:
45033 for f in $ac_file_in; do
45034 case $f in
45035 -) echo $tmp/stdin ;;
45036 [\\/$]*)
ac1cb8d3
VS
45037 # Absolute (can't be DOS-style, as IFS=:)
45038 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
45039echo "$as_me: error: cannot find input file: $f" >&2;}
45040 { (exit 1); exit 1; }; }
ac1cb8d3
VS
45041 # Do quote $f, to prevent DOS paths from being IFS'd.
45042 echo "$f";;
a848cd7e 45043 *) # Relative
ac1cb8d3
VS
45044 if test -f "$f"; then
45045 # Build tree
45046 echo "$f"
45047 elif test -f "$srcdir/$f"; then
45048 # Source tree
45049 echo "$srcdir/$f"
45050 else
45051 # /dev/null tree
45052 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
45053echo "$as_me: error: cannot find input file: $f" >&2;}
45054 { (exit 1); exit 1; }; }
ac1cb8d3 45055 fi;;
a848cd7e
SC
45056 esac
45057 done` || { (exit 1); exit 1; }
45058 # Remove the trailing spaces.
ac1cb8d3 45059 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
a848cd7e
SC
45060
45061_ACEOF
45062
45063# Transform confdefs.h into two sed scripts, `conftest.defines' and
45064# `conftest.undefs', that substitutes the proper values into
45065# config.h.in to produce config.h. The first handles `#define'
45066# templates, and the second `#undef' templates.
45067# And first: Protect against being on the right side of a sed subst in
45068# config.status. Protect against being in an unquoted here document
45069# in config.status.
45070rm -f conftest.defines conftest.undefs
45071# Using a here document instead of a string reduces the quoting nightmare.
45072# Putting comments in sed scripts is not portable.
45073#
45074# `end' is used to avoid that the second main sed command (meant for
45075# 0-ary CPP macros) applies to n-ary macro definitions.
45076# See the Autoconf documentation for `clear'.
45077cat >confdef2sed.sed <<\_ACEOF
45078s/[\\&,]/\\&/g
45079s,[\\$`],\\&,g
45080t clear
45081: clear
ac1cb8d3 45082s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
a848cd7e 45083t end
ac1cb8d3 45084s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
a848cd7e
SC
45085: end
45086_ACEOF
45087# If some macros were called several times there might be several times
45088# the same #defines, which is useless. Nevertheless, we may not want to
45089# sort them, since we want the *last* AC-DEFINE to be honored.
45090uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
45091sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
45092rm -f confdef2sed.sed
45093
45094# This sed command replaces #undef with comments. This is necessary, for
45095# example, in the case of _POSIX_SOURCE, which is predefined and required
45096# on some systems where configure will not decide to define it.
45097cat >>conftest.undefs <<\_ACEOF
ac1cb8d3 45098s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
a848cd7e
SC
45099_ACEOF
45100
45101# Break up conftest.defines because some shells have a limit on the size
45102# of here documents, and old seds have small limits too (100 cmds).
45103echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
ac1cb8d3 45104echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
a848cd7e
SC
45105echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
45106echo ' :' >>$CONFIG_STATUS
45107rm -f conftest.tail
45108while grep . conftest.defines >/dev/null
45109do
45110 # Write a limited-size here document to $tmp/defines.sed.
45111 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
45112 # Speed up: don't consider the non `#define' lines.
ac1cb8d3 45113 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
a848cd7e
SC
45114 # Work around the forget-to-reset-the-flag bug.
45115 echo 't clr' >>$CONFIG_STATUS
45116 echo ': clr' >>$CONFIG_STATUS
45117 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
45118 echo 'CEOF
45119 sed -f $tmp/defines.sed $tmp/in >$tmp/out
45120 rm -f $tmp/in
45121 mv $tmp/out $tmp/in
45122' >>$CONFIG_STATUS
45123 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
45124 rm -f conftest.defines
45125 mv conftest.tail conftest.defines
45126done
45127rm -f conftest.defines
45128echo ' fi # grep' >>$CONFIG_STATUS
45129echo >>$CONFIG_STATUS
45130
45131# Break up conftest.undefs because some shells have a limit on the size
45132# of here documents, and old seds have small limits too (100 cmds).
45133echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
45134rm -f conftest.tail
45135while grep . conftest.undefs >/dev/null
45136do
45137 # Write a limited-size here document to $tmp/undefs.sed.
45138 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
45139 # Speed up: don't consider the non `#undef'
ac1cb8d3 45140 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
a848cd7e
SC
45141 # Work around the forget-to-reset-the-flag bug.
45142 echo 't clr' >>$CONFIG_STATUS
45143 echo ': clr' >>$CONFIG_STATUS
45144 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
45145 echo 'CEOF
45146 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
45147 rm -f $tmp/in
45148 mv $tmp/out $tmp/in
45149' >>$CONFIG_STATUS
45150 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
45151 rm -f conftest.undefs
45152 mv conftest.tail conftest.undefs
45153done
45154rm -f conftest.undefs
45155
45156cat >>$CONFIG_STATUS <<\_ACEOF
45157 # Let's still pretend it is `configure' which instantiates (i.e., don't
45158 # use $as_me), people would be surprised to read:
45159 # /* config.h. Generated by config.status. */
45160 if test x"$ac_file" = x-; then
45161 echo "/* Generated by configure. */" >$tmp/config.h
45162 else
45163 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
45164 fi
45165 cat $tmp/in >>$tmp/config.h
45166 rm -f $tmp/in
45167 if test x"$ac_file" != x-; then
45168 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
45169 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
45170echo "$as_me: $ac_file is unchanged" >&6;}
45171 else
45172 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
45173$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
45174 X"$ac_file" : 'X\(//\)[^/]' \| \
45175 X"$ac_file" : 'X\(//\)$' \| \
45176 X"$ac_file" : 'X\(/\)' \| \
45177 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
45178echo X"$ac_file" |
45179 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
45180 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
45181 /^X\(\/\/\)$/{ s//\1/; q; }
45182 /^X\(\/\).*/{ s//\1/; q; }
45183 s/.*/./; q'`
45184 { if $as_mkdir_p; then
45185 mkdir -p "$ac_dir"
45186 else
45187 as_dir="$ac_dir"
45188 as_dirs=
45189 while test ! -d "$as_dir"; do
45190 as_dirs="$as_dir $as_dirs"
45191 as_dir=`(dirname "$as_dir") 2>/dev/null ||
45192$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
45193 X"$as_dir" : 'X\(//\)[^/]' \| \
45194 X"$as_dir" : 'X\(//\)$' \| \
45195 X"$as_dir" : 'X\(/\)' \| \
45196 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
45197echo X"$as_dir" |
45198 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
45199 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
45200 /^X\(\/\/\)$/{ s//\1/; q; }
45201 /^X\(\/\).*/{ s//\1/; q; }
45202 s/.*/./; q'`
45203 done
45204 test ! -n "$as_dirs" || mkdir $as_dirs
45205 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
45206echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
45207 { (exit 1); exit 1; }; }; }
45208
45209 rm -f $ac_file
45210 mv $tmp/config.h $ac_file
45211 fi
45212 else
45213 cat $tmp/config.h
45214 rm -f $tmp/config.h
45215 fi
45216done
45217_ACEOF
45218cat >>$CONFIG_STATUS <<\_ACEOF
45219
45220#
45221# CONFIG_COMMANDS section.
45222#
45223for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
45224 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
45225 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
45226 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
45227$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
45228 X"$ac_dest" : 'X\(//\)[^/]' \| \
45229 X"$ac_dest" : 'X\(//\)$' \| \
45230 X"$ac_dest" : 'X\(/\)' \| \
45231 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
45232echo X"$ac_dest" |
45233 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
45234 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
45235 /^X\(\/\/\)$/{ s//\1/; q; }
45236 /^X\(\/\).*/{ s//\1/; q; }
45237 s/.*/./; q'`
ac1cb8d3
VS
45238 { if $as_mkdir_p; then
45239 mkdir -p "$ac_dir"
45240 else
45241 as_dir="$ac_dir"
45242 as_dirs=
45243 while test ! -d "$as_dir"; do
45244 as_dirs="$as_dir $as_dirs"
45245 as_dir=`(dirname "$as_dir") 2>/dev/null ||
45246$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
45247 X"$as_dir" : 'X\(//\)[^/]' \| \
45248 X"$as_dir" : 'X\(//\)$' \| \
45249 X"$as_dir" : 'X\(/\)' \| \
45250 . : '\(.\)' 2>/dev/null ||
45251echo X"$as_dir" |
45252 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
45253 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
45254 /^X\(\/\/\)$/{ s//\1/; q; }
45255 /^X\(\/\).*/{ s//\1/; q; }
45256 s/.*/./; q'`
45257 done
45258 test ! -n "$as_dirs" || mkdir $as_dirs
45259 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
45260echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
45261 { (exit 1); exit 1; }; }; }
45262
a848cd7e
SC
45263 ac_builddir=.
45264
45265if test "$ac_dir" != .; then
45266 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
45267 # A "../" for each directory in $ac_dir_suffix.
45268 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
45269else
45270 ac_dir_suffix= ac_top_builddir=
45271fi
45272
45273case $srcdir in
45274 .) # No --srcdir option. We are building in place.
45275 ac_srcdir=.
45276 if test -z "$ac_top_builddir"; then
45277 ac_top_srcdir=.
45278 else
45279 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
45280 fi ;;
45281 [\\/]* | ?:[\\/]* ) # Absolute path.
45282 ac_srcdir=$srcdir$ac_dir_suffix;
45283 ac_top_srcdir=$srcdir ;;
45284 *) # Relative path.
45285 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
45286 ac_top_srcdir=$ac_top_builddir$srcdir ;;
45287esac
ac1cb8d3
VS
45288
45289# Do not use `cd foo && pwd` to compute absolute paths, because
45290# the directories may not exist.
45291case `pwd` in
45292.) ac_abs_builddir="$ac_dir";;
45293*)
45294 case "$ac_dir" in
45295 .) ac_abs_builddir=`pwd`;;
45296 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
45297 *) ac_abs_builddir=`pwd`/"$ac_dir";;
45298 esac;;
45299esac
45300case $ac_abs_builddir in
45301.) ac_abs_top_builddir=${ac_top_builddir}.;;
45302*)
45303 case ${ac_top_builddir}. in
45304 .) ac_abs_top_builddir=$ac_abs_builddir;;
45305 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
45306 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
45307 esac;;
45308esac
45309case $ac_abs_builddir in
45310.) ac_abs_srcdir=$ac_srcdir;;
45311*)
45312 case $ac_srcdir in
45313 .) ac_abs_srcdir=$ac_abs_builddir;;
45314 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
45315 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
45316 esac;;
45317esac
45318case $ac_abs_builddir in
45319.) ac_abs_top_srcdir=$ac_top_srcdir;;
45320*)
45321 case $ac_top_srcdir in
45322 .) ac_abs_top_srcdir=$ac_abs_builddir;;
45323 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
45324 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
45325 esac;;
45326esac
a848cd7e
SC
45327
45328
45329 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
45330echo "$as_me: executing $ac_dest commands" >&6;}
45331 case $ac_dest in
ceec2216
RL
45332 wx-config ) rm -f wx-config
45333 ${LN_S} lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} wx-config
45334 ;;
a848cd7e
SC
45335 esac
45336done
45337_ACEOF
45338
45339cat >>$CONFIG_STATUS <<\_ACEOF
45340
45341{ (exit 0); exit 0; }
45342_ACEOF
45343chmod +x $CONFIG_STATUS
45344ac_clean_files=$ac_clean_files_save
45345
45346
45347# configure is writing to config.log, and then calls config.status.
45348# config.status does its own redirection, appending to config.log.
45349# Unfortunately, on DOS this fails, as config.log is still kept open
45350# by configure, so config.status won't be able to write to it; its
45351# output is simply discarded. So we exec the FD to /dev/null,
45352# effectively closing config.log, so it can be properly (re)opened and
45353# appended to by config.status. When coming back to configure, we
45354# need to make the FD available again.
45355if test "$no_create" != yes; then
45356 ac_cs_success=:
45357 ac_config_status_args=
45358 test "$silent" = yes &&
45359 ac_config_status_args="$ac_config_status_args --quiet"
45360 exec 5>/dev/null
45361 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
45362 exec 5>>config.log
45363 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
45364 # would make configure fail if this is the last instruction.
45365 $ac_cs_success || { (exit 1); exit 1; }
45366fi
45367
45368#
45369# CONFIG_SUBDIRS section.
45370#
45371if test "$no_recursion" != yes; then
45372
45373 # Remove --cache-file and --srcdir arguments so they do not pile up.
45374 ac_sub_configure_args=
45375 ac_prev=
45376 for ac_arg in $ac_configure_args; do
45377 if test -n "$ac_prev"; then
45378 ac_prev=
45379 continue
45380 fi
45381 case $ac_arg in
45382 -cache-file | --cache-file | --cache-fil | --cache-fi \
45383 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
45384 ac_prev=cache_file ;;
45385 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
45386 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
45387 | --c=*)
45388 ;;
45389 --config-cache | -C)
45390 ;;
45391 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
45392 ac_prev=srcdir ;;
45393 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
45394 ;;
45395 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
45396 ac_prev=prefix ;;
45397 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
45398 ;;
45399 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
45400 esac
45401 done
45402
45403 # Always prepend --prefix to ensure using the same prefix
45404 # in subdir configurations.
45405 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
45406
45407 ac_popdir=`pwd`
45408 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
45409
45410 # Do not complain, so a configure script can configure whichever
45411 # parts of a large source tree are present.
45412 test -d $srcdir/$ac_dir || continue
45413
45414 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
45415echo "$as_me: configuring in $ac_dir" >&6;}
45416 { if $as_mkdir_p; then
45417 mkdir -p "$ac_dir"
45418 else
45419 as_dir="$ac_dir"
45420 as_dirs=
45421 while test ! -d "$as_dir"; do
45422 as_dirs="$as_dir $as_dirs"
45423 as_dir=`(dirname "$as_dir") 2>/dev/null ||
45424$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
45425 X"$as_dir" : 'X\(//\)[^/]' \| \
45426 X"$as_dir" : 'X\(//\)$' \| \
45427 X"$as_dir" : 'X\(/\)' \| \
45428 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
45429echo X"$as_dir" |
45430 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
45431 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
45432 /^X\(\/\/\)$/{ s//\1/; q; }
45433 /^X\(\/\).*/{ s//\1/; q; }
45434 s/.*/./; q'`
45435 done
45436 test ! -n "$as_dirs" || mkdir $as_dirs
45437 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
45438echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
45439 { (exit 1); exit 1; }; }; }
45440
45441 ac_builddir=.
45442
45443if test "$ac_dir" != .; then
45444 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
45445 # A "../" for each directory in $ac_dir_suffix.
45446 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
45447else
45448 ac_dir_suffix= ac_top_builddir=
45449fi
45450
45451case $srcdir in
45452 .) # No --srcdir option. We are building in place.
45453 ac_srcdir=.
45454 if test -z "$ac_top_builddir"; then
45455 ac_top_srcdir=.
45456 else
45457 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
45458 fi ;;
45459 [\\/]* | ?:[\\/]* ) # Absolute path.
45460 ac_srcdir=$srcdir$ac_dir_suffix;
45461 ac_top_srcdir=$srcdir ;;
45462 *) # Relative path.
45463 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
45464 ac_top_srcdir=$ac_top_builddir$srcdir ;;
45465esac
ac1cb8d3
VS
45466
45467# Do not use `cd foo && pwd` to compute absolute paths, because
45468# the directories may not exist.
45469case `pwd` in
45470.) ac_abs_builddir="$ac_dir";;
45471*)
45472 case "$ac_dir" in
45473 .) ac_abs_builddir=`pwd`;;
45474 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
45475 *) ac_abs_builddir=`pwd`/"$ac_dir";;
45476 esac;;
45477esac
45478case $ac_abs_builddir in
45479.) ac_abs_top_builddir=${ac_top_builddir}.;;
45480*)
45481 case ${ac_top_builddir}. in
45482 .) ac_abs_top_builddir=$ac_abs_builddir;;
45483 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
45484 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
45485 esac;;
45486esac
45487case $ac_abs_builddir in
45488.) ac_abs_srcdir=$ac_srcdir;;
45489*)
45490 case $ac_srcdir in
45491 .) ac_abs_srcdir=$ac_abs_builddir;;
45492 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
45493 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
45494 esac;;
45495esac
45496case $ac_abs_builddir in
45497.) ac_abs_top_srcdir=$ac_top_srcdir;;
45498*)
45499 case $ac_top_srcdir in
45500 .) ac_abs_top_srcdir=$ac_abs_builddir;;
45501 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
45502 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
45503 esac;;
45504esac
a848cd7e
SC
45505
45506
45507 cd $ac_dir
45508
45509 # Check for guested configure; otherwise get Cygnus style configure.
45510 if test -f $ac_srcdir/configure.gnu; then
45511 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
45512 elif test -f $ac_srcdir/configure; then
45513 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
45514 elif test -f $ac_srcdir/configure.in; then
45515 ac_sub_configure=$ac_configure
45516 else
45517 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
45518echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
45519 ac_sub_configure=
45520 fi
45521
45522 # The recursion is here.
45523 if test -n "$ac_sub_configure"; then
45524 # Make the cache file name correct relative to the subdirectory.
45525 case $cache_file in
45526 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
45527 *) # Relative path.
ac1cb8d3 45528 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
a848cd7e
SC
45529 esac
45530
45531 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
45532echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
45533 # The eval makes quoting arguments work.
45534 eval $ac_sub_configure $ac_sub_configure_args \
ac1cb8d3
VS
45535 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
45536 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
a848cd7e
SC
45537echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
45538 { (exit 1); exit 1; }; }
45539 fi
45540
9dd0f6c2 45541 cd "$ac_popdir"
a848cd7e
SC
45542 done
45543fi
45544
45545
45546echo
77ffb593 45547echo "Configured wxWidgets ${WX_VERSION} for \`${host}'"
a848cd7e 45548echo ""
4d4ff94c 45549echo " Which GUI toolkit should wxWidgets use? ${TOOLKIT_USER:-base only}"
77ffb593 45550echo " Should wxWidgets be compiled into single library? ${wxUSE_MONOLITHIC:-yes}"
a848cd7e 45551
77ffb593
JS
45552echo " Should wxWidgets be compiled in debug mode? ${wxUSE_DEBUG:-no}"
45553echo " Should wxWidgets be linked as a shared library? ${wxUSE_SHARED:-no}"
45554echo " Should wxWidgets be compiled in Unicode mode? ${wxUSE_UNICODE:-no}"
a848cd7e 45555
77ffb593
JS
45556echo " What level of wxWidgets compatibility should be enabled?"
45557echo " wxWidgets 2.2 ${WXWIN_COMPATIBILITY_2_2:-no}"
45558echo " wxWidgets 2.4 ${WXWIN_COMPATIBILITY_2_4:-yes}"
a848cd7e 45559
77ffb593 45560echo " Which libraries should wxWidgets use?"
a848cd7e
SC
45561echo " jpeg ${wxUSE_LIBJPEG-none}"
45562echo " png ${wxUSE_LIBPNG-none}"
45563echo " regex ${wxUSE_REGEX}"
45564echo " tiff ${wxUSE_LIBTIFF-none}"
45565if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
45566echo " xpm ${wxUSE_LIBXPM-none}"
45567fi
45568echo " zlib ${wxUSE_ZLIB}"
45569echo " odbc ${wxUSE_ODBC}"
45570echo " expat ${wxUSE_EXPAT}"
45571echo " libmspack ${wxUSE_LIBMSPACK}"
45572echo " sdl ${wxUSE_LIBSDL}"
6d1ce868 45573echo " gnomeprint ${wxUSE_LIBGNOMEPRINT-none}"
a848cd7e
SC
45574
45575echo ""
45576