]> git.saurik.com Git - wxWidgets.git/blame - configure
Warning fix.
[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.
81f90336 4# Generated by GNU Autoconf 2.59 for wxWidgets 2.5.4.
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'
81f90336
MW
273PACKAGE_VERSION='2.5.4'
274PACKAGE_STRING='wxWidgets 2.5.4'
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"
0b78747f 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_ODBC_1 COND_MONOLITHIC_0_SHARED_0_USE_XRC_1 COND_MONOLITHIC_0_SHARED_1 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1 COND_MONOLITHIC_0_SHARED_1_USE_XRC_1 COND_MONOLITHIC_0_USE_ODBC_1 COND_MONOLITHIC_1 COND_MONOLITHIC_1_SHARED_0 COND_MONOLITHIC_1_SHARED_1 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1 COND_PLATFORM_MACOSX_1 COND_PLATFORM_MACOSX_1_TOOLKIT_ COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA COND_PLATFORM_MACOSX_1_TOOLKIT_GTK COND_PLATFORM_MACOSX_1_TOOLKIT_MAC COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0 COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF COND_PLATFORM_MACOSX_1_TOOLKIT_X11 COND_PLATFORM_MACOSX_1_USE_GUI_1 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1 COND_PLATFORM_MACOS_1 COND_PLATFORM_MAC_1 COND_PLATFORM_OS2_1 COND_PLATFORM_UNIX_0 COND_PLATFORM_UNIX_1 COND_PLATFORM_UNIX_1_USE_GUI_1 COND_PLATFORM_UNIX_1_USE_PLUGINS_0 COND_PLATFORM_WIN32_0 COND_PLATFORM_WIN32_1 COND_SHARED_0 COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0 COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0 COND_SHARED_0_TOOLKIT_PM_WXUNIV_0 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN COND_SHARED_0_WXUSE_EXPAT_BUILTIN COND_SHARED_0_WXUSE_ODBC_BUILTIN COND_SHARED_0_WXUSE_REGEX_BUILTIN COND_SHARED_0_WXUSE_ZLIB_BUILTIN COND_SHARED_1 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1 COND_TOOLKIT_ COND_TOOLKIT_COCOA COND_TOOLKIT_COCOA_USE_GUI_1 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_GTK COND_TOOLKIT_GTK_USE_GUI_1 COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_MAC COND_TOOLKIT_MAC_USE_GUI_1 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_MGL COND_TOOLKIT_MGL_USE_GUI_1 COND_TOOLKIT_MOTIF COND_TOOLKIT_MOTIF_USE_GUI_1 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_MSW COND_TOOLKIT_MSW_USE_GUI_1 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_PM COND_TOOLKIT_PM_USE_GUI_1 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_WINCE COND_TOOLKIT_WINCE_USE_GUI_1 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_X11 COND_TOOLKIT_X11_USE_GUI_1 COND_UNICODE_1 COND_USE_EXCEPTIONS_0 COND_USE_EXCEPTIONS_1 COND_USE_GUI_0 COND_USE_GUI_1 COND_USE_GUI_1_WXUNIV_0 COND_USE_GUI_1_WXUNIV_1 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN COND_USE_ODBC_1 COND_USE_OPENGL_1 COND_USE_PLUGINS_0 COND_USE_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
81f90336 797\`configure' configures wxWidgets 2.5.4 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
81f90336 863 short | recursive ) echo "Configuration of wxWidgets 2.5.4:";;
a848cd7e
SC
864 esac
865 cat <<\_ACEOF
866
867Optional Features:
868 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
869 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
870 --enable-gui use GUI classes
77ffb593
JS
871 --enable-monolithic build wxWidgets as single library
872 --enable-plugins build parts of wxWidgets as loadable components
873 --enable-universal use wxWidgets GUI controls instead of native ones
a848cd7e 874 --enable-nanox use NanoX
9f45f08e 875 --disable-gtk2 use GTK+ 1.2 instead of 2.0
a848cd7e
SC
876 --enable-gpe use GNOME PDA Environment features if possible
877 --enable-shared create shared library code
878 --enable-optimise create optimised code
879 --enable-debug same as debug_flag and debug_info
880 --enable-stl use STL for containers
881 --enable-omf use OMF object format
882 --enable-debug_flag set __WXDEBUG__ flag (recommended for developers!)
883 --enable-debug_info create code with debugging information
884 --enable-debug_gdb create code with extra GDB debugging information
885 --enable-debug_cntxt use wxDebugContext
886 --enable-mem_tracing create code with memory tracing
887 --enable-profile create code with profiling information
888 --enable-no_rtti create code without RTTI information
889 --enable-no_exceptions create code without C++ exceptions handling
890 --enable-permissive compile code disregarding strict ANSI
891 --enable-no_deps create code without dependency information
77ffb593
JS
892 --enable-compat22 enable wxWidgets 2.2 compatibility
893 --disable-compat24 disable wxWidgets 2.4 compatibility
ffa0583f 894 --disable-rpath disable use of rpath for uninstalled builds
a848cd7e
SC
895 --enable-intl use internationalization system
896 --enable-config use wxConfig (and derived) classes
897 --enable-protocols use wxProtocol and derived classes
898 --enable-ftp use wxFTP (requires wxProtocol
899 --enable-http use wxHTTP (requires wxProtocol
900 --enable-fileproto use wxFileProto class (requires wxProtocol
901 --enable-sockets use socket/network classes
902 --enable-ole use OLE classes (Win32 only)
903 --enable-dataobj use data object classes
904 --enable-ipc use interprocess communication (wxSocket etc.)
905 --enable-apple_ieee use the Apple IEEE codec
81f90336 906 --enable-arcstream use wxArchive streams
a848cd7e 907 --enable-catch_segvs catch signals in wxApp::OnFatalException (Unix only)
eaff0f0d 908 --enable-backtrace use wxStackWalker class for getting backtraces
a848cd7e
SC
909 --enable-cmdline use wxCmdLineParser class
910 --enable-datetime use wxDateTime class
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
07158944 928 --enable-stdpaths use wxStandardPaths class
a848cd7e 929 --enable-stopwatch use wxStopWatch class
07158944 930 --enable-streams use wxStream etc classes
a848cd7e
SC
931 --enable-sysoptions use wxSystemOptions
932 --enable-textbuf use wxTextBuffer class
933 --enable-textfile use wxTextFile class
934 --enable-timer use wxTimer class
935 --enable-unicode compile wxString with Unicode support
936 --enable-sound use wxSound class
3b57de8b 937 --enable-mediactrl use wxMediaCtrl class
77ffb593 938 --enable-wxprintfv use wxWidgets implementation of vprintf()
81f90336 939 --enable-zipstream use wxZip streams
a848cd7e
SC
940 --enable-url use wxURL class
941 --enable-protocol use wxProtocol class
942 --enable-protocol-http HTTP support in wxProtocol
943 --enable-protocol-ftp FTP support in wxProtocol
944 --enable-protocol-file FILE support in wxProtocol
945 --enable-threads use threads
946 --enable-docview use document view architecture
947 --enable-help use help subsystem
948 --enable-mshtmlhelp use MS HTML Help (win32)
949 --enable-html use wxHTML sub-library
950 --enable-htmlhelp use wxHTML-based help
9a8f0513 951 --enable-xrc use XRC resources sub-library
a848cd7e
SC
952 --enable-constraints use layout-constraints system
953 --enable-printarch use printing architecture
954 --enable-mdi use multiple document interface architecture
8a7b1113 955 --enable-mdidoc use docview architecture with MDI
a848cd7e
SC
956 --enable-loggui use standard GUI logger
957 --enable-logwin use wxLogWindow
958 --enable-logdialog use wxLogDialog
646b6ec1 959 --enable-webkit use wxWebKitCtrl (Mac)
a848cd7e
SC
960 --enable-postscript use wxPostscriptDC device context (default for gtk+)
961 --enable-prologio not available; see contrib
962 --enable-resources not available; see contrib
963 --enable-clipboard use wxClipboard class
964 --enable-dnd use Drag'n'Drop classes
965 --enable-metafile use win32 metafiles
966 --enable-controls use all usual controls
967 --enable-accel use accelerators
968 --enable-button use wxButton class
969 --enable-bmpbutton use wxBitmapButton class
970 --enable-calendar use wxCalendarCtrl class
971 --enable-caret use wxCaret class
972 --enable-checkbox use wxCheckBox class
973 --enable-checklst use wxCheckListBox (listbox with checkboxes) class
974 --enable-choice use wxChoice class
92bbdbcd 975 --enable-choicebook use wxChoicebook class
a848cd7e 976 --enable-combobox use wxComboBox class
da98e9be 977 --enable-datepick use wxDatePickerCtrl class
a848cd7e
SC
978 --enable-display use wxDisplay class
979 --enable-gauge use wxGauge class
980 --enable-grid use wxGrid class
981 --enable-imaglist use wxImageList class
982 --enable-listbook use wxListbook class
983 --enable-listbox use wxListBox class
984 --enable-listctrl use wxListCtrl class
985 --enable-notebook use wxNotebook class
986 --enable-radiobox use wxRadioBox class
987 --enable-radiobtn use wxRadioButton class
988 --enable-sash use wxSashWindow class
989 --enable-scrollbar use wxScrollBar class and scrollable windows
990 --enable-slider use wxSlider class
991 --enable-spinbtn use wxSpinButton class
992 --enable-spinctrl use wxSpinCtrl class
993 --enable-splitter use wxSplitterWindow class
994 --enable-statbmp use wxStaticBitmap class
995 --enable-statbox use wxStaticBox class
996 --enable-statline use wxStaticLine class
997 --enable-stattext use wxStaticText class
998 --enable-statusbar use wxStatusBar class
999 --enable-tabdialog use wxTabControl class
1000 --enable-textctrl use wxTextCtrl class
1001 --enable-togglebtn use wxToggleButton class
1002 --enable-toolbar use wxToolBar class
1003 --enable-tbarnative use native wxToolBar class
1004 --enable-tbarsmpl use wxToolBarSimple class
1005 --enable-treectrl use wxTreeCtrl class
1006 --enable-tipwindow use wxTipWindow class
1007 --enable-popupwin use wxPopUpWindow class
1008 --enable-commondlg use all common dialogs
1009 --enable-choicedlg use wxChoiceDialog
1010 --enable-coldlg use wxColourDialog
1011 --enable-filedlg use wxFileDialog
1012 --enable-finddlg use wxFindReplaceDialog
1013 --enable-fontdlg use wxFontDialog
1014 --enable-dirdlg use wxDirDialog
1015 --enable-msgdlg use wxMessageDialog
1016 --enable-numberdlg use wxNumberEntryDialog
1017 --enable-splash use wxSplashScreen
1018 --enable-textdlg use wxTextDialog
1019 --enable-tipdlg use startup tips
1020 --enable-progressdlg use wxProgressDialog
1021 --enable-wizarddlg use wxWizard
1022 --enable-menus use wxMenu/wxMenuBar/wxMenuItem classes
1023 --enable-miniframe use wxMiniFrame class
1024 --enable-tooltips use wxToolTip class
1025 --enable-splines use spline drawing code
1026 --enable-validators use wxValidator and derived classes
1027 --enable-busyinfo use wxBusyInfo
4cb1d3da 1028 --enable-joystick use wxJoystick
a848cd7e
SC
1029 --enable-metafiles use wxMetaFile (Windows only)
1030 --enable-dragimage use wxDragImage
1031 --enable-accessibility enable accessibility support
1032 --enable-palette use wxPalette class
1033 --enable-image use wxImage class
1034 --enable-gif use gif images (GIF file format)
1035 --enable-pcx use pcx images (PCX file format)
1036 --enable-iff use iff images (IFF file format)
1037 --enable-pnm use pnm images (PNM file format)
1038 --enable-xpm use xpm images (XPM file format)
1039 --enable-icocur use Windows ICO and CUR formats
77ffb593 1040 --enable-official_build official build of wxWidgets (win32 DLL only)
a848cd7e
SC
1041 --enable-vendor=VENDOR vendor name (win32 DLL only)
1042 --disable-largefile omit support for large files
1043 --disable-gtktest do not try to compile and run a test GTK+ program
1044 --disable-gtktest Do not try to compile and run a test GTK program
1045 --disable-sdltest Do not try to compile and run a test SDL program
1046 --enable-omf use OMF object format (OS/2)
ebee3cd0
VS
1047 --disable-precomp-headers
1048 don't use precompiled headers even if compiler can
a848cd7e
SC
1049
1050Optional Packages:
1051 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1052 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1053 --with-gtk use GTK+
1054 --with-motif use Motif/Lesstif
1055 --with-mac use Mac OS X
1056 --with-cocoa use Cocoa
1057 --with-wine use Wine
1058 --with-msw use MS-Windows
1059 --with-pm use OS/2 Presentation Manager
1060 --with-mgl use SciTech MGL
1061 --with-microwin use MicroWindows
1062 --with-x11 use X11
1063 --with-libpng use libpng (PNG image format)
1064 --with-libjpeg use libjpeg (JPEG file format)
1065 --with-libtiff use libtiff (TIFF file format)
1066 --with-libxpm use libxpm (XPM file format)
1067 --with-libmspack use libmspack (CHM help files loading)
1068 --with-sdl use SDL for audio on Unix
d51253e8 1069 --with-gnomeprint use GNOME print for printing under Unix
a848cd7e
SC
1070 --with-opengl use OpenGL (or Mesa)
1071 --with-dmalloc use dmalloc library (http://dmalloc.com/)
1072 --with-regex enable support for wxRegEx class
1073 --with-zlib use zlib for LZW compression
1074 --with-odbc use the IODBC and wxODBC classes
1075 --with-expat enable XML support using expat parser
ceec2216 1076 --with-flavour=NAME specify a name to identify this build
a848cd7e
SC
1077 --with-gtk-prefix=PFX Prefix where GTK is installed (optional)
1078 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)
1079 --with-x use the X Window System
1080 --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib
1081 --with-sdl-prefix=PFX Prefix where SDL is installed (optional)
1082 --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional)
1083 --with-cppunit-prefix=PFX Prefix where CppUnit is installed (optional)
1084 --with-cppunit-exec-prefix=PFX Exec prefix where CppUnit is installed (optional)
1085
1086Some influential environment variables:
dcc1b6ad
VS
1087 CC C compiler command
1088 CFLAGS C compiler flags
1089 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1090 nonstandard directory <lib dir>
1091 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1092 headers in a nonstandard directory <include dir>
1093 CPP C preprocessor
1094 CXX C++ compiler command
1095 CXXFLAGS C++ compiler flags
1096 CXXCPP C++ preprocessor
a848cd7e
SC
1097
1098Use these variables to override the choices made by `configure' or to help
1099it to find libraries and programs with nonstandard names/locations.
1100
77ffb593 1101Report bugs to <wx-dev@lists.wxwidgets.org>.
a848cd7e
SC
1102_ACEOF
1103fi
1104
1105if test "$ac_init_help" = "recursive"; then
1106 # If there are subdirs, report their specific --help.
1107 ac_popdir=`pwd`
1108 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1109 test -d $ac_dir || continue
1110 ac_builddir=.
1111
1112if test "$ac_dir" != .; then
1113 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1114 # A "../" for each directory in $ac_dir_suffix.
1115 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1116else
1117 ac_dir_suffix= ac_top_builddir=
1118fi
1119
1120case $srcdir in
1121 .) # No --srcdir option. We are building in place.
1122 ac_srcdir=.
1123 if test -z "$ac_top_builddir"; then
1124 ac_top_srcdir=.
1125 else
1126 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1127 fi ;;
1128 [\\/]* | ?:[\\/]* ) # Absolute path.
1129 ac_srcdir=$srcdir$ac_dir_suffix;
1130 ac_top_srcdir=$srcdir ;;
1131 *) # Relative path.
1132 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1133 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1134esac
ac1cb8d3
VS
1135
1136# Do not use `cd foo && pwd` to compute absolute paths, because
1137# the directories may not exist.
1138case `pwd` in
1139.) ac_abs_builddir="$ac_dir";;
1140*)
1141 case "$ac_dir" in
1142 .) ac_abs_builddir=`pwd`;;
1143 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1144 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1145 esac;;
1146esac
1147case $ac_abs_builddir in
1148.) ac_abs_top_builddir=${ac_top_builddir}.;;
1149*)
1150 case ${ac_top_builddir}. in
1151 .) ac_abs_top_builddir=$ac_abs_builddir;;
1152 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1153 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1154 esac;;
1155esac
1156case $ac_abs_builddir in
1157.) ac_abs_srcdir=$ac_srcdir;;
1158*)
1159 case $ac_srcdir in
1160 .) ac_abs_srcdir=$ac_abs_builddir;;
1161 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1162 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1163 esac;;
1164esac
1165case $ac_abs_builddir in
1166.) ac_abs_top_srcdir=$ac_top_srcdir;;
1167*)
1168 case $ac_top_srcdir in
1169 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1170 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1171 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1172 esac;;
1173esac
a848cd7e
SC
1174
1175 cd $ac_dir
1176 # Check for guested configure; otherwise get Cygnus style configure.
1177 if test -f $ac_srcdir/configure.gnu; then
1178 echo
1179 $SHELL $ac_srcdir/configure.gnu --help=recursive
1180 elif test -f $ac_srcdir/configure; then
1181 echo
1182 $SHELL $ac_srcdir/configure --help=recursive
1183 elif test -f $ac_srcdir/configure.ac ||
ac1cb8d3 1184 test -f $ac_srcdir/configure.in; then
a848cd7e
SC
1185 echo
1186 $ac_configure --help
1187 else
1188 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1189 fi
07158944 1190 cd "$ac_popdir"
a848cd7e
SC
1191 done
1192fi
1193
1194test -n "$ac_init_help" && exit 0
1195if $ac_init_version; then
1196 cat <<\_ACEOF
81f90336 1197wxWidgets configure 2.5.4
ac1cb8d3 1198generated by GNU Autoconf 2.59
a848cd7e 1199
ac1cb8d3 1200Copyright (C) 2003 Free Software Foundation, Inc.
a848cd7e
SC
1201This configure script is free software; the Free Software Foundation
1202gives unlimited permission to copy, distribute and modify it.
1203_ACEOF
1204 exit 0
1205fi
1206exec 5>config.log
1207cat >&5 <<_ACEOF
1208This file contains any messages produced by compilers while
1209running configure, to aid debugging if configure makes a mistake.
1210
81f90336 1211It was created by wxWidgets $as_me 2.5.4, which was
ac1cb8d3 1212generated by GNU Autoconf 2.59. Invocation command line was
a848cd7e
SC
1213
1214 $ $0 $@
1215
1216_ACEOF
1217{
1218cat <<_ASUNAME
1219## --------- ##
1220## Platform. ##
1221## --------- ##
1222
1223hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1224uname -m = `(uname -m) 2>/dev/null || echo unknown`
1225uname -r = `(uname -r) 2>/dev/null || echo unknown`
1226uname -s = `(uname -s) 2>/dev/null || echo unknown`
1227uname -v = `(uname -v) 2>/dev/null || echo unknown`
1228
1229/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1230/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1231
1232/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1233/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1234/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1235hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1236/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1237/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1238/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1239
1240_ASUNAME
1241
1242as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1243for as_dir in $PATH
1244do
1245 IFS=$as_save_IFS
1246 test -z "$as_dir" && as_dir=.
1247 echo "PATH: $as_dir"
1248done
1249
1250} >&5
1251
1252cat >&5 <<_ACEOF
1253
1254
1255## ----------- ##
1256## Core tests. ##
1257## ----------- ##
1258
1259_ACEOF
1260
1261
1262# Keep a trace of the command line.
1263# Strip out --no-create and --no-recursion so they do not pile up.
1264# Strip out --silent because we don't want to record it for future runs.
1265# Also quote any args containing shell meta-characters.
1266# Make two passes to allow for proper duplicate-argument suppression.
1267ac_configure_args=
1268ac_configure_args0=
1269ac_configure_args1=
1270ac_sep=
1271ac_must_keep_next=false
1272for ac_pass in 1 2
1273do
1274 for ac_arg
1275 do
1276 case $ac_arg in
1277 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1278 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1279 | -silent | --silent | --silen | --sile | --sil)
1280 continue ;;
1281 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1282 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1283 esac
1284 case $ac_pass in
1285 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1286 2)
1287 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1288 if test $ac_must_keep_next = true; then
ac1cb8d3 1289 ac_must_keep_next=false # Got value, back to normal.
a848cd7e 1290 else
ac1cb8d3
VS
1291 case $ac_arg in
1292 *=* | --config-cache | -C | -disable-* | --disable-* \
1293 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1294 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1295 | -with-* | --with-* | -without-* | --without-* | --x)
1296 case "$ac_configure_args0 " in
1297 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1298 esac
1299 ;;
1300 -* ) ac_must_keep_next=true ;;
1301 esac
a848cd7e
SC
1302 fi
1303 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1304 # Get rid of the leading space.
1305 ac_sep=" "
1306 ;;
1307 esac
1308 done
1309done
1310$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1311$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1312
1313# When interrupted or exit'd, cleanup temporary files, and complete
1314# config.log. We remove comments because anyway the quotes in there
1315# would cause problems or look ugly.
1316# WARNING: Be sure not to use single quotes in there, as some shells,
1317# such as our DU 5.0 friend, will then `close' the trap.
1318trap 'exit_status=$?
1319 # Save into config.log some information that might help in debugging.
1320 {
1321 echo
1322
1323 cat <<\_ASBOX
1324## ---------------- ##
1325## Cache variables. ##
1326## ---------------- ##
1327_ASBOX
1328 echo
1329 # The following way of writing the cache mishandles newlines in values,
1330{
1331 (set) 2>&1 |
1332 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1333 *ac_space=\ *)
1334 sed -n \
ac1cb8d3
VS
1335 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1336 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
a848cd7e
SC
1337 ;;
1338 *)
1339 sed -n \
ac1cb8d3 1340 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
1341 ;;
1342 esac;
1343}
1344 echo
1345
1346 cat <<\_ASBOX
1347## ----------------- ##
1348## Output variables. ##
1349## ----------------- ##
1350_ASBOX
1351 echo
1352 for ac_var in $ac_subst_vars
1353 do
1354 eval ac_val=$`echo $ac_var`
1355 echo "$ac_var='"'"'$ac_val'"'"'"
1356 done | sort
1357 echo
1358
1359 if test -n "$ac_subst_files"; then
1360 cat <<\_ASBOX
1361## ------------- ##
1362## Output files. ##
1363## ------------- ##
1364_ASBOX
1365 echo
1366 for ac_var in $ac_subst_files
1367 do
1368 eval ac_val=$`echo $ac_var`
ac1cb8d3 1369 echo "$ac_var='"'"'$ac_val'"'"'"
a848cd7e
SC
1370 done | sort
1371 echo
1372 fi
1373
1374 if test -s confdefs.h; then
1375 cat <<\_ASBOX
1376## ----------- ##
1377## confdefs.h. ##
1378## ----------- ##
1379_ASBOX
1380 echo
1381 sed "/^$/d" confdefs.h | sort
1382 echo
1383 fi
1384 test "$ac_signal" != 0 &&
1385 echo "$as_me: caught signal $ac_signal"
1386 echo "$as_me: exit $exit_status"
1387 } >&5
ac1cb8d3 1388 rm -f core *.core &&
a848cd7e
SC
1389 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1390 exit $exit_status
1391 ' 0
1392for ac_signal in 1 2 13 15; do
1393 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1394done
1395ac_signal=0
1396
1397# confdefs.h avoids OS command line length limits that DEFS can exceed.
1398rm -rf conftest* confdefs.h
1399# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1400echo >confdefs.h
1401
1402# Predefined preprocessor variables.
1403
1404cat >>confdefs.h <<_ACEOF
1405#define PACKAGE_NAME "$PACKAGE_NAME"
1406_ACEOF
1407
1408
1409cat >>confdefs.h <<_ACEOF
1410#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1411_ACEOF
1412
1413
1414cat >>confdefs.h <<_ACEOF
1415#define PACKAGE_VERSION "$PACKAGE_VERSION"
1416_ACEOF
1417
1418
1419cat >>confdefs.h <<_ACEOF
1420#define PACKAGE_STRING "$PACKAGE_STRING"
1421_ACEOF
1422
1423
1424cat >>confdefs.h <<_ACEOF
1425#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1426_ACEOF
1427
1428
1429# Let the site file select an alternate cache file if it wants to.
1430# Prefer explicitly selected file to automatically selected ones.
1431if test -z "$CONFIG_SITE"; then
1432 if test "x$prefix" != xNONE; then
1433 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1434 else
1435 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1436 fi
1437fi
1438for ac_site_file in $CONFIG_SITE; do
1439 if test -r "$ac_site_file"; then
1440 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1441echo "$as_me: loading site script $ac_site_file" >&6;}
1442 sed 's/^/| /' "$ac_site_file" >&5
1443 . "$ac_site_file"
1444 fi
1445done
1446
1447if test -r "$cache_file"; then
1448 # Some versions of bash will fail to source /dev/null (special
1449 # files actually), so we avoid doing that.
1450 if test -f "$cache_file"; then
1451 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1452echo "$as_me: loading cache $cache_file" >&6;}
1453 case $cache_file in
1454 [\\/]* | ?:[\\/]* ) . $cache_file;;
1455 *) . ./$cache_file;;
1456 esac
1457 fi
1458else
1459 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1460echo "$as_me: creating cache $cache_file" >&6;}
1461 >$cache_file
1462fi
1463
1464# Check that the precious variables saved in the cache have kept the same
1465# value.
1466ac_cache_corrupted=false
1467for ac_var in `(set) 2>&1 |
ac1cb8d3 1468 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
a848cd7e
SC
1469 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1470 eval ac_new_set=\$ac_env_${ac_var}_set
1471 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1472 eval ac_new_val="\$ac_env_${ac_var}_value"
1473 case $ac_old_set,$ac_new_set in
1474 set,)
1475 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1476echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1477 ac_cache_corrupted=: ;;
1478 ,set)
1479 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1480echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1481 ac_cache_corrupted=: ;;
1482 ,);;
1483 *)
1484 if test "x$ac_old_val" != "x$ac_new_val"; then
ac1cb8d3 1485 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
a848cd7e 1486echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
ac1cb8d3 1487 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
a848cd7e 1488echo "$as_me: former value: $ac_old_val" >&2;}
ac1cb8d3 1489 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
a848cd7e 1490echo "$as_me: current value: $ac_new_val" >&2;}
ac1cb8d3 1491 ac_cache_corrupted=:
a848cd7e
SC
1492 fi;;
1493 esac
1494 # Pass precious variables to config.status.
1495 if test "$ac_new_set" = set; then
1496 case $ac_new_val in
1497 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1498 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1499 *) ac_arg=$ac_var=$ac_new_val ;;
1500 esac
1501 case " $ac_configure_args " in
1502 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1503 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1504 esac
1505 fi
1506done
1507if $ac_cache_corrupted; then
1508 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1509echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1510 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1511echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1512 { (exit 1); exit 1; }; }
1513fi
1514
1515ac_ext=c
1516ac_cpp='$CPP $CPPFLAGS'
1517ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1518ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1519ac_compiler_gnu=$ac_cv_c_compiler_gnu
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550ac_aux_dir=
1551for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1552 if test -f $ac_dir/install-sh; then
1553 ac_aux_dir=$ac_dir
1554 ac_install_sh="$ac_aux_dir/install-sh -c"
1555 break
1556 elif 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/shtool; then
1561 ac_aux_dir=$ac_dir
1562 ac_install_sh="$ac_aux_dir/shtool install -c"
1563 break
1564 fi
1565done
1566if test -z "$ac_aux_dir"; then
1567 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1568echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1569 { (exit 1); exit 1; }; }
1570fi
1571ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1572ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1573ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1574
1575# Make sure we can run config.sub.
1576$ac_config_sub sun4 >/dev/null 2>&1 ||
1577 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1578echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1579 { (exit 1); exit 1; }; }
1580
1581echo "$as_me:$LINENO: checking build system type" >&5
1582echo $ECHO_N "checking build system type... $ECHO_C" >&6
1583if test "${ac_cv_build+set}" = set; then
1584 echo $ECHO_N "(cached) $ECHO_C" >&6
1585else
1586 ac_cv_build_alias=$build_alias
1587test -z "$ac_cv_build_alias" &&
1588 ac_cv_build_alias=`$ac_config_guess`
1589test -z "$ac_cv_build_alias" &&
1590 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1591echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1592 { (exit 1); exit 1; }; }
1593ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1594 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1595echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1596 { (exit 1); exit 1; }; }
1597
1598fi
1599echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1600echo "${ECHO_T}$ac_cv_build" >&6
1601build=$ac_cv_build
1602build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1603build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1604build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1605
1606
1607echo "$as_me:$LINENO: checking host system type" >&5
1608echo $ECHO_N "checking host system type... $ECHO_C" >&6
1609if test "${ac_cv_host+set}" = set; then
1610 echo $ECHO_N "(cached) $ECHO_C" >&6
1611else
1612 ac_cv_host_alias=$host_alias
1613test -z "$ac_cv_host_alias" &&
1614 ac_cv_host_alias=$ac_cv_build_alias
1615ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1616 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1617echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1618 { (exit 1); exit 1; }; }
1619
1620fi
1621echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1622echo "${ECHO_T}$ac_cv_host" >&6
1623host=$ac_cv_host
1624host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1625host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1626host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1627
1628
1629echo "$as_me:$LINENO: checking target system type" >&5
1630echo $ECHO_N "checking target system type... $ECHO_C" >&6
1631if test "${ac_cv_target+set}" = set; then
1632 echo $ECHO_N "(cached) $ECHO_C" >&6
1633else
1634 ac_cv_target_alias=$target_alias
1635test "x$ac_cv_target_alias" = "x" &&
1636 ac_cv_target_alias=$ac_cv_host_alias
1637ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1638 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1639echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1640 { (exit 1); exit 1; }; }
1641
1642fi
1643echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1644echo "${ECHO_T}$ac_cv_target" >&6
1645target=$ac_cv_target
1646target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1647target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1648target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1649
1650
1651# The aliases save the names the user supplied, while $host etc.
1652# will get canonicalized.
1653test -n "$target_alias" &&
1654 test "$program_prefix$program_suffix$program_transform_name" = \
1655 NONENONEs,x,x, &&
1656 program_prefix=${target_alias}-
1657
1658
1659
ceec2216
RL
1660wx_major_version_number=2
1661wx_minor_version_number=5
e41c39d6 1662wx_release_number=4
2da0c077 1663wx_subrelease_number=1
a848cd7e 1664
ceec2216
RL
1665WX_RELEASE=$wx_major_version_number.$wx_minor_version_number
1666WX_VERSION=$WX_RELEASE.$wx_release_number
1667WX_SUBVERSION=$WX_VERSION.$wx_subrelease_number
a848cd7e 1668
ceec2216 1669WX_MSW_VERSION=$wx_major_version_number$wx_minor_version_number$wx_release_number
a848cd7e 1670
e41c39d6 1671WX_CURRENT=4
a848cd7e 1672WX_REVISION=0
e41c39d6 1673WX_AGE=4
a848cd7e
SC
1674
1675
1676
1677USE_UNIX=1
1678USE_OS2=0
1679USE_WIN32=0
1680USE_DOS=0
1681USE_BEOS=0
1682USE_MAC=0
1683
1684USE_AIX=
1685USE_BSD= USE_DARWIN= USE_FREEBSD=
1686USE_GNU= USE_HPUX=
1687USE_LINUX=
1688USE_NETBSD=
1689USE_OPENBSD=
1690USE_OSF= USE_SGI=
1691USE_SOLARIS= USE_SUN= USE_SUNOS= USE_SVR4= USE_SYSV= USE_VMS=
1692USE_ULTRIX=
1693USE_UNIXWARE=
1694
1695USE_ALPHA=
1696
1697NEEDS_D_REENTRANT_FOR_R_FUNCS=0
1698
1699ALL_TOOLKITS="COCOA GTK MAC MGL MICROWIN MOTIF MSW PM X11"
1700
1701DEFAULT_wxUSE_COCOA=0
1702DEFAULT_wxUSE_GTK=0
1703DEFAULT_wxUSE_MAC=0
1704DEFAULT_wxUSE_MGL=0
1705DEFAULT_wxUSE_MICROWIN=0
1706DEFAULT_wxUSE_MOTIF=0
1707DEFAULT_wxUSE_MSW=0
1708DEFAULT_wxUSE_PM=0
1709DEFAULT_wxUSE_X11=0
1710
1711DEFAULT_DEFAULT_wxUSE_COCOA=0
1712DEFAULT_DEFAULT_wxUSE_GTK=0
1713DEFAULT_DEFAULT_wxUSE_MAC=0
1714DEFAULT_DEFAULT_wxUSE_MGL=0
1715DEFAULT_DEFAULT_wxUSE_MICROWIN=0
1716DEFAULT_DEFAULT_wxUSE_MOTIF=0
1717DEFAULT_DEFAULT_wxUSE_MSW=0
1718DEFAULT_DEFAULT_wxUSE_PM=0
1719DEFAULT_DEFAULT_wxUSE_X11=0
1720
1721PROGRAM_EXT=
1722SO_SUFFIX=so
1723SAMPLES_RPATH_FLAG=
1724SAMPLES_RPATH_POSTLINK=
1725
1726case "${host}" in
1727 *-hp-hpux* )
1728 USE_HPUX=1
1729 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1730 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1731 SO_SUFFIX=sl
1732 cat >>confdefs.h <<\_ACEOF
1733#define __HPUX__ 1
1734_ACEOF
1735
1736 ;;
1737 *-*-linux* )
1738 USE_LINUX=1
1739 cat >>confdefs.h <<\_ACEOF
1740#define __LINUX__ 1
1741_ACEOF
1742
1743 TMP=`uname -m`
1744 if test "x$TMP" = "xalpha"; then
1745 USE_ALPHA=1
1746 cat >>confdefs.h <<\_ACEOF
1747#define __ALPHA__ 1
1748_ACEOF
1749
1750 fi
1751 DEFAULT_DEFAULT_wxUSE_GTK=1
1752 ;;
1753 *-*-gnu* | *-*-k*bsd*-gnu )
1754 USE_GNU=1
1755 TMP=`uname -m`
1756 if test "x$TMP" = "xalpha"; then
1757 USE_ALPHA=1
1758 cat >>confdefs.h <<\_ACEOF
1759#define __ALPHA__ 1
1760_ACEOF
1761
1762 fi
1763 DEFAULT_DEFAULT_wxUSE_GTK=1
1764 ;;
1765 *-*-irix5* | *-*-irix6* )
1766 USE_SGI=1
1767 USE_SVR4=1
1768 cat >>confdefs.h <<\_ACEOF
1769#define __SGI__ 1
1770_ACEOF
1771
1772 cat >>confdefs.h <<\_ACEOF
1773#define __SVR4__ 1
1774_ACEOF
1775
1776 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1777 ;;
1778 *-*-solaris2* )
1779 USE_SUN=1
1780 USE_SOLARIS=1
1781 USE_SVR4=1
1782 cat >>confdefs.h <<\_ACEOF
1783#define __SUN__ 1
1784_ACEOF
1785
1786 cat >>confdefs.h <<\_ACEOF
1787#define __SOLARIS__ 1
1788_ACEOF
1789
1790 cat >>confdefs.h <<\_ACEOF
1791#define __SVR4__ 1
1792_ACEOF
1793
1794 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1795 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1796 ;;
1797 *-*-sunos4* )
1798 USE_SUN=1
1799 USE_SUNOS=1
1800 USE_BSD=1
1801 cat >>confdefs.h <<\_ACEOF
1802#define __SUN__ 1
1803_ACEOF
1804
1805 cat >>confdefs.h <<\_ACEOF
1806#define __SUNOS__ 1
1807_ACEOF
1808
1809 cat >>confdefs.h <<\_ACEOF
1810#define __BSD__ 1
1811_ACEOF
1812
1813 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1814 ;;
1815 *-*-freebsd*)
1816 USE_BSD=1
1817 USE_FREEBSD=1
1818 cat >>confdefs.h <<\_ACEOF
1819#define __FREEBSD__ 1
1820_ACEOF
1821
1822 cat >>confdefs.h <<\_ACEOF
1823#define __BSD__ 1
1824_ACEOF
1825
1826 DEFAULT_DEFAULT_wxUSE_GTK=1
1827 ;;
1828 *-*-openbsd*)
1829 USE_BSD=1
1830 USE_OPENBSD=1
1831 cat >>confdefs.h <<\_ACEOF
1832#define __OPENBSD__ 1
1833_ACEOF
1834
1835 cat >>confdefs.h <<\_ACEOF
1836#define __BSD__ 1
1837_ACEOF
1838
1839 DEFAULT_DEFAULT_wxUSE_GTK=1
1840 ;;
1841 *-*-netbsd*)
1842 USE_BSD=1
1843 USE_NETBSD=1
1844 cat >>confdefs.h <<\_ACEOF
1845#define __NETBSD__ 1
1846_ACEOF
1847
1848 cat >>confdefs.h <<\_ACEOF
1849#define __BSD__ 1
1850_ACEOF
1851
1852 DEFAULT_DEFAULT_wxUSE_GTK=1
1853 ;;
1854 *-*-osf* )
1855 USE_ALPHA=1
1856 USE_OSF=1
1857 cat >>confdefs.h <<\_ACEOF
1858#define __ALPHA__ 1
1859_ACEOF
1860
1861 cat >>confdefs.h <<\_ACEOF
1862#define __OSF__ 1
1863_ACEOF
1864
1865 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1866 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1867 ;;
1868 *-*-dgux5* )
1869 USE_ALPHA=1
1870 USE_SVR4=1
1871 cat >>confdefs.h <<\_ACEOF
1872#define __ALPHA__ 1
1873_ACEOF
1874
1875 cat >>confdefs.h <<\_ACEOF
1876#define __SVR4__ 1
1877_ACEOF
1878
1879 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1880 ;;
1881 *-*-sysv5* )
1882 USE_SYSV=1
1883 USE_SVR4=1
1884 cat >>confdefs.h <<\_ACEOF
1885#define __SYSV__ 1
1886_ACEOF
1887
1888 cat >>confdefs.h <<\_ACEOF
1889#define __SVR4__ 1
1890_ACEOF
1891
1892 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1893 ;;
1894 *-*-aix* )
1895 USE_AIX=1
1896 USE_SYSV=1
1897 USE_SVR4=1
1898 SO_SUFFIX=a
1899 cat >>confdefs.h <<\_ACEOF
1900#define __AIX__ 1
1901_ACEOF
1902
1903 cat >>confdefs.h <<\_ACEOF
1904#define __SYSV__ 1
1905_ACEOF
1906
1907 cat >>confdefs.h <<\_ACEOF
1908#define __SVR4__ 1
1909_ACEOF
1910
1911 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1912 ;;
1913
1914 *-*-*UnixWare*)
1915 USE_SYSV=1
1916 USE_SVR4=1
1917 USE_UNIXWARE=1
1918 cat >>confdefs.h <<\_ACEOF
1919#define __UNIXWARE__ 1
1920_ACEOF
1921
1922 ;;
1923
1924 *-*-cygwin* | *-*-mingw32* )
1925 SO_SUFFIX=dll
1926 PROGRAM_EXT=".exe"
1927 RESCOMP=windres
1928 DEFAULT_DEFAULT_wxUSE_MSW=1
1929 ;;
1930
1931 *-pc-msdosdjgpp )
1932 USE_UNIX=0
1933 USE_DOS=1
1934 cat >>confdefs.h <<\_ACEOF
1935#define __DOS__ 1
1936_ACEOF
1937
1938 PROGRAM_EXT=".exe"
1939 DEFAULT_DEFAULT_wxUSE_MGL=1
1940 LIBS="$LIBS -lstdc++"
1941 ;;
1942
1943 *-pc-os2_emx | *-pc-os2-emx )
1944 cat >>confdefs.h <<\_ACEOF
1945#define __EMX__ 1
1946_ACEOF
1947
1948 USE_OS2=1
1949 cat >>confdefs.h <<\_ACEOF
1950#define __OS2__ 1
1951_ACEOF
1952
1953 PROGRAM_EXT=".exe"
1954 DEFAULT_DEFAULT_wxUSE_PM=1
1955 CXX=gcc
1956 LDFLAGS="$LDFLAGS -Zcrtdll"
1957 ac_executable_extensions=".exe"
1958 export ac_executable_extensions
1959 ac_save_IFS="$IFS"
1960 IFS='\\'
1961 ac_TEMP_PATH=
1962 for ac_dir in $PATH; do
1963 IFS=$ac_save_IFS
1964 if test -z "$ac_TEMP_PATH"; then
1965 ac_TEMP_PATH="$ac_dir"
1966 else
1967 ac_TEMP_PATH="$ac_TEMP_PATH/$ac_dir"
1968 fi
1969 done
1970 export PATH="$ac_TEMP_PATH"
1971 unset ac_TEMP_PATH
1972 ;;
1973
1974 powerpc-*-darwin* )
1975 USE_BSD=1
1976 USE_DARWIN=1
1977 SO_SUFFIX=dylib
1978 cat >>confdefs.h <<\_ACEOF
1979#define __BSD__ 1
1980_ACEOF
1981
1982 cat >>confdefs.h <<\_ACEOF
1983#define __DARWIN__ 1
a848cd7e
SC
1984_ACEOF
1985
1986 cat >>confdefs.h <<\_ACEOF
1987#define TARGET_CARBON 1
1988_ACEOF
1989
1990 DEFAULT_DEFAULT_wxUSE_MAC=1
1991 ;;
1e9e8aba
DE
1992 powerpc-apple-macos* )
1993 USE_UNIX=0
1994 ac_cv_c_bigendian=yes
1995 SO_SUFFIX=shlib
1996 DEFAULT_DEFAULT_wxUSE_MAC=1
1997 ;;
a848cd7e
SC
1998
1999 *-*-beos* )
2000 USE_BEOS=1
2001 cat >>confdefs.h <<\_ACEOF
2002#define __BEOS__ 1
2003_ACEOF
2004
2005 ;;
2006
2007 *)
2008 { { echo "$as_me:$LINENO: error: unknown system type ${host}." >&5
2009echo "$as_me: error: unknown system type ${host}." >&2;}
2010 { (exit 1); exit 1; }; }
2011esac
2012
2013
2014
2015
2016 wx_arg_cache_file="configarg.cache"
2017 echo "loading argument cache $wx_arg_cache_file"
2018 rm -f ${wx_arg_cache_file}.tmp
2019 touch ${wx_arg_cache_file}.tmp
2020 touch ${wx_arg_cache_file}
2021
2022
2023DEBUG_CONFIGURE=0
2024if test $DEBUG_CONFIGURE = 1; then
2025 DEFAULT_wxUSE_UNIVERSAL=no
2026 DEFAULT_wxUSE_STL=no
2027
2028 DEFAULT_wxUSE_NANOX=no
2029
2030 DEFAULT_wxUSE_THREADS=yes
2031
2032 DEFAULT_wxUSE_SHARED=yes
2033 DEFAULT_wxUSE_OPTIMISE=no
2034 DEFAULT_wxUSE_PROFILE=no
2035 DEFAULT_wxUSE_NO_DEPS=no
2036 DEFAULT_wxUSE_NO_RTTI=no
2037 DEFAULT_wxUSE_NO_EXCEPTIONS=no
ffa0583f 2038 DEFAULT_wxUSE_RPATH=yes
a848cd7e
SC
2039 DEFAULT_wxUSE_PERMISSIVE=no
2040 DEFAULT_wxUSE_DEBUG_FLAG=yes
2041 DEFAULT_wxUSE_DEBUG_INFO=yes
2042 DEFAULT_wxUSE_DEBUG_GDB=yes
2043 DEFAULT_wxUSE_MEM_TRACING=no
2044 DEFAULT_wxUSE_DEBUG_CONTEXT=no
2045 DEFAULT_wxUSE_DMALLOC=no
2046 DEFAULT_wxUSE_APPLE_IEEE=no
2047
2048 DEFAULT_wxUSE_EXCEPTIONS=no
2049 DEFAULT_wxUSE_LOG=yes
2050 DEFAULT_wxUSE_LOGWINDOW=no
2051 DEFAULT_wxUSE_LOGGUI=no
2052 DEFAULT_wxUSE_LOGDIALOG=no
2053
2054 DEFAULT_wxUSE_GUI=yes
2055 DEFAULT_wxUSE_CONTROLS=no
2056
2057 DEFAULT_wxUSE_REGEX=no
2058 DEFAULT_wxUSE_XML=no
2059 DEFAULT_wxUSE_EXPAT=no
2060 DEFAULT_wxUSE_ZLIB=no
2061 DEFAULT_wxUSE_LIBPNG=no
2062 DEFAULT_wxUSE_LIBJPEG=no
2063 DEFAULT_wxUSE_LIBTIFF=no
2064 DEFAULT_wxUSE_LIBXPM=no
2065 DEFAULT_wxUSE_LIBMSPACK=no
2066 DEFAULT_wxUSE_LIBSDL=no
d1c38808 2067 DEFAULT_wxUSE_LIBGNOMEPRINT=no
a848cd7e
SC
2068 DEFAULT_wxUSE_ODBC=no
2069 DEFAULT_wxUSE_OPENGL=no
2070
2071 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=no
eaff0f0d 2072 DEFAULT_wxUSE_STACKWALKER=no
a848cd7e
SC
2073 DEFAULT_wxUSE_SNGLINST_CHECKER=no
2074 DEFAULT_wxUSE_STD_IOSTREAM=no
2075 DEFAULT_wxUSE_CMDLINE_PARSER=no
2076 DEFAULT_wxUSE_DATETIME=no
2077 DEFAULT_wxUSE_TIMER=no
2078 DEFAULT_wxUSE_STOPWATCH=no
2079 DEFAULT_wxUSE_FILE=no
2080 DEFAULT_wxUSE_FFILE=no
07158944 2081 DEFAULT_wxUSE_STDPATHS=no
a848cd7e
SC
2082 DEFAULT_wxUSE_TEXTBUFFER=no
2083 DEFAULT_wxUSE_TEXTFILE=no
2084 DEFAULT_wxUSE_SOUND=no
3b57de8b
RL
2085 DEFAULT_wxUSE_MEDIACTRL=no
2086 DEFAULT_wxUSE_DIRECTSHOW=no
a848cd7e
SC
2087 DEFAULT_wxUSE_INTL=no
2088 DEFAULT_wxUSE_CONFIG=no
2089 DEFAULT_wxUSE_FONTMAP=no
2090 DEFAULT_wxUSE_STREAMS=no
2091 DEFAULT_wxUSE_SOCKETS=no
2092 DEFAULT_wxUSE_OLE=no
2093 DEFAULT_wxUSE_DATAOBJ=no
2094 DEFAULT_wxUSE_DIALUP_MANAGER=no
2095 DEFAULT_wxUSE_JOYSTICK=no
2096 DEFAULT_wxUSE_DYNLIB_CLASS=no
2097 DEFAULT_wxUSE_DYNAMIC_LOADER=no
2098 DEFAULT_wxUSE_LONGLONG=no
2099 DEFAULT_wxUSE_GEOMETRY=no
2100
2101 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no
2102 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no
2103 DEFAULT_wxUSE_POSTSCRIPT=no
2104
2105 DEFAULT_wxUSE_CLIPBOARD=no
2106 DEFAULT_wxUSE_TOOLTIPS=no
2107 DEFAULT_wxUSE_DRAG_AND_DROP=no
2108 DEFAULT_wxUSE_DRAGIMAGE=no
2109 DEFAULT_wxUSE_SPLINES=no
2110
8a7b1113 2111 DEFAULT_wxUSE_MDI=no
a848cd7e
SC
2112 DEFAULT_wxUSE_MDI_ARCHITECTURE=no
2113 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no
2114 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no
2115
2116 DEFAULT_wxUSE_RESOURCES=no
2117 DEFAULT_wxUSE_CONSTRAINTS=no
2118 DEFAULT_wxUSE_IPC=no
2119 DEFAULT_wxUSE_HELP=no
2120 DEFAULT_wxUSE_MS_HTML_HELP=no
2121 DEFAULT_wxUSE_WXHTML_HELP=no
2122 DEFAULT_wxUSE_TREELAYOUT=no
2123 DEFAULT_wxUSE_METAFILE=no
2124 DEFAULT_wxUSE_MIMETYPE=no
2125 DEFAULT_wxUSE_SYSTEM_OPTIONS=no
2126 DEFAULT_wxUSE_PROTOCOL=no
2127 DEFAULT_wxUSE_PROTOCOL_HTTP=no
2128 DEFAULT_wxUSE_PROTOCOL_FTP=no
2129 DEFAULT_wxUSE_PROTOCOL_FILE=no
2130 DEFAULT_wxUSE_URL=no
2131
2132 DEFAULT_wxUSE_COMMONDLGS=no
2133 DEFAULT_wxUSE_CHOICEDLG=no
2134 DEFAULT_wxUSE_COLOURDLG=no
2135 DEFAULT_wxUSE_DIRDLG=no
2136 DEFAULT_wxUSE_FILEDLG=no
2137 DEFAULT_wxUSE_FINDREPLDLG=no
2138 DEFAULT_wxUSE_FONTDLG=no
2139 DEFAULT_wxUSE_MSGDLG=no
2140 DEFAULT_wxUSE_NUMBERDLG=no
2141 DEFAULT_wxUSE_TEXTDLG=no
2142 DEFAULT_wxUSE_SPLASH=no
2143 DEFAULT_wxUSE_STARTUP_TIPS=no
2144 DEFAULT_wxUSE_PROGRESSDLG=no
2145 DEFAULT_wxUSE_WIZARDDLG=no
2146
2147 DEFAULT_wxUSE_MENUS=no
2148 DEFAULT_wxUSE_MINIFRAME=no
2149 DEFAULT_wxUSE_HTML=no
9a8f0513 2150 DEFAULT_wxUSE_XRC=no
646b6ec1 2151 DEFAULT_wxUSE_WEBKIT=no
a848cd7e
SC
2152 DEFAULT_wxUSE_FILESYSTEM=no
2153 DEFAULT_wxUSE_FS_INET=no
2154 DEFAULT_wxUSE_FS_ZIP=no
2155 DEFAULT_wxUSE_BUSYINFO=no
9e8e867f 2156 DEFAULT_wxUSE_ARCHIVE_STREAMS=no
a848cd7e 2157 DEFAULT_wxUSE_ZIPSTREAM=no
a848cd7e
SC
2158 DEFAULT_wxUSE_VALIDATORS=no
2159
2160 DEFAULT_wxUSE_ACCEL=no
2161 DEFAULT_wxUSE_BUTTON=no
2162 DEFAULT_wxUSE_BMPBUTTON=no
2163 DEFAULT_wxUSE_CALCTRL=no
2164 DEFAULT_wxUSE_CARET=no
2165 DEFAULT_wxUSE_CHECKBOX=no
2166 DEFAULT_wxUSE_CHECKLST=no
2167 DEFAULT_wxUSE_CHOICE=no
92bbdbcd 2168 DEFAULT_wxUSE_CHOICEBOOK=no
a848cd7e 2169 DEFAULT_wxUSE_COMBOBOX=no
da98e9be 2170 DEFAULT_wxUSE_DATEPICKCTRL=no
a848cd7e
SC
2171 DEFAULT_wxUSE_DISPLAY=no
2172 DEFAULT_wxUSE_GAUGE=no
2173 DEFAULT_wxUSE_GRID=no
2174 DEFAULT_wxUSE_IMAGLIST=no
2175 DEFAULT_wxUSE_LISTBOOK=no
2176 DEFAULT_wxUSE_LISTBOX=no
2177 DEFAULT_wxUSE_LISTCTRL=no
2178 DEFAULT_wxUSE_NOTEBOOK=no
2179 DEFAULT_wxUSE_RADIOBOX=no
2180 DEFAULT_wxUSE_RADIOBTN=no
2181 DEFAULT_wxUSE_SASH=no
2182 DEFAULT_wxUSE_SCROLLBAR=no
2183 DEFAULT_wxUSE_SLIDER=no
2184 DEFAULT_wxUSE_SPINBTN=no
2185 DEFAULT_wxUSE_SPINCTRL=no
2186 DEFAULT_wxUSE_SPLITTER=no
2187 DEFAULT_wxUSE_STATBMP=no
2188 DEFAULT_wxUSE_STATBOX=no
2189 DEFAULT_wxUSE_STATLINE=no
2190 DEFAULT_wxUSE_STATTEXT=no
2191 DEFAULT_wxUSE_STATUSBAR=yes
2192 DEFAULT_wxUSE_TABDIALOG=no
2193 DEFAULT_wxUSE_TEXTCTRL=no
2194 DEFAULT_wxUSE_TOGGLEBTN=no
2195 DEFAULT_wxUSE_TOOLBAR=no
2196 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
2197 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
2198 DEFAULT_wxUSE_TREECTRL=no
2199 DEFAULT_wxUSE_POPUPWIN=no
2200 DEFAULT_wxUSE_TIPWINDOW=no
2201
2202 DEFAULT_wxUSE_UNICODE=no
2203 DEFAULT_wxUSE_UNICODE_MSLU=no
2204 DEFAULT_wxUSE_WCSRTOMBS=no
2205
2206 DEFAULT_wxUSE_PALETTE=no
2207 DEFAULT_wxUSE_IMAGE=no
2208 DEFAULT_wxUSE_GIF=no
2209 DEFAULT_wxUSE_PCX=no
2210 DEFAULT_wxUSE_PNM=no
2211 DEFAULT_wxUSE_IFF=no
2212 DEFAULT_wxUSE_XPM=no
2213 DEFAULT_wxUSE_ICO_CUR=no
2214 DEFAULT_wxUSE_ACCESSIBILITY=no
2215
2216 DEFAULT_wxUSE_MONOLITHIC=no
2217 DEFAULT_wxUSE_PLUGINS=no
2218 DEFAULT_wxUSE_OFFICIAL_BUILD=no
2219else
2220 DEFAULT_wxUSE_UNIVERSAL=no
2221 DEFAULT_wxUSE_STL=no
2222
2223 DEFAULT_wxUSE_NANOX=no
2224
2225 DEFAULT_wxUSE_THREADS=yes
2226
2227 DEFAULT_wxUSE_SHARED=yes
2228 DEFAULT_wxUSE_OPTIMISE=yes
2229 DEFAULT_wxUSE_PROFILE=no
2230 DEFAULT_wxUSE_NO_DEPS=no
2231 DEFAULT_wxUSE_NO_RTTI=no
2232 DEFAULT_wxUSE_NO_EXCEPTIONS=no
ffa0583f 2233 DEFAULT_wxUSE_RPATH=yes
a848cd7e
SC
2234 DEFAULT_wxUSE_PERMISSIVE=no
2235 DEFAULT_wxUSE_DEBUG_FLAG=no
2236 DEFAULT_wxUSE_DEBUG_INFO=no
2237 DEFAULT_wxUSE_DEBUG_GDB=no
2238 DEFAULT_wxUSE_MEM_TRACING=no
2239 DEFAULT_wxUSE_DEBUG_CONTEXT=no
2240 DEFAULT_wxUSE_DMALLOC=no
2241 DEFAULT_wxUSE_APPLE_IEEE=yes
2242
2243 DEFAULT_wxUSE_EXCEPTIONS=yes
2244 DEFAULT_wxUSE_LOG=yes
2245 DEFAULT_wxUSE_LOGWINDOW=yes
2246 DEFAULT_wxUSE_LOGGUI=yes
2247 DEFAULT_wxUSE_LOGDIALOG=yes
2248
2249 DEFAULT_wxUSE_GUI=yes
2250
2251 DEFAULT_wxUSE_REGEX=yes
2252 DEFAULT_wxUSE_XML=yes
2253 DEFAULT_wxUSE_EXPAT=yes
2254 DEFAULT_wxUSE_ZLIB=yes
2255 DEFAULT_wxUSE_LIBPNG=yes
2256 DEFAULT_wxUSE_LIBJPEG=yes
2257 DEFAULT_wxUSE_LIBTIFF=yes
2258 DEFAULT_wxUSE_LIBXPM=yes
2259 DEFAULT_wxUSE_LIBMSPACK=yes
2260 DEFAULT_wxUSE_LIBSDL=no
d1c38808 2261 DEFAULT_wxUSE_LIBGNOMEPRINT=no
a848cd7e
SC
2262 DEFAULT_wxUSE_ODBC=no
2263 DEFAULT_wxUSE_OPENGL=no
2264
2265 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=yes
eaff0f0d 2266 DEFAULT_wxUSE_STACKWALKER=yes
a848cd7e
SC
2267 DEFAULT_wxUSE_SNGLINST_CHECKER=yes
2268 DEFAULT_wxUSE_STD_IOSTREAM=no
2269 DEFAULT_wxUSE_CMDLINE_PARSER=yes
2270 DEFAULT_wxUSE_DATETIME=yes
2271 DEFAULT_wxUSE_TIMER=yes
2272 DEFAULT_wxUSE_STOPWATCH=yes
2273 DEFAULT_wxUSE_FILE=yes
2274 DEFAULT_wxUSE_FFILE=yes
07158944 2275 DEFAULT_wxUSE_STDPATHS=yes
a848cd7e
SC
2276 DEFAULT_wxUSE_TEXTBUFFER=yes
2277 DEFAULT_wxUSE_TEXTFILE=yes
2278 DEFAULT_wxUSE_SOUND=yes
3b57de8b
RL
2279 DEFAULT_wxUSE_MEDIACTRL=no
2280 DEFAULT_wxUSE_DIRECTSHOW=no
a848cd7e
SC
2281 DEFAULT_wxUSE_INTL=yes
2282 DEFAULT_wxUSE_CONFIG=yes
2283 DEFAULT_wxUSE_FONTMAP=yes
2284 DEFAULT_wxUSE_STREAMS=yes
2285 DEFAULT_wxUSE_SOCKETS=yes
2286 DEFAULT_wxUSE_OLE=yes
2287 DEFAULT_wxUSE_DATAOBJ=yes
2288 DEFAULT_wxUSE_DIALUP_MANAGER=yes
2289 DEFAULT_wxUSE_JOYSTICK=yes
2290 DEFAULT_wxUSE_DYNLIB_CLASS=yes
2291 DEFAULT_wxUSE_DYNAMIC_LOADER=yes
2292 DEFAULT_wxUSE_LONGLONG=yes
2293 DEFAULT_wxUSE_GEOMETRY=yes
2294
2295 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes
2296 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes
2297 DEFAULT_wxUSE_POSTSCRIPT=yes
2298
2299 DEFAULT_wxUSE_CLIPBOARD=yes
2300 DEFAULT_wxUSE_TOOLTIPS=yes
2301 DEFAULT_wxUSE_DRAG_AND_DROP=yes
2302 DEFAULT_wxUSE_DRAGIMAGE=yes
2303 DEFAULT_wxUSE_SPLINES=yes
2304
8a7b1113 2305 DEFAULT_wxUSE_MDI=yes
a848cd7e
SC
2306 DEFAULT_wxUSE_MDI_ARCHITECTURE=yes
2307 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes
2308 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes
2309
2310 DEFAULT_wxUSE_RESOURCES=no
2311 DEFAULT_wxUSE_CONSTRAINTS=yes
2312 DEFAULT_wxUSE_IPC=yes
2313 DEFAULT_wxUSE_HELP=yes
2314 DEFAULT_wxUSE_MS_HTML_HELP=yes
2315 DEFAULT_wxUSE_WXHTML_HELP=yes
2316 DEFAULT_wxUSE_TREELAYOUT=yes
2317 DEFAULT_wxUSE_METAFILE=yes
2318 DEFAULT_wxUSE_MIMETYPE=yes
2319 DEFAULT_wxUSE_SYSTEM_OPTIONS=yes
2320 DEFAULT_wxUSE_PROTOCOL=yes
2321 DEFAULT_wxUSE_PROTOCOL_HTTP=yes
2322 DEFAULT_wxUSE_PROTOCOL_FTP=yes
2323 DEFAULT_wxUSE_PROTOCOL_FILE=yes
2324 DEFAULT_wxUSE_URL=yes
2325
2326 DEFAULT_wxUSE_COMMONDLGS=yes
2327 DEFAULT_wxUSE_CHOICEDLG=yes
2328 DEFAULT_wxUSE_COLOURDLG=yes
2329 DEFAULT_wxUSE_DIRDLG=yes
2330 DEFAULT_wxUSE_FILEDLG=yes
2331 DEFAULT_wxUSE_FINDREPLDLG=yes
2332 DEFAULT_wxUSE_FONTDLG=yes
2333 DEFAULT_wxUSE_MSGDLG=yes
2334 DEFAULT_wxUSE_NUMBERDLG=yes
2335 DEFAULT_wxUSE_TEXTDLG=yes
2336 DEFAULT_wxUSE_SPLASH=yes
2337 DEFAULT_wxUSE_STARTUP_TIPS=yes
2338 DEFAULT_wxUSE_PROGRESSDLG=yes
2339 DEFAULT_wxUSE_WIZARDDLG=yes
2340
2341 DEFAULT_wxUSE_MENUS=yes
2342 DEFAULT_wxUSE_MINIFRAME=yes
2343 DEFAULT_wxUSE_HTML=yes
9a8f0513 2344 DEFAULT_wxUSE_XRC=yes
646b6ec1 2345 DEFAULT_wxUSE_WEBKIT=yes
a848cd7e
SC
2346 DEFAULT_wxUSE_FILESYSTEM=yes
2347 DEFAULT_wxUSE_FS_INET=yes
2348 DEFAULT_wxUSE_FS_ZIP=yes
2349 DEFAULT_wxUSE_BUSYINFO=yes
9e8e867f 2350 DEFAULT_wxUSE_ARCHIVE_STREAMS=yes
a848cd7e 2351 DEFAULT_wxUSE_ZIPSTREAM=yes
a848cd7e
SC
2352 DEFAULT_wxUSE_VALIDATORS=yes
2353
2354 DEFAULT_wxUSE_ACCEL=yes
2355 DEFAULT_wxUSE_BUTTON=yes
2356 DEFAULT_wxUSE_BMPBUTTON=yes
2357 DEFAULT_wxUSE_CALCTRL=yes
2358 DEFAULT_wxUSE_CARET=yes
2359 DEFAULT_wxUSE_CHECKBOX=yes
2360 DEFAULT_wxUSE_CHECKLST=yes
2361 DEFAULT_wxUSE_CHOICE=yes
92bbdbcd 2362 DEFAULT_wxUSE_CHOICEBOOK=yes
a848cd7e 2363 DEFAULT_wxUSE_COMBOBOX=yes
da98e9be 2364 DEFAULT_wxUSE_DATEPICKCTRL=yes
a848cd7e
SC
2365 DEFAULT_wxUSE_DISPLAY=yes
2366 DEFAULT_wxUSE_GAUGE=yes
2367 DEFAULT_wxUSE_GRID=yes
2368 DEFAULT_wxUSE_IMAGLIST=yes
2369 DEFAULT_wxUSE_LISTBOOK=yes
2370 DEFAULT_wxUSE_LISTBOX=yes
2371 DEFAULT_wxUSE_LISTCTRL=yes
2372 DEFAULT_wxUSE_NOTEBOOK=yes
2373 DEFAULT_wxUSE_RADIOBOX=yes
2374 DEFAULT_wxUSE_RADIOBTN=yes
2375 DEFAULT_wxUSE_SASH=yes
2376 DEFAULT_wxUSE_SCROLLBAR=yes
2377 DEFAULT_wxUSE_SLIDER=yes
2378 DEFAULT_wxUSE_SPINBTN=yes
2379 DEFAULT_wxUSE_SPINCTRL=yes
2380 DEFAULT_wxUSE_SPLITTER=yes
2381 DEFAULT_wxUSE_STATBMP=yes
2382 DEFAULT_wxUSE_STATBOX=yes
2383 DEFAULT_wxUSE_STATLINE=yes
2384 DEFAULT_wxUSE_STATTEXT=yes
2385 DEFAULT_wxUSE_STATUSBAR=yes
2386 DEFAULT_wxUSE_TABDIALOG=no
2387 DEFAULT_wxUSE_TEXTCTRL=yes
2388 DEFAULT_wxUSE_TOGGLEBTN=yes
2389 DEFAULT_wxUSE_TOOLBAR=yes
2390 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
2391 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
2392 DEFAULT_wxUSE_TREECTRL=yes
2393 DEFAULT_wxUSE_POPUPWIN=yes
2394 DEFAULT_wxUSE_TIPWINDOW=yes
2395
2396 DEFAULT_wxUSE_UNICODE=no
2397 DEFAULT_wxUSE_UNICODE_MSLU=yes
2398 DEFAULT_wxUSE_WCSRTOMBS=no
2399
2400 DEFAULT_wxUSE_PALETTE=yes
2401 DEFAULT_wxUSE_IMAGE=yes
2402 DEFAULT_wxUSE_GIF=yes
2403 DEFAULT_wxUSE_PCX=yes
2404 DEFAULT_wxUSE_IFF=no
2405 DEFAULT_wxUSE_PNM=yes
2406 DEFAULT_wxUSE_XPM=yes
2407 DEFAULT_wxUSE_ICO_CUR=yes
2408 DEFAULT_wxUSE_ACCESSIBILITY=no
2409
2410 DEFAULT_wxUSE_MONOLITHIC=no
2411 DEFAULT_wxUSE_PLUGINS=no
2412 DEFAULT_wxUSE_OFFICIAL_BUILD=no
9f45f08e
VS
2413
2414 DEFAULT_wxUSE_GTK2=yes
a848cd7e
SC
2415fi
2416
2417
2418
2419for toolkit in `echo $ALL_TOOLKITS`; do
2420 LINE=`grep "wxUSE_$toolkit=" ${wx_arg_cache_file}`
2421 if test "x$LINE" != "x" ; then
2422 has_toolkit_in_cache=1
2423 eval "DEFAULT_$LINE"
2424 eval "CACHE_$toolkit=1"
2425 fi
2426done
2427
2428
2429
2430 enablestring=
2431 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gui" >&5
2432echo $ECHO_N "checking for --${enablestring:-enable}-gui... $ECHO_C" >&6
2433 no_cache=0
2434 # Check whether --enable-gui or --disable-gui was given.
2435if test "${enable_gui+set}" = set; then
2436 enableval="$enable_gui"
2437
2438 if test "$enableval" = yes; then
2439 ac_cv_use_gui='wxUSE_GUI=yes'
2440 else
2441 ac_cv_use_gui='wxUSE_GUI=no'
2442 fi
2443
2444else
2445
2446 LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}`
2447 if test "x$LINE" != x ; then
2448 eval "DEFAULT_$LINE"
2449 else
2450 no_cache=1
2451 fi
2452
2453 ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI
2454
2455fi;
2456
2457 eval "$ac_cv_use_gui"
2458 if test "$no_cache" != 1; then
2459 echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp
2460 fi
2461
2462 if test "$wxUSE_GUI" = yes; then
2463 echo "$as_me:$LINENO: result: yes" >&5
2464echo "${ECHO_T}yes" >&6
2465 else
2466 echo "$as_me:$LINENO: result: no" >&5
2467echo "${ECHO_T}no" >&6
2468 fi
2469
2470
2471 enablestring=
2472 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-monolithic" >&5
2473echo $ECHO_N "checking for --${enablestring:-enable}-monolithic... $ECHO_C" >&6
2474 no_cache=0
2475 # Check whether --enable-monolithic or --disable-monolithic was given.
2476if test "${enable_monolithic+set}" = set; then
2477 enableval="$enable_monolithic"
2478
2479 if test "$enableval" = yes; then
2480 ac_cv_use_monolithic='wxUSE_MONOLITHIC=yes'
2481 else
2482 ac_cv_use_monolithic='wxUSE_MONOLITHIC=no'
2483 fi
2484
2485else
2486
2487 LINE=`grep "wxUSE_MONOLITHIC" ${wx_arg_cache_file}`
2488 if test "x$LINE" != x ; then
2489 eval "DEFAULT_$LINE"
2490 else
2491 no_cache=1
2492 fi
2493
2494 ac_cv_use_monolithic='wxUSE_MONOLITHIC='$DEFAULT_wxUSE_MONOLITHIC
2495
2496fi;
2497
2498 eval "$ac_cv_use_monolithic"
2499 if test "$no_cache" != 1; then
2500 echo $ac_cv_use_monolithic >> ${wx_arg_cache_file}.tmp
2501 fi
2502
2503 if test "$wxUSE_MONOLITHIC" = yes; then
2504 echo "$as_me:$LINENO: result: yes" >&5
2505echo "${ECHO_T}yes" >&6
2506 else
2507 echo "$as_me:$LINENO: result: no" >&5
2508echo "${ECHO_T}no" >&6
2509 fi
2510
2511
2512 enablestring=
2513 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-plugins" >&5
2514echo $ECHO_N "checking for --${enablestring:-enable}-plugins... $ECHO_C" >&6
2515 no_cache=0
2516 # Check whether --enable-plugins or --disable-plugins was given.
2517if test "${enable_plugins+set}" = set; then
2518 enableval="$enable_plugins"
2519
2520 if test "$enableval" = yes; then
2521 ac_cv_use_plugins='wxUSE_PLUGINS=yes'
2522 else
2523 ac_cv_use_plugins='wxUSE_PLUGINS=no'
2524 fi
2525
2526else
2527
2528 LINE=`grep "wxUSE_PLUGINS" ${wx_arg_cache_file}`
2529 if test "x$LINE" != x ; then
2530 eval "DEFAULT_$LINE"
2531 else
2532 no_cache=1
2533 fi
2534
2535 ac_cv_use_plugins='wxUSE_PLUGINS='$DEFAULT_wxUSE_PLUGINS
2536
2537fi;
2538
2539 eval "$ac_cv_use_plugins"
2540 if test "$no_cache" != 1; then
2541 echo $ac_cv_use_plugins >> ${wx_arg_cache_file}.tmp
2542 fi
2543
2544 if test "$wxUSE_PLUGINS" = yes; then
2545 echo "$as_me:$LINENO: result: yes" >&5
2546echo "${ECHO_T}yes" >&6
2547 else
2548 echo "$as_me:$LINENO: result: no" >&5
2549echo "${ECHO_T}no" >&6
2550 fi
2551
2552
2553if test "$wxUSE_GUI" = "yes"; then
2554
2555
2556 enablestring=
2557 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-universal" >&5
2558echo $ECHO_N "checking for --${enablestring:-enable}-universal... $ECHO_C" >&6
2559 no_cache=0
2560 # Check whether --enable-universal or --disable-universal was given.
2561if test "${enable_universal+set}" = set; then
2562 enableval="$enable_universal"
2563
2564 if test "$enableval" = yes; then
2565 ac_cv_use_universal='wxUSE_UNIVERSAL=yes'
2566 else
2567 ac_cv_use_universal='wxUSE_UNIVERSAL=no'
2568 fi
2569
2570else
2571
2572 LINE=`grep "wxUSE_UNIVERSAL" ${wx_arg_cache_file}`
2573 if test "x$LINE" != x ; then
2574 eval "DEFAULT_$LINE"
2575 else
2576 no_cache=1
2577 fi
2578
2579 ac_cv_use_universal='wxUSE_UNIVERSAL='$DEFAULT_wxUSE_UNIVERSAL
2580
2581fi;
2582
2583 eval "$ac_cv_use_universal"
2584 if test "$no_cache" != 1; then
2585 echo $ac_cv_use_universal >> ${wx_arg_cache_file}.tmp
2586 fi
2587
2588 if test "$wxUSE_UNIVERSAL" = yes; then
2589 echo "$as_me:$LINENO: result: yes" >&5
2590echo "${ECHO_T}yes" >&6
2591 else
2592 echo "$as_me:$LINENO: result: no" >&5
2593echo "${ECHO_T}no" >&6
2594 fi
2595
2596
2597# Check whether --with-gtk or --without-gtk was given.
2598if test "${with_gtk+set}" = set; then
2599 withval="$with_gtk"
2600 wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1
2601fi;
2602
2603# Check whether --with-motif or --without-motif was given.
2604if test "${with_motif+set}" = set; then
2605 withval="$with_motif"
2606 wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1
2607fi;
2608
2609# Check whether --with-mac or --without-mac was given.
2610if test "${with_mac+set}" = set; then
2611 withval="$with_mac"
c228d3a4 2612 wxUSE_MAC="$withval" CACHE_MAC=1 TOOLKIT_GIVEN=1
a848cd7e
SC
2613fi;
2614
2615# Check whether --with-cocoa or --without-cocoa was given.
2616if test "${with_cocoa+set}" = set; then
2617 withval="$with_cocoa"
c228d3a4 2618 wxUSE_COCOA="$withval" CACHE_COCOA=1 TOOLKIT_GIVEN=1
a848cd7e
SC
2619fi;
2620
2621# Check whether --with-wine or --without-wine was given.
2622if test "${with_wine+set}" = set; then
2623 withval="$with_wine"
2624 wxUSE_WINE="$withval" CACHE_WINE=1
2625fi;
2626
2627# Check whether --with-msw or --without-msw was given.
2628if test "${with_msw+set}" = set; then
2629 withval="$with_msw"
2630 wxUSE_MSW="$withval" CACHE_MSW=1 TOOLKIT_GIVEN=1
2631fi;
2632
2633# Check whether --with-pm or --without-pm was given.
2634if test "${with_pm+set}" = set; then
2635 withval="$with_pm"
2636 wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1
2637fi;
2638
2639# Check whether --with-mgl or --without-mgl was given.
2640if test "${with_mgl+set}" = set; then
2641 withval="$with_mgl"
2642 wxUSE_MGL="$withval" wxUSE_UNIVERSAL="yes" CACHE_MGL=1 TOOLKIT_GIVEN=1
2643fi;
2644
2645# Check whether --with-microwin or --without-microwin was given.
2646if test "${with_microwin+set}" = set; then
2647 withval="$with_microwin"
2648 wxUSE_MICROWIN="$withval" CACHE_MICROWIN=1 TOOLKIT_GIVEN=1
2649fi;
2650
2651# Check whether --with-x11 or --without-x11 was given.
2652if test "${with_x11+set}" = set; then
2653 withval="$with_x11"
2654 wxUSE_X11="$withval" wxUSE_UNIVERSAL="yes" CACHE_X11=1 TOOLKIT_GIVEN=1
2655fi;
2656
2657 enablestring=
2658 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-nanox" >&5
2659echo $ECHO_N "checking for --${enablestring:-enable}-nanox... $ECHO_C" >&6
2660 no_cache=0
2661 # Check whether --enable-nanox or --disable-nanox was given.
2662if test "${enable_nanox+set}" = set; then
2663 enableval="$enable_nanox"
2664
2665 if test "$enableval" = yes; then
2666 ac_cv_use_nanox='wxUSE_NANOX=yes'
2667 else
2668 ac_cv_use_nanox='wxUSE_NANOX=no'
2669 fi
2670
2671else
2672
2673 LINE=`grep "wxUSE_NANOX" ${wx_arg_cache_file}`
2674 if test "x$LINE" != x ; then
2675 eval "DEFAULT_$LINE"
2676 else
2677 no_cache=1
2678 fi
2679
2680 ac_cv_use_nanox='wxUSE_NANOX='$DEFAULT_wxUSE_NANOX
2681
2682fi;
2683
2684 eval "$ac_cv_use_nanox"
2685 if test "$no_cache" != 1; then
2686 echo $ac_cv_use_nanox >> ${wx_arg_cache_file}.tmp
2687 fi
2688
2689 if test "$wxUSE_NANOX" = yes; then
2690 echo "$as_me:$LINENO: result: yes" >&5
2691echo "${ECHO_T}yes" >&6
2692 else
2693 echo "$as_me:$LINENO: result: no" >&5
2694echo "${ECHO_T}no" >&6
2695 fi
2696
2697
2698
2699 enablestring=
2700 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gtk2" >&5
2701echo $ECHO_N "checking for --${enablestring:-enable}-gtk2... $ECHO_C" >&6
2702 no_cache=0
2703 # Check whether --enable-gtk2 or --disable-gtk2 was given.
2704if test "${enable_gtk2+set}" = set; then
2705 enableval="$enable_gtk2"
2706
2707 if test "$enableval" = yes; then
2708 ac_cv_use_gtk2='wxUSE_GTK2=yes'
2709 else
2710 ac_cv_use_gtk2='wxUSE_GTK2=no'
2711 fi
2712
2713else
2714
2715 LINE=`grep "wxUSE_GTK2" ${wx_arg_cache_file}`
2716 if test "x$LINE" != x ; then
2717 eval "DEFAULT_$LINE"
2718 else
2719 no_cache=1
2720 fi
2721
2722 ac_cv_use_gtk2='wxUSE_GTK2='$DEFAULT_wxUSE_GTK2
2723
2724fi;
2725
2726 eval "$ac_cv_use_gtk2"
2727 if test "$no_cache" != 1; then
2728 echo $ac_cv_use_gtk2 >> ${wx_arg_cache_file}.tmp
2729 fi
2730
2731 if test "$wxUSE_GTK2" = yes; then
2732 echo "$as_me:$LINENO: result: yes" >&5
2733echo "${ECHO_T}yes" >&6
2734 else
2735 echo "$as_me:$LINENO: result: no" >&5
2736echo "${ECHO_T}no" >&6
2737 fi
2738
2739
2740 enablestring=
2741 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gpe" >&5
2742echo $ECHO_N "checking for --${enablestring:-enable}-gpe... $ECHO_C" >&6
2743 no_cache=0
2744 # Check whether --enable-gpe or --disable-gpe was given.
2745if test "${enable_gpe+set}" = set; then
2746 enableval="$enable_gpe"
2747
2748 if test "$enableval" = yes; then
2749 ac_cv_use_gpe='wxUSE_GPE=yes'
2750 else
2751 ac_cv_use_gpe='wxUSE_GPE=no'
2752 fi
2753
2754else
2755
2756 LINE=`grep "wxUSE_GPE" ${wx_arg_cache_file}`
2757 if test "x$LINE" != x ; then
2758 eval "DEFAULT_$LINE"
2759 else
2760 no_cache=1
2761 fi
2762
2763 ac_cv_use_gpe='wxUSE_GPE='$DEFAULT_wxUSE_GPE
2764
2765fi;
2766
2767 eval "$ac_cv_use_gpe"
2768 if test "$no_cache" != 1; then
2769 echo $ac_cv_use_gpe >> ${wx_arg_cache_file}.tmp
2770 fi
2771
2772 if test "$wxUSE_GPE" = yes; then
2773 echo "$as_me:$LINENO: result: yes" >&5
2774echo "${ECHO_T}yes" >&6
2775 else
2776 echo "$as_me:$LINENO: result: no" >&5
2777echo "${ECHO_T}no" >&6
2778 fi
2779
2780
2781
2782 echo "$as_me:$LINENO: checking for --with-libpng" >&5
2783echo $ECHO_N "checking for --with-libpng... $ECHO_C" >&6
2784 no_cache=0
2785
2786# Check whether --with-libpng or --without-libpng was given.
2787if test "${with_libpng+set}" = set; then
2788 withval="$with_libpng"
2789
2790 if test "$withval" = yes; then
2791 ac_cv_use_libpng='wxUSE_LIBPNG=yes'
2792 elif test "$withval" = no; then
2793 ac_cv_use_libpng='wxUSE_LIBPNG=no'
2794 elif test "$withval" = sys; then
2795 ac_cv_use_libpng='wxUSE_LIBPNG=sys'
2796 elif test "$withval" = builtin; then
2797 ac_cv_use_libpng='wxUSE_LIBPNG=builtin'
2798 else
2799 { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5
2800echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;}
2801 { (exit 1); exit 1; }; }
2802 fi
2803
2804else
2805
2806 LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}`
2807 if test "x$LINE" != x ; then
2808 eval "DEFAULT_$LINE"
2809 else
2810 no_cache=1
2811 fi
2812
2813 ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG
2814
2815fi;
2816
2817 eval "$ac_cv_use_libpng"
2818 if test "$no_cache" != 1; then
2819 echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp
2820 fi
2821
2822 if test "$wxUSE_LIBPNG" = yes; then
2823 echo "$as_me:$LINENO: result: yes" >&5
2824echo "${ECHO_T}yes" >&6
2825 elif test "$wxUSE_LIBPNG" = no; then
2826 echo "$as_me:$LINENO: result: no" >&5
2827echo "${ECHO_T}no" >&6
2828 elif test "$wxUSE_LIBPNG" = sys; then
2829 echo "$as_me:$LINENO: result: system version" >&5
2830echo "${ECHO_T}system version" >&6
2831 elif test "$wxUSE_LIBPNG" = builtin; then
2832 echo "$as_me:$LINENO: result: builtin version" >&5
2833echo "${ECHO_T}builtin version" >&6
2834 else
2835 { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5
2836echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;}
2837 { (exit 1); exit 1; }; }
2838 fi
2839
2840
2841 echo "$as_me:$LINENO: checking for --with-libjpeg" >&5
2842echo $ECHO_N "checking for --with-libjpeg... $ECHO_C" >&6
2843 no_cache=0
2844
2845# Check whether --with-libjpeg or --without-libjpeg was given.
2846if test "${with_libjpeg+set}" = set; then
2847 withval="$with_libjpeg"
2848
2849 if test "$withval" = yes; then
2850 ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes'
2851 elif test "$withval" = no; then
2852 ac_cv_use_libjpeg='wxUSE_LIBJPEG=no'
2853 elif test "$withval" = sys; then
2854 ac_cv_use_libjpeg='wxUSE_LIBJPEG=sys'
2855 elif test "$withval" = builtin; then
2856 ac_cv_use_libjpeg='wxUSE_LIBJPEG=builtin'
2857 else
2858 { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5
2859echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;}
2860 { (exit 1); exit 1; }; }
2861 fi
2862
2863else
2864
2865 LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}`
2866 if test "x$LINE" != x ; then
2867 eval "DEFAULT_$LINE"
2868 else
2869 no_cache=1
2870 fi
2871
2872 ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG
2873
2874fi;
2875
2876 eval "$ac_cv_use_libjpeg"
2877 if test "$no_cache" != 1; then
2878 echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp
2879 fi
2880
2881 if test "$wxUSE_LIBJPEG" = yes; then
2882 echo "$as_me:$LINENO: result: yes" >&5
2883echo "${ECHO_T}yes" >&6
2884 elif test "$wxUSE_LIBJPEG" = no; then
2885 echo "$as_me:$LINENO: result: no" >&5
2886echo "${ECHO_T}no" >&6
2887 elif test "$wxUSE_LIBJPEG" = sys; then
2888 echo "$as_me:$LINENO: result: system version" >&5
2889echo "${ECHO_T}system version" >&6
2890 elif test "$wxUSE_LIBJPEG" = builtin; then
2891 echo "$as_me:$LINENO: result: builtin version" >&5
2892echo "${ECHO_T}builtin version" >&6
2893 else
2894 { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5
2895echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;}
2896 { (exit 1); exit 1; }; }
2897 fi
2898
2899
2900 echo "$as_me:$LINENO: checking for --with-libtiff" >&5
2901echo $ECHO_N "checking for --with-libtiff... $ECHO_C" >&6
2902 no_cache=0
2903
2904# Check whether --with-libtiff or --without-libtiff was given.
2905if test "${with_libtiff+set}" = set; then
2906 withval="$with_libtiff"
2907
2908 if test "$withval" = yes; then
2909 ac_cv_use_libtiff='wxUSE_LIBTIFF=yes'
2910 elif test "$withval" = no; then
2911 ac_cv_use_libtiff='wxUSE_LIBTIFF=no'
2912 elif test "$withval" = sys; then
2913 ac_cv_use_libtiff='wxUSE_LIBTIFF=sys'
2914 elif test "$withval" = builtin; then
2915 ac_cv_use_libtiff='wxUSE_LIBTIFF=builtin'
2916 else
2917 { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5
2918echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;}
2919 { (exit 1); exit 1; }; }
2920 fi
2921
2922else
2923
2924 LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}`
2925 if test "x$LINE" != x ; then
2926 eval "DEFAULT_$LINE"
2927 else
2928 no_cache=1
2929 fi
2930
2931 ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF
2932
2933fi;
2934
2935 eval "$ac_cv_use_libtiff"
2936 if test "$no_cache" != 1; then
2937 echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp
2938 fi
2939
2940 if test "$wxUSE_LIBTIFF" = yes; then
2941 echo "$as_me:$LINENO: result: yes" >&5
2942echo "${ECHO_T}yes" >&6
2943 elif test "$wxUSE_LIBTIFF" = no; then
2944 echo "$as_me:$LINENO: result: no" >&5
2945echo "${ECHO_T}no" >&6
2946 elif test "$wxUSE_LIBTIFF" = sys; then
2947 echo "$as_me:$LINENO: result: system version" >&5
2948echo "${ECHO_T}system version" >&6
2949 elif test "$wxUSE_LIBTIFF" = builtin; then
2950 echo "$as_me:$LINENO: result: builtin version" >&5
2951echo "${ECHO_T}builtin version" >&6
2952 else
2953 { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5
2954echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;}
2955 { (exit 1); exit 1; }; }
2956 fi
2957
2958
2959 echo "$as_me:$LINENO: checking for --with-libxpm" >&5
2960echo $ECHO_N "checking for --with-libxpm... $ECHO_C" >&6
2961 no_cache=0
2962
2963# Check whether --with-libxpm or --without-libxpm was given.
2964if test "${with_libxpm+set}" = set; then
2965 withval="$with_libxpm"
2966
2967 if test "$withval" = yes; then
2968 ac_cv_use_libxpm='wxUSE_LIBXPM=yes'
2969 elif test "$withval" = no; then
2970 ac_cv_use_libxpm='wxUSE_LIBXPM=no'
2971 elif test "$withval" = sys; then
2972 ac_cv_use_libxpm='wxUSE_LIBXPM=sys'
2973 elif test "$withval" = builtin; then
2974 ac_cv_use_libxpm='wxUSE_LIBXPM=builtin'
2975 else
2976 { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5
2977echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;}
2978 { (exit 1); exit 1; }; }
2979 fi
2980
2981else
2982
2983 LINE=`grep "wxUSE_LIBXPM" ${wx_arg_cache_file}`
2984 if test "x$LINE" != x ; then
2985 eval "DEFAULT_$LINE"
2986 else
2987 no_cache=1
2988 fi
2989
2990 ac_cv_use_libxpm='wxUSE_LIBXPM='$DEFAULT_wxUSE_LIBXPM
2991
2992fi;
2993
2994 eval "$ac_cv_use_libxpm"
2995 if test "$no_cache" != 1; then
2996 echo $ac_cv_use_libxpm >> ${wx_arg_cache_file}.tmp
2997 fi
2998
2999 if test "$wxUSE_LIBXPM" = yes; then
3000 echo "$as_me:$LINENO: result: yes" >&5
3001echo "${ECHO_T}yes" >&6
3002 elif test "$wxUSE_LIBXPM" = no; then
3003 echo "$as_me:$LINENO: result: no" >&5
3004echo "${ECHO_T}no" >&6
3005 elif test "$wxUSE_LIBXPM" = sys; then
3006 echo "$as_me:$LINENO: result: system version" >&5
3007echo "${ECHO_T}system version" >&6
3008 elif test "$wxUSE_LIBXPM" = builtin; then
3009 echo "$as_me:$LINENO: result: builtin version" >&5
3010echo "${ECHO_T}builtin version" >&6
3011 else
3012 { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5
3013echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;}
3014 { (exit 1); exit 1; }; }
3015 fi
3016
3017
3018 echo "$as_me:$LINENO: checking for --with-libmspack" >&5
3019echo $ECHO_N "checking for --with-libmspack... $ECHO_C" >&6
3020 no_cache=0
3021
3022# Check whether --with-libmspack or --without-libmspack was given.
3023if test "${with_libmspack+set}" = set; then
3024 withval="$with_libmspack"
3025
3026 if test "$withval" = yes; then
3027 ac_cv_use_libmspack='wxUSE_LIBMSPACK=yes'
3028 else
3029 ac_cv_use_libmspack='wxUSE_LIBMSPACK=no'
3030 fi
3031
3032else
3033
3034 LINE=`grep "wxUSE_LIBMSPACK" ${wx_arg_cache_file}`
3035 if test "x$LINE" != x ; then
3036 eval "DEFAULT_$LINE"
3037 else
3038 no_cache=1
3039 fi
3040
3041 ac_cv_use_libmspack='wxUSE_LIBMSPACK='$DEFAULT_wxUSE_LIBMSPACK
3042
3043fi;
3044
3045 eval "$ac_cv_use_libmspack"
3046 if test "$no_cache" != 1; then
3047 echo $ac_cv_use_libmspack >> ${wx_arg_cache_file}.tmp
3048 fi
3049
3050 if test "$wxUSE_LIBMSPACK" = yes; then
3051 echo "$as_me:$LINENO: result: yes" >&5
3052echo "${ECHO_T}yes" >&6
3053 else
3054 echo "$as_me:$LINENO: result: no" >&5
3055echo "${ECHO_T}no" >&6
3056 fi
3057
3058
3059 echo "$as_me:$LINENO: checking for --with-sdl" >&5
3060echo $ECHO_N "checking for --with-sdl... $ECHO_C" >&6
3061 no_cache=0
3062
3063# Check whether --with-sdl or --without-sdl was given.
3064if test "${with_sdl+set}" = set; then
3065 withval="$with_sdl"
3066
3067 if test "$withval" = yes; then
3068 ac_cv_use_sdl='wxUSE_LIBSDL=yes'
3069 else
3070 ac_cv_use_sdl='wxUSE_LIBSDL=no'
3071 fi
3072
3073else
3074
3075 LINE=`grep "wxUSE_LIBSDL" ${wx_arg_cache_file}`
3076 if test "x$LINE" != x ; then
3077 eval "DEFAULT_$LINE"
3078 else
3079 no_cache=1
3080 fi
3081
3082 ac_cv_use_sdl='wxUSE_LIBSDL='$DEFAULT_wxUSE_LIBSDL
3083
3084fi;
3085
3086 eval "$ac_cv_use_sdl"
3087 if test "$no_cache" != 1; then
3088 echo $ac_cv_use_sdl >> ${wx_arg_cache_file}.tmp
3089 fi
3090
3091 if test "$wxUSE_LIBSDL" = yes; then
3092 echo "$as_me:$LINENO: result: yes" >&5
3093echo "${ECHO_T}yes" >&6
3094 else
3095 echo "$as_me:$LINENO: result: no" >&5
3096echo "${ECHO_T}no" >&6
3097 fi
3098
3099
d1c38808
VZ
3100 echo "$as_me:$LINENO: checking for --with-gnomeprint" >&5
3101echo $ECHO_N "checking for --with-gnomeprint... $ECHO_C" >&6
3102 no_cache=0
3103
3104# Check whether --with-gnomeprint or --without-gnomeprint was given.
3105if test "${with_gnomeprint+set}" = set; then
3106 withval="$with_gnomeprint"
3107
3108 if test "$withval" = yes; then
3109 ac_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT=yes'
3110 else
3111 ac_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT=no'
3112 fi
3113
3114else
3115
3116 LINE=`grep "wxUSE_LIBGNOMEPRINT" ${wx_arg_cache_file}`
3117 if test "x$LINE" != x ; then
3118 eval "DEFAULT_$LINE"
3119 else
3120 no_cache=1
3121 fi
3122
3123 ac_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT='$DEFAULT_wxUSE_LIBGNOMEPRINT
3124
3125fi;
3126
3127 eval "$ac_cv_use_gnomeprint"
3128 if test "$no_cache" != 1; then
3129 echo $ac_cv_use_gnomeprint >> ${wx_arg_cache_file}.tmp
3130 fi
3131
3132 if test "$wxUSE_LIBGNOMEPRINT" = yes; then
3133 echo "$as_me:$LINENO: result: yes" >&5
3134echo "${ECHO_T}yes" >&6
3135 else
3136 echo "$as_me:$LINENO: result: no" >&5
3137echo "${ECHO_T}no" >&6
3138 fi
3139
3140
a848cd7e
SC
3141 echo "$as_me:$LINENO: checking for --with-opengl" >&5
3142echo $ECHO_N "checking for --with-opengl... $ECHO_C" >&6
3143 no_cache=0
3144
3145# Check whether --with-opengl or --without-opengl was given.
3146if test "${with_opengl+set}" = set; then
3147 withval="$with_opengl"
3148
3149 if test "$withval" = yes; then
3150 ac_cv_use_opengl='wxUSE_OPENGL=yes'
3151 else
3152 ac_cv_use_opengl='wxUSE_OPENGL=no'
3153 fi
3154
3155else
3156
3157 LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}`
3158 if test "x$LINE" != x ; then
3159 eval "DEFAULT_$LINE"
3160 else
3161 no_cache=1
3162 fi
3163
3164 ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL
3165
3166fi;
3167
3168 eval "$ac_cv_use_opengl"
3169 if test "$no_cache" != 1; then
3170 echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp
3171 fi
3172
3173 if test "$wxUSE_OPENGL" = yes; then
3174 echo "$as_me:$LINENO: result: yes" >&5
3175echo "${ECHO_T}yes" >&6
3176 else
3177 echo "$as_me:$LINENO: result: no" >&5
3178echo "${ECHO_T}no" >&6
3179 fi
3180
3181
3182fi
3183
3184
3185 echo "$as_me:$LINENO: checking for --with-dmalloc" >&5
3186echo $ECHO_N "checking for --with-dmalloc... $ECHO_C" >&6
3187 no_cache=0
3188
3189# Check whether --with-dmalloc or --without-dmalloc was given.
3190if test "${with_dmalloc+set}" = set; then
3191 withval="$with_dmalloc"
3192
3193 if test "$withval" = yes; then
3194 ac_cv_use_dmalloc='wxUSE_DMALLOC=yes'
3195 else
3196 ac_cv_use_dmalloc='wxUSE_DMALLOC=no'
3197 fi
3198
3199else
3200
3201 LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}`
3202 if test "x$LINE" != x ; then
3203 eval "DEFAULT_$LINE"
3204 else
3205 no_cache=1
3206 fi
3207
3208 ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC
3209
3210fi;
3211
3212 eval "$ac_cv_use_dmalloc"
3213 if test "$no_cache" != 1; then
3214 echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp
3215 fi
3216
3217 if test "$wxUSE_DMALLOC" = yes; then
3218 echo "$as_me:$LINENO: result: yes" >&5
3219echo "${ECHO_T}yes" >&6
3220 else
3221 echo "$as_me:$LINENO: result: no" >&5
3222echo "${ECHO_T}no" >&6
3223 fi
3224
3225
3226 echo "$as_me:$LINENO: checking for --with-regex" >&5
3227echo $ECHO_N "checking for --with-regex... $ECHO_C" >&6
3228 no_cache=0
3229
3230# Check whether --with-regex or --without-regex was given.
3231if test "${with_regex+set}" = set; then
3232 withval="$with_regex"
3233
3234 if test "$withval" = yes; then
3235 ac_cv_use_regex='wxUSE_REGEX=yes'
3236 elif test "$withval" = no; then
3237 ac_cv_use_regex='wxUSE_REGEX=no'
3238 elif test "$withval" = sys; then
3239 ac_cv_use_regex='wxUSE_REGEX=sys'
3240 elif test "$withval" = builtin; then
3241 ac_cv_use_regex='wxUSE_REGEX=builtin'
3242 else
3243 { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5
3244echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;}
3245 { (exit 1); exit 1; }; }
3246 fi
3247
3248else
3249
3250 LINE=`grep "wxUSE_REGEX" ${wx_arg_cache_file}`
3251 if test "x$LINE" != x ; then
3252 eval "DEFAULT_$LINE"
3253 else
3254 no_cache=1
3255 fi
3256
3257 ac_cv_use_regex='wxUSE_REGEX='$DEFAULT_wxUSE_REGEX
3258
3259fi;
3260
3261 eval "$ac_cv_use_regex"
3262 if test "$no_cache" != 1; then
3263 echo $ac_cv_use_regex >> ${wx_arg_cache_file}.tmp
3264 fi
3265
3266 if test "$wxUSE_REGEX" = yes; then
3267 echo "$as_me:$LINENO: result: yes" >&5
3268echo "${ECHO_T}yes" >&6
3269 elif test "$wxUSE_REGEX" = no; then
3270 echo "$as_me:$LINENO: result: no" >&5
3271echo "${ECHO_T}no" >&6
3272 elif test "$wxUSE_REGEX" = sys; then
3273 echo "$as_me:$LINENO: result: system version" >&5
3274echo "${ECHO_T}system version" >&6
3275 elif test "$wxUSE_REGEX" = builtin; then
3276 echo "$as_me:$LINENO: result: builtin version" >&5
3277echo "${ECHO_T}builtin version" >&6
3278 else
3279 { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5
3280echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;}
3281 { (exit 1); exit 1; }; }
3282 fi
3283
3284
3285 echo "$as_me:$LINENO: checking for --with-zlib" >&5
3286echo $ECHO_N "checking for --with-zlib... $ECHO_C" >&6
3287 no_cache=0
3288
3289# Check whether --with-zlib or --without-zlib was given.
3290if test "${with_zlib+set}" = set; then
3291 withval="$with_zlib"
3292
3293 if test "$withval" = yes; then
3294 ac_cv_use_zlib='wxUSE_ZLIB=yes'
3295 elif test "$withval" = no; then
3296 ac_cv_use_zlib='wxUSE_ZLIB=no'
3297 elif test "$withval" = sys; then
3298 ac_cv_use_zlib='wxUSE_ZLIB=sys'
3299 elif test "$withval" = builtin; then
3300 ac_cv_use_zlib='wxUSE_ZLIB=builtin'
3301 else
3302 { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5
3303echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;}
3304 { (exit 1); exit 1; }; }
3305 fi
3306
3307else
3308
3309 LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}`
3310 if test "x$LINE" != x ; then
3311 eval "DEFAULT_$LINE"
3312 else
3313 no_cache=1
3314 fi
3315
3316 ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB
3317
3318fi;
3319
3320 eval "$ac_cv_use_zlib"
3321 if test "$no_cache" != 1; then
3322 echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp
3323 fi
3324
3325 if test "$wxUSE_ZLIB" = yes; then
3326 echo "$as_me:$LINENO: result: yes" >&5
3327echo "${ECHO_T}yes" >&6
3328 elif test "$wxUSE_ZLIB" = no; then
3329 echo "$as_me:$LINENO: result: no" >&5
3330echo "${ECHO_T}no" >&6
3331 elif test "$wxUSE_ZLIB" = sys; then
3332 echo "$as_me:$LINENO: result: system version" >&5
3333echo "${ECHO_T}system version" >&6
3334 elif test "$wxUSE_ZLIB" = builtin; then
3335 echo "$as_me:$LINENO: result: builtin version" >&5
3336echo "${ECHO_T}builtin version" >&6
3337 else
3338 { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5
3339echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;}
3340 { (exit 1); exit 1; }; }
3341 fi
3342
3343
3344 echo "$as_me:$LINENO: checking for --with-odbc" >&5
3345echo $ECHO_N "checking for --with-odbc... $ECHO_C" >&6
3346 no_cache=0
3347
3348# Check whether --with-odbc or --without-odbc was given.
3349if test "${with_odbc+set}" = set; then
3350 withval="$with_odbc"
3351
3352 if test "$withval" = yes; then
3353 ac_cv_use_odbc='wxUSE_ODBC=yes'
3354 elif test "$withval" = no; then
3355 ac_cv_use_odbc='wxUSE_ODBC=no'
3356 elif test "$withval" = sys; then
3357 ac_cv_use_odbc='wxUSE_ODBC=sys'
3358 elif test "$withval" = builtin; then
3359 ac_cv_use_odbc='wxUSE_ODBC=builtin'
3360 else
3361 { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5
3362echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;}
3363 { (exit 1); exit 1; }; }
3364 fi
3365
3366else
3367
3368 LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}`
3369 if test "x$LINE" != x ; then
3370 eval "DEFAULT_$LINE"
3371 else
3372 no_cache=1
3373 fi
3374
3375 ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC
3376
3377fi;
3378
3379 eval "$ac_cv_use_odbc"
3380 if test "$no_cache" != 1; then
3381 echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp
3382 fi
3383
3384 if test "$wxUSE_ODBC" = yes; then
3385 echo "$as_me:$LINENO: result: yes" >&5
3386echo "${ECHO_T}yes" >&6
3387 elif test "$wxUSE_ODBC" = no; then
3388 echo "$as_me:$LINENO: result: no" >&5
3389echo "${ECHO_T}no" >&6
3390 elif test "$wxUSE_ODBC" = sys; then
3391 echo "$as_me:$LINENO: result: system version" >&5
3392echo "${ECHO_T}system version" >&6
3393 elif test "$wxUSE_ODBC" = builtin; then
3394 echo "$as_me:$LINENO: result: builtin version" >&5
3395echo "${ECHO_T}builtin version" >&6
3396 else
3397 { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5
3398echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;}
3399 { (exit 1); exit 1; }; }
3400 fi
3401
3402
3403 echo "$as_me:$LINENO: checking for --with-expat" >&5
3404echo $ECHO_N "checking for --with-expat... $ECHO_C" >&6
3405 no_cache=0
3406
3407# Check whether --with-expat or --without-expat was given.
3408if test "${with_expat+set}" = set; then
3409 withval="$with_expat"
3410
3411 if test "$withval" = yes; then
3412 ac_cv_use_expat='wxUSE_EXPAT=yes'
3413 elif test "$withval" = no; then
3414 ac_cv_use_expat='wxUSE_EXPAT=no'
3415 elif test "$withval" = sys; then
3416 ac_cv_use_expat='wxUSE_EXPAT=sys'
3417 elif test "$withval" = builtin; then
3418 ac_cv_use_expat='wxUSE_EXPAT=builtin'
3419 else
3420 { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5
3421echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;}
3422 { (exit 1); exit 1; }; }
3423 fi
3424
3425else
3426
3427 LINE=`grep "wxUSE_EXPAT" ${wx_arg_cache_file}`
3428 if test "x$LINE" != x ; then
3429 eval "DEFAULT_$LINE"
3430 else
3431 no_cache=1
3432 fi
3433
3434 ac_cv_use_expat='wxUSE_EXPAT='$DEFAULT_wxUSE_EXPAT
3435
3436fi;
3437
3438 eval "$ac_cv_use_expat"
3439 if test "$no_cache" != 1; then
3440 echo $ac_cv_use_expat >> ${wx_arg_cache_file}.tmp
3441 fi
3442
3443 if test "$wxUSE_EXPAT" = yes; then
3444 echo "$as_me:$LINENO: result: yes" >&5
3445echo "${ECHO_T}yes" >&6
3446 elif test "$wxUSE_EXPAT" = no; then
3447 echo "$as_me:$LINENO: result: no" >&5
3448echo "${ECHO_T}no" >&6
3449 elif test "$wxUSE_EXPAT" = sys; then
3450 echo "$as_me:$LINENO: result: system version" >&5
3451echo "${ECHO_T}system version" >&6
3452 elif test "$wxUSE_EXPAT" = builtin; then
3453 echo "$as_me:$LINENO: result: builtin version" >&5
3454echo "${ECHO_T}builtin version" >&6
3455 else
3456 { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5
3457echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;}
3458 { (exit 1); exit 1; }; }
3459 fi
3460
3461
3462
3463
3464 enablestring=
3465 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-shared" >&5
3466echo $ECHO_N "checking for --${enablestring:-enable}-shared... $ECHO_C" >&6
3467 no_cache=0
3468 # Check whether --enable-shared or --disable-shared was given.
3469if test "${enable_shared+set}" = set; then
3470 enableval="$enable_shared"
3471
3472 if test "$enableval" = yes; then
3473 ac_cv_use_shared='wxUSE_SHARED=yes'
3474 else
3475 ac_cv_use_shared='wxUSE_SHARED=no'
3476 fi
3477
3478else
3479
3480 LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}`
3481 if test "x$LINE" != x ; then
3482 eval "DEFAULT_$LINE"
3483 else
3484 no_cache=1
3485 fi
3486
3487 ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED
3488
3489fi;
3490
3491 eval "$ac_cv_use_shared"
3492 if test "$no_cache" != 1; then
3493 echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp
3494 fi
3495
3496 if test "$wxUSE_SHARED" = yes; then
3497 echo "$as_me:$LINENO: result: yes" >&5
3498echo "${ECHO_T}yes" >&6
3499 else
3500 echo "$as_me:$LINENO: result: no" >&5
3501echo "${ECHO_T}no" >&6
3502 fi
3503
3504
3505 enablestring=
3506 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-optimise" >&5
3507echo $ECHO_N "checking for --${enablestring:-enable}-optimise... $ECHO_C" >&6
3508 no_cache=0
3509 # Check whether --enable-optimise or --disable-optimise was given.
3510if test "${enable_optimise+set}" = set; then
3511 enableval="$enable_optimise"
3512
3513 if test "$enableval" = yes; then
3514 ac_cv_use_optimise='wxUSE_OPTIMISE=yes'
3515 else
3516 ac_cv_use_optimise='wxUSE_OPTIMISE=no'
3517 fi
3518
3519else
3520
3521 LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}`
3522 if test "x$LINE" != x ; then
3523 eval "DEFAULT_$LINE"
3524 else
3525 no_cache=1
3526 fi
3527
3528 ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE
3529
3530fi;
3531
3532 eval "$ac_cv_use_optimise"
3533 if test "$no_cache" != 1; then
3534 echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp
3535 fi
3536
3537 if test "$wxUSE_OPTIMISE" = yes; then
3538 echo "$as_me:$LINENO: result: yes" >&5
3539echo "${ECHO_T}yes" >&6
3540 else
3541 echo "$as_me:$LINENO: result: no" >&5
3542echo "${ECHO_T}no" >&6
3543 fi
3544
3545
3546 enablestring=
3547 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug" >&5
3548echo $ECHO_N "checking for --${enablestring:-enable}-debug... $ECHO_C" >&6
3549 no_cache=0
3550 # Check whether --enable-debug or --disable-debug was given.
3551if test "${enable_debug+set}" = set; then
3552 enableval="$enable_debug"
3553
3554 if test "$enableval" = yes; then
3555 ac_cv_use_debug='wxUSE_DEBUG=yes'
3556 else
3557 ac_cv_use_debug='wxUSE_DEBUG=no'
3558 fi
3559
3560else
3561
3562 LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}`
3563 if test "x$LINE" != x ; then
3564 eval "DEFAULT_$LINE"
3565 else
3566 no_cache=1
3567 fi
3568
3569 ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG
3570
3571fi;
3572
3573 eval "$ac_cv_use_debug"
3574 if test "$no_cache" != 1; then
3575 echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp
3576 fi
3577
3578 if test "$wxUSE_DEBUG" = yes; then
3579 echo "$as_me:$LINENO: result: yes" >&5
3580echo "${ECHO_T}yes" >&6
3581 else
3582 echo "$as_me:$LINENO: result: no" >&5
3583echo "${ECHO_T}no" >&6
3584 fi
3585
3586
3587 enablestring=
3588 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stl" >&5
3589echo $ECHO_N "checking for --${enablestring:-enable}-stl... $ECHO_C" >&6
3590 no_cache=0
3591 # Check whether --enable-stl or --disable-stl was given.
3592if test "${enable_stl+set}" = set; then
3593 enableval="$enable_stl"
3594
3595 if test "$enableval" = yes; then
3596 ac_cv_use_stl='wxUSE_STL=yes'
3597 else
3598 ac_cv_use_stl='wxUSE_STL=no'
3599 fi
3600
3601else
3602
3603 LINE=`grep "wxUSE_STL" ${wx_arg_cache_file}`
3604 if test "x$LINE" != x ; then
3605 eval "DEFAULT_$LINE"
3606 else
3607 no_cache=1
3608 fi
3609
3610 ac_cv_use_stl='wxUSE_STL='$DEFAULT_wxUSE_STL
3611
3612fi;
3613
3614 eval "$ac_cv_use_stl"
3615 if test "$no_cache" != 1; then
3616 echo $ac_cv_use_stl >> ${wx_arg_cache_file}.tmp
3617 fi
3618
3619 if test "$wxUSE_STL" = yes; then
3620 echo "$as_me:$LINENO: result: yes" >&5
3621echo "${ECHO_T}yes" >&6
3622 else
3623 echo "$as_me:$LINENO: result: no" >&5
3624echo "${ECHO_T}no" >&6
3625 fi
3626
3627if test "$USE_OS2" = "1"; then
3628
3629 enablestring=
3630 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-omf" >&5
3631echo $ECHO_N "checking for --${enablestring:-enable}-omf... $ECHO_C" >&6
3632 no_cache=0
3633 # Check whether --enable-omf or --disable-omf was given.
3634if test "${enable_omf+set}" = set; then
3635 enableval="$enable_omf"
3636
3637 if test "$enableval" = yes; then
3638 ac_cv_use_omf='wxUSE_OMF=yes'
3639 else
3640 ac_cv_use_omf='wxUSE_OMF=no'
3641 fi
3642
3643else
3644
3645 LINE=`grep "wxUSE_OMF" ${wx_arg_cache_file}`
3646 if test "x$LINE" != x ; then
3647 eval "DEFAULT_$LINE"
3648 else
3649 no_cache=1
3650 fi
3651
3652 ac_cv_use_omf='wxUSE_OMF='$DEFAULT_wxUSE_OMF
3653
3654fi;
3655
3656 eval "$ac_cv_use_omf"
3657 if test "$no_cache" != 1; then
3658 echo $ac_cv_use_omf >> ${wx_arg_cache_file}.tmp
3659 fi
3660
3661 if test "$wxUSE_OMF" = yes; then
3662 echo "$as_me:$LINENO: result: yes" >&5
3663echo "${ECHO_T}yes" >&6
3664 else
3665 echo "$as_me:$LINENO: result: no" >&5
3666echo "${ECHO_T}no" >&6
3667 fi
3668
3669fi
3670
3671if test "$wxUSE_DEBUG" = "yes"; then
3672 DEFAULT_wxUSE_DEBUG_FLAG=yes
3673 DEFAULT_wxUSE_DEBUG_INFO=yes
3674 BUILD=debug
3675elif test "$wxUSE_DEBUG" = "no"; then
3676 DEFAULT_wxUSE_DEBUG_FLAG=no
3677 DEFAULT_wxUSE_DEBUG_INFO=no
3678 BUILD=release
3679fi
3680
3681
3682 enablestring=
3683 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_flag" >&5
3684echo $ECHO_N "checking for --${enablestring:-enable}-debug_flag... $ECHO_C" >&6
3685 no_cache=0
3686 # Check whether --enable-debug_flag or --disable-debug_flag was given.
3687if test "${enable_debug_flag+set}" = set; then
3688 enableval="$enable_debug_flag"
3689
3690 if test "$enableval" = yes; then
3691 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes'
3692 else
3693 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no'
3694 fi
3695
3696else
3697
3698 LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}`
3699 if test "x$LINE" != x ; then
3700 eval "DEFAULT_$LINE"
3701 else
3702 no_cache=1
3703 fi
3704
3705 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG
3706
3707fi;
3708
3709 eval "$ac_cv_use_debug_flag"
3710 if test "$no_cache" != 1; then
3711 echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp
3712 fi
3713
3714 if test "$wxUSE_DEBUG_FLAG" = yes; then
3715 echo "$as_me:$LINENO: result: yes" >&5
3716echo "${ECHO_T}yes" >&6
3717 else
3718 echo "$as_me:$LINENO: result: no" >&5
3719echo "${ECHO_T}no" >&6
3720 fi
3721
3722
3723 enablestring=
3724 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_info" >&5
3725echo $ECHO_N "checking for --${enablestring:-enable}-debug_info... $ECHO_C" >&6
3726 no_cache=0
3727 # Check whether --enable-debug_info or --disable-debug_info was given.
3728if test "${enable_debug_info+set}" = set; then
3729 enableval="$enable_debug_info"
3730
3731 if test "$enableval" = yes; then
3732 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes'
3733 else
3734 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no'
3735 fi
3736
3737else
3738
3739 LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}`
3740 if test "x$LINE" != x ; then
3741 eval "DEFAULT_$LINE"
3742 else
3743 no_cache=1
3744 fi
3745
3746 ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO
3747
3748fi;
3749
3750 eval "$ac_cv_use_debug_info"
3751 if test "$no_cache" != 1; then
3752 echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp
3753 fi
3754
3755 if test "$wxUSE_DEBUG_INFO" = yes; then
3756 echo "$as_me:$LINENO: result: yes" >&5
3757echo "${ECHO_T}yes" >&6
3758 else
3759 echo "$as_me:$LINENO: result: no" >&5
3760echo "${ECHO_T}no" >&6
3761 fi
3762
3763
3764 enablestring=
3765 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_gdb" >&5
3766echo $ECHO_N "checking for --${enablestring:-enable}-debug_gdb... $ECHO_C" >&6
3767 no_cache=0
3768 # Check whether --enable-debug_gdb or --disable-debug_gdb was given.
3769if test "${enable_debug_gdb+set}" = set; then
3770 enableval="$enable_debug_gdb"
3771
3772 if test "$enableval" = yes; then
3773 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes'
3774 else
3775 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no'
3776 fi
3777
3778else
3779
3780 LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}`
3781 if test "x$LINE" != x ; then
3782 eval "DEFAULT_$LINE"
3783 else
3784 no_cache=1
3785 fi
3786
3787 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB
3788
3789fi;
3790
3791 eval "$ac_cv_use_debug_gdb"
3792 if test "$no_cache" != 1; then
3793 echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp
3794 fi
3795
3796 if test "$wxUSE_DEBUG_GDB" = yes; then
3797 echo "$as_me:$LINENO: result: yes" >&5
3798echo "${ECHO_T}yes" >&6
3799 else
3800 echo "$as_me:$LINENO: result: no" >&5
3801echo "${ECHO_T}no" >&6
3802 fi
3803
3804
3805 enablestring=
3806 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_cntxt" >&5
3807echo $ECHO_N "checking for --${enablestring:-enable}-debug_cntxt... $ECHO_C" >&6
3808 no_cache=0
3809 # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given.
3810if test "${enable_debug_cntxt+set}" = set; then
3811 enableval="$enable_debug_cntxt"
3812
3813 if test "$enableval" = yes; then
3814 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes'
3815 else
3816 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no'
3817 fi
3818
3819else
3820
3821 LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}`
3822 if test "x$LINE" != x ; then
3823 eval "DEFAULT_$LINE"
3824 else
3825 no_cache=1
3826 fi
3827
3828 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT
3829
3830fi;
3831
3832 eval "$ac_cv_use_debug_cntxt"
3833 if test "$no_cache" != 1; then
3834 echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp
3835 fi
3836
3837 if test "$wxUSE_DEBUG_CONTEXT" = yes; then
3838 echo "$as_me:$LINENO: result: yes" >&5
3839echo "${ECHO_T}yes" >&6
3840 else
3841 echo "$as_me:$LINENO: result: no" >&5
3842echo "${ECHO_T}no" >&6
3843 fi
3844
3845
3846 enablestring=
3847 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mem_tracing" >&5
3848echo $ECHO_N "checking for --${enablestring:-enable}-mem_tracing... $ECHO_C" >&6
3849 no_cache=0
3850 # Check whether --enable-mem_tracing or --disable-mem_tracing was given.
3851if test "${enable_mem_tracing+set}" = set; then
3852 enableval="$enable_mem_tracing"
3853
3854 if test "$enableval" = yes; then
3855 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes'
3856 else
3857 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no'
3858 fi
3859
3860else
3861
3862 LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}`
3863 if test "x$LINE" != x ; then
3864 eval "DEFAULT_$LINE"
3865 else
3866 no_cache=1
3867 fi
3868
3869 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING
3870
3871fi;
3872
3873 eval "$ac_cv_use_mem_tracing"
3874 if test "$no_cache" != 1; then
3875 echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp
3876 fi
3877
3878 if test "$wxUSE_MEM_TRACING" = yes; then
3879 echo "$as_me:$LINENO: result: yes" >&5
3880echo "${ECHO_T}yes" >&6
3881 else
3882 echo "$as_me:$LINENO: result: no" >&5
3883echo "${ECHO_T}no" >&6
3884 fi
3885
3886
3887 enablestring=
3888 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-profile" >&5
3889echo $ECHO_N "checking for --${enablestring:-enable}-profile... $ECHO_C" >&6
3890 no_cache=0
3891 # Check whether --enable-profile or --disable-profile was given.
3892if test "${enable_profile+set}" = set; then
3893 enableval="$enable_profile"
3894
3895 if test "$enableval" = yes; then
3896 ac_cv_use_profile='wxUSE_PROFILE=yes'
3897 else
3898 ac_cv_use_profile='wxUSE_PROFILE=no'
3899 fi
3900
3901else
3902
3903 LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}`
3904 if test "x$LINE" != x ; then
3905 eval "DEFAULT_$LINE"
3906 else
3907 no_cache=1
3908 fi
3909
3910 ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE
3911
3912fi;
3913
3914 eval "$ac_cv_use_profile"
3915 if test "$no_cache" != 1; then
3916 echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp
3917 fi
3918
3919 if test "$wxUSE_PROFILE" = yes; then
3920 echo "$as_me:$LINENO: result: yes" >&5
3921echo "${ECHO_T}yes" >&6
3922 else
3923 echo "$as_me:$LINENO: result: no" >&5
3924echo "${ECHO_T}no" >&6
3925 fi
3926
3927
3928 enablestring=
3929 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_rtti" >&5
3930echo $ECHO_N "checking for --${enablestring:-enable}-no_rtti... $ECHO_C" >&6
3931 no_cache=0
3932 # Check whether --enable-no_rtti or --disable-no_rtti was given.
3933if test "${enable_no_rtti+set}" = set; then
3934 enableval="$enable_no_rtti"
3935
3936 if test "$enableval" = yes; then
3937 ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes'
3938 else
3939 ac_cv_use_no_rtti='wxUSE_NO_RTTI=no'
3940 fi
3941
3942else
3943
3944 LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}`
3945 if test "x$LINE" != x ; then
3946 eval "DEFAULT_$LINE"
3947 else
3948 no_cache=1
3949 fi
3950
3951 ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI
3952
3953fi;
3954
3955 eval "$ac_cv_use_no_rtti"
3956 if test "$no_cache" != 1; then
3957 echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp
3958 fi
3959
3960 if test "$wxUSE_NO_RTTI" = yes; then
3961 echo "$as_me:$LINENO: result: yes" >&5
3962echo "${ECHO_T}yes" >&6
3963 else
3964 echo "$as_me:$LINENO: result: no" >&5
3965echo "${ECHO_T}no" >&6
3966 fi
3967
3968
3969 enablestring=
3970 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_exceptions" >&5
3971echo $ECHO_N "checking for --${enablestring:-enable}-no_exceptions... $ECHO_C" >&6
3972 no_cache=0
3973 # Check whether --enable-no_exceptions or --disable-no_exceptions was given.
3974if test "${enable_no_exceptions+set}" = set; then
3975 enableval="$enable_no_exceptions"
3976
3977 if test "$enableval" = yes; then
3978 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes'
3979 else
3980 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no'
3981 fi
3982
3983else
3984
3985 LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}`
3986 if test "x$LINE" != x ; then
3987 eval "DEFAULT_$LINE"
3988 else
3989 no_cache=1
3990 fi
3991
3992 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS
3993
3994fi;
3995
3996 eval "$ac_cv_use_no_exceptions"
3997 if test "$no_cache" != 1; then
3998 echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp
3999 fi
4000
4001 if test "$wxUSE_NO_EXCEPTIONS" = yes; then
4002 echo "$as_me:$LINENO: result: yes" >&5
4003echo "${ECHO_T}yes" >&6
4004 else
4005 echo "$as_me:$LINENO: result: no" >&5
4006echo "${ECHO_T}no" >&6
4007 fi
4008
4009
4010 enablestring=
4011 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-permissive" >&5
4012echo $ECHO_N "checking for --${enablestring:-enable}-permissive... $ECHO_C" >&6
4013 no_cache=0
4014 # Check whether --enable-permissive or --disable-permissive was given.
4015if test "${enable_permissive+set}" = set; then
4016 enableval="$enable_permissive"
4017
4018 if test "$enableval" = yes; then
4019 ac_cv_use_permissive='wxUSE_PERMISSIVE=yes'
4020 else
4021 ac_cv_use_permissive='wxUSE_PERMISSIVE=no'
4022 fi
4023
4024else
4025
4026 LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}`
4027 if test "x$LINE" != x ; then
4028 eval "DEFAULT_$LINE"
4029 else
4030 no_cache=1
4031 fi
4032
4033 ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE
4034
4035fi;
4036
4037 eval "$ac_cv_use_permissive"
4038 if test "$no_cache" != 1; then
4039 echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp
4040 fi
4041
4042 if test "$wxUSE_PERMISSIVE" = yes; then
4043 echo "$as_me:$LINENO: result: yes" >&5
4044echo "${ECHO_T}yes" >&6
4045 else
4046 echo "$as_me:$LINENO: result: no" >&5
4047echo "${ECHO_T}no" >&6
4048 fi
4049
4050
4051 enablestring=
4052 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_deps" >&5
4053echo $ECHO_N "checking for --${enablestring:-enable}-no_deps... $ECHO_C" >&6
4054 no_cache=0
4055 # Check whether --enable-no_deps or --disable-no_deps was given.
4056if test "${enable_no_deps+set}" = set; then
4057 enableval="$enable_no_deps"
4058
4059 if test "$enableval" = yes; then
4060 ac_cv_use_no_deps='wxUSE_NO_DEPS=yes'
4061 else
4062 ac_cv_use_no_deps='wxUSE_NO_DEPS=no'
4063 fi
4064
4065else
4066
4067 LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}`
4068 if test "x$LINE" != x ; then
4069 eval "DEFAULT_$LINE"
4070 else
4071 no_cache=1
4072 fi
4073
4074 ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS
4075
4076fi;
4077
4078 eval "$ac_cv_use_no_deps"
4079 if test "$no_cache" != 1; then
4080 echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp
4081 fi
4082
4083 if test "$wxUSE_NO_DEPS" = yes; then
4084 echo "$as_me:$LINENO: result: yes" >&5
4085echo "${ECHO_T}yes" >&6
4086 else
4087 echo "$as_me:$LINENO: result: no" >&5
4088echo "${ECHO_T}no" >&6
4089 fi
4090
4091
4092
4093 enablestring=
4094 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat22" >&5
4095echo $ECHO_N "checking for --${enablestring:-enable}-compat22... $ECHO_C" >&6
4096 no_cache=0
4097 # Check whether --enable-compat22 or --disable-compat22 was given.
4098if test "${enable_compat22+set}" = set; then
4099 enableval="$enable_compat22"
4100
4101 if test "$enableval" = yes; then
4102 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=yes'
4103 else
4104 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=no'
4105 fi
4106
4107else
4108
4109 LINE=`grep "WXWIN_COMPATIBILITY_2_2" ${wx_arg_cache_file}`
4110 if test "x$LINE" != x ; then
4111 eval "DEFAULT_$LINE"
4112 else
4113 no_cache=1
4114 fi
4115
4116 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2='$DEFAULT_WXWIN_COMPATIBILITY_2_2
4117
4118fi;
4119
4120 eval "$ac_cv_use_compat22"
4121 if test "$no_cache" != 1; then
4122 echo $ac_cv_use_compat22 >> ${wx_arg_cache_file}.tmp
4123 fi
4124
4125 if test "$WXWIN_COMPATIBILITY_2_2" = yes; then
4126 echo "$as_me:$LINENO: result: yes" >&5
4127echo "${ECHO_T}yes" >&6
4128 else
4129 echo "$as_me:$LINENO: result: no" >&5
4130echo "${ECHO_T}no" >&6
4131 fi
4132
4133
4134 enablestring=disable
4135 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat24" >&5
4136echo $ECHO_N "checking for --${enablestring:-enable}-compat24... $ECHO_C" >&6
4137 no_cache=0
4138 # Check whether --enable-compat24 or --disable-compat24 was given.
4139if test "${enable_compat24+set}" = set; then
4140 enableval="$enable_compat24"
4141
4142 if test "$enableval" = yes; then
4143 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=yes'
4144 else
4145 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=no'
4146 fi
4147
4148else
4149
4150 LINE=`grep "WXWIN_COMPATIBILITY_2_4" ${wx_arg_cache_file}`
4151 if test "x$LINE" != x ; then
4152 eval "DEFAULT_$LINE"
4153 else
4154 no_cache=1
4155 fi
4156
4157 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4='$DEFAULT_WXWIN_COMPATIBILITY_2_4
4158
4159fi;
4160
4161 eval "$ac_cv_use_compat24"
4162 if test "$no_cache" != 1; then
4163 echo $ac_cv_use_compat24 >> ${wx_arg_cache_file}.tmp
4164 fi
4165
4166 if test "$WXWIN_COMPATIBILITY_2_4" = yes; then
4167 echo "$as_me:$LINENO: result: yes" >&5
4168echo "${ECHO_T}yes" >&6
4169 else
4170 echo "$as_me:$LINENO: result: no" >&5
4171echo "${ECHO_T}no" >&6
4172 fi
4173
4174
ffa0583f
RL
4175
4176 enablestring=
4177 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-rpath" >&5
4178echo $ECHO_N "checking for --${enablestring:-enable}-rpath... $ECHO_C" >&6
4179 no_cache=0
4180 # Check whether --enable-rpath or --disable-rpath was given.
a848cd7e
SC
4181if test "${enable_rpath+set}" = set; then
4182 enableval="$enable_rpath"
ffa0583f
RL
4183
4184 if test "$enableval" = yes; then
4185 ac_cv_use_rpath='wxUSE_RPATH=yes'
4186 else
4187 ac_cv_use_rpath='wxUSE_RPATH=no'
4188 fi
4189
4190else
4191
4192 LINE=`grep "wxUSE_RPATH" ${wx_arg_cache_file}`
4193 if test "x$LINE" != x ; then
4194 eval "DEFAULT_$LINE"
4195 else
4196 no_cache=1
4197 fi
4198
4199 ac_cv_use_rpath='wxUSE_RPATH='$DEFAULT_wxUSE_RPATH
4200
a848cd7e
SC
4201fi;
4202
ffa0583f
RL
4203 eval "$ac_cv_use_rpath"
4204 if test "$no_cache" != 1; then
4205 echo $ac_cv_use_rpath >> ${wx_arg_cache_file}.tmp
4206 fi
4207
4208 if test "$wxUSE_RPATH" = yes; then
4209 echo "$as_me:$LINENO: result: yes" >&5
4210echo "${ECHO_T}yes" >&6
4211 else
4212 echo "$as_me:$LINENO: result: no" >&5
4213echo "${ECHO_T}no" >&6
4214 fi
4215
a848cd7e
SC
4216
4217
4218
4219
4220 enablestring=
4221 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-intl" >&5
4222echo $ECHO_N "checking for --${enablestring:-enable}-intl... $ECHO_C" >&6
4223 no_cache=0
4224 # Check whether --enable-intl or --disable-intl was given.
4225if test "${enable_intl+set}" = set; then
4226 enableval="$enable_intl"
4227
4228 if test "$enableval" = yes; then
4229 ac_cv_use_intl='wxUSE_INTL=yes'
4230 else
4231 ac_cv_use_intl='wxUSE_INTL=no'
4232 fi
4233
4234else
4235
4236 LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}`
4237 if test "x$LINE" != x ; then
4238 eval "DEFAULT_$LINE"
4239 else
4240 no_cache=1
4241 fi
4242
4243 ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL
4244
4245fi;
4246
4247 eval "$ac_cv_use_intl"
4248 if test "$no_cache" != 1; then
4249 echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp
4250 fi
4251
4252 if test "$wxUSE_INTL" = yes; then
4253 echo "$as_me:$LINENO: result: yes" >&5
4254echo "${ECHO_T}yes" >&6
4255 else
4256 echo "$as_me:$LINENO: result: no" >&5
4257echo "${ECHO_T}no" >&6
4258 fi
4259
4260
4261 enablestring=
4262 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-config" >&5
4263echo $ECHO_N "checking for --${enablestring:-enable}-config... $ECHO_C" >&6
4264 no_cache=0
4265 # Check whether --enable-config or --disable-config was given.
4266if test "${enable_config+set}" = set; then
4267 enableval="$enable_config"
4268
4269 if test "$enableval" = yes; then
4270 ac_cv_use_config='wxUSE_CONFIG=yes'
4271 else
4272 ac_cv_use_config='wxUSE_CONFIG=no'
4273 fi
4274
4275else
4276
4277 LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}`
4278 if test "x$LINE" != x ; then
4279 eval "DEFAULT_$LINE"
4280 else
4281 no_cache=1
4282 fi
4283
4284 ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG
4285
4286fi;
4287
4288 eval "$ac_cv_use_config"
4289 if test "$no_cache" != 1; then
4290 echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp
4291 fi
4292
4293 if test "$wxUSE_CONFIG" = yes; then
4294 echo "$as_me:$LINENO: result: yes" >&5
4295echo "${ECHO_T}yes" >&6
4296 else
4297 echo "$as_me:$LINENO: result: no" >&5
4298echo "${ECHO_T}no" >&6
4299 fi
4300
4301
4302
4303 enablestring=
4304 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocols" >&5
4305echo $ECHO_N "checking for --${enablestring:-enable}-protocols... $ECHO_C" >&6
4306 no_cache=0
4307 # Check whether --enable-protocols or --disable-protocols was given.
4308if test "${enable_protocols+set}" = set; then
4309 enableval="$enable_protocols"
4310
4311 if test "$enableval" = yes; then
4312 ac_cv_use_protocols='wxUSE_PROTOCOL=yes'
4313 else
4314 ac_cv_use_protocols='wxUSE_PROTOCOL=no'
4315 fi
4316
4317else
4318
4319 LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
4320 if test "x$LINE" != x ; then
4321 eval "DEFAULT_$LINE"
4322 else
4323 no_cache=1
4324 fi
4325
4326 ac_cv_use_protocols='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
4327
4328fi;
4329
4330 eval "$ac_cv_use_protocols"
4331 if test "$no_cache" != 1; then
4332 echo $ac_cv_use_protocols >> ${wx_arg_cache_file}.tmp
4333 fi
4334
4335 if test "$wxUSE_PROTOCOL" = yes; then
4336 echo "$as_me:$LINENO: result: yes" >&5
4337echo "${ECHO_T}yes" >&6
4338 else
4339 echo "$as_me:$LINENO: result: no" >&5
4340echo "${ECHO_T}no" >&6
4341 fi
4342
4343
4344 enablestring=
4345 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ftp" >&5
4346echo $ECHO_N "checking for --${enablestring:-enable}-ftp... $ECHO_C" >&6
4347 no_cache=0
4348 # Check whether --enable-ftp or --disable-ftp was given.
4349if test "${enable_ftp+set}" = set; then
4350 enableval="$enable_ftp"
4351
4352 if test "$enableval" = yes; then
4353 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=yes'
4354 else
4355 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=no'
4356 fi
4357
4358else
4359
4360 LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
4361 if test "x$LINE" != x ; then
4362 eval "DEFAULT_$LINE"
4363 else
4364 no_cache=1
4365 fi
4366
4367 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
4368
4369fi;
4370
4371 eval "$ac_cv_use_ftp"
4372 if test "$no_cache" != 1; then
4373 echo $ac_cv_use_ftp >> ${wx_arg_cache_file}.tmp
4374 fi
4375
4376 if test "$wxUSE_PROTOCOL_FTP" = yes; then
4377 echo "$as_me:$LINENO: result: yes" >&5
4378echo "${ECHO_T}yes" >&6
4379 else
4380 echo "$as_me:$LINENO: result: no" >&5
4381echo "${ECHO_T}no" >&6
4382 fi
4383
4384
4385 enablestring=
4386 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-http" >&5
4387echo $ECHO_N "checking for --${enablestring:-enable}-http... $ECHO_C" >&6
4388 no_cache=0
4389 # Check whether --enable-http or --disable-http was given.
4390if test "${enable_http+set}" = set; then
4391 enableval="$enable_http"
4392
4393 if test "$enableval" = yes; then
4394 ac_cv_use_http='wxUSE_PROTOCOL_HTTP=yes'
4395 else
4396 ac_cv_use_http='wxUSE_PROTOCOL_HTTP=no'
4397 fi
4398
4399else
4400
4401 LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
4402 if test "x$LINE" != x ; then
4403 eval "DEFAULT_$LINE"
4404 else
4405 no_cache=1
4406 fi
4407
4408 ac_cv_use_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
4409
4410fi;
4411
4412 eval "$ac_cv_use_http"
4413 if test "$no_cache" != 1; then
4414 echo $ac_cv_use_http >> ${wx_arg_cache_file}.tmp
4415 fi
4416
4417 if test "$wxUSE_PROTOCOL_HTTP" = yes; then
4418 echo "$as_me:$LINENO: result: yes" >&5
4419echo "${ECHO_T}yes" >&6
4420 else
4421 echo "$as_me:$LINENO: result: no" >&5
4422echo "${ECHO_T}no" >&6
4423 fi
4424
4425
4426 enablestring=
4427 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fileproto" >&5
4428echo $ECHO_N "checking for --${enablestring:-enable}-fileproto... $ECHO_C" >&6
4429 no_cache=0
4430 # Check whether --enable-fileproto or --disable-fileproto was given.
4431if test "${enable_fileproto+set}" = set; then
4432 enableval="$enable_fileproto"
4433
4434 if test "$enableval" = yes; then
4435 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=yes'
4436 else
4437 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=no'
4438 fi
4439
4440else
4441
4442 LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
4443 if test "x$LINE" != x ; then
4444 eval "DEFAULT_$LINE"
4445 else
4446 no_cache=1
4447 fi
4448
4449 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
4450
4451fi;
4452
4453 eval "$ac_cv_use_fileproto"
4454 if test "$no_cache" != 1; then
4455 echo $ac_cv_use_fileproto >> ${wx_arg_cache_file}.tmp
4456 fi
4457
4458 if test "$wxUSE_PROTOCOL_FILE" = yes; then
4459 echo "$as_me:$LINENO: result: yes" >&5
4460echo "${ECHO_T}yes" >&6
4461 else
4462 echo "$as_me:$LINENO: result: no" >&5
4463echo "${ECHO_T}no" >&6
4464 fi
4465
4466
4467 enablestring=
4468 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sockets" >&5
4469echo $ECHO_N "checking for --${enablestring:-enable}-sockets... $ECHO_C" >&6
4470 no_cache=0
4471 # Check whether --enable-sockets or --disable-sockets was given.
4472if test "${enable_sockets+set}" = set; then
4473 enableval="$enable_sockets"
4474
4475 if test "$enableval" = yes; then
4476 ac_cv_use_sockets='wxUSE_SOCKETS=yes'
4477 else
4478 ac_cv_use_sockets='wxUSE_SOCKETS=no'
4479 fi
4480
4481else
4482
4483 LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}`
4484 if test "x$LINE" != x ; then
4485 eval "DEFAULT_$LINE"
4486 else
4487 no_cache=1
4488 fi
4489
4490 ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS
4491
4492fi;
4493
4494 eval "$ac_cv_use_sockets"
4495 if test "$no_cache" != 1; then
4496 echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp
4497 fi
4498
4499 if test "$wxUSE_SOCKETS" = yes; then
4500 echo "$as_me:$LINENO: result: yes" >&5
4501echo "${ECHO_T}yes" >&6
4502 else
4503 echo "$as_me:$LINENO: result: no" >&5
4504echo "${ECHO_T}no" >&6
4505 fi
4506
4507
4508 enablestring=
4509 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ole" >&5
4510echo $ECHO_N "checking for --${enablestring:-enable}-ole... $ECHO_C" >&6
4511 no_cache=0
4512 # Check whether --enable-ole or --disable-ole was given.
4513if test "${enable_ole+set}" = set; then
4514 enableval="$enable_ole"
4515
4516 if test "$enableval" = yes; then
4517 ac_cv_use_ole='wxUSE_OLE=yes'
4518 else
4519 ac_cv_use_ole='wxUSE_OLE=no'
4520 fi
4521
4522else
4523
4524 LINE=`grep "wxUSE_OLE" ${wx_arg_cache_file}`
4525 if test "x$LINE" != x ; then
4526 eval "DEFAULT_$LINE"
4527 else
4528 no_cache=1
4529 fi
4530
4531 ac_cv_use_ole='wxUSE_OLE='$DEFAULT_wxUSE_OLE
4532
4533fi;
4534
4535 eval "$ac_cv_use_ole"
4536 if test "$no_cache" != 1; then
4537 echo $ac_cv_use_ole >> ${wx_arg_cache_file}.tmp
4538 fi
4539
4540 if test "$wxUSE_OLE" = yes; then
4541 echo "$as_me:$LINENO: result: yes" >&5
4542echo "${ECHO_T}yes" >&6
4543 else
4544 echo "$as_me:$LINENO: result: no" >&5
4545echo "${ECHO_T}no" >&6
4546 fi
4547
4548
4549 enablestring=
4550 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dataobj" >&5
4551echo $ECHO_N "checking for --${enablestring:-enable}-dataobj... $ECHO_C" >&6
4552 no_cache=0
4553 # Check whether --enable-dataobj or --disable-dataobj was given.
4554if test "${enable_dataobj+set}" = set; then
4555 enableval="$enable_dataobj"
4556
4557 if test "$enableval" = yes; then
4558 ac_cv_use_dataobj='wxUSE_DATAOBJ=yes'
4559 else
4560 ac_cv_use_dataobj='wxUSE_DATAOBJ=no'
4561 fi
4562
4563else
4564
4565 LINE=`grep "wxUSE_DATAOBJ" ${wx_arg_cache_file}`
4566 if test "x$LINE" != x ; then
4567 eval "DEFAULT_$LINE"
4568 else
4569 no_cache=1
4570 fi
4571
4572 ac_cv_use_dataobj='wxUSE_DATAOBJ='$DEFAULT_wxUSE_DATAOBJ
4573
4574fi;
4575
4576 eval "$ac_cv_use_dataobj"
4577 if test "$no_cache" != 1; then
4578 echo $ac_cv_use_dataobj >> ${wx_arg_cache_file}.tmp
4579 fi
4580
4581 if test "$wxUSE_DATAOBJ" = yes; then
4582 echo "$as_me:$LINENO: result: yes" >&5
4583echo "${ECHO_T}yes" >&6
4584 else
4585 echo "$as_me:$LINENO: result: no" >&5
4586echo "${ECHO_T}no" >&6
4587 fi
4588
4589
4590
4591 enablestring=
4592 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ipc" >&5
4593echo $ECHO_N "checking for --${enablestring:-enable}-ipc... $ECHO_C" >&6
4594 no_cache=0
4595 # Check whether --enable-ipc or --disable-ipc was given.
4596if test "${enable_ipc+set}" = set; then
4597 enableval="$enable_ipc"
4598
4599 if test "$enableval" = yes; then
4600 ac_cv_use_ipc='wxUSE_IPC=yes'
4601 else
4602 ac_cv_use_ipc='wxUSE_IPC=no'
4603 fi
4604
4605else
4606
4607 LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}`
4608 if test "x$LINE" != x ; then
4609 eval "DEFAULT_$LINE"
4610 else
4611 no_cache=1
4612 fi
4613
4614 ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC
4615
4616fi;
4617
4618 eval "$ac_cv_use_ipc"
4619 if test "$no_cache" != 1; then
4620 echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp
4621 fi
4622
4623 if test "$wxUSE_IPC" = yes; then
4624 echo "$as_me:$LINENO: result: yes" >&5
4625echo "${ECHO_T}yes" >&6
4626 else
4627 echo "$as_me:$LINENO: result: no" >&5
4628echo "${ECHO_T}no" >&6
4629 fi
4630
4631
4632
4633 enablestring=
4634 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-apple_ieee" >&5
4635echo $ECHO_N "checking for --${enablestring:-enable}-apple_ieee... $ECHO_C" >&6
4636 no_cache=0
4637 # Check whether --enable-apple_ieee or --disable-apple_ieee was given.
4638if test "${enable_apple_ieee+set}" = set; then
4639 enableval="$enable_apple_ieee"
4640
4641 if test "$enableval" = yes; then
4642 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes'
4643 else
4644 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no'
4645 fi
4646
4647else
4648
4649 LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}`
4650 if test "x$LINE" != x ; then
4651 eval "DEFAULT_$LINE"
4652 else
4653 no_cache=1
4654 fi
4655
4656 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE
4657
4658fi;
4659
4660 eval "$ac_cv_use_apple_ieee"
4661 if test "$no_cache" != 1; then
4662 echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp
4663 fi
4664
4665 if test "$wxUSE_APPLE_IEEE" = yes; then
4666 echo "$as_me:$LINENO: result: yes" >&5
4667echo "${ECHO_T}yes" >&6
4668 else
4669 echo "$as_me:$LINENO: result: no" >&5
4670echo "${ECHO_T}no" >&6
4671 fi
4672
4673
81f90336
MW
4674 enablestring=
4675 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-arcstream" >&5
4676echo $ECHO_N "checking for --${enablestring:-enable}-arcstream... $ECHO_C" >&6
4677 no_cache=0
4678 # Check whether --enable-arcstream or --disable-arcstream was given.
4679if test "${enable_arcstream+set}" = set; then
4680 enableval="$enable_arcstream"
4681
4682 if test "$enableval" = yes; then
9e8e867f 4683 ac_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS=yes'
81f90336 4684 else
9e8e867f 4685 ac_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS=no'
81f90336
MW
4686 fi
4687
4688else
4689
9e8e867f 4690 LINE=`grep "wxUSE_ARCHIVE_STREAMS" ${wx_arg_cache_file}`
81f90336
MW
4691 if test "x$LINE" != x ; then
4692 eval "DEFAULT_$LINE"
4693 else
4694 no_cache=1
4695 fi
4696
9e8e867f 4697 ac_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS='$DEFAULT_wxUSE_ARCHIVE_STREAMS
81f90336
MW
4698
4699fi;
4700
4701 eval "$ac_cv_use_arcstream"
4702 if test "$no_cache" != 1; then
4703 echo $ac_cv_use_arcstream >> ${wx_arg_cache_file}.tmp
4704 fi
4705
9e8e867f 4706 if test "$wxUSE_ARCHIVE_STREAMS" = yes; then
81f90336
MW
4707 echo "$as_me:$LINENO: result: yes" >&5
4708echo "${ECHO_T}yes" >&6
4709 else
4710 echo "$as_me:$LINENO: result: no" >&5
4711echo "${ECHO_T}no" >&6
4712 fi
4713
4714
a848cd7e
SC
4715 enablestring=
4716 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-catch_segvs" >&5
4717echo $ECHO_N "checking for --${enablestring:-enable}-catch_segvs... $ECHO_C" >&6
4718 no_cache=0
4719 # Check whether --enable-catch_segvs or --disable-catch_segvs was given.
4720if test "${enable_catch_segvs+set}" = set; then
4721 enableval="$enable_catch_segvs"
4722
4723 if test "$enableval" = yes; then
4724 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes'
4725 else
4726 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no'
4727 fi
4728
4729else
4730
4731 LINE=`grep "wxUSE_ON_FATAL_EXCEPTION" ${wx_arg_cache_file}`
4732 if test "x$LINE" != x ; then
4733 eval "DEFAULT_$LINE"
4734 else
4735 no_cache=1
4736 fi
4737
4738 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION='$DEFAULT_wxUSE_ON_FATAL_EXCEPTION
4739
4740fi;
4741
4742 eval "$ac_cv_use_catch_segvs"
4743 if test "$no_cache" != 1; then
4744 echo $ac_cv_use_catch_segvs >> ${wx_arg_cache_file}.tmp
4745 fi
4746
4747 if test "$wxUSE_ON_FATAL_EXCEPTION" = yes; then
4748 echo "$as_me:$LINENO: result: yes" >&5
4749echo "${ECHO_T}yes" >&6
4750 else
4751 echo "$as_me:$LINENO: result: no" >&5
4752echo "${ECHO_T}no" >&6
4753 fi
4754
4755
eaff0f0d
VZ
4756 enablestring=
4757 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-backtrace" >&5
4758echo $ECHO_N "checking for --${enablestring:-enable}-backtrace... $ECHO_C" >&6
4759 no_cache=0
4760 # Check whether --enable-backtrace or --disable-backtrace was given.
4761if test "${enable_backtrace+set}" = set; then
4762 enableval="$enable_backtrace"
4763
4764 if test "$enableval" = yes; then
4765 ac_cv_use_backtrace='wxUSE_STACKWALKER=yes'
4766 else
4767 ac_cv_use_backtrace='wxUSE_STACKWALKER=no'
4768 fi
4769
4770else
4771
4772 LINE=`grep "wxUSE_STACKWALKER" ${wx_arg_cache_file}`
4773 if test "x$LINE" != x ; then
4774 eval "DEFAULT_$LINE"
4775 else
4776 no_cache=1
4777 fi
4778
4779 ac_cv_use_backtrace='wxUSE_STACKWALKER='$DEFAULT_wxUSE_STACKWALKER
4780
4781fi;
4782
4783 eval "$ac_cv_use_backtrace"
4784 if test "$no_cache" != 1; then
4785 echo $ac_cv_use_backtrace >> ${wx_arg_cache_file}.tmp
4786 fi
4787
4788 if test "$wxUSE_STACKWALKER" = yes; then
4789 echo "$as_me:$LINENO: result: yes" >&5
4790echo "${ECHO_T}yes" >&6
4791 else
4792 echo "$as_me:$LINENO: result: no" >&5
4793echo "${ECHO_T}no" >&6
4794 fi
4795
4796
a848cd7e
SC
4797 enablestring=
4798 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-cmdline" >&5
4799echo $ECHO_N "checking for --${enablestring:-enable}-cmdline... $ECHO_C" >&6
4800 no_cache=0
4801 # Check whether --enable-cmdline or --disable-cmdline was given.
4802if test "${enable_cmdline+set}" = set; then
4803 enableval="$enable_cmdline"
4804
4805 if test "$enableval" = yes; then
4806 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=yes'
4807 else
4808 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=no'
4809 fi
4810
4811else
4812
4813 LINE=`grep "wxUSE_CMDLINE_PARSER" ${wx_arg_cache_file}`
4814 if test "x$LINE" != x ; then
4815 eval "DEFAULT_$LINE"
4816 else
4817 no_cache=1
4818 fi
4819
4820 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER='$DEFAULT_wxUSE_CMDLINE_PARSER
4821
4822fi;
4823
4824 eval "$ac_cv_use_cmdline"
4825 if test "$no_cache" != 1; then
4826 echo $ac_cv_use_cmdline >> ${wx_arg_cache_file}.tmp
4827 fi
4828
4829 if test "$wxUSE_CMDLINE_PARSER" = yes; then
4830 echo "$as_me:$LINENO: result: yes" >&5
4831echo "${ECHO_T}yes" >&6
4832 else
4833 echo "$as_me:$LINENO: result: no" >&5
4834echo "${ECHO_T}no" >&6
4835 fi
4836
4837
4838 enablestring=
4839 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-datetime" >&5
4840echo $ECHO_N "checking for --${enablestring:-enable}-datetime... $ECHO_C" >&6
4841 no_cache=0
4842 # Check whether --enable-datetime or --disable-datetime was given.
4843if test "${enable_datetime+set}" = set; then
4844 enableval="$enable_datetime"
4845
4846 if test "$enableval" = yes; then
4847 ac_cv_use_datetime='wxUSE_DATETIME=yes'
4848 else
4849 ac_cv_use_datetime='wxUSE_DATETIME=no'
4850 fi
4851
4852else
4853
4854 LINE=`grep "wxUSE_DATETIME" ${wx_arg_cache_file}`
4855 if test "x$LINE" != x ; then
4856 eval "DEFAULT_$LINE"
4857 else
4858 no_cache=1
4859 fi
4860
4861 ac_cv_use_datetime='wxUSE_DATETIME='$DEFAULT_wxUSE_DATETIME
4862
4863fi;
4864
4865 eval "$ac_cv_use_datetime"
4866 if test "$no_cache" != 1; then
4867 echo $ac_cv_use_datetime >> ${wx_arg_cache_file}.tmp
4868 fi
4869
4870 if test "$wxUSE_DATETIME" = yes; then
4871 echo "$as_me:$LINENO: result: yes" >&5
4872echo "${ECHO_T}yes" >&6
4873 else
4874 echo "$as_me:$LINENO: result: no" >&5
4875echo "${ECHO_T}no" >&6
4876 fi
4877
4878
4879 enablestring=
4880 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dialupman" >&5
4881echo $ECHO_N "checking for --${enablestring:-enable}-dialupman... $ECHO_C" >&6
4882 no_cache=0
4883 # Check whether --enable-dialupman or --disable-dialupman was given.
4884if test "${enable_dialupman+set}" = set; then
4885 enableval="$enable_dialupman"
4886
4887 if test "$enableval" = yes; then
4888 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes'
4889 else
4890 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no'
4891 fi
4892
4893else
4894
4895 LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}`
4896 if test "x$LINE" != x ; then
4897 eval "DEFAULT_$LINE"
4898 else
4899 no_cache=1
4900 fi
4901
4902 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER
4903
4904fi;
4905
4906 eval "$ac_cv_use_dialupman"
4907 if test "$no_cache" != 1; then
4908 echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp
4909 fi
4910
4911 if test "$wxUSE_DIALUP_MANAGER" = yes; then
4912 echo "$as_me:$LINENO: result: yes" >&5
4913echo "${ECHO_T}yes" >&6
4914 else
4915 echo "$as_me:$LINENO: result: no" >&5
4916echo "${ECHO_T}no" >&6
4917 fi
4918
4919
4920 enablestring=
4921 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynlib" >&5
4922echo $ECHO_N "checking for --${enablestring:-enable}-dynlib... $ECHO_C" >&6
4923 no_cache=0
4924 # Check whether --enable-dynlib or --disable-dynlib was given.
4925if test "${enable_dynlib+set}" = set; then
4926 enableval="$enable_dynlib"
4927
4928 if test "$enableval" = yes; then
4929 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes'
4930 else
4931 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no'
4932 fi
4933
4934else
4935
4936 LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}`
4937 if test "x$LINE" != x ; then
4938 eval "DEFAULT_$LINE"
4939 else
4940 no_cache=1
4941 fi
4942
4943 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS
4944
4945fi;
4946
4947 eval "$ac_cv_use_dynlib"
4948 if test "$no_cache" != 1; then
4949 echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp
4950 fi
4951
4952 if test "$wxUSE_DYNLIB_CLASS" = yes; then
4953 echo "$as_me:$LINENO: result: yes" >&5
4954echo "${ECHO_T}yes" >&6
4955 else
4956 echo "$as_me:$LINENO: result: no" >&5
4957echo "${ECHO_T}no" >&6
4958 fi
4959
4960
4961 enablestring=
4962 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynamicloader" >&5
4963echo $ECHO_N "checking for --${enablestring:-enable}-dynamicloader... $ECHO_C" >&6
4964 no_cache=0
4965 # Check whether --enable-dynamicloader or --disable-dynamicloader was given.
4966if test "${enable_dynamicloader+set}" = set; then
4967 enableval="$enable_dynamicloader"
4968
4969 if test "$enableval" = yes; then
4970 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=yes'
4971 else
4972 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=no'
4973 fi
4974
4975else
4976
4977 LINE=`grep "wxUSE_DYNAMIC_LOADER" ${wx_arg_cache_file}`
4978 if test "x$LINE" != x ; then
4979 eval "DEFAULT_$LINE"
4980 else
4981 no_cache=1
4982 fi
4983
4984 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER='$DEFAULT_wxUSE_DYNAMIC_LOADER
4985
4986fi;
4987
4988 eval "$ac_cv_use_dynamicloader"
4989 if test "$no_cache" != 1; then
4990 echo $ac_cv_use_dynamicloader >> ${wx_arg_cache_file}.tmp
4991 fi
4992
4993 if test "$wxUSE_DYNAMIC_LOADER" = yes; then
4994 echo "$as_me:$LINENO: result: yes" >&5
4995echo "${ECHO_T}yes" >&6
4996 else
4997 echo "$as_me:$LINENO: result: no" >&5
4998echo "${ECHO_T}no" >&6
4999 fi
5000
5001
5002 enablestring=
5003 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-exceptions" >&5
5004echo $ECHO_N "checking for --${enablestring:-enable}-exceptions... $ECHO_C" >&6
5005 no_cache=0
5006 # Check whether --enable-exceptions or --disable-exceptions was given.
5007if test "${enable_exceptions+set}" = set; then
5008 enableval="$enable_exceptions"
5009
5010 if test "$enableval" = yes; then
5011 ac_cv_use_exceptions='wxUSE_EXCEPTIONS=yes'
5012 else
5013 ac_cv_use_exceptions='wxUSE_EXCEPTIONS=no'
5014 fi
5015
5016else
5017
5018 LINE=`grep "wxUSE_EXCEPTIONS" ${wx_arg_cache_file}`
5019 if test "x$LINE" != x ; then
5020 eval "DEFAULT_$LINE"
5021 else
5022 no_cache=1
5023 fi
5024
5025 ac_cv_use_exceptions='wxUSE_EXCEPTIONS='$DEFAULT_wxUSE_EXCEPTIONS
5026
5027fi;
5028
5029 eval "$ac_cv_use_exceptions"
5030 if test "$no_cache" != 1; then
5031 echo $ac_cv_use_exceptions >> ${wx_arg_cache_file}.tmp
5032 fi
5033
5034 if test "$wxUSE_EXCEPTIONS" = yes; then
5035 echo "$as_me:$LINENO: result: yes" >&5
5036echo "${ECHO_T}yes" >&6
5037 else
5038 echo "$as_me:$LINENO: result: no" >&5
5039echo "${ECHO_T}no" >&6
5040 fi
5041
5042
5043 enablestring=
5044 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ffile" >&5
5045echo $ECHO_N "checking for --${enablestring:-enable}-ffile... $ECHO_C" >&6
5046 no_cache=0
5047 # Check whether --enable-ffile or --disable-ffile was given.
5048if test "${enable_ffile+set}" = set; then
5049 enableval="$enable_ffile"
5050
5051 if test "$enableval" = yes; then
5052 ac_cv_use_ffile='wxUSE_FFILE=yes'
5053 else
5054 ac_cv_use_ffile='wxUSE_FFILE=no'
5055 fi
5056
5057else
5058
5059 LINE=`grep "wxUSE_FFILE" ${wx_arg_cache_file}`
5060 if test "x$LINE" != x ; then
5061 eval "DEFAULT_$LINE"
5062 else
5063 no_cache=1
5064 fi
5065
5066 ac_cv_use_ffile='wxUSE_FFILE='$DEFAULT_wxUSE_FFILE
5067
5068fi;
5069
5070 eval "$ac_cv_use_ffile"
5071 if test "$no_cache" != 1; then
5072 echo $ac_cv_use_ffile >> ${wx_arg_cache_file}.tmp
5073 fi
5074
5075 if test "$wxUSE_FFILE" = yes; then
5076 echo "$as_me:$LINENO: result: yes" >&5
5077echo "${ECHO_T}yes" >&6
5078 else
5079 echo "$as_me:$LINENO: result: no" >&5
5080echo "${ECHO_T}no" >&6
5081 fi
5082
5083
5084 enablestring=
5085 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-file" >&5
5086echo $ECHO_N "checking for --${enablestring:-enable}-file... $ECHO_C" >&6
5087 no_cache=0
5088 # Check whether --enable-file or --disable-file was given.
5089if test "${enable_file+set}" = set; then
5090 enableval="$enable_file"
5091
5092 if test "$enableval" = yes; then
5093 ac_cv_use_file='wxUSE_FILE=yes'
5094 else
5095 ac_cv_use_file='wxUSE_FILE=no'
5096 fi
5097
5098else
5099
5100 LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}`
5101 if test "x$LINE" != x ; then
5102 eval "DEFAULT_$LINE"
5103 else
5104 no_cache=1
5105 fi
5106
5107 ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE
5108
5109fi;
5110
5111 eval "$ac_cv_use_file"
5112 if test "$no_cache" != 1; then
5113 echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp
5114 fi
5115
5116 if test "$wxUSE_FILE" = yes; then
5117 echo "$as_me:$LINENO: result: yes" >&5
5118echo "${ECHO_T}yes" >&6
5119 else
5120 echo "$as_me:$LINENO: result: no" >&5
5121echo "${ECHO_T}no" >&6
5122 fi
5123
5124
5125 enablestring=
5126 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filesystem" >&5
5127echo $ECHO_N "checking for --${enablestring:-enable}-filesystem... $ECHO_C" >&6
5128 no_cache=0
5129 # Check whether --enable-filesystem or --disable-filesystem was given.
5130if test "${enable_filesystem+set}" = set; then
5131 enableval="$enable_filesystem"
5132
5133 if test "$enableval" = yes; then
5134 ac_cv_use_filesystem='wxUSE_FILESYSTEM=yes'
5135 else
5136 ac_cv_use_filesystem='wxUSE_FILESYSTEM=no'
5137 fi
5138
5139else
5140
5141 LINE=`grep "wxUSE_FILESYSTEM" ${wx_arg_cache_file}`
5142 if test "x$LINE" != x ; then
5143 eval "DEFAULT_$LINE"
5144 else
5145 no_cache=1
5146 fi
5147
5148 ac_cv_use_filesystem='wxUSE_FILESYSTEM='$DEFAULT_wxUSE_FILESYSTEM
5149
5150fi;
5151
5152 eval "$ac_cv_use_filesystem"
5153 if test "$no_cache" != 1; then
5154 echo $ac_cv_use_filesystem >> ${wx_arg_cache_file}.tmp
5155 fi
5156
5157 if test "$wxUSE_FILESYSTEM" = yes; then
5158 echo "$as_me:$LINENO: result: yes" >&5
5159echo "${ECHO_T}yes" >&6
5160 else
5161 echo "$as_me:$LINENO: result: no" >&5
5162echo "${ECHO_T}no" >&6
5163 fi
5164
5165
5166 enablestring=
5167 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontmap" >&5
5168echo $ECHO_N "checking for --${enablestring:-enable}-fontmap... $ECHO_C" >&6
5169 no_cache=0
5170 # Check whether --enable-fontmap or --disable-fontmap was given.
5171if test "${enable_fontmap+set}" = set; then
5172 enableval="$enable_fontmap"
5173
5174 if test "$enableval" = yes; then
5175 ac_cv_use_fontmap='wxUSE_FONTMAP=yes'
5176 else
5177 ac_cv_use_fontmap='wxUSE_FONTMAP=no'
5178 fi
5179
5180else
5181
5182 LINE=`grep "wxUSE_FONTMAP" ${wx_arg_cache_file}`
5183 if test "x$LINE" != x ; then
5184 eval "DEFAULT_$LINE"
5185 else
5186 no_cache=1
5187 fi
5188
5189 ac_cv_use_fontmap='wxUSE_FONTMAP='$DEFAULT_wxUSE_FONTMAP
5190
5191fi;
5192
5193 eval "$ac_cv_use_fontmap"
5194 if test "$no_cache" != 1; then
5195 echo $ac_cv_use_fontmap >> ${wx_arg_cache_file}.tmp
5196 fi
5197
5198 if test "$wxUSE_FONTMAP" = yes; then
5199 echo "$as_me:$LINENO: result: yes" >&5
5200echo "${ECHO_T}yes" >&6
5201 else
5202 echo "$as_me:$LINENO: result: no" >&5
5203echo "${ECHO_T}no" >&6
5204 fi
5205
5206
5207 enablestring=
5208 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_inet" >&5
5209echo $ECHO_N "checking for --${enablestring:-enable}-fs_inet... $ECHO_C" >&6
5210 no_cache=0
5211 # Check whether --enable-fs_inet or --disable-fs_inet was given.
5212if test "${enable_fs_inet+set}" = set; then
5213 enableval="$enable_fs_inet"
5214
5215 if test "$enableval" = yes; then
5216 ac_cv_use_fs_inet='wxUSE_FS_INET=yes'
5217 else
5218 ac_cv_use_fs_inet='wxUSE_FS_INET=no'
5219 fi
5220
5221else
5222
5223 LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}`
5224 if test "x$LINE" != x ; then
5225 eval "DEFAULT_$LINE"
5226 else
5227 no_cache=1
5228 fi
5229
5230 ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET
5231
5232fi;
5233
5234 eval "$ac_cv_use_fs_inet"
5235 if test "$no_cache" != 1; then
5236 echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp
5237 fi
5238
5239 if test "$wxUSE_FS_INET" = yes; then
5240 echo "$as_me:$LINENO: result: yes" >&5
5241echo "${ECHO_T}yes" >&6
5242 else
5243 echo "$as_me:$LINENO: result: no" >&5
5244echo "${ECHO_T}no" >&6
5245 fi
5246
5247
5248 enablestring=
5249 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_zip" >&5
5250echo $ECHO_N "checking for --${enablestring:-enable}-fs_zip... $ECHO_C" >&6
5251 no_cache=0
5252 # Check whether --enable-fs_zip or --disable-fs_zip was given.
5253if test "${enable_fs_zip+set}" = set; then
5254 enableval="$enable_fs_zip"
5255
5256 if test "$enableval" = yes; then
5257 ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes'
5258 else
5259 ac_cv_use_fs_zip='wxUSE_FS_ZIP=no'
5260 fi
5261
5262else
5263
5264 LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}`
5265 if test "x$LINE" != x ; then
5266 eval "DEFAULT_$LINE"
5267 else
5268 no_cache=1
5269 fi
5270
5271 ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP
5272
5273fi;
5274
5275 eval "$ac_cv_use_fs_zip"
5276 if test "$no_cache" != 1; then
5277 echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp
5278 fi
5279
5280 if test "$wxUSE_FS_ZIP" = yes; then
5281 echo "$as_me:$LINENO: result: yes" >&5
5282echo "${ECHO_T}yes" >&6
5283 else
5284 echo "$as_me:$LINENO: result: no" >&5
5285echo "${ECHO_T}no" >&6
5286 fi
5287
5288
5289 enablestring=
5290 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-geometry" >&5
5291echo $ECHO_N "checking for --${enablestring:-enable}-geometry... $ECHO_C" >&6
5292 no_cache=0
5293 # Check whether --enable-geometry or --disable-geometry was given.
5294if test "${enable_geometry+set}" = set; then
5295 enableval="$enable_geometry"
5296
5297 if test "$enableval" = yes; then
5298 ac_cv_use_geometry='wxUSE_GEOMETRY=yes'
5299 else
5300 ac_cv_use_geometry='wxUSE_GEOMETRY=no'
5301 fi
5302
5303else
5304
5305 LINE=`grep "wxUSE_GEOMETRY" ${wx_arg_cache_file}`
5306 if test "x$LINE" != x ; then
5307 eval "DEFAULT_$LINE"
5308 else
5309 no_cache=1
5310 fi
5311
5312 ac_cv_use_geometry='wxUSE_GEOMETRY='$DEFAULT_wxUSE_GEOMETRY
5313
5314fi;
5315
5316 eval "$ac_cv_use_geometry"
5317 if test "$no_cache" != 1; then
5318 echo $ac_cv_use_geometry >> ${wx_arg_cache_file}.tmp
5319 fi
5320
5321 if test "$wxUSE_GEOMETRY" = yes; then
5322 echo "$as_me:$LINENO: result: yes" >&5
5323echo "${ECHO_T}yes" >&6
5324 else
5325 echo "$as_me:$LINENO: result: no" >&5
5326echo "${ECHO_T}no" >&6
5327 fi
5328
5329
5330 enablestring=
5331 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-log" >&5
5332echo $ECHO_N "checking for --${enablestring:-enable}-log... $ECHO_C" >&6
5333 no_cache=0
5334 # Check whether --enable-log or --disable-log was given.
5335if test "${enable_log+set}" = set; then
5336 enableval="$enable_log"
5337
5338 if test "$enableval" = yes; then
5339 ac_cv_use_log='wxUSE_LOG=yes'
5340 else
5341 ac_cv_use_log='wxUSE_LOG=no'
5342 fi
5343
5344else
5345
5346 LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}`
5347 if test "x$LINE" != x ; then
5348 eval "DEFAULT_$LINE"
5349 else
5350 no_cache=1
5351 fi
5352
5353 ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG
5354
5355fi;
5356
5357 eval "$ac_cv_use_log"
5358 if test "$no_cache" != 1; then
5359 echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp
5360 fi
5361
5362 if test "$wxUSE_LOG" = yes; then
5363 echo "$as_me:$LINENO: result: yes" >&5
5364echo "${ECHO_T}yes" >&6
5365 else
5366 echo "$as_me:$LINENO: result: no" >&5
5367echo "${ECHO_T}no" >&6
5368 fi
5369
5370
5371 enablestring=
5372 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-longlong" >&5
5373echo $ECHO_N "checking for --${enablestring:-enable}-longlong... $ECHO_C" >&6
5374 no_cache=0
5375 # Check whether --enable-longlong or --disable-longlong was given.
5376if test "${enable_longlong+set}" = set; then
5377 enableval="$enable_longlong"
5378
5379 if test "$enableval" = yes; then
5380 ac_cv_use_longlong='wxUSE_LONGLONG=yes'
5381 else
5382 ac_cv_use_longlong='wxUSE_LONGLONG=no'
5383 fi
5384
5385else
5386
5387 LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}`
5388 if test "x$LINE" != x ; then
5389 eval "DEFAULT_$LINE"
5390 else
5391 no_cache=1
5392 fi
5393
5394 ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG
5395
5396fi;
5397
5398 eval "$ac_cv_use_longlong"
5399 if test "$no_cache" != 1; then
5400 echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp
5401 fi
5402
5403 if test "$wxUSE_LONGLONG" = yes; then
5404 echo "$as_me:$LINENO: result: yes" >&5
5405echo "${ECHO_T}yes" >&6
5406 else
5407 echo "$as_me:$LINENO: result: no" >&5
5408echo "${ECHO_T}no" >&6
5409 fi
5410
5411
5412 enablestring=
5413 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mimetype" >&5
5414echo $ECHO_N "checking for --${enablestring:-enable}-mimetype... $ECHO_C" >&6
5415 no_cache=0
5416 # Check whether --enable-mimetype or --disable-mimetype was given.
5417if test "${enable_mimetype+set}" = set; then
5418 enableval="$enable_mimetype"
5419
5420 if test "$enableval" = yes; then
5421 ac_cv_use_mimetype='wxUSE_MIMETYPE=yes'
5422 else
5423 ac_cv_use_mimetype='wxUSE_MIMETYPE=no'
5424 fi
5425
5426else
5427
5428 LINE=`grep "wxUSE_MIMETYPE" ${wx_arg_cache_file}`
5429 if test "x$LINE" != x ; then
5430 eval "DEFAULT_$LINE"
5431 else
5432 no_cache=1
5433 fi
5434
5435 ac_cv_use_mimetype='wxUSE_MIMETYPE='$DEFAULT_wxUSE_MIMETYPE
5436
5437fi;
5438
5439 eval "$ac_cv_use_mimetype"
5440 if test "$no_cache" != 1; then
5441 echo $ac_cv_use_mimetype >> ${wx_arg_cache_file}.tmp
5442 fi
5443
5444 if test "$wxUSE_MIMETYPE" = yes; then
5445 echo "$as_me:$LINENO: result: yes" >&5
5446echo "${ECHO_T}yes" >&6
5447 else
5448 echo "$as_me:$LINENO: result: no" >&5
5449echo "${ECHO_T}no" >&6
5450 fi
5451
5452
5453 enablestring=
5454 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mslu" >&5
5455echo $ECHO_N "checking for --${enablestring:-enable}-mslu... $ECHO_C" >&6
5456 no_cache=0
5457 # Check whether --enable-mslu or --disable-mslu was given.
5458if test "${enable_mslu+set}" = set; then
5459 enableval="$enable_mslu"
5460
5461 if test "$enableval" = yes; then
5462 ac_cv_use_mslu='wxUSE_UNICODE_MSLU=yes'
5463 else
5464 ac_cv_use_mslu='wxUSE_UNICODE_MSLU=no'
5465 fi
5466
5467else
5468
5469 LINE=`grep "wxUSE_UNICODE_MSLU" ${wx_arg_cache_file}`
5470 if test "x$LINE" != x ; then
5471 eval "DEFAULT_$LINE"
5472 else
5473 no_cache=1
5474 fi
5475
5476 ac_cv_use_mslu='wxUSE_UNICODE_MSLU='$DEFAULT_wxUSE_UNICODE_MSLU
5477
5478fi;
5479
5480 eval "$ac_cv_use_mslu"
5481 if test "$no_cache" != 1; then
5482 echo $ac_cv_use_mslu >> ${wx_arg_cache_file}.tmp
5483 fi
5484
5485 if test "$wxUSE_UNICODE_MSLU" = yes; then
5486 echo "$as_me:$LINENO: result: yes" >&5
5487echo "${ECHO_T}yes" >&6
5488 else
5489 echo "$as_me:$LINENO: result: no" >&5
5490echo "${ECHO_T}no" >&6
5491 fi
5492
5493
5494 enablestring=
5495 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-snglinst" >&5
5496echo $ECHO_N "checking for --${enablestring:-enable}-snglinst... $ECHO_C" >&6
5497 no_cache=0
5498 # Check whether --enable-snglinst or --disable-snglinst was given.
5499if test "${enable_snglinst+set}" = set; then
5500 enableval="$enable_snglinst"
5501
5502 if test "$enableval" = yes; then
5503 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes'
5504 else
5505 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no'
5506 fi
5507
5508else
5509
5510 LINE=`grep "wxUSE_SNGLINST_CHECKER" ${wx_arg_cache_file}`
5511 if test "x$LINE" != x ; then
5512 eval "DEFAULT_$LINE"
5513 else
5514 no_cache=1
5515 fi
5516
5517 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER='$DEFAULT_wxUSE_SNGLINST_CHECKER
5518
5519fi;
5520
5521 eval "$ac_cv_use_snglinst"
5522 if test "$no_cache" != 1; then
5523 echo $ac_cv_use_snglinst >> ${wx_arg_cache_file}.tmp
5524 fi
5525
5526 if test "$wxUSE_SNGLINST_CHECKER" = yes; then
5527 echo "$as_me:$LINENO: result: yes" >&5
5528echo "${ECHO_T}yes" >&6
5529 else
5530 echo "$as_me:$LINENO: result: no" >&5
5531echo "${ECHO_T}no" >&6
5532 fi
5533
5534
5535 enablestring=
07158944
VZ
5536 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-std_iostreams" >&5
5537echo $ECHO_N "checking for --${enablestring:-enable}-std_iostreams... $ECHO_C" >&6
a848cd7e 5538 no_cache=0
07158944
VZ
5539 # Check whether --enable-std_iostreams or --disable-std_iostreams was given.
5540if test "${enable_std_iostreams+set}" = set; then
5541 enableval="$enable_std_iostreams"
a848cd7e
SC
5542
5543 if test "$enableval" = yes; then
07158944 5544 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes'
a848cd7e 5545 else
07158944 5546 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no'
a848cd7e
SC
5547 fi
5548
5549else
5550
07158944 5551 LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}`
a848cd7e
SC
5552 if test "x$LINE" != x ; then
5553 eval "DEFAULT_$LINE"
5554 else
5555 no_cache=1
5556 fi
5557
07158944 5558 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM
a848cd7e
SC
5559
5560fi;
5561
07158944 5562 eval "$ac_cv_use_std_iostreams"
a848cd7e 5563 if test "$no_cache" != 1; then
07158944 5564 echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
5565 fi
5566
07158944 5567 if test "$wxUSE_STD_IOSTREAM" = yes; then
a848cd7e
SC
5568 echo "$as_me:$LINENO: result: yes" >&5
5569echo "${ECHO_T}yes" >&6
5570 else
5571 echo "$as_me:$LINENO: result: no" >&5
5572echo "${ECHO_T}no" >&6
5573 fi
5574
5575
5576 enablestring=
07158944
VZ
5577 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stdpaths" >&5
5578echo $ECHO_N "checking for --${enablestring:-enable}-stdpaths... $ECHO_C" >&6
a848cd7e 5579 no_cache=0
07158944
VZ
5580 # Check whether --enable-stdpaths or --disable-stdpaths was given.
5581if test "${enable_stdpaths+set}" = set; then
5582 enableval="$enable_stdpaths"
a848cd7e
SC
5583
5584 if test "$enableval" = yes; then
07158944 5585 ac_cv_use_stdpaths='wxUSE_STDPATHS=yes'
a848cd7e 5586 else
07158944 5587 ac_cv_use_stdpaths='wxUSE_STDPATHS=no'
a848cd7e
SC
5588 fi
5589
5590else
5591
07158944 5592 LINE=`grep "wxUSE_STDPATHS" ${wx_arg_cache_file}`
a848cd7e
SC
5593 if test "x$LINE" != x ; then
5594 eval "DEFAULT_$LINE"
5595 else
5596 no_cache=1
5597 fi
5598
07158944 5599 ac_cv_use_stdpaths='wxUSE_STDPATHS='$DEFAULT_wxUSE_STDPATHS
a848cd7e
SC
5600
5601fi;
5602
07158944 5603 eval "$ac_cv_use_stdpaths"
a848cd7e 5604 if test "$no_cache" != 1; then
07158944 5605 echo $ac_cv_use_stdpaths >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
5606 fi
5607
07158944 5608 if test "$wxUSE_STDPATHS" = yes; then
a848cd7e
SC
5609 echo "$as_me:$LINENO: result: yes" >&5
5610echo "${ECHO_T}yes" >&6
5611 else
5612 echo "$as_me:$LINENO: result: no" >&5
5613echo "${ECHO_T}no" >&6
5614 fi
5615
5616
5617 enablestring=
5618 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stopwatch" >&5
5619echo $ECHO_N "checking for --${enablestring:-enable}-stopwatch... $ECHO_C" >&6
5620 no_cache=0
5621 # Check whether --enable-stopwatch or --disable-stopwatch was given.
5622if test "${enable_stopwatch+set}" = set; then
5623 enableval="$enable_stopwatch"
5624
5625 if test "$enableval" = yes; then
5626 ac_cv_use_stopwatch='wxUSE_STOPWATCH=yes'
5627 else
5628 ac_cv_use_stopwatch='wxUSE_STOPWATCH=no'
5629 fi
5630
5631else
5632
5633 LINE=`grep "wxUSE_STOPWATCH" ${wx_arg_cache_file}`
5634 if test "x$LINE" != x ; then
5635 eval "DEFAULT_$LINE"
5636 else
5637 no_cache=1
5638 fi
5639
5640 ac_cv_use_stopwatch='wxUSE_STOPWATCH='$DEFAULT_wxUSE_STOPWATCH
5641
5642fi;
5643
5644 eval "$ac_cv_use_stopwatch"
5645 if test "$no_cache" != 1; then
5646 echo $ac_cv_use_stopwatch >> ${wx_arg_cache_file}.tmp
5647 fi
5648
5649 if test "$wxUSE_STOPWATCH" = yes; then
5650 echo "$as_me:$LINENO: result: yes" >&5
5651echo "${ECHO_T}yes" >&6
5652 else
5653 echo "$as_me:$LINENO: result: no" >&5
5654echo "${ECHO_T}no" >&6
5655 fi
5656
5657
07158944
VZ
5658 enablestring=
5659 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-streams" >&5
5660echo $ECHO_N "checking for --${enablestring:-enable}-streams... $ECHO_C" >&6
5661 no_cache=0
5662 # Check whether --enable-streams or --disable-streams was given.
5663if test "${enable_streams+set}" = set; then
5664 enableval="$enable_streams"
5665
5666 if test "$enableval" = yes; then
5667 ac_cv_use_streams='wxUSE_STREAMS=yes'
5668 else
5669 ac_cv_use_streams='wxUSE_STREAMS=no'
5670 fi
5671
5672else
5673
5674 LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}`
5675 if test "x$LINE" != x ; then
5676 eval "DEFAULT_$LINE"
5677 else
5678 no_cache=1
5679 fi
5680
5681 ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS
5682
5683fi;
5684
5685 eval "$ac_cv_use_streams"
5686 if test "$no_cache" != 1; then
5687 echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp
5688 fi
5689
5690 if test "$wxUSE_STREAMS" = yes; then
5691 echo "$as_me:$LINENO: result: yes" >&5
5692echo "${ECHO_T}yes" >&6
5693 else
5694 echo "$as_me:$LINENO: result: no" >&5
5695echo "${ECHO_T}no" >&6
5696 fi
5697
5698
a848cd7e
SC
5699 enablestring=
5700 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-system_options" >&5
5701echo $ECHO_N "checking for --${enablestring:-enable}-system_options... $ECHO_C" >&6
5702 no_cache=0
5703 # Check whether --enable-system_options or --disable-system_options was given.
5704if test "${enable_system_options+set}" = set; then
5705 enableval="$enable_system_options"
5706
5707 if test "$enableval" = yes; then
5708 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=yes'
5709 else
5710 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=no'
5711 fi
5712
5713else
5714
5715 LINE=`grep "wxUSE_SYSTEM_OPTIONS" ${wx_arg_cache_file}`
5716 if test "x$LINE" != x ; then
5717 eval "DEFAULT_$LINE"
5718 else
5719 no_cache=1
5720 fi
5721
5722 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS='$DEFAULT_wxUSE_SYSTEM_OPTIONS
5723
5724fi;
5725
5726 eval "$ac_cv_use_system_options"
5727 if test "$no_cache" != 1; then
5728 echo $ac_cv_use_system_options >> ${wx_arg_cache_file}.tmp
5729 fi
5730
5731 if test "$wxUSE_SYSTEM_OPTIONS" = yes; then
5732 echo "$as_me:$LINENO: result: yes" >&5
5733echo "${ECHO_T}yes" >&6
5734 else
5735 echo "$as_me:$LINENO: result: no" >&5
5736echo "${ECHO_T}no" >&6
5737 fi
5738
5739
5740 enablestring=
5741 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textbuf" >&5
5742echo $ECHO_N "checking for --${enablestring:-enable}-textbuf... $ECHO_C" >&6
5743 no_cache=0
5744 # Check whether --enable-textbuf or --disable-textbuf was given.
5745if test "${enable_textbuf+set}" = set; then
5746 enableval="$enable_textbuf"
5747
5748 if test "$enableval" = yes; then
5749 ac_cv_use_textbuf='wxUSE_TEXTBUFFER=yes'
5750 else
5751 ac_cv_use_textbuf='wxUSE_TEXTBUFFER=no'
5752 fi
5753
5754else
5755
5756 LINE=`grep "wxUSE_TEXTBUFFER" ${wx_arg_cache_file}`
5757 if test "x$LINE" != x ; then
5758 eval "DEFAULT_$LINE"
5759 else
5760 no_cache=1
5761 fi
5762
5763 ac_cv_use_textbuf='wxUSE_TEXTBUFFER='$DEFAULT_wxUSE_TEXTBUFFER
5764
5765fi;
5766
5767 eval "$ac_cv_use_textbuf"
5768 if test "$no_cache" != 1; then
5769 echo $ac_cv_use_textbuf >> ${wx_arg_cache_file}.tmp
5770 fi
5771
5772 if test "$wxUSE_TEXTBUFFER" = yes; then
5773 echo "$as_me:$LINENO: result: yes" >&5
5774echo "${ECHO_T}yes" >&6
5775 else
5776 echo "$as_me:$LINENO: result: no" >&5
5777echo "${ECHO_T}no" >&6
5778 fi
5779
5780
5781 enablestring=
5782 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textfile" >&5
5783echo $ECHO_N "checking for --${enablestring:-enable}-textfile... $ECHO_C" >&6
5784 no_cache=0
5785 # Check whether --enable-textfile or --disable-textfile was given.
5786if test "${enable_textfile+set}" = set; then
5787 enableval="$enable_textfile"
5788
5789 if test "$enableval" = yes; then
5790 ac_cv_use_textfile='wxUSE_TEXTFILE=yes'
5791 else
5792 ac_cv_use_textfile='wxUSE_TEXTFILE=no'
5793 fi
5794
5795else
5796
5797 LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}`
5798 if test "x$LINE" != x ; then
5799 eval "DEFAULT_$LINE"
5800 else
5801 no_cache=1
5802 fi
5803
5804 ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE
5805
5806fi;
5807
5808 eval "$ac_cv_use_textfile"
5809 if test "$no_cache" != 1; then
5810 echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp
5811 fi
5812
5813 if test "$wxUSE_TEXTFILE" = yes; then
5814 echo "$as_me:$LINENO: result: yes" >&5
5815echo "${ECHO_T}yes" >&6
5816 else
5817 echo "$as_me:$LINENO: result: no" >&5
5818echo "${ECHO_T}no" >&6
5819 fi
5820
5821
5822 enablestring=
5823 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-timer" >&5
5824echo $ECHO_N "checking for --${enablestring:-enable}-timer... $ECHO_C" >&6
5825 no_cache=0
5826 # Check whether --enable-timer or --disable-timer was given.
5827if test "${enable_timer+set}" = set; then
5828 enableval="$enable_timer"
5829
5830 if test "$enableval" = yes; then
5831 ac_cv_use_timer='wxUSE_TIMER=yes'
5832 else
5833 ac_cv_use_timer='wxUSE_TIMER=no'
5834 fi
5835
5836else
5837
5838 LINE=`grep "wxUSE_TIMER" ${wx_arg_cache_file}`
5839 if test "x$LINE" != x ; then
5840 eval "DEFAULT_$LINE"
5841 else
5842 no_cache=1
5843 fi
5844
5845 ac_cv_use_timer='wxUSE_TIMER='$DEFAULT_wxUSE_TIMER
5846
5847fi;
5848
5849 eval "$ac_cv_use_timer"
5850 if test "$no_cache" != 1; then
5851 echo $ac_cv_use_timer >> ${wx_arg_cache_file}.tmp
5852 fi
5853
5854 if test "$wxUSE_TIMER" = yes; then
5855 echo "$as_me:$LINENO: result: yes" >&5
5856echo "${ECHO_T}yes" >&6
5857 else
5858 echo "$as_me:$LINENO: result: no" >&5
5859echo "${ECHO_T}no" >&6
5860 fi
5861
5862
5863 enablestring=
5864 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-unicode" >&5
5865echo $ECHO_N "checking for --${enablestring:-enable}-unicode... $ECHO_C" >&6
5866 no_cache=0
5867 # Check whether --enable-unicode or --disable-unicode was given.
5868if test "${enable_unicode+set}" = set; then
5869 enableval="$enable_unicode"
5870
5871 if test "$enableval" = yes; then
5872 ac_cv_use_unicode='wxUSE_UNICODE=yes'
5873 else
5874 ac_cv_use_unicode='wxUSE_UNICODE=no'
5875 fi
5876
5877else
5878
5879 LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}`
5880 if test "x$LINE" != x ; then
5881 eval "DEFAULT_$LINE"
5882 else
5883 no_cache=1
5884 fi
5885
5886 ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE
5887
5888fi;
5889
5890 eval "$ac_cv_use_unicode"
5891 if test "$no_cache" != 1; then
5892 echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp
5893 fi
5894
5895 if test "$wxUSE_UNICODE" = yes; then
5896 echo "$as_me:$LINENO: result: yes" >&5
5897echo "${ECHO_T}yes" >&6
5898 else
5899 echo "$as_me:$LINENO: result: no" >&5
5900echo "${ECHO_T}no" >&6
5901 fi
5902
5903
5904 enablestring=
5905 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sound" >&5
5906echo $ECHO_N "checking for --${enablestring:-enable}-sound... $ECHO_C" >&6
5907 no_cache=0
5908 # Check whether --enable-sound or --disable-sound was given.
5909if test "${enable_sound+set}" = set; then
5910 enableval="$enable_sound"
5911
5912 if test "$enableval" = yes; then
5913 ac_cv_use_sound='wxUSE_SOUND=yes'
5914 else
5915 ac_cv_use_sound='wxUSE_SOUND=no'
5916 fi
5917
5918else
5919
5920 LINE=`grep "wxUSE_SOUND" ${wx_arg_cache_file}`
5921 if test "x$LINE" != x ; then
5922 eval "DEFAULT_$LINE"
5923 else
5924 no_cache=1
5925 fi
5926
5927 ac_cv_use_sound='wxUSE_SOUND='$DEFAULT_wxUSE_SOUND
5928
5929fi;
5930
5931 eval "$ac_cv_use_sound"
5932 if test "$no_cache" != 1; then
5933 echo $ac_cv_use_sound >> ${wx_arg_cache_file}.tmp
5934 fi
5935
5936 if test "$wxUSE_SOUND" = yes; then
5937 echo "$as_me:$LINENO: result: yes" >&5
5938echo "${ECHO_T}yes" >&6
5939 else
5940 echo "$as_me:$LINENO: result: no" >&5
5941echo "${ECHO_T}no" >&6
5942 fi
5943
5944
3b57de8b
RL
5945 enablestring=
5946 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mediactrl" >&5
5947echo $ECHO_N "checking for --${enablestring:-enable}-mediactrl... $ECHO_C" >&6
5948 no_cache=0
5949 # Check whether --enable-mediactrl or --disable-mediactrl was given.
5950if test "${enable_mediactrl+set}" = set; then
5951 enableval="$enable_mediactrl"
5952
5953 if test "$enableval" = yes; then
5954 ac_cv_use_mediactrl='wxUSE_MEDIACTRL=yes'
5955 else
5956 ac_cv_use_mediactrl='wxUSE_MEDIACTRL=no'
5957 fi
5958
5959else
5960
5961 LINE=`grep "wxUSE_MEDIACTRL" ${wx_arg_cache_file}`
5962 if test "x$LINE" != x ; then
5963 eval "DEFAULT_$LINE"
5964 else
5965 no_cache=1
5966 fi
5967
5968 ac_cv_use_mediactrl='wxUSE_MEDIACTRL='$DEFAULT_wxUSE_MEDIACTRL
5969
5970fi;
5971
5972 eval "$ac_cv_use_mediactrl"
5973 if test "$no_cache" != 1; then
5974 echo $ac_cv_use_mediactrl >> ${wx_arg_cache_file}.tmp
5975 fi
5976
5977 if test "$wxUSE_MEDIACTRL" = yes; then
5978 echo "$as_me:$LINENO: result: yes" >&5
5979echo "${ECHO_T}yes" >&6
5980 else
5981 echo "$as_me:$LINENO: result: no" >&5
5982echo "${ECHO_T}no" >&6
5983 fi
5984
5985
a848cd7e
SC
5986 enablestring=
5987 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wxprintfv" >&5
5988echo $ECHO_N "checking for --${enablestring:-enable}-wxprintfv... $ECHO_C" >&6
5989 no_cache=0
5990 # Check whether --enable-wxprintfv or --disable-wxprintfv was given.
5991if test "${enable_wxprintfv+set}" = set; then
5992 enableval="$enable_wxprintfv"
5993
5994 if test "$enableval" = yes; then
5995 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=yes'
5996 else
5997 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=no'
5998 fi
5999
6000else
6001
6002 LINE=`grep "wxUSE_EXPERIMENTAL_PRINTF" ${wx_arg_cache_file}`
6003 if test "x$LINE" != x ; then
6004 eval "DEFAULT_$LINE"
6005 else
6006 no_cache=1
6007 fi
6008
6009 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF='$DEFAULT_wxUSE_EXPERIMENTAL_PRINTF
6010
6011fi;
6012
6013 eval "$ac_cv_use_wxprintfv"
6014 if test "$no_cache" != 1; then
6015 echo $ac_cv_use_wxprintfv >> ${wx_arg_cache_file}.tmp
6016 fi
6017
6018 if test "$wxUSE_EXPERIMENTAL_PRINTF" = yes; then
6019 echo "$as_me:$LINENO: result: yes" >&5
6020echo "${ECHO_T}yes" >&6
6021 else
6022 echo "$as_me:$LINENO: result: no" >&5
6023echo "${ECHO_T}no" >&6
6024 fi
6025
6026
6027 enablestring=
6028 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-zipstream" >&5
6029echo $ECHO_N "checking for --${enablestring:-enable}-zipstream... $ECHO_C" >&6
6030 no_cache=0
6031 # Check whether --enable-zipstream or --disable-zipstream was given.
6032if test "${enable_zipstream+set}" = set; then
6033 enableval="$enable_zipstream"
6034
6035 if test "$enableval" = yes; then
6036 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes'
6037 else
6038 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no'
6039 fi
6040
6041else
6042
6043 LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}`
6044 if test "x$LINE" != x ; then
6045 eval "DEFAULT_$LINE"
6046 else
6047 no_cache=1
6048 fi
6049
6050 ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM
6051
6052fi;
6053
6054 eval "$ac_cv_use_zipstream"
6055 if test "$no_cache" != 1; then
6056 echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp
6057 fi
6058
6059 if test "$wxUSE_ZIPSTREAM" = yes; then
6060 echo "$as_me:$LINENO: result: yes" >&5
6061echo "${ECHO_T}yes" >&6
6062 else
6063 echo "$as_me:$LINENO: result: no" >&5
6064echo "${ECHO_T}no" >&6
6065 fi
6066
6067
a848cd7e
SC
6068
6069 enablestring=
6070 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-url" >&5
6071echo $ECHO_N "checking for --${enablestring:-enable}-url... $ECHO_C" >&6
6072 no_cache=0
6073 # Check whether --enable-url or --disable-url was given.
6074if test "${enable_url+set}" = set; then
6075 enableval="$enable_url"
6076
6077 if test "$enableval" = yes; then
6078 ac_cv_use_url='wxUSE_URL=yes'
6079 else
6080 ac_cv_use_url='wxUSE_URL=no'
6081 fi
6082
6083else
6084
6085 LINE=`grep "wxUSE_URL" ${wx_arg_cache_file}`
6086 if test "x$LINE" != x ; then
6087 eval "DEFAULT_$LINE"
6088 else
6089 no_cache=1
6090 fi
6091
6092 ac_cv_use_url='wxUSE_URL='$DEFAULT_wxUSE_URL
6093
6094fi;
6095
6096 eval "$ac_cv_use_url"
6097 if test "$no_cache" != 1; then
6098 echo $ac_cv_use_url >> ${wx_arg_cache_file}.tmp
6099 fi
6100
6101 if test "$wxUSE_URL" = yes; then
6102 echo "$as_me:$LINENO: result: yes" >&5
6103echo "${ECHO_T}yes" >&6
6104 else
6105 echo "$as_me:$LINENO: result: no" >&5
6106echo "${ECHO_T}no" >&6
6107 fi
6108
6109
6110 enablestring=
6111 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol" >&5
6112echo $ECHO_N "checking for --${enablestring:-enable}-protocol... $ECHO_C" >&6
6113 no_cache=0
6114 # Check whether --enable-protocol or --disable-protocol was given.
6115if test "${enable_protocol+set}" = set; then
6116 enableval="$enable_protocol"
6117
6118 if test "$enableval" = yes; then
6119 ac_cv_use_protocol='wxUSE_PROTOCOL=yes'
6120 else
6121 ac_cv_use_protocol='wxUSE_PROTOCOL=no'
6122 fi
6123
6124else
6125
6126 LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
6127 if test "x$LINE" != x ; then
6128 eval "DEFAULT_$LINE"
6129 else
6130 no_cache=1
6131 fi
6132
6133 ac_cv_use_protocol='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
6134
6135fi;
6136
6137 eval "$ac_cv_use_protocol"
6138 if test "$no_cache" != 1; then
6139 echo $ac_cv_use_protocol >> ${wx_arg_cache_file}.tmp
6140 fi
6141
6142 if test "$wxUSE_PROTOCOL" = yes; then
6143 echo "$as_me:$LINENO: result: yes" >&5
6144echo "${ECHO_T}yes" >&6
6145 else
6146 echo "$as_me:$LINENO: result: no" >&5
6147echo "${ECHO_T}no" >&6
6148 fi
6149
6150
6151 enablestring=
6152 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_http" >&5
6153echo $ECHO_N "checking for --${enablestring:-enable}-protocol_http... $ECHO_C" >&6
6154 no_cache=0
6155 # Check whether --enable-protocol_http or --disable-protocol_http was given.
6156if test "${enable_protocol_http+set}" = set; then
6157 enableval="$enable_protocol_http"
6158
6159 if test "$enableval" = yes; then
6160 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=yes'
6161 else
6162 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=no'
6163 fi
6164
6165else
6166
6167 LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
6168 if test "x$LINE" != x ; then
6169 eval "DEFAULT_$LINE"
6170 else
6171 no_cache=1
6172 fi
6173
6174 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
6175
6176fi;
6177
6178 eval "$ac_cv_use_protocol_http"
6179 if test "$no_cache" != 1; then
6180 echo $ac_cv_use_protocol_http >> ${wx_arg_cache_file}.tmp
6181 fi
6182
6183 if test "$wxUSE_PROTOCOL_HTTP" = yes; then
6184 echo "$as_me:$LINENO: result: yes" >&5
6185echo "${ECHO_T}yes" >&6
6186 else
6187 echo "$as_me:$LINENO: result: no" >&5
6188echo "${ECHO_T}no" >&6
6189 fi
6190
6191
6192 enablestring=
6193 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_ftp" >&5
6194echo $ECHO_N "checking for --${enablestring:-enable}-protocol_ftp... $ECHO_C" >&6
6195 no_cache=0
6196 # Check whether --enable-protocol_ftp or --disable-protocol_ftp was given.
6197if test "${enable_protocol_ftp+set}" = set; then
6198 enableval="$enable_protocol_ftp"
6199
6200 if test "$enableval" = yes; then
6201 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=yes'
6202 else
6203 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=no'
6204 fi
6205
6206else
6207
6208 LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
6209 if test "x$LINE" != x ; then
6210 eval "DEFAULT_$LINE"
6211 else
6212 no_cache=1
6213 fi
6214
6215 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
6216
6217fi;
6218
6219 eval "$ac_cv_use_protocol_ftp"
6220 if test "$no_cache" != 1; then
6221 echo $ac_cv_use_protocol_ftp >> ${wx_arg_cache_file}.tmp
6222 fi
6223
6224 if test "$wxUSE_PROTOCOL_FTP" = yes; then
6225 echo "$as_me:$LINENO: result: yes" >&5
6226echo "${ECHO_T}yes" >&6
6227 else
6228 echo "$as_me:$LINENO: result: no" >&5
6229echo "${ECHO_T}no" >&6
6230 fi
6231
6232
6233 enablestring=
6234 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_file" >&5
6235echo $ECHO_N "checking for --${enablestring:-enable}-protocol_file... $ECHO_C" >&6
6236 no_cache=0
6237 # Check whether --enable-protocol_file or --disable-protocol_file was given.
6238if test "${enable_protocol_file+set}" = set; then
6239 enableval="$enable_protocol_file"
6240
6241 if test "$enableval" = yes; then
6242 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=yes'
6243 else
6244 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=no'
6245 fi
6246
6247else
6248
6249 LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
6250 if test "x$LINE" != x ; then
6251 eval "DEFAULT_$LINE"
6252 else
6253 no_cache=1
6254 fi
6255
6256 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
6257
6258fi;
6259
6260 eval "$ac_cv_use_protocol_file"
6261 if test "$no_cache" != 1; then
6262 echo $ac_cv_use_protocol_file >> ${wx_arg_cache_file}.tmp
6263 fi
6264
6265 if test "$wxUSE_PROTOCOL_FILE" = yes; then
6266 echo "$as_me:$LINENO: result: yes" >&5
6267echo "${ECHO_T}yes" >&6
6268 else
6269 echo "$as_me:$LINENO: result: no" >&5
6270echo "${ECHO_T}no" >&6
6271 fi
6272
6273
6274
6275
6276
6277 enablestring=
6278 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-threads" >&5
6279echo $ECHO_N "checking for --${enablestring:-enable}-threads... $ECHO_C" >&6
6280 no_cache=0
6281 # Check whether --enable-threads or --disable-threads was given.
6282if test "${enable_threads+set}" = set; then
6283 enableval="$enable_threads"
6284
6285 if test "$enableval" = yes; then
6286 ac_cv_use_threads='wxUSE_THREADS=yes'
6287 else
6288 ac_cv_use_threads='wxUSE_THREADS=no'
6289 fi
6290
6291else
6292
6293 LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}`
6294 if test "x$LINE" != x ; then
6295 eval "DEFAULT_$LINE"
6296 else
6297 no_cache=1
6298 fi
6299
6300 ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS
6301
6302fi;
6303
6304 eval "$ac_cv_use_threads"
6305 if test "$no_cache" != 1; then
6306 echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp
6307 fi
6308
6309 if test "$wxUSE_THREADS" = yes; then
6310 echo "$as_me:$LINENO: result: yes" >&5
6311echo "${ECHO_T}yes" >&6
6312 else
6313 echo "$as_me:$LINENO: result: no" >&5
6314echo "${ECHO_T}no" >&6
6315 fi
6316
6317
6318if test "$wxUSE_GUI" = "yes"; then
6319
6320
6321
6322 enablestring=
6323 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-docview" >&5
6324echo $ECHO_N "checking for --${enablestring:-enable}-docview... $ECHO_C" >&6
6325 no_cache=0
6326 # Check whether --enable-docview or --disable-docview was given.
6327if test "${enable_docview+set}" = set; then
6328 enableval="$enable_docview"
6329
6330 if test "$enableval" = yes; then
6331 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes'
6332 else
6333 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no'
6334 fi
6335
6336else
6337
6338 LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}`
6339 if test "x$LINE" != x ; then
6340 eval "DEFAULT_$LINE"
6341 else
6342 no_cache=1
6343 fi
6344
6345 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE
6346
6347fi;
6348
6349 eval "$ac_cv_use_docview"
6350 if test "$no_cache" != 1; then
6351 echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp
6352 fi
6353
6354 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then
6355 echo "$as_me:$LINENO: result: yes" >&5
6356echo "${ECHO_T}yes" >&6
6357 else
6358 echo "$as_me:$LINENO: result: no" >&5
6359echo "${ECHO_T}no" >&6
6360 fi
6361
6362
6363 enablestring=
6364 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-help" >&5
6365echo $ECHO_N "checking for --${enablestring:-enable}-help... $ECHO_C" >&6
6366 no_cache=0
6367 # Check whether --enable-help or --disable-help was given.
6368if test "${enable_help+set}" = set; then
6369 enableval="$enable_help"
6370
6371 if test "$enableval" = yes; then
6372 ac_cv_use_help='wxUSE_HELP=yes'
6373 else
6374 ac_cv_use_help='wxUSE_HELP=no'
6375 fi
6376
6377else
6378
6379 LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}`
6380 if test "x$LINE" != x ; then
6381 eval "DEFAULT_$LINE"
6382 else
6383 no_cache=1
6384 fi
6385
6386 ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP
6387
6388fi;
6389
6390 eval "$ac_cv_use_help"
6391 if test "$no_cache" != 1; then
6392 echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp
6393 fi
6394
6395 if test "$wxUSE_HELP" = yes; then
6396 echo "$as_me:$LINENO: result: yes" >&5
6397echo "${ECHO_T}yes" >&6
6398 else
6399 echo "$as_me:$LINENO: result: no" >&5
6400echo "${ECHO_T}no" >&6
6401 fi
6402
6403
6404 enablestring=
6405 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mshtmlhelp" >&5
6406echo $ECHO_N "checking for --${enablestring:-enable}-mshtmlhelp... $ECHO_C" >&6
6407 no_cache=0
6408 # Check whether --enable-mshtmlhelp or --disable-mshtmlhelp was given.
6409if test "${enable_mshtmlhelp+set}" = set; then
6410 enableval="$enable_mshtmlhelp"
6411
6412 if test "$enableval" = yes; then
6413 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=yes'
6414 else
6415 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=no'
6416 fi
6417
6418else
6419
6420 LINE=`grep "wxUSE_MS_HTML_HELP" ${wx_arg_cache_file}`
6421 if test "x$LINE" != x ; then
6422 eval "DEFAULT_$LINE"
6423 else
6424 no_cache=1
6425 fi
6426
6427 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP='$DEFAULT_wxUSE_MS_HTML_HELP
6428
6429fi;
6430
6431 eval "$ac_cv_use_mshtmlhelp"
6432 if test "$no_cache" != 1; then
6433 echo $ac_cv_use_mshtmlhelp >> ${wx_arg_cache_file}.tmp
6434 fi
6435
6436 if test "$wxUSE_MS_HTML_HELP" = yes; then
6437 echo "$as_me:$LINENO: result: yes" >&5
6438echo "${ECHO_T}yes" >&6
6439 else
6440 echo "$as_me:$LINENO: result: no" >&5
6441echo "${ECHO_T}no" >&6
6442 fi
6443
6444
6445 enablestring=
6446 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-html" >&5
6447echo $ECHO_N "checking for --${enablestring:-enable}-html... $ECHO_C" >&6
6448 no_cache=0
6449 # Check whether --enable-html or --disable-html was given.
6450if test "${enable_html+set}" = set; then
6451 enableval="$enable_html"
6452
6453 if test "$enableval" = yes; then
6454 ac_cv_use_html='wxUSE_HTML=yes'
6455 else
6456 ac_cv_use_html='wxUSE_HTML=no'
6457 fi
6458
6459else
6460
6461 LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}`
6462 if test "x$LINE" != x ; then
6463 eval "DEFAULT_$LINE"
6464 else
6465 no_cache=1
6466 fi
6467
6468 ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML
6469
6470fi;
6471
6472 eval "$ac_cv_use_html"
6473 if test "$no_cache" != 1; then
6474 echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp
6475 fi
6476
6477 if test "$wxUSE_HTML" = yes; then
6478 echo "$as_me:$LINENO: result: yes" >&5
6479echo "${ECHO_T}yes" >&6
6480 else
6481 echo "$as_me:$LINENO: result: no" >&5
6482echo "${ECHO_T}no" >&6
6483 fi
6484
6485
6486 enablestring=
6487 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-htmlhelp" >&5
6488echo $ECHO_N "checking for --${enablestring:-enable}-htmlhelp... $ECHO_C" >&6
6489 no_cache=0
6490 # Check whether --enable-htmlhelp or --disable-htmlhelp was given.
6491if test "${enable_htmlhelp+set}" = set; then
6492 enableval="$enable_htmlhelp"
6493
6494 if test "$enableval" = yes; then
6495 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=yes'
6496 else
6497 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=no'
6498 fi
6499
6500else
6501
6502 LINE=`grep "wxUSE_WXHTML_HELP" ${wx_arg_cache_file}`
6503 if test "x$LINE" != x ; then
6504 eval "DEFAULT_$LINE"
6505 else
6506 no_cache=1
6507 fi
6508
6509 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP='$DEFAULT_wxUSE_WXHTML_HELP
6510
6511fi;
6512
6513 eval "$ac_cv_use_htmlhelp"
6514 if test "$no_cache" != 1; then
6515 echo $ac_cv_use_htmlhelp >> ${wx_arg_cache_file}.tmp
6516 fi
6517
6518 if test "$wxUSE_WXHTML_HELP" = yes; then
6519 echo "$as_me:$LINENO: result: yes" >&5
6520echo "${ECHO_T}yes" >&6
6521 else
6522 echo "$as_me:$LINENO: result: no" >&5
6523echo "${ECHO_T}no" >&6
6524 fi
6525
6526
9a8f0513
VS
6527 enablestring=
6528 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xrc" >&5
6529echo $ECHO_N "checking for --${enablestring:-enable}-xrc... $ECHO_C" >&6
6530 no_cache=0
6531 # Check whether --enable-xrc or --disable-xrc was given.
6532if test "${enable_xrc+set}" = set; then
6533 enableval="$enable_xrc"
6534
6535 if test "$enableval" = yes; then
6536 ac_cv_use_xrc='wxUSE_XRC=yes'
6537 else
6538 ac_cv_use_xrc='wxUSE_XRC=no'
6539 fi
6540
6541else
6542
6543 LINE=`grep "wxUSE_XRC" ${wx_arg_cache_file}`
6544 if test "x$LINE" != x ; then
6545 eval "DEFAULT_$LINE"
6546 else
6547 no_cache=1
6548 fi
6549
6550 ac_cv_use_xrc='wxUSE_XRC='$DEFAULT_wxUSE_XRC
6551
6552fi;
6553
6554 eval "$ac_cv_use_xrc"
6555 if test "$no_cache" != 1; then
6556 echo $ac_cv_use_xrc >> ${wx_arg_cache_file}.tmp
6557 fi
6558
6559 if test "$wxUSE_XRC" = yes; then
6560 echo "$as_me:$LINENO: result: yes" >&5
6561echo "${ECHO_T}yes" >&6
6562 else
6563 echo "$as_me:$LINENO: result: no" >&5
6564echo "${ECHO_T}no" >&6
6565 fi
6566
6567
a848cd7e
SC
6568 enablestring=
6569 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-constraints" >&5
6570echo $ECHO_N "checking for --${enablestring:-enable}-constraints... $ECHO_C" >&6
6571 no_cache=0
6572 # Check whether --enable-constraints or --disable-constraints was given.
6573if test "${enable_constraints+set}" = set; then
6574 enableval="$enable_constraints"
6575
6576 if test "$enableval" = yes; then
6577 ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes'
6578 else
6579 ac_cv_use_constraints='wxUSE_CONSTRAINTS=no'
6580 fi
6581
6582else
6583
6584 LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}`
6585 if test "x$LINE" != x ; then
6586 eval "DEFAULT_$LINE"
6587 else
6588 no_cache=1
6589 fi
6590
6591 ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS
6592
6593fi;
6594
6595 eval "$ac_cv_use_constraints"
6596 if test "$no_cache" != 1; then
6597 echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp
6598 fi
6599
6600 if test "$wxUSE_CONSTRAINTS" = yes; then
6601 echo "$as_me:$LINENO: result: yes" >&5
6602echo "${ECHO_T}yes" >&6
6603 else
6604 echo "$as_me:$LINENO: result: no" >&5
6605echo "${ECHO_T}no" >&6
6606 fi
6607
6608
6609 enablestring=
6610 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-printarch" >&5
6611echo $ECHO_N "checking for --${enablestring:-enable}-printarch... $ECHO_C" >&6
6612 no_cache=0
6613 # Check whether --enable-printarch or --disable-printarch was given.
6614if test "${enable_printarch+set}" = set; then
6615 enableval="$enable_printarch"
6616
6617 if test "$enableval" = yes; then
6618 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes'
6619 else
6620 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no'
6621 fi
6622
6623else
6624
6625 LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}`
6626 if test "x$LINE" != x ; then
6627 eval "DEFAULT_$LINE"
6628 else
6629 no_cache=1
6630 fi
6631
6632 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE
6633
6634fi;
6635
6636 eval "$ac_cv_use_printarch"
6637 if test "$no_cache" != 1; then
6638 echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp
6639 fi
6640
6641 if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then
6642 echo "$as_me:$LINENO: result: yes" >&5
6643echo "${ECHO_T}yes" >&6
6644 else
6645 echo "$as_me:$LINENO: result: no" >&5
6646echo "${ECHO_T}no" >&6
6647 fi
6648
6649
6650 enablestring=
6651 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdi" >&5
6652echo $ECHO_N "checking for --${enablestring:-enable}-mdi... $ECHO_C" >&6
6653 no_cache=0
6654 # Check whether --enable-mdi or --disable-mdi was given.
6655if test "${enable_mdi+set}" = set; then
6656 enableval="$enable_mdi"
6657
6658 if test "$enableval" = yes; then
8a7b1113 6659 ac_cv_use_mdi='wxUSE_MDI=yes'
a848cd7e 6660 else
8a7b1113 6661 ac_cv_use_mdi='wxUSE_MDI=no'
a848cd7e
SC
6662 fi
6663
6664else
6665
8a7b1113 6666 LINE=`grep "wxUSE_MDI" ${wx_arg_cache_file}`
a848cd7e
SC
6667 if test "x$LINE" != x ; then
6668 eval "DEFAULT_$LINE"
6669 else
6670 no_cache=1
6671 fi
6672
8a7b1113 6673 ac_cv_use_mdi='wxUSE_MDI='$DEFAULT_wxUSE_MDI
a848cd7e
SC
6674
6675fi;
6676
6677 eval "$ac_cv_use_mdi"
6678 if test "$no_cache" != 1; then
6679 echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp
6680 fi
6681
8a7b1113
VZ
6682 if test "$wxUSE_MDI" = yes; then
6683 echo "$as_me:$LINENO: result: yes" >&5
6684echo "${ECHO_T}yes" >&6
6685 else
6686 echo "$as_me:$LINENO: result: no" >&5
6687echo "${ECHO_T}no" >&6
6688 fi
6689
6690
6691 enablestring=
6692 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdidoc" >&5
6693echo $ECHO_N "checking for --${enablestring:-enable}-mdidoc... $ECHO_C" >&6
6694 no_cache=0
6695 # Check whether --enable-mdidoc or --disable-mdidoc was given.
6696if test "${enable_mdidoc+set}" = set; then
6697 enableval="$enable_mdidoc"
6698
6699 if test "$enableval" = yes; then
6700 ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=yes'
6701 else
6702 ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=no'
6703 fi
6704
6705else
6706
6707 LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}`
6708 if test "x$LINE" != x ; then
6709 eval "DEFAULT_$LINE"
6710 else
6711 no_cache=1
6712 fi
6713
6714 ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE
6715
6716fi;
6717
6718 eval "$ac_cv_use_mdidoc"
6719 if test "$no_cache" != 1; then
6720 echo $ac_cv_use_mdidoc >> ${wx_arg_cache_file}.tmp
6721 fi
6722
a848cd7e
SC
6723 if test "$wxUSE_MDI_ARCHITECTURE" = yes; then
6724 echo "$as_me:$LINENO: result: yes" >&5
6725echo "${ECHO_T}yes" >&6
6726 else
6727 echo "$as_me:$LINENO: result: no" >&5
6728echo "${ECHO_T}no" >&6
6729 fi
6730
6731
6732 enablestring=
6733 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-loggui" >&5
6734echo $ECHO_N "checking for --${enablestring:-enable}-loggui... $ECHO_C" >&6
6735 no_cache=0
6736 # Check whether --enable-loggui or --disable-loggui was given.
6737if test "${enable_loggui+set}" = set; then
6738 enableval="$enable_loggui"
6739
6740 if test "$enableval" = yes; then
6741 ac_cv_use_loggui='wxUSE_LOGGUI=yes'
6742 else
6743 ac_cv_use_loggui='wxUSE_LOGGUI=no'
6744 fi
6745
6746else
6747
6748 LINE=`grep "wxUSE_LOGGUI" ${wx_arg_cache_file}`
6749 if test "x$LINE" != x ; then
6750 eval "DEFAULT_$LINE"
6751 else
6752 no_cache=1
6753 fi
6754
6755 ac_cv_use_loggui='wxUSE_LOGGUI='$DEFAULT_wxUSE_LOGGUI
6756
6757fi;
6758
6759 eval "$ac_cv_use_loggui"
6760 if test "$no_cache" != 1; then
6761 echo $ac_cv_use_loggui >> ${wx_arg_cache_file}.tmp
6762 fi
6763
6764 if test "$wxUSE_LOGGUI" = yes; then
6765 echo "$as_me:$LINENO: result: yes" >&5
6766echo "${ECHO_T}yes" >&6
6767 else
6768 echo "$as_me:$LINENO: result: no" >&5
6769echo "${ECHO_T}no" >&6
6770 fi
6771
6772
6773 enablestring=
6774 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logwin" >&5
6775echo $ECHO_N "checking for --${enablestring:-enable}-logwin... $ECHO_C" >&6
6776 no_cache=0
6777 # Check whether --enable-logwin or --disable-logwin was given.
6778if test "${enable_logwin+set}" = set; then
6779 enableval="$enable_logwin"
6780
6781 if test "$enableval" = yes; then
6782 ac_cv_use_logwin='wxUSE_LOGWINDOW=yes'
6783 else
6784 ac_cv_use_logwin='wxUSE_LOGWINDOW=no'
6785 fi
6786
6787else
6788
6789 LINE=`grep "wxUSE_LOGWINDOW" ${wx_arg_cache_file}`
6790 if test "x$LINE" != x ; then
6791 eval "DEFAULT_$LINE"
6792 else
6793 no_cache=1
6794 fi
6795
6796 ac_cv_use_logwin='wxUSE_LOGWINDOW='$DEFAULT_wxUSE_LOGWINDOW
6797
6798fi;
6799
6800 eval "$ac_cv_use_logwin"
6801 if test "$no_cache" != 1; then
6802 echo $ac_cv_use_logwin >> ${wx_arg_cache_file}.tmp
6803 fi
6804
6805 if test "$wxUSE_LOGWINDOW" = yes; then
6806 echo "$as_me:$LINENO: result: yes" >&5
6807echo "${ECHO_T}yes" >&6
6808 else
6809 echo "$as_me:$LINENO: result: no" >&5
6810echo "${ECHO_T}no" >&6
6811 fi
6812
6813
6814 enablestring=
6815 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logdialog" >&5
6816echo $ECHO_N "checking for --${enablestring:-enable}-logdialog... $ECHO_C" >&6
6817 no_cache=0
6818 # Check whether --enable-logdialog or --disable-logdialog was given.
6819if test "${enable_logdialog+set}" = set; then
6820 enableval="$enable_logdialog"
6821
6822 if test "$enableval" = yes; then
6823 ac_cv_use_logdialog='wxUSE_LOGDIALOG=yes'
6824 else
6825 ac_cv_use_logdialog='wxUSE_LOGDIALOG=no'
6826 fi
6827
6828else
6829
6830 LINE=`grep "wxUSE_LOGDIALOG" ${wx_arg_cache_file}`
6831 if test "x$LINE" != x ; then
6832 eval "DEFAULT_$LINE"
6833 else
6834 no_cache=1
6835 fi
6836
6837 ac_cv_use_logdialog='wxUSE_LOGDIALOG='$DEFAULT_wxUSE_LOGDIALOG
6838
6839fi;
6840
6841 eval "$ac_cv_use_logdialog"
6842 if test "$no_cache" != 1; then
6843 echo $ac_cv_use_logdialog >> ${wx_arg_cache_file}.tmp
6844 fi
6845
6846 if test "$wxUSE_LOGDIALOG" = yes; then
6847 echo "$as_me:$LINENO: result: yes" >&5
6848echo "${ECHO_T}yes" >&6
6849 else
6850 echo "$as_me:$LINENO: result: no" >&5
6851echo "${ECHO_T}no" >&6
6852 fi
6853
6854
646b6ec1
VS
6855 enablestring=
6856 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-webkit" >&5
6857echo $ECHO_N "checking for --${enablestring:-enable}-webkit... $ECHO_C" >&6
6858 no_cache=0
6859 # Check whether --enable-webkit or --disable-webkit was given.
6860if test "${enable_webkit+set}" = set; then
6861 enableval="$enable_webkit"
6862
6863 if test "$enableval" = yes; then
6864 ac_cv_use_webkit='wxUSE_WEBKIT=yes'
6865 else
6866 ac_cv_use_webkit='wxUSE_WEBKIT=no'
6867 fi
6868
6869else
6870
6871 LINE=`grep "wxUSE_WEBKIT" ${wx_arg_cache_file}`
6872 if test "x$LINE" != x ; then
6873 eval "DEFAULT_$LINE"
6874 else
6875 no_cache=1
6876 fi
6877
6878 ac_cv_use_webkit='wxUSE_WEBKIT='$DEFAULT_wxUSE_WEBKIT
6879
6880fi;
6881
6882 eval "$ac_cv_use_webkit"
6883 if test "$no_cache" != 1; then
6884 echo $ac_cv_use_webkit >> ${wx_arg_cache_file}.tmp
6885 fi
6886
6887 if test "$wxUSE_WEBKIT" = yes; then
6888 echo "$as_me:$LINENO: result: yes" >&5
6889echo "${ECHO_T}yes" >&6
6890 else
6891 echo "$as_me:$LINENO: result: no" >&5
6892echo "${ECHO_T}no" >&6
6893 fi
6894
6895
a848cd7e
SC
6896
6897 enablestring=
6898 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-postscript" >&5
6899echo $ECHO_N "checking for --${enablestring:-enable}-postscript... $ECHO_C" >&6
6900 no_cache=0
6901 # Check whether --enable-postscript or --disable-postscript was given.
6902if test "${enable_postscript+set}" = set; then
6903 enableval="$enable_postscript"
6904
6905 if test "$enableval" = yes; then
6906 ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes'
6907 else
6908 ac_cv_use_postscript='wxUSE_POSTSCRIPT=no'
6909 fi
6910
6911else
6912
6913 LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}`
6914 if test "x$LINE" != x ; then
6915 eval "DEFAULT_$LINE"
6916 else
6917 no_cache=1
6918 fi
6919
6920 ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT
6921
6922fi;
6923
6924 eval "$ac_cv_use_postscript"
6925 if test "$no_cache" != 1; then
6926 echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp
6927 fi
6928
6929 if test "$wxUSE_POSTSCRIPT" = yes; then
6930 echo "$as_me:$LINENO: result: yes" >&5
6931echo "${ECHO_T}yes" >&6
6932 else
6933 echo "$as_me:$LINENO: result: no" >&5
6934echo "${ECHO_T}no" >&6
6935 fi
6936
6937
6938
6939
6940
6941 enablestring=
6942 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-prologio" >&5
6943echo $ECHO_N "checking for --${enablestring:-enable}-prologio... $ECHO_C" >&6
6944 no_cache=0
6945 # Check whether --enable-prologio or --disable-prologio was given.
6946if test "${enable_prologio+set}" = set; then
6947 enableval="$enable_prologio"
6948
6949 if test "$enableval" = yes; then
6950 ac_cv_use_prologio='wxUSE_PROLOGIO=yes'
6951 else
6952 ac_cv_use_prologio='wxUSE_PROLOGIO=no'
6953 fi
6954
6955else
6956
6957 LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}`
6958 if test "x$LINE" != x ; then
6959 eval "DEFAULT_$LINE"
6960 else
6961 no_cache=1
6962 fi
6963
6964 ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO
6965
6966fi;
6967
6968 eval "$ac_cv_use_prologio"
6969 if test "$no_cache" != 1; then
6970 echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp
6971 fi
6972
6973 if test "$wxUSE_PROLOGIO" = yes; then
6974 echo "$as_me:$LINENO: result: yes" >&5
6975echo "${ECHO_T}yes" >&6
6976 else
6977 echo "$as_me:$LINENO: result: no" >&5
6978echo "${ECHO_T}no" >&6
6979 fi
6980
6981
6982 enablestring=
6983 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-resources" >&5
6984echo $ECHO_N "checking for --${enablestring:-enable}-resources... $ECHO_C" >&6
6985 no_cache=0
6986 # Check whether --enable-resources or --disable-resources was given.
6987if test "${enable_resources+set}" = set; then
6988 enableval="$enable_resources"
6989
6990 if test "$enableval" = yes; then
6991 ac_cv_use_resources='wxUSE_RESOURCES=yes'
6992 else
6993 ac_cv_use_resources='wxUSE_RESOURCES=no'
6994 fi
6995
6996else
6997
6998 LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}`
6999 if test "x$LINE" != x ; then
7000 eval "DEFAULT_$LINE"
7001 else
7002 no_cache=1
7003 fi
7004
7005 ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES
7006
7007fi;
7008
7009 eval "$ac_cv_use_resources"
7010 if test "$no_cache" != 1; then
7011 echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp
7012 fi
7013
7014 if test "$wxUSE_RESOURCES" = yes; then
7015 echo "$as_me:$LINENO: result: yes" >&5
7016echo "${ECHO_T}yes" >&6
7017 else
7018 echo "$as_me:$LINENO: result: no" >&5
7019echo "${ECHO_T}no" >&6
7020 fi
7021
7022
7023
7024
7025 enablestring=
7026 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-clipboard" >&5
7027echo $ECHO_N "checking for --${enablestring:-enable}-clipboard... $ECHO_C" >&6
7028 no_cache=0
7029 # Check whether --enable-clipboard or --disable-clipboard was given.
7030if test "${enable_clipboard+set}" = set; then
7031 enableval="$enable_clipboard"
7032
7033 if test "$enableval" = yes; then
7034 ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes'
7035 else
7036 ac_cv_use_clipboard='wxUSE_CLIPBOARD=no'
7037 fi
7038
7039else
7040
7041 LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}`
7042 if test "x$LINE" != x ; then
7043 eval "DEFAULT_$LINE"
7044 else
7045 no_cache=1
7046 fi
7047
7048 ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD
7049
7050fi;
7051
7052 eval "$ac_cv_use_clipboard"
7053 if test "$no_cache" != 1; then
7054 echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp
7055 fi
7056
7057 if test "$wxUSE_CLIPBOARD" = yes; then
7058 echo "$as_me:$LINENO: result: yes" >&5
7059echo "${ECHO_T}yes" >&6
7060 else
7061 echo "$as_me:$LINENO: result: no" >&5
7062echo "${ECHO_T}no" >&6
7063 fi
7064
7065
7066 enablestring=
7067 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dnd" >&5
7068echo $ECHO_N "checking for --${enablestring:-enable}-dnd... $ECHO_C" >&6
7069 no_cache=0
7070 # Check whether --enable-dnd or --disable-dnd was given.
7071if test "${enable_dnd+set}" = set; then
7072 enableval="$enable_dnd"
7073
7074 if test "$enableval" = yes; then
7075 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes'
7076 else
7077 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no'
7078 fi
7079
7080else
7081
7082 LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}`
7083 if test "x$LINE" != x ; then
7084 eval "DEFAULT_$LINE"
7085 else
7086 no_cache=1
7087 fi
7088
7089 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP
7090
7091fi;
7092
7093 eval "$ac_cv_use_dnd"
7094 if test "$no_cache" != 1; then
7095 echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp
7096 fi
7097
7098 if test "$wxUSE_DRAG_AND_DROP" = yes; then
7099 echo "$as_me:$LINENO: result: yes" >&5
7100echo "${ECHO_T}yes" >&6
7101 else
7102 echo "$as_me:$LINENO: result: no" >&5
7103echo "${ECHO_T}no" >&6
7104 fi
7105
7106
7107 enablestring=
7108 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5
7109echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6
7110 no_cache=0
7111 # Check whether --enable-metafile or --disable-metafile was given.
7112if test "${enable_metafile+set}" = set; then
7113 enableval="$enable_metafile"
7114
7115 if test "$enableval" = yes; then
7116 ac_cv_use_metafile='wxUSE_METAFILE=yes'
7117 else
7118 ac_cv_use_metafile='wxUSE_METAFILE=no'
7119 fi
7120
7121else
7122
7123 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
7124 if test "x$LINE" != x ; then
7125 eval "DEFAULT_$LINE"
7126 else
7127 no_cache=1
7128 fi
7129
7130 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
7131
7132fi;
7133
7134 eval "$ac_cv_use_metafile"
7135 if test "$no_cache" != 1; then
7136 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
7137 fi
7138
7139 if test "$wxUSE_METAFILE" = yes; then
7140 echo "$as_me:$LINENO: result: yes" >&5
7141echo "${ECHO_T}yes" >&6
7142 else
7143 echo "$as_me:$LINENO: result: no" >&5
7144echo "${ECHO_T}no" >&6
7145 fi
7146
7147
7148
7149
7150
7151 enablestring=
7152 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-controls" >&5
7153echo $ECHO_N "checking for --${enablestring:-enable}-controls... $ECHO_C" >&6
7154 no_cache=0
7155 # Check whether --enable-controls or --disable-controls was given.
7156if test "${enable_controls+set}" = set; then
7157 enableval="$enable_controls"
7158
7159 if test "$enableval" = yes; then
7160 ac_cv_use_controls='wxUSE_CONTROLS=yes'
7161 else
7162 ac_cv_use_controls='wxUSE_CONTROLS=no'
7163 fi
7164
7165else
7166
7167 LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}`
7168 if test "x$LINE" != x ; then
7169 eval "DEFAULT_$LINE"
7170 else
7171 no_cache=1
7172 fi
7173
7174 ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS
7175
7176fi;
7177
7178 eval "$ac_cv_use_controls"
7179 if test "$no_cache" != 1; then
7180 echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp
7181 fi
7182
7183 if test "$wxUSE_CONTROLS" = yes; then
7184 echo "$as_me:$LINENO: result: yes" >&5
7185echo "${ECHO_T}yes" >&6
7186 else
7187 echo "$as_me:$LINENO: result: no" >&5
7188echo "${ECHO_T}no" >&6
7189 fi
7190
7191
7192if test "$wxUSE_CONTROLS" = "yes"; then
7193 DEFAULT_wxUSE_ACCEL=yes
7194 DEFAULT_wxUSE_BMPBUTTON=yes
7195 DEFAULT_wxUSE_BUTTON=yes
da98e9be 7196 DEFAULT_wxUSE_CALCTRL=yes
a848cd7e
SC
7197 DEFAULT_wxUSE_CARET=yes
7198 DEFAULT_wxUSE_COMBOBOX=yes
7199 DEFAULT_wxUSE_CHECKBOX=yes
7200 DEFAULT_wxUSE_CHECKLISTBOX=yes
7201 DEFAULT_wxUSE_CHOICE=yes
92bbdbcd 7202 DEFAULT_wxUSE_CHOICEBOOK=yes
da98e9be 7203 DEFAULT_wxUSE_DATEPICKCTRL=yes
a848cd7e
SC
7204 DEFAULT_wxUSE_GAUGE=yes
7205 DEFAULT_wxUSE_GRID=yes
7206 DEFAULT_wxUSE_IMAGLIST=yes
7207 DEFAULT_wxUSE_LISTBOOK=yes
7208 DEFAULT_wxUSE_LISTBOX=yes
7209 DEFAULT_wxUSE_LISTCTRL=yes
7210 DEFAULT_wxUSE_NOTEBOOK=yes
7211 DEFAULT_wxUSE_RADIOBOX=yes
7212 DEFAULT_wxUSE_RADIOBTN=yes
7213 DEFAULT_wxUSE_SASH=yes
7214 DEFAULT_wxUSE_SCROLLBAR=yes
7215 DEFAULT_wxUSE_SLIDER=yes
7216 DEFAULT_wxUSE_SPINBTN=yes
7217 DEFAULT_wxUSE_SPINCTRL=yes
7218 DEFAULT_wxUSE_SPLITTER=yes
7219 DEFAULT_wxUSE_STATBMP=yes
7220 DEFAULT_wxUSE_STATBOX=yes
7221 DEFAULT_wxUSE_STATLINE=yes
7222 DEFAULT_wxUSE_STATUSBAR=yes
7223 DEFAULT_wxUSE_TAB_DIALOG=yes
7224 DEFAULT_wxUSE_TOGGLEBTN=yes
7225 DEFAULT_wxUSE_TOOLBAR=yes
7226 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
7227 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
7228 DEFAULT_wxUSE_TOOLTIPS=yes
7229 DEFAULT_wxUSE_TREECTRL=yes
7230 DEFAULT_wxUSE_POPUPWIN=yes
7231 DEFAULT_wxUSE_TIPWINDOW=yes
7232elif test "$wxUSE_CONTROLS" = "no"; then
7233 DEFAULT_wxUSE_ACCEL=no
7234 DEFAULT_wxUSE_BMPBUTTON=no
7235 DEFAULT_wxUSE_BUTTON=no
7236 DEFAULT_wxUSE_CALCTRL=no
7237 DEFAULT_wxUSE_CARET=no
7238 DEFAULT_wxUSE_COMBOBOX=no
7239 DEFAULT_wxUSE_CHECKBOX=no
7240 DEFAULT_wxUSE_CHECKLISTBOX=no
7241 DEFAULT_wxUSE_CHOICE=no
92bbdbcd 7242 DEFAULT_wxUSE_CHOICEBOOK=no
da98e9be 7243 DEFAULT_wxUSE_DATEPICKCTRL=no
a848cd7e
SC
7244 DEFAULT_wxUSE_GAUGE=no
7245 DEFAULT_wxUSE_GRID=no
7246 DEFAULT_wxUSE_IMAGLIST=no
7247 DEFAULT_wxUSE_LISTBOOK=no
7248 DEFAULT_wxUSE_LISTBOX=no
7249 DEFAULT_wxUSE_LISTCTRL=no
7250 DEFAULT_wxUSE_NOTEBOOK=no
7251 DEFAULT_wxUSE_RADIOBOX=no
7252 DEFAULT_wxUSE_RADIOBTN=no
7253 DEFAULT_wxUSE_SASH=no
7254 DEFAULT_wxUSE_SCROLLBAR=no
7255 DEFAULT_wxUSE_SLIDER=no
7256 DEFAULT_wxUSE_SPINBTN=no
7257 DEFAULT_wxUSE_SPINCTRL=no
7258 DEFAULT_wxUSE_SPLITTER=no
7259 DEFAULT_wxUSE_STATBMP=no
7260 DEFAULT_wxUSE_STATBOX=no
7261 DEFAULT_wxUSE_STATLINE=no
7262 DEFAULT_wxUSE_STATUSBAR=no
7263 DEFAULT_wxUSE_TAB_DIALOG=no
7264 DEFAULT_wxUSE_TOGGLEBTN=no
7265 DEFAULT_wxUSE_TOOLBAR=no
7266 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
7267 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
7268 DEFAULT_wxUSE_TOOLTIPS=no
7269 DEFAULT_wxUSE_TREECTRL=no
7270 DEFAULT_wxUSE_POPUPWIN=no
7271 DEFAULT_wxUSE_TIPWINDOW=no
7272fi
7273
a848cd7e
SC
7274
7275 enablestring=
7276 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accel" >&5
7277echo $ECHO_N "checking for --${enablestring:-enable}-accel... $ECHO_C" >&6
7278 no_cache=0
7279 # Check whether --enable-accel or --disable-accel was given.
7280if test "${enable_accel+set}" = set; then
7281 enableval="$enable_accel"
7282
7283 if test "$enableval" = yes; then
7284 ac_cv_use_accel='wxUSE_ACCEL=yes'
7285 else
7286 ac_cv_use_accel='wxUSE_ACCEL=no'
7287 fi
7288
7289else
7290
7291 LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}`
7292 if test "x$LINE" != x ; then
7293 eval "DEFAULT_$LINE"
7294 else
7295 no_cache=1
7296 fi
7297
7298 ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL
7299
7300fi;
7301
7302 eval "$ac_cv_use_accel"
7303 if test "$no_cache" != 1; then
7304 echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp
7305 fi
7306
7307 if test "$wxUSE_ACCEL" = yes; then
7308 echo "$as_me:$LINENO: result: yes" >&5
7309echo "${ECHO_T}yes" >&6
7310 else
7311 echo "$as_me:$LINENO: result: no" >&5
7312echo "${ECHO_T}no" >&6
7313 fi
7314
7315
7316 enablestring=
7317 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-button" >&5
7318echo $ECHO_N "checking for --${enablestring:-enable}-button... $ECHO_C" >&6
7319 no_cache=0
7320 # Check whether --enable-button or --disable-button was given.
7321if test "${enable_button+set}" = set; then
7322 enableval="$enable_button"
7323
7324 if test "$enableval" = yes; then
7325 ac_cv_use_button='wxUSE_BUTTON=yes'
7326 else
7327 ac_cv_use_button='wxUSE_BUTTON=no'
7328 fi
7329
7330else
7331
7332 LINE=`grep "wxUSE_BUTTON" ${wx_arg_cache_file}`
7333 if test "x$LINE" != x ; then
7334 eval "DEFAULT_$LINE"
7335 else
7336 no_cache=1
7337 fi
7338
7339 ac_cv_use_button='wxUSE_BUTTON='$DEFAULT_wxUSE_BUTTON
7340
7341fi;
7342
7343 eval "$ac_cv_use_button"
7344 if test "$no_cache" != 1; then
7345 echo $ac_cv_use_button >> ${wx_arg_cache_file}.tmp
7346 fi
7347
7348 if test "$wxUSE_BUTTON" = yes; then
7349 echo "$as_me:$LINENO: result: yes" >&5
7350echo "${ECHO_T}yes" >&6
7351 else
7352 echo "$as_me:$LINENO: result: no" >&5
7353echo "${ECHO_T}no" >&6
7354 fi
7355
7356
7357 enablestring=
7358 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-bmpbutton" >&5
7359echo $ECHO_N "checking for --${enablestring:-enable}-bmpbutton... $ECHO_C" >&6
7360 no_cache=0
7361 # Check whether --enable-bmpbutton or --disable-bmpbutton was given.
7362if test "${enable_bmpbutton+set}" = set; then
7363 enableval="$enable_bmpbutton"
7364
7365 if test "$enableval" = yes; then
7366 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes'
7367 else
7368 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no'
7369 fi
7370
7371else
7372
7373 LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}`
7374 if test "x$LINE" != x ; then
7375 eval "DEFAULT_$LINE"
7376 else
7377 no_cache=1
7378 fi
7379
7380 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON
7381
7382fi;
7383
7384 eval "$ac_cv_use_bmpbutton"
7385 if test "$no_cache" != 1; then
7386 echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp
7387 fi
7388
7389 if test "$wxUSE_BMPBUTTON" = yes; then
7390 echo "$as_me:$LINENO: result: yes" >&5
7391echo "${ECHO_T}yes" >&6
7392 else
7393 echo "$as_me:$LINENO: result: no" >&5
7394echo "${ECHO_T}no" >&6
7395 fi
7396
7397
7398 enablestring=
7399 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-calendar" >&5
7400echo $ECHO_N "checking for --${enablestring:-enable}-calendar... $ECHO_C" >&6
7401 no_cache=0
7402 # Check whether --enable-calendar or --disable-calendar was given.
7403if test "${enable_calendar+set}" = set; then
7404 enableval="$enable_calendar"
7405
7406 if test "$enableval" = yes; then
7407 ac_cv_use_calendar='wxUSE_CALCTRL=yes'
7408 else
7409 ac_cv_use_calendar='wxUSE_CALCTRL=no'
7410 fi
7411
7412else
7413
7414 LINE=`grep "wxUSE_CALCTRL" ${wx_arg_cache_file}`
7415 if test "x$LINE" != x ; then
7416 eval "DEFAULT_$LINE"
7417 else
7418 no_cache=1
7419 fi
7420
7421 ac_cv_use_calendar='wxUSE_CALCTRL='$DEFAULT_wxUSE_CALCTRL
7422
7423fi;
7424
7425 eval "$ac_cv_use_calendar"
7426 if test "$no_cache" != 1; then
7427 echo $ac_cv_use_calendar >> ${wx_arg_cache_file}.tmp
7428 fi
7429
7430 if test "$wxUSE_CALCTRL" = yes; then
7431 echo "$as_me:$LINENO: result: yes" >&5
7432echo "${ECHO_T}yes" >&6
7433 else
7434 echo "$as_me:$LINENO: result: no" >&5
7435echo "${ECHO_T}no" >&6
7436 fi
7437
7438
7439 enablestring=
7440 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-caret" >&5
7441echo $ECHO_N "checking for --${enablestring:-enable}-caret... $ECHO_C" >&6
7442 no_cache=0
7443 # Check whether --enable-caret or --disable-caret was given.
7444if test "${enable_caret+set}" = set; then
7445 enableval="$enable_caret"
7446
7447 if test "$enableval" = yes; then
7448 ac_cv_use_caret='wxUSE_CARET=yes'
7449 else
7450 ac_cv_use_caret='wxUSE_CARET=no'
7451 fi
7452
7453else
7454
7455 LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}`
7456 if test "x$LINE" != x ; then
7457 eval "DEFAULT_$LINE"
7458 else
7459 no_cache=1
7460 fi
7461
7462 ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET
7463
7464fi;
7465
7466 eval "$ac_cv_use_caret"
7467 if test "$no_cache" != 1; then
7468 echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp
7469 fi
7470
7471 if test "$wxUSE_CARET" = yes; then
7472 echo "$as_me:$LINENO: result: yes" >&5
7473echo "${ECHO_T}yes" >&6
7474 else
7475 echo "$as_me:$LINENO: result: no" >&5
7476echo "${ECHO_T}no" >&6
7477 fi
7478
7479
7480 enablestring=
7481 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checkbox" >&5
7482echo $ECHO_N "checking for --${enablestring:-enable}-checkbox... $ECHO_C" >&6
7483 no_cache=0
7484 # Check whether --enable-checkbox or --disable-checkbox was given.
7485if test "${enable_checkbox+set}" = set; then
7486 enableval="$enable_checkbox"
7487
7488 if test "$enableval" = yes; then
7489 ac_cv_use_checkbox='wxUSE_CHECKBOX=yes'
7490 else
7491 ac_cv_use_checkbox='wxUSE_CHECKBOX=no'
7492 fi
7493
7494else
7495
7496 LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}`
7497 if test "x$LINE" != x ; then
7498 eval "DEFAULT_$LINE"
7499 else
7500 no_cache=1
7501 fi
7502
7503 ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX
7504
7505fi;
7506
7507 eval "$ac_cv_use_checkbox"
7508 if test "$no_cache" != 1; then
7509 echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp
7510 fi
7511
7512 if test "$wxUSE_CHECKBOX" = yes; then
7513 echo "$as_me:$LINENO: result: yes" >&5
7514echo "${ECHO_T}yes" >&6
7515 else
7516 echo "$as_me:$LINENO: result: no" >&5
7517echo "${ECHO_T}no" >&6
7518 fi
7519
7520
7521 enablestring=
7522 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checklst" >&5
7523echo $ECHO_N "checking for --${enablestring:-enable}-checklst... $ECHO_C" >&6
7524 no_cache=0
7525 # Check whether --enable-checklst or --disable-checklst was given.
7526if test "${enable_checklst+set}" = set; then
7527 enableval="$enable_checklst"
7528
7529 if test "$enableval" = yes; then
7530 ac_cv_use_checklst='wxUSE_CHECKLST=yes'
7531 else
7532 ac_cv_use_checklst='wxUSE_CHECKLST=no'
7533 fi
7534
7535else
7536
7537 LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}`
7538 if test "x$LINE" != x ; then
7539 eval "DEFAULT_$LINE"
7540 else
7541 no_cache=1
7542 fi
7543
7544 ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST
7545
7546fi;
7547
7548 eval "$ac_cv_use_checklst"
7549 if test "$no_cache" != 1; then
7550 echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp
7551 fi
7552
7553 if test "$wxUSE_CHECKLST" = yes; then
7554 echo "$as_me:$LINENO: result: yes" >&5
7555echo "${ECHO_T}yes" >&6
7556 else
7557 echo "$as_me:$LINENO: result: no" >&5
7558echo "${ECHO_T}no" >&6
7559 fi
7560
7561
7562 enablestring=
7563 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choice" >&5
7564echo $ECHO_N "checking for --${enablestring:-enable}-choice... $ECHO_C" >&6
7565 no_cache=0
7566 # Check whether --enable-choice or --disable-choice was given.
7567if test "${enable_choice+set}" = set; then
7568 enableval="$enable_choice"
7569
7570 if test "$enableval" = yes; then
7571 ac_cv_use_choice='wxUSE_CHOICE=yes'
7572 else
7573 ac_cv_use_choice='wxUSE_CHOICE=no'
7574 fi
7575
7576else
7577
7578 LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}`
7579 if test "x$LINE" != x ; then
7580 eval "DEFAULT_$LINE"
7581 else
7582 no_cache=1
7583 fi
7584
7585 ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE
7586
7587fi;
7588
7589 eval "$ac_cv_use_choice"
7590 if test "$no_cache" != 1; then
7591 echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp
7592 fi
7593
7594 if test "$wxUSE_CHOICE" = yes; then
7595 echo "$as_me:$LINENO: result: yes" >&5
7596echo "${ECHO_T}yes" >&6
7597 else
7598 echo "$as_me:$LINENO: result: no" >&5
7599echo "${ECHO_T}no" >&6
7600 fi
7601
7602
92bbdbcd
WS
7603 enablestring=
7604 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicebook" >&5
7605echo $ECHO_N "checking for --${enablestring:-enable}-choicebook... $ECHO_C" >&6
7606 no_cache=0
7607 # Check whether --enable-choicebook or --disable-choicebook was given.
7608if test "${enable_choicebook+set}" = set; then
7609 enableval="$enable_choicebook"
7610
7611 if test "$enableval" = yes; then
7612 ac_cv_use_choicebook='wxUSE_CHOICEBOOK=yes'
7613 else
7614 ac_cv_use_choicebook='wxUSE_CHOICEBOOK=no'
7615 fi
7616
7617else
7618
7619 LINE=`grep "wxUSE_CHOICEBOOK" ${wx_arg_cache_file}`
7620 if test "x$LINE" != x ; then
7621 eval "DEFAULT_$LINE"
7622 else
7623 no_cache=1
7624 fi
7625
7626 ac_cv_use_choicebook='wxUSE_CHOICEBOOK='$DEFAULT_wxUSE_CHOICEBOOK
7627
7628fi;
7629
7630 eval "$ac_cv_use_choicebook"
7631 if test "$no_cache" != 1; then
7632 echo $ac_cv_use_choicebook >> ${wx_arg_cache_file}.tmp
7633 fi
7634
7635 if test "$wxUSE_CHOICEBOOK" = yes; then
7636 echo "$as_me:$LINENO: result: yes" >&5
7637echo "${ECHO_T}yes" >&6
7638 else
7639 echo "$as_me:$LINENO: result: no" >&5
7640echo "${ECHO_T}no" >&6
7641 fi
7642
7643
a848cd7e
SC
7644 enablestring=
7645 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-combobox" >&5
7646echo $ECHO_N "checking for --${enablestring:-enable}-combobox... $ECHO_C" >&6
7647 no_cache=0
7648 # Check whether --enable-combobox or --disable-combobox was given.
7649if test "${enable_combobox+set}" = set; then
7650 enableval="$enable_combobox"
7651
7652 if test "$enableval" = yes; then
7653 ac_cv_use_combobox='wxUSE_COMBOBOX=yes'
7654 else
7655 ac_cv_use_combobox='wxUSE_COMBOBOX=no'
7656 fi
7657
7658else
7659
7660 LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}`
7661 if test "x$LINE" != x ; then
7662 eval "DEFAULT_$LINE"
7663 else
7664 no_cache=1
7665 fi
7666
7667 ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX
7668
7669fi;
7670
7671 eval "$ac_cv_use_combobox"
7672 if test "$no_cache" != 1; then
7673 echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp
7674 fi
7675
7676 if test "$wxUSE_COMBOBOX" = yes; then
7677 echo "$as_me:$LINENO: result: yes" >&5
7678echo "${ECHO_T}yes" >&6
7679 else
7680 echo "$as_me:$LINENO: result: no" >&5
7681echo "${ECHO_T}no" >&6
7682 fi
7683
7684
da98e9be
VZ
7685 enablestring=
7686 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-datepick" >&5
7687echo $ECHO_N "checking for --${enablestring:-enable}-datepick... $ECHO_C" >&6
7688 no_cache=0
7689 # Check whether --enable-datepick or --disable-datepick was given.
7690if test "${enable_datepick+set}" = set; then
7691 enableval="$enable_datepick"
7692
7693 if test "$enableval" = yes; then
7694 ac_cv_use_datepick='wxUSE_DATEPICKCTRL=yes'
7695 else
7696 ac_cv_use_datepick='wxUSE_DATEPICKCTRL=no'
7697 fi
7698
7699else
7700
7701 LINE=`grep "wxUSE_DATEPICKCTRL" ${wx_arg_cache_file}`
7702 if test "x$LINE" != x ; then
7703 eval "DEFAULT_$LINE"
7704 else
7705 no_cache=1
7706 fi
7707
7708 ac_cv_use_datepick='wxUSE_DATEPICKCTRL='$DEFAULT_wxUSE_DATEPICKCTRL
7709
7710fi;
7711
7712 eval "$ac_cv_use_datepick"
7713 if test "$no_cache" != 1; then
7714 echo $ac_cv_use_datepick >> ${wx_arg_cache_file}.tmp
7715 fi
7716
7717 if test "$wxUSE_DATEPICKCTRL" = yes; then
7718 echo "$as_me:$LINENO: result: yes" >&5
7719echo "${ECHO_T}yes" >&6
7720 else
7721 echo "$as_me:$LINENO: result: no" >&5
7722echo "${ECHO_T}no" >&6
7723 fi
7724
7725
a848cd7e
SC
7726 enablestring=
7727 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-display" >&5
7728echo $ECHO_N "checking for --${enablestring:-enable}-display... $ECHO_C" >&6
7729 no_cache=0
7730 # Check whether --enable-display or --disable-display was given.
7731if test "${enable_display+set}" = set; then
7732 enableval="$enable_display"
7733
7734 if test "$enableval" = yes; then
7735 ac_cv_use_display='wxUSE_DISPLAY=yes'
7736 else
7737 ac_cv_use_display='wxUSE_DISPLAY=no'
7738 fi
7739
7740else
7741
7742 LINE=`grep "wxUSE_DISPLAY" ${wx_arg_cache_file}`
7743 if test "x$LINE" != x ; then
7744 eval "DEFAULT_$LINE"
7745 else
7746 no_cache=1
7747 fi
7748
7749 ac_cv_use_display='wxUSE_DISPLAY='$DEFAULT_wxUSE_DISPLAY
7750
7751fi;
7752
7753 eval "$ac_cv_use_display"
7754 if test "$no_cache" != 1; then
7755 echo $ac_cv_use_display >> ${wx_arg_cache_file}.tmp
7756 fi
7757
7758 if test "$wxUSE_DISPLAY" = yes; then
7759 echo "$as_me:$LINENO: result: yes" >&5
7760echo "${ECHO_T}yes" >&6
7761 else
7762 echo "$as_me:$LINENO: result: no" >&5
7763echo "${ECHO_T}no" >&6
7764 fi
7765
7766
7767 enablestring=
7768 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gauge" >&5
7769echo $ECHO_N "checking for --${enablestring:-enable}-gauge... $ECHO_C" >&6
7770 no_cache=0
7771 # Check whether --enable-gauge or --disable-gauge was given.
7772if test "${enable_gauge+set}" = set; then
7773 enableval="$enable_gauge"
7774
7775 if test "$enableval" = yes; then
7776 ac_cv_use_gauge='wxUSE_GAUGE=yes'
7777 else
7778 ac_cv_use_gauge='wxUSE_GAUGE=no'
7779 fi
7780
7781else
7782
7783 LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}`
7784 if test "x$LINE" != x ; then
7785 eval "DEFAULT_$LINE"
7786 else
7787 no_cache=1
7788 fi
7789
7790 ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE
7791
7792fi;
7793
7794 eval "$ac_cv_use_gauge"
7795 if test "$no_cache" != 1; then
7796 echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp
7797 fi
7798
7799 if test "$wxUSE_GAUGE" = yes; then
7800 echo "$as_me:$LINENO: result: yes" >&5
7801echo "${ECHO_T}yes" >&6
7802 else
7803 echo "$as_me:$LINENO: result: no" >&5
7804echo "${ECHO_T}no" >&6
7805 fi
7806
7807
7808 enablestring=
7809 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-grid" >&5
7810echo $ECHO_N "checking for --${enablestring:-enable}-grid... $ECHO_C" >&6
7811 no_cache=0
7812 # Check whether --enable-grid or --disable-grid was given.
7813if test "${enable_grid+set}" = set; then
7814 enableval="$enable_grid"
7815
7816 if test "$enableval" = yes; then
7817 ac_cv_use_grid='wxUSE_GRID=yes'
7818 else
7819 ac_cv_use_grid='wxUSE_GRID=no'
7820 fi
7821
7822else
7823
7824 LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}`
7825 if test "x$LINE" != x ; then
7826 eval "DEFAULT_$LINE"
7827 else
7828 no_cache=1
7829 fi
7830
7831 ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID
7832
7833fi;
7834
7835 eval "$ac_cv_use_grid"
7836 if test "$no_cache" != 1; then
7837 echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp
7838 fi
7839
7840 if test "$wxUSE_GRID" = yes; then
7841 echo "$as_me:$LINENO: result: yes" >&5
7842echo "${ECHO_T}yes" >&6
7843 else
7844 echo "$as_me:$LINENO: result: no" >&5
7845echo "${ECHO_T}no" >&6
7846 fi
7847
7848
7849 enablestring=
7850 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-imaglist" >&5
7851echo $ECHO_N "checking for --${enablestring:-enable}-imaglist... $ECHO_C" >&6
7852 no_cache=0
7853 # Check whether --enable-imaglist or --disable-imaglist was given.
7854if test "${enable_imaglist+set}" = set; then
7855 enableval="$enable_imaglist"
7856
7857 if test "$enableval" = yes; then
7858 ac_cv_use_imaglist='wxUSE_IMAGLIST=yes'
7859 else
7860 ac_cv_use_imaglist='wxUSE_IMAGLIST=no'
7861 fi
7862
7863else
7864
7865 LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}`
7866 if test "x$LINE" != x ; then
7867 eval "DEFAULT_$LINE"
7868 else
7869 no_cache=1
7870 fi
7871
7872 ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST
7873
7874fi;
7875
7876 eval "$ac_cv_use_imaglist"
7877 if test "$no_cache" != 1; then
7878 echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp
7879 fi
7880
7881 if test "$wxUSE_IMAGLIST" = yes; then
7882 echo "$as_me:$LINENO: result: yes" >&5
7883echo "${ECHO_T}yes" >&6
7884 else
7885 echo "$as_me:$LINENO: result: no" >&5
7886echo "${ECHO_T}no" >&6
7887 fi
7888
7889
7890 enablestring=
7891 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbook" >&5
7892echo $ECHO_N "checking for --${enablestring:-enable}-listbook... $ECHO_C" >&6
7893 no_cache=0
7894 # Check whether --enable-listbook or --disable-listbook was given.
7895if test "${enable_listbook+set}" = set; then
7896 enableval="$enable_listbook"
7897
7898 if test "$enableval" = yes; then
7899 ac_cv_use_listbook='wxUSE_LISTBOOK=yes'
7900 else
7901 ac_cv_use_listbook='wxUSE_LISTBOOK=no'
7902 fi
7903
7904else
7905
7906 LINE=`grep "wxUSE_LISTBOOK" ${wx_arg_cache_file}`
7907 if test "x$LINE" != x ; then
7908 eval "DEFAULT_$LINE"
7909 else
7910 no_cache=1
7911 fi
7912
7913 ac_cv_use_listbook='wxUSE_LISTBOOK='$DEFAULT_wxUSE_LISTBOOK
7914
7915fi;
7916
7917 eval "$ac_cv_use_listbook"
7918 if test "$no_cache" != 1; then
7919 echo $ac_cv_use_listbook >> ${wx_arg_cache_file}.tmp
7920 fi
7921
7922 if test "$wxUSE_LISTBOOK" = yes; then
7923 echo "$as_me:$LINENO: result: yes" >&5
7924echo "${ECHO_T}yes" >&6
7925 else
7926 echo "$as_me:$LINENO: result: no" >&5
7927echo "${ECHO_T}no" >&6
7928 fi
7929
7930
7931 enablestring=
7932 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbox" >&5
7933echo $ECHO_N "checking for --${enablestring:-enable}-listbox... $ECHO_C" >&6
7934 no_cache=0
7935 # Check whether --enable-listbox or --disable-listbox was given.
7936if test "${enable_listbox+set}" = set; then
7937 enableval="$enable_listbox"
7938
7939 if test "$enableval" = yes; then
7940 ac_cv_use_listbox='wxUSE_LISTBOX=yes'
7941 else
7942 ac_cv_use_listbox='wxUSE_LISTBOX=no'
7943 fi
7944
7945else
7946
7947 LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}`
7948 if test "x$LINE" != x ; then
7949 eval "DEFAULT_$LINE"
7950 else
7951 no_cache=1
7952 fi
7953
7954 ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX
7955
7956fi;
7957
7958 eval "$ac_cv_use_listbox"
7959 if test "$no_cache" != 1; then
7960 echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp
7961 fi
7962
7963 if test "$wxUSE_LISTBOX" = yes; then
7964 echo "$as_me:$LINENO: result: yes" >&5
7965echo "${ECHO_T}yes" >&6
7966 else
7967 echo "$as_me:$LINENO: result: no" >&5
7968echo "${ECHO_T}no" >&6
7969 fi
7970
7971
7972 enablestring=
7973 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listctrl" >&5
7974echo $ECHO_N "checking for --${enablestring:-enable}-listctrl... $ECHO_C" >&6
7975 no_cache=0
7976 # Check whether --enable-listctrl or --disable-listctrl was given.
7977if test "${enable_listctrl+set}" = set; then
7978 enableval="$enable_listctrl"
7979
7980 if test "$enableval" = yes; then
7981 ac_cv_use_listctrl='wxUSE_LISTCTRL=yes'
7982 else
7983 ac_cv_use_listctrl='wxUSE_LISTCTRL=no'
7984 fi
7985
7986else
7987
7988 LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}`
7989 if test "x$LINE" != x ; then
7990 eval "DEFAULT_$LINE"
7991 else
7992 no_cache=1
7993 fi
7994
7995 ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL
7996
7997fi;
7998
7999 eval "$ac_cv_use_listctrl"
8000 if test "$no_cache" != 1; then
8001 echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp
8002 fi
8003
8004 if test "$wxUSE_LISTCTRL" = yes; then
8005 echo "$as_me:$LINENO: result: yes" >&5
8006echo "${ECHO_T}yes" >&6
8007 else
8008 echo "$as_me:$LINENO: result: no" >&5
8009echo "${ECHO_T}no" >&6
8010 fi
8011
8012
8013 enablestring=
8014 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-notebook" >&5
8015echo $ECHO_N "checking for --${enablestring:-enable}-notebook... $ECHO_C" >&6
8016 no_cache=0
8017 # Check whether --enable-notebook or --disable-notebook was given.
8018if test "${enable_notebook+set}" = set; then
8019 enableval="$enable_notebook"
8020
8021 if test "$enableval" = yes; then
8022 ac_cv_use_notebook='wxUSE_NOTEBOOK=yes'
8023 else
8024 ac_cv_use_notebook='wxUSE_NOTEBOOK=no'
8025 fi
8026
8027else
8028
8029 LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}`
8030 if test "x$LINE" != x ; then
8031 eval "DEFAULT_$LINE"
8032 else
8033 no_cache=1
8034 fi
8035
8036 ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK
8037
8038fi;
8039
8040 eval "$ac_cv_use_notebook"
8041 if test "$no_cache" != 1; then
8042 echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp
8043 fi
8044
8045 if test "$wxUSE_NOTEBOOK" = yes; then
8046 echo "$as_me:$LINENO: result: yes" >&5
8047echo "${ECHO_T}yes" >&6
8048 else
8049 echo "$as_me:$LINENO: result: no" >&5
8050echo "${ECHO_T}no" >&6
8051 fi
8052
8053
8054 enablestring=
8055 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobox" >&5
8056echo $ECHO_N "checking for --${enablestring:-enable}-radiobox... $ECHO_C" >&6
8057 no_cache=0
8058 # Check whether --enable-radiobox or --disable-radiobox was given.
8059if test "${enable_radiobox+set}" = set; then
8060 enableval="$enable_radiobox"
8061
8062 if test "$enableval" = yes; then
8063 ac_cv_use_radiobox='wxUSE_RADIOBOX=yes'
8064 else
8065 ac_cv_use_radiobox='wxUSE_RADIOBOX=no'
8066 fi
8067
8068else
8069
8070 LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}`
8071 if test "x$LINE" != x ; then
8072 eval "DEFAULT_$LINE"
8073 else
8074 no_cache=1
8075 fi
8076
8077 ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX
8078
8079fi;
8080
8081 eval "$ac_cv_use_radiobox"
8082 if test "$no_cache" != 1; then
8083 echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp
8084 fi
8085
8086 if test "$wxUSE_RADIOBOX" = yes; then
8087 echo "$as_me:$LINENO: result: yes" >&5
8088echo "${ECHO_T}yes" >&6
8089 else
8090 echo "$as_me:$LINENO: result: no" >&5
8091echo "${ECHO_T}no" >&6
8092 fi
8093
8094
8095 enablestring=
8096 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobtn" >&5
8097echo $ECHO_N "checking for --${enablestring:-enable}-radiobtn... $ECHO_C" >&6
8098 no_cache=0
8099 # Check whether --enable-radiobtn or --disable-radiobtn was given.
8100if test "${enable_radiobtn+set}" = set; then
8101 enableval="$enable_radiobtn"
8102
8103 if test "$enableval" = yes; then
8104 ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes'
8105 else
8106 ac_cv_use_radiobtn='wxUSE_RADIOBTN=no'
8107 fi
8108
8109else
8110
8111 LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}`
8112 if test "x$LINE" != x ; then
8113 eval "DEFAULT_$LINE"
8114 else
8115 no_cache=1
8116 fi
8117
8118 ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN
8119
8120fi;
8121
8122 eval "$ac_cv_use_radiobtn"
8123 if test "$no_cache" != 1; then
8124 echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp
8125 fi
8126
8127 if test "$wxUSE_RADIOBTN" = yes; then
8128 echo "$as_me:$LINENO: result: yes" >&5
8129echo "${ECHO_T}yes" >&6
8130 else
8131 echo "$as_me:$LINENO: result: no" >&5
8132echo "${ECHO_T}no" >&6
8133 fi
8134
8135
8136 enablestring=
8137 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sash" >&5
8138echo $ECHO_N "checking for --${enablestring:-enable}-sash... $ECHO_C" >&6
8139 no_cache=0
8140 # Check whether --enable-sash or --disable-sash was given.
8141if test "${enable_sash+set}" = set; then
8142 enableval="$enable_sash"
8143
8144 if test "$enableval" = yes; then
8145 ac_cv_use_sash='wxUSE_SASH=yes'
8146 else
8147 ac_cv_use_sash='wxUSE_SASH=no'
8148 fi
8149
8150else
8151
8152 LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}`
8153 if test "x$LINE" != x ; then
8154 eval "DEFAULT_$LINE"
8155 else
8156 no_cache=1
8157 fi
8158
8159 ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH
8160
8161fi;
8162
8163 eval "$ac_cv_use_sash"
8164 if test "$no_cache" != 1; then
8165 echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp
8166 fi
8167
8168 if test "$wxUSE_SASH" = yes; then
8169 echo "$as_me:$LINENO: result: yes" >&5
8170echo "${ECHO_T}yes" >&6
8171 else
8172 echo "$as_me:$LINENO: result: no" >&5
8173echo "${ECHO_T}no" >&6
8174 fi
8175
8176
8177 enablestring=
8178 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-scrollbar" >&5
8179echo $ECHO_N "checking for --${enablestring:-enable}-scrollbar... $ECHO_C" >&6
8180 no_cache=0
8181 # Check whether --enable-scrollbar or --disable-scrollbar was given.
8182if test "${enable_scrollbar+set}" = set; then
8183 enableval="$enable_scrollbar"
8184
8185 if test "$enableval" = yes; then
8186 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes'
8187 else
8188 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no'
8189 fi
8190
8191else
8192
8193 LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}`
8194 if test "x$LINE" != x ; then
8195 eval "DEFAULT_$LINE"
8196 else
8197 no_cache=1
8198 fi
8199
8200 ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR
8201
8202fi;
8203
8204 eval "$ac_cv_use_scrollbar"
8205 if test "$no_cache" != 1; then
8206 echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp
8207 fi
8208
8209 if test "$wxUSE_SCROLLBAR" = yes; then
8210 echo "$as_me:$LINENO: result: yes" >&5
8211echo "${ECHO_T}yes" >&6
8212 else
8213 echo "$as_me:$LINENO: result: no" >&5
8214echo "${ECHO_T}no" >&6
8215 fi
8216
8217
8218 enablestring=
8219 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-slider" >&5
8220echo $ECHO_N "checking for --${enablestring:-enable}-slider... $ECHO_C" >&6
8221 no_cache=0
8222 # Check whether --enable-slider or --disable-slider was given.
8223if test "${enable_slider+set}" = set; then
8224 enableval="$enable_slider"
8225
8226 if test "$enableval" = yes; then
8227 ac_cv_use_slider='wxUSE_SLIDER=yes'
8228 else
8229 ac_cv_use_slider='wxUSE_SLIDER=no'
8230 fi
8231
8232else
8233
8234 LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}`
8235 if test "x$LINE" != x ; then
8236 eval "DEFAULT_$LINE"
8237 else
8238 no_cache=1
8239 fi
8240
8241 ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER
8242
8243fi;
8244
8245 eval "$ac_cv_use_slider"
8246 if test "$no_cache" != 1; then
8247 echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp
8248 fi
8249
8250 if test "$wxUSE_SLIDER" = yes; then
8251 echo "$as_me:$LINENO: result: yes" >&5
8252echo "${ECHO_T}yes" >&6
8253 else
8254 echo "$as_me:$LINENO: result: no" >&5
8255echo "${ECHO_T}no" >&6
8256 fi
8257
8258
8259 enablestring=
8260 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinbtn" >&5
8261echo $ECHO_N "checking for --${enablestring:-enable}-spinbtn... $ECHO_C" >&6
8262 no_cache=0
8263 # Check whether --enable-spinbtn or --disable-spinbtn was given.
8264if test "${enable_spinbtn+set}" = set; then
8265 enableval="$enable_spinbtn"
8266
8267 if test "$enableval" = yes; then
8268 ac_cv_use_spinbtn='wxUSE_SPINBTN=yes'
8269 else
8270 ac_cv_use_spinbtn='wxUSE_SPINBTN=no'
8271 fi
8272
8273else
8274
8275 LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}`
8276 if test "x$LINE" != x ; then
8277 eval "DEFAULT_$LINE"
8278 else
8279 no_cache=1
8280 fi
8281
8282 ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN
8283
8284fi;
8285
8286 eval "$ac_cv_use_spinbtn"
8287 if test "$no_cache" != 1; then
8288 echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp
8289 fi
8290
8291 if test "$wxUSE_SPINBTN" = yes; then
8292 echo "$as_me:$LINENO: result: yes" >&5
8293echo "${ECHO_T}yes" >&6
8294 else
8295 echo "$as_me:$LINENO: result: no" >&5
8296echo "${ECHO_T}no" >&6
8297 fi
8298
8299
8300 enablestring=
8301 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinctrl" >&5
8302echo $ECHO_N "checking for --${enablestring:-enable}-spinctrl... $ECHO_C" >&6
8303 no_cache=0
8304 # Check whether --enable-spinctrl or --disable-spinctrl was given.
8305if test "${enable_spinctrl+set}" = set; then
8306 enableval="$enable_spinctrl"
8307
8308 if test "$enableval" = yes; then
8309 ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes'
8310 else
8311 ac_cv_use_spinctrl='wxUSE_SPINCTRL=no'
8312 fi
8313
8314else
8315
8316 LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}`
8317 if test "x$LINE" != x ; then
8318 eval "DEFAULT_$LINE"
8319 else
8320 no_cache=1
8321 fi
8322
8323 ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL
8324
8325fi;
8326
8327 eval "$ac_cv_use_spinctrl"
8328 if test "$no_cache" != 1; then
8329 echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp
8330 fi
8331
8332 if test "$wxUSE_SPINCTRL" = yes; then
8333 echo "$as_me:$LINENO: result: yes" >&5
8334echo "${ECHO_T}yes" >&6
8335 else
8336 echo "$as_me:$LINENO: result: no" >&5
8337echo "${ECHO_T}no" >&6
8338 fi
8339
8340
8341 enablestring=
8342 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splitter" >&5
8343echo $ECHO_N "checking for --${enablestring:-enable}-splitter... $ECHO_C" >&6
8344 no_cache=0
8345 # Check whether --enable-splitter or --disable-splitter was given.
8346if test "${enable_splitter+set}" = set; then
8347 enableval="$enable_splitter"
8348
8349 if test "$enableval" = yes; then
8350 ac_cv_use_splitter='wxUSE_SPLITTER=yes'
8351 else
8352 ac_cv_use_splitter='wxUSE_SPLITTER=no'
8353 fi
8354
8355else
8356
8357 LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}`
8358 if test "x$LINE" != x ; then
8359 eval "DEFAULT_$LINE"
8360 else
8361 no_cache=1
8362 fi
8363
8364 ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER
8365
8366fi;
8367
8368 eval "$ac_cv_use_splitter"
8369 if test "$no_cache" != 1; then
8370 echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp
8371 fi
8372
8373 if test "$wxUSE_SPLITTER" = yes; then
8374 echo "$as_me:$LINENO: result: yes" >&5
8375echo "${ECHO_T}yes" >&6
8376 else
8377 echo "$as_me:$LINENO: result: no" >&5
8378echo "${ECHO_T}no" >&6
8379 fi
8380
8381
8382 enablestring=
8383 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbmp" >&5
8384echo $ECHO_N "checking for --${enablestring:-enable}-statbmp... $ECHO_C" >&6
8385 no_cache=0
8386 # Check whether --enable-statbmp or --disable-statbmp was given.
8387if test "${enable_statbmp+set}" = set; then
8388 enableval="$enable_statbmp"
8389
8390 if test "$enableval" = yes; then
8391 ac_cv_use_statbmp='wxUSE_STATBMP=yes'
8392 else
8393 ac_cv_use_statbmp='wxUSE_STATBMP=no'
8394 fi
8395
8396else
8397
8398 LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}`
8399 if test "x$LINE" != x ; then
8400 eval "DEFAULT_$LINE"
8401 else
8402 no_cache=1
8403 fi
8404
8405 ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP
8406
8407fi;
8408
8409 eval "$ac_cv_use_statbmp"
8410 if test "$no_cache" != 1; then
8411 echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp
8412 fi
8413
8414 if test "$wxUSE_STATBMP" = yes; then
8415 echo "$as_me:$LINENO: result: yes" >&5
8416echo "${ECHO_T}yes" >&6
8417 else
8418 echo "$as_me:$LINENO: result: no" >&5
8419echo "${ECHO_T}no" >&6
8420 fi
8421
8422
8423 enablestring=
8424 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbox" >&5
8425echo $ECHO_N "checking for --${enablestring:-enable}-statbox... $ECHO_C" >&6
8426 no_cache=0
8427 # Check whether --enable-statbox or --disable-statbox was given.
8428if test "${enable_statbox+set}" = set; then
8429 enableval="$enable_statbox"
8430
8431 if test "$enableval" = yes; then
8432 ac_cv_use_statbox='wxUSE_STATBOX=yes'
8433 else
8434 ac_cv_use_statbox='wxUSE_STATBOX=no'
8435 fi
8436
8437else
8438
8439 LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}`
8440 if test "x$LINE" != x ; then
8441 eval "DEFAULT_$LINE"
8442 else
8443 no_cache=1
8444 fi
8445
8446 ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX
8447
8448fi;
8449
8450 eval "$ac_cv_use_statbox"
8451 if test "$no_cache" != 1; then
8452 echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp
8453 fi
8454
8455 if test "$wxUSE_STATBOX" = yes; then
8456 echo "$as_me:$LINENO: result: yes" >&5
8457echo "${ECHO_T}yes" >&6
8458 else
8459 echo "$as_me:$LINENO: result: no" >&5
8460echo "${ECHO_T}no" >&6
8461 fi
8462
8463
8464 enablestring=
8465 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statline" >&5
8466echo $ECHO_N "checking for --${enablestring:-enable}-statline... $ECHO_C" >&6
8467 no_cache=0
8468 # Check whether --enable-statline or --disable-statline was given.
8469if test "${enable_statline+set}" = set; then
8470 enableval="$enable_statline"
8471
8472 if test "$enableval" = yes; then
8473 ac_cv_use_statline='wxUSE_STATLINE=yes'
8474 else
8475 ac_cv_use_statline='wxUSE_STATLINE=no'
8476 fi
8477
8478else
8479
8480 LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}`
8481 if test "x$LINE" != x ; then
8482 eval "DEFAULT_$LINE"
8483 else
8484 no_cache=1
8485 fi
8486
8487 ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE
8488
8489fi;
8490
8491 eval "$ac_cv_use_statline"
8492 if test "$no_cache" != 1; then
8493 echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp
8494 fi
8495
8496 if test "$wxUSE_STATLINE" = yes; then
8497 echo "$as_me:$LINENO: result: yes" >&5
8498echo "${ECHO_T}yes" >&6
8499 else
8500 echo "$as_me:$LINENO: result: no" >&5
8501echo "${ECHO_T}no" >&6
8502 fi
8503
8504
8505 enablestring=
8506 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stattext" >&5
8507echo $ECHO_N "checking for --${enablestring:-enable}-stattext... $ECHO_C" >&6
8508 no_cache=0
8509 # Check whether --enable-stattext or --disable-stattext was given.
8510if test "${enable_stattext+set}" = set; then
8511 enableval="$enable_stattext"
8512
8513 if test "$enableval" = yes; then
8514 ac_cv_use_stattext='wxUSE_STATTEXT=yes'
8515 else
8516 ac_cv_use_stattext='wxUSE_STATTEXT=no'
8517 fi
8518
8519else
8520
8521 LINE=`grep "wxUSE_STATTEXT" ${wx_arg_cache_file}`
8522 if test "x$LINE" != x ; then
8523 eval "DEFAULT_$LINE"
8524 else
8525 no_cache=1
8526 fi
8527
8528 ac_cv_use_stattext='wxUSE_STATTEXT='$DEFAULT_wxUSE_STATTEXT
8529
8530fi;
8531
8532 eval "$ac_cv_use_stattext"
8533 if test "$no_cache" != 1; then
8534 echo $ac_cv_use_stattext >> ${wx_arg_cache_file}.tmp
8535 fi
8536
8537 if test "$wxUSE_STATTEXT" = yes; then
8538 echo "$as_me:$LINENO: result: yes" >&5
8539echo "${ECHO_T}yes" >&6
8540 else
8541 echo "$as_me:$LINENO: result: no" >&5
8542echo "${ECHO_T}no" >&6
8543 fi
8544
8545
8546 enablestring=
8547 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statusbar" >&5
8548echo $ECHO_N "checking for --${enablestring:-enable}-statusbar... $ECHO_C" >&6
8549 no_cache=0
8550 # Check whether --enable-statusbar or --disable-statusbar was given.
8551if test "${enable_statusbar+set}" = set; then
8552 enableval="$enable_statusbar"
8553
8554 if test "$enableval" = yes; then
8555 ac_cv_use_statusbar='wxUSE_STATUSBAR=yes'
8556 else
8557 ac_cv_use_statusbar='wxUSE_STATUSBAR=no'
8558 fi
8559
8560else
8561
8562 LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}`
8563 if test "x$LINE" != x ; then
8564 eval "DEFAULT_$LINE"
8565 else
8566 no_cache=1
8567 fi
8568
8569 ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR
8570
8571fi;
8572
8573 eval "$ac_cv_use_statusbar"
8574 if test "$no_cache" != 1; then
8575 echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp
8576 fi
8577
8578 if test "$wxUSE_STATUSBAR" = yes; then
8579 echo "$as_me:$LINENO: result: yes" >&5
8580echo "${ECHO_T}yes" >&6
8581 else
8582 echo "$as_me:$LINENO: result: no" >&5
8583echo "${ECHO_T}no" >&6
8584 fi
8585
8586
8587 enablestring=
8588 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tabdialog" >&5
8589echo $ECHO_N "checking for --${enablestring:-enable}-tabdialog... $ECHO_C" >&6
8590 no_cache=0
8591 # Check whether --enable-tabdialog or --disable-tabdialog was given.
8592if test "${enable_tabdialog+set}" = set; then
8593 enableval="$enable_tabdialog"
8594
8595 if test "$enableval" = yes; then
8596 ac_cv_use_tabdialog='wxUSE_TABDIALOG=yes'
8597 else
8598 ac_cv_use_tabdialog='wxUSE_TABDIALOG=no'
8599 fi
8600
8601else
8602
8603 LINE=`grep "wxUSE_TABDIALOG" ${wx_arg_cache_file}`
8604 if test "x$LINE" != x ; then
8605 eval "DEFAULT_$LINE"
8606 else
8607 no_cache=1
8608 fi
8609
8610 ac_cv_use_tabdialog='wxUSE_TABDIALOG='$DEFAULT_wxUSE_TABDIALOG
8611
8612fi;
8613
8614 eval "$ac_cv_use_tabdialog"
8615 if test "$no_cache" != 1; then
8616 echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp
8617 fi
8618
8619 if test "$wxUSE_TABDIALOG" = yes; then
8620 echo "$as_me:$LINENO: result: yes" >&5
8621echo "${ECHO_T}yes" >&6
8622 else
8623 echo "$as_me:$LINENO: result: no" >&5
8624echo "${ECHO_T}no" >&6
8625 fi
8626
8627
8628 enablestring=
8629 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textctrl" >&5
8630echo $ECHO_N "checking for --${enablestring:-enable}-textctrl... $ECHO_C" >&6
8631 no_cache=0
8632 # Check whether --enable-textctrl or --disable-textctrl was given.
8633if test "${enable_textctrl+set}" = set; then
8634 enableval="$enable_textctrl"
8635
8636 if test "$enableval" = yes; then
8637 ac_cv_use_textctrl='wxUSE_TEXTCTRL=yes'
8638 else
8639 ac_cv_use_textctrl='wxUSE_TEXTCTRL=no'
8640 fi
8641
8642else
8643
8644 LINE=`grep "wxUSE_TEXTCTRL" ${wx_arg_cache_file}`
8645 if test "x$LINE" != x ; then
8646 eval "DEFAULT_$LINE"
8647 else
8648 no_cache=1
8649 fi
8650
8651 ac_cv_use_textctrl='wxUSE_TEXTCTRL='$DEFAULT_wxUSE_TEXTCTRL
8652
8653fi;
8654
8655 eval "$ac_cv_use_textctrl"
8656 if test "$no_cache" != 1; then
8657 echo $ac_cv_use_textctrl >> ${wx_arg_cache_file}.tmp
8658 fi
8659
8660 if test "$wxUSE_TEXTCTRL" = yes; then
8661 echo "$as_me:$LINENO: result: yes" >&5
8662echo "${ECHO_T}yes" >&6
8663 else
8664 echo "$as_me:$LINENO: result: no" >&5
8665echo "${ECHO_T}no" >&6
8666 fi
8667
8668
8669 enablestring=
8670 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-togglebtn" >&5
8671echo $ECHO_N "checking for --${enablestring:-enable}-togglebtn... $ECHO_C" >&6
8672 no_cache=0
8673 # Check whether --enable-togglebtn or --disable-togglebtn was given.
8674if test "${enable_togglebtn+set}" = set; then
8675 enableval="$enable_togglebtn"
8676
8677 if test "$enableval" = yes; then
8678 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes'
8679 else
8680 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=no'
8681 fi
8682
8683else
8684
8685 LINE=`grep "wxUSE_TOGGLEBTN" ${wx_arg_cache_file}`
8686 if test "x$LINE" != x ; then
8687 eval "DEFAULT_$LINE"
8688 else
8689 no_cache=1
8690 fi
8691
8692 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN='$DEFAULT_wxUSE_TOGGLEBTN
8693
8694fi;
8695
8696 eval "$ac_cv_use_togglebtn"
8697 if test "$no_cache" != 1; then
8698 echo $ac_cv_use_togglebtn >> ${wx_arg_cache_file}.tmp
8699 fi
8700
8701 if test "$wxUSE_TOGGLEBTN" = yes; then
8702 echo "$as_me:$LINENO: result: yes" >&5
8703echo "${ECHO_T}yes" >&6
8704 else
8705 echo "$as_me:$LINENO: result: no" >&5
8706echo "${ECHO_T}no" >&6
8707 fi
8708
8709
8710 enablestring=
8711 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-toolbar" >&5
8712echo $ECHO_N "checking for --${enablestring:-enable}-toolbar... $ECHO_C" >&6
8713 no_cache=0
8714 # Check whether --enable-toolbar or --disable-toolbar was given.
8715if test "${enable_toolbar+set}" = set; then
8716 enableval="$enable_toolbar"
8717
8718 if test "$enableval" = yes; then
8719 ac_cv_use_toolbar='wxUSE_TOOLBAR=yes'
8720 else
8721 ac_cv_use_toolbar='wxUSE_TOOLBAR=no'
8722 fi
8723
8724else
8725
8726 LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}`
8727 if test "x$LINE" != x ; then
8728 eval "DEFAULT_$LINE"
8729 else
8730 no_cache=1
8731 fi
8732
8733 ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR
8734
8735fi;
8736
8737 eval "$ac_cv_use_toolbar"
8738 if test "$no_cache" != 1; then
8739 echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp
8740 fi
8741
8742 if test "$wxUSE_TOOLBAR" = yes; then
8743 echo "$as_me:$LINENO: result: yes" >&5
8744echo "${ECHO_T}yes" >&6
8745 else
8746 echo "$as_me:$LINENO: result: no" >&5
8747echo "${ECHO_T}no" >&6
8748 fi
8749
8750
8751 enablestring=
8752 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarnative" >&5
8753echo $ECHO_N "checking for --${enablestring:-enable}-tbarnative... $ECHO_C" >&6
8754 no_cache=0
8755 # Check whether --enable-tbarnative or --disable-tbarnative was given.
8756if test "${enable_tbarnative+set}" = set; then
8757 enableval="$enable_tbarnative"
8758
8759 if test "$enableval" = yes; then
8760 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes'
8761 else
8762 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no'
8763 fi
8764
8765else
8766
8767 LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}`
8768 if test "x$LINE" != x ; then
8769 eval "DEFAULT_$LINE"
8770 else
8771 no_cache=1
8772 fi
8773
8774 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE
8775
8776fi;
8777
8778 eval "$ac_cv_use_tbarnative"
8779 if test "$no_cache" != 1; then
8780 echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp
8781 fi
8782
8783 if test "$wxUSE_TOOLBAR_NATIVE" = yes; then
8784 echo "$as_me:$LINENO: result: yes" >&5
8785echo "${ECHO_T}yes" >&6
8786 else
8787 echo "$as_me:$LINENO: result: no" >&5
8788echo "${ECHO_T}no" >&6
8789 fi
8790
8791
8792 enablestring=
8793 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarsmpl" >&5
8794echo $ECHO_N "checking for --${enablestring:-enable}-tbarsmpl... $ECHO_C" >&6
8795 no_cache=0
8796 # Check whether --enable-tbarsmpl or --disable-tbarsmpl was given.
8797if test "${enable_tbarsmpl+set}" = set; then
8798 enableval="$enable_tbarsmpl"
8799
8800 if test "$enableval" = yes; then
8801 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=yes'
8802 else
8803 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=no'
8804 fi
8805
8806else
8807
8808 LINE=`grep "wxUSE_TOOLBAR_SIMPLE" ${wx_arg_cache_file}`
8809 if test "x$LINE" != x ; then
8810 eval "DEFAULT_$LINE"
8811 else
8812 no_cache=1
8813 fi
8814
8815 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE='$DEFAULT_wxUSE_TOOLBAR_SIMPLE
8816
8817fi;
8818
8819 eval "$ac_cv_use_tbarsmpl"
8820 if test "$no_cache" != 1; then
8821 echo $ac_cv_use_tbarsmpl >> ${wx_arg_cache_file}.tmp
8822 fi
8823
8824 if test "$wxUSE_TOOLBAR_SIMPLE" = yes; then
8825 echo "$as_me:$LINENO: result: yes" >&5
8826echo "${ECHO_T}yes" >&6
8827 else
8828 echo "$as_me:$LINENO: result: no" >&5
8829echo "${ECHO_T}no" >&6
8830 fi
8831
8832
8833 enablestring=
8834 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-treectrl" >&5
8835echo $ECHO_N "checking for --${enablestring:-enable}-treectrl... $ECHO_C" >&6
8836 no_cache=0
8837 # Check whether --enable-treectrl or --disable-treectrl was given.
8838if test "${enable_treectrl+set}" = set; then
8839 enableval="$enable_treectrl"
8840
8841 if test "$enableval" = yes; then
8842 ac_cv_use_treectrl='wxUSE_TREECTRL=yes'
8843 else
8844 ac_cv_use_treectrl='wxUSE_TREECTRL=no'
8845 fi
8846
8847else
8848
8849 LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}`
8850 if test "x$LINE" != x ; then
8851 eval "DEFAULT_$LINE"
8852 else
8853 no_cache=1
8854 fi
8855
8856 ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL
8857
8858fi;
8859
8860 eval "$ac_cv_use_treectrl"
8861 if test "$no_cache" != 1; then
8862 echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp
8863 fi
8864
8865 if test "$wxUSE_TREECTRL" = yes; then
8866 echo "$as_me:$LINENO: result: yes" >&5
8867echo "${ECHO_T}yes" >&6
8868 else
8869 echo "$as_me:$LINENO: result: no" >&5
8870echo "${ECHO_T}no" >&6
8871 fi
8872
8873
8874 enablestring=
8875 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipwindow" >&5
8876echo $ECHO_N "checking for --${enablestring:-enable}-tipwindow... $ECHO_C" >&6
8877 no_cache=0
8878 # Check whether --enable-tipwindow or --disable-tipwindow was given.
8879if test "${enable_tipwindow+set}" = set; then
8880 enableval="$enable_tipwindow"
8881
8882 if test "$enableval" = yes; then
8883 ac_cv_use_tipwindow='wxUSE_TIPWINDOW=yes'
8884 else
8885 ac_cv_use_tipwindow='wxUSE_TIPWINDOW=no'
8886 fi
8887
8888else
8889
8890 LINE=`grep "wxUSE_TIPWINDOW" ${wx_arg_cache_file}`
8891 if test "x$LINE" != x ; then
8892 eval "DEFAULT_$LINE"
8893 else
8894 no_cache=1
8895 fi
8896
8897 ac_cv_use_tipwindow='wxUSE_TIPWINDOW='$DEFAULT_wxUSE_TIPWINDOW
8898
8899fi;
8900
8901 eval "$ac_cv_use_tipwindow"
8902 if test "$no_cache" != 1; then
8903 echo $ac_cv_use_tipwindow >> ${wx_arg_cache_file}.tmp
8904 fi
8905
8906 if test "$wxUSE_TIPWINDOW" = yes; then
8907 echo "$as_me:$LINENO: result: yes" >&5
8908echo "${ECHO_T}yes" >&6
8909 else
8910 echo "$as_me:$LINENO: result: no" >&5
8911echo "${ECHO_T}no" >&6
8912 fi
8913
8914
8915 enablestring=
8916 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-popupwin" >&5
8917echo $ECHO_N "checking for --${enablestring:-enable}-popupwin... $ECHO_C" >&6
8918 no_cache=0
8919 # Check whether --enable-popupwin or --disable-popupwin was given.
8920if test "${enable_popupwin+set}" = set; then
8921 enableval="$enable_popupwin"
8922
8923 if test "$enableval" = yes; then
8924 ac_cv_use_popupwin='wxUSE_POPUPWIN=yes'
8925 else
8926 ac_cv_use_popupwin='wxUSE_POPUPWIN=no'
8927 fi
8928
8929else
8930
8931 LINE=`grep "wxUSE_POPUPWIN" ${wx_arg_cache_file}`
8932 if test "x$LINE" != x ; then
8933 eval "DEFAULT_$LINE"
8934 else
8935 no_cache=1
8936 fi
8937
8938 ac_cv_use_popupwin='wxUSE_POPUPWIN='$DEFAULT_wxUSE_POPUPWIN
8939
8940fi;
8941
8942 eval "$ac_cv_use_popupwin"
8943 if test "$no_cache" != 1; then
8944 echo $ac_cv_use_popupwin >> ${wx_arg_cache_file}.tmp
8945 fi
8946
8947 if test "$wxUSE_POPUPWIN" = yes; then
8948 echo "$as_me:$LINENO: result: yes" >&5
8949echo "${ECHO_T}yes" >&6
8950 else
8951 echo "$as_me:$LINENO: result: no" >&5
8952echo "${ECHO_T}no" >&6
8953 fi
8954
8955
8956
8957
8958 enablestring=
8959 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-commondlg" >&5
8960echo $ECHO_N "checking for --${enablestring:-enable}-commondlg... $ECHO_C" >&6
8961 no_cache=0
8962 # Check whether --enable-commondlg or --disable-commondlg was given.
8963if test "${enable_commondlg+set}" = set; then
8964 enableval="$enable_commondlg"
8965
8966 if test "$enableval" = yes; then
8967 ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes'
8968 else
8969 ac_cv_use_commondlg='wxUSE_COMMONDLGS=no'
8970 fi
8971
8972else
8973
8974 LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}`
8975 if test "x$LINE" != x ; then
8976 eval "DEFAULT_$LINE"
8977 else
8978 no_cache=1
8979 fi
8980
8981 ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS
8982
8983fi;
8984
8985 eval "$ac_cv_use_commondlg"
8986 if test "$no_cache" != 1; then
8987 echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp
8988 fi
8989
8990 if test "$wxUSE_COMMONDLGS" = yes; then
8991 echo "$as_me:$LINENO: result: yes" >&5
8992echo "${ECHO_T}yes" >&6
8993 else
8994 echo "$as_me:$LINENO: result: no" >&5
8995echo "${ECHO_T}no" >&6
8996 fi
8997
8998
8999 enablestring=
9000 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicedlg" >&5
9001echo $ECHO_N "checking for --${enablestring:-enable}-choicedlg... $ECHO_C" >&6
9002 no_cache=0
9003 # Check whether --enable-choicedlg or --disable-choicedlg was given.
9004if test "${enable_choicedlg+set}" = set; then
9005 enableval="$enable_choicedlg"
9006
9007 if test "$enableval" = yes; then
9008 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=yes'
9009 else
9010 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=no'
9011 fi
9012
9013else
9014
9015 LINE=`grep "wxUSE_CHOICEDLG" ${wx_arg_cache_file}`
9016 if test "x$LINE" != x ; then
9017 eval "DEFAULT_$LINE"
9018 else
9019 no_cache=1
9020 fi
9021
9022 ac_cv_use_choicedlg='wxUSE_CHOICEDLG='$DEFAULT_wxUSE_CHOICEDLG
9023
9024fi;
9025
9026 eval "$ac_cv_use_choicedlg"
9027 if test "$no_cache" != 1; then
9028 echo $ac_cv_use_choicedlg >> ${wx_arg_cache_file}.tmp
9029 fi
9030
9031 if test "$wxUSE_CHOICEDLG" = yes; then
9032 echo "$as_me:$LINENO: result: yes" >&5
9033echo "${ECHO_T}yes" >&6
9034 else
9035 echo "$as_me:$LINENO: result: no" >&5
9036echo "${ECHO_T}no" >&6
9037 fi
9038
9039
9040 enablestring=
9041 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-coldlg" >&5
9042echo $ECHO_N "checking for --${enablestring:-enable}-coldlg... $ECHO_C" >&6
9043 no_cache=0
9044 # Check whether --enable-coldlg or --disable-coldlg was given.
9045if test "${enable_coldlg+set}" = set; then
9046 enableval="$enable_coldlg"
9047
9048 if test "$enableval" = yes; then
9049 ac_cv_use_coldlg='wxUSE_COLOURDLG=yes'
9050 else
9051 ac_cv_use_coldlg='wxUSE_COLOURDLG=no'
9052 fi
9053
9054else
9055
9056 LINE=`grep "wxUSE_COLOURDLG" ${wx_arg_cache_file}`
9057 if test "x$LINE" != x ; then
9058 eval "DEFAULT_$LINE"
9059 else
9060 no_cache=1
9061 fi
9062
9063 ac_cv_use_coldlg='wxUSE_COLOURDLG='$DEFAULT_wxUSE_COLOURDLG
9064
9065fi;
9066
9067 eval "$ac_cv_use_coldlg"
9068 if test "$no_cache" != 1; then
9069 echo $ac_cv_use_coldlg >> ${wx_arg_cache_file}.tmp
9070 fi
9071
9072 if test "$wxUSE_COLOURDLG" = yes; then
9073 echo "$as_me:$LINENO: result: yes" >&5
9074echo "${ECHO_T}yes" >&6
9075 else
9076 echo "$as_me:$LINENO: result: no" >&5
9077echo "${ECHO_T}no" >&6
9078 fi
9079
9080
9081 enablestring=
9082 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filedlg" >&5
9083echo $ECHO_N "checking for --${enablestring:-enable}-filedlg... $ECHO_C" >&6
9084 no_cache=0
9085 # Check whether --enable-filedlg or --disable-filedlg was given.
9086if test "${enable_filedlg+set}" = set; then
9087 enableval="$enable_filedlg"
9088
9089 if test "$enableval" = yes; then
9090 ac_cv_use_filedlg='wxUSE_FILEDLG=yes'
9091 else
9092 ac_cv_use_filedlg='wxUSE_FILEDLG=no'
9093 fi
9094
9095else
9096
9097 LINE=`grep "wxUSE_FILEDLG" ${wx_arg_cache_file}`
9098 if test "x$LINE" != x ; then
9099 eval "DEFAULT_$LINE"
9100 else
9101 no_cache=1
9102 fi
9103
9104 ac_cv_use_filedlg='wxUSE_FILEDLG='$DEFAULT_wxUSE_FILEDLG
9105
9106fi;
9107
9108 eval "$ac_cv_use_filedlg"
9109 if test "$no_cache" != 1; then
9110 echo $ac_cv_use_filedlg >> ${wx_arg_cache_file}.tmp
9111 fi
9112
9113 if test "$wxUSE_FILEDLG" = yes; then
9114 echo "$as_me:$LINENO: result: yes" >&5
9115echo "${ECHO_T}yes" >&6
9116 else
9117 echo "$as_me:$LINENO: result: no" >&5
9118echo "${ECHO_T}no" >&6
9119 fi
9120
9121
9122 enablestring=
9123 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-finddlg" >&5
9124echo $ECHO_N "checking for --${enablestring:-enable}-finddlg... $ECHO_C" >&6
9125 no_cache=0
9126 # Check whether --enable-finddlg or --disable-finddlg was given.
9127if test "${enable_finddlg+set}" = set; then
9128 enableval="$enable_finddlg"
9129
9130 if test "$enableval" = yes; then
9131 ac_cv_use_finddlg='wxUSE_FINDREPLDLG=yes'
9132 else
9133 ac_cv_use_finddlg='wxUSE_FINDREPLDLG=no'
9134 fi
9135
9136else
9137
9138 LINE=`grep "wxUSE_FINDREPLDLG" ${wx_arg_cache_file}`
9139 if test "x$LINE" != x ; then
9140 eval "DEFAULT_$LINE"
9141 else
9142 no_cache=1
9143 fi
9144
9145 ac_cv_use_finddlg='wxUSE_FINDREPLDLG='$DEFAULT_wxUSE_FINDREPLDLG
9146
9147fi;
9148
9149 eval "$ac_cv_use_finddlg"
9150 if test "$no_cache" != 1; then
9151 echo $ac_cv_use_finddlg >> ${wx_arg_cache_file}.tmp
9152 fi
9153
9154 if test "$wxUSE_FINDREPLDLG" = yes; then
9155 echo "$as_me:$LINENO: result: yes" >&5
9156echo "${ECHO_T}yes" >&6
9157 else
9158 echo "$as_me:$LINENO: result: no" >&5
9159echo "${ECHO_T}no" >&6
9160 fi
9161
9162
9163 enablestring=
9164 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontdlg" >&5
9165echo $ECHO_N "checking for --${enablestring:-enable}-fontdlg... $ECHO_C" >&6
9166 no_cache=0
9167 # Check whether --enable-fontdlg or --disable-fontdlg was given.
9168if test "${enable_fontdlg+set}" = set; then
9169 enableval="$enable_fontdlg"
9170
9171 if test "$enableval" = yes; then
9172 ac_cv_use_fontdlg='wxUSE_FONTDLG=yes'
9173 else
9174 ac_cv_use_fontdlg='wxUSE_FONTDLG=no'
9175 fi
9176
9177else
9178
9179 LINE=`grep "wxUSE_FONTDLG" ${wx_arg_cache_file}`
9180 if test "x$LINE" != x ; then
9181 eval "DEFAULT_$LINE"
9182 else
9183 no_cache=1
9184 fi
9185
9186 ac_cv_use_fontdlg='wxUSE_FONTDLG='$DEFAULT_wxUSE_FONTDLG
9187
9188fi;
9189
9190 eval "$ac_cv_use_fontdlg"
9191 if test "$no_cache" != 1; then
9192 echo $ac_cv_use_fontdlg >> ${wx_arg_cache_file}.tmp
9193 fi
9194
9195 if test "$wxUSE_FONTDLG" = yes; then
9196 echo "$as_me:$LINENO: result: yes" >&5
9197echo "${ECHO_T}yes" >&6
9198 else
9199 echo "$as_me:$LINENO: result: no" >&5
9200echo "${ECHO_T}no" >&6
9201 fi
9202
9203
9204 enablestring=
9205 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dirdlg" >&5
9206echo $ECHO_N "checking for --${enablestring:-enable}-dirdlg... $ECHO_C" >&6
9207 no_cache=0
9208 # Check whether --enable-dirdlg or --disable-dirdlg was given.
9209if test "${enable_dirdlg+set}" = set; then
9210 enableval="$enable_dirdlg"
9211
9212 if test "$enableval" = yes; then
9213 ac_cv_use_dirdlg='wxUSE_DIRDLG=yes'
9214 else
9215 ac_cv_use_dirdlg='wxUSE_DIRDLG=no'
9216 fi
9217
9218else
9219
9220 LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}`
9221 if test "x$LINE" != x ; then
9222 eval "DEFAULT_$LINE"
9223 else
9224 no_cache=1
9225 fi
9226
9227 ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG
9228
9229fi;
9230
9231 eval "$ac_cv_use_dirdlg"
9232 if test "$no_cache" != 1; then
9233 echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp
9234 fi
9235
9236 if test "$wxUSE_DIRDLG" = yes; then
9237 echo "$as_me:$LINENO: result: yes" >&5
9238echo "${ECHO_T}yes" >&6
9239 else
9240 echo "$as_me:$LINENO: result: no" >&5
9241echo "${ECHO_T}no" >&6
9242 fi
9243
9244
9245 enablestring=
9246 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-msgdlg" >&5
9247echo $ECHO_N "checking for --${enablestring:-enable}-msgdlg... $ECHO_C" >&6
9248 no_cache=0
9249 # Check whether --enable-msgdlg or --disable-msgdlg was given.
9250if test "${enable_msgdlg+set}" = set; then
9251 enableval="$enable_msgdlg"
9252
9253 if test "$enableval" = yes; then
9254 ac_cv_use_msgdlg='wxUSE_MSGDLG=yes'
9255 else
9256 ac_cv_use_msgdlg='wxUSE_MSGDLG=no'
9257 fi
9258
9259else
9260
9261 LINE=`grep "wxUSE_MSGDLG" ${wx_arg_cache_file}`
9262 if test "x$LINE" != x ; then
9263 eval "DEFAULT_$LINE"
9264 else
9265 no_cache=1
9266 fi
9267
9268 ac_cv_use_msgdlg='wxUSE_MSGDLG='$DEFAULT_wxUSE_MSGDLG
9269
9270fi;
9271
9272 eval "$ac_cv_use_msgdlg"
9273 if test "$no_cache" != 1; then
9274 echo $ac_cv_use_msgdlg >> ${wx_arg_cache_file}.tmp
9275 fi
9276
9277 if test "$wxUSE_MSGDLG" = yes; then
9278 echo "$as_me:$LINENO: result: yes" >&5
9279echo "${ECHO_T}yes" >&6
9280 else
9281 echo "$as_me:$LINENO: result: no" >&5
9282echo "${ECHO_T}no" >&6
9283 fi
9284
9285
9286 enablestring=
9287 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-numberdlg" >&5
9288echo $ECHO_N "checking for --${enablestring:-enable}-numberdlg... $ECHO_C" >&6
9289 no_cache=0
9290 # Check whether --enable-numberdlg or --disable-numberdlg was given.
9291if test "${enable_numberdlg+set}" = set; then
9292 enableval="$enable_numberdlg"
9293
9294 if test "$enableval" = yes; then
9295 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=yes'
9296 else
9297 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=no'
9298 fi
9299
9300else
9301
9302 LINE=`grep "wxUSE_NUMBERDLG" ${wx_arg_cache_file}`
9303 if test "x$LINE" != x ; then
9304 eval "DEFAULT_$LINE"
9305 else
9306 no_cache=1
9307 fi
9308
9309 ac_cv_use_numberdlg='wxUSE_NUMBERDLG='$DEFAULT_wxUSE_NUMBERDLG
9310
9311fi;
9312
9313 eval "$ac_cv_use_numberdlg"
9314 if test "$no_cache" != 1; then
9315 echo $ac_cv_use_numberdlg >> ${wx_arg_cache_file}.tmp
9316 fi
9317
9318 if test "$wxUSE_NUMBERDLG" = yes; then
9319 echo "$as_me:$LINENO: result: yes" >&5
9320echo "${ECHO_T}yes" >&6
9321 else
9322 echo "$as_me:$LINENO: result: no" >&5
9323echo "${ECHO_T}no" >&6
9324 fi
9325
9326
9327 enablestring=
9328 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splash" >&5
9329echo $ECHO_N "checking for --${enablestring:-enable}-splash... $ECHO_C" >&6
9330 no_cache=0
9331 # Check whether --enable-splash or --disable-splash was given.
9332if test "${enable_splash+set}" = set; then
9333 enableval="$enable_splash"
9334
9335 if test "$enableval" = yes; then
9336 ac_cv_use_splash='wxUSE_SPLASH=yes'
9337 else
9338 ac_cv_use_splash='wxUSE_SPLASH=no'
9339 fi
9340
9341else
9342
9343 LINE=`grep "wxUSE_SPLASH" ${wx_arg_cache_file}`
9344 if test "x$LINE" != x ; then
9345 eval "DEFAULT_$LINE"
9346 else
9347 no_cache=1
9348 fi
9349
9350 ac_cv_use_splash='wxUSE_SPLASH='$DEFAULT_wxUSE_SPLASH
9351
9352fi;
9353
9354 eval "$ac_cv_use_splash"
9355 if test "$no_cache" != 1; then
9356 echo $ac_cv_use_splash >> ${wx_arg_cache_file}.tmp
9357 fi
9358
9359 if test "$wxUSE_SPLASH" = yes; then
9360 echo "$as_me:$LINENO: result: yes" >&5
9361echo "${ECHO_T}yes" >&6
9362 else
9363 echo "$as_me:$LINENO: result: no" >&5
9364echo "${ECHO_T}no" >&6
9365 fi
9366
9367
9368 enablestring=
9369 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textdlg" >&5
9370echo $ECHO_N "checking for --${enablestring:-enable}-textdlg... $ECHO_C" >&6
9371 no_cache=0
9372 # Check whether --enable-textdlg or --disable-textdlg was given.
9373if test "${enable_textdlg+set}" = set; then
9374 enableval="$enable_textdlg"
9375
9376 if test "$enableval" = yes; then
9377 ac_cv_use_textdlg='wxUSE_TEXTDLG=yes'
9378 else
9379 ac_cv_use_textdlg='wxUSE_TEXTDLG=no'
9380 fi
9381
9382else
9383
9384 LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}`
9385 if test "x$LINE" != x ; then
9386 eval "DEFAULT_$LINE"
9387 else
9388 no_cache=1
9389 fi
9390
9391 ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG
9392
9393fi;
9394
9395 eval "$ac_cv_use_textdlg"
9396 if test "$no_cache" != 1; then
9397 echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp
9398 fi
9399
9400 if test "$wxUSE_TEXTDLG" = yes; then
9401 echo "$as_me:$LINENO: result: yes" >&5
9402echo "${ECHO_T}yes" >&6
9403 else
9404 echo "$as_me:$LINENO: result: no" >&5
9405echo "${ECHO_T}no" >&6
9406 fi
9407
9408
9409 enablestring=
9410 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipdlg" >&5
9411echo $ECHO_N "checking for --${enablestring:-enable}-tipdlg... $ECHO_C" >&6
9412 no_cache=0
9413 # Check whether --enable-tipdlg or --disable-tipdlg was given.
9414if test "${enable_tipdlg+set}" = set; then
9415 enableval="$enable_tipdlg"
9416
9417 if test "$enableval" = yes; then
9418 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes'
9419 else
9420 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no'
9421 fi
9422
9423else
9424
9425 LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}`
9426 if test "x$LINE" != x ; then
9427 eval "DEFAULT_$LINE"
9428 else
9429 no_cache=1
9430 fi
9431
9432 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS
9433
9434fi;
9435
9436 eval "$ac_cv_use_tipdlg"
9437 if test "$no_cache" != 1; then
9438 echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp
9439 fi
9440
9441 if test "$wxUSE_STARTUP_TIPS" = yes; then
9442 echo "$as_me:$LINENO: result: yes" >&5
9443echo "${ECHO_T}yes" >&6
9444 else
9445 echo "$as_me:$LINENO: result: no" >&5
9446echo "${ECHO_T}no" >&6
9447 fi
9448
9449
9450 enablestring=
9451 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-progressdlg" >&5
9452echo $ECHO_N "checking for --${enablestring:-enable}-progressdlg... $ECHO_C" >&6
9453 no_cache=0
9454 # Check whether --enable-progressdlg or --disable-progressdlg was given.
9455if test "${enable_progressdlg+set}" = set; then
9456 enableval="$enable_progressdlg"
9457
9458 if test "$enableval" = yes; then
9459 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes'
9460 else
9461 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no'
9462 fi
9463
9464else
9465
9466 LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}`
9467 if test "x$LINE" != x ; then
9468 eval "DEFAULT_$LINE"
9469 else
9470 no_cache=1
9471 fi
9472
9473 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG
9474
9475fi;
9476
9477 eval "$ac_cv_use_progressdlg"
9478 if test "$no_cache" != 1; then
9479 echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp
9480 fi
9481
9482 if test "$wxUSE_PROGRESSDLG" = yes; then
9483 echo "$as_me:$LINENO: result: yes" >&5
9484echo "${ECHO_T}yes" >&6
9485 else
9486 echo "$as_me:$LINENO: result: no" >&5
9487echo "${ECHO_T}no" >&6
9488 fi
9489
9490
9491 enablestring=
9492 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wizarddlg" >&5
9493echo $ECHO_N "checking for --${enablestring:-enable}-wizarddlg... $ECHO_C" >&6
9494 no_cache=0
9495 # Check whether --enable-wizarddlg or --disable-wizarddlg was given.
9496if test "${enable_wizarddlg+set}" = set; then
9497 enableval="$enable_wizarddlg"
9498
9499 if test "$enableval" = yes; then
9500 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=yes'
9501 else
9502 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=no'
9503 fi
9504
9505else
9506
9507 LINE=`grep "wxUSE_WIZARDDLG" ${wx_arg_cache_file}`
9508 if test "x$LINE" != x ; then
9509 eval "DEFAULT_$LINE"
9510 else
9511 no_cache=1
9512 fi
9513
9514 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG='$DEFAULT_wxUSE_WIZARDDLG
9515
9516fi;
9517
9518 eval "$ac_cv_use_wizarddlg"
9519 if test "$no_cache" != 1; then
9520 echo $ac_cv_use_wizarddlg >> ${wx_arg_cache_file}.tmp
9521 fi
9522
9523 if test "$wxUSE_WIZARDDLG" = yes; then
9524 echo "$as_me:$LINENO: result: yes" >&5
9525echo "${ECHO_T}yes" >&6
9526 else
9527 echo "$as_me:$LINENO: result: no" >&5
9528echo "${ECHO_T}no" >&6
9529 fi
9530
9531
9532
9533
9534 enablestring=
9535 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-menus" >&5
9536echo $ECHO_N "checking for --${enablestring:-enable}-menus... $ECHO_C" >&6
9537 no_cache=0
9538 # Check whether --enable-menus or --disable-menus was given.
9539if test "${enable_menus+set}" = set; then
9540 enableval="$enable_menus"
9541
9542 if test "$enableval" = yes; then
9543 ac_cv_use_menus='wxUSE_MENUS=yes'
9544 else
9545 ac_cv_use_menus='wxUSE_MENUS=no'
9546 fi
9547
9548else
9549
9550 LINE=`grep "wxUSE_MENUS" ${wx_arg_cache_file}`
9551 if test "x$LINE" != x ; then
9552 eval "DEFAULT_$LINE"
9553 else
9554 no_cache=1
9555 fi
9556
9557 ac_cv_use_menus='wxUSE_MENUS='$DEFAULT_wxUSE_MENUS
9558
9559fi;
9560
9561 eval "$ac_cv_use_menus"
9562 if test "$no_cache" != 1; then
9563 echo $ac_cv_use_menus >> ${wx_arg_cache_file}.tmp
9564 fi
9565
9566 if test "$wxUSE_MENUS" = yes; then
9567 echo "$as_me:$LINENO: result: yes" >&5
9568echo "${ECHO_T}yes" >&6
9569 else
9570 echo "$as_me:$LINENO: result: no" >&5
9571echo "${ECHO_T}no" >&6
9572 fi
9573
9574
9575 enablestring=
9576 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-miniframe" >&5
9577echo $ECHO_N "checking for --${enablestring:-enable}-miniframe... $ECHO_C" >&6
9578 no_cache=0
9579 # Check whether --enable-miniframe or --disable-miniframe was given.
9580if test "${enable_miniframe+set}" = set; then
9581 enableval="$enable_miniframe"
9582
9583 if test "$enableval" = yes; then
9584 ac_cv_use_miniframe='wxUSE_MINIFRAME=yes'
9585 else
9586 ac_cv_use_miniframe='wxUSE_MINIFRAME=no'
9587 fi
9588
9589else
9590
9591 LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}`
9592 if test "x$LINE" != x ; then
9593 eval "DEFAULT_$LINE"
9594 else
9595 no_cache=1
9596 fi
9597
9598 ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME
9599
9600fi;
9601
9602 eval "$ac_cv_use_miniframe"
9603 if test "$no_cache" != 1; then
9604 echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp
9605 fi
9606
9607 if test "$wxUSE_MINIFRAME" = yes; then
9608 echo "$as_me:$LINENO: result: yes" >&5
9609echo "${ECHO_T}yes" >&6
9610 else
9611 echo "$as_me:$LINENO: result: no" >&5
9612echo "${ECHO_T}no" >&6
9613 fi
9614
9615
9616 enablestring=
9617 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tooltips" >&5
9618echo $ECHO_N "checking for --${enablestring:-enable}-tooltips... $ECHO_C" >&6
9619 no_cache=0
9620 # Check whether --enable-tooltips or --disable-tooltips was given.
9621if test "${enable_tooltips+set}" = set; then
9622 enableval="$enable_tooltips"
9623
9624 if test "$enableval" = yes; then
9625 ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes'
9626 else
9627 ac_cv_use_tooltips='wxUSE_TOOLTIPS=no'
9628 fi
9629
9630else
9631
9632 LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}`
9633 if test "x$LINE" != x ; then
9634 eval "DEFAULT_$LINE"
9635 else
9636 no_cache=1
9637 fi
9638
9639 ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS
9640
9641fi;
9642
9643 eval "$ac_cv_use_tooltips"
9644 if test "$no_cache" != 1; then
9645 echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp
9646 fi
9647
9648 if test "$wxUSE_TOOLTIPS" = yes; then
9649 echo "$as_me:$LINENO: result: yes" >&5
9650echo "${ECHO_T}yes" >&6
9651 else
9652 echo "$as_me:$LINENO: result: no" >&5
9653echo "${ECHO_T}no" >&6
9654 fi
9655
9656
9657 enablestring=
9658 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splines" >&5
9659echo $ECHO_N "checking for --${enablestring:-enable}-splines... $ECHO_C" >&6
9660 no_cache=0
9661 # Check whether --enable-splines or --disable-splines was given.
9662if test "${enable_splines+set}" = set; then
9663 enableval="$enable_splines"
9664
9665 if test "$enableval" = yes; then
9666 ac_cv_use_splines='wxUSE_SPLINES=yes'
9667 else
9668 ac_cv_use_splines='wxUSE_SPLINES=no'
9669 fi
9670
9671else
9672
9673 LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}`
9674 if test "x$LINE" != x ; then
9675 eval "DEFAULT_$LINE"
9676 else
9677 no_cache=1
9678 fi
9679
9680 ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES
9681
9682fi;
9683
9684 eval "$ac_cv_use_splines"
9685 if test "$no_cache" != 1; then
9686 echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp
9687 fi
9688
9689 if test "$wxUSE_SPLINES" = yes; then
9690 echo "$as_me:$LINENO: result: yes" >&5
9691echo "${ECHO_T}yes" >&6
9692 else
9693 echo "$as_me:$LINENO: result: no" >&5
9694echo "${ECHO_T}no" >&6
9695 fi
9696
9697
9698 enablestring=
9699 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-validators" >&5
9700echo $ECHO_N "checking for --${enablestring:-enable}-validators... $ECHO_C" >&6
9701 no_cache=0
9702 # Check whether --enable-validators or --disable-validators was given.
9703if test "${enable_validators+set}" = set; then
9704 enableval="$enable_validators"
9705
9706 if test "$enableval" = yes; then
9707 ac_cv_use_validators='wxUSE_VALIDATORS=yes'
9708 else
9709 ac_cv_use_validators='wxUSE_VALIDATORS=no'
9710 fi
9711
9712else
9713
9714 LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}`
9715 if test "x$LINE" != x ; then
9716 eval "DEFAULT_$LINE"
9717 else
9718 no_cache=1
9719 fi
9720
9721 ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS
9722
9723fi;
9724
9725 eval "$ac_cv_use_validators"
9726 if test "$no_cache" != 1; then
9727 echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp
9728 fi
9729
9730 if test "$wxUSE_VALIDATORS" = yes; then
9731 echo "$as_me:$LINENO: result: yes" >&5
9732echo "${ECHO_T}yes" >&6
9733 else
9734 echo "$as_me:$LINENO: result: no" >&5
9735echo "${ECHO_T}no" >&6
9736 fi
9737
9738
9739 enablestring=
9740 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-busyinfo" >&5
9741echo $ECHO_N "checking for --${enablestring:-enable}-busyinfo... $ECHO_C" >&6
9742 no_cache=0
9743 # Check whether --enable-busyinfo or --disable-busyinfo was given.
9744if test "${enable_busyinfo+set}" = set; then
9745 enableval="$enable_busyinfo"
9746
9747 if test "$enableval" = yes; then
9748 ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes'
9749 else
9750 ac_cv_use_busyinfo='wxUSE_BUSYINFO=no'
9751 fi
9752
9753else
9754
9755 LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}`
9756 if test "x$LINE" != x ; then
9757 eval "DEFAULT_$LINE"
9758 else
9759 no_cache=1
9760 fi
9761
9762 ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO
9763
9764fi;
9765
9766 eval "$ac_cv_use_busyinfo"
9767 if test "$no_cache" != 1; then
9768 echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp
9769 fi
9770
9771 if test "$wxUSE_BUSYINFO" = yes; then
9772 echo "$as_me:$LINENO: result: yes" >&5
9773echo "${ECHO_T}yes" >&6
9774 else
9775 echo "$as_me:$LINENO: result: no" >&5
9776echo "${ECHO_T}no" >&6
9777 fi
9778
9779
9780 enablestring=
9781 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-joystick" >&5
9782echo $ECHO_N "checking for --${enablestring:-enable}-joystick... $ECHO_C" >&6
9783 no_cache=0
9784 # Check whether --enable-joystick or --disable-joystick was given.
9785if test "${enable_joystick+set}" = set; then
9786 enableval="$enable_joystick"
9787
9788 if test "$enableval" = yes; then
9789 ac_cv_use_joystick='wxUSE_JOYSTICK=yes'
9790 else
9791 ac_cv_use_joystick='wxUSE_JOYSTICK=no'
9792 fi
9793
9794else
9795
9796 LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}`
9797 if test "x$LINE" != x ; then
9798 eval "DEFAULT_$LINE"
9799 else
9800 no_cache=1
9801 fi
9802
9803 ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK
9804
9805fi;
9806
9807 eval "$ac_cv_use_joystick"
9808 if test "$no_cache" != 1; then
9809 echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp
9810 fi
9811
9812 if test "$wxUSE_JOYSTICK" = yes; then
9813 echo "$as_me:$LINENO: result: yes" >&5
9814echo "${ECHO_T}yes" >&6
9815 else
9816 echo "$as_me:$LINENO: result: no" >&5
9817echo "${ECHO_T}no" >&6
9818 fi
9819
9820
9821 enablestring=
9822 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5
9823echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6
9824 no_cache=0
9825 # Check whether --enable-metafile or --disable-metafile was given.
9826if test "${enable_metafile+set}" = set; then
9827 enableval="$enable_metafile"
9828
9829 if test "$enableval" = yes; then
9830 ac_cv_use_metafile='wxUSE_METAFILE=yes'
9831 else
9832 ac_cv_use_metafile='wxUSE_METAFILE=no'
9833 fi
9834
9835else
9836
9837 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
9838 if test "x$LINE" != x ; then
9839 eval "DEFAULT_$LINE"
9840 else
9841 no_cache=1
9842 fi
9843
9844 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
9845
9846fi;
9847
9848 eval "$ac_cv_use_metafile"
9849 if test "$no_cache" != 1; then
9850 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
9851 fi
9852
9853 if test "$wxUSE_METAFILE" = yes; then
9854 echo "$as_me:$LINENO: result: yes" >&5
9855echo "${ECHO_T}yes" >&6
9856 else
9857 echo "$as_me:$LINENO: result: no" >&5
9858echo "${ECHO_T}no" >&6
9859 fi
9860
9861
9862 enablestring=
9863 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dragimage" >&5
9864echo $ECHO_N "checking for --${enablestring:-enable}-dragimage... $ECHO_C" >&6
9865 no_cache=0
9866 # Check whether --enable-dragimage or --disable-dragimage was given.
9867if test "${enable_dragimage+set}" = set; then
9868 enableval="$enable_dragimage"
9869
9870 if test "$enableval" = yes; then
9871 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=yes'
9872 else
9873 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=no'
9874 fi
9875
9876else
9877
9878 LINE=`grep "wxUSE_DRAGIMAGE" ${wx_arg_cache_file}`
9879 if test "x$LINE" != x ; then
9880 eval "DEFAULT_$LINE"
9881 else
9882 no_cache=1
9883 fi
9884
9885 ac_cv_use_dragimage='wxUSE_DRAGIMAGE='$DEFAULT_wxUSE_DRAGIMAGE
9886
9887fi;
9888
9889 eval "$ac_cv_use_dragimage"
9890 if test "$no_cache" != 1; then
9891 echo $ac_cv_use_dragimage >> ${wx_arg_cache_file}.tmp
9892 fi
9893
9894 if test "$wxUSE_DRAGIMAGE" = yes; then
9895 echo "$as_me:$LINENO: result: yes" >&5
9896echo "${ECHO_T}yes" >&6
9897 else
9898 echo "$as_me:$LINENO: result: no" >&5
9899echo "${ECHO_T}no" >&6
9900 fi
9901
9902
9903 enablestring=
9904 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accessibility" >&5
9905echo $ECHO_N "checking for --${enablestring:-enable}-accessibility... $ECHO_C" >&6
9906 no_cache=0
9907 # Check whether --enable-accessibility or --disable-accessibility was given.
9908if test "${enable_accessibility+set}" = set; then
9909 enableval="$enable_accessibility"
9910
9911 if test "$enableval" = yes; then
9912 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=yes'
9913 else
9914 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=no'
9915 fi
9916
9917else
9918
9919 LINE=`grep "wxUSE_ACCESSIBILITY" ${wx_arg_cache_file}`
9920 if test "x$LINE" != x ; then
9921 eval "DEFAULT_$LINE"
9922 else
9923 no_cache=1
9924 fi
9925
9926 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY='$DEFAULT_wxUSE_ACCESSIBILITY
9927
9928fi;
9929
9930 eval "$ac_cv_use_accessibility"
9931 if test "$no_cache" != 1; then
9932 echo $ac_cv_use_accessibility >> ${wx_arg_cache_file}.tmp
9933 fi
9934
9935 if test "$wxUSE_ACCESSIBILITY" = yes; then
9936 echo "$as_me:$LINENO: result: yes" >&5
9937echo "${ECHO_T}yes" >&6
9938 else
9939 echo "$as_me:$LINENO: result: no" >&5
9940echo "${ECHO_T}no" >&6
9941 fi
9942
9943
9944
9945
9946 enablestring=
9947 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-palette" >&5
9948echo $ECHO_N "checking for --${enablestring:-enable}-palette... $ECHO_C" >&6
9949 no_cache=0
9950 # Check whether --enable-palette or --disable-palette was given.
9951if test "${enable_palette+set}" = set; then
9952 enableval="$enable_palette"
9953
9954 if test "$enableval" = yes; then
9955 ac_cv_use_palette='wxUSE_PALETTE=yes'
9956 else
9957 ac_cv_use_palette='wxUSE_PALETTE=no'
9958 fi
9959
9960else
9961
9962 LINE=`grep "wxUSE_PALETTE" ${wx_arg_cache_file}`
9963 if test "x$LINE" != x ; then
9964 eval "DEFAULT_$LINE"
9965 else
9966 no_cache=1
9967 fi
9968
9969 ac_cv_use_palette='wxUSE_PALETTE='$DEFAULT_wxUSE_PALETTE
9970
9971fi;
9972
9973 eval "$ac_cv_use_palette"
9974 if test "$no_cache" != 1; then
9975 echo $ac_cv_use_palette >> ${wx_arg_cache_file}.tmp
9976 fi
9977
9978 if test "$wxUSE_PALETTE" = yes; then
9979 echo "$as_me:$LINENO: result: yes" >&5
9980echo "${ECHO_T}yes" >&6
9981 else
9982 echo "$as_me:$LINENO: result: no" >&5
9983echo "${ECHO_T}no" >&6
9984 fi
9985
9986
9987 enablestring=
9988 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-image" >&5
9989echo $ECHO_N "checking for --${enablestring:-enable}-image... $ECHO_C" >&6
9990 no_cache=0
9991 # Check whether --enable-image or --disable-image was given.
9992if test "${enable_image+set}" = set; then
9993 enableval="$enable_image"
9994
9995 if test "$enableval" = yes; then
9996 ac_cv_use_image='wxUSE_IMAGE=yes'
9997 else
9998 ac_cv_use_image='wxUSE_IMAGE=no'
9999 fi
10000
10001else
10002
10003 LINE=`grep "wxUSE_IMAGE" ${wx_arg_cache_file}`
10004 if test "x$LINE" != x ; then
10005 eval "DEFAULT_$LINE"
10006 else
10007 no_cache=1
10008 fi
10009
10010 ac_cv_use_image='wxUSE_IMAGE='$DEFAULT_wxUSE_IMAGE
10011
10012fi;
10013
10014 eval "$ac_cv_use_image"
10015 if test "$no_cache" != 1; then
10016 echo $ac_cv_use_image >> ${wx_arg_cache_file}.tmp
10017 fi
10018
10019 if test "$wxUSE_IMAGE" = yes; then
10020 echo "$as_me:$LINENO: result: yes" >&5
10021echo "${ECHO_T}yes" >&6
10022 else
10023 echo "$as_me:$LINENO: result: no" >&5
10024echo "${ECHO_T}no" >&6
10025 fi
10026
10027
10028 enablestring=
10029 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gif" >&5
10030echo $ECHO_N "checking for --${enablestring:-enable}-gif... $ECHO_C" >&6
10031 no_cache=0
10032 # Check whether --enable-gif or --disable-gif was given.
10033if test "${enable_gif+set}" = set; then
10034 enableval="$enable_gif"
10035
10036 if test "$enableval" = yes; then
10037 ac_cv_use_gif='wxUSE_GIF=yes'
10038 else
10039 ac_cv_use_gif='wxUSE_GIF=no'
10040 fi
10041
10042else
10043
10044 LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}`
10045 if test "x$LINE" != x ; then
10046 eval "DEFAULT_$LINE"
10047 else
10048 no_cache=1
10049 fi
10050
10051 ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF
10052
10053fi;
10054
10055 eval "$ac_cv_use_gif"
10056 if test "$no_cache" != 1; then
10057 echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp
10058 fi
10059
10060 if test "$wxUSE_GIF" = yes; then
10061 echo "$as_me:$LINENO: result: yes" >&5
10062echo "${ECHO_T}yes" >&6
10063 else
10064 echo "$as_me:$LINENO: result: no" >&5
10065echo "${ECHO_T}no" >&6
10066 fi
10067
10068
10069 enablestring=
10070 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pcx" >&5
10071echo $ECHO_N "checking for --${enablestring:-enable}-pcx... $ECHO_C" >&6
10072 no_cache=0
10073 # Check whether --enable-pcx or --disable-pcx was given.
10074if test "${enable_pcx+set}" = set; then
10075 enableval="$enable_pcx"
10076
10077 if test "$enableval" = yes; then
10078 ac_cv_use_pcx='wxUSE_PCX=yes'
10079 else
10080 ac_cv_use_pcx='wxUSE_PCX=no'
10081 fi
10082
10083else
10084
10085 LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}`
10086 if test "x$LINE" != x ; then
10087 eval "DEFAULT_$LINE"
10088 else
10089 no_cache=1
10090 fi
10091
10092 ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX
10093
10094fi;
10095
10096 eval "$ac_cv_use_pcx"
10097 if test "$no_cache" != 1; then
10098 echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp
10099 fi
10100
10101 if test "$wxUSE_PCX" = yes; then
10102 echo "$as_me:$LINENO: result: yes" >&5
10103echo "${ECHO_T}yes" >&6
10104 else
10105 echo "$as_me:$LINENO: result: no" >&5
10106echo "${ECHO_T}no" >&6
10107 fi
10108
10109
10110 enablestring=
10111 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-iff" >&5
10112echo $ECHO_N "checking for --${enablestring:-enable}-iff... $ECHO_C" >&6
10113 no_cache=0
10114 # Check whether --enable-iff or --disable-iff was given.
10115if test "${enable_iff+set}" = set; then
10116 enableval="$enable_iff"
10117
10118 if test "$enableval" = yes; then
10119 ac_cv_use_iff='wxUSE_IFF=yes'
10120 else
10121 ac_cv_use_iff='wxUSE_IFF=no'
10122 fi
10123
10124else
10125
10126 LINE=`grep "wxUSE_IFF" ${wx_arg_cache_file}`
10127 if test "x$LINE" != x ; then
10128 eval "DEFAULT_$LINE"
10129 else
10130 no_cache=1
10131 fi
10132
10133 ac_cv_use_iff='wxUSE_IFF='$DEFAULT_wxUSE_IFF
10134
10135fi;
10136
10137 eval "$ac_cv_use_iff"
10138 if test "$no_cache" != 1; then
10139 echo $ac_cv_use_iff >> ${wx_arg_cache_file}.tmp
10140 fi
10141
10142 if test "$wxUSE_IFF" = yes; then
10143 echo "$as_me:$LINENO: result: yes" >&5
10144echo "${ECHO_T}yes" >&6
10145 else
10146 echo "$as_me:$LINENO: result: no" >&5
10147echo "${ECHO_T}no" >&6
10148 fi
10149
10150
10151 enablestring=
10152 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pnm" >&5
10153echo $ECHO_N "checking for --${enablestring:-enable}-pnm... $ECHO_C" >&6
10154 no_cache=0
10155 # Check whether --enable-pnm or --disable-pnm was given.
10156if test "${enable_pnm+set}" = set; then
10157 enableval="$enable_pnm"
10158
10159 if test "$enableval" = yes; then
10160 ac_cv_use_pnm='wxUSE_PNM=yes'
10161 else
10162 ac_cv_use_pnm='wxUSE_PNM=no'
10163 fi
10164
10165else
10166
10167 LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}`
10168 if test "x$LINE" != x ; then
10169 eval "DEFAULT_$LINE"
10170 else
10171 no_cache=1
10172 fi
10173
10174 ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM
10175
10176fi;
10177
10178 eval "$ac_cv_use_pnm"
10179 if test "$no_cache" != 1; then
10180 echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp
10181 fi
10182
10183 if test "$wxUSE_PNM" = yes; then
10184 echo "$as_me:$LINENO: result: yes" >&5
10185echo "${ECHO_T}yes" >&6
10186 else
10187 echo "$as_me:$LINENO: result: no" >&5
10188echo "${ECHO_T}no" >&6
10189 fi
10190
10191
10192 enablestring=
10193 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xpm" >&5
10194echo $ECHO_N "checking for --${enablestring:-enable}-xpm... $ECHO_C" >&6
10195 no_cache=0
10196 # Check whether --enable-xpm or --disable-xpm was given.
10197if test "${enable_xpm+set}" = set; then
10198 enableval="$enable_xpm"
10199
10200 if test "$enableval" = yes; then
10201 ac_cv_use_xpm='wxUSE_XPM=yes'
10202 else
10203 ac_cv_use_xpm='wxUSE_XPM=no'
10204 fi
10205
10206else
10207
10208 LINE=`grep "wxUSE_XPM" ${wx_arg_cache_file}`
10209 if test "x$LINE" != x ; then
10210 eval "DEFAULT_$LINE"
10211 else
10212 no_cache=1
10213 fi
10214
10215 ac_cv_use_xpm='wxUSE_XPM='$DEFAULT_wxUSE_XPM
10216
10217fi;
10218
10219 eval "$ac_cv_use_xpm"
10220 if test "$no_cache" != 1; then
10221 echo $ac_cv_use_xpm >> ${wx_arg_cache_file}.tmp
10222 fi
10223
10224 if test "$wxUSE_XPM" = yes; then
10225 echo "$as_me:$LINENO: result: yes" >&5
10226echo "${ECHO_T}yes" >&6
10227 else
10228 echo "$as_me:$LINENO: result: no" >&5
10229echo "${ECHO_T}no" >&6
10230 fi
10231
10232
10233 enablestring=
10234 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ico_cur" >&5
10235echo $ECHO_N "checking for --${enablestring:-enable}-ico_cur... $ECHO_C" >&6
10236 no_cache=0
10237 # Check whether --enable-ico_cur or --disable-ico_cur was given.
10238if test "${enable_ico_cur+set}" = set; then
10239 enableval="$enable_ico_cur"
10240
10241 if test "$enableval" = yes; then
10242 ac_cv_use_ico_cur='wxUSE_ICO_CUR=yes'
10243 else
10244 ac_cv_use_ico_cur='wxUSE_ICO_CUR=no'
10245 fi
10246
10247else
10248
10249 LINE=`grep "wxUSE_ICO_CUR" ${wx_arg_cache_file}`
10250 if test "x$LINE" != x ; then
10251 eval "DEFAULT_$LINE"
10252 else
10253 no_cache=1
10254 fi
10255
10256 ac_cv_use_ico_cur='wxUSE_ICO_CUR='$DEFAULT_wxUSE_ICO_CUR
10257
10258fi;
10259
10260 eval "$ac_cv_use_ico_cur"
10261 if test "$no_cache" != 1; then
10262 echo $ac_cv_use_ico_cur >> ${wx_arg_cache_file}.tmp
10263 fi
10264
10265 if test "$wxUSE_ICO_CUR" = yes; then
10266 echo "$as_me:$LINENO: result: yes" >&5
10267echo "${ECHO_T}yes" >&6
10268 else
10269 echo "$as_me:$LINENO: result: no" >&5
10270echo "${ECHO_T}no" >&6
10271 fi
10272
10273
10274fi
10275
10276
10277
ceec2216
RL
10278# Check whether --with-flavour or --without-flavour was given.
10279if test "${with_flavour+set}" = set; then
10280 withval="$with_flavour"
10281 WX_FLAVOUR="$withval"
10282fi;
10283
10284
10285
a848cd7e
SC
10286 enablestring=
10287 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-official_build" >&5
10288echo $ECHO_N "checking for --${enablestring:-enable}-official_build... $ECHO_C" >&6
10289 no_cache=0
10290 # Check whether --enable-official_build or --disable-official_build was given.
10291if test "${enable_official_build+set}" = set; then
10292 enableval="$enable_official_build"
10293
10294 if test "$enableval" = yes; then
10295 ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD=yes'
10296 else
10297 ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD=no'
10298 fi
10299
10300else
10301
10302 LINE=`grep "wxUSE_OFFICIAL_BUILD" ${wx_arg_cache_file}`
10303 if test "x$LINE" != x ; then
10304 eval "DEFAULT_$LINE"
10305 else
10306 no_cache=1
10307 fi
10308
10309 ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD='$DEFAULT_wxUSE_OFFICIAL_BUILD
10310
10311fi;
10312
10313 eval "$ac_cv_use_official_build"
10314 if test "$no_cache" != 1; then
10315 echo $ac_cv_use_official_build >> ${wx_arg_cache_file}.tmp
10316 fi
10317
10318 if test "$wxUSE_OFFICIAL_BUILD" = yes; then
10319 echo "$as_me:$LINENO: result: yes" >&5
10320echo "${ECHO_T}yes" >&6
10321 else
10322 echo "$as_me:$LINENO: result: no" >&5
10323echo "${ECHO_T}no" >&6
10324 fi
10325
10326# Check whether --enable-vendor or --disable-vendor was given.
10327if test "${enable_vendor+set}" = set; then
10328 enableval="$enable_vendor"
10329 VENDOR="$enableval"
10330fi;
10331if test "x$VENDOR" = "x"; then
10332 VENDOR="custom"
10333fi
10334
a848cd7e
SC
10335
10336
10337
10338 echo "saving argument cache $wx_arg_cache_file"
10339 mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file}
10340
10341
10342
10343echo "$as_me:$LINENO: checking for toolkit" >&5
10344echo $ECHO_N "checking for toolkit... $ECHO_C" >&6
10345
10346# In Wine, we need to default to MSW, not GTK or MOTIF
10347if test "$wxUSE_WINE" = "yes"; then
10348 DEFAULT_DEFAULT_wxUSE_GTK=0
10349 DEFAULT_DEFAULT_wxUSE_MOTIF=0
10350 DEFAULT_DEFAULT_wxUSE_MSW=1
10351 wxUSE_SHARED=no
10352fi
10353
10354if test "$wxUSE_GUI" = "yes"; then
10355
10356 if test "$USE_BEOS" = 1; then
10357 { { echo "$as_me:$LINENO: error: BeOS GUI is not supported yet, use --disable-gui" >&5
10358echo "$as_me: error: BeOS GUI is not supported yet, use --disable-gui" >&2;}
10359 { (exit 1); exit 1; }; }
10360 fi
10361
10362 if test "$TOOLKIT_GIVEN" = 1; then
10363 for toolkit in `echo $ALL_TOOLKITS`; do
10364 var=wxUSE_$toolkit
10365 eval "value=\$${var}"
10366 eval "$var=`echo \$value | sed -e "s/yes/1/" -e "s/no/0/"`"
10367 done
10368 else
10369 for toolkit in `echo $ALL_TOOLKITS`; do
10370 if test "$has_toolkit_in_cache" != 1; then
10371 var=DEFAULT_DEFAULT_wxUSE_$toolkit
10372 else
10373 var=DEFAULT_wxUSE_$toolkit
10374 fi
10375 eval "wxUSE_$toolkit=\$${var}"
10376 done
10377 fi
10378
10379 NUM_TOOLKITS=`expr ${wxUSE_COCOA:-0} + ${wxUSE_GTK:-0} + ${wxUSE_MAC:-0} \
10380 + ${wxUSE_MGL:-0} + ${wxUSE_MICROWIN:-0} \
10381 + ${wxUSE_MOTIF:-0} + ${wxUSE_MSW:-0} + ${wxUSE_X11:-0}`
10382
10383 case "${host}" in
10384 *-pc-os2_emx | *-pc-os2-emx )
10385 NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}`
10386 esac
10387
10388 case "$NUM_TOOLKITS" in
10389 1)
10390 ;;
10391 0)
10392 { { echo "$as_me:$LINENO: error: Please specify a toolkit -- cannot determine the default for ${host}" >&5
10393echo "$as_me: error: Please specify a toolkit -- cannot determine the default for ${host}" >&2;}
10394 { (exit 1); exit 1; }; }
10395 ;;
10396 *)
10397 { { echo "$as_me:$LINENO: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&5
10398echo "$as_me: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&2;}
10399 { (exit 1); exit 1; }; }
10400 esac
10401
10402 for toolkit in `echo $ALL_TOOLKITS`; do
10403 var=wxUSE_$toolkit
10404 eval "value=\$${var}"
10405 if test "x$value" != x; then
10406 cache_var=CACHE_$toolkit
10407 eval "cache=\$${cache_var}"
10408 if test "$cache" = 1; then
10409 echo "$var=$value" >> ${wx_arg_cache_file}
10410 fi
10411 if test "$value" = 1; then
10412 toolkit_echo=`echo $toolkit | tr "[A-Z]" "[a-z]"`
10413 echo "$as_me:$LINENO: result: $toolkit_echo" >&5
10414echo "${ECHO_T}$toolkit_echo" >&6
10415 fi
10416 fi
10417 done
10418else
10419 if test "x$host_alias" != "x"; then
10420 echo "$as_me:$LINENO: result: base ($host_alias hosted) only" >&5
10421echo "${ECHO_T}base ($host_alias hosted) only" >&6
10422 else
10423 echo "$as_me:$LINENO: result: base only" >&5
10424echo "${ECHO_T}base only" >&6
10425 fi
10426fi
10427
10428wants_win32=0
10429doesnt_want_win32=0
10430case "${host}" in
10431 *-*-cygwin*)
10432 if test "$wxUSE_MSW" = 1 ; then
10433 wants_win32=1
10434 else
10435 doesnt_want_win32=1
10436 fi
10437 ;;
10438 *-*-mingw*)
10439 wants_win32=1
10440 ;;
10441esac
10442
10443if test "$wxUSE_WINE" = "yes"; then
10444 wants_win32=1
10445 CC=winegcc
10446 CXX=wineg++
10447 RESCOMP=wrc
10448 LDFLAGS_GUI="-mwindows"
10449fi
10450
10451if test "$wants_win32" = 1 ; then
10452 USE_UNIX=0
10453 USE_WIN32=1
10454 cat >>confdefs.h <<\_ACEOF
10455#define __WIN32__ 1
10456_ACEOF
10457
10458 cat >>confdefs.h <<\_ACEOF
10459#define __WIN95__ 1
10460_ACEOF
10461
10462 cat >>confdefs.h <<\_ACEOF
10463#define __WINDOWS__ 1
10464_ACEOF
10465
10466 cat >>confdefs.h <<\_ACEOF
10467#define __GNUWIN32__ 1
10468_ACEOF
10469
10470 cat >>confdefs.h <<\_ACEOF
10471#define STRICT 1
10472_ACEOF
10473
10474 cat >>confdefs.h <<\_ACEOF
10475#define WINVER 0x0400
10476_ACEOF
10477
10478fi
10479if test "$doesnt_want_win32" = 1 ; then
10480 USE_UNIX=1
10481 USE_WIN32=0
10482fi
10483
10484if test "$USE_UNIX" = 1 ; then
10485 wxUSE_UNIX=yes
10486 cat >>confdefs.h <<\_ACEOF
10487#define __UNIX__ 1
10488_ACEOF
10489
10490fi
10491
10492
10493cat >confcache <<\_ACEOF
10494# This file is a shell script that caches the results of configure
10495# tests run on this system so they can be shared between configure
10496# scripts and configure runs, see configure's option --config-cache.
10497# It is not useful on other systems. If it contains results you don't
10498# want to keep, you may remove or edit it.
10499#
10500# config.status only pays attention to the cache file if you give it
10501# the --recheck option to rerun configure.
10502#
10503# `ac_cv_env_foo' variables (set or unset) will be overridden when
10504# loading this file, other *unset* `ac_cv_foo' will be assigned the
10505# following values.
10506
10507_ACEOF
10508
10509# The following way of writing the cache mishandles newlines in values,
10510# but we know of no workaround that is simple, portable, and efficient.
10511# So, don't put newlines in cache variables' values.
10512# Ultrix sh set writes to stderr and can't be redirected directly,
10513# and sets the high bit in the cache file unless we assign to the vars.
10514{
10515 (set) 2>&1 |
10516 case `(ac_space=' '; set | grep ac_space) 2>&1` in
10517 *ac_space=\ *)
10518 # `set' does not quote correctly, so add quotes (double-quote
10519 # substitution turns \\\\ into \\, and sed turns \\ into \).
10520 sed -n \
ac1cb8d3
VS
10521 "s/'/'\\\\''/g;
10522 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a848cd7e
SC
10523 ;;
10524 *)
10525 # `set' quotes correctly as required by POSIX, so do not add quotes.
10526 sed -n \
ac1cb8d3 10527 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
10528 ;;
10529 esac;
10530} |
10531 sed '
10532 t clear
10533 : clear
10534 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10535 t end
10536 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10537 : end' >>confcache
10538if diff $cache_file confcache >/dev/null 2>&1; then :; else
10539 if test -w $cache_file; then
10540 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
10541 cat confcache >$cache_file
10542 else
10543 echo "not updating unwritable cache $cache_file"
10544 fi
10545fi
10546rm -f confcache
10547
10548if test "$build" != "$host" ; then
1e9e8aba 10549 if test "$USE_WIN32" = 1 -o "$USE_DOS" = 1 -o "$USE_UNIX" = 1; then
a848cd7e
SC
10550 CC=$host_alias-gcc
10551 CXX=$host_alias-c++
10552 AR=$host_alias-ar
10553 RANLIB=$host_alias-ranlib
10554 DLLTOOL=$host_alias-dlltool
10555 RESCOMP=$host_alias-windres
a848cd7e 10556 STRIP=$host_alias-strip
1e9e8aba
DE
10557 elif test "x$CC" '!=' "x"; then
10558 echo "You set CC, I assume you know what you are doing."
a848cd7e
SC
10559 else
10560 { { echo "$as_me:$LINENO: error: $build_alias -> $host_alias cross compilation not supported yet." >&5
10561echo "$as_me: error: $build_alias -> $host_alias cross compilation not supported yet." >&2;}
10562 { (exit 1); exit 1; }; }
10563 fi
10564fi
10565
10566CFLAGS=${CFLAGS:=}
10567ac_ext=c
10568ac_cpp='$CPP $CPPFLAGS'
10569ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10570ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10571ac_compiler_gnu=$ac_cv_c_compiler_gnu
10572if test -n "$ac_tool_prefix"; then
10573 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
10574set dummy ${ac_tool_prefix}gcc; ac_word=$2
10575echo "$as_me:$LINENO: checking for $ac_word" >&5
10576echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10577if test "${ac_cv_prog_CC+set}" = set; then
10578 echo $ECHO_N "(cached) $ECHO_C" >&6
10579else
10580 if test -n "$CC"; then
10581 ac_cv_prog_CC="$CC" # Let the user override the test.
10582else
10583as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10584for as_dir in $PATH
10585do
10586 IFS=$as_save_IFS
10587 test -z "$as_dir" && as_dir=.
10588 for ac_exec_ext in '' $ac_executable_extensions; do
10589 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10590 ac_cv_prog_CC="${ac_tool_prefix}gcc"
10591 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10592 break 2
10593 fi
10594done
10595done
10596
10597fi
10598fi
10599CC=$ac_cv_prog_CC
10600if test -n "$CC"; then
10601 echo "$as_me:$LINENO: result: $CC" >&5
10602echo "${ECHO_T}$CC" >&6
10603else
10604 echo "$as_me:$LINENO: result: no" >&5
10605echo "${ECHO_T}no" >&6
10606fi
10607
10608fi
10609if test -z "$ac_cv_prog_CC"; then
10610 ac_ct_CC=$CC
10611 # Extract the first word of "gcc", so it can be a program name with args.
10612set dummy gcc; ac_word=$2
10613echo "$as_me:$LINENO: checking for $ac_word" >&5
10614echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10615if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
10616 echo $ECHO_N "(cached) $ECHO_C" >&6
10617else
10618 if test -n "$ac_ct_CC"; then
10619 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
10620else
10621as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10622for as_dir in $PATH
10623do
10624 IFS=$as_save_IFS
10625 test -z "$as_dir" && as_dir=.
10626 for ac_exec_ext in '' $ac_executable_extensions; do
10627 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10628 ac_cv_prog_ac_ct_CC="gcc"
10629 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10630 break 2
10631 fi
10632done
10633done
10634
10635fi
10636fi
10637ac_ct_CC=$ac_cv_prog_ac_ct_CC
10638if test -n "$ac_ct_CC"; then
10639 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
10640echo "${ECHO_T}$ac_ct_CC" >&6
10641else
10642 echo "$as_me:$LINENO: result: no" >&5
10643echo "${ECHO_T}no" >&6
10644fi
10645
10646 CC=$ac_ct_CC
10647else
10648 CC="$ac_cv_prog_CC"
10649fi
10650
10651if test -z "$CC"; then
10652 if test -n "$ac_tool_prefix"; then
10653 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
10654set dummy ${ac_tool_prefix}cc; ac_word=$2
10655echo "$as_me:$LINENO: checking for $ac_word" >&5
10656echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10657if test "${ac_cv_prog_CC+set}" = set; then
10658 echo $ECHO_N "(cached) $ECHO_C" >&6
10659else
10660 if test -n "$CC"; then
10661 ac_cv_prog_CC="$CC" # Let the user override the test.
10662else
10663as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10664for as_dir in $PATH
10665do
10666 IFS=$as_save_IFS
10667 test -z "$as_dir" && as_dir=.
10668 for ac_exec_ext in '' $ac_executable_extensions; do
10669 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10670 ac_cv_prog_CC="${ac_tool_prefix}cc"
10671 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10672 break 2
10673 fi
10674done
10675done
10676
10677fi
10678fi
10679CC=$ac_cv_prog_CC
10680if test -n "$CC"; then
10681 echo "$as_me:$LINENO: result: $CC" >&5
10682echo "${ECHO_T}$CC" >&6
10683else
10684 echo "$as_me:$LINENO: result: no" >&5
10685echo "${ECHO_T}no" >&6
10686fi
10687
10688fi
10689if test -z "$ac_cv_prog_CC"; then
10690 ac_ct_CC=$CC
10691 # Extract the first word of "cc", so it can be a program name with args.
10692set dummy cc; ac_word=$2
10693echo "$as_me:$LINENO: checking for $ac_word" >&5
10694echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10695if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
10696 echo $ECHO_N "(cached) $ECHO_C" >&6
10697else
10698 if test -n "$ac_ct_CC"; then
10699 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
10700else
10701as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10702for as_dir in $PATH
10703do
10704 IFS=$as_save_IFS
10705 test -z "$as_dir" && as_dir=.
10706 for ac_exec_ext in '' $ac_executable_extensions; do
10707 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10708 ac_cv_prog_ac_ct_CC="cc"
10709 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10710 break 2
10711 fi
10712done
10713done
10714
10715fi
10716fi
10717ac_ct_CC=$ac_cv_prog_ac_ct_CC
10718if test -n "$ac_ct_CC"; then
10719 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
10720echo "${ECHO_T}$ac_ct_CC" >&6
10721else
10722 echo "$as_me:$LINENO: result: no" >&5
10723echo "${ECHO_T}no" >&6
10724fi
10725
10726 CC=$ac_ct_CC
10727else
10728 CC="$ac_cv_prog_CC"
10729fi
10730
10731fi
10732if test -z "$CC"; then
10733 # Extract the first word of "cc", so it can be a program name with args.
10734set dummy cc; ac_word=$2
10735echo "$as_me:$LINENO: checking for $ac_word" >&5
10736echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10737if test "${ac_cv_prog_CC+set}" = set; then
10738 echo $ECHO_N "(cached) $ECHO_C" >&6
10739else
10740 if test -n "$CC"; then
10741 ac_cv_prog_CC="$CC" # Let the user override the test.
10742else
10743 ac_prog_rejected=no
10744as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10745for as_dir in $PATH
10746do
10747 IFS=$as_save_IFS
10748 test -z "$as_dir" && as_dir=.
10749 for ac_exec_ext in '' $ac_executable_extensions; do
10750 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10751 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
10752 ac_prog_rejected=yes
10753 continue
10754 fi
10755 ac_cv_prog_CC="cc"
10756 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10757 break 2
10758 fi
10759done
10760done
10761
10762if test $ac_prog_rejected = yes; then
10763 # We found a bogon in the path, so make sure we never use it.
10764 set dummy $ac_cv_prog_CC
10765 shift
10766 if test $# != 0; then
10767 # We chose a different compiler from the bogus one.
10768 # However, it has the same basename, so the bogon will be chosen
10769 # first if we set CC to just the basename; use the full file name.
10770 shift
10771 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
10772 fi
10773fi
10774fi
10775fi
10776CC=$ac_cv_prog_CC
10777if test -n "$CC"; then
10778 echo "$as_me:$LINENO: result: $CC" >&5
10779echo "${ECHO_T}$CC" >&6
10780else
10781 echo "$as_me:$LINENO: result: no" >&5
10782echo "${ECHO_T}no" >&6
10783fi
10784
10785fi
10786if test -z "$CC"; then
10787 if test -n "$ac_tool_prefix"; then
10788 for ac_prog in cl
10789 do
10790 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10791set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10792echo "$as_me:$LINENO: checking for $ac_word" >&5
10793echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10794if test "${ac_cv_prog_CC+set}" = set; then
10795 echo $ECHO_N "(cached) $ECHO_C" >&6
10796else
10797 if test -n "$CC"; then
10798 ac_cv_prog_CC="$CC" # Let the user override the test.
10799else
10800as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10801for as_dir in $PATH
10802do
10803 IFS=$as_save_IFS
10804 test -z "$as_dir" && as_dir=.
10805 for ac_exec_ext in '' $ac_executable_extensions; do
10806 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10807 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
10808 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10809 break 2
10810 fi
10811done
10812done
10813
10814fi
10815fi
10816CC=$ac_cv_prog_CC
10817if test -n "$CC"; then
10818 echo "$as_me:$LINENO: result: $CC" >&5
10819echo "${ECHO_T}$CC" >&6
10820else
10821 echo "$as_me:$LINENO: result: no" >&5
10822echo "${ECHO_T}no" >&6
10823fi
10824
10825 test -n "$CC" && break
10826 done
10827fi
10828if test -z "$CC"; then
10829 ac_ct_CC=$CC
10830 for ac_prog in cl
10831do
10832 # Extract the first word of "$ac_prog", so it can be a program name with args.
10833set dummy $ac_prog; ac_word=$2
10834echo "$as_me:$LINENO: checking for $ac_word" >&5
10835echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10836if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
10837 echo $ECHO_N "(cached) $ECHO_C" >&6
10838else
10839 if test -n "$ac_ct_CC"; then
10840 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
10841else
10842as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10843for as_dir in $PATH
10844do
10845 IFS=$as_save_IFS
10846 test -z "$as_dir" && as_dir=.
10847 for ac_exec_ext in '' $ac_executable_extensions; do
10848 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10849 ac_cv_prog_ac_ct_CC="$ac_prog"
10850 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10851 break 2
10852 fi
10853done
10854done
10855
10856fi
10857fi
10858ac_ct_CC=$ac_cv_prog_ac_ct_CC
10859if test -n "$ac_ct_CC"; then
10860 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
10861echo "${ECHO_T}$ac_ct_CC" >&6
10862else
10863 echo "$as_me:$LINENO: result: no" >&5
10864echo "${ECHO_T}no" >&6
10865fi
10866
10867 test -n "$ac_ct_CC" && break
10868done
10869
10870 CC=$ac_ct_CC
10871fi
10872
10873fi
10874
10875
10876test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
10877See \`config.log' for more details." >&5
10878echo "$as_me: error: no acceptable C compiler found in \$PATH
10879See \`config.log' for more details." >&2;}
10880 { (exit 1); exit 1; }; }
10881
10882# Provide some information about the compiler.
10883echo "$as_me:$LINENO:" \
10884 "checking for C compiler version" >&5
10885ac_compiler=`set X $ac_compile; echo $2`
10886{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
10887 (eval $ac_compiler --version </dev/null >&5) 2>&5
10888 ac_status=$?
10889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10890 (exit $ac_status); }
10891{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
10892 (eval $ac_compiler -v </dev/null >&5) 2>&5
10893 ac_status=$?
10894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10895 (exit $ac_status); }
10896{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
10897 (eval $ac_compiler -V </dev/null >&5) 2>&5
10898 ac_status=$?
10899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10900 (exit $ac_status); }
10901
10902cat >conftest.$ac_ext <<_ACEOF
10903/* confdefs.h. */
10904_ACEOF
10905cat confdefs.h >>conftest.$ac_ext
10906cat >>conftest.$ac_ext <<_ACEOF
10907/* end confdefs.h. */
10908
10909int
10910main ()
10911{
10912
10913 ;
10914 return 0;
10915}
10916_ACEOF
10917ac_clean_files_save=$ac_clean_files
10918ac_clean_files="$ac_clean_files a.out a.exe b.out"
10919# Try to create an executable without -o first, disregard a.out.
10920# It will help us diagnose broken compilers, and finding out an intuition
10921# of exeext.
ac1cb8d3
VS
10922echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
10923echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
a848cd7e
SC
10924ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
10925if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
10926 (eval $ac_link_default) 2>&5
10927 ac_status=$?
10928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10929 (exit $ac_status); }; then
10930 # Find the output, starting from the most likely. This scheme is
10931# not robust to junk in `.', hence go to wildcards (a.*) only as a last
10932# resort.
10933
10934# Be careful to initialize this variable, since it used to be cached.
10935# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
10936ac_cv_exeext=
10937# b.out is created by i960 compilers.
10938for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
10939do
10940 test -f "$ac_file" || continue
10941 case $ac_file in
10942 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
ac1cb8d3 10943 ;;
a848cd7e 10944 conftest.$ac_ext )
ac1cb8d3
VS
10945 # This is the source file.
10946 ;;
a848cd7e 10947 [ab].out )
ac1cb8d3
VS
10948 # We found the default executable, but exeext='' is most
10949 # certainly right.
10950 break;;
a848cd7e 10951 *.* )
ac1cb8d3
VS
10952 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
10953 # FIXME: I believe we export ac_cv_exeext for Libtool,
10954 # but it would be cool to find out if it's true. Does anybody
10955 # maintain Libtool? --akim.
10956 export ac_cv_exeext
10957 break;;
a848cd7e 10958 * )
ac1cb8d3 10959 break;;
a848cd7e
SC
10960 esac
10961done
10962else
10963 echo "$as_me: failed program was:" >&5
10964sed 's/^/| /' conftest.$ac_ext >&5
10965
10966{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
10967See \`config.log' for more details." >&5
10968echo "$as_me: error: C compiler cannot create executables
10969See \`config.log' for more details." >&2;}
10970 { (exit 77); exit 77; }; }
10971fi
10972
10973ac_exeext=$ac_cv_exeext
10974echo "$as_me:$LINENO: result: $ac_file" >&5
10975echo "${ECHO_T}$ac_file" >&6
10976
10977# Check the compiler produces executables we can run. If not, either
10978# the compiler is broken, or we cross compile.
10979echo "$as_me:$LINENO: checking whether the C compiler works" >&5
10980echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
10981# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
10982# If not cross compiling, check that we can run a simple program.
10983if test "$cross_compiling" != yes; then
10984 if { ac_try='./$ac_file'
10985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10986 (eval $ac_try) 2>&5
10987 ac_status=$?
10988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10989 (exit $ac_status); }; }; then
10990 cross_compiling=no
10991 else
10992 if test "$cross_compiling" = maybe; then
10993 cross_compiling=yes
10994 else
10995 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
10996If you meant to cross compile, use \`--host'.
10997See \`config.log' for more details." >&5
10998echo "$as_me: error: cannot run C compiled programs.
10999If you meant to cross compile, use \`--host'.
11000See \`config.log' for more details." >&2;}
11001 { (exit 1); exit 1; }; }
11002 fi
11003 fi
11004fi
11005echo "$as_me:$LINENO: result: yes" >&5
11006echo "${ECHO_T}yes" >&6
11007
11008rm -f a.out a.exe conftest$ac_cv_exeext b.out
11009ac_clean_files=$ac_clean_files_save
11010# Check the compiler produces executables we can run. If not, either
11011# the compiler is broken, or we cross compile.
11012echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
11013echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
11014echo "$as_me:$LINENO: result: $cross_compiling" >&5
11015echo "${ECHO_T}$cross_compiling" >&6
11016
11017echo "$as_me:$LINENO: checking for suffix of executables" >&5
11018echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
11019if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11020 (eval $ac_link) 2>&5
11021 ac_status=$?
11022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11023 (exit $ac_status); }; then
11024 # If both `conftest.exe' and `conftest' are `present' (well, observable)
11025# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
11026# work properly (i.e., refer to `conftest.exe'), while it won't with
11027# `rm'.
11028for ac_file in conftest.exe conftest conftest.*; do
11029 test -f "$ac_file" || continue
11030 case $ac_file in
11031 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
11032 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
ac1cb8d3
VS
11033 export ac_cv_exeext
11034 break;;
a848cd7e
SC
11035 * ) break;;
11036 esac
11037done
11038else
11039 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
11040See \`config.log' for more details." >&5
11041echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
11042See \`config.log' for more details." >&2;}
11043 { (exit 1); exit 1; }; }
11044fi
11045
11046rm -f conftest$ac_cv_exeext
11047echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
11048echo "${ECHO_T}$ac_cv_exeext" >&6
11049
11050rm -f conftest.$ac_ext
11051EXEEXT=$ac_cv_exeext
11052ac_exeext=$EXEEXT
11053echo "$as_me:$LINENO: checking for suffix of object files" >&5
11054echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
11055if test "${ac_cv_objext+set}" = set; then
11056 echo $ECHO_N "(cached) $ECHO_C" >&6
11057else
11058 cat >conftest.$ac_ext <<_ACEOF
11059/* confdefs.h. */
11060_ACEOF
11061cat confdefs.h >>conftest.$ac_ext
11062cat >>conftest.$ac_ext <<_ACEOF
11063/* end confdefs.h. */
11064
11065int
11066main ()
11067{
11068
11069 ;
11070 return 0;
11071}
11072_ACEOF
11073rm -f conftest.o conftest.obj
11074if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11075 (eval $ac_compile) 2>&5
11076 ac_status=$?
11077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11078 (exit $ac_status); }; then
11079 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
11080 case $ac_file in
11081 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
11082 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
11083 break;;
11084 esac
11085done
11086else
11087 echo "$as_me: failed program was:" >&5
11088sed 's/^/| /' conftest.$ac_ext >&5
11089
11090{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
11091See \`config.log' for more details." >&5
11092echo "$as_me: error: cannot compute suffix of object files: cannot compile
11093See \`config.log' for more details." >&2;}
11094 { (exit 1); exit 1; }; }
11095fi
11096
11097rm -f conftest.$ac_cv_objext conftest.$ac_ext
11098fi
11099echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
11100echo "${ECHO_T}$ac_cv_objext" >&6
11101OBJEXT=$ac_cv_objext
11102ac_objext=$OBJEXT
11103echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
11104echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
11105if test "${ac_cv_c_compiler_gnu+set}" = set; then
11106 echo $ECHO_N "(cached) $ECHO_C" >&6
11107else
11108 cat >conftest.$ac_ext <<_ACEOF
11109/* confdefs.h. */
11110_ACEOF
11111cat confdefs.h >>conftest.$ac_ext
11112cat >>conftest.$ac_ext <<_ACEOF
11113/* end confdefs.h. */
11114
11115int
11116main ()
11117{
11118#ifndef __GNUC__
11119 choke me
11120#endif
11121
11122 ;
11123 return 0;
11124}
11125_ACEOF
11126rm -f conftest.$ac_objext
11127if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11128 (eval $ac_compile) 2>conftest.er1
a848cd7e 11129 ac_status=$?
ac1cb8d3
VS
11130 grep -v '^ *+' conftest.er1 >conftest.err
11131 rm -f conftest.er1
11132 cat conftest.err >&5
a848cd7e
SC
11133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11134 (exit $ac_status); } &&
07158944 11135 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
11136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11137 (eval $ac_try) 2>&5
11138 ac_status=$?
11139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11140 (exit $ac_status); }; } &&
11141 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11143 (eval $ac_try) 2>&5
11144 ac_status=$?
11145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11146 (exit $ac_status); }; }; then
11147 ac_compiler_gnu=yes
11148else
11149 echo "$as_me: failed program was:" >&5
11150sed 's/^/| /' conftest.$ac_ext >&5
11151
11152ac_compiler_gnu=no
11153fi
ac1cb8d3 11154rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11155ac_cv_c_compiler_gnu=$ac_compiler_gnu
11156
11157fi
11158echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
11159echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
11160GCC=`test $ac_compiler_gnu = yes && echo yes`
11161ac_test_CFLAGS=${CFLAGS+set}
11162ac_save_CFLAGS=$CFLAGS
11163CFLAGS="-g"
11164echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
11165echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
11166if test "${ac_cv_prog_cc_g+set}" = set; then
11167 echo $ECHO_N "(cached) $ECHO_C" >&6
11168else
11169 cat >conftest.$ac_ext <<_ACEOF
11170/* confdefs.h. */
11171_ACEOF
11172cat confdefs.h >>conftest.$ac_ext
11173cat >>conftest.$ac_ext <<_ACEOF
11174/* end confdefs.h. */
11175
11176int
11177main ()
11178{
11179
11180 ;
11181 return 0;
11182}
11183_ACEOF
11184rm -f conftest.$ac_objext
11185if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11186 (eval $ac_compile) 2>conftest.er1
a848cd7e 11187 ac_status=$?
ac1cb8d3
VS
11188 grep -v '^ *+' conftest.er1 >conftest.err
11189 rm -f conftest.er1
11190 cat conftest.err >&5
a848cd7e
SC
11191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11192 (exit $ac_status); } &&
07158944 11193 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
11194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11195 (eval $ac_try) 2>&5
11196 ac_status=$?
11197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11198 (exit $ac_status); }; } &&
11199 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11201 (eval $ac_try) 2>&5
11202 ac_status=$?
11203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11204 (exit $ac_status); }; }; then
11205 ac_cv_prog_cc_g=yes
11206else
11207 echo "$as_me: failed program was:" >&5
11208sed 's/^/| /' conftest.$ac_ext >&5
11209
11210ac_cv_prog_cc_g=no
11211fi
ac1cb8d3 11212rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11213fi
11214echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
11215echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
11216if test "$ac_test_CFLAGS" = set; then
11217 CFLAGS=$ac_save_CFLAGS
11218elif test $ac_cv_prog_cc_g = yes; then
11219 if test "$GCC" = yes; then
11220 CFLAGS="-g -O2"
11221 else
11222 CFLAGS="-g"
11223 fi
11224else
11225 if test "$GCC" = yes; then
11226 CFLAGS="-O2"
11227 else
11228 CFLAGS=
11229 fi
11230fi
11231echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
11232echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
11233if test "${ac_cv_prog_cc_stdc+set}" = set; then
11234 echo $ECHO_N "(cached) $ECHO_C" >&6
11235else
11236 ac_cv_prog_cc_stdc=no
11237ac_save_CC=$CC
11238cat >conftest.$ac_ext <<_ACEOF
11239/* confdefs.h. */
11240_ACEOF
11241cat confdefs.h >>conftest.$ac_ext
11242cat >>conftest.$ac_ext <<_ACEOF
11243/* end confdefs.h. */
11244#include <stdarg.h>
11245#include <stdio.h>
11246#include <sys/types.h>
11247#include <sys/stat.h>
11248/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
11249struct buf { int x; };
11250FILE * (*rcsopen) (struct buf *, struct stat *, int);
11251static char *e (p, i)
11252 char **p;
11253 int i;
11254{
11255 return p[i];
11256}
11257static char *f (char * (*g) (char **, int), char **p, ...)
11258{
11259 char *s;
11260 va_list v;
11261 va_start (v,p);
11262 s = g (p, va_arg (v,int));
11263 va_end (v);
11264 return s;
11265}
ac1cb8d3
VS
11266
11267/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
11268 function prototypes and stuff, but not '\xHH' hex character constants.
11269 These don't provoke an error unfortunately, instead are silently treated
11270 as 'x'. The following induces an error, until -std1 is added to get
11271 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
11272 array size at least. It's necessary to write '\x00'==0 to get something
11273 that's true only with -std1. */
11274int osf4_cc_array ['\x00' == 0 ? 1 : -1];
11275
a848cd7e
SC
11276int test (int i, double x);
11277struct s1 {int (*f) (int a);};
11278struct s2 {int (*f) (double a);};
11279int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
11280int argc;
11281char **argv;
11282int
11283main ()
11284{
11285return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
11286 ;
11287 return 0;
11288}
11289_ACEOF
11290# Don't try gcc -ansi; that turns off useful extensions and
11291# breaks some systems' header files.
11292# AIX -qlanglvl=ansi
11293# Ultrix and OSF/1 -std1
11294# HP-UX 10.20 and later -Ae
11295# HP-UX older versions -Aa -D_HPUX_SOURCE
11296# SVR4 -Xc -D__EXTENSIONS__
11297for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
11298do
11299 CC="$ac_save_CC $ac_arg"
11300 rm -f conftest.$ac_objext
11301if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11302 (eval $ac_compile) 2>conftest.er1
a848cd7e 11303 ac_status=$?
ac1cb8d3
VS
11304 grep -v '^ *+' conftest.er1 >conftest.err
11305 rm -f conftest.er1
11306 cat conftest.err >&5
a848cd7e
SC
11307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11308 (exit $ac_status); } &&
07158944 11309 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
11310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11311 (eval $ac_try) 2>&5
11312 ac_status=$?
11313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11314 (exit $ac_status); }; } &&
11315 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11317 (eval $ac_try) 2>&5
11318 ac_status=$?
11319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11320 (exit $ac_status); }; }; then
11321 ac_cv_prog_cc_stdc=$ac_arg
11322break
11323else
11324 echo "$as_me: failed program was:" >&5
11325sed 's/^/| /' conftest.$ac_ext >&5
11326
11327fi
ac1cb8d3 11328rm -f conftest.err conftest.$ac_objext
a848cd7e
SC
11329done
11330rm -f conftest.$ac_ext conftest.$ac_objext
11331CC=$ac_save_CC
11332
11333fi
11334
11335case "x$ac_cv_prog_cc_stdc" in
11336 x|xno)
11337 echo "$as_me:$LINENO: result: none needed" >&5
11338echo "${ECHO_T}none needed" >&6 ;;
11339 *)
11340 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
11341echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
11342 CC="$CC $ac_cv_prog_cc_stdc" ;;
11343esac
11344
11345# Some people use a C++ compiler to compile C. Since we use `exit',
11346# in C++ we need to declare it. In case someone uses the same compiler
11347# for both compiling C and C++ we need to have the C++ compiler decide
11348# the declaration of exit, since it's the most demanding environment.
11349cat >conftest.$ac_ext <<_ACEOF
11350#ifndef __cplusplus
11351 choke me
11352#endif
11353_ACEOF
11354rm -f conftest.$ac_objext
11355if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11356 (eval $ac_compile) 2>conftest.er1
a848cd7e 11357 ac_status=$?
ac1cb8d3
VS
11358 grep -v '^ *+' conftest.er1 >conftest.err
11359 rm -f conftest.er1
11360 cat conftest.err >&5
a848cd7e
SC
11361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11362 (exit $ac_status); } &&
07158944 11363 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
11364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11365 (eval $ac_try) 2>&5
11366 ac_status=$?
11367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11368 (exit $ac_status); }; } &&
11369 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11371 (eval $ac_try) 2>&5
11372 ac_status=$?
11373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11374 (exit $ac_status); }; }; then
11375 for ac_declaration in \
ac1cb8d3 11376 '' \
a848cd7e
SC
11377 'extern "C" void std::exit (int) throw (); using std::exit;' \
11378 'extern "C" void std::exit (int); using std::exit;' \
11379 'extern "C" void exit (int) throw ();' \
11380 'extern "C" void exit (int);' \
11381 'void exit (int);'
11382do
11383 cat >conftest.$ac_ext <<_ACEOF
11384/* confdefs.h. */
11385_ACEOF
11386cat confdefs.h >>conftest.$ac_ext
11387cat >>conftest.$ac_ext <<_ACEOF
11388/* end confdefs.h. */
de59c161 11389$ac_declaration
ac1cb8d3 11390#include <stdlib.h>
a848cd7e
SC
11391int
11392main ()
11393{
11394exit (42);
11395 ;
11396 return 0;
11397}
11398_ACEOF
11399rm -f conftest.$ac_objext
11400if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11401 (eval $ac_compile) 2>conftest.er1
a848cd7e 11402 ac_status=$?
ac1cb8d3
VS
11403 grep -v '^ *+' conftest.er1 >conftest.err
11404 rm -f conftest.er1
11405 cat conftest.err >&5
a848cd7e
SC
11406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11407 (exit $ac_status); } &&
07158944 11408 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
11409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11410 (eval $ac_try) 2>&5
11411 ac_status=$?
11412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11413 (exit $ac_status); }; } &&
11414 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11416 (eval $ac_try) 2>&5
11417 ac_status=$?
11418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11419 (exit $ac_status); }; }; then
11420 :
11421else
11422 echo "$as_me: failed program was:" >&5
11423sed 's/^/| /' conftest.$ac_ext >&5
11424
11425continue
11426fi
ac1cb8d3 11427rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11428 cat >conftest.$ac_ext <<_ACEOF
11429/* confdefs.h. */
11430_ACEOF
11431cat confdefs.h >>conftest.$ac_ext
11432cat >>conftest.$ac_ext <<_ACEOF
11433/* end confdefs.h. */
11434$ac_declaration
11435int
11436main ()
11437{
11438exit (42);
11439 ;
11440 return 0;
11441}
11442_ACEOF
11443rm -f conftest.$ac_objext
11444if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11445 (eval $ac_compile) 2>conftest.er1
a848cd7e 11446 ac_status=$?
ac1cb8d3
VS
11447 grep -v '^ *+' conftest.er1 >conftest.err
11448 rm -f conftest.er1
11449 cat conftest.err >&5
a848cd7e
SC
11450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11451 (exit $ac_status); } &&
07158944 11452 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
11453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11454 (eval $ac_try) 2>&5
11455 ac_status=$?
11456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11457 (exit $ac_status); }; } &&
11458 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11460 (eval $ac_try) 2>&5
11461 ac_status=$?
11462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11463 (exit $ac_status); }; }; then
11464 break
11465else
11466 echo "$as_me: failed program was:" >&5
11467sed 's/^/| /' conftest.$ac_ext >&5
11468
11469fi
ac1cb8d3 11470rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11471done
11472rm -f conftest*
11473if test -n "$ac_declaration"; then
11474 echo '#ifdef __cplusplus' >>confdefs.h
11475 echo $ac_declaration >>confdefs.h
11476 echo '#endif' >>confdefs.h
11477fi
11478
11479else
11480 echo "$as_me: failed program was:" >&5
11481sed 's/^/| /' conftest.$ac_ext >&5
11482
11483fi
ac1cb8d3 11484rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11485ac_ext=c
11486ac_cpp='$CPP $CPPFLAGS'
11487ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11488ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11489ac_compiler_gnu=$ac_cv_c_compiler_gnu
11490
480ccd21
DE
11491echo "$as_me:$LINENO: checking if the C compiler requires -ext o" >&5
11492echo $ECHO_N "checking if the C compiler requires -ext o... $ECHO_C" >&6
11493if test "${wx_cv_c_exto+set}" = set; then
11494 echo $ECHO_N "(cached) $ECHO_C" >&6
11495else
11496 cat >conftest.$ac_ext <<_ACEOF
11497/* confdefs.h. */
11498_ACEOF
11499cat confdefs.h >>conftest.$ac_ext
11500cat >>conftest.$ac_ext <<_ACEOF
11501/* end confdefs.h. */
11502
11503int
11504main ()
11505{
11506
11507 ;
11508 return 0;
11509}
11510_ACEOF
11511rm -f conftest.$ac_objext conftest.$ac_ext.o
11512if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11513 (eval $ac_compile) 2>&5
11514 ac_status=$?
11515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11516 (exit $ac_status); }; then
11517 for ac_file in `(ls conftest.* 2>/dev/null)`; do
11518 case $ac_file in
11519 conftest.$ac_ext.o)
11520 wx_cv_c_exto="-ext o"
11521 ;;
11522 *)
11523 ;;
11524 esac
11525done
11526else
11527 { { echo "$as_me:$LINENO: error: cannot figure out if compiler needs -ext o: cannot compile
11528See \`config.log' for more details." >&5
11529echo "$as_me: error: cannot figure out if compiler needs -ext o: cannot compile
11530See \`config.log' for more details." >&2;}
11531 { (exit 1); exit 1; }; }
11532
11533fi
11534
11535rm -f conftest.$ac_ext.o conftest.$ac_objext conftest.$ac_ext
11536
11537fi
11538echo "$as_me:$LINENO: result: $wx_cv_c_exto" >&5
11539echo "${ECHO_T}$wx_cv_c_exto" >&6
11540if test "x$wx_cv_c_exto" '!=' "x"; then
11541 if test "c" = "c"; then
11542 CFLAGS="$wx_cv_c_exto $CFLAGS"
11543 fi
11544 if test "c" = "cxx"; then
11545 CXXFLAGS="$wx_cv_c_exto $CXXFLAGS"
11546 fi
11547fi
11548
11549if test "x$wx_cv_c_exto" '!=' "x"; then
11550 unset ac_cv_prog_cc_g
11551 ac_test_CFLAGS=${CFLAGS+set}
11552ac_save_CFLAGS=$CFLAGS
11553CFLAGS="-g"
11554echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
11555echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
11556if test "${ac_cv_prog_cc_g+set}" = set; then
11557 echo $ECHO_N "(cached) $ECHO_C" >&6
11558else
11559 cat >conftest.$ac_ext <<_ACEOF
11560/* confdefs.h. */
11561_ACEOF
11562cat confdefs.h >>conftest.$ac_ext
11563cat >>conftest.$ac_ext <<_ACEOF
11564/* end confdefs.h. */
11565
11566int
11567main ()
11568{
11569
11570 ;
11571 return 0;
11572}
11573_ACEOF
11574rm -f conftest.$ac_objext
11575if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11576 (eval $ac_compile) 2>conftest.er1
11577 ac_status=$?
11578 grep -v '^ *+' conftest.er1 >conftest.err
11579 rm -f conftest.er1
11580 cat conftest.err >&5
11581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11582 (exit $ac_status); } &&
07158944 11583 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
480ccd21
DE
11584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11585 (eval $ac_try) 2>&5
11586 ac_status=$?
11587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11588 (exit $ac_status); }; } &&
11589 { ac_try='test -s conftest.$ac_objext'
11590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11591 (eval $ac_try) 2>&5
11592 ac_status=$?
11593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11594 (exit $ac_status); }; }; then
11595 ac_cv_prog_cc_g=yes
11596else
11597 echo "$as_me: failed program was:" >&5
11598sed 's/^/| /' conftest.$ac_ext >&5
11599
11600ac_cv_prog_cc_g=no
11601fi
11602rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11603fi
11604echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
11605echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
11606if test "$ac_test_CFLAGS" = set; then
11607 CFLAGS=$ac_save_CFLAGS
11608elif test $ac_cv_prog_cc_g = yes; then
11609 if test "$GCC" = yes; then
11610 CFLAGS="-g -O2"
11611 else
11612 CFLAGS="-g"
11613 fi
11614else
11615 if test "$GCC" = yes; then
11616 CFLAGS="-O2"
11617 else
11618 CFLAGS=
11619 fi
11620fi
11621fi
a848cd7e 11622
95986553
DE
11623ac_ext=c
11624ac_cpp='$CPP $CPPFLAGS'
11625ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11626ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11627ac_compiler_gnu=$ac_cv_c_compiler_gnu
11628
11629echo "$as_me:$LINENO: checking whether we are using the Metrowerks C compiler" >&5
11630echo $ECHO_N "checking whether we are using the Metrowerks C compiler... $ECHO_C" >&6
11631if test "${bakefile_cv_c_compiler_mwerks+set}" = set; then
11632 echo $ECHO_N "(cached) $ECHO_C" >&6
11633else
11634 cat >conftest.$ac_ext <<_ACEOF
11635/* confdefs.h. */
11636_ACEOF
11637cat confdefs.h >>conftest.$ac_ext
11638cat >>conftest.$ac_ext <<_ACEOF
11639/* end confdefs.h. */
11640
11641int
11642main ()
11643{
11644#ifndef __MWERKS__
11645 choke me
11646#endif
11647
11648 ;
11649 return 0;
11650}
11651_ACEOF
11652rm -f conftest.$ac_objext
11653if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11654 (eval $ac_compile) 2>conftest.er1
11655 ac_status=$?
11656 grep -v '^ *+' conftest.er1 >conftest.err
11657 rm -f conftest.er1
11658 cat conftest.err >&5
11659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11660 (exit $ac_status); } &&
07158944 11661 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
95986553
DE
11662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11663 (eval $ac_try) 2>&5
11664 ac_status=$?
11665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11666 (exit $ac_status); }; } &&
11667 { ac_try='test -s conftest.$ac_objext'
11668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11669 (eval $ac_try) 2>&5
11670 ac_status=$?
11671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11672 (exit $ac_status); }; }; then
11673 bakefile_compiler_mwerks=yes
11674else
11675 echo "$as_me: failed program was:" >&5
11676sed 's/^/| /' conftest.$ac_ext >&5
11677
11678bakefile_compiler_mwerks=no
11679fi
11680rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11681 bakefile_cv_c_compiler_mwerks=$bakefile_compiler_mwerks
11682
11683fi
11684echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler_mwerks" >&5
11685echo "${ECHO_T}$bakefile_cv_c_compiler_mwerks" >&6
11686
11687MWCC=`test $bakefile_compiler_mwerks = yes && echo yes`
11688ac_ext=c
11689ac_cpp='$CPP $CPPFLAGS'
11690ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11691ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11692ac_compiler_gnu=$ac_cv_c_compiler_gnu
11693
11694
9273ffba
DE
11695ac_ext=c
11696ac_cpp='$CPP $CPPFLAGS'
11697ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11698ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11699ac_compiler_gnu=$ac_cv_c_compiler_gnu
11700
11701echo "$as_me:$LINENO: checking whether we are using the IBM xlC C compiler" >&5
11702echo $ECHO_N "checking whether we are using the IBM xlC C compiler... $ECHO_C" >&6
11703if test "${wx_cv_c_compiler_xlc+set}" = set; then
11704 echo $ECHO_N "(cached) $ECHO_C" >&6
11705else
11706 cat >conftest.$ac_ext <<_ACEOF
11707/* confdefs.h. */
11708_ACEOF
11709cat confdefs.h >>conftest.$ac_ext
11710cat >>conftest.$ac_ext <<_ACEOF
11711/* end confdefs.h. */
11712
11713int
11714main ()
11715{
11716#ifndef __xlC__
11717 choke me
11718#endif
11719
11720 ;
11721 return 0;
11722}
11723_ACEOF
11724rm -f conftest.$ac_objext
11725if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11726 (eval $ac_compile) 2>conftest.er1
11727 ac_status=$?
11728 grep -v '^ *+' conftest.er1 >conftest.err
11729 rm -f conftest.er1
11730 cat conftest.err >&5
11731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11732 (exit $ac_status); } &&
07158944 11733 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9273ffba
DE
11734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11735 (eval $ac_try) 2>&5
11736 ac_status=$?
11737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11738 (exit $ac_status); }; } &&
11739 { ac_try='test -s conftest.$ac_objext'
11740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11741 (eval $ac_try) 2>&5
11742 ac_status=$?
11743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11744 (exit $ac_status); }; }; then
11745 wx_compiler_xlc=yes
11746else
11747 echo "$as_me: failed program was:" >&5
11748sed 's/^/| /' conftest.$ac_ext >&5
11749
11750wx_compiler_xlc=no
11751fi
11752rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11753 wx_cv_c_compiler_xlc=$wx_compiler_xlc
11754
11755fi
11756echo "$as_me:$LINENO: result: $wx_cv_c_compiler_xlc" >&5
11757echo "${ECHO_T}$wx_cv_c_compiler_xlc" >&6
11758
11759XLCC=`test $wx_compiler_xlc = yes && echo yes`
11760ac_ext=c
11761ac_cpp='$CPP $CPPFLAGS'
11762ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11763ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11764ac_compiler_gnu=$ac_cv_c_compiler_gnu
11765
11766
a848cd7e
SC
11767
11768ac_ext=c
11769ac_cpp='$CPP $CPPFLAGS'
11770ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11771ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11772ac_compiler_gnu=$ac_cv_c_compiler_gnu
11773echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
11774echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
11775# On Suns, sometimes $CPP names a directory.
11776if test -n "$CPP" && test -d "$CPP"; then
11777 CPP=
11778fi
11779if test -z "$CPP"; then
11780 if test "${ac_cv_prog_CPP+set}" = set; then
11781 echo $ECHO_N "(cached) $ECHO_C" >&6
11782else
11783 # Double quotes because CPP needs to be expanded
11784 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
11785 do
11786 ac_preproc_ok=false
11787for ac_c_preproc_warn_flag in '' yes
11788do
11789 # Use a header file that comes with gcc, so configuring glibc
11790 # with a fresh cross-compiler works.
11791 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11792 # <limits.h> exists even on freestanding compilers.
11793 # On the NeXT, cc -E runs the code through the compiler's parser,
11794 # not just through cpp. "Syntax error" is here to catch this case.
11795 cat >conftest.$ac_ext <<_ACEOF
11796/* confdefs.h. */
11797_ACEOF
11798cat confdefs.h >>conftest.$ac_ext
11799cat >>conftest.$ac_ext <<_ACEOF
11800/* end confdefs.h. */
11801#ifdef __STDC__
11802# include <limits.h>
11803#else
11804# include <assert.h>
11805#endif
ac1cb8d3 11806 Syntax error
a848cd7e
SC
11807_ACEOF
11808if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11809 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11810 ac_status=$?
11811 grep -v '^ *+' conftest.er1 >conftest.err
11812 rm -f conftest.er1
11813 cat conftest.err >&5
11814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11815 (exit $ac_status); } >/dev/null; then
11816 if test -s conftest.err; then
11817 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 11818 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
11819 else
11820 ac_cpp_err=
11821 fi
11822else
11823 ac_cpp_err=yes
11824fi
11825if test -z "$ac_cpp_err"; then
11826 :
11827else
11828 echo "$as_me: failed program was:" >&5
11829sed 's/^/| /' conftest.$ac_ext >&5
11830
11831 # Broken: fails on valid input.
11832continue
11833fi
11834rm -f conftest.err conftest.$ac_ext
11835
11836 # OK, works on sane cases. Now check whether non-existent headers
11837 # can be detected and how.
11838 cat >conftest.$ac_ext <<_ACEOF
11839/* confdefs.h. */
11840_ACEOF
11841cat confdefs.h >>conftest.$ac_ext
11842cat >>conftest.$ac_ext <<_ACEOF
11843/* end confdefs.h. */
11844#include <ac_nonexistent.h>
11845_ACEOF
11846if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11847 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11848 ac_status=$?
11849 grep -v '^ *+' conftest.er1 >conftest.err
11850 rm -f conftest.er1
11851 cat conftest.err >&5
11852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11853 (exit $ac_status); } >/dev/null; then
11854 if test -s conftest.err; then
11855 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 11856 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
11857 else
11858 ac_cpp_err=
11859 fi
11860else
11861 ac_cpp_err=yes
11862fi
11863if test -z "$ac_cpp_err"; then
11864 # Broken: success on invalid input.
11865continue
11866else
11867 echo "$as_me: failed program was:" >&5
11868sed 's/^/| /' conftest.$ac_ext >&5
11869
11870 # Passes both tests.
11871ac_preproc_ok=:
11872break
11873fi
11874rm -f conftest.err conftest.$ac_ext
11875
11876done
11877# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11878rm -f conftest.err conftest.$ac_ext
11879if $ac_preproc_ok; then
11880 break
11881fi
11882
11883 done
11884 ac_cv_prog_CPP=$CPP
11885
11886fi
11887 CPP=$ac_cv_prog_CPP
11888else
11889 ac_cv_prog_CPP=$CPP
11890fi
11891echo "$as_me:$LINENO: result: $CPP" >&5
11892echo "${ECHO_T}$CPP" >&6
11893ac_preproc_ok=false
11894for ac_c_preproc_warn_flag in '' yes
11895do
11896 # Use a header file that comes with gcc, so configuring glibc
11897 # with a fresh cross-compiler works.
11898 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11899 # <limits.h> exists even on freestanding compilers.
11900 # On the NeXT, cc -E runs the code through the compiler's parser,
11901 # not just through cpp. "Syntax error" is here to catch this case.
11902 cat >conftest.$ac_ext <<_ACEOF
11903/* confdefs.h. */
11904_ACEOF
11905cat confdefs.h >>conftest.$ac_ext
11906cat >>conftest.$ac_ext <<_ACEOF
11907/* end confdefs.h. */
11908#ifdef __STDC__
11909# include <limits.h>
11910#else
11911# include <assert.h>
11912#endif
ac1cb8d3 11913 Syntax error
a848cd7e
SC
11914_ACEOF
11915if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11916 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11917 ac_status=$?
11918 grep -v '^ *+' conftest.er1 >conftest.err
11919 rm -f conftest.er1
11920 cat conftest.err >&5
11921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11922 (exit $ac_status); } >/dev/null; then
11923 if test -s conftest.err; then
11924 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 11925 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
11926 else
11927 ac_cpp_err=
11928 fi
11929else
11930 ac_cpp_err=yes
11931fi
11932if test -z "$ac_cpp_err"; then
11933 :
11934else
11935 echo "$as_me: failed program was:" >&5
11936sed 's/^/| /' conftest.$ac_ext >&5
11937
11938 # Broken: fails on valid input.
11939continue
11940fi
11941rm -f conftest.err conftest.$ac_ext
11942
11943 # OK, works on sane cases. Now check whether non-existent headers
11944 # can be detected and how.
11945 cat >conftest.$ac_ext <<_ACEOF
11946/* confdefs.h. */
11947_ACEOF
11948cat confdefs.h >>conftest.$ac_ext
11949cat >>conftest.$ac_ext <<_ACEOF
11950/* end confdefs.h. */
11951#include <ac_nonexistent.h>
11952_ACEOF
11953if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11954 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11955 ac_status=$?
11956 grep -v '^ *+' conftest.er1 >conftest.err
11957 rm -f conftest.er1
11958 cat conftest.err >&5
11959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11960 (exit $ac_status); } >/dev/null; then
11961 if test -s conftest.err; then
11962 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 11963 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
11964 else
11965 ac_cpp_err=
11966 fi
11967else
11968 ac_cpp_err=yes
11969fi
11970if test -z "$ac_cpp_err"; then
11971 # Broken: success on invalid input.
11972continue
11973else
11974 echo "$as_me: failed program was:" >&5
11975sed 's/^/| /' conftest.$ac_ext >&5
11976
11977 # Passes both tests.
11978ac_preproc_ok=:
11979break
11980fi
11981rm -f conftest.err conftest.$ac_ext
11982
11983done
11984# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11985rm -f conftest.err conftest.$ac_ext
11986if $ac_preproc_ok; then
11987 :
11988else
11989 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
11990See \`config.log' for more details." >&5
11991echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
11992See \`config.log' for more details." >&2;}
11993 { (exit 1); exit 1; }; }
11994fi
11995
11996ac_ext=c
11997ac_cpp='$CPP $CPPFLAGS'
11998ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11999ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12000ac_compiler_gnu=$ac_cv_c_compiler_gnu
12001
12002
12003echo "$as_me:$LINENO: checking for egrep" >&5
12004echo $ECHO_N "checking for egrep... $ECHO_C" >&6
12005if test "${ac_cv_prog_egrep+set}" = set; then
12006 echo $ECHO_N "(cached) $ECHO_C" >&6
12007else
12008 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
12009 then ac_cv_prog_egrep='grep -E'
12010 else ac_cv_prog_egrep='egrep'
12011 fi
12012fi
12013echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
12014echo "${ECHO_T}$ac_cv_prog_egrep" >&6
12015 EGREP=$ac_cv_prog_egrep
12016
12017
12018if test $ac_cv_c_compiler_gnu = yes; then
12019 echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
12020echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
12021if test "${ac_cv_prog_gcc_traditional+set}" = set; then
12022 echo $ECHO_N "(cached) $ECHO_C" >&6
12023else
12024 ac_pattern="Autoconf.*'x'"
12025 cat >conftest.$ac_ext <<_ACEOF
12026/* confdefs.h. */
12027_ACEOF
12028cat confdefs.h >>conftest.$ac_ext
12029cat >>conftest.$ac_ext <<_ACEOF
12030/* end confdefs.h. */
12031#include <sgtty.h>
12032Autoconf TIOCGETP
12033_ACEOF
12034if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12035 $EGREP "$ac_pattern" >/dev/null 2>&1; then
12036 ac_cv_prog_gcc_traditional=yes
12037else
12038 ac_cv_prog_gcc_traditional=no
12039fi
12040rm -f conftest*
12041
12042
12043 if test $ac_cv_prog_gcc_traditional = no; then
12044 cat >conftest.$ac_ext <<_ACEOF
12045/* confdefs.h. */
12046_ACEOF
12047cat confdefs.h >>conftest.$ac_ext
12048cat >>conftest.$ac_ext <<_ACEOF
12049/* end confdefs.h. */
12050#include <termio.h>
12051Autoconf TCGETA
12052_ACEOF
12053if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12054 $EGREP "$ac_pattern" >/dev/null 2>&1; then
12055 ac_cv_prog_gcc_traditional=yes
12056fi
12057rm -f conftest*
12058
12059 fi
12060fi
12061echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
12062echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
12063 if test $ac_cv_prog_gcc_traditional = yes; then
12064 CC="$CC -traditional"
12065 fi
12066fi
12067
12068
12069
12070
12071ac_ext=cc
12072ac_cpp='$CXXCPP $CPPFLAGS'
12073ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12074ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12075ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12076
12077
12078CXXFLAGS=${CXXFLAGS:=}
12079ac_ext=cc
12080ac_cpp='$CXXCPP $CPPFLAGS'
12081ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12082ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12083ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12084if test -n "$ac_tool_prefix"; then
12085 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
12086 do
12087 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12088set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12089echo "$as_me:$LINENO: checking for $ac_word" >&5
12090echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12091if test "${ac_cv_prog_CXX+set}" = set; then
12092 echo $ECHO_N "(cached) $ECHO_C" >&6
12093else
12094 if test -n "$CXX"; then
12095 ac_cv_prog_CXX="$CXX" # Let the user override the test.
12096else
12097as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12098for as_dir in $PATH
12099do
12100 IFS=$as_save_IFS
12101 test -z "$as_dir" && as_dir=.
12102 for ac_exec_ext in '' $ac_executable_extensions; do
12103 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12104 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
12105 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12106 break 2
12107 fi
12108done
12109done
12110
12111fi
12112fi
12113CXX=$ac_cv_prog_CXX
12114if test -n "$CXX"; then
12115 echo "$as_me:$LINENO: result: $CXX" >&5
12116echo "${ECHO_T}$CXX" >&6
12117else
12118 echo "$as_me:$LINENO: result: no" >&5
12119echo "${ECHO_T}no" >&6
12120fi
12121
12122 test -n "$CXX" && break
12123 done
12124fi
12125if test -z "$CXX"; then
12126 ac_ct_CXX=$CXX
12127 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
12128do
12129 # Extract the first word of "$ac_prog", so it can be a program name with args.
12130set dummy $ac_prog; ac_word=$2
12131echo "$as_me:$LINENO: checking for $ac_word" >&5
12132echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12133if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
12134 echo $ECHO_N "(cached) $ECHO_C" >&6
12135else
12136 if test -n "$ac_ct_CXX"; then
12137 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
12138else
12139as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12140for as_dir in $PATH
12141do
12142 IFS=$as_save_IFS
12143 test -z "$as_dir" && as_dir=.
12144 for ac_exec_ext in '' $ac_executable_extensions; do
12145 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12146 ac_cv_prog_ac_ct_CXX="$ac_prog"
12147 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12148 break 2
12149 fi
12150done
12151done
12152
12153fi
12154fi
12155ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
12156if test -n "$ac_ct_CXX"; then
12157 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
12158echo "${ECHO_T}$ac_ct_CXX" >&6
12159else
12160 echo "$as_me:$LINENO: result: no" >&5
12161echo "${ECHO_T}no" >&6
12162fi
12163
12164 test -n "$ac_ct_CXX" && break
12165done
12166test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
12167
12168 CXX=$ac_ct_CXX
12169fi
12170
12171
12172# Provide some information about the compiler.
12173echo "$as_me:$LINENO:" \
12174 "checking for C++ compiler version" >&5
12175ac_compiler=`set X $ac_compile; echo $2`
12176{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
12177 (eval $ac_compiler --version </dev/null >&5) 2>&5
12178 ac_status=$?
12179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12180 (exit $ac_status); }
12181{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
12182 (eval $ac_compiler -v </dev/null >&5) 2>&5
12183 ac_status=$?
12184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12185 (exit $ac_status); }
12186{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
12187 (eval $ac_compiler -V </dev/null >&5) 2>&5
12188 ac_status=$?
12189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12190 (exit $ac_status); }
12191
12192echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
12193echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
12194if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
12195 echo $ECHO_N "(cached) $ECHO_C" >&6
12196else
12197 cat >conftest.$ac_ext <<_ACEOF
12198/* confdefs.h. */
12199_ACEOF
12200cat confdefs.h >>conftest.$ac_ext
12201cat >>conftest.$ac_ext <<_ACEOF
12202/* end confdefs.h. */
12203
12204int
12205main ()
12206{
12207#ifndef __GNUC__
12208 choke me
12209#endif
12210
12211 ;
12212 return 0;
12213}
12214_ACEOF
12215rm -f conftest.$ac_objext
12216if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12217 (eval $ac_compile) 2>conftest.er1
a848cd7e 12218 ac_status=$?
ac1cb8d3
VS
12219 grep -v '^ *+' conftest.er1 >conftest.err
12220 rm -f conftest.er1
12221 cat conftest.err >&5
a848cd7e
SC
12222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12223 (exit $ac_status); } &&
07158944 12224 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
12225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12226 (eval $ac_try) 2>&5
12227 ac_status=$?
12228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12229 (exit $ac_status); }; } &&
12230 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12232 (eval $ac_try) 2>&5
12233 ac_status=$?
12234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12235 (exit $ac_status); }; }; then
12236 ac_compiler_gnu=yes
12237else
12238 echo "$as_me: failed program was:" >&5
12239sed 's/^/| /' conftest.$ac_ext >&5
12240
12241ac_compiler_gnu=no
12242fi
ac1cb8d3 12243rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12244ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
12245
12246fi
12247echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
12248echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
12249GXX=`test $ac_compiler_gnu = yes && echo yes`
12250ac_test_CXXFLAGS=${CXXFLAGS+set}
12251ac_save_CXXFLAGS=$CXXFLAGS
12252CXXFLAGS="-g"
12253echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
12254echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
12255if test "${ac_cv_prog_cxx_g+set}" = set; then
12256 echo $ECHO_N "(cached) $ECHO_C" >&6
12257else
12258 cat >conftest.$ac_ext <<_ACEOF
12259/* confdefs.h. */
12260_ACEOF
12261cat confdefs.h >>conftest.$ac_ext
12262cat >>conftest.$ac_ext <<_ACEOF
12263/* end confdefs.h. */
12264
12265int
12266main ()
12267{
12268
12269 ;
12270 return 0;
12271}
12272_ACEOF
12273rm -f conftest.$ac_objext
12274if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12275 (eval $ac_compile) 2>conftest.er1
a848cd7e 12276 ac_status=$?
ac1cb8d3
VS
12277 grep -v '^ *+' conftest.er1 >conftest.err
12278 rm -f conftest.er1
12279 cat conftest.err >&5
a848cd7e
SC
12280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12281 (exit $ac_status); } &&
07158944 12282 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
12283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12284 (eval $ac_try) 2>&5
12285 ac_status=$?
12286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12287 (exit $ac_status); }; } &&
12288 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12290 (eval $ac_try) 2>&5
12291 ac_status=$?
12292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12293 (exit $ac_status); }; }; then
12294 ac_cv_prog_cxx_g=yes
12295else
12296 echo "$as_me: failed program was:" >&5
12297sed 's/^/| /' conftest.$ac_ext >&5
12298
12299ac_cv_prog_cxx_g=no
12300fi
ac1cb8d3 12301rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12302fi
12303echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
12304echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
12305if test "$ac_test_CXXFLAGS" = set; then
12306 CXXFLAGS=$ac_save_CXXFLAGS
12307elif test $ac_cv_prog_cxx_g = yes; then
12308 if test "$GXX" = yes; then
12309 CXXFLAGS="-g -O2"
12310 else
12311 CXXFLAGS="-g"
12312 fi
12313else
12314 if test "$GXX" = yes; then
12315 CXXFLAGS="-O2"
12316 else
12317 CXXFLAGS=
12318 fi
12319fi
12320for ac_declaration in \
ac1cb8d3 12321 '' \
a848cd7e
SC
12322 'extern "C" void std::exit (int) throw (); using std::exit;' \
12323 'extern "C" void std::exit (int); using std::exit;' \
12324 'extern "C" void exit (int) throw ();' \
12325 'extern "C" void exit (int);' \
12326 'void exit (int);'
12327do
12328 cat >conftest.$ac_ext <<_ACEOF
12329/* confdefs.h. */
12330_ACEOF
12331cat confdefs.h >>conftest.$ac_ext
12332cat >>conftest.$ac_ext <<_ACEOF
12333/* end confdefs.h. */
de59c161 12334$ac_declaration
ac1cb8d3 12335#include <stdlib.h>
a848cd7e
SC
12336int
12337main ()
12338{
12339exit (42);
12340 ;
12341 return 0;
12342}
12343_ACEOF
12344rm -f conftest.$ac_objext
12345if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12346 (eval $ac_compile) 2>conftest.er1
a848cd7e 12347 ac_status=$?
ac1cb8d3
VS
12348 grep -v '^ *+' conftest.er1 >conftest.err
12349 rm -f conftest.er1
12350 cat conftest.err >&5
a848cd7e
SC
12351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12352 (exit $ac_status); } &&
07158944 12353 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
12354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12355 (eval $ac_try) 2>&5
12356 ac_status=$?
12357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12358 (exit $ac_status); }; } &&
12359 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12361 (eval $ac_try) 2>&5
12362 ac_status=$?
12363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12364 (exit $ac_status); }; }; then
12365 :
12366else
12367 echo "$as_me: failed program was:" >&5
12368sed 's/^/| /' conftest.$ac_ext >&5
12369
12370continue
12371fi
ac1cb8d3 12372rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12373 cat >conftest.$ac_ext <<_ACEOF
12374/* confdefs.h. */
12375_ACEOF
12376cat confdefs.h >>conftest.$ac_ext
12377cat >>conftest.$ac_ext <<_ACEOF
12378/* end confdefs.h. */
12379$ac_declaration
12380int
12381main ()
12382{
12383exit (42);
12384 ;
12385 return 0;
12386}
12387_ACEOF
12388rm -f conftest.$ac_objext
12389if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12390 (eval $ac_compile) 2>conftest.er1
a848cd7e 12391 ac_status=$?
ac1cb8d3
VS
12392 grep -v '^ *+' conftest.er1 >conftest.err
12393 rm -f conftest.er1
12394 cat conftest.err >&5
a848cd7e
SC
12395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12396 (exit $ac_status); } &&
07158944 12397 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
12398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12399 (eval $ac_try) 2>&5
12400 ac_status=$?
12401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12402 (exit $ac_status); }; } &&
12403 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12405 (eval $ac_try) 2>&5
12406 ac_status=$?
12407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12408 (exit $ac_status); }; }; then
12409 break
12410else
12411 echo "$as_me: failed program was:" >&5
12412sed 's/^/| /' conftest.$ac_ext >&5
12413
12414fi
ac1cb8d3 12415rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12416done
12417rm -f conftest*
12418if test -n "$ac_declaration"; then
12419 echo '#ifdef __cplusplus' >>confdefs.h
12420 echo $ac_declaration >>confdefs.h
12421 echo '#endif' >>confdefs.h
12422fi
12423
12424ac_ext=cc
12425ac_cpp='$CXXCPP $CPPFLAGS'
12426ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12427ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12428ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12429
480ccd21
DE
12430echo "$as_me:$LINENO: checking if the C++ compiler requires -ext o" >&5
12431echo $ECHO_N "checking if the C++ compiler requires -ext o... $ECHO_C" >&6
12432if test "${wx_cv_cxx_exto+set}" = set; then
12433 echo $ECHO_N "(cached) $ECHO_C" >&6
12434else
12435 cat >conftest.$ac_ext <<_ACEOF
12436/* confdefs.h. */
12437_ACEOF
12438cat confdefs.h >>conftest.$ac_ext
12439cat >>conftest.$ac_ext <<_ACEOF
12440/* end confdefs.h. */
12441
12442int
12443main ()
12444{
12445
12446 ;
12447 return 0;
12448}
12449_ACEOF
12450rm -f conftest.$ac_objext conftest.$ac_ext.o
12451if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12452 (eval $ac_compile) 2>&5
12453 ac_status=$?
12454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12455 (exit $ac_status); }; then
12456 for ac_file in `(ls conftest.* 2>/dev/null)`; do
12457 case $ac_file in
12458 conftest.$ac_ext.o)
12459 wx_cv_cxx_exto="-ext o"
12460 ;;
12461 *)
12462 ;;
12463 esac
12464done
12465else
12466 { { echo "$as_me:$LINENO: error: cannot figure out if compiler needs -ext o: cannot compile
12467See \`config.log' for more details." >&5
12468echo "$as_me: error: cannot figure out if compiler needs -ext o: cannot compile
12469See \`config.log' for more details." >&2;}
12470 { (exit 1); exit 1; }; }
12471
12472fi
12473
12474rm -f conftest.$ac_ext.o conftest.$ac_objext conftest.$ac_ext
12475
12476fi
12477echo "$as_me:$LINENO: result: $wx_cv_cxx_exto" >&5
12478echo "${ECHO_T}$wx_cv_cxx_exto" >&6
12479if test "x$wx_cv_cxx_exto" '!=' "x"; then
12480 if test "cxx" = "c"; then
12481 CFLAGS="$wx_cv_cxx_exto $CFLAGS"
12482 fi
12483 if test "cxx" = "cxx"; then
12484 CXXFLAGS="$wx_cv_cxx_exto $CXXFLAGS"
12485 fi
12486fi
12487
12488if test "x$wx_cv_cxx_exto" '!=' "x"; then
12489 unset ac_cv_prog_cxx_g
12490 ac_test_CXXFLAGS=${CXXFLAGS+set}
12491ac_save_CXXFLAGS=$CXXFLAGS
12492CXXFLAGS="-g"
12493echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
12494echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
12495if test "${ac_cv_prog_cxx_g+set}" = set; then
12496 echo $ECHO_N "(cached) $ECHO_C" >&6
12497else
12498 cat >conftest.$ac_ext <<_ACEOF
12499/* confdefs.h. */
12500_ACEOF
12501cat confdefs.h >>conftest.$ac_ext
12502cat >>conftest.$ac_ext <<_ACEOF
12503/* end confdefs.h. */
12504
12505int
12506main ()
12507{
12508
12509 ;
12510 return 0;
12511}
12512_ACEOF
12513rm -f conftest.$ac_objext
12514if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12515 (eval $ac_compile) 2>conftest.er1
12516 ac_status=$?
12517 grep -v '^ *+' conftest.er1 >conftest.err
12518 rm -f conftest.er1
12519 cat conftest.err >&5
12520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12521 (exit $ac_status); } &&
07158944 12522 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
480ccd21
DE
12523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12524 (eval $ac_try) 2>&5
12525 ac_status=$?
12526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12527 (exit $ac_status); }; } &&
12528 { ac_try='test -s conftest.$ac_objext'
12529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12530 (eval $ac_try) 2>&5
12531 ac_status=$?
12532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12533 (exit $ac_status); }; }; then
12534 ac_cv_prog_cxx_g=yes
12535else
12536 echo "$as_me: failed program was:" >&5
12537sed 's/^/| /' conftest.$ac_ext >&5
12538
12539ac_cv_prog_cxx_g=no
12540fi
12541rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12542fi
12543echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
12544echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
12545if test "$ac_test_CXXFLAGS" = set; then
12546 CXXFLAGS=$ac_save_CXXFLAGS
12547elif test $ac_cv_prog_cxx_g = yes; then
12548 if test "$GXX" = yes; then
12549 CXXFLAGS="-g -O2"
12550 else
12551 CXXFLAGS="-g"
12552 fi
12553else
12554 if test "$GXX" = yes; then
12555 CXXFLAGS="-O2"
12556 else
12557 CXXFLAGS=
12558 fi
12559fi
12560fi
a848cd7e 12561
95986553
DE
12562ac_ext=cc
12563ac_cpp='$CXXCPP $CPPFLAGS'
12564ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12565ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12566ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12567
12568echo "$as_me:$LINENO: checking whether we are using the Metrowerks C++ compiler" >&5
12569echo $ECHO_N "checking whether we are using the Metrowerks C++ compiler... $ECHO_C" >&6
12570if test "${bakefile_cv_cxx_compiler_mwerks+set}" = set; then
12571 echo $ECHO_N "(cached) $ECHO_C" >&6
12572else
12573 cat >conftest.$ac_ext <<_ACEOF
12574/* confdefs.h. */
12575_ACEOF
12576cat confdefs.h >>conftest.$ac_ext
12577cat >>conftest.$ac_ext <<_ACEOF
12578/* end confdefs.h. */
12579
12580int
12581main ()
12582{
12583#ifndef __MWERKS__
12584 choke me
12585#endif
12586
12587 ;
12588 return 0;
12589}
12590_ACEOF
12591rm -f conftest.$ac_objext
12592if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12593 (eval $ac_compile) 2>conftest.er1
12594 ac_status=$?
12595 grep -v '^ *+' conftest.er1 >conftest.err
12596 rm -f conftest.er1
12597 cat conftest.err >&5
12598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12599 (exit $ac_status); } &&
07158944 12600 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
95986553
DE
12601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12602 (eval $ac_try) 2>&5
12603 ac_status=$?
12604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12605 (exit $ac_status); }; } &&
12606 { ac_try='test -s conftest.$ac_objext'
12607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12608 (eval $ac_try) 2>&5
12609 ac_status=$?
12610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12611 (exit $ac_status); }; }; then
12612 bakefile_compiler_mwerks=yes
12613else
12614 echo "$as_me: failed program was:" >&5
12615sed 's/^/| /' conftest.$ac_ext >&5
12616
12617bakefile_compiler_mwerks=no
12618fi
12619rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12620 bakefile_cv_cxx_compiler_mwerks=$bakefile_compiler_mwerks
12621
12622fi
12623echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler_mwerks" >&5
12624echo "${ECHO_T}$bakefile_cv_cxx_compiler_mwerks" >&6
12625
12626MWCXX=`test $bakefile_compiler_mwerks = yes && echo yes`
12627ac_ext=cc
12628ac_cpp='$CXXCPP $CPPFLAGS'
12629ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12630ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12631ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12632
12633
9273ffba
DE
12634ac_ext=cc
12635ac_cpp='$CXXCPP $CPPFLAGS'
12636ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12637ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12638ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12639
12640echo "$as_me:$LINENO: checking whether we are using the IBM xlC C++ compiler" >&5
12641echo $ECHO_N "checking whether we are using the IBM xlC C++ compiler... $ECHO_C" >&6
12642if test "${wx_cv_cxx_compiler_xlc+set}" = set; then
12643 echo $ECHO_N "(cached) $ECHO_C" >&6
12644else
12645 cat >conftest.$ac_ext <<_ACEOF
12646/* confdefs.h. */
12647_ACEOF
12648cat confdefs.h >>conftest.$ac_ext
12649cat >>conftest.$ac_ext <<_ACEOF
12650/* end confdefs.h. */
12651
12652int
12653main ()
12654{
12655#ifndef __xlC__
12656 choke me
12657#endif
12658
12659 ;
12660 return 0;
12661}
12662_ACEOF
12663rm -f conftest.$ac_objext
12664if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12665 (eval $ac_compile) 2>conftest.er1
12666 ac_status=$?
12667 grep -v '^ *+' conftest.er1 >conftest.err
12668 rm -f conftest.er1
12669 cat conftest.err >&5
12670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12671 (exit $ac_status); } &&
07158944 12672 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
9273ffba
DE
12673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12674 (eval $ac_try) 2>&5
12675 ac_status=$?
12676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12677 (exit $ac_status); }; } &&
12678 { ac_try='test -s conftest.$ac_objext'
12679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12680 (eval $ac_try) 2>&5
12681 ac_status=$?
12682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12683 (exit $ac_status); }; }; then
12684 wx_compiler_xlc=yes
12685else
12686 echo "$as_me: failed program was:" >&5
12687sed 's/^/| /' conftest.$ac_ext >&5
12688
12689wx_compiler_xlc=no
12690fi
12691rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12692 wx_cv_cxx_compiler_xlc=$wx_compiler_xlc
12693
12694fi
12695echo "$as_me:$LINENO: result: $wx_cv_cxx_compiler_xlc" >&5
12696echo "${ECHO_T}$wx_cv_cxx_compiler_xlc" >&6
12697
12698XLCXX=`test $wx_compiler_xlc = yes && echo yes`
12699ac_ext=cc
12700ac_cpp='$CXXCPP $CPPFLAGS'
12701ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12702ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12703ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12704
12705
95986553 12706
a848cd7e
SC
12707ac_ext=c
12708ac_cpp='$CPP $CPPFLAGS'
12709ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12710ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12711ac_compiler_gnu=$ac_cv_c_compiler_gnu
12712
12713
a848cd7e
SC
12714if test -n "$ac_tool_prefix"; then
12715 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
12716set dummy ${ac_tool_prefix}ranlib; ac_word=$2
12717echo "$as_me:$LINENO: checking for $ac_word" >&5
12718echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12719if test "${ac_cv_prog_RANLIB+set}" = set; then
12720 echo $ECHO_N "(cached) $ECHO_C" >&6
12721else
12722 if test -n "$RANLIB"; then
12723 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
12724else
12725as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12726for as_dir in $PATH
12727do
12728 IFS=$as_save_IFS
12729 test -z "$as_dir" && as_dir=.
12730 for ac_exec_ext in '' $ac_executable_extensions; do
12731 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12732 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
12733 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12734 break 2
12735 fi
12736done
12737done
12738
12739fi
12740fi
12741RANLIB=$ac_cv_prog_RANLIB
12742if test -n "$RANLIB"; then
12743 echo "$as_me:$LINENO: result: $RANLIB" >&5
12744echo "${ECHO_T}$RANLIB" >&6
12745else
12746 echo "$as_me:$LINENO: result: no" >&5
12747echo "${ECHO_T}no" >&6
12748fi
12749
12750fi
12751if test -z "$ac_cv_prog_RANLIB"; then
12752 ac_ct_RANLIB=$RANLIB
12753 # Extract the first word of "ranlib", so it can be a program name with args.
12754set dummy ranlib; ac_word=$2
12755echo "$as_me:$LINENO: checking for $ac_word" >&5
12756echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12757if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
12758 echo $ECHO_N "(cached) $ECHO_C" >&6
12759else
12760 if test -n "$ac_ct_RANLIB"; then
12761 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
12762else
12763as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12764for as_dir in $PATH
12765do
12766 IFS=$as_save_IFS
12767 test -z "$as_dir" && as_dir=.
12768 for ac_exec_ext in '' $ac_executable_extensions; do
12769 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12770 ac_cv_prog_ac_ct_RANLIB="ranlib"
12771 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12772 break 2
12773 fi
12774done
12775done
12776
12777 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
12778fi
12779fi
12780ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
12781if test -n "$ac_ct_RANLIB"; then
12782 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
12783echo "${ECHO_T}$ac_ct_RANLIB" >&6
12784else
12785 echo "$as_me:$LINENO: result: no" >&5
12786echo "${ECHO_T}no" >&6
12787fi
12788
12789 RANLIB=$ac_ct_RANLIB
12790else
12791 RANLIB="$ac_cv_prog_RANLIB"
12792fi
12793
12794
12795# Extract the first word of "ar", so it can be a program name with args.
12796set dummy ar; ac_word=$2
12797echo "$as_me:$LINENO: checking for $ac_word" >&5
12798echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12799if test "${ac_cv_prog_AR+set}" = set; then
12800 echo $ECHO_N "(cached) $ECHO_C" >&6
12801else
12802 if test -n "$AR"; then
12803 ac_cv_prog_AR="$AR" # Let the user override the test.
12804else
12805as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12806for as_dir in $PATH
12807do
12808 IFS=$as_save_IFS
12809 test -z "$as_dir" && as_dir=.
12810 for ac_exec_ext in '' $ac_executable_extensions; do
12811 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12812 ac_cv_prog_AR="ar"
12813 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12814 break 2
12815 fi
12816done
12817done
12818
12819fi
12820fi
12821AR=$ac_cv_prog_AR
12822if test -n "$AR"; then
12823 echo "$as_me:$LINENO: result: $AR" >&5
12824echo "${ECHO_T}$AR" >&6
12825else
12826 echo "$as_me:$LINENO: result: no" >&5
12827echo "${ECHO_T}no" >&6
12828fi
12829
12830if test "x$AR" = "x" ; then
77ffb593
JS
12831 { { echo "$as_me:$LINENO: error: ar is needed to build wxWidgets" >&5
12832echo "$as_me: error: ar is needed to build wxWidgets" >&2;}
a848cd7e
SC
12833 { (exit 1); exit 1; }; }
12834fi
12835
12836# Find a good install program. We prefer a C program (faster),
12837# so one script is as good as another. But avoid the broken or
12838# incompatible versions:
12839# SysV /etc/install, /usr/sbin/install
12840# SunOS /usr/etc/install
12841# IRIX /sbin/install
12842# AIX /bin/install
12843# AmigaOS /C/install, which installs bootblocks on floppy discs
12844# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
12845# AFS /usr/afsws/bin/install, which mishandles nonexistent args
12846# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
ac1cb8d3 12847# OS/2's system install, which has a completely different semantic
a848cd7e
SC
12848# ./install, which can be erroneously created by make from ./install.sh.
12849echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
12850echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
12851if test -z "$INSTALL"; then
12852if test "${ac_cv_path_install+set}" = set; then
12853 echo $ECHO_N "(cached) $ECHO_C" >&6
12854else
12855 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12856for as_dir in $PATH
12857do
12858 IFS=$as_save_IFS
12859 test -z "$as_dir" && as_dir=.
12860 # Account for people who put trailing slashes in PATH elements.
12861case $as_dir/ in
12862 ./ | .// | /cC/* | \
12863 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
ac1cb8d3 12864 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
a848cd7e
SC
12865 /usr/ucb/* ) ;;
12866 *)
12867 # OSF1 and SCO ODT 3.0 have their own names for install.
12868 # Don't use installbsd from OSF since it installs stuff as root
12869 # by default.
12870 for ac_prog in ginstall scoinst install; do
12871 for ac_exec_ext in '' $ac_executable_extensions; do
ac1cb8d3
VS
12872 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
12873 if test $ac_prog = install &&
12874 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
12875 # AIX install. It has an incompatible calling convention.
12876 :
12877 elif test $ac_prog = install &&
12878 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
12879 # program-specific install script used by HP pwplus--don't use.
12880 :
12881 else
12882 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
12883 break 3
12884 fi
12885 fi
a848cd7e
SC
12886 done
12887 done
12888 ;;
12889esac
12890done
12891
12892
12893fi
12894 if test "${ac_cv_path_install+set}" = set; then
12895 INSTALL=$ac_cv_path_install
12896 else
12897 # As a last resort, use the slow shell script. We don't cache a
12898 # path for INSTALL within a source directory, because that will
12899 # break other packages using the cache if that directory is
12900 # removed, or if the path is relative.
12901 INSTALL=$ac_install_sh
12902 fi
12903fi
12904echo "$as_me:$LINENO: result: $INSTALL" >&5
12905echo "${ECHO_T}$INSTALL" >&6
12906
12907# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
12908# It thinks the first close brace ends the variable substitution.
12909test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
12910
12911test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
12912
12913test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
12914
12915
12916case ${INSTALL} in
12917 /* ) # Absolute
12918 ;;
12919 ?:* ) # Drive letter, considered as absolute.
12920 ;;
12921 *)
12922 INSTALL=`pwd`/${INSTALL} ;;
12923esac
12924
a848cd7e
SC
12925
12926case "${host}" in
12927
12928 powerpc-*-darwin* )
12929 INSTALL_PROGRAM="cp -fp"
12930 INSTALL_DATA="cp -fp"
12931 ;;
12932 *)
12933 ;;
12934esac
12935
12936# Extract the first word of "strip", so it can be a program name with args.
12937set dummy strip; ac_word=$2
12938echo "$as_me:$LINENO: checking for $ac_word" >&5
12939echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12940if test "${ac_cv_prog_STRIP+set}" = set; then
12941 echo $ECHO_N "(cached) $ECHO_C" >&6
12942else
12943 if test -n "$STRIP"; then
12944 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
12945else
12946as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12947for as_dir in $PATH
12948do
12949 IFS=$as_save_IFS
12950 test -z "$as_dir" && as_dir=.
12951 for ac_exec_ext in '' $ac_executable_extensions; do
12952 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12953 ac_cv_prog_STRIP="strip"
12954 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12955 break 2
12956 fi
12957done
12958done
12959
12960 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="true"
12961fi
12962fi
12963STRIP=$ac_cv_prog_STRIP
12964if test -n "$STRIP"; then
12965 echo "$as_me:$LINENO: result: $STRIP" >&5
12966echo "${ECHO_T}$STRIP" >&6
12967else
12968 echo "$as_me:$LINENO: result: no" >&5
12969echo "${ECHO_T}no" >&6
12970fi
12971
12972
12973echo "$as_me:$LINENO: checking if make is GNU make" >&5
12974echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6
12975if test "${wx_cv_prog_makeisgnu+set}" = set; then
12976 echo $ECHO_N "(cached) $ECHO_C" >&6
12977else
12978
12979 if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
12980 egrep -s GNU > /dev/null); then
12981 wx_cv_prog_makeisgnu="yes"
12982 else
12983 wx_cv_prog_makeisgnu="no"
12984 fi
12985
12986fi
12987echo "$as_me:$LINENO: result: $wx_cv_prog_makeisgnu" >&5
12988echo "${ECHO_T}$wx_cv_prog_makeisgnu" >&6
12989
12990if test "x$wx_cv_prog_makeisgnu" = "xyes"; then
12991 IF_GNU_MAKE=""
12992else
12993 IF_GNU_MAKE="#"
12994fi
12995
12996
12997
12998if test "x$wx_cv_prog_makeisgnu" != "xyes"; then
12999echo "$as_me:$LINENO: checking if make supports VPATH" >&5
13000echo $ECHO_N "checking if make supports VPATH... $ECHO_C" >&6
13001if test "${wx_cv_prog_makevpath+set}" = set; then
13002 echo $ECHO_N "(cached) $ECHO_C" >&6
13003else
13004
13005cat - << EOF > confMake
13006check : file
13007 cp \$? \$@
13008 cp \$? final_file
13009EOF
13010
13011if test ! -d sub ; then
13012 mkdir sub
13013fi
13014echo dummy > sub/file
13015${MAKE-make} -f confMake VPATH=sub 2>&5 > /dev/null
13016RESULT=$?
13017rm -f sub/file check final_file confMake
13018rmdir sub
13019if test "$RESULT" = 0; then
13020 wx_cv_prog_makevpath="yes"
13021else
13022 wx_cv_prog_makevpath="no"
13023fi
13024
13025fi
13026echo "$as_me:$LINENO: result: $wx_cv_prog_makevpath" >&5
13027echo "${ECHO_T}$wx_cv_prog_makevpath" >&6
13028
13029if test "x$wx_cv_prog_makevpath" != "xyes"; then
13030{ { echo "$as_me:$LINENO: error:
13031You need a make-utility that is able to use the variable
13032VPATH correctly.
13033If your version of make does not support VPATH correctly,
13034please install GNU-make (possibly as gmake), and start
13035configure with the following command:
13036export MAKE=gmake; ./configure for sh-type shells
13037setenv MAKE gmake; ./configure for csh-type shells
13038Also please do remember to use gmake in this case every time
13039you are trying to compile.
13040" >&5
13041echo "$as_me: error:
13042You need a make-utility that is able to use the variable
13043VPATH correctly.
13044If your version of make does not support VPATH correctly,
13045please install GNU-make (possibly as gmake), and start
13046configure with the following command:
13047export MAKE=gmake; ./configure for sh-type shells
13048setenv MAKE gmake; ./configure for csh-type shells
13049Also please do remember to use gmake in this case every time
13050you are trying to compile.
13051" >&2;}
13052 { (exit 1); exit 1; }; }
13053fi fi
13054echo "$as_me:$LINENO: checking whether ln -s works" >&5
13055echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
13056LN_S=$as_ln_s
13057if test "$LN_S" = "ln -s"; then
13058 echo "$as_me:$LINENO: result: yes" >&5
13059echo "${ECHO_T}yes" >&6
13060else
13061 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
13062echo "${ECHO_T}no, using $LN_S" >&6
13063fi
13064
13065
13066
9273ffba
DE
13067if test "x$XLCXX" = "xyes"; then
13068 CXXFLAGS="$CXXFLAGS -qunique"
13069fi
13070
13071
4d7ec9f1
DE
13072case "${host}" in
13073 powerpc-*-darwin* )
13074 echo "$as_me:$LINENO: checking if __POWERPC__ is already defined" >&5
13075echo $ECHO_N "checking if __POWERPC__ is already defined... $ECHO_C" >&6
13076 cat >conftest.$ac_ext <<_ACEOF
13077/* confdefs.h. */
13078_ACEOF
13079cat confdefs.h >>conftest.$ac_ext
13080cat >>conftest.$ac_ext <<_ACEOF
13081/* end confdefs.h. */
13082
13083int
13084main ()
13085{
13086#ifndef __POWERPC__
13087 choke me for lack of PowerPC
13088#endif
13089
13090 ;
13091 return 0;
13092}
13093_ACEOF
13094rm -f conftest.$ac_objext
13095if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13096 (eval $ac_compile) 2>conftest.er1
13097 ac_status=$?
13098 grep -v '^ *+' conftest.er1 >conftest.err
13099 rm -f conftest.er1
13100 cat conftest.err >&5
13101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13102 (exit $ac_status); } &&
07158944 13103 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4d7ec9f1
DE
13104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13105 (eval $ac_try) 2>&5
13106 ac_status=$?
13107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13108 (exit $ac_status); }; } &&
13109 { ac_try='test -s conftest.$ac_objext'
13110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13111 (eval $ac_try) 2>&5
13112 ac_status=$?
13113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13114 (exit $ac_status); }; }; then
13115 echo "$as_me:$LINENO: result: yes" >&5
13116echo "${ECHO_T}yes" >&6
13117else
13118 echo "$as_me: failed program was:" >&5
13119sed 's/^/| /' conftest.$ac_ext >&5
13120
13121echo "$as_me:$LINENO: result: no" >&5
13122echo "${ECHO_T}no" >&6
13123 cat >>confdefs.h <<\_ACEOF
13124#define __POWERPC__ 1
13125_ACEOF
13126
13127
13128fi
13129rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13130 echo "$as_me:$LINENO: checking if CoreFoundation/CFBase.h is usable" >&5
13131echo $ECHO_N "checking if CoreFoundation/CFBase.h is usable... $ECHO_C" >&6
13132 cat >conftest.$ac_ext <<_ACEOF
13133/* confdefs.h. */
13134_ACEOF
13135cat confdefs.h >>conftest.$ac_ext
13136cat >>conftest.$ac_ext <<_ACEOF
13137/* end confdefs.h. */
13138#include <CoreFoundation/CFBase.h>
13139
13140int
13141main ()
13142{
13143
13144 ;
13145 return 0;
13146}
13147_ACEOF
13148rm -f conftest.$ac_objext
13149if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13150 (eval $ac_compile) 2>conftest.er1
13151 ac_status=$?
13152 grep -v '^ *+' conftest.er1 >conftest.err
13153 rm -f conftest.er1
13154 cat conftest.err >&5
13155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13156 (exit $ac_status); } &&
07158944 13157 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4d7ec9f1
DE
13158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13159 (eval $ac_try) 2>&5
13160 ac_status=$?
13161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13162 (exit $ac_status); }; } &&
13163 { ac_try='test -s conftest.$ac_objext'
13164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13165 (eval $ac_try) 2>&5
13166 ac_status=$?
13167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13168 (exit $ac_status); }; }; then
13169 echo "$as_me:$LINENO: result: yes" >&5
13170echo "${ECHO_T}yes" >&6
13171else
13172 echo "$as_me: failed program was:" >&5
13173sed 's/^/| /' conftest.$ac_ext >&5
13174
13175echo "$as_me:$LINENO: result: no" >&5
13176echo "${ECHO_T}no" >&6
13177 echo "$as_me:$LINENO: checking if __CF_USE_FRAMEWORK_INCLUDES__ is required" >&5
13178echo $ECHO_N "checking if __CF_USE_FRAMEWORK_INCLUDES__ is required... $ECHO_C" >&6
13179 cat >conftest.$ac_ext <<_ACEOF
13180/* confdefs.h. */
13181_ACEOF
13182cat confdefs.h >>conftest.$ac_ext
13183cat >>conftest.$ac_ext <<_ACEOF
13184/* end confdefs.h. */
13185#define __CF_USE_FRAMEWORK_INCLUDES__
13186#include <CoreFoundation/CFBase.h>
13187
13188int
13189main ()
13190{
13191
13192 ;
13193 return 0;
13194}
13195_ACEOF
13196rm -f conftest.$ac_objext
13197if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13198 (eval $ac_compile) 2>conftest.er1
13199 ac_status=$?
13200 grep -v '^ *+' conftest.er1 >conftest.err
13201 rm -f conftest.er1
13202 cat conftest.err >&5
13203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13204 (exit $ac_status); } &&
07158944 13205 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4d7ec9f1
DE
13206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13207 (eval $ac_try) 2>&5
13208 ac_status=$?
13209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13210 (exit $ac_status); }; } &&
13211 { ac_try='test -s conftest.$ac_objext'
13212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13213 (eval $ac_try) 2>&5
13214 ac_status=$?
13215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13216 (exit $ac_status); }; }; then
13217 echo "$as_me:$LINENO: result: yes" >&5
13218echo "${ECHO_T}yes" >&6
13219 CPPFLAGS="$CPPFLAGS -D__CF_USE_FRAMEWORK_INCLUDES__"
13220else
13221 echo "$as_me: failed program was:" >&5
13222sed 's/^/| /' conftest.$ac_ext >&5
13223
13224{ { echo "$as_me:$LINENO: error: no. CoreFoundation not available.
13225See \`config.log' for more details." >&5
13226echo "$as_me: error: no. CoreFoundation not available.
13227See \`config.log' for more details." >&2;}
13228 { (exit 1); exit 1; }; }
13229
13230fi
13231rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13232
13233
13234fi
13235rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13236 ;;
13237esac
13238
a848cd7e
SC
13239case "${host}" in
13240 *-pc-os2_emx | *-pc-os2-emx )
13241 if test "$wxUSE_MOTIF" = 1 -o "$wxUSE_GTK" = 1 -o "$wxUSE_X11" = 1; then
13242 echo "$as_me:$LINENO: checking for drand48 in -lcExt" >&5
13243echo $ECHO_N "checking for drand48 in -lcExt... $ECHO_C" >&6
13244if test "${ac_cv_lib_cExt_drand48+set}" = set; then
13245 echo $ECHO_N "(cached) $ECHO_C" >&6
13246else
13247 ac_check_lib_save_LIBS=$LIBS
13248LIBS="-lcExt $LIBS"
13249cat >conftest.$ac_ext <<_ACEOF
13250/* confdefs.h. */
13251_ACEOF
13252cat confdefs.h >>conftest.$ac_ext
13253cat >>conftest.$ac_ext <<_ACEOF
13254/* end confdefs.h. */
13255
13256/* Override any gcc2 internal prototype to avoid an error. */
13257#ifdef __cplusplus
13258extern "C"
13259#endif
13260/* We use char because int might match the return type of a gcc2
13261 builtin and then its argument prototype would still apply. */
13262char drand48 ();
13263int
13264main ()
13265{
13266drand48 ();
13267 ;
13268 return 0;
13269}
13270_ACEOF
13271rm -f conftest.$ac_objext conftest$ac_exeext
13272if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 13273 (eval $ac_link) 2>conftest.er1
a848cd7e 13274 ac_status=$?
ac1cb8d3
VS
13275 grep -v '^ *+' conftest.er1 >conftest.err
13276 rm -f conftest.er1
13277 cat conftest.err >&5
a848cd7e
SC
13278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13279 (exit $ac_status); } &&
07158944 13280 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
13281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13282 (eval $ac_try) 2>&5
13283 ac_status=$?
13284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13285 (exit $ac_status); }; } &&
13286 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
13287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13288 (eval $ac_try) 2>&5
13289 ac_status=$?
13290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13291 (exit $ac_status); }; }; then
13292 ac_cv_lib_cExt_drand48=yes
13293else
13294 echo "$as_me: failed program was:" >&5
13295sed 's/^/| /' conftest.$ac_ext >&5
13296
13297ac_cv_lib_cExt_drand48=no
13298fi
ac1cb8d3
VS
13299rm -f conftest.err conftest.$ac_objext \
13300 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
13301LIBS=$ac_check_lib_save_LIBS
13302fi
13303echo "$as_me:$LINENO: result: $ac_cv_lib_cExt_drand48" >&5
13304echo "${ECHO_T}$ac_cv_lib_cExt_drand48" >&6
13305if test $ac_cv_lib_cExt_drand48 = yes; then
13306 LIBS="$LIBS -lcExt"
13307fi
13308
13309 else
13310 RESPROGRAMOBJ="\${top_srcdir}/include/wx/os2/wx.res"
13311 fi
391a765e 13312 echo "$as_me:$LINENO: checking for gcc version" >&5
a848cd7e
SC
13313echo $ECHO_N "checking for gcc version... $ECHO_C" >&6
13314if test "${wx_cv_gccversion+set}" = set; then
13315 echo $ECHO_N "(cached) $ECHO_C" >&6
13316else
13317
391a765e
VS
13318 if test "$cross_compiling" = yes; then
13319 wx_cv_gccversion="EMX2"
13320
13321else
13322 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
13323/* confdefs.h. */
13324_ACEOF
13325cat confdefs.h >>conftest.$ac_ext
13326cat >>conftest.$ac_ext <<_ACEOF
13327/* end confdefs.h. */
13328
391a765e 13329 #include <stdio.h>
a848cd7e 13330
391a765e
VS
13331 int main()
13332 {
13333 FILE *f=fopen("conftestval", "w");
13334 if (!f) exit(1);
13335 fprintf(f,
a848cd7e 13336 #if (__GNUC__ < 3)
391a765e
VS
13337 "EMX2"
13338 #elif (__GNUC__==3) && ((__GNUC_MINOR__ < 2) || ((__GNUC_MINOR__==2) && (__GNUC_PATCHLEVEL__<2)))
13339 "EMX3"
13340 #elif (__GNUC__==3) && (__GNUC_MINOR__==2) && (__GNUC_PATCHLEVEL__==2)
13341 "Innotek5"
13342 #else
13343 "Innotek6"
a848cd7e 13344 #endif
391a765e
VS
13345 );
13346 exit(0);
13347 }
a848cd7e 13348
a848cd7e 13349_ACEOF
391a765e
VS
13350rm -f conftest$ac_exeext
13351if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13352 (eval $ac_link) 2>&5
ac1cb8d3
VS
13353 ac_status=$?
13354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
391a765e 13355 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
a848cd7e
SC
13356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13357 (eval $ac_try) 2>&5
13358 ac_status=$?
13359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13360 (exit $ac_status); }; }; then
391a765e 13361 wx_cv_gccversion=`cat conftestval`
a848cd7e 13362else
391a765e
VS
13363 echo "$as_me: program exited with status $ac_status" >&5
13364echo "$as_me: failed program was:" >&5
a848cd7e
SC
13365sed 's/^/| /' conftest.$ac_ext >&5
13366
391a765e
VS
13367( exit $ac_status )
13368wx_cv_gccversion="EMX2"
a848cd7e 13369fi
391a765e 13370rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e 13371fi
a848cd7e
SC
13372
13373fi
13374echo "$as_me:$LINENO: result: $wx_cv_gccversion" >&5
13375echo "${ECHO_T}$wx_cv_gccversion" >&6
391a765e 13376 if test "$wx_cv_gccversion" = "EMX2"; then
a848cd7e
SC
13377 LIBS="$LIBS -lstdcpp"
13378 LDFLAGS="$LDFLAGS -Zsysv-signals"
13379 else
391a765e 13380 if test "$wx_cv_gccversion" = "EMX3"; then
a848cd7e
SC
13381 LIBS="$LIBS -lstdcxx"
13382 LDFLAGS="$LDFLAGS -Zsysv-signals"
13383 else
13384 LIBS="$LIBS -lstdc++"
13385 fi
13386 fi
94acd38e
DE
13387 if test "$wxUSE_SHARED" = "yes" -a "$wxUSE_OMF" = "no"; then
13388 { echo "$as_me:$LINENO: WARNING: Building DLLs requires OMF mode, enabled" >&5
13389echo "$as_me: WARNING: Building DLLs requires OMF mode, enabled" >&2;}
13390 wxUSE_OMF=yes
2da0c077 13391 enable_omf=yes
94acd38e 13392 fi
a848cd7e 13393 if test "$wxUSE_OMF" = "yes"; then
2da0c077 13394 LDFLAGS="$LDFLAGS -Zlinker /EXEPACK -Zlinker /PMTYPE:PM"
a848cd7e
SC
13395 fi
13396 ;;
13397 *)
13398
13399
13400
13401 ac_ext=cc
13402ac_cpp='$CXXCPP $CPPFLAGS'
13403ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13404ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13405ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13406
13407
95986553 13408 echo "$as_me:$LINENO: checking for strcasecmp() in string.h" >&5
a848cd7e
SC
13409echo $ECHO_N "checking for strcasecmp() in string.h... $ECHO_C" >&6
13410if test "${ac_cv_string_strcasecmp+set}" = set; then
13411 echo $ECHO_N "(cached) $ECHO_C" >&6
13412else
13413
13414 cat >conftest.$ac_ext <<_ACEOF
13415/* confdefs.h. */
13416_ACEOF
13417cat confdefs.h >>conftest.$ac_ext
13418cat >>conftest.$ac_ext <<_ACEOF
13419/* end confdefs.h. */
13420
13421 #include <string.h>
13422
13423int
13424main ()
13425{
13426
13427 strcasecmp("foo", "bar");
13428
13429 ;
13430 return 0;
13431}
13432_ACEOF
13433rm -f conftest.$ac_objext conftest$ac_exeext
13434if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 13435 (eval $ac_link) 2>conftest.er1
a848cd7e 13436 ac_status=$?
ac1cb8d3
VS
13437 grep -v '^ *+' conftest.er1 >conftest.err
13438 rm -f conftest.er1
13439 cat conftest.err >&5
a848cd7e
SC
13440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13441 (exit $ac_status); } &&
07158944 13442 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
13443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13444 (eval $ac_try) 2>&5
13445 ac_status=$?
13446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13447 (exit $ac_status); }; } &&
13448 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
13449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13450 (eval $ac_try) 2>&5
13451 ac_status=$?
13452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13453 (exit $ac_status); }; }; then
13454 ac_cv_string_strcasecmp=yes
13455else
13456 echo "$as_me: failed program was:" >&5
13457sed 's/^/| /' conftest.$ac_ext >&5
13458
13459ac_cv_string_strcasecmp=no
13460
13461fi
ac1cb8d3
VS
13462rm -f conftest.err conftest.$ac_objext \
13463 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
13464
13465fi
13466echo "$as_me:$LINENO: result: $ac_cv_string_strcasecmp" >&5
13467echo "${ECHO_T}$ac_cv_string_strcasecmp" >&6
13468
13469 if test x"$ac_cv_string_strcasecmp" = "xyes"; then
13470 cat >>confdefs.h <<\_ACEOF
13471#define HAVE_STRCASECMP_IN_STRING_H 1
13472_ACEOF
13473
13474 else
13475 echo "$as_me:$LINENO: checking for strcasecmp() in strings.h" >&5
13476echo $ECHO_N "checking for strcasecmp() in strings.h... $ECHO_C" >&6
13477if test "${ac_cv_strings_strcasecmp+set}" = set; then
13478 echo $ECHO_N "(cached) $ECHO_C" >&6
13479else
13480
13481 cat >conftest.$ac_ext <<_ACEOF
13482/* confdefs.h. */
13483_ACEOF
13484cat confdefs.h >>conftest.$ac_ext
13485cat >>conftest.$ac_ext <<_ACEOF
13486/* end confdefs.h. */
13487
13488 #include <strings.h>
13489
13490int
13491main ()
13492{
13493
13494 strcasecmp("foo", "bar");
13495
13496 ;
13497 return 0;
13498}
13499_ACEOF
13500rm -f conftest.$ac_objext conftest$ac_exeext
13501if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 13502 (eval $ac_link) 2>conftest.er1
a848cd7e 13503 ac_status=$?
ac1cb8d3
VS
13504 grep -v '^ *+' conftest.er1 >conftest.err
13505 rm -f conftest.er1
13506 cat conftest.err >&5
a848cd7e
SC
13507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13508 (exit $ac_status); } &&
07158944 13509 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
13510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13511 (eval $ac_try) 2>&5
13512 ac_status=$?
13513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13514 (exit $ac_status); }; } &&
13515 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
13516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13517 (eval $ac_try) 2>&5
13518 ac_status=$?
13519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13520 (exit $ac_status); }; }; then
13521 ac_cv_strings_strcasecmp=yes
13522else
13523 echo "$as_me: failed program was:" >&5
13524sed 's/^/| /' conftest.$ac_ext >&5
13525
13526ac_cv_strings_strcasecmp=no
13527
13528fi
ac1cb8d3
VS
13529rm -f conftest.err conftest.$ac_objext \
13530 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
13531
13532fi
13533echo "$as_me:$LINENO: result: $ac_cv_strings_strcasecmp" >&5
13534echo "${ECHO_T}$ac_cv_strings_strcasecmp" >&6
13535
0c3c69fc 13536 if test x"$ac_cv_strings_strcasecmp" = "xyes"; then
a848cd7e
SC
13537 cat >>confdefs.h <<\_ACEOF
13538#define HAVE_STRCASECMP_IN_STRINGS_H 1
13539_ACEOF
13540
13541 else
13542 { { echo "$as_me:$LINENO: error: No case-insensitive string comparison function found." >&5
13543echo "$as_me: error: No case-insensitive string comparison function found." >&2;}
13544 { (exit 1); exit 1; }; }
13545 fi
13546 fi
13547
13548 ac_ext=c
13549ac_cpp='$CPP $CPPFLAGS'
13550ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13551ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13552ac_compiler_gnu=$ac_cv_c_compiler_gnu
13553
13554 ;;
13555esac
13556
13557
13558echo "$as_me:$LINENO: checking for ANSI C header files" >&5
13559echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
13560if test "${ac_cv_header_stdc+set}" = set; then
13561 echo $ECHO_N "(cached) $ECHO_C" >&6
13562else
13563 cat >conftest.$ac_ext <<_ACEOF
13564/* confdefs.h. */
13565_ACEOF
13566cat confdefs.h >>conftest.$ac_ext
13567cat >>conftest.$ac_ext <<_ACEOF
13568/* end confdefs.h. */
13569#include <stdlib.h>
13570#include <stdarg.h>
13571#include <string.h>
13572#include <float.h>
13573
13574int
13575main ()
13576{
13577
13578 ;
13579 return 0;
13580}
13581_ACEOF
13582rm -f conftest.$ac_objext
13583if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 13584 (eval $ac_compile) 2>conftest.er1
a848cd7e 13585 ac_status=$?
ac1cb8d3
VS
13586 grep -v '^ *+' conftest.er1 >conftest.err
13587 rm -f conftest.er1
13588 cat conftest.err >&5
a848cd7e
SC
13589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13590 (exit $ac_status); } &&
07158944 13591 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
13592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13593 (eval $ac_try) 2>&5
13594 ac_status=$?
13595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13596 (exit $ac_status); }; } &&
13597 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
13598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13599 (eval $ac_try) 2>&5
13600 ac_status=$?
13601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13602 (exit $ac_status); }; }; then
13603 ac_cv_header_stdc=yes
13604else
13605 echo "$as_me: failed program was:" >&5
13606sed 's/^/| /' conftest.$ac_ext >&5
13607
13608ac_cv_header_stdc=no
13609fi
ac1cb8d3 13610rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
13611
13612if test $ac_cv_header_stdc = yes; then
13613 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
13614 cat >conftest.$ac_ext <<_ACEOF
13615/* confdefs.h. */
13616_ACEOF
13617cat confdefs.h >>conftest.$ac_ext
13618cat >>conftest.$ac_ext <<_ACEOF
13619/* end confdefs.h. */
13620#include <string.h>
13621
13622_ACEOF
13623if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13624 $EGREP "memchr" >/dev/null 2>&1; then
13625 :
13626else
13627 ac_cv_header_stdc=no
13628fi
13629rm -f conftest*
13630
13631fi
13632
13633if test $ac_cv_header_stdc = yes; then
13634 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
13635 cat >conftest.$ac_ext <<_ACEOF
13636/* confdefs.h. */
13637_ACEOF
13638cat confdefs.h >>conftest.$ac_ext
13639cat >>conftest.$ac_ext <<_ACEOF
13640/* end confdefs.h. */
13641#include <stdlib.h>
13642
13643_ACEOF
13644if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13645 $EGREP "free" >/dev/null 2>&1; then
13646 :
13647else
13648 ac_cv_header_stdc=no
13649fi
13650rm -f conftest*
13651
13652fi
13653
13654if test $ac_cv_header_stdc = yes; then
13655 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
13656 if test "$cross_compiling" = yes; then
13657 :
13658else
13659 cat >conftest.$ac_ext <<_ACEOF
13660/* confdefs.h. */
13661_ACEOF
13662cat confdefs.h >>conftest.$ac_ext
13663cat >>conftest.$ac_ext <<_ACEOF
13664/* end confdefs.h. */
13665#include <ctype.h>
13666#if ((' ' & 0x0FF) == 0x020)
13667# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
13668# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
13669#else
13670# define ISLOWER(c) \
ac1cb8d3
VS
13671 (('a' <= (c) && (c) <= 'i') \
13672 || ('j' <= (c) && (c) <= 'r') \
13673 || ('s' <= (c) && (c) <= 'z'))
a848cd7e
SC
13674# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
13675#endif
13676
13677#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
13678int
13679main ()
13680{
13681 int i;
13682 for (i = 0; i < 256; i++)
13683 if (XOR (islower (i), ISLOWER (i))
ac1cb8d3 13684 || toupper (i) != TOUPPER (i))
a848cd7e
SC
13685 exit(2);
13686 exit (0);
13687}
13688_ACEOF
13689rm -f conftest$ac_exeext
13690if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13691 (eval $ac_link) 2>&5
13692 ac_status=$?
13693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13694 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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); }; }; then
13700 :
13701else
13702 echo "$as_me: program exited with status $ac_status" >&5
13703echo "$as_me: failed program was:" >&5
13704sed 's/^/| /' conftest.$ac_ext >&5
13705
13706( exit $ac_status )
13707ac_cv_header_stdc=no
13708fi
ac1cb8d3 13709rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
13710fi
13711fi
13712fi
13713echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
13714echo "${ECHO_T}$ac_cv_header_stdc" >&6
13715if test $ac_cv_header_stdc = yes; then
13716
13717cat >>confdefs.h <<\_ACEOF
13718#define STDC_HEADERS 1
13719_ACEOF
13720
13721fi
13722
13723# On IRIX 5.3, sys/types and inttypes.h are conflicting.
13724
13725
13726
13727
13728
13729
13730
13731
13732
13733for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
ac1cb8d3 13734 inttypes.h stdint.h unistd.h
a848cd7e
SC
13735do
13736as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13737echo "$as_me:$LINENO: checking for $ac_header" >&5
13738echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13739if eval "test \"\${$as_ac_Header+set}\" = set"; then
13740 echo $ECHO_N "(cached) $ECHO_C" >&6
13741else
13742 cat >conftest.$ac_ext <<_ACEOF
13743/* confdefs.h. */
13744_ACEOF
13745cat confdefs.h >>conftest.$ac_ext
13746cat >>conftest.$ac_ext <<_ACEOF
13747/* end confdefs.h. */
13748$ac_includes_default
13749
13750#include <$ac_header>
13751_ACEOF
13752rm -f conftest.$ac_objext
13753if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 13754 (eval $ac_compile) 2>conftest.er1
a848cd7e 13755 ac_status=$?
ac1cb8d3
VS
13756 grep -v '^ *+' conftest.er1 >conftest.err
13757 rm -f conftest.er1
13758 cat conftest.err >&5
a848cd7e
SC
13759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13760 (exit $ac_status); } &&
07158944 13761 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
13762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13763 (eval $ac_try) 2>&5
13764 ac_status=$?
13765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13766 (exit $ac_status); }; } &&
13767 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
13768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13769 (eval $ac_try) 2>&5
13770 ac_status=$?
13771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13772 (exit $ac_status); }; }; then
13773 eval "$as_ac_Header=yes"
13774else
13775 echo "$as_me: failed program was:" >&5
13776sed 's/^/| /' conftest.$ac_ext >&5
13777
13778eval "$as_ac_Header=no"
13779fi
ac1cb8d3 13780rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
13781fi
13782echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13783echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13784if test `eval echo '${'$as_ac_Header'}'` = yes; then
13785 cat >>confdefs.h <<_ACEOF
13786#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13787_ACEOF
13788
13789fi
13790
13791done
13792
13793
13794
13795for ac_header in stdlib.h
13796do
13797as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13798if eval "test \"\${$as_ac_Header+set}\" = set"; then
13799 echo "$as_me:$LINENO: checking for $ac_header" >&5
13800echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13801if eval "test \"\${$as_ac_Header+set}\" = set"; then
13802 echo $ECHO_N "(cached) $ECHO_C" >&6
13803fi
13804echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13805echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13806else
13807 # Is the header compilable?
13808echo "$as_me:$LINENO: checking $ac_header usability" >&5
13809echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13810cat >conftest.$ac_ext <<_ACEOF
13811/* confdefs.h. */
13812_ACEOF
13813cat confdefs.h >>conftest.$ac_ext
13814cat >>conftest.$ac_ext <<_ACEOF
13815/* end confdefs.h. */
13816$ac_includes_default
13817#include <$ac_header>
13818_ACEOF
13819rm -f conftest.$ac_objext
13820if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 13821 (eval $ac_compile) 2>conftest.er1
a848cd7e 13822 ac_status=$?
ac1cb8d3
VS
13823 grep -v '^ *+' conftest.er1 >conftest.err
13824 rm -f conftest.er1
13825 cat conftest.err >&5
a848cd7e
SC
13826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13827 (exit $ac_status); } &&
07158944 13828 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
13829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13830 (eval $ac_try) 2>&5
13831 ac_status=$?
13832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13833 (exit $ac_status); }; } &&
13834 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
13835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13836 (eval $ac_try) 2>&5
13837 ac_status=$?
13838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13839 (exit $ac_status); }; }; then
13840 ac_header_compiler=yes
13841else
13842 echo "$as_me: failed program was:" >&5
13843sed 's/^/| /' conftest.$ac_ext >&5
13844
13845ac_header_compiler=no
13846fi
ac1cb8d3 13847rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
13848echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13849echo "${ECHO_T}$ac_header_compiler" >&6
13850
13851# Is the header present?
13852echo "$as_me:$LINENO: checking $ac_header presence" >&5
13853echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13854cat >conftest.$ac_ext <<_ACEOF
13855/* confdefs.h. */
13856_ACEOF
13857cat confdefs.h >>conftest.$ac_ext
13858cat >>conftest.$ac_ext <<_ACEOF
13859/* end confdefs.h. */
13860#include <$ac_header>
13861_ACEOF
13862if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13863 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13864 ac_status=$?
13865 grep -v '^ *+' conftest.er1 >conftest.err
13866 rm -f conftest.er1
13867 cat conftest.err >&5
13868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13869 (exit $ac_status); } >/dev/null; then
13870 if test -s conftest.err; then
13871 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 13872 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
13873 else
13874 ac_cpp_err=
13875 fi
13876else
13877 ac_cpp_err=yes
13878fi
13879if test -z "$ac_cpp_err"; then
13880 ac_header_preproc=yes
13881else
13882 echo "$as_me: failed program was:" >&5
13883sed 's/^/| /' conftest.$ac_ext >&5
13884
13885 ac_header_preproc=no
13886fi
13887rm -f conftest.err conftest.$ac_ext
13888echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13889echo "${ECHO_T}$ac_header_preproc" >&6
13890
13891# So? What about this header?
ac1cb8d3
VS
13892case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13893 yes:no: )
a848cd7e
SC
13894 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13895echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
13896 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13897echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13898 ac_header_preproc=yes
a848cd7e 13899 ;;
ac1cb8d3 13900 no:yes:* )
a848cd7e
SC
13901 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13902echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
13903 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13904echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13905 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13906echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13907 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13908echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
13909 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13910echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
13911 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13912echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
13913 (
13914 cat <<\_ASBOX
ac1cb8d3
VS
13915## ----------------------------------------- ##
13916## Report this to wx-dev@lists.wxwidgets.org ##
13917## ----------------------------------------- ##
a848cd7e
SC
13918_ASBOX
13919 ) |
13920 sed "s/^/$as_me: WARNING: /" >&2
13921 ;;
13922esac
13923echo "$as_me:$LINENO: checking for $ac_header" >&5
13924echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13925if eval "test \"\${$as_ac_Header+set}\" = set"; then
13926 echo $ECHO_N "(cached) $ECHO_C" >&6
13927else
ac1cb8d3 13928 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
13929fi
13930echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13931echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13932
13933fi
13934if test `eval echo '${'$as_ac_Header'}'` = yes; then
13935 cat >>confdefs.h <<_ACEOF
13936#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13937_ACEOF
13938
13939fi
13940
13941done
13942
13943
13944for ac_header in malloc.h
13945do
13946as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13947if eval "test \"\${$as_ac_Header+set}\" = set"; then
13948 echo "$as_me:$LINENO: checking for $ac_header" >&5
13949echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13950if eval "test \"\${$as_ac_Header+set}\" = set"; then
13951 echo $ECHO_N "(cached) $ECHO_C" >&6
13952fi
13953echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13954echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13955else
13956 # Is the header compilable?
13957echo "$as_me:$LINENO: checking $ac_header usability" >&5
13958echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13959cat >conftest.$ac_ext <<_ACEOF
13960/* confdefs.h. */
13961_ACEOF
13962cat confdefs.h >>conftest.$ac_ext
13963cat >>conftest.$ac_ext <<_ACEOF
13964/* end confdefs.h. */
13965$ac_includes_default
13966#include <$ac_header>
13967_ACEOF
13968rm -f conftest.$ac_objext
13969if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 13970 (eval $ac_compile) 2>conftest.er1
a848cd7e 13971 ac_status=$?
ac1cb8d3
VS
13972 grep -v '^ *+' conftest.er1 >conftest.err
13973 rm -f conftest.er1
13974 cat conftest.err >&5
a848cd7e
SC
13975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13976 (exit $ac_status); } &&
07158944 13977 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
13978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13979 (eval $ac_try) 2>&5
13980 ac_status=$?
13981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13982 (exit $ac_status); }; } &&
13983 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
13984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13985 (eval $ac_try) 2>&5
13986 ac_status=$?
13987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13988 (exit $ac_status); }; }; then
13989 ac_header_compiler=yes
13990else
13991 echo "$as_me: failed program was:" >&5
13992sed 's/^/| /' conftest.$ac_ext >&5
13993
13994ac_header_compiler=no
13995fi
ac1cb8d3 13996rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
13997echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13998echo "${ECHO_T}$ac_header_compiler" >&6
13999
14000# Is the header present?
14001echo "$as_me:$LINENO: checking $ac_header presence" >&5
14002echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14003cat >conftest.$ac_ext <<_ACEOF
14004/* confdefs.h. */
14005_ACEOF
14006cat confdefs.h >>conftest.$ac_ext
14007cat >>conftest.$ac_ext <<_ACEOF
14008/* end confdefs.h. */
14009#include <$ac_header>
14010_ACEOF
14011if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14012 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14013 ac_status=$?
14014 grep -v '^ *+' conftest.er1 >conftest.err
14015 rm -f conftest.er1
14016 cat conftest.err >&5
14017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14018 (exit $ac_status); } >/dev/null; then
14019 if test -s conftest.err; then
14020 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 14021 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
14022 else
14023 ac_cpp_err=
14024 fi
14025else
14026 ac_cpp_err=yes
14027fi
14028if test -z "$ac_cpp_err"; then
14029 ac_header_preproc=yes
14030else
14031 echo "$as_me: failed program was:" >&5
14032sed 's/^/| /' conftest.$ac_ext >&5
14033
14034 ac_header_preproc=no
14035fi
14036rm -f conftest.err conftest.$ac_ext
14037echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14038echo "${ECHO_T}$ac_header_preproc" >&6
14039
14040# So? What about this header?
ac1cb8d3
VS
14041case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14042 yes:no: )
a848cd7e
SC
14043 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14044echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
14045 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14046echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14047 ac_header_preproc=yes
a848cd7e 14048 ;;
ac1cb8d3 14049 no:yes:* )
a848cd7e
SC
14050 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14051echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
14052 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14053echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14054 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14055echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14056 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14057echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
14058 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14059echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
14060 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14061echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
14062 (
14063 cat <<\_ASBOX
ac1cb8d3
VS
14064## ----------------------------------------- ##
14065## Report this to wx-dev@lists.wxwidgets.org ##
14066## ----------------------------------------- ##
a848cd7e
SC
14067_ASBOX
14068 ) |
14069 sed "s/^/$as_me: WARNING: /" >&2
14070 ;;
14071esac
14072echo "$as_me:$LINENO: checking for $ac_header" >&5
14073echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14074if eval "test \"\${$as_ac_Header+set}\" = set"; then
14075 echo $ECHO_N "(cached) $ECHO_C" >&6
14076else
ac1cb8d3 14077 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
14078fi
14079echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14080echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14081
14082fi
14083if test `eval echo '${'$as_ac_Header'}'` = yes; then
14084 cat >>confdefs.h <<_ACEOF
14085#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14086_ACEOF
14087
14088fi
14089
14090done
14091
14092
14093for ac_header in unistd.h
14094do
14095as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14096if eval "test \"\${$as_ac_Header+set}\" = set"; then
14097 echo "$as_me:$LINENO: checking for $ac_header" >&5
14098echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14099if eval "test \"\${$as_ac_Header+set}\" = set"; then
14100 echo $ECHO_N "(cached) $ECHO_C" >&6
14101fi
14102echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14103echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14104else
14105 # Is the header compilable?
14106echo "$as_me:$LINENO: checking $ac_header usability" >&5
14107echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14108cat >conftest.$ac_ext <<_ACEOF
14109/* confdefs.h. */
14110_ACEOF
14111cat confdefs.h >>conftest.$ac_ext
14112cat >>conftest.$ac_ext <<_ACEOF
14113/* end confdefs.h. */
14114$ac_includes_default
14115#include <$ac_header>
14116_ACEOF
14117rm -f conftest.$ac_objext
14118if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14119 (eval $ac_compile) 2>conftest.er1
a848cd7e 14120 ac_status=$?
ac1cb8d3
VS
14121 grep -v '^ *+' conftest.er1 >conftest.err
14122 rm -f conftest.er1
14123 cat conftest.err >&5
a848cd7e
SC
14124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14125 (exit $ac_status); } &&
07158944 14126 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
14127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14128 (eval $ac_try) 2>&5
14129 ac_status=$?
14130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14131 (exit $ac_status); }; } &&
14132 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14134 (eval $ac_try) 2>&5
14135 ac_status=$?
14136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14137 (exit $ac_status); }; }; then
14138 ac_header_compiler=yes
14139else
14140 echo "$as_me: failed program was:" >&5
14141sed 's/^/| /' conftest.$ac_ext >&5
14142
14143ac_header_compiler=no
14144fi
ac1cb8d3 14145rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14146echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14147echo "${ECHO_T}$ac_header_compiler" >&6
14148
14149# Is the header present?
14150echo "$as_me:$LINENO: checking $ac_header presence" >&5
14151echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14152cat >conftest.$ac_ext <<_ACEOF
14153/* confdefs.h. */
14154_ACEOF
14155cat confdefs.h >>conftest.$ac_ext
14156cat >>conftest.$ac_ext <<_ACEOF
14157/* end confdefs.h. */
14158#include <$ac_header>
14159_ACEOF
14160if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14161 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14162 ac_status=$?
14163 grep -v '^ *+' conftest.er1 >conftest.err
14164 rm -f conftest.er1
14165 cat conftest.err >&5
14166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14167 (exit $ac_status); } >/dev/null; then
14168 if test -s conftest.err; then
14169 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 14170 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
14171 else
14172 ac_cpp_err=
14173 fi
14174else
14175 ac_cpp_err=yes
14176fi
14177if test -z "$ac_cpp_err"; then
14178 ac_header_preproc=yes
14179else
14180 echo "$as_me: failed program was:" >&5
14181sed 's/^/| /' conftest.$ac_ext >&5
14182
14183 ac_header_preproc=no
14184fi
14185rm -f conftest.err conftest.$ac_ext
14186echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14187echo "${ECHO_T}$ac_header_preproc" >&6
14188
14189# So? What about this header?
ac1cb8d3
VS
14190case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14191 yes:no: )
a848cd7e
SC
14192 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14193echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
14194 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14195echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14196 ac_header_preproc=yes
a848cd7e 14197 ;;
ac1cb8d3 14198 no:yes:* )
a848cd7e
SC
14199 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14200echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
14201 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14202echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14203 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14204echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14205 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14206echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
14207 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14208echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
14209 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14210echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
14211 (
14212 cat <<\_ASBOX
ac1cb8d3
VS
14213## ----------------------------------------- ##
14214## Report this to wx-dev@lists.wxwidgets.org ##
14215## ----------------------------------------- ##
a848cd7e
SC
14216_ASBOX
14217 ) |
14218 sed "s/^/$as_me: WARNING: /" >&2
14219 ;;
14220esac
14221echo "$as_me:$LINENO: checking for $ac_header" >&5
14222echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14223if eval "test \"\${$as_ac_Header+set}\" = set"; then
14224 echo $ECHO_N "(cached) $ECHO_C" >&6
14225else
ac1cb8d3 14226 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
14227fi
14228echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14229echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14230
14231fi
14232if test `eval echo '${'$as_ac_Header'}'` = yes; then
14233 cat >>confdefs.h <<_ACEOF
14234#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14235_ACEOF
14236
14237fi
14238
14239done
14240
14241
14242for ac_header in wchar.h
14243do
14244as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14245if eval "test \"\${$as_ac_Header+set}\" = set"; then
14246 echo "$as_me:$LINENO: checking for $ac_header" >&5
14247echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14248if eval "test \"\${$as_ac_Header+set}\" = set"; then
14249 echo $ECHO_N "(cached) $ECHO_C" >&6
14250fi
14251echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14252echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14253else
14254 # Is the header compilable?
14255echo "$as_me:$LINENO: checking $ac_header usability" >&5
14256echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14257cat >conftest.$ac_ext <<_ACEOF
14258/* confdefs.h. */
14259_ACEOF
14260cat confdefs.h >>conftest.$ac_ext
14261cat >>conftest.$ac_ext <<_ACEOF
14262/* end confdefs.h. */
14263$ac_includes_default
14264#include <$ac_header>
14265_ACEOF
14266rm -f conftest.$ac_objext
14267if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14268 (eval $ac_compile) 2>conftest.er1
a848cd7e 14269 ac_status=$?
ac1cb8d3
VS
14270 grep -v '^ *+' conftest.er1 >conftest.err
14271 rm -f conftest.er1
14272 cat conftest.err >&5
a848cd7e
SC
14273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14274 (exit $ac_status); } &&
07158944 14275 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
14276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14277 (eval $ac_try) 2>&5
14278 ac_status=$?
14279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14280 (exit $ac_status); }; } &&
14281 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14283 (eval $ac_try) 2>&5
14284 ac_status=$?
14285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14286 (exit $ac_status); }; }; then
14287 ac_header_compiler=yes
14288else
14289 echo "$as_me: failed program was:" >&5
14290sed 's/^/| /' conftest.$ac_ext >&5
14291
14292ac_header_compiler=no
14293fi
ac1cb8d3 14294rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14295echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14296echo "${ECHO_T}$ac_header_compiler" >&6
14297
14298# Is the header present?
14299echo "$as_me:$LINENO: checking $ac_header presence" >&5
14300echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14301cat >conftest.$ac_ext <<_ACEOF
14302/* confdefs.h. */
14303_ACEOF
14304cat confdefs.h >>conftest.$ac_ext
14305cat >>conftest.$ac_ext <<_ACEOF
14306/* end confdefs.h. */
14307#include <$ac_header>
14308_ACEOF
14309if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14310 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14311 ac_status=$?
14312 grep -v '^ *+' conftest.er1 >conftest.err
14313 rm -f conftest.er1
14314 cat conftest.err >&5
14315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14316 (exit $ac_status); } >/dev/null; then
14317 if test -s conftest.err; then
14318 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 14319 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
14320 else
14321 ac_cpp_err=
14322 fi
14323else
14324 ac_cpp_err=yes
14325fi
14326if test -z "$ac_cpp_err"; then
14327 ac_header_preproc=yes
14328else
14329 echo "$as_me: failed program was:" >&5
14330sed 's/^/| /' conftest.$ac_ext >&5
14331
14332 ac_header_preproc=no
14333fi
14334rm -f conftest.err conftest.$ac_ext
14335echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14336echo "${ECHO_T}$ac_header_preproc" >&6
14337
14338# So? What about this header?
ac1cb8d3
VS
14339case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14340 yes:no: )
a848cd7e
SC
14341 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14342echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
14343 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14344echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14345 ac_header_preproc=yes
a848cd7e 14346 ;;
ac1cb8d3 14347 no:yes:* )
a848cd7e
SC
14348 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14349echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
14350 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14351echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14352 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14353echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14354 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14355echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
14356 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14357echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
14358 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14359echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
14360 (
14361 cat <<\_ASBOX
ac1cb8d3
VS
14362## ----------------------------------------- ##
14363## Report this to wx-dev@lists.wxwidgets.org ##
14364## ----------------------------------------- ##
a848cd7e
SC
14365_ASBOX
14366 ) |
14367 sed "s/^/$as_me: WARNING: /" >&2
14368 ;;
14369esac
14370echo "$as_me:$LINENO: checking for $ac_header" >&5
14371echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14372if eval "test \"\${$as_ac_Header+set}\" = set"; then
14373 echo $ECHO_N "(cached) $ECHO_C" >&6
14374else
ac1cb8d3 14375 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
14376fi
14377echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14378echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14379
14380fi
14381if test `eval echo '${'$as_ac_Header'}'` = yes; then
14382 cat >>confdefs.h <<_ACEOF
14383#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14384_ACEOF
14385
14386fi
14387
14388done
14389
14390
14391if test "$ac_cv_header_wchar_h" != "yes"; then
14392
14393for ac_header in wcstr.h
14394do
14395as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14396if eval "test \"\${$as_ac_Header+set}\" = set"; then
14397 echo "$as_me:$LINENO: checking for $ac_header" >&5
14398echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14399if eval "test \"\${$as_ac_Header+set}\" = set"; then
14400 echo $ECHO_N "(cached) $ECHO_C" >&6
14401fi
14402echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14403echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14404else
14405 # Is the header compilable?
14406echo "$as_me:$LINENO: checking $ac_header usability" >&5
14407echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14408cat >conftest.$ac_ext <<_ACEOF
14409/* confdefs.h. */
14410_ACEOF
14411cat confdefs.h >>conftest.$ac_ext
14412cat >>conftest.$ac_ext <<_ACEOF
14413/* end confdefs.h. */
14414$ac_includes_default
14415#include <$ac_header>
14416_ACEOF
14417rm -f conftest.$ac_objext
14418if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14419 (eval $ac_compile) 2>conftest.er1
a848cd7e 14420 ac_status=$?
ac1cb8d3
VS
14421 grep -v '^ *+' conftest.er1 >conftest.err
14422 rm -f conftest.er1
14423 cat conftest.err >&5
a848cd7e
SC
14424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14425 (exit $ac_status); } &&
07158944 14426 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
14427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14428 (eval $ac_try) 2>&5
14429 ac_status=$?
14430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14431 (exit $ac_status); }; } &&
14432 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14434 (eval $ac_try) 2>&5
14435 ac_status=$?
14436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14437 (exit $ac_status); }; }; then
14438 ac_header_compiler=yes
14439else
14440 echo "$as_me: failed program was:" >&5
14441sed 's/^/| /' conftest.$ac_ext >&5
14442
14443ac_header_compiler=no
14444fi
ac1cb8d3 14445rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14446echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14447echo "${ECHO_T}$ac_header_compiler" >&6
14448
14449# Is the header present?
14450echo "$as_me:$LINENO: checking $ac_header presence" >&5
14451echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14452cat >conftest.$ac_ext <<_ACEOF
14453/* confdefs.h. */
14454_ACEOF
14455cat confdefs.h >>conftest.$ac_ext
14456cat >>conftest.$ac_ext <<_ACEOF
14457/* end confdefs.h. */
14458#include <$ac_header>
14459_ACEOF
14460if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14461 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14462 ac_status=$?
14463 grep -v '^ *+' conftest.er1 >conftest.err
14464 rm -f conftest.er1
14465 cat conftest.err >&5
14466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14467 (exit $ac_status); } >/dev/null; then
14468 if test -s conftest.err; then
14469 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 14470 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
14471 else
14472 ac_cpp_err=
14473 fi
14474else
14475 ac_cpp_err=yes
14476fi
14477if test -z "$ac_cpp_err"; then
14478 ac_header_preproc=yes
14479else
14480 echo "$as_me: failed program was:" >&5
14481sed 's/^/| /' conftest.$ac_ext >&5
14482
14483 ac_header_preproc=no
14484fi
14485rm -f conftest.err conftest.$ac_ext
14486echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14487echo "${ECHO_T}$ac_header_preproc" >&6
14488
14489# So? What about this header?
ac1cb8d3
VS
14490case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14491 yes:no: )
a848cd7e
SC
14492 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14493echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
14494 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14495echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14496 ac_header_preproc=yes
a848cd7e 14497 ;;
ac1cb8d3 14498 no:yes:* )
a848cd7e
SC
14499 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14500echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
14501 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14502echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14503 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14504echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14505 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14506echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
14507 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14508echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
14509 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14510echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
14511 (
14512 cat <<\_ASBOX
ac1cb8d3
VS
14513## ----------------------------------------- ##
14514## Report this to wx-dev@lists.wxwidgets.org ##
14515## ----------------------------------------- ##
a848cd7e
SC
14516_ASBOX
14517 ) |
14518 sed "s/^/$as_me: WARNING: /" >&2
14519 ;;
14520esac
14521echo "$as_me:$LINENO: checking for $ac_header" >&5
14522echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14523if eval "test \"\${$as_ac_Header+set}\" = set"; then
14524 echo $ECHO_N "(cached) $ECHO_C" >&6
14525else
ac1cb8d3 14526 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
14527fi
14528echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14529echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14530
14531fi
14532if test `eval echo '${'$as_ac_Header'}'` = yes; then
14533 cat >>confdefs.h <<_ACEOF
14534#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14535_ACEOF
14536
14537fi
14538
14539done
14540
14541fi
14542
14543
14544for ac_header in fnmatch.h
14545do
14546as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14547if eval "test \"\${$as_ac_Header+set}\" = set"; then
14548 echo "$as_me:$LINENO: checking for $ac_header" >&5
14549echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14550if eval "test \"\${$as_ac_Header+set}\" = set"; then
14551 echo $ECHO_N "(cached) $ECHO_C" >&6
14552fi
14553echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14554echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14555else
14556 # Is the header compilable?
14557echo "$as_me:$LINENO: checking $ac_header usability" >&5
14558echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14559cat >conftest.$ac_ext <<_ACEOF
14560/* confdefs.h. */
14561_ACEOF
14562cat confdefs.h >>conftest.$ac_ext
14563cat >>conftest.$ac_ext <<_ACEOF
14564/* end confdefs.h. */
14565$ac_includes_default
14566#include <$ac_header>
14567_ACEOF
14568rm -f conftest.$ac_objext
14569if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14570 (eval $ac_compile) 2>conftest.er1
a848cd7e 14571 ac_status=$?
ac1cb8d3
VS
14572 grep -v '^ *+' conftest.er1 >conftest.err
14573 rm -f conftest.er1
14574 cat conftest.err >&5
a848cd7e
SC
14575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14576 (exit $ac_status); } &&
07158944 14577 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
14578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14579 (eval $ac_try) 2>&5
14580 ac_status=$?
14581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14582 (exit $ac_status); }; } &&
14583 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14585 (eval $ac_try) 2>&5
14586 ac_status=$?
14587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14588 (exit $ac_status); }; }; then
14589 ac_header_compiler=yes
14590else
14591 echo "$as_me: failed program was:" >&5
14592sed 's/^/| /' conftest.$ac_ext >&5
14593
14594ac_header_compiler=no
14595fi
ac1cb8d3 14596rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14597echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14598echo "${ECHO_T}$ac_header_compiler" >&6
14599
14600# Is the header present?
14601echo "$as_me:$LINENO: checking $ac_header presence" >&5
14602echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14603cat >conftest.$ac_ext <<_ACEOF
14604/* confdefs.h. */
14605_ACEOF
14606cat confdefs.h >>conftest.$ac_ext
14607cat >>conftest.$ac_ext <<_ACEOF
14608/* end confdefs.h. */
14609#include <$ac_header>
14610_ACEOF
14611if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14612 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14613 ac_status=$?
14614 grep -v '^ *+' conftest.er1 >conftest.err
14615 rm -f conftest.er1
14616 cat conftest.err >&5
14617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14618 (exit $ac_status); } >/dev/null; then
14619 if test -s conftest.err; then
14620 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 14621 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
14622 else
14623 ac_cpp_err=
14624 fi
14625else
14626 ac_cpp_err=yes
14627fi
14628if test -z "$ac_cpp_err"; then
14629 ac_header_preproc=yes
14630else
14631 echo "$as_me: failed program was:" >&5
14632sed 's/^/| /' conftest.$ac_ext >&5
14633
14634 ac_header_preproc=no
14635fi
14636rm -f conftest.err conftest.$ac_ext
14637echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14638echo "${ECHO_T}$ac_header_preproc" >&6
14639
14640# So? What about this header?
ac1cb8d3
VS
14641case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14642 yes:no: )
a848cd7e
SC
14643 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14644echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
14645 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14646echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14647 ac_header_preproc=yes
a848cd7e 14648 ;;
ac1cb8d3 14649 no:yes:* )
a848cd7e
SC
14650 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14651echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
14652 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14653echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14654 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14655echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14656 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14657echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
14658 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14659echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
14660 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14661echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
14662 (
14663 cat <<\_ASBOX
ac1cb8d3
VS
14664## ----------------------------------------- ##
14665## Report this to wx-dev@lists.wxwidgets.org ##
14666## ----------------------------------------- ##
a848cd7e
SC
14667_ASBOX
14668 ) |
14669 sed "s/^/$as_me: WARNING: /" >&2
14670 ;;
14671esac
14672echo "$as_me:$LINENO: checking for $ac_header" >&5
14673echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14674if eval "test \"\${$as_ac_Header+set}\" = set"; then
14675 echo $ECHO_N "(cached) $ECHO_C" >&6
14676else
ac1cb8d3 14677 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
14678fi
14679echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14680echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14681
14682fi
14683if test `eval echo '${'$as_ac_Header'}'` = yes; then
14684 cat >>confdefs.h <<_ACEOF
14685#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14686_ACEOF
14687
14688fi
14689
14690done
14691
14692
14693if test "x$ac_cv_header_fnmatch_h" = "xyes"; then
14694
14695for ac_func in fnmatch
14696do
14697as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14698echo "$as_me:$LINENO: checking for $ac_func" >&5
14699echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14700if eval "test \"\${$as_ac_var+set}\" = set"; then
14701 echo $ECHO_N "(cached) $ECHO_C" >&6
14702else
14703 cat >conftest.$ac_ext <<_ACEOF
14704/* confdefs.h. */
14705_ACEOF
14706cat confdefs.h >>conftest.$ac_ext
14707cat >>conftest.$ac_ext <<_ACEOF
14708/* end confdefs.h. */
ac1cb8d3
VS
14709/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14710 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14711#define $ac_func innocuous_$ac_func
14712
a848cd7e
SC
14713/* System header to define __stub macros and hopefully few prototypes,
14714 which can conflict with char $ac_func (); below.
14715 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14716 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 14717
a848cd7e
SC
14718#ifdef __STDC__
14719# include <limits.h>
14720#else
14721# include <assert.h>
14722#endif
ac1cb8d3
VS
14723
14724#undef $ac_func
14725
a848cd7e
SC
14726/* Override any gcc2 internal prototype to avoid an error. */
14727#ifdef __cplusplus
14728extern "C"
14729{
14730#endif
14731/* We use char because int might match the return type of a gcc2
14732 builtin and then its argument prototype would still apply. */
14733char $ac_func ();
14734/* The GNU C library defines this for functions which it implements
14735 to always fail with ENOSYS. Some functions are actually named
14736 something starting with __ and the normal name is an alias. */
14737#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14738choke me
14739#else
14740char (*f) () = $ac_func;
14741#endif
14742#ifdef __cplusplus
14743}
14744#endif
14745
14746int
14747main ()
14748{
14749return f != $ac_func;
14750 ;
14751 return 0;
14752}
14753_ACEOF
14754rm -f conftest.$ac_objext conftest$ac_exeext
14755if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 14756 (eval $ac_link) 2>conftest.er1
a848cd7e 14757 ac_status=$?
ac1cb8d3
VS
14758 grep -v '^ *+' conftest.er1 >conftest.err
14759 rm -f conftest.er1
14760 cat conftest.err >&5
a848cd7e
SC
14761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14762 (exit $ac_status); } &&
07158944 14763 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
14764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14765 (eval $ac_try) 2>&5
14766 ac_status=$?
14767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14768 (exit $ac_status); }; } &&
14769 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
14770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14771 (eval $ac_try) 2>&5
14772 ac_status=$?
14773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14774 (exit $ac_status); }; }; then
14775 eval "$as_ac_var=yes"
14776else
14777 echo "$as_me: failed program was:" >&5
14778sed 's/^/| /' conftest.$ac_ext >&5
14779
14780eval "$as_ac_var=no"
14781fi
ac1cb8d3
VS
14782rm -f conftest.err conftest.$ac_objext \
14783 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
14784fi
14785echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14786echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14787if test `eval echo '${'$as_ac_var'}'` = yes; then
14788 cat >>confdefs.h <<_ACEOF
14789#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14790_ACEOF
14791
14792fi
14793done
14794
14795fi
14796
14797
14798for ac_header in langinfo.h
14799do
14800as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14801if eval "test \"\${$as_ac_Header+set}\" = set"; then
14802 echo "$as_me:$LINENO: checking for $ac_header" >&5
14803echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14804if eval "test \"\${$as_ac_Header+set}\" = set"; then
14805 echo $ECHO_N "(cached) $ECHO_C" >&6
14806fi
14807echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14808echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14809else
14810 # Is the header compilable?
14811echo "$as_me:$LINENO: checking $ac_header usability" >&5
14812echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14813cat >conftest.$ac_ext <<_ACEOF
14814/* confdefs.h. */
14815_ACEOF
14816cat confdefs.h >>conftest.$ac_ext
14817cat >>conftest.$ac_ext <<_ACEOF
14818/* end confdefs.h. */
14819$ac_includes_default
14820#include <$ac_header>
14821_ACEOF
14822rm -f conftest.$ac_objext
14823if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14824 (eval $ac_compile) 2>conftest.er1
a848cd7e 14825 ac_status=$?
ac1cb8d3
VS
14826 grep -v '^ *+' conftest.er1 >conftest.err
14827 rm -f conftest.er1
14828 cat conftest.err >&5
a848cd7e
SC
14829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14830 (exit $ac_status); } &&
07158944 14831 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
14832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14833 (eval $ac_try) 2>&5
14834 ac_status=$?
14835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14836 (exit $ac_status); }; } &&
14837 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14839 (eval $ac_try) 2>&5
14840 ac_status=$?
14841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14842 (exit $ac_status); }; }; then
14843 ac_header_compiler=yes
14844else
14845 echo "$as_me: failed program was:" >&5
14846sed 's/^/| /' conftest.$ac_ext >&5
14847
14848ac_header_compiler=no
14849fi
ac1cb8d3 14850rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14851echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14852echo "${ECHO_T}$ac_header_compiler" >&6
14853
14854# Is the header present?
14855echo "$as_me:$LINENO: checking $ac_header presence" >&5
14856echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14857cat >conftest.$ac_ext <<_ACEOF
14858/* confdefs.h. */
14859_ACEOF
14860cat confdefs.h >>conftest.$ac_ext
14861cat >>conftest.$ac_ext <<_ACEOF
14862/* end confdefs.h. */
14863#include <$ac_header>
14864_ACEOF
14865if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14866 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14867 ac_status=$?
14868 grep -v '^ *+' conftest.er1 >conftest.err
14869 rm -f conftest.er1
14870 cat conftest.err >&5
14871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14872 (exit $ac_status); } >/dev/null; then
14873 if test -s conftest.err; then
14874 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 14875 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
14876 else
14877 ac_cpp_err=
14878 fi
14879else
14880 ac_cpp_err=yes
14881fi
14882if test -z "$ac_cpp_err"; then
14883 ac_header_preproc=yes
14884else
14885 echo "$as_me: failed program was:" >&5
14886sed 's/^/| /' conftest.$ac_ext >&5
14887
14888 ac_header_preproc=no
14889fi
14890rm -f conftest.err conftest.$ac_ext
14891echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14892echo "${ECHO_T}$ac_header_preproc" >&6
14893
14894# So? What about this header?
ac1cb8d3
VS
14895case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14896 yes:no: )
a848cd7e
SC
14897 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14898echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
14899 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14900echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14901 ac_header_preproc=yes
a848cd7e 14902 ;;
ac1cb8d3 14903 no:yes:* )
a848cd7e
SC
14904 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14905echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
14906 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14907echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14908 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14909echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14910 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14911echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
14912 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14913echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
14914 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14915echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
14916 (
14917 cat <<\_ASBOX
ac1cb8d3
VS
14918## ----------------------------------------- ##
14919## Report this to wx-dev@lists.wxwidgets.org ##
14920## ----------------------------------------- ##
a848cd7e
SC
14921_ASBOX
14922 ) |
14923 sed "s/^/$as_me: WARNING: /" >&2
14924 ;;
14925esac
14926echo "$as_me:$LINENO: checking for $ac_header" >&5
14927echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14928if eval "test \"\${$as_ac_Header+set}\" = set"; then
14929 echo $ECHO_N "(cached) $ECHO_C" >&6
14930else
ac1cb8d3 14931 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
14932fi
14933echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14934echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14935
14936fi
14937if test `eval echo '${'$as_ac_Header'}'` = yes; then
14938 cat >>confdefs.h <<_ACEOF
14939#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14940_ACEOF
14941
14942fi
14943
14944done
14945
14946
14947case "${host}" in
14948 *-pc-os2_emx | *-pc-os2-emx )
391a765e
VS
14949 if test $ac_cv_header_langinfo_h = "yes" \
14950 -a \( "$wx_cv_gccversion" = "EMX2" \
14951 -o "$wx_cv_gccversion" = "EMX3" \
14952 -o "$wx_cv_gccversion" = "Innotek5" \); then
a848cd7e
SC
14953 LIBS="$LIBS -lintl"
14954 fi
14955 ;;
14956esac
14957
14958if test "$wxUSE_GUI" = "yes"; then
14959 if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_PM" != 1; then
14960
14961for ac_header in X11/Xlib.h
14962do
14963as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14964if eval "test \"\${$as_ac_Header+set}\" = set"; then
14965 echo "$as_me:$LINENO: checking for $ac_header" >&5
14966echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14967if eval "test \"\${$as_ac_Header+set}\" = set"; then
14968 echo $ECHO_N "(cached) $ECHO_C" >&6
14969fi
14970echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14971echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14972else
14973 # Is the header compilable?
14974echo "$as_me:$LINENO: checking $ac_header usability" >&5
14975echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14976cat >conftest.$ac_ext <<_ACEOF
14977/* confdefs.h. */
14978_ACEOF
14979cat confdefs.h >>conftest.$ac_ext
14980cat >>conftest.$ac_ext <<_ACEOF
14981/* end confdefs.h. */
14982$ac_includes_default
14983#include <$ac_header>
14984_ACEOF
14985rm -f conftest.$ac_objext
14986if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14987 (eval $ac_compile) 2>conftest.er1
a848cd7e 14988 ac_status=$?
ac1cb8d3
VS
14989 grep -v '^ *+' conftest.er1 >conftest.err
14990 rm -f conftest.er1
14991 cat conftest.err >&5
a848cd7e
SC
14992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14993 (exit $ac_status); } &&
07158944 14994 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
14995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14996 (eval $ac_try) 2>&5
14997 ac_status=$?
14998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14999 (exit $ac_status); }; } &&
15000 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15002 (eval $ac_try) 2>&5
15003 ac_status=$?
15004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15005 (exit $ac_status); }; }; then
15006 ac_header_compiler=yes
15007else
15008 echo "$as_me: failed program was:" >&5
15009sed 's/^/| /' conftest.$ac_ext >&5
15010
15011ac_header_compiler=no
15012fi
ac1cb8d3 15013rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15014echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15015echo "${ECHO_T}$ac_header_compiler" >&6
15016
15017# Is the header present?
15018echo "$as_me:$LINENO: checking $ac_header presence" >&5
15019echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15020cat >conftest.$ac_ext <<_ACEOF
15021/* confdefs.h. */
15022_ACEOF
15023cat confdefs.h >>conftest.$ac_ext
15024cat >>conftest.$ac_ext <<_ACEOF
15025/* end confdefs.h. */
15026#include <$ac_header>
15027_ACEOF
15028if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15029 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15030 ac_status=$?
15031 grep -v '^ *+' conftest.er1 >conftest.err
15032 rm -f conftest.er1
15033 cat conftest.err >&5
15034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15035 (exit $ac_status); } >/dev/null; then
15036 if test -s conftest.err; then
15037 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 15038 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
15039 else
15040 ac_cpp_err=
15041 fi
15042else
15043 ac_cpp_err=yes
15044fi
15045if test -z "$ac_cpp_err"; then
15046 ac_header_preproc=yes
15047else
15048 echo "$as_me: failed program was:" >&5
15049sed 's/^/| /' conftest.$ac_ext >&5
15050
15051 ac_header_preproc=no
15052fi
15053rm -f conftest.err conftest.$ac_ext
15054echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15055echo "${ECHO_T}$ac_header_preproc" >&6
15056
15057# So? What about this header?
ac1cb8d3
VS
15058case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15059 yes:no: )
a848cd7e
SC
15060 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15061echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
15062 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15063echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15064 ac_header_preproc=yes
a848cd7e 15065 ;;
ac1cb8d3 15066 no:yes:* )
a848cd7e
SC
15067 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15068echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
15069 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15070echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15071 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15072echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15073 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15074echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
15075 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15076echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
15077 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15078echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
15079 (
15080 cat <<\_ASBOX
ac1cb8d3
VS
15081## ----------------------------------------- ##
15082## Report this to wx-dev@lists.wxwidgets.org ##
15083## ----------------------------------------- ##
a848cd7e
SC
15084_ASBOX
15085 ) |
15086 sed "s/^/$as_me: WARNING: /" >&2
15087 ;;
15088esac
15089echo "$as_me:$LINENO: checking for $ac_header" >&5
15090echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15091if eval "test \"\${$as_ac_Header+set}\" = set"; then
15092 echo $ECHO_N "(cached) $ECHO_C" >&6
15093else
ac1cb8d3 15094 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
15095fi
15096echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15097echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15098
15099fi
15100if test `eval echo '${'$as_ac_Header'}'` = yes; then
15101 cat >>confdefs.h <<_ACEOF
15102#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15103_ACEOF
15104
15105fi
15106
15107done
15108
15109
15110for ac_header in X11/XKBlib.h
15111do
15112as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15113echo "$as_me:$LINENO: checking for $ac_header" >&5
15114echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15115if eval "test \"\${$as_ac_Header+set}\" = set"; then
15116 echo $ECHO_N "(cached) $ECHO_C" >&6
15117else
15118 cat >conftest.$ac_ext <<_ACEOF
15119/* confdefs.h. */
15120_ACEOF
15121cat confdefs.h >>conftest.$ac_ext
15122cat >>conftest.$ac_ext <<_ACEOF
15123/* end confdefs.h. */
15124
15125 #if HAVE_X11_XLIB_H
15126 #include <X11/Xlib.h>
15127 #endif
15128
15129
15130#include <$ac_header>
15131_ACEOF
15132rm -f conftest.$ac_objext
15133if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15134 (eval $ac_compile) 2>conftest.er1
a848cd7e 15135 ac_status=$?
ac1cb8d3
VS
15136 grep -v '^ *+' conftest.er1 >conftest.err
15137 rm -f conftest.er1
15138 cat conftest.err >&5
a848cd7e
SC
15139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15140 (exit $ac_status); } &&
07158944 15141 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15143 (eval $ac_try) 2>&5
15144 ac_status=$?
15145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15146 (exit $ac_status); }; } &&
15147 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15149 (eval $ac_try) 2>&5
15150 ac_status=$?
15151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15152 (exit $ac_status); }; }; then
15153 eval "$as_ac_Header=yes"
15154else
15155 echo "$as_me: failed program was:" >&5
15156sed 's/^/| /' conftest.$ac_ext >&5
15157
15158eval "$as_ac_Header=no"
15159fi
ac1cb8d3 15160rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15161fi
15162echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15163echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15164if test `eval echo '${'$as_ac_Header'}'` = yes; then
15165 cat >>confdefs.h <<_ACEOF
15166#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15167_ACEOF
15168
15169fi
15170
15171done
15172
15173 fi
15174fi
15175
15176
15177echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
15178echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
15179if test "${ac_cv_c_const+set}" = set; then
15180 echo $ECHO_N "(cached) $ECHO_C" >&6
15181else
15182 cat >conftest.$ac_ext <<_ACEOF
15183/* confdefs.h. */
15184_ACEOF
15185cat confdefs.h >>conftest.$ac_ext
15186cat >>conftest.$ac_ext <<_ACEOF
15187/* end confdefs.h. */
15188
15189int
15190main ()
15191{
15192/* FIXME: Include the comments suggested by Paul. */
15193#ifndef __cplusplus
15194 /* Ultrix mips cc rejects this. */
15195 typedef int charset[2];
15196 const charset x;
15197 /* SunOS 4.1.1 cc rejects this. */
15198 char const *const *ccp;
15199 char **p;
15200 /* NEC SVR4.0.2 mips cc rejects this. */
15201 struct point {int x, y;};
15202 static struct point const zero = {0,0};
15203 /* AIX XL C 1.02.0.0 rejects this.
15204 It does not let you subtract one const X* pointer from another in
15205 an arm of an if-expression whose if-part is not a constant
15206 expression */
15207 const char *g = "string";
15208 ccp = &g + (g ? g-g : 0);
15209 /* HPUX 7.0 cc rejects these. */
15210 ++ccp;
15211 p = (char**) ccp;
15212 ccp = (char const *const *) p;
15213 { /* SCO 3.2v4 cc rejects this. */
15214 char *t;
15215 char const *s = 0 ? (char *) 0 : (char const *) 0;
15216
15217 *t++ = 0;
15218 }
15219 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
15220 int x[] = {25, 17};
15221 const int *foo = &x[0];
15222 ++foo;
15223 }
15224 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
15225 typedef const int *iptr;
15226 iptr p = 0;
15227 ++p;
15228 }
15229 { /* AIX XL C 1.02.0.0 rejects this saying
15230 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
15231 struct s { int j; const int *ap[3]; };
15232 struct s *b; b->j = 5;
15233 }
15234 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
15235 const int foo = 10;
15236 }
15237#endif
15238
15239 ;
15240 return 0;
15241}
15242_ACEOF
15243rm -f conftest.$ac_objext
15244if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15245 (eval $ac_compile) 2>conftest.er1
a848cd7e 15246 ac_status=$?
ac1cb8d3
VS
15247 grep -v '^ *+' conftest.er1 >conftest.err
15248 rm -f conftest.er1
15249 cat conftest.err >&5
a848cd7e
SC
15250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15251 (exit $ac_status); } &&
07158944 15252 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15254 (eval $ac_try) 2>&5
15255 ac_status=$?
15256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15257 (exit $ac_status); }; } &&
15258 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15260 (eval $ac_try) 2>&5
15261 ac_status=$?
15262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15263 (exit $ac_status); }; }; then
15264 ac_cv_c_const=yes
15265else
15266 echo "$as_me: failed program was:" >&5
15267sed 's/^/| /' conftest.$ac_ext >&5
15268
15269ac_cv_c_const=no
15270fi
ac1cb8d3 15271rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15272fi
15273echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
15274echo "${ECHO_T}$ac_cv_c_const" >&6
15275if test $ac_cv_c_const = no; then
15276
15277cat >>confdefs.h <<\_ACEOF
15278#define const
15279_ACEOF
15280
15281fi
15282
15283echo "$as_me:$LINENO: checking for inline" >&5
15284echo $ECHO_N "checking for inline... $ECHO_C" >&6
15285if test "${ac_cv_c_inline+set}" = set; then
15286 echo $ECHO_N "(cached) $ECHO_C" >&6
15287else
15288 ac_cv_c_inline=no
15289for ac_kw in inline __inline__ __inline; do
15290 cat >conftest.$ac_ext <<_ACEOF
15291/* confdefs.h. */
15292_ACEOF
15293cat confdefs.h >>conftest.$ac_ext
15294cat >>conftest.$ac_ext <<_ACEOF
15295/* end confdefs.h. */
15296#ifndef __cplusplus
15297typedef int foo_t;
15298static $ac_kw foo_t static_foo () {return 0; }
15299$ac_kw foo_t foo () {return 0; }
15300#endif
15301
15302_ACEOF
15303rm -f conftest.$ac_objext
15304if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15305 (eval $ac_compile) 2>conftest.er1
a848cd7e 15306 ac_status=$?
ac1cb8d3
VS
15307 grep -v '^ *+' conftest.er1 >conftest.err
15308 rm -f conftest.er1
15309 cat conftest.err >&5
a848cd7e
SC
15310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15311 (exit $ac_status); } &&
07158944 15312 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15314 (eval $ac_try) 2>&5
15315 ac_status=$?
15316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15317 (exit $ac_status); }; } &&
15318 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15320 (eval $ac_try) 2>&5
15321 ac_status=$?
15322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15323 (exit $ac_status); }; }; then
15324 ac_cv_c_inline=$ac_kw; break
15325else
15326 echo "$as_me: failed program was:" >&5
15327sed 's/^/| /' conftest.$ac_ext >&5
15328
15329fi
ac1cb8d3 15330rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15331done
15332
15333fi
15334echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
15335echo "${ECHO_T}$ac_cv_c_inline" >&6
ac1cb8d3
VS
15336
15337
a848cd7e
SC
15338case $ac_cv_c_inline in
15339 inline | yes) ;;
ac1cb8d3
VS
15340 *)
15341 case $ac_cv_c_inline in
15342 no) ac_val=;;
15343 *) ac_val=$ac_cv_c_inline;;
15344 esac
15345 cat >>confdefs.h <<_ACEOF
15346#ifndef __cplusplus
15347#define inline $ac_val
15348#endif
de59c161 15349_ACEOF
ac1cb8d3 15350 ;;
a848cd7e
SC
15351esac
15352
15353
15354echo "$as_me:$LINENO: checking for char" >&5
15355echo $ECHO_N "checking for char... $ECHO_C" >&6
15356if test "${ac_cv_type_char+set}" = set; then
15357 echo $ECHO_N "(cached) $ECHO_C" >&6
15358else
15359 cat >conftest.$ac_ext <<_ACEOF
15360/* confdefs.h. */
15361_ACEOF
15362cat confdefs.h >>conftest.$ac_ext
15363cat >>conftest.$ac_ext <<_ACEOF
15364/* end confdefs.h. */
15365$ac_includes_default
15366int
15367main ()
15368{
15369if ((char *) 0)
15370 return 0;
15371if (sizeof (char))
15372 return 0;
15373 ;
15374 return 0;
15375}
15376_ACEOF
15377rm -f conftest.$ac_objext
15378if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15379 (eval $ac_compile) 2>conftest.er1
a848cd7e 15380 ac_status=$?
ac1cb8d3
VS
15381 grep -v '^ *+' conftest.er1 >conftest.err
15382 rm -f conftest.er1
15383 cat conftest.err >&5
a848cd7e
SC
15384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15385 (exit $ac_status); } &&
07158944 15386 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15388 (eval $ac_try) 2>&5
15389 ac_status=$?
15390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15391 (exit $ac_status); }; } &&
15392 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15394 (eval $ac_try) 2>&5
15395 ac_status=$?
15396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15397 (exit $ac_status); }; }; then
15398 ac_cv_type_char=yes
15399else
15400 echo "$as_me: failed program was:" >&5
15401sed 's/^/| /' conftest.$ac_ext >&5
15402
15403ac_cv_type_char=no
15404fi
ac1cb8d3 15405rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15406fi
15407echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
15408echo "${ECHO_T}$ac_cv_type_char" >&6
15409
15410echo "$as_me:$LINENO: checking size of char" >&5
15411echo $ECHO_N "checking size of char... $ECHO_C" >&6
15412if test "${ac_cv_sizeof_char+set}" = set; then
15413 echo $ECHO_N "(cached) $ECHO_C" >&6
15414else
15415 if test "$ac_cv_type_char" = yes; then
15416 # The cast to unsigned long works around a bug in the HP C Compiler
15417 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15418 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15419 # This bug is HP SR number 8606223364.
15420 if test "$cross_compiling" = yes; then
15421 # Depending upon the size, compute the lo and hi bounds.
15422cat >conftest.$ac_ext <<_ACEOF
15423/* confdefs.h. */
15424_ACEOF
15425cat confdefs.h >>conftest.$ac_ext
15426cat >>conftest.$ac_ext <<_ACEOF
15427/* end confdefs.h. */
15428$ac_includes_default
15429int
15430main ()
15431{
15432static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
15433test_array [0] = 0
15434
15435 ;
15436 return 0;
15437}
15438_ACEOF
15439rm -f conftest.$ac_objext
15440if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15441 (eval $ac_compile) 2>conftest.er1
a848cd7e 15442 ac_status=$?
ac1cb8d3
VS
15443 grep -v '^ *+' conftest.er1 >conftest.err
15444 rm -f conftest.er1
15445 cat conftest.err >&5
a848cd7e
SC
15446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15447 (exit $ac_status); } &&
07158944 15448 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15450 (eval $ac_try) 2>&5
15451 ac_status=$?
15452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15453 (exit $ac_status); }; } &&
15454 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15456 (eval $ac_try) 2>&5
15457 ac_status=$?
15458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15459 (exit $ac_status); }; }; then
15460 ac_lo=0 ac_mid=0
15461 while :; do
15462 cat >conftest.$ac_ext <<_ACEOF
15463/* confdefs.h. */
15464_ACEOF
15465cat confdefs.h >>conftest.$ac_ext
15466cat >>conftest.$ac_ext <<_ACEOF
15467/* end confdefs.h. */
15468$ac_includes_default
15469int
15470main ()
15471{
15472static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
15473test_array [0] = 0
15474
15475 ;
15476 return 0;
15477}
15478_ACEOF
15479rm -f conftest.$ac_objext
15480if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15481 (eval $ac_compile) 2>conftest.er1
a848cd7e 15482 ac_status=$?
ac1cb8d3
VS
15483 grep -v '^ *+' conftest.er1 >conftest.err
15484 rm -f conftest.er1
15485 cat conftest.err >&5
a848cd7e
SC
15486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15487 (exit $ac_status); } &&
07158944 15488 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15490 (eval $ac_try) 2>&5
15491 ac_status=$?
15492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15493 (exit $ac_status); }; } &&
15494 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15496 (eval $ac_try) 2>&5
15497 ac_status=$?
15498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15499 (exit $ac_status); }; }; then
15500 ac_hi=$ac_mid; break
15501else
15502 echo "$as_me: failed program was:" >&5
15503sed 's/^/| /' conftest.$ac_ext >&5
15504
15505ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
15506 if test $ac_lo -le $ac_mid; then
15507 ac_lo= ac_hi=
15508 break
15509 fi
15510 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 15511fi
ac1cb8d3 15512rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15513 done
15514else
15515 echo "$as_me: failed program was:" >&5
15516sed 's/^/| /' conftest.$ac_ext >&5
15517
15518cat >conftest.$ac_ext <<_ACEOF
15519/* confdefs.h. */
15520_ACEOF
15521cat confdefs.h >>conftest.$ac_ext
15522cat >>conftest.$ac_ext <<_ACEOF
15523/* end confdefs.h. */
15524$ac_includes_default
15525int
15526main ()
15527{
15528static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
15529test_array [0] = 0
15530
15531 ;
15532 return 0;
15533}
15534_ACEOF
15535rm -f conftest.$ac_objext
15536if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15537 (eval $ac_compile) 2>conftest.er1
a848cd7e 15538 ac_status=$?
ac1cb8d3
VS
15539 grep -v '^ *+' conftest.er1 >conftest.err
15540 rm -f conftest.er1
15541 cat conftest.err >&5
a848cd7e
SC
15542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15543 (exit $ac_status); } &&
07158944 15544 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15546 (eval $ac_try) 2>&5
15547 ac_status=$?
15548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15549 (exit $ac_status); }; } &&
15550 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15552 (eval $ac_try) 2>&5
15553 ac_status=$?
15554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15555 (exit $ac_status); }; }; then
15556 ac_hi=-1 ac_mid=-1
15557 while :; do
15558 cat >conftest.$ac_ext <<_ACEOF
15559/* confdefs.h. */
15560_ACEOF
15561cat confdefs.h >>conftest.$ac_ext
15562cat >>conftest.$ac_ext <<_ACEOF
15563/* end confdefs.h. */
15564$ac_includes_default
15565int
15566main ()
15567{
15568static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
15569test_array [0] = 0
15570
15571 ;
15572 return 0;
15573}
15574_ACEOF
15575rm -f conftest.$ac_objext
15576if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15577 (eval $ac_compile) 2>conftest.er1
a848cd7e 15578 ac_status=$?
ac1cb8d3
VS
15579 grep -v '^ *+' conftest.er1 >conftest.err
15580 rm -f conftest.er1
15581 cat conftest.err >&5
a848cd7e
SC
15582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15583 (exit $ac_status); } &&
07158944 15584 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15586 (eval $ac_try) 2>&5
15587 ac_status=$?
15588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15589 (exit $ac_status); }; } &&
15590 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15592 (eval $ac_try) 2>&5
15593 ac_status=$?
15594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15595 (exit $ac_status); }; }; then
15596 ac_lo=$ac_mid; break
15597else
15598 echo "$as_me: failed program was:" >&5
15599sed 's/^/| /' conftest.$ac_ext >&5
15600
15601ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
15602 if test $ac_mid -le $ac_hi; then
15603 ac_lo= ac_hi=
15604 break
15605 fi
15606 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 15607fi
ac1cb8d3 15608rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15609 done
15610else
15611 echo "$as_me: failed program was:" >&5
15612sed 's/^/| /' conftest.$ac_ext >&5
15613
15614ac_lo= ac_hi=
15615fi
ac1cb8d3 15616rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 15617fi
ac1cb8d3 15618rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15619# Binary search between lo and hi bounds.
15620while test "x$ac_lo" != "x$ac_hi"; do
15621 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15622 cat >conftest.$ac_ext <<_ACEOF
15623/* confdefs.h. */
15624_ACEOF
15625cat confdefs.h >>conftest.$ac_ext
15626cat >>conftest.$ac_ext <<_ACEOF
15627/* end confdefs.h. */
15628$ac_includes_default
15629int
15630main ()
15631{
15632static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
15633test_array [0] = 0
15634
15635 ;
15636 return 0;
15637}
15638_ACEOF
15639rm -f conftest.$ac_objext
15640if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15641 (eval $ac_compile) 2>conftest.er1
a848cd7e 15642 ac_status=$?
ac1cb8d3
VS
15643 grep -v '^ *+' conftest.er1 >conftest.err
15644 rm -f conftest.er1
15645 cat conftest.err >&5
a848cd7e
SC
15646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15647 (exit $ac_status); } &&
07158944 15648 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15650 (eval $ac_try) 2>&5
15651 ac_status=$?
15652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15653 (exit $ac_status); }; } &&
15654 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15656 (eval $ac_try) 2>&5
15657 ac_status=$?
15658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15659 (exit $ac_status); }; }; then
15660 ac_hi=$ac_mid
15661else
15662 echo "$as_me: failed program was:" >&5
15663sed 's/^/| /' conftest.$ac_ext >&5
15664
15665ac_lo=`expr '(' $ac_mid ')' + 1`
15666fi
ac1cb8d3 15667rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15668done
15669case $ac_lo in
15670?*) ac_cv_sizeof_char=$ac_lo;;
15671'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
15672See \`config.log' for more details." >&5
15673echo "$as_me: error: cannot compute sizeof (char), 77
15674See \`config.log' for more details." >&2;}
15675 { (exit 1); exit 1; }; } ;;
15676esac
15677else
15678 if test "$cross_compiling" = yes; then
07158944
VZ
15679 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
15680echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
15681 { (exit 1); exit 1; }; }
15682else
15683 cat >conftest.$ac_ext <<_ACEOF
15684/* confdefs.h. */
15685_ACEOF
15686cat confdefs.h >>conftest.$ac_ext
15687cat >>conftest.$ac_ext <<_ACEOF
15688/* end confdefs.h. */
15689$ac_includes_default
15690long longval () { return (long) (sizeof (char)); }
15691unsigned long ulongval () { return (long) (sizeof (char)); }
15692#include <stdio.h>
15693#include <stdlib.h>
15694int
15695main ()
15696{
15697
15698 FILE *f = fopen ("conftest.val", "w");
15699 if (! f)
15700 exit (1);
15701 if (((long) (sizeof (char))) < 0)
15702 {
15703 long i = longval ();
15704 if (i != ((long) (sizeof (char))))
15705 exit (1);
15706 fprintf (f, "%ld\n", i);
15707 }
15708 else
15709 {
15710 unsigned long i = ulongval ();
15711 if (i != ((long) (sizeof (char))))
15712 exit (1);
15713 fprintf (f, "%lu\n", i);
15714 }
15715 exit (ferror (f) || fclose (f) != 0);
15716
15717 ;
15718 return 0;
15719}
15720_ACEOF
15721rm -f conftest$ac_exeext
15722if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15723 (eval $ac_link) 2>&5
15724 ac_status=$?
15725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15726 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15728 (eval $ac_try) 2>&5
15729 ac_status=$?
15730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15731 (exit $ac_status); }; }; then
15732 ac_cv_sizeof_char=`cat conftest.val`
15733else
15734 echo "$as_me: program exited with status $ac_status" >&5
15735echo "$as_me: failed program was:" >&5
15736sed 's/^/| /' conftest.$ac_ext >&5
15737
15738( exit $ac_status )
15739{ { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
15740See \`config.log' for more details." >&5
15741echo "$as_me: error: cannot compute sizeof (char), 77
15742See \`config.log' for more details." >&2;}
15743 { (exit 1); exit 1; }; }
15744fi
ac1cb8d3 15745rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15746fi
15747fi
15748rm -f conftest.val
15749else
15750 ac_cv_sizeof_char=0
15751fi
15752fi
15753echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
15754echo "${ECHO_T}$ac_cv_sizeof_char" >&6
15755cat >>confdefs.h <<_ACEOF
15756#define SIZEOF_CHAR $ac_cv_sizeof_char
15757_ACEOF
15758
15759
15760echo "$as_me:$LINENO: checking for short" >&5
15761echo $ECHO_N "checking for short... $ECHO_C" >&6
15762if test "${ac_cv_type_short+set}" = set; then
15763 echo $ECHO_N "(cached) $ECHO_C" >&6
15764else
15765 cat >conftest.$ac_ext <<_ACEOF
15766/* confdefs.h. */
15767_ACEOF
15768cat confdefs.h >>conftest.$ac_ext
15769cat >>conftest.$ac_ext <<_ACEOF
15770/* end confdefs.h. */
15771$ac_includes_default
15772int
15773main ()
15774{
15775if ((short *) 0)
15776 return 0;
15777if (sizeof (short))
15778 return 0;
15779 ;
15780 return 0;
15781}
15782_ACEOF
15783rm -f conftest.$ac_objext
15784if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15785 (eval $ac_compile) 2>conftest.er1
a848cd7e 15786 ac_status=$?
ac1cb8d3
VS
15787 grep -v '^ *+' conftest.er1 >conftest.err
15788 rm -f conftest.er1
15789 cat conftest.err >&5
a848cd7e
SC
15790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15791 (exit $ac_status); } &&
07158944 15792 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15794 (eval $ac_try) 2>&5
15795 ac_status=$?
15796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15797 (exit $ac_status); }; } &&
15798 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15800 (eval $ac_try) 2>&5
15801 ac_status=$?
15802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15803 (exit $ac_status); }; }; then
15804 ac_cv_type_short=yes
15805else
15806 echo "$as_me: failed program was:" >&5
15807sed 's/^/| /' conftest.$ac_ext >&5
15808
15809ac_cv_type_short=no
15810fi
ac1cb8d3 15811rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15812fi
15813echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
15814echo "${ECHO_T}$ac_cv_type_short" >&6
15815
15816echo "$as_me:$LINENO: checking size of short" >&5
15817echo $ECHO_N "checking size of short... $ECHO_C" >&6
15818if test "${ac_cv_sizeof_short+set}" = set; then
15819 echo $ECHO_N "(cached) $ECHO_C" >&6
15820else
15821 if test "$ac_cv_type_short" = yes; then
15822 # The cast to unsigned long works around a bug in the HP C Compiler
15823 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15824 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15825 # This bug is HP SR number 8606223364.
15826 if test "$cross_compiling" = yes; then
15827 # Depending upon the size, compute the lo and hi bounds.
15828cat >conftest.$ac_ext <<_ACEOF
15829/* confdefs.h. */
15830_ACEOF
15831cat confdefs.h >>conftest.$ac_ext
15832cat >>conftest.$ac_ext <<_ACEOF
15833/* end confdefs.h. */
15834$ac_includes_default
15835int
15836main ()
15837{
15838static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
15839test_array [0] = 0
15840
15841 ;
15842 return 0;
15843}
15844_ACEOF
15845rm -f conftest.$ac_objext
15846if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15847 (eval $ac_compile) 2>conftest.er1
a848cd7e 15848 ac_status=$?
ac1cb8d3
VS
15849 grep -v '^ *+' conftest.er1 >conftest.err
15850 rm -f conftest.er1
15851 cat conftest.err >&5
a848cd7e
SC
15852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15853 (exit $ac_status); } &&
07158944 15854 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15856 (eval $ac_try) 2>&5
15857 ac_status=$?
15858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15859 (exit $ac_status); }; } &&
15860 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15862 (eval $ac_try) 2>&5
15863 ac_status=$?
15864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15865 (exit $ac_status); }; }; then
15866 ac_lo=0 ac_mid=0
15867 while :; do
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
15875int
15876main ()
15877{
15878static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
15879test_array [0] = 0
15880
15881 ;
15882 return 0;
15883}
15884_ACEOF
15885rm -f conftest.$ac_objext
15886if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15887 (eval $ac_compile) 2>conftest.er1
a848cd7e 15888 ac_status=$?
ac1cb8d3
VS
15889 grep -v '^ *+' conftest.er1 >conftest.err
15890 rm -f conftest.er1
15891 cat conftest.err >&5
a848cd7e
SC
15892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15893 (exit $ac_status); } &&
07158944 15894 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15896 (eval $ac_try) 2>&5
15897 ac_status=$?
15898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15899 (exit $ac_status); }; } &&
15900 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15902 (eval $ac_try) 2>&5
15903 ac_status=$?
15904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15905 (exit $ac_status); }; }; then
15906 ac_hi=$ac_mid; break
15907else
15908 echo "$as_me: failed program was:" >&5
15909sed 's/^/| /' conftest.$ac_ext >&5
15910
15911ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
15912 if test $ac_lo -le $ac_mid; then
15913 ac_lo= ac_hi=
15914 break
15915 fi
15916 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 15917fi
ac1cb8d3 15918rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15919 done
15920else
15921 echo "$as_me: failed program was:" >&5
15922sed 's/^/| /' conftest.$ac_ext >&5
15923
15924cat >conftest.$ac_ext <<_ACEOF
15925/* confdefs.h. */
15926_ACEOF
15927cat confdefs.h >>conftest.$ac_ext
15928cat >>conftest.$ac_ext <<_ACEOF
15929/* end confdefs.h. */
15930$ac_includes_default
15931int
15932main ()
15933{
15934static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
15935test_array [0] = 0
15936
15937 ;
15938 return 0;
15939}
15940_ACEOF
15941rm -f conftest.$ac_objext
15942if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15943 (eval $ac_compile) 2>conftest.er1
a848cd7e 15944 ac_status=$?
ac1cb8d3
VS
15945 grep -v '^ *+' conftest.er1 >conftest.err
15946 rm -f conftest.er1
15947 cat conftest.err >&5
a848cd7e
SC
15948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15949 (exit $ac_status); } &&
07158944 15950 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15952 (eval $ac_try) 2>&5
15953 ac_status=$?
15954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15955 (exit $ac_status); }; } &&
15956 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15958 (eval $ac_try) 2>&5
15959 ac_status=$?
15960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15961 (exit $ac_status); }; }; then
15962 ac_hi=-1 ac_mid=-1
15963 while :; do
15964 cat >conftest.$ac_ext <<_ACEOF
15965/* confdefs.h. */
15966_ACEOF
15967cat confdefs.h >>conftest.$ac_ext
15968cat >>conftest.$ac_ext <<_ACEOF
15969/* end confdefs.h. */
15970$ac_includes_default
15971int
15972main ()
15973{
15974static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
15975test_array [0] = 0
15976
15977 ;
15978 return 0;
15979}
15980_ACEOF
15981rm -f conftest.$ac_objext
15982if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15983 (eval $ac_compile) 2>conftest.er1
a848cd7e 15984 ac_status=$?
ac1cb8d3
VS
15985 grep -v '^ *+' conftest.er1 >conftest.err
15986 rm -f conftest.er1
15987 cat conftest.err >&5
a848cd7e
SC
15988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15989 (exit $ac_status); } &&
07158944 15990 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15992 (eval $ac_try) 2>&5
15993 ac_status=$?
15994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15995 (exit $ac_status); }; } &&
15996 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15998 (eval $ac_try) 2>&5
15999 ac_status=$?
16000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16001 (exit $ac_status); }; }; then
16002 ac_lo=$ac_mid; break
16003else
16004 echo "$as_me: failed program was:" >&5
16005sed 's/^/| /' conftest.$ac_ext >&5
16006
16007ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
16008 if test $ac_mid -le $ac_hi; then
16009 ac_lo= ac_hi=
16010 break
16011 fi
16012 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 16013fi
ac1cb8d3 16014rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16015 done
16016else
16017 echo "$as_me: failed program was:" >&5
16018sed 's/^/| /' conftest.$ac_ext >&5
16019
16020ac_lo= ac_hi=
16021fi
ac1cb8d3 16022rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 16023fi
ac1cb8d3 16024rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16025# Binary search between lo and hi bounds.
16026while test "x$ac_lo" != "x$ac_hi"; do
16027 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16028 cat >conftest.$ac_ext <<_ACEOF
16029/* confdefs.h. */
16030_ACEOF
16031cat confdefs.h >>conftest.$ac_ext
16032cat >>conftest.$ac_ext <<_ACEOF
16033/* end confdefs.h. */
16034$ac_includes_default
16035int
16036main ()
16037{
16038static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
16039test_array [0] = 0
16040
16041 ;
16042 return 0;
16043}
16044_ACEOF
16045rm -f conftest.$ac_objext
16046if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16047 (eval $ac_compile) 2>conftest.er1
a848cd7e 16048 ac_status=$?
ac1cb8d3
VS
16049 grep -v '^ *+' conftest.er1 >conftest.err
16050 rm -f conftest.er1
16051 cat conftest.err >&5
a848cd7e
SC
16052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16053 (exit $ac_status); } &&
07158944 16054 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16056 (eval $ac_try) 2>&5
16057 ac_status=$?
16058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16059 (exit $ac_status); }; } &&
16060 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16062 (eval $ac_try) 2>&5
16063 ac_status=$?
16064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16065 (exit $ac_status); }; }; then
16066 ac_hi=$ac_mid
16067else
16068 echo "$as_me: failed program was:" >&5
16069sed 's/^/| /' conftest.$ac_ext >&5
16070
16071ac_lo=`expr '(' $ac_mid ')' + 1`
16072fi
ac1cb8d3 16073rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16074done
16075case $ac_lo in
16076?*) ac_cv_sizeof_short=$ac_lo;;
16077'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
16078See \`config.log' for more details." >&5
16079echo "$as_me: error: cannot compute sizeof (short), 77
16080See \`config.log' for more details." >&2;}
16081 { (exit 1); exit 1; }; } ;;
16082esac
16083else
16084 if test "$cross_compiling" = yes; then
07158944
VZ
16085 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
16086echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
16087 { (exit 1); exit 1; }; }
16088else
16089 cat >conftest.$ac_ext <<_ACEOF
16090/* confdefs.h. */
16091_ACEOF
16092cat confdefs.h >>conftest.$ac_ext
16093cat >>conftest.$ac_ext <<_ACEOF
16094/* end confdefs.h. */
16095$ac_includes_default
16096long longval () { return (long) (sizeof (short)); }
16097unsigned long ulongval () { return (long) (sizeof (short)); }
16098#include <stdio.h>
16099#include <stdlib.h>
16100int
16101main ()
16102{
16103
16104 FILE *f = fopen ("conftest.val", "w");
16105 if (! f)
16106 exit (1);
16107 if (((long) (sizeof (short))) < 0)
16108 {
16109 long i = longval ();
16110 if (i != ((long) (sizeof (short))))
16111 exit (1);
16112 fprintf (f, "%ld\n", i);
16113 }
16114 else
16115 {
16116 unsigned long i = ulongval ();
16117 if (i != ((long) (sizeof (short))))
16118 exit (1);
16119 fprintf (f, "%lu\n", i);
16120 }
16121 exit (ferror (f) || fclose (f) != 0);
16122
16123 ;
16124 return 0;
16125}
16126_ACEOF
16127rm -f conftest$ac_exeext
16128if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16129 (eval $ac_link) 2>&5
16130 ac_status=$?
16131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16132 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16134 (eval $ac_try) 2>&5
16135 ac_status=$?
16136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16137 (exit $ac_status); }; }; then
16138 ac_cv_sizeof_short=`cat conftest.val`
16139else
16140 echo "$as_me: program exited with status $ac_status" >&5
16141echo "$as_me: failed program was:" >&5
16142sed 's/^/| /' conftest.$ac_ext >&5
16143
16144( exit $ac_status )
16145{ { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
16146See \`config.log' for more details." >&5
16147echo "$as_me: error: cannot compute sizeof (short), 77
16148See \`config.log' for more details." >&2;}
16149 { (exit 1); exit 1; }; }
16150fi
ac1cb8d3 16151rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16152fi
16153fi
16154rm -f conftest.val
16155else
16156 ac_cv_sizeof_short=0
16157fi
16158fi
16159echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
16160echo "${ECHO_T}$ac_cv_sizeof_short" >&6
16161cat >>confdefs.h <<_ACEOF
16162#define SIZEOF_SHORT $ac_cv_sizeof_short
16163_ACEOF
16164
16165
16166echo "$as_me:$LINENO: checking for void *" >&5
16167echo $ECHO_N "checking for void *... $ECHO_C" >&6
16168if test "${ac_cv_type_void_p+set}" = set; then
16169 echo $ECHO_N "(cached) $ECHO_C" >&6
16170else
16171 cat >conftest.$ac_ext <<_ACEOF
16172/* confdefs.h. */
16173_ACEOF
16174cat confdefs.h >>conftest.$ac_ext
16175cat >>conftest.$ac_ext <<_ACEOF
16176/* end confdefs.h. */
16177$ac_includes_default
16178int
16179main ()
16180{
16181if ((void * *) 0)
16182 return 0;
16183if (sizeof (void *))
16184 return 0;
16185 ;
16186 return 0;
16187}
16188_ACEOF
16189rm -f conftest.$ac_objext
16190if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16191 (eval $ac_compile) 2>conftest.er1
a848cd7e 16192 ac_status=$?
ac1cb8d3
VS
16193 grep -v '^ *+' conftest.er1 >conftest.err
16194 rm -f conftest.er1
16195 cat conftest.err >&5
a848cd7e
SC
16196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16197 (exit $ac_status); } &&
07158944 16198 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16200 (eval $ac_try) 2>&5
16201 ac_status=$?
16202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16203 (exit $ac_status); }; } &&
16204 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16206 (eval $ac_try) 2>&5
16207 ac_status=$?
16208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16209 (exit $ac_status); }; }; then
16210 ac_cv_type_void_p=yes
16211else
16212 echo "$as_me: failed program was:" >&5
16213sed 's/^/| /' conftest.$ac_ext >&5
16214
16215ac_cv_type_void_p=no
16216fi
ac1cb8d3 16217rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16218fi
16219echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
16220echo "${ECHO_T}$ac_cv_type_void_p" >&6
16221
16222echo "$as_me:$LINENO: checking size of void *" >&5
16223echo $ECHO_N "checking size of void *... $ECHO_C" >&6
16224if test "${ac_cv_sizeof_void_p+set}" = set; then
16225 echo $ECHO_N "(cached) $ECHO_C" >&6
16226else
16227 if test "$ac_cv_type_void_p" = yes; then
16228 # The cast to unsigned long works around a bug in the HP C Compiler
16229 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16230 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16231 # This bug is HP SR number 8606223364.
16232 if test "$cross_compiling" = yes; then
16233 # Depending upon the size, compute the lo and hi bounds.
16234cat >conftest.$ac_ext <<_ACEOF
16235/* confdefs.h. */
16236_ACEOF
16237cat confdefs.h >>conftest.$ac_ext
16238cat >>conftest.$ac_ext <<_ACEOF
16239/* end confdefs.h. */
16240$ac_includes_default
16241int
16242main ()
16243{
16244static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
16245test_array [0] = 0
16246
16247 ;
16248 return 0;
16249}
16250_ACEOF
16251rm -f conftest.$ac_objext
16252if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16253 (eval $ac_compile) 2>conftest.er1
a848cd7e 16254 ac_status=$?
ac1cb8d3
VS
16255 grep -v '^ *+' conftest.er1 >conftest.err
16256 rm -f conftest.er1
16257 cat conftest.err >&5
a848cd7e
SC
16258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16259 (exit $ac_status); } &&
07158944 16260 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16262 (eval $ac_try) 2>&5
16263 ac_status=$?
16264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16265 (exit $ac_status); }; } &&
16266 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16268 (eval $ac_try) 2>&5
16269 ac_status=$?
16270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16271 (exit $ac_status); }; }; then
16272 ac_lo=0 ac_mid=0
16273 while :; do
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
16281int
16282main ()
16283{
16284static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
16285test_array [0] = 0
16286
16287 ;
16288 return 0;
16289}
16290_ACEOF
16291rm -f conftest.$ac_objext
16292if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16293 (eval $ac_compile) 2>conftest.er1
a848cd7e 16294 ac_status=$?
ac1cb8d3
VS
16295 grep -v '^ *+' conftest.er1 >conftest.err
16296 rm -f conftest.er1
16297 cat conftest.err >&5
a848cd7e
SC
16298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16299 (exit $ac_status); } &&
07158944 16300 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16302 (eval $ac_try) 2>&5
16303 ac_status=$?
16304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16305 (exit $ac_status); }; } &&
16306 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16308 (eval $ac_try) 2>&5
16309 ac_status=$?
16310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16311 (exit $ac_status); }; }; then
16312 ac_hi=$ac_mid; break
16313else
16314 echo "$as_me: failed program was:" >&5
16315sed 's/^/| /' conftest.$ac_ext >&5
16316
16317ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
16318 if test $ac_lo -le $ac_mid; then
16319 ac_lo= ac_hi=
16320 break
16321 fi
16322 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 16323fi
ac1cb8d3 16324rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16325 done
16326else
16327 echo "$as_me: failed program was:" >&5
16328sed 's/^/| /' conftest.$ac_ext >&5
16329
16330cat >conftest.$ac_ext <<_ACEOF
16331/* confdefs.h. */
16332_ACEOF
16333cat confdefs.h >>conftest.$ac_ext
16334cat >>conftest.$ac_ext <<_ACEOF
16335/* end confdefs.h. */
16336$ac_includes_default
16337int
16338main ()
16339{
16340static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
16341test_array [0] = 0
16342
16343 ;
16344 return 0;
16345}
16346_ACEOF
16347rm -f conftest.$ac_objext
16348if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16349 (eval $ac_compile) 2>conftest.er1
a848cd7e 16350 ac_status=$?
ac1cb8d3
VS
16351 grep -v '^ *+' conftest.er1 >conftest.err
16352 rm -f conftest.er1
16353 cat conftest.err >&5
a848cd7e
SC
16354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16355 (exit $ac_status); } &&
07158944 16356 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16358 (eval $ac_try) 2>&5
16359 ac_status=$?
16360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16361 (exit $ac_status); }; } &&
16362 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16364 (eval $ac_try) 2>&5
16365 ac_status=$?
16366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16367 (exit $ac_status); }; }; then
16368 ac_hi=-1 ac_mid=-1
16369 while :; do
16370 cat >conftest.$ac_ext <<_ACEOF
16371/* confdefs.h. */
16372_ACEOF
16373cat confdefs.h >>conftest.$ac_ext
16374cat >>conftest.$ac_ext <<_ACEOF
16375/* end confdefs.h. */
16376$ac_includes_default
16377int
16378main ()
16379{
16380static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
16381test_array [0] = 0
16382
16383 ;
16384 return 0;
16385}
16386_ACEOF
16387rm -f conftest.$ac_objext
16388if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16389 (eval $ac_compile) 2>conftest.er1
a848cd7e 16390 ac_status=$?
ac1cb8d3
VS
16391 grep -v '^ *+' conftest.er1 >conftest.err
16392 rm -f conftest.er1
16393 cat conftest.err >&5
a848cd7e
SC
16394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16395 (exit $ac_status); } &&
07158944 16396 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16398 (eval $ac_try) 2>&5
16399 ac_status=$?
16400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16401 (exit $ac_status); }; } &&
16402 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16404 (eval $ac_try) 2>&5
16405 ac_status=$?
16406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16407 (exit $ac_status); }; }; then
16408 ac_lo=$ac_mid; break
16409else
16410 echo "$as_me: failed program was:" >&5
16411sed 's/^/| /' conftest.$ac_ext >&5
16412
16413ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
16414 if test $ac_mid -le $ac_hi; then
16415 ac_lo= ac_hi=
16416 break
16417 fi
16418 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 16419fi
ac1cb8d3 16420rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16421 done
16422else
16423 echo "$as_me: failed program was:" >&5
16424sed 's/^/| /' conftest.$ac_ext >&5
16425
16426ac_lo= ac_hi=
16427fi
ac1cb8d3 16428rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 16429fi
ac1cb8d3 16430rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16431# Binary search between lo and hi bounds.
16432while test "x$ac_lo" != "x$ac_hi"; do
16433 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16434 cat >conftest.$ac_ext <<_ACEOF
16435/* confdefs.h. */
16436_ACEOF
16437cat confdefs.h >>conftest.$ac_ext
16438cat >>conftest.$ac_ext <<_ACEOF
16439/* end confdefs.h. */
16440$ac_includes_default
16441int
16442main ()
16443{
16444static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
16445test_array [0] = 0
16446
16447 ;
16448 return 0;
16449}
16450_ACEOF
16451rm -f conftest.$ac_objext
16452if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16453 (eval $ac_compile) 2>conftest.er1
a848cd7e 16454 ac_status=$?
ac1cb8d3
VS
16455 grep -v '^ *+' conftest.er1 >conftest.err
16456 rm -f conftest.er1
16457 cat conftest.err >&5
a848cd7e
SC
16458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16459 (exit $ac_status); } &&
07158944 16460 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16462 (eval $ac_try) 2>&5
16463 ac_status=$?
16464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16465 (exit $ac_status); }; } &&
16466 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16468 (eval $ac_try) 2>&5
16469 ac_status=$?
16470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16471 (exit $ac_status); }; }; then
16472 ac_hi=$ac_mid
16473else
16474 echo "$as_me: failed program was:" >&5
16475sed 's/^/| /' conftest.$ac_ext >&5
16476
16477ac_lo=`expr '(' $ac_mid ')' + 1`
16478fi
ac1cb8d3 16479rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16480done
16481case $ac_lo in
16482?*) ac_cv_sizeof_void_p=$ac_lo;;
16483'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
16484See \`config.log' for more details." >&5
16485echo "$as_me: error: cannot compute sizeof (void *), 77
16486See \`config.log' for more details." >&2;}
16487 { (exit 1); exit 1; }; } ;;
16488esac
16489else
16490 if test "$cross_compiling" = yes; then
07158944
VZ
16491 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
16492echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
16493 { (exit 1); exit 1; }; }
16494else
16495 cat >conftest.$ac_ext <<_ACEOF
16496/* confdefs.h. */
16497_ACEOF
16498cat confdefs.h >>conftest.$ac_ext
16499cat >>conftest.$ac_ext <<_ACEOF
16500/* end confdefs.h. */
16501$ac_includes_default
16502long longval () { return (long) (sizeof (void *)); }
16503unsigned long ulongval () { return (long) (sizeof (void *)); }
16504#include <stdio.h>
16505#include <stdlib.h>
16506int
16507main ()
16508{
16509
16510 FILE *f = fopen ("conftest.val", "w");
16511 if (! f)
16512 exit (1);
16513 if (((long) (sizeof (void *))) < 0)
16514 {
16515 long i = longval ();
16516 if (i != ((long) (sizeof (void *))))
16517 exit (1);
16518 fprintf (f, "%ld\n", i);
16519 }
16520 else
16521 {
16522 unsigned long i = ulongval ();
16523 if (i != ((long) (sizeof (void *))))
16524 exit (1);
16525 fprintf (f, "%lu\n", i);
16526 }
16527 exit (ferror (f) || fclose (f) != 0);
16528
16529 ;
16530 return 0;
16531}
16532_ACEOF
16533rm -f conftest$ac_exeext
16534if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16535 (eval $ac_link) 2>&5
16536 ac_status=$?
16537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16538 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16540 (eval $ac_try) 2>&5
16541 ac_status=$?
16542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16543 (exit $ac_status); }; }; then
16544 ac_cv_sizeof_void_p=`cat conftest.val`
16545else
16546 echo "$as_me: program exited with status $ac_status" >&5
16547echo "$as_me: failed program was:" >&5
16548sed 's/^/| /' conftest.$ac_ext >&5
16549
16550( exit $ac_status )
16551{ { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
16552See \`config.log' for more details." >&5
16553echo "$as_me: error: cannot compute sizeof (void *), 77
16554See \`config.log' for more details." >&2;}
16555 { (exit 1); exit 1; }; }
16556fi
ac1cb8d3 16557rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16558fi
16559fi
16560rm -f conftest.val
16561else
16562 ac_cv_sizeof_void_p=0
16563fi
16564fi
16565echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
16566echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
16567cat >>confdefs.h <<_ACEOF
16568#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
16569_ACEOF
16570
16571
16572echo "$as_me:$LINENO: checking for int" >&5
16573echo $ECHO_N "checking for int... $ECHO_C" >&6
16574if test "${ac_cv_type_int+set}" = set; then
16575 echo $ECHO_N "(cached) $ECHO_C" >&6
16576else
16577 cat >conftest.$ac_ext <<_ACEOF
16578/* confdefs.h. */
16579_ACEOF
16580cat confdefs.h >>conftest.$ac_ext
16581cat >>conftest.$ac_ext <<_ACEOF
16582/* end confdefs.h. */
16583$ac_includes_default
16584int
16585main ()
16586{
16587if ((int *) 0)
16588 return 0;
16589if (sizeof (int))
16590 return 0;
16591 ;
16592 return 0;
16593}
16594_ACEOF
16595rm -f conftest.$ac_objext
16596if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16597 (eval $ac_compile) 2>conftest.er1
a848cd7e 16598 ac_status=$?
ac1cb8d3
VS
16599 grep -v '^ *+' conftest.er1 >conftest.err
16600 rm -f conftest.er1
16601 cat conftest.err >&5
a848cd7e
SC
16602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16603 (exit $ac_status); } &&
07158944 16604 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16606 (eval $ac_try) 2>&5
16607 ac_status=$?
16608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16609 (exit $ac_status); }; } &&
16610 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16612 (eval $ac_try) 2>&5
16613 ac_status=$?
16614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16615 (exit $ac_status); }; }; then
16616 ac_cv_type_int=yes
16617else
16618 echo "$as_me: failed program was:" >&5
16619sed 's/^/| /' conftest.$ac_ext >&5
16620
16621ac_cv_type_int=no
16622fi
ac1cb8d3 16623rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16624fi
16625echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
16626echo "${ECHO_T}$ac_cv_type_int" >&6
16627
16628echo "$as_me:$LINENO: checking size of int" >&5
16629echo $ECHO_N "checking size of int... $ECHO_C" >&6
16630if test "${ac_cv_sizeof_int+set}" = set; then
16631 echo $ECHO_N "(cached) $ECHO_C" >&6
16632else
16633 if test "$ac_cv_type_int" = yes; then
16634 # The cast to unsigned long works around a bug in the HP C Compiler
16635 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16636 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16637 # This bug is HP SR number 8606223364.
16638 if test "$cross_compiling" = yes; then
16639 # Depending upon the size, compute the lo and hi bounds.
16640cat >conftest.$ac_ext <<_ACEOF
16641/* confdefs.h. */
16642_ACEOF
16643cat confdefs.h >>conftest.$ac_ext
16644cat >>conftest.$ac_ext <<_ACEOF
16645/* end confdefs.h. */
16646$ac_includes_default
16647int
16648main ()
16649{
16650static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
16651test_array [0] = 0
16652
16653 ;
16654 return 0;
16655}
16656_ACEOF
16657rm -f conftest.$ac_objext
16658if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16659 (eval $ac_compile) 2>conftest.er1
a848cd7e 16660 ac_status=$?
ac1cb8d3
VS
16661 grep -v '^ *+' conftest.er1 >conftest.err
16662 rm -f conftest.er1
16663 cat conftest.err >&5
a848cd7e
SC
16664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16665 (exit $ac_status); } &&
07158944 16666 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16668 (eval $ac_try) 2>&5
16669 ac_status=$?
16670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16671 (exit $ac_status); }; } &&
16672 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16674 (eval $ac_try) 2>&5
16675 ac_status=$?
16676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16677 (exit $ac_status); }; }; then
16678 ac_lo=0 ac_mid=0
16679 while :; do
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
16687int
16688main ()
16689{
16690static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
16691test_array [0] = 0
16692
16693 ;
16694 return 0;
16695}
16696_ACEOF
16697rm -f conftest.$ac_objext
16698if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16699 (eval $ac_compile) 2>conftest.er1
a848cd7e 16700 ac_status=$?
ac1cb8d3
VS
16701 grep -v '^ *+' conftest.er1 >conftest.err
16702 rm -f conftest.er1
16703 cat conftest.err >&5
a848cd7e
SC
16704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16705 (exit $ac_status); } &&
07158944 16706 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16708 (eval $ac_try) 2>&5
16709 ac_status=$?
16710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16711 (exit $ac_status); }; } &&
16712 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16714 (eval $ac_try) 2>&5
16715 ac_status=$?
16716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16717 (exit $ac_status); }; }; then
16718 ac_hi=$ac_mid; break
16719else
16720 echo "$as_me: failed program was:" >&5
16721sed 's/^/| /' conftest.$ac_ext >&5
16722
16723ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
16724 if test $ac_lo -le $ac_mid; then
16725 ac_lo= ac_hi=
16726 break
16727 fi
16728 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 16729fi
ac1cb8d3 16730rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16731 done
16732else
16733 echo "$as_me: failed program was:" >&5
16734sed 's/^/| /' conftest.$ac_ext >&5
16735
16736cat >conftest.$ac_ext <<_ACEOF
16737/* confdefs.h. */
16738_ACEOF
16739cat confdefs.h >>conftest.$ac_ext
16740cat >>conftest.$ac_ext <<_ACEOF
16741/* end confdefs.h. */
16742$ac_includes_default
16743int
16744main ()
16745{
16746static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
16747test_array [0] = 0
16748
16749 ;
16750 return 0;
16751}
16752_ACEOF
16753rm -f conftest.$ac_objext
16754if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16755 (eval $ac_compile) 2>conftest.er1
a848cd7e 16756 ac_status=$?
ac1cb8d3
VS
16757 grep -v '^ *+' conftest.er1 >conftest.err
16758 rm -f conftest.er1
16759 cat conftest.err >&5
a848cd7e
SC
16760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16761 (exit $ac_status); } &&
07158944 16762 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16764 (eval $ac_try) 2>&5
16765 ac_status=$?
16766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16767 (exit $ac_status); }; } &&
16768 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16770 (eval $ac_try) 2>&5
16771 ac_status=$?
16772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16773 (exit $ac_status); }; }; then
16774 ac_hi=-1 ac_mid=-1
16775 while :; do
16776 cat >conftest.$ac_ext <<_ACEOF
16777/* confdefs.h. */
16778_ACEOF
16779cat confdefs.h >>conftest.$ac_ext
16780cat >>conftest.$ac_ext <<_ACEOF
16781/* end confdefs.h. */
16782$ac_includes_default
16783int
16784main ()
16785{
16786static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
16787test_array [0] = 0
16788
16789 ;
16790 return 0;
16791}
16792_ACEOF
16793rm -f conftest.$ac_objext
16794if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16795 (eval $ac_compile) 2>conftest.er1
a848cd7e 16796 ac_status=$?
ac1cb8d3
VS
16797 grep -v '^ *+' conftest.er1 >conftest.err
16798 rm -f conftest.er1
16799 cat conftest.err >&5
a848cd7e
SC
16800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16801 (exit $ac_status); } &&
07158944 16802 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16804 (eval $ac_try) 2>&5
16805 ac_status=$?
16806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16807 (exit $ac_status); }; } &&
16808 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16810 (eval $ac_try) 2>&5
16811 ac_status=$?
16812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16813 (exit $ac_status); }; }; then
16814 ac_lo=$ac_mid; break
16815else
16816 echo "$as_me: failed program was:" >&5
16817sed 's/^/| /' conftest.$ac_ext >&5
16818
16819ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
16820 if test $ac_mid -le $ac_hi; then
16821 ac_lo= ac_hi=
16822 break
16823 fi
16824 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 16825fi
ac1cb8d3 16826rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16827 done
16828else
16829 echo "$as_me: failed program was:" >&5
16830sed 's/^/| /' conftest.$ac_ext >&5
16831
16832ac_lo= ac_hi=
16833fi
ac1cb8d3 16834rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 16835fi
ac1cb8d3 16836rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16837# Binary search between lo and hi bounds.
16838while test "x$ac_lo" != "x$ac_hi"; do
16839 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16840 cat >conftest.$ac_ext <<_ACEOF
16841/* confdefs.h. */
16842_ACEOF
16843cat confdefs.h >>conftest.$ac_ext
16844cat >>conftest.$ac_ext <<_ACEOF
16845/* end confdefs.h. */
16846$ac_includes_default
16847int
16848main ()
16849{
16850static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
16851test_array [0] = 0
16852
16853 ;
16854 return 0;
16855}
16856_ACEOF
16857rm -f conftest.$ac_objext
16858if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16859 (eval $ac_compile) 2>conftest.er1
a848cd7e 16860 ac_status=$?
ac1cb8d3
VS
16861 grep -v '^ *+' conftest.er1 >conftest.err
16862 rm -f conftest.er1
16863 cat conftest.err >&5
a848cd7e
SC
16864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16865 (exit $ac_status); } &&
07158944 16866 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16868 (eval $ac_try) 2>&5
16869 ac_status=$?
16870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16871 (exit $ac_status); }; } &&
16872 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16874 (eval $ac_try) 2>&5
16875 ac_status=$?
16876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16877 (exit $ac_status); }; }; then
16878 ac_hi=$ac_mid
16879else
16880 echo "$as_me: failed program was:" >&5
16881sed 's/^/| /' conftest.$ac_ext >&5
16882
16883ac_lo=`expr '(' $ac_mid ')' + 1`
16884fi
ac1cb8d3 16885rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16886done
16887case $ac_lo in
16888?*) ac_cv_sizeof_int=$ac_lo;;
16889'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
16890See \`config.log' for more details." >&5
16891echo "$as_me: error: cannot compute sizeof (int), 77
16892See \`config.log' for more details." >&2;}
16893 { (exit 1); exit 1; }; } ;;
16894esac
16895else
16896 if test "$cross_compiling" = yes; then
07158944
VZ
16897 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
16898echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
16899 { (exit 1); exit 1; }; }
16900else
16901 cat >conftest.$ac_ext <<_ACEOF
16902/* confdefs.h. */
16903_ACEOF
16904cat confdefs.h >>conftest.$ac_ext
16905cat >>conftest.$ac_ext <<_ACEOF
16906/* end confdefs.h. */
16907$ac_includes_default
16908long longval () { return (long) (sizeof (int)); }
16909unsigned long ulongval () { return (long) (sizeof (int)); }
16910#include <stdio.h>
16911#include <stdlib.h>
16912int
16913main ()
16914{
16915
16916 FILE *f = fopen ("conftest.val", "w");
16917 if (! f)
16918 exit (1);
16919 if (((long) (sizeof (int))) < 0)
16920 {
16921 long i = longval ();
16922 if (i != ((long) (sizeof (int))))
16923 exit (1);
16924 fprintf (f, "%ld\n", i);
16925 }
16926 else
16927 {
16928 unsigned long i = ulongval ();
16929 if (i != ((long) (sizeof (int))))
16930 exit (1);
16931 fprintf (f, "%lu\n", i);
16932 }
16933 exit (ferror (f) || fclose (f) != 0);
16934
16935 ;
16936 return 0;
16937}
16938_ACEOF
16939rm -f conftest$ac_exeext
16940if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16941 (eval $ac_link) 2>&5
16942 ac_status=$?
16943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16944 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16946 (eval $ac_try) 2>&5
16947 ac_status=$?
16948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16949 (exit $ac_status); }; }; then
16950 ac_cv_sizeof_int=`cat conftest.val`
16951else
16952 echo "$as_me: program exited with status $ac_status" >&5
16953echo "$as_me: failed program was:" >&5
16954sed 's/^/| /' conftest.$ac_ext >&5
16955
16956( exit $ac_status )
16957{ { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
16958See \`config.log' for more details." >&5
16959echo "$as_me: error: cannot compute sizeof (int), 77
16960See \`config.log' for more details." >&2;}
16961 { (exit 1); exit 1; }; }
16962fi
ac1cb8d3 16963rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16964fi
16965fi
16966rm -f conftest.val
16967else
16968 ac_cv_sizeof_int=0
16969fi
16970fi
16971echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
16972echo "${ECHO_T}$ac_cv_sizeof_int" >&6
16973cat >>confdefs.h <<_ACEOF
16974#define SIZEOF_INT $ac_cv_sizeof_int
16975_ACEOF
16976
16977
16978echo "$as_me:$LINENO: checking for long" >&5
16979echo $ECHO_N "checking for long... $ECHO_C" >&6
16980if test "${ac_cv_type_long+set}" = set; then
16981 echo $ECHO_N "(cached) $ECHO_C" >&6
16982else
16983 cat >conftest.$ac_ext <<_ACEOF
16984/* confdefs.h. */
16985_ACEOF
16986cat confdefs.h >>conftest.$ac_ext
16987cat >>conftest.$ac_ext <<_ACEOF
16988/* end confdefs.h. */
16989$ac_includes_default
16990int
16991main ()
16992{
16993if ((long *) 0)
16994 return 0;
16995if (sizeof (long))
16996 return 0;
16997 ;
16998 return 0;
16999}
17000_ACEOF
17001rm -f conftest.$ac_objext
17002if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17003 (eval $ac_compile) 2>conftest.er1
a848cd7e 17004 ac_status=$?
ac1cb8d3
VS
17005 grep -v '^ *+' conftest.er1 >conftest.err
17006 rm -f conftest.er1
17007 cat conftest.err >&5
a848cd7e
SC
17008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17009 (exit $ac_status); } &&
07158944 17010 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17012 (eval $ac_try) 2>&5
17013 ac_status=$?
17014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17015 (exit $ac_status); }; } &&
17016 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17018 (eval $ac_try) 2>&5
17019 ac_status=$?
17020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17021 (exit $ac_status); }; }; then
17022 ac_cv_type_long=yes
17023else
17024 echo "$as_me: failed program was:" >&5
17025sed 's/^/| /' conftest.$ac_ext >&5
17026
17027ac_cv_type_long=no
17028fi
ac1cb8d3 17029rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17030fi
17031echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
17032echo "${ECHO_T}$ac_cv_type_long" >&6
17033
17034echo "$as_me:$LINENO: checking size of long" >&5
17035echo $ECHO_N "checking size of long... $ECHO_C" >&6
17036if test "${ac_cv_sizeof_long+set}" = set; then
17037 echo $ECHO_N "(cached) $ECHO_C" >&6
17038else
17039 if test "$ac_cv_type_long" = yes; then
17040 # The cast to unsigned long works around a bug in the HP C Compiler
17041 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17042 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17043 # This bug is HP SR number 8606223364.
17044 if test "$cross_compiling" = yes; then
17045 # Depending upon the size, compute the lo and hi bounds.
17046cat >conftest.$ac_ext <<_ACEOF
17047/* confdefs.h. */
17048_ACEOF
17049cat confdefs.h >>conftest.$ac_ext
17050cat >>conftest.$ac_ext <<_ACEOF
17051/* end confdefs.h. */
17052$ac_includes_default
17053int
17054main ()
17055{
17056static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
17057test_array [0] = 0
17058
17059 ;
17060 return 0;
17061}
17062_ACEOF
17063rm -f conftest.$ac_objext
17064if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17065 (eval $ac_compile) 2>conftest.er1
a848cd7e 17066 ac_status=$?
ac1cb8d3
VS
17067 grep -v '^ *+' conftest.er1 >conftest.err
17068 rm -f conftest.er1
17069 cat conftest.err >&5
a848cd7e
SC
17070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17071 (exit $ac_status); } &&
07158944 17072 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17074 (eval $ac_try) 2>&5
17075 ac_status=$?
17076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17077 (exit $ac_status); }; } &&
17078 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17080 (eval $ac_try) 2>&5
17081 ac_status=$?
17082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17083 (exit $ac_status); }; }; then
17084 ac_lo=0 ac_mid=0
17085 while :; do
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
17093int
17094main ()
17095{
17096static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
17097test_array [0] = 0
17098
17099 ;
17100 return 0;
17101}
17102_ACEOF
17103rm -f conftest.$ac_objext
17104if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17105 (eval $ac_compile) 2>conftest.er1
a848cd7e 17106 ac_status=$?
ac1cb8d3
VS
17107 grep -v '^ *+' conftest.er1 >conftest.err
17108 rm -f conftest.er1
17109 cat conftest.err >&5
a848cd7e
SC
17110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17111 (exit $ac_status); } &&
07158944 17112 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17114 (eval $ac_try) 2>&5
17115 ac_status=$?
17116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17117 (exit $ac_status); }; } &&
17118 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17120 (eval $ac_try) 2>&5
17121 ac_status=$?
17122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17123 (exit $ac_status); }; }; then
17124 ac_hi=$ac_mid; break
17125else
17126 echo "$as_me: failed program was:" >&5
17127sed 's/^/| /' conftest.$ac_ext >&5
17128
17129ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
17130 if test $ac_lo -le $ac_mid; then
17131 ac_lo= ac_hi=
17132 break
17133 fi
17134 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 17135fi
ac1cb8d3 17136rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17137 done
17138else
17139 echo "$as_me: failed program was:" >&5
17140sed 's/^/| /' conftest.$ac_ext >&5
17141
17142cat >conftest.$ac_ext <<_ACEOF
17143/* confdefs.h. */
17144_ACEOF
17145cat confdefs.h >>conftest.$ac_ext
17146cat >>conftest.$ac_ext <<_ACEOF
17147/* end confdefs.h. */
17148$ac_includes_default
17149int
17150main ()
17151{
17152static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
17153test_array [0] = 0
17154
17155 ;
17156 return 0;
17157}
17158_ACEOF
17159rm -f conftest.$ac_objext
17160if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17161 (eval $ac_compile) 2>conftest.er1
a848cd7e 17162 ac_status=$?
ac1cb8d3
VS
17163 grep -v '^ *+' conftest.er1 >conftest.err
17164 rm -f conftest.er1
17165 cat conftest.err >&5
a848cd7e
SC
17166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17167 (exit $ac_status); } &&
07158944 17168 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17170 (eval $ac_try) 2>&5
17171 ac_status=$?
17172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17173 (exit $ac_status); }; } &&
17174 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17176 (eval $ac_try) 2>&5
17177 ac_status=$?
17178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17179 (exit $ac_status); }; }; then
17180 ac_hi=-1 ac_mid=-1
17181 while :; do
17182 cat >conftest.$ac_ext <<_ACEOF
17183/* confdefs.h. */
17184_ACEOF
17185cat confdefs.h >>conftest.$ac_ext
17186cat >>conftest.$ac_ext <<_ACEOF
17187/* end confdefs.h. */
17188$ac_includes_default
17189int
17190main ()
17191{
17192static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
17193test_array [0] = 0
17194
17195 ;
17196 return 0;
17197}
17198_ACEOF
17199rm -f conftest.$ac_objext
17200if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17201 (eval $ac_compile) 2>conftest.er1
a848cd7e 17202 ac_status=$?
ac1cb8d3
VS
17203 grep -v '^ *+' conftest.er1 >conftest.err
17204 rm -f conftest.er1
17205 cat conftest.err >&5
a848cd7e
SC
17206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17207 (exit $ac_status); } &&
07158944 17208 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17210 (eval $ac_try) 2>&5
17211 ac_status=$?
17212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17213 (exit $ac_status); }; } &&
17214 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17216 (eval $ac_try) 2>&5
17217 ac_status=$?
17218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17219 (exit $ac_status); }; }; then
17220 ac_lo=$ac_mid; break
17221else
17222 echo "$as_me: failed program was:" >&5
17223sed 's/^/| /' conftest.$ac_ext >&5
17224
17225ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
17226 if test $ac_mid -le $ac_hi; then
17227 ac_lo= ac_hi=
17228 break
17229 fi
17230 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 17231fi
ac1cb8d3 17232rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17233 done
17234else
17235 echo "$as_me: failed program was:" >&5
17236sed 's/^/| /' conftest.$ac_ext >&5
17237
17238ac_lo= ac_hi=
17239fi
ac1cb8d3 17240rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 17241fi
ac1cb8d3 17242rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17243# Binary search between lo and hi bounds.
17244while test "x$ac_lo" != "x$ac_hi"; do
17245 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
17246 cat >conftest.$ac_ext <<_ACEOF
17247/* confdefs.h. */
17248_ACEOF
17249cat confdefs.h >>conftest.$ac_ext
17250cat >>conftest.$ac_ext <<_ACEOF
17251/* end confdefs.h. */
17252$ac_includes_default
17253int
17254main ()
17255{
17256static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
17257test_array [0] = 0
17258
17259 ;
17260 return 0;
17261}
17262_ACEOF
17263rm -f conftest.$ac_objext
17264if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17265 (eval $ac_compile) 2>conftest.er1
a848cd7e 17266 ac_status=$?
ac1cb8d3
VS
17267 grep -v '^ *+' conftest.er1 >conftest.err
17268 rm -f conftest.er1
17269 cat conftest.err >&5
a848cd7e
SC
17270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17271 (exit $ac_status); } &&
07158944 17272 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17274 (eval $ac_try) 2>&5
17275 ac_status=$?
17276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17277 (exit $ac_status); }; } &&
17278 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17280 (eval $ac_try) 2>&5
17281 ac_status=$?
17282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17283 (exit $ac_status); }; }; then
17284 ac_hi=$ac_mid
17285else
17286 echo "$as_me: failed program was:" >&5
17287sed 's/^/| /' conftest.$ac_ext >&5
17288
17289ac_lo=`expr '(' $ac_mid ')' + 1`
17290fi
ac1cb8d3 17291rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17292done
17293case $ac_lo in
17294?*) ac_cv_sizeof_long=$ac_lo;;
17295'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
17296See \`config.log' for more details." >&5
17297echo "$as_me: error: cannot compute sizeof (long), 77
17298See \`config.log' for more details." >&2;}
17299 { (exit 1); exit 1; }; } ;;
17300esac
17301else
17302 if test "$cross_compiling" = yes; then
07158944
VZ
17303 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
17304echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
17305 { (exit 1); exit 1; }; }
17306else
17307 cat >conftest.$ac_ext <<_ACEOF
17308/* confdefs.h. */
17309_ACEOF
17310cat confdefs.h >>conftest.$ac_ext
17311cat >>conftest.$ac_ext <<_ACEOF
17312/* end confdefs.h. */
17313$ac_includes_default
17314long longval () { return (long) (sizeof (long)); }
17315unsigned long ulongval () { return (long) (sizeof (long)); }
17316#include <stdio.h>
17317#include <stdlib.h>
17318int
17319main ()
17320{
17321
17322 FILE *f = fopen ("conftest.val", "w");
17323 if (! f)
17324 exit (1);
17325 if (((long) (sizeof (long))) < 0)
17326 {
17327 long i = longval ();
17328 if (i != ((long) (sizeof (long))))
17329 exit (1);
17330 fprintf (f, "%ld\n", i);
17331 }
17332 else
17333 {
17334 unsigned long i = ulongval ();
17335 if (i != ((long) (sizeof (long))))
17336 exit (1);
17337 fprintf (f, "%lu\n", i);
17338 }
17339 exit (ferror (f) || fclose (f) != 0);
17340
17341 ;
17342 return 0;
17343}
17344_ACEOF
17345rm -f conftest$ac_exeext
17346if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17347 (eval $ac_link) 2>&5
17348 ac_status=$?
17349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17350 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17352 (eval $ac_try) 2>&5
17353 ac_status=$?
17354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17355 (exit $ac_status); }; }; then
17356 ac_cv_sizeof_long=`cat conftest.val`
17357else
17358 echo "$as_me: program exited with status $ac_status" >&5
17359echo "$as_me: failed program was:" >&5
17360sed 's/^/| /' conftest.$ac_ext >&5
17361
17362( exit $ac_status )
17363{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
17364See \`config.log' for more details." >&5
17365echo "$as_me: error: cannot compute sizeof (long), 77
17366See \`config.log' for more details." >&2;}
17367 { (exit 1); exit 1; }; }
17368fi
ac1cb8d3 17369rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17370fi
17371fi
17372rm -f conftest.val
17373else
17374 ac_cv_sizeof_long=0
17375fi
17376fi
17377echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
17378echo "${ECHO_T}$ac_cv_sizeof_long" >&6
17379cat >>confdefs.h <<_ACEOF
17380#define SIZEOF_LONG $ac_cv_sizeof_long
17381_ACEOF
17382
17383
17384echo "$as_me:$LINENO: checking for size_t" >&5
17385echo $ECHO_N "checking for size_t... $ECHO_C" >&6
17386if test "${ac_cv_type_size_t+set}" = set; then
17387 echo $ECHO_N "(cached) $ECHO_C" >&6
17388else
17389 cat >conftest.$ac_ext <<_ACEOF
17390/* confdefs.h. */
17391_ACEOF
17392cat confdefs.h >>conftest.$ac_ext
17393cat >>conftest.$ac_ext <<_ACEOF
17394/* end confdefs.h. */
17395$ac_includes_default
17396int
17397main ()
17398{
17399if ((size_t *) 0)
17400 return 0;
17401if (sizeof (size_t))
17402 return 0;
17403 ;
17404 return 0;
17405}
17406_ACEOF
17407rm -f conftest.$ac_objext
17408if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17409 (eval $ac_compile) 2>conftest.er1
a848cd7e 17410 ac_status=$?
ac1cb8d3
VS
17411 grep -v '^ *+' conftest.er1 >conftest.err
17412 rm -f conftest.er1
17413 cat conftest.err >&5
a848cd7e
SC
17414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17415 (exit $ac_status); } &&
07158944 17416 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17418 (eval $ac_try) 2>&5
17419 ac_status=$?
17420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17421 (exit $ac_status); }; } &&
17422 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17424 (eval $ac_try) 2>&5
17425 ac_status=$?
17426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17427 (exit $ac_status); }; }; then
17428 ac_cv_type_size_t=yes
17429else
17430 echo "$as_me: failed program was:" >&5
17431sed 's/^/| /' conftest.$ac_ext >&5
17432
17433ac_cv_type_size_t=no
17434fi
ac1cb8d3 17435rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17436fi
17437echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
17438echo "${ECHO_T}$ac_cv_type_size_t" >&6
17439
17440echo "$as_me:$LINENO: checking size of size_t" >&5
17441echo $ECHO_N "checking size of size_t... $ECHO_C" >&6
17442if test "${ac_cv_sizeof_size_t+set}" = set; then
17443 echo $ECHO_N "(cached) $ECHO_C" >&6
17444else
17445 if test "$ac_cv_type_size_t" = yes; then
17446 # The cast to unsigned long works around a bug in the HP C Compiler
17447 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17448 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17449 # This bug is HP SR number 8606223364.
17450 if test "$cross_compiling" = yes; then
17451 # Depending upon the size, compute the lo and hi bounds.
17452cat >conftest.$ac_ext <<_ACEOF
17453/* confdefs.h. */
17454_ACEOF
17455cat confdefs.h >>conftest.$ac_ext
17456cat >>conftest.$ac_ext <<_ACEOF
17457/* end confdefs.h. */
17458$ac_includes_default
17459int
17460main ()
17461{
17462static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= 0)];
17463test_array [0] = 0
17464
17465 ;
17466 return 0;
17467}
17468_ACEOF
17469rm -f conftest.$ac_objext
17470if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17471 (eval $ac_compile) 2>conftest.er1
a848cd7e 17472 ac_status=$?
ac1cb8d3
VS
17473 grep -v '^ *+' conftest.er1 >conftest.err
17474 rm -f conftest.er1
17475 cat conftest.err >&5
a848cd7e
SC
17476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17477 (exit $ac_status); } &&
07158944 17478 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17480 (eval $ac_try) 2>&5
17481 ac_status=$?
17482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17483 (exit $ac_status); }; } &&
17484 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17486 (eval $ac_try) 2>&5
17487 ac_status=$?
17488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17489 (exit $ac_status); }; }; then
17490 ac_lo=0 ac_mid=0
17491 while :; do
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
17499int
17500main ()
17501{
17502static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
17503test_array [0] = 0
17504
17505 ;
17506 return 0;
17507}
17508_ACEOF
17509rm -f conftest.$ac_objext
17510if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17511 (eval $ac_compile) 2>conftest.er1
a848cd7e 17512 ac_status=$?
ac1cb8d3
VS
17513 grep -v '^ *+' conftest.er1 >conftest.err
17514 rm -f conftest.er1
17515 cat conftest.err >&5
a848cd7e
SC
17516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17517 (exit $ac_status); } &&
07158944 17518 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17520 (eval $ac_try) 2>&5
17521 ac_status=$?
17522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17523 (exit $ac_status); }; } &&
17524 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17526 (eval $ac_try) 2>&5
17527 ac_status=$?
17528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17529 (exit $ac_status); }; }; then
17530 ac_hi=$ac_mid; break
17531else
17532 echo "$as_me: failed program was:" >&5
17533sed 's/^/| /' conftest.$ac_ext >&5
17534
17535ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
17536 if test $ac_lo -le $ac_mid; then
17537 ac_lo= ac_hi=
17538 break
17539 fi
17540 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 17541fi
ac1cb8d3 17542rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17543 done
17544else
17545 echo "$as_me: failed program was:" >&5
17546sed 's/^/| /' conftest.$ac_ext >&5
17547
17548cat >conftest.$ac_ext <<_ACEOF
17549/* confdefs.h. */
17550_ACEOF
17551cat confdefs.h >>conftest.$ac_ext
17552cat >>conftest.$ac_ext <<_ACEOF
17553/* end confdefs.h. */
17554$ac_includes_default
17555int
17556main ()
17557{
17558static int test_array [1 - 2 * !(((long) (sizeof (size_t))) < 0)];
17559test_array [0] = 0
17560
17561 ;
17562 return 0;
17563}
17564_ACEOF
17565rm -f conftest.$ac_objext
17566if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17567 (eval $ac_compile) 2>conftest.er1
a848cd7e 17568 ac_status=$?
ac1cb8d3
VS
17569 grep -v '^ *+' conftest.er1 >conftest.err
17570 rm -f conftest.er1
17571 cat conftest.err >&5
a848cd7e
SC
17572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17573 (exit $ac_status); } &&
07158944 17574 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17576 (eval $ac_try) 2>&5
17577 ac_status=$?
17578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17579 (exit $ac_status); }; } &&
17580 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17582 (eval $ac_try) 2>&5
17583 ac_status=$?
17584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17585 (exit $ac_status); }; }; then
17586 ac_hi=-1 ac_mid=-1
17587 while :; do
17588 cat >conftest.$ac_ext <<_ACEOF
17589/* confdefs.h. */
17590_ACEOF
17591cat confdefs.h >>conftest.$ac_ext
17592cat >>conftest.$ac_ext <<_ACEOF
17593/* end confdefs.h. */
17594$ac_includes_default
17595int
17596main ()
17597{
17598static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= $ac_mid)];
17599test_array [0] = 0
17600
17601 ;
17602 return 0;
17603}
17604_ACEOF
17605rm -f conftest.$ac_objext
17606if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17607 (eval $ac_compile) 2>conftest.er1
a848cd7e 17608 ac_status=$?
ac1cb8d3
VS
17609 grep -v '^ *+' conftest.er1 >conftest.err
17610 rm -f conftest.er1
17611 cat conftest.err >&5
a848cd7e
SC
17612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17613 (exit $ac_status); } &&
07158944 17614 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17616 (eval $ac_try) 2>&5
17617 ac_status=$?
17618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17619 (exit $ac_status); }; } &&
17620 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17622 (eval $ac_try) 2>&5
17623 ac_status=$?
17624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17625 (exit $ac_status); }; }; then
17626 ac_lo=$ac_mid; break
17627else
17628 echo "$as_me: failed program was:" >&5
17629sed 's/^/| /' conftest.$ac_ext >&5
17630
17631ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
17632 if test $ac_mid -le $ac_hi; then
17633 ac_lo= ac_hi=
17634 break
17635 fi
17636 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 17637fi
ac1cb8d3 17638rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17639 done
17640else
17641 echo "$as_me: failed program was:" >&5
17642sed 's/^/| /' conftest.$ac_ext >&5
17643
17644ac_lo= ac_hi=
17645fi
ac1cb8d3 17646rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 17647fi
ac1cb8d3 17648rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17649# Binary search between lo and hi bounds.
17650while test "x$ac_lo" != "x$ac_hi"; do
17651 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
17652 cat >conftest.$ac_ext <<_ACEOF
17653/* confdefs.h. */
17654_ACEOF
17655cat confdefs.h >>conftest.$ac_ext
17656cat >>conftest.$ac_ext <<_ACEOF
17657/* end confdefs.h. */
17658$ac_includes_default
17659int
17660main ()
17661{
17662static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
17663test_array [0] = 0
17664
17665 ;
17666 return 0;
17667}
17668_ACEOF
17669rm -f conftest.$ac_objext
17670if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17671 (eval $ac_compile) 2>conftest.er1
a848cd7e 17672 ac_status=$?
ac1cb8d3
VS
17673 grep -v '^ *+' conftest.er1 >conftest.err
17674 rm -f conftest.er1
17675 cat conftest.err >&5
a848cd7e
SC
17676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17677 (exit $ac_status); } &&
07158944 17678 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17680 (eval $ac_try) 2>&5
17681 ac_status=$?
17682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17683 (exit $ac_status); }; } &&
17684 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17686 (eval $ac_try) 2>&5
17687 ac_status=$?
17688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17689 (exit $ac_status); }; }; then
17690 ac_hi=$ac_mid
17691else
17692 echo "$as_me: failed program was:" >&5
17693sed 's/^/| /' conftest.$ac_ext >&5
17694
17695ac_lo=`expr '(' $ac_mid ')' + 1`
17696fi
ac1cb8d3 17697rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17698done
17699case $ac_lo in
17700?*) ac_cv_sizeof_size_t=$ac_lo;;
17701'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
17702See \`config.log' for more details." >&5
17703echo "$as_me: error: cannot compute sizeof (size_t), 77
17704See \`config.log' for more details." >&2;}
17705 { (exit 1); exit 1; }; } ;;
17706esac
17707else
17708 if test "$cross_compiling" = yes; then
07158944
VZ
17709 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
17710echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
17711 { (exit 1); exit 1; }; }
17712else
17713 cat >conftest.$ac_ext <<_ACEOF
17714/* confdefs.h. */
17715_ACEOF
17716cat confdefs.h >>conftest.$ac_ext
17717cat >>conftest.$ac_ext <<_ACEOF
17718/* end confdefs.h. */
17719$ac_includes_default
17720long longval () { return (long) (sizeof (size_t)); }
17721unsigned long ulongval () { return (long) (sizeof (size_t)); }
17722#include <stdio.h>
17723#include <stdlib.h>
17724int
17725main ()
17726{
17727
17728 FILE *f = fopen ("conftest.val", "w");
17729 if (! f)
17730 exit (1);
17731 if (((long) (sizeof (size_t))) < 0)
17732 {
17733 long i = longval ();
17734 if (i != ((long) (sizeof (size_t))))
17735 exit (1);
17736 fprintf (f, "%ld\n", i);
17737 }
17738 else
17739 {
17740 unsigned long i = ulongval ();
17741 if (i != ((long) (sizeof (size_t))))
17742 exit (1);
17743 fprintf (f, "%lu\n", i);
17744 }
17745 exit (ferror (f) || fclose (f) != 0);
17746
17747 ;
17748 return 0;
17749}
17750_ACEOF
17751rm -f conftest$ac_exeext
17752if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17753 (eval $ac_link) 2>&5
17754 ac_status=$?
17755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17756 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17758 (eval $ac_try) 2>&5
17759 ac_status=$?
17760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17761 (exit $ac_status); }; }; then
17762 ac_cv_sizeof_size_t=`cat conftest.val`
17763else
17764 echo "$as_me: program exited with status $ac_status" >&5
17765echo "$as_me: failed program was:" >&5
17766sed 's/^/| /' conftest.$ac_ext >&5
17767
17768( exit $ac_status )
17769{ { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
17770See \`config.log' for more details." >&5
17771echo "$as_me: error: cannot compute sizeof (size_t), 77
17772See \`config.log' for more details." >&2;}
17773 { (exit 1); exit 1; }; }
17774fi
ac1cb8d3 17775rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17776fi
17777fi
17778rm -f conftest.val
17779else
17780 ac_cv_sizeof_size_t=0
17781fi
17782fi
17783echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
17784echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6
17785cat >>confdefs.h <<_ACEOF
17786#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
17787_ACEOF
17788
17789
17790
17791case "${host}" in
17792 arm-*-linux* )
17793 echo "$as_me:$LINENO: checking for long long" >&5
17794echo $ECHO_N "checking for long long... $ECHO_C" >&6
17795if test "${ac_cv_type_long_long+set}" = set; then
17796 echo $ECHO_N "(cached) $ECHO_C" >&6
17797else
17798 cat >conftest.$ac_ext <<_ACEOF
17799/* confdefs.h. */
17800_ACEOF
17801cat confdefs.h >>conftest.$ac_ext
17802cat >>conftest.$ac_ext <<_ACEOF
17803/* end confdefs.h. */
17804$ac_includes_default
17805int
17806main ()
17807{
17808if ((long long *) 0)
17809 return 0;
17810if (sizeof (long long))
17811 return 0;
17812 ;
17813 return 0;
17814}
17815_ACEOF
17816rm -f conftest.$ac_objext
17817if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17818 (eval $ac_compile) 2>conftest.er1
a848cd7e 17819 ac_status=$?
ac1cb8d3
VS
17820 grep -v '^ *+' conftest.er1 >conftest.err
17821 rm -f conftest.er1
17822 cat conftest.err >&5
a848cd7e
SC
17823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17824 (exit $ac_status); } &&
07158944 17825 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17827 (eval $ac_try) 2>&5
17828 ac_status=$?
17829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17830 (exit $ac_status); }; } &&
17831 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17833 (eval $ac_try) 2>&5
17834 ac_status=$?
17835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17836 (exit $ac_status); }; }; then
17837 ac_cv_type_long_long=yes
17838else
17839 echo "$as_me: failed program was:" >&5
17840sed 's/^/| /' conftest.$ac_ext >&5
17841
17842ac_cv_type_long_long=no
17843fi
ac1cb8d3 17844rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17845fi
17846echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
17847echo "${ECHO_T}$ac_cv_type_long_long" >&6
17848
17849echo "$as_me:$LINENO: checking size of long long" >&5
17850echo $ECHO_N "checking size of long long... $ECHO_C" >&6
17851if test "${ac_cv_sizeof_long_long+set}" = set; then
17852 echo $ECHO_N "(cached) $ECHO_C" >&6
17853else
17854 if test "$ac_cv_type_long_long" = yes; then
17855 # The cast to unsigned long works around a bug in the HP C Compiler
17856 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17857 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17858 # This bug is HP SR number 8606223364.
17859 if test "$cross_compiling" = yes; then
17860 # Depending upon the size, compute the lo and hi bounds.
17861cat >conftest.$ac_ext <<_ACEOF
17862/* confdefs.h. */
17863_ACEOF
17864cat confdefs.h >>conftest.$ac_ext
17865cat >>conftest.$ac_ext <<_ACEOF
17866/* end confdefs.h. */
17867$ac_includes_default
17868int
17869main ()
17870{
17871static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
17872test_array [0] = 0
17873
17874 ;
17875 return 0;
17876}
17877_ACEOF
17878rm -f conftest.$ac_objext
17879if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17880 (eval $ac_compile) 2>conftest.er1
a848cd7e 17881 ac_status=$?
ac1cb8d3
VS
17882 grep -v '^ *+' conftest.er1 >conftest.err
17883 rm -f conftest.er1
17884 cat conftest.err >&5
a848cd7e
SC
17885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17886 (exit $ac_status); } &&
07158944 17887 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17889 (eval $ac_try) 2>&5
17890 ac_status=$?
17891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17892 (exit $ac_status); }; } &&
17893 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17895 (eval $ac_try) 2>&5
17896 ac_status=$?
17897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17898 (exit $ac_status); }; }; then
17899 ac_lo=0 ac_mid=0
17900 while :; do
17901 cat >conftest.$ac_ext <<_ACEOF
17902/* confdefs.h. */
17903_ACEOF
17904cat confdefs.h >>conftest.$ac_ext
17905cat >>conftest.$ac_ext <<_ACEOF
17906/* end confdefs.h. */
17907$ac_includes_default
17908int
17909main ()
17910{
17911static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
17912test_array [0] = 0
17913
17914 ;
17915 return 0;
17916}
17917_ACEOF
17918rm -f conftest.$ac_objext
17919if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17920 (eval $ac_compile) 2>conftest.er1
a848cd7e 17921 ac_status=$?
ac1cb8d3
VS
17922 grep -v '^ *+' conftest.er1 >conftest.err
17923 rm -f conftest.er1
17924 cat conftest.err >&5
a848cd7e
SC
17925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17926 (exit $ac_status); } &&
07158944 17927 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17929 (eval $ac_try) 2>&5
17930 ac_status=$?
17931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17932 (exit $ac_status); }; } &&
17933 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17935 (eval $ac_try) 2>&5
17936 ac_status=$?
17937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17938 (exit $ac_status); }; }; then
17939 ac_hi=$ac_mid; break
17940else
17941 echo "$as_me: failed program was:" >&5
17942sed 's/^/| /' conftest.$ac_ext >&5
17943
17944ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
17945 if test $ac_lo -le $ac_mid; then
17946 ac_lo= ac_hi=
17947 break
17948 fi
17949 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 17950fi
ac1cb8d3 17951rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17952 done
17953else
17954 echo "$as_me: failed program was:" >&5
17955sed 's/^/| /' conftest.$ac_ext >&5
17956
17957cat >conftest.$ac_ext <<_ACEOF
17958/* confdefs.h. */
17959_ACEOF
17960cat confdefs.h >>conftest.$ac_ext
17961cat >>conftest.$ac_ext <<_ACEOF
17962/* end confdefs.h. */
17963$ac_includes_default
17964int
17965main ()
17966{
17967static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
17968test_array [0] = 0
17969
17970 ;
17971 return 0;
17972}
17973_ACEOF
17974rm -f conftest.$ac_objext
17975if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17976 (eval $ac_compile) 2>conftest.er1
a848cd7e 17977 ac_status=$?
ac1cb8d3
VS
17978 grep -v '^ *+' conftest.er1 >conftest.err
17979 rm -f conftest.er1
17980 cat conftest.err >&5
a848cd7e
SC
17981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17982 (exit $ac_status); } &&
07158944 17983 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17985 (eval $ac_try) 2>&5
17986 ac_status=$?
17987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17988 (exit $ac_status); }; } &&
17989 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17991 (eval $ac_try) 2>&5
17992 ac_status=$?
17993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17994 (exit $ac_status); }; }; then
17995 ac_hi=-1 ac_mid=-1
17996 while :; do
17997 cat >conftest.$ac_ext <<_ACEOF
17998/* confdefs.h. */
17999_ACEOF
18000cat confdefs.h >>conftest.$ac_ext
18001cat >>conftest.$ac_ext <<_ACEOF
18002/* end confdefs.h. */
18003$ac_includes_default
18004int
18005main ()
18006{
18007static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
18008test_array [0] = 0
18009
18010 ;
18011 return 0;
18012}
18013_ACEOF
18014rm -f conftest.$ac_objext
18015if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18016 (eval $ac_compile) 2>conftest.er1
a848cd7e 18017 ac_status=$?
ac1cb8d3
VS
18018 grep -v '^ *+' conftest.er1 >conftest.err
18019 rm -f conftest.er1
18020 cat conftest.err >&5
a848cd7e
SC
18021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18022 (exit $ac_status); } &&
07158944 18023 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18025 (eval $ac_try) 2>&5
18026 ac_status=$?
18027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18028 (exit $ac_status); }; } &&
18029 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18031 (eval $ac_try) 2>&5
18032 ac_status=$?
18033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18034 (exit $ac_status); }; }; then
18035 ac_lo=$ac_mid; break
18036else
18037 echo "$as_me: failed program was:" >&5
18038sed 's/^/| /' conftest.$ac_ext >&5
18039
18040ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
18041 if test $ac_mid -le $ac_hi; then
18042 ac_lo= ac_hi=
18043 break
18044 fi
18045 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 18046fi
ac1cb8d3 18047rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18048 done
18049else
18050 echo "$as_me: failed program was:" >&5
18051sed 's/^/| /' conftest.$ac_ext >&5
18052
18053ac_lo= ac_hi=
18054fi
ac1cb8d3 18055rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 18056fi
ac1cb8d3 18057rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18058# Binary search between lo and hi bounds.
18059while test "x$ac_lo" != "x$ac_hi"; do
18060 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18061 cat >conftest.$ac_ext <<_ACEOF
18062/* confdefs.h. */
18063_ACEOF
18064cat confdefs.h >>conftest.$ac_ext
18065cat >>conftest.$ac_ext <<_ACEOF
18066/* end confdefs.h. */
18067$ac_includes_default
18068int
18069main ()
18070{
18071static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
18072test_array [0] = 0
18073
18074 ;
18075 return 0;
18076}
18077_ACEOF
18078rm -f conftest.$ac_objext
18079if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18080 (eval $ac_compile) 2>conftest.er1
a848cd7e 18081 ac_status=$?
ac1cb8d3
VS
18082 grep -v '^ *+' conftest.er1 >conftest.err
18083 rm -f conftest.er1
18084 cat conftest.err >&5
a848cd7e
SC
18085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18086 (exit $ac_status); } &&
07158944 18087 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18089 (eval $ac_try) 2>&5
18090 ac_status=$?
18091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18092 (exit $ac_status); }; } &&
18093 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18095 (eval $ac_try) 2>&5
18096 ac_status=$?
18097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18098 (exit $ac_status); }; }; then
18099 ac_hi=$ac_mid
18100else
18101 echo "$as_me: failed program was:" >&5
18102sed 's/^/| /' conftest.$ac_ext >&5
18103
18104ac_lo=`expr '(' $ac_mid ')' + 1`
18105fi
ac1cb8d3 18106rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18107done
18108case $ac_lo in
18109?*) ac_cv_sizeof_long_long=$ac_lo;;
18110'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
18111See \`config.log' for more details." >&5
18112echo "$as_me: error: cannot compute sizeof (long long), 77
18113See \`config.log' for more details." >&2;}
18114 { (exit 1); exit 1; }; } ;;
18115esac
18116else
18117 if test "$cross_compiling" = yes; then
07158944
VZ
18118 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
18119echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
18120 { (exit 1); exit 1; }; }
18121else
18122 cat >conftest.$ac_ext <<_ACEOF
18123/* confdefs.h. */
18124_ACEOF
18125cat confdefs.h >>conftest.$ac_ext
18126cat >>conftest.$ac_ext <<_ACEOF
18127/* end confdefs.h. */
18128$ac_includes_default
18129long longval () { return (long) (sizeof (long long)); }
18130unsigned long ulongval () { return (long) (sizeof (long long)); }
18131#include <stdio.h>
18132#include <stdlib.h>
18133int
18134main ()
18135{
18136
18137 FILE *f = fopen ("conftest.val", "w");
18138 if (! f)
18139 exit (1);
18140 if (((long) (sizeof (long long))) < 0)
18141 {
18142 long i = longval ();
18143 if (i != ((long) (sizeof (long long))))
18144 exit (1);
18145 fprintf (f, "%ld\n", i);
18146 }
18147 else
18148 {
18149 unsigned long i = ulongval ();
18150 if (i != ((long) (sizeof (long long))))
18151 exit (1);
18152 fprintf (f, "%lu\n", i);
18153 }
18154 exit (ferror (f) || fclose (f) != 0);
18155
18156 ;
18157 return 0;
18158}
18159_ACEOF
18160rm -f conftest$ac_exeext
18161if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18162 (eval $ac_link) 2>&5
18163 ac_status=$?
18164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18165 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18167 (eval $ac_try) 2>&5
18168 ac_status=$?
18169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18170 (exit $ac_status); }; }; then
18171 ac_cv_sizeof_long_long=`cat conftest.val`
18172else
18173 echo "$as_me: program exited with status $ac_status" >&5
18174echo "$as_me: failed program was:" >&5
18175sed 's/^/| /' conftest.$ac_ext >&5
18176
18177( exit $ac_status )
18178{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
18179See \`config.log' for more details." >&5
18180echo "$as_me: error: cannot compute sizeof (long long), 77
18181See \`config.log' for more details." >&2;}
18182 { (exit 1); exit 1; }; }
18183fi
ac1cb8d3 18184rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18185fi
18186fi
18187rm -f conftest.val
18188else
18189 ac_cv_sizeof_long_long=0
18190fi
18191fi
18192echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
18193echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
18194cat >>confdefs.h <<_ACEOF
18195#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
18196_ACEOF
18197
18198
18199 ;;
18200 *-hp-hpux* )
18201 echo "$as_me:$LINENO: checking for long long" >&5
18202echo $ECHO_N "checking for long long... $ECHO_C" >&6
18203if test "${ac_cv_type_long_long+set}" = set; then
18204 echo $ECHO_N "(cached) $ECHO_C" >&6
18205else
18206 cat >conftest.$ac_ext <<_ACEOF
18207/* confdefs.h. */
18208_ACEOF
18209cat confdefs.h >>conftest.$ac_ext
18210cat >>conftest.$ac_ext <<_ACEOF
18211/* end confdefs.h. */
18212$ac_includes_default
18213int
18214main ()
18215{
18216if ((long long *) 0)
18217 return 0;
18218if (sizeof (long long))
18219 return 0;
18220 ;
18221 return 0;
18222}
18223_ACEOF
18224rm -f conftest.$ac_objext
18225if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18226 (eval $ac_compile) 2>conftest.er1
a848cd7e 18227 ac_status=$?
ac1cb8d3
VS
18228 grep -v '^ *+' conftest.er1 >conftest.err
18229 rm -f conftest.er1
18230 cat conftest.err >&5
a848cd7e
SC
18231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18232 (exit $ac_status); } &&
07158944 18233 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18235 (eval $ac_try) 2>&5
18236 ac_status=$?
18237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18238 (exit $ac_status); }; } &&
18239 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18241 (eval $ac_try) 2>&5
18242 ac_status=$?
18243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18244 (exit $ac_status); }; }; then
18245 ac_cv_type_long_long=yes
18246else
18247 echo "$as_me: failed program was:" >&5
18248sed 's/^/| /' conftest.$ac_ext >&5
18249
18250ac_cv_type_long_long=no
18251fi
ac1cb8d3 18252rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18253fi
18254echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
18255echo "${ECHO_T}$ac_cv_type_long_long" >&6
18256
18257echo "$as_me:$LINENO: checking size of long long" >&5
18258echo $ECHO_N "checking size of long long... $ECHO_C" >&6
18259if test "${ac_cv_sizeof_long_long+set}" = set; then
18260 echo $ECHO_N "(cached) $ECHO_C" >&6
18261else
18262 if test "$ac_cv_type_long_long" = yes; then
18263 # The cast to unsigned long works around a bug in the HP C Compiler
18264 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18265 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18266 # This bug is HP SR number 8606223364.
18267 if test "$cross_compiling" = yes; then
18268 # Depending upon the size, compute the lo and hi bounds.
18269cat >conftest.$ac_ext <<_ACEOF
18270/* confdefs.h. */
18271_ACEOF
18272cat confdefs.h >>conftest.$ac_ext
18273cat >>conftest.$ac_ext <<_ACEOF
18274/* end confdefs.h. */
18275$ac_includes_default
18276int
18277main ()
18278{
18279static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
18280test_array [0] = 0
18281
18282 ;
18283 return 0;
18284}
18285_ACEOF
18286rm -f conftest.$ac_objext
18287if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18288 (eval $ac_compile) 2>conftest.er1
a848cd7e 18289 ac_status=$?
ac1cb8d3
VS
18290 grep -v '^ *+' conftest.er1 >conftest.err
18291 rm -f conftest.er1
18292 cat conftest.err >&5
a848cd7e
SC
18293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18294 (exit $ac_status); } &&
07158944 18295 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18297 (eval $ac_try) 2>&5
18298 ac_status=$?
18299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18300 (exit $ac_status); }; } &&
18301 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18303 (eval $ac_try) 2>&5
18304 ac_status=$?
18305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18306 (exit $ac_status); }; }; then
18307 ac_lo=0 ac_mid=0
18308 while :; do
18309 cat >conftest.$ac_ext <<_ACEOF
18310/* confdefs.h. */
18311_ACEOF
18312cat confdefs.h >>conftest.$ac_ext
18313cat >>conftest.$ac_ext <<_ACEOF
18314/* end confdefs.h. */
18315$ac_includes_default
18316int
18317main ()
18318{
18319static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
18320test_array [0] = 0
18321
18322 ;
18323 return 0;
18324}
18325_ACEOF
18326rm -f conftest.$ac_objext
18327if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18328 (eval $ac_compile) 2>conftest.er1
a848cd7e 18329 ac_status=$?
ac1cb8d3
VS
18330 grep -v '^ *+' conftest.er1 >conftest.err
18331 rm -f conftest.er1
18332 cat conftest.err >&5
a848cd7e
SC
18333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18334 (exit $ac_status); } &&
07158944 18335 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18337 (eval $ac_try) 2>&5
18338 ac_status=$?
18339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18340 (exit $ac_status); }; } &&
18341 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18343 (eval $ac_try) 2>&5
18344 ac_status=$?
18345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18346 (exit $ac_status); }; }; then
18347 ac_hi=$ac_mid; break
18348else
18349 echo "$as_me: failed program was:" >&5
18350sed 's/^/| /' conftest.$ac_ext >&5
18351
18352ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
18353 if test $ac_lo -le $ac_mid; then
18354 ac_lo= ac_hi=
18355 break
18356 fi
18357 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 18358fi
ac1cb8d3 18359rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18360 done
18361else
18362 echo "$as_me: failed program was:" >&5
18363sed 's/^/| /' conftest.$ac_ext >&5
18364
18365cat >conftest.$ac_ext <<_ACEOF
18366/* confdefs.h. */
18367_ACEOF
18368cat confdefs.h >>conftest.$ac_ext
18369cat >>conftest.$ac_ext <<_ACEOF
18370/* end confdefs.h. */
18371$ac_includes_default
18372int
18373main ()
18374{
18375static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
18376test_array [0] = 0
18377
18378 ;
18379 return 0;
18380}
18381_ACEOF
18382rm -f conftest.$ac_objext
18383if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18384 (eval $ac_compile) 2>conftest.er1
a848cd7e 18385 ac_status=$?
ac1cb8d3
VS
18386 grep -v '^ *+' conftest.er1 >conftest.err
18387 rm -f conftest.er1
18388 cat conftest.err >&5
a848cd7e
SC
18389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18390 (exit $ac_status); } &&
07158944 18391 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18393 (eval $ac_try) 2>&5
18394 ac_status=$?
18395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18396 (exit $ac_status); }; } &&
18397 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18399 (eval $ac_try) 2>&5
18400 ac_status=$?
18401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18402 (exit $ac_status); }; }; then
18403 ac_hi=-1 ac_mid=-1
18404 while :; do
18405 cat >conftest.$ac_ext <<_ACEOF
18406/* confdefs.h. */
18407_ACEOF
18408cat confdefs.h >>conftest.$ac_ext
18409cat >>conftest.$ac_ext <<_ACEOF
18410/* end confdefs.h. */
18411$ac_includes_default
18412int
18413main ()
18414{
18415static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
18416test_array [0] = 0
18417
18418 ;
18419 return 0;
18420}
18421_ACEOF
18422rm -f conftest.$ac_objext
18423if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18424 (eval $ac_compile) 2>conftest.er1
a848cd7e 18425 ac_status=$?
ac1cb8d3
VS
18426 grep -v '^ *+' conftest.er1 >conftest.err
18427 rm -f conftest.er1
18428 cat conftest.err >&5
a848cd7e
SC
18429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18430 (exit $ac_status); } &&
07158944 18431 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18433 (eval $ac_try) 2>&5
18434 ac_status=$?
18435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18436 (exit $ac_status); }; } &&
18437 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18439 (eval $ac_try) 2>&5
18440 ac_status=$?
18441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18442 (exit $ac_status); }; }; then
18443 ac_lo=$ac_mid; break
18444else
18445 echo "$as_me: failed program was:" >&5
18446sed 's/^/| /' conftest.$ac_ext >&5
18447
18448ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
18449 if test $ac_mid -le $ac_hi; then
18450 ac_lo= ac_hi=
18451 break
18452 fi
18453 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 18454fi
ac1cb8d3 18455rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18456 done
18457else
18458 echo "$as_me: failed program was:" >&5
18459sed 's/^/| /' conftest.$ac_ext >&5
18460
18461ac_lo= ac_hi=
18462fi
ac1cb8d3 18463rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 18464fi
ac1cb8d3 18465rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18466# Binary search between lo and hi bounds.
18467while test "x$ac_lo" != "x$ac_hi"; do
18468 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18469 cat >conftest.$ac_ext <<_ACEOF
18470/* confdefs.h. */
18471_ACEOF
18472cat confdefs.h >>conftest.$ac_ext
18473cat >>conftest.$ac_ext <<_ACEOF
18474/* end confdefs.h. */
18475$ac_includes_default
18476int
18477main ()
18478{
18479static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
18480test_array [0] = 0
18481
18482 ;
18483 return 0;
18484}
18485_ACEOF
18486rm -f conftest.$ac_objext
18487if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18488 (eval $ac_compile) 2>conftest.er1
a848cd7e 18489 ac_status=$?
ac1cb8d3
VS
18490 grep -v '^ *+' conftest.er1 >conftest.err
18491 rm -f conftest.er1
18492 cat conftest.err >&5
a848cd7e
SC
18493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18494 (exit $ac_status); } &&
07158944 18495 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18497 (eval $ac_try) 2>&5
18498 ac_status=$?
18499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18500 (exit $ac_status); }; } &&
18501 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18503 (eval $ac_try) 2>&5
18504 ac_status=$?
18505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18506 (exit $ac_status); }; }; then
18507 ac_hi=$ac_mid
18508else
18509 echo "$as_me: failed program was:" >&5
18510sed 's/^/| /' conftest.$ac_ext >&5
18511
18512ac_lo=`expr '(' $ac_mid ')' + 1`
18513fi
ac1cb8d3 18514rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18515done
18516case $ac_lo in
18517?*) ac_cv_sizeof_long_long=$ac_lo;;
18518'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
18519See \`config.log' for more details." >&5
18520echo "$as_me: error: cannot compute sizeof (long long), 77
18521See \`config.log' for more details." >&2;}
18522 { (exit 1); exit 1; }; } ;;
18523esac
18524else
18525 if test "$cross_compiling" = yes; then
07158944
VZ
18526 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
18527echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
18528 { (exit 1); exit 1; }; }
18529else
18530 cat >conftest.$ac_ext <<_ACEOF
18531/* confdefs.h. */
18532_ACEOF
18533cat confdefs.h >>conftest.$ac_ext
18534cat >>conftest.$ac_ext <<_ACEOF
18535/* end confdefs.h. */
18536$ac_includes_default
18537long longval () { return (long) (sizeof (long long)); }
18538unsigned long ulongval () { return (long) (sizeof (long long)); }
18539#include <stdio.h>
18540#include <stdlib.h>
18541int
18542main ()
18543{
18544
18545 FILE *f = fopen ("conftest.val", "w");
18546 if (! f)
18547 exit (1);
18548 if (((long) (sizeof (long long))) < 0)
18549 {
18550 long i = longval ();
18551 if (i != ((long) (sizeof (long long))))
18552 exit (1);
18553 fprintf (f, "%ld\n", i);
18554 }
18555 else
18556 {
18557 unsigned long i = ulongval ();
18558 if (i != ((long) (sizeof (long long))))
18559 exit (1);
18560 fprintf (f, "%lu\n", i);
18561 }
18562 exit (ferror (f) || fclose (f) != 0);
18563
18564 ;
18565 return 0;
18566}
18567_ACEOF
18568rm -f conftest$ac_exeext
18569if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18570 (eval $ac_link) 2>&5
18571 ac_status=$?
18572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18573 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18575 (eval $ac_try) 2>&5
18576 ac_status=$?
18577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18578 (exit $ac_status); }; }; then
18579 ac_cv_sizeof_long_long=`cat conftest.val`
18580else
18581 echo "$as_me: program exited with status $ac_status" >&5
18582echo "$as_me: failed program was:" >&5
18583sed 's/^/| /' conftest.$ac_ext >&5
18584
18585( exit $ac_status )
18586{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
18587See \`config.log' for more details." >&5
18588echo "$as_me: error: cannot compute sizeof (long long), 77
18589See \`config.log' for more details." >&2;}
18590 { (exit 1); exit 1; }; }
18591fi
ac1cb8d3 18592rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18593fi
18594fi
18595rm -f conftest.val
18596else
18597 ac_cv_sizeof_long_long=0
18598fi
18599fi
18600echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
18601echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
18602cat >>confdefs.h <<_ACEOF
18603#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
18604_ACEOF
18605
18606
18607 if test "$ac_cv_sizeof_long_long" != "0"; then
18608 CPPFLAGS="$CPPFLAGS -D_INCLUDE_LONGLONG"
18609 fi
18610 ;;
18611 * )
18612 echo "$as_me:$LINENO: checking for long long" >&5
18613echo $ECHO_N "checking for long long... $ECHO_C" >&6
18614if test "${ac_cv_type_long_long+set}" = set; then
18615 echo $ECHO_N "(cached) $ECHO_C" >&6
18616else
18617 cat >conftest.$ac_ext <<_ACEOF
18618/* confdefs.h. */
18619_ACEOF
18620cat confdefs.h >>conftest.$ac_ext
18621cat >>conftest.$ac_ext <<_ACEOF
18622/* end confdefs.h. */
18623$ac_includes_default
18624int
18625main ()
18626{
18627if ((long long *) 0)
18628 return 0;
18629if (sizeof (long long))
18630 return 0;
18631 ;
18632 return 0;
18633}
18634_ACEOF
18635rm -f conftest.$ac_objext
18636if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18637 (eval $ac_compile) 2>conftest.er1
a848cd7e 18638 ac_status=$?
ac1cb8d3
VS
18639 grep -v '^ *+' conftest.er1 >conftest.err
18640 rm -f conftest.er1
18641 cat conftest.err >&5
a848cd7e
SC
18642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18643 (exit $ac_status); } &&
07158944 18644 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18646 (eval $ac_try) 2>&5
18647 ac_status=$?
18648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18649 (exit $ac_status); }; } &&
18650 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18652 (eval $ac_try) 2>&5
18653 ac_status=$?
18654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18655 (exit $ac_status); }; }; then
18656 ac_cv_type_long_long=yes
18657else
18658 echo "$as_me: failed program was:" >&5
18659sed 's/^/| /' conftest.$ac_ext >&5
18660
18661ac_cv_type_long_long=no
18662fi
ac1cb8d3 18663rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18664fi
18665echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
18666echo "${ECHO_T}$ac_cv_type_long_long" >&6
18667
18668echo "$as_me:$LINENO: checking size of long long" >&5
18669echo $ECHO_N "checking size of long long... $ECHO_C" >&6
18670if test "${ac_cv_sizeof_long_long+set}" = set; then
18671 echo $ECHO_N "(cached) $ECHO_C" >&6
18672else
18673 if test "$ac_cv_type_long_long" = yes; then
18674 # The cast to unsigned long works around a bug in the HP C Compiler
18675 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18676 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18677 # This bug is HP SR number 8606223364.
18678 if test "$cross_compiling" = yes; then
18679 # Depending upon the size, compute the lo and hi bounds.
18680cat >conftest.$ac_ext <<_ACEOF
18681/* confdefs.h. */
18682_ACEOF
18683cat confdefs.h >>conftest.$ac_ext
18684cat >>conftest.$ac_ext <<_ACEOF
18685/* end confdefs.h. */
18686$ac_includes_default
18687int
18688main ()
18689{
18690static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
18691test_array [0] = 0
18692
18693 ;
18694 return 0;
18695}
18696_ACEOF
18697rm -f conftest.$ac_objext
18698if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18699 (eval $ac_compile) 2>conftest.er1
a848cd7e 18700 ac_status=$?
ac1cb8d3
VS
18701 grep -v '^ *+' conftest.er1 >conftest.err
18702 rm -f conftest.er1
18703 cat conftest.err >&5
a848cd7e
SC
18704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18705 (exit $ac_status); } &&
07158944 18706 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18708 (eval $ac_try) 2>&5
18709 ac_status=$?
18710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18711 (exit $ac_status); }; } &&
18712 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18714 (eval $ac_try) 2>&5
18715 ac_status=$?
18716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18717 (exit $ac_status); }; }; then
18718 ac_lo=0 ac_mid=0
18719 while :; do
18720 cat >conftest.$ac_ext <<_ACEOF
18721/* confdefs.h. */
18722_ACEOF
18723cat confdefs.h >>conftest.$ac_ext
18724cat >>conftest.$ac_ext <<_ACEOF
18725/* end confdefs.h. */
18726$ac_includes_default
18727int
18728main ()
18729{
18730static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
18731test_array [0] = 0
18732
18733 ;
18734 return 0;
18735}
18736_ACEOF
18737rm -f conftest.$ac_objext
18738if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18739 (eval $ac_compile) 2>conftest.er1
a848cd7e 18740 ac_status=$?
ac1cb8d3
VS
18741 grep -v '^ *+' conftest.er1 >conftest.err
18742 rm -f conftest.er1
18743 cat conftest.err >&5
a848cd7e
SC
18744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18745 (exit $ac_status); } &&
07158944 18746 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18748 (eval $ac_try) 2>&5
18749 ac_status=$?
18750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18751 (exit $ac_status); }; } &&
18752 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18754 (eval $ac_try) 2>&5
18755 ac_status=$?
18756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18757 (exit $ac_status); }; }; then
18758 ac_hi=$ac_mid; break
18759else
18760 echo "$as_me: failed program was:" >&5
18761sed 's/^/| /' conftest.$ac_ext >&5
18762
18763ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
18764 if test $ac_lo -le $ac_mid; then
18765 ac_lo= ac_hi=
18766 break
18767 fi
18768 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 18769fi
ac1cb8d3 18770rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18771 done
18772else
18773 echo "$as_me: failed program was:" >&5
18774sed 's/^/| /' conftest.$ac_ext >&5
18775
18776cat >conftest.$ac_ext <<_ACEOF
18777/* confdefs.h. */
18778_ACEOF
18779cat confdefs.h >>conftest.$ac_ext
18780cat >>conftest.$ac_ext <<_ACEOF
18781/* end confdefs.h. */
18782$ac_includes_default
18783int
18784main ()
18785{
18786static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
18787test_array [0] = 0
18788
18789 ;
18790 return 0;
18791}
18792_ACEOF
18793rm -f conftest.$ac_objext
18794if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18795 (eval $ac_compile) 2>conftest.er1
a848cd7e 18796 ac_status=$?
ac1cb8d3
VS
18797 grep -v '^ *+' conftest.er1 >conftest.err
18798 rm -f conftest.er1
18799 cat conftest.err >&5
a848cd7e
SC
18800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18801 (exit $ac_status); } &&
07158944 18802 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18804 (eval $ac_try) 2>&5
18805 ac_status=$?
18806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18807 (exit $ac_status); }; } &&
18808 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18810 (eval $ac_try) 2>&5
18811 ac_status=$?
18812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18813 (exit $ac_status); }; }; then
18814 ac_hi=-1 ac_mid=-1
18815 while :; do
18816 cat >conftest.$ac_ext <<_ACEOF
18817/* confdefs.h. */
18818_ACEOF
18819cat confdefs.h >>conftest.$ac_ext
18820cat >>conftest.$ac_ext <<_ACEOF
18821/* end confdefs.h. */
18822$ac_includes_default
18823int
18824main ()
18825{
18826static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
18827test_array [0] = 0
18828
18829 ;
18830 return 0;
18831}
18832_ACEOF
18833rm -f conftest.$ac_objext
18834if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18835 (eval $ac_compile) 2>conftest.er1
a848cd7e 18836 ac_status=$?
ac1cb8d3
VS
18837 grep -v '^ *+' conftest.er1 >conftest.err
18838 rm -f conftest.er1
18839 cat conftest.err >&5
a848cd7e
SC
18840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18841 (exit $ac_status); } &&
07158944 18842 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18844 (eval $ac_try) 2>&5
18845 ac_status=$?
18846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18847 (exit $ac_status); }; } &&
18848 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18850 (eval $ac_try) 2>&5
18851 ac_status=$?
18852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18853 (exit $ac_status); }; }; then
18854 ac_lo=$ac_mid; break
18855else
18856 echo "$as_me: failed program was:" >&5
18857sed 's/^/| /' conftest.$ac_ext >&5
18858
18859ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
18860 if test $ac_mid -le $ac_hi; then
18861 ac_lo= ac_hi=
18862 break
18863 fi
18864 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 18865fi
ac1cb8d3 18866rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18867 done
18868else
18869 echo "$as_me: failed program was:" >&5
18870sed 's/^/| /' conftest.$ac_ext >&5
18871
18872ac_lo= ac_hi=
18873fi
ac1cb8d3 18874rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 18875fi
ac1cb8d3 18876rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18877# Binary search between lo and hi bounds.
18878while test "x$ac_lo" != "x$ac_hi"; do
18879 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18880 cat >conftest.$ac_ext <<_ACEOF
18881/* confdefs.h. */
18882_ACEOF
18883cat confdefs.h >>conftest.$ac_ext
18884cat >>conftest.$ac_ext <<_ACEOF
18885/* end confdefs.h. */
18886$ac_includes_default
18887int
18888main ()
18889{
18890static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
18891test_array [0] = 0
18892
18893 ;
18894 return 0;
18895}
18896_ACEOF
18897rm -f conftest.$ac_objext
18898if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18899 (eval $ac_compile) 2>conftest.er1
a848cd7e 18900 ac_status=$?
ac1cb8d3
VS
18901 grep -v '^ *+' conftest.er1 >conftest.err
18902 rm -f conftest.er1
18903 cat conftest.err >&5
a848cd7e
SC
18904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18905 (exit $ac_status); } &&
07158944 18906 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18908 (eval $ac_try) 2>&5
18909 ac_status=$?
18910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18911 (exit $ac_status); }; } &&
18912 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18914 (eval $ac_try) 2>&5
18915 ac_status=$?
18916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18917 (exit $ac_status); }; }; then
18918 ac_hi=$ac_mid
18919else
18920 echo "$as_me: failed program was:" >&5
18921sed 's/^/| /' conftest.$ac_ext >&5
18922
18923ac_lo=`expr '(' $ac_mid ')' + 1`
18924fi
ac1cb8d3 18925rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18926done
18927case $ac_lo in
18928?*) ac_cv_sizeof_long_long=$ac_lo;;
18929'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
18930See \`config.log' for more details." >&5
18931echo "$as_me: error: cannot compute sizeof (long long), 77
18932See \`config.log' for more details." >&2;}
18933 { (exit 1); exit 1; }; } ;;
18934esac
18935else
18936 if test "$cross_compiling" = yes; then
07158944
VZ
18937 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
18938echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
18939 { (exit 1); exit 1; }; }
18940else
18941 cat >conftest.$ac_ext <<_ACEOF
18942/* confdefs.h. */
18943_ACEOF
18944cat confdefs.h >>conftest.$ac_ext
18945cat >>conftest.$ac_ext <<_ACEOF
18946/* end confdefs.h. */
18947$ac_includes_default
18948long longval () { return (long) (sizeof (long long)); }
18949unsigned long ulongval () { return (long) (sizeof (long long)); }
18950#include <stdio.h>
18951#include <stdlib.h>
18952int
18953main ()
18954{
18955
18956 FILE *f = fopen ("conftest.val", "w");
18957 if (! f)
18958 exit (1);
18959 if (((long) (sizeof (long long))) < 0)
18960 {
18961 long i = longval ();
18962 if (i != ((long) (sizeof (long long))))
18963 exit (1);
18964 fprintf (f, "%ld\n", i);
18965 }
18966 else
18967 {
18968 unsigned long i = ulongval ();
18969 if (i != ((long) (sizeof (long long))))
18970 exit (1);
18971 fprintf (f, "%lu\n", i);
18972 }
18973 exit (ferror (f) || fclose (f) != 0);
18974
18975 ;
18976 return 0;
18977}
18978_ACEOF
18979rm -f conftest$ac_exeext
18980if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18981 (eval $ac_link) 2>&5
18982 ac_status=$?
18983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18984 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18986 (eval $ac_try) 2>&5
18987 ac_status=$?
18988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18989 (exit $ac_status); }; }; then
18990 ac_cv_sizeof_long_long=`cat conftest.val`
18991else
18992 echo "$as_me: program exited with status $ac_status" >&5
18993echo "$as_me: failed program was:" >&5
18994sed 's/^/| /' conftest.$ac_ext >&5
18995
18996( exit $ac_status )
18997{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
18998See \`config.log' for more details." >&5
18999echo "$as_me: error: cannot compute sizeof (long long), 77
19000See \`config.log' for more details." >&2;}
19001 { (exit 1); exit 1; }; }
19002fi
ac1cb8d3 19003rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19004fi
19005fi
19006rm -f conftest.val
19007else
19008 ac_cv_sizeof_long_long=0
19009fi
19010fi
19011echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
19012echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
19013cat >>confdefs.h <<_ACEOF
19014#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
19015_ACEOF
19016
19017
19018esac
19019
238ecede
MW
19020echo "$as_me:$LINENO: checking for wchar_t" >&5
19021echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6
19022if test "${ac_cv_type_wchar_t+set}" = set; then
19023 echo $ECHO_N "(cached) $ECHO_C" >&6
19024else
19025 cat >conftest.$ac_ext <<_ACEOF
19026/* confdefs.h. */
19027_ACEOF
19028cat confdefs.h >>conftest.$ac_ext
19029cat >>conftest.$ac_ext <<_ACEOF
19030/* end confdefs.h. */
19031
19032 /* DJGPP only has fake wchar_t: */
19033 #ifdef __DJGPP__
19034 # error "fake wchar_t"
19035 #endif
19036 #ifdef HAVE_WCHAR_H
19037 # ifdef __CYGWIN__
19038 # include <stddef.h>
19039 # endif
19040 # include <wchar.h>
19041 #endif
19042 #ifdef HAVE_STDLIB_H
19043 # include <stdlib.h>
19044 #endif
19045 #include <stdio.h>
19046
19047
19048
19049int
19050main ()
19051{
19052if ((wchar_t *) 0)
19053 return 0;
19054if (sizeof (wchar_t))
19055 return 0;
19056 ;
19057 return 0;
19058}
19059_ACEOF
19060rm -f conftest.$ac_objext
19061if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19062 (eval $ac_compile) 2>conftest.er1
19063 ac_status=$?
19064 grep -v '^ *+' conftest.er1 >conftest.err
19065 rm -f conftest.er1
19066 cat conftest.err >&5
19067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19068 (exit $ac_status); } &&
07158944 19069 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
238ecede
MW
19070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19071 (eval $ac_try) 2>&5
19072 ac_status=$?
19073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19074 (exit $ac_status); }; } &&
19075 { ac_try='test -s conftest.$ac_objext'
19076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19077 (eval $ac_try) 2>&5
19078 ac_status=$?
19079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19080 (exit $ac_status); }; }; then
19081 ac_cv_type_wchar_t=yes
19082else
19083 echo "$as_me: failed program was:" >&5
19084sed 's/^/| /' conftest.$ac_ext >&5
19085
19086ac_cv_type_wchar_t=no
19087fi
19088rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19089fi
19090echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5
19091echo "${ECHO_T}$ac_cv_type_wchar_t" >&6
19092
a848cd7e
SC
19093echo "$as_me:$LINENO: checking size of wchar_t" >&5
19094echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6
238ecede 19095if test "${ac_cv_sizeof_wchar_t+set}" = set; then
a848cd7e
SC
19096 echo $ECHO_N "(cached) $ECHO_C" >&6
19097else
238ecede
MW
19098 if test "$ac_cv_type_wchar_t" = yes; then
19099 # The cast to unsigned long works around a bug in the HP C Compiler
19100 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19101 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19102 # This bug is HP SR number 8606223364.
19103 if test "$cross_compiling" = yes; then
19104 # Depending upon the size, compute the lo and hi bounds.
19105cat >conftest.$ac_ext <<_ACEOF
19106/* confdefs.h. */
19107_ACEOF
19108cat confdefs.h >>conftest.$ac_ext
19109cat >>conftest.$ac_ext <<_ACEOF
19110/* end confdefs.h. */
19111
19112 /* DJGPP only has fake wchar_t: */
19113 #ifdef __DJGPP__
19114 # error "fake wchar_t"
19115 #endif
19116 #ifdef HAVE_WCHAR_H
19117 # ifdef __CYGWIN__
19118 # include <stddef.h>
19119 # endif
19120 # include <wchar.h>
19121 #endif
19122 #ifdef HAVE_STDLIB_H
19123 # include <stdlib.h>
19124 #endif
19125 #include <stdio.h>
19126
19127
19128
19129int
19130main ()
19131{
19132static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= 0)];
19133test_array [0] = 0
19134
19135 ;
19136 return 0;
19137}
19138_ACEOF
19139rm -f conftest.$ac_objext
19140if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19141 (eval $ac_compile) 2>conftest.er1
19142 ac_status=$?
19143 grep -v '^ *+' conftest.er1 >conftest.err
19144 rm -f conftest.er1
19145 cat conftest.err >&5
19146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19147 (exit $ac_status); } &&
07158944 19148 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
238ecede
MW
19149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19150 (eval $ac_try) 2>&5
19151 ac_status=$?
19152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19153 (exit $ac_status); }; } &&
19154 { ac_try='test -s conftest.$ac_objext'
19155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19156 (eval $ac_try) 2>&5
19157 ac_status=$?
19158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19159 (exit $ac_status); }; }; then
19160 ac_lo=0 ac_mid=0
19161 while :; do
19162 cat >conftest.$ac_ext <<_ACEOF
19163/* confdefs.h. */
19164_ACEOF
19165cat confdefs.h >>conftest.$ac_ext
19166cat >>conftest.$ac_ext <<_ACEOF
19167/* end confdefs.h. */
19168
19169 /* DJGPP only has fake wchar_t: */
19170 #ifdef __DJGPP__
19171 # error "fake wchar_t"
19172 #endif
19173 #ifdef HAVE_WCHAR_H
19174 # ifdef __CYGWIN__
19175 # include <stddef.h>
19176 # endif
19177 # include <wchar.h>
19178 #endif
19179 #ifdef HAVE_STDLIB_H
19180 # include <stdlib.h>
19181 #endif
19182 #include <stdio.h>
19183
19184
19185
19186int
19187main ()
19188{
19189static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)];
19190test_array [0] = 0
19191
19192 ;
19193 return 0;
19194}
19195_ACEOF
19196rm -f conftest.$ac_objext
19197if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19198 (eval $ac_compile) 2>conftest.er1
19199 ac_status=$?
19200 grep -v '^ *+' conftest.er1 >conftest.err
19201 rm -f conftest.er1
19202 cat conftest.err >&5
19203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19204 (exit $ac_status); } &&
07158944 19205 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
238ecede
MW
19206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19207 (eval $ac_try) 2>&5
19208 ac_status=$?
19209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19210 (exit $ac_status); }; } &&
19211 { ac_try='test -s conftest.$ac_objext'
19212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19213 (eval $ac_try) 2>&5
19214 ac_status=$?
19215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19216 (exit $ac_status); }; }; then
19217 ac_hi=$ac_mid; break
19218else
19219 echo "$as_me: failed program was:" >&5
19220sed 's/^/| /' conftest.$ac_ext >&5
19221
19222ac_lo=`expr $ac_mid + 1`
19223 if test $ac_lo -le $ac_mid; then
19224 ac_lo= ac_hi=
19225 break
19226 fi
19227 ac_mid=`expr 2 '*' $ac_mid + 1`
19228fi
19229rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19230 done
19231else
19232 echo "$as_me: failed program was:" >&5
19233sed 's/^/| /' conftest.$ac_ext >&5
19234
19235cat >conftest.$ac_ext <<_ACEOF
19236/* confdefs.h. */
19237_ACEOF
19238cat confdefs.h >>conftest.$ac_ext
19239cat >>conftest.$ac_ext <<_ACEOF
19240/* end confdefs.h. */
19241
19242 /* DJGPP only has fake wchar_t: */
19243 #ifdef __DJGPP__
19244 # error "fake wchar_t"
19245 #endif
19246 #ifdef HAVE_WCHAR_H
19247 # ifdef __CYGWIN__
19248 # include <stddef.h>
19249 # endif
19250 # include <wchar.h>
19251 #endif
19252 #ifdef HAVE_STDLIB_H
19253 # include <stdlib.h>
19254 #endif
19255 #include <stdio.h>
19256
19257
19258
19259int
19260main ()
19261{
19262static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) < 0)];
19263test_array [0] = 0
19264
19265 ;
19266 return 0;
19267}
19268_ACEOF
19269rm -f conftest.$ac_objext
19270if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19271 (eval $ac_compile) 2>conftest.er1
19272 ac_status=$?
19273 grep -v '^ *+' conftest.er1 >conftest.err
19274 rm -f conftest.er1
19275 cat conftest.err >&5
19276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19277 (exit $ac_status); } &&
07158944 19278 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
238ecede
MW
19279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19280 (eval $ac_try) 2>&5
19281 ac_status=$?
19282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19283 (exit $ac_status); }; } &&
19284 { ac_try='test -s conftest.$ac_objext'
19285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19286 (eval $ac_try) 2>&5
19287 ac_status=$?
19288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19289 (exit $ac_status); }; }; then
19290 ac_hi=-1 ac_mid=-1
19291 while :; do
19292 cat >conftest.$ac_ext <<_ACEOF
19293/* confdefs.h. */
19294_ACEOF
19295cat confdefs.h >>conftest.$ac_ext
19296cat >>conftest.$ac_ext <<_ACEOF
19297/* end confdefs.h. */
19298
19299 /* DJGPP only has fake wchar_t: */
19300 #ifdef __DJGPP__
19301 # error "fake wchar_t"
19302 #endif
19303 #ifdef HAVE_WCHAR_H
19304 # ifdef __CYGWIN__
19305 # include <stddef.h>
19306 # endif
19307 # include <wchar.h>
19308 #endif
19309 #ifdef HAVE_STDLIB_H
19310 # include <stdlib.h>
19311 #endif
19312 #include <stdio.h>
19313
19314
19315
19316int
19317main ()
19318{
19319static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= $ac_mid)];
19320test_array [0] = 0
19321
19322 ;
19323 return 0;
19324}
19325_ACEOF
19326rm -f conftest.$ac_objext
19327if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19328 (eval $ac_compile) 2>conftest.er1
19329 ac_status=$?
19330 grep -v '^ *+' conftest.er1 >conftest.err
19331 rm -f conftest.er1
19332 cat conftest.err >&5
19333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19334 (exit $ac_status); } &&
07158944 19335 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
238ecede
MW
19336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19337 (eval $ac_try) 2>&5
19338 ac_status=$?
19339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19340 (exit $ac_status); }; } &&
19341 { ac_try='test -s conftest.$ac_objext'
19342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19343 (eval $ac_try) 2>&5
19344 ac_status=$?
19345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19346 (exit $ac_status); }; }; then
19347 ac_lo=$ac_mid; break
19348else
19349 echo "$as_me: failed program was:" >&5
19350sed 's/^/| /' conftest.$ac_ext >&5
19351
19352ac_hi=`expr '(' $ac_mid ')' - 1`
19353 if test $ac_mid -le $ac_hi; then
19354 ac_lo= ac_hi=
19355 break
19356 fi
19357 ac_mid=`expr 2 '*' $ac_mid`
19358fi
19359rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19360 done
19361else
19362 echo "$as_me: failed program was:" >&5
19363sed 's/^/| /' conftest.$ac_ext >&5
19364
19365ac_lo= ac_hi=
19366fi
19367rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19368fi
19369rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19370# Binary search between lo and hi bounds.
19371while test "x$ac_lo" != "x$ac_hi"; do
19372 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
19373 cat >conftest.$ac_ext <<_ACEOF
19374/* confdefs.h. */
19375_ACEOF
19376cat confdefs.h >>conftest.$ac_ext
19377cat >>conftest.$ac_ext <<_ACEOF
19378/* end confdefs.h. */
19379
19380 /* DJGPP only has fake wchar_t: */
19381 #ifdef __DJGPP__
19382 # error "fake wchar_t"
19383 #endif
19384 #ifdef HAVE_WCHAR_H
19385 # ifdef __CYGWIN__
19386 # include <stddef.h>
19387 # endif
19388 # include <wchar.h>
19389 #endif
19390 #ifdef HAVE_STDLIB_H
19391 # include <stdlib.h>
19392 #endif
19393 #include <stdio.h>
a848cd7e 19394
a848cd7e 19395
a848cd7e 19396
238ecede
MW
19397int
19398main ()
19399{
19400static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)];
19401test_array [0] = 0
a848cd7e 19402
238ecede
MW
19403 ;
19404 return 0;
19405}
19406_ACEOF
19407rm -f conftest.$ac_objext
19408if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19409 (eval $ac_compile) 2>conftest.er1
19410 ac_status=$?
19411 grep -v '^ *+' conftest.er1 >conftest.err
19412 rm -f conftest.er1
19413 cat conftest.err >&5
19414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19415 (exit $ac_status); } &&
07158944 19416 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
238ecede
MW
19417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19418 (eval $ac_try) 2>&5
19419 ac_status=$?
19420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19421 (exit $ac_status); }; } &&
19422 { ac_try='test -s conftest.$ac_objext'
19423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19424 (eval $ac_try) 2>&5
19425 ac_status=$?
19426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19427 (exit $ac_status); }; }; then
19428 ac_hi=$ac_mid
19429else
19430 echo "$as_me: failed program was:" >&5
19431sed 's/^/| /' conftest.$ac_ext >&5
19432
19433ac_lo=`expr '(' $ac_mid ')' + 1`
19434fi
19435rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19436done
19437case $ac_lo in
19438?*) ac_cv_sizeof_wchar_t=$ac_lo;;
19439'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77
19440See \`config.log' for more details." >&5
19441echo "$as_me: error: cannot compute sizeof (wchar_t), 77
19442See \`config.log' for more details." >&2;}
19443 { (exit 1); exit 1; }; } ;;
19444esac
19445else
19446 if test "$cross_compiling" = yes; then
07158944
VZ
19447 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
19448echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
238ecede 19449 { (exit 1); exit 1; }; }
a848cd7e
SC
19450else
19451 cat >conftest.$ac_ext <<_ACEOF
19452/* confdefs.h. */
19453_ACEOF
19454cat confdefs.h >>conftest.$ac_ext
19455cat >>conftest.$ac_ext <<_ACEOF
19456/* end confdefs.h. */
19457
238ecede
MW
19458 /* DJGPP only has fake wchar_t: */
19459 #ifdef __DJGPP__
19460 # error "fake wchar_t"
19461 #endif
19462 #ifdef HAVE_WCHAR_H
19463 # ifdef __CYGWIN__
19464 # include <stddef.h>
19465 # endif
19466 # include <wchar.h>
19467 #endif
19468 #ifdef HAVE_STDLIB_H
19469 # include <stdlib.h>
19470 #endif
19471 #include <stdio.h>
19472
19473
19474
19475long longval () { return (long) (sizeof (wchar_t)); }
19476unsigned long ulongval () { return (long) (sizeof (wchar_t)); }
19477#include <stdio.h>
19478#include <stdlib.h>
19479int
19480main ()
19481{
a848cd7e 19482
238ecede
MW
19483 FILE *f = fopen ("conftest.val", "w");
19484 if (! f)
19485 exit (1);
19486 if (((long) (sizeof (wchar_t))) < 0)
19487 {
19488 long i = longval ();
19489 if (i != ((long) (sizeof (wchar_t))))
19490 exit (1);
19491 fprintf (f, "%ld\n", i);
19492 }
19493 else
19494 {
19495 unsigned long i = ulongval ();
19496 if (i != ((long) (sizeof (wchar_t))))
19497 exit (1);
19498 fprintf (f, "%lu\n", i);
19499 }
19500 exit (ferror (f) || fclose (f) != 0);
19501
19502 ;
19503 return 0;
19504}
a848cd7e
SC
19505_ACEOF
19506rm -f conftest$ac_exeext
19507if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19508 (eval $ac_link) 2>&5
19509 ac_status=$?
19510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19511 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19513 (eval $ac_try) 2>&5
19514 ac_status=$?
19515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19516 (exit $ac_status); }; }; then
238ecede 19517 ac_cv_sizeof_wchar_t=`cat conftest.val`
a848cd7e
SC
19518else
19519 echo "$as_me: program exited with status $ac_status" >&5
19520echo "$as_me: failed program was:" >&5
19521sed 's/^/| /' conftest.$ac_ext >&5
19522
19523( exit $ac_status )
238ecede
MW
19524{ { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77
19525See \`config.log' for more details." >&5
19526echo "$as_me: error: cannot compute sizeof (wchar_t), 77
19527See \`config.log' for more details." >&2;}
19528 { (exit 1); exit 1; }; }
a848cd7e 19529fi
ac1cb8d3 19530rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e 19531fi
a848cd7e 19532fi
238ecede
MW
19533rm -f conftest.val
19534else
19535 ac_cv_sizeof_wchar_t=0
19536fi
19537fi
19538echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5
19539echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6
a848cd7e 19540cat >>confdefs.h <<_ACEOF
238ecede 19541#define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
a848cd7e
SC
19542_ACEOF
19543
19544
238ecede 19545
ba3d13e1
VZ
19546echo "$as_me:$LINENO: checking for va_copy" >&5
19547echo $ECHO_N "checking for va_copy... $ECHO_C" >&6
19548if test "${wx_cv_func_va_copy+set}" = set; then
19549 echo $ECHO_N "(cached) $ECHO_C" >&6
19550else
19551
19552 cat >conftest.$ac_ext <<_ACEOF
19553
19554 #include <stdarg.h>
19555 void foo(char *f, ...)
19556 {
19557 va_list ap1, ap2;
19558 va_start(ap1, f);
19559 va_copy(ap2, ap1);
19560 va_end(ap2);
19561 va_end(ap1);
19562 }
5886b072
VZ
19563 int main()
19564 {
b902e639
VZ
19565 foo("hi", 17);
19566 return 0;
5886b072 19567 }
ba3d13e1
VZ
19568_ACEOF
19569rm -f conftest.$ac_objext conftest$ac_exeext
19570if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19571 (eval $ac_link) 2>conftest.er1
19572 ac_status=$?
19573 grep -v '^ *+' conftest.er1 >conftest.err
19574 rm -f conftest.er1
19575 cat conftest.err >&5
19576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19577 (exit $ac_status); } &&
07158944 19578 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ba3d13e1
VZ
19579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19580 (eval $ac_try) 2>&5
19581 ac_status=$?
19582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19583 (exit $ac_status); }; } &&
19584 { ac_try='test -s conftest$ac_exeext'
19585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19586 (eval $ac_try) 2>&5
19587 ac_status=$?
19588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19589 (exit $ac_status); }; }; then
19590 wx_cv_func_va_copy=yes
19591else
19592 echo "$as_me: failed program was:" >&5
19593sed 's/^/| /' conftest.$ac_ext >&5
19594
19595wx_cv_func_va_copy=no
19596
19597fi
19598rm -f conftest.err conftest.$ac_objext \
19599 conftest$ac_exeext conftest.$ac_ext
19600
19601
19602fi
19603echo "$as_me:$LINENO: result: $wx_cv_func_va_copy" >&5
19604echo "${ECHO_T}$wx_cv_func_va_copy" >&6
19605
19606if test $wx_cv_func_va_copy = "yes"; then
19607 cat >>confdefs.h <<\_ACEOF
19608#define HAVE_VA_COPY 1
19609_ACEOF
19610
19611else
19612 echo "$as_me:$LINENO: checking if va_list can be copied by value" >&5
19613echo $ECHO_N "checking if va_list can be copied by value... $ECHO_C" >&6
19614if test "${wx_cv_type_va_list_lvalue+set}" = set; then
19615 echo $ECHO_N "(cached) $ECHO_C" >&6
19616else
19617
19618 if test "$cross_compiling" = yes; then
19619 wx_cv_type_va_list_lvalue=yes
19620
19621else
19622 cat >conftest.$ac_ext <<_ACEOF
19623
19624 #include <stdarg.h>
19625 int foo(char *f, ...)
19626 {
19627 va_list ap1, ap2;
19628 va_start(ap1, f);
19629 ap2 = ap1;
19630 if ( va_arg(ap1, int) != 17 || va_arg(ap2, int) != 17 )
19631 return 1;
19632 va_end(ap2);
19633 va_end(ap1);
19634 return 0;
19635 }
19636 int main()
19637 {
19638 return foo("hi", 17);
19639 }
19640_ACEOF
19641rm -f conftest$ac_exeext
19642if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19643 (eval $ac_link) 2>&5
19644 ac_status=$?
19645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19646 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19648 (eval $ac_try) 2>&5
19649 ac_status=$?
19650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19651 (exit $ac_status); }; }; then
19652 wx_cv_type_va_list_lvalue=yes
19653else
19654 echo "$as_me: program exited with status $ac_status" >&5
19655echo "$as_me: failed program was:" >&5
19656sed 's/^/| /' conftest.$ac_ext >&5
19657
19658( exit $ac_status )
19659wx_cv_type_va_list_lvalue=no
19660fi
19661rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19662fi
19663
19664
19665fi
19666echo "$as_me:$LINENO: result: $wx_cv_type_va_list_lvalue" >&5
19667echo "${ECHO_T}$wx_cv_type_va_list_lvalue" >&6
19668
19669 if test $wx_cv_type_va_list_lvalue != "yes"; then
19670 cat >>confdefs.h <<\_ACEOF
19671#define VA_LIST_IS_ARRAY 1
19672_ACEOF
19673
19674 fi
19675fi
19676
a848cd7e
SC
19677# Check whether --enable-largefile or --disable-largefile was given.
19678if test "${enable_largefile+set}" = set; then
19679 enableval="$enable_largefile"
19680
19681fi;
19682if test "$enable_largefile" != no; then
19683 wx_largefile=no
19684
19685 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
19686echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
19687if test "${ac_cv_sys_file_offset_bits+set}" = set; then
19688 echo $ECHO_N "(cached) $ECHO_C" >&6
19689else
19690
19691 cat >conftest.$ac_ext <<_ACEOF
19692/* confdefs.h. */
19693_ACEOF
19694cat confdefs.h >>conftest.$ac_ext
19695cat >>conftest.$ac_ext <<_ACEOF
19696/* end confdefs.h. */
19697#define _FILE_OFFSET_BITS 64
19698 #include <sys/types.h>
19699int
19700main ()
19701{
19702typedef struct {
19703 unsigned int field: sizeof(off_t) == 8;
19704} wxlf;
19705
19706 ;
19707 return 0;
19708}
19709_ACEOF
19710rm -f conftest.$ac_objext
19711if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19712 (eval $ac_compile) 2>conftest.er1
a848cd7e 19713 ac_status=$?
ac1cb8d3
VS
19714 grep -v '^ *+' conftest.er1 >conftest.err
19715 rm -f conftest.er1
19716 cat conftest.err >&5
a848cd7e
SC
19717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19718 (exit $ac_status); } &&
07158944 19719 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19721 (eval $ac_try) 2>&5
19722 ac_status=$?
19723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19724 (exit $ac_status); }; } &&
19725 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19727 (eval $ac_try) 2>&5
19728 ac_status=$?
19729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19730 (exit $ac_status); }; }; then
19731 ac_cv_sys_file_offset_bits=64
19732else
19733 echo "$as_me: failed program was:" >&5
19734sed 's/^/| /' conftest.$ac_ext >&5
19735
19736ac_cv_sys_file_offset_bits=no
19737fi
ac1cb8d3 19738rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19739
19740
19741fi
19742echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
19743echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
19744
19745 if test "$ac_cv_sys_file_offset_bits" != no; then
19746 wx_largefile=yes
19747 cat >>confdefs.h <<_ACEOF
19748#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
19749_ACEOF
19750
19751 fi
19752
19753 if test "x$wx_largefile" != "xyes"; then
19754
19755 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
19756echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
19757if test "${ac_cv_sys_large_files+set}" = set; then
19758 echo $ECHO_N "(cached) $ECHO_C" >&6
19759else
19760
19761 cat >conftest.$ac_ext <<_ACEOF
19762/* confdefs.h. */
19763_ACEOF
19764cat confdefs.h >>conftest.$ac_ext
19765cat >>conftest.$ac_ext <<_ACEOF
19766/* end confdefs.h. */
19767#define _LARGE_FILES 1
19768 #include <sys/types.h>
19769int
19770main ()
19771{
19772typedef struct {
19773 unsigned int field: sizeof(off_t) == 8;
19774} wxlf;
19775
19776 ;
19777 return 0;
19778}
19779_ACEOF
19780rm -f conftest.$ac_objext
19781if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19782 (eval $ac_compile) 2>conftest.er1
a848cd7e 19783 ac_status=$?
ac1cb8d3
VS
19784 grep -v '^ *+' conftest.er1 >conftest.err
19785 rm -f conftest.er1
19786 cat conftest.err >&5
a848cd7e
SC
19787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19788 (exit $ac_status); } &&
07158944 19789 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19791 (eval $ac_try) 2>&5
19792 ac_status=$?
19793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19794 (exit $ac_status); }; } &&
19795 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19797 (eval $ac_try) 2>&5
19798 ac_status=$?
19799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19800 (exit $ac_status); }; }; then
19801 ac_cv_sys_large_files=1
19802else
19803 echo "$as_me: failed program was:" >&5
19804sed 's/^/| /' conftest.$ac_ext >&5
19805
19806ac_cv_sys_large_files=no
19807fi
ac1cb8d3 19808rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19809
19810
19811fi
19812echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
19813echo "${ECHO_T}$ac_cv_sys_large_files" >&6
19814
19815 if test "$ac_cv_sys_large_files" != no; then
19816 wx_largefile=yes
19817 cat >>confdefs.h <<_ACEOF
19818#define _LARGE_FILES $ac_cv_sys_large_files
19819_ACEOF
19820
19821 fi
19822
19823 fi
19824
19825 echo "$as_me:$LINENO: checking if large file support is available" >&5
19826echo $ECHO_N "checking if large file support is available... $ECHO_C" >&6
19827 if test "x$wx_largefile" = "xyes"; then
19828 cat >>confdefs.h <<\_ACEOF
19829#define HAVE_LARGEFILE_SUPPORT 1
19830_ACEOF
19831
19832 fi
19833 echo "$as_me:$LINENO: result: $wx_largefile" >&5
19834echo "${ECHO_T}$wx_largefile" >&6
19835fi
19836
5b674b9d
DE
19837
19838if test "x$wx_largefile" = "xyes"; then
19839 if test "x$ac_cv_sys_file_offset_bits" = "x64"; then
19840 WX_LARGEFILE_FLAGS="-D_FILE_OFFSET_BITS=64 -D_LARGE_FILES"
19841 else
19842 WX_LARGEFILE_FLAGS="-D_LARGE_FILES"
19843 fi
19844 echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
5294a27e
VZ
19845echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
19846if test "${ac_cv_sys_largefile_source+set}" = set; then
19847 echo $ECHO_N "(cached) $ECHO_C" >&6
19848else
19849 while :; do
19850 ac_cv_sys_largefile_source=no
19851 cat >conftest.$ac_ext <<_ACEOF
19852/* confdefs.h. */
19853_ACEOF
19854cat confdefs.h >>conftest.$ac_ext
19855cat >>conftest.$ac_ext <<_ACEOF
19856/* end confdefs.h. */
19857#include <stdio.h>
19858int
19859main ()
19860{
19861return !fseeko;
19862 ;
19863 return 0;
19864}
19865_ACEOF
19866rm -f conftest.$ac_objext
19867if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19868 (eval $ac_compile) 2>conftest.er1
19869 ac_status=$?
19870 grep -v '^ *+' conftest.er1 >conftest.err
19871 rm -f conftest.er1
19872 cat conftest.err >&5
19873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19874 (exit $ac_status); } &&
07158944 19875 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5294a27e
VZ
19876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19877 (eval $ac_try) 2>&5
19878 ac_status=$?
19879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19880 (exit $ac_status); }; } &&
19881 { ac_try='test -s conftest.$ac_objext'
19882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19883 (eval $ac_try) 2>&5
19884 ac_status=$?
19885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19886 (exit $ac_status); }; }; then
19887 break
19888else
19889 echo "$as_me: failed program was:" >&5
19890sed 's/^/| /' conftest.$ac_ext >&5
19891
19892fi
19893rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19894 cat >conftest.$ac_ext <<_ACEOF
19895/* confdefs.h. */
19896_ACEOF
19897cat confdefs.h >>conftest.$ac_ext
19898cat >>conftest.$ac_ext <<_ACEOF
19899/* end confdefs.h. */
19900#define _LARGEFILE_SOURCE 1
19901#include <stdio.h>
19902int
19903main ()
19904{
19905return !fseeko;
19906 ;
19907 return 0;
19908}
19909_ACEOF
19910rm -f conftest.$ac_objext
19911if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19912 (eval $ac_compile) 2>conftest.er1
19913 ac_status=$?
19914 grep -v '^ *+' conftest.er1 >conftest.err
19915 rm -f conftest.er1
19916 cat conftest.err >&5
19917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19918 (exit $ac_status); } &&
07158944 19919 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5294a27e
VZ
19920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19921 (eval $ac_try) 2>&5
19922 ac_status=$?
19923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19924 (exit $ac_status); }; } &&
19925 { ac_try='test -s conftest.$ac_objext'
19926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19927 (eval $ac_try) 2>&5
19928 ac_status=$?
19929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19930 (exit $ac_status); }; }; then
19931 ac_cv_sys_largefile_source=1; break
19932else
19933 echo "$as_me: failed program was:" >&5
19934sed 's/^/| /' conftest.$ac_ext >&5
19935
19936fi
19937rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19938 break
19939done
19940fi
19941echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
19942echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
19943if test "$ac_cv_sys_largefile_source" != no; then
19944
19945cat >>confdefs.h <<_ACEOF
19946#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
19947_ACEOF
19948
19949fi
19950rm -f conftest*
19951
19952# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
19953# in glibc 2.1.3, but that breaks too many other things.
19954# If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
19955echo "$as_me:$LINENO: checking for fseeko" >&5
19956echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
19957if test "${ac_cv_func_fseeko+set}" = set; then
19958 echo $ECHO_N "(cached) $ECHO_C" >&6
19959else
19960 cat >conftest.$ac_ext <<_ACEOF
19961/* confdefs.h. */
19962_ACEOF
19963cat confdefs.h >>conftest.$ac_ext
19964cat >>conftest.$ac_ext <<_ACEOF
19965/* end confdefs.h. */
19966#include <stdio.h>
19967int
19968main ()
19969{
19970return fseeko && fseeko (stdin, 0, 0);
19971 ;
19972 return 0;
19973}
19974_ACEOF
19975rm -f conftest.$ac_objext conftest$ac_exeext
19976if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19977 (eval $ac_link) 2>conftest.er1
19978 ac_status=$?
19979 grep -v '^ *+' conftest.er1 >conftest.err
19980 rm -f conftest.er1
19981 cat conftest.err >&5
19982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19983 (exit $ac_status); } &&
07158944 19984 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5294a27e
VZ
19985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19986 (eval $ac_try) 2>&5
19987 ac_status=$?
19988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19989 (exit $ac_status); }; } &&
19990 { ac_try='test -s conftest$ac_exeext'
19991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19992 (eval $ac_try) 2>&5
19993 ac_status=$?
19994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19995 (exit $ac_status); }; }; then
19996 ac_cv_func_fseeko=yes
19997else
19998 echo "$as_me: failed program was:" >&5
19999sed 's/^/| /' conftest.$ac_ext >&5
20000
20001ac_cv_func_fseeko=no
20002fi
20003rm -f conftest.err conftest.$ac_objext \
20004 conftest$ac_exeext conftest.$ac_ext
20005fi
20006echo "$as_me:$LINENO: result: $ac_cv_func_fseeko" >&5
20007echo "${ECHO_T}$ac_cv_func_fseeko" >&6
20008if test $ac_cv_func_fseeko = yes; then
20009
20010cat >>confdefs.h <<\_ACEOF
20011#define HAVE_FSEEKO 1
20012_ACEOF
20013
20014fi
20015
5b674b9d
DE
20016 if test "$ac_cv_sys_largefile_source" != no; then
20017 WX_LARGEFILE_FLAGS="$WX_LARGEFILE_FLAGS -D_LARGEFILE_SOURCE=$ac_cv_sys_largefile_source"
a848cd7e
SC
20018 fi
20019 CPPFLAGS="$CPPFLAGS $WX_LARGEFILE_FLAGS"
20020fi
20021
20022echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
20023echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
20024if test "${ac_cv_c_bigendian+set}" = set; then
20025 echo $ECHO_N "(cached) $ECHO_C" >&6
20026else
20027 ac_cv_c_bigendian=unknown
20028# See if sys/param.h defines the BYTE_ORDER macro.
20029cat >conftest.$ac_ext <<_ACEOF
20030/* confdefs.h. */
20031_ACEOF
20032cat confdefs.h >>conftest.$ac_ext
20033cat >>conftest.$ac_ext <<_ACEOF
20034/* end confdefs.h. */
20035#include <sys/types.h>
20036#include <sys/param.h>
20037int
20038main ()
20039{
20040
20041#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
20042 bogus endian macros
20043#endif
20044 ;
20045 return 0;
20046}
20047_ACEOF
20048rm -f conftest.$ac_objext
20049if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20050 (eval $ac_compile) 2>conftest.er1
a848cd7e 20051 ac_status=$?
ac1cb8d3
VS
20052 grep -v '^ *+' conftest.er1 >conftest.err
20053 rm -f conftest.er1
20054 cat conftest.err >&5
a848cd7e
SC
20055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20056 (exit $ac_status); } &&
07158944 20057 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20059 (eval $ac_try) 2>&5
20060 ac_status=$?
20061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20062 (exit $ac_status); }; } &&
20063 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20065 (eval $ac_try) 2>&5
20066 ac_status=$?
20067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20068 (exit $ac_status); }; }; then
20069 # It does; now see whether it defined to BIG_ENDIAN or not.
20070cat >conftest.$ac_ext <<_ACEOF
20071/* confdefs.h. */
20072_ACEOF
20073cat confdefs.h >>conftest.$ac_ext
20074cat >>conftest.$ac_ext <<_ACEOF
20075/* end confdefs.h. */
20076#include <sys/types.h>
20077#include <sys/param.h>
20078int
20079main ()
20080{
20081
20082#if BYTE_ORDER != BIG_ENDIAN
20083 not big endian
20084#endif
20085 ;
20086 return 0;
20087}
20088_ACEOF
20089rm -f conftest.$ac_objext
20090if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20091 (eval $ac_compile) 2>conftest.er1
a848cd7e 20092 ac_status=$?
ac1cb8d3
VS
20093 grep -v '^ *+' conftest.er1 >conftest.err
20094 rm -f conftest.er1
20095 cat conftest.err >&5
a848cd7e
SC
20096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20097 (exit $ac_status); } &&
07158944 20098 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20100 (eval $ac_try) 2>&5
20101 ac_status=$?
20102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20103 (exit $ac_status); }; } &&
20104 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
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); }; }; then
20110 ac_cv_c_bigendian=yes
20111else
20112 echo "$as_me: failed program was:" >&5
20113sed 's/^/| /' conftest.$ac_ext >&5
20114
20115ac_cv_c_bigendian=no
20116fi
ac1cb8d3 20117rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20118else
20119 echo "$as_me: failed program was:" >&5
20120sed 's/^/| /' conftest.$ac_ext >&5
20121
20122fi
ac1cb8d3 20123rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20124if test $ac_cv_c_bigendian = unknown; then
20125if test "$cross_compiling" = yes; then
20126 ac_cv_c_bigendian=unknown
20127else
20128 cat >conftest.$ac_ext <<_ACEOF
20129/* confdefs.h. */
20130_ACEOF
20131cat confdefs.h >>conftest.$ac_ext
20132cat >>conftest.$ac_ext <<_ACEOF
20133/* end confdefs.h. */
20134main () {
20135 /* Are we little or big endian? From Harbison&Steele. */
20136 union
20137 {
20138 long l;
20139 char c[sizeof (long)];
20140 } u;
20141 u.l = 1;
20142 exit (u.c[sizeof (long) - 1] == 1);
20143}
20144_ACEOF
20145rm -f conftest$ac_exeext
20146if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20147 (eval $ac_link) 2>&5
20148 ac_status=$?
20149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20150 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20152 (eval $ac_try) 2>&5
20153 ac_status=$?
20154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20155 (exit $ac_status); }; }; then
20156 ac_cv_c_bigendian=no
20157else
20158 echo "$as_me: program exited with status $ac_status" >&5
20159echo "$as_me: failed program was:" >&5
20160sed 's/^/| /' conftest.$ac_ext >&5
20161
20162( exit $ac_status )
20163ac_cv_c_bigendian=yes
20164fi
ac1cb8d3 20165rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20166fi
20167fi
20168fi
20169echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
20170echo "${ECHO_T}$ac_cv_c_bigendian" >&6
20171if test $ac_cv_c_bigendian = unknown; then
20172 { 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
20173echo "$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;}
20174fi
20175if test $ac_cv_c_bigendian = yes; then
20176 cat >>confdefs.h <<\_ACEOF
20177#define WORDS_BIGENDIAN 1
20178_ACEOF
20179
20180fi
20181
20182
20183ac_ext=cc
20184ac_cpp='$CXXCPP $CPPFLAGS'
20185ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20186ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20187ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20188echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
20189echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
20190if test -z "$CXXCPP"; then
20191 if test "${ac_cv_prog_CXXCPP+set}" = set; then
20192 echo $ECHO_N "(cached) $ECHO_C" >&6
20193else
20194 # Double quotes because CXXCPP needs to be expanded
20195 for CXXCPP in "$CXX -E" "/lib/cpp"
20196 do
20197 ac_preproc_ok=false
20198for ac_cxx_preproc_warn_flag in '' yes
20199do
20200 # Use a header file that comes with gcc, so configuring glibc
20201 # with a fresh cross-compiler works.
20202 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20203 # <limits.h> exists even on freestanding compilers.
20204 # On the NeXT, cc -E runs the code through the compiler's parser,
20205 # not just through cpp. "Syntax error" is here to catch this case.
20206 cat >conftest.$ac_ext <<_ACEOF
20207/* confdefs.h. */
20208_ACEOF
20209cat confdefs.h >>conftest.$ac_ext
20210cat >>conftest.$ac_ext <<_ACEOF
20211/* end confdefs.h. */
20212#ifdef __STDC__
20213# include <limits.h>
20214#else
20215# include <assert.h>
20216#endif
ac1cb8d3 20217 Syntax error
a848cd7e
SC
20218_ACEOF
20219if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20220 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20221 ac_status=$?
20222 grep -v '^ *+' conftest.er1 >conftest.err
20223 rm -f conftest.er1
20224 cat conftest.err >&5
20225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20226 (exit $ac_status); } >/dev/null; then
20227 if test -s conftest.err; then
20228 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 20229 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
20230 else
20231 ac_cpp_err=
20232 fi
20233else
20234 ac_cpp_err=yes
20235fi
20236if test -z "$ac_cpp_err"; then
20237 :
20238else
20239 echo "$as_me: failed program was:" >&5
20240sed 's/^/| /' conftest.$ac_ext >&5
20241
20242 # Broken: fails on valid input.
20243continue
20244fi
20245rm -f conftest.err conftest.$ac_ext
20246
20247 # OK, works on sane cases. Now check whether non-existent headers
20248 # can be detected and how.
20249 cat >conftest.$ac_ext <<_ACEOF
20250/* confdefs.h. */
20251_ACEOF
20252cat confdefs.h >>conftest.$ac_ext
20253cat >>conftest.$ac_ext <<_ACEOF
20254/* end confdefs.h. */
20255#include <ac_nonexistent.h>
20256_ACEOF
20257if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20258 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20259 ac_status=$?
20260 grep -v '^ *+' conftest.er1 >conftest.err
20261 rm -f conftest.er1
20262 cat conftest.err >&5
20263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20264 (exit $ac_status); } >/dev/null; then
20265 if test -s conftest.err; then
20266 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 20267 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
20268 else
20269 ac_cpp_err=
20270 fi
20271else
20272 ac_cpp_err=yes
20273fi
20274if test -z "$ac_cpp_err"; then
20275 # Broken: success on invalid input.
20276continue
20277else
20278 echo "$as_me: failed program was:" >&5
20279sed 's/^/| /' conftest.$ac_ext >&5
20280
20281 # Passes both tests.
20282ac_preproc_ok=:
20283break
20284fi
20285rm -f conftest.err conftest.$ac_ext
20286
20287done
20288# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
20289rm -f conftest.err conftest.$ac_ext
20290if $ac_preproc_ok; then
20291 break
20292fi
20293
20294 done
20295 ac_cv_prog_CXXCPP=$CXXCPP
20296
20297fi
20298 CXXCPP=$ac_cv_prog_CXXCPP
20299else
20300 ac_cv_prog_CXXCPP=$CXXCPP
20301fi
20302echo "$as_me:$LINENO: result: $CXXCPP" >&5
20303echo "${ECHO_T}$CXXCPP" >&6
20304ac_preproc_ok=false
20305for ac_cxx_preproc_warn_flag in '' yes
20306do
20307 # Use a header file that comes with gcc, so configuring glibc
20308 # with a fresh cross-compiler works.
20309 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20310 # <limits.h> exists even on freestanding compilers.
20311 # On the NeXT, cc -E runs the code through the compiler's parser,
20312 # not just through cpp. "Syntax error" is here to catch this case.
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. */
20319#ifdef __STDC__
20320# include <limits.h>
20321#else
20322# include <assert.h>
20323#endif
ac1cb8d3 20324 Syntax error
a848cd7e
SC
20325_ACEOF
20326if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20327 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20328 ac_status=$?
20329 grep -v '^ *+' conftest.er1 >conftest.err
20330 rm -f conftest.er1
20331 cat conftest.err >&5
20332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20333 (exit $ac_status); } >/dev/null; then
20334 if test -s conftest.err; then
20335 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 20336 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
20337 else
20338 ac_cpp_err=
20339 fi
20340else
20341 ac_cpp_err=yes
20342fi
20343if test -z "$ac_cpp_err"; then
20344 :
20345else
20346 echo "$as_me: failed program was:" >&5
20347sed 's/^/| /' conftest.$ac_ext >&5
20348
20349 # Broken: fails on valid input.
20350continue
20351fi
20352rm -f conftest.err conftest.$ac_ext
20353
20354 # OK, works on sane cases. Now check whether non-existent headers
20355 # can be detected and how.
20356 cat >conftest.$ac_ext <<_ACEOF
20357/* confdefs.h. */
20358_ACEOF
20359cat confdefs.h >>conftest.$ac_ext
20360cat >>conftest.$ac_ext <<_ACEOF
20361/* end confdefs.h. */
20362#include <ac_nonexistent.h>
20363_ACEOF
20364if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20365 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20366 ac_status=$?
20367 grep -v '^ *+' conftest.er1 >conftest.err
20368 rm -f conftest.er1
20369 cat conftest.err >&5
20370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20371 (exit $ac_status); } >/dev/null; then
20372 if test -s conftest.err; then
20373 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 20374 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
20375 else
20376 ac_cpp_err=
20377 fi
20378else
20379 ac_cpp_err=yes
20380fi
20381if test -z "$ac_cpp_err"; then
20382 # Broken: success on invalid input.
20383continue
20384else
20385 echo "$as_me: failed program was:" >&5
20386sed 's/^/| /' conftest.$ac_ext >&5
20387
20388 # Passes both tests.
20389ac_preproc_ok=:
20390break
20391fi
20392rm -f conftest.err conftest.$ac_ext
20393
20394done
20395# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
20396rm -f conftest.err conftest.$ac_ext
20397if $ac_preproc_ok; then
20398 :
20399else
20400 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
20401See \`config.log' for more details." >&5
20402echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
20403See \`config.log' for more details." >&2;}
20404 { (exit 1); exit 1; }; }
20405fi
20406
20407ac_ext=cc
20408ac_cpp='$CXXCPP $CPPFLAGS'
20409ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20410ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20411ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20412
20413
20414
20415
20416
20417 ac_ext=cc
20418ac_cpp='$CXXCPP $CPPFLAGS'
20419ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20420ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20421ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20422
20423
20424
20425for ac_header in iostream
20426do
20427as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20428if eval "test \"\${$as_ac_Header+set}\" = set"; then
20429 echo "$as_me:$LINENO: checking for $ac_header" >&5
20430echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20431if eval "test \"\${$as_ac_Header+set}\" = set"; then
20432 echo $ECHO_N "(cached) $ECHO_C" >&6
20433fi
20434echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20435echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20436else
20437 # Is the header compilable?
20438echo "$as_me:$LINENO: checking $ac_header usability" >&5
20439echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20440cat >conftest.$ac_ext <<_ACEOF
20441/* confdefs.h. */
20442_ACEOF
20443cat confdefs.h >>conftest.$ac_ext
20444cat >>conftest.$ac_ext <<_ACEOF
20445/* end confdefs.h. */
20446$ac_includes_default
20447#include <$ac_header>
20448_ACEOF
20449rm -f conftest.$ac_objext
20450if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20451 (eval $ac_compile) 2>conftest.er1
a848cd7e 20452 ac_status=$?
ac1cb8d3
VS
20453 grep -v '^ *+' conftest.er1 >conftest.err
20454 rm -f conftest.er1
20455 cat conftest.err >&5
a848cd7e
SC
20456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20457 (exit $ac_status); } &&
07158944 20458 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20460 (eval $ac_try) 2>&5
20461 ac_status=$?
20462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20463 (exit $ac_status); }; } &&
20464 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20466 (eval $ac_try) 2>&5
20467 ac_status=$?
20468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20469 (exit $ac_status); }; }; then
20470 ac_header_compiler=yes
20471else
20472 echo "$as_me: failed program was:" >&5
20473sed 's/^/| /' conftest.$ac_ext >&5
20474
20475ac_header_compiler=no
20476fi
ac1cb8d3 20477rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20478echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20479echo "${ECHO_T}$ac_header_compiler" >&6
20480
20481# Is the header present?
20482echo "$as_me:$LINENO: checking $ac_header presence" >&5
20483echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20484cat >conftest.$ac_ext <<_ACEOF
20485/* confdefs.h. */
20486_ACEOF
20487cat confdefs.h >>conftest.$ac_ext
20488cat >>conftest.$ac_ext <<_ACEOF
20489/* end confdefs.h. */
20490#include <$ac_header>
20491_ACEOF
20492if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20493 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20494 ac_status=$?
20495 grep -v '^ *+' conftest.er1 >conftest.err
20496 rm -f conftest.er1
20497 cat conftest.err >&5
20498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20499 (exit $ac_status); } >/dev/null; then
20500 if test -s conftest.err; then
20501 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 20502 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
20503 else
20504 ac_cpp_err=
20505 fi
20506else
20507 ac_cpp_err=yes
20508fi
20509if test -z "$ac_cpp_err"; then
20510 ac_header_preproc=yes
20511else
20512 echo "$as_me: failed program was:" >&5
20513sed 's/^/| /' conftest.$ac_ext >&5
20514
20515 ac_header_preproc=no
20516fi
20517rm -f conftest.err conftest.$ac_ext
20518echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20519echo "${ECHO_T}$ac_header_preproc" >&6
20520
20521# So? What about this header?
ac1cb8d3
VS
20522case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
20523 yes:no: )
a848cd7e
SC
20524 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20525echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
20526 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20527echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20528 ac_header_preproc=yes
a848cd7e 20529 ;;
ac1cb8d3 20530 no:yes:* )
a848cd7e
SC
20531 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20532echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
20533 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20534echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20535 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20536echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20537 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20538echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
20539 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20540echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
20541 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20542echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
20543 (
20544 cat <<\_ASBOX
ac1cb8d3
VS
20545## ----------------------------------------- ##
20546## Report this to wx-dev@lists.wxwidgets.org ##
20547## ----------------------------------------- ##
a848cd7e
SC
20548_ASBOX
20549 ) |
20550 sed "s/^/$as_me: WARNING: /" >&2
20551 ;;
20552esac
20553echo "$as_me:$LINENO: checking for $ac_header" >&5
20554echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20555if eval "test \"\${$as_ac_Header+set}\" = set"; then
20556 echo $ECHO_N "(cached) $ECHO_C" >&6
20557else
ac1cb8d3 20558 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
20559fi
20560echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20561echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20562
20563fi
20564if test `eval echo '${'$as_ac_Header'}'` = yes; then
20565 cat >>confdefs.h <<_ACEOF
20566#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20567_ACEOF
20568
20569fi
20570
20571done
20572
20573
20574 if test "$ac_cv_header_iostream" = "yes" ; then
20575 :
20576 else
20577 cat >>confdefs.h <<\_ACEOF
20578#define wxUSE_IOSTREAMH 1
20579_ACEOF
20580
20581 fi
20582
20583 ac_ext=c
20584ac_cpp='$CPP $CPPFLAGS'
20585ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20586ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20587ac_compiler_gnu=$ac_cv_c_compiler_gnu
20588
20589
20590
20591
20592 echo "$as_me:$LINENO: checking if C++ compiler supports bool" >&5
20593echo $ECHO_N "checking if C++ compiler supports bool... $ECHO_C" >&6
20594if test "${wx_cv_cpp_bool+set}" = set; then
20595 echo $ECHO_N "(cached) $ECHO_C" >&6
20596else
20597
20598
20599
20600 ac_ext=cc
20601ac_cpp='$CXXCPP $CPPFLAGS'
20602ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20603ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20604ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20605
20606
20607 cat >conftest.$ac_ext <<_ACEOF
20608/* confdefs.h. */
20609_ACEOF
20610cat confdefs.h >>conftest.$ac_ext
20611cat >>conftest.$ac_ext <<_ACEOF
20612/* end confdefs.h. */
20613
20614
20615int
20616main ()
20617{
20618
20619 bool b = true;
20620
20621 return 0;
20622
20623 ;
20624 return 0;
20625}
20626_ACEOF
20627rm -f conftest.$ac_objext
20628if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20629 (eval $ac_compile) 2>conftest.er1
a848cd7e 20630 ac_status=$?
ac1cb8d3
VS
20631 grep -v '^ *+' conftest.er1 >conftest.err
20632 rm -f conftest.er1
20633 cat conftest.err >&5
a848cd7e
SC
20634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20635 (exit $ac_status); } &&
07158944 20636 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20638 (eval $ac_try) 2>&5
20639 ac_status=$?
20640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20641 (exit $ac_status); }; } &&
20642 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20644 (eval $ac_try) 2>&5
20645 ac_status=$?
20646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20647 (exit $ac_status); }; }; then
20648
20649 wx_cv_cpp_bool=yes
20650
20651else
20652 echo "$as_me: failed program was:" >&5
20653sed 's/^/| /' conftest.$ac_ext >&5
20654
20655
20656 wx_cv_cpp_bool=no
20657
20658
20659fi
ac1cb8d3 20660rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20661
20662 ac_ext=c
20663ac_cpp='$CPP $CPPFLAGS'
20664ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20665ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20666ac_compiler_gnu=$ac_cv_c_compiler_gnu
20667
20668
20669fi
20670echo "$as_me:$LINENO: result: $wx_cv_cpp_bool" >&5
20671echo "${ECHO_T}$wx_cv_cpp_bool" >&6
20672
20673 if test "$wx_cv_cpp_bool" = "yes"; then
20674 cat >>confdefs.h <<\_ACEOF
20675#define HAVE_BOOL 1
20676_ACEOF
20677
20678 fi
20679
20680
20681
20682 echo "$as_me:$LINENO: checking if C++ compiler supports the explicit keyword" >&5
20683echo $ECHO_N "checking if C++ compiler supports the explicit keyword... $ECHO_C" >&6
20684if test "${wx_cv_explicit+set}" = set; then
20685 echo $ECHO_N "(cached) $ECHO_C" >&6
20686else
20687
20688
20689
20690 ac_ext=cc
20691ac_cpp='$CXXCPP $CPPFLAGS'
20692ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20693ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20694ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20695
20696
20697 cat >conftest.$ac_ext <<_ACEOF
20698/* confdefs.h. */
20699_ACEOF
20700cat confdefs.h >>conftest.$ac_ext
20701cat >>conftest.$ac_ext <<_ACEOF
20702/* end confdefs.h. */
20703
20704 class Foo { public: explicit Foo(int) {} };
20705
20706int
20707main ()
20708{
20709
20710 return 0;
20711
20712 ;
20713 return 0;
20714}
20715_ACEOF
20716rm -f conftest.$ac_objext
20717if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20718 (eval $ac_compile) 2>conftest.er1
a848cd7e 20719 ac_status=$?
ac1cb8d3
VS
20720 grep -v '^ *+' conftest.er1 >conftest.err
20721 rm -f conftest.er1
20722 cat conftest.err >&5
a848cd7e
SC
20723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20724 (exit $ac_status); } &&
07158944 20725 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20727 (eval $ac_try) 2>&5
20728 ac_status=$?
20729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20730 (exit $ac_status); }; } &&
20731 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20733 (eval $ac_try) 2>&5
20734 ac_status=$?
20735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20736 (exit $ac_status); }; }; then
20737
20738 cat >conftest.$ac_ext <<_ACEOF
20739/* confdefs.h. */
20740_ACEOF
20741cat confdefs.h >>conftest.$ac_ext
20742cat >>conftest.$ac_ext <<_ACEOF
20743/* end confdefs.h. */
20744
20745 class Foo { public: explicit Foo(int) {} };
20746 static void TakeFoo(const Foo& foo) { }
20747
20748int
20749main ()
20750{
20751
20752 TakeFoo(17);
20753 return 0;
20754
20755 ;
20756 return 0;
20757}
20758_ACEOF
20759rm -f conftest.$ac_objext
20760if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20761 (eval $ac_compile) 2>conftest.er1
a848cd7e 20762 ac_status=$?
ac1cb8d3
VS
20763 grep -v '^ *+' conftest.er1 >conftest.err
20764 rm -f conftest.er1
20765 cat conftest.err >&5
a848cd7e
SC
20766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20767 (exit $ac_status); } &&
07158944 20768 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20770 (eval $ac_try) 2>&5
20771 ac_status=$?
20772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20773 (exit $ac_status); }; } &&
20774 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20776 (eval $ac_try) 2>&5
20777 ac_status=$?
20778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20779 (exit $ac_status); }; }; then
20780 wx_cv_explicit=no
20781else
20782 echo "$as_me: failed program was:" >&5
20783sed 's/^/| /' conftest.$ac_ext >&5
20784
20785wx_cv_explicit=yes
20786
20787fi
ac1cb8d3 20788rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20789
20790else
20791 echo "$as_me: failed program was:" >&5
20792sed 's/^/| /' conftest.$ac_ext >&5
20793
20794wx_cv_explicit=no
20795
20796fi
ac1cb8d3 20797rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20798
20799 ac_ext=c
20800ac_cpp='$CPP $CPPFLAGS'
20801ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20802ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20803ac_compiler_gnu=$ac_cv_c_compiler_gnu
20804
20805
20806fi
20807echo "$as_me:$LINENO: result: $wx_cv_explicit" >&5
20808echo "${ECHO_T}$wx_cv_explicit" >&6
20809
20810 if test "$wx_cv_explicit" = "yes"; then
20811 cat >>confdefs.h <<\_ACEOF
20812#define HAVE_EXPLICIT 1
20813_ACEOF
20814
20815 fi
20816
20817
20818echo "$as_me:$LINENO: checking whether the compiler supports const_cast<>" >&5
20819echo $ECHO_N "checking whether the compiler supports const_cast<>... $ECHO_C" >&6
20820if test "${ac_cv_cxx_const_cast+set}" = set; then
20821 echo $ECHO_N "(cached) $ECHO_C" >&6
20822else
20823
20824
20825 ac_ext=cc
20826ac_cpp='$CXXCPP $CPPFLAGS'
20827ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20828ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20829ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20830
20831 cat >conftest.$ac_ext <<_ACEOF
20832/* confdefs.h. */
20833_ACEOF
20834cat confdefs.h >>conftest.$ac_ext
20835cat >>conftest.$ac_ext <<_ACEOF
20836/* end confdefs.h. */
20837
20838int
20839main ()
20840{
20841int x = 0;const int& y = x;int& z = const_cast<int&>(y);return z;
20842 ;
20843 return 0;
20844}
20845_ACEOF
20846rm -f conftest.$ac_objext
20847if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20848 (eval $ac_compile) 2>conftest.er1
a848cd7e 20849 ac_status=$?
ac1cb8d3
VS
20850 grep -v '^ *+' conftest.er1 >conftest.err
20851 rm -f conftest.er1
20852 cat conftest.err >&5
a848cd7e
SC
20853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20854 (exit $ac_status); } &&
07158944 20855 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20857 (eval $ac_try) 2>&5
20858 ac_status=$?
20859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20860 (exit $ac_status); }; } &&
20861 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20863 (eval $ac_try) 2>&5
20864 ac_status=$?
20865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20866 (exit $ac_status); }; }; then
20867 ac_cv_cxx_const_cast=yes
20868else
20869 echo "$as_me: failed program was:" >&5
20870sed 's/^/| /' conftest.$ac_ext >&5
20871
20872ac_cv_cxx_const_cast=no
20873fi
ac1cb8d3 20874rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20875 ac_ext=c
20876ac_cpp='$CPP $CPPFLAGS'
20877ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20878ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20879ac_compiler_gnu=$ac_cv_c_compiler_gnu
20880
20881
20882fi
20883echo "$as_me:$LINENO: result: $ac_cv_cxx_const_cast" >&5
20884echo "${ECHO_T}$ac_cv_cxx_const_cast" >&6
20885if test "$ac_cv_cxx_const_cast" = yes; then
20886
20887cat >>confdefs.h <<\_ACEOF
20888#define HAVE_CONST_CAST
20889_ACEOF
20890
20891fi
20892
7714864e
RL
20893echo "$as_me:$LINENO: checking whether the compiler supports reinterpret_cast<>" >&5
20894echo $ECHO_N "checking whether the compiler supports reinterpret_cast<>... $ECHO_C" >&6
20895if test "${ac_cv_cxx_reinterpret_cast+set}" = set; then
20896 echo $ECHO_N "(cached) $ECHO_C" >&6
20897else
20898
20899
20900 ac_ext=cc
20901ac_cpp='$CXXCPP $CPPFLAGS'
20902ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20903ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20904ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20905
20906 cat >conftest.$ac_ext <<_ACEOF
20907/* confdefs.h. */
20908_ACEOF
20909cat confdefs.h >>conftest.$ac_ext
20910cat >>conftest.$ac_ext <<_ACEOF
20911/* end confdefs.h. */
20912#include <typeinfo>
20913class Base { public : Base () {} virtual void f () = 0;};
20914class Derived : public Base { public : Derived () {} virtual void f () {} };
20915class Unrelated { public : Unrelated () {} };
20916int g (Unrelated&) { return 0; }
20917int
20918main ()
20919{
20920
20921Derived d;Base& b=d;Unrelated& e=reinterpret_cast<Unrelated&>(b);return g(e);
20922 ;
20923 return 0;
20924}
20925_ACEOF
20926rm -f conftest.$ac_objext
20927if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20928 (eval $ac_compile) 2>conftest.er1
20929 ac_status=$?
20930 grep -v '^ *+' conftest.er1 >conftest.err
20931 rm -f conftest.er1
20932 cat conftest.err >&5
20933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20934 (exit $ac_status); } &&
07158944 20935 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
7714864e
RL
20936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20937 (eval $ac_try) 2>&5
20938 ac_status=$?
20939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20940 (exit $ac_status); }; } &&
20941 { ac_try='test -s conftest.$ac_objext'
20942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20943 (eval $ac_try) 2>&5
20944 ac_status=$?
20945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20946 (exit $ac_status); }; }; then
20947 ac_cv_cxx_reinterpret_cast=yes
20948else
20949 echo "$as_me: failed program was:" >&5
20950sed 's/^/| /' conftest.$ac_ext >&5
20951
20952ac_cv_cxx_reinterpret_cast=no
20953fi
20954rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20955 ac_ext=c
20956ac_cpp='$CPP $CPPFLAGS'
20957ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20958ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20959ac_compiler_gnu=$ac_cv_c_compiler_gnu
20960
20961
20962fi
20963echo "$as_me:$LINENO: result: $ac_cv_cxx_reinterpret_cast" >&5
20964echo "${ECHO_T}$ac_cv_cxx_reinterpret_cast" >&6
20965if test "$ac_cv_cxx_reinterpret_cast" = yes; then
20966
20967cat >>confdefs.h <<\_ACEOF
20968#define HAVE_REINTERPRET_CAST
20969_ACEOF
20970
20971fi
20972
a848cd7e
SC
20973echo "$as_me:$LINENO: checking whether the compiler supports static_cast<>" >&5
20974echo $ECHO_N "checking whether the compiler supports static_cast<>... $ECHO_C" >&6
20975if test "${ac_cv_cxx_static_cast+set}" = set; then
20976 echo $ECHO_N "(cached) $ECHO_C" >&6
20977else
20978
20979
20980 ac_ext=cc
20981ac_cpp='$CXXCPP $CPPFLAGS'
20982ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20983ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20984ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20985
20986 cat >conftest.$ac_ext <<_ACEOF
20987/* confdefs.h. */
20988_ACEOF
20989cat confdefs.h >>conftest.$ac_ext
20990cat >>conftest.$ac_ext <<_ACEOF
20991/* end confdefs.h. */
20992#include <typeinfo>
20993class Base { public : Base () {} virtual void f () = 0; };
20994class Derived : public Base { public : Derived () {} virtual void f () {} };
20995int g (Derived&) { return 0; }
20996int
20997main ()
20998{
20999
21000Derived d; Base& b = d; Derived& s = static_cast<Derived&> (b); return g (s);
21001 ;
21002 return 0;
21003}
21004_ACEOF
21005rm -f conftest.$ac_objext
21006if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21007 (eval $ac_compile) 2>conftest.er1
a848cd7e 21008 ac_status=$?
ac1cb8d3
VS
21009 grep -v '^ *+' conftest.er1 >conftest.err
21010 rm -f conftest.er1
21011 cat conftest.err >&5
a848cd7e
SC
21012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21013 (exit $ac_status); } &&
07158944 21014 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21016 (eval $ac_try) 2>&5
21017 ac_status=$?
21018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21019 (exit $ac_status); }; } &&
21020 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21022 (eval $ac_try) 2>&5
21023 ac_status=$?
21024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21025 (exit $ac_status); }; }; then
21026 ac_cv_cxx_static_cast=yes
21027else
21028 echo "$as_me: failed program was:" >&5
21029sed 's/^/| /' conftest.$ac_ext >&5
21030
21031ac_cv_cxx_static_cast=no
21032fi
ac1cb8d3 21033rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21034 ac_ext=c
21035ac_cpp='$CPP $CPPFLAGS'
21036ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21037ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21038ac_compiler_gnu=$ac_cv_c_compiler_gnu
21039
21040
21041fi
21042echo "$as_me:$LINENO: result: $ac_cv_cxx_static_cast" >&5
21043echo "${ECHO_T}$ac_cv_cxx_static_cast" >&6
21044if test "$ac_cv_cxx_static_cast" = yes; then
21045
21046cat >>confdefs.h <<\_ACEOF
21047#define HAVE_STATIC_CAST
21048_ACEOF
21049
21050fi
21051
07158944 21052AC_CXX_DYNAMIC_CAST
a848cd7e
SC
21053
21054if test "$wxUSE_STL" = "yes"; then
21055 ac_ext=cc
21056ac_cpp='$CXXCPP $CPPFLAGS'
21057ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21058ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21059ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21060
21061
21062 echo "$as_me:$LINENO: checking for basic STL functionality" >&5
21063echo $ECHO_N "checking for basic STL functionality... $ECHO_C" >&6
21064 cat >conftest.$ac_ext <<_ACEOF
21065/* confdefs.h. */
21066_ACEOF
21067cat confdefs.h >>conftest.$ac_ext
21068cat >>conftest.$ac_ext <<_ACEOF
21069/* end confdefs.h. */
21070#include <string>
21071 #include <functional>
21072 #include <algorithm>
21073 #include <vector>
21074 #include <list>
21075int
21076main ()
21077{
21078std::vector<int> moo;
21079 std::list<int> foo;
21080 std::vector<int>::iterator it =
21081 std::find_if(moo.begin(), moo.end(),
21082 std::bind2nd(std::less<int>(), 3));
21083 ;
21084 return 0;
21085}
21086_ACEOF
21087rm -f conftest.$ac_objext
21088if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21089 (eval $ac_compile) 2>conftest.er1
a848cd7e 21090 ac_status=$?
ac1cb8d3
VS
21091 grep -v '^ *+' conftest.er1 >conftest.err
21092 rm -f conftest.er1
21093 cat conftest.err >&5
a848cd7e
SC
21094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21095 (exit $ac_status); } &&
07158944 21096 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21098 (eval $ac_try) 2>&5
21099 ac_status=$?
21100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21101 (exit $ac_status); }; } &&
21102 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21104 (eval $ac_try) 2>&5
21105 ac_status=$?
21106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21107 (exit $ac_status); }; }; then
21108 echo "$as_me:$LINENO: result: yes" >&5
21109echo "${ECHO_T}yes" >&6
21110else
21111 echo "$as_me: failed program was:" >&5
21112sed 's/^/| /' conftest.$ac_ext >&5
21113
21114echo "$as_me:$LINENO: result: no" >&5
21115echo "${ECHO_T}no" >&6
21116 { { echo "$as_me:$LINENO: error: Basic STL functionality missing" >&5
21117echo "$as_me: error: Basic STL functionality missing" >&2;}
21118 { (exit 1); exit 1; }; }
21119fi
ac1cb8d3 21120rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21121
21122 echo "$as_me:$LINENO: checking for std::wstring in <string>" >&5
21123echo $ECHO_N "checking for std::wstring in <string>... $ECHO_C" >&6
21124 cat >conftest.$ac_ext <<_ACEOF
21125/* confdefs.h. */
21126_ACEOF
21127cat confdefs.h >>conftest.$ac_ext
21128cat >>conftest.$ac_ext <<_ACEOF
21129/* end confdefs.h. */
21130#include <string>
21131int
21132main ()
21133{
21134std::wstring foo;
21135 ;
21136 return 0;
21137}
21138_ACEOF
21139rm -f conftest.$ac_objext
21140if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21141 (eval $ac_compile) 2>conftest.er1
a848cd7e 21142 ac_status=$?
ac1cb8d3
VS
21143 grep -v '^ *+' conftest.er1 >conftest.err
21144 rm -f conftest.er1
21145 cat conftest.err >&5
a848cd7e
SC
21146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21147 (exit $ac_status); } &&
07158944 21148 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21150 (eval $ac_try) 2>&5
21151 ac_status=$?
21152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21153 (exit $ac_status); }; } &&
21154 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21156 (eval $ac_try) 2>&5
21157 ac_status=$?
21158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21159 (exit $ac_status); }; }; then
21160 echo "$as_me:$LINENO: result: yes" >&5
21161echo "${ECHO_T}yes" >&6
21162 cat >>confdefs.h <<\_ACEOF
21163#define HAVE_STD_WSTRING 1
21164_ACEOF
21165
21166else
21167 echo "$as_me: failed program was:" >&5
21168sed 's/^/| /' conftest.$ac_ext >&5
21169
21170echo "$as_me:$LINENO: result: no" >&5
21171echo "${ECHO_T}no" >&6
21172fi
ac1cb8d3 21173rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21174
21175 echo "$as_me:$LINENO: checking for compliant std::string::compare" >&5
21176echo $ECHO_N "checking for compliant std::string::compare... $ECHO_C" >&6
21177 cat >conftest.$ac_ext <<_ACEOF
21178/* confdefs.h. */
21179_ACEOF
21180cat confdefs.h >>conftest.$ac_ext
21181cat >>conftest.$ac_ext <<_ACEOF
21182/* end confdefs.h. */
21183#include <string>
21184int
21185main ()
21186{
21187std::string foo, bar;
21188 foo.compare(bar);
21189 foo.compare(1, 1, bar);
21190 foo.compare(1, 1, bar, 1, 1);
21191 foo.compare("");
21192 foo.compare(1, 1, "");
21193 foo.compare(1, 1, "", 2);
21194 ;
21195 return 0;
21196}
21197_ACEOF
21198rm -f conftest.$ac_objext
21199if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21200 (eval $ac_compile) 2>conftest.er1
a848cd7e 21201 ac_status=$?
ac1cb8d3
VS
21202 grep -v '^ *+' conftest.er1 >conftest.err
21203 rm -f conftest.er1
21204 cat conftest.err >&5
a848cd7e
SC
21205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21206 (exit $ac_status); } &&
07158944 21207 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21209 (eval $ac_try) 2>&5
21210 ac_status=$?
21211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21212 (exit $ac_status); }; } &&
21213 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21215 (eval $ac_try) 2>&5
21216 ac_status=$?
21217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21218 (exit $ac_status); }; }; then
21219 echo "$as_me:$LINENO: result: yes" >&5
21220echo "${ECHO_T}yes" >&6
21221 cat >>confdefs.h <<\_ACEOF
21222#define HAVE_STD_STRING_COMPARE 1
21223_ACEOF
21224
21225else
21226 echo "$as_me: failed program was:" >&5
21227sed 's/^/| /' conftest.$ac_ext >&5
21228
21229echo "$as_me:$LINENO: result: no" >&5
21230echo "${ECHO_T}no" >&6
21231fi
ac1cb8d3 21232rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
21233
21234 if test "${ac_cv_header_hash_map+set}" = set; then
21235 echo "$as_me:$LINENO: checking for hash_map" >&5
21236echo $ECHO_N "checking for hash_map... $ECHO_C" >&6
21237if test "${ac_cv_header_hash_map+set}" = set; then
21238 echo $ECHO_N "(cached) $ECHO_C" >&6
21239fi
21240echo "$as_me:$LINENO: result: $ac_cv_header_hash_map" >&5
21241echo "${ECHO_T}$ac_cv_header_hash_map" >&6
21242else
21243 # Is the header compilable?
21244echo "$as_me:$LINENO: checking hash_map usability" >&5
21245echo $ECHO_N "checking hash_map usability... $ECHO_C" >&6
21246cat >conftest.$ac_ext <<_ACEOF
21247/* confdefs.h. */
21248_ACEOF
21249cat confdefs.h >>conftest.$ac_ext
21250cat >>conftest.$ac_ext <<_ACEOF
21251/* end confdefs.h. */
21252$ac_includes_default
21253#include <hash_map>
21254_ACEOF
21255rm -f conftest.$ac_objext
21256if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21257 (eval $ac_compile) 2>conftest.er1
bdcade0a 21258 ac_status=$?
ac1cb8d3
VS
21259 grep -v '^ *+' conftest.er1 >conftest.err
21260 rm -f conftest.er1
21261 cat conftest.err >&5
bdcade0a
MB
21262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21263 (exit $ac_status); } &&
07158944 21264 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21266 (eval $ac_try) 2>&5
21267 ac_status=$?
21268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21269 (exit $ac_status); }; } &&
21270 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
21271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21272 (eval $ac_try) 2>&5
21273 ac_status=$?
21274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21275 (exit $ac_status); }; }; then
21276 ac_header_compiler=yes
21277else
21278 echo "$as_me: failed program was:" >&5
21279sed 's/^/| /' conftest.$ac_ext >&5
21280
21281ac_header_compiler=no
21282fi
ac1cb8d3 21283rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
21284echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21285echo "${ECHO_T}$ac_header_compiler" >&6
21286
21287# Is the header present?
21288echo "$as_me:$LINENO: checking hash_map presence" >&5
21289echo $ECHO_N "checking hash_map presence... $ECHO_C" >&6
21290cat >conftest.$ac_ext <<_ACEOF
21291/* confdefs.h. */
21292_ACEOF
21293cat confdefs.h >>conftest.$ac_ext
21294cat >>conftest.$ac_ext <<_ACEOF
21295/* end confdefs.h. */
21296#include <hash_map>
21297_ACEOF
21298if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21299 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21300 ac_status=$?
21301 grep -v '^ *+' conftest.er1 >conftest.err
21302 rm -f conftest.er1
21303 cat conftest.err >&5
21304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21305 (exit $ac_status); } >/dev/null; then
21306 if test -s conftest.err; then
21307 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 21308 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
bdcade0a
MB
21309 else
21310 ac_cpp_err=
21311 fi
21312else
21313 ac_cpp_err=yes
21314fi
21315if test -z "$ac_cpp_err"; then
21316 ac_header_preproc=yes
21317else
21318 echo "$as_me: failed program was:" >&5
21319sed 's/^/| /' conftest.$ac_ext >&5
21320
21321 ac_header_preproc=no
21322fi
21323rm -f conftest.err conftest.$ac_ext
21324echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21325echo "${ECHO_T}$ac_header_preproc" >&6
21326
21327# So? What about this header?
ac1cb8d3
VS
21328case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
21329 yes:no: )
bdcade0a
MB
21330 { echo "$as_me:$LINENO: WARNING: hash_map: accepted by the compiler, rejected by the preprocessor!" >&5
21331echo "$as_me: WARNING: hash_map: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
21332 { echo "$as_me:$LINENO: WARNING: hash_map: proceeding with the compiler's result" >&5
21333echo "$as_me: WARNING: hash_map: proceeding with the compiler's result" >&2;}
21334 ac_header_preproc=yes
bdcade0a 21335 ;;
ac1cb8d3 21336 no:yes:* )
bdcade0a
MB
21337 { echo "$as_me:$LINENO: WARNING: hash_map: present but cannot be compiled" >&5
21338echo "$as_me: WARNING: hash_map: present but cannot be compiled" >&2;}
ac1cb8d3
VS
21339 { echo "$as_me:$LINENO: WARNING: hash_map: check for missing prerequisite headers?" >&5
21340echo "$as_me: WARNING: hash_map: check for missing prerequisite headers?" >&2;}
21341 { echo "$as_me:$LINENO: WARNING: hash_map: see the Autoconf documentation" >&5
21342echo "$as_me: WARNING: hash_map: see the Autoconf documentation" >&2;}
21343 { echo "$as_me:$LINENO: WARNING: hash_map: section \"Present But Cannot Be Compiled\"" >&5
21344echo "$as_me: WARNING: hash_map: section \"Present But Cannot Be Compiled\"" >&2;}
bdcade0a
MB
21345 { echo "$as_me:$LINENO: WARNING: hash_map: proceeding with the preprocessor's result" >&5
21346echo "$as_me: WARNING: hash_map: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
21347 { echo "$as_me:$LINENO: WARNING: hash_map: in the future, the compiler will take precedence" >&5
21348echo "$as_me: WARNING: hash_map: in the future, the compiler will take precedence" >&2;}
bdcade0a
MB
21349 (
21350 cat <<\_ASBOX
ac1cb8d3
VS
21351## ----------------------------------------- ##
21352## Report this to wx-dev@lists.wxwidgets.org ##
21353## ----------------------------------------- ##
bdcade0a
MB
21354_ASBOX
21355 ) |
21356 sed "s/^/$as_me: WARNING: /" >&2
21357 ;;
21358esac
21359echo "$as_me:$LINENO: checking for hash_map" >&5
21360echo $ECHO_N "checking for hash_map... $ECHO_C" >&6
21361if test "${ac_cv_header_hash_map+set}" = set; then
21362 echo $ECHO_N "(cached) $ECHO_C" >&6
21363else
21364 ac_cv_header_hash_map=$ac_header_preproc
21365fi
21366echo "$as_me:$LINENO: result: $ac_cv_header_hash_map" >&5
21367echo "${ECHO_T}$ac_cv_header_hash_map" >&6
21368
21369fi
21370if test $ac_cv_header_hash_map = yes; then
21371 echo "$as_me:$LINENO: checking for hash_map and hash_set" >&5
21372echo $ECHO_N "checking for hash_map and hash_set... $ECHO_C" >&6
21373 cat >conftest.$ac_ext <<_ACEOF
21374/* confdefs.h. */
21375_ACEOF
21376cat confdefs.h >>conftest.$ac_ext
21377cat >>conftest.$ac_ext <<_ACEOF
21378/* end confdefs.h. */
21379#include <hash_map>
21380 #include <hash_set>
21381int
21382main ()
21383{
21384std::hash_map<double*, char*, std::hash<double*>, std::equal_to<double*> > test1;
21385 std::hash_set<char*, std::hash<char*>, std::equal_to<char*> > test2;
21386 ;
21387 return 0;
21388}
21389_ACEOF
21390rm -f conftest.$ac_objext
21391if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21392 (eval $ac_compile) 2>conftest.er1
bdcade0a 21393 ac_status=$?
ac1cb8d3
VS
21394 grep -v '^ *+' conftest.er1 >conftest.err
21395 rm -f conftest.er1
21396 cat conftest.err >&5
bdcade0a
MB
21397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21398 (exit $ac_status); } &&
07158944 21399 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21401 (eval $ac_try) 2>&5
21402 ac_status=$?
21403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21404 (exit $ac_status); }; } &&
21405 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
21406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21407 (eval $ac_try) 2>&5
21408 ac_status=$?
21409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21410 (exit $ac_status); }; }; then
21411 echo "$as_me:$LINENO: result: yes" >&5
21412echo "${ECHO_T}yes" >&6
21413 cat >>confdefs.h <<\_ACEOF
21414#define HAVE_HASH_MAP 1
21415_ACEOF
21416
21417 cat >>confdefs.h <<\_ACEOF
21418#define HAVE_STD_HASH_MAP 1
21419_ACEOF
21420
21421else
21422 echo "$as_me: failed program was:" >&5
21423sed 's/^/| /' conftest.$ac_ext >&5
21424
21425echo "$as_me:$LINENO: result: no" >&5
21426echo "${ECHO_T}no" >&6
21427fi
ac1cb8d3 21428rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
21429
21430fi
21431
21432
21433
21434 if test "${ac_cv_header_ext_hash_map+set}" = set; then
21435 echo "$as_me:$LINENO: checking for ext/hash_map" >&5
21436echo $ECHO_N "checking for ext/hash_map... $ECHO_C" >&6
21437if test "${ac_cv_header_ext_hash_map+set}" = set; then
21438 echo $ECHO_N "(cached) $ECHO_C" >&6
21439fi
21440echo "$as_me:$LINENO: result: $ac_cv_header_ext_hash_map" >&5
21441echo "${ECHO_T}$ac_cv_header_ext_hash_map" >&6
21442else
21443 # Is the header compilable?
21444echo "$as_me:$LINENO: checking ext/hash_map usability" >&5
21445echo $ECHO_N "checking ext/hash_map usability... $ECHO_C" >&6
21446cat >conftest.$ac_ext <<_ACEOF
21447/* confdefs.h. */
21448_ACEOF
21449cat confdefs.h >>conftest.$ac_ext
21450cat >>conftest.$ac_ext <<_ACEOF
21451/* end confdefs.h. */
21452$ac_includes_default
21453#include <ext/hash_map>
21454_ACEOF
21455rm -f conftest.$ac_objext
21456if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21457 (eval $ac_compile) 2>conftest.er1
bdcade0a 21458 ac_status=$?
ac1cb8d3
VS
21459 grep -v '^ *+' conftest.er1 >conftest.err
21460 rm -f conftest.er1
21461 cat conftest.err >&5
bdcade0a
MB
21462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21463 (exit $ac_status); } &&
07158944 21464 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21466 (eval $ac_try) 2>&5
21467 ac_status=$?
21468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21469 (exit $ac_status); }; } &&
21470 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
21471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21472 (eval $ac_try) 2>&5
21473 ac_status=$?
21474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21475 (exit $ac_status); }; }; then
21476 ac_header_compiler=yes
21477else
21478 echo "$as_me: failed program was:" >&5
21479sed 's/^/| /' conftest.$ac_ext >&5
21480
21481ac_header_compiler=no
21482fi
ac1cb8d3 21483rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
21484echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21485echo "${ECHO_T}$ac_header_compiler" >&6
21486
21487# Is the header present?
21488echo "$as_me:$LINENO: checking ext/hash_map presence" >&5
21489echo $ECHO_N "checking ext/hash_map presence... $ECHO_C" >&6
21490cat >conftest.$ac_ext <<_ACEOF
21491/* confdefs.h. */
21492_ACEOF
21493cat confdefs.h >>conftest.$ac_ext
21494cat >>conftest.$ac_ext <<_ACEOF
21495/* end confdefs.h. */
21496#include <ext/hash_map>
21497_ACEOF
21498if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21499 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21500 ac_status=$?
21501 grep -v '^ *+' conftest.er1 >conftest.err
21502 rm -f conftest.er1
21503 cat conftest.err >&5
21504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21505 (exit $ac_status); } >/dev/null; then
21506 if test -s conftest.err; then
21507 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 21508 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
bdcade0a
MB
21509 else
21510 ac_cpp_err=
21511 fi
21512else
21513 ac_cpp_err=yes
21514fi
21515if test -z "$ac_cpp_err"; then
21516 ac_header_preproc=yes
21517else
21518 echo "$as_me: failed program was:" >&5
21519sed 's/^/| /' conftest.$ac_ext >&5
21520
21521 ac_header_preproc=no
21522fi
21523rm -f conftest.err conftest.$ac_ext
21524echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21525echo "${ECHO_T}$ac_header_preproc" >&6
21526
21527# So? What about this header?
ac1cb8d3
VS
21528case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
21529 yes:no: )
bdcade0a
MB
21530 { echo "$as_me:$LINENO: WARNING: ext/hash_map: accepted by the compiler, rejected by the preprocessor!" >&5
21531echo "$as_me: WARNING: ext/hash_map: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
21532 { echo "$as_me:$LINENO: WARNING: ext/hash_map: proceeding with the compiler's result" >&5
21533echo "$as_me: WARNING: ext/hash_map: proceeding with the compiler's result" >&2;}
21534 ac_header_preproc=yes
bdcade0a 21535 ;;
ac1cb8d3 21536 no:yes:* )
bdcade0a
MB
21537 { echo "$as_me:$LINENO: WARNING: ext/hash_map: present but cannot be compiled" >&5
21538echo "$as_me: WARNING: ext/hash_map: present but cannot be compiled" >&2;}
ac1cb8d3
VS
21539 { echo "$as_me:$LINENO: WARNING: ext/hash_map: check for missing prerequisite headers?" >&5
21540echo "$as_me: WARNING: ext/hash_map: check for missing prerequisite headers?" >&2;}
21541 { echo "$as_me:$LINENO: WARNING: ext/hash_map: see the Autoconf documentation" >&5
21542echo "$as_me: WARNING: ext/hash_map: see the Autoconf documentation" >&2;}
21543 { echo "$as_me:$LINENO: WARNING: ext/hash_map: section \"Present But Cannot Be Compiled\"" >&5
21544echo "$as_me: WARNING: ext/hash_map: section \"Present But Cannot Be Compiled\"" >&2;}
bdcade0a
MB
21545 { echo "$as_me:$LINENO: WARNING: ext/hash_map: proceeding with the preprocessor's result" >&5
21546echo "$as_me: WARNING: ext/hash_map: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
21547 { echo "$as_me:$LINENO: WARNING: ext/hash_map: in the future, the compiler will take precedence" >&5
21548echo "$as_me: WARNING: ext/hash_map: in the future, the compiler will take precedence" >&2;}
bdcade0a
MB
21549 (
21550 cat <<\_ASBOX
ac1cb8d3
VS
21551## ----------------------------------------- ##
21552## Report this to wx-dev@lists.wxwidgets.org ##
21553## ----------------------------------------- ##
bdcade0a
MB
21554_ASBOX
21555 ) |
21556 sed "s/^/$as_me: WARNING: /" >&2
21557 ;;
21558esac
21559echo "$as_me:$LINENO: checking for ext/hash_map" >&5
21560echo $ECHO_N "checking for ext/hash_map... $ECHO_C" >&6
21561if test "${ac_cv_header_ext_hash_map+set}" = set; then
21562 echo $ECHO_N "(cached) $ECHO_C" >&6
21563else
21564 ac_cv_header_ext_hash_map=$ac_header_preproc
21565fi
21566echo "$as_me:$LINENO: result: $ac_cv_header_ext_hash_map" >&5
21567echo "${ECHO_T}$ac_cv_header_ext_hash_map" >&6
21568
21569fi
21570if test $ac_cv_header_ext_hash_map = yes; then
21571 echo "$as_me:$LINENO: checking for hash_map and hash_set" >&5
21572echo $ECHO_N "checking for hash_map and hash_set... $ECHO_C" >&6
21573 cat >conftest.$ac_ext <<_ACEOF
21574/* confdefs.h. */
21575_ACEOF
21576cat confdefs.h >>conftest.$ac_ext
21577cat >>conftest.$ac_ext <<_ACEOF
21578/* end confdefs.h. */
21579#include <ext/hash_map>
21580 #include <ext/hash_set>
21581int
21582main ()
21583{
21584__gnu_cxx::hash_map<double*, char*, __gnu_cxx::hash<double*>, std::equal_to<double*> > test1;
21585 __gnu_cxx::hash_set<char*, __gnu_cxx::hash<char*>, std::equal_to<char*> > test2;
21586 ;
21587 return 0;
21588}
21589_ACEOF
21590rm -f conftest.$ac_objext
21591if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21592 (eval $ac_compile) 2>conftest.er1
bdcade0a 21593 ac_status=$?
ac1cb8d3
VS
21594 grep -v '^ *+' conftest.er1 >conftest.err
21595 rm -f conftest.er1
21596 cat conftest.err >&5
bdcade0a
MB
21597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21598 (exit $ac_status); } &&
07158944 21599 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21601 (eval $ac_try) 2>&5
21602 ac_status=$?
21603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21604 (exit $ac_status); }; } &&
21605 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
21606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21607 (eval $ac_try) 2>&5
21608 ac_status=$?
21609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21610 (exit $ac_status); }; }; then
21611 echo "$as_me:$LINENO: result: yes" >&5
21612echo "${ECHO_T}yes" >&6
21613 cat >>confdefs.h <<\_ACEOF
21614#define HAVE_EXT_HASH_MAP 1
21615_ACEOF
21616
21617 cat >>confdefs.h <<\_ACEOF
21618#define HAVE_GNU_CXX_HASH_MAP 1
21619_ACEOF
21620
21621else
21622 echo "$as_me: failed program was:" >&5
21623sed 's/^/| /' conftest.$ac_ext >&5
21624
21625echo "$as_me:$LINENO: result: no" >&5
21626echo "${ECHO_T}no" >&6
21627fi
ac1cb8d3 21628rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
21629
21630fi
21631
21632
a848cd7e
SC
21633
21634 ac_ext=c
21635ac_cpp='$CPP $CPPFLAGS'
21636ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21637ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21638ac_compiler_gnu=$ac_cv_c_compiler_gnu
21639
21640fi
21641
21642
21643SEARCH_INCLUDE="\
21644 /usr/local/include \
21645 \
21646 /usr/Motif-2.1/include \
21647 /usr/Motif-1.2/include \
21648 /usr/include/Motif1.2 \
21649 /opt/xpm/include/X11 \
21650 /opt/GBxpm/include/ \
21651 /opt/GBxpm/X11/include/ \
21652 \
21653 /usr/dt/include \
21654 /usr/openwin/include \
21655 \
21656 /usr/include/Xm \
21657 \
21658 /usr/X11R6/include \
21659 /usr/X11R6.4/include \
21660 /usr/X11R5/include \
21661 /usr/X11R4/include \
21662 \
21663 /usr/include/X11R6 \
21664 /usr/include/X11R5 \
21665 /usr/include/X11R4 \
21666 \
21667 /usr/local/X11R6/include \
21668 /usr/local/X11R5/include \
21669 /usr/local/X11R4/include \
21670 \
21671 /usr/local/include/X11R6 \
21672 /usr/local/include/X11R5 \
21673 /usr/local/include/X11R4 \
21674 \
21675 /usr/X11/include \
21676 /usr/include/X11 \
21677 /usr/local/X11/include \
21678 /usr/local/include/X11 \
21679 \
21680 /usr/X386/include \
21681 /usr/x386/include \
21682 /usr/XFree86/include/X11 \
21683 \
21684 X:/XFree86/include \
21685 X:/XFree86/include/X11 \
21686 \
21687 /usr/include/gtk \
21688 /usr/local/include/gtk \
21689 /usr/include/glib \
21690 /usr/local/include/glib \
21691 \
21692 /usr/include/qt \
21693 /usr/local/include/qt \
21694 \
21695 /usr/local/arm/3.3.2/include \
21696 \
21697 /usr/include/windows \
21698 /usr/include/wine \
21699 /usr/local/include/wine \
21700 \
21701 /usr/unsupported/include \
21702 /usr/athena/include \
21703 /usr/local/x11r5/include \
21704 /usr/lpp/Xamples/include \
21705 \
21706 /usr/openwin/share/include"
21707
07158944 21708SEARCH_LIB="/usr/lib /usr/lib32 /usr/lib64 /usr/X11R6/lib64 `echo "$SEARCH_INCLUDE" | sed s/include/lib/g`"
a848cd7e
SC
21709
21710
21711cat >confcache <<\_ACEOF
21712# This file is a shell script that caches the results of configure
21713# tests run on this system so they can be shared between configure
21714# scripts and configure runs, see configure's option --config-cache.
21715# It is not useful on other systems. If it contains results you don't
21716# want to keep, you may remove or edit it.
21717#
21718# config.status only pays attention to the cache file if you give it
21719# the --recheck option to rerun configure.
21720#
21721# `ac_cv_env_foo' variables (set or unset) will be overridden when
21722# loading this file, other *unset* `ac_cv_foo' will be assigned the
21723# following values.
21724
21725_ACEOF
21726
21727# The following way of writing the cache mishandles newlines in values,
21728# but we know of no workaround that is simple, portable, and efficient.
21729# So, don't put newlines in cache variables' values.
21730# Ultrix sh set writes to stderr and can't be redirected directly,
21731# and sets the high bit in the cache file unless we assign to the vars.
21732{
21733 (set) 2>&1 |
21734 case `(ac_space=' '; set | grep ac_space) 2>&1` in
21735 *ac_space=\ *)
21736 # `set' does not quote correctly, so add quotes (double-quote
21737 # substitution turns \\\\ into \\, and sed turns \\ into \).
21738 sed -n \
ac1cb8d3
VS
21739 "s/'/'\\\\''/g;
21740 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a848cd7e
SC
21741 ;;
21742 *)
21743 # `set' quotes correctly as required by POSIX, so do not add quotes.
21744 sed -n \
ac1cb8d3 21745 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
21746 ;;
21747 esac;
21748} |
21749 sed '
21750 t clear
21751 : clear
21752 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21753 t end
21754 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21755 : end' >>confcache
21756if diff $cache_file confcache >/dev/null 2>&1; then :; else
21757 if test -w $cache_file; then
21758 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
21759 cat confcache >$cache_file
21760 else
21761 echo "not updating unwritable cache $cache_file"
21762 fi
21763fi
21764rm -f confcache
21765
21766if test "$USE_LINUX" = 1 -o "$USE_GNU" = 1; then
21767 echo "$as_me:$LINENO: checking for glibc 2.1 or later" >&5
21768echo $ECHO_N "checking for glibc 2.1 or later... $ECHO_C" >&6
21769if test "${wx_cv_lib_glibc21+set}" = set; then
21770 echo $ECHO_N "(cached) $ECHO_C" >&6
21771else
21772
21773 cat >conftest.$ac_ext <<_ACEOF
21774/* confdefs.h. */
21775_ACEOF
21776cat confdefs.h >>conftest.$ac_ext
21777cat >>conftest.$ac_ext <<_ACEOF
21778/* end confdefs.h. */
21779#include <features.h>
21780int
21781main ()
21782{
21783
21784 #if (__GLIBC__ < 2) || (__GLIBC_MINOR__ < 1)
21785 #error not glibc2.1
21786 #endif
21787
21788 ;
21789 return 0;
21790}
21791_ACEOF
21792rm -f conftest.$ac_objext
21793if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21794 (eval $ac_compile) 2>conftest.er1
a848cd7e 21795 ac_status=$?
ac1cb8d3
VS
21796 grep -v '^ *+' conftest.er1 >conftest.err
21797 rm -f conftest.er1
21798 cat conftest.err >&5
a848cd7e
SC
21799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21800 (exit $ac_status); } &&
07158944 21801 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21803 (eval $ac_try) 2>&5
21804 ac_status=$?
21805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21806 (exit $ac_status); }; } &&
21807 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21809 (eval $ac_try) 2>&5
21810 ac_status=$?
21811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21812 (exit $ac_status); }; }; then
21813
21814 wx_cv_lib_glibc21=yes
21815
21816else
21817 echo "$as_me: failed program was:" >&5
21818sed 's/^/| /' conftest.$ac_ext >&5
21819
21820
21821 wx_cv_lib_glibc21=no
21822
21823
21824fi
ac1cb8d3 21825rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21826
21827fi
21828echo "$as_me:$LINENO: result: $wx_cv_lib_glibc21" >&5
21829echo "${ECHO_T}$wx_cv_lib_glibc21" >&6
21830 if test "$wx_cv_lib_glibc21" = "yes"; then
21831 cat >>confdefs.h <<\_ACEOF
21832#define wxHAVE_GLIBC2 1
21833_ACEOF
21834
21835 fi
21836fi
21837
21838if test "x$wx_cv_lib_glibc21" = "xyes"; then
21839 if test "$wxUSE_UNICODE" = "yes" -o "$wxUSE_THREADS" = "yes"; then
21840 cat >>confdefs.h <<\_ACEOF
21841#define _GNU_SOURCE 1
21842_ACEOF
21843
21844 fi
21845fi
21846
21847
21848
21849if test "$wxUSE_REGEX" != "no"; then
21850 cat >>confdefs.h <<\_ACEOF
21851#define wxUSE_REGEX 1
21852_ACEOF
21853
21854
21855 if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_REGEX" = "yes"; then
21856 { echo "$as_me:$LINENO: WARNING: Defaulting to the the builtin regex library for Unicode build." >&5
21857echo "$as_me: WARNING: Defaulting to the the builtin regex library for Unicode build." >&2;}
21858 wxUSE_REGEX=builtin
21859 fi
21860
21861 if test "$wxUSE_REGEX" = "sys" -o "$wxUSE_REGEX" = "yes" ; then
21862 if test "${ac_cv_header_regex_h+set}" = set; then
21863 echo "$as_me:$LINENO: checking for regex.h" >&5
21864echo $ECHO_N "checking for regex.h... $ECHO_C" >&6
21865if test "${ac_cv_header_regex_h+set}" = set; then
21866 echo $ECHO_N "(cached) $ECHO_C" >&6
21867fi
21868echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
21869echo "${ECHO_T}$ac_cv_header_regex_h" >&6
21870else
21871 # Is the header compilable?
21872echo "$as_me:$LINENO: checking regex.h usability" >&5
21873echo $ECHO_N "checking regex.h usability... $ECHO_C" >&6
21874cat >conftest.$ac_ext <<_ACEOF
21875/* confdefs.h. */
21876_ACEOF
21877cat confdefs.h >>conftest.$ac_ext
21878cat >>conftest.$ac_ext <<_ACEOF
21879/* end confdefs.h. */
21880$ac_includes_default
21881#include <regex.h>
21882_ACEOF
21883rm -f conftest.$ac_objext
21884if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21885 (eval $ac_compile) 2>conftest.er1
a848cd7e 21886 ac_status=$?
ac1cb8d3
VS
21887 grep -v '^ *+' conftest.er1 >conftest.err
21888 rm -f conftest.er1
21889 cat conftest.err >&5
a848cd7e
SC
21890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21891 (exit $ac_status); } &&
07158944 21892 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21894 (eval $ac_try) 2>&5
21895 ac_status=$?
21896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21897 (exit $ac_status); }; } &&
21898 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21900 (eval $ac_try) 2>&5
21901 ac_status=$?
21902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21903 (exit $ac_status); }; }; then
21904 ac_header_compiler=yes
21905else
21906 echo "$as_me: failed program was:" >&5
21907sed 's/^/| /' conftest.$ac_ext >&5
21908
21909ac_header_compiler=no
21910fi
ac1cb8d3 21911rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21912echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21913echo "${ECHO_T}$ac_header_compiler" >&6
21914
21915# Is the header present?
21916echo "$as_me:$LINENO: checking regex.h presence" >&5
21917echo $ECHO_N "checking regex.h presence... $ECHO_C" >&6
21918cat >conftest.$ac_ext <<_ACEOF
21919/* confdefs.h. */
21920_ACEOF
21921cat confdefs.h >>conftest.$ac_ext
21922cat >>conftest.$ac_ext <<_ACEOF
21923/* end confdefs.h. */
21924#include <regex.h>
21925_ACEOF
21926if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21927 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21928 ac_status=$?
21929 grep -v '^ *+' conftest.er1 >conftest.err
21930 rm -f conftest.er1
21931 cat conftest.err >&5
21932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21933 (exit $ac_status); } >/dev/null; then
21934 if test -s conftest.err; then
21935 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 21936 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
21937 else
21938 ac_cpp_err=
21939 fi
21940else
21941 ac_cpp_err=yes
21942fi
21943if test -z "$ac_cpp_err"; then
21944 ac_header_preproc=yes
21945else
21946 echo "$as_me: failed program was:" >&5
21947sed 's/^/| /' conftest.$ac_ext >&5
21948
21949 ac_header_preproc=no
21950fi
21951rm -f conftest.err conftest.$ac_ext
21952echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21953echo "${ECHO_T}$ac_header_preproc" >&6
21954
21955# So? What about this header?
ac1cb8d3
VS
21956case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21957 yes:no: )
a848cd7e
SC
21958 { echo "$as_me:$LINENO: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&5
21959echo "$as_me: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
21960 { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the compiler's result" >&5
21961echo "$as_me: WARNING: regex.h: proceeding with the compiler's result" >&2;}
21962 ac_header_preproc=yes
a848cd7e 21963 ;;
ac1cb8d3 21964 no:yes:* )
a848cd7e
SC
21965 { echo "$as_me:$LINENO: WARNING: regex.h: present but cannot be compiled" >&5
21966echo "$as_me: WARNING: regex.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
21967 { echo "$as_me:$LINENO: WARNING: regex.h: check for missing prerequisite headers?" >&5
21968echo "$as_me: WARNING: regex.h: check for missing prerequisite headers?" >&2;}
21969 { echo "$as_me:$LINENO: WARNING: regex.h: see the Autoconf documentation" >&5
21970echo "$as_me: WARNING: regex.h: see the Autoconf documentation" >&2;}
21971 { echo "$as_me:$LINENO: WARNING: regex.h: section \"Present But Cannot Be Compiled\"" >&5
21972echo "$as_me: WARNING: regex.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
21973 { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the preprocessor's result" >&5
21974echo "$as_me: WARNING: regex.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
21975 { echo "$as_me:$LINENO: WARNING: regex.h: in the future, the compiler will take precedence" >&5
21976echo "$as_me: WARNING: regex.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
21977 (
21978 cat <<\_ASBOX
ac1cb8d3
VS
21979## ----------------------------------------- ##
21980## Report this to wx-dev@lists.wxwidgets.org ##
21981## ----------------------------------------- ##
a848cd7e
SC
21982_ASBOX
21983 ) |
21984 sed "s/^/$as_me: WARNING: /" >&2
21985 ;;
21986esac
21987echo "$as_me:$LINENO: checking for regex.h" >&5
21988echo $ECHO_N "checking for regex.h... $ECHO_C" >&6
21989if test "${ac_cv_header_regex_h+set}" = set; then
21990 echo $ECHO_N "(cached) $ECHO_C" >&6
21991else
21992 ac_cv_header_regex_h=$ac_header_preproc
21993fi
21994echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
21995echo "${ECHO_T}$ac_cv_header_regex_h" >&6
21996
21997fi
21998if test $ac_cv_header_regex_h = yes; then
21999
22000for ac_func in regcomp
22001do
22002as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22003echo "$as_me:$LINENO: checking for $ac_func" >&5
22004echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22005if eval "test \"\${$as_ac_var+set}\" = set"; then
22006 echo $ECHO_N "(cached) $ECHO_C" >&6
22007else
22008 cat >conftest.$ac_ext <<_ACEOF
22009/* confdefs.h. */
22010_ACEOF
22011cat confdefs.h >>conftest.$ac_ext
22012cat >>conftest.$ac_ext <<_ACEOF
22013/* end confdefs.h. */
ac1cb8d3
VS
22014/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22015 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22016#define $ac_func innocuous_$ac_func
22017
a848cd7e
SC
22018/* System header to define __stub macros and hopefully few prototypes,
22019 which can conflict with char $ac_func (); below.
22020 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22021 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 22022
a848cd7e
SC
22023#ifdef __STDC__
22024# include <limits.h>
22025#else
22026# include <assert.h>
22027#endif
ac1cb8d3
VS
22028
22029#undef $ac_func
22030
a848cd7e
SC
22031/* Override any gcc2 internal prototype to avoid an error. */
22032#ifdef __cplusplus
22033extern "C"
22034{
22035#endif
22036/* We use char because int might match the return type of a gcc2
22037 builtin and then its argument prototype would still apply. */
22038char $ac_func ();
22039/* The GNU C library defines this for functions which it implements
22040 to always fail with ENOSYS. Some functions are actually named
22041 something starting with __ and the normal name is an alias. */
22042#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22043choke me
22044#else
22045char (*f) () = $ac_func;
22046#endif
22047#ifdef __cplusplus
22048}
22049#endif
22050
22051int
22052main ()
22053{
22054return f != $ac_func;
22055 ;
22056 return 0;
22057}
22058_ACEOF
22059rm -f conftest.$ac_objext conftest$ac_exeext
22060if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 22061 (eval $ac_link) 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); } &&
07158944 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_exeext'
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 eval "$as_ac_var=yes"
22081else
22082 echo "$as_me: failed program was:" >&5
22083sed 's/^/| /' conftest.$ac_ext >&5
22084
22085eval "$as_ac_var=no"
22086fi
ac1cb8d3
VS
22087rm -f conftest.err conftest.$ac_objext \
22088 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
22089fi
22090echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22091echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22092if test `eval echo '${'$as_ac_var'}'` = yes; then
22093 cat >>confdefs.h <<_ACEOF
22094#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22095_ACEOF
22096
22097fi
22098done
22099
22100fi
22101
22102
22103
22104 if test "x$ac_cv_func_regcomp" != "xyes"; then
22105 if test "$wxUSE_REGEX" = "sys" ; then
22106 { { echo "$as_me:$LINENO: error: system regex library not found! Use --with-regex to use built-in version" >&5
22107echo "$as_me: error: system regex library not found! Use --with-regex to use built-in version" >&2;}
22108 { (exit 1); exit 1; }; }
22109 else
22110 { echo "$as_me:$LINENO: WARNING: system regex library not found, will use built-in instead" >&5
22111echo "$as_me: WARNING: system regex library not found, will use built-in instead" >&2;}
22112 wxUSE_REGEX=builtin
22113 fi
22114 else
22115 wxUSE_REGEX=sys
22116 cat >>confdefs.h <<\_ACEOF
22117#define WX_NO_REGEX_ADVANCED 1
22118_ACEOF
22119
22120 fi
22121 fi
22122fi
22123
22124
22125ZLIB_LINK=
22126if test "$wxUSE_ZLIB" != "no" ; then
22127 cat >>confdefs.h <<\_ACEOF
22128#define wxUSE_ZLIB 1
22129_ACEOF
22130
22131
22132 if test "$wxUSE_ZLIB" = "sys" -o "$wxUSE_ZLIB" = "yes" ; then
22133 if test "$USE_DARWIN" = 1; then
22134 system_zlib_h_ok="yes"
22135 else
22136 echo "$as_me:$LINENO: checking for zlib.h >= 1.1.4" >&5
22137echo $ECHO_N "checking for zlib.h >= 1.1.4... $ECHO_C" >&6
22138if test "${ac_cv_header_zlib_h+set}" = set; then
22139 echo $ECHO_N "(cached) $ECHO_C" >&6
22140else
22141 if test "$cross_compiling" = yes; then
22142 unset ac_cv_header_zlib_h
22143
22144else
22145 cat >conftest.$ac_ext <<_ACEOF
22146/* confdefs.h. */
22147_ACEOF
22148cat confdefs.h >>conftest.$ac_ext
22149cat >>conftest.$ac_ext <<_ACEOF
22150/* end confdefs.h. */
22151
22152 #include <zlib.h>
22153 #include <stdio.h>
22154
22155 int main()
22156 {
22157 FILE *f=fopen("conftestval", "w");
22158 if (!f) exit(1);
22159 fprintf(f, "%s",
22160 ZLIB_VERSION[0] == '1' &&
22161 (ZLIB_VERSION[2] > '1' ||
22162 (ZLIB_VERSION[2] == '1' &&
22163 ZLIB_VERSION[4] >= '4')) ? "yes" : "no");
22164 exit(0);
22165 }
22166
22167_ACEOF
22168rm -f conftest$ac_exeext
22169if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22170 (eval $ac_link) 2>&5
22171 ac_status=$?
22172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22173 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22175 (eval $ac_try) 2>&5
22176 ac_status=$?
22177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22178 (exit $ac_status); }; }; then
22179 ac_cv_header_zlib_h=`cat conftestval`
22180else
22181 echo "$as_me: program exited with status $ac_status" >&5
22182echo "$as_me: failed program was:" >&5
22183sed 's/^/| /' conftest.$ac_ext >&5
22184
22185( exit $ac_status )
22186ac_cv_header_zlib_h=no
22187fi
ac1cb8d3 22188rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22189fi
22190
22191fi
22192echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
22193echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
22194 if test "${ac_cv_header_zlib_h+set}" = set; then
22195 echo "$as_me:$LINENO: checking for zlib.h" >&5
22196echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
22197if test "${ac_cv_header_zlib_h+set}" = set; then
22198 echo $ECHO_N "(cached) $ECHO_C" >&6
22199fi
22200echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
22201echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
22202else
22203 # Is the header compilable?
22204echo "$as_me:$LINENO: checking zlib.h usability" >&5
22205echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6
22206cat >conftest.$ac_ext <<_ACEOF
22207/* confdefs.h. */
22208_ACEOF
22209cat confdefs.h >>conftest.$ac_ext
22210cat >>conftest.$ac_ext <<_ACEOF
22211/* end confdefs.h. */
22212$ac_includes_default
22213#include <zlib.h>
22214_ACEOF
22215rm -f conftest.$ac_objext
22216if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22217 (eval $ac_compile) 2>conftest.er1
a848cd7e 22218 ac_status=$?
ac1cb8d3
VS
22219 grep -v '^ *+' conftest.er1 >conftest.err
22220 rm -f conftest.er1
22221 cat conftest.err >&5
a848cd7e
SC
22222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22223 (exit $ac_status); } &&
07158944 22224 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
22225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22226 (eval $ac_try) 2>&5
22227 ac_status=$?
22228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22229 (exit $ac_status); }; } &&
22230 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22232 (eval $ac_try) 2>&5
22233 ac_status=$?
22234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22235 (exit $ac_status); }; }; then
22236 ac_header_compiler=yes
22237else
22238 echo "$as_me: failed program was:" >&5
22239sed 's/^/| /' conftest.$ac_ext >&5
22240
22241ac_header_compiler=no
22242fi
ac1cb8d3 22243rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22244echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22245echo "${ECHO_T}$ac_header_compiler" >&6
22246
22247# Is the header present?
22248echo "$as_me:$LINENO: checking zlib.h presence" >&5
22249echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6
22250cat >conftest.$ac_ext <<_ACEOF
22251/* confdefs.h. */
22252_ACEOF
22253cat confdefs.h >>conftest.$ac_ext
22254cat >>conftest.$ac_ext <<_ACEOF
22255/* end confdefs.h. */
22256#include <zlib.h>
22257_ACEOF
22258if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22259 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22260 ac_status=$?
22261 grep -v '^ *+' conftest.er1 >conftest.err
22262 rm -f conftest.er1
22263 cat conftest.err >&5
22264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22265 (exit $ac_status); } >/dev/null; then
22266 if test -s conftest.err; then
22267 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 22268 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
22269 else
22270 ac_cpp_err=
22271 fi
22272else
22273 ac_cpp_err=yes
22274fi
22275if test -z "$ac_cpp_err"; then
22276 ac_header_preproc=yes
22277else
22278 echo "$as_me: failed program was:" >&5
22279sed 's/^/| /' conftest.$ac_ext >&5
22280
22281 ac_header_preproc=no
22282fi
22283rm -f conftest.err conftest.$ac_ext
22284echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22285echo "${ECHO_T}$ac_header_preproc" >&6
22286
22287# So? What about this header?
ac1cb8d3
VS
22288case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22289 yes:no: )
a848cd7e
SC
22290 { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
22291echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
22292 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
22293echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
22294 ac_header_preproc=yes
a848cd7e 22295 ;;
ac1cb8d3 22296 no:yes:* )
a848cd7e
SC
22297 { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
22298echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
22299 { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
22300echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
22301 { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
22302echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
22303 { echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5
22304echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
22305 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
22306echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
22307 { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
22308echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
22309 (
22310 cat <<\_ASBOX
ac1cb8d3
VS
22311## ----------------------------------------- ##
22312## Report this to wx-dev@lists.wxwidgets.org ##
22313## ----------------------------------------- ##
a848cd7e
SC
22314_ASBOX
22315 ) |
22316 sed "s/^/$as_me: WARNING: /" >&2
22317 ;;
22318esac
22319echo "$as_me:$LINENO: checking for zlib.h" >&5
22320echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
22321if test "${ac_cv_header_zlib_h+set}" = set; then
22322 echo $ECHO_N "(cached) $ECHO_C" >&6
22323else
22324 ac_cv_header_zlib_h=$ac_header_preproc
22325fi
22326echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
22327echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
22328
22329fi
22330
22331
22332
22333 system_zlib_h_ok=$ac_cv_header_zlib_h
22334 fi
22335
22336 if test "$system_zlib_h_ok" = "yes"; then
22337 echo "$as_me:$LINENO: checking for deflate in -lz" >&5
22338echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
22339if test "${ac_cv_lib_z_deflate+set}" = set; then
22340 echo $ECHO_N "(cached) $ECHO_C" >&6
22341else
22342 ac_check_lib_save_LIBS=$LIBS
22343LIBS="-lz $LIBS"
22344cat >conftest.$ac_ext <<_ACEOF
22345/* confdefs.h. */
22346_ACEOF
22347cat confdefs.h >>conftest.$ac_ext
22348cat >>conftest.$ac_ext <<_ACEOF
22349/* end confdefs.h. */
22350
22351/* Override any gcc2 internal prototype to avoid an error. */
22352#ifdef __cplusplus
22353extern "C"
22354#endif
22355/* We use char because int might match the return type of a gcc2
22356 builtin and then its argument prototype would still apply. */
22357char deflate ();
22358int
22359main ()
22360{
22361deflate ();
22362 ;
22363 return 0;
22364}
22365_ACEOF
22366rm -f conftest.$ac_objext conftest$ac_exeext
22367if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 22368 (eval $ac_link) 2>conftest.er1
a848cd7e 22369 ac_status=$?
ac1cb8d3
VS
22370 grep -v '^ *+' conftest.er1 >conftest.err
22371 rm -f conftest.er1
22372 cat conftest.err >&5
a848cd7e
SC
22373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22374 (exit $ac_status); } &&
07158944 22375 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
22376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22377 (eval $ac_try) 2>&5
22378 ac_status=$?
22379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22380 (exit $ac_status); }; } &&
22381 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
22382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22383 (eval $ac_try) 2>&5
22384 ac_status=$?
22385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22386 (exit $ac_status); }; }; then
22387 ac_cv_lib_z_deflate=yes
22388else
22389 echo "$as_me: failed program was:" >&5
22390sed 's/^/| /' conftest.$ac_ext >&5
22391
22392ac_cv_lib_z_deflate=no
22393fi
ac1cb8d3
VS
22394rm -f conftest.err conftest.$ac_objext \
22395 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
22396LIBS=$ac_check_lib_save_LIBS
22397fi
22398echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
22399echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
22400if test $ac_cv_lib_z_deflate = yes; then
22401 ZLIB_LINK=" -lz"
22402fi
22403
22404 fi
22405
22406 if test "x$ZLIB_LINK" = "x" ; then
22407 if test "$wxUSE_ZLIB" = "sys" ; then
22408 { { echo "$as_me:$LINENO: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&5
22409echo "$as_me: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&2;}
22410 { (exit 1); exit 1; }; }
22411 else
22412 { echo "$as_me:$LINENO: WARNING: zlib library not found or too old, will use built-in instead" >&5
22413echo "$as_me: WARNING: zlib library not found or too old, will use built-in instead" >&2;}
22414 wxUSE_ZLIB=builtin
22415 fi
22416 else
22417 wxUSE_ZLIB=sys
22418 fi
22419 fi
22420fi
22421
22422
22423PNG_LINK=
22424if test "$wxUSE_LIBPNG" != "no" ; then
22425 cat >>confdefs.h <<\_ACEOF
22426#define wxUSE_LIBPNG 1
22427_ACEOF
22428
22429
22430 if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBPNG" = "builtin" ; then
22431 { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&5
22432echo "$as_me: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&2;}
22433 wxUSE_LIBPNG=sys
22434 fi
22435
22436 if test "$wxUSE_MGL" != 1 -a "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then
22437 { echo "$as_me:$LINENO: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&5
22438echo "$as_me: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&2;}
22439 wxUSE_LIBPNG=builtin
22440 fi
22441
22442 if test "$wxUSE_MGL" != 1 ; then
22443 if test "$wxUSE_LIBPNG" = "sys" -o "$wxUSE_LIBPNG" = "yes" ; then
22444 echo "$as_me:$LINENO: checking for png.h > 0.90" >&5
22445echo $ECHO_N "checking for png.h > 0.90... $ECHO_C" >&6
22446if test "${ac_cv_header_png_h+set}" = set; then
22447 echo $ECHO_N "(cached) $ECHO_C" >&6
22448else
22449 if test "$cross_compiling" = yes; then
22450 unset ac_cv_header_png_h
22451
22452else
22453 cat >conftest.$ac_ext <<_ACEOF
22454/* confdefs.h. */
22455_ACEOF
22456cat confdefs.h >>conftest.$ac_ext
22457cat >>conftest.$ac_ext <<_ACEOF
22458/* end confdefs.h. */
22459
22460 #include <png.h>
22461 #include <stdio.h>
22462
22463 int main()
22464 {
22465 FILE *f=fopen("conftestval", "w");
22466 if (!f) exit(1);
22467 fprintf(f, "%s",
22468 PNG_LIBPNG_VER > 90 ? "yes" : "no");
22469 exit(0);
22470 }
22471
22472_ACEOF
22473rm -f conftest$ac_exeext
22474if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22475 (eval $ac_link) 2>&5
22476 ac_status=$?
22477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22478 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22480 (eval $ac_try) 2>&5
22481 ac_status=$?
22482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22483 (exit $ac_status); }; }; then
22484 ac_cv_header_png_h=`cat conftestval`
22485else
22486 echo "$as_me: program exited with status $ac_status" >&5
22487echo "$as_me: failed program was:" >&5
22488sed 's/^/| /' conftest.$ac_ext >&5
22489
22490( exit $ac_status )
22491ac_cv_header_png_h=no
22492fi
ac1cb8d3 22493rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22494fi
22495
22496fi
22497echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
22498echo "${ECHO_T}$ac_cv_header_png_h" >&6
22499 if test "${ac_cv_header_png_h+set}" = set; then
22500 echo "$as_me:$LINENO: checking for png.h" >&5
22501echo $ECHO_N "checking for png.h... $ECHO_C" >&6
22502if test "${ac_cv_header_png_h+set}" = set; then
22503 echo $ECHO_N "(cached) $ECHO_C" >&6
22504fi
22505echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
22506echo "${ECHO_T}$ac_cv_header_png_h" >&6
22507else
22508 # Is the header compilable?
22509echo "$as_me:$LINENO: checking png.h usability" >&5
22510echo $ECHO_N "checking png.h usability... $ECHO_C" >&6
22511cat >conftest.$ac_ext <<_ACEOF
22512/* confdefs.h. */
22513_ACEOF
22514cat confdefs.h >>conftest.$ac_ext
22515cat >>conftest.$ac_ext <<_ACEOF
22516/* end confdefs.h. */
22517$ac_includes_default
22518#include <png.h>
22519_ACEOF
22520rm -f conftest.$ac_objext
22521if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22522 (eval $ac_compile) 2>conftest.er1
a848cd7e 22523 ac_status=$?
ac1cb8d3
VS
22524 grep -v '^ *+' conftest.er1 >conftest.err
22525 rm -f conftest.er1
22526 cat conftest.err >&5
a848cd7e
SC
22527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22528 (exit $ac_status); } &&
07158944 22529 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
22530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22531 (eval $ac_try) 2>&5
22532 ac_status=$?
22533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22534 (exit $ac_status); }; } &&
22535 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22537 (eval $ac_try) 2>&5
22538 ac_status=$?
22539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22540 (exit $ac_status); }; }; then
22541 ac_header_compiler=yes
22542else
22543 echo "$as_me: failed program was:" >&5
22544sed 's/^/| /' conftest.$ac_ext >&5
22545
22546ac_header_compiler=no
22547fi
ac1cb8d3 22548rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22549echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22550echo "${ECHO_T}$ac_header_compiler" >&6
22551
22552# Is the header present?
22553echo "$as_me:$LINENO: checking png.h presence" >&5
22554echo $ECHO_N "checking png.h presence... $ECHO_C" >&6
22555cat >conftest.$ac_ext <<_ACEOF
22556/* confdefs.h. */
22557_ACEOF
22558cat confdefs.h >>conftest.$ac_ext
22559cat >>conftest.$ac_ext <<_ACEOF
22560/* end confdefs.h. */
22561#include <png.h>
22562_ACEOF
22563if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22564 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22565 ac_status=$?
22566 grep -v '^ *+' conftest.er1 >conftest.err
22567 rm -f conftest.er1
22568 cat conftest.err >&5
22569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22570 (exit $ac_status); } >/dev/null; then
22571 if test -s conftest.err; then
22572 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 22573 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
22574 else
22575 ac_cpp_err=
22576 fi
22577else
22578 ac_cpp_err=yes
22579fi
22580if test -z "$ac_cpp_err"; then
22581 ac_header_preproc=yes
22582else
22583 echo "$as_me: failed program was:" >&5
22584sed 's/^/| /' conftest.$ac_ext >&5
22585
22586 ac_header_preproc=no
22587fi
22588rm -f conftest.err conftest.$ac_ext
22589echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22590echo "${ECHO_T}$ac_header_preproc" >&6
22591
22592# So? What about this header?
ac1cb8d3
VS
22593case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22594 yes:no: )
a848cd7e
SC
22595 { echo "$as_me:$LINENO: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&5
22596echo "$as_me: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
22597 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the compiler's result" >&5
22598echo "$as_me: WARNING: png.h: proceeding with the compiler's result" >&2;}
22599 ac_header_preproc=yes
a848cd7e 22600 ;;
ac1cb8d3 22601 no:yes:* )
a848cd7e
SC
22602 { echo "$as_me:$LINENO: WARNING: png.h: present but cannot be compiled" >&5
22603echo "$as_me: WARNING: png.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
22604 { echo "$as_me:$LINENO: WARNING: png.h: check for missing prerequisite headers?" >&5
22605echo "$as_me: WARNING: png.h: check for missing prerequisite headers?" >&2;}
22606 { echo "$as_me:$LINENO: WARNING: png.h: see the Autoconf documentation" >&5
22607echo "$as_me: WARNING: png.h: see the Autoconf documentation" >&2;}
22608 { echo "$as_me:$LINENO: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&5
22609echo "$as_me: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
22610 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5
22611echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
22612 { echo "$as_me:$LINENO: WARNING: png.h: in the future, the compiler will take precedence" >&5
22613echo "$as_me: WARNING: png.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
22614 (
22615 cat <<\_ASBOX
ac1cb8d3
VS
22616## ----------------------------------------- ##
22617## Report this to wx-dev@lists.wxwidgets.org ##
22618## ----------------------------------------- ##
a848cd7e
SC
22619_ASBOX
22620 ) |
22621 sed "s/^/$as_me: WARNING: /" >&2
22622 ;;
22623esac
22624echo "$as_me:$LINENO: checking for png.h" >&5
22625echo $ECHO_N "checking for png.h... $ECHO_C" >&6
22626if test "${ac_cv_header_png_h+set}" = set; then
22627 echo $ECHO_N "(cached) $ECHO_C" >&6
22628else
22629 ac_cv_header_png_h=$ac_header_preproc
22630fi
22631echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
22632echo "${ECHO_T}$ac_cv_header_png_h" >&6
22633
22634fi
22635
22636
22637
22638 if test "$ac_cv_header_png_h" = "yes"; then
22639 echo "$as_me:$LINENO: checking for png_check_sig in -lpng" >&5
22640echo $ECHO_N "checking for png_check_sig in -lpng... $ECHO_C" >&6
22641if test "${ac_cv_lib_png_png_check_sig+set}" = set; then
22642 echo $ECHO_N "(cached) $ECHO_C" >&6
22643else
22644 ac_check_lib_save_LIBS=$LIBS
22645LIBS="-lpng -lz -lm $LIBS"
22646cat >conftest.$ac_ext <<_ACEOF
22647/* confdefs.h. */
22648_ACEOF
22649cat confdefs.h >>conftest.$ac_ext
22650cat >>conftest.$ac_ext <<_ACEOF
22651/* end confdefs.h. */
22652
22653/* Override any gcc2 internal prototype to avoid an error. */
22654#ifdef __cplusplus
22655extern "C"
22656#endif
22657/* We use char because int might match the return type of a gcc2
22658 builtin and then its argument prototype would still apply. */
22659char png_check_sig ();
22660int
22661main ()
22662{
22663png_check_sig ();
22664 ;
22665 return 0;
22666}
22667_ACEOF
22668rm -f conftest.$ac_objext conftest$ac_exeext
22669if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 22670 (eval $ac_link) 2>conftest.er1
a848cd7e 22671 ac_status=$?
ac1cb8d3
VS
22672 grep -v '^ *+' conftest.er1 >conftest.err
22673 rm -f conftest.er1
22674 cat conftest.err >&5
a848cd7e
SC
22675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22676 (exit $ac_status); } &&
07158944 22677 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
22678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22679 (eval $ac_try) 2>&5
22680 ac_status=$?
22681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22682 (exit $ac_status); }; } &&
22683 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
22684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22685 (eval $ac_try) 2>&5
22686 ac_status=$?
22687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22688 (exit $ac_status); }; }; then
22689 ac_cv_lib_png_png_check_sig=yes
22690else
22691 echo "$as_me: failed program was:" >&5
22692sed 's/^/| /' conftest.$ac_ext >&5
22693
22694ac_cv_lib_png_png_check_sig=no
22695fi
ac1cb8d3
VS
22696rm -f conftest.err conftest.$ac_objext \
22697 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
22698LIBS=$ac_check_lib_save_LIBS
22699fi
22700echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_check_sig" >&5
22701echo "${ECHO_T}$ac_cv_lib_png_png_check_sig" >&6
22702if test $ac_cv_lib_png_png_check_sig = yes; then
22703 PNG_LINK=" -lpng -lz"
22704fi
22705
22706 fi
22707
22708 if test "x$PNG_LINK" = "x" ; then
22709 if test "$wxUSE_LIBPNG" = "sys" ; then
22710 { { echo "$as_me:$LINENO: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&5
22711echo "$as_me: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&2;}
22712 { (exit 1); exit 1; }; }
22713 else
22714 { echo "$as_me:$LINENO: WARNING: system png library not found or too old, will use built-in instead" >&5
22715echo "$as_me: WARNING: system png library not found or too old, will use built-in instead" >&2;}
22716 wxUSE_LIBPNG=builtin
22717 fi
22718 else
22719 wxUSE_LIBPNG=sys
22720 fi
22721 fi
22722 fi
22723
22724 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png"
22725fi
22726
22727
22728JPEG_LINK=
22729if test "$wxUSE_LIBJPEG" != "no" ; then
22730 cat >>confdefs.h <<\_ACEOF
22731#define wxUSE_LIBJPEG 1
22732_ACEOF
22733
22734
22735 if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBJPEG" = "builtin" ; then
22736 { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&5
22737echo "$as_me: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&2;}
22738 wxUSE_LIBJPEG=sys
22739 fi
22740
22741 if test "$wxUSE_MGL" != 1 ; then
22742 if test "$wxUSE_LIBJPEG" = "sys" -o "$wxUSE_LIBJPEG" = "yes" ; then
22743 echo "$as_me:$LINENO: checking for jpeglib.h" >&5
22744echo $ECHO_N "checking for jpeglib.h... $ECHO_C" >&6
22745 if test "${ac_cv_header_jpeglib_h+set}" = set; then
22746 echo $ECHO_N "(cached) $ECHO_C" >&6
22747else
22748 cat >conftest.$ac_ext <<_ACEOF
22749/* confdefs.h. */
22750_ACEOF
22751cat confdefs.h >>conftest.$ac_ext
22752cat >>conftest.$ac_ext <<_ACEOF
22753/* end confdefs.h. */
22754
22755 #undef HAVE_STDLIB_H
22756 #include <stdio.h>
22757 #include <jpeglib.h>
22758
22759int
22760main ()
22761{
22762
22763
22764 ;
22765 return 0;
22766}
22767_ACEOF
22768rm -f conftest.$ac_objext
22769if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22770 (eval $ac_compile) 2>conftest.er1
a848cd7e 22771 ac_status=$?
ac1cb8d3
VS
22772 grep -v '^ *+' conftest.er1 >conftest.err
22773 rm -f conftest.er1
22774 cat conftest.err >&5
a848cd7e
SC
22775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22776 (exit $ac_status); } &&
07158944 22777 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
22778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22779 (eval $ac_try) 2>&5
22780 ac_status=$?
22781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22782 (exit $ac_status); }; } &&
22783 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22785 (eval $ac_try) 2>&5
22786 ac_status=$?
22787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22788 (exit $ac_status); }; }; then
22789 ac_cv_header_jpeglib_h=yes
22790else
22791 echo "$as_me: failed program was:" >&5
22792sed 's/^/| /' conftest.$ac_ext >&5
22793
22794ac_cv_header_jpeglib_h=no
22795
22796fi
ac1cb8d3 22797rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22798
22799fi
22800
22801 echo "$as_me:$LINENO: result: $ac_cv_header_jpeglib_h" >&5
22802echo "${ECHO_T}$ac_cv_header_jpeglib_h" >&6
22803
22804 if test "$ac_cv_header_jpeglib_h" = "yes"; then
22805 echo "$as_me:$LINENO: checking for jpeg_read_header in -ljpeg" >&5
22806echo $ECHO_N "checking for jpeg_read_header in -ljpeg... $ECHO_C" >&6
22807if test "${ac_cv_lib_jpeg_jpeg_read_header+set}" = set; then
22808 echo $ECHO_N "(cached) $ECHO_C" >&6
22809else
22810 ac_check_lib_save_LIBS=$LIBS
22811LIBS="-ljpeg $LIBS"
22812cat >conftest.$ac_ext <<_ACEOF
22813/* confdefs.h. */
22814_ACEOF
22815cat confdefs.h >>conftest.$ac_ext
22816cat >>conftest.$ac_ext <<_ACEOF
22817/* end confdefs.h. */
22818
22819/* Override any gcc2 internal prototype to avoid an error. */
22820#ifdef __cplusplus
22821extern "C"
22822#endif
22823/* We use char because int might match the return type of a gcc2
22824 builtin and then its argument prototype would still apply. */
22825char jpeg_read_header ();
22826int
22827main ()
22828{
22829jpeg_read_header ();
22830 ;
22831 return 0;
22832}
22833_ACEOF
22834rm -f conftest.$ac_objext conftest$ac_exeext
22835if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 22836 (eval $ac_link) 2>conftest.er1
a848cd7e 22837 ac_status=$?
ac1cb8d3
VS
22838 grep -v '^ *+' conftest.er1 >conftest.err
22839 rm -f conftest.er1
22840 cat conftest.err >&5
a848cd7e
SC
22841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22842 (exit $ac_status); } &&
07158944 22843 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
22844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22845 (eval $ac_try) 2>&5
22846 ac_status=$?
22847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22848 (exit $ac_status); }; } &&
22849 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
22850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22851 (eval $ac_try) 2>&5
22852 ac_status=$?
22853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22854 (exit $ac_status); }; }; then
22855 ac_cv_lib_jpeg_jpeg_read_header=yes
22856else
22857 echo "$as_me: failed program was:" >&5
22858sed 's/^/| /' conftest.$ac_ext >&5
22859
22860ac_cv_lib_jpeg_jpeg_read_header=no
22861fi
ac1cb8d3
VS
22862rm -f conftest.err conftest.$ac_objext \
22863 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
22864LIBS=$ac_check_lib_save_LIBS
22865fi
22866echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5
22867echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_read_header" >&6
22868if test $ac_cv_lib_jpeg_jpeg_read_header = yes; then
22869 JPEG_LINK=" -ljpeg"
22870fi
22871
22872 fi
22873
22874 if test "x$JPEG_LINK" = "x" ; then
22875 if test "$wxUSE_LIBJPEG" = "sys" ; then
22876 { { echo "$as_me:$LINENO: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&5
22877echo "$as_me: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&2;}
22878 { (exit 1); exit 1; }; }
22879 else
22880 { echo "$as_me:$LINENO: WARNING: system jpeg library not found, will use built-in instead" >&5
22881echo "$as_me: WARNING: system jpeg library not found, will use built-in instead" >&2;}
22882 wxUSE_LIBJPEG=builtin
22883 fi
22884 else
22885 wxUSE_LIBJPEG=sys
22886 fi
22887 fi
22888 fi
22889fi
22890
22891
22892TIFF_LINK=
22893TIFF_PREREQ_LINKS=-lm
22894if test "$wxUSE_LIBTIFF" != "no" ; then
22895 cat >>confdefs.h <<\_ACEOF
22896#define wxUSE_LIBTIFF 1
22897_ACEOF
22898
22899
22900 if test "$wxUSE_LIBTIFF" = "sys" -o "$wxUSE_LIBTIFF" = "yes" ; then
22901 if test "$wxUSE_LIBJPEG" = "sys"; then
22902 TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $JPEG_LINK"
22903 fi
22904 if test "$wxUSE_ZLIB" = "sys"; then
22905 TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $ZLIB_LINK"
22906 fi
22907 if test "${ac_cv_header_tiffio_h+set}" = set; then
22908 echo "$as_me:$LINENO: checking for tiffio.h" >&5
22909echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
22910if test "${ac_cv_header_tiffio_h+set}" = set; then
22911 echo $ECHO_N "(cached) $ECHO_C" >&6
22912fi
22913echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
22914echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
22915else
22916 # Is the header compilable?
22917echo "$as_me:$LINENO: checking tiffio.h usability" >&5
22918echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6
22919cat >conftest.$ac_ext <<_ACEOF
22920/* confdefs.h. */
22921_ACEOF
22922cat confdefs.h >>conftest.$ac_ext
22923cat >>conftest.$ac_ext <<_ACEOF
22924/* end confdefs.h. */
22925$ac_includes_default
22926#include <tiffio.h>
22927_ACEOF
22928rm -f conftest.$ac_objext
22929if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22930 (eval $ac_compile) 2>conftest.er1
a848cd7e 22931 ac_status=$?
ac1cb8d3
VS
22932 grep -v '^ *+' conftest.er1 >conftest.err
22933 rm -f conftest.er1
22934 cat conftest.err >&5
a848cd7e
SC
22935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22936 (exit $ac_status); } &&
07158944 22937 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
22938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22939 (eval $ac_try) 2>&5
22940 ac_status=$?
22941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22942 (exit $ac_status); }; } &&
22943 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22945 (eval $ac_try) 2>&5
22946 ac_status=$?
22947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22948 (exit $ac_status); }; }; then
22949 ac_header_compiler=yes
22950else
22951 echo "$as_me: failed program was:" >&5
22952sed 's/^/| /' conftest.$ac_ext >&5
22953
22954ac_header_compiler=no
22955fi
ac1cb8d3 22956rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22957echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22958echo "${ECHO_T}$ac_header_compiler" >&6
22959
22960# Is the header present?
22961echo "$as_me:$LINENO: checking tiffio.h presence" >&5
22962echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6
22963cat >conftest.$ac_ext <<_ACEOF
22964/* confdefs.h. */
22965_ACEOF
22966cat confdefs.h >>conftest.$ac_ext
22967cat >>conftest.$ac_ext <<_ACEOF
22968/* end confdefs.h. */
22969#include <tiffio.h>
22970_ACEOF
22971if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22972 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22973 ac_status=$?
22974 grep -v '^ *+' conftest.er1 >conftest.err
22975 rm -f conftest.er1
22976 cat conftest.err >&5
22977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22978 (exit $ac_status); } >/dev/null; then
22979 if test -s conftest.err; then
22980 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 22981 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
22982 else
22983 ac_cpp_err=
22984 fi
22985else
22986 ac_cpp_err=yes
22987fi
22988if test -z "$ac_cpp_err"; then
22989 ac_header_preproc=yes
22990else
22991 echo "$as_me: failed program was:" >&5
22992sed 's/^/| /' conftest.$ac_ext >&5
22993
22994 ac_header_preproc=no
22995fi
22996rm -f conftest.err conftest.$ac_ext
22997echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22998echo "${ECHO_T}$ac_header_preproc" >&6
22999
23000# So? What about this header?
ac1cb8d3
VS
23001case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23002 yes:no: )
a848cd7e
SC
23003 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
23004echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
23005 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5
23006echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;}
23007 ac_header_preproc=yes
a848cd7e 23008 ;;
ac1cb8d3 23009 no:yes:* )
a848cd7e
SC
23010 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
23011echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
23012 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
23013echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
23014 { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
23015echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
23016 { echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
23017echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
23018 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
23019echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
23020 { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
23021echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
23022 (
23023 cat <<\_ASBOX
ac1cb8d3
VS
23024## ----------------------------------------- ##
23025## Report this to wx-dev@lists.wxwidgets.org ##
23026## ----------------------------------------- ##
a848cd7e
SC
23027_ASBOX
23028 ) |
23029 sed "s/^/$as_me: WARNING: /" >&2
23030 ;;
23031esac
23032echo "$as_me:$LINENO: checking for tiffio.h" >&5
23033echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
23034if test "${ac_cv_header_tiffio_h+set}" = set; then
23035 echo $ECHO_N "(cached) $ECHO_C" >&6
23036else
23037 ac_cv_header_tiffio_h=$ac_header_preproc
23038fi
23039echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
23040echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
23041
23042fi
23043if test $ac_cv_header_tiffio_h = yes; then
23044
23045 echo "$as_me:$LINENO: checking for TIFFError in -ltiff" >&5
23046echo $ECHO_N "checking for TIFFError in -ltiff... $ECHO_C" >&6
23047if test "${ac_cv_lib_tiff_TIFFError+set}" = set; then
23048 echo $ECHO_N "(cached) $ECHO_C" >&6
23049else
23050 ac_check_lib_save_LIBS=$LIBS
23051LIBS="-ltiff $TIFF_PREREQ_LINKS $LIBS"
23052cat >conftest.$ac_ext <<_ACEOF
23053/* confdefs.h. */
23054_ACEOF
23055cat confdefs.h >>conftest.$ac_ext
23056cat >>conftest.$ac_ext <<_ACEOF
23057/* end confdefs.h. */
23058
23059/* Override any gcc2 internal prototype to avoid an error. */
23060#ifdef __cplusplus
23061extern "C"
23062#endif
23063/* We use char because int might match the return type of a gcc2
23064 builtin and then its argument prototype would still apply. */
23065char TIFFError ();
23066int
23067main ()
23068{
23069TIFFError ();
23070 ;
23071 return 0;
23072}
23073_ACEOF
23074rm -f conftest.$ac_objext conftest$ac_exeext
23075if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 23076 (eval $ac_link) 2>conftest.er1
a848cd7e 23077 ac_status=$?
ac1cb8d3
VS
23078 grep -v '^ *+' conftest.er1 >conftest.err
23079 rm -f conftest.er1
23080 cat conftest.err >&5
a848cd7e
SC
23081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23082 (exit $ac_status); } &&
07158944 23083 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23085 (eval $ac_try) 2>&5
23086 ac_status=$?
23087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23088 (exit $ac_status); }; } &&
23089 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
23090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23091 (eval $ac_try) 2>&5
23092 ac_status=$?
23093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23094 (exit $ac_status); }; }; then
23095 ac_cv_lib_tiff_TIFFError=yes
23096else
23097 echo "$as_me: failed program was:" >&5
23098sed 's/^/| /' conftest.$ac_ext >&5
23099
23100ac_cv_lib_tiff_TIFFError=no
23101fi
ac1cb8d3
VS
23102rm -f conftest.err conftest.$ac_objext \
23103 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
23104LIBS=$ac_check_lib_save_LIBS
23105fi
23106echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFError" >&5
23107echo "${ECHO_T}$ac_cv_lib_tiff_TIFFError" >&6
23108if test $ac_cv_lib_tiff_TIFFError = yes; then
23109 TIFF_LINK=" -ltiff"
23110fi
23111
23112
23113
23114fi
23115
23116
23117
23118 if test "x$TIFF_LINK" = "x" ; then
23119 if test "$wxUSE_LIBTIFF" = "sys" ; then
23120 { { echo "$as_me:$LINENO: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&5
23121echo "$as_me: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&2;}
23122 { (exit 1); exit 1; }; }
23123 else
23124 { echo "$as_me:$LINENO: WARNING: system tiff library not found, will use built-in instead" >&5
23125echo "$as_me: WARNING: system tiff library not found, will use built-in instead" >&2;}
23126 wxUSE_LIBTIFF=builtin
23127 fi
23128 else
23129 wxUSE_LIBTIFF=sys
23130 fi
23131 fi
23132fi
23133
23134
23135if test "$wxUSE_EXPAT" != "no"; then
23136 wxUSE_XML=yes
23137 cat >>confdefs.h <<\_ACEOF
23138#define wxUSE_EXPAT 1
23139_ACEOF
23140
23141 cat >>confdefs.h <<\_ACEOF
23142#define wxUSE_XML 1
23143_ACEOF
23144
23145
23146 if test "$wxUSE_EXPAT" = "sys" -o "$wxUSE_EXPAT" = "yes" ; then
23147 if test "${ac_cv_header_expat_h+set}" = set; then
23148 echo "$as_me:$LINENO: checking for expat.h" >&5
23149echo $ECHO_N "checking for expat.h... $ECHO_C" >&6
23150if test "${ac_cv_header_expat_h+set}" = set; then
23151 echo $ECHO_N "(cached) $ECHO_C" >&6
23152fi
23153echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5
23154echo "${ECHO_T}$ac_cv_header_expat_h" >&6
23155else
23156 # Is the header compilable?
23157echo "$as_me:$LINENO: checking expat.h usability" >&5
23158echo $ECHO_N "checking expat.h usability... $ECHO_C" >&6
23159cat >conftest.$ac_ext <<_ACEOF
23160/* confdefs.h. */
23161_ACEOF
23162cat confdefs.h >>conftest.$ac_ext
23163cat >>conftest.$ac_ext <<_ACEOF
23164/* end confdefs.h. */
23165$ac_includes_default
23166#include <expat.h>
23167_ACEOF
23168rm -f conftest.$ac_objext
23169if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23170 (eval $ac_compile) 2>conftest.er1
a848cd7e 23171 ac_status=$?
ac1cb8d3
VS
23172 grep -v '^ *+' conftest.er1 >conftest.err
23173 rm -f conftest.er1
23174 cat conftest.err >&5
a848cd7e
SC
23175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23176 (exit $ac_status); } &&
07158944 23177 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23179 (eval $ac_try) 2>&5
23180 ac_status=$?
23181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23182 (exit $ac_status); }; } &&
23183 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
23184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23185 (eval $ac_try) 2>&5
23186 ac_status=$?
23187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23188 (exit $ac_status); }; }; then
23189 ac_header_compiler=yes
23190else
23191 echo "$as_me: failed program was:" >&5
23192sed 's/^/| /' conftest.$ac_ext >&5
23193
23194ac_header_compiler=no
23195fi
ac1cb8d3 23196rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
23197echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23198echo "${ECHO_T}$ac_header_compiler" >&6
23199
23200# Is the header present?
23201echo "$as_me:$LINENO: checking expat.h presence" >&5
23202echo $ECHO_N "checking expat.h presence... $ECHO_C" >&6
23203cat >conftest.$ac_ext <<_ACEOF
23204/* confdefs.h. */
23205_ACEOF
23206cat confdefs.h >>conftest.$ac_ext
23207cat >>conftest.$ac_ext <<_ACEOF
23208/* end confdefs.h. */
23209#include <expat.h>
23210_ACEOF
23211if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23212 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23213 ac_status=$?
23214 grep -v '^ *+' conftest.er1 >conftest.err
23215 rm -f conftest.er1
23216 cat conftest.err >&5
23217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23218 (exit $ac_status); } >/dev/null; then
23219 if test -s conftest.err; then
23220 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 23221 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
23222 else
23223 ac_cpp_err=
23224 fi
23225else
23226 ac_cpp_err=yes
23227fi
23228if test -z "$ac_cpp_err"; then
23229 ac_header_preproc=yes
23230else
23231 echo "$as_me: failed program was:" >&5
23232sed 's/^/| /' conftest.$ac_ext >&5
23233
23234 ac_header_preproc=no
23235fi
23236rm -f conftest.err conftest.$ac_ext
23237echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23238echo "${ECHO_T}$ac_header_preproc" >&6
23239
23240# So? What about this header?
ac1cb8d3
VS
23241case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23242 yes:no: )
a848cd7e
SC
23243 { echo "$as_me:$LINENO: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&5
23244echo "$as_me: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
23245 { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the compiler's result" >&5
23246echo "$as_me: WARNING: expat.h: proceeding with the compiler's result" >&2;}
23247 ac_header_preproc=yes
a848cd7e 23248 ;;
ac1cb8d3 23249 no:yes:* )
a848cd7e
SC
23250 { echo "$as_me:$LINENO: WARNING: expat.h: present but cannot be compiled" >&5
23251echo "$as_me: WARNING: expat.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
23252 { echo "$as_me:$LINENO: WARNING: expat.h: check for missing prerequisite headers?" >&5
23253echo "$as_me: WARNING: expat.h: check for missing prerequisite headers?" >&2;}
23254 { echo "$as_me:$LINENO: WARNING: expat.h: see the Autoconf documentation" >&5
23255echo "$as_me: WARNING: expat.h: see the Autoconf documentation" >&2;}
23256 { echo "$as_me:$LINENO: WARNING: expat.h: section \"Present But Cannot Be Compiled\"" >&5
23257echo "$as_me: WARNING: expat.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
23258 { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the preprocessor's result" >&5
23259echo "$as_me: WARNING: expat.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
23260 { echo "$as_me:$LINENO: WARNING: expat.h: in the future, the compiler will take precedence" >&5
23261echo "$as_me: WARNING: expat.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
23262 (
23263 cat <<\_ASBOX
ac1cb8d3
VS
23264## ----------------------------------------- ##
23265## Report this to wx-dev@lists.wxwidgets.org ##
23266## ----------------------------------------- ##
a848cd7e
SC
23267_ASBOX
23268 ) |
23269 sed "s/^/$as_me: WARNING: /" >&2
23270 ;;
23271esac
23272echo "$as_me:$LINENO: checking for expat.h" >&5
23273echo $ECHO_N "checking for expat.h... $ECHO_C" >&6
23274if test "${ac_cv_header_expat_h+set}" = set; then
23275 echo $ECHO_N "(cached) $ECHO_C" >&6
23276else
23277 ac_cv_header_expat_h=$ac_header_preproc
23278fi
23279echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5
23280echo "${ECHO_T}$ac_cv_header_expat_h" >&6
23281
23282fi
23283if test $ac_cv_header_expat_h = yes; then
23284 found_expat_h=1
23285fi
23286
23287
23288 if test "x$found_expat_h" = "x1"; then
23289 echo "$as_me:$LINENO: checking if expat.h is valid C++ header" >&5
23290echo $ECHO_N "checking if expat.h is valid C++ header... $ECHO_C" >&6
23291if test "${wx_cv_expat_is_not_broken+set}" = set; then
23292 echo $ECHO_N "(cached) $ECHO_C" >&6
23293else
23294
23295
23296
23297 ac_ext=cc
23298ac_cpp='$CXXCPP $CPPFLAGS'
23299ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23300ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23301ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23302
23303 cat >conftest.$ac_ext <<_ACEOF
23304/* confdefs.h. */
23305_ACEOF
23306cat confdefs.h >>conftest.$ac_ext
23307cat >>conftest.$ac_ext <<_ACEOF
23308/* end confdefs.h. */
23309#include <expat.h>
23310int
23311main ()
23312{
23313
23314 ;
23315 return 0;
23316}
23317_ACEOF
23318rm -f conftest.$ac_objext
23319if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23320 (eval $ac_compile) 2>conftest.er1
a848cd7e 23321 ac_status=$?
ac1cb8d3
VS
23322 grep -v '^ *+' conftest.er1 >conftest.err
23323 rm -f conftest.er1
23324 cat conftest.err >&5
a848cd7e
SC
23325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23326 (exit $ac_status); } &&
07158944 23327 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23329 (eval $ac_try) 2>&5
23330 ac_status=$?
23331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23332 (exit $ac_status); }; } &&
23333 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
23334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23335 (eval $ac_try) 2>&5
23336 ac_status=$?
23337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23338 (exit $ac_status); }; }; then
23339 wx_cv_expat_is_not_broken=yes
23340else
23341 echo "$as_me: failed program was:" >&5
23342sed 's/^/| /' conftest.$ac_ext >&5
23343
23344wx_cv_expat_is_not_broken=no
23345
23346fi
ac1cb8d3 23347rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
23348 ac_ext=c
23349ac_cpp='$CPP $CPPFLAGS'
23350ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23351ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23352ac_compiler_gnu=$ac_cv_c_compiler_gnu
23353
23354
23355
23356fi
23357echo "$as_me:$LINENO: result: $wx_cv_expat_is_not_broken" >&5
23358echo "${ECHO_T}$wx_cv_expat_is_not_broken" >&6
23359 if test "$wx_cv_expat_is_not_broken" = "yes" ; then
23360 echo "$as_me:$LINENO: checking for XML_ParserCreate in -lexpat" >&5
23361echo $ECHO_N "checking for XML_ParserCreate in -lexpat... $ECHO_C" >&6
23362if test "${ac_cv_lib_expat_XML_ParserCreate+set}" = set; then
23363 echo $ECHO_N "(cached) $ECHO_C" >&6
23364else
23365 ac_check_lib_save_LIBS=$LIBS
23366LIBS="-lexpat $LIBS"
23367cat >conftest.$ac_ext <<_ACEOF
23368/* confdefs.h. */
23369_ACEOF
23370cat confdefs.h >>conftest.$ac_ext
23371cat >>conftest.$ac_ext <<_ACEOF
23372/* end confdefs.h. */
23373
23374/* Override any gcc2 internal prototype to avoid an error. */
23375#ifdef __cplusplus
23376extern "C"
23377#endif
23378/* We use char because int might match the return type of a gcc2
23379 builtin and then its argument prototype would still apply. */
23380char XML_ParserCreate ();
23381int
23382main ()
23383{
23384XML_ParserCreate ();
23385 ;
23386 return 0;
23387}
23388_ACEOF
23389rm -f conftest.$ac_objext conftest$ac_exeext
23390if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 23391 (eval $ac_link) 2>conftest.er1
a848cd7e 23392 ac_status=$?
ac1cb8d3
VS
23393 grep -v '^ *+' conftest.er1 >conftest.err
23394 rm -f conftest.er1
23395 cat conftest.err >&5
a848cd7e
SC
23396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23397 (exit $ac_status); } &&
07158944 23398 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23400 (eval $ac_try) 2>&5
23401 ac_status=$?
23402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23403 (exit $ac_status); }; } &&
23404 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
23405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23406 (eval $ac_try) 2>&5
23407 ac_status=$?
23408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23409 (exit $ac_status); }; }; then
23410 ac_cv_lib_expat_XML_ParserCreate=yes
23411else
23412 echo "$as_me: failed program was:" >&5
23413sed 's/^/| /' conftest.$ac_ext >&5
23414
23415ac_cv_lib_expat_XML_ParserCreate=no
23416fi
ac1cb8d3
VS
23417rm -f conftest.err conftest.$ac_objext \
23418 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
23419LIBS=$ac_check_lib_save_LIBS
23420fi
23421echo "$as_me:$LINENO: result: $ac_cv_lib_expat_XML_ParserCreate" >&5
23422echo "${ECHO_T}$ac_cv_lib_expat_XML_ParserCreate" >&6
23423if test $ac_cv_lib_expat_XML_ParserCreate = yes; then
23424 EXPAT_LINK=" -lexpat"
23425fi
23426
23427 fi
23428 fi
23429 if test "x$EXPAT_LINK" = "x" ; then
23430 if test "$wxUSE_EXPAT" = "sys" ; then
23431 { { echo "$as_me:$LINENO: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&5
23432echo "$as_me: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&2;}
23433 { (exit 1); exit 1; }; }
23434 else
23435 { echo "$as_me:$LINENO: WARNING: system expat library not found, will use built-in instead" >&5
23436echo "$as_me: WARNING: system expat library not found, will use built-in instead" >&2;}
23437 wxUSE_EXPAT=builtin
23438 fi
23439 else
23440 wxUSE_EXPAT=sys
23441 fi
23442 fi
23443 if test "$wxUSE_EXPAT" = "builtin" ; then
23444
23445
23446subdirs="$subdirs src/expat"
23447
23448 fi
23449fi
23450
23451
23452
23453if test "$wxUSE_LIBMSPACK" != "no"; then
a848cd7e
SC
23454 if test "${ac_cv_header_mspack_h+set}" = set; then
23455 echo "$as_me:$LINENO: checking for mspack.h" >&5
23456echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6
23457if test "${ac_cv_header_mspack_h+set}" = set; then
23458 echo $ECHO_N "(cached) $ECHO_C" >&6
23459fi
23460echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5
23461echo "${ECHO_T}$ac_cv_header_mspack_h" >&6
23462else
23463 # Is the header compilable?
23464echo "$as_me:$LINENO: checking mspack.h usability" >&5
23465echo $ECHO_N "checking mspack.h usability... $ECHO_C" >&6
23466cat >conftest.$ac_ext <<_ACEOF
23467/* confdefs.h. */
23468_ACEOF
23469cat confdefs.h >>conftest.$ac_ext
23470cat >>conftest.$ac_ext <<_ACEOF
23471/* end confdefs.h. */
23472$ac_includes_default
23473#include <mspack.h>
23474_ACEOF
23475rm -f conftest.$ac_objext
23476if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23477 (eval $ac_compile) 2>conftest.er1
a848cd7e 23478 ac_status=$?
ac1cb8d3
VS
23479 grep -v '^ *+' conftest.er1 >conftest.err
23480 rm -f conftest.er1
23481 cat conftest.err >&5
a848cd7e
SC
23482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23483 (exit $ac_status); } &&
07158944 23484 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23486 (eval $ac_try) 2>&5
23487 ac_status=$?
23488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23489 (exit $ac_status); }; } &&
23490 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
23491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23492 (eval $ac_try) 2>&5
23493 ac_status=$?
23494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23495 (exit $ac_status); }; }; then
23496 ac_header_compiler=yes
23497else
23498 echo "$as_me: failed program was:" >&5
23499sed 's/^/| /' conftest.$ac_ext >&5
23500
23501ac_header_compiler=no
23502fi
ac1cb8d3 23503rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
23504echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23505echo "${ECHO_T}$ac_header_compiler" >&6
23506
23507# Is the header present?
23508echo "$as_me:$LINENO: checking mspack.h presence" >&5
23509echo $ECHO_N "checking mspack.h presence... $ECHO_C" >&6
23510cat >conftest.$ac_ext <<_ACEOF
23511/* confdefs.h. */
23512_ACEOF
23513cat confdefs.h >>conftest.$ac_ext
23514cat >>conftest.$ac_ext <<_ACEOF
23515/* end confdefs.h. */
23516#include <mspack.h>
23517_ACEOF
23518if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23519 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23520 ac_status=$?
23521 grep -v '^ *+' conftest.er1 >conftest.err
23522 rm -f conftest.er1
23523 cat conftest.err >&5
23524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23525 (exit $ac_status); } >/dev/null; then
23526 if test -s conftest.err; then
23527 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 23528 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
23529 else
23530 ac_cpp_err=
23531 fi
23532else
23533 ac_cpp_err=yes
23534fi
23535if test -z "$ac_cpp_err"; then
23536 ac_header_preproc=yes
23537else
23538 echo "$as_me: failed program was:" >&5
23539sed 's/^/| /' conftest.$ac_ext >&5
23540
23541 ac_header_preproc=no
23542fi
23543rm -f conftest.err conftest.$ac_ext
23544echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23545echo "${ECHO_T}$ac_header_preproc" >&6
23546
23547# So? What about this header?
ac1cb8d3
VS
23548case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23549 yes:no: )
a848cd7e
SC
23550 { echo "$as_me:$LINENO: WARNING: mspack.h: accepted by the compiler, rejected by the preprocessor!" >&5
23551echo "$as_me: WARNING: mspack.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
23552 { echo "$as_me:$LINENO: WARNING: mspack.h: proceeding with the compiler's result" >&5
23553echo "$as_me: WARNING: mspack.h: proceeding with the compiler's result" >&2;}
23554 ac_header_preproc=yes
a848cd7e 23555 ;;
ac1cb8d3 23556 no:yes:* )
a848cd7e
SC
23557 { echo "$as_me:$LINENO: WARNING: mspack.h: present but cannot be compiled" >&5
23558echo "$as_me: WARNING: mspack.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
23559 { echo "$as_me:$LINENO: WARNING: mspack.h: check for missing prerequisite headers?" >&5
23560echo "$as_me: WARNING: mspack.h: check for missing prerequisite headers?" >&2;}
23561 { echo "$as_me:$LINENO: WARNING: mspack.h: see the Autoconf documentation" >&5
23562echo "$as_me: WARNING: mspack.h: see the Autoconf documentation" >&2;}
23563 { echo "$as_me:$LINENO: WARNING: mspack.h: section \"Present But Cannot Be Compiled\"" >&5
23564echo "$as_me: WARNING: mspack.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
23565 { echo "$as_me:$LINENO: WARNING: mspack.h: proceeding with the preprocessor's result" >&5
23566echo "$as_me: WARNING: mspack.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
23567 { echo "$as_me:$LINENO: WARNING: mspack.h: in the future, the compiler will take precedence" >&5
23568echo "$as_me: WARNING: mspack.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
23569 (
23570 cat <<\_ASBOX
ac1cb8d3
VS
23571## ----------------------------------------- ##
23572## Report this to wx-dev@lists.wxwidgets.org ##
23573## ----------------------------------------- ##
a848cd7e
SC
23574_ASBOX
23575 ) |
23576 sed "s/^/$as_me: WARNING: /" >&2
23577 ;;
23578esac
23579echo "$as_me:$LINENO: checking for mspack.h" >&5
23580echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6
23581if test "${ac_cv_header_mspack_h+set}" = set; then
23582 echo $ECHO_N "(cached) $ECHO_C" >&6
23583else
23584 ac_cv_header_mspack_h=$ac_header_preproc
23585fi
23586echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5
23587echo "${ECHO_T}$ac_cv_header_mspack_h" >&6
23588
23589fi
23590if test $ac_cv_header_mspack_h = yes; then
23591 found_mspack_h=1
23592fi
23593
23594
23595 if test "x$found_mspack_h" = "x1"; then
23596 echo "$as_me:$LINENO: checking for mspack_create_chm_decompressor in -lmspack" >&5
23597echo $ECHO_N "checking for mspack_create_chm_decompressor in -lmspack... $ECHO_C" >&6
23598if test "${ac_cv_lib_mspack_mspack_create_chm_decompressor+set}" = set; then
23599 echo $ECHO_N "(cached) $ECHO_C" >&6
23600else
23601 ac_check_lib_save_LIBS=$LIBS
23602LIBS="-lmspack $LIBS"
23603cat >conftest.$ac_ext <<_ACEOF
23604/* confdefs.h. */
23605_ACEOF
23606cat confdefs.h >>conftest.$ac_ext
23607cat >>conftest.$ac_ext <<_ACEOF
23608/* end confdefs.h. */
23609
23610/* Override any gcc2 internal prototype to avoid an error. */
23611#ifdef __cplusplus
23612extern "C"
23613#endif
23614/* We use char because int might match the return type of a gcc2
23615 builtin and then its argument prototype would still apply. */
23616char mspack_create_chm_decompressor ();
23617int
23618main ()
23619{
23620mspack_create_chm_decompressor ();
23621 ;
23622 return 0;
23623}
23624_ACEOF
23625rm -f conftest.$ac_objext conftest$ac_exeext
23626if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 23627 (eval $ac_link) 2>conftest.er1
a848cd7e 23628 ac_status=$?
ac1cb8d3
VS
23629 grep -v '^ *+' conftest.er1 >conftest.err
23630 rm -f conftest.er1
23631 cat conftest.err >&5
a848cd7e
SC
23632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23633 (exit $ac_status); } &&
07158944 23634 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23636 (eval $ac_try) 2>&5
23637 ac_status=$?
23638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23639 (exit $ac_status); }; } &&
23640 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
23641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23642 (eval $ac_try) 2>&5
23643 ac_status=$?
23644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23645 (exit $ac_status); }; }; then
23646 ac_cv_lib_mspack_mspack_create_chm_decompressor=yes
23647else
23648 echo "$as_me: failed program was:" >&5
23649sed 's/^/| /' conftest.$ac_ext >&5
23650
23651ac_cv_lib_mspack_mspack_create_chm_decompressor=no
23652fi
ac1cb8d3
VS
23653rm -f conftest.err conftest.$ac_objext \
23654 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
23655LIBS=$ac_check_lib_save_LIBS
23656fi
23657echo "$as_me:$LINENO: result: $ac_cv_lib_mspack_mspack_create_chm_decompressor" >&5
23658echo "${ECHO_T}$ac_cv_lib_mspack_mspack_create_chm_decompressor" >&6
23659if test $ac_cv_lib_mspack_mspack_create_chm_decompressor = yes; then
23660 MSPACK_LINK=" -lmspack"
23661fi
23662
23663 fi
23664 if test "x$MSPACK_LINK" = "x" ; then
23665 wxUSE_LIBMSPACK=no
dd3a2d96
VZ
23666 fi
23667fi
23668
23669if test "$wxUSE_LIBMSPACK" != "no"; then
23670 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
23671#define wxUSE_LIBMSPACK 1
23672_ACEOF
23673
a848cd7e
SC
23674fi
23675
23676
23677
23678AFMINSTALL=
23679WIN32INSTALL=
23680
23681TOOLKIT=
23682TOOLKIT_INCLUDE=
23683WIDGET_SET=
23684
23685if test "$USE_WIN32" = 1 ; then
23686
23687for ac_header in w32api.h
23688do
23689as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23690if eval "test \"\${$as_ac_Header+set}\" = set"; then
23691 echo "$as_me:$LINENO: checking for $ac_header" >&5
23692echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
23693if eval "test \"\${$as_ac_Header+set}\" = set"; then
23694 echo $ECHO_N "(cached) $ECHO_C" >&6
23695fi
23696echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
23697echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
23698else
23699 # Is the header compilable?
23700echo "$as_me:$LINENO: checking $ac_header usability" >&5
23701echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
23702cat >conftest.$ac_ext <<_ACEOF
23703/* confdefs.h. */
23704_ACEOF
23705cat confdefs.h >>conftest.$ac_ext
23706cat >>conftest.$ac_ext <<_ACEOF
23707/* end confdefs.h. */
23708$ac_includes_default
23709#include <$ac_header>
23710_ACEOF
23711rm -f conftest.$ac_objext
23712if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23713 (eval $ac_compile) 2>conftest.er1
a848cd7e 23714 ac_status=$?
ac1cb8d3
VS
23715 grep -v '^ *+' conftest.er1 >conftest.err
23716 rm -f conftest.er1
23717 cat conftest.err >&5
a848cd7e
SC
23718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23719 (exit $ac_status); } &&
07158944 23720 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23722 (eval $ac_try) 2>&5
23723 ac_status=$?
23724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23725 (exit $ac_status); }; } &&
23726 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
23727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23728 (eval $ac_try) 2>&5
23729 ac_status=$?
23730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23731 (exit $ac_status); }; }; then
23732 ac_header_compiler=yes
23733else
23734 echo "$as_me: failed program was:" >&5
23735sed 's/^/| /' conftest.$ac_ext >&5
23736
23737ac_header_compiler=no
23738fi
ac1cb8d3 23739rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
23740echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23741echo "${ECHO_T}$ac_header_compiler" >&6
23742
23743# Is the header present?
23744echo "$as_me:$LINENO: checking $ac_header presence" >&5
23745echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
23746cat >conftest.$ac_ext <<_ACEOF
23747/* confdefs.h. */
23748_ACEOF
23749cat confdefs.h >>conftest.$ac_ext
23750cat >>conftest.$ac_ext <<_ACEOF
23751/* end confdefs.h. */
23752#include <$ac_header>
23753_ACEOF
23754if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23755 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23756 ac_status=$?
23757 grep -v '^ *+' conftest.er1 >conftest.err
23758 rm -f conftest.er1
23759 cat conftest.err >&5
23760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23761 (exit $ac_status); } >/dev/null; then
23762 if test -s conftest.err; then
23763 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 23764 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
23765 else
23766 ac_cpp_err=
23767 fi
23768else
23769 ac_cpp_err=yes
23770fi
23771if test -z "$ac_cpp_err"; then
23772 ac_header_preproc=yes
23773else
23774 echo "$as_me: failed program was:" >&5
23775sed 's/^/| /' conftest.$ac_ext >&5
23776
23777 ac_header_preproc=no
23778fi
23779rm -f conftest.err conftest.$ac_ext
23780echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23781echo "${ECHO_T}$ac_header_preproc" >&6
23782
23783# So? What about this header?
ac1cb8d3
VS
23784case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23785 yes:no: )
a848cd7e
SC
23786 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23787echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
23788 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23789echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23790 ac_header_preproc=yes
a848cd7e 23791 ;;
ac1cb8d3 23792 no:yes:* )
a848cd7e
SC
23793 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23794echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
23795 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23796echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23797 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23798echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23799 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23800echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
23801 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23802echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
23803 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23804echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
23805 (
23806 cat <<\_ASBOX
ac1cb8d3
VS
23807## ----------------------------------------- ##
23808## Report this to wx-dev@lists.wxwidgets.org ##
23809## ----------------------------------------- ##
a848cd7e
SC
23810_ASBOX
23811 ) |
23812 sed "s/^/$as_me: WARNING: /" >&2
23813 ;;
23814esac
23815echo "$as_me:$LINENO: checking for $ac_header" >&5
23816echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
23817if eval "test \"\${$as_ac_Header+set}\" = set"; then
23818 echo $ECHO_N "(cached) $ECHO_C" >&6
23819else
ac1cb8d3 23820 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
23821fi
23822echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
23823echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
23824
23825fi
23826if test `eval echo '${'$as_ac_Header'}'` = yes; then
23827 cat >>confdefs.h <<_ACEOF
23828#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23829_ACEOF
23830
23831fi
23832
23833done
23834
23835 if test "${ac_cv_header_windows_h+set}" = set; then
23836 echo "$as_me:$LINENO: checking for windows.h" >&5
23837echo $ECHO_N "checking for windows.h... $ECHO_C" >&6
23838if test "${ac_cv_header_windows_h+set}" = set; then
23839 echo $ECHO_N "(cached) $ECHO_C" >&6
23840fi
23841echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
23842echo "${ECHO_T}$ac_cv_header_windows_h" >&6
23843else
23844 # Is the header compilable?
23845echo "$as_me:$LINENO: checking windows.h usability" >&5
23846echo $ECHO_N "checking windows.h usability... $ECHO_C" >&6
23847cat >conftest.$ac_ext <<_ACEOF
23848/* confdefs.h. */
23849_ACEOF
23850cat confdefs.h >>conftest.$ac_ext
23851cat >>conftest.$ac_ext <<_ACEOF
23852/* end confdefs.h. */
23853$ac_includes_default
23854#include <windows.h>
23855_ACEOF
23856rm -f conftest.$ac_objext
23857if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23858 (eval $ac_compile) 2>conftest.er1
a848cd7e 23859 ac_status=$?
ac1cb8d3
VS
23860 grep -v '^ *+' conftest.er1 >conftest.err
23861 rm -f conftest.er1
23862 cat conftest.err >&5
a848cd7e
SC
23863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23864 (exit $ac_status); } &&
07158944 23865 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23867 (eval $ac_try) 2>&5
23868 ac_status=$?
23869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23870 (exit $ac_status); }; } &&
23871 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
23872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23873 (eval $ac_try) 2>&5
23874 ac_status=$?
23875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23876 (exit $ac_status); }; }; then
23877 ac_header_compiler=yes
23878else
23879 echo "$as_me: failed program was:" >&5
23880sed 's/^/| /' conftest.$ac_ext >&5
23881
23882ac_header_compiler=no
23883fi
ac1cb8d3 23884rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
23885echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23886echo "${ECHO_T}$ac_header_compiler" >&6
23887
23888# Is the header present?
23889echo "$as_me:$LINENO: checking windows.h presence" >&5
23890echo $ECHO_N "checking windows.h presence... $ECHO_C" >&6
23891cat >conftest.$ac_ext <<_ACEOF
23892/* confdefs.h. */
23893_ACEOF
23894cat confdefs.h >>conftest.$ac_ext
23895cat >>conftest.$ac_ext <<_ACEOF
23896/* end confdefs.h. */
23897#include <windows.h>
23898_ACEOF
23899if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23900 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23901 ac_status=$?
23902 grep -v '^ *+' conftest.er1 >conftest.err
23903 rm -f conftest.er1
23904 cat conftest.err >&5
23905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23906 (exit $ac_status); } >/dev/null; then
23907 if test -s conftest.err; then
23908 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 23909 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
23910 else
23911 ac_cpp_err=
23912 fi
23913else
23914 ac_cpp_err=yes
23915fi
23916if test -z "$ac_cpp_err"; then
23917 ac_header_preproc=yes
23918else
23919 echo "$as_me: failed program was:" >&5
23920sed 's/^/| /' conftest.$ac_ext >&5
23921
23922 ac_header_preproc=no
23923fi
23924rm -f conftest.err conftest.$ac_ext
23925echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23926echo "${ECHO_T}$ac_header_preproc" >&6
23927
23928# So? What about this header?
ac1cb8d3
VS
23929case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23930 yes:no: )
a848cd7e
SC
23931 { echo "$as_me:$LINENO: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&5
23932echo "$as_me: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
23933 { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the compiler's result" >&5
23934echo "$as_me: WARNING: windows.h: proceeding with the compiler's result" >&2;}
23935 ac_header_preproc=yes
a848cd7e 23936 ;;
ac1cb8d3 23937 no:yes:* )
a848cd7e
SC
23938 { echo "$as_me:$LINENO: WARNING: windows.h: present but cannot be compiled" >&5
23939echo "$as_me: WARNING: windows.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
23940 { echo "$as_me:$LINENO: WARNING: windows.h: check for missing prerequisite headers?" >&5
23941echo "$as_me: WARNING: windows.h: check for missing prerequisite headers?" >&2;}
23942 { echo "$as_me:$LINENO: WARNING: windows.h: see the Autoconf documentation" >&5
23943echo "$as_me: WARNING: windows.h: see the Autoconf documentation" >&2;}
23944 { echo "$as_me:$LINENO: WARNING: windows.h: section \"Present But Cannot Be Compiled\"" >&5
23945echo "$as_me: WARNING: windows.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
23946 { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the preprocessor's result" >&5
23947echo "$as_me: WARNING: windows.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
23948 { echo "$as_me:$LINENO: WARNING: windows.h: in the future, the compiler will take precedence" >&5
23949echo "$as_me: WARNING: windows.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
23950 (
23951 cat <<\_ASBOX
ac1cb8d3
VS
23952## ----------------------------------------- ##
23953## Report this to wx-dev@lists.wxwidgets.org ##
23954## ----------------------------------------- ##
a848cd7e
SC
23955_ASBOX
23956 ) |
23957 sed "s/^/$as_me: WARNING: /" >&2
23958 ;;
23959esac
23960echo "$as_me:$LINENO: checking for windows.h" >&5
23961echo $ECHO_N "checking for windows.h... $ECHO_C" >&6
23962if test "${ac_cv_header_windows_h+set}" = set; then
23963 echo $ECHO_N "(cached) $ECHO_C" >&6
23964else
23965 ac_cv_header_windows_h=$ac_header_preproc
23966fi
23967echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
23968echo "${ECHO_T}$ac_cv_header_windows_h" >&6
23969
23970fi
23971if test $ac_cv_header_windows_h = yes; then
23972 :
23973else
23974
23975 { { echo "$as_me:$LINENO: error: please set CFLAGS to contain the location of windows.h" >&5
23976echo "$as_me: error: please set CFLAGS to contain the location of windows.h" >&2;}
23977 { (exit 1); exit 1; }; }
23978
23979fi
23980
23981
23982
23983 LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lcomdlg32 -lctl3d32 -ladvapi32 -lwsock32 -lgdi32"
23984
23985 if test "$wxUSE_ACCESSIBILITY" = "yes" ; then
23986 LIBS="$LIBS -loleacc"
23987 fi
23988
23989 case "${host}" in
23990 *-*-cygwin* )
23991 LIBS="$LIBS -lkernel32 -luser32"
23992 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WIN95__"
23993 esac
23994
23995 if test "$wxUSE_ODBC" = "sys" ; then
23996 wxUSE_ODBC = "yes"
23997 fi
23998 if test "$wxUSE_ODBC" = "yes" ; then
23999 LIBS=" -lodbc32 -lole32 -loleaut32 $LIBS"
24000 cat >>confdefs.h <<\_ACEOF
24001#define wxUSE_ODBC 1
24002_ACEOF
24003
24004 fi
24005
24006 RESFLAGS="--include-dir \$(top_srcdir)/include --include-dir \$(top_srcdir)/\$(program_dir) --define __WIN32__ --define __WIN95__ --define __GNUWIN32__"
24007 RESPROGRAMOBJ="\$(PROGRAM)_resources.o"
24008
24009 WIN32INSTALL=win32install
24010fi
24011
24012if test "$wxUSE_GUI" = "yes"; then
24013 USE_GUI=1
24014
24015 GUI_TK_LIBRARY=
24016
24017 WXGTK12=
24018 WXGTK127=
24019 WXGTK20=
24020 WXGPE=
24021
207bc66c
RN
24022 if test "$wxUSE_COCOA" = 1 ; then
24023 if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes"; then
24024 { echo "$as_me:$LINENO: WARNING: Printing not supported under wxCocoa yet, disabled" >&5
24025echo "$as_me: WARNING: Printing not supported under wxCocoa yet, disabled" >&2;}
24026 wxUSE_PRINTING_ARCHITECTURE=no
24027 fi
24028 if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
24029 { echo "$as_me:$LINENO: WARNING: Drag and Drop not supported under wxCocoa yet, disabled" >&5
24030echo "$as_me: WARNING: Drag and Drop not supported under wxCocoa yet, disabled" >&2;}
24031 wxUSE_DRAG_AND_DROP=no
24032 fi
24033 if test "$wxUSE_DRAGIMAGE" = "yes"; then
24034 { echo "$as_me:$LINENO: WARNING: Drag Image and DandD not supported under wxCocoa yet, disabled" >&5
24035echo "$as_me: WARNING: Drag Image and DandD not supported under wxCocoa yet, disabled" >&2;}
24036 wxUSE_DRAGIMAGE=no
24037 fi
24038 fi
24039
a848cd7e
SC
24040 if test "$wxUSE_MSW" = 1 ; then
24041 TOOLKIT=MSW
24042 GUIDIST=MSW_DIST
24043
ceec2216 24044 case "${host}" in
a848cd7e
SC
24045 *-*-mingw32* )
24046 WXCONFIG_LDFLAGS_GUI="$LDFLAGS -Wl,--subsystem,windows -mwindows"
24047 esac
24048 fi
24049
24050 if test "$wxUSE_GTK" = 1; then
24051 echo "$as_me:$LINENO: checking for GTK+ version" >&5
24052echo $ECHO_N "checking for GTK+ version... $ECHO_C" >&6
24053
24054 gtk_version_cached=1
24055 if test "${wx_cv_lib_gtk+set}" = set; then
24056 echo $ECHO_N "(cached) $ECHO_C" >&6
24057else
24058
24059 gtk_version_cached=0
24060 echo "$as_me:$LINENO: result: " >&5
24061echo "${ECHO_T}" >&6
24062
24063 GTK_MODULES=
24064 if test "$wxUSE_THREADS" = "yes"; then
24065 GTK_MODULES=gthread
24066 fi
24067
24068 wx_cv_lib_gtk=
24069 if test "x$wxUSE_GTK2" = "xyes"; then
24070 # Check whether --enable-gtktest or --disable-gtktest was given.
24071if test "${enable_gtktest+set}" = set; then
24072 enableval="$enable_gtktest"
24073
24074else
24075 enable_gtktest=yes
24076fi;
24077
24078 pkg_config_args=gtk+-2.0
24079 for module in . $GTK_MODULES
24080 do
24081 case "$module" in
24082 gthread)
24083 pkg_config_args="$pkg_config_args gthread-2.0"
24084 ;;
24085 esac
24086 done
24087
24088 no_gtk=""
24089
24090 # Extract the first word of "pkg-config", so it can be a program name with args.
24091set dummy pkg-config; ac_word=$2
24092echo "$as_me:$LINENO: checking for $ac_word" >&5
24093echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24094if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
24095 echo $ECHO_N "(cached) $ECHO_C" >&6
24096else
24097 case $PKG_CONFIG in
24098 [\\/]* | ?:[\\/]*)
24099 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
24100 ;;
24101 *)
24102 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24103for as_dir in $PATH
24104do
24105 IFS=$as_save_IFS
24106 test -z "$as_dir" && as_dir=.
24107 for ac_exec_ext in '' $ac_executable_extensions; do
24108 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24109 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
24110 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24111 break 2
24112 fi
24113done
24114done
24115
24116 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
24117 ;;
24118esac
24119fi
24120PKG_CONFIG=$ac_cv_path_PKG_CONFIG
24121
24122if test -n "$PKG_CONFIG"; then
24123 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
24124echo "${ECHO_T}$PKG_CONFIG" >&6
24125else
24126 echo "$as_me:$LINENO: result: no" >&5
24127echo "${ECHO_T}no" >&6
24128fi
24129
24130
24131 if test x$PKG_CONFIG != xno ; then
24132 if pkg-config --atleast-pkgconfig-version 0.7 ; then
24133 :
24134 else
c2218763 24135 echo "*** pkg-config too old; version 0.7 or better required."
a848cd7e
SC
24136 no_gtk=yes
24137 PKG_CONFIG=no
24138 fi
24139 else
24140 no_gtk=yes
24141 fi
24142
24143 min_gtk_version=2.0.0
24144 echo "$as_me:$LINENO: checking for GTK+ - version >= $min_gtk_version" >&5
24145echo $ECHO_N "checking for GTK+ - version >= $min_gtk_version... $ECHO_C" >&6
24146
24147 if test x$PKG_CONFIG != xno ; then
24148 ## don't try to run the test against uninstalled libtool libs
24149 if $PKG_CONFIG --uninstalled $pkg_config_args; then
24150 echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH"
24151 enable_gtktest=no
24152 fi
24153
24154 if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then
24155 :
24156 else
24157 no_gtk=yes
24158 fi
24159 fi
24160
24161 if test x"$no_gtk" = x ; then
24162 GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags`
24163 GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs`
24164 gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
24165 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
24166 gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
24167 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
24168 gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
24169 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
24170 if test "x$enable_gtktest" = "xyes" ; then
24171 ac_save_CFLAGS="$CFLAGS"
24172 ac_save_LIBS="$LIBS"
24173 CFLAGS="$CFLAGS $GTK_CFLAGS"
24174 LIBS="$GTK_LIBS $LIBS"
24175 rm -f conf.gtktest
24176 if test "$cross_compiling" = yes; then
24177 echo $ac_n "cross compiling; assumed OK... $ac_c"
24178else
24179 cat >conftest.$ac_ext <<_ACEOF
24180/* confdefs.h. */
24181_ACEOF
24182cat confdefs.h >>conftest.$ac_ext
24183cat >>conftest.$ac_ext <<_ACEOF
24184/* end confdefs.h. */
24185
24186#include <gtk/gtk.h>
24187#include <stdio.h>
24188#include <stdlib.h>
24189
24190int
24191main ()
24192{
24193 int major, minor, micro;
24194 char *tmp_version;
24195
24196 system ("touch conf.gtktest");
24197
24198 /* HP/UX 9 (%@#!) writes to sscanf strings */
24199 tmp_version = g_strdup("$min_gtk_version");
24200 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
24201 printf("%s, bad version string\n", "$min_gtk_version");
24202 exit(1);
24203 }
24204
24205 if ((gtk_major_version != $gtk_config_major_version) ||
24206 (gtk_minor_version != $gtk_config_minor_version) ||
24207 (gtk_micro_version != $gtk_config_micro_version))
24208 {
24209 printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
24210 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
24211 gtk_major_version, gtk_minor_version, gtk_micro_version);
24212 printf ("*** was found! If pkg-config was correct, then it is best\n");
24213 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
24214 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
24215 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
24216 printf("*** required on your system.\n");
24217 printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
24218 printf("*** to point to the correct configuration files\n");
24219 }
24220 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
24221 (gtk_minor_version != GTK_MINOR_VERSION) ||
24222 (gtk_micro_version != GTK_MICRO_VERSION))
24223 {
24224 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
24225 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
24226 printf("*** library (version %d.%d.%d)\n",
24227 gtk_major_version, gtk_minor_version, gtk_micro_version);
24228 }
24229 else
24230 {
24231 if ((gtk_major_version > major) ||
24232 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
24233 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
24234 {
24235 return 0;
24236 }
24237 else
24238 {
24239 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
24240 gtk_major_version, gtk_minor_version, gtk_micro_version);
24241 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
24242 major, minor, micro);
24243 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
24244 printf("***\n");
24245 printf("*** If you have already installed a sufficiently new version, this error\n");
24246 printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
24247 printf("*** being found. The easiest way to fix this is to remove the old version\n");
24248 printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n");
24249 printf("*** correct copy of pkg-config. (In this case, you will have to\n");
24250 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
24251 printf("*** so that the correct libraries are found at run-time))\n");
24252 }
24253 }
24254 return 1;
24255}
24256
24257_ACEOF
24258rm -f conftest$ac_exeext
24259if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24260 (eval $ac_link) 2>&5
24261 ac_status=$?
24262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24263 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24265 (eval $ac_try) 2>&5
24266 ac_status=$?
24267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24268 (exit $ac_status); }; }; then
24269 :
24270else
24271 echo "$as_me: program exited with status $ac_status" >&5
24272echo "$as_me: failed program was:" >&5
24273sed 's/^/| /' conftest.$ac_ext >&5
24274
24275( exit $ac_status )
24276no_gtk=yes
24277fi
ac1cb8d3 24278rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
24279fi
24280 CFLAGS="$ac_save_CFLAGS"
24281 LIBS="$ac_save_LIBS"
24282 fi
24283 fi
24284 if test "x$no_gtk" = x ; then
24285 echo "$as_me:$LINENO: result: yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&5
24286echo "${ECHO_T}yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&6
24287 wx_cv_lib_gtk=2.0
24288 else
24289 echo "$as_me:$LINENO: result: no" >&5
24290echo "${ECHO_T}no" >&6
24291 if test "$PKG_CONFIG" = "no" ; then
24292 echo "*** A new enough version of pkg-config was not found."
24293 echo "*** See http://pkgconfig.sourceforge.net"
24294 else
24295 if test -f conf.gtktest ; then
24296 :
24297 else
24298 echo "*** Could not run GTK+ test program, checking why..."
24299 ac_save_CFLAGS="$CFLAGS"
24300 ac_save_LIBS="$LIBS"
24301 CFLAGS="$CFLAGS $GTK_CFLAGS"
24302 LIBS="$LIBS $GTK_LIBS"
24303 cat >conftest.$ac_ext <<_ACEOF
24304/* confdefs.h. */
24305_ACEOF
24306cat confdefs.h >>conftest.$ac_ext
24307cat >>conftest.$ac_ext <<_ACEOF
24308/* end confdefs.h. */
24309
24310#include <gtk/gtk.h>
24311#include <stdio.h>
24312
24313int
24314main ()
24315{
24316 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
24317 ;
24318 return 0;
24319}
24320_ACEOF
24321rm -f conftest.$ac_objext conftest$ac_exeext
24322if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24323 (eval $ac_link) 2>conftest.er1
a848cd7e 24324 ac_status=$?
ac1cb8d3
VS
24325 grep -v '^ *+' conftest.er1 >conftest.err
24326 rm -f conftest.er1
24327 cat conftest.err >&5
a848cd7e
SC
24328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24329 (exit $ac_status); } &&
07158944 24330 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
24331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24332 (eval $ac_try) 2>&5
24333 ac_status=$?
24334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24335 (exit $ac_status); }; } &&
24336 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24338 (eval $ac_try) 2>&5
24339 ac_status=$?
24340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24341 (exit $ac_status); }; }; then
24342 echo "*** The test program compiled, but did not run. This usually means"
24343 echo "*** that the run-time linker is not finding GTK+ or finding the wrong"
24344 echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your"
24345 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
24346 echo "*** to the installed location Also, make sure you have run ldconfig if that"
24347 echo "*** is required on your system"
24348 echo "***"
24349 echo "*** If you have an old version installed, it is best to remove it, although"
24350 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
24351else
24352 echo "$as_me: failed program was:" >&5
24353sed 's/^/| /' conftest.$ac_ext >&5
24354
24355 echo "*** The test program failed to compile or link. See the file config.log for the"
24356 echo "*** exact error that occured. This usually means GTK+ is incorrectly installed."
24357fi
ac1cb8d3
VS
24358rm -f conftest.err conftest.$ac_objext \
24359 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24360 CFLAGS="$ac_save_CFLAGS"
24361 LIBS="$ac_save_LIBS"
24362 fi
24363 fi
24364 GTK_CFLAGS=""
24365 GTK_LIBS=""
24366 :
24367 fi
24368
24369
24370 rm -f conf.gtktest
24371
24372 else
24373
24374# Check whether --with-gtk-prefix or --without-gtk-prefix was given.
24375if test "${with_gtk_prefix+set}" = set; then
24376 withval="$with_gtk_prefix"
24377 gtk_config_prefix="$withval"
24378else
24379 gtk_config_prefix=""
24380fi;
24381
24382# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
24383if test "${with_gtk_exec_prefix+set}" = set; then
24384 withval="$with_gtk_exec_prefix"
24385 gtk_config_exec_prefix="$withval"
24386else
24387 gtk_config_exec_prefix=""
24388fi;
24389# Check whether --enable-gtktest or --disable-gtktest was given.
24390if test "${enable_gtktest+set}" = set; then
24391 enableval="$enable_gtktest"
24392
24393else
24394 enable_gtktest=yes
24395fi;
24396
24397 for module in . $GTK_MODULES
24398 do
24399 case "$module" in
24400 gthread)
24401 gtk_config_args="$gtk_config_args gthread"
24402 ;;
24403 esac
24404 done
24405
24406 if test x$gtk_config_exec_prefix != x ; then
24407 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
24408 if test x${GTK_CONFIG+set} != xset ; then
24409 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
24410 fi
24411 fi
24412 if test x$gtk_config_prefix != x ; then
24413 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
24414 if test x${GTK_CONFIG+set} != xset ; then
24415 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
24416 fi
24417 fi
24418
24419 # Extract the first word of "gtk-config", so it can be a program name with args.
24420set dummy gtk-config; ac_word=$2
24421echo "$as_me:$LINENO: checking for $ac_word" >&5
24422echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24423if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
24424 echo $ECHO_N "(cached) $ECHO_C" >&6
24425else
24426 case $GTK_CONFIG in
24427 [\\/]* | ?:[\\/]*)
24428 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
24429 ;;
24430 *)
24431 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24432for as_dir in $PATH
24433do
24434 IFS=$as_save_IFS
24435 test -z "$as_dir" && as_dir=.
24436 for ac_exec_ext in '' $ac_executable_extensions; do
24437 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24438 ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
24439 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24440 break 2
24441 fi
24442done
24443done
24444
24445 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
24446 ;;
24447esac
24448fi
24449GTK_CONFIG=$ac_cv_path_GTK_CONFIG
24450
24451if test -n "$GTK_CONFIG"; then
24452 echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
24453echo "${ECHO_T}$GTK_CONFIG" >&6
24454else
24455 echo "$as_me:$LINENO: result: no" >&5
24456echo "${ECHO_T}no" >&6
24457fi
24458
24459 min_gtk_version=1.2.7
24460 echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
24461echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6
24462 no_gtk=""
24463 if test "$GTK_CONFIG" = "no" ; then
24464 no_gtk=yes
24465 else
24466 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
24467 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
24468 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
24469 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
24470 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
24471 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
24472 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
24473 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
24474 if test "x$enable_gtktest" = "xyes" ; then
24475 ac_save_CFLAGS="$CFLAGS"
24476 ac_save_LIBS="$LIBS"
24477 CFLAGS="$CFLAGS $GTK_CFLAGS"
24478 LIBS="$GTK_LIBS $LIBS"
24479 rm -f conf.gtktest
24480 if test "$cross_compiling" = yes; then
24481 echo $ac_n "cross compiling; assumed OK... $ac_c"
24482else
24483 cat >conftest.$ac_ext <<_ACEOF
24484/* confdefs.h. */
24485_ACEOF
24486cat confdefs.h >>conftest.$ac_ext
24487cat >>conftest.$ac_ext <<_ACEOF
24488/* end confdefs.h. */
24489
24490#include <gtk/gtk.h>
24491#include <stdio.h>
24492#include <stdlib.h>
24493
24494int
24495main ()
24496{
24497 int major, minor, micro;
24498 char *tmp_version;
24499
24500 system ("touch conf.gtktest");
24501
24502 /* HP/UX 9 (%@#!) writes to sscanf strings */
24503 tmp_version = g_strdup("$min_gtk_version");
24504 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
24505 printf("%s, bad version string\n", "$min_gtk_version");
24506 exit(1);
24507 }
24508
24509 if ((gtk_major_version != $gtk_config_major_version) ||
24510 (gtk_minor_version != $gtk_config_minor_version) ||
24511 (gtk_micro_version != $gtk_config_micro_version))
24512 {
24513 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
24514 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
24515 gtk_major_version, gtk_minor_version, gtk_micro_version);
24516 printf ("*** was found! If gtk-config was correct, then it is best\n");
24517 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
24518 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
24519 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
24520 printf("*** required on your system.\n");
24521 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
24522 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
24523 printf("*** before re-running configure\n");
24524 }
24525#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
24526 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
24527 (gtk_minor_version != GTK_MINOR_VERSION) ||
24528 (gtk_micro_version != GTK_MICRO_VERSION))
24529 {
24530 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
24531 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
24532 printf("*** library (version %d.%d.%d)\n",
24533 gtk_major_version, gtk_minor_version, gtk_micro_version);
24534 }
24535#endif /* defined (GTK_MAJOR_VERSION) ... */
24536 else
24537 {
24538 if ((gtk_major_version > major) ||
24539 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
24540 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
24541 {
24542 return 0;
24543 }
24544 else
24545 {
24546 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
24547 gtk_major_version, gtk_minor_version, gtk_micro_version);
24548 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
24549 major, minor, micro);
24550 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
24551 printf("***\n");
24552 printf("*** If you have already installed a sufficiently new version, this error\n");
24553 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
24554 printf("*** being found. The easiest way to fix this is to remove the old version\n");
24555 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
24556 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
24557 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
24558 printf("*** so that the correct libraries are found at run-time))\n");
24559 }
24560 }
24561 return 1;
24562}
24563
24564_ACEOF
24565rm -f conftest$ac_exeext
24566if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24567 (eval $ac_link) 2>&5
24568 ac_status=$?
24569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24570 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24572 (eval $ac_try) 2>&5
24573 ac_status=$?
24574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24575 (exit $ac_status); }; }; then
24576 :
24577else
24578 echo "$as_me: program exited with status $ac_status" >&5
24579echo "$as_me: failed program was:" >&5
24580sed 's/^/| /' conftest.$ac_ext >&5
24581
24582( exit $ac_status )
24583no_gtk=yes
24584fi
ac1cb8d3 24585rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
24586fi
24587 CFLAGS="$ac_save_CFLAGS"
24588 LIBS="$ac_save_LIBS"
24589 fi
24590 fi
24591 if test "x$no_gtk" = x ; then
24592 echo "$as_me:$LINENO: result: yes" >&5
24593echo "${ECHO_T}yes" >&6
24594 wx_cv_lib_gtk=1.2.7
24595 else
24596 echo "$as_me:$LINENO: result: no" >&5
24597echo "${ECHO_T}no" >&6
24598 if test "$GTK_CONFIG" = "no" ; then
24599 echo "*** The gtk-config script installed by GTK could not be found"
24600 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
24601 echo "*** your path, or set the GTK_CONFIG environment variable to the"
24602 echo "*** full path to gtk-config."
24603 else
24604 if test -f conf.gtktest ; then
24605 :
24606 else
24607 echo "*** Could not run GTK test program, checking why..."
24608 CFLAGS="$CFLAGS $GTK_CFLAGS"
24609 LIBS="$LIBS $GTK_LIBS"
24610 cat >conftest.$ac_ext <<_ACEOF
24611/* confdefs.h. */
24612_ACEOF
24613cat confdefs.h >>conftest.$ac_ext
24614cat >>conftest.$ac_ext <<_ACEOF
24615/* end confdefs.h. */
24616
24617#include <gtk/gtk.h>
24618#include <stdio.h>
24619
24620int
24621main ()
24622{
24623 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
24624 ;
24625 return 0;
24626}
24627_ACEOF
24628rm -f conftest.$ac_objext conftest$ac_exeext
24629if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24630 (eval $ac_link) 2>conftest.er1
a848cd7e 24631 ac_status=$?
ac1cb8d3
VS
24632 grep -v '^ *+' conftest.er1 >conftest.err
24633 rm -f conftest.er1
24634 cat conftest.err >&5
a848cd7e
SC
24635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24636 (exit $ac_status); } &&
07158944 24637 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
24638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24639 (eval $ac_try) 2>&5
24640 ac_status=$?
24641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24642 (exit $ac_status); }; } &&
24643 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24645 (eval $ac_try) 2>&5
24646 ac_status=$?
24647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24648 (exit $ac_status); }; }; then
24649 echo "*** The test program compiled, but did not run. This usually means"
24650 echo "*** that the run-time linker is not finding GTK or finding the wrong"
24651 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
24652 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
24653 echo "*** to the installed location Also, make sure you have run ldconfig if that"
24654 echo "*** is required on your system"
24655 echo "***"
24656 echo "*** If you have an old version installed, it is best to remove it, although"
24657 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
24658 echo "***"
24659 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
24660 echo "*** came with the system with the command"
24661 echo "***"
24662 echo "*** rpm --erase --nodeps gtk gtk-devel"
24663else
24664 echo "$as_me: failed program was:" >&5
24665sed 's/^/| /' conftest.$ac_ext >&5
24666
24667 echo "*** The test program failed to compile or link. See the file config.log for the"
24668 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
24669 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
24670 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
24671fi
ac1cb8d3
VS
24672rm -f conftest.err conftest.$ac_objext \
24673 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24674 CFLAGS="$ac_save_CFLAGS"
24675 LIBS="$ac_save_LIBS"
24676 fi
24677 fi
24678 GTK_CFLAGS=""
24679 GTK_LIBS=""
24680 :
24681 fi
24682
24683
24684 rm -f conf.gtktest
24685
24686
24687 if test -z "$wx_cv_lib_gtk"; then
24688
24689# Check whether --with-gtk-prefix or --without-gtk-prefix was given.
24690if test "${with_gtk_prefix+set}" = set; then
24691 withval="$with_gtk_prefix"
24692 gtk_config_prefix="$withval"
24693else
24694 gtk_config_prefix=""
24695fi;
24696
24697# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
24698if test "${with_gtk_exec_prefix+set}" = set; then
24699 withval="$with_gtk_exec_prefix"
24700 gtk_config_exec_prefix="$withval"
24701else
24702 gtk_config_exec_prefix=""
24703fi;
24704# Check whether --enable-gtktest or --disable-gtktest was given.
24705if test "${enable_gtktest+set}" = set; then
24706 enableval="$enable_gtktest"
24707
24708else
24709 enable_gtktest=yes
24710fi;
24711
24712 for module in . $GTK_MODULES
24713 do
24714 case "$module" in
24715 gthread)
24716 gtk_config_args="$gtk_config_args gthread"
24717 ;;
24718 esac
24719 done
24720
24721 if test x$gtk_config_exec_prefix != x ; then
24722 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
24723 if test x${GTK_CONFIG+set} != xset ; then
24724 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
24725 fi
24726 fi
24727 if test x$gtk_config_prefix != x ; then
24728 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
24729 if test x${GTK_CONFIG+set} != xset ; then
24730 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
24731 fi
24732 fi
24733
24734 # Extract the first word of "gtk-config", so it can be a program name with args.
24735set dummy gtk-config; ac_word=$2
24736echo "$as_me:$LINENO: checking for $ac_word" >&5
24737echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24738if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
24739 echo $ECHO_N "(cached) $ECHO_C" >&6
24740else
24741 case $GTK_CONFIG in
24742 [\\/]* | ?:[\\/]*)
24743 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
24744 ;;
24745 *)
24746 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24747for as_dir in $PATH
24748do
24749 IFS=$as_save_IFS
24750 test -z "$as_dir" && as_dir=.
24751 for ac_exec_ext in '' $ac_executable_extensions; do
24752 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24753 ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
24754 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24755 break 2
24756 fi
24757done
24758done
24759
24760 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
24761 ;;
24762esac
24763fi
24764GTK_CONFIG=$ac_cv_path_GTK_CONFIG
24765
24766if test -n "$GTK_CONFIG"; then
24767 echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
24768echo "${ECHO_T}$GTK_CONFIG" >&6
24769else
24770 echo "$as_me:$LINENO: result: no" >&5
24771echo "${ECHO_T}no" >&6
24772fi
24773
24774 min_gtk_version=1.2.3
24775 echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
24776echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6
24777 no_gtk=""
24778 if test "$GTK_CONFIG" = "no" ; then
24779 no_gtk=yes
24780 else
24781 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
24782 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
24783 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
24784 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
24785 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
24786 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
24787 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
24788 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
24789 if test "x$enable_gtktest" = "xyes" ; then
24790 ac_save_CFLAGS="$CFLAGS"
24791 ac_save_LIBS="$LIBS"
24792 CFLAGS="$CFLAGS $GTK_CFLAGS"
24793 LIBS="$GTK_LIBS $LIBS"
24794 rm -f conf.gtktest
24795 if test "$cross_compiling" = yes; then
24796 echo $ac_n "cross compiling; assumed OK... $ac_c"
24797else
24798 cat >conftest.$ac_ext <<_ACEOF
24799/* confdefs.h. */
24800_ACEOF
24801cat confdefs.h >>conftest.$ac_ext
24802cat >>conftest.$ac_ext <<_ACEOF
24803/* end confdefs.h. */
24804
24805#include <gtk/gtk.h>
24806#include <stdio.h>
24807#include <stdlib.h>
24808
24809int
24810main ()
24811{
24812 int major, minor, micro;
24813 char *tmp_version;
24814
24815 system ("touch conf.gtktest");
24816
24817 /* HP/UX 9 (%@#!) writes to sscanf strings */
24818 tmp_version = g_strdup("$min_gtk_version");
24819 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
24820 printf("%s, bad version string\n", "$min_gtk_version");
24821 exit(1);
24822 }
24823
24824 if ((gtk_major_version != $gtk_config_major_version) ||
24825 (gtk_minor_version != $gtk_config_minor_version) ||
24826 (gtk_micro_version != $gtk_config_micro_version))
24827 {
24828 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
24829 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
24830 gtk_major_version, gtk_minor_version, gtk_micro_version);
24831 printf ("*** was found! If gtk-config was correct, then it is best\n");
24832 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
24833 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
24834 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
24835 printf("*** required on your system.\n");
24836 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
24837 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
24838 printf("*** before re-running configure\n");
24839 }
24840#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
24841 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
24842 (gtk_minor_version != GTK_MINOR_VERSION) ||
24843 (gtk_micro_version != GTK_MICRO_VERSION))
24844 {
24845 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
24846 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
24847 printf("*** library (version %d.%d.%d)\n",
24848 gtk_major_version, gtk_minor_version, gtk_micro_version);
24849 }
24850#endif /* defined (GTK_MAJOR_VERSION) ... */
24851 else
24852 {
24853 if ((gtk_major_version > major) ||
24854 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
24855 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
24856 {
24857 return 0;
24858 }
24859 else
24860 {
24861 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
24862 gtk_major_version, gtk_minor_version, gtk_micro_version);
24863 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
24864 major, minor, micro);
24865 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
24866 printf("***\n");
24867 printf("*** If you have already installed a sufficiently new version, this error\n");
24868 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
24869 printf("*** being found. The easiest way to fix this is to remove the old version\n");
24870 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
24871 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
24872 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
24873 printf("*** so that the correct libraries are found at run-time))\n");
24874 }
24875 }
24876 return 1;
24877}
24878
24879_ACEOF
24880rm -f conftest$ac_exeext
24881if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24882 (eval $ac_link) 2>&5
24883 ac_status=$?
24884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24885 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24887 (eval $ac_try) 2>&5
24888 ac_status=$?
24889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24890 (exit $ac_status); }; }; then
24891 :
24892else
24893 echo "$as_me: program exited with status $ac_status" >&5
24894echo "$as_me: failed program was:" >&5
24895sed 's/^/| /' conftest.$ac_ext >&5
24896
24897( exit $ac_status )
24898no_gtk=yes
24899fi
ac1cb8d3 24900rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
24901fi
24902 CFLAGS="$ac_save_CFLAGS"
24903 LIBS="$ac_save_LIBS"
24904 fi
24905 fi
24906 if test "x$no_gtk" = x ; then
24907 echo "$as_me:$LINENO: result: yes" >&5
24908echo "${ECHO_T}yes" >&6
24909 wx_cv_lib_gtk=1.2.3
24910 else
24911 echo "$as_me:$LINENO: result: no" >&5
24912echo "${ECHO_T}no" >&6
24913 if test "$GTK_CONFIG" = "no" ; then
24914 echo "*** The gtk-config script installed by GTK could not be found"
24915 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
24916 echo "*** your path, or set the GTK_CONFIG environment variable to the"
24917 echo "*** full path to gtk-config."
24918 else
24919 if test -f conf.gtktest ; then
24920 :
24921 else
24922 echo "*** Could not run GTK test program, checking why..."
24923 CFLAGS="$CFLAGS $GTK_CFLAGS"
24924 LIBS="$LIBS $GTK_LIBS"
24925 cat >conftest.$ac_ext <<_ACEOF
24926/* confdefs.h. */
24927_ACEOF
24928cat confdefs.h >>conftest.$ac_ext
24929cat >>conftest.$ac_ext <<_ACEOF
24930/* end confdefs.h. */
24931
24932#include <gtk/gtk.h>
24933#include <stdio.h>
24934
24935int
24936main ()
24937{
24938 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
24939 ;
24940 return 0;
24941}
24942_ACEOF
24943rm -f conftest.$ac_objext conftest$ac_exeext
24944if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24945 (eval $ac_link) 2>conftest.er1
a848cd7e 24946 ac_status=$?
ac1cb8d3
VS
24947 grep -v '^ *+' conftest.er1 >conftest.err
24948 rm -f conftest.er1
24949 cat conftest.err >&5
a848cd7e
SC
24950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24951 (exit $ac_status); } &&
07158944 24952 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
24953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24954 (eval $ac_try) 2>&5
24955 ac_status=$?
24956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24957 (exit $ac_status); }; } &&
24958 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24960 (eval $ac_try) 2>&5
24961 ac_status=$?
24962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24963 (exit $ac_status); }; }; then
24964 echo "*** The test program compiled, but did not run. This usually means"
24965 echo "*** that the run-time linker is not finding GTK or finding the wrong"
24966 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
24967 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
24968 echo "*** to the installed location Also, make sure you have run ldconfig if that"
24969 echo "*** is required on your system"
24970 echo "***"
24971 echo "*** If you have an old version installed, it is best to remove it, although"
24972 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
24973 echo "***"
24974 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
24975 echo "*** came with the system with the command"
24976 echo "***"
24977 echo "*** rpm --erase --nodeps gtk gtk-devel"
24978else
24979 echo "$as_me: failed program was:" >&5
24980sed 's/^/| /' conftest.$ac_ext >&5
24981
24982 echo "*** The test program failed to compile or link. See the file config.log for the"
24983 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
24984 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
24985 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
24986fi
ac1cb8d3
VS
24987rm -f conftest.err conftest.$ac_objext \
24988 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24989 CFLAGS="$ac_save_CFLAGS"
24990 LIBS="$ac_save_LIBS"
24991 fi
24992 fi
24993 GTK_CFLAGS=""
24994 GTK_LIBS=""
24995 :
24996 fi
24997
24998
24999 rm -f conf.gtktest
25000
25001 fi
25002 fi
25003
25004 if test -z "$wx_cv_lib_gtk"; then
25005 wx_cv_lib_gtk=none
25006 else
25007 wx_cv_cflags_gtk=$GTK_CFLAGS
25008 wx_cv_libs_gtk=$GTK_LIBS
25009 fi
25010
25011
25012fi
25013
25014
25015 if test "$gtk_version_cached" = 1; then
25016 echo "$as_me:$LINENO: result: $wx_cv_lib_gtk" >&5
25017echo "${ECHO_T}$wx_cv_lib_gtk" >&6
25018 fi
25019
25020 case "$wx_cv_lib_gtk" in
25021 2.0) WXGTK20=1
25022 TOOLKIT_VERSION=2
25023 ;;
25024 1.2.7) WXGTK127=1
25025 WXGTK12=1
25026 ;;
25027 1.2.3) WXGTK12=1
25028 ;;
25029 *) { { echo "$as_me:$LINENO: error:
25030Please check that gtk-config is in path, the directory
25031where GTK+ libraries are installed (returned by
25032'gtk-config --libs' command) is in LD_LIBRARY_PATH or
25033equivalent variable and GTK+ is version 1.2.3 or above.
25034 " >&5
25035echo "$as_me: error:
25036Please check that gtk-config is in path, the directory
25037where GTK+ libraries are installed (returned by
25038'gtk-config --libs' command) is in LD_LIBRARY_PATH or
25039equivalent variable and GTK+ is version 1.2.3 or above.
25040 " >&2;}
25041 { (exit 1); exit 1; }; }
25042 ;;
25043 esac
25044
25045 if test "$WXGTK20" = 1; then
304205f1
VS
25046 save_CFLAGS="$CFLAGS"
25047 save_LIBS="$LIBS"
25048 CFLAGS="$CFLAGS $GTK_CFLAGS"
25049 LIBS="$LIBS $GTK_LIBS"
25050
9755e73b 25051
304205f1
VS
25052for ac_func in pango_font_family_is_monospace
25053do
25054as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25055echo "$as_me:$LINENO: checking for $ac_func" >&5
25056echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25057if eval "test \"\${$as_ac_var+set}\" = set"; then
25058 echo $ECHO_N "(cached) $ECHO_C" >&6
25059else
25060 cat >conftest.$ac_ext <<_ACEOF
25061/* confdefs.h. */
25062_ACEOF
25063cat confdefs.h >>conftest.$ac_ext
25064cat >>conftest.$ac_ext <<_ACEOF
25065/* end confdefs.h. */
25066/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25067 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25068#define $ac_func innocuous_$ac_func
25069
25070/* System header to define __stub macros and hopefully few prototypes,
25071 which can conflict with char $ac_func (); below.
25072 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25073 <limits.h> exists even on freestanding compilers. */
25074
25075#ifdef __STDC__
25076# include <limits.h>
25077#else
25078# include <assert.h>
25079#endif
25080
25081#undef $ac_func
25082
25083/* Override any gcc2 internal prototype to avoid an error. */
25084#ifdef __cplusplus
25085extern "C"
25086{
25087#endif
25088/* We use char because int might match the return type of a gcc2
25089 builtin and then its argument prototype would still apply. */
25090char $ac_func ();
25091/* The GNU C library defines this for functions which it implements
25092 to always fail with ENOSYS. Some functions are actually named
25093 something starting with __ and the normal name is an alias. */
25094#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25095choke me
25096#else
25097char (*f) () = $ac_func;
25098#endif
25099#ifdef __cplusplus
25100}
25101#endif
25102
25103int
25104main ()
25105{
25106return f != $ac_func;
25107 ;
25108 return 0;
25109}
25110_ACEOF
25111rm -f conftest.$ac_objext conftest$ac_exeext
25112if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25113 (eval $ac_link) 2>conftest.er1
25114 ac_status=$?
25115 grep -v '^ *+' conftest.er1 >conftest.err
25116 rm -f conftest.er1
25117 cat conftest.err >&5
25118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25119 (exit $ac_status); } &&
07158944 25120 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
304205f1
VS
25121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25122 (eval $ac_try) 2>&5
25123 ac_status=$?
25124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25125 (exit $ac_status); }; } &&
25126 { ac_try='test -s conftest$ac_exeext'
25127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25128 (eval $ac_try) 2>&5
25129 ac_status=$?
25130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25131 (exit $ac_status); }; }; then
25132 eval "$as_ac_var=yes"
25133else
25134 echo "$as_me: failed program was:" >&5
25135sed 's/^/| /' conftest.$ac_ext >&5
25136
25137eval "$as_ac_var=no"
25138fi
25139rm -f conftest.err conftest.$ac_objext \
25140 conftest$ac_exeext conftest.$ac_ext
25141fi
25142echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25143echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25144if test `eval echo '${'$as_ac_var'}'` = yes; then
25145 cat >>confdefs.h <<_ACEOF
25146#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25147_ACEOF
25148
25149fi
25150done
25151
9755e73b
VS
25152
25153 echo "$as_me:$LINENO: checking if GTK+ is version >= 2.4" >&5
25154echo $ECHO_N "checking if GTK+ is version >= 2.4... $ECHO_C" >&6
25155 cat >conftest.$ac_ext <<_ACEOF
25156/* confdefs.h. */
25157_ACEOF
25158cat confdefs.h >>conftest.$ac_ext
25159cat >>conftest.$ac_ext <<_ACEOF
25160/* end confdefs.h. */
25161
25162 #include <gtk/gtk.h>
25163
25164int
25165main ()
25166{
25167
25168 #if !GTK_CHECK_VERSION(2,4,0)
25169 #error "Not GTK+ 2.4"
25170 #endif
25171
25172 ;
25173 return 0;
25174}
25175_ACEOF
25176rm -f conftest.$ac_objext
25177if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25178 (eval $ac_compile) 2>conftest.er1
25179 ac_status=$?
25180 grep -v '^ *+' conftest.er1 >conftest.err
25181 rm -f conftest.er1
25182 cat conftest.err >&5
25183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25184 (exit $ac_status); } &&
07158944 25185 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9755e73b
VS
25186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25187 (eval $ac_try) 2>&5
25188 ac_status=$?
25189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25190 (exit $ac_status); }; } &&
25191 { ac_try='test -s conftest.$ac_objext'
25192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25193 (eval $ac_try) 2>&5
25194 ac_status=$?
25195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25196 (exit $ac_status); }; }; then
25197
25198 cat >>confdefs.h <<\_ACEOF
25199#define __WXGTK24__ 1
25200_ACEOF
25201
25202 echo "$as_me:$LINENO: result: yes" >&5
25203echo "${ECHO_T}yes" >&6
25204
25205else
25206 echo "$as_me: failed program was:" >&5
25207sed 's/^/| /' conftest.$ac_ext >&5
25208
25209
25210 echo "$as_me:$LINENO: result: no" >&5
25211echo "${ECHO_T}no" >&6
25212
25213fi
25214rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25215
304205f1
VS
25216 CFLAGS="$save_CFLAGS"
25217 LIBS="$save_LIBS"
a848cd7e
SC
25218 else
25219 if test "$wxUSE_UNICODE" = "yes"; then
25220 { echo "$as_me:$LINENO: WARNING: Unicode configuration not supported with GTK+ 1.x" >&5
25221echo "$as_me: WARNING: Unicode configuration not supported with GTK+ 1.x" >&2;}
25222 wxUSE_UNICODE=no
25223 fi
25224 fi
25225
25226 if test "$USE_DARWIN" != 1; then
25227
25228for ac_func in poll
25229do
25230as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25231echo "$as_me:$LINENO: checking for $ac_func" >&5
25232echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25233if eval "test \"\${$as_ac_var+set}\" = set"; then
25234 echo $ECHO_N "(cached) $ECHO_C" >&6
25235else
25236 cat >conftest.$ac_ext <<_ACEOF
25237/* confdefs.h. */
25238_ACEOF
25239cat confdefs.h >>conftest.$ac_ext
25240cat >>conftest.$ac_ext <<_ACEOF
25241/* end confdefs.h. */
ac1cb8d3
VS
25242/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25243 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25244#define $ac_func innocuous_$ac_func
25245
a848cd7e
SC
25246/* System header to define __stub macros and hopefully few prototypes,
25247 which can conflict with char $ac_func (); below.
25248 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25249 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 25250
a848cd7e
SC
25251#ifdef __STDC__
25252# include <limits.h>
25253#else
25254# include <assert.h>
25255#endif
ac1cb8d3
VS
25256
25257#undef $ac_func
25258
a848cd7e
SC
25259/* Override any gcc2 internal prototype to avoid an error. */
25260#ifdef __cplusplus
25261extern "C"
25262{
25263#endif
25264/* We use char because int might match the return type of a gcc2
25265 builtin and then its argument prototype would still apply. */
25266char $ac_func ();
25267/* The GNU C library defines this for functions which it implements
25268 to always fail with ENOSYS. Some functions are actually named
25269 something starting with __ and the normal name is an alias. */
25270#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25271choke me
25272#else
25273char (*f) () = $ac_func;
25274#endif
25275#ifdef __cplusplus
25276}
25277#endif
25278
25279int
25280main ()
25281{
25282return f != $ac_func;
25283 ;
25284 return 0;
25285}
25286_ACEOF
25287rm -f conftest.$ac_objext conftest$ac_exeext
25288if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25289 (eval $ac_link) 2>conftest.er1
a848cd7e 25290 ac_status=$?
ac1cb8d3
VS
25291 grep -v '^ *+' conftest.er1 >conftest.err
25292 rm -f conftest.er1
25293 cat conftest.err >&5
a848cd7e
SC
25294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25295 (exit $ac_status); } &&
07158944 25296 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
25297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25298 (eval $ac_try) 2>&5
25299 ac_status=$?
25300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25301 (exit $ac_status); }; } &&
25302 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25304 (eval $ac_try) 2>&5
25305 ac_status=$?
25306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25307 (exit $ac_status); }; }; then
25308 eval "$as_ac_var=yes"
25309else
25310 echo "$as_me: failed program was:" >&5
25311sed 's/^/| /' conftest.$ac_ext >&5
25312
25313eval "$as_ac_var=no"
25314fi
ac1cb8d3
VS
25315rm -f conftest.err conftest.$ac_objext \
25316 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25317fi
25318echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25319echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25320if test `eval echo '${'$as_ac_var'}'` = yes; then
25321 cat >>confdefs.h <<_ACEOF
25322#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25323_ACEOF
25324
25325fi
25326done
25327
25328 fi
25329
25330 TOOLKIT_INCLUDE="$wx_cv_cflags_gtk"
25331 GUI_TK_LIBRARY="$wx_cv_libs_gtk $GUI_TK_LIBRARY"
25332
25333 AFMINSTALL=afminstall
25334 TOOLKIT=GTK
25335 GUIDIST=GTK_DIST
25336
25337 echo "$as_me:$LINENO: checking for gdk_im_open in -lgdk" >&5
25338echo $ECHO_N "checking for gdk_im_open in -lgdk... $ECHO_C" >&6
25339if test "${ac_cv_lib_gdk_gdk_im_open+set}" = set; then
25340 echo $ECHO_N "(cached) $ECHO_C" >&6
25341else
25342 ac_check_lib_save_LIBS=$LIBS
25343LIBS="-lgdk $LIBS"
25344cat >conftest.$ac_ext <<_ACEOF
25345/* confdefs.h. */
25346_ACEOF
25347cat confdefs.h >>conftest.$ac_ext
25348cat >>conftest.$ac_ext <<_ACEOF
25349/* end confdefs.h. */
25350
25351/* Override any gcc2 internal prototype to avoid an error. */
25352#ifdef __cplusplus
25353extern "C"
25354#endif
25355/* We use char because int might match the return type of a gcc2
25356 builtin and then its argument prototype would still apply. */
25357char gdk_im_open ();
25358int
25359main ()
25360{
25361gdk_im_open ();
25362 ;
25363 return 0;
25364}
25365_ACEOF
25366rm -f conftest.$ac_objext conftest$ac_exeext
25367if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25368 (eval $ac_link) 2>conftest.er1
a848cd7e 25369 ac_status=$?
ac1cb8d3
VS
25370 grep -v '^ *+' conftest.er1 >conftest.err
25371 rm -f conftest.er1
25372 cat conftest.err >&5
a848cd7e
SC
25373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25374 (exit $ac_status); } &&
07158944 25375 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
25376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25377 (eval $ac_try) 2>&5
25378 ac_status=$?
25379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25380 (exit $ac_status); }; } &&
25381 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25383 (eval $ac_try) 2>&5
25384 ac_status=$?
25385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25386 (exit $ac_status); }; }; then
25387 ac_cv_lib_gdk_gdk_im_open=yes
25388else
25389 echo "$as_me: failed program was:" >&5
25390sed 's/^/| /' conftest.$ac_ext >&5
25391
25392ac_cv_lib_gdk_gdk_im_open=no
25393fi
ac1cb8d3
VS
25394rm -f conftest.err conftest.$ac_objext \
25395 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25396LIBS=$ac_check_lib_save_LIBS
25397fi
25398echo "$as_me:$LINENO: result: $ac_cv_lib_gdk_gdk_im_open" >&5
25399echo "${ECHO_T}$ac_cv_lib_gdk_gdk_im_open" >&6
25400if test $ac_cv_lib_gdk_gdk_im_open = yes; then
25401 cat >>confdefs.h <<\_ACEOF
25402#define HAVE_XIM 1
25403_ACEOF
25404
25405fi
25406
25407
25408
25409 if test "$wxUSE_GPE" = "yes"; then
25410 echo "$as_me:$LINENO: checking for gpewidget library" >&5
25411echo $ECHO_N "checking for gpewidget library... $ECHO_C" >&6
25412
25413ac_find_libraries=
25414for ac_dir in $SEARCH_LIB /usr/lib;
25415 do
25416 for ac_extension in a so sl dylib; do
25417 if test -f "$ac_dir/libgpewidget.$ac_extension"; then
25418 ac_find_libraries=$ac_dir
25419 break 2
25420 fi
25421 done
25422 done
25423
25424 if test "$ac_find_libraries" != "" ; then
25425
25426 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
25427 result=$?
25428 if test $result = 0; then
25429 ac_path_to_link=""
25430 else
25431 ac_path_to_link=" -L$ac_find_libraries"
25432 fi
25433
25434 GUI_TK_LIBRARY="-L${prefix}/lib -lgpewidget $GUI_TK_LIBRARY"
25435 WXGPE=1
25436 echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5
25437echo "${ECHO_T}found at $ac_find_libraries" >&6
25438 else
25439 echo "$as_me:$LINENO: result: not found" >&5
25440echo "${ECHO_T}not found" >&6
25441 fi
25442
25443 fi
25444 fi
25445
25446 if test "$wxUSE_MGL" = 1; then
25447 echo "$as_me:$LINENO: checking for SciTech MGL library" >&5
25448echo $ECHO_N "checking for SciTech MGL library... $ECHO_C" >&6
25449 if test "x$MGL_ROOT" = x ; then
25450 echo "$as_me:$LINENO: result: not found" >&5
25451echo "${ECHO_T}not found" >&6
25452 { { echo "$as_me:$LINENO: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&5
25453echo "$as_me: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&2;}
25454 { (exit 1); exit 1; }; }
25455 else
25456 echo "$as_me:$LINENO: result: $MGL_ROOT" >&5
25457echo "${ECHO_T}$MGL_ROOT" >&6
25458 fi
25459
25460 echo "$as_me:$LINENO: checking for libmgl location" >&5
25461echo $ECHO_N "checking for libmgl location... $ECHO_C" >&6
25462 case "${host}" in
25463 *-*-linux* )
25464 if test "x$wxUSE_SHARED" = xyes ; then
25465 mgl_os_candidates="linux/gcc/x86/so linux/gcc/x86/a linux/gcc/glibc.so linux/gcc/glibc"
25466 else
25467 mgl_os_candidates="linux/gcc/x86/a linux/gcc/x86/so linux/gcc/glibc linux/gcc/glibc.so"
25468 fi
25469 ;;
25470 *-pc-msdosdjgpp )
25471 mgl_os_candidates="dos32/dj2"
25472 ;;
25473 *)
25474 { { echo "$as_me:$LINENO: error: This system type ${host} is not yet supported by wxMGL." >&5
25475echo "$as_me: error: This system type ${host} is not yet supported by wxMGL." >&2;}
25476 { (exit 1); exit 1; }; }
25477 esac
25478
25479 mgl_lib_type=""
25480 mgl_os=""
25481
25482 for mgl_os_i in $mgl_os_candidates ; do
25483 if test "x$mgl_os" = x ; then
25484 if test "$wxUSE_DEBUG_FLAG" = yes ; then
25485 if test -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.a -o \
25486 -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.so; then
25487 mgl_lib_type=debug
25488 mgl_os=$mgl_os_i
25489 fi
25490 fi
25491 if test "x$mgl_lib_type" = x ; then
25492 if test -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.a -o \
25493 -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.so; then
25494 mgl_lib_type=release
25495 mgl_os=$mgl_os_i
25496 fi
25497 fi
25498 fi
25499 done
25500
25501 if test "x$mgl_os" = x ; then
25502 echo "$as_me:$LINENO: result: not found" >&5
25503echo "${ECHO_T}not found" >&6
25504 { { echo "$as_me:$LINENO: error: Cannot find MGL libraries, make sure they are compiled." >&5
25505echo "$as_me: error: Cannot find MGL libraries, make sure they are compiled." >&2;}
25506 { (exit 1); exit 1; }; }
25507 fi
25508 echo "$as_me:$LINENO: result: \"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&5
25509echo "${ECHO_T}\"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&6
25510
25511 wxUSE_UNIVERSAL="yes"
25512
25513 TOOLKIT_INCLUDE="-I$MGL_ROOT/include"
25514 GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$mgl_lib_type/$mgl_os -lmgl -lmglcpp -lpm"
25515
25516 AFMINSTALL=afminstall
25517 TOOLKIT=MGL
25518 GUIDIST=MGL_DIST
25519 fi
25520
25521 if test "$wxUSE_MICROWIN" = 1; then
25522 echo "$as_me:$LINENO: checking for MicroWindows" >&5
25523echo $ECHO_N "checking for MicroWindows... $ECHO_C" >&6
25524 if test "x$MICROWINDOWS" = x ; then
25525 echo "$as_me:$LINENO: result: not found" >&5
25526echo "${ECHO_T}not found" >&6
25527 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&5
25528echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&2;}
25529 { (exit 1); exit 1; }; }
25530 else
25531 echo "$as_me:$LINENO: result: $MICROWINDOWS" >&5
25532echo "${ECHO_T}$MICROWINDOWS" >&6
25533 fi
25534
25535 if test -f $MICROWINDOWS/lib/libmwin.a; then
25536 echo "$as_me:$LINENO: result: MicroWindows' libraries found." >&5
25537echo "${ECHO_T}MicroWindows' libraries found." >&6
25538 else
25539 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows libraries, make sure they are compiled." >&5
25540echo "$as_me: error: Cannot find MicroWindows libraries, make sure they are compiled." >&2;}
25541 { (exit 1); exit 1; }; }
25542 fi
25543
25544 TOOLKIT_INCLUDE="-I$MICROWINDOWS/include"
25545 GUI_TK_LIBRARY="-L$MICROWINDOWS/lib -lmwin -lmwengine -mwfonts -mwdrivers -mwinlib"
25546
25547 wxUSE_UNIVERSAL="yes"
25548
25549 AFMINSTALL=afminstall
25550 TOOLKIT=MICROWIN
25551 GUIDIST=MICROWIN_DIST
25552
25553 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXMSW__ -D__WIN95__ -D__WIN32__ -DMWIN -DMICROWIN_NOCONTROLS -DMICROWIN_TODO=1"
25554 fi
25555
74b84332 25556 if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
07158944
VZ
25557
25558if test "x$ac_path_x_has_been_run" != xyes; then
25559 echo "$as_me:$LINENO: checking for X" >&5
a848cd7e
SC
25560echo $ECHO_N "checking for X... $ECHO_C" >&6
25561
07158944 25562ac_path_x_has_been_run=yes
a848cd7e
SC
25563
25564# Check whether --with-x or --without-x was given.
25565if test "${with_x+set}" = set; then
25566 withval="$with_x"
25567
25568fi;
25569# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
25570if test "x$with_x" = xno; then
25571 # The user explicitly disabled X.
25572 have_x=disabled
25573else
25574 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
25575 # Both variables are already set.
25576 have_x=yes
25577 else
25578 if test "${ac_cv_have_x+set}" = set; then
25579 echo $ECHO_N "(cached) $ECHO_C" >&6
25580else
25581 # One or both of the vars are not set, and there is no cached value.
25582ac_x_includes=no ac_x_libraries=no
25583rm -fr conftest.dir
25584if mkdir conftest.dir; then
25585 cd conftest.dir
25586 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
25587 cat >Imakefile <<'_ACEOF'
25588acfindx:
25589 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
25590_ACEOF
25591 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
25592 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
25593 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
25594 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
25595 for ac_extension in a so sl; do
25596 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
ac1cb8d3
VS
25597 test -f $ac_im_libdir/libX11.$ac_extension; then
25598 ac_im_usrlibdir=$ac_im_libdir; break
a848cd7e
SC
25599 fi
25600 done
25601 # Screen out bogus values from the imake configuration. They are
25602 # bogus both because they are the default anyway, and because
25603 # using them would break gcc on systems where it needs fixed includes.
25604 case $ac_im_incroot in
25605 /usr/include) ;;
25606 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
25607 esac
25608 case $ac_im_usrlibdir in
25609 /usr/lib | /lib) ;;
25610 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
25611 esac
25612 fi
25613 cd ..
25614 rm -fr conftest.dir
25615fi
25616
25617# Standard set of common directories for X headers.
25618# Check X11 before X11Rn because it is often a symlink to the current release.
25619ac_x_header_dirs='
25620/usr/X11/include
25621/usr/X11R6/include
25622/usr/X11R5/include
25623/usr/X11R4/include
25624
25625/usr/include/X11
25626/usr/include/X11R6
25627/usr/include/X11R5
25628/usr/include/X11R4
25629
25630/usr/local/X11/include
25631/usr/local/X11R6/include
25632/usr/local/X11R5/include
25633/usr/local/X11R4/include
25634
25635/usr/local/include/X11
25636/usr/local/include/X11R6
25637/usr/local/include/X11R5
25638/usr/local/include/X11R4
25639
25640/usr/X386/include
25641/usr/x386/include
25642/usr/XFree86/include/X11
25643
25644/usr/include
25645/usr/local/include
25646/usr/unsupported/include
25647/usr/athena/include
25648/usr/local/x11r5/include
25649/usr/lpp/Xamples/include
25650
25651/usr/openwin/include
25652/usr/openwin/share/include'
25653
25654if test "$ac_x_includes" = no; then
07158944 25655 # Guess where to find include files, by looking for a specified header file.
a848cd7e
SC
25656 # First, try using that file with no special directory specified.
25657 cat >conftest.$ac_ext <<_ACEOF
25658/* confdefs.h. */
25659_ACEOF
25660cat confdefs.h >>conftest.$ac_ext
25661cat >>conftest.$ac_ext <<_ACEOF
25662/* end confdefs.h. */
25663#include <X11/Intrinsic.h>
25664_ACEOF
25665if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25666 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25667 ac_status=$?
25668 grep -v '^ *+' conftest.er1 >conftest.err
25669 rm -f conftest.er1
25670 cat conftest.err >&5
25671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25672 (exit $ac_status); } >/dev/null; then
25673 if test -s conftest.err; then
25674 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 25675 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
25676 else
25677 ac_cpp_err=
25678 fi
25679else
25680 ac_cpp_err=yes
25681fi
25682if test -z "$ac_cpp_err"; then
25683 # We can compile using X headers with no special include directory.
25684ac_x_includes=
25685else
25686 echo "$as_me: failed program was:" >&5
25687sed 's/^/| /' conftest.$ac_ext >&5
25688
25689 for ac_dir in $ac_x_header_dirs; do
25690 if test -r "$ac_dir/X11/Intrinsic.h"; then
25691 ac_x_includes=$ac_dir
25692 break
25693 fi
25694done
25695fi
25696rm -f conftest.err conftest.$ac_ext
25697fi # $ac_x_includes = no
25698
25699if test "$ac_x_libraries" = no; then
25700 # Check for the libraries.
25701 # See if we find them without any special options.
25702 # Don't add to $LIBS permanently.
25703 ac_save_LIBS=$LIBS
25704 LIBS="-lXt $LIBS"
25705 cat >conftest.$ac_ext <<_ACEOF
25706/* confdefs.h. */
25707_ACEOF
25708cat confdefs.h >>conftest.$ac_ext
25709cat >>conftest.$ac_ext <<_ACEOF
25710/* end confdefs.h. */
25711#include <X11/Intrinsic.h>
25712int
25713main ()
25714{
25715XtMalloc (0)
25716 ;
25717 return 0;
25718}
25719_ACEOF
25720rm -f conftest.$ac_objext conftest$ac_exeext
25721if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25722 (eval $ac_link) 2>conftest.er1
a848cd7e 25723 ac_status=$?
ac1cb8d3
VS
25724 grep -v '^ *+' conftest.er1 >conftest.err
25725 rm -f conftest.er1
25726 cat conftest.err >&5
a848cd7e
SC
25727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25728 (exit $ac_status); } &&
07158944 25729 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
25730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25731 (eval $ac_try) 2>&5
25732 ac_status=$?
25733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25734 (exit $ac_status); }; } &&
25735 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25737 (eval $ac_try) 2>&5
25738 ac_status=$?
25739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25740 (exit $ac_status); }; }; then
25741 LIBS=$ac_save_LIBS
25742# We can link X programs with no special library path.
25743ac_x_libraries=
25744else
25745 echo "$as_me: failed program was:" >&5
25746sed 's/^/| /' conftest.$ac_ext >&5
25747
25748LIBS=$ac_save_LIBS
25749for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
25750do
25751 # Don't even attempt the hair of trying to link an X program!
25752 for ac_extension in a so sl; do
25753 if test -r $ac_dir/libXt.$ac_extension; then
25754 ac_x_libraries=$ac_dir
25755 break 2
25756 fi
25757 done
25758done
25759fi
ac1cb8d3
VS
25760rm -f conftest.err conftest.$ac_objext \
25761 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25762fi # $ac_x_libraries = no
25763
25764if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
25765 # Didn't find X anywhere. Cache the known absence of X.
25766 ac_cv_have_x="have_x=no"
25767else
25768 # Record where we found X for the cache.
25769 ac_cv_have_x="have_x=yes \
ac1cb8d3 25770 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
a848cd7e
SC
25771fi
25772fi
25773
25774 fi
25775 eval "$ac_cv_have_x"
25776fi # $with_x != no
25777
25778if test "$have_x" != yes; then
25779 echo "$as_me:$LINENO: result: $have_x" >&5
25780echo "${ECHO_T}$have_x" >&6
25781 no_x=yes
25782else
25783 # If each of the values was on the command line, it overrides each guess.
25784 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
25785 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
25786 # Update the cache value to reflect the command line values.
25787 ac_cv_have_x="have_x=yes \
25788 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
07158944
VZ
25789 # It might be that x_includes is empty (headers are found in the
25790 # standard search path. Then output the corresponding message
25791 ac_out_x_includes=$x_includes
25792 test "x$x_includes" = x && ac_out_x_includes="in standard search path"
25793 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $ac_out_x_includes" >&5
25794echo "${ECHO_T}libraries $x_libraries, headers $ac_out_x_includes" >&6
a848cd7e
SC
25795fi
25796
07158944 25797fi
a848cd7e
SC
25798if test "$no_x" = yes; then
25799 # Not all programs may use this symbol, but it does not hurt to define it.
25800
25801cat >>confdefs.h <<\_ACEOF
25802#define X_DISPLAY_MISSING 1
25803_ACEOF
25804
25805 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
25806else
25807 if test -n "$x_includes"; then
25808 X_CFLAGS="$X_CFLAGS -I$x_includes"
25809 fi
25810
25811 # It would also be nice to do this for all -L options, not just this one.
25812 if test -n "$x_libraries"; then
25813 X_LIBS="$X_LIBS -L$x_libraries"
25814 # For Solaris; some versions of Sun CC require a space after -R and
25815 # others require no space. Words are not sufficient . . . .
25816 case `(uname -sr) 2>/dev/null` in
25817 "SunOS 5"*)
25818 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
25819echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
25820 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
25821 cat >conftest.$ac_ext <<_ACEOF
25822/* confdefs.h. */
25823_ACEOF
25824cat confdefs.h >>conftest.$ac_ext
25825cat >>conftest.$ac_ext <<_ACEOF
25826/* end confdefs.h. */
25827
25828int
25829main ()
25830{
25831
25832 ;
25833 return 0;
25834}
25835_ACEOF
25836rm -f conftest.$ac_objext conftest$ac_exeext
25837if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25838 (eval $ac_link) 2>conftest.er1
a848cd7e 25839 ac_status=$?
ac1cb8d3
VS
25840 grep -v '^ *+' conftest.er1 >conftest.err
25841 rm -f conftest.er1
25842 cat conftest.err >&5
a848cd7e
SC
25843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25844 (exit $ac_status); } &&
07158944 25845 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
25846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25847 (eval $ac_try) 2>&5
25848 ac_status=$?
25849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25850 (exit $ac_status); }; } &&
25851 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25853 (eval $ac_try) 2>&5
25854 ac_status=$?
25855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25856 (exit $ac_status); }; }; then
25857 ac_R_nospace=yes
25858else
25859 echo "$as_me: failed program was:" >&5
25860sed 's/^/| /' conftest.$ac_ext >&5
25861
25862ac_R_nospace=no
25863fi
ac1cb8d3
VS
25864rm -f conftest.err conftest.$ac_objext \
25865 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25866 if test $ac_R_nospace = yes; then
25867 echo "$as_me:$LINENO: result: no" >&5
25868echo "${ECHO_T}no" >&6
25869 X_LIBS="$X_LIBS -R$x_libraries"
25870 else
25871 LIBS="$ac_xsave_LIBS -R $x_libraries"
25872 cat >conftest.$ac_ext <<_ACEOF
25873/* confdefs.h. */
25874_ACEOF
25875cat confdefs.h >>conftest.$ac_ext
25876cat >>conftest.$ac_ext <<_ACEOF
25877/* end confdefs.h. */
25878
25879int
25880main ()
25881{
25882
25883 ;
25884 return 0;
25885}
25886_ACEOF
25887rm -f conftest.$ac_objext conftest$ac_exeext
25888if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25889 (eval $ac_link) 2>conftest.er1
a848cd7e 25890 ac_status=$?
ac1cb8d3
VS
25891 grep -v '^ *+' conftest.er1 >conftest.err
25892 rm -f conftest.er1
25893 cat conftest.err >&5
a848cd7e
SC
25894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25895 (exit $ac_status); } &&
07158944 25896 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
25897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25898 (eval $ac_try) 2>&5
25899 ac_status=$?
25900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25901 (exit $ac_status); }; } &&
25902 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25904 (eval $ac_try) 2>&5
25905 ac_status=$?
25906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25907 (exit $ac_status); }; }; then
25908 ac_R_space=yes
25909else
25910 echo "$as_me: failed program was:" >&5
25911sed 's/^/| /' conftest.$ac_ext >&5
25912
25913ac_R_space=no
25914fi
ac1cb8d3
VS
25915rm -f conftest.err conftest.$ac_objext \
25916 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25917 if test $ac_R_space = yes; then
25918 echo "$as_me:$LINENO: result: yes" >&5
25919echo "${ECHO_T}yes" >&6
25920 X_LIBS="$X_LIBS -R $x_libraries"
25921 else
25922 echo "$as_me:$LINENO: result: neither works" >&5
25923echo "${ECHO_T}neither works" >&6
25924 fi
25925 fi
25926 LIBS=$ac_xsave_LIBS
25927 esac
25928 fi
25929
25930 # Check for system-dependent libraries X programs must link with.
25931 # Do this before checking for the system-independent R6 libraries
25932 # (-lICE), since we may need -lsocket or whatever for X linking.
25933
25934 if test "$ISC" = yes; then
25935 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
25936 else
25937 # Martyn Johnson says this is needed for Ultrix, if the X
25938 # libraries were built with DECnet support. And Karl Berry says
25939 # the Alpha needs dnet_stub (dnet does not exist).
25940 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
25941 cat >conftest.$ac_ext <<_ACEOF
25942/* confdefs.h. */
25943_ACEOF
25944cat confdefs.h >>conftest.$ac_ext
25945cat >>conftest.$ac_ext <<_ACEOF
25946/* end confdefs.h. */
25947
25948/* Override any gcc2 internal prototype to avoid an error. */
25949#ifdef __cplusplus
25950extern "C"
25951#endif
25952/* We use char because int might match the return type of a gcc2
25953 builtin and then its argument prototype would still apply. */
25954char XOpenDisplay ();
25955int
25956main ()
25957{
25958XOpenDisplay ();
25959 ;
25960 return 0;
25961}
25962_ACEOF
25963rm -f conftest.$ac_objext conftest$ac_exeext
25964if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25965 (eval $ac_link) 2>conftest.er1
a848cd7e 25966 ac_status=$?
ac1cb8d3
VS
25967 grep -v '^ *+' conftest.er1 >conftest.err
25968 rm -f conftest.er1
25969 cat conftest.err >&5
a848cd7e
SC
25970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25971 (exit $ac_status); } &&
07158944 25972 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
25973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25974 (eval $ac_try) 2>&5
25975 ac_status=$?
25976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25977 (exit $ac_status); }; } &&
25978 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25980 (eval $ac_try) 2>&5
25981 ac_status=$?
25982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25983 (exit $ac_status); }; }; then
25984 :
25985else
25986 echo "$as_me: failed program was:" >&5
25987sed 's/^/| /' conftest.$ac_ext >&5
25988
25989echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
25990echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
25991if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
25992 echo $ECHO_N "(cached) $ECHO_C" >&6
25993else
25994 ac_check_lib_save_LIBS=$LIBS
25995LIBS="-ldnet $LIBS"
25996cat >conftest.$ac_ext <<_ACEOF
25997/* confdefs.h. */
25998_ACEOF
25999cat confdefs.h >>conftest.$ac_ext
26000cat >>conftest.$ac_ext <<_ACEOF
26001/* end confdefs.h. */
26002
26003/* Override any gcc2 internal prototype to avoid an error. */
26004#ifdef __cplusplus
26005extern "C"
26006#endif
26007/* We use char because int might match the return type of a gcc2
26008 builtin and then its argument prototype would still apply. */
26009char dnet_ntoa ();
26010int
26011main ()
26012{
26013dnet_ntoa ();
26014 ;
26015 return 0;
26016}
26017_ACEOF
26018rm -f conftest.$ac_objext conftest$ac_exeext
26019if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26020 (eval $ac_link) 2>conftest.er1
a848cd7e 26021 ac_status=$?
ac1cb8d3
VS
26022 grep -v '^ *+' conftest.er1 >conftest.err
26023 rm -f conftest.er1
26024 cat conftest.err >&5
a848cd7e
SC
26025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26026 (exit $ac_status); } &&
07158944 26027 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26029 (eval $ac_try) 2>&5
26030 ac_status=$?
26031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26032 (exit $ac_status); }; } &&
26033 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26035 (eval $ac_try) 2>&5
26036 ac_status=$?
26037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26038 (exit $ac_status); }; }; then
26039 ac_cv_lib_dnet_dnet_ntoa=yes
26040else
26041 echo "$as_me: failed program was:" >&5
26042sed 's/^/| /' conftest.$ac_ext >&5
26043
26044ac_cv_lib_dnet_dnet_ntoa=no
26045fi
ac1cb8d3
VS
26046rm -f conftest.err conftest.$ac_objext \
26047 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26048LIBS=$ac_check_lib_save_LIBS
26049fi
26050echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
26051echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
26052if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
26053 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
26054fi
26055
26056 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
26057 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
26058echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
26059if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
26060 echo $ECHO_N "(cached) $ECHO_C" >&6
26061else
26062 ac_check_lib_save_LIBS=$LIBS
26063LIBS="-ldnet_stub $LIBS"
26064cat >conftest.$ac_ext <<_ACEOF
26065/* confdefs.h. */
26066_ACEOF
26067cat confdefs.h >>conftest.$ac_ext
26068cat >>conftest.$ac_ext <<_ACEOF
26069/* end confdefs.h. */
26070
26071/* Override any gcc2 internal prototype to avoid an error. */
26072#ifdef __cplusplus
26073extern "C"
26074#endif
26075/* We use char because int might match the return type of a gcc2
26076 builtin and then its argument prototype would still apply. */
26077char dnet_ntoa ();
26078int
26079main ()
26080{
26081dnet_ntoa ();
26082 ;
26083 return 0;
26084}
26085_ACEOF
26086rm -f conftest.$ac_objext conftest$ac_exeext
26087if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26088 (eval $ac_link) 2>conftest.er1
a848cd7e 26089 ac_status=$?
ac1cb8d3
VS
26090 grep -v '^ *+' conftest.er1 >conftest.err
26091 rm -f conftest.er1
26092 cat conftest.err >&5
a848cd7e
SC
26093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26094 (exit $ac_status); } &&
07158944 26095 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26097 (eval $ac_try) 2>&5
26098 ac_status=$?
26099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26100 (exit $ac_status); }; } &&
26101 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26103 (eval $ac_try) 2>&5
26104 ac_status=$?
26105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26106 (exit $ac_status); }; }; then
26107 ac_cv_lib_dnet_stub_dnet_ntoa=yes
26108else
26109 echo "$as_me: failed program was:" >&5
26110sed 's/^/| /' conftest.$ac_ext >&5
26111
26112ac_cv_lib_dnet_stub_dnet_ntoa=no
26113fi
ac1cb8d3
VS
26114rm -f conftest.err conftest.$ac_objext \
26115 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26116LIBS=$ac_check_lib_save_LIBS
26117fi
26118echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
26119echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
26120if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
26121 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
26122fi
26123
26124 fi
26125fi
ac1cb8d3
VS
26126rm -f conftest.err conftest.$ac_objext \
26127 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26128 LIBS="$ac_xsave_LIBS"
26129
26130 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
26131 # to get the SysV transport functions.
26132 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
26133 # needs -lnsl.
26134 # The nsl library prevents programs from opening the X display
26135 # on Irix 5.2, according to T.E. Dickey.
26136 # The functions gethostbyname, getservbyname, and inet_addr are
26137 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
26138 echo "$as_me:$LINENO: checking for gethostbyname" >&5
26139echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
26140if test "${ac_cv_func_gethostbyname+set}" = set; then
26141 echo $ECHO_N "(cached) $ECHO_C" >&6
26142else
26143 cat >conftest.$ac_ext <<_ACEOF
26144/* confdefs.h. */
26145_ACEOF
26146cat confdefs.h >>conftest.$ac_ext
26147cat >>conftest.$ac_ext <<_ACEOF
26148/* end confdefs.h. */
ac1cb8d3
VS
26149/* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
26150 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26151#define gethostbyname innocuous_gethostbyname
26152
a848cd7e
SC
26153/* System header to define __stub macros and hopefully few prototypes,
26154 which can conflict with char gethostbyname (); below.
26155 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26156 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 26157
a848cd7e
SC
26158#ifdef __STDC__
26159# include <limits.h>
26160#else
26161# include <assert.h>
26162#endif
ac1cb8d3
VS
26163
26164#undef gethostbyname
26165
a848cd7e
SC
26166/* Override any gcc2 internal prototype to avoid an error. */
26167#ifdef __cplusplus
26168extern "C"
26169{
26170#endif
26171/* We use char because int might match the return type of a gcc2
26172 builtin and then its argument prototype would still apply. */
26173char gethostbyname ();
26174/* The GNU C library defines this for functions which it implements
26175 to always fail with ENOSYS. Some functions are actually named
26176 something starting with __ and the normal name is an alias. */
26177#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
26178choke me
26179#else
26180char (*f) () = gethostbyname;
26181#endif
26182#ifdef __cplusplus
26183}
26184#endif
26185
26186int
26187main ()
26188{
26189return f != gethostbyname;
26190 ;
26191 return 0;
26192}
26193_ACEOF
26194rm -f conftest.$ac_objext conftest$ac_exeext
26195if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26196 (eval $ac_link) 2>conftest.er1
a848cd7e 26197 ac_status=$?
ac1cb8d3
VS
26198 grep -v '^ *+' conftest.er1 >conftest.err
26199 rm -f conftest.er1
26200 cat conftest.err >&5
a848cd7e
SC
26201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26202 (exit $ac_status); } &&
07158944 26203 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26205 (eval $ac_try) 2>&5
26206 ac_status=$?
26207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26208 (exit $ac_status); }; } &&
26209 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26211 (eval $ac_try) 2>&5
26212 ac_status=$?
26213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26214 (exit $ac_status); }; }; then
26215 ac_cv_func_gethostbyname=yes
26216else
26217 echo "$as_me: failed program was:" >&5
26218sed 's/^/| /' conftest.$ac_ext >&5
26219
26220ac_cv_func_gethostbyname=no
26221fi
ac1cb8d3
VS
26222rm -f conftest.err conftest.$ac_objext \
26223 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26224fi
26225echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
26226echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
26227
26228 if test $ac_cv_func_gethostbyname = no; then
26229 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
26230echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
26231if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
26232 echo $ECHO_N "(cached) $ECHO_C" >&6
26233else
26234 ac_check_lib_save_LIBS=$LIBS
26235LIBS="-lnsl $LIBS"
26236cat >conftest.$ac_ext <<_ACEOF
26237/* confdefs.h. */
26238_ACEOF
26239cat confdefs.h >>conftest.$ac_ext
26240cat >>conftest.$ac_ext <<_ACEOF
26241/* end confdefs.h. */
26242
26243/* Override any gcc2 internal prototype to avoid an error. */
26244#ifdef __cplusplus
26245extern "C"
26246#endif
26247/* We use char because int might match the return type of a gcc2
26248 builtin and then its argument prototype would still apply. */
26249char gethostbyname ();
26250int
26251main ()
26252{
26253gethostbyname ();
26254 ;
26255 return 0;
26256}
26257_ACEOF
26258rm -f conftest.$ac_objext conftest$ac_exeext
26259if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3
VS
26260 (eval $ac_link) 2>conftest.er1
26261 ac_status=$?
26262 grep -v '^ *+' conftest.er1 >conftest.err
26263 rm -f conftest.er1
26264 cat conftest.err >&5
26265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26266 (exit $ac_status); } &&
07158944 26267 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26269 (eval $ac_try) 2>&5
26270 ac_status=$?
26271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26272 (exit $ac_status); }; } &&
26273 { ac_try='test -s conftest$ac_exeext'
26274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26275 (eval $ac_try) 2>&5
26276 ac_status=$?
26277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26278 (exit $ac_status); }; }; then
26279 ac_cv_lib_nsl_gethostbyname=yes
26280else
26281 echo "$as_me: failed program was:" >&5
26282sed 's/^/| /' conftest.$ac_ext >&5
26283
26284ac_cv_lib_nsl_gethostbyname=no
26285fi
26286rm -f conftest.err conftest.$ac_objext \
26287 conftest$ac_exeext conftest.$ac_ext
26288LIBS=$ac_check_lib_save_LIBS
26289fi
26290echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
26291echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
26292if test $ac_cv_lib_nsl_gethostbyname = yes; then
26293 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
26294fi
26295
26296 if test $ac_cv_lib_nsl_gethostbyname = no; then
26297 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
26298echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
26299if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
26300 echo $ECHO_N "(cached) $ECHO_C" >&6
26301else
26302 ac_check_lib_save_LIBS=$LIBS
26303LIBS="-lbsd $LIBS"
26304cat >conftest.$ac_ext <<_ACEOF
26305/* confdefs.h. */
26306_ACEOF
26307cat confdefs.h >>conftest.$ac_ext
26308cat >>conftest.$ac_ext <<_ACEOF
26309/* end confdefs.h. */
26310
26311/* Override any gcc2 internal prototype to avoid an error. */
26312#ifdef __cplusplus
26313extern "C"
26314#endif
26315/* We use char because int might match the return type of a gcc2
26316 builtin and then its argument prototype would still apply. */
26317char gethostbyname ();
26318int
26319main ()
26320{
26321gethostbyname ();
26322 ;
26323 return 0;
26324}
26325_ACEOF
26326rm -f conftest.$ac_objext conftest$ac_exeext
26327if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26328 (eval $ac_link) 2>conftest.er1
a848cd7e 26329 ac_status=$?
ac1cb8d3
VS
26330 grep -v '^ *+' conftest.er1 >conftest.err
26331 rm -f conftest.er1
26332 cat conftest.err >&5
a848cd7e
SC
26333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26334 (exit $ac_status); } &&
07158944 26335 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
a848cd7e
SC
26336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26337 (eval $ac_try) 2>&5
26338 ac_status=$?
26339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ac1cb8d3
VS
26340 (exit $ac_status); }; } &&
26341 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26343 (eval $ac_try) 2>&5
26344 ac_status=$?
26345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26346 (exit $ac_status); }; }; then
26347 ac_cv_lib_bsd_gethostbyname=yes
26348else
26349 echo "$as_me: failed program was:" >&5
26350sed 's/^/| /' conftest.$ac_ext >&5
26351
26352ac_cv_lib_bsd_gethostbyname=no
26353fi
ac1cb8d3
VS
26354rm -f conftest.err conftest.$ac_objext \
26355 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26356LIBS=$ac_check_lib_save_LIBS
26357fi
26358echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
26359echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
26360if test $ac_cv_lib_bsd_gethostbyname = yes; then
26361 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
26362fi
26363
26364 fi
26365 fi
26366
26367 # lieder@skyler.mavd.honeywell.com says without -lsocket,
26368 # socket/setsockopt and other routines are undefined under SCO ODT
26369 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
26370 # on later versions), says Simon Leinen: it contains gethostby*
26371 # variants that don't use the name server (or something). -lsocket
26372 # must be given before -lnsl if both are needed. We assume that
26373 # if connect needs -lnsl, so does gethostbyname.
26374 echo "$as_me:$LINENO: checking for connect" >&5
26375echo $ECHO_N "checking for connect... $ECHO_C" >&6
26376if test "${ac_cv_func_connect+set}" = set; then
26377 echo $ECHO_N "(cached) $ECHO_C" >&6
26378else
26379 cat >conftest.$ac_ext <<_ACEOF
26380/* confdefs.h. */
26381_ACEOF
26382cat confdefs.h >>conftest.$ac_ext
26383cat >>conftest.$ac_ext <<_ACEOF
26384/* end confdefs.h. */
ac1cb8d3
VS
26385/* Define connect to an innocuous variant, in case <limits.h> declares connect.
26386 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26387#define connect innocuous_connect
26388
a848cd7e
SC
26389/* System header to define __stub macros and hopefully few prototypes,
26390 which can conflict with char connect (); below.
26391 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26392 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 26393
a848cd7e
SC
26394#ifdef __STDC__
26395# include <limits.h>
26396#else
26397# include <assert.h>
26398#endif
ac1cb8d3
VS
26399
26400#undef connect
26401
a848cd7e
SC
26402/* Override any gcc2 internal prototype to avoid an error. */
26403#ifdef __cplusplus
26404extern "C"
26405{
26406#endif
26407/* We use char because int might match the return type of a gcc2
26408 builtin and then its argument prototype would still apply. */
26409char connect ();
26410/* The GNU C library defines this for functions which it implements
26411 to always fail with ENOSYS. Some functions are actually named
26412 something starting with __ and the normal name is an alias. */
26413#if defined (__stub_connect) || defined (__stub___connect)
26414choke me
26415#else
26416char (*f) () = connect;
26417#endif
26418#ifdef __cplusplus
26419}
26420#endif
26421
26422int
26423main ()
26424{
26425return f != connect;
26426 ;
26427 return 0;
26428}
26429_ACEOF
26430rm -f conftest.$ac_objext conftest$ac_exeext
26431if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26432 (eval $ac_link) 2>conftest.er1
a848cd7e 26433 ac_status=$?
ac1cb8d3
VS
26434 grep -v '^ *+' conftest.er1 >conftest.err
26435 rm -f conftest.er1
26436 cat conftest.err >&5
a848cd7e
SC
26437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26438 (exit $ac_status); } &&
07158944 26439 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26441 (eval $ac_try) 2>&5
26442 ac_status=$?
26443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26444 (exit $ac_status); }; } &&
26445 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26447 (eval $ac_try) 2>&5
26448 ac_status=$?
26449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26450 (exit $ac_status); }; }; then
26451 ac_cv_func_connect=yes
26452else
26453 echo "$as_me: failed program was:" >&5
26454sed 's/^/| /' conftest.$ac_ext >&5
26455
26456ac_cv_func_connect=no
26457fi
ac1cb8d3
VS
26458rm -f conftest.err conftest.$ac_objext \
26459 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26460fi
26461echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
26462echo "${ECHO_T}$ac_cv_func_connect" >&6
26463
26464 if test $ac_cv_func_connect = no; then
26465 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
26466echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
26467if test "${ac_cv_lib_socket_connect+set}" = set; then
26468 echo $ECHO_N "(cached) $ECHO_C" >&6
26469else
26470 ac_check_lib_save_LIBS=$LIBS
26471LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
26472cat >conftest.$ac_ext <<_ACEOF
26473/* confdefs.h. */
26474_ACEOF
26475cat confdefs.h >>conftest.$ac_ext
26476cat >>conftest.$ac_ext <<_ACEOF
26477/* end confdefs.h. */
26478
26479/* Override any gcc2 internal prototype to avoid an error. */
26480#ifdef __cplusplus
26481extern "C"
26482#endif
26483/* We use char because int might match the return type of a gcc2
26484 builtin and then its argument prototype would still apply. */
26485char connect ();
26486int
26487main ()
26488{
26489connect ();
26490 ;
26491 return 0;
26492}
26493_ACEOF
26494rm -f conftest.$ac_objext conftest$ac_exeext
26495if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26496 (eval $ac_link) 2>conftest.er1
a848cd7e 26497 ac_status=$?
ac1cb8d3
VS
26498 grep -v '^ *+' conftest.er1 >conftest.err
26499 rm -f conftest.er1
26500 cat conftest.err >&5
a848cd7e
SC
26501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26502 (exit $ac_status); } &&
07158944 26503 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26505 (eval $ac_try) 2>&5
26506 ac_status=$?
26507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26508 (exit $ac_status); }; } &&
26509 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26511 (eval $ac_try) 2>&5
26512 ac_status=$?
26513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26514 (exit $ac_status); }; }; then
26515 ac_cv_lib_socket_connect=yes
26516else
26517 echo "$as_me: failed program was:" >&5
26518sed 's/^/| /' conftest.$ac_ext >&5
26519
26520ac_cv_lib_socket_connect=no
26521fi
ac1cb8d3
VS
26522rm -f conftest.err conftest.$ac_objext \
26523 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26524LIBS=$ac_check_lib_save_LIBS
26525fi
26526echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
26527echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
26528if test $ac_cv_lib_socket_connect = yes; then
26529 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
26530fi
26531
26532 fi
26533
26534 # Guillermo Gomez says -lposix is necessary on A/UX.
26535 echo "$as_me:$LINENO: checking for remove" >&5
26536echo $ECHO_N "checking for remove... $ECHO_C" >&6
26537if test "${ac_cv_func_remove+set}" = set; then
26538 echo $ECHO_N "(cached) $ECHO_C" >&6
26539else
26540 cat >conftest.$ac_ext <<_ACEOF
26541/* confdefs.h. */
26542_ACEOF
26543cat confdefs.h >>conftest.$ac_ext
26544cat >>conftest.$ac_ext <<_ACEOF
26545/* end confdefs.h. */
ac1cb8d3
VS
26546/* Define remove to an innocuous variant, in case <limits.h> declares remove.
26547 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26548#define remove innocuous_remove
26549
a848cd7e
SC
26550/* System header to define __stub macros and hopefully few prototypes,
26551 which can conflict with char remove (); below.
26552 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26553 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 26554
a848cd7e
SC
26555#ifdef __STDC__
26556# include <limits.h>
26557#else
26558# include <assert.h>
26559#endif
ac1cb8d3
VS
26560
26561#undef remove
26562
a848cd7e
SC
26563/* Override any gcc2 internal prototype to avoid an error. */
26564#ifdef __cplusplus
26565extern "C"
26566{
26567#endif
26568/* We use char because int might match the return type of a gcc2
26569 builtin and then its argument prototype would still apply. */
26570char remove ();
26571/* The GNU C library defines this for functions which it implements
26572 to always fail with ENOSYS. Some functions are actually named
26573 something starting with __ and the normal name is an alias. */
26574#if defined (__stub_remove) || defined (__stub___remove)
26575choke me
26576#else
26577char (*f) () = remove;
26578#endif
26579#ifdef __cplusplus
26580}
26581#endif
26582
26583int
26584main ()
26585{
26586return f != remove;
26587 ;
26588 return 0;
26589}
26590_ACEOF
26591rm -f conftest.$ac_objext conftest$ac_exeext
26592if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26593 (eval $ac_link) 2>conftest.er1
a848cd7e 26594 ac_status=$?
ac1cb8d3
VS
26595 grep -v '^ *+' conftest.er1 >conftest.err
26596 rm -f conftest.er1
26597 cat conftest.err >&5
a848cd7e
SC
26598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26599 (exit $ac_status); } &&
07158944 26600 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26602 (eval $ac_try) 2>&5
26603 ac_status=$?
26604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26605 (exit $ac_status); }; } &&
26606 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26608 (eval $ac_try) 2>&5
26609 ac_status=$?
26610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26611 (exit $ac_status); }; }; then
26612 ac_cv_func_remove=yes
26613else
26614 echo "$as_me: failed program was:" >&5
26615sed 's/^/| /' conftest.$ac_ext >&5
26616
26617ac_cv_func_remove=no
26618fi
ac1cb8d3
VS
26619rm -f conftest.err conftest.$ac_objext \
26620 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26621fi
26622echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
26623echo "${ECHO_T}$ac_cv_func_remove" >&6
26624
26625 if test $ac_cv_func_remove = no; then
26626 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
26627echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
26628if test "${ac_cv_lib_posix_remove+set}" = set; then
26629 echo $ECHO_N "(cached) $ECHO_C" >&6
26630else
26631 ac_check_lib_save_LIBS=$LIBS
26632LIBS="-lposix $LIBS"
26633cat >conftest.$ac_ext <<_ACEOF
26634/* confdefs.h. */
26635_ACEOF
26636cat confdefs.h >>conftest.$ac_ext
26637cat >>conftest.$ac_ext <<_ACEOF
26638/* end confdefs.h. */
26639
26640/* Override any gcc2 internal prototype to avoid an error. */
26641#ifdef __cplusplus
26642extern "C"
26643#endif
26644/* We use char because int might match the return type of a gcc2
26645 builtin and then its argument prototype would still apply. */
26646char remove ();
26647int
26648main ()
26649{
26650remove ();
26651 ;
26652 return 0;
26653}
26654_ACEOF
26655rm -f conftest.$ac_objext conftest$ac_exeext
26656if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26657 (eval $ac_link) 2>conftest.er1
a848cd7e 26658 ac_status=$?
ac1cb8d3
VS
26659 grep -v '^ *+' conftest.er1 >conftest.err
26660 rm -f conftest.er1
26661 cat conftest.err >&5
a848cd7e
SC
26662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26663 (exit $ac_status); } &&
07158944 26664 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26666 (eval $ac_try) 2>&5
26667 ac_status=$?
26668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26669 (exit $ac_status); }; } &&
26670 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26672 (eval $ac_try) 2>&5
26673 ac_status=$?
26674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26675 (exit $ac_status); }; }; then
26676 ac_cv_lib_posix_remove=yes
26677else
26678 echo "$as_me: failed program was:" >&5
26679sed 's/^/| /' conftest.$ac_ext >&5
26680
26681ac_cv_lib_posix_remove=no
26682fi
ac1cb8d3
VS
26683rm -f conftest.err conftest.$ac_objext \
26684 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26685LIBS=$ac_check_lib_save_LIBS
26686fi
26687echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
26688echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
26689if test $ac_cv_lib_posix_remove = yes; then
26690 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
26691fi
26692
26693 fi
26694
26695 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
26696 echo "$as_me:$LINENO: checking for shmat" >&5
26697echo $ECHO_N "checking for shmat... $ECHO_C" >&6
26698if test "${ac_cv_func_shmat+set}" = set; then
26699 echo $ECHO_N "(cached) $ECHO_C" >&6
26700else
26701 cat >conftest.$ac_ext <<_ACEOF
26702/* confdefs.h. */
26703_ACEOF
26704cat confdefs.h >>conftest.$ac_ext
26705cat >>conftest.$ac_ext <<_ACEOF
26706/* end confdefs.h. */
ac1cb8d3
VS
26707/* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
26708 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26709#define shmat innocuous_shmat
26710
a848cd7e
SC
26711/* System header to define __stub macros and hopefully few prototypes,
26712 which can conflict with char shmat (); below.
26713 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26714 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 26715
a848cd7e
SC
26716#ifdef __STDC__
26717# include <limits.h>
26718#else
26719# include <assert.h>
26720#endif
ac1cb8d3
VS
26721
26722#undef shmat
26723
a848cd7e
SC
26724/* Override any gcc2 internal prototype to avoid an error. */
26725#ifdef __cplusplus
26726extern "C"
26727{
26728#endif
26729/* We use char because int might match the return type of a gcc2
26730 builtin and then its argument prototype would still apply. */
26731char shmat ();
26732/* The GNU C library defines this for functions which it implements
26733 to always fail with ENOSYS. Some functions are actually named
26734 something starting with __ and the normal name is an alias. */
26735#if defined (__stub_shmat) || defined (__stub___shmat)
26736choke me
26737#else
26738char (*f) () = shmat;
26739#endif
26740#ifdef __cplusplus
26741}
26742#endif
26743
26744int
26745main ()
26746{
26747return f != shmat;
26748 ;
26749 return 0;
26750}
26751_ACEOF
26752rm -f conftest.$ac_objext conftest$ac_exeext
26753if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26754 (eval $ac_link) 2>conftest.er1
a848cd7e 26755 ac_status=$?
ac1cb8d3
VS
26756 grep -v '^ *+' conftest.er1 >conftest.err
26757 rm -f conftest.er1
26758 cat conftest.err >&5
a848cd7e
SC
26759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26760 (exit $ac_status); } &&
07158944 26761 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26763 (eval $ac_try) 2>&5
26764 ac_status=$?
26765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26766 (exit $ac_status); }; } &&
26767 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26769 (eval $ac_try) 2>&5
26770 ac_status=$?
26771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26772 (exit $ac_status); }; }; then
26773 ac_cv_func_shmat=yes
26774else
26775 echo "$as_me: failed program was:" >&5
26776sed 's/^/| /' conftest.$ac_ext >&5
26777
26778ac_cv_func_shmat=no
26779fi
ac1cb8d3
VS
26780rm -f conftest.err conftest.$ac_objext \
26781 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26782fi
26783echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
26784echo "${ECHO_T}$ac_cv_func_shmat" >&6
26785
26786 if test $ac_cv_func_shmat = no; then
26787 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
26788echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
26789if test "${ac_cv_lib_ipc_shmat+set}" = set; then
26790 echo $ECHO_N "(cached) $ECHO_C" >&6
26791else
26792 ac_check_lib_save_LIBS=$LIBS
26793LIBS="-lipc $LIBS"
26794cat >conftest.$ac_ext <<_ACEOF
26795/* confdefs.h. */
26796_ACEOF
26797cat confdefs.h >>conftest.$ac_ext
26798cat >>conftest.$ac_ext <<_ACEOF
26799/* end confdefs.h. */
26800
26801/* Override any gcc2 internal prototype to avoid an error. */
26802#ifdef __cplusplus
26803extern "C"
26804#endif
26805/* We use char because int might match the return type of a gcc2
26806 builtin and then its argument prototype would still apply. */
26807char shmat ();
26808int
26809main ()
26810{
26811shmat ();
26812 ;
26813 return 0;
26814}
26815_ACEOF
26816rm -f conftest.$ac_objext conftest$ac_exeext
26817if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26818 (eval $ac_link) 2>conftest.er1
a848cd7e 26819 ac_status=$?
ac1cb8d3
VS
26820 grep -v '^ *+' conftest.er1 >conftest.err
26821 rm -f conftest.er1
26822 cat conftest.err >&5
a848cd7e
SC
26823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26824 (exit $ac_status); } &&
07158944 26825 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26827 (eval $ac_try) 2>&5
26828 ac_status=$?
26829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26830 (exit $ac_status); }; } &&
26831 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26833 (eval $ac_try) 2>&5
26834 ac_status=$?
26835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26836 (exit $ac_status); }; }; then
26837 ac_cv_lib_ipc_shmat=yes
26838else
26839 echo "$as_me: failed program was:" >&5
26840sed 's/^/| /' conftest.$ac_ext >&5
26841
26842ac_cv_lib_ipc_shmat=no
26843fi
ac1cb8d3
VS
26844rm -f conftest.err conftest.$ac_objext \
26845 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26846LIBS=$ac_check_lib_save_LIBS
26847fi
26848echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
26849echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
26850if test $ac_cv_lib_ipc_shmat = yes; then
26851 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
26852fi
26853
26854 fi
26855 fi
26856
26857 # Check for libraries that X11R6 Xt/Xaw programs need.
26858 ac_save_LDFLAGS=$LDFLAGS
26859 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
26860 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
26861 # check for ICE first), but we must link in the order -lSM -lICE or
26862 # we get undefined symbols. So assume we have SM if we have ICE.
26863 # These have to be linked with before -lX11, unlike the other
26864 # libraries we check for below, so use a different variable.
26865 # John Interrante, Karl Berry
26866 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
26867echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
26868if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
26869 echo $ECHO_N "(cached) $ECHO_C" >&6
26870else
26871 ac_check_lib_save_LIBS=$LIBS
26872LIBS="-lICE $X_EXTRA_LIBS $LIBS"
26873cat >conftest.$ac_ext <<_ACEOF
26874/* confdefs.h. */
26875_ACEOF
26876cat confdefs.h >>conftest.$ac_ext
26877cat >>conftest.$ac_ext <<_ACEOF
26878/* end confdefs.h. */
26879
26880/* Override any gcc2 internal prototype to avoid an error. */
26881#ifdef __cplusplus
26882extern "C"
26883#endif
26884/* We use char because int might match the return type of a gcc2
26885 builtin and then its argument prototype would still apply. */
26886char IceConnectionNumber ();
26887int
26888main ()
26889{
26890IceConnectionNumber ();
26891 ;
26892 return 0;
26893}
26894_ACEOF
26895rm -f conftest.$ac_objext conftest$ac_exeext
26896if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26897 (eval $ac_link) 2>conftest.er1
a848cd7e 26898 ac_status=$?
ac1cb8d3
VS
26899 grep -v '^ *+' conftest.er1 >conftest.err
26900 rm -f conftest.er1
26901 cat conftest.err >&5
a848cd7e
SC
26902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26903 (exit $ac_status); } &&
07158944 26904 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26906 (eval $ac_try) 2>&5
26907 ac_status=$?
26908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26909 (exit $ac_status); }; } &&
26910 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26912 (eval $ac_try) 2>&5
26913 ac_status=$?
26914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26915 (exit $ac_status); }; }; then
26916 ac_cv_lib_ICE_IceConnectionNumber=yes
26917else
26918 echo "$as_me: failed program was:" >&5
26919sed 's/^/| /' conftest.$ac_ext >&5
26920
26921ac_cv_lib_ICE_IceConnectionNumber=no
26922fi
ac1cb8d3
VS
26923rm -f conftest.err conftest.$ac_objext \
26924 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26925LIBS=$ac_check_lib_save_LIBS
26926fi
26927echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
26928echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
26929if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
26930 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
26931fi
26932
26933 LDFLAGS=$ac_save_LDFLAGS
26934
26935fi
26936
26937
26938 if test "$no_x" = "yes"; then
26939 { { echo "$as_me:$LINENO: error: X11 not found" >&5
26940echo "$as_me: error: X11 not found" >&2;}
26941 { (exit please use --x-includes and/or --x-libraries options); exit please use --x-includes and/or --x-libraries options; }; }
26942 fi
26943
74b84332
VS
26944 GUI_TK_LIBRARY=`echo $X_LIBS | sed 's/ -LNONE//' | sed 's/ -RNONE//'`
26945 TOOLKIT_INCLUDE=`echo $X_CFLAGS | sed 's/ -INONE//'`
a848cd7e
SC
26946 AFMINSTALL=afminstall
26947 COMPILED_X_PROGRAM=0
26948
74b84332
VS
26949 fi
26950
26951 if test "$wxUSE_X11" = 1; then
a848cd7e
SC
26952 if test "$wxUSE_NANOX" = "yes"; then
26953 echo "$as_me:$LINENO: checking for MicroWindows/NanoX distribution" >&5
26954echo $ECHO_N "checking for MicroWindows/NanoX distribution... $ECHO_C" >&6
26955 if test "x$MICROWIN" = x ; then
26956 echo "$as_me:$LINENO: result: not found" >&5
26957echo "${ECHO_T}not found" >&6
26958 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&5
26959echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&2;}
26960 { (exit 1); exit 1; }; }
26961 else
26962 echo "$as_me:$LINENO: result: $MICROWIN" >&5
26963echo "${ECHO_T}$MICROWIN" >&6
26964 cat >>confdefs.h <<\_ACEOF
26965#define wxUSE_NANOX 1
26966_ACEOF
26967
26968 fi
26969 fi
26970
26971 if test "$wxUSE_UNICODE" = "yes"; then
26972
26973 succeeded=no
26974
26975 if test -z "$PKG_CONFIG"; then
26976 # Extract the first word of "pkg-config", so it can be a program name with args.
26977set dummy pkg-config; ac_word=$2
26978echo "$as_me:$LINENO: checking for $ac_word" >&5
26979echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
26980if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
26981 echo $ECHO_N "(cached) $ECHO_C" >&6
26982else
26983 case $PKG_CONFIG in
26984 [\\/]* | ?:[\\/]*)
26985 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
26986 ;;
26987 *)
26988 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26989for as_dir in $PATH
26990do
26991 IFS=$as_save_IFS
26992 test -z "$as_dir" && as_dir=.
26993 for ac_exec_ext in '' $ac_executable_extensions; do
26994 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26995 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
26996 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26997 break 2
26998 fi
26999done
27000done
27001
27002 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
27003 ;;
27004esac
27005fi
27006PKG_CONFIG=$ac_cv_path_PKG_CONFIG
27007
27008if test -n "$PKG_CONFIG"; then
27009 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
27010echo "${ECHO_T}$PKG_CONFIG" >&6
27011else
27012 echo "$as_me:$LINENO: result: no" >&5
27013echo "${ECHO_T}no" >&6
27014fi
27015
27016 fi
27017
27018 if test "$PKG_CONFIG" = "no" ; then
27019 echo "*** The pkg-config script could not be found. Make sure it is"
27020 echo "*** in your path, or set the PKG_CONFIG environment variable"
27021 echo "*** to the full path to pkg-config."
27022 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
27023 else
27024 PKG_CONFIG_MIN_VERSION=0.9.0
27025 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
27026 echo "$as_me:$LINENO: checking for pangox" >&5
27027echo $ECHO_N "checking for pangox... $ECHO_C" >&6
27028
27029 if $PKG_CONFIG --exists "pangox" ; then
27030 echo "$as_me:$LINENO: result: yes" >&5
27031echo "${ECHO_T}yes" >&6
27032 succeeded=yes
27033
27034 echo "$as_me:$LINENO: checking PANGOX_CFLAGS" >&5
27035echo $ECHO_N "checking PANGOX_CFLAGS... $ECHO_C" >&6
27036 PANGOX_CFLAGS=`$PKG_CONFIG --cflags "pangox"`
27037 echo "$as_me:$LINENO: result: $PANGOX_CFLAGS" >&5
27038echo "${ECHO_T}$PANGOX_CFLAGS" >&6
27039
27040 echo "$as_me:$LINENO: checking PANGOX_LIBS" >&5
27041echo $ECHO_N "checking PANGOX_LIBS... $ECHO_C" >&6
27042 PANGOX_LIBS=`$PKG_CONFIG --libs "pangox"`
27043 echo "$as_me:$LINENO: result: $PANGOX_LIBS" >&5
27044echo "${ECHO_T}$PANGOX_LIBS" >&6
27045 else
27046 PANGOX_CFLAGS=""
27047 PANGOX_LIBS=""
27048 ## If we have a custom action on failure, don't print errors, but
27049 ## do set a variable so people can do so.
27050 PANGOX_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangox"`
27051
27052 fi
27053
27054
27055
27056 else
27057 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
27058 echo "*** See http://www.freedesktop.org/software/pkgconfig"
27059 fi
27060 fi
27061
27062 if test $succeeded = yes; then
27063
27064 CXXFLAGS="$CXXFLAGS $PANGOX_CFLAGS"
27065 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOX_LIBS"
27066
27067 else
27068
27069 { { echo "$as_me:$LINENO: error: pangox library not found, library cannot be compiled in Unicode mode" >&5
27070echo "$as_me: error: pangox library not found, library cannot be compiled in Unicode mode" >&2;}
27071 { (exit 1); exit 1; }; }
27072
27073
27074 fi
27075
27076
27077 succeeded=no
27078
27079 if test -z "$PKG_CONFIG"; then
27080 # Extract the first word of "pkg-config", so it can be a program name with args.
27081set dummy pkg-config; ac_word=$2
27082echo "$as_me:$LINENO: checking for $ac_word" >&5
27083echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
27084if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
27085 echo $ECHO_N "(cached) $ECHO_C" >&6
27086else
27087 case $PKG_CONFIG in
27088 [\\/]* | ?:[\\/]*)
27089 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
27090 ;;
27091 *)
27092 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27093for as_dir in $PATH
27094do
27095 IFS=$as_save_IFS
27096 test -z "$as_dir" && as_dir=.
27097 for ac_exec_ext in '' $ac_executable_extensions; do
27098 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27099 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
27100 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27101 break 2
27102 fi
27103done
27104done
27105
27106 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
27107 ;;
27108esac
27109fi
27110PKG_CONFIG=$ac_cv_path_PKG_CONFIG
27111
27112if test -n "$PKG_CONFIG"; then
27113 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
27114echo "${ECHO_T}$PKG_CONFIG" >&6
27115else
27116 echo "$as_me:$LINENO: result: no" >&5
27117echo "${ECHO_T}no" >&6
27118fi
27119
27120 fi
27121
27122 if test "$PKG_CONFIG" = "no" ; then
27123 echo "*** The pkg-config script could not be found. Make sure it is"
27124 echo "*** in your path, or set the PKG_CONFIG environment variable"
27125 echo "*** to the full path to pkg-config."
27126 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
27127 else
27128 PKG_CONFIG_MIN_VERSION=0.9.0
27129 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
27130 echo "$as_me:$LINENO: checking for pangoft2" >&5
27131echo $ECHO_N "checking for pangoft2... $ECHO_C" >&6
27132
27133 if $PKG_CONFIG --exists "pangoft2" ; then
27134 echo "$as_me:$LINENO: result: yes" >&5
27135echo "${ECHO_T}yes" >&6
27136 succeeded=yes
27137
27138 echo "$as_me:$LINENO: checking PANGOFT2_CFLAGS" >&5
27139echo $ECHO_N "checking PANGOFT2_CFLAGS... $ECHO_C" >&6
27140 PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"`
27141 echo "$as_me:$LINENO: result: $PANGOFT2_CFLAGS" >&5
27142echo "${ECHO_T}$PANGOFT2_CFLAGS" >&6
27143
27144 echo "$as_me:$LINENO: checking PANGOFT2_LIBS" >&5
27145echo $ECHO_N "checking PANGOFT2_LIBS... $ECHO_C" >&6
27146 PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"`
27147 echo "$as_me:$LINENO: result: $PANGOFT2_LIBS" >&5
27148echo "${ECHO_T}$PANGOFT2_LIBS" >&6
27149 else
27150 PANGOFT2_CFLAGS=""
27151 PANGOFT2_LIBS=""
27152 ## If we have a custom action on failure, don't print errors, but
27153 ## do set a variable so people can do so.
27154 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
27155
27156 fi
27157
27158
27159
27160 else
27161 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
27162 echo "*** See http://www.freedesktop.org/software/pkgconfig"
27163 fi
27164 fi
27165
27166 if test $succeeded = yes; then
27167
27168 CXXFLAGS="$CXXFLAGS $PANGOFT2_CFLAGS"
27169 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOFT2_LIBS"
27170
27171 else
27172
27173 { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5
27174echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;}
27175 wxUSE_PRINTING_ARCHITECTURE="no"
27176
27177
27178 fi
27179
27180
27181 succeeded=no
27182
27183 if test -z "$PKG_CONFIG"; then
27184 # Extract the first word of "pkg-config", so it can be a program name with args.
27185set dummy pkg-config; ac_word=$2
27186echo "$as_me:$LINENO: checking for $ac_word" >&5
27187echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
27188if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
27189 echo $ECHO_N "(cached) $ECHO_C" >&6
27190else
27191 case $PKG_CONFIG in
27192 [\\/]* | ?:[\\/]*)
27193 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
27194 ;;
27195 *)
27196 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27197for as_dir in $PATH
27198do
27199 IFS=$as_save_IFS
27200 test -z "$as_dir" && as_dir=.
27201 for ac_exec_ext in '' $ac_executable_extensions; do
27202 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27203 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
27204 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27205 break 2
27206 fi
27207done
27208done
27209
27210 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
27211 ;;
27212esac
27213fi
27214PKG_CONFIG=$ac_cv_path_PKG_CONFIG
27215
27216if test -n "$PKG_CONFIG"; then
27217 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
27218echo "${ECHO_T}$PKG_CONFIG" >&6
27219else
27220 echo "$as_me:$LINENO: result: no" >&5
27221echo "${ECHO_T}no" >&6
27222fi
27223
27224 fi
27225
27226 if test "$PKG_CONFIG" = "no" ; then
27227 echo "*** The pkg-config script could not be found. Make sure it is"
27228 echo "*** in your path, or set the PKG_CONFIG environment variable"
27229 echo "*** to the full path to pkg-config."
27230 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
27231 else
27232 PKG_CONFIG_MIN_VERSION=0.9.0
27233 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
27234 echo "$as_me:$LINENO: checking for pangoxft" >&5
27235echo $ECHO_N "checking for pangoxft... $ECHO_C" >&6
27236
27237 if $PKG_CONFIG --exists "pangoxft" ; then
27238 echo "$as_me:$LINENO: result: yes" >&5
27239echo "${ECHO_T}yes" >&6
27240 succeeded=yes
27241
27242 echo "$as_me:$LINENO: checking PANGOXFT_CFLAGS" >&5
27243echo $ECHO_N "checking PANGOXFT_CFLAGS... $ECHO_C" >&6
27244 PANGOXFT_CFLAGS=`$PKG_CONFIG --cflags "pangoxft"`
27245 echo "$as_me:$LINENO: result: $PANGOXFT_CFLAGS" >&5
27246echo "${ECHO_T}$PANGOXFT_CFLAGS" >&6
27247
27248 echo "$as_me:$LINENO: checking PANGOXFT_LIBS" >&5
27249echo $ECHO_N "checking PANGOXFT_LIBS... $ECHO_C" >&6
27250 PANGOXFT_LIBS=`$PKG_CONFIG --libs "pangoxft"`
27251 echo "$as_me:$LINENO: result: $PANGOXFT_LIBS" >&5
27252echo "${ECHO_T}$PANGOXFT_LIBS" >&6
27253 else
27254 PANGOXFT_CFLAGS=""
27255 PANGOXFT_LIBS=""
27256 ## If we have a custom action on failure, don't print errors, but
27257 ## do set a variable so people can do so.
27258 PANGOXFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoxft"`
27259
27260 fi
27261
27262
27263
27264 else
27265 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
27266 echo "*** See http://www.freedesktop.org/software/pkgconfig"
27267 fi
27268 fi
27269
27270 if test $succeeded = yes; then
27271
4ae1af05
MB
27272 cat >>confdefs.h <<\_ACEOF
27273#define HAVE_PANGO_XFT 1
27274_ACEOF
27275
a848cd7e
SC
27276 CXXFLAGS="$CXXFLAGS $PANGOXFT_CFLAGS"
27277 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOXFT_LIBS"
27278
27279 else
27280
27281 { echo "$as_me:$LINENO: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&5
27282echo "$as_me: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&2;}
27283
27284
27285 fi
27286
304205f1
VS
27287 save_CFLAGS="$CFLAGS"
27288 save_LIBS="$LIBS"
27289 CFLAGS="$CFLAGS $PANGOX_CFLAGS"
27290 LIBS="$LIBS $PANGOX_LIBS"
27291
27292for ac_func in pango_font_family_is_monospace
27293do
27294as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27295echo "$as_me:$LINENO: checking for $ac_func" >&5
27296echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27297if eval "test \"\${$as_ac_var+set}\" = set"; then
27298 echo $ECHO_N "(cached) $ECHO_C" >&6
27299else
27300 cat >conftest.$ac_ext <<_ACEOF
27301/* confdefs.h. */
27302_ACEOF
27303cat confdefs.h >>conftest.$ac_ext
27304cat >>conftest.$ac_ext <<_ACEOF
27305/* end confdefs.h. */
27306/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27307 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27308#define $ac_func innocuous_$ac_func
27309
27310/* System header to define __stub macros and hopefully few prototypes,
27311 which can conflict with char $ac_func (); below.
27312 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27313 <limits.h> exists even on freestanding compilers. */
27314
27315#ifdef __STDC__
27316# include <limits.h>
27317#else
27318# include <assert.h>
27319#endif
27320
27321#undef $ac_func
27322
27323/* Override any gcc2 internal prototype to avoid an error. */
27324#ifdef __cplusplus
27325extern "C"
27326{
27327#endif
27328/* We use char because int might match the return type of a gcc2
27329 builtin and then its argument prototype would still apply. */
27330char $ac_func ();
27331/* The GNU C library defines this for functions which it implements
27332 to always fail with ENOSYS. Some functions are actually named
27333 something starting with __ and the normal name is an alias. */
27334#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27335choke me
27336#else
27337char (*f) () = $ac_func;
27338#endif
27339#ifdef __cplusplus
27340}
27341#endif
27342
27343int
27344main ()
27345{
27346return f != $ac_func;
27347 ;
27348 return 0;
27349}
27350_ACEOF
27351rm -f conftest.$ac_objext conftest$ac_exeext
27352if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27353 (eval $ac_link) 2>conftest.er1
27354 ac_status=$?
27355 grep -v '^ *+' conftest.er1 >conftest.err
27356 rm -f conftest.er1
27357 cat conftest.err >&5
27358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27359 (exit $ac_status); } &&
07158944 27360 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
304205f1
VS
27361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27362 (eval $ac_try) 2>&5
27363 ac_status=$?
27364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27365 (exit $ac_status); }; } &&
27366 { ac_try='test -s conftest$ac_exeext'
27367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27368 (eval $ac_try) 2>&5
27369 ac_status=$?
27370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27371 (exit $ac_status); }; }; then
27372 eval "$as_ac_var=yes"
27373else
27374 echo "$as_me: failed program was:" >&5
27375sed 's/^/| /' conftest.$ac_ext >&5
27376
27377eval "$as_ac_var=no"
27378fi
27379rm -f conftest.err conftest.$ac_objext \
27380 conftest$ac_exeext conftest.$ac_ext
27381fi
27382echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27383echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27384if test `eval echo '${'$as_ac_var'}'` = yes; then
27385 cat >>confdefs.h <<_ACEOF
27386#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27387_ACEOF
27388
27389fi
27390done
27391
27392 CFLAGS="$save_CFLAGS"
27393 LIBS="$save_LIBS"
a848cd7e
SC
27394 fi
27395
27396 wxUSE_UNIVERSAL="yes"
27397
27398 if test "$wxUSE_NANOX" = "yes"; then
27399 TOOLKIT_INCLUDE="-I\$(top_srcdir)/include/wx/x11/nanox -I\$(MICROWIN)/src/include $TOOLKIT_INCLUDE"
27400 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"
27401 GUI_TK_LIBRARY="$GUI_TK_LIBRARY \$(MICROWIN)/src/lib/libnano-X.a"
27402 else
27403 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lX11"
27404 fi
27405
a848cd7e
SC
27406 TOOLKIT=X11
27407 GUIDIST=X11_DIST
27408 fi
27409
27410 if test "$wxUSE_MOTIF" = 1; then
74b84332
VS
27411 echo "$as_me:$LINENO: checking for Motif/Lesstif headers" >&5
27412echo $ECHO_N "checking for Motif/Lesstif headers... $ECHO_C" >&6
a848cd7e 27413
74b84332
VS
27414ac_find_includes=
27415for ac_dir in $SEARCH_INCLUDE /usr/include;
27416 do
27417 if test -f "$ac_dir/Xm/Xm.h"; then
27418 ac_find_includes=$ac_dir
27419 break
27420 fi
27421 done
a848cd7e 27422
74b84332
VS
27423 if test "$ac_find_includes" != "" ; then
27424 echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
27425echo "${ECHO_T}found in $ac_find_includes" >&6
27426
27427 if test "x$ac_find_includes" = "x/usr/include"; then
27428 ac_path_to_include=""
27429 else
27430 echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null
27431 result=$?
27432 if test $result = 0; then
27433 ac_path_to_include=""
27434 else
27435 ac_path_to_include=" -I$ac_find_includes"
27436 fi
a848cd7e
SC
27437 fi
27438
74b84332
VS
27439 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE$ac_path_to_include"
27440 else
27441 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
27442/* confdefs.h. */
27443_ACEOF
27444cat confdefs.h >>conftest.$ac_ext
27445cat >>conftest.$ac_ext <<_ACEOF
27446/* end confdefs.h. */
27447
74b84332
VS
27448 #include <Xm/Xm.h>
27449
a848cd7e
SC
27450int
27451main ()
27452{
27453
74b84332
VS
27454 int version;
27455 version = xmUseVersion;
27456
a848cd7e
SC
27457 ;
27458 return 0;
27459}
27460_ACEOF
74b84332
VS
27461rm -f conftest.$ac_objext
27462if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27463 (eval $ac_compile) 2>conftest.er1
a848cd7e 27464 ac_status=$?
ac1cb8d3
VS
27465 grep -v '^ *+' conftest.er1 >conftest.err
27466 rm -f conftest.er1
27467 cat conftest.err >&5
a848cd7e
SC
27468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27469 (exit $ac_status); } &&
07158944 27470 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
27471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27472 (eval $ac_try) 2>&5
27473 ac_status=$?
27474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27475 (exit $ac_status); }; } &&
74b84332 27476 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
27477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27478 (eval $ac_try) 2>&5
27479 ac_status=$?
27480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27481 (exit $ac_status); }; }; then
74b84332
VS
27482
27483 echo "$as_me:$LINENO: result: found in default search path" >&5
27484echo "${ECHO_T}found in default search path" >&6
27485 COMPILED_X_PROGRAM=1
27486
a848cd7e
SC
27487else
27488 echo "$as_me: failed program was:" >&5
27489sed 's/^/| /' conftest.$ac_ext >&5
27490
a848cd7e 27491
74b84332
VS
27492 echo "$as_me:$LINENO: result: no" >&5
27493echo "${ECHO_T}no" >&6
27494 { { echo "$as_me:$LINENO: error: please set CFLAGS to contain the location of Xm/Xm.h" >&5
27495echo "$as_me: error: please set CFLAGS to contain the location of Xm/Xm.h" >&2;}
27496 { (exit 1); exit 1; }; }
a848cd7e 27497
a848cd7e 27498
a848cd7e 27499fi
74b84332
VS
27500rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27501 fi
27502
27503 if test "$COMPILED_X_PROGRAM" = 0; then
27504 echo "$as_me:$LINENO: checking for Motif/Lesstif library" >&5
27505echo $ECHO_N "checking for Motif/Lesstif library... $ECHO_C" >&6
27506
27507ac_find_libraries=
27508for ac_dir in $SEARCH_LIB /usr/lib;
27509 do
27510 for ac_extension in a so sl dylib; do
27511 if test -f "$ac_dir/libXm.$ac_extension"; then
27512 ac_find_libraries=$ac_dir
27513 break 2
a848cd7e 27514 fi
74b84332
VS
27515 done
27516 done
a848cd7e 27517
74b84332
VS
27518 if test "$ac_find_libraries" != "" ; then
27519 echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5
27520echo "${ECHO_T}found at $ac_find_libraries" >&6
a848cd7e 27521
74b84332
VS
27522
27523 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
27524 result=$?
27525 if test $result = 0; then
27526 ac_path_to_link=""
a848cd7e 27527 else
74b84332
VS
27528 ac_path_to_link=" -L$ac_find_libraries"
27529 fi
27530
27531 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
27532 else
27533 save_CFLAGS=$CFLAGS
27534 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
27535
27536 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
27537/* confdefs.h. */
27538_ACEOF
27539cat confdefs.h >>conftest.$ac_ext
27540cat >>conftest.$ac_ext <<_ACEOF
27541/* end confdefs.h. */
27542
74b84332
VS
27543 #include <Xm/Xm.h>
27544
a848cd7e
SC
27545int
27546main ()
27547{
74b84332
VS
27548
27549 int version;
27550 version = xmUseVersion;
27551
a848cd7e
SC
27552 ;
27553 return 0;
27554}
27555_ACEOF
74b84332
VS
27556rm -f conftest.$ac_objext
27557if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27558 (eval $ac_compile) 2>conftest.er1
a848cd7e 27559 ac_status=$?
ac1cb8d3
VS
27560 grep -v '^ *+' conftest.er1 >conftest.err
27561 rm -f conftest.er1
27562 cat conftest.err >&5
a848cd7e
SC
27563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27564 (exit $ac_status); } &&
07158944 27565 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
27566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27567 (eval $ac_try) 2>&5
27568 ac_status=$?
27569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27570 (exit $ac_status); }; } &&
74b84332 27571 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
27572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27573 (eval $ac_try) 2>&5
27574 ac_status=$?
27575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27576 (exit $ac_status); }; }; then
74b84332
VS
27577
27578 echo "$as_me:$LINENO: result: found in default search path" >&5
27579echo "${ECHO_T}found in default search path" >&6
27580 COMPILED_X_PROGRAM=1
27581
a848cd7e
SC
27582else
27583 echo "$as_me: failed program was:" >&5
27584sed 's/^/| /' conftest.$ac_ext >&5
27585
74b84332
VS
27586
27587 echo "$as_me:$LINENO: result: no" >&5
27588echo "${ECHO_T}no" >&6
27589 { { echo "$as_me:$LINENO: error: please set LDFLAGS to contain the location of libXm" >&5
27590echo "$as_me: error: please set LDFLAGS to contain the location of libXm" >&2;}
27591 { (exit 1); exit 1; }; }
27592
27593
27594fi
27595rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27596
27597 CFLAGS=$save_CFLAGS
27598 fi
27599 fi
27600
27601 echo "$as_me:$LINENO: checking if we need -lXp and/or -lSM -lICE" >&5
27602echo $ECHO_N "checking if we need -lXp and/or -lSM -lICE... $ECHO_C" >&6
27603 libp_link=""
27604 libsm_ice_link=""
27605 libs_found=0
27606 for libp in "" " -lXp"; do
27607 if test "$libs_found" = "0"; then
27608 for libsm_ice in "" " -lSM -lICE"; do
27609 if test "$libs_found" = "0"; then
27610 save_LIBS="$LIBS"
27611 LIBS="$GUI_TK_LIBRARY -lXm ${libp} -lXmu -lXext -lXt${libsm_ice} -lX11"
27612 save_CFLAGS=$CFLAGS
27613 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
27614
27615 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
27616/* confdefs.h. */
27617_ACEOF
27618cat confdefs.h >>conftest.$ac_ext
27619cat >>conftest.$ac_ext <<_ACEOF
27620/* end confdefs.h. */
27621
74b84332
VS
27622 #include <Xm/Xm.h>
27623 #include <Xm/List.h>
27624
a848cd7e
SC
27625int
27626main ()
27627{
74b84332
VS
27628
27629 XmString string = NULL;
27630 Widget w = NULL;
27631 int position = 0;
27632 XmListAddItem(w, string, position);
27633
a848cd7e
SC
27634 ;
27635 return 0;
27636}
27637_ACEOF
27638rm -f conftest.$ac_objext conftest$ac_exeext
27639if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27640 (eval $ac_link) 2>conftest.er1
a848cd7e 27641 ac_status=$?
ac1cb8d3
VS
27642 grep -v '^ *+' conftest.er1 >conftest.err
27643 rm -f conftest.er1
27644 cat conftest.err >&5
a848cd7e
SC
27645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27646 (exit $ac_status); } &&
07158944 27647 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
27648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27649 (eval $ac_try) 2>&5
27650 ac_status=$?
27651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27652 (exit $ac_status); }; } &&
27653 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27655 (eval $ac_try) 2>&5
27656 ac_status=$?
27657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27658 (exit $ac_status); }; }; then
27659
27660 libp_link="$libp"
27661 libsm_ice_link="$libsm_ice"
27662 echo "$as_me:$LINENO: result: need${libp_link}${libsm_ice_link}" >&5
27663echo "${ECHO_T}need${libp_link}${libsm_ice_link}" >&6
27664 libs_found=1
27665
27666else
27667 echo "$as_me: failed program was:" >&5
27668sed 's/^/| /' conftest.$ac_ext >&5
27669
27670
27671
27672fi
ac1cb8d3
VS
27673rm -f conftest.err conftest.$ac_objext \
27674 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27675
27676 LIBS="$save_LIBS"
27677 CFLAGS=$save_CFLAGS
27678 fi
27679 done
27680 fi
27681 done
27682
27683 if test "$libs_found" = "0"; then
27684 echo "$as_me:$LINENO: result: can't find the right libraries" >&5
27685echo "${ECHO_T}can't find the right libraries" >&6
27686 { { echo "$as_me:$LINENO: error: can't link a simple motif program" >&5
27687echo "$as_me: error: can't link a simple motif program" >&2;}
27688 { (exit 1); exit 1; }; }
27689 fi
27690
27691 save_CFLAGS=$CFLAGS
27692 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
27693 echo "$as_me:$LINENO: checking for Motif 2" >&5
27694echo $ECHO_N "checking for Motif 2... $ECHO_C" >&6
27695 cat >conftest.$ac_ext <<_ACEOF
27696/* confdefs.h. */
27697_ACEOF
27698cat confdefs.h >>conftest.$ac_ext
27699cat >>conftest.$ac_ext <<_ACEOF
27700/* end confdefs.h. */
27701
27702 #include <Xm/Xm.h>
27703
27704int
27705main ()
27706{
27707
27708 #if XmVersion < 2000
27709 #error "Not Motif 2"
27710 #endif
27711
27712 ;
27713 return 0;
27714}
27715_ACEOF
27716rm -f conftest.$ac_objext
27717if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 27718 (eval $ac_compile) 2>conftest.er1
a848cd7e 27719 ac_status=$?
ac1cb8d3
VS
27720 grep -v '^ *+' conftest.er1 >conftest.err
27721 rm -f conftest.er1
27722 cat conftest.err >&5
a848cd7e
SC
27723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27724 (exit $ac_status); } &&
07158944 27725 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
27726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27727 (eval $ac_try) 2>&5
27728 ac_status=$?
27729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27730 (exit $ac_status); }; } &&
27731 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
27732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27733 (eval $ac_try) 2>&5
27734 ac_status=$?
27735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27736 (exit $ac_status); }; }; then
27737
27738 cat >>confdefs.h <<\_ACEOF
27739#define __WXMOTIF20__ 1
27740_ACEOF
27741
27742 echo "$as_me:$LINENO: result: found" >&5
27743echo "${ECHO_T}found" >&6
27744
27745else
27746 echo "$as_me: failed program was:" >&5
27747sed 's/^/| /' conftest.$ac_ext >&5
27748
27749
27750 cat >>confdefs.h <<\_ACEOF
27751#define __WXMOTIF20__ 0
27752_ACEOF
27753
27754 echo "$as_me:$LINENO: result: not found" >&5
27755echo "${ECHO_T}not found" >&6
27756
27757fi
ac1cb8d3 27758rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
27759 CFLAGS=$save_CFLAGS
27760
27761 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXm${libp_link} -lXmu -lXext -lXt${libsm_ice_link} -lX11"
a848cd7e
SC
27762 TOOLKIT=MOTIF
27763 GUIDIST=MOTIF_DIST
27764 fi
27765
74b84332 27766 if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
a848cd7e
SC
27767 if test "$wxUSE_LIBXPM" = "sys"; then
27768 echo "$as_me:$LINENO: checking for Xpm library" >&5
27769echo $ECHO_N "checking for Xpm library... $ECHO_C" >&6
27770
27771ac_find_libraries=
27772for ac_dir in $SEARCH_LIB /usr/lib;
27773 do
27774 for ac_extension in a so sl dylib; do
27775 if test -f "$ac_dir/libXpm.$ac_extension"; then
27776 ac_find_libraries=$ac_dir
27777 break 2
27778 fi
27779 done
27780 done
27781
27782 if test "$ac_find_libraries" != "" ; then
27783
27784 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
27785 result=$?
27786 if test $result = 0; then
27787 ac_path_to_link=""
27788 else
27789 ac_path_to_link=" -L$ac_find_libraries"
27790 fi
27791
27792 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
27793 echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5
27794echo "${ECHO_T}found at $ac_find_libraries" >&6
27795
27796 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
27797echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
27798if test "${wx_cv_x11_xpm_h+set}" = set; then
27799 echo $ECHO_N "(cached) $ECHO_C" >&6
27800else
27801
27802 save_CFLAGS=$CFLAGS
27803 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
27804
27805 cat >conftest.$ac_ext <<_ACEOF
27806/* confdefs.h. */
27807_ACEOF
27808cat confdefs.h >>conftest.$ac_ext
27809cat >>conftest.$ac_ext <<_ACEOF
27810/* end confdefs.h. */
27811
27812 #include <X11/xpm.h>
27813
27814int
27815main ()
27816{
27817
27818 int version;
27819 version = XpmLibraryVersion();
27820
27821 ;
27822 return 0;
27823}
27824_ACEOF
27825rm -f conftest.$ac_objext
27826if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 27827 (eval $ac_compile) 2>conftest.er1
a848cd7e 27828 ac_status=$?
ac1cb8d3
VS
27829 grep -v '^ *+' conftest.er1 >conftest.err
27830 rm -f conftest.er1
27831 cat conftest.err >&5
a848cd7e
SC
27832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27833 (exit $ac_status); } &&
07158944 27834 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
27835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27836 (eval $ac_try) 2>&5
27837 ac_status=$?
27838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27839 (exit $ac_status); }; } &&
27840 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
27841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27842 (eval $ac_try) 2>&5
27843 ac_status=$?
27844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27845 (exit $ac_status); }; }; then
27846 wx_cv_x11_xpm_h=yes
27847else
27848 echo "$as_me: failed program was:" >&5
27849sed 's/^/| /' conftest.$ac_ext >&5
27850
27851wx_cv_x11_xpm_h=no
27852
27853fi
ac1cb8d3 27854rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
27855
27856 CFLAGS=$save_CFLAGS
27857
27858
27859fi
27860echo "$as_me:$LINENO: result: $wx_cv_x11_xpm_h" >&5
27861echo "${ECHO_T}$wx_cv_x11_xpm_h" >&6
27862
27863 if test $wx_cv_x11_xpm_h = "yes"; then
27864 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXpm"
27865 cat >>confdefs.h <<\_ACEOF
27866#define wxHAVE_LIB_XPM 1
27867_ACEOF
27868
27869 else
27870 { echo "$as_me:$LINENO: WARNING: built-in less efficient XPM decoder will be used" >&5
27871echo "$as_me: WARNING: built-in less efficient XPM decoder will be used" >&2;}
27872 fi
27873 fi
27874
27875 fi
27876
27877 echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
27878echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6
27879if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
27880 echo $ECHO_N "(cached) $ECHO_C" >&6
27881else
27882 ac_check_lib_save_LIBS=$LIBS
27883LIBS="-lXext $GUI_TK_LIBRARY -lX11 $LIBS"
27884cat >conftest.$ac_ext <<_ACEOF
27885/* confdefs.h. */
27886_ACEOF
27887cat confdefs.h >>conftest.$ac_ext
27888cat >>conftest.$ac_ext <<_ACEOF
27889/* end confdefs.h. */
27890
27891/* Override any gcc2 internal prototype to avoid an error. */
27892#ifdef __cplusplus
27893extern "C"
27894#endif
27895/* We use char because int might match the return type of a gcc2
27896 builtin and then its argument prototype would still apply. */
27897char XShapeQueryExtension ();
27898int
27899main ()
27900{
27901XShapeQueryExtension ();
27902 ;
27903 return 0;
27904}
27905_ACEOF
27906rm -f conftest.$ac_objext conftest$ac_exeext
27907if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27908 (eval $ac_link) 2>conftest.er1
a848cd7e 27909 ac_status=$?
ac1cb8d3
VS
27910 grep -v '^ *+' conftest.er1 >conftest.err
27911 rm -f conftest.er1
27912 cat conftest.err >&5
a848cd7e
SC
27913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27914 (exit $ac_status); } &&
07158944 27915 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
27916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27917 (eval $ac_try) 2>&5
27918 ac_status=$?
27919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27920 (exit $ac_status); }; } &&
27921 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27923 (eval $ac_try) 2>&5
27924 ac_status=$?
27925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27926 (exit $ac_status); }; }; then
27927 ac_cv_lib_Xext_XShapeQueryExtension=yes
27928else
27929 echo "$as_me: failed program was:" >&5
27930sed 's/^/| /' conftest.$ac_ext >&5
27931
27932ac_cv_lib_Xext_XShapeQueryExtension=no
27933fi
ac1cb8d3
VS
27934rm -f conftest.err conftest.$ac_objext \
27935 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27936LIBS=$ac_check_lib_save_LIBS
27937fi
27938echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
27939echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6
27940if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
27941
27942 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXext"
27943 wxHAVE_XEXT_LIB=1
27944
27945fi
27946
27947
27948 if test "$wxHAVE_XEXT_LIB" = 1; then
27949 save_CFLAGS="$CFLAGS"
27950 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
27951
27952 echo "$as_me:$LINENO: checking for X11/extensions/shape.h" >&5
27953echo $ECHO_N "checking for X11/extensions/shape.h... $ECHO_C" >&6
27954 cat >conftest.$ac_ext <<_ACEOF
27955/* confdefs.h. */
27956_ACEOF
27957cat confdefs.h >>conftest.$ac_ext
27958cat >>conftest.$ac_ext <<_ACEOF
27959/* end confdefs.h. */
27960
27961 #include <X11/Xlib.h>
27962 #include <X11/extensions/shape.h>
27963
27964int
27965main ()
27966{
27967
27968 int dummy1, dummy2;
27969 XShapeQueryExtension((Display*)NULL,
27970 (int*)NULL, (int*)NULL);
27971
27972 ;
27973 return 0;
27974}
27975_ACEOF
27976rm -f conftest.$ac_objext
27977if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 27978 (eval $ac_compile) 2>conftest.er1
a848cd7e 27979 ac_status=$?
ac1cb8d3
VS
27980 grep -v '^ *+' conftest.er1 >conftest.err
27981 rm -f conftest.er1
27982 cat conftest.err >&5
a848cd7e
SC
27983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27984 (exit $ac_status); } &&
07158944 27985 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
27986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27987 (eval $ac_try) 2>&5
27988 ac_status=$?
27989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27990 (exit $ac_status); }; } &&
27991 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
27992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27993 (eval $ac_try) 2>&5
27994 ac_status=$?
27995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27996 (exit $ac_status); }; }; then
27997
27998 cat >>confdefs.h <<\_ACEOF
27999#define HAVE_XSHAPE 1
28000_ACEOF
28001
28002 echo "$as_me:$LINENO: result: found" >&5
28003echo "${ECHO_T}found" >&6
28004
28005else
28006 echo "$as_me: failed program was:" >&5
28007sed 's/^/| /' conftest.$ac_ext >&5
28008
28009
28010 echo "$as_me:$LINENO: result: not found" >&5
28011echo "${ECHO_T}not found" >&6
28012
28013fi
ac1cb8d3 28014rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
28015 CFLAGS="$save_CFLAGS"
28016
28017 fi
28018 fi
28019
28020 if test "$wxUSE_MAC" = 1; then
28021 echo "$as_me:$LINENO: checking for compiler syntax to enable Pascal strings" >&5
28022echo $ECHO_N "checking for compiler syntax to enable Pascal strings... $ECHO_C" >&6
28023 if test "$GCC" = yes; then
28024 echo "$as_me:$LINENO: result: gcc" >&5
28025echo "${ECHO_T}gcc" >&6
28026 CPPFLAGS_PASCAL="-fpascal-strings"
28027 elif test "`echo $CXX | sed -e 's@.*/@@'`" = "xlC"; then
28028 echo "$as_me:$LINENO: result: xlc" >&5
28029echo "${ECHO_T}xlc" >&6
28030 CPPFLAGS_PASCAL="-qmacpstr"
28031 else
28032 echo "$as_me:$LINENO: result: none" >&5
28033echo "${ECHO_T}none" >&6
28034 fi
28035
1e9e8aba
DE
28036 if test "x$wxUSE_UNIX" = "xyes"; then
28037 CPPFLAGS="$CPPFLAGS $CPPFLAGS_PASCAL -I\${top_srcdir}/src/mac/carbon/morefilex -I/Developer/Headers/FlatCarbon"
28038 else
28039 CPPFLAGS="$CPPFLAGS $CPPFLAGS_PASCAL -I\${top_srcdir}/src/mac/carbon/morefilex -DTARGET_CARBON"
28040 fi
a848cd7e 28041
a848cd7e
SC
28042 TOOLKIT=MAC
28043 GUIDIST=MACX_DIST
dd21ced8 28044 WXBASEPORT="_carbon"
a848cd7e
SC
28045 fi
28046
28047 if test "$wxUSE_COCOA" = 1; then
a848cd7e
SC
28048 TOOLKIT=COCOA
28049 GUIDIST=COCOA_DIST
28050 fi
28051
28052 if test "$wxUSE_PM" = 1; then
28053 TOOLKIT=PM
de59c161
RD
28054 GUIDIST=PM_DIST
28055 echo "$as_me:$LINENO: checking for type SPBCDATA" >&5
28056echo $ECHO_N "checking for type SPBCDATA... $ECHO_C" >&6
28057if test "${wx_cv_spbcdata+set}" = set; then
28058 echo $ECHO_N "(cached) $ECHO_C" >&6
28059else
28060
28061 cat >conftest.$ac_ext <<_ACEOF
de59c161
RD
28062/* confdefs.h. */
28063_ACEOF
28064cat confdefs.h >>conftest.$ac_ext
28065cat >>conftest.$ac_ext <<_ACEOF
28066/* end confdefs.h. */
28067
28068 #define INCL_PM
28069 #include <os2.h>
28070
28071int
28072main ()
28073{
28074
28075 SPBCDATA test;
28076
28077 ;
28078 return 0;
28079}
28080_ACEOF
28081rm -f conftest.$ac_objext
28082if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 28083 (eval $ac_compile) 2>conftest.er1
de59c161 28084 ac_status=$?
ac1cb8d3
VS
28085 grep -v '^ *+' conftest.er1 >conftest.err
28086 rm -f conftest.er1
28087 cat conftest.err >&5
de59c161
RD
28088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28089 (exit $ac_status); } &&
07158944 28090 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28092 (eval $ac_try) 2>&5
28093 ac_status=$?
28094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28095 (exit $ac_status); }; } &&
28096 { ac_try='test -s conftest.$ac_objext'
de59c161
RD
28097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28098 (eval $ac_try) 2>&5
28099 ac_status=$?
28100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28101 (exit $ac_status); }; }; then
28102 wx_cv_spbcdata=yes
28103else
28104 echo "$as_me: failed program was:" >&5
28105sed 's/^/| /' conftest.$ac_ext >&5
28106
28107wx_cv_spbcdata=no
28108
28109fi
ac1cb8d3 28110rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
de59c161
RD
28111
28112
28113fi
28114echo "$as_me:$LINENO: result: $wx_cv_spbcdata" >&5
28115echo "${ECHO_T}$wx_cv_spbcdata" >&6
28116
28117 if test $wx_cv_spbcdata = "yes"; then
28118 cat >>confdefs.h <<\_ACEOF
28119#define HAVE_SPBCDATA 1
28120_ACEOF
28121
28122 fi
a848cd7e
SC
28123 fi
28124
28125 if test "$TOOLKIT" = "PM" ; then
28126 TOOLKIT_DIR="os2"
28127 else
28128 TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"`
28129 fi
28130
a848cd7e 28131 if test "$wxUSE_UNIVERSAL" = "yes"; then
a848cd7e
SC
28132 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__"
28133 WIDGET_SET=univ
a848cd7e
SC
28134 fi
28135
28136 GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST"
28137 DISTDIR="wx\$(TOOLKIT)"
28138else
28139 USE_GUI=0
28140
28141 TOOLKIT_DIR="base"
28142
28143 if test "$USE_WIN32" = 1 ; then
a848cd7e 28144 TOOLKIT="MSW"
a848cd7e
SC
28145 fi
28146
a848cd7e
SC
28147 GUIDIST="BASE_DIST"
28148 DISTDIR="wxBase"
28149fi
28150
28151
28152
28153
28154IODBC_C_SRC=""
28155
28156
28157if test "$TOOLKIT" != "MSW" ; then
28158
28159 if test "$wxUSE_ODBC" = "sys" -o "$wxUSE_ODBC" = "yes" ; then
28160
28161 if test "${ac_cv_header_sql_h+set}" = set; then
28162 echo "$as_me:$LINENO: checking for sql.h" >&5
28163echo $ECHO_N "checking for sql.h... $ECHO_C" >&6
28164if test "${ac_cv_header_sql_h+set}" = set; then
28165 echo $ECHO_N "(cached) $ECHO_C" >&6
28166fi
28167echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
28168echo "${ECHO_T}$ac_cv_header_sql_h" >&6
28169else
28170 # Is the header compilable?
28171echo "$as_me:$LINENO: checking sql.h usability" >&5
28172echo $ECHO_N "checking sql.h usability... $ECHO_C" >&6
28173cat >conftest.$ac_ext <<_ACEOF
28174/* confdefs.h. */
28175_ACEOF
28176cat confdefs.h >>conftest.$ac_ext
28177cat >>conftest.$ac_ext <<_ACEOF
28178/* end confdefs.h. */
28179$ac_includes_default
28180#include <sql.h>
28181_ACEOF
28182rm -f conftest.$ac_objext
28183if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 28184 (eval $ac_compile) 2>conftest.er1
a848cd7e 28185 ac_status=$?
ac1cb8d3
VS
28186 grep -v '^ *+' conftest.er1 >conftest.err
28187 rm -f conftest.er1
28188 cat conftest.err >&5
a848cd7e
SC
28189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28190 (exit $ac_status); } &&
07158944 28191 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28193 (eval $ac_try) 2>&5
28194 ac_status=$?
28195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28196 (exit $ac_status); }; } &&
28197 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
28198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28199 (eval $ac_try) 2>&5
28200 ac_status=$?
28201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28202 (exit $ac_status); }; }; then
28203 ac_header_compiler=yes
28204else
28205 echo "$as_me: failed program was:" >&5
28206sed 's/^/| /' conftest.$ac_ext >&5
28207
28208ac_header_compiler=no
28209fi
ac1cb8d3 28210rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
28211echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28212echo "${ECHO_T}$ac_header_compiler" >&6
28213
28214# Is the header present?
28215echo "$as_me:$LINENO: checking sql.h presence" >&5
28216echo $ECHO_N "checking sql.h presence... $ECHO_C" >&6
28217cat >conftest.$ac_ext <<_ACEOF
28218/* confdefs.h. */
28219_ACEOF
28220cat confdefs.h >>conftest.$ac_ext
28221cat >>conftest.$ac_ext <<_ACEOF
28222/* end confdefs.h. */
28223#include <sql.h>
28224_ACEOF
28225if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
28226 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
28227 ac_status=$?
28228 grep -v '^ *+' conftest.er1 >conftest.err
28229 rm -f conftest.er1
28230 cat conftest.err >&5
28231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28232 (exit $ac_status); } >/dev/null; then
28233 if test -s conftest.err; then
28234 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 28235 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
28236 else
28237 ac_cpp_err=
28238 fi
28239else
28240 ac_cpp_err=yes
28241fi
28242if test -z "$ac_cpp_err"; then
28243 ac_header_preproc=yes
28244else
28245 echo "$as_me: failed program was:" >&5
28246sed 's/^/| /' conftest.$ac_ext >&5
28247
28248 ac_header_preproc=no
28249fi
28250rm -f conftest.err conftest.$ac_ext
28251echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28252echo "${ECHO_T}$ac_header_preproc" >&6
28253
28254# So? What about this header?
ac1cb8d3
VS
28255case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28256 yes:no: )
a848cd7e
SC
28257 { echo "$as_me:$LINENO: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&5
28258echo "$as_me: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
28259 { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the compiler's result" >&5
28260echo "$as_me: WARNING: sql.h: proceeding with the compiler's result" >&2;}
28261 ac_header_preproc=yes
a848cd7e 28262 ;;
ac1cb8d3 28263 no:yes:* )
a848cd7e
SC
28264 { echo "$as_me:$LINENO: WARNING: sql.h: present but cannot be compiled" >&5
28265echo "$as_me: WARNING: sql.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
28266 { echo "$as_me:$LINENO: WARNING: sql.h: check for missing prerequisite headers?" >&5
28267echo "$as_me: WARNING: sql.h: check for missing prerequisite headers?" >&2;}
28268 { echo "$as_me:$LINENO: WARNING: sql.h: see the Autoconf documentation" >&5
28269echo "$as_me: WARNING: sql.h: see the Autoconf documentation" >&2;}
28270 { echo "$as_me:$LINENO: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&5
28271echo "$as_me: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
28272 { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the preprocessor's result" >&5
28273echo "$as_me: WARNING: sql.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
28274 { echo "$as_me:$LINENO: WARNING: sql.h: in the future, the compiler will take precedence" >&5
28275echo "$as_me: WARNING: sql.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
28276 (
28277 cat <<\_ASBOX
ac1cb8d3
VS
28278## ----------------------------------------- ##
28279## Report this to wx-dev@lists.wxwidgets.org ##
28280## ----------------------------------------- ##
a848cd7e
SC
28281_ASBOX
28282 ) |
28283 sed "s/^/$as_me: WARNING: /" >&2
28284 ;;
28285esac
28286echo "$as_me:$LINENO: checking for sql.h" >&5
28287echo $ECHO_N "checking for sql.h... $ECHO_C" >&6
28288if test "${ac_cv_header_sql_h+set}" = set; then
28289 echo $ECHO_N "(cached) $ECHO_C" >&6
28290else
28291 ac_cv_header_sql_h=$ac_header_preproc
28292fi
28293echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
28294echo "${ECHO_T}$ac_cv_header_sql_h" >&6
28295
28296fi
28297if test $ac_cv_header_sql_h = yes; then
28298 found_sql_h=1
28299fi
28300
28301
28302 if test "x$found_sql_h" = "x1" ; then
28303 echo "$as_me:$LINENO: checking for SQLAllocEnv in -liodbc" >&5
28304echo $ECHO_N "checking for SQLAllocEnv in -liodbc... $ECHO_C" >&6
28305if test "${ac_cv_lib_iodbc_SQLAllocEnv+set}" = set; then
28306 echo $ECHO_N "(cached) $ECHO_C" >&6
28307else
28308 ac_check_lib_save_LIBS=$LIBS
28309LIBS="-liodbc $LIBS"
28310cat >conftest.$ac_ext <<_ACEOF
28311/* confdefs.h. */
28312_ACEOF
28313cat confdefs.h >>conftest.$ac_ext
28314cat >>conftest.$ac_ext <<_ACEOF
28315/* end confdefs.h. */
28316
28317/* Override any gcc2 internal prototype to avoid an error. */
28318#ifdef __cplusplus
28319extern "C"
28320#endif
28321/* We use char because int might match the return type of a gcc2
28322 builtin and then its argument prototype would still apply. */
28323char SQLAllocEnv ();
28324int
28325main ()
28326{
28327SQLAllocEnv ();
28328 ;
28329 return 0;
28330}
28331_ACEOF
28332rm -f conftest.$ac_objext conftest$ac_exeext
28333if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28334 (eval $ac_link) 2>conftest.er1
a848cd7e 28335 ac_status=$?
ac1cb8d3
VS
28336 grep -v '^ *+' conftest.er1 >conftest.err
28337 rm -f conftest.er1
28338 cat conftest.err >&5
a848cd7e
SC
28339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28340 (exit $ac_status); } &&
07158944 28341 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28343 (eval $ac_try) 2>&5
28344 ac_status=$?
28345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28346 (exit $ac_status); }; } &&
28347 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28349 (eval $ac_try) 2>&5
28350 ac_status=$?
28351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28352 (exit $ac_status); }; }; then
28353 ac_cv_lib_iodbc_SQLAllocEnv=yes
28354else
28355 echo "$as_me: failed program was:" >&5
28356sed 's/^/| /' conftest.$ac_ext >&5
28357
28358ac_cv_lib_iodbc_SQLAllocEnv=no
28359fi
ac1cb8d3
VS
28360rm -f conftest.err conftest.$ac_objext \
28361 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28362LIBS=$ac_check_lib_save_LIBS
28363fi
28364echo "$as_me:$LINENO: result: $ac_cv_lib_iodbc_SQLAllocEnv" >&5
28365echo "${ECHO_T}$ac_cv_lib_iodbc_SQLAllocEnv" >&6
28366if test $ac_cv_lib_iodbc_SQLAllocEnv = yes; then
28367 ODBC_LINK=" -liodbc"
28368else
28369
28370 echo "$as_me:$LINENO: checking for SQLAllocEnv in -lunixodbc" >&5
28371echo $ECHO_N "checking for SQLAllocEnv in -lunixodbc... $ECHO_C" >&6
28372if test "${ac_cv_lib_unixodbc_SQLAllocEnv+set}" = set; then
28373 echo $ECHO_N "(cached) $ECHO_C" >&6
28374else
28375 ac_check_lib_save_LIBS=$LIBS
28376LIBS="-lunixodbc $LIBS"
28377cat >conftest.$ac_ext <<_ACEOF
28378/* confdefs.h. */
28379_ACEOF
28380cat confdefs.h >>conftest.$ac_ext
28381cat >>conftest.$ac_ext <<_ACEOF
28382/* end confdefs.h. */
28383
28384/* Override any gcc2 internal prototype to avoid an error. */
28385#ifdef __cplusplus
28386extern "C"
28387#endif
28388/* We use char because int might match the return type of a gcc2
28389 builtin and then its argument prototype would still apply. */
28390char SQLAllocEnv ();
28391int
28392main ()
28393{
28394SQLAllocEnv ();
28395 ;
28396 return 0;
28397}
28398_ACEOF
28399rm -f conftest.$ac_objext conftest$ac_exeext
28400if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28401 (eval $ac_link) 2>conftest.er1
a848cd7e 28402 ac_status=$?
ac1cb8d3
VS
28403 grep -v '^ *+' conftest.er1 >conftest.err
28404 rm -f conftest.er1
28405 cat conftest.err >&5
a848cd7e
SC
28406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28407 (exit $ac_status); } &&
07158944 28408 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28410 (eval $ac_try) 2>&5
28411 ac_status=$?
28412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28413 (exit $ac_status); }; } &&
28414 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28416 (eval $ac_try) 2>&5
28417 ac_status=$?
28418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28419 (exit $ac_status); }; }; then
28420 ac_cv_lib_unixodbc_SQLAllocEnv=yes
28421else
28422 echo "$as_me: failed program was:" >&5
28423sed 's/^/| /' conftest.$ac_ext >&5
28424
28425ac_cv_lib_unixodbc_SQLAllocEnv=no
28426fi
ac1cb8d3
VS
28427rm -f conftest.err conftest.$ac_objext \
28428 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28429LIBS=$ac_check_lib_save_LIBS
28430fi
28431echo "$as_me:$LINENO: result: $ac_cv_lib_unixodbc_SQLAllocEnv" >&5
28432echo "${ECHO_T}$ac_cv_lib_unixodbc_SQLAllocEnv" >&6
28433if test $ac_cv_lib_unixodbc_SQLAllocEnv = yes; then
28434 ODBC_LINK=" -lunixodbc"
28435else
28436
28437 echo "$as_me:$LINENO: checking for SQLAllocEnv in -lodbc" >&5
28438echo $ECHO_N "checking for SQLAllocEnv in -lodbc... $ECHO_C" >&6
28439if test "${ac_cv_lib_odbc_SQLAllocEnv+set}" = set; then
28440 echo $ECHO_N "(cached) $ECHO_C" >&6
28441else
28442 ac_check_lib_save_LIBS=$LIBS
28443LIBS="-lodbc $LIBS"
28444cat >conftest.$ac_ext <<_ACEOF
28445/* confdefs.h. */
28446_ACEOF
28447cat confdefs.h >>conftest.$ac_ext
28448cat >>conftest.$ac_ext <<_ACEOF
28449/* end confdefs.h. */
28450
28451/* Override any gcc2 internal prototype to avoid an error. */
28452#ifdef __cplusplus
28453extern "C"
28454#endif
28455/* We use char because int might match the return type of a gcc2
28456 builtin and then its argument prototype would still apply. */
28457char SQLAllocEnv ();
28458int
28459main ()
28460{
28461SQLAllocEnv ();
28462 ;
28463 return 0;
28464}
28465_ACEOF
28466rm -f conftest.$ac_objext conftest$ac_exeext
28467if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28468 (eval $ac_link) 2>conftest.er1
a848cd7e 28469 ac_status=$?
ac1cb8d3
VS
28470 grep -v '^ *+' conftest.er1 >conftest.err
28471 rm -f conftest.er1
28472 cat conftest.err >&5
a848cd7e
SC
28473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28474 (exit $ac_status); } &&
07158944 28475 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28477 (eval $ac_try) 2>&5
28478 ac_status=$?
28479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28480 (exit $ac_status); }; } &&
28481 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28483 (eval $ac_try) 2>&5
28484 ac_status=$?
28485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28486 (exit $ac_status); }; }; then
28487 ac_cv_lib_odbc_SQLAllocEnv=yes
28488else
28489 echo "$as_me: failed program was:" >&5
28490sed 's/^/| /' conftest.$ac_ext >&5
28491
28492ac_cv_lib_odbc_SQLAllocEnv=no
28493fi
ac1cb8d3
VS
28494rm -f conftest.err conftest.$ac_objext \
28495 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28496LIBS=$ac_check_lib_save_LIBS
28497fi
28498echo "$as_me:$LINENO: result: $ac_cv_lib_odbc_SQLAllocEnv" >&5
28499echo "${ECHO_T}$ac_cv_lib_odbc_SQLAllocEnv" >&6
28500if test $ac_cv_lib_odbc_SQLAllocEnv = yes; then
28501 ODBC_LINK=" -lodbc"
28502fi
28503
28504
28505fi
28506
28507
28508fi
28509
28510 fi
28511 if test "x$ODBC_LINK" = "x" ; then
28512 if test "$wxUSE_ODBC" = "sys" ; then
28513 { { echo "$as_me:$LINENO: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&5
28514echo "$as_me: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&2;}
28515 { (exit 1); exit 1; }; }
28516 else
28517 { echo "$as_me:$LINENO: WARNING: system ODBC library not found, will use built-in instead" >&5
28518echo "$as_me: WARNING: system ODBC library not found, will use built-in instead" >&2;}
28519 wxUSE_ODBC=builtin
28520 fi
28521 else
28522 wxUSE_ODBC=sys
28523 fi
28524 fi
a848cd7e 28525
2da0c077
RD
28526 if test "$wxUSE_ODBC" = "builtin" ; then
28527 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
28528#define wxUSE_BUILTIN_IODBC 1
28529_ACEOF
28530
a848cd7e
SC
28531 fi
28532fi
28533
2da0c077
RD
28534if test "$wxUSE_ODBC" != "no" ; then
28535 cat >>confdefs.h <<\_ACEOF
28536#define wxUSE_ODBC 1
28537_ACEOF
28538
28539 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db"
28540
28541 WXODBCFLAG="-D_IODBC_"
28542fi
a848cd7e 28543
01cb68df 28544
a848cd7e 28545if test "$wxUSE_DISPLAY" = "yes"; then
2a5d7a98 28546 if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_MAC" != 1 -a "$wxUSE_COCOA" != 1; then
a848cd7e
SC
28547 echo "$as_me:$LINENO: checking for Xinerama" >&5
28548echo $ECHO_N "checking for Xinerama... $ECHO_C" >&6
28549
28550ac_find_libraries=
28551for ac_dir in $SEARCH_LIB /usr/lib;
28552 do
28553 for ac_extension in a so sl dylib; do
28554 if test -f "$ac_dir/libXinerama.$ac_extension"; then
28555 ac_find_libraries=$ac_dir
28556 break 2
28557 fi
28558 done
28559 done
28560
28561 if test "$ac_find_libraries" != "" ; then
28562
28563 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
28564 result=$?
28565 if test $result = 0; then
28566 ac_path_to_link=""
28567 else
28568 ac_path_to_link=" -L$ac_find_libraries"
28569 fi
28570
28571 if test "$ac_path_to_link" != " -L/usr/lib" ; then
28572 LDFLAGS="$LDFLAGS $ac_path_to_link"
28573 fi
28574 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXinerama"
28575 echo "$as_me:$LINENO: result: yes" >&5
28576echo "${ECHO_T}yes" >&6
28577
28578 echo "$as_me:$LINENO: checking for Xxf86vm extension" >&5
28579echo $ECHO_N "checking for Xxf86vm extension... $ECHO_C" >&6
28580
28581ac_find_libraries=
28582for ac_dir in $SEARCH_LIB /usr/lib;
28583 do
28584 for ac_extension in a so sl dylib; do
28585 if test -f "$ac_dir/libXxf86vm.$ac_extension"; then
28586 ac_find_libraries=$ac_dir
28587 break 2
28588 fi
28589 done
28590 done
28591
28592 if test "$ac_find_libraries" != "" ; then
28593 echo "$as_me:$LINENO: result: yes" >&5
28594echo "${ECHO_T}yes" >&6
28595
28596for ac_header in X11/extensions/xf86vmode.h
28597do
28598as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28599echo "$as_me:$LINENO: checking for $ac_header" >&5
28600echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28601if eval "test \"\${$as_ac_Header+set}\" = set"; then
28602 echo $ECHO_N "(cached) $ECHO_C" >&6
28603else
28604 cat >conftest.$ac_ext <<_ACEOF
28605/* confdefs.h. */
28606_ACEOF
28607cat confdefs.h >>conftest.$ac_ext
28608cat >>conftest.$ac_ext <<_ACEOF
28609/* end confdefs.h. */
28610
28611 #if HAVE_X11_XLIB_H
28612 #include <X11/Xlib.h>
28613 #endif
28614
28615
28616#include <$ac_header>
28617_ACEOF
28618rm -f conftest.$ac_objext
28619if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 28620 (eval $ac_compile) 2>conftest.er1
a848cd7e 28621 ac_status=$?
ac1cb8d3
VS
28622 grep -v '^ *+' conftest.er1 >conftest.err
28623 rm -f conftest.er1
28624 cat conftest.err >&5
a848cd7e
SC
28625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28626 (exit $ac_status); } &&
07158944 28627 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28629 (eval $ac_try) 2>&5
28630 ac_status=$?
28631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28632 (exit $ac_status); }; } &&
28633 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
28634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28635 (eval $ac_try) 2>&5
28636 ac_status=$?
28637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28638 (exit $ac_status); }; }; then
28639 eval "$as_ac_Header=yes"
28640else
28641 echo "$as_me: failed program was:" >&5
28642sed 's/^/| /' conftest.$ac_ext >&5
28643
28644eval "$as_ac_Header=no"
28645fi
ac1cb8d3 28646rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
28647fi
28648echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28649echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28650if test `eval echo '${'$as_ac_Header'}'` = yes; then
28651 cat >>confdefs.h <<_ACEOF
28652#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28653_ACEOF
28654
28655 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXxf86vm"
28656
28657fi
28658
28659done
28660
28661 else
28662 echo "$as_me:$LINENO: result: no" >&5
28663echo "${ECHO_T}no" >&6
28664 fi
28665
28666 else
28667 echo "$as_me:$LINENO: result: no" >&5
28668echo "${ECHO_T}no" >&6
dcc1b6ad
VS
28669 { echo "$as_me:$LINENO: WARNING: Xinerama not found; disabling wxDisplay" >&5
28670echo "$as_me: WARNING: Xinerama not found; disabling wxDisplay" >&2;}
a848cd7e
SC
28671 wxUSE_DISPLAY="no"
28672 fi
01cb68df
RG
28673 elif test "$wxUSE_MSW" = 1; then
28674
28675
28676for ac_header in multimon.h ddraw.h
28677do
28678as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5294a27e 28679echo "$as_me:$LINENO: checking for $ac_header" >&5
01cb68df
RG
28680echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28681if eval "test \"\${$as_ac_Header+set}\" = set"; then
28682 echo $ECHO_N "(cached) $ECHO_C" >&6
01cb68df 28683else
5294a27e 28684 cat >conftest.$ac_ext <<_ACEOF
01cb68df
RG
28685/* confdefs.h. */
28686_ACEOF
28687cat confdefs.h >>conftest.$ac_ext
28688cat >>conftest.$ac_ext <<_ACEOF
28689/* end confdefs.h. */
5294a27e
VZ
28690#include <windows.h>
28691
01cb68df
RG
28692#include <$ac_header>
28693_ACEOF
28694rm -f conftest.$ac_objext
28695if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 28696 (eval $ac_compile) 2>conftest.er1
01cb68df 28697 ac_status=$?
ac1cb8d3
VS
28698 grep -v '^ *+' conftest.er1 >conftest.err
28699 rm -f conftest.er1
28700 cat conftest.err >&5
01cb68df
RG
28701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28702 (exit $ac_status); } &&
07158944 28703 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28705 (eval $ac_try) 2>&5
28706 ac_status=$?
28707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28708 (exit $ac_status); }; } &&
28709 { ac_try='test -s conftest.$ac_objext'
01cb68df
RG
28710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28711 (eval $ac_try) 2>&5
28712 ac_status=$?
28713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28714 (exit $ac_status); }; }; then
5294a27e 28715 eval "$as_ac_Header=yes"
01cb68df
RG
28716else
28717 echo "$as_me: failed program was:" >&5
28718sed 's/^/| /' conftest.$ac_ext >&5
28719
5294a27e 28720eval "$as_ac_Header=no"
01cb68df 28721fi
ac1cb8d3 28722rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
01cb68df
RG
28723fi
28724echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28725echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
01cb68df
RG
28726if test `eval echo '${'$as_ac_Header'}'` = yes; then
28727 cat >>confdefs.h <<_ACEOF
28728#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28729_ACEOF
28730
28731else
28732
5294a27e
VZ
28733 wxUSE_DISPLAY="no"
28734 { echo "$as_me:$LINENO: WARNING: ddraw.h or multimon.h not found; disabling wxDisplay" >&5
dcc1b6ad 28735echo "$as_me: WARNING: ddraw.h or multimon.h not found; disabling wxDisplay" >&2;}
01cb68df
RG
28736
28737fi
28738
28739done
28740
a848cd7e
SC
28741 fi
28742fi
28743
28744
28745USE_OPENGL=0
28746if test "$wxUSE_OPENGL" = "yes"; then
28747 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = "1"; then
28748 OPENGL_LIBS="-framework OpenGL -framework AGL"
28749 elif test "$wxUSE_MSW" = 1; then
28750 OPENGL_LIBS="-lopengl32 -lglu32"
28751 else
28752
28753
28754ac_find_includes=
28755for ac_dir in $SEARCH_INCLUDE /usr/include;
28756 do
28757 if test -f "$ac_dir/GL/gl.h"; then
28758 ac_find_includes=$ac_dir
28759 break
28760 fi
28761 done
28762
28763 if test "$ac_find_includes" != "" ; then
28764 echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
28765echo "${ECHO_T}found in $ac_find_includes" >&6
28766
28767 if test "x$ac_find_includes" = "x/usr/include"; then
28768 ac_path_to_include=""
28769 else
28770 echo "$CPPFLAGS" | grep "\-I$ac_find_includes" > /dev/null
28771 result=$?
28772 if test $result = 0; then
28773 ac_path_to_include=""
28774 else
28775 ac_path_to_include=" -I$ac_find_includes"
28776 fi
28777 fi
28778
28779 CPPFLAGS="$CPPFLAGS$ac_path_to_include"
28780 fi
28781
28782 if test "${ac_cv_header_GL_gl_h+set}" = set; then
28783 echo "$as_me:$LINENO: checking for GL/gl.h" >&5
28784echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6
28785if test "${ac_cv_header_GL_gl_h+set}" = set; then
28786 echo $ECHO_N "(cached) $ECHO_C" >&6
28787fi
28788echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
28789echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6
28790else
28791 # Is the header compilable?
28792echo "$as_me:$LINENO: checking GL/gl.h usability" >&5
28793echo $ECHO_N "checking GL/gl.h usability... $ECHO_C" >&6
28794cat >conftest.$ac_ext <<_ACEOF
28795/* confdefs.h. */
28796_ACEOF
28797cat confdefs.h >>conftest.$ac_ext
28798cat >>conftest.$ac_ext <<_ACEOF
28799/* end confdefs.h. */
28800$ac_includes_default
28801#include <GL/gl.h>
28802_ACEOF
28803rm -f conftest.$ac_objext
28804if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 28805 (eval $ac_compile) 2>conftest.er1
a848cd7e 28806 ac_status=$?
ac1cb8d3
VS
28807 grep -v '^ *+' conftest.er1 >conftest.err
28808 rm -f conftest.er1
28809 cat conftest.err >&5
a848cd7e
SC
28810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28811 (exit $ac_status); } &&
07158944 28812 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28814 (eval $ac_try) 2>&5
28815 ac_status=$?
28816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28817 (exit $ac_status); }; } &&
28818 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
28819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28820 (eval $ac_try) 2>&5
28821 ac_status=$?
28822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28823 (exit $ac_status); }; }; then
28824 ac_header_compiler=yes
28825else
28826 echo "$as_me: failed program was:" >&5
28827sed 's/^/| /' conftest.$ac_ext >&5
28828
28829ac_header_compiler=no
28830fi
ac1cb8d3 28831rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
28832echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28833echo "${ECHO_T}$ac_header_compiler" >&6
28834
28835# Is the header present?
28836echo "$as_me:$LINENO: checking GL/gl.h presence" >&5
28837echo $ECHO_N "checking GL/gl.h presence... $ECHO_C" >&6
28838cat >conftest.$ac_ext <<_ACEOF
28839/* confdefs.h. */
28840_ACEOF
28841cat confdefs.h >>conftest.$ac_ext
28842cat >>conftest.$ac_ext <<_ACEOF
28843/* end confdefs.h. */
28844#include <GL/gl.h>
28845_ACEOF
28846if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
28847 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
28848 ac_status=$?
28849 grep -v '^ *+' conftest.er1 >conftest.err
28850 rm -f conftest.er1
28851 cat conftest.err >&5
28852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28853 (exit $ac_status); } >/dev/null; then
28854 if test -s conftest.err; then
28855 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 28856 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
28857 else
28858 ac_cpp_err=
28859 fi
28860else
28861 ac_cpp_err=yes
28862fi
28863if test -z "$ac_cpp_err"; then
28864 ac_header_preproc=yes
28865else
28866 echo "$as_me: failed program was:" >&5
28867sed 's/^/| /' conftest.$ac_ext >&5
28868
28869 ac_header_preproc=no
28870fi
28871rm -f conftest.err conftest.$ac_ext
28872echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28873echo "${ECHO_T}$ac_header_preproc" >&6
28874
28875# So? What about this header?
ac1cb8d3
VS
28876case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28877 yes:no: )
a848cd7e
SC
28878 { echo "$as_me:$LINENO: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&5
28879echo "$as_me: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
28880 { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the compiler's result" >&5
28881echo "$as_me: WARNING: GL/gl.h: proceeding with the compiler's result" >&2;}
28882 ac_header_preproc=yes
a848cd7e 28883 ;;
ac1cb8d3 28884 no:yes:* )
a848cd7e
SC
28885 { echo "$as_me:$LINENO: WARNING: GL/gl.h: present but cannot be compiled" >&5
28886echo "$as_me: WARNING: GL/gl.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
28887 { echo "$as_me:$LINENO: WARNING: GL/gl.h: check for missing prerequisite headers?" >&5
28888echo "$as_me: WARNING: GL/gl.h: check for missing prerequisite headers?" >&2;}
28889 { echo "$as_me:$LINENO: WARNING: GL/gl.h: see the Autoconf documentation" >&5
28890echo "$as_me: WARNING: GL/gl.h: see the Autoconf documentation" >&2;}
28891 { echo "$as_me:$LINENO: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&5
28892echo "$as_me: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
28893 { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&5
28894echo "$as_me: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
28895 { echo "$as_me:$LINENO: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&5
28896echo "$as_me: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
28897 (
28898 cat <<\_ASBOX
ac1cb8d3
VS
28899## ----------------------------------------- ##
28900## Report this to wx-dev@lists.wxwidgets.org ##
28901## ----------------------------------------- ##
a848cd7e
SC
28902_ASBOX
28903 ) |
28904 sed "s/^/$as_me: WARNING: /" >&2
28905 ;;
28906esac
28907echo "$as_me:$LINENO: checking for GL/gl.h" >&5
28908echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6
28909if test "${ac_cv_header_GL_gl_h+set}" = set; then
28910 echo $ECHO_N "(cached) $ECHO_C" >&6
28911else
28912 ac_cv_header_GL_gl_h=$ac_header_preproc
28913fi
28914echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
28915echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6
28916
28917fi
28918if test $ac_cv_header_GL_gl_h = yes; then
28919
28920 found_gl=0
28921
28922 echo "$as_me:$LINENO: checking for -lGL" >&5
28923echo $ECHO_N "checking for -lGL... $ECHO_C" >&6
28924
28925ac_find_libraries=
28926for ac_dir in $SEARCH_LIB /usr/lib;
28927 do
28928 for ac_extension in a so sl dylib; do
28929 if test -f "$ac_dir/libGL.$ac_extension"; then
28930 ac_find_libraries=$ac_dir
28931 break 2
28932 fi
28933 done
28934 done
28935
28936 if test "$ac_find_libraries" != "" ; then
28937
28938 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
28939 result=$?
28940 if test $result = 0; then
28941 ac_path_to_link=""
28942 else
28943 ac_path_to_link=" -L$ac_find_libraries"
28944 fi
28945
28946 if test "$ac_path_to_link" != " -L/usr/lib" ; then
28947 LDFLAGS_GL="$ac_path_to_link"
28948 fi
28949
28950
28951ac_find_libraries=
28952for ac_dir in $SEARCH_LIB /usr/lib;
28953 do
28954 for ac_extension in a so sl dylib; do
28955 if test -f "$ac_dir/libGLU.$ac_extension"; then
28956 ac_find_libraries=$ac_dir
28957 break 2
28958 fi
28959 done
28960 done
28961
28962 if test "$ac_find_libraries" != "" ; then
28963
28964 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
28965 result=$?
28966 if test $result = 0; then
28967 ac_path_to_link=""
28968 else
28969 ac_path_to_link=" -L$ac_find_libraries"
28970 fi
28971
28972 if test "$ac_path_to_link" != " -L/usr/lib" -a \
28973 "$ac_path_to_link" != "$LDFLAGS_GL"; then
28974 LDFLAGS_GL="$LDFLAGS_GL$ac_path_to_link"
28975 fi
28976
28977 found_gl=1
28978 OPENGL_LIBS="-lGL -lGLU"
28979 echo "$as_me:$LINENO: result: yes" >&5
28980echo "${ECHO_T}yes" >&6
28981 fi
28982 fi
28983
28984 if test "$found_gl" != 1; then
28985 echo "$as_me:$LINENO: result: no" >&5
28986echo "${ECHO_T}no" >&6
28987 echo "$as_me:$LINENO: checking for -lMesaGL" >&5
28988echo $ECHO_N "checking for -lMesaGL... $ECHO_C" >&6
28989
28990ac_find_libraries=
28991for ac_dir in $SEARCH_LIB /usr/lib;
28992 do
28993 for ac_extension in a so sl dylib; do
28994 if test -f "$ac_dir/libMesaGL.$ac_extension"; then
28995 ac_find_libraries=$ac_dir
28996 break 2
28997 fi
28998 done
28999 done
29000
29001 if test "$ac_find_libraries" != "" ; then
29002
29003 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
29004 result=$?
29005 if test $result = 0; then
29006 ac_path_to_link=""
29007 else
29008 ac_path_to_link=" -L$ac_find_libraries"
29009 fi
29010
29011 LDFLAGS_GL="$LDFLAGS$ac_path_to_link"
29012 OPENGL_LIBS="-lMesaGL -lMesaGLU"
29013 echo "$as_me:$LINENO: result: yes" >&5
29014echo "${ECHO_T}yes" >&6
29015 else
29016 echo "$as_me:$LINENO: result: no" >&5
29017echo "${ECHO_T}no" >&6
29018 fi
29019 fi
29020
29021fi
29022
29023
29024
29025 if test "x$OPENGL_LIBS" = "x"; then
29026 { { echo "$as_me:$LINENO: error: OpenGL libraries not available" >&5
29027echo "$as_me: error: OpenGL libraries not available" >&2;}
29028 { (exit 1); exit 1; }; }
29029 fi
29030 fi
29031
29032 if test "$wxUSE_OPENGL" = "yes"; then
29033 USE_OPENGL=1
29034 cat >>confdefs.h <<\_ACEOF
29035#define wxUSE_OPENGL 1
29036_ACEOF
29037
29038 cat >>confdefs.h <<\_ACEOF
29039#define wxUSE_GLCANVAS 1
29040_ACEOF
29041
29042 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl opengl/cube opengl/penguin opengl/isosurf"
29043 fi
29044fi
29045
a848cd7e
SC
29046
29047if test -n "$TOOLKIT" ; then
29048 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WX${TOOLKIT}__"
29049fi
29050
a848cd7e
SC
29051
29052
29053if test "$wxUSE_SHARED" = "yes"; then
29054 case "${host}" in
29055 *-pc-msdosdjgpp )
29056 wxUSE_SHARED=no
29057 { echo "$as_me:$LINENO: WARNING: Host system doesn't support shared libraries, disabling" >&5
29058echo "$as_me: WARNING: Host system doesn't support shared libraries, disabling" >&2;}
29059 ;;
29060 esac
29061fi
29062
a848cd7e 29063if test "$wxUSE_SHARED" = "yes"; then
a848cd7e
SC
29064
29065
29066 found_versioning=no
29067
29068
29069 if test $found_versioning = no ; then
29070 echo "$as_me:$LINENO: checking if the linker accepts --version-script" >&5
29071echo $ECHO_N "checking if the linker accepts --version-script... $ECHO_C" >&6
29072if test "${wx_cv_version_script+set}" = set; then
29073 echo $ECHO_N "(cached) $ECHO_C" >&6
29074else
29075
29076 echo "VER_1 { *; };" >conftest.sym
29077 echo "int main() { return 0; }" >conftest.cpp
29078
29079 if { ac_try='
29080 $CXX -o conftest.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
29081 -Wl,--version-script,conftest.sym >/dev/null 2>conftest.stderr'
29082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29083 (eval $ac_try) 2>&5
29084 ac_status=$?
29085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29086 (exit $ac_status); }; } ; then
29087 if test -s conftest.stderr ; then
29088 wx_cv_version_script=no
29089 else
29090 wx_cv_version_script=yes
29091 fi
29092 else
29093 wx_cv_version_script=no
29094 fi
29095 rm -f conftest.output conftest.stderr conftest.sym conftest.cpp
29096
29097fi
29098echo "$as_me:$LINENO: result: $wx_cv_version_script" >&5
29099echo "${ECHO_T}$wx_cv_version_script" >&6
29100 if test $wx_cv_version_script = yes ; then
29101 LDFLAGS_VERSIONING="-Wl,--version-script,\$(top_builddir)version-script"
29102 fi
29103 fi
29104
29105
29106 case "${host}" in
29107 *-*-linux* | *-*-gnu* )
29108 SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib"
ffa0583f 29109 WXCONFIG_RPATH="-Wl,-rpath,\$libdir"
a848cd7e
SC
29110 ;;
29111
29112 *-*-solaris2* )
29113 if test "$GCC" = yes ; then
29114 CPPFLAGS="$CPPFLAGS -isystem /usr/openwin/include"
29115
29116 saveLdflags="$LDFLAGS"
29117 LDFLAGS="$saveLdflags -Wl,-rpath,/"
29118 echo "$as_me:$LINENO: checking if the linker accepts -rpath" >&5
29119echo $ECHO_N "checking if the linker accepts -rpath... $ECHO_C" >&6
29120 cat >conftest.$ac_ext <<_ACEOF
29121/* confdefs.h. */
29122_ACEOF
29123cat confdefs.h >>conftest.$ac_ext
29124cat >>conftest.$ac_ext <<_ACEOF
29125/* end confdefs.h. */
29126
29127int
29128main ()
29129{
29130
29131 ;
29132 return 0;
29133}
29134_ACEOF
29135rm -f conftest.$ac_objext conftest$ac_exeext
29136if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29137 (eval $ac_link) 2>conftest.er1
a848cd7e 29138 ac_status=$?
ac1cb8d3
VS
29139 grep -v '^ *+' conftest.er1 >conftest.err
29140 rm -f conftest.er1
29141 cat conftest.err >&5
a848cd7e
SC
29142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29143 (exit $ac_status); } &&
07158944 29144 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29146 (eval $ac_try) 2>&5
29147 ac_status=$?
29148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29149 (exit $ac_status); }; } &&
29150 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29152 (eval $ac_try) 2>&5
29153 ac_status=$?
29154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29155 (exit $ac_status); }; }; then
29156
29157 echo "$as_me:$LINENO: result: yes" >&5
29158echo "${ECHO_T}yes" >&6
29159 SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib"
ffa0583f 29160 WXCONFIG_RPATH="-Wl,-rpath,\$libdir"
a848cd7e
SC
29161
29162else
29163 echo "$as_me: failed program was:" >&5
29164sed 's/^/| /' conftest.$ac_ext >&5
29165
29166
29167 echo "$as_me:$LINENO: result: no" >&5
29168echo "${ECHO_T}no" >&6
29169 echo "$as_me:$LINENO: checking if the linker accepts -R" >&5
29170echo $ECHO_N "checking if the linker accepts -R... $ECHO_C" >&6
29171 LDFLAGS="$saveLdflags -Wl,-R,/"
29172 cat >conftest.$ac_ext <<_ACEOF
29173/* confdefs.h. */
29174_ACEOF
29175cat confdefs.h >>conftest.$ac_ext
29176cat >>conftest.$ac_ext <<_ACEOF
29177/* end confdefs.h. */
29178
29179int
29180main ()
29181{
29182
29183 ;
29184 return 0;
29185}
29186_ACEOF
29187rm -f conftest.$ac_objext conftest$ac_exeext
29188if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29189 (eval $ac_link) 2>conftest.er1
a848cd7e 29190 ac_status=$?
ac1cb8d3
VS
29191 grep -v '^ *+' conftest.er1 >conftest.err
29192 rm -f conftest.er1
29193 cat conftest.err >&5
a848cd7e
SC
29194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29195 (exit $ac_status); } &&
07158944 29196 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29198 (eval $ac_try) 2>&5
29199 ac_status=$?
29200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29201 (exit $ac_status); }; } &&
29202 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29204 (eval $ac_try) 2>&5
29205 ac_status=$?
29206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29207 (exit $ac_status); }; }; then
29208
ffa0583f 29209 echo "$as_me:$LINENO: result: yes" >&5
a848cd7e 29210echo "${ECHO_T}yes" >&6
ffa0583f
RL
29211 SAMPLES_RPATH_FLAG="-Wl,-R,\$(top_builddir)lib"
29212 WXCONFIG_RPATH="-Wl,-R,\$libdir"
29213
a848cd7e
SC
29214else
29215 echo "$as_me: failed program was:" >&5
29216sed 's/^/| /' conftest.$ac_ext >&5
29217
29218
29219 echo "$as_me:$LINENO: result: no" >&5
29220echo "${ECHO_T}no" >&6
29221
29222fi
ac1cb8d3
VS
29223rm -f conftest.err conftest.$ac_objext \
29224 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29225
29226fi
ac1cb8d3
VS
29227rm -f conftest.err conftest.$ac_objext \
29228 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29229 LDFLAGS="$saveLdflags"
29230 else
a848cd7e 29231 SAMPLES_RPATH_FLAG="-R\$(top_builddir)lib"
ffa0583f 29232 WXCONFIG_RPATH="-R\$libdir"
a848cd7e
SC
29233 fi
29234 ;;
29235
29236 powerpc-*-darwin* )
29237 SAMPLES_RPATH_POSTLINK="\$(top_builddir)change-install-names \$(LIBDIRNAME) \$(prefix) \$@"
29238 cat <<EOF >change-install-names
29239#!/bin/sh
29240libnames=\`cd \${1} ; ls -1 | grep '\.[0-9][0-9]*\.dylib\$'\`
29241inst_cmd="install_name_tool "
29242for i in \${libnames} ; do
29243 inst_cmd="\${inst_cmd} -change \${2}/lib/\${i} \${1}/\${i}"
29244done
29245\${inst_cmd} \${3}
29246EOF
29247 chmod +x change-install-names
29248 ;;
29249
29250 *-*-cygwin* | *-*-mingw32* )
29251 TOOLCHAIN_DLL_DEFS="${TOOLCHAIN_DLL_DEFS} -DWXUSINGDLL=1"
29252 ;;
29253
81f90336
MW
29254 *-*-hpux* )
29255 SAMPLES_RPATH_FLAG="-Wl,+b,\$(top_builddir)lib"
29256 WXCONFIG_RPATH="-Wl,+b,\$libdir"
29257 ;;
29258
a848cd7e 29259 esac
ceec2216 29260
ffa0583f
RL
29261 if test $wxUSE_RPATH = "no"; then
29262 SAMPLES_RPATH_FLAG=''
29263 SAMPLES_RPATH_POSTLINK=''
29264 WXCONFIG_RPATH=''
29265 fi
29266
29267 SHARED=1
29268
29269else
29270
ceec2216
RL
29271 config_linkage_component="-static"
29272 SHARED=0
ffa0583f 29273
ceec2216 29274fi
a848cd7e 29275
a848cd7e 29276
ceec2216
RL
29277UNICODE=0
29278lib_unicode_suffix=
29279WX_CHARTYPE="ansi"
29280if test "$wxUSE_UNICODE" = "yes"; then
29281 lib_unicode_suffix=u
29282 WX_CHARTYPE="unicode"
29283 UNICODE=1
a848cd7e
SC
29284fi
29285
ceec2216
RL
29286lib_debug_suffix=
29287WX_DEBUGTYPE="release"
29288DEBUG_FLAG=0
29289if test "$wxUSE_DEBUG_FLAG" = "yes"; then
29290 lib_debug_suffix=d
29291 WX_DEBUGTYPE="debug"
29292 DEBUG_FLAG=1
29293fi
a848cd7e 29294
ceec2216
RL
29295WX_FLAVOUR=${WX_FLAVOUR:+-$WX_FLAVOUR}
29296WX_LIB_FLAVOUR=`echo $WX_FLAVOUR | tr '-' '_'`
a848cd7e 29297
ceec2216
RL
29298DEBUG_INFO=0
29299if test "$wxUSE_DEBUG_INFO" = "yes"; then
29300 DEBUG_INFO=1
29301fi
a848cd7e 29302
ceec2216 29303WX_VERSION_TAG=`echo WX${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}_${WX_RELEASE} | tr "[a-z]" "[A-Z]"`
a848cd7e 29304
ceec2216 29305TOOLCHAIN_NAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}-${WX_RELEASE}"
a848cd7e 29306
ceec2216 29307TOOLCHAIN_FULLNAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}-${WX_CHARTYPE}-${WX_DEBUGTYPE}${config_linkage_component}-${WX_RELEASE}${WX_FLAVOUR}"
a848cd7e 29308
ceec2216
RL
29309if test "$cross_compiling" = "yes"; then
29310 HOST_SUFFIX="-$host_alias"
29311 TOOLCHAIN_NAME="$TOOLCHAIN_NAME$HOST_SUFFIX"
29312 TOOLCHAIN_FULLNAME="${host_alias}-$TOOLCHAIN_FULLNAME"
a848cd7e
SC
29313fi
29314
dd21ced8 29315WX_LIBRARY_BASENAME_NOGUI="wx_base${WXBASEPORT}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}"
ceec2216
RL
29316WX_LIBRARY_BASENAME_GUI="wx_${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}"
29317
29318
29319
a848cd7e 29320if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1; then
abb9aae7
VZ
29321 WX_RESOURCES_MACOSX_ASCII="libwx_${TOOLCHAIN_NAME}.${wx_release_number}.r"
29322 WX_RESOURCES_MACOSX_DATA="libwx_${TOOLCHAIN_NAME}.${wx_release_number}.rsrc"
ceec2216 29323
a848cd7e 29324 LIBWXMACRES="\$(top_builddir)lib/${WX_RESOURCES_MACOSX_ASCII}"
a848cd7e
SC
29325
29326 # Extract the first word of "Rez", so it can be a program name with args.
29327set dummy Rez; ac_word=$2
29328echo "$as_me:$LINENO: checking for $ac_word" >&5
29329echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
29330if test "${ac_cv_prog_RESCOMP+set}" = set; then
29331 echo $ECHO_N "(cached) $ECHO_C" >&6
29332else
29333 if test -n "$RESCOMP"; then
29334 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
29335else
29336as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29337for as_dir in $PATH
29338do
29339 IFS=$as_save_IFS
29340 test -z "$as_dir" && as_dir=.
29341 for ac_exec_ext in '' $ac_executable_extensions; do
29342 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
29343 ac_cv_prog_RESCOMP="Rez"
29344 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29345 break 2
29346 fi
29347done
29348done
29349
29350 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez"
29351fi
29352fi
29353RESCOMP=$ac_cv_prog_RESCOMP
29354if test -n "$RESCOMP"; then
29355 echo "$as_me:$LINENO: result: $RESCOMP" >&5
29356echo "${ECHO_T}$RESCOMP" >&6
29357else
29358 echo "$as_me:$LINENO: result: no" >&5
29359echo "${ECHO_T}no" >&6
29360fi
29361
29362 # Extract the first word of "DeRez", so it can be a program name with args.
29363set dummy DeRez; ac_word=$2
29364echo "$as_me:$LINENO: checking for $ac_word" >&5
29365echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
29366if test "${ac_cv_prog_DEREZ+set}" = set; then
29367 echo $ECHO_N "(cached) $ECHO_C" >&6
29368else
29369 if test -n "$DEREZ"; then
29370 ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test.
29371else
29372as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29373for as_dir in $PATH
29374do
29375 IFS=$as_save_IFS
29376 test -z "$as_dir" && as_dir=.
29377 for ac_exec_ext in '' $ac_executable_extensions; do
29378 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
29379 ac_cv_prog_DEREZ="DeRez"
29380 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29381 break 2
29382 fi
29383done
29384done
29385
29386 test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez"
29387fi
29388fi
29389DEREZ=$ac_cv_prog_DEREZ
29390if test -n "$DEREZ"; then
29391 echo "$as_me:$LINENO: result: $DEREZ" >&5
29392echo "${ECHO_T}$DEREZ" >&6
29393else
29394 echo "$as_me:$LINENO: result: no" >&5
29395echo "${ECHO_T}no" >&6
29396fi
29397
29398 # Extract the first word of "SetFile", so it can be a program name with args.
29399set dummy SetFile; ac_word=$2
29400echo "$as_me:$LINENO: checking for $ac_word" >&5
29401echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
29402if test "${ac_cv_prog_SETFILE+set}" = set; then
29403 echo $ECHO_N "(cached) $ECHO_C" >&6
29404else
29405 if test -n "$SETFILE"; then
29406 ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
29407else
29408as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29409for as_dir in $PATH
29410do
29411 IFS=$as_save_IFS
29412 test -z "$as_dir" && as_dir=.
29413 for ac_exec_ext in '' $ac_executable_extensions; do
29414 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
29415 ac_cv_prog_SETFILE="SetFile"
29416 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29417 break 2
29418 fi
29419done
29420done
29421
29422 test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
29423fi
29424fi
29425SETFILE=$ac_cv_prog_SETFILE
29426if test -n "$SETFILE"; then
29427 echo "$as_me:$LINENO: result: $SETFILE" >&5
29428echo "${ECHO_T}$SETFILE" >&6
29429else
29430 echo "$as_me:$LINENO: result: no" >&5
29431echo "${ECHO_T}no" >&6
29432fi
29433
29434
29435 MACSETFILE="\$(SETFILE)"
29436
29437 if test "$wxUSE_MAC" = 1; then
29438 MACRESCOMP="\$(RESCOMP) -d __DARWIN__ -t APPL Carbon.r ${LIBWXMACRES} -o"
29439
29440 MACRESWXCONFIG="${RESCOMP} -d __DARWIN__ -t APPL Carbon.r \\\${exec_prefix}/lib/${WX_RESOURCES_MACOSX_ASCII} -o"
29441 else
29442 MACRESCOMP="echo -n | \$(RESCOMP) -d __DARWIN__ -t APPL ${LIBWXMACRES} -o"
29443 MACRESWXCONFIG="echo -n \\\| ${RESCOMP} -d __DARWIN__ -t APPL \\\${exec_prefix}/lib/${WX_RESOURCES_MACOSX_ASCII} -o"
29444 fi
29445else
ffa0583f
RL
29446 MACSETFILE="@true"
29447 MACRESWXCONFIG="@true"
a848cd7e
SC
29448
29449 if test "$wxUSE_PM" = 1; then
29450 MACRESCOMP="emxbind -ep"
29451 else
ffa0583f 29452 MACRESCOMP="@true"
a848cd7e
SC
29453 fi
29454fi
29455
29456
29457
29458echo "$as_me:$LINENO: checking for mode_t" >&5
29459echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
29460if test "${ac_cv_type_mode_t+set}" = set; then
29461 echo $ECHO_N "(cached) $ECHO_C" >&6
29462else
29463 cat >conftest.$ac_ext <<_ACEOF
29464/* confdefs.h. */
29465_ACEOF
29466cat confdefs.h >>conftest.$ac_ext
29467cat >>conftest.$ac_ext <<_ACEOF
29468/* end confdefs.h. */
29469$ac_includes_default
29470int
29471main ()
29472{
29473if ((mode_t *) 0)
29474 return 0;
29475if (sizeof (mode_t))
29476 return 0;
29477 ;
29478 return 0;
29479}
29480_ACEOF
29481rm -f conftest.$ac_objext
29482if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 29483 (eval $ac_compile) 2>conftest.er1
a848cd7e 29484 ac_status=$?
ac1cb8d3
VS
29485 grep -v '^ *+' conftest.er1 >conftest.err
29486 rm -f conftest.er1
29487 cat conftest.err >&5
a848cd7e
SC
29488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29489 (exit $ac_status); } &&
07158944 29490 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29492 (eval $ac_try) 2>&5
29493 ac_status=$?
29494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29495 (exit $ac_status); }; } &&
29496 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
29497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29498 (eval $ac_try) 2>&5
29499 ac_status=$?
29500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29501 (exit $ac_status); }; }; then
29502 ac_cv_type_mode_t=yes
29503else
29504 echo "$as_me: failed program was:" >&5
29505sed 's/^/| /' conftest.$ac_ext >&5
29506
29507ac_cv_type_mode_t=no
29508fi
ac1cb8d3 29509rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
29510fi
29511echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
29512echo "${ECHO_T}$ac_cv_type_mode_t" >&6
29513if test $ac_cv_type_mode_t = yes; then
29514 :
29515else
29516
29517cat >>confdefs.h <<_ACEOF
29518#define mode_t int
29519_ACEOF
29520
29521fi
29522
29523echo "$as_me:$LINENO: checking for off_t" >&5
29524echo $ECHO_N "checking for off_t... $ECHO_C" >&6
29525if test "${ac_cv_type_off_t+set}" = set; then
29526 echo $ECHO_N "(cached) $ECHO_C" >&6
29527else
29528 cat >conftest.$ac_ext <<_ACEOF
29529/* confdefs.h. */
29530_ACEOF
29531cat confdefs.h >>conftest.$ac_ext
29532cat >>conftest.$ac_ext <<_ACEOF
29533/* end confdefs.h. */
29534$ac_includes_default
29535int
29536main ()
29537{
29538if ((off_t *) 0)
29539 return 0;
29540if (sizeof (off_t))
29541 return 0;
29542 ;
29543 return 0;
29544}
29545_ACEOF
29546rm -f conftest.$ac_objext
29547if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 29548 (eval $ac_compile) 2>conftest.er1
a848cd7e 29549 ac_status=$?
ac1cb8d3
VS
29550 grep -v '^ *+' conftest.er1 >conftest.err
29551 rm -f conftest.er1
29552 cat conftest.err >&5
a848cd7e
SC
29553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29554 (exit $ac_status); } &&
07158944 29555 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29557 (eval $ac_try) 2>&5
29558 ac_status=$?
29559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29560 (exit $ac_status); }; } &&
29561 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
29562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29563 (eval $ac_try) 2>&5
29564 ac_status=$?
29565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29566 (exit $ac_status); }; }; then
29567 ac_cv_type_off_t=yes
29568else
29569 echo "$as_me: failed program was:" >&5
29570sed 's/^/| /' conftest.$ac_ext >&5
29571
29572ac_cv_type_off_t=no
29573fi
ac1cb8d3 29574rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
29575fi
29576echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
29577echo "${ECHO_T}$ac_cv_type_off_t" >&6
29578if test $ac_cv_type_off_t = yes; then
29579 :
29580else
29581
29582cat >>confdefs.h <<_ACEOF
29583#define off_t long
29584_ACEOF
29585
29586fi
29587
29588echo "$as_me:$LINENO: checking for pid_t" >&5
29589echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
29590if test "${ac_cv_type_pid_t+set}" = set; then
29591 echo $ECHO_N "(cached) $ECHO_C" >&6
29592else
29593 cat >conftest.$ac_ext <<_ACEOF
29594/* confdefs.h. */
29595_ACEOF
29596cat confdefs.h >>conftest.$ac_ext
29597cat >>conftest.$ac_ext <<_ACEOF
29598/* end confdefs.h. */
29599$ac_includes_default
29600int
29601main ()
29602{
29603if ((pid_t *) 0)
29604 return 0;
29605if (sizeof (pid_t))
29606 return 0;
29607 ;
29608 return 0;
29609}
29610_ACEOF
29611rm -f conftest.$ac_objext
29612if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 29613 (eval $ac_compile) 2>conftest.er1
a848cd7e 29614 ac_status=$?
ac1cb8d3
VS
29615 grep -v '^ *+' conftest.er1 >conftest.err
29616 rm -f conftest.er1
29617 cat conftest.err >&5
a848cd7e
SC
29618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29619 (exit $ac_status); } &&
07158944 29620 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29622 (eval $ac_try) 2>&5
29623 ac_status=$?
29624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29625 (exit $ac_status); }; } &&
29626 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
29627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29628 (eval $ac_try) 2>&5
29629 ac_status=$?
29630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29631 (exit $ac_status); }; }; then
29632 ac_cv_type_pid_t=yes
29633else
29634 echo "$as_me: failed program was:" >&5
29635sed 's/^/| /' conftest.$ac_ext >&5
29636
29637ac_cv_type_pid_t=no
29638fi
ac1cb8d3 29639rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
29640fi
29641echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
29642echo "${ECHO_T}$ac_cv_type_pid_t" >&6
29643if test $ac_cv_type_pid_t = yes; then
29644 :
29645else
29646
29647cat >>confdefs.h <<_ACEOF
29648#define pid_t int
29649_ACEOF
29650
29651fi
29652
29653echo "$as_me:$LINENO: checking for size_t" >&5
29654echo $ECHO_N "checking for size_t... $ECHO_C" >&6
29655if test "${ac_cv_type_size_t+set}" = set; then
29656 echo $ECHO_N "(cached) $ECHO_C" >&6
29657else
29658 cat >conftest.$ac_ext <<_ACEOF
29659/* confdefs.h. */
29660_ACEOF
29661cat confdefs.h >>conftest.$ac_ext
29662cat >>conftest.$ac_ext <<_ACEOF
29663/* end confdefs.h. */
29664$ac_includes_default
29665int
29666main ()
29667{
29668if ((size_t *) 0)
29669 return 0;
29670if (sizeof (size_t))
29671 return 0;
29672 ;
29673 return 0;
29674}
29675_ACEOF
29676rm -f conftest.$ac_objext
29677if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 29678 (eval $ac_compile) 2>conftest.er1
a848cd7e 29679 ac_status=$?
ac1cb8d3
VS
29680 grep -v '^ *+' conftest.er1 >conftest.err
29681 rm -f conftest.er1
29682 cat conftest.err >&5
a848cd7e
SC
29683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29684 (exit $ac_status); } &&
07158944 29685 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29687 (eval $ac_try) 2>&5
29688 ac_status=$?
29689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29690 (exit $ac_status); }; } &&
29691 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
29692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29693 (eval $ac_try) 2>&5
29694 ac_status=$?
29695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29696 (exit $ac_status); }; }; then
29697 ac_cv_type_size_t=yes
29698else
29699 echo "$as_me: failed program was:" >&5
29700sed 's/^/| /' conftest.$ac_ext >&5
29701
29702ac_cv_type_size_t=no
29703fi
ac1cb8d3 29704rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
29705fi
29706echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
29707echo "${ECHO_T}$ac_cv_type_size_t" >&6
29708if test $ac_cv_type_size_t = yes; then
29709 :
29710else
29711
29712cat >>confdefs.h <<_ACEOF
29713#define size_t unsigned
29714_ACEOF
29715
29716fi
29717
29718echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
29719echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
29720if test "${ac_cv_type_uid_t+set}" = set; then
29721 echo $ECHO_N "(cached) $ECHO_C" >&6
29722else
29723 cat >conftest.$ac_ext <<_ACEOF
29724/* confdefs.h. */
29725_ACEOF
29726cat confdefs.h >>conftest.$ac_ext
29727cat >>conftest.$ac_ext <<_ACEOF
29728/* end confdefs.h. */
29729#include <sys/types.h>
29730
29731_ACEOF
29732if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29733 $EGREP "uid_t" >/dev/null 2>&1; then
29734 ac_cv_type_uid_t=yes
29735else
29736 ac_cv_type_uid_t=no
29737fi
29738rm -f conftest*
29739
29740fi
29741echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
29742echo "${ECHO_T}$ac_cv_type_uid_t" >&6
29743if test $ac_cv_type_uid_t = no; then
29744
29745cat >>confdefs.h <<\_ACEOF
29746#define uid_t int
29747_ACEOF
29748
29749
29750cat >>confdefs.h <<\_ACEOF
29751#define gid_t int
29752_ACEOF
29753
29754fi
29755
29756
d51253e8
RL
29757echo "$as_me:$LINENO: checking for ssize_t" >&5
29758echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
29759if test "${ac_cv_type_ssize_t+set}" = set; then
29760 echo $ECHO_N "(cached) $ECHO_C" >&6
29761else
29762 cat >conftest.$ac_ext <<_ACEOF
29763/* confdefs.h. */
29764_ACEOF
29765cat confdefs.h >>conftest.$ac_ext
29766cat >>conftest.$ac_ext <<_ACEOF
29767/* end confdefs.h. */
29768$ac_includes_default
29769int
29770main ()
29771{
29772if ((ssize_t *) 0)
29773 return 0;
29774if (sizeof (ssize_t))
29775 return 0;
29776 ;
29777 return 0;
29778}
29779_ACEOF
29780rm -f conftest.$ac_objext
29781if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29782 (eval $ac_compile) 2>conftest.er1
29783 ac_status=$?
29784 grep -v '^ *+' conftest.er1 >conftest.err
29785 rm -f conftest.er1
29786 cat conftest.err >&5
29787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29788 (exit $ac_status); } &&
07158944 29789 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
d51253e8
RL
29790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29791 (eval $ac_try) 2>&5
29792 ac_status=$?
29793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29794 (exit $ac_status); }; } &&
29795 { ac_try='test -s conftest.$ac_objext'
29796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29797 (eval $ac_try) 2>&5
29798 ac_status=$?
29799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29800 (exit $ac_status); }; }; then
29801 ac_cv_type_ssize_t=yes
29802else
29803 echo "$as_me: failed program was:" >&5
29804sed 's/^/| /' conftest.$ac_ext >&5
29805
29806ac_cv_type_ssize_t=no
29807fi
29808rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29809fi
29810echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
29811echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
29812if test $ac_cv_type_ssize_t = yes; then
29813
29814cat >>confdefs.h <<_ACEOF
29815#define HAVE_SSIZE_T 1
29816_ACEOF
29817
29818
29819fi
29820
29821
a848cd7e
SC
29822
29823
29824ac_ext=cc
29825ac_cpp='$CXXCPP $CPPFLAGS'
29826ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29827ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29828ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29829
29830echo "$as_me:$LINENO: checking if size_t is unsigned int" >&5
29831echo $ECHO_N "checking if size_t is unsigned int... $ECHO_C" >&6
29832if test "${wx_cv_size_t_is_uint+set}" = set; then
29833 echo $ECHO_N "(cached) $ECHO_C" >&6
29834else
29835
29836 cat >conftest.$ac_ext <<_ACEOF
29837/* confdefs.h. */
29838_ACEOF
29839cat confdefs.h >>conftest.$ac_ext
29840cat >>conftest.$ac_ext <<_ACEOF
29841/* end confdefs.h. */
29842#include <stddef.h>
29843int
29844main ()
29845{
29846
29847 return 0; }
29848
29849 struct Foo { void foo(size_t); void foo(unsigned int); };
29850
29851 int bar() {
29852
29853 ;
29854 return 0;
29855}
29856_ACEOF
29857rm -f conftest.$ac_objext
29858if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 29859 (eval $ac_compile) 2>conftest.er1
a848cd7e 29860 ac_status=$?
ac1cb8d3
VS
29861 grep -v '^ *+' conftest.er1 >conftest.err
29862 rm -f conftest.er1
29863 cat conftest.err >&5
a848cd7e
SC
29864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29865 (exit $ac_status); } &&
07158944 29866 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29868 (eval $ac_try) 2>&5
29869 ac_status=$?
29870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29871 (exit $ac_status); }; } &&
29872 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
29873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29874 (eval $ac_try) 2>&5
29875 ac_status=$?
29876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29877 (exit $ac_status); }; }; then
29878 wx_cv_size_t_is_uint=no
29879else
29880 echo "$as_me: failed program was:" >&5
29881sed 's/^/| /' conftest.$ac_ext >&5
29882
29883wx_cv_size_t_is_uint=yes
29884
29885fi
ac1cb8d3 29886rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
29887
29888
29889fi
29890echo "$as_me:$LINENO: result: $wx_cv_size_t_is_uint" >&5
29891echo "${ECHO_T}$wx_cv_size_t_is_uint" >&6
29892
29893if test "$wx_cv_size_t_is_uint" = "yes"; then
29894 cat >>confdefs.h <<\_ACEOF
29895#define wxSIZE_T_IS_UINT 1
29896_ACEOF
29897
29898else
29899 echo "$as_me:$LINENO: checking if size_t is unsigned long" >&5
29900echo $ECHO_N "checking if size_t is unsigned long... $ECHO_C" >&6
29901if test "${wx_cv_size_t_is_ulong+set}" = set; then
29902 echo $ECHO_N "(cached) $ECHO_C" >&6
29903else
29904 cat >conftest.$ac_ext <<_ACEOF
29905/* confdefs.h. */
29906_ACEOF
29907cat confdefs.h >>conftest.$ac_ext
29908cat >>conftest.$ac_ext <<_ACEOF
29909/* end confdefs.h. */
29910#include <stddef.h>
29911int
29912main ()
29913{
29914
29915 return 0; }
29916
29917 struct Foo { void foo(size_t); void foo(unsigned long); };
29918
29919 int bar() {
29920
29921 ;
29922 return 0;
29923}
29924_ACEOF
29925rm -f conftest.$ac_objext
29926if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 29927 (eval $ac_compile) 2>conftest.er1
a848cd7e 29928 ac_status=$?
ac1cb8d3
VS
29929 grep -v '^ *+' conftest.er1 >conftest.err
29930 rm -f conftest.er1
29931 cat conftest.err >&5
a848cd7e
SC
29932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29933 (exit $ac_status); } &&
07158944 29934 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29936 (eval $ac_try) 2>&5
29937 ac_status=$?
29938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29939 (exit $ac_status); }; } &&
29940 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
29941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29942 (eval $ac_try) 2>&5
29943 ac_status=$?
29944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29945 (exit $ac_status); }; }; then
29946 wx_cv_size_t_is_ulong=no
29947else
29948 echo "$as_me: failed program was:" >&5
29949sed 's/^/| /' conftest.$ac_ext >&5
29950
29951wx_cv_size_t_is_ulong=yes
29952
29953fi
ac1cb8d3 29954rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
29955
29956fi
29957echo "$as_me:$LINENO: result: $wx_cv_size_t_is_ulong" >&5
29958echo "${ECHO_T}$wx_cv_size_t_is_ulong" >&6
29959
29960 if test "$wx_cv_size_t_is_ulong" = "yes"; then
29961 cat >>confdefs.h <<\_ACEOF
29962#define wxSIZE_T_IS_ULONG 1
29963_ACEOF
29964
29965 fi
29966fi
29967
29968ac_ext=c
29969ac_cpp='$CPP $CPPFLAGS'
29970ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29971ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29972ac_compiler_gnu=$ac_cv_c_compiler_gnu
29973
29974
29975
29976echo "$as_me:$LINENO: checking for pw_gecos in struct passwd" >&5
29977echo $ECHO_N "checking for pw_gecos in struct passwd... $ECHO_C" >&6
29978if test "${wx_cv_struct_pw_gecos+set}" = set; then
29979 echo $ECHO_N "(cached) $ECHO_C" >&6
29980else
29981
29982 cat >conftest.$ac_ext <<_ACEOF
29983/* confdefs.h. */
29984_ACEOF
29985cat confdefs.h >>conftest.$ac_ext
29986cat >>conftest.$ac_ext <<_ACEOF
29987/* end confdefs.h. */
29988#include <pwd.h>
29989int
29990main ()
29991{
29992
29993 char *p;
29994 struct passwd *pw;
29995 p = pw->pw_gecos;
29996
29997 ;
29998 return 0;
29999}
30000_ACEOF
30001rm -f conftest.$ac_objext
30002if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 30003 (eval $ac_compile) 2>conftest.er1
a848cd7e 30004 ac_status=$?
ac1cb8d3
VS
30005 grep -v '^ *+' conftest.er1 >conftest.err
30006 rm -f conftest.er1
30007 cat conftest.err >&5
a848cd7e
SC
30008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30009 (exit $ac_status); } &&
07158944 30010 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30012 (eval $ac_try) 2>&5
30013 ac_status=$?
30014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30015 (exit $ac_status); }; } &&
30016 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
30017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30018 (eval $ac_try) 2>&5
30019 ac_status=$?
30020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30021 (exit $ac_status); }; }; then
30022
30023 wx_cv_struct_pw_gecos=yes
30024
30025else
30026 echo "$as_me: failed program was:" >&5
30027sed 's/^/| /' conftest.$ac_ext >&5
30028
30029
30030 wx_cv_struct_pw_gecos=no
30031
30032
30033fi
ac1cb8d3 30034rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
30035
30036
30037fi
30038echo "$as_me:$LINENO: result: $wx_cv_struct_pw_gecos" >&5
30039echo "${ECHO_T}$wx_cv_struct_pw_gecos" >&6
30040
30041if test "$wx_cv_struct_pw_gecos" = "yes"; then
30042 cat >>confdefs.h <<\_ACEOF
30043#define HAVE_PW_GECOS 1
30044_ACEOF
30045
30046fi
30047
30048
238ecede 30049if test "$ac_cv_sizeof_wchar_t" != "0"; then
a848cd7e
SC
30050 cat >>confdefs.h <<\_ACEOF
30051#define wxUSE_WCHAR_T 1
30052_ACEOF
30053
30054
30055 WCSLEN_FOUND=0
30056 WCHAR_LINK=
30057
30058for ac_func in wcslen
30059do
30060as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30061echo "$as_me:$LINENO: checking for $ac_func" >&5
30062echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30063if eval "test \"\${$as_ac_var+set}\" = set"; then
30064 echo $ECHO_N "(cached) $ECHO_C" >&6
30065else
30066 cat >conftest.$ac_ext <<_ACEOF
30067/* confdefs.h. */
30068_ACEOF
30069cat confdefs.h >>conftest.$ac_ext
30070cat >>conftest.$ac_ext <<_ACEOF
30071/* end confdefs.h. */
ac1cb8d3
VS
30072/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30073 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30074#define $ac_func innocuous_$ac_func
30075
a848cd7e
SC
30076/* System header to define __stub macros and hopefully few prototypes,
30077 which can conflict with char $ac_func (); below.
30078 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30079 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 30080
a848cd7e
SC
30081#ifdef __STDC__
30082# include <limits.h>
30083#else
30084# include <assert.h>
30085#endif
ac1cb8d3
VS
30086
30087#undef $ac_func
30088
a848cd7e
SC
30089/* Override any gcc2 internal prototype to avoid an error. */
30090#ifdef __cplusplus
30091extern "C"
30092{
30093#endif
30094/* We use char because int might match the return type of a gcc2
30095 builtin and then its argument prototype would still apply. */
30096char $ac_func ();
30097/* The GNU C library defines this for functions which it implements
30098 to always fail with ENOSYS. Some functions are actually named
30099 something starting with __ and the normal name is an alias. */
30100#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30101choke me
30102#else
30103char (*f) () = $ac_func;
30104#endif
30105#ifdef __cplusplus
30106}
30107#endif
30108
30109int
30110main ()
30111{
30112return f != $ac_func;
30113 ;
30114 return 0;
30115}
30116_ACEOF
30117rm -f conftest.$ac_objext conftest$ac_exeext
30118if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30119 (eval $ac_link) 2>conftest.er1
a848cd7e 30120 ac_status=$?
ac1cb8d3
VS
30121 grep -v '^ *+' conftest.er1 >conftest.err
30122 rm -f conftest.er1
30123 cat conftest.err >&5
a848cd7e
SC
30124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30125 (exit $ac_status); } &&
07158944 30126 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30128 (eval $ac_try) 2>&5
30129 ac_status=$?
30130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30131 (exit $ac_status); }; } &&
30132 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30134 (eval $ac_try) 2>&5
30135 ac_status=$?
30136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30137 (exit $ac_status); }; }; then
30138 eval "$as_ac_var=yes"
30139else
30140 echo "$as_me: failed program was:" >&5
30141sed 's/^/| /' conftest.$ac_ext >&5
30142
30143eval "$as_ac_var=no"
30144fi
ac1cb8d3
VS
30145rm -f conftest.err conftest.$ac_objext \
30146 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30147fi
30148echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30149echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30150if test `eval echo '${'$as_ac_var'}'` = yes; then
30151 cat >>confdefs.h <<_ACEOF
30152#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30153_ACEOF
30154 WCSLEN_FOUND=1
30155fi
30156done
30157
30158
30159 if test "$WCSLEN_FOUND" = 0; then
30160 if test "$TOOLKIT" = "MSW"; then
30161 echo "$as_me:$LINENO: checking for wcslen in -lmsvcrt" >&5
30162echo $ECHO_N "checking for wcslen in -lmsvcrt... $ECHO_C" >&6
30163if test "${ac_cv_lib_msvcrt_wcslen+set}" = set; then
30164 echo $ECHO_N "(cached) $ECHO_C" >&6
30165else
30166 ac_check_lib_save_LIBS=$LIBS
30167LIBS="-lmsvcrt $LIBS"
30168cat >conftest.$ac_ext <<_ACEOF
30169/* confdefs.h. */
30170_ACEOF
30171cat confdefs.h >>conftest.$ac_ext
30172cat >>conftest.$ac_ext <<_ACEOF
30173/* end confdefs.h. */
30174
30175/* Override any gcc2 internal prototype to avoid an error. */
30176#ifdef __cplusplus
30177extern "C"
30178#endif
30179/* We use char because int might match the return type of a gcc2
30180 builtin and then its argument prototype would still apply. */
30181char wcslen ();
30182int
30183main ()
30184{
30185wcslen ();
30186 ;
30187 return 0;
30188}
30189_ACEOF
30190rm -f conftest.$ac_objext conftest$ac_exeext
30191if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30192 (eval $ac_link) 2>conftest.er1
a848cd7e 30193 ac_status=$?
ac1cb8d3
VS
30194 grep -v '^ *+' conftest.er1 >conftest.err
30195 rm -f conftest.er1
30196 cat conftest.err >&5
a848cd7e
SC
30197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30198 (exit $ac_status); } &&
07158944 30199 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30201 (eval $ac_try) 2>&5
30202 ac_status=$?
30203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30204 (exit $ac_status); }; } &&
30205 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30207 (eval $ac_try) 2>&5
30208 ac_status=$?
30209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30210 (exit $ac_status); }; }; then
30211 ac_cv_lib_msvcrt_wcslen=yes
30212else
30213 echo "$as_me: failed program was:" >&5
30214sed 's/^/| /' conftest.$ac_ext >&5
30215
30216ac_cv_lib_msvcrt_wcslen=no
30217fi
ac1cb8d3
VS
30218rm -f conftest.err conftest.$ac_objext \
30219 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30220LIBS=$ac_check_lib_save_LIBS
30221fi
30222echo "$as_me:$LINENO: result: $ac_cv_lib_msvcrt_wcslen" >&5
30223echo "${ECHO_T}$ac_cv_lib_msvcrt_wcslen" >&6
30224if test $ac_cv_lib_msvcrt_wcslen = yes; then
30225 WCHAR_OK=1
30226fi
30227
30228 else
30229 echo "$as_me:$LINENO: checking for wcslen in -lw" >&5
30230echo $ECHO_N "checking for wcslen in -lw... $ECHO_C" >&6
30231if test "${ac_cv_lib_w_wcslen+set}" = set; then
30232 echo $ECHO_N "(cached) $ECHO_C" >&6
30233else
30234 ac_check_lib_save_LIBS=$LIBS
30235LIBS="-lw $LIBS"
30236cat >conftest.$ac_ext <<_ACEOF
30237/* confdefs.h. */
30238_ACEOF
30239cat confdefs.h >>conftest.$ac_ext
30240cat >>conftest.$ac_ext <<_ACEOF
30241/* end confdefs.h. */
30242
30243/* Override any gcc2 internal prototype to avoid an error. */
30244#ifdef __cplusplus
30245extern "C"
30246#endif
30247/* We use char because int might match the return type of a gcc2
30248 builtin and then its argument prototype would still apply. */
30249char wcslen ();
30250int
30251main ()
30252{
30253wcslen ();
30254 ;
30255 return 0;
30256}
30257_ACEOF
30258rm -f conftest.$ac_objext conftest$ac_exeext
30259if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30260 (eval $ac_link) 2>conftest.er1
a848cd7e 30261 ac_status=$?
ac1cb8d3
VS
30262 grep -v '^ *+' conftest.er1 >conftest.err
30263 rm -f conftest.er1
30264 cat conftest.err >&5
a848cd7e
SC
30265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30266 (exit $ac_status); } &&
07158944 30267 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30269 (eval $ac_try) 2>&5
30270 ac_status=$?
30271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30272 (exit $ac_status); }; } &&
30273 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30275 (eval $ac_try) 2>&5
30276 ac_status=$?
30277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30278 (exit $ac_status); }; }; then
30279 ac_cv_lib_w_wcslen=yes
30280else
30281 echo "$as_me: failed program was:" >&5
30282sed 's/^/| /' conftest.$ac_ext >&5
30283
30284ac_cv_lib_w_wcslen=no
30285fi
ac1cb8d3
VS
30286rm -f conftest.err conftest.$ac_objext \
30287 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30288LIBS=$ac_check_lib_save_LIBS
30289fi
30290echo "$as_me:$LINENO: result: $ac_cv_lib_w_wcslen" >&5
30291echo "${ECHO_T}$ac_cv_lib_w_wcslen" >&6
30292if test $ac_cv_lib_w_wcslen = yes; then
30293
30294 WCHAR_LINK=" -lw"
30295 WCSLEN_FOUND=1
30296
30297fi
30298
30299 fi
30300 fi
30301
30302 if test "$WCSLEN_FOUND" = 1; then
30303 cat >>confdefs.h <<\_ACEOF
30304#define HAVE_WCSLEN 1
30305_ACEOF
30306
30307 fi
30308
81f90336 30309 if test "$USE_HPUX" = 1; then
473276a9
VS
30310 CPPFLAGS="$CPPFLAGS -D_INCLUDE__STDC_A1_SOURCE "
30311 fi
30312
a848cd7e
SC
30313
30314for ac_func in wcsrtombs
30315do
30316as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30317echo "$as_me:$LINENO: checking for $ac_func" >&5
30318echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30319if eval "test \"\${$as_ac_var+set}\" = set"; then
30320 echo $ECHO_N "(cached) $ECHO_C" >&6
30321else
30322 cat >conftest.$ac_ext <<_ACEOF
30323/* confdefs.h. */
30324_ACEOF
30325cat confdefs.h >>conftest.$ac_ext
30326cat >>conftest.$ac_ext <<_ACEOF
30327/* end confdefs.h. */
ac1cb8d3
VS
30328/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30329 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30330#define $ac_func innocuous_$ac_func
30331
a848cd7e
SC
30332/* System header to define __stub macros and hopefully few prototypes,
30333 which can conflict with char $ac_func (); below.
30334 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30335 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 30336
a848cd7e
SC
30337#ifdef __STDC__
30338# include <limits.h>
30339#else
30340# include <assert.h>
30341#endif
ac1cb8d3
VS
30342
30343#undef $ac_func
30344
a848cd7e
SC
30345/* Override any gcc2 internal prototype to avoid an error. */
30346#ifdef __cplusplus
30347extern "C"
30348{
30349#endif
30350/* We use char because int might match the return type of a gcc2
30351 builtin and then its argument prototype would still apply. */
30352char $ac_func ();
30353/* The GNU C library defines this for functions which it implements
30354 to always fail with ENOSYS. Some functions are actually named
30355 something starting with __ and the normal name is an alias. */
30356#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30357choke me
30358#else
30359char (*f) () = $ac_func;
30360#endif
30361#ifdef __cplusplus
30362}
30363#endif
30364
30365int
30366main ()
30367{
30368return f != $ac_func;
30369 ;
30370 return 0;
30371}
30372_ACEOF
30373rm -f conftest.$ac_objext conftest$ac_exeext
30374if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30375 (eval $ac_link) 2>conftest.er1
a848cd7e 30376 ac_status=$?
ac1cb8d3
VS
30377 grep -v '^ *+' conftest.er1 >conftest.err
30378 rm -f conftest.er1
30379 cat conftest.err >&5
a848cd7e
SC
30380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30381 (exit $ac_status); } &&
07158944 30382 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30384 (eval $ac_try) 2>&5
30385 ac_status=$?
30386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30387 (exit $ac_status); }; } &&
30388 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30390 (eval $ac_try) 2>&5
30391 ac_status=$?
30392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30393 (exit $ac_status); }; }; then
30394 eval "$as_ac_var=yes"
30395else
30396 echo "$as_me: failed program was:" >&5
30397sed 's/^/| /' conftest.$ac_ext >&5
30398
30399eval "$as_ac_var=no"
30400fi
ac1cb8d3
VS
30401rm -f conftest.err conftest.$ac_objext \
30402 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30403fi
30404echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30405echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30406if test `eval echo '${'$as_ac_var'}'` = yes; then
30407 cat >>confdefs.h <<_ACEOF
30408#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30409_ACEOF
30410
30411fi
30412done
30413
30414else
30415 { echo "$as_me:$LINENO: WARNING: Wide character support is unavailable" >&5
30416echo "$as_me: WARNING: Wide character support is unavailable" >&2;}
30417fi
30418
30419
30420
30421ac_ext=cc
30422ac_cpp='$CXXCPP $CPPFLAGS'
30423ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30424ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30425ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30426
30427
30428
30429for ac_func in vsnprintf
30430do
30431as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30432echo "$as_me:$LINENO: checking for $ac_func" >&5
30433echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30434if eval "test \"\${$as_ac_var+set}\" = set"; then
30435 echo $ECHO_N "(cached) $ECHO_C" >&6
30436else
30437 cat >conftest.$ac_ext <<_ACEOF
30438/* confdefs.h. */
30439_ACEOF
30440cat confdefs.h >>conftest.$ac_ext
30441cat >>conftest.$ac_ext <<_ACEOF
30442/* end confdefs.h. */
ac1cb8d3
VS
30443/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30444 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30445#define $ac_func innocuous_$ac_func
30446
a848cd7e
SC
30447/* System header to define __stub macros and hopefully few prototypes,
30448 which can conflict with char $ac_func (); below.
30449 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30450 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 30451
a848cd7e
SC
30452#ifdef __STDC__
30453# include <limits.h>
30454#else
30455# include <assert.h>
30456#endif
ac1cb8d3
VS
30457
30458#undef $ac_func
30459
a848cd7e
SC
30460/* Override any gcc2 internal prototype to avoid an error. */
30461#ifdef __cplusplus
30462extern "C"
30463{
30464#endif
30465/* We use char because int might match the return type of a gcc2
30466 builtin and then its argument prototype would still apply. */
30467char $ac_func ();
30468/* The GNU C library defines this for functions which it implements
30469 to always fail with ENOSYS. Some functions are actually named
30470 something starting with __ and the normal name is an alias. */
30471#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30472choke me
30473#else
30474char (*f) () = $ac_func;
30475#endif
30476#ifdef __cplusplus
30477}
30478#endif
30479
30480int
30481main ()
30482{
30483return f != $ac_func;
30484 ;
30485 return 0;
30486}
30487_ACEOF
30488rm -f conftest.$ac_objext conftest$ac_exeext
30489if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30490 (eval $ac_link) 2>conftest.er1
a848cd7e 30491 ac_status=$?
ac1cb8d3
VS
30492 grep -v '^ *+' conftest.er1 >conftest.err
30493 rm -f conftest.er1
30494 cat conftest.err >&5
a848cd7e
SC
30495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30496 (exit $ac_status); } &&
07158944 30497 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30499 (eval $ac_try) 2>&5
30500 ac_status=$?
30501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30502 (exit $ac_status); }; } &&
30503 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30505 (eval $ac_try) 2>&5
30506 ac_status=$?
30507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30508 (exit $ac_status); }; }; then
30509 eval "$as_ac_var=yes"
30510else
30511 echo "$as_me: failed program was:" >&5
30512sed 's/^/| /' conftest.$ac_ext >&5
30513
30514eval "$as_ac_var=no"
30515fi
ac1cb8d3
VS
30516rm -f conftest.err conftest.$ac_objext \
30517 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30518fi
30519echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30520echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30521if test `eval echo '${'$as_ac_var'}'` = yes; then
30522 cat >>confdefs.h <<_ACEOF
30523#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30524_ACEOF
30525
30526fi
30527done
30528
30529
30530if test "$ac_cv_func_vsnprintf" = "yes"; then
30531 echo "$as_me:$LINENO: checking for vsnprintf declaration" >&5
30532echo $ECHO_N "checking for vsnprintf declaration... $ECHO_C" >&6
30533if test "${wx_cv_func_vsnprintf_decl+set}" = set; then
30534 echo $ECHO_N "(cached) $ECHO_C" >&6
30535else
30536
30537 cat >conftest.$ac_ext <<_ACEOF
30538/* confdefs.h. */
30539_ACEOF
30540cat confdefs.h >>conftest.$ac_ext
30541cat >>conftest.$ac_ext <<_ACEOF
30542/* end confdefs.h. */
30543
30544 #include <stdio.h>
30545 #include <stdarg.h>
30546
30547int
30548main ()
30549{
30550
30551 char *buf;
30552 va_list ap;
30553 vsnprintf(buf, 10u, "%s", ap);
30554
30555 ;
30556 return 0;
30557}
30558_ACEOF
30559rm -f conftest.$ac_objext
30560if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 30561 (eval $ac_compile) 2>conftest.er1
a848cd7e 30562 ac_status=$?
ac1cb8d3
VS
30563 grep -v '^ *+' conftest.er1 >conftest.err
30564 rm -f conftest.er1
30565 cat conftest.err >&5
a848cd7e
SC
30566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30567 (exit $ac_status); } &&
07158944 30568 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30570 (eval $ac_try) 2>&5
30571 ac_status=$?
30572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30573 (exit $ac_status); }; } &&
30574 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
30575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30576 (eval $ac_try) 2>&5
30577 ac_status=$?
30578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30579 (exit $ac_status); }; }; then
30580 wx_cv_func_vsnprintf_decl=yes
30581else
30582 echo "$as_me: failed program was:" >&5
30583sed 's/^/| /' conftest.$ac_ext >&5
30584
c122b164
DE
30585
30586 cat >conftest.$ac_ext <<_ACEOF
30587/* confdefs.h. */
30588_ACEOF
30589cat confdefs.h >>conftest.$ac_ext
30590cat >>conftest.$ac_ext <<_ACEOF
30591/* end confdefs.h. */
30592
30593 #include <stdio.h>
30594 #include <stdarg.h>
30595 using namespace std;
30596
30597int
30598main ()
30599{
30600
30601 char *buf;
30602 va_list ap;
30603 vsnprintf(buf, 10u, "%s", ap);
30604
30605 ;
30606 return 0;
30607}
30608_ACEOF
30609rm -f conftest.$ac_objext
30610if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30611 (eval $ac_compile) 2>conftest.er1
30612 ac_status=$?
30613 grep -v '^ *+' conftest.er1 >conftest.err
30614 rm -f conftest.er1
30615 cat conftest.err >&5
30616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30617 (exit $ac_status); } &&
07158944 30618 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
c122b164
DE
30619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30620 (eval $ac_try) 2>&5
30621 ac_status=$?
30622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30623 (exit $ac_status); }; } &&
30624 { ac_try='test -s conftest.$ac_objext'
30625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30626 (eval $ac_try) 2>&5
30627 ac_status=$?
30628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30629 (exit $ac_status); }; }; then
30630 wx_cv_func_vsnprintf_decl=yes
30631else
30632 echo "$as_me: failed program was:" >&5
30633sed 's/^/| /' conftest.$ac_ext >&5
30634
a848cd7e
SC
30635wx_cv_func_vsnprintf_decl=no
30636
30637fi
ac1cb8d3 30638rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
30639
30640
c122b164
DE
30641fi
30642rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30643
30644
a848cd7e
SC
30645fi
30646echo "$as_me:$LINENO: result: $wx_cv_func_vsnprintf_decl" >&5
30647echo "${ECHO_T}$wx_cv_func_vsnprintf_decl" >&6
30648
30649 if test "$wx_cv_func_vsnprintf_decl" = "yes"; then
30650 cat >>confdefs.h <<\_ACEOF
30651#define HAVE_VSNPRINTF_DECL 1
30652_ACEOF
30653
30654 fi
30655fi
30656
30657if test "$wxUSE_UNICODE" = yes; then
30658
30659
30660
fbe47c7b
VS
30661
30662
30663
30664for ac_func in wputc wputchar putws fputws wprintf vswprintf
a848cd7e
SC
30665do
30666as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30667echo "$as_me:$LINENO: checking for $ac_func" >&5
30668echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30669if eval "test \"\${$as_ac_var+set}\" = set"; then
30670 echo $ECHO_N "(cached) $ECHO_C" >&6
30671else
30672 cat >conftest.$ac_ext <<_ACEOF
30673/* confdefs.h. */
30674_ACEOF
30675cat confdefs.h >>conftest.$ac_ext
30676cat >>conftest.$ac_ext <<_ACEOF
30677/* end confdefs.h. */
ac1cb8d3
VS
30678/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30679 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30680#define $ac_func innocuous_$ac_func
30681
a848cd7e
SC
30682/* System header to define __stub macros and hopefully few prototypes,
30683 which can conflict with char $ac_func (); below.
30684 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30685 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 30686
a848cd7e
SC
30687#ifdef __STDC__
30688# include <limits.h>
30689#else
30690# include <assert.h>
30691#endif
ac1cb8d3
VS
30692
30693#undef $ac_func
30694
a848cd7e
SC
30695/* Override any gcc2 internal prototype to avoid an error. */
30696#ifdef __cplusplus
30697extern "C"
30698{
30699#endif
30700/* We use char because int might match the return type of a gcc2
30701 builtin and then its argument prototype would still apply. */
30702char $ac_func ();
30703/* The GNU C library defines this for functions which it implements
30704 to always fail with ENOSYS. Some functions are actually named
30705 something starting with __ and the normal name is an alias. */
30706#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30707choke me
30708#else
30709char (*f) () = $ac_func;
30710#endif
30711#ifdef __cplusplus
30712}
30713#endif
30714
30715int
30716main ()
30717{
30718return f != $ac_func;
30719 ;
30720 return 0;
30721}
30722_ACEOF
30723rm -f conftest.$ac_objext conftest$ac_exeext
30724if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30725 (eval $ac_link) 2>conftest.er1
a848cd7e 30726 ac_status=$?
ac1cb8d3
VS
30727 grep -v '^ *+' conftest.er1 >conftest.err
30728 rm -f conftest.er1
30729 cat conftest.err >&5
a848cd7e
SC
30730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30731 (exit $ac_status); } &&
07158944 30732 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30734 (eval $ac_try) 2>&5
30735 ac_status=$?
30736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30737 (exit $ac_status); }; } &&
30738 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30740 (eval $ac_try) 2>&5
30741 ac_status=$?
30742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30743 (exit $ac_status); }; }; then
30744 eval "$as_ac_var=yes"
30745else
30746 echo "$as_me: failed program was:" >&5
30747sed 's/^/| /' conftest.$ac_ext >&5
30748
30749eval "$as_ac_var=no"
30750fi
ac1cb8d3
VS
30751rm -f conftest.err conftest.$ac_objext \
30752 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30753fi
30754echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30755echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30756if test `eval echo '${'$as_ac_var'}'` = yes; then
30757 cat >>confdefs.h <<_ACEOF
30758#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30759_ACEOF
30760
30761fi
30762done
30763
30764
30765 echo "$as_me:$LINENO: checking for _vsnwprintf" >&5
30766echo $ECHO_N "checking for _vsnwprintf... $ECHO_C" >&6
30767 cat >conftest.$ac_ext <<_ACEOF
30768/* confdefs.h. */
30769_ACEOF
30770cat confdefs.h >>conftest.$ac_ext
30771cat >>conftest.$ac_ext <<_ACEOF
30772/* end confdefs.h. */
30773#include <wchar.h>
30774int
30775main ()
30776{
30777&_vsnwprintf;
30778 ;
30779 return 0;
30780}
30781_ACEOF
30782rm -f conftest.$ac_objext
30783if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 30784 (eval $ac_compile) 2>conftest.er1
a848cd7e 30785 ac_status=$?
ac1cb8d3
VS
30786 grep -v '^ *+' conftest.er1 >conftest.err
30787 rm -f conftest.er1
30788 cat conftest.err >&5
a848cd7e
SC
30789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30790 (exit $ac_status); } &&
07158944 30791 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30793 (eval $ac_try) 2>&5
30794 ac_status=$?
30795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30796 (exit $ac_status); }; } &&
30797 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
30798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30799 (eval $ac_try) 2>&5
30800 ac_status=$?
30801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30802 (exit $ac_status); }; }; then
30803 echo "$as_me:$LINENO: result: yes" >&5
30804echo "${ECHO_T}yes" >&6
30805 cat >>confdefs.h <<\_ACEOF
30806#define HAVE__VSNWPRINTF 1
30807_ACEOF
30808
30809else
30810 echo "$as_me: failed program was:" >&5
30811sed 's/^/| /' conftest.$ac_ext >&5
30812
30813echo "$as_me:$LINENO: result: no" >&5
30814echo "${ECHO_T}no" >&6
30815fi
ac1cb8d3 30816rm -f conftest.err conftest.$ac_objext conftest.$ac_ext;
a848cd7e
SC
30817fi
30818
30819ac_ext=c
30820ac_cpp='$CPP $CPPFLAGS'
30821ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30822ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30823ac_compiler_gnu=$ac_cv_c_compiler_gnu
30824
30825
30826
30827
30828if test "$TOOLKIT" != "MSW"; then
30829
30830
30831
30832
30833ac_ext=cc
30834ac_cpp='$CXXCPP $CPPFLAGS'
30835ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30836ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30837ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30838
30839
30840
30841
30842# Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
30843if test "${with_libiconv_prefix+set}" = set; then
30844 withval="$with_libiconv_prefix"
30845
30846 for dir in `echo "$withval" | tr : ' '`; do
30847 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
30848 if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
30849 done
30850
30851fi;
30852
30853 echo "$as_me:$LINENO: checking for iconv" >&5
30854echo $ECHO_N "checking for iconv... $ECHO_C" >&6
30855if test "${am_cv_func_iconv+set}" = set; then
30856 echo $ECHO_N "(cached) $ECHO_C" >&6
30857else
30858
30859 am_cv_func_iconv="no, consider installing GNU libiconv"
30860 am_cv_lib_iconv=no
30861 cat >conftest.$ac_ext <<_ACEOF
30862/* confdefs.h. */
30863_ACEOF
30864cat confdefs.h >>conftest.$ac_ext
30865cat >>conftest.$ac_ext <<_ACEOF
30866/* end confdefs.h. */
30867#include <stdlib.h>
30868#include <iconv.h>
30869int
30870main ()
30871{
30872iconv_t cd = iconv_open("","");
30873 iconv(cd,NULL,NULL,NULL,NULL);
30874 iconv_close(cd);
30875 ;
30876 return 0;
30877}
30878_ACEOF
30879rm -f conftest.$ac_objext conftest$ac_exeext
30880if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30881 (eval $ac_link) 2>conftest.er1
a848cd7e 30882 ac_status=$?
ac1cb8d3
VS
30883 grep -v '^ *+' conftest.er1 >conftest.err
30884 rm -f conftest.er1
30885 cat conftest.err >&5
a848cd7e
SC
30886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30887 (exit $ac_status); } &&
07158944 30888 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30890 (eval $ac_try) 2>&5
30891 ac_status=$?
30892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30893 (exit $ac_status); }; } &&
30894 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30896 (eval $ac_try) 2>&5
30897 ac_status=$?
30898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30899 (exit $ac_status); }; }; then
30900 am_cv_func_iconv=yes
30901else
30902 echo "$as_me: failed program was:" >&5
30903sed 's/^/| /' conftest.$ac_ext >&5
30904
30905fi
ac1cb8d3
VS
30906rm -f conftest.err conftest.$ac_objext \
30907 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30908 if test "$am_cv_func_iconv" != yes; then
30909 am_save_LIBS="$LIBS"
30910 LIBS="$LIBS -liconv"
30911 cat >conftest.$ac_ext <<_ACEOF
30912/* confdefs.h. */
30913_ACEOF
30914cat confdefs.h >>conftest.$ac_ext
30915cat >>conftest.$ac_ext <<_ACEOF
30916/* end confdefs.h. */
30917#include <stdlib.h>
30918#include <iconv.h>
30919int
30920main ()
30921{
30922iconv_t cd = iconv_open("","");
30923 iconv(cd,NULL,NULL,NULL,NULL);
30924 iconv_close(cd);
30925 ;
30926 return 0;
30927}
30928_ACEOF
30929rm -f conftest.$ac_objext conftest$ac_exeext
30930if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30931 (eval $ac_link) 2>conftest.er1
a848cd7e 30932 ac_status=$?
ac1cb8d3
VS
30933 grep -v '^ *+' conftest.er1 >conftest.err
30934 rm -f conftest.er1
30935 cat conftest.err >&5
a848cd7e
SC
30936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30937 (exit $ac_status); } &&
07158944 30938 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30940 (eval $ac_try) 2>&5
30941 ac_status=$?
30942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30943 (exit $ac_status); }; } &&
30944 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30946 (eval $ac_try) 2>&5
30947 ac_status=$?
30948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30949 (exit $ac_status); }; }; then
30950 am_cv_lib_iconv=yes
30951 am_cv_func_iconv=yes
30952else
30953 echo "$as_me: failed program was:" >&5
30954sed 's/^/| /' conftest.$ac_ext >&5
30955
30956fi
ac1cb8d3
VS
30957rm -f conftest.err conftest.$ac_objext \
30958 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30959 LIBS="$am_save_LIBS"
30960 fi
30961
30962fi
30963echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
30964echo "${ECHO_T}$am_cv_func_iconv" >&6
30965 if test "$am_cv_func_iconv" = yes; then
30966
30967cat >>confdefs.h <<\_ACEOF
30968#define HAVE_ICONV 1
30969_ACEOF
30970
30971 echo "$as_me:$LINENO: checking if iconv needs const" >&5
30972echo $ECHO_N "checking if iconv needs const... $ECHO_C" >&6
30973if test "${wx_cv_func_iconv_const+set}" = set; then
30974 echo $ECHO_N "(cached) $ECHO_C" >&6
30975else
30976 cat >conftest.$ac_ext <<_ACEOF
30977/* confdefs.h. */
30978_ACEOF
30979cat confdefs.h >>conftest.$ac_ext
30980cat >>conftest.$ac_ext <<_ACEOF
30981/* end confdefs.h. */
30982
30983#include <stdlib.h>
30984#include <iconv.h>
30985extern
30986#ifdef __cplusplus
30987"C"
30988#endif
30989#if defined(__STDC__) || defined(__cplusplus)
30990size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
30991#else
30992size_t iconv();
30993#endif
30994
30995int
30996main ()
30997{
30998
30999 ;
31000 return 0;
31001}
31002_ACEOF
31003rm -f conftest.$ac_objext
31004if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 31005 (eval $ac_compile) 2>conftest.er1
a848cd7e 31006 ac_status=$?
ac1cb8d3
VS
31007 grep -v '^ *+' conftest.er1 >conftest.err
31008 rm -f conftest.er1
31009 cat conftest.err >&5
a848cd7e
SC
31010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31011 (exit $ac_status); } &&
07158944 31012 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31014 (eval $ac_try) 2>&5
31015 ac_status=$?
31016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31017 (exit $ac_status); }; } &&
31018 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
31019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31020 (eval $ac_try) 2>&5
31021 ac_status=$?
31022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31023 (exit $ac_status); }; }; then
31024 wx_cv_func_iconv_const="no"
31025else
31026 echo "$as_me: failed program was:" >&5
31027sed 's/^/| /' conftest.$ac_ext >&5
31028
31029wx_cv_func_iconv_const="yes"
31030
31031fi
ac1cb8d3 31032rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
31033
31034fi
31035echo "$as_me:$LINENO: result: $wx_cv_func_iconv_const" >&5
31036echo "${ECHO_T}$wx_cv_func_iconv_const" >&6
31037
31038 iconv_const=
31039 if test "x$wx_cv_func_iconv_const" = "xyes"; then
31040 iconv_const="const"
31041 fi
31042
31043
31044cat >>confdefs.h <<_ACEOF
31045#define ICONV_CONST $iconv_const
31046_ACEOF
31047
31048 fi
31049 LIBICONV=
31050 if test "$am_cv_lib_iconv" = yes; then
31051 LIBICONV="-liconv"
31052 fi
31053
31054
31055LIBS="$LIBICONV $LIBS"
31056ac_ext=c
31057ac_cpp='$CPP $CPPFLAGS'
31058ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31059ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31060ac_compiler_gnu=$ac_cv_c_compiler_gnu
31061
31062
31063if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then
31064
31065for ac_func in sigaction
31066do
31067as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31068echo "$as_me:$LINENO: checking for $ac_func" >&5
31069echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31070if eval "test \"\${$as_ac_var+set}\" = set"; then
31071 echo $ECHO_N "(cached) $ECHO_C" >&6
31072else
31073 cat >conftest.$ac_ext <<_ACEOF
31074/* confdefs.h. */
31075_ACEOF
31076cat confdefs.h >>conftest.$ac_ext
31077cat >>conftest.$ac_ext <<_ACEOF
31078/* end confdefs.h. */
ac1cb8d3
VS
31079/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31080 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31081#define $ac_func innocuous_$ac_func
31082
a848cd7e
SC
31083/* System header to define __stub macros and hopefully few prototypes,
31084 which can conflict with char $ac_func (); below.
31085 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31086 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 31087
a848cd7e
SC
31088#ifdef __STDC__
31089# include <limits.h>
31090#else
31091# include <assert.h>
31092#endif
ac1cb8d3
VS
31093
31094#undef $ac_func
31095
a848cd7e
SC
31096/* Override any gcc2 internal prototype to avoid an error. */
31097#ifdef __cplusplus
31098extern "C"
31099{
31100#endif
31101/* We use char because int might match the return type of a gcc2
31102 builtin and then its argument prototype would still apply. */
31103char $ac_func ();
31104/* The GNU C library defines this for functions which it implements
31105 to always fail with ENOSYS. Some functions are actually named
31106 something starting with __ and the normal name is an alias. */
31107#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31108choke me
31109#else
31110char (*f) () = $ac_func;
31111#endif
31112#ifdef __cplusplus
31113}
31114#endif
31115
31116int
31117main ()
31118{
31119return f != $ac_func;
31120 ;
31121 return 0;
31122}
31123_ACEOF
31124rm -f conftest.$ac_objext conftest$ac_exeext
31125if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31126 (eval $ac_link) 2>conftest.er1
a848cd7e 31127 ac_status=$?
ac1cb8d3
VS
31128 grep -v '^ *+' conftest.er1 >conftest.err
31129 rm -f conftest.er1
31130 cat conftest.err >&5
a848cd7e
SC
31131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31132 (exit $ac_status); } &&
07158944 31133 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31135 (eval $ac_try) 2>&5
31136 ac_status=$?
31137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31138 (exit $ac_status); }; } &&
31139 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31141 (eval $ac_try) 2>&5
31142 ac_status=$?
31143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31144 (exit $ac_status); }; }; then
31145 eval "$as_ac_var=yes"
31146else
31147 echo "$as_me: failed program was:" >&5
31148sed 's/^/| /' conftest.$ac_ext >&5
31149
31150eval "$as_ac_var=no"
31151fi
ac1cb8d3
VS
31152rm -f conftest.err conftest.$ac_objext \
31153 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31154fi
31155echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31156echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31157if test `eval echo '${'$as_ac_var'}'` = yes; then
31158 cat >>confdefs.h <<_ACEOF
31159#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31160_ACEOF
31161
31162fi
31163done
31164
31165
31166 if test "$ac_cv_func_sigaction" = "no"; then
31167 { echo "$as_me:$LINENO: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&5
31168echo "$as_me: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&2;}
31169 wxUSE_ON_FATAL_EXCEPTION=no
31170 fi
31171
31172 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
31173
31174
31175 ac_ext=cc
31176ac_cpp='$CXXCPP $CPPFLAGS'
31177ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31178ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31179ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31180
31181
31182 echo "$as_me:$LINENO: checking for sa_handler type" >&5
31183echo $ECHO_N "checking for sa_handler type... $ECHO_C" >&6
31184if test "${wx_cv_type_sa_handler+set}" = set; then
31185 echo $ECHO_N "(cached) $ECHO_C" >&6
31186else
31187
31188 cat >conftest.$ac_ext <<_ACEOF
31189/* confdefs.h. */
31190_ACEOF
31191cat confdefs.h >>conftest.$ac_ext
31192cat >>conftest.$ac_ext <<_ACEOF
31193/* end confdefs.h. */
31194#include <signal.h>
31195int
31196main ()
31197{
31198
31199 extern void testSigHandler(int);
31200
31201 struct sigaction sa;
31202 sa.sa_handler = testSigHandler;
31203
31204 ;
31205 return 0;
31206}
31207_ACEOF
31208rm -f conftest.$ac_objext
31209if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 31210 (eval $ac_compile) 2>conftest.er1
a848cd7e 31211 ac_status=$?
ac1cb8d3
VS
31212 grep -v '^ *+' conftest.er1 >conftest.err
31213 rm -f conftest.er1
31214 cat conftest.err >&5
a848cd7e
SC
31215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31216 (exit $ac_status); } &&
07158944 31217 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31219 (eval $ac_try) 2>&5
31220 ac_status=$?
31221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31222 (exit $ac_status); }; } &&
31223 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
31224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31225 (eval $ac_try) 2>&5
31226 ac_status=$?
31227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31228 (exit $ac_status); }; }; then
31229
31230 wx_cv_type_sa_handler=int
31231
31232else
31233 echo "$as_me: failed program was:" >&5
31234sed 's/^/| /' conftest.$ac_ext >&5
31235
31236
31237 wx_cv_type_sa_handler=void
31238
31239fi
ac1cb8d3 31240rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
31241
31242fi
31243echo "$as_me:$LINENO: result: $wx_cv_type_sa_handler" >&5
31244echo "${ECHO_T}$wx_cv_type_sa_handler" >&6
31245
31246 ac_ext=c
31247ac_cpp='$CPP $CPPFLAGS'
31248ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31249ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31250ac_compiler_gnu=$ac_cv_c_compiler_gnu
31251
31252
31253 cat >>confdefs.h <<_ACEOF
31254#define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler
31255_ACEOF
31256
31257 fi
31258fi
31259
eaff0f0d
VZ
31260if test "$wxUSE_STACKWALKER" = "yes" -a "$wxUSE_UNIX" = "yes"; then
31261
31262
31263 ac_ext=cc
31264ac_cpp='$CXXCPP $CPPFLAGS'
31265ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31266ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31267ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31268
31269
31270 echo "$as_me:$LINENO: checking for backtrace() in <execinfo.h>" >&5
31271echo $ECHO_N "checking for backtrace() in <execinfo.h>... $ECHO_C" >&6
31272if test "${wx_cv_func_backtrace+set}" = set; then
31273 echo $ECHO_N "(cached) $ECHO_C" >&6
31274else
31275
31276 cat >conftest.$ac_ext <<_ACEOF
31277/* confdefs.h. */
31278_ACEOF
31279cat confdefs.h >>conftest.$ac_ext
31280cat >>conftest.$ac_ext <<_ACEOF
31281/* end confdefs.h. */
31282#include <execinfo.h>
31283int
31284main ()
31285{
31286
31287 void *trace[1];
31288 char **messages;
31289
31290 backtrace(trace, 1);
31291 messages = backtrace_symbols(trace, 1);
31292
31293 ;
31294 return 0;
31295}
31296_ACEOF
31297rm -f conftest.$ac_objext
31298if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31299 (eval $ac_compile) 2>conftest.er1
31300 ac_status=$?
31301 grep -v '^ *+' conftest.er1 >conftest.err
31302 rm -f conftest.er1
31303 cat conftest.err >&5
31304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31305 (exit $ac_status); } &&
07158944 31306 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
eaff0f0d
VZ
31307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31308 (eval $ac_try) 2>&5
31309 ac_status=$?
31310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31311 (exit $ac_status); }; } &&
31312 { ac_try='test -s conftest.$ac_objext'
31313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31314 (eval $ac_try) 2>&5
31315 ac_status=$?
31316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31317 (exit $ac_status); }; }; then
31318 wx_cv_func_backtrace=yes
31319else
31320 echo "$as_me: failed program was:" >&5
31321sed 's/^/| /' conftest.$ac_ext >&5
31322
31323wx_cv_func_backtrace=no
31324
31325fi
31326rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31327
31328
31329fi
31330echo "$as_me:$LINENO: result: $wx_cv_func_backtrace" >&5
31331echo "${ECHO_T}$wx_cv_func_backtrace" >&6
31332
31333
31334 if test "$wx_cv_func_backtrace" = "no"; then
31335 { echo "$as_me:$LINENO: WARNING: backtrace() is not available, wxStackWalker will not be available" >&5
31336echo "$as_me: WARNING: backtrace() is not available, wxStackWalker will not be available" >&2;}
31337 wxUSE_STACKWALKER=no
31338 else
31339 echo "$as_me:$LINENO: checking for __cxa_demangle() in <cxxabi.h>" >&5
31340echo $ECHO_N "checking for __cxa_demangle() in <cxxabi.h>... $ECHO_C" >&6
31341if test "${wx_cv_func_cxa_demangle+set}" = set; then
31342 echo $ECHO_N "(cached) $ECHO_C" >&6
31343else
31344
31345 cat >conftest.$ac_ext <<_ACEOF
31346/* confdefs.h. */
31347_ACEOF
31348cat confdefs.h >>conftest.$ac_ext
31349cat >>conftest.$ac_ext <<_ACEOF
31350/* end confdefs.h. */
31351#include <cxxabi.h>
31352int
31353main ()
31354{
31355
31356 int rc;
31357 __cxxabiv1::__cxa_demangle("foo", 0, 0, &rc);
31358
31359 ;
31360 return 0;
31361}
31362_ACEOF
31363rm -f conftest.$ac_objext
31364if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31365 (eval $ac_compile) 2>conftest.er1
31366 ac_status=$?
31367 grep -v '^ *+' conftest.er1 >conftest.err
31368 rm -f conftest.er1
31369 cat conftest.err >&5
31370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31371 (exit $ac_status); } &&
07158944 31372 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
eaff0f0d
VZ
31373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31374 (eval $ac_try) 2>&5
31375 ac_status=$?
31376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31377 (exit $ac_status); }; } &&
31378 { ac_try='test -s conftest.$ac_objext'
31379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31380 (eval $ac_try) 2>&5
31381 ac_status=$?
31382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31383 (exit $ac_status); }; }; then
31384 wx_cv_func_cxa_demangle=yes
31385else
31386 echo "$as_me: failed program was:" >&5
31387sed 's/^/| /' conftest.$ac_ext >&5
31388
31389wx_cv_func_cxa_demangle=no
31390
31391fi
31392rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31393
31394
31395fi
31396echo "$as_me:$LINENO: result: $wx_cv_func_cxa_demangle" >&5
31397echo "${ECHO_T}$wx_cv_func_cxa_demangle" >&6
31398
31399 if test "$wx_cv_func_cxa_demangle" = "yes"; then
31400 cat >>confdefs.h <<\_ACEOF
31401#define HAVE_CXA_DEMANGLE 1
31402_ACEOF
31403
31404 fi
31405 fi
31406
31407 ac_ext=c
31408ac_cpp='$CPP $CPPFLAGS'
31409ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31410ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31411ac_compiler_gnu=$ac_cv_c_compiler_gnu
31412
31413fi
31414
a848cd7e
SC
31415
31416
31417for ac_func in mkstemp mktemp
31418do
31419as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31420echo "$as_me:$LINENO: checking for $ac_func" >&5
31421echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31422if eval "test \"\${$as_ac_var+set}\" = set"; then
31423 echo $ECHO_N "(cached) $ECHO_C" >&6
31424else
31425 cat >conftest.$ac_ext <<_ACEOF
31426/* confdefs.h. */
31427_ACEOF
31428cat confdefs.h >>conftest.$ac_ext
31429cat >>conftest.$ac_ext <<_ACEOF
31430/* end confdefs.h. */
ac1cb8d3
VS
31431/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31432 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31433#define $ac_func innocuous_$ac_func
31434
a848cd7e
SC
31435/* System header to define __stub macros and hopefully few prototypes,
31436 which can conflict with char $ac_func (); below.
31437 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31438 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 31439
a848cd7e
SC
31440#ifdef __STDC__
31441# include <limits.h>
31442#else
31443# include <assert.h>
31444#endif
ac1cb8d3
VS
31445
31446#undef $ac_func
31447
a848cd7e
SC
31448/* Override any gcc2 internal prototype to avoid an error. */
31449#ifdef __cplusplus
31450extern "C"
31451{
31452#endif
31453/* We use char because int might match the return type of a gcc2
31454 builtin and then its argument prototype would still apply. */
31455char $ac_func ();
31456/* The GNU C library defines this for functions which it implements
31457 to always fail with ENOSYS. Some functions are actually named
31458 something starting with __ and the normal name is an alias. */
31459#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31460choke me
31461#else
31462char (*f) () = $ac_func;
31463#endif
31464#ifdef __cplusplus
31465}
31466#endif
31467
31468int
31469main ()
31470{
31471return f != $ac_func;
31472 ;
31473 return 0;
31474}
31475_ACEOF
31476rm -f conftest.$ac_objext conftest$ac_exeext
31477if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31478 (eval $ac_link) 2>conftest.er1
a848cd7e 31479 ac_status=$?
ac1cb8d3
VS
31480 grep -v '^ *+' conftest.er1 >conftest.err
31481 rm -f conftest.er1
31482 cat conftest.err >&5
a848cd7e
SC
31483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31484 (exit $ac_status); } &&
07158944 31485 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31487 (eval $ac_try) 2>&5
31488 ac_status=$?
31489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31490 (exit $ac_status); }; } &&
31491 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31493 (eval $ac_try) 2>&5
31494 ac_status=$?
31495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31496 (exit $ac_status); }; }; then
31497 eval "$as_ac_var=yes"
31498else
31499 echo "$as_me: failed program was:" >&5
31500sed 's/^/| /' conftest.$ac_ext >&5
31501
31502eval "$as_ac_var=no"
31503fi
ac1cb8d3
VS
31504rm -f conftest.err conftest.$ac_objext \
31505 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31506fi
31507echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31508echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31509if test `eval echo '${'$as_ac_var'}'` = yes; then
31510 cat >>confdefs.h <<_ACEOF
31511#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31512_ACEOF
31513 break
31514fi
31515done
31516
31517
31518echo "$as_me:$LINENO: checking for statfs" >&5
31519echo $ECHO_N "checking for statfs... $ECHO_C" >&6
31520if test "${wx_cv_func_statfs+set}" = set; then
31521 echo $ECHO_N "(cached) $ECHO_C" >&6
31522else
31523 cat >conftest.$ac_ext <<_ACEOF
31524/* confdefs.h. */
31525_ACEOF
31526cat confdefs.h >>conftest.$ac_ext
31527cat >>conftest.$ac_ext <<_ACEOF
31528/* end confdefs.h. */
31529
31530 #if defined(__BSD__)
31531 #include <sys/param.h>
31532 #include <sys/mount.h>
31533 #else
31534 #include <sys/vfs.h>
31535 #endif
31536
31537int
31538main ()
31539{
31540
31541 long l;
31542 struct statfs fs;
31543 statfs("/", &fs);
31544 l = fs.f_bsize;
31545 l += fs.f_blocks;
31546 l += fs.f_bavail;
31547
31548 ;
31549 return 0;
31550}
31551_ACEOF
31552rm -f conftest.$ac_objext
31553if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 31554 (eval $ac_compile) 2>conftest.er1
a848cd7e 31555 ac_status=$?
ac1cb8d3
VS
31556 grep -v '^ *+' conftest.er1 >conftest.err
31557 rm -f conftest.er1
31558 cat conftest.err >&5
a848cd7e
SC
31559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31560 (exit $ac_status); } &&
07158944 31561 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
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); }; } &&
31567 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
31568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31569 (eval $ac_try) 2>&5
31570 ac_status=$?
31571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31572 (exit $ac_status); }; }; then
31573
31574 wx_cv_func_statfs=yes
31575
31576else
31577 echo "$as_me: failed program was:" >&5
31578sed 's/^/| /' conftest.$ac_ext >&5
31579
31580
31581 wx_cv_func_statfs=no
31582
31583
31584fi
ac1cb8d3 31585rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
31586
31587fi
31588echo "$as_me:$LINENO: result: $wx_cv_func_statfs" >&5
31589echo "${ECHO_T}$wx_cv_func_statfs" >&6
31590
31591if test "$wx_cv_func_statfs" = "yes"; then
31592 wx_cv_type_statvfs_t="struct statfs"
31593 cat >>confdefs.h <<\_ACEOF
31594#define HAVE_STATFS 1
31595_ACEOF
31596
31597else
31598 echo "$as_me:$LINENO: checking for statvfs" >&5
31599echo $ECHO_N "checking for statvfs... $ECHO_C" >&6
31600if test "${wx_cv_func_statvfs+set}" = set; then
31601 echo $ECHO_N "(cached) $ECHO_C" >&6
31602else
31603 cat >conftest.$ac_ext <<_ACEOF
31604/* confdefs.h. */
31605_ACEOF
31606cat confdefs.h >>conftest.$ac_ext
31607cat >>conftest.$ac_ext <<_ACEOF
31608/* end confdefs.h. */
31609
31610 #include <stddef.h>
31611 #include <sys/statvfs.h>
31612
31613int
31614main ()
31615{
31616
31617 statvfs("/", NULL);
31618
31619 ;
31620 return 0;
31621}
31622_ACEOF
31623rm -f conftest.$ac_objext
31624if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 31625 (eval $ac_compile) 2>conftest.er1
a848cd7e 31626 ac_status=$?
ac1cb8d3
VS
31627 grep -v '^ *+' conftest.er1 >conftest.err
31628 rm -f conftest.er1
31629 cat conftest.err >&5
a848cd7e
SC
31630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31631 (exit $ac_status); } &&
07158944 31632 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31634 (eval $ac_try) 2>&5
31635 ac_status=$?
31636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31637 (exit $ac_status); }; } &&
31638 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
31639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31640 (eval $ac_try) 2>&5
31641 ac_status=$?
31642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31643 (exit $ac_status); }; }; then
31644 wx_cv_func_statvfs=yes
31645else
31646 echo "$as_me: failed program was:" >&5
31647sed 's/^/| /' conftest.$ac_ext >&5
31648
31649wx_cv_func_statvfs=no
31650
31651fi
ac1cb8d3 31652rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
31653
31654fi
31655echo "$as_me:$LINENO: result: $wx_cv_func_statvfs" >&5
31656echo "${ECHO_T}$wx_cv_func_statvfs" >&6
31657
31658 if test "$wx_cv_func_statvfs" = "yes"; then
31659
31660
31661 ac_ext=cc
31662ac_cpp='$CXXCPP $CPPFLAGS'
31663ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31664ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31665ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31666
31667
31668 echo "$as_me:$LINENO: checking for statvfs argument type" >&5
31669echo $ECHO_N "checking for statvfs argument type... $ECHO_C" >&6
31670if test "${wx_cv_type_statvfs_t+set}" = set; then
31671 echo $ECHO_N "(cached) $ECHO_C" >&6
31672else
31673 cat >conftest.$ac_ext <<_ACEOF
31674/* confdefs.h. */
31675_ACEOF
31676cat confdefs.h >>conftest.$ac_ext
31677cat >>conftest.$ac_ext <<_ACEOF
31678/* end confdefs.h. */
31679
31680 #include <sys/statvfs.h>
31681
31682int
31683main ()
31684{
31685
31686 long l;
31687 statvfs_t fs;
31688 statvfs("/", &fs);
31689 l = fs.f_bsize;
31690 l += fs.f_blocks;
31691 l += fs.f_bavail;
31692
31693 ;
31694 return 0;
31695}
31696_ACEOF
31697rm -f conftest.$ac_objext
31698if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 31699 (eval $ac_compile) 2>conftest.er1
a848cd7e 31700 ac_status=$?
ac1cb8d3
VS
31701 grep -v '^ *+' conftest.er1 >conftest.err
31702 rm -f conftest.er1
31703 cat conftest.err >&5
a848cd7e
SC
31704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31705 (exit $ac_status); } &&
07158944 31706 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31708 (eval $ac_try) 2>&5
31709 ac_status=$?
31710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31711 (exit $ac_status); }; } &&
31712 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
31713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31714 (eval $ac_try) 2>&5
31715 ac_status=$?
31716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31717 (exit $ac_status); }; }; then
31718 wx_cv_type_statvfs_t=statvfs_t
31719else
31720 echo "$as_me: failed program was:" >&5
31721sed 's/^/| /' conftest.$ac_ext >&5
31722
31723
31724 cat >conftest.$ac_ext <<_ACEOF
31725/* confdefs.h. */
31726_ACEOF
31727cat confdefs.h >>conftest.$ac_ext
31728cat >>conftest.$ac_ext <<_ACEOF
31729/* end confdefs.h. */
31730
31731 #include <sys/statvfs.h>
31732
31733int
31734main ()
31735{
31736
31737 long l;
31738 struct statvfs fs;
31739 statvfs("/", &fs);
31740 l = fs.f_bsize;
31741 l += fs.f_blocks;
31742 l += fs.f_bavail;
31743
31744 ;
31745 return 0;
31746}
31747_ACEOF
31748rm -f conftest.$ac_objext
31749if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 31750 (eval $ac_compile) 2>conftest.er1
a848cd7e 31751 ac_status=$?
ac1cb8d3
VS
31752 grep -v '^ *+' conftest.er1 >conftest.err
31753 rm -f conftest.er1
31754 cat conftest.err >&5
a848cd7e
SC
31755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31756 (exit $ac_status); } &&
07158944 31757 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31759 (eval $ac_try) 2>&5
31760 ac_status=$?
31761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31762 (exit $ac_status); }; } &&
31763 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
31764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31765 (eval $ac_try) 2>&5
31766 ac_status=$?
31767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31768 (exit $ac_status); }; }; then
31769 wx_cv_type_statvfs_t="struct statvfs"
31770else
31771 echo "$as_me: failed program was:" >&5
31772sed 's/^/| /' conftest.$ac_ext >&5
31773
31774wx_cv_type_statvfs_t="unknown"
31775
31776fi
ac1cb8d3 31777rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
31778
31779
31780fi
ac1cb8d3 31781rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
31782
31783fi
31784echo "$as_me:$LINENO: result: $wx_cv_type_statvfs_t" >&5
31785echo "${ECHO_T}$wx_cv_type_statvfs_t" >&6
31786
31787 ac_ext=c
31788ac_cpp='$CPP $CPPFLAGS'
31789ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31790ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31791ac_compiler_gnu=$ac_cv_c_compiler_gnu
31792
31793
31794 if test "$wx_cv_type_statvfs_t" != "unknown"; then
31795 cat >>confdefs.h <<\_ACEOF
31796#define HAVE_STATVFS 1
31797_ACEOF
31798
31799 fi
31800 else
31801 wx_cv_type_statvfs_t="unknown"
31802 fi
31803fi
31804
31805if test "$wx_cv_type_statvfs_t" != "unknown"; then
31806 cat >>confdefs.h <<_ACEOF
31807#define WX_STATFS_T $wx_cv_type_statvfs_t
31808_ACEOF
31809
31810else
31811 { echo "$as_me:$LINENO: WARNING: wxGetDiskSpace() function won't work without statfs()" >&5
31812echo "$as_me: WARNING: wxGetDiskSpace() function won't work without statfs()" >&2;}
31813fi
31814
31815if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
31816
31817
31818for ac_func in fcntl flock
31819do
31820as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31821echo "$as_me:$LINENO: checking for $ac_func" >&5
31822echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31823if eval "test \"\${$as_ac_var+set}\" = set"; then
31824 echo $ECHO_N "(cached) $ECHO_C" >&6
31825else
31826 cat >conftest.$ac_ext <<_ACEOF
31827/* confdefs.h. */
31828_ACEOF
31829cat confdefs.h >>conftest.$ac_ext
31830cat >>conftest.$ac_ext <<_ACEOF
31831/* end confdefs.h. */
ac1cb8d3
VS
31832/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31833 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31834#define $ac_func innocuous_$ac_func
31835
a848cd7e
SC
31836/* System header to define __stub macros and hopefully few prototypes,
31837 which can conflict with char $ac_func (); below.
31838 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31839 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 31840
a848cd7e
SC
31841#ifdef __STDC__
31842# include <limits.h>
31843#else
31844# include <assert.h>
31845#endif
ac1cb8d3
VS
31846
31847#undef $ac_func
31848
a848cd7e
SC
31849/* Override any gcc2 internal prototype to avoid an error. */
31850#ifdef __cplusplus
31851extern "C"
31852{
31853#endif
31854/* We use char because int might match the return type of a gcc2
31855 builtin and then its argument prototype would still apply. */
31856char $ac_func ();
31857/* The GNU C library defines this for functions which it implements
31858 to always fail with ENOSYS. Some functions are actually named
31859 something starting with __ and the normal name is an alias. */
31860#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31861choke me
31862#else
31863char (*f) () = $ac_func;
31864#endif
31865#ifdef __cplusplus
31866}
31867#endif
31868
31869int
31870main ()
31871{
31872return f != $ac_func;
31873 ;
31874 return 0;
31875}
31876_ACEOF
31877rm -f conftest.$ac_objext conftest$ac_exeext
31878if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31879 (eval $ac_link) 2>conftest.er1
a848cd7e 31880 ac_status=$?
ac1cb8d3
VS
31881 grep -v '^ *+' conftest.er1 >conftest.err
31882 rm -f conftest.er1
31883 cat conftest.err >&5
a848cd7e
SC
31884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31885 (exit $ac_status); } &&
07158944 31886 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31888 (eval $ac_try) 2>&5
31889 ac_status=$?
31890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31891 (exit $ac_status); }; } &&
31892 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31894 (eval $ac_try) 2>&5
31895 ac_status=$?
31896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31897 (exit $ac_status); }; }; then
31898 eval "$as_ac_var=yes"
31899else
31900 echo "$as_me: failed program was:" >&5
31901sed 's/^/| /' conftest.$ac_ext >&5
31902
31903eval "$as_ac_var=no"
31904fi
ac1cb8d3
VS
31905rm -f conftest.err conftest.$ac_objext \
31906 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31907fi
31908echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31909echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31910if test `eval echo '${'$as_ac_var'}'` = yes; then
31911 cat >>confdefs.h <<_ACEOF
31912#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31913_ACEOF
31914 break
31915fi
31916done
31917
31918
31919 if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then
31920 { echo "$as_me:$LINENO: WARNING: wxSingleInstanceChecker not available" >&5
31921echo "$as_me: WARNING: wxSingleInstanceChecker not available" >&2;}
31922 wxUSE_SNGLINST_CHECKER=no
31923 fi
31924fi
31925
31926
31927for ac_func in timegm
31928do
31929as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31930echo "$as_me:$LINENO: checking for $ac_func" >&5
31931echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31932if eval "test \"\${$as_ac_var+set}\" = set"; then
31933 echo $ECHO_N "(cached) $ECHO_C" >&6
31934else
31935 cat >conftest.$ac_ext <<_ACEOF
31936/* confdefs.h. */
31937_ACEOF
31938cat confdefs.h >>conftest.$ac_ext
31939cat >>conftest.$ac_ext <<_ACEOF
31940/* end confdefs.h. */
ac1cb8d3
VS
31941/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31942 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31943#define $ac_func innocuous_$ac_func
31944
a848cd7e
SC
31945/* System header to define __stub macros and hopefully few prototypes,
31946 which can conflict with char $ac_func (); below.
31947 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31948 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 31949
a848cd7e
SC
31950#ifdef __STDC__
31951# include <limits.h>
31952#else
31953# include <assert.h>
31954#endif
ac1cb8d3
VS
31955
31956#undef $ac_func
31957
a848cd7e
SC
31958/* Override any gcc2 internal prototype to avoid an error. */
31959#ifdef __cplusplus
31960extern "C"
31961{
31962#endif
31963/* We use char because int might match the return type of a gcc2
31964 builtin and then its argument prototype would still apply. */
31965char $ac_func ();
31966/* The GNU C library defines this for functions which it implements
31967 to always fail with ENOSYS. Some functions are actually named
31968 something starting with __ and the normal name is an alias. */
31969#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31970choke me
31971#else
31972char (*f) () = $ac_func;
31973#endif
31974#ifdef __cplusplus
31975}
31976#endif
31977
31978int
31979main ()
31980{
31981return f != $ac_func;
31982 ;
31983 return 0;
31984}
31985_ACEOF
31986rm -f conftest.$ac_objext conftest$ac_exeext
31987if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31988 (eval $ac_link) 2>conftest.er1
a848cd7e 31989 ac_status=$?
ac1cb8d3
VS
31990 grep -v '^ *+' conftest.er1 >conftest.err
31991 rm -f conftest.er1
31992 cat conftest.err >&5
a848cd7e
SC
31993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31994 (exit $ac_status); } &&
07158944 31995 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31997 (eval $ac_try) 2>&5
31998 ac_status=$?
31999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32000 (exit $ac_status); }; } &&
32001 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32003 (eval $ac_try) 2>&5
32004 ac_status=$?
32005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32006 (exit $ac_status); }; }; then
32007 eval "$as_ac_var=yes"
32008else
32009 echo "$as_me: failed program was:" >&5
32010sed 's/^/| /' conftest.$ac_ext >&5
32011
32012eval "$as_ac_var=no"
32013fi
ac1cb8d3
VS
32014rm -f conftest.err conftest.$ac_objext \
32015 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32016fi
32017echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32018echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32019if test `eval echo '${'$as_ac_var'}'` = yes; then
32020 cat >>confdefs.h <<_ACEOF
32021#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32022_ACEOF
32023
32024fi
32025done
32026
32027
32028
32029
32030for ac_func in putenv setenv
32031do
32032as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32033echo "$as_me:$LINENO: checking for $ac_func" >&5
32034echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32035if eval "test \"\${$as_ac_var+set}\" = set"; then
32036 echo $ECHO_N "(cached) $ECHO_C" >&6
32037else
32038 cat >conftest.$ac_ext <<_ACEOF
32039/* confdefs.h. */
32040_ACEOF
32041cat confdefs.h >>conftest.$ac_ext
32042cat >>conftest.$ac_ext <<_ACEOF
32043/* end confdefs.h. */
ac1cb8d3
VS
32044/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32045 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32046#define $ac_func innocuous_$ac_func
32047
a848cd7e
SC
32048/* System header to define __stub macros and hopefully few prototypes,
32049 which can conflict with char $ac_func (); below.
32050 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32051 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 32052
a848cd7e
SC
32053#ifdef __STDC__
32054# include <limits.h>
32055#else
32056# include <assert.h>
32057#endif
ac1cb8d3
VS
32058
32059#undef $ac_func
32060
a848cd7e
SC
32061/* Override any gcc2 internal prototype to avoid an error. */
32062#ifdef __cplusplus
32063extern "C"
32064{
32065#endif
32066/* We use char because int might match the return type of a gcc2
32067 builtin and then its argument prototype would still apply. */
32068char $ac_func ();
32069/* The GNU C library defines this for functions which it implements
32070 to always fail with ENOSYS. Some functions are actually named
32071 something starting with __ and the normal name is an alias. */
32072#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32073choke me
32074#else
32075char (*f) () = $ac_func;
32076#endif
32077#ifdef __cplusplus
32078}
32079#endif
32080
32081int
32082main ()
32083{
32084return f != $ac_func;
32085 ;
32086 return 0;
32087}
32088_ACEOF
32089rm -f conftest.$ac_objext conftest$ac_exeext
32090if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32091 (eval $ac_link) 2>conftest.er1
a848cd7e 32092 ac_status=$?
ac1cb8d3
VS
32093 grep -v '^ *+' conftest.er1 >conftest.err
32094 rm -f conftest.er1
32095 cat conftest.err >&5
a848cd7e
SC
32096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32097 (exit $ac_status); } &&
07158944 32098 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32100 (eval $ac_try) 2>&5
32101 ac_status=$?
32102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32103 (exit $ac_status); }; } &&
32104 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32106 (eval $ac_try) 2>&5
32107 ac_status=$?
32108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32109 (exit $ac_status); }; }; then
32110 eval "$as_ac_var=yes"
32111else
32112 echo "$as_me: failed program was:" >&5
32113sed 's/^/| /' conftest.$ac_ext >&5
32114
32115eval "$as_ac_var=no"
32116fi
ac1cb8d3
VS
32117rm -f conftest.err conftest.$ac_objext \
32118 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32119fi
32120echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32121echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32122if test `eval echo '${'$as_ac_var'}'` = yes; then
32123 cat >>confdefs.h <<_ACEOF
32124#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32125_ACEOF
32126 break
32127fi
32128done
32129
32130
32131HAVE_SOME_SLEEP_FUNC=0
32132if test "$USE_BEOS" = 1; then
32133 cat >>confdefs.h <<\_ACEOF
32134#define HAVE_SLEEP 1
32135_ACEOF
32136
32137 HAVE_SOME_SLEEP_FUNC=1
32138fi
32139
32140if test "$USE_DARWIN" = 1; then
32141 cat >>confdefs.h <<\_ACEOF
32142#define HAVE_USLEEP 1
32143_ACEOF
32144
32145 HAVE_SOME_SLEEP_FUNC=1
32146fi
32147
32148if test "$HAVE_SOME_SLEEP_FUNC" != 1; then
32149 POSIX4_LINK=
32150
32151for ac_func in nanosleep
32152do
32153as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32154echo "$as_me:$LINENO: checking for $ac_func" >&5
32155echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32156if eval "test \"\${$as_ac_var+set}\" = set"; then
32157 echo $ECHO_N "(cached) $ECHO_C" >&6
32158else
32159 cat >conftest.$ac_ext <<_ACEOF
32160/* confdefs.h. */
32161_ACEOF
32162cat confdefs.h >>conftest.$ac_ext
32163cat >>conftest.$ac_ext <<_ACEOF
32164/* end confdefs.h. */
ac1cb8d3
VS
32165/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32166 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32167#define $ac_func innocuous_$ac_func
32168
a848cd7e
SC
32169/* System header to define __stub macros and hopefully few prototypes,
32170 which can conflict with char $ac_func (); below.
32171 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32172 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 32173
a848cd7e
SC
32174#ifdef __STDC__
32175# include <limits.h>
32176#else
32177# include <assert.h>
32178#endif
ac1cb8d3
VS
32179
32180#undef $ac_func
32181
a848cd7e
SC
32182/* Override any gcc2 internal prototype to avoid an error. */
32183#ifdef __cplusplus
32184extern "C"
32185{
32186#endif
32187/* We use char because int might match the return type of a gcc2
32188 builtin and then its argument prototype would still apply. */
32189char $ac_func ();
32190/* The GNU C library defines this for functions which it implements
32191 to always fail with ENOSYS. Some functions are actually named
32192 something starting with __ and the normal name is an alias. */
32193#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32194choke me
32195#else
32196char (*f) () = $ac_func;
32197#endif
32198#ifdef __cplusplus
32199}
32200#endif
32201
32202int
32203main ()
32204{
32205return f != $ac_func;
32206 ;
32207 return 0;
32208}
32209_ACEOF
32210rm -f conftest.$ac_objext conftest$ac_exeext
32211if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32212 (eval $ac_link) 2>conftest.er1
a848cd7e 32213 ac_status=$?
ac1cb8d3
VS
32214 grep -v '^ *+' conftest.er1 >conftest.err
32215 rm -f conftest.er1
32216 cat conftest.err >&5
a848cd7e
SC
32217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32218 (exit $ac_status); } &&
07158944 32219 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32221 (eval $ac_try) 2>&5
32222 ac_status=$?
32223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32224 (exit $ac_status); }; } &&
32225 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32227 (eval $ac_try) 2>&5
32228 ac_status=$?
32229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32230 (exit $ac_status); }; }; then
32231 eval "$as_ac_var=yes"
32232else
32233 echo "$as_me: failed program was:" >&5
32234sed 's/^/| /' conftest.$ac_ext >&5
32235
32236eval "$as_ac_var=no"
32237fi
ac1cb8d3
VS
32238rm -f conftest.err conftest.$ac_objext \
32239 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32240fi
32241echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32242echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32243if test `eval echo '${'$as_ac_var'}'` = yes; then
32244 cat >>confdefs.h <<_ACEOF
32245#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32246_ACEOF
32247 cat >>confdefs.h <<\_ACEOF
32248#define HAVE_NANOSLEEP 1
32249_ACEOF
32250
32251else
32252
32253 echo "$as_me:$LINENO: checking for nanosleep in -lposix4" >&5
32254echo $ECHO_N "checking for nanosleep in -lposix4... $ECHO_C" >&6
32255if test "${ac_cv_lib_posix4_nanosleep+set}" = set; then
32256 echo $ECHO_N "(cached) $ECHO_C" >&6
32257else
32258 ac_check_lib_save_LIBS=$LIBS
32259LIBS="-lposix4 $LIBS"
32260cat >conftest.$ac_ext <<_ACEOF
32261/* confdefs.h. */
32262_ACEOF
32263cat confdefs.h >>conftest.$ac_ext
32264cat >>conftest.$ac_ext <<_ACEOF
32265/* end confdefs.h. */
32266
32267/* Override any gcc2 internal prototype to avoid an error. */
32268#ifdef __cplusplus
32269extern "C"
32270#endif
32271/* We use char because int might match the return type of a gcc2
32272 builtin and then its argument prototype would still apply. */
32273char nanosleep ();
32274int
32275main ()
32276{
32277nanosleep ();
32278 ;
32279 return 0;
32280}
32281_ACEOF
32282rm -f conftest.$ac_objext conftest$ac_exeext
32283if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32284 (eval $ac_link) 2>conftest.er1
a848cd7e 32285 ac_status=$?
ac1cb8d3
VS
32286 grep -v '^ *+' conftest.er1 >conftest.err
32287 rm -f conftest.er1
32288 cat conftest.err >&5
a848cd7e
SC
32289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32290 (exit $ac_status); } &&
07158944 32291 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32293 (eval $ac_try) 2>&5
32294 ac_status=$?
32295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32296 (exit $ac_status); }; } &&
32297 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32299 (eval $ac_try) 2>&5
32300 ac_status=$?
32301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32302 (exit $ac_status); }; }; then
32303 ac_cv_lib_posix4_nanosleep=yes
32304else
32305 echo "$as_me: failed program was:" >&5
32306sed 's/^/| /' conftest.$ac_ext >&5
32307
32308ac_cv_lib_posix4_nanosleep=no
32309fi
ac1cb8d3
VS
32310rm -f conftest.err conftest.$ac_objext \
32311 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32312LIBS=$ac_check_lib_save_LIBS
32313fi
32314echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_nanosleep" >&5
32315echo "${ECHO_T}$ac_cv_lib_posix4_nanosleep" >&6
32316if test $ac_cv_lib_posix4_nanosleep = yes; then
32317
32318 cat >>confdefs.h <<\_ACEOF
32319#define HAVE_NANOSLEEP 1
32320_ACEOF
32321
32322 POSIX4_LINK=" -lposix4"
32323
32324else
32325
32326
32327for ac_func in usleep
32328do
32329as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32330echo "$as_me:$LINENO: checking for $ac_func" >&5
32331echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32332if eval "test \"\${$as_ac_var+set}\" = set"; then
32333 echo $ECHO_N "(cached) $ECHO_C" >&6
32334else
32335 cat >conftest.$ac_ext <<_ACEOF
32336/* confdefs.h. */
32337_ACEOF
32338cat confdefs.h >>conftest.$ac_ext
32339cat >>conftest.$ac_ext <<_ACEOF
32340/* end confdefs.h. */
ac1cb8d3
VS
32341/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32342 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32343#define $ac_func innocuous_$ac_func
32344
a848cd7e
SC
32345/* System header to define __stub macros and hopefully few prototypes,
32346 which can conflict with char $ac_func (); below.
32347 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32348 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 32349
a848cd7e
SC
32350#ifdef __STDC__
32351# include <limits.h>
32352#else
32353# include <assert.h>
32354#endif
ac1cb8d3
VS
32355
32356#undef $ac_func
32357
a848cd7e
SC
32358/* Override any gcc2 internal prototype to avoid an error. */
32359#ifdef __cplusplus
32360extern "C"
32361{
32362#endif
32363/* We use char because int might match the return type of a gcc2
32364 builtin and then its argument prototype would still apply. */
32365char $ac_func ();
32366/* The GNU C library defines this for functions which it implements
32367 to always fail with ENOSYS. Some functions are actually named
32368 something starting with __ and the normal name is an alias. */
32369#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32370choke me
32371#else
32372char (*f) () = $ac_func;
32373#endif
32374#ifdef __cplusplus
32375}
32376#endif
32377
32378int
32379main ()
32380{
32381return f != $ac_func;
32382 ;
32383 return 0;
32384}
32385_ACEOF
32386rm -f conftest.$ac_objext conftest$ac_exeext
32387if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32388 (eval $ac_link) 2>conftest.er1
a848cd7e 32389 ac_status=$?
ac1cb8d3
VS
32390 grep -v '^ *+' conftest.er1 >conftest.err
32391 rm -f conftest.er1
32392 cat conftest.err >&5
a848cd7e
SC
32393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32394 (exit $ac_status); } &&
07158944 32395 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32397 (eval $ac_try) 2>&5
32398 ac_status=$?
32399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32400 (exit $ac_status); }; } &&
32401 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32403 (eval $ac_try) 2>&5
32404 ac_status=$?
32405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32406 (exit $ac_status); }; }; then
32407 eval "$as_ac_var=yes"
32408else
32409 echo "$as_me: failed program was:" >&5
32410sed 's/^/| /' conftest.$ac_ext >&5
32411
32412eval "$as_ac_var=no"
32413fi
ac1cb8d3
VS
32414rm -f conftest.err conftest.$ac_objext \
32415 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32416fi
32417echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32418echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32419if test `eval echo '${'$as_ac_var'}'` = yes; then
32420 cat >>confdefs.h <<_ACEOF
32421#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32422_ACEOF
32423 cat >>confdefs.h <<\_ACEOF
32424#define HAVE_USLEEP 1
32425_ACEOF
32426
32427else
32428 { echo "$as_me:$LINENO: WARNING: wxSleep() function will not work" >&5
32429echo "$as_me: WARNING: wxSleep() function will not work" >&2;}
32430
32431fi
32432done
32433
32434
32435
32436fi
32437
32438
32439
32440fi
32441done
32442
32443fi
32444
32445
32446
32447for ac_func in uname gethostname
32448do
32449as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32450echo "$as_me:$LINENO: checking for $ac_func" >&5
32451echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32452if eval "test \"\${$as_ac_var+set}\" = set"; then
32453 echo $ECHO_N "(cached) $ECHO_C" >&6
32454else
32455 cat >conftest.$ac_ext <<_ACEOF
32456/* confdefs.h. */
32457_ACEOF
32458cat confdefs.h >>conftest.$ac_ext
32459cat >>conftest.$ac_ext <<_ACEOF
32460/* end confdefs.h. */
ac1cb8d3
VS
32461/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32462 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32463#define $ac_func innocuous_$ac_func
32464
a848cd7e
SC
32465/* System header to define __stub macros and hopefully few prototypes,
32466 which can conflict with char $ac_func (); below.
32467 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32468 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 32469
a848cd7e
SC
32470#ifdef __STDC__
32471# include <limits.h>
32472#else
32473# include <assert.h>
32474#endif
ac1cb8d3
VS
32475
32476#undef $ac_func
32477
a848cd7e
SC
32478/* Override any gcc2 internal prototype to avoid an error. */
32479#ifdef __cplusplus
32480extern "C"
32481{
32482#endif
32483/* We use char because int might match the return type of a gcc2
32484 builtin and then its argument prototype would still apply. */
32485char $ac_func ();
32486/* The GNU C library defines this for functions which it implements
32487 to always fail with ENOSYS. Some functions are actually named
32488 something starting with __ and the normal name is an alias. */
32489#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32490choke me
32491#else
32492char (*f) () = $ac_func;
32493#endif
32494#ifdef __cplusplus
32495}
32496#endif
32497
32498int
32499main ()
32500{
32501return f != $ac_func;
32502 ;
32503 return 0;
32504}
32505_ACEOF
32506rm -f conftest.$ac_objext conftest$ac_exeext
32507if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32508 (eval $ac_link) 2>conftest.er1
a848cd7e 32509 ac_status=$?
ac1cb8d3
VS
32510 grep -v '^ *+' conftest.er1 >conftest.err
32511 rm -f conftest.er1
32512 cat conftest.err >&5
a848cd7e
SC
32513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32514 (exit $ac_status); } &&
07158944 32515 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32517 (eval $ac_try) 2>&5
32518 ac_status=$?
32519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32520 (exit $ac_status); }; } &&
32521 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32523 (eval $ac_try) 2>&5
32524 ac_status=$?
32525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32526 (exit $ac_status); }; }; then
32527 eval "$as_ac_var=yes"
32528else
32529 echo "$as_me: failed program was:" >&5
32530sed 's/^/| /' conftest.$ac_ext >&5
32531
32532eval "$as_ac_var=no"
32533fi
ac1cb8d3
VS
32534rm -f conftest.err conftest.$ac_objext \
32535 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32536fi
32537echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32538echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32539if test `eval echo '${'$as_ac_var'}'` = yes; then
32540 cat >>confdefs.h <<_ACEOF
32541#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32542_ACEOF
32543 break
32544fi
32545done
32546
32547
32548
32549
32550ac_ext=cc
32551ac_cpp='$CXXCPP $CPPFLAGS'
32552ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32553ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32554ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32555
32556
32557
32558for ac_func in strtok_r
32559do
32560as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32561echo "$as_me:$LINENO: checking for $ac_func" >&5
32562echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32563if eval "test \"\${$as_ac_var+set}\" = set"; then
32564 echo $ECHO_N "(cached) $ECHO_C" >&6
32565else
32566 cat >conftest.$ac_ext <<_ACEOF
32567/* confdefs.h. */
32568_ACEOF
32569cat confdefs.h >>conftest.$ac_ext
32570cat >>conftest.$ac_ext <<_ACEOF
32571/* end confdefs.h. */
ac1cb8d3
VS
32572/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32573 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32574#define $ac_func innocuous_$ac_func
32575
a848cd7e
SC
32576/* System header to define __stub macros and hopefully few prototypes,
32577 which can conflict with char $ac_func (); below.
32578 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32579 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 32580
a848cd7e
SC
32581#ifdef __STDC__
32582# include <limits.h>
32583#else
32584# include <assert.h>
32585#endif
ac1cb8d3
VS
32586
32587#undef $ac_func
32588
a848cd7e
SC
32589/* Override any gcc2 internal prototype to avoid an error. */
32590#ifdef __cplusplus
32591extern "C"
32592{
32593#endif
32594/* We use char because int might match the return type of a gcc2
32595 builtin and then its argument prototype would still apply. */
32596char $ac_func ();
32597/* The GNU C library defines this for functions which it implements
32598 to always fail with ENOSYS. Some functions are actually named
32599 something starting with __ and the normal name is an alias. */
32600#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32601choke me
32602#else
32603char (*f) () = $ac_func;
32604#endif
32605#ifdef __cplusplus
32606}
32607#endif
32608
32609int
32610main ()
32611{
32612return f != $ac_func;
32613 ;
32614 return 0;
32615}
32616_ACEOF
32617rm -f conftest.$ac_objext conftest$ac_exeext
32618if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32619 (eval $ac_link) 2>conftest.er1
a848cd7e 32620 ac_status=$?
ac1cb8d3
VS
32621 grep -v '^ *+' conftest.er1 >conftest.err
32622 rm -f conftest.er1
32623 cat conftest.err >&5
a848cd7e
SC
32624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32625 (exit $ac_status); } &&
07158944 32626 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32628 (eval $ac_try) 2>&5
32629 ac_status=$?
32630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32631 (exit $ac_status); }; } &&
32632 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32634 (eval $ac_try) 2>&5
32635 ac_status=$?
32636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32637 (exit $ac_status); }; }; then
32638 eval "$as_ac_var=yes"
32639else
32640 echo "$as_me: failed program was:" >&5
32641sed 's/^/| /' conftest.$ac_ext >&5
32642
32643eval "$as_ac_var=no"
32644fi
ac1cb8d3
VS
32645rm -f conftest.err conftest.$ac_objext \
32646 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32647fi
32648echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32649echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32650if test `eval echo '${'$as_ac_var'}'` = yes; then
32651 cat >>confdefs.h <<_ACEOF
32652#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32653_ACEOF
32654
32655fi
32656done
32657
32658
32659ac_ext=c
32660ac_cpp='$CPP $CPPFLAGS'
32661ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32662ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32663ac_compiler_gnu=$ac_cv_c_compiler_gnu
32664
32665
32666INET_LINK=
32667
32668for ac_func in inet_addr
32669do
32670as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32671echo "$as_me:$LINENO: checking for $ac_func" >&5
32672echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32673if eval "test \"\${$as_ac_var+set}\" = set"; then
32674 echo $ECHO_N "(cached) $ECHO_C" >&6
32675else
32676 cat >conftest.$ac_ext <<_ACEOF
32677/* confdefs.h. */
32678_ACEOF
32679cat confdefs.h >>conftest.$ac_ext
32680cat >>conftest.$ac_ext <<_ACEOF
32681/* end confdefs.h. */
ac1cb8d3
VS
32682/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32683 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32684#define $ac_func innocuous_$ac_func
32685
a848cd7e
SC
32686/* System header to define __stub macros and hopefully few prototypes,
32687 which can conflict with char $ac_func (); below.
32688 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32689 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 32690
a848cd7e
SC
32691#ifdef __STDC__
32692# include <limits.h>
32693#else
32694# include <assert.h>
32695#endif
ac1cb8d3
VS
32696
32697#undef $ac_func
32698
a848cd7e
SC
32699/* Override any gcc2 internal prototype to avoid an error. */
32700#ifdef __cplusplus
32701extern "C"
32702{
32703#endif
32704/* We use char because int might match the return type of a gcc2
32705 builtin and then its argument prototype would still apply. */
32706char $ac_func ();
32707/* The GNU C library defines this for functions which it implements
32708 to always fail with ENOSYS. Some functions are actually named
32709 something starting with __ and the normal name is an alias. */
32710#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32711choke me
32712#else
32713char (*f) () = $ac_func;
32714#endif
32715#ifdef __cplusplus
32716}
32717#endif
32718
32719int
32720main ()
32721{
32722return f != $ac_func;
32723 ;
32724 return 0;
32725}
32726_ACEOF
32727rm -f conftest.$ac_objext conftest$ac_exeext
32728if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32729 (eval $ac_link) 2>conftest.er1
a848cd7e 32730 ac_status=$?
ac1cb8d3
VS
32731 grep -v '^ *+' conftest.er1 >conftest.err
32732 rm -f conftest.er1
32733 cat conftest.err >&5
a848cd7e
SC
32734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32735 (exit $ac_status); } &&
07158944 32736 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32738 (eval $ac_try) 2>&5
32739 ac_status=$?
32740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32741 (exit $ac_status); }; } &&
32742 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32744 (eval $ac_try) 2>&5
32745 ac_status=$?
32746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32747 (exit $ac_status); }; }; then
32748 eval "$as_ac_var=yes"
32749else
32750 echo "$as_me: failed program was:" >&5
32751sed 's/^/| /' conftest.$ac_ext >&5
32752
32753eval "$as_ac_var=no"
32754fi
ac1cb8d3
VS
32755rm -f conftest.err conftest.$ac_objext \
32756 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32757fi
32758echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32759echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32760if test `eval echo '${'$as_ac_var'}'` = yes; then
32761 cat >>confdefs.h <<_ACEOF
32762#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32763_ACEOF
32764 cat >>confdefs.h <<\_ACEOF
32765#define HAVE_INET_ADDR 1
32766_ACEOF
32767
32768else
32769
32770 echo "$as_me:$LINENO: checking for inet_addr in -lnsl" >&5
32771echo $ECHO_N "checking for inet_addr in -lnsl... $ECHO_C" >&6
32772if test "${ac_cv_lib_nsl_inet_addr+set}" = set; then
32773 echo $ECHO_N "(cached) $ECHO_C" >&6
32774else
32775 ac_check_lib_save_LIBS=$LIBS
32776LIBS="-lnsl $LIBS"
32777cat >conftest.$ac_ext <<_ACEOF
32778/* confdefs.h. */
32779_ACEOF
32780cat confdefs.h >>conftest.$ac_ext
32781cat >>conftest.$ac_ext <<_ACEOF
32782/* end confdefs.h. */
32783
32784/* Override any gcc2 internal prototype to avoid an error. */
32785#ifdef __cplusplus
32786extern "C"
32787#endif
32788/* We use char because int might match the return type of a gcc2
32789 builtin and then its argument prototype would still apply. */
32790char inet_addr ();
32791int
32792main ()
32793{
32794inet_addr ();
32795 ;
32796 return 0;
32797}
32798_ACEOF
32799rm -f conftest.$ac_objext conftest$ac_exeext
32800if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32801 (eval $ac_link) 2>conftest.er1
a848cd7e 32802 ac_status=$?
ac1cb8d3
VS
32803 grep -v '^ *+' conftest.er1 >conftest.err
32804 rm -f conftest.er1
32805 cat conftest.err >&5
a848cd7e
SC
32806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32807 (exit $ac_status); } &&
07158944 32808 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32810 (eval $ac_try) 2>&5
32811 ac_status=$?
32812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32813 (exit $ac_status); }; } &&
32814 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32816 (eval $ac_try) 2>&5
32817 ac_status=$?
32818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32819 (exit $ac_status); }; }; then
32820 ac_cv_lib_nsl_inet_addr=yes
32821else
32822 echo "$as_me: failed program was:" >&5
32823sed 's/^/| /' conftest.$ac_ext >&5
32824
32825ac_cv_lib_nsl_inet_addr=no
32826fi
ac1cb8d3
VS
32827rm -f conftest.err conftest.$ac_objext \
32828 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32829LIBS=$ac_check_lib_save_LIBS
32830fi
32831echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_inet_addr" >&5
32832echo "${ECHO_T}$ac_cv_lib_nsl_inet_addr" >&6
32833if test $ac_cv_lib_nsl_inet_addr = yes; then
32834 INET_LINK="nsl"
32835else
32836
32837 echo "$as_me:$LINENO: checking for inet_addr in -lresolv" >&5
32838echo $ECHO_N "checking for inet_addr in -lresolv... $ECHO_C" >&6
32839if test "${ac_cv_lib_resolv_inet_addr+set}" = set; then
32840 echo $ECHO_N "(cached) $ECHO_C" >&6
32841else
32842 ac_check_lib_save_LIBS=$LIBS
32843LIBS="-lresolv $LIBS"
32844cat >conftest.$ac_ext <<_ACEOF
32845/* confdefs.h. */
32846_ACEOF
32847cat confdefs.h >>conftest.$ac_ext
32848cat >>conftest.$ac_ext <<_ACEOF
32849/* end confdefs.h. */
32850
32851/* Override any gcc2 internal prototype to avoid an error. */
32852#ifdef __cplusplus
32853extern "C"
32854#endif
32855/* We use char because int might match the return type of a gcc2
32856 builtin and then its argument prototype would still apply. */
32857char inet_addr ();
32858int
32859main ()
32860{
32861inet_addr ();
32862 ;
32863 return 0;
32864}
32865_ACEOF
32866rm -f conftest.$ac_objext conftest$ac_exeext
32867if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32868 (eval $ac_link) 2>conftest.er1
a848cd7e 32869 ac_status=$?
ac1cb8d3
VS
32870 grep -v '^ *+' conftest.er1 >conftest.err
32871 rm -f conftest.er1
32872 cat conftest.err >&5
a848cd7e
SC
32873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32874 (exit $ac_status); } &&
07158944 32875 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32877 (eval $ac_try) 2>&5
32878 ac_status=$?
32879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32880 (exit $ac_status); }; } &&
32881 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32883 (eval $ac_try) 2>&5
32884 ac_status=$?
32885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32886 (exit $ac_status); }; }; then
32887 ac_cv_lib_resolv_inet_addr=yes
32888else
32889 echo "$as_me: failed program was:" >&5
32890sed 's/^/| /' conftest.$ac_ext >&5
32891
32892ac_cv_lib_resolv_inet_addr=no
32893fi
ac1cb8d3
VS
32894rm -f conftest.err conftest.$ac_objext \
32895 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32896LIBS=$ac_check_lib_save_LIBS
32897fi
32898echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_addr" >&5
32899echo "${ECHO_T}$ac_cv_lib_resolv_inet_addr" >&6
32900if test $ac_cv_lib_resolv_inet_addr = yes; then
32901 INET_LINK="resolv"
32902else
32903
32904 echo "$as_me:$LINENO: checking for inet_addr in -lsocket" >&5
32905echo $ECHO_N "checking for inet_addr in -lsocket... $ECHO_C" >&6
32906if test "${ac_cv_lib_socket_inet_addr+set}" = set; then
32907 echo $ECHO_N "(cached) $ECHO_C" >&6
32908else
32909 ac_check_lib_save_LIBS=$LIBS
32910LIBS="-lsocket $LIBS"
32911cat >conftest.$ac_ext <<_ACEOF
32912/* confdefs.h. */
32913_ACEOF
32914cat confdefs.h >>conftest.$ac_ext
32915cat >>conftest.$ac_ext <<_ACEOF
32916/* end confdefs.h. */
32917
32918/* Override any gcc2 internal prototype to avoid an error. */
32919#ifdef __cplusplus
32920extern "C"
32921#endif
32922/* We use char because int might match the return type of a gcc2
32923 builtin and then its argument prototype would still apply. */
32924char inet_addr ();
32925int
32926main ()
32927{
32928inet_addr ();
32929 ;
32930 return 0;
32931}
32932_ACEOF
32933rm -f conftest.$ac_objext conftest$ac_exeext
32934if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32935 (eval $ac_link) 2>conftest.er1
a848cd7e 32936 ac_status=$?
ac1cb8d3
VS
32937 grep -v '^ *+' conftest.er1 >conftest.err
32938 rm -f conftest.er1
32939 cat conftest.err >&5
a848cd7e
SC
32940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32941 (exit $ac_status); } &&
07158944 32942 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32944 (eval $ac_try) 2>&5
32945 ac_status=$?
32946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32947 (exit $ac_status); }; } &&
32948 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32950 (eval $ac_try) 2>&5
32951 ac_status=$?
32952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32953 (exit $ac_status); }; }; then
32954 ac_cv_lib_socket_inet_addr=yes
32955else
32956 echo "$as_me: failed program was:" >&5
32957sed 's/^/| /' conftest.$ac_ext >&5
32958
32959ac_cv_lib_socket_inet_addr=no
32960fi
ac1cb8d3
VS
32961rm -f conftest.err conftest.$ac_objext \
32962 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32963LIBS=$ac_check_lib_save_LIBS
32964fi
32965echo "$as_me:$LINENO: result: $ac_cv_lib_socket_inet_addr" >&5
32966echo "${ECHO_T}$ac_cv_lib_socket_inet_addr" >&6
32967if test $ac_cv_lib_socket_inet_addr = yes; then
32968 INET_LINK="socket"
32969
32970fi
32971
32972
32973
32974fi
32975
32976
32977
32978fi
32979
32980
32981
32982fi
32983done
32984
32985
32986
32987for ac_func in inet_aton
32988do
32989as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32990echo "$as_me:$LINENO: checking for $ac_func" >&5
32991echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32992if eval "test \"\${$as_ac_var+set}\" = set"; then
32993 echo $ECHO_N "(cached) $ECHO_C" >&6
32994else
32995 cat >conftest.$ac_ext <<_ACEOF
32996/* confdefs.h. */
32997_ACEOF
32998cat confdefs.h >>conftest.$ac_ext
32999cat >>conftest.$ac_ext <<_ACEOF
33000/* end confdefs.h. */
ac1cb8d3
VS
33001/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33002 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33003#define $ac_func innocuous_$ac_func
33004
a848cd7e
SC
33005/* System header to define __stub macros and hopefully few prototypes,
33006 which can conflict with char $ac_func (); below.
33007 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33008 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 33009
a848cd7e
SC
33010#ifdef __STDC__
33011# include <limits.h>
33012#else
33013# include <assert.h>
33014#endif
ac1cb8d3
VS
33015
33016#undef $ac_func
33017
a848cd7e
SC
33018/* Override any gcc2 internal prototype to avoid an error. */
33019#ifdef __cplusplus
33020extern "C"
33021{
33022#endif
33023/* We use char because int might match the return type of a gcc2
33024 builtin and then its argument prototype would still apply. */
33025char $ac_func ();
33026/* The GNU C library defines this for functions which it implements
33027 to always fail with ENOSYS. Some functions are actually named
33028 something starting with __ and the normal name is an alias. */
33029#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33030choke me
33031#else
33032char (*f) () = $ac_func;
33033#endif
33034#ifdef __cplusplus
33035}
33036#endif
33037
33038int
33039main ()
33040{
33041return f != $ac_func;
33042 ;
33043 return 0;
33044}
33045_ACEOF
33046rm -f conftest.$ac_objext conftest$ac_exeext
33047if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33048 (eval $ac_link) 2>conftest.er1
a848cd7e 33049 ac_status=$?
ac1cb8d3
VS
33050 grep -v '^ *+' conftest.er1 >conftest.err
33051 rm -f conftest.er1
33052 cat conftest.err >&5
a848cd7e
SC
33053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33054 (exit $ac_status); } &&
07158944 33055 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33057 (eval $ac_try) 2>&5
33058 ac_status=$?
33059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33060 (exit $ac_status); }; } &&
33061 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33063 (eval $ac_try) 2>&5
33064 ac_status=$?
33065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33066 (exit $ac_status); }; }; then
33067 eval "$as_ac_var=yes"
33068else
33069 echo "$as_me: failed program was:" >&5
33070sed 's/^/| /' conftest.$ac_ext >&5
33071
33072eval "$as_ac_var=no"
33073fi
ac1cb8d3
VS
33074rm -f conftest.err conftest.$ac_objext \
33075 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33076fi
33077echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33078echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33079if test `eval echo '${'$as_ac_var'}'` = yes; then
33080 cat >>confdefs.h <<_ACEOF
33081#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33082_ACEOF
33083 cat >>confdefs.h <<\_ACEOF
33084#define HAVE_INET_ATON 1
33085_ACEOF
33086
33087else
33088
33089 as_ac_Lib=`echo "ac_cv_lib_$INET_LINK''_inet_aton" | $as_tr_sh`
33090echo "$as_me:$LINENO: checking for inet_aton in -l$INET_LINK" >&5
33091echo $ECHO_N "checking for inet_aton in -l$INET_LINK... $ECHO_C" >&6
33092if eval "test \"\${$as_ac_Lib+set}\" = set"; then
33093 echo $ECHO_N "(cached) $ECHO_C" >&6
33094else
33095 ac_check_lib_save_LIBS=$LIBS
33096LIBS="-l$INET_LINK $LIBS"
33097cat >conftest.$ac_ext <<_ACEOF
33098/* confdefs.h. */
33099_ACEOF
33100cat confdefs.h >>conftest.$ac_ext
33101cat >>conftest.$ac_ext <<_ACEOF
33102/* end confdefs.h. */
33103
33104/* Override any gcc2 internal prototype to avoid an error. */
33105#ifdef __cplusplus
33106extern "C"
33107#endif
33108/* We use char because int might match the return type of a gcc2
33109 builtin and then its argument prototype would still apply. */
33110char inet_aton ();
33111int
33112main ()
33113{
33114inet_aton ();
33115 ;
33116 return 0;
33117}
33118_ACEOF
33119rm -f conftest.$ac_objext conftest$ac_exeext
33120if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33121 (eval $ac_link) 2>conftest.er1
a848cd7e 33122 ac_status=$?
ac1cb8d3
VS
33123 grep -v '^ *+' conftest.er1 >conftest.err
33124 rm -f conftest.er1
33125 cat conftest.err >&5
a848cd7e
SC
33126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33127 (exit $ac_status); } &&
07158944 33128 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33130 (eval $ac_try) 2>&5
33131 ac_status=$?
33132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33133 (exit $ac_status); }; } &&
33134 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33136 (eval $ac_try) 2>&5
33137 ac_status=$?
33138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33139 (exit $ac_status); }; }; then
33140 eval "$as_ac_Lib=yes"
33141else
33142 echo "$as_me: failed program was:" >&5
33143sed 's/^/| /' conftest.$ac_ext >&5
33144
33145eval "$as_ac_Lib=no"
33146fi
ac1cb8d3
VS
33147rm -f conftest.err conftest.$ac_objext \
33148 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33149LIBS=$ac_check_lib_save_LIBS
33150fi
33151echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
33152echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
33153if test `eval echo '${'$as_ac_Lib'}'` = yes; then
33154 cat >>confdefs.h <<\_ACEOF
33155#define HAVE_INET_ATON 1
33156_ACEOF
33157
33158fi
33159
33160
33161fi
33162done
33163
33164
33165if test "x$INET_LINK" != "x"; then
33166 cat >>confdefs.h <<\_ACEOF
33167#define HAVE_INET_ADDR 1
33168_ACEOF
33169
33170 INET_LINK=" -l$INET_LINK"
33171fi
33172
33173fi
33174
33175
33176
33177EXTRALIBS_ESD=
33178echo "$as_me:$LINENO: checking for esd_close in -lesd" >&5
33179echo $ECHO_N "checking for esd_close in -lesd... $ECHO_C" >&6
33180if test "${ac_cv_lib_esd_esd_close+set}" = set; then
33181 echo $ECHO_N "(cached) $ECHO_C" >&6
33182else
33183 ac_check_lib_save_LIBS=$LIBS
33184LIBS="-lesd $LIBS"
33185cat >conftest.$ac_ext <<_ACEOF
33186/* confdefs.h. */
33187_ACEOF
33188cat confdefs.h >>conftest.$ac_ext
33189cat >>conftest.$ac_ext <<_ACEOF
33190/* end confdefs.h. */
33191
33192/* Override any gcc2 internal prototype to avoid an error. */
33193#ifdef __cplusplus
33194extern "C"
33195#endif
33196/* We use char because int might match the return type of a gcc2
33197 builtin and then its argument prototype would still apply. */
33198char esd_close ();
33199int
33200main ()
33201{
33202esd_close ();
33203 ;
33204 return 0;
33205}
33206_ACEOF
33207rm -f conftest.$ac_objext conftest$ac_exeext
33208if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33209 (eval $ac_link) 2>conftest.er1
a848cd7e 33210 ac_status=$?
ac1cb8d3
VS
33211 grep -v '^ *+' conftest.er1 >conftest.err
33212 rm -f conftest.er1
33213 cat conftest.err >&5
a848cd7e
SC
33214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33215 (exit $ac_status); } &&
07158944 33216 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33218 (eval $ac_try) 2>&5
33219 ac_status=$?
33220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33221 (exit $ac_status); }; } &&
33222 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33224 (eval $ac_try) 2>&5
33225 ac_status=$?
33226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33227 (exit $ac_status); }; }; then
33228 ac_cv_lib_esd_esd_close=yes
33229else
33230 echo "$as_me: failed program was:" >&5
33231sed 's/^/| /' conftest.$ac_ext >&5
33232
33233ac_cv_lib_esd_esd_close=no
33234fi
ac1cb8d3
VS
33235rm -f conftest.err conftest.$ac_objext \
33236 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33237LIBS=$ac_check_lib_save_LIBS
33238fi
33239echo "$as_me:$LINENO: result: $ac_cv_lib_esd_esd_close" >&5
33240echo "${ECHO_T}$ac_cv_lib_esd_esd_close" >&6
33241if test $ac_cv_lib_esd_esd_close = yes; then
33242
33243
33244for ac_header in esd.h
33245do
33246as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
33247if eval "test \"\${$as_ac_Header+set}\" = set"; then
33248 echo "$as_me:$LINENO: checking for $ac_header" >&5
33249echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
33250if eval "test \"\${$as_ac_Header+set}\" = set"; then
33251 echo $ECHO_N "(cached) $ECHO_C" >&6
33252fi
33253echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
33254echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
33255else
33256 # Is the header compilable?
33257echo "$as_me:$LINENO: checking $ac_header usability" >&5
33258echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
33259cat >conftest.$ac_ext <<_ACEOF
33260/* confdefs.h. */
33261_ACEOF
33262cat confdefs.h >>conftest.$ac_ext
33263cat >>conftest.$ac_ext <<_ACEOF
33264/* end confdefs.h. */
33265$ac_includes_default
33266#include <$ac_header>
33267_ACEOF
33268rm -f conftest.$ac_objext
33269if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 33270 (eval $ac_compile) 2>conftest.er1
a848cd7e 33271 ac_status=$?
ac1cb8d3
VS
33272 grep -v '^ *+' conftest.er1 >conftest.err
33273 rm -f conftest.er1
33274 cat conftest.err >&5
a848cd7e
SC
33275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33276 (exit $ac_status); } &&
07158944 33277 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33279 (eval $ac_try) 2>&5
33280 ac_status=$?
33281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33282 (exit $ac_status); }; } &&
33283 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
33284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33285 (eval $ac_try) 2>&5
33286 ac_status=$?
33287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33288 (exit $ac_status); }; }; then
33289 ac_header_compiler=yes
33290else
33291 echo "$as_me: failed program was:" >&5
33292sed 's/^/| /' conftest.$ac_ext >&5
33293
33294ac_header_compiler=no
33295fi
ac1cb8d3 33296rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
33297echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33298echo "${ECHO_T}$ac_header_compiler" >&6
33299
33300# Is the header present?
33301echo "$as_me:$LINENO: checking $ac_header presence" >&5
33302echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
33303cat >conftest.$ac_ext <<_ACEOF
33304/* confdefs.h. */
33305_ACEOF
33306cat confdefs.h >>conftest.$ac_ext
33307cat >>conftest.$ac_ext <<_ACEOF
33308/* end confdefs.h. */
33309#include <$ac_header>
33310_ACEOF
33311if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
33312 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
33313 ac_status=$?
33314 grep -v '^ *+' conftest.er1 >conftest.err
33315 rm -f conftest.er1
33316 cat conftest.err >&5
33317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33318 (exit $ac_status); } >/dev/null; then
33319 if test -s conftest.err; then
33320 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 33321 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
33322 else
33323 ac_cpp_err=
33324 fi
33325else
33326 ac_cpp_err=yes
33327fi
33328if test -z "$ac_cpp_err"; then
33329 ac_header_preproc=yes
33330else
33331 echo "$as_me: failed program was:" >&5
33332sed 's/^/| /' conftest.$ac_ext >&5
33333
33334 ac_header_preproc=no
33335fi
33336rm -f conftest.err conftest.$ac_ext
33337echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33338echo "${ECHO_T}$ac_header_preproc" >&6
33339
33340# So? What about this header?
ac1cb8d3
VS
33341case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33342 yes:no: )
a848cd7e
SC
33343 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
33344echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
33345 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
33346echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
33347 ac_header_preproc=yes
a848cd7e 33348 ;;
ac1cb8d3 33349 no:yes:* )
a848cd7e
SC
33350 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
33351echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
33352 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
33353echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
33354 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
33355echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
33356 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
33357echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
33358 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
33359echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
33360 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
33361echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
33362 (
33363 cat <<\_ASBOX
ac1cb8d3
VS
33364## ----------------------------------------- ##
33365## Report this to wx-dev@lists.wxwidgets.org ##
33366## ----------------------------------------- ##
a848cd7e
SC
33367_ASBOX
33368 ) |
33369 sed "s/^/$as_me: WARNING: /" >&2
33370 ;;
33371esac
33372echo "$as_me:$LINENO: checking for $ac_header" >&5
33373echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
33374if eval "test \"\${$as_ac_Header+set}\" = set"; then
33375 echo $ECHO_N "(cached) $ECHO_C" >&6
33376else
ac1cb8d3 33377 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
33378fi
33379echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
33380echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
33381
33382fi
33383if test `eval echo '${'$as_ac_Header'}'` = yes; then
33384 cat >>confdefs.h <<_ACEOF
33385#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
33386_ACEOF
33387
33388 EXTRALIBS_ESD="-lesd"
33389
33390fi
33391
33392done
33393
33394
33395fi
33396
33397
33398
33399echo "$as_me:$LINENO: checking for known CD-ROM interface" >&5
33400echo $ECHO_N "checking for known CD-ROM interface... $ECHO_C" >&6
33401cat >conftest.$ac_ext <<_ACEOF
33402/* confdefs.h. */
33403_ACEOF
33404cat confdefs.h >>conftest.$ac_ext
33405cat >>conftest.$ac_ext <<_ACEOF
33406/* end confdefs.h. */
33407#ifdef __linux__
33408 #include <linux/cdrom.h>
33409 #else
33410 /* For Solaris */
33411 #include <sys/cdio.h>
33412 #endif
33413
33414int
33415main ()
33416{
33417struct cdrom_tocentry entry, old_entry;
33418 ;
33419 return 0;
33420}
33421_ACEOF
33422rm -f conftest.$ac_objext
33423if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 33424 (eval $ac_compile) 2>conftest.er1
a848cd7e 33425 ac_status=$?
ac1cb8d3
VS
33426 grep -v '^ *+' conftest.er1 >conftest.err
33427 rm -f conftest.er1
33428 cat conftest.err >&5
a848cd7e
SC
33429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33430 (exit $ac_status); } &&
07158944 33431 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33433 (eval $ac_try) 2>&5
33434 ac_status=$?
33435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33436 (exit $ac_status); }; } &&
33437 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
33438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33439 (eval $ac_try) 2>&5
33440 ac_status=$?
33441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33442 (exit $ac_status); }; }; then
33443 echo "$as_me:$LINENO: result: yes" >&5
33444echo "${ECHO_T}yes" >&6
33445 cat >>confdefs.h <<\_ACEOF
33446#define HAVE_KNOWN_CDROM_INTERFACE 1
33447_ACEOF
33448
33449else
33450 echo "$as_me: failed program was:" >&5
33451sed 's/^/| /' conftest.$ac_ext >&5
33452
33453echo "$as_me:$LINENO: result: no" >&5
33454echo "${ECHO_T}no" >&6
33455fi
ac1cb8d3 33456rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
33457
33458
33459cat >confcache <<\_ACEOF
33460# This file is a shell script that caches the results of configure
33461# tests run on this system so they can be shared between configure
33462# scripts and configure runs, see configure's option --config-cache.
33463# It is not useful on other systems. If it contains results you don't
33464# want to keep, you may remove or edit it.
33465#
33466# config.status only pays attention to the cache file if you give it
33467# the --recheck option to rerun configure.
33468#
33469# `ac_cv_env_foo' variables (set or unset) will be overridden when
33470# loading this file, other *unset* `ac_cv_foo' will be assigned the
33471# following values.
33472
33473_ACEOF
33474
33475# The following way of writing the cache mishandles newlines in values,
33476# but we know of no workaround that is simple, portable, and efficient.
33477# So, don't put newlines in cache variables' values.
33478# Ultrix sh set writes to stderr and can't be redirected directly,
33479# and sets the high bit in the cache file unless we assign to the vars.
33480{
33481 (set) 2>&1 |
33482 case `(ac_space=' '; set | grep ac_space) 2>&1` in
33483 *ac_space=\ *)
33484 # `set' does not quote correctly, so add quotes (double-quote
33485 # substitution turns \\\\ into \\, and sed turns \\ into \).
33486 sed -n \
ac1cb8d3
VS
33487 "s/'/'\\\\''/g;
33488 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a848cd7e
SC
33489 ;;
33490 *)
33491 # `set' quotes correctly as required by POSIX, so do not add quotes.
33492 sed -n \
ac1cb8d3 33493 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
33494 ;;
33495 esac;
33496} |
33497 sed '
33498 t clear
33499 : clear
33500 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
33501 t end
33502 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
33503 : end' >>confcache
33504if diff $cache_file confcache >/dev/null 2>&1; then :; else
33505 if test -w $cache_file; then
33506 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
33507 cat confcache >$cache_file
33508 else
33509 echo "not updating unwritable cache $cache_file"
33510 fi
33511fi
33512rm -f confcache
33513
33514
33515CPP_MT_FLAG=
33516if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then
33517
33518
33519 THREADS_LINK=
33520 THREADS_CFLAGS=
33521
33522 if test "$wxUSE_THREADS" = "yes" ; then
33523 if test "$USE_BEOS" = 1; then
33524 { echo "$as_me:$LINENO: WARNING: BeOS threads are not yet supported... disabled" >&5
33525echo "$as_me: WARNING: BeOS threads are not yet supported... disabled" >&2;}
33526 wxUSE_THREADS="no"
33527 fi
33528 fi
33529
33530 if test "$wxUSE_THREADS" = "yes" ; then
33531
33532
33533 THREAD_OPTS="-pthread"
33534 case "${host}" in
33535 *-*-solaris2* | *-*-sunos4* )
33536 if test "x$GCC" = "xyes"; then
33537 THREAD_OPTS="-pthreads $THREAD_OPTS"
33538 else
33539 THREAD_OPTS="-mt $THREAD_OPTS"
33540 fi
33541 ;;
33542 *-*-freebsd*)
33543 THREAD_OPTS="-kthread lthread $THREAD_OPTS c_r"
33544 ;;
33545 *-*-darwin* | *-*-cygwin* )
33546 THREAD_OPTS=""
33547 ;;
33548 *-*-aix*)
33549 THREAD_OPTS="pthreads"
33550 ;;
33551 *-hp-hpux* )
33552 if test "x$GCC" != "xyes"; then
33553 THREAD_OPTS=""
33554 fi
33555 ;;
33556
33557 *-*-irix* )
33558 if test "x$GCC" = "xyes"; then
33559 THREAD_OPTS=""
33560 fi
33561 ;;
33562
33563 *-*-*UnixWare*)
33564 if test "x$GCC" != "xyes"; then
33565 THREAD_OPTS="-Ethread"
33566 fi
33567 ;;
33568 esac
33569
33570 THREAD_OPTS="$THREAD_OPTS pthread none"
33571
33572 THREADS_OK=no
33573 for flag in $THREAD_OPTS; do
33574 case $flag in
33575 none)
33576 echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
33577echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6
33578 ;;
33579
33580 -*)
33581 echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
33582echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6
33583 THREADS_CFLAGS="$flag"
33584 ;;
33585
33586 *)
33587 echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
33588echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6
33589 THREADS_LINK="-l$flag"
33590 ;;
33591 esac
33592
33593 save_LIBS="$LIBS"
33594 save_CFLAGS="$CFLAGS"
33595 LIBS="$THREADS_LINK $LIBS"
33596 CFLAGS="$THREADS_CFLAGS $CFLAGS"
33597
33598 cat >conftest.$ac_ext <<_ACEOF
33599/* confdefs.h. */
33600_ACEOF
33601cat confdefs.h >>conftest.$ac_ext
33602cat >>conftest.$ac_ext <<_ACEOF
33603/* end confdefs.h. */
33604#include <pthread.h>
33605int
33606main ()
33607{
33608pthread_create(0,0,0,0);
33609 ;
33610 return 0;
33611}
33612_ACEOF
33613rm -f conftest.$ac_objext conftest$ac_exeext
33614if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33615 (eval $ac_link) 2>conftest.er1
a848cd7e 33616 ac_status=$?
ac1cb8d3
VS
33617 grep -v '^ *+' conftest.er1 >conftest.err
33618 rm -f conftest.er1
33619 cat conftest.err >&5
a848cd7e
SC
33620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33621 (exit $ac_status); } &&
07158944 33622 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33624 (eval $ac_try) 2>&5
33625 ac_status=$?
33626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33627 (exit $ac_status); }; } &&
33628 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33630 (eval $ac_try) 2>&5
33631 ac_status=$?
33632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33633 (exit $ac_status); }; }; then
33634 THREADS_OK=yes
33635else
33636 echo "$as_me: failed program was:" >&5
33637sed 's/^/| /' conftest.$ac_ext >&5
33638
33639fi
ac1cb8d3
VS
33640rm -f conftest.err conftest.$ac_objext \
33641 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33642
33643 LIBS="$save_LIBS"
33644 CFLAGS="$save_CFLAGS"
33645
33646 echo "$as_me:$LINENO: result: $THREADS_OK" >&5
33647echo "${ECHO_T}$THREADS_OK" >&6
33648 if test "x$THREADS_OK" = "xyes"; then
33649 break;
33650 fi
33651
33652 THREADS_LINK=""
33653 THREADS_CFLAGS=""
33654 done
33655
33656 if test "x$THREADS_OK" != "xyes"; then
33657 wxUSE_THREADS=no
33658 { echo "$as_me:$LINENO: WARNING: No thread support on this system... disabled" >&5
33659echo "$as_me: WARNING: No thread support on this system... disabled" >&2;}
33660 else
33661 LDFLAGS="$THREADS_CFLAGS $LDFLAGS"
33662 LIBS="$THREADS_LINK $LIBS"
33663
33664 echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
33665echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6
33666 flag=no
33667 case "${host}" in
33668 *-aix*)
33669 LDFLAGS="-L/usr/lib/threads $LDFLAGS"
33670 flag="-D_THREAD_SAFE"
33671 ;;
33672 *-freebsd*)
33673 flag="-D_THREAD_SAFE"
33674 ;;
33675 *-hp-hpux* )
33676 flag="-D_REENTRANT"
33677 if test "x$GCC" != "xyes"; then
33678 flag="$flag -D_RWSTD_MULTI_THREAD"
33679 fi
33680 ;;
33681 *solaris* | alpha*-osf*)
33682 flag="-D_REENTRANT"
33683 ;;
33684 esac
33685 echo "$as_me:$LINENO: result: ${flag}" >&5
33686echo "${ECHO_T}${flag}" >&6
33687 if test "x$flag" != xno; then
33688 THREADS_CFLAGS="$THREADS_CFLAGS $flag"
33689 fi
33690
33691 if test "x$THREADS_CFLAGS" != "x"; then
33692 CFLAGS="$CFLAGS $THREADS_CFLAGS"
33693 CXXFLAGS="$CXXFLAGS $THREADS_CFLAGS"
33694 fi
33695 fi
33696 fi
33697
33698 if test "$wxUSE_THREADS" = "yes" ; then
33699
33700for ac_func in thr_setconcurrency
33701do
33702as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33703echo "$as_me:$LINENO: checking for $ac_func" >&5
33704echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33705if eval "test \"\${$as_ac_var+set}\" = set"; then
33706 echo $ECHO_N "(cached) $ECHO_C" >&6
33707else
33708 cat >conftest.$ac_ext <<_ACEOF
33709/* confdefs.h. */
33710_ACEOF
33711cat confdefs.h >>conftest.$ac_ext
33712cat >>conftest.$ac_ext <<_ACEOF
33713/* end confdefs.h. */
ac1cb8d3
VS
33714/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33715 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33716#define $ac_func innocuous_$ac_func
33717
a848cd7e
SC
33718/* System header to define __stub macros and hopefully few prototypes,
33719 which can conflict with char $ac_func (); below.
33720 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33721 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 33722
a848cd7e
SC
33723#ifdef __STDC__
33724# include <limits.h>
33725#else
33726# include <assert.h>
33727#endif
ac1cb8d3
VS
33728
33729#undef $ac_func
33730
a848cd7e
SC
33731/* Override any gcc2 internal prototype to avoid an error. */
33732#ifdef __cplusplus
33733extern "C"
33734{
33735#endif
33736/* We use char because int might match the return type of a gcc2
33737 builtin and then its argument prototype would still apply. */
33738char $ac_func ();
33739/* The GNU C library defines this for functions which it implements
33740 to always fail with ENOSYS. Some functions are actually named
33741 something starting with __ and the normal name is an alias. */
33742#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33743choke me
33744#else
33745char (*f) () = $ac_func;
33746#endif
33747#ifdef __cplusplus
33748}
33749#endif
33750
33751int
33752main ()
33753{
33754return f != $ac_func;
33755 ;
33756 return 0;
33757}
33758_ACEOF
33759rm -f conftest.$ac_objext conftest$ac_exeext
33760if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33761 (eval $ac_link) 2>conftest.er1
a848cd7e 33762 ac_status=$?
ac1cb8d3
VS
33763 grep -v '^ *+' conftest.er1 >conftest.err
33764 rm -f conftest.er1
33765 cat conftest.err >&5
a848cd7e
SC
33766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33767 (exit $ac_status); } &&
07158944 33768 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33770 (eval $ac_try) 2>&5
33771 ac_status=$?
33772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33773 (exit $ac_status); }; } &&
33774 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33776 (eval $ac_try) 2>&5
33777 ac_status=$?
33778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33779 (exit $ac_status); }; }; then
33780 eval "$as_ac_var=yes"
33781else
33782 echo "$as_me: failed program was:" >&5
33783sed 's/^/| /' conftest.$ac_ext >&5
33784
33785eval "$as_ac_var=no"
33786fi
ac1cb8d3
VS
33787rm -f conftest.err conftest.$ac_objext \
33788 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33789fi
33790echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33791echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33792if test `eval echo '${'$as_ac_var'}'` = yes; then
33793 cat >>confdefs.h <<_ACEOF
33794#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33795_ACEOF
33796
33797fi
33798done
33799
33800
33801
33802for ac_header in sched.h
33803do
33804as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
33805if eval "test \"\${$as_ac_Header+set}\" = set"; then
33806 echo "$as_me:$LINENO: checking for $ac_header" >&5
33807echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
33808if eval "test \"\${$as_ac_Header+set}\" = set"; then
33809 echo $ECHO_N "(cached) $ECHO_C" >&6
33810fi
33811echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
33812echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
33813else
33814 # Is the header compilable?
33815echo "$as_me:$LINENO: checking $ac_header usability" >&5
33816echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
33817cat >conftest.$ac_ext <<_ACEOF
33818/* confdefs.h. */
33819_ACEOF
33820cat confdefs.h >>conftest.$ac_ext
33821cat >>conftest.$ac_ext <<_ACEOF
33822/* end confdefs.h. */
33823$ac_includes_default
33824#include <$ac_header>
33825_ACEOF
33826rm -f conftest.$ac_objext
33827if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 33828 (eval $ac_compile) 2>conftest.er1
a848cd7e 33829 ac_status=$?
ac1cb8d3
VS
33830 grep -v '^ *+' conftest.er1 >conftest.err
33831 rm -f conftest.er1
33832 cat conftest.err >&5
a848cd7e
SC
33833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33834 (exit $ac_status); } &&
07158944 33835 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33837 (eval $ac_try) 2>&5
33838 ac_status=$?
33839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33840 (exit $ac_status); }; } &&
33841 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
33842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33843 (eval $ac_try) 2>&5
33844 ac_status=$?
33845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33846 (exit $ac_status); }; }; then
33847 ac_header_compiler=yes
33848else
33849 echo "$as_me: failed program was:" >&5
33850sed 's/^/| /' conftest.$ac_ext >&5
33851
33852ac_header_compiler=no
33853fi
ac1cb8d3 33854rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
33855echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33856echo "${ECHO_T}$ac_header_compiler" >&6
33857
33858# Is the header present?
33859echo "$as_me:$LINENO: checking $ac_header presence" >&5
33860echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
33861cat >conftest.$ac_ext <<_ACEOF
33862/* confdefs.h. */
33863_ACEOF
33864cat confdefs.h >>conftest.$ac_ext
33865cat >>conftest.$ac_ext <<_ACEOF
33866/* end confdefs.h. */
33867#include <$ac_header>
33868_ACEOF
33869if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
33870 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
33871 ac_status=$?
33872 grep -v '^ *+' conftest.er1 >conftest.err
33873 rm -f conftest.er1
33874 cat conftest.err >&5
33875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33876 (exit $ac_status); } >/dev/null; then
33877 if test -s conftest.err; then
33878 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 33879 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
33880 else
33881 ac_cpp_err=
33882 fi
33883else
33884 ac_cpp_err=yes
33885fi
33886if test -z "$ac_cpp_err"; then
33887 ac_header_preproc=yes
33888else
33889 echo "$as_me: failed program was:" >&5
33890sed 's/^/| /' conftest.$ac_ext >&5
33891
33892 ac_header_preproc=no
33893fi
33894rm -f conftest.err conftest.$ac_ext
33895echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33896echo "${ECHO_T}$ac_header_preproc" >&6
33897
33898# So? What about this header?
ac1cb8d3
VS
33899case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33900 yes:no: )
a848cd7e
SC
33901 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
33902echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
33903 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
33904echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
33905 ac_header_preproc=yes
a848cd7e 33906 ;;
ac1cb8d3 33907 no:yes:* )
a848cd7e
SC
33908 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
33909echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
33910 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
33911echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
33912 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
33913echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
33914 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
33915echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
33916 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
33917echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
33918 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
33919echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
33920 (
33921 cat <<\_ASBOX
ac1cb8d3
VS
33922## ----------------------------------------- ##
33923## Report this to wx-dev@lists.wxwidgets.org ##
33924## ----------------------------------------- ##
a848cd7e
SC
33925_ASBOX
33926 ) |
33927 sed "s/^/$as_me: WARNING: /" >&2
33928 ;;
33929esac
33930echo "$as_me:$LINENO: checking for $ac_header" >&5
33931echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
33932if eval "test \"\${$as_ac_Header+set}\" = set"; then
33933 echo $ECHO_N "(cached) $ECHO_C" >&6
33934else
ac1cb8d3 33935 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
33936fi
33937echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
33938echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
33939
33940fi
33941if test `eval echo '${'$as_ac_Header'}'` = yes; then
33942 cat >>confdefs.h <<_ACEOF
33943#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
33944_ACEOF
33945
33946fi
33947
33948done
33949
33950 if test "$ac_cv_header_sched_h" = "yes"; then
33951 echo "$as_me:$LINENO: checking for sched_yield" >&5
33952echo $ECHO_N "checking for sched_yield... $ECHO_C" >&6
33953if test "${ac_cv_func_sched_yield+set}" = set; then
33954 echo $ECHO_N "(cached) $ECHO_C" >&6
33955else
33956 cat >conftest.$ac_ext <<_ACEOF
33957/* confdefs.h. */
33958_ACEOF
33959cat confdefs.h >>conftest.$ac_ext
33960cat >>conftest.$ac_ext <<_ACEOF
33961/* end confdefs.h. */
ac1cb8d3
VS
33962/* Define sched_yield to an innocuous variant, in case <limits.h> declares sched_yield.
33963 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33964#define sched_yield innocuous_sched_yield
33965
a848cd7e
SC
33966/* System header to define __stub macros and hopefully few prototypes,
33967 which can conflict with char sched_yield (); below.
33968 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33969 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 33970
a848cd7e
SC
33971#ifdef __STDC__
33972# include <limits.h>
33973#else
33974# include <assert.h>
33975#endif
ac1cb8d3
VS
33976
33977#undef sched_yield
33978
a848cd7e
SC
33979/* Override any gcc2 internal prototype to avoid an error. */
33980#ifdef __cplusplus
33981extern "C"
33982{
33983#endif
33984/* We use char because int might match the return type of a gcc2
33985 builtin and then its argument prototype would still apply. */
33986char sched_yield ();
33987/* The GNU C library defines this for functions which it implements
33988 to always fail with ENOSYS. Some functions are actually named
33989 something starting with __ and the normal name is an alias. */
33990#if defined (__stub_sched_yield) || defined (__stub___sched_yield)
33991choke me
33992#else
33993char (*f) () = sched_yield;
33994#endif
33995#ifdef __cplusplus
33996}
33997#endif
33998
33999int
34000main ()
34001{
34002return f != sched_yield;
34003 ;
34004 return 0;
34005}
34006_ACEOF
34007rm -f conftest.$ac_objext conftest$ac_exeext
34008if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34009 (eval $ac_link) 2>conftest.er1
a848cd7e 34010 ac_status=$?
ac1cb8d3
VS
34011 grep -v '^ *+' conftest.er1 >conftest.err
34012 rm -f conftest.er1
34013 cat conftest.err >&5
a848cd7e
SC
34014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34015 (exit $ac_status); } &&
07158944 34016 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34018 (eval $ac_try) 2>&5
34019 ac_status=$?
34020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34021 (exit $ac_status); }; } &&
34022 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34024 (eval $ac_try) 2>&5
34025 ac_status=$?
34026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34027 (exit $ac_status); }; }; then
34028 ac_cv_func_sched_yield=yes
34029else
34030 echo "$as_me: failed program was:" >&5
34031sed 's/^/| /' conftest.$ac_ext >&5
34032
34033ac_cv_func_sched_yield=no
34034fi
ac1cb8d3
VS
34035rm -f conftest.err conftest.$ac_objext \
34036 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34037fi
34038echo "$as_me:$LINENO: result: $ac_cv_func_sched_yield" >&5
34039echo "${ECHO_T}$ac_cv_func_sched_yield" >&6
34040if test $ac_cv_func_sched_yield = yes; then
34041 cat >>confdefs.h <<\_ACEOF
34042#define HAVE_SCHED_YIELD 1
34043_ACEOF
34044
34045else
34046
34047 echo "$as_me:$LINENO: checking for sched_yield in -lposix4" >&5
34048echo $ECHO_N "checking for sched_yield in -lposix4... $ECHO_C" >&6
34049if test "${ac_cv_lib_posix4_sched_yield+set}" = set; then
34050 echo $ECHO_N "(cached) $ECHO_C" >&6
34051else
34052 ac_check_lib_save_LIBS=$LIBS
34053LIBS="-lposix4 $LIBS"
34054cat >conftest.$ac_ext <<_ACEOF
34055/* confdefs.h. */
34056_ACEOF
34057cat confdefs.h >>conftest.$ac_ext
34058cat >>conftest.$ac_ext <<_ACEOF
34059/* end confdefs.h. */
34060
34061/* Override any gcc2 internal prototype to avoid an error. */
34062#ifdef __cplusplus
34063extern "C"
34064#endif
34065/* We use char because int might match the return type of a gcc2
34066 builtin and then its argument prototype would still apply. */
34067char sched_yield ();
34068int
34069main ()
34070{
34071sched_yield ();
34072 ;
34073 return 0;
34074}
34075_ACEOF
34076rm -f conftest.$ac_objext conftest$ac_exeext
34077if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34078 (eval $ac_link) 2>conftest.er1
a848cd7e 34079 ac_status=$?
ac1cb8d3
VS
34080 grep -v '^ *+' conftest.er1 >conftest.err
34081 rm -f conftest.er1
34082 cat conftest.err >&5
a848cd7e
SC
34083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34084 (exit $ac_status); } &&
07158944 34085 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34087 (eval $ac_try) 2>&5
34088 ac_status=$?
34089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34090 (exit $ac_status); }; } &&
34091 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34093 (eval $ac_try) 2>&5
34094 ac_status=$?
34095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34096 (exit $ac_status); }; }; then
34097 ac_cv_lib_posix4_sched_yield=yes
34098else
34099 echo "$as_me: failed program was:" >&5
34100sed 's/^/| /' conftest.$ac_ext >&5
34101
34102ac_cv_lib_posix4_sched_yield=no
34103fi
ac1cb8d3
VS
34104rm -f conftest.err conftest.$ac_objext \
34105 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34106LIBS=$ac_check_lib_save_LIBS
34107fi
34108echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_yield" >&5
34109echo "${ECHO_T}$ac_cv_lib_posix4_sched_yield" >&6
34110if test $ac_cv_lib_posix4_sched_yield = yes; then
34111 cat >>confdefs.h <<\_ACEOF
34112#define HAVE_SCHED_YIELD 1
34113_ACEOF
34114 POSIX4_LINK=" -lposix4"
34115else
34116 { echo "$as_me:$LINENO: WARNING: wxThread::Yield will not work properly" >&5
34117echo "$as_me: WARNING: wxThread::Yield will not work properly" >&2;}
34118
34119fi
34120
34121
34122
34123fi
34124
34125 fi
34126
34127 HAVE_PRIOR_FUNCS=0
34128 echo "$as_me:$LINENO: checking for pthread_attr_getschedpolicy" >&5
34129echo $ECHO_N "checking for pthread_attr_getschedpolicy... $ECHO_C" >&6
34130if test "${ac_cv_func_pthread_attr_getschedpolicy+set}" = set; then
34131 echo $ECHO_N "(cached) $ECHO_C" >&6
34132else
34133 cat >conftest.$ac_ext <<_ACEOF
34134/* confdefs.h. */
34135_ACEOF
34136cat confdefs.h >>conftest.$ac_ext
34137cat >>conftest.$ac_ext <<_ACEOF
34138/* end confdefs.h. */
ac1cb8d3
VS
34139/* Define pthread_attr_getschedpolicy to an innocuous variant, in case <limits.h> declares pthread_attr_getschedpolicy.
34140 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34141#define pthread_attr_getschedpolicy innocuous_pthread_attr_getschedpolicy
34142
a848cd7e
SC
34143/* System header to define __stub macros and hopefully few prototypes,
34144 which can conflict with char pthread_attr_getschedpolicy (); below.
34145 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34146 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 34147
a848cd7e
SC
34148#ifdef __STDC__
34149# include <limits.h>
34150#else
34151# include <assert.h>
34152#endif
ac1cb8d3
VS
34153
34154#undef pthread_attr_getschedpolicy
34155
a848cd7e
SC
34156/* Override any gcc2 internal prototype to avoid an error. */
34157#ifdef __cplusplus
34158extern "C"
34159{
34160#endif
34161/* We use char because int might match the return type of a gcc2
34162 builtin and then its argument prototype would still apply. */
34163char pthread_attr_getschedpolicy ();
34164/* The GNU C library defines this for functions which it implements
34165 to always fail with ENOSYS. Some functions are actually named
34166 something starting with __ and the normal name is an alias. */
34167#if defined (__stub_pthread_attr_getschedpolicy) || defined (__stub___pthread_attr_getschedpolicy)
34168choke me
34169#else
34170char (*f) () = pthread_attr_getschedpolicy;
34171#endif
34172#ifdef __cplusplus
34173}
34174#endif
34175
34176int
34177main ()
34178{
34179return f != pthread_attr_getschedpolicy;
34180 ;
34181 return 0;
34182}
34183_ACEOF
34184rm -f conftest.$ac_objext conftest$ac_exeext
34185if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34186 (eval $ac_link) 2>conftest.er1
a848cd7e 34187 ac_status=$?
ac1cb8d3
VS
34188 grep -v '^ *+' conftest.er1 >conftest.err
34189 rm -f conftest.er1
34190 cat conftest.err >&5
a848cd7e
SC
34191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34192 (exit $ac_status); } &&
07158944 34193 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34195 (eval $ac_try) 2>&5
34196 ac_status=$?
34197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34198 (exit $ac_status); }; } &&
34199 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34201 (eval $ac_try) 2>&5
34202 ac_status=$?
34203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34204 (exit $ac_status); }; }; then
34205 ac_cv_func_pthread_attr_getschedpolicy=yes
34206else
34207 echo "$as_me: failed program was:" >&5
34208sed 's/^/| /' conftest.$ac_ext >&5
34209
34210ac_cv_func_pthread_attr_getschedpolicy=no
34211fi
ac1cb8d3
VS
34212rm -f conftest.err conftest.$ac_objext \
34213 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34214fi
34215echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_getschedpolicy" >&5
34216echo "${ECHO_T}$ac_cv_func_pthread_attr_getschedpolicy" >&6
34217if test $ac_cv_func_pthread_attr_getschedpolicy = yes; then
34218 echo "$as_me:$LINENO: checking for pthread_attr_setschedparam" >&5
34219echo $ECHO_N "checking for pthread_attr_setschedparam... $ECHO_C" >&6
34220if test "${ac_cv_func_pthread_attr_setschedparam+set}" = set; then
34221 echo $ECHO_N "(cached) $ECHO_C" >&6
34222else
34223 cat >conftest.$ac_ext <<_ACEOF
34224/* confdefs.h. */
34225_ACEOF
34226cat confdefs.h >>conftest.$ac_ext
34227cat >>conftest.$ac_ext <<_ACEOF
34228/* end confdefs.h. */
ac1cb8d3
VS
34229/* Define pthread_attr_setschedparam to an innocuous variant, in case <limits.h> declares pthread_attr_setschedparam.
34230 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34231#define pthread_attr_setschedparam innocuous_pthread_attr_setschedparam
34232
a848cd7e
SC
34233/* System header to define __stub macros and hopefully few prototypes,
34234 which can conflict with char pthread_attr_setschedparam (); below.
34235 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34236 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 34237
a848cd7e
SC
34238#ifdef __STDC__
34239# include <limits.h>
34240#else
34241# include <assert.h>
34242#endif
ac1cb8d3
VS
34243
34244#undef pthread_attr_setschedparam
34245
a848cd7e
SC
34246/* Override any gcc2 internal prototype to avoid an error. */
34247#ifdef __cplusplus
34248extern "C"
34249{
34250#endif
34251/* We use char because int might match the return type of a gcc2
34252 builtin and then its argument prototype would still apply. */
34253char pthread_attr_setschedparam ();
34254/* The GNU C library defines this for functions which it implements
34255 to always fail with ENOSYS. Some functions are actually named
34256 something starting with __ and the normal name is an alias. */
34257#if defined (__stub_pthread_attr_setschedparam) || defined (__stub___pthread_attr_setschedparam)
34258choke me
34259#else
34260char (*f) () = pthread_attr_setschedparam;
34261#endif
34262#ifdef __cplusplus
34263}
34264#endif
34265
34266int
34267main ()
34268{
34269return f != pthread_attr_setschedparam;
34270 ;
34271 return 0;
34272}
34273_ACEOF
34274rm -f conftest.$ac_objext conftest$ac_exeext
34275if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34276 (eval $ac_link) 2>conftest.er1
a848cd7e 34277 ac_status=$?
ac1cb8d3
VS
34278 grep -v '^ *+' conftest.er1 >conftest.err
34279 rm -f conftest.er1
34280 cat conftest.err >&5
a848cd7e
SC
34281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34282 (exit $ac_status); } &&
07158944 34283 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34285 (eval $ac_try) 2>&5
34286 ac_status=$?
34287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34288 (exit $ac_status); }; } &&
34289 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34291 (eval $ac_try) 2>&5
34292 ac_status=$?
34293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34294 (exit $ac_status); }; }; then
34295 ac_cv_func_pthread_attr_setschedparam=yes
34296else
34297 echo "$as_me: failed program was:" >&5
34298sed 's/^/| /' conftest.$ac_ext >&5
34299
34300ac_cv_func_pthread_attr_setschedparam=no
34301fi
ac1cb8d3
VS
34302rm -f conftest.err conftest.$ac_objext \
34303 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34304fi
34305echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_setschedparam" >&5
34306echo "${ECHO_T}$ac_cv_func_pthread_attr_setschedparam" >&6
34307if test $ac_cv_func_pthread_attr_setschedparam = yes; then
34308 echo "$as_me:$LINENO: checking for sched_get_priority_max" >&5
34309echo $ECHO_N "checking for sched_get_priority_max... $ECHO_C" >&6
34310if test "${ac_cv_func_sched_get_priority_max+set}" = set; then
34311 echo $ECHO_N "(cached) $ECHO_C" >&6
34312else
34313 cat >conftest.$ac_ext <<_ACEOF
34314/* confdefs.h. */
34315_ACEOF
34316cat confdefs.h >>conftest.$ac_ext
34317cat >>conftest.$ac_ext <<_ACEOF
34318/* end confdefs.h. */
ac1cb8d3
VS
34319/* Define sched_get_priority_max to an innocuous variant, in case <limits.h> declares sched_get_priority_max.
34320 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34321#define sched_get_priority_max innocuous_sched_get_priority_max
34322
a848cd7e
SC
34323/* System header to define __stub macros and hopefully few prototypes,
34324 which can conflict with char sched_get_priority_max (); below.
34325 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34326 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 34327
a848cd7e
SC
34328#ifdef __STDC__
34329# include <limits.h>
34330#else
34331# include <assert.h>
34332#endif
ac1cb8d3
VS
34333
34334#undef sched_get_priority_max
34335
a848cd7e
SC
34336/* Override any gcc2 internal prototype to avoid an error. */
34337#ifdef __cplusplus
34338extern "C"
34339{
34340#endif
34341/* We use char because int might match the return type of a gcc2
34342 builtin and then its argument prototype would still apply. */
34343char sched_get_priority_max ();
34344/* The GNU C library defines this for functions which it implements
34345 to always fail with ENOSYS. Some functions are actually named
34346 something starting with __ and the normal name is an alias. */
34347#if defined (__stub_sched_get_priority_max) || defined (__stub___sched_get_priority_max)
34348choke me
34349#else
34350char (*f) () = sched_get_priority_max;
34351#endif
34352#ifdef __cplusplus
34353}
34354#endif
34355
34356int
34357main ()
34358{
34359return f != sched_get_priority_max;
34360 ;
34361 return 0;
34362}
34363_ACEOF
34364rm -f conftest.$ac_objext conftest$ac_exeext
34365if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34366 (eval $ac_link) 2>conftest.er1
a848cd7e 34367 ac_status=$?
ac1cb8d3
VS
34368 grep -v '^ *+' conftest.er1 >conftest.err
34369 rm -f conftest.er1
34370 cat conftest.err >&5
a848cd7e
SC
34371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34372 (exit $ac_status); } &&
07158944 34373 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34375 (eval $ac_try) 2>&5
34376 ac_status=$?
34377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34378 (exit $ac_status); }; } &&
34379 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34381 (eval $ac_try) 2>&5
34382 ac_status=$?
34383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34384 (exit $ac_status); }; }; then
34385 ac_cv_func_sched_get_priority_max=yes
34386else
34387 echo "$as_me: failed program was:" >&5
34388sed 's/^/| /' conftest.$ac_ext >&5
34389
34390ac_cv_func_sched_get_priority_max=no
34391fi
ac1cb8d3
VS
34392rm -f conftest.err conftest.$ac_objext \
34393 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34394fi
34395echo "$as_me:$LINENO: result: $ac_cv_func_sched_get_priority_max" >&5
34396echo "${ECHO_T}$ac_cv_func_sched_get_priority_max" >&6
34397if test $ac_cv_func_sched_get_priority_max = yes; then
34398 HAVE_PRIOR_FUNCS=1
34399else
34400 echo "$as_me:$LINENO: checking for sched_get_priority_max in -lposix4" >&5
34401echo $ECHO_N "checking for sched_get_priority_max in -lposix4... $ECHO_C" >&6
34402if test "${ac_cv_lib_posix4_sched_get_priority_max+set}" = set; then
34403 echo $ECHO_N "(cached) $ECHO_C" >&6
34404else
34405 ac_check_lib_save_LIBS=$LIBS
34406LIBS="-lposix4 $LIBS"
34407cat >conftest.$ac_ext <<_ACEOF
34408/* confdefs.h. */
34409_ACEOF
34410cat confdefs.h >>conftest.$ac_ext
34411cat >>conftest.$ac_ext <<_ACEOF
34412/* end confdefs.h. */
34413
34414/* Override any gcc2 internal prototype to avoid an error. */
34415#ifdef __cplusplus
34416extern "C"
34417#endif
34418/* We use char because int might match the return type of a gcc2
34419 builtin and then its argument prototype would still apply. */
34420char sched_get_priority_max ();
34421int
34422main ()
34423{
34424sched_get_priority_max ();
34425 ;
34426 return 0;
34427}
34428_ACEOF
34429rm -f conftest.$ac_objext conftest$ac_exeext
34430if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34431 (eval $ac_link) 2>conftest.er1
a848cd7e 34432 ac_status=$?
ac1cb8d3
VS
34433 grep -v '^ *+' conftest.er1 >conftest.err
34434 rm -f conftest.er1
34435 cat conftest.err >&5
a848cd7e
SC
34436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34437 (exit $ac_status); } &&
07158944 34438 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34440 (eval $ac_try) 2>&5
34441 ac_status=$?
34442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34443 (exit $ac_status); }; } &&
34444 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34446 (eval $ac_try) 2>&5
34447 ac_status=$?
34448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34449 (exit $ac_status); }; }; then
34450 ac_cv_lib_posix4_sched_get_priority_max=yes
34451else
34452 echo "$as_me: failed program was:" >&5
34453sed 's/^/| /' conftest.$ac_ext >&5
34454
34455ac_cv_lib_posix4_sched_get_priority_max=no
34456fi
ac1cb8d3
VS
34457rm -f conftest.err conftest.$ac_objext \
34458 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34459LIBS=$ac_check_lib_save_LIBS
34460fi
34461echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_get_priority_max" >&5
34462echo "${ECHO_T}$ac_cv_lib_posix4_sched_get_priority_max" >&6
34463if test $ac_cv_lib_posix4_sched_get_priority_max = yes; then
34464
34465 HAVE_PRIOR_FUNCS=1
34466 POSIX4_LINK=" -lposix4"
34467
34468fi
34469
34470
34471fi
34472
34473
34474fi
34475
34476
34477fi
34478
34479
34480 if test "$HAVE_PRIOR_FUNCS" = 1; then
34481 cat >>confdefs.h <<\_ACEOF
34482#define HAVE_THREAD_PRIORITY_FUNCTIONS 1
34483_ACEOF
34484
34485 else
34486 { echo "$as_me:$LINENO: WARNING: Setting thread priority will not work" >&5
34487echo "$as_me: WARNING: Setting thread priority will not work" >&2;}
34488 fi
34489
34490 echo "$as_me:$LINENO: checking for pthread_cancel" >&5
34491echo $ECHO_N "checking for pthread_cancel... $ECHO_C" >&6
34492if test "${ac_cv_func_pthread_cancel+set}" = set; then
34493 echo $ECHO_N "(cached) $ECHO_C" >&6
34494else
34495 cat >conftest.$ac_ext <<_ACEOF
34496/* confdefs.h. */
34497_ACEOF
34498cat confdefs.h >>conftest.$ac_ext
34499cat >>conftest.$ac_ext <<_ACEOF
34500/* end confdefs.h. */
ac1cb8d3
VS
34501/* Define pthread_cancel to an innocuous variant, in case <limits.h> declares pthread_cancel.
34502 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34503#define pthread_cancel innocuous_pthread_cancel
34504
a848cd7e
SC
34505/* System header to define __stub macros and hopefully few prototypes,
34506 which can conflict with char pthread_cancel (); below.
34507 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34508 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 34509
a848cd7e
SC
34510#ifdef __STDC__
34511# include <limits.h>
34512#else
34513# include <assert.h>
34514#endif
ac1cb8d3
VS
34515
34516#undef pthread_cancel
34517
a848cd7e
SC
34518/* Override any gcc2 internal prototype to avoid an error. */
34519#ifdef __cplusplus
34520extern "C"
34521{
34522#endif
34523/* We use char because int might match the return type of a gcc2
34524 builtin and then its argument prototype would still apply. */
34525char pthread_cancel ();
34526/* The GNU C library defines this for functions which it implements
34527 to always fail with ENOSYS. Some functions are actually named
34528 something starting with __ and the normal name is an alias. */
34529#if defined (__stub_pthread_cancel) || defined (__stub___pthread_cancel)
34530choke me
34531#else
34532char (*f) () = pthread_cancel;
34533#endif
34534#ifdef __cplusplus
34535}
34536#endif
34537
34538int
34539main ()
34540{
34541return f != pthread_cancel;
34542 ;
34543 return 0;
34544}
34545_ACEOF
34546rm -f conftest.$ac_objext conftest$ac_exeext
34547if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34548 (eval $ac_link) 2>conftest.er1
a848cd7e 34549 ac_status=$?
ac1cb8d3
VS
34550 grep -v '^ *+' conftest.er1 >conftest.err
34551 rm -f conftest.er1
34552 cat conftest.err >&5
a848cd7e
SC
34553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34554 (exit $ac_status); } &&
07158944 34555 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34557 (eval $ac_try) 2>&5
34558 ac_status=$?
34559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34560 (exit $ac_status); }; } &&
34561 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34563 (eval $ac_try) 2>&5
34564 ac_status=$?
34565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34566 (exit $ac_status); }; }; then
34567 ac_cv_func_pthread_cancel=yes
34568else
34569 echo "$as_me: failed program was:" >&5
34570sed 's/^/| /' conftest.$ac_ext >&5
34571
34572ac_cv_func_pthread_cancel=no
34573fi
ac1cb8d3
VS
34574rm -f conftest.err conftest.$ac_objext \
34575 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34576fi
34577echo "$as_me:$LINENO: result: $ac_cv_func_pthread_cancel" >&5
34578echo "${ECHO_T}$ac_cv_func_pthread_cancel" >&6
34579if test $ac_cv_func_pthread_cancel = yes; then
34580 cat >>confdefs.h <<\_ACEOF
34581#define HAVE_PTHREAD_CANCEL 1
34582_ACEOF
34583
34584else
34585 { echo "$as_me:$LINENO: WARNING: wxThread::Kill() will not work properly" >&5
34586echo "$as_me: WARNING: wxThread::Kill() will not work properly" >&2;}
34587fi
34588
34589
34590
34591
34592 echo "$as_me:$LINENO: checking for pthread_mutexattr_t" >&5
34593echo $ECHO_N "checking for pthread_mutexattr_t... $ECHO_C" >&6
34594if test "${wx_cv_type_pthread_mutexattr_t+set}" = set; then
34595 echo $ECHO_N "(cached) $ECHO_C" >&6
34596else
34597
34598 cat >conftest.$ac_ext <<_ACEOF
34599/* confdefs.h. */
34600_ACEOF
34601cat confdefs.h >>conftest.$ac_ext
34602cat >>conftest.$ac_ext <<_ACEOF
34603/* end confdefs.h. */
34604#include <pthread.h>
34605int
34606main ()
34607{
34608
34609 pthread_mutexattr_t attr;
34610 pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
34611
34612 ;
34613 return 0;
34614}
34615_ACEOF
34616rm -f conftest.$ac_objext
34617if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 34618 (eval $ac_compile) 2>conftest.er1
a848cd7e 34619 ac_status=$?
ac1cb8d3
VS
34620 grep -v '^ *+' conftest.er1 >conftest.err
34621 rm -f conftest.er1
34622 cat conftest.err >&5
a848cd7e
SC
34623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34624 (exit $ac_status); } &&
07158944 34625 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34627 (eval $ac_try) 2>&5
34628 ac_status=$?
34629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34630 (exit $ac_status); }; } &&
34631 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
34632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34633 (eval $ac_try) 2>&5
34634 ac_status=$?
34635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34636 (exit $ac_status); }; }; then
34637
34638 wx_cv_type_pthread_mutexattr_t=yes
34639
34640else
34641 echo "$as_me: failed program was:" >&5
34642sed 's/^/| /' conftest.$ac_ext >&5
34643
34644
34645 wx_cv_type_pthread_mutexattr_t=no
34646
34647
34648fi
ac1cb8d3 34649rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
34650
34651fi
34652echo "$as_me:$LINENO: result: $wx_cv_type_pthread_mutexattr_t" >&5
34653echo "${ECHO_T}$wx_cv_type_pthread_mutexattr_t" >&6
34654
34655 if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then
34656 cat >>confdefs.h <<\_ACEOF
34657#define HAVE_PTHREAD_MUTEXATTR_T 1
34658_ACEOF
34659
34660 else
34661 echo "$as_me:$LINENO: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5
34662echo $ECHO_N "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER... $ECHO_C" >&6
34663if test "${wx_cv_type_pthread_rec_mutex_init+set}" = set; then
34664 echo $ECHO_N "(cached) $ECHO_C" >&6
34665else
34666
34667 cat >conftest.$ac_ext <<_ACEOF
34668/* confdefs.h. */
34669_ACEOF
34670cat confdefs.h >>conftest.$ac_ext
34671cat >>conftest.$ac_ext <<_ACEOF
34672/* end confdefs.h. */
34673#include <pthread.h>
34674int
34675main ()
34676{
34677
34678 pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;
34679
34680 ;
34681 return 0;
34682}
34683_ACEOF
34684rm -f conftest.$ac_objext
34685if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 34686 (eval $ac_compile) 2>conftest.er1
a848cd7e 34687 ac_status=$?
ac1cb8d3
VS
34688 grep -v '^ *+' conftest.er1 >conftest.err
34689 rm -f conftest.er1
34690 cat conftest.err >&5
a848cd7e
SC
34691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34692 (exit $ac_status); } &&
07158944 34693 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34695 (eval $ac_try) 2>&5
34696 ac_status=$?
34697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34698 (exit $ac_status); }; } &&
34699 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
34700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34701 (eval $ac_try) 2>&5
34702 ac_status=$?
34703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34704 (exit $ac_status); }; }; then
34705
34706 wx_cv_type_pthread_rec_mutex_init=yes
34707
34708else
34709 echo "$as_me: failed program was:" >&5
34710sed 's/^/| /' conftest.$ac_ext >&5
34711
34712
34713 wx_cv_type_pthread_rec_mutex_init=no
34714
34715
34716fi
ac1cb8d3 34717rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
34718
34719fi
34720echo "$as_me:$LINENO: result: $wx_cv_type_pthread_rec_mutex_init" >&5
34721echo "${ECHO_T}$wx_cv_type_pthread_rec_mutex_init" >&6
34722 if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then
34723 cat >>confdefs.h <<\_ACEOF
34724#define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1
34725_ACEOF
34726
34727 else
34728 { echo "$as_me:$LINENO: WARNING: wxMutex won't be recursive on this platform" >&5
34729echo "$as_me: WARNING: wxMutex won't be recursive on this platform" >&2;}
34730 fi
34731 fi
34732 fi
34733
34734else
34735 if test "$wxUSE_THREADS" = "yes" ; then
34736 case "${host}" in
34737 *-*-mingw32* )
34738 echo "$as_me:$LINENO: checking if compiler supports -mthreads" >&5
34739echo $ECHO_N "checking if compiler supports -mthreads... $ECHO_C" >&6
34740if test "${wx_cv_cflags_mthread+set}" = set; then
34741 echo $ECHO_N "(cached) $ECHO_C" >&6
34742else
34743
34744 CFLAGS_OLD="$CFLAGS"
34745 CFLAGS="$CFLAGS -mthreads"
34746 cat >conftest.$ac_ext <<_ACEOF
34747/* confdefs.h. */
34748_ACEOF
34749cat confdefs.h >>conftest.$ac_ext
34750cat >>conftest.$ac_ext <<_ACEOF
34751/* end confdefs.h. */
34752
34753int
34754main ()
34755{
34756
34757 ;
34758 return 0;
34759}
34760_ACEOF
34761rm -f conftest.$ac_objext
34762if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 34763 (eval $ac_compile) 2>conftest.er1
a848cd7e 34764 ac_status=$?
ac1cb8d3
VS
34765 grep -v '^ *+' conftest.er1 >conftest.err
34766 rm -f conftest.er1
34767 cat conftest.err >&5
a848cd7e
SC
34768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34769 (exit $ac_status); } &&
07158944 34770 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34772 (eval $ac_try) 2>&5
34773 ac_status=$?
34774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34775 (exit $ac_status); }; } &&
34776 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
34777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34778 (eval $ac_try) 2>&5
34779 ac_status=$?
34780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34781 (exit $ac_status); }; }; then
34782 wx_cv_cflags_mthread=yes
34783else
34784 echo "$as_me: failed program was:" >&5
34785sed 's/^/| /' conftest.$ac_ext >&5
34786
34787wx_cv_cflags_mthread=no
34788
34789fi
ac1cb8d3 34790rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
34791
34792
34793fi
34794echo "$as_me:$LINENO: result: $wx_cv_cflags_mthread" >&5
34795echo "${ECHO_T}$wx_cv_cflags_mthread" >&6
34796
34797 if test "$wx_cv_cflags_mthread" = "yes"; then
34798 CXXFLAGS="$CXXFLAGS -mthreads"
34799 TOOLCHAIN_DEFS="$TOOLCHAIN_DEFS -mthreads"
34800 LDFLAGS="$LDFLAGS -mthreads"
34801 else
34802 CFLAGS="$CFLAGS_OLD"
34803 fi
34804 ;;
34805 *-pc-os2*emx )
34806 CFLAGS="$CFLAGS -Zmt -D__ST_MT_ERRNO__"
34807 CXXFLAGS="$CXXFLAGS -Zmt -D__ST_MT_ERRNO__"
34808 LDFLAGS="$LDFLAGS -Zmt"
34809 ;;
34810 esac
34811 fi
34812fi
34813
34814if test "$wxUSE_THREADS" = "yes"; then
34815 cat >>confdefs.h <<\_ACEOF
34816#define wxUSE_THREADS 1
34817_ACEOF
34818
34819
34820 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread"
34821else
34822 if test "$ac_cv_func_strtok_r" = "yes"; then
34823 echo "$as_me:$LINENO: checking if -D_REENTRANT is needed" >&5
34824echo $ECHO_N "checking if -D_REENTRANT is needed... $ECHO_C" >&6
34825 if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then
34826 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D_REENTRANT"
34827 echo "$as_me:$LINENO: result: yes" >&5
34828echo "${ECHO_T}yes" >&6
34829 else
34830 echo "$as_me:$LINENO: result: no" >&5
34831echo "${ECHO_T}no" >&6
34832 fi
34833 fi
34834fi
34835
34836if test "$WXGTK20" = 1 ; then
34837 cat >>confdefs.h <<_ACEOF
34838#define __WXGTK20__ $WXGTK20
34839_ACEOF
34840
34841 WXGTK12=1
34842fi
34843
34844if test "$WXGTK12" = 1 ; then
34845 cat >>confdefs.h <<_ACEOF
34846#define __WXGTK12__ $WXGTK12
34847_ACEOF
34848
34849fi
34850
34851if test "$WXGTK127" = 1 ; then
34852 cat >>confdefs.h <<_ACEOF
34853#define __WXGTK127__ $WXGTK127
34854_ACEOF
34855
34856fi
34857
34858if test "$WXGPE" = 1 ; then
34859 cat >>confdefs.h <<_ACEOF
34860#define __WXGPE__ $WXGPE
34861_ACEOF
34862
34863fi
34864
34865WXDEBUG=
34866
34867if test "$wxUSE_DEBUG_INFO" = "yes" ; then
34868 WXDEBUG="-g"
34869 wxUSE_OPTIMISE=no
34870fi
34871
34872if test "$wxUSE_DEBUG_GDB" = "yes" ; then
34873 wxUSE_DEBUG_INFO=yes
34874 WXDEBUG="-ggdb"
34875fi
34876
34877if test "$wxUSE_DEBUG_FLAG" = "yes" ; then
34878 cat >>confdefs.h <<\_ACEOF
34879#define WXDEBUG 1
34880_ACEOF
34881
34882 WXDEBUG_DEFINE="-D__WXDEBUG__"
34883else
34884 if test "$wxUSE_GTK" = 1 ; then
34885 WXDEBUG_DEFINE="-DGTK_NO_CHECK_CASTS"
34886 fi
34887fi
34888
34889if test "$wxUSE_MEM_TRACING" = "yes" ; then
34890 cat >>confdefs.h <<\_ACEOF
34891#define wxUSE_MEMORY_TRACING 1
34892_ACEOF
34893
34894 cat >>confdefs.h <<\_ACEOF
34895#define wxUSE_GLOBAL_MEMORY_OPERATORS 1
34896_ACEOF
34897
34898 cat >>confdefs.h <<\_ACEOF
34899#define wxUSE_DEBUG_NEW_ALWAYS 1
34900_ACEOF
34901
34902 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck"
34903fi
34904
34905if test "$wxUSE_DMALLOC" = "yes" ; then
34906 DMALLOC_LIBS="-ldmalloc"
34907fi
34908
34909PROFILE=
34910if test "$wxUSE_PROFILE" = "yes" ; then
34911 PROFILE=" -pg"
34912fi
34913
34914CODE_GEN_FLAGS=
34915CODE_GEN_FLAGS_CXX=
34916if test "$GCC" = "yes" ; then
34917 if test "$wxUSE_NO_RTTI" = "yes" ; then
34918 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-rtti"
34919 fi
34920 if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
34921 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-exceptions"
34922 fi
34923 if test "$wxUSE_PERMISSIVE" = "yes" ; then
34924 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fpermissive"
34925 fi
34926
34927 case "${host}" in
34928 powerpc*-*-aix* )
34929 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -mminimal-toc"
34930 ;;
34931 *-hppa* )
34932 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -ffunction-sections"
34933 ;;
34934 esac
34935fi
34936
34937OPTIMISE=
34938if test "$wxUSE_OPTIMISE" = "no" ; then
34939 if test "$GCC" = yes ; then
34940 OPTIMISE="-O0"
34941 fi
34942else
34943 if test "$GCC" = yes ; then
34944 OPTIMISE="-O2"
34945
34946 case "${host}" in
34947 i586-*-*|i686-*-* )
34948 OPTIMISE="${OPTIMISE} "
34949 ;;
34950 esac
34951 else
34952 OPTIMISE="-O"
34953 fi
34954fi
34955
34956
34957if test "x$WXWIN_COMPATIBILITY_2_2" = "xyes"; then
34958 cat >>confdefs.h <<\_ACEOF
34959#define WXWIN_COMPATIBILITY_2_2 1
34960_ACEOF
34961
34962
34963 WXWIN_COMPATIBILITY_2_4="yes"
34964fi
34965
34966if test "x$WXWIN_COMPATIBILITY_2_4" != "xno"; then
34967 cat >>confdefs.h <<\_ACEOF
34968#define WXWIN_COMPATIBILITY_2_4 1
34969_ACEOF
34970
34971fi
34972
34973
34974if test "$wxUSE_GUI" = "yes"; then
881bfcd6 34975 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
34976#define wxUSE_GUI 1
34977_ACEOF
34978
34979
370fd4c2 34980 fi
a848cd7e
SC
34981
34982
34983if test "$wxUSE_UNIX" = "yes"; then
34984 cat >>confdefs.h <<\_ACEOF
34985#define wxUSE_UNIX 1
34986_ACEOF
34987
34988fi
34989
34990
34991if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then
34992
34993 HAVE_DL_FUNCS=0
34994 HAVE_SHL_FUNCS=0
34995 if test "$wxUSE_DYNAMIC_LOADER" = "yes" -o "$wxUSE_DYNLIB_CLASS" = "yes" ; then
34996 if test "$USE_DARWIN" = 1; then
34997 HAVE_DL_FUNCS=1
34998 else
34999
35000for ac_func in dlopen
35001do
35002as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35003echo "$as_me:$LINENO: checking for $ac_func" >&5
35004echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35005if eval "test \"\${$as_ac_var+set}\" = set"; then
35006 echo $ECHO_N "(cached) $ECHO_C" >&6
35007else
35008 cat >conftest.$ac_ext <<_ACEOF
35009/* confdefs.h. */
35010_ACEOF
35011cat confdefs.h >>conftest.$ac_ext
35012cat >>conftest.$ac_ext <<_ACEOF
35013/* end confdefs.h. */
ac1cb8d3
VS
35014/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35015 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35016#define $ac_func innocuous_$ac_func
35017
a848cd7e
SC
35018/* System header to define __stub macros and hopefully few prototypes,
35019 which can conflict with char $ac_func (); below.
35020 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35021 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 35022
a848cd7e
SC
35023#ifdef __STDC__
35024# include <limits.h>
35025#else
35026# include <assert.h>
35027#endif
ac1cb8d3
VS
35028
35029#undef $ac_func
35030
a848cd7e
SC
35031/* Override any gcc2 internal prototype to avoid an error. */
35032#ifdef __cplusplus
35033extern "C"
35034{
35035#endif
35036/* We use char because int might match the return type of a gcc2
35037 builtin and then its argument prototype would still apply. */
35038char $ac_func ();
35039/* The GNU C library defines this for functions which it implements
35040 to always fail with ENOSYS. Some functions are actually named
35041 something starting with __ and the normal name is an alias. */
35042#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35043choke me
35044#else
35045char (*f) () = $ac_func;
35046#endif
35047#ifdef __cplusplus
35048}
35049#endif
35050
35051int
35052main ()
35053{
35054return f != $ac_func;
35055 ;
35056 return 0;
35057}
35058_ACEOF
35059rm -f conftest.$ac_objext conftest$ac_exeext
35060if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35061 (eval $ac_link) 2>conftest.er1
a848cd7e 35062 ac_status=$?
ac1cb8d3
VS
35063 grep -v '^ *+' conftest.er1 >conftest.err
35064 rm -f conftest.er1
35065 cat conftest.err >&5
a848cd7e
SC
35066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35067 (exit $ac_status); } &&
07158944 35068 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35070 (eval $ac_try) 2>&5
35071 ac_status=$?
35072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35073 (exit $ac_status); }; } &&
35074 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35076 (eval $ac_try) 2>&5
35077 ac_status=$?
35078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35079 (exit $ac_status); }; }; then
35080 eval "$as_ac_var=yes"
35081else
35082 echo "$as_me: failed program was:" >&5
35083sed 's/^/| /' conftest.$ac_ext >&5
35084
35085eval "$as_ac_var=no"
35086fi
ac1cb8d3
VS
35087rm -f conftest.err conftest.$ac_objext \
35088 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35089fi
35090echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35091echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35092if test `eval echo '${'$as_ac_var'}'` = yes; then
35093 cat >>confdefs.h <<_ACEOF
35094#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35095_ACEOF
35096
35097 cat >>confdefs.h <<\_ACEOF
35098#define HAVE_DLOPEN 1
35099_ACEOF
35100
35101 HAVE_DL_FUNCS=1
35102
35103else
35104
35105 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
35106echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
35107if test "${ac_cv_lib_dl_dlopen+set}" = set; then
35108 echo $ECHO_N "(cached) $ECHO_C" >&6
35109else
35110 ac_check_lib_save_LIBS=$LIBS
35111LIBS="-ldl $LIBS"
35112cat >conftest.$ac_ext <<_ACEOF
35113/* confdefs.h. */
35114_ACEOF
35115cat confdefs.h >>conftest.$ac_ext
35116cat >>conftest.$ac_ext <<_ACEOF
35117/* end confdefs.h. */
35118
35119/* Override any gcc2 internal prototype to avoid an error. */
35120#ifdef __cplusplus
35121extern "C"
35122#endif
35123/* We use char because int might match the return type of a gcc2
35124 builtin and then its argument prototype would still apply. */
35125char dlopen ();
35126int
35127main ()
35128{
35129dlopen ();
35130 ;
35131 return 0;
35132}
35133_ACEOF
35134rm -f conftest.$ac_objext conftest$ac_exeext
35135if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35136 (eval $ac_link) 2>conftest.er1
a848cd7e 35137 ac_status=$?
ac1cb8d3
VS
35138 grep -v '^ *+' conftest.er1 >conftest.err
35139 rm -f conftest.er1
35140 cat conftest.err >&5
a848cd7e
SC
35141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35142 (exit $ac_status); } &&
07158944 35143 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35145 (eval $ac_try) 2>&5
35146 ac_status=$?
35147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35148 (exit $ac_status); }; } &&
35149 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35151 (eval $ac_try) 2>&5
35152 ac_status=$?
35153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35154 (exit $ac_status); }; }; then
35155 ac_cv_lib_dl_dlopen=yes
35156else
35157 echo "$as_me: failed program was:" >&5
35158sed 's/^/| /' conftest.$ac_ext >&5
35159
35160ac_cv_lib_dl_dlopen=no
35161fi
ac1cb8d3
VS
35162rm -f conftest.err conftest.$ac_objext \
35163 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35164LIBS=$ac_check_lib_save_LIBS
35165fi
35166echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
35167echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
35168if test $ac_cv_lib_dl_dlopen = yes; then
35169
35170 cat >>confdefs.h <<\_ACEOF
35171#define HAVE_DLOPEN 1
35172_ACEOF
35173
35174 HAVE_DL_FUNCS=1
35175 DL_LINK=" -ldl$DL_LINK"
35176
35177else
35178
35179
35180for ac_func in shl_load
35181do
35182as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35183echo "$as_me:$LINENO: checking for $ac_func" >&5
35184echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35185if eval "test \"\${$as_ac_var+set}\" = set"; then
35186 echo $ECHO_N "(cached) $ECHO_C" >&6
35187else
35188 cat >conftest.$ac_ext <<_ACEOF
35189/* confdefs.h. */
35190_ACEOF
35191cat confdefs.h >>conftest.$ac_ext
35192cat >>conftest.$ac_ext <<_ACEOF
35193/* end confdefs.h. */
ac1cb8d3
VS
35194/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35195 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35196#define $ac_func innocuous_$ac_func
35197
a848cd7e
SC
35198/* System header to define __stub macros and hopefully few prototypes,
35199 which can conflict with char $ac_func (); below.
35200 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35201 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 35202
a848cd7e
SC
35203#ifdef __STDC__
35204# include <limits.h>
35205#else
35206# include <assert.h>
35207#endif
ac1cb8d3
VS
35208
35209#undef $ac_func
35210
a848cd7e
SC
35211/* Override any gcc2 internal prototype to avoid an error. */
35212#ifdef __cplusplus
35213extern "C"
35214{
35215#endif
35216/* We use char because int might match the return type of a gcc2
35217 builtin and then its argument prototype would still apply. */
35218char $ac_func ();
35219/* The GNU C library defines this for functions which it implements
35220 to always fail with ENOSYS. Some functions are actually named
35221 something starting with __ and the normal name is an alias. */
35222#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35223choke me
35224#else
35225char (*f) () = $ac_func;
35226#endif
35227#ifdef __cplusplus
35228}
35229#endif
35230
35231int
35232main ()
35233{
35234return f != $ac_func;
35235 ;
35236 return 0;
35237}
35238_ACEOF
35239rm -f conftest.$ac_objext conftest$ac_exeext
35240if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35241 (eval $ac_link) 2>conftest.er1
a848cd7e 35242 ac_status=$?
ac1cb8d3
VS
35243 grep -v '^ *+' conftest.er1 >conftest.err
35244 rm -f conftest.er1
35245 cat conftest.err >&5
a848cd7e
SC
35246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35247 (exit $ac_status); } &&
07158944 35248 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35250 (eval $ac_try) 2>&5
35251 ac_status=$?
35252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35253 (exit $ac_status); }; } &&
35254 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35256 (eval $ac_try) 2>&5
35257 ac_status=$?
35258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35259 (exit $ac_status); }; }; then
35260 eval "$as_ac_var=yes"
35261else
35262 echo "$as_me: failed program was:" >&5
35263sed 's/^/| /' conftest.$ac_ext >&5
35264
35265eval "$as_ac_var=no"
35266fi
ac1cb8d3
VS
35267rm -f conftest.err conftest.$ac_objext \
35268 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35269fi
35270echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35271echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35272if test `eval echo '${'$as_ac_var'}'` = yes; then
35273 cat >>confdefs.h <<_ACEOF
35274#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35275_ACEOF
35276
35277 cat >>confdefs.h <<\_ACEOF
35278#define HAVE_SHL_LOAD 1
35279_ACEOF
35280
35281 HAVE_SHL_FUNCS=1
35282
35283else
35284
35285 echo "$as_me:$LINENO: checking for dld in -lshl_load" >&5
35286echo $ECHO_N "checking for dld in -lshl_load... $ECHO_C" >&6
35287if test "${ac_cv_lib_shl_load_dld+set}" = set; then
35288 echo $ECHO_N "(cached) $ECHO_C" >&6
35289else
35290 ac_check_lib_save_LIBS=$LIBS
35291LIBS="-lshl_load $LIBS"
35292cat >conftest.$ac_ext <<_ACEOF
35293/* confdefs.h. */
35294_ACEOF
35295cat confdefs.h >>conftest.$ac_ext
35296cat >>conftest.$ac_ext <<_ACEOF
35297/* end confdefs.h. */
35298
35299/* Override any gcc2 internal prototype to avoid an error. */
35300#ifdef __cplusplus
35301extern "C"
35302#endif
35303/* We use char because int might match the return type of a gcc2
35304 builtin and then its argument prototype would still apply. */
35305char dld ();
35306int
35307main ()
35308{
35309dld ();
35310 ;
35311 return 0;
35312}
35313_ACEOF
35314rm -f conftest.$ac_objext conftest$ac_exeext
35315if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35316 (eval $ac_link) 2>conftest.er1
a848cd7e 35317 ac_status=$?
ac1cb8d3
VS
35318 grep -v '^ *+' conftest.er1 >conftest.err
35319 rm -f conftest.er1
35320 cat conftest.err >&5
a848cd7e
SC
35321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35322 (exit $ac_status); } &&
07158944 35323 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35325 (eval $ac_try) 2>&5
35326 ac_status=$?
35327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35328 (exit $ac_status); }; } &&
35329 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35331 (eval $ac_try) 2>&5
35332 ac_status=$?
35333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35334 (exit $ac_status); }; }; then
35335 ac_cv_lib_shl_load_dld=yes
35336else
35337 echo "$as_me: failed program was:" >&5
35338sed 's/^/| /' conftest.$ac_ext >&5
35339
35340ac_cv_lib_shl_load_dld=no
35341fi
ac1cb8d3
VS
35342rm -f conftest.err conftest.$ac_objext \
35343 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35344LIBS=$ac_check_lib_save_LIBS
35345fi
35346echo "$as_me:$LINENO: result: $ac_cv_lib_shl_load_dld" >&5
35347echo "${ECHO_T}$ac_cv_lib_shl_load_dld" >&6
35348if test $ac_cv_lib_shl_load_dld = yes; then
35349
35350 HAVE_SHL_FUNCS=1
35351 DL_LINK=" -ldld$DL_LINK"
35352
35353fi
35354
35355
35356fi
35357done
35358
35359
35360fi
35361
35362
35363fi
35364done
35365
35366
35367 if test "$HAVE_DL_FUNCS" = 1; then
35368
35369for ac_func in dlerror
35370do
35371as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35372echo "$as_me:$LINENO: checking for $ac_func" >&5
35373echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35374if eval "test \"\${$as_ac_var+set}\" = set"; then
35375 echo $ECHO_N "(cached) $ECHO_C" >&6
35376else
35377 cat >conftest.$ac_ext <<_ACEOF
35378/* confdefs.h. */
35379_ACEOF
35380cat confdefs.h >>conftest.$ac_ext
35381cat >>conftest.$ac_ext <<_ACEOF
35382/* end confdefs.h. */
ac1cb8d3
VS
35383/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35384 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35385#define $ac_func innocuous_$ac_func
35386
a848cd7e
SC
35387/* System header to define __stub macros and hopefully few prototypes,
35388 which can conflict with char $ac_func (); below.
35389 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35390 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 35391
a848cd7e
SC
35392#ifdef __STDC__
35393# include <limits.h>
35394#else
35395# include <assert.h>
35396#endif
ac1cb8d3
VS
35397
35398#undef $ac_func
35399
a848cd7e
SC
35400/* Override any gcc2 internal prototype to avoid an error. */
35401#ifdef __cplusplus
35402extern "C"
35403{
35404#endif
35405/* We use char because int might match the return type of a gcc2
35406 builtin and then its argument prototype would still apply. */
35407char $ac_func ();
35408/* The GNU C library defines this for functions which it implements
35409 to always fail with ENOSYS. Some functions are actually named
35410 something starting with __ and the normal name is an alias. */
35411#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35412choke me
35413#else
35414char (*f) () = $ac_func;
35415#endif
35416#ifdef __cplusplus
35417}
35418#endif
35419
35420int
35421main ()
35422{
35423return f != $ac_func;
35424 ;
35425 return 0;
35426}
35427_ACEOF
35428rm -f conftest.$ac_objext conftest$ac_exeext
35429if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35430 (eval $ac_link) 2>conftest.er1
a848cd7e 35431 ac_status=$?
ac1cb8d3
VS
35432 grep -v '^ *+' conftest.er1 >conftest.err
35433 rm -f conftest.er1
35434 cat conftest.err >&5
a848cd7e
SC
35435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35436 (exit $ac_status); } &&
07158944 35437 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35439 (eval $ac_try) 2>&5
35440 ac_status=$?
35441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35442 (exit $ac_status); }; } &&
35443 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35445 (eval $ac_try) 2>&5
35446 ac_status=$?
35447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35448 (exit $ac_status); }; }; then
35449 eval "$as_ac_var=yes"
35450else
35451 echo "$as_me: failed program was:" >&5
35452sed 's/^/| /' conftest.$ac_ext >&5
35453
35454eval "$as_ac_var=no"
35455fi
ac1cb8d3
VS
35456rm -f conftest.err conftest.$ac_objext \
35457 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35458fi
35459echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35460echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35461if test `eval echo '${'$as_ac_var'}'` = yes; then
35462 cat >>confdefs.h <<_ACEOF
35463#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35464_ACEOF
35465 cat >>confdefs.h <<\_ACEOF
35466#define HAVE_DLERROR 1
35467_ACEOF
35468
35469else
35470
35471 echo "$as_me:$LINENO: checking for dlerror in -ldl" >&5
35472echo $ECHO_N "checking for dlerror in -ldl... $ECHO_C" >&6
35473if test "${ac_cv_lib_dl_dlerror+set}" = set; then
35474 echo $ECHO_N "(cached) $ECHO_C" >&6
35475else
35476 ac_check_lib_save_LIBS=$LIBS
35477LIBS="-ldl $LIBS"
35478cat >conftest.$ac_ext <<_ACEOF
35479/* confdefs.h. */
35480_ACEOF
35481cat confdefs.h >>conftest.$ac_ext
35482cat >>conftest.$ac_ext <<_ACEOF
35483/* end confdefs.h. */
35484
35485/* Override any gcc2 internal prototype to avoid an error. */
35486#ifdef __cplusplus
35487extern "C"
35488#endif
35489/* We use char because int might match the return type of a gcc2
35490 builtin and then its argument prototype would still apply. */
35491char dlerror ();
35492int
35493main ()
35494{
35495dlerror ();
35496 ;
35497 return 0;
35498}
35499_ACEOF
35500rm -f conftest.$ac_objext conftest$ac_exeext
35501if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35502 (eval $ac_link) 2>conftest.er1
a848cd7e 35503 ac_status=$?
ac1cb8d3
VS
35504 grep -v '^ *+' conftest.er1 >conftest.err
35505 rm -f conftest.er1
35506 cat conftest.err >&5
a848cd7e
SC
35507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35508 (exit $ac_status); } &&
07158944 35509 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35511 (eval $ac_try) 2>&5
35512 ac_status=$?
35513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35514 (exit $ac_status); }; } &&
35515 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35517 (eval $ac_try) 2>&5
35518 ac_status=$?
35519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35520 (exit $ac_status); }; }; then
35521 ac_cv_lib_dl_dlerror=yes
35522else
35523 echo "$as_me: failed program was:" >&5
35524sed 's/^/| /' conftest.$ac_ext >&5
35525
35526ac_cv_lib_dl_dlerror=no
35527fi
ac1cb8d3
VS
35528rm -f conftest.err conftest.$ac_objext \
35529 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35530LIBS=$ac_check_lib_save_LIBS
35531fi
35532echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlerror" >&5
35533echo "${ECHO_T}$ac_cv_lib_dl_dlerror" >&6
35534if test $ac_cv_lib_dl_dlerror = yes; then
35535 cat >>confdefs.h <<\_ACEOF
35536#define HAVE_DLERROR 1
35537_ACEOF
35538
35539fi
35540
35541
35542
35543fi
35544done
35545
35546 fi
35547 fi
35548
35549 if test "$HAVE_DL_FUNCS" = 0; then
35550 if test "$HAVE_SHL_FUNCS" = 0; then
35551 if test "$USE_UNIX" = 1; then
35552 { echo "$as_me:$LINENO: WARNING: Missing dynamic loading support, several features will be disabled" >&5
35553echo "$as_me: WARNING: Missing dynamic loading support, several features will be disabled" >&2;}
35554 wxUSE_DYNAMIC_LOADER=no
35555 wxUSE_DYNLIB_CLASS=no
35556 else
35557 { echo "$as_me:$LINENO: WARNING: Assuming wxLibrary class works on this platform" >&5
35558echo "$as_me: WARNING: Assuming wxLibrary class works on this platform" >&2;}
35559 fi
35560 fi
35561 fi
35562 fi
35563fi
35564
35565if test "$wxUSE_DYNAMIC_LOADER" = "yes" ; then
35566 cat >>confdefs.h <<\_ACEOF
35567#define wxUSE_DYNAMIC_LOADER 1
35568_ACEOF
35569
35570fi
35571if test "$wxUSE_DYNLIB_CLASS" = "yes" ; then
35572 cat >>confdefs.h <<\_ACEOF
35573#define wxUSE_DYNLIB_CLASS 1
35574_ACEOF
35575
35576fi
35577
35578
35579
35580if test "$wxUSE_PLUGINS" = "yes" ; then
35581 if test "$wxUSE_SHARED" = "no" ; then
35582 { echo "$as_me:$LINENO: WARNING: plugins supported only in shared build, disabling" >&5
35583echo "$as_me: WARNING: plugins supported only in shared build, disabling" >&2;}
35584 wxUSE_PLUGINS=no
35585 fi
35586 if test "$wxUSE_MONOLITHIC" = "yes" ; then
35587 { echo "$as_me:$LINENO: WARNING: plugins not supported monolithic build, disabling" >&5
35588echo "$as_me: WARNING: plugins not supported monolithic build, disabling" >&2;}
35589 wxUSE_PLUGINS=no
35590 fi
35591 if test "$wxUSE_DYNLIB_CLASS" = "no" ; then
35592 { echo "$as_me:$LINENO: WARNING: plugins require wxDynamicLibrary, disabling" >&5
35593echo "$as_me: WARNING: plugins require wxDynamicLibrary, disabling" >&2;}
35594 wxUSE_PLUGINS=no
35595 fi
35596 if test "$wxUSE_PLUGINS" = "yes" ; then
35597 cat >>confdefs.h <<\_ACEOF
35598#define wxUSE_PLUGINS 1
35599_ACEOF
35600
35601 fi
35602fi
35603
35604
35605if test "$wxUSE_STL" = "yes"; then
35606 cat >>confdefs.h <<\_ACEOF
35607#define wxUSE_STL 1
35608_ACEOF
35609
35610fi
35611
35612if test "$wxUSE_APPLE_IEEE" = "yes"; then
35613 cat >>confdefs.h <<\_ACEOF
35614#define wxUSE_APPLE_IEEE 1
35615_ACEOF
35616
35617fi
35618
35619if test "$wxUSE_TIMER" = "yes"; then
35620 cat >>confdefs.h <<\_ACEOF
35621#define wxUSE_TIMER 1
35622_ACEOF
35623
35624fi
35625
35626WITH_PLUGIN_SDL=0
35627if test "$wxUSE_SOUND" = "yes"; then
35628 if test "$USE_UNIX" = "1" ; then
35629
35630for ac_header in sys/soundcard.h
35631do
35632as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
35633if eval "test \"\${$as_ac_Header+set}\" = set"; then
35634 echo "$as_me:$LINENO: checking for $ac_header" >&5
35635echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35636if eval "test \"\${$as_ac_Header+set}\" = set"; then
35637 echo $ECHO_N "(cached) $ECHO_C" >&6
35638fi
35639echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35640echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35641else
35642 # Is the header compilable?
35643echo "$as_me:$LINENO: checking $ac_header usability" >&5
35644echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
35645cat >conftest.$ac_ext <<_ACEOF
35646/* confdefs.h. */
35647_ACEOF
35648cat confdefs.h >>conftest.$ac_ext
35649cat >>conftest.$ac_ext <<_ACEOF
35650/* end confdefs.h. */
35651$ac_includes_default
35652#include <$ac_header>
35653_ACEOF
35654rm -f conftest.$ac_objext
35655if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 35656 (eval $ac_compile) 2>conftest.er1
a848cd7e 35657 ac_status=$?
ac1cb8d3
VS
35658 grep -v '^ *+' conftest.er1 >conftest.err
35659 rm -f conftest.er1
35660 cat conftest.err >&5
a848cd7e
SC
35661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35662 (exit $ac_status); } &&
07158944 35663 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35665 (eval $ac_try) 2>&5
35666 ac_status=$?
35667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35668 (exit $ac_status); }; } &&
35669 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
35670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35671 (eval $ac_try) 2>&5
35672 ac_status=$?
35673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35674 (exit $ac_status); }; }; then
35675 ac_header_compiler=yes
35676else
35677 echo "$as_me: failed program was:" >&5
35678sed 's/^/| /' conftest.$ac_ext >&5
35679
35680ac_header_compiler=no
35681fi
ac1cb8d3 35682rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
35683echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
35684echo "${ECHO_T}$ac_header_compiler" >&6
35685
35686# Is the header present?
35687echo "$as_me:$LINENO: checking $ac_header presence" >&5
35688echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
35689cat >conftest.$ac_ext <<_ACEOF
35690/* confdefs.h. */
35691_ACEOF
35692cat confdefs.h >>conftest.$ac_ext
35693cat >>conftest.$ac_ext <<_ACEOF
35694/* end confdefs.h. */
35695#include <$ac_header>
35696_ACEOF
35697if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
35698 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
35699 ac_status=$?
35700 grep -v '^ *+' conftest.er1 >conftest.err
35701 rm -f conftest.er1
35702 cat conftest.err >&5
35703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35704 (exit $ac_status); } >/dev/null; then
35705 if test -s conftest.err; then
35706 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 35707 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
35708 else
35709 ac_cpp_err=
35710 fi
35711else
35712 ac_cpp_err=yes
35713fi
35714if test -z "$ac_cpp_err"; then
35715 ac_header_preproc=yes
35716else
35717 echo "$as_me: failed program was:" >&5
35718sed 's/^/| /' conftest.$ac_ext >&5
35719
35720 ac_header_preproc=no
35721fi
35722rm -f conftest.err conftest.$ac_ext
35723echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
35724echo "${ECHO_T}$ac_header_preproc" >&6
35725
35726# So? What about this header?
ac1cb8d3
VS
35727case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
35728 yes:no: )
a848cd7e
SC
35729 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
35730echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
35731 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
35732echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
35733 ac_header_preproc=yes
a848cd7e 35734 ;;
ac1cb8d3 35735 no:yes:* )
a848cd7e
SC
35736 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
35737echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
35738 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
35739echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
35740 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
35741echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
35742 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
35743echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
35744 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
35745echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
35746 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
35747echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
35748 (
35749 cat <<\_ASBOX
ac1cb8d3
VS
35750## ----------------------------------------- ##
35751## Report this to wx-dev@lists.wxwidgets.org ##
35752## ----------------------------------------- ##
a848cd7e
SC
35753_ASBOX
35754 ) |
35755 sed "s/^/$as_me: WARNING: /" >&2
35756 ;;
35757esac
35758echo "$as_me:$LINENO: checking for $ac_header" >&5
35759echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35760if eval "test \"\${$as_ac_Header+set}\" = set"; then
35761 echo $ECHO_N "(cached) $ECHO_C" >&6
35762else
ac1cb8d3 35763 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
35764fi
35765echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35766echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35767
35768fi
35769if test `eval echo '${'$as_ac_Header'}'` = yes; then
35770 cat >>confdefs.h <<_ACEOF
35771#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
35772_ACEOF
35773
35774fi
35775
35776done
35777
35778
35779 if test "$wxUSE_LIBSDL" != "no"; then
35780
35781# Check whether --with-sdl-prefix or --without-sdl-prefix was given.
35782if test "${with_sdl_prefix+set}" = set; then
35783 withval="$with_sdl_prefix"
35784 sdl_prefix="$withval"
35785else
35786 sdl_prefix=""
35787fi;
35788
35789# Check whether --with-sdl-exec-prefix or --without-sdl-exec-prefix was given.
35790if test "${with_sdl_exec_prefix+set}" = set; then
35791 withval="$with_sdl_exec_prefix"
35792 sdl_exec_prefix="$withval"
35793else
35794 sdl_exec_prefix=""
35795fi;
35796# Check whether --enable-sdltest or --disable-sdltest was given.
35797if test "${enable_sdltest+set}" = set; then
35798 enableval="$enable_sdltest"
35799
35800else
35801 enable_sdltest=yes
35802fi;
35803
35804 if test x$sdl_exec_prefix != x ; then
35805 sdl_args="$sdl_args --exec-prefix=$sdl_exec_prefix"
35806 if test x${SDL_CONFIG+set} != xset ; then
35807 SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config
35808 fi
35809 fi
35810 if test x$sdl_prefix != x ; then
35811 sdl_args="$sdl_args --prefix=$sdl_prefix"
35812 if test x${SDL_CONFIG+set} != xset ; then
35813 SDL_CONFIG=$sdl_prefix/bin/sdl-config
35814 fi
35815 fi
35816
35817
35818 PATH="$prefix/bin:$prefix/usr/bin:$PATH"
35819 # Extract the first word of "sdl-config", so it can be a program name with args.
35820set dummy sdl-config; ac_word=$2
35821echo "$as_me:$LINENO: checking for $ac_word" >&5
35822echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
35823if test "${ac_cv_path_SDL_CONFIG+set}" = set; then
35824 echo $ECHO_N "(cached) $ECHO_C" >&6
35825else
35826 case $SDL_CONFIG in
35827 [\\/]* | ?:[\\/]*)
35828 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
35829 ;;
35830 *)
35831 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35832for as_dir in $PATH
35833do
35834 IFS=$as_save_IFS
35835 test -z "$as_dir" && as_dir=.
35836 for ac_exec_ext in '' $ac_executable_extensions; do
35837 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
35838 ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
35839 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
35840 break 2
35841 fi
35842done
35843done
35844
35845 test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
35846 ;;
35847esac
35848fi
35849SDL_CONFIG=$ac_cv_path_SDL_CONFIG
35850
35851if test -n "$SDL_CONFIG"; then
35852 echo "$as_me:$LINENO: result: $SDL_CONFIG" >&5
35853echo "${ECHO_T}$SDL_CONFIG" >&6
35854else
35855 echo "$as_me:$LINENO: result: no" >&5
35856echo "${ECHO_T}no" >&6
35857fi
35858
35859 min_sdl_version=1.2.0
35860 echo "$as_me:$LINENO: checking for SDL - version >= $min_sdl_version" >&5
35861echo $ECHO_N "checking for SDL - version >= $min_sdl_version... $ECHO_C" >&6
35862 no_sdl=""
35863 if test "$SDL_CONFIG" = "no" ; then
35864 no_sdl=yes
35865 else
35866 SDL_CFLAGS=`$SDL_CONFIG $sdlconf_args --cflags`
35867 SDL_LIBS=`$SDL_CONFIG $sdlconf_args --libs`
35868
35869 sdl_major_version=`$SDL_CONFIG $sdl_args --version | \
35870 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
35871 sdl_minor_version=`$SDL_CONFIG $sdl_args --version | \
35872 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
35873 sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
35874 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
35875 if test "x$enable_sdltest" = "xyes" ; then
35876 ac_save_CFLAGS="$CFLAGS"
94acd38e 35877 ac_save_CXXFLAGS="$CXXFLAGS"
a848cd7e
SC
35878 ac_save_LIBS="$LIBS"
35879 CFLAGS="$CFLAGS $SDL_CFLAGS"
94acd38e 35880 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
a848cd7e
SC
35881 LIBS="$LIBS $SDL_LIBS"
35882 rm -f conf.sdltest
35883 if test "$cross_compiling" = yes; then
35884 echo $ac_n "cross compiling; assumed OK... $ac_c"
35885else
35886 cat >conftest.$ac_ext <<_ACEOF
35887/* confdefs.h. */
35888_ACEOF
35889cat confdefs.h >>conftest.$ac_ext
35890cat >>conftest.$ac_ext <<_ACEOF
35891/* end confdefs.h. */
35892
35893#include <stdio.h>
35894#include <stdlib.h>
35895#include <string.h>
35896#include "SDL.h"
35897
35898char*
35899my_strdup (char *str)
35900{
35901 char *new_str;
35902
35903 if (str)
35904 {
35905 new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
35906 strcpy (new_str, str);
35907 }
35908 else
35909 new_str = NULL;
35910
35911 return new_str;
35912}
35913
35914int main (int argc, char *argv[])
35915{
35916 int major, minor, micro;
35917 char *tmp_version;
35918
35919 /* This hangs on some systems (?)
35920 system ("touch conf.sdltest");
35921 */
35922 { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
35923
35924 /* HP/UX 9 (%@#!) writes to sscanf strings */
35925 tmp_version = my_strdup("$min_sdl_version");
35926 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
35927 printf("%s, bad version string\n", "$min_sdl_version");
35928 exit(1);
35929 }
35930
35931 if (($sdl_major_version > major) ||
35932 (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
35933 (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
35934 {
35935 return 0;
35936 }
35937 else
35938 {
35939 printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
35940 printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
35941 printf("*** best to upgrade to the required version.\n");
35942 printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
35943 printf("*** to point to the correct copy of sdl-config, and remove the file\n");
35944 printf("*** config.cache before re-running configure\n");
35945 return 1;
35946 }
35947}
35948
35949
35950_ACEOF
35951rm -f conftest$ac_exeext
35952if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35953 (eval $ac_link) 2>&5
35954 ac_status=$?
35955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35956 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
35957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35958 (eval $ac_try) 2>&5
35959 ac_status=$?
35960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35961 (exit $ac_status); }; }; then
35962 :
35963else
35964 echo "$as_me: program exited with status $ac_status" >&5
35965echo "$as_me: failed program was:" >&5
35966sed 's/^/| /' conftest.$ac_ext >&5
35967
35968( exit $ac_status )
35969no_sdl=yes
35970fi
ac1cb8d3 35971rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
35972fi
35973 CFLAGS="$ac_save_CFLAGS"
94acd38e 35974 CXXFLAGS="$ac_save_CXXFLAGS"
a848cd7e
SC
35975 LIBS="$ac_save_LIBS"
35976 fi
35977 fi
35978 if test "x$no_sdl" = x ; then
35979 echo "$as_me:$LINENO: result: yes" >&5
35980echo "${ECHO_T}yes" >&6
35981
35982 EXTRALIBS_SDL="$SDL_LIBS"
35983 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
35984 cat >>confdefs.h <<\_ACEOF
35985#define wxUSE_LIBSDL 1
35986_ACEOF
35987
35988
35989 else
35990 echo "$as_me:$LINENO: result: no" >&5
35991echo "${ECHO_T}no" >&6
35992 if test "$SDL_CONFIG" = "no" ; then
35993 echo "*** The sdl-config script installed by SDL could not be found"
35994 echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
35995 echo "*** your path, or set the SDL_CONFIG environment variable to the"
35996 echo "*** full path to sdl-config."
35997 else
35998 if test -f conf.sdltest ; then
35999 :
36000 else
36001 echo "*** Could not run SDL test program, checking why..."
36002 CFLAGS="$CFLAGS $SDL_CFLAGS"
94acd38e 36003 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
a848cd7e
SC
36004 LIBS="$LIBS $SDL_LIBS"
36005 cat >conftest.$ac_ext <<_ACEOF
36006/* confdefs.h. */
36007_ACEOF
36008cat confdefs.h >>conftest.$ac_ext
36009cat >>conftest.$ac_ext <<_ACEOF
36010/* end confdefs.h. */
36011
36012#include <stdio.h>
36013#include "SDL.h"
36014
36015int main(int argc, char *argv[])
36016{ return 0; }
36017#undef main
36018#define main K_and_R_C_main
36019
36020int
36021main ()
36022{
36023 return 0;
36024 ;
36025 return 0;
36026}
36027_ACEOF
36028rm -f conftest.$ac_objext conftest$ac_exeext
36029if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36030 (eval $ac_link) 2>conftest.er1
a848cd7e 36031 ac_status=$?
ac1cb8d3
VS
36032 grep -v '^ *+' conftest.er1 >conftest.err
36033 rm -f conftest.er1
36034 cat conftest.err >&5
a848cd7e
SC
36035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36036 (exit $ac_status); } &&
07158944 36037 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36039 (eval $ac_try) 2>&5
36040 ac_status=$?
36041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36042 (exit $ac_status); }; } &&
36043 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36045 (eval $ac_try) 2>&5
36046 ac_status=$?
36047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36048 (exit $ac_status); }; }; then
36049 echo "*** The test program compiled, but did not run. This usually means"
36050 echo "*** that the run-time linker is not finding SDL or finding the wrong"
36051 echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
36052 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
36053 echo "*** to the installed location Also, make sure you have run ldconfig if that"
36054 echo "*** is required on your system"
36055 echo "***"
36056 echo "*** If you have an old version installed, it is best to remove it, although"
36057 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
36058else
36059 echo "$as_me: failed program was:" >&5
36060sed 's/^/| /' conftest.$ac_ext >&5
36061
36062 echo "*** The test program failed to compile or link. See the file config.log for the"
36063 echo "*** exact error that occured. This usually means SDL was incorrectly installed"
36064 echo "*** or that you have moved SDL since it was installed. In the latter case, you"
36065 echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
36066fi
ac1cb8d3
VS
36067rm -f conftest.err conftest.$ac_objext \
36068 conftest$ac_exeext conftest.$ac_ext
a848cd7e 36069 CFLAGS="$ac_save_CFLAGS"
94acd38e 36070 CXXFLAGS="$ac_save_CXXFLAGS"
a848cd7e
SC
36071 LIBS="$ac_save_LIBS"
36072 fi
36073 fi
36074 SDL_CFLAGS=""
36075 SDL_LIBS=""
36076 wxUSE_LIBSDL="no"
36077 fi
36078
36079
36080 rm -f conf.sdltest
36081
36082 if test "$wxUSE_LIBSDL" = "yes" -a "$wxUSE_PLUGINS" = "yes" ; then
36083 WITH_PLUGIN_SDL=1
36084 fi
36085 fi
36086 fi
36087
36088 cat >>confdefs.h <<\_ACEOF
36089#define wxUSE_SOUND 1
36090_ACEOF
36091
36092 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sound"
36093fi
36094
d1c38808
VZ
36095if test "$WXGTK20" = 1; then
36096 if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
36097 if test "$wxUSE_LIBGNOMEPRINT" = "yes" ; then
36098
36099
36100 succeeded=no
36101
36102 if test -z "$PKG_CONFIG"; then
36103 # Extract the first word of "pkg-config", so it can be a program name with args.
36104set dummy pkg-config; ac_word=$2
36105echo "$as_me:$LINENO: checking for $ac_word" >&5
36106echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
36107if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
36108 echo $ECHO_N "(cached) $ECHO_C" >&6
36109else
36110 case $PKG_CONFIG in
36111 [\\/]* | ?:[\\/]*)
36112 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
36113 ;;
36114 *)
36115 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36116for as_dir in $PATH
36117do
36118 IFS=$as_save_IFS
36119 test -z "$as_dir" && as_dir=.
36120 for ac_exec_ext in '' $ac_executable_extensions; do
36121 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
36122 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
36123 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
36124 break 2
36125 fi
36126done
36127done
36128
36129 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
36130 ;;
36131esac
36132fi
36133PKG_CONFIG=$ac_cv_path_PKG_CONFIG
36134
36135if test -n "$PKG_CONFIG"; then
36136 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
36137echo "${ECHO_T}$PKG_CONFIG" >&6
36138else
36139 echo "$as_me:$LINENO: result: no" >&5
36140echo "${ECHO_T}no" >&6
36141fi
36142
36143 fi
36144
36145 if test "$PKG_CONFIG" = "no" ; then
36146 echo "*** The pkg-config script could not be found. Make sure it is"
36147 echo "*** in your path, or set the PKG_CONFIG environment variable"
36148 echo "*** to the full path to pkg-config."
36149 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
36150 else
36151 PKG_CONFIG_MIN_VERSION=0.9.0
36152 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
ffa762ff
VS
36153 echo "$as_me:$LINENO: checking for libgnomeprintui-2.2 >= 2.8" >&5
36154echo $ECHO_N "checking for libgnomeprintui-2.2 >= 2.8... $ECHO_C" >&6
d1c38808 36155
ffa762ff 36156 if $PKG_CONFIG --exists "libgnomeprintui-2.2 >= 2.8" ; then
d1c38808
VZ
36157 echo "$as_me:$LINENO: result: yes" >&5
36158echo "${ECHO_T}yes" >&6
36159 succeeded=yes
36160
36161 echo "$as_me:$LINENO: checking LIBGNOMEPRINTUI_CFLAGS" >&5
36162echo $ECHO_N "checking LIBGNOMEPRINTUI_CFLAGS... $ECHO_C" >&6
ffa762ff 36163 LIBGNOMEPRINTUI_CFLAGS=`$PKG_CONFIG --cflags "libgnomeprintui-2.2 >= 2.8"`
d1c38808
VZ
36164 echo "$as_me:$LINENO: result: $LIBGNOMEPRINTUI_CFLAGS" >&5
36165echo "${ECHO_T}$LIBGNOMEPRINTUI_CFLAGS" >&6
36166
36167 echo "$as_me:$LINENO: checking LIBGNOMEPRINTUI_LIBS" >&5
36168echo $ECHO_N "checking LIBGNOMEPRINTUI_LIBS... $ECHO_C" >&6
ffa762ff 36169 LIBGNOMEPRINTUI_LIBS=`$PKG_CONFIG --libs "libgnomeprintui-2.2 >= 2.8"`
d1c38808
VZ
36170 echo "$as_me:$LINENO: result: $LIBGNOMEPRINTUI_LIBS" >&5
36171echo "${ECHO_T}$LIBGNOMEPRINTUI_LIBS" >&6
36172 else
36173 LIBGNOMEPRINTUI_CFLAGS=""
36174 LIBGNOMEPRINTUI_LIBS=""
36175 ## If we have a custom action on failure, don't print errors, but
36176 ## do set a variable so people can do so.
ffa762ff 36177 LIBGNOMEPRINTUI_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libgnomeprintui-2.2 >= 2.8"`
d1c38808
VZ
36178
36179 fi
36180
36181
36182
36183 else
36184 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
36185 echo "*** See http://www.freedesktop.org/software/pkgconfig"
36186 fi
36187 fi
36188
36189 if test $succeeded = yes; then
36190
d1c38808
VZ
36191 CXXFLAGS="$CXXFLAGS $LIBGNOMEPRINTUI_CFLAGS"
36192 cat >>confdefs.h <<\_ACEOF
36193#define wxUSE_LIBGNOMEPRINT 1
36194_ACEOF
36195
36196
36197 else
36198
36199 { echo "$as_me:$LINENO: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&5
36200echo "$as_me: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&2;}
36201 wxUSE_LIBGNOMEPRINT="no"
36202
36203
36204 fi
36205
36206 fi
36207 fi
36208fi
36209
36210
a848cd7e
SC
36211if test "$wxUSE_CMDLINE_PARSER" = "yes"; then
36212 cat >>confdefs.h <<\_ACEOF
36213#define wxUSE_CMDLINE_PARSER 1
36214_ACEOF
36215
36216fi
36217
36218if test "$wxUSE_STOPWATCH" = "yes"; then
36219 cat >>confdefs.h <<\_ACEOF
36220#define wxUSE_STOPWATCH 1
36221_ACEOF
36222
36223fi
36224
36225if test "$wxUSE_DATETIME" = "yes"; then
36226 cat >>confdefs.h <<\_ACEOF
36227#define wxUSE_DATETIME 1
36228_ACEOF
36229
36230fi
36231
36232if test "$wxUSE_FILE" = "yes"; then
36233 cat >>confdefs.h <<\_ACEOF
36234#define wxUSE_FILE 1
36235_ACEOF
36236
36237fi
36238
36239if test "$wxUSE_FFILE" = "yes"; then
36240 cat >>confdefs.h <<\_ACEOF
36241#define wxUSE_FFILE 1
36242_ACEOF
36243
36244fi
36245
36246if test "$wxUSE_FILESYSTEM" = "yes"; then
36247 cat >>confdefs.h <<\_ACEOF
36248#define wxUSE_FILESYSTEM 1
36249_ACEOF
36250
36251fi
36252
36253if test "$wxUSE_FS_ZIP" = "yes"; then
36254 cat >>confdefs.h <<\_ACEOF
36255#define wxUSE_FS_ZIP 1
36256_ACEOF
36257
36258fi
36259
9e8e867f 36260if test "$wxUSE_ARCHIVE_STREAMS" = "yes"; then
a848cd7e 36261 cat >>confdefs.h <<\_ACEOF
9e8e867f 36262#define wxUSE_ARCHIVE_STREAMS 1
81f90336
MW
36263_ACEOF
36264
36265fi
36266
36267if test "$wxUSE_ZIPSTREAM" = "yes"; then
9e8e867f 36268 if test "$wxUSE_ARCHIVE_STREAMS" != "yes"; then
81f90336
MW
36269 { echo "$as_me:$LINENO: WARNING: wxZip requires wxArchive... disabled" >&5
36270echo "$as_me: WARNING: wxZip requires wxArchive... disabled" >&2;}
36271 elif test "$wxUSE_ZLIB" = "no"; then
36272 { echo "$as_me:$LINENO: WARNING: wxZip requires wxZlib... disabled" >&5
36273echo "$as_me: WARNING: wxZip requires wxZlib... disabled" >&2;}
36274 else
36275 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
36276#define wxUSE_ZIPSTREAM 1
36277_ACEOF
36278
81f90336 36279 fi
a848cd7e
SC
36280fi
36281
a848cd7e
SC
36282if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
36283 cat >>confdefs.h <<\_ACEOF
36284#define wxUSE_ON_FATAL_EXCEPTION 1
36285_ACEOF
36286
36287fi
36288
eaff0f0d
VZ
36289if test "$wxUSE_STACKWALKER" = "yes"; then
36290 cat >>confdefs.h <<\_ACEOF
36291#define wxUSE_STACKWALKER 1
36292_ACEOF
36293
36294fi
36295
a848cd7e
SC
36296if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
36297 cat >>confdefs.h <<\_ACEOF
36298#define wxUSE_SNGLINST_CHECKER 1
36299_ACEOF
36300
36301fi
36302
36303if test "$wxUSE_BUSYINFO" = "yes"; then
36304 cat >>confdefs.h <<\_ACEOF
36305#define wxUSE_BUSYINFO 1
36306_ACEOF
36307
36308fi
36309
36310if test "$wxUSE_STD_IOSTREAM" = "yes"; then
36311 cat >>confdefs.h <<\_ACEOF
36312#define wxUSE_STD_IOSTREAM 1
36313_ACEOF
36314
36315fi
36316
07158944
VZ
36317if test "$wxUSE_STDPATHS" = "yes"; then
36318 cat >>confdefs.h <<\_ACEOF
36319#define wxUSE_STDPATHS 1
36320_ACEOF
36321
36322fi
36323
a848cd7e
SC
36324if test "$wxUSE_TEXTBUFFER" = "yes"; then
36325 cat >>confdefs.h <<\_ACEOF
36326#define wxUSE_TEXTBUFFER 1
36327_ACEOF
36328
36329fi
36330
36331if test "$wxUSE_TEXTFILE" = "yes"; then
36332 if test "$wxUSE_FILE" != "yes" -o "$wxUSE_TEXTBUFFER" != "yes" ; then
36333 { echo "$as_me:$LINENO: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&5
36334echo "$as_me: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&2;}
36335 else
36336 cat >>confdefs.h <<\_ACEOF
36337#define wxUSE_TEXTFILE 1
36338_ACEOF
36339
36340 fi
36341fi
36342
36343if test "$wxUSE_CONFIG" = "yes" ; then
36344 if test "$wxUSE_TEXTFILE" != "yes"; then
36345 { echo "$as_me:$LINENO: WARNING: wxConfig requires wxTextFile... disabled" >&5
36346echo "$as_me: WARNING: wxConfig requires wxTextFile... disabled" >&2;}
36347 else
36348 cat >>confdefs.h <<\_ACEOF
36349#define wxUSE_CONFIG 1
89be85c2
VS
36350_ACEOF
36351
36352 cat >>confdefs.h <<\_ACEOF
36353#define wxUSE_CONFIG_NATIVE 1
a848cd7e
SC
36354_ACEOF
36355
36356 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config"
36357 fi
36358fi
36359
36360if test "$wxUSE_INTL" = "yes" ; then
36361 if test "$wxUSE_FILE" != "yes"; then
36362 { echo "$as_me:$LINENO: WARNING: I18n code requires wxFile... disabled" >&5
36363echo "$as_me: WARNING: I18n code requires wxFile... disabled" >&2;}
36364 else
36365 cat >>confdefs.h <<\_ACEOF
36366#define wxUSE_INTL 1
36367_ACEOF
36368
36369 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat"
36370 GUIDIST="$GUIDIST INTL_DIST"
36371 fi
36372fi
36373
36374if test "$wxUSE_LOG" = "yes"; then
36375 cat >>confdefs.h <<\_ACEOF
36376#define wxUSE_LOG 1
36377_ACEOF
36378
36379
36380 if test "$wxUSE_LOGGUI" = "yes"; then
36381 cat >>confdefs.h <<\_ACEOF
36382#define wxUSE_LOGGUI 1
36383_ACEOF
36384
36385 fi
36386
36387 if test "$wxUSE_LOGWINDOW" = "yes"; then
36388 cat >>confdefs.h <<\_ACEOF
36389#define wxUSE_LOGWINDOW 1
36390_ACEOF
36391
36392 fi
36393
36394 if test "$wxUSE_LOGDIALOG" = "yes"; then
36395 cat >>confdefs.h <<\_ACEOF
36396#define wxUSE_LOG_DIALOG 1
36397_ACEOF
36398
36399 fi
0b78747f
MW
36400
36401 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS keyboard"
a848cd7e
SC
36402fi
36403
36404if test "$wxUSE_LONGLONG" = "yes"; then
36405 cat >>confdefs.h <<\_ACEOF
36406#define wxUSE_LONGLONG 1
36407_ACEOF
36408
36409fi
36410
36411if test "$wxUSE_GEOMETRY" = "yes"; then
36412 cat >>confdefs.h <<\_ACEOF
36413#define wxUSE_GEOMETRY 1
36414_ACEOF
36415
36416fi
36417
a848cd7e
SC
36418if test "$wxUSE_STREAMS" = "yes" ; then
36419 cat >>confdefs.h <<\_ACEOF
36420#define wxUSE_STREAMS 1
36421_ACEOF
36422
36423fi
36424
36425
36426if test "$wxUSE_DATETIME" = "yes"; then
36427
36428for ac_func in strptime
36429do
36430as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36431echo "$as_me:$LINENO: checking for $ac_func" >&5
36432echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36433if eval "test \"\${$as_ac_var+set}\" = set"; then
36434 echo $ECHO_N "(cached) $ECHO_C" >&6
36435else
36436 cat >conftest.$ac_ext <<_ACEOF
36437/* confdefs.h. */
36438_ACEOF
36439cat confdefs.h >>conftest.$ac_ext
36440cat >>conftest.$ac_ext <<_ACEOF
36441/* end confdefs.h. */
ac1cb8d3
VS
36442/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36443 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36444#define $ac_func innocuous_$ac_func
36445
a848cd7e
SC
36446/* System header to define __stub macros and hopefully few prototypes,
36447 which can conflict with char $ac_func (); below.
36448 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36449 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 36450
a848cd7e
SC
36451#ifdef __STDC__
36452# include <limits.h>
36453#else
36454# include <assert.h>
36455#endif
ac1cb8d3
VS
36456
36457#undef $ac_func
36458
a848cd7e
SC
36459/* Override any gcc2 internal prototype to avoid an error. */
36460#ifdef __cplusplus
36461extern "C"
36462{
36463#endif
36464/* We use char because int might match the return type of a gcc2
36465 builtin and then its argument prototype would still apply. */
36466char $ac_func ();
36467/* The GNU C library defines this for functions which it implements
36468 to always fail with ENOSYS. Some functions are actually named
36469 something starting with __ and the normal name is an alias. */
36470#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36471choke me
36472#else
36473char (*f) () = $ac_func;
36474#endif
36475#ifdef __cplusplus
36476}
36477#endif
36478
36479int
36480main ()
36481{
36482return f != $ac_func;
36483 ;
36484 return 0;
36485}
36486_ACEOF
36487rm -f conftest.$ac_objext conftest$ac_exeext
36488if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36489 (eval $ac_link) 2>conftest.er1
a848cd7e 36490 ac_status=$?
ac1cb8d3
VS
36491 grep -v '^ *+' conftest.er1 >conftest.err
36492 rm -f conftest.er1
36493 cat conftest.err >&5
a848cd7e
SC
36494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36495 (exit $ac_status); } &&
07158944 36496 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36498 (eval $ac_try) 2>&5
36499 ac_status=$?
36500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36501 (exit $ac_status); }; } &&
36502 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36504 (eval $ac_try) 2>&5
36505 ac_status=$?
36506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36507 (exit $ac_status); }; }; then
36508 eval "$as_ac_var=yes"
36509else
36510 echo "$as_me: failed program was:" >&5
36511sed 's/^/| /' conftest.$ac_ext >&5
36512
36513eval "$as_ac_var=no"
36514fi
ac1cb8d3
VS
36515rm -f conftest.err conftest.$ac_objext \
36516 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36517fi
36518echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36519echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36520if test `eval echo '${'$as_ac_var'}'` = yes; then
36521 cat >>confdefs.h <<_ACEOF
36522#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36523_ACEOF
36524
36525fi
36526done
36527
36528
36529 echo "$as_me:$LINENO: checking for timezone variable in <time.h>" >&5
36530echo $ECHO_N "checking for timezone variable in <time.h>... $ECHO_C" >&6
36531if test "${wx_cv_var_timezone+set}" = set; then
36532 echo $ECHO_N "(cached) $ECHO_C" >&6
36533else
36534
36535 cat >conftest.$ac_ext <<_ACEOF
36536/* confdefs.h. */
36537_ACEOF
36538cat confdefs.h >>conftest.$ac_ext
36539cat >>conftest.$ac_ext <<_ACEOF
36540/* end confdefs.h. */
36541
36542 #include <time.h>
36543
36544int
36545main ()
36546{
36547
36548 int tz;
36549 tz = timezone;
36550
36551 ;
36552 return 0;
36553}
36554_ACEOF
36555rm -f conftest.$ac_objext
36556if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 36557 (eval $ac_compile) 2>conftest.er1
a848cd7e 36558 ac_status=$?
ac1cb8d3
VS
36559 grep -v '^ *+' conftest.er1 >conftest.err
36560 rm -f conftest.er1
36561 cat conftest.err >&5
a848cd7e
SC
36562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36563 (exit $ac_status); } &&
07158944 36564 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36566 (eval $ac_try) 2>&5
36567 ac_status=$?
36568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36569 (exit $ac_status); }; } &&
36570 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
36571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36572 (eval $ac_try) 2>&5
36573 ac_status=$?
36574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36575 (exit $ac_status); }; }; then
36576
36577 wx_cv_var_timezone=timezone
36578
36579else
36580 echo "$as_me: failed program was:" >&5
36581sed 's/^/| /' conftest.$ac_ext >&5
36582
36583
36584 cat >conftest.$ac_ext <<_ACEOF
36585/* confdefs.h. */
36586_ACEOF
36587cat confdefs.h >>conftest.$ac_ext
36588cat >>conftest.$ac_ext <<_ACEOF
36589/* end confdefs.h. */
36590
36591 #include <time.h>
36592
36593int
36594main ()
36595{
36596
36597 int tz;
36598 tz = _timezone;
36599
36600 ;
36601 return 0;
36602}
36603_ACEOF
36604rm -f conftest.$ac_objext
36605if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 36606 (eval $ac_compile) 2>conftest.er1
a848cd7e 36607 ac_status=$?
ac1cb8d3
VS
36608 grep -v '^ *+' conftest.er1 >conftest.err
36609 rm -f conftest.er1
36610 cat conftest.err >&5
a848cd7e
SC
36611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36612 (exit $ac_status); } &&
07158944 36613 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36615 (eval $ac_try) 2>&5
36616 ac_status=$?
36617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36618 (exit $ac_status); }; } &&
36619 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
36620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36621 (eval $ac_try) 2>&5
36622 ac_status=$?
36623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36624 (exit $ac_status); }; }; then
36625
36626 wx_cv_var_timezone=_timezone
36627
36628else
36629 echo "$as_me: failed program was:" >&5
36630sed 's/^/| /' conftest.$ac_ext >&5
36631
36632
36633 cat >conftest.$ac_ext <<_ACEOF
36634/* confdefs.h. */
36635_ACEOF
36636cat confdefs.h >>conftest.$ac_ext
36637cat >>conftest.$ac_ext <<_ACEOF
36638/* end confdefs.h. */
36639
36640 #include <time.h>
36641
36642int
36643main ()
36644{
36645
36646 int tz;
36647 tz = __timezone;
36648
36649 ;
36650 return 0;
36651}
36652_ACEOF
36653rm -f conftest.$ac_objext
36654if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 36655 (eval $ac_compile) 2>conftest.er1
a848cd7e 36656 ac_status=$?
ac1cb8d3
VS
36657 grep -v '^ *+' conftest.er1 >conftest.err
36658 rm -f conftest.er1
36659 cat conftest.err >&5
a848cd7e
SC
36660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36661 (exit $ac_status); } &&
07158944 36662 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36664 (eval $ac_try) 2>&5
36665 ac_status=$?
36666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36667 (exit $ac_status); }; } &&
36668 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
36669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36670 (eval $ac_try) 2>&5
36671 ac_status=$?
36672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36673 (exit $ac_status); }; }; then
36674
36675 wx_cv_var_timezone=__timezone
36676
36677else
36678 echo "$as_me: failed program was:" >&5
36679sed 's/^/| /' conftest.$ac_ext >&5
36680
36681
36682 if test "$USE_DOS" = 0 ; then
36683 { echo "$as_me:$LINENO: WARNING: no timezone variable" >&5
36684echo "$as_me: WARNING: no timezone variable" >&2;}
36685 fi
36686
36687
36688fi
ac1cb8d3 36689rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
36690
36691
36692fi
ac1cb8d3 36693rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
36694
36695
36696fi
ac1cb8d3 36697rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
36698
36699
36700fi
36701echo "$as_me:$LINENO: result: $wx_cv_var_timezone" >&5
36702echo "${ECHO_T}$wx_cv_var_timezone" >&6
36703
36704 if test "x$wx_cv_var_timezone" != x ; then
36705 cat >>confdefs.h <<_ACEOF
36706#define WX_TIMEZONE $wx_cv_var_timezone
36707_ACEOF
36708
36709 fi
36710
36711
36712for ac_func in localtime
36713do
36714as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36715echo "$as_me:$LINENO: checking for $ac_func" >&5
36716echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36717if eval "test \"\${$as_ac_var+set}\" = set"; then
36718 echo $ECHO_N "(cached) $ECHO_C" >&6
36719else
36720 cat >conftest.$ac_ext <<_ACEOF
36721/* confdefs.h. */
36722_ACEOF
36723cat confdefs.h >>conftest.$ac_ext
36724cat >>conftest.$ac_ext <<_ACEOF
36725/* end confdefs.h. */
ac1cb8d3
VS
36726/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36727 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36728#define $ac_func innocuous_$ac_func
36729
a848cd7e
SC
36730/* System header to define __stub macros and hopefully few prototypes,
36731 which can conflict with char $ac_func (); below.
36732 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36733 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 36734
a848cd7e
SC
36735#ifdef __STDC__
36736# include <limits.h>
36737#else
36738# include <assert.h>
36739#endif
ac1cb8d3
VS
36740
36741#undef $ac_func
36742
a848cd7e
SC
36743/* Override any gcc2 internal prototype to avoid an error. */
36744#ifdef __cplusplus
36745extern "C"
36746{
36747#endif
36748/* We use char because int might match the return type of a gcc2
36749 builtin and then its argument prototype would still apply. */
36750char $ac_func ();
36751/* The GNU C library defines this for functions which it implements
36752 to always fail with ENOSYS. Some functions are actually named
36753 something starting with __ and the normal name is an alias. */
36754#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36755choke me
36756#else
36757char (*f) () = $ac_func;
36758#endif
36759#ifdef __cplusplus
36760}
36761#endif
36762
36763int
36764main ()
36765{
36766return f != $ac_func;
36767 ;
36768 return 0;
36769}
36770_ACEOF
36771rm -f conftest.$ac_objext conftest$ac_exeext
36772if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36773 (eval $ac_link) 2>conftest.er1
a848cd7e 36774 ac_status=$?
ac1cb8d3
VS
36775 grep -v '^ *+' conftest.er1 >conftest.err
36776 rm -f conftest.er1
36777 cat conftest.err >&5
a848cd7e
SC
36778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36779 (exit $ac_status); } &&
07158944 36780 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36782 (eval $ac_try) 2>&5
36783 ac_status=$?
36784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36785 (exit $ac_status); }; } &&
36786 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36788 (eval $ac_try) 2>&5
36789 ac_status=$?
36790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36791 (exit $ac_status); }; }; then
36792 eval "$as_ac_var=yes"
36793else
36794 echo "$as_me: failed program was:" >&5
36795sed 's/^/| /' conftest.$ac_ext >&5
36796
36797eval "$as_ac_var=no"
36798fi
ac1cb8d3
VS
36799rm -f conftest.err conftest.$ac_objext \
36800 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36801fi
36802echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36803echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36804if test `eval echo '${'$as_ac_var'}'` = yes; then
36805 cat >>confdefs.h <<_ACEOF
36806#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36807_ACEOF
36808
36809fi
36810done
36811
36812
36813 if test "$ac_cv_func_localtime" = "yes"; then
36814 echo "$as_me:$LINENO: checking for tm_gmtoff in struct tm" >&5
36815echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6
36816if test "${wx_cv_struct_tm_has_gmtoff+set}" = set; then
36817 echo $ECHO_N "(cached) $ECHO_C" >&6
36818else
36819
36820 cat >conftest.$ac_ext <<_ACEOF
36821/* confdefs.h. */
36822_ACEOF
36823cat confdefs.h >>conftest.$ac_ext
36824cat >>conftest.$ac_ext <<_ACEOF
36825/* end confdefs.h. */
36826
36827 #include <time.h>
36828
36829int
36830main ()
36831{
36832
36833 struct tm tm;
36834 tm.tm_gmtoff++;
36835
36836 ;
36837 return 0;
36838}
36839_ACEOF
36840rm -f conftest.$ac_objext
36841if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 36842 (eval $ac_compile) 2>conftest.er1
a848cd7e 36843 ac_status=$?
ac1cb8d3
VS
36844 grep -v '^ *+' conftest.er1 >conftest.err
36845 rm -f conftest.er1
36846 cat conftest.err >&5
a848cd7e
SC
36847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36848 (exit $ac_status); } &&
07158944 36849 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36851 (eval $ac_try) 2>&5
36852 ac_status=$?
36853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36854 (exit $ac_status); }; } &&
36855 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
36856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36857 (eval $ac_try) 2>&5
36858 ac_status=$?
36859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36860 (exit $ac_status); }; }; then
36861
36862 wx_cv_struct_tm_has_gmtoff=yes
36863
36864else
36865 echo "$as_me: failed program was:" >&5
36866sed 's/^/| /' conftest.$ac_ext >&5
36867
36868wx_cv_struct_tm_has_gmtoff=no
36869
36870fi
ac1cb8d3 36871rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
36872
36873fi
36874echo "$as_me:$LINENO: result: $wx_cv_struct_tm_has_gmtoff" >&5
36875echo "${ECHO_T}$wx_cv_struct_tm_has_gmtoff" >&6
36876 fi
36877
36878 if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then
36879 cat >>confdefs.h <<\_ACEOF
36880#define WX_GMTOFF_IN_TM 1
36881_ACEOF
36882
36883 fi
36884
36885
36886
36887for ac_func in gettimeofday ftime
36888do
36889as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36890echo "$as_me:$LINENO: checking for $ac_func" >&5
36891echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36892if eval "test \"\${$as_ac_var+set}\" = set"; then
36893 echo $ECHO_N "(cached) $ECHO_C" >&6
36894else
36895 cat >conftest.$ac_ext <<_ACEOF
36896/* confdefs.h. */
36897_ACEOF
36898cat confdefs.h >>conftest.$ac_ext
36899cat >>conftest.$ac_ext <<_ACEOF
36900/* end confdefs.h. */
ac1cb8d3
VS
36901/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36902 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36903#define $ac_func innocuous_$ac_func
36904
a848cd7e
SC
36905/* System header to define __stub macros and hopefully few prototypes,
36906 which can conflict with char $ac_func (); below.
36907 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36908 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 36909
a848cd7e
SC
36910#ifdef __STDC__
36911# include <limits.h>
36912#else
36913# include <assert.h>
36914#endif
ac1cb8d3
VS
36915
36916#undef $ac_func
36917
a848cd7e
SC
36918/* Override any gcc2 internal prototype to avoid an error. */
36919#ifdef __cplusplus
36920extern "C"
36921{
36922#endif
36923/* We use char because int might match the return type of a gcc2
36924 builtin and then its argument prototype would still apply. */
36925char $ac_func ();
36926/* The GNU C library defines this for functions which it implements
36927 to always fail with ENOSYS. Some functions are actually named
36928 something starting with __ and the normal name is an alias. */
36929#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36930choke me
36931#else
36932char (*f) () = $ac_func;
36933#endif
36934#ifdef __cplusplus
36935}
36936#endif
36937
36938int
36939main ()
36940{
36941return f != $ac_func;
36942 ;
36943 return 0;
36944}
36945_ACEOF
36946rm -f conftest.$ac_objext conftest$ac_exeext
36947if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36948 (eval $ac_link) 2>conftest.er1
a848cd7e 36949 ac_status=$?
ac1cb8d3
VS
36950 grep -v '^ *+' conftest.er1 >conftest.err
36951 rm -f conftest.er1
36952 cat conftest.err >&5
a848cd7e
SC
36953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36954 (exit $ac_status); } &&
07158944 36955 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36957 (eval $ac_try) 2>&5
36958 ac_status=$?
36959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36960 (exit $ac_status); }; } &&
36961 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36963 (eval $ac_try) 2>&5
36964 ac_status=$?
36965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36966 (exit $ac_status); }; }; then
36967 eval "$as_ac_var=yes"
36968else
36969 echo "$as_me: failed program was:" >&5
36970sed 's/^/| /' conftest.$ac_ext >&5
36971
36972eval "$as_ac_var=no"
36973fi
ac1cb8d3
VS
36974rm -f conftest.err conftest.$ac_objext \
36975 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36976fi
36977echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36978echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36979if test `eval echo '${'$as_ac_var'}'` = yes; then
36980 cat >>confdefs.h <<_ACEOF
36981#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36982_ACEOF
36983 break
36984fi
36985done
36986
36987
36988 if test "$ac_cv_func_gettimeofday" = "yes"; then
36989 echo "$as_me:$LINENO: checking whether gettimeofday takes two arguments" >&5
36990echo $ECHO_N "checking whether gettimeofday takes two arguments... $ECHO_C" >&6
36991if test "${wx_cv_func_gettimeofday_has_2_args+set}" = set; then
36992 echo $ECHO_N "(cached) $ECHO_C" >&6
36993else
36994
36995
36996
36997 ac_ext=cc
36998ac_cpp='$CXXCPP $CPPFLAGS'
36999ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37000ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37001ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
37002
37003
37004 cat >conftest.$ac_ext <<_ACEOF
37005/* confdefs.h. */
37006_ACEOF
37007cat confdefs.h >>conftest.$ac_ext
37008cat >>conftest.$ac_ext <<_ACEOF
37009/* end confdefs.h. */
37010
37011 #include <sys/time.h>
37012 #include <unistd.h>
37013
37014int
37015main ()
37016{
37017
37018 struct timeval tv;
37019 gettimeofday(&tv, NULL);
37020
37021 ;
37022 return 0;
37023}
37024_ACEOF
37025rm -f conftest.$ac_objext
37026if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 37027 (eval $ac_compile) 2>conftest.er1
a848cd7e 37028 ac_status=$?
ac1cb8d3
VS
37029 grep -v '^ *+' conftest.er1 >conftest.err
37030 rm -f conftest.er1
37031 cat conftest.err >&5
a848cd7e
SC
37032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37033 (exit $ac_status); } &&
07158944 37034 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37036 (eval $ac_try) 2>&5
37037 ac_status=$?
37038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37039 (exit $ac_status); }; } &&
37040 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
37041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37042 (eval $ac_try) 2>&5
37043 ac_status=$?
37044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37045 (exit $ac_status); }; }; then
37046 wx_cv_func_gettimeofday_has_2_args=yes
37047else
37048 echo "$as_me: failed program was:" >&5
37049sed 's/^/| /' conftest.$ac_ext >&5
37050
37051cat >conftest.$ac_ext <<_ACEOF
37052/* confdefs.h. */
37053_ACEOF
37054cat confdefs.h >>conftest.$ac_ext
37055cat >>conftest.$ac_ext <<_ACEOF
37056/* end confdefs.h. */
37057
37058 #include <sys/time.h>
37059 #include <unistd.h>
37060
37061int
37062main ()
37063{
37064
37065 struct timeval tv;
37066 gettimeofday(&tv);
37067
37068 ;
37069 return 0;
37070}
37071_ACEOF
37072rm -f conftest.$ac_objext
37073if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 37074 (eval $ac_compile) 2>conftest.er1
a848cd7e 37075 ac_status=$?
ac1cb8d3
VS
37076 grep -v '^ *+' conftest.er1 >conftest.err
37077 rm -f conftest.er1
37078 cat conftest.err >&5
a848cd7e
SC
37079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37080 (exit $ac_status); } &&
07158944 37081 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37083 (eval $ac_try) 2>&5
37084 ac_status=$?
37085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37086 (exit $ac_status); }; } &&
37087 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
37088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37089 (eval $ac_try) 2>&5
37090 ac_status=$?
37091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37092 (exit $ac_status); }; }; then
37093 wx_cv_func_gettimeofday_has_2_args=no
37094else
37095 echo "$as_me: failed program was:" >&5
37096sed 's/^/| /' conftest.$ac_ext >&5
37097
37098
37099 { echo "$as_me:$LINENO: WARNING: failed to determine number of gettimeofday() arguments" >&5
37100echo "$as_me: WARNING: failed to determine number of gettimeofday() arguments" >&2;}
37101 wx_cv_func_gettimeofday_has_2_args=unknown
37102
37103
37104fi
ac1cb8d3 37105rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
37106
37107fi
ac1cb8d3 37108rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
37109 ac_ext=c
37110ac_cpp='$CPP $CPPFLAGS'
37111ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37112ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37113ac_compiler_gnu=$ac_cv_c_compiler_gnu
37114
37115
37116fi
37117echo "$as_me:$LINENO: result: $wx_cv_func_gettimeofday_has_2_args" >&5
37118echo "${ECHO_T}$wx_cv_func_gettimeofday_has_2_args" >&6
37119
37120 if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then
37121 cat >>confdefs.h <<\_ACEOF
37122#define WX_GETTIMEOFDAY_NO_TZ 1
37123_ACEOF
37124
37125 fi
37126 fi
37127
37128 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest"
37129fi
37130
37131
37132if test "$wxUSE_SOCKETS" = "yes"; then
37133 if test "$wxUSE_MGL" = "1"; then
37134 { echo "$as_me:$LINENO: WARNING: wxSocket not yet supported under MGL... disabled" >&5
37135echo "$as_me: WARNING: wxSocket not yet supported under MGL... disabled" >&2;}
37136 wxUSE_SOCKETS="no"
37137 fi
37138fi
37139
37140if test "$wxUSE_SOCKETS" = "yes"; then
37141 if test "$TOOLKIT" != "MSW"; then
37142 echo "$as_me:$LINENO: checking for socket" >&5
37143echo $ECHO_N "checking for socket... $ECHO_C" >&6
37144if test "${ac_cv_func_socket+set}" = set; then
37145 echo $ECHO_N "(cached) $ECHO_C" >&6
37146else
37147 cat >conftest.$ac_ext <<_ACEOF
37148/* confdefs.h. */
37149_ACEOF
37150cat confdefs.h >>conftest.$ac_ext
37151cat >>conftest.$ac_ext <<_ACEOF
37152/* end confdefs.h. */
ac1cb8d3
VS
37153/* Define socket to an innocuous variant, in case <limits.h> declares socket.
37154 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37155#define socket innocuous_socket
37156
a848cd7e
SC
37157/* System header to define __stub macros and hopefully few prototypes,
37158 which can conflict with char socket (); below.
37159 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37160 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 37161
a848cd7e
SC
37162#ifdef __STDC__
37163# include <limits.h>
37164#else
37165# include <assert.h>
37166#endif
ac1cb8d3
VS
37167
37168#undef socket
37169
a848cd7e
SC
37170/* Override any gcc2 internal prototype to avoid an error. */
37171#ifdef __cplusplus
37172extern "C"
37173{
37174#endif
37175/* We use char because int might match the return type of a gcc2
37176 builtin and then its argument prototype would still apply. */
37177char socket ();
37178/* The GNU C library defines this for functions which it implements
37179 to always fail with ENOSYS. Some functions are actually named
37180 something starting with __ and the normal name is an alias. */
37181#if defined (__stub_socket) || defined (__stub___socket)
37182choke me
37183#else
37184char (*f) () = socket;
37185#endif
37186#ifdef __cplusplus
37187}
37188#endif
37189
37190int
37191main ()
37192{
37193return f != socket;
37194 ;
37195 return 0;
37196}
37197_ACEOF
37198rm -f conftest.$ac_objext conftest$ac_exeext
37199if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37200 (eval $ac_link) 2>conftest.er1
a848cd7e 37201 ac_status=$?
ac1cb8d3
VS
37202 grep -v '^ *+' conftest.er1 >conftest.err
37203 rm -f conftest.er1
37204 cat conftest.err >&5
a848cd7e
SC
37205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37206 (exit $ac_status); } &&
07158944 37207 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37209 (eval $ac_try) 2>&5
37210 ac_status=$?
37211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37212 (exit $ac_status); }; } &&
37213 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37215 (eval $ac_try) 2>&5
37216 ac_status=$?
37217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37218 (exit $ac_status); }; }; then
37219 ac_cv_func_socket=yes
37220else
37221 echo "$as_me: failed program was:" >&5
37222sed 's/^/| /' conftest.$ac_ext >&5
37223
37224ac_cv_func_socket=no
37225fi
ac1cb8d3
VS
37226rm -f conftest.err conftest.$ac_objext \
37227 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37228fi
37229echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
37230echo "${ECHO_T}$ac_cv_func_socket" >&6
37231if test $ac_cv_func_socket = yes; then
37232 :
37233else
37234
37235 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
37236echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
37237if test "${ac_cv_lib_socket_socket+set}" = set; then
37238 echo $ECHO_N "(cached) $ECHO_C" >&6
37239else
37240 ac_check_lib_save_LIBS=$LIBS
37241LIBS="-lsocket $LIBS"
37242cat >conftest.$ac_ext <<_ACEOF
37243/* confdefs.h. */
37244_ACEOF
37245cat confdefs.h >>conftest.$ac_ext
37246cat >>conftest.$ac_ext <<_ACEOF
37247/* end confdefs.h. */
37248
37249/* Override any gcc2 internal prototype to avoid an error. */
37250#ifdef __cplusplus
37251extern "C"
37252#endif
37253/* We use char because int might match the return type of a gcc2
37254 builtin and then its argument prototype would still apply. */
37255char socket ();
37256int
37257main ()
37258{
37259socket ();
37260 ;
37261 return 0;
37262}
37263_ACEOF
37264rm -f conftest.$ac_objext conftest$ac_exeext
37265if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37266 (eval $ac_link) 2>conftest.er1
a848cd7e 37267 ac_status=$?
ac1cb8d3
VS
37268 grep -v '^ *+' conftest.er1 >conftest.err
37269 rm -f conftest.er1
37270 cat conftest.err >&5
a848cd7e
SC
37271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37272 (exit $ac_status); } &&
07158944 37273 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37275 (eval $ac_try) 2>&5
37276 ac_status=$?
37277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37278 (exit $ac_status); }; } &&
37279 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37281 (eval $ac_try) 2>&5
37282 ac_status=$?
37283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37284 (exit $ac_status); }; }; then
37285 ac_cv_lib_socket_socket=yes
37286else
37287 echo "$as_me: failed program was:" >&5
37288sed 's/^/| /' conftest.$ac_ext >&5
37289
37290ac_cv_lib_socket_socket=no
37291fi
ac1cb8d3
VS
37292rm -f conftest.err conftest.$ac_objext \
37293 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37294LIBS=$ac_check_lib_save_LIBS
37295fi
37296echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
37297echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
37298if test $ac_cv_lib_socket_socket = yes; then
37299 if test "$INET_LINK" != " -lsocket"; then
37300 INET_LINK="$INET_LINK -lsocket"
37301 fi
37302else
37303
37304 { echo "$as_me:$LINENO: WARNING: socket library not found - sockets will be disabled" >&5
37305echo "$as_me: WARNING: socket library not found - sockets will be disabled" >&2;}
37306 wxUSE_SOCKETS=no
37307
37308
37309fi
37310
37311
37312
37313fi
37314
37315 fi
37316fi
37317
37318if test "$wxUSE_SOCKETS" = "yes" ; then
37319 if test "$TOOLKIT" != "MSW"; then
4d4ff94c
VZ
37320 ac_ext=cc
37321ac_cpp='$CXXCPP $CPPFLAGS'
37322ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37323ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37324ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
37325
37326 echo "$as_me:$LINENO: checking what is the type of the third argument of getsockname" >&5
a848cd7e
SC
37327echo $ECHO_N "checking what is the type of the third argument of getsockname... $ECHO_C" >&6
37328if test "${wx_cv_type_getsockname3+set}" = set; then
37329 echo $ECHO_N "(cached) $ECHO_C" >&6
37330else
37331
37332 cat >conftest.$ac_ext <<_ACEOF
37333/* confdefs.h. */
37334_ACEOF
37335cat confdefs.h >>conftest.$ac_ext
37336cat >>conftest.$ac_ext <<_ACEOF
37337/* end confdefs.h. */
37338
37339 #include <sys/types.h>
37340 #include <sys/socket.h>
37341
37342int
37343main ()
37344{
37345
37346 socklen_t len;
37347 getsockname(0, 0, &len);
37348
37349 ;
37350 return 0;
37351}
37352_ACEOF
37353rm -f conftest.$ac_objext
37354if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 37355 (eval $ac_compile) 2>conftest.er1
a848cd7e 37356 ac_status=$?
ac1cb8d3
VS
37357 grep -v '^ *+' conftest.er1 >conftest.err
37358 rm -f conftest.er1
37359 cat conftest.err >&5
a848cd7e
SC
37360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37361 (exit $ac_status); } &&
07158944 37362 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37364 (eval $ac_try) 2>&5
37365 ac_status=$?
37366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37367 (exit $ac_status); }; } &&
37368 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
37369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37370 (eval $ac_try) 2>&5
37371 ac_status=$?
37372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37373 (exit $ac_status); }; }; then
37374 wx_cv_type_getsockname3=socklen_t
37375else
37376 echo "$as_me: failed program was:" >&5
37377sed 's/^/| /' conftest.$ac_ext >&5
37378
37379
37380 CFLAGS_OLD="$CFLAGS"
37381 if test "$GCC" = yes ; then
37382 CFLAGS="$CFLAGS -Werror"
37383 fi
37384
37385 cat >conftest.$ac_ext <<_ACEOF
37386/* confdefs.h. */
37387_ACEOF
37388cat confdefs.h >>conftest.$ac_ext
37389cat >>conftest.$ac_ext <<_ACEOF
37390/* end confdefs.h. */
37391
37392 #include <sys/types.h>
37393 #include <sys/socket.h>
37394
37395int
37396main ()
37397{
37398
37399 size_t len;
37400 getsockname(0, 0, &len);
37401
37402 ;
37403 return 0;
37404}
37405_ACEOF
37406rm -f conftest.$ac_objext
37407if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 37408 (eval $ac_compile) 2>conftest.er1
a848cd7e 37409 ac_status=$?
ac1cb8d3
VS
37410 grep -v '^ *+' conftest.er1 >conftest.err
37411 rm -f conftest.er1
37412 cat conftest.err >&5
a848cd7e
SC
37413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37414 (exit $ac_status); } &&
07158944 37415 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37417 (eval $ac_try) 2>&5
37418 ac_status=$?
37419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37420 (exit $ac_status); }; } &&
37421 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
37422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37423 (eval $ac_try) 2>&5
37424 ac_status=$?
37425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37426 (exit $ac_status); }; }; then
37427 wx_cv_type_getsockname3=size_t
37428else
37429 echo "$as_me: failed program was:" >&5
37430sed 's/^/| /' conftest.$ac_ext >&5
37431
37432cat >conftest.$ac_ext <<_ACEOF
37433/* confdefs.h. */
37434_ACEOF
37435cat confdefs.h >>conftest.$ac_ext
37436cat >>conftest.$ac_ext <<_ACEOF
37437/* end confdefs.h. */
37438
37439 #include <sys/types.h>
37440 #include <sys/socket.h>
37441
37442int
37443main ()
37444{
37445
37446 int len;
37447 getsockname(0, 0, &len);
37448
37449 ;
37450 return 0;
37451}
37452_ACEOF
37453rm -f conftest.$ac_objext
37454if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 37455 (eval $ac_compile) 2>conftest.er1
a848cd7e 37456 ac_status=$?
ac1cb8d3
VS
37457 grep -v '^ *+' conftest.er1 >conftest.err
37458 rm -f conftest.er1
37459 cat conftest.err >&5
a848cd7e
SC
37460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37461 (exit $ac_status); } &&
07158944 37462 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37464 (eval $ac_try) 2>&5
37465 ac_status=$?
37466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37467 (exit $ac_status); }; } &&
37468 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
37469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37470 (eval $ac_try) 2>&5
37471 ac_status=$?
37472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37473 (exit $ac_status); }; }; then
37474 wx_cv_type_getsockname3=int
37475else
37476 echo "$as_me: failed program was:" >&5
37477sed 's/^/| /' conftest.$ac_ext >&5
37478
37479wx_cv_type_getsockname3=unknown
37480
37481fi
ac1cb8d3 37482rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
37483
37484fi
ac1cb8d3 37485rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
37486
37487 CFLAGS="$CFLAGS_OLD"
37488
37489
37490fi
ac1cb8d3 37491rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
37492
37493fi
37494echo "$as_me:$LINENO: result: $wx_cv_type_getsockname3" >&5
37495echo "${ECHO_T}$wx_cv_type_getsockname3" >&6
37496
37497 if test "$wx_cv_type_getsockname3" = "unknown"; then
37498 wxUSE_SOCKETS=no
37499 { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5
37500echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;}
37501 else
37502 cat >>confdefs.h <<_ACEOF
37503#define SOCKLEN_T $wx_cv_type_getsockname3
5b674b9d
DE
37504_ACEOF
37505
37506 fi
37507 echo "$as_me:$LINENO: checking what is the type of the fifth argument of getsockopt" >&5
37508echo $ECHO_N "checking what is the type of the fifth argument of getsockopt... $ECHO_C" >&6
37509if test "${wx_cv_type_getsockopt5+set}" = set; then
37510 echo $ECHO_N "(cached) $ECHO_C" >&6
37511else
37512
37513 cat >conftest.$ac_ext <<_ACEOF
37514/* confdefs.h. */
37515_ACEOF
37516cat confdefs.h >>conftest.$ac_ext
37517cat >>conftest.$ac_ext <<_ACEOF
37518/* end confdefs.h. */
37519
37520 #include <sys/types.h>
37521 #include <sys/socket.h>
37522
37523int
37524main ()
37525{
37526
37527 socklen_t len;
37528 getsockopt(0, 0, 0, 0, &len);
37529
37530 ;
37531 return 0;
37532}
37533_ACEOF
37534rm -f conftest.$ac_objext
37535if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37536 (eval $ac_compile) 2>conftest.er1
37537 ac_status=$?
37538 grep -v '^ *+' conftest.er1 >conftest.err
37539 rm -f conftest.er1
37540 cat conftest.err >&5
37541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37542 (exit $ac_status); } &&
07158944 37543 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5b674b9d
DE
37544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37545 (eval $ac_try) 2>&5
37546 ac_status=$?
37547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37548 (exit $ac_status); }; } &&
37549 { ac_try='test -s conftest.$ac_objext'
37550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37551 (eval $ac_try) 2>&5
37552 ac_status=$?
37553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37554 (exit $ac_status); }; }; then
37555 wx_cv_type_getsockopt5=socklen_t
37556else
37557 echo "$as_me: failed program was:" >&5
37558sed 's/^/| /' conftest.$ac_ext >&5
37559
37560
37561 CFLAGS_OLD="$CFLAGS"
37562 if test "$GCC" = yes ; then
37563 CFLAGS="$CFLAGS -Werror"
37564 fi
37565
37566 cat >conftest.$ac_ext <<_ACEOF
37567/* confdefs.h. */
37568_ACEOF
37569cat confdefs.h >>conftest.$ac_ext
37570cat >>conftest.$ac_ext <<_ACEOF
37571/* end confdefs.h. */
37572
37573 #include <sys/types.h>
37574 #include <sys/socket.h>
37575
37576int
37577main ()
37578{
37579
37580 size_t len;
37581 getsockopt(0, 0, 0, 0, &len);
37582
37583 ;
37584 return 0;
37585}
37586_ACEOF
37587rm -f conftest.$ac_objext
37588if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37589 (eval $ac_compile) 2>conftest.er1
37590 ac_status=$?
37591 grep -v '^ *+' conftest.er1 >conftest.err
37592 rm -f conftest.er1
37593 cat conftest.err >&5
37594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37595 (exit $ac_status); } &&
07158944 37596 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5b674b9d
DE
37597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37598 (eval $ac_try) 2>&5
37599 ac_status=$?
37600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37601 (exit $ac_status); }; } &&
37602 { ac_try='test -s conftest.$ac_objext'
37603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37604 (eval $ac_try) 2>&5
37605 ac_status=$?
37606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37607 (exit $ac_status); }; }; then
37608 wx_cv_type_getsockopt5=size_t
37609else
37610 echo "$as_me: failed program was:" >&5
37611sed 's/^/| /' conftest.$ac_ext >&5
37612
37613cat >conftest.$ac_ext <<_ACEOF
37614/* confdefs.h. */
37615_ACEOF
37616cat confdefs.h >>conftest.$ac_ext
37617cat >>conftest.$ac_ext <<_ACEOF
37618/* end confdefs.h. */
37619
37620 #include <sys/types.h>
37621 #include <sys/socket.h>
37622
37623int
37624main ()
37625{
37626
37627 int len;
37628 getsockopt(0, 0, 0, 0, &len);
37629
37630 ;
37631 return 0;
37632}
37633_ACEOF
37634rm -f conftest.$ac_objext
37635if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37636 (eval $ac_compile) 2>conftest.er1
37637 ac_status=$?
37638 grep -v '^ *+' conftest.er1 >conftest.err
37639 rm -f conftest.er1
37640 cat conftest.err >&5
37641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37642 (exit $ac_status); } &&
07158944 37643 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5b674b9d
DE
37644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37645 (eval $ac_try) 2>&5
37646 ac_status=$?
37647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37648 (exit $ac_status); }; } &&
37649 { ac_try='test -s conftest.$ac_objext'
37650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37651 (eval $ac_try) 2>&5
37652 ac_status=$?
37653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37654 (exit $ac_status); }; }; then
37655 wx_cv_type_getsockopt5=int
37656else
37657 echo "$as_me: failed program was:" >&5
37658sed 's/^/| /' conftest.$ac_ext >&5
37659
37660wx_cv_type_getsockopt5=unknown
37661
37662fi
37663rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37664
37665fi
37666rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37667
37668 CFLAGS="$CFLAGS_OLD"
37669
37670
37671fi
37672rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37673
37674fi
37675echo "$as_me:$LINENO: result: $wx_cv_type_getsockopt5" >&5
37676echo "${ECHO_T}$wx_cv_type_getsockopt5" >&6
37677
37678 if test "$wx_cv_type_getsockopt5" = "unknown"; then
37679 wxUSE_SOCKETS=no
37680 { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5
37681echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;}
37682 else
37683 cat >>confdefs.h <<_ACEOF
37684#define SOCKOPTLEN_T $wx_cv_type_getsockopt5
a848cd7e
SC
37685_ACEOF
37686
37687 fi
4d4ff94c
VZ
37688 ac_ext=c
37689ac_cpp='$CPP $CPPFLAGS'
37690ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37691ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37692ac_compiler_gnu=$ac_cv_c_compiler_gnu
37693
a848cd7e
SC
37694 fi
37695fi
37696
37697if test "$wxUSE_SOCKETS" = "yes" ; then
37698 cat >>confdefs.h <<\_ACEOF
37699#define wxUSE_SOCKETS 1
37700_ACEOF
37701
37702 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets"
37703fi
37704
37705if test "$wxUSE_PROTOCOL" = "yes"; then
37706 if test "$wxUSE_SOCKETS" != "yes"; then
37707 { echo "$as_me:$LINENO: WARNING: Protocol classes require sockets... disabled" >&5
37708echo "$as_me: WARNING: Protocol classes require sockets... disabled" >&2;}
37709 wxUSE_PROTOCOL=no
37710 fi
37711fi
37712
37713if test "$wxUSE_PROTOCOL" = "yes"; then
37714 cat >>confdefs.h <<\_ACEOF
37715#define wxUSE_PROTOCOL 1
37716_ACEOF
37717
37718
37719 if test "$wxUSE_PROTOCOL_HTTP" = "yes"; then
37720 cat >>confdefs.h <<\_ACEOF
37721#define wxUSE_PROTOCOL_HTTP 1
37722_ACEOF
37723
37724 fi
37725 if test "$wxUSE_PROTOCOL_FTP" = "yes"; then
37726 cat >>confdefs.h <<\_ACEOF
37727#define wxUSE_PROTOCOL_FTP 1
37728_ACEOF
37729
37730 fi
37731 if test "$wxUSE_PROTOCOL_FILE" = "yes"; then
37732 cat >>confdefs.h <<\_ACEOF
37733#define wxUSE_PROTOCOL_FILE 1
37734_ACEOF
37735
37736 fi
37737else
37738 if test "$wxUSE_FS_INET" = "yes"; then
37739 { echo "$as_me:$LINENO: WARNING: HTTP filesystem require protocol classes... disabled" >&5
37740echo "$as_me: WARNING: HTTP filesystem require protocol classes... disabled" >&2;}
37741 wxUSE_FS_INET="no"
37742 fi
37743fi
37744
37745if test "$wxUSE_URL" = "yes"; then
37746 if test "$wxUSE_PROTOCOL" != "yes"; then
37747 { echo "$as_me:$LINENO: WARNING: wxURL class requires wxProtocol... disabled" >&5
37748echo "$as_me: WARNING: wxURL class requires wxProtocol... disabled" >&2;}
37749 wxUSE_URL=no
37750 fi
37751 if test "$wxUSE_URL" = "yes"; then
37752 cat >>confdefs.h <<\_ACEOF
37753#define wxUSE_URL 1
37754_ACEOF
37755
37756 fi
37757fi
37758
37759if test "$wxUSE_FS_INET" = "yes"; then
37760 cat >>confdefs.h <<\_ACEOF
37761#define wxUSE_FS_INET 1
37762_ACEOF
37763
37764fi
37765
37766
37767if test "$wxUSE_GUI" = "yes"; then
4cb1d3da 37768 if test "$wxUSE_JOYSTICK" = "yes"; then
a848cd7e 37769
4cb1d3da 37770 if test "$TOOLKIT" != "MAC" -a "$TOOLKIT" != "COCOA" -a "$TOOLKIT" != "MSW"; then
a848cd7e
SC
37771
37772for ac_header in linux/joystick.h
37773do
37774as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
37775if eval "test \"\${$as_ac_Header+set}\" = set"; then
37776 echo "$as_me:$LINENO: checking for $ac_header" >&5
37777echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
37778if eval "test \"\${$as_ac_Header+set}\" = set"; then
37779 echo $ECHO_N "(cached) $ECHO_C" >&6
37780fi
37781echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
37782echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
37783else
37784 # Is the header compilable?
37785echo "$as_me:$LINENO: checking $ac_header usability" >&5
37786echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
37787cat >conftest.$ac_ext <<_ACEOF
37788/* confdefs.h. */
37789_ACEOF
37790cat confdefs.h >>conftest.$ac_ext
37791cat >>conftest.$ac_ext <<_ACEOF
37792/* end confdefs.h. */
37793$ac_includes_default
37794#include <$ac_header>
37795_ACEOF
37796rm -f conftest.$ac_objext
37797if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 37798 (eval $ac_compile) 2>conftest.er1
a848cd7e 37799 ac_status=$?
ac1cb8d3
VS
37800 grep -v '^ *+' conftest.er1 >conftest.err
37801 rm -f conftest.er1
37802 cat conftest.err >&5
a848cd7e
SC
37803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37804 (exit $ac_status); } &&
07158944 37805 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37807 (eval $ac_try) 2>&5
37808 ac_status=$?
37809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37810 (exit $ac_status); }; } &&
37811 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
37812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37813 (eval $ac_try) 2>&5
37814 ac_status=$?
37815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37816 (exit $ac_status); }; }; then
37817 ac_header_compiler=yes
37818else
37819 echo "$as_me: failed program was:" >&5
37820sed 's/^/| /' conftest.$ac_ext >&5
37821
37822ac_header_compiler=no
37823fi
ac1cb8d3 37824rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
37825echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
37826echo "${ECHO_T}$ac_header_compiler" >&6
37827
37828# Is the header present?
37829echo "$as_me:$LINENO: checking $ac_header presence" >&5
37830echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
37831cat >conftest.$ac_ext <<_ACEOF
37832/* confdefs.h. */
37833_ACEOF
37834cat confdefs.h >>conftest.$ac_ext
37835cat >>conftest.$ac_ext <<_ACEOF
37836/* end confdefs.h. */
37837#include <$ac_header>
37838_ACEOF
37839if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
37840 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
37841 ac_status=$?
37842 grep -v '^ *+' conftest.er1 >conftest.err
37843 rm -f conftest.er1
37844 cat conftest.err >&5
37845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37846 (exit $ac_status); } >/dev/null; then
37847 if test -s conftest.err; then
37848 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 37849 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
37850 else
37851 ac_cpp_err=
37852 fi
37853else
37854 ac_cpp_err=yes
37855fi
37856if test -z "$ac_cpp_err"; then
37857 ac_header_preproc=yes
37858else
37859 echo "$as_me: failed program was:" >&5
37860sed 's/^/| /' conftest.$ac_ext >&5
37861
37862 ac_header_preproc=no
37863fi
37864rm -f conftest.err conftest.$ac_ext
37865echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
37866echo "${ECHO_T}$ac_header_preproc" >&6
37867
37868# So? What about this header?
ac1cb8d3
VS
37869case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
37870 yes:no: )
a848cd7e
SC
37871 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
37872echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
37873 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
37874echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
37875 ac_header_preproc=yes
a848cd7e 37876 ;;
ac1cb8d3 37877 no:yes:* )
a848cd7e
SC
37878 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
37879echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
37880 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
37881echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
37882 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
37883echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
37884 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
37885echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
37886 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
37887echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
37888 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
37889echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
37890 (
37891 cat <<\_ASBOX
ac1cb8d3
VS
37892## ----------------------------------------- ##
37893## Report this to wx-dev@lists.wxwidgets.org ##
37894## ----------------------------------------- ##
a848cd7e
SC
37895_ASBOX
37896 ) |
37897 sed "s/^/$as_me: WARNING: /" >&2
37898 ;;
37899esac
37900echo "$as_me:$LINENO: checking for $ac_header" >&5
37901echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
37902if eval "test \"\${$as_ac_Header+set}\" = set"; then
37903 echo $ECHO_N "(cached) $ECHO_C" >&6
37904else
ac1cb8d3 37905 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
37906fi
37907echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
37908echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
37909
37910fi
37911if test `eval echo '${'$as_ac_Header'}'` = yes; then
37912 cat >>confdefs.h <<_ACEOF
37913#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
37914_ACEOF
37915
37916fi
37917
37918done
37919
37920 if test "$ac_cv_header_linux_joystick_h" != "yes"; then
37921 wxUSE_JOYSTICK=no
37922 { echo "$as_me:$LINENO: WARNING: Joystick not supported by this system... disabled" >&5
37923echo "$as_me: WARNING: Joystick not supported by this system... disabled" >&2;}
37924 fi
4cb1d3da
RN
37925 else
37926 if test "$USE_DARWIN" != 1 -a "$TOOLKIT" != "MSW"; then
37927 wxUSE_JOYSTICK=no
37928 { echo "$as_me:$LINENO: WARNING: Joystick not supported by this system... disabled" >&5
37929echo "$as_me: WARNING: Joystick not supported by this system... disabled" >&2;}
37930 fi
a848cd7e 37931 fi
a848cd7e 37932
4cb1d3da
RN
37933
37934 if test "$wxUSE_JOYSTICK" = "yes"; then
37935 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
37936#define wxUSE_JOYSTICK 1
37937_ACEOF
37938
4cb1d3da
RN
37939 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest"
37940 fi
a848cd7e
SC
37941 fi
37942fi
37943
37944
37945
37946if test "$wxUSE_FONTMAP" = "yes" ; then
37947 cat >>confdefs.h <<\_ACEOF
37948#define wxUSE_FONTMAP 1
37949_ACEOF
37950
37951fi
37952
37953if test "$wxUSE_UNICODE" = "yes" ; then
37954 cat >>confdefs.h <<\_ACEOF
37955#define wxUSE_UNICODE 1
37956_ACEOF
37957
37958
37959 if test "$USE_WIN32" != 1; then
37960 wxUSE_UNICODE_MSLU=no
37961 fi
37962
37963 if test "$USE_WIN32" = 1 -a "$wxUSE_UNICODE_MSLU" = "yes"; then
37964 echo "$as_me:$LINENO: checking for main in -lunicows" >&5
37965echo $ECHO_N "checking for main in -lunicows... $ECHO_C" >&6
37966if test "${ac_cv_lib_unicows_main+set}" = set; then
37967 echo $ECHO_N "(cached) $ECHO_C" >&6
37968else
37969 ac_check_lib_save_LIBS=$LIBS
37970LIBS="-lunicows $LIBS"
37971cat >conftest.$ac_ext <<_ACEOF
37972/* confdefs.h. */
37973_ACEOF
37974cat confdefs.h >>conftest.$ac_ext
37975cat >>conftest.$ac_ext <<_ACEOF
37976/* end confdefs.h. */
37977
37978
37979int
37980main ()
37981{
37982main ();
37983 ;
37984 return 0;
37985}
37986_ACEOF
37987rm -f conftest.$ac_objext conftest$ac_exeext
37988if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37989 (eval $ac_link) 2>conftest.er1
a848cd7e 37990 ac_status=$?
ac1cb8d3
VS
37991 grep -v '^ *+' conftest.er1 >conftest.err
37992 rm -f conftest.er1
37993 cat conftest.err >&5
a848cd7e
SC
37994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37995 (exit $ac_status); } &&
07158944 37996 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37998 (eval $ac_try) 2>&5
37999 ac_status=$?
38000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38001 (exit $ac_status); }; } &&
38002 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
38003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38004 (eval $ac_try) 2>&5
38005 ac_status=$?
38006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38007 (exit $ac_status); }; }; then
38008 ac_cv_lib_unicows_main=yes
38009else
38010 echo "$as_me: failed program was:" >&5
38011sed 's/^/| /' conftest.$ac_ext >&5
38012
38013ac_cv_lib_unicows_main=no
38014fi
ac1cb8d3
VS
38015rm -f conftest.err conftest.$ac_objext \
38016 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
38017LIBS=$ac_check_lib_save_LIBS
38018fi
38019echo "$as_me:$LINENO: result: $ac_cv_lib_unicows_main" >&5
38020echo "${ECHO_T}$ac_cv_lib_unicows_main" >&6
38021if test $ac_cv_lib_unicows_main = yes; then
38022
38023 cat >>confdefs.h <<\_ACEOF
38024#define wxUSE_UNICODE_MSLU 1
38025_ACEOF
38026
38027
38028else
38029
38030 { echo "$as_me:$LINENO: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
38031 Applications will only run on Windows NT/2000/XP!" >&5
38032echo "$as_me: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
38033 Applications will only run on Windows NT/2000/XP!" >&2;}
38034 wxUSE_UNICODE_MSLU=no
38035
38036fi
38037
38038 fi
38039fi
38040
38041if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then
38042 cat >>confdefs.h <<\_ACEOF
38043#define wxUSE_EXPERIMENTAL_PRINTF 1
38044_ACEOF
38045
38046fi
38047
38048
38049if test "$wxUSE_POSTSCRIPT" = "yes" ; then
38050 cat >>confdefs.h <<\_ACEOF
38051#define wxUSE_POSTSCRIPT 1
38052_ACEOF
38053
38054fi
38055
38056cat >>confdefs.h <<\_ACEOF
38057#define wxUSE_AFM_FOR_POSTSCRIPT 1
38058_ACEOF
38059
38060
38061cat >>confdefs.h <<\_ACEOF
38062#define wxUSE_NORMALIZED_PS_FONTS 1
38063_ACEOF
38064
38065
38066
38067if test "$wxUSE_CONSTRAINTS" = "yes"; then
38068 cat >>confdefs.h <<\_ACEOF
38069#define wxUSE_CONSTRAINTS 1
38070_ACEOF
38071
38072 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout"
38073fi
38074
8a7b1113
VZ
38075if test "$wxUSE_MDI" = "yes"; then
38076 cat >>confdefs.h <<\_ACEOF
38077#define wxUSE_MDI 1
38078_ACEOF
38079
38080
38081 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
38082 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
38083#define wxUSE_MDI_ARCHITECTURE 1
38084_ACEOF
38085
8a7b1113
VZ
38086 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi"
38087 fi
a848cd7e
SC
38088fi
38089
38090if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then
38091 cat >>confdefs.h <<\_ACEOF
38092#define wxUSE_DOC_VIEW_ARCHITECTURE 1
38093_ACEOF
38094
38095 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview"
38096 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
38097 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi"
38098 fi
38099fi
38100
38101if test "$wxUSE_HELP" = "yes"; then
38102 cat >>confdefs.h <<\_ACEOF
38103#define wxUSE_HELP 1
38104_ACEOF
38105
38106 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help"
38107
38108 if test "$wxUSE_MSW" = 1; then
38109 if test "$wxUSE_MS_HTML_HELP" = "yes"; then
38110 cat >>confdefs.h <<\_ACEOF
38111#define wxUSE_MS_HTML_HELP 1
38112_ACEOF
38113
38114 fi
38115 fi
38116
38117 if test "$wxUSE_WXHTML_HELP" = "yes"; then
38118 if test "$wxUSE_HTML" = "yes"; then
38119 cat >>confdefs.h <<\_ACEOF
38120#define wxUSE_WXHTML_HELP 1
38121_ACEOF
38122
38123 else
38124 { echo "$as_me:$LINENO: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&5
38125echo "$as_me: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&2;}
38126 wxUSE_WXHTML_HELP=no
38127 fi
38128 fi
38129fi
38130
38131if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
38132 if test "$wxUSE_CONSTRAINTS" != "yes"; then
38133 { echo "$as_me:$LINENO: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&5
38134echo "$as_me: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&2;}
38135 else
38136 cat >>confdefs.h <<\_ACEOF
38137#define wxUSE_PRINTING_ARCHITECTURE 1
38138_ACEOF
38139
38140 fi
38141 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing"
38142fi
38143
38144if test "$wxUSE_PROLOGIO" = "yes" -o "$wxUSE_RESOURCES" = "yes"; then
38145 { { echo "$as_me:$LINENO: error: wxExpr and old-style resources are now available in contrib only" >&5
38146echo "$as_me: error: wxExpr and old-style resources are now available in contrib only" >&2;}
38147 { (exit 1); exit 1; }; }
38148fi
38149
38150
38151if test "$USE_WIN32" = 1 -a \( "$wxUSE_DATAOBJ" = "yes" \
38152 -o "$wxUSE_CLIPBOARD" = "yes" \
38153 -o "$wxUSE_OLE" = "yes" \
38154 -o "$wxUSE_DRAG_AND_DROP" = "yes" \) ; then
38155
38156for ac_header in ole2.h
38157do
38158as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
38159if eval "test \"\${$as_ac_Header+set}\" = set"; then
38160 echo "$as_me:$LINENO: checking for $ac_header" >&5
38161echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
38162if eval "test \"\${$as_ac_Header+set}\" = set"; then
38163 echo $ECHO_N "(cached) $ECHO_C" >&6
38164fi
38165echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
38166echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
38167else
38168 # Is the header compilable?
38169echo "$as_me:$LINENO: checking $ac_header usability" >&5
38170echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
38171cat >conftest.$ac_ext <<_ACEOF
38172/* confdefs.h. */
38173_ACEOF
38174cat confdefs.h >>conftest.$ac_ext
38175cat >>conftest.$ac_ext <<_ACEOF
38176/* end confdefs.h. */
38177$ac_includes_default
38178#include <$ac_header>
38179_ACEOF
38180rm -f conftest.$ac_objext
38181if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 38182 (eval $ac_compile) 2>conftest.er1
a848cd7e 38183 ac_status=$?
ac1cb8d3
VS
38184 grep -v '^ *+' conftest.er1 >conftest.err
38185 rm -f conftest.er1
38186 cat conftest.err >&5
a848cd7e
SC
38187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38188 (exit $ac_status); } &&
07158944 38189 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
38190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38191 (eval $ac_try) 2>&5
38192 ac_status=$?
38193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38194 (exit $ac_status); }; } &&
38195 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
38196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38197 (eval $ac_try) 2>&5
38198 ac_status=$?
38199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38200 (exit $ac_status); }; }; then
38201 ac_header_compiler=yes
38202else
38203 echo "$as_me: failed program was:" >&5
38204sed 's/^/| /' conftest.$ac_ext >&5
38205
38206ac_header_compiler=no
38207fi
ac1cb8d3 38208rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
38209echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
38210echo "${ECHO_T}$ac_header_compiler" >&6
38211
38212# Is the header present?
38213echo "$as_me:$LINENO: checking $ac_header presence" >&5
38214echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
38215cat >conftest.$ac_ext <<_ACEOF
38216/* confdefs.h. */
38217_ACEOF
38218cat confdefs.h >>conftest.$ac_ext
38219cat >>conftest.$ac_ext <<_ACEOF
38220/* end confdefs.h. */
38221#include <$ac_header>
38222_ACEOF
38223if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
38224 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
38225 ac_status=$?
38226 grep -v '^ *+' conftest.er1 >conftest.err
38227 rm -f conftest.er1
38228 cat conftest.err >&5
38229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38230 (exit $ac_status); } >/dev/null; then
38231 if test -s conftest.err; then
38232 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 38233 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
38234 else
38235 ac_cpp_err=
38236 fi
38237else
38238 ac_cpp_err=yes
38239fi
38240if test -z "$ac_cpp_err"; then
38241 ac_header_preproc=yes
38242else
38243 echo "$as_me: failed program was:" >&5
38244sed 's/^/| /' conftest.$ac_ext >&5
38245
38246 ac_header_preproc=no
38247fi
38248rm -f conftest.err conftest.$ac_ext
38249echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
38250echo "${ECHO_T}$ac_header_preproc" >&6
38251
38252# So? What about this header?
ac1cb8d3
VS
38253case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
38254 yes:no: )
a848cd7e
SC
38255 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
38256echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
38257 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
38258echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
38259 ac_header_preproc=yes
a848cd7e 38260 ;;
ac1cb8d3 38261 no:yes:* )
a848cd7e
SC
38262 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
38263echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
38264 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
38265echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
38266 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
38267echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
38268 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
38269echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
38270 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
38271echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
38272 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
38273echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
38274 (
38275 cat <<\_ASBOX
ac1cb8d3
VS
38276## ----------------------------------------- ##
38277## Report this to wx-dev@lists.wxwidgets.org ##
38278## ----------------------------------------- ##
a848cd7e
SC
38279_ASBOX
38280 ) |
38281 sed "s/^/$as_me: WARNING: /" >&2
38282 ;;
38283esac
38284echo "$as_me:$LINENO: checking for $ac_header" >&5
38285echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
38286if eval "test \"\${$as_ac_Header+set}\" = set"; then
38287 echo $ECHO_N "(cached) $ECHO_C" >&6
38288else
ac1cb8d3 38289 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
38290fi
38291echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
38292echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
38293
38294fi
38295if test `eval echo '${'$as_ac_Header'}'` = yes; then
38296 cat >>confdefs.h <<_ACEOF
38297#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
38298_ACEOF
38299
38300fi
38301
38302done
38303
38304
38305 if test "$ac_cv_header_ole2_h" = "yes" ; then
38306 if test "$GCC" = yes ; then
38307
38308
38309 ac_ext=cc
38310ac_cpp='$CXXCPP $CPPFLAGS'
38311ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38312ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38313ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
38314
38315
38316 echo "$as_me:$LINENO: checking if g++ requires -fvtable-thunks" >&5
38317echo $ECHO_N "checking if g++ requires -fvtable-thunks... $ECHO_C" >&6
38318 cat >conftest.$ac_ext <<_ACEOF
38319/* confdefs.h. */
38320_ACEOF
38321cat confdefs.h >>conftest.$ac_ext
38322cat >>conftest.$ac_ext <<_ACEOF
38323/* end confdefs.h. */
38324#include <windows.h>
38325 #include <ole2.h>
38326int
38327main ()
38328{
38329
38330 ;
38331 return 0;
38332}
38333_ACEOF
38334rm -f conftest.$ac_objext
38335if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 38336 (eval $ac_compile) 2>conftest.er1
a848cd7e 38337 ac_status=$?
ac1cb8d3
VS
38338 grep -v '^ *+' conftest.er1 >conftest.err
38339 rm -f conftest.er1
38340 cat conftest.err >&5
a848cd7e
SC
38341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38342 (exit $ac_status); } &&
07158944 38343 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
38344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38345 (eval $ac_try) 2>&5
38346 ac_status=$?
38347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38348 (exit $ac_status); }; } &&
38349 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
38350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38351 (eval $ac_try) 2>&5
38352 ac_status=$?
38353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38354 (exit $ac_status); }; }; then
38355 echo "$as_me:$LINENO: result: no" >&5
38356echo "${ECHO_T}no" >&6
38357else
38358 echo "$as_me: failed program was:" >&5
38359sed 's/^/| /' conftest.$ac_ext >&5
38360
38361echo "$as_me:$LINENO: result: yes" >&5
38362echo "${ECHO_T}yes" >&6
38363 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fvtable-thunks"
38364fi
ac1cb8d3 38365rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
38366 ac_ext=c
38367ac_cpp='$CPP $CPPFLAGS'
38368ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38369ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38370ac_compiler_gnu=$ac_cv_c_compiler_gnu
38371
a848cd7e
SC
38372 LIBS=" -lrpcrt4 -loleaut32 -lole32 -luuid$LIBS"
38373 if test "$wxUSE_OLE" = "yes" ; then
38374 cat >>confdefs.h <<\_ACEOF
38375#define wxUSE_OLE 1
38376_ACEOF
38377
0b78747f 38378 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS oleauto"
a848cd7e
SC
38379 fi
38380 fi
38381
38382 if test "$wxUSE_DATAOBJ" = "yes" ; then
38383 cat >>confdefs.h <<\_ACEOF
38384#define wxUSE_DATAOBJ 1
38385_ACEOF
38386
38387 fi
38388 else
38389 { echo "$as_me:$LINENO: WARNING: Some features disabled because OLE headers not found" >&5
38390echo "$as_me: WARNING: Some features disabled because OLE headers not found" >&2;}
38391
38392 wxUSE_CLIPBOARD=no
38393 wxUSE_DRAG_AND_DROP=no
38394 wxUSE_DATAOBJ=no
38395 wxUSE_OLE=no
38396 fi
38397
38398 if test "$wxUSE_METAFILE" = "yes"; then
38399 cat >>confdefs.h <<\_ACEOF
38400#define wxUSE_METAFILE 1
38401_ACEOF
38402
38403
38404 cat >>confdefs.h <<\_ACEOF
38405#define wxUSE_ENH_METAFILE 1
38406_ACEOF
38407
38408 fi
38409fi
38410
38411if test "$wxUSE_IPC" = "yes"; then
0b78747f 38412 if test "$wxUSE_SOCKETS" != "yes" -a "$USE_WIN32" != 1; then
77ffb593
JS
38413 { echo "$as_me:$LINENO: WARNING: wxWidgets IPC classes require sockets... disabled" >&5
38414echo "$as_me: WARNING: wxWidgets IPC classes require sockets... disabled" >&2;}
0b78747f 38415 wxUSE_IPC=no
a848cd7e
SC
38416 fi
38417
0b78747f
MW
38418 if test "$wxUSE_IPC" = "yes"; then
38419 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
38420#define wxUSE_IPC 1
38421_ACEOF
38422
0b78747f
MW
38423 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ipc"
38424 fi
a848cd7e
SC
38425fi
38426
38427if test "$wxUSE_CLIPBOARD" = "yes"; then
38428 if test "$wxUSE_MGL" = 1; then
38429 { echo "$as_me:$LINENO: WARNING: Clipboard not yet supported under MGL... disabled" >&5
38430echo "$as_me: WARNING: Clipboard not yet supported under MGL... disabled" >&2;}
38431 wxUSE_CLIPBOARD=no
38432 fi
38433
38434 if test "$wxUSE_CLIPBOARD" = "yes"; then
38435 cat >>confdefs.h <<\_ACEOF
38436#define wxUSE_CLIPBOARD 1
38437_ACEOF
38438
38439
38440 cat >>confdefs.h <<\_ACEOF
38441#define wxUSE_DATAOBJ 1
38442_ACEOF
38443
38444 fi
38445fi
38446
38447if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then
38448 if test "$wxUSE_GTK" = 1; then
38449 if test "$WXGTK12" != 1; then
38450 { echo "$as_me:$LINENO: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&5
38451echo "$as_me: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&2;}
38452 wxUSE_DRAG_AND_DROP=no
38453 fi
38454 fi
38455
38456 if test "$wxUSE_MOTIF" = 1; then
38457 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under Motif... disabled" >&5
38458echo "$as_me: WARNING: Drag and drop not yet supported under Motif... disabled" >&2;}
38459 wxUSE_DRAG_AND_DROP=no
38460 fi
38461
38462 if test "$wxUSE_X11" = 1; then
38463 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under X11... disabled" >&5
38464echo "$as_me: WARNING: Drag and drop not yet supported under X11... disabled" >&2;}
38465 wxUSE_DRAG_AND_DROP=no
38466 fi
38467
38468 if test "$wxUSE_MGL" = 1; then
38469 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under MGL... disabled" >&5
38470echo "$as_me: WARNING: Drag and drop not yet supported under MGL... disabled" >&2;}
38471 wxUSE_DRAG_AND_DROP=no
38472 fi
38473
38474 if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
38475 cat >>confdefs.h <<\_ACEOF
38476#define wxUSE_DRAG_AND_DROP 1
38477_ACEOF
38478
38479 fi
38480
38481fi
38482
38483if test "$wxUSE_DRAG_AND_DROP" = "yes" -o "$wxUSE_CLIPBOARD" = "yes"; then
38484 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd"
38485fi
38486
38487if test "$wxUSE_SPLINES" = "yes" ; then
38488 cat >>confdefs.h <<\_ACEOF
38489#define wxUSE_SPLINES 1
38490_ACEOF
38491
38492fi
38493
38494
38495USES_CONTROLS=0
38496if test "$wxUSE_CONTROLS" = "yes"; then
38497 USES_CONTROLS=1
38498fi
38499
38500if test "$wxUSE_ACCEL" = "yes"; then
38501 cat >>confdefs.h <<\_ACEOF
38502#define wxUSE_ACCEL 1
38503_ACEOF
38504
38505 USES_CONTROLS=1
38506fi
38507
38508if test "$wxUSE_BUTTON" = "yes"; then
38509 cat >>confdefs.h <<\_ACEOF
38510#define wxUSE_BUTTON 1
38511_ACEOF
38512
38513 USES_CONTROLS=1
38514fi
38515
38516if test "$wxUSE_BMPBUTTON" = "yes"; then
38517 cat >>confdefs.h <<\_ACEOF
38518#define wxUSE_BMPBUTTON 1
38519_ACEOF
38520
38521 USES_CONTROLS=1
38522fi
38523
38524if test "$wxUSE_CALCTRL" = "yes"; then
38525 cat >>confdefs.h <<\_ACEOF
38526#define wxUSE_CALENDARCTRL 1
38527_ACEOF
38528
38529 USES_CONTROLS=1
38530 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar"
38531fi
38532
38533if test "$wxUSE_CARET" = "yes"; then
38534 cat >>confdefs.h <<\_ACEOF
38535#define wxUSE_CARET 1
38536_ACEOF
38537
38538 USES_CONTROLS=1
38539 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret"
38540fi
38541
38542if test "$wxUSE_COMBOBOX" = "yes"; then
38543 cat >>confdefs.h <<\_ACEOF
38544#define wxUSE_COMBOBOX 1
38545_ACEOF
38546
38547 USES_CONTROLS=1
38548fi
38549
38550if test "$wxUSE_CHOICE" = "yes"; then
38551 cat >>confdefs.h <<\_ACEOF
38552#define wxUSE_CHOICE 1
38553_ACEOF
38554
38555 USES_CONTROLS=1
38556fi
38557
92bbdbcd
WS
38558if test "$wxUSE_CHOICEBOOK" = "yes"; then
38559 cat >>confdefs.h <<\_ACEOF
38560#define wxUSE_CHOICEBOOK 1
38561_ACEOF
38562
38563 USES_CONTROLS=1
38564fi
38565
a848cd7e
SC
38566if test "$wxUSE_CHECKBOX" = "yes"; then
38567 cat >>confdefs.h <<\_ACEOF
38568#define wxUSE_CHECKBOX 1
38569_ACEOF
38570
38571 USES_CONTROLS=1
38572fi
38573
38574if test "$wxUSE_CHECKLST" = "yes"; then
38575 cat >>confdefs.h <<\_ACEOF
38576#define wxUSE_CHECKLISTBOX 1
38577_ACEOF
38578
38579 USES_CONTROLS=1
38580 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst"
38581fi
38582
da98e9be
VZ
38583if test "$wxUSE_DATEPICKCTRL" = "yes"; then
38584 cat >>confdefs.h <<\_ACEOF
38585#define wxUSE_DATEPICKCTRL 1
38586_ACEOF
38587
38588 USES_CONTROLS=1
38589fi
38590
a848cd7e
SC
38591if test "$wxUSE_DISPLAY" = "yes"; then
38592 cat >>confdefs.h <<\_ACEOF
38593#define wxUSE_DISPLAY 1
38594_ACEOF
38595
0b78747f 38596 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS display multimon"
a848cd7e
SC
38597fi
38598
38599if test "$wxUSE_GAUGE" = "yes"; then
38600 cat >>confdefs.h <<\_ACEOF
38601#define wxUSE_GAUGE 1
38602_ACEOF
38603
38604 USES_CONTROLS=1
38605fi
38606
38607if test "$wxUSE_GRID" = "yes"; then
38608 cat >>confdefs.h <<\_ACEOF
38609#define wxUSE_GRID 1
38610_ACEOF
38611
38612 USES_CONTROLS=1
38613 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid"
38614fi
38615
38616if test "$wxUSE_IMAGLIST" = "yes"; then
38617 cat >>confdefs.h <<\_ACEOF
38618#define wxUSE_IMAGLIST 1
38619_ACEOF
38620
38621fi
38622
38623if test "$wxUSE_LISTBOOK" = "yes"; then
38624 cat >>confdefs.h <<\_ACEOF
38625#define wxUSE_LISTBOOK 1
38626_ACEOF
38627
38628 USES_CONTROLS=1
38629fi
38630
38631if test "$wxUSE_LISTBOX" = "yes"; then
38632 cat >>confdefs.h <<\_ACEOF
38633#define wxUSE_LISTBOX 1
38634_ACEOF
38635
38636 USES_CONTROLS=1
0b78747f 38637 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listbox"
a848cd7e
SC
38638fi
38639
38640if test "$wxUSE_LISTCTRL" = "yes"; then
38641 if test "$wxUSE_IMAGLIST" = "yes"; then
38642 cat >>confdefs.h <<\_ACEOF
38643#define wxUSE_LISTCTRL 1
38644_ACEOF
38645
38646 USES_CONTROLS=1
38647 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl"
38648 else
38649 { echo "$as_me:$LINENO: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&5
38650echo "$as_me: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&2;}
38651 fi
38652fi
38653
38654if test "$wxUSE_NOTEBOOK" = "yes"; then
38655 cat >>confdefs.h <<\_ACEOF
38656#define wxUSE_NOTEBOOK 1
38657_ACEOF
38658
38659 USES_CONTROLS=1
38660 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook"
38661fi
38662
38663
38664if test "$wxUSE_RADIOBOX" = "yes"; then
38665 cat >>confdefs.h <<\_ACEOF
38666#define wxUSE_RADIOBOX 1
38667_ACEOF
38668
38669 USES_CONTROLS=1
38670fi
38671
38672if test "$wxUSE_RADIOBTN" = "yes"; then
38673 cat >>confdefs.h <<\_ACEOF
38674#define wxUSE_RADIOBTN 1
38675_ACEOF
38676
38677 USES_CONTROLS=1
38678fi
38679
38680if test "$wxUSE_SASH" = "yes"; then
38681 cat >>confdefs.h <<\_ACEOF
38682#define wxUSE_SASH 1
38683_ACEOF
38684
38685 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest"
38686fi
38687
38688if test "$wxUSE_SCROLLBAR" = "yes"; then
38689 cat >>confdefs.h <<\_ACEOF
38690#define wxUSE_SCROLLBAR 1
38691_ACEOF
38692
38693 USES_CONTROLS=1
38694 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub"
38695fi
38696
38697if test "$wxUSE_SLIDER" = "yes"; then
38698 cat >>confdefs.h <<\_ACEOF
38699#define wxUSE_SLIDER 1
38700_ACEOF
38701
38702 USES_CONTROLS=1
38703fi
38704
38705if test "$wxUSE_SPINBTN" = "yes"; then
38706 cat >>confdefs.h <<\_ACEOF
38707#define wxUSE_SPINBTN 1
38708_ACEOF
38709
38710 USES_CONTROLS=1
38711fi
38712
38713if test "$wxUSE_SPINCTRL" = "yes"; then
38714 cat >>confdefs.h <<\_ACEOF
38715#define wxUSE_SPINCTRL 1
38716_ACEOF
38717
38718 USES_CONTROLS=1
38719fi
38720
38721if test "$wxUSE_SPLITTER" = "yes"; then
38722 cat >>confdefs.h <<\_ACEOF
38723#define wxUSE_SPLITTER 1
38724_ACEOF
38725
38726 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter"
38727fi
38728
38729if test "$wxUSE_STATBMP" = "yes"; then
38730 cat >>confdefs.h <<\_ACEOF
38731#define wxUSE_STATBMP 1
38732_ACEOF
38733
38734 USES_CONTROLS=1
38735fi
38736
38737if test "$wxUSE_STATBOX" = "yes"; then
38738 cat >>confdefs.h <<\_ACEOF
38739#define wxUSE_STATBOX 1
38740_ACEOF
38741
38742 USES_CONTROLS=1
38743fi
38744
38745if test "$wxUSE_STATTEXT" = "yes"; then
38746 cat >>confdefs.h <<\_ACEOF
38747#define wxUSE_STATTEXT 1
38748_ACEOF
38749
38750 USES_CONTROLS=1
38751fi
38752
38753if test "$wxUSE_STATLINE" = "yes"; then
38754 cat >>confdefs.h <<\_ACEOF
38755#define wxUSE_STATLINE 1
38756_ACEOF
38757
38758 USES_CONTROLS=1
38759fi
38760
38761if test "$wxUSE_STATUSBAR" = "yes"; then
da4486fb
VZ
38762 cat >>confdefs.h <<\_ACEOF
38763#define wxUSE_NATIVE_STATUSBAR 1
38764_ACEOF
38765
a848cd7e
SC
38766 cat >>confdefs.h <<\_ACEOF
38767#define wxUSE_STATUSBAR 1
38768_ACEOF
38769
38770 USES_CONTROLS=1
38771
38772 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar"
38773fi
38774
38775if test "$wxUSE_TABDIALOG" = "yes"; then
38776 cat >>confdefs.h <<\_ACEOF
38777#define wxUSE_TAB_DIALOG 1
38778_ACEOF
38779
a848cd7e
SC
38780fi
38781
38782if test "$wxUSE_TEXTCTRL" = "yes"; then
38783 cat >>confdefs.h <<\_ACEOF
38784#define wxUSE_TEXTCTRL 1
38785_ACEOF
38786
38787 USES_CONTROLS=1
38788 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text"
38789fi
38790
38791if test "$wxUSE_TOGGLEBTN" = "yes"; then
38792 if test "$wxUSE_COCOA" = 1 ; then
38793 { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&5
38794echo "$as_me: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&2;}
38795 wxUSE_TOGGLEBTN=no
bdcade0a
MB
38796 else
38797 if test "$wxUSE_PM" = 1; then
38798 { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under PM... disabled" >&5
38799echo "$as_me: WARNING: Toggle button not yet supported under PM... disabled" >&2;}
38800 wxUSE_TOGGLEBTN=no
38801 fi
a848cd7e
SC
38802 fi
38803 if test "$wxUSE_UNIVERSAL" = "yes"; then
38804 { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under wxUniversal... disabled" >&5
38805echo "$as_me: WARNING: Toggle button not yet supported under wxUniversal... disabled" >&2;}
38806 wxUSE_TOGGLEBTN=no
38807 fi
38808
38809 if test "$wxUSE_TOGGLEBTN" = "yes"; then
38810 cat >>confdefs.h <<\_ACEOF
38811#define wxUSE_TOGGLEBTN 1
38812_ACEOF
38813
38814 USES_CONTROLS=1
38815 fi
38816fi
38817
38818if test "$wxUSE_TOOLBAR_SIMPLE" = "yes"; then
38819 cat >>confdefs.h <<\_ACEOF
38820#define wxUSE_TOOLBAR_SIMPLE 1
38821_ACEOF
38822
38823 wxUSE_TOOLBAR="yes"
38824 USES_CONTROLS=1
38825fi
38826
38827if test "$wxUSE_TOOLBAR" = "yes"; then
38828 cat >>confdefs.h <<\_ACEOF
38829#define wxUSE_TOOLBAR 1
38830_ACEOF
38831
38832 USES_CONTROLS=1
38833
38834 if test "$wxUSE_TOOLBAR_SIMPLE" != "yes"; then
38835 wxUSE_TOOLBAR_NATIVE="yes"
38836 fi
38837
38838 if test "$wxUSE_TOOLBAR_NATIVE" = "yes"; then
38839 cat >>confdefs.h <<\_ACEOF
38840#define wxUSE_TOOLBAR_NATIVE 1
38841_ACEOF
38842
38843 USES_CONTROLS=1
38844 fi
38845
38846 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar"
38847fi
38848
38849if test "$wxUSE_TOOLTIPS" = "yes"; then
38850 if test "$wxUSE_MOTIF" = 1; then
38851 { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet under Motif... disabled" >&5
38852echo "$as_me: WARNING: wxTooltip not supported yet under Motif... disabled" >&2;}
38853 else
38854 if test "$wxUSE_UNIVERSAL" = "yes"; then
38855 { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&5
38856echo "$as_me: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&2;}
38857 else
38858 cat >>confdefs.h <<\_ACEOF
38859#define wxUSE_TOOLTIPS 1
38860_ACEOF
38861
38862 fi
38863 fi
38864fi
38865
38866if test "$wxUSE_TREECTRL" = "yes"; then
38867 if test "$wxUSE_IMAGLIST" = "yes"; then
38868 cat >>confdefs.h <<\_ACEOF
38869#define wxUSE_TREECTRL 1
38870_ACEOF
38871
38872 USES_CONTROLS=1
38873 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl"
38874 else
38875 { echo "$as_me:$LINENO: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&5
38876echo "$as_me: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&2;}
38877 fi
38878fi
38879
38880if test "$wxUSE_POPUPWIN" = "yes"; then
38881 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
38882 { echo "$as_me:$LINENO: WARNING: Popup window not yet supported under Mac OS X... disabled" >&5
38883echo "$as_me: WARNING: Popup window not yet supported under Mac OS X... disabled" >&2;}
38884 else
38885 if test "$wxUSE_PM" = 1; then
38886 { echo "$as_me:$LINENO: WARNING: wxPopupWindow not yet supported under PM... disabled" >&5
38887echo "$as_me: WARNING: wxPopupWindow not yet supported under PM... disabled" >&2;}
38888 else
38889 cat >>confdefs.h <<\_ACEOF
38890#define wxUSE_POPUPWIN 1
38891_ACEOF
38892
0b78747f 38893 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS popup"
a848cd7e
SC
38894
38895 USES_CONTROLS=1
38896 fi
38897 fi
38898fi
38899
0dcd06dd 38900if test "$wxUSE_DIALUP_MANAGER" = "yes"; then
b843b628
MB
38901 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
38902 { echo "$as_me:$LINENO: WARNING: Dialup manager not yet supported under Mac OS X... disabled" >&5
38903echo "$as_me: WARNING: Dialup manager not yet supported under Mac OS X... disabled" >&2;}
38904 else
38905 cat >>confdefs.h <<\_ACEOF
38906#define wxUSE_DIALUP_MANAGER 1
38907_ACEOF
38908
38909 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup"
38910 fi
38911fi
38912
a848cd7e
SC
38913if test "$wxUSE_TIPWINDOW" = "yes"; then
38914 if test "$wxUSE_PM" = 1; then
38915 { echo "$as_me:$LINENO: WARNING: wxTipWindow not yet supported under PM... disabled" >&5
38916echo "$as_me: WARNING: wxTipWindow not yet supported under PM... disabled" >&2;}
38917 else
38918 cat >>confdefs.h <<\_ACEOF
38919#define wxUSE_TIPWINDOW 1
38920_ACEOF
38921
38922 fi
38923fi
38924
38925if test "$USES_CONTROLS" = 1; then
38926 cat >>confdefs.h <<\_ACEOF
38927#define wxUSE_CONTROLS 1
38928_ACEOF
38929
38930fi
38931
38932
38933if test "$wxUSE_ACCESSIBILITY" = "yes"; then
38934 cat >>confdefs.h <<\_ACEOF
38935#define wxUSE_ACCESSIBILITY 1
38936_ACEOF
38937
38938 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS access"
38939fi
38940
38941if test "$wxUSE_DRAGIMAGE" = "yes"; then
38942 cat >>confdefs.h <<\_ACEOF
38943#define wxUSE_DRAGIMAGE 1
38944_ACEOF
38945
38946 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag"
38947fi
38948
38949if test "$wxUSE_EXCEPTIONS" = "yes"; then
07bea8f0
VS
38950 if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
38951 { echo "$as_me:$LINENO: WARNING: --enable-exceptions can't be used with --enable-no_exceptions" >&5
38952echo "$as_me: WARNING: --enable-exceptions can't be used with --enable-no_exceptions" >&2;}
38953 else
38954 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
38955#define wxUSE_EXCEPTIONS 1
38956_ACEOF
38957
07bea8f0
VS
38958 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS except"
38959 fi
a848cd7e
SC
38960fi
38961
38962USE_HTML=0
38963if test "$wxUSE_HTML" = "yes"; then
38964 cat >>confdefs.h <<\_ACEOF
38965#define wxUSE_HTML 1
38966_ACEOF
38967
38968 USE_HTML=1
38969 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html html/about html/help html/helpview html/printing html/test html/virtual html/widget html/zip htlbox"
de59c161
RD
38970 if test "$wxUSE_MAC" = 1; then
38971 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html/htmlctrl"
38972 fi
a848cd7e 38973fi
646b6ec1 38974if test "$wxUSE_WEBKIT" = "yes"; then
1e9e8aba 38975 if test "$wxUSE_MAC" = 1 -a "$USE_DARWIN" = 1; then
07bea8f0
VS
38976 old_CPPFLAGS="$CPPFLAGS"
38977 CPPFLAGS="$CPPFLAGS -x objective-c++"
38978 echo "$as_me:$LINENO: checking for WebKit/HIWebView.h" >&5
38979echo $ECHO_N "checking for WebKit/HIWebView.h... $ECHO_C" >&6
38980if test "${ac_cv_header_WebKit_HIWebView_h+set}" = set; then
38981 echo $ECHO_N "(cached) $ECHO_C" >&6
38982else
38983 cat >conftest.$ac_ext <<_ACEOF
38984/* confdefs.h. */
38985_ACEOF
38986cat confdefs.h >>conftest.$ac_ext
38987cat >>conftest.$ac_ext <<_ACEOF
38988/* end confdefs.h. */
38989#include <Carbon/Carbon.h>
38990
38991#include <WebKit/HIWebView.h>
38992_ACEOF
38993rm -f conftest.$ac_objext
38994if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38995 (eval $ac_compile) 2>conftest.er1
38996 ac_status=$?
38997 grep -v '^ *+' conftest.er1 >conftest.err
38998 rm -f conftest.er1
38999 cat conftest.err >&5
39000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39001 (exit $ac_status); } &&
07158944 39002 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
07bea8f0
VS
39003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39004 (eval $ac_try) 2>&5
39005 ac_status=$?
39006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39007 (exit $ac_status); }; } &&
39008 { ac_try='test -s conftest.$ac_objext'
39009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39010 (eval $ac_try) 2>&5
39011 ac_status=$?
39012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39013 (exit $ac_status); }; }; then
39014 ac_cv_header_WebKit_HIWebView_h=yes
39015else
39016 echo "$as_me: failed program was:" >&5
39017sed 's/^/| /' conftest.$ac_ext >&5
39018
39019ac_cv_header_WebKit_HIWebView_h=no
39020fi
39021rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39022fi
39023echo "$as_me:$LINENO: result: $ac_cv_header_WebKit_HIWebView_h" >&5
39024echo "${ECHO_T}$ac_cv_header_WebKit_HIWebView_h" >&6
39025if test $ac_cv_header_WebKit_HIWebView_h = yes; then
39026
39027 cat >>confdefs.h <<\_ACEOF
646b6ec1
VS
39028#define wxUSE_WEBKIT 1
39029_ACEOF
39030
07bea8f0
VS
39031 WEBKIT_LINK="-framework WebKit"
39032
39033else
39034
39035 { echo "$as_me:$LINENO: WARNING: WebKit headers not found; disabling wxWebKit" >&5
39036echo "$as_me: WARNING: WebKit headers not found; disabling wxWebKit" >&2;}
39037 wxUSE_WEBKIT=no
39038
646b6ec1
VS
39039fi
39040
07bea8f0
VS
39041
39042 CPPFLAGS="$old_CPPFLAGS"
39043 elif test "$wxUSE_COCOA" = 1; then
39044 cat >>confdefs.h <<\_ACEOF
39045#define wxUSE_WEBKIT 1
39046_ACEOF
39047
39048 else
39049 wxUSE_WEBKIT=no
39050 fi
39051fi
39052
9a8f0513
VS
39053USE_XRC=0
39054if test "$wxUSE_XRC" = "yes"; then
d2ebf0b7
VS
39055 if test "$wxUSE_XML" != "yes"; then
39056 { echo "$as_me:$LINENO: WARNING: XML library not built, XRC resources disabled" >&5
39057echo "$as_me: WARNING: XML library not built, XRC resources disabled" >&2;}
39058 wxUSE_XRC=no
39059 else
39060 cat >>confdefs.h <<\_ACEOF
9a8f0513
VS
39061#define wxUSE_XRC 1
39062_ACEOF
39063
d2ebf0b7
VS
39064 USE_XRC=1
39065 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS xrc"
39066 fi
9a8f0513 39067fi
07bea8f0 39068
a848cd7e
SC
39069if test "$wxUSE_MENUS" = "yes"; then
39070 cat >>confdefs.h <<\_ACEOF
39071#define wxUSE_MENUS 1
39072_ACEOF
39073
39074 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu"
39075fi
39076
39077if test "$wxUSE_METAFILE" = "yes"; then
39078 cat >>confdefs.h <<\_ACEOF
39079#define wxUSE_METAFILE 1
39080_ACEOF
39081
39082fi
39083
39084if test "$wxUSE_MIMETYPE" = "yes"; then
39085 cat >>confdefs.h <<\_ACEOF
39086#define wxUSE_MIMETYPE 1
39087_ACEOF
39088
39089fi
39090
39091if test "$wxUSE_MINIFRAME" = "yes"; then
39092 cat >>confdefs.h <<\_ACEOF
39093#define wxUSE_MINIFRAME 1
39094_ACEOF
39095
39096 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram"
39097fi
39098
39099if test "$wxUSE_SYSTEM_OPTIONS" = "yes"; then
39100 cat >>confdefs.h <<\_ACEOF
39101#define wxUSE_SYSTEM_OPTIONS 1
39102_ACEOF
39103
39104 if test "$TOOLKIT" = "MSW" -o "$TOOLKIT" = "GTK" -o "$TOOLKIT" = "X11" -o \
a49baeab 39105 "$TOOLKIT" = "MOTIF" -o "$TOOLKIT" = "COCOA"; then
a848cd7e
SC
39106 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS taskbar"
39107 fi
39108fi
39109
39110
39111if test "$wxUSE_VALIDATORS" = "yes"; then
39112 cat >>confdefs.h <<\_ACEOF
39113#define wxUSE_VALIDATORS 1
39114_ACEOF
39115
39116 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate"
39117fi
39118
39119if test "$wxUSE_PALETTE" = "yes" ; then
39120 cat >>confdefs.h <<\_ACEOF
39121#define wxUSE_PALETTE 1
39122_ACEOF
39123
39124fi
39125
39126if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_MSLU" = "yes" ; then
39127 LIBS=" -lunicows $LIBS"
39128fi
39129
39130
39131if test "$wxUSE_IMAGE" = "yes" ; then
39132 cat >>confdefs.h <<\_ACEOF
39133#define wxUSE_IMAGE 1
39134_ACEOF
39135
39136
39137 if test "$wxUSE_GIF" = "yes" ; then
39138 cat >>confdefs.h <<\_ACEOF
39139#define wxUSE_GIF 1
39140_ACEOF
39141
39142 fi
39143
39144 if test "$wxUSE_PCX" = "yes" ; then
39145 cat >>confdefs.h <<\_ACEOF
39146#define wxUSE_PCX 1
39147_ACEOF
39148
39149 fi
39150
39151 if test "$wxUSE_IFF" = "yes" ; then
39152 cat >>confdefs.h <<\_ACEOF
39153#define wxUSE_IFF 1
39154_ACEOF
39155
39156 fi
39157
39158 if test "$wxUSE_PNM" = "yes" ; then
39159 cat >>confdefs.h <<\_ACEOF
39160#define wxUSE_PNM 1
39161_ACEOF
39162
39163 fi
39164
39165 if test "$wxUSE_XPM" = "yes" ; then
39166 cat >>confdefs.h <<\_ACEOF
39167#define wxUSE_XPM 1
39168_ACEOF
39169
39170 fi
39171
39172 if test "$wxUSE_ICO_CUR" = "yes" ; then
39173 cat >>confdefs.h <<\_ACEOF
39174#define wxUSE_ICO_CUR 1
39175_ACEOF
39176
39177 fi
39178fi
39179
39180
39181if test "$wxUSE_CHOICEDLG" = "yes"; then
39182 cat >>confdefs.h <<\_ACEOF
39183#define wxUSE_CHOICEDLG 1
39184_ACEOF
39185
39186fi
39187
39188if test "$wxUSE_COLOURDLG" = "yes"; then
39189 cat >>confdefs.h <<\_ACEOF
39190#define wxUSE_COLOURDLG 1
39191_ACEOF
39192
39193fi
39194
39195if test "$wxUSE_FILEDLG" = "yes"; then
39196 cat >>confdefs.h <<\_ACEOF
39197#define wxUSE_FILEDLG 1
39198_ACEOF
39199
39200fi
39201
39202if test "$wxUSE_FINDREPLDLG" = "yes"; then
39203 cat >>confdefs.h <<\_ACEOF
39204#define wxUSE_FINDREPLDLG 1
39205_ACEOF
39206
39207fi
39208
39209if test "$wxUSE_FONTDLG" = "yes"; then
39210 cat >>confdefs.h <<\_ACEOF
39211#define wxUSE_FONTDLG 1
39212_ACEOF
39213
39214fi
39215
39216if test "$wxUSE_DIRDLG" = "yes"; then
39217 if test "$wxUSE_TREECTRL" != "yes"; then
39218 { echo "$as_me:$LINENO: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&5
39219echo "$as_me: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&2;}
39220 else
39221 cat >>confdefs.h <<\_ACEOF
39222#define wxUSE_DIRDLG 1
39223_ACEOF
39224
39225 fi
39226fi
39227
39228if test "$wxUSE_MSGDLG" = "yes"; then
39229 cat >>confdefs.h <<\_ACEOF
39230#define wxUSE_MSGDLG 1
39231_ACEOF
39232
39233fi
39234
39235if test "$wxUSE_NUMBERDLG" = "yes"; then
39236 cat >>confdefs.h <<\_ACEOF
39237#define wxUSE_NUMBERDLG 1
39238_ACEOF
39239
39240fi
39241
39242if test "$wxUSE_PROGRESSDLG" = "yes"; then
39243 if test "$wxUSE_CONSTRAINTS" != "yes"; then
39244 { echo "$as_me:$LINENO: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&5
39245echo "$as_me: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&2;}
39246 else
39247 cat >>confdefs.h <<\_ACEOF
39248#define wxUSE_PROGRESSDLG 1
39249_ACEOF
39250
39251 fi
39252fi
39253
39254if test "$wxUSE_SPLASH" = "yes"; then
39255 cat >>confdefs.h <<\_ACEOF
39256#define wxUSE_SPLASH 1
39257_ACEOF
39258
2057db16 39259 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splash"
a848cd7e
SC
39260fi
39261
39262if test "$wxUSE_STARTUP_TIPS" = "yes"; then
39263 if test "$wxUSE_CONSTRAINTS" != "yes"; then
39264 { echo "$as_me:$LINENO: WARNING: Startup tips requires constraints and won't be compiled without them" >&5
39265echo "$as_me: WARNING: Startup tips requires constraints and won't be compiled without them" >&2;}
39266 else
39267 cat >>confdefs.h <<\_ACEOF
39268#define wxUSE_STARTUP_TIPS 1
39269_ACEOF
39270
39271 fi
39272fi
39273
39274if test "$wxUSE_TEXTDLG" = "yes"; then
39275 cat >>confdefs.h <<\_ACEOF
39276#define wxUSE_TEXTDLG 1
39277_ACEOF
39278
39279fi
39280
39281if test "$wxUSE_WIZARDDLG" = "yes"; then
39282 cat >>confdefs.h <<\_ACEOF
39283#define wxUSE_WIZARDDLG 1
39284_ACEOF
39285
39286 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard"
39287fi
39288
39289
ce756cb0
RN
39290if test "$wxUSE_MEDIACTRL" = "yes"; then
39291 if test "$wxUSE_MSW" = 1; then
39292 wxUSE_DIRECTSHOW="yes"
39293
39294for ac_header in dshow.h
39295do
39296as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
39297echo "$as_me:$LINENO: checking for $ac_header" >&5
39298echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
39299if eval "test \"\${$as_ac_Header+set}\" = set"; then
39300 echo $ECHO_N "(cached) $ECHO_C" >&6
39301else
39302 cat >conftest.$ac_ext <<_ACEOF
39303/* confdefs.h. */
39304_ACEOF
39305cat confdefs.h >>conftest.$ac_ext
39306cat >>conftest.$ac_ext <<_ACEOF
39307/* end confdefs.h. */
39308#include <windows.h>
39309
39310#include <$ac_header>
39311_ACEOF
39312rm -f conftest.$ac_objext
39313if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39314 (eval $ac_compile) 2>conftest.er1
39315 ac_status=$?
39316 grep -v '^ *+' conftest.er1 >conftest.err
39317 rm -f conftest.er1
39318 cat conftest.err >&5
39319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39320 (exit $ac_status); } &&
07158944 39321 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ce756cb0
RN
39322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39323 (eval $ac_try) 2>&5
39324 ac_status=$?
39325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39326 (exit $ac_status); }; } &&
39327 { ac_try='test -s conftest.$ac_objext'
39328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39329 (eval $ac_try) 2>&5
39330 ac_status=$?
39331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39332 (exit $ac_status); }; }; then
39333 eval "$as_ac_Header=yes"
39334else
39335 echo "$as_me: failed program was:" >&5
39336sed 's/^/| /' conftest.$ac_ext >&5
39337
39338eval "$as_ac_Header=no"
39339fi
39340rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39341fi
39342echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
39343echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
39344if test `eval echo '${'$as_ac_Header'}'` = yes; then
39345 cat >>confdefs.h <<_ACEOF
39346#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
39347_ACEOF
39348
39349else
39350
39351 wxUSE_DIRECTSHOW="no"
39352 { echo "$as_me:$LINENO: WARNING: DirectShow not installed; consider installing the DirectX7 SDK or higher" >&5
39353echo "$as_me: WARNING: DirectShow not installed; consider installing the DirectX7 SDK or higher" >&2;}
39354
39355fi
39356
39357done
39358
39359
39360 if test "$wxUSE_DIRECTSHOW" = "yes"; then
39361 cat >>confdefs.h <<\_ACEOF
39362#define wxUSE_DIRECTSHOW 1
39363_ACEOF
39364
39365 LIBS="$LIBS -lstrmiids"
39366 fi
39367 fi
39368
39369 if test "$wxUSE_GTK" = 1; then
39370 wxUSE_GSTREAMER="yes"
39371
ce756cb0 39372
dae87f93 39373 succeeded=no
ce756cb0 39374
dae87f93
RN
39375 if test -z "$PKG_CONFIG"; then
39376 # Extract the first word of "pkg-config", so it can be a program name with args.
39377set dummy pkg-config; ac_word=$2
39378echo "$as_me:$LINENO: checking for $ac_word" >&5
39379echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
39380if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
39381 echo $ECHO_N "(cached) $ECHO_C" >&6
39382else
39383 case $PKG_CONFIG in
39384 [\\/]* | ?:[\\/]*)
39385 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
39386 ;;
39387 *)
39388 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
39389for as_dir in $PATH
39390do
39391 IFS=$as_save_IFS
39392 test -z "$as_dir" && as_dir=.
39393 for ac_exec_ext in '' $ac_executable_extensions; do
39394 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
39395 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
39396 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
39397 break 2
39398 fi
39399done
39400done
39401
39402 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
39403 ;;
39404esac
39405fi
39406PKG_CONFIG=$ac_cv_path_PKG_CONFIG
39407
39408if test -n "$PKG_CONFIG"; then
39409 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
39410echo "${ECHO_T}$PKG_CONFIG" >&6
39411else
39412 echo "$as_me:$LINENO: result: no" >&5
39413echo "${ECHO_T}no" >&6
39414fi
39415
39416 fi
39417
39418 if test "$PKG_CONFIG" = "no" ; then
39419 echo "*** The pkg-config script could not be found. Make sure it is"
39420 echo "*** in your path, or set the PKG_CONFIG environment variable"
39421 echo "*** to the full path to pkg-config."
39422 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
39423 else
39424 PKG_CONFIG_MIN_VERSION=0.9.0
39425 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
39426 echo "$as_me:$LINENO: checking for gstreamer-0.8" >&5
39427echo $ECHO_N "checking for gstreamer-0.8... $ECHO_C" >&6
39428
39429 if $PKG_CONFIG --exists "gstreamer-0.8" ; then
39430 echo "$as_me:$LINENO: result: yes" >&5
ce756cb0 39431echo "${ECHO_T}yes" >&6
dae87f93 39432 succeeded=yes
ce756cb0 39433
dae87f93
RN
39434 echo "$as_me:$LINENO: checking GSTREAMER_CFLAGS" >&5
39435echo $ECHO_N "checking GSTREAMER_CFLAGS... $ECHO_C" >&6
39436 GSTREAMER_CFLAGS=`$PKG_CONFIG --cflags "gstreamer-0.8"`
39437 echo "$as_me:$LINENO: result: $GSTREAMER_CFLAGS" >&5
39438echo "${ECHO_T}$GSTREAMER_CFLAGS" >&6
39439
39440 echo "$as_me:$LINENO: checking GSTREAMER_LIBS" >&5
39441echo $ECHO_N "checking GSTREAMER_LIBS... $ECHO_C" >&6
39442 GSTREAMER_LIBS=`$PKG_CONFIG --libs "gstreamer-0.8"`
39443 echo "$as_me:$LINENO: result: $GSTREAMER_LIBS" >&5
39444echo "${ECHO_T}$GSTREAMER_LIBS" >&6
39445 else
39446 GSTREAMER_CFLAGS=""
39447 GSTREAMER_LIBS=""
39448 ## If we have a custom action on failure, don't print errors, but
39449 ## do set a variable so people can do so.
39450 GSTREAMER_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gstreamer-0.8"`
ce756cb0 39451
dae87f93
RN
39452 fi
39453
39454
39455
39456 else
39457 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
39458 echo "*** See http://www.freedesktop.org/software/pkgconfig"
39459 fi
39460 fi
39461
39462 if test $succeeded = yes; then
39463
39464 CPPFLAGS="$CPPFLAGS $GSTREAMER_CFLAGS"
39465 LIBS="$LIBS $GSTREAMER_LIBS -lgstplay-0.8"
ce756cb0 39466
ce756cb0 39467 else
dae87f93
RN
39468
39469 { echo "$as_me:$LINENO: WARNING: GStreamer installation not found" >&5
39470echo "$as_me: WARNING: GStreamer installation not found" >&2;}
39471 wxUSE_GSTREAMER="no"
39472
39473 fi
39474
39475
39476
39477
39478
39479 if test "x$GST_INSPECT" == "x"; then
39480 # Extract the first word of "gst-inspect", so it can be a program name with args.
39481set dummy gst-inspect; ac_word=$2
39482echo "$as_me:$LINENO: checking for $ac_word" >&5
39483echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
39484if test "${ac_cv_prog_GST_INSPECT+set}" = set; then
39485 echo $ECHO_N "(cached) $ECHO_C" >&6
39486else
39487 if test -n "$GST_INSPECT"; then
39488 ac_cv_prog_GST_INSPECT="$GST_INSPECT" # Let the user override the test.
39489else
39490as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
39491for as_dir in $PATH
39492do
39493 IFS=$as_save_IFS
39494 test -z "$as_dir" && as_dir=.
39495 for ac_exec_ext in '' $ac_executable_extensions; do
39496 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
39497 ac_cv_prog_GST_INSPECT="gst-inspect"
39498 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
39499 break 2
ce756cb0 39500 fi
dae87f93
RN
39501done
39502done
39503
39504fi
39505fi
39506GST_INSPECT=$ac_cv_prog_GST_INSPECT
39507if test -n "$GST_INSPECT"; then
39508 echo "$as_me:$LINENO: result: $GST_INSPECT" >&5
39509echo "${ECHO_T}$GST_INSPECT" >&6
39510else
39511 echo "$as_me:$LINENO: result: no" >&5
39512echo "${ECHO_T}no" >&6
39513fi
39514
39515 fi
39516
39517 if test "x$GST_INSPECT" != "x"; then
39518 echo "$as_me:$LINENO: checking GStreamer element xvimagesink" >&5
39519echo $ECHO_N "checking GStreamer element xvimagesink... $ECHO_C" >&6
39520 if $GST_INSPECT xvimagesink > /dev/null 2> /dev/null ; then
39521 echo "$as_me:$LINENO: result: found." >&5
39522echo "${ECHO_T}found." >&6
ce756cb0 39523
ce756cb0 39524 else
dae87f93
RN
39525 echo "$as_me:$LINENO: result: not found." >&5
39526echo "${ECHO_T}not found." >&6
39527
39528 wxUSE_GSTREAMER="no"
39529 { echo "$as_me:$LINENO: WARNING: x video sink not found - cannot use GStreamer" >&5
39530echo "$as_me: WARNING: x video sink not found - cannot use GStreamer" >&2;}
39531
39532 fi
39533 fi
39534
39535
39536 echo "$as_me:$LINENO: checking for gst/xoverlay/xoverlay.h" >&5
39537echo $ECHO_N "checking for gst/xoverlay/xoverlay.h... $ECHO_C" >&6
39538if test "${ac_cv_header_gst_xoverlay_xoverlay_h+set}" = set; then
39539 echo $ECHO_N "(cached) $ECHO_C" >&6
39540else
39541 cat >conftest.$ac_ext <<_ACEOF
ce756cb0
RN
39542/* confdefs.h. */
39543_ACEOF
39544cat confdefs.h >>conftest.$ac_ext
39545cat >>conftest.$ac_ext <<_ACEOF
39546/* end confdefs.h. */
dae87f93 39547#include <gst/gst.h>
ce756cb0 39548
dae87f93 39549#include <gst/xoverlay/xoverlay.h>
ce756cb0
RN
39550_ACEOF
39551rm -f conftest.$ac_objext
39552if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39553 (eval $ac_compile) 2>conftest.er1
39554 ac_status=$?
39555 grep -v '^ *+' conftest.er1 >conftest.err
39556 rm -f conftest.er1
39557 cat conftest.err >&5
39558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39559 (exit $ac_status); } &&
07158944 39560 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ce756cb0
RN
39561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39562 (eval $ac_try) 2>&5
39563 ac_status=$?
39564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39565 (exit $ac_status); }; } &&
39566 { ac_try='test -s conftest.$ac_objext'
39567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39568 (eval $ac_try) 2>&5
39569 ac_status=$?
39570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39571 (exit $ac_status); }; }; then
dae87f93 39572 ac_cv_header_gst_xoverlay_xoverlay_h=yes
ce756cb0
RN
39573else
39574 echo "$as_me: failed program was:" >&5
39575sed 's/^/| /' conftest.$ac_ext >&5
39576
dae87f93 39577ac_cv_header_gst_xoverlay_xoverlay_h=no
ce756cb0
RN
39578fi
39579rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
dae87f93
RN
39580fi
39581echo "$as_me:$LINENO: result: $ac_cv_header_gst_xoverlay_xoverlay_h" >&5
39582echo "${ECHO_T}$ac_cv_header_gst_xoverlay_xoverlay_h" >&6
39583if test $ac_cv_header_gst_xoverlay_xoverlay_h = yes; then
39584 :
39585else
ce756cb0 39586
dae87f93
RN
39587 wxUSE_GSTREAMER="no"
39588 { echo "$as_me:$LINENO: WARNING: xoverlay header not found, cannot use GStreamer" >&5
39589echo "$as_me: WARNING: xoverlay header not found, cannot use GStreamer" >&2;}
ce756cb0 39590
dae87f93 39591fi
ce756cb0 39592
dae87f93
RN
39593
39594
39595 echo "$as_me:$LINENO: checking for gstplay 0.8" >&5
ce756cb0
RN
39596echo $ECHO_N "checking for gstplay 0.8... $ECHO_C" >&6
39597
39598ac_find_libraries=
39599for ac_dir in $SEARCH_LIB /usr/lib;
39600 do
39601 for ac_extension in a so sl dylib; do
39602 if test -f "$ac_dir/libgstplay-0.8.$ac_extension"; then
39603 ac_find_libraries=$ac_dir
39604 break 2
39605 fi
39606 done
39607 done
39608
ce756cb0 39609
dae87f93
RN
39610 if test "$ac_find_libraries" = "" ; then
39611 echo "$as_me:$LINENO: result: no" >&5
39612echo "${ECHO_T}no" >&6
39613 wxUSE_GSTREAMER="no"
39614 else
39615 echo "$as_me:$LINENO: result: yes" >&5
ce756cb0 39616echo "${ECHO_T}yes" >&6
dae87f93 39617 fi
ce756cb0 39618
dae87f93
RN
39619 if test "$wxUSE_GSTREAMER" = "yes"; then
39620 cat >>confdefs.h <<\_ACEOF
ce756cb0
RN
39621#define wxUSE_GSTREAMER 1
39622_ACEOF
39623
dae87f93
RN
39624 echo "$as_me:$LINENO: result: GStreamer detection successful" >&5
39625echo "${ECHO_T}GStreamer detection successful" >&6
ce756cb0
RN
39626 fi
39627 fi
39628 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mediaplayer"
39629 cat >>confdefs.h <<\_ACEOF
39630#define wxUSE_MEDIACTRL 1
39631_ACEOF
39632
39633fi
39634
39635
a848cd7e
SC
39636if test "$cross_compiling" = "yes"; then
39637 OSINFO="\"$host\""
39638else
39639 OSINFO=`uname -s -r -m`
39640 OSINFO="\"$OSINFO\""
39641fi
39642
39643cat >>confdefs.h <<_ACEOF
39644#define WXWIN_OS_DESCRIPTION $OSINFO
39645_ACEOF
39646
39647
39648
39649if test "x$prefix" != "xNONE"; then
39650 wxPREFIX=$prefix
39651else
39652 wxPREFIX=$ac_default_prefix
39653fi
39654
39655cat >>confdefs.h <<_ACEOF
39656#define wxINSTALL_PREFIX "$wxPREFIX"
39657_ACEOF
39658
39659
a848cd7e
SC
39660
39661
39662CORE_BASE_LIBS="net base"
39663CORE_GUI_LIBS="adv core"
39664
39665if test "$wxUSE_XML" = "yes" ; then
39666 CORE_BASE_LIBS="xml $CORE_BASE_LIBS"
39667fi
39668if test "$wxUSE_ODBC" != "no" ; then
39669 CORE_BASE_LIBS="odbc $CORE_BASE_LIBS"
39670 CORE_GUI_LIBS="dbgrid $CORE_GUI_LIBS"
39671fi
39672if test "$wxUSE_HTML" = "yes" ; then
39673 CORE_GUI_LIBS="html $CORE_GUI_LIBS"
39674fi
9a8f0513
VS
39675if test "$wxUSE_XRC" = "yes" ; then
39676 CORE_GUI_LIBS="xrc $CORE_GUI_LIBS"
39677fi
a848cd7e
SC
39678
39679if test "$wxUSE_GUI" != "yes"; then
39680 CORE_GUI_LIBS=""
39681fi
39682
39683
39684
39685
39686
39687
39688
39689
39690if test "$wxUSE_MAC" = 1 ; then
a98bf0c0 39691 if test "$wxUSE_SOUND" = "yes" || test "$wxUSE_MEDIACTRL" = "yes"; then
1e9e8aba
DE
39692 if test "$USE_DARWIN" = 1; then
39693 LDFLAGS="$LDFLAGS -framework QuickTime"
39694 else
39695 LDFLAGS="$LDFLAGS -lQuickTimeLib"
39696 fi
07bea8f0 39697 fi
5dcf30a0 39698 if test "$USE_DARWIN" = 1; then
1e9e8aba
DE
39699 LDFLAGS="$LDFLAGS -framework IOKit -framework Carbon -framework Cocoa -framework System"
39700 else
39701 LDFLAGS="$LDFLAGS -lCarbonLib"
5dcf30a0 39702 fi
a848cd7e
SC
39703fi
39704if test "$wxUSE_COCOA" = 1 ; then
4cb1d3da 39705 LDFLAGS="$LDFLAGS -framework IOKit -framework Cocoa"
4fc81cbc
RN
39706 if test "$wxUSE_MEDIACTRL" = "yes"; then
39707 LDFLAGS="$LDFLAGS -framework QuickTime"
39708 fi
a848cd7e
SC
39709fi
39710
39711
39712LIBS="$ZLIB_LINK $POSIX4_LINK $INET_LINK $WCHAR_LINK $DL_LINK $LIBS"
39713
39714have_cos=0
39715have_floor=0
39716
39717for ac_func in cos
39718do
39719as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39720echo "$as_me:$LINENO: checking for $ac_func" >&5
39721echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
39722if eval "test \"\${$as_ac_var+set}\" = set"; then
39723 echo $ECHO_N "(cached) $ECHO_C" >&6
39724else
39725 cat >conftest.$ac_ext <<_ACEOF
39726/* confdefs.h. */
39727_ACEOF
39728cat confdefs.h >>conftest.$ac_ext
39729cat >>conftest.$ac_ext <<_ACEOF
39730/* end confdefs.h. */
ac1cb8d3
VS
39731/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39732 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39733#define $ac_func innocuous_$ac_func
39734
a848cd7e
SC
39735/* System header to define __stub macros and hopefully few prototypes,
39736 which can conflict with char $ac_func (); below.
39737 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39738 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 39739
a848cd7e
SC
39740#ifdef __STDC__
39741# include <limits.h>
39742#else
39743# include <assert.h>
39744#endif
ac1cb8d3
VS
39745
39746#undef $ac_func
39747
a848cd7e
SC
39748/* Override any gcc2 internal prototype to avoid an error. */
39749#ifdef __cplusplus
39750extern "C"
39751{
39752#endif
39753/* We use char because int might match the return type of a gcc2
39754 builtin and then its argument prototype would still apply. */
39755char $ac_func ();
39756/* The GNU C library defines this for functions which it implements
39757 to always fail with ENOSYS. Some functions are actually named
39758 something starting with __ and the normal name is an alias. */
39759#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
39760choke me
39761#else
39762char (*f) () = $ac_func;
39763#endif
39764#ifdef __cplusplus
39765}
39766#endif
39767
39768int
39769main ()
39770{
39771return f != $ac_func;
39772 ;
39773 return 0;
39774}
39775_ACEOF
39776rm -f conftest.$ac_objext conftest$ac_exeext
39777if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 39778 (eval $ac_link) 2>conftest.er1
a848cd7e 39779 ac_status=$?
ac1cb8d3
VS
39780 grep -v '^ *+' conftest.er1 >conftest.err
39781 rm -f conftest.er1
39782 cat conftest.err >&5
a848cd7e
SC
39783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39784 (exit $ac_status); } &&
07158944 39785 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
39786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39787 (eval $ac_try) 2>&5
39788 ac_status=$?
39789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39790 (exit $ac_status); }; } &&
39791 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
39792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39793 (eval $ac_try) 2>&5
39794 ac_status=$?
39795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39796 (exit $ac_status); }; }; then
39797 eval "$as_ac_var=yes"
39798else
39799 echo "$as_me: failed program was:" >&5
39800sed 's/^/| /' conftest.$ac_ext >&5
39801
39802eval "$as_ac_var=no"
39803fi
ac1cb8d3
VS
39804rm -f conftest.err conftest.$ac_objext \
39805 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
39806fi
39807echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
39808echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
39809if test `eval echo '${'$as_ac_var'}'` = yes; then
39810 cat >>confdefs.h <<_ACEOF
39811#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39812_ACEOF
39813 have_cos=1
39814fi
39815done
39816
39817
39818for ac_func in floor
39819do
39820as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39821echo "$as_me:$LINENO: checking for $ac_func" >&5
39822echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
39823if eval "test \"\${$as_ac_var+set}\" = set"; then
39824 echo $ECHO_N "(cached) $ECHO_C" >&6
39825else
39826 cat >conftest.$ac_ext <<_ACEOF
39827/* confdefs.h. */
39828_ACEOF
39829cat confdefs.h >>conftest.$ac_ext
39830cat >>conftest.$ac_ext <<_ACEOF
39831/* end confdefs.h. */
ac1cb8d3
VS
39832/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39833 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39834#define $ac_func innocuous_$ac_func
39835
a848cd7e
SC
39836/* System header to define __stub macros and hopefully few prototypes,
39837 which can conflict with char $ac_func (); below.
39838 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39839 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 39840
a848cd7e
SC
39841#ifdef __STDC__
39842# include <limits.h>
39843#else
39844# include <assert.h>
39845#endif
ac1cb8d3
VS
39846
39847#undef $ac_func
39848
a848cd7e
SC
39849/* Override any gcc2 internal prototype to avoid an error. */
39850#ifdef __cplusplus
39851extern "C"
39852{
39853#endif
39854/* We use char because int might match the return type of a gcc2
39855 builtin and then its argument prototype would still apply. */
39856char $ac_func ();
39857/* The GNU C library defines this for functions which it implements
39858 to always fail with ENOSYS. Some functions are actually named
39859 something starting with __ and the normal name is an alias. */
39860#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
39861choke me
39862#else
39863char (*f) () = $ac_func;
39864#endif
39865#ifdef __cplusplus
39866}
39867#endif
39868
39869int
39870main ()
39871{
39872return f != $ac_func;
39873 ;
39874 return 0;
39875}
39876_ACEOF
39877rm -f conftest.$ac_objext conftest$ac_exeext
39878if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 39879 (eval $ac_link) 2>conftest.er1
a848cd7e 39880 ac_status=$?
ac1cb8d3
VS
39881 grep -v '^ *+' conftest.er1 >conftest.err
39882 rm -f conftest.er1
39883 cat conftest.err >&5
a848cd7e
SC
39884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39885 (exit $ac_status); } &&
07158944 39886 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
39887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39888 (eval $ac_try) 2>&5
39889 ac_status=$?
39890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39891 (exit $ac_status); }; } &&
39892 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
39893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39894 (eval $ac_try) 2>&5
39895 ac_status=$?
39896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39897 (exit $ac_status); }; }; then
39898 eval "$as_ac_var=yes"
39899else
39900 echo "$as_me: failed program was:" >&5
39901sed 's/^/| /' conftest.$ac_ext >&5
39902
39903eval "$as_ac_var=no"
39904fi
ac1cb8d3
VS
39905rm -f conftest.err conftest.$ac_objext \
39906 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
39907fi
39908echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
39909echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
39910if test `eval echo '${'$as_ac_var'}'` = yes; then
39911 cat >>confdefs.h <<_ACEOF
39912#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39913_ACEOF
39914 have_floor=1
39915fi
39916done
39917
39918echo "$as_me:$LINENO: checking if floating point functions link without -lm" >&5
39919echo $ECHO_N "checking if floating point functions link without -lm... $ECHO_C" >&6
39920if test "$have_cos" = 1 -a "$have_floor" = 1; then
39921 echo "$as_me:$LINENO: result: yes" >&5
39922echo "${ECHO_T}yes" >&6
39923else
39924 echo "$as_me:$LINENO: result: no" >&5
39925echo "${ECHO_T}no" >&6
39926 LIBS="$LIBS -lm"
39927 # use different functions to avoid configure caching
39928 have_sin=0
39929 have_ceil=0
39930
39931for ac_func in sin
39932do
39933as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39934echo "$as_me:$LINENO: checking for $ac_func" >&5
39935echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
39936if eval "test \"\${$as_ac_var+set}\" = set"; then
39937 echo $ECHO_N "(cached) $ECHO_C" >&6
39938else
39939 cat >conftest.$ac_ext <<_ACEOF
39940/* confdefs.h. */
39941_ACEOF
39942cat confdefs.h >>conftest.$ac_ext
39943cat >>conftest.$ac_ext <<_ACEOF
39944/* end confdefs.h. */
ac1cb8d3
VS
39945/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39946 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39947#define $ac_func innocuous_$ac_func
39948
a848cd7e
SC
39949/* System header to define __stub macros and hopefully few prototypes,
39950 which can conflict with char $ac_func (); below.
39951 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39952 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 39953
a848cd7e
SC
39954#ifdef __STDC__
39955# include <limits.h>
39956#else
39957# include <assert.h>
39958#endif
ac1cb8d3
VS
39959
39960#undef $ac_func
39961
a848cd7e
SC
39962/* Override any gcc2 internal prototype to avoid an error. */
39963#ifdef __cplusplus
39964extern "C"
39965{
39966#endif
39967/* We use char because int might match the return type of a gcc2
39968 builtin and then its argument prototype would still apply. */
39969char $ac_func ();
39970/* The GNU C library defines this for functions which it implements
39971 to always fail with ENOSYS. Some functions are actually named
39972 something starting with __ and the normal name is an alias. */
39973#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
39974choke me
39975#else
39976char (*f) () = $ac_func;
39977#endif
39978#ifdef __cplusplus
39979}
39980#endif
39981
39982int
39983main ()
39984{
39985return f != $ac_func;
39986 ;
39987 return 0;
39988}
39989_ACEOF
39990rm -f conftest.$ac_objext conftest$ac_exeext
39991if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 39992 (eval $ac_link) 2>conftest.er1
a848cd7e 39993 ac_status=$?
ac1cb8d3
VS
39994 grep -v '^ *+' conftest.er1 >conftest.err
39995 rm -f conftest.er1
39996 cat conftest.err >&5
a848cd7e
SC
39997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39998 (exit $ac_status); } &&
07158944 39999 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
40000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40001 (eval $ac_try) 2>&5
40002 ac_status=$?
40003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40004 (exit $ac_status); }; } &&
40005 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
40006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40007 (eval $ac_try) 2>&5
40008 ac_status=$?
40009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40010 (exit $ac_status); }; }; then
40011 eval "$as_ac_var=yes"
40012else
40013 echo "$as_me: failed program was:" >&5
40014sed 's/^/| /' conftest.$ac_ext >&5
40015
40016eval "$as_ac_var=no"
40017fi
ac1cb8d3
VS
40018rm -f conftest.err conftest.$ac_objext \
40019 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
40020fi
40021echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
40022echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
40023if test `eval echo '${'$as_ac_var'}'` = yes; then
40024 cat >>confdefs.h <<_ACEOF
40025#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
40026_ACEOF
40027 have_sin=1
40028fi
40029done
40030
40031
40032for ac_func in ceil
40033do
40034as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40035echo "$as_me:$LINENO: checking for $ac_func" >&5
40036echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
40037if eval "test \"\${$as_ac_var+set}\" = set"; then
40038 echo $ECHO_N "(cached) $ECHO_C" >&6
40039else
40040 cat >conftest.$ac_ext <<_ACEOF
40041/* confdefs.h. */
40042_ACEOF
40043cat confdefs.h >>conftest.$ac_ext
40044cat >>conftest.$ac_ext <<_ACEOF
40045/* end confdefs.h. */
ac1cb8d3
VS
40046/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40047 For example, HP-UX 11i <limits.h> declares gettimeofday. */
40048#define $ac_func innocuous_$ac_func
40049
a848cd7e
SC
40050/* System header to define __stub macros and hopefully few prototypes,
40051 which can conflict with char $ac_func (); below.
40052 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40053 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 40054
a848cd7e
SC
40055#ifdef __STDC__
40056# include <limits.h>
40057#else
40058# include <assert.h>
40059#endif
ac1cb8d3
VS
40060
40061#undef $ac_func
40062
a848cd7e
SC
40063/* Override any gcc2 internal prototype to avoid an error. */
40064#ifdef __cplusplus
40065extern "C"
40066{
40067#endif
40068/* We use char because int might match the return type of a gcc2
40069 builtin and then its argument prototype would still apply. */
40070char $ac_func ();
40071/* The GNU C library defines this for functions which it implements
40072 to always fail with ENOSYS. Some functions are actually named
40073 something starting with __ and the normal name is an alias. */
40074#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
40075choke me
40076#else
40077char (*f) () = $ac_func;
40078#endif
40079#ifdef __cplusplus
40080}
40081#endif
40082
40083int
40084main ()
40085{
40086return f != $ac_func;
40087 ;
40088 return 0;
40089}
40090_ACEOF
40091rm -f conftest.$ac_objext conftest$ac_exeext
40092if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 40093 (eval $ac_link) 2>conftest.er1
a848cd7e 40094 ac_status=$?
ac1cb8d3
VS
40095 grep -v '^ *+' conftest.er1 >conftest.err
40096 rm -f conftest.er1
40097 cat conftest.err >&5
a848cd7e
SC
40098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40099 (exit $ac_status); } &&
07158944 40100 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
40101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40102 (eval $ac_try) 2>&5
40103 ac_status=$?
40104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40105 (exit $ac_status); }; } &&
40106 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
40107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40108 (eval $ac_try) 2>&5
40109 ac_status=$?
40110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40111 (exit $ac_status); }; }; then
40112 eval "$as_ac_var=yes"
40113else
40114 echo "$as_me: failed program was:" >&5
40115sed 's/^/| /' conftest.$ac_ext >&5
40116
40117eval "$as_ac_var=no"
40118fi
ac1cb8d3
VS
40119rm -f conftest.err conftest.$ac_objext \
40120 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
40121fi
40122echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
40123echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
40124if test `eval echo '${'$as_ac_var'}'` = yes; then
40125 cat >>confdefs.h <<_ACEOF
40126#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
40127_ACEOF
40128 have_ceil=1
40129fi
40130done
40131
40132 echo "$as_me:$LINENO: checking if floating point functions link with -lm" >&5
40133echo $ECHO_N "checking if floating point functions link with -lm... $ECHO_C" >&6
40134 if test "$have_sin" = 1 -a "$have_ceil" = 1; then
40135 echo "$as_me:$LINENO: result: yes" >&5
40136echo "${ECHO_T}yes" >&6
40137 else
40138 echo "$as_me:$LINENO: result: no" >&5
40139echo "${ECHO_T}no" >&6
40140 # not sure we should warn the user, crash, etc.
40141 fi
40142fi
40143
40144if test "$wxUSE_GUI" = "yes"; then
40145
40146
0b78747f 40147 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS artprov controls dialogs \
a848cd7e 40148 drawing dynamic erase event exec font image \
0b78747f 40149 minimal propsize rotate shaped vscroll widgets render"
a848cd7e
SC
40150
40151 if test "$wxUSE_MONOLITHIC" != "yes"; then
40152 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS console"
40153 fi
0b78747f
MW
40154 if test "$TOOLKIT" = "MSW"; then
40155 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS nativdlg regtest richedit"
40156 fi
a848cd7e
SC
40157else
40158 SAMPLES_SUBDIRS="console"
40159fi
40160
40161
ceec2216 40162INCLUDES="-I\${top_builddir}lib/wx/include/${TOOLCHAIN_FULLNAME} \
a848cd7e
SC
40163-I\${top_srcdir}/include $TOOLKIT_INCLUDE"
40164
40165if test "$GXX" = yes ; then
5294a27e
VZ
40166 CWARNINGS="-Wall"
40167 CXXWARNINGS="$CWARNINGS -Wno-ctor-dtor-privacy"
a848cd7e
SC
40168 fi
40169
40170EXTRA_CFLAGS="$WXDEBUG $WXODBCFLAG $PROFILE $OPTIMISE"
40171
0c3c69fc 40172CPPFLAGS=`echo $WXDEBUG_DEFINE $INCLUDES $CPPFLAGS`
5294a27e 40173CFLAGS=`echo $CODE_GEN_FLAGS $EXTRA_CFLAGS $CFLAGS $CWARNINGS`
0c3c69fc 40174CXXFLAGS=`echo $CODE_GEN_FLAGS $CODE_GEN_FLAGS_CXX $EXTRA_CFLAGS $CXXFLAGS $CXXWARNINGS`
a848cd7e 40175
95986553
DE
40176if test "x$MWCC" = "xyes"; then
40177
40178 CC="$CC -cwd source -I-"
40179 CXX="$CXX -cwd source -I-"
40180fi
40181
a848cd7e 40182
0c3c69fc 40183LIBS=`echo $LIBS`
a848cd7e
SC
40184EXTRALIBS="$LDFLAGS $LDFLAGS_VERSIONING $LIBS $DMALLOC_LIBS"
40185EXTRALIBS_XML="$EXPAT_LINK"
40186EXTRALIBS_HTML="$MSPACK_LINK"
40187EXTRALIBS_ODBC="$ODBC_LINK"
40188if test "$wxUSE_GUI" = "yes"; then
2e350179 40189 EXTRALIBS_GUI=`echo $GUI_TK_LIBRARY $PNG_LINK $JPEG_LINK $TIFF_LINK $WEBKIT_LINK $EXTRALIBS_GNOMEPRINT`
a848cd7e
SC
40190fi
40191if test "$wxUSE_OPENGL" = "yes"; then
40192 EXTRALIBS_OPENGL="$LDFLAGS_GL $OPENGL_LIBS"
40193fi
40194
40195LDFLAGS="$LDFLAGS $PROFILE"
40196
40197if test "$wxUSE_GTK" = 1; then
40198 WXCONFIG_INCLUDE=
40199else
40200 WXCONFIG_INCLUDE="$TOOLKIT_INCLUDE"
40201fi
40202
40203WXCONFIG_EXTRALIBS="$LIBS"
40204
40205if test "$wxUSE_REGEX" = "builtin" ; then
40206 wxconfig_3rdparty="$wxconfig_3rdparty regex${lib_unicode_suffix}"
40207fi
40208if test "$wxUSE_EXPAT" = "builtin" ; then
40209 wxconfig_3rdparty="$wxconfig_3rdparty expat"
40210fi
40211if test "$wxUSE_ODBC" = "builtin" ; then
40212 wxconfig_3rdparty="$wxconfig_3rdparty odbc"
40213fi
40214if test "$wxUSE_LIBTIFF" = "builtin" ; then
40215 wxconfig_3rdparty="$wxconfig_3rdparty tiff"
40216fi
40217if test "$wxUSE_LIBJPEG" = "builtin" ; then
40218 wxconfig_3rdparty="$wxconfig_3rdparty jpeg"
40219fi
40220if test "$wxUSE_LIBPNG" = "builtin" ; then
40221 wxconfig_3rdparty="$wxconfig_3rdparty png"
40222fi
40223if test "$wxUSE_ZLIB" = "builtin" ; then
40224 wxconfig_3rdparty="$wxconfig_3rdparty zlib"
40225fi
40226if test "$wxUSE_ODBC" = "builtin" ; then
40227 wxconfig_3rdparty="$wxconfig_3rdparty odbc"
40228fi
40229
40230for i in $wxconfig_3rdparty ; do
ceec2216 40231 WXCONFIG_EXTRALIBS="$WXCONFIG_EXTRALIBS -lwx${i}${lib_debug_suffix}${WX_LIB_FLAVOUR}-${WX_RELEASE}${HOST_SUFFIX}"
a848cd7e
SC
40232done
40233
40234
40235if test "x$wxUSE_UNIVERSAL" = "xyes" ; then
40236 WXUNIV=1
40237else
40238 WXUNIV=0
40239fi
40240
40241
40242
40243
40244
40245
40246
40247
40248
40249if test $wxUSE_MONOLITHIC = "yes" ; then
40250 MONOLITHIC=1
40251else
40252 MONOLITHIC=0
40253fi
40254
40255if test $wxUSE_PLUGINS = "yes" ; then
40256 USE_PLUGINS=1
40257else
40258 USE_PLUGINS=0
40259fi
40260
40261if test $wxUSE_ODBC != "no" ; then
40262 USE_ODBC=1
40263else
40264 USE_ODBC=0
40265fi
40266
40267if test $wxUSE_OFFICIAL_BUILD = "yes" ; then
40268 OFFICIAL_BUILD=1
40269else
40270 OFFICIAL_BUILD=0
40271fi
40272
40273
40274
40275
40276
40277
40278
40279
40280
40281
40282
40283
40284
40285
40286
40287
40288
40289
40290
ceec2216 40291
d1c38808 40292
a848cd7e
SC
40293
40294
40295TOOLKIT_LOWERCASE=`echo $TOOLKIT | tr "[A-Z]" "[a-z]"`
40296
40297
40298
40299
40300
40301
40302
40303
4d4ff94c
VZ
40304case "$TOOLKIT" in
40305 GTK)
40306 TOOLKIT_USER="GTK+"
40307 if test "$WXGTK20" = 1; then
40308 TOOLKIT_USER="$TOOLKIT_USER 2"
40309 fi
9a8f0513 40310 ;;
4d4ff94c
VZ
40311
40312 *)
40313 TOOLKIT_USER=$TOOLKIT_LOWERCASE
9a8f0513 40314 ;;
4d4ff94c 40315esac
a848cd7e 40316
9a8f0513 40317
1e9e8aba
DE
40318
40319
a848cd7e
SC
40320 if test "x$BAKEFILE_HOST" = "x"; then
40321 BAKEFILE_HOST="${host}"
40322 fi
40323
40324 if test "x$BAKEFILE_CHECK_BASICS" != "xno"; then
40325
40326 if test -n "$ac_tool_prefix"; then
40327 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
40328set dummy ${ac_tool_prefix}ranlib; ac_word=$2
40329echo "$as_me:$LINENO: checking for $ac_word" >&5
40330echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
40331if test "${ac_cv_prog_RANLIB+set}" = set; then
40332 echo $ECHO_N "(cached) $ECHO_C" >&6
40333else
40334 if test -n "$RANLIB"; then
40335 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
40336else
40337as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
40338for as_dir in $PATH
40339do
40340 IFS=$as_save_IFS
40341 test -z "$as_dir" && as_dir=.
40342 for ac_exec_ext in '' $ac_executable_extensions; do
40343 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
40344 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
40345 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
40346 break 2
40347 fi
40348done
40349done
40350
40351fi
40352fi
40353RANLIB=$ac_cv_prog_RANLIB
40354if test -n "$RANLIB"; then
40355 echo "$as_me:$LINENO: result: $RANLIB" >&5
40356echo "${ECHO_T}$RANLIB" >&6
40357else
40358 echo "$as_me:$LINENO: result: no" >&5
40359echo "${ECHO_T}no" >&6
40360fi
40361
40362fi
40363if test -z "$ac_cv_prog_RANLIB"; then
40364 ac_ct_RANLIB=$RANLIB
40365 # Extract the first word of "ranlib", so it can be a program name with args.
40366set dummy ranlib; ac_word=$2
40367echo "$as_me:$LINENO: checking for $ac_word" >&5
40368echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
40369if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
40370 echo $ECHO_N "(cached) $ECHO_C" >&6
40371else
40372 if test -n "$ac_ct_RANLIB"; then
40373 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
40374else
40375as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
40376for as_dir in $PATH
40377do
40378 IFS=$as_save_IFS
40379 test -z "$as_dir" && as_dir=.
40380 for ac_exec_ext in '' $ac_executable_extensions; do
40381 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
40382 ac_cv_prog_ac_ct_RANLIB="ranlib"
40383 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
40384 break 2
40385 fi
40386done
40387done
40388
40389 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
40390fi
40391fi
40392ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
40393if test -n "$ac_ct_RANLIB"; then
40394 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
40395echo "${ECHO_T}$ac_ct_RANLIB" >&6
40396else
40397 echo "$as_me:$LINENO: result: no" >&5
40398echo "${ECHO_T}no" >&6
40399fi
40400
40401 RANLIB=$ac_ct_RANLIB
40402else
40403 RANLIB="$ac_cv_prog_RANLIB"
40404fi
40405
40406 # Find a good install program. We prefer a C program (faster),
40407# so one script is as good as another. But avoid the broken or
40408# incompatible versions:
40409# SysV /etc/install, /usr/sbin/install
40410# SunOS /usr/etc/install
40411# IRIX /sbin/install
40412# AIX /bin/install
40413# AmigaOS /C/install, which installs bootblocks on floppy discs
40414# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
40415# AFS /usr/afsws/bin/install, which mishandles nonexistent args
40416# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
ac1cb8d3 40417# OS/2's system install, which has a completely different semantic
a848cd7e
SC
40418# ./install, which can be erroneously created by make from ./install.sh.
40419echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
40420echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
40421if test -z "$INSTALL"; then
40422if test "${ac_cv_path_install+set}" = set; then
40423 echo $ECHO_N "(cached) $ECHO_C" >&6
40424else
40425 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
40426for as_dir in $PATH
40427do
40428 IFS=$as_save_IFS
40429 test -z "$as_dir" && as_dir=.
40430 # Account for people who put trailing slashes in PATH elements.
40431case $as_dir/ in
40432 ./ | .// | /cC/* | \
40433 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
ac1cb8d3 40434 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
a848cd7e
SC
40435 /usr/ucb/* ) ;;
40436 *)
40437 # OSF1 and SCO ODT 3.0 have their own names for install.
40438 # Don't use installbsd from OSF since it installs stuff as root
40439 # by default.
40440 for ac_prog in ginstall scoinst install; do
40441 for ac_exec_ext in '' $ac_executable_extensions; do
ac1cb8d3
VS
40442 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
40443 if test $ac_prog = install &&
40444 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
40445 # AIX install. It has an incompatible calling convention.
40446 :
40447 elif test $ac_prog = install &&
40448 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
40449 # program-specific install script used by HP pwplus--don't use.
40450 :
40451 else
40452 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
40453 break 3
40454 fi
40455 fi
a848cd7e
SC
40456 done
40457 done
40458 ;;
40459esac
40460done
40461
40462
40463fi
40464 if test "${ac_cv_path_install+set}" = set; then
40465 INSTALL=$ac_cv_path_install
40466 else
40467 # As a last resort, use the slow shell script. We don't cache a
40468 # path for INSTALL within a source directory, because that will
40469 # break other packages using the cache if that directory is
40470 # removed, or if the path is relative.
40471 INSTALL=$ac_install_sh
40472 fi
40473fi
40474echo "$as_me:$LINENO: result: $INSTALL" >&5
40475echo "${ECHO_T}$INSTALL" >&6
40476
40477# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
40478# It thinks the first close brace ends the variable substitution.
40479test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
40480
40481test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
40482
40483test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
40484
40485 echo "$as_me:$LINENO: checking whether ln -s works" >&5
40486echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
40487LN_S=$as_ln_s
40488if test "$LN_S" = "ln -s"; then
40489 echo "$as_me:$LINENO: result: yes" >&5
40490echo "${ECHO_T}yes" >&6
40491else
40492 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
40493echo "${ECHO_T}no, using $LN_S" >&6
40494fi
40495
40496
40497 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
40498echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
ac1cb8d3 40499set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
a848cd7e
SC
40500if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
40501 echo $ECHO_N "(cached) $ECHO_C" >&6
40502else
40503 cat >conftest.make <<\_ACEOF
40504all:
40505 @echo 'ac_maketemp="$(MAKE)"'
40506_ACEOF
40507# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
40508eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
40509if test -n "$ac_maketemp"; then
40510 eval ac_cv_prog_make_${ac_make}_set=yes
40511else
40512 eval ac_cv_prog_make_${ac_make}_set=no
40513fi
40514rm -f conftest.make
40515fi
40516if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
40517 echo "$as_me:$LINENO: result: yes" >&5
40518echo "${ECHO_T}yes" >&6
40519 SET_MAKE=
40520else
40521 echo "$as_me:$LINENO: result: no" >&5
40522echo "${ECHO_T}no" >&6
40523 SET_MAKE="MAKE=${MAKE-make}"
40524fi
40525
40526
40527
40528 if test -n "$ac_tool_prefix"; then
40529 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
40530set dummy ${ac_tool_prefix}ar; ac_word=$2
40531echo "$as_me:$LINENO: checking for $ac_word" >&5
40532echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
40533if test "${ac_cv_prog_AR+set}" = set; then
40534 echo $ECHO_N "(cached) $ECHO_C" >&6
40535else
40536 if test -n "$AR"; then
40537 ac_cv_prog_AR="$AR" # Let the user override the test.
40538else
40539as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
40540for as_dir in $PATH
40541do
40542 IFS=$as_save_IFS
40543 test -z "$as_dir" && as_dir=.
40544 for ac_exec_ext in '' $ac_executable_extensions; do
40545 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
40546 ac_cv_prog_AR="${ac_tool_prefix}ar"
40547 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
40548 break 2
40549 fi
40550done
40551done
40552
40553fi
40554fi
40555AR=$ac_cv_prog_AR
40556if test -n "$AR"; then
40557 echo "$as_me:$LINENO: result: $AR" >&5
40558echo "${ECHO_T}$AR" >&6
40559else
40560 echo "$as_me:$LINENO: result: no" >&5
40561echo "${ECHO_T}no" >&6
40562fi
40563
40564fi
40565if test -z "$ac_cv_prog_AR"; then
40566 ac_ct_AR=$AR
40567 # Extract the first word of "ar", so it can be a program name with args.
40568set dummy ar; ac_word=$2
40569echo "$as_me:$LINENO: checking for $ac_word" >&5
40570echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
40571if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
40572 echo $ECHO_N "(cached) $ECHO_C" >&6
40573else
40574 if test -n "$ac_ct_AR"; then
40575 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
40576else
40577as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
40578for as_dir in $PATH
40579do
40580 IFS=$as_save_IFS
40581 test -z "$as_dir" && as_dir=.
40582 for ac_exec_ext in '' $ac_executable_extensions; do
40583 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
40584 ac_cv_prog_ac_ct_AR="ar"
40585 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
40586 break 2
40587 fi
40588done
40589done
40590
40591 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
40592fi
40593fi
40594ac_ct_AR=$ac_cv_prog_ac_ct_AR
40595if test -n "$ac_ct_AR"; then
40596 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
40597echo "${ECHO_T}$ac_ct_AR" >&6
40598else
40599 echo "$as_me:$LINENO: result: no" >&5
40600echo "${ECHO_T}no" >&6
40601fi
40602
40603 AR=$ac_ct_AR
40604else
40605 AR="$ac_cv_prog_AR"
40606fi
40607
40608 if test -n "$ac_tool_prefix"; then
40609 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
40610set dummy ${ac_tool_prefix}strip; ac_word=$2
40611echo "$as_me:$LINENO: checking for $ac_word" >&5
40612echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
40613if test "${ac_cv_prog_STRIP+set}" = set; then
40614 echo $ECHO_N "(cached) $ECHO_C" >&6
40615else
40616 if test -n "$STRIP"; then
40617 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
40618else
40619as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
40620for as_dir in $PATH
40621do
40622 IFS=$as_save_IFS
40623 test -z "$as_dir" && as_dir=.
40624 for ac_exec_ext in '' $ac_executable_extensions; do
40625 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
40626 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
40627 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
40628 break 2
40629 fi
40630done
40631done
40632
40633fi
40634fi
40635STRIP=$ac_cv_prog_STRIP
40636if test -n "$STRIP"; then
40637 echo "$as_me:$LINENO: result: $STRIP" >&5
40638echo "${ECHO_T}$STRIP" >&6
40639else
40640 echo "$as_me:$LINENO: result: no" >&5
40641echo "${ECHO_T}no" >&6
40642fi
40643
40644fi
40645if test -z "$ac_cv_prog_STRIP"; then
40646 ac_ct_STRIP=$STRIP
40647 # Extract the first word of "strip", so it can be a program name with args.
40648set dummy strip; ac_word=$2
40649echo "$as_me:$LINENO: checking for $ac_word" >&5
40650echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
40651if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
40652 echo $ECHO_N "(cached) $ECHO_C" >&6
40653else
40654 if test -n "$ac_ct_STRIP"; then
40655 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
40656else
40657as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
40658for as_dir in $PATH
40659do
40660 IFS=$as_save_IFS
40661 test -z "$as_dir" && as_dir=.
40662 for ac_exec_ext in '' $ac_executable_extensions; do
40663 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
40664 ac_cv_prog_ac_ct_STRIP="strip"
40665 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
40666 break 2
40667 fi
40668done
40669done
40670
40671 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
40672fi
40673fi
40674ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
40675if test -n "$ac_ct_STRIP"; then
40676 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
40677echo "${ECHO_T}$ac_ct_STRIP" >&6
40678else
40679 echo "$as_me:$LINENO: result: no" >&5
40680echo "${ECHO_T}no" >&6
40681fi
40682
40683 STRIP=$ac_ct_STRIP
40684else
40685 STRIP="$ac_cv_prog_STRIP"
40686fi
40687
40688 if test -n "$ac_tool_prefix"; then
40689 # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
40690set dummy ${ac_tool_prefix}nm; ac_word=$2
40691echo "$as_me:$LINENO: checking for $ac_word" >&5
40692echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
40693if test "${ac_cv_prog_NM+set}" = set; then
40694 echo $ECHO_N "(cached) $ECHO_C" >&6
40695else
40696 if test -n "$NM"; then
40697 ac_cv_prog_NM="$NM" # Let the user override the test.
40698else
40699as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
40700for as_dir in $PATH
40701do
40702 IFS=$as_save_IFS
40703 test -z "$as_dir" && as_dir=.
40704 for ac_exec_ext in '' $ac_executable_extensions; do
40705 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
40706 ac_cv_prog_NM="${ac_tool_prefix}nm"
40707 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
40708 break 2
40709 fi
40710done
40711done
40712
40713fi
40714fi
40715NM=$ac_cv_prog_NM
40716if test -n "$NM"; then
40717 echo "$as_me:$LINENO: result: $NM" >&5
40718echo "${ECHO_T}$NM" >&6
40719else
40720 echo "$as_me:$LINENO: result: no" >&5
40721echo "${ECHO_T}no" >&6
40722fi
40723
40724fi
40725if test -z "$ac_cv_prog_NM"; then
40726 ac_ct_NM=$NM
40727 # Extract the first word of "nm", so it can be a program name with args.
40728set dummy nm; ac_word=$2
40729echo "$as_me:$LINENO: checking for $ac_word" >&5
40730echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
40731if test "${ac_cv_prog_ac_ct_NM+set}" = set; then
40732 echo $ECHO_N "(cached) $ECHO_C" >&6
40733else
40734 if test -n "$ac_ct_NM"; then
40735 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
40736else
40737as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
40738for as_dir in $PATH
40739do
40740 IFS=$as_save_IFS
40741 test -z "$as_dir" && as_dir=.
40742 for ac_exec_ext in '' $ac_executable_extensions; do
40743 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
40744 ac_cv_prog_ac_ct_NM="nm"
40745 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
40746 break 2
40747 fi
40748done
40749done
40750
40751 test -z "$ac_cv_prog_ac_ct_NM" && ac_cv_prog_ac_ct_NM=":"
40752fi
40753fi
40754ac_ct_NM=$ac_cv_prog_ac_ct_NM
40755if test -n "$ac_ct_NM"; then
40756 echo "$as_me:$LINENO: result: $ac_ct_NM" >&5
40757echo "${ECHO_T}$ac_ct_NM" >&6
40758else
40759 echo "$as_me:$LINENO: result: no" >&5
40760echo "${ECHO_T}no" >&6
40761fi
40762
40763 NM=$ac_ct_NM
40764else
40765 NM="$ac_cv_prog_NM"
40766fi
40767
40768
40769 case ${BAKEFILE_HOST} in
40770 *-hp-hpux* )
1e9e8aba 40771 INSTALL_DIR="mkdir -p"
a848cd7e
SC
40772 ;;
40773 *) INSTALL_DIR="$INSTALL -d"
40774 ;;
40775 esac
40776
40777
40778 LDFLAGS_GUI=
40779 case ${BAKEFILE_HOST} in
40780 *-*-cygwin* | *-*-mingw32* )
40781 LDFLAGS_GUI="-mwindows"
40782 esac
40783
40784
40785 fi
40786
40787 echo "$as_me:$LINENO: checking if make is GNU make" >&5
40788echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6
40789if test "${bakefile_cv_prog_makeisgnu+set}" = set; then
40790 echo $ECHO_N "(cached) $ECHO_C" >&6
40791else
40792
40793 if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
40794 egrep -s GNU > /dev/null); then
40795 bakefile_cv_prog_makeisgnu="yes"
40796 else
40797 bakefile_cv_prog_makeisgnu="no"
40798 fi
40799
40800fi
40801echo "$as_me:$LINENO: result: $bakefile_cv_prog_makeisgnu" >&5
40802echo "${ECHO_T}$bakefile_cv_prog_makeisgnu" >&6
40803
40804 if test "x$bakefile_cv_prog_makeisgnu" = "xyes"; then
40805 IF_GNU_MAKE=""
40806 else
40807 IF_GNU_MAKE="#"
40808 fi
40809
40810
40811
40812 PLATFORM_UNIX=0
40813 PLATFORM_WIN32=0
40814 PLATFORM_MSDOS=0
40815 PLATFORM_MAC=0
1e9e8aba 40816 PLATFORM_MACOS=0
a848cd7e
SC
40817 PLATFORM_MACOSX=0
40818 PLATFORM_OS2=0
1e9e8aba 40819 PLATFORM_BEOS=0
a848cd7e
SC
40820
40821 if test "x$BAKEFILE_FORCE_PLATFORM" = "x"; then
40822 case "${BAKEFILE_HOST}" in
40823 *-*-cygwin* | *-*-mingw32* )
40824 PLATFORM_WIN32=1
40825 ;;
40826 *-pc-msdosdjgpp )
40827 PLATFORM_MSDOS=1
40828 ;;
40829 *-pc-os2_emx | *-pc-os2-emx )
40830 PLATFORM_OS2=1
40831 ;;
40832 powerpc-*-darwin* )
40833 PLATFORM_MAC=1
40834 PLATFORM_MACOSX=1
40835 ;;
1e9e8aba
DE
40836 *-*-beos* )
40837 PLATFORM_BEOS=1
40838 ;;
40839 powerpc-apple-macos* )
40840 PLATFORM_MAC=1
40841 PLATFORM_MACOS=1
40842 ;;
a848cd7e
SC
40843 * )
40844 PLATFORM_UNIX=1
40845 ;;
40846 esac
40847 else
40848 case "$BAKEFILE_FORCE_PLATFORM" in
40849 win32 )
40850 PLATFORM_WIN32=1
40851 ;;
40852 msdos )
40853 PLATFORM_MSDOS=1
40854 ;;
40855 os2 )
40856 PLATFORM_OS2=1
40857 ;;
40858 darwin )
40859 PLATFORM_MAC=1
40860 PLATFORM_MACOSX=1
40861 ;;
40862 unix )
40863 PLATFORM_UNIX=1
40864 ;;
1e9e8aba
DE
40865 beos )
40866 PLATFORM_BEOS=1
40867 ;;
a848cd7e
SC
40868 * )
40869 { { echo "$as_me:$LINENO: error: Unknown platform: $BAKEFILE_FORCE_PLATFORM" >&5
40870echo "$as_me: error: Unknown platform: $BAKEFILE_FORCE_PLATFORM" >&2;}
40871 { (exit 1); exit 1; }; }
40872 ;;
40873 esac
40874 fi
40875
40876
40877
40878
40879
40880
40881
40882
40883
1e9e8aba
DE
40884
40885
a848cd7e
SC
40886 # Check whether --enable-omf or --disable-omf was given.
40887if test "${enable_omf+set}" = set; then
40888 enableval="$enable_omf"
40889 bk_os2_use_omf="$enableval"
40890fi;
40891
40892 case "${BAKEFILE_HOST}" in
40893 *-*-darwin* )
40894 CFLAGS="$CFLAGS -fno-common"
40895 CXXFLAGS="$CXXFLAGS -fno-common"
40896 ;;
40897
40898 *-pc-os2_emx | *-pc-os2-emx )
40899 if test "x$bk_os2_use_omf" = "xyes" ; then
40900 AR=emxomfar
40901 RANLIB=:
40902 LDFLAGS="-Zomf $LDFLAGS"
40903 CFLAGS="-Zomf $CFLAGS"
40904 CXXFLAGS="-Zomf $CXXFLAGS"
40905 OS2_LIBEXT="lib"
40906 else
40907 OS2_LIBEXT="a"
40908 fi
40909 ;;
1e9e8aba
DE
40910
40911 i*86-*-beos* )
40912 LDFLAGS="-L/boot/develop/lib/x86 $LDFLAGS"
40913 ;;
a848cd7e
SC
40914 esac
40915
40916
40917 SO_SUFFIX="so"
40918 SO_SUFFIX_MODULE="so"
40919 EXEEXT=""
40920 LIBPREFIX="lib"
40921 LIBEXT=".a"
40922 DLLPREFIX="lib"
40923 DLLPREFIX_MODULE=""
40924 DLLIMP_SUFFIX=""
40925
40926 case "${BAKEFILE_HOST}" in
40927 *-hp-hpux* )
40928 SO_SUFFIX="sl"
40929 SO_SUFFIX_MODULE="sl"
40930 ;;
40931 *-*-aix* )
40932 SO_SUFFIX="a"
40933 SO_SUFFIX_MODULE="a"
40934 ;;
40935 *-*-cygwin* | *-*-mingw32* )
40936 SO_SUFFIX="dll"
40937 SO_SUFFIX_MODULE="dll"
40938 DLLIMP_SUFFIX="dll.a"
40939 EXEEXT=".exe"
40940 DLLPREFIX=""
40941 ;;
40942 *-pc-msdosdjgpp )
40943 EXEEXT=".exe"
40944 DLLPREFIX=""
40945 ;;
40946 *-pc-os2_emx | *-pc-os2-emx )
40947 SO_SUFFIX="dll"
40948 SO_SUFFIX_MODULE="dll"
40949 DLLIMP_SUFFIX=$OS2_LIBEXT
40950 EXEEXT=".exe"
40951 DLLPREFIX=""
40952 LIBPREFIX=""
40953 LIBEXT=".$OS2_LIBEXT"
40954 ;;
40955 powerpc-*-darwin* )
40956 SO_SUFFIX="dylib"
40957 SO_SUFFIX_MODULE="bundle"
40958 ;;
40959 esac
40960
40961 if test "x$DLLIMP_SUFFIX" = "x" ; then
40962 DLLIMP_SUFFIX="$SO_SUFFIX"
40963 fi
40964
40965
40966
40967
40968
40969
40970
40971
40972
40973
40974
1e9e8aba
DE
40975 PIC_FLAG=""
40976 if test "x$GCC" = "xyes"; then
a848cd7e
SC
40977 PIC_FLAG="-fPIC"
40978 fi
40979
1e9e8aba
DE
40980 SHARED_LD_CC="\$(CC) -shared ${PIC_FLAG} -o"
40981 SHARED_LD_CXX="\$(CXX) -shared ${PIC_FLAG} -o"
40982
a848cd7e
SC
40983 case "${BAKEFILE_HOST}" in
40984 *-hp-hpux* )
1e9e8aba 40985 if test "x$GCC" != "xyes"; then
a848cd7e
SC
40986 LDFLAGS="$LDFLAGS -L/usr/lib"
40987
40988 SHARED_LD_CC="${CC} -b -o"
40989 SHARED_LD_CXX="${CXX} -b -o"
40990 PIC_FLAG="+Z"
40991 fi
40992 ;;
40993
40994 *-*-linux* )
40995 if test "x$GCC" != "xyes"; then
40996 echo "$as_me:$LINENO: checking for Intel compiler" >&5
40997echo $ECHO_N "checking for Intel compiler... $ECHO_C" >&6
40998if test "${bakefile_cv_prog_icc+set}" = set; then
40999 echo $ECHO_N "(cached) $ECHO_C" >&6
41000else
41001
41002 cat >conftest.$ac_ext <<_ACEOF
41003/* confdefs.h. */
41004_ACEOF
41005cat confdefs.h >>conftest.$ac_ext
41006cat >>conftest.$ac_ext <<_ACEOF
41007/* end confdefs.h. */
41008
41009int
41010main ()
41011{
41012
41013 #ifndef __INTEL_COMPILER
41014 #error Not icc
41015 #endif
41016
41017 ;
41018 return 0;
41019}
41020_ACEOF
41021rm -f conftest.$ac_objext
41022if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 41023 (eval $ac_compile) 2>conftest.er1
a848cd7e 41024 ac_status=$?
ac1cb8d3
VS
41025 grep -v '^ *+' conftest.er1 >conftest.err
41026 rm -f conftest.er1
41027 cat conftest.err >&5
a848cd7e
SC
41028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41029 (exit $ac_status); } &&
07158944 41030 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
41031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41032 (eval $ac_try) 2>&5
41033 ac_status=$?
41034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41035 (exit $ac_status); }; } &&
41036 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
41037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41038 (eval $ac_try) 2>&5
41039 ac_status=$?
41040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41041 (exit $ac_status); }; }; then
41042 bakefile_cv_prog_icc=yes
41043else
41044 echo "$as_me: failed program was:" >&5
41045sed 's/^/| /' conftest.$ac_ext >&5
41046
41047bakefile_cv_prog_icc=no
41048
41049fi
ac1cb8d3 41050rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
41051
41052fi
41053echo "$as_me:$LINENO: result: $bakefile_cv_prog_icc" >&5
41054echo "${ECHO_T}$bakefile_cv_prog_icc" >&6
41055 if test "$bakefile_cv_prog_icc" = "yes"; then
41056 PIC_FLAG="-KPIC"
41057 fi
41058 fi
41059 ;;
41060
41061 *-*-solaris2* )
41062 if test "x$GCC" != xyes ; then
41063 SHARED_LD_CC="${CC} -G -o"
41064 SHARED_LD_CXX="${CXX} -G -o"
41065 PIC_FLAG="-KPIC"
41066 fi
41067 ;;
41068
41069 *-*-darwin* )
41070
41071 echo "$as_me:$LINENO: checking for gcc 3.1 or later" >&5
41072echo $ECHO_N "checking for gcc 3.1 or later... $ECHO_C" >&6
41073if test "${wx_cv_gcc31+set}" = set; then
41074 echo $ECHO_N "(cached) $ECHO_C" >&6
41075else
41076
41077 cat >conftest.$ac_ext <<_ACEOF
41078/* confdefs.h. */
41079_ACEOF
41080cat confdefs.h >>conftest.$ac_ext
41081cat >>conftest.$ac_ext <<_ACEOF
41082/* end confdefs.h. */
41083
41084int
41085main ()
41086{
41087
41088 #if (__GNUC__ < 3) || \
41089 ((__GNUC__ == 3) && (__GNUC_MINOR__ < 1))
41090 #error old gcc
41091 #endif
41092
41093 ;
41094 return 0;
41095}
41096_ACEOF
41097rm -f conftest.$ac_objext
41098if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 41099 (eval $ac_compile) 2>conftest.er1
a848cd7e 41100 ac_status=$?
ac1cb8d3
VS
41101 grep -v '^ *+' conftest.er1 >conftest.err
41102 rm -f conftest.er1
41103 cat conftest.err >&5
a848cd7e
SC
41104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41105 (exit $ac_status); } &&
07158944 41106 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
41107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41108 (eval $ac_try) 2>&5
41109 ac_status=$?
41110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41111 (exit $ac_status); }; } &&
41112 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
41113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41114 (eval $ac_try) 2>&5
41115 ac_status=$?
41116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41117 (exit $ac_status); }; }; then
41118
41119 wx_cv_gcc31=yes
41120
41121else
41122 echo "$as_me: failed program was:" >&5
41123sed 's/^/| /' conftest.$ac_ext >&5
41124
41125
41126 wx_cv_gcc31=no
41127
41128
41129fi
ac1cb8d3 41130rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
41131
41132fi
41133echo "$as_me:$LINENO: result: $wx_cv_gcc31" >&5
41134echo "${ECHO_T}$wx_cv_gcc31" >&6
41135 if test "$wx_cv_gcc31" = "no"; then
473276a9
VS
41136
41137D='$'
41138cat <<EOF >shared-ld-sh
a848cd7e
SC
41139#!/bin/sh
41140#-----------------------------------------------------------------------------
41141#-- Name: distrib/mac/shared-ld-sh
41142#-- Purpose: Link a mach-o dynamic shared library for Darwin / Mac OS X
41143#-- Author: Gilles Depeyrot
41144#-- Copyright: (c) 2002 Gilles Depeyrot
41145#-- Licence: any use permitted
41146#-----------------------------------------------------------------------------
41147
41148verbose=0
41149args=""
41150objects=""
41151linking_flag="-dynamiclib"
41152
473276a9
VS
41153while test ${D}# -gt 0; do
41154 case ${D}1 in
a848cd7e
SC
41155
41156 -v)
41157 verbose=1
41158 ;;
41159
41160 -o|-compatibility_version|-current_version|-framework|-undefined|-install_name)
41161 # collect these options and values
473276a9 41162 args="${D}{args} ${D}1 ${D}2"
a848cd7e
SC
41163 shift
41164 ;;
41165
41166 -l*|-L*|-flat_namespace|-headerpad_max_install_names)
41167 # collect these options
473276a9 41168 args="${D}{args} ${D}1"
a848cd7e
SC
41169 ;;
41170
41171 -dynamiclib|-bundle)
473276a9 41172 linking_flag="${D}1"
a848cd7e
SC
41173 ;;
41174
41175 -*)
473276a9 41176 echo "shared-ld: unhandled option '${D}1'"
a848cd7e
SC
41177 exit 1
41178 ;;
41179
41180 *.o | *.a | *.dylib)
41181 # collect object files
473276a9 41182 objects="${D}{objects} ${D}1"
a848cd7e
SC
41183 ;;
41184
41185 *)
473276a9 41186 echo "shared-ld: unhandled argument '${D}1'"
a848cd7e
SC
41187 exit 1
41188 ;;
41189
41190 esac
41191 shift
41192done
41193
41194#
41195# Link one module containing all the others
41196#
473276a9
VS
41197if test ${D}{verbose} = 1; then
41198 echo "c++ -r -keep_private_externs -nostdlib ${D}{objects} -o master.${D}${D}.o"
a848cd7e 41199fi
473276a9
VS
41200c++ -r -keep_private_externs -nostdlib ${D}{objects} -o master.${D}${D}.o
41201status=${D}?
41202if test ${D}{status} != 0; then
41203 exit ${D}{status}
a848cd7e
SC
41204fi
41205
41206#
41207# Link the shared library from the single module created
41208#
473276a9
VS
41209if test ${D}{verbose} = 1; then
41210 echo "cc ${D}{linking_flag} master.${D}${D}.o ${D}{args}"
a848cd7e 41211fi
473276a9
VS
41212c++ ${D}{linking_flag} master.${D}${D}.o ${D}{args}
41213status=${D}?
41214if test ${D}{status} != 0; then
41215 exit ${D}{status}
a848cd7e
SC
41216fi
41217
41218#
41219# Remove intermediate module
41220#
473276a9 41221rm -f master.${D}${D}.o
a848cd7e
SC
41222
41223exit 0
41224EOF
473276a9 41225
a848cd7e
SC
41226 chmod +x shared-ld-sh
41227
41228 SHARED_LD_CC="`pwd`/shared-ld-sh -dynamiclib -headerpad_max_install_names -o"
41229 SHARED_LD_MODULE_CC="`pwd`/shared-ld-sh -bundle -headerpad_max_install_names -o"
41230 SHARED_LD_CXX="$SHARED_LD_CC"
41231 SHARED_LD_MODULE_CXX="$SHARED_LD_MODULE_CC"
41232 else
41233 SHARED_LD_CC="\${CC} -dynamiclib -single_module -headerpad_max_install_names -o"
41234 SHARED_LD_MODULE_CC="\${CC} -bundle -single_module -headerpad_max_install_names -o"
41235 SHARED_LD_CXX="\${CXX} -dynamiclib -single_module -headerpad_max_install_names -o"
41236 SHARED_LD_MODULE_CXX="\${CXX} -bundle -single_module -headerpad_max_install_names -o"
41237 fi
41238
41239 PIC_FLAG="-dynamic -fPIC"
41240 ;;
41241
41242 *-*-aix* )
41243 if test "x$GCC" != "xyes"; then
41244 # Extract the first word of "makeC++SharedLib", so it can be a program name with args.
41245set dummy makeC++SharedLib; ac_word=$2
41246echo "$as_me:$LINENO: checking for $ac_word" >&5
41247echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
41248if test "${ac_cv_prog_AIX_CXX_LD+set}" = set; then
41249 echo $ECHO_N "(cached) $ECHO_C" >&6
41250else
41251 if test -n "$AIX_CXX_LD"; then
41252 ac_cv_prog_AIX_CXX_LD="$AIX_CXX_LD" # Let the user override the test.
41253else
41254as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
41255for as_dir in $PATH
41256do
41257 IFS=$as_save_IFS
41258 test -z "$as_dir" && as_dir=.
41259 for ac_exec_ext in '' $ac_executable_extensions; do
41260 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
41261 ac_cv_prog_AIX_CXX_LD="makeC++SharedLib"
41262 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
41263 break 2
41264 fi
41265done
41266done
41267
41268 test -z "$ac_cv_prog_AIX_CXX_LD" && ac_cv_prog_AIX_CXX_LD="/usr/lpp/xlC/bin/makeC++SharedLib"
41269fi
41270fi
41271AIX_CXX_LD=$ac_cv_prog_AIX_CXX_LD
41272if test -n "$AIX_CXX_LD"; then
41273 echo "$as_me:$LINENO: result: $AIX_CXX_LD" >&5
41274echo "${ECHO_T}$AIX_CXX_LD" >&6
41275else
41276 echo "$as_me:$LINENO: result: no" >&5
41277echo "${ECHO_T}no" >&6
41278fi
41279
41280 SHARED_LD_CC="$AIX_CC_LD -p 0 -o"
41281 SHARED_LD_CXX="$AIX_CXX_LD -p 0 -o"
41282 fi
41283 ;;
41284
41285 *-*-beos* )
1e9e8aba
DE
41286 SHARED_LD_CC="${LD} -nostart -o"
41287 SHARED_LD_CXX="${LD} -nostart -o"
a848cd7e
SC
41288 ;;
41289
41290 *-*-irix* )
41291 if test "x$GCC" != "xyes"; then
41292 PIC_FLAG="-KPIC"
41293 fi
41294 ;;
41295
41296 *-*-cygwin* | *-*-mingw32* )
41297 PIC_FLAG=""
1e9e8aba
DE
41298 SHARED_LD_CC="\$(CC) -shared -o"
41299 SHARED_LD_CXX="\$(CXX) -shared -o"
a848cd7e
SC
41300 ;;
41301
41302 *-pc-os2_emx | *-pc-os2-emx )
b1d22ded
DE
41303 SHARED_LD_CC="`pwd`/dllar.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
41304 SHARED_LD_CXX="`pwd`/dllar.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
a848cd7e 41305 PIC_FLAG=""
473276a9
VS
41306
41307D='$'
41308cat <<EOF >dllar.sh
41309#!/bin/sh
41310#
41311# dllar - a tool to build both a .dll and an .a file
41312# from a set of object (.o) files for EMX/OS2.
41313#
41314# Written by Andrew Zabolotny, bit@freya.etu.ru
41315# Ported to Unix like shell by Stefan Neis, Stefan.Neis@t-online.de
41316#
41317# This script will accept a set of files on the command line.
41318# All the public symbols from the .o files will be exported into
41319# a .DEF file, then linker will be run (through gcc) against them to
41320# build a shared library consisting of all given .o files. All libraries
41321# (.a) will be first decompressed into component .o files then act as
41322# described above. You can optionally give a description (-d "description")
41323# which will be put into .DLL. To see the list of accepted options (as well
41324# as command-line format) simply run this program without options. The .DLL
41325# is built to be imported by name (there is no guarantee that new versions
41326# of the library you build will have same ordinals for same symbols).
41327#
41328# dllar is free software; you can redistribute it and/or modify
41329# it under the terms of the GNU General Public License as published by
41330# the Free Software Foundation; either version 2, or (at your option)
41331# any later version.
41332#
41333# dllar is distributed in the hope that it will be useful,
41334# but WITHOUT ANY WARRANTY; without even the implied warranty of
41335# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
41336# GNU General Public License for more details.
41337#
41338# You should have received a copy of the GNU General Public License
41339# along with dllar; see the file COPYING. If not, write to the Free
41340# Software Foundation, 59 Temple Place - Suite 330, Boston, MA
41341# 02111-1307, USA.
41342
41343# To successfuly run this program you will need:
41344# - Current drive should have LFN support (HPFS, ext2, network, etc)
41345# (Sometimes dllar generates filenames which won't fit 8.3 scheme)
41346# - gcc
41347# (used to build the .dll)
41348# - emxexp
41349# (used to create .def file from .o files)
41350# - emximp
41351# (used to create .a file from .def file)
41352# - GNU text utilites (cat, sort, uniq)
41353# used to process emxexp output
41354# - GNU file utilities (mv, rm)
41355# - GNU sed
41356# - lxlite (optional, see flag below)
41357# (used for general .dll cleanup)
41358#
41359
41360flag_USE_LXLITE=1;
41361
41362#
41363# helper functions
41364# basnam, variant of basename, which does _not_ remove the path, _iff_
41365# second argument (suffix to remove) is given
41366basnam(){
41367 case ${D}# in
41368 1)
1e9e8aba 41369 echo ${D}1 | sed 's/.*\\///' | sed 's/.*\\\\//'
473276a9
VS
41370 ;;
41371 2)
41372 echo ${D}1 | sed 's/'${D}2'${D}//'
41373 ;;
41374 *)
41375 echo "error in basnam ${D}*"
41376 exit 8
41377 ;;
41378 esac
41379}
41380
41381# Cleanup temporary files and output
41382CleanUp() {
41383 cd ${D}curDir
41384 for i in ${D}inputFiles ; do
41385 case ${D}i in
41386 *!)
41387 rm -rf \`basnam ${D}i !\`
41388 ;;
41389 *)
41390 ;;
41391 esac
41392 done
41393
41394 # Kill result in case of failure as there is just to many stupid make/nmake
41395 # things out there which doesn't do this.
1e9e8aba 41396 if [ ${D}# -eq 0 ]; then
473276a9
VS
41397 rm -f ${D}arcFile ${D}arcFile2 ${D}defFile ${D}dllFile
41398 fi
41399}
41400
41401# Print usage and exit script with rc=1.
41402PrintHelp() {
b1d22ded
DE
41403 echo 'Usage: dllar.sh [-o[utput] output_file] [-i[mport] importlib_name]'
41404 echo ' [-name-mangler-script script.sh]'
41405 echo ' [-d[escription] "dll descrption"] [-cc "CC"] [-f[lags] "CFLAGS"]'
41406 echo ' [-ord[inals]] -ex[clude] "symbol(s)"'
41407 echo ' [-libf[lags] "{INIT|TERM}{GLOBAL|INSTANCE}"] [-nocrt[dll]] [-nolxl[ite]]'
1e9e8aba 41408 echo ' [*.o] [*.a]'
473276a9
VS
41409 echo '*> "output_file" should have no extension.'
41410 echo ' If it has the .o, .a or .dll extension, it is automatically removed.'
41411 echo ' The import library name is derived from this and is set to "name".a,'
41412 echo ' unless overridden by -import'
41413 echo '*> "importlib_name" should have no extension.'
41414 echo ' If it has the .o, or .a extension, it is automatically removed.'
41415 echo ' This name is used as the import library name and may be longer and'
41416 echo ' more descriptive than the DLL name which has to follow the old '
41417 echo ' 8.3 convention of FAT.'
b1d22ded
DE
41418 echo '*> "script.sh may be given to override the output_file name by a'
41419 echo ' different name. It is mainly useful if the regular make process'
41420 echo ' of some package does not take into account OS/2 restriction of'
41421 echo ' DLL name lengths. It takes the importlib name as input and is'
41422 echo ' supposed to procude a shorter name as output. The script should'
41423 echo ' expect to get importlib_name without extension and should produce'
41424 echo ' a (max.) 8 letter name without extension.'
473276a9
VS
41425 echo '*> "cc" is used to use another GCC executable. (default: gcc.exe)'
41426 echo '*> "flags" should be any set of valid GCC flags. (default: -s -Zcrtdll)'
41427 echo ' These flags will be put at the start of GCC command line.'
b1d22ded
DE
41428 echo '*> -ord[inals] tells dllar to export entries by ordinals. Be careful.'
41429 echo '*> -ex[clude] defines symbols which will not be exported. You can define'
473276a9
VS
41430 echo ' multiple symbols, for example -ex "myfunc yourfunc _GLOBAL*".'
41431 echo ' If the last character of a symbol is "*", all symbols beginning'
41432 echo ' with the prefix before "*" will be exclude, (see _GLOBAL* above).'
b1d22ded 41433 echo '*> -libf[lags] can be used to add INITGLOBAL/INITINSTANCE and/or'
473276a9 41434 echo ' TERMGLOBAL/TERMINSTANCE flags to the dynamically-linked library.'
b1d22ded 41435 echo '*> -nocrt[dll] switch will disable linking the library against emx''s'
473276a9 41436 echo ' C runtime DLLs.'
b1d22ded 41437 echo '*> -nolxl[ite] switch will disable running lxlite on the resulting DLL.'
473276a9
VS
41438 echo '*> All other switches (for example -L./ or -lmylib) will be passed'
41439 echo ' unchanged to GCC at the end of command line.'
41440 echo '*> If you create a DLL from a library and you do not specify -o,'
41441 echo ' the basename for DLL and import library will be set to library name,'
41442 echo ' the initial library will be renamed to 'name'_s.a (_s for static)'
41443 echo ' i.e. "dllar gcc.a" will create gcc.dll and gcc.a, and the initial'
41444 echo ' library will be renamed into gcc_s.a.'
41445 echo '--------'
41446 echo 'Example:'
41447 echo ' dllar -o gcc290.dll libgcc.a -d "GNU C runtime library" -ord'
41448 echo ' -ex "__main __ctordtor*" -libf "INITINSTANCE TERMINSTANCE"'
41449 CleanUp
41450 exit 1
41451}
41452
41453# Execute a command.
41454# If exit code of the commnad <> 0 CleanUp() is called and we'll exit the script.
41455# @Uses Whatever CleanUp() uses.
41456doCommand() {
41457 echo "${D}*"
41458 eval ${D}*
41459 rcCmd=${D}?
41460
1e9e8aba 41461 if [ ${D}rcCmd -ne 0 ]; then
473276a9
VS
41462 echo "command failed, exit code="${D}rcCmd
41463 CleanUp
41464 exit ${D}rcCmd
41465 fi
41466}
41467
41468# main routine
41469# setup globals
41470cmdLine=${D}*
41471outFile=""
41472outimpFile=""
41473inputFiles=""
b1d22ded 41474renameScript=""
473276a9
VS
41475description=""
41476CC=gcc.exe
41477CFLAGS="-s -Zcrtdll"
41478EXTRA_CFLAGS=""
41479EXPORT_BY_ORDINALS=0
41480exclude_symbols=""
41481library_flags=""
41482curDir=\`pwd\`
41483curDirS=curDir
41484case ${D}curDirS in
41485*/)
41486 ;;
41487*)
41488 curDirS=${D}{curDirS}"/"
41489 ;;
41490esac
41491# Parse commandline
41492libsToLink=0
b1d22ded 41493omfLinking=0
1e9e8aba 41494while [ ${D}1 ]; do
473276a9
VS
41495 case ${D}1 in
41496 -ord*)
41497 EXPORT_BY_ORDINALS=1;
41498 ;;
41499 -o*)
41500 shift
41501 outFile=${D}1
41502 ;;
41503 -i*)
41504 shift
41505 outimpFile=${D}1
41506 ;;
b1d22ded
DE
41507 -name-mangler-script)
41508 shift
41509 renameScript=${D}1
41510 ;;
473276a9
VS
41511 -d*)
41512 shift
41513 description=${D}1
41514 ;;
41515 -f*)
41516 shift
41517 CFLAGS=${D}1
41518 ;;
41519 -c*)
41520 shift
41521 CC=${D}1
41522 ;;
41523 -h*)
41524 PrintHelp
41525 ;;
41526 -ex*)
41527 shift
41528 exclude_symbols=${D}{exclude_symbols}${D}1" "
41529 ;;
41530 -libf*)
41531 shift
41532 library_flags=${D}{library_flags}${D}1" "
41533 ;;
41534 -nocrt*)
41535 CFLAGS="-s"
41536 ;;
41537 -nolxl*)
41538 flag_USE_LXLITE=0
41539 ;;
41540 -* | /*)
41541 case ${D}1 in
41542 -L* | -l*)
41543 libsToLink=1
41544 ;;
b1d22ded
DE
41545 -Zomf)
41546 omfLinking=1
41547 ;;
473276a9
VS
41548 *)
41549 ;;
41550 esac
41551 EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1
41552 ;;
b1d22ded
DE
41553 *.dll)
41554 EXTRA_CFLAGS="${D}{EXTRA_CFLAGS} \`basnam ${D}1 .dll\`"
41555 if [ ${D}omfLinking -eq 1 ]; then
41556 EXTRA_CFLAGS="${D}{EXTRA_CFLAGS}.lib"
41557 else
41558 EXTRA_CFLAGS="${D}{EXTRA_CFLAGS}.a"
41559 fi
41560 ;;
473276a9
VS
41561 *)
41562 found=0;
1e9e8aba 41563 if [ ${D}libsToLink -ne 0 ]; then
473276a9
VS
41564 EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1
41565 else
41566 for file in ${D}1 ; do
1e9e8aba 41567 if [ -f ${D}file ]; then
473276a9
VS
41568 inputFiles="${D}{inputFiles} ${D}file"
41569 found=1
41570 fi
41571 done
1e9e8aba 41572 if [ ${D}found -eq 0 ]; then
473276a9
VS
41573 echo "ERROR: No file(s) found: "${D}1
41574 exit 8
41575 fi
41576 fi
41577 ;;
41578 esac
41579 shift
41580done # iterate cmdline words
41581
41582#
1e9e8aba 41583if [ -z "${D}inputFiles" ]; then
473276a9
VS
41584 echo "dllar: no input files"
41585 PrintHelp
41586fi
41587
41588# Now extract all .o files from .a files
41589newInputFiles=""
41590for file in ${D}inputFiles ; do
41591 case ${D}file in
41592 *.a | *.lib)
41593 case ${D}file in
41594 *.a)
41595 suffix=".a"
41596 AR="ar"
41597 ;;
41598 *.lib)
41599 suffix=".lib"
41600 AR="emxomfar"
41601 EXTRA_CFLAGS="${D}EXTRA_CFLAGS -Zomf"
41602 ;;
41603 *)
41604 ;;
41605 esac
41606 dirname=\`basnam ${D}file ${D}suffix\`"_%"
41607 mkdir ${D}dirname
1e9e8aba 41608 if [ ${D}? -ne 0 ]; then
473276a9
VS
41609 echo "Failed to create subdirectory ./${D}dirname"
41610 CleanUp
41611 exit 8;
41612 fi
41613 # Append '!' to indicate archive
41614 newInputFiles="${D}newInputFiles ${D}{dirname}!"
41615 doCommand "cd ${D}dirname; ${D}AR x ../${D}file"
41616 cd ${D}curDir
41617 found=0;
41618 for subfile in ${D}dirname/*.o* ; do
1e9e8aba 41619 if [ -f ${D}subfile ]; then
473276a9 41620 found=1
1e9e8aba 41621 if [ -s ${D}subfile ]; then
473276a9
VS
41622 # FIXME: This should be: is file size > 32 byte, _not_ > 0!
41623 newInputFiles="${D}newInputFiles ${D}subfile"
41624 fi
41625 fi
41626 done
1e9e8aba
DE
41627 if [ ${D}found -eq 0 ]; then
41628 echo "WARNING: there are no files in archive \\'${D}file\\'"
473276a9
VS
41629 fi
41630 ;;
41631 *)
41632 newInputFiles="${D}{newInputFiles} ${D}file"
41633 ;;
41634 esac
41635done
41636inputFiles="${D}newInputFiles"
41637
41638# Output filename(s).
41639do_backup=0;
1e9e8aba 41640if [ -z ${D}outFile ]; then
473276a9
VS
41641 do_backup=1;
41642 set outFile ${D}inputFiles; outFile=${D}2
41643fi
41644
41645# If it is an archive, remove the '!' and the '_%' suffixes
41646case ${D}outFile in
41647*_%!)
41648 outFile=\`basnam ${D}outFile _%!\`
41649 ;;
41650*)
41651 ;;
41652esac
41653case ${D}outFile in
41654*.dll)
41655 outFile=\`basnam ${D}outFile .dll\`
41656 ;;
41657*.DLL)
41658 outFile=\`basnam ${D}outFile .DLL\`
41659 ;;
41660*.o)
41661 outFile=\`basnam ${D}outFile .o\`
41662 ;;
41663*.obj)
41664 outFile=\`basnam ${D}outFile .obj\`
41665 ;;
41666*.a)
41667 outFile=\`basnam ${D}outFile .a\`
41668 ;;
41669*.lib)
41670 outFile=\`basnam ${D}outFile .lib\`
41671 ;;
41672*)
41673 ;;
41674esac
41675case ${D}outimpFile in
41676*.a)
41677 outimpFile=\`basnam ${D}outimpFile .a\`
41678 ;;
41679*.lib)
41680 outimpFile=\`basnam ${D}outimpFile .lib\`
41681 ;;
41682*)
41683 ;;
41684esac
1e9e8aba 41685if [ -z ${D}outimpFile ]; then
473276a9
VS
41686 outimpFile=${D}outFile
41687fi
41688defFile="${D}{outFile}.def"
41689arcFile="${D}{outimpFile}.a"
41690arcFile2="${D}{outimpFile}.lib"
b1d22ded
DE
41691
41692#create ${D}dllFile as something matching 8.3 restrictions,
41693if [ -z ${D}renameScript ] ; then
41694 dllFile="${D}outFile"
41695else
41696 dllFile=\`${D}renameScript ${D}outimpFile\`
41697fi
473276a9 41698
1e9e8aba
DE
41699if [ ${D}do_backup -ne 0 ] ; then
41700 if [ -f ${D}arcFile ] ; then
473276a9
VS
41701 doCommand "mv ${D}arcFile ${D}{outFile}_s.a"
41702 fi
1e9e8aba 41703 if [ -f ${D}arcFile2 ] ; then
473276a9
VS
41704 doCommand "mv ${D}arcFile2 ${D}{outFile}_s.lib"
41705 fi
41706fi
41707
41708# Extract public symbols from all the object files.
41709tmpdefFile=${D}{defFile}_%
41710rm -f ${D}tmpdefFile
41711for file in ${D}inputFiles ; do
41712 case ${D}file in
41713 *!)
41714 ;;
41715 *)
41716 doCommand "emxexp -u ${D}file >> ${D}tmpdefFile"
41717 ;;
41718 esac
41719done
41720
41721# Create the def file.
41722rm -f ${D}defFile
41723echo "LIBRARY \`basnam ${D}dllFile\` ${D}library_flags" >> ${D}defFile
b1d22ded
DE
41724dllFile="${D}{dllFile}.dll"
41725if [ ! -z ${D}description ]; then
1e9e8aba 41726 echo "DESCRIPTION \\"${D}{description}\\"" >> ${D}defFile
473276a9
VS
41727fi
41728echo "EXPORTS" >> ${D}defFile
41729
41730doCommand "cat ${D}tmpdefFile | sort.exe | uniq.exe > ${D}{tmpdefFile}%"
41731grep -v "^ *;" < ${D}{tmpdefFile}% | grep -v "^ *${D}" >${D}tmpdefFile
41732
41733# Checks if the export is ok or not.
41734for word in ${D}exclude_symbols; do
41735 grep -v ${D}word < ${D}tmpdefFile >${D}{tmpdefFile}%
41736 mv ${D}{tmpdefFile}% ${D}tmpdefFile
41737done
41738
41739
1e9e8aba
DE
41740if [ ${D}EXPORT_BY_ORDINALS -ne 0 ]; then
41741 sed "=" < ${D}tmpdefFile | \\
473276a9
VS
41742 sed '
41743 N
41744 : loop
1e9e8aba 41745 s/^\\([0-9]\\+\\)\\([^;]*\\)\\(;.*\\)\\?/\\2 @\\1 NONAME/
473276a9
VS
41746 t loop
41747 ' > ${D}{tmpdefFile}%
41748 grep -v "^ *${D}" < ${D}{tmpdefFile}% > ${D}tmpdefFile
41749else
41750 rm -f ${D}{tmpdefFile}%
41751fi
41752cat ${D}tmpdefFile >> ${D}defFile
41753rm -f ${D}tmpdefFile
41754
41755# Do linking, create implib, and apply lxlite.
41756gccCmdl="";
41757for file in ${D}inputFiles ; do
41758 case ${D}file in
41759 *!)
41760 ;;
41761 *)
41762 gccCmdl="${D}gccCmdl ${D}file"
41763 ;;
41764 esac
41765done
41766doCommand "${D}CC ${D}CFLAGS -Zdll -o ${D}dllFile ${D}defFile ${D}gccCmdl ${D}EXTRA_CFLAGS"
41767touch "${D}{outFile}.dll"
41768
41769doCommand "emximp -o ${D}arcFile ${D}defFile"
1e9e8aba 41770if [ ${D}flag_USE_LXLITE -ne 0 ]; then
473276a9 41771 add_flags="";
1e9e8aba 41772 if [ ${D}EXPORT_BY_ORDINALS -ne 0 ]; then
473276a9
VS
41773 add_flags="-ynd"
41774 fi
41775 doCommand "lxlite -cs -t: -mrn -mln ${D}add_flags ${D}dllFile"
41776fi
41777doCommand "emxomf -s -l ${D}arcFile"
41778
41779# Successful exit.
41780CleanUp 1
41781exit 0
41782EOF
41783
41784 chmod +x dllar.sh
a848cd7e
SC
41785 ;;
41786
1e9e8aba 41787 powerpc-apple-macos* | \
a848cd7e
SC
41788 *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | \
41789 *-*-sunos4* | \
41790 *-*-osf* | \
41791 *-*-dgux5* | \
41792 *-*-sysv5* )
41793 ;;
41794
41795 *)
41796 { { echo "$as_me:$LINENO: error: unknown system type $BAKEFILE_HOST." >&5
41797echo "$as_me: error: unknown system type $BAKEFILE_HOST." >&2;}
41798 { (exit 1); exit 1; }; }
41799 esac
41800
2057db16
VS
41801 if test "x$PIC_FLAG" != "x" ; then
41802 PIC_FLAG="$PIC_FLAG -DPIC"
41803 fi
41804
a848cd7e
SC
41805 if test "x$SHARED_LD_MODULE_CC" = "x" ; then
41806 SHARED_LD_MODULE_CC="$SHARED_LD_CC"
41807 fi
41808 if test "x$SHARED_LD_MODULE_CXX" = "x" ; then
41809 SHARED_LD_MODULE_CXX="$SHARED_LD_CXX"
41810 fi
41811
41812
41813
41814
41815
41816
41817
41818
41819 USE_SOVERSION=0
41820 USE_SOVERLINUX=0
41821 USE_SOVERSOLARIS=0
41822 USE_SOSYMLINKS=0
41823 USE_MACVERSION=0
41824 SONAME_FLAG=
41825
41826 case "${BAKEFILE_HOST}" in
b1d22ded 41827 *-*-linux* | *-*-freebsd* )
5f652d0d
VS
41828 SONAME_FLAG="-Wl,-soname,"
41829 USE_SOVERSION=1
41830 USE_SOVERLINUX=1
41831 USE_SOSYMLINKS=1
41832 ;;
41833
a848cd7e
SC
41834 *-*-solaris2* )
41835 SONAME_FLAG="-h "
41836 USE_SOVERSION=1
41837 USE_SOVERSOLARIS=1
41838 USE_SOSYMLINKS=1
41839 ;;
41840
41841 *-*-darwin* )
41842 USE_MACVERSION=1
41843 USE_SOVERSION=1
41844 USE_SOSYMLINKS=1
41845 ;;
41846 esac
41847
41848
41849
41850
41851
41852
41853
41854
41855
41856 echo "$as_me:$LINENO: checking for dependency tracking method" >&5
41857echo $ECHO_N "checking for dependency tracking method... $ECHO_C" >&6
41858 DEPS_TRACKING=0
41859
41860 if test "x$GCC" = "xyes"; then
41861 DEPSMODE=gcc
41862 DEPS_TRACKING=1
41863 case "${BAKEFILE_HOST}" in
41864 powerpc-*-darwin* )
41865 DEPSFLAG_GCC="-no-cpp-precomp -MMD"
41866 ;;
41867 * )
41868 DEPSFLAG_GCC="-MMD"
41869 ;;
41870 esac
41871 echo "$as_me:$LINENO: result: gcc" >&5
41872echo "${ECHO_T}gcc" >&6
b1d22ded 41873 elif test "x$MWCC" = "xyes"; then
81f90336 41874 DEPSMODE=mwcc
b1d22ded 41875 DEPS_TRACKING=1
81f90336 41876 DEPSFLAG_MWCC="-MM"
b1d22ded
DE
41877 echo "$as_me:$LINENO: result: mwcc" >&5
41878echo "${ECHO_T}mwcc" >&6
a848cd7e
SC
41879 else
41880 echo "$as_me:$LINENO: result: none" >&5
41881echo "${ECHO_T}none" >&6
41882 fi
41883
41884 if test $DEPS_TRACKING = 1 ; then
473276a9
VS
41885
41886D='$'
41887cat <<EOF >bk-deps
a848cd7e
SC
41888#!/bin/sh
41889
41890# This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf
41891# script. It is used to track C/C++ files dependencies in portable way.
41892#
41893# Permission is given to use this file in any way.
41894
473276a9 41895DEPSMODE=${DEPSMODE}
a848cd7e 41896DEPSDIR=.deps
473276a9 41897DEPSFLAG_GCC="${DEPSFLAG_GCC}"
81f90336 41898DEPSFLAG_MWCC="${DEPSFLAG_MWCC}"
a848cd7e 41899
473276a9 41900mkdir -p ${D}DEPSDIR
a848cd7e 41901
473276a9
VS
41902if test ${D}DEPSMODE = gcc ; then
41903 ${D}* ${D}{DEPSFLAG_GCC}
41904 status=${D}?
41905 if test ${D}{status} != 0 ; then
41906 exit ${D}{status}
a848cd7e
SC
41907 fi
41908 # move created file to the location we want it in:
473276a9
VS
41909 while test ${D}# -gt 0; do
41910 case "${D}1" in
a848cd7e
SC
41911 -o )
41912 shift
473276a9 41913 objfile=${D}1
a848cd7e
SC
41914 ;;
41915 -* )
41916 ;;
41917 * )
473276a9 41918 srcfile=${D}1
a848cd7e
SC
41919 ;;
41920 esac
41921 shift
41922 done
1e9e8aba
DE
41923 depfile=\`basename ${D}srcfile | sed -e 's/\\..*${D}/.d/g'\`
41924 depobjname=\`echo ${D}depfile |sed -e 's/\\.d/.o/g'\`
473276a9
VS
41925 if test -f ${D}depfile ; then
41926 sed -e "s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{DEPSDIR}/${D}{objfile}.d
41927 rm -f ${D}depfile
a848cd7e 41928 else
1e9e8aba 41929 depfile=\`basename ${D}objfile | sed -e 's/\\..*${D}/.d/g'\`
473276a9
VS
41930 if test -f ${D}depfile ; then
41931 sed -e "/^${D}objfile/!s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{DEPSDIR}/${D}{objfile}.d
41932 rm -f ${D}depfile
a848cd7e
SC
41933 fi
41934 fi
41935 exit 0
81f90336
MW
41936elif test ${D}DEPSMODE = mwcc ; then
41937 ${D}*
41938 status=${D}?
41939 if test ${D}{status} != 0 ; then
41940 exit ${D}{status}
41941 fi
41942 # Run mwcc again with -MM and redirect into the dep file we want
41943 # NOTE: We can't use shift here because we need ${D}* to be valid
41944 prevarg=
41945 for arg in ${D}* ; do
41946 if test "${D}prevarg" = "-o"; then
41947 objfile=${D}arg
41948 else
41949 case "${D}arg" in
41950 -* )
41951 ;;
41952 * )
41953 srcfile=${D}arg
41954 ;;
41955 esac
41956 fi
41957 prevarg="${D}arg"
41958 done
41959 ${D}* ${D}DEPSFLAG_MWCC >${D}{DEPSDIR}/${D}{objfile}.d
41960 exit 0
a848cd7e 41961else
473276a9
VS
41962 ${D}*
41963 exit ${D}?
a848cd7e
SC
41964fi
41965EOF
473276a9 41966
a848cd7e
SC
41967 chmod +x bk-deps
41968 fi
41969
41970
41971
41972
41973 RESCOMP=
41974 SETFILE=
41975
41976 case ${BAKEFILE_HOST} in
41977 *-*-cygwin* | *-*-mingw32* )
41978 if test "$build" != "$host" ; then
41979 RESCOMP=$host_alias-windres
41980 else
41981 # Extract the first word of "windres", so it can be a program name with args.
41982set dummy windres; ac_word=$2
41983echo "$as_me:$LINENO: checking for $ac_word" >&5
41984echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
41985if test "${ac_cv_prog_RESCOMP+set}" = set; then
41986 echo $ECHO_N "(cached) $ECHO_C" >&6
41987else
41988 if test -n "$RESCOMP"; then
41989 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
41990else
41991as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
41992for as_dir in $PATH
41993do
41994 IFS=$as_save_IFS
41995 test -z "$as_dir" && as_dir=.
41996 for ac_exec_ext in '' $ac_executable_extensions; do
41997 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
41998 ac_cv_prog_RESCOMP="windres"
41999 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
42000 break 2
42001 fi
42002done
42003done
42004
42005 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="windres"
42006fi
42007fi
42008RESCOMP=$ac_cv_prog_RESCOMP
42009if test -n "$RESCOMP"; then
42010 echo "$as_me:$LINENO: result: $RESCOMP" >&5
42011echo "${ECHO_T}$RESCOMP" >&6
42012else
42013 echo "$as_me:$LINENO: result: no" >&5
42014echo "${ECHO_T}no" >&6
42015fi
42016
42017 fi
42018 ;;
42019
1e9e8aba 42020 *-*-darwin* | powerpc-apple-macos* )
a848cd7e
SC
42021 # Extract the first word of "Rez", so it can be a program name with args.
42022set dummy Rez; ac_word=$2
42023echo "$as_me:$LINENO: checking for $ac_word" >&5
42024echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
42025if test "${ac_cv_prog_RESCOMP+set}" = set; then
42026 echo $ECHO_N "(cached) $ECHO_C" >&6
42027else
42028 if test -n "$RESCOMP"; then
42029 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
42030else
42031as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
42032for as_dir in $PATH
42033do
42034 IFS=$as_save_IFS
42035 test -z "$as_dir" && as_dir=.
42036 for ac_exec_ext in '' $ac_executable_extensions; do
42037 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
42038 ac_cv_prog_RESCOMP="Rez"
42039 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
42040 break 2
42041 fi
42042done
42043done
42044
42045 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez"
42046fi
42047fi
42048RESCOMP=$ac_cv_prog_RESCOMP
42049if test -n "$RESCOMP"; then
42050 echo "$as_me:$LINENO: result: $RESCOMP" >&5
42051echo "${ECHO_T}$RESCOMP" >&6
42052else
42053 echo "$as_me:$LINENO: result: no" >&5
42054echo "${ECHO_T}no" >&6
42055fi
42056
42057 # Extract the first word of "SetFile", so it can be a program name with args.
42058set dummy SetFile; ac_word=$2
42059echo "$as_me:$LINENO: checking for $ac_word" >&5
42060echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
42061if test "${ac_cv_prog_SETFILE+set}" = set; then
42062 echo $ECHO_N "(cached) $ECHO_C" >&6
42063else
42064 if test -n "$SETFILE"; then
42065 ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
42066else
42067as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
42068for as_dir in $PATH
42069do
42070 IFS=$as_save_IFS
42071 test -z "$as_dir" && as_dir=.
42072 for ac_exec_ext in '' $ac_executable_extensions; do
42073 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
42074 ac_cv_prog_SETFILE="SetFile"
42075 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
42076 break 2
42077 fi
42078done
42079done
42080
42081 test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
42082fi
42083fi
42084SETFILE=$ac_cv_prog_SETFILE
42085if test -n "$SETFILE"; then
42086 echo "$as_me:$LINENO: result: $SETFILE" >&5
42087echo "${ECHO_T}$SETFILE" >&6
42088else
42089 echo "$as_me:$LINENO: result: no" >&5
42090echo "${ECHO_T}no" >&6
42091fi
42092
42093 ;;
42094 esac
42095
42096
42097
42098
42099
94acd38e 42100 BAKEFILE_BAKEFILE_M4_VERSION="0.1.7"
a848cd7e 42101
dcc1b6ad 42102
94acd38e 42103BAKEFILE_AUTOCONF_INC_M4_VERSION="0.1.7"
a848cd7e 42104
646b6ec1 42105
74b84332 42106
a848cd7e
SC
42107 # Check whether --enable-precomp-headers or --disable-precomp-headers was given.
42108if test "${enable_precomp_headers+set}" = set; then
42109 enableval="$enable_precomp_headers"
42110 bk_use_pch="$enableval"
42111fi;
42112
42113 GCC_PCH=0
42114
42115 if test "x$bk_use_pch" = "x" -o "x$bk_use_pch" = "xyes" ; then
42116 if test "x$GCC" = "xyes"; then
42117 echo "$as_me:$LINENO: checking if the compiler supports precompiled headers" >&5
42118echo $ECHO_N "checking if the compiler supports precompiled headers... $ECHO_C" >&6
42119 cat >conftest.$ac_ext <<_ACEOF
42120/* confdefs.h. */
42121_ACEOF
42122cat confdefs.h >>conftest.$ac_ext
42123cat >>conftest.$ac_ext <<_ACEOF
42124/* end confdefs.h. */
42125
42126int
42127main ()
42128{
42129
42130 #if !defined(__GNUC__) || !defined(__GNUC_MINOR__)
42131 #error "no pch support"
42132 #endif
42133 #if (__GNUC__ < 3)
42134 #error "no pch support"
42135 #endif
42136 #if (__GNUC__ == 3) && \
42137 ((!defined(__APPLE_CC__) && (__GNUC_MINOR__ < 4)) || \
42138 ( defined(__APPLE_CC__) && (__GNUC_MINOR__ < 3)))
42139 #error "no pch support"
42140 #endif
42141
42142 ;
42143 return 0;
42144}
42145_ACEOF
42146rm -f conftest.$ac_objext
42147if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 42148 (eval $ac_compile) 2>conftest.er1
a848cd7e 42149 ac_status=$?
ac1cb8d3
VS
42150 grep -v '^ *+' conftest.er1 >conftest.err
42151 rm -f conftest.er1
42152 cat conftest.err >&5
a848cd7e
SC
42153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42154 (exit $ac_status); } &&
07158944 42155 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
42156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42157 (eval $ac_try) 2>&5
42158 ac_status=$?
42159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42160 (exit $ac_status); }; } &&
42161 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
42162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42163 (eval $ac_try) 2>&5
42164 ac_status=$?
42165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42166 (exit $ac_status); }; }; then
42167
42168 echo "$as_me:$LINENO: result: yes" >&5
42169echo "${ECHO_T}yes" >&6
a848cd7e
SC
42170 GCC_PCH=1
42171
42172else
42173 echo "$as_me: failed program was:" >&5
42174sed 's/^/| /' conftest.$ac_ext >&5
42175
42176
42177 echo "$as_me:$LINENO: result: no" >&5
42178echo "${ECHO_T}no" >&6
42179
42180fi
ac1cb8d3 42181rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 42182 if test $GCC_PCH = 1 ; then
1e9e8aba
DE
42183
42184D='$'
42185cat <<EOF >bk-make-pch
a848cd7e
SC
42186#!/bin/sh
42187
42188# This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf
42189# script. It is used to generated precompiled headers.
42190#
42191# Permission is given to use this file in any way.
42192
1e9e8aba
DE
42193outfile="${D}{1}"
42194header="${D}{2}"
a848cd7e
SC
42195shift
42196shift
42197
42198compiler=
42199headerfile=
1e9e8aba
DE
42200while test ${D}{#} -gt 0; do
42201 case "${D}{1}" in
a848cd7e 42202 -I* )
1e9e8aba
DE
42203 incdir=\`echo ${D}{1} | sed -e 's/-I\\(.*\\)/\\1/g'\`
42204 if test "x${D}{headerfile}" = "x" -a -f "${D}{incdir}/${D}{header}" ; then
42205 headerfile="${D}{incdir}/${D}{header}"
a848cd7e
SC
42206 fi
42207 ;;
42208 esac
1e9e8aba 42209 compiler="${D}{compiler} ${D}{1}"
a848cd7e
SC
42210 shift
42211done
42212
1e9e8aba
DE
42213if test "x${D}{headerfile}" = "x" ; then
42214 echo "error: can't find header ${D}{header} in include paths" >2
a848cd7e 42215else
1e9e8aba
DE
42216 if test -f ${D}{outfile} ; then
42217 rm -f ${D}{outfile}
a848cd7e 42218 else
1e9e8aba 42219 mkdir -p \`dirname ${D}{outfile}\`
a848cd7e 42220 fi
1e9e8aba 42221 depsfile=".deps/\`echo ${D}{outfile} | tr '/.' '__'\`.d"
a848cd7e
SC
42222 mkdir -p .deps
42223 # can do this because gcc is >= 3.4:
1e9e8aba
DE
42224 ${D}{compiler} -o ${D}{outfile} -MMD -MF "${D}{depsfile}" "${D}{headerfile}"
42225 exit ${D}{?}
a848cd7e
SC
42226fi
42227EOF
1e9e8aba 42228
a848cd7e
SC
42229 chmod +x bk-make-pch
42230 fi
42231 fi
42232 fi
42233
42234
42235
a848cd7e
SC
42236 COND_BUILD_DEBUG="#"
42237 if test "x$BUILD" = "xdebug" ; then
42238 COND_BUILD_DEBUG=""
42239 fi
42240
42241 COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT="#"
42242 if test "x$BUILD" = "xdebug" -a "x$DEBUG_FLAG" = "xdefault" ; then
42243 COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT=""
42244 fi
42245
42246 COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT="#"
42247 if test "x$BUILD" = "xdebug" -a "x$DEBUG_INFO" = "xdefault" ; then
42248 COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT=""
42249 fi
42250
42251 COND_BUILD_DEBUG_UNICODE_0="#"
42252 if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x0" ; then
42253 COND_BUILD_DEBUG_UNICODE_0=""
42254 fi
42255
42256 COND_BUILD_DEBUG_UNICODE_1="#"
42257 if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x1" ; then
42258 COND_BUILD_DEBUG_UNICODE_1=""
42259 fi
42260
42261 COND_BUILD_RELEASE="#"
42262 if test "x$BUILD" = "xrelease" ; then
42263 COND_BUILD_RELEASE=""
42264 fi
42265
42266 COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT="#"
42267 if test "x$BUILD" = "xrelease" -a "x$DEBUG_INFO" = "xdefault" ; then
42268 COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT=""
42269 fi
42270
42271 COND_BUILD_RELEASE_UNICODE_0="#"
42272 if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x0" ; then
42273 COND_BUILD_RELEASE_UNICODE_0=""
42274 fi
42275
42276 COND_BUILD_RELEASE_UNICODE_1="#"
42277 if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x1" ; then
42278 COND_BUILD_RELEASE_UNICODE_1=""
42279 fi
42280
42281 COND_DEBUG_FLAG_1="#"
42282 if test "x$DEBUG_FLAG" = "x1" ; then
42283 COND_DEBUG_FLAG_1=""
42284 fi
42285
42286 COND_DEBUG_INFO_0="#"
42287 if test "x$DEBUG_INFO" = "x0" ; then
42288 COND_DEBUG_INFO_0=""
42289 fi
42290
42291 COND_DEBUG_INFO_1="#"
42292 if test "x$DEBUG_INFO" = "x1" ; then
42293 COND_DEBUG_INFO_1=""
42294 fi
42295
42296 COND_DEPS_TRACKING_0="#"
42297 if test "x$DEPS_TRACKING" = "x0" ; then
42298 COND_DEPS_TRACKING_0=""
42299 fi
42300
42301 COND_DEPS_TRACKING_1="#"
42302 if test "x$DEPS_TRACKING" = "x1" ; then
42303 COND_DEPS_TRACKING_1=""
42304 fi
42305
42306 COND_GCC_PCH_1="#"
42307 if test "x$GCC_PCH" = "x1" ; then
42308 COND_GCC_PCH_1=""
42309 fi
42310
42311 COND_MONOLITHIC_0="#"
42312 if test "x$MONOLITHIC" = "x0" ; then
42313 COND_MONOLITHIC_0=""
42314 fi
42315
42316 COND_MONOLITHIC_0_SHARED_0="#"
42317 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" ; then
42318 COND_MONOLITHIC_0_SHARED_0=""
42319 fi
42320
42321 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1="#"
42322 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" ; then
42323 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1=""
42324 fi
42325
90970d69
DE
42326 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1="#"
42327 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_HTML" = "x1" ; then
42328 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1=""
42329 fi
42330
a848cd7e
SC
42331 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1="#"
42332 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then
42333 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1=""
42334 fi
42335
a848cd7e
SC
42336 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1="#"
42337 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_ODBC" = "x1" ; then
42338 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1=""
42339 fi
42340
ceec2216
RL
42341 COND_MONOLITHIC_0_SHARED_0_USE_XRC_1="#"
42342 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_XRC" = "x1" ; then
42343 COND_MONOLITHIC_0_SHARED_0_USE_XRC_1=""
42344 fi
42345
a848cd7e
SC
42346 COND_MONOLITHIC_0_SHARED_1="#"
42347 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" ; then
42348 COND_MONOLITHIC_0_SHARED_1=""
42349 fi
42350
42351 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1="#"
42352 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" ; then
42353 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1=""
42354 fi
42355
90970d69
DE
42356 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1="#"
42357 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_HTML" = "x1" ; then
42358 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1=""
42359 fi
42360
a848cd7e
SC
42361 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1="#"
42362 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then
42363 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1=""
42364 fi
42365
a848cd7e
SC
42366 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1="#"
42367 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_ODBC" = "x1" ; then
42368 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1=""
42369 fi
42370
ceec2216
RL
42371 COND_MONOLITHIC_0_SHARED_1_USE_XRC_1="#"
42372 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_XRC" = "x1" ; then
42373 COND_MONOLITHIC_0_SHARED_1_USE_XRC_1=""
42374 fi
42375
a848cd7e
SC
42376 COND_MONOLITHIC_0_USE_ODBC_1="#"
42377 if test "x$MONOLITHIC" = "x0" -a "x$USE_ODBC" = "x1" ; then
42378 COND_MONOLITHIC_0_USE_ODBC_1=""
42379 fi
42380
42381 COND_MONOLITHIC_1="#"
42382 if test "x$MONOLITHIC" = "x1" ; then
42383 COND_MONOLITHIC_1=""
42384 fi
42385
42386 COND_MONOLITHIC_1_SHARED_0="#"
42387 if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x0" ; then
42388 COND_MONOLITHIC_1_SHARED_0=""
42389 fi
42390
42391 COND_MONOLITHIC_1_SHARED_1="#"
42392 if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x1" ; then
42393 COND_MONOLITHIC_1_SHARED_1=""
42394 fi
42395
42396 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1="#"
42397 if test "x$OFFICIAL_BUILD" = "x0" -a "x$PLATFORM_WIN32" = "x1" ; then
42398 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1=""
42399 fi
42400
42401 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1="#"
42402 if test "x$OFFICIAL_BUILD" = "x1" -a "x$PLATFORM_WIN32" = "x1" ; then
42403 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1=""
42404 fi
42405
42406 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1="#"
42407 if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERSION" = "x1" ; then
42408 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1=""
42409 fi
42410
42411 COND_PLATFORM_MACOSX_1="#"
42412 if test "x$PLATFORM_MACOSX" = "x1" ; then
42413 COND_PLATFORM_MACOSX_1=""
42414 fi
42415
a30f955f
VS
42416 COND_PLATFORM_MACOSX_1_TOOLKIT_="#"
42417 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "x" ; then
42418 COND_PLATFORM_MACOSX_1_TOOLKIT_=""
42419 fi
42420
a848cd7e
SC
42421 COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA="#"
42422 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xCOCOA" ; then
42423 COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA=""
42424 fi
42425
42426 COND_PLATFORM_MACOSX_1_TOOLKIT_GTK="#"
42427 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xGTK" ; then
42428 COND_PLATFORM_MACOSX_1_TOOLKIT_GTK=""
42429 fi
42430
42431 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC="#"
42432 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" ; then
42433 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC=""
42434 fi
42435
fc480dc1
DE
42436 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1="#"
42437 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" ; then
42438 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1=""
42439 fi
42440
1e9e8aba
DE
42441 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="#"
42442 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
42443 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0=""
42444 fi
42445
ebee3cd0
VS
42446 COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF="#"
42447 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMOTIF" ; then
42448 COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF=""
42449 fi
42450
42451 COND_PLATFORM_MACOSX_1_TOOLKIT_X11="#"
42452 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xX11" ; then
42453 COND_PLATFORM_MACOSX_1_TOOLKIT_X11=""
42454 fi
42455
a848cd7e
SC
42456 COND_PLATFORM_MACOSX_1_USE_GUI_1="#"
42457 if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_GUI" = "x1" ; then
42458 COND_PLATFORM_MACOSX_1_USE_GUI_1=""
42459 fi
42460
42461 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1="#"
42462 if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_SOVERSION" = "x1" ; then
42463 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1=""
42464 fi
42465
b48a2016
DE
42466 COND_PLATFORM_MACOS_1="#"
42467 if test "x$PLATFORM_MACOS" = "x1" ; then
42468 COND_PLATFORM_MACOS_1=""
42469 fi
42470
a848cd7e
SC
42471 COND_PLATFORM_MAC_1="#"
42472 if test "x$PLATFORM_MAC" = "x1" ; then
42473 COND_PLATFORM_MAC_1=""
42474 fi
42475
42476 COND_PLATFORM_OS2_1="#"
42477 if test "x$PLATFORM_OS2" = "x1" ; then
42478 COND_PLATFORM_OS2_1=""
42479 fi
42480
42481 COND_PLATFORM_UNIX_0="#"
42482 if test "x$PLATFORM_UNIX" = "x0" ; then
42483 COND_PLATFORM_UNIX_0=""
42484 fi
42485
42486 COND_PLATFORM_UNIX_1="#"
42487 if test "x$PLATFORM_UNIX" = "x1" ; then
42488 COND_PLATFORM_UNIX_1=""
42489 fi
42490
42491 COND_PLATFORM_UNIX_1_USE_GUI_1="#"
42492 if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_GUI" = "x1" ; then
42493 COND_PLATFORM_UNIX_1_USE_GUI_1=""
42494 fi
42495
42496 COND_PLATFORM_UNIX_1_USE_PLUGINS_0="#"
42497 if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_PLUGINS" = "x0" ; then
42498 COND_PLATFORM_UNIX_1_USE_PLUGINS_0=""
42499 fi
42500
42501 COND_PLATFORM_WIN32_0="#"
42502 if test "x$PLATFORM_WIN32" = "x0" ; then
42503 COND_PLATFORM_WIN32_0=""
42504 fi
42505
42506 COND_PLATFORM_WIN32_1="#"
42507 if test "x$PLATFORM_WIN32" = "x1" ; then
42508 COND_PLATFORM_WIN32_1=""
42509 fi
42510
42511 COND_SHARED_0="#"
42512 if test "x$SHARED" = "x0" ; then
42513 COND_SHARED_0=""
42514 fi
42515
ceec2216
RL
42516 COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0="#"
42517 if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xMAC" -a "x$WXUNIV" = "x0" ; then
42518 COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0=""
42519 fi
42520
42521 COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0="#"
42522 if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xMSW" -a "x$WXUNIV" = "x0" ; then
42523 COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0=""
42524 fi
42525
42526 COND_SHARED_0_TOOLKIT_PM_WXUNIV_0="#"
42527 if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xPM" -a "x$WXUNIV" = "x0" ; then
42528 COND_SHARED_0_TOOLKIT_PM_WXUNIV_0=""
42529 fi
42530
a848cd7e
SC
42531 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1="#"
42532 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
42533 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1=""
42534 fi
42535
42536 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
42537 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
42538 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
42539 fi
42540
42541 COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
42542 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
42543 COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
42544 fi
42545
42546 COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
42547 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
42548 COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
42549 fi
42550
42551 COND_SHARED_0_WXUSE_EXPAT_BUILTIN="#"
42552 if test "x$SHARED" = "x0" -a "x$wxUSE_EXPAT" = "xbuiltin" ; then
42553 COND_SHARED_0_WXUSE_EXPAT_BUILTIN=""
42554 fi
42555
42556 COND_SHARED_0_WXUSE_ODBC_BUILTIN="#"
42557 if test "x$SHARED" = "x0" -a "x$wxUSE_ODBC" = "xbuiltin" ; then
42558 COND_SHARED_0_WXUSE_ODBC_BUILTIN=""
42559 fi
42560
42561 COND_SHARED_0_WXUSE_REGEX_BUILTIN="#"
42562 if test "x$SHARED" = "x0" -a "x$wxUSE_REGEX" = "xbuiltin" ; then
42563 COND_SHARED_0_WXUSE_REGEX_BUILTIN=""
42564 fi
42565
42566 COND_SHARED_0_WXUSE_ZLIB_BUILTIN="#"
42567 if test "x$SHARED" = "x0" -a "x$wxUSE_ZLIB" = "xbuiltin" ; then
42568 COND_SHARED_0_WXUSE_ZLIB_BUILTIN=""
42569 fi
42570
42571 COND_SHARED_1="#"
42572 if test "x$SHARED" = "x1" ; then
42573 COND_SHARED_1=""
42574 fi
42575
42576 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1="#"
42577 if test "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
42578 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1=""
42579 fi
42580
a30f955f
VS
42581 COND_TOOLKIT_="#"
42582 if test "x$TOOLKIT" = "x" ; then
42583 COND_TOOLKIT_=""
42584 fi
42585
a848cd7e
SC
42586 COND_TOOLKIT_COCOA="#"
42587 if test "x$TOOLKIT" = "xCOCOA" ; then
42588 COND_TOOLKIT_COCOA=""
42589 fi
42590
a49baeab
DE
42591 COND_TOOLKIT_COCOA_USE_GUI_1="#"
42592 if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" ; then
42593 COND_TOOLKIT_COCOA_USE_GUI_1=""
42594 fi
42595
a848cd7e
SC
42596 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0="#"
42597 if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
42598 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0=""
42599 fi
42600
42601 COND_TOOLKIT_GTK="#"
42602 if test "x$TOOLKIT" = "xGTK" ; then
42603 COND_TOOLKIT_GTK=""
42604 fi
42605
42606 COND_TOOLKIT_GTK_USE_GUI_1="#"
42607 if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" ; then
42608 COND_TOOLKIT_GTK_USE_GUI_1=""
42609 fi
42610
42611 COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0="#"
42612 if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
42613 COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0=""
42614 fi
42615
42616 COND_TOOLKIT_MAC="#"
42617 if test "x$TOOLKIT" = "xMAC" ; then
42618 COND_TOOLKIT_MAC=""
42619 fi
42620
42621 COND_TOOLKIT_MAC_USE_GUI_1="#"
42622 if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" ; then
42623 COND_TOOLKIT_MAC_USE_GUI_1=""
42624 fi
42625
42626 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="#"
42627 if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
42628 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0=""
42629 fi
42630
42631 COND_TOOLKIT_MGL="#"
42632 if test "x$TOOLKIT" = "xMGL" ; then
42633 COND_TOOLKIT_MGL=""
42634 fi
42635
42636 COND_TOOLKIT_MGL_USE_GUI_1="#"
42637 if test "x$TOOLKIT" = "xMGL" -a "x$USE_GUI" = "x1" ; then
42638 COND_TOOLKIT_MGL_USE_GUI_1=""
42639 fi
42640
42641 COND_TOOLKIT_MOTIF="#"
42642 if test "x$TOOLKIT" = "xMOTIF" ; then
42643 COND_TOOLKIT_MOTIF=""
42644 fi
42645
42646 COND_TOOLKIT_MOTIF_USE_GUI_1="#"
42647 if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" ; then
42648 COND_TOOLKIT_MOTIF_USE_GUI_1=""
42649 fi
42650
42651 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0="#"
42652 if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
42653 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0=""
42654 fi
42655
42656 COND_TOOLKIT_MSW="#"
42657 if test "x$TOOLKIT" = "xMSW" ; then
42658 COND_TOOLKIT_MSW=""
42659 fi
42660
42661 COND_TOOLKIT_MSW_USE_GUI_1="#"
42662 if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" ; then
42663 COND_TOOLKIT_MSW_USE_GUI_1=""
42664 fi
42665
42666 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0="#"
42667 if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
42668 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0=""
42669 fi
42670
42671 COND_TOOLKIT_PM="#"
42672 if test "x$TOOLKIT" = "xPM" ; then
42673 COND_TOOLKIT_PM=""
42674 fi
42675
42676 COND_TOOLKIT_PM_USE_GUI_1="#"
42677 if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" ; then
42678 COND_TOOLKIT_PM_USE_GUI_1=""
42679 fi
42680
42681 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0="#"
42682 if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
42683 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0=""
42684 fi
42685
3fd9c298
DE
42686 COND_TOOLKIT_WINCE="#"
42687 if test "x$TOOLKIT" = "xWINCE" ; then
42688 COND_TOOLKIT_WINCE=""
42689 fi
42690
42691 COND_TOOLKIT_WINCE_USE_GUI_1="#"
42692 if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" ; then
42693 COND_TOOLKIT_WINCE_USE_GUI_1=""
42694 fi
42695
42696 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0="#"
42697 if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
42698 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0=""
42699 fi
42700
a848cd7e
SC
42701 COND_TOOLKIT_X11="#"
42702 if test "x$TOOLKIT" = "xX11" ; then
42703 COND_TOOLKIT_X11=""
42704 fi
42705
42706 COND_TOOLKIT_X11_USE_GUI_1="#"
42707 if test "x$TOOLKIT" = "xX11" -a "x$USE_GUI" = "x1" ; then
42708 COND_TOOLKIT_X11_USE_GUI_1=""
42709 fi
42710
42711 COND_UNICODE_1="#"
42712 if test "x$UNICODE" = "x1" ; then
42713 COND_UNICODE_1=""
42714 fi
42715
42716 COND_USE_EXCEPTIONS_0="#"
42717 if test "x$USE_EXCEPTIONS" = "x0" ; then
42718 COND_USE_EXCEPTIONS_0=""
42719 fi
42720
42721 COND_USE_EXCEPTIONS_1="#"
42722 if test "x$USE_EXCEPTIONS" = "x1" ; then
42723 COND_USE_EXCEPTIONS_1=""
42724 fi
42725
42726 COND_USE_GUI_0="#"
42727 if test "x$USE_GUI" = "x0" ; then
42728 COND_USE_GUI_0=""
42729 fi
42730
42731 COND_USE_GUI_1="#"
42732 if test "x$USE_GUI" = "x1" ; then
42733 COND_USE_GUI_1=""
42734 fi
42735
42736 COND_USE_GUI_1_WXUNIV_0="#"
42737 if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
42738 COND_USE_GUI_1_WXUNIV_0=""
42739 fi
42740
42741 COND_USE_GUI_1_WXUNIV_1="#"
42742 if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x1" ; then
42743 COND_USE_GUI_1_WXUNIV_1=""
42744 fi
42745
42746 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
42747 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
42748 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
42749 fi
42750
42751 COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
42752 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
42753 COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
42754 fi
42755
42756 COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
42757 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
42758 COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
42759 fi
42760
ceec2216
RL
42761 COND_USE_ODBC_1="#"
42762 if test "x$USE_ODBC" = "x1" ; then
42763 COND_USE_ODBC_1=""
42764 fi
42765
ffa0583f
RL
42766 COND_USE_OPENGL_1="#"
42767 if test "x$USE_OPENGL" = "x1" ; then
42768 COND_USE_OPENGL_1=""
42769 fi
42770
a848cd7e
SC
42771 COND_USE_PLUGINS_0="#"
42772 if test "x$USE_PLUGINS" = "x0" ; then
42773 COND_USE_PLUGINS_0=""
42774 fi
42775
0b78747f
MW
42776 COND_USE_RTTI_0="#"
42777 if test "x$USE_RTTI" = "x0" ; then
42778 COND_USE_RTTI_0=""
42779 fi
42780
42781 COND_USE_RTTI_1="#"
42782 if test "x$USE_RTTI" = "x1" ; then
42783 COND_USE_RTTI_1=""
42784 fi
42785
a848cd7e
SC
42786 COND_USE_SOSYMLINKS_1="#"
42787 if test "x$USE_SOSYMLINKS" = "x1" ; then
42788 COND_USE_SOSYMLINKS_1=""
42789 fi
42790
42791 COND_USE_SOVERLINUX_1="#"
42792 if test "x$USE_SOVERLINUX" = "x1" ; then
42793 COND_USE_SOVERLINUX_1=""
42794 fi
42795
42796 COND_USE_SOVERSION_0="#"
42797 if test "x$USE_SOVERSION" = "x0" ; then
42798 COND_USE_SOVERSION_0=""
42799 fi
42800
42801 COND_USE_SOVERSOLARIS_1="#"
42802 if test "x$USE_SOVERSOLARIS" = "x1" ; then
42803 COND_USE_SOVERSOLARIS_1=""
42804 fi
42805
0b78747f
MW
42806 COND_USE_THREADS_0="#"
42807 if test "x$USE_THREADS" = "x0" ; then
42808 COND_USE_THREADS_0=""
42809 fi
42810
42811 COND_USE_THREADS_1="#"
42812 if test "x$USE_THREADS" = "x1" ; then
42813 COND_USE_THREADS_1=""
42814 fi
42815
a13a7f89
RL
42816 COND_USE_XRC_1="#"
42817 if test "x$USE_XRC" = "x1" ; then
42818 COND_USE_XRC_1=""
42819 fi
42820
a848cd7e
SC
42821 COND_WITH_PLUGIN_SDL_1="#"
42822 if test "x$WITH_PLUGIN_SDL" = "x1" ; then
42823 COND_WITH_PLUGIN_SDL_1=""
42824 fi
42825
1e6eb025
VZ
42826 COND_WXUNIV_0="#"
42827 if test "x$WXUNIV" = "x0" ; then
42828 COND_WXUNIV_0=""
42829 fi
42830
a848cd7e
SC
42831 COND_WXUNIV_1="#"
42832 if test "x$WXUNIV" = "x1" ; then
42833 COND_WXUNIV_1=""
42834 fi
42835
42836 COND_WXUSE_EXPAT_BUILTIN="#"
42837 if test "x$wxUSE_EXPAT" = "xbuiltin" ; then
42838 COND_WXUSE_EXPAT_BUILTIN=""
42839 fi
42840
42841 COND_WXUSE_LIBJPEG_BUILTIN="#"
42842 if test "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
42843 COND_WXUSE_LIBJPEG_BUILTIN=""
42844 fi
42845
42846 COND_WXUSE_LIBPNG_BUILTIN="#"
42847 if test "x$wxUSE_LIBPNG" = "xbuiltin" ; then
42848 COND_WXUSE_LIBPNG_BUILTIN=""
42849 fi
42850
42851 COND_WXUSE_LIBTIFF_BUILTIN="#"
42852 if test "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
42853 COND_WXUSE_LIBTIFF_BUILTIN=""
42854 fi
42855
42856 COND_WXUSE_ODBC_BUILTIN="#"
42857 if test "x$wxUSE_ODBC" = "xbuiltin" ; then
42858 COND_WXUSE_ODBC_BUILTIN=""
42859 fi
42860
42861 COND_WXUSE_REGEX_BUILTIN="#"
42862 if test "x$wxUSE_REGEX" = "xbuiltin" ; then
42863 COND_WXUSE_REGEX_BUILTIN=""
42864 fi
42865
42866 COND_WXUSE_ZLIB_BUILTIN="#"
42867 if test "x$wxUSE_ZLIB" = "xbuiltin" ; then
42868 COND_WXUSE_ZLIB_BUILTIN=""
42869 fi
42870
42871
42872
2057db16
VS
42873 if test "$BAKEFILE_BAKEFILE_M4_VERSION" != "$BAKEFILE_AUTOCONF_INC_M4_VERSION" ; then
42874 { { 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
42875echo "$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;}
42876 { (exit 1); exit 1; }; }
42877 fi
42878
a848cd7e 42879
ceec2216
RL
42880if test "$wxUSE_SHARED" = "yes"; then
42881
42882 sanitised_bakefile_mess=`echo "$SHARED_LD_CXX" | tr -d '()'`
42883 EXE_LINKER=`eval echo "$sanitised_bakefile_mess"`
42884
5b674b9d
DE
42885 case "${host}" in
42886 *-pc-os2_emx | *-pc-os2-emx )
42887 SHARED_LD_CC="`pwd`/dllar.sh -name-mangler-script ./dllnames.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
42888 SHARED_LD_CXX="`pwd`/dllar.sh -name-mangler-script ./dllnames.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
42889 cp -p ${srcdir}/src/os2/dllnames.sh .
42890 cp -p ${srcdir}/src/os2/dllar.sh .
42891 ;;
42892 esac
ceec2216
RL
42893else
42894
42895 EXE_LINKER="$CXX -o"
42896
42897fi
a848cd7e 42898
74b84332 42899GCC_PRAGMA_FLAGS=""
c08ebc62
DE
42900PCH_FLAGS=""
42901if test $GCC_PCH = 1 ; then
42902 GCC_PRAGMA_FLAGS="-DNO_GCC_PRAGMA"
42903 PCH_FLAGS="-DWX_PRECOMP"
42904else
a848cd7e
SC
42905 case "${host}" in
42906 powerpc-*-darwin* )
74b84332 42907 GCC_PRAGMA_FLAGS="-DNO_GCC_PRAGMA"
a848cd7e 42908 ;;
bea8e651 42909 *-*-mingw32* )
1f344abf
VS
42910 if test "$wxUSE_STL" = "yes" -o \
42911 "$wxUSE_NO_EXCEPTIONS" != "yes" -o \
42912 "$wxUSE_NO_RTTI" != "yes"; then
42913 echo "$as_me:$LINENO: checking if this MinGW version needs -DNO_GCC_PRAGMA" >&5
42914echo $ECHO_N "checking if this MinGW version needs -DNO_GCC_PRAGMA... $ECHO_C" >&6
bea8e651
MB
42915 cat >conftest.$ac_ext <<_ACEOF
42916/* confdefs.h. */
42917_ACEOF
42918cat confdefs.h >>conftest.$ac_ext
42919cat >>conftest.$ac_ext <<_ACEOF
42920/* end confdefs.h. */
42921
3314e67b
RR
42922int
42923main ()
42924{
42925#if !(__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 2))
42926 #error "Not GCC 3.2 or greater"
42927 #endif
42928
42929 ;
42930 return 0;
42931}
42932_ACEOF
42933rm -f conftest.$ac_objext
42934if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
42935 (eval $ac_compile) 2>conftest.er1
42936 ac_status=$?
42937 grep -v '^ *+' conftest.er1 >conftest.err
42938 rm -f conftest.er1
42939 cat conftest.err >&5
42940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42941 (exit $ac_status); } &&
07158944 42942 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3314e67b
RR
42943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42944 (eval $ac_try) 2>&5
42945 ac_status=$?
42946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42947 (exit $ac_status); }; } &&
42948 { ac_try='test -s conftest.$ac_objext'
42949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42950 (eval $ac_try) 2>&5
42951 ac_status=$?
42952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42953 (exit $ac_status); }; }; then
42954 GCC_PRAGMA_FLAGS="-DNO_GCC_PRAGMA"
42955 echo "$as_me:$LINENO: result: yes" >&5
42956echo "${ECHO_T}yes" >&6
42957else
42958 echo "$as_me: failed program was:" >&5
42959sed 's/^/| /' conftest.$ac_ext >&5
42960
42961echo "$as_me:$LINENO: result: no" >&5
42962echo "${ECHO_T}no" >&6
42963fi
42964rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
42965 fi
42966 ;;
42967 *-pc-os2_emx | *-pc-os2-emx )
42968 if test "$wxUSE_STL" = "yes"; then
42969 echo "$as_me:$LINENO: checking if this gcc version needs -DNO_GCC_PRAGMA" >&5
42970echo $ECHO_N "checking if this gcc version needs -DNO_GCC_PRAGMA... $ECHO_C" >&6
42971 cat >conftest.$ac_ext <<_ACEOF
42972/* confdefs.h. */
42973_ACEOF
42974cat confdefs.h >>conftest.$ac_ext
42975cat >>conftest.$ac_ext <<_ACEOF
42976/* end confdefs.h. */
42977
bea8e651
MB
42978int
42979main ()
42980{
1f344abf 42981#if !(__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 2))
bea8e651
MB
42982 #error "Not GCC 3.2 or greater"
42983 #endif
42984
42985 ;
42986 return 0;
42987}
42988_ACEOF
42989rm -f conftest.$ac_objext
42990if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 42991 (eval $ac_compile) 2>conftest.er1
bea8e651 42992 ac_status=$?
ac1cb8d3
VS
42993 grep -v '^ *+' conftest.er1 >conftest.err
42994 rm -f conftest.er1
42995 cat conftest.err >&5
bea8e651
MB
42996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42997 (exit $ac_status); } &&
07158944 42998 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
42999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43000 (eval $ac_try) 2>&5
43001 ac_status=$?
43002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43003 (exit $ac_status); }; } &&
43004 { ac_try='test -s conftest.$ac_objext'
bea8e651
MB
43005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43006 (eval $ac_try) 2>&5
43007 ac_status=$?
43008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43009 (exit $ac_status); }; }; then
74b84332 43010 GCC_PRAGMA_FLAGS="-DNO_GCC_PRAGMA"
bea8e651
MB
43011 echo "$as_me:$LINENO: result: yes" >&5
43012echo "${ECHO_T}yes" >&6
43013else
43014 echo "$as_me: failed program was:" >&5
43015sed 's/^/| /' conftest.$ac_ext >&5
43016
43017echo "$as_me:$LINENO: result: no" >&5
43018echo "${ECHO_T}no" >&6
43019fi
ac1cb8d3 43020rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bea8e651
MB
43021 fi
43022 ;;
a848cd7e
SC
43023 esac
43024fi
d2083416 43025CPPFLAGS="$PCH_FLAGS $GCC_PRAGMA_FLAGS $CPPFLAGS"
a848cd7e
SC
43026
43027
43028SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`"
43029
43030
43031
43032
43033
43034
43035
43036
43037
43038
43039
43040
43041
43042
43043
43044
43045
43046
43047
43048
43049
43050
43051
43052
43053
43054
43055
43056
43057
43058
43059
43060
43061
43062
43063
43064
43065
43066
43067
43068
43069
43070
a848cd7e
SC
43071
43072
43073
43074
43075
43076
43077
43078
43079
43080
43081
43082
43083
43084
43085
43086
43087
43088
74b84332 43089
a848cd7e
SC
43090
43091
43092echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
43093echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
ac1cb8d3 43094set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
a848cd7e
SC
43095if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
43096 echo $ECHO_N "(cached) $ECHO_C" >&6
43097else
43098 cat >conftest.make <<\_ACEOF
43099all:
43100 @echo 'ac_maketemp="$(MAKE)"'
43101_ACEOF
43102# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
43103eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
43104if test -n "$ac_maketemp"; then
43105 eval ac_cv_prog_make_${ac_make}_set=yes
43106else
43107 eval ac_cv_prog_make_${ac_make}_set=no
43108fi
43109rm -f conftest.make
43110fi
43111if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
43112 echo "$as_me:$LINENO: result: yes" >&5
43113echo "${ECHO_T}yes" >&6
43114 SET_MAKE=
43115else
43116 echo "$as_me:$LINENO: result: no" >&5
43117echo "${ECHO_T}no" >&6
43118 SET_MAKE="MAKE=${MAKE-make}"
43119fi
43120
43121
a848cd7e 43122
ceec2216
RL
43123 ac_config_headers="$ac_config_headers lib/wx/include/${TOOLCHAIN_FULLNAME}/wx/setup.h:setup.h.in"
43124
a848cd7e 43125
ceec2216 43126 ac_config_files="$ac_config_files lib/wx/config/${TOOLCHAIN_FULLNAME}:wx-config.in"
a848cd7e 43127
a848cd7e 43128
ceec2216 43129 ac_config_files="$ac_config_files lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}:wx-config-inplace.in"
a848cd7e 43130
ceec2216
RL
43131
43132 ac_config_files="$ac_config_files version-script Makefile"
43133
43134
43135 ac_config_commands="$ac_config_commands wx-config
43136 "
a848cd7e
SC
43137
43138
9103d280
RL
43139
43140
a848cd7e
SC
43141if test "$wxUSE_GUI" = "yes"; then
43142 SUBDIRS="samples demos utils contrib"
43143else SUBDIRS="samples utils"
43144fi
43145
43146
43147
43148# Check whether --with-cppunit-prefix or --without-cppunit-prefix was given.
43149if test "${with_cppunit_prefix+set}" = set; then
43150 withval="$with_cppunit_prefix"
43151 cppunit_config_prefix="$withval"
43152else
43153 cppunit_config_prefix=""
43154fi;
43155
43156# Check whether --with-cppunit-exec-prefix or --without-cppunit-exec-prefix was given.
43157if test "${with_cppunit_exec_prefix+set}" = set; then
43158 withval="$with_cppunit_exec_prefix"
43159 cppunit_config_exec_prefix="$withval"
43160else
43161 cppunit_config_exec_prefix=""
43162fi;
43163
43164 if test x$cppunit_config_exec_prefix != x ; then
43165 cppunit_config_args="$cppunit_config_args --exec-prefix=$cppunit_config_exec_prefix"
43166 if test x${CPPUNIT_CONFIG+set} != xset ; then
43167 CPPUNIT_CONFIG=$cppunit_config_exec_prefix/bin/cppunit-config
43168 fi
43169 fi
43170 if test x$cppunit_config_prefix != x ; then
43171 cppunit_config_args="$cppunit_config_args --prefix=$cppunit_config_prefix"
43172 if test x${CPPUNIT_CONFIG+set} != xset ; then
43173 CPPUNIT_CONFIG=$cppunit_config_prefix/bin/cppunit-config
43174 fi
43175 fi
43176
43177 # Extract the first word of "cppunit-config", so it can be a program name with args.
43178set dummy cppunit-config; ac_word=$2
43179echo "$as_me:$LINENO: checking for $ac_word" >&5
43180echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
43181if test "${ac_cv_path_CPPUNIT_CONFIG+set}" = set; then
43182 echo $ECHO_N "(cached) $ECHO_C" >&6
43183else
43184 case $CPPUNIT_CONFIG in
43185 [\\/]* | ?:[\\/]*)
43186 ac_cv_path_CPPUNIT_CONFIG="$CPPUNIT_CONFIG" # Let the user override the test with a path.
43187 ;;
43188 *)
43189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43190for as_dir in $PATH
43191do
43192 IFS=$as_save_IFS
43193 test -z "$as_dir" && as_dir=.
43194 for ac_exec_ext in '' $ac_executable_extensions; do
43195 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
43196 ac_cv_path_CPPUNIT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
43197 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
43198 break 2
43199 fi
43200done
43201done
43202
43203 test -z "$ac_cv_path_CPPUNIT_CONFIG" && ac_cv_path_CPPUNIT_CONFIG="no"
43204 ;;
43205esac
43206fi
43207CPPUNIT_CONFIG=$ac_cv_path_CPPUNIT_CONFIG
43208
43209if test -n "$CPPUNIT_CONFIG"; then
43210 echo "$as_me:$LINENO: result: $CPPUNIT_CONFIG" >&5
43211echo "${ECHO_T}$CPPUNIT_CONFIG" >&6
43212else
43213 echo "$as_me:$LINENO: result: no" >&5
43214echo "${ECHO_T}no" >&6
43215fi
43216
43217 cppunit_version_min=1.8.0
43218
43219 echo "$as_me:$LINENO: checking for Cppunit - version >= $cppunit_version_min" >&5
43220echo $ECHO_N "checking for Cppunit - version >= $cppunit_version_min... $ECHO_C" >&6
43221 no_cppunit=""
43222 if test "$CPPUNIT_CONFIG" = "no" ; then
43223 no_cppunit=yes
43224 else
43225 CPPUNIT_CFLAGS=`$CPPUNIT_CONFIG --cflags`
43226 CPPUNIT_LIBS=`$CPPUNIT_CONFIG --libs`
43227 cppunit_version=`$CPPUNIT_CONFIG --version`
43228
43229 cppunit_major_version=`echo $cppunit_version | \
43230 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
43231 cppunit_minor_version=`echo $cppunit_version | \
43232 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
43233 cppunit_micro_version=`echo $cppunit_version | \
43234 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
43235
43236 cppunit_major_min=`echo $cppunit_version_min | \
43237 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
43238 cppunit_minor_min=`echo $cppunit_version_min | \
43239 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
43240 cppunit_micro_min=`echo $cppunit_version_min | \
43241 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
43242
43243 cppunit_version_proper=`expr \
43244 $cppunit_major_version \> $cppunit_major_min \| \
43245 $cppunit_major_version \= $cppunit_major_min \& \
43246 $cppunit_minor_version \> $cppunit_minor_min \| \
43247 $cppunit_major_version \= $cppunit_major_min \& \
43248 $cppunit_minor_version \= $cppunit_minor_min \& \
43249 $cppunit_micro_version \>= $cppunit_micro_min `
43250
43251 if test "$cppunit_version_proper" = "1" ; then
43252 echo "$as_me:$LINENO: result: $cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&5
43253echo "${ECHO_T}$cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&6
43254 else
43255 echo "$as_me:$LINENO: result: no" >&5
43256echo "${ECHO_T}no" >&6
43257 no_cppunit=yes
43258 fi
43259 fi
43260
43261 if test "x$no_cppunit" = x ; then
c2218763 43262 SUBDIRS="$SUBDIRS tests"
a848cd7e
SC
43263 else
43264 CPPUNIT_CFLAGS=""
43265 CPPUNIT_LIBS=""
c2218763 43266 :
a848cd7e
SC
43267 fi
43268
43269
43270
43271
43272
43273for subdir in `echo $SUBDIRS`; do
43274 if test -d ${srcdir}/${subdir} ; then
43275 if test "$wxUSE_GUI" = "yes"; then
43276 if test ${subdir} = "samples"; then
43277 makefiles="samples/Makefile.in $makefiles"
43278 for sample in `echo $SAMPLES_SUBDIRS`; do
43279 if test -d $srcdir/samples/$sample; then
43280 makefiles="samples/$sample/Makefile.in $makefiles"
43281 fi
43282 done
43283 else makefiles=`(cd $srcdir ; find $subdir -name Makefile.in)`
43284 fi
43285 else if test ${subdir} = "samples"; then
43286 makefiles="samples/Makefile.in samples/console/Makefile.in"
43287 elif test ${subdir} = "utils"; then
6537ccf8
VS
43288 makefiles=""
43289 for util in HelpGen tex2rtf ; do
43290 if test -d $srcdir/utils/$util ; then
43291 makefiles="utils/$util/Makefile.in \
43292 utils/$util/src/Makefile.in \
43293 $makefiles"
43294 fi
43295 done
a848cd7e
SC
43296 else makefiles=`(cd $srcdir ; find $subdir -name Makefile.in)`
43297 fi
43298 fi
43299
43300 for mkin in $makefiles ; do
43301 mk=`echo $mkin | sed 's/Makefile\.in/Makefile/g'`
43302 ac_config_files="$ac_config_files $mk"
43303
43304 done
43305 fi
43306done
43307
43308
43309cat >confcache <<\_ACEOF
43310# This file is a shell script that caches the results of configure
43311# tests run on this system so they can be shared between configure
43312# scripts and configure runs, see configure's option --config-cache.
43313# It is not useful on other systems. If it contains results you don't
43314# want to keep, you may remove or edit it.
43315#
43316# config.status only pays attention to the cache file if you give it
43317# the --recheck option to rerun configure.
43318#
43319# `ac_cv_env_foo' variables (set or unset) will be overridden when
43320# loading this file, other *unset* `ac_cv_foo' will be assigned the
43321# following values.
43322
43323_ACEOF
43324
43325# The following way of writing the cache mishandles newlines in values,
43326# but we know of no workaround that is simple, portable, and efficient.
43327# So, don't put newlines in cache variables' values.
43328# Ultrix sh set writes to stderr and can't be redirected directly,
43329# and sets the high bit in the cache file unless we assign to the vars.
43330{
43331 (set) 2>&1 |
43332 case `(ac_space=' '; set | grep ac_space) 2>&1` in
43333 *ac_space=\ *)
43334 # `set' does not quote correctly, so add quotes (double-quote
43335 # substitution turns \\\\ into \\, and sed turns \\ into \).
43336 sed -n \
ac1cb8d3
VS
43337 "s/'/'\\\\''/g;
43338 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a848cd7e
SC
43339 ;;
43340 *)
43341 # `set' quotes correctly as required by POSIX, so do not add quotes.
43342 sed -n \
ac1cb8d3 43343 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
43344 ;;
43345 esac;
43346} |
43347 sed '
43348 t clear
43349 : clear
43350 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
43351 t end
43352 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
43353 : end' >>confcache
43354if diff $cache_file confcache >/dev/null 2>&1; then :; else
43355 if test -w $cache_file; then
43356 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
43357 cat confcache >$cache_file
43358 else
43359 echo "not updating unwritable cache $cache_file"
43360 fi
43361fi
43362rm -f confcache
43363
43364test "x$prefix" = xNONE && prefix=$ac_default_prefix
43365# Let make expand exec_prefix.
43366test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
43367
43368# VPATH may cause trouble with some makes, so we remove $(srcdir),
43369# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
43370# trailing colons and then remove the whole line if VPATH becomes empty
43371# (actually we leave an empty line to preserve line numbers).
43372if test "x$srcdir" = x.; then
ac1cb8d3 43373 ac_vpsub='/^[ ]*VPATH[ ]*=/{
a848cd7e
SC
43374s/:*\$(srcdir):*/:/;
43375s/:*\${srcdir}:*/:/;
43376s/:*@srcdir@:*/:/;
ac1cb8d3 43377s/^\([^=]*=[ ]*\):*/\1/;
a848cd7e 43378s/:*$//;
ac1cb8d3 43379s/^[^=]*=[ ]*$//;
a848cd7e
SC
43380}'
43381fi
43382
43383DEFS=-DHAVE_CONFIG_H
43384
43385ac_libobjs=
43386ac_ltlibobjs=
43387for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
43388 # 1. Remove the extension, and $U if already installed.
43389 ac_i=`echo "$ac_i" |
ac1cb8d3 43390 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
a848cd7e
SC
43391 # 2. Add them.
43392 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
43393 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
43394done
43395LIBOBJS=$ac_libobjs
43396
43397LTLIBOBJS=$ac_ltlibobjs
43398
43399
43400
43401: ${CONFIG_STATUS=./config.status}
43402ac_clean_files_save=$ac_clean_files
43403ac_clean_files="$ac_clean_files $CONFIG_STATUS"
43404{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
43405echo "$as_me: creating $CONFIG_STATUS" >&6;}
43406cat >$CONFIG_STATUS <<_ACEOF
43407#! $SHELL
43408# Generated by $as_me.
43409# Run this file to recreate the current configuration.
43410# Compiler output produced by configure, useful for debugging
43411# configure, is in config.log if it exists.
43412
43413debug=false
43414ac_cs_recheck=false
43415ac_cs_silent=false
43416SHELL=\${CONFIG_SHELL-$SHELL}
43417_ACEOF
43418
43419cat >>$CONFIG_STATUS <<\_ACEOF
43420## --------------------- ##
43421## M4sh Initialization. ##
43422## --------------------- ##
43423
43424# Be Bourne compatible
43425if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
43426 emulate sh
43427 NULLCMD=:
43428 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
43429 # is contrary to our usage. Disable this feature.
43430 alias -g '${1+"$@"}'='"$@"'
43431elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
43432 set -o posix
43433fi
ac1cb8d3 43434DUALCASE=1; export DUALCASE # for MKS sh
a848cd7e
SC
43435
43436# Support unset when possible.
ac1cb8d3 43437if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
a848cd7e
SC
43438 as_unset=unset
43439else
43440 as_unset=false
43441fi
43442
43443
43444# Work around bugs in pre-3.0 UWIN ksh.
43445$as_unset ENV MAIL MAILPATH
43446PS1='$ '
43447PS2='> '
43448PS4='+ '
43449
43450# NLS nuisances.
43451for as_var in \
43452 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
43453 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
43454 LC_TELEPHONE LC_TIME
43455do
ac1cb8d3 43456 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
a848cd7e
SC
43457 eval $as_var=C; export $as_var
43458 else
43459 $as_unset $as_var
43460 fi
43461done
43462
43463# Required to use basename.
43464if expr a : '\(a\)' >/dev/null 2>&1; then
43465 as_expr=expr
43466else
43467 as_expr=false
43468fi
43469
43470if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
43471 as_basename=basename
43472else
43473 as_basename=false
43474fi
43475
43476
43477# Name of the executable.
43478as_me=`$as_basename "$0" ||
43479$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
43480 X"$0" : 'X\(//\)$' \| \
43481 X"$0" : 'X\(/\)$' \| \
43482 . : '\(.\)' 2>/dev/null ||
43483echo X/"$0" |
43484 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
43485 /^X\/\(\/\/\)$/{ s//\1/; q; }
43486 /^X\/\(\/\).*/{ s//\1/; q; }
43487 s/.*/./; q'`
43488
43489
43490# PATH needs CR, and LINENO needs CR and PATH.
43491# Avoid depending upon Character Ranges.
43492as_cr_letters='abcdefghijklmnopqrstuvwxyz'
43493as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
43494as_cr_Letters=$as_cr_letters$as_cr_LETTERS
43495as_cr_digits='0123456789'
43496as_cr_alnum=$as_cr_Letters$as_cr_digits
43497
43498# The user is always right.
43499if test "${PATH_SEPARATOR+set}" != set; then
43500 echo "#! /bin/sh" >conf$$.sh
43501 echo "exit 0" >>conf$$.sh
43502 chmod +x conf$$.sh
43503 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
43504 PATH_SEPARATOR=';'
43505 else
43506 PATH_SEPARATOR=:
43507 fi
43508 rm -f conf$$.sh
43509fi
43510
43511
43512 as_lineno_1=$LINENO
43513 as_lineno_2=$LINENO
43514 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
43515 test "x$as_lineno_1" != "x$as_lineno_2" &&
43516 test "x$as_lineno_3" = "x$as_lineno_2" || {
43517 # Find who we are. Look in the path if we contain no path at all
43518 # relative or not.
43519 case $0 in
43520 *[\\/]* ) as_myself=$0 ;;
43521 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43522for as_dir in $PATH
43523do
43524 IFS=$as_save_IFS
43525 test -z "$as_dir" && as_dir=.
43526 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
43527done
43528
43529 ;;
43530 esac
43531 # We did not find ourselves, most probably we were run as `sh COMMAND'
43532 # in which case we are not to be found in the path.
43533 if test "x$as_myself" = x; then
43534 as_myself=$0
43535 fi
43536 if test ! -f "$as_myself"; then
43537 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
43538echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
43539 { (exit 1); exit 1; }; }
43540 fi
43541 case $CONFIG_SHELL in
43542 '')
43543 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43544for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
43545do
43546 IFS=$as_save_IFS
43547 test -z "$as_dir" && as_dir=.
43548 for as_base in sh bash ksh sh5; do
43549 case $as_dir in
43550 /*)
43551 if ("$as_dir/$as_base" -c '
43552 as_lineno_1=$LINENO
43553 as_lineno_2=$LINENO
43554 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
43555 test "x$as_lineno_1" != "x$as_lineno_2" &&
43556 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
43557 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
43558 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
43559 CONFIG_SHELL=$as_dir/$as_base
43560 export CONFIG_SHELL
43561 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
43562 fi;;
43563 esac
43564 done
43565done
43566;;
43567 esac
43568
43569 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
43570 # uniformly replaced by the line number. The first 'sed' inserts a
43571 # line-number line before each line; the second 'sed' does the real
43572 # work. The second script uses 'N' to pair each line-number line
43573 # with the numbered line, and appends trailing '-' during
43574 # substitution so that $LINENO is not a special case at line end.
43575 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
43576 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
43577 sed '=' <$as_myself |
43578 sed '
43579 N
43580 s,$,-,
43581 : loop
43582 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
43583 t loop
43584 s,-$,,
43585 s,^['$as_cr_digits']*\n,,
43586 ' >$as_me.lineno &&
43587 chmod +x $as_me.lineno ||
43588 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
43589echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
43590 { (exit 1); exit 1; }; }
43591
43592 # Don't try to exec as it changes $[0], causing all sort of problems
43593 # (the dirname of $[0] is not the place where we might find the
43594 # original and so on. Autoconf is especially sensible to this).
43595 . ./$as_me.lineno
43596 # Exit status is that of the last command.
43597 exit
43598}
43599
43600
43601case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
43602 *c*,-n*) ECHO_N= ECHO_C='
43603' ECHO_T=' ' ;;
43604 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
43605 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
43606esac
43607
43608if expr a : '\(a\)' >/dev/null 2>&1; then
43609 as_expr=expr
43610else
43611 as_expr=false
43612fi
43613
43614rm -f conf$$ conf$$.exe conf$$.file
43615echo >conf$$.file
43616if ln -s conf$$.file conf$$ 2>/dev/null; then
43617 # We could just check for DJGPP; but this test a) works b) is more generic
43618 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
43619 if test -f conf$$.exe; then
43620 # Don't use ln at all; we don't have any links
43621 as_ln_s='cp -p'
43622 else
43623 as_ln_s='ln -s'
43624 fi
43625elif ln conf$$.file conf$$ 2>/dev/null; then
43626 as_ln_s=ln
43627else
43628 as_ln_s='cp -p'
43629fi
43630rm -f conf$$ conf$$.exe conf$$.file
43631
43632if mkdir -p . 2>/dev/null; then
43633 as_mkdir_p=:
43634else
ac1cb8d3 43635 test -d ./-p && rmdir ./-p
a848cd7e
SC
43636 as_mkdir_p=false
43637fi
43638
43639as_executable_p="test -f"
43640
43641# Sed expression to map a string onto a valid CPP name.
ac1cb8d3 43642as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
a848cd7e
SC
43643
43644# Sed expression to map a string onto a valid variable name.
ac1cb8d3 43645as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
a848cd7e
SC
43646
43647
43648# IFS
43649# We need space, tab and new line, in precisely that order.
43650as_nl='
43651'
43652IFS=" $as_nl"
43653
43654# CDPATH.
43655$as_unset CDPATH
43656
43657exec 6>&1
43658
43659# Open the log real soon, to keep \$[0] and so on meaningful, and to
43660# report actual input values of CONFIG_FILES etc. instead of their
43661# values after options handling. Logging --version etc. is OK.
43662exec 5>>config.log
43663{
43664 echo
43665 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
43666## Running $as_me. ##
43667_ASBOX
43668} >&5
43669cat >&5 <<_CSEOF
43670
81f90336 43671This file was extended by wxWidgets $as_me 2.5.4, which was
ac1cb8d3 43672generated by GNU Autoconf 2.59. Invocation command line was
a848cd7e
SC
43673
43674 CONFIG_FILES = $CONFIG_FILES
43675 CONFIG_HEADERS = $CONFIG_HEADERS
43676 CONFIG_LINKS = $CONFIG_LINKS
43677 CONFIG_COMMANDS = $CONFIG_COMMANDS
43678 $ $0 $@
43679
43680_CSEOF
43681echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
43682echo >&5
43683_ACEOF
43684
43685# Files that config.status was made for.
43686if test -n "$ac_config_files"; then
43687 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
43688fi
43689
43690if test -n "$ac_config_headers"; then
43691 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
43692fi
43693
43694if test -n "$ac_config_links"; then
43695 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
43696fi
43697
43698if test -n "$ac_config_commands"; then
43699 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
43700fi
43701
43702cat >>$CONFIG_STATUS <<\_ACEOF
43703
43704ac_cs_usage="\
43705\`$as_me' instantiates files from templates according to the
43706current configuration.
43707
43708Usage: $0 [OPTIONS] [FILE]...
43709
43710 -h, --help print this help, then exit
43711 -V, --version print version number, then exit
43712 -q, --quiet do not print progress messages
43713 -d, --debug don't remove temporary files
43714 --recheck update $as_me by reconfiguring in the same conditions
43715 --file=FILE[:TEMPLATE]
ac1cb8d3 43716 instantiate the configuration file FILE
a848cd7e 43717 --header=FILE[:TEMPLATE]
ac1cb8d3 43718 instantiate the configuration header FILE
a848cd7e
SC
43719
43720Configuration files:
43721$config_files
43722
43723Configuration headers:
43724$config_headers
43725
43726Configuration commands:
43727$config_commands
43728
43729Report bugs to <bug-autoconf@gnu.org>."
43730_ACEOF
43731
43732cat >>$CONFIG_STATUS <<_ACEOF
43733ac_cs_version="\\
81f90336 43734wxWidgets config.status 2.5.4
ac1cb8d3 43735configured by $0, generated by GNU Autoconf 2.59,
a848cd7e
SC
43736 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
43737
ac1cb8d3 43738Copyright (C) 2003 Free Software Foundation, Inc.
a848cd7e
SC
43739This config.status script is free software; the Free Software Foundation
43740gives unlimited permission to copy, distribute and modify it."
43741srcdir=$srcdir
43742INSTALL="$INSTALL"
43743_ACEOF
43744
43745cat >>$CONFIG_STATUS <<\_ACEOF
43746# If no file are specified by the user, then we need to provide default
43747# value. By we need to know if files were specified by the user.
43748ac_need_defaults=:
43749while test $# != 0
43750do
43751 case $1 in
43752 --*=*)
43753 ac_option=`expr "x$1" : 'x\([^=]*\)='`
43754 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
43755 ac_shift=:
43756 ;;
43757 -*)
43758 ac_option=$1
43759 ac_optarg=$2
43760 ac_shift=shift
43761 ;;
43762 *) # This is not an option, so the user has probably given explicit
43763 # arguments.
43764 ac_option=$1
43765 ac_need_defaults=false;;
43766 esac
43767
43768 case $ac_option in
43769 # Handling of the options.
43770_ACEOF
43771cat >>$CONFIG_STATUS <<\_ACEOF
43772 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
43773 ac_cs_recheck=: ;;
43774 --version | --vers* | -V )
43775 echo "$ac_cs_version"; exit 0 ;;
43776 --he | --h)
43777 # Conflict between --help and --header
43778 { { echo "$as_me:$LINENO: error: ambiguous option: $1
43779Try \`$0 --help' for more information." >&5
43780echo "$as_me: error: ambiguous option: $1
43781Try \`$0 --help' for more information." >&2;}
43782 { (exit 1); exit 1; }; };;
43783 --help | --hel | -h )
43784 echo "$ac_cs_usage"; exit 0 ;;
43785 --debug | --d* | -d )
43786 debug=: ;;
43787 --file | --fil | --fi | --f )
43788 $ac_shift
43789 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
43790 ac_need_defaults=false;;
43791 --header | --heade | --head | --hea )
43792 $ac_shift
43793 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
43794 ac_need_defaults=false;;
43795 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
43796 | -silent | --silent | --silen | --sile | --sil | --si | --s)
43797 ac_cs_silent=: ;;
43798
43799 # This is an error.
43800 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
43801Try \`$0 --help' for more information." >&5
43802echo "$as_me: error: unrecognized option: $1
43803Try \`$0 --help' for more information." >&2;}
43804 { (exit 1); exit 1; }; } ;;
43805
43806 *) ac_config_targets="$ac_config_targets $1" ;;
43807
43808 esac
43809 shift
43810done
43811
43812ac_configure_extra_args=
43813
43814if $ac_cs_silent; then
43815 exec 6>/dev/null
43816 ac_configure_extra_args="$ac_configure_extra_args --silent"
43817fi
43818
43819_ACEOF
43820cat >>$CONFIG_STATUS <<_ACEOF
43821if \$ac_cs_recheck; then
43822 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
43823 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
43824fi
43825
43826_ACEOF
43827
43828cat >>$CONFIG_STATUS <<_ACEOF
43829#
43830# INIT-COMMANDS section.
43831#
43832
ceec2216
RL
43833 TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
43834 TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
43835 TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
43836 LN_S="${LN_S}"
a848cd7e
SC
43837
43838
43839_ACEOF
43840
43841
43842
43843cat >>$CONFIG_STATUS <<\_ACEOF
43844for ac_config_target in $ac_config_targets
43845do
43846 case "$ac_config_target" in
43847 # Handling of arguments.
ceec2216
RL
43848 "lib/wx/config/${TOOLCHAIN_FULLNAME}" ) CONFIG_FILES="$CONFIG_FILES lib/wx/config/${TOOLCHAIN_FULLNAME}:wx-config.in" ;;
43849 "lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}" ) CONFIG_FILES="$CONFIG_FILES lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}:wx-config-inplace.in" ;;
a848cd7e
SC
43850 "version-script" ) CONFIG_FILES="$CONFIG_FILES version-script" ;;
43851 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
43852 "$mk" ) CONFIG_FILES="$CONFIG_FILES $mk" ;;
ceec2216
RL
43853 "wx-config" ) CONFIG_COMMANDS="$CONFIG_COMMANDS wx-config" ;;
43854 "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
43855 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
43856echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
43857 { (exit 1); exit 1; }; };;
43858 esac
43859done
43860
43861# If the user did not use the arguments to specify the items to instantiate,
43862# then the envvar interface is used. Set only those that are not.
43863# We use the long form for the default assignment because of an extremely
43864# bizarre bug on SunOS 4.1.3.
43865if $ac_need_defaults; then
43866 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
43867 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
43868 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
43869fi
43870
43871# Have a temporary directory for convenience. Make it in the build tree
43872# simply because there is no reason to put it here, and in addition,
43873# creating and moving files from /tmp can sometimes cause problems.
43874# Create a temporary directory, and hook for its removal unless debugging.
43875$debug ||
43876{
43877 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
43878 trap '{ (exit 1); exit 1; }' 1 2 13 15
43879}
43880
43881# Create a (secure) tmp directory for tmp files.
43882
43883{
43884 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
43885 test -n "$tmp" && test -d "$tmp"
43886} ||
43887{
43888 tmp=./confstat$$-$RANDOM
43889 (umask 077 && mkdir $tmp)
43890} ||
43891{
43892 echo "$me: cannot create a temporary directory in ." >&2
43893 { (exit 1); exit 1; }
43894}
43895
43896_ACEOF
43897
43898cat >>$CONFIG_STATUS <<_ACEOF
43899
43900#
43901# CONFIG_FILES section.
43902#
43903
43904# No need to generate the scripts if there are no CONFIG_FILES.
43905# This happens for instance when ./config.status config.h
43906if test -n "\$CONFIG_FILES"; then
43907 # Protect against being on the right side of a sed subst in config.status.
43908 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
43909 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
43910s,@SHELL@,$SHELL,;t t
43911s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
43912s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
43913s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
43914s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
43915s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
43916s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
43917s,@exec_prefix@,$exec_prefix,;t t
43918s,@prefix@,$prefix,;t t
43919s,@program_transform_name@,$program_transform_name,;t t
43920s,@bindir@,$bindir,;t t
43921s,@sbindir@,$sbindir,;t t
43922s,@libexecdir@,$libexecdir,;t t
43923s,@datadir@,$datadir,;t t
43924s,@sysconfdir@,$sysconfdir,;t t
43925s,@sharedstatedir@,$sharedstatedir,;t t
43926s,@localstatedir@,$localstatedir,;t t
43927s,@libdir@,$libdir,;t t
43928s,@includedir@,$includedir,;t t
43929s,@oldincludedir@,$oldincludedir,;t t
43930s,@infodir@,$infodir,;t t
43931s,@mandir@,$mandir,;t t
43932s,@build_alias@,$build_alias,;t t
43933s,@host_alias@,$host_alias,;t t
43934s,@target_alias@,$target_alias,;t t
43935s,@DEFS@,$DEFS,;t t
43936s,@ECHO_C@,$ECHO_C,;t t
43937s,@ECHO_N@,$ECHO_N,;t t
43938s,@ECHO_T@,$ECHO_T,;t t
43939s,@LIBS@,$LIBS,;t t
43940s,@build@,$build,;t t
43941s,@build_cpu@,$build_cpu,;t t
43942s,@build_vendor@,$build_vendor,;t t
43943s,@build_os@,$build_os,;t t
43944s,@host@,$host,;t t
43945s,@host_cpu@,$host_cpu,;t t
43946s,@host_vendor@,$host_vendor,;t t
43947s,@host_os@,$host_os,;t t
43948s,@target@,$target,;t t
43949s,@target_cpu@,$target_cpu,;t t
43950s,@target_vendor@,$target_vendor,;t t
43951s,@target_os@,$target_os,;t t
43952s,@CC@,$CC,;t t
43953s,@CFLAGS@,$CFLAGS,;t t
43954s,@LDFLAGS@,$LDFLAGS,;t t
43955s,@CPPFLAGS@,$CPPFLAGS,;t t
43956s,@ac_ct_CC@,$ac_ct_CC,;t t
43957s,@EXEEXT@,$EXEEXT,;t t
43958s,@OBJEXT@,$OBJEXT,;t t
43959s,@CPP@,$CPP,;t t
43960s,@EGREP@,$EGREP,;t t
43961s,@CXX@,$CXX,;t t
43962s,@CXXFLAGS@,$CXXFLAGS,;t t
43963s,@ac_ct_CXX@,$ac_ct_CXX,;t t
43964s,@RANLIB@,$RANLIB,;t t
43965s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
43966s,@AR@,$AR,;t t
43967s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
43968s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
43969s,@INSTALL_DATA@,$INSTALL_DATA,;t t
43970s,@STRIP@,$STRIP,;t t
43971s,@IF_GNU_MAKE@,$IF_GNU_MAKE,;t t
43972s,@LN_S@,$LN_S,;t t
43973s,@CXXCPP@,$CXXCPP,;t t
43974s,@subdirs@,$subdirs,;t t
43975s,@PKG_CONFIG@,$PKG_CONFIG,;t t
43976s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
43977s,@GTK_LIBS@,$GTK_LIBS,;t t
43978s,@GTK_CONFIG@,$GTK_CONFIG,;t t
a848cd7e
SC
43979s,@X_CFLAGS@,$X_CFLAGS,;t t
43980s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
43981s,@X_LIBS@,$X_LIBS,;t t
43982s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
43983s,@PANGOX_CFLAGS@,$PANGOX_CFLAGS,;t t
43984s,@PANGOX_LIBS@,$PANGOX_LIBS,;t t
d1c38808
VZ
43985s,@PANGOFT2_CFLAGS@,$PANGOFT2_CFLAGS,;t t
43986s,@PANGOFT2_LIBS@,$PANGOFT2_LIBS,;t t
a848cd7e
SC
43987s,@PANGOXFT_CFLAGS@,$PANGOXFT_CFLAGS,;t t
43988s,@PANGOXFT_LIBS@,$PANGOXFT_LIBS,;t t
43989s,@RESCOMP@,$RESCOMP,;t t
43990s,@DEREZ@,$DEREZ,;t t
43991s,@SETFILE@,$SETFILE,;t t
43992s,@LIBICONV@,$LIBICONV,;t t
43993s,@EXTRALIBS_ESD@,$EXTRALIBS_ESD,;t t
43994s,@SDL_CONFIG@,$SDL_CONFIG,;t t
43995s,@SDL_CFLAGS@,$SDL_CFLAGS,;t t
43996s,@SDL_LIBS@,$SDL_LIBS,;t t
d1c38808
VZ
43997s,@LIBGNOMEPRINTUI_CFLAGS@,$LIBGNOMEPRINTUI_CFLAGS,;t t
43998s,@LIBGNOMEPRINTUI_LIBS@,$LIBGNOMEPRINTUI_LIBS,;t t
dae87f93
RN
43999s,@GSTREAMER_CFLAGS@,$GSTREAMER_CFLAGS,;t t
44000s,@GSTREAMER_LIBS@,$GSTREAMER_LIBS,;t t
44001s,@GST_INSPECT@,$GST_INSPECT,;t t
a848cd7e
SC
44002s,@CORE_BASE_LIBS@,$CORE_BASE_LIBS,;t t
44003s,@CORE_GUI_LIBS@,$CORE_GUI_LIBS,;t t
44004s,@wxUSE_ZLIB@,$wxUSE_ZLIB,;t t
44005s,@wxUSE_REGEX@,$wxUSE_REGEX,;t t
44006s,@wxUSE_EXPAT@,$wxUSE_EXPAT,;t t
44007s,@wxUSE_ODBC@,$wxUSE_ODBC,;t t
44008s,@wxUSE_LIBJPEG@,$wxUSE_LIBJPEG,;t t
44009s,@wxUSE_LIBPNG@,$wxUSE_LIBPNG,;t t
44010s,@wxUSE_LIBTIFF@,$wxUSE_LIBTIFF,;t t
44011s,@VENDOR@,$VENDOR,;t t
44012s,@OFFICIAL_BUILD@,$OFFICIAL_BUILD,;t t
ceec2216
RL
44013s,@WX_FLAVOUR@,$WX_FLAVOUR,;t t
44014s,@WX_LIB_FLAVOUR@,$WX_LIB_FLAVOUR,;t t
a848cd7e
SC
44015s,@WXUNIV@,$WXUNIV,;t t
44016s,@MONOLITHIC@,$MONOLITHIC,;t t
44017s,@USE_PLUGINS@,$USE_PLUGINS,;t t
44018s,@EXTRALIBS@,$EXTRALIBS,;t t
44019s,@EXTRALIBS_XML@,$EXTRALIBS_XML,;t t
44020s,@EXTRALIBS_HTML@,$EXTRALIBS_HTML,;t t
44021s,@EXTRALIBS_ODBC@,$EXTRALIBS_ODBC,;t t
44022s,@EXTRALIBS_GUI@,$EXTRALIBS_GUI,;t t
44023s,@EXTRALIBS_OPENGL@,$EXTRALIBS_OPENGL,;t t
44024s,@EXTRALIBS_SDL@,$EXTRALIBS_SDL,;t t
44025s,@WITH_PLUGIN_SDL@,$WITH_PLUGIN_SDL,;t t
d1c38808 44026s,@EXTRALIBS_GNOMEPRINT@,$EXTRALIBS_GNOMEPRINT,;t t
a848cd7e
SC
44027s,@UNICODE@,$UNICODE,;t t
44028s,@BUILD@,$BUILD,;t t
44029s,@DEBUG_INFO@,$DEBUG_INFO,;t t
44030s,@DEBUG_FLAG@,$DEBUG_FLAG,;t t
a848cd7e
SC
44031s,@TOOLKIT_LOWERCASE@,$TOOLKIT_LOWERCASE,;t t
44032s,@TOOLKIT_VERSION@,$TOOLKIT_VERSION,;t t
44033s,@SAMPLES_RPATH_FLAG@,$SAMPLES_RPATH_FLAG,;t t
44034s,@SAMPLES_RPATH_POSTLINK@,$SAMPLES_RPATH_POSTLINK,;t t
44035s,@HOST_SUFFIX@,$HOST_SUFFIX,;t t
44036s,@CPPUNIT_CFLAGS@,$CPPUNIT_CFLAGS,;t t
44037s,@CPPUNIT_LIBS@,$CPPUNIT_LIBS,;t t
44038s,@SET_MAKE@,$SET_MAKE,;t t
44039s,@MAKE_SET@,$MAKE_SET,;t t
44040s,@ac_ct_AR@,$ac_ct_AR,;t t
44041s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
44042s,@NM@,$NM,;t t
44043s,@ac_ct_NM@,$ac_ct_NM,;t t
44044s,@INSTALL_DIR@,$INSTALL_DIR,;t t
44045s,@LDFLAGS_GUI@,$LDFLAGS_GUI,;t t
44046s,@PLATFORM_UNIX@,$PLATFORM_UNIX,;t t
44047s,@PLATFORM_WIN32@,$PLATFORM_WIN32,;t t
44048s,@PLATFORM_MSDOS@,$PLATFORM_MSDOS,;t t
44049s,@PLATFORM_MAC@,$PLATFORM_MAC,;t t
1e9e8aba 44050s,@PLATFORM_MACOS@,$PLATFORM_MACOS,;t t
a848cd7e
SC
44051s,@PLATFORM_MACOSX@,$PLATFORM_MACOSX,;t t
44052s,@PLATFORM_OS2@,$PLATFORM_OS2,;t t
1e9e8aba 44053s,@PLATFORM_BEOS@,$PLATFORM_BEOS,;t t
a848cd7e
SC
44054s,@SO_SUFFIX@,$SO_SUFFIX,;t t
44055s,@SO_SUFFIX_MODULE@,$SO_SUFFIX_MODULE,;t t
44056s,@DLLIMP_SUFFIX@,$DLLIMP_SUFFIX,;t t
44057s,@LIBPREFIX@,$LIBPREFIX,;t t
44058s,@LIBEXT@,$LIBEXT,;t t
44059s,@DLLPREFIX@,$DLLPREFIX,;t t
44060s,@DLLPREFIX_MODULE@,$DLLPREFIX_MODULE,;t t
44061s,@AIX_CXX_LD@,$AIX_CXX_LD,;t t
44062s,@SHARED_LD_CC@,$SHARED_LD_CC,;t t
44063s,@SHARED_LD_CXX@,$SHARED_LD_CXX,;t t
44064s,@SHARED_LD_MODULE_CC@,$SHARED_LD_MODULE_CC,;t t
44065s,@SHARED_LD_MODULE_CXX@,$SHARED_LD_MODULE_CXX,;t t
44066s,@PIC_FLAG@,$PIC_FLAG,;t t
44067s,@USE_SOVERSION@,$USE_SOVERSION,;t t
44068s,@USE_SOVERLINUX@,$USE_SOVERLINUX,;t t
44069s,@USE_SOVERSOLARIS@,$USE_SOVERSOLARIS,;t t
44070s,@USE_MACVERSION@,$USE_MACVERSION,;t t
44071s,@USE_SOSYMLINKS@,$USE_SOSYMLINKS,;t t
44072s,@SONAME_FLAG@,$SONAME_FLAG,;t t
44073s,@DEPS_TRACKING@,$DEPS_TRACKING,;t t
44074s,@GCC_PCH@,$GCC_PCH,;t t
44075s,@COND_BUILD_DEBUG@,$COND_BUILD_DEBUG,;t t
44076s,@COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT@,$COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT,;t t
44077s,@COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT@,$COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT,;t t
44078s,@COND_BUILD_DEBUG_UNICODE_0@,$COND_BUILD_DEBUG_UNICODE_0,;t t
44079s,@COND_BUILD_DEBUG_UNICODE_1@,$COND_BUILD_DEBUG_UNICODE_1,;t t
44080s,@COND_BUILD_RELEASE@,$COND_BUILD_RELEASE,;t t
44081s,@COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT@,$COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT,;t t
44082s,@COND_BUILD_RELEASE_UNICODE_0@,$COND_BUILD_RELEASE_UNICODE_0,;t t
44083s,@COND_BUILD_RELEASE_UNICODE_1@,$COND_BUILD_RELEASE_UNICODE_1,;t t
44084s,@COND_DEBUG_FLAG_1@,$COND_DEBUG_FLAG_1,;t t
44085s,@COND_DEBUG_INFO_0@,$COND_DEBUG_INFO_0,;t t
44086s,@COND_DEBUG_INFO_1@,$COND_DEBUG_INFO_1,;t t
44087s,@COND_DEPS_TRACKING_0@,$COND_DEPS_TRACKING_0,;t t
44088s,@COND_DEPS_TRACKING_1@,$COND_DEPS_TRACKING_1,;t t
44089s,@COND_GCC_PCH_1@,$COND_GCC_PCH_1,;t t
44090s,@COND_MONOLITHIC_0@,$COND_MONOLITHIC_0,;t t
44091s,@COND_MONOLITHIC_0_SHARED_0@,$COND_MONOLITHIC_0_SHARED_0,;t t
44092s,@COND_MONOLITHIC_0_SHARED_0_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1,;t t
90970d69 44093s,@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 44094s,@COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1,;t t
a848cd7e 44095s,@COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1,;t t
ceec2216 44096s,@COND_MONOLITHIC_0_SHARED_0_USE_XRC_1@,$COND_MONOLITHIC_0_SHARED_0_USE_XRC_1,;t t
a848cd7e
SC
44097s,@COND_MONOLITHIC_0_SHARED_1@,$COND_MONOLITHIC_0_SHARED_1,;t t
44098s,@COND_MONOLITHIC_0_SHARED_1_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1,;t t
90970d69 44099s,@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 44100s,@COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1,;t t
a848cd7e 44101s,@COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1,;t t
ceec2216 44102s,@COND_MONOLITHIC_0_SHARED_1_USE_XRC_1@,$COND_MONOLITHIC_0_SHARED_1_USE_XRC_1,;t t
a848cd7e
SC
44103s,@COND_MONOLITHIC_0_USE_ODBC_1@,$COND_MONOLITHIC_0_USE_ODBC_1,;t t
44104s,@COND_MONOLITHIC_1@,$COND_MONOLITHIC_1,;t t
44105s,@COND_MONOLITHIC_1_SHARED_0@,$COND_MONOLITHIC_1_SHARED_0,;t t
44106s,@COND_MONOLITHIC_1_SHARED_1@,$COND_MONOLITHIC_1_SHARED_1,;t t
44107s,@COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1,;t t
44108s,@COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1,;t t
44109s,@COND_PLATFORM_MACOSX_0_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_0_USE_SOVERSION_1,;t t
44110s,@COND_PLATFORM_MACOSX_1@,$COND_PLATFORM_MACOSX_1,;t t
a30f955f 44111s,@COND_PLATFORM_MACOSX_1_TOOLKIT_@,$COND_PLATFORM_MACOSX_1_TOOLKIT_,;t t
a848cd7e
SC
44112s,@COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA@,$COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA,;t t
44113s,@COND_PLATFORM_MACOSX_1_TOOLKIT_GTK@,$COND_PLATFORM_MACOSX_1_TOOLKIT_GTK,;t t
44114s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MAC@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MAC,;t t
fc480dc1 44115s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1,;t t
1e9e8aba 44116s,@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
44117s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF,;t t
44118s,@COND_PLATFORM_MACOSX_1_TOOLKIT_X11@,$COND_PLATFORM_MACOSX_1_TOOLKIT_X11,;t t
a848cd7e
SC
44119s,@COND_PLATFORM_MACOSX_1_USE_GUI_1@,$COND_PLATFORM_MACOSX_1_USE_GUI_1,;t t
44120s,@COND_PLATFORM_MACOSX_1_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_1_USE_SOVERSION_1,;t t
b48a2016 44121s,@COND_PLATFORM_MACOS_1@,$COND_PLATFORM_MACOS_1,;t t
a848cd7e
SC
44122s,@COND_PLATFORM_MAC_1@,$COND_PLATFORM_MAC_1,;t t
44123s,@COND_PLATFORM_OS2_1@,$COND_PLATFORM_OS2_1,;t t
44124s,@COND_PLATFORM_UNIX_0@,$COND_PLATFORM_UNIX_0,;t t
44125s,@COND_PLATFORM_UNIX_1@,$COND_PLATFORM_UNIX_1,;t t
44126s,@COND_PLATFORM_UNIX_1_USE_GUI_1@,$COND_PLATFORM_UNIX_1_USE_GUI_1,;t t
44127s,@COND_PLATFORM_UNIX_1_USE_PLUGINS_0@,$COND_PLATFORM_UNIX_1_USE_PLUGINS_0,;t t
44128s,@COND_PLATFORM_WIN32_0@,$COND_PLATFORM_WIN32_0,;t t
44129s,@COND_PLATFORM_WIN32_1@,$COND_PLATFORM_WIN32_1,;t t
44130s,@COND_SHARED_0@,$COND_SHARED_0,;t t
ceec2216
RL
44131s,@COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0,;t t
44132s,@COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0,;t t
44133s,@COND_SHARED_0_TOOLKIT_PM_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_PM_WXUNIV_0,;t t
a848cd7e
SC
44134s,@COND_SHARED_0_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_0_USE_GUI_1_USE_OPENGL_1,;t t
44135s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN,;t t
44136s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN,;t t
44137s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN,;t t
44138s,@COND_SHARED_0_WXUSE_EXPAT_BUILTIN@,$COND_SHARED_0_WXUSE_EXPAT_BUILTIN,;t t
44139s,@COND_SHARED_0_WXUSE_ODBC_BUILTIN@,$COND_SHARED_0_WXUSE_ODBC_BUILTIN,;t t
44140s,@COND_SHARED_0_WXUSE_REGEX_BUILTIN@,$COND_SHARED_0_WXUSE_REGEX_BUILTIN,;t t
44141s,@COND_SHARED_0_WXUSE_ZLIB_BUILTIN@,$COND_SHARED_0_WXUSE_ZLIB_BUILTIN,;t t
44142s,@COND_SHARED_1@,$COND_SHARED_1,;t t
44143s,@COND_SHARED_1_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_1_USE_GUI_1_USE_OPENGL_1,;t t
a30f955f 44144s,@COND_TOOLKIT_@,$COND_TOOLKIT_,;t t
a848cd7e 44145s,@COND_TOOLKIT_COCOA@,$COND_TOOLKIT_COCOA,;t t
a49baeab 44146s,@COND_TOOLKIT_COCOA_USE_GUI_1@,$COND_TOOLKIT_COCOA_USE_GUI_1,;t t
a848cd7e
SC
44147s,@COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0,;t t
44148s,@COND_TOOLKIT_GTK@,$COND_TOOLKIT_GTK,;t t
44149s,@COND_TOOLKIT_GTK_USE_GUI_1@,$COND_TOOLKIT_GTK_USE_GUI_1,;t t
44150s,@COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0,;t t
44151s,@COND_TOOLKIT_MAC@,$COND_TOOLKIT_MAC,;t t
44152s,@COND_TOOLKIT_MAC_USE_GUI_1@,$COND_TOOLKIT_MAC_USE_GUI_1,;t t
44153s,@COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0,;t t
44154s,@COND_TOOLKIT_MGL@,$COND_TOOLKIT_MGL,;t t
44155s,@COND_TOOLKIT_MGL_USE_GUI_1@,$COND_TOOLKIT_MGL_USE_GUI_1,;t t
44156s,@COND_TOOLKIT_MOTIF@,$COND_TOOLKIT_MOTIF,;t t
44157s,@COND_TOOLKIT_MOTIF_USE_GUI_1@,$COND_TOOLKIT_MOTIF_USE_GUI_1,;t t
44158s,@COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0,;t t
44159s,@COND_TOOLKIT_MSW@,$COND_TOOLKIT_MSW,;t t
44160s,@COND_TOOLKIT_MSW_USE_GUI_1@,$COND_TOOLKIT_MSW_USE_GUI_1,;t t
44161s,@COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0,;t t
44162s,@COND_TOOLKIT_PM@,$COND_TOOLKIT_PM,;t t
44163s,@COND_TOOLKIT_PM_USE_GUI_1@,$COND_TOOLKIT_PM_USE_GUI_1,;t t
44164s,@COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0,;t t
3fd9c298
DE
44165s,@COND_TOOLKIT_WINCE@,$COND_TOOLKIT_WINCE,;t t
44166s,@COND_TOOLKIT_WINCE_USE_GUI_1@,$COND_TOOLKIT_WINCE_USE_GUI_1,;t t
44167s,@COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0,;t t
a848cd7e
SC
44168s,@COND_TOOLKIT_X11@,$COND_TOOLKIT_X11,;t t
44169s,@COND_TOOLKIT_X11_USE_GUI_1@,$COND_TOOLKIT_X11_USE_GUI_1,;t t
44170s,@COND_UNICODE_1@,$COND_UNICODE_1,;t t
44171s,@COND_USE_EXCEPTIONS_0@,$COND_USE_EXCEPTIONS_0,;t t
44172s,@COND_USE_EXCEPTIONS_1@,$COND_USE_EXCEPTIONS_1,;t t
44173s,@COND_USE_GUI_0@,$COND_USE_GUI_0,;t t
44174s,@COND_USE_GUI_1@,$COND_USE_GUI_1,;t t
44175s,@COND_USE_GUI_1_WXUNIV_0@,$COND_USE_GUI_1_WXUNIV_0,;t t
44176s,@COND_USE_GUI_1_WXUNIV_1@,$COND_USE_GUI_1_WXUNIV_1,;t t
44177s,@COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN,;t t
44178s,@COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN,;t t
44179s,@COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN,;t t
ceec2216 44180s,@COND_USE_ODBC_1@,$COND_USE_ODBC_1,;t t
ffa0583f 44181s,@COND_USE_OPENGL_1@,$COND_USE_OPENGL_1,;t t
a848cd7e 44182s,@COND_USE_PLUGINS_0@,$COND_USE_PLUGINS_0,;t t
0b78747f
MW
44183s,@COND_USE_RTTI_0@,$COND_USE_RTTI_0,;t t
44184s,@COND_USE_RTTI_1@,$COND_USE_RTTI_1,;t t
a848cd7e
SC
44185s,@COND_USE_SOSYMLINKS_1@,$COND_USE_SOSYMLINKS_1,;t t
44186s,@COND_USE_SOVERLINUX_1@,$COND_USE_SOVERLINUX_1,;t t
44187s,@COND_USE_SOVERSION_0@,$COND_USE_SOVERSION_0,;t t
44188s,@COND_USE_SOVERSOLARIS_1@,$COND_USE_SOVERSOLARIS_1,;t t
0b78747f
MW
44189s,@COND_USE_THREADS_0@,$COND_USE_THREADS_0,;t t
44190s,@COND_USE_THREADS_1@,$COND_USE_THREADS_1,;t t
a13a7f89 44191s,@COND_USE_XRC_1@,$COND_USE_XRC_1,;t t
a848cd7e 44192s,@COND_WITH_PLUGIN_SDL_1@,$COND_WITH_PLUGIN_SDL_1,;t t
1e6eb025 44193s,@COND_WXUNIV_0@,$COND_WXUNIV_0,;t t
a848cd7e
SC
44194s,@COND_WXUNIV_1@,$COND_WXUNIV_1,;t t
44195s,@COND_WXUSE_EXPAT_BUILTIN@,$COND_WXUSE_EXPAT_BUILTIN,;t t
44196s,@COND_WXUSE_LIBJPEG_BUILTIN@,$COND_WXUSE_LIBJPEG_BUILTIN,;t t
44197s,@COND_WXUSE_LIBPNG_BUILTIN@,$COND_WXUSE_LIBPNG_BUILTIN,;t t
44198s,@COND_WXUSE_LIBTIFF_BUILTIN@,$COND_WXUSE_LIBTIFF_BUILTIN,;t t
44199s,@COND_WXUSE_ODBC_BUILTIN@,$COND_WXUSE_ODBC_BUILTIN,;t t
44200s,@COND_WXUSE_REGEX_BUILTIN@,$COND_WXUSE_REGEX_BUILTIN,;t t
44201s,@COND_WXUSE_ZLIB_BUILTIN@,$COND_WXUSE_ZLIB_BUILTIN,;t t
ceec2216 44202s,@SHARED@,$SHARED,;t t
a848cd7e
SC
44203s,@WX_LIBRARY_BASENAME_NOGUI@,$WX_LIBRARY_BASENAME_NOGUI,;t t
44204s,@WX_LIBRARY_BASENAME_GUI@,$WX_LIBRARY_BASENAME_GUI,;t t
a848cd7e
SC
44205s,@WXDEBUG_DEFINE@,$WXDEBUG_DEFINE,;t t
44206s,@USE_GUI@,$USE_GUI,;t t
44207s,@AFMINSTALL@,$AFMINSTALL,;t t
44208s,@WIN32INSTALL@,$WIN32INSTALL,;t t
44209s,@TOOLKIT@,$TOOLKIT,;t t
44210s,@TOOLKIT_DIR@,$TOOLKIT_DIR,;t t
a848cd7e 44211s,@TOOLCHAIN_NAME@,$TOOLCHAIN_NAME,;t t
ceec2216 44212s,@TOOLCHAIN_FULLNAME@,$TOOLCHAIN_FULLNAME,;t t
a848cd7e
SC
44213s,@TOOLCHAIN_DEFS@,$TOOLCHAIN_DEFS,;t t
44214s,@TOOLCHAIN_DLL_DEFS@,$TOOLCHAIN_DLL_DEFS,;t t
a848cd7e 44215s,@cross_compiling@,$cross_compiling,;t t
ceec2216
RL
44216s,@WIDGET_SET@,$WIDGET_SET,;t t
44217s,@WX_RELEASE@,$WX_RELEASE,;t t
44218s,@WX_VERSION@,$WX_VERSION,;t t
44219s,@WX_SUBVERSION@,$WX_SUBVERSION,;t t
44220s,@WX_CHARTYPE@,$WX_CHARTYPE,;t t
44221s,@WX_DEBUGTYPE@,$WX_DEBUGTYPE,;t t
a848cd7e 44222s,@WXCONFIG_EXTRALIBS@,$WXCONFIG_EXTRALIBS,;t t
a848cd7e
SC
44223s,@WXCONFIG_INCLUDE@,$WXCONFIG_INCLUDE,;t t
44224s,@WXCONFIG_RPATH@,$WXCONFIG_RPATH,;t t
44225s,@WXCONFIG_LDFLAGS_GUI@,$WXCONFIG_LDFLAGS_GUI,;t t
44226s,@WX_LARGEFILE_FLAGS@,$WX_LARGEFILE_FLAGS,;t t
74b84332 44227s,@GCC_PRAGMA_FLAGS@,$GCC_PRAGMA_FLAGS,;t t
a848cd7e
SC
44228s,@CODE_GEN_FLAGS@,$CODE_GEN_FLAGS,;t t
44229s,@CODE_GEN_FLAGS_CXX@,$CODE_GEN_FLAGS_CXX,;t t
ceec2216 44230s,@EXE_LINKER@,$EXE_LINKER,;t t
a848cd7e 44231s,@GUIDIST@,$GUIDIST,;t t
a848cd7e
SC
44232s,@DISTDIR@,$DISTDIR,;t t
44233s,@SAMPLES_SUBDIRS@,$SAMPLES_SUBDIRS,;t t
44234s,@LDFLAGS_GL@,$LDFLAGS_GL,;t t
a848cd7e
SC
44235s,@OPENGL_LIBS@,$OPENGL_LIBS,;t t
44236s,@DMALLOC_LIBS@,$DMALLOC_LIBS,;t t
44237s,@WX_VERSION_TAG@,$WX_VERSION_TAG,;t t
44238s,@RESFLAGS@,$RESFLAGS,;t t
44239s,@RESPROGRAMOBJ@,$RESPROGRAMOBJ,;t t
44240s,@WX_RESOURCES_MACOSX_ASCII@,$WX_RESOURCES_MACOSX_ASCII,;t t
44241s,@WX_RESOURCES_MACOSX_DATA@,$WX_RESOURCES_MACOSX_DATA,;t t
44242s,@LIBWXMACRES@,$LIBWXMACRES,;t t
44243s,@MACRESCOMP@,$MACRESCOMP,;t t
44244s,@MACSETFILE@,$MACSETFILE,;t t
44245s,@MACRESWXCONFIG@,$MACRESWXCONFIG,;t t
44246s,@GCC@,$GCC,;t t
a848cd7e 44247s,@DLLTOOL@,$DLLTOOL,;t t
a848cd7e
SC
44248s,@CPPUNIT_CONFIG@,$CPPUNIT_CONFIG,;t t
44249s,@LIBOBJS@,$LIBOBJS,;t t
44250s,@LTLIBOBJS@,$LTLIBOBJS,;t t
44251CEOF
44252
44253_ACEOF
44254
44255 cat >>$CONFIG_STATUS <<\_ACEOF
44256 # Split the substitutions into bite-sized pieces for seds with
44257 # small command number limits, like on Digital OSF/1 and HP-UX.
44258 ac_max_sed_lines=48
44259 ac_sed_frag=1 # Number of current file.
44260 ac_beg=1 # First line for current file.
44261 ac_end=$ac_max_sed_lines # Line after last line for current file.
44262 ac_more_lines=:
44263 ac_sed_cmds=
44264 while $ac_more_lines; do
44265 if test $ac_beg -gt 1; then
44266 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
44267 else
44268 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
44269 fi
44270 if test ! -s $tmp/subs.frag; then
44271 ac_more_lines=false
44272 else
44273 # The purpose of the label and of the branching condition is to
44274 # speed up the sed processing (if there are no `@' at all, there
44275 # is no need to browse any of the substitutions).
44276 # These are the two extra sed commands mentioned above.
44277 (echo ':t
44278 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
44279 if test -z "$ac_sed_cmds"; then
ac1cb8d3 44280 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
a848cd7e 44281 else
ac1cb8d3 44282 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
a848cd7e
SC
44283 fi
44284 ac_sed_frag=`expr $ac_sed_frag + 1`
44285 ac_beg=$ac_end
44286 ac_end=`expr $ac_end + $ac_max_sed_lines`
44287 fi
44288 done
44289 if test -z "$ac_sed_cmds"; then
44290 ac_sed_cmds=cat
44291 fi
44292fi # test -n "$CONFIG_FILES"
44293
44294_ACEOF
44295cat >>$CONFIG_STATUS <<\_ACEOF
44296for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
44297 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
44298 case $ac_file in
44299 - | *:- | *:-:* ) # input from stdin
ac1cb8d3
VS
44300 cat >$tmp/stdin
44301 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
44302 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e 44303 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
ac1cb8d3 44304 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e
SC
44305 * ) ac_file_in=$ac_file.in ;;
44306 esac
44307
44308 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
44309 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
44310$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
44311 X"$ac_file" : 'X\(//\)[^/]' \| \
44312 X"$ac_file" : 'X\(//\)$' \| \
44313 X"$ac_file" : 'X\(/\)' \| \
44314 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
44315echo X"$ac_file" |
44316 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
44317 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
44318 /^X\(\/\/\)$/{ s//\1/; q; }
44319 /^X\(\/\).*/{ s//\1/; q; }
44320 s/.*/./; q'`
44321 { if $as_mkdir_p; then
44322 mkdir -p "$ac_dir"
44323 else
44324 as_dir="$ac_dir"
44325 as_dirs=
44326 while test ! -d "$as_dir"; do
44327 as_dirs="$as_dir $as_dirs"
44328 as_dir=`(dirname "$as_dir") 2>/dev/null ||
44329$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
44330 X"$as_dir" : 'X\(//\)[^/]' \| \
44331 X"$as_dir" : 'X\(//\)$' \| \
44332 X"$as_dir" : 'X\(/\)' \| \
44333 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
44334echo X"$as_dir" |
44335 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
44336 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
44337 /^X\(\/\/\)$/{ s//\1/; q; }
44338 /^X\(\/\).*/{ s//\1/; q; }
44339 s/.*/./; q'`
44340 done
44341 test ! -n "$as_dirs" || mkdir $as_dirs
44342 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
44343echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
44344 { (exit 1); exit 1; }; }; }
44345
44346 ac_builddir=.
44347
44348if test "$ac_dir" != .; then
44349 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
44350 # A "../" for each directory in $ac_dir_suffix.
44351 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
44352else
44353 ac_dir_suffix= ac_top_builddir=
44354fi
44355
44356case $srcdir in
44357 .) # No --srcdir option. We are building in place.
44358 ac_srcdir=.
44359 if test -z "$ac_top_builddir"; then
44360 ac_top_srcdir=.
44361 else
44362 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
44363 fi ;;
44364 [\\/]* | ?:[\\/]* ) # Absolute path.
44365 ac_srcdir=$srcdir$ac_dir_suffix;
44366 ac_top_srcdir=$srcdir ;;
44367 *) # Relative path.
44368 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
44369 ac_top_srcdir=$ac_top_builddir$srcdir ;;
44370esac
ac1cb8d3
VS
44371
44372# Do not use `cd foo && pwd` to compute absolute paths, because
44373# the directories may not exist.
44374case `pwd` in
44375.) ac_abs_builddir="$ac_dir";;
44376*)
44377 case "$ac_dir" in
44378 .) ac_abs_builddir=`pwd`;;
44379 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
44380 *) ac_abs_builddir=`pwd`/"$ac_dir";;
44381 esac;;
44382esac
44383case $ac_abs_builddir in
44384.) ac_abs_top_builddir=${ac_top_builddir}.;;
44385*)
44386 case ${ac_top_builddir}. in
44387 .) ac_abs_top_builddir=$ac_abs_builddir;;
44388 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
44389 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
44390 esac;;
44391esac
44392case $ac_abs_builddir in
44393.) ac_abs_srcdir=$ac_srcdir;;
44394*)
44395 case $ac_srcdir in
44396 .) ac_abs_srcdir=$ac_abs_builddir;;
44397 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
44398 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
44399 esac;;
44400esac
44401case $ac_abs_builddir in
44402.) ac_abs_top_srcdir=$ac_top_srcdir;;
44403*)
44404 case $ac_top_srcdir in
44405 .) ac_abs_top_srcdir=$ac_abs_builddir;;
44406 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
44407 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
44408 esac;;
44409esac
a848cd7e
SC
44410
44411
44412 case $INSTALL in
44413 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
44414 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
44415 esac
44416
a848cd7e
SC
44417 # Let's still pretend it is `configure' which instantiates (i.e., don't
44418 # use $as_me), people would be surprised to read:
44419 # /* config.h. Generated by config.status. */
44420 if test x"$ac_file" = x-; then
44421 configure_input=
44422 else
44423 configure_input="$ac_file. "
44424 fi
44425 configure_input=$configure_input"Generated from `echo $ac_file_in |
ac1cb8d3 44426 sed 's,.*/,,'` by configure."
a848cd7e
SC
44427
44428 # First look for the input files in the build tree, otherwise in the
44429 # src tree.
44430 ac_file_inputs=`IFS=:
44431 for f in $ac_file_in; do
44432 case $f in
44433 -) echo $tmp/stdin ;;
44434 [\\/$]*)
ac1cb8d3
VS
44435 # Absolute (can't be DOS-style, as IFS=:)
44436 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
44437echo "$as_me: error: cannot find input file: $f" >&2;}
44438 { (exit 1); exit 1; }; }
ac1cb8d3 44439 echo "$f";;
a848cd7e 44440 *) # Relative
ac1cb8d3
VS
44441 if test -f "$f"; then
44442 # Build tree
44443 echo "$f"
44444 elif test -f "$srcdir/$f"; then
44445 # Source tree
44446 echo "$srcdir/$f"
44447 else
44448 # /dev/null tree
44449 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
44450echo "$as_me: error: cannot find input file: $f" >&2;}
44451 { (exit 1); exit 1; }; }
ac1cb8d3 44452 fi;;
a848cd7e
SC
44453 esac
44454 done` || { (exit 1); exit 1; }
07158944
VZ
44455
44456 if test x"$ac_file" != x-; then
44457 { echo "$as_me:$LINENO: creating $ac_file" >&5
44458echo "$as_me: creating $ac_file" >&6;}
44459 rm -f "$ac_file"
44460 fi
a848cd7e
SC
44461_ACEOF
44462cat >>$CONFIG_STATUS <<_ACEOF
44463 sed "$ac_vpsub
44464$extrasub
44465_ACEOF
44466cat >>$CONFIG_STATUS <<\_ACEOF
44467:t
44468/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
44469s,@configure_input@,$configure_input,;t t
44470s,@srcdir@,$ac_srcdir,;t t
44471s,@abs_srcdir@,$ac_abs_srcdir,;t t
44472s,@top_srcdir@,$ac_top_srcdir,;t t
44473s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
44474s,@builddir@,$ac_builddir,;t t
44475s,@abs_builddir@,$ac_abs_builddir,;t t
44476s,@top_builddir@,$ac_top_builddir,;t t
44477s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
44478s,@INSTALL@,$ac_INSTALL,;t t
44479" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
44480 rm -f $tmp/stdin
44481 if test x"$ac_file" != x-; then
44482 mv $tmp/out $ac_file
44483 else
44484 cat $tmp/out
44485 rm -f $tmp/out
44486 fi
44487
ceec2216
RL
44488 # Run the commands associated with the file.
44489 case $ac_file in
44490 lib/wx/config/${TOOLCHAIN_FULLNAME} ) chmod +x lib/wx/config/${TOOLCHAIN_FULLNAME} ;;
44491 lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} ) chmod +x lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} ;;
44492 esac
a848cd7e
SC
44493done
44494_ACEOF
44495cat >>$CONFIG_STATUS <<\_ACEOF
44496
44497#
44498# CONFIG_HEADER section.
44499#
44500
44501# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
44502# NAME is the cpp macro being defined and VALUE is the value it is being given.
44503#
44504# ac_d sets the value in "#define NAME VALUE" lines.
ac1cb8d3
VS
44505ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
44506ac_dB='[ ].*$,\1#\2'
a848cd7e
SC
44507ac_dC=' '
44508ac_dD=',;t'
44509# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
ac1cb8d3 44510ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
a848cd7e
SC
44511ac_uB='$,\1#\2define\3'
44512ac_uC=' '
44513ac_uD=',;t'
44514
44515for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
44516 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
44517 case $ac_file in
44518 - | *:- | *:-:* ) # input from stdin
ac1cb8d3
VS
44519 cat >$tmp/stdin
44520 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
44521 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e 44522 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
ac1cb8d3 44523 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e
SC
44524 * ) ac_file_in=$ac_file.in ;;
44525 esac
44526
44527 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
44528echo "$as_me: creating $ac_file" >&6;}
44529
44530 # First look for the input files in the build tree, otherwise in the
44531 # src tree.
44532 ac_file_inputs=`IFS=:
44533 for f in $ac_file_in; do
44534 case $f in
44535 -) echo $tmp/stdin ;;
44536 [\\/$]*)
ac1cb8d3
VS
44537 # Absolute (can't be DOS-style, as IFS=:)
44538 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
44539echo "$as_me: error: cannot find input file: $f" >&2;}
44540 { (exit 1); exit 1; }; }
ac1cb8d3
VS
44541 # Do quote $f, to prevent DOS paths from being IFS'd.
44542 echo "$f";;
a848cd7e 44543 *) # Relative
ac1cb8d3
VS
44544 if test -f "$f"; then
44545 # Build tree
44546 echo "$f"
44547 elif test -f "$srcdir/$f"; then
44548 # Source tree
44549 echo "$srcdir/$f"
44550 else
44551 # /dev/null tree
44552 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
44553echo "$as_me: error: cannot find input file: $f" >&2;}
44554 { (exit 1); exit 1; }; }
ac1cb8d3 44555 fi;;
a848cd7e
SC
44556 esac
44557 done` || { (exit 1); exit 1; }
44558 # Remove the trailing spaces.
ac1cb8d3 44559 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
a848cd7e
SC
44560
44561_ACEOF
44562
44563# Transform confdefs.h into two sed scripts, `conftest.defines' and
44564# `conftest.undefs', that substitutes the proper values into
44565# config.h.in to produce config.h. The first handles `#define'
44566# templates, and the second `#undef' templates.
44567# And first: Protect against being on the right side of a sed subst in
44568# config.status. Protect against being in an unquoted here document
44569# in config.status.
44570rm -f conftest.defines conftest.undefs
44571# Using a here document instead of a string reduces the quoting nightmare.
44572# Putting comments in sed scripts is not portable.
44573#
44574# `end' is used to avoid that the second main sed command (meant for
44575# 0-ary CPP macros) applies to n-ary macro definitions.
44576# See the Autoconf documentation for `clear'.
44577cat >confdef2sed.sed <<\_ACEOF
44578s/[\\&,]/\\&/g
44579s,[\\$`],\\&,g
44580t clear
44581: clear
ac1cb8d3 44582s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
a848cd7e 44583t end
ac1cb8d3 44584s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
a848cd7e
SC
44585: end
44586_ACEOF
44587# If some macros were called several times there might be several times
44588# the same #defines, which is useless. Nevertheless, we may not want to
44589# sort them, since we want the *last* AC-DEFINE to be honored.
44590uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
44591sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
44592rm -f confdef2sed.sed
44593
44594# This sed command replaces #undef with comments. This is necessary, for
44595# example, in the case of _POSIX_SOURCE, which is predefined and required
44596# on some systems where configure will not decide to define it.
44597cat >>conftest.undefs <<\_ACEOF
ac1cb8d3 44598s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
a848cd7e
SC
44599_ACEOF
44600
44601# Break up conftest.defines because some shells have a limit on the size
44602# of here documents, and old seds have small limits too (100 cmds).
44603echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
ac1cb8d3 44604echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
a848cd7e
SC
44605echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
44606echo ' :' >>$CONFIG_STATUS
44607rm -f conftest.tail
44608while grep . conftest.defines >/dev/null
44609do
44610 # Write a limited-size here document to $tmp/defines.sed.
44611 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
44612 # Speed up: don't consider the non `#define' lines.
ac1cb8d3 44613 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
a848cd7e
SC
44614 # Work around the forget-to-reset-the-flag bug.
44615 echo 't clr' >>$CONFIG_STATUS
44616 echo ': clr' >>$CONFIG_STATUS
44617 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
44618 echo 'CEOF
44619 sed -f $tmp/defines.sed $tmp/in >$tmp/out
44620 rm -f $tmp/in
44621 mv $tmp/out $tmp/in
44622' >>$CONFIG_STATUS
44623 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
44624 rm -f conftest.defines
44625 mv conftest.tail conftest.defines
44626done
44627rm -f conftest.defines
44628echo ' fi # grep' >>$CONFIG_STATUS
44629echo >>$CONFIG_STATUS
44630
44631# Break up conftest.undefs because some shells have a limit on the size
44632# of here documents, and old seds have small limits too (100 cmds).
44633echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
44634rm -f conftest.tail
44635while grep . conftest.undefs >/dev/null
44636do
44637 # Write a limited-size here document to $tmp/undefs.sed.
44638 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
44639 # Speed up: don't consider the non `#undef'
ac1cb8d3 44640 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
a848cd7e
SC
44641 # Work around the forget-to-reset-the-flag bug.
44642 echo 't clr' >>$CONFIG_STATUS
44643 echo ': clr' >>$CONFIG_STATUS
44644 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
44645 echo 'CEOF
44646 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
44647 rm -f $tmp/in
44648 mv $tmp/out $tmp/in
44649' >>$CONFIG_STATUS
44650 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
44651 rm -f conftest.undefs
44652 mv conftest.tail conftest.undefs
44653done
44654rm -f conftest.undefs
44655
44656cat >>$CONFIG_STATUS <<\_ACEOF
44657 # Let's still pretend it is `configure' which instantiates (i.e., don't
44658 # use $as_me), people would be surprised to read:
44659 # /* config.h. Generated by config.status. */
44660 if test x"$ac_file" = x-; then
44661 echo "/* Generated by configure. */" >$tmp/config.h
44662 else
44663 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
44664 fi
44665 cat $tmp/in >>$tmp/config.h
44666 rm -f $tmp/in
44667 if test x"$ac_file" != x-; then
44668 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
44669 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
44670echo "$as_me: $ac_file is unchanged" >&6;}
44671 else
44672 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
44673$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
44674 X"$ac_file" : 'X\(//\)[^/]' \| \
44675 X"$ac_file" : 'X\(//\)$' \| \
44676 X"$ac_file" : 'X\(/\)' \| \
44677 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
44678echo X"$ac_file" |
44679 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
44680 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
44681 /^X\(\/\/\)$/{ s//\1/; q; }
44682 /^X\(\/\).*/{ s//\1/; q; }
44683 s/.*/./; q'`
44684 { if $as_mkdir_p; then
44685 mkdir -p "$ac_dir"
44686 else
44687 as_dir="$ac_dir"
44688 as_dirs=
44689 while test ! -d "$as_dir"; do
44690 as_dirs="$as_dir $as_dirs"
44691 as_dir=`(dirname "$as_dir") 2>/dev/null ||
44692$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
44693 X"$as_dir" : 'X\(//\)[^/]' \| \
44694 X"$as_dir" : 'X\(//\)$' \| \
44695 X"$as_dir" : 'X\(/\)' \| \
44696 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
44697echo X"$as_dir" |
44698 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
44699 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
44700 /^X\(\/\/\)$/{ s//\1/; q; }
44701 /^X\(\/\).*/{ s//\1/; q; }
44702 s/.*/./; q'`
44703 done
44704 test ! -n "$as_dirs" || mkdir $as_dirs
44705 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
44706echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
44707 { (exit 1); exit 1; }; }; }
44708
44709 rm -f $ac_file
44710 mv $tmp/config.h $ac_file
44711 fi
44712 else
44713 cat $tmp/config.h
44714 rm -f $tmp/config.h
44715 fi
44716done
44717_ACEOF
44718cat >>$CONFIG_STATUS <<\_ACEOF
44719
44720#
44721# CONFIG_COMMANDS section.
44722#
44723for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
44724 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
44725 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
44726 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
44727$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
44728 X"$ac_dest" : 'X\(//\)[^/]' \| \
44729 X"$ac_dest" : 'X\(//\)$' \| \
44730 X"$ac_dest" : 'X\(/\)' \| \
44731 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
44732echo X"$ac_dest" |
44733 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
44734 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
44735 /^X\(\/\/\)$/{ s//\1/; q; }
44736 /^X\(\/\).*/{ s//\1/; q; }
44737 s/.*/./; q'`
ac1cb8d3
VS
44738 { if $as_mkdir_p; then
44739 mkdir -p "$ac_dir"
44740 else
44741 as_dir="$ac_dir"
44742 as_dirs=
44743 while test ! -d "$as_dir"; do
44744 as_dirs="$as_dir $as_dirs"
44745 as_dir=`(dirname "$as_dir") 2>/dev/null ||
44746$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
44747 X"$as_dir" : 'X\(//\)[^/]' \| \
44748 X"$as_dir" : 'X\(//\)$' \| \
44749 X"$as_dir" : 'X\(/\)' \| \
44750 . : '\(.\)' 2>/dev/null ||
44751echo X"$as_dir" |
44752 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
44753 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
44754 /^X\(\/\/\)$/{ s//\1/; q; }
44755 /^X\(\/\).*/{ s//\1/; q; }
44756 s/.*/./; q'`
44757 done
44758 test ! -n "$as_dirs" || mkdir $as_dirs
44759 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
44760echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
44761 { (exit 1); exit 1; }; }; }
44762
a848cd7e
SC
44763 ac_builddir=.
44764
44765if test "$ac_dir" != .; then
44766 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
44767 # A "../" for each directory in $ac_dir_suffix.
44768 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
44769else
44770 ac_dir_suffix= ac_top_builddir=
44771fi
44772
44773case $srcdir in
44774 .) # No --srcdir option. We are building in place.
44775 ac_srcdir=.
44776 if test -z "$ac_top_builddir"; then
44777 ac_top_srcdir=.
44778 else
44779 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
44780 fi ;;
44781 [\\/]* | ?:[\\/]* ) # Absolute path.
44782 ac_srcdir=$srcdir$ac_dir_suffix;
44783 ac_top_srcdir=$srcdir ;;
44784 *) # Relative path.
44785 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
44786 ac_top_srcdir=$ac_top_builddir$srcdir ;;
44787esac
ac1cb8d3
VS
44788
44789# Do not use `cd foo && pwd` to compute absolute paths, because
44790# the directories may not exist.
44791case `pwd` in
44792.) ac_abs_builddir="$ac_dir";;
44793*)
44794 case "$ac_dir" in
44795 .) ac_abs_builddir=`pwd`;;
44796 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
44797 *) ac_abs_builddir=`pwd`/"$ac_dir";;
44798 esac;;
44799esac
44800case $ac_abs_builddir in
44801.) ac_abs_top_builddir=${ac_top_builddir}.;;
44802*)
44803 case ${ac_top_builddir}. in
44804 .) ac_abs_top_builddir=$ac_abs_builddir;;
44805 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
44806 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
44807 esac;;
44808esac
44809case $ac_abs_builddir in
44810.) ac_abs_srcdir=$ac_srcdir;;
44811*)
44812 case $ac_srcdir in
44813 .) ac_abs_srcdir=$ac_abs_builddir;;
44814 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
44815 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
44816 esac;;
44817esac
44818case $ac_abs_builddir in
44819.) ac_abs_top_srcdir=$ac_top_srcdir;;
44820*)
44821 case $ac_top_srcdir in
44822 .) ac_abs_top_srcdir=$ac_abs_builddir;;
44823 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
44824 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
44825 esac;;
44826esac
a848cd7e
SC
44827
44828
44829 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
44830echo "$as_me: executing $ac_dest commands" >&6;}
44831 case $ac_dest in
ceec2216
RL
44832 wx-config ) rm -f wx-config
44833 ${LN_S} lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} wx-config
44834 ;;
a848cd7e
SC
44835 esac
44836done
44837_ACEOF
44838
44839cat >>$CONFIG_STATUS <<\_ACEOF
44840
44841{ (exit 0); exit 0; }
44842_ACEOF
44843chmod +x $CONFIG_STATUS
44844ac_clean_files=$ac_clean_files_save
44845
44846
44847# configure is writing to config.log, and then calls config.status.
44848# config.status does its own redirection, appending to config.log.
44849# Unfortunately, on DOS this fails, as config.log is still kept open
44850# by configure, so config.status won't be able to write to it; its
44851# output is simply discarded. So we exec the FD to /dev/null,
44852# effectively closing config.log, so it can be properly (re)opened and
44853# appended to by config.status. When coming back to configure, we
44854# need to make the FD available again.
44855if test "$no_create" != yes; then
44856 ac_cs_success=:
44857 ac_config_status_args=
44858 test "$silent" = yes &&
44859 ac_config_status_args="$ac_config_status_args --quiet"
44860 exec 5>/dev/null
44861 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
44862 exec 5>>config.log
44863 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
44864 # would make configure fail if this is the last instruction.
44865 $ac_cs_success || { (exit 1); exit 1; }
44866fi
44867
44868#
44869# CONFIG_SUBDIRS section.
44870#
44871if test "$no_recursion" != yes; then
44872
44873 # Remove --cache-file and --srcdir arguments so they do not pile up.
44874 ac_sub_configure_args=
44875 ac_prev=
44876 for ac_arg in $ac_configure_args; do
44877 if test -n "$ac_prev"; then
44878 ac_prev=
44879 continue
44880 fi
44881 case $ac_arg in
44882 -cache-file | --cache-file | --cache-fil | --cache-fi \
44883 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
44884 ac_prev=cache_file ;;
44885 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
44886 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
44887 | --c=*)
44888 ;;
44889 --config-cache | -C)
44890 ;;
44891 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
44892 ac_prev=srcdir ;;
44893 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
44894 ;;
44895 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
44896 ac_prev=prefix ;;
44897 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
44898 ;;
44899 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
44900 esac
44901 done
44902
44903 # Always prepend --prefix to ensure using the same prefix
44904 # in subdir configurations.
44905 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
44906
44907 ac_popdir=`pwd`
44908 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
44909
44910 # Do not complain, so a configure script can configure whichever
44911 # parts of a large source tree are present.
44912 test -d $srcdir/$ac_dir || continue
44913
44914 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
44915echo "$as_me: configuring in $ac_dir" >&6;}
44916 { if $as_mkdir_p; then
44917 mkdir -p "$ac_dir"
44918 else
44919 as_dir="$ac_dir"
44920 as_dirs=
44921 while test ! -d "$as_dir"; do
44922 as_dirs="$as_dir $as_dirs"
44923 as_dir=`(dirname "$as_dir") 2>/dev/null ||
44924$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
44925 X"$as_dir" : 'X\(//\)[^/]' \| \
44926 X"$as_dir" : 'X\(//\)$' \| \
44927 X"$as_dir" : 'X\(/\)' \| \
44928 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
44929echo X"$as_dir" |
44930 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
44931 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
44932 /^X\(\/\/\)$/{ s//\1/; q; }
44933 /^X\(\/\).*/{ s//\1/; q; }
44934 s/.*/./; q'`
44935 done
44936 test ! -n "$as_dirs" || mkdir $as_dirs
44937 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
44938echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
44939 { (exit 1); exit 1; }; }; }
44940
44941 ac_builddir=.
44942
44943if test "$ac_dir" != .; then
44944 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
44945 # A "../" for each directory in $ac_dir_suffix.
44946 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
44947else
44948 ac_dir_suffix= ac_top_builddir=
44949fi
44950
44951case $srcdir in
44952 .) # No --srcdir option. We are building in place.
44953 ac_srcdir=.
44954 if test -z "$ac_top_builddir"; then
44955 ac_top_srcdir=.
44956 else
44957 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
44958 fi ;;
44959 [\\/]* | ?:[\\/]* ) # Absolute path.
44960 ac_srcdir=$srcdir$ac_dir_suffix;
44961 ac_top_srcdir=$srcdir ;;
44962 *) # Relative path.
44963 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
44964 ac_top_srcdir=$ac_top_builddir$srcdir ;;
44965esac
ac1cb8d3
VS
44966
44967# Do not use `cd foo && pwd` to compute absolute paths, because
44968# the directories may not exist.
44969case `pwd` in
44970.) ac_abs_builddir="$ac_dir";;
44971*)
44972 case "$ac_dir" in
44973 .) ac_abs_builddir=`pwd`;;
44974 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
44975 *) ac_abs_builddir=`pwd`/"$ac_dir";;
44976 esac;;
44977esac
44978case $ac_abs_builddir in
44979.) ac_abs_top_builddir=${ac_top_builddir}.;;
44980*)
44981 case ${ac_top_builddir}. in
44982 .) ac_abs_top_builddir=$ac_abs_builddir;;
44983 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
44984 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
44985 esac;;
44986esac
44987case $ac_abs_builddir in
44988.) ac_abs_srcdir=$ac_srcdir;;
44989*)
44990 case $ac_srcdir in
44991 .) ac_abs_srcdir=$ac_abs_builddir;;
44992 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
44993 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
44994 esac;;
44995esac
44996case $ac_abs_builddir in
44997.) ac_abs_top_srcdir=$ac_top_srcdir;;
44998*)
44999 case $ac_top_srcdir in
45000 .) ac_abs_top_srcdir=$ac_abs_builddir;;
45001 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
45002 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
45003 esac;;
45004esac
a848cd7e
SC
45005
45006
45007 cd $ac_dir
45008
45009 # Check for guested configure; otherwise get Cygnus style configure.
45010 if test -f $ac_srcdir/configure.gnu; then
45011 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
45012 elif test -f $ac_srcdir/configure; then
45013 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
45014 elif test -f $ac_srcdir/configure.in; then
45015 ac_sub_configure=$ac_configure
45016 else
45017 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
45018echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
45019 ac_sub_configure=
45020 fi
45021
45022 # The recursion is here.
45023 if test -n "$ac_sub_configure"; then
45024 # Make the cache file name correct relative to the subdirectory.
45025 case $cache_file in
45026 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
45027 *) # Relative path.
ac1cb8d3 45028 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
a848cd7e
SC
45029 esac
45030
45031 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
45032echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
45033 # The eval makes quoting arguments work.
45034 eval $ac_sub_configure $ac_sub_configure_args \
ac1cb8d3
VS
45035 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
45036 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
a848cd7e
SC
45037echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
45038 { (exit 1); exit 1; }; }
45039 fi
45040
07158944 45041 cd "$ac_popdir"
a848cd7e
SC
45042 done
45043fi
45044
45045
45046echo
77ffb593 45047echo "Configured wxWidgets ${WX_VERSION} for \`${host}'"
a848cd7e 45048echo ""
4d4ff94c 45049echo " Which GUI toolkit should wxWidgets use? ${TOOLKIT_USER:-base only}"
77ffb593 45050echo " Should wxWidgets be compiled into single library? ${wxUSE_MONOLITHIC:-yes}"
a848cd7e 45051
77ffb593
JS
45052echo " Should wxWidgets be compiled in debug mode? ${wxUSE_DEBUG:-no}"
45053echo " Should wxWidgets be linked as a shared library? ${wxUSE_SHARED:-no}"
45054echo " Should wxWidgets be compiled in Unicode mode? ${wxUSE_UNICODE:-no}"
a848cd7e 45055
77ffb593
JS
45056echo " What level of wxWidgets compatibility should be enabled?"
45057echo " wxWidgets 2.2 ${WXWIN_COMPATIBILITY_2_2:-no}"
45058echo " wxWidgets 2.4 ${WXWIN_COMPATIBILITY_2_4:-yes}"
a848cd7e 45059
77ffb593 45060echo " Which libraries should wxWidgets use?"
a848cd7e
SC
45061echo " jpeg ${wxUSE_LIBJPEG-none}"
45062echo " png ${wxUSE_LIBPNG-none}"
45063echo " regex ${wxUSE_REGEX}"
45064echo " tiff ${wxUSE_LIBTIFF-none}"
45065if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
45066echo " xpm ${wxUSE_LIBXPM-none}"
45067fi
45068echo " zlib ${wxUSE_ZLIB}"
45069echo " odbc ${wxUSE_ODBC}"
45070echo " expat ${wxUSE_EXPAT}"
45071echo " libmspack ${wxUSE_LIBMSPACK}"
45072echo " sdl ${wxUSE_LIBSDL}"
6d1ce868 45073echo " gnomeprint ${wxUSE_LIBGNOMEPRINT-none}"
a848cd7e
SC
45074
45075echo ""
45076