]> git.saurik.com Git - wxWidgets.git/blame - configure
add mac theme -> rgb color conversion
[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"
dae87f93 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_SOSYMLINKS_1 COND_USE_SOVERLINUX_1 COND_USE_SOVERSION_0 COND_USE_SOVERSOLARIS_1 COND_USE_XRC_1 COND_WITH_PLUGIN_SDL_1 COND_WXUNIV_0 COND_WXUNIV_1 COND_WXUSE_EXPAT_BUILTIN COND_WXUSE_LIBJPEG_BUILTIN COND_WXUSE_LIBPNG_BUILTIN COND_WXUSE_LIBTIFF_BUILTIN COND_WXUSE_ODBC_BUILTIN COND_WXUSE_REGEX_BUILTIN COND_WXUSE_ZLIB_BUILTIN SHARED WX_LIBRARY_BASENAME_NOGUI WX_LIBRARY_BASENAME_GUI WXDEBUG_DEFINE USE_GUI AFMINSTALL WIN32INSTALL TOOLKIT TOOLKIT_DIR TOOLCHAIN_NAME TOOLCHAIN_FULLNAME TOOLCHAIN_DEFS TOOLCHAIN_DLL_DEFS cross_compiling WIDGET_SET WX_RELEASE WX_VERSION WX_SUBVERSION WX_CHARTYPE WX_DEBUGTYPE WXCONFIG_EXTRALIBS WXCONFIG_INCLUDE WXCONFIG_RPATH WXCONFIG_LDFLAGS_GUI WX_LARGEFILE_FLAGS GCC_PRAGMA_FLAGS CODE_GEN_FLAGS CODE_GEN_FLAGS_CXX EXE_LINKER GUIDIST DISTDIR SAMPLES_SUBDIRS LDFLAGS_GL OPENGL_LIBS DMALLOC_LIBS WX_VERSION_TAG RESFLAGS RESPROGRAMOBJ WX_RESOURCES_MACOSX_ASCII WX_RESOURCES_MACOSX_DATA LIBWXMACRES MACRESCOMP MACSETFILE MACRESWXCONFIG GCC DLLTOOL CPPUNIT_CONFIG LIBOBJS LTLIBOBJS'
a848cd7e
SC
317ac_subst_files=''
318
319# Initialize some variables set by options.
320ac_init_help=
321ac_init_version=false
322# The variables have the same names as the options, with
323# dashes changed to underlines.
324cache_file=/dev/null
325exec_prefix=NONE
326no_create=
327no_recursion=
328prefix=NONE
329program_prefix=NONE
330program_suffix=NONE
331program_transform_name=s,x,x,
332silent=
333site=
334srcdir=
335verbose=
336x_includes=NONE
337x_libraries=NONE
338
339# Installation directory options.
340# These are left unexpanded so users can "make install exec_prefix=/foo"
341# and all the variables that are supposed to be based on exec_prefix
342# by default will actually change.
343# Use braces instead of parens because sh, perl, etc. also accept them.
344bindir='${exec_prefix}/bin'
345sbindir='${exec_prefix}/sbin'
346libexecdir='${exec_prefix}/libexec'
347datadir='${prefix}/share'
348sysconfdir='${prefix}/etc'
349sharedstatedir='${prefix}/com'
350localstatedir='${prefix}/var'
351libdir='${exec_prefix}/lib'
352includedir='${prefix}/include'
353oldincludedir='/usr/include'
354infodir='${prefix}/info'
355mandir='${prefix}/man'
356
357ac_prev=
358for ac_option
359do
360 # If the previous option needs an argument, assign it.
361 if test -n "$ac_prev"; then
362 eval "$ac_prev=\$ac_option"
363 ac_prev=
364 continue
365 fi
366
367 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
368
369 # Accept the important Cygnus configure options, so we can diagnose typos.
370
371 case $ac_option in
372
373 -bindir | --bindir | --bindi | --bind | --bin | --bi)
374 ac_prev=bindir ;;
375 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
376 bindir=$ac_optarg ;;
377
378 -build | --build | --buil | --bui | --bu)
379 ac_prev=build_alias ;;
380 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
381 build_alias=$ac_optarg ;;
382
383 -cache-file | --cache-file | --cache-fil | --cache-fi \
384 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
385 ac_prev=cache_file ;;
386 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
387 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
388 cache_file=$ac_optarg ;;
389
390 --config-cache | -C)
391 cache_file=config.cache ;;
392
393 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
394 ac_prev=datadir ;;
395 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
396 | --da=*)
397 datadir=$ac_optarg ;;
398
399 -disable-* | --disable-*)
400 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
401 # Reject names that are not valid shell variable names.
402 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
403 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
404 { (exit 1); exit 1; }; }
405 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
406 eval "enable_$ac_feature=no" ;;
407
408 -enable-* | --enable-*)
409 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
410 # Reject names that are not valid shell variable names.
411 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
412 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
413 { (exit 1); exit 1; }; }
414 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
415 case $ac_option in
416 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
417 *) ac_optarg=yes ;;
418 esac
419 eval "enable_$ac_feature='$ac_optarg'" ;;
420
421 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
422 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
423 | --exec | --exe | --ex)
424 ac_prev=exec_prefix ;;
425 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
426 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
427 | --exec=* | --exe=* | --ex=*)
428 exec_prefix=$ac_optarg ;;
429
430 -gas | --gas | --ga | --g)
431 # Obsolete; use --with-gas.
432 with_gas=yes ;;
433
434 -help | --help | --hel | --he | -h)
435 ac_init_help=long ;;
436 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
437 ac_init_help=recursive ;;
438 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
439 ac_init_help=short ;;
440
441 -host | --host | --hos | --ho)
442 ac_prev=host_alias ;;
443 -host=* | --host=* | --hos=* | --ho=*)
444 host_alias=$ac_optarg ;;
445
446 -includedir | --includedir | --includedi | --included | --include \
447 | --includ | --inclu | --incl | --inc)
448 ac_prev=includedir ;;
449 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
450 | --includ=* | --inclu=* | --incl=* | --inc=*)
451 includedir=$ac_optarg ;;
452
453 -infodir | --infodir | --infodi | --infod | --info | --inf)
454 ac_prev=infodir ;;
455 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
456 infodir=$ac_optarg ;;
457
458 -libdir | --libdir | --libdi | --libd)
459 ac_prev=libdir ;;
460 -libdir=* | --libdir=* | --libdi=* | --libd=*)
461 libdir=$ac_optarg ;;
462
463 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
464 | --libexe | --libex | --libe)
465 ac_prev=libexecdir ;;
466 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
467 | --libexe=* | --libex=* | --libe=*)
468 libexecdir=$ac_optarg ;;
469
470 -localstatedir | --localstatedir | --localstatedi | --localstated \
471 | --localstate | --localstat | --localsta | --localst \
472 | --locals | --local | --loca | --loc | --lo)
473 ac_prev=localstatedir ;;
474 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
475 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
476 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
477 localstatedir=$ac_optarg ;;
478
479 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
480 ac_prev=mandir ;;
481 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
482 mandir=$ac_optarg ;;
483
484 -nfp | --nfp | --nf)
485 # Obsolete; use --without-fp.
486 with_fp=no ;;
487
488 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
489 | --no-cr | --no-c | -n)
490 no_create=yes ;;
491
492 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
493 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
494 no_recursion=yes ;;
495
496 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
497 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
498 | --oldin | --oldi | --old | --ol | --o)
499 ac_prev=oldincludedir ;;
500 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
501 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
502 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
503 oldincludedir=$ac_optarg ;;
504
505 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
506 ac_prev=prefix ;;
507 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
508 prefix=$ac_optarg ;;
509
510 -program-prefix | --program-prefix | --program-prefi | --program-pref \
511 | --program-pre | --program-pr | --program-p)
512 ac_prev=program_prefix ;;
513 -program-prefix=* | --program-prefix=* | --program-prefi=* \
514 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
515 program_prefix=$ac_optarg ;;
516
517 -program-suffix | --program-suffix | --program-suffi | --program-suff \
518 | --program-suf | --program-su | --program-s)
519 ac_prev=program_suffix ;;
520 -program-suffix=* | --program-suffix=* | --program-suffi=* \
521 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
522 program_suffix=$ac_optarg ;;
523
524 -program-transform-name | --program-transform-name \
525 | --program-transform-nam | --program-transform-na \
526 | --program-transform-n | --program-transform- \
527 | --program-transform | --program-transfor \
528 | --program-transfo | --program-transf \
529 | --program-trans | --program-tran \
530 | --progr-tra | --program-tr | --program-t)
531 ac_prev=program_transform_name ;;
532 -program-transform-name=* | --program-transform-name=* \
533 | --program-transform-nam=* | --program-transform-na=* \
534 | --program-transform-n=* | --program-transform-=* \
535 | --program-transform=* | --program-transfor=* \
536 | --program-transfo=* | --program-transf=* \
537 | --program-trans=* | --program-tran=* \
538 | --progr-tra=* | --program-tr=* | --program-t=*)
539 program_transform_name=$ac_optarg ;;
540
541 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
542 | -silent | --silent | --silen | --sile | --sil)
543 silent=yes ;;
544
545 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
546 ac_prev=sbindir ;;
547 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
548 | --sbi=* | --sb=*)
549 sbindir=$ac_optarg ;;
550
551 -sharedstatedir | --sharedstatedir | --sharedstatedi \
552 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
553 | --sharedst | --shareds | --shared | --share | --shar \
554 | --sha | --sh)
555 ac_prev=sharedstatedir ;;
556 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
557 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
558 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
559 | --sha=* | --sh=*)
560 sharedstatedir=$ac_optarg ;;
561
562 -site | --site | --sit)
563 ac_prev=site ;;
564 -site=* | --site=* | --sit=*)
565 site=$ac_optarg ;;
566
567 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
568 ac_prev=srcdir ;;
569 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
570 srcdir=$ac_optarg ;;
571
572 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
573 | --syscon | --sysco | --sysc | --sys | --sy)
574 ac_prev=sysconfdir ;;
575 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
576 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
577 sysconfdir=$ac_optarg ;;
578
579 -target | --target | --targe | --targ | --tar | --ta | --t)
580 ac_prev=target_alias ;;
581 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
582 target_alias=$ac_optarg ;;
583
584 -v | -verbose | --verbose | --verbos | --verbo | --verb)
585 verbose=yes ;;
586
587 -version | --version | --versio | --versi | --vers | -V)
588 ac_init_version=: ;;
589
590 -with-* | --with-*)
591 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
592 # Reject names that are not valid shell variable names.
593 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
594 { echo "$as_me: error: invalid package name: $ac_package" >&2
595 { (exit 1); exit 1; }; }
596 ac_package=`echo $ac_package| sed 's/-/_/g'`
597 case $ac_option in
598 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
599 *) ac_optarg=yes ;;
600 esac
601 eval "with_$ac_package='$ac_optarg'" ;;
602
603 -without-* | --without-*)
604 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
605 # Reject names that are not valid shell variable names.
606 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
607 { echo "$as_me: error: invalid package name: $ac_package" >&2
608 { (exit 1); exit 1; }; }
609 ac_package=`echo $ac_package | sed 's/-/_/g'`
610 eval "with_$ac_package=no" ;;
611
612 --x)
613 # Obsolete; use --with-x.
614 with_x=yes ;;
615
616 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
617 | --x-incl | --x-inc | --x-in | --x-i)
618 ac_prev=x_includes ;;
619 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
620 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
621 x_includes=$ac_optarg ;;
622
623 -x-libraries | --x-libraries | --x-librarie | --x-librari \
624 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
625 ac_prev=x_libraries ;;
626 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
627 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
628 x_libraries=$ac_optarg ;;
629
630 -*) { echo "$as_me: error: unrecognized option: $ac_option
631Try \`$0 --help' for more information." >&2
632 { (exit 1); exit 1; }; }
633 ;;
634
635 *=*)
636 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
637 # Reject names that are not valid shell variable names.
638 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
639 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
640 { (exit 1); exit 1; }; }
641 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
642 eval "$ac_envvar='$ac_optarg'"
643 export $ac_envvar ;;
644
645 *)
646 # FIXME: should be removed in autoconf 3.0.
647 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
648 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
649 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
650 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
651 ;;
652
653 esac
654done
655
656if test -n "$ac_prev"; then
657 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
658 { echo "$as_me: error: missing argument to $ac_option" >&2
659 { (exit 1); exit 1; }; }
660fi
661
662# Be sure to have absolute paths.
663for ac_var in exec_prefix prefix
664do
665 eval ac_val=$`echo $ac_var`
666 case $ac_val in
667 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
668 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
669 { (exit 1); exit 1; }; };;
670 esac
671done
672
673# Be sure to have absolute paths.
674for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
ac1cb8d3 675 localstatedir libdir includedir oldincludedir infodir mandir
a848cd7e
SC
676do
677 eval ac_val=$`echo $ac_var`
678 case $ac_val in
679 [\\/$]* | ?:[\\/]* ) ;;
680 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
681 { (exit 1); exit 1; }; };;
682 esac
683done
684
685# There might be people who depend on the old broken behavior: `$host'
686# used to hold the argument of --host etc.
687# FIXME: To remove some day.
688build=$build_alias
689host=$host_alias
690target=$target_alias
691
692# FIXME: To remove some day.
693if test "x$host_alias" != x; then
694 if test "x$build_alias" = x; then
695 cross_compiling=maybe
696 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
697 If a cross compiler is detected then cross compile mode will be used." >&2
698 elif test "x$build_alias" != "x$host_alias"; then
699 cross_compiling=yes
700 fi
701fi
702
703ac_tool_prefix=
704test -n "$host_alias" && ac_tool_prefix=$host_alias-
705
706test "$silent" = yes && exec 6>/dev/null
707
708
709# Find the source files, if location was not specified.
710if test -z "$srcdir"; then
711 ac_srcdir_defaulted=yes
712 # Try the directory containing this script, then its parent.
713 ac_confdir=`(dirname "$0") 2>/dev/null ||
714$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
715 X"$0" : 'X\(//\)[^/]' \| \
716 X"$0" : 'X\(//\)$' \| \
717 X"$0" : 'X\(/\)' \| \
718 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
719echo X"$0" |
720 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
721 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
722 /^X\(\/\/\)$/{ s//\1/; q; }
723 /^X\(\/\).*/{ s//\1/; q; }
724 s/.*/./; q'`
725 srcdir=$ac_confdir
726 if test ! -r $srcdir/$ac_unique_file; then
727 srcdir=..
728 fi
729else
730 ac_srcdir_defaulted=no
731fi
732if test ! -r $srcdir/$ac_unique_file; then
733 if test "$ac_srcdir_defaulted" = yes; then
734 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
735 { (exit 1); exit 1; }; }
736 else
737 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
738 { (exit 1); exit 1; }; }
739 fi
740fi
741(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
742 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
743 { (exit 1); exit 1; }; }
744srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
745ac_env_build_alias_set=${build_alias+set}
746ac_env_build_alias_value=$build_alias
747ac_cv_env_build_alias_set=${build_alias+set}
748ac_cv_env_build_alias_value=$build_alias
749ac_env_host_alias_set=${host_alias+set}
750ac_env_host_alias_value=$host_alias
751ac_cv_env_host_alias_set=${host_alias+set}
752ac_cv_env_host_alias_value=$host_alias
753ac_env_target_alias_set=${target_alias+set}
754ac_env_target_alias_value=$target_alias
755ac_cv_env_target_alias_set=${target_alias+set}
756ac_cv_env_target_alias_value=$target_alias
757ac_env_CC_set=${CC+set}
758ac_env_CC_value=$CC
759ac_cv_env_CC_set=${CC+set}
760ac_cv_env_CC_value=$CC
761ac_env_CFLAGS_set=${CFLAGS+set}
762ac_env_CFLAGS_value=$CFLAGS
763ac_cv_env_CFLAGS_set=${CFLAGS+set}
764ac_cv_env_CFLAGS_value=$CFLAGS
765ac_env_LDFLAGS_set=${LDFLAGS+set}
766ac_env_LDFLAGS_value=$LDFLAGS
767ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
768ac_cv_env_LDFLAGS_value=$LDFLAGS
769ac_env_CPPFLAGS_set=${CPPFLAGS+set}
770ac_env_CPPFLAGS_value=$CPPFLAGS
771ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
772ac_cv_env_CPPFLAGS_value=$CPPFLAGS
773ac_env_CPP_set=${CPP+set}
774ac_env_CPP_value=$CPP
775ac_cv_env_CPP_set=${CPP+set}
776ac_cv_env_CPP_value=$CPP
777ac_env_CXX_set=${CXX+set}
778ac_env_CXX_value=$CXX
779ac_cv_env_CXX_set=${CXX+set}
780ac_cv_env_CXX_value=$CXX
781ac_env_CXXFLAGS_set=${CXXFLAGS+set}
782ac_env_CXXFLAGS_value=$CXXFLAGS
783ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
784ac_cv_env_CXXFLAGS_value=$CXXFLAGS
785ac_env_CXXCPP_set=${CXXCPP+set}
786ac_env_CXXCPP_value=$CXXCPP
787ac_cv_env_CXXCPP_set=${CXXCPP+set}
788ac_cv_env_CXXCPP_value=$CXXCPP
789
790#
791# Report the --help message.
792#
793if test "$ac_init_help" = "long"; then
794 # Omit some internal or obsolete options to make the list less imposing.
795 # This message is too long to be a string in the A/UX 3.1 sh.
796 cat <<_ACEOF
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
927 --enable-streams use wxStream etc classes
928 --enable-std_iostreams use standard C++ stream classes
929 --enable-stopwatch use wxStopWatch class
930 --enable-sysoptions use wxSystemOptions
931 --enable-textbuf use wxTextBuffer class
932 --enable-textfile use wxTextFile class
933 --enable-timer use wxTimer class
934 --enable-unicode compile wxString with Unicode support
935 --enable-sound use wxSound class
3b57de8b 936 --enable-mediactrl use wxMediaCtrl class
77ffb593 937 --enable-wxprintfv use wxWidgets implementation of vprintf()
81f90336 938 --enable-zipstream use wxZip streams
a848cd7e
SC
939 --enable-url use wxURL class
940 --enable-protocol use wxProtocol class
941 --enable-protocol-http HTTP support in wxProtocol
942 --enable-protocol-ftp FTP support in wxProtocol
943 --enable-protocol-file FILE support in wxProtocol
944 --enable-threads use threads
945 --enable-docview use document view architecture
946 --enable-help use help subsystem
947 --enable-mshtmlhelp use MS HTML Help (win32)
948 --enable-html use wxHTML sub-library
949 --enable-htmlhelp use wxHTML-based help
9a8f0513 950 --enable-xrc use XRC resources sub-library
a848cd7e
SC
951 --enable-constraints use layout-constraints system
952 --enable-printarch use printing architecture
953 --enable-mdi use multiple document interface architecture
8a7b1113 954 --enable-mdidoc use docview architecture with MDI
a848cd7e
SC
955 --enable-loggui use standard GUI logger
956 --enable-logwin use wxLogWindow
957 --enable-logdialog use wxLogDialog
646b6ec1 958 --enable-webkit use wxWebKitCtrl (Mac)
a848cd7e
SC
959 --enable-postscript use wxPostscriptDC device context (default for gtk+)
960 --enable-prologio not available; see contrib
961 --enable-resources not available; see contrib
962 --enable-clipboard use wxClipboard class
963 --enable-dnd use Drag'n'Drop classes
964 --enable-metafile use win32 metafiles
965 --enable-controls use all usual controls
966 --enable-accel use accelerators
967 --enable-button use wxButton class
968 --enable-bmpbutton use wxBitmapButton class
969 --enable-calendar use wxCalendarCtrl class
970 --enable-caret use wxCaret class
971 --enable-checkbox use wxCheckBox class
972 --enable-checklst use wxCheckListBox (listbox with checkboxes) class
973 --enable-choice use wxChoice class
92bbdbcd 974 --enable-choicebook use wxChoicebook class
a848cd7e 975 --enable-combobox use wxComboBox class
da98e9be 976 --enable-datepick use wxDatePickerCtrl class
a848cd7e
SC
977 --enable-display use wxDisplay class
978 --enable-gauge use wxGauge class
979 --enable-grid use wxGrid class
980 --enable-imaglist use wxImageList class
981 --enable-listbook use wxListbook class
982 --enable-listbox use wxListBox class
983 --enable-listctrl use wxListCtrl class
984 --enable-notebook use wxNotebook class
985 --enable-radiobox use wxRadioBox class
986 --enable-radiobtn use wxRadioButton class
987 --enable-sash use wxSashWindow class
988 --enable-scrollbar use wxScrollBar class and scrollable windows
989 --enable-slider use wxSlider class
990 --enable-spinbtn use wxSpinButton class
991 --enable-spinctrl use wxSpinCtrl class
992 --enable-splitter use wxSplitterWindow class
993 --enable-statbmp use wxStaticBitmap class
994 --enable-statbox use wxStaticBox class
995 --enable-statline use wxStaticLine class
996 --enable-stattext use wxStaticText class
997 --enable-statusbar use wxStatusBar class
998 --enable-tabdialog use wxTabControl class
999 --enable-textctrl use wxTextCtrl class
1000 --enable-togglebtn use wxToggleButton class
1001 --enable-toolbar use wxToolBar class
1002 --enable-tbarnative use native wxToolBar class
1003 --enable-tbarsmpl use wxToolBarSimple class
1004 --enable-treectrl use wxTreeCtrl class
1005 --enable-tipwindow use wxTipWindow class
1006 --enable-popupwin use wxPopUpWindow class
1007 --enable-commondlg use all common dialogs
1008 --enable-choicedlg use wxChoiceDialog
1009 --enable-coldlg use wxColourDialog
1010 --enable-filedlg use wxFileDialog
1011 --enable-finddlg use wxFindReplaceDialog
1012 --enable-fontdlg use wxFontDialog
1013 --enable-dirdlg use wxDirDialog
1014 --enable-msgdlg use wxMessageDialog
1015 --enable-numberdlg use wxNumberEntryDialog
1016 --enable-splash use wxSplashScreen
1017 --enable-textdlg use wxTextDialog
1018 --enable-tipdlg use startup tips
1019 --enable-progressdlg use wxProgressDialog
1020 --enable-wizarddlg use wxWizard
1021 --enable-menus use wxMenu/wxMenuBar/wxMenuItem classes
1022 --enable-miniframe use wxMiniFrame class
1023 --enable-tooltips use wxToolTip class
1024 --enable-splines use spline drawing code
1025 --enable-validators use wxValidator and derived classes
1026 --enable-busyinfo use wxBusyInfo
4cb1d3da 1027 --enable-joystick use wxJoystick
a848cd7e
SC
1028 --enable-metafiles use wxMetaFile (Windows only)
1029 --enable-dragimage use wxDragImage
1030 --enable-accessibility enable accessibility support
1031 --enable-palette use wxPalette class
1032 --enable-image use wxImage class
1033 --enable-gif use gif images (GIF file format)
1034 --enable-pcx use pcx images (PCX file format)
1035 --enable-iff use iff images (IFF file format)
1036 --enable-pnm use pnm images (PNM file format)
1037 --enable-xpm use xpm images (XPM file format)
1038 --enable-icocur use Windows ICO and CUR formats
77ffb593 1039 --enable-official_build official build of wxWidgets (win32 DLL only)
a848cd7e
SC
1040 --enable-vendor=VENDOR vendor name (win32 DLL only)
1041 --disable-largefile omit support for large files
1042 --disable-gtktest do not try to compile and run a test GTK+ program
1043 --disable-gtktest Do not try to compile and run a test GTK program
1044 --disable-sdltest Do not try to compile and run a test SDL program
1045 --enable-omf use OMF object format (OS/2)
ebee3cd0
VS
1046 --disable-precomp-headers
1047 don't use precompiled headers even if compiler can
a848cd7e
SC
1048
1049Optional Packages:
1050 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1051 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1052 --with-gtk use GTK+
1053 --with-motif use Motif/Lesstif
1054 --with-mac use Mac OS X
1055 --with-cocoa use Cocoa
1056 --with-wine use Wine
1057 --with-msw use MS-Windows
1058 --with-pm use OS/2 Presentation Manager
1059 --with-mgl use SciTech MGL
1060 --with-microwin use MicroWindows
1061 --with-x11 use X11
1062 --with-libpng use libpng (PNG image format)
1063 --with-libjpeg use libjpeg (JPEG file format)
1064 --with-libtiff use libtiff (TIFF file format)
1065 --with-libxpm use libxpm (XPM file format)
1066 --with-libmspack use libmspack (CHM help files loading)
1067 --with-sdl use SDL for audio on Unix
d51253e8 1068 --with-gnomeprint use GNOME print for printing under Unix
a848cd7e
SC
1069 --with-opengl use OpenGL (or Mesa)
1070 --with-dmalloc use dmalloc library (http://dmalloc.com/)
1071 --with-regex enable support for wxRegEx class
1072 --with-zlib use zlib for LZW compression
1073 --with-odbc use the IODBC and wxODBC classes
1074 --with-expat enable XML support using expat parser
ceec2216 1075 --with-flavour=NAME specify a name to identify this build
a848cd7e
SC
1076 --with-gtk-prefix=PFX Prefix where GTK is installed (optional)
1077 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)
1078 --with-x use the X Window System
1079 --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib
1080 --with-sdl-prefix=PFX Prefix where SDL is installed (optional)
1081 --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional)
1082 --with-cppunit-prefix=PFX Prefix where CppUnit is installed (optional)
1083 --with-cppunit-exec-prefix=PFX Exec prefix where CppUnit is installed (optional)
1084
1085Some influential environment variables:
dcc1b6ad
VS
1086 CC C compiler command
1087 CFLAGS C compiler flags
1088 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1089 nonstandard directory <lib dir>
1090 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1091 headers in a nonstandard directory <include dir>
1092 CPP C preprocessor
1093 CXX C++ compiler command
1094 CXXFLAGS C++ compiler flags
1095 CXXCPP C++ preprocessor
a848cd7e
SC
1096
1097Use these variables to override the choices made by `configure' or to help
1098it to find libraries and programs with nonstandard names/locations.
1099
77ffb593 1100Report bugs to <wx-dev@lists.wxwidgets.org>.
a848cd7e
SC
1101_ACEOF
1102fi
1103
1104if test "$ac_init_help" = "recursive"; then
1105 # If there are subdirs, report their specific --help.
1106 ac_popdir=`pwd`
1107 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1108 test -d $ac_dir || continue
1109 ac_builddir=.
1110
1111if test "$ac_dir" != .; then
1112 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1113 # A "../" for each directory in $ac_dir_suffix.
1114 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1115else
1116 ac_dir_suffix= ac_top_builddir=
1117fi
1118
1119case $srcdir in
1120 .) # No --srcdir option. We are building in place.
1121 ac_srcdir=.
1122 if test -z "$ac_top_builddir"; then
1123 ac_top_srcdir=.
1124 else
1125 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1126 fi ;;
1127 [\\/]* | ?:[\\/]* ) # Absolute path.
1128 ac_srcdir=$srcdir$ac_dir_suffix;
1129 ac_top_srcdir=$srcdir ;;
1130 *) # Relative path.
1131 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1132 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1133esac
ac1cb8d3
VS
1134
1135# Do not use `cd foo && pwd` to compute absolute paths, because
1136# the directories may not exist.
1137case `pwd` in
1138.) ac_abs_builddir="$ac_dir";;
1139*)
1140 case "$ac_dir" in
1141 .) ac_abs_builddir=`pwd`;;
1142 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1143 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1144 esac;;
1145esac
1146case $ac_abs_builddir in
1147.) ac_abs_top_builddir=${ac_top_builddir}.;;
1148*)
1149 case ${ac_top_builddir}. in
1150 .) ac_abs_top_builddir=$ac_abs_builddir;;
1151 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1152 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1153 esac;;
1154esac
1155case $ac_abs_builddir in
1156.) ac_abs_srcdir=$ac_srcdir;;
1157*)
1158 case $ac_srcdir in
1159 .) ac_abs_srcdir=$ac_abs_builddir;;
1160 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1161 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1162 esac;;
1163esac
1164case $ac_abs_builddir in
1165.) ac_abs_top_srcdir=$ac_top_srcdir;;
1166*)
1167 case $ac_top_srcdir in
1168 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1169 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1170 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1171 esac;;
1172esac
a848cd7e
SC
1173
1174 cd $ac_dir
1175 # Check for guested configure; otherwise get Cygnus style configure.
1176 if test -f $ac_srcdir/configure.gnu; then
1177 echo
1178 $SHELL $ac_srcdir/configure.gnu --help=recursive
1179 elif test -f $ac_srcdir/configure; then
1180 echo
1181 $SHELL $ac_srcdir/configure --help=recursive
1182 elif test -f $ac_srcdir/configure.ac ||
ac1cb8d3 1183 test -f $ac_srcdir/configure.in; then
a848cd7e
SC
1184 echo
1185 $ac_configure --help
1186 else
1187 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1188 fi
89be85c2 1189 cd $ac_popdir
a848cd7e
SC
1190 done
1191fi
1192
1193test -n "$ac_init_help" && exit 0
1194if $ac_init_version; then
1195 cat <<\_ACEOF
81f90336 1196wxWidgets configure 2.5.4
ac1cb8d3 1197generated by GNU Autoconf 2.59
a848cd7e 1198
ac1cb8d3 1199Copyright (C) 2003 Free Software Foundation, Inc.
a848cd7e
SC
1200This configure script is free software; the Free Software Foundation
1201gives unlimited permission to copy, distribute and modify it.
1202_ACEOF
1203 exit 0
1204fi
1205exec 5>config.log
1206cat >&5 <<_ACEOF
1207This file contains any messages produced by compilers while
1208running configure, to aid debugging if configure makes a mistake.
1209
81f90336 1210It was created by wxWidgets $as_me 2.5.4, which was
ac1cb8d3 1211generated by GNU Autoconf 2.59. Invocation command line was
a848cd7e
SC
1212
1213 $ $0 $@
1214
1215_ACEOF
1216{
1217cat <<_ASUNAME
1218## --------- ##
1219## Platform. ##
1220## --------- ##
1221
1222hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1223uname -m = `(uname -m) 2>/dev/null || echo unknown`
1224uname -r = `(uname -r) 2>/dev/null || echo unknown`
1225uname -s = `(uname -s) 2>/dev/null || echo unknown`
1226uname -v = `(uname -v) 2>/dev/null || echo unknown`
1227
1228/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1229/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1230
1231/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1232/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1233/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1234hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1235/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1236/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1237/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1238
1239_ASUNAME
1240
1241as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1242for as_dir in $PATH
1243do
1244 IFS=$as_save_IFS
1245 test -z "$as_dir" && as_dir=.
1246 echo "PATH: $as_dir"
1247done
1248
1249} >&5
1250
1251cat >&5 <<_ACEOF
1252
1253
1254## ----------- ##
1255## Core tests. ##
1256## ----------- ##
1257
1258_ACEOF
1259
1260
1261# Keep a trace of the command line.
1262# Strip out --no-create and --no-recursion so they do not pile up.
1263# Strip out --silent because we don't want to record it for future runs.
1264# Also quote any args containing shell meta-characters.
1265# Make two passes to allow for proper duplicate-argument suppression.
1266ac_configure_args=
1267ac_configure_args0=
1268ac_configure_args1=
1269ac_sep=
1270ac_must_keep_next=false
1271for ac_pass in 1 2
1272do
1273 for ac_arg
1274 do
1275 case $ac_arg in
1276 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1277 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1278 | -silent | --silent | --silen | --sile | --sil)
1279 continue ;;
1280 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1281 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1282 esac
1283 case $ac_pass in
1284 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1285 2)
1286 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1287 if test $ac_must_keep_next = true; then
ac1cb8d3 1288 ac_must_keep_next=false # Got value, back to normal.
a848cd7e 1289 else
ac1cb8d3
VS
1290 case $ac_arg in
1291 *=* | --config-cache | -C | -disable-* | --disable-* \
1292 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1293 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1294 | -with-* | --with-* | -without-* | --without-* | --x)
1295 case "$ac_configure_args0 " in
1296 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1297 esac
1298 ;;
1299 -* ) ac_must_keep_next=true ;;
1300 esac
a848cd7e
SC
1301 fi
1302 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1303 # Get rid of the leading space.
1304 ac_sep=" "
1305 ;;
1306 esac
1307 done
1308done
1309$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1310$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1311
1312# When interrupted or exit'd, cleanup temporary files, and complete
1313# config.log. We remove comments because anyway the quotes in there
1314# would cause problems or look ugly.
1315# WARNING: Be sure not to use single quotes in there, as some shells,
1316# such as our DU 5.0 friend, will then `close' the trap.
1317trap 'exit_status=$?
1318 # Save into config.log some information that might help in debugging.
1319 {
1320 echo
1321
1322 cat <<\_ASBOX
1323## ---------------- ##
1324## Cache variables. ##
1325## ---------------- ##
1326_ASBOX
1327 echo
1328 # The following way of writing the cache mishandles newlines in values,
1329{
1330 (set) 2>&1 |
1331 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1332 *ac_space=\ *)
1333 sed -n \
ac1cb8d3
VS
1334 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1335 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
a848cd7e
SC
1336 ;;
1337 *)
1338 sed -n \
ac1cb8d3 1339 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
1340 ;;
1341 esac;
1342}
1343 echo
1344
1345 cat <<\_ASBOX
1346## ----------------- ##
1347## Output variables. ##
1348## ----------------- ##
1349_ASBOX
1350 echo
1351 for ac_var in $ac_subst_vars
1352 do
1353 eval ac_val=$`echo $ac_var`
1354 echo "$ac_var='"'"'$ac_val'"'"'"
1355 done | sort
1356 echo
1357
1358 if test -n "$ac_subst_files"; then
1359 cat <<\_ASBOX
1360## ------------- ##
1361## Output files. ##
1362## ------------- ##
1363_ASBOX
1364 echo
1365 for ac_var in $ac_subst_files
1366 do
1367 eval ac_val=$`echo $ac_var`
ac1cb8d3 1368 echo "$ac_var='"'"'$ac_val'"'"'"
a848cd7e
SC
1369 done | sort
1370 echo
1371 fi
1372
1373 if test -s confdefs.h; then
1374 cat <<\_ASBOX
1375## ----------- ##
1376## confdefs.h. ##
1377## ----------- ##
1378_ASBOX
1379 echo
1380 sed "/^$/d" confdefs.h | sort
1381 echo
1382 fi
1383 test "$ac_signal" != 0 &&
1384 echo "$as_me: caught signal $ac_signal"
1385 echo "$as_me: exit $exit_status"
1386 } >&5
ac1cb8d3 1387 rm -f core *.core &&
a848cd7e
SC
1388 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1389 exit $exit_status
1390 ' 0
1391for ac_signal in 1 2 13 15; do
1392 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1393done
1394ac_signal=0
1395
1396# confdefs.h avoids OS command line length limits that DEFS can exceed.
1397rm -rf conftest* confdefs.h
1398# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1399echo >confdefs.h
1400
1401# Predefined preprocessor variables.
1402
1403cat >>confdefs.h <<_ACEOF
1404#define PACKAGE_NAME "$PACKAGE_NAME"
1405_ACEOF
1406
1407
1408cat >>confdefs.h <<_ACEOF
1409#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1410_ACEOF
1411
1412
1413cat >>confdefs.h <<_ACEOF
1414#define PACKAGE_VERSION "$PACKAGE_VERSION"
1415_ACEOF
1416
1417
1418cat >>confdefs.h <<_ACEOF
1419#define PACKAGE_STRING "$PACKAGE_STRING"
1420_ACEOF
1421
1422
1423cat >>confdefs.h <<_ACEOF
1424#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1425_ACEOF
1426
1427
1428# Let the site file select an alternate cache file if it wants to.
1429# Prefer explicitly selected file to automatically selected ones.
1430if test -z "$CONFIG_SITE"; then
1431 if test "x$prefix" != xNONE; then
1432 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1433 else
1434 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1435 fi
1436fi
1437for ac_site_file in $CONFIG_SITE; do
1438 if test -r "$ac_site_file"; then
1439 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1440echo "$as_me: loading site script $ac_site_file" >&6;}
1441 sed 's/^/| /' "$ac_site_file" >&5
1442 . "$ac_site_file"
1443 fi
1444done
1445
1446if test -r "$cache_file"; then
1447 # Some versions of bash will fail to source /dev/null (special
1448 # files actually), so we avoid doing that.
1449 if test -f "$cache_file"; then
1450 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1451echo "$as_me: loading cache $cache_file" >&6;}
1452 case $cache_file in
1453 [\\/]* | ?:[\\/]* ) . $cache_file;;
1454 *) . ./$cache_file;;
1455 esac
1456 fi
1457else
1458 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1459echo "$as_me: creating cache $cache_file" >&6;}
1460 >$cache_file
1461fi
1462
1463# Check that the precious variables saved in the cache have kept the same
1464# value.
1465ac_cache_corrupted=false
1466for ac_var in `(set) 2>&1 |
ac1cb8d3 1467 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
a848cd7e
SC
1468 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1469 eval ac_new_set=\$ac_env_${ac_var}_set
1470 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1471 eval ac_new_val="\$ac_env_${ac_var}_value"
1472 case $ac_old_set,$ac_new_set in
1473 set,)
1474 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1475echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1476 ac_cache_corrupted=: ;;
1477 ,set)
1478 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1479echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1480 ac_cache_corrupted=: ;;
1481 ,);;
1482 *)
1483 if test "x$ac_old_val" != "x$ac_new_val"; then
ac1cb8d3 1484 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
a848cd7e 1485echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
ac1cb8d3 1486 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
a848cd7e 1487echo "$as_me: former value: $ac_old_val" >&2;}
ac1cb8d3 1488 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
a848cd7e 1489echo "$as_me: current value: $ac_new_val" >&2;}
ac1cb8d3 1490 ac_cache_corrupted=:
a848cd7e
SC
1491 fi;;
1492 esac
1493 # Pass precious variables to config.status.
1494 if test "$ac_new_set" = set; then
1495 case $ac_new_val in
1496 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1497 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1498 *) ac_arg=$ac_var=$ac_new_val ;;
1499 esac
1500 case " $ac_configure_args " in
1501 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1502 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1503 esac
1504 fi
1505done
1506if $ac_cache_corrupted; then
1507 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1508echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1509 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1510echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1511 { (exit 1); exit 1; }; }
1512fi
1513
1514ac_ext=c
1515ac_cpp='$CPP $CPPFLAGS'
1516ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1517ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1518ac_compiler_gnu=$ac_cv_c_compiler_gnu
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549ac_aux_dir=
1550for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1551 if test -f $ac_dir/install-sh; then
1552 ac_aux_dir=$ac_dir
1553 ac_install_sh="$ac_aux_dir/install-sh -c"
1554 break
1555 elif test -f $ac_dir/install.sh; then
1556 ac_aux_dir=$ac_dir
1557 ac_install_sh="$ac_aux_dir/install.sh -c"
1558 break
1559 elif test -f $ac_dir/shtool; then
1560 ac_aux_dir=$ac_dir
1561 ac_install_sh="$ac_aux_dir/shtool install -c"
1562 break
1563 fi
1564done
1565if test -z "$ac_aux_dir"; then
1566 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1567echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1568 { (exit 1); exit 1; }; }
1569fi
1570ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1571ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1572ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1573
1574# Make sure we can run config.sub.
1575$ac_config_sub sun4 >/dev/null 2>&1 ||
1576 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1577echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1578 { (exit 1); exit 1; }; }
1579
1580echo "$as_me:$LINENO: checking build system type" >&5
1581echo $ECHO_N "checking build system type... $ECHO_C" >&6
1582if test "${ac_cv_build+set}" = set; then
1583 echo $ECHO_N "(cached) $ECHO_C" >&6
1584else
1585 ac_cv_build_alias=$build_alias
1586test -z "$ac_cv_build_alias" &&
1587 ac_cv_build_alias=`$ac_config_guess`
1588test -z "$ac_cv_build_alias" &&
1589 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1590echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1591 { (exit 1); exit 1; }; }
1592ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1593 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1594echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1595 { (exit 1); exit 1; }; }
1596
1597fi
1598echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1599echo "${ECHO_T}$ac_cv_build" >&6
1600build=$ac_cv_build
1601build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1602build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1603build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1604
1605
1606echo "$as_me:$LINENO: checking host system type" >&5
1607echo $ECHO_N "checking host system type... $ECHO_C" >&6
1608if test "${ac_cv_host+set}" = set; then
1609 echo $ECHO_N "(cached) $ECHO_C" >&6
1610else
1611 ac_cv_host_alias=$host_alias
1612test -z "$ac_cv_host_alias" &&
1613 ac_cv_host_alias=$ac_cv_build_alias
1614ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1615 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1616echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1617 { (exit 1); exit 1; }; }
1618
1619fi
1620echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1621echo "${ECHO_T}$ac_cv_host" >&6
1622host=$ac_cv_host
1623host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1624host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1625host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1626
1627
1628echo "$as_me:$LINENO: checking target system type" >&5
1629echo $ECHO_N "checking target system type... $ECHO_C" >&6
1630if test "${ac_cv_target+set}" = set; then
1631 echo $ECHO_N "(cached) $ECHO_C" >&6
1632else
1633 ac_cv_target_alias=$target_alias
1634test "x$ac_cv_target_alias" = "x" &&
1635 ac_cv_target_alias=$ac_cv_host_alias
1636ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1637 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1638echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1639 { (exit 1); exit 1; }; }
1640
1641fi
1642echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1643echo "${ECHO_T}$ac_cv_target" >&6
1644target=$ac_cv_target
1645target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1646target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1647target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1648
1649
1650# The aliases save the names the user supplied, while $host etc.
1651# will get canonicalized.
1652test -n "$target_alias" &&
1653 test "$program_prefix$program_suffix$program_transform_name" = \
1654 NONENONEs,x,x, &&
1655 program_prefix=${target_alias}-
1656
1657
1658
ceec2216
RL
1659wx_major_version_number=2
1660wx_minor_version_number=5
e41c39d6 1661wx_release_number=4
2da0c077 1662wx_subrelease_number=1
a848cd7e 1663
ceec2216
RL
1664WX_RELEASE=$wx_major_version_number.$wx_minor_version_number
1665WX_VERSION=$WX_RELEASE.$wx_release_number
1666WX_SUBVERSION=$WX_VERSION.$wx_subrelease_number
a848cd7e 1667
ceec2216 1668WX_MSW_VERSION=$wx_major_version_number$wx_minor_version_number$wx_release_number
a848cd7e 1669
e41c39d6 1670WX_CURRENT=4
a848cd7e 1671WX_REVISION=0
e41c39d6 1672WX_AGE=4
a848cd7e
SC
1673
1674
1675
1676USE_UNIX=1
1677USE_OS2=0
1678USE_WIN32=0
1679USE_DOS=0
1680USE_BEOS=0
1681USE_MAC=0
1682
1683USE_AIX=
1684USE_BSD= USE_DARWIN= USE_FREEBSD=
1685USE_GNU= USE_HPUX=
1686USE_LINUX=
1687USE_NETBSD=
1688USE_OPENBSD=
1689USE_OSF= USE_SGI=
1690USE_SOLARIS= USE_SUN= USE_SUNOS= USE_SVR4= USE_SYSV= USE_VMS=
1691USE_ULTRIX=
1692USE_UNIXWARE=
1693
1694USE_ALPHA=
1695
1696NEEDS_D_REENTRANT_FOR_R_FUNCS=0
1697
1698ALL_TOOLKITS="COCOA GTK MAC MGL MICROWIN MOTIF MSW PM X11"
1699
1700DEFAULT_wxUSE_COCOA=0
1701DEFAULT_wxUSE_GTK=0
1702DEFAULT_wxUSE_MAC=0
1703DEFAULT_wxUSE_MGL=0
1704DEFAULT_wxUSE_MICROWIN=0
1705DEFAULT_wxUSE_MOTIF=0
1706DEFAULT_wxUSE_MSW=0
1707DEFAULT_wxUSE_PM=0
1708DEFAULT_wxUSE_X11=0
1709
1710DEFAULT_DEFAULT_wxUSE_COCOA=0
1711DEFAULT_DEFAULT_wxUSE_GTK=0
1712DEFAULT_DEFAULT_wxUSE_MAC=0
1713DEFAULT_DEFAULT_wxUSE_MGL=0
1714DEFAULT_DEFAULT_wxUSE_MICROWIN=0
1715DEFAULT_DEFAULT_wxUSE_MOTIF=0
1716DEFAULT_DEFAULT_wxUSE_MSW=0
1717DEFAULT_DEFAULT_wxUSE_PM=0
1718DEFAULT_DEFAULT_wxUSE_X11=0
1719
1720PROGRAM_EXT=
1721SO_SUFFIX=so
1722SAMPLES_RPATH_FLAG=
1723SAMPLES_RPATH_POSTLINK=
1724
1725case "${host}" in
1726 *-hp-hpux* )
1727 USE_HPUX=1
1728 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1729 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1730 SO_SUFFIX=sl
1731 cat >>confdefs.h <<\_ACEOF
1732#define __HPUX__ 1
1733_ACEOF
1734
1735 ;;
1736 *-*-linux* )
1737 USE_LINUX=1
1738 cat >>confdefs.h <<\_ACEOF
1739#define __LINUX__ 1
1740_ACEOF
1741
1742 TMP=`uname -m`
1743 if test "x$TMP" = "xalpha"; then
1744 USE_ALPHA=1
1745 cat >>confdefs.h <<\_ACEOF
1746#define __ALPHA__ 1
1747_ACEOF
1748
1749 fi
1750 DEFAULT_DEFAULT_wxUSE_GTK=1
1751 ;;
1752 *-*-gnu* | *-*-k*bsd*-gnu )
1753 USE_GNU=1
1754 TMP=`uname -m`
1755 if test "x$TMP" = "xalpha"; then
1756 USE_ALPHA=1
1757 cat >>confdefs.h <<\_ACEOF
1758#define __ALPHA__ 1
1759_ACEOF
1760
1761 fi
1762 DEFAULT_DEFAULT_wxUSE_GTK=1
1763 ;;
1764 *-*-irix5* | *-*-irix6* )
1765 USE_SGI=1
1766 USE_SVR4=1
1767 cat >>confdefs.h <<\_ACEOF
1768#define __SGI__ 1
1769_ACEOF
1770
1771 cat >>confdefs.h <<\_ACEOF
1772#define __SVR4__ 1
1773_ACEOF
1774
1775 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1776 ;;
1777 *-*-solaris2* )
1778 USE_SUN=1
1779 USE_SOLARIS=1
1780 USE_SVR4=1
1781 cat >>confdefs.h <<\_ACEOF
1782#define __SUN__ 1
1783_ACEOF
1784
1785 cat >>confdefs.h <<\_ACEOF
1786#define __SOLARIS__ 1
1787_ACEOF
1788
1789 cat >>confdefs.h <<\_ACEOF
1790#define __SVR4__ 1
1791_ACEOF
1792
1793 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1794 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1795 ;;
1796 *-*-sunos4* )
1797 USE_SUN=1
1798 USE_SUNOS=1
1799 USE_BSD=1
1800 cat >>confdefs.h <<\_ACEOF
1801#define __SUN__ 1
1802_ACEOF
1803
1804 cat >>confdefs.h <<\_ACEOF
1805#define __SUNOS__ 1
1806_ACEOF
1807
1808 cat >>confdefs.h <<\_ACEOF
1809#define __BSD__ 1
1810_ACEOF
1811
1812 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1813 ;;
1814 *-*-freebsd*)
1815 USE_BSD=1
1816 USE_FREEBSD=1
1817 cat >>confdefs.h <<\_ACEOF
1818#define __FREEBSD__ 1
1819_ACEOF
1820
1821 cat >>confdefs.h <<\_ACEOF
1822#define __BSD__ 1
1823_ACEOF
1824
1825 DEFAULT_DEFAULT_wxUSE_GTK=1
1826 ;;
1827 *-*-openbsd*)
1828 USE_BSD=1
1829 USE_OPENBSD=1
1830 cat >>confdefs.h <<\_ACEOF
1831#define __OPENBSD__ 1
1832_ACEOF
1833
1834 cat >>confdefs.h <<\_ACEOF
1835#define __BSD__ 1
1836_ACEOF
1837
1838 DEFAULT_DEFAULT_wxUSE_GTK=1
1839 ;;
1840 *-*-netbsd*)
1841 USE_BSD=1
1842 USE_NETBSD=1
1843 cat >>confdefs.h <<\_ACEOF
1844#define __NETBSD__ 1
1845_ACEOF
1846
1847 cat >>confdefs.h <<\_ACEOF
1848#define __BSD__ 1
1849_ACEOF
1850
1851 DEFAULT_DEFAULT_wxUSE_GTK=1
1852 ;;
1853 *-*-osf* )
1854 USE_ALPHA=1
1855 USE_OSF=1
1856 cat >>confdefs.h <<\_ACEOF
1857#define __ALPHA__ 1
1858_ACEOF
1859
1860 cat >>confdefs.h <<\_ACEOF
1861#define __OSF__ 1
1862_ACEOF
1863
1864 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1865 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1866 ;;
1867 *-*-dgux5* )
1868 USE_ALPHA=1
1869 USE_SVR4=1
1870 cat >>confdefs.h <<\_ACEOF
1871#define __ALPHA__ 1
1872_ACEOF
1873
1874 cat >>confdefs.h <<\_ACEOF
1875#define __SVR4__ 1
1876_ACEOF
1877
1878 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1879 ;;
1880 *-*-sysv5* )
1881 USE_SYSV=1
1882 USE_SVR4=1
1883 cat >>confdefs.h <<\_ACEOF
1884#define __SYSV__ 1
1885_ACEOF
1886
1887 cat >>confdefs.h <<\_ACEOF
1888#define __SVR4__ 1
1889_ACEOF
1890
1891 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1892 ;;
1893 *-*-aix* )
1894 USE_AIX=1
1895 USE_SYSV=1
1896 USE_SVR4=1
1897 SO_SUFFIX=a
1898 cat >>confdefs.h <<\_ACEOF
1899#define __AIX__ 1
1900_ACEOF
1901
1902 cat >>confdefs.h <<\_ACEOF
1903#define __SYSV__ 1
1904_ACEOF
1905
1906 cat >>confdefs.h <<\_ACEOF
1907#define __SVR4__ 1
1908_ACEOF
1909
1910 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1911 ;;
1912
1913 *-*-*UnixWare*)
1914 USE_SYSV=1
1915 USE_SVR4=1
1916 USE_UNIXWARE=1
1917 cat >>confdefs.h <<\_ACEOF
1918#define __UNIXWARE__ 1
1919_ACEOF
1920
1921 ;;
1922
1923 *-*-cygwin* | *-*-mingw32* )
1924 SO_SUFFIX=dll
1925 PROGRAM_EXT=".exe"
1926 RESCOMP=windres
1927 DEFAULT_DEFAULT_wxUSE_MSW=1
1928 ;;
1929
1930 *-pc-msdosdjgpp )
1931 USE_UNIX=0
1932 USE_DOS=1
1933 cat >>confdefs.h <<\_ACEOF
1934#define __DOS__ 1
1935_ACEOF
1936
1937 PROGRAM_EXT=".exe"
1938 DEFAULT_DEFAULT_wxUSE_MGL=1
1939 LIBS="$LIBS -lstdc++"
1940 ;;
1941
1942 *-pc-os2_emx | *-pc-os2-emx )
1943 cat >>confdefs.h <<\_ACEOF
1944#define __EMX__ 1
1945_ACEOF
1946
1947 USE_OS2=1
1948 cat >>confdefs.h <<\_ACEOF
1949#define __OS2__ 1
1950_ACEOF
1951
1952 PROGRAM_EXT=".exe"
1953 DEFAULT_DEFAULT_wxUSE_PM=1
1954 CXX=gcc
1955 LDFLAGS="$LDFLAGS -Zcrtdll"
1956 ac_executable_extensions=".exe"
1957 export ac_executable_extensions
1958 ac_save_IFS="$IFS"
1959 IFS='\\'
1960 ac_TEMP_PATH=
1961 for ac_dir in $PATH; do
1962 IFS=$ac_save_IFS
1963 if test -z "$ac_TEMP_PATH"; then
1964 ac_TEMP_PATH="$ac_dir"
1965 else
1966 ac_TEMP_PATH="$ac_TEMP_PATH/$ac_dir"
1967 fi
1968 done
1969 export PATH="$ac_TEMP_PATH"
1970 unset ac_TEMP_PATH
1971 ;;
1972
1973 powerpc-*-darwin* )
1974 USE_BSD=1
1975 USE_DARWIN=1
1976 SO_SUFFIX=dylib
1977 cat >>confdefs.h <<\_ACEOF
1978#define __BSD__ 1
1979_ACEOF
1980
1981 cat >>confdefs.h <<\_ACEOF
1982#define __DARWIN__ 1
a848cd7e
SC
1983_ACEOF
1984
1985 cat >>confdefs.h <<\_ACEOF
1986#define TARGET_CARBON 1
1987_ACEOF
1988
1989 DEFAULT_DEFAULT_wxUSE_MAC=1
1990 ;;
1e9e8aba
DE
1991 powerpc-apple-macos* )
1992 USE_UNIX=0
1993 ac_cv_c_bigendian=yes
1994 SO_SUFFIX=shlib
1995 DEFAULT_DEFAULT_wxUSE_MAC=1
1996 ;;
a848cd7e
SC
1997
1998 *-*-beos* )
1999 USE_BEOS=1
2000 cat >>confdefs.h <<\_ACEOF
2001#define __BEOS__ 1
2002_ACEOF
2003
2004 ;;
2005
2006 *)
2007 { { echo "$as_me:$LINENO: error: unknown system type ${host}." >&5
2008echo "$as_me: error: unknown system type ${host}." >&2;}
2009 { (exit 1); exit 1; }; }
2010esac
2011
2012
2013
2014
2015 wx_arg_cache_file="configarg.cache"
2016 echo "loading argument cache $wx_arg_cache_file"
2017 rm -f ${wx_arg_cache_file}.tmp
2018 touch ${wx_arg_cache_file}.tmp
2019 touch ${wx_arg_cache_file}
2020
2021
2022DEBUG_CONFIGURE=0
2023if test $DEBUG_CONFIGURE = 1; then
2024 DEFAULT_wxUSE_UNIVERSAL=no
2025 DEFAULT_wxUSE_STL=no
2026
2027 DEFAULT_wxUSE_NANOX=no
2028
2029 DEFAULT_wxUSE_THREADS=yes
2030
2031 DEFAULT_wxUSE_SHARED=yes
2032 DEFAULT_wxUSE_OPTIMISE=no
2033 DEFAULT_wxUSE_PROFILE=no
2034 DEFAULT_wxUSE_NO_DEPS=no
2035 DEFAULT_wxUSE_NO_RTTI=no
2036 DEFAULT_wxUSE_NO_EXCEPTIONS=no
ffa0583f 2037 DEFAULT_wxUSE_RPATH=yes
a848cd7e
SC
2038 DEFAULT_wxUSE_PERMISSIVE=no
2039 DEFAULT_wxUSE_DEBUG_FLAG=yes
2040 DEFAULT_wxUSE_DEBUG_INFO=yes
2041 DEFAULT_wxUSE_DEBUG_GDB=yes
2042 DEFAULT_wxUSE_MEM_TRACING=no
2043 DEFAULT_wxUSE_DEBUG_CONTEXT=no
2044 DEFAULT_wxUSE_DMALLOC=no
2045 DEFAULT_wxUSE_APPLE_IEEE=no
2046
2047 DEFAULT_wxUSE_EXCEPTIONS=no
2048 DEFAULT_wxUSE_LOG=yes
2049 DEFAULT_wxUSE_LOGWINDOW=no
2050 DEFAULT_wxUSE_LOGGUI=no
2051 DEFAULT_wxUSE_LOGDIALOG=no
2052
2053 DEFAULT_wxUSE_GUI=yes
2054 DEFAULT_wxUSE_CONTROLS=no
2055
2056 DEFAULT_wxUSE_REGEX=no
2057 DEFAULT_wxUSE_XML=no
2058 DEFAULT_wxUSE_EXPAT=no
2059 DEFAULT_wxUSE_ZLIB=no
2060 DEFAULT_wxUSE_LIBPNG=no
2061 DEFAULT_wxUSE_LIBJPEG=no
2062 DEFAULT_wxUSE_LIBTIFF=no
2063 DEFAULT_wxUSE_LIBXPM=no
2064 DEFAULT_wxUSE_LIBMSPACK=no
2065 DEFAULT_wxUSE_LIBSDL=no
d1c38808 2066 DEFAULT_wxUSE_LIBGNOMEPRINT=no
a848cd7e
SC
2067 DEFAULT_wxUSE_ODBC=no
2068 DEFAULT_wxUSE_OPENGL=no
2069
2070 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=no
eaff0f0d 2071 DEFAULT_wxUSE_STACKWALKER=no
a848cd7e
SC
2072 DEFAULT_wxUSE_SNGLINST_CHECKER=no
2073 DEFAULT_wxUSE_STD_IOSTREAM=no
2074 DEFAULT_wxUSE_CMDLINE_PARSER=no
2075 DEFAULT_wxUSE_DATETIME=no
2076 DEFAULT_wxUSE_TIMER=no
2077 DEFAULT_wxUSE_STOPWATCH=no
2078 DEFAULT_wxUSE_FILE=no
2079 DEFAULT_wxUSE_FFILE=no
2080 DEFAULT_wxUSE_TEXTBUFFER=no
2081 DEFAULT_wxUSE_TEXTFILE=no
2082 DEFAULT_wxUSE_SOUND=no
3b57de8b
RL
2083 DEFAULT_wxUSE_MEDIACTRL=no
2084 DEFAULT_wxUSE_DIRECTSHOW=no
a848cd7e
SC
2085 DEFAULT_wxUSE_INTL=no
2086 DEFAULT_wxUSE_CONFIG=no
2087 DEFAULT_wxUSE_FONTMAP=no
2088 DEFAULT_wxUSE_STREAMS=no
2089 DEFAULT_wxUSE_SOCKETS=no
2090 DEFAULT_wxUSE_OLE=no
2091 DEFAULT_wxUSE_DATAOBJ=no
2092 DEFAULT_wxUSE_DIALUP_MANAGER=no
2093 DEFAULT_wxUSE_JOYSTICK=no
2094 DEFAULT_wxUSE_DYNLIB_CLASS=no
2095 DEFAULT_wxUSE_DYNAMIC_LOADER=no
2096 DEFAULT_wxUSE_LONGLONG=no
2097 DEFAULT_wxUSE_GEOMETRY=no
2098
2099 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no
2100 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no
2101 DEFAULT_wxUSE_POSTSCRIPT=no
2102
2103 DEFAULT_wxUSE_CLIPBOARD=no
2104 DEFAULT_wxUSE_TOOLTIPS=no
2105 DEFAULT_wxUSE_DRAG_AND_DROP=no
2106 DEFAULT_wxUSE_DRAGIMAGE=no
2107 DEFAULT_wxUSE_SPLINES=no
2108
8a7b1113 2109 DEFAULT_wxUSE_MDI=no
a848cd7e
SC
2110 DEFAULT_wxUSE_MDI_ARCHITECTURE=no
2111 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no
2112 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no
2113
2114 DEFAULT_wxUSE_RESOURCES=no
2115 DEFAULT_wxUSE_CONSTRAINTS=no
2116 DEFAULT_wxUSE_IPC=no
2117 DEFAULT_wxUSE_HELP=no
2118 DEFAULT_wxUSE_MS_HTML_HELP=no
2119 DEFAULT_wxUSE_WXHTML_HELP=no
2120 DEFAULT_wxUSE_TREELAYOUT=no
2121 DEFAULT_wxUSE_METAFILE=no
2122 DEFAULT_wxUSE_MIMETYPE=no
2123 DEFAULT_wxUSE_SYSTEM_OPTIONS=no
2124 DEFAULT_wxUSE_PROTOCOL=no
2125 DEFAULT_wxUSE_PROTOCOL_HTTP=no
2126 DEFAULT_wxUSE_PROTOCOL_FTP=no
2127 DEFAULT_wxUSE_PROTOCOL_FILE=no
2128 DEFAULT_wxUSE_URL=no
2129
2130 DEFAULT_wxUSE_COMMONDLGS=no
2131 DEFAULT_wxUSE_CHOICEDLG=no
2132 DEFAULT_wxUSE_COLOURDLG=no
2133 DEFAULT_wxUSE_DIRDLG=no
2134 DEFAULT_wxUSE_FILEDLG=no
2135 DEFAULT_wxUSE_FINDREPLDLG=no
2136 DEFAULT_wxUSE_FONTDLG=no
2137 DEFAULT_wxUSE_MSGDLG=no
2138 DEFAULT_wxUSE_NUMBERDLG=no
2139 DEFAULT_wxUSE_TEXTDLG=no
2140 DEFAULT_wxUSE_SPLASH=no
2141 DEFAULT_wxUSE_STARTUP_TIPS=no
2142 DEFAULT_wxUSE_PROGRESSDLG=no
2143 DEFAULT_wxUSE_WIZARDDLG=no
2144
2145 DEFAULT_wxUSE_MENUS=no
2146 DEFAULT_wxUSE_MINIFRAME=no
2147 DEFAULT_wxUSE_HTML=no
9a8f0513 2148 DEFAULT_wxUSE_XRC=no
646b6ec1 2149 DEFAULT_wxUSE_WEBKIT=no
a848cd7e
SC
2150 DEFAULT_wxUSE_FILESYSTEM=no
2151 DEFAULT_wxUSE_FS_INET=no
2152 DEFAULT_wxUSE_FS_ZIP=no
2153 DEFAULT_wxUSE_BUSYINFO=no
9e8e867f 2154 DEFAULT_wxUSE_ARCHIVE_STREAMS=no
a848cd7e 2155 DEFAULT_wxUSE_ZIPSTREAM=no
a848cd7e
SC
2156 DEFAULT_wxUSE_VALIDATORS=no
2157
2158 DEFAULT_wxUSE_ACCEL=no
2159 DEFAULT_wxUSE_BUTTON=no
2160 DEFAULT_wxUSE_BMPBUTTON=no
2161 DEFAULT_wxUSE_CALCTRL=no
2162 DEFAULT_wxUSE_CARET=no
2163 DEFAULT_wxUSE_CHECKBOX=no
2164 DEFAULT_wxUSE_CHECKLST=no
2165 DEFAULT_wxUSE_CHOICE=no
92bbdbcd 2166 DEFAULT_wxUSE_CHOICEBOOK=no
a848cd7e 2167 DEFAULT_wxUSE_COMBOBOX=no
da98e9be 2168 DEFAULT_wxUSE_DATEPICKCTRL=no
a848cd7e
SC
2169 DEFAULT_wxUSE_DISPLAY=no
2170 DEFAULT_wxUSE_GAUGE=no
2171 DEFAULT_wxUSE_GRID=no
2172 DEFAULT_wxUSE_IMAGLIST=no
2173 DEFAULT_wxUSE_LISTBOOK=no
2174 DEFAULT_wxUSE_LISTBOX=no
2175 DEFAULT_wxUSE_LISTCTRL=no
2176 DEFAULT_wxUSE_NOTEBOOK=no
2177 DEFAULT_wxUSE_RADIOBOX=no
2178 DEFAULT_wxUSE_RADIOBTN=no
2179 DEFAULT_wxUSE_SASH=no
2180 DEFAULT_wxUSE_SCROLLBAR=no
2181 DEFAULT_wxUSE_SLIDER=no
2182 DEFAULT_wxUSE_SPINBTN=no
2183 DEFAULT_wxUSE_SPINCTRL=no
2184 DEFAULT_wxUSE_SPLITTER=no
2185 DEFAULT_wxUSE_STATBMP=no
2186 DEFAULT_wxUSE_STATBOX=no
2187 DEFAULT_wxUSE_STATLINE=no
2188 DEFAULT_wxUSE_STATTEXT=no
2189 DEFAULT_wxUSE_STATUSBAR=yes
2190 DEFAULT_wxUSE_TABDIALOG=no
2191 DEFAULT_wxUSE_TEXTCTRL=no
2192 DEFAULT_wxUSE_TOGGLEBTN=no
2193 DEFAULT_wxUSE_TOOLBAR=no
2194 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
2195 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
2196 DEFAULT_wxUSE_TREECTRL=no
2197 DEFAULT_wxUSE_POPUPWIN=no
2198 DEFAULT_wxUSE_TIPWINDOW=no
2199
2200 DEFAULT_wxUSE_UNICODE=no
2201 DEFAULT_wxUSE_UNICODE_MSLU=no
2202 DEFAULT_wxUSE_WCSRTOMBS=no
2203
2204 DEFAULT_wxUSE_PALETTE=no
2205 DEFAULT_wxUSE_IMAGE=no
2206 DEFAULT_wxUSE_GIF=no
2207 DEFAULT_wxUSE_PCX=no
2208 DEFAULT_wxUSE_PNM=no
2209 DEFAULT_wxUSE_IFF=no
2210 DEFAULT_wxUSE_XPM=no
2211 DEFAULT_wxUSE_ICO_CUR=no
2212 DEFAULT_wxUSE_ACCESSIBILITY=no
2213
2214 DEFAULT_wxUSE_MONOLITHIC=no
2215 DEFAULT_wxUSE_PLUGINS=no
2216 DEFAULT_wxUSE_OFFICIAL_BUILD=no
2217else
2218 DEFAULT_wxUSE_UNIVERSAL=no
2219 DEFAULT_wxUSE_STL=no
2220
2221 DEFAULT_wxUSE_NANOX=no
2222
2223 DEFAULT_wxUSE_THREADS=yes
2224
2225 DEFAULT_wxUSE_SHARED=yes
2226 DEFAULT_wxUSE_OPTIMISE=yes
2227 DEFAULT_wxUSE_PROFILE=no
2228 DEFAULT_wxUSE_NO_DEPS=no
2229 DEFAULT_wxUSE_NO_RTTI=no
2230 DEFAULT_wxUSE_NO_EXCEPTIONS=no
ffa0583f 2231 DEFAULT_wxUSE_RPATH=yes
a848cd7e
SC
2232 DEFAULT_wxUSE_PERMISSIVE=no
2233 DEFAULT_wxUSE_DEBUG_FLAG=no
2234 DEFAULT_wxUSE_DEBUG_INFO=no
2235 DEFAULT_wxUSE_DEBUG_GDB=no
2236 DEFAULT_wxUSE_MEM_TRACING=no
2237 DEFAULT_wxUSE_DEBUG_CONTEXT=no
2238 DEFAULT_wxUSE_DMALLOC=no
2239 DEFAULT_wxUSE_APPLE_IEEE=yes
2240
2241 DEFAULT_wxUSE_EXCEPTIONS=yes
2242 DEFAULT_wxUSE_LOG=yes
2243 DEFAULT_wxUSE_LOGWINDOW=yes
2244 DEFAULT_wxUSE_LOGGUI=yes
2245 DEFAULT_wxUSE_LOGDIALOG=yes
2246
2247 DEFAULT_wxUSE_GUI=yes
2248
2249 DEFAULT_wxUSE_REGEX=yes
2250 DEFAULT_wxUSE_XML=yes
2251 DEFAULT_wxUSE_EXPAT=yes
2252 DEFAULT_wxUSE_ZLIB=yes
2253 DEFAULT_wxUSE_LIBPNG=yes
2254 DEFAULT_wxUSE_LIBJPEG=yes
2255 DEFAULT_wxUSE_LIBTIFF=yes
2256 DEFAULT_wxUSE_LIBXPM=yes
2257 DEFAULT_wxUSE_LIBMSPACK=yes
2258 DEFAULT_wxUSE_LIBSDL=no
d1c38808 2259 DEFAULT_wxUSE_LIBGNOMEPRINT=no
a848cd7e
SC
2260 DEFAULT_wxUSE_ODBC=no
2261 DEFAULT_wxUSE_OPENGL=no
2262
2263 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=yes
eaff0f0d 2264 DEFAULT_wxUSE_STACKWALKER=yes
a848cd7e
SC
2265 DEFAULT_wxUSE_SNGLINST_CHECKER=yes
2266 DEFAULT_wxUSE_STD_IOSTREAM=no
2267 DEFAULT_wxUSE_CMDLINE_PARSER=yes
2268 DEFAULT_wxUSE_DATETIME=yes
2269 DEFAULT_wxUSE_TIMER=yes
2270 DEFAULT_wxUSE_STOPWATCH=yes
2271 DEFAULT_wxUSE_FILE=yes
2272 DEFAULT_wxUSE_FFILE=yes
2273 DEFAULT_wxUSE_TEXTBUFFER=yes
2274 DEFAULT_wxUSE_TEXTFILE=yes
2275 DEFAULT_wxUSE_SOUND=yes
3b57de8b
RL
2276 DEFAULT_wxUSE_MEDIACTRL=no
2277 DEFAULT_wxUSE_DIRECTSHOW=no
a848cd7e
SC
2278 DEFAULT_wxUSE_INTL=yes
2279 DEFAULT_wxUSE_CONFIG=yes
2280 DEFAULT_wxUSE_FONTMAP=yes
2281 DEFAULT_wxUSE_STREAMS=yes
2282 DEFAULT_wxUSE_SOCKETS=yes
2283 DEFAULT_wxUSE_OLE=yes
2284 DEFAULT_wxUSE_DATAOBJ=yes
2285 DEFAULT_wxUSE_DIALUP_MANAGER=yes
2286 DEFAULT_wxUSE_JOYSTICK=yes
2287 DEFAULT_wxUSE_DYNLIB_CLASS=yes
2288 DEFAULT_wxUSE_DYNAMIC_LOADER=yes
2289 DEFAULT_wxUSE_LONGLONG=yes
2290 DEFAULT_wxUSE_GEOMETRY=yes
2291
2292 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes
2293 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes
2294 DEFAULT_wxUSE_POSTSCRIPT=yes
2295
2296 DEFAULT_wxUSE_CLIPBOARD=yes
2297 DEFAULT_wxUSE_TOOLTIPS=yes
2298 DEFAULT_wxUSE_DRAG_AND_DROP=yes
2299 DEFAULT_wxUSE_DRAGIMAGE=yes
2300 DEFAULT_wxUSE_SPLINES=yes
2301
8a7b1113 2302 DEFAULT_wxUSE_MDI=yes
a848cd7e
SC
2303 DEFAULT_wxUSE_MDI_ARCHITECTURE=yes
2304 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes
2305 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes
2306
2307 DEFAULT_wxUSE_RESOURCES=no
2308 DEFAULT_wxUSE_CONSTRAINTS=yes
2309 DEFAULT_wxUSE_IPC=yes
2310 DEFAULT_wxUSE_HELP=yes
2311 DEFAULT_wxUSE_MS_HTML_HELP=yes
2312 DEFAULT_wxUSE_WXHTML_HELP=yes
2313 DEFAULT_wxUSE_TREELAYOUT=yes
2314 DEFAULT_wxUSE_METAFILE=yes
2315 DEFAULT_wxUSE_MIMETYPE=yes
2316 DEFAULT_wxUSE_SYSTEM_OPTIONS=yes
2317 DEFAULT_wxUSE_PROTOCOL=yes
2318 DEFAULT_wxUSE_PROTOCOL_HTTP=yes
2319 DEFAULT_wxUSE_PROTOCOL_FTP=yes
2320 DEFAULT_wxUSE_PROTOCOL_FILE=yes
2321 DEFAULT_wxUSE_URL=yes
2322
2323 DEFAULT_wxUSE_COMMONDLGS=yes
2324 DEFAULT_wxUSE_CHOICEDLG=yes
2325 DEFAULT_wxUSE_COLOURDLG=yes
2326 DEFAULT_wxUSE_DIRDLG=yes
2327 DEFAULT_wxUSE_FILEDLG=yes
2328 DEFAULT_wxUSE_FINDREPLDLG=yes
2329 DEFAULT_wxUSE_FONTDLG=yes
2330 DEFAULT_wxUSE_MSGDLG=yes
2331 DEFAULT_wxUSE_NUMBERDLG=yes
2332 DEFAULT_wxUSE_TEXTDLG=yes
2333 DEFAULT_wxUSE_SPLASH=yes
2334 DEFAULT_wxUSE_STARTUP_TIPS=yes
2335 DEFAULT_wxUSE_PROGRESSDLG=yes
2336 DEFAULT_wxUSE_WIZARDDLG=yes
2337
2338 DEFAULT_wxUSE_MENUS=yes
2339 DEFAULT_wxUSE_MINIFRAME=yes
2340 DEFAULT_wxUSE_HTML=yes
9a8f0513 2341 DEFAULT_wxUSE_XRC=yes
646b6ec1 2342 DEFAULT_wxUSE_WEBKIT=yes
a848cd7e
SC
2343 DEFAULT_wxUSE_FILESYSTEM=yes
2344 DEFAULT_wxUSE_FS_INET=yes
2345 DEFAULT_wxUSE_FS_ZIP=yes
2346 DEFAULT_wxUSE_BUSYINFO=yes
9e8e867f 2347 DEFAULT_wxUSE_ARCHIVE_STREAMS=yes
a848cd7e 2348 DEFAULT_wxUSE_ZIPSTREAM=yes
a848cd7e
SC
2349 DEFAULT_wxUSE_VALIDATORS=yes
2350
2351 DEFAULT_wxUSE_ACCEL=yes
2352 DEFAULT_wxUSE_BUTTON=yes
2353 DEFAULT_wxUSE_BMPBUTTON=yes
2354 DEFAULT_wxUSE_CALCTRL=yes
2355 DEFAULT_wxUSE_CARET=yes
2356 DEFAULT_wxUSE_CHECKBOX=yes
2357 DEFAULT_wxUSE_CHECKLST=yes
2358 DEFAULT_wxUSE_CHOICE=yes
92bbdbcd 2359 DEFAULT_wxUSE_CHOICEBOOK=yes
a848cd7e 2360 DEFAULT_wxUSE_COMBOBOX=yes
da98e9be 2361 DEFAULT_wxUSE_DATEPICKCTRL=yes
a848cd7e
SC
2362 DEFAULT_wxUSE_DISPLAY=yes
2363 DEFAULT_wxUSE_GAUGE=yes
2364 DEFAULT_wxUSE_GRID=yes
2365 DEFAULT_wxUSE_IMAGLIST=yes
2366 DEFAULT_wxUSE_LISTBOOK=yes
2367 DEFAULT_wxUSE_LISTBOX=yes
2368 DEFAULT_wxUSE_LISTCTRL=yes
2369 DEFAULT_wxUSE_NOTEBOOK=yes
2370 DEFAULT_wxUSE_RADIOBOX=yes
2371 DEFAULT_wxUSE_RADIOBTN=yes
2372 DEFAULT_wxUSE_SASH=yes
2373 DEFAULT_wxUSE_SCROLLBAR=yes
2374 DEFAULT_wxUSE_SLIDER=yes
2375 DEFAULT_wxUSE_SPINBTN=yes
2376 DEFAULT_wxUSE_SPINCTRL=yes
2377 DEFAULT_wxUSE_SPLITTER=yes
2378 DEFAULT_wxUSE_STATBMP=yes
2379 DEFAULT_wxUSE_STATBOX=yes
2380 DEFAULT_wxUSE_STATLINE=yes
2381 DEFAULT_wxUSE_STATTEXT=yes
2382 DEFAULT_wxUSE_STATUSBAR=yes
2383 DEFAULT_wxUSE_TABDIALOG=no
2384 DEFAULT_wxUSE_TEXTCTRL=yes
2385 DEFAULT_wxUSE_TOGGLEBTN=yes
2386 DEFAULT_wxUSE_TOOLBAR=yes
2387 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
2388 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
2389 DEFAULT_wxUSE_TREECTRL=yes
2390 DEFAULT_wxUSE_POPUPWIN=yes
2391 DEFAULT_wxUSE_TIPWINDOW=yes
2392
2393 DEFAULT_wxUSE_UNICODE=no
2394 DEFAULT_wxUSE_UNICODE_MSLU=yes
2395 DEFAULT_wxUSE_WCSRTOMBS=no
2396
2397 DEFAULT_wxUSE_PALETTE=yes
2398 DEFAULT_wxUSE_IMAGE=yes
2399 DEFAULT_wxUSE_GIF=yes
2400 DEFAULT_wxUSE_PCX=yes
2401 DEFAULT_wxUSE_IFF=no
2402 DEFAULT_wxUSE_PNM=yes
2403 DEFAULT_wxUSE_XPM=yes
2404 DEFAULT_wxUSE_ICO_CUR=yes
2405 DEFAULT_wxUSE_ACCESSIBILITY=no
2406
2407 DEFAULT_wxUSE_MONOLITHIC=no
2408 DEFAULT_wxUSE_PLUGINS=no
2409 DEFAULT_wxUSE_OFFICIAL_BUILD=no
9f45f08e
VS
2410
2411 DEFAULT_wxUSE_GTK2=yes
a848cd7e
SC
2412fi
2413
2414
2415
2416for toolkit in `echo $ALL_TOOLKITS`; do
2417 LINE=`grep "wxUSE_$toolkit=" ${wx_arg_cache_file}`
2418 if test "x$LINE" != "x" ; then
2419 has_toolkit_in_cache=1
2420 eval "DEFAULT_$LINE"
2421 eval "CACHE_$toolkit=1"
2422 fi
2423done
2424
2425
2426
2427 enablestring=
2428 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gui" >&5
2429echo $ECHO_N "checking for --${enablestring:-enable}-gui... $ECHO_C" >&6
2430 no_cache=0
2431 # Check whether --enable-gui or --disable-gui was given.
2432if test "${enable_gui+set}" = set; then
2433 enableval="$enable_gui"
2434
2435 if test "$enableval" = yes; then
2436 ac_cv_use_gui='wxUSE_GUI=yes'
2437 else
2438 ac_cv_use_gui='wxUSE_GUI=no'
2439 fi
2440
2441else
2442
2443 LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}`
2444 if test "x$LINE" != x ; then
2445 eval "DEFAULT_$LINE"
2446 else
2447 no_cache=1
2448 fi
2449
2450 ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI
2451
2452fi;
2453
2454 eval "$ac_cv_use_gui"
2455 if test "$no_cache" != 1; then
2456 echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp
2457 fi
2458
2459 if test "$wxUSE_GUI" = yes; then
2460 echo "$as_me:$LINENO: result: yes" >&5
2461echo "${ECHO_T}yes" >&6
2462 else
2463 echo "$as_me:$LINENO: result: no" >&5
2464echo "${ECHO_T}no" >&6
2465 fi
2466
2467
2468 enablestring=
2469 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-monolithic" >&5
2470echo $ECHO_N "checking for --${enablestring:-enable}-monolithic... $ECHO_C" >&6
2471 no_cache=0
2472 # Check whether --enable-monolithic or --disable-monolithic was given.
2473if test "${enable_monolithic+set}" = set; then
2474 enableval="$enable_monolithic"
2475
2476 if test "$enableval" = yes; then
2477 ac_cv_use_monolithic='wxUSE_MONOLITHIC=yes'
2478 else
2479 ac_cv_use_monolithic='wxUSE_MONOLITHIC=no'
2480 fi
2481
2482else
2483
2484 LINE=`grep "wxUSE_MONOLITHIC" ${wx_arg_cache_file}`
2485 if test "x$LINE" != x ; then
2486 eval "DEFAULT_$LINE"
2487 else
2488 no_cache=1
2489 fi
2490
2491 ac_cv_use_monolithic='wxUSE_MONOLITHIC='$DEFAULT_wxUSE_MONOLITHIC
2492
2493fi;
2494
2495 eval "$ac_cv_use_monolithic"
2496 if test "$no_cache" != 1; then
2497 echo $ac_cv_use_monolithic >> ${wx_arg_cache_file}.tmp
2498 fi
2499
2500 if test "$wxUSE_MONOLITHIC" = yes; then
2501 echo "$as_me:$LINENO: result: yes" >&5
2502echo "${ECHO_T}yes" >&6
2503 else
2504 echo "$as_me:$LINENO: result: no" >&5
2505echo "${ECHO_T}no" >&6
2506 fi
2507
2508
2509 enablestring=
2510 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-plugins" >&5
2511echo $ECHO_N "checking for --${enablestring:-enable}-plugins... $ECHO_C" >&6
2512 no_cache=0
2513 # Check whether --enable-plugins or --disable-plugins was given.
2514if test "${enable_plugins+set}" = set; then
2515 enableval="$enable_plugins"
2516
2517 if test "$enableval" = yes; then
2518 ac_cv_use_plugins='wxUSE_PLUGINS=yes'
2519 else
2520 ac_cv_use_plugins='wxUSE_PLUGINS=no'
2521 fi
2522
2523else
2524
2525 LINE=`grep "wxUSE_PLUGINS" ${wx_arg_cache_file}`
2526 if test "x$LINE" != x ; then
2527 eval "DEFAULT_$LINE"
2528 else
2529 no_cache=1
2530 fi
2531
2532 ac_cv_use_plugins='wxUSE_PLUGINS='$DEFAULT_wxUSE_PLUGINS
2533
2534fi;
2535
2536 eval "$ac_cv_use_plugins"
2537 if test "$no_cache" != 1; then
2538 echo $ac_cv_use_plugins >> ${wx_arg_cache_file}.tmp
2539 fi
2540
2541 if test "$wxUSE_PLUGINS" = yes; then
2542 echo "$as_me:$LINENO: result: yes" >&5
2543echo "${ECHO_T}yes" >&6
2544 else
2545 echo "$as_me:$LINENO: result: no" >&5
2546echo "${ECHO_T}no" >&6
2547 fi
2548
2549
2550if test "$wxUSE_GUI" = "yes"; then
2551
2552
2553 enablestring=
2554 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-universal" >&5
2555echo $ECHO_N "checking for --${enablestring:-enable}-universal... $ECHO_C" >&6
2556 no_cache=0
2557 # Check whether --enable-universal or --disable-universal was given.
2558if test "${enable_universal+set}" = set; then
2559 enableval="$enable_universal"
2560
2561 if test "$enableval" = yes; then
2562 ac_cv_use_universal='wxUSE_UNIVERSAL=yes'
2563 else
2564 ac_cv_use_universal='wxUSE_UNIVERSAL=no'
2565 fi
2566
2567else
2568
2569 LINE=`grep "wxUSE_UNIVERSAL" ${wx_arg_cache_file}`
2570 if test "x$LINE" != x ; then
2571 eval "DEFAULT_$LINE"
2572 else
2573 no_cache=1
2574 fi
2575
2576 ac_cv_use_universal='wxUSE_UNIVERSAL='$DEFAULT_wxUSE_UNIVERSAL
2577
2578fi;
2579
2580 eval "$ac_cv_use_universal"
2581 if test "$no_cache" != 1; then
2582 echo $ac_cv_use_universal >> ${wx_arg_cache_file}.tmp
2583 fi
2584
2585 if test "$wxUSE_UNIVERSAL" = yes; then
2586 echo "$as_me:$LINENO: result: yes" >&5
2587echo "${ECHO_T}yes" >&6
2588 else
2589 echo "$as_me:$LINENO: result: no" >&5
2590echo "${ECHO_T}no" >&6
2591 fi
2592
2593
2594# Check whether --with-gtk or --without-gtk was given.
2595if test "${with_gtk+set}" = set; then
2596 withval="$with_gtk"
2597 wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1
2598fi;
2599
2600# Check whether --with-motif or --without-motif was given.
2601if test "${with_motif+set}" = set; then
2602 withval="$with_motif"
2603 wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1
2604fi;
2605
2606# Check whether --with-mac or --without-mac was given.
2607if test "${with_mac+set}" = set; then
2608 withval="$with_mac"
c228d3a4 2609 wxUSE_MAC="$withval" CACHE_MAC=1 TOOLKIT_GIVEN=1
a848cd7e
SC
2610fi;
2611
2612# Check whether --with-cocoa or --without-cocoa was given.
2613if test "${with_cocoa+set}" = set; then
2614 withval="$with_cocoa"
c228d3a4 2615 wxUSE_COCOA="$withval" CACHE_COCOA=1 TOOLKIT_GIVEN=1
a848cd7e
SC
2616fi;
2617
2618# Check whether --with-wine or --without-wine was given.
2619if test "${with_wine+set}" = set; then
2620 withval="$with_wine"
2621 wxUSE_WINE="$withval" CACHE_WINE=1
2622fi;
2623
2624# Check whether --with-msw or --without-msw was given.
2625if test "${with_msw+set}" = set; then
2626 withval="$with_msw"
2627 wxUSE_MSW="$withval" CACHE_MSW=1 TOOLKIT_GIVEN=1
2628fi;
2629
2630# Check whether --with-pm or --without-pm was given.
2631if test "${with_pm+set}" = set; then
2632 withval="$with_pm"
2633 wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1
2634fi;
2635
2636# Check whether --with-mgl or --without-mgl was given.
2637if test "${with_mgl+set}" = set; then
2638 withval="$with_mgl"
2639 wxUSE_MGL="$withval" wxUSE_UNIVERSAL="yes" CACHE_MGL=1 TOOLKIT_GIVEN=1
2640fi;
2641
2642# Check whether --with-microwin or --without-microwin was given.
2643if test "${with_microwin+set}" = set; then
2644 withval="$with_microwin"
2645 wxUSE_MICROWIN="$withval" CACHE_MICROWIN=1 TOOLKIT_GIVEN=1
2646fi;
2647
2648# Check whether --with-x11 or --without-x11 was given.
2649if test "${with_x11+set}" = set; then
2650 withval="$with_x11"
2651 wxUSE_X11="$withval" wxUSE_UNIVERSAL="yes" CACHE_X11=1 TOOLKIT_GIVEN=1
2652fi;
2653
2654 enablestring=
2655 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-nanox" >&5
2656echo $ECHO_N "checking for --${enablestring:-enable}-nanox... $ECHO_C" >&6
2657 no_cache=0
2658 # Check whether --enable-nanox or --disable-nanox was given.
2659if test "${enable_nanox+set}" = set; then
2660 enableval="$enable_nanox"
2661
2662 if test "$enableval" = yes; then
2663 ac_cv_use_nanox='wxUSE_NANOX=yes'
2664 else
2665 ac_cv_use_nanox='wxUSE_NANOX=no'
2666 fi
2667
2668else
2669
2670 LINE=`grep "wxUSE_NANOX" ${wx_arg_cache_file}`
2671 if test "x$LINE" != x ; then
2672 eval "DEFAULT_$LINE"
2673 else
2674 no_cache=1
2675 fi
2676
2677 ac_cv_use_nanox='wxUSE_NANOX='$DEFAULT_wxUSE_NANOX
2678
2679fi;
2680
2681 eval "$ac_cv_use_nanox"
2682 if test "$no_cache" != 1; then
2683 echo $ac_cv_use_nanox >> ${wx_arg_cache_file}.tmp
2684 fi
2685
2686 if test "$wxUSE_NANOX" = yes; then
2687 echo "$as_me:$LINENO: result: yes" >&5
2688echo "${ECHO_T}yes" >&6
2689 else
2690 echo "$as_me:$LINENO: result: no" >&5
2691echo "${ECHO_T}no" >&6
2692 fi
2693
2694
2695
2696 enablestring=
2697 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gtk2" >&5
2698echo $ECHO_N "checking for --${enablestring:-enable}-gtk2... $ECHO_C" >&6
2699 no_cache=0
2700 # Check whether --enable-gtk2 or --disable-gtk2 was given.
2701if test "${enable_gtk2+set}" = set; then
2702 enableval="$enable_gtk2"
2703
2704 if test "$enableval" = yes; then
2705 ac_cv_use_gtk2='wxUSE_GTK2=yes'
2706 else
2707 ac_cv_use_gtk2='wxUSE_GTK2=no'
2708 fi
2709
2710else
2711
2712 LINE=`grep "wxUSE_GTK2" ${wx_arg_cache_file}`
2713 if test "x$LINE" != x ; then
2714 eval "DEFAULT_$LINE"
2715 else
2716 no_cache=1
2717 fi
2718
2719 ac_cv_use_gtk2='wxUSE_GTK2='$DEFAULT_wxUSE_GTK2
2720
2721fi;
2722
2723 eval "$ac_cv_use_gtk2"
2724 if test "$no_cache" != 1; then
2725 echo $ac_cv_use_gtk2 >> ${wx_arg_cache_file}.tmp
2726 fi
2727
2728 if test "$wxUSE_GTK2" = yes; then
2729 echo "$as_me:$LINENO: result: yes" >&5
2730echo "${ECHO_T}yes" >&6
2731 else
2732 echo "$as_me:$LINENO: result: no" >&5
2733echo "${ECHO_T}no" >&6
2734 fi
2735
2736
2737 enablestring=
2738 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gpe" >&5
2739echo $ECHO_N "checking for --${enablestring:-enable}-gpe... $ECHO_C" >&6
2740 no_cache=0
2741 # Check whether --enable-gpe or --disable-gpe was given.
2742if test "${enable_gpe+set}" = set; then
2743 enableval="$enable_gpe"
2744
2745 if test "$enableval" = yes; then
2746 ac_cv_use_gpe='wxUSE_GPE=yes'
2747 else
2748 ac_cv_use_gpe='wxUSE_GPE=no'
2749 fi
2750
2751else
2752
2753 LINE=`grep "wxUSE_GPE" ${wx_arg_cache_file}`
2754 if test "x$LINE" != x ; then
2755 eval "DEFAULT_$LINE"
2756 else
2757 no_cache=1
2758 fi
2759
2760 ac_cv_use_gpe='wxUSE_GPE='$DEFAULT_wxUSE_GPE
2761
2762fi;
2763
2764 eval "$ac_cv_use_gpe"
2765 if test "$no_cache" != 1; then
2766 echo $ac_cv_use_gpe >> ${wx_arg_cache_file}.tmp
2767 fi
2768
2769 if test "$wxUSE_GPE" = yes; then
2770 echo "$as_me:$LINENO: result: yes" >&5
2771echo "${ECHO_T}yes" >&6
2772 else
2773 echo "$as_me:$LINENO: result: no" >&5
2774echo "${ECHO_T}no" >&6
2775 fi
2776
2777
2778
2779 echo "$as_me:$LINENO: checking for --with-libpng" >&5
2780echo $ECHO_N "checking for --with-libpng... $ECHO_C" >&6
2781 no_cache=0
2782
2783# Check whether --with-libpng or --without-libpng was given.
2784if test "${with_libpng+set}" = set; then
2785 withval="$with_libpng"
2786
2787 if test "$withval" = yes; then
2788 ac_cv_use_libpng='wxUSE_LIBPNG=yes'
2789 elif test "$withval" = no; then
2790 ac_cv_use_libpng='wxUSE_LIBPNG=no'
2791 elif test "$withval" = sys; then
2792 ac_cv_use_libpng='wxUSE_LIBPNG=sys'
2793 elif test "$withval" = builtin; then
2794 ac_cv_use_libpng='wxUSE_LIBPNG=builtin'
2795 else
2796 { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5
2797echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;}
2798 { (exit 1); exit 1; }; }
2799 fi
2800
2801else
2802
2803 LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}`
2804 if test "x$LINE" != x ; then
2805 eval "DEFAULT_$LINE"
2806 else
2807 no_cache=1
2808 fi
2809
2810 ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG
2811
2812fi;
2813
2814 eval "$ac_cv_use_libpng"
2815 if test "$no_cache" != 1; then
2816 echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp
2817 fi
2818
2819 if test "$wxUSE_LIBPNG" = yes; then
2820 echo "$as_me:$LINENO: result: yes" >&5
2821echo "${ECHO_T}yes" >&6
2822 elif test "$wxUSE_LIBPNG" = no; then
2823 echo "$as_me:$LINENO: result: no" >&5
2824echo "${ECHO_T}no" >&6
2825 elif test "$wxUSE_LIBPNG" = sys; then
2826 echo "$as_me:$LINENO: result: system version" >&5
2827echo "${ECHO_T}system version" >&6
2828 elif test "$wxUSE_LIBPNG" = builtin; then
2829 echo "$as_me:$LINENO: result: builtin version" >&5
2830echo "${ECHO_T}builtin version" >&6
2831 else
2832 { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5
2833echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;}
2834 { (exit 1); exit 1; }; }
2835 fi
2836
2837
2838 echo "$as_me:$LINENO: checking for --with-libjpeg" >&5
2839echo $ECHO_N "checking for --with-libjpeg... $ECHO_C" >&6
2840 no_cache=0
2841
2842# Check whether --with-libjpeg or --without-libjpeg was given.
2843if test "${with_libjpeg+set}" = set; then
2844 withval="$with_libjpeg"
2845
2846 if test "$withval" = yes; then
2847 ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes'
2848 elif test "$withval" = no; then
2849 ac_cv_use_libjpeg='wxUSE_LIBJPEG=no'
2850 elif test "$withval" = sys; then
2851 ac_cv_use_libjpeg='wxUSE_LIBJPEG=sys'
2852 elif test "$withval" = builtin; then
2853 ac_cv_use_libjpeg='wxUSE_LIBJPEG=builtin'
2854 else
2855 { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5
2856echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;}
2857 { (exit 1); exit 1; }; }
2858 fi
2859
2860else
2861
2862 LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}`
2863 if test "x$LINE" != x ; then
2864 eval "DEFAULT_$LINE"
2865 else
2866 no_cache=1
2867 fi
2868
2869 ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG
2870
2871fi;
2872
2873 eval "$ac_cv_use_libjpeg"
2874 if test "$no_cache" != 1; then
2875 echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp
2876 fi
2877
2878 if test "$wxUSE_LIBJPEG" = yes; then
2879 echo "$as_me:$LINENO: result: yes" >&5
2880echo "${ECHO_T}yes" >&6
2881 elif test "$wxUSE_LIBJPEG" = no; then
2882 echo "$as_me:$LINENO: result: no" >&5
2883echo "${ECHO_T}no" >&6
2884 elif test "$wxUSE_LIBJPEG" = sys; then
2885 echo "$as_me:$LINENO: result: system version" >&5
2886echo "${ECHO_T}system version" >&6
2887 elif test "$wxUSE_LIBJPEG" = builtin; then
2888 echo "$as_me:$LINENO: result: builtin version" >&5
2889echo "${ECHO_T}builtin version" >&6
2890 else
2891 { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5
2892echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;}
2893 { (exit 1); exit 1; }; }
2894 fi
2895
2896
2897 echo "$as_me:$LINENO: checking for --with-libtiff" >&5
2898echo $ECHO_N "checking for --with-libtiff... $ECHO_C" >&6
2899 no_cache=0
2900
2901# Check whether --with-libtiff or --without-libtiff was given.
2902if test "${with_libtiff+set}" = set; then
2903 withval="$with_libtiff"
2904
2905 if test "$withval" = yes; then
2906 ac_cv_use_libtiff='wxUSE_LIBTIFF=yes'
2907 elif test "$withval" = no; then
2908 ac_cv_use_libtiff='wxUSE_LIBTIFF=no'
2909 elif test "$withval" = sys; then
2910 ac_cv_use_libtiff='wxUSE_LIBTIFF=sys'
2911 elif test "$withval" = builtin; then
2912 ac_cv_use_libtiff='wxUSE_LIBTIFF=builtin'
2913 else
2914 { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5
2915echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;}
2916 { (exit 1); exit 1; }; }
2917 fi
2918
2919else
2920
2921 LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}`
2922 if test "x$LINE" != x ; then
2923 eval "DEFAULT_$LINE"
2924 else
2925 no_cache=1
2926 fi
2927
2928 ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF
2929
2930fi;
2931
2932 eval "$ac_cv_use_libtiff"
2933 if test "$no_cache" != 1; then
2934 echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp
2935 fi
2936
2937 if test "$wxUSE_LIBTIFF" = yes; then
2938 echo "$as_me:$LINENO: result: yes" >&5
2939echo "${ECHO_T}yes" >&6
2940 elif test "$wxUSE_LIBTIFF" = no; then
2941 echo "$as_me:$LINENO: result: no" >&5
2942echo "${ECHO_T}no" >&6
2943 elif test "$wxUSE_LIBTIFF" = sys; then
2944 echo "$as_me:$LINENO: result: system version" >&5
2945echo "${ECHO_T}system version" >&6
2946 elif test "$wxUSE_LIBTIFF" = builtin; then
2947 echo "$as_me:$LINENO: result: builtin version" >&5
2948echo "${ECHO_T}builtin version" >&6
2949 else
2950 { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5
2951echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;}
2952 { (exit 1); exit 1; }; }
2953 fi
2954
2955
2956 echo "$as_me:$LINENO: checking for --with-libxpm" >&5
2957echo $ECHO_N "checking for --with-libxpm... $ECHO_C" >&6
2958 no_cache=0
2959
2960# Check whether --with-libxpm or --without-libxpm was given.
2961if test "${with_libxpm+set}" = set; then
2962 withval="$with_libxpm"
2963
2964 if test "$withval" = yes; then
2965 ac_cv_use_libxpm='wxUSE_LIBXPM=yes'
2966 elif test "$withval" = no; then
2967 ac_cv_use_libxpm='wxUSE_LIBXPM=no'
2968 elif test "$withval" = sys; then
2969 ac_cv_use_libxpm='wxUSE_LIBXPM=sys'
2970 elif test "$withval" = builtin; then
2971 ac_cv_use_libxpm='wxUSE_LIBXPM=builtin'
2972 else
2973 { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5
2974echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;}
2975 { (exit 1); exit 1; }; }
2976 fi
2977
2978else
2979
2980 LINE=`grep "wxUSE_LIBXPM" ${wx_arg_cache_file}`
2981 if test "x$LINE" != x ; then
2982 eval "DEFAULT_$LINE"
2983 else
2984 no_cache=1
2985 fi
2986
2987 ac_cv_use_libxpm='wxUSE_LIBXPM='$DEFAULT_wxUSE_LIBXPM
2988
2989fi;
2990
2991 eval "$ac_cv_use_libxpm"
2992 if test "$no_cache" != 1; then
2993 echo $ac_cv_use_libxpm >> ${wx_arg_cache_file}.tmp
2994 fi
2995
2996 if test "$wxUSE_LIBXPM" = yes; then
2997 echo "$as_me:$LINENO: result: yes" >&5
2998echo "${ECHO_T}yes" >&6
2999 elif test "$wxUSE_LIBXPM" = no; then
3000 echo "$as_me:$LINENO: result: no" >&5
3001echo "${ECHO_T}no" >&6
3002 elif test "$wxUSE_LIBXPM" = sys; then
3003 echo "$as_me:$LINENO: result: system version" >&5
3004echo "${ECHO_T}system version" >&6
3005 elif test "$wxUSE_LIBXPM" = builtin; then
3006 echo "$as_me:$LINENO: result: builtin version" >&5
3007echo "${ECHO_T}builtin version" >&6
3008 else
3009 { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5
3010echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;}
3011 { (exit 1); exit 1; }; }
3012 fi
3013
3014
3015 echo "$as_me:$LINENO: checking for --with-libmspack" >&5
3016echo $ECHO_N "checking for --with-libmspack... $ECHO_C" >&6
3017 no_cache=0
3018
3019# Check whether --with-libmspack or --without-libmspack was given.
3020if test "${with_libmspack+set}" = set; then
3021 withval="$with_libmspack"
3022
3023 if test "$withval" = yes; then
3024 ac_cv_use_libmspack='wxUSE_LIBMSPACK=yes'
3025 else
3026 ac_cv_use_libmspack='wxUSE_LIBMSPACK=no'
3027 fi
3028
3029else
3030
3031 LINE=`grep "wxUSE_LIBMSPACK" ${wx_arg_cache_file}`
3032 if test "x$LINE" != x ; then
3033 eval "DEFAULT_$LINE"
3034 else
3035 no_cache=1
3036 fi
3037
3038 ac_cv_use_libmspack='wxUSE_LIBMSPACK='$DEFAULT_wxUSE_LIBMSPACK
3039
3040fi;
3041
3042 eval "$ac_cv_use_libmspack"
3043 if test "$no_cache" != 1; then
3044 echo $ac_cv_use_libmspack >> ${wx_arg_cache_file}.tmp
3045 fi
3046
3047 if test "$wxUSE_LIBMSPACK" = yes; then
3048 echo "$as_me:$LINENO: result: yes" >&5
3049echo "${ECHO_T}yes" >&6
3050 else
3051 echo "$as_me:$LINENO: result: no" >&5
3052echo "${ECHO_T}no" >&6
3053 fi
3054
3055
3056 echo "$as_me:$LINENO: checking for --with-sdl" >&5
3057echo $ECHO_N "checking for --with-sdl... $ECHO_C" >&6
3058 no_cache=0
3059
3060# Check whether --with-sdl or --without-sdl was given.
3061if test "${with_sdl+set}" = set; then
3062 withval="$with_sdl"
3063
3064 if test "$withval" = yes; then
3065 ac_cv_use_sdl='wxUSE_LIBSDL=yes'
3066 else
3067 ac_cv_use_sdl='wxUSE_LIBSDL=no'
3068 fi
3069
3070else
3071
3072 LINE=`grep "wxUSE_LIBSDL" ${wx_arg_cache_file}`
3073 if test "x$LINE" != x ; then
3074 eval "DEFAULT_$LINE"
3075 else
3076 no_cache=1
3077 fi
3078
3079 ac_cv_use_sdl='wxUSE_LIBSDL='$DEFAULT_wxUSE_LIBSDL
3080
3081fi;
3082
3083 eval "$ac_cv_use_sdl"
3084 if test "$no_cache" != 1; then
3085 echo $ac_cv_use_sdl >> ${wx_arg_cache_file}.tmp
3086 fi
3087
3088 if test "$wxUSE_LIBSDL" = yes; then
3089 echo "$as_me:$LINENO: result: yes" >&5
3090echo "${ECHO_T}yes" >&6
3091 else
3092 echo "$as_me:$LINENO: result: no" >&5
3093echo "${ECHO_T}no" >&6
3094 fi
3095
3096
d1c38808
VZ
3097 echo "$as_me:$LINENO: checking for --with-gnomeprint" >&5
3098echo $ECHO_N "checking for --with-gnomeprint... $ECHO_C" >&6
3099 no_cache=0
3100
3101# Check whether --with-gnomeprint or --without-gnomeprint was given.
3102if test "${with_gnomeprint+set}" = set; then
3103 withval="$with_gnomeprint"
3104
3105 if test "$withval" = yes; then
3106 ac_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT=yes'
3107 else
3108 ac_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT=no'
3109 fi
3110
3111else
3112
3113 LINE=`grep "wxUSE_LIBGNOMEPRINT" ${wx_arg_cache_file}`
3114 if test "x$LINE" != x ; then
3115 eval "DEFAULT_$LINE"
3116 else
3117 no_cache=1
3118 fi
3119
3120 ac_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT='$DEFAULT_wxUSE_LIBGNOMEPRINT
3121
3122fi;
3123
3124 eval "$ac_cv_use_gnomeprint"
3125 if test "$no_cache" != 1; then
3126 echo $ac_cv_use_gnomeprint >> ${wx_arg_cache_file}.tmp
3127 fi
3128
3129 if test "$wxUSE_LIBGNOMEPRINT" = yes; then
3130 echo "$as_me:$LINENO: result: yes" >&5
3131echo "${ECHO_T}yes" >&6
3132 else
3133 echo "$as_me:$LINENO: result: no" >&5
3134echo "${ECHO_T}no" >&6
3135 fi
3136
3137
a848cd7e
SC
3138 echo "$as_me:$LINENO: checking for --with-opengl" >&5
3139echo $ECHO_N "checking for --with-opengl... $ECHO_C" >&6
3140 no_cache=0
3141
3142# Check whether --with-opengl or --without-opengl was given.
3143if test "${with_opengl+set}" = set; then
3144 withval="$with_opengl"
3145
3146 if test "$withval" = yes; then
3147 ac_cv_use_opengl='wxUSE_OPENGL=yes'
3148 else
3149 ac_cv_use_opengl='wxUSE_OPENGL=no'
3150 fi
3151
3152else
3153
3154 LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}`
3155 if test "x$LINE" != x ; then
3156 eval "DEFAULT_$LINE"
3157 else
3158 no_cache=1
3159 fi
3160
3161 ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL
3162
3163fi;
3164
3165 eval "$ac_cv_use_opengl"
3166 if test "$no_cache" != 1; then
3167 echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp
3168 fi
3169
3170 if test "$wxUSE_OPENGL" = yes; then
3171 echo "$as_me:$LINENO: result: yes" >&5
3172echo "${ECHO_T}yes" >&6
3173 else
3174 echo "$as_me:$LINENO: result: no" >&5
3175echo "${ECHO_T}no" >&6
3176 fi
3177
3178
3179fi
3180
3181
3182 echo "$as_me:$LINENO: checking for --with-dmalloc" >&5
3183echo $ECHO_N "checking for --with-dmalloc... $ECHO_C" >&6
3184 no_cache=0
3185
3186# Check whether --with-dmalloc or --without-dmalloc was given.
3187if test "${with_dmalloc+set}" = set; then
3188 withval="$with_dmalloc"
3189
3190 if test "$withval" = yes; then
3191 ac_cv_use_dmalloc='wxUSE_DMALLOC=yes'
3192 else
3193 ac_cv_use_dmalloc='wxUSE_DMALLOC=no'
3194 fi
3195
3196else
3197
3198 LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}`
3199 if test "x$LINE" != x ; then
3200 eval "DEFAULT_$LINE"
3201 else
3202 no_cache=1
3203 fi
3204
3205 ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC
3206
3207fi;
3208
3209 eval "$ac_cv_use_dmalloc"
3210 if test "$no_cache" != 1; then
3211 echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp
3212 fi
3213
3214 if test "$wxUSE_DMALLOC" = yes; then
3215 echo "$as_me:$LINENO: result: yes" >&5
3216echo "${ECHO_T}yes" >&6
3217 else
3218 echo "$as_me:$LINENO: result: no" >&5
3219echo "${ECHO_T}no" >&6
3220 fi
3221
3222
3223 echo "$as_me:$LINENO: checking for --with-regex" >&5
3224echo $ECHO_N "checking for --with-regex... $ECHO_C" >&6
3225 no_cache=0
3226
3227# Check whether --with-regex or --without-regex was given.
3228if test "${with_regex+set}" = set; then
3229 withval="$with_regex"
3230
3231 if test "$withval" = yes; then
3232 ac_cv_use_regex='wxUSE_REGEX=yes'
3233 elif test "$withval" = no; then
3234 ac_cv_use_regex='wxUSE_REGEX=no'
3235 elif test "$withval" = sys; then
3236 ac_cv_use_regex='wxUSE_REGEX=sys'
3237 elif test "$withval" = builtin; then
3238 ac_cv_use_regex='wxUSE_REGEX=builtin'
3239 else
3240 { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5
3241echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;}
3242 { (exit 1); exit 1; }; }
3243 fi
3244
3245else
3246
3247 LINE=`grep "wxUSE_REGEX" ${wx_arg_cache_file}`
3248 if test "x$LINE" != x ; then
3249 eval "DEFAULT_$LINE"
3250 else
3251 no_cache=1
3252 fi
3253
3254 ac_cv_use_regex='wxUSE_REGEX='$DEFAULT_wxUSE_REGEX
3255
3256fi;
3257
3258 eval "$ac_cv_use_regex"
3259 if test "$no_cache" != 1; then
3260 echo $ac_cv_use_regex >> ${wx_arg_cache_file}.tmp
3261 fi
3262
3263 if test "$wxUSE_REGEX" = yes; then
3264 echo "$as_me:$LINENO: result: yes" >&5
3265echo "${ECHO_T}yes" >&6
3266 elif test "$wxUSE_REGEX" = no; then
3267 echo "$as_me:$LINENO: result: no" >&5
3268echo "${ECHO_T}no" >&6
3269 elif test "$wxUSE_REGEX" = sys; then
3270 echo "$as_me:$LINENO: result: system version" >&5
3271echo "${ECHO_T}system version" >&6
3272 elif test "$wxUSE_REGEX" = builtin; then
3273 echo "$as_me:$LINENO: result: builtin version" >&5
3274echo "${ECHO_T}builtin version" >&6
3275 else
3276 { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5
3277echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;}
3278 { (exit 1); exit 1; }; }
3279 fi
3280
3281
3282 echo "$as_me:$LINENO: checking for --with-zlib" >&5
3283echo $ECHO_N "checking for --with-zlib... $ECHO_C" >&6
3284 no_cache=0
3285
3286# Check whether --with-zlib or --without-zlib was given.
3287if test "${with_zlib+set}" = set; then
3288 withval="$with_zlib"
3289
3290 if test "$withval" = yes; then
3291 ac_cv_use_zlib='wxUSE_ZLIB=yes'
3292 elif test "$withval" = no; then
3293 ac_cv_use_zlib='wxUSE_ZLIB=no'
3294 elif test "$withval" = sys; then
3295 ac_cv_use_zlib='wxUSE_ZLIB=sys'
3296 elif test "$withval" = builtin; then
3297 ac_cv_use_zlib='wxUSE_ZLIB=builtin'
3298 else
3299 { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5
3300echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;}
3301 { (exit 1); exit 1; }; }
3302 fi
3303
3304else
3305
3306 LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}`
3307 if test "x$LINE" != x ; then
3308 eval "DEFAULT_$LINE"
3309 else
3310 no_cache=1
3311 fi
3312
3313 ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB
3314
3315fi;
3316
3317 eval "$ac_cv_use_zlib"
3318 if test "$no_cache" != 1; then
3319 echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp
3320 fi
3321
3322 if test "$wxUSE_ZLIB" = yes; then
3323 echo "$as_me:$LINENO: result: yes" >&5
3324echo "${ECHO_T}yes" >&6
3325 elif test "$wxUSE_ZLIB" = no; then
3326 echo "$as_me:$LINENO: result: no" >&5
3327echo "${ECHO_T}no" >&6
3328 elif test "$wxUSE_ZLIB" = sys; then
3329 echo "$as_me:$LINENO: result: system version" >&5
3330echo "${ECHO_T}system version" >&6
3331 elif test "$wxUSE_ZLIB" = builtin; then
3332 echo "$as_me:$LINENO: result: builtin version" >&5
3333echo "${ECHO_T}builtin version" >&6
3334 else
3335 { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5
3336echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;}
3337 { (exit 1); exit 1; }; }
3338 fi
3339
3340
3341 echo "$as_me:$LINENO: checking for --with-odbc" >&5
3342echo $ECHO_N "checking for --with-odbc... $ECHO_C" >&6
3343 no_cache=0
3344
3345# Check whether --with-odbc or --without-odbc was given.
3346if test "${with_odbc+set}" = set; then
3347 withval="$with_odbc"
3348
3349 if test "$withval" = yes; then
3350 ac_cv_use_odbc='wxUSE_ODBC=yes'
3351 elif test "$withval" = no; then
3352 ac_cv_use_odbc='wxUSE_ODBC=no'
3353 elif test "$withval" = sys; then
3354 ac_cv_use_odbc='wxUSE_ODBC=sys'
3355 elif test "$withval" = builtin; then
3356 ac_cv_use_odbc='wxUSE_ODBC=builtin'
3357 else
3358 { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5
3359echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;}
3360 { (exit 1); exit 1; }; }
3361 fi
3362
3363else
3364
3365 LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}`
3366 if test "x$LINE" != x ; then
3367 eval "DEFAULT_$LINE"
3368 else
3369 no_cache=1
3370 fi
3371
3372 ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC
3373
3374fi;
3375
3376 eval "$ac_cv_use_odbc"
3377 if test "$no_cache" != 1; then
3378 echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp
3379 fi
3380
3381 if test "$wxUSE_ODBC" = yes; then
3382 echo "$as_me:$LINENO: result: yes" >&5
3383echo "${ECHO_T}yes" >&6
3384 elif test "$wxUSE_ODBC" = no; then
3385 echo "$as_me:$LINENO: result: no" >&5
3386echo "${ECHO_T}no" >&6
3387 elif test "$wxUSE_ODBC" = sys; then
3388 echo "$as_me:$LINENO: result: system version" >&5
3389echo "${ECHO_T}system version" >&6
3390 elif test "$wxUSE_ODBC" = builtin; then
3391 echo "$as_me:$LINENO: result: builtin version" >&5
3392echo "${ECHO_T}builtin version" >&6
3393 else
3394 { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5
3395echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;}
3396 { (exit 1); exit 1; }; }
3397 fi
3398
3399
3400 echo "$as_me:$LINENO: checking for --with-expat" >&5
3401echo $ECHO_N "checking for --with-expat... $ECHO_C" >&6
3402 no_cache=0
3403
3404# Check whether --with-expat or --without-expat was given.
3405if test "${with_expat+set}" = set; then
3406 withval="$with_expat"
3407
3408 if test "$withval" = yes; then
3409 ac_cv_use_expat='wxUSE_EXPAT=yes'
3410 elif test "$withval" = no; then
3411 ac_cv_use_expat='wxUSE_EXPAT=no'
3412 elif test "$withval" = sys; then
3413 ac_cv_use_expat='wxUSE_EXPAT=sys'
3414 elif test "$withval" = builtin; then
3415 ac_cv_use_expat='wxUSE_EXPAT=builtin'
3416 else
3417 { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5
3418echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;}
3419 { (exit 1); exit 1; }; }
3420 fi
3421
3422else
3423
3424 LINE=`grep "wxUSE_EXPAT" ${wx_arg_cache_file}`
3425 if test "x$LINE" != x ; then
3426 eval "DEFAULT_$LINE"
3427 else
3428 no_cache=1
3429 fi
3430
3431 ac_cv_use_expat='wxUSE_EXPAT='$DEFAULT_wxUSE_EXPAT
3432
3433fi;
3434
3435 eval "$ac_cv_use_expat"
3436 if test "$no_cache" != 1; then
3437 echo $ac_cv_use_expat >> ${wx_arg_cache_file}.tmp
3438 fi
3439
3440 if test "$wxUSE_EXPAT" = yes; then
3441 echo "$as_me:$LINENO: result: yes" >&5
3442echo "${ECHO_T}yes" >&6
3443 elif test "$wxUSE_EXPAT" = no; then
3444 echo "$as_me:$LINENO: result: no" >&5
3445echo "${ECHO_T}no" >&6
3446 elif test "$wxUSE_EXPAT" = sys; then
3447 echo "$as_me:$LINENO: result: system version" >&5
3448echo "${ECHO_T}system version" >&6
3449 elif test "$wxUSE_EXPAT" = builtin; then
3450 echo "$as_me:$LINENO: result: builtin version" >&5
3451echo "${ECHO_T}builtin version" >&6
3452 else
3453 { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5
3454echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;}
3455 { (exit 1); exit 1; }; }
3456 fi
3457
3458
3459
3460
3461 enablestring=
3462 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-shared" >&5
3463echo $ECHO_N "checking for --${enablestring:-enable}-shared... $ECHO_C" >&6
3464 no_cache=0
3465 # Check whether --enable-shared or --disable-shared was given.
3466if test "${enable_shared+set}" = set; then
3467 enableval="$enable_shared"
3468
3469 if test "$enableval" = yes; then
3470 ac_cv_use_shared='wxUSE_SHARED=yes'
3471 else
3472 ac_cv_use_shared='wxUSE_SHARED=no'
3473 fi
3474
3475else
3476
3477 LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}`
3478 if test "x$LINE" != x ; then
3479 eval "DEFAULT_$LINE"
3480 else
3481 no_cache=1
3482 fi
3483
3484 ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED
3485
3486fi;
3487
3488 eval "$ac_cv_use_shared"
3489 if test "$no_cache" != 1; then
3490 echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp
3491 fi
3492
3493 if test "$wxUSE_SHARED" = yes; then
3494 echo "$as_me:$LINENO: result: yes" >&5
3495echo "${ECHO_T}yes" >&6
3496 else
3497 echo "$as_me:$LINENO: result: no" >&5
3498echo "${ECHO_T}no" >&6
3499 fi
3500
3501
3502 enablestring=
3503 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-optimise" >&5
3504echo $ECHO_N "checking for --${enablestring:-enable}-optimise... $ECHO_C" >&6
3505 no_cache=0
3506 # Check whether --enable-optimise or --disable-optimise was given.
3507if test "${enable_optimise+set}" = set; then
3508 enableval="$enable_optimise"
3509
3510 if test "$enableval" = yes; then
3511 ac_cv_use_optimise='wxUSE_OPTIMISE=yes'
3512 else
3513 ac_cv_use_optimise='wxUSE_OPTIMISE=no'
3514 fi
3515
3516else
3517
3518 LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}`
3519 if test "x$LINE" != x ; then
3520 eval "DEFAULT_$LINE"
3521 else
3522 no_cache=1
3523 fi
3524
3525 ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE
3526
3527fi;
3528
3529 eval "$ac_cv_use_optimise"
3530 if test "$no_cache" != 1; then
3531 echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp
3532 fi
3533
3534 if test "$wxUSE_OPTIMISE" = yes; then
3535 echo "$as_me:$LINENO: result: yes" >&5
3536echo "${ECHO_T}yes" >&6
3537 else
3538 echo "$as_me:$LINENO: result: no" >&5
3539echo "${ECHO_T}no" >&6
3540 fi
3541
3542
3543 enablestring=
3544 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug" >&5
3545echo $ECHO_N "checking for --${enablestring:-enable}-debug... $ECHO_C" >&6
3546 no_cache=0
3547 # Check whether --enable-debug or --disable-debug was given.
3548if test "${enable_debug+set}" = set; then
3549 enableval="$enable_debug"
3550
3551 if test "$enableval" = yes; then
3552 ac_cv_use_debug='wxUSE_DEBUG=yes'
3553 else
3554 ac_cv_use_debug='wxUSE_DEBUG=no'
3555 fi
3556
3557else
3558
3559 LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}`
3560 if test "x$LINE" != x ; then
3561 eval "DEFAULT_$LINE"
3562 else
3563 no_cache=1
3564 fi
3565
3566 ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG
3567
3568fi;
3569
3570 eval "$ac_cv_use_debug"
3571 if test "$no_cache" != 1; then
3572 echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp
3573 fi
3574
3575 if test "$wxUSE_DEBUG" = yes; then
3576 echo "$as_me:$LINENO: result: yes" >&5
3577echo "${ECHO_T}yes" >&6
3578 else
3579 echo "$as_me:$LINENO: result: no" >&5
3580echo "${ECHO_T}no" >&6
3581 fi
3582
3583
3584 enablestring=
3585 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stl" >&5
3586echo $ECHO_N "checking for --${enablestring:-enable}-stl... $ECHO_C" >&6
3587 no_cache=0
3588 # Check whether --enable-stl or --disable-stl was given.
3589if test "${enable_stl+set}" = set; then
3590 enableval="$enable_stl"
3591
3592 if test "$enableval" = yes; then
3593 ac_cv_use_stl='wxUSE_STL=yes'
3594 else
3595 ac_cv_use_stl='wxUSE_STL=no'
3596 fi
3597
3598else
3599
3600 LINE=`grep "wxUSE_STL" ${wx_arg_cache_file}`
3601 if test "x$LINE" != x ; then
3602 eval "DEFAULT_$LINE"
3603 else
3604 no_cache=1
3605 fi
3606
3607 ac_cv_use_stl='wxUSE_STL='$DEFAULT_wxUSE_STL
3608
3609fi;
3610
3611 eval "$ac_cv_use_stl"
3612 if test "$no_cache" != 1; then
3613 echo $ac_cv_use_stl >> ${wx_arg_cache_file}.tmp
3614 fi
3615
3616 if test "$wxUSE_STL" = yes; then
3617 echo "$as_me:$LINENO: result: yes" >&5
3618echo "${ECHO_T}yes" >&6
3619 else
3620 echo "$as_me:$LINENO: result: no" >&5
3621echo "${ECHO_T}no" >&6
3622 fi
3623
3624if test "$USE_OS2" = "1"; then
3625
3626 enablestring=
3627 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-omf" >&5
3628echo $ECHO_N "checking for --${enablestring:-enable}-omf... $ECHO_C" >&6
3629 no_cache=0
3630 # Check whether --enable-omf or --disable-omf was given.
3631if test "${enable_omf+set}" = set; then
3632 enableval="$enable_omf"
3633
3634 if test "$enableval" = yes; then
3635 ac_cv_use_omf='wxUSE_OMF=yes'
3636 else
3637 ac_cv_use_omf='wxUSE_OMF=no'
3638 fi
3639
3640else
3641
3642 LINE=`grep "wxUSE_OMF" ${wx_arg_cache_file}`
3643 if test "x$LINE" != x ; then
3644 eval "DEFAULT_$LINE"
3645 else
3646 no_cache=1
3647 fi
3648
3649 ac_cv_use_omf='wxUSE_OMF='$DEFAULT_wxUSE_OMF
3650
3651fi;
3652
3653 eval "$ac_cv_use_omf"
3654 if test "$no_cache" != 1; then
3655 echo $ac_cv_use_omf >> ${wx_arg_cache_file}.tmp
3656 fi
3657
3658 if test "$wxUSE_OMF" = yes; then
3659 echo "$as_me:$LINENO: result: yes" >&5
3660echo "${ECHO_T}yes" >&6
3661 else
3662 echo "$as_me:$LINENO: result: no" >&5
3663echo "${ECHO_T}no" >&6
3664 fi
3665
3666fi
3667
3668if test "$wxUSE_DEBUG" = "yes"; then
3669 DEFAULT_wxUSE_DEBUG_FLAG=yes
3670 DEFAULT_wxUSE_DEBUG_INFO=yes
3671 BUILD=debug
3672elif test "$wxUSE_DEBUG" = "no"; then
3673 DEFAULT_wxUSE_DEBUG_FLAG=no
3674 DEFAULT_wxUSE_DEBUG_INFO=no
3675 BUILD=release
3676fi
3677
3678
3679 enablestring=
3680 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_flag" >&5
3681echo $ECHO_N "checking for --${enablestring:-enable}-debug_flag... $ECHO_C" >&6
3682 no_cache=0
3683 # Check whether --enable-debug_flag or --disable-debug_flag was given.
3684if test "${enable_debug_flag+set}" = set; then
3685 enableval="$enable_debug_flag"
3686
3687 if test "$enableval" = yes; then
3688 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes'
3689 else
3690 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no'
3691 fi
3692
3693else
3694
3695 LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}`
3696 if test "x$LINE" != x ; then
3697 eval "DEFAULT_$LINE"
3698 else
3699 no_cache=1
3700 fi
3701
3702 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG
3703
3704fi;
3705
3706 eval "$ac_cv_use_debug_flag"
3707 if test "$no_cache" != 1; then
3708 echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp
3709 fi
3710
3711 if test "$wxUSE_DEBUG_FLAG" = yes; then
3712 echo "$as_me:$LINENO: result: yes" >&5
3713echo "${ECHO_T}yes" >&6
3714 else
3715 echo "$as_me:$LINENO: result: no" >&5
3716echo "${ECHO_T}no" >&6
3717 fi
3718
3719
3720 enablestring=
3721 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_info" >&5
3722echo $ECHO_N "checking for --${enablestring:-enable}-debug_info... $ECHO_C" >&6
3723 no_cache=0
3724 # Check whether --enable-debug_info or --disable-debug_info was given.
3725if test "${enable_debug_info+set}" = set; then
3726 enableval="$enable_debug_info"
3727
3728 if test "$enableval" = yes; then
3729 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes'
3730 else
3731 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no'
3732 fi
3733
3734else
3735
3736 LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}`
3737 if test "x$LINE" != x ; then
3738 eval "DEFAULT_$LINE"
3739 else
3740 no_cache=1
3741 fi
3742
3743 ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO
3744
3745fi;
3746
3747 eval "$ac_cv_use_debug_info"
3748 if test "$no_cache" != 1; then
3749 echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp
3750 fi
3751
3752 if test "$wxUSE_DEBUG_INFO" = yes; then
3753 echo "$as_me:$LINENO: result: yes" >&5
3754echo "${ECHO_T}yes" >&6
3755 else
3756 echo "$as_me:$LINENO: result: no" >&5
3757echo "${ECHO_T}no" >&6
3758 fi
3759
3760
3761 enablestring=
3762 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_gdb" >&5
3763echo $ECHO_N "checking for --${enablestring:-enable}-debug_gdb... $ECHO_C" >&6
3764 no_cache=0
3765 # Check whether --enable-debug_gdb or --disable-debug_gdb was given.
3766if test "${enable_debug_gdb+set}" = set; then
3767 enableval="$enable_debug_gdb"
3768
3769 if test "$enableval" = yes; then
3770 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes'
3771 else
3772 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no'
3773 fi
3774
3775else
3776
3777 LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}`
3778 if test "x$LINE" != x ; then
3779 eval "DEFAULT_$LINE"
3780 else
3781 no_cache=1
3782 fi
3783
3784 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB
3785
3786fi;
3787
3788 eval "$ac_cv_use_debug_gdb"
3789 if test "$no_cache" != 1; then
3790 echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp
3791 fi
3792
3793 if test "$wxUSE_DEBUG_GDB" = yes; then
3794 echo "$as_me:$LINENO: result: yes" >&5
3795echo "${ECHO_T}yes" >&6
3796 else
3797 echo "$as_me:$LINENO: result: no" >&5
3798echo "${ECHO_T}no" >&6
3799 fi
3800
3801
3802 enablestring=
3803 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_cntxt" >&5
3804echo $ECHO_N "checking for --${enablestring:-enable}-debug_cntxt... $ECHO_C" >&6
3805 no_cache=0
3806 # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given.
3807if test "${enable_debug_cntxt+set}" = set; then
3808 enableval="$enable_debug_cntxt"
3809
3810 if test "$enableval" = yes; then
3811 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes'
3812 else
3813 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no'
3814 fi
3815
3816else
3817
3818 LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}`
3819 if test "x$LINE" != x ; then
3820 eval "DEFAULT_$LINE"
3821 else
3822 no_cache=1
3823 fi
3824
3825 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT
3826
3827fi;
3828
3829 eval "$ac_cv_use_debug_cntxt"
3830 if test "$no_cache" != 1; then
3831 echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp
3832 fi
3833
3834 if test "$wxUSE_DEBUG_CONTEXT" = yes; then
3835 echo "$as_me:$LINENO: result: yes" >&5
3836echo "${ECHO_T}yes" >&6
3837 else
3838 echo "$as_me:$LINENO: result: no" >&5
3839echo "${ECHO_T}no" >&6
3840 fi
3841
3842
3843 enablestring=
3844 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mem_tracing" >&5
3845echo $ECHO_N "checking for --${enablestring:-enable}-mem_tracing... $ECHO_C" >&6
3846 no_cache=0
3847 # Check whether --enable-mem_tracing or --disable-mem_tracing was given.
3848if test "${enable_mem_tracing+set}" = set; then
3849 enableval="$enable_mem_tracing"
3850
3851 if test "$enableval" = yes; then
3852 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes'
3853 else
3854 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no'
3855 fi
3856
3857else
3858
3859 LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}`
3860 if test "x$LINE" != x ; then
3861 eval "DEFAULT_$LINE"
3862 else
3863 no_cache=1
3864 fi
3865
3866 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING
3867
3868fi;
3869
3870 eval "$ac_cv_use_mem_tracing"
3871 if test "$no_cache" != 1; then
3872 echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp
3873 fi
3874
3875 if test "$wxUSE_MEM_TRACING" = yes; then
3876 echo "$as_me:$LINENO: result: yes" >&5
3877echo "${ECHO_T}yes" >&6
3878 else
3879 echo "$as_me:$LINENO: result: no" >&5
3880echo "${ECHO_T}no" >&6
3881 fi
3882
3883
3884 enablestring=
3885 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-profile" >&5
3886echo $ECHO_N "checking for --${enablestring:-enable}-profile... $ECHO_C" >&6
3887 no_cache=0
3888 # Check whether --enable-profile or --disable-profile was given.
3889if test "${enable_profile+set}" = set; then
3890 enableval="$enable_profile"
3891
3892 if test "$enableval" = yes; then
3893 ac_cv_use_profile='wxUSE_PROFILE=yes'
3894 else
3895 ac_cv_use_profile='wxUSE_PROFILE=no'
3896 fi
3897
3898else
3899
3900 LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}`
3901 if test "x$LINE" != x ; then
3902 eval "DEFAULT_$LINE"
3903 else
3904 no_cache=1
3905 fi
3906
3907 ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE
3908
3909fi;
3910
3911 eval "$ac_cv_use_profile"
3912 if test "$no_cache" != 1; then
3913 echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp
3914 fi
3915
3916 if test "$wxUSE_PROFILE" = yes; then
3917 echo "$as_me:$LINENO: result: yes" >&5
3918echo "${ECHO_T}yes" >&6
3919 else
3920 echo "$as_me:$LINENO: result: no" >&5
3921echo "${ECHO_T}no" >&6
3922 fi
3923
3924
3925 enablestring=
3926 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_rtti" >&5
3927echo $ECHO_N "checking for --${enablestring:-enable}-no_rtti... $ECHO_C" >&6
3928 no_cache=0
3929 # Check whether --enable-no_rtti or --disable-no_rtti was given.
3930if test "${enable_no_rtti+set}" = set; then
3931 enableval="$enable_no_rtti"
3932
3933 if test "$enableval" = yes; then
3934 ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes'
3935 else
3936 ac_cv_use_no_rtti='wxUSE_NO_RTTI=no'
3937 fi
3938
3939else
3940
3941 LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}`
3942 if test "x$LINE" != x ; then
3943 eval "DEFAULT_$LINE"
3944 else
3945 no_cache=1
3946 fi
3947
3948 ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI
3949
3950fi;
3951
3952 eval "$ac_cv_use_no_rtti"
3953 if test "$no_cache" != 1; then
3954 echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp
3955 fi
3956
3957 if test "$wxUSE_NO_RTTI" = yes; then
3958 echo "$as_me:$LINENO: result: yes" >&5
3959echo "${ECHO_T}yes" >&6
3960 else
3961 echo "$as_me:$LINENO: result: no" >&5
3962echo "${ECHO_T}no" >&6
3963 fi
3964
3965
3966 enablestring=
3967 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_exceptions" >&5
3968echo $ECHO_N "checking for --${enablestring:-enable}-no_exceptions... $ECHO_C" >&6
3969 no_cache=0
3970 # Check whether --enable-no_exceptions or --disable-no_exceptions was given.
3971if test "${enable_no_exceptions+set}" = set; then
3972 enableval="$enable_no_exceptions"
3973
3974 if test "$enableval" = yes; then
3975 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes'
3976 else
3977 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no'
3978 fi
3979
3980else
3981
3982 LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}`
3983 if test "x$LINE" != x ; then
3984 eval "DEFAULT_$LINE"
3985 else
3986 no_cache=1
3987 fi
3988
3989 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS
3990
3991fi;
3992
3993 eval "$ac_cv_use_no_exceptions"
3994 if test "$no_cache" != 1; then
3995 echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp
3996 fi
3997
3998 if test "$wxUSE_NO_EXCEPTIONS" = yes; then
3999 echo "$as_me:$LINENO: result: yes" >&5
4000echo "${ECHO_T}yes" >&6
4001 else
4002 echo "$as_me:$LINENO: result: no" >&5
4003echo "${ECHO_T}no" >&6
4004 fi
4005
4006
4007 enablestring=
4008 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-permissive" >&5
4009echo $ECHO_N "checking for --${enablestring:-enable}-permissive... $ECHO_C" >&6
4010 no_cache=0
4011 # Check whether --enable-permissive or --disable-permissive was given.
4012if test "${enable_permissive+set}" = set; then
4013 enableval="$enable_permissive"
4014
4015 if test "$enableval" = yes; then
4016 ac_cv_use_permissive='wxUSE_PERMISSIVE=yes'
4017 else
4018 ac_cv_use_permissive='wxUSE_PERMISSIVE=no'
4019 fi
4020
4021else
4022
4023 LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}`
4024 if test "x$LINE" != x ; then
4025 eval "DEFAULT_$LINE"
4026 else
4027 no_cache=1
4028 fi
4029
4030 ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE
4031
4032fi;
4033
4034 eval "$ac_cv_use_permissive"
4035 if test "$no_cache" != 1; then
4036 echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp
4037 fi
4038
4039 if test "$wxUSE_PERMISSIVE" = yes; then
4040 echo "$as_me:$LINENO: result: yes" >&5
4041echo "${ECHO_T}yes" >&6
4042 else
4043 echo "$as_me:$LINENO: result: no" >&5
4044echo "${ECHO_T}no" >&6
4045 fi
4046
4047
4048 enablestring=
4049 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_deps" >&5
4050echo $ECHO_N "checking for --${enablestring:-enable}-no_deps... $ECHO_C" >&6
4051 no_cache=0
4052 # Check whether --enable-no_deps or --disable-no_deps was given.
4053if test "${enable_no_deps+set}" = set; then
4054 enableval="$enable_no_deps"
4055
4056 if test "$enableval" = yes; then
4057 ac_cv_use_no_deps='wxUSE_NO_DEPS=yes'
4058 else
4059 ac_cv_use_no_deps='wxUSE_NO_DEPS=no'
4060 fi
4061
4062else
4063
4064 LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}`
4065 if test "x$LINE" != x ; then
4066 eval "DEFAULT_$LINE"
4067 else
4068 no_cache=1
4069 fi
4070
4071 ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS
4072
4073fi;
4074
4075 eval "$ac_cv_use_no_deps"
4076 if test "$no_cache" != 1; then
4077 echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp
4078 fi
4079
4080 if test "$wxUSE_NO_DEPS" = yes; then
4081 echo "$as_me:$LINENO: result: yes" >&5
4082echo "${ECHO_T}yes" >&6
4083 else
4084 echo "$as_me:$LINENO: result: no" >&5
4085echo "${ECHO_T}no" >&6
4086 fi
4087
4088
4089
4090 enablestring=
4091 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat22" >&5
4092echo $ECHO_N "checking for --${enablestring:-enable}-compat22... $ECHO_C" >&6
4093 no_cache=0
4094 # Check whether --enable-compat22 or --disable-compat22 was given.
4095if test "${enable_compat22+set}" = set; then
4096 enableval="$enable_compat22"
4097
4098 if test "$enableval" = yes; then
4099 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=yes'
4100 else
4101 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=no'
4102 fi
4103
4104else
4105
4106 LINE=`grep "WXWIN_COMPATIBILITY_2_2" ${wx_arg_cache_file}`
4107 if test "x$LINE" != x ; then
4108 eval "DEFAULT_$LINE"
4109 else
4110 no_cache=1
4111 fi
4112
4113 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2='$DEFAULT_WXWIN_COMPATIBILITY_2_2
4114
4115fi;
4116
4117 eval "$ac_cv_use_compat22"
4118 if test "$no_cache" != 1; then
4119 echo $ac_cv_use_compat22 >> ${wx_arg_cache_file}.tmp
4120 fi
4121
4122 if test "$WXWIN_COMPATIBILITY_2_2" = yes; then
4123 echo "$as_me:$LINENO: result: yes" >&5
4124echo "${ECHO_T}yes" >&6
4125 else
4126 echo "$as_me:$LINENO: result: no" >&5
4127echo "${ECHO_T}no" >&6
4128 fi
4129
4130
4131 enablestring=disable
4132 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat24" >&5
4133echo $ECHO_N "checking for --${enablestring:-enable}-compat24... $ECHO_C" >&6
4134 no_cache=0
4135 # Check whether --enable-compat24 or --disable-compat24 was given.
4136if test "${enable_compat24+set}" = set; then
4137 enableval="$enable_compat24"
4138
4139 if test "$enableval" = yes; then
4140 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=yes'
4141 else
4142 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=no'
4143 fi
4144
4145else
4146
4147 LINE=`grep "WXWIN_COMPATIBILITY_2_4" ${wx_arg_cache_file}`
4148 if test "x$LINE" != x ; then
4149 eval "DEFAULT_$LINE"
4150 else
4151 no_cache=1
4152 fi
4153
4154 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4='$DEFAULT_WXWIN_COMPATIBILITY_2_4
4155
4156fi;
4157
4158 eval "$ac_cv_use_compat24"
4159 if test "$no_cache" != 1; then
4160 echo $ac_cv_use_compat24 >> ${wx_arg_cache_file}.tmp
4161 fi
4162
4163 if test "$WXWIN_COMPATIBILITY_2_4" = yes; then
4164 echo "$as_me:$LINENO: result: yes" >&5
4165echo "${ECHO_T}yes" >&6
4166 else
4167 echo "$as_me:$LINENO: result: no" >&5
4168echo "${ECHO_T}no" >&6
4169 fi
4170
4171
ffa0583f
RL
4172
4173 enablestring=
4174 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-rpath" >&5
4175echo $ECHO_N "checking for --${enablestring:-enable}-rpath... $ECHO_C" >&6
4176 no_cache=0
4177 # Check whether --enable-rpath or --disable-rpath was given.
a848cd7e
SC
4178if test "${enable_rpath+set}" = set; then
4179 enableval="$enable_rpath"
ffa0583f
RL
4180
4181 if test "$enableval" = yes; then
4182 ac_cv_use_rpath='wxUSE_RPATH=yes'
4183 else
4184 ac_cv_use_rpath='wxUSE_RPATH=no'
4185 fi
4186
4187else
4188
4189 LINE=`grep "wxUSE_RPATH" ${wx_arg_cache_file}`
4190 if test "x$LINE" != x ; then
4191 eval "DEFAULT_$LINE"
4192 else
4193 no_cache=1
4194 fi
4195
4196 ac_cv_use_rpath='wxUSE_RPATH='$DEFAULT_wxUSE_RPATH
4197
a848cd7e
SC
4198fi;
4199
ffa0583f
RL
4200 eval "$ac_cv_use_rpath"
4201 if test "$no_cache" != 1; then
4202 echo $ac_cv_use_rpath >> ${wx_arg_cache_file}.tmp
4203 fi
4204
4205 if test "$wxUSE_RPATH" = yes; then
4206 echo "$as_me:$LINENO: result: yes" >&5
4207echo "${ECHO_T}yes" >&6
4208 else
4209 echo "$as_me:$LINENO: result: no" >&5
4210echo "${ECHO_T}no" >&6
4211 fi
4212
a848cd7e
SC
4213
4214
4215
4216
4217 enablestring=
4218 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-intl" >&5
4219echo $ECHO_N "checking for --${enablestring:-enable}-intl... $ECHO_C" >&6
4220 no_cache=0
4221 # Check whether --enable-intl or --disable-intl was given.
4222if test "${enable_intl+set}" = set; then
4223 enableval="$enable_intl"
4224
4225 if test "$enableval" = yes; then
4226 ac_cv_use_intl='wxUSE_INTL=yes'
4227 else
4228 ac_cv_use_intl='wxUSE_INTL=no'
4229 fi
4230
4231else
4232
4233 LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}`
4234 if test "x$LINE" != x ; then
4235 eval "DEFAULT_$LINE"
4236 else
4237 no_cache=1
4238 fi
4239
4240 ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL
4241
4242fi;
4243
4244 eval "$ac_cv_use_intl"
4245 if test "$no_cache" != 1; then
4246 echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp
4247 fi
4248
4249 if test "$wxUSE_INTL" = yes; then
4250 echo "$as_me:$LINENO: result: yes" >&5
4251echo "${ECHO_T}yes" >&6
4252 else
4253 echo "$as_me:$LINENO: result: no" >&5
4254echo "${ECHO_T}no" >&6
4255 fi
4256
4257
4258 enablestring=
4259 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-config" >&5
4260echo $ECHO_N "checking for --${enablestring:-enable}-config... $ECHO_C" >&6
4261 no_cache=0
4262 # Check whether --enable-config or --disable-config was given.
4263if test "${enable_config+set}" = set; then
4264 enableval="$enable_config"
4265
4266 if test "$enableval" = yes; then
4267 ac_cv_use_config='wxUSE_CONFIG=yes'
4268 else
4269 ac_cv_use_config='wxUSE_CONFIG=no'
4270 fi
4271
4272else
4273
4274 LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}`
4275 if test "x$LINE" != x ; then
4276 eval "DEFAULT_$LINE"
4277 else
4278 no_cache=1
4279 fi
4280
4281 ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG
4282
4283fi;
4284
4285 eval "$ac_cv_use_config"
4286 if test "$no_cache" != 1; then
4287 echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp
4288 fi
4289
4290 if test "$wxUSE_CONFIG" = yes; then
4291 echo "$as_me:$LINENO: result: yes" >&5
4292echo "${ECHO_T}yes" >&6
4293 else
4294 echo "$as_me:$LINENO: result: no" >&5
4295echo "${ECHO_T}no" >&6
4296 fi
4297
4298
4299
4300 enablestring=
4301 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocols" >&5
4302echo $ECHO_N "checking for --${enablestring:-enable}-protocols... $ECHO_C" >&6
4303 no_cache=0
4304 # Check whether --enable-protocols or --disable-protocols was given.
4305if test "${enable_protocols+set}" = set; then
4306 enableval="$enable_protocols"
4307
4308 if test "$enableval" = yes; then
4309 ac_cv_use_protocols='wxUSE_PROTOCOL=yes'
4310 else
4311 ac_cv_use_protocols='wxUSE_PROTOCOL=no'
4312 fi
4313
4314else
4315
4316 LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
4317 if test "x$LINE" != x ; then
4318 eval "DEFAULT_$LINE"
4319 else
4320 no_cache=1
4321 fi
4322
4323 ac_cv_use_protocols='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
4324
4325fi;
4326
4327 eval "$ac_cv_use_protocols"
4328 if test "$no_cache" != 1; then
4329 echo $ac_cv_use_protocols >> ${wx_arg_cache_file}.tmp
4330 fi
4331
4332 if test "$wxUSE_PROTOCOL" = yes; then
4333 echo "$as_me:$LINENO: result: yes" >&5
4334echo "${ECHO_T}yes" >&6
4335 else
4336 echo "$as_me:$LINENO: result: no" >&5
4337echo "${ECHO_T}no" >&6
4338 fi
4339
4340
4341 enablestring=
4342 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ftp" >&5
4343echo $ECHO_N "checking for --${enablestring:-enable}-ftp... $ECHO_C" >&6
4344 no_cache=0
4345 # Check whether --enable-ftp or --disable-ftp was given.
4346if test "${enable_ftp+set}" = set; then
4347 enableval="$enable_ftp"
4348
4349 if test "$enableval" = yes; then
4350 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=yes'
4351 else
4352 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=no'
4353 fi
4354
4355else
4356
4357 LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
4358 if test "x$LINE" != x ; then
4359 eval "DEFAULT_$LINE"
4360 else
4361 no_cache=1
4362 fi
4363
4364 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
4365
4366fi;
4367
4368 eval "$ac_cv_use_ftp"
4369 if test "$no_cache" != 1; then
4370 echo $ac_cv_use_ftp >> ${wx_arg_cache_file}.tmp
4371 fi
4372
4373 if test "$wxUSE_PROTOCOL_FTP" = yes; then
4374 echo "$as_me:$LINENO: result: yes" >&5
4375echo "${ECHO_T}yes" >&6
4376 else
4377 echo "$as_me:$LINENO: result: no" >&5
4378echo "${ECHO_T}no" >&6
4379 fi
4380
4381
4382 enablestring=
4383 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-http" >&5
4384echo $ECHO_N "checking for --${enablestring:-enable}-http... $ECHO_C" >&6
4385 no_cache=0
4386 # Check whether --enable-http or --disable-http was given.
4387if test "${enable_http+set}" = set; then
4388 enableval="$enable_http"
4389
4390 if test "$enableval" = yes; then
4391 ac_cv_use_http='wxUSE_PROTOCOL_HTTP=yes'
4392 else
4393 ac_cv_use_http='wxUSE_PROTOCOL_HTTP=no'
4394 fi
4395
4396else
4397
4398 LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
4399 if test "x$LINE" != x ; then
4400 eval "DEFAULT_$LINE"
4401 else
4402 no_cache=1
4403 fi
4404
4405 ac_cv_use_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
4406
4407fi;
4408
4409 eval "$ac_cv_use_http"
4410 if test "$no_cache" != 1; then
4411 echo $ac_cv_use_http >> ${wx_arg_cache_file}.tmp
4412 fi
4413
4414 if test "$wxUSE_PROTOCOL_HTTP" = yes; then
4415 echo "$as_me:$LINENO: result: yes" >&5
4416echo "${ECHO_T}yes" >&6
4417 else
4418 echo "$as_me:$LINENO: result: no" >&5
4419echo "${ECHO_T}no" >&6
4420 fi
4421
4422
4423 enablestring=
4424 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fileproto" >&5
4425echo $ECHO_N "checking for --${enablestring:-enable}-fileproto... $ECHO_C" >&6
4426 no_cache=0
4427 # Check whether --enable-fileproto or --disable-fileproto was given.
4428if test "${enable_fileproto+set}" = set; then
4429 enableval="$enable_fileproto"
4430
4431 if test "$enableval" = yes; then
4432 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=yes'
4433 else
4434 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=no'
4435 fi
4436
4437else
4438
4439 LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
4440 if test "x$LINE" != x ; then
4441 eval "DEFAULT_$LINE"
4442 else
4443 no_cache=1
4444 fi
4445
4446 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
4447
4448fi;
4449
4450 eval "$ac_cv_use_fileproto"
4451 if test "$no_cache" != 1; then
4452 echo $ac_cv_use_fileproto >> ${wx_arg_cache_file}.tmp
4453 fi
4454
4455 if test "$wxUSE_PROTOCOL_FILE" = yes; then
4456 echo "$as_me:$LINENO: result: yes" >&5
4457echo "${ECHO_T}yes" >&6
4458 else
4459 echo "$as_me:$LINENO: result: no" >&5
4460echo "${ECHO_T}no" >&6
4461 fi
4462
4463
4464 enablestring=
4465 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sockets" >&5
4466echo $ECHO_N "checking for --${enablestring:-enable}-sockets... $ECHO_C" >&6
4467 no_cache=0
4468 # Check whether --enable-sockets or --disable-sockets was given.
4469if test "${enable_sockets+set}" = set; then
4470 enableval="$enable_sockets"
4471
4472 if test "$enableval" = yes; then
4473 ac_cv_use_sockets='wxUSE_SOCKETS=yes'
4474 else
4475 ac_cv_use_sockets='wxUSE_SOCKETS=no'
4476 fi
4477
4478else
4479
4480 LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}`
4481 if test "x$LINE" != x ; then
4482 eval "DEFAULT_$LINE"
4483 else
4484 no_cache=1
4485 fi
4486
4487 ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS
4488
4489fi;
4490
4491 eval "$ac_cv_use_sockets"
4492 if test "$no_cache" != 1; then
4493 echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp
4494 fi
4495
4496 if test "$wxUSE_SOCKETS" = yes; then
4497 echo "$as_me:$LINENO: result: yes" >&5
4498echo "${ECHO_T}yes" >&6
4499 else
4500 echo "$as_me:$LINENO: result: no" >&5
4501echo "${ECHO_T}no" >&6
4502 fi
4503
4504
4505 enablestring=
4506 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ole" >&5
4507echo $ECHO_N "checking for --${enablestring:-enable}-ole... $ECHO_C" >&6
4508 no_cache=0
4509 # Check whether --enable-ole or --disable-ole was given.
4510if test "${enable_ole+set}" = set; then
4511 enableval="$enable_ole"
4512
4513 if test "$enableval" = yes; then
4514 ac_cv_use_ole='wxUSE_OLE=yes'
4515 else
4516 ac_cv_use_ole='wxUSE_OLE=no'
4517 fi
4518
4519else
4520
4521 LINE=`grep "wxUSE_OLE" ${wx_arg_cache_file}`
4522 if test "x$LINE" != x ; then
4523 eval "DEFAULT_$LINE"
4524 else
4525 no_cache=1
4526 fi
4527
4528 ac_cv_use_ole='wxUSE_OLE='$DEFAULT_wxUSE_OLE
4529
4530fi;
4531
4532 eval "$ac_cv_use_ole"
4533 if test "$no_cache" != 1; then
4534 echo $ac_cv_use_ole >> ${wx_arg_cache_file}.tmp
4535 fi
4536
4537 if test "$wxUSE_OLE" = yes; then
4538 echo "$as_me:$LINENO: result: yes" >&5
4539echo "${ECHO_T}yes" >&6
4540 else
4541 echo "$as_me:$LINENO: result: no" >&5
4542echo "${ECHO_T}no" >&6
4543 fi
4544
4545
4546 enablestring=
4547 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dataobj" >&5
4548echo $ECHO_N "checking for --${enablestring:-enable}-dataobj... $ECHO_C" >&6
4549 no_cache=0
4550 # Check whether --enable-dataobj or --disable-dataobj was given.
4551if test "${enable_dataobj+set}" = set; then
4552 enableval="$enable_dataobj"
4553
4554 if test "$enableval" = yes; then
4555 ac_cv_use_dataobj='wxUSE_DATAOBJ=yes'
4556 else
4557 ac_cv_use_dataobj='wxUSE_DATAOBJ=no'
4558 fi
4559
4560else
4561
4562 LINE=`grep "wxUSE_DATAOBJ" ${wx_arg_cache_file}`
4563 if test "x$LINE" != x ; then
4564 eval "DEFAULT_$LINE"
4565 else
4566 no_cache=1
4567 fi
4568
4569 ac_cv_use_dataobj='wxUSE_DATAOBJ='$DEFAULT_wxUSE_DATAOBJ
4570
4571fi;
4572
4573 eval "$ac_cv_use_dataobj"
4574 if test "$no_cache" != 1; then
4575 echo $ac_cv_use_dataobj >> ${wx_arg_cache_file}.tmp
4576 fi
4577
4578 if test "$wxUSE_DATAOBJ" = yes; then
4579 echo "$as_me:$LINENO: result: yes" >&5
4580echo "${ECHO_T}yes" >&6
4581 else
4582 echo "$as_me:$LINENO: result: no" >&5
4583echo "${ECHO_T}no" >&6
4584 fi
4585
4586
4587
4588 enablestring=
4589 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ipc" >&5
4590echo $ECHO_N "checking for --${enablestring:-enable}-ipc... $ECHO_C" >&6
4591 no_cache=0
4592 # Check whether --enable-ipc or --disable-ipc was given.
4593if test "${enable_ipc+set}" = set; then
4594 enableval="$enable_ipc"
4595
4596 if test "$enableval" = yes; then
4597 ac_cv_use_ipc='wxUSE_IPC=yes'
4598 else
4599 ac_cv_use_ipc='wxUSE_IPC=no'
4600 fi
4601
4602else
4603
4604 LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}`
4605 if test "x$LINE" != x ; then
4606 eval "DEFAULT_$LINE"
4607 else
4608 no_cache=1
4609 fi
4610
4611 ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC
4612
4613fi;
4614
4615 eval "$ac_cv_use_ipc"
4616 if test "$no_cache" != 1; then
4617 echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp
4618 fi
4619
4620 if test "$wxUSE_IPC" = yes; then
4621 echo "$as_me:$LINENO: result: yes" >&5
4622echo "${ECHO_T}yes" >&6
4623 else
4624 echo "$as_me:$LINENO: result: no" >&5
4625echo "${ECHO_T}no" >&6
4626 fi
4627
4628
4629
4630 enablestring=
4631 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-apple_ieee" >&5
4632echo $ECHO_N "checking for --${enablestring:-enable}-apple_ieee... $ECHO_C" >&6
4633 no_cache=0
4634 # Check whether --enable-apple_ieee or --disable-apple_ieee was given.
4635if test "${enable_apple_ieee+set}" = set; then
4636 enableval="$enable_apple_ieee"
4637
4638 if test "$enableval" = yes; then
4639 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes'
4640 else
4641 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no'
4642 fi
4643
4644else
4645
4646 LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}`
4647 if test "x$LINE" != x ; then
4648 eval "DEFAULT_$LINE"
4649 else
4650 no_cache=1
4651 fi
4652
4653 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE
4654
4655fi;
4656
4657 eval "$ac_cv_use_apple_ieee"
4658 if test "$no_cache" != 1; then
4659 echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp
4660 fi
4661
4662 if test "$wxUSE_APPLE_IEEE" = yes; then
4663 echo "$as_me:$LINENO: result: yes" >&5
4664echo "${ECHO_T}yes" >&6
4665 else
4666 echo "$as_me:$LINENO: result: no" >&5
4667echo "${ECHO_T}no" >&6
4668 fi
4669
4670
81f90336
MW
4671 enablestring=
4672 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-arcstream" >&5
4673echo $ECHO_N "checking for --${enablestring:-enable}-arcstream... $ECHO_C" >&6
4674 no_cache=0
4675 # Check whether --enable-arcstream or --disable-arcstream was given.
4676if test "${enable_arcstream+set}" = set; then
4677 enableval="$enable_arcstream"
4678
4679 if test "$enableval" = yes; then
9e8e867f 4680 ac_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS=yes'
81f90336 4681 else
9e8e867f 4682 ac_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS=no'
81f90336
MW
4683 fi
4684
4685else
4686
9e8e867f 4687 LINE=`grep "wxUSE_ARCHIVE_STREAMS" ${wx_arg_cache_file}`
81f90336
MW
4688 if test "x$LINE" != x ; then
4689 eval "DEFAULT_$LINE"
4690 else
4691 no_cache=1
4692 fi
4693
9e8e867f 4694 ac_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS='$DEFAULT_wxUSE_ARCHIVE_STREAMS
81f90336
MW
4695
4696fi;
4697
4698 eval "$ac_cv_use_arcstream"
4699 if test "$no_cache" != 1; then
4700 echo $ac_cv_use_arcstream >> ${wx_arg_cache_file}.tmp
4701 fi
4702
9e8e867f 4703 if test "$wxUSE_ARCHIVE_STREAMS" = yes; then
81f90336
MW
4704 echo "$as_me:$LINENO: result: yes" >&5
4705echo "${ECHO_T}yes" >&6
4706 else
4707 echo "$as_me:$LINENO: result: no" >&5
4708echo "${ECHO_T}no" >&6
4709 fi
4710
4711
a848cd7e
SC
4712 enablestring=
4713 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-catch_segvs" >&5
4714echo $ECHO_N "checking for --${enablestring:-enable}-catch_segvs... $ECHO_C" >&6
4715 no_cache=0
4716 # Check whether --enable-catch_segvs or --disable-catch_segvs was given.
4717if test "${enable_catch_segvs+set}" = set; then
4718 enableval="$enable_catch_segvs"
4719
4720 if test "$enableval" = yes; then
4721 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes'
4722 else
4723 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no'
4724 fi
4725
4726else
4727
4728 LINE=`grep "wxUSE_ON_FATAL_EXCEPTION" ${wx_arg_cache_file}`
4729 if test "x$LINE" != x ; then
4730 eval "DEFAULT_$LINE"
4731 else
4732 no_cache=1
4733 fi
4734
4735 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION='$DEFAULT_wxUSE_ON_FATAL_EXCEPTION
4736
4737fi;
4738
4739 eval "$ac_cv_use_catch_segvs"
4740 if test "$no_cache" != 1; then
4741 echo $ac_cv_use_catch_segvs >> ${wx_arg_cache_file}.tmp
4742 fi
4743
4744 if test "$wxUSE_ON_FATAL_EXCEPTION" = yes; then
4745 echo "$as_me:$LINENO: result: yes" >&5
4746echo "${ECHO_T}yes" >&6
4747 else
4748 echo "$as_me:$LINENO: result: no" >&5
4749echo "${ECHO_T}no" >&6
4750 fi
4751
4752
eaff0f0d
VZ
4753 enablestring=
4754 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-backtrace" >&5
4755echo $ECHO_N "checking for --${enablestring:-enable}-backtrace... $ECHO_C" >&6
4756 no_cache=0
4757 # Check whether --enable-backtrace or --disable-backtrace was given.
4758if test "${enable_backtrace+set}" = set; then
4759 enableval="$enable_backtrace"
4760
4761 if test "$enableval" = yes; then
4762 ac_cv_use_backtrace='wxUSE_STACKWALKER=yes'
4763 else
4764 ac_cv_use_backtrace='wxUSE_STACKWALKER=no'
4765 fi
4766
4767else
4768
4769 LINE=`grep "wxUSE_STACKWALKER" ${wx_arg_cache_file}`
4770 if test "x$LINE" != x ; then
4771 eval "DEFAULT_$LINE"
4772 else
4773 no_cache=1
4774 fi
4775
4776 ac_cv_use_backtrace='wxUSE_STACKWALKER='$DEFAULT_wxUSE_STACKWALKER
4777
4778fi;
4779
4780 eval "$ac_cv_use_backtrace"
4781 if test "$no_cache" != 1; then
4782 echo $ac_cv_use_backtrace >> ${wx_arg_cache_file}.tmp
4783 fi
4784
4785 if test "$wxUSE_STACKWALKER" = yes; then
4786 echo "$as_me:$LINENO: result: yes" >&5
4787echo "${ECHO_T}yes" >&6
4788 else
4789 echo "$as_me:$LINENO: result: no" >&5
4790echo "${ECHO_T}no" >&6
4791 fi
4792
4793
a848cd7e
SC
4794 enablestring=
4795 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-cmdline" >&5
4796echo $ECHO_N "checking for --${enablestring:-enable}-cmdline... $ECHO_C" >&6
4797 no_cache=0
4798 # Check whether --enable-cmdline or --disable-cmdline was given.
4799if test "${enable_cmdline+set}" = set; then
4800 enableval="$enable_cmdline"
4801
4802 if test "$enableval" = yes; then
4803 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=yes'
4804 else
4805 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=no'
4806 fi
4807
4808else
4809
4810 LINE=`grep "wxUSE_CMDLINE_PARSER" ${wx_arg_cache_file}`
4811 if test "x$LINE" != x ; then
4812 eval "DEFAULT_$LINE"
4813 else
4814 no_cache=1
4815 fi
4816
4817 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER='$DEFAULT_wxUSE_CMDLINE_PARSER
4818
4819fi;
4820
4821 eval "$ac_cv_use_cmdline"
4822 if test "$no_cache" != 1; then
4823 echo $ac_cv_use_cmdline >> ${wx_arg_cache_file}.tmp
4824 fi
4825
4826 if test "$wxUSE_CMDLINE_PARSER" = yes; then
4827 echo "$as_me:$LINENO: result: yes" >&5
4828echo "${ECHO_T}yes" >&6
4829 else
4830 echo "$as_me:$LINENO: result: no" >&5
4831echo "${ECHO_T}no" >&6
4832 fi
4833
4834
4835 enablestring=
4836 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-datetime" >&5
4837echo $ECHO_N "checking for --${enablestring:-enable}-datetime... $ECHO_C" >&6
4838 no_cache=0
4839 # Check whether --enable-datetime or --disable-datetime was given.
4840if test "${enable_datetime+set}" = set; then
4841 enableval="$enable_datetime"
4842
4843 if test "$enableval" = yes; then
4844 ac_cv_use_datetime='wxUSE_DATETIME=yes'
4845 else
4846 ac_cv_use_datetime='wxUSE_DATETIME=no'
4847 fi
4848
4849else
4850
4851 LINE=`grep "wxUSE_DATETIME" ${wx_arg_cache_file}`
4852 if test "x$LINE" != x ; then
4853 eval "DEFAULT_$LINE"
4854 else
4855 no_cache=1
4856 fi
4857
4858 ac_cv_use_datetime='wxUSE_DATETIME='$DEFAULT_wxUSE_DATETIME
4859
4860fi;
4861
4862 eval "$ac_cv_use_datetime"
4863 if test "$no_cache" != 1; then
4864 echo $ac_cv_use_datetime >> ${wx_arg_cache_file}.tmp
4865 fi
4866
4867 if test "$wxUSE_DATETIME" = yes; then
4868 echo "$as_me:$LINENO: result: yes" >&5
4869echo "${ECHO_T}yes" >&6
4870 else
4871 echo "$as_me:$LINENO: result: no" >&5
4872echo "${ECHO_T}no" >&6
4873 fi
4874
4875
4876 enablestring=
4877 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dialupman" >&5
4878echo $ECHO_N "checking for --${enablestring:-enable}-dialupman... $ECHO_C" >&6
4879 no_cache=0
4880 # Check whether --enable-dialupman or --disable-dialupman was given.
4881if test "${enable_dialupman+set}" = set; then
4882 enableval="$enable_dialupman"
4883
4884 if test "$enableval" = yes; then
4885 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes'
4886 else
4887 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no'
4888 fi
4889
4890else
4891
4892 LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}`
4893 if test "x$LINE" != x ; then
4894 eval "DEFAULT_$LINE"
4895 else
4896 no_cache=1
4897 fi
4898
4899 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER
4900
4901fi;
4902
4903 eval "$ac_cv_use_dialupman"
4904 if test "$no_cache" != 1; then
4905 echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp
4906 fi
4907
4908 if test "$wxUSE_DIALUP_MANAGER" = yes; then
4909 echo "$as_me:$LINENO: result: yes" >&5
4910echo "${ECHO_T}yes" >&6
4911 else
4912 echo "$as_me:$LINENO: result: no" >&5
4913echo "${ECHO_T}no" >&6
4914 fi
4915
4916
4917 enablestring=
4918 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynlib" >&5
4919echo $ECHO_N "checking for --${enablestring:-enable}-dynlib... $ECHO_C" >&6
4920 no_cache=0
4921 # Check whether --enable-dynlib or --disable-dynlib was given.
4922if test "${enable_dynlib+set}" = set; then
4923 enableval="$enable_dynlib"
4924
4925 if test "$enableval" = yes; then
4926 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes'
4927 else
4928 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no'
4929 fi
4930
4931else
4932
4933 LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}`
4934 if test "x$LINE" != x ; then
4935 eval "DEFAULT_$LINE"
4936 else
4937 no_cache=1
4938 fi
4939
4940 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS
4941
4942fi;
4943
4944 eval "$ac_cv_use_dynlib"
4945 if test "$no_cache" != 1; then
4946 echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp
4947 fi
4948
4949 if test "$wxUSE_DYNLIB_CLASS" = yes; then
4950 echo "$as_me:$LINENO: result: yes" >&5
4951echo "${ECHO_T}yes" >&6
4952 else
4953 echo "$as_me:$LINENO: result: no" >&5
4954echo "${ECHO_T}no" >&6
4955 fi
4956
4957
4958 enablestring=
4959 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynamicloader" >&5
4960echo $ECHO_N "checking for --${enablestring:-enable}-dynamicloader... $ECHO_C" >&6
4961 no_cache=0
4962 # Check whether --enable-dynamicloader or --disable-dynamicloader was given.
4963if test "${enable_dynamicloader+set}" = set; then
4964 enableval="$enable_dynamicloader"
4965
4966 if test "$enableval" = yes; then
4967 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=yes'
4968 else
4969 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=no'
4970 fi
4971
4972else
4973
4974 LINE=`grep "wxUSE_DYNAMIC_LOADER" ${wx_arg_cache_file}`
4975 if test "x$LINE" != x ; then
4976 eval "DEFAULT_$LINE"
4977 else
4978 no_cache=1
4979 fi
4980
4981 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER='$DEFAULT_wxUSE_DYNAMIC_LOADER
4982
4983fi;
4984
4985 eval "$ac_cv_use_dynamicloader"
4986 if test "$no_cache" != 1; then
4987 echo $ac_cv_use_dynamicloader >> ${wx_arg_cache_file}.tmp
4988 fi
4989
4990 if test "$wxUSE_DYNAMIC_LOADER" = yes; then
4991 echo "$as_me:$LINENO: result: yes" >&5
4992echo "${ECHO_T}yes" >&6
4993 else
4994 echo "$as_me:$LINENO: result: no" >&5
4995echo "${ECHO_T}no" >&6
4996 fi
4997
4998
4999 enablestring=
5000 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-exceptions" >&5
5001echo $ECHO_N "checking for --${enablestring:-enable}-exceptions... $ECHO_C" >&6
5002 no_cache=0
5003 # Check whether --enable-exceptions or --disable-exceptions was given.
5004if test "${enable_exceptions+set}" = set; then
5005 enableval="$enable_exceptions"
5006
5007 if test "$enableval" = yes; then
5008 ac_cv_use_exceptions='wxUSE_EXCEPTIONS=yes'
5009 else
5010 ac_cv_use_exceptions='wxUSE_EXCEPTIONS=no'
5011 fi
5012
5013else
5014
5015 LINE=`grep "wxUSE_EXCEPTIONS" ${wx_arg_cache_file}`
5016 if test "x$LINE" != x ; then
5017 eval "DEFAULT_$LINE"
5018 else
5019 no_cache=1
5020 fi
5021
5022 ac_cv_use_exceptions='wxUSE_EXCEPTIONS='$DEFAULT_wxUSE_EXCEPTIONS
5023
5024fi;
5025
5026 eval "$ac_cv_use_exceptions"
5027 if test "$no_cache" != 1; then
5028 echo $ac_cv_use_exceptions >> ${wx_arg_cache_file}.tmp
5029 fi
5030
5031 if test "$wxUSE_EXCEPTIONS" = yes; then
5032 echo "$as_me:$LINENO: result: yes" >&5
5033echo "${ECHO_T}yes" >&6
5034 else
5035 echo "$as_me:$LINENO: result: no" >&5
5036echo "${ECHO_T}no" >&6
5037 fi
5038
5039
5040 enablestring=
5041 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ffile" >&5
5042echo $ECHO_N "checking for --${enablestring:-enable}-ffile... $ECHO_C" >&6
5043 no_cache=0
5044 # Check whether --enable-ffile or --disable-ffile was given.
5045if test "${enable_ffile+set}" = set; then
5046 enableval="$enable_ffile"
5047
5048 if test "$enableval" = yes; then
5049 ac_cv_use_ffile='wxUSE_FFILE=yes'
5050 else
5051 ac_cv_use_ffile='wxUSE_FFILE=no'
5052 fi
5053
5054else
5055
5056 LINE=`grep "wxUSE_FFILE" ${wx_arg_cache_file}`
5057 if test "x$LINE" != x ; then
5058 eval "DEFAULT_$LINE"
5059 else
5060 no_cache=1
5061 fi
5062
5063 ac_cv_use_ffile='wxUSE_FFILE='$DEFAULT_wxUSE_FFILE
5064
5065fi;
5066
5067 eval "$ac_cv_use_ffile"
5068 if test "$no_cache" != 1; then
5069 echo $ac_cv_use_ffile >> ${wx_arg_cache_file}.tmp
5070 fi
5071
5072 if test "$wxUSE_FFILE" = yes; then
5073 echo "$as_me:$LINENO: result: yes" >&5
5074echo "${ECHO_T}yes" >&6
5075 else
5076 echo "$as_me:$LINENO: result: no" >&5
5077echo "${ECHO_T}no" >&6
5078 fi
5079
5080
5081 enablestring=
5082 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-file" >&5
5083echo $ECHO_N "checking for --${enablestring:-enable}-file... $ECHO_C" >&6
5084 no_cache=0
5085 # Check whether --enable-file or --disable-file was given.
5086if test "${enable_file+set}" = set; then
5087 enableval="$enable_file"
5088
5089 if test "$enableval" = yes; then
5090 ac_cv_use_file='wxUSE_FILE=yes'
5091 else
5092 ac_cv_use_file='wxUSE_FILE=no'
5093 fi
5094
5095else
5096
5097 LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}`
5098 if test "x$LINE" != x ; then
5099 eval "DEFAULT_$LINE"
5100 else
5101 no_cache=1
5102 fi
5103
5104 ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE
5105
5106fi;
5107
5108 eval "$ac_cv_use_file"
5109 if test "$no_cache" != 1; then
5110 echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp
5111 fi
5112
5113 if test "$wxUSE_FILE" = yes; then
5114 echo "$as_me:$LINENO: result: yes" >&5
5115echo "${ECHO_T}yes" >&6
5116 else
5117 echo "$as_me:$LINENO: result: no" >&5
5118echo "${ECHO_T}no" >&6
5119 fi
5120
5121
5122 enablestring=
5123 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filesystem" >&5
5124echo $ECHO_N "checking for --${enablestring:-enable}-filesystem... $ECHO_C" >&6
5125 no_cache=0
5126 # Check whether --enable-filesystem or --disable-filesystem was given.
5127if test "${enable_filesystem+set}" = set; then
5128 enableval="$enable_filesystem"
5129
5130 if test "$enableval" = yes; then
5131 ac_cv_use_filesystem='wxUSE_FILESYSTEM=yes'
5132 else
5133 ac_cv_use_filesystem='wxUSE_FILESYSTEM=no'
5134 fi
5135
5136else
5137
5138 LINE=`grep "wxUSE_FILESYSTEM" ${wx_arg_cache_file}`
5139 if test "x$LINE" != x ; then
5140 eval "DEFAULT_$LINE"
5141 else
5142 no_cache=1
5143 fi
5144
5145 ac_cv_use_filesystem='wxUSE_FILESYSTEM='$DEFAULT_wxUSE_FILESYSTEM
5146
5147fi;
5148
5149 eval "$ac_cv_use_filesystem"
5150 if test "$no_cache" != 1; then
5151 echo $ac_cv_use_filesystem >> ${wx_arg_cache_file}.tmp
5152 fi
5153
5154 if test "$wxUSE_FILESYSTEM" = yes; then
5155 echo "$as_me:$LINENO: result: yes" >&5
5156echo "${ECHO_T}yes" >&6
5157 else
5158 echo "$as_me:$LINENO: result: no" >&5
5159echo "${ECHO_T}no" >&6
5160 fi
5161
5162
5163 enablestring=
5164 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontmap" >&5
5165echo $ECHO_N "checking for --${enablestring:-enable}-fontmap... $ECHO_C" >&6
5166 no_cache=0
5167 # Check whether --enable-fontmap or --disable-fontmap was given.
5168if test "${enable_fontmap+set}" = set; then
5169 enableval="$enable_fontmap"
5170
5171 if test "$enableval" = yes; then
5172 ac_cv_use_fontmap='wxUSE_FONTMAP=yes'
5173 else
5174 ac_cv_use_fontmap='wxUSE_FONTMAP=no'
5175 fi
5176
5177else
5178
5179 LINE=`grep "wxUSE_FONTMAP" ${wx_arg_cache_file}`
5180 if test "x$LINE" != x ; then
5181 eval "DEFAULT_$LINE"
5182 else
5183 no_cache=1
5184 fi
5185
5186 ac_cv_use_fontmap='wxUSE_FONTMAP='$DEFAULT_wxUSE_FONTMAP
5187
5188fi;
5189
5190 eval "$ac_cv_use_fontmap"
5191 if test "$no_cache" != 1; then
5192 echo $ac_cv_use_fontmap >> ${wx_arg_cache_file}.tmp
5193 fi
5194
5195 if test "$wxUSE_FONTMAP" = yes; then
5196 echo "$as_me:$LINENO: result: yes" >&5
5197echo "${ECHO_T}yes" >&6
5198 else
5199 echo "$as_me:$LINENO: result: no" >&5
5200echo "${ECHO_T}no" >&6
5201 fi
5202
5203
5204 enablestring=
5205 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_inet" >&5
5206echo $ECHO_N "checking for --${enablestring:-enable}-fs_inet... $ECHO_C" >&6
5207 no_cache=0
5208 # Check whether --enable-fs_inet or --disable-fs_inet was given.
5209if test "${enable_fs_inet+set}" = set; then
5210 enableval="$enable_fs_inet"
5211
5212 if test "$enableval" = yes; then
5213 ac_cv_use_fs_inet='wxUSE_FS_INET=yes'
5214 else
5215 ac_cv_use_fs_inet='wxUSE_FS_INET=no'
5216 fi
5217
5218else
5219
5220 LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}`
5221 if test "x$LINE" != x ; then
5222 eval "DEFAULT_$LINE"
5223 else
5224 no_cache=1
5225 fi
5226
5227 ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET
5228
5229fi;
5230
5231 eval "$ac_cv_use_fs_inet"
5232 if test "$no_cache" != 1; then
5233 echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp
5234 fi
5235
5236 if test "$wxUSE_FS_INET" = yes; then
5237 echo "$as_me:$LINENO: result: yes" >&5
5238echo "${ECHO_T}yes" >&6
5239 else
5240 echo "$as_me:$LINENO: result: no" >&5
5241echo "${ECHO_T}no" >&6
5242 fi
5243
5244
5245 enablestring=
5246 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_zip" >&5
5247echo $ECHO_N "checking for --${enablestring:-enable}-fs_zip... $ECHO_C" >&6
5248 no_cache=0
5249 # Check whether --enable-fs_zip or --disable-fs_zip was given.
5250if test "${enable_fs_zip+set}" = set; then
5251 enableval="$enable_fs_zip"
5252
5253 if test "$enableval" = yes; then
5254 ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes'
5255 else
5256 ac_cv_use_fs_zip='wxUSE_FS_ZIP=no'
5257 fi
5258
5259else
5260
5261 LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}`
5262 if test "x$LINE" != x ; then
5263 eval "DEFAULT_$LINE"
5264 else
5265 no_cache=1
5266 fi
5267
5268 ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP
5269
5270fi;
5271
5272 eval "$ac_cv_use_fs_zip"
5273 if test "$no_cache" != 1; then
5274 echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp
5275 fi
5276
5277 if test "$wxUSE_FS_ZIP" = yes; then
5278 echo "$as_me:$LINENO: result: yes" >&5
5279echo "${ECHO_T}yes" >&6
5280 else
5281 echo "$as_me:$LINENO: result: no" >&5
5282echo "${ECHO_T}no" >&6
5283 fi
5284
5285
5286 enablestring=
5287 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-geometry" >&5
5288echo $ECHO_N "checking for --${enablestring:-enable}-geometry... $ECHO_C" >&6
5289 no_cache=0
5290 # Check whether --enable-geometry or --disable-geometry was given.
5291if test "${enable_geometry+set}" = set; then
5292 enableval="$enable_geometry"
5293
5294 if test "$enableval" = yes; then
5295 ac_cv_use_geometry='wxUSE_GEOMETRY=yes'
5296 else
5297 ac_cv_use_geometry='wxUSE_GEOMETRY=no'
5298 fi
5299
5300else
5301
5302 LINE=`grep "wxUSE_GEOMETRY" ${wx_arg_cache_file}`
5303 if test "x$LINE" != x ; then
5304 eval "DEFAULT_$LINE"
5305 else
5306 no_cache=1
5307 fi
5308
5309 ac_cv_use_geometry='wxUSE_GEOMETRY='$DEFAULT_wxUSE_GEOMETRY
5310
5311fi;
5312
5313 eval "$ac_cv_use_geometry"
5314 if test "$no_cache" != 1; then
5315 echo $ac_cv_use_geometry >> ${wx_arg_cache_file}.tmp
5316 fi
5317
5318 if test "$wxUSE_GEOMETRY" = yes; then
5319 echo "$as_me:$LINENO: result: yes" >&5
5320echo "${ECHO_T}yes" >&6
5321 else
5322 echo "$as_me:$LINENO: result: no" >&5
5323echo "${ECHO_T}no" >&6
5324 fi
5325
5326
5327 enablestring=
5328 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-log" >&5
5329echo $ECHO_N "checking for --${enablestring:-enable}-log... $ECHO_C" >&6
5330 no_cache=0
5331 # Check whether --enable-log or --disable-log was given.
5332if test "${enable_log+set}" = set; then
5333 enableval="$enable_log"
5334
5335 if test "$enableval" = yes; then
5336 ac_cv_use_log='wxUSE_LOG=yes'
5337 else
5338 ac_cv_use_log='wxUSE_LOG=no'
5339 fi
5340
5341else
5342
5343 LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}`
5344 if test "x$LINE" != x ; then
5345 eval "DEFAULT_$LINE"
5346 else
5347 no_cache=1
5348 fi
5349
5350 ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG
5351
5352fi;
5353
5354 eval "$ac_cv_use_log"
5355 if test "$no_cache" != 1; then
5356 echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp
5357 fi
5358
5359 if test "$wxUSE_LOG" = yes; then
5360 echo "$as_me:$LINENO: result: yes" >&5
5361echo "${ECHO_T}yes" >&6
5362 else
5363 echo "$as_me:$LINENO: result: no" >&5
5364echo "${ECHO_T}no" >&6
5365 fi
5366
5367
5368 enablestring=
5369 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-longlong" >&5
5370echo $ECHO_N "checking for --${enablestring:-enable}-longlong... $ECHO_C" >&6
5371 no_cache=0
5372 # Check whether --enable-longlong or --disable-longlong was given.
5373if test "${enable_longlong+set}" = set; then
5374 enableval="$enable_longlong"
5375
5376 if test "$enableval" = yes; then
5377 ac_cv_use_longlong='wxUSE_LONGLONG=yes'
5378 else
5379 ac_cv_use_longlong='wxUSE_LONGLONG=no'
5380 fi
5381
5382else
5383
5384 LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}`
5385 if test "x$LINE" != x ; then
5386 eval "DEFAULT_$LINE"
5387 else
5388 no_cache=1
5389 fi
5390
5391 ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG
5392
5393fi;
5394
5395 eval "$ac_cv_use_longlong"
5396 if test "$no_cache" != 1; then
5397 echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp
5398 fi
5399
5400 if test "$wxUSE_LONGLONG" = yes; then
5401 echo "$as_me:$LINENO: result: yes" >&5
5402echo "${ECHO_T}yes" >&6
5403 else
5404 echo "$as_me:$LINENO: result: no" >&5
5405echo "${ECHO_T}no" >&6
5406 fi
5407
5408
5409 enablestring=
5410 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mimetype" >&5
5411echo $ECHO_N "checking for --${enablestring:-enable}-mimetype... $ECHO_C" >&6
5412 no_cache=0
5413 # Check whether --enable-mimetype or --disable-mimetype was given.
5414if test "${enable_mimetype+set}" = set; then
5415 enableval="$enable_mimetype"
5416
5417 if test "$enableval" = yes; then
5418 ac_cv_use_mimetype='wxUSE_MIMETYPE=yes'
5419 else
5420 ac_cv_use_mimetype='wxUSE_MIMETYPE=no'
5421 fi
5422
5423else
5424
5425 LINE=`grep "wxUSE_MIMETYPE" ${wx_arg_cache_file}`
5426 if test "x$LINE" != x ; then
5427 eval "DEFAULT_$LINE"
5428 else
5429 no_cache=1
5430 fi
5431
5432 ac_cv_use_mimetype='wxUSE_MIMETYPE='$DEFAULT_wxUSE_MIMETYPE
5433
5434fi;
5435
5436 eval "$ac_cv_use_mimetype"
5437 if test "$no_cache" != 1; then
5438 echo $ac_cv_use_mimetype >> ${wx_arg_cache_file}.tmp
5439 fi
5440
5441 if test "$wxUSE_MIMETYPE" = yes; then
5442 echo "$as_me:$LINENO: result: yes" >&5
5443echo "${ECHO_T}yes" >&6
5444 else
5445 echo "$as_me:$LINENO: result: no" >&5
5446echo "${ECHO_T}no" >&6
5447 fi
5448
5449
5450 enablestring=
5451 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mslu" >&5
5452echo $ECHO_N "checking for --${enablestring:-enable}-mslu... $ECHO_C" >&6
5453 no_cache=0
5454 # Check whether --enable-mslu or --disable-mslu was given.
5455if test "${enable_mslu+set}" = set; then
5456 enableval="$enable_mslu"
5457
5458 if test "$enableval" = yes; then
5459 ac_cv_use_mslu='wxUSE_UNICODE_MSLU=yes'
5460 else
5461 ac_cv_use_mslu='wxUSE_UNICODE_MSLU=no'
5462 fi
5463
5464else
5465
5466 LINE=`grep "wxUSE_UNICODE_MSLU" ${wx_arg_cache_file}`
5467 if test "x$LINE" != x ; then
5468 eval "DEFAULT_$LINE"
5469 else
5470 no_cache=1
5471 fi
5472
5473 ac_cv_use_mslu='wxUSE_UNICODE_MSLU='$DEFAULT_wxUSE_UNICODE_MSLU
5474
5475fi;
5476
5477 eval "$ac_cv_use_mslu"
5478 if test "$no_cache" != 1; then
5479 echo $ac_cv_use_mslu >> ${wx_arg_cache_file}.tmp
5480 fi
5481
5482 if test "$wxUSE_UNICODE_MSLU" = yes; then
5483 echo "$as_me:$LINENO: result: yes" >&5
5484echo "${ECHO_T}yes" >&6
5485 else
5486 echo "$as_me:$LINENO: result: no" >&5
5487echo "${ECHO_T}no" >&6
5488 fi
5489
5490
5491 enablestring=
5492 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-snglinst" >&5
5493echo $ECHO_N "checking for --${enablestring:-enable}-snglinst... $ECHO_C" >&6
5494 no_cache=0
5495 # Check whether --enable-snglinst or --disable-snglinst was given.
5496if test "${enable_snglinst+set}" = set; then
5497 enableval="$enable_snglinst"
5498
5499 if test "$enableval" = yes; then
5500 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes'
5501 else
5502 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no'
5503 fi
5504
5505else
5506
5507 LINE=`grep "wxUSE_SNGLINST_CHECKER" ${wx_arg_cache_file}`
5508 if test "x$LINE" != x ; then
5509 eval "DEFAULT_$LINE"
5510 else
5511 no_cache=1
5512 fi
5513
5514 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER='$DEFAULT_wxUSE_SNGLINST_CHECKER
5515
5516fi;
5517
5518 eval "$ac_cv_use_snglinst"
5519 if test "$no_cache" != 1; then
5520 echo $ac_cv_use_snglinst >> ${wx_arg_cache_file}.tmp
5521 fi
5522
5523 if test "$wxUSE_SNGLINST_CHECKER" = yes; then
5524 echo "$as_me:$LINENO: result: yes" >&5
5525echo "${ECHO_T}yes" >&6
5526 else
5527 echo "$as_me:$LINENO: result: no" >&5
5528echo "${ECHO_T}no" >&6
5529 fi
5530
5531
5532 enablestring=
5533 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-streams" >&5
5534echo $ECHO_N "checking for --${enablestring:-enable}-streams... $ECHO_C" >&6
5535 no_cache=0
5536 # Check whether --enable-streams or --disable-streams was given.
5537if test "${enable_streams+set}" = set; then
5538 enableval="$enable_streams"
5539
5540 if test "$enableval" = yes; then
5541 ac_cv_use_streams='wxUSE_STREAMS=yes'
5542 else
5543 ac_cv_use_streams='wxUSE_STREAMS=no'
5544 fi
5545
5546else
5547
5548 LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}`
5549 if test "x$LINE" != x ; then
5550 eval "DEFAULT_$LINE"
5551 else
5552 no_cache=1
5553 fi
5554
5555 ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS
5556
5557fi;
5558
5559 eval "$ac_cv_use_streams"
5560 if test "$no_cache" != 1; then
5561 echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp
5562 fi
5563
5564 if test "$wxUSE_STREAMS" = yes; then
5565 echo "$as_me:$LINENO: result: yes" >&5
5566echo "${ECHO_T}yes" >&6
5567 else
5568 echo "$as_me:$LINENO: result: no" >&5
5569echo "${ECHO_T}no" >&6
5570 fi
5571
5572
5573 enablestring=
5574 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-std_iostreams" >&5
5575echo $ECHO_N "checking for --${enablestring:-enable}-std_iostreams... $ECHO_C" >&6
5576 no_cache=0
5577 # Check whether --enable-std_iostreams or --disable-std_iostreams was given.
5578if test "${enable_std_iostreams+set}" = set; then
5579 enableval="$enable_std_iostreams"
5580
5581 if test "$enableval" = yes; then
5582 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes'
5583 else
5584 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no'
5585 fi
5586
5587else
5588
5589 LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}`
5590 if test "x$LINE" != x ; then
5591 eval "DEFAULT_$LINE"
5592 else
5593 no_cache=1
5594 fi
5595
5596 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM
5597
5598fi;
5599
5600 eval "$ac_cv_use_std_iostreams"
5601 if test "$no_cache" != 1; then
5602 echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp
5603 fi
5604
5605 if test "$wxUSE_STD_IOSTREAM" = yes; then
5606 echo "$as_me:$LINENO: result: yes" >&5
5607echo "${ECHO_T}yes" >&6
5608 else
5609 echo "$as_me:$LINENO: result: no" >&5
5610echo "${ECHO_T}no" >&6
5611 fi
5612
5613
5614 enablestring=
5615 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stopwatch" >&5
5616echo $ECHO_N "checking for --${enablestring:-enable}-stopwatch... $ECHO_C" >&6
5617 no_cache=0
5618 # Check whether --enable-stopwatch or --disable-stopwatch was given.
5619if test "${enable_stopwatch+set}" = set; then
5620 enableval="$enable_stopwatch"
5621
5622 if test "$enableval" = yes; then
5623 ac_cv_use_stopwatch='wxUSE_STOPWATCH=yes'
5624 else
5625 ac_cv_use_stopwatch='wxUSE_STOPWATCH=no'
5626 fi
5627
5628else
5629
5630 LINE=`grep "wxUSE_STOPWATCH" ${wx_arg_cache_file}`
5631 if test "x$LINE" != x ; then
5632 eval "DEFAULT_$LINE"
5633 else
5634 no_cache=1
5635 fi
5636
5637 ac_cv_use_stopwatch='wxUSE_STOPWATCH='$DEFAULT_wxUSE_STOPWATCH
5638
5639fi;
5640
5641 eval "$ac_cv_use_stopwatch"
5642 if test "$no_cache" != 1; then
5643 echo $ac_cv_use_stopwatch >> ${wx_arg_cache_file}.tmp
5644 fi
5645
5646 if test "$wxUSE_STOPWATCH" = yes; then
5647 echo "$as_me:$LINENO: result: yes" >&5
5648echo "${ECHO_T}yes" >&6
5649 else
5650 echo "$as_me:$LINENO: result: no" >&5
5651echo "${ECHO_T}no" >&6
5652 fi
5653
5654
5655 enablestring=
5656 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-system_options" >&5
5657echo $ECHO_N "checking for --${enablestring:-enable}-system_options... $ECHO_C" >&6
5658 no_cache=0
5659 # Check whether --enable-system_options or --disable-system_options was given.
5660if test "${enable_system_options+set}" = set; then
5661 enableval="$enable_system_options"
5662
5663 if test "$enableval" = yes; then
5664 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=yes'
5665 else
5666 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=no'
5667 fi
5668
5669else
5670
5671 LINE=`grep "wxUSE_SYSTEM_OPTIONS" ${wx_arg_cache_file}`
5672 if test "x$LINE" != x ; then
5673 eval "DEFAULT_$LINE"
5674 else
5675 no_cache=1
5676 fi
5677
5678 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS='$DEFAULT_wxUSE_SYSTEM_OPTIONS
5679
5680fi;
5681
5682 eval "$ac_cv_use_system_options"
5683 if test "$no_cache" != 1; then
5684 echo $ac_cv_use_system_options >> ${wx_arg_cache_file}.tmp
5685 fi
5686
5687 if test "$wxUSE_SYSTEM_OPTIONS" = yes; then
5688 echo "$as_me:$LINENO: result: yes" >&5
5689echo "${ECHO_T}yes" >&6
5690 else
5691 echo "$as_me:$LINENO: result: no" >&5
5692echo "${ECHO_T}no" >&6
5693 fi
5694
5695
5696 enablestring=
5697 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textbuf" >&5
5698echo $ECHO_N "checking for --${enablestring:-enable}-textbuf... $ECHO_C" >&6
5699 no_cache=0
5700 # Check whether --enable-textbuf or --disable-textbuf was given.
5701if test "${enable_textbuf+set}" = set; then
5702 enableval="$enable_textbuf"
5703
5704 if test "$enableval" = yes; then
5705 ac_cv_use_textbuf='wxUSE_TEXTBUFFER=yes'
5706 else
5707 ac_cv_use_textbuf='wxUSE_TEXTBUFFER=no'
5708 fi
5709
5710else
5711
5712 LINE=`grep "wxUSE_TEXTBUFFER" ${wx_arg_cache_file}`
5713 if test "x$LINE" != x ; then
5714 eval "DEFAULT_$LINE"
5715 else
5716 no_cache=1
5717 fi
5718
5719 ac_cv_use_textbuf='wxUSE_TEXTBUFFER='$DEFAULT_wxUSE_TEXTBUFFER
5720
5721fi;
5722
5723 eval "$ac_cv_use_textbuf"
5724 if test "$no_cache" != 1; then
5725 echo $ac_cv_use_textbuf >> ${wx_arg_cache_file}.tmp
5726 fi
5727
5728 if test "$wxUSE_TEXTBUFFER" = yes; then
5729 echo "$as_me:$LINENO: result: yes" >&5
5730echo "${ECHO_T}yes" >&6
5731 else
5732 echo "$as_me:$LINENO: result: no" >&5
5733echo "${ECHO_T}no" >&6
5734 fi
5735
5736
5737 enablestring=
5738 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textfile" >&5
5739echo $ECHO_N "checking for --${enablestring:-enable}-textfile... $ECHO_C" >&6
5740 no_cache=0
5741 # Check whether --enable-textfile or --disable-textfile was given.
5742if test "${enable_textfile+set}" = set; then
5743 enableval="$enable_textfile"
5744
5745 if test "$enableval" = yes; then
5746 ac_cv_use_textfile='wxUSE_TEXTFILE=yes'
5747 else
5748 ac_cv_use_textfile='wxUSE_TEXTFILE=no'
5749 fi
5750
5751else
5752
5753 LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}`
5754 if test "x$LINE" != x ; then
5755 eval "DEFAULT_$LINE"
5756 else
5757 no_cache=1
5758 fi
5759
5760 ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE
5761
5762fi;
5763
5764 eval "$ac_cv_use_textfile"
5765 if test "$no_cache" != 1; then
5766 echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp
5767 fi
5768
5769 if test "$wxUSE_TEXTFILE" = yes; then
5770 echo "$as_me:$LINENO: result: yes" >&5
5771echo "${ECHO_T}yes" >&6
5772 else
5773 echo "$as_me:$LINENO: result: no" >&5
5774echo "${ECHO_T}no" >&6
5775 fi
5776
5777
5778 enablestring=
5779 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-timer" >&5
5780echo $ECHO_N "checking for --${enablestring:-enable}-timer... $ECHO_C" >&6
5781 no_cache=0
5782 # Check whether --enable-timer or --disable-timer was given.
5783if test "${enable_timer+set}" = set; then
5784 enableval="$enable_timer"
5785
5786 if test "$enableval" = yes; then
5787 ac_cv_use_timer='wxUSE_TIMER=yes'
5788 else
5789 ac_cv_use_timer='wxUSE_TIMER=no'
5790 fi
5791
5792else
5793
5794 LINE=`grep "wxUSE_TIMER" ${wx_arg_cache_file}`
5795 if test "x$LINE" != x ; then
5796 eval "DEFAULT_$LINE"
5797 else
5798 no_cache=1
5799 fi
5800
5801 ac_cv_use_timer='wxUSE_TIMER='$DEFAULT_wxUSE_TIMER
5802
5803fi;
5804
5805 eval "$ac_cv_use_timer"
5806 if test "$no_cache" != 1; then
5807 echo $ac_cv_use_timer >> ${wx_arg_cache_file}.tmp
5808 fi
5809
5810 if test "$wxUSE_TIMER" = yes; then
5811 echo "$as_me:$LINENO: result: yes" >&5
5812echo "${ECHO_T}yes" >&6
5813 else
5814 echo "$as_me:$LINENO: result: no" >&5
5815echo "${ECHO_T}no" >&6
5816 fi
5817
5818
5819 enablestring=
5820 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-unicode" >&5
5821echo $ECHO_N "checking for --${enablestring:-enable}-unicode... $ECHO_C" >&6
5822 no_cache=0
5823 # Check whether --enable-unicode or --disable-unicode was given.
5824if test "${enable_unicode+set}" = set; then
5825 enableval="$enable_unicode"
5826
5827 if test "$enableval" = yes; then
5828 ac_cv_use_unicode='wxUSE_UNICODE=yes'
5829 else
5830 ac_cv_use_unicode='wxUSE_UNICODE=no'
5831 fi
5832
5833else
5834
5835 LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}`
5836 if test "x$LINE" != x ; then
5837 eval "DEFAULT_$LINE"
5838 else
5839 no_cache=1
5840 fi
5841
5842 ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE
5843
5844fi;
5845
5846 eval "$ac_cv_use_unicode"
5847 if test "$no_cache" != 1; then
5848 echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp
5849 fi
5850
5851 if test "$wxUSE_UNICODE" = yes; then
5852 echo "$as_me:$LINENO: result: yes" >&5
5853echo "${ECHO_T}yes" >&6
5854 else
5855 echo "$as_me:$LINENO: result: no" >&5
5856echo "${ECHO_T}no" >&6
5857 fi
5858
5859
5860 enablestring=
5861 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sound" >&5
5862echo $ECHO_N "checking for --${enablestring:-enable}-sound... $ECHO_C" >&6
5863 no_cache=0
5864 # Check whether --enable-sound or --disable-sound was given.
5865if test "${enable_sound+set}" = set; then
5866 enableval="$enable_sound"
5867
5868 if test "$enableval" = yes; then
5869 ac_cv_use_sound='wxUSE_SOUND=yes'
5870 else
5871 ac_cv_use_sound='wxUSE_SOUND=no'
5872 fi
5873
5874else
5875
5876 LINE=`grep "wxUSE_SOUND" ${wx_arg_cache_file}`
5877 if test "x$LINE" != x ; then
5878 eval "DEFAULT_$LINE"
5879 else
5880 no_cache=1
5881 fi
5882
5883 ac_cv_use_sound='wxUSE_SOUND='$DEFAULT_wxUSE_SOUND
5884
5885fi;
5886
5887 eval "$ac_cv_use_sound"
5888 if test "$no_cache" != 1; then
5889 echo $ac_cv_use_sound >> ${wx_arg_cache_file}.tmp
5890 fi
5891
5892 if test "$wxUSE_SOUND" = yes; then
5893 echo "$as_me:$LINENO: result: yes" >&5
5894echo "${ECHO_T}yes" >&6
5895 else
5896 echo "$as_me:$LINENO: result: no" >&5
5897echo "${ECHO_T}no" >&6
5898 fi
5899
5900
3b57de8b
RL
5901 enablestring=
5902 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mediactrl" >&5
5903echo $ECHO_N "checking for --${enablestring:-enable}-mediactrl... $ECHO_C" >&6
5904 no_cache=0
5905 # Check whether --enable-mediactrl or --disable-mediactrl was given.
5906if test "${enable_mediactrl+set}" = set; then
5907 enableval="$enable_mediactrl"
5908
5909 if test "$enableval" = yes; then
5910 ac_cv_use_mediactrl='wxUSE_MEDIACTRL=yes'
5911 else
5912 ac_cv_use_mediactrl='wxUSE_MEDIACTRL=no'
5913 fi
5914
5915else
5916
5917 LINE=`grep "wxUSE_MEDIACTRL" ${wx_arg_cache_file}`
5918 if test "x$LINE" != x ; then
5919 eval "DEFAULT_$LINE"
5920 else
5921 no_cache=1
5922 fi
5923
5924 ac_cv_use_mediactrl='wxUSE_MEDIACTRL='$DEFAULT_wxUSE_MEDIACTRL
5925
5926fi;
5927
5928 eval "$ac_cv_use_mediactrl"
5929 if test "$no_cache" != 1; then
5930 echo $ac_cv_use_mediactrl >> ${wx_arg_cache_file}.tmp
5931 fi
5932
5933 if test "$wxUSE_MEDIACTRL" = yes; then
5934 echo "$as_me:$LINENO: result: yes" >&5
5935echo "${ECHO_T}yes" >&6
5936 else
5937 echo "$as_me:$LINENO: result: no" >&5
5938echo "${ECHO_T}no" >&6
5939 fi
5940
5941
a848cd7e
SC
5942 enablestring=
5943 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wxprintfv" >&5
5944echo $ECHO_N "checking for --${enablestring:-enable}-wxprintfv... $ECHO_C" >&6
5945 no_cache=0
5946 # Check whether --enable-wxprintfv or --disable-wxprintfv was given.
5947if test "${enable_wxprintfv+set}" = set; then
5948 enableval="$enable_wxprintfv"
5949
5950 if test "$enableval" = yes; then
5951 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=yes'
5952 else
5953 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=no'
5954 fi
5955
5956else
5957
5958 LINE=`grep "wxUSE_EXPERIMENTAL_PRINTF" ${wx_arg_cache_file}`
5959 if test "x$LINE" != x ; then
5960 eval "DEFAULT_$LINE"
5961 else
5962 no_cache=1
5963 fi
5964
5965 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF='$DEFAULT_wxUSE_EXPERIMENTAL_PRINTF
5966
5967fi;
5968
5969 eval "$ac_cv_use_wxprintfv"
5970 if test "$no_cache" != 1; then
5971 echo $ac_cv_use_wxprintfv >> ${wx_arg_cache_file}.tmp
5972 fi
5973
5974 if test "$wxUSE_EXPERIMENTAL_PRINTF" = yes; then
5975 echo "$as_me:$LINENO: result: yes" >&5
5976echo "${ECHO_T}yes" >&6
5977 else
5978 echo "$as_me:$LINENO: result: no" >&5
5979echo "${ECHO_T}no" >&6
5980 fi
5981
5982
5983 enablestring=
5984 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-zipstream" >&5
5985echo $ECHO_N "checking for --${enablestring:-enable}-zipstream... $ECHO_C" >&6
5986 no_cache=0
5987 # Check whether --enable-zipstream or --disable-zipstream was given.
5988if test "${enable_zipstream+set}" = set; then
5989 enableval="$enable_zipstream"
5990
5991 if test "$enableval" = yes; then
5992 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes'
5993 else
5994 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no'
5995 fi
5996
5997else
5998
5999 LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}`
6000 if test "x$LINE" != x ; then
6001 eval "DEFAULT_$LINE"
6002 else
6003 no_cache=1
6004 fi
6005
6006 ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM
6007
6008fi;
6009
6010 eval "$ac_cv_use_zipstream"
6011 if test "$no_cache" != 1; then
6012 echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp
6013 fi
6014
6015 if test "$wxUSE_ZIPSTREAM" = yes; then
6016 echo "$as_me:$LINENO: result: yes" >&5
6017echo "${ECHO_T}yes" >&6
6018 else
6019 echo "$as_me:$LINENO: result: no" >&5
6020echo "${ECHO_T}no" >&6
6021 fi
6022
6023
a848cd7e
SC
6024
6025 enablestring=
6026 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-url" >&5
6027echo $ECHO_N "checking for --${enablestring:-enable}-url... $ECHO_C" >&6
6028 no_cache=0
6029 # Check whether --enable-url or --disable-url was given.
6030if test "${enable_url+set}" = set; then
6031 enableval="$enable_url"
6032
6033 if test "$enableval" = yes; then
6034 ac_cv_use_url='wxUSE_URL=yes'
6035 else
6036 ac_cv_use_url='wxUSE_URL=no'
6037 fi
6038
6039else
6040
6041 LINE=`grep "wxUSE_URL" ${wx_arg_cache_file}`
6042 if test "x$LINE" != x ; then
6043 eval "DEFAULT_$LINE"
6044 else
6045 no_cache=1
6046 fi
6047
6048 ac_cv_use_url='wxUSE_URL='$DEFAULT_wxUSE_URL
6049
6050fi;
6051
6052 eval "$ac_cv_use_url"
6053 if test "$no_cache" != 1; then
6054 echo $ac_cv_use_url >> ${wx_arg_cache_file}.tmp
6055 fi
6056
6057 if test "$wxUSE_URL" = yes; then
6058 echo "$as_me:$LINENO: result: yes" >&5
6059echo "${ECHO_T}yes" >&6
6060 else
6061 echo "$as_me:$LINENO: result: no" >&5
6062echo "${ECHO_T}no" >&6
6063 fi
6064
6065
6066 enablestring=
6067 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol" >&5
6068echo $ECHO_N "checking for --${enablestring:-enable}-protocol... $ECHO_C" >&6
6069 no_cache=0
6070 # Check whether --enable-protocol or --disable-protocol was given.
6071if test "${enable_protocol+set}" = set; then
6072 enableval="$enable_protocol"
6073
6074 if test "$enableval" = yes; then
6075 ac_cv_use_protocol='wxUSE_PROTOCOL=yes'
6076 else
6077 ac_cv_use_protocol='wxUSE_PROTOCOL=no'
6078 fi
6079
6080else
6081
6082 LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
6083 if test "x$LINE" != x ; then
6084 eval "DEFAULT_$LINE"
6085 else
6086 no_cache=1
6087 fi
6088
6089 ac_cv_use_protocol='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
6090
6091fi;
6092
6093 eval "$ac_cv_use_protocol"
6094 if test "$no_cache" != 1; then
6095 echo $ac_cv_use_protocol >> ${wx_arg_cache_file}.tmp
6096 fi
6097
6098 if test "$wxUSE_PROTOCOL" = yes; then
6099 echo "$as_me:$LINENO: result: yes" >&5
6100echo "${ECHO_T}yes" >&6
6101 else
6102 echo "$as_me:$LINENO: result: no" >&5
6103echo "${ECHO_T}no" >&6
6104 fi
6105
6106
6107 enablestring=
6108 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_http" >&5
6109echo $ECHO_N "checking for --${enablestring:-enable}-protocol_http... $ECHO_C" >&6
6110 no_cache=0
6111 # Check whether --enable-protocol_http or --disable-protocol_http was given.
6112if test "${enable_protocol_http+set}" = set; then
6113 enableval="$enable_protocol_http"
6114
6115 if test "$enableval" = yes; then
6116 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=yes'
6117 else
6118 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=no'
6119 fi
6120
6121else
6122
6123 LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
6124 if test "x$LINE" != x ; then
6125 eval "DEFAULT_$LINE"
6126 else
6127 no_cache=1
6128 fi
6129
6130 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
6131
6132fi;
6133
6134 eval "$ac_cv_use_protocol_http"
6135 if test "$no_cache" != 1; then
6136 echo $ac_cv_use_protocol_http >> ${wx_arg_cache_file}.tmp
6137 fi
6138
6139 if test "$wxUSE_PROTOCOL_HTTP" = yes; then
6140 echo "$as_me:$LINENO: result: yes" >&5
6141echo "${ECHO_T}yes" >&6
6142 else
6143 echo "$as_me:$LINENO: result: no" >&5
6144echo "${ECHO_T}no" >&6
6145 fi
6146
6147
6148 enablestring=
6149 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_ftp" >&5
6150echo $ECHO_N "checking for --${enablestring:-enable}-protocol_ftp... $ECHO_C" >&6
6151 no_cache=0
6152 # Check whether --enable-protocol_ftp or --disable-protocol_ftp was given.
6153if test "${enable_protocol_ftp+set}" = set; then
6154 enableval="$enable_protocol_ftp"
6155
6156 if test "$enableval" = yes; then
6157 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=yes'
6158 else
6159 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=no'
6160 fi
6161
6162else
6163
6164 LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
6165 if test "x$LINE" != x ; then
6166 eval "DEFAULT_$LINE"
6167 else
6168 no_cache=1
6169 fi
6170
6171 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
6172
6173fi;
6174
6175 eval "$ac_cv_use_protocol_ftp"
6176 if test "$no_cache" != 1; then
6177 echo $ac_cv_use_protocol_ftp >> ${wx_arg_cache_file}.tmp
6178 fi
6179
6180 if test "$wxUSE_PROTOCOL_FTP" = yes; then
6181 echo "$as_me:$LINENO: result: yes" >&5
6182echo "${ECHO_T}yes" >&6
6183 else
6184 echo "$as_me:$LINENO: result: no" >&5
6185echo "${ECHO_T}no" >&6
6186 fi
6187
6188
6189 enablestring=
6190 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_file" >&5
6191echo $ECHO_N "checking for --${enablestring:-enable}-protocol_file... $ECHO_C" >&6
6192 no_cache=0
6193 # Check whether --enable-protocol_file or --disable-protocol_file was given.
6194if test "${enable_protocol_file+set}" = set; then
6195 enableval="$enable_protocol_file"
6196
6197 if test "$enableval" = yes; then
6198 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=yes'
6199 else
6200 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=no'
6201 fi
6202
6203else
6204
6205 LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
6206 if test "x$LINE" != x ; then
6207 eval "DEFAULT_$LINE"
6208 else
6209 no_cache=1
6210 fi
6211
6212 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
6213
6214fi;
6215
6216 eval "$ac_cv_use_protocol_file"
6217 if test "$no_cache" != 1; then
6218 echo $ac_cv_use_protocol_file >> ${wx_arg_cache_file}.tmp
6219 fi
6220
6221 if test "$wxUSE_PROTOCOL_FILE" = yes; then
6222 echo "$as_me:$LINENO: result: yes" >&5
6223echo "${ECHO_T}yes" >&6
6224 else
6225 echo "$as_me:$LINENO: result: no" >&5
6226echo "${ECHO_T}no" >&6
6227 fi
6228
6229
6230
6231
6232
6233 enablestring=
6234 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-threads" >&5
6235echo $ECHO_N "checking for --${enablestring:-enable}-threads... $ECHO_C" >&6
6236 no_cache=0
6237 # Check whether --enable-threads or --disable-threads was given.
6238if test "${enable_threads+set}" = set; then
6239 enableval="$enable_threads"
6240
6241 if test "$enableval" = yes; then
6242 ac_cv_use_threads='wxUSE_THREADS=yes'
6243 else
6244 ac_cv_use_threads='wxUSE_THREADS=no'
6245 fi
6246
6247else
6248
6249 LINE=`grep "wxUSE_THREADS" ${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_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS
6257
6258fi;
6259
6260 eval "$ac_cv_use_threads"
6261 if test "$no_cache" != 1; then
6262 echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp
6263 fi
6264
6265 if test "$wxUSE_THREADS" = 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
6274if test "$wxUSE_GUI" = "yes"; then
6275
6276
6277
6278 enablestring=
6279 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-docview" >&5
6280echo $ECHO_N "checking for --${enablestring:-enable}-docview... $ECHO_C" >&6
6281 no_cache=0
6282 # Check whether --enable-docview or --disable-docview was given.
6283if test "${enable_docview+set}" = set; then
6284 enableval="$enable_docview"
6285
6286 if test "$enableval" = yes; then
6287 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes'
6288 else
6289 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no'
6290 fi
6291
6292else
6293
6294 LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}`
6295 if test "x$LINE" != x ; then
6296 eval "DEFAULT_$LINE"
6297 else
6298 no_cache=1
6299 fi
6300
6301 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE
6302
6303fi;
6304
6305 eval "$ac_cv_use_docview"
6306 if test "$no_cache" != 1; then
6307 echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp
6308 fi
6309
6310 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then
6311 echo "$as_me:$LINENO: result: yes" >&5
6312echo "${ECHO_T}yes" >&6
6313 else
6314 echo "$as_me:$LINENO: result: no" >&5
6315echo "${ECHO_T}no" >&6
6316 fi
6317
6318
6319 enablestring=
6320 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-help" >&5
6321echo $ECHO_N "checking for --${enablestring:-enable}-help... $ECHO_C" >&6
6322 no_cache=0
6323 # Check whether --enable-help or --disable-help was given.
6324if test "${enable_help+set}" = set; then
6325 enableval="$enable_help"
6326
6327 if test "$enableval" = yes; then
6328 ac_cv_use_help='wxUSE_HELP=yes'
6329 else
6330 ac_cv_use_help='wxUSE_HELP=no'
6331 fi
6332
6333else
6334
6335 LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}`
6336 if test "x$LINE" != x ; then
6337 eval "DEFAULT_$LINE"
6338 else
6339 no_cache=1
6340 fi
6341
6342 ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP
6343
6344fi;
6345
6346 eval "$ac_cv_use_help"
6347 if test "$no_cache" != 1; then
6348 echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp
6349 fi
6350
6351 if test "$wxUSE_HELP" = yes; then
6352 echo "$as_me:$LINENO: result: yes" >&5
6353echo "${ECHO_T}yes" >&6
6354 else
6355 echo "$as_me:$LINENO: result: no" >&5
6356echo "${ECHO_T}no" >&6
6357 fi
6358
6359
6360 enablestring=
6361 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mshtmlhelp" >&5
6362echo $ECHO_N "checking for --${enablestring:-enable}-mshtmlhelp... $ECHO_C" >&6
6363 no_cache=0
6364 # Check whether --enable-mshtmlhelp or --disable-mshtmlhelp was given.
6365if test "${enable_mshtmlhelp+set}" = set; then
6366 enableval="$enable_mshtmlhelp"
6367
6368 if test "$enableval" = yes; then
6369 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=yes'
6370 else
6371 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=no'
6372 fi
6373
6374else
6375
6376 LINE=`grep "wxUSE_MS_HTML_HELP" ${wx_arg_cache_file}`
6377 if test "x$LINE" != x ; then
6378 eval "DEFAULT_$LINE"
6379 else
6380 no_cache=1
6381 fi
6382
6383 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP='$DEFAULT_wxUSE_MS_HTML_HELP
6384
6385fi;
6386
6387 eval "$ac_cv_use_mshtmlhelp"
6388 if test "$no_cache" != 1; then
6389 echo $ac_cv_use_mshtmlhelp >> ${wx_arg_cache_file}.tmp
6390 fi
6391
6392 if test "$wxUSE_MS_HTML_HELP" = yes; then
6393 echo "$as_me:$LINENO: result: yes" >&5
6394echo "${ECHO_T}yes" >&6
6395 else
6396 echo "$as_me:$LINENO: result: no" >&5
6397echo "${ECHO_T}no" >&6
6398 fi
6399
6400
6401 enablestring=
6402 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-html" >&5
6403echo $ECHO_N "checking for --${enablestring:-enable}-html... $ECHO_C" >&6
6404 no_cache=0
6405 # Check whether --enable-html or --disable-html was given.
6406if test "${enable_html+set}" = set; then
6407 enableval="$enable_html"
6408
6409 if test "$enableval" = yes; then
6410 ac_cv_use_html='wxUSE_HTML=yes'
6411 else
6412 ac_cv_use_html='wxUSE_HTML=no'
6413 fi
6414
6415else
6416
6417 LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}`
6418 if test "x$LINE" != x ; then
6419 eval "DEFAULT_$LINE"
6420 else
6421 no_cache=1
6422 fi
6423
6424 ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML
6425
6426fi;
6427
6428 eval "$ac_cv_use_html"
6429 if test "$no_cache" != 1; then
6430 echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp
6431 fi
6432
6433 if test "$wxUSE_HTML" = yes; then
6434 echo "$as_me:$LINENO: result: yes" >&5
6435echo "${ECHO_T}yes" >&6
6436 else
6437 echo "$as_me:$LINENO: result: no" >&5
6438echo "${ECHO_T}no" >&6
6439 fi
6440
6441
6442 enablestring=
6443 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-htmlhelp" >&5
6444echo $ECHO_N "checking for --${enablestring:-enable}-htmlhelp... $ECHO_C" >&6
6445 no_cache=0
6446 # Check whether --enable-htmlhelp or --disable-htmlhelp was given.
6447if test "${enable_htmlhelp+set}" = set; then
6448 enableval="$enable_htmlhelp"
6449
6450 if test "$enableval" = yes; then
6451 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=yes'
6452 else
6453 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=no'
6454 fi
6455
6456else
6457
6458 LINE=`grep "wxUSE_WXHTML_HELP" ${wx_arg_cache_file}`
6459 if test "x$LINE" != x ; then
6460 eval "DEFAULT_$LINE"
6461 else
6462 no_cache=1
6463 fi
6464
6465 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP='$DEFAULT_wxUSE_WXHTML_HELP
6466
6467fi;
6468
6469 eval "$ac_cv_use_htmlhelp"
6470 if test "$no_cache" != 1; then
6471 echo $ac_cv_use_htmlhelp >> ${wx_arg_cache_file}.tmp
6472 fi
6473
6474 if test "$wxUSE_WXHTML_HELP" = yes; then
6475 echo "$as_me:$LINENO: result: yes" >&5
6476echo "${ECHO_T}yes" >&6
6477 else
6478 echo "$as_me:$LINENO: result: no" >&5
6479echo "${ECHO_T}no" >&6
6480 fi
6481
6482
9a8f0513
VS
6483 enablestring=
6484 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xrc" >&5
6485echo $ECHO_N "checking for --${enablestring:-enable}-xrc... $ECHO_C" >&6
6486 no_cache=0
6487 # Check whether --enable-xrc or --disable-xrc was given.
6488if test "${enable_xrc+set}" = set; then
6489 enableval="$enable_xrc"
6490
6491 if test "$enableval" = yes; then
6492 ac_cv_use_xrc='wxUSE_XRC=yes'
6493 else
6494 ac_cv_use_xrc='wxUSE_XRC=no'
6495 fi
6496
6497else
6498
6499 LINE=`grep "wxUSE_XRC" ${wx_arg_cache_file}`
6500 if test "x$LINE" != x ; then
6501 eval "DEFAULT_$LINE"
6502 else
6503 no_cache=1
6504 fi
6505
6506 ac_cv_use_xrc='wxUSE_XRC='$DEFAULT_wxUSE_XRC
6507
6508fi;
6509
6510 eval "$ac_cv_use_xrc"
6511 if test "$no_cache" != 1; then
6512 echo $ac_cv_use_xrc >> ${wx_arg_cache_file}.tmp
6513 fi
6514
6515 if test "$wxUSE_XRC" = yes; then
6516 echo "$as_me:$LINENO: result: yes" >&5
6517echo "${ECHO_T}yes" >&6
6518 else
6519 echo "$as_me:$LINENO: result: no" >&5
6520echo "${ECHO_T}no" >&6
6521 fi
6522
6523
a848cd7e
SC
6524 enablestring=
6525 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-constraints" >&5
6526echo $ECHO_N "checking for --${enablestring:-enable}-constraints... $ECHO_C" >&6
6527 no_cache=0
6528 # Check whether --enable-constraints or --disable-constraints was given.
6529if test "${enable_constraints+set}" = set; then
6530 enableval="$enable_constraints"
6531
6532 if test "$enableval" = yes; then
6533 ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes'
6534 else
6535 ac_cv_use_constraints='wxUSE_CONSTRAINTS=no'
6536 fi
6537
6538else
6539
6540 LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}`
6541 if test "x$LINE" != x ; then
6542 eval "DEFAULT_$LINE"
6543 else
6544 no_cache=1
6545 fi
6546
6547 ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS
6548
6549fi;
6550
6551 eval "$ac_cv_use_constraints"
6552 if test "$no_cache" != 1; then
6553 echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp
6554 fi
6555
6556 if test "$wxUSE_CONSTRAINTS" = yes; then
6557 echo "$as_me:$LINENO: result: yes" >&5
6558echo "${ECHO_T}yes" >&6
6559 else
6560 echo "$as_me:$LINENO: result: no" >&5
6561echo "${ECHO_T}no" >&6
6562 fi
6563
6564
6565 enablestring=
6566 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-printarch" >&5
6567echo $ECHO_N "checking for --${enablestring:-enable}-printarch... $ECHO_C" >&6
6568 no_cache=0
6569 # Check whether --enable-printarch or --disable-printarch was given.
6570if test "${enable_printarch+set}" = set; then
6571 enableval="$enable_printarch"
6572
6573 if test "$enableval" = yes; then
6574 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes'
6575 else
6576 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no'
6577 fi
6578
6579else
6580
6581 LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}`
6582 if test "x$LINE" != x ; then
6583 eval "DEFAULT_$LINE"
6584 else
6585 no_cache=1
6586 fi
6587
6588 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE
6589
6590fi;
6591
6592 eval "$ac_cv_use_printarch"
6593 if test "$no_cache" != 1; then
6594 echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp
6595 fi
6596
6597 if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then
6598 echo "$as_me:$LINENO: result: yes" >&5
6599echo "${ECHO_T}yes" >&6
6600 else
6601 echo "$as_me:$LINENO: result: no" >&5
6602echo "${ECHO_T}no" >&6
6603 fi
6604
6605
6606 enablestring=
6607 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdi" >&5
6608echo $ECHO_N "checking for --${enablestring:-enable}-mdi... $ECHO_C" >&6
6609 no_cache=0
6610 # Check whether --enable-mdi or --disable-mdi was given.
6611if test "${enable_mdi+set}" = set; then
6612 enableval="$enable_mdi"
6613
6614 if test "$enableval" = yes; then
8a7b1113 6615 ac_cv_use_mdi='wxUSE_MDI=yes'
a848cd7e 6616 else
8a7b1113 6617 ac_cv_use_mdi='wxUSE_MDI=no'
a848cd7e
SC
6618 fi
6619
6620else
6621
8a7b1113 6622 LINE=`grep "wxUSE_MDI" ${wx_arg_cache_file}`
a848cd7e
SC
6623 if test "x$LINE" != x ; then
6624 eval "DEFAULT_$LINE"
6625 else
6626 no_cache=1
6627 fi
6628
8a7b1113 6629 ac_cv_use_mdi='wxUSE_MDI='$DEFAULT_wxUSE_MDI
a848cd7e
SC
6630
6631fi;
6632
6633 eval "$ac_cv_use_mdi"
6634 if test "$no_cache" != 1; then
6635 echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp
6636 fi
6637
8a7b1113
VZ
6638 if test "$wxUSE_MDI" = yes; then
6639 echo "$as_me:$LINENO: result: yes" >&5
6640echo "${ECHO_T}yes" >&6
6641 else
6642 echo "$as_me:$LINENO: result: no" >&5
6643echo "${ECHO_T}no" >&6
6644 fi
6645
6646
6647 enablestring=
6648 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdidoc" >&5
6649echo $ECHO_N "checking for --${enablestring:-enable}-mdidoc... $ECHO_C" >&6
6650 no_cache=0
6651 # Check whether --enable-mdidoc or --disable-mdidoc was given.
6652if test "${enable_mdidoc+set}" = set; then
6653 enableval="$enable_mdidoc"
6654
6655 if test "$enableval" = yes; then
6656 ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=yes'
6657 else
6658 ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=no'
6659 fi
6660
6661else
6662
6663 LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}`
6664 if test "x$LINE" != x ; then
6665 eval "DEFAULT_$LINE"
6666 else
6667 no_cache=1
6668 fi
6669
6670 ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE
6671
6672fi;
6673
6674 eval "$ac_cv_use_mdidoc"
6675 if test "$no_cache" != 1; then
6676 echo $ac_cv_use_mdidoc >> ${wx_arg_cache_file}.tmp
6677 fi
6678
a848cd7e
SC
6679 if test "$wxUSE_MDI_ARCHITECTURE" = yes; then
6680 echo "$as_me:$LINENO: result: yes" >&5
6681echo "${ECHO_T}yes" >&6
6682 else
6683 echo "$as_me:$LINENO: result: no" >&5
6684echo "${ECHO_T}no" >&6
6685 fi
6686
6687
6688 enablestring=
6689 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-loggui" >&5
6690echo $ECHO_N "checking for --${enablestring:-enable}-loggui... $ECHO_C" >&6
6691 no_cache=0
6692 # Check whether --enable-loggui or --disable-loggui was given.
6693if test "${enable_loggui+set}" = set; then
6694 enableval="$enable_loggui"
6695
6696 if test "$enableval" = yes; then
6697 ac_cv_use_loggui='wxUSE_LOGGUI=yes'
6698 else
6699 ac_cv_use_loggui='wxUSE_LOGGUI=no'
6700 fi
6701
6702else
6703
6704 LINE=`grep "wxUSE_LOGGUI" ${wx_arg_cache_file}`
6705 if test "x$LINE" != x ; then
6706 eval "DEFAULT_$LINE"
6707 else
6708 no_cache=1
6709 fi
6710
6711 ac_cv_use_loggui='wxUSE_LOGGUI='$DEFAULT_wxUSE_LOGGUI
6712
6713fi;
6714
6715 eval "$ac_cv_use_loggui"
6716 if test "$no_cache" != 1; then
6717 echo $ac_cv_use_loggui >> ${wx_arg_cache_file}.tmp
6718 fi
6719
6720 if test "$wxUSE_LOGGUI" = yes; then
6721 echo "$as_me:$LINENO: result: yes" >&5
6722echo "${ECHO_T}yes" >&6
6723 else
6724 echo "$as_me:$LINENO: result: no" >&5
6725echo "${ECHO_T}no" >&6
6726 fi
6727
6728
6729 enablestring=
6730 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logwin" >&5
6731echo $ECHO_N "checking for --${enablestring:-enable}-logwin... $ECHO_C" >&6
6732 no_cache=0
6733 # Check whether --enable-logwin or --disable-logwin was given.
6734if test "${enable_logwin+set}" = set; then
6735 enableval="$enable_logwin"
6736
6737 if test "$enableval" = yes; then
6738 ac_cv_use_logwin='wxUSE_LOGWINDOW=yes'
6739 else
6740 ac_cv_use_logwin='wxUSE_LOGWINDOW=no'
6741 fi
6742
6743else
6744
6745 LINE=`grep "wxUSE_LOGWINDOW" ${wx_arg_cache_file}`
6746 if test "x$LINE" != x ; then
6747 eval "DEFAULT_$LINE"
6748 else
6749 no_cache=1
6750 fi
6751
6752 ac_cv_use_logwin='wxUSE_LOGWINDOW='$DEFAULT_wxUSE_LOGWINDOW
6753
6754fi;
6755
6756 eval "$ac_cv_use_logwin"
6757 if test "$no_cache" != 1; then
6758 echo $ac_cv_use_logwin >> ${wx_arg_cache_file}.tmp
6759 fi
6760
6761 if test "$wxUSE_LOGWINDOW" = yes; then
6762 echo "$as_me:$LINENO: result: yes" >&5
6763echo "${ECHO_T}yes" >&6
6764 else
6765 echo "$as_me:$LINENO: result: no" >&5
6766echo "${ECHO_T}no" >&6
6767 fi
6768
6769
6770 enablestring=
6771 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logdialog" >&5
6772echo $ECHO_N "checking for --${enablestring:-enable}-logdialog... $ECHO_C" >&6
6773 no_cache=0
6774 # Check whether --enable-logdialog or --disable-logdialog was given.
6775if test "${enable_logdialog+set}" = set; then
6776 enableval="$enable_logdialog"
6777
6778 if test "$enableval" = yes; then
6779 ac_cv_use_logdialog='wxUSE_LOGDIALOG=yes'
6780 else
6781 ac_cv_use_logdialog='wxUSE_LOGDIALOG=no'
6782 fi
6783
6784else
6785
6786 LINE=`grep "wxUSE_LOGDIALOG" ${wx_arg_cache_file}`
6787 if test "x$LINE" != x ; then
6788 eval "DEFAULT_$LINE"
6789 else
6790 no_cache=1
6791 fi
6792
6793 ac_cv_use_logdialog='wxUSE_LOGDIALOG='$DEFAULT_wxUSE_LOGDIALOG
6794
6795fi;
6796
6797 eval "$ac_cv_use_logdialog"
6798 if test "$no_cache" != 1; then
6799 echo $ac_cv_use_logdialog >> ${wx_arg_cache_file}.tmp
6800 fi
6801
6802 if test "$wxUSE_LOGDIALOG" = yes; then
6803 echo "$as_me:$LINENO: result: yes" >&5
6804echo "${ECHO_T}yes" >&6
6805 else
6806 echo "$as_me:$LINENO: result: no" >&5
6807echo "${ECHO_T}no" >&6
6808 fi
6809
6810
646b6ec1
VS
6811 enablestring=
6812 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-webkit" >&5
6813echo $ECHO_N "checking for --${enablestring:-enable}-webkit... $ECHO_C" >&6
6814 no_cache=0
6815 # Check whether --enable-webkit or --disable-webkit was given.
6816if test "${enable_webkit+set}" = set; then
6817 enableval="$enable_webkit"
6818
6819 if test "$enableval" = yes; then
6820 ac_cv_use_webkit='wxUSE_WEBKIT=yes'
6821 else
6822 ac_cv_use_webkit='wxUSE_WEBKIT=no'
6823 fi
6824
6825else
6826
6827 LINE=`grep "wxUSE_WEBKIT" ${wx_arg_cache_file}`
6828 if test "x$LINE" != x ; then
6829 eval "DEFAULT_$LINE"
6830 else
6831 no_cache=1
6832 fi
6833
6834 ac_cv_use_webkit='wxUSE_WEBKIT='$DEFAULT_wxUSE_WEBKIT
6835
6836fi;
6837
6838 eval "$ac_cv_use_webkit"
6839 if test "$no_cache" != 1; then
6840 echo $ac_cv_use_webkit >> ${wx_arg_cache_file}.tmp
6841 fi
6842
6843 if test "$wxUSE_WEBKIT" = yes; then
6844 echo "$as_me:$LINENO: result: yes" >&5
6845echo "${ECHO_T}yes" >&6
6846 else
6847 echo "$as_me:$LINENO: result: no" >&5
6848echo "${ECHO_T}no" >&6
6849 fi
6850
6851
a848cd7e
SC
6852
6853 enablestring=
6854 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-postscript" >&5
6855echo $ECHO_N "checking for --${enablestring:-enable}-postscript... $ECHO_C" >&6
6856 no_cache=0
6857 # Check whether --enable-postscript or --disable-postscript was given.
6858if test "${enable_postscript+set}" = set; then
6859 enableval="$enable_postscript"
6860
6861 if test "$enableval" = yes; then
6862 ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes'
6863 else
6864 ac_cv_use_postscript='wxUSE_POSTSCRIPT=no'
6865 fi
6866
6867else
6868
6869 LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}`
6870 if test "x$LINE" != x ; then
6871 eval "DEFAULT_$LINE"
6872 else
6873 no_cache=1
6874 fi
6875
6876 ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT
6877
6878fi;
6879
6880 eval "$ac_cv_use_postscript"
6881 if test "$no_cache" != 1; then
6882 echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp
6883 fi
6884
6885 if test "$wxUSE_POSTSCRIPT" = yes; then
6886 echo "$as_me:$LINENO: result: yes" >&5
6887echo "${ECHO_T}yes" >&6
6888 else
6889 echo "$as_me:$LINENO: result: no" >&5
6890echo "${ECHO_T}no" >&6
6891 fi
6892
6893
6894
6895
6896
6897 enablestring=
6898 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-prologio" >&5
6899echo $ECHO_N "checking for --${enablestring:-enable}-prologio... $ECHO_C" >&6
6900 no_cache=0
6901 # Check whether --enable-prologio or --disable-prologio was given.
6902if test "${enable_prologio+set}" = set; then
6903 enableval="$enable_prologio"
6904
6905 if test "$enableval" = yes; then
6906 ac_cv_use_prologio='wxUSE_PROLOGIO=yes'
6907 else
6908 ac_cv_use_prologio='wxUSE_PROLOGIO=no'
6909 fi
6910
6911else
6912
6913 LINE=`grep "wxUSE_PROLOGIO" ${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_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO
6921
6922fi;
6923
6924 eval "$ac_cv_use_prologio"
6925 if test "$no_cache" != 1; then
6926 echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp
6927 fi
6928
6929 if test "$wxUSE_PROLOGIO" = 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 enablestring=
6939 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-resources" >&5
6940echo $ECHO_N "checking for --${enablestring:-enable}-resources... $ECHO_C" >&6
6941 no_cache=0
6942 # Check whether --enable-resources or --disable-resources was given.
6943if test "${enable_resources+set}" = set; then
6944 enableval="$enable_resources"
6945
6946 if test "$enableval" = yes; then
6947 ac_cv_use_resources='wxUSE_RESOURCES=yes'
6948 else
6949 ac_cv_use_resources='wxUSE_RESOURCES=no'
6950 fi
6951
6952else
6953
6954 LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}`
6955 if test "x$LINE" != x ; then
6956 eval "DEFAULT_$LINE"
6957 else
6958 no_cache=1
6959 fi
6960
6961 ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES
6962
6963fi;
6964
6965 eval "$ac_cv_use_resources"
6966 if test "$no_cache" != 1; then
6967 echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp
6968 fi
6969
6970 if test "$wxUSE_RESOURCES" = yes; then
6971 echo "$as_me:$LINENO: result: yes" >&5
6972echo "${ECHO_T}yes" >&6
6973 else
6974 echo "$as_me:$LINENO: result: no" >&5
6975echo "${ECHO_T}no" >&6
6976 fi
6977
6978
6979
6980
6981 enablestring=
6982 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-clipboard" >&5
6983echo $ECHO_N "checking for --${enablestring:-enable}-clipboard... $ECHO_C" >&6
6984 no_cache=0
6985 # Check whether --enable-clipboard or --disable-clipboard was given.
6986if test "${enable_clipboard+set}" = set; then
6987 enableval="$enable_clipboard"
6988
6989 if test "$enableval" = yes; then
6990 ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes'
6991 else
6992 ac_cv_use_clipboard='wxUSE_CLIPBOARD=no'
6993 fi
6994
6995else
6996
6997 LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}`
6998 if test "x$LINE" != x ; then
6999 eval "DEFAULT_$LINE"
7000 else
7001 no_cache=1
7002 fi
7003
7004 ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD
7005
7006fi;
7007
7008 eval "$ac_cv_use_clipboard"
7009 if test "$no_cache" != 1; then
7010 echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp
7011 fi
7012
7013 if test "$wxUSE_CLIPBOARD" = yes; then
7014 echo "$as_me:$LINENO: result: yes" >&5
7015echo "${ECHO_T}yes" >&6
7016 else
7017 echo "$as_me:$LINENO: result: no" >&5
7018echo "${ECHO_T}no" >&6
7019 fi
7020
7021
7022 enablestring=
7023 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dnd" >&5
7024echo $ECHO_N "checking for --${enablestring:-enable}-dnd... $ECHO_C" >&6
7025 no_cache=0
7026 # Check whether --enable-dnd or --disable-dnd was given.
7027if test "${enable_dnd+set}" = set; then
7028 enableval="$enable_dnd"
7029
7030 if test "$enableval" = yes; then
7031 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes'
7032 else
7033 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no'
7034 fi
7035
7036else
7037
7038 LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}`
7039 if test "x$LINE" != x ; then
7040 eval "DEFAULT_$LINE"
7041 else
7042 no_cache=1
7043 fi
7044
7045 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP
7046
7047fi;
7048
7049 eval "$ac_cv_use_dnd"
7050 if test "$no_cache" != 1; then
7051 echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp
7052 fi
7053
7054 if test "$wxUSE_DRAG_AND_DROP" = yes; then
7055 echo "$as_me:$LINENO: result: yes" >&5
7056echo "${ECHO_T}yes" >&6
7057 else
7058 echo "$as_me:$LINENO: result: no" >&5
7059echo "${ECHO_T}no" >&6
7060 fi
7061
7062
7063 enablestring=
7064 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5
7065echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6
7066 no_cache=0
7067 # Check whether --enable-metafile or --disable-metafile was given.
7068if test "${enable_metafile+set}" = set; then
7069 enableval="$enable_metafile"
7070
7071 if test "$enableval" = yes; then
7072 ac_cv_use_metafile='wxUSE_METAFILE=yes'
7073 else
7074 ac_cv_use_metafile='wxUSE_METAFILE=no'
7075 fi
7076
7077else
7078
7079 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
7080 if test "x$LINE" != x ; then
7081 eval "DEFAULT_$LINE"
7082 else
7083 no_cache=1
7084 fi
7085
7086 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
7087
7088fi;
7089
7090 eval "$ac_cv_use_metafile"
7091 if test "$no_cache" != 1; then
7092 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
7093 fi
7094
7095 if test "$wxUSE_METAFILE" = yes; then
7096 echo "$as_me:$LINENO: result: yes" >&5
7097echo "${ECHO_T}yes" >&6
7098 else
7099 echo "$as_me:$LINENO: result: no" >&5
7100echo "${ECHO_T}no" >&6
7101 fi
7102
7103
7104
7105
7106
7107 enablestring=
7108 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-controls" >&5
7109echo $ECHO_N "checking for --${enablestring:-enable}-controls... $ECHO_C" >&6
7110 no_cache=0
7111 # Check whether --enable-controls or --disable-controls was given.
7112if test "${enable_controls+set}" = set; then
7113 enableval="$enable_controls"
7114
7115 if test "$enableval" = yes; then
7116 ac_cv_use_controls='wxUSE_CONTROLS=yes'
7117 else
7118 ac_cv_use_controls='wxUSE_CONTROLS=no'
7119 fi
7120
7121else
7122
7123 LINE=`grep "wxUSE_CONTROLS" ${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_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS
7131
7132fi;
7133
7134 eval "$ac_cv_use_controls"
7135 if test "$no_cache" != 1; then
7136 echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp
7137 fi
7138
7139 if test "$wxUSE_CONTROLS" = 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
7148if test "$wxUSE_CONTROLS" = "yes"; then
7149 DEFAULT_wxUSE_ACCEL=yes
7150 DEFAULT_wxUSE_BMPBUTTON=yes
7151 DEFAULT_wxUSE_BUTTON=yes
da98e9be 7152 DEFAULT_wxUSE_CALCTRL=yes
a848cd7e
SC
7153 DEFAULT_wxUSE_CARET=yes
7154 DEFAULT_wxUSE_COMBOBOX=yes
7155 DEFAULT_wxUSE_CHECKBOX=yes
7156 DEFAULT_wxUSE_CHECKLISTBOX=yes
7157 DEFAULT_wxUSE_CHOICE=yes
92bbdbcd 7158 DEFAULT_wxUSE_CHOICEBOOK=yes
da98e9be 7159 DEFAULT_wxUSE_DATEPICKCTRL=yes
a848cd7e
SC
7160 DEFAULT_wxUSE_GAUGE=yes
7161 DEFAULT_wxUSE_GRID=yes
7162 DEFAULT_wxUSE_IMAGLIST=yes
7163 DEFAULT_wxUSE_LISTBOOK=yes
7164 DEFAULT_wxUSE_LISTBOX=yes
7165 DEFAULT_wxUSE_LISTCTRL=yes
7166 DEFAULT_wxUSE_NOTEBOOK=yes
7167 DEFAULT_wxUSE_RADIOBOX=yes
7168 DEFAULT_wxUSE_RADIOBTN=yes
7169 DEFAULT_wxUSE_SASH=yes
7170 DEFAULT_wxUSE_SCROLLBAR=yes
7171 DEFAULT_wxUSE_SLIDER=yes
7172 DEFAULT_wxUSE_SPINBTN=yes
7173 DEFAULT_wxUSE_SPINCTRL=yes
7174 DEFAULT_wxUSE_SPLITTER=yes
7175 DEFAULT_wxUSE_STATBMP=yes
7176 DEFAULT_wxUSE_STATBOX=yes
7177 DEFAULT_wxUSE_STATLINE=yes
7178 DEFAULT_wxUSE_STATUSBAR=yes
7179 DEFAULT_wxUSE_TAB_DIALOG=yes
7180 DEFAULT_wxUSE_TOGGLEBTN=yes
7181 DEFAULT_wxUSE_TOOLBAR=yes
7182 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
7183 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
7184 DEFAULT_wxUSE_TOOLTIPS=yes
7185 DEFAULT_wxUSE_TREECTRL=yes
7186 DEFAULT_wxUSE_POPUPWIN=yes
7187 DEFAULT_wxUSE_TIPWINDOW=yes
7188elif test "$wxUSE_CONTROLS" = "no"; then
7189 DEFAULT_wxUSE_ACCEL=no
7190 DEFAULT_wxUSE_BMPBUTTON=no
7191 DEFAULT_wxUSE_BUTTON=no
7192 DEFAULT_wxUSE_CALCTRL=no
7193 DEFAULT_wxUSE_CARET=no
7194 DEFAULT_wxUSE_COMBOBOX=no
7195 DEFAULT_wxUSE_CHECKBOX=no
7196 DEFAULT_wxUSE_CHECKLISTBOX=no
7197 DEFAULT_wxUSE_CHOICE=no
92bbdbcd 7198 DEFAULT_wxUSE_CHOICEBOOK=no
da98e9be 7199 DEFAULT_wxUSE_DATEPICKCTRL=no
a848cd7e
SC
7200 DEFAULT_wxUSE_GAUGE=no
7201 DEFAULT_wxUSE_GRID=no
7202 DEFAULT_wxUSE_IMAGLIST=no
7203 DEFAULT_wxUSE_LISTBOOK=no
7204 DEFAULT_wxUSE_LISTBOX=no
7205 DEFAULT_wxUSE_LISTCTRL=no
7206 DEFAULT_wxUSE_NOTEBOOK=no
7207 DEFAULT_wxUSE_RADIOBOX=no
7208 DEFAULT_wxUSE_RADIOBTN=no
7209 DEFAULT_wxUSE_SASH=no
7210 DEFAULT_wxUSE_SCROLLBAR=no
7211 DEFAULT_wxUSE_SLIDER=no
7212 DEFAULT_wxUSE_SPINBTN=no
7213 DEFAULT_wxUSE_SPINCTRL=no
7214 DEFAULT_wxUSE_SPLITTER=no
7215 DEFAULT_wxUSE_STATBMP=no
7216 DEFAULT_wxUSE_STATBOX=no
7217 DEFAULT_wxUSE_STATLINE=no
7218 DEFAULT_wxUSE_STATUSBAR=no
7219 DEFAULT_wxUSE_TAB_DIALOG=no
7220 DEFAULT_wxUSE_TOGGLEBTN=no
7221 DEFAULT_wxUSE_TOOLBAR=no
7222 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
7223 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
7224 DEFAULT_wxUSE_TOOLTIPS=no
7225 DEFAULT_wxUSE_TREECTRL=no
7226 DEFAULT_wxUSE_POPUPWIN=no
7227 DEFAULT_wxUSE_TIPWINDOW=no
7228fi
7229
a848cd7e
SC
7230
7231 enablestring=
7232 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accel" >&5
7233echo $ECHO_N "checking for --${enablestring:-enable}-accel... $ECHO_C" >&6
7234 no_cache=0
7235 # Check whether --enable-accel or --disable-accel was given.
7236if test "${enable_accel+set}" = set; then
7237 enableval="$enable_accel"
7238
7239 if test "$enableval" = yes; then
7240 ac_cv_use_accel='wxUSE_ACCEL=yes'
7241 else
7242 ac_cv_use_accel='wxUSE_ACCEL=no'
7243 fi
7244
7245else
7246
7247 LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}`
7248 if test "x$LINE" != x ; then
7249 eval "DEFAULT_$LINE"
7250 else
7251 no_cache=1
7252 fi
7253
7254 ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL
7255
7256fi;
7257
7258 eval "$ac_cv_use_accel"
7259 if test "$no_cache" != 1; then
7260 echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp
7261 fi
7262
7263 if test "$wxUSE_ACCEL" = yes; then
7264 echo "$as_me:$LINENO: result: yes" >&5
7265echo "${ECHO_T}yes" >&6
7266 else
7267 echo "$as_me:$LINENO: result: no" >&5
7268echo "${ECHO_T}no" >&6
7269 fi
7270
7271
7272 enablestring=
7273 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-button" >&5
7274echo $ECHO_N "checking for --${enablestring:-enable}-button... $ECHO_C" >&6
7275 no_cache=0
7276 # Check whether --enable-button or --disable-button was given.
7277if test "${enable_button+set}" = set; then
7278 enableval="$enable_button"
7279
7280 if test "$enableval" = yes; then
7281 ac_cv_use_button='wxUSE_BUTTON=yes'
7282 else
7283 ac_cv_use_button='wxUSE_BUTTON=no'
7284 fi
7285
7286else
7287
7288 LINE=`grep "wxUSE_BUTTON" ${wx_arg_cache_file}`
7289 if test "x$LINE" != x ; then
7290 eval "DEFAULT_$LINE"
7291 else
7292 no_cache=1
7293 fi
7294
7295 ac_cv_use_button='wxUSE_BUTTON='$DEFAULT_wxUSE_BUTTON
7296
7297fi;
7298
7299 eval "$ac_cv_use_button"
7300 if test "$no_cache" != 1; then
7301 echo $ac_cv_use_button >> ${wx_arg_cache_file}.tmp
7302 fi
7303
7304 if test "$wxUSE_BUTTON" = yes; then
7305 echo "$as_me:$LINENO: result: yes" >&5
7306echo "${ECHO_T}yes" >&6
7307 else
7308 echo "$as_me:$LINENO: result: no" >&5
7309echo "${ECHO_T}no" >&6
7310 fi
7311
7312
7313 enablestring=
7314 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-bmpbutton" >&5
7315echo $ECHO_N "checking for --${enablestring:-enable}-bmpbutton... $ECHO_C" >&6
7316 no_cache=0
7317 # Check whether --enable-bmpbutton or --disable-bmpbutton was given.
7318if test "${enable_bmpbutton+set}" = set; then
7319 enableval="$enable_bmpbutton"
7320
7321 if test "$enableval" = yes; then
7322 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes'
7323 else
7324 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no'
7325 fi
7326
7327else
7328
7329 LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}`
7330 if test "x$LINE" != x ; then
7331 eval "DEFAULT_$LINE"
7332 else
7333 no_cache=1
7334 fi
7335
7336 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON
7337
7338fi;
7339
7340 eval "$ac_cv_use_bmpbutton"
7341 if test "$no_cache" != 1; then
7342 echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp
7343 fi
7344
7345 if test "$wxUSE_BMPBUTTON" = yes; then
7346 echo "$as_me:$LINENO: result: yes" >&5
7347echo "${ECHO_T}yes" >&6
7348 else
7349 echo "$as_me:$LINENO: result: no" >&5
7350echo "${ECHO_T}no" >&6
7351 fi
7352
7353
7354 enablestring=
7355 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-calendar" >&5
7356echo $ECHO_N "checking for --${enablestring:-enable}-calendar... $ECHO_C" >&6
7357 no_cache=0
7358 # Check whether --enable-calendar or --disable-calendar was given.
7359if test "${enable_calendar+set}" = set; then
7360 enableval="$enable_calendar"
7361
7362 if test "$enableval" = yes; then
7363 ac_cv_use_calendar='wxUSE_CALCTRL=yes'
7364 else
7365 ac_cv_use_calendar='wxUSE_CALCTRL=no'
7366 fi
7367
7368else
7369
7370 LINE=`grep "wxUSE_CALCTRL" ${wx_arg_cache_file}`
7371 if test "x$LINE" != x ; then
7372 eval "DEFAULT_$LINE"
7373 else
7374 no_cache=1
7375 fi
7376
7377 ac_cv_use_calendar='wxUSE_CALCTRL='$DEFAULT_wxUSE_CALCTRL
7378
7379fi;
7380
7381 eval "$ac_cv_use_calendar"
7382 if test "$no_cache" != 1; then
7383 echo $ac_cv_use_calendar >> ${wx_arg_cache_file}.tmp
7384 fi
7385
7386 if test "$wxUSE_CALCTRL" = yes; then
7387 echo "$as_me:$LINENO: result: yes" >&5
7388echo "${ECHO_T}yes" >&6
7389 else
7390 echo "$as_me:$LINENO: result: no" >&5
7391echo "${ECHO_T}no" >&6
7392 fi
7393
7394
7395 enablestring=
7396 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-caret" >&5
7397echo $ECHO_N "checking for --${enablestring:-enable}-caret... $ECHO_C" >&6
7398 no_cache=0
7399 # Check whether --enable-caret or --disable-caret was given.
7400if test "${enable_caret+set}" = set; then
7401 enableval="$enable_caret"
7402
7403 if test "$enableval" = yes; then
7404 ac_cv_use_caret='wxUSE_CARET=yes'
7405 else
7406 ac_cv_use_caret='wxUSE_CARET=no'
7407 fi
7408
7409else
7410
7411 LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}`
7412 if test "x$LINE" != x ; then
7413 eval "DEFAULT_$LINE"
7414 else
7415 no_cache=1
7416 fi
7417
7418 ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET
7419
7420fi;
7421
7422 eval "$ac_cv_use_caret"
7423 if test "$no_cache" != 1; then
7424 echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp
7425 fi
7426
7427 if test "$wxUSE_CARET" = yes; then
7428 echo "$as_me:$LINENO: result: yes" >&5
7429echo "${ECHO_T}yes" >&6
7430 else
7431 echo "$as_me:$LINENO: result: no" >&5
7432echo "${ECHO_T}no" >&6
7433 fi
7434
7435
7436 enablestring=
7437 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checkbox" >&5
7438echo $ECHO_N "checking for --${enablestring:-enable}-checkbox... $ECHO_C" >&6
7439 no_cache=0
7440 # Check whether --enable-checkbox or --disable-checkbox was given.
7441if test "${enable_checkbox+set}" = set; then
7442 enableval="$enable_checkbox"
7443
7444 if test "$enableval" = yes; then
7445 ac_cv_use_checkbox='wxUSE_CHECKBOX=yes'
7446 else
7447 ac_cv_use_checkbox='wxUSE_CHECKBOX=no'
7448 fi
7449
7450else
7451
7452 LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}`
7453 if test "x$LINE" != x ; then
7454 eval "DEFAULT_$LINE"
7455 else
7456 no_cache=1
7457 fi
7458
7459 ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX
7460
7461fi;
7462
7463 eval "$ac_cv_use_checkbox"
7464 if test "$no_cache" != 1; then
7465 echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp
7466 fi
7467
7468 if test "$wxUSE_CHECKBOX" = yes; then
7469 echo "$as_me:$LINENO: result: yes" >&5
7470echo "${ECHO_T}yes" >&6
7471 else
7472 echo "$as_me:$LINENO: result: no" >&5
7473echo "${ECHO_T}no" >&6
7474 fi
7475
7476
7477 enablestring=
7478 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checklst" >&5
7479echo $ECHO_N "checking for --${enablestring:-enable}-checklst... $ECHO_C" >&6
7480 no_cache=0
7481 # Check whether --enable-checklst or --disable-checklst was given.
7482if test "${enable_checklst+set}" = set; then
7483 enableval="$enable_checklst"
7484
7485 if test "$enableval" = yes; then
7486 ac_cv_use_checklst='wxUSE_CHECKLST=yes'
7487 else
7488 ac_cv_use_checklst='wxUSE_CHECKLST=no'
7489 fi
7490
7491else
7492
7493 LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}`
7494 if test "x$LINE" != x ; then
7495 eval "DEFAULT_$LINE"
7496 else
7497 no_cache=1
7498 fi
7499
7500 ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST
7501
7502fi;
7503
7504 eval "$ac_cv_use_checklst"
7505 if test "$no_cache" != 1; then
7506 echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp
7507 fi
7508
7509 if test "$wxUSE_CHECKLST" = yes; then
7510 echo "$as_me:$LINENO: result: yes" >&5
7511echo "${ECHO_T}yes" >&6
7512 else
7513 echo "$as_me:$LINENO: result: no" >&5
7514echo "${ECHO_T}no" >&6
7515 fi
7516
7517
7518 enablestring=
7519 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choice" >&5
7520echo $ECHO_N "checking for --${enablestring:-enable}-choice... $ECHO_C" >&6
7521 no_cache=0
7522 # Check whether --enable-choice or --disable-choice was given.
7523if test "${enable_choice+set}" = set; then
7524 enableval="$enable_choice"
7525
7526 if test "$enableval" = yes; then
7527 ac_cv_use_choice='wxUSE_CHOICE=yes'
7528 else
7529 ac_cv_use_choice='wxUSE_CHOICE=no'
7530 fi
7531
7532else
7533
7534 LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}`
7535 if test "x$LINE" != x ; then
7536 eval "DEFAULT_$LINE"
7537 else
7538 no_cache=1
7539 fi
7540
7541 ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE
7542
7543fi;
7544
7545 eval "$ac_cv_use_choice"
7546 if test "$no_cache" != 1; then
7547 echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp
7548 fi
7549
7550 if test "$wxUSE_CHOICE" = yes; then
7551 echo "$as_me:$LINENO: result: yes" >&5
7552echo "${ECHO_T}yes" >&6
7553 else
7554 echo "$as_me:$LINENO: result: no" >&5
7555echo "${ECHO_T}no" >&6
7556 fi
7557
7558
92bbdbcd
WS
7559 enablestring=
7560 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicebook" >&5
7561echo $ECHO_N "checking for --${enablestring:-enable}-choicebook... $ECHO_C" >&6
7562 no_cache=0
7563 # Check whether --enable-choicebook or --disable-choicebook was given.
7564if test "${enable_choicebook+set}" = set; then
7565 enableval="$enable_choicebook"
7566
7567 if test "$enableval" = yes; then
7568 ac_cv_use_choicebook='wxUSE_CHOICEBOOK=yes'
7569 else
7570 ac_cv_use_choicebook='wxUSE_CHOICEBOOK=no'
7571 fi
7572
7573else
7574
7575 LINE=`grep "wxUSE_CHOICEBOOK" ${wx_arg_cache_file}`
7576 if test "x$LINE" != x ; then
7577 eval "DEFAULT_$LINE"
7578 else
7579 no_cache=1
7580 fi
7581
7582 ac_cv_use_choicebook='wxUSE_CHOICEBOOK='$DEFAULT_wxUSE_CHOICEBOOK
7583
7584fi;
7585
7586 eval "$ac_cv_use_choicebook"
7587 if test "$no_cache" != 1; then
7588 echo $ac_cv_use_choicebook >> ${wx_arg_cache_file}.tmp
7589 fi
7590
7591 if test "$wxUSE_CHOICEBOOK" = yes; then
7592 echo "$as_me:$LINENO: result: yes" >&5
7593echo "${ECHO_T}yes" >&6
7594 else
7595 echo "$as_me:$LINENO: result: no" >&5
7596echo "${ECHO_T}no" >&6
7597 fi
7598
7599
a848cd7e
SC
7600 enablestring=
7601 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-combobox" >&5
7602echo $ECHO_N "checking for --${enablestring:-enable}-combobox... $ECHO_C" >&6
7603 no_cache=0
7604 # Check whether --enable-combobox or --disable-combobox was given.
7605if test "${enable_combobox+set}" = set; then
7606 enableval="$enable_combobox"
7607
7608 if test "$enableval" = yes; then
7609 ac_cv_use_combobox='wxUSE_COMBOBOX=yes'
7610 else
7611 ac_cv_use_combobox='wxUSE_COMBOBOX=no'
7612 fi
7613
7614else
7615
7616 LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}`
7617 if test "x$LINE" != x ; then
7618 eval "DEFAULT_$LINE"
7619 else
7620 no_cache=1
7621 fi
7622
7623 ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX
7624
7625fi;
7626
7627 eval "$ac_cv_use_combobox"
7628 if test "$no_cache" != 1; then
7629 echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp
7630 fi
7631
7632 if test "$wxUSE_COMBOBOX" = yes; then
7633 echo "$as_me:$LINENO: result: yes" >&5
7634echo "${ECHO_T}yes" >&6
7635 else
7636 echo "$as_me:$LINENO: result: no" >&5
7637echo "${ECHO_T}no" >&6
7638 fi
7639
7640
da98e9be
VZ
7641 enablestring=
7642 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-datepick" >&5
7643echo $ECHO_N "checking for --${enablestring:-enable}-datepick... $ECHO_C" >&6
7644 no_cache=0
7645 # Check whether --enable-datepick or --disable-datepick was given.
7646if test "${enable_datepick+set}" = set; then
7647 enableval="$enable_datepick"
7648
7649 if test "$enableval" = yes; then
7650 ac_cv_use_datepick='wxUSE_DATEPICKCTRL=yes'
7651 else
7652 ac_cv_use_datepick='wxUSE_DATEPICKCTRL=no'
7653 fi
7654
7655else
7656
7657 LINE=`grep "wxUSE_DATEPICKCTRL" ${wx_arg_cache_file}`
7658 if test "x$LINE" != x ; then
7659 eval "DEFAULT_$LINE"
7660 else
7661 no_cache=1
7662 fi
7663
7664 ac_cv_use_datepick='wxUSE_DATEPICKCTRL='$DEFAULT_wxUSE_DATEPICKCTRL
7665
7666fi;
7667
7668 eval "$ac_cv_use_datepick"
7669 if test "$no_cache" != 1; then
7670 echo $ac_cv_use_datepick >> ${wx_arg_cache_file}.tmp
7671 fi
7672
7673 if test "$wxUSE_DATEPICKCTRL" = yes; then
7674 echo "$as_me:$LINENO: result: yes" >&5
7675echo "${ECHO_T}yes" >&6
7676 else
7677 echo "$as_me:$LINENO: result: no" >&5
7678echo "${ECHO_T}no" >&6
7679 fi
7680
7681
a848cd7e
SC
7682 enablestring=
7683 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-display" >&5
7684echo $ECHO_N "checking for --${enablestring:-enable}-display... $ECHO_C" >&6
7685 no_cache=0
7686 # Check whether --enable-display or --disable-display was given.
7687if test "${enable_display+set}" = set; then
7688 enableval="$enable_display"
7689
7690 if test "$enableval" = yes; then
7691 ac_cv_use_display='wxUSE_DISPLAY=yes'
7692 else
7693 ac_cv_use_display='wxUSE_DISPLAY=no'
7694 fi
7695
7696else
7697
7698 LINE=`grep "wxUSE_DISPLAY" ${wx_arg_cache_file}`
7699 if test "x$LINE" != x ; then
7700 eval "DEFAULT_$LINE"
7701 else
7702 no_cache=1
7703 fi
7704
7705 ac_cv_use_display='wxUSE_DISPLAY='$DEFAULT_wxUSE_DISPLAY
7706
7707fi;
7708
7709 eval "$ac_cv_use_display"
7710 if test "$no_cache" != 1; then
7711 echo $ac_cv_use_display >> ${wx_arg_cache_file}.tmp
7712 fi
7713
7714 if test "$wxUSE_DISPLAY" = yes; then
7715 echo "$as_me:$LINENO: result: yes" >&5
7716echo "${ECHO_T}yes" >&6
7717 else
7718 echo "$as_me:$LINENO: result: no" >&5
7719echo "${ECHO_T}no" >&6
7720 fi
7721
7722
7723 enablestring=
7724 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gauge" >&5
7725echo $ECHO_N "checking for --${enablestring:-enable}-gauge... $ECHO_C" >&6
7726 no_cache=0
7727 # Check whether --enable-gauge or --disable-gauge was given.
7728if test "${enable_gauge+set}" = set; then
7729 enableval="$enable_gauge"
7730
7731 if test "$enableval" = yes; then
7732 ac_cv_use_gauge='wxUSE_GAUGE=yes'
7733 else
7734 ac_cv_use_gauge='wxUSE_GAUGE=no'
7735 fi
7736
7737else
7738
7739 LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}`
7740 if test "x$LINE" != x ; then
7741 eval "DEFAULT_$LINE"
7742 else
7743 no_cache=1
7744 fi
7745
7746 ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE
7747
7748fi;
7749
7750 eval "$ac_cv_use_gauge"
7751 if test "$no_cache" != 1; then
7752 echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp
7753 fi
7754
7755 if test "$wxUSE_GAUGE" = yes; then
7756 echo "$as_me:$LINENO: result: yes" >&5
7757echo "${ECHO_T}yes" >&6
7758 else
7759 echo "$as_me:$LINENO: result: no" >&5
7760echo "${ECHO_T}no" >&6
7761 fi
7762
7763
7764 enablestring=
7765 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-grid" >&5
7766echo $ECHO_N "checking for --${enablestring:-enable}-grid... $ECHO_C" >&6
7767 no_cache=0
7768 # Check whether --enable-grid or --disable-grid was given.
7769if test "${enable_grid+set}" = set; then
7770 enableval="$enable_grid"
7771
7772 if test "$enableval" = yes; then
7773 ac_cv_use_grid='wxUSE_GRID=yes'
7774 else
7775 ac_cv_use_grid='wxUSE_GRID=no'
7776 fi
7777
7778else
7779
7780 LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}`
7781 if test "x$LINE" != x ; then
7782 eval "DEFAULT_$LINE"
7783 else
7784 no_cache=1
7785 fi
7786
7787 ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID
7788
7789fi;
7790
7791 eval "$ac_cv_use_grid"
7792 if test "$no_cache" != 1; then
7793 echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp
7794 fi
7795
7796 if test "$wxUSE_GRID" = yes; then
7797 echo "$as_me:$LINENO: result: yes" >&5
7798echo "${ECHO_T}yes" >&6
7799 else
7800 echo "$as_me:$LINENO: result: no" >&5
7801echo "${ECHO_T}no" >&6
7802 fi
7803
7804
7805 enablestring=
7806 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-imaglist" >&5
7807echo $ECHO_N "checking for --${enablestring:-enable}-imaglist... $ECHO_C" >&6
7808 no_cache=0
7809 # Check whether --enable-imaglist or --disable-imaglist was given.
7810if test "${enable_imaglist+set}" = set; then
7811 enableval="$enable_imaglist"
7812
7813 if test "$enableval" = yes; then
7814 ac_cv_use_imaglist='wxUSE_IMAGLIST=yes'
7815 else
7816 ac_cv_use_imaglist='wxUSE_IMAGLIST=no'
7817 fi
7818
7819else
7820
7821 LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}`
7822 if test "x$LINE" != x ; then
7823 eval "DEFAULT_$LINE"
7824 else
7825 no_cache=1
7826 fi
7827
7828 ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST
7829
7830fi;
7831
7832 eval "$ac_cv_use_imaglist"
7833 if test "$no_cache" != 1; then
7834 echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp
7835 fi
7836
7837 if test "$wxUSE_IMAGLIST" = yes; then
7838 echo "$as_me:$LINENO: result: yes" >&5
7839echo "${ECHO_T}yes" >&6
7840 else
7841 echo "$as_me:$LINENO: result: no" >&5
7842echo "${ECHO_T}no" >&6
7843 fi
7844
7845
7846 enablestring=
7847 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbook" >&5
7848echo $ECHO_N "checking for --${enablestring:-enable}-listbook... $ECHO_C" >&6
7849 no_cache=0
7850 # Check whether --enable-listbook or --disable-listbook was given.
7851if test "${enable_listbook+set}" = set; then
7852 enableval="$enable_listbook"
7853
7854 if test "$enableval" = yes; then
7855 ac_cv_use_listbook='wxUSE_LISTBOOK=yes'
7856 else
7857 ac_cv_use_listbook='wxUSE_LISTBOOK=no'
7858 fi
7859
7860else
7861
7862 LINE=`grep "wxUSE_LISTBOOK" ${wx_arg_cache_file}`
7863 if test "x$LINE" != x ; then
7864 eval "DEFAULT_$LINE"
7865 else
7866 no_cache=1
7867 fi
7868
7869 ac_cv_use_listbook='wxUSE_LISTBOOK='$DEFAULT_wxUSE_LISTBOOK
7870
7871fi;
7872
7873 eval "$ac_cv_use_listbook"
7874 if test "$no_cache" != 1; then
7875 echo $ac_cv_use_listbook >> ${wx_arg_cache_file}.tmp
7876 fi
7877
7878 if test "$wxUSE_LISTBOOK" = yes; then
7879 echo "$as_me:$LINENO: result: yes" >&5
7880echo "${ECHO_T}yes" >&6
7881 else
7882 echo "$as_me:$LINENO: result: no" >&5
7883echo "${ECHO_T}no" >&6
7884 fi
7885
7886
7887 enablestring=
7888 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbox" >&5
7889echo $ECHO_N "checking for --${enablestring:-enable}-listbox... $ECHO_C" >&6
7890 no_cache=0
7891 # Check whether --enable-listbox or --disable-listbox was given.
7892if test "${enable_listbox+set}" = set; then
7893 enableval="$enable_listbox"
7894
7895 if test "$enableval" = yes; then
7896 ac_cv_use_listbox='wxUSE_LISTBOX=yes'
7897 else
7898 ac_cv_use_listbox='wxUSE_LISTBOX=no'
7899 fi
7900
7901else
7902
7903 LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}`
7904 if test "x$LINE" != x ; then
7905 eval "DEFAULT_$LINE"
7906 else
7907 no_cache=1
7908 fi
7909
7910 ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX
7911
7912fi;
7913
7914 eval "$ac_cv_use_listbox"
7915 if test "$no_cache" != 1; then
7916 echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp
7917 fi
7918
7919 if test "$wxUSE_LISTBOX" = yes; then
7920 echo "$as_me:$LINENO: result: yes" >&5
7921echo "${ECHO_T}yes" >&6
7922 else
7923 echo "$as_me:$LINENO: result: no" >&5
7924echo "${ECHO_T}no" >&6
7925 fi
7926
7927
7928 enablestring=
7929 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listctrl" >&5
7930echo $ECHO_N "checking for --${enablestring:-enable}-listctrl... $ECHO_C" >&6
7931 no_cache=0
7932 # Check whether --enable-listctrl or --disable-listctrl was given.
7933if test "${enable_listctrl+set}" = set; then
7934 enableval="$enable_listctrl"
7935
7936 if test "$enableval" = yes; then
7937 ac_cv_use_listctrl='wxUSE_LISTCTRL=yes'
7938 else
7939 ac_cv_use_listctrl='wxUSE_LISTCTRL=no'
7940 fi
7941
7942else
7943
7944 LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}`
7945 if test "x$LINE" != x ; then
7946 eval "DEFAULT_$LINE"
7947 else
7948 no_cache=1
7949 fi
7950
7951 ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL
7952
7953fi;
7954
7955 eval "$ac_cv_use_listctrl"
7956 if test "$no_cache" != 1; then
7957 echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp
7958 fi
7959
7960 if test "$wxUSE_LISTCTRL" = yes; then
7961 echo "$as_me:$LINENO: result: yes" >&5
7962echo "${ECHO_T}yes" >&6
7963 else
7964 echo "$as_me:$LINENO: result: no" >&5
7965echo "${ECHO_T}no" >&6
7966 fi
7967
7968
7969 enablestring=
7970 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-notebook" >&5
7971echo $ECHO_N "checking for --${enablestring:-enable}-notebook... $ECHO_C" >&6
7972 no_cache=0
7973 # Check whether --enable-notebook or --disable-notebook was given.
7974if test "${enable_notebook+set}" = set; then
7975 enableval="$enable_notebook"
7976
7977 if test "$enableval" = yes; then
7978 ac_cv_use_notebook='wxUSE_NOTEBOOK=yes'
7979 else
7980 ac_cv_use_notebook='wxUSE_NOTEBOOK=no'
7981 fi
7982
7983else
7984
7985 LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}`
7986 if test "x$LINE" != x ; then
7987 eval "DEFAULT_$LINE"
7988 else
7989 no_cache=1
7990 fi
7991
7992 ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK
7993
7994fi;
7995
7996 eval "$ac_cv_use_notebook"
7997 if test "$no_cache" != 1; then
7998 echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp
7999 fi
8000
8001 if test "$wxUSE_NOTEBOOK" = yes; then
8002 echo "$as_me:$LINENO: result: yes" >&5
8003echo "${ECHO_T}yes" >&6
8004 else
8005 echo "$as_me:$LINENO: result: no" >&5
8006echo "${ECHO_T}no" >&6
8007 fi
8008
8009
8010 enablestring=
8011 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobox" >&5
8012echo $ECHO_N "checking for --${enablestring:-enable}-radiobox... $ECHO_C" >&6
8013 no_cache=0
8014 # Check whether --enable-radiobox or --disable-radiobox was given.
8015if test "${enable_radiobox+set}" = set; then
8016 enableval="$enable_radiobox"
8017
8018 if test "$enableval" = yes; then
8019 ac_cv_use_radiobox='wxUSE_RADIOBOX=yes'
8020 else
8021 ac_cv_use_radiobox='wxUSE_RADIOBOX=no'
8022 fi
8023
8024else
8025
8026 LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}`
8027 if test "x$LINE" != x ; then
8028 eval "DEFAULT_$LINE"
8029 else
8030 no_cache=1
8031 fi
8032
8033 ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX
8034
8035fi;
8036
8037 eval "$ac_cv_use_radiobox"
8038 if test "$no_cache" != 1; then
8039 echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp
8040 fi
8041
8042 if test "$wxUSE_RADIOBOX" = yes; then
8043 echo "$as_me:$LINENO: result: yes" >&5
8044echo "${ECHO_T}yes" >&6
8045 else
8046 echo "$as_me:$LINENO: result: no" >&5
8047echo "${ECHO_T}no" >&6
8048 fi
8049
8050
8051 enablestring=
8052 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobtn" >&5
8053echo $ECHO_N "checking for --${enablestring:-enable}-radiobtn... $ECHO_C" >&6
8054 no_cache=0
8055 # Check whether --enable-radiobtn or --disable-radiobtn was given.
8056if test "${enable_radiobtn+set}" = set; then
8057 enableval="$enable_radiobtn"
8058
8059 if test "$enableval" = yes; then
8060 ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes'
8061 else
8062 ac_cv_use_radiobtn='wxUSE_RADIOBTN=no'
8063 fi
8064
8065else
8066
8067 LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}`
8068 if test "x$LINE" != x ; then
8069 eval "DEFAULT_$LINE"
8070 else
8071 no_cache=1
8072 fi
8073
8074 ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN
8075
8076fi;
8077
8078 eval "$ac_cv_use_radiobtn"
8079 if test "$no_cache" != 1; then
8080 echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp
8081 fi
8082
8083 if test "$wxUSE_RADIOBTN" = yes; then
8084 echo "$as_me:$LINENO: result: yes" >&5
8085echo "${ECHO_T}yes" >&6
8086 else
8087 echo "$as_me:$LINENO: result: no" >&5
8088echo "${ECHO_T}no" >&6
8089 fi
8090
8091
8092 enablestring=
8093 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sash" >&5
8094echo $ECHO_N "checking for --${enablestring:-enable}-sash... $ECHO_C" >&6
8095 no_cache=0
8096 # Check whether --enable-sash or --disable-sash was given.
8097if test "${enable_sash+set}" = set; then
8098 enableval="$enable_sash"
8099
8100 if test "$enableval" = yes; then
8101 ac_cv_use_sash='wxUSE_SASH=yes'
8102 else
8103 ac_cv_use_sash='wxUSE_SASH=no'
8104 fi
8105
8106else
8107
8108 LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}`
8109 if test "x$LINE" != x ; then
8110 eval "DEFAULT_$LINE"
8111 else
8112 no_cache=1
8113 fi
8114
8115 ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH
8116
8117fi;
8118
8119 eval "$ac_cv_use_sash"
8120 if test "$no_cache" != 1; then
8121 echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp
8122 fi
8123
8124 if test "$wxUSE_SASH" = yes; then
8125 echo "$as_me:$LINENO: result: yes" >&5
8126echo "${ECHO_T}yes" >&6
8127 else
8128 echo "$as_me:$LINENO: result: no" >&5
8129echo "${ECHO_T}no" >&6
8130 fi
8131
8132
8133 enablestring=
8134 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-scrollbar" >&5
8135echo $ECHO_N "checking for --${enablestring:-enable}-scrollbar... $ECHO_C" >&6
8136 no_cache=0
8137 # Check whether --enable-scrollbar or --disable-scrollbar was given.
8138if test "${enable_scrollbar+set}" = set; then
8139 enableval="$enable_scrollbar"
8140
8141 if test "$enableval" = yes; then
8142 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes'
8143 else
8144 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no'
8145 fi
8146
8147else
8148
8149 LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}`
8150 if test "x$LINE" != x ; then
8151 eval "DEFAULT_$LINE"
8152 else
8153 no_cache=1
8154 fi
8155
8156 ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR
8157
8158fi;
8159
8160 eval "$ac_cv_use_scrollbar"
8161 if test "$no_cache" != 1; then
8162 echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp
8163 fi
8164
8165 if test "$wxUSE_SCROLLBAR" = yes; then
8166 echo "$as_me:$LINENO: result: yes" >&5
8167echo "${ECHO_T}yes" >&6
8168 else
8169 echo "$as_me:$LINENO: result: no" >&5
8170echo "${ECHO_T}no" >&6
8171 fi
8172
8173
8174 enablestring=
8175 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-slider" >&5
8176echo $ECHO_N "checking for --${enablestring:-enable}-slider... $ECHO_C" >&6
8177 no_cache=0
8178 # Check whether --enable-slider or --disable-slider was given.
8179if test "${enable_slider+set}" = set; then
8180 enableval="$enable_slider"
8181
8182 if test "$enableval" = yes; then
8183 ac_cv_use_slider='wxUSE_SLIDER=yes'
8184 else
8185 ac_cv_use_slider='wxUSE_SLIDER=no'
8186 fi
8187
8188else
8189
8190 LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}`
8191 if test "x$LINE" != x ; then
8192 eval "DEFAULT_$LINE"
8193 else
8194 no_cache=1
8195 fi
8196
8197 ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER
8198
8199fi;
8200
8201 eval "$ac_cv_use_slider"
8202 if test "$no_cache" != 1; then
8203 echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp
8204 fi
8205
8206 if test "$wxUSE_SLIDER" = yes; then
8207 echo "$as_me:$LINENO: result: yes" >&5
8208echo "${ECHO_T}yes" >&6
8209 else
8210 echo "$as_me:$LINENO: result: no" >&5
8211echo "${ECHO_T}no" >&6
8212 fi
8213
8214
8215 enablestring=
8216 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinbtn" >&5
8217echo $ECHO_N "checking for --${enablestring:-enable}-spinbtn... $ECHO_C" >&6
8218 no_cache=0
8219 # Check whether --enable-spinbtn or --disable-spinbtn was given.
8220if test "${enable_spinbtn+set}" = set; then
8221 enableval="$enable_spinbtn"
8222
8223 if test "$enableval" = yes; then
8224 ac_cv_use_spinbtn='wxUSE_SPINBTN=yes'
8225 else
8226 ac_cv_use_spinbtn='wxUSE_SPINBTN=no'
8227 fi
8228
8229else
8230
8231 LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}`
8232 if test "x$LINE" != x ; then
8233 eval "DEFAULT_$LINE"
8234 else
8235 no_cache=1
8236 fi
8237
8238 ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN
8239
8240fi;
8241
8242 eval "$ac_cv_use_spinbtn"
8243 if test "$no_cache" != 1; then
8244 echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp
8245 fi
8246
8247 if test "$wxUSE_SPINBTN" = yes; then
8248 echo "$as_me:$LINENO: result: yes" >&5
8249echo "${ECHO_T}yes" >&6
8250 else
8251 echo "$as_me:$LINENO: result: no" >&5
8252echo "${ECHO_T}no" >&6
8253 fi
8254
8255
8256 enablestring=
8257 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinctrl" >&5
8258echo $ECHO_N "checking for --${enablestring:-enable}-spinctrl... $ECHO_C" >&6
8259 no_cache=0
8260 # Check whether --enable-spinctrl or --disable-spinctrl was given.
8261if test "${enable_spinctrl+set}" = set; then
8262 enableval="$enable_spinctrl"
8263
8264 if test "$enableval" = yes; then
8265 ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes'
8266 else
8267 ac_cv_use_spinctrl='wxUSE_SPINCTRL=no'
8268 fi
8269
8270else
8271
8272 LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}`
8273 if test "x$LINE" != x ; then
8274 eval "DEFAULT_$LINE"
8275 else
8276 no_cache=1
8277 fi
8278
8279 ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL
8280
8281fi;
8282
8283 eval "$ac_cv_use_spinctrl"
8284 if test "$no_cache" != 1; then
8285 echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp
8286 fi
8287
8288 if test "$wxUSE_SPINCTRL" = yes; then
8289 echo "$as_me:$LINENO: result: yes" >&5
8290echo "${ECHO_T}yes" >&6
8291 else
8292 echo "$as_me:$LINENO: result: no" >&5
8293echo "${ECHO_T}no" >&6
8294 fi
8295
8296
8297 enablestring=
8298 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splitter" >&5
8299echo $ECHO_N "checking for --${enablestring:-enable}-splitter... $ECHO_C" >&6
8300 no_cache=0
8301 # Check whether --enable-splitter or --disable-splitter was given.
8302if test "${enable_splitter+set}" = set; then
8303 enableval="$enable_splitter"
8304
8305 if test "$enableval" = yes; then
8306 ac_cv_use_splitter='wxUSE_SPLITTER=yes'
8307 else
8308 ac_cv_use_splitter='wxUSE_SPLITTER=no'
8309 fi
8310
8311else
8312
8313 LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}`
8314 if test "x$LINE" != x ; then
8315 eval "DEFAULT_$LINE"
8316 else
8317 no_cache=1
8318 fi
8319
8320 ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER
8321
8322fi;
8323
8324 eval "$ac_cv_use_splitter"
8325 if test "$no_cache" != 1; then
8326 echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp
8327 fi
8328
8329 if test "$wxUSE_SPLITTER" = yes; then
8330 echo "$as_me:$LINENO: result: yes" >&5
8331echo "${ECHO_T}yes" >&6
8332 else
8333 echo "$as_me:$LINENO: result: no" >&5
8334echo "${ECHO_T}no" >&6
8335 fi
8336
8337
8338 enablestring=
8339 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbmp" >&5
8340echo $ECHO_N "checking for --${enablestring:-enable}-statbmp... $ECHO_C" >&6
8341 no_cache=0
8342 # Check whether --enable-statbmp or --disable-statbmp was given.
8343if test "${enable_statbmp+set}" = set; then
8344 enableval="$enable_statbmp"
8345
8346 if test "$enableval" = yes; then
8347 ac_cv_use_statbmp='wxUSE_STATBMP=yes'
8348 else
8349 ac_cv_use_statbmp='wxUSE_STATBMP=no'
8350 fi
8351
8352else
8353
8354 LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}`
8355 if test "x$LINE" != x ; then
8356 eval "DEFAULT_$LINE"
8357 else
8358 no_cache=1
8359 fi
8360
8361 ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP
8362
8363fi;
8364
8365 eval "$ac_cv_use_statbmp"
8366 if test "$no_cache" != 1; then
8367 echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp
8368 fi
8369
8370 if test "$wxUSE_STATBMP" = yes; then
8371 echo "$as_me:$LINENO: result: yes" >&5
8372echo "${ECHO_T}yes" >&6
8373 else
8374 echo "$as_me:$LINENO: result: no" >&5
8375echo "${ECHO_T}no" >&6
8376 fi
8377
8378
8379 enablestring=
8380 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbox" >&5
8381echo $ECHO_N "checking for --${enablestring:-enable}-statbox... $ECHO_C" >&6
8382 no_cache=0
8383 # Check whether --enable-statbox or --disable-statbox was given.
8384if test "${enable_statbox+set}" = set; then
8385 enableval="$enable_statbox"
8386
8387 if test "$enableval" = yes; then
8388 ac_cv_use_statbox='wxUSE_STATBOX=yes'
8389 else
8390 ac_cv_use_statbox='wxUSE_STATBOX=no'
8391 fi
8392
8393else
8394
8395 LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}`
8396 if test "x$LINE" != x ; then
8397 eval "DEFAULT_$LINE"
8398 else
8399 no_cache=1
8400 fi
8401
8402 ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX
8403
8404fi;
8405
8406 eval "$ac_cv_use_statbox"
8407 if test "$no_cache" != 1; then
8408 echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp
8409 fi
8410
8411 if test "$wxUSE_STATBOX" = yes; then
8412 echo "$as_me:$LINENO: result: yes" >&5
8413echo "${ECHO_T}yes" >&6
8414 else
8415 echo "$as_me:$LINENO: result: no" >&5
8416echo "${ECHO_T}no" >&6
8417 fi
8418
8419
8420 enablestring=
8421 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statline" >&5
8422echo $ECHO_N "checking for --${enablestring:-enable}-statline... $ECHO_C" >&6
8423 no_cache=0
8424 # Check whether --enable-statline or --disable-statline was given.
8425if test "${enable_statline+set}" = set; then
8426 enableval="$enable_statline"
8427
8428 if test "$enableval" = yes; then
8429 ac_cv_use_statline='wxUSE_STATLINE=yes'
8430 else
8431 ac_cv_use_statline='wxUSE_STATLINE=no'
8432 fi
8433
8434else
8435
8436 LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}`
8437 if test "x$LINE" != x ; then
8438 eval "DEFAULT_$LINE"
8439 else
8440 no_cache=1
8441 fi
8442
8443 ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE
8444
8445fi;
8446
8447 eval "$ac_cv_use_statline"
8448 if test "$no_cache" != 1; then
8449 echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp
8450 fi
8451
8452 if test "$wxUSE_STATLINE" = yes; then
8453 echo "$as_me:$LINENO: result: yes" >&5
8454echo "${ECHO_T}yes" >&6
8455 else
8456 echo "$as_me:$LINENO: result: no" >&5
8457echo "${ECHO_T}no" >&6
8458 fi
8459
8460
8461 enablestring=
8462 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stattext" >&5
8463echo $ECHO_N "checking for --${enablestring:-enable}-stattext... $ECHO_C" >&6
8464 no_cache=0
8465 # Check whether --enable-stattext or --disable-stattext was given.
8466if test "${enable_stattext+set}" = set; then
8467 enableval="$enable_stattext"
8468
8469 if test "$enableval" = yes; then
8470 ac_cv_use_stattext='wxUSE_STATTEXT=yes'
8471 else
8472 ac_cv_use_stattext='wxUSE_STATTEXT=no'
8473 fi
8474
8475else
8476
8477 LINE=`grep "wxUSE_STATTEXT" ${wx_arg_cache_file}`
8478 if test "x$LINE" != x ; then
8479 eval "DEFAULT_$LINE"
8480 else
8481 no_cache=1
8482 fi
8483
8484 ac_cv_use_stattext='wxUSE_STATTEXT='$DEFAULT_wxUSE_STATTEXT
8485
8486fi;
8487
8488 eval "$ac_cv_use_stattext"
8489 if test "$no_cache" != 1; then
8490 echo $ac_cv_use_stattext >> ${wx_arg_cache_file}.tmp
8491 fi
8492
8493 if test "$wxUSE_STATTEXT" = yes; then
8494 echo "$as_me:$LINENO: result: yes" >&5
8495echo "${ECHO_T}yes" >&6
8496 else
8497 echo "$as_me:$LINENO: result: no" >&5
8498echo "${ECHO_T}no" >&6
8499 fi
8500
8501
8502 enablestring=
8503 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statusbar" >&5
8504echo $ECHO_N "checking for --${enablestring:-enable}-statusbar... $ECHO_C" >&6
8505 no_cache=0
8506 # Check whether --enable-statusbar or --disable-statusbar was given.
8507if test "${enable_statusbar+set}" = set; then
8508 enableval="$enable_statusbar"
8509
8510 if test "$enableval" = yes; then
8511 ac_cv_use_statusbar='wxUSE_STATUSBAR=yes'
8512 else
8513 ac_cv_use_statusbar='wxUSE_STATUSBAR=no'
8514 fi
8515
8516else
8517
8518 LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}`
8519 if test "x$LINE" != x ; then
8520 eval "DEFAULT_$LINE"
8521 else
8522 no_cache=1
8523 fi
8524
8525 ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR
8526
8527fi;
8528
8529 eval "$ac_cv_use_statusbar"
8530 if test "$no_cache" != 1; then
8531 echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp
8532 fi
8533
8534 if test "$wxUSE_STATUSBAR" = yes; then
8535 echo "$as_me:$LINENO: result: yes" >&5
8536echo "${ECHO_T}yes" >&6
8537 else
8538 echo "$as_me:$LINENO: result: no" >&5
8539echo "${ECHO_T}no" >&6
8540 fi
8541
8542
8543 enablestring=
8544 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tabdialog" >&5
8545echo $ECHO_N "checking for --${enablestring:-enable}-tabdialog... $ECHO_C" >&6
8546 no_cache=0
8547 # Check whether --enable-tabdialog or --disable-tabdialog was given.
8548if test "${enable_tabdialog+set}" = set; then
8549 enableval="$enable_tabdialog"
8550
8551 if test "$enableval" = yes; then
8552 ac_cv_use_tabdialog='wxUSE_TABDIALOG=yes'
8553 else
8554 ac_cv_use_tabdialog='wxUSE_TABDIALOG=no'
8555 fi
8556
8557else
8558
8559 LINE=`grep "wxUSE_TABDIALOG" ${wx_arg_cache_file}`
8560 if test "x$LINE" != x ; then
8561 eval "DEFAULT_$LINE"
8562 else
8563 no_cache=1
8564 fi
8565
8566 ac_cv_use_tabdialog='wxUSE_TABDIALOG='$DEFAULT_wxUSE_TABDIALOG
8567
8568fi;
8569
8570 eval "$ac_cv_use_tabdialog"
8571 if test "$no_cache" != 1; then
8572 echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp
8573 fi
8574
8575 if test "$wxUSE_TABDIALOG" = yes; then
8576 echo "$as_me:$LINENO: result: yes" >&5
8577echo "${ECHO_T}yes" >&6
8578 else
8579 echo "$as_me:$LINENO: result: no" >&5
8580echo "${ECHO_T}no" >&6
8581 fi
8582
8583
8584 enablestring=
8585 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textctrl" >&5
8586echo $ECHO_N "checking for --${enablestring:-enable}-textctrl... $ECHO_C" >&6
8587 no_cache=0
8588 # Check whether --enable-textctrl or --disable-textctrl was given.
8589if test "${enable_textctrl+set}" = set; then
8590 enableval="$enable_textctrl"
8591
8592 if test "$enableval" = yes; then
8593 ac_cv_use_textctrl='wxUSE_TEXTCTRL=yes'
8594 else
8595 ac_cv_use_textctrl='wxUSE_TEXTCTRL=no'
8596 fi
8597
8598else
8599
8600 LINE=`grep "wxUSE_TEXTCTRL" ${wx_arg_cache_file}`
8601 if test "x$LINE" != x ; then
8602 eval "DEFAULT_$LINE"
8603 else
8604 no_cache=1
8605 fi
8606
8607 ac_cv_use_textctrl='wxUSE_TEXTCTRL='$DEFAULT_wxUSE_TEXTCTRL
8608
8609fi;
8610
8611 eval "$ac_cv_use_textctrl"
8612 if test "$no_cache" != 1; then
8613 echo $ac_cv_use_textctrl >> ${wx_arg_cache_file}.tmp
8614 fi
8615
8616 if test "$wxUSE_TEXTCTRL" = yes; then
8617 echo "$as_me:$LINENO: result: yes" >&5
8618echo "${ECHO_T}yes" >&6
8619 else
8620 echo "$as_me:$LINENO: result: no" >&5
8621echo "${ECHO_T}no" >&6
8622 fi
8623
8624
8625 enablestring=
8626 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-togglebtn" >&5
8627echo $ECHO_N "checking for --${enablestring:-enable}-togglebtn... $ECHO_C" >&6
8628 no_cache=0
8629 # Check whether --enable-togglebtn or --disable-togglebtn was given.
8630if test "${enable_togglebtn+set}" = set; then
8631 enableval="$enable_togglebtn"
8632
8633 if test "$enableval" = yes; then
8634 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes'
8635 else
8636 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=no'
8637 fi
8638
8639else
8640
8641 LINE=`grep "wxUSE_TOGGLEBTN" ${wx_arg_cache_file}`
8642 if test "x$LINE" != x ; then
8643 eval "DEFAULT_$LINE"
8644 else
8645 no_cache=1
8646 fi
8647
8648 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN='$DEFAULT_wxUSE_TOGGLEBTN
8649
8650fi;
8651
8652 eval "$ac_cv_use_togglebtn"
8653 if test "$no_cache" != 1; then
8654 echo $ac_cv_use_togglebtn >> ${wx_arg_cache_file}.tmp
8655 fi
8656
8657 if test "$wxUSE_TOGGLEBTN" = yes; then
8658 echo "$as_me:$LINENO: result: yes" >&5
8659echo "${ECHO_T}yes" >&6
8660 else
8661 echo "$as_me:$LINENO: result: no" >&5
8662echo "${ECHO_T}no" >&6
8663 fi
8664
8665
8666 enablestring=
8667 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-toolbar" >&5
8668echo $ECHO_N "checking for --${enablestring:-enable}-toolbar... $ECHO_C" >&6
8669 no_cache=0
8670 # Check whether --enable-toolbar or --disable-toolbar was given.
8671if test "${enable_toolbar+set}" = set; then
8672 enableval="$enable_toolbar"
8673
8674 if test "$enableval" = yes; then
8675 ac_cv_use_toolbar='wxUSE_TOOLBAR=yes'
8676 else
8677 ac_cv_use_toolbar='wxUSE_TOOLBAR=no'
8678 fi
8679
8680else
8681
8682 LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}`
8683 if test "x$LINE" != x ; then
8684 eval "DEFAULT_$LINE"
8685 else
8686 no_cache=1
8687 fi
8688
8689 ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR
8690
8691fi;
8692
8693 eval "$ac_cv_use_toolbar"
8694 if test "$no_cache" != 1; then
8695 echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp
8696 fi
8697
8698 if test "$wxUSE_TOOLBAR" = yes; then
8699 echo "$as_me:$LINENO: result: yes" >&5
8700echo "${ECHO_T}yes" >&6
8701 else
8702 echo "$as_me:$LINENO: result: no" >&5
8703echo "${ECHO_T}no" >&6
8704 fi
8705
8706
8707 enablestring=
8708 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarnative" >&5
8709echo $ECHO_N "checking for --${enablestring:-enable}-tbarnative... $ECHO_C" >&6
8710 no_cache=0
8711 # Check whether --enable-tbarnative or --disable-tbarnative was given.
8712if test "${enable_tbarnative+set}" = set; then
8713 enableval="$enable_tbarnative"
8714
8715 if test "$enableval" = yes; then
8716 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes'
8717 else
8718 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no'
8719 fi
8720
8721else
8722
8723 LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}`
8724 if test "x$LINE" != x ; then
8725 eval "DEFAULT_$LINE"
8726 else
8727 no_cache=1
8728 fi
8729
8730 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE
8731
8732fi;
8733
8734 eval "$ac_cv_use_tbarnative"
8735 if test "$no_cache" != 1; then
8736 echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp
8737 fi
8738
8739 if test "$wxUSE_TOOLBAR_NATIVE" = yes; then
8740 echo "$as_me:$LINENO: result: yes" >&5
8741echo "${ECHO_T}yes" >&6
8742 else
8743 echo "$as_me:$LINENO: result: no" >&5
8744echo "${ECHO_T}no" >&6
8745 fi
8746
8747
8748 enablestring=
8749 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarsmpl" >&5
8750echo $ECHO_N "checking for --${enablestring:-enable}-tbarsmpl... $ECHO_C" >&6
8751 no_cache=0
8752 # Check whether --enable-tbarsmpl or --disable-tbarsmpl was given.
8753if test "${enable_tbarsmpl+set}" = set; then
8754 enableval="$enable_tbarsmpl"
8755
8756 if test "$enableval" = yes; then
8757 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=yes'
8758 else
8759 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=no'
8760 fi
8761
8762else
8763
8764 LINE=`grep "wxUSE_TOOLBAR_SIMPLE" ${wx_arg_cache_file}`
8765 if test "x$LINE" != x ; then
8766 eval "DEFAULT_$LINE"
8767 else
8768 no_cache=1
8769 fi
8770
8771 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE='$DEFAULT_wxUSE_TOOLBAR_SIMPLE
8772
8773fi;
8774
8775 eval "$ac_cv_use_tbarsmpl"
8776 if test "$no_cache" != 1; then
8777 echo $ac_cv_use_tbarsmpl >> ${wx_arg_cache_file}.tmp
8778 fi
8779
8780 if test "$wxUSE_TOOLBAR_SIMPLE" = yes; then
8781 echo "$as_me:$LINENO: result: yes" >&5
8782echo "${ECHO_T}yes" >&6
8783 else
8784 echo "$as_me:$LINENO: result: no" >&5
8785echo "${ECHO_T}no" >&6
8786 fi
8787
8788
8789 enablestring=
8790 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-treectrl" >&5
8791echo $ECHO_N "checking for --${enablestring:-enable}-treectrl... $ECHO_C" >&6
8792 no_cache=0
8793 # Check whether --enable-treectrl or --disable-treectrl was given.
8794if test "${enable_treectrl+set}" = set; then
8795 enableval="$enable_treectrl"
8796
8797 if test "$enableval" = yes; then
8798 ac_cv_use_treectrl='wxUSE_TREECTRL=yes'
8799 else
8800 ac_cv_use_treectrl='wxUSE_TREECTRL=no'
8801 fi
8802
8803else
8804
8805 LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}`
8806 if test "x$LINE" != x ; then
8807 eval "DEFAULT_$LINE"
8808 else
8809 no_cache=1
8810 fi
8811
8812 ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL
8813
8814fi;
8815
8816 eval "$ac_cv_use_treectrl"
8817 if test "$no_cache" != 1; then
8818 echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp
8819 fi
8820
8821 if test "$wxUSE_TREECTRL" = yes; then
8822 echo "$as_me:$LINENO: result: yes" >&5
8823echo "${ECHO_T}yes" >&6
8824 else
8825 echo "$as_me:$LINENO: result: no" >&5
8826echo "${ECHO_T}no" >&6
8827 fi
8828
8829
8830 enablestring=
8831 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipwindow" >&5
8832echo $ECHO_N "checking for --${enablestring:-enable}-tipwindow... $ECHO_C" >&6
8833 no_cache=0
8834 # Check whether --enable-tipwindow or --disable-tipwindow was given.
8835if test "${enable_tipwindow+set}" = set; then
8836 enableval="$enable_tipwindow"
8837
8838 if test "$enableval" = yes; then
8839 ac_cv_use_tipwindow='wxUSE_TIPWINDOW=yes'
8840 else
8841 ac_cv_use_tipwindow='wxUSE_TIPWINDOW=no'
8842 fi
8843
8844else
8845
8846 LINE=`grep "wxUSE_TIPWINDOW" ${wx_arg_cache_file}`
8847 if test "x$LINE" != x ; then
8848 eval "DEFAULT_$LINE"
8849 else
8850 no_cache=1
8851 fi
8852
8853 ac_cv_use_tipwindow='wxUSE_TIPWINDOW='$DEFAULT_wxUSE_TIPWINDOW
8854
8855fi;
8856
8857 eval "$ac_cv_use_tipwindow"
8858 if test "$no_cache" != 1; then
8859 echo $ac_cv_use_tipwindow >> ${wx_arg_cache_file}.tmp
8860 fi
8861
8862 if test "$wxUSE_TIPWINDOW" = yes; then
8863 echo "$as_me:$LINENO: result: yes" >&5
8864echo "${ECHO_T}yes" >&6
8865 else
8866 echo "$as_me:$LINENO: result: no" >&5
8867echo "${ECHO_T}no" >&6
8868 fi
8869
8870
8871 enablestring=
8872 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-popupwin" >&5
8873echo $ECHO_N "checking for --${enablestring:-enable}-popupwin... $ECHO_C" >&6
8874 no_cache=0
8875 # Check whether --enable-popupwin or --disable-popupwin was given.
8876if test "${enable_popupwin+set}" = set; then
8877 enableval="$enable_popupwin"
8878
8879 if test "$enableval" = yes; then
8880 ac_cv_use_popupwin='wxUSE_POPUPWIN=yes'
8881 else
8882 ac_cv_use_popupwin='wxUSE_POPUPWIN=no'
8883 fi
8884
8885else
8886
8887 LINE=`grep "wxUSE_POPUPWIN" ${wx_arg_cache_file}`
8888 if test "x$LINE" != x ; then
8889 eval "DEFAULT_$LINE"
8890 else
8891 no_cache=1
8892 fi
8893
8894 ac_cv_use_popupwin='wxUSE_POPUPWIN='$DEFAULT_wxUSE_POPUPWIN
8895
8896fi;
8897
8898 eval "$ac_cv_use_popupwin"
8899 if test "$no_cache" != 1; then
8900 echo $ac_cv_use_popupwin >> ${wx_arg_cache_file}.tmp
8901 fi
8902
8903 if test "$wxUSE_POPUPWIN" = yes; then
8904 echo "$as_me:$LINENO: result: yes" >&5
8905echo "${ECHO_T}yes" >&6
8906 else
8907 echo "$as_me:$LINENO: result: no" >&5
8908echo "${ECHO_T}no" >&6
8909 fi
8910
8911
8912
8913
8914 enablestring=
8915 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-commondlg" >&5
8916echo $ECHO_N "checking for --${enablestring:-enable}-commondlg... $ECHO_C" >&6
8917 no_cache=0
8918 # Check whether --enable-commondlg or --disable-commondlg was given.
8919if test "${enable_commondlg+set}" = set; then
8920 enableval="$enable_commondlg"
8921
8922 if test "$enableval" = yes; then
8923 ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes'
8924 else
8925 ac_cv_use_commondlg='wxUSE_COMMONDLGS=no'
8926 fi
8927
8928else
8929
8930 LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}`
8931 if test "x$LINE" != x ; then
8932 eval "DEFAULT_$LINE"
8933 else
8934 no_cache=1
8935 fi
8936
8937 ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS
8938
8939fi;
8940
8941 eval "$ac_cv_use_commondlg"
8942 if test "$no_cache" != 1; then
8943 echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp
8944 fi
8945
8946 if test "$wxUSE_COMMONDLGS" = yes; then
8947 echo "$as_me:$LINENO: result: yes" >&5
8948echo "${ECHO_T}yes" >&6
8949 else
8950 echo "$as_me:$LINENO: result: no" >&5
8951echo "${ECHO_T}no" >&6
8952 fi
8953
8954
8955 enablestring=
8956 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicedlg" >&5
8957echo $ECHO_N "checking for --${enablestring:-enable}-choicedlg... $ECHO_C" >&6
8958 no_cache=0
8959 # Check whether --enable-choicedlg or --disable-choicedlg was given.
8960if test "${enable_choicedlg+set}" = set; then
8961 enableval="$enable_choicedlg"
8962
8963 if test "$enableval" = yes; then
8964 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=yes'
8965 else
8966 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=no'
8967 fi
8968
8969else
8970
8971 LINE=`grep "wxUSE_CHOICEDLG" ${wx_arg_cache_file}`
8972 if test "x$LINE" != x ; then
8973 eval "DEFAULT_$LINE"
8974 else
8975 no_cache=1
8976 fi
8977
8978 ac_cv_use_choicedlg='wxUSE_CHOICEDLG='$DEFAULT_wxUSE_CHOICEDLG
8979
8980fi;
8981
8982 eval "$ac_cv_use_choicedlg"
8983 if test "$no_cache" != 1; then
8984 echo $ac_cv_use_choicedlg >> ${wx_arg_cache_file}.tmp
8985 fi
8986
8987 if test "$wxUSE_CHOICEDLG" = yes; then
8988 echo "$as_me:$LINENO: result: yes" >&5
8989echo "${ECHO_T}yes" >&6
8990 else
8991 echo "$as_me:$LINENO: result: no" >&5
8992echo "${ECHO_T}no" >&6
8993 fi
8994
8995
8996 enablestring=
8997 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-coldlg" >&5
8998echo $ECHO_N "checking for --${enablestring:-enable}-coldlg... $ECHO_C" >&6
8999 no_cache=0
9000 # Check whether --enable-coldlg or --disable-coldlg was given.
9001if test "${enable_coldlg+set}" = set; then
9002 enableval="$enable_coldlg"
9003
9004 if test "$enableval" = yes; then
9005 ac_cv_use_coldlg='wxUSE_COLOURDLG=yes'
9006 else
9007 ac_cv_use_coldlg='wxUSE_COLOURDLG=no'
9008 fi
9009
9010else
9011
9012 LINE=`grep "wxUSE_COLOURDLG" ${wx_arg_cache_file}`
9013 if test "x$LINE" != x ; then
9014 eval "DEFAULT_$LINE"
9015 else
9016 no_cache=1
9017 fi
9018
9019 ac_cv_use_coldlg='wxUSE_COLOURDLG='$DEFAULT_wxUSE_COLOURDLG
9020
9021fi;
9022
9023 eval "$ac_cv_use_coldlg"
9024 if test "$no_cache" != 1; then
9025 echo $ac_cv_use_coldlg >> ${wx_arg_cache_file}.tmp
9026 fi
9027
9028 if test "$wxUSE_COLOURDLG" = yes; then
9029 echo "$as_me:$LINENO: result: yes" >&5
9030echo "${ECHO_T}yes" >&6
9031 else
9032 echo "$as_me:$LINENO: result: no" >&5
9033echo "${ECHO_T}no" >&6
9034 fi
9035
9036
9037 enablestring=
9038 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filedlg" >&5
9039echo $ECHO_N "checking for --${enablestring:-enable}-filedlg... $ECHO_C" >&6
9040 no_cache=0
9041 # Check whether --enable-filedlg or --disable-filedlg was given.
9042if test "${enable_filedlg+set}" = set; then
9043 enableval="$enable_filedlg"
9044
9045 if test "$enableval" = yes; then
9046 ac_cv_use_filedlg='wxUSE_FILEDLG=yes'
9047 else
9048 ac_cv_use_filedlg='wxUSE_FILEDLG=no'
9049 fi
9050
9051else
9052
9053 LINE=`grep "wxUSE_FILEDLG" ${wx_arg_cache_file}`
9054 if test "x$LINE" != x ; then
9055 eval "DEFAULT_$LINE"
9056 else
9057 no_cache=1
9058 fi
9059
9060 ac_cv_use_filedlg='wxUSE_FILEDLG='$DEFAULT_wxUSE_FILEDLG
9061
9062fi;
9063
9064 eval "$ac_cv_use_filedlg"
9065 if test "$no_cache" != 1; then
9066 echo $ac_cv_use_filedlg >> ${wx_arg_cache_file}.tmp
9067 fi
9068
9069 if test "$wxUSE_FILEDLG" = yes; then
9070 echo "$as_me:$LINENO: result: yes" >&5
9071echo "${ECHO_T}yes" >&6
9072 else
9073 echo "$as_me:$LINENO: result: no" >&5
9074echo "${ECHO_T}no" >&6
9075 fi
9076
9077
9078 enablestring=
9079 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-finddlg" >&5
9080echo $ECHO_N "checking for --${enablestring:-enable}-finddlg... $ECHO_C" >&6
9081 no_cache=0
9082 # Check whether --enable-finddlg or --disable-finddlg was given.
9083if test "${enable_finddlg+set}" = set; then
9084 enableval="$enable_finddlg"
9085
9086 if test "$enableval" = yes; then
9087 ac_cv_use_finddlg='wxUSE_FINDREPLDLG=yes'
9088 else
9089 ac_cv_use_finddlg='wxUSE_FINDREPLDLG=no'
9090 fi
9091
9092else
9093
9094 LINE=`grep "wxUSE_FINDREPLDLG" ${wx_arg_cache_file}`
9095 if test "x$LINE" != x ; then
9096 eval "DEFAULT_$LINE"
9097 else
9098 no_cache=1
9099 fi
9100
9101 ac_cv_use_finddlg='wxUSE_FINDREPLDLG='$DEFAULT_wxUSE_FINDREPLDLG
9102
9103fi;
9104
9105 eval "$ac_cv_use_finddlg"
9106 if test "$no_cache" != 1; then
9107 echo $ac_cv_use_finddlg >> ${wx_arg_cache_file}.tmp
9108 fi
9109
9110 if test "$wxUSE_FINDREPLDLG" = yes; then
9111 echo "$as_me:$LINENO: result: yes" >&5
9112echo "${ECHO_T}yes" >&6
9113 else
9114 echo "$as_me:$LINENO: result: no" >&5
9115echo "${ECHO_T}no" >&6
9116 fi
9117
9118
9119 enablestring=
9120 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontdlg" >&5
9121echo $ECHO_N "checking for --${enablestring:-enable}-fontdlg... $ECHO_C" >&6
9122 no_cache=0
9123 # Check whether --enable-fontdlg or --disable-fontdlg was given.
9124if test "${enable_fontdlg+set}" = set; then
9125 enableval="$enable_fontdlg"
9126
9127 if test "$enableval" = yes; then
9128 ac_cv_use_fontdlg='wxUSE_FONTDLG=yes'
9129 else
9130 ac_cv_use_fontdlg='wxUSE_FONTDLG=no'
9131 fi
9132
9133else
9134
9135 LINE=`grep "wxUSE_FONTDLG" ${wx_arg_cache_file}`
9136 if test "x$LINE" != x ; then
9137 eval "DEFAULT_$LINE"
9138 else
9139 no_cache=1
9140 fi
9141
9142 ac_cv_use_fontdlg='wxUSE_FONTDLG='$DEFAULT_wxUSE_FONTDLG
9143
9144fi;
9145
9146 eval "$ac_cv_use_fontdlg"
9147 if test "$no_cache" != 1; then
9148 echo $ac_cv_use_fontdlg >> ${wx_arg_cache_file}.tmp
9149 fi
9150
9151 if test "$wxUSE_FONTDLG" = yes; then
9152 echo "$as_me:$LINENO: result: yes" >&5
9153echo "${ECHO_T}yes" >&6
9154 else
9155 echo "$as_me:$LINENO: result: no" >&5
9156echo "${ECHO_T}no" >&6
9157 fi
9158
9159
9160 enablestring=
9161 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dirdlg" >&5
9162echo $ECHO_N "checking for --${enablestring:-enable}-dirdlg... $ECHO_C" >&6
9163 no_cache=0
9164 # Check whether --enable-dirdlg or --disable-dirdlg was given.
9165if test "${enable_dirdlg+set}" = set; then
9166 enableval="$enable_dirdlg"
9167
9168 if test "$enableval" = yes; then
9169 ac_cv_use_dirdlg='wxUSE_DIRDLG=yes'
9170 else
9171 ac_cv_use_dirdlg='wxUSE_DIRDLG=no'
9172 fi
9173
9174else
9175
9176 LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}`
9177 if test "x$LINE" != x ; then
9178 eval "DEFAULT_$LINE"
9179 else
9180 no_cache=1
9181 fi
9182
9183 ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG
9184
9185fi;
9186
9187 eval "$ac_cv_use_dirdlg"
9188 if test "$no_cache" != 1; then
9189 echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp
9190 fi
9191
9192 if test "$wxUSE_DIRDLG" = yes; then
9193 echo "$as_me:$LINENO: result: yes" >&5
9194echo "${ECHO_T}yes" >&6
9195 else
9196 echo "$as_me:$LINENO: result: no" >&5
9197echo "${ECHO_T}no" >&6
9198 fi
9199
9200
9201 enablestring=
9202 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-msgdlg" >&5
9203echo $ECHO_N "checking for --${enablestring:-enable}-msgdlg... $ECHO_C" >&6
9204 no_cache=0
9205 # Check whether --enable-msgdlg or --disable-msgdlg was given.
9206if test "${enable_msgdlg+set}" = set; then
9207 enableval="$enable_msgdlg"
9208
9209 if test "$enableval" = yes; then
9210 ac_cv_use_msgdlg='wxUSE_MSGDLG=yes'
9211 else
9212 ac_cv_use_msgdlg='wxUSE_MSGDLG=no'
9213 fi
9214
9215else
9216
9217 LINE=`grep "wxUSE_MSGDLG" ${wx_arg_cache_file}`
9218 if test "x$LINE" != x ; then
9219 eval "DEFAULT_$LINE"
9220 else
9221 no_cache=1
9222 fi
9223
9224 ac_cv_use_msgdlg='wxUSE_MSGDLG='$DEFAULT_wxUSE_MSGDLG
9225
9226fi;
9227
9228 eval "$ac_cv_use_msgdlg"
9229 if test "$no_cache" != 1; then
9230 echo $ac_cv_use_msgdlg >> ${wx_arg_cache_file}.tmp
9231 fi
9232
9233 if test "$wxUSE_MSGDLG" = yes; then
9234 echo "$as_me:$LINENO: result: yes" >&5
9235echo "${ECHO_T}yes" >&6
9236 else
9237 echo "$as_me:$LINENO: result: no" >&5
9238echo "${ECHO_T}no" >&6
9239 fi
9240
9241
9242 enablestring=
9243 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-numberdlg" >&5
9244echo $ECHO_N "checking for --${enablestring:-enable}-numberdlg... $ECHO_C" >&6
9245 no_cache=0
9246 # Check whether --enable-numberdlg or --disable-numberdlg was given.
9247if test "${enable_numberdlg+set}" = set; then
9248 enableval="$enable_numberdlg"
9249
9250 if test "$enableval" = yes; then
9251 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=yes'
9252 else
9253 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=no'
9254 fi
9255
9256else
9257
9258 LINE=`grep "wxUSE_NUMBERDLG" ${wx_arg_cache_file}`
9259 if test "x$LINE" != x ; then
9260 eval "DEFAULT_$LINE"
9261 else
9262 no_cache=1
9263 fi
9264
9265 ac_cv_use_numberdlg='wxUSE_NUMBERDLG='$DEFAULT_wxUSE_NUMBERDLG
9266
9267fi;
9268
9269 eval "$ac_cv_use_numberdlg"
9270 if test "$no_cache" != 1; then
9271 echo $ac_cv_use_numberdlg >> ${wx_arg_cache_file}.tmp
9272 fi
9273
9274 if test "$wxUSE_NUMBERDLG" = yes; then
9275 echo "$as_me:$LINENO: result: yes" >&5
9276echo "${ECHO_T}yes" >&6
9277 else
9278 echo "$as_me:$LINENO: result: no" >&5
9279echo "${ECHO_T}no" >&6
9280 fi
9281
9282
9283 enablestring=
9284 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splash" >&5
9285echo $ECHO_N "checking for --${enablestring:-enable}-splash... $ECHO_C" >&6
9286 no_cache=0
9287 # Check whether --enable-splash or --disable-splash was given.
9288if test "${enable_splash+set}" = set; then
9289 enableval="$enable_splash"
9290
9291 if test "$enableval" = yes; then
9292 ac_cv_use_splash='wxUSE_SPLASH=yes'
9293 else
9294 ac_cv_use_splash='wxUSE_SPLASH=no'
9295 fi
9296
9297else
9298
9299 LINE=`grep "wxUSE_SPLASH" ${wx_arg_cache_file}`
9300 if test "x$LINE" != x ; then
9301 eval "DEFAULT_$LINE"
9302 else
9303 no_cache=1
9304 fi
9305
9306 ac_cv_use_splash='wxUSE_SPLASH='$DEFAULT_wxUSE_SPLASH
9307
9308fi;
9309
9310 eval "$ac_cv_use_splash"
9311 if test "$no_cache" != 1; then
9312 echo $ac_cv_use_splash >> ${wx_arg_cache_file}.tmp
9313 fi
9314
9315 if test "$wxUSE_SPLASH" = yes; then
9316 echo "$as_me:$LINENO: result: yes" >&5
9317echo "${ECHO_T}yes" >&6
9318 else
9319 echo "$as_me:$LINENO: result: no" >&5
9320echo "${ECHO_T}no" >&6
9321 fi
9322
9323
9324 enablestring=
9325 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textdlg" >&5
9326echo $ECHO_N "checking for --${enablestring:-enable}-textdlg... $ECHO_C" >&6
9327 no_cache=0
9328 # Check whether --enable-textdlg or --disable-textdlg was given.
9329if test "${enable_textdlg+set}" = set; then
9330 enableval="$enable_textdlg"
9331
9332 if test "$enableval" = yes; then
9333 ac_cv_use_textdlg='wxUSE_TEXTDLG=yes'
9334 else
9335 ac_cv_use_textdlg='wxUSE_TEXTDLG=no'
9336 fi
9337
9338else
9339
9340 LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}`
9341 if test "x$LINE" != x ; then
9342 eval "DEFAULT_$LINE"
9343 else
9344 no_cache=1
9345 fi
9346
9347 ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG
9348
9349fi;
9350
9351 eval "$ac_cv_use_textdlg"
9352 if test "$no_cache" != 1; then
9353 echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp
9354 fi
9355
9356 if test "$wxUSE_TEXTDLG" = yes; then
9357 echo "$as_me:$LINENO: result: yes" >&5
9358echo "${ECHO_T}yes" >&6
9359 else
9360 echo "$as_me:$LINENO: result: no" >&5
9361echo "${ECHO_T}no" >&6
9362 fi
9363
9364
9365 enablestring=
9366 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipdlg" >&5
9367echo $ECHO_N "checking for --${enablestring:-enable}-tipdlg... $ECHO_C" >&6
9368 no_cache=0
9369 # Check whether --enable-tipdlg or --disable-tipdlg was given.
9370if test "${enable_tipdlg+set}" = set; then
9371 enableval="$enable_tipdlg"
9372
9373 if test "$enableval" = yes; then
9374 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes'
9375 else
9376 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no'
9377 fi
9378
9379else
9380
9381 LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}`
9382 if test "x$LINE" != x ; then
9383 eval "DEFAULT_$LINE"
9384 else
9385 no_cache=1
9386 fi
9387
9388 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS
9389
9390fi;
9391
9392 eval "$ac_cv_use_tipdlg"
9393 if test "$no_cache" != 1; then
9394 echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp
9395 fi
9396
9397 if test "$wxUSE_STARTUP_TIPS" = yes; then
9398 echo "$as_me:$LINENO: result: yes" >&5
9399echo "${ECHO_T}yes" >&6
9400 else
9401 echo "$as_me:$LINENO: result: no" >&5
9402echo "${ECHO_T}no" >&6
9403 fi
9404
9405
9406 enablestring=
9407 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-progressdlg" >&5
9408echo $ECHO_N "checking for --${enablestring:-enable}-progressdlg... $ECHO_C" >&6
9409 no_cache=0
9410 # Check whether --enable-progressdlg or --disable-progressdlg was given.
9411if test "${enable_progressdlg+set}" = set; then
9412 enableval="$enable_progressdlg"
9413
9414 if test "$enableval" = yes; then
9415 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes'
9416 else
9417 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no'
9418 fi
9419
9420else
9421
9422 LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}`
9423 if test "x$LINE" != x ; then
9424 eval "DEFAULT_$LINE"
9425 else
9426 no_cache=1
9427 fi
9428
9429 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG
9430
9431fi;
9432
9433 eval "$ac_cv_use_progressdlg"
9434 if test "$no_cache" != 1; then
9435 echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp
9436 fi
9437
9438 if test "$wxUSE_PROGRESSDLG" = yes; then
9439 echo "$as_me:$LINENO: result: yes" >&5
9440echo "${ECHO_T}yes" >&6
9441 else
9442 echo "$as_me:$LINENO: result: no" >&5
9443echo "${ECHO_T}no" >&6
9444 fi
9445
9446
9447 enablestring=
9448 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wizarddlg" >&5
9449echo $ECHO_N "checking for --${enablestring:-enable}-wizarddlg... $ECHO_C" >&6
9450 no_cache=0
9451 # Check whether --enable-wizarddlg or --disable-wizarddlg was given.
9452if test "${enable_wizarddlg+set}" = set; then
9453 enableval="$enable_wizarddlg"
9454
9455 if test "$enableval" = yes; then
9456 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=yes'
9457 else
9458 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=no'
9459 fi
9460
9461else
9462
9463 LINE=`grep "wxUSE_WIZARDDLG" ${wx_arg_cache_file}`
9464 if test "x$LINE" != x ; then
9465 eval "DEFAULT_$LINE"
9466 else
9467 no_cache=1
9468 fi
9469
9470 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG='$DEFAULT_wxUSE_WIZARDDLG
9471
9472fi;
9473
9474 eval "$ac_cv_use_wizarddlg"
9475 if test "$no_cache" != 1; then
9476 echo $ac_cv_use_wizarddlg >> ${wx_arg_cache_file}.tmp
9477 fi
9478
9479 if test "$wxUSE_WIZARDDLG" = yes; then
9480 echo "$as_me:$LINENO: result: yes" >&5
9481echo "${ECHO_T}yes" >&6
9482 else
9483 echo "$as_me:$LINENO: result: no" >&5
9484echo "${ECHO_T}no" >&6
9485 fi
9486
9487
9488
9489
9490 enablestring=
9491 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-menus" >&5
9492echo $ECHO_N "checking for --${enablestring:-enable}-menus... $ECHO_C" >&6
9493 no_cache=0
9494 # Check whether --enable-menus or --disable-menus was given.
9495if test "${enable_menus+set}" = set; then
9496 enableval="$enable_menus"
9497
9498 if test "$enableval" = yes; then
9499 ac_cv_use_menus='wxUSE_MENUS=yes'
9500 else
9501 ac_cv_use_menus='wxUSE_MENUS=no'
9502 fi
9503
9504else
9505
9506 LINE=`grep "wxUSE_MENUS" ${wx_arg_cache_file}`
9507 if test "x$LINE" != x ; then
9508 eval "DEFAULT_$LINE"
9509 else
9510 no_cache=1
9511 fi
9512
9513 ac_cv_use_menus='wxUSE_MENUS='$DEFAULT_wxUSE_MENUS
9514
9515fi;
9516
9517 eval "$ac_cv_use_menus"
9518 if test "$no_cache" != 1; then
9519 echo $ac_cv_use_menus >> ${wx_arg_cache_file}.tmp
9520 fi
9521
9522 if test "$wxUSE_MENUS" = yes; then
9523 echo "$as_me:$LINENO: result: yes" >&5
9524echo "${ECHO_T}yes" >&6
9525 else
9526 echo "$as_me:$LINENO: result: no" >&5
9527echo "${ECHO_T}no" >&6
9528 fi
9529
9530
9531 enablestring=
9532 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-miniframe" >&5
9533echo $ECHO_N "checking for --${enablestring:-enable}-miniframe... $ECHO_C" >&6
9534 no_cache=0
9535 # Check whether --enable-miniframe or --disable-miniframe was given.
9536if test "${enable_miniframe+set}" = set; then
9537 enableval="$enable_miniframe"
9538
9539 if test "$enableval" = yes; then
9540 ac_cv_use_miniframe='wxUSE_MINIFRAME=yes'
9541 else
9542 ac_cv_use_miniframe='wxUSE_MINIFRAME=no'
9543 fi
9544
9545else
9546
9547 LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}`
9548 if test "x$LINE" != x ; then
9549 eval "DEFAULT_$LINE"
9550 else
9551 no_cache=1
9552 fi
9553
9554 ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME
9555
9556fi;
9557
9558 eval "$ac_cv_use_miniframe"
9559 if test "$no_cache" != 1; then
9560 echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp
9561 fi
9562
9563 if test "$wxUSE_MINIFRAME" = yes; then
9564 echo "$as_me:$LINENO: result: yes" >&5
9565echo "${ECHO_T}yes" >&6
9566 else
9567 echo "$as_me:$LINENO: result: no" >&5
9568echo "${ECHO_T}no" >&6
9569 fi
9570
9571
9572 enablestring=
9573 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tooltips" >&5
9574echo $ECHO_N "checking for --${enablestring:-enable}-tooltips... $ECHO_C" >&6
9575 no_cache=0
9576 # Check whether --enable-tooltips or --disable-tooltips was given.
9577if test "${enable_tooltips+set}" = set; then
9578 enableval="$enable_tooltips"
9579
9580 if test "$enableval" = yes; then
9581 ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes'
9582 else
9583 ac_cv_use_tooltips='wxUSE_TOOLTIPS=no'
9584 fi
9585
9586else
9587
9588 LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}`
9589 if test "x$LINE" != x ; then
9590 eval "DEFAULT_$LINE"
9591 else
9592 no_cache=1
9593 fi
9594
9595 ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS
9596
9597fi;
9598
9599 eval "$ac_cv_use_tooltips"
9600 if test "$no_cache" != 1; then
9601 echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp
9602 fi
9603
9604 if test "$wxUSE_TOOLTIPS" = yes; then
9605 echo "$as_me:$LINENO: result: yes" >&5
9606echo "${ECHO_T}yes" >&6
9607 else
9608 echo "$as_me:$LINENO: result: no" >&5
9609echo "${ECHO_T}no" >&6
9610 fi
9611
9612
9613 enablestring=
9614 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splines" >&5
9615echo $ECHO_N "checking for --${enablestring:-enable}-splines... $ECHO_C" >&6
9616 no_cache=0
9617 # Check whether --enable-splines or --disable-splines was given.
9618if test "${enable_splines+set}" = set; then
9619 enableval="$enable_splines"
9620
9621 if test "$enableval" = yes; then
9622 ac_cv_use_splines='wxUSE_SPLINES=yes'
9623 else
9624 ac_cv_use_splines='wxUSE_SPLINES=no'
9625 fi
9626
9627else
9628
9629 LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}`
9630 if test "x$LINE" != x ; then
9631 eval "DEFAULT_$LINE"
9632 else
9633 no_cache=1
9634 fi
9635
9636 ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES
9637
9638fi;
9639
9640 eval "$ac_cv_use_splines"
9641 if test "$no_cache" != 1; then
9642 echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp
9643 fi
9644
9645 if test "$wxUSE_SPLINES" = yes; then
9646 echo "$as_me:$LINENO: result: yes" >&5
9647echo "${ECHO_T}yes" >&6
9648 else
9649 echo "$as_me:$LINENO: result: no" >&5
9650echo "${ECHO_T}no" >&6
9651 fi
9652
9653
9654 enablestring=
9655 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-validators" >&5
9656echo $ECHO_N "checking for --${enablestring:-enable}-validators... $ECHO_C" >&6
9657 no_cache=0
9658 # Check whether --enable-validators or --disable-validators was given.
9659if test "${enable_validators+set}" = set; then
9660 enableval="$enable_validators"
9661
9662 if test "$enableval" = yes; then
9663 ac_cv_use_validators='wxUSE_VALIDATORS=yes'
9664 else
9665 ac_cv_use_validators='wxUSE_VALIDATORS=no'
9666 fi
9667
9668else
9669
9670 LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}`
9671 if test "x$LINE" != x ; then
9672 eval "DEFAULT_$LINE"
9673 else
9674 no_cache=1
9675 fi
9676
9677 ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS
9678
9679fi;
9680
9681 eval "$ac_cv_use_validators"
9682 if test "$no_cache" != 1; then
9683 echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp
9684 fi
9685
9686 if test "$wxUSE_VALIDATORS" = yes; then
9687 echo "$as_me:$LINENO: result: yes" >&5
9688echo "${ECHO_T}yes" >&6
9689 else
9690 echo "$as_me:$LINENO: result: no" >&5
9691echo "${ECHO_T}no" >&6
9692 fi
9693
9694
9695 enablestring=
9696 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-busyinfo" >&5
9697echo $ECHO_N "checking for --${enablestring:-enable}-busyinfo... $ECHO_C" >&6
9698 no_cache=0
9699 # Check whether --enable-busyinfo or --disable-busyinfo was given.
9700if test "${enable_busyinfo+set}" = set; then
9701 enableval="$enable_busyinfo"
9702
9703 if test "$enableval" = yes; then
9704 ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes'
9705 else
9706 ac_cv_use_busyinfo='wxUSE_BUSYINFO=no'
9707 fi
9708
9709else
9710
9711 LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}`
9712 if test "x$LINE" != x ; then
9713 eval "DEFAULT_$LINE"
9714 else
9715 no_cache=1
9716 fi
9717
9718 ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO
9719
9720fi;
9721
9722 eval "$ac_cv_use_busyinfo"
9723 if test "$no_cache" != 1; then
9724 echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp
9725 fi
9726
9727 if test "$wxUSE_BUSYINFO" = yes; then
9728 echo "$as_me:$LINENO: result: yes" >&5
9729echo "${ECHO_T}yes" >&6
9730 else
9731 echo "$as_me:$LINENO: result: no" >&5
9732echo "${ECHO_T}no" >&6
9733 fi
9734
9735
9736 enablestring=
9737 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-joystick" >&5
9738echo $ECHO_N "checking for --${enablestring:-enable}-joystick... $ECHO_C" >&6
9739 no_cache=0
9740 # Check whether --enable-joystick or --disable-joystick was given.
9741if test "${enable_joystick+set}" = set; then
9742 enableval="$enable_joystick"
9743
9744 if test "$enableval" = yes; then
9745 ac_cv_use_joystick='wxUSE_JOYSTICK=yes'
9746 else
9747 ac_cv_use_joystick='wxUSE_JOYSTICK=no'
9748 fi
9749
9750else
9751
9752 LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}`
9753 if test "x$LINE" != x ; then
9754 eval "DEFAULT_$LINE"
9755 else
9756 no_cache=1
9757 fi
9758
9759 ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK
9760
9761fi;
9762
9763 eval "$ac_cv_use_joystick"
9764 if test "$no_cache" != 1; then
9765 echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp
9766 fi
9767
9768 if test "$wxUSE_JOYSTICK" = yes; then
9769 echo "$as_me:$LINENO: result: yes" >&5
9770echo "${ECHO_T}yes" >&6
9771 else
9772 echo "$as_me:$LINENO: result: no" >&5
9773echo "${ECHO_T}no" >&6
9774 fi
9775
9776
9777 enablestring=
9778 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5
9779echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6
9780 no_cache=0
9781 # Check whether --enable-metafile or --disable-metafile was given.
9782if test "${enable_metafile+set}" = set; then
9783 enableval="$enable_metafile"
9784
9785 if test "$enableval" = yes; then
9786 ac_cv_use_metafile='wxUSE_METAFILE=yes'
9787 else
9788 ac_cv_use_metafile='wxUSE_METAFILE=no'
9789 fi
9790
9791else
9792
9793 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
9794 if test "x$LINE" != x ; then
9795 eval "DEFAULT_$LINE"
9796 else
9797 no_cache=1
9798 fi
9799
9800 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
9801
9802fi;
9803
9804 eval "$ac_cv_use_metafile"
9805 if test "$no_cache" != 1; then
9806 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
9807 fi
9808
9809 if test "$wxUSE_METAFILE" = yes; then
9810 echo "$as_me:$LINENO: result: yes" >&5
9811echo "${ECHO_T}yes" >&6
9812 else
9813 echo "$as_me:$LINENO: result: no" >&5
9814echo "${ECHO_T}no" >&6
9815 fi
9816
9817
9818 enablestring=
9819 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dragimage" >&5
9820echo $ECHO_N "checking for --${enablestring:-enable}-dragimage... $ECHO_C" >&6
9821 no_cache=0
9822 # Check whether --enable-dragimage or --disable-dragimage was given.
9823if test "${enable_dragimage+set}" = set; then
9824 enableval="$enable_dragimage"
9825
9826 if test "$enableval" = yes; then
9827 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=yes'
9828 else
9829 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=no'
9830 fi
9831
9832else
9833
9834 LINE=`grep "wxUSE_DRAGIMAGE" ${wx_arg_cache_file}`
9835 if test "x$LINE" != x ; then
9836 eval "DEFAULT_$LINE"
9837 else
9838 no_cache=1
9839 fi
9840
9841 ac_cv_use_dragimage='wxUSE_DRAGIMAGE='$DEFAULT_wxUSE_DRAGIMAGE
9842
9843fi;
9844
9845 eval "$ac_cv_use_dragimage"
9846 if test "$no_cache" != 1; then
9847 echo $ac_cv_use_dragimage >> ${wx_arg_cache_file}.tmp
9848 fi
9849
9850 if test "$wxUSE_DRAGIMAGE" = yes; then
9851 echo "$as_me:$LINENO: result: yes" >&5
9852echo "${ECHO_T}yes" >&6
9853 else
9854 echo "$as_me:$LINENO: result: no" >&5
9855echo "${ECHO_T}no" >&6
9856 fi
9857
9858
9859 enablestring=
9860 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accessibility" >&5
9861echo $ECHO_N "checking for --${enablestring:-enable}-accessibility... $ECHO_C" >&6
9862 no_cache=0
9863 # Check whether --enable-accessibility or --disable-accessibility was given.
9864if test "${enable_accessibility+set}" = set; then
9865 enableval="$enable_accessibility"
9866
9867 if test "$enableval" = yes; then
9868 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=yes'
9869 else
9870 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=no'
9871 fi
9872
9873else
9874
9875 LINE=`grep "wxUSE_ACCESSIBILITY" ${wx_arg_cache_file}`
9876 if test "x$LINE" != x ; then
9877 eval "DEFAULT_$LINE"
9878 else
9879 no_cache=1
9880 fi
9881
9882 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY='$DEFAULT_wxUSE_ACCESSIBILITY
9883
9884fi;
9885
9886 eval "$ac_cv_use_accessibility"
9887 if test "$no_cache" != 1; then
9888 echo $ac_cv_use_accessibility >> ${wx_arg_cache_file}.tmp
9889 fi
9890
9891 if test "$wxUSE_ACCESSIBILITY" = yes; then
9892 echo "$as_me:$LINENO: result: yes" >&5
9893echo "${ECHO_T}yes" >&6
9894 else
9895 echo "$as_me:$LINENO: result: no" >&5
9896echo "${ECHO_T}no" >&6
9897 fi
9898
9899
9900
9901
9902 enablestring=
9903 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-palette" >&5
9904echo $ECHO_N "checking for --${enablestring:-enable}-palette... $ECHO_C" >&6
9905 no_cache=0
9906 # Check whether --enable-palette or --disable-palette was given.
9907if test "${enable_palette+set}" = set; then
9908 enableval="$enable_palette"
9909
9910 if test "$enableval" = yes; then
9911 ac_cv_use_palette='wxUSE_PALETTE=yes'
9912 else
9913 ac_cv_use_palette='wxUSE_PALETTE=no'
9914 fi
9915
9916else
9917
9918 LINE=`grep "wxUSE_PALETTE" ${wx_arg_cache_file}`
9919 if test "x$LINE" != x ; then
9920 eval "DEFAULT_$LINE"
9921 else
9922 no_cache=1
9923 fi
9924
9925 ac_cv_use_palette='wxUSE_PALETTE='$DEFAULT_wxUSE_PALETTE
9926
9927fi;
9928
9929 eval "$ac_cv_use_palette"
9930 if test "$no_cache" != 1; then
9931 echo $ac_cv_use_palette >> ${wx_arg_cache_file}.tmp
9932 fi
9933
9934 if test "$wxUSE_PALETTE" = yes; then
9935 echo "$as_me:$LINENO: result: yes" >&5
9936echo "${ECHO_T}yes" >&6
9937 else
9938 echo "$as_me:$LINENO: result: no" >&5
9939echo "${ECHO_T}no" >&6
9940 fi
9941
9942
9943 enablestring=
9944 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-image" >&5
9945echo $ECHO_N "checking for --${enablestring:-enable}-image... $ECHO_C" >&6
9946 no_cache=0
9947 # Check whether --enable-image or --disable-image was given.
9948if test "${enable_image+set}" = set; then
9949 enableval="$enable_image"
9950
9951 if test "$enableval" = yes; then
9952 ac_cv_use_image='wxUSE_IMAGE=yes'
9953 else
9954 ac_cv_use_image='wxUSE_IMAGE=no'
9955 fi
9956
9957else
9958
9959 LINE=`grep "wxUSE_IMAGE" ${wx_arg_cache_file}`
9960 if test "x$LINE" != x ; then
9961 eval "DEFAULT_$LINE"
9962 else
9963 no_cache=1
9964 fi
9965
9966 ac_cv_use_image='wxUSE_IMAGE='$DEFAULT_wxUSE_IMAGE
9967
9968fi;
9969
9970 eval "$ac_cv_use_image"
9971 if test "$no_cache" != 1; then
9972 echo $ac_cv_use_image >> ${wx_arg_cache_file}.tmp
9973 fi
9974
9975 if test "$wxUSE_IMAGE" = yes; then
9976 echo "$as_me:$LINENO: result: yes" >&5
9977echo "${ECHO_T}yes" >&6
9978 else
9979 echo "$as_me:$LINENO: result: no" >&5
9980echo "${ECHO_T}no" >&6
9981 fi
9982
9983
9984 enablestring=
9985 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gif" >&5
9986echo $ECHO_N "checking for --${enablestring:-enable}-gif... $ECHO_C" >&6
9987 no_cache=0
9988 # Check whether --enable-gif or --disable-gif was given.
9989if test "${enable_gif+set}" = set; then
9990 enableval="$enable_gif"
9991
9992 if test "$enableval" = yes; then
9993 ac_cv_use_gif='wxUSE_GIF=yes'
9994 else
9995 ac_cv_use_gif='wxUSE_GIF=no'
9996 fi
9997
9998else
9999
10000 LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}`
10001 if test "x$LINE" != x ; then
10002 eval "DEFAULT_$LINE"
10003 else
10004 no_cache=1
10005 fi
10006
10007 ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF
10008
10009fi;
10010
10011 eval "$ac_cv_use_gif"
10012 if test "$no_cache" != 1; then
10013 echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp
10014 fi
10015
10016 if test "$wxUSE_GIF" = yes; then
10017 echo "$as_me:$LINENO: result: yes" >&5
10018echo "${ECHO_T}yes" >&6
10019 else
10020 echo "$as_me:$LINENO: result: no" >&5
10021echo "${ECHO_T}no" >&6
10022 fi
10023
10024
10025 enablestring=
10026 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pcx" >&5
10027echo $ECHO_N "checking for --${enablestring:-enable}-pcx... $ECHO_C" >&6
10028 no_cache=0
10029 # Check whether --enable-pcx or --disable-pcx was given.
10030if test "${enable_pcx+set}" = set; then
10031 enableval="$enable_pcx"
10032
10033 if test "$enableval" = yes; then
10034 ac_cv_use_pcx='wxUSE_PCX=yes'
10035 else
10036 ac_cv_use_pcx='wxUSE_PCX=no'
10037 fi
10038
10039else
10040
10041 LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}`
10042 if test "x$LINE" != x ; then
10043 eval "DEFAULT_$LINE"
10044 else
10045 no_cache=1
10046 fi
10047
10048 ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX
10049
10050fi;
10051
10052 eval "$ac_cv_use_pcx"
10053 if test "$no_cache" != 1; then
10054 echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp
10055 fi
10056
10057 if test "$wxUSE_PCX" = yes; then
10058 echo "$as_me:$LINENO: result: yes" >&5
10059echo "${ECHO_T}yes" >&6
10060 else
10061 echo "$as_me:$LINENO: result: no" >&5
10062echo "${ECHO_T}no" >&6
10063 fi
10064
10065
10066 enablestring=
10067 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-iff" >&5
10068echo $ECHO_N "checking for --${enablestring:-enable}-iff... $ECHO_C" >&6
10069 no_cache=0
10070 # Check whether --enable-iff or --disable-iff was given.
10071if test "${enable_iff+set}" = set; then
10072 enableval="$enable_iff"
10073
10074 if test "$enableval" = yes; then
10075 ac_cv_use_iff='wxUSE_IFF=yes'
10076 else
10077 ac_cv_use_iff='wxUSE_IFF=no'
10078 fi
10079
10080else
10081
10082 LINE=`grep "wxUSE_IFF" ${wx_arg_cache_file}`
10083 if test "x$LINE" != x ; then
10084 eval "DEFAULT_$LINE"
10085 else
10086 no_cache=1
10087 fi
10088
10089 ac_cv_use_iff='wxUSE_IFF='$DEFAULT_wxUSE_IFF
10090
10091fi;
10092
10093 eval "$ac_cv_use_iff"
10094 if test "$no_cache" != 1; then
10095 echo $ac_cv_use_iff >> ${wx_arg_cache_file}.tmp
10096 fi
10097
10098 if test "$wxUSE_IFF" = yes; then
10099 echo "$as_me:$LINENO: result: yes" >&5
10100echo "${ECHO_T}yes" >&6
10101 else
10102 echo "$as_me:$LINENO: result: no" >&5
10103echo "${ECHO_T}no" >&6
10104 fi
10105
10106
10107 enablestring=
10108 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pnm" >&5
10109echo $ECHO_N "checking for --${enablestring:-enable}-pnm... $ECHO_C" >&6
10110 no_cache=0
10111 # Check whether --enable-pnm or --disable-pnm was given.
10112if test "${enable_pnm+set}" = set; then
10113 enableval="$enable_pnm"
10114
10115 if test "$enableval" = yes; then
10116 ac_cv_use_pnm='wxUSE_PNM=yes'
10117 else
10118 ac_cv_use_pnm='wxUSE_PNM=no'
10119 fi
10120
10121else
10122
10123 LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}`
10124 if test "x$LINE" != x ; then
10125 eval "DEFAULT_$LINE"
10126 else
10127 no_cache=1
10128 fi
10129
10130 ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM
10131
10132fi;
10133
10134 eval "$ac_cv_use_pnm"
10135 if test "$no_cache" != 1; then
10136 echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp
10137 fi
10138
10139 if test "$wxUSE_PNM" = yes; then
10140 echo "$as_me:$LINENO: result: yes" >&5
10141echo "${ECHO_T}yes" >&6
10142 else
10143 echo "$as_me:$LINENO: result: no" >&5
10144echo "${ECHO_T}no" >&6
10145 fi
10146
10147
10148 enablestring=
10149 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xpm" >&5
10150echo $ECHO_N "checking for --${enablestring:-enable}-xpm... $ECHO_C" >&6
10151 no_cache=0
10152 # Check whether --enable-xpm or --disable-xpm was given.
10153if test "${enable_xpm+set}" = set; then
10154 enableval="$enable_xpm"
10155
10156 if test "$enableval" = yes; then
10157 ac_cv_use_xpm='wxUSE_XPM=yes'
10158 else
10159 ac_cv_use_xpm='wxUSE_XPM=no'
10160 fi
10161
10162else
10163
10164 LINE=`grep "wxUSE_XPM" ${wx_arg_cache_file}`
10165 if test "x$LINE" != x ; then
10166 eval "DEFAULT_$LINE"
10167 else
10168 no_cache=1
10169 fi
10170
10171 ac_cv_use_xpm='wxUSE_XPM='$DEFAULT_wxUSE_XPM
10172
10173fi;
10174
10175 eval "$ac_cv_use_xpm"
10176 if test "$no_cache" != 1; then
10177 echo $ac_cv_use_xpm >> ${wx_arg_cache_file}.tmp
10178 fi
10179
10180 if test "$wxUSE_XPM" = yes; then
10181 echo "$as_me:$LINENO: result: yes" >&5
10182echo "${ECHO_T}yes" >&6
10183 else
10184 echo "$as_me:$LINENO: result: no" >&5
10185echo "${ECHO_T}no" >&6
10186 fi
10187
10188
10189 enablestring=
10190 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ico_cur" >&5
10191echo $ECHO_N "checking for --${enablestring:-enable}-ico_cur... $ECHO_C" >&6
10192 no_cache=0
10193 # Check whether --enable-ico_cur or --disable-ico_cur was given.
10194if test "${enable_ico_cur+set}" = set; then
10195 enableval="$enable_ico_cur"
10196
10197 if test "$enableval" = yes; then
10198 ac_cv_use_ico_cur='wxUSE_ICO_CUR=yes'
10199 else
10200 ac_cv_use_ico_cur='wxUSE_ICO_CUR=no'
10201 fi
10202
10203else
10204
10205 LINE=`grep "wxUSE_ICO_CUR" ${wx_arg_cache_file}`
10206 if test "x$LINE" != x ; then
10207 eval "DEFAULT_$LINE"
10208 else
10209 no_cache=1
10210 fi
10211
10212 ac_cv_use_ico_cur='wxUSE_ICO_CUR='$DEFAULT_wxUSE_ICO_CUR
10213
10214fi;
10215
10216 eval "$ac_cv_use_ico_cur"
10217 if test "$no_cache" != 1; then
10218 echo $ac_cv_use_ico_cur >> ${wx_arg_cache_file}.tmp
10219 fi
10220
10221 if test "$wxUSE_ICO_CUR" = yes; then
10222 echo "$as_me:$LINENO: result: yes" >&5
10223echo "${ECHO_T}yes" >&6
10224 else
10225 echo "$as_me:$LINENO: result: no" >&5
10226echo "${ECHO_T}no" >&6
10227 fi
10228
10229
10230fi
10231
10232
10233
ceec2216
RL
10234# Check whether --with-flavour or --without-flavour was given.
10235if test "${with_flavour+set}" = set; then
10236 withval="$with_flavour"
10237 WX_FLAVOUR="$withval"
10238fi;
10239
10240
10241
a848cd7e
SC
10242 enablestring=
10243 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-official_build" >&5
10244echo $ECHO_N "checking for --${enablestring:-enable}-official_build... $ECHO_C" >&6
10245 no_cache=0
10246 # Check whether --enable-official_build or --disable-official_build was given.
10247if test "${enable_official_build+set}" = set; then
10248 enableval="$enable_official_build"
10249
10250 if test "$enableval" = yes; then
10251 ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD=yes'
10252 else
10253 ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD=no'
10254 fi
10255
10256else
10257
10258 LINE=`grep "wxUSE_OFFICIAL_BUILD" ${wx_arg_cache_file}`
10259 if test "x$LINE" != x ; then
10260 eval "DEFAULT_$LINE"
10261 else
10262 no_cache=1
10263 fi
10264
10265 ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD='$DEFAULT_wxUSE_OFFICIAL_BUILD
10266
10267fi;
10268
10269 eval "$ac_cv_use_official_build"
10270 if test "$no_cache" != 1; then
10271 echo $ac_cv_use_official_build >> ${wx_arg_cache_file}.tmp
10272 fi
10273
10274 if test "$wxUSE_OFFICIAL_BUILD" = yes; then
10275 echo "$as_me:$LINENO: result: yes" >&5
10276echo "${ECHO_T}yes" >&6
10277 else
10278 echo "$as_me:$LINENO: result: no" >&5
10279echo "${ECHO_T}no" >&6
10280 fi
10281
10282# Check whether --enable-vendor or --disable-vendor was given.
10283if test "${enable_vendor+set}" = set; then
10284 enableval="$enable_vendor"
10285 VENDOR="$enableval"
10286fi;
10287if test "x$VENDOR" = "x"; then
10288 VENDOR="custom"
10289fi
10290
a848cd7e
SC
10291
10292
10293
10294 echo "saving argument cache $wx_arg_cache_file"
10295 mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file}
10296
10297
10298
10299echo "$as_me:$LINENO: checking for toolkit" >&5
10300echo $ECHO_N "checking for toolkit... $ECHO_C" >&6
10301
10302# In Wine, we need to default to MSW, not GTK or MOTIF
10303if test "$wxUSE_WINE" = "yes"; then
10304 DEFAULT_DEFAULT_wxUSE_GTK=0
10305 DEFAULT_DEFAULT_wxUSE_MOTIF=0
10306 DEFAULT_DEFAULT_wxUSE_MSW=1
10307 wxUSE_SHARED=no
10308fi
10309
10310if test "$wxUSE_GUI" = "yes"; then
10311
10312 if test "$USE_BEOS" = 1; then
10313 { { echo "$as_me:$LINENO: error: BeOS GUI is not supported yet, use --disable-gui" >&5
10314echo "$as_me: error: BeOS GUI is not supported yet, use --disable-gui" >&2;}
10315 { (exit 1); exit 1; }; }
10316 fi
10317
10318 if test "$TOOLKIT_GIVEN" = 1; then
10319 for toolkit in `echo $ALL_TOOLKITS`; do
10320 var=wxUSE_$toolkit
10321 eval "value=\$${var}"
10322 eval "$var=`echo \$value | sed -e "s/yes/1/" -e "s/no/0/"`"
10323 done
10324 else
10325 for toolkit in `echo $ALL_TOOLKITS`; do
10326 if test "$has_toolkit_in_cache" != 1; then
10327 var=DEFAULT_DEFAULT_wxUSE_$toolkit
10328 else
10329 var=DEFAULT_wxUSE_$toolkit
10330 fi
10331 eval "wxUSE_$toolkit=\$${var}"
10332 done
10333 fi
10334
10335 NUM_TOOLKITS=`expr ${wxUSE_COCOA:-0} + ${wxUSE_GTK:-0} + ${wxUSE_MAC:-0} \
10336 + ${wxUSE_MGL:-0} + ${wxUSE_MICROWIN:-0} \
10337 + ${wxUSE_MOTIF:-0} + ${wxUSE_MSW:-0} + ${wxUSE_X11:-0}`
10338
10339 case "${host}" in
10340 *-pc-os2_emx | *-pc-os2-emx )
10341 NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}`
10342 esac
10343
10344 case "$NUM_TOOLKITS" in
10345 1)
10346 ;;
10347 0)
10348 { { echo "$as_me:$LINENO: error: Please specify a toolkit -- cannot determine the default for ${host}" >&5
10349echo "$as_me: error: Please specify a toolkit -- cannot determine the default for ${host}" >&2;}
10350 { (exit 1); exit 1; }; }
10351 ;;
10352 *)
10353 { { echo "$as_me:$LINENO: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&5
10354echo "$as_me: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&2;}
10355 { (exit 1); exit 1; }; }
10356 esac
10357
10358 for toolkit in `echo $ALL_TOOLKITS`; do
10359 var=wxUSE_$toolkit
10360 eval "value=\$${var}"
10361 if test "x$value" != x; then
10362 cache_var=CACHE_$toolkit
10363 eval "cache=\$${cache_var}"
10364 if test "$cache" = 1; then
10365 echo "$var=$value" >> ${wx_arg_cache_file}
10366 fi
10367 if test "$value" = 1; then
10368 toolkit_echo=`echo $toolkit | tr "[A-Z]" "[a-z]"`
10369 echo "$as_me:$LINENO: result: $toolkit_echo" >&5
10370echo "${ECHO_T}$toolkit_echo" >&6
10371 fi
10372 fi
10373 done
10374else
10375 if test "x$host_alias" != "x"; then
10376 echo "$as_me:$LINENO: result: base ($host_alias hosted) only" >&5
10377echo "${ECHO_T}base ($host_alias hosted) only" >&6
10378 else
10379 echo "$as_me:$LINENO: result: base only" >&5
10380echo "${ECHO_T}base only" >&6
10381 fi
10382fi
10383
10384wants_win32=0
10385doesnt_want_win32=0
10386case "${host}" in
10387 *-*-cygwin*)
10388 if test "$wxUSE_MSW" = 1 ; then
10389 wants_win32=1
10390 else
10391 doesnt_want_win32=1
10392 fi
10393 ;;
10394 *-*-mingw*)
10395 wants_win32=1
10396 ;;
10397esac
10398
10399if test "$wxUSE_WINE" = "yes"; then
10400 wants_win32=1
10401 CC=winegcc
10402 CXX=wineg++
10403 RESCOMP=wrc
10404 LDFLAGS_GUI="-mwindows"
10405fi
10406
10407if test "$wants_win32" = 1 ; then
10408 USE_UNIX=0
10409 USE_WIN32=1
10410 cat >>confdefs.h <<\_ACEOF
10411#define __WIN32__ 1
10412_ACEOF
10413
10414 cat >>confdefs.h <<\_ACEOF
10415#define __WIN95__ 1
10416_ACEOF
10417
10418 cat >>confdefs.h <<\_ACEOF
10419#define __WINDOWS__ 1
10420_ACEOF
10421
10422 cat >>confdefs.h <<\_ACEOF
10423#define __GNUWIN32__ 1
10424_ACEOF
10425
10426 cat >>confdefs.h <<\_ACEOF
10427#define STRICT 1
10428_ACEOF
10429
10430 cat >>confdefs.h <<\_ACEOF
10431#define WINVER 0x0400
10432_ACEOF
10433
10434fi
10435if test "$doesnt_want_win32" = 1 ; then
10436 USE_UNIX=1
10437 USE_WIN32=0
10438fi
10439
10440if test "$USE_UNIX" = 1 ; then
10441 wxUSE_UNIX=yes
10442 cat >>confdefs.h <<\_ACEOF
10443#define __UNIX__ 1
10444_ACEOF
10445
10446fi
10447
10448
10449cat >confcache <<\_ACEOF
10450# This file is a shell script that caches the results of configure
10451# tests run on this system so they can be shared between configure
10452# scripts and configure runs, see configure's option --config-cache.
10453# It is not useful on other systems. If it contains results you don't
10454# want to keep, you may remove or edit it.
10455#
10456# config.status only pays attention to the cache file if you give it
10457# the --recheck option to rerun configure.
10458#
10459# `ac_cv_env_foo' variables (set or unset) will be overridden when
10460# loading this file, other *unset* `ac_cv_foo' will be assigned the
10461# following values.
10462
10463_ACEOF
10464
10465# The following way of writing the cache mishandles newlines in values,
10466# but we know of no workaround that is simple, portable, and efficient.
10467# So, don't put newlines in cache variables' values.
10468# Ultrix sh set writes to stderr and can't be redirected directly,
10469# and sets the high bit in the cache file unless we assign to the vars.
10470{
10471 (set) 2>&1 |
10472 case `(ac_space=' '; set | grep ac_space) 2>&1` in
10473 *ac_space=\ *)
10474 # `set' does not quote correctly, so add quotes (double-quote
10475 # substitution turns \\\\ into \\, and sed turns \\ into \).
10476 sed -n \
ac1cb8d3
VS
10477 "s/'/'\\\\''/g;
10478 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a848cd7e
SC
10479 ;;
10480 *)
10481 # `set' quotes correctly as required by POSIX, so do not add quotes.
10482 sed -n \
ac1cb8d3 10483 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
10484 ;;
10485 esac;
10486} |
10487 sed '
10488 t clear
10489 : clear
10490 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10491 t end
10492 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10493 : end' >>confcache
10494if diff $cache_file confcache >/dev/null 2>&1; then :; else
10495 if test -w $cache_file; then
10496 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
10497 cat confcache >$cache_file
10498 else
10499 echo "not updating unwritable cache $cache_file"
10500 fi
10501fi
10502rm -f confcache
10503
10504if test "$build" != "$host" ; then
1e9e8aba 10505 if test "$USE_WIN32" = 1 -o "$USE_DOS" = 1 -o "$USE_UNIX" = 1; then
a848cd7e
SC
10506 CC=$host_alias-gcc
10507 CXX=$host_alias-c++
10508 AR=$host_alias-ar
10509 RANLIB=$host_alias-ranlib
10510 DLLTOOL=$host_alias-dlltool
10511 RESCOMP=$host_alias-windres
a848cd7e 10512 STRIP=$host_alias-strip
1e9e8aba
DE
10513 elif test "x$CC" '!=' "x"; then
10514 echo "You set CC, I assume you know what you are doing."
a848cd7e
SC
10515 else
10516 { { echo "$as_me:$LINENO: error: $build_alias -> $host_alias cross compilation not supported yet." >&5
10517echo "$as_me: error: $build_alias -> $host_alias cross compilation not supported yet." >&2;}
10518 { (exit 1); exit 1; }; }
10519 fi
10520fi
10521
10522CFLAGS=${CFLAGS:=}
10523ac_ext=c
10524ac_cpp='$CPP $CPPFLAGS'
10525ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10526ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10527ac_compiler_gnu=$ac_cv_c_compiler_gnu
10528if test -n "$ac_tool_prefix"; then
10529 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
10530set dummy ${ac_tool_prefix}gcc; ac_word=$2
10531echo "$as_me:$LINENO: checking for $ac_word" >&5
10532echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10533if test "${ac_cv_prog_CC+set}" = set; then
10534 echo $ECHO_N "(cached) $ECHO_C" >&6
10535else
10536 if test -n "$CC"; then
10537 ac_cv_prog_CC="$CC" # Let the user override the test.
10538else
10539as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10540for as_dir in $PATH
10541do
10542 IFS=$as_save_IFS
10543 test -z "$as_dir" && as_dir=.
10544 for ac_exec_ext in '' $ac_executable_extensions; do
10545 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10546 ac_cv_prog_CC="${ac_tool_prefix}gcc"
10547 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10548 break 2
10549 fi
10550done
10551done
10552
10553fi
10554fi
10555CC=$ac_cv_prog_CC
10556if test -n "$CC"; then
10557 echo "$as_me:$LINENO: result: $CC" >&5
10558echo "${ECHO_T}$CC" >&6
10559else
10560 echo "$as_me:$LINENO: result: no" >&5
10561echo "${ECHO_T}no" >&6
10562fi
10563
10564fi
10565if test -z "$ac_cv_prog_CC"; then
10566 ac_ct_CC=$CC
10567 # Extract the first word of "gcc", so it can be a program name with args.
10568set dummy gcc; ac_word=$2
10569echo "$as_me:$LINENO: checking for $ac_word" >&5
10570echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10571if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
10572 echo $ECHO_N "(cached) $ECHO_C" >&6
10573else
10574 if test -n "$ac_ct_CC"; then
10575 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
10576else
10577as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10578for as_dir in $PATH
10579do
10580 IFS=$as_save_IFS
10581 test -z "$as_dir" && as_dir=.
10582 for ac_exec_ext in '' $ac_executable_extensions; do
10583 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10584 ac_cv_prog_ac_ct_CC="gcc"
10585 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10586 break 2
10587 fi
10588done
10589done
10590
10591fi
10592fi
10593ac_ct_CC=$ac_cv_prog_ac_ct_CC
10594if test -n "$ac_ct_CC"; then
10595 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
10596echo "${ECHO_T}$ac_ct_CC" >&6
10597else
10598 echo "$as_me:$LINENO: result: no" >&5
10599echo "${ECHO_T}no" >&6
10600fi
10601
10602 CC=$ac_ct_CC
10603else
10604 CC="$ac_cv_prog_CC"
10605fi
10606
10607if test -z "$CC"; then
10608 if test -n "$ac_tool_prefix"; then
10609 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
10610set dummy ${ac_tool_prefix}cc; ac_word=$2
10611echo "$as_me:$LINENO: checking for $ac_word" >&5
10612echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10613if test "${ac_cv_prog_CC+set}" = set; then
10614 echo $ECHO_N "(cached) $ECHO_C" >&6
10615else
10616 if test -n "$CC"; then
10617 ac_cv_prog_CC="$CC" # Let the user override the test.
10618else
10619as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10620for as_dir in $PATH
10621do
10622 IFS=$as_save_IFS
10623 test -z "$as_dir" && as_dir=.
10624 for ac_exec_ext in '' $ac_executable_extensions; do
10625 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10626 ac_cv_prog_CC="${ac_tool_prefix}cc"
10627 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10628 break 2
10629 fi
10630done
10631done
10632
10633fi
10634fi
10635CC=$ac_cv_prog_CC
10636if test -n "$CC"; then
10637 echo "$as_me:$LINENO: result: $CC" >&5
10638echo "${ECHO_T}$CC" >&6
10639else
10640 echo "$as_me:$LINENO: result: no" >&5
10641echo "${ECHO_T}no" >&6
10642fi
10643
10644fi
10645if test -z "$ac_cv_prog_CC"; then
10646 ac_ct_CC=$CC
10647 # Extract the first word of "cc", so it can be a program name with args.
10648set dummy cc; ac_word=$2
10649echo "$as_me:$LINENO: checking for $ac_word" >&5
10650echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10651if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
10652 echo $ECHO_N "(cached) $ECHO_C" >&6
10653else
10654 if test -n "$ac_ct_CC"; then
10655 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
10656else
10657as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10658for as_dir in $PATH
10659do
10660 IFS=$as_save_IFS
10661 test -z "$as_dir" && as_dir=.
10662 for ac_exec_ext in '' $ac_executable_extensions; do
10663 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10664 ac_cv_prog_ac_ct_CC="cc"
10665 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10666 break 2
10667 fi
10668done
10669done
10670
10671fi
10672fi
10673ac_ct_CC=$ac_cv_prog_ac_ct_CC
10674if test -n "$ac_ct_CC"; then
10675 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
10676echo "${ECHO_T}$ac_ct_CC" >&6
10677else
10678 echo "$as_me:$LINENO: result: no" >&5
10679echo "${ECHO_T}no" >&6
10680fi
10681
10682 CC=$ac_ct_CC
10683else
10684 CC="$ac_cv_prog_CC"
10685fi
10686
10687fi
10688if test -z "$CC"; then
10689 # Extract the first word of "cc", so it can be a program name with args.
10690set dummy cc; ac_word=$2
10691echo "$as_me:$LINENO: checking for $ac_word" >&5
10692echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10693if test "${ac_cv_prog_CC+set}" = set; then
10694 echo $ECHO_N "(cached) $ECHO_C" >&6
10695else
10696 if test -n "$CC"; then
10697 ac_cv_prog_CC="$CC" # Let the user override the test.
10698else
10699 ac_prog_rejected=no
10700as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10701for as_dir in $PATH
10702do
10703 IFS=$as_save_IFS
10704 test -z "$as_dir" && as_dir=.
10705 for ac_exec_ext in '' $ac_executable_extensions; do
10706 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10707 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
10708 ac_prog_rejected=yes
10709 continue
10710 fi
10711 ac_cv_prog_CC="cc"
10712 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10713 break 2
10714 fi
10715done
10716done
10717
10718if test $ac_prog_rejected = yes; then
10719 # We found a bogon in the path, so make sure we never use it.
10720 set dummy $ac_cv_prog_CC
10721 shift
10722 if test $# != 0; then
10723 # We chose a different compiler from the bogus one.
10724 # However, it has the same basename, so the bogon will be chosen
10725 # first if we set CC to just the basename; use the full file name.
10726 shift
10727 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
10728 fi
10729fi
10730fi
10731fi
10732CC=$ac_cv_prog_CC
10733if test -n "$CC"; then
10734 echo "$as_me:$LINENO: result: $CC" >&5
10735echo "${ECHO_T}$CC" >&6
10736else
10737 echo "$as_me:$LINENO: result: no" >&5
10738echo "${ECHO_T}no" >&6
10739fi
10740
10741fi
10742if test -z "$CC"; then
10743 if test -n "$ac_tool_prefix"; then
10744 for ac_prog in cl
10745 do
10746 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10747set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10748echo "$as_me:$LINENO: checking for $ac_word" >&5
10749echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10750if test "${ac_cv_prog_CC+set}" = set; then
10751 echo $ECHO_N "(cached) $ECHO_C" >&6
10752else
10753 if test -n "$CC"; then
10754 ac_cv_prog_CC="$CC" # Let the user override the test.
10755else
10756as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10757for as_dir in $PATH
10758do
10759 IFS=$as_save_IFS
10760 test -z "$as_dir" && as_dir=.
10761 for ac_exec_ext in '' $ac_executable_extensions; do
10762 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10763 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
10764 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10765 break 2
10766 fi
10767done
10768done
10769
10770fi
10771fi
10772CC=$ac_cv_prog_CC
10773if test -n "$CC"; then
10774 echo "$as_me:$LINENO: result: $CC" >&5
10775echo "${ECHO_T}$CC" >&6
10776else
10777 echo "$as_me:$LINENO: result: no" >&5
10778echo "${ECHO_T}no" >&6
10779fi
10780
10781 test -n "$CC" && break
10782 done
10783fi
10784if test -z "$CC"; then
10785 ac_ct_CC=$CC
10786 for ac_prog in cl
10787do
10788 # Extract the first word of "$ac_prog", so it can be a program name with args.
10789set dummy $ac_prog; ac_word=$2
10790echo "$as_me:$LINENO: checking for $ac_word" >&5
10791echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10792if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
10793 echo $ECHO_N "(cached) $ECHO_C" >&6
10794else
10795 if test -n "$ac_ct_CC"; then
10796 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
10797else
10798as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10799for as_dir in $PATH
10800do
10801 IFS=$as_save_IFS
10802 test -z "$as_dir" && as_dir=.
10803 for ac_exec_ext in '' $ac_executable_extensions; do
10804 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10805 ac_cv_prog_ac_ct_CC="$ac_prog"
10806 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10807 break 2
10808 fi
10809done
10810done
10811
10812fi
10813fi
10814ac_ct_CC=$ac_cv_prog_ac_ct_CC
10815if test -n "$ac_ct_CC"; then
10816 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
10817echo "${ECHO_T}$ac_ct_CC" >&6
10818else
10819 echo "$as_me:$LINENO: result: no" >&5
10820echo "${ECHO_T}no" >&6
10821fi
10822
10823 test -n "$ac_ct_CC" && break
10824done
10825
10826 CC=$ac_ct_CC
10827fi
10828
10829fi
10830
10831
10832test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
10833See \`config.log' for more details." >&5
10834echo "$as_me: error: no acceptable C compiler found in \$PATH
10835See \`config.log' for more details." >&2;}
10836 { (exit 1); exit 1; }; }
10837
10838# Provide some information about the compiler.
10839echo "$as_me:$LINENO:" \
10840 "checking for C compiler version" >&5
10841ac_compiler=`set X $ac_compile; echo $2`
10842{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
10843 (eval $ac_compiler --version </dev/null >&5) 2>&5
10844 ac_status=$?
10845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10846 (exit $ac_status); }
10847{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
10848 (eval $ac_compiler -v </dev/null >&5) 2>&5
10849 ac_status=$?
10850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10851 (exit $ac_status); }
10852{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
10853 (eval $ac_compiler -V </dev/null >&5) 2>&5
10854 ac_status=$?
10855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10856 (exit $ac_status); }
10857
10858cat >conftest.$ac_ext <<_ACEOF
10859/* confdefs.h. */
10860_ACEOF
10861cat confdefs.h >>conftest.$ac_ext
10862cat >>conftest.$ac_ext <<_ACEOF
10863/* end confdefs.h. */
10864
10865int
10866main ()
10867{
10868
10869 ;
10870 return 0;
10871}
10872_ACEOF
10873ac_clean_files_save=$ac_clean_files
10874ac_clean_files="$ac_clean_files a.out a.exe b.out"
10875# Try to create an executable without -o first, disregard a.out.
10876# It will help us diagnose broken compilers, and finding out an intuition
10877# of exeext.
ac1cb8d3
VS
10878echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
10879echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
a848cd7e
SC
10880ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
10881if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
10882 (eval $ac_link_default) 2>&5
10883 ac_status=$?
10884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10885 (exit $ac_status); }; then
10886 # Find the output, starting from the most likely. This scheme is
10887# not robust to junk in `.', hence go to wildcards (a.*) only as a last
10888# resort.
10889
10890# Be careful to initialize this variable, since it used to be cached.
10891# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
10892ac_cv_exeext=
10893# b.out is created by i960 compilers.
10894for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
10895do
10896 test -f "$ac_file" || continue
10897 case $ac_file in
10898 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
ac1cb8d3 10899 ;;
a848cd7e 10900 conftest.$ac_ext )
ac1cb8d3
VS
10901 # This is the source file.
10902 ;;
a848cd7e 10903 [ab].out )
ac1cb8d3
VS
10904 # We found the default executable, but exeext='' is most
10905 # certainly right.
10906 break;;
a848cd7e 10907 *.* )
ac1cb8d3
VS
10908 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
10909 # FIXME: I believe we export ac_cv_exeext for Libtool,
10910 # but it would be cool to find out if it's true. Does anybody
10911 # maintain Libtool? --akim.
10912 export ac_cv_exeext
10913 break;;
a848cd7e 10914 * )
ac1cb8d3 10915 break;;
a848cd7e
SC
10916 esac
10917done
10918else
10919 echo "$as_me: failed program was:" >&5
10920sed 's/^/| /' conftest.$ac_ext >&5
10921
10922{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
10923See \`config.log' for more details." >&5
10924echo "$as_me: error: C compiler cannot create executables
10925See \`config.log' for more details." >&2;}
10926 { (exit 77); exit 77; }; }
10927fi
10928
10929ac_exeext=$ac_cv_exeext
10930echo "$as_me:$LINENO: result: $ac_file" >&5
10931echo "${ECHO_T}$ac_file" >&6
10932
10933# Check the compiler produces executables we can run. If not, either
10934# the compiler is broken, or we cross compile.
10935echo "$as_me:$LINENO: checking whether the C compiler works" >&5
10936echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
10937# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
10938# If not cross compiling, check that we can run a simple program.
10939if test "$cross_compiling" != yes; then
10940 if { ac_try='./$ac_file'
10941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10942 (eval $ac_try) 2>&5
10943 ac_status=$?
10944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10945 (exit $ac_status); }; }; then
10946 cross_compiling=no
10947 else
10948 if test "$cross_compiling" = maybe; then
10949 cross_compiling=yes
10950 else
10951 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
10952If you meant to cross compile, use \`--host'.
10953See \`config.log' for more details." >&5
10954echo "$as_me: error: cannot run C compiled programs.
10955If you meant to cross compile, use \`--host'.
10956See \`config.log' for more details." >&2;}
10957 { (exit 1); exit 1; }; }
10958 fi
10959 fi
10960fi
10961echo "$as_me:$LINENO: result: yes" >&5
10962echo "${ECHO_T}yes" >&6
10963
10964rm -f a.out a.exe conftest$ac_cv_exeext b.out
10965ac_clean_files=$ac_clean_files_save
10966# Check the compiler produces executables we can run. If not, either
10967# the compiler is broken, or we cross compile.
10968echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
10969echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
10970echo "$as_me:$LINENO: result: $cross_compiling" >&5
10971echo "${ECHO_T}$cross_compiling" >&6
10972
10973echo "$as_me:$LINENO: checking for suffix of executables" >&5
10974echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
10975if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10976 (eval $ac_link) 2>&5
10977 ac_status=$?
10978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10979 (exit $ac_status); }; then
10980 # If both `conftest.exe' and `conftest' are `present' (well, observable)
10981# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
10982# work properly (i.e., refer to `conftest.exe'), while it won't with
10983# `rm'.
10984for ac_file in conftest.exe conftest conftest.*; do
10985 test -f "$ac_file" || continue
10986 case $ac_file in
10987 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
10988 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
ac1cb8d3
VS
10989 export ac_cv_exeext
10990 break;;
a848cd7e
SC
10991 * ) break;;
10992 esac
10993done
10994else
10995 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
10996See \`config.log' for more details." >&5
10997echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
10998See \`config.log' for more details." >&2;}
10999 { (exit 1); exit 1; }; }
11000fi
11001
11002rm -f conftest$ac_cv_exeext
11003echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
11004echo "${ECHO_T}$ac_cv_exeext" >&6
11005
11006rm -f conftest.$ac_ext
11007EXEEXT=$ac_cv_exeext
11008ac_exeext=$EXEEXT
11009echo "$as_me:$LINENO: checking for suffix of object files" >&5
11010echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
11011if test "${ac_cv_objext+set}" = set; then
11012 echo $ECHO_N "(cached) $ECHO_C" >&6
11013else
11014 cat >conftest.$ac_ext <<_ACEOF
11015/* confdefs.h. */
11016_ACEOF
11017cat confdefs.h >>conftest.$ac_ext
11018cat >>conftest.$ac_ext <<_ACEOF
11019/* end confdefs.h. */
11020
11021int
11022main ()
11023{
11024
11025 ;
11026 return 0;
11027}
11028_ACEOF
11029rm -f conftest.o conftest.obj
11030if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11031 (eval $ac_compile) 2>&5
11032 ac_status=$?
11033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11034 (exit $ac_status); }; then
11035 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
11036 case $ac_file in
11037 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
11038 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
11039 break;;
11040 esac
11041done
11042else
11043 echo "$as_me: failed program was:" >&5
11044sed 's/^/| /' conftest.$ac_ext >&5
11045
11046{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
11047See \`config.log' for more details." >&5
11048echo "$as_me: error: cannot compute suffix of object files: cannot compile
11049See \`config.log' for more details." >&2;}
11050 { (exit 1); exit 1; }; }
11051fi
11052
11053rm -f conftest.$ac_cv_objext conftest.$ac_ext
11054fi
11055echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
11056echo "${ECHO_T}$ac_cv_objext" >&6
11057OBJEXT=$ac_cv_objext
11058ac_objext=$OBJEXT
11059echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
11060echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
11061if test "${ac_cv_c_compiler_gnu+set}" = set; then
11062 echo $ECHO_N "(cached) $ECHO_C" >&6
11063else
11064 cat >conftest.$ac_ext <<_ACEOF
11065/* confdefs.h. */
11066_ACEOF
11067cat confdefs.h >>conftest.$ac_ext
11068cat >>conftest.$ac_ext <<_ACEOF
11069/* end confdefs.h. */
11070
11071int
11072main ()
11073{
11074#ifndef __GNUC__
11075 choke me
11076#endif
11077
11078 ;
11079 return 0;
11080}
11081_ACEOF
11082rm -f conftest.$ac_objext
11083if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11084 (eval $ac_compile) 2>conftest.er1
a848cd7e 11085 ac_status=$?
ac1cb8d3
VS
11086 grep -v '^ *+' conftest.er1 >conftest.err
11087 rm -f conftest.er1
11088 cat conftest.err >&5
a848cd7e
SC
11089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11090 (exit $ac_status); } &&
89be85c2
VS
11091 { ac_try='test -z "$ac_c_werror_flag"
11092 || test ! -s conftest.err'
ac1cb8d3
VS
11093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11094 (eval $ac_try) 2>&5
11095 ac_status=$?
11096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11097 (exit $ac_status); }; } &&
11098 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11100 (eval $ac_try) 2>&5
11101 ac_status=$?
11102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11103 (exit $ac_status); }; }; then
11104 ac_compiler_gnu=yes
11105else
11106 echo "$as_me: failed program was:" >&5
11107sed 's/^/| /' conftest.$ac_ext >&5
11108
11109ac_compiler_gnu=no
11110fi
ac1cb8d3 11111rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11112ac_cv_c_compiler_gnu=$ac_compiler_gnu
11113
11114fi
11115echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
11116echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
11117GCC=`test $ac_compiler_gnu = yes && echo yes`
11118ac_test_CFLAGS=${CFLAGS+set}
11119ac_save_CFLAGS=$CFLAGS
11120CFLAGS="-g"
11121echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
11122echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
11123if test "${ac_cv_prog_cc_g+set}" = set; then
11124 echo $ECHO_N "(cached) $ECHO_C" >&6
11125else
11126 cat >conftest.$ac_ext <<_ACEOF
11127/* confdefs.h. */
11128_ACEOF
11129cat confdefs.h >>conftest.$ac_ext
11130cat >>conftest.$ac_ext <<_ACEOF
11131/* end confdefs.h. */
11132
11133int
11134main ()
11135{
11136
11137 ;
11138 return 0;
11139}
11140_ACEOF
11141rm -f conftest.$ac_objext
11142if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11143 (eval $ac_compile) 2>conftest.er1
a848cd7e 11144 ac_status=$?
ac1cb8d3
VS
11145 grep -v '^ *+' conftest.er1 >conftest.err
11146 rm -f conftest.er1
11147 cat conftest.err >&5
a848cd7e
SC
11148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11149 (exit $ac_status); } &&
89be85c2
VS
11150 { ac_try='test -z "$ac_c_werror_flag"
11151 || test ! -s conftest.err'
ac1cb8d3
VS
11152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11153 (eval $ac_try) 2>&5
11154 ac_status=$?
11155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11156 (exit $ac_status); }; } &&
11157 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11159 (eval $ac_try) 2>&5
11160 ac_status=$?
11161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11162 (exit $ac_status); }; }; then
11163 ac_cv_prog_cc_g=yes
11164else
11165 echo "$as_me: failed program was:" >&5
11166sed 's/^/| /' conftest.$ac_ext >&5
11167
11168ac_cv_prog_cc_g=no
11169fi
ac1cb8d3 11170rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11171fi
11172echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
11173echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
11174if test "$ac_test_CFLAGS" = set; then
11175 CFLAGS=$ac_save_CFLAGS
11176elif test $ac_cv_prog_cc_g = yes; then
11177 if test "$GCC" = yes; then
11178 CFLAGS="-g -O2"
11179 else
11180 CFLAGS="-g"
11181 fi
11182else
11183 if test "$GCC" = yes; then
11184 CFLAGS="-O2"
11185 else
11186 CFLAGS=
11187 fi
11188fi
11189echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
11190echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
11191if test "${ac_cv_prog_cc_stdc+set}" = set; then
11192 echo $ECHO_N "(cached) $ECHO_C" >&6
11193else
11194 ac_cv_prog_cc_stdc=no
11195ac_save_CC=$CC
11196cat >conftest.$ac_ext <<_ACEOF
11197/* confdefs.h. */
11198_ACEOF
11199cat confdefs.h >>conftest.$ac_ext
11200cat >>conftest.$ac_ext <<_ACEOF
11201/* end confdefs.h. */
11202#include <stdarg.h>
11203#include <stdio.h>
11204#include <sys/types.h>
11205#include <sys/stat.h>
11206/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
11207struct buf { int x; };
11208FILE * (*rcsopen) (struct buf *, struct stat *, int);
11209static char *e (p, i)
11210 char **p;
11211 int i;
11212{
11213 return p[i];
11214}
11215static char *f (char * (*g) (char **, int), char **p, ...)
11216{
11217 char *s;
11218 va_list v;
11219 va_start (v,p);
11220 s = g (p, va_arg (v,int));
11221 va_end (v);
11222 return s;
11223}
ac1cb8d3
VS
11224
11225/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
11226 function prototypes and stuff, but not '\xHH' hex character constants.
11227 These don't provoke an error unfortunately, instead are silently treated
11228 as 'x'. The following induces an error, until -std1 is added to get
11229 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
11230 array size at least. It's necessary to write '\x00'==0 to get something
11231 that's true only with -std1. */
11232int osf4_cc_array ['\x00' == 0 ? 1 : -1];
11233
a848cd7e
SC
11234int test (int i, double x);
11235struct s1 {int (*f) (int a);};
11236struct s2 {int (*f) (double a);};
11237int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
11238int argc;
11239char **argv;
11240int
11241main ()
11242{
11243return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
11244 ;
11245 return 0;
11246}
11247_ACEOF
11248# Don't try gcc -ansi; that turns off useful extensions and
11249# breaks some systems' header files.
11250# AIX -qlanglvl=ansi
11251# Ultrix and OSF/1 -std1
11252# HP-UX 10.20 and later -Ae
11253# HP-UX older versions -Aa -D_HPUX_SOURCE
11254# SVR4 -Xc -D__EXTENSIONS__
11255for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
11256do
11257 CC="$ac_save_CC $ac_arg"
11258 rm -f conftest.$ac_objext
11259if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11260 (eval $ac_compile) 2>conftest.er1
a848cd7e 11261 ac_status=$?
ac1cb8d3
VS
11262 grep -v '^ *+' conftest.er1 >conftest.err
11263 rm -f conftest.er1
11264 cat conftest.err >&5
a848cd7e
SC
11265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11266 (exit $ac_status); } &&
89be85c2
VS
11267 { ac_try='test -z "$ac_c_werror_flag"
11268 || test ! -s conftest.err'
ac1cb8d3
VS
11269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11270 (eval $ac_try) 2>&5
11271 ac_status=$?
11272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11273 (exit $ac_status); }; } &&
11274 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11276 (eval $ac_try) 2>&5
11277 ac_status=$?
11278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11279 (exit $ac_status); }; }; then
11280 ac_cv_prog_cc_stdc=$ac_arg
11281break
11282else
11283 echo "$as_me: failed program was:" >&5
11284sed 's/^/| /' conftest.$ac_ext >&5
11285
11286fi
ac1cb8d3 11287rm -f conftest.err conftest.$ac_objext
a848cd7e
SC
11288done
11289rm -f conftest.$ac_ext conftest.$ac_objext
11290CC=$ac_save_CC
11291
11292fi
11293
11294case "x$ac_cv_prog_cc_stdc" in
11295 x|xno)
11296 echo "$as_me:$LINENO: result: none needed" >&5
11297echo "${ECHO_T}none needed" >&6 ;;
11298 *)
11299 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
11300echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
11301 CC="$CC $ac_cv_prog_cc_stdc" ;;
11302esac
11303
11304# Some people use a C++ compiler to compile C. Since we use `exit',
11305# in C++ we need to declare it. In case someone uses the same compiler
11306# for both compiling C and C++ we need to have the C++ compiler decide
11307# the declaration of exit, since it's the most demanding environment.
11308cat >conftest.$ac_ext <<_ACEOF
11309#ifndef __cplusplus
11310 choke me
11311#endif
11312_ACEOF
11313rm -f conftest.$ac_objext
11314if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11315 (eval $ac_compile) 2>conftest.er1
a848cd7e 11316 ac_status=$?
ac1cb8d3
VS
11317 grep -v '^ *+' conftest.er1 >conftest.err
11318 rm -f conftest.er1
11319 cat conftest.err >&5
a848cd7e
SC
11320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11321 (exit $ac_status); } &&
89be85c2
VS
11322 { ac_try='test -z "$ac_c_werror_flag"
11323 || test ! -s conftest.err'
ac1cb8d3
VS
11324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11325 (eval $ac_try) 2>&5
11326 ac_status=$?
11327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11328 (exit $ac_status); }; } &&
11329 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11331 (eval $ac_try) 2>&5
11332 ac_status=$?
11333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11334 (exit $ac_status); }; }; then
11335 for ac_declaration in \
ac1cb8d3 11336 '' \
a848cd7e
SC
11337 'extern "C" void std::exit (int) throw (); using std::exit;' \
11338 'extern "C" void std::exit (int); using std::exit;' \
11339 'extern "C" void exit (int) throw ();' \
11340 'extern "C" void exit (int);' \
11341 'void exit (int);'
11342do
11343 cat >conftest.$ac_ext <<_ACEOF
11344/* confdefs.h. */
11345_ACEOF
11346cat confdefs.h >>conftest.$ac_ext
11347cat >>conftest.$ac_ext <<_ACEOF
11348/* end confdefs.h. */
de59c161 11349$ac_declaration
ac1cb8d3 11350#include <stdlib.h>
a848cd7e
SC
11351int
11352main ()
11353{
11354exit (42);
11355 ;
11356 return 0;
11357}
11358_ACEOF
11359rm -f conftest.$ac_objext
11360if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11361 (eval $ac_compile) 2>conftest.er1
a848cd7e 11362 ac_status=$?
ac1cb8d3
VS
11363 grep -v '^ *+' conftest.er1 >conftest.err
11364 rm -f conftest.er1
11365 cat conftest.err >&5
a848cd7e
SC
11366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11367 (exit $ac_status); } &&
89be85c2
VS
11368 { ac_try='test -z "$ac_c_werror_flag"
11369 || test ! -s conftest.err'
ac1cb8d3
VS
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); }; } &&
11375 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11377 (eval $ac_try) 2>&5
11378 ac_status=$?
11379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11380 (exit $ac_status); }; }; then
11381 :
11382else
11383 echo "$as_me: failed program was:" >&5
11384sed 's/^/| /' conftest.$ac_ext >&5
11385
11386continue
11387fi
ac1cb8d3 11388rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11389 cat >conftest.$ac_ext <<_ACEOF
11390/* confdefs.h. */
11391_ACEOF
11392cat confdefs.h >>conftest.$ac_ext
11393cat >>conftest.$ac_ext <<_ACEOF
11394/* end confdefs.h. */
11395$ac_declaration
11396int
11397main ()
11398{
11399exit (42);
11400 ;
11401 return 0;
11402}
11403_ACEOF
11404rm -f conftest.$ac_objext
11405if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11406 (eval $ac_compile) 2>conftest.er1
a848cd7e 11407 ac_status=$?
ac1cb8d3
VS
11408 grep -v '^ *+' conftest.er1 >conftest.err
11409 rm -f conftest.er1
11410 cat conftest.err >&5
a848cd7e
SC
11411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11412 (exit $ac_status); } &&
89be85c2
VS
11413 { ac_try='test -z "$ac_c_werror_flag"
11414 || test ! -s conftest.err'
ac1cb8d3
VS
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); }; } &&
11420 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11422 (eval $ac_try) 2>&5
11423 ac_status=$?
11424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11425 (exit $ac_status); }; }; then
11426 break
11427else
11428 echo "$as_me: failed program was:" >&5
11429sed 's/^/| /' conftest.$ac_ext >&5
11430
11431fi
ac1cb8d3 11432rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11433done
11434rm -f conftest*
11435if test -n "$ac_declaration"; then
11436 echo '#ifdef __cplusplus' >>confdefs.h
11437 echo $ac_declaration >>confdefs.h
11438 echo '#endif' >>confdefs.h
11439fi
11440
11441else
11442 echo "$as_me: failed program was:" >&5
11443sed 's/^/| /' conftest.$ac_ext >&5
11444
11445fi
ac1cb8d3 11446rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11447ac_ext=c
11448ac_cpp='$CPP $CPPFLAGS'
11449ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11450ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11451ac_compiler_gnu=$ac_cv_c_compiler_gnu
11452
480ccd21
DE
11453echo "$as_me:$LINENO: checking if the C compiler requires -ext o" >&5
11454echo $ECHO_N "checking if the C compiler requires -ext o... $ECHO_C" >&6
11455if test "${wx_cv_c_exto+set}" = set; then
11456 echo $ECHO_N "(cached) $ECHO_C" >&6
11457else
11458 cat >conftest.$ac_ext <<_ACEOF
11459/* confdefs.h. */
11460_ACEOF
11461cat confdefs.h >>conftest.$ac_ext
11462cat >>conftest.$ac_ext <<_ACEOF
11463/* end confdefs.h. */
11464
11465int
11466main ()
11467{
11468
11469 ;
11470 return 0;
11471}
11472_ACEOF
11473rm -f conftest.$ac_objext conftest.$ac_ext.o
11474if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11475 (eval $ac_compile) 2>&5
11476 ac_status=$?
11477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11478 (exit $ac_status); }; then
11479 for ac_file in `(ls conftest.* 2>/dev/null)`; do
11480 case $ac_file in
11481 conftest.$ac_ext.o)
11482 wx_cv_c_exto="-ext o"
11483 ;;
11484 *)
11485 ;;
11486 esac
11487done
11488else
11489 { { echo "$as_me:$LINENO: error: cannot figure out if compiler needs -ext o: cannot compile
11490See \`config.log' for more details." >&5
11491echo "$as_me: error: cannot figure out if compiler needs -ext o: cannot compile
11492See \`config.log' for more details." >&2;}
11493 { (exit 1); exit 1; }; }
11494
11495fi
11496
11497rm -f conftest.$ac_ext.o conftest.$ac_objext conftest.$ac_ext
11498
11499fi
11500echo "$as_me:$LINENO: result: $wx_cv_c_exto" >&5
11501echo "${ECHO_T}$wx_cv_c_exto" >&6
11502if test "x$wx_cv_c_exto" '!=' "x"; then
11503 if test "c" = "c"; then
11504 CFLAGS="$wx_cv_c_exto $CFLAGS"
11505 fi
11506 if test "c" = "cxx"; then
11507 CXXFLAGS="$wx_cv_c_exto $CXXFLAGS"
11508 fi
11509fi
11510
11511if test "x$wx_cv_c_exto" '!=' "x"; then
11512 unset ac_cv_prog_cc_g
11513 ac_test_CFLAGS=${CFLAGS+set}
11514ac_save_CFLAGS=$CFLAGS
11515CFLAGS="-g"
11516echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
11517echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
11518if test "${ac_cv_prog_cc_g+set}" = set; then
11519 echo $ECHO_N "(cached) $ECHO_C" >&6
11520else
11521 cat >conftest.$ac_ext <<_ACEOF
11522/* confdefs.h. */
11523_ACEOF
11524cat confdefs.h >>conftest.$ac_ext
11525cat >>conftest.$ac_ext <<_ACEOF
11526/* end confdefs.h. */
11527
11528int
11529main ()
11530{
11531
11532 ;
11533 return 0;
11534}
11535_ACEOF
11536rm -f conftest.$ac_objext
11537if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11538 (eval $ac_compile) 2>conftest.er1
11539 ac_status=$?
11540 grep -v '^ *+' conftest.er1 >conftest.err
11541 rm -f conftest.er1
11542 cat conftest.err >&5
11543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11544 (exit $ac_status); } &&
11545 { ac_try='test -z "$ac_c_werror_flag"
11546 || test ! -s conftest.err'
11547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11548 (eval $ac_try) 2>&5
11549 ac_status=$?
11550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11551 (exit $ac_status); }; } &&
11552 { ac_try='test -s conftest.$ac_objext'
11553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11554 (eval $ac_try) 2>&5
11555 ac_status=$?
11556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11557 (exit $ac_status); }; }; then
11558 ac_cv_prog_cc_g=yes
11559else
11560 echo "$as_me: failed program was:" >&5
11561sed 's/^/| /' conftest.$ac_ext >&5
11562
11563ac_cv_prog_cc_g=no
11564fi
11565rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11566fi
11567echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
11568echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
11569if test "$ac_test_CFLAGS" = set; then
11570 CFLAGS=$ac_save_CFLAGS
11571elif test $ac_cv_prog_cc_g = yes; then
11572 if test "$GCC" = yes; then
11573 CFLAGS="-g -O2"
11574 else
11575 CFLAGS="-g"
11576 fi
11577else
11578 if test "$GCC" = yes; then
11579 CFLAGS="-O2"
11580 else
11581 CFLAGS=
11582 fi
11583fi
11584fi
a848cd7e 11585
95986553
DE
11586ac_ext=c
11587ac_cpp='$CPP $CPPFLAGS'
11588ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11589ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11590ac_compiler_gnu=$ac_cv_c_compiler_gnu
11591
11592echo "$as_me:$LINENO: checking whether we are using the Metrowerks C compiler" >&5
11593echo $ECHO_N "checking whether we are using the Metrowerks C compiler... $ECHO_C" >&6
11594if test "${bakefile_cv_c_compiler_mwerks+set}" = set; then
11595 echo $ECHO_N "(cached) $ECHO_C" >&6
11596else
11597 cat >conftest.$ac_ext <<_ACEOF
11598/* confdefs.h. */
11599_ACEOF
11600cat confdefs.h >>conftest.$ac_ext
11601cat >>conftest.$ac_ext <<_ACEOF
11602/* end confdefs.h. */
11603
11604int
11605main ()
11606{
11607#ifndef __MWERKS__
11608 choke me
11609#endif
11610
11611 ;
11612 return 0;
11613}
11614_ACEOF
11615rm -f conftest.$ac_objext
11616if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11617 (eval $ac_compile) 2>conftest.er1
11618 ac_status=$?
11619 grep -v '^ *+' conftest.er1 >conftest.err
11620 rm -f conftest.er1
11621 cat conftest.err >&5
11622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11623 (exit $ac_status); } &&
89be85c2
VS
11624 { ac_try='test -z "$ac_c_werror_flag"
11625 || test ! -s conftest.err'
95986553
DE
11626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11627 (eval $ac_try) 2>&5
11628 ac_status=$?
11629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11630 (exit $ac_status); }; } &&
11631 { ac_try='test -s conftest.$ac_objext'
11632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11633 (eval $ac_try) 2>&5
11634 ac_status=$?
11635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11636 (exit $ac_status); }; }; then
11637 bakefile_compiler_mwerks=yes
11638else
11639 echo "$as_me: failed program was:" >&5
11640sed 's/^/| /' conftest.$ac_ext >&5
11641
11642bakefile_compiler_mwerks=no
11643fi
11644rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11645 bakefile_cv_c_compiler_mwerks=$bakefile_compiler_mwerks
11646
11647fi
11648echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler_mwerks" >&5
11649echo "${ECHO_T}$bakefile_cv_c_compiler_mwerks" >&6
11650
11651MWCC=`test $bakefile_compiler_mwerks = yes && echo yes`
11652ac_ext=c
11653ac_cpp='$CPP $CPPFLAGS'
11654ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11655ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11656ac_compiler_gnu=$ac_cv_c_compiler_gnu
11657
11658
9273ffba
DE
11659ac_ext=c
11660ac_cpp='$CPP $CPPFLAGS'
11661ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11662ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11663ac_compiler_gnu=$ac_cv_c_compiler_gnu
11664
11665echo "$as_me:$LINENO: checking whether we are using the IBM xlC C compiler" >&5
11666echo $ECHO_N "checking whether we are using the IBM xlC C compiler... $ECHO_C" >&6
11667if test "${wx_cv_c_compiler_xlc+set}" = set; then
11668 echo $ECHO_N "(cached) $ECHO_C" >&6
11669else
11670 cat >conftest.$ac_ext <<_ACEOF
11671/* confdefs.h. */
11672_ACEOF
11673cat confdefs.h >>conftest.$ac_ext
11674cat >>conftest.$ac_ext <<_ACEOF
11675/* end confdefs.h. */
11676
11677int
11678main ()
11679{
11680#ifndef __xlC__
11681 choke me
11682#endif
11683
11684 ;
11685 return 0;
11686}
11687_ACEOF
11688rm -f conftest.$ac_objext
11689if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11690 (eval $ac_compile) 2>conftest.er1
11691 ac_status=$?
11692 grep -v '^ *+' conftest.er1 >conftest.err
11693 rm -f conftest.er1
11694 cat conftest.err >&5
11695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11696 (exit $ac_status); } &&
11697 { ac_try='test -z "$ac_c_werror_flag"
11698 || test ! -s conftest.err'
11699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11700 (eval $ac_try) 2>&5
11701 ac_status=$?
11702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11703 (exit $ac_status); }; } &&
11704 { ac_try='test -s conftest.$ac_objext'
11705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11706 (eval $ac_try) 2>&5
11707 ac_status=$?
11708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11709 (exit $ac_status); }; }; then
11710 wx_compiler_xlc=yes
11711else
11712 echo "$as_me: failed program was:" >&5
11713sed 's/^/| /' conftest.$ac_ext >&5
11714
11715wx_compiler_xlc=no
11716fi
11717rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11718 wx_cv_c_compiler_xlc=$wx_compiler_xlc
11719
11720fi
11721echo "$as_me:$LINENO: result: $wx_cv_c_compiler_xlc" >&5
11722echo "${ECHO_T}$wx_cv_c_compiler_xlc" >&6
11723
11724XLCC=`test $wx_compiler_xlc = yes && echo yes`
11725ac_ext=c
11726ac_cpp='$CPP $CPPFLAGS'
11727ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11728ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11729ac_compiler_gnu=$ac_cv_c_compiler_gnu
11730
11731
a848cd7e
SC
11732
11733ac_ext=c
11734ac_cpp='$CPP $CPPFLAGS'
11735ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11736ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11737ac_compiler_gnu=$ac_cv_c_compiler_gnu
11738echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
11739echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
11740# On Suns, sometimes $CPP names a directory.
11741if test -n "$CPP" && test -d "$CPP"; then
11742 CPP=
11743fi
11744if test -z "$CPP"; then
11745 if test "${ac_cv_prog_CPP+set}" = set; then
11746 echo $ECHO_N "(cached) $ECHO_C" >&6
11747else
11748 # Double quotes because CPP needs to be expanded
11749 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
11750 do
11751 ac_preproc_ok=false
11752for ac_c_preproc_warn_flag in '' yes
11753do
11754 # Use a header file that comes with gcc, so configuring glibc
11755 # with a fresh cross-compiler works.
11756 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11757 # <limits.h> exists even on freestanding compilers.
11758 # On the NeXT, cc -E runs the code through the compiler's parser,
11759 # not just through cpp. "Syntax error" is here to catch this case.
11760 cat >conftest.$ac_ext <<_ACEOF
11761/* confdefs.h. */
11762_ACEOF
11763cat confdefs.h >>conftest.$ac_ext
11764cat >>conftest.$ac_ext <<_ACEOF
11765/* end confdefs.h. */
11766#ifdef __STDC__
11767# include <limits.h>
11768#else
11769# include <assert.h>
11770#endif
ac1cb8d3 11771 Syntax error
a848cd7e
SC
11772_ACEOF
11773if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11774 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11775 ac_status=$?
11776 grep -v '^ *+' conftest.er1 >conftest.err
11777 rm -f conftest.er1
11778 cat conftest.err >&5
11779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11780 (exit $ac_status); } >/dev/null; then
11781 if test -s conftest.err; then
11782 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 11783 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
11784 else
11785 ac_cpp_err=
11786 fi
11787else
11788 ac_cpp_err=yes
11789fi
11790if test -z "$ac_cpp_err"; then
11791 :
11792else
11793 echo "$as_me: failed program was:" >&5
11794sed 's/^/| /' conftest.$ac_ext >&5
11795
11796 # Broken: fails on valid input.
11797continue
11798fi
11799rm -f conftest.err conftest.$ac_ext
11800
11801 # OK, works on sane cases. Now check whether non-existent headers
11802 # can be detected and how.
11803 cat >conftest.$ac_ext <<_ACEOF
11804/* confdefs.h. */
11805_ACEOF
11806cat confdefs.h >>conftest.$ac_ext
11807cat >>conftest.$ac_ext <<_ACEOF
11808/* end confdefs.h. */
11809#include <ac_nonexistent.h>
11810_ACEOF
11811if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11812 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11813 ac_status=$?
11814 grep -v '^ *+' conftest.er1 >conftest.err
11815 rm -f conftest.er1
11816 cat conftest.err >&5
11817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11818 (exit $ac_status); } >/dev/null; then
11819 if test -s conftest.err; then
11820 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 11821 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
11822 else
11823 ac_cpp_err=
11824 fi
11825else
11826 ac_cpp_err=yes
11827fi
11828if test -z "$ac_cpp_err"; then
11829 # Broken: success on invalid input.
11830continue
11831else
11832 echo "$as_me: failed program was:" >&5
11833sed 's/^/| /' conftest.$ac_ext >&5
11834
11835 # Passes both tests.
11836ac_preproc_ok=:
11837break
11838fi
11839rm -f conftest.err conftest.$ac_ext
11840
11841done
11842# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11843rm -f conftest.err conftest.$ac_ext
11844if $ac_preproc_ok; then
11845 break
11846fi
11847
11848 done
11849 ac_cv_prog_CPP=$CPP
11850
11851fi
11852 CPP=$ac_cv_prog_CPP
11853else
11854 ac_cv_prog_CPP=$CPP
11855fi
11856echo "$as_me:$LINENO: result: $CPP" >&5
11857echo "${ECHO_T}$CPP" >&6
11858ac_preproc_ok=false
11859for ac_c_preproc_warn_flag in '' yes
11860do
11861 # Use a header file that comes with gcc, so configuring glibc
11862 # with a fresh cross-compiler works.
11863 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11864 # <limits.h> exists even on freestanding compilers.
11865 # On the NeXT, cc -E runs the code through the compiler's parser,
11866 # not just through cpp. "Syntax error" is here to catch this case.
11867 cat >conftest.$ac_ext <<_ACEOF
11868/* confdefs.h. */
11869_ACEOF
11870cat confdefs.h >>conftest.$ac_ext
11871cat >>conftest.$ac_ext <<_ACEOF
11872/* end confdefs.h. */
11873#ifdef __STDC__
11874# include <limits.h>
11875#else
11876# include <assert.h>
11877#endif
ac1cb8d3 11878 Syntax error
a848cd7e
SC
11879_ACEOF
11880if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11881 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11882 ac_status=$?
11883 grep -v '^ *+' conftest.er1 >conftest.err
11884 rm -f conftest.er1
11885 cat conftest.err >&5
11886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11887 (exit $ac_status); } >/dev/null; then
11888 if test -s conftest.err; then
11889 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 11890 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
11891 else
11892 ac_cpp_err=
11893 fi
11894else
11895 ac_cpp_err=yes
11896fi
11897if test -z "$ac_cpp_err"; then
11898 :
11899else
11900 echo "$as_me: failed program was:" >&5
11901sed 's/^/| /' conftest.$ac_ext >&5
11902
11903 # Broken: fails on valid input.
11904continue
11905fi
11906rm -f conftest.err conftest.$ac_ext
11907
11908 # OK, works on sane cases. Now check whether non-existent headers
11909 # can be detected and how.
11910 cat >conftest.$ac_ext <<_ACEOF
11911/* confdefs.h. */
11912_ACEOF
11913cat confdefs.h >>conftest.$ac_ext
11914cat >>conftest.$ac_ext <<_ACEOF
11915/* end confdefs.h. */
11916#include <ac_nonexistent.h>
11917_ACEOF
11918if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11919 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11920 ac_status=$?
11921 grep -v '^ *+' conftest.er1 >conftest.err
11922 rm -f conftest.er1
11923 cat conftest.err >&5
11924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11925 (exit $ac_status); } >/dev/null; then
11926 if test -s conftest.err; then
11927 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 11928 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
11929 else
11930 ac_cpp_err=
11931 fi
11932else
11933 ac_cpp_err=yes
11934fi
11935if test -z "$ac_cpp_err"; then
11936 # Broken: success on invalid input.
11937continue
11938else
11939 echo "$as_me: failed program was:" >&5
11940sed 's/^/| /' conftest.$ac_ext >&5
11941
11942 # Passes both tests.
11943ac_preproc_ok=:
11944break
11945fi
11946rm -f conftest.err conftest.$ac_ext
11947
11948done
11949# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11950rm -f conftest.err conftest.$ac_ext
11951if $ac_preproc_ok; then
11952 :
11953else
11954 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
11955See \`config.log' for more details." >&5
11956echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
11957See \`config.log' for more details." >&2;}
11958 { (exit 1); exit 1; }; }
11959fi
11960
11961ac_ext=c
11962ac_cpp='$CPP $CPPFLAGS'
11963ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11964ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11965ac_compiler_gnu=$ac_cv_c_compiler_gnu
11966
11967
11968echo "$as_me:$LINENO: checking for egrep" >&5
11969echo $ECHO_N "checking for egrep... $ECHO_C" >&6
11970if test "${ac_cv_prog_egrep+set}" = set; then
11971 echo $ECHO_N "(cached) $ECHO_C" >&6
11972else
11973 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
11974 then ac_cv_prog_egrep='grep -E'
11975 else ac_cv_prog_egrep='egrep'
11976 fi
11977fi
11978echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
11979echo "${ECHO_T}$ac_cv_prog_egrep" >&6
11980 EGREP=$ac_cv_prog_egrep
11981
11982
11983if test $ac_cv_c_compiler_gnu = yes; then
11984 echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
11985echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
11986if test "${ac_cv_prog_gcc_traditional+set}" = set; then
11987 echo $ECHO_N "(cached) $ECHO_C" >&6
11988else
11989 ac_pattern="Autoconf.*'x'"
11990 cat >conftest.$ac_ext <<_ACEOF
11991/* confdefs.h. */
11992_ACEOF
11993cat confdefs.h >>conftest.$ac_ext
11994cat >>conftest.$ac_ext <<_ACEOF
11995/* end confdefs.h. */
11996#include <sgtty.h>
11997Autoconf TIOCGETP
11998_ACEOF
11999if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12000 $EGREP "$ac_pattern" >/dev/null 2>&1; then
12001 ac_cv_prog_gcc_traditional=yes
12002else
12003 ac_cv_prog_gcc_traditional=no
12004fi
12005rm -f conftest*
12006
12007
12008 if test $ac_cv_prog_gcc_traditional = no; then
12009 cat >conftest.$ac_ext <<_ACEOF
12010/* confdefs.h. */
12011_ACEOF
12012cat confdefs.h >>conftest.$ac_ext
12013cat >>conftest.$ac_ext <<_ACEOF
12014/* end confdefs.h. */
12015#include <termio.h>
12016Autoconf TCGETA
12017_ACEOF
12018if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12019 $EGREP "$ac_pattern" >/dev/null 2>&1; then
12020 ac_cv_prog_gcc_traditional=yes
12021fi
12022rm -f conftest*
12023
12024 fi
12025fi
12026echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
12027echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
12028 if test $ac_cv_prog_gcc_traditional = yes; then
12029 CC="$CC -traditional"
12030 fi
12031fi
12032
12033
12034
12035
12036ac_ext=cc
12037ac_cpp='$CXXCPP $CPPFLAGS'
12038ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12039ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12040ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12041
12042
12043CXXFLAGS=${CXXFLAGS:=}
12044ac_ext=cc
12045ac_cpp='$CXXCPP $CPPFLAGS'
12046ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12047ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12048ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12049if test -n "$ac_tool_prefix"; then
12050 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
12051 do
12052 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12053set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12054echo "$as_me:$LINENO: checking for $ac_word" >&5
12055echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12056if test "${ac_cv_prog_CXX+set}" = set; then
12057 echo $ECHO_N "(cached) $ECHO_C" >&6
12058else
12059 if test -n "$CXX"; then
12060 ac_cv_prog_CXX="$CXX" # Let the user override the test.
12061else
12062as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12063for as_dir in $PATH
12064do
12065 IFS=$as_save_IFS
12066 test -z "$as_dir" && as_dir=.
12067 for ac_exec_ext in '' $ac_executable_extensions; do
12068 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12069 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
12070 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12071 break 2
12072 fi
12073done
12074done
12075
12076fi
12077fi
12078CXX=$ac_cv_prog_CXX
12079if test -n "$CXX"; then
12080 echo "$as_me:$LINENO: result: $CXX" >&5
12081echo "${ECHO_T}$CXX" >&6
12082else
12083 echo "$as_me:$LINENO: result: no" >&5
12084echo "${ECHO_T}no" >&6
12085fi
12086
12087 test -n "$CXX" && break
12088 done
12089fi
12090if test -z "$CXX"; then
12091 ac_ct_CXX=$CXX
12092 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
12093do
12094 # Extract the first word of "$ac_prog", so it can be a program name with args.
12095set dummy $ac_prog; ac_word=$2
12096echo "$as_me:$LINENO: checking for $ac_word" >&5
12097echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12098if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
12099 echo $ECHO_N "(cached) $ECHO_C" >&6
12100else
12101 if test -n "$ac_ct_CXX"; then
12102 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
12103else
12104as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12105for as_dir in $PATH
12106do
12107 IFS=$as_save_IFS
12108 test -z "$as_dir" && as_dir=.
12109 for ac_exec_ext in '' $ac_executable_extensions; do
12110 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12111 ac_cv_prog_ac_ct_CXX="$ac_prog"
12112 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12113 break 2
12114 fi
12115done
12116done
12117
12118fi
12119fi
12120ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
12121if test -n "$ac_ct_CXX"; then
12122 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
12123echo "${ECHO_T}$ac_ct_CXX" >&6
12124else
12125 echo "$as_me:$LINENO: result: no" >&5
12126echo "${ECHO_T}no" >&6
12127fi
12128
12129 test -n "$ac_ct_CXX" && break
12130done
12131test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
12132
12133 CXX=$ac_ct_CXX
12134fi
12135
12136
12137# Provide some information about the compiler.
12138echo "$as_me:$LINENO:" \
12139 "checking for C++ compiler version" >&5
12140ac_compiler=`set X $ac_compile; echo $2`
12141{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
12142 (eval $ac_compiler --version </dev/null >&5) 2>&5
12143 ac_status=$?
12144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12145 (exit $ac_status); }
12146{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
12147 (eval $ac_compiler -v </dev/null >&5) 2>&5
12148 ac_status=$?
12149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12150 (exit $ac_status); }
12151{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
12152 (eval $ac_compiler -V </dev/null >&5) 2>&5
12153 ac_status=$?
12154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12155 (exit $ac_status); }
12156
12157echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
12158echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
12159if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
12160 echo $ECHO_N "(cached) $ECHO_C" >&6
12161else
12162 cat >conftest.$ac_ext <<_ACEOF
12163/* confdefs.h. */
12164_ACEOF
12165cat confdefs.h >>conftest.$ac_ext
12166cat >>conftest.$ac_ext <<_ACEOF
12167/* end confdefs.h. */
12168
12169int
12170main ()
12171{
12172#ifndef __GNUC__
12173 choke me
12174#endif
12175
12176 ;
12177 return 0;
12178}
12179_ACEOF
12180rm -f conftest.$ac_objext
12181if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12182 (eval $ac_compile) 2>conftest.er1
a848cd7e 12183 ac_status=$?
ac1cb8d3
VS
12184 grep -v '^ *+' conftest.er1 >conftest.err
12185 rm -f conftest.er1
12186 cat conftest.err >&5
a848cd7e
SC
12187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12188 (exit $ac_status); } &&
89be85c2
VS
12189 { ac_try='test -z "$ac_cxx_werror_flag"
12190 || test ! -s conftest.err'
ac1cb8d3
VS
12191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12192 (eval $ac_try) 2>&5
12193 ac_status=$?
12194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12195 (exit $ac_status); }; } &&
12196 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12198 (eval $ac_try) 2>&5
12199 ac_status=$?
12200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12201 (exit $ac_status); }; }; then
12202 ac_compiler_gnu=yes
12203else
12204 echo "$as_me: failed program was:" >&5
12205sed 's/^/| /' conftest.$ac_ext >&5
12206
12207ac_compiler_gnu=no
12208fi
ac1cb8d3 12209rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12210ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
12211
12212fi
12213echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
12214echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
12215GXX=`test $ac_compiler_gnu = yes && echo yes`
12216ac_test_CXXFLAGS=${CXXFLAGS+set}
12217ac_save_CXXFLAGS=$CXXFLAGS
12218CXXFLAGS="-g"
12219echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
12220echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
12221if test "${ac_cv_prog_cxx_g+set}" = set; then
12222 echo $ECHO_N "(cached) $ECHO_C" >&6
12223else
12224 cat >conftest.$ac_ext <<_ACEOF
12225/* confdefs.h. */
12226_ACEOF
12227cat confdefs.h >>conftest.$ac_ext
12228cat >>conftest.$ac_ext <<_ACEOF
12229/* end confdefs.h. */
12230
12231int
12232main ()
12233{
12234
12235 ;
12236 return 0;
12237}
12238_ACEOF
12239rm -f conftest.$ac_objext
12240if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12241 (eval $ac_compile) 2>conftest.er1
a848cd7e 12242 ac_status=$?
ac1cb8d3
VS
12243 grep -v '^ *+' conftest.er1 >conftest.err
12244 rm -f conftest.er1
12245 cat conftest.err >&5
a848cd7e
SC
12246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12247 (exit $ac_status); } &&
89be85c2
VS
12248 { ac_try='test -z "$ac_cxx_werror_flag"
12249 || test ! -s conftest.err'
ac1cb8d3
VS
12250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12251 (eval $ac_try) 2>&5
12252 ac_status=$?
12253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12254 (exit $ac_status); }; } &&
12255 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12257 (eval $ac_try) 2>&5
12258 ac_status=$?
12259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12260 (exit $ac_status); }; }; then
12261 ac_cv_prog_cxx_g=yes
12262else
12263 echo "$as_me: failed program was:" >&5
12264sed 's/^/| /' conftest.$ac_ext >&5
12265
12266ac_cv_prog_cxx_g=no
12267fi
ac1cb8d3 12268rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12269fi
12270echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
12271echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
12272if test "$ac_test_CXXFLAGS" = set; then
12273 CXXFLAGS=$ac_save_CXXFLAGS
12274elif test $ac_cv_prog_cxx_g = yes; then
12275 if test "$GXX" = yes; then
12276 CXXFLAGS="-g -O2"
12277 else
12278 CXXFLAGS="-g"
12279 fi
12280else
12281 if test "$GXX" = yes; then
12282 CXXFLAGS="-O2"
12283 else
12284 CXXFLAGS=
12285 fi
12286fi
12287for ac_declaration in \
ac1cb8d3 12288 '' \
a848cd7e
SC
12289 'extern "C" void std::exit (int) throw (); using std::exit;' \
12290 'extern "C" void std::exit (int); using std::exit;' \
12291 'extern "C" void exit (int) throw ();' \
12292 'extern "C" void exit (int);' \
12293 'void exit (int);'
12294do
12295 cat >conftest.$ac_ext <<_ACEOF
12296/* confdefs.h. */
12297_ACEOF
12298cat confdefs.h >>conftest.$ac_ext
12299cat >>conftest.$ac_ext <<_ACEOF
12300/* end confdefs.h. */
de59c161 12301$ac_declaration
ac1cb8d3 12302#include <stdlib.h>
a848cd7e
SC
12303int
12304main ()
12305{
12306exit (42);
12307 ;
12308 return 0;
12309}
12310_ACEOF
12311rm -f conftest.$ac_objext
12312if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12313 (eval $ac_compile) 2>conftest.er1
a848cd7e 12314 ac_status=$?
ac1cb8d3
VS
12315 grep -v '^ *+' conftest.er1 >conftest.err
12316 rm -f conftest.er1
12317 cat conftest.err >&5
a848cd7e
SC
12318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12319 (exit $ac_status); } &&
89be85c2
VS
12320 { ac_try='test -z "$ac_cxx_werror_flag"
12321 || test ! -s conftest.err'
ac1cb8d3
VS
12322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12323 (eval $ac_try) 2>&5
12324 ac_status=$?
12325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12326 (exit $ac_status); }; } &&
12327 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12329 (eval $ac_try) 2>&5
12330 ac_status=$?
12331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12332 (exit $ac_status); }; }; then
12333 :
12334else
12335 echo "$as_me: failed program was:" >&5
12336sed 's/^/| /' conftest.$ac_ext >&5
12337
12338continue
12339fi
ac1cb8d3 12340rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12341 cat >conftest.$ac_ext <<_ACEOF
12342/* confdefs.h. */
12343_ACEOF
12344cat confdefs.h >>conftest.$ac_ext
12345cat >>conftest.$ac_ext <<_ACEOF
12346/* end confdefs.h. */
12347$ac_declaration
12348int
12349main ()
12350{
12351exit (42);
12352 ;
12353 return 0;
12354}
12355_ACEOF
12356rm -f conftest.$ac_objext
12357if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12358 (eval $ac_compile) 2>conftest.er1
a848cd7e 12359 ac_status=$?
ac1cb8d3
VS
12360 grep -v '^ *+' conftest.er1 >conftest.err
12361 rm -f conftest.er1
12362 cat conftest.err >&5
a848cd7e
SC
12363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12364 (exit $ac_status); } &&
89be85c2
VS
12365 { ac_try='test -z "$ac_cxx_werror_flag"
12366 || test ! -s conftest.err'
ac1cb8d3
VS
12367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12368 (eval $ac_try) 2>&5
12369 ac_status=$?
12370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12371 (exit $ac_status); }; } &&
12372 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12374 (eval $ac_try) 2>&5
12375 ac_status=$?
12376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12377 (exit $ac_status); }; }; then
12378 break
12379else
12380 echo "$as_me: failed program was:" >&5
12381sed 's/^/| /' conftest.$ac_ext >&5
12382
12383fi
ac1cb8d3 12384rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12385done
12386rm -f conftest*
12387if test -n "$ac_declaration"; then
12388 echo '#ifdef __cplusplus' >>confdefs.h
12389 echo $ac_declaration >>confdefs.h
12390 echo '#endif' >>confdefs.h
12391fi
12392
12393ac_ext=cc
12394ac_cpp='$CXXCPP $CPPFLAGS'
12395ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12396ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12397ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12398
480ccd21
DE
12399echo "$as_me:$LINENO: checking if the C++ compiler requires -ext o" >&5
12400echo $ECHO_N "checking if the C++ compiler requires -ext o... $ECHO_C" >&6
12401if test "${wx_cv_cxx_exto+set}" = set; then
12402 echo $ECHO_N "(cached) $ECHO_C" >&6
12403else
12404 cat >conftest.$ac_ext <<_ACEOF
12405/* confdefs.h. */
12406_ACEOF
12407cat confdefs.h >>conftest.$ac_ext
12408cat >>conftest.$ac_ext <<_ACEOF
12409/* end confdefs.h. */
12410
12411int
12412main ()
12413{
12414
12415 ;
12416 return 0;
12417}
12418_ACEOF
12419rm -f conftest.$ac_objext conftest.$ac_ext.o
12420if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12421 (eval $ac_compile) 2>&5
12422 ac_status=$?
12423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12424 (exit $ac_status); }; then
12425 for ac_file in `(ls conftest.* 2>/dev/null)`; do
12426 case $ac_file in
12427 conftest.$ac_ext.o)
12428 wx_cv_cxx_exto="-ext o"
12429 ;;
12430 *)
12431 ;;
12432 esac
12433done
12434else
12435 { { echo "$as_me:$LINENO: error: cannot figure out if compiler needs -ext o: cannot compile
12436See \`config.log' for more details." >&5
12437echo "$as_me: error: cannot figure out if compiler needs -ext o: cannot compile
12438See \`config.log' for more details." >&2;}
12439 { (exit 1); exit 1; }; }
12440
12441fi
12442
12443rm -f conftest.$ac_ext.o conftest.$ac_objext conftest.$ac_ext
12444
12445fi
12446echo "$as_me:$LINENO: result: $wx_cv_cxx_exto" >&5
12447echo "${ECHO_T}$wx_cv_cxx_exto" >&6
12448if test "x$wx_cv_cxx_exto" '!=' "x"; then
12449 if test "cxx" = "c"; then
12450 CFLAGS="$wx_cv_cxx_exto $CFLAGS"
12451 fi
12452 if test "cxx" = "cxx"; then
12453 CXXFLAGS="$wx_cv_cxx_exto $CXXFLAGS"
12454 fi
12455fi
12456
12457if test "x$wx_cv_cxx_exto" '!=' "x"; then
12458 unset ac_cv_prog_cxx_g
12459 ac_test_CXXFLAGS=${CXXFLAGS+set}
12460ac_save_CXXFLAGS=$CXXFLAGS
12461CXXFLAGS="-g"
12462echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
12463echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
12464if test "${ac_cv_prog_cxx_g+set}" = set; then
12465 echo $ECHO_N "(cached) $ECHO_C" >&6
12466else
12467 cat >conftest.$ac_ext <<_ACEOF
12468/* confdefs.h. */
12469_ACEOF
12470cat confdefs.h >>conftest.$ac_ext
12471cat >>conftest.$ac_ext <<_ACEOF
12472/* end confdefs.h. */
12473
12474int
12475main ()
12476{
12477
12478 ;
12479 return 0;
12480}
12481_ACEOF
12482rm -f conftest.$ac_objext
12483if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12484 (eval $ac_compile) 2>conftest.er1
12485 ac_status=$?
12486 grep -v '^ *+' conftest.er1 >conftest.err
12487 rm -f conftest.er1
12488 cat conftest.err >&5
12489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12490 (exit $ac_status); } &&
12491 { ac_try='test -z "$ac_cxx_werror_flag"
12492 || test ! -s conftest.err'
12493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12494 (eval $ac_try) 2>&5
12495 ac_status=$?
12496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12497 (exit $ac_status); }; } &&
12498 { ac_try='test -s conftest.$ac_objext'
12499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12500 (eval $ac_try) 2>&5
12501 ac_status=$?
12502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12503 (exit $ac_status); }; }; then
12504 ac_cv_prog_cxx_g=yes
12505else
12506 echo "$as_me: failed program was:" >&5
12507sed 's/^/| /' conftest.$ac_ext >&5
12508
12509ac_cv_prog_cxx_g=no
12510fi
12511rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12512fi
12513echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
12514echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
12515if test "$ac_test_CXXFLAGS" = set; then
12516 CXXFLAGS=$ac_save_CXXFLAGS
12517elif test $ac_cv_prog_cxx_g = yes; then
12518 if test "$GXX" = yes; then
12519 CXXFLAGS="-g -O2"
12520 else
12521 CXXFLAGS="-g"
12522 fi
12523else
12524 if test "$GXX" = yes; then
12525 CXXFLAGS="-O2"
12526 else
12527 CXXFLAGS=
12528 fi
12529fi
12530fi
a848cd7e 12531
95986553
DE
12532ac_ext=cc
12533ac_cpp='$CXXCPP $CPPFLAGS'
12534ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12535ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12536ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12537
12538echo "$as_me:$LINENO: checking whether we are using the Metrowerks C++ compiler" >&5
12539echo $ECHO_N "checking whether we are using the Metrowerks C++ compiler... $ECHO_C" >&6
12540if test "${bakefile_cv_cxx_compiler_mwerks+set}" = set; then
12541 echo $ECHO_N "(cached) $ECHO_C" >&6
12542else
12543 cat >conftest.$ac_ext <<_ACEOF
12544/* confdefs.h. */
12545_ACEOF
12546cat confdefs.h >>conftest.$ac_ext
12547cat >>conftest.$ac_ext <<_ACEOF
12548/* end confdefs.h. */
12549
12550int
12551main ()
12552{
12553#ifndef __MWERKS__
12554 choke me
12555#endif
12556
12557 ;
12558 return 0;
12559}
12560_ACEOF
12561rm -f conftest.$ac_objext
12562if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12563 (eval $ac_compile) 2>conftest.er1
12564 ac_status=$?
12565 grep -v '^ *+' conftest.er1 >conftest.err
12566 rm -f conftest.er1
12567 cat conftest.err >&5
12568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12569 (exit $ac_status); } &&
89be85c2
VS
12570 { ac_try='test -z "$ac_cxx_werror_flag"
12571 || test ! -s conftest.err'
95986553
DE
12572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12573 (eval $ac_try) 2>&5
12574 ac_status=$?
12575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12576 (exit $ac_status); }; } &&
12577 { ac_try='test -s conftest.$ac_objext'
12578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12579 (eval $ac_try) 2>&5
12580 ac_status=$?
12581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12582 (exit $ac_status); }; }; then
12583 bakefile_compiler_mwerks=yes
12584else
12585 echo "$as_me: failed program was:" >&5
12586sed 's/^/| /' conftest.$ac_ext >&5
12587
12588bakefile_compiler_mwerks=no
12589fi
12590rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12591 bakefile_cv_cxx_compiler_mwerks=$bakefile_compiler_mwerks
12592
12593fi
12594echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler_mwerks" >&5
12595echo "${ECHO_T}$bakefile_cv_cxx_compiler_mwerks" >&6
12596
12597MWCXX=`test $bakefile_compiler_mwerks = yes && echo yes`
12598ac_ext=cc
12599ac_cpp='$CXXCPP $CPPFLAGS'
12600ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12601ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12602ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12603
12604
9273ffba
DE
12605ac_ext=cc
12606ac_cpp='$CXXCPP $CPPFLAGS'
12607ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12608ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12609ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12610
12611echo "$as_me:$LINENO: checking whether we are using the IBM xlC C++ compiler" >&5
12612echo $ECHO_N "checking whether we are using the IBM xlC C++ compiler... $ECHO_C" >&6
12613if test "${wx_cv_cxx_compiler_xlc+set}" = set; then
12614 echo $ECHO_N "(cached) $ECHO_C" >&6
12615else
12616 cat >conftest.$ac_ext <<_ACEOF
12617/* confdefs.h. */
12618_ACEOF
12619cat confdefs.h >>conftest.$ac_ext
12620cat >>conftest.$ac_ext <<_ACEOF
12621/* end confdefs.h. */
12622
12623int
12624main ()
12625{
12626#ifndef __xlC__
12627 choke me
12628#endif
12629
12630 ;
12631 return 0;
12632}
12633_ACEOF
12634rm -f conftest.$ac_objext
12635if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12636 (eval $ac_compile) 2>conftest.er1
12637 ac_status=$?
12638 grep -v '^ *+' conftest.er1 >conftest.err
12639 rm -f conftest.er1
12640 cat conftest.err >&5
12641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12642 (exit $ac_status); } &&
12643 { ac_try='test -z "$ac_cxx_werror_flag"
12644 || test ! -s conftest.err'
12645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12646 (eval $ac_try) 2>&5
12647 ac_status=$?
12648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12649 (exit $ac_status); }; } &&
12650 { ac_try='test -s conftest.$ac_objext'
12651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12652 (eval $ac_try) 2>&5
12653 ac_status=$?
12654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12655 (exit $ac_status); }; }; then
12656 wx_compiler_xlc=yes
12657else
12658 echo "$as_me: failed program was:" >&5
12659sed 's/^/| /' conftest.$ac_ext >&5
12660
12661wx_compiler_xlc=no
12662fi
12663rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12664 wx_cv_cxx_compiler_xlc=$wx_compiler_xlc
12665
12666fi
12667echo "$as_me:$LINENO: result: $wx_cv_cxx_compiler_xlc" >&5
12668echo "${ECHO_T}$wx_cv_cxx_compiler_xlc" >&6
12669
12670XLCXX=`test $wx_compiler_xlc = yes && echo yes`
12671ac_ext=cc
12672ac_cpp='$CXXCPP $CPPFLAGS'
12673ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12674ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12675ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12676
12677
95986553 12678
a848cd7e
SC
12679ac_ext=c
12680ac_cpp='$CPP $CPPFLAGS'
12681ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12682ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12683ac_compiler_gnu=$ac_cv_c_compiler_gnu
12684
12685
a848cd7e
SC
12686if test -n "$ac_tool_prefix"; then
12687 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
12688set dummy ${ac_tool_prefix}ranlib; ac_word=$2
12689echo "$as_me:$LINENO: checking for $ac_word" >&5
12690echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12691if test "${ac_cv_prog_RANLIB+set}" = set; then
12692 echo $ECHO_N "(cached) $ECHO_C" >&6
12693else
12694 if test -n "$RANLIB"; then
12695 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
12696else
12697as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12698for as_dir in $PATH
12699do
12700 IFS=$as_save_IFS
12701 test -z "$as_dir" && as_dir=.
12702 for ac_exec_ext in '' $ac_executable_extensions; do
12703 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12704 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
12705 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12706 break 2
12707 fi
12708done
12709done
12710
12711fi
12712fi
12713RANLIB=$ac_cv_prog_RANLIB
12714if test -n "$RANLIB"; then
12715 echo "$as_me:$LINENO: result: $RANLIB" >&5
12716echo "${ECHO_T}$RANLIB" >&6
12717else
12718 echo "$as_me:$LINENO: result: no" >&5
12719echo "${ECHO_T}no" >&6
12720fi
12721
12722fi
12723if test -z "$ac_cv_prog_RANLIB"; then
12724 ac_ct_RANLIB=$RANLIB
12725 # Extract the first word of "ranlib", so it can be a program name with args.
12726set dummy ranlib; ac_word=$2
12727echo "$as_me:$LINENO: checking for $ac_word" >&5
12728echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12729if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
12730 echo $ECHO_N "(cached) $ECHO_C" >&6
12731else
12732 if test -n "$ac_ct_RANLIB"; then
12733 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
12734else
12735as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12736for as_dir in $PATH
12737do
12738 IFS=$as_save_IFS
12739 test -z "$as_dir" && as_dir=.
12740 for ac_exec_ext in '' $ac_executable_extensions; do
12741 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12742 ac_cv_prog_ac_ct_RANLIB="ranlib"
12743 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12744 break 2
12745 fi
12746done
12747done
12748
12749 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
12750fi
12751fi
12752ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
12753if test -n "$ac_ct_RANLIB"; then
12754 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
12755echo "${ECHO_T}$ac_ct_RANLIB" >&6
12756else
12757 echo "$as_me:$LINENO: result: no" >&5
12758echo "${ECHO_T}no" >&6
12759fi
12760
12761 RANLIB=$ac_ct_RANLIB
12762else
12763 RANLIB="$ac_cv_prog_RANLIB"
12764fi
12765
12766
12767# Extract the first word of "ar", so it can be a program name with args.
12768set dummy ar; ac_word=$2
12769echo "$as_me:$LINENO: checking for $ac_word" >&5
12770echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12771if test "${ac_cv_prog_AR+set}" = set; then
12772 echo $ECHO_N "(cached) $ECHO_C" >&6
12773else
12774 if test -n "$AR"; then
12775 ac_cv_prog_AR="$AR" # Let the user override the test.
12776else
12777as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12778for as_dir in $PATH
12779do
12780 IFS=$as_save_IFS
12781 test -z "$as_dir" && as_dir=.
12782 for ac_exec_ext in '' $ac_executable_extensions; do
12783 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12784 ac_cv_prog_AR="ar"
12785 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12786 break 2
12787 fi
12788done
12789done
12790
12791fi
12792fi
12793AR=$ac_cv_prog_AR
12794if test -n "$AR"; then
12795 echo "$as_me:$LINENO: result: $AR" >&5
12796echo "${ECHO_T}$AR" >&6
12797else
12798 echo "$as_me:$LINENO: result: no" >&5
12799echo "${ECHO_T}no" >&6
12800fi
12801
12802if test "x$AR" = "x" ; then
77ffb593
JS
12803 { { echo "$as_me:$LINENO: error: ar is needed to build wxWidgets" >&5
12804echo "$as_me: error: ar is needed to build wxWidgets" >&2;}
a848cd7e
SC
12805 { (exit 1); exit 1; }; }
12806fi
12807
12808# Find a good install program. We prefer a C program (faster),
12809# so one script is as good as another. But avoid the broken or
12810# incompatible versions:
12811# SysV /etc/install, /usr/sbin/install
12812# SunOS /usr/etc/install
12813# IRIX /sbin/install
12814# AIX /bin/install
12815# AmigaOS /C/install, which installs bootblocks on floppy discs
12816# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
12817# AFS /usr/afsws/bin/install, which mishandles nonexistent args
12818# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
ac1cb8d3 12819# OS/2's system install, which has a completely different semantic
a848cd7e
SC
12820# ./install, which can be erroneously created by make from ./install.sh.
12821echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
12822echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
12823if test -z "$INSTALL"; then
12824if test "${ac_cv_path_install+set}" = set; then
12825 echo $ECHO_N "(cached) $ECHO_C" >&6
12826else
12827 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12828for as_dir in $PATH
12829do
12830 IFS=$as_save_IFS
12831 test -z "$as_dir" && as_dir=.
12832 # Account for people who put trailing slashes in PATH elements.
12833case $as_dir/ in
12834 ./ | .// | /cC/* | \
12835 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
ac1cb8d3 12836 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
a848cd7e
SC
12837 /usr/ucb/* ) ;;
12838 *)
12839 # OSF1 and SCO ODT 3.0 have their own names for install.
12840 # Don't use installbsd from OSF since it installs stuff as root
12841 # by default.
12842 for ac_prog in ginstall scoinst install; do
12843 for ac_exec_ext in '' $ac_executable_extensions; do
ac1cb8d3
VS
12844 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
12845 if test $ac_prog = install &&
12846 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
12847 # AIX install. It has an incompatible calling convention.
12848 :
12849 elif test $ac_prog = install &&
12850 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
12851 # program-specific install script used by HP pwplus--don't use.
12852 :
12853 else
12854 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
12855 break 3
12856 fi
12857 fi
a848cd7e
SC
12858 done
12859 done
12860 ;;
12861esac
12862done
12863
12864
12865fi
12866 if test "${ac_cv_path_install+set}" = set; then
12867 INSTALL=$ac_cv_path_install
12868 else
12869 # As a last resort, use the slow shell script. We don't cache a
12870 # path for INSTALL within a source directory, because that will
12871 # break other packages using the cache if that directory is
12872 # removed, or if the path is relative.
12873 INSTALL=$ac_install_sh
12874 fi
12875fi
12876echo "$as_me:$LINENO: result: $INSTALL" >&5
12877echo "${ECHO_T}$INSTALL" >&6
12878
12879# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
12880# It thinks the first close brace ends the variable substitution.
12881test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
12882
12883test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
12884
12885test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
12886
12887
12888case ${INSTALL} in
12889 /* ) # Absolute
12890 ;;
12891 ?:* ) # Drive letter, considered as absolute.
12892 ;;
12893 *)
12894 INSTALL=`pwd`/${INSTALL} ;;
12895esac
12896
a848cd7e
SC
12897
12898case "${host}" in
12899
12900 powerpc-*-darwin* )
12901 INSTALL_PROGRAM="cp -fp"
12902 INSTALL_DATA="cp -fp"
12903 ;;
12904 *)
12905 ;;
12906esac
12907
12908# Extract the first word of "strip", so it can be a program name with args.
12909set dummy strip; ac_word=$2
12910echo "$as_me:$LINENO: checking for $ac_word" >&5
12911echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12912if test "${ac_cv_prog_STRIP+set}" = set; then
12913 echo $ECHO_N "(cached) $ECHO_C" >&6
12914else
12915 if test -n "$STRIP"; then
12916 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
12917else
12918as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12919for as_dir in $PATH
12920do
12921 IFS=$as_save_IFS
12922 test -z "$as_dir" && as_dir=.
12923 for ac_exec_ext in '' $ac_executable_extensions; do
12924 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12925 ac_cv_prog_STRIP="strip"
12926 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12927 break 2
12928 fi
12929done
12930done
12931
12932 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="true"
12933fi
12934fi
12935STRIP=$ac_cv_prog_STRIP
12936if test -n "$STRIP"; then
12937 echo "$as_me:$LINENO: result: $STRIP" >&5
12938echo "${ECHO_T}$STRIP" >&6
12939else
12940 echo "$as_me:$LINENO: result: no" >&5
12941echo "${ECHO_T}no" >&6
12942fi
12943
12944
12945echo "$as_me:$LINENO: checking if make is GNU make" >&5
12946echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6
12947if test "${wx_cv_prog_makeisgnu+set}" = set; then
12948 echo $ECHO_N "(cached) $ECHO_C" >&6
12949else
12950
12951 if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
12952 egrep -s GNU > /dev/null); then
12953 wx_cv_prog_makeisgnu="yes"
12954 else
12955 wx_cv_prog_makeisgnu="no"
12956 fi
12957
12958fi
12959echo "$as_me:$LINENO: result: $wx_cv_prog_makeisgnu" >&5
12960echo "${ECHO_T}$wx_cv_prog_makeisgnu" >&6
12961
12962if test "x$wx_cv_prog_makeisgnu" = "xyes"; then
12963 IF_GNU_MAKE=""
12964else
12965 IF_GNU_MAKE="#"
12966fi
12967
12968
12969
12970if test "x$wx_cv_prog_makeisgnu" != "xyes"; then
12971echo "$as_me:$LINENO: checking if make supports VPATH" >&5
12972echo $ECHO_N "checking if make supports VPATH... $ECHO_C" >&6
12973if test "${wx_cv_prog_makevpath+set}" = set; then
12974 echo $ECHO_N "(cached) $ECHO_C" >&6
12975else
12976
12977cat - << EOF > confMake
12978check : file
12979 cp \$? \$@
12980 cp \$? final_file
12981EOF
12982
12983if test ! -d sub ; then
12984 mkdir sub
12985fi
12986echo dummy > sub/file
12987${MAKE-make} -f confMake VPATH=sub 2>&5 > /dev/null
12988RESULT=$?
12989rm -f sub/file check final_file confMake
12990rmdir sub
12991if test "$RESULT" = 0; then
12992 wx_cv_prog_makevpath="yes"
12993else
12994 wx_cv_prog_makevpath="no"
12995fi
12996
12997fi
12998echo "$as_me:$LINENO: result: $wx_cv_prog_makevpath" >&5
12999echo "${ECHO_T}$wx_cv_prog_makevpath" >&6
13000
13001if test "x$wx_cv_prog_makevpath" != "xyes"; then
13002{ { echo "$as_me:$LINENO: error:
13003You need a make-utility that is able to use the variable
13004VPATH correctly.
13005If your version of make does not support VPATH correctly,
13006please install GNU-make (possibly as gmake), and start
13007configure with the following command:
13008export MAKE=gmake; ./configure for sh-type shells
13009setenv MAKE gmake; ./configure for csh-type shells
13010Also please do remember to use gmake in this case every time
13011you are trying to compile.
13012" >&5
13013echo "$as_me: error:
13014You need a make-utility that is able to use the variable
13015VPATH correctly.
13016If your version of make does not support VPATH correctly,
13017please install GNU-make (possibly as gmake), and start
13018configure with the following command:
13019export MAKE=gmake; ./configure for sh-type shells
13020setenv MAKE gmake; ./configure for csh-type shells
13021Also please do remember to use gmake in this case every time
13022you are trying to compile.
13023" >&2;}
13024 { (exit 1); exit 1; }; }
13025fi fi
13026echo "$as_me:$LINENO: checking whether ln -s works" >&5
13027echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
13028LN_S=$as_ln_s
13029if test "$LN_S" = "ln -s"; then
13030 echo "$as_me:$LINENO: result: yes" >&5
13031echo "${ECHO_T}yes" >&6
13032else
13033 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
13034echo "${ECHO_T}no, using $LN_S" >&6
13035fi
13036
13037
13038
9273ffba
DE
13039if test "x$XLCXX" = "xyes"; then
13040 CXXFLAGS="$CXXFLAGS -qunique"
13041fi
13042
13043
4d7ec9f1
DE
13044case "${host}" in
13045 powerpc-*-darwin* )
13046 echo "$as_me:$LINENO: checking if __POWERPC__ is already defined" >&5
13047echo $ECHO_N "checking if __POWERPC__ is already defined... $ECHO_C" >&6
13048 cat >conftest.$ac_ext <<_ACEOF
13049/* confdefs.h. */
13050_ACEOF
13051cat confdefs.h >>conftest.$ac_ext
13052cat >>conftest.$ac_ext <<_ACEOF
13053/* end confdefs.h. */
13054
13055int
13056main ()
13057{
13058#ifndef __POWERPC__
13059 choke me for lack of PowerPC
13060#endif
13061
13062 ;
13063 return 0;
13064}
13065_ACEOF
13066rm -f conftest.$ac_objext
13067if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13068 (eval $ac_compile) 2>conftest.er1
13069 ac_status=$?
13070 grep -v '^ *+' conftest.er1 >conftest.err
13071 rm -f conftest.er1
13072 cat conftest.err >&5
13073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13074 (exit $ac_status); } &&
13075 { ac_try='test -z "$ac_c_werror_flag"
13076 || test ! -s conftest.err'
13077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13078 (eval $ac_try) 2>&5
13079 ac_status=$?
13080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13081 (exit $ac_status); }; } &&
13082 { ac_try='test -s conftest.$ac_objext'
13083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13084 (eval $ac_try) 2>&5
13085 ac_status=$?
13086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13087 (exit $ac_status); }; }; then
13088 echo "$as_me:$LINENO: result: yes" >&5
13089echo "${ECHO_T}yes" >&6
13090else
13091 echo "$as_me: failed program was:" >&5
13092sed 's/^/| /' conftest.$ac_ext >&5
13093
13094echo "$as_me:$LINENO: result: no" >&5
13095echo "${ECHO_T}no" >&6
13096 cat >>confdefs.h <<\_ACEOF
13097#define __POWERPC__ 1
13098_ACEOF
13099
13100
13101fi
13102rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13103 echo "$as_me:$LINENO: checking if CoreFoundation/CFBase.h is usable" >&5
13104echo $ECHO_N "checking if CoreFoundation/CFBase.h is usable... $ECHO_C" >&6
13105 cat >conftest.$ac_ext <<_ACEOF
13106/* confdefs.h. */
13107_ACEOF
13108cat confdefs.h >>conftest.$ac_ext
13109cat >>conftest.$ac_ext <<_ACEOF
13110/* end confdefs.h. */
13111#include <CoreFoundation/CFBase.h>
13112
13113int
13114main ()
13115{
13116
13117 ;
13118 return 0;
13119}
13120_ACEOF
13121rm -f conftest.$ac_objext
13122if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13123 (eval $ac_compile) 2>conftest.er1
13124 ac_status=$?
13125 grep -v '^ *+' conftest.er1 >conftest.err
13126 rm -f conftest.er1
13127 cat conftest.err >&5
13128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13129 (exit $ac_status); } &&
13130 { ac_try='test -z "$ac_c_werror_flag"
13131 || test ! -s conftest.err'
13132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13133 (eval $ac_try) 2>&5
13134 ac_status=$?
13135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13136 (exit $ac_status); }; } &&
13137 { ac_try='test -s conftest.$ac_objext'
13138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13139 (eval $ac_try) 2>&5
13140 ac_status=$?
13141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13142 (exit $ac_status); }; }; then
13143 echo "$as_me:$LINENO: result: yes" >&5
13144echo "${ECHO_T}yes" >&6
13145else
13146 echo "$as_me: failed program was:" >&5
13147sed 's/^/| /' conftest.$ac_ext >&5
13148
13149echo "$as_me:$LINENO: result: no" >&5
13150echo "${ECHO_T}no" >&6
13151 echo "$as_me:$LINENO: checking if __CF_USE_FRAMEWORK_INCLUDES__ is required" >&5
13152echo $ECHO_N "checking if __CF_USE_FRAMEWORK_INCLUDES__ is required... $ECHO_C" >&6
13153 cat >conftest.$ac_ext <<_ACEOF
13154/* confdefs.h. */
13155_ACEOF
13156cat confdefs.h >>conftest.$ac_ext
13157cat >>conftest.$ac_ext <<_ACEOF
13158/* end confdefs.h. */
13159#define __CF_USE_FRAMEWORK_INCLUDES__
13160#include <CoreFoundation/CFBase.h>
13161
13162int
13163main ()
13164{
13165
13166 ;
13167 return 0;
13168}
13169_ACEOF
13170rm -f conftest.$ac_objext
13171if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13172 (eval $ac_compile) 2>conftest.er1
13173 ac_status=$?
13174 grep -v '^ *+' conftest.er1 >conftest.err
13175 rm -f conftest.er1
13176 cat conftest.err >&5
13177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13178 (exit $ac_status); } &&
13179 { ac_try='test -z "$ac_c_werror_flag"
13180 || test ! -s conftest.err'
13181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13182 (eval $ac_try) 2>&5
13183 ac_status=$?
13184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13185 (exit $ac_status); }; } &&
13186 { ac_try='test -s conftest.$ac_objext'
13187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13188 (eval $ac_try) 2>&5
13189 ac_status=$?
13190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13191 (exit $ac_status); }; }; then
13192 echo "$as_me:$LINENO: result: yes" >&5
13193echo "${ECHO_T}yes" >&6
13194 CPPFLAGS="$CPPFLAGS -D__CF_USE_FRAMEWORK_INCLUDES__"
13195else
13196 echo "$as_me: failed program was:" >&5
13197sed 's/^/| /' conftest.$ac_ext >&5
13198
13199{ { echo "$as_me:$LINENO: error: no. CoreFoundation not available.
13200See \`config.log' for more details." >&5
13201echo "$as_me: error: no. CoreFoundation not available.
13202See \`config.log' for more details." >&2;}
13203 { (exit 1); exit 1; }; }
13204
13205fi
13206rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13207
13208
13209fi
13210rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13211 ;;
13212esac
13213
a848cd7e
SC
13214case "${host}" in
13215 *-pc-os2_emx | *-pc-os2-emx )
13216 if test "$wxUSE_MOTIF" = 1 -o "$wxUSE_GTK" = 1 -o "$wxUSE_X11" = 1; then
13217 echo "$as_me:$LINENO: checking for drand48 in -lcExt" >&5
13218echo $ECHO_N "checking for drand48 in -lcExt... $ECHO_C" >&6
13219if test "${ac_cv_lib_cExt_drand48+set}" = set; then
13220 echo $ECHO_N "(cached) $ECHO_C" >&6
13221else
13222 ac_check_lib_save_LIBS=$LIBS
13223LIBS="-lcExt $LIBS"
13224cat >conftest.$ac_ext <<_ACEOF
13225/* confdefs.h. */
13226_ACEOF
13227cat confdefs.h >>conftest.$ac_ext
13228cat >>conftest.$ac_ext <<_ACEOF
13229/* end confdefs.h. */
13230
13231/* Override any gcc2 internal prototype to avoid an error. */
13232#ifdef __cplusplus
13233extern "C"
13234#endif
13235/* We use char because int might match the return type of a gcc2
13236 builtin and then its argument prototype would still apply. */
13237char drand48 ();
13238int
13239main ()
13240{
13241drand48 ();
13242 ;
13243 return 0;
13244}
13245_ACEOF
13246rm -f conftest.$ac_objext conftest$ac_exeext
13247if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 13248 (eval $ac_link) 2>conftest.er1
a848cd7e 13249 ac_status=$?
ac1cb8d3
VS
13250 grep -v '^ *+' conftest.er1 >conftest.err
13251 rm -f conftest.er1
13252 cat conftest.err >&5
a848cd7e
SC
13253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13254 (exit $ac_status); } &&
89be85c2
VS
13255 { ac_try='test -z "$ac_c_werror_flag"
13256 || test ! -s conftest.err'
ac1cb8d3
VS
13257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13258 (eval $ac_try) 2>&5
13259 ac_status=$?
13260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13261 (exit $ac_status); }; } &&
13262 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
13263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13264 (eval $ac_try) 2>&5
13265 ac_status=$?
13266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13267 (exit $ac_status); }; }; then
13268 ac_cv_lib_cExt_drand48=yes
13269else
13270 echo "$as_me: failed program was:" >&5
13271sed 's/^/| /' conftest.$ac_ext >&5
13272
13273ac_cv_lib_cExt_drand48=no
13274fi
ac1cb8d3
VS
13275rm -f conftest.err conftest.$ac_objext \
13276 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
13277LIBS=$ac_check_lib_save_LIBS
13278fi
13279echo "$as_me:$LINENO: result: $ac_cv_lib_cExt_drand48" >&5
13280echo "${ECHO_T}$ac_cv_lib_cExt_drand48" >&6
13281if test $ac_cv_lib_cExt_drand48 = yes; then
13282 LIBS="$LIBS -lcExt"
13283fi
13284
13285 else
13286 RESPROGRAMOBJ="\${top_srcdir}/include/wx/os2/wx.res"
13287 fi
391a765e 13288 echo "$as_me:$LINENO: checking for gcc version" >&5
a848cd7e
SC
13289echo $ECHO_N "checking for gcc version... $ECHO_C" >&6
13290if test "${wx_cv_gccversion+set}" = set; then
13291 echo $ECHO_N "(cached) $ECHO_C" >&6
13292else
13293
391a765e
VS
13294 if test "$cross_compiling" = yes; then
13295 wx_cv_gccversion="EMX2"
13296
13297else
13298 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
13299/* confdefs.h. */
13300_ACEOF
13301cat confdefs.h >>conftest.$ac_ext
13302cat >>conftest.$ac_ext <<_ACEOF
13303/* end confdefs.h. */
13304
391a765e 13305 #include <stdio.h>
a848cd7e 13306
391a765e
VS
13307 int main()
13308 {
13309 FILE *f=fopen("conftestval", "w");
13310 if (!f) exit(1);
13311 fprintf(f,
a848cd7e 13312 #if (__GNUC__ < 3)
391a765e
VS
13313 "EMX2"
13314 #elif (__GNUC__==3) && ((__GNUC_MINOR__ < 2) || ((__GNUC_MINOR__==2) && (__GNUC_PATCHLEVEL__<2)))
13315 "EMX3"
13316 #elif (__GNUC__==3) && (__GNUC_MINOR__==2) && (__GNUC_PATCHLEVEL__==2)
13317 "Innotek5"
13318 #else
13319 "Innotek6"
a848cd7e 13320 #endif
391a765e
VS
13321 );
13322 exit(0);
13323 }
a848cd7e 13324
a848cd7e 13325_ACEOF
391a765e
VS
13326rm -f conftest$ac_exeext
13327if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13328 (eval $ac_link) 2>&5
ac1cb8d3
VS
13329 ac_status=$?
13330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
391a765e 13331 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
a848cd7e
SC
13332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13333 (eval $ac_try) 2>&5
13334 ac_status=$?
13335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13336 (exit $ac_status); }; }; then
391a765e 13337 wx_cv_gccversion=`cat conftestval`
a848cd7e 13338else
391a765e
VS
13339 echo "$as_me: program exited with status $ac_status" >&5
13340echo "$as_me: failed program was:" >&5
a848cd7e
SC
13341sed 's/^/| /' conftest.$ac_ext >&5
13342
391a765e
VS
13343( exit $ac_status )
13344wx_cv_gccversion="EMX2"
a848cd7e 13345fi
391a765e 13346rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e 13347fi
a848cd7e
SC
13348
13349fi
13350echo "$as_me:$LINENO: result: $wx_cv_gccversion" >&5
13351echo "${ECHO_T}$wx_cv_gccversion" >&6
391a765e 13352 if test "$wx_cv_gccversion" = "EMX2"; then
a848cd7e
SC
13353 LIBS="$LIBS -lstdcpp"
13354 LDFLAGS="$LDFLAGS -Zsysv-signals"
13355 else
391a765e 13356 if test "$wx_cv_gccversion" = "EMX3"; then
a848cd7e
SC
13357 LIBS="$LIBS -lstdcxx"
13358 LDFLAGS="$LDFLAGS -Zsysv-signals"
13359 else
13360 LIBS="$LIBS -lstdc++"
13361 fi
13362 fi
94acd38e
DE
13363 if test "$wxUSE_SHARED" = "yes" -a "$wxUSE_OMF" = "no"; then
13364 { echo "$as_me:$LINENO: WARNING: Building DLLs requires OMF mode, enabled" >&5
13365echo "$as_me: WARNING: Building DLLs requires OMF mode, enabled" >&2;}
13366 wxUSE_OMF=yes
2da0c077 13367 enable_omf=yes
94acd38e 13368 fi
a848cd7e 13369 if test "$wxUSE_OMF" = "yes"; then
2da0c077 13370 LDFLAGS="$LDFLAGS -Zlinker /EXEPACK -Zlinker /PMTYPE:PM"
a848cd7e
SC
13371 fi
13372 ;;
13373 *)
13374
13375
13376
13377 ac_ext=cc
13378ac_cpp='$CXXCPP $CPPFLAGS'
13379ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13380ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13381ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13382
13383
95986553 13384 echo "$as_me:$LINENO: checking for strcasecmp() in string.h" >&5
a848cd7e
SC
13385echo $ECHO_N "checking for strcasecmp() in string.h... $ECHO_C" >&6
13386if test "${ac_cv_string_strcasecmp+set}" = set; then
13387 echo $ECHO_N "(cached) $ECHO_C" >&6
13388else
13389
13390 cat >conftest.$ac_ext <<_ACEOF
13391/* confdefs.h. */
13392_ACEOF
13393cat confdefs.h >>conftest.$ac_ext
13394cat >>conftest.$ac_ext <<_ACEOF
13395/* end confdefs.h. */
13396
13397 #include <string.h>
13398
13399int
13400main ()
13401{
13402
13403 strcasecmp("foo", "bar");
13404
13405 ;
13406 return 0;
13407}
13408_ACEOF
13409rm -f conftest.$ac_objext conftest$ac_exeext
13410if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 13411 (eval $ac_link) 2>conftest.er1
a848cd7e 13412 ac_status=$?
ac1cb8d3
VS
13413 grep -v '^ *+' conftest.er1 >conftest.err
13414 rm -f conftest.er1
13415 cat conftest.err >&5
a848cd7e
SC
13416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13417 (exit $ac_status); } &&
89be85c2
VS
13418 { ac_try='test -z "$ac_cxx_werror_flag"
13419 || test ! -s conftest.err'
ac1cb8d3
VS
13420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13421 (eval $ac_try) 2>&5
13422 ac_status=$?
13423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13424 (exit $ac_status); }; } &&
13425 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
13426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13427 (eval $ac_try) 2>&5
13428 ac_status=$?
13429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13430 (exit $ac_status); }; }; then
13431 ac_cv_string_strcasecmp=yes
13432else
13433 echo "$as_me: failed program was:" >&5
13434sed 's/^/| /' conftest.$ac_ext >&5
13435
13436ac_cv_string_strcasecmp=no
13437
13438fi
ac1cb8d3
VS
13439rm -f conftest.err conftest.$ac_objext \
13440 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
13441
13442fi
13443echo "$as_me:$LINENO: result: $ac_cv_string_strcasecmp" >&5
13444echo "${ECHO_T}$ac_cv_string_strcasecmp" >&6
13445
13446 if test x"$ac_cv_string_strcasecmp" = "xyes"; then
13447 cat >>confdefs.h <<\_ACEOF
13448#define HAVE_STRCASECMP_IN_STRING_H 1
13449_ACEOF
13450
13451 else
13452 echo "$as_me:$LINENO: checking for strcasecmp() in strings.h" >&5
13453echo $ECHO_N "checking for strcasecmp() in strings.h... $ECHO_C" >&6
13454if test "${ac_cv_strings_strcasecmp+set}" = set; then
13455 echo $ECHO_N "(cached) $ECHO_C" >&6
13456else
13457
13458 cat >conftest.$ac_ext <<_ACEOF
13459/* confdefs.h. */
13460_ACEOF
13461cat confdefs.h >>conftest.$ac_ext
13462cat >>conftest.$ac_ext <<_ACEOF
13463/* end confdefs.h. */
13464
13465 #include <strings.h>
13466
13467int
13468main ()
13469{
13470
13471 strcasecmp("foo", "bar");
13472
13473 ;
13474 return 0;
13475}
13476_ACEOF
13477rm -f conftest.$ac_objext conftest$ac_exeext
13478if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 13479 (eval $ac_link) 2>conftest.er1
a848cd7e 13480 ac_status=$?
ac1cb8d3
VS
13481 grep -v '^ *+' conftest.er1 >conftest.err
13482 rm -f conftest.er1
13483 cat conftest.err >&5
a848cd7e
SC
13484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13485 (exit $ac_status); } &&
89be85c2
VS
13486 { ac_try='test -z "$ac_cxx_werror_flag"
13487 || test ! -s conftest.err'
ac1cb8d3
VS
13488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13489 (eval $ac_try) 2>&5
13490 ac_status=$?
13491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13492 (exit $ac_status); }; } &&
13493 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
13494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13495 (eval $ac_try) 2>&5
13496 ac_status=$?
13497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13498 (exit $ac_status); }; }; then
13499 ac_cv_strings_strcasecmp=yes
13500else
13501 echo "$as_me: failed program was:" >&5
13502sed 's/^/| /' conftest.$ac_ext >&5
13503
13504ac_cv_strings_strcasecmp=no
13505
13506fi
ac1cb8d3
VS
13507rm -f conftest.err conftest.$ac_objext \
13508 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
13509
13510fi
13511echo "$as_me:$LINENO: result: $ac_cv_strings_strcasecmp" >&5
13512echo "${ECHO_T}$ac_cv_strings_strcasecmp" >&6
13513
0c3c69fc 13514 if test x"$ac_cv_strings_strcasecmp" = "xyes"; then
a848cd7e
SC
13515 cat >>confdefs.h <<\_ACEOF
13516#define HAVE_STRCASECMP_IN_STRINGS_H 1
13517_ACEOF
13518
13519 else
13520 { { echo "$as_me:$LINENO: error: No case-insensitive string comparison function found." >&5
13521echo "$as_me: error: No case-insensitive string comparison function found." >&2;}
13522 { (exit 1); exit 1; }; }
13523 fi
13524 fi
13525
13526 ac_ext=c
13527ac_cpp='$CPP $CPPFLAGS'
13528ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13529ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13530ac_compiler_gnu=$ac_cv_c_compiler_gnu
13531
13532 ;;
13533esac
13534
13535
13536echo "$as_me:$LINENO: checking for ANSI C header files" >&5
13537echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
13538if test "${ac_cv_header_stdc+set}" = set; then
13539 echo $ECHO_N "(cached) $ECHO_C" >&6
13540else
13541 cat >conftest.$ac_ext <<_ACEOF
13542/* confdefs.h. */
13543_ACEOF
13544cat confdefs.h >>conftest.$ac_ext
13545cat >>conftest.$ac_ext <<_ACEOF
13546/* end confdefs.h. */
13547#include <stdlib.h>
13548#include <stdarg.h>
13549#include <string.h>
13550#include <float.h>
13551
13552int
13553main ()
13554{
13555
13556 ;
13557 return 0;
13558}
13559_ACEOF
13560rm -f conftest.$ac_objext
13561if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 13562 (eval $ac_compile) 2>conftest.er1
a848cd7e 13563 ac_status=$?
ac1cb8d3
VS
13564 grep -v '^ *+' conftest.er1 >conftest.err
13565 rm -f conftest.er1
13566 cat conftest.err >&5
a848cd7e
SC
13567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13568 (exit $ac_status); } &&
89be85c2
VS
13569 { ac_try='test -z "$ac_c_werror_flag"
13570 || test ! -s conftest.err'
ac1cb8d3
VS
13571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13572 (eval $ac_try) 2>&5
13573 ac_status=$?
13574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13575 (exit $ac_status); }; } &&
13576 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
13577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13578 (eval $ac_try) 2>&5
13579 ac_status=$?
13580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13581 (exit $ac_status); }; }; then
13582 ac_cv_header_stdc=yes
13583else
13584 echo "$as_me: failed program was:" >&5
13585sed 's/^/| /' conftest.$ac_ext >&5
13586
13587ac_cv_header_stdc=no
13588fi
ac1cb8d3 13589rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
13590
13591if test $ac_cv_header_stdc = yes; then
13592 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
13593 cat >conftest.$ac_ext <<_ACEOF
13594/* confdefs.h. */
13595_ACEOF
13596cat confdefs.h >>conftest.$ac_ext
13597cat >>conftest.$ac_ext <<_ACEOF
13598/* end confdefs.h. */
13599#include <string.h>
13600
13601_ACEOF
13602if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13603 $EGREP "memchr" >/dev/null 2>&1; then
13604 :
13605else
13606 ac_cv_header_stdc=no
13607fi
13608rm -f conftest*
13609
13610fi
13611
13612if test $ac_cv_header_stdc = yes; then
13613 # ISC 2.0.2 stdlib.h does not declare free, 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 <stdlib.h>
13621
13622_ACEOF
13623if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13624 $EGREP "free" >/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 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
13635 if test "$cross_compiling" = yes; then
13636 :
13637else
13638 cat >conftest.$ac_ext <<_ACEOF
13639/* confdefs.h. */
13640_ACEOF
13641cat confdefs.h >>conftest.$ac_ext
13642cat >>conftest.$ac_ext <<_ACEOF
13643/* end confdefs.h. */
13644#include <ctype.h>
13645#if ((' ' & 0x0FF) == 0x020)
13646# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
13647# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
13648#else
13649# define ISLOWER(c) \
ac1cb8d3
VS
13650 (('a' <= (c) && (c) <= 'i') \
13651 || ('j' <= (c) && (c) <= 'r') \
13652 || ('s' <= (c) && (c) <= 'z'))
a848cd7e
SC
13653# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
13654#endif
13655
13656#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
13657int
13658main ()
13659{
13660 int i;
13661 for (i = 0; i < 256; i++)
13662 if (XOR (islower (i), ISLOWER (i))
ac1cb8d3 13663 || toupper (i) != TOUPPER (i))
a848cd7e
SC
13664 exit(2);
13665 exit (0);
13666}
13667_ACEOF
13668rm -f conftest$ac_exeext
13669if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13670 (eval $ac_link) 2>&5
13671 ac_status=$?
13672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13673 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13675 (eval $ac_try) 2>&5
13676 ac_status=$?
13677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13678 (exit $ac_status); }; }; then
13679 :
13680else
13681 echo "$as_me: program exited with status $ac_status" >&5
13682echo "$as_me: failed program was:" >&5
13683sed 's/^/| /' conftest.$ac_ext >&5
13684
13685( exit $ac_status )
13686ac_cv_header_stdc=no
13687fi
ac1cb8d3 13688rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
13689fi
13690fi
13691fi
13692echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
13693echo "${ECHO_T}$ac_cv_header_stdc" >&6
13694if test $ac_cv_header_stdc = yes; then
13695
13696cat >>confdefs.h <<\_ACEOF
13697#define STDC_HEADERS 1
13698_ACEOF
13699
13700fi
13701
13702# On IRIX 5.3, sys/types and inttypes.h are conflicting.
13703
13704
13705
13706
13707
13708
13709
13710
13711
13712for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
ac1cb8d3 13713 inttypes.h stdint.h unistd.h
a848cd7e
SC
13714do
13715as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13716echo "$as_me:$LINENO: checking for $ac_header" >&5
13717echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13718if eval "test \"\${$as_ac_Header+set}\" = set"; then
13719 echo $ECHO_N "(cached) $ECHO_C" >&6
13720else
13721 cat >conftest.$ac_ext <<_ACEOF
13722/* confdefs.h. */
13723_ACEOF
13724cat confdefs.h >>conftest.$ac_ext
13725cat >>conftest.$ac_ext <<_ACEOF
13726/* end confdefs.h. */
13727$ac_includes_default
13728
13729#include <$ac_header>
13730_ACEOF
13731rm -f conftest.$ac_objext
13732if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 13733 (eval $ac_compile) 2>conftest.er1
a848cd7e 13734 ac_status=$?
ac1cb8d3
VS
13735 grep -v '^ *+' conftest.er1 >conftest.err
13736 rm -f conftest.er1
13737 cat conftest.err >&5
a848cd7e
SC
13738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13739 (exit $ac_status); } &&
89be85c2
VS
13740 { ac_try='test -z "$ac_c_werror_flag"
13741 || test ! -s conftest.err'
ac1cb8d3
VS
13742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13743 (eval $ac_try) 2>&5
13744 ac_status=$?
13745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13746 (exit $ac_status); }; } &&
13747 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
13748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13749 (eval $ac_try) 2>&5
13750 ac_status=$?
13751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13752 (exit $ac_status); }; }; then
13753 eval "$as_ac_Header=yes"
13754else
13755 echo "$as_me: failed program was:" >&5
13756sed 's/^/| /' conftest.$ac_ext >&5
13757
13758eval "$as_ac_Header=no"
13759fi
ac1cb8d3 13760rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
13761fi
13762echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13763echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13764if test `eval echo '${'$as_ac_Header'}'` = yes; then
13765 cat >>confdefs.h <<_ACEOF
13766#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13767_ACEOF
13768
13769fi
13770
13771done
13772
13773
13774
13775for ac_header in stdlib.h
13776do
13777as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13778if eval "test \"\${$as_ac_Header+set}\" = set"; then
13779 echo "$as_me:$LINENO: checking for $ac_header" >&5
13780echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13781if eval "test \"\${$as_ac_Header+set}\" = set"; then
13782 echo $ECHO_N "(cached) $ECHO_C" >&6
13783fi
13784echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13785echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13786else
13787 # Is the header compilable?
13788echo "$as_me:$LINENO: checking $ac_header usability" >&5
13789echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13790cat >conftest.$ac_ext <<_ACEOF
13791/* confdefs.h. */
13792_ACEOF
13793cat confdefs.h >>conftest.$ac_ext
13794cat >>conftest.$ac_ext <<_ACEOF
13795/* end confdefs.h. */
13796$ac_includes_default
13797#include <$ac_header>
13798_ACEOF
13799rm -f conftest.$ac_objext
13800if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 13801 (eval $ac_compile) 2>conftest.er1
a848cd7e 13802 ac_status=$?
ac1cb8d3
VS
13803 grep -v '^ *+' conftest.er1 >conftest.err
13804 rm -f conftest.er1
13805 cat conftest.err >&5
a848cd7e
SC
13806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13807 (exit $ac_status); } &&
89be85c2
VS
13808 { ac_try='test -z "$ac_c_werror_flag"
13809 || test ! -s conftest.err'
ac1cb8d3
VS
13810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13811 (eval $ac_try) 2>&5
13812 ac_status=$?
13813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13814 (exit $ac_status); }; } &&
13815 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
13816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13817 (eval $ac_try) 2>&5
13818 ac_status=$?
13819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13820 (exit $ac_status); }; }; then
13821 ac_header_compiler=yes
13822else
13823 echo "$as_me: failed program was:" >&5
13824sed 's/^/| /' conftest.$ac_ext >&5
13825
13826ac_header_compiler=no
13827fi
ac1cb8d3 13828rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
13829echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13830echo "${ECHO_T}$ac_header_compiler" >&6
13831
13832# Is the header present?
13833echo "$as_me:$LINENO: checking $ac_header presence" >&5
13834echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13835cat >conftest.$ac_ext <<_ACEOF
13836/* confdefs.h. */
13837_ACEOF
13838cat confdefs.h >>conftest.$ac_ext
13839cat >>conftest.$ac_ext <<_ACEOF
13840/* end confdefs.h. */
13841#include <$ac_header>
13842_ACEOF
13843if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13844 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13845 ac_status=$?
13846 grep -v '^ *+' conftest.er1 >conftest.err
13847 rm -f conftest.er1
13848 cat conftest.err >&5
13849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13850 (exit $ac_status); } >/dev/null; then
13851 if test -s conftest.err; then
13852 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 13853 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
13854 else
13855 ac_cpp_err=
13856 fi
13857else
13858 ac_cpp_err=yes
13859fi
13860if test -z "$ac_cpp_err"; then
13861 ac_header_preproc=yes
13862else
13863 echo "$as_me: failed program was:" >&5
13864sed 's/^/| /' conftest.$ac_ext >&5
13865
13866 ac_header_preproc=no
13867fi
13868rm -f conftest.err conftest.$ac_ext
13869echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13870echo "${ECHO_T}$ac_header_preproc" >&6
13871
13872# So? What about this header?
ac1cb8d3
VS
13873case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13874 yes:no: )
a848cd7e
SC
13875 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13876echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
13877 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13878echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13879 ac_header_preproc=yes
a848cd7e 13880 ;;
ac1cb8d3 13881 no:yes:* )
a848cd7e
SC
13882 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13883echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
13884 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13885echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13886 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13887echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13888 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13889echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
13890 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13891echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
13892 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13893echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
13894 (
13895 cat <<\_ASBOX
ac1cb8d3
VS
13896## ----------------------------------------- ##
13897## Report this to wx-dev@lists.wxwidgets.org ##
13898## ----------------------------------------- ##
a848cd7e
SC
13899_ASBOX
13900 ) |
13901 sed "s/^/$as_me: WARNING: /" >&2
13902 ;;
13903esac
13904echo "$as_me:$LINENO: checking for $ac_header" >&5
13905echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13906if eval "test \"\${$as_ac_Header+set}\" = set"; then
13907 echo $ECHO_N "(cached) $ECHO_C" >&6
13908else
ac1cb8d3 13909 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
13910fi
13911echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13912echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13913
13914fi
13915if test `eval echo '${'$as_ac_Header'}'` = yes; then
13916 cat >>confdefs.h <<_ACEOF
13917#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13918_ACEOF
13919
13920fi
13921
13922done
13923
13924
13925for ac_header in malloc.h
13926do
13927as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13928if eval "test \"\${$as_ac_Header+set}\" = set"; then
13929 echo "$as_me:$LINENO: checking for $ac_header" >&5
13930echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13931if eval "test \"\${$as_ac_Header+set}\" = set"; then
13932 echo $ECHO_N "(cached) $ECHO_C" >&6
13933fi
13934echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13935echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13936else
13937 # Is the header compilable?
13938echo "$as_me:$LINENO: checking $ac_header usability" >&5
13939echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13940cat >conftest.$ac_ext <<_ACEOF
13941/* confdefs.h. */
13942_ACEOF
13943cat confdefs.h >>conftest.$ac_ext
13944cat >>conftest.$ac_ext <<_ACEOF
13945/* end confdefs.h. */
13946$ac_includes_default
13947#include <$ac_header>
13948_ACEOF
13949rm -f conftest.$ac_objext
13950if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 13951 (eval $ac_compile) 2>conftest.er1
a848cd7e 13952 ac_status=$?
ac1cb8d3
VS
13953 grep -v '^ *+' conftest.er1 >conftest.err
13954 rm -f conftest.er1
13955 cat conftest.err >&5
a848cd7e
SC
13956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13957 (exit $ac_status); } &&
89be85c2
VS
13958 { ac_try='test -z "$ac_c_werror_flag"
13959 || test ! -s conftest.err'
ac1cb8d3
VS
13960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13961 (eval $ac_try) 2>&5
13962 ac_status=$?
13963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13964 (exit $ac_status); }; } &&
13965 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
13966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13967 (eval $ac_try) 2>&5
13968 ac_status=$?
13969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13970 (exit $ac_status); }; }; then
13971 ac_header_compiler=yes
13972else
13973 echo "$as_me: failed program was:" >&5
13974sed 's/^/| /' conftest.$ac_ext >&5
13975
13976ac_header_compiler=no
13977fi
ac1cb8d3 13978rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
13979echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13980echo "${ECHO_T}$ac_header_compiler" >&6
13981
13982# Is the header present?
13983echo "$as_me:$LINENO: checking $ac_header presence" >&5
13984echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13985cat >conftest.$ac_ext <<_ACEOF
13986/* confdefs.h. */
13987_ACEOF
13988cat confdefs.h >>conftest.$ac_ext
13989cat >>conftest.$ac_ext <<_ACEOF
13990/* end confdefs.h. */
13991#include <$ac_header>
13992_ACEOF
13993if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13994 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13995 ac_status=$?
13996 grep -v '^ *+' conftest.er1 >conftest.err
13997 rm -f conftest.er1
13998 cat conftest.err >&5
13999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14000 (exit $ac_status); } >/dev/null; then
14001 if test -s conftest.err; then
14002 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 14003 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
14004 else
14005 ac_cpp_err=
14006 fi
14007else
14008 ac_cpp_err=yes
14009fi
14010if test -z "$ac_cpp_err"; then
14011 ac_header_preproc=yes
14012else
14013 echo "$as_me: failed program was:" >&5
14014sed 's/^/| /' conftest.$ac_ext >&5
14015
14016 ac_header_preproc=no
14017fi
14018rm -f conftest.err conftest.$ac_ext
14019echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14020echo "${ECHO_T}$ac_header_preproc" >&6
14021
14022# So? What about this header?
ac1cb8d3
VS
14023case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14024 yes:no: )
a848cd7e
SC
14025 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14026echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
14027 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14028echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14029 ac_header_preproc=yes
a848cd7e 14030 ;;
ac1cb8d3 14031 no:yes:* )
a848cd7e
SC
14032 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14033echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
14034 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14035echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14036 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14037echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14038 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14039echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
14040 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14041echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
14042 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14043echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
14044 (
14045 cat <<\_ASBOX
ac1cb8d3
VS
14046## ----------------------------------------- ##
14047## Report this to wx-dev@lists.wxwidgets.org ##
14048## ----------------------------------------- ##
a848cd7e
SC
14049_ASBOX
14050 ) |
14051 sed "s/^/$as_me: WARNING: /" >&2
14052 ;;
14053esac
14054echo "$as_me:$LINENO: checking for $ac_header" >&5
14055echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14056if eval "test \"\${$as_ac_Header+set}\" = set"; then
14057 echo $ECHO_N "(cached) $ECHO_C" >&6
14058else
ac1cb8d3 14059 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
14060fi
14061echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14062echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14063
14064fi
14065if test `eval echo '${'$as_ac_Header'}'` = yes; then
14066 cat >>confdefs.h <<_ACEOF
14067#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14068_ACEOF
14069
14070fi
14071
14072done
14073
14074
14075for ac_header in unistd.h
14076do
14077as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14078if eval "test \"\${$as_ac_Header+set}\" = set"; then
14079 echo "$as_me:$LINENO: checking for $ac_header" >&5
14080echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14081if eval "test \"\${$as_ac_Header+set}\" = set"; then
14082 echo $ECHO_N "(cached) $ECHO_C" >&6
14083fi
14084echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14085echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14086else
14087 # Is the header compilable?
14088echo "$as_me:$LINENO: checking $ac_header usability" >&5
14089echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14090cat >conftest.$ac_ext <<_ACEOF
14091/* confdefs.h. */
14092_ACEOF
14093cat confdefs.h >>conftest.$ac_ext
14094cat >>conftest.$ac_ext <<_ACEOF
14095/* end confdefs.h. */
14096$ac_includes_default
14097#include <$ac_header>
14098_ACEOF
14099rm -f conftest.$ac_objext
14100if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14101 (eval $ac_compile) 2>conftest.er1
a848cd7e 14102 ac_status=$?
ac1cb8d3
VS
14103 grep -v '^ *+' conftest.er1 >conftest.err
14104 rm -f conftest.er1
14105 cat conftest.err >&5
a848cd7e
SC
14106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14107 (exit $ac_status); } &&
89be85c2
VS
14108 { ac_try='test -z "$ac_c_werror_flag"
14109 || test ! -s conftest.err'
ac1cb8d3
VS
14110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14111 (eval $ac_try) 2>&5
14112 ac_status=$?
14113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14114 (exit $ac_status); }; } &&
14115 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14117 (eval $ac_try) 2>&5
14118 ac_status=$?
14119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14120 (exit $ac_status); }; }; then
14121 ac_header_compiler=yes
14122else
14123 echo "$as_me: failed program was:" >&5
14124sed 's/^/| /' conftest.$ac_ext >&5
14125
14126ac_header_compiler=no
14127fi
ac1cb8d3 14128rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14129echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14130echo "${ECHO_T}$ac_header_compiler" >&6
14131
14132# Is the header present?
14133echo "$as_me:$LINENO: checking $ac_header presence" >&5
14134echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14135cat >conftest.$ac_ext <<_ACEOF
14136/* confdefs.h. */
14137_ACEOF
14138cat confdefs.h >>conftest.$ac_ext
14139cat >>conftest.$ac_ext <<_ACEOF
14140/* end confdefs.h. */
14141#include <$ac_header>
14142_ACEOF
14143if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14144 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14145 ac_status=$?
14146 grep -v '^ *+' conftest.er1 >conftest.err
14147 rm -f conftest.er1
14148 cat conftest.err >&5
14149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14150 (exit $ac_status); } >/dev/null; then
14151 if test -s conftest.err; then
14152 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 14153 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
14154 else
14155 ac_cpp_err=
14156 fi
14157else
14158 ac_cpp_err=yes
14159fi
14160if test -z "$ac_cpp_err"; then
14161 ac_header_preproc=yes
14162else
14163 echo "$as_me: failed program was:" >&5
14164sed 's/^/| /' conftest.$ac_ext >&5
14165
14166 ac_header_preproc=no
14167fi
14168rm -f conftest.err conftest.$ac_ext
14169echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14170echo "${ECHO_T}$ac_header_preproc" >&6
14171
14172# So? What about this header?
ac1cb8d3
VS
14173case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14174 yes:no: )
a848cd7e
SC
14175 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14176echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
14177 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14178echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14179 ac_header_preproc=yes
a848cd7e 14180 ;;
ac1cb8d3 14181 no:yes:* )
a848cd7e
SC
14182 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14183echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
14184 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14185echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14186 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14187echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14188 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14189echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
14190 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14191echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
14192 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14193echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
14194 (
14195 cat <<\_ASBOX
ac1cb8d3
VS
14196## ----------------------------------------- ##
14197## Report this to wx-dev@lists.wxwidgets.org ##
14198## ----------------------------------------- ##
a848cd7e
SC
14199_ASBOX
14200 ) |
14201 sed "s/^/$as_me: WARNING: /" >&2
14202 ;;
14203esac
14204echo "$as_me:$LINENO: checking for $ac_header" >&5
14205echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14206if eval "test \"\${$as_ac_Header+set}\" = set"; then
14207 echo $ECHO_N "(cached) $ECHO_C" >&6
14208else
ac1cb8d3 14209 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
14210fi
14211echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14212echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14213
14214fi
14215if test `eval echo '${'$as_ac_Header'}'` = yes; then
14216 cat >>confdefs.h <<_ACEOF
14217#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14218_ACEOF
14219
14220fi
14221
14222done
14223
14224
14225for ac_header in wchar.h
14226do
14227as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14228if eval "test \"\${$as_ac_Header+set}\" = set"; then
14229 echo "$as_me:$LINENO: checking for $ac_header" >&5
14230echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14231if eval "test \"\${$as_ac_Header+set}\" = set"; then
14232 echo $ECHO_N "(cached) $ECHO_C" >&6
14233fi
14234echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14235echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14236else
14237 # Is the header compilable?
14238echo "$as_me:$LINENO: checking $ac_header usability" >&5
14239echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14240cat >conftest.$ac_ext <<_ACEOF
14241/* confdefs.h. */
14242_ACEOF
14243cat confdefs.h >>conftest.$ac_ext
14244cat >>conftest.$ac_ext <<_ACEOF
14245/* end confdefs.h. */
14246$ac_includes_default
14247#include <$ac_header>
14248_ACEOF
14249rm -f conftest.$ac_objext
14250if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14251 (eval $ac_compile) 2>conftest.er1
a848cd7e 14252 ac_status=$?
ac1cb8d3
VS
14253 grep -v '^ *+' conftest.er1 >conftest.err
14254 rm -f conftest.er1
14255 cat conftest.err >&5
a848cd7e
SC
14256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14257 (exit $ac_status); } &&
89be85c2
VS
14258 { ac_try='test -z "$ac_c_werror_flag"
14259 || test ! -s conftest.err'
ac1cb8d3
VS
14260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14261 (eval $ac_try) 2>&5
14262 ac_status=$?
14263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14264 (exit $ac_status); }; } &&
14265 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14267 (eval $ac_try) 2>&5
14268 ac_status=$?
14269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14270 (exit $ac_status); }; }; then
14271 ac_header_compiler=yes
14272else
14273 echo "$as_me: failed program was:" >&5
14274sed 's/^/| /' conftest.$ac_ext >&5
14275
14276ac_header_compiler=no
14277fi
ac1cb8d3 14278rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14279echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14280echo "${ECHO_T}$ac_header_compiler" >&6
14281
14282# Is the header present?
14283echo "$as_me:$LINENO: checking $ac_header presence" >&5
14284echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14285cat >conftest.$ac_ext <<_ACEOF
14286/* confdefs.h. */
14287_ACEOF
14288cat confdefs.h >>conftest.$ac_ext
14289cat >>conftest.$ac_ext <<_ACEOF
14290/* end confdefs.h. */
14291#include <$ac_header>
14292_ACEOF
14293if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14294 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14295 ac_status=$?
14296 grep -v '^ *+' conftest.er1 >conftest.err
14297 rm -f conftest.er1
14298 cat conftest.err >&5
14299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14300 (exit $ac_status); } >/dev/null; then
14301 if test -s conftest.err; then
14302 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 14303 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
14304 else
14305 ac_cpp_err=
14306 fi
14307else
14308 ac_cpp_err=yes
14309fi
14310if test -z "$ac_cpp_err"; then
14311 ac_header_preproc=yes
14312else
14313 echo "$as_me: failed program was:" >&5
14314sed 's/^/| /' conftest.$ac_ext >&5
14315
14316 ac_header_preproc=no
14317fi
14318rm -f conftest.err conftest.$ac_ext
14319echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14320echo "${ECHO_T}$ac_header_preproc" >&6
14321
14322# So? What about this header?
ac1cb8d3
VS
14323case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14324 yes:no: )
a848cd7e
SC
14325 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14326echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
14327 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14328echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14329 ac_header_preproc=yes
a848cd7e 14330 ;;
ac1cb8d3 14331 no:yes:* )
a848cd7e
SC
14332 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14333echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
14334 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14335echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14336 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14337echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14338 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14339echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
14340 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14341echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
14342 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14343echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
14344 (
14345 cat <<\_ASBOX
ac1cb8d3
VS
14346## ----------------------------------------- ##
14347## Report this to wx-dev@lists.wxwidgets.org ##
14348## ----------------------------------------- ##
a848cd7e
SC
14349_ASBOX
14350 ) |
14351 sed "s/^/$as_me: WARNING: /" >&2
14352 ;;
14353esac
14354echo "$as_me:$LINENO: checking for $ac_header" >&5
14355echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14356if eval "test \"\${$as_ac_Header+set}\" = set"; then
14357 echo $ECHO_N "(cached) $ECHO_C" >&6
14358else
ac1cb8d3 14359 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
14360fi
14361echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14362echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14363
14364fi
14365if test `eval echo '${'$as_ac_Header'}'` = yes; then
14366 cat >>confdefs.h <<_ACEOF
14367#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14368_ACEOF
14369
14370fi
14371
14372done
14373
14374
14375if test "$ac_cv_header_wchar_h" != "yes"; then
14376
14377for ac_header in wcstr.h
14378do
14379as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14380if eval "test \"\${$as_ac_Header+set}\" = set"; then
14381 echo "$as_me:$LINENO: checking for $ac_header" >&5
14382echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14383if eval "test \"\${$as_ac_Header+set}\" = set"; then
14384 echo $ECHO_N "(cached) $ECHO_C" >&6
14385fi
14386echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14387echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14388else
14389 # Is the header compilable?
14390echo "$as_me:$LINENO: checking $ac_header usability" >&5
14391echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14392cat >conftest.$ac_ext <<_ACEOF
14393/* confdefs.h. */
14394_ACEOF
14395cat confdefs.h >>conftest.$ac_ext
14396cat >>conftest.$ac_ext <<_ACEOF
14397/* end confdefs.h. */
14398$ac_includes_default
14399#include <$ac_header>
14400_ACEOF
14401rm -f conftest.$ac_objext
14402if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14403 (eval $ac_compile) 2>conftest.er1
a848cd7e 14404 ac_status=$?
ac1cb8d3
VS
14405 grep -v '^ *+' conftest.er1 >conftest.err
14406 rm -f conftest.er1
14407 cat conftest.err >&5
a848cd7e
SC
14408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14409 (exit $ac_status); } &&
89be85c2
VS
14410 { ac_try='test -z "$ac_c_werror_flag"
14411 || test ! -s conftest.err'
ac1cb8d3
VS
14412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14413 (eval $ac_try) 2>&5
14414 ac_status=$?
14415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14416 (exit $ac_status); }; } &&
14417 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14419 (eval $ac_try) 2>&5
14420 ac_status=$?
14421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14422 (exit $ac_status); }; }; then
14423 ac_header_compiler=yes
14424else
14425 echo "$as_me: failed program was:" >&5
14426sed 's/^/| /' conftest.$ac_ext >&5
14427
14428ac_header_compiler=no
14429fi
ac1cb8d3 14430rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14431echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14432echo "${ECHO_T}$ac_header_compiler" >&6
14433
14434# Is the header present?
14435echo "$as_me:$LINENO: checking $ac_header presence" >&5
14436echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14437cat >conftest.$ac_ext <<_ACEOF
14438/* confdefs.h. */
14439_ACEOF
14440cat confdefs.h >>conftest.$ac_ext
14441cat >>conftest.$ac_ext <<_ACEOF
14442/* end confdefs.h. */
14443#include <$ac_header>
14444_ACEOF
14445if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14446 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14447 ac_status=$?
14448 grep -v '^ *+' conftest.er1 >conftest.err
14449 rm -f conftest.er1
14450 cat conftest.err >&5
14451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14452 (exit $ac_status); } >/dev/null; then
14453 if test -s conftest.err; then
14454 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 14455 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
14456 else
14457 ac_cpp_err=
14458 fi
14459else
14460 ac_cpp_err=yes
14461fi
14462if test -z "$ac_cpp_err"; then
14463 ac_header_preproc=yes
14464else
14465 echo "$as_me: failed program was:" >&5
14466sed 's/^/| /' conftest.$ac_ext >&5
14467
14468 ac_header_preproc=no
14469fi
14470rm -f conftest.err conftest.$ac_ext
14471echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14472echo "${ECHO_T}$ac_header_preproc" >&6
14473
14474# So? What about this header?
ac1cb8d3
VS
14475case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14476 yes:no: )
a848cd7e
SC
14477 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14478echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
14479 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14480echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14481 ac_header_preproc=yes
a848cd7e 14482 ;;
ac1cb8d3 14483 no:yes:* )
a848cd7e
SC
14484 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14485echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
14486 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14487echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14488 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14489echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14490 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14491echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
14492 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14493echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
14494 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14495echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
14496 (
14497 cat <<\_ASBOX
ac1cb8d3
VS
14498## ----------------------------------------- ##
14499## Report this to wx-dev@lists.wxwidgets.org ##
14500## ----------------------------------------- ##
a848cd7e
SC
14501_ASBOX
14502 ) |
14503 sed "s/^/$as_me: WARNING: /" >&2
14504 ;;
14505esac
14506echo "$as_me:$LINENO: checking for $ac_header" >&5
14507echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14508if eval "test \"\${$as_ac_Header+set}\" = set"; then
14509 echo $ECHO_N "(cached) $ECHO_C" >&6
14510else
ac1cb8d3 14511 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
14512fi
14513echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14514echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14515
14516fi
14517if test `eval echo '${'$as_ac_Header'}'` = yes; then
14518 cat >>confdefs.h <<_ACEOF
14519#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14520_ACEOF
14521
14522fi
14523
14524done
14525
14526fi
14527
14528
14529for ac_header in fnmatch.h
14530do
14531as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14532if eval "test \"\${$as_ac_Header+set}\" = set"; then
14533 echo "$as_me:$LINENO: checking for $ac_header" >&5
14534echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14535if eval "test \"\${$as_ac_Header+set}\" = set"; then
14536 echo $ECHO_N "(cached) $ECHO_C" >&6
14537fi
14538echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14539echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14540else
14541 # Is the header compilable?
14542echo "$as_me:$LINENO: checking $ac_header usability" >&5
14543echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14544cat >conftest.$ac_ext <<_ACEOF
14545/* confdefs.h. */
14546_ACEOF
14547cat confdefs.h >>conftest.$ac_ext
14548cat >>conftest.$ac_ext <<_ACEOF
14549/* end confdefs.h. */
14550$ac_includes_default
14551#include <$ac_header>
14552_ACEOF
14553rm -f conftest.$ac_objext
14554if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14555 (eval $ac_compile) 2>conftest.er1
a848cd7e 14556 ac_status=$?
ac1cb8d3
VS
14557 grep -v '^ *+' conftest.er1 >conftest.err
14558 rm -f conftest.er1
14559 cat conftest.err >&5
a848cd7e
SC
14560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14561 (exit $ac_status); } &&
89be85c2
VS
14562 { ac_try='test -z "$ac_c_werror_flag"
14563 || test ! -s conftest.err'
ac1cb8d3
VS
14564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14565 (eval $ac_try) 2>&5
14566 ac_status=$?
14567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14568 (exit $ac_status); }; } &&
14569 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14571 (eval $ac_try) 2>&5
14572 ac_status=$?
14573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14574 (exit $ac_status); }; }; then
14575 ac_header_compiler=yes
14576else
14577 echo "$as_me: failed program was:" >&5
14578sed 's/^/| /' conftest.$ac_ext >&5
14579
14580ac_header_compiler=no
14581fi
ac1cb8d3 14582rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14583echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14584echo "${ECHO_T}$ac_header_compiler" >&6
14585
14586# Is the header present?
14587echo "$as_me:$LINENO: checking $ac_header presence" >&5
14588echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14589cat >conftest.$ac_ext <<_ACEOF
14590/* confdefs.h. */
14591_ACEOF
14592cat confdefs.h >>conftest.$ac_ext
14593cat >>conftest.$ac_ext <<_ACEOF
14594/* end confdefs.h. */
14595#include <$ac_header>
14596_ACEOF
14597if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14598 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14599 ac_status=$?
14600 grep -v '^ *+' conftest.er1 >conftest.err
14601 rm -f conftest.er1
14602 cat conftest.err >&5
14603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14604 (exit $ac_status); } >/dev/null; then
14605 if test -s conftest.err; then
14606 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 14607 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
14608 else
14609 ac_cpp_err=
14610 fi
14611else
14612 ac_cpp_err=yes
14613fi
14614if test -z "$ac_cpp_err"; then
14615 ac_header_preproc=yes
14616else
14617 echo "$as_me: failed program was:" >&5
14618sed 's/^/| /' conftest.$ac_ext >&5
14619
14620 ac_header_preproc=no
14621fi
14622rm -f conftest.err conftest.$ac_ext
14623echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14624echo "${ECHO_T}$ac_header_preproc" >&6
14625
14626# So? What about this header?
ac1cb8d3
VS
14627case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14628 yes:no: )
a848cd7e
SC
14629 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14630echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
14631 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14632echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14633 ac_header_preproc=yes
a848cd7e 14634 ;;
ac1cb8d3 14635 no:yes:* )
a848cd7e
SC
14636 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14637echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
14638 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14639echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14640 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14641echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14642 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14643echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
14644 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14645echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
14646 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14647echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
14648 (
14649 cat <<\_ASBOX
ac1cb8d3
VS
14650## ----------------------------------------- ##
14651## Report this to wx-dev@lists.wxwidgets.org ##
14652## ----------------------------------------- ##
a848cd7e
SC
14653_ASBOX
14654 ) |
14655 sed "s/^/$as_me: WARNING: /" >&2
14656 ;;
14657esac
14658echo "$as_me:$LINENO: checking for $ac_header" >&5
14659echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14660if eval "test \"\${$as_ac_Header+set}\" = set"; then
14661 echo $ECHO_N "(cached) $ECHO_C" >&6
14662else
ac1cb8d3 14663 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
14664fi
14665echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14666echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14667
14668fi
14669if test `eval echo '${'$as_ac_Header'}'` = yes; then
14670 cat >>confdefs.h <<_ACEOF
14671#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14672_ACEOF
14673
14674fi
14675
14676done
14677
14678
14679if test "x$ac_cv_header_fnmatch_h" = "xyes"; then
14680
14681for ac_func in fnmatch
14682do
14683as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14684echo "$as_me:$LINENO: checking for $ac_func" >&5
14685echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14686if eval "test \"\${$as_ac_var+set}\" = set"; then
14687 echo $ECHO_N "(cached) $ECHO_C" >&6
14688else
14689 cat >conftest.$ac_ext <<_ACEOF
14690/* confdefs.h. */
14691_ACEOF
14692cat confdefs.h >>conftest.$ac_ext
14693cat >>conftest.$ac_ext <<_ACEOF
14694/* end confdefs.h. */
ac1cb8d3
VS
14695/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14696 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14697#define $ac_func innocuous_$ac_func
14698
a848cd7e
SC
14699/* System header to define __stub macros and hopefully few prototypes,
14700 which can conflict with char $ac_func (); below.
14701 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14702 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 14703
a848cd7e
SC
14704#ifdef __STDC__
14705# include <limits.h>
14706#else
14707# include <assert.h>
14708#endif
ac1cb8d3
VS
14709
14710#undef $ac_func
14711
a848cd7e
SC
14712/* Override any gcc2 internal prototype to avoid an error. */
14713#ifdef __cplusplus
14714extern "C"
14715{
14716#endif
14717/* We use char because int might match the return type of a gcc2
14718 builtin and then its argument prototype would still apply. */
14719char $ac_func ();
14720/* The GNU C library defines this for functions which it implements
14721 to always fail with ENOSYS. Some functions are actually named
14722 something starting with __ and the normal name is an alias. */
14723#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14724choke me
14725#else
14726char (*f) () = $ac_func;
14727#endif
14728#ifdef __cplusplus
14729}
14730#endif
14731
14732int
14733main ()
14734{
14735return f != $ac_func;
14736 ;
14737 return 0;
14738}
14739_ACEOF
14740rm -f conftest.$ac_objext conftest$ac_exeext
14741if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 14742 (eval $ac_link) 2>conftest.er1
a848cd7e 14743 ac_status=$?
ac1cb8d3
VS
14744 grep -v '^ *+' conftest.er1 >conftest.err
14745 rm -f conftest.er1
14746 cat conftest.err >&5
a848cd7e
SC
14747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14748 (exit $ac_status); } &&
89be85c2
VS
14749 { ac_try='test -z "$ac_c_werror_flag"
14750 || test ! -s conftest.err'
ac1cb8d3
VS
14751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14752 (eval $ac_try) 2>&5
14753 ac_status=$?
14754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14755 (exit $ac_status); }; } &&
14756 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
14757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14758 (eval $ac_try) 2>&5
14759 ac_status=$?
14760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14761 (exit $ac_status); }; }; then
14762 eval "$as_ac_var=yes"
14763else
14764 echo "$as_me: failed program was:" >&5
14765sed 's/^/| /' conftest.$ac_ext >&5
14766
14767eval "$as_ac_var=no"
14768fi
ac1cb8d3
VS
14769rm -f conftest.err conftest.$ac_objext \
14770 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
14771fi
14772echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14773echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14774if test `eval echo '${'$as_ac_var'}'` = yes; then
14775 cat >>confdefs.h <<_ACEOF
14776#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14777_ACEOF
14778
14779fi
14780done
14781
14782fi
14783
14784
14785for ac_header in langinfo.h
14786do
14787as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14788if eval "test \"\${$as_ac_Header+set}\" = set"; then
14789 echo "$as_me:$LINENO: checking for $ac_header" >&5
14790echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14791if eval "test \"\${$as_ac_Header+set}\" = set"; then
14792 echo $ECHO_N "(cached) $ECHO_C" >&6
14793fi
14794echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14795echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14796else
14797 # Is the header compilable?
14798echo "$as_me:$LINENO: checking $ac_header usability" >&5
14799echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14800cat >conftest.$ac_ext <<_ACEOF
14801/* confdefs.h. */
14802_ACEOF
14803cat confdefs.h >>conftest.$ac_ext
14804cat >>conftest.$ac_ext <<_ACEOF
14805/* end confdefs.h. */
14806$ac_includes_default
14807#include <$ac_header>
14808_ACEOF
14809rm -f conftest.$ac_objext
14810if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14811 (eval $ac_compile) 2>conftest.er1
a848cd7e 14812 ac_status=$?
ac1cb8d3
VS
14813 grep -v '^ *+' conftest.er1 >conftest.err
14814 rm -f conftest.er1
14815 cat conftest.err >&5
a848cd7e
SC
14816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14817 (exit $ac_status); } &&
89be85c2
VS
14818 { ac_try='test -z "$ac_c_werror_flag"
14819 || test ! -s conftest.err'
ac1cb8d3
VS
14820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14821 (eval $ac_try) 2>&5
14822 ac_status=$?
14823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14824 (exit $ac_status); }; } &&
14825 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14827 (eval $ac_try) 2>&5
14828 ac_status=$?
14829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14830 (exit $ac_status); }; }; then
14831 ac_header_compiler=yes
14832else
14833 echo "$as_me: failed program was:" >&5
14834sed 's/^/| /' conftest.$ac_ext >&5
14835
14836ac_header_compiler=no
14837fi
ac1cb8d3 14838rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14839echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14840echo "${ECHO_T}$ac_header_compiler" >&6
14841
14842# Is the header present?
14843echo "$as_me:$LINENO: checking $ac_header presence" >&5
14844echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14845cat >conftest.$ac_ext <<_ACEOF
14846/* confdefs.h. */
14847_ACEOF
14848cat confdefs.h >>conftest.$ac_ext
14849cat >>conftest.$ac_ext <<_ACEOF
14850/* end confdefs.h. */
14851#include <$ac_header>
14852_ACEOF
14853if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14854 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14855 ac_status=$?
14856 grep -v '^ *+' conftest.er1 >conftest.err
14857 rm -f conftest.er1
14858 cat conftest.err >&5
14859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14860 (exit $ac_status); } >/dev/null; then
14861 if test -s conftest.err; then
14862 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 14863 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
14864 else
14865 ac_cpp_err=
14866 fi
14867else
14868 ac_cpp_err=yes
14869fi
14870if test -z "$ac_cpp_err"; then
14871 ac_header_preproc=yes
14872else
14873 echo "$as_me: failed program was:" >&5
14874sed 's/^/| /' conftest.$ac_ext >&5
14875
14876 ac_header_preproc=no
14877fi
14878rm -f conftest.err conftest.$ac_ext
14879echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14880echo "${ECHO_T}$ac_header_preproc" >&6
14881
14882# So? What about this header?
ac1cb8d3
VS
14883case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14884 yes:no: )
a848cd7e
SC
14885 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14886echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
14887 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14888echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14889 ac_header_preproc=yes
a848cd7e 14890 ;;
ac1cb8d3 14891 no:yes:* )
a848cd7e
SC
14892 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14893echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
14894 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14895echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14896 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14897echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14898 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14899echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
14900 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14901echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
14902 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14903echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
14904 (
14905 cat <<\_ASBOX
ac1cb8d3
VS
14906## ----------------------------------------- ##
14907## Report this to wx-dev@lists.wxwidgets.org ##
14908## ----------------------------------------- ##
a848cd7e
SC
14909_ASBOX
14910 ) |
14911 sed "s/^/$as_me: WARNING: /" >&2
14912 ;;
14913esac
14914echo "$as_me:$LINENO: checking for $ac_header" >&5
14915echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14916if eval "test \"\${$as_ac_Header+set}\" = set"; then
14917 echo $ECHO_N "(cached) $ECHO_C" >&6
14918else
ac1cb8d3 14919 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
14920fi
14921echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14922echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14923
14924fi
14925if test `eval echo '${'$as_ac_Header'}'` = yes; then
14926 cat >>confdefs.h <<_ACEOF
14927#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14928_ACEOF
14929
14930fi
14931
14932done
14933
14934
14935case "${host}" in
14936 *-pc-os2_emx | *-pc-os2-emx )
391a765e
VS
14937 if test $ac_cv_header_langinfo_h = "yes" \
14938 -a \( "$wx_cv_gccversion" = "EMX2" \
14939 -o "$wx_cv_gccversion" = "EMX3" \
14940 -o "$wx_cv_gccversion" = "Innotek5" \); then
a848cd7e
SC
14941 LIBS="$LIBS -lintl"
14942 fi
14943 ;;
14944esac
14945
14946if test "$wxUSE_GUI" = "yes"; then
14947 if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_PM" != 1; then
14948
14949for ac_header in X11/Xlib.h
14950do
14951as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14952if eval "test \"\${$as_ac_Header+set}\" = set"; then
14953 echo "$as_me:$LINENO: checking for $ac_header" >&5
14954echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14955if eval "test \"\${$as_ac_Header+set}\" = set"; then
14956 echo $ECHO_N "(cached) $ECHO_C" >&6
14957fi
14958echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14959echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14960else
14961 # Is the header compilable?
14962echo "$as_me:$LINENO: checking $ac_header usability" >&5
14963echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14964cat >conftest.$ac_ext <<_ACEOF
14965/* confdefs.h. */
14966_ACEOF
14967cat confdefs.h >>conftest.$ac_ext
14968cat >>conftest.$ac_ext <<_ACEOF
14969/* end confdefs.h. */
14970$ac_includes_default
14971#include <$ac_header>
14972_ACEOF
14973rm -f conftest.$ac_objext
14974if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14975 (eval $ac_compile) 2>conftest.er1
a848cd7e 14976 ac_status=$?
ac1cb8d3
VS
14977 grep -v '^ *+' conftest.er1 >conftest.err
14978 rm -f conftest.er1
14979 cat conftest.err >&5
a848cd7e
SC
14980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14981 (exit $ac_status); } &&
89be85c2
VS
14982 { ac_try='test -z "$ac_c_werror_flag"
14983 || test ! -s conftest.err'
ac1cb8d3
VS
14984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14985 (eval $ac_try) 2>&5
14986 ac_status=$?
14987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14988 (exit $ac_status); }; } &&
14989 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14991 (eval $ac_try) 2>&5
14992 ac_status=$?
14993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14994 (exit $ac_status); }; }; then
14995 ac_header_compiler=yes
14996else
14997 echo "$as_me: failed program was:" >&5
14998sed 's/^/| /' conftest.$ac_ext >&5
14999
15000ac_header_compiler=no
15001fi
ac1cb8d3 15002rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15003echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15004echo "${ECHO_T}$ac_header_compiler" >&6
15005
15006# Is the header present?
15007echo "$as_me:$LINENO: checking $ac_header presence" >&5
15008echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15009cat >conftest.$ac_ext <<_ACEOF
15010/* confdefs.h. */
15011_ACEOF
15012cat confdefs.h >>conftest.$ac_ext
15013cat >>conftest.$ac_ext <<_ACEOF
15014/* end confdefs.h. */
15015#include <$ac_header>
15016_ACEOF
15017if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15018 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15019 ac_status=$?
15020 grep -v '^ *+' conftest.er1 >conftest.err
15021 rm -f conftest.er1
15022 cat conftest.err >&5
15023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15024 (exit $ac_status); } >/dev/null; then
15025 if test -s conftest.err; then
15026 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 15027 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
15028 else
15029 ac_cpp_err=
15030 fi
15031else
15032 ac_cpp_err=yes
15033fi
15034if test -z "$ac_cpp_err"; then
15035 ac_header_preproc=yes
15036else
15037 echo "$as_me: failed program was:" >&5
15038sed 's/^/| /' conftest.$ac_ext >&5
15039
15040 ac_header_preproc=no
15041fi
15042rm -f conftest.err conftest.$ac_ext
15043echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15044echo "${ECHO_T}$ac_header_preproc" >&6
15045
15046# So? What about this header?
ac1cb8d3
VS
15047case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15048 yes:no: )
a848cd7e
SC
15049 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15050echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
15051 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15052echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15053 ac_header_preproc=yes
a848cd7e 15054 ;;
ac1cb8d3 15055 no:yes:* )
a848cd7e
SC
15056 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15057echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
15058 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15059echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15060 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15061echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15062 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15063echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
15064 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15065echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
15066 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15067echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
15068 (
15069 cat <<\_ASBOX
ac1cb8d3
VS
15070## ----------------------------------------- ##
15071## Report this to wx-dev@lists.wxwidgets.org ##
15072## ----------------------------------------- ##
a848cd7e
SC
15073_ASBOX
15074 ) |
15075 sed "s/^/$as_me: WARNING: /" >&2
15076 ;;
15077esac
15078echo "$as_me:$LINENO: checking for $ac_header" >&5
15079echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15080if eval "test \"\${$as_ac_Header+set}\" = set"; then
15081 echo $ECHO_N "(cached) $ECHO_C" >&6
15082else
ac1cb8d3 15083 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
15084fi
15085echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15086echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15087
15088fi
15089if test `eval echo '${'$as_ac_Header'}'` = yes; then
15090 cat >>confdefs.h <<_ACEOF
15091#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15092_ACEOF
15093
15094fi
15095
15096done
15097
15098
15099for ac_header in X11/XKBlib.h
15100do
15101as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15102echo "$as_me:$LINENO: checking for $ac_header" >&5
15103echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15104if eval "test \"\${$as_ac_Header+set}\" = set"; then
15105 echo $ECHO_N "(cached) $ECHO_C" >&6
15106else
15107 cat >conftest.$ac_ext <<_ACEOF
15108/* confdefs.h. */
15109_ACEOF
15110cat confdefs.h >>conftest.$ac_ext
15111cat >>conftest.$ac_ext <<_ACEOF
15112/* end confdefs.h. */
15113
15114 #if HAVE_X11_XLIB_H
15115 #include <X11/Xlib.h>
15116 #endif
15117
15118
15119#include <$ac_header>
15120_ACEOF
15121rm -f conftest.$ac_objext
15122if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15123 (eval $ac_compile) 2>conftest.er1
a848cd7e 15124 ac_status=$?
ac1cb8d3
VS
15125 grep -v '^ *+' conftest.er1 >conftest.err
15126 rm -f conftest.er1
15127 cat conftest.err >&5
a848cd7e
SC
15128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15129 (exit $ac_status); } &&
89be85c2
VS
15130 { ac_try='test -z "$ac_c_werror_flag"
15131 || test ! -s conftest.err'
ac1cb8d3
VS
15132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15133 (eval $ac_try) 2>&5
15134 ac_status=$?
15135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15136 (exit $ac_status); }; } &&
15137 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15139 (eval $ac_try) 2>&5
15140 ac_status=$?
15141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15142 (exit $ac_status); }; }; then
15143 eval "$as_ac_Header=yes"
15144else
15145 echo "$as_me: failed program was:" >&5
15146sed 's/^/| /' conftest.$ac_ext >&5
15147
15148eval "$as_ac_Header=no"
15149fi
ac1cb8d3 15150rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15151fi
15152echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15153echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15154if test `eval echo '${'$as_ac_Header'}'` = yes; then
15155 cat >>confdefs.h <<_ACEOF
15156#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15157_ACEOF
15158
15159fi
15160
15161done
15162
15163 fi
15164fi
15165
15166
15167echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
15168echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
15169if test "${ac_cv_c_const+set}" = set; then
15170 echo $ECHO_N "(cached) $ECHO_C" >&6
15171else
15172 cat >conftest.$ac_ext <<_ACEOF
15173/* confdefs.h. */
15174_ACEOF
15175cat confdefs.h >>conftest.$ac_ext
15176cat >>conftest.$ac_ext <<_ACEOF
15177/* end confdefs.h. */
15178
15179int
15180main ()
15181{
15182/* FIXME: Include the comments suggested by Paul. */
15183#ifndef __cplusplus
15184 /* Ultrix mips cc rejects this. */
15185 typedef int charset[2];
15186 const charset x;
15187 /* SunOS 4.1.1 cc rejects this. */
15188 char const *const *ccp;
15189 char **p;
15190 /* NEC SVR4.0.2 mips cc rejects this. */
15191 struct point {int x, y;};
15192 static struct point const zero = {0,0};
15193 /* AIX XL C 1.02.0.0 rejects this.
15194 It does not let you subtract one const X* pointer from another in
15195 an arm of an if-expression whose if-part is not a constant
15196 expression */
15197 const char *g = "string";
15198 ccp = &g + (g ? g-g : 0);
15199 /* HPUX 7.0 cc rejects these. */
15200 ++ccp;
15201 p = (char**) ccp;
15202 ccp = (char const *const *) p;
15203 { /* SCO 3.2v4 cc rejects this. */
15204 char *t;
15205 char const *s = 0 ? (char *) 0 : (char const *) 0;
15206
15207 *t++ = 0;
15208 }
15209 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
15210 int x[] = {25, 17};
15211 const int *foo = &x[0];
15212 ++foo;
15213 }
15214 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
15215 typedef const int *iptr;
15216 iptr p = 0;
15217 ++p;
15218 }
15219 { /* AIX XL C 1.02.0.0 rejects this saying
15220 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
15221 struct s { int j; const int *ap[3]; };
15222 struct s *b; b->j = 5;
15223 }
15224 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
15225 const int foo = 10;
15226 }
15227#endif
15228
15229 ;
15230 return 0;
15231}
15232_ACEOF
15233rm -f conftest.$ac_objext
15234if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15235 (eval $ac_compile) 2>conftest.er1
a848cd7e 15236 ac_status=$?
ac1cb8d3
VS
15237 grep -v '^ *+' conftest.er1 >conftest.err
15238 rm -f conftest.er1
15239 cat conftest.err >&5
a848cd7e
SC
15240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15241 (exit $ac_status); } &&
89be85c2
VS
15242 { ac_try='test -z "$ac_c_werror_flag"
15243 || test ! -s conftest.err'
ac1cb8d3
VS
15244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15245 (eval $ac_try) 2>&5
15246 ac_status=$?
15247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15248 (exit $ac_status); }; } &&
15249 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15251 (eval $ac_try) 2>&5
15252 ac_status=$?
15253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15254 (exit $ac_status); }; }; then
15255 ac_cv_c_const=yes
15256else
15257 echo "$as_me: failed program was:" >&5
15258sed 's/^/| /' conftest.$ac_ext >&5
15259
15260ac_cv_c_const=no
15261fi
ac1cb8d3 15262rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15263fi
15264echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
15265echo "${ECHO_T}$ac_cv_c_const" >&6
15266if test $ac_cv_c_const = no; then
15267
15268cat >>confdefs.h <<\_ACEOF
15269#define const
15270_ACEOF
15271
15272fi
15273
15274echo "$as_me:$LINENO: checking for inline" >&5
15275echo $ECHO_N "checking for inline... $ECHO_C" >&6
15276if test "${ac_cv_c_inline+set}" = set; then
15277 echo $ECHO_N "(cached) $ECHO_C" >&6
15278else
15279 ac_cv_c_inline=no
15280for ac_kw in inline __inline__ __inline; do
15281 cat >conftest.$ac_ext <<_ACEOF
15282/* confdefs.h. */
15283_ACEOF
15284cat confdefs.h >>conftest.$ac_ext
15285cat >>conftest.$ac_ext <<_ACEOF
15286/* end confdefs.h. */
15287#ifndef __cplusplus
15288typedef int foo_t;
15289static $ac_kw foo_t static_foo () {return 0; }
15290$ac_kw foo_t foo () {return 0; }
15291#endif
15292
15293_ACEOF
15294rm -f conftest.$ac_objext
15295if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15296 (eval $ac_compile) 2>conftest.er1
a848cd7e 15297 ac_status=$?
ac1cb8d3
VS
15298 grep -v '^ *+' conftest.er1 >conftest.err
15299 rm -f conftest.er1
15300 cat conftest.err >&5
a848cd7e
SC
15301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15302 (exit $ac_status); } &&
89be85c2
VS
15303 { ac_try='test -z "$ac_c_werror_flag"
15304 || test ! -s conftest.err'
ac1cb8d3
VS
15305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15306 (eval $ac_try) 2>&5
15307 ac_status=$?
15308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15309 (exit $ac_status); }; } &&
15310 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15312 (eval $ac_try) 2>&5
15313 ac_status=$?
15314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15315 (exit $ac_status); }; }; then
15316 ac_cv_c_inline=$ac_kw; break
15317else
15318 echo "$as_me: failed program was:" >&5
15319sed 's/^/| /' conftest.$ac_ext >&5
15320
15321fi
ac1cb8d3 15322rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15323done
15324
15325fi
15326echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
15327echo "${ECHO_T}$ac_cv_c_inline" >&6
ac1cb8d3
VS
15328
15329
a848cd7e
SC
15330case $ac_cv_c_inline in
15331 inline | yes) ;;
ac1cb8d3
VS
15332 *)
15333 case $ac_cv_c_inline in
15334 no) ac_val=;;
15335 *) ac_val=$ac_cv_c_inline;;
15336 esac
15337 cat >>confdefs.h <<_ACEOF
15338#ifndef __cplusplus
15339#define inline $ac_val
15340#endif
de59c161 15341_ACEOF
ac1cb8d3 15342 ;;
a848cd7e
SC
15343esac
15344
15345
15346echo "$as_me:$LINENO: checking for char" >&5
15347echo $ECHO_N "checking for char... $ECHO_C" >&6
15348if test "${ac_cv_type_char+set}" = set; then
15349 echo $ECHO_N "(cached) $ECHO_C" >&6
15350else
15351 cat >conftest.$ac_ext <<_ACEOF
15352/* confdefs.h. */
15353_ACEOF
15354cat confdefs.h >>conftest.$ac_ext
15355cat >>conftest.$ac_ext <<_ACEOF
15356/* end confdefs.h. */
15357$ac_includes_default
15358int
15359main ()
15360{
15361if ((char *) 0)
15362 return 0;
15363if (sizeof (char))
15364 return 0;
15365 ;
15366 return 0;
15367}
15368_ACEOF
15369rm -f conftest.$ac_objext
15370if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15371 (eval $ac_compile) 2>conftest.er1
a848cd7e 15372 ac_status=$?
ac1cb8d3
VS
15373 grep -v '^ *+' conftest.er1 >conftest.err
15374 rm -f conftest.er1
15375 cat conftest.err >&5
a848cd7e
SC
15376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15377 (exit $ac_status); } &&
89be85c2
VS
15378 { ac_try='test -z "$ac_c_werror_flag"
15379 || test ! -s conftest.err'
ac1cb8d3
VS
15380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15381 (eval $ac_try) 2>&5
15382 ac_status=$?
15383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15384 (exit $ac_status); }; } &&
15385 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15387 (eval $ac_try) 2>&5
15388 ac_status=$?
15389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15390 (exit $ac_status); }; }; then
15391 ac_cv_type_char=yes
15392else
15393 echo "$as_me: failed program was:" >&5
15394sed 's/^/| /' conftest.$ac_ext >&5
15395
15396ac_cv_type_char=no
15397fi
ac1cb8d3 15398rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15399fi
15400echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
15401echo "${ECHO_T}$ac_cv_type_char" >&6
15402
15403echo "$as_me:$LINENO: checking size of char" >&5
15404echo $ECHO_N "checking size of char... $ECHO_C" >&6
15405if test "${ac_cv_sizeof_char+set}" = set; then
15406 echo $ECHO_N "(cached) $ECHO_C" >&6
15407else
15408 if test "$ac_cv_type_char" = yes; then
15409 # The cast to unsigned long works around a bug in the HP C Compiler
15410 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15411 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15412 # This bug is HP SR number 8606223364.
15413 if test "$cross_compiling" = yes; then
15414 # Depending upon the size, compute the lo and hi bounds.
15415cat >conftest.$ac_ext <<_ACEOF
15416/* confdefs.h. */
15417_ACEOF
15418cat confdefs.h >>conftest.$ac_ext
15419cat >>conftest.$ac_ext <<_ACEOF
15420/* end confdefs.h. */
15421$ac_includes_default
15422int
15423main ()
15424{
15425static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
15426test_array [0] = 0
15427
15428 ;
15429 return 0;
15430}
15431_ACEOF
15432rm -f conftest.$ac_objext
15433if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15434 (eval $ac_compile) 2>conftest.er1
a848cd7e 15435 ac_status=$?
ac1cb8d3
VS
15436 grep -v '^ *+' conftest.er1 >conftest.err
15437 rm -f conftest.er1
15438 cat conftest.err >&5
a848cd7e
SC
15439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15440 (exit $ac_status); } &&
89be85c2
VS
15441 { ac_try='test -z "$ac_c_werror_flag"
15442 || test ! -s conftest.err'
ac1cb8d3
VS
15443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15444 (eval $ac_try) 2>&5
15445 ac_status=$?
15446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15447 (exit $ac_status); }; } &&
15448 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
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); }; }; then
15454 ac_lo=0 ac_mid=0
15455 while :; do
15456 cat >conftest.$ac_ext <<_ACEOF
15457/* confdefs.h. */
15458_ACEOF
15459cat confdefs.h >>conftest.$ac_ext
15460cat >>conftest.$ac_ext <<_ACEOF
15461/* end confdefs.h. */
15462$ac_includes_default
15463int
15464main ()
15465{
15466static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
15467test_array [0] = 0
15468
15469 ;
15470 return 0;
15471}
15472_ACEOF
15473rm -f conftest.$ac_objext
15474if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15475 (eval $ac_compile) 2>conftest.er1
a848cd7e 15476 ac_status=$?
ac1cb8d3
VS
15477 grep -v '^ *+' conftest.er1 >conftest.err
15478 rm -f conftest.er1
15479 cat conftest.err >&5
a848cd7e
SC
15480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15481 (exit $ac_status); } &&
89be85c2
VS
15482 { ac_try='test -z "$ac_c_werror_flag"
15483 || test ! -s conftest.err'
ac1cb8d3
VS
15484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15485 (eval $ac_try) 2>&5
15486 ac_status=$?
15487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15488 (exit $ac_status); }; } &&
15489 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15491 (eval $ac_try) 2>&5
15492 ac_status=$?
15493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15494 (exit $ac_status); }; }; then
15495 ac_hi=$ac_mid; break
15496else
15497 echo "$as_me: failed program was:" >&5
15498sed 's/^/| /' conftest.$ac_ext >&5
15499
15500ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
15501 if test $ac_lo -le $ac_mid; then
15502 ac_lo= ac_hi=
15503 break
15504 fi
15505 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 15506fi
ac1cb8d3 15507rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15508 done
15509else
15510 echo "$as_me: failed program was:" >&5
15511sed 's/^/| /' conftest.$ac_ext >&5
15512
15513cat >conftest.$ac_ext <<_ACEOF
15514/* confdefs.h. */
15515_ACEOF
15516cat confdefs.h >>conftest.$ac_ext
15517cat >>conftest.$ac_ext <<_ACEOF
15518/* end confdefs.h. */
15519$ac_includes_default
15520int
15521main ()
15522{
15523static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
15524test_array [0] = 0
15525
15526 ;
15527 return 0;
15528}
15529_ACEOF
15530rm -f conftest.$ac_objext
15531if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15532 (eval $ac_compile) 2>conftest.er1
a848cd7e 15533 ac_status=$?
ac1cb8d3
VS
15534 grep -v '^ *+' conftest.er1 >conftest.err
15535 rm -f conftest.er1
15536 cat conftest.err >&5
a848cd7e
SC
15537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15538 (exit $ac_status); } &&
89be85c2
VS
15539 { ac_try='test -z "$ac_c_werror_flag"
15540 || test ! -s conftest.err'
ac1cb8d3
VS
15541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15542 (eval $ac_try) 2>&5
15543 ac_status=$?
15544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15545 (exit $ac_status); }; } &&
15546 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15548 (eval $ac_try) 2>&5
15549 ac_status=$?
15550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15551 (exit $ac_status); }; }; then
15552 ac_hi=-1 ac_mid=-1
15553 while :; do
15554 cat >conftest.$ac_ext <<_ACEOF
15555/* confdefs.h. */
15556_ACEOF
15557cat confdefs.h >>conftest.$ac_ext
15558cat >>conftest.$ac_ext <<_ACEOF
15559/* end confdefs.h. */
15560$ac_includes_default
15561int
15562main ()
15563{
15564static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
15565test_array [0] = 0
15566
15567 ;
15568 return 0;
15569}
15570_ACEOF
15571rm -f conftest.$ac_objext
15572if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15573 (eval $ac_compile) 2>conftest.er1
a848cd7e 15574 ac_status=$?
ac1cb8d3
VS
15575 grep -v '^ *+' conftest.er1 >conftest.err
15576 rm -f conftest.er1
15577 cat conftest.err >&5
a848cd7e
SC
15578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15579 (exit $ac_status); } &&
89be85c2
VS
15580 { ac_try='test -z "$ac_c_werror_flag"
15581 || test ! -s conftest.err'
ac1cb8d3
VS
15582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15583 (eval $ac_try) 2>&5
15584 ac_status=$?
15585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15586 (exit $ac_status); }; } &&
15587 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15589 (eval $ac_try) 2>&5
15590 ac_status=$?
15591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15592 (exit $ac_status); }; }; then
15593 ac_lo=$ac_mid; break
15594else
15595 echo "$as_me: failed program was:" >&5
15596sed 's/^/| /' conftest.$ac_ext >&5
15597
15598ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
15599 if test $ac_mid -le $ac_hi; then
15600 ac_lo= ac_hi=
15601 break
15602 fi
15603 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 15604fi
ac1cb8d3 15605rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15606 done
15607else
15608 echo "$as_me: failed program was:" >&5
15609sed 's/^/| /' conftest.$ac_ext >&5
15610
15611ac_lo= ac_hi=
15612fi
ac1cb8d3 15613rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 15614fi
ac1cb8d3 15615rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15616# Binary search between lo and hi bounds.
15617while test "x$ac_lo" != "x$ac_hi"; do
15618 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15619 cat >conftest.$ac_ext <<_ACEOF
15620/* confdefs.h. */
15621_ACEOF
15622cat confdefs.h >>conftest.$ac_ext
15623cat >>conftest.$ac_ext <<_ACEOF
15624/* end confdefs.h. */
15625$ac_includes_default
15626int
15627main ()
15628{
15629static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
15630test_array [0] = 0
15631
15632 ;
15633 return 0;
15634}
15635_ACEOF
15636rm -f conftest.$ac_objext
15637if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15638 (eval $ac_compile) 2>conftest.er1
a848cd7e 15639 ac_status=$?
ac1cb8d3
VS
15640 grep -v '^ *+' conftest.er1 >conftest.err
15641 rm -f conftest.er1
15642 cat conftest.err >&5
a848cd7e
SC
15643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15644 (exit $ac_status); } &&
89be85c2
VS
15645 { ac_try='test -z "$ac_c_werror_flag"
15646 || test ! -s conftest.err'
ac1cb8d3
VS
15647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15648 (eval $ac_try) 2>&5
15649 ac_status=$?
15650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15651 (exit $ac_status); }; } &&
15652 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15654 (eval $ac_try) 2>&5
15655 ac_status=$?
15656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15657 (exit $ac_status); }; }; then
15658 ac_hi=$ac_mid
15659else
15660 echo "$as_me: failed program was:" >&5
15661sed 's/^/| /' conftest.$ac_ext >&5
15662
15663ac_lo=`expr '(' $ac_mid ')' + 1`
15664fi
ac1cb8d3 15665rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15666done
15667case $ac_lo in
15668?*) ac_cv_sizeof_char=$ac_lo;;
15669'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
15670See \`config.log' for more details." >&5
15671echo "$as_me: error: cannot compute sizeof (char), 77
15672See \`config.log' for more details." >&2;}
15673 { (exit 1); exit 1; }; } ;;
15674esac
15675else
15676 if test "$cross_compiling" = yes; then
89be85c2
VS
15677 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15678See \`config.log' for more details." >&5
15679echo "$as_me: error: cannot run test program while cross compiling
15680See \`config.log' for more details." >&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); } &&
89be85c2
VS
15792 { ac_try='test -z "$ac_c_werror_flag"
15793 || test ! -s conftest.err'
ac1cb8d3
VS
15794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15795 (eval $ac_try) 2>&5
15796 ac_status=$?
15797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15798 (exit $ac_status); }; } &&
15799 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15801 (eval $ac_try) 2>&5
15802 ac_status=$?
15803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15804 (exit $ac_status); }; }; then
15805 ac_cv_type_short=yes
15806else
15807 echo "$as_me: failed program was:" >&5
15808sed 's/^/| /' conftest.$ac_ext >&5
15809
15810ac_cv_type_short=no
15811fi
ac1cb8d3 15812rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15813fi
15814echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
15815echo "${ECHO_T}$ac_cv_type_short" >&6
15816
15817echo "$as_me:$LINENO: checking size of short" >&5
15818echo $ECHO_N "checking size of short... $ECHO_C" >&6
15819if test "${ac_cv_sizeof_short+set}" = set; then
15820 echo $ECHO_N "(cached) $ECHO_C" >&6
15821else
15822 if test "$ac_cv_type_short" = yes; then
15823 # The cast to unsigned long works around a bug in the HP C Compiler
15824 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15825 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15826 # This bug is HP SR number 8606223364.
15827 if test "$cross_compiling" = yes; then
15828 # Depending upon the size, compute the lo and hi bounds.
15829cat >conftest.$ac_ext <<_ACEOF
15830/* confdefs.h. */
15831_ACEOF
15832cat confdefs.h >>conftest.$ac_ext
15833cat >>conftest.$ac_ext <<_ACEOF
15834/* end confdefs.h. */
15835$ac_includes_default
15836int
15837main ()
15838{
15839static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
15840test_array [0] = 0
15841
15842 ;
15843 return 0;
15844}
15845_ACEOF
15846rm -f conftest.$ac_objext
15847if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15848 (eval $ac_compile) 2>conftest.er1
a848cd7e 15849 ac_status=$?
ac1cb8d3
VS
15850 grep -v '^ *+' conftest.er1 >conftest.err
15851 rm -f conftest.er1
15852 cat conftest.err >&5
a848cd7e
SC
15853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15854 (exit $ac_status); } &&
89be85c2
VS
15855 { ac_try='test -z "$ac_c_werror_flag"
15856 || test ! -s conftest.err'
ac1cb8d3
VS
15857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15858 (eval $ac_try) 2>&5
15859 ac_status=$?
15860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15861 (exit $ac_status); }; } &&
15862 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15864 (eval $ac_try) 2>&5
15865 ac_status=$?
15866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15867 (exit $ac_status); }; }; then
15868 ac_lo=0 ac_mid=0
15869 while :; do
15870 cat >conftest.$ac_ext <<_ACEOF
15871/* confdefs.h. */
15872_ACEOF
15873cat confdefs.h >>conftest.$ac_ext
15874cat >>conftest.$ac_ext <<_ACEOF
15875/* end confdefs.h. */
15876$ac_includes_default
15877int
15878main ()
15879{
15880static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
15881test_array [0] = 0
15882
15883 ;
15884 return 0;
15885}
15886_ACEOF
15887rm -f conftest.$ac_objext
15888if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15889 (eval $ac_compile) 2>conftest.er1
a848cd7e 15890 ac_status=$?
ac1cb8d3
VS
15891 grep -v '^ *+' conftest.er1 >conftest.err
15892 rm -f conftest.er1
15893 cat conftest.err >&5
a848cd7e
SC
15894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15895 (exit $ac_status); } &&
89be85c2
VS
15896 { ac_try='test -z "$ac_c_werror_flag"
15897 || test ! -s conftest.err'
ac1cb8d3
VS
15898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15899 (eval $ac_try) 2>&5
15900 ac_status=$?
15901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15902 (exit $ac_status); }; } &&
15903 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15905 (eval $ac_try) 2>&5
15906 ac_status=$?
15907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15908 (exit $ac_status); }; }; then
15909 ac_hi=$ac_mid; break
15910else
15911 echo "$as_me: failed program was:" >&5
15912sed 's/^/| /' conftest.$ac_ext >&5
15913
15914ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
15915 if test $ac_lo -le $ac_mid; then
15916 ac_lo= ac_hi=
15917 break
15918 fi
15919 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 15920fi
ac1cb8d3 15921rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15922 done
15923else
15924 echo "$as_me: failed program was:" >&5
15925sed 's/^/| /' conftest.$ac_ext >&5
15926
15927cat >conftest.$ac_ext <<_ACEOF
15928/* confdefs.h. */
15929_ACEOF
15930cat confdefs.h >>conftest.$ac_ext
15931cat >>conftest.$ac_ext <<_ACEOF
15932/* end confdefs.h. */
15933$ac_includes_default
15934int
15935main ()
15936{
15937static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
15938test_array [0] = 0
15939
15940 ;
15941 return 0;
15942}
15943_ACEOF
15944rm -f conftest.$ac_objext
15945if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15946 (eval $ac_compile) 2>conftest.er1
a848cd7e 15947 ac_status=$?
ac1cb8d3
VS
15948 grep -v '^ *+' conftest.er1 >conftest.err
15949 rm -f conftest.er1
15950 cat conftest.err >&5
a848cd7e
SC
15951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15952 (exit $ac_status); } &&
89be85c2
VS
15953 { ac_try='test -z "$ac_c_werror_flag"
15954 || test ! -s conftest.err'
ac1cb8d3
VS
15955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15956 (eval $ac_try) 2>&5
15957 ac_status=$?
15958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15959 (exit $ac_status); }; } &&
15960 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15962 (eval $ac_try) 2>&5
15963 ac_status=$?
15964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15965 (exit $ac_status); }; }; then
15966 ac_hi=-1 ac_mid=-1
15967 while :; do
15968 cat >conftest.$ac_ext <<_ACEOF
15969/* confdefs.h. */
15970_ACEOF
15971cat confdefs.h >>conftest.$ac_ext
15972cat >>conftest.$ac_ext <<_ACEOF
15973/* end confdefs.h. */
15974$ac_includes_default
15975int
15976main ()
15977{
15978static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
15979test_array [0] = 0
15980
15981 ;
15982 return 0;
15983}
15984_ACEOF
15985rm -f conftest.$ac_objext
15986if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15987 (eval $ac_compile) 2>conftest.er1
a848cd7e 15988 ac_status=$?
ac1cb8d3
VS
15989 grep -v '^ *+' conftest.er1 >conftest.err
15990 rm -f conftest.er1
15991 cat conftest.err >&5
a848cd7e
SC
15992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15993 (exit $ac_status); } &&
89be85c2
VS
15994 { ac_try='test -z "$ac_c_werror_flag"
15995 || test ! -s conftest.err'
ac1cb8d3
VS
15996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15997 (eval $ac_try) 2>&5
15998 ac_status=$?
15999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16000 (exit $ac_status); }; } &&
16001 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16003 (eval $ac_try) 2>&5
16004 ac_status=$?
16005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16006 (exit $ac_status); }; }; then
16007 ac_lo=$ac_mid; break
16008else
16009 echo "$as_me: failed program was:" >&5
16010sed 's/^/| /' conftest.$ac_ext >&5
16011
16012ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
16013 if test $ac_mid -le $ac_hi; then
16014 ac_lo= ac_hi=
16015 break
16016 fi
16017 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 16018fi
ac1cb8d3 16019rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16020 done
16021else
16022 echo "$as_me: failed program was:" >&5
16023sed 's/^/| /' conftest.$ac_ext >&5
16024
16025ac_lo= ac_hi=
16026fi
ac1cb8d3 16027rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 16028fi
ac1cb8d3 16029rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16030# Binary search between lo and hi bounds.
16031while test "x$ac_lo" != "x$ac_hi"; do
16032 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16033 cat >conftest.$ac_ext <<_ACEOF
16034/* confdefs.h. */
16035_ACEOF
16036cat confdefs.h >>conftest.$ac_ext
16037cat >>conftest.$ac_ext <<_ACEOF
16038/* end confdefs.h. */
16039$ac_includes_default
16040int
16041main ()
16042{
16043static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
16044test_array [0] = 0
16045
16046 ;
16047 return 0;
16048}
16049_ACEOF
16050rm -f conftest.$ac_objext
16051if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16052 (eval $ac_compile) 2>conftest.er1
a848cd7e 16053 ac_status=$?
ac1cb8d3
VS
16054 grep -v '^ *+' conftest.er1 >conftest.err
16055 rm -f conftest.er1
16056 cat conftest.err >&5
a848cd7e
SC
16057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16058 (exit $ac_status); } &&
89be85c2
VS
16059 { ac_try='test -z "$ac_c_werror_flag"
16060 || test ! -s conftest.err'
ac1cb8d3
VS
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); }; } &&
16066 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16068 (eval $ac_try) 2>&5
16069 ac_status=$?
16070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16071 (exit $ac_status); }; }; then
16072 ac_hi=$ac_mid
16073else
16074 echo "$as_me: failed program was:" >&5
16075sed 's/^/| /' conftest.$ac_ext >&5
16076
16077ac_lo=`expr '(' $ac_mid ')' + 1`
16078fi
ac1cb8d3 16079rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16080done
16081case $ac_lo in
16082?*) ac_cv_sizeof_short=$ac_lo;;
16083'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
16084See \`config.log' for more details." >&5
16085echo "$as_me: error: cannot compute sizeof (short), 77
16086See \`config.log' for more details." >&2;}
16087 { (exit 1); exit 1; }; } ;;
16088esac
16089else
16090 if test "$cross_compiling" = yes; then
89be85c2
VS
16091 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
16092See \`config.log' for more details." >&5
16093echo "$as_me: error: cannot run test program while cross compiling
16094See \`config.log' for more details." >&2;}
a848cd7e
SC
16095 { (exit 1); exit 1; }; }
16096else
16097 cat >conftest.$ac_ext <<_ACEOF
16098/* confdefs.h. */
16099_ACEOF
16100cat confdefs.h >>conftest.$ac_ext
16101cat >>conftest.$ac_ext <<_ACEOF
16102/* end confdefs.h. */
16103$ac_includes_default
16104long longval () { return (long) (sizeof (short)); }
16105unsigned long ulongval () { return (long) (sizeof (short)); }
16106#include <stdio.h>
16107#include <stdlib.h>
16108int
16109main ()
16110{
16111
16112 FILE *f = fopen ("conftest.val", "w");
16113 if (! f)
16114 exit (1);
16115 if (((long) (sizeof (short))) < 0)
16116 {
16117 long i = longval ();
16118 if (i != ((long) (sizeof (short))))
16119 exit (1);
16120 fprintf (f, "%ld\n", i);
16121 }
16122 else
16123 {
16124 unsigned long i = ulongval ();
16125 if (i != ((long) (sizeof (short))))
16126 exit (1);
16127 fprintf (f, "%lu\n", i);
16128 }
16129 exit (ferror (f) || fclose (f) != 0);
16130
16131 ;
16132 return 0;
16133}
16134_ACEOF
16135rm -f conftest$ac_exeext
16136if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16137 (eval $ac_link) 2>&5
16138 ac_status=$?
16139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16140 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16142 (eval $ac_try) 2>&5
16143 ac_status=$?
16144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16145 (exit $ac_status); }; }; then
16146 ac_cv_sizeof_short=`cat conftest.val`
16147else
16148 echo "$as_me: program exited with status $ac_status" >&5
16149echo "$as_me: failed program was:" >&5
16150sed 's/^/| /' conftest.$ac_ext >&5
16151
16152( exit $ac_status )
16153{ { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
16154See \`config.log' for more details." >&5
16155echo "$as_me: error: cannot compute sizeof (short), 77
16156See \`config.log' for more details." >&2;}
16157 { (exit 1); exit 1; }; }
16158fi
ac1cb8d3 16159rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16160fi
16161fi
16162rm -f conftest.val
16163else
16164 ac_cv_sizeof_short=0
16165fi
16166fi
16167echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
16168echo "${ECHO_T}$ac_cv_sizeof_short" >&6
16169cat >>confdefs.h <<_ACEOF
16170#define SIZEOF_SHORT $ac_cv_sizeof_short
16171_ACEOF
16172
16173
16174echo "$as_me:$LINENO: checking for void *" >&5
16175echo $ECHO_N "checking for void *... $ECHO_C" >&6
16176if test "${ac_cv_type_void_p+set}" = set; then
16177 echo $ECHO_N "(cached) $ECHO_C" >&6
16178else
16179 cat >conftest.$ac_ext <<_ACEOF
16180/* confdefs.h. */
16181_ACEOF
16182cat confdefs.h >>conftest.$ac_ext
16183cat >>conftest.$ac_ext <<_ACEOF
16184/* end confdefs.h. */
16185$ac_includes_default
16186int
16187main ()
16188{
16189if ((void * *) 0)
16190 return 0;
16191if (sizeof (void *))
16192 return 0;
16193 ;
16194 return 0;
16195}
16196_ACEOF
16197rm -f conftest.$ac_objext
16198if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16199 (eval $ac_compile) 2>conftest.er1
a848cd7e 16200 ac_status=$?
ac1cb8d3
VS
16201 grep -v '^ *+' conftest.er1 >conftest.err
16202 rm -f conftest.er1
16203 cat conftest.err >&5
a848cd7e
SC
16204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16205 (exit $ac_status); } &&
89be85c2
VS
16206 { ac_try='test -z "$ac_c_werror_flag"
16207 || test ! -s conftest.err'
ac1cb8d3
VS
16208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16209 (eval $ac_try) 2>&5
16210 ac_status=$?
16211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16212 (exit $ac_status); }; } &&
16213 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16215 (eval $ac_try) 2>&5
16216 ac_status=$?
16217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16218 (exit $ac_status); }; }; then
16219 ac_cv_type_void_p=yes
16220else
16221 echo "$as_me: failed program was:" >&5
16222sed 's/^/| /' conftest.$ac_ext >&5
16223
16224ac_cv_type_void_p=no
16225fi
ac1cb8d3 16226rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16227fi
16228echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
16229echo "${ECHO_T}$ac_cv_type_void_p" >&6
16230
16231echo "$as_me:$LINENO: checking size of void *" >&5
16232echo $ECHO_N "checking size of void *... $ECHO_C" >&6
16233if test "${ac_cv_sizeof_void_p+set}" = set; then
16234 echo $ECHO_N "(cached) $ECHO_C" >&6
16235else
16236 if test "$ac_cv_type_void_p" = yes; then
16237 # The cast to unsigned long works around a bug in the HP C Compiler
16238 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16239 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16240 # This bug is HP SR number 8606223364.
16241 if test "$cross_compiling" = yes; then
16242 # Depending upon the size, compute the lo and hi bounds.
16243cat >conftest.$ac_ext <<_ACEOF
16244/* confdefs.h. */
16245_ACEOF
16246cat confdefs.h >>conftest.$ac_ext
16247cat >>conftest.$ac_ext <<_ACEOF
16248/* end confdefs.h. */
16249$ac_includes_default
16250int
16251main ()
16252{
16253static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
16254test_array [0] = 0
16255
16256 ;
16257 return 0;
16258}
16259_ACEOF
16260rm -f conftest.$ac_objext
16261if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16262 (eval $ac_compile) 2>conftest.er1
a848cd7e 16263 ac_status=$?
ac1cb8d3
VS
16264 grep -v '^ *+' conftest.er1 >conftest.err
16265 rm -f conftest.er1
16266 cat conftest.err >&5
a848cd7e
SC
16267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16268 (exit $ac_status); } &&
89be85c2
VS
16269 { ac_try='test -z "$ac_c_werror_flag"
16270 || test ! -s conftest.err'
ac1cb8d3
VS
16271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16272 (eval $ac_try) 2>&5
16273 ac_status=$?
16274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16275 (exit $ac_status); }; } &&
16276 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16278 (eval $ac_try) 2>&5
16279 ac_status=$?
16280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16281 (exit $ac_status); }; }; then
16282 ac_lo=0 ac_mid=0
16283 while :; do
16284 cat >conftest.$ac_ext <<_ACEOF
16285/* confdefs.h. */
16286_ACEOF
16287cat confdefs.h >>conftest.$ac_ext
16288cat >>conftest.$ac_ext <<_ACEOF
16289/* end confdefs.h. */
16290$ac_includes_default
16291int
16292main ()
16293{
16294static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
16295test_array [0] = 0
16296
16297 ;
16298 return 0;
16299}
16300_ACEOF
16301rm -f conftest.$ac_objext
16302if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16303 (eval $ac_compile) 2>conftest.er1
a848cd7e 16304 ac_status=$?
ac1cb8d3
VS
16305 grep -v '^ *+' conftest.er1 >conftest.err
16306 rm -f conftest.er1
16307 cat conftest.err >&5
a848cd7e
SC
16308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16309 (exit $ac_status); } &&
89be85c2
VS
16310 { ac_try='test -z "$ac_c_werror_flag"
16311 || test ! -s conftest.err'
ac1cb8d3
VS
16312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16313 (eval $ac_try) 2>&5
16314 ac_status=$?
16315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16316 (exit $ac_status); }; } &&
16317 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16319 (eval $ac_try) 2>&5
16320 ac_status=$?
16321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16322 (exit $ac_status); }; }; then
16323 ac_hi=$ac_mid; break
16324else
16325 echo "$as_me: failed program was:" >&5
16326sed 's/^/| /' conftest.$ac_ext >&5
16327
16328ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
16329 if test $ac_lo -le $ac_mid; then
16330 ac_lo= ac_hi=
16331 break
16332 fi
16333 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 16334fi
ac1cb8d3 16335rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16336 done
16337else
16338 echo "$as_me: failed program was:" >&5
16339sed 's/^/| /' conftest.$ac_ext >&5
16340
16341cat >conftest.$ac_ext <<_ACEOF
16342/* confdefs.h. */
16343_ACEOF
16344cat confdefs.h >>conftest.$ac_ext
16345cat >>conftest.$ac_ext <<_ACEOF
16346/* end confdefs.h. */
16347$ac_includes_default
16348int
16349main ()
16350{
16351static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
16352test_array [0] = 0
16353
16354 ;
16355 return 0;
16356}
16357_ACEOF
16358rm -f conftest.$ac_objext
16359if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16360 (eval $ac_compile) 2>conftest.er1
a848cd7e 16361 ac_status=$?
ac1cb8d3
VS
16362 grep -v '^ *+' conftest.er1 >conftest.err
16363 rm -f conftest.er1
16364 cat conftest.err >&5
a848cd7e
SC
16365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16366 (exit $ac_status); } &&
89be85c2
VS
16367 { ac_try='test -z "$ac_c_werror_flag"
16368 || test ! -s conftest.err'
ac1cb8d3
VS
16369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16370 (eval $ac_try) 2>&5
16371 ac_status=$?
16372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16373 (exit $ac_status); }; } &&
16374 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16376 (eval $ac_try) 2>&5
16377 ac_status=$?
16378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16379 (exit $ac_status); }; }; then
16380 ac_hi=-1 ac_mid=-1
16381 while :; do
16382 cat >conftest.$ac_ext <<_ACEOF
16383/* confdefs.h. */
16384_ACEOF
16385cat confdefs.h >>conftest.$ac_ext
16386cat >>conftest.$ac_ext <<_ACEOF
16387/* end confdefs.h. */
16388$ac_includes_default
16389int
16390main ()
16391{
16392static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
16393test_array [0] = 0
16394
16395 ;
16396 return 0;
16397}
16398_ACEOF
16399rm -f conftest.$ac_objext
16400if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16401 (eval $ac_compile) 2>conftest.er1
a848cd7e 16402 ac_status=$?
ac1cb8d3
VS
16403 grep -v '^ *+' conftest.er1 >conftest.err
16404 rm -f conftest.er1
16405 cat conftest.err >&5
a848cd7e
SC
16406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16407 (exit $ac_status); } &&
89be85c2
VS
16408 { ac_try='test -z "$ac_c_werror_flag"
16409 || test ! -s conftest.err'
ac1cb8d3
VS
16410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16411 (eval $ac_try) 2>&5
16412 ac_status=$?
16413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16414 (exit $ac_status); }; } &&
16415 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16417 (eval $ac_try) 2>&5
16418 ac_status=$?
16419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16420 (exit $ac_status); }; }; then
16421 ac_lo=$ac_mid; break
16422else
16423 echo "$as_me: failed program was:" >&5
16424sed 's/^/| /' conftest.$ac_ext >&5
16425
16426ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
16427 if test $ac_mid -le $ac_hi; then
16428 ac_lo= ac_hi=
16429 break
16430 fi
16431 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 16432fi
ac1cb8d3 16433rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16434 done
16435else
16436 echo "$as_me: failed program was:" >&5
16437sed 's/^/| /' conftest.$ac_ext >&5
16438
16439ac_lo= ac_hi=
16440fi
ac1cb8d3 16441rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 16442fi
ac1cb8d3 16443rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16444# Binary search between lo and hi bounds.
16445while test "x$ac_lo" != "x$ac_hi"; do
16446 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16447 cat >conftest.$ac_ext <<_ACEOF
16448/* confdefs.h. */
16449_ACEOF
16450cat confdefs.h >>conftest.$ac_ext
16451cat >>conftest.$ac_ext <<_ACEOF
16452/* end confdefs.h. */
16453$ac_includes_default
16454int
16455main ()
16456{
16457static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
16458test_array [0] = 0
16459
16460 ;
16461 return 0;
16462}
16463_ACEOF
16464rm -f conftest.$ac_objext
16465if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16466 (eval $ac_compile) 2>conftest.er1
a848cd7e 16467 ac_status=$?
ac1cb8d3
VS
16468 grep -v '^ *+' conftest.er1 >conftest.err
16469 rm -f conftest.er1
16470 cat conftest.err >&5
a848cd7e
SC
16471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16472 (exit $ac_status); } &&
89be85c2
VS
16473 { ac_try='test -z "$ac_c_werror_flag"
16474 || test ! -s conftest.err'
ac1cb8d3
VS
16475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16476 (eval $ac_try) 2>&5
16477 ac_status=$?
16478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16479 (exit $ac_status); }; } &&
16480 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16482 (eval $ac_try) 2>&5
16483 ac_status=$?
16484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16485 (exit $ac_status); }; }; then
16486 ac_hi=$ac_mid
16487else
16488 echo "$as_me: failed program was:" >&5
16489sed 's/^/| /' conftest.$ac_ext >&5
16490
16491ac_lo=`expr '(' $ac_mid ')' + 1`
16492fi
ac1cb8d3 16493rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16494done
16495case $ac_lo in
16496?*) ac_cv_sizeof_void_p=$ac_lo;;
16497'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
16498See \`config.log' for more details." >&5
16499echo "$as_me: error: cannot compute sizeof (void *), 77
16500See \`config.log' for more details." >&2;}
16501 { (exit 1); exit 1; }; } ;;
16502esac
16503else
16504 if test "$cross_compiling" = yes; then
89be85c2
VS
16505 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
16506See \`config.log' for more details." >&5
16507echo "$as_me: error: cannot run test program while cross compiling
16508See \`config.log' for more details." >&2;}
a848cd7e
SC
16509 { (exit 1); exit 1; }; }
16510else
16511 cat >conftest.$ac_ext <<_ACEOF
16512/* confdefs.h. */
16513_ACEOF
16514cat confdefs.h >>conftest.$ac_ext
16515cat >>conftest.$ac_ext <<_ACEOF
16516/* end confdefs.h. */
16517$ac_includes_default
16518long longval () { return (long) (sizeof (void *)); }
16519unsigned long ulongval () { return (long) (sizeof (void *)); }
16520#include <stdio.h>
16521#include <stdlib.h>
16522int
16523main ()
16524{
16525
16526 FILE *f = fopen ("conftest.val", "w");
16527 if (! f)
16528 exit (1);
16529 if (((long) (sizeof (void *))) < 0)
16530 {
16531 long i = longval ();
16532 if (i != ((long) (sizeof (void *))))
16533 exit (1);
16534 fprintf (f, "%ld\n", i);
16535 }
16536 else
16537 {
16538 unsigned long i = ulongval ();
16539 if (i != ((long) (sizeof (void *))))
16540 exit (1);
16541 fprintf (f, "%lu\n", i);
16542 }
16543 exit (ferror (f) || fclose (f) != 0);
16544
16545 ;
16546 return 0;
16547}
16548_ACEOF
16549rm -f conftest$ac_exeext
16550if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16551 (eval $ac_link) 2>&5
16552 ac_status=$?
16553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16554 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16556 (eval $ac_try) 2>&5
16557 ac_status=$?
16558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16559 (exit $ac_status); }; }; then
16560 ac_cv_sizeof_void_p=`cat conftest.val`
16561else
16562 echo "$as_me: program exited with status $ac_status" >&5
16563echo "$as_me: failed program was:" >&5
16564sed 's/^/| /' conftest.$ac_ext >&5
16565
16566( exit $ac_status )
16567{ { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
16568See \`config.log' for more details." >&5
16569echo "$as_me: error: cannot compute sizeof (void *), 77
16570See \`config.log' for more details." >&2;}
16571 { (exit 1); exit 1; }; }
16572fi
ac1cb8d3 16573rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16574fi
16575fi
16576rm -f conftest.val
16577else
16578 ac_cv_sizeof_void_p=0
16579fi
16580fi
16581echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
16582echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
16583cat >>confdefs.h <<_ACEOF
16584#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
16585_ACEOF
16586
16587
16588echo "$as_me:$LINENO: checking for int" >&5
16589echo $ECHO_N "checking for int... $ECHO_C" >&6
16590if test "${ac_cv_type_int+set}" = set; then
16591 echo $ECHO_N "(cached) $ECHO_C" >&6
16592else
16593 cat >conftest.$ac_ext <<_ACEOF
16594/* confdefs.h. */
16595_ACEOF
16596cat confdefs.h >>conftest.$ac_ext
16597cat >>conftest.$ac_ext <<_ACEOF
16598/* end confdefs.h. */
16599$ac_includes_default
16600int
16601main ()
16602{
16603if ((int *) 0)
16604 return 0;
16605if (sizeof (int))
16606 return 0;
16607 ;
16608 return 0;
16609}
16610_ACEOF
16611rm -f conftest.$ac_objext
16612if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16613 (eval $ac_compile) 2>conftest.er1
a848cd7e 16614 ac_status=$?
ac1cb8d3
VS
16615 grep -v '^ *+' conftest.er1 >conftest.err
16616 rm -f conftest.er1
16617 cat conftest.err >&5
a848cd7e
SC
16618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16619 (exit $ac_status); } &&
89be85c2
VS
16620 { ac_try='test -z "$ac_c_werror_flag"
16621 || test ! -s conftest.err'
ac1cb8d3
VS
16622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16623 (eval $ac_try) 2>&5
16624 ac_status=$?
16625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16626 (exit $ac_status); }; } &&
16627 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16629 (eval $ac_try) 2>&5
16630 ac_status=$?
16631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16632 (exit $ac_status); }; }; then
16633 ac_cv_type_int=yes
16634else
16635 echo "$as_me: failed program was:" >&5
16636sed 's/^/| /' conftest.$ac_ext >&5
16637
16638ac_cv_type_int=no
16639fi
ac1cb8d3 16640rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16641fi
16642echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
16643echo "${ECHO_T}$ac_cv_type_int" >&6
16644
16645echo "$as_me:$LINENO: checking size of int" >&5
16646echo $ECHO_N "checking size of int... $ECHO_C" >&6
16647if test "${ac_cv_sizeof_int+set}" = set; then
16648 echo $ECHO_N "(cached) $ECHO_C" >&6
16649else
16650 if test "$ac_cv_type_int" = yes; then
16651 # The cast to unsigned long works around a bug in the HP C Compiler
16652 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16653 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16654 # This bug is HP SR number 8606223364.
16655 if test "$cross_compiling" = yes; then
16656 # Depending upon the size, compute the lo and hi bounds.
16657cat >conftest.$ac_ext <<_ACEOF
16658/* confdefs.h. */
16659_ACEOF
16660cat confdefs.h >>conftest.$ac_ext
16661cat >>conftest.$ac_ext <<_ACEOF
16662/* end confdefs.h. */
16663$ac_includes_default
16664int
16665main ()
16666{
16667static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
16668test_array [0] = 0
16669
16670 ;
16671 return 0;
16672}
16673_ACEOF
16674rm -f conftest.$ac_objext
16675if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16676 (eval $ac_compile) 2>conftest.er1
a848cd7e 16677 ac_status=$?
ac1cb8d3
VS
16678 grep -v '^ *+' conftest.er1 >conftest.err
16679 rm -f conftest.er1
16680 cat conftest.err >&5
a848cd7e
SC
16681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16682 (exit $ac_status); } &&
89be85c2
VS
16683 { ac_try='test -z "$ac_c_werror_flag"
16684 || test ! -s conftest.err'
ac1cb8d3
VS
16685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16686 (eval $ac_try) 2>&5
16687 ac_status=$?
16688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16689 (exit $ac_status); }; } &&
16690 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16692 (eval $ac_try) 2>&5
16693 ac_status=$?
16694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16695 (exit $ac_status); }; }; then
16696 ac_lo=0 ac_mid=0
16697 while :; do
16698 cat >conftest.$ac_ext <<_ACEOF
16699/* confdefs.h. */
16700_ACEOF
16701cat confdefs.h >>conftest.$ac_ext
16702cat >>conftest.$ac_ext <<_ACEOF
16703/* end confdefs.h. */
16704$ac_includes_default
16705int
16706main ()
16707{
16708static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
16709test_array [0] = 0
16710
16711 ;
16712 return 0;
16713}
16714_ACEOF
16715rm -f conftest.$ac_objext
16716if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16717 (eval $ac_compile) 2>conftest.er1
a848cd7e 16718 ac_status=$?
ac1cb8d3
VS
16719 grep -v '^ *+' conftest.er1 >conftest.err
16720 rm -f conftest.er1
16721 cat conftest.err >&5
a848cd7e
SC
16722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16723 (exit $ac_status); } &&
89be85c2
VS
16724 { ac_try='test -z "$ac_c_werror_flag"
16725 || test ! -s conftest.err'
ac1cb8d3
VS
16726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16727 (eval $ac_try) 2>&5
16728 ac_status=$?
16729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16730 (exit $ac_status); }; } &&
16731 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16733 (eval $ac_try) 2>&5
16734 ac_status=$?
16735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16736 (exit $ac_status); }; }; then
16737 ac_hi=$ac_mid; break
16738else
16739 echo "$as_me: failed program was:" >&5
16740sed 's/^/| /' conftest.$ac_ext >&5
16741
16742ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
16743 if test $ac_lo -le $ac_mid; then
16744 ac_lo= ac_hi=
16745 break
16746 fi
16747 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 16748fi
ac1cb8d3 16749rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16750 done
16751else
16752 echo "$as_me: failed program was:" >&5
16753sed 's/^/| /' conftest.$ac_ext >&5
16754
16755cat >conftest.$ac_ext <<_ACEOF
16756/* confdefs.h. */
16757_ACEOF
16758cat confdefs.h >>conftest.$ac_ext
16759cat >>conftest.$ac_ext <<_ACEOF
16760/* end confdefs.h. */
16761$ac_includes_default
16762int
16763main ()
16764{
16765static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
16766test_array [0] = 0
16767
16768 ;
16769 return 0;
16770}
16771_ACEOF
16772rm -f conftest.$ac_objext
16773if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16774 (eval $ac_compile) 2>conftest.er1
a848cd7e 16775 ac_status=$?
ac1cb8d3
VS
16776 grep -v '^ *+' conftest.er1 >conftest.err
16777 rm -f conftest.er1
16778 cat conftest.err >&5
a848cd7e
SC
16779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16780 (exit $ac_status); } &&
89be85c2
VS
16781 { ac_try='test -z "$ac_c_werror_flag"
16782 || test ! -s conftest.err'
ac1cb8d3
VS
16783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16784 (eval $ac_try) 2>&5
16785 ac_status=$?
16786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16787 (exit $ac_status); }; } &&
16788 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16790 (eval $ac_try) 2>&5
16791 ac_status=$?
16792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16793 (exit $ac_status); }; }; then
16794 ac_hi=-1 ac_mid=-1
16795 while :; do
16796 cat >conftest.$ac_ext <<_ACEOF
16797/* confdefs.h. */
16798_ACEOF
16799cat confdefs.h >>conftest.$ac_ext
16800cat >>conftest.$ac_ext <<_ACEOF
16801/* end confdefs.h. */
16802$ac_includes_default
16803int
16804main ()
16805{
16806static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
16807test_array [0] = 0
16808
16809 ;
16810 return 0;
16811}
16812_ACEOF
16813rm -f conftest.$ac_objext
16814if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16815 (eval $ac_compile) 2>conftest.er1
a848cd7e 16816 ac_status=$?
ac1cb8d3
VS
16817 grep -v '^ *+' conftest.er1 >conftest.err
16818 rm -f conftest.er1
16819 cat conftest.err >&5
a848cd7e
SC
16820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16821 (exit $ac_status); } &&
89be85c2
VS
16822 { ac_try='test -z "$ac_c_werror_flag"
16823 || test ! -s conftest.err'
ac1cb8d3
VS
16824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16825 (eval $ac_try) 2>&5
16826 ac_status=$?
16827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16828 (exit $ac_status); }; } &&
16829 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16831 (eval $ac_try) 2>&5
16832 ac_status=$?
16833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16834 (exit $ac_status); }; }; then
16835 ac_lo=$ac_mid; break
16836else
16837 echo "$as_me: failed program was:" >&5
16838sed 's/^/| /' conftest.$ac_ext >&5
16839
16840ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
16841 if test $ac_mid -le $ac_hi; then
16842 ac_lo= ac_hi=
16843 break
16844 fi
16845 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 16846fi
ac1cb8d3 16847rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16848 done
16849else
16850 echo "$as_me: failed program was:" >&5
16851sed 's/^/| /' conftest.$ac_ext >&5
16852
16853ac_lo= ac_hi=
16854fi
ac1cb8d3 16855rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 16856fi
ac1cb8d3 16857rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16858# Binary search between lo and hi bounds.
16859while test "x$ac_lo" != "x$ac_hi"; do
16860 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16861 cat >conftest.$ac_ext <<_ACEOF
16862/* confdefs.h. */
16863_ACEOF
16864cat confdefs.h >>conftest.$ac_ext
16865cat >>conftest.$ac_ext <<_ACEOF
16866/* end confdefs.h. */
16867$ac_includes_default
16868int
16869main ()
16870{
16871static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
16872test_array [0] = 0
16873
16874 ;
16875 return 0;
16876}
16877_ACEOF
16878rm -f conftest.$ac_objext
16879if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16880 (eval $ac_compile) 2>conftest.er1
a848cd7e 16881 ac_status=$?
ac1cb8d3
VS
16882 grep -v '^ *+' conftest.er1 >conftest.err
16883 rm -f conftest.er1
16884 cat conftest.err >&5
a848cd7e
SC
16885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16886 (exit $ac_status); } &&
89be85c2
VS
16887 { ac_try='test -z "$ac_c_werror_flag"
16888 || test ! -s conftest.err'
ac1cb8d3
VS
16889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16890 (eval $ac_try) 2>&5
16891 ac_status=$?
16892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16893 (exit $ac_status); }; } &&
16894 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16896 (eval $ac_try) 2>&5
16897 ac_status=$?
16898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16899 (exit $ac_status); }; }; then
16900 ac_hi=$ac_mid
16901else
16902 echo "$as_me: failed program was:" >&5
16903sed 's/^/| /' conftest.$ac_ext >&5
16904
16905ac_lo=`expr '(' $ac_mid ')' + 1`
16906fi
ac1cb8d3 16907rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16908done
16909case $ac_lo in
16910?*) ac_cv_sizeof_int=$ac_lo;;
16911'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
16912See \`config.log' for more details." >&5
16913echo "$as_me: error: cannot compute sizeof (int), 77
16914See \`config.log' for more details." >&2;}
16915 { (exit 1); exit 1; }; } ;;
16916esac
16917else
16918 if test "$cross_compiling" = yes; then
89be85c2
VS
16919 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
16920See \`config.log' for more details." >&5
16921echo "$as_me: error: cannot run test program while cross compiling
16922See \`config.log' for more details." >&2;}
a848cd7e
SC
16923 { (exit 1); exit 1; }; }
16924else
16925 cat >conftest.$ac_ext <<_ACEOF
16926/* confdefs.h. */
16927_ACEOF
16928cat confdefs.h >>conftest.$ac_ext
16929cat >>conftest.$ac_ext <<_ACEOF
16930/* end confdefs.h. */
16931$ac_includes_default
16932long longval () { return (long) (sizeof (int)); }
16933unsigned long ulongval () { return (long) (sizeof (int)); }
16934#include <stdio.h>
16935#include <stdlib.h>
16936int
16937main ()
16938{
16939
16940 FILE *f = fopen ("conftest.val", "w");
16941 if (! f)
16942 exit (1);
16943 if (((long) (sizeof (int))) < 0)
16944 {
16945 long i = longval ();
16946 if (i != ((long) (sizeof (int))))
16947 exit (1);
16948 fprintf (f, "%ld\n", i);
16949 }
16950 else
16951 {
16952 unsigned long i = ulongval ();
16953 if (i != ((long) (sizeof (int))))
16954 exit (1);
16955 fprintf (f, "%lu\n", i);
16956 }
16957 exit (ferror (f) || fclose (f) != 0);
16958
16959 ;
16960 return 0;
16961}
16962_ACEOF
16963rm -f conftest$ac_exeext
16964if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16965 (eval $ac_link) 2>&5
16966 ac_status=$?
16967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16968 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16970 (eval $ac_try) 2>&5
16971 ac_status=$?
16972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16973 (exit $ac_status); }; }; then
16974 ac_cv_sizeof_int=`cat conftest.val`
16975else
16976 echo "$as_me: program exited with status $ac_status" >&5
16977echo "$as_me: failed program was:" >&5
16978sed 's/^/| /' conftest.$ac_ext >&5
16979
16980( exit $ac_status )
16981{ { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
16982See \`config.log' for more details." >&5
16983echo "$as_me: error: cannot compute sizeof (int), 77
16984See \`config.log' for more details." >&2;}
16985 { (exit 1); exit 1; }; }
16986fi
ac1cb8d3 16987rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16988fi
16989fi
16990rm -f conftest.val
16991else
16992 ac_cv_sizeof_int=0
16993fi
16994fi
16995echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
16996echo "${ECHO_T}$ac_cv_sizeof_int" >&6
16997cat >>confdefs.h <<_ACEOF
16998#define SIZEOF_INT $ac_cv_sizeof_int
16999_ACEOF
17000
17001
17002echo "$as_me:$LINENO: checking for long" >&5
17003echo $ECHO_N "checking for long... $ECHO_C" >&6
17004if test "${ac_cv_type_long+set}" = set; then
17005 echo $ECHO_N "(cached) $ECHO_C" >&6
17006else
17007 cat >conftest.$ac_ext <<_ACEOF
17008/* confdefs.h. */
17009_ACEOF
17010cat confdefs.h >>conftest.$ac_ext
17011cat >>conftest.$ac_ext <<_ACEOF
17012/* end confdefs.h. */
17013$ac_includes_default
17014int
17015main ()
17016{
17017if ((long *) 0)
17018 return 0;
17019if (sizeof (long))
17020 return 0;
17021 ;
17022 return 0;
17023}
17024_ACEOF
17025rm -f conftest.$ac_objext
17026if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17027 (eval $ac_compile) 2>conftest.er1
a848cd7e 17028 ac_status=$?
ac1cb8d3
VS
17029 grep -v '^ *+' conftest.er1 >conftest.err
17030 rm -f conftest.er1
17031 cat conftest.err >&5
a848cd7e
SC
17032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17033 (exit $ac_status); } &&
89be85c2
VS
17034 { ac_try='test -z "$ac_c_werror_flag"
17035 || test ! -s conftest.err'
ac1cb8d3
VS
17036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17037 (eval $ac_try) 2>&5
17038 ac_status=$?
17039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17040 (exit $ac_status); }; } &&
17041 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17043 (eval $ac_try) 2>&5
17044 ac_status=$?
17045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17046 (exit $ac_status); }; }; then
17047 ac_cv_type_long=yes
17048else
17049 echo "$as_me: failed program was:" >&5
17050sed 's/^/| /' conftest.$ac_ext >&5
17051
17052ac_cv_type_long=no
17053fi
ac1cb8d3 17054rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17055fi
17056echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
17057echo "${ECHO_T}$ac_cv_type_long" >&6
17058
17059echo "$as_me:$LINENO: checking size of long" >&5
17060echo $ECHO_N "checking size of long... $ECHO_C" >&6
17061if test "${ac_cv_sizeof_long+set}" = set; then
17062 echo $ECHO_N "(cached) $ECHO_C" >&6
17063else
17064 if test "$ac_cv_type_long" = yes; then
17065 # The cast to unsigned long works around a bug in the HP C Compiler
17066 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17067 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17068 # This bug is HP SR number 8606223364.
17069 if test "$cross_compiling" = yes; then
17070 # Depending upon the size, compute the lo and hi bounds.
17071cat >conftest.$ac_ext <<_ACEOF
17072/* confdefs.h. */
17073_ACEOF
17074cat confdefs.h >>conftest.$ac_ext
17075cat >>conftest.$ac_ext <<_ACEOF
17076/* end confdefs.h. */
17077$ac_includes_default
17078int
17079main ()
17080{
17081static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
17082test_array [0] = 0
17083
17084 ;
17085 return 0;
17086}
17087_ACEOF
17088rm -f conftest.$ac_objext
17089if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17090 (eval $ac_compile) 2>conftest.er1
a848cd7e 17091 ac_status=$?
ac1cb8d3
VS
17092 grep -v '^ *+' conftest.er1 >conftest.err
17093 rm -f conftest.er1
17094 cat conftest.err >&5
a848cd7e
SC
17095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17096 (exit $ac_status); } &&
89be85c2
VS
17097 { ac_try='test -z "$ac_c_werror_flag"
17098 || test ! -s conftest.err'
ac1cb8d3
VS
17099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17100 (eval $ac_try) 2>&5
17101 ac_status=$?
17102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17103 (exit $ac_status); }; } &&
17104 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17106 (eval $ac_try) 2>&5
17107 ac_status=$?
17108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17109 (exit $ac_status); }; }; then
17110 ac_lo=0 ac_mid=0
17111 while :; do
17112 cat >conftest.$ac_ext <<_ACEOF
17113/* confdefs.h. */
17114_ACEOF
17115cat confdefs.h >>conftest.$ac_ext
17116cat >>conftest.$ac_ext <<_ACEOF
17117/* end confdefs.h. */
17118$ac_includes_default
17119int
17120main ()
17121{
17122static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
17123test_array [0] = 0
17124
17125 ;
17126 return 0;
17127}
17128_ACEOF
17129rm -f conftest.$ac_objext
17130if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17131 (eval $ac_compile) 2>conftest.er1
a848cd7e 17132 ac_status=$?
ac1cb8d3
VS
17133 grep -v '^ *+' conftest.er1 >conftest.err
17134 rm -f conftest.er1
17135 cat conftest.err >&5
a848cd7e
SC
17136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17137 (exit $ac_status); } &&
89be85c2
VS
17138 { ac_try='test -z "$ac_c_werror_flag"
17139 || test ! -s conftest.err'
ac1cb8d3
VS
17140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17141 (eval $ac_try) 2>&5
17142 ac_status=$?
17143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17144 (exit $ac_status); }; } &&
17145 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17147 (eval $ac_try) 2>&5
17148 ac_status=$?
17149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17150 (exit $ac_status); }; }; then
17151 ac_hi=$ac_mid; break
17152else
17153 echo "$as_me: failed program was:" >&5
17154sed 's/^/| /' conftest.$ac_ext >&5
17155
17156ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
17157 if test $ac_lo -le $ac_mid; then
17158 ac_lo= ac_hi=
17159 break
17160 fi
17161 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 17162fi
ac1cb8d3 17163rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17164 done
17165else
17166 echo "$as_me: failed program was:" >&5
17167sed 's/^/| /' conftest.$ac_ext >&5
17168
17169cat >conftest.$ac_ext <<_ACEOF
17170/* confdefs.h. */
17171_ACEOF
17172cat confdefs.h >>conftest.$ac_ext
17173cat >>conftest.$ac_ext <<_ACEOF
17174/* end confdefs.h. */
17175$ac_includes_default
17176int
17177main ()
17178{
17179static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
17180test_array [0] = 0
17181
17182 ;
17183 return 0;
17184}
17185_ACEOF
17186rm -f conftest.$ac_objext
17187if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17188 (eval $ac_compile) 2>conftest.er1
a848cd7e 17189 ac_status=$?
ac1cb8d3
VS
17190 grep -v '^ *+' conftest.er1 >conftest.err
17191 rm -f conftest.er1
17192 cat conftest.err >&5
a848cd7e
SC
17193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17194 (exit $ac_status); } &&
89be85c2
VS
17195 { ac_try='test -z "$ac_c_werror_flag"
17196 || test ! -s conftest.err'
ac1cb8d3
VS
17197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17198 (eval $ac_try) 2>&5
17199 ac_status=$?
17200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17201 (exit $ac_status); }; } &&
17202 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17204 (eval $ac_try) 2>&5
17205 ac_status=$?
17206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17207 (exit $ac_status); }; }; then
17208 ac_hi=-1 ac_mid=-1
17209 while :; do
17210 cat >conftest.$ac_ext <<_ACEOF
17211/* confdefs.h. */
17212_ACEOF
17213cat confdefs.h >>conftest.$ac_ext
17214cat >>conftest.$ac_ext <<_ACEOF
17215/* end confdefs.h. */
17216$ac_includes_default
17217int
17218main ()
17219{
17220static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
17221test_array [0] = 0
17222
17223 ;
17224 return 0;
17225}
17226_ACEOF
17227rm -f conftest.$ac_objext
17228if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17229 (eval $ac_compile) 2>conftest.er1
a848cd7e 17230 ac_status=$?
ac1cb8d3
VS
17231 grep -v '^ *+' conftest.er1 >conftest.err
17232 rm -f conftest.er1
17233 cat conftest.err >&5
a848cd7e
SC
17234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17235 (exit $ac_status); } &&
89be85c2
VS
17236 { ac_try='test -z "$ac_c_werror_flag"
17237 || test ! -s conftest.err'
ac1cb8d3
VS
17238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17239 (eval $ac_try) 2>&5
17240 ac_status=$?
17241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17242 (exit $ac_status); }; } &&
17243 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17245 (eval $ac_try) 2>&5
17246 ac_status=$?
17247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17248 (exit $ac_status); }; }; then
17249 ac_lo=$ac_mid; break
17250else
17251 echo "$as_me: failed program was:" >&5
17252sed 's/^/| /' conftest.$ac_ext >&5
17253
17254ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
17255 if test $ac_mid -le $ac_hi; then
17256 ac_lo= ac_hi=
17257 break
17258 fi
17259 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 17260fi
ac1cb8d3 17261rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17262 done
17263else
17264 echo "$as_me: failed program was:" >&5
17265sed 's/^/| /' conftest.$ac_ext >&5
17266
17267ac_lo= ac_hi=
17268fi
ac1cb8d3 17269rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 17270fi
ac1cb8d3 17271rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17272# Binary search between lo and hi bounds.
17273while test "x$ac_lo" != "x$ac_hi"; do
17274 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
17275 cat >conftest.$ac_ext <<_ACEOF
17276/* confdefs.h. */
17277_ACEOF
17278cat confdefs.h >>conftest.$ac_ext
17279cat >>conftest.$ac_ext <<_ACEOF
17280/* end confdefs.h. */
17281$ac_includes_default
17282int
17283main ()
17284{
17285static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
17286test_array [0] = 0
17287
17288 ;
17289 return 0;
17290}
17291_ACEOF
17292rm -f conftest.$ac_objext
17293if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17294 (eval $ac_compile) 2>conftest.er1
a848cd7e 17295 ac_status=$?
ac1cb8d3
VS
17296 grep -v '^ *+' conftest.er1 >conftest.err
17297 rm -f conftest.er1
17298 cat conftest.err >&5
a848cd7e
SC
17299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17300 (exit $ac_status); } &&
89be85c2
VS
17301 { ac_try='test -z "$ac_c_werror_flag"
17302 || test ! -s conftest.err'
ac1cb8d3
VS
17303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17304 (eval $ac_try) 2>&5
17305 ac_status=$?
17306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17307 (exit $ac_status); }; } &&
17308 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17310 (eval $ac_try) 2>&5
17311 ac_status=$?
17312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17313 (exit $ac_status); }; }; then
17314 ac_hi=$ac_mid
17315else
17316 echo "$as_me: failed program was:" >&5
17317sed 's/^/| /' conftest.$ac_ext >&5
17318
17319ac_lo=`expr '(' $ac_mid ')' + 1`
17320fi
ac1cb8d3 17321rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17322done
17323case $ac_lo in
17324?*) ac_cv_sizeof_long=$ac_lo;;
17325'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
17326See \`config.log' for more details." >&5
17327echo "$as_me: error: cannot compute sizeof (long), 77
17328See \`config.log' for more details." >&2;}
17329 { (exit 1); exit 1; }; } ;;
17330esac
17331else
17332 if test "$cross_compiling" = yes; then
89be85c2
VS
17333 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
17334See \`config.log' for more details." >&5
17335echo "$as_me: error: cannot run test program while cross compiling
17336See \`config.log' for more details." >&2;}
a848cd7e
SC
17337 { (exit 1); exit 1; }; }
17338else
17339 cat >conftest.$ac_ext <<_ACEOF
17340/* confdefs.h. */
17341_ACEOF
17342cat confdefs.h >>conftest.$ac_ext
17343cat >>conftest.$ac_ext <<_ACEOF
17344/* end confdefs.h. */
17345$ac_includes_default
17346long longval () { return (long) (sizeof (long)); }
17347unsigned long ulongval () { return (long) (sizeof (long)); }
17348#include <stdio.h>
17349#include <stdlib.h>
17350int
17351main ()
17352{
17353
17354 FILE *f = fopen ("conftest.val", "w");
17355 if (! f)
17356 exit (1);
17357 if (((long) (sizeof (long))) < 0)
17358 {
17359 long i = longval ();
17360 if (i != ((long) (sizeof (long))))
17361 exit (1);
17362 fprintf (f, "%ld\n", i);
17363 }
17364 else
17365 {
17366 unsigned long i = ulongval ();
17367 if (i != ((long) (sizeof (long))))
17368 exit (1);
17369 fprintf (f, "%lu\n", i);
17370 }
17371 exit (ferror (f) || fclose (f) != 0);
17372
17373 ;
17374 return 0;
17375}
17376_ACEOF
17377rm -f conftest$ac_exeext
17378if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17379 (eval $ac_link) 2>&5
17380 ac_status=$?
17381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17382 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17384 (eval $ac_try) 2>&5
17385 ac_status=$?
17386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17387 (exit $ac_status); }; }; then
17388 ac_cv_sizeof_long=`cat conftest.val`
17389else
17390 echo "$as_me: program exited with status $ac_status" >&5
17391echo "$as_me: failed program was:" >&5
17392sed 's/^/| /' conftest.$ac_ext >&5
17393
17394( exit $ac_status )
17395{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
17396See \`config.log' for more details." >&5
17397echo "$as_me: error: cannot compute sizeof (long), 77
17398See \`config.log' for more details." >&2;}
17399 { (exit 1); exit 1; }; }
17400fi
ac1cb8d3 17401rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17402fi
17403fi
17404rm -f conftest.val
17405else
17406 ac_cv_sizeof_long=0
17407fi
17408fi
17409echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
17410echo "${ECHO_T}$ac_cv_sizeof_long" >&6
17411cat >>confdefs.h <<_ACEOF
17412#define SIZEOF_LONG $ac_cv_sizeof_long
17413_ACEOF
17414
17415
17416echo "$as_me:$LINENO: checking for size_t" >&5
17417echo $ECHO_N "checking for size_t... $ECHO_C" >&6
17418if test "${ac_cv_type_size_t+set}" = set; then
17419 echo $ECHO_N "(cached) $ECHO_C" >&6
17420else
17421 cat >conftest.$ac_ext <<_ACEOF
17422/* confdefs.h. */
17423_ACEOF
17424cat confdefs.h >>conftest.$ac_ext
17425cat >>conftest.$ac_ext <<_ACEOF
17426/* end confdefs.h. */
17427$ac_includes_default
17428int
17429main ()
17430{
17431if ((size_t *) 0)
17432 return 0;
17433if (sizeof (size_t))
17434 return 0;
17435 ;
17436 return 0;
17437}
17438_ACEOF
17439rm -f conftest.$ac_objext
17440if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17441 (eval $ac_compile) 2>conftest.er1
a848cd7e 17442 ac_status=$?
ac1cb8d3
VS
17443 grep -v '^ *+' conftest.er1 >conftest.err
17444 rm -f conftest.er1
17445 cat conftest.err >&5
a848cd7e
SC
17446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17447 (exit $ac_status); } &&
89be85c2
VS
17448 { ac_try='test -z "$ac_c_werror_flag"
17449 || test ! -s conftest.err'
ac1cb8d3
VS
17450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17451 (eval $ac_try) 2>&5
17452 ac_status=$?
17453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17454 (exit $ac_status); }; } &&
17455 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17457 (eval $ac_try) 2>&5
17458 ac_status=$?
17459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17460 (exit $ac_status); }; }; then
17461 ac_cv_type_size_t=yes
17462else
17463 echo "$as_me: failed program was:" >&5
17464sed 's/^/| /' conftest.$ac_ext >&5
17465
17466ac_cv_type_size_t=no
17467fi
ac1cb8d3 17468rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17469fi
17470echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
17471echo "${ECHO_T}$ac_cv_type_size_t" >&6
17472
17473echo "$as_me:$LINENO: checking size of size_t" >&5
17474echo $ECHO_N "checking size of size_t... $ECHO_C" >&6
17475if test "${ac_cv_sizeof_size_t+set}" = set; then
17476 echo $ECHO_N "(cached) $ECHO_C" >&6
17477else
17478 if test "$ac_cv_type_size_t" = yes; then
17479 # The cast to unsigned long works around a bug in the HP C Compiler
17480 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17481 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17482 # This bug is HP SR number 8606223364.
17483 if test "$cross_compiling" = yes; then
17484 # Depending upon the size, compute the lo and hi bounds.
17485cat >conftest.$ac_ext <<_ACEOF
17486/* confdefs.h. */
17487_ACEOF
17488cat confdefs.h >>conftest.$ac_ext
17489cat >>conftest.$ac_ext <<_ACEOF
17490/* end confdefs.h. */
17491$ac_includes_default
17492int
17493main ()
17494{
17495static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= 0)];
17496test_array [0] = 0
17497
17498 ;
17499 return 0;
17500}
17501_ACEOF
17502rm -f conftest.$ac_objext
17503if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17504 (eval $ac_compile) 2>conftest.er1
a848cd7e 17505 ac_status=$?
ac1cb8d3
VS
17506 grep -v '^ *+' conftest.er1 >conftest.err
17507 rm -f conftest.er1
17508 cat conftest.err >&5
a848cd7e
SC
17509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17510 (exit $ac_status); } &&
89be85c2
VS
17511 { ac_try='test -z "$ac_c_werror_flag"
17512 || test ! -s conftest.err'
ac1cb8d3
VS
17513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17514 (eval $ac_try) 2>&5
17515 ac_status=$?
17516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17517 (exit $ac_status); }; } &&
17518 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
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); }; }; then
17524 ac_lo=0 ac_mid=0
17525 while :; do
17526 cat >conftest.$ac_ext <<_ACEOF
17527/* confdefs.h. */
17528_ACEOF
17529cat confdefs.h >>conftest.$ac_ext
17530cat >>conftest.$ac_ext <<_ACEOF
17531/* end confdefs.h. */
17532$ac_includes_default
17533int
17534main ()
17535{
17536static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
17537test_array [0] = 0
17538
17539 ;
17540 return 0;
17541}
17542_ACEOF
17543rm -f conftest.$ac_objext
17544if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17545 (eval $ac_compile) 2>conftest.er1
a848cd7e 17546 ac_status=$?
ac1cb8d3
VS
17547 grep -v '^ *+' conftest.er1 >conftest.err
17548 rm -f conftest.er1
17549 cat conftest.err >&5
a848cd7e
SC
17550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17551 (exit $ac_status); } &&
89be85c2
VS
17552 { ac_try='test -z "$ac_c_werror_flag"
17553 || test ! -s conftest.err'
ac1cb8d3
VS
17554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17555 (eval $ac_try) 2>&5
17556 ac_status=$?
17557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17558 (exit $ac_status); }; } &&
17559 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17561 (eval $ac_try) 2>&5
17562 ac_status=$?
17563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17564 (exit $ac_status); }; }; then
17565 ac_hi=$ac_mid; break
17566else
17567 echo "$as_me: failed program was:" >&5
17568sed 's/^/| /' conftest.$ac_ext >&5
17569
17570ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
17571 if test $ac_lo -le $ac_mid; then
17572 ac_lo= ac_hi=
17573 break
17574 fi
17575 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 17576fi
ac1cb8d3 17577rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17578 done
17579else
17580 echo "$as_me: failed program was:" >&5
17581sed 's/^/| /' conftest.$ac_ext >&5
17582
17583cat >conftest.$ac_ext <<_ACEOF
17584/* confdefs.h. */
17585_ACEOF
17586cat confdefs.h >>conftest.$ac_ext
17587cat >>conftest.$ac_ext <<_ACEOF
17588/* end confdefs.h. */
17589$ac_includes_default
17590int
17591main ()
17592{
17593static int test_array [1 - 2 * !(((long) (sizeof (size_t))) < 0)];
17594test_array [0] = 0
17595
17596 ;
17597 return 0;
17598}
17599_ACEOF
17600rm -f conftest.$ac_objext
17601if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17602 (eval $ac_compile) 2>conftest.er1
a848cd7e 17603 ac_status=$?
ac1cb8d3
VS
17604 grep -v '^ *+' conftest.er1 >conftest.err
17605 rm -f conftest.er1
17606 cat conftest.err >&5
a848cd7e
SC
17607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17608 (exit $ac_status); } &&
89be85c2
VS
17609 { ac_try='test -z "$ac_c_werror_flag"
17610 || test ! -s conftest.err'
ac1cb8d3
VS
17611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17612 (eval $ac_try) 2>&5
17613 ac_status=$?
17614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17615 (exit $ac_status); }; } &&
17616 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17618 (eval $ac_try) 2>&5
17619 ac_status=$?
17620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17621 (exit $ac_status); }; }; then
17622 ac_hi=-1 ac_mid=-1
17623 while :; do
17624 cat >conftest.$ac_ext <<_ACEOF
17625/* confdefs.h. */
17626_ACEOF
17627cat confdefs.h >>conftest.$ac_ext
17628cat >>conftest.$ac_ext <<_ACEOF
17629/* end confdefs.h. */
17630$ac_includes_default
17631int
17632main ()
17633{
17634static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= $ac_mid)];
17635test_array [0] = 0
17636
17637 ;
17638 return 0;
17639}
17640_ACEOF
17641rm -f conftest.$ac_objext
17642if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17643 (eval $ac_compile) 2>conftest.er1
a848cd7e 17644 ac_status=$?
ac1cb8d3
VS
17645 grep -v '^ *+' conftest.er1 >conftest.err
17646 rm -f conftest.er1
17647 cat conftest.err >&5
a848cd7e
SC
17648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17649 (exit $ac_status); } &&
89be85c2
VS
17650 { ac_try='test -z "$ac_c_werror_flag"
17651 || test ! -s conftest.err'
ac1cb8d3
VS
17652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17653 (eval $ac_try) 2>&5
17654 ac_status=$?
17655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17656 (exit $ac_status); }; } &&
17657 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17659 (eval $ac_try) 2>&5
17660 ac_status=$?
17661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17662 (exit $ac_status); }; }; then
17663 ac_lo=$ac_mid; break
17664else
17665 echo "$as_me: failed program was:" >&5
17666sed 's/^/| /' conftest.$ac_ext >&5
17667
17668ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
17669 if test $ac_mid -le $ac_hi; then
17670 ac_lo= ac_hi=
17671 break
17672 fi
17673 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 17674fi
ac1cb8d3 17675rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17676 done
17677else
17678 echo "$as_me: failed program was:" >&5
17679sed 's/^/| /' conftest.$ac_ext >&5
17680
17681ac_lo= ac_hi=
17682fi
ac1cb8d3 17683rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 17684fi
ac1cb8d3 17685rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17686# Binary search between lo and hi bounds.
17687while test "x$ac_lo" != "x$ac_hi"; do
17688 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
17689 cat >conftest.$ac_ext <<_ACEOF
17690/* confdefs.h. */
17691_ACEOF
17692cat confdefs.h >>conftest.$ac_ext
17693cat >>conftest.$ac_ext <<_ACEOF
17694/* end confdefs.h. */
17695$ac_includes_default
17696int
17697main ()
17698{
17699static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
17700test_array [0] = 0
17701
17702 ;
17703 return 0;
17704}
17705_ACEOF
17706rm -f conftest.$ac_objext
17707if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17708 (eval $ac_compile) 2>conftest.er1
a848cd7e 17709 ac_status=$?
ac1cb8d3
VS
17710 grep -v '^ *+' conftest.er1 >conftest.err
17711 rm -f conftest.er1
17712 cat conftest.err >&5
a848cd7e
SC
17713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17714 (exit $ac_status); } &&
89be85c2
VS
17715 { ac_try='test -z "$ac_c_werror_flag"
17716 || test ! -s conftest.err'
ac1cb8d3
VS
17717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17718 (eval $ac_try) 2>&5
17719 ac_status=$?
17720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17721 (exit $ac_status); }; } &&
17722 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17724 (eval $ac_try) 2>&5
17725 ac_status=$?
17726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17727 (exit $ac_status); }; }; then
17728 ac_hi=$ac_mid
17729else
17730 echo "$as_me: failed program was:" >&5
17731sed 's/^/| /' conftest.$ac_ext >&5
17732
17733ac_lo=`expr '(' $ac_mid ')' + 1`
17734fi
ac1cb8d3 17735rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17736done
17737case $ac_lo in
17738?*) ac_cv_sizeof_size_t=$ac_lo;;
17739'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
17740See \`config.log' for more details." >&5
17741echo "$as_me: error: cannot compute sizeof (size_t), 77
17742See \`config.log' for more details." >&2;}
17743 { (exit 1); exit 1; }; } ;;
17744esac
17745else
17746 if test "$cross_compiling" = yes; then
89be85c2
VS
17747 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
17748See \`config.log' for more details." >&5
17749echo "$as_me: error: cannot run test program while cross compiling
17750See \`config.log' for more details." >&2;}
a848cd7e
SC
17751 { (exit 1); exit 1; }; }
17752else
17753 cat >conftest.$ac_ext <<_ACEOF
17754/* confdefs.h. */
17755_ACEOF
17756cat confdefs.h >>conftest.$ac_ext
17757cat >>conftest.$ac_ext <<_ACEOF
17758/* end confdefs.h. */
17759$ac_includes_default
17760long longval () { return (long) (sizeof (size_t)); }
17761unsigned long ulongval () { return (long) (sizeof (size_t)); }
17762#include <stdio.h>
17763#include <stdlib.h>
17764int
17765main ()
17766{
17767
17768 FILE *f = fopen ("conftest.val", "w");
17769 if (! f)
17770 exit (1);
17771 if (((long) (sizeof (size_t))) < 0)
17772 {
17773 long i = longval ();
17774 if (i != ((long) (sizeof (size_t))))
17775 exit (1);
17776 fprintf (f, "%ld\n", i);
17777 }
17778 else
17779 {
17780 unsigned long i = ulongval ();
17781 if (i != ((long) (sizeof (size_t))))
17782 exit (1);
17783 fprintf (f, "%lu\n", i);
17784 }
17785 exit (ferror (f) || fclose (f) != 0);
17786
17787 ;
17788 return 0;
17789}
17790_ACEOF
17791rm -f conftest$ac_exeext
17792if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17793 (eval $ac_link) 2>&5
17794 ac_status=$?
17795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17796 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17798 (eval $ac_try) 2>&5
17799 ac_status=$?
17800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17801 (exit $ac_status); }; }; then
17802 ac_cv_sizeof_size_t=`cat conftest.val`
17803else
17804 echo "$as_me: program exited with status $ac_status" >&5
17805echo "$as_me: failed program was:" >&5
17806sed 's/^/| /' conftest.$ac_ext >&5
17807
17808( exit $ac_status )
17809{ { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
17810See \`config.log' for more details." >&5
17811echo "$as_me: error: cannot compute sizeof (size_t), 77
17812See \`config.log' for more details." >&2;}
17813 { (exit 1); exit 1; }; }
17814fi
ac1cb8d3 17815rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17816fi
17817fi
17818rm -f conftest.val
17819else
17820 ac_cv_sizeof_size_t=0
17821fi
17822fi
17823echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
17824echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6
17825cat >>confdefs.h <<_ACEOF
17826#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
17827_ACEOF
17828
17829
17830
17831case "${host}" in
17832 arm-*-linux* )
17833 echo "$as_me:$LINENO: checking for long long" >&5
17834echo $ECHO_N "checking for long long... $ECHO_C" >&6
17835if test "${ac_cv_type_long_long+set}" = set; then
17836 echo $ECHO_N "(cached) $ECHO_C" >&6
17837else
17838 cat >conftest.$ac_ext <<_ACEOF
17839/* confdefs.h. */
17840_ACEOF
17841cat confdefs.h >>conftest.$ac_ext
17842cat >>conftest.$ac_ext <<_ACEOF
17843/* end confdefs.h. */
17844$ac_includes_default
17845int
17846main ()
17847{
17848if ((long long *) 0)
17849 return 0;
17850if (sizeof (long long))
17851 return 0;
17852 ;
17853 return 0;
17854}
17855_ACEOF
17856rm -f conftest.$ac_objext
17857if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17858 (eval $ac_compile) 2>conftest.er1
a848cd7e 17859 ac_status=$?
ac1cb8d3
VS
17860 grep -v '^ *+' conftest.er1 >conftest.err
17861 rm -f conftest.er1
17862 cat conftest.err >&5
a848cd7e
SC
17863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17864 (exit $ac_status); } &&
89be85c2
VS
17865 { ac_try='test -z "$ac_c_werror_flag"
17866 || test ! -s conftest.err'
ac1cb8d3
VS
17867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17868 (eval $ac_try) 2>&5
17869 ac_status=$?
17870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17871 (exit $ac_status); }; } &&
17872 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17874 (eval $ac_try) 2>&5
17875 ac_status=$?
17876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17877 (exit $ac_status); }; }; then
17878 ac_cv_type_long_long=yes
17879else
17880 echo "$as_me: failed program was:" >&5
17881sed 's/^/| /' conftest.$ac_ext >&5
17882
17883ac_cv_type_long_long=no
17884fi
ac1cb8d3 17885rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17886fi
17887echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
17888echo "${ECHO_T}$ac_cv_type_long_long" >&6
17889
17890echo "$as_me:$LINENO: checking size of long long" >&5
17891echo $ECHO_N "checking size of long long... $ECHO_C" >&6
17892if test "${ac_cv_sizeof_long_long+set}" = set; then
17893 echo $ECHO_N "(cached) $ECHO_C" >&6
17894else
17895 if test "$ac_cv_type_long_long" = yes; then
17896 # The cast to unsigned long works around a bug in the HP C Compiler
17897 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17898 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17899 # This bug is HP SR number 8606223364.
17900 if test "$cross_compiling" = yes; then
17901 # Depending upon the size, compute the lo and hi bounds.
17902cat >conftest.$ac_ext <<_ACEOF
17903/* confdefs.h. */
17904_ACEOF
17905cat confdefs.h >>conftest.$ac_ext
17906cat >>conftest.$ac_ext <<_ACEOF
17907/* end confdefs.h. */
17908$ac_includes_default
17909int
17910main ()
17911{
17912static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
17913test_array [0] = 0
17914
17915 ;
17916 return 0;
17917}
17918_ACEOF
17919rm -f conftest.$ac_objext
17920if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17921 (eval $ac_compile) 2>conftest.er1
a848cd7e 17922 ac_status=$?
ac1cb8d3
VS
17923 grep -v '^ *+' conftest.er1 >conftest.err
17924 rm -f conftest.er1
17925 cat conftest.err >&5
a848cd7e
SC
17926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17927 (exit $ac_status); } &&
89be85c2
VS
17928 { ac_try='test -z "$ac_c_werror_flag"
17929 || test ! -s conftest.err'
ac1cb8d3
VS
17930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17931 (eval $ac_try) 2>&5
17932 ac_status=$?
17933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17934 (exit $ac_status); }; } &&
17935 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17937 (eval $ac_try) 2>&5
17938 ac_status=$?
17939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17940 (exit $ac_status); }; }; then
17941 ac_lo=0 ac_mid=0
17942 while :; do
17943 cat >conftest.$ac_ext <<_ACEOF
17944/* confdefs.h. */
17945_ACEOF
17946cat confdefs.h >>conftest.$ac_ext
17947cat >>conftest.$ac_ext <<_ACEOF
17948/* end confdefs.h. */
17949$ac_includes_default
17950int
17951main ()
17952{
17953static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
17954test_array [0] = 0
17955
17956 ;
17957 return 0;
17958}
17959_ACEOF
17960rm -f conftest.$ac_objext
17961if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17962 (eval $ac_compile) 2>conftest.er1
a848cd7e 17963 ac_status=$?
ac1cb8d3
VS
17964 grep -v '^ *+' conftest.er1 >conftest.err
17965 rm -f conftest.er1
17966 cat conftest.err >&5
a848cd7e
SC
17967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17968 (exit $ac_status); } &&
89be85c2
VS
17969 { ac_try='test -z "$ac_c_werror_flag"
17970 || test ! -s conftest.err'
ac1cb8d3
VS
17971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17972 (eval $ac_try) 2>&5
17973 ac_status=$?
17974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17975 (exit $ac_status); }; } &&
17976 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17978 (eval $ac_try) 2>&5
17979 ac_status=$?
17980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17981 (exit $ac_status); }; }; then
17982 ac_hi=$ac_mid; break
17983else
17984 echo "$as_me: failed program was:" >&5
17985sed 's/^/| /' conftest.$ac_ext >&5
17986
17987ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
17988 if test $ac_lo -le $ac_mid; then
17989 ac_lo= ac_hi=
17990 break
17991 fi
17992 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 17993fi
ac1cb8d3 17994rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17995 done
17996else
17997 echo "$as_me: failed program was:" >&5
17998sed 's/^/| /' conftest.$ac_ext >&5
17999
18000cat >conftest.$ac_ext <<_ACEOF
18001/* confdefs.h. */
18002_ACEOF
18003cat confdefs.h >>conftest.$ac_ext
18004cat >>conftest.$ac_ext <<_ACEOF
18005/* end confdefs.h. */
18006$ac_includes_default
18007int
18008main ()
18009{
18010static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
18011test_array [0] = 0
18012
18013 ;
18014 return 0;
18015}
18016_ACEOF
18017rm -f conftest.$ac_objext
18018if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18019 (eval $ac_compile) 2>conftest.er1
a848cd7e 18020 ac_status=$?
ac1cb8d3
VS
18021 grep -v '^ *+' conftest.er1 >conftest.err
18022 rm -f conftest.er1
18023 cat conftest.err >&5
a848cd7e
SC
18024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18025 (exit $ac_status); } &&
89be85c2
VS
18026 { ac_try='test -z "$ac_c_werror_flag"
18027 || test ! -s conftest.err'
ac1cb8d3
VS
18028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18029 (eval $ac_try) 2>&5
18030 ac_status=$?
18031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18032 (exit $ac_status); }; } &&
18033 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18035 (eval $ac_try) 2>&5
18036 ac_status=$?
18037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18038 (exit $ac_status); }; }; then
18039 ac_hi=-1 ac_mid=-1
18040 while :; do
18041 cat >conftest.$ac_ext <<_ACEOF
18042/* confdefs.h. */
18043_ACEOF
18044cat confdefs.h >>conftest.$ac_ext
18045cat >>conftest.$ac_ext <<_ACEOF
18046/* end confdefs.h. */
18047$ac_includes_default
18048int
18049main ()
18050{
18051static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
18052test_array [0] = 0
18053
18054 ;
18055 return 0;
18056}
18057_ACEOF
18058rm -f conftest.$ac_objext
18059if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18060 (eval $ac_compile) 2>conftest.er1
a848cd7e 18061 ac_status=$?
ac1cb8d3
VS
18062 grep -v '^ *+' conftest.er1 >conftest.err
18063 rm -f conftest.er1
18064 cat conftest.err >&5
a848cd7e
SC
18065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18066 (exit $ac_status); } &&
89be85c2
VS
18067 { ac_try='test -z "$ac_c_werror_flag"
18068 || test ! -s conftest.err'
ac1cb8d3
VS
18069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18070 (eval $ac_try) 2>&5
18071 ac_status=$?
18072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18073 (exit $ac_status); }; } &&
18074 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18076 (eval $ac_try) 2>&5
18077 ac_status=$?
18078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18079 (exit $ac_status); }; }; then
18080 ac_lo=$ac_mid; break
18081else
18082 echo "$as_me: failed program was:" >&5
18083sed 's/^/| /' conftest.$ac_ext >&5
18084
18085ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
18086 if test $ac_mid -le $ac_hi; then
18087 ac_lo= ac_hi=
18088 break
18089 fi
18090 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 18091fi
ac1cb8d3 18092rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18093 done
18094else
18095 echo "$as_me: failed program was:" >&5
18096sed 's/^/| /' conftest.$ac_ext >&5
18097
18098ac_lo= ac_hi=
18099fi
ac1cb8d3 18100rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 18101fi
ac1cb8d3 18102rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18103# Binary search between lo and hi bounds.
18104while test "x$ac_lo" != "x$ac_hi"; do
18105 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18106 cat >conftest.$ac_ext <<_ACEOF
18107/* confdefs.h. */
18108_ACEOF
18109cat confdefs.h >>conftest.$ac_ext
18110cat >>conftest.$ac_ext <<_ACEOF
18111/* end confdefs.h. */
18112$ac_includes_default
18113int
18114main ()
18115{
18116static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
18117test_array [0] = 0
18118
18119 ;
18120 return 0;
18121}
18122_ACEOF
18123rm -f conftest.$ac_objext
18124if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18125 (eval $ac_compile) 2>conftest.er1
a848cd7e 18126 ac_status=$?
ac1cb8d3
VS
18127 grep -v '^ *+' conftest.er1 >conftest.err
18128 rm -f conftest.er1
18129 cat conftest.err >&5
a848cd7e
SC
18130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18131 (exit $ac_status); } &&
89be85c2
VS
18132 { ac_try='test -z "$ac_c_werror_flag"
18133 || test ! -s conftest.err'
ac1cb8d3
VS
18134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18135 (eval $ac_try) 2>&5
18136 ac_status=$?
18137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18138 (exit $ac_status); }; } &&
18139 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18141 (eval $ac_try) 2>&5
18142 ac_status=$?
18143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18144 (exit $ac_status); }; }; then
18145 ac_hi=$ac_mid
18146else
18147 echo "$as_me: failed program was:" >&5
18148sed 's/^/| /' conftest.$ac_ext >&5
18149
18150ac_lo=`expr '(' $ac_mid ')' + 1`
18151fi
ac1cb8d3 18152rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18153done
18154case $ac_lo in
18155?*) ac_cv_sizeof_long_long=$ac_lo;;
18156'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
18157See \`config.log' for more details." >&5
18158echo "$as_me: error: cannot compute sizeof (long long), 77
18159See \`config.log' for more details." >&2;}
18160 { (exit 1); exit 1; }; } ;;
18161esac
18162else
18163 if test "$cross_compiling" = yes; then
89be85c2
VS
18164 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
18165See \`config.log' for more details." >&5
18166echo "$as_me: error: cannot run test program while cross compiling
18167See \`config.log' for more details." >&2;}
a848cd7e
SC
18168 { (exit 1); exit 1; }; }
18169else
18170 cat >conftest.$ac_ext <<_ACEOF
18171/* confdefs.h. */
18172_ACEOF
18173cat confdefs.h >>conftest.$ac_ext
18174cat >>conftest.$ac_ext <<_ACEOF
18175/* end confdefs.h. */
18176$ac_includes_default
18177long longval () { return (long) (sizeof (long long)); }
18178unsigned long ulongval () { return (long) (sizeof (long long)); }
18179#include <stdio.h>
18180#include <stdlib.h>
18181int
18182main ()
18183{
18184
18185 FILE *f = fopen ("conftest.val", "w");
18186 if (! f)
18187 exit (1);
18188 if (((long) (sizeof (long long))) < 0)
18189 {
18190 long i = longval ();
18191 if (i != ((long) (sizeof (long long))))
18192 exit (1);
18193 fprintf (f, "%ld\n", i);
18194 }
18195 else
18196 {
18197 unsigned long i = ulongval ();
18198 if (i != ((long) (sizeof (long long))))
18199 exit (1);
18200 fprintf (f, "%lu\n", i);
18201 }
18202 exit (ferror (f) || fclose (f) != 0);
18203
18204 ;
18205 return 0;
18206}
18207_ACEOF
18208rm -f conftest$ac_exeext
18209if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18210 (eval $ac_link) 2>&5
18211 ac_status=$?
18212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18213 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18215 (eval $ac_try) 2>&5
18216 ac_status=$?
18217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18218 (exit $ac_status); }; }; then
18219 ac_cv_sizeof_long_long=`cat conftest.val`
18220else
18221 echo "$as_me: program exited with status $ac_status" >&5
18222echo "$as_me: failed program was:" >&5
18223sed 's/^/| /' conftest.$ac_ext >&5
18224
18225( exit $ac_status )
18226{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
18227See \`config.log' for more details." >&5
18228echo "$as_me: error: cannot compute sizeof (long long), 77
18229See \`config.log' for more details." >&2;}
18230 { (exit 1); exit 1; }; }
18231fi
ac1cb8d3 18232rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18233fi
18234fi
18235rm -f conftest.val
18236else
18237 ac_cv_sizeof_long_long=0
18238fi
18239fi
18240echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
18241echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
18242cat >>confdefs.h <<_ACEOF
18243#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
18244_ACEOF
18245
18246
18247 ;;
18248 *-hp-hpux* )
18249 echo "$as_me:$LINENO: checking for long long" >&5
18250echo $ECHO_N "checking for long long... $ECHO_C" >&6
18251if test "${ac_cv_type_long_long+set}" = set; then
18252 echo $ECHO_N "(cached) $ECHO_C" >&6
18253else
18254 cat >conftest.$ac_ext <<_ACEOF
18255/* confdefs.h. */
18256_ACEOF
18257cat confdefs.h >>conftest.$ac_ext
18258cat >>conftest.$ac_ext <<_ACEOF
18259/* end confdefs.h. */
18260$ac_includes_default
18261int
18262main ()
18263{
18264if ((long long *) 0)
18265 return 0;
18266if (sizeof (long long))
18267 return 0;
18268 ;
18269 return 0;
18270}
18271_ACEOF
18272rm -f conftest.$ac_objext
18273if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18274 (eval $ac_compile) 2>conftest.er1
a848cd7e 18275 ac_status=$?
ac1cb8d3
VS
18276 grep -v '^ *+' conftest.er1 >conftest.err
18277 rm -f conftest.er1
18278 cat conftest.err >&5
a848cd7e
SC
18279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18280 (exit $ac_status); } &&
89be85c2
VS
18281 { ac_try='test -z "$ac_c_werror_flag"
18282 || test ! -s conftest.err'
ac1cb8d3
VS
18283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18284 (eval $ac_try) 2>&5
18285 ac_status=$?
18286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18287 (exit $ac_status); }; } &&
18288 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18290 (eval $ac_try) 2>&5
18291 ac_status=$?
18292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18293 (exit $ac_status); }; }; then
18294 ac_cv_type_long_long=yes
18295else
18296 echo "$as_me: failed program was:" >&5
18297sed 's/^/| /' conftest.$ac_ext >&5
18298
18299ac_cv_type_long_long=no
18300fi
ac1cb8d3 18301rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18302fi
18303echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
18304echo "${ECHO_T}$ac_cv_type_long_long" >&6
18305
18306echo "$as_me:$LINENO: checking size of long long" >&5
18307echo $ECHO_N "checking size of long long... $ECHO_C" >&6
18308if test "${ac_cv_sizeof_long_long+set}" = set; then
18309 echo $ECHO_N "(cached) $ECHO_C" >&6
18310else
18311 if test "$ac_cv_type_long_long" = yes; then
18312 # The cast to unsigned long works around a bug in the HP C Compiler
18313 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18314 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18315 # This bug is HP SR number 8606223364.
18316 if test "$cross_compiling" = yes; then
18317 # Depending upon the size, compute the lo and hi bounds.
18318cat >conftest.$ac_ext <<_ACEOF
18319/* confdefs.h. */
18320_ACEOF
18321cat confdefs.h >>conftest.$ac_ext
18322cat >>conftest.$ac_ext <<_ACEOF
18323/* end confdefs.h. */
18324$ac_includes_default
18325int
18326main ()
18327{
18328static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
18329test_array [0] = 0
18330
18331 ;
18332 return 0;
18333}
18334_ACEOF
18335rm -f conftest.$ac_objext
18336if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18337 (eval $ac_compile) 2>conftest.er1
a848cd7e 18338 ac_status=$?
ac1cb8d3
VS
18339 grep -v '^ *+' conftest.er1 >conftest.err
18340 rm -f conftest.er1
18341 cat conftest.err >&5
a848cd7e
SC
18342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18343 (exit $ac_status); } &&
89be85c2
VS
18344 { ac_try='test -z "$ac_c_werror_flag"
18345 || test ! -s conftest.err'
ac1cb8d3
VS
18346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18347 (eval $ac_try) 2>&5
18348 ac_status=$?
18349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18350 (exit $ac_status); }; } &&
18351 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18353 (eval $ac_try) 2>&5
18354 ac_status=$?
18355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18356 (exit $ac_status); }; }; then
18357 ac_lo=0 ac_mid=0
18358 while :; do
18359 cat >conftest.$ac_ext <<_ACEOF
18360/* confdefs.h. */
18361_ACEOF
18362cat confdefs.h >>conftest.$ac_ext
18363cat >>conftest.$ac_ext <<_ACEOF
18364/* end confdefs.h. */
18365$ac_includes_default
18366int
18367main ()
18368{
18369static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
18370test_array [0] = 0
18371
18372 ;
18373 return 0;
18374}
18375_ACEOF
18376rm -f conftest.$ac_objext
18377if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18378 (eval $ac_compile) 2>conftest.er1
a848cd7e 18379 ac_status=$?
ac1cb8d3
VS
18380 grep -v '^ *+' conftest.er1 >conftest.err
18381 rm -f conftest.er1
18382 cat conftest.err >&5
a848cd7e
SC
18383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18384 (exit $ac_status); } &&
89be85c2
VS
18385 { ac_try='test -z "$ac_c_werror_flag"
18386 || test ! -s conftest.err'
ac1cb8d3
VS
18387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18388 (eval $ac_try) 2>&5
18389 ac_status=$?
18390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18391 (exit $ac_status); }; } &&
18392 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18394 (eval $ac_try) 2>&5
18395 ac_status=$?
18396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18397 (exit $ac_status); }; }; then
18398 ac_hi=$ac_mid; break
18399else
18400 echo "$as_me: failed program was:" >&5
18401sed 's/^/| /' conftest.$ac_ext >&5
18402
18403ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
18404 if test $ac_lo -le $ac_mid; then
18405 ac_lo= ac_hi=
18406 break
18407 fi
18408 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 18409fi
ac1cb8d3 18410rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18411 done
18412else
18413 echo "$as_me: failed program was:" >&5
18414sed 's/^/| /' conftest.$ac_ext >&5
18415
18416cat >conftest.$ac_ext <<_ACEOF
18417/* confdefs.h. */
18418_ACEOF
18419cat confdefs.h >>conftest.$ac_ext
18420cat >>conftest.$ac_ext <<_ACEOF
18421/* end confdefs.h. */
18422$ac_includes_default
18423int
18424main ()
18425{
18426static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
18427test_array [0] = 0
18428
18429 ;
18430 return 0;
18431}
18432_ACEOF
18433rm -f conftest.$ac_objext
18434if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18435 (eval $ac_compile) 2>conftest.er1
a848cd7e 18436 ac_status=$?
ac1cb8d3
VS
18437 grep -v '^ *+' conftest.er1 >conftest.err
18438 rm -f conftest.er1
18439 cat conftest.err >&5
a848cd7e
SC
18440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18441 (exit $ac_status); } &&
89be85c2
VS
18442 { ac_try='test -z "$ac_c_werror_flag"
18443 || test ! -s conftest.err'
ac1cb8d3
VS
18444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18445 (eval $ac_try) 2>&5
18446 ac_status=$?
18447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18448 (exit $ac_status); }; } &&
18449 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18451 (eval $ac_try) 2>&5
18452 ac_status=$?
18453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18454 (exit $ac_status); }; }; then
18455 ac_hi=-1 ac_mid=-1
18456 while :; do
18457 cat >conftest.$ac_ext <<_ACEOF
18458/* confdefs.h. */
18459_ACEOF
18460cat confdefs.h >>conftest.$ac_ext
18461cat >>conftest.$ac_ext <<_ACEOF
18462/* end confdefs.h. */
18463$ac_includes_default
18464int
18465main ()
18466{
18467static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
18468test_array [0] = 0
18469
18470 ;
18471 return 0;
18472}
18473_ACEOF
18474rm -f conftest.$ac_objext
18475if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18476 (eval $ac_compile) 2>conftest.er1
a848cd7e 18477 ac_status=$?
ac1cb8d3
VS
18478 grep -v '^ *+' conftest.er1 >conftest.err
18479 rm -f conftest.er1
18480 cat conftest.err >&5
a848cd7e
SC
18481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18482 (exit $ac_status); } &&
89be85c2
VS
18483 { ac_try='test -z "$ac_c_werror_flag"
18484 || test ! -s conftest.err'
ac1cb8d3
VS
18485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18486 (eval $ac_try) 2>&5
18487 ac_status=$?
18488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18489 (exit $ac_status); }; } &&
18490 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18492 (eval $ac_try) 2>&5
18493 ac_status=$?
18494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18495 (exit $ac_status); }; }; then
18496 ac_lo=$ac_mid; break
18497else
18498 echo "$as_me: failed program was:" >&5
18499sed 's/^/| /' conftest.$ac_ext >&5
18500
18501ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
18502 if test $ac_mid -le $ac_hi; then
18503 ac_lo= ac_hi=
18504 break
18505 fi
18506 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 18507fi
ac1cb8d3 18508rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18509 done
18510else
18511 echo "$as_me: failed program was:" >&5
18512sed 's/^/| /' conftest.$ac_ext >&5
18513
18514ac_lo= ac_hi=
18515fi
ac1cb8d3 18516rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 18517fi
ac1cb8d3 18518rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18519# Binary search between lo and hi bounds.
18520while test "x$ac_lo" != "x$ac_hi"; do
18521 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18522 cat >conftest.$ac_ext <<_ACEOF
18523/* confdefs.h. */
18524_ACEOF
18525cat confdefs.h >>conftest.$ac_ext
18526cat >>conftest.$ac_ext <<_ACEOF
18527/* end confdefs.h. */
18528$ac_includes_default
18529int
18530main ()
18531{
18532static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
18533test_array [0] = 0
18534
18535 ;
18536 return 0;
18537}
18538_ACEOF
18539rm -f conftest.$ac_objext
18540if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18541 (eval $ac_compile) 2>conftest.er1
a848cd7e 18542 ac_status=$?
ac1cb8d3
VS
18543 grep -v '^ *+' conftest.er1 >conftest.err
18544 rm -f conftest.er1
18545 cat conftest.err >&5
a848cd7e
SC
18546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18547 (exit $ac_status); } &&
89be85c2
VS
18548 { ac_try='test -z "$ac_c_werror_flag"
18549 || test ! -s conftest.err'
ac1cb8d3
VS
18550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18551 (eval $ac_try) 2>&5
18552 ac_status=$?
18553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18554 (exit $ac_status); }; } &&
18555 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18557 (eval $ac_try) 2>&5
18558 ac_status=$?
18559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18560 (exit $ac_status); }; }; then
18561 ac_hi=$ac_mid
18562else
18563 echo "$as_me: failed program was:" >&5
18564sed 's/^/| /' conftest.$ac_ext >&5
18565
18566ac_lo=`expr '(' $ac_mid ')' + 1`
18567fi
ac1cb8d3 18568rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18569done
18570case $ac_lo in
18571?*) ac_cv_sizeof_long_long=$ac_lo;;
18572'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
18573See \`config.log' for more details." >&5
18574echo "$as_me: error: cannot compute sizeof (long long), 77
18575See \`config.log' for more details." >&2;}
18576 { (exit 1); exit 1; }; } ;;
18577esac
18578else
18579 if test "$cross_compiling" = yes; then
89be85c2
VS
18580 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
18581See \`config.log' for more details." >&5
18582echo "$as_me: error: cannot run test program while cross compiling
18583See \`config.log' for more details." >&2;}
a848cd7e
SC
18584 { (exit 1); exit 1; }; }
18585else
18586 cat >conftest.$ac_ext <<_ACEOF
18587/* confdefs.h. */
18588_ACEOF
18589cat confdefs.h >>conftest.$ac_ext
18590cat >>conftest.$ac_ext <<_ACEOF
18591/* end confdefs.h. */
18592$ac_includes_default
18593long longval () { return (long) (sizeof (long long)); }
18594unsigned long ulongval () { return (long) (sizeof (long long)); }
18595#include <stdio.h>
18596#include <stdlib.h>
18597int
18598main ()
18599{
18600
18601 FILE *f = fopen ("conftest.val", "w");
18602 if (! f)
18603 exit (1);
18604 if (((long) (sizeof (long long))) < 0)
18605 {
18606 long i = longval ();
18607 if (i != ((long) (sizeof (long long))))
18608 exit (1);
18609 fprintf (f, "%ld\n", i);
18610 }
18611 else
18612 {
18613 unsigned long i = ulongval ();
18614 if (i != ((long) (sizeof (long long))))
18615 exit (1);
18616 fprintf (f, "%lu\n", i);
18617 }
18618 exit (ferror (f) || fclose (f) != 0);
18619
18620 ;
18621 return 0;
18622}
18623_ACEOF
18624rm -f conftest$ac_exeext
18625if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18626 (eval $ac_link) 2>&5
18627 ac_status=$?
18628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18629 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18631 (eval $ac_try) 2>&5
18632 ac_status=$?
18633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18634 (exit $ac_status); }; }; then
18635 ac_cv_sizeof_long_long=`cat conftest.val`
18636else
18637 echo "$as_me: program exited with status $ac_status" >&5
18638echo "$as_me: failed program was:" >&5
18639sed 's/^/| /' conftest.$ac_ext >&5
18640
18641( exit $ac_status )
18642{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
18643See \`config.log' for more details." >&5
18644echo "$as_me: error: cannot compute sizeof (long long), 77
18645See \`config.log' for more details." >&2;}
18646 { (exit 1); exit 1; }; }
18647fi
ac1cb8d3 18648rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18649fi
18650fi
18651rm -f conftest.val
18652else
18653 ac_cv_sizeof_long_long=0
18654fi
18655fi
18656echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
18657echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
18658cat >>confdefs.h <<_ACEOF
18659#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
18660_ACEOF
18661
18662
18663 if test "$ac_cv_sizeof_long_long" != "0"; then
18664 CPPFLAGS="$CPPFLAGS -D_INCLUDE_LONGLONG"
18665 fi
18666 ;;
18667 * )
18668 echo "$as_me:$LINENO: checking for long long" >&5
18669echo $ECHO_N "checking for long long... $ECHO_C" >&6
18670if test "${ac_cv_type_long_long+set}" = set; then
18671 echo $ECHO_N "(cached) $ECHO_C" >&6
18672else
18673 cat >conftest.$ac_ext <<_ACEOF
18674/* confdefs.h. */
18675_ACEOF
18676cat confdefs.h >>conftest.$ac_ext
18677cat >>conftest.$ac_ext <<_ACEOF
18678/* end confdefs.h. */
18679$ac_includes_default
18680int
18681main ()
18682{
18683if ((long long *) 0)
18684 return 0;
18685if (sizeof (long long))
18686 return 0;
18687 ;
18688 return 0;
18689}
18690_ACEOF
18691rm -f conftest.$ac_objext
18692if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18693 (eval $ac_compile) 2>conftest.er1
a848cd7e 18694 ac_status=$?
ac1cb8d3
VS
18695 grep -v '^ *+' conftest.er1 >conftest.err
18696 rm -f conftest.er1
18697 cat conftest.err >&5
a848cd7e
SC
18698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18699 (exit $ac_status); } &&
89be85c2
VS
18700 { ac_try='test -z "$ac_c_werror_flag"
18701 || test ! -s conftest.err'
ac1cb8d3
VS
18702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18703 (eval $ac_try) 2>&5
18704 ac_status=$?
18705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18706 (exit $ac_status); }; } &&
18707 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18709 (eval $ac_try) 2>&5
18710 ac_status=$?
18711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18712 (exit $ac_status); }; }; then
18713 ac_cv_type_long_long=yes
18714else
18715 echo "$as_me: failed program was:" >&5
18716sed 's/^/| /' conftest.$ac_ext >&5
18717
18718ac_cv_type_long_long=no
18719fi
ac1cb8d3 18720rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18721fi
18722echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
18723echo "${ECHO_T}$ac_cv_type_long_long" >&6
18724
18725echo "$as_me:$LINENO: checking size of long long" >&5
18726echo $ECHO_N "checking size of long long... $ECHO_C" >&6
18727if test "${ac_cv_sizeof_long_long+set}" = set; then
18728 echo $ECHO_N "(cached) $ECHO_C" >&6
18729else
18730 if test "$ac_cv_type_long_long" = yes; then
18731 # The cast to unsigned long works around a bug in the HP C Compiler
18732 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18733 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18734 # This bug is HP SR number 8606223364.
18735 if test "$cross_compiling" = yes; then
18736 # Depending upon the size, compute the lo and hi bounds.
18737cat >conftest.$ac_ext <<_ACEOF
18738/* confdefs.h. */
18739_ACEOF
18740cat confdefs.h >>conftest.$ac_ext
18741cat >>conftest.$ac_ext <<_ACEOF
18742/* end confdefs.h. */
18743$ac_includes_default
18744int
18745main ()
18746{
18747static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
18748test_array [0] = 0
18749
18750 ;
18751 return 0;
18752}
18753_ACEOF
18754rm -f conftest.$ac_objext
18755if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18756 (eval $ac_compile) 2>conftest.er1
a848cd7e 18757 ac_status=$?
ac1cb8d3
VS
18758 grep -v '^ *+' conftest.er1 >conftest.err
18759 rm -f conftest.er1
18760 cat conftest.err >&5
a848cd7e
SC
18761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18762 (exit $ac_status); } &&
89be85c2
VS
18763 { ac_try='test -z "$ac_c_werror_flag"
18764 || test ! -s conftest.err'
ac1cb8d3
VS
18765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18766 (eval $ac_try) 2>&5
18767 ac_status=$?
18768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18769 (exit $ac_status); }; } &&
18770 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18772 (eval $ac_try) 2>&5
18773 ac_status=$?
18774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18775 (exit $ac_status); }; }; then
18776 ac_lo=0 ac_mid=0
18777 while :; do
18778 cat >conftest.$ac_ext <<_ACEOF
18779/* confdefs.h. */
18780_ACEOF
18781cat confdefs.h >>conftest.$ac_ext
18782cat >>conftest.$ac_ext <<_ACEOF
18783/* end confdefs.h. */
18784$ac_includes_default
18785int
18786main ()
18787{
18788static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
18789test_array [0] = 0
18790
18791 ;
18792 return 0;
18793}
18794_ACEOF
18795rm -f conftest.$ac_objext
18796if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18797 (eval $ac_compile) 2>conftest.er1
a848cd7e 18798 ac_status=$?
ac1cb8d3
VS
18799 grep -v '^ *+' conftest.er1 >conftest.err
18800 rm -f conftest.er1
18801 cat conftest.err >&5
a848cd7e
SC
18802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18803 (exit $ac_status); } &&
89be85c2
VS
18804 { ac_try='test -z "$ac_c_werror_flag"
18805 || test ! -s conftest.err'
ac1cb8d3
VS
18806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18807 (eval $ac_try) 2>&5
18808 ac_status=$?
18809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18810 (exit $ac_status); }; } &&
18811 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18813 (eval $ac_try) 2>&5
18814 ac_status=$?
18815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18816 (exit $ac_status); }; }; then
18817 ac_hi=$ac_mid; break
18818else
18819 echo "$as_me: failed program was:" >&5
18820sed 's/^/| /' conftest.$ac_ext >&5
18821
18822ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
18823 if test $ac_lo -le $ac_mid; then
18824 ac_lo= ac_hi=
18825 break
18826 fi
18827 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 18828fi
ac1cb8d3 18829rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18830 done
18831else
18832 echo "$as_me: failed program was:" >&5
18833sed 's/^/| /' conftest.$ac_ext >&5
18834
18835cat >conftest.$ac_ext <<_ACEOF
18836/* confdefs.h. */
18837_ACEOF
18838cat confdefs.h >>conftest.$ac_ext
18839cat >>conftest.$ac_ext <<_ACEOF
18840/* end confdefs.h. */
18841$ac_includes_default
18842int
18843main ()
18844{
18845static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
18846test_array [0] = 0
18847
18848 ;
18849 return 0;
18850}
18851_ACEOF
18852rm -f conftest.$ac_objext
18853if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18854 (eval $ac_compile) 2>conftest.er1
a848cd7e 18855 ac_status=$?
ac1cb8d3
VS
18856 grep -v '^ *+' conftest.er1 >conftest.err
18857 rm -f conftest.er1
18858 cat conftest.err >&5
a848cd7e
SC
18859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18860 (exit $ac_status); } &&
89be85c2
VS
18861 { ac_try='test -z "$ac_c_werror_flag"
18862 || test ! -s conftest.err'
ac1cb8d3
VS
18863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18864 (eval $ac_try) 2>&5
18865 ac_status=$?
18866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18867 (exit $ac_status); }; } &&
18868 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18870 (eval $ac_try) 2>&5
18871 ac_status=$?
18872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18873 (exit $ac_status); }; }; then
18874 ac_hi=-1 ac_mid=-1
18875 while :; do
18876 cat >conftest.$ac_ext <<_ACEOF
18877/* confdefs.h. */
18878_ACEOF
18879cat confdefs.h >>conftest.$ac_ext
18880cat >>conftest.$ac_ext <<_ACEOF
18881/* end confdefs.h. */
18882$ac_includes_default
18883int
18884main ()
18885{
18886static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
18887test_array [0] = 0
18888
18889 ;
18890 return 0;
18891}
18892_ACEOF
18893rm -f conftest.$ac_objext
18894if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18895 (eval $ac_compile) 2>conftest.er1
a848cd7e 18896 ac_status=$?
ac1cb8d3
VS
18897 grep -v '^ *+' conftest.er1 >conftest.err
18898 rm -f conftest.er1
18899 cat conftest.err >&5
a848cd7e
SC
18900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18901 (exit $ac_status); } &&
89be85c2
VS
18902 { ac_try='test -z "$ac_c_werror_flag"
18903 || test ! -s conftest.err'
ac1cb8d3
VS
18904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18905 (eval $ac_try) 2>&5
18906 ac_status=$?
18907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18908 (exit $ac_status); }; } &&
18909 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18911 (eval $ac_try) 2>&5
18912 ac_status=$?
18913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18914 (exit $ac_status); }; }; then
18915 ac_lo=$ac_mid; break
18916else
18917 echo "$as_me: failed program was:" >&5
18918sed 's/^/| /' conftest.$ac_ext >&5
18919
18920ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
18921 if test $ac_mid -le $ac_hi; then
18922 ac_lo= ac_hi=
18923 break
18924 fi
18925 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 18926fi
ac1cb8d3 18927rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18928 done
18929else
18930 echo "$as_me: failed program was:" >&5
18931sed 's/^/| /' conftest.$ac_ext >&5
18932
18933ac_lo= ac_hi=
18934fi
ac1cb8d3 18935rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 18936fi
ac1cb8d3 18937rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18938# Binary search between lo and hi bounds.
18939while test "x$ac_lo" != "x$ac_hi"; do
18940 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
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
18948int
18949main ()
18950{
18951static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
18952test_array [0] = 0
18953
18954 ;
18955 return 0;
18956}
18957_ACEOF
18958rm -f conftest.$ac_objext
18959if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18960 (eval $ac_compile) 2>conftest.er1
a848cd7e 18961 ac_status=$?
ac1cb8d3
VS
18962 grep -v '^ *+' conftest.er1 >conftest.err
18963 rm -f conftest.er1
18964 cat conftest.err >&5
a848cd7e
SC
18965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18966 (exit $ac_status); } &&
89be85c2
VS
18967 { ac_try='test -z "$ac_c_werror_flag"
18968 || test ! -s conftest.err'
ac1cb8d3
VS
18969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18970 (eval $ac_try) 2>&5
18971 ac_status=$?
18972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18973 (exit $ac_status); }; } &&
18974 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18976 (eval $ac_try) 2>&5
18977 ac_status=$?
18978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18979 (exit $ac_status); }; }; then
18980 ac_hi=$ac_mid
18981else
18982 echo "$as_me: failed program was:" >&5
18983sed 's/^/| /' conftest.$ac_ext >&5
18984
18985ac_lo=`expr '(' $ac_mid ')' + 1`
18986fi
ac1cb8d3 18987rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18988done
18989case $ac_lo in
18990?*) ac_cv_sizeof_long_long=$ac_lo;;
18991'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
18992See \`config.log' for more details." >&5
18993echo "$as_me: error: cannot compute sizeof (long long), 77
18994See \`config.log' for more details." >&2;}
18995 { (exit 1); exit 1; }; } ;;
18996esac
18997else
18998 if test "$cross_compiling" = yes; then
89be85c2
VS
18999 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
19000See \`config.log' for more details." >&5
19001echo "$as_me: error: cannot run test program while cross compiling
19002See \`config.log' for more details." >&2;}
a848cd7e
SC
19003 { (exit 1); exit 1; }; }
19004else
19005 cat >conftest.$ac_ext <<_ACEOF
19006/* confdefs.h. */
19007_ACEOF
19008cat confdefs.h >>conftest.$ac_ext
19009cat >>conftest.$ac_ext <<_ACEOF
19010/* end confdefs.h. */
19011$ac_includes_default
19012long longval () { return (long) (sizeof (long long)); }
19013unsigned long ulongval () { return (long) (sizeof (long long)); }
19014#include <stdio.h>
19015#include <stdlib.h>
19016int
19017main ()
19018{
19019
19020 FILE *f = fopen ("conftest.val", "w");
19021 if (! f)
19022 exit (1);
19023 if (((long) (sizeof (long long))) < 0)
19024 {
19025 long i = longval ();
19026 if (i != ((long) (sizeof (long long))))
19027 exit (1);
19028 fprintf (f, "%ld\n", i);
19029 }
19030 else
19031 {
19032 unsigned long i = ulongval ();
19033 if (i != ((long) (sizeof (long long))))
19034 exit (1);
19035 fprintf (f, "%lu\n", i);
19036 }
19037 exit (ferror (f) || fclose (f) != 0);
19038
19039 ;
19040 return 0;
19041}
19042_ACEOF
19043rm -f conftest$ac_exeext
19044if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19045 (eval $ac_link) 2>&5
19046 ac_status=$?
19047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19048 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19050 (eval $ac_try) 2>&5
19051 ac_status=$?
19052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19053 (exit $ac_status); }; }; then
19054 ac_cv_sizeof_long_long=`cat conftest.val`
19055else
19056 echo "$as_me: program exited with status $ac_status" >&5
19057echo "$as_me: failed program was:" >&5
19058sed 's/^/| /' conftest.$ac_ext >&5
19059
19060( exit $ac_status )
19061{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
19062See \`config.log' for more details." >&5
19063echo "$as_me: error: cannot compute sizeof (long long), 77
19064See \`config.log' for more details." >&2;}
19065 { (exit 1); exit 1; }; }
19066fi
ac1cb8d3 19067rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19068fi
19069fi
19070rm -f conftest.val
19071else
19072 ac_cv_sizeof_long_long=0
19073fi
19074fi
19075echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
19076echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
19077cat >>confdefs.h <<_ACEOF
19078#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
19079_ACEOF
19080
19081
19082esac
19083
19084echo "$as_me:$LINENO: checking size of wchar_t" >&5
19085echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6
19086if test "${wx_cv_sizeof_wchar_t+set}" = set; then
19087 echo $ECHO_N "(cached) $ECHO_C" >&6
19088else
19089
19090 if test "$cross_compiling" = yes; then
19091
19092 case "${host}" in
19093 *-pc-msdosdjgpp )
19094 wx_cv_sizeof_wchar_t=0
19095 ;;
19096 * )
19097 wx_cv_sizeof_wchar_t=4
19098 ;;
19099 esac
19100
19101
19102else
19103 cat >conftest.$ac_ext <<_ACEOF
19104/* confdefs.h. */
19105_ACEOF
19106cat confdefs.h >>conftest.$ac_ext
19107cat >>conftest.$ac_ext <<_ACEOF
19108/* end confdefs.h. */
19109
19110 /* DJGPP only has fake wchar_t: */
19111 #ifdef __DJGPP__
19112 # error "fake wchar_t"
19113 #endif
19114 #ifdef HAVE_WCHAR_H
19115 # ifdef __CYGWIN__
19116 # include <stddef.h>
19117 # endif
19118 # include <wchar.h>
19119 #endif
19120 #ifdef HAVE_STDLIB_H
19121 # include <stdlib.h>
19122 #endif
19123 #include <stdio.h>
19124 int main()
19125 {
19126 FILE *f=fopen("conftestval", "w");
19127 if (!f) exit(1);
19128 fprintf(f, "%i", sizeof(wchar_t));
19129 exit(0);
19130 }
19131
19132_ACEOF
19133rm -f conftest$ac_exeext
19134if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19135 (eval $ac_link) 2>&5
19136 ac_status=$?
19137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19138 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19140 (eval $ac_try) 2>&5
19141 ac_status=$?
19142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19143 (exit $ac_status); }; }; then
19144 wx_cv_sizeof_wchar_t=`cat conftestval`
19145else
19146 echo "$as_me: program exited with status $ac_status" >&5
19147echo "$as_me: failed program was:" >&5
19148sed 's/^/| /' conftest.$ac_ext >&5
19149
19150( exit $ac_status )
19151wx_cv_sizeof_wchar_t=0
19152fi
ac1cb8d3 19153rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19154fi
19155
19156fi
19157echo "$as_me:$LINENO: result: $wx_cv_sizeof_wchar_t" >&5
19158echo "${ECHO_T}$wx_cv_sizeof_wchar_t" >&6
19159
19160cat >>confdefs.h <<_ACEOF
19161#define SIZEOF_WCHAR_T $wx_cv_sizeof_wchar_t
19162_ACEOF
19163
19164
ba3d13e1
VZ
19165echo "$as_me:$LINENO: checking for va_copy" >&5
19166echo $ECHO_N "checking for va_copy... $ECHO_C" >&6
19167if test "${wx_cv_func_va_copy+set}" = set; then
19168 echo $ECHO_N "(cached) $ECHO_C" >&6
19169else
19170
19171 cat >conftest.$ac_ext <<_ACEOF
19172
19173 #include <stdarg.h>
19174 void foo(char *f, ...)
19175 {
19176 va_list ap1, ap2;
19177 va_start(ap1, f);
19178 va_copy(ap2, ap1);
19179 va_end(ap2);
19180 va_end(ap1);
19181 }
5886b072
VZ
19182 int main()
19183 {
b902e639
VZ
19184 foo("hi", 17);
19185 return 0;
5886b072 19186 }
ba3d13e1
VZ
19187_ACEOF
19188rm -f conftest.$ac_objext conftest$ac_exeext
19189if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19190 (eval $ac_link) 2>conftest.er1
19191 ac_status=$?
19192 grep -v '^ *+' conftest.er1 >conftest.err
19193 rm -f conftest.er1
19194 cat conftest.err >&5
19195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19196 (exit $ac_status); } &&
89be85c2
VS
19197 { ac_try='test -z "$ac_c_werror_flag"
19198 || test ! -s conftest.err'
ba3d13e1
VZ
19199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19200 (eval $ac_try) 2>&5
19201 ac_status=$?
19202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19203 (exit $ac_status); }; } &&
19204 { ac_try='test -s conftest$ac_exeext'
19205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19206 (eval $ac_try) 2>&5
19207 ac_status=$?
19208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19209 (exit $ac_status); }; }; then
19210 wx_cv_func_va_copy=yes
19211else
19212 echo "$as_me: failed program was:" >&5
19213sed 's/^/| /' conftest.$ac_ext >&5
19214
19215wx_cv_func_va_copy=no
19216
19217fi
19218rm -f conftest.err conftest.$ac_objext \
19219 conftest$ac_exeext conftest.$ac_ext
19220
19221
19222fi
19223echo "$as_me:$LINENO: result: $wx_cv_func_va_copy" >&5
19224echo "${ECHO_T}$wx_cv_func_va_copy" >&6
19225
19226if test $wx_cv_func_va_copy = "yes"; then
19227 cat >>confdefs.h <<\_ACEOF
19228#define HAVE_VA_COPY 1
19229_ACEOF
19230
19231else
19232 echo "$as_me:$LINENO: checking if va_list can be copied by value" >&5
19233echo $ECHO_N "checking if va_list can be copied by value... $ECHO_C" >&6
19234if test "${wx_cv_type_va_list_lvalue+set}" = set; then
19235 echo $ECHO_N "(cached) $ECHO_C" >&6
19236else
19237
19238 if test "$cross_compiling" = yes; then
19239 wx_cv_type_va_list_lvalue=yes
19240
19241else
19242 cat >conftest.$ac_ext <<_ACEOF
19243
19244 #include <stdarg.h>
19245 int foo(char *f, ...)
19246 {
19247 va_list ap1, ap2;
19248 va_start(ap1, f);
19249 ap2 = ap1;
19250 if ( va_arg(ap1, int) != 17 || va_arg(ap2, int) != 17 )
19251 return 1;
19252 va_end(ap2);
19253 va_end(ap1);
19254 return 0;
19255 }
19256 int main()
19257 {
19258 return foo("hi", 17);
19259 }
19260_ACEOF
19261rm -f conftest$ac_exeext
19262if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19263 (eval $ac_link) 2>&5
19264 ac_status=$?
19265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19266 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19268 (eval $ac_try) 2>&5
19269 ac_status=$?
19270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19271 (exit $ac_status); }; }; then
19272 wx_cv_type_va_list_lvalue=yes
19273else
19274 echo "$as_me: program exited with status $ac_status" >&5
19275echo "$as_me: failed program was:" >&5
19276sed 's/^/| /' conftest.$ac_ext >&5
19277
19278( exit $ac_status )
19279wx_cv_type_va_list_lvalue=no
19280fi
19281rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19282fi
19283
19284
19285fi
19286echo "$as_me:$LINENO: result: $wx_cv_type_va_list_lvalue" >&5
19287echo "${ECHO_T}$wx_cv_type_va_list_lvalue" >&6
19288
19289 if test $wx_cv_type_va_list_lvalue != "yes"; then
19290 cat >>confdefs.h <<\_ACEOF
19291#define VA_LIST_IS_ARRAY 1
19292_ACEOF
19293
19294 fi
19295fi
19296
a848cd7e
SC
19297# Check whether --enable-largefile or --disable-largefile was given.
19298if test "${enable_largefile+set}" = set; then
19299 enableval="$enable_largefile"
19300
19301fi;
19302if test "$enable_largefile" != no; then
19303 wx_largefile=no
19304
19305 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
19306echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
19307if test "${ac_cv_sys_file_offset_bits+set}" = set; then
19308 echo $ECHO_N "(cached) $ECHO_C" >&6
19309else
19310
19311 cat >conftest.$ac_ext <<_ACEOF
19312/* confdefs.h. */
19313_ACEOF
19314cat confdefs.h >>conftest.$ac_ext
19315cat >>conftest.$ac_ext <<_ACEOF
19316/* end confdefs.h. */
19317#define _FILE_OFFSET_BITS 64
19318 #include <sys/types.h>
19319int
19320main ()
19321{
19322typedef struct {
19323 unsigned int field: sizeof(off_t) == 8;
19324} wxlf;
19325
19326 ;
19327 return 0;
19328}
19329_ACEOF
19330rm -f conftest.$ac_objext
19331if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19332 (eval $ac_compile) 2>conftest.er1
a848cd7e 19333 ac_status=$?
ac1cb8d3
VS
19334 grep -v '^ *+' conftest.er1 >conftest.err
19335 rm -f conftest.er1
19336 cat conftest.err >&5
a848cd7e
SC
19337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19338 (exit $ac_status); } &&
89be85c2
VS
19339 { ac_try='test -z "$ac_c_werror_flag"
19340 || test ! -s conftest.err'
ac1cb8d3
VS
19341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19342 (eval $ac_try) 2>&5
19343 ac_status=$?
19344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19345 (exit $ac_status); }; } &&
19346 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19348 (eval $ac_try) 2>&5
19349 ac_status=$?
19350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19351 (exit $ac_status); }; }; then
19352 ac_cv_sys_file_offset_bits=64
19353else
19354 echo "$as_me: failed program was:" >&5
19355sed 's/^/| /' conftest.$ac_ext >&5
19356
19357ac_cv_sys_file_offset_bits=no
19358fi
ac1cb8d3 19359rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19360
19361
19362fi
19363echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
19364echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
19365
19366 if test "$ac_cv_sys_file_offset_bits" != no; then
19367 wx_largefile=yes
19368 cat >>confdefs.h <<_ACEOF
19369#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
19370_ACEOF
19371
19372 fi
19373
19374 if test "x$wx_largefile" != "xyes"; then
19375
19376 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
19377echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
19378if test "${ac_cv_sys_large_files+set}" = set; then
19379 echo $ECHO_N "(cached) $ECHO_C" >&6
19380else
19381
19382 cat >conftest.$ac_ext <<_ACEOF
19383/* confdefs.h. */
19384_ACEOF
19385cat confdefs.h >>conftest.$ac_ext
19386cat >>conftest.$ac_ext <<_ACEOF
19387/* end confdefs.h. */
19388#define _LARGE_FILES 1
19389 #include <sys/types.h>
19390int
19391main ()
19392{
19393typedef struct {
19394 unsigned int field: sizeof(off_t) == 8;
19395} wxlf;
19396
19397 ;
19398 return 0;
19399}
19400_ACEOF
19401rm -f conftest.$ac_objext
19402if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19403 (eval $ac_compile) 2>conftest.er1
a848cd7e 19404 ac_status=$?
ac1cb8d3
VS
19405 grep -v '^ *+' conftest.er1 >conftest.err
19406 rm -f conftest.er1
19407 cat conftest.err >&5
a848cd7e
SC
19408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19409 (exit $ac_status); } &&
89be85c2
VS
19410 { ac_try='test -z "$ac_c_werror_flag"
19411 || test ! -s conftest.err'
ac1cb8d3
VS
19412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19413 (eval $ac_try) 2>&5
19414 ac_status=$?
19415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19416 (exit $ac_status); }; } &&
19417 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19419 (eval $ac_try) 2>&5
19420 ac_status=$?
19421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19422 (exit $ac_status); }; }; then
19423 ac_cv_sys_large_files=1
19424else
19425 echo "$as_me: failed program was:" >&5
19426sed 's/^/| /' conftest.$ac_ext >&5
19427
19428ac_cv_sys_large_files=no
19429fi
ac1cb8d3 19430rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19431
19432
19433fi
19434echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
19435echo "${ECHO_T}$ac_cv_sys_large_files" >&6
19436
19437 if test "$ac_cv_sys_large_files" != no; then
19438 wx_largefile=yes
19439 cat >>confdefs.h <<_ACEOF
19440#define _LARGE_FILES $ac_cv_sys_large_files
19441_ACEOF
19442
19443 fi
19444
19445 fi
19446
19447 echo "$as_me:$LINENO: checking if large file support is available" >&5
19448echo $ECHO_N "checking if large file support is available... $ECHO_C" >&6
19449 if test "x$wx_largefile" = "xyes"; then
19450 cat >>confdefs.h <<\_ACEOF
19451#define HAVE_LARGEFILE_SUPPORT 1
19452_ACEOF
19453
19454 fi
19455 echo "$as_me:$LINENO: result: $wx_largefile" >&5
19456echo "${ECHO_T}$wx_largefile" >&6
19457fi
19458
5b674b9d
DE
19459
19460if test "x$wx_largefile" = "xyes"; then
19461 if test "x$ac_cv_sys_file_offset_bits" = "x64"; then
19462 WX_LARGEFILE_FLAGS="-D_FILE_OFFSET_BITS=64 -D_LARGE_FILES"
19463 else
19464 WX_LARGEFILE_FLAGS="-D_LARGE_FILES"
19465 fi
19466 echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
5294a27e
VZ
19467echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
19468if test "${ac_cv_sys_largefile_source+set}" = set; then
19469 echo $ECHO_N "(cached) $ECHO_C" >&6
19470else
19471 while :; do
19472 ac_cv_sys_largefile_source=no
19473 cat >conftest.$ac_ext <<_ACEOF
19474/* confdefs.h. */
19475_ACEOF
19476cat confdefs.h >>conftest.$ac_ext
19477cat >>conftest.$ac_ext <<_ACEOF
19478/* end confdefs.h. */
19479#include <stdio.h>
19480int
19481main ()
19482{
19483return !fseeko;
19484 ;
19485 return 0;
19486}
19487_ACEOF
19488rm -f conftest.$ac_objext
19489if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19490 (eval $ac_compile) 2>conftest.er1
19491 ac_status=$?
19492 grep -v '^ *+' conftest.er1 >conftest.err
19493 rm -f conftest.er1
19494 cat conftest.err >&5
19495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19496 (exit $ac_status); } &&
89be85c2
VS
19497 { ac_try='test -z "$ac_c_werror_flag"
19498 || test ! -s conftest.err'
5294a27e
VZ
19499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19500 (eval $ac_try) 2>&5
19501 ac_status=$?
19502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19503 (exit $ac_status); }; } &&
19504 { ac_try='test -s conftest.$ac_objext'
19505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19506 (eval $ac_try) 2>&5
19507 ac_status=$?
19508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19509 (exit $ac_status); }; }; then
19510 break
19511else
19512 echo "$as_me: failed program was:" >&5
19513sed 's/^/| /' conftest.$ac_ext >&5
19514
19515fi
19516rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19517 cat >conftest.$ac_ext <<_ACEOF
19518/* confdefs.h. */
19519_ACEOF
19520cat confdefs.h >>conftest.$ac_ext
19521cat >>conftest.$ac_ext <<_ACEOF
19522/* end confdefs.h. */
19523#define _LARGEFILE_SOURCE 1
19524#include <stdio.h>
19525int
19526main ()
19527{
19528return !fseeko;
19529 ;
19530 return 0;
19531}
19532_ACEOF
19533rm -f conftest.$ac_objext
19534if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19535 (eval $ac_compile) 2>conftest.er1
19536 ac_status=$?
19537 grep -v '^ *+' conftest.er1 >conftest.err
19538 rm -f conftest.er1
19539 cat conftest.err >&5
19540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19541 (exit $ac_status); } &&
89be85c2
VS
19542 { ac_try='test -z "$ac_c_werror_flag"
19543 || test ! -s conftest.err'
5294a27e
VZ
19544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19545 (eval $ac_try) 2>&5
19546 ac_status=$?
19547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19548 (exit $ac_status); }; } &&
19549 { ac_try='test -s conftest.$ac_objext'
19550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19551 (eval $ac_try) 2>&5
19552 ac_status=$?
19553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19554 (exit $ac_status); }; }; then
19555 ac_cv_sys_largefile_source=1; break
19556else
19557 echo "$as_me: failed program was:" >&5
19558sed 's/^/| /' conftest.$ac_ext >&5
19559
19560fi
19561rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19562 break
19563done
19564fi
19565echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
19566echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
19567if test "$ac_cv_sys_largefile_source" != no; then
19568
19569cat >>confdefs.h <<_ACEOF
19570#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
19571_ACEOF
19572
19573fi
19574rm -f conftest*
19575
19576# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
19577# in glibc 2.1.3, but that breaks too many other things.
19578# If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
19579echo "$as_me:$LINENO: checking for fseeko" >&5
19580echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
19581if test "${ac_cv_func_fseeko+set}" = set; then
19582 echo $ECHO_N "(cached) $ECHO_C" >&6
19583else
19584 cat >conftest.$ac_ext <<_ACEOF
19585/* confdefs.h. */
19586_ACEOF
19587cat confdefs.h >>conftest.$ac_ext
19588cat >>conftest.$ac_ext <<_ACEOF
19589/* end confdefs.h. */
19590#include <stdio.h>
19591int
19592main ()
19593{
19594return fseeko && fseeko (stdin, 0, 0);
19595 ;
19596 return 0;
19597}
19598_ACEOF
19599rm -f conftest.$ac_objext conftest$ac_exeext
19600if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19601 (eval $ac_link) 2>conftest.er1
19602 ac_status=$?
19603 grep -v '^ *+' conftest.er1 >conftest.err
19604 rm -f conftest.er1
19605 cat conftest.err >&5
19606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19607 (exit $ac_status); } &&
89be85c2
VS
19608 { ac_try='test -z "$ac_c_werror_flag"
19609 || test ! -s conftest.err'
5294a27e
VZ
19610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19611 (eval $ac_try) 2>&5
19612 ac_status=$?
19613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19614 (exit $ac_status); }; } &&
19615 { ac_try='test -s conftest$ac_exeext'
19616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19617 (eval $ac_try) 2>&5
19618 ac_status=$?
19619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19620 (exit $ac_status); }; }; then
19621 ac_cv_func_fseeko=yes
19622else
19623 echo "$as_me: failed program was:" >&5
19624sed 's/^/| /' conftest.$ac_ext >&5
19625
19626ac_cv_func_fseeko=no
19627fi
19628rm -f conftest.err conftest.$ac_objext \
19629 conftest$ac_exeext conftest.$ac_ext
19630fi
19631echo "$as_me:$LINENO: result: $ac_cv_func_fseeko" >&5
19632echo "${ECHO_T}$ac_cv_func_fseeko" >&6
19633if test $ac_cv_func_fseeko = yes; then
19634
19635cat >>confdefs.h <<\_ACEOF
19636#define HAVE_FSEEKO 1
19637_ACEOF
19638
19639fi
19640
5b674b9d
DE
19641 if test "$ac_cv_sys_largefile_source" != no; then
19642 WX_LARGEFILE_FLAGS="$WX_LARGEFILE_FLAGS -D_LARGEFILE_SOURCE=$ac_cv_sys_largefile_source"
a848cd7e
SC
19643 fi
19644 CPPFLAGS="$CPPFLAGS $WX_LARGEFILE_FLAGS"
19645fi
19646
19647echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
19648echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
19649if test "${ac_cv_c_bigendian+set}" = set; then
19650 echo $ECHO_N "(cached) $ECHO_C" >&6
19651else
19652 ac_cv_c_bigendian=unknown
19653# See if sys/param.h defines the BYTE_ORDER macro.
19654cat >conftest.$ac_ext <<_ACEOF
19655/* confdefs.h. */
19656_ACEOF
19657cat confdefs.h >>conftest.$ac_ext
19658cat >>conftest.$ac_ext <<_ACEOF
19659/* end confdefs.h. */
19660#include <sys/types.h>
19661#include <sys/param.h>
19662int
19663main ()
19664{
19665
19666#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
19667 bogus endian macros
19668#endif
19669 ;
19670 return 0;
19671}
19672_ACEOF
19673rm -f conftest.$ac_objext
19674if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19675 (eval $ac_compile) 2>conftest.er1
a848cd7e 19676 ac_status=$?
ac1cb8d3
VS
19677 grep -v '^ *+' conftest.er1 >conftest.err
19678 rm -f conftest.er1
19679 cat conftest.err >&5
a848cd7e
SC
19680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19681 (exit $ac_status); } &&
89be85c2
VS
19682 { ac_try='test -z "$ac_c_werror_flag"
19683 || test ! -s conftest.err'
ac1cb8d3
VS
19684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19685 (eval $ac_try) 2>&5
19686 ac_status=$?
19687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19688 (exit $ac_status); }; } &&
19689 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19691 (eval $ac_try) 2>&5
19692 ac_status=$?
19693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19694 (exit $ac_status); }; }; then
19695 # It does; now see whether it defined to BIG_ENDIAN or not.
19696cat >conftest.$ac_ext <<_ACEOF
19697/* confdefs.h. */
19698_ACEOF
19699cat confdefs.h >>conftest.$ac_ext
19700cat >>conftest.$ac_ext <<_ACEOF
19701/* end confdefs.h. */
19702#include <sys/types.h>
19703#include <sys/param.h>
19704int
19705main ()
19706{
19707
19708#if BYTE_ORDER != BIG_ENDIAN
19709 not big endian
19710#endif
19711 ;
19712 return 0;
19713}
19714_ACEOF
19715rm -f conftest.$ac_objext
19716if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19717 (eval $ac_compile) 2>conftest.er1
a848cd7e 19718 ac_status=$?
ac1cb8d3
VS
19719 grep -v '^ *+' conftest.er1 >conftest.err
19720 rm -f conftest.er1
19721 cat conftest.err >&5
a848cd7e
SC
19722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19723 (exit $ac_status); } &&
89be85c2
VS
19724 { ac_try='test -z "$ac_c_werror_flag"
19725 || test ! -s conftest.err'
ac1cb8d3
VS
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); }; } &&
19731 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19733 (eval $ac_try) 2>&5
19734 ac_status=$?
19735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19736 (exit $ac_status); }; }; then
19737 ac_cv_c_bigendian=yes
19738else
19739 echo "$as_me: failed program was:" >&5
19740sed 's/^/| /' conftest.$ac_ext >&5
19741
19742ac_cv_c_bigendian=no
19743fi
ac1cb8d3 19744rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19745else
19746 echo "$as_me: failed program was:" >&5
19747sed 's/^/| /' conftest.$ac_ext >&5
19748
19749fi
ac1cb8d3 19750rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19751if test $ac_cv_c_bigendian = unknown; then
19752if test "$cross_compiling" = yes; then
19753 ac_cv_c_bigendian=unknown
19754else
19755 cat >conftest.$ac_ext <<_ACEOF
19756/* confdefs.h. */
19757_ACEOF
19758cat confdefs.h >>conftest.$ac_ext
19759cat >>conftest.$ac_ext <<_ACEOF
19760/* end confdefs.h. */
19761main () {
19762 /* Are we little or big endian? From Harbison&Steele. */
19763 union
19764 {
19765 long l;
19766 char c[sizeof (long)];
19767 } u;
19768 u.l = 1;
19769 exit (u.c[sizeof (long) - 1] == 1);
19770}
19771_ACEOF
19772rm -f conftest$ac_exeext
19773if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19774 (eval $ac_link) 2>&5
19775 ac_status=$?
19776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19777 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19779 (eval $ac_try) 2>&5
19780 ac_status=$?
19781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19782 (exit $ac_status); }; }; then
19783 ac_cv_c_bigendian=no
19784else
19785 echo "$as_me: program exited with status $ac_status" >&5
19786echo "$as_me: failed program was:" >&5
19787sed 's/^/| /' conftest.$ac_ext >&5
19788
19789( exit $ac_status )
19790ac_cv_c_bigendian=yes
19791fi
ac1cb8d3 19792rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19793fi
19794fi
19795fi
19796echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
19797echo "${ECHO_T}$ac_cv_c_bigendian" >&6
19798if test $ac_cv_c_bigendian = unknown; then
19799 { 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
19800echo "$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;}
19801fi
19802if test $ac_cv_c_bigendian = yes; then
19803 cat >>confdefs.h <<\_ACEOF
19804#define WORDS_BIGENDIAN 1
19805_ACEOF
19806
19807fi
19808
19809
19810ac_ext=cc
19811ac_cpp='$CXXCPP $CPPFLAGS'
19812ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19813ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19814ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19815echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
19816echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
19817if test -z "$CXXCPP"; then
19818 if test "${ac_cv_prog_CXXCPP+set}" = set; then
19819 echo $ECHO_N "(cached) $ECHO_C" >&6
19820else
19821 # Double quotes because CXXCPP needs to be expanded
19822 for CXXCPP in "$CXX -E" "/lib/cpp"
19823 do
19824 ac_preproc_ok=false
19825for ac_cxx_preproc_warn_flag in '' yes
19826do
19827 # Use a header file that comes with gcc, so configuring glibc
19828 # with a fresh cross-compiler works.
19829 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19830 # <limits.h> exists even on freestanding compilers.
19831 # On the NeXT, cc -E runs the code through the compiler's parser,
19832 # not just through cpp. "Syntax error" is here to catch this case.
19833 cat >conftest.$ac_ext <<_ACEOF
19834/* confdefs.h. */
19835_ACEOF
19836cat confdefs.h >>conftest.$ac_ext
19837cat >>conftest.$ac_ext <<_ACEOF
19838/* end confdefs.h. */
19839#ifdef __STDC__
19840# include <limits.h>
19841#else
19842# include <assert.h>
19843#endif
ac1cb8d3 19844 Syntax error
a848cd7e
SC
19845_ACEOF
19846if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19847 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19848 ac_status=$?
19849 grep -v '^ *+' conftest.er1 >conftest.err
19850 rm -f conftest.er1
19851 cat conftest.err >&5
19852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19853 (exit $ac_status); } >/dev/null; then
19854 if test -s conftest.err; then
19855 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 19856 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
19857 else
19858 ac_cpp_err=
19859 fi
19860else
19861 ac_cpp_err=yes
19862fi
19863if test -z "$ac_cpp_err"; then
19864 :
19865else
19866 echo "$as_me: failed program was:" >&5
19867sed 's/^/| /' conftest.$ac_ext >&5
19868
19869 # Broken: fails on valid input.
19870continue
19871fi
19872rm -f conftest.err conftest.$ac_ext
19873
19874 # OK, works on sane cases. Now check whether non-existent headers
19875 # can be detected and how.
19876 cat >conftest.$ac_ext <<_ACEOF
19877/* confdefs.h. */
19878_ACEOF
19879cat confdefs.h >>conftest.$ac_ext
19880cat >>conftest.$ac_ext <<_ACEOF
19881/* end confdefs.h. */
19882#include <ac_nonexistent.h>
19883_ACEOF
19884if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19885 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19886 ac_status=$?
19887 grep -v '^ *+' conftest.er1 >conftest.err
19888 rm -f conftest.er1
19889 cat conftest.err >&5
19890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19891 (exit $ac_status); } >/dev/null; then
19892 if test -s conftest.err; then
19893 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 19894 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
19895 else
19896 ac_cpp_err=
19897 fi
19898else
19899 ac_cpp_err=yes
19900fi
19901if test -z "$ac_cpp_err"; then
19902 # Broken: success on invalid input.
19903continue
19904else
19905 echo "$as_me: failed program was:" >&5
19906sed 's/^/| /' conftest.$ac_ext >&5
19907
19908 # Passes both tests.
19909ac_preproc_ok=:
19910break
19911fi
19912rm -f conftest.err conftest.$ac_ext
19913
19914done
19915# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
19916rm -f conftest.err conftest.$ac_ext
19917if $ac_preproc_ok; then
19918 break
19919fi
19920
19921 done
19922 ac_cv_prog_CXXCPP=$CXXCPP
19923
19924fi
19925 CXXCPP=$ac_cv_prog_CXXCPP
19926else
19927 ac_cv_prog_CXXCPP=$CXXCPP
19928fi
19929echo "$as_me:$LINENO: result: $CXXCPP" >&5
19930echo "${ECHO_T}$CXXCPP" >&6
19931ac_preproc_ok=false
19932for ac_cxx_preproc_warn_flag in '' yes
19933do
19934 # Use a header file that comes with gcc, so configuring glibc
19935 # with a fresh cross-compiler works.
19936 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19937 # <limits.h> exists even on freestanding compilers.
19938 # On the NeXT, cc -E runs the code through the compiler's parser,
19939 # not just through cpp. "Syntax error" is here to catch this case.
19940 cat >conftest.$ac_ext <<_ACEOF
19941/* confdefs.h. */
19942_ACEOF
19943cat confdefs.h >>conftest.$ac_ext
19944cat >>conftest.$ac_ext <<_ACEOF
19945/* end confdefs.h. */
19946#ifdef __STDC__
19947# include <limits.h>
19948#else
19949# include <assert.h>
19950#endif
ac1cb8d3 19951 Syntax error
a848cd7e
SC
19952_ACEOF
19953if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19954 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19955 ac_status=$?
19956 grep -v '^ *+' conftest.er1 >conftest.err
19957 rm -f conftest.er1
19958 cat conftest.err >&5
19959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19960 (exit $ac_status); } >/dev/null; then
19961 if test -s conftest.err; then
19962 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 19963 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
19964 else
19965 ac_cpp_err=
19966 fi
19967else
19968 ac_cpp_err=yes
19969fi
19970if test -z "$ac_cpp_err"; then
19971 :
19972else
19973 echo "$as_me: failed program was:" >&5
19974sed 's/^/| /' conftest.$ac_ext >&5
19975
19976 # Broken: fails on valid input.
19977continue
19978fi
19979rm -f conftest.err conftest.$ac_ext
19980
19981 # OK, works on sane cases. Now check whether non-existent headers
19982 # can be detected and how.
19983 cat >conftest.$ac_ext <<_ACEOF
19984/* confdefs.h. */
19985_ACEOF
19986cat confdefs.h >>conftest.$ac_ext
19987cat >>conftest.$ac_ext <<_ACEOF
19988/* end confdefs.h. */
19989#include <ac_nonexistent.h>
19990_ACEOF
19991if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19992 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19993 ac_status=$?
19994 grep -v '^ *+' conftest.er1 >conftest.err
19995 rm -f conftest.er1
19996 cat conftest.err >&5
19997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19998 (exit $ac_status); } >/dev/null; then
19999 if test -s conftest.err; then
20000 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 20001 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
20002 else
20003 ac_cpp_err=
20004 fi
20005else
20006 ac_cpp_err=yes
20007fi
20008if test -z "$ac_cpp_err"; then
20009 # Broken: success on invalid input.
20010continue
20011else
20012 echo "$as_me: failed program was:" >&5
20013sed 's/^/| /' conftest.$ac_ext >&5
20014
20015 # Passes both tests.
20016ac_preproc_ok=:
20017break
20018fi
20019rm -f conftest.err conftest.$ac_ext
20020
20021done
20022# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
20023rm -f conftest.err conftest.$ac_ext
20024if $ac_preproc_ok; then
20025 :
20026else
20027 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
20028See \`config.log' for more details." >&5
20029echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
20030See \`config.log' for more details." >&2;}
20031 { (exit 1); exit 1; }; }
20032fi
20033
20034ac_ext=cc
20035ac_cpp='$CXXCPP $CPPFLAGS'
20036ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20037ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20038ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20039
20040
20041
20042
20043
20044 ac_ext=cc
20045ac_cpp='$CXXCPP $CPPFLAGS'
20046ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20047ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20048ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20049
20050
20051
20052for ac_header in iostream
20053do
20054as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20055if eval "test \"\${$as_ac_Header+set}\" = set"; then
20056 echo "$as_me:$LINENO: checking for $ac_header" >&5
20057echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20058if eval "test \"\${$as_ac_Header+set}\" = set"; then
20059 echo $ECHO_N "(cached) $ECHO_C" >&6
20060fi
20061echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20062echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20063else
20064 # Is the header compilable?
20065echo "$as_me:$LINENO: checking $ac_header usability" >&5
20066echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20067cat >conftest.$ac_ext <<_ACEOF
20068/* confdefs.h. */
20069_ACEOF
20070cat confdefs.h >>conftest.$ac_ext
20071cat >>conftest.$ac_ext <<_ACEOF
20072/* end confdefs.h. */
20073$ac_includes_default
20074#include <$ac_header>
20075_ACEOF
20076rm -f conftest.$ac_objext
20077if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20078 (eval $ac_compile) 2>conftest.er1
a848cd7e 20079 ac_status=$?
ac1cb8d3
VS
20080 grep -v '^ *+' conftest.er1 >conftest.err
20081 rm -f conftest.er1
20082 cat conftest.err >&5
a848cd7e
SC
20083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20084 (exit $ac_status); } &&
89be85c2
VS
20085 { ac_try='test -z "$ac_cxx_werror_flag"
20086 || test ! -s conftest.err'
ac1cb8d3
VS
20087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20088 (eval $ac_try) 2>&5
20089 ac_status=$?
20090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20091 (exit $ac_status); }; } &&
20092 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20094 (eval $ac_try) 2>&5
20095 ac_status=$?
20096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20097 (exit $ac_status); }; }; then
20098 ac_header_compiler=yes
20099else
20100 echo "$as_me: failed program was:" >&5
20101sed 's/^/| /' conftest.$ac_ext >&5
20102
20103ac_header_compiler=no
20104fi
ac1cb8d3 20105rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20106echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20107echo "${ECHO_T}$ac_header_compiler" >&6
20108
20109# Is the header present?
20110echo "$as_me:$LINENO: checking $ac_header presence" >&5
20111echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20112cat >conftest.$ac_ext <<_ACEOF
20113/* confdefs.h. */
20114_ACEOF
20115cat confdefs.h >>conftest.$ac_ext
20116cat >>conftest.$ac_ext <<_ACEOF
20117/* end confdefs.h. */
20118#include <$ac_header>
20119_ACEOF
20120if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20121 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20122 ac_status=$?
20123 grep -v '^ *+' conftest.er1 >conftest.err
20124 rm -f conftest.er1
20125 cat conftest.err >&5
20126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20127 (exit $ac_status); } >/dev/null; then
20128 if test -s conftest.err; then
20129 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 20130 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
20131 else
20132 ac_cpp_err=
20133 fi
20134else
20135 ac_cpp_err=yes
20136fi
20137if test -z "$ac_cpp_err"; then
20138 ac_header_preproc=yes
20139else
20140 echo "$as_me: failed program was:" >&5
20141sed 's/^/| /' conftest.$ac_ext >&5
20142
20143 ac_header_preproc=no
20144fi
20145rm -f conftest.err conftest.$ac_ext
20146echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20147echo "${ECHO_T}$ac_header_preproc" >&6
20148
20149# So? What about this header?
ac1cb8d3
VS
20150case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
20151 yes:no: )
a848cd7e
SC
20152 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20153echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
20154 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20155echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20156 ac_header_preproc=yes
a848cd7e 20157 ;;
ac1cb8d3 20158 no:yes:* )
a848cd7e
SC
20159 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20160echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
20161 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20162echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20163 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20164echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20165 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20166echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
20167 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20168echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
20169 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20170echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
20171 (
20172 cat <<\_ASBOX
ac1cb8d3
VS
20173## ----------------------------------------- ##
20174## Report this to wx-dev@lists.wxwidgets.org ##
20175## ----------------------------------------- ##
a848cd7e
SC
20176_ASBOX
20177 ) |
20178 sed "s/^/$as_me: WARNING: /" >&2
20179 ;;
20180esac
20181echo "$as_me:$LINENO: checking for $ac_header" >&5
20182echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20183if eval "test \"\${$as_ac_Header+set}\" = set"; then
20184 echo $ECHO_N "(cached) $ECHO_C" >&6
20185else
ac1cb8d3 20186 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
20187fi
20188echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20189echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20190
20191fi
20192if test `eval echo '${'$as_ac_Header'}'` = yes; then
20193 cat >>confdefs.h <<_ACEOF
20194#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20195_ACEOF
20196
20197fi
20198
20199done
20200
20201
20202 if test "$ac_cv_header_iostream" = "yes" ; then
20203 :
20204 else
20205 cat >>confdefs.h <<\_ACEOF
20206#define wxUSE_IOSTREAMH 1
20207_ACEOF
20208
20209 fi
20210
20211 ac_ext=c
20212ac_cpp='$CPP $CPPFLAGS'
20213ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20214ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20215ac_compiler_gnu=$ac_cv_c_compiler_gnu
20216
20217
20218
20219
20220 echo "$as_me:$LINENO: checking if C++ compiler supports bool" >&5
20221echo $ECHO_N "checking if C++ compiler supports bool... $ECHO_C" >&6
20222if test "${wx_cv_cpp_bool+set}" = set; then
20223 echo $ECHO_N "(cached) $ECHO_C" >&6
20224else
20225
20226
20227
20228 ac_ext=cc
20229ac_cpp='$CXXCPP $CPPFLAGS'
20230ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20231ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20232ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20233
20234
20235 cat >conftest.$ac_ext <<_ACEOF
20236/* confdefs.h. */
20237_ACEOF
20238cat confdefs.h >>conftest.$ac_ext
20239cat >>conftest.$ac_ext <<_ACEOF
20240/* end confdefs.h. */
20241
20242
20243int
20244main ()
20245{
20246
20247 bool b = true;
20248
20249 return 0;
20250
20251 ;
20252 return 0;
20253}
20254_ACEOF
20255rm -f conftest.$ac_objext
20256if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20257 (eval $ac_compile) 2>conftest.er1
a848cd7e 20258 ac_status=$?
ac1cb8d3
VS
20259 grep -v '^ *+' conftest.er1 >conftest.err
20260 rm -f conftest.er1
20261 cat conftest.err >&5
a848cd7e
SC
20262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20263 (exit $ac_status); } &&
89be85c2
VS
20264 { ac_try='test -z "$ac_cxx_werror_flag"
20265 || test ! -s conftest.err'
ac1cb8d3
VS
20266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20267 (eval $ac_try) 2>&5
20268 ac_status=$?
20269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20270 (exit $ac_status); }; } &&
20271 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20273 (eval $ac_try) 2>&5
20274 ac_status=$?
20275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20276 (exit $ac_status); }; }; then
20277
20278 wx_cv_cpp_bool=yes
20279
20280else
20281 echo "$as_me: failed program was:" >&5
20282sed 's/^/| /' conftest.$ac_ext >&5
20283
20284
20285 wx_cv_cpp_bool=no
20286
20287
20288fi
ac1cb8d3 20289rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20290
20291 ac_ext=c
20292ac_cpp='$CPP $CPPFLAGS'
20293ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20294ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20295ac_compiler_gnu=$ac_cv_c_compiler_gnu
20296
20297
20298fi
20299echo "$as_me:$LINENO: result: $wx_cv_cpp_bool" >&5
20300echo "${ECHO_T}$wx_cv_cpp_bool" >&6
20301
20302 if test "$wx_cv_cpp_bool" = "yes"; then
20303 cat >>confdefs.h <<\_ACEOF
20304#define HAVE_BOOL 1
20305_ACEOF
20306
20307 fi
20308
20309
20310
20311 echo "$as_me:$LINENO: checking if C++ compiler supports the explicit keyword" >&5
20312echo $ECHO_N "checking if C++ compiler supports the explicit keyword... $ECHO_C" >&6
20313if test "${wx_cv_explicit+set}" = set; then
20314 echo $ECHO_N "(cached) $ECHO_C" >&6
20315else
20316
20317
20318
20319 ac_ext=cc
20320ac_cpp='$CXXCPP $CPPFLAGS'
20321ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20322ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20323ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20324
20325
20326 cat >conftest.$ac_ext <<_ACEOF
20327/* confdefs.h. */
20328_ACEOF
20329cat confdefs.h >>conftest.$ac_ext
20330cat >>conftest.$ac_ext <<_ACEOF
20331/* end confdefs.h. */
20332
20333 class Foo { public: explicit Foo(int) {} };
20334
20335int
20336main ()
20337{
20338
20339 return 0;
20340
20341 ;
20342 return 0;
20343}
20344_ACEOF
20345rm -f conftest.$ac_objext
20346if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20347 (eval $ac_compile) 2>conftest.er1
a848cd7e 20348 ac_status=$?
ac1cb8d3
VS
20349 grep -v '^ *+' conftest.er1 >conftest.err
20350 rm -f conftest.er1
20351 cat conftest.err >&5
a848cd7e
SC
20352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20353 (exit $ac_status); } &&
89be85c2
VS
20354 { ac_try='test -z "$ac_cxx_werror_flag"
20355 || test ! -s conftest.err'
ac1cb8d3
VS
20356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20357 (eval $ac_try) 2>&5
20358 ac_status=$?
20359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20360 (exit $ac_status); }; } &&
20361 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20363 (eval $ac_try) 2>&5
20364 ac_status=$?
20365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20366 (exit $ac_status); }; }; then
20367
20368 cat >conftest.$ac_ext <<_ACEOF
20369/* confdefs.h. */
20370_ACEOF
20371cat confdefs.h >>conftest.$ac_ext
20372cat >>conftest.$ac_ext <<_ACEOF
20373/* end confdefs.h. */
20374
20375 class Foo { public: explicit Foo(int) {} };
20376 static void TakeFoo(const Foo& foo) { }
20377
20378int
20379main ()
20380{
20381
20382 TakeFoo(17);
20383 return 0;
20384
20385 ;
20386 return 0;
20387}
20388_ACEOF
20389rm -f conftest.$ac_objext
20390if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20391 (eval $ac_compile) 2>conftest.er1
a848cd7e 20392 ac_status=$?
ac1cb8d3
VS
20393 grep -v '^ *+' conftest.er1 >conftest.err
20394 rm -f conftest.er1
20395 cat conftest.err >&5
a848cd7e
SC
20396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20397 (exit $ac_status); } &&
89be85c2
VS
20398 { ac_try='test -z "$ac_cxx_werror_flag"
20399 || test ! -s conftest.err'
ac1cb8d3
VS
20400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20401 (eval $ac_try) 2>&5
20402 ac_status=$?
20403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20404 (exit $ac_status); }; } &&
20405 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20407 (eval $ac_try) 2>&5
20408 ac_status=$?
20409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20410 (exit $ac_status); }; }; then
20411 wx_cv_explicit=no
20412else
20413 echo "$as_me: failed program was:" >&5
20414sed 's/^/| /' conftest.$ac_ext >&5
20415
20416wx_cv_explicit=yes
20417
20418fi
ac1cb8d3 20419rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20420
20421else
20422 echo "$as_me: failed program was:" >&5
20423sed 's/^/| /' conftest.$ac_ext >&5
20424
20425wx_cv_explicit=no
20426
20427fi
ac1cb8d3 20428rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20429
20430 ac_ext=c
20431ac_cpp='$CPP $CPPFLAGS'
20432ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20433ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20434ac_compiler_gnu=$ac_cv_c_compiler_gnu
20435
20436
20437fi
20438echo "$as_me:$LINENO: result: $wx_cv_explicit" >&5
20439echo "${ECHO_T}$wx_cv_explicit" >&6
20440
20441 if test "$wx_cv_explicit" = "yes"; then
20442 cat >>confdefs.h <<\_ACEOF
20443#define HAVE_EXPLICIT 1
20444_ACEOF
20445
20446 fi
20447
20448
20449echo "$as_me:$LINENO: checking whether the compiler supports const_cast<>" >&5
20450echo $ECHO_N "checking whether the compiler supports const_cast<>... $ECHO_C" >&6
20451if test "${ac_cv_cxx_const_cast+set}" = set; then
20452 echo $ECHO_N "(cached) $ECHO_C" >&6
20453else
20454
20455
20456 ac_ext=cc
20457ac_cpp='$CXXCPP $CPPFLAGS'
20458ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20459ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20460ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20461
20462 cat >conftest.$ac_ext <<_ACEOF
20463/* confdefs.h. */
20464_ACEOF
20465cat confdefs.h >>conftest.$ac_ext
20466cat >>conftest.$ac_ext <<_ACEOF
20467/* end confdefs.h. */
20468
20469int
20470main ()
20471{
20472int x = 0;const int& y = x;int& z = const_cast<int&>(y);return z;
20473 ;
20474 return 0;
20475}
20476_ACEOF
20477rm -f conftest.$ac_objext
20478if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20479 (eval $ac_compile) 2>conftest.er1
a848cd7e 20480 ac_status=$?
ac1cb8d3
VS
20481 grep -v '^ *+' conftest.er1 >conftest.err
20482 rm -f conftest.er1
20483 cat conftest.err >&5
a848cd7e
SC
20484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20485 (exit $ac_status); } &&
89be85c2
VS
20486 { ac_try='test -z "$ac_cxx_werror_flag"
20487 || test ! -s conftest.err'
ac1cb8d3
VS
20488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20489 (eval $ac_try) 2>&5
20490 ac_status=$?
20491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20492 (exit $ac_status); }; } &&
20493 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20495 (eval $ac_try) 2>&5
20496 ac_status=$?
20497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20498 (exit $ac_status); }; }; then
20499 ac_cv_cxx_const_cast=yes
20500else
20501 echo "$as_me: failed program was:" >&5
20502sed 's/^/| /' conftest.$ac_ext >&5
20503
20504ac_cv_cxx_const_cast=no
20505fi
ac1cb8d3 20506rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20507 ac_ext=c
20508ac_cpp='$CPP $CPPFLAGS'
20509ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20510ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20511ac_compiler_gnu=$ac_cv_c_compiler_gnu
20512
20513
20514fi
20515echo "$as_me:$LINENO: result: $ac_cv_cxx_const_cast" >&5
20516echo "${ECHO_T}$ac_cv_cxx_const_cast" >&6
20517if test "$ac_cv_cxx_const_cast" = yes; then
20518
20519cat >>confdefs.h <<\_ACEOF
20520#define HAVE_CONST_CAST
20521_ACEOF
20522
20523fi
20524
7714864e
RL
20525echo "$as_me:$LINENO: checking whether the compiler supports reinterpret_cast<>" >&5
20526echo $ECHO_N "checking whether the compiler supports reinterpret_cast<>... $ECHO_C" >&6
20527if test "${ac_cv_cxx_reinterpret_cast+set}" = set; then
20528 echo $ECHO_N "(cached) $ECHO_C" >&6
20529else
20530
20531
20532 ac_ext=cc
20533ac_cpp='$CXXCPP $CPPFLAGS'
20534ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20535ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20536ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20537
20538 cat >conftest.$ac_ext <<_ACEOF
20539/* confdefs.h. */
20540_ACEOF
20541cat confdefs.h >>conftest.$ac_ext
20542cat >>conftest.$ac_ext <<_ACEOF
20543/* end confdefs.h. */
20544#include <typeinfo>
20545class Base { public : Base () {} virtual void f () = 0;};
20546class Derived : public Base { public : Derived () {} virtual void f () {} };
20547class Unrelated { public : Unrelated () {} };
20548int g (Unrelated&) { return 0; }
20549int
20550main ()
20551{
20552
20553Derived d;Base& b=d;Unrelated& e=reinterpret_cast<Unrelated&>(b);return g(e);
20554 ;
20555 return 0;
20556}
20557_ACEOF
20558rm -f conftest.$ac_objext
20559if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20560 (eval $ac_compile) 2>conftest.er1
20561 ac_status=$?
20562 grep -v '^ *+' conftest.er1 >conftest.err
20563 rm -f conftest.er1
20564 cat conftest.err >&5
20565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20566 (exit $ac_status); } &&
89be85c2
VS
20567 { ac_try='test -z "$ac_cxx_werror_flag"
20568 || test ! -s conftest.err'
7714864e
RL
20569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20570 (eval $ac_try) 2>&5
20571 ac_status=$?
20572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20573 (exit $ac_status); }; } &&
20574 { ac_try='test -s conftest.$ac_objext'
20575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20576 (eval $ac_try) 2>&5
20577 ac_status=$?
20578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20579 (exit $ac_status); }; }; then
20580 ac_cv_cxx_reinterpret_cast=yes
20581else
20582 echo "$as_me: failed program was:" >&5
20583sed 's/^/| /' conftest.$ac_ext >&5
20584
20585ac_cv_cxx_reinterpret_cast=no
20586fi
20587rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20588 ac_ext=c
20589ac_cpp='$CPP $CPPFLAGS'
20590ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20591ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20592ac_compiler_gnu=$ac_cv_c_compiler_gnu
20593
20594
20595fi
20596echo "$as_me:$LINENO: result: $ac_cv_cxx_reinterpret_cast" >&5
20597echo "${ECHO_T}$ac_cv_cxx_reinterpret_cast" >&6
20598if test "$ac_cv_cxx_reinterpret_cast" = yes; then
20599
20600cat >>confdefs.h <<\_ACEOF
20601#define HAVE_REINTERPRET_CAST
20602_ACEOF
20603
20604fi
20605
a848cd7e
SC
20606echo "$as_me:$LINENO: checking whether the compiler supports static_cast<>" >&5
20607echo $ECHO_N "checking whether the compiler supports static_cast<>... $ECHO_C" >&6
20608if test "${ac_cv_cxx_static_cast+set}" = set; then
20609 echo $ECHO_N "(cached) $ECHO_C" >&6
20610else
20611
20612
20613 ac_ext=cc
20614ac_cpp='$CXXCPP $CPPFLAGS'
20615ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20616ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20617ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20618
20619 cat >conftest.$ac_ext <<_ACEOF
20620/* confdefs.h. */
20621_ACEOF
20622cat confdefs.h >>conftest.$ac_ext
20623cat >>conftest.$ac_ext <<_ACEOF
20624/* end confdefs.h. */
20625#include <typeinfo>
20626class Base { public : Base () {} virtual void f () = 0; };
20627class Derived : public Base { public : Derived () {} virtual void f () {} };
20628int g (Derived&) { return 0; }
20629int
20630main ()
20631{
20632
20633Derived d; Base& b = d; Derived& s = static_cast<Derived&> (b); return g (s);
20634 ;
20635 return 0;
20636}
20637_ACEOF
20638rm -f conftest.$ac_objext
20639if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20640 (eval $ac_compile) 2>conftest.er1
a848cd7e 20641 ac_status=$?
ac1cb8d3
VS
20642 grep -v '^ *+' conftest.er1 >conftest.err
20643 rm -f conftest.er1
20644 cat conftest.err >&5
a848cd7e
SC
20645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20646 (exit $ac_status); } &&
89be85c2
VS
20647 { ac_try='test -z "$ac_cxx_werror_flag"
20648 || test ! -s conftest.err'
ac1cb8d3
VS
20649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20650 (eval $ac_try) 2>&5
20651 ac_status=$?
20652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20653 (exit $ac_status); }; } &&
20654 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20656 (eval $ac_try) 2>&5
20657 ac_status=$?
20658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20659 (exit $ac_status); }; }; then
20660 ac_cv_cxx_static_cast=yes
20661else
20662 echo "$as_me: failed program was:" >&5
20663sed 's/^/| /' conftest.$ac_ext >&5
20664
20665ac_cv_cxx_static_cast=no
20666fi
ac1cb8d3 20667rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20668 ac_ext=c
20669ac_cpp='$CPP $CPPFLAGS'
20670ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20671ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20672ac_compiler_gnu=$ac_cv_c_compiler_gnu
20673
20674
20675fi
20676echo "$as_me:$LINENO: result: $ac_cv_cxx_static_cast" >&5
20677echo "${ECHO_T}$ac_cv_cxx_static_cast" >&6
20678if test "$ac_cv_cxx_static_cast" = yes; then
20679
20680cat >>confdefs.h <<\_ACEOF
20681#define HAVE_STATIC_CAST
20682_ACEOF
20683
20684fi
20685
20686
20687if test "$wxUSE_STL" = "yes"; then
20688 ac_ext=cc
20689ac_cpp='$CXXCPP $CPPFLAGS'
20690ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20691ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20692ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20693
20694
20695 echo "$as_me:$LINENO: checking for basic STL functionality" >&5
20696echo $ECHO_N "checking for basic STL functionality... $ECHO_C" >&6
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#include <string>
20704 #include <functional>
20705 #include <algorithm>
20706 #include <vector>
20707 #include <list>
20708int
20709main ()
20710{
20711std::vector<int> moo;
20712 std::list<int> foo;
20713 std::vector<int>::iterator it =
20714 std::find_if(moo.begin(), moo.end(),
20715 std::bind2nd(std::less<int>(), 3));
20716 ;
20717 return 0;
20718}
20719_ACEOF
20720rm -f conftest.$ac_objext
20721if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20722 (eval $ac_compile) 2>conftest.er1
a848cd7e 20723 ac_status=$?
ac1cb8d3
VS
20724 grep -v '^ *+' conftest.er1 >conftest.err
20725 rm -f conftest.er1
20726 cat conftest.err >&5
a848cd7e
SC
20727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20728 (exit $ac_status); } &&
89be85c2
VS
20729 { ac_try='test -z "$ac_cxx_werror_flag"
20730 || test ! -s conftest.err'
ac1cb8d3
VS
20731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20732 (eval $ac_try) 2>&5
20733 ac_status=$?
20734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20735 (exit $ac_status); }; } &&
20736 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20738 (eval $ac_try) 2>&5
20739 ac_status=$?
20740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20741 (exit $ac_status); }; }; then
20742 echo "$as_me:$LINENO: result: yes" >&5
20743echo "${ECHO_T}yes" >&6
20744else
20745 echo "$as_me: failed program was:" >&5
20746sed 's/^/| /' conftest.$ac_ext >&5
20747
20748echo "$as_me:$LINENO: result: no" >&5
20749echo "${ECHO_T}no" >&6
20750 { { echo "$as_me:$LINENO: error: Basic STL functionality missing" >&5
20751echo "$as_me: error: Basic STL functionality missing" >&2;}
20752 { (exit 1); exit 1; }; }
20753fi
ac1cb8d3 20754rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20755
20756 echo "$as_me:$LINENO: checking for std::wstring in <string>" >&5
20757echo $ECHO_N "checking for std::wstring in <string>... $ECHO_C" >&6
20758 cat >conftest.$ac_ext <<_ACEOF
20759/* confdefs.h. */
20760_ACEOF
20761cat confdefs.h >>conftest.$ac_ext
20762cat >>conftest.$ac_ext <<_ACEOF
20763/* end confdefs.h. */
20764#include <string>
20765int
20766main ()
20767{
20768std::wstring foo;
20769 ;
20770 return 0;
20771}
20772_ACEOF
20773rm -f conftest.$ac_objext
20774if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20775 (eval $ac_compile) 2>conftest.er1
a848cd7e 20776 ac_status=$?
ac1cb8d3
VS
20777 grep -v '^ *+' conftest.er1 >conftest.err
20778 rm -f conftest.er1
20779 cat conftest.err >&5
a848cd7e
SC
20780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20781 (exit $ac_status); } &&
89be85c2
VS
20782 { ac_try='test -z "$ac_cxx_werror_flag"
20783 || test ! -s conftest.err'
ac1cb8d3
VS
20784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20785 (eval $ac_try) 2>&5
20786 ac_status=$?
20787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20788 (exit $ac_status); }; } &&
20789 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20791 (eval $ac_try) 2>&5
20792 ac_status=$?
20793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20794 (exit $ac_status); }; }; then
20795 echo "$as_me:$LINENO: result: yes" >&5
20796echo "${ECHO_T}yes" >&6
20797 cat >>confdefs.h <<\_ACEOF
20798#define HAVE_STD_WSTRING 1
20799_ACEOF
20800
20801else
20802 echo "$as_me: failed program was:" >&5
20803sed 's/^/| /' conftest.$ac_ext >&5
20804
20805echo "$as_me:$LINENO: result: no" >&5
20806echo "${ECHO_T}no" >&6
20807fi
ac1cb8d3 20808rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20809
20810 echo "$as_me:$LINENO: checking for compliant std::string::compare" >&5
20811echo $ECHO_N "checking for compliant std::string::compare... $ECHO_C" >&6
20812 cat >conftest.$ac_ext <<_ACEOF
20813/* confdefs.h. */
20814_ACEOF
20815cat confdefs.h >>conftest.$ac_ext
20816cat >>conftest.$ac_ext <<_ACEOF
20817/* end confdefs.h. */
20818#include <string>
20819int
20820main ()
20821{
20822std::string foo, bar;
20823 foo.compare(bar);
20824 foo.compare(1, 1, bar);
20825 foo.compare(1, 1, bar, 1, 1);
20826 foo.compare("");
20827 foo.compare(1, 1, "");
20828 foo.compare(1, 1, "", 2);
20829 ;
20830 return 0;
20831}
20832_ACEOF
20833rm -f conftest.$ac_objext
20834if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20835 (eval $ac_compile) 2>conftest.er1
a848cd7e 20836 ac_status=$?
ac1cb8d3
VS
20837 grep -v '^ *+' conftest.er1 >conftest.err
20838 rm -f conftest.er1
20839 cat conftest.err >&5
a848cd7e
SC
20840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20841 (exit $ac_status); } &&
89be85c2
VS
20842 { ac_try='test -z "$ac_cxx_werror_flag"
20843 || test ! -s conftest.err'
ac1cb8d3
VS
20844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20845 (eval $ac_try) 2>&5
20846 ac_status=$?
20847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20848 (exit $ac_status); }; } &&
20849 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20851 (eval $ac_try) 2>&5
20852 ac_status=$?
20853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20854 (exit $ac_status); }; }; then
20855 echo "$as_me:$LINENO: result: yes" >&5
20856echo "${ECHO_T}yes" >&6
20857 cat >>confdefs.h <<\_ACEOF
20858#define HAVE_STD_STRING_COMPARE 1
20859_ACEOF
20860
20861else
20862 echo "$as_me: failed program was:" >&5
20863sed 's/^/| /' conftest.$ac_ext >&5
20864
20865echo "$as_me:$LINENO: result: no" >&5
20866echo "${ECHO_T}no" >&6
20867fi
ac1cb8d3 20868rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
20869
20870 if test "${ac_cv_header_hash_map+set}" = set; then
20871 echo "$as_me:$LINENO: checking for hash_map" >&5
20872echo $ECHO_N "checking for hash_map... $ECHO_C" >&6
20873if test "${ac_cv_header_hash_map+set}" = set; then
20874 echo $ECHO_N "(cached) $ECHO_C" >&6
20875fi
20876echo "$as_me:$LINENO: result: $ac_cv_header_hash_map" >&5
20877echo "${ECHO_T}$ac_cv_header_hash_map" >&6
20878else
20879 # Is the header compilable?
20880echo "$as_me:$LINENO: checking hash_map usability" >&5
20881echo $ECHO_N "checking hash_map usability... $ECHO_C" >&6
20882cat >conftest.$ac_ext <<_ACEOF
20883/* confdefs.h. */
20884_ACEOF
20885cat confdefs.h >>conftest.$ac_ext
20886cat >>conftest.$ac_ext <<_ACEOF
20887/* end confdefs.h. */
20888$ac_includes_default
20889#include <hash_map>
20890_ACEOF
20891rm -f conftest.$ac_objext
20892if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20893 (eval $ac_compile) 2>conftest.er1
bdcade0a 20894 ac_status=$?
ac1cb8d3
VS
20895 grep -v '^ *+' conftest.er1 >conftest.err
20896 rm -f conftest.er1
20897 cat conftest.err >&5
bdcade0a
MB
20898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20899 (exit $ac_status); } &&
89be85c2
VS
20900 { ac_try='test -z "$ac_cxx_werror_flag"
20901 || test ! -s conftest.err'
ac1cb8d3
VS
20902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20903 (eval $ac_try) 2>&5
20904 ac_status=$?
20905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20906 (exit $ac_status); }; } &&
20907 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
20908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20909 (eval $ac_try) 2>&5
20910 ac_status=$?
20911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20912 (exit $ac_status); }; }; then
20913 ac_header_compiler=yes
20914else
20915 echo "$as_me: failed program was:" >&5
20916sed 's/^/| /' conftest.$ac_ext >&5
20917
20918ac_header_compiler=no
20919fi
ac1cb8d3 20920rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
20921echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20922echo "${ECHO_T}$ac_header_compiler" >&6
20923
20924# Is the header present?
20925echo "$as_me:$LINENO: checking hash_map presence" >&5
20926echo $ECHO_N "checking hash_map presence... $ECHO_C" >&6
20927cat >conftest.$ac_ext <<_ACEOF
20928/* confdefs.h. */
20929_ACEOF
20930cat confdefs.h >>conftest.$ac_ext
20931cat >>conftest.$ac_ext <<_ACEOF
20932/* end confdefs.h. */
20933#include <hash_map>
20934_ACEOF
20935if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20936 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20937 ac_status=$?
20938 grep -v '^ *+' conftest.er1 >conftest.err
20939 rm -f conftest.er1
20940 cat conftest.err >&5
20941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20942 (exit $ac_status); } >/dev/null; then
20943 if test -s conftest.err; then
20944 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 20945 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
bdcade0a
MB
20946 else
20947 ac_cpp_err=
20948 fi
20949else
20950 ac_cpp_err=yes
20951fi
20952if test -z "$ac_cpp_err"; then
20953 ac_header_preproc=yes
20954else
20955 echo "$as_me: failed program was:" >&5
20956sed 's/^/| /' conftest.$ac_ext >&5
20957
20958 ac_header_preproc=no
20959fi
20960rm -f conftest.err conftest.$ac_ext
20961echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20962echo "${ECHO_T}$ac_header_preproc" >&6
20963
20964# So? What about this header?
ac1cb8d3
VS
20965case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
20966 yes:no: )
bdcade0a
MB
20967 { echo "$as_me:$LINENO: WARNING: hash_map: accepted by the compiler, rejected by the preprocessor!" >&5
20968echo "$as_me: WARNING: hash_map: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
20969 { echo "$as_me:$LINENO: WARNING: hash_map: proceeding with the compiler's result" >&5
20970echo "$as_me: WARNING: hash_map: proceeding with the compiler's result" >&2;}
20971 ac_header_preproc=yes
bdcade0a 20972 ;;
ac1cb8d3 20973 no:yes:* )
bdcade0a
MB
20974 { echo "$as_me:$LINENO: WARNING: hash_map: present but cannot be compiled" >&5
20975echo "$as_me: WARNING: hash_map: present but cannot be compiled" >&2;}
ac1cb8d3
VS
20976 { echo "$as_me:$LINENO: WARNING: hash_map: check for missing prerequisite headers?" >&5
20977echo "$as_me: WARNING: hash_map: check for missing prerequisite headers?" >&2;}
20978 { echo "$as_me:$LINENO: WARNING: hash_map: see the Autoconf documentation" >&5
20979echo "$as_me: WARNING: hash_map: see the Autoconf documentation" >&2;}
20980 { echo "$as_me:$LINENO: WARNING: hash_map: section \"Present But Cannot Be Compiled\"" >&5
20981echo "$as_me: WARNING: hash_map: section \"Present But Cannot Be Compiled\"" >&2;}
bdcade0a
MB
20982 { echo "$as_me:$LINENO: WARNING: hash_map: proceeding with the preprocessor's result" >&5
20983echo "$as_me: WARNING: hash_map: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
20984 { echo "$as_me:$LINENO: WARNING: hash_map: in the future, the compiler will take precedence" >&5
20985echo "$as_me: WARNING: hash_map: in the future, the compiler will take precedence" >&2;}
bdcade0a
MB
20986 (
20987 cat <<\_ASBOX
ac1cb8d3
VS
20988## ----------------------------------------- ##
20989## Report this to wx-dev@lists.wxwidgets.org ##
20990## ----------------------------------------- ##
bdcade0a
MB
20991_ASBOX
20992 ) |
20993 sed "s/^/$as_me: WARNING: /" >&2
20994 ;;
20995esac
20996echo "$as_me:$LINENO: checking for hash_map" >&5
20997echo $ECHO_N "checking for hash_map... $ECHO_C" >&6
20998if test "${ac_cv_header_hash_map+set}" = set; then
20999 echo $ECHO_N "(cached) $ECHO_C" >&6
21000else
21001 ac_cv_header_hash_map=$ac_header_preproc
21002fi
21003echo "$as_me:$LINENO: result: $ac_cv_header_hash_map" >&5
21004echo "${ECHO_T}$ac_cv_header_hash_map" >&6
21005
21006fi
21007if test $ac_cv_header_hash_map = yes; then
21008 echo "$as_me:$LINENO: checking for hash_map and hash_set" >&5
21009echo $ECHO_N "checking for hash_map and hash_set... $ECHO_C" >&6
21010 cat >conftest.$ac_ext <<_ACEOF
21011/* confdefs.h. */
21012_ACEOF
21013cat confdefs.h >>conftest.$ac_ext
21014cat >>conftest.$ac_ext <<_ACEOF
21015/* end confdefs.h. */
21016#include <hash_map>
21017 #include <hash_set>
21018int
21019main ()
21020{
21021std::hash_map<double*, char*, std::hash<double*>, std::equal_to<double*> > test1;
21022 std::hash_set<char*, std::hash<char*>, std::equal_to<char*> > test2;
21023 ;
21024 return 0;
21025}
21026_ACEOF
21027rm -f conftest.$ac_objext
21028if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21029 (eval $ac_compile) 2>conftest.er1
bdcade0a 21030 ac_status=$?
ac1cb8d3
VS
21031 grep -v '^ *+' conftest.er1 >conftest.err
21032 rm -f conftest.er1
21033 cat conftest.err >&5
bdcade0a
MB
21034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21035 (exit $ac_status); } &&
89be85c2
VS
21036 { ac_try='test -z "$ac_cxx_werror_flag"
21037 || test ! -s conftest.err'
ac1cb8d3
VS
21038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21039 (eval $ac_try) 2>&5
21040 ac_status=$?
21041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21042 (exit $ac_status); }; } &&
21043 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
21044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21045 (eval $ac_try) 2>&5
21046 ac_status=$?
21047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21048 (exit $ac_status); }; }; then
21049 echo "$as_me:$LINENO: result: yes" >&5
21050echo "${ECHO_T}yes" >&6
21051 cat >>confdefs.h <<\_ACEOF
21052#define HAVE_HASH_MAP 1
21053_ACEOF
21054
21055 cat >>confdefs.h <<\_ACEOF
21056#define HAVE_STD_HASH_MAP 1
21057_ACEOF
21058
21059else
21060 echo "$as_me: failed program was:" >&5
21061sed 's/^/| /' conftest.$ac_ext >&5
21062
21063echo "$as_me:$LINENO: result: no" >&5
21064echo "${ECHO_T}no" >&6
21065fi
ac1cb8d3 21066rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
21067
21068fi
21069
21070
21071
21072 if test "${ac_cv_header_ext_hash_map+set}" = set; then
21073 echo "$as_me:$LINENO: checking for ext/hash_map" >&5
21074echo $ECHO_N "checking for ext/hash_map... $ECHO_C" >&6
21075if test "${ac_cv_header_ext_hash_map+set}" = set; then
21076 echo $ECHO_N "(cached) $ECHO_C" >&6
21077fi
21078echo "$as_me:$LINENO: result: $ac_cv_header_ext_hash_map" >&5
21079echo "${ECHO_T}$ac_cv_header_ext_hash_map" >&6
21080else
21081 # Is the header compilable?
21082echo "$as_me:$LINENO: checking ext/hash_map usability" >&5
21083echo $ECHO_N "checking ext/hash_map usability... $ECHO_C" >&6
21084cat >conftest.$ac_ext <<_ACEOF
21085/* confdefs.h. */
21086_ACEOF
21087cat confdefs.h >>conftest.$ac_ext
21088cat >>conftest.$ac_ext <<_ACEOF
21089/* end confdefs.h. */
21090$ac_includes_default
21091#include <ext/hash_map>
21092_ACEOF
21093rm -f conftest.$ac_objext
21094if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21095 (eval $ac_compile) 2>conftest.er1
bdcade0a 21096 ac_status=$?
ac1cb8d3
VS
21097 grep -v '^ *+' conftest.er1 >conftest.err
21098 rm -f conftest.er1
21099 cat conftest.err >&5
bdcade0a
MB
21100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21101 (exit $ac_status); } &&
89be85c2
VS
21102 { ac_try='test -z "$ac_cxx_werror_flag"
21103 || test ! -s conftest.err'
ac1cb8d3
VS
21104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21105 (eval $ac_try) 2>&5
21106 ac_status=$?
21107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21108 (exit $ac_status); }; } &&
21109 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
21110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21111 (eval $ac_try) 2>&5
21112 ac_status=$?
21113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21114 (exit $ac_status); }; }; then
21115 ac_header_compiler=yes
21116else
21117 echo "$as_me: failed program was:" >&5
21118sed 's/^/| /' conftest.$ac_ext >&5
21119
21120ac_header_compiler=no
21121fi
ac1cb8d3 21122rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
21123echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21124echo "${ECHO_T}$ac_header_compiler" >&6
21125
21126# Is the header present?
21127echo "$as_me:$LINENO: checking ext/hash_map presence" >&5
21128echo $ECHO_N "checking ext/hash_map presence... $ECHO_C" >&6
21129cat >conftest.$ac_ext <<_ACEOF
21130/* confdefs.h. */
21131_ACEOF
21132cat confdefs.h >>conftest.$ac_ext
21133cat >>conftest.$ac_ext <<_ACEOF
21134/* end confdefs.h. */
21135#include <ext/hash_map>
21136_ACEOF
21137if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21138 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21139 ac_status=$?
21140 grep -v '^ *+' conftest.er1 >conftest.err
21141 rm -f conftest.er1
21142 cat conftest.err >&5
21143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21144 (exit $ac_status); } >/dev/null; then
21145 if test -s conftest.err; then
21146 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 21147 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
bdcade0a
MB
21148 else
21149 ac_cpp_err=
21150 fi
21151else
21152 ac_cpp_err=yes
21153fi
21154if test -z "$ac_cpp_err"; then
21155 ac_header_preproc=yes
21156else
21157 echo "$as_me: failed program was:" >&5
21158sed 's/^/| /' conftest.$ac_ext >&5
21159
21160 ac_header_preproc=no
21161fi
21162rm -f conftest.err conftest.$ac_ext
21163echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21164echo "${ECHO_T}$ac_header_preproc" >&6
21165
21166# So? What about this header?
ac1cb8d3
VS
21167case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
21168 yes:no: )
bdcade0a
MB
21169 { echo "$as_me:$LINENO: WARNING: ext/hash_map: accepted by the compiler, rejected by the preprocessor!" >&5
21170echo "$as_me: WARNING: ext/hash_map: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
21171 { echo "$as_me:$LINENO: WARNING: ext/hash_map: proceeding with the compiler's result" >&5
21172echo "$as_me: WARNING: ext/hash_map: proceeding with the compiler's result" >&2;}
21173 ac_header_preproc=yes
bdcade0a 21174 ;;
ac1cb8d3 21175 no:yes:* )
bdcade0a
MB
21176 { echo "$as_me:$LINENO: WARNING: ext/hash_map: present but cannot be compiled" >&5
21177echo "$as_me: WARNING: ext/hash_map: present but cannot be compiled" >&2;}
ac1cb8d3
VS
21178 { echo "$as_me:$LINENO: WARNING: ext/hash_map: check for missing prerequisite headers?" >&5
21179echo "$as_me: WARNING: ext/hash_map: check for missing prerequisite headers?" >&2;}
21180 { echo "$as_me:$LINENO: WARNING: ext/hash_map: see the Autoconf documentation" >&5
21181echo "$as_me: WARNING: ext/hash_map: see the Autoconf documentation" >&2;}
21182 { echo "$as_me:$LINENO: WARNING: ext/hash_map: section \"Present But Cannot Be Compiled\"" >&5
21183echo "$as_me: WARNING: ext/hash_map: section \"Present But Cannot Be Compiled\"" >&2;}
bdcade0a
MB
21184 { echo "$as_me:$LINENO: WARNING: ext/hash_map: proceeding with the preprocessor's result" >&5
21185echo "$as_me: WARNING: ext/hash_map: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
21186 { echo "$as_me:$LINENO: WARNING: ext/hash_map: in the future, the compiler will take precedence" >&5
21187echo "$as_me: WARNING: ext/hash_map: in the future, the compiler will take precedence" >&2;}
bdcade0a
MB
21188 (
21189 cat <<\_ASBOX
ac1cb8d3
VS
21190## ----------------------------------------- ##
21191## Report this to wx-dev@lists.wxwidgets.org ##
21192## ----------------------------------------- ##
bdcade0a
MB
21193_ASBOX
21194 ) |
21195 sed "s/^/$as_me: WARNING: /" >&2
21196 ;;
21197esac
21198echo "$as_me:$LINENO: checking for ext/hash_map" >&5
21199echo $ECHO_N "checking for ext/hash_map... $ECHO_C" >&6
21200if test "${ac_cv_header_ext_hash_map+set}" = set; then
21201 echo $ECHO_N "(cached) $ECHO_C" >&6
21202else
21203 ac_cv_header_ext_hash_map=$ac_header_preproc
21204fi
21205echo "$as_me:$LINENO: result: $ac_cv_header_ext_hash_map" >&5
21206echo "${ECHO_T}$ac_cv_header_ext_hash_map" >&6
21207
21208fi
21209if test $ac_cv_header_ext_hash_map = yes; then
21210 echo "$as_me:$LINENO: checking for hash_map and hash_set" >&5
21211echo $ECHO_N "checking for hash_map and hash_set... $ECHO_C" >&6
21212 cat >conftest.$ac_ext <<_ACEOF
21213/* confdefs.h. */
21214_ACEOF
21215cat confdefs.h >>conftest.$ac_ext
21216cat >>conftest.$ac_ext <<_ACEOF
21217/* end confdefs.h. */
21218#include <ext/hash_map>
21219 #include <ext/hash_set>
21220int
21221main ()
21222{
21223__gnu_cxx::hash_map<double*, char*, __gnu_cxx::hash<double*>, std::equal_to<double*> > test1;
21224 __gnu_cxx::hash_set<char*, __gnu_cxx::hash<char*>, std::equal_to<char*> > test2;
21225 ;
21226 return 0;
21227}
21228_ACEOF
21229rm -f conftest.$ac_objext
21230if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21231 (eval $ac_compile) 2>conftest.er1
bdcade0a 21232 ac_status=$?
ac1cb8d3
VS
21233 grep -v '^ *+' conftest.er1 >conftest.err
21234 rm -f conftest.er1
21235 cat conftest.err >&5
bdcade0a
MB
21236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21237 (exit $ac_status); } &&
89be85c2
VS
21238 { ac_try='test -z "$ac_cxx_werror_flag"
21239 || test ! -s conftest.err'
ac1cb8d3
VS
21240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21241 (eval $ac_try) 2>&5
21242 ac_status=$?
21243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21244 (exit $ac_status); }; } &&
21245 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
21246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21247 (eval $ac_try) 2>&5
21248 ac_status=$?
21249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21250 (exit $ac_status); }; }; then
21251 echo "$as_me:$LINENO: result: yes" >&5
21252echo "${ECHO_T}yes" >&6
21253 cat >>confdefs.h <<\_ACEOF
21254#define HAVE_EXT_HASH_MAP 1
21255_ACEOF
21256
21257 cat >>confdefs.h <<\_ACEOF
21258#define HAVE_GNU_CXX_HASH_MAP 1
21259_ACEOF
21260
21261else
21262 echo "$as_me: failed program was:" >&5
21263sed 's/^/| /' conftest.$ac_ext >&5
21264
21265echo "$as_me:$LINENO: result: no" >&5
21266echo "${ECHO_T}no" >&6
21267fi
ac1cb8d3 21268rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
21269
21270fi
21271
21272
a848cd7e
SC
21273
21274 ac_ext=c
21275ac_cpp='$CPP $CPPFLAGS'
21276ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21277ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21278ac_compiler_gnu=$ac_cv_c_compiler_gnu
21279
21280fi
21281
21282
21283SEARCH_INCLUDE="\
21284 /usr/local/include \
21285 \
21286 /usr/Motif-2.1/include \
21287 /usr/Motif-1.2/include \
21288 /usr/include/Motif1.2 \
21289 /opt/xpm/include/X11 \
21290 /opt/GBxpm/include/ \
21291 /opt/GBxpm/X11/include/ \
21292 \
21293 /usr/dt/include \
21294 /usr/openwin/include \
21295 \
21296 /usr/include/Xm \
21297 \
21298 /usr/X11R6/include \
21299 /usr/X11R6.4/include \
21300 /usr/X11R5/include \
21301 /usr/X11R4/include \
21302 \
21303 /usr/include/X11R6 \
21304 /usr/include/X11R5 \
21305 /usr/include/X11R4 \
21306 \
21307 /usr/local/X11R6/include \
21308 /usr/local/X11R5/include \
21309 /usr/local/X11R4/include \
21310 \
21311 /usr/local/include/X11R6 \
21312 /usr/local/include/X11R5 \
21313 /usr/local/include/X11R4 \
21314 \
21315 /usr/X11/include \
21316 /usr/include/X11 \
21317 /usr/local/X11/include \
21318 /usr/local/include/X11 \
21319 \
21320 /usr/X386/include \
21321 /usr/x386/include \
21322 /usr/XFree86/include/X11 \
21323 \
21324 X:/XFree86/include \
21325 X:/XFree86/include/X11 \
21326 \
21327 /usr/include/gtk \
21328 /usr/local/include/gtk \
21329 /usr/include/glib \
21330 /usr/local/include/glib \
21331 \
21332 /usr/include/qt \
21333 /usr/local/include/qt \
21334 \
21335 /usr/local/arm/3.3.2/include \
21336 \
21337 /usr/include/windows \
21338 /usr/include/wine \
21339 /usr/local/include/wine \
21340 \
21341 /usr/unsupported/include \
21342 /usr/athena/include \
21343 /usr/local/x11r5/include \
21344 /usr/lpp/Xamples/include \
21345 \
21346 /usr/openwin/share/include"
21347
21348SEARCH_LIB="/usr/lib /usr/lib32 `echo "$SEARCH_INCLUDE" | sed s/include/lib/g` /usr/lib64 /usr/X11R6/lib64"
21349
21350
21351cat >confcache <<\_ACEOF
21352# This file is a shell script that caches the results of configure
21353# tests run on this system so they can be shared between configure
21354# scripts and configure runs, see configure's option --config-cache.
21355# It is not useful on other systems. If it contains results you don't
21356# want to keep, you may remove or edit it.
21357#
21358# config.status only pays attention to the cache file if you give it
21359# the --recheck option to rerun configure.
21360#
21361# `ac_cv_env_foo' variables (set or unset) will be overridden when
21362# loading this file, other *unset* `ac_cv_foo' will be assigned the
21363# following values.
21364
21365_ACEOF
21366
21367# The following way of writing the cache mishandles newlines in values,
21368# but we know of no workaround that is simple, portable, and efficient.
21369# So, don't put newlines in cache variables' values.
21370# Ultrix sh set writes to stderr and can't be redirected directly,
21371# and sets the high bit in the cache file unless we assign to the vars.
21372{
21373 (set) 2>&1 |
21374 case `(ac_space=' '; set | grep ac_space) 2>&1` in
21375 *ac_space=\ *)
21376 # `set' does not quote correctly, so add quotes (double-quote
21377 # substitution turns \\\\ into \\, and sed turns \\ into \).
21378 sed -n \
ac1cb8d3
VS
21379 "s/'/'\\\\''/g;
21380 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a848cd7e
SC
21381 ;;
21382 *)
21383 # `set' quotes correctly as required by POSIX, so do not add quotes.
21384 sed -n \
ac1cb8d3 21385 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
21386 ;;
21387 esac;
21388} |
21389 sed '
21390 t clear
21391 : clear
21392 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21393 t end
21394 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21395 : end' >>confcache
21396if diff $cache_file confcache >/dev/null 2>&1; then :; else
21397 if test -w $cache_file; then
21398 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
21399 cat confcache >$cache_file
21400 else
21401 echo "not updating unwritable cache $cache_file"
21402 fi
21403fi
21404rm -f confcache
21405
21406if test "$USE_LINUX" = 1 -o "$USE_GNU" = 1; then
21407 echo "$as_me:$LINENO: checking for glibc 2.1 or later" >&5
21408echo $ECHO_N "checking for glibc 2.1 or later... $ECHO_C" >&6
21409if test "${wx_cv_lib_glibc21+set}" = set; then
21410 echo $ECHO_N "(cached) $ECHO_C" >&6
21411else
21412
21413 cat >conftest.$ac_ext <<_ACEOF
21414/* confdefs.h. */
21415_ACEOF
21416cat confdefs.h >>conftest.$ac_ext
21417cat >>conftest.$ac_ext <<_ACEOF
21418/* end confdefs.h. */
21419#include <features.h>
21420int
21421main ()
21422{
21423
21424 #if (__GLIBC__ < 2) || (__GLIBC_MINOR__ < 1)
21425 #error not glibc2.1
21426 #endif
21427
21428 ;
21429 return 0;
21430}
21431_ACEOF
21432rm -f conftest.$ac_objext
21433if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21434 (eval $ac_compile) 2>conftest.er1
a848cd7e 21435 ac_status=$?
ac1cb8d3
VS
21436 grep -v '^ *+' conftest.er1 >conftest.err
21437 rm -f conftest.er1
21438 cat conftest.err >&5
a848cd7e
SC
21439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21440 (exit $ac_status); } &&
89be85c2
VS
21441 { ac_try='test -z "$ac_c_werror_flag"
21442 || test ! -s conftest.err'
ac1cb8d3
VS
21443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21444 (eval $ac_try) 2>&5
21445 ac_status=$?
21446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21447 (exit $ac_status); }; } &&
21448 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21450 (eval $ac_try) 2>&5
21451 ac_status=$?
21452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21453 (exit $ac_status); }; }; then
21454
21455 wx_cv_lib_glibc21=yes
21456
21457else
21458 echo "$as_me: failed program was:" >&5
21459sed 's/^/| /' conftest.$ac_ext >&5
21460
21461
21462 wx_cv_lib_glibc21=no
21463
21464
21465fi
ac1cb8d3 21466rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21467
21468fi
21469echo "$as_me:$LINENO: result: $wx_cv_lib_glibc21" >&5
21470echo "${ECHO_T}$wx_cv_lib_glibc21" >&6
21471 if test "$wx_cv_lib_glibc21" = "yes"; then
21472 cat >>confdefs.h <<\_ACEOF
21473#define wxHAVE_GLIBC2 1
21474_ACEOF
21475
21476 fi
21477fi
21478
21479if test "x$wx_cv_lib_glibc21" = "xyes"; then
21480 if test "$wxUSE_UNICODE" = "yes" -o "$wxUSE_THREADS" = "yes"; then
21481 cat >>confdefs.h <<\_ACEOF
21482#define _GNU_SOURCE 1
21483_ACEOF
21484
21485 fi
21486fi
21487
21488
21489
21490if test "$wxUSE_REGEX" != "no"; then
21491 cat >>confdefs.h <<\_ACEOF
21492#define wxUSE_REGEX 1
21493_ACEOF
21494
21495
21496 if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_REGEX" = "yes"; then
21497 { echo "$as_me:$LINENO: WARNING: Defaulting to the the builtin regex library for Unicode build." >&5
21498echo "$as_me: WARNING: Defaulting to the the builtin regex library for Unicode build." >&2;}
21499 wxUSE_REGEX=builtin
21500 fi
21501
21502 if test "$wxUSE_REGEX" = "sys" -o "$wxUSE_REGEX" = "yes" ; then
21503 if test "${ac_cv_header_regex_h+set}" = set; then
21504 echo "$as_me:$LINENO: checking for regex.h" >&5
21505echo $ECHO_N "checking for regex.h... $ECHO_C" >&6
21506if test "${ac_cv_header_regex_h+set}" = set; then
21507 echo $ECHO_N "(cached) $ECHO_C" >&6
21508fi
21509echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
21510echo "${ECHO_T}$ac_cv_header_regex_h" >&6
21511else
21512 # Is the header compilable?
21513echo "$as_me:$LINENO: checking regex.h usability" >&5
21514echo $ECHO_N "checking regex.h usability... $ECHO_C" >&6
21515cat >conftest.$ac_ext <<_ACEOF
21516/* confdefs.h. */
21517_ACEOF
21518cat confdefs.h >>conftest.$ac_ext
21519cat >>conftest.$ac_ext <<_ACEOF
21520/* end confdefs.h. */
21521$ac_includes_default
21522#include <regex.h>
21523_ACEOF
21524rm -f conftest.$ac_objext
21525if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21526 (eval $ac_compile) 2>conftest.er1
a848cd7e 21527 ac_status=$?
ac1cb8d3
VS
21528 grep -v '^ *+' conftest.er1 >conftest.err
21529 rm -f conftest.er1
21530 cat conftest.err >&5
a848cd7e
SC
21531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21532 (exit $ac_status); } &&
89be85c2
VS
21533 { ac_try='test -z "$ac_c_werror_flag"
21534 || test ! -s conftest.err'
ac1cb8d3
VS
21535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21536 (eval $ac_try) 2>&5
21537 ac_status=$?
21538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21539 (exit $ac_status); }; } &&
21540 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21542 (eval $ac_try) 2>&5
21543 ac_status=$?
21544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21545 (exit $ac_status); }; }; then
21546 ac_header_compiler=yes
21547else
21548 echo "$as_me: failed program was:" >&5
21549sed 's/^/| /' conftest.$ac_ext >&5
21550
21551ac_header_compiler=no
21552fi
ac1cb8d3 21553rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21554echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21555echo "${ECHO_T}$ac_header_compiler" >&6
21556
21557# Is the header present?
21558echo "$as_me:$LINENO: checking regex.h presence" >&5
21559echo $ECHO_N "checking regex.h presence... $ECHO_C" >&6
21560cat >conftest.$ac_ext <<_ACEOF
21561/* confdefs.h. */
21562_ACEOF
21563cat confdefs.h >>conftest.$ac_ext
21564cat >>conftest.$ac_ext <<_ACEOF
21565/* end confdefs.h. */
21566#include <regex.h>
21567_ACEOF
21568if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21569 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21570 ac_status=$?
21571 grep -v '^ *+' conftest.er1 >conftest.err
21572 rm -f conftest.er1
21573 cat conftest.err >&5
21574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21575 (exit $ac_status); } >/dev/null; then
21576 if test -s conftest.err; then
21577 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 21578 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
21579 else
21580 ac_cpp_err=
21581 fi
21582else
21583 ac_cpp_err=yes
21584fi
21585if test -z "$ac_cpp_err"; then
21586 ac_header_preproc=yes
21587else
21588 echo "$as_me: failed program was:" >&5
21589sed 's/^/| /' conftest.$ac_ext >&5
21590
21591 ac_header_preproc=no
21592fi
21593rm -f conftest.err conftest.$ac_ext
21594echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21595echo "${ECHO_T}$ac_header_preproc" >&6
21596
21597# So? What about this header?
ac1cb8d3
VS
21598case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21599 yes:no: )
a848cd7e
SC
21600 { echo "$as_me:$LINENO: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&5
21601echo "$as_me: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
21602 { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the compiler's result" >&5
21603echo "$as_me: WARNING: regex.h: proceeding with the compiler's result" >&2;}
21604 ac_header_preproc=yes
a848cd7e 21605 ;;
ac1cb8d3 21606 no:yes:* )
a848cd7e
SC
21607 { echo "$as_me:$LINENO: WARNING: regex.h: present but cannot be compiled" >&5
21608echo "$as_me: WARNING: regex.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
21609 { echo "$as_me:$LINENO: WARNING: regex.h: check for missing prerequisite headers?" >&5
21610echo "$as_me: WARNING: regex.h: check for missing prerequisite headers?" >&2;}
21611 { echo "$as_me:$LINENO: WARNING: regex.h: see the Autoconf documentation" >&5
21612echo "$as_me: WARNING: regex.h: see the Autoconf documentation" >&2;}
21613 { echo "$as_me:$LINENO: WARNING: regex.h: section \"Present But Cannot Be Compiled\"" >&5
21614echo "$as_me: WARNING: regex.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
21615 { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the preprocessor's result" >&5
21616echo "$as_me: WARNING: regex.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
21617 { echo "$as_me:$LINENO: WARNING: regex.h: in the future, the compiler will take precedence" >&5
21618echo "$as_me: WARNING: regex.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
21619 (
21620 cat <<\_ASBOX
ac1cb8d3
VS
21621## ----------------------------------------- ##
21622## Report this to wx-dev@lists.wxwidgets.org ##
21623## ----------------------------------------- ##
a848cd7e
SC
21624_ASBOX
21625 ) |
21626 sed "s/^/$as_me: WARNING: /" >&2
21627 ;;
21628esac
21629echo "$as_me:$LINENO: checking for regex.h" >&5
21630echo $ECHO_N "checking for regex.h... $ECHO_C" >&6
21631if test "${ac_cv_header_regex_h+set}" = set; then
21632 echo $ECHO_N "(cached) $ECHO_C" >&6
21633else
21634 ac_cv_header_regex_h=$ac_header_preproc
21635fi
21636echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
21637echo "${ECHO_T}$ac_cv_header_regex_h" >&6
21638
21639fi
21640if test $ac_cv_header_regex_h = yes; then
21641
21642for ac_func in regcomp
21643do
21644as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21645echo "$as_me:$LINENO: checking for $ac_func" >&5
21646echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21647if eval "test \"\${$as_ac_var+set}\" = set"; then
21648 echo $ECHO_N "(cached) $ECHO_C" >&6
21649else
21650 cat >conftest.$ac_ext <<_ACEOF
21651/* confdefs.h. */
21652_ACEOF
21653cat confdefs.h >>conftest.$ac_ext
21654cat >>conftest.$ac_ext <<_ACEOF
21655/* end confdefs.h. */
ac1cb8d3
VS
21656/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21657 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21658#define $ac_func innocuous_$ac_func
21659
a848cd7e
SC
21660/* System header to define __stub macros and hopefully few prototypes,
21661 which can conflict with char $ac_func (); below.
21662 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21663 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 21664
a848cd7e
SC
21665#ifdef __STDC__
21666# include <limits.h>
21667#else
21668# include <assert.h>
21669#endif
ac1cb8d3
VS
21670
21671#undef $ac_func
21672
a848cd7e
SC
21673/* Override any gcc2 internal prototype to avoid an error. */
21674#ifdef __cplusplus
21675extern "C"
21676{
21677#endif
21678/* We use char because int might match the return type of a gcc2
21679 builtin and then its argument prototype would still apply. */
21680char $ac_func ();
21681/* The GNU C library defines this for functions which it implements
21682 to always fail with ENOSYS. Some functions are actually named
21683 something starting with __ and the normal name is an alias. */
21684#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21685choke me
21686#else
21687char (*f) () = $ac_func;
21688#endif
21689#ifdef __cplusplus
21690}
21691#endif
21692
21693int
21694main ()
21695{
21696return f != $ac_func;
21697 ;
21698 return 0;
21699}
21700_ACEOF
21701rm -f conftest.$ac_objext conftest$ac_exeext
21702if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 21703 (eval $ac_link) 2>conftest.er1
a848cd7e 21704 ac_status=$?
ac1cb8d3
VS
21705 grep -v '^ *+' conftest.er1 >conftest.err
21706 rm -f conftest.er1
21707 cat conftest.err >&5
a848cd7e
SC
21708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21709 (exit $ac_status); } &&
89be85c2
VS
21710 { ac_try='test -z "$ac_c_werror_flag"
21711 || test ! -s conftest.err'
ac1cb8d3
VS
21712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21713 (eval $ac_try) 2>&5
21714 ac_status=$?
21715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21716 (exit $ac_status); }; } &&
21717 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
21718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21719 (eval $ac_try) 2>&5
21720 ac_status=$?
21721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21722 (exit $ac_status); }; }; then
21723 eval "$as_ac_var=yes"
21724else
21725 echo "$as_me: failed program was:" >&5
21726sed 's/^/| /' conftest.$ac_ext >&5
21727
21728eval "$as_ac_var=no"
21729fi
ac1cb8d3
VS
21730rm -f conftest.err conftest.$ac_objext \
21731 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
21732fi
21733echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21734echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21735if test `eval echo '${'$as_ac_var'}'` = yes; then
21736 cat >>confdefs.h <<_ACEOF
21737#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21738_ACEOF
21739
21740fi
21741done
21742
21743fi
21744
21745
21746
21747 if test "x$ac_cv_func_regcomp" != "xyes"; then
21748 if test "$wxUSE_REGEX" = "sys" ; then
21749 { { echo "$as_me:$LINENO: error: system regex library not found! Use --with-regex to use built-in version" >&5
21750echo "$as_me: error: system regex library not found! Use --with-regex to use built-in version" >&2;}
21751 { (exit 1); exit 1; }; }
21752 else
21753 { echo "$as_me:$LINENO: WARNING: system regex library not found, will use built-in instead" >&5
21754echo "$as_me: WARNING: system regex library not found, will use built-in instead" >&2;}
21755 wxUSE_REGEX=builtin
21756 fi
21757 else
21758 wxUSE_REGEX=sys
21759 cat >>confdefs.h <<\_ACEOF
21760#define WX_NO_REGEX_ADVANCED 1
21761_ACEOF
21762
21763 fi
21764 fi
21765fi
21766
21767
21768ZLIB_LINK=
21769if test "$wxUSE_ZLIB" != "no" ; then
21770 cat >>confdefs.h <<\_ACEOF
21771#define wxUSE_ZLIB 1
21772_ACEOF
21773
21774
21775 if test "$wxUSE_ZLIB" = "sys" -o "$wxUSE_ZLIB" = "yes" ; then
21776 if test "$USE_DARWIN" = 1; then
21777 system_zlib_h_ok="yes"
21778 else
21779 echo "$as_me:$LINENO: checking for zlib.h >= 1.1.4" >&5
21780echo $ECHO_N "checking for zlib.h >= 1.1.4... $ECHO_C" >&6
21781if test "${ac_cv_header_zlib_h+set}" = set; then
21782 echo $ECHO_N "(cached) $ECHO_C" >&6
21783else
21784 if test "$cross_compiling" = yes; then
21785 unset ac_cv_header_zlib_h
21786
21787else
21788 cat >conftest.$ac_ext <<_ACEOF
21789/* confdefs.h. */
21790_ACEOF
21791cat confdefs.h >>conftest.$ac_ext
21792cat >>conftest.$ac_ext <<_ACEOF
21793/* end confdefs.h. */
21794
21795 #include <zlib.h>
21796 #include <stdio.h>
21797
21798 int main()
21799 {
21800 FILE *f=fopen("conftestval", "w");
21801 if (!f) exit(1);
21802 fprintf(f, "%s",
21803 ZLIB_VERSION[0] == '1' &&
21804 (ZLIB_VERSION[2] > '1' ||
21805 (ZLIB_VERSION[2] == '1' &&
21806 ZLIB_VERSION[4] >= '4')) ? "yes" : "no");
21807 exit(0);
21808 }
21809
21810_ACEOF
21811rm -f conftest$ac_exeext
21812if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21813 (eval $ac_link) 2>&5
21814 ac_status=$?
21815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21816 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21818 (eval $ac_try) 2>&5
21819 ac_status=$?
21820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21821 (exit $ac_status); }; }; then
21822 ac_cv_header_zlib_h=`cat conftestval`
21823else
21824 echo "$as_me: program exited with status $ac_status" >&5
21825echo "$as_me: failed program was:" >&5
21826sed 's/^/| /' conftest.$ac_ext >&5
21827
21828( exit $ac_status )
21829ac_cv_header_zlib_h=no
21830fi
ac1cb8d3 21831rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21832fi
21833
21834fi
21835echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
21836echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
21837 if test "${ac_cv_header_zlib_h+set}" = set; then
21838 echo "$as_me:$LINENO: checking for zlib.h" >&5
21839echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
21840if test "${ac_cv_header_zlib_h+set}" = set; then
21841 echo $ECHO_N "(cached) $ECHO_C" >&6
21842fi
21843echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
21844echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
21845else
21846 # Is the header compilable?
21847echo "$as_me:$LINENO: checking zlib.h usability" >&5
21848echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6
21849cat >conftest.$ac_ext <<_ACEOF
21850/* confdefs.h. */
21851_ACEOF
21852cat confdefs.h >>conftest.$ac_ext
21853cat >>conftest.$ac_ext <<_ACEOF
21854/* end confdefs.h. */
21855$ac_includes_default
21856#include <zlib.h>
21857_ACEOF
21858rm -f conftest.$ac_objext
21859if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21860 (eval $ac_compile) 2>conftest.er1
a848cd7e 21861 ac_status=$?
ac1cb8d3
VS
21862 grep -v '^ *+' conftest.er1 >conftest.err
21863 rm -f conftest.er1
21864 cat conftest.err >&5
a848cd7e
SC
21865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21866 (exit $ac_status); } &&
89be85c2
VS
21867 { ac_try='test -z "$ac_c_werror_flag"
21868 || test ! -s conftest.err'
ac1cb8d3
VS
21869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21870 (eval $ac_try) 2>&5
21871 ac_status=$?
21872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21873 (exit $ac_status); }; } &&
21874 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21876 (eval $ac_try) 2>&5
21877 ac_status=$?
21878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21879 (exit $ac_status); }; }; then
21880 ac_header_compiler=yes
21881else
21882 echo "$as_me: failed program was:" >&5
21883sed 's/^/| /' conftest.$ac_ext >&5
21884
21885ac_header_compiler=no
21886fi
ac1cb8d3 21887rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21888echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21889echo "${ECHO_T}$ac_header_compiler" >&6
21890
21891# Is the header present?
21892echo "$as_me:$LINENO: checking zlib.h presence" >&5
21893echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6
21894cat >conftest.$ac_ext <<_ACEOF
21895/* confdefs.h. */
21896_ACEOF
21897cat confdefs.h >>conftest.$ac_ext
21898cat >>conftest.$ac_ext <<_ACEOF
21899/* end confdefs.h. */
21900#include <zlib.h>
21901_ACEOF
21902if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21903 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21904 ac_status=$?
21905 grep -v '^ *+' conftest.er1 >conftest.err
21906 rm -f conftest.er1
21907 cat conftest.err >&5
21908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21909 (exit $ac_status); } >/dev/null; then
21910 if test -s conftest.err; then
21911 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 21912 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
21913 else
21914 ac_cpp_err=
21915 fi
21916else
21917 ac_cpp_err=yes
21918fi
21919if test -z "$ac_cpp_err"; then
21920 ac_header_preproc=yes
21921else
21922 echo "$as_me: failed program was:" >&5
21923sed 's/^/| /' conftest.$ac_ext >&5
21924
21925 ac_header_preproc=no
21926fi
21927rm -f conftest.err conftest.$ac_ext
21928echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21929echo "${ECHO_T}$ac_header_preproc" >&6
21930
21931# So? What about this header?
ac1cb8d3
VS
21932case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21933 yes:no: )
a848cd7e
SC
21934 { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
21935echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
21936 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
21937echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
21938 ac_header_preproc=yes
a848cd7e 21939 ;;
ac1cb8d3 21940 no:yes:* )
a848cd7e
SC
21941 { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
21942echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
21943 { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
21944echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
21945 { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
21946echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
21947 { echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5
21948echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
21949 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
21950echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
21951 { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
21952echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
21953 (
21954 cat <<\_ASBOX
ac1cb8d3
VS
21955## ----------------------------------------- ##
21956## Report this to wx-dev@lists.wxwidgets.org ##
21957## ----------------------------------------- ##
a848cd7e
SC
21958_ASBOX
21959 ) |
21960 sed "s/^/$as_me: WARNING: /" >&2
21961 ;;
21962esac
21963echo "$as_me:$LINENO: checking for zlib.h" >&5
21964echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
21965if test "${ac_cv_header_zlib_h+set}" = set; then
21966 echo $ECHO_N "(cached) $ECHO_C" >&6
21967else
21968 ac_cv_header_zlib_h=$ac_header_preproc
21969fi
21970echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
21971echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
21972
21973fi
21974
21975
21976
21977 system_zlib_h_ok=$ac_cv_header_zlib_h
21978 fi
21979
21980 if test "$system_zlib_h_ok" = "yes"; then
21981 echo "$as_me:$LINENO: checking for deflate in -lz" >&5
21982echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
21983if test "${ac_cv_lib_z_deflate+set}" = set; then
21984 echo $ECHO_N "(cached) $ECHO_C" >&6
21985else
21986 ac_check_lib_save_LIBS=$LIBS
21987LIBS="-lz $LIBS"
21988cat >conftest.$ac_ext <<_ACEOF
21989/* confdefs.h. */
21990_ACEOF
21991cat confdefs.h >>conftest.$ac_ext
21992cat >>conftest.$ac_ext <<_ACEOF
21993/* end confdefs.h. */
21994
21995/* Override any gcc2 internal prototype to avoid an error. */
21996#ifdef __cplusplus
21997extern "C"
21998#endif
21999/* We use char because int might match the return type of a gcc2
22000 builtin and then its argument prototype would still apply. */
22001char deflate ();
22002int
22003main ()
22004{
22005deflate ();
22006 ;
22007 return 0;
22008}
22009_ACEOF
22010rm -f conftest.$ac_objext conftest$ac_exeext
22011if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 22012 (eval $ac_link) 2>conftest.er1
a848cd7e 22013 ac_status=$?
ac1cb8d3
VS
22014 grep -v '^ *+' conftest.er1 >conftest.err
22015 rm -f conftest.er1
22016 cat conftest.err >&5
a848cd7e
SC
22017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22018 (exit $ac_status); } &&
89be85c2
VS
22019 { ac_try='test -z "$ac_c_werror_flag"
22020 || test ! -s conftest.err'
ac1cb8d3
VS
22021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22022 (eval $ac_try) 2>&5
22023 ac_status=$?
22024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22025 (exit $ac_status); }; } &&
22026 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
22027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22028 (eval $ac_try) 2>&5
22029 ac_status=$?
22030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22031 (exit $ac_status); }; }; then
22032 ac_cv_lib_z_deflate=yes
22033else
22034 echo "$as_me: failed program was:" >&5
22035sed 's/^/| /' conftest.$ac_ext >&5
22036
22037ac_cv_lib_z_deflate=no
22038fi
ac1cb8d3
VS
22039rm -f conftest.err conftest.$ac_objext \
22040 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
22041LIBS=$ac_check_lib_save_LIBS
22042fi
22043echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
22044echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
22045if test $ac_cv_lib_z_deflate = yes; then
22046 ZLIB_LINK=" -lz"
22047fi
22048
22049 fi
22050
22051 if test "x$ZLIB_LINK" = "x" ; then
22052 if test "$wxUSE_ZLIB" = "sys" ; then
22053 { { echo "$as_me:$LINENO: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&5
22054echo "$as_me: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&2;}
22055 { (exit 1); exit 1; }; }
22056 else
22057 { echo "$as_me:$LINENO: WARNING: zlib library not found or too old, will use built-in instead" >&5
22058echo "$as_me: WARNING: zlib library not found or too old, will use built-in instead" >&2;}
22059 wxUSE_ZLIB=builtin
22060 fi
22061 else
22062 wxUSE_ZLIB=sys
22063 fi
22064 fi
22065fi
22066
22067
22068PNG_LINK=
22069if test "$wxUSE_LIBPNG" != "no" ; then
22070 cat >>confdefs.h <<\_ACEOF
22071#define wxUSE_LIBPNG 1
22072_ACEOF
22073
22074
22075 if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBPNG" = "builtin" ; then
22076 { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&5
22077echo "$as_me: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&2;}
22078 wxUSE_LIBPNG=sys
22079 fi
22080
22081 if test "$wxUSE_MGL" != 1 -a "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then
22082 { echo "$as_me:$LINENO: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&5
22083echo "$as_me: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&2;}
22084 wxUSE_LIBPNG=builtin
22085 fi
22086
22087 if test "$wxUSE_MGL" != 1 ; then
22088 if test "$wxUSE_LIBPNG" = "sys" -o "$wxUSE_LIBPNG" = "yes" ; then
22089 echo "$as_me:$LINENO: checking for png.h > 0.90" >&5
22090echo $ECHO_N "checking for png.h > 0.90... $ECHO_C" >&6
22091if test "${ac_cv_header_png_h+set}" = set; then
22092 echo $ECHO_N "(cached) $ECHO_C" >&6
22093else
22094 if test "$cross_compiling" = yes; then
22095 unset ac_cv_header_png_h
22096
22097else
22098 cat >conftest.$ac_ext <<_ACEOF
22099/* confdefs.h. */
22100_ACEOF
22101cat confdefs.h >>conftest.$ac_ext
22102cat >>conftest.$ac_ext <<_ACEOF
22103/* end confdefs.h. */
22104
22105 #include <png.h>
22106 #include <stdio.h>
22107
22108 int main()
22109 {
22110 FILE *f=fopen("conftestval", "w");
22111 if (!f) exit(1);
22112 fprintf(f, "%s",
22113 PNG_LIBPNG_VER > 90 ? "yes" : "no");
22114 exit(0);
22115 }
22116
22117_ACEOF
22118rm -f conftest$ac_exeext
22119if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22120 (eval $ac_link) 2>&5
22121 ac_status=$?
22122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22123 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22125 (eval $ac_try) 2>&5
22126 ac_status=$?
22127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22128 (exit $ac_status); }; }; then
22129 ac_cv_header_png_h=`cat conftestval`
22130else
22131 echo "$as_me: program exited with status $ac_status" >&5
22132echo "$as_me: failed program was:" >&5
22133sed 's/^/| /' conftest.$ac_ext >&5
22134
22135( exit $ac_status )
22136ac_cv_header_png_h=no
22137fi
ac1cb8d3 22138rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22139fi
22140
22141fi
22142echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
22143echo "${ECHO_T}$ac_cv_header_png_h" >&6
22144 if test "${ac_cv_header_png_h+set}" = set; then
22145 echo "$as_me:$LINENO: checking for png.h" >&5
22146echo $ECHO_N "checking for png.h... $ECHO_C" >&6
22147if test "${ac_cv_header_png_h+set}" = set; then
22148 echo $ECHO_N "(cached) $ECHO_C" >&6
22149fi
22150echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
22151echo "${ECHO_T}$ac_cv_header_png_h" >&6
22152else
22153 # Is the header compilable?
22154echo "$as_me:$LINENO: checking png.h usability" >&5
22155echo $ECHO_N "checking png.h usability... $ECHO_C" >&6
22156cat >conftest.$ac_ext <<_ACEOF
22157/* confdefs.h. */
22158_ACEOF
22159cat confdefs.h >>conftest.$ac_ext
22160cat >>conftest.$ac_ext <<_ACEOF
22161/* end confdefs.h. */
22162$ac_includes_default
22163#include <png.h>
22164_ACEOF
22165rm -f conftest.$ac_objext
22166if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22167 (eval $ac_compile) 2>conftest.er1
a848cd7e 22168 ac_status=$?
ac1cb8d3
VS
22169 grep -v '^ *+' conftest.er1 >conftest.err
22170 rm -f conftest.er1
22171 cat conftest.err >&5
a848cd7e
SC
22172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22173 (exit $ac_status); } &&
89be85c2
VS
22174 { ac_try='test -z "$ac_c_werror_flag"
22175 || test ! -s conftest.err'
ac1cb8d3
VS
22176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22177 (eval $ac_try) 2>&5
22178 ac_status=$?
22179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22180 (exit $ac_status); }; } &&
22181 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22183 (eval $ac_try) 2>&5
22184 ac_status=$?
22185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22186 (exit $ac_status); }; }; then
22187 ac_header_compiler=yes
22188else
22189 echo "$as_me: failed program was:" >&5
22190sed 's/^/| /' conftest.$ac_ext >&5
22191
22192ac_header_compiler=no
22193fi
ac1cb8d3 22194rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22195echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22196echo "${ECHO_T}$ac_header_compiler" >&6
22197
22198# Is the header present?
22199echo "$as_me:$LINENO: checking png.h presence" >&5
22200echo $ECHO_N "checking png.h presence... $ECHO_C" >&6
22201cat >conftest.$ac_ext <<_ACEOF
22202/* confdefs.h. */
22203_ACEOF
22204cat confdefs.h >>conftest.$ac_ext
22205cat >>conftest.$ac_ext <<_ACEOF
22206/* end confdefs.h. */
22207#include <png.h>
22208_ACEOF
22209if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22210 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22211 ac_status=$?
22212 grep -v '^ *+' conftest.er1 >conftest.err
22213 rm -f conftest.er1
22214 cat conftest.err >&5
22215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22216 (exit $ac_status); } >/dev/null; then
22217 if test -s conftest.err; then
22218 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 22219 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
22220 else
22221 ac_cpp_err=
22222 fi
22223else
22224 ac_cpp_err=yes
22225fi
22226if test -z "$ac_cpp_err"; then
22227 ac_header_preproc=yes
22228else
22229 echo "$as_me: failed program was:" >&5
22230sed 's/^/| /' conftest.$ac_ext >&5
22231
22232 ac_header_preproc=no
22233fi
22234rm -f conftest.err conftest.$ac_ext
22235echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22236echo "${ECHO_T}$ac_header_preproc" >&6
22237
22238# So? What about this header?
ac1cb8d3
VS
22239case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22240 yes:no: )
a848cd7e
SC
22241 { echo "$as_me:$LINENO: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&5
22242echo "$as_me: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
22243 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the compiler's result" >&5
22244echo "$as_me: WARNING: png.h: proceeding with the compiler's result" >&2;}
22245 ac_header_preproc=yes
a848cd7e 22246 ;;
ac1cb8d3 22247 no:yes:* )
a848cd7e
SC
22248 { echo "$as_me:$LINENO: WARNING: png.h: present but cannot be compiled" >&5
22249echo "$as_me: WARNING: png.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
22250 { echo "$as_me:$LINENO: WARNING: png.h: check for missing prerequisite headers?" >&5
22251echo "$as_me: WARNING: png.h: check for missing prerequisite headers?" >&2;}
22252 { echo "$as_me:$LINENO: WARNING: png.h: see the Autoconf documentation" >&5
22253echo "$as_me: WARNING: png.h: see the Autoconf documentation" >&2;}
22254 { echo "$as_me:$LINENO: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&5
22255echo "$as_me: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
22256 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5
22257echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
22258 { echo "$as_me:$LINENO: WARNING: png.h: in the future, the compiler will take precedence" >&5
22259echo "$as_me: WARNING: png.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
22260 (
22261 cat <<\_ASBOX
ac1cb8d3
VS
22262## ----------------------------------------- ##
22263## Report this to wx-dev@lists.wxwidgets.org ##
22264## ----------------------------------------- ##
a848cd7e
SC
22265_ASBOX
22266 ) |
22267 sed "s/^/$as_me: WARNING: /" >&2
22268 ;;
22269esac
22270echo "$as_me:$LINENO: checking for png.h" >&5
22271echo $ECHO_N "checking for png.h... $ECHO_C" >&6
22272if test "${ac_cv_header_png_h+set}" = set; then
22273 echo $ECHO_N "(cached) $ECHO_C" >&6
22274else
22275 ac_cv_header_png_h=$ac_header_preproc
22276fi
22277echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
22278echo "${ECHO_T}$ac_cv_header_png_h" >&6
22279
22280fi
22281
22282
22283
22284 if test "$ac_cv_header_png_h" = "yes"; then
22285 echo "$as_me:$LINENO: checking for png_check_sig in -lpng" >&5
22286echo $ECHO_N "checking for png_check_sig in -lpng... $ECHO_C" >&6
22287if test "${ac_cv_lib_png_png_check_sig+set}" = set; then
22288 echo $ECHO_N "(cached) $ECHO_C" >&6
22289else
22290 ac_check_lib_save_LIBS=$LIBS
22291LIBS="-lpng -lz -lm $LIBS"
22292cat >conftest.$ac_ext <<_ACEOF
22293/* confdefs.h. */
22294_ACEOF
22295cat confdefs.h >>conftest.$ac_ext
22296cat >>conftest.$ac_ext <<_ACEOF
22297/* end confdefs.h. */
22298
22299/* Override any gcc2 internal prototype to avoid an error. */
22300#ifdef __cplusplus
22301extern "C"
22302#endif
22303/* We use char because int might match the return type of a gcc2
22304 builtin and then its argument prototype would still apply. */
22305char png_check_sig ();
22306int
22307main ()
22308{
22309png_check_sig ();
22310 ;
22311 return 0;
22312}
22313_ACEOF
22314rm -f conftest.$ac_objext conftest$ac_exeext
22315if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 22316 (eval $ac_link) 2>conftest.er1
a848cd7e 22317 ac_status=$?
ac1cb8d3
VS
22318 grep -v '^ *+' conftest.er1 >conftest.err
22319 rm -f conftest.er1
22320 cat conftest.err >&5
a848cd7e
SC
22321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22322 (exit $ac_status); } &&
89be85c2
VS
22323 { ac_try='test -z "$ac_c_werror_flag"
22324 || test ! -s conftest.err'
ac1cb8d3
VS
22325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22326 (eval $ac_try) 2>&5
22327 ac_status=$?
22328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22329 (exit $ac_status); }; } &&
22330 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
22331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22332 (eval $ac_try) 2>&5
22333 ac_status=$?
22334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22335 (exit $ac_status); }; }; then
22336 ac_cv_lib_png_png_check_sig=yes
22337else
22338 echo "$as_me: failed program was:" >&5
22339sed 's/^/| /' conftest.$ac_ext >&5
22340
22341ac_cv_lib_png_png_check_sig=no
22342fi
ac1cb8d3
VS
22343rm -f conftest.err conftest.$ac_objext \
22344 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
22345LIBS=$ac_check_lib_save_LIBS
22346fi
22347echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_check_sig" >&5
22348echo "${ECHO_T}$ac_cv_lib_png_png_check_sig" >&6
22349if test $ac_cv_lib_png_png_check_sig = yes; then
22350 PNG_LINK=" -lpng -lz"
22351fi
22352
22353 fi
22354
22355 if test "x$PNG_LINK" = "x" ; then
22356 if test "$wxUSE_LIBPNG" = "sys" ; then
22357 { { echo "$as_me:$LINENO: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&5
22358echo "$as_me: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&2;}
22359 { (exit 1); exit 1; }; }
22360 else
22361 { echo "$as_me:$LINENO: WARNING: system png library not found or too old, will use built-in instead" >&5
22362echo "$as_me: WARNING: system png library not found or too old, will use built-in instead" >&2;}
22363 wxUSE_LIBPNG=builtin
22364 fi
22365 else
22366 wxUSE_LIBPNG=sys
22367 fi
22368 fi
22369 fi
22370
22371 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png"
22372fi
22373
22374
22375JPEG_LINK=
22376if test "$wxUSE_LIBJPEG" != "no" ; then
22377 cat >>confdefs.h <<\_ACEOF
22378#define wxUSE_LIBJPEG 1
22379_ACEOF
22380
22381
22382 if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBJPEG" = "builtin" ; then
22383 { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&5
22384echo "$as_me: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&2;}
22385 wxUSE_LIBJPEG=sys
22386 fi
22387
22388 if test "$wxUSE_MGL" != 1 ; then
22389 if test "$wxUSE_LIBJPEG" = "sys" -o "$wxUSE_LIBJPEG" = "yes" ; then
22390 echo "$as_me:$LINENO: checking for jpeglib.h" >&5
22391echo $ECHO_N "checking for jpeglib.h... $ECHO_C" >&6
22392 if test "${ac_cv_header_jpeglib_h+set}" = set; then
22393 echo $ECHO_N "(cached) $ECHO_C" >&6
22394else
22395 cat >conftest.$ac_ext <<_ACEOF
22396/* confdefs.h. */
22397_ACEOF
22398cat confdefs.h >>conftest.$ac_ext
22399cat >>conftest.$ac_ext <<_ACEOF
22400/* end confdefs.h. */
22401
22402 #undef HAVE_STDLIB_H
22403 #include <stdio.h>
22404 #include <jpeglib.h>
22405
22406int
22407main ()
22408{
22409
22410
22411 ;
22412 return 0;
22413}
22414_ACEOF
22415rm -f conftest.$ac_objext
22416if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22417 (eval $ac_compile) 2>conftest.er1
a848cd7e 22418 ac_status=$?
ac1cb8d3
VS
22419 grep -v '^ *+' conftest.er1 >conftest.err
22420 rm -f conftest.er1
22421 cat conftest.err >&5
a848cd7e
SC
22422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22423 (exit $ac_status); } &&
89be85c2
VS
22424 { ac_try='test -z "$ac_c_werror_flag"
22425 || test ! -s conftest.err'
ac1cb8d3
VS
22426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22427 (eval $ac_try) 2>&5
22428 ac_status=$?
22429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22430 (exit $ac_status); }; } &&
22431 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22433 (eval $ac_try) 2>&5
22434 ac_status=$?
22435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22436 (exit $ac_status); }; }; then
22437 ac_cv_header_jpeglib_h=yes
22438else
22439 echo "$as_me: failed program was:" >&5
22440sed 's/^/| /' conftest.$ac_ext >&5
22441
22442ac_cv_header_jpeglib_h=no
22443
22444fi
ac1cb8d3 22445rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22446
22447fi
22448
22449 echo "$as_me:$LINENO: result: $ac_cv_header_jpeglib_h" >&5
22450echo "${ECHO_T}$ac_cv_header_jpeglib_h" >&6
22451
22452 if test "$ac_cv_header_jpeglib_h" = "yes"; then
22453 echo "$as_me:$LINENO: checking for jpeg_read_header in -ljpeg" >&5
22454echo $ECHO_N "checking for jpeg_read_header in -ljpeg... $ECHO_C" >&6
22455if test "${ac_cv_lib_jpeg_jpeg_read_header+set}" = set; then
22456 echo $ECHO_N "(cached) $ECHO_C" >&6
22457else
22458 ac_check_lib_save_LIBS=$LIBS
22459LIBS="-ljpeg $LIBS"
22460cat >conftest.$ac_ext <<_ACEOF
22461/* confdefs.h. */
22462_ACEOF
22463cat confdefs.h >>conftest.$ac_ext
22464cat >>conftest.$ac_ext <<_ACEOF
22465/* end confdefs.h. */
22466
22467/* Override any gcc2 internal prototype to avoid an error. */
22468#ifdef __cplusplus
22469extern "C"
22470#endif
22471/* We use char because int might match the return type of a gcc2
22472 builtin and then its argument prototype would still apply. */
22473char jpeg_read_header ();
22474int
22475main ()
22476{
22477jpeg_read_header ();
22478 ;
22479 return 0;
22480}
22481_ACEOF
22482rm -f conftest.$ac_objext conftest$ac_exeext
22483if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 22484 (eval $ac_link) 2>conftest.er1
a848cd7e 22485 ac_status=$?
ac1cb8d3
VS
22486 grep -v '^ *+' conftest.er1 >conftest.err
22487 rm -f conftest.er1
22488 cat conftest.err >&5
a848cd7e
SC
22489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22490 (exit $ac_status); } &&
89be85c2
VS
22491 { ac_try='test -z "$ac_c_werror_flag"
22492 || test ! -s conftest.err'
ac1cb8d3
VS
22493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22494 (eval $ac_try) 2>&5
22495 ac_status=$?
22496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22497 (exit $ac_status); }; } &&
22498 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
22499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22500 (eval $ac_try) 2>&5
22501 ac_status=$?
22502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22503 (exit $ac_status); }; }; then
22504 ac_cv_lib_jpeg_jpeg_read_header=yes
22505else
22506 echo "$as_me: failed program was:" >&5
22507sed 's/^/| /' conftest.$ac_ext >&5
22508
22509ac_cv_lib_jpeg_jpeg_read_header=no
22510fi
ac1cb8d3
VS
22511rm -f conftest.err conftest.$ac_objext \
22512 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
22513LIBS=$ac_check_lib_save_LIBS
22514fi
22515echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5
22516echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_read_header" >&6
22517if test $ac_cv_lib_jpeg_jpeg_read_header = yes; then
22518 JPEG_LINK=" -ljpeg"
22519fi
22520
22521 fi
22522
22523 if test "x$JPEG_LINK" = "x" ; then
22524 if test "$wxUSE_LIBJPEG" = "sys" ; then
22525 { { echo "$as_me:$LINENO: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&5
22526echo "$as_me: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&2;}
22527 { (exit 1); exit 1; }; }
22528 else
22529 { echo "$as_me:$LINENO: WARNING: system jpeg library not found, will use built-in instead" >&5
22530echo "$as_me: WARNING: system jpeg library not found, will use built-in instead" >&2;}
22531 wxUSE_LIBJPEG=builtin
22532 fi
22533 else
22534 wxUSE_LIBJPEG=sys
22535 fi
22536 fi
22537 fi
22538fi
22539
22540
22541TIFF_LINK=
22542TIFF_PREREQ_LINKS=-lm
22543if test "$wxUSE_LIBTIFF" != "no" ; then
22544 cat >>confdefs.h <<\_ACEOF
22545#define wxUSE_LIBTIFF 1
22546_ACEOF
22547
22548
22549 if test "$wxUSE_LIBTIFF" = "sys" -o "$wxUSE_LIBTIFF" = "yes" ; then
22550 if test "$wxUSE_LIBJPEG" = "sys"; then
22551 TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $JPEG_LINK"
22552 fi
22553 if test "$wxUSE_ZLIB" = "sys"; then
22554 TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $ZLIB_LINK"
22555 fi
22556 if test "${ac_cv_header_tiffio_h+set}" = set; then
22557 echo "$as_me:$LINENO: checking for tiffio.h" >&5
22558echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
22559if test "${ac_cv_header_tiffio_h+set}" = set; then
22560 echo $ECHO_N "(cached) $ECHO_C" >&6
22561fi
22562echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
22563echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
22564else
22565 # Is the header compilable?
22566echo "$as_me:$LINENO: checking tiffio.h usability" >&5
22567echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6
22568cat >conftest.$ac_ext <<_ACEOF
22569/* confdefs.h. */
22570_ACEOF
22571cat confdefs.h >>conftest.$ac_ext
22572cat >>conftest.$ac_ext <<_ACEOF
22573/* end confdefs.h. */
22574$ac_includes_default
22575#include <tiffio.h>
22576_ACEOF
22577rm -f conftest.$ac_objext
22578if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22579 (eval $ac_compile) 2>conftest.er1
a848cd7e 22580 ac_status=$?
ac1cb8d3
VS
22581 grep -v '^ *+' conftest.er1 >conftest.err
22582 rm -f conftest.er1
22583 cat conftest.err >&5
a848cd7e
SC
22584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22585 (exit $ac_status); } &&
89be85c2
VS
22586 { ac_try='test -z "$ac_c_werror_flag"
22587 || test ! -s conftest.err'
ac1cb8d3
VS
22588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22589 (eval $ac_try) 2>&5
22590 ac_status=$?
22591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22592 (exit $ac_status); }; } &&
22593 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22595 (eval $ac_try) 2>&5
22596 ac_status=$?
22597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22598 (exit $ac_status); }; }; then
22599 ac_header_compiler=yes
22600else
22601 echo "$as_me: failed program was:" >&5
22602sed 's/^/| /' conftest.$ac_ext >&5
22603
22604ac_header_compiler=no
22605fi
ac1cb8d3 22606rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22607echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22608echo "${ECHO_T}$ac_header_compiler" >&6
22609
22610# Is the header present?
22611echo "$as_me:$LINENO: checking tiffio.h presence" >&5
22612echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6
22613cat >conftest.$ac_ext <<_ACEOF
22614/* confdefs.h. */
22615_ACEOF
22616cat confdefs.h >>conftest.$ac_ext
22617cat >>conftest.$ac_ext <<_ACEOF
22618/* end confdefs.h. */
22619#include <tiffio.h>
22620_ACEOF
22621if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22622 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22623 ac_status=$?
22624 grep -v '^ *+' conftest.er1 >conftest.err
22625 rm -f conftest.er1
22626 cat conftest.err >&5
22627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22628 (exit $ac_status); } >/dev/null; then
22629 if test -s conftest.err; then
22630 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 22631 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
22632 else
22633 ac_cpp_err=
22634 fi
22635else
22636 ac_cpp_err=yes
22637fi
22638if test -z "$ac_cpp_err"; then
22639 ac_header_preproc=yes
22640else
22641 echo "$as_me: failed program was:" >&5
22642sed 's/^/| /' conftest.$ac_ext >&5
22643
22644 ac_header_preproc=no
22645fi
22646rm -f conftest.err conftest.$ac_ext
22647echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22648echo "${ECHO_T}$ac_header_preproc" >&6
22649
22650# So? What about this header?
ac1cb8d3
VS
22651case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22652 yes:no: )
a848cd7e
SC
22653 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
22654echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
22655 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5
22656echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;}
22657 ac_header_preproc=yes
a848cd7e 22658 ;;
ac1cb8d3 22659 no:yes:* )
a848cd7e
SC
22660 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
22661echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
22662 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
22663echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
22664 { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
22665echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
22666 { echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
22667echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
22668 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
22669echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
22670 { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
22671echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
22672 (
22673 cat <<\_ASBOX
ac1cb8d3
VS
22674## ----------------------------------------- ##
22675## Report this to wx-dev@lists.wxwidgets.org ##
22676## ----------------------------------------- ##
a848cd7e
SC
22677_ASBOX
22678 ) |
22679 sed "s/^/$as_me: WARNING: /" >&2
22680 ;;
22681esac
22682echo "$as_me:$LINENO: checking for tiffio.h" >&5
22683echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
22684if test "${ac_cv_header_tiffio_h+set}" = set; then
22685 echo $ECHO_N "(cached) $ECHO_C" >&6
22686else
22687 ac_cv_header_tiffio_h=$ac_header_preproc
22688fi
22689echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
22690echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
22691
22692fi
22693if test $ac_cv_header_tiffio_h = yes; then
22694
22695 echo "$as_me:$LINENO: checking for TIFFError in -ltiff" >&5
22696echo $ECHO_N "checking for TIFFError in -ltiff... $ECHO_C" >&6
22697if test "${ac_cv_lib_tiff_TIFFError+set}" = set; then
22698 echo $ECHO_N "(cached) $ECHO_C" >&6
22699else
22700 ac_check_lib_save_LIBS=$LIBS
22701LIBS="-ltiff $TIFF_PREREQ_LINKS $LIBS"
22702cat >conftest.$ac_ext <<_ACEOF
22703/* confdefs.h. */
22704_ACEOF
22705cat confdefs.h >>conftest.$ac_ext
22706cat >>conftest.$ac_ext <<_ACEOF
22707/* end confdefs.h. */
22708
22709/* Override any gcc2 internal prototype to avoid an error. */
22710#ifdef __cplusplus
22711extern "C"
22712#endif
22713/* We use char because int might match the return type of a gcc2
22714 builtin and then its argument prototype would still apply. */
22715char TIFFError ();
22716int
22717main ()
22718{
22719TIFFError ();
22720 ;
22721 return 0;
22722}
22723_ACEOF
22724rm -f conftest.$ac_objext conftest$ac_exeext
22725if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 22726 (eval $ac_link) 2>conftest.er1
a848cd7e 22727 ac_status=$?
ac1cb8d3
VS
22728 grep -v '^ *+' conftest.er1 >conftest.err
22729 rm -f conftest.er1
22730 cat conftest.err >&5
a848cd7e
SC
22731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22732 (exit $ac_status); } &&
89be85c2
VS
22733 { ac_try='test -z "$ac_c_werror_flag"
22734 || test ! -s conftest.err'
ac1cb8d3
VS
22735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22736 (eval $ac_try) 2>&5
22737 ac_status=$?
22738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22739 (exit $ac_status); }; } &&
22740 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
22741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22742 (eval $ac_try) 2>&5
22743 ac_status=$?
22744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22745 (exit $ac_status); }; }; then
22746 ac_cv_lib_tiff_TIFFError=yes
22747else
22748 echo "$as_me: failed program was:" >&5
22749sed 's/^/| /' conftest.$ac_ext >&5
22750
22751ac_cv_lib_tiff_TIFFError=no
22752fi
ac1cb8d3
VS
22753rm -f conftest.err conftest.$ac_objext \
22754 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
22755LIBS=$ac_check_lib_save_LIBS
22756fi
22757echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFError" >&5
22758echo "${ECHO_T}$ac_cv_lib_tiff_TIFFError" >&6
22759if test $ac_cv_lib_tiff_TIFFError = yes; then
22760 TIFF_LINK=" -ltiff"
22761fi
22762
22763
22764
22765fi
22766
22767
22768
22769 if test "x$TIFF_LINK" = "x" ; then
22770 if test "$wxUSE_LIBTIFF" = "sys" ; then
22771 { { echo "$as_me:$LINENO: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&5
22772echo "$as_me: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&2;}
22773 { (exit 1); exit 1; }; }
22774 else
22775 { echo "$as_me:$LINENO: WARNING: system tiff library not found, will use built-in instead" >&5
22776echo "$as_me: WARNING: system tiff library not found, will use built-in instead" >&2;}
22777 wxUSE_LIBTIFF=builtin
22778 fi
22779 else
22780 wxUSE_LIBTIFF=sys
22781 fi
22782 fi
22783fi
22784
22785
22786if test "$wxUSE_EXPAT" != "no"; then
22787 wxUSE_XML=yes
22788 cat >>confdefs.h <<\_ACEOF
22789#define wxUSE_EXPAT 1
22790_ACEOF
22791
22792 cat >>confdefs.h <<\_ACEOF
22793#define wxUSE_XML 1
22794_ACEOF
22795
22796
22797 if test "$wxUSE_EXPAT" = "sys" -o "$wxUSE_EXPAT" = "yes" ; then
22798 if test "${ac_cv_header_expat_h+set}" = set; then
22799 echo "$as_me:$LINENO: checking for expat.h" >&5
22800echo $ECHO_N "checking for expat.h... $ECHO_C" >&6
22801if test "${ac_cv_header_expat_h+set}" = set; then
22802 echo $ECHO_N "(cached) $ECHO_C" >&6
22803fi
22804echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5
22805echo "${ECHO_T}$ac_cv_header_expat_h" >&6
22806else
22807 # Is the header compilable?
22808echo "$as_me:$LINENO: checking expat.h usability" >&5
22809echo $ECHO_N "checking expat.h usability... $ECHO_C" >&6
22810cat >conftest.$ac_ext <<_ACEOF
22811/* confdefs.h. */
22812_ACEOF
22813cat confdefs.h >>conftest.$ac_ext
22814cat >>conftest.$ac_ext <<_ACEOF
22815/* end confdefs.h. */
22816$ac_includes_default
22817#include <expat.h>
22818_ACEOF
22819rm -f conftest.$ac_objext
22820if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22821 (eval $ac_compile) 2>conftest.er1
a848cd7e 22822 ac_status=$?
ac1cb8d3
VS
22823 grep -v '^ *+' conftest.er1 >conftest.err
22824 rm -f conftest.er1
22825 cat conftest.err >&5
a848cd7e
SC
22826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22827 (exit $ac_status); } &&
89be85c2
VS
22828 { ac_try='test -z "$ac_c_werror_flag"
22829 || test ! -s conftest.err'
ac1cb8d3
VS
22830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22831 (eval $ac_try) 2>&5
22832 ac_status=$?
22833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22834 (exit $ac_status); }; } &&
22835 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22837 (eval $ac_try) 2>&5
22838 ac_status=$?
22839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22840 (exit $ac_status); }; }; then
22841 ac_header_compiler=yes
22842else
22843 echo "$as_me: failed program was:" >&5
22844sed 's/^/| /' conftest.$ac_ext >&5
22845
22846ac_header_compiler=no
22847fi
ac1cb8d3 22848rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22849echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22850echo "${ECHO_T}$ac_header_compiler" >&6
22851
22852# Is the header present?
22853echo "$as_me:$LINENO: checking expat.h presence" >&5
22854echo $ECHO_N "checking expat.h presence... $ECHO_C" >&6
22855cat >conftest.$ac_ext <<_ACEOF
22856/* confdefs.h. */
22857_ACEOF
22858cat confdefs.h >>conftest.$ac_ext
22859cat >>conftest.$ac_ext <<_ACEOF
22860/* end confdefs.h. */
22861#include <expat.h>
22862_ACEOF
22863if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22864 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22865 ac_status=$?
22866 grep -v '^ *+' conftest.er1 >conftest.err
22867 rm -f conftest.er1
22868 cat conftest.err >&5
22869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22870 (exit $ac_status); } >/dev/null; then
22871 if test -s conftest.err; then
22872 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 22873 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
22874 else
22875 ac_cpp_err=
22876 fi
22877else
22878 ac_cpp_err=yes
22879fi
22880if test -z "$ac_cpp_err"; then
22881 ac_header_preproc=yes
22882else
22883 echo "$as_me: failed program was:" >&5
22884sed 's/^/| /' conftest.$ac_ext >&5
22885
22886 ac_header_preproc=no
22887fi
22888rm -f conftest.err conftest.$ac_ext
22889echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22890echo "${ECHO_T}$ac_header_preproc" >&6
22891
22892# So? What about this header?
ac1cb8d3
VS
22893case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22894 yes:no: )
a848cd7e
SC
22895 { echo "$as_me:$LINENO: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&5
22896echo "$as_me: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
22897 { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the compiler's result" >&5
22898echo "$as_me: WARNING: expat.h: proceeding with the compiler's result" >&2;}
22899 ac_header_preproc=yes
a848cd7e 22900 ;;
ac1cb8d3 22901 no:yes:* )
a848cd7e
SC
22902 { echo "$as_me:$LINENO: WARNING: expat.h: present but cannot be compiled" >&5
22903echo "$as_me: WARNING: expat.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
22904 { echo "$as_me:$LINENO: WARNING: expat.h: check for missing prerequisite headers?" >&5
22905echo "$as_me: WARNING: expat.h: check for missing prerequisite headers?" >&2;}
22906 { echo "$as_me:$LINENO: WARNING: expat.h: see the Autoconf documentation" >&5
22907echo "$as_me: WARNING: expat.h: see the Autoconf documentation" >&2;}
22908 { echo "$as_me:$LINENO: WARNING: expat.h: section \"Present But Cannot Be Compiled\"" >&5
22909echo "$as_me: WARNING: expat.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
22910 { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the preprocessor's result" >&5
22911echo "$as_me: WARNING: expat.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
22912 { echo "$as_me:$LINENO: WARNING: expat.h: in the future, the compiler will take precedence" >&5
22913echo "$as_me: WARNING: expat.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
22914 (
22915 cat <<\_ASBOX
ac1cb8d3
VS
22916## ----------------------------------------- ##
22917## Report this to wx-dev@lists.wxwidgets.org ##
22918## ----------------------------------------- ##
a848cd7e
SC
22919_ASBOX
22920 ) |
22921 sed "s/^/$as_me: WARNING: /" >&2
22922 ;;
22923esac
22924echo "$as_me:$LINENO: checking for expat.h" >&5
22925echo $ECHO_N "checking for expat.h... $ECHO_C" >&6
22926if test "${ac_cv_header_expat_h+set}" = set; then
22927 echo $ECHO_N "(cached) $ECHO_C" >&6
22928else
22929 ac_cv_header_expat_h=$ac_header_preproc
22930fi
22931echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5
22932echo "${ECHO_T}$ac_cv_header_expat_h" >&6
22933
22934fi
22935if test $ac_cv_header_expat_h = yes; then
22936 found_expat_h=1
22937fi
22938
22939
22940 if test "x$found_expat_h" = "x1"; then
22941 echo "$as_me:$LINENO: checking if expat.h is valid C++ header" >&5
22942echo $ECHO_N "checking if expat.h is valid C++ header... $ECHO_C" >&6
22943if test "${wx_cv_expat_is_not_broken+set}" = set; then
22944 echo $ECHO_N "(cached) $ECHO_C" >&6
22945else
22946
22947
22948
22949 ac_ext=cc
22950ac_cpp='$CXXCPP $CPPFLAGS'
22951ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22952ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22953ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22954
22955 cat >conftest.$ac_ext <<_ACEOF
22956/* confdefs.h. */
22957_ACEOF
22958cat confdefs.h >>conftest.$ac_ext
22959cat >>conftest.$ac_ext <<_ACEOF
22960/* end confdefs.h. */
22961#include <expat.h>
22962int
22963main ()
22964{
22965
22966 ;
22967 return 0;
22968}
22969_ACEOF
22970rm -f conftest.$ac_objext
22971if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22972 (eval $ac_compile) 2>conftest.er1
a848cd7e 22973 ac_status=$?
ac1cb8d3
VS
22974 grep -v '^ *+' conftest.er1 >conftest.err
22975 rm -f conftest.er1
22976 cat conftest.err >&5
a848cd7e
SC
22977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22978 (exit $ac_status); } &&
89be85c2
VS
22979 { ac_try='test -z "$ac_cxx_werror_flag"
22980 || test ! -s conftest.err'
ac1cb8d3
VS
22981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22982 (eval $ac_try) 2>&5
22983 ac_status=$?
22984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22985 (exit $ac_status); }; } &&
22986 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22988 (eval $ac_try) 2>&5
22989 ac_status=$?
22990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22991 (exit $ac_status); }; }; then
22992 wx_cv_expat_is_not_broken=yes
22993else
22994 echo "$as_me: failed program was:" >&5
22995sed 's/^/| /' conftest.$ac_ext >&5
22996
22997wx_cv_expat_is_not_broken=no
22998
22999fi
ac1cb8d3 23000rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
23001 ac_ext=c
23002ac_cpp='$CPP $CPPFLAGS'
23003ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23004ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23005ac_compiler_gnu=$ac_cv_c_compiler_gnu
23006
23007
23008
23009fi
23010echo "$as_me:$LINENO: result: $wx_cv_expat_is_not_broken" >&5
23011echo "${ECHO_T}$wx_cv_expat_is_not_broken" >&6
23012 if test "$wx_cv_expat_is_not_broken" = "yes" ; then
23013 echo "$as_me:$LINENO: checking for XML_ParserCreate in -lexpat" >&5
23014echo $ECHO_N "checking for XML_ParserCreate in -lexpat... $ECHO_C" >&6
23015if test "${ac_cv_lib_expat_XML_ParserCreate+set}" = set; then
23016 echo $ECHO_N "(cached) $ECHO_C" >&6
23017else
23018 ac_check_lib_save_LIBS=$LIBS
23019LIBS="-lexpat $LIBS"
23020cat >conftest.$ac_ext <<_ACEOF
23021/* confdefs.h. */
23022_ACEOF
23023cat confdefs.h >>conftest.$ac_ext
23024cat >>conftest.$ac_ext <<_ACEOF
23025/* end confdefs.h. */
23026
23027/* Override any gcc2 internal prototype to avoid an error. */
23028#ifdef __cplusplus
23029extern "C"
23030#endif
23031/* We use char because int might match the return type of a gcc2
23032 builtin and then its argument prototype would still apply. */
23033char XML_ParserCreate ();
23034int
23035main ()
23036{
23037XML_ParserCreate ();
23038 ;
23039 return 0;
23040}
23041_ACEOF
23042rm -f conftest.$ac_objext conftest$ac_exeext
23043if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 23044 (eval $ac_link) 2>conftest.er1
a848cd7e 23045 ac_status=$?
ac1cb8d3
VS
23046 grep -v '^ *+' conftest.er1 >conftest.err
23047 rm -f conftest.er1
23048 cat conftest.err >&5
a848cd7e
SC
23049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23050 (exit $ac_status); } &&
89be85c2
VS
23051 { ac_try='test -z "$ac_c_werror_flag"
23052 || test ! -s conftest.err'
ac1cb8d3
VS
23053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23054 (eval $ac_try) 2>&5
23055 ac_status=$?
23056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23057 (exit $ac_status); }; } &&
23058 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
23059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23060 (eval $ac_try) 2>&5
23061 ac_status=$?
23062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23063 (exit $ac_status); }; }; then
23064 ac_cv_lib_expat_XML_ParserCreate=yes
23065else
23066 echo "$as_me: failed program was:" >&5
23067sed 's/^/| /' conftest.$ac_ext >&5
23068
23069ac_cv_lib_expat_XML_ParserCreate=no
23070fi
ac1cb8d3
VS
23071rm -f conftest.err conftest.$ac_objext \
23072 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
23073LIBS=$ac_check_lib_save_LIBS
23074fi
23075echo "$as_me:$LINENO: result: $ac_cv_lib_expat_XML_ParserCreate" >&5
23076echo "${ECHO_T}$ac_cv_lib_expat_XML_ParserCreate" >&6
23077if test $ac_cv_lib_expat_XML_ParserCreate = yes; then
23078 EXPAT_LINK=" -lexpat"
23079fi
23080
23081 fi
23082 fi
23083 if test "x$EXPAT_LINK" = "x" ; then
23084 if test "$wxUSE_EXPAT" = "sys" ; then
23085 { { echo "$as_me:$LINENO: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&5
23086echo "$as_me: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&2;}
23087 { (exit 1); exit 1; }; }
23088 else
23089 { echo "$as_me:$LINENO: WARNING: system expat library not found, will use built-in instead" >&5
23090echo "$as_me: WARNING: system expat library not found, will use built-in instead" >&2;}
23091 wxUSE_EXPAT=builtin
23092 fi
23093 else
23094 wxUSE_EXPAT=sys
23095 fi
23096 fi
23097 if test "$wxUSE_EXPAT" = "builtin" ; then
23098
23099
23100subdirs="$subdirs src/expat"
23101
23102 fi
23103fi
23104
23105
23106
23107if test "$wxUSE_LIBMSPACK" != "no"; then
a848cd7e
SC
23108 if test "${ac_cv_header_mspack_h+set}" = set; then
23109 echo "$as_me:$LINENO: checking for mspack.h" >&5
23110echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6
23111if test "${ac_cv_header_mspack_h+set}" = set; then
23112 echo $ECHO_N "(cached) $ECHO_C" >&6
23113fi
23114echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5
23115echo "${ECHO_T}$ac_cv_header_mspack_h" >&6
23116else
23117 # Is the header compilable?
23118echo "$as_me:$LINENO: checking mspack.h usability" >&5
23119echo $ECHO_N "checking mspack.h usability... $ECHO_C" >&6
23120cat >conftest.$ac_ext <<_ACEOF
23121/* confdefs.h. */
23122_ACEOF
23123cat confdefs.h >>conftest.$ac_ext
23124cat >>conftest.$ac_ext <<_ACEOF
23125/* end confdefs.h. */
23126$ac_includes_default
23127#include <mspack.h>
23128_ACEOF
23129rm -f conftest.$ac_objext
23130if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23131 (eval $ac_compile) 2>conftest.er1
a848cd7e 23132 ac_status=$?
ac1cb8d3
VS
23133 grep -v '^ *+' conftest.er1 >conftest.err
23134 rm -f conftest.er1
23135 cat conftest.err >&5
a848cd7e
SC
23136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23137 (exit $ac_status); } &&
89be85c2
VS
23138 { ac_try='test -z "$ac_c_werror_flag"
23139 || test ! -s conftest.err'
ac1cb8d3
VS
23140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23141 (eval $ac_try) 2>&5
23142 ac_status=$?
23143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23144 (exit $ac_status); }; } &&
23145 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
23146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23147 (eval $ac_try) 2>&5
23148 ac_status=$?
23149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23150 (exit $ac_status); }; }; then
23151 ac_header_compiler=yes
23152else
23153 echo "$as_me: failed program was:" >&5
23154sed 's/^/| /' conftest.$ac_ext >&5
23155
23156ac_header_compiler=no
23157fi
ac1cb8d3 23158rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
23159echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23160echo "${ECHO_T}$ac_header_compiler" >&6
23161
23162# Is the header present?
23163echo "$as_me:$LINENO: checking mspack.h presence" >&5
23164echo $ECHO_N "checking mspack.h presence... $ECHO_C" >&6
23165cat >conftest.$ac_ext <<_ACEOF
23166/* confdefs.h. */
23167_ACEOF
23168cat confdefs.h >>conftest.$ac_ext
23169cat >>conftest.$ac_ext <<_ACEOF
23170/* end confdefs.h. */
23171#include <mspack.h>
23172_ACEOF
23173if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23174 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23175 ac_status=$?
23176 grep -v '^ *+' conftest.er1 >conftest.err
23177 rm -f conftest.er1
23178 cat conftest.err >&5
23179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23180 (exit $ac_status); } >/dev/null; then
23181 if test -s conftest.err; then
23182 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 23183 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
23184 else
23185 ac_cpp_err=
23186 fi
23187else
23188 ac_cpp_err=yes
23189fi
23190if test -z "$ac_cpp_err"; then
23191 ac_header_preproc=yes
23192else
23193 echo "$as_me: failed program was:" >&5
23194sed 's/^/| /' conftest.$ac_ext >&5
23195
23196 ac_header_preproc=no
23197fi
23198rm -f conftest.err conftest.$ac_ext
23199echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23200echo "${ECHO_T}$ac_header_preproc" >&6
23201
23202# So? What about this header?
ac1cb8d3
VS
23203case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23204 yes:no: )
a848cd7e
SC
23205 { echo "$as_me:$LINENO: WARNING: mspack.h: accepted by the compiler, rejected by the preprocessor!" >&5
23206echo "$as_me: WARNING: mspack.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
23207 { echo "$as_me:$LINENO: WARNING: mspack.h: proceeding with the compiler's result" >&5
23208echo "$as_me: WARNING: mspack.h: proceeding with the compiler's result" >&2;}
23209 ac_header_preproc=yes
a848cd7e 23210 ;;
ac1cb8d3 23211 no:yes:* )
a848cd7e
SC
23212 { echo "$as_me:$LINENO: WARNING: mspack.h: present but cannot be compiled" >&5
23213echo "$as_me: WARNING: mspack.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
23214 { echo "$as_me:$LINENO: WARNING: mspack.h: check for missing prerequisite headers?" >&5
23215echo "$as_me: WARNING: mspack.h: check for missing prerequisite headers?" >&2;}
23216 { echo "$as_me:$LINENO: WARNING: mspack.h: see the Autoconf documentation" >&5
23217echo "$as_me: WARNING: mspack.h: see the Autoconf documentation" >&2;}
23218 { echo "$as_me:$LINENO: WARNING: mspack.h: section \"Present But Cannot Be Compiled\"" >&5
23219echo "$as_me: WARNING: mspack.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
23220 { echo "$as_me:$LINENO: WARNING: mspack.h: proceeding with the preprocessor's result" >&5
23221echo "$as_me: WARNING: mspack.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
23222 { echo "$as_me:$LINENO: WARNING: mspack.h: in the future, the compiler will take precedence" >&5
23223echo "$as_me: WARNING: mspack.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
23224 (
23225 cat <<\_ASBOX
ac1cb8d3
VS
23226## ----------------------------------------- ##
23227## Report this to wx-dev@lists.wxwidgets.org ##
23228## ----------------------------------------- ##
a848cd7e
SC
23229_ASBOX
23230 ) |
23231 sed "s/^/$as_me: WARNING: /" >&2
23232 ;;
23233esac
23234echo "$as_me:$LINENO: checking for mspack.h" >&5
23235echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6
23236if test "${ac_cv_header_mspack_h+set}" = set; then
23237 echo $ECHO_N "(cached) $ECHO_C" >&6
23238else
23239 ac_cv_header_mspack_h=$ac_header_preproc
23240fi
23241echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5
23242echo "${ECHO_T}$ac_cv_header_mspack_h" >&6
23243
23244fi
23245if test $ac_cv_header_mspack_h = yes; then
23246 found_mspack_h=1
23247fi
23248
23249
23250 if test "x$found_mspack_h" = "x1"; then
23251 echo "$as_me:$LINENO: checking for mspack_create_chm_decompressor in -lmspack" >&5
23252echo $ECHO_N "checking for mspack_create_chm_decompressor in -lmspack... $ECHO_C" >&6
23253if test "${ac_cv_lib_mspack_mspack_create_chm_decompressor+set}" = set; then
23254 echo $ECHO_N "(cached) $ECHO_C" >&6
23255else
23256 ac_check_lib_save_LIBS=$LIBS
23257LIBS="-lmspack $LIBS"
23258cat >conftest.$ac_ext <<_ACEOF
23259/* confdefs.h. */
23260_ACEOF
23261cat confdefs.h >>conftest.$ac_ext
23262cat >>conftest.$ac_ext <<_ACEOF
23263/* end confdefs.h. */
23264
23265/* Override any gcc2 internal prototype to avoid an error. */
23266#ifdef __cplusplus
23267extern "C"
23268#endif
23269/* We use char because int might match the return type of a gcc2
23270 builtin and then its argument prototype would still apply. */
23271char mspack_create_chm_decompressor ();
23272int
23273main ()
23274{
23275mspack_create_chm_decompressor ();
23276 ;
23277 return 0;
23278}
23279_ACEOF
23280rm -f conftest.$ac_objext conftest$ac_exeext
23281if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 23282 (eval $ac_link) 2>conftest.er1
a848cd7e 23283 ac_status=$?
ac1cb8d3
VS
23284 grep -v '^ *+' conftest.er1 >conftest.err
23285 rm -f conftest.er1
23286 cat conftest.err >&5
a848cd7e
SC
23287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23288 (exit $ac_status); } &&
89be85c2
VS
23289 { ac_try='test -z "$ac_c_werror_flag"
23290 || test ! -s conftest.err'
ac1cb8d3
VS
23291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23292 (eval $ac_try) 2>&5
23293 ac_status=$?
23294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23295 (exit $ac_status); }; } &&
23296 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
23297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23298 (eval $ac_try) 2>&5
23299 ac_status=$?
23300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23301 (exit $ac_status); }; }; then
23302 ac_cv_lib_mspack_mspack_create_chm_decompressor=yes
23303else
23304 echo "$as_me: failed program was:" >&5
23305sed 's/^/| /' conftest.$ac_ext >&5
23306
23307ac_cv_lib_mspack_mspack_create_chm_decompressor=no
23308fi
ac1cb8d3
VS
23309rm -f conftest.err conftest.$ac_objext \
23310 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
23311LIBS=$ac_check_lib_save_LIBS
23312fi
23313echo "$as_me:$LINENO: result: $ac_cv_lib_mspack_mspack_create_chm_decompressor" >&5
23314echo "${ECHO_T}$ac_cv_lib_mspack_mspack_create_chm_decompressor" >&6
23315if test $ac_cv_lib_mspack_mspack_create_chm_decompressor = yes; then
23316 MSPACK_LINK=" -lmspack"
23317fi
23318
23319 fi
23320 if test "x$MSPACK_LINK" = "x" ; then
23321 wxUSE_LIBMSPACK=no
dd3a2d96
VZ
23322 fi
23323fi
23324
23325if test "$wxUSE_LIBMSPACK" != "no"; then
23326 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
23327#define wxUSE_LIBMSPACK 1
23328_ACEOF
23329
a848cd7e
SC
23330fi
23331
23332
23333
23334AFMINSTALL=
23335WIN32INSTALL=
23336
23337TOOLKIT=
23338TOOLKIT_INCLUDE=
23339WIDGET_SET=
23340
23341if test "$USE_WIN32" = 1 ; then
23342
23343for ac_header in w32api.h
23344do
23345as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23346if eval "test \"\${$as_ac_Header+set}\" = set"; then
23347 echo "$as_me:$LINENO: checking for $ac_header" >&5
23348echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
23349if eval "test \"\${$as_ac_Header+set}\" = set"; then
23350 echo $ECHO_N "(cached) $ECHO_C" >&6
23351fi
23352echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
23353echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
23354else
23355 # Is the header compilable?
23356echo "$as_me:$LINENO: checking $ac_header usability" >&5
23357echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
23358cat >conftest.$ac_ext <<_ACEOF
23359/* confdefs.h. */
23360_ACEOF
23361cat confdefs.h >>conftest.$ac_ext
23362cat >>conftest.$ac_ext <<_ACEOF
23363/* end confdefs.h. */
23364$ac_includes_default
23365#include <$ac_header>
23366_ACEOF
23367rm -f conftest.$ac_objext
23368if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23369 (eval $ac_compile) 2>conftest.er1
a848cd7e 23370 ac_status=$?
ac1cb8d3
VS
23371 grep -v '^ *+' conftest.er1 >conftest.err
23372 rm -f conftest.er1
23373 cat conftest.err >&5
a848cd7e
SC
23374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23375 (exit $ac_status); } &&
89be85c2
VS
23376 { ac_try='test -z "$ac_c_werror_flag"
23377 || test ! -s conftest.err'
ac1cb8d3
VS
23378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23379 (eval $ac_try) 2>&5
23380 ac_status=$?
23381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23382 (exit $ac_status); }; } &&
23383 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
23384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23385 (eval $ac_try) 2>&5
23386 ac_status=$?
23387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23388 (exit $ac_status); }; }; then
23389 ac_header_compiler=yes
23390else
23391 echo "$as_me: failed program was:" >&5
23392sed 's/^/| /' conftest.$ac_ext >&5
23393
23394ac_header_compiler=no
23395fi
ac1cb8d3 23396rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
23397echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23398echo "${ECHO_T}$ac_header_compiler" >&6
23399
23400# Is the header present?
23401echo "$as_me:$LINENO: checking $ac_header presence" >&5
23402echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
23403cat >conftest.$ac_ext <<_ACEOF
23404/* confdefs.h. */
23405_ACEOF
23406cat confdefs.h >>conftest.$ac_ext
23407cat >>conftest.$ac_ext <<_ACEOF
23408/* end confdefs.h. */
23409#include <$ac_header>
23410_ACEOF
23411if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23412 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23413 ac_status=$?
23414 grep -v '^ *+' conftest.er1 >conftest.err
23415 rm -f conftest.er1
23416 cat conftest.err >&5
23417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23418 (exit $ac_status); } >/dev/null; then
23419 if test -s conftest.err; then
23420 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 23421 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
23422 else
23423 ac_cpp_err=
23424 fi
23425else
23426 ac_cpp_err=yes
23427fi
23428if test -z "$ac_cpp_err"; then
23429 ac_header_preproc=yes
23430else
23431 echo "$as_me: failed program was:" >&5
23432sed 's/^/| /' conftest.$ac_ext >&5
23433
23434 ac_header_preproc=no
23435fi
23436rm -f conftest.err conftest.$ac_ext
23437echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23438echo "${ECHO_T}$ac_header_preproc" >&6
23439
23440# So? What about this header?
ac1cb8d3
VS
23441case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23442 yes:no: )
a848cd7e
SC
23443 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23444echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
23445 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23446echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23447 ac_header_preproc=yes
a848cd7e 23448 ;;
ac1cb8d3 23449 no:yes:* )
a848cd7e
SC
23450 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23451echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
23452 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23453echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23454 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23455echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23456 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23457echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
23458 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23459echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
23460 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23461echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
23462 (
23463 cat <<\_ASBOX
ac1cb8d3
VS
23464## ----------------------------------------- ##
23465## Report this to wx-dev@lists.wxwidgets.org ##
23466## ----------------------------------------- ##
a848cd7e
SC
23467_ASBOX
23468 ) |
23469 sed "s/^/$as_me: WARNING: /" >&2
23470 ;;
23471esac
23472echo "$as_me:$LINENO: checking for $ac_header" >&5
23473echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
23474if eval "test \"\${$as_ac_Header+set}\" = set"; then
23475 echo $ECHO_N "(cached) $ECHO_C" >&6
23476else
ac1cb8d3 23477 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
23478fi
23479echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
23480echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
23481
23482fi
23483if test `eval echo '${'$as_ac_Header'}'` = yes; then
23484 cat >>confdefs.h <<_ACEOF
23485#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23486_ACEOF
23487
23488fi
23489
23490done
23491
23492 if test "${ac_cv_header_windows_h+set}" = set; then
23493 echo "$as_me:$LINENO: checking for windows.h" >&5
23494echo $ECHO_N "checking for windows.h... $ECHO_C" >&6
23495if test "${ac_cv_header_windows_h+set}" = set; then
23496 echo $ECHO_N "(cached) $ECHO_C" >&6
23497fi
23498echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
23499echo "${ECHO_T}$ac_cv_header_windows_h" >&6
23500else
23501 # Is the header compilable?
23502echo "$as_me:$LINENO: checking windows.h usability" >&5
23503echo $ECHO_N "checking windows.h usability... $ECHO_C" >&6
23504cat >conftest.$ac_ext <<_ACEOF
23505/* confdefs.h. */
23506_ACEOF
23507cat confdefs.h >>conftest.$ac_ext
23508cat >>conftest.$ac_ext <<_ACEOF
23509/* end confdefs.h. */
23510$ac_includes_default
23511#include <windows.h>
23512_ACEOF
23513rm -f conftest.$ac_objext
23514if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23515 (eval $ac_compile) 2>conftest.er1
a848cd7e 23516 ac_status=$?
ac1cb8d3
VS
23517 grep -v '^ *+' conftest.er1 >conftest.err
23518 rm -f conftest.er1
23519 cat conftest.err >&5
a848cd7e
SC
23520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23521 (exit $ac_status); } &&
89be85c2
VS
23522 { ac_try='test -z "$ac_c_werror_flag"
23523 || test ! -s conftest.err'
ac1cb8d3
VS
23524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23525 (eval $ac_try) 2>&5
23526 ac_status=$?
23527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23528 (exit $ac_status); }; } &&
23529 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
23530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23531 (eval $ac_try) 2>&5
23532 ac_status=$?
23533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23534 (exit $ac_status); }; }; then
23535 ac_header_compiler=yes
23536else
23537 echo "$as_me: failed program was:" >&5
23538sed 's/^/| /' conftest.$ac_ext >&5
23539
23540ac_header_compiler=no
23541fi
ac1cb8d3 23542rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
23543echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23544echo "${ECHO_T}$ac_header_compiler" >&6
23545
23546# Is the header present?
23547echo "$as_me:$LINENO: checking windows.h presence" >&5
23548echo $ECHO_N "checking windows.h presence... $ECHO_C" >&6
23549cat >conftest.$ac_ext <<_ACEOF
23550/* confdefs.h. */
23551_ACEOF
23552cat confdefs.h >>conftest.$ac_ext
23553cat >>conftest.$ac_ext <<_ACEOF
23554/* end confdefs.h. */
23555#include <windows.h>
23556_ACEOF
23557if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23558 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23559 ac_status=$?
23560 grep -v '^ *+' conftest.er1 >conftest.err
23561 rm -f conftest.er1
23562 cat conftest.err >&5
23563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23564 (exit $ac_status); } >/dev/null; then
23565 if test -s conftest.err; then
23566 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 23567 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
23568 else
23569 ac_cpp_err=
23570 fi
23571else
23572 ac_cpp_err=yes
23573fi
23574if test -z "$ac_cpp_err"; then
23575 ac_header_preproc=yes
23576else
23577 echo "$as_me: failed program was:" >&5
23578sed 's/^/| /' conftest.$ac_ext >&5
23579
23580 ac_header_preproc=no
23581fi
23582rm -f conftest.err conftest.$ac_ext
23583echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23584echo "${ECHO_T}$ac_header_preproc" >&6
23585
23586# So? What about this header?
ac1cb8d3
VS
23587case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23588 yes:no: )
a848cd7e
SC
23589 { echo "$as_me:$LINENO: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&5
23590echo "$as_me: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
23591 { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the compiler's result" >&5
23592echo "$as_me: WARNING: windows.h: proceeding with the compiler's result" >&2;}
23593 ac_header_preproc=yes
a848cd7e 23594 ;;
ac1cb8d3 23595 no:yes:* )
a848cd7e
SC
23596 { echo "$as_me:$LINENO: WARNING: windows.h: present but cannot be compiled" >&5
23597echo "$as_me: WARNING: windows.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
23598 { echo "$as_me:$LINENO: WARNING: windows.h: check for missing prerequisite headers?" >&5
23599echo "$as_me: WARNING: windows.h: check for missing prerequisite headers?" >&2;}
23600 { echo "$as_me:$LINENO: WARNING: windows.h: see the Autoconf documentation" >&5
23601echo "$as_me: WARNING: windows.h: see the Autoconf documentation" >&2;}
23602 { echo "$as_me:$LINENO: WARNING: windows.h: section \"Present But Cannot Be Compiled\"" >&5
23603echo "$as_me: WARNING: windows.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
23604 { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the preprocessor's result" >&5
23605echo "$as_me: WARNING: windows.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
23606 { echo "$as_me:$LINENO: WARNING: windows.h: in the future, the compiler will take precedence" >&5
23607echo "$as_me: WARNING: windows.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
23608 (
23609 cat <<\_ASBOX
ac1cb8d3
VS
23610## ----------------------------------------- ##
23611## Report this to wx-dev@lists.wxwidgets.org ##
23612## ----------------------------------------- ##
a848cd7e
SC
23613_ASBOX
23614 ) |
23615 sed "s/^/$as_me: WARNING: /" >&2
23616 ;;
23617esac
23618echo "$as_me:$LINENO: checking for windows.h" >&5
23619echo $ECHO_N "checking for windows.h... $ECHO_C" >&6
23620if test "${ac_cv_header_windows_h+set}" = set; then
23621 echo $ECHO_N "(cached) $ECHO_C" >&6
23622else
23623 ac_cv_header_windows_h=$ac_header_preproc
23624fi
23625echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
23626echo "${ECHO_T}$ac_cv_header_windows_h" >&6
23627
23628fi
23629if test $ac_cv_header_windows_h = yes; then
23630 :
23631else
23632
23633 { { echo "$as_me:$LINENO: error: please set CFLAGS to contain the location of windows.h" >&5
23634echo "$as_me: error: please set CFLAGS to contain the location of windows.h" >&2;}
23635 { (exit 1); exit 1; }; }
23636
23637fi
23638
23639
23640
23641 LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lcomdlg32 -lctl3d32 -ladvapi32 -lwsock32 -lgdi32"
23642
23643 if test "$wxUSE_ACCESSIBILITY" = "yes" ; then
23644 LIBS="$LIBS -loleacc"
23645 fi
23646
23647 case "${host}" in
23648 *-*-cygwin* )
23649 LIBS="$LIBS -lkernel32 -luser32"
23650 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WIN95__"
23651 esac
23652
23653 if test "$wxUSE_ODBC" = "sys" ; then
23654 wxUSE_ODBC = "yes"
23655 fi
23656 if test "$wxUSE_ODBC" = "yes" ; then
23657 LIBS=" -lodbc32 -lole32 -loleaut32 $LIBS"
23658 cat >>confdefs.h <<\_ACEOF
23659#define wxUSE_ODBC 1
23660_ACEOF
23661
23662 fi
23663
23664 RESFLAGS="--include-dir \$(top_srcdir)/include --include-dir \$(top_srcdir)/\$(program_dir) --define __WIN32__ --define __WIN95__ --define __GNUWIN32__"
23665 RESPROGRAMOBJ="\$(PROGRAM)_resources.o"
23666
23667 WIN32INSTALL=win32install
23668fi
23669
23670if test "$wxUSE_GUI" = "yes"; then
23671 USE_GUI=1
23672
23673 GUI_TK_LIBRARY=
23674
23675 WXGTK12=
23676 WXGTK127=
23677 WXGTK20=
23678 WXGPE=
23679
207bc66c
RN
23680 if test "$wxUSE_COCOA" = 1 ; then
23681 if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes"; then
23682 { echo "$as_me:$LINENO: WARNING: Printing not supported under wxCocoa yet, disabled" >&5
23683echo "$as_me: WARNING: Printing not supported under wxCocoa yet, disabled" >&2;}
23684 wxUSE_PRINTING_ARCHITECTURE=no
23685 fi
23686 if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
23687 { echo "$as_me:$LINENO: WARNING: Drag and Drop not supported under wxCocoa yet, disabled" >&5
23688echo "$as_me: WARNING: Drag and Drop not supported under wxCocoa yet, disabled" >&2;}
23689 wxUSE_DRAG_AND_DROP=no
23690 fi
23691 if test "$wxUSE_DRAGIMAGE" = "yes"; then
23692 { echo "$as_me:$LINENO: WARNING: Drag Image and DandD not supported under wxCocoa yet, disabled" >&5
23693echo "$as_me: WARNING: Drag Image and DandD not supported under wxCocoa yet, disabled" >&2;}
23694 wxUSE_DRAGIMAGE=no
23695 fi
23696 fi
23697
a848cd7e
SC
23698 if test "$wxUSE_MSW" = 1 ; then
23699 TOOLKIT=MSW
23700 GUIDIST=MSW_DIST
23701
ceec2216 23702 case "${host}" in
a848cd7e
SC
23703 *-*-mingw32* )
23704 WXCONFIG_LDFLAGS_GUI="$LDFLAGS -Wl,--subsystem,windows -mwindows"
23705 esac
23706 fi
23707
23708 if test "$wxUSE_GTK" = 1; then
23709 echo "$as_me:$LINENO: checking for GTK+ version" >&5
23710echo $ECHO_N "checking for GTK+ version... $ECHO_C" >&6
23711
23712 gtk_version_cached=1
23713 if test "${wx_cv_lib_gtk+set}" = set; then
23714 echo $ECHO_N "(cached) $ECHO_C" >&6
23715else
23716
23717 gtk_version_cached=0
23718 echo "$as_me:$LINENO: result: " >&5
23719echo "${ECHO_T}" >&6
23720
23721 GTK_MODULES=
23722 if test "$wxUSE_THREADS" = "yes"; then
23723 GTK_MODULES=gthread
23724 fi
23725
23726 wx_cv_lib_gtk=
23727 if test "x$wxUSE_GTK2" = "xyes"; then
23728 # Check whether --enable-gtktest or --disable-gtktest was given.
23729if test "${enable_gtktest+set}" = set; then
23730 enableval="$enable_gtktest"
23731
23732else
23733 enable_gtktest=yes
23734fi;
23735
23736 pkg_config_args=gtk+-2.0
23737 for module in . $GTK_MODULES
23738 do
23739 case "$module" in
23740 gthread)
23741 pkg_config_args="$pkg_config_args gthread-2.0"
23742 ;;
23743 esac
23744 done
23745
23746 no_gtk=""
23747
23748 # Extract the first word of "pkg-config", so it can be a program name with args.
23749set dummy pkg-config; ac_word=$2
23750echo "$as_me:$LINENO: checking for $ac_word" >&5
23751echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
23752if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
23753 echo $ECHO_N "(cached) $ECHO_C" >&6
23754else
23755 case $PKG_CONFIG in
23756 [\\/]* | ?:[\\/]*)
23757 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
23758 ;;
23759 *)
23760 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23761for as_dir in $PATH
23762do
23763 IFS=$as_save_IFS
23764 test -z "$as_dir" && as_dir=.
23765 for ac_exec_ext in '' $ac_executable_extensions; do
23766 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23767 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
23768 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23769 break 2
23770 fi
23771done
23772done
23773
23774 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
23775 ;;
23776esac
23777fi
23778PKG_CONFIG=$ac_cv_path_PKG_CONFIG
23779
23780if test -n "$PKG_CONFIG"; then
23781 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
23782echo "${ECHO_T}$PKG_CONFIG" >&6
23783else
23784 echo "$as_me:$LINENO: result: no" >&5
23785echo "${ECHO_T}no" >&6
23786fi
23787
23788
23789 if test x$PKG_CONFIG != xno ; then
23790 if pkg-config --atleast-pkgconfig-version 0.7 ; then
23791 :
23792 else
c2218763 23793 echo "*** pkg-config too old; version 0.7 or better required."
a848cd7e
SC
23794 no_gtk=yes
23795 PKG_CONFIG=no
23796 fi
23797 else
23798 no_gtk=yes
23799 fi
23800
23801 min_gtk_version=2.0.0
23802 echo "$as_me:$LINENO: checking for GTK+ - version >= $min_gtk_version" >&5
23803echo $ECHO_N "checking for GTK+ - version >= $min_gtk_version... $ECHO_C" >&6
23804
23805 if test x$PKG_CONFIG != xno ; then
23806 ## don't try to run the test against uninstalled libtool libs
23807 if $PKG_CONFIG --uninstalled $pkg_config_args; then
23808 echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH"
23809 enable_gtktest=no
23810 fi
23811
23812 if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then
23813 :
23814 else
23815 no_gtk=yes
23816 fi
23817 fi
23818
23819 if test x"$no_gtk" = x ; then
23820 GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags`
23821 GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs`
23822 gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
23823 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
23824 gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
23825 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
23826 gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
23827 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
23828 if test "x$enable_gtktest" = "xyes" ; then
23829 ac_save_CFLAGS="$CFLAGS"
23830 ac_save_LIBS="$LIBS"
23831 CFLAGS="$CFLAGS $GTK_CFLAGS"
23832 LIBS="$GTK_LIBS $LIBS"
23833 rm -f conf.gtktest
23834 if test "$cross_compiling" = yes; then
23835 echo $ac_n "cross compiling; assumed OK... $ac_c"
23836else
23837 cat >conftest.$ac_ext <<_ACEOF
23838/* confdefs.h. */
23839_ACEOF
23840cat confdefs.h >>conftest.$ac_ext
23841cat >>conftest.$ac_ext <<_ACEOF
23842/* end confdefs.h. */
23843
23844#include <gtk/gtk.h>
23845#include <stdio.h>
23846#include <stdlib.h>
23847
23848int
23849main ()
23850{
23851 int major, minor, micro;
23852 char *tmp_version;
23853
23854 system ("touch conf.gtktest");
23855
23856 /* HP/UX 9 (%@#!) writes to sscanf strings */
23857 tmp_version = g_strdup("$min_gtk_version");
23858 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
23859 printf("%s, bad version string\n", "$min_gtk_version");
23860 exit(1);
23861 }
23862
23863 if ((gtk_major_version != $gtk_config_major_version) ||
23864 (gtk_minor_version != $gtk_config_minor_version) ||
23865 (gtk_micro_version != $gtk_config_micro_version))
23866 {
23867 printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
23868 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
23869 gtk_major_version, gtk_minor_version, gtk_micro_version);
23870 printf ("*** was found! If pkg-config was correct, then it is best\n");
23871 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
23872 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
23873 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
23874 printf("*** required on your system.\n");
23875 printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
23876 printf("*** to point to the correct configuration files\n");
23877 }
23878 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
23879 (gtk_minor_version != GTK_MINOR_VERSION) ||
23880 (gtk_micro_version != GTK_MICRO_VERSION))
23881 {
23882 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
23883 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
23884 printf("*** library (version %d.%d.%d)\n",
23885 gtk_major_version, gtk_minor_version, gtk_micro_version);
23886 }
23887 else
23888 {
23889 if ((gtk_major_version > major) ||
23890 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
23891 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
23892 {
23893 return 0;
23894 }
23895 else
23896 {
23897 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
23898 gtk_major_version, gtk_minor_version, gtk_micro_version);
23899 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
23900 major, minor, micro);
23901 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
23902 printf("***\n");
23903 printf("*** If you have already installed a sufficiently new version, this error\n");
23904 printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
23905 printf("*** being found. The easiest way to fix this is to remove the old version\n");
23906 printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n");
23907 printf("*** correct copy of pkg-config. (In this case, you will have to\n");
23908 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
23909 printf("*** so that the correct libraries are found at run-time))\n");
23910 }
23911 }
23912 return 1;
23913}
23914
23915_ACEOF
23916rm -f conftest$ac_exeext
23917if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23918 (eval $ac_link) 2>&5
23919 ac_status=$?
23920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23921 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23923 (eval $ac_try) 2>&5
23924 ac_status=$?
23925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23926 (exit $ac_status); }; }; then
23927 :
23928else
23929 echo "$as_me: program exited with status $ac_status" >&5
23930echo "$as_me: failed program was:" >&5
23931sed 's/^/| /' conftest.$ac_ext >&5
23932
23933( exit $ac_status )
23934no_gtk=yes
23935fi
ac1cb8d3 23936rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
23937fi
23938 CFLAGS="$ac_save_CFLAGS"
23939 LIBS="$ac_save_LIBS"
23940 fi
23941 fi
23942 if test "x$no_gtk" = x ; then
23943 echo "$as_me:$LINENO: result: yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&5
23944echo "${ECHO_T}yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&6
23945 wx_cv_lib_gtk=2.0
23946 else
23947 echo "$as_me:$LINENO: result: no" >&5
23948echo "${ECHO_T}no" >&6
23949 if test "$PKG_CONFIG" = "no" ; then
23950 echo "*** A new enough version of pkg-config was not found."
23951 echo "*** See http://pkgconfig.sourceforge.net"
23952 else
23953 if test -f conf.gtktest ; then
23954 :
23955 else
23956 echo "*** Could not run GTK+ test program, checking why..."
23957 ac_save_CFLAGS="$CFLAGS"
23958 ac_save_LIBS="$LIBS"
23959 CFLAGS="$CFLAGS $GTK_CFLAGS"
23960 LIBS="$LIBS $GTK_LIBS"
23961 cat >conftest.$ac_ext <<_ACEOF
23962/* confdefs.h. */
23963_ACEOF
23964cat confdefs.h >>conftest.$ac_ext
23965cat >>conftest.$ac_ext <<_ACEOF
23966/* end confdefs.h. */
23967
23968#include <gtk/gtk.h>
23969#include <stdio.h>
23970
23971int
23972main ()
23973{
23974 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
23975 ;
23976 return 0;
23977}
23978_ACEOF
23979rm -f conftest.$ac_objext conftest$ac_exeext
23980if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 23981 (eval $ac_link) 2>conftest.er1
a848cd7e 23982 ac_status=$?
ac1cb8d3
VS
23983 grep -v '^ *+' conftest.er1 >conftest.err
23984 rm -f conftest.er1
23985 cat conftest.err >&5
a848cd7e
SC
23986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23987 (exit $ac_status); } &&
89be85c2
VS
23988 { ac_try='test -z "$ac_c_werror_flag"
23989 || test ! -s conftest.err'
ac1cb8d3
VS
23990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23991 (eval $ac_try) 2>&5
23992 ac_status=$?
23993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23994 (exit $ac_status); }; } &&
23995 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
23996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23997 (eval $ac_try) 2>&5
23998 ac_status=$?
23999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24000 (exit $ac_status); }; }; then
24001 echo "*** The test program compiled, but did not run. This usually means"
24002 echo "*** that the run-time linker is not finding GTK+ or finding the wrong"
24003 echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your"
24004 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
24005 echo "*** to the installed location Also, make sure you have run ldconfig if that"
24006 echo "*** is required on your system"
24007 echo "***"
24008 echo "*** If you have an old version installed, it is best to remove it, although"
24009 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
24010else
24011 echo "$as_me: failed program was:" >&5
24012sed 's/^/| /' conftest.$ac_ext >&5
24013
24014 echo "*** The test program failed to compile or link. See the file config.log for the"
24015 echo "*** exact error that occured. This usually means GTK+ is incorrectly installed."
24016fi
ac1cb8d3
VS
24017rm -f conftest.err conftest.$ac_objext \
24018 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24019 CFLAGS="$ac_save_CFLAGS"
24020 LIBS="$ac_save_LIBS"
24021 fi
24022 fi
24023 GTK_CFLAGS=""
24024 GTK_LIBS=""
24025 :
24026 fi
24027
24028
24029 rm -f conf.gtktest
24030
24031 else
24032
24033# Check whether --with-gtk-prefix or --without-gtk-prefix was given.
24034if test "${with_gtk_prefix+set}" = set; then
24035 withval="$with_gtk_prefix"
24036 gtk_config_prefix="$withval"
24037else
24038 gtk_config_prefix=""
24039fi;
24040
24041# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
24042if test "${with_gtk_exec_prefix+set}" = set; then
24043 withval="$with_gtk_exec_prefix"
24044 gtk_config_exec_prefix="$withval"
24045else
24046 gtk_config_exec_prefix=""
24047fi;
24048# Check whether --enable-gtktest or --disable-gtktest was given.
24049if test "${enable_gtktest+set}" = set; then
24050 enableval="$enable_gtktest"
24051
24052else
24053 enable_gtktest=yes
24054fi;
24055
24056 for module in . $GTK_MODULES
24057 do
24058 case "$module" in
24059 gthread)
24060 gtk_config_args="$gtk_config_args gthread"
24061 ;;
24062 esac
24063 done
24064
24065 if test x$gtk_config_exec_prefix != x ; then
24066 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
24067 if test x${GTK_CONFIG+set} != xset ; then
24068 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
24069 fi
24070 fi
24071 if test x$gtk_config_prefix != x ; then
24072 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
24073 if test x${GTK_CONFIG+set} != xset ; then
24074 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
24075 fi
24076 fi
24077
24078 # Extract the first word of "gtk-config", so it can be a program name with args.
24079set dummy gtk-config; ac_word=$2
24080echo "$as_me:$LINENO: checking for $ac_word" >&5
24081echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24082if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
24083 echo $ECHO_N "(cached) $ECHO_C" >&6
24084else
24085 case $GTK_CONFIG in
24086 [\\/]* | ?:[\\/]*)
24087 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
24088 ;;
24089 *)
24090 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24091for as_dir in $PATH
24092do
24093 IFS=$as_save_IFS
24094 test -z "$as_dir" && as_dir=.
24095 for ac_exec_ext in '' $ac_executable_extensions; do
24096 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24097 ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
24098 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24099 break 2
24100 fi
24101done
24102done
24103
24104 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
24105 ;;
24106esac
24107fi
24108GTK_CONFIG=$ac_cv_path_GTK_CONFIG
24109
24110if test -n "$GTK_CONFIG"; then
24111 echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
24112echo "${ECHO_T}$GTK_CONFIG" >&6
24113else
24114 echo "$as_me:$LINENO: result: no" >&5
24115echo "${ECHO_T}no" >&6
24116fi
24117
24118 min_gtk_version=1.2.7
24119 echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
24120echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6
24121 no_gtk=""
24122 if test "$GTK_CONFIG" = "no" ; then
24123 no_gtk=yes
24124 else
24125 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
24126 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
24127 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
24128 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
24129 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
24130 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
24131 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
24132 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
24133 if test "x$enable_gtktest" = "xyes" ; then
24134 ac_save_CFLAGS="$CFLAGS"
24135 ac_save_LIBS="$LIBS"
24136 CFLAGS="$CFLAGS $GTK_CFLAGS"
24137 LIBS="$GTK_LIBS $LIBS"
24138 rm -f conf.gtktest
24139 if test "$cross_compiling" = yes; then
24140 echo $ac_n "cross compiling; assumed OK... $ac_c"
24141else
24142 cat >conftest.$ac_ext <<_ACEOF
24143/* confdefs.h. */
24144_ACEOF
24145cat confdefs.h >>conftest.$ac_ext
24146cat >>conftest.$ac_ext <<_ACEOF
24147/* end confdefs.h. */
24148
24149#include <gtk/gtk.h>
24150#include <stdio.h>
24151#include <stdlib.h>
24152
24153int
24154main ()
24155{
24156 int major, minor, micro;
24157 char *tmp_version;
24158
24159 system ("touch conf.gtktest");
24160
24161 /* HP/UX 9 (%@#!) writes to sscanf strings */
24162 tmp_version = g_strdup("$min_gtk_version");
24163 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
24164 printf("%s, bad version string\n", "$min_gtk_version");
24165 exit(1);
24166 }
24167
24168 if ((gtk_major_version != $gtk_config_major_version) ||
24169 (gtk_minor_version != $gtk_config_minor_version) ||
24170 (gtk_micro_version != $gtk_config_micro_version))
24171 {
24172 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
24173 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
24174 gtk_major_version, gtk_minor_version, gtk_micro_version);
24175 printf ("*** was found! If gtk-config was correct, then it is best\n");
24176 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
24177 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
24178 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
24179 printf("*** required on your system.\n");
24180 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
24181 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
24182 printf("*** before re-running configure\n");
24183 }
24184#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
24185 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
24186 (gtk_minor_version != GTK_MINOR_VERSION) ||
24187 (gtk_micro_version != GTK_MICRO_VERSION))
24188 {
24189 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
24190 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
24191 printf("*** library (version %d.%d.%d)\n",
24192 gtk_major_version, gtk_minor_version, gtk_micro_version);
24193 }
24194#endif /* defined (GTK_MAJOR_VERSION) ... */
24195 else
24196 {
24197 if ((gtk_major_version > major) ||
24198 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
24199 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
24200 {
24201 return 0;
24202 }
24203 else
24204 {
24205 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
24206 gtk_major_version, gtk_minor_version, gtk_micro_version);
24207 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
24208 major, minor, micro);
24209 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
24210 printf("***\n");
24211 printf("*** If you have already installed a sufficiently new version, this error\n");
24212 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
24213 printf("*** being found. The easiest way to fix this is to remove the old version\n");
24214 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
24215 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
24216 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
24217 printf("*** so that the correct libraries are found at run-time))\n");
24218 }
24219 }
24220 return 1;
24221}
24222
24223_ACEOF
24224rm -f conftest$ac_exeext
24225if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24226 (eval $ac_link) 2>&5
24227 ac_status=$?
24228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24229 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24231 (eval $ac_try) 2>&5
24232 ac_status=$?
24233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24234 (exit $ac_status); }; }; then
24235 :
24236else
24237 echo "$as_me: program exited with status $ac_status" >&5
24238echo "$as_me: failed program was:" >&5
24239sed 's/^/| /' conftest.$ac_ext >&5
24240
24241( exit $ac_status )
24242no_gtk=yes
24243fi
ac1cb8d3 24244rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
24245fi
24246 CFLAGS="$ac_save_CFLAGS"
24247 LIBS="$ac_save_LIBS"
24248 fi
24249 fi
24250 if test "x$no_gtk" = x ; then
24251 echo "$as_me:$LINENO: result: yes" >&5
24252echo "${ECHO_T}yes" >&6
24253 wx_cv_lib_gtk=1.2.7
24254 else
24255 echo "$as_me:$LINENO: result: no" >&5
24256echo "${ECHO_T}no" >&6
24257 if test "$GTK_CONFIG" = "no" ; then
24258 echo "*** The gtk-config script installed by GTK could not be found"
24259 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
24260 echo "*** your path, or set the GTK_CONFIG environment variable to the"
24261 echo "*** full path to gtk-config."
24262 else
24263 if test -f conf.gtktest ; then
24264 :
24265 else
24266 echo "*** Could not run GTK test program, checking why..."
24267 CFLAGS="$CFLAGS $GTK_CFLAGS"
24268 LIBS="$LIBS $GTK_LIBS"
24269 cat >conftest.$ac_ext <<_ACEOF
24270/* confdefs.h. */
24271_ACEOF
24272cat confdefs.h >>conftest.$ac_ext
24273cat >>conftest.$ac_ext <<_ACEOF
24274/* end confdefs.h. */
24275
24276#include <gtk/gtk.h>
24277#include <stdio.h>
24278
24279int
24280main ()
24281{
24282 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
24283 ;
24284 return 0;
24285}
24286_ACEOF
24287rm -f conftest.$ac_objext conftest$ac_exeext
24288if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24289 (eval $ac_link) 2>conftest.er1
a848cd7e 24290 ac_status=$?
ac1cb8d3
VS
24291 grep -v '^ *+' conftest.er1 >conftest.err
24292 rm -f conftest.er1
24293 cat conftest.err >&5
a848cd7e
SC
24294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24295 (exit $ac_status); } &&
89be85c2
VS
24296 { ac_try='test -z "$ac_c_werror_flag"
24297 || test ! -s conftest.err'
ac1cb8d3
VS
24298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24299 (eval $ac_try) 2>&5
24300 ac_status=$?
24301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24302 (exit $ac_status); }; } &&
24303 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24305 (eval $ac_try) 2>&5
24306 ac_status=$?
24307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24308 (exit $ac_status); }; }; then
24309 echo "*** The test program compiled, but did not run. This usually means"
24310 echo "*** that the run-time linker is not finding GTK or finding the wrong"
24311 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
24312 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
24313 echo "*** to the installed location Also, make sure you have run ldconfig if that"
24314 echo "*** is required on your system"
24315 echo "***"
24316 echo "*** If you have an old version installed, it is best to remove it, although"
24317 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
24318 echo "***"
24319 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
24320 echo "*** came with the system with the command"
24321 echo "***"
24322 echo "*** rpm --erase --nodeps gtk gtk-devel"
24323else
24324 echo "$as_me: failed program was:" >&5
24325sed 's/^/| /' conftest.$ac_ext >&5
24326
24327 echo "*** The test program failed to compile or link. See the file config.log for the"
24328 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
24329 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
24330 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
24331fi
ac1cb8d3
VS
24332rm -f conftest.err conftest.$ac_objext \
24333 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24334 CFLAGS="$ac_save_CFLAGS"
24335 LIBS="$ac_save_LIBS"
24336 fi
24337 fi
24338 GTK_CFLAGS=""
24339 GTK_LIBS=""
24340 :
24341 fi
24342
24343
24344 rm -f conf.gtktest
24345
24346
24347 if test -z "$wx_cv_lib_gtk"; then
24348
24349# Check whether --with-gtk-prefix or --without-gtk-prefix was given.
24350if test "${with_gtk_prefix+set}" = set; then
24351 withval="$with_gtk_prefix"
24352 gtk_config_prefix="$withval"
24353else
24354 gtk_config_prefix=""
24355fi;
24356
24357# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
24358if test "${with_gtk_exec_prefix+set}" = set; then
24359 withval="$with_gtk_exec_prefix"
24360 gtk_config_exec_prefix="$withval"
24361else
24362 gtk_config_exec_prefix=""
24363fi;
24364# Check whether --enable-gtktest or --disable-gtktest was given.
24365if test "${enable_gtktest+set}" = set; then
24366 enableval="$enable_gtktest"
24367
24368else
24369 enable_gtktest=yes
24370fi;
24371
24372 for module in . $GTK_MODULES
24373 do
24374 case "$module" in
24375 gthread)
24376 gtk_config_args="$gtk_config_args gthread"
24377 ;;
24378 esac
24379 done
24380
24381 if test x$gtk_config_exec_prefix != x ; then
24382 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
24383 if test x${GTK_CONFIG+set} != xset ; then
24384 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
24385 fi
24386 fi
24387 if test x$gtk_config_prefix != x ; then
24388 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
24389 if test x${GTK_CONFIG+set} != xset ; then
24390 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
24391 fi
24392 fi
24393
24394 # Extract the first word of "gtk-config", so it can be a program name with args.
24395set dummy gtk-config; ac_word=$2
24396echo "$as_me:$LINENO: checking for $ac_word" >&5
24397echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24398if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
24399 echo $ECHO_N "(cached) $ECHO_C" >&6
24400else
24401 case $GTK_CONFIG in
24402 [\\/]* | ?:[\\/]*)
24403 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
24404 ;;
24405 *)
24406 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24407for as_dir in $PATH
24408do
24409 IFS=$as_save_IFS
24410 test -z "$as_dir" && as_dir=.
24411 for ac_exec_ext in '' $ac_executable_extensions; do
24412 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24413 ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
24414 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24415 break 2
24416 fi
24417done
24418done
24419
24420 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
24421 ;;
24422esac
24423fi
24424GTK_CONFIG=$ac_cv_path_GTK_CONFIG
24425
24426if test -n "$GTK_CONFIG"; then
24427 echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
24428echo "${ECHO_T}$GTK_CONFIG" >&6
24429else
24430 echo "$as_me:$LINENO: result: no" >&5
24431echo "${ECHO_T}no" >&6
24432fi
24433
24434 min_gtk_version=1.2.3
24435 echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
24436echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6
24437 no_gtk=""
24438 if test "$GTK_CONFIG" = "no" ; then
24439 no_gtk=yes
24440 else
24441 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
24442 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
24443 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
24444 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
24445 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
24446 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
24447 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
24448 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
24449 if test "x$enable_gtktest" = "xyes" ; then
24450 ac_save_CFLAGS="$CFLAGS"
24451 ac_save_LIBS="$LIBS"
24452 CFLAGS="$CFLAGS $GTK_CFLAGS"
24453 LIBS="$GTK_LIBS $LIBS"
24454 rm -f conf.gtktest
24455 if test "$cross_compiling" = yes; then
24456 echo $ac_n "cross compiling; assumed OK... $ac_c"
24457else
24458 cat >conftest.$ac_ext <<_ACEOF
24459/* confdefs.h. */
24460_ACEOF
24461cat confdefs.h >>conftest.$ac_ext
24462cat >>conftest.$ac_ext <<_ACEOF
24463/* end confdefs.h. */
24464
24465#include <gtk/gtk.h>
24466#include <stdio.h>
24467#include <stdlib.h>
24468
24469int
24470main ()
24471{
24472 int major, minor, micro;
24473 char *tmp_version;
24474
24475 system ("touch conf.gtktest");
24476
24477 /* HP/UX 9 (%@#!) writes to sscanf strings */
24478 tmp_version = g_strdup("$min_gtk_version");
24479 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
24480 printf("%s, bad version string\n", "$min_gtk_version");
24481 exit(1);
24482 }
24483
24484 if ((gtk_major_version != $gtk_config_major_version) ||
24485 (gtk_minor_version != $gtk_config_minor_version) ||
24486 (gtk_micro_version != $gtk_config_micro_version))
24487 {
24488 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
24489 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
24490 gtk_major_version, gtk_minor_version, gtk_micro_version);
24491 printf ("*** was found! If gtk-config was correct, then it is best\n");
24492 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
24493 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
24494 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
24495 printf("*** required on your system.\n");
24496 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
24497 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
24498 printf("*** before re-running configure\n");
24499 }
24500#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
24501 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
24502 (gtk_minor_version != GTK_MINOR_VERSION) ||
24503 (gtk_micro_version != GTK_MICRO_VERSION))
24504 {
24505 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
24506 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
24507 printf("*** library (version %d.%d.%d)\n",
24508 gtk_major_version, gtk_minor_version, gtk_micro_version);
24509 }
24510#endif /* defined (GTK_MAJOR_VERSION) ... */
24511 else
24512 {
24513 if ((gtk_major_version > major) ||
24514 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
24515 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
24516 {
24517 return 0;
24518 }
24519 else
24520 {
24521 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
24522 gtk_major_version, gtk_minor_version, gtk_micro_version);
24523 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
24524 major, minor, micro);
24525 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
24526 printf("***\n");
24527 printf("*** If you have already installed a sufficiently new version, this error\n");
24528 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
24529 printf("*** being found. The easiest way to fix this is to remove the old version\n");
24530 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
24531 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
24532 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
24533 printf("*** so that the correct libraries are found at run-time))\n");
24534 }
24535 }
24536 return 1;
24537}
24538
24539_ACEOF
24540rm -f conftest$ac_exeext
24541if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24542 (eval $ac_link) 2>&5
24543 ac_status=$?
24544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24545 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24547 (eval $ac_try) 2>&5
24548 ac_status=$?
24549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24550 (exit $ac_status); }; }; then
24551 :
24552else
24553 echo "$as_me: program exited with status $ac_status" >&5
24554echo "$as_me: failed program was:" >&5
24555sed 's/^/| /' conftest.$ac_ext >&5
24556
24557( exit $ac_status )
24558no_gtk=yes
24559fi
ac1cb8d3 24560rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
24561fi
24562 CFLAGS="$ac_save_CFLAGS"
24563 LIBS="$ac_save_LIBS"
24564 fi
24565 fi
24566 if test "x$no_gtk" = x ; then
24567 echo "$as_me:$LINENO: result: yes" >&5
24568echo "${ECHO_T}yes" >&6
24569 wx_cv_lib_gtk=1.2.3
24570 else
24571 echo "$as_me:$LINENO: result: no" >&5
24572echo "${ECHO_T}no" >&6
24573 if test "$GTK_CONFIG" = "no" ; then
24574 echo "*** The gtk-config script installed by GTK could not be found"
24575 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
24576 echo "*** your path, or set the GTK_CONFIG environment variable to the"
24577 echo "*** full path to gtk-config."
24578 else
24579 if test -f conf.gtktest ; then
24580 :
24581 else
24582 echo "*** Could not run GTK test program, checking why..."
24583 CFLAGS="$CFLAGS $GTK_CFLAGS"
24584 LIBS="$LIBS $GTK_LIBS"
24585 cat >conftest.$ac_ext <<_ACEOF
24586/* confdefs.h. */
24587_ACEOF
24588cat confdefs.h >>conftest.$ac_ext
24589cat >>conftest.$ac_ext <<_ACEOF
24590/* end confdefs.h. */
24591
24592#include <gtk/gtk.h>
24593#include <stdio.h>
24594
24595int
24596main ()
24597{
24598 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
24599 ;
24600 return 0;
24601}
24602_ACEOF
24603rm -f conftest.$ac_objext conftest$ac_exeext
24604if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24605 (eval $ac_link) 2>conftest.er1
a848cd7e 24606 ac_status=$?
ac1cb8d3
VS
24607 grep -v '^ *+' conftest.er1 >conftest.err
24608 rm -f conftest.er1
24609 cat conftest.err >&5
a848cd7e
SC
24610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24611 (exit $ac_status); } &&
89be85c2
VS
24612 { ac_try='test -z "$ac_c_werror_flag"
24613 || test ! -s conftest.err'
ac1cb8d3
VS
24614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24615 (eval $ac_try) 2>&5
24616 ac_status=$?
24617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24618 (exit $ac_status); }; } &&
24619 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24621 (eval $ac_try) 2>&5
24622 ac_status=$?
24623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24624 (exit $ac_status); }; }; then
24625 echo "*** The test program compiled, but did not run. This usually means"
24626 echo "*** that the run-time linker is not finding GTK or finding the wrong"
24627 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
24628 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
24629 echo "*** to the installed location Also, make sure you have run ldconfig if that"
24630 echo "*** is required on your system"
24631 echo "***"
24632 echo "*** If you have an old version installed, it is best to remove it, although"
24633 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
24634 echo "***"
24635 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
24636 echo "*** came with the system with the command"
24637 echo "***"
24638 echo "*** rpm --erase --nodeps gtk gtk-devel"
24639else
24640 echo "$as_me: failed program was:" >&5
24641sed 's/^/| /' conftest.$ac_ext >&5
24642
24643 echo "*** The test program failed to compile or link. See the file config.log for the"
24644 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
24645 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
24646 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
24647fi
ac1cb8d3
VS
24648rm -f conftest.err conftest.$ac_objext \
24649 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24650 CFLAGS="$ac_save_CFLAGS"
24651 LIBS="$ac_save_LIBS"
24652 fi
24653 fi
24654 GTK_CFLAGS=""
24655 GTK_LIBS=""
24656 :
24657 fi
24658
24659
24660 rm -f conf.gtktest
24661
24662 fi
24663 fi
24664
24665 if test -z "$wx_cv_lib_gtk"; then
24666 wx_cv_lib_gtk=none
24667 else
24668 wx_cv_cflags_gtk=$GTK_CFLAGS
24669 wx_cv_libs_gtk=$GTK_LIBS
24670 fi
24671
24672
24673fi
24674
24675
24676 if test "$gtk_version_cached" = 1; then
24677 echo "$as_me:$LINENO: result: $wx_cv_lib_gtk" >&5
24678echo "${ECHO_T}$wx_cv_lib_gtk" >&6
24679 fi
24680
24681 case "$wx_cv_lib_gtk" in
24682 2.0) WXGTK20=1
24683 TOOLKIT_VERSION=2
24684 ;;
24685 1.2.7) WXGTK127=1
24686 WXGTK12=1
24687 ;;
24688 1.2.3) WXGTK12=1
24689 ;;
24690 *) { { echo "$as_me:$LINENO: error:
24691Please check that gtk-config is in path, the directory
24692where GTK+ libraries are installed (returned by
24693'gtk-config --libs' command) is in LD_LIBRARY_PATH or
24694equivalent variable and GTK+ is version 1.2.3 or above.
24695 " >&5
24696echo "$as_me: error:
24697Please check that gtk-config is in path, the directory
24698where GTK+ libraries are installed (returned by
24699'gtk-config --libs' command) is in LD_LIBRARY_PATH or
24700equivalent variable and GTK+ is version 1.2.3 or above.
24701 " >&2;}
24702 { (exit 1); exit 1; }; }
24703 ;;
24704 esac
24705
24706 if test "$WXGTK20" = 1; then
304205f1
VS
24707 save_CFLAGS="$CFLAGS"
24708 save_LIBS="$LIBS"
24709 CFLAGS="$CFLAGS $GTK_CFLAGS"
24710 LIBS="$LIBS $GTK_LIBS"
24711
9755e73b 24712
304205f1
VS
24713for ac_func in pango_font_family_is_monospace
24714do
24715as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24716echo "$as_me:$LINENO: checking for $ac_func" >&5
24717echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24718if eval "test \"\${$as_ac_var+set}\" = set"; then
24719 echo $ECHO_N "(cached) $ECHO_C" >&6
24720else
24721 cat >conftest.$ac_ext <<_ACEOF
24722/* confdefs.h. */
24723_ACEOF
24724cat confdefs.h >>conftest.$ac_ext
24725cat >>conftest.$ac_ext <<_ACEOF
24726/* end confdefs.h. */
24727/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24728 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24729#define $ac_func innocuous_$ac_func
24730
24731/* System header to define __stub macros and hopefully few prototypes,
24732 which can conflict with char $ac_func (); below.
24733 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24734 <limits.h> exists even on freestanding compilers. */
24735
24736#ifdef __STDC__
24737# include <limits.h>
24738#else
24739# include <assert.h>
24740#endif
24741
24742#undef $ac_func
24743
24744/* Override any gcc2 internal prototype to avoid an error. */
24745#ifdef __cplusplus
24746extern "C"
24747{
24748#endif
24749/* We use char because int might match the return type of a gcc2
24750 builtin and then its argument prototype would still apply. */
24751char $ac_func ();
24752/* The GNU C library defines this for functions which it implements
24753 to always fail with ENOSYS. Some functions are actually named
24754 something starting with __ and the normal name is an alias. */
24755#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24756choke me
24757#else
24758char (*f) () = $ac_func;
24759#endif
24760#ifdef __cplusplus
24761}
24762#endif
24763
24764int
24765main ()
24766{
24767return f != $ac_func;
24768 ;
24769 return 0;
24770}
24771_ACEOF
24772rm -f conftest.$ac_objext conftest$ac_exeext
24773if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24774 (eval $ac_link) 2>conftest.er1
24775 ac_status=$?
24776 grep -v '^ *+' conftest.er1 >conftest.err
24777 rm -f conftest.er1
24778 cat conftest.err >&5
24779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24780 (exit $ac_status); } &&
89be85c2
VS
24781 { ac_try='test -z "$ac_c_werror_flag"
24782 || test ! -s conftest.err'
304205f1
VS
24783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24784 (eval $ac_try) 2>&5
24785 ac_status=$?
24786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24787 (exit $ac_status); }; } &&
24788 { ac_try='test -s conftest$ac_exeext'
24789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24790 (eval $ac_try) 2>&5
24791 ac_status=$?
24792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24793 (exit $ac_status); }; }; then
24794 eval "$as_ac_var=yes"
24795else
24796 echo "$as_me: failed program was:" >&5
24797sed 's/^/| /' conftest.$ac_ext >&5
24798
24799eval "$as_ac_var=no"
24800fi
24801rm -f conftest.err conftest.$ac_objext \
24802 conftest$ac_exeext conftest.$ac_ext
24803fi
24804echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24805echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24806if test `eval echo '${'$as_ac_var'}'` = yes; then
24807 cat >>confdefs.h <<_ACEOF
24808#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24809_ACEOF
24810
24811fi
24812done
24813
9755e73b
VS
24814
24815 echo "$as_me:$LINENO: checking if GTK+ is version >= 2.4" >&5
24816echo $ECHO_N "checking if GTK+ is version >= 2.4... $ECHO_C" >&6
24817 cat >conftest.$ac_ext <<_ACEOF
24818/* confdefs.h. */
24819_ACEOF
24820cat confdefs.h >>conftest.$ac_ext
24821cat >>conftest.$ac_ext <<_ACEOF
24822/* end confdefs.h. */
24823
24824 #include <gtk/gtk.h>
24825
24826int
24827main ()
24828{
24829
24830 #if !GTK_CHECK_VERSION(2,4,0)
24831 #error "Not GTK+ 2.4"
24832 #endif
24833
24834 ;
24835 return 0;
24836}
24837_ACEOF
24838rm -f conftest.$ac_objext
24839if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24840 (eval $ac_compile) 2>conftest.er1
24841 ac_status=$?
24842 grep -v '^ *+' conftest.er1 >conftest.err
24843 rm -f conftest.er1
24844 cat conftest.err >&5
24845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24846 (exit $ac_status); } &&
89be85c2
VS
24847 { ac_try='test -z "$ac_c_werror_flag"
24848 || test ! -s conftest.err'
9755e73b
VS
24849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24850 (eval $ac_try) 2>&5
24851 ac_status=$?
24852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24853 (exit $ac_status); }; } &&
24854 { ac_try='test -s conftest.$ac_objext'
24855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24856 (eval $ac_try) 2>&5
24857 ac_status=$?
24858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24859 (exit $ac_status); }; }; then
24860
24861 cat >>confdefs.h <<\_ACEOF
24862#define __WXGTK24__ 1
24863_ACEOF
24864
24865 echo "$as_me:$LINENO: result: yes" >&5
24866echo "${ECHO_T}yes" >&6
24867
24868else
24869 echo "$as_me: failed program was:" >&5
24870sed 's/^/| /' conftest.$ac_ext >&5
24871
24872
24873 echo "$as_me:$LINENO: result: no" >&5
24874echo "${ECHO_T}no" >&6
24875
24876fi
24877rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24878
304205f1
VS
24879 CFLAGS="$save_CFLAGS"
24880 LIBS="$save_LIBS"
a848cd7e
SC
24881 else
24882 if test "$wxUSE_UNICODE" = "yes"; then
24883 { echo "$as_me:$LINENO: WARNING: Unicode configuration not supported with GTK+ 1.x" >&5
24884echo "$as_me: WARNING: Unicode configuration not supported with GTK+ 1.x" >&2;}
24885 wxUSE_UNICODE=no
24886 fi
24887 fi
24888
24889 if test "$USE_DARWIN" != 1; then
24890
24891for ac_func in poll
24892do
24893as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24894echo "$as_me:$LINENO: checking for $ac_func" >&5
24895echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24896if eval "test \"\${$as_ac_var+set}\" = set"; then
24897 echo $ECHO_N "(cached) $ECHO_C" >&6
24898else
24899 cat >conftest.$ac_ext <<_ACEOF
24900/* confdefs.h. */
24901_ACEOF
24902cat confdefs.h >>conftest.$ac_ext
24903cat >>conftest.$ac_ext <<_ACEOF
24904/* end confdefs.h. */
ac1cb8d3
VS
24905/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24906 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24907#define $ac_func innocuous_$ac_func
24908
a848cd7e
SC
24909/* System header to define __stub macros and hopefully few prototypes,
24910 which can conflict with char $ac_func (); below.
24911 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24912 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 24913
a848cd7e
SC
24914#ifdef __STDC__
24915# include <limits.h>
24916#else
24917# include <assert.h>
24918#endif
ac1cb8d3
VS
24919
24920#undef $ac_func
24921
a848cd7e
SC
24922/* Override any gcc2 internal prototype to avoid an error. */
24923#ifdef __cplusplus
24924extern "C"
24925{
24926#endif
24927/* We use char because int might match the return type of a gcc2
24928 builtin and then its argument prototype would still apply. */
24929char $ac_func ();
24930/* The GNU C library defines this for functions which it implements
24931 to always fail with ENOSYS. Some functions are actually named
24932 something starting with __ and the normal name is an alias. */
24933#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24934choke me
24935#else
24936char (*f) () = $ac_func;
24937#endif
24938#ifdef __cplusplus
24939}
24940#endif
24941
24942int
24943main ()
24944{
24945return f != $ac_func;
24946 ;
24947 return 0;
24948}
24949_ACEOF
24950rm -f conftest.$ac_objext conftest$ac_exeext
24951if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24952 (eval $ac_link) 2>conftest.er1
a848cd7e 24953 ac_status=$?
ac1cb8d3
VS
24954 grep -v '^ *+' conftest.er1 >conftest.err
24955 rm -f conftest.er1
24956 cat conftest.err >&5
a848cd7e
SC
24957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24958 (exit $ac_status); } &&
89be85c2
VS
24959 { ac_try='test -z "$ac_c_werror_flag"
24960 || test ! -s conftest.err'
ac1cb8d3
VS
24961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24962 (eval $ac_try) 2>&5
24963 ac_status=$?
24964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24965 (exit $ac_status); }; } &&
24966 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24968 (eval $ac_try) 2>&5
24969 ac_status=$?
24970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24971 (exit $ac_status); }; }; then
24972 eval "$as_ac_var=yes"
24973else
24974 echo "$as_me: failed program was:" >&5
24975sed 's/^/| /' conftest.$ac_ext >&5
24976
24977eval "$as_ac_var=no"
24978fi
ac1cb8d3
VS
24979rm -f conftest.err conftest.$ac_objext \
24980 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24981fi
24982echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24983echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24984if test `eval echo '${'$as_ac_var'}'` = yes; then
24985 cat >>confdefs.h <<_ACEOF
24986#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24987_ACEOF
24988
24989fi
24990done
24991
24992 fi
24993
24994 TOOLKIT_INCLUDE="$wx_cv_cflags_gtk"
24995 GUI_TK_LIBRARY="$wx_cv_libs_gtk $GUI_TK_LIBRARY"
24996
24997 AFMINSTALL=afminstall
24998 TOOLKIT=GTK
24999 GUIDIST=GTK_DIST
25000
25001 echo "$as_me:$LINENO: checking for gdk_im_open in -lgdk" >&5
25002echo $ECHO_N "checking for gdk_im_open in -lgdk... $ECHO_C" >&6
25003if test "${ac_cv_lib_gdk_gdk_im_open+set}" = set; then
25004 echo $ECHO_N "(cached) $ECHO_C" >&6
25005else
25006 ac_check_lib_save_LIBS=$LIBS
25007LIBS="-lgdk $LIBS"
25008cat >conftest.$ac_ext <<_ACEOF
25009/* confdefs.h. */
25010_ACEOF
25011cat confdefs.h >>conftest.$ac_ext
25012cat >>conftest.$ac_ext <<_ACEOF
25013/* end confdefs.h. */
25014
25015/* Override any gcc2 internal prototype to avoid an error. */
25016#ifdef __cplusplus
25017extern "C"
25018#endif
25019/* We use char because int might match the return type of a gcc2
25020 builtin and then its argument prototype would still apply. */
25021char gdk_im_open ();
25022int
25023main ()
25024{
25025gdk_im_open ();
25026 ;
25027 return 0;
25028}
25029_ACEOF
25030rm -f conftest.$ac_objext conftest$ac_exeext
25031if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25032 (eval $ac_link) 2>conftest.er1
a848cd7e 25033 ac_status=$?
ac1cb8d3
VS
25034 grep -v '^ *+' conftest.er1 >conftest.err
25035 rm -f conftest.er1
25036 cat conftest.err >&5
a848cd7e
SC
25037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25038 (exit $ac_status); } &&
89be85c2
VS
25039 { ac_try='test -z "$ac_c_werror_flag"
25040 || test ! -s conftest.err'
ac1cb8d3
VS
25041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25042 (eval $ac_try) 2>&5
25043 ac_status=$?
25044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25045 (exit $ac_status); }; } &&
25046 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25048 (eval $ac_try) 2>&5
25049 ac_status=$?
25050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25051 (exit $ac_status); }; }; then
25052 ac_cv_lib_gdk_gdk_im_open=yes
25053else
25054 echo "$as_me: failed program was:" >&5
25055sed 's/^/| /' conftest.$ac_ext >&5
25056
25057ac_cv_lib_gdk_gdk_im_open=no
25058fi
ac1cb8d3
VS
25059rm -f conftest.err conftest.$ac_objext \
25060 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25061LIBS=$ac_check_lib_save_LIBS
25062fi
25063echo "$as_me:$LINENO: result: $ac_cv_lib_gdk_gdk_im_open" >&5
25064echo "${ECHO_T}$ac_cv_lib_gdk_gdk_im_open" >&6
25065if test $ac_cv_lib_gdk_gdk_im_open = yes; then
25066 cat >>confdefs.h <<\_ACEOF
25067#define HAVE_XIM 1
25068_ACEOF
25069
25070fi
25071
25072
25073
25074 if test "$wxUSE_GPE" = "yes"; then
25075 echo "$as_me:$LINENO: checking for gpewidget library" >&5
25076echo $ECHO_N "checking for gpewidget library... $ECHO_C" >&6
25077
25078ac_find_libraries=
25079for ac_dir in $SEARCH_LIB /usr/lib;
25080 do
25081 for ac_extension in a so sl dylib; do
25082 if test -f "$ac_dir/libgpewidget.$ac_extension"; then
25083 ac_find_libraries=$ac_dir
25084 break 2
25085 fi
25086 done
25087 done
25088
25089 if test "$ac_find_libraries" != "" ; then
25090
25091 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
25092 result=$?
25093 if test $result = 0; then
25094 ac_path_to_link=""
25095 else
25096 ac_path_to_link=" -L$ac_find_libraries"
25097 fi
25098
25099 GUI_TK_LIBRARY="-L${prefix}/lib -lgpewidget $GUI_TK_LIBRARY"
25100 WXGPE=1
25101 echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5
25102echo "${ECHO_T}found at $ac_find_libraries" >&6
25103 else
25104 echo "$as_me:$LINENO: result: not found" >&5
25105echo "${ECHO_T}not found" >&6
25106 fi
25107
25108 fi
25109 fi
25110
25111 if test "$wxUSE_MGL" = 1; then
25112 echo "$as_me:$LINENO: checking for SciTech MGL library" >&5
25113echo $ECHO_N "checking for SciTech MGL library... $ECHO_C" >&6
25114 if test "x$MGL_ROOT" = x ; then
25115 echo "$as_me:$LINENO: result: not found" >&5
25116echo "${ECHO_T}not found" >&6
25117 { { echo "$as_me:$LINENO: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&5
25118echo "$as_me: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&2;}
25119 { (exit 1); exit 1; }; }
25120 else
25121 echo "$as_me:$LINENO: result: $MGL_ROOT" >&5
25122echo "${ECHO_T}$MGL_ROOT" >&6
25123 fi
25124
25125 echo "$as_me:$LINENO: checking for libmgl location" >&5
25126echo $ECHO_N "checking for libmgl location... $ECHO_C" >&6
25127 case "${host}" in
25128 *-*-linux* )
25129 if test "x$wxUSE_SHARED" = xyes ; then
25130 mgl_os_candidates="linux/gcc/x86/so linux/gcc/x86/a linux/gcc/glibc.so linux/gcc/glibc"
25131 else
25132 mgl_os_candidates="linux/gcc/x86/a linux/gcc/x86/so linux/gcc/glibc linux/gcc/glibc.so"
25133 fi
25134 ;;
25135 *-pc-msdosdjgpp )
25136 mgl_os_candidates="dos32/dj2"
25137 ;;
25138 *)
25139 { { echo "$as_me:$LINENO: error: This system type ${host} is not yet supported by wxMGL." >&5
25140echo "$as_me: error: This system type ${host} is not yet supported by wxMGL." >&2;}
25141 { (exit 1); exit 1; }; }
25142 esac
25143
25144 mgl_lib_type=""
25145 mgl_os=""
25146
25147 for mgl_os_i in $mgl_os_candidates ; do
25148 if test "x$mgl_os" = x ; then
25149 if test "$wxUSE_DEBUG_FLAG" = yes ; then
25150 if test -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.a -o \
25151 -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.so; then
25152 mgl_lib_type=debug
25153 mgl_os=$mgl_os_i
25154 fi
25155 fi
25156 if test "x$mgl_lib_type" = x ; then
25157 if test -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.a -o \
25158 -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.so; then
25159 mgl_lib_type=release
25160 mgl_os=$mgl_os_i
25161 fi
25162 fi
25163 fi
25164 done
25165
25166 if test "x$mgl_os" = x ; then
25167 echo "$as_me:$LINENO: result: not found" >&5
25168echo "${ECHO_T}not found" >&6
25169 { { echo "$as_me:$LINENO: error: Cannot find MGL libraries, make sure they are compiled." >&5
25170echo "$as_me: error: Cannot find MGL libraries, make sure they are compiled." >&2;}
25171 { (exit 1); exit 1; }; }
25172 fi
25173 echo "$as_me:$LINENO: result: \"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&5
25174echo "${ECHO_T}\"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&6
25175
25176 wxUSE_UNIVERSAL="yes"
25177
25178 TOOLKIT_INCLUDE="-I$MGL_ROOT/include"
25179 GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$mgl_lib_type/$mgl_os -lmgl -lmglcpp -lpm"
25180
25181 AFMINSTALL=afminstall
25182 TOOLKIT=MGL
25183 GUIDIST=MGL_DIST
25184 fi
25185
25186 if test "$wxUSE_MICROWIN" = 1; then
25187 echo "$as_me:$LINENO: checking for MicroWindows" >&5
25188echo $ECHO_N "checking for MicroWindows... $ECHO_C" >&6
25189 if test "x$MICROWINDOWS" = x ; then
25190 echo "$as_me:$LINENO: result: not found" >&5
25191echo "${ECHO_T}not found" >&6
25192 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&5
25193echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&2;}
25194 { (exit 1); exit 1; }; }
25195 else
25196 echo "$as_me:$LINENO: result: $MICROWINDOWS" >&5
25197echo "${ECHO_T}$MICROWINDOWS" >&6
25198 fi
25199
25200 if test -f $MICROWINDOWS/lib/libmwin.a; then
25201 echo "$as_me:$LINENO: result: MicroWindows' libraries found." >&5
25202echo "${ECHO_T}MicroWindows' libraries found." >&6
25203 else
25204 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows libraries, make sure they are compiled." >&5
25205echo "$as_me: error: Cannot find MicroWindows libraries, make sure they are compiled." >&2;}
25206 { (exit 1); exit 1; }; }
25207 fi
25208
25209 TOOLKIT_INCLUDE="-I$MICROWINDOWS/include"
25210 GUI_TK_LIBRARY="-L$MICROWINDOWS/lib -lmwin -lmwengine -mwfonts -mwdrivers -mwinlib"
25211
25212 wxUSE_UNIVERSAL="yes"
25213
25214 AFMINSTALL=afminstall
25215 TOOLKIT=MICROWIN
25216 GUIDIST=MICROWIN_DIST
25217
25218 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXMSW__ -D__WIN95__ -D__WIN32__ -DMWIN -DMICROWIN_NOCONTROLS -DMICROWIN_TODO=1"
25219 fi
25220
74b84332 25221 if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
89be85c2 25222 echo "$as_me:$LINENO: checking for X" >&5
a848cd7e
SC
25223echo $ECHO_N "checking for X... $ECHO_C" >&6
25224
25225
25226# Check whether --with-x or --without-x was given.
25227if test "${with_x+set}" = set; then
25228 withval="$with_x"
25229
25230fi;
25231# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
25232if test "x$with_x" = xno; then
25233 # The user explicitly disabled X.
25234 have_x=disabled
25235else
25236 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
25237 # Both variables are already set.
25238 have_x=yes
25239 else
25240 if test "${ac_cv_have_x+set}" = set; then
25241 echo $ECHO_N "(cached) $ECHO_C" >&6
25242else
25243 # One or both of the vars are not set, and there is no cached value.
25244ac_x_includes=no ac_x_libraries=no
25245rm -fr conftest.dir
25246if mkdir conftest.dir; then
25247 cd conftest.dir
25248 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
25249 cat >Imakefile <<'_ACEOF'
25250acfindx:
25251 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
25252_ACEOF
25253 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
25254 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
25255 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
25256 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
25257 for ac_extension in a so sl; do
25258 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
ac1cb8d3
VS
25259 test -f $ac_im_libdir/libX11.$ac_extension; then
25260 ac_im_usrlibdir=$ac_im_libdir; break
a848cd7e
SC
25261 fi
25262 done
25263 # Screen out bogus values from the imake configuration. They are
25264 # bogus both because they are the default anyway, and because
25265 # using them would break gcc on systems where it needs fixed includes.
25266 case $ac_im_incroot in
25267 /usr/include) ;;
25268 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
25269 esac
25270 case $ac_im_usrlibdir in
25271 /usr/lib | /lib) ;;
25272 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
25273 esac
25274 fi
25275 cd ..
25276 rm -fr conftest.dir
25277fi
25278
25279# Standard set of common directories for X headers.
25280# Check X11 before X11Rn because it is often a symlink to the current release.
25281ac_x_header_dirs='
25282/usr/X11/include
25283/usr/X11R6/include
25284/usr/X11R5/include
25285/usr/X11R4/include
25286
25287/usr/include/X11
25288/usr/include/X11R6
25289/usr/include/X11R5
25290/usr/include/X11R4
25291
25292/usr/local/X11/include
25293/usr/local/X11R6/include
25294/usr/local/X11R5/include
25295/usr/local/X11R4/include
25296
25297/usr/local/include/X11
25298/usr/local/include/X11R6
25299/usr/local/include/X11R5
25300/usr/local/include/X11R4
25301
25302/usr/X386/include
25303/usr/x386/include
25304/usr/XFree86/include/X11
25305
25306/usr/include
25307/usr/local/include
25308/usr/unsupported/include
25309/usr/athena/include
25310/usr/local/x11r5/include
25311/usr/lpp/Xamples/include
25312
25313/usr/openwin/include
25314/usr/openwin/share/include'
25315
25316if test "$ac_x_includes" = no; then
89be85c2 25317 # Guess where to find include files, by looking for Intrinsic.h.
a848cd7e
SC
25318 # First, try using that file with no special directory specified.
25319 cat >conftest.$ac_ext <<_ACEOF
25320/* confdefs.h. */
25321_ACEOF
25322cat confdefs.h >>conftest.$ac_ext
25323cat >>conftest.$ac_ext <<_ACEOF
25324/* end confdefs.h. */
25325#include <X11/Intrinsic.h>
25326_ACEOF
25327if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25328 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25329 ac_status=$?
25330 grep -v '^ *+' conftest.er1 >conftest.err
25331 rm -f conftest.er1
25332 cat conftest.err >&5
25333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25334 (exit $ac_status); } >/dev/null; then
25335 if test -s conftest.err; then
25336 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 25337 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
25338 else
25339 ac_cpp_err=
25340 fi
25341else
25342 ac_cpp_err=yes
25343fi
25344if test -z "$ac_cpp_err"; then
25345 # We can compile using X headers with no special include directory.
25346ac_x_includes=
25347else
25348 echo "$as_me: failed program was:" >&5
25349sed 's/^/| /' conftest.$ac_ext >&5
25350
25351 for ac_dir in $ac_x_header_dirs; do
25352 if test -r "$ac_dir/X11/Intrinsic.h"; then
25353 ac_x_includes=$ac_dir
25354 break
25355 fi
25356done
25357fi
25358rm -f conftest.err conftest.$ac_ext
25359fi # $ac_x_includes = no
25360
25361if test "$ac_x_libraries" = no; then
25362 # Check for the libraries.
25363 # See if we find them without any special options.
25364 # Don't add to $LIBS permanently.
25365 ac_save_LIBS=$LIBS
25366 LIBS="-lXt $LIBS"
25367 cat >conftest.$ac_ext <<_ACEOF
25368/* confdefs.h. */
25369_ACEOF
25370cat confdefs.h >>conftest.$ac_ext
25371cat >>conftest.$ac_ext <<_ACEOF
25372/* end confdefs.h. */
25373#include <X11/Intrinsic.h>
25374int
25375main ()
25376{
25377XtMalloc (0)
25378 ;
25379 return 0;
25380}
25381_ACEOF
25382rm -f conftest.$ac_objext conftest$ac_exeext
25383if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25384 (eval $ac_link) 2>conftest.er1
a848cd7e 25385 ac_status=$?
ac1cb8d3
VS
25386 grep -v '^ *+' conftest.er1 >conftest.err
25387 rm -f conftest.er1
25388 cat conftest.err >&5
a848cd7e
SC
25389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25390 (exit $ac_status); } &&
89be85c2
VS
25391 { ac_try='test -z "$ac_c_werror_flag"
25392 || test ! -s conftest.err'
ac1cb8d3
VS
25393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25394 (eval $ac_try) 2>&5
25395 ac_status=$?
25396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25397 (exit $ac_status); }; } &&
25398 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25400 (eval $ac_try) 2>&5
25401 ac_status=$?
25402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25403 (exit $ac_status); }; }; then
25404 LIBS=$ac_save_LIBS
25405# We can link X programs with no special library path.
25406ac_x_libraries=
25407else
25408 echo "$as_me: failed program was:" >&5
25409sed 's/^/| /' conftest.$ac_ext >&5
25410
25411LIBS=$ac_save_LIBS
25412for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
25413do
25414 # Don't even attempt the hair of trying to link an X program!
25415 for ac_extension in a so sl; do
25416 if test -r $ac_dir/libXt.$ac_extension; then
25417 ac_x_libraries=$ac_dir
25418 break 2
25419 fi
25420 done
25421done
25422fi
ac1cb8d3
VS
25423rm -f conftest.err conftest.$ac_objext \
25424 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25425fi # $ac_x_libraries = no
25426
25427if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
25428 # Didn't find X anywhere. Cache the known absence of X.
25429 ac_cv_have_x="have_x=no"
25430else
25431 # Record where we found X for the cache.
25432 ac_cv_have_x="have_x=yes \
ac1cb8d3 25433 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
a848cd7e
SC
25434fi
25435fi
25436
25437 fi
25438 eval "$ac_cv_have_x"
25439fi # $with_x != no
25440
25441if test "$have_x" != yes; then
25442 echo "$as_me:$LINENO: result: $have_x" >&5
25443echo "${ECHO_T}$have_x" >&6
25444 no_x=yes
25445else
25446 # If each of the values was on the command line, it overrides each guess.
25447 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
25448 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
25449 # Update the cache value to reflect the command line values.
25450 ac_cv_have_x="have_x=yes \
25451 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
89be85c2
VS
25452 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
25453echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
a848cd7e
SC
25454fi
25455
25456if test "$no_x" = yes; then
25457 # Not all programs may use this symbol, but it does not hurt to define it.
25458
25459cat >>confdefs.h <<\_ACEOF
25460#define X_DISPLAY_MISSING 1
25461_ACEOF
25462
25463 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
25464else
25465 if test -n "$x_includes"; then
25466 X_CFLAGS="$X_CFLAGS -I$x_includes"
25467 fi
25468
25469 # It would also be nice to do this for all -L options, not just this one.
25470 if test -n "$x_libraries"; then
25471 X_LIBS="$X_LIBS -L$x_libraries"
25472 # For Solaris; some versions of Sun CC require a space after -R and
25473 # others require no space. Words are not sufficient . . . .
25474 case `(uname -sr) 2>/dev/null` in
25475 "SunOS 5"*)
25476 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
25477echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
25478 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
25479 cat >conftest.$ac_ext <<_ACEOF
25480/* confdefs.h. */
25481_ACEOF
25482cat confdefs.h >>conftest.$ac_ext
25483cat >>conftest.$ac_ext <<_ACEOF
25484/* end confdefs.h. */
25485
25486int
25487main ()
25488{
25489
25490 ;
25491 return 0;
25492}
25493_ACEOF
25494rm -f conftest.$ac_objext conftest$ac_exeext
25495if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25496 (eval $ac_link) 2>conftest.er1
a848cd7e 25497 ac_status=$?
ac1cb8d3
VS
25498 grep -v '^ *+' conftest.er1 >conftest.err
25499 rm -f conftest.er1
25500 cat conftest.err >&5
a848cd7e
SC
25501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25502 (exit $ac_status); } &&
89be85c2
VS
25503 { ac_try='test -z "$ac_c_werror_flag"
25504 || test ! -s conftest.err'
ac1cb8d3
VS
25505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25506 (eval $ac_try) 2>&5
25507 ac_status=$?
25508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25509 (exit $ac_status); }; } &&
25510 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25512 (eval $ac_try) 2>&5
25513 ac_status=$?
25514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25515 (exit $ac_status); }; }; then
25516 ac_R_nospace=yes
25517else
25518 echo "$as_me: failed program was:" >&5
25519sed 's/^/| /' conftest.$ac_ext >&5
25520
25521ac_R_nospace=no
25522fi
ac1cb8d3
VS
25523rm -f conftest.err conftest.$ac_objext \
25524 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25525 if test $ac_R_nospace = yes; then
25526 echo "$as_me:$LINENO: result: no" >&5
25527echo "${ECHO_T}no" >&6
25528 X_LIBS="$X_LIBS -R$x_libraries"
25529 else
25530 LIBS="$ac_xsave_LIBS -R $x_libraries"
25531 cat >conftest.$ac_ext <<_ACEOF
25532/* confdefs.h. */
25533_ACEOF
25534cat confdefs.h >>conftest.$ac_ext
25535cat >>conftest.$ac_ext <<_ACEOF
25536/* end confdefs.h. */
25537
25538int
25539main ()
25540{
25541
25542 ;
25543 return 0;
25544}
25545_ACEOF
25546rm -f conftest.$ac_objext conftest$ac_exeext
25547if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25548 (eval $ac_link) 2>conftest.er1
a848cd7e 25549 ac_status=$?
ac1cb8d3
VS
25550 grep -v '^ *+' conftest.er1 >conftest.err
25551 rm -f conftest.er1
25552 cat conftest.err >&5
a848cd7e
SC
25553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25554 (exit $ac_status); } &&
89be85c2
VS
25555 { ac_try='test -z "$ac_c_werror_flag"
25556 || test ! -s conftest.err'
ac1cb8d3
VS
25557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25558 (eval $ac_try) 2>&5
25559 ac_status=$?
25560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25561 (exit $ac_status); }; } &&
25562 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25564 (eval $ac_try) 2>&5
25565 ac_status=$?
25566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25567 (exit $ac_status); }; }; then
25568 ac_R_space=yes
25569else
25570 echo "$as_me: failed program was:" >&5
25571sed 's/^/| /' conftest.$ac_ext >&5
25572
25573ac_R_space=no
25574fi
ac1cb8d3
VS
25575rm -f conftest.err conftest.$ac_objext \
25576 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25577 if test $ac_R_space = yes; then
25578 echo "$as_me:$LINENO: result: yes" >&5
25579echo "${ECHO_T}yes" >&6
25580 X_LIBS="$X_LIBS -R $x_libraries"
25581 else
25582 echo "$as_me:$LINENO: result: neither works" >&5
25583echo "${ECHO_T}neither works" >&6
25584 fi
25585 fi
25586 LIBS=$ac_xsave_LIBS
25587 esac
25588 fi
25589
25590 # Check for system-dependent libraries X programs must link with.
25591 # Do this before checking for the system-independent R6 libraries
25592 # (-lICE), since we may need -lsocket or whatever for X linking.
25593
25594 if test "$ISC" = yes; then
25595 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
25596 else
25597 # Martyn Johnson says this is needed for Ultrix, if the X
25598 # libraries were built with DECnet support. And Karl Berry says
25599 # the Alpha needs dnet_stub (dnet does not exist).
25600 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
25601 cat >conftest.$ac_ext <<_ACEOF
25602/* confdefs.h. */
25603_ACEOF
25604cat confdefs.h >>conftest.$ac_ext
25605cat >>conftest.$ac_ext <<_ACEOF
25606/* end confdefs.h. */
25607
25608/* Override any gcc2 internal prototype to avoid an error. */
25609#ifdef __cplusplus
25610extern "C"
25611#endif
25612/* We use char because int might match the return type of a gcc2
25613 builtin and then its argument prototype would still apply. */
25614char XOpenDisplay ();
25615int
25616main ()
25617{
25618XOpenDisplay ();
25619 ;
25620 return 0;
25621}
25622_ACEOF
25623rm -f conftest.$ac_objext conftest$ac_exeext
25624if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25625 (eval $ac_link) 2>conftest.er1
a848cd7e 25626 ac_status=$?
ac1cb8d3
VS
25627 grep -v '^ *+' conftest.er1 >conftest.err
25628 rm -f conftest.er1
25629 cat conftest.err >&5
a848cd7e
SC
25630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25631 (exit $ac_status); } &&
89be85c2
VS
25632 { ac_try='test -z "$ac_c_werror_flag"
25633 || test ! -s conftest.err'
ac1cb8d3
VS
25634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25635 (eval $ac_try) 2>&5
25636 ac_status=$?
25637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25638 (exit $ac_status); }; } &&
25639 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25641 (eval $ac_try) 2>&5
25642 ac_status=$?
25643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25644 (exit $ac_status); }; }; then
25645 :
25646else
25647 echo "$as_me: failed program was:" >&5
25648sed 's/^/| /' conftest.$ac_ext >&5
25649
25650echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
25651echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
25652if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
25653 echo $ECHO_N "(cached) $ECHO_C" >&6
25654else
25655 ac_check_lib_save_LIBS=$LIBS
25656LIBS="-ldnet $LIBS"
25657cat >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
25664/* Override any gcc2 internal prototype to avoid an error. */
25665#ifdef __cplusplus
25666extern "C"
25667#endif
25668/* We use char because int might match the return type of a gcc2
25669 builtin and then its argument prototype would still apply. */
25670char dnet_ntoa ();
25671int
25672main ()
25673{
25674dnet_ntoa ();
25675 ;
25676 return 0;
25677}
25678_ACEOF
25679rm -f conftest.$ac_objext conftest$ac_exeext
25680if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25681 (eval $ac_link) 2>conftest.er1
a848cd7e 25682 ac_status=$?
ac1cb8d3
VS
25683 grep -v '^ *+' conftest.er1 >conftest.err
25684 rm -f conftest.er1
25685 cat conftest.err >&5
a848cd7e
SC
25686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25687 (exit $ac_status); } &&
89be85c2
VS
25688 { ac_try='test -z "$ac_c_werror_flag"
25689 || test ! -s conftest.err'
ac1cb8d3
VS
25690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25691 (eval $ac_try) 2>&5
25692 ac_status=$?
25693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25694 (exit $ac_status); }; } &&
25695 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25697 (eval $ac_try) 2>&5
25698 ac_status=$?
25699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25700 (exit $ac_status); }; }; then
25701 ac_cv_lib_dnet_dnet_ntoa=yes
25702else
25703 echo "$as_me: failed program was:" >&5
25704sed 's/^/| /' conftest.$ac_ext >&5
25705
25706ac_cv_lib_dnet_dnet_ntoa=no
25707fi
ac1cb8d3
VS
25708rm -f conftest.err conftest.$ac_objext \
25709 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25710LIBS=$ac_check_lib_save_LIBS
25711fi
25712echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
25713echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
25714if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
25715 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
25716fi
25717
25718 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
25719 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
25720echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
25721if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
25722 echo $ECHO_N "(cached) $ECHO_C" >&6
25723else
25724 ac_check_lib_save_LIBS=$LIBS
25725LIBS="-ldnet_stub $LIBS"
25726cat >conftest.$ac_ext <<_ACEOF
25727/* confdefs.h. */
25728_ACEOF
25729cat confdefs.h >>conftest.$ac_ext
25730cat >>conftest.$ac_ext <<_ACEOF
25731/* end confdefs.h. */
25732
25733/* Override any gcc2 internal prototype to avoid an error. */
25734#ifdef __cplusplus
25735extern "C"
25736#endif
25737/* We use char because int might match the return type of a gcc2
25738 builtin and then its argument prototype would still apply. */
25739char dnet_ntoa ();
25740int
25741main ()
25742{
25743dnet_ntoa ();
25744 ;
25745 return 0;
25746}
25747_ACEOF
25748rm -f conftest.$ac_objext conftest$ac_exeext
25749if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25750 (eval $ac_link) 2>conftest.er1
a848cd7e 25751 ac_status=$?
ac1cb8d3
VS
25752 grep -v '^ *+' conftest.er1 >conftest.err
25753 rm -f conftest.er1
25754 cat conftest.err >&5
a848cd7e
SC
25755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25756 (exit $ac_status); } &&
89be85c2
VS
25757 { ac_try='test -z "$ac_c_werror_flag"
25758 || test ! -s conftest.err'
ac1cb8d3
VS
25759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25760 (eval $ac_try) 2>&5
25761 ac_status=$?
25762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25763 (exit $ac_status); }; } &&
25764 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25766 (eval $ac_try) 2>&5
25767 ac_status=$?
25768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25769 (exit $ac_status); }; }; then
25770 ac_cv_lib_dnet_stub_dnet_ntoa=yes
25771else
25772 echo "$as_me: failed program was:" >&5
25773sed 's/^/| /' conftest.$ac_ext >&5
25774
25775ac_cv_lib_dnet_stub_dnet_ntoa=no
25776fi
ac1cb8d3
VS
25777rm -f conftest.err conftest.$ac_objext \
25778 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25779LIBS=$ac_check_lib_save_LIBS
25780fi
25781echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
25782echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
25783if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
25784 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
25785fi
25786
25787 fi
25788fi
ac1cb8d3
VS
25789rm -f conftest.err conftest.$ac_objext \
25790 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25791 LIBS="$ac_xsave_LIBS"
25792
25793 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
25794 # to get the SysV transport functions.
25795 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
25796 # needs -lnsl.
25797 # The nsl library prevents programs from opening the X display
25798 # on Irix 5.2, according to T.E. Dickey.
25799 # The functions gethostbyname, getservbyname, and inet_addr are
25800 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
25801 echo "$as_me:$LINENO: checking for gethostbyname" >&5
25802echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
25803if test "${ac_cv_func_gethostbyname+set}" = set; then
25804 echo $ECHO_N "(cached) $ECHO_C" >&6
25805else
25806 cat >conftest.$ac_ext <<_ACEOF
25807/* confdefs.h. */
25808_ACEOF
25809cat confdefs.h >>conftest.$ac_ext
25810cat >>conftest.$ac_ext <<_ACEOF
25811/* end confdefs.h. */
ac1cb8d3
VS
25812/* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
25813 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25814#define gethostbyname innocuous_gethostbyname
25815
a848cd7e
SC
25816/* System header to define __stub macros and hopefully few prototypes,
25817 which can conflict with char gethostbyname (); below.
25818 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25819 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 25820
a848cd7e
SC
25821#ifdef __STDC__
25822# include <limits.h>
25823#else
25824# include <assert.h>
25825#endif
ac1cb8d3
VS
25826
25827#undef gethostbyname
25828
a848cd7e
SC
25829/* Override any gcc2 internal prototype to avoid an error. */
25830#ifdef __cplusplus
25831extern "C"
25832{
25833#endif
25834/* We use char because int might match the return type of a gcc2
25835 builtin and then its argument prototype would still apply. */
25836char gethostbyname ();
25837/* The GNU C library defines this for functions which it implements
25838 to always fail with ENOSYS. Some functions are actually named
25839 something starting with __ and the normal name is an alias. */
25840#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
25841choke me
25842#else
25843char (*f) () = gethostbyname;
25844#endif
25845#ifdef __cplusplus
25846}
25847#endif
25848
25849int
25850main ()
25851{
25852return f != gethostbyname;
25853 ;
25854 return 0;
25855}
25856_ACEOF
25857rm -f conftest.$ac_objext conftest$ac_exeext
25858if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25859 (eval $ac_link) 2>conftest.er1
a848cd7e 25860 ac_status=$?
ac1cb8d3
VS
25861 grep -v '^ *+' conftest.er1 >conftest.err
25862 rm -f conftest.er1
25863 cat conftest.err >&5
a848cd7e
SC
25864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25865 (exit $ac_status); } &&
89be85c2
VS
25866 { ac_try='test -z "$ac_c_werror_flag"
25867 || test ! -s conftest.err'
ac1cb8d3
VS
25868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25869 (eval $ac_try) 2>&5
25870 ac_status=$?
25871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25872 (exit $ac_status); }; } &&
25873 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25875 (eval $ac_try) 2>&5
25876 ac_status=$?
25877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25878 (exit $ac_status); }; }; then
25879 ac_cv_func_gethostbyname=yes
25880else
25881 echo "$as_me: failed program was:" >&5
25882sed 's/^/| /' conftest.$ac_ext >&5
25883
25884ac_cv_func_gethostbyname=no
25885fi
ac1cb8d3
VS
25886rm -f conftest.err conftest.$ac_objext \
25887 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25888fi
25889echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
25890echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
25891
25892 if test $ac_cv_func_gethostbyname = no; then
25893 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
25894echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
25895if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
25896 echo $ECHO_N "(cached) $ECHO_C" >&6
25897else
25898 ac_check_lib_save_LIBS=$LIBS
25899LIBS="-lnsl $LIBS"
25900cat >conftest.$ac_ext <<_ACEOF
25901/* confdefs.h. */
25902_ACEOF
25903cat confdefs.h >>conftest.$ac_ext
25904cat >>conftest.$ac_ext <<_ACEOF
25905/* end confdefs.h. */
25906
25907/* Override any gcc2 internal prototype to avoid an error. */
25908#ifdef __cplusplus
25909extern "C"
25910#endif
25911/* We use char because int might match the return type of a gcc2
25912 builtin and then its argument prototype would still apply. */
25913char gethostbyname ();
25914int
25915main ()
25916{
25917gethostbyname ();
25918 ;
25919 return 0;
25920}
25921_ACEOF
25922rm -f conftest.$ac_objext conftest$ac_exeext
25923if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3
VS
25924 (eval $ac_link) 2>conftest.er1
25925 ac_status=$?
25926 grep -v '^ *+' conftest.er1 >conftest.err
25927 rm -f conftest.er1
25928 cat conftest.err >&5
25929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25930 (exit $ac_status); } &&
89be85c2
VS
25931 { ac_try='test -z "$ac_c_werror_flag"
25932 || test ! -s conftest.err'
ac1cb8d3
VS
25933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25934 (eval $ac_try) 2>&5
25935 ac_status=$?
25936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25937 (exit $ac_status); }; } &&
25938 { ac_try='test -s conftest$ac_exeext'
25939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25940 (eval $ac_try) 2>&5
25941 ac_status=$?
25942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25943 (exit $ac_status); }; }; then
25944 ac_cv_lib_nsl_gethostbyname=yes
25945else
25946 echo "$as_me: failed program was:" >&5
25947sed 's/^/| /' conftest.$ac_ext >&5
25948
25949ac_cv_lib_nsl_gethostbyname=no
25950fi
25951rm -f conftest.err conftest.$ac_objext \
25952 conftest$ac_exeext conftest.$ac_ext
25953LIBS=$ac_check_lib_save_LIBS
25954fi
25955echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
25956echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
25957if test $ac_cv_lib_nsl_gethostbyname = yes; then
25958 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
25959fi
25960
25961 if test $ac_cv_lib_nsl_gethostbyname = no; then
25962 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
25963echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
25964if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
25965 echo $ECHO_N "(cached) $ECHO_C" >&6
25966else
25967 ac_check_lib_save_LIBS=$LIBS
25968LIBS="-lbsd $LIBS"
25969cat >conftest.$ac_ext <<_ACEOF
25970/* confdefs.h. */
25971_ACEOF
25972cat confdefs.h >>conftest.$ac_ext
25973cat >>conftest.$ac_ext <<_ACEOF
25974/* end confdefs.h. */
25975
25976/* Override any gcc2 internal prototype to avoid an error. */
25977#ifdef __cplusplus
25978extern "C"
25979#endif
25980/* We use char because int might match the return type of a gcc2
25981 builtin and then its argument prototype would still apply. */
25982char gethostbyname ();
25983int
25984main ()
25985{
25986gethostbyname ();
25987 ;
25988 return 0;
25989}
25990_ACEOF
25991rm -f conftest.$ac_objext conftest$ac_exeext
25992if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25993 (eval $ac_link) 2>conftest.er1
a848cd7e 25994 ac_status=$?
ac1cb8d3
VS
25995 grep -v '^ *+' conftest.er1 >conftest.err
25996 rm -f conftest.er1
25997 cat conftest.err >&5
a848cd7e
SC
25998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25999 (exit $ac_status); } &&
89be85c2
VS
26000 { ac_try='test -z "$ac_c_werror_flag"
26001 || test ! -s conftest.err'
a848cd7e
SC
26002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26003 (eval $ac_try) 2>&5
26004 ac_status=$?
26005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ac1cb8d3
VS
26006 (exit $ac_status); }; } &&
26007 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26009 (eval $ac_try) 2>&5
26010 ac_status=$?
26011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26012 (exit $ac_status); }; }; then
26013 ac_cv_lib_bsd_gethostbyname=yes
26014else
26015 echo "$as_me: failed program was:" >&5
26016sed 's/^/| /' conftest.$ac_ext >&5
26017
26018ac_cv_lib_bsd_gethostbyname=no
26019fi
ac1cb8d3
VS
26020rm -f conftest.err conftest.$ac_objext \
26021 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26022LIBS=$ac_check_lib_save_LIBS
26023fi
26024echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
26025echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
26026if test $ac_cv_lib_bsd_gethostbyname = yes; then
26027 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
26028fi
26029
26030 fi
26031 fi
26032
26033 # lieder@skyler.mavd.honeywell.com says without -lsocket,
26034 # socket/setsockopt and other routines are undefined under SCO ODT
26035 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
26036 # on later versions), says Simon Leinen: it contains gethostby*
26037 # variants that don't use the name server (or something). -lsocket
26038 # must be given before -lnsl if both are needed. We assume that
26039 # if connect needs -lnsl, so does gethostbyname.
26040 echo "$as_me:$LINENO: checking for connect" >&5
26041echo $ECHO_N "checking for connect... $ECHO_C" >&6
26042if test "${ac_cv_func_connect+set}" = set; then
26043 echo $ECHO_N "(cached) $ECHO_C" >&6
26044else
26045 cat >conftest.$ac_ext <<_ACEOF
26046/* confdefs.h. */
26047_ACEOF
26048cat confdefs.h >>conftest.$ac_ext
26049cat >>conftest.$ac_ext <<_ACEOF
26050/* end confdefs.h. */
ac1cb8d3
VS
26051/* Define connect to an innocuous variant, in case <limits.h> declares connect.
26052 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26053#define connect innocuous_connect
26054
a848cd7e
SC
26055/* System header to define __stub macros and hopefully few prototypes,
26056 which can conflict with char connect (); below.
26057 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26058 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 26059
a848cd7e
SC
26060#ifdef __STDC__
26061# include <limits.h>
26062#else
26063# include <assert.h>
26064#endif
ac1cb8d3
VS
26065
26066#undef connect
26067
a848cd7e
SC
26068/* Override any gcc2 internal prototype to avoid an error. */
26069#ifdef __cplusplus
26070extern "C"
26071{
26072#endif
26073/* We use char because int might match the return type of a gcc2
26074 builtin and then its argument prototype would still apply. */
26075char connect ();
26076/* The GNU C library defines this for functions which it implements
26077 to always fail with ENOSYS. Some functions are actually named
26078 something starting with __ and the normal name is an alias. */
26079#if defined (__stub_connect) || defined (__stub___connect)
26080choke me
26081#else
26082char (*f) () = connect;
26083#endif
26084#ifdef __cplusplus
26085}
26086#endif
26087
26088int
26089main ()
26090{
26091return f != connect;
26092 ;
26093 return 0;
26094}
26095_ACEOF
26096rm -f conftest.$ac_objext conftest$ac_exeext
26097if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26098 (eval $ac_link) 2>conftest.er1
a848cd7e 26099 ac_status=$?
ac1cb8d3
VS
26100 grep -v '^ *+' conftest.er1 >conftest.err
26101 rm -f conftest.er1
26102 cat conftest.err >&5
a848cd7e
SC
26103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26104 (exit $ac_status); } &&
89be85c2
VS
26105 { ac_try='test -z "$ac_c_werror_flag"
26106 || test ! -s conftest.err'
ac1cb8d3
VS
26107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26108 (eval $ac_try) 2>&5
26109 ac_status=$?
26110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26111 (exit $ac_status); }; } &&
26112 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26114 (eval $ac_try) 2>&5
26115 ac_status=$?
26116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26117 (exit $ac_status); }; }; then
26118 ac_cv_func_connect=yes
26119else
26120 echo "$as_me: failed program was:" >&5
26121sed 's/^/| /' conftest.$ac_ext >&5
26122
26123ac_cv_func_connect=no
26124fi
ac1cb8d3
VS
26125rm -f conftest.err conftest.$ac_objext \
26126 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26127fi
26128echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
26129echo "${ECHO_T}$ac_cv_func_connect" >&6
26130
26131 if test $ac_cv_func_connect = no; then
26132 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
26133echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
26134if test "${ac_cv_lib_socket_connect+set}" = set; then
26135 echo $ECHO_N "(cached) $ECHO_C" >&6
26136else
26137 ac_check_lib_save_LIBS=$LIBS
26138LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
26139cat >conftest.$ac_ext <<_ACEOF
26140/* confdefs.h. */
26141_ACEOF
26142cat confdefs.h >>conftest.$ac_ext
26143cat >>conftest.$ac_ext <<_ACEOF
26144/* end confdefs.h. */
26145
26146/* Override any gcc2 internal prototype to avoid an error. */
26147#ifdef __cplusplus
26148extern "C"
26149#endif
26150/* We use char because int might match the return type of a gcc2
26151 builtin and then its argument prototype would still apply. */
26152char connect ();
26153int
26154main ()
26155{
26156connect ();
26157 ;
26158 return 0;
26159}
26160_ACEOF
26161rm -f conftest.$ac_objext conftest$ac_exeext
26162if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26163 (eval $ac_link) 2>conftest.er1
a848cd7e 26164 ac_status=$?
ac1cb8d3
VS
26165 grep -v '^ *+' conftest.er1 >conftest.err
26166 rm -f conftest.er1
26167 cat conftest.err >&5
a848cd7e
SC
26168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26169 (exit $ac_status); } &&
89be85c2
VS
26170 { ac_try='test -z "$ac_c_werror_flag"
26171 || test ! -s conftest.err'
ac1cb8d3
VS
26172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26173 (eval $ac_try) 2>&5
26174 ac_status=$?
26175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26176 (exit $ac_status); }; } &&
26177 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26179 (eval $ac_try) 2>&5
26180 ac_status=$?
26181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26182 (exit $ac_status); }; }; then
26183 ac_cv_lib_socket_connect=yes
26184else
26185 echo "$as_me: failed program was:" >&5
26186sed 's/^/| /' conftest.$ac_ext >&5
26187
26188ac_cv_lib_socket_connect=no
26189fi
ac1cb8d3
VS
26190rm -f conftest.err conftest.$ac_objext \
26191 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26192LIBS=$ac_check_lib_save_LIBS
26193fi
26194echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
26195echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
26196if test $ac_cv_lib_socket_connect = yes; then
26197 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
26198fi
26199
26200 fi
26201
26202 # Guillermo Gomez says -lposix is necessary on A/UX.
26203 echo "$as_me:$LINENO: checking for remove" >&5
26204echo $ECHO_N "checking for remove... $ECHO_C" >&6
26205if test "${ac_cv_func_remove+set}" = set; then
26206 echo $ECHO_N "(cached) $ECHO_C" >&6
26207else
26208 cat >conftest.$ac_ext <<_ACEOF
26209/* confdefs.h. */
26210_ACEOF
26211cat confdefs.h >>conftest.$ac_ext
26212cat >>conftest.$ac_ext <<_ACEOF
26213/* end confdefs.h. */
ac1cb8d3
VS
26214/* Define remove to an innocuous variant, in case <limits.h> declares remove.
26215 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26216#define remove innocuous_remove
26217
a848cd7e
SC
26218/* System header to define __stub macros and hopefully few prototypes,
26219 which can conflict with char remove (); below.
26220 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26221 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 26222
a848cd7e
SC
26223#ifdef __STDC__
26224# include <limits.h>
26225#else
26226# include <assert.h>
26227#endif
ac1cb8d3
VS
26228
26229#undef remove
26230
a848cd7e
SC
26231/* Override any gcc2 internal prototype to avoid an error. */
26232#ifdef __cplusplus
26233extern "C"
26234{
26235#endif
26236/* We use char because int might match the return type of a gcc2
26237 builtin and then its argument prototype would still apply. */
26238char remove ();
26239/* The GNU C library defines this for functions which it implements
26240 to always fail with ENOSYS. Some functions are actually named
26241 something starting with __ and the normal name is an alias. */
26242#if defined (__stub_remove) || defined (__stub___remove)
26243choke me
26244#else
26245char (*f) () = remove;
26246#endif
26247#ifdef __cplusplus
26248}
26249#endif
26250
26251int
26252main ()
26253{
26254return f != remove;
26255 ;
26256 return 0;
26257}
26258_ACEOF
26259rm -f conftest.$ac_objext conftest$ac_exeext
26260if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26261 (eval $ac_link) 2>conftest.er1
a848cd7e 26262 ac_status=$?
ac1cb8d3
VS
26263 grep -v '^ *+' conftest.er1 >conftest.err
26264 rm -f conftest.er1
26265 cat conftest.err >&5
a848cd7e
SC
26266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26267 (exit $ac_status); } &&
89be85c2
VS
26268 { ac_try='test -z "$ac_c_werror_flag"
26269 || test ! -s conftest.err'
ac1cb8d3
VS
26270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26271 (eval $ac_try) 2>&5
26272 ac_status=$?
26273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26274 (exit $ac_status); }; } &&
26275 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26277 (eval $ac_try) 2>&5
26278 ac_status=$?
26279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26280 (exit $ac_status); }; }; then
26281 ac_cv_func_remove=yes
26282else
26283 echo "$as_me: failed program was:" >&5
26284sed 's/^/| /' conftest.$ac_ext >&5
26285
26286ac_cv_func_remove=no
26287fi
ac1cb8d3
VS
26288rm -f conftest.err conftest.$ac_objext \
26289 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26290fi
26291echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
26292echo "${ECHO_T}$ac_cv_func_remove" >&6
26293
26294 if test $ac_cv_func_remove = no; then
26295 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
26296echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
26297if test "${ac_cv_lib_posix_remove+set}" = set; then
26298 echo $ECHO_N "(cached) $ECHO_C" >&6
26299else
26300 ac_check_lib_save_LIBS=$LIBS
26301LIBS="-lposix $LIBS"
26302cat >conftest.$ac_ext <<_ACEOF
26303/* confdefs.h. */
26304_ACEOF
26305cat confdefs.h >>conftest.$ac_ext
26306cat >>conftest.$ac_ext <<_ACEOF
26307/* end confdefs.h. */
26308
26309/* Override any gcc2 internal prototype to avoid an error. */
26310#ifdef __cplusplus
26311extern "C"
26312#endif
26313/* We use char because int might match the return type of a gcc2
26314 builtin and then its argument prototype would still apply. */
26315char remove ();
26316int
26317main ()
26318{
26319remove ();
26320 ;
26321 return 0;
26322}
26323_ACEOF
26324rm -f conftest.$ac_objext conftest$ac_exeext
26325if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26326 (eval $ac_link) 2>conftest.er1
a848cd7e 26327 ac_status=$?
ac1cb8d3
VS
26328 grep -v '^ *+' conftest.er1 >conftest.err
26329 rm -f conftest.er1
26330 cat conftest.err >&5
a848cd7e
SC
26331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26332 (exit $ac_status); } &&
89be85c2
VS
26333 { ac_try='test -z "$ac_c_werror_flag"
26334 || test ! -s conftest.err'
ac1cb8d3
VS
26335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26336 (eval $ac_try) 2>&5
26337 ac_status=$?
26338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26339 (exit $ac_status); }; } &&
26340 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26342 (eval $ac_try) 2>&5
26343 ac_status=$?
26344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26345 (exit $ac_status); }; }; then
26346 ac_cv_lib_posix_remove=yes
26347else
26348 echo "$as_me: failed program was:" >&5
26349sed 's/^/| /' conftest.$ac_ext >&5
26350
26351ac_cv_lib_posix_remove=no
26352fi
ac1cb8d3
VS
26353rm -f conftest.err conftest.$ac_objext \
26354 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26355LIBS=$ac_check_lib_save_LIBS
26356fi
26357echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
26358echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
26359if test $ac_cv_lib_posix_remove = yes; then
26360 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
26361fi
26362
26363 fi
26364
26365 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
26366 echo "$as_me:$LINENO: checking for shmat" >&5
26367echo $ECHO_N "checking for shmat... $ECHO_C" >&6
26368if test "${ac_cv_func_shmat+set}" = set; then
26369 echo $ECHO_N "(cached) $ECHO_C" >&6
26370else
26371 cat >conftest.$ac_ext <<_ACEOF
26372/* confdefs.h. */
26373_ACEOF
26374cat confdefs.h >>conftest.$ac_ext
26375cat >>conftest.$ac_ext <<_ACEOF
26376/* end confdefs.h. */
ac1cb8d3
VS
26377/* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
26378 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26379#define shmat innocuous_shmat
26380
a848cd7e
SC
26381/* System header to define __stub macros and hopefully few prototypes,
26382 which can conflict with char shmat (); below.
26383 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26384 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 26385
a848cd7e
SC
26386#ifdef __STDC__
26387# include <limits.h>
26388#else
26389# include <assert.h>
26390#endif
ac1cb8d3
VS
26391
26392#undef shmat
26393
a848cd7e
SC
26394/* Override any gcc2 internal prototype to avoid an error. */
26395#ifdef __cplusplus
26396extern "C"
26397{
26398#endif
26399/* We use char because int might match the return type of a gcc2
26400 builtin and then its argument prototype would still apply. */
26401char shmat ();
26402/* The GNU C library defines this for functions which it implements
26403 to always fail with ENOSYS. Some functions are actually named
26404 something starting with __ and the normal name is an alias. */
26405#if defined (__stub_shmat) || defined (__stub___shmat)
26406choke me
26407#else
26408char (*f) () = shmat;
26409#endif
26410#ifdef __cplusplus
26411}
26412#endif
26413
26414int
26415main ()
26416{
26417return f != shmat;
26418 ;
26419 return 0;
26420}
26421_ACEOF
26422rm -f conftest.$ac_objext conftest$ac_exeext
26423if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26424 (eval $ac_link) 2>conftest.er1
a848cd7e 26425 ac_status=$?
ac1cb8d3
VS
26426 grep -v '^ *+' conftest.er1 >conftest.err
26427 rm -f conftest.er1
26428 cat conftest.err >&5
a848cd7e
SC
26429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26430 (exit $ac_status); } &&
89be85c2
VS
26431 { ac_try='test -z "$ac_c_werror_flag"
26432 || test ! -s conftest.err'
ac1cb8d3
VS
26433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26434 (eval $ac_try) 2>&5
26435 ac_status=$?
26436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26437 (exit $ac_status); }; } &&
26438 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26440 (eval $ac_try) 2>&5
26441 ac_status=$?
26442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26443 (exit $ac_status); }; }; then
26444 ac_cv_func_shmat=yes
26445else
26446 echo "$as_me: failed program was:" >&5
26447sed 's/^/| /' conftest.$ac_ext >&5
26448
26449ac_cv_func_shmat=no
26450fi
ac1cb8d3
VS
26451rm -f conftest.err conftest.$ac_objext \
26452 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26453fi
26454echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
26455echo "${ECHO_T}$ac_cv_func_shmat" >&6
26456
26457 if test $ac_cv_func_shmat = no; then
26458 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
26459echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
26460if test "${ac_cv_lib_ipc_shmat+set}" = set; then
26461 echo $ECHO_N "(cached) $ECHO_C" >&6
26462else
26463 ac_check_lib_save_LIBS=$LIBS
26464LIBS="-lipc $LIBS"
26465cat >conftest.$ac_ext <<_ACEOF
26466/* confdefs.h. */
26467_ACEOF
26468cat confdefs.h >>conftest.$ac_ext
26469cat >>conftest.$ac_ext <<_ACEOF
26470/* end confdefs.h. */
26471
26472/* Override any gcc2 internal prototype to avoid an error. */
26473#ifdef __cplusplus
26474extern "C"
26475#endif
26476/* We use char because int might match the return type of a gcc2
26477 builtin and then its argument prototype would still apply. */
26478char shmat ();
26479int
26480main ()
26481{
26482shmat ();
26483 ;
26484 return 0;
26485}
26486_ACEOF
26487rm -f conftest.$ac_objext conftest$ac_exeext
26488if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26489 (eval $ac_link) 2>conftest.er1
a848cd7e 26490 ac_status=$?
ac1cb8d3
VS
26491 grep -v '^ *+' conftest.er1 >conftest.err
26492 rm -f conftest.er1
26493 cat conftest.err >&5
a848cd7e
SC
26494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26495 (exit $ac_status); } &&
89be85c2
VS
26496 { ac_try='test -z "$ac_c_werror_flag"
26497 || test ! -s conftest.err'
ac1cb8d3
VS
26498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26499 (eval $ac_try) 2>&5
26500 ac_status=$?
26501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26502 (exit $ac_status); }; } &&
26503 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
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); }; }; then
26509 ac_cv_lib_ipc_shmat=yes
26510else
26511 echo "$as_me: failed program was:" >&5
26512sed 's/^/| /' conftest.$ac_ext >&5
26513
26514ac_cv_lib_ipc_shmat=no
26515fi
ac1cb8d3
VS
26516rm -f conftest.err conftest.$ac_objext \
26517 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26518LIBS=$ac_check_lib_save_LIBS
26519fi
26520echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
26521echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
26522if test $ac_cv_lib_ipc_shmat = yes; then
26523 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
26524fi
26525
26526 fi
26527 fi
26528
26529 # Check for libraries that X11R6 Xt/Xaw programs need.
26530 ac_save_LDFLAGS=$LDFLAGS
26531 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
26532 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
26533 # check for ICE first), but we must link in the order -lSM -lICE or
26534 # we get undefined symbols. So assume we have SM if we have ICE.
26535 # These have to be linked with before -lX11, unlike the other
26536 # libraries we check for below, so use a different variable.
26537 # John Interrante, Karl Berry
26538 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
26539echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
26540if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
26541 echo $ECHO_N "(cached) $ECHO_C" >&6
26542else
26543 ac_check_lib_save_LIBS=$LIBS
26544LIBS="-lICE $X_EXTRA_LIBS $LIBS"
26545cat >conftest.$ac_ext <<_ACEOF
26546/* confdefs.h. */
26547_ACEOF
26548cat confdefs.h >>conftest.$ac_ext
26549cat >>conftest.$ac_ext <<_ACEOF
26550/* end confdefs.h. */
26551
26552/* Override any gcc2 internal prototype to avoid an error. */
26553#ifdef __cplusplus
26554extern "C"
26555#endif
26556/* We use char because int might match the return type of a gcc2
26557 builtin and then its argument prototype would still apply. */
26558char IceConnectionNumber ();
26559int
26560main ()
26561{
26562IceConnectionNumber ();
26563 ;
26564 return 0;
26565}
26566_ACEOF
26567rm -f conftest.$ac_objext conftest$ac_exeext
26568if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26569 (eval $ac_link) 2>conftest.er1
a848cd7e 26570 ac_status=$?
ac1cb8d3
VS
26571 grep -v '^ *+' conftest.er1 >conftest.err
26572 rm -f conftest.er1
26573 cat conftest.err >&5
a848cd7e
SC
26574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26575 (exit $ac_status); } &&
89be85c2
VS
26576 { ac_try='test -z "$ac_c_werror_flag"
26577 || test ! -s conftest.err'
ac1cb8d3
VS
26578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26579 (eval $ac_try) 2>&5
26580 ac_status=$?
26581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26582 (exit $ac_status); }; } &&
26583 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26585 (eval $ac_try) 2>&5
26586 ac_status=$?
26587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26588 (exit $ac_status); }; }; then
26589 ac_cv_lib_ICE_IceConnectionNumber=yes
26590else
26591 echo "$as_me: failed program was:" >&5
26592sed 's/^/| /' conftest.$ac_ext >&5
26593
26594ac_cv_lib_ICE_IceConnectionNumber=no
26595fi
ac1cb8d3
VS
26596rm -f conftest.err conftest.$ac_objext \
26597 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26598LIBS=$ac_check_lib_save_LIBS
26599fi
26600echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
26601echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
26602if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
26603 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
26604fi
26605
26606 LDFLAGS=$ac_save_LDFLAGS
26607
26608fi
26609
26610
26611 if test "$no_x" = "yes"; then
26612 { { echo "$as_me:$LINENO: error: X11 not found" >&5
26613echo "$as_me: error: X11 not found" >&2;}
26614 { (exit please use --x-includes and/or --x-libraries options); exit please use --x-includes and/or --x-libraries options; }; }
26615 fi
26616
74b84332
VS
26617 GUI_TK_LIBRARY=`echo $X_LIBS | sed 's/ -LNONE//' | sed 's/ -RNONE//'`
26618 TOOLKIT_INCLUDE=`echo $X_CFLAGS | sed 's/ -INONE//'`
a848cd7e
SC
26619 AFMINSTALL=afminstall
26620 COMPILED_X_PROGRAM=0
26621
74b84332
VS
26622 fi
26623
26624 if test "$wxUSE_X11" = 1; then
a848cd7e
SC
26625 if test "$wxUSE_NANOX" = "yes"; then
26626 echo "$as_me:$LINENO: checking for MicroWindows/NanoX distribution" >&5
26627echo $ECHO_N "checking for MicroWindows/NanoX distribution... $ECHO_C" >&6
26628 if test "x$MICROWIN" = x ; then
26629 echo "$as_me:$LINENO: result: not found" >&5
26630echo "${ECHO_T}not found" >&6
26631 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&5
26632echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&2;}
26633 { (exit 1); exit 1; }; }
26634 else
26635 echo "$as_me:$LINENO: result: $MICROWIN" >&5
26636echo "${ECHO_T}$MICROWIN" >&6
26637 cat >>confdefs.h <<\_ACEOF
26638#define wxUSE_NANOX 1
26639_ACEOF
26640
26641 fi
26642 fi
26643
26644 if test "$wxUSE_UNICODE" = "yes"; then
26645
26646 succeeded=no
26647
26648 if test -z "$PKG_CONFIG"; then
26649 # Extract the first word of "pkg-config", so it can be a program name with args.
26650set dummy pkg-config; ac_word=$2
26651echo "$as_me:$LINENO: checking for $ac_word" >&5
26652echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
26653if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
26654 echo $ECHO_N "(cached) $ECHO_C" >&6
26655else
26656 case $PKG_CONFIG in
26657 [\\/]* | ?:[\\/]*)
26658 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
26659 ;;
26660 *)
26661 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26662for as_dir in $PATH
26663do
26664 IFS=$as_save_IFS
26665 test -z "$as_dir" && as_dir=.
26666 for ac_exec_ext in '' $ac_executable_extensions; do
26667 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26668 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
26669 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26670 break 2
26671 fi
26672done
26673done
26674
26675 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
26676 ;;
26677esac
26678fi
26679PKG_CONFIG=$ac_cv_path_PKG_CONFIG
26680
26681if test -n "$PKG_CONFIG"; then
26682 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
26683echo "${ECHO_T}$PKG_CONFIG" >&6
26684else
26685 echo "$as_me:$LINENO: result: no" >&5
26686echo "${ECHO_T}no" >&6
26687fi
26688
26689 fi
26690
26691 if test "$PKG_CONFIG" = "no" ; then
26692 echo "*** The pkg-config script could not be found. Make sure it is"
26693 echo "*** in your path, or set the PKG_CONFIG environment variable"
26694 echo "*** to the full path to pkg-config."
26695 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
26696 else
26697 PKG_CONFIG_MIN_VERSION=0.9.0
26698 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
26699 echo "$as_me:$LINENO: checking for pangox" >&5
26700echo $ECHO_N "checking for pangox... $ECHO_C" >&6
26701
26702 if $PKG_CONFIG --exists "pangox" ; then
26703 echo "$as_me:$LINENO: result: yes" >&5
26704echo "${ECHO_T}yes" >&6
26705 succeeded=yes
26706
26707 echo "$as_me:$LINENO: checking PANGOX_CFLAGS" >&5
26708echo $ECHO_N "checking PANGOX_CFLAGS... $ECHO_C" >&6
26709 PANGOX_CFLAGS=`$PKG_CONFIG --cflags "pangox"`
26710 echo "$as_me:$LINENO: result: $PANGOX_CFLAGS" >&5
26711echo "${ECHO_T}$PANGOX_CFLAGS" >&6
26712
26713 echo "$as_me:$LINENO: checking PANGOX_LIBS" >&5
26714echo $ECHO_N "checking PANGOX_LIBS... $ECHO_C" >&6
26715 PANGOX_LIBS=`$PKG_CONFIG --libs "pangox"`
26716 echo "$as_me:$LINENO: result: $PANGOX_LIBS" >&5
26717echo "${ECHO_T}$PANGOX_LIBS" >&6
26718 else
26719 PANGOX_CFLAGS=""
26720 PANGOX_LIBS=""
26721 ## If we have a custom action on failure, don't print errors, but
26722 ## do set a variable so people can do so.
26723 PANGOX_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangox"`
26724
26725 fi
26726
26727
26728
26729 else
26730 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
26731 echo "*** See http://www.freedesktop.org/software/pkgconfig"
26732 fi
26733 fi
26734
26735 if test $succeeded = yes; then
26736
26737 CXXFLAGS="$CXXFLAGS $PANGOX_CFLAGS"
26738 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOX_LIBS"
26739
26740 else
26741
26742 { { echo "$as_me:$LINENO: error: pangox library not found, library cannot be compiled in Unicode mode" >&5
26743echo "$as_me: error: pangox library not found, library cannot be compiled in Unicode mode" >&2;}
26744 { (exit 1); exit 1; }; }
26745
26746
26747 fi
26748
26749
26750 succeeded=no
26751
26752 if test -z "$PKG_CONFIG"; then
26753 # Extract the first word of "pkg-config", so it can be a program name with args.
26754set dummy pkg-config; ac_word=$2
26755echo "$as_me:$LINENO: checking for $ac_word" >&5
26756echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
26757if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
26758 echo $ECHO_N "(cached) $ECHO_C" >&6
26759else
26760 case $PKG_CONFIG in
26761 [\\/]* | ?:[\\/]*)
26762 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
26763 ;;
26764 *)
26765 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26766for as_dir in $PATH
26767do
26768 IFS=$as_save_IFS
26769 test -z "$as_dir" && as_dir=.
26770 for ac_exec_ext in '' $ac_executable_extensions; do
26771 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26772 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
26773 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26774 break 2
26775 fi
26776done
26777done
26778
26779 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
26780 ;;
26781esac
26782fi
26783PKG_CONFIG=$ac_cv_path_PKG_CONFIG
26784
26785if test -n "$PKG_CONFIG"; then
26786 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
26787echo "${ECHO_T}$PKG_CONFIG" >&6
26788else
26789 echo "$as_me:$LINENO: result: no" >&5
26790echo "${ECHO_T}no" >&6
26791fi
26792
26793 fi
26794
26795 if test "$PKG_CONFIG" = "no" ; then
26796 echo "*** The pkg-config script could not be found. Make sure it is"
26797 echo "*** in your path, or set the PKG_CONFIG environment variable"
26798 echo "*** to the full path to pkg-config."
26799 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
26800 else
26801 PKG_CONFIG_MIN_VERSION=0.9.0
26802 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
26803 echo "$as_me:$LINENO: checking for pangoft2" >&5
26804echo $ECHO_N "checking for pangoft2... $ECHO_C" >&6
26805
26806 if $PKG_CONFIG --exists "pangoft2" ; then
26807 echo "$as_me:$LINENO: result: yes" >&5
26808echo "${ECHO_T}yes" >&6
26809 succeeded=yes
26810
26811 echo "$as_me:$LINENO: checking PANGOFT2_CFLAGS" >&5
26812echo $ECHO_N "checking PANGOFT2_CFLAGS... $ECHO_C" >&6
26813 PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"`
26814 echo "$as_me:$LINENO: result: $PANGOFT2_CFLAGS" >&5
26815echo "${ECHO_T}$PANGOFT2_CFLAGS" >&6
26816
26817 echo "$as_me:$LINENO: checking PANGOFT2_LIBS" >&5
26818echo $ECHO_N "checking PANGOFT2_LIBS... $ECHO_C" >&6
26819 PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"`
26820 echo "$as_me:$LINENO: result: $PANGOFT2_LIBS" >&5
26821echo "${ECHO_T}$PANGOFT2_LIBS" >&6
26822 else
26823 PANGOFT2_CFLAGS=""
26824 PANGOFT2_LIBS=""
26825 ## If we have a custom action on failure, don't print errors, but
26826 ## do set a variable so people can do so.
26827 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
26828
26829 fi
26830
26831
26832
26833 else
26834 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
26835 echo "*** See http://www.freedesktop.org/software/pkgconfig"
26836 fi
26837 fi
26838
26839 if test $succeeded = yes; then
26840
26841 CXXFLAGS="$CXXFLAGS $PANGOFT2_CFLAGS"
26842 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOFT2_LIBS"
26843
26844 else
26845
26846 { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5
26847echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;}
26848 wxUSE_PRINTING_ARCHITECTURE="no"
26849
26850
26851 fi
26852
26853
26854 succeeded=no
26855
26856 if test -z "$PKG_CONFIG"; then
26857 # Extract the first word of "pkg-config", so it can be a program name with args.
26858set dummy pkg-config; ac_word=$2
26859echo "$as_me:$LINENO: checking for $ac_word" >&5
26860echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
26861if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
26862 echo $ECHO_N "(cached) $ECHO_C" >&6
26863else
26864 case $PKG_CONFIG in
26865 [\\/]* | ?:[\\/]*)
26866 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
26867 ;;
26868 *)
26869 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26870for as_dir in $PATH
26871do
26872 IFS=$as_save_IFS
26873 test -z "$as_dir" && as_dir=.
26874 for ac_exec_ext in '' $ac_executable_extensions; do
26875 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26876 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
26877 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26878 break 2
26879 fi
26880done
26881done
26882
26883 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
26884 ;;
26885esac
26886fi
26887PKG_CONFIG=$ac_cv_path_PKG_CONFIG
26888
26889if test -n "$PKG_CONFIG"; then
26890 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
26891echo "${ECHO_T}$PKG_CONFIG" >&6
26892else
26893 echo "$as_me:$LINENO: result: no" >&5
26894echo "${ECHO_T}no" >&6
26895fi
26896
26897 fi
26898
26899 if test "$PKG_CONFIG" = "no" ; then
26900 echo "*** The pkg-config script could not be found. Make sure it is"
26901 echo "*** in your path, or set the PKG_CONFIG environment variable"
26902 echo "*** to the full path to pkg-config."
26903 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
26904 else
26905 PKG_CONFIG_MIN_VERSION=0.9.0
26906 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
26907 echo "$as_me:$LINENO: checking for pangoxft" >&5
26908echo $ECHO_N "checking for pangoxft... $ECHO_C" >&6
26909
26910 if $PKG_CONFIG --exists "pangoxft" ; then
26911 echo "$as_me:$LINENO: result: yes" >&5
26912echo "${ECHO_T}yes" >&6
26913 succeeded=yes
26914
26915 echo "$as_me:$LINENO: checking PANGOXFT_CFLAGS" >&5
26916echo $ECHO_N "checking PANGOXFT_CFLAGS... $ECHO_C" >&6
26917 PANGOXFT_CFLAGS=`$PKG_CONFIG --cflags "pangoxft"`
26918 echo "$as_me:$LINENO: result: $PANGOXFT_CFLAGS" >&5
26919echo "${ECHO_T}$PANGOXFT_CFLAGS" >&6
26920
26921 echo "$as_me:$LINENO: checking PANGOXFT_LIBS" >&5
26922echo $ECHO_N "checking PANGOXFT_LIBS... $ECHO_C" >&6
26923 PANGOXFT_LIBS=`$PKG_CONFIG --libs "pangoxft"`
26924 echo "$as_me:$LINENO: result: $PANGOXFT_LIBS" >&5
26925echo "${ECHO_T}$PANGOXFT_LIBS" >&6
26926 else
26927 PANGOXFT_CFLAGS=""
26928 PANGOXFT_LIBS=""
26929 ## If we have a custom action on failure, don't print errors, but
26930 ## do set a variable so people can do so.
26931 PANGOXFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoxft"`
26932
26933 fi
26934
26935
26936
26937 else
26938 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
26939 echo "*** See http://www.freedesktop.org/software/pkgconfig"
26940 fi
26941 fi
26942
26943 if test $succeeded = yes; then
26944
4ae1af05
MB
26945 cat >>confdefs.h <<\_ACEOF
26946#define HAVE_PANGO_XFT 1
26947_ACEOF
26948
a848cd7e
SC
26949 CXXFLAGS="$CXXFLAGS $PANGOXFT_CFLAGS"
26950 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOXFT_LIBS"
26951
26952 else
26953
26954 { echo "$as_me:$LINENO: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&5
26955echo "$as_me: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&2;}
26956
26957
26958 fi
26959
304205f1
VS
26960 save_CFLAGS="$CFLAGS"
26961 save_LIBS="$LIBS"
26962 CFLAGS="$CFLAGS $PANGOX_CFLAGS"
26963 LIBS="$LIBS $PANGOX_LIBS"
26964
26965for ac_func in pango_font_family_is_monospace
26966do
26967as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26968echo "$as_me:$LINENO: checking for $ac_func" >&5
26969echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26970if eval "test \"\${$as_ac_var+set}\" = set"; then
26971 echo $ECHO_N "(cached) $ECHO_C" >&6
26972else
26973 cat >conftest.$ac_ext <<_ACEOF
26974/* confdefs.h. */
26975_ACEOF
26976cat confdefs.h >>conftest.$ac_ext
26977cat >>conftest.$ac_ext <<_ACEOF
26978/* end confdefs.h. */
26979/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26980 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26981#define $ac_func innocuous_$ac_func
26982
26983/* System header to define __stub macros and hopefully few prototypes,
26984 which can conflict with char $ac_func (); below.
26985 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26986 <limits.h> exists even on freestanding compilers. */
26987
26988#ifdef __STDC__
26989# include <limits.h>
26990#else
26991# include <assert.h>
26992#endif
26993
26994#undef $ac_func
26995
26996/* Override any gcc2 internal prototype to avoid an error. */
26997#ifdef __cplusplus
26998extern "C"
26999{
27000#endif
27001/* We use char because int might match the return type of a gcc2
27002 builtin and then its argument prototype would still apply. */
27003char $ac_func ();
27004/* The GNU C library defines this for functions which it implements
27005 to always fail with ENOSYS. Some functions are actually named
27006 something starting with __ and the normal name is an alias. */
27007#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27008choke me
27009#else
27010char (*f) () = $ac_func;
27011#endif
27012#ifdef __cplusplus
27013}
27014#endif
27015
27016int
27017main ()
27018{
27019return f != $ac_func;
27020 ;
27021 return 0;
27022}
27023_ACEOF
27024rm -f conftest.$ac_objext conftest$ac_exeext
27025if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27026 (eval $ac_link) 2>conftest.er1
27027 ac_status=$?
27028 grep -v '^ *+' conftest.er1 >conftest.err
27029 rm -f conftest.er1
27030 cat conftest.err >&5
27031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27032 (exit $ac_status); } &&
89be85c2
VS
27033 { ac_try='test -z "$ac_c_werror_flag"
27034 || test ! -s conftest.err'
304205f1
VS
27035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27036 (eval $ac_try) 2>&5
27037 ac_status=$?
27038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27039 (exit $ac_status); }; } &&
27040 { ac_try='test -s conftest$ac_exeext'
27041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27042 (eval $ac_try) 2>&5
27043 ac_status=$?
27044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27045 (exit $ac_status); }; }; then
27046 eval "$as_ac_var=yes"
27047else
27048 echo "$as_me: failed program was:" >&5
27049sed 's/^/| /' conftest.$ac_ext >&5
27050
27051eval "$as_ac_var=no"
27052fi
27053rm -f conftest.err conftest.$ac_objext \
27054 conftest$ac_exeext conftest.$ac_ext
27055fi
27056echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27057echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27058if test `eval echo '${'$as_ac_var'}'` = yes; then
27059 cat >>confdefs.h <<_ACEOF
27060#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27061_ACEOF
27062
27063fi
27064done
27065
27066 CFLAGS="$save_CFLAGS"
27067 LIBS="$save_LIBS"
a848cd7e
SC
27068 fi
27069
27070 wxUSE_UNIVERSAL="yes"
27071
27072 if test "$wxUSE_NANOX" = "yes"; then
27073 TOOLKIT_INCLUDE="-I\$(top_srcdir)/include/wx/x11/nanox -I\$(MICROWIN)/src/include $TOOLKIT_INCLUDE"
27074 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"
27075 GUI_TK_LIBRARY="$GUI_TK_LIBRARY \$(MICROWIN)/src/lib/libnano-X.a"
27076 else
27077 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lX11"
27078 fi
27079
a848cd7e
SC
27080 TOOLKIT=X11
27081 GUIDIST=X11_DIST
27082 fi
27083
27084 if test "$wxUSE_MOTIF" = 1; then
74b84332
VS
27085 echo "$as_me:$LINENO: checking for Motif/Lesstif headers" >&5
27086echo $ECHO_N "checking for Motif/Lesstif headers... $ECHO_C" >&6
a848cd7e 27087
74b84332
VS
27088ac_find_includes=
27089for ac_dir in $SEARCH_INCLUDE /usr/include;
27090 do
27091 if test -f "$ac_dir/Xm/Xm.h"; then
27092 ac_find_includes=$ac_dir
27093 break
27094 fi
27095 done
a848cd7e 27096
74b84332
VS
27097 if test "$ac_find_includes" != "" ; then
27098 echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
27099echo "${ECHO_T}found in $ac_find_includes" >&6
27100
27101 if test "x$ac_find_includes" = "x/usr/include"; then
27102 ac_path_to_include=""
27103 else
27104 echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null
27105 result=$?
27106 if test $result = 0; then
27107 ac_path_to_include=""
27108 else
27109 ac_path_to_include=" -I$ac_find_includes"
27110 fi
a848cd7e
SC
27111 fi
27112
74b84332
VS
27113 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE$ac_path_to_include"
27114 else
27115 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
27116/* confdefs.h. */
27117_ACEOF
27118cat confdefs.h >>conftest.$ac_ext
27119cat >>conftest.$ac_ext <<_ACEOF
27120/* end confdefs.h. */
27121
74b84332
VS
27122 #include <Xm/Xm.h>
27123
a848cd7e
SC
27124int
27125main ()
27126{
27127
74b84332
VS
27128 int version;
27129 version = xmUseVersion;
27130
a848cd7e
SC
27131 ;
27132 return 0;
27133}
27134_ACEOF
74b84332
VS
27135rm -f conftest.$ac_objext
27136if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27137 (eval $ac_compile) 2>conftest.er1
a848cd7e 27138 ac_status=$?
ac1cb8d3
VS
27139 grep -v '^ *+' conftest.er1 >conftest.err
27140 rm -f conftest.er1
27141 cat conftest.err >&5
a848cd7e
SC
27142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27143 (exit $ac_status); } &&
89be85c2
VS
27144 { ac_try='test -z "$ac_c_werror_flag"
27145 || test ! -s conftest.err'
ac1cb8d3
VS
27146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27147 (eval $ac_try) 2>&5
27148 ac_status=$?
27149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27150 (exit $ac_status); }; } &&
74b84332 27151 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
27152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27153 (eval $ac_try) 2>&5
27154 ac_status=$?
27155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27156 (exit $ac_status); }; }; then
74b84332
VS
27157
27158 echo "$as_me:$LINENO: result: found in default search path" >&5
27159echo "${ECHO_T}found in default search path" >&6
27160 COMPILED_X_PROGRAM=1
27161
a848cd7e
SC
27162else
27163 echo "$as_me: failed program was:" >&5
27164sed 's/^/| /' conftest.$ac_ext >&5
27165
a848cd7e 27166
74b84332
VS
27167 echo "$as_me:$LINENO: result: no" >&5
27168echo "${ECHO_T}no" >&6
27169 { { echo "$as_me:$LINENO: error: please set CFLAGS to contain the location of Xm/Xm.h" >&5
27170echo "$as_me: error: please set CFLAGS to contain the location of Xm/Xm.h" >&2;}
27171 { (exit 1); exit 1; }; }
a848cd7e 27172
a848cd7e 27173
a848cd7e 27174fi
74b84332
VS
27175rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27176 fi
27177
27178 if test "$COMPILED_X_PROGRAM" = 0; then
27179 echo "$as_me:$LINENO: checking for Motif/Lesstif library" >&5
27180echo $ECHO_N "checking for Motif/Lesstif library... $ECHO_C" >&6
27181
27182ac_find_libraries=
27183for ac_dir in $SEARCH_LIB /usr/lib;
27184 do
27185 for ac_extension in a so sl dylib; do
27186 if test -f "$ac_dir/libXm.$ac_extension"; then
27187 ac_find_libraries=$ac_dir
27188 break 2
a848cd7e 27189 fi
74b84332
VS
27190 done
27191 done
a848cd7e 27192
74b84332
VS
27193 if test "$ac_find_libraries" != "" ; then
27194 echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5
27195echo "${ECHO_T}found at $ac_find_libraries" >&6
a848cd7e 27196
74b84332
VS
27197
27198 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
27199 result=$?
27200 if test $result = 0; then
27201 ac_path_to_link=""
a848cd7e 27202 else
74b84332
VS
27203 ac_path_to_link=" -L$ac_find_libraries"
27204 fi
27205
27206 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
27207 else
27208 save_CFLAGS=$CFLAGS
27209 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
27210
27211 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
27212/* confdefs.h. */
27213_ACEOF
27214cat confdefs.h >>conftest.$ac_ext
27215cat >>conftest.$ac_ext <<_ACEOF
27216/* end confdefs.h. */
27217
74b84332
VS
27218 #include <Xm/Xm.h>
27219
a848cd7e
SC
27220int
27221main ()
27222{
74b84332
VS
27223
27224 int version;
27225 version = xmUseVersion;
27226
a848cd7e
SC
27227 ;
27228 return 0;
27229}
27230_ACEOF
74b84332
VS
27231rm -f conftest.$ac_objext
27232if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27233 (eval $ac_compile) 2>conftest.er1
a848cd7e 27234 ac_status=$?
ac1cb8d3
VS
27235 grep -v '^ *+' conftest.er1 >conftest.err
27236 rm -f conftest.er1
27237 cat conftest.err >&5
a848cd7e
SC
27238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27239 (exit $ac_status); } &&
89be85c2
VS
27240 { ac_try='test -z "$ac_c_werror_flag"
27241 || test ! -s conftest.err'
ac1cb8d3
VS
27242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27243 (eval $ac_try) 2>&5
27244 ac_status=$?
27245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27246 (exit $ac_status); }; } &&
74b84332 27247 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
27248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27249 (eval $ac_try) 2>&5
27250 ac_status=$?
27251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27252 (exit $ac_status); }; }; then
74b84332
VS
27253
27254 echo "$as_me:$LINENO: result: found in default search path" >&5
27255echo "${ECHO_T}found in default search path" >&6
27256 COMPILED_X_PROGRAM=1
27257
a848cd7e
SC
27258else
27259 echo "$as_me: failed program was:" >&5
27260sed 's/^/| /' conftest.$ac_ext >&5
27261
74b84332
VS
27262
27263 echo "$as_me:$LINENO: result: no" >&5
27264echo "${ECHO_T}no" >&6
27265 { { echo "$as_me:$LINENO: error: please set LDFLAGS to contain the location of libXm" >&5
27266echo "$as_me: error: please set LDFLAGS to contain the location of libXm" >&2;}
27267 { (exit 1); exit 1; }; }
27268
27269
27270fi
27271rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27272
27273 CFLAGS=$save_CFLAGS
27274 fi
27275 fi
27276
27277 echo "$as_me:$LINENO: checking if we need -lXp and/or -lSM -lICE" >&5
27278echo $ECHO_N "checking if we need -lXp and/or -lSM -lICE... $ECHO_C" >&6
27279 libp_link=""
27280 libsm_ice_link=""
27281 libs_found=0
27282 for libp in "" " -lXp"; do
27283 if test "$libs_found" = "0"; then
27284 for libsm_ice in "" " -lSM -lICE"; do
27285 if test "$libs_found" = "0"; then
27286 save_LIBS="$LIBS"
27287 LIBS="$GUI_TK_LIBRARY -lXm ${libp} -lXmu -lXext -lXt${libsm_ice} -lX11"
27288 save_CFLAGS=$CFLAGS
27289 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
27290
27291 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
27292/* confdefs.h. */
27293_ACEOF
27294cat confdefs.h >>conftest.$ac_ext
27295cat >>conftest.$ac_ext <<_ACEOF
27296/* end confdefs.h. */
27297
74b84332
VS
27298 #include <Xm/Xm.h>
27299 #include <Xm/List.h>
27300
a848cd7e
SC
27301int
27302main ()
27303{
74b84332
VS
27304
27305 XmString string = NULL;
27306 Widget w = NULL;
27307 int position = 0;
27308 XmListAddItem(w, string, position);
27309
a848cd7e
SC
27310 ;
27311 return 0;
27312}
27313_ACEOF
27314rm -f conftest.$ac_objext conftest$ac_exeext
27315if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27316 (eval $ac_link) 2>conftest.er1
a848cd7e 27317 ac_status=$?
ac1cb8d3
VS
27318 grep -v '^ *+' conftest.er1 >conftest.err
27319 rm -f conftest.er1
27320 cat conftest.err >&5
a848cd7e
SC
27321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27322 (exit $ac_status); } &&
89be85c2
VS
27323 { ac_try='test -z "$ac_c_werror_flag"
27324 || test ! -s conftest.err'
ac1cb8d3
VS
27325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27326 (eval $ac_try) 2>&5
27327 ac_status=$?
27328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27329 (exit $ac_status); }; } &&
27330 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27332 (eval $ac_try) 2>&5
27333 ac_status=$?
27334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27335 (exit $ac_status); }; }; then
27336
27337 libp_link="$libp"
27338 libsm_ice_link="$libsm_ice"
27339 echo "$as_me:$LINENO: result: need${libp_link}${libsm_ice_link}" >&5
27340echo "${ECHO_T}need${libp_link}${libsm_ice_link}" >&6
27341 libs_found=1
27342
27343else
27344 echo "$as_me: failed program was:" >&5
27345sed 's/^/| /' conftest.$ac_ext >&5
27346
27347
27348
27349fi
ac1cb8d3
VS
27350rm -f conftest.err conftest.$ac_objext \
27351 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27352
27353 LIBS="$save_LIBS"
27354 CFLAGS=$save_CFLAGS
27355 fi
27356 done
27357 fi
27358 done
27359
27360 if test "$libs_found" = "0"; then
27361 echo "$as_me:$LINENO: result: can't find the right libraries" >&5
27362echo "${ECHO_T}can't find the right libraries" >&6
27363 { { echo "$as_me:$LINENO: error: can't link a simple motif program" >&5
27364echo "$as_me: error: can't link a simple motif program" >&2;}
27365 { (exit 1); exit 1; }; }
27366 fi
27367
27368 save_CFLAGS=$CFLAGS
27369 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
27370 echo "$as_me:$LINENO: checking for Motif 2" >&5
27371echo $ECHO_N "checking for Motif 2... $ECHO_C" >&6
27372 cat >conftest.$ac_ext <<_ACEOF
27373/* confdefs.h. */
27374_ACEOF
27375cat confdefs.h >>conftest.$ac_ext
27376cat >>conftest.$ac_ext <<_ACEOF
27377/* end confdefs.h. */
27378
27379 #include <Xm/Xm.h>
27380
27381int
27382main ()
27383{
27384
27385 #if XmVersion < 2000
27386 #error "Not Motif 2"
27387 #endif
27388
27389 ;
27390 return 0;
27391}
27392_ACEOF
27393rm -f conftest.$ac_objext
27394if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 27395 (eval $ac_compile) 2>conftest.er1
a848cd7e 27396 ac_status=$?
ac1cb8d3
VS
27397 grep -v '^ *+' conftest.er1 >conftest.err
27398 rm -f conftest.er1
27399 cat conftest.err >&5
a848cd7e
SC
27400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27401 (exit $ac_status); } &&
89be85c2
VS
27402 { ac_try='test -z "$ac_c_werror_flag"
27403 || test ! -s conftest.err'
ac1cb8d3
VS
27404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27405 (eval $ac_try) 2>&5
27406 ac_status=$?
27407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27408 (exit $ac_status); }; } &&
27409 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
27410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27411 (eval $ac_try) 2>&5
27412 ac_status=$?
27413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27414 (exit $ac_status); }; }; then
27415
27416 cat >>confdefs.h <<\_ACEOF
27417#define __WXMOTIF20__ 1
27418_ACEOF
27419
27420 echo "$as_me:$LINENO: result: found" >&5
27421echo "${ECHO_T}found" >&6
27422
27423else
27424 echo "$as_me: failed program was:" >&5
27425sed 's/^/| /' conftest.$ac_ext >&5
27426
27427
27428 cat >>confdefs.h <<\_ACEOF
27429#define __WXMOTIF20__ 0
27430_ACEOF
27431
27432 echo "$as_me:$LINENO: result: not found" >&5
27433echo "${ECHO_T}not found" >&6
27434
27435fi
ac1cb8d3 27436rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
27437 CFLAGS=$save_CFLAGS
27438
27439 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXm${libp_link} -lXmu -lXext -lXt${libsm_ice_link} -lX11"
a848cd7e
SC
27440 TOOLKIT=MOTIF
27441 GUIDIST=MOTIF_DIST
27442 fi
27443
74b84332 27444 if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
a848cd7e
SC
27445 if test "$wxUSE_LIBXPM" = "sys"; then
27446 echo "$as_me:$LINENO: checking for Xpm library" >&5
27447echo $ECHO_N "checking for Xpm library... $ECHO_C" >&6
27448
27449ac_find_libraries=
27450for ac_dir in $SEARCH_LIB /usr/lib;
27451 do
27452 for ac_extension in a so sl dylib; do
27453 if test -f "$ac_dir/libXpm.$ac_extension"; then
27454 ac_find_libraries=$ac_dir
27455 break 2
27456 fi
27457 done
27458 done
27459
27460 if test "$ac_find_libraries" != "" ; then
27461
27462 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
27463 result=$?
27464 if test $result = 0; then
27465 ac_path_to_link=""
27466 else
27467 ac_path_to_link=" -L$ac_find_libraries"
27468 fi
27469
27470 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
27471 echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5
27472echo "${ECHO_T}found at $ac_find_libraries" >&6
27473
27474 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
27475echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
27476if test "${wx_cv_x11_xpm_h+set}" = set; then
27477 echo $ECHO_N "(cached) $ECHO_C" >&6
27478else
27479
27480 save_CFLAGS=$CFLAGS
27481 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
27482
27483 cat >conftest.$ac_ext <<_ACEOF
27484/* confdefs.h. */
27485_ACEOF
27486cat confdefs.h >>conftest.$ac_ext
27487cat >>conftest.$ac_ext <<_ACEOF
27488/* end confdefs.h. */
27489
27490 #include <X11/xpm.h>
27491
27492int
27493main ()
27494{
27495
27496 int version;
27497 version = XpmLibraryVersion();
27498
27499 ;
27500 return 0;
27501}
27502_ACEOF
27503rm -f conftest.$ac_objext
27504if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 27505 (eval $ac_compile) 2>conftest.er1
a848cd7e 27506 ac_status=$?
ac1cb8d3
VS
27507 grep -v '^ *+' conftest.er1 >conftest.err
27508 rm -f conftest.er1
27509 cat conftest.err >&5
a848cd7e
SC
27510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27511 (exit $ac_status); } &&
89be85c2
VS
27512 { ac_try='test -z "$ac_c_werror_flag"
27513 || test ! -s conftest.err'
ac1cb8d3
VS
27514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27515 (eval $ac_try) 2>&5
27516 ac_status=$?
27517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27518 (exit $ac_status); }; } &&
27519 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
27520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27521 (eval $ac_try) 2>&5
27522 ac_status=$?
27523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27524 (exit $ac_status); }; }; then
27525 wx_cv_x11_xpm_h=yes
27526else
27527 echo "$as_me: failed program was:" >&5
27528sed 's/^/| /' conftest.$ac_ext >&5
27529
27530wx_cv_x11_xpm_h=no
27531
27532fi
ac1cb8d3 27533rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
27534
27535 CFLAGS=$save_CFLAGS
27536
27537
27538fi
27539echo "$as_me:$LINENO: result: $wx_cv_x11_xpm_h" >&5
27540echo "${ECHO_T}$wx_cv_x11_xpm_h" >&6
27541
27542 if test $wx_cv_x11_xpm_h = "yes"; then
27543 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXpm"
27544 cat >>confdefs.h <<\_ACEOF
27545#define wxHAVE_LIB_XPM 1
27546_ACEOF
27547
27548 else
27549 { echo "$as_me:$LINENO: WARNING: built-in less efficient XPM decoder will be used" >&5
27550echo "$as_me: WARNING: built-in less efficient XPM decoder will be used" >&2;}
27551 fi
27552 fi
27553
27554 fi
27555
27556 echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
27557echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6
27558if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
27559 echo $ECHO_N "(cached) $ECHO_C" >&6
27560else
27561 ac_check_lib_save_LIBS=$LIBS
27562LIBS="-lXext $GUI_TK_LIBRARY -lX11 $LIBS"
27563cat >conftest.$ac_ext <<_ACEOF
27564/* confdefs.h. */
27565_ACEOF
27566cat confdefs.h >>conftest.$ac_ext
27567cat >>conftest.$ac_ext <<_ACEOF
27568/* end confdefs.h. */
27569
27570/* Override any gcc2 internal prototype to avoid an error. */
27571#ifdef __cplusplus
27572extern "C"
27573#endif
27574/* We use char because int might match the return type of a gcc2
27575 builtin and then its argument prototype would still apply. */
27576char XShapeQueryExtension ();
27577int
27578main ()
27579{
27580XShapeQueryExtension ();
27581 ;
27582 return 0;
27583}
27584_ACEOF
27585rm -f conftest.$ac_objext conftest$ac_exeext
27586if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27587 (eval $ac_link) 2>conftest.er1
a848cd7e 27588 ac_status=$?
ac1cb8d3
VS
27589 grep -v '^ *+' conftest.er1 >conftest.err
27590 rm -f conftest.er1
27591 cat conftest.err >&5
a848cd7e
SC
27592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27593 (exit $ac_status); } &&
89be85c2
VS
27594 { ac_try='test -z "$ac_c_werror_flag"
27595 || test ! -s conftest.err'
ac1cb8d3
VS
27596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27597 (eval $ac_try) 2>&5
27598 ac_status=$?
27599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27600 (exit $ac_status); }; } &&
27601 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27603 (eval $ac_try) 2>&5
27604 ac_status=$?
27605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27606 (exit $ac_status); }; }; then
27607 ac_cv_lib_Xext_XShapeQueryExtension=yes
27608else
27609 echo "$as_me: failed program was:" >&5
27610sed 's/^/| /' conftest.$ac_ext >&5
27611
27612ac_cv_lib_Xext_XShapeQueryExtension=no
27613fi
ac1cb8d3
VS
27614rm -f conftest.err conftest.$ac_objext \
27615 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27616LIBS=$ac_check_lib_save_LIBS
27617fi
27618echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
27619echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6
27620if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
27621
27622 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXext"
27623 wxHAVE_XEXT_LIB=1
27624
27625fi
27626
27627
27628 if test "$wxHAVE_XEXT_LIB" = 1; then
27629 save_CFLAGS="$CFLAGS"
27630 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
27631
27632 echo "$as_me:$LINENO: checking for X11/extensions/shape.h" >&5
27633echo $ECHO_N "checking for X11/extensions/shape.h... $ECHO_C" >&6
27634 cat >conftest.$ac_ext <<_ACEOF
27635/* confdefs.h. */
27636_ACEOF
27637cat confdefs.h >>conftest.$ac_ext
27638cat >>conftest.$ac_ext <<_ACEOF
27639/* end confdefs.h. */
27640
27641 #include <X11/Xlib.h>
27642 #include <X11/extensions/shape.h>
27643
27644int
27645main ()
27646{
27647
27648 int dummy1, dummy2;
27649 XShapeQueryExtension((Display*)NULL,
27650 (int*)NULL, (int*)NULL);
27651
27652 ;
27653 return 0;
27654}
27655_ACEOF
27656rm -f conftest.$ac_objext
27657if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 27658 (eval $ac_compile) 2>conftest.er1
a848cd7e 27659 ac_status=$?
ac1cb8d3
VS
27660 grep -v '^ *+' conftest.er1 >conftest.err
27661 rm -f conftest.er1
27662 cat conftest.err >&5
a848cd7e
SC
27663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27664 (exit $ac_status); } &&
89be85c2
VS
27665 { ac_try='test -z "$ac_c_werror_flag"
27666 || test ! -s conftest.err'
ac1cb8d3
VS
27667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27668 (eval $ac_try) 2>&5
27669 ac_status=$?
27670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27671 (exit $ac_status); }; } &&
27672 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
27673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27674 (eval $ac_try) 2>&5
27675 ac_status=$?
27676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27677 (exit $ac_status); }; }; then
27678
27679 cat >>confdefs.h <<\_ACEOF
27680#define HAVE_XSHAPE 1
27681_ACEOF
27682
27683 echo "$as_me:$LINENO: result: found" >&5
27684echo "${ECHO_T}found" >&6
27685
27686else
27687 echo "$as_me: failed program was:" >&5
27688sed 's/^/| /' conftest.$ac_ext >&5
27689
27690
27691 echo "$as_me:$LINENO: result: not found" >&5
27692echo "${ECHO_T}not found" >&6
27693
27694fi
ac1cb8d3 27695rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
27696 CFLAGS="$save_CFLAGS"
27697
27698 fi
27699 fi
27700
27701 if test "$wxUSE_MAC" = 1; then
27702 echo "$as_me:$LINENO: checking for compiler syntax to enable Pascal strings" >&5
27703echo $ECHO_N "checking for compiler syntax to enable Pascal strings... $ECHO_C" >&6
27704 if test "$GCC" = yes; then
27705 echo "$as_me:$LINENO: result: gcc" >&5
27706echo "${ECHO_T}gcc" >&6
27707 CPPFLAGS_PASCAL="-fpascal-strings"
27708 elif test "`echo $CXX | sed -e 's@.*/@@'`" = "xlC"; then
27709 echo "$as_me:$LINENO: result: xlc" >&5
27710echo "${ECHO_T}xlc" >&6
27711 CPPFLAGS_PASCAL="-qmacpstr"
27712 else
27713 echo "$as_me:$LINENO: result: none" >&5
27714echo "${ECHO_T}none" >&6
27715 fi
27716
1e9e8aba
DE
27717 if test "x$wxUSE_UNIX" = "xyes"; then
27718 CPPFLAGS="$CPPFLAGS $CPPFLAGS_PASCAL -I\${top_srcdir}/src/mac/carbon/morefilex -I/Developer/Headers/FlatCarbon"
27719 else
27720 CPPFLAGS="$CPPFLAGS $CPPFLAGS_PASCAL -I\${top_srcdir}/src/mac/carbon/morefilex -DTARGET_CARBON"
27721 fi
a848cd7e 27722
a848cd7e
SC
27723 TOOLKIT=MAC
27724 GUIDIST=MACX_DIST
dd21ced8 27725 WXBASEPORT="_carbon"
a848cd7e
SC
27726 fi
27727
27728 if test "$wxUSE_COCOA" = 1; then
a848cd7e
SC
27729 TOOLKIT=COCOA
27730 GUIDIST=COCOA_DIST
27731 fi
27732
27733 if test "$wxUSE_PM" = 1; then
27734 TOOLKIT=PM
de59c161
RD
27735 GUIDIST=PM_DIST
27736 echo "$as_me:$LINENO: checking for type SPBCDATA" >&5
27737echo $ECHO_N "checking for type SPBCDATA... $ECHO_C" >&6
27738if test "${wx_cv_spbcdata+set}" = set; then
27739 echo $ECHO_N "(cached) $ECHO_C" >&6
27740else
27741
27742 cat >conftest.$ac_ext <<_ACEOF
de59c161
RD
27743/* confdefs.h. */
27744_ACEOF
27745cat confdefs.h >>conftest.$ac_ext
27746cat >>conftest.$ac_ext <<_ACEOF
27747/* end confdefs.h. */
27748
27749 #define INCL_PM
27750 #include <os2.h>
27751
27752int
27753main ()
27754{
27755
27756 SPBCDATA test;
27757
27758 ;
27759 return 0;
27760}
27761_ACEOF
27762rm -f conftest.$ac_objext
27763if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 27764 (eval $ac_compile) 2>conftest.er1
de59c161 27765 ac_status=$?
ac1cb8d3
VS
27766 grep -v '^ *+' conftest.er1 >conftest.err
27767 rm -f conftest.er1
27768 cat conftest.err >&5
de59c161
RD
27769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27770 (exit $ac_status); } &&
89be85c2
VS
27771 { ac_try='test -z "$ac_c_werror_flag"
27772 || test ! -s conftest.err'
ac1cb8d3
VS
27773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27774 (eval $ac_try) 2>&5
27775 ac_status=$?
27776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27777 (exit $ac_status); }; } &&
27778 { ac_try='test -s conftest.$ac_objext'
de59c161
RD
27779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27780 (eval $ac_try) 2>&5
27781 ac_status=$?
27782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27783 (exit $ac_status); }; }; then
27784 wx_cv_spbcdata=yes
27785else
27786 echo "$as_me: failed program was:" >&5
27787sed 's/^/| /' conftest.$ac_ext >&5
27788
27789wx_cv_spbcdata=no
27790
27791fi
ac1cb8d3 27792rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
de59c161
RD
27793
27794
27795fi
27796echo "$as_me:$LINENO: result: $wx_cv_spbcdata" >&5
27797echo "${ECHO_T}$wx_cv_spbcdata" >&6
27798
27799 if test $wx_cv_spbcdata = "yes"; then
27800 cat >>confdefs.h <<\_ACEOF
27801#define HAVE_SPBCDATA 1
27802_ACEOF
27803
27804 fi
a848cd7e
SC
27805 fi
27806
27807 if test "$TOOLKIT" = "PM" ; then
27808 TOOLKIT_DIR="os2"
27809 else
27810 TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"`
27811 fi
27812
a848cd7e 27813 if test "$wxUSE_UNIVERSAL" = "yes"; then
a848cd7e
SC
27814 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__"
27815 WIDGET_SET=univ
a848cd7e
SC
27816 fi
27817
27818 GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST"
27819 DISTDIR="wx\$(TOOLKIT)"
27820else
27821 USE_GUI=0
27822
27823 TOOLKIT_DIR="base"
27824
27825 if test "$USE_WIN32" = 1 ; then
a848cd7e 27826 TOOLKIT="MSW"
a848cd7e
SC
27827 fi
27828
a848cd7e
SC
27829 GUIDIST="BASE_DIST"
27830 DISTDIR="wxBase"
27831fi
27832
27833
27834
27835
27836IODBC_C_SRC=""
27837
27838
27839if test "$TOOLKIT" != "MSW" ; then
27840
27841 if test "$wxUSE_ODBC" = "sys" -o "$wxUSE_ODBC" = "yes" ; then
27842
27843 if test "${ac_cv_header_sql_h+set}" = set; then
27844 echo "$as_me:$LINENO: checking for sql.h" >&5
27845echo $ECHO_N "checking for sql.h... $ECHO_C" >&6
27846if test "${ac_cv_header_sql_h+set}" = set; then
27847 echo $ECHO_N "(cached) $ECHO_C" >&6
27848fi
27849echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
27850echo "${ECHO_T}$ac_cv_header_sql_h" >&6
27851else
27852 # Is the header compilable?
27853echo "$as_me:$LINENO: checking sql.h usability" >&5
27854echo $ECHO_N "checking sql.h usability... $ECHO_C" >&6
27855cat >conftest.$ac_ext <<_ACEOF
27856/* confdefs.h. */
27857_ACEOF
27858cat confdefs.h >>conftest.$ac_ext
27859cat >>conftest.$ac_ext <<_ACEOF
27860/* end confdefs.h. */
27861$ac_includes_default
27862#include <sql.h>
27863_ACEOF
27864rm -f conftest.$ac_objext
27865if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 27866 (eval $ac_compile) 2>conftest.er1
a848cd7e 27867 ac_status=$?
ac1cb8d3
VS
27868 grep -v '^ *+' conftest.er1 >conftest.err
27869 rm -f conftest.er1
27870 cat conftest.err >&5
a848cd7e
SC
27871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27872 (exit $ac_status); } &&
89be85c2
VS
27873 { ac_try='test -z "$ac_c_werror_flag"
27874 || test ! -s conftest.err'
ac1cb8d3
VS
27875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27876 (eval $ac_try) 2>&5
27877 ac_status=$?
27878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27879 (exit $ac_status); }; } &&
27880 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
27881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27882 (eval $ac_try) 2>&5
27883 ac_status=$?
27884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27885 (exit $ac_status); }; }; then
27886 ac_header_compiler=yes
27887else
27888 echo "$as_me: failed program was:" >&5
27889sed 's/^/| /' conftest.$ac_ext >&5
27890
27891ac_header_compiler=no
27892fi
ac1cb8d3 27893rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
27894echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27895echo "${ECHO_T}$ac_header_compiler" >&6
27896
27897# Is the header present?
27898echo "$as_me:$LINENO: checking sql.h presence" >&5
27899echo $ECHO_N "checking sql.h presence... $ECHO_C" >&6
27900cat >conftest.$ac_ext <<_ACEOF
27901/* confdefs.h. */
27902_ACEOF
27903cat confdefs.h >>conftest.$ac_ext
27904cat >>conftest.$ac_ext <<_ACEOF
27905/* end confdefs.h. */
27906#include <sql.h>
27907_ACEOF
27908if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27909 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27910 ac_status=$?
27911 grep -v '^ *+' conftest.er1 >conftest.err
27912 rm -f conftest.er1
27913 cat conftest.err >&5
27914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27915 (exit $ac_status); } >/dev/null; then
27916 if test -s conftest.err; then
27917 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 27918 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
27919 else
27920 ac_cpp_err=
27921 fi
27922else
27923 ac_cpp_err=yes
27924fi
27925if test -z "$ac_cpp_err"; then
27926 ac_header_preproc=yes
27927else
27928 echo "$as_me: failed program was:" >&5
27929sed 's/^/| /' conftest.$ac_ext >&5
27930
27931 ac_header_preproc=no
27932fi
27933rm -f conftest.err conftest.$ac_ext
27934echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27935echo "${ECHO_T}$ac_header_preproc" >&6
27936
27937# So? What about this header?
ac1cb8d3
VS
27938case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27939 yes:no: )
a848cd7e
SC
27940 { echo "$as_me:$LINENO: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&5
27941echo "$as_me: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
27942 { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the compiler's result" >&5
27943echo "$as_me: WARNING: sql.h: proceeding with the compiler's result" >&2;}
27944 ac_header_preproc=yes
a848cd7e 27945 ;;
ac1cb8d3 27946 no:yes:* )
a848cd7e
SC
27947 { echo "$as_me:$LINENO: WARNING: sql.h: present but cannot be compiled" >&5
27948echo "$as_me: WARNING: sql.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
27949 { echo "$as_me:$LINENO: WARNING: sql.h: check for missing prerequisite headers?" >&5
27950echo "$as_me: WARNING: sql.h: check for missing prerequisite headers?" >&2;}
27951 { echo "$as_me:$LINENO: WARNING: sql.h: see the Autoconf documentation" >&5
27952echo "$as_me: WARNING: sql.h: see the Autoconf documentation" >&2;}
27953 { echo "$as_me:$LINENO: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&5
27954echo "$as_me: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
27955 { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the preprocessor's result" >&5
27956echo "$as_me: WARNING: sql.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
27957 { echo "$as_me:$LINENO: WARNING: sql.h: in the future, the compiler will take precedence" >&5
27958echo "$as_me: WARNING: sql.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
27959 (
27960 cat <<\_ASBOX
ac1cb8d3
VS
27961## ----------------------------------------- ##
27962## Report this to wx-dev@lists.wxwidgets.org ##
27963## ----------------------------------------- ##
a848cd7e
SC
27964_ASBOX
27965 ) |
27966 sed "s/^/$as_me: WARNING: /" >&2
27967 ;;
27968esac
27969echo "$as_me:$LINENO: checking for sql.h" >&5
27970echo $ECHO_N "checking for sql.h... $ECHO_C" >&6
27971if test "${ac_cv_header_sql_h+set}" = set; then
27972 echo $ECHO_N "(cached) $ECHO_C" >&6
27973else
27974 ac_cv_header_sql_h=$ac_header_preproc
27975fi
27976echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
27977echo "${ECHO_T}$ac_cv_header_sql_h" >&6
27978
27979fi
27980if test $ac_cv_header_sql_h = yes; then
27981 found_sql_h=1
27982fi
27983
27984
27985 if test "x$found_sql_h" = "x1" ; then
27986 echo "$as_me:$LINENO: checking for SQLAllocEnv in -liodbc" >&5
27987echo $ECHO_N "checking for SQLAllocEnv in -liodbc... $ECHO_C" >&6
27988if test "${ac_cv_lib_iodbc_SQLAllocEnv+set}" = set; then
27989 echo $ECHO_N "(cached) $ECHO_C" >&6
27990else
27991 ac_check_lib_save_LIBS=$LIBS
27992LIBS="-liodbc $LIBS"
27993cat >conftest.$ac_ext <<_ACEOF
27994/* confdefs.h. */
27995_ACEOF
27996cat confdefs.h >>conftest.$ac_ext
27997cat >>conftest.$ac_ext <<_ACEOF
27998/* end confdefs.h. */
27999
28000/* Override any gcc2 internal prototype to avoid an error. */
28001#ifdef __cplusplus
28002extern "C"
28003#endif
28004/* We use char because int might match the return type of a gcc2
28005 builtin and then its argument prototype would still apply. */
28006char SQLAllocEnv ();
28007int
28008main ()
28009{
28010SQLAllocEnv ();
28011 ;
28012 return 0;
28013}
28014_ACEOF
28015rm -f conftest.$ac_objext conftest$ac_exeext
28016if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28017 (eval $ac_link) 2>conftest.er1
a848cd7e 28018 ac_status=$?
ac1cb8d3
VS
28019 grep -v '^ *+' conftest.er1 >conftest.err
28020 rm -f conftest.er1
28021 cat conftest.err >&5
a848cd7e
SC
28022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28023 (exit $ac_status); } &&
89be85c2
VS
28024 { ac_try='test -z "$ac_c_werror_flag"
28025 || test ! -s conftest.err'
ac1cb8d3
VS
28026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28027 (eval $ac_try) 2>&5
28028 ac_status=$?
28029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28030 (exit $ac_status); }; } &&
28031 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28033 (eval $ac_try) 2>&5
28034 ac_status=$?
28035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28036 (exit $ac_status); }; }; then
28037 ac_cv_lib_iodbc_SQLAllocEnv=yes
28038else
28039 echo "$as_me: failed program was:" >&5
28040sed 's/^/| /' conftest.$ac_ext >&5
28041
28042ac_cv_lib_iodbc_SQLAllocEnv=no
28043fi
ac1cb8d3
VS
28044rm -f conftest.err conftest.$ac_objext \
28045 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28046LIBS=$ac_check_lib_save_LIBS
28047fi
28048echo "$as_me:$LINENO: result: $ac_cv_lib_iodbc_SQLAllocEnv" >&5
28049echo "${ECHO_T}$ac_cv_lib_iodbc_SQLAllocEnv" >&6
28050if test $ac_cv_lib_iodbc_SQLAllocEnv = yes; then
28051 ODBC_LINK=" -liodbc"
28052else
28053
28054 echo "$as_me:$LINENO: checking for SQLAllocEnv in -lunixodbc" >&5
28055echo $ECHO_N "checking for SQLAllocEnv in -lunixodbc... $ECHO_C" >&6
28056if test "${ac_cv_lib_unixodbc_SQLAllocEnv+set}" = set; then
28057 echo $ECHO_N "(cached) $ECHO_C" >&6
28058else
28059 ac_check_lib_save_LIBS=$LIBS
28060LIBS="-lunixodbc $LIBS"
28061cat >conftest.$ac_ext <<_ACEOF
28062/* confdefs.h. */
28063_ACEOF
28064cat confdefs.h >>conftest.$ac_ext
28065cat >>conftest.$ac_ext <<_ACEOF
28066/* end confdefs.h. */
28067
28068/* Override any gcc2 internal prototype to avoid an error. */
28069#ifdef __cplusplus
28070extern "C"
28071#endif
28072/* We use char because int might match the return type of a gcc2
28073 builtin and then its argument prototype would still apply. */
28074char SQLAllocEnv ();
28075int
28076main ()
28077{
28078SQLAllocEnv ();
28079 ;
28080 return 0;
28081}
28082_ACEOF
28083rm -f conftest.$ac_objext conftest$ac_exeext
28084if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28085 (eval $ac_link) 2>conftest.er1
a848cd7e 28086 ac_status=$?
ac1cb8d3
VS
28087 grep -v '^ *+' conftest.er1 >conftest.err
28088 rm -f conftest.er1
28089 cat conftest.err >&5
a848cd7e
SC
28090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28091 (exit $ac_status); } &&
89be85c2
VS
28092 { ac_try='test -z "$ac_c_werror_flag"
28093 || test ! -s conftest.err'
ac1cb8d3
VS
28094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28095 (eval $ac_try) 2>&5
28096 ac_status=$?
28097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28098 (exit $ac_status); }; } &&
28099 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28101 (eval $ac_try) 2>&5
28102 ac_status=$?
28103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28104 (exit $ac_status); }; }; then
28105 ac_cv_lib_unixodbc_SQLAllocEnv=yes
28106else
28107 echo "$as_me: failed program was:" >&5
28108sed 's/^/| /' conftest.$ac_ext >&5
28109
28110ac_cv_lib_unixodbc_SQLAllocEnv=no
28111fi
ac1cb8d3
VS
28112rm -f conftest.err conftest.$ac_objext \
28113 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28114LIBS=$ac_check_lib_save_LIBS
28115fi
28116echo "$as_me:$LINENO: result: $ac_cv_lib_unixodbc_SQLAllocEnv" >&5
28117echo "${ECHO_T}$ac_cv_lib_unixodbc_SQLAllocEnv" >&6
28118if test $ac_cv_lib_unixodbc_SQLAllocEnv = yes; then
28119 ODBC_LINK=" -lunixodbc"
28120else
28121
28122 echo "$as_me:$LINENO: checking for SQLAllocEnv in -lodbc" >&5
28123echo $ECHO_N "checking for SQLAllocEnv in -lodbc... $ECHO_C" >&6
28124if test "${ac_cv_lib_odbc_SQLAllocEnv+set}" = set; then
28125 echo $ECHO_N "(cached) $ECHO_C" >&6
28126else
28127 ac_check_lib_save_LIBS=$LIBS
28128LIBS="-lodbc $LIBS"
28129cat >conftest.$ac_ext <<_ACEOF
28130/* confdefs.h. */
28131_ACEOF
28132cat confdefs.h >>conftest.$ac_ext
28133cat >>conftest.$ac_ext <<_ACEOF
28134/* end confdefs.h. */
28135
28136/* Override any gcc2 internal prototype to avoid an error. */
28137#ifdef __cplusplus
28138extern "C"
28139#endif
28140/* We use char because int might match the return type of a gcc2
28141 builtin and then its argument prototype would still apply. */
28142char SQLAllocEnv ();
28143int
28144main ()
28145{
28146SQLAllocEnv ();
28147 ;
28148 return 0;
28149}
28150_ACEOF
28151rm -f conftest.$ac_objext conftest$ac_exeext
28152if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28153 (eval $ac_link) 2>conftest.er1
a848cd7e 28154 ac_status=$?
ac1cb8d3
VS
28155 grep -v '^ *+' conftest.er1 >conftest.err
28156 rm -f conftest.er1
28157 cat conftest.err >&5
a848cd7e
SC
28158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28159 (exit $ac_status); } &&
89be85c2
VS
28160 { ac_try='test -z "$ac_c_werror_flag"
28161 || test ! -s conftest.err'
ac1cb8d3
VS
28162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28163 (eval $ac_try) 2>&5
28164 ac_status=$?
28165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28166 (exit $ac_status); }; } &&
28167 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28169 (eval $ac_try) 2>&5
28170 ac_status=$?
28171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28172 (exit $ac_status); }; }; then
28173 ac_cv_lib_odbc_SQLAllocEnv=yes
28174else
28175 echo "$as_me: failed program was:" >&5
28176sed 's/^/| /' conftest.$ac_ext >&5
28177
28178ac_cv_lib_odbc_SQLAllocEnv=no
28179fi
ac1cb8d3
VS
28180rm -f conftest.err conftest.$ac_objext \
28181 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28182LIBS=$ac_check_lib_save_LIBS
28183fi
28184echo "$as_me:$LINENO: result: $ac_cv_lib_odbc_SQLAllocEnv" >&5
28185echo "${ECHO_T}$ac_cv_lib_odbc_SQLAllocEnv" >&6
28186if test $ac_cv_lib_odbc_SQLAllocEnv = yes; then
28187 ODBC_LINK=" -lodbc"
28188fi
28189
28190
28191fi
28192
28193
28194fi
28195
28196 fi
28197 if test "x$ODBC_LINK" = "x" ; then
28198 if test "$wxUSE_ODBC" = "sys" ; then
28199 { { echo "$as_me:$LINENO: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&5
28200echo "$as_me: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&2;}
28201 { (exit 1); exit 1; }; }
28202 else
28203 { echo "$as_me:$LINENO: WARNING: system ODBC library not found, will use built-in instead" >&5
28204echo "$as_me: WARNING: system ODBC library not found, will use built-in instead" >&2;}
28205 wxUSE_ODBC=builtin
28206 fi
28207 else
28208 wxUSE_ODBC=sys
28209 fi
28210 fi
a848cd7e 28211
2da0c077
RD
28212 if test "$wxUSE_ODBC" = "builtin" ; then
28213 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
28214#define wxUSE_BUILTIN_IODBC 1
28215_ACEOF
28216
a848cd7e
SC
28217 fi
28218fi
28219
2da0c077
RD
28220if test "$wxUSE_ODBC" != "no" ; then
28221 cat >>confdefs.h <<\_ACEOF
28222#define wxUSE_ODBC 1
28223_ACEOF
28224
28225 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db"
28226
28227 WXODBCFLAG="-D_IODBC_"
28228fi
a848cd7e 28229
01cb68df 28230
a848cd7e 28231if test "$wxUSE_DISPLAY" = "yes"; then
2a5d7a98 28232 if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_MAC" != 1 -a "$wxUSE_COCOA" != 1; then
a848cd7e
SC
28233 echo "$as_me:$LINENO: checking for Xinerama" >&5
28234echo $ECHO_N "checking for Xinerama... $ECHO_C" >&6
28235
28236ac_find_libraries=
28237for ac_dir in $SEARCH_LIB /usr/lib;
28238 do
28239 for ac_extension in a so sl dylib; do
28240 if test -f "$ac_dir/libXinerama.$ac_extension"; then
28241 ac_find_libraries=$ac_dir
28242 break 2
28243 fi
28244 done
28245 done
28246
28247 if test "$ac_find_libraries" != "" ; then
28248
28249 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
28250 result=$?
28251 if test $result = 0; then
28252 ac_path_to_link=""
28253 else
28254 ac_path_to_link=" -L$ac_find_libraries"
28255 fi
28256
28257 if test "$ac_path_to_link" != " -L/usr/lib" ; then
28258 LDFLAGS="$LDFLAGS $ac_path_to_link"
28259 fi
28260 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXinerama"
28261 echo "$as_me:$LINENO: result: yes" >&5
28262echo "${ECHO_T}yes" >&6
28263
28264 echo "$as_me:$LINENO: checking for Xxf86vm extension" >&5
28265echo $ECHO_N "checking for Xxf86vm extension... $ECHO_C" >&6
28266
28267ac_find_libraries=
28268for ac_dir in $SEARCH_LIB /usr/lib;
28269 do
28270 for ac_extension in a so sl dylib; do
28271 if test -f "$ac_dir/libXxf86vm.$ac_extension"; then
28272 ac_find_libraries=$ac_dir
28273 break 2
28274 fi
28275 done
28276 done
28277
28278 if test "$ac_find_libraries" != "" ; then
28279 echo "$as_me:$LINENO: result: yes" >&5
28280echo "${ECHO_T}yes" >&6
28281
28282for ac_header in X11/extensions/xf86vmode.h
28283do
28284as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28285echo "$as_me:$LINENO: checking for $ac_header" >&5
28286echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28287if eval "test \"\${$as_ac_Header+set}\" = set"; then
28288 echo $ECHO_N "(cached) $ECHO_C" >&6
28289else
28290 cat >conftest.$ac_ext <<_ACEOF
28291/* confdefs.h. */
28292_ACEOF
28293cat confdefs.h >>conftest.$ac_ext
28294cat >>conftest.$ac_ext <<_ACEOF
28295/* end confdefs.h. */
28296
28297 #if HAVE_X11_XLIB_H
28298 #include <X11/Xlib.h>
28299 #endif
28300
28301
28302#include <$ac_header>
28303_ACEOF
28304rm -f conftest.$ac_objext
28305if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 28306 (eval $ac_compile) 2>conftest.er1
a848cd7e 28307 ac_status=$?
ac1cb8d3
VS
28308 grep -v '^ *+' conftest.er1 >conftest.err
28309 rm -f conftest.er1
28310 cat conftest.err >&5
a848cd7e
SC
28311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28312 (exit $ac_status); } &&
89be85c2
VS
28313 { ac_try='test -z "$ac_c_werror_flag"
28314 || test ! -s conftest.err'
ac1cb8d3
VS
28315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28316 (eval $ac_try) 2>&5
28317 ac_status=$?
28318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28319 (exit $ac_status); }; } &&
28320 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
28321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28322 (eval $ac_try) 2>&5
28323 ac_status=$?
28324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28325 (exit $ac_status); }; }; then
28326 eval "$as_ac_Header=yes"
28327else
28328 echo "$as_me: failed program was:" >&5
28329sed 's/^/| /' conftest.$ac_ext >&5
28330
28331eval "$as_ac_Header=no"
28332fi
ac1cb8d3 28333rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
28334fi
28335echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28336echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28337if test `eval echo '${'$as_ac_Header'}'` = yes; then
28338 cat >>confdefs.h <<_ACEOF
28339#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28340_ACEOF
28341
28342 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXxf86vm"
28343
28344fi
28345
28346done
28347
28348 else
28349 echo "$as_me:$LINENO: result: no" >&5
28350echo "${ECHO_T}no" >&6
28351 fi
28352
28353 else
28354 echo "$as_me:$LINENO: result: no" >&5
28355echo "${ECHO_T}no" >&6
dcc1b6ad
VS
28356 { echo "$as_me:$LINENO: WARNING: Xinerama not found; disabling wxDisplay" >&5
28357echo "$as_me: WARNING: Xinerama not found; disabling wxDisplay" >&2;}
a848cd7e
SC
28358 wxUSE_DISPLAY="no"
28359 fi
01cb68df
RG
28360 elif test "$wxUSE_MSW" = 1; then
28361
28362
28363for ac_header in multimon.h ddraw.h
28364do
28365as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5294a27e 28366echo "$as_me:$LINENO: checking for $ac_header" >&5
01cb68df
RG
28367echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28368if eval "test \"\${$as_ac_Header+set}\" = set"; then
28369 echo $ECHO_N "(cached) $ECHO_C" >&6
01cb68df 28370else
5294a27e 28371 cat >conftest.$ac_ext <<_ACEOF
01cb68df
RG
28372/* confdefs.h. */
28373_ACEOF
28374cat confdefs.h >>conftest.$ac_ext
28375cat >>conftest.$ac_ext <<_ACEOF
28376/* end confdefs.h. */
5294a27e
VZ
28377#include <windows.h>
28378
01cb68df
RG
28379#include <$ac_header>
28380_ACEOF
28381rm -f conftest.$ac_objext
28382if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 28383 (eval $ac_compile) 2>conftest.er1
01cb68df 28384 ac_status=$?
ac1cb8d3
VS
28385 grep -v '^ *+' conftest.er1 >conftest.err
28386 rm -f conftest.er1
28387 cat conftest.err >&5
01cb68df
RG
28388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28389 (exit $ac_status); } &&
89be85c2
VS
28390 { ac_try='test -z "$ac_c_werror_flag"
28391 || test ! -s conftest.err'
ac1cb8d3
VS
28392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28393 (eval $ac_try) 2>&5
28394 ac_status=$?
28395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28396 (exit $ac_status); }; } &&
28397 { ac_try='test -s conftest.$ac_objext'
01cb68df
RG
28398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28399 (eval $ac_try) 2>&5
28400 ac_status=$?
28401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28402 (exit $ac_status); }; }; then
5294a27e 28403 eval "$as_ac_Header=yes"
01cb68df
RG
28404else
28405 echo "$as_me: failed program was:" >&5
28406sed 's/^/| /' conftest.$ac_ext >&5
28407
5294a27e 28408eval "$as_ac_Header=no"
01cb68df 28409fi
ac1cb8d3 28410rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
01cb68df
RG
28411fi
28412echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28413echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
01cb68df
RG
28414if test `eval echo '${'$as_ac_Header'}'` = yes; then
28415 cat >>confdefs.h <<_ACEOF
28416#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28417_ACEOF
28418
28419else
28420
5294a27e
VZ
28421 wxUSE_DISPLAY="no"
28422 { echo "$as_me:$LINENO: WARNING: ddraw.h or multimon.h not found; disabling wxDisplay" >&5
dcc1b6ad 28423echo "$as_me: WARNING: ddraw.h or multimon.h not found; disabling wxDisplay" >&2;}
01cb68df
RG
28424
28425fi
28426
28427done
28428
a848cd7e
SC
28429 fi
28430fi
28431
28432
28433USE_OPENGL=0
28434if test "$wxUSE_OPENGL" = "yes"; then
28435 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = "1"; then
28436 OPENGL_LIBS="-framework OpenGL -framework AGL"
28437 elif test "$wxUSE_MSW" = 1; then
28438 OPENGL_LIBS="-lopengl32 -lglu32"
28439 else
28440
28441
28442ac_find_includes=
28443for ac_dir in $SEARCH_INCLUDE /usr/include;
28444 do
28445 if test -f "$ac_dir/GL/gl.h"; then
28446 ac_find_includes=$ac_dir
28447 break
28448 fi
28449 done
28450
28451 if test "$ac_find_includes" != "" ; then
28452 echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
28453echo "${ECHO_T}found in $ac_find_includes" >&6
28454
28455 if test "x$ac_find_includes" = "x/usr/include"; then
28456 ac_path_to_include=""
28457 else
28458 echo "$CPPFLAGS" | grep "\-I$ac_find_includes" > /dev/null
28459 result=$?
28460 if test $result = 0; then
28461 ac_path_to_include=""
28462 else
28463 ac_path_to_include=" -I$ac_find_includes"
28464 fi
28465 fi
28466
28467 CPPFLAGS="$CPPFLAGS$ac_path_to_include"
28468 fi
28469
28470 if test "${ac_cv_header_GL_gl_h+set}" = set; then
28471 echo "$as_me:$LINENO: checking for GL/gl.h" >&5
28472echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6
28473if test "${ac_cv_header_GL_gl_h+set}" = set; then
28474 echo $ECHO_N "(cached) $ECHO_C" >&6
28475fi
28476echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
28477echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6
28478else
28479 # Is the header compilable?
28480echo "$as_me:$LINENO: checking GL/gl.h usability" >&5
28481echo $ECHO_N "checking GL/gl.h usability... $ECHO_C" >&6
28482cat >conftest.$ac_ext <<_ACEOF
28483/* confdefs.h. */
28484_ACEOF
28485cat confdefs.h >>conftest.$ac_ext
28486cat >>conftest.$ac_ext <<_ACEOF
28487/* end confdefs.h. */
28488$ac_includes_default
28489#include <GL/gl.h>
28490_ACEOF
28491rm -f conftest.$ac_objext
28492if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 28493 (eval $ac_compile) 2>conftest.er1
a848cd7e 28494 ac_status=$?
ac1cb8d3
VS
28495 grep -v '^ *+' conftest.er1 >conftest.err
28496 rm -f conftest.er1
28497 cat conftest.err >&5
a848cd7e
SC
28498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28499 (exit $ac_status); } &&
89be85c2
VS
28500 { ac_try='test -z "$ac_c_werror_flag"
28501 || test ! -s conftest.err'
ac1cb8d3
VS
28502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28503 (eval $ac_try) 2>&5
28504 ac_status=$?
28505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28506 (exit $ac_status); }; } &&
28507 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
28508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28509 (eval $ac_try) 2>&5
28510 ac_status=$?
28511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28512 (exit $ac_status); }; }; then
28513 ac_header_compiler=yes
28514else
28515 echo "$as_me: failed program was:" >&5
28516sed 's/^/| /' conftest.$ac_ext >&5
28517
28518ac_header_compiler=no
28519fi
ac1cb8d3 28520rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
28521echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28522echo "${ECHO_T}$ac_header_compiler" >&6
28523
28524# Is the header present?
28525echo "$as_me:$LINENO: checking GL/gl.h presence" >&5
28526echo $ECHO_N "checking GL/gl.h presence... $ECHO_C" >&6
28527cat >conftest.$ac_ext <<_ACEOF
28528/* confdefs.h. */
28529_ACEOF
28530cat confdefs.h >>conftest.$ac_ext
28531cat >>conftest.$ac_ext <<_ACEOF
28532/* end confdefs.h. */
28533#include <GL/gl.h>
28534_ACEOF
28535if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
28536 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
28537 ac_status=$?
28538 grep -v '^ *+' conftest.er1 >conftest.err
28539 rm -f conftest.er1
28540 cat conftest.err >&5
28541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28542 (exit $ac_status); } >/dev/null; then
28543 if test -s conftest.err; then
28544 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 28545 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
28546 else
28547 ac_cpp_err=
28548 fi
28549else
28550 ac_cpp_err=yes
28551fi
28552if test -z "$ac_cpp_err"; then
28553 ac_header_preproc=yes
28554else
28555 echo "$as_me: failed program was:" >&5
28556sed 's/^/| /' conftest.$ac_ext >&5
28557
28558 ac_header_preproc=no
28559fi
28560rm -f conftest.err conftest.$ac_ext
28561echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28562echo "${ECHO_T}$ac_header_preproc" >&6
28563
28564# So? What about this header?
ac1cb8d3
VS
28565case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28566 yes:no: )
a848cd7e
SC
28567 { echo "$as_me:$LINENO: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&5
28568echo "$as_me: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
28569 { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the compiler's result" >&5
28570echo "$as_me: WARNING: GL/gl.h: proceeding with the compiler's result" >&2;}
28571 ac_header_preproc=yes
a848cd7e 28572 ;;
ac1cb8d3 28573 no:yes:* )
a848cd7e
SC
28574 { echo "$as_me:$LINENO: WARNING: GL/gl.h: present but cannot be compiled" >&5
28575echo "$as_me: WARNING: GL/gl.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
28576 { echo "$as_me:$LINENO: WARNING: GL/gl.h: check for missing prerequisite headers?" >&5
28577echo "$as_me: WARNING: GL/gl.h: check for missing prerequisite headers?" >&2;}
28578 { echo "$as_me:$LINENO: WARNING: GL/gl.h: see the Autoconf documentation" >&5
28579echo "$as_me: WARNING: GL/gl.h: see the Autoconf documentation" >&2;}
28580 { echo "$as_me:$LINENO: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&5
28581echo "$as_me: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
28582 { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&5
28583echo "$as_me: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
28584 { echo "$as_me:$LINENO: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&5
28585echo "$as_me: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
28586 (
28587 cat <<\_ASBOX
ac1cb8d3
VS
28588## ----------------------------------------- ##
28589## Report this to wx-dev@lists.wxwidgets.org ##
28590## ----------------------------------------- ##
a848cd7e
SC
28591_ASBOX
28592 ) |
28593 sed "s/^/$as_me: WARNING: /" >&2
28594 ;;
28595esac
28596echo "$as_me:$LINENO: checking for GL/gl.h" >&5
28597echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6
28598if test "${ac_cv_header_GL_gl_h+set}" = set; then
28599 echo $ECHO_N "(cached) $ECHO_C" >&6
28600else
28601 ac_cv_header_GL_gl_h=$ac_header_preproc
28602fi
28603echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
28604echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6
28605
28606fi
28607if test $ac_cv_header_GL_gl_h = yes; then
28608
28609 found_gl=0
28610
28611 echo "$as_me:$LINENO: checking for -lGL" >&5
28612echo $ECHO_N "checking for -lGL... $ECHO_C" >&6
28613
28614ac_find_libraries=
28615for ac_dir in $SEARCH_LIB /usr/lib;
28616 do
28617 for ac_extension in a so sl dylib; do
28618 if test -f "$ac_dir/libGL.$ac_extension"; then
28619 ac_find_libraries=$ac_dir
28620 break 2
28621 fi
28622 done
28623 done
28624
28625 if test "$ac_find_libraries" != "" ; then
28626
28627 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
28628 result=$?
28629 if test $result = 0; then
28630 ac_path_to_link=""
28631 else
28632 ac_path_to_link=" -L$ac_find_libraries"
28633 fi
28634
28635 if test "$ac_path_to_link" != " -L/usr/lib" ; then
28636 LDFLAGS_GL="$ac_path_to_link"
28637 fi
28638
28639
28640ac_find_libraries=
28641for ac_dir in $SEARCH_LIB /usr/lib;
28642 do
28643 for ac_extension in a so sl dylib; do
28644 if test -f "$ac_dir/libGLU.$ac_extension"; then
28645 ac_find_libraries=$ac_dir
28646 break 2
28647 fi
28648 done
28649 done
28650
28651 if test "$ac_find_libraries" != "" ; then
28652
28653 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
28654 result=$?
28655 if test $result = 0; then
28656 ac_path_to_link=""
28657 else
28658 ac_path_to_link=" -L$ac_find_libraries"
28659 fi
28660
28661 if test "$ac_path_to_link" != " -L/usr/lib" -a \
28662 "$ac_path_to_link" != "$LDFLAGS_GL"; then
28663 LDFLAGS_GL="$LDFLAGS_GL$ac_path_to_link"
28664 fi
28665
28666 found_gl=1
28667 OPENGL_LIBS="-lGL -lGLU"
28668 echo "$as_me:$LINENO: result: yes" >&5
28669echo "${ECHO_T}yes" >&6
28670 fi
28671 fi
28672
28673 if test "$found_gl" != 1; then
28674 echo "$as_me:$LINENO: result: no" >&5
28675echo "${ECHO_T}no" >&6
28676 echo "$as_me:$LINENO: checking for -lMesaGL" >&5
28677echo $ECHO_N "checking for -lMesaGL... $ECHO_C" >&6
28678
28679ac_find_libraries=
28680for ac_dir in $SEARCH_LIB /usr/lib;
28681 do
28682 for ac_extension in a so sl dylib; do
28683 if test -f "$ac_dir/libMesaGL.$ac_extension"; then
28684 ac_find_libraries=$ac_dir
28685 break 2
28686 fi
28687 done
28688 done
28689
28690 if test "$ac_find_libraries" != "" ; then
28691
28692 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
28693 result=$?
28694 if test $result = 0; then
28695 ac_path_to_link=""
28696 else
28697 ac_path_to_link=" -L$ac_find_libraries"
28698 fi
28699
28700 LDFLAGS_GL="$LDFLAGS$ac_path_to_link"
28701 OPENGL_LIBS="-lMesaGL -lMesaGLU"
28702 echo "$as_me:$LINENO: result: yes" >&5
28703echo "${ECHO_T}yes" >&6
28704 else
28705 echo "$as_me:$LINENO: result: no" >&5
28706echo "${ECHO_T}no" >&6
28707 fi
28708 fi
28709
28710fi
28711
28712
28713
28714 if test "x$OPENGL_LIBS" = "x"; then
28715 { { echo "$as_me:$LINENO: error: OpenGL libraries not available" >&5
28716echo "$as_me: error: OpenGL libraries not available" >&2;}
28717 { (exit 1); exit 1; }; }
28718 fi
28719 fi
28720
28721 if test "$wxUSE_OPENGL" = "yes"; then
28722 USE_OPENGL=1
28723 cat >>confdefs.h <<\_ACEOF
28724#define wxUSE_OPENGL 1
28725_ACEOF
28726
28727 cat >>confdefs.h <<\_ACEOF
28728#define wxUSE_GLCANVAS 1
28729_ACEOF
28730
28731 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl opengl/cube opengl/penguin opengl/isosurf"
28732 fi
28733fi
28734
a848cd7e
SC
28735
28736if test -n "$TOOLKIT" ; then
28737 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WX${TOOLKIT}__"
28738fi
28739
a848cd7e
SC
28740
28741
28742if test "$wxUSE_SHARED" = "yes"; then
28743 case "${host}" in
28744 *-pc-msdosdjgpp )
28745 wxUSE_SHARED=no
28746 { echo "$as_me:$LINENO: WARNING: Host system doesn't support shared libraries, disabling" >&5
28747echo "$as_me: WARNING: Host system doesn't support shared libraries, disabling" >&2;}
28748 ;;
28749 esac
28750fi
28751
a848cd7e 28752if test "$wxUSE_SHARED" = "yes"; then
a848cd7e
SC
28753
28754
28755 found_versioning=no
28756
28757
28758 if test $found_versioning = no ; then
28759 echo "$as_me:$LINENO: checking if the linker accepts --version-script" >&5
28760echo $ECHO_N "checking if the linker accepts --version-script... $ECHO_C" >&6
28761if test "${wx_cv_version_script+set}" = set; then
28762 echo $ECHO_N "(cached) $ECHO_C" >&6
28763else
28764
28765 echo "VER_1 { *; };" >conftest.sym
28766 echo "int main() { return 0; }" >conftest.cpp
28767
28768 if { ac_try='
28769 $CXX -o conftest.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
28770 -Wl,--version-script,conftest.sym >/dev/null 2>conftest.stderr'
28771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28772 (eval $ac_try) 2>&5
28773 ac_status=$?
28774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28775 (exit $ac_status); }; } ; then
28776 if test -s conftest.stderr ; then
28777 wx_cv_version_script=no
28778 else
28779 wx_cv_version_script=yes
28780 fi
28781 else
28782 wx_cv_version_script=no
28783 fi
28784 rm -f conftest.output conftest.stderr conftest.sym conftest.cpp
28785
28786fi
28787echo "$as_me:$LINENO: result: $wx_cv_version_script" >&5
28788echo "${ECHO_T}$wx_cv_version_script" >&6
28789 if test $wx_cv_version_script = yes ; then
28790 LDFLAGS_VERSIONING="-Wl,--version-script,\$(top_builddir)version-script"
28791 fi
28792 fi
28793
28794
28795 case "${host}" in
28796 *-*-linux* | *-*-gnu* )
28797 SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib"
ffa0583f 28798 WXCONFIG_RPATH="-Wl,-rpath,\$libdir"
a848cd7e
SC
28799 ;;
28800
28801 *-*-solaris2* )
28802 if test "$GCC" = yes ; then
28803 CPPFLAGS="$CPPFLAGS -isystem /usr/openwin/include"
28804
28805 saveLdflags="$LDFLAGS"
28806 LDFLAGS="$saveLdflags -Wl,-rpath,/"
28807 echo "$as_me:$LINENO: checking if the linker accepts -rpath" >&5
28808echo $ECHO_N "checking if the linker accepts -rpath... $ECHO_C" >&6
28809 cat >conftest.$ac_ext <<_ACEOF
28810/* confdefs.h. */
28811_ACEOF
28812cat confdefs.h >>conftest.$ac_ext
28813cat >>conftest.$ac_ext <<_ACEOF
28814/* end confdefs.h. */
28815
28816int
28817main ()
28818{
28819
28820 ;
28821 return 0;
28822}
28823_ACEOF
28824rm -f conftest.$ac_objext conftest$ac_exeext
28825if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28826 (eval $ac_link) 2>conftest.er1
a848cd7e 28827 ac_status=$?
ac1cb8d3
VS
28828 grep -v '^ *+' conftest.er1 >conftest.err
28829 rm -f conftest.er1
28830 cat conftest.err >&5
a848cd7e
SC
28831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28832 (exit $ac_status); } &&
89be85c2
VS
28833 { ac_try='test -z "$ac_c_werror_flag"
28834 || test ! -s conftest.err'
ac1cb8d3
VS
28835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28836 (eval $ac_try) 2>&5
28837 ac_status=$?
28838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28839 (exit $ac_status); }; } &&
28840 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28842 (eval $ac_try) 2>&5
28843 ac_status=$?
28844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28845 (exit $ac_status); }; }; then
28846
28847 echo "$as_me:$LINENO: result: yes" >&5
28848echo "${ECHO_T}yes" >&6
28849 SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib"
ffa0583f 28850 WXCONFIG_RPATH="-Wl,-rpath,\$libdir"
a848cd7e
SC
28851
28852else
28853 echo "$as_me: failed program was:" >&5
28854sed 's/^/| /' conftest.$ac_ext >&5
28855
28856
28857 echo "$as_me:$LINENO: result: no" >&5
28858echo "${ECHO_T}no" >&6
28859 echo "$as_me:$LINENO: checking if the linker accepts -R" >&5
28860echo $ECHO_N "checking if the linker accepts -R... $ECHO_C" >&6
28861 LDFLAGS="$saveLdflags -Wl,-R,/"
28862 cat >conftest.$ac_ext <<_ACEOF
28863/* confdefs.h. */
28864_ACEOF
28865cat confdefs.h >>conftest.$ac_ext
28866cat >>conftest.$ac_ext <<_ACEOF
28867/* end confdefs.h. */
28868
28869int
28870main ()
28871{
28872
28873 ;
28874 return 0;
28875}
28876_ACEOF
28877rm -f conftest.$ac_objext conftest$ac_exeext
28878if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28879 (eval $ac_link) 2>conftest.er1
a848cd7e 28880 ac_status=$?
ac1cb8d3
VS
28881 grep -v '^ *+' conftest.er1 >conftest.err
28882 rm -f conftest.er1
28883 cat conftest.err >&5
a848cd7e
SC
28884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28885 (exit $ac_status); } &&
89be85c2
VS
28886 { ac_try='test -z "$ac_c_werror_flag"
28887 || test ! -s conftest.err'
ac1cb8d3
VS
28888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28889 (eval $ac_try) 2>&5
28890 ac_status=$?
28891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28892 (exit $ac_status); }; } &&
28893 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28895 (eval $ac_try) 2>&5
28896 ac_status=$?
28897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28898 (exit $ac_status); }; }; then
28899
ffa0583f 28900 echo "$as_me:$LINENO: result: yes" >&5
a848cd7e 28901echo "${ECHO_T}yes" >&6
ffa0583f
RL
28902 SAMPLES_RPATH_FLAG="-Wl,-R,\$(top_builddir)lib"
28903 WXCONFIG_RPATH="-Wl,-R,\$libdir"
28904
a848cd7e
SC
28905else
28906 echo "$as_me: failed program was:" >&5
28907sed 's/^/| /' conftest.$ac_ext >&5
28908
28909
28910 echo "$as_me:$LINENO: result: no" >&5
28911echo "${ECHO_T}no" >&6
28912
28913fi
ac1cb8d3
VS
28914rm -f conftest.err conftest.$ac_objext \
28915 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28916
28917fi
ac1cb8d3
VS
28918rm -f conftest.err conftest.$ac_objext \
28919 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28920 LDFLAGS="$saveLdflags"
28921 else
a848cd7e 28922 SAMPLES_RPATH_FLAG="-R\$(top_builddir)lib"
ffa0583f 28923 WXCONFIG_RPATH="-R\$libdir"
a848cd7e
SC
28924 fi
28925 ;;
28926
28927 powerpc-*-darwin* )
28928 SAMPLES_RPATH_POSTLINK="\$(top_builddir)change-install-names \$(LIBDIRNAME) \$(prefix) \$@"
28929 cat <<EOF >change-install-names
28930#!/bin/sh
28931libnames=\`cd \${1} ; ls -1 | grep '\.[0-9][0-9]*\.dylib\$'\`
28932inst_cmd="install_name_tool "
28933for i in \${libnames} ; do
28934 inst_cmd="\${inst_cmd} -change \${2}/lib/\${i} \${1}/\${i}"
28935done
28936\${inst_cmd} \${3}
28937EOF
28938 chmod +x change-install-names
28939 ;;
28940
28941 *-*-cygwin* | *-*-mingw32* )
28942 TOOLCHAIN_DLL_DEFS="${TOOLCHAIN_DLL_DEFS} -DWXUSINGDLL=1"
28943 ;;
28944
81f90336
MW
28945 *-*-hpux* )
28946 SAMPLES_RPATH_FLAG="-Wl,+b,\$(top_builddir)lib"
28947 WXCONFIG_RPATH="-Wl,+b,\$libdir"
28948 ;;
28949
a848cd7e 28950 esac
ceec2216 28951
ffa0583f
RL
28952 if test $wxUSE_RPATH = "no"; then
28953 SAMPLES_RPATH_FLAG=''
28954 SAMPLES_RPATH_POSTLINK=''
28955 WXCONFIG_RPATH=''
28956 fi
28957
28958 SHARED=1
28959
28960else
28961
ceec2216
RL
28962 config_linkage_component="-static"
28963 SHARED=0
ffa0583f 28964
ceec2216 28965fi
a848cd7e 28966
a848cd7e 28967
ceec2216
RL
28968UNICODE=0
28969lib_unicode_suffix=
28970WX_CHARTYPE="ansi"
28971if test "$wxUSE_UNICODE" = "yes"; then
28972 lib_unicode_suffix=u
28973 WX_CHARTYPE="unicode"
28974 UNICODE=1
a848cd7e
SC
28975fi
28976
ceec2216
RL
28977lib_debug_suffix=
28978WX_DEBUGTYPE="release"
28979DEBUG_FLAG=0
28980if test "$wxUSE_DEBUG_FLAG" = "yes"; then
28981 lib_debug_suffix=d
28982 WX_DEBUGTYPE="debug"
28983 DEBUG_FLAG=1
28984fi
a848cd7e 28985
ceec2216
RL
28986WX_FLAVOUR=${WX_FLAVOUR:+-$WX_FLAVOUR}
28987WX_LIB_FLAVOUR=`echo $WX_FLAVOUR | tr '-' '_'`
a848cd7e 28988
ceec2216
RL
28989DEBUG_INFO=0
28990if test "$wxUSE_DEBUG_INFO" = "yes"; then
28991 DEBUG_INFO=1
28992fi
a848cd7e 28993
ceec2216 28994WX_VERSION_TAG=`echo WX${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}_${WX_RELEASE} | tr "[a-z]" "[A-Z]"`
a848cd7e 28995
ceec2216 28996TOOLCHAIN_NAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}-${WX_RELEASE}"
a848cd7e 28997
ceec2216 28998TOOLCHAIN_FULLNAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}-${WX_CHARTYPE}-${WX_DEBUGTYPE}${config_linkage_component}-${WX_RELEASE}${WX_FLAVOUR}"
a848cd7e 28999
ceec2216
RL
29000if test "$cross_compiling" = "yes"; then
29001 HOST_SUFFIX="-$host_alias"
29002 TOOLCHAIN_NAME="$TOOLCHAIN_NAME$HOST_SUFFIX"
29003 TOOLCHAIN_FULLNAME="${host_alias}-$TOOLCHAIN_FULLNAME"
a848cd7e
SC
29004fi
29005
dd21ced8 29006WX_LIBRARY_BASENAME_NOGUI="wx_base${WXBASEPORT}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}"
ceec2216
RL
29007WX_LIBRARY_BASENAME_GUI="wx_${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}"
29008
29009
29010
a848cd7e 29011if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1; then
abb9aae7
VZ
29012 WX_RESOURCES_MACOSX_ASCII="libwx_${TOOLCHAIN_NAME}.${wx_release_number}.r"
29013 WX_RESOURCES_MACOSX_DATA="libwx_${TOOLCHAIN_NAME}.${wx_release_number}.rsrc"
ceec2216 29014
a848cd7e 29015 LIBWXMACRES="\$(top_builddir)lib/${WX_RESOURCES_MACOSX_ASCII}"
a848cd7e
SC
29016
29017 # Extract the first word of "Rez", so it can be a program name with args.
29018set dummy Rez; ac_word=$2
29019echo "$as_me:$LINENO: checking for $ac_word" >&5
29020echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
29021if test "${ac_cv_prog_RESCOMP+set}" = set; then
29022 echo $ECHO_N "(cached) $ECHO_C" >&6
29023else
29024 if test -n "$RESCOMP"; then
29025 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
29026else
29027as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29028for as_dir in $PATH
29029do
29030 IFS=$as_save_IFS
29031 test -z "$as_dir" && as_dir=.
29032 for ac_exec_ext in '' $ac_executable_extensions; do
29033 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
29034 ac_cv_prog_RESCOMP="Rez"
29035 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29036 break 2
29037 fi
29038done
29039done
29040
29041 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez"
29042fi
29043fi
29044RESCOMP=$ac_cv_prog_RESCOMP
29045if test -n "$RESCOMP"; then
29046 echo "$as_me:$LINENO: result: $RESCOMP" >&5
29047echo "${ECHO_T}$RESCOMP" >&6
29048else
29049 echo "$as_me:$LINENO: result: no" >&5
29050echo "${ECHO_T}no" >&6
29051fi
29052
29053 # Extract the first word of "DeRez", so it can be a program name with args.
29054set dummy DeRez; ac_word=$2
29055echo "$as_me:$LINENO: checking for $ac_word" >&5
29056echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
29057if test "${ac_cv_prog_DEREZ+set}" = set; then
29058 echo $ECHO_N "(cached) $ECHO_C" >&6
29059else
29060 if test -n "$DEREZ"; then
29061 ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test.
29062else
29063as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29064for as_dir in $PATH
29065do
29066 IFS=$as_save_IFS
29067 test -z "$as_dir" && as_dir=.
29068 for ac_exec_ext in '' $ac_executable_extensions; do
29069 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
29070 ac_cv_prog_DEREZ="DeRez"
29071 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29072 break 2
29073 fi
29074done
29075done
29076
29077 test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez"
29078fi
29079fi
29080DEREZ=$ac_cv_prog_DEREZ
29081if test -n "$DEREZ"; then
29082 echo "$as_me:$LINENO: result: $DEREZ" >&5
29083echo "${ECHO_T}$DEREZ" >&6
29084else
29085 echo "$as_me:$LINENO: result: no" >&5
29086echo "${ECHO_T}no" >&6
29087fi
29088
29089 # Extract the first word of "SetFile", so it can be a program name with args.
29090set dummy SetFile; ac_word=$2
29091echo "$as_me:$LINENO: checking for $ac_word" >&5
29092echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
29093if test "${ac_cv_prog_SETFILE+set}" = set; then
29094 echo $ECHO_N "(cached) $ECHO_C" >&6
29095else
29096 if test -n "$SETFILE"; then
29097 ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
29098else
29099as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29100for as_dir in $PATH
29101do
29102 IFS=$as_save_IFS
29103 test -z "$as_dir" && as_dir=.
29104 for ac_exec_ext in '' $ac_executable_extensions; do
29105 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
29106 ac_cv_prog_SETFILE="SetFile"
29107 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29108 break 2
29109 fi
29110done
29111done
29112
29113 test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
29114fi
29115fi
29116SETFILE=$ac_cv_prog_SETFILE
29117if test -n "$SETFILE"; then
29118 echo "$as_me:$LINENO: result: $SETFILE" >&5
29119echo "${ECHO_T}$SETFILE" >&6
29120else
29121 echo "$as_me:$LINENO: result: no" >&5
29122echo "${ECHO_T}no" >&6
29123fi
29124
29125
29126 MACSETFILE="\$(SETFILE)"
29127
29128 if test "$wxUSE_MAC" = 1; then
29129 MACRESCOMP="\$(RESCOMP) -d __DARWIN__ -t APPL Carbon.r ${LIBWXMACRES} -o"
29130
29131 MACRESWXCONFIG="${RESCOMP} -d __DARWIN__ -t APPL Carbon.r \\\${exec_prefix}/lib/${WX_RESOURCES_MACOSX_ASCII} -o"
29132 else
29133 MACRESCOMP="echo -n | \$(RESCOMP) -d __DARWIN__ -t APPL ${LIBWXMACRES} -o"
29134 MACRESWXCONFIG="echo -n \\\| ${RESCOMP} -d __DARWIN__ -t APPL \\\${exec_prefix}/lib/${WX_RESOURCES_MACOSX_ASCII} -o"
29135 fi
29136else
ffa0583f
RL
29137 MACSETFILE="@true"
29138 MACRESWXCONFIG="@true"
a848cd7e
SC
29139
29140 if test "$wxUSE_PM" = 1; then
29141 MACRESCOMP="emxbind -ep"
29142 else
ffa0583f 29143 MACRESCOMP="@true"
a848cd7e
SC
29144 fi
29145fi
29146
29147
29148
29149echo "$as_me:$LINENO: checking for mode_t" >&5
29150echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
29151if test "${ac_cv_type_mode_t+set}" = set; then
29152 echo $ECHO_N "(cached) $ECHO_C" >&6
29153else
29154 cat >conftest.$ac_ext <<_ACEOF
29155/* confdefs.h. */
29156_ACEOF
29157cat confdefs.h >>conftest.$ac_ext
29158cat >>conftest.$ac_ext <<_ACEOF
29159/* end confdefs.h. */
29160$ac_includes_default
29161int
29162main ()
29163{
29164if ((mode_t *) 0)
29165 return 0;
29166if (sizeof (mode_t))
29167 return 0;
29168 ;
29169 return 0;
29170}
29171_ACEOF
29172rm -f conftest.$ac_objext
29173if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 29174 (eval $ac_compile) 2>conftest.er1
a848cd7e 29175 ac_status=$?
ac1cb8d3
VS
29176 grep -v '^ *+' conftest.er1 >conftest.err
29177 rm -f conftest.er1
29178 cat conftest.err >&5
a848cd7e
SC
29179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29180 (exit $ac_status); } &&
89be85c2
VS
29181 { ac_try='test -z "$ac_c_werror_flag"
29182 || test ! -s conftest.err'
ac1cb8d3
VS
29183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29184 (eval $ac_try) 2>&5
29185 ac_status=$?
29186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29187 (exit $ac_status); }; } &&
29188 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
29189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29190 (eval $ac_try) 2>&5
29191 ac_status=$?
29192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29193 (exit $ac_status); }; }; then
29194 ac_cv_type_mode_t=yes
29195else
29196 echo "$as_me: failed program was:" >&5
29197sed 's/^/| /' conftest.$ac_ext >&5
29198
29199ac_cv_type_mode_t=no
29200fi
ac1cb8d3 29201rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
29202fi
29203echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
29204echo "${ECHO_T}$ac_cv_type_mode_t" >&6
29205if test $ac_cv_type_mode_t = yes; then
29206 :
29207else
29208
29209cat >>confdefs.h <<_ACEOF
29210#define mode_t int
29211_ACEOF
29212
29213fi
29214
29215echo "$as_me:$LINENO: checking for off_t" >&5
29216echo $ECHO_N "checking for off_t... $ECHO_C" >&6
29217if test "${ac_cv_type_off_t+set}" = set; then
29218 echo $ECHO_N "(cached) $ECHO_C" >&6
29219else
29220 cat >conftest.$ac_ext <<_ACEOF
29221/* confdefs.h. */
29222_ACEOF
29223cat confdefs.h >>conftest.$ac_ext
29224cat >>conftest.$ac_ext <<_ACEOF
29225/* end confdefs.h. */
29226$ac_includes_default
29227int
29228main ()
29229{
29230if ((off_t *) 0)
29231 return 0;
29232if (sizeof (off_t))
29233 return 0;
29234 ;
29235 return 0;
29236}
29237_ACEOF
29238rm -f conftest.$ac_objext
29239if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 29240 (eval $ac_compile) 2>conftest.er1
a848cd7e 29241 ac_status=$?
ac1cb8d3
VS
29242 grep -v '^ *+' conftest.er1 >conftest.err
29243 rm -f conftest.er1
29244 cat conftest.err >&5
a848cd7e
SC
29245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29246 (exit $ac_status); } &&
89be85c2
VS
29247 { ac_try='test -z "$ac_c_werror_flag"
29248 || test ! -s conftest.err'
ac1cb8d3
VS
29249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29250 (eval $ac_try) 2>&5
29251 ac_status=$?
29252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29253 (exit $ac_status); }; } &&
29254 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
29255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29256 (eval $ac_try) 2>&5
29257 ac_status=$?
29258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29259 (exit $ac_status); }; }; then
29260 ac_cv_type_off_t=yes
29261else
29262 echo "$as_me: failed program was:" >&5
29263sed 's/^/| /' conftest.$ac_ext >&5
29264
29265ac_cv_type_off_t=no
29266fi
ac1cb8d3 29267rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
29268fi
29269echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
29270echo "${ECHO_T}$ac_cv_type_off_t" >&6
29271if test $ac_cv_type_off_t = yes; then
29272 :
29273else
29274
29275cat >>confdefs.h <<_ACEOF
29276#define off_t long
29277_ACEOF
29278
29279fi
29280
29281echo "$as_me:$LINENO: checking for pid_t" >&5
29282echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
29283if test "${ac_cv_type_pid_t+set}" = set; then
29284 echo $ECHO_N "(cached) $ECHO_C" >&6
29285else
29286 cat >conftest.$ac_ext <<_ACEOF
29287/* confdefs.h. */
29288_ACEOF
29289cat confdefs.h >>conftest.$ac_ext
29290cat >>conftest.$ac_ext <<_ACEOF
29291/* end confdefs.h. */
29292$ac_includes_default
29293int
29294main ()
29295{
29296if ((pid_t *) 0)
29297 return 0;
29298if (sizeof (pid_t))
29299 return 0;
29300 ;
29301 return 0;
29302}
29303_ACEOF
29304rm -f conftest.$ac_objext
29305if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 29306 (eval $ac_compile) 2>conftest.er1
a848cd7e 29307 ac_status=$?
ac1cb8d3
VS
29308 grep -v '^ *+' conftest.er1 >conftest.err
29309 rm -f conftest.er1
29310 cat conftest.err >&5
a848cd7e
SC
29311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29312 (exit $ac_status); } &&
89be85c2
VS
29313 { ac_try='test -z "$ac_c_werror_flag"
29314 || test ! -s conftest.err'
ac1cb8d3
VS
29315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29316 (eval $ac_try) 2>&5
29317 ac_status=$?
29318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29319 (exit $ac_status); }; } &&
29320 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
29321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29322 (eval $ac_try) 2>&5
29323 ac_status=$?
29324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29325 (exit $ac_status); }; }; then
29326 ac_cv_type_pid_t=yes
29327else
29328 echo "$as_me: failed program was:" >&5
29329sed 's/^/| /' conftest.$ac_ext >&5
29330
29331ac_cv_type_pid_t=no
29332fi
ac1cb8d3 29333rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
29334fi
29335echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
29336echo "${ECHO_T}$ac_cv_type_pid_t" >&6
29337if test $ac_cv_type_pid_t = yes; then
29338 :
29339else
29340
29341cat >>confdefs.h <<_ACEOF
29342#define pid_t int
29343_ACEOF
29344
29345fi
29346
29347echo "$as_me:$LINENO: checking for size_t" >&5
29348echo $ECHO_N "checking for size_t... $ECHO_C" >&6
29349if test "${ac_cv_type_size_t+set}" = set; then
29350 echo $ECHO_N "(cached) $ECHO_C" >&6
29351else
29352 cat >conftest.$ac_ext <<_ACEOF
29353/* confdefs.h. */
29354_ACEOF
29355cat confdefs.h >>conftest.$ac_ext
29356cat >>conftest.$ac_ext <<_ACEOF
29357/* end confdefs.h. */
29358$ac_includes_default
29359int
29360main ()
29361{
29362if ((size_t *) 0)
29363 return 0;
29364if (sizeof (size_t))
29365 return 0;
29366 ;
29367 return 0;
29368}
29369_ACEOF
29370rm -f conftest.$ac_objext
29371if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 29372 (eval $ac_compile) 2>conftest.er1
a848cd7e 29373 ac_status=$?
ac1cb8d3
VS
29374 grep -v '^ *+' conftest.er1 >conftest.err
29375 rm -f conftest.er1
29376 cat conftest.err >&5
a848cd7e
SC
29377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29378 (exit $ac_status); } &&
89be85c2
VS
29379 { ac_try='test -z "$ac_c_werror_flag"
29380 || test ! -s conftest.err'
ac1cb8d3
VS
29381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29382 (eval $ac_try) 2>&5
29383 ac_status=$?
29384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29385 (exit $ac_status); }; } &&
29386 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
29387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29388 (eval $ac_try) 2>&5
29389 ac_status=$?
29390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29391 (exit $ac_status); }; }; then
29392 ac_cv_type_size_t=yes
29393else
29394 echo "$as_me: failed program was:" >&5
29395sed 's/^/| /' conftest.$ac_ext >&5
29396
29397ac_cv_type_size_t=no
29398fi
ac1cb8d3 29399rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
29400fi
29401echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
29402echo "${ECHO_T}$ac_cv_type_size_t" >&6
29403if test $ac_cv_type_size_t = yes; then
29404 :
29405else
29406
29407cat >>confdefs.h <<_ACEOF
29408#define size_t unsigned
29409_ACEOF
29410
29411fi
29412
29413echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
29414echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
29415if test "${ac_cv_type_uid_t+set}" = set; then
29416 echo $ECHO_N "(cached) $ECHO_C" >&6
29417else
29418 cat >conftest.$ac_ext <<_ACEOF
29419/* confdefs.h. */
29420_ACEOF
29421cat confdefs.h >>conftest.$ac_ext
29422cat >>conftest.$ac_ext <<_ACEOF
29423/* end confdefs.h. */
29424#include <sys/types.h>
29425
29426_ACEOF
29427if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29428 $EGREP "uid_t" >/dev/null 2>&1; then
29429 ac_cv_type_uid_t=yes
29430else
29431 ac_cv_type_uid_t=no
29432fi
29433rm -f conftest*
29434
29435fi
29436echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
29437echo "${ECHO_T}$ac_cv_type_uid_t" >&6
29438if test $ac_cv_type_uid_t = no; then
29439
29440cat >>confdefs.h <<\_ACEOF
29441#define uid_t int
29442_ACEOF
29443
29444
29445cat >>confdefs.h <<\_ACEOF
29446#define gid_t int
29447_ACEOF
29448
29449fi
29450
29451
d51253e8
RL
29452echo "$as_me:$LINENO: checking for ssize_t" >&5
29453echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
29454if test "${ac_cv_type_ssize_t+set}" = set; then
29455 echo $ECHO_N "(cached) $ECHO_C" >&6
29456else
29457 cat >conftest.$ac_ext <<_ACEOF
29458/* confdefs.h. */
29459_ACEOF
29460cat confdefs.h >>conftest.$ac_ext
29461cat >>conftest.$ac_ext <<_ACEOF
29462/* end confdefs.h. */
29463$ac_includes_default
29464int
29465main ()
29466{
29467if ((ssize_t *) 0)
29468 return 0;
29469if (sizeof (ssize_t))
29470 return 0;
29471 ;
29472 return 0;
29473}
29474_ACEOF
29475rm -f conftest.$ac_objext
29476if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29477 (eval $ac_compile) 2>conftest.er1
29478 ac_status=$?
29479 grep -v '^ *+' conftest.er1 >conftest.err
29480 rm -f conftest.er1
29481 cat conftest.err >&5
29482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29483 (exit $ac_status); } &&
89be85c2
VS
29484 { ac_try='test -z "$ac_c_werror_flag"
29485 || test ! -s conftest.err'
d51253e8
RL
29486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29487 (eval $ac_try) 2>&5
29488 ac_status=$?
29489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29490 (exit $ac_status); }; } &&
29491 { ac_try='test -s conftest.$ac_objext'
29492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29493 (eval $ac_try) 2>&5
29494 ac_status=$?
29495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29496 (exit $ac_status); }; }; then
29497 ac_cv_type_ssize_t=yes
29498else
29499 echo "$as_me: failed program was:" >&5
29500sed 's/^/| /' conftest.$ac_ext >&5
29501
29502ac_cv_type_ssize_t=no
29503fi
29504rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29505fi
29506echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
29507echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
29508if test $ac_cv_type_ssize_t = yes; then
29509
29510cat >>confdefs.h <<_ACEOF
29511#define HAVE_SSIZE_T 1
29512_ACEOF
29513
29514
29515fi
29516
29517
a848cd7e
SC
29518
29519
29520ac_ext=cc
29521ac_cpp='$CXXCPP $CPPFLAGS'
29522ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29523ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29524ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29525
29526echo "$as_me:$LINENO: checking if size_t is unsigned int" >&5
29527echo $ECHO_N "checking if size_t is unsigned int... $ECHO_C" >&6
29528if test "${wx_cv_size_t_is_uint+set}" = set; then
29529 echo $ECHO_N "(cached) $ECHO_C" >&6
29530else
29531
29532 cat >conftest.$ac_ext <<_ACEOF
29533/* confdefs.h. */
29534_ACEOF
29535cat confdefs.h >>conftest.$ac_ext
29536cat >>conftest.$ac_ext <<_ACEOF
29537/* end confdefs.h. */
29538#include <stddef.h>
29539int
29540main ()
29541{
29542
29543 return 0; }
29544
29545 struct Foo { void foo(size_t); void foo(unsigned int); };
29546
29547 int bar() {
29548
29549 ;
29550 return 0;
29551}
29552_ACEOF
29553rm -f conftest.$ac_objext
29554if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 29555 (eval $ac_compile) 2>conftest.er1
a848cd7e 29556 ac_status=$?
ac1cb8d3
VS
29557 grep -v '^ *+' conftest.er1 >conftest.err
29558 rm -f conftest.er1
29559 cat conftest.err >&5
a848cd7e
SC
29560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29561 (exit $ac_status); } &&
89be85c2
VS
29562 { ac_try='test -z "$ac_cxx_werror_flag"
29563 || test ! -s conftest.err'
ac1cb8d3
VS
29564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29565 (eval $ac_try) 2>&5
29566 ac_status=$?
29567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29568 (exit $ac_status); }; } &&
29569 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
29570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29571 (eval $ac_try) 2>&5
29572 ac_status=$?
29573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29574 (exit $ac_status); }; }; then
29575 wx_cv_size_t_is_uint=no
29576else
29577 echo "$as_me: failed program was:" >&5
29578sed 's/^/| /' conftest.$ac_ext >&5
29579
29580wx_cv_size_t_is_uint=yes
29581
29582fi
ac1cb8d3 29583rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
29584
29585
29586fi
29587echo "$as_me:$LINENO: result: $wx_cv_size_t_is_uint" >&5
29588echo "${ECHO_T}$wx_cv_size_t_is_uint" >&6
29589
29590if test "$wx_cv_size_t_is_uint" = "yes"; then
29591 cat >>confdefs.h <<\_ACEOF
29592#define wxSIZE_T_IS_UINT 1
29593_ACEOF
29594
29595else
29596 echo "$as_me:$LINENO: checking if size_t is unsigned long" >&5
29597echo $ECHO_N "checking if size_t is unsigned long... $ECHO_C" >&6
29598if test "${wx_cv_size_t_is_ulong+set}" = set; then
29599 echo $ECHO_N "(cached) $ECHO_C" >&6
29600else
29601 cat >conftest.$ac_ext <<_ACEOF
29602/* confdefs.h. */
29603_ACEOF
29604cat confdefs.h >>conftest.$ac_ext
29605cat >>conftest.$ac_ext <<_ACEOF
29606/* end confdefs.h. */
29607#include <stddef.h>
29608int
29609main ()
29610{
29611
29612 return 0; }
29613
29614 struct Foo { void foo(size_t); void foo(unsigned long); };
29615
29616 int bar() {
29617
29618 ;
29619 return 0;
29620}
29621_ACEOF
29622rm -f conftest.$ac_objext
29623if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 29624 (eval $ac_compile) 2>conftest.er1
a848cd7e 29625 ac_status=$?
ac1cb8d3
VS
29626 grep -v '^ *+' conftest.er1 >conftest.err
29627 rm -f conftest.er1
29628 cat conftest.err >&5
a848cd7e
SC
29629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29630 (exit $ac_status); } &&
89be85c2
VS
29631 { ac_try='test -z "$ac_cxx_werror_flag"
29632 || test ! -s conftest.err'
ac1cb8d3
VS
29633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29634 (eval $ac_try) 2>&5
29635 ac_status=$?
29636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29637 (exit $ac_status); }; } &&
29638 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
29639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29640 (eval $ac_try) 2>&5
29641 ac_status=$?
29642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29643 (exit $ac_status); }; }; then
29644 wx_cv_size_t_is_ulong=no
29645else
29646 echo "$as_me: failed program was:" >&5
29647sed 's/^/| /' conftest.$ac_ext >&5
29648
29649wx_cv_size_t_is_ulong=yes
29650
29651fi
ac1cb8d3 29652rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
29653
29654fi
29655echo "$as_me:$LINENO: result: $wx_cv_size_t_is_ulong" >&5
29656echo "${ECHO_T}$wx_cv_size_t_is_ulong" >&6
29657
29658 if test "$wx_cv_size_t_is_ulong" = "yes"; then
29659 cat >>confdefs.h <<\_ACEOF
29660#define wxSIZE_T_IS_ULONG 1
29661_ACEOF
29662
29663 fi
29664fi
29665
29666ac_ext=c
29667ac_cpp='$CPP $CPPFLAGS'
29668ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29669ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29670ac_compiler_gnu=$ac_cv_c_compiler_gnu
29671
29672
29673
29674echo "$as_me:$LINENO: checking for pw_gecos in struct passwd" >&5
29675echo $ECHO_N "checking for pw_gecos in struct passwd... $ECHO_C" >&6
29676if test "${wx_cv_struct_pw_gecos+set}" = set; then
29677 echo $ECHO_N "(cached) $ECHO_C" >&6
29678else
29679
29680 cat >conftest.$ac_ext <<_ACEOF
29681/* confdefs.h. */
29682_ACEOF
29683cat confdefs.h >>conftest.$ac_ext
29684cat >>conftest.$ac_ext <<_ACEOF
29685/* end confdefs.h. */
29686#include <pwd.h>
29687int
29688main ()
29689{
29690
29691 char *p;
29692 struct passwd *pw;
29693 p = pw->pw_gecos;
29694
29695 ;
29696 return 0;
29697}
29698_ACEOF
29699rm -f conftest.$ac_objext
29700if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 29701 (eval $ac_compile) 2>conftest.er1
a848cd7e 29702 ac_status=$?
ac1cb8d3
VS
29703 grep -v '^ *+' conftest.er1 >conftest.err
29704 rm -f conftest.er1
29705 cat conftest.err >&5
a848cd7e
SC
29706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29707 (exit $ac_status); } &&
89be85c2
VS
29708 { ac_try='test -z "$ac_c_werror_flag"
29709 || test ! -s conftest.err'
ac1cb8d3
VS
29710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29711 (eval $ac_try) 2>&5
29712 ac_status=$?
29713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29714 (exit $ac_status); }; } &&
29715 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
29716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29717 (eval $ac_try) 2>&5
29718 ac_status=$?
29719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29720 (exit $ac_status); }; }; then
29721
29722 wx_cv_struct_pw_gecos=yes
29723
29724else
29725 echo "$as_me: failed program was:" >&5
29726sed 's/^/| /' conftest.$ac_ext >&5
29727
29728
29729 wx_cv_struct_pw_gecos=no
29730
29731
29732fi
ac1cb8d3 29733rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
29734
29735
29736fi
29737echo "$as_me:$LINENO: result: $wx_cv_struct_pw_gecos" >&5
29738echo "${ECHO_T}$wx_cv_struct_pw_gecos" >&6
29739
29740if test "$wx_cv_struct_pw_gecos" = "yes"; then
29741 cat >>confdefs.h <<\_ACEOF
29742#define HAVE_PW_GECOS 1
29743_ACEOF
29744
29745fi
29746
29747
29748if test "$wx_cv_sizeof_wchar_t" != "0"; then
29749 cat >>confdefs.h <<\_ACEOF
29750#define wxUSE_WCHAR_T 1
29751_ACEOF
29752
29753
29754 WCSLEN_FOUND=0
29755 WCHAR_LINK=
29756
29757for ac_func in wcslen
29758do
29759as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29760echo "$as_me:$LINENO: checking for $ac_func" >&5
29761echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29762if eval "test \"\${$as_ac_var+set}\" = set"; then
29763 echo $ECHO_N "(cached) $ECHO_C" >&6
29764else
29765 cat >conftest.$ac_ext <<_ACEOF
29766/* confdefs.h. */
29767_ACEOF
29768cat confdefs.h >>conftest.$ac_ext
29769cat >>conftest.$ac_ext <<_ACEOF
29770/* end confdefs.h. */
ac1cb8d3
VS
29771/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29772 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29773#define $ac_func innocuous_$ac_func
29774
a848cd7e
SC
29775/* System header to define __stub macros and hopefully few prototypes,
29776 which can conflict with char $ac_func (); below.
29777 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29778 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 29779
a848cd7e
SC
29780#ifdef __STDC__
29781# include <limits.h>
29782#else
29783# include <assert.h>
29784#endif
ac1cb8d3
VS
29785
29786#undef $ac_func
29787
a848cd7e
SC
29788/* Override any gcc2 internal prototype to avoid an error. */
29789#ifdef __cplusplus
29790extern "C"
29791{
29792#endif
29793/* We use char because int might match the return type of a gcc2
29794 builtin and then its argument prototype would still apply. */
29795char $ac_func ();
29796/* The GNU C library defines this for functions which it implements
29797 to always fail with ENOSYS. Some functions are actually named
29798 something starting with __ and the normal name is an alias. */
29799#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29800choke me
29801#else
29802char (*f) () = $ac_func;
29803#endif
29804#ifdef __cplusplus
29805}
29806#endif
29807
29808int
29809main ()
29810{
29811return f != $ac_func;
29812 ;
29813 return 0;
29814}
29815_ACEOF
29816rm -f conftest.$ac_objext conftest$ac_exeext
29817if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29818 (eval $ac_link) 2>conftest.er1
a848cd7e 29819 ac_status=$?
ac1cb8d3
VS
29820 grep -v '^ *+' conftest.er1 >conftest.err
29821 rm -f conftest.er1
29822 cat conftest.err >&5
a848cd7e
SC
29823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29824 (exit $ac_status); } &&
89be85c2
VS
29825 { ac_try='test -z "$ac_c_werror_flag"
29826 || test ! -s conftest.err'
ac1cb8d3
VS
29827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29828 (eval $ac_try) 2>&5
29829 ac_status=$?
29830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29831 (exit $ac_status); }; } &&
29832 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29834 (eval $ac_try) 2>&5
29835 ac_status=$?
29836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29837 (exit $ac_status); }; }; then
29838 eval "$as_ac_var=yes"
29839else
29840 echo "$as_me: failed program was:" >&5
29841sed 's/^/| /' conftest.$ac_ext >&5
29842
29843eval "$as_ac_var=no"
29844fi
ac1cb8d3
VS
29845rm -f conftest.err conftest.$ac_objext \
29846 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29847fi
29848echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29849echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29850if test `eval echo '${'$as_ac_var'}'` = yes; then
29851 cat >>confdefs.h <<_ACEOF
29852#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29853_ACEOF
29854 WCSLEN_FOUND=1
29855fi
29856done
29857
29858
29859 if test "$WCSLEN_FOUND" = 0; then
29860 if test "$TOOLKIT" = "MSW"; then
29861 echo "$as_me:$LINENO: checking for wcslen in -lmsvcrt" >&5
29862echo $ECHO_N "checking for wcslen in -lmsvcrt... $ECHO_C" >&6
29863if test "${ac_cv_lib_msvcrt_wcslen+set}" = set; then
29864 echo $ECHO_N "(cached) $ECHO_C" >&6
29865else
29866 ac_check_lib_save_LIBS=$LIBS
29867LIBS="-lmsvcrt $LIBS"
29868cat >conftest.$ac_ext <<_ACEOF
29869/* confdefs.h. */
29870_ACEOF
29871cat confdefs.h >>conftest.$ac_ext
29872cat >>conftest.$ac_ext <<_ACEOF
29873/* end confdefs.h. */
29874
29875/* Override any gcc2 internal prototype to avoid an error. */
29876#ifdef __cplusplus
29877extern "C"
29878#endif
29879/* We use char because int might match the return type of a gcc2
29880 builtin and then its argument prototype would still apply. */
29881char wcslen ();
29882int
29883main ()
29884{
29885wcslen ();
29886 ;
29887 return 0;
29888}
29889_ACEOF
29890rm -f conftest.$ac_objext conftest$ac_exeext
29891if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29892 (eval $ac_link) 2>conftest.er1
a848cd7e 29893 ac_status=$?
ac1cb8d3
VS
29894 grep -v '^ *+' conftest.er1 >conftest.err
29895 rm -f conftest.er1
29896 cat conftest.err >&5
a848cd7e
SC
29897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29898 (exit $ac_status); } &&
89be85c2
VS
29899 { ac_try='test -z "$ac_c_werror_flag"
29900 || test ! -s conftest.err'
ac1cb8d3
VS
29901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29902 (eval $ac_try) 2>&5
29903 ac_status=$?
29904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29905 (exit $ac_status); }; } &&
29906 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29908 (eval $ac_try) 2>&5
29909 ac_status=$?
29910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29911 (exit $ac_status); }; }; then
29912 ac_cv_lib_msvcrt_wcslen=yes
29913else
29914 echo "$as_me: failed program was:" >&5
29915sed 's/^/| /' conftest.$ac_ext >&5
29916
29917ac_cv_lib_msvcrt_wcslen=no
29918fi
ac1cb8d3
VS
29919rm -f conftest.err conftest.$ac_objext \
29920 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29921LIBS=$ac_check_lib_save_LIBS
29922fi
29923echo "$as_me:$LINENO: result: $ac_cv_lib_msvcrt_wcslen" >&5
29924echo "${ECHO_T}$ac_cv_lib_msvcrt_wcslen" >&6
29925if test $ac_cv_lib_msvcrt_wcslen = yes; then
29926 WCHAR_OK=1
29927fi
29928
29929 else
29930 echo "$as_me:$LINENO: checking for wcslen in -lw" >&5
29931echo $ECHO_N "checking for wcslen in -lw... $ECHO_C" >&6
29932if test "${ac_cv_lib_w_wcslen+set}" = set; then
29933 echo $ECHO_N "(cached) $ECHO_C" >&6
29934else
29935 ac_check_lib_save_LIBS=$LIBS
29936LIBS="-lw $LIBS"
29937cat >conftest.$ac_ext <<_ACEOF
29938/* confdefs.h. */
29939_ACEOF
29940cat confdefs.h >>conftest.$ac_ext
29941cat >>conftest.$ac_ext <<_ACEOF
29942/* end confdefs.h. */
29943
29944/* Override any gcc2 internal prototype to avoid an error. */
29945#ifdef __cplusplus
29946extern "C"
29947#endif
29948/* We use char because int might match the return type of a gcc2
29949 builtin and then its argument prototype would still apply. */
29950char wcslen ();
29951int
29952main ()
29953{
29954wcslen ();
29955 ;
29956 return 0;
29957}
29958_ACEOF
29959rm -f conftest.$ac_objext conftest$ac_exeext
29960if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29961 (eval $ac_link) 2>conftest.er1
a848cd7e 29962 ac_status=$?
ac1cb8d3
VS
29963 grep -v '^ *+' conftest.er1 >conftest.err
29964 rm -f conftest.er1
29965 cat conftest.err >&5
a848cd7e
SC
29966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29967 (exit $ac_status); } &&
89be85c2
VS
29968 { ac_try='test -z "$ac_c_werror_flag"
29969 || test ! -s conftest.err'
ac1cb8d3
VS
29970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29971 (eval $ac_try) 2>&5
29972 ac_status=$?
29973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29974 (exit $ac_status); }; } &&
29975 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29977 (eval $ac_try) 2>&5
29978 ac_status=$?
29979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29980 (exit $ac_status); }; }; then
29981 ac_cv_lib_w_wcslen=yes
29982else
29983 echo "$as_me: failed program was:" >&5
29984sed 's/^/| /' conftest.$ac_ext >&5
29985
29986ac_cv_lib_w_wcslen=no
29987fi
ac1cb8d3
VS
29988rm -f conftest.err conftest.$ac_objext \
29989 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29990LIBS=$ac_check_lib_save_LIBS
29991fi
29992echo "$as_me:$LINENO: result: $ac_cv_lib_w_wcslen" >&5
29993echo "${ECHO_T}$ac_cv_lib_w_wcslen" >&6
29994if test $ac_cv_lib_w_wcslen = yes; then
29995
29996 WCHAR_LINK=" -lw"
29997 WCSLEN_FOUND=1
29998
29999fi
30000
30001 fi
30002 fi
30003
30004 if test "$WCSLEN_FOUND" = 1; then
30005 cat >>confdefs.h <<\_ACEOF
30006#define HAVE_WCSLEN 1
30007_ACEOF
30008
30009 fi
30010
81f90336 30011 if test "$USE_HPUX" = 1; then
473276a9
VS
30012 CPPFLAGS="$CPPFLAGS -D_INCLUDE__STDC_A1_SOURCE "
30013 fi
30014
a848cd7e
SC
30015
30016for ac_func in wcsrtombs
30017do
30018as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30019echo "$as_me:$LINENO: checking for $ac_func" >&5
30020echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30021if eval "test \"\${$as_ac_var+set}\" = set"; then
30022 echo $ECHO_N "(cached) $ECHO_C" >&6
30023else
30024 cat >conftest.$ac_ext <<_ACEOF
30025/* confdefs.h. */
30026_ACEOF
30027cat confdefs.h >>conftest.$ac_ext
30028cat >>conftest.$ac_ext <<_ACEOF
30029/* end confdefs.h. */
ac1cb8d3
VS
30030/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30031 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30032#define $ac_func innocuous_$ac_func
30033
a848cd7e
SC
30034/* System header to define __stub macros and hopefully few prototypes,
30035 which can conflict with char $ac_func (); below.
30036 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30037 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 30038
a848cd7e
SC
30039#ifdef __STDC__
30040# include <limits.h>
30041#else
30042# include <assert.h>
30043#endif
ac1cb8d3
VS
30044
30045#undef $ac_func
30046
a848cd7e
SC
30047/* Override any gcc2 internal prototype to avoid an error. */
30048#ifdef __cplusplus
30049extern "C"
30050{
30051#endif
30052/* We use char because int might match the return type of a gcc2
30053 builtin and then its argument prototype would still apply. */
30054char $ac_func ();
30055/* The GNU C library defines this for functions which it implements
30056 to always fail with ENOSYS. Some functions are actually named
30057 something starting with __ and the normal name is an alias. */
30058#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30059choke me
30060#else
30061char (*f) () = $ac_func;
30062#endif
30063#ifdef __cplusplus
30064}
30065#endif
30066
30067int
30068main ()
30069{
30070return f != $ac_func;
30071 ;
30072 return 0;
30073}
30074_ACEOF
30075rm -f conftest.$ac_objext conftest$ac_exeext
30076if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30077 (eval $ac_link) 2>conftest.er1
a848cd7e 30078 ac_status=$?
ac1cb8d3
VS
30079 grep -v '^ *+' conftest.er1 >conftest.err
30080 rm -f conftest.er1
30081 cat conftest.err >&5
a848cd7e
SC
30082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30083 (exit $ac_status); } &&
89be85c2
VS
30084 { ac_try='test -z "$ac_c_werror_flag"
30085 || test ! -s conftest.err'
ac1cb8d3
VS
30086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30087 (eval $ac_try) 2>&5
30088 ac_status=$?
30089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30090 (exit $ac_status); }; } &&
30091 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30093 (eval $ac_try) 2>&5
30094 ac_status=$?
30095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30096 (exit $ac_status); }; }; then
30097 eval "$as_ac_var=yes"
30098else
30099 echo "$as_me: failed program was:" >&5
30100sed 's/^/| /' conftest.$ac_ext >&5
30101
30102eval "$as_ac_var=no"
30103fi
ac1cb8d3
VS
30104rm -f conftest.err conftest.$ac_objext \
30105 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30106fi
30107echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30108echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30109if test `eval echo '${'$as_ac_var'}'` = yes; then
30110 cat >>confdefs.h <<_ACEOF
30111#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30112_ACEOF
30113
30114fi
30115done
30116
30117else
30118 { echo "$as_me:$LINENO: WARNING: Wide character support is unavailable" >&5
30119echo "$as_me: WARNING: Wide character support is unavailable" >&2;}
30120fi
30121
30122
30123
30124ac_ext=cc
30125ac_cpp='$CXXCPP $CPPFLAGS'
30126ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30127ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30128ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30129
30130
30131
30132for ac_func in vsnprintf
30133do
30134as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30135echo "$as_me:$LINENO: checking for $ac_func" >&5
30136echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30137if eval "test \"\${$as_ac_var+set}\" = set"; then
30138 echo $ECHO_N "(cached) $ECHO_C" >&6
30139else
30140 cat >conftest.$ac_ext <<_ACEOF
30141/* confdefs.h. */
30142_ACEOF
30143cat confdefs.h >>conftest.$ac_ext
30144cat >>conftest.$ac_ext <<_ACEOF
30145/* end confdefs.h. */
ac1cb8d3
VS
30146/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30147 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30148#define $ac_func innocuous_$ac_func
30149
a848cd7e
SC
30150/* System header to define __stub macros and hopefully few prototypes,
30151 which can conflict with char $ac_func (); below.
30152 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30153 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 30154
a848cd7e
SC
30155#ifdef __STDC__
30156# include <limits.h>
30157#else
30158# include <assert.h>
30159#endif
ac1cb8d3
VS
30160
30161#undef $ac_func
30162
a848cd7e
SC
30163/* Override any gcc2 internal prototype to avoid an error. */
30164#ifdef __cplusplus
30165extern "C"
30166{
30167#endif
30168/* We use char because int might match the return type of a gcc2
30169 builtin and then its argument prototype would still apply. */
30170char $ac_func ();
30171/* The GNU C library defines this for functions which it implements
30172 to always fail with ENOSYS. Some functions are actually named
30173 something starting with __ and the normal name is an alias. */
30174#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30175choke me
30176#else
30177char (*f) () = $ac_func;
30178#endif
30179#ifdef __cplusplus
30180}
30181#endif
30182
30183int
30184main ()
30185{
30186return f != $ac_func;
30187 ;
30188 return 0;
30189}
30190_ACEOF
30191rm -f conftest.$ac_objext conftest$ac_exeext
30192if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30193 (eval $ac_link) 2>conftest.er1
a848cd7e 30194 ac_status=$?
ac1cb8d3
VS
30195 grep -v '^ *+' conftest.er1 >conftest.err
30196 rm -f conftest.er1
30197 cat conftest.err >&5
a848cd7e
SC
30198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30199 (exit $ac_status); } &&
89be85c2
VS
30200 { ac_try='test -z "$ac_cxx_werror_flag"
30201 || test ! -s conftest.err'
ac1cb8d3
VS
30202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30203 (eval $ac_try) 2>&5
30204 ac_status=$?
30205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30206 (exit $ac_status); }; } &&
30207 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30209 (eval $ac_try) 2>&5
30210 ac_status=$?
30211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30212 (exit $ac_status); }; }; then
30213 eval "$as_ac_var=yes"
30214else
30215 echo "$as_me: failed program was:" >&5
30216sed 's/^/| /' conftest.$ac_ext >&5
30217
30218eval "$as_ac_var=no"
30219fi
ac1cb8d3
VS
30220rm -f conftest.err conftest.$ac_objext \
30221 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30222fi
30223echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30224echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30225if test `eval echo '${'$as_ac_var'}'` = yes; then
30226 cat >>confdefs.h <<_ACEOF
30227#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30228_ACEOF
30229
30230fi
30231done
30232
30233
30234if test "$ac_cv_func_vsnprintf" = "yes"; then
30235 echo "$as_me:$LINENO: checking for vsnprintf declaration" >&5
30236echo $ECHO_N "checking for vsnprintf declaration... $ECHO_C" >&6
30237if test "${wx_cv_func_vsnprintf_decl+set}" = set; then
30238 echo $ECHO_N "(cached) $ECHO_C" >&6
30239else
30240
30241 cat >conftest.$ac_ext <<_ACEOF
30242/* confdefs.h. */
30243_ACEOF
30244cat confdefs.h >>conftest.$ac_ext
30245cat >>conftest.$ac_ext <<_ACEOF
30246/* end confdefs.h. */
30247
30248 #include <stdio.h>
30249 #include <stdarg.h>
30250
30251int
30252main ()
30253{
30254
30255 char *buf;
30256 va_list ap;
30257 vsnprintf(buf, 10u, "%s", ap);
30258
30259 ;
30260 return 0;
30261}
30262_ACEOF
30263rm -f conftest.$ac_objext
30264if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 30265 (eval $ac_compile) 2>conftest.er1
a848cd7e 30266 ac_status=$?
ac1cb8d3
VS
30267 grep -v '^ *+' conftest.er1 >conftest.err
30268 rm -f conftest.er1
30269 cat conftest.err >&5
a848cd7e
SC
30270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30271 (exit $ac_status); } &&
89be85c2
VS
30272 { ac_try='test -z "$ac_cxx_werror_flag"
30273 || test ! -s conftest.err'
ac1cb8d3
VS
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); }; } &&
30279 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
30280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30281 (eval $ac_try) 2>&5
30282 ac_status=$?
30283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30284 (exit $ac_status); }; }; then
30285 wx_cv_func_vsnprintf_decl=yes
30286else
30287 echo "$as_me: failed program was:" >&5
30288sed 's/^/| /' conftest.$ac_ext >&5
30289
c122b164
DE
30290
30291 cat >conftest.$ac_ext <<_ACEOF
30292/* confdefs.h. */
30293_ACEOF
30294cat confdefs.h >>conftest.$ac_ext
30295cat >>conftest.$ac_ext <<_ACEOF
30296/* end confdefs.h. */
30297
30298 #include <stdio.h>
30299 #include <stdarg.h>
30300 using namespace std;
30301
30302int
30303main ()
30304{
30305
30306 char *buf;
30307 va_list ap;
30308 vsnprintf(buf, 10u, "%s", ap);
30309
30310 ;
30311 return 0;
30312}
30313_ACEOF
30314rm -f conftest.$ac_objext
30315if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30316 (eval $ac_compile) 2>conftest.er1
30317 ac_status=$?
30318 grep -v '^ *+' conftest.er1 >conftest.err
30319 rm -f conftest.er1
30320 cat conftest.err >&5
30321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30322 (exit $ac_status); } &&
89be85c2
VS
30323 { ac_try='test -z "$ac_cxx_werror_flag"
30324 || test ! -s conftest.err'
c122b164
DE
30325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30326 (eval $ac_try) 2>&5
30327 ac_status=$?
30328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30329 (exit $ac_status); }; } &&
30330 { ac_try='test -s conftest.$ac_objext'
30331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30332 (eval $ac_try) 2>&5
30333 ac_status=$?
30334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30335 (exit $ac_status); }; }; then
30336 wx_cv_func_vsnprintf_decl=yes
30337else
30338 echo "$as_me: failed program was:" >&5
30339sed 's/^/| /' conftest.$ac_ext >&5
30340
a848cd7e
SC
30341wx_cv_func_vsnprintf_decl=no
30342
30343fi
ac1cb8d3 30344rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
30345
30346
c122b164
DE
30347fi
30348rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30349
30350
a848cd7e
SC
30351fi
30352echo "$as_me:$LINENO: result: $wx_cv_func_vsnprintf_decl" >&5
30353echo "${ECHO_T}$wx_cv_func_vsnprintf_decl" >&6
30354
30355 if test "$wx_cv_func_vsnprintf_decl" = "yes"; then
30356 cat >>confdefs.h <<\_ACEOF
30357#define HAVE_VSNPRINTF_DECL 1
30358_ACEOF
30359
30360 fi
30361fi
30362
30363if test "$wxUSE_UNICODE" = yes; then
30364
30365
30366
fbe47c7b
VS
30367
30368
30369
30370for ac_func in wputc wputchar putws fputws wprintf vswprintf
a848cd7e
SC
30371do
30372as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30373echo "$as_me:$LINENO: checking for $ac_func" >&5
30374echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30375if eval "test \"\${$as_ac_var+set}\" = set"; then
30376 echo $ECHO_N "(cached) $ECHO_C" >&6
30377else
30378 cat >conftest.$ac_ext <<_ACEOF
30379/* confdefs.h. */
30380_ACEOF
30381cat confdefs.h >>conftest.$ac_ext
30382cat >>conftest.$ac_ext <<_ACEOF
30383/* end confdefs.h. */
ac1cb8d3
VS
30384/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30385 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30386#define $ac_func innocuous_$ac_func
30387
a848cd7e
SC
30388/* System header to define __stub macros and hopefully few prototypes,
30389 which can conflict with char $ac_func (); below.
30390 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30391 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 30392
a848cd7e
SC
30393#ifdef __STDC__
30394# include <limits.h>
30395#else
30396# include <assert.h>
30397#endif
ac1cb8d3
VS
30398
30399#undef $ac_func
30400
a848cd7e
SC
30401/* Override any gcc2 internal prototype to avoid an error. */
30402#ifdef __cplusplus
30403extern "C"
30404{
30405#endif
30406/* We use char because int might match the return type of a gcc2
30407 builtin and then its argument prototype would still apply. */
30408char $ac_func ();
30409/* The GNU C library defines this for functions which it implements
30410 to always fail with ENOSYS. Some functions are actually named
30411 something starting with __ and the normal name is an alias. */
30412#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30413choke me
30414#else
30415char (*f) () = $ac_func;
30416#endif
30417#ifdef __cplusplus
30418}
30419#endif
30420
30421int
30422main ()
30423{
30424return f != $ac_func;
30425 ;
30426 return 0;
30427}
30428_ACEOF
30429rm -f conftest.$ac_objext conftest$ac_exeext
30430if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30431 (eval $ac_link) 2>conftest.er1
a848cd7e 30432 ac_status=$?
ac1cb8d3
VS
30433 grep -v '^ *+' conftest.er1 >conftest.err
30434 rm -f conftest.er1
30435 cat conftest.err >&5
a848cd7e
SC
30436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30437 (exit $ac_status); } &&
89be85c2
VS
30438 { ac_try='test -z "$ac_cxx_werror_flag"
30439 || test ! -s conftest.err'
ac1cb8d3
VS
30440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30441 (eval $ac_try) 2>&5
30442 ac_status=$?
30443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30444 (exit $ac_status); }; } &&
30445 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30447 (eval $ac_try) 2>&5
30448 ac_status=$?
30449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30450 (exit $ac_status); }; }; then
30451 eval "$as_ac_var=yes"
30452else
30453 echo "$as_me: failed program was:" >&5
30454sed 's/^/| /' conftest.$ac_ext >&5
30455
30456eval "$as_ac_var=no"
30457fi
ac1cb8d3
VS
30458rm -f conftest.err conftest.$ac_objext \
30459 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30460fi
30461echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30462echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30463if test `eval echo '${'$as_ac_var'}'` = yes; then
30464 cat >>confdefs.h <<_ACEOF
30465#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30466_ACEOF
30467
30468fi
30469done
30470
30471
30472 echo "$as_me:$LINENO: checking for _vsnwprintf" >&5
30473echo $ECHO_N "checking for _vsnwprintf... $ECHO_C" >&6
30474 cat >conftest.$ac_ext <<_ACEOF
30475/* confdefs.h. */
30476_ACEOF
30477cat confdefs.h >>conftest.$ac_ext
30478cat >>conftest.$ac_ext <<_ACEOF
30479/* end confdefs.h. */
30480#include <wchar.h>
30481int
30482main ()
30483{
30484&_vsnwprintf;
30485 ;
30486 return 0;
30487}
30488_ACEOF
30489rm -f conftest.$ac_objext
30490if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 30491 (eval $ac_compile) 2>conftest.er1
a848cd7e 30492 ac_status=$?
ac1cb8d3
VS
30493 grep -v '^ *+' conftest.er1 >conftest.err
30494 rm -f conftest.er1
30495 cat conftest.err >&5
a848cd7e
SC
30496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30497 (exit $ac_status); } &&
89be85c2
VS
30498 { ac_try='test -z "$ac_cxx_werror_flag"
30499 || test ! -s conftest.err'
ac1cb8d3
VS
30500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30501 (eval $ac_try) 2>&5
30502 ac_status=$?
30503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30504 (exit $ac_status); }; } &&
30505 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
30506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30507 (eval $ac_try) 2>&5
30508 ac_status=$?
30509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30510 (exit $ac_status); }; }; then
30511 echo "$as_me:$LINENO: result: yes" >&5
30512echo "${ECHO_T}yes" >&6
30513 cat >>confdefs.h <<\_ACEOF
30514#define HAVE__VSNWPRINTF 1
30515_ACEOF
30516
30517else
30518 echo "$as_me: failed program was:" >&5
30519sed 's/^/| /' conftest.$ac_ext >&5
30520
30521echo "$as_me:$LINENO: result: no" >&5
30522echo "${ECHO_T}no" >&6
30523fi
ac1cb8d3 30524rm -f conftest.err conftest.$ac_objext conftest.$ac_ext;
a848cd7e
SC
30525fi
30526
30527ac_ext=c
30528ac_cpp='$CPP $CPPFLAGS'
30529ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30530ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30531ac_compiler_gnu=$ac_cv_c_compiler_gnu
30532
30533
30534
30535
30536if test "$TOOLKIT" != "MSW"; then
30537
30538
30539
30540
30541ac_ext=cc
30542ac_cpp='$CXXCPP $CPPFLAGS'
30543ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30544ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30545ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30546
30547
30548
30549
30550# Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
30551if test "${with_libiconv_prefix+set}" = set; then
30552 withval="$with_libiconv_prefix"
30553
30554 for dir in `echo "$withval" | tr : ' '`; do
30555 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
30556 if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
30557 done
30558
30559fi;
30560
30561 echo "$as_me:$LINENO: checking for iconv" >&5
30562echo $ECHO_N "checking for iconv... $ECHO_C" >&6
30563if test "${am_cv_func_iconv+set}" = set; then
30564 echo $ECHO_N "(cached) $ECHO_C" >&6
30565else
30566
30567 am_cv_func_iconv="no, consider installing GNU libiconv"
30568 am_cv_lib_iconv=no
30569 cat >conftest.$ac_ext <<_ACEOF
30570/* confdefs.h. */
30571_ACEOF
30572cat confdefs.h >>conftest.$ac_ext
30573cat >>conftest.$ac_ext <<_ACEOF
30574/* end confdefs.h. */
30575#include <stdlib.h>
30576#include <iconv.h>
30577int
30578main ()
30579{
30580iconv_t cd = iconv_open("","");
30581 iconv(cd,NULL,NULL,NULL,NULL);
30582 iconv_close(cd);
30583 ;
30584 return 0;
30585}
30586_ACEOF
30587rm -f conftest.$ac_objext conftest$ac_exeext
30588if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30589 (eval $ac_link) 2>conftest.er1
a848cd7e 30590 ac_status=$?
ac1cb8d3
VS
30591 grep -v '^ *+' conftest.er1 >conftest.err
30592 rm -f conftest.er1
30593 cat conftest.err >&5
a848cd7e
SC
30594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30595 (exit $ac_status); } &&
89be85c2
VS
30596 { ac_try='test -z "$ac_cxx_werror_flag"
30597 || test ! -s conftest.err'
ac1cb8d3
VS
30598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30599 (eval $ac_try) 2>&5
30600 ac_status=$?
30601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30602 (exit $ac_status); }; } &&
30603 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30605 (eval $ac_try) 2>&5
30606 ac_status=$?
30607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30608 (exit $ac_status); }; }; then
30609 am_cv_func_iconv=yes
30610else
30611 echo "$as_me: failed program was:" >&5
30612sed 's/^/| /' conftest.$ac_ext >&5
30613
30614fi
ac1cb8d3
VS
30615rm -f conftest.err conftest.$ac_objext \
30616 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30617 if test "$am_cv_func_iconv" != yes; then
30618 am_save_LIBS="$LIBS"
30619 LIBS="$LIBS -liconv"
30620 cat >conftest.$ac_ext <<_ACEOF
30621/* confdefs.h. */
30622_ACEOF
30623cat confdefs.h >>conftest.$ac_ext
30624cat >>conftest.$ac_ext <<_ACEOF
30625/* end confdefs.h. */
30626#include <stdlib.h>
30627#include <iconv.h>
30628int
30629main ()
30630{
30631iconv_t cd = iconv_open("","");
30632 iconv(cd,NULL,NULL,NULL,NULL);
30633 iconv_close(cd);
30634 ;
30635 return 0;
30636}
30637_ACEOF
30638rm -f conftest.$ac_objext conftest$ac_exeext
30639if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30640 (eval $ac_link) 2>conftest.er1
a848cd7e 30641 ac_status=$?
ac1cb8d3
VS
30642 grep -v '^ *+' conftest.er1 >conftest.err
30643 rm -f conftest.er1
30644 cat conftest.err >&5
a848cd7e
SC
30645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30646 (exit $ac_status); } &&
89be85c2
VS
30647 { ac_try='test -z "$ac_cxx_werror_flag"
30648 || test ! -s conftest.err'
ac1cb8d3
VS
30649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30650 (eval $ac_try) 2>&5
30651 ac_status=$?
30652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30653 (exit $ac_status); }; } &&
30654 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30656 (eval $ac_try) 2>&5
30657 ac_status=$?
30658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30659 (exit $ac_status); }; }; then
30660 am_cv_lib_iconv=yes
30661 am_cv_func_iconv=yes
30662else
30663 echo "$as_me: failed program was:" >&5
30664sed 's/^/| /' conftest.$ac_ext >&5
30665
30666fi
ac1cb8d3
VS
30667rm -f conftest.err conftest.$ac_objext \
30668 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30669 LIBS="$am_save_LIBS"
30670 fi
30671
30672fi
30673echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
30674echo "${ECHO_T}$am_cv_func_iconv" >&6
30675 if test "$am_cv_func_iconv" = yes; then
30676
30677cat >>confdefs.h <<\_ACEOF
30678#define HAVE_ICONV 1
30679_ACEOF
30680
30681 echo "$as_me:$LINENO: checking if iconv needs const" >&5
30682echo $ECHO_N "checking if iconv needs const... $ECHO_C" >&6
30683if test "${wx_cv_func_iconv_const+set}" = set; then
30684 echo $ECHO_N "(cached) $ECHO_C" >&6
30685else
30686 cat >conftest.$ac_ext <<_ACEOF
30687/* confdefs.h. */
30688_ACEOF
30689cat confdefs.h >>conftest.$ac_ext
30690cat >>conftest.$ac_ext <<_ACEOF
30691/* end confdefs.h. */
30692
30693#include <stdlib.h>
30694#include <iconv.h>
30695extern
30696#ifdef __cplusplus
30697"C"
30698#endif
30699#if defined(__STDC__) || defined(__cplusplus)
30700size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
30701#else
30702size_t iconv();
30703#endif
30704
30705int
30706main ()
30707{
30708
30709 ;
30710 return 0;
30711}
30712_ACEOF
30713rm -f conftest.$ac_objext
30714if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 30715 (eval $ac_compile) 2>conftest.er1
a848cd7e 30716 ac_status=$?
ac1cb8d3
VS
30717 grep -v '^ *+' conftest.er1 >conftest.err
30718 rm -f conftest.er1
30719 cat conftest.err >&5
a848cd7e
SC
30720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30721 (exit $ac_status); } &&
89be85c2
VS
30722 { ac_try='test -z "$ac_cxx_werror_flag"
30723 || test ! -s conftest.err'
ac1cb8d3
VS
30724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30725 (eval $ac_try) 2>&5
30726 ac_status=$?
30727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30728 (exit $ac_status); }; } &&
30729 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
30730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30731 (eval $ac_try) 2>&5
30732 ac_status=$?
30733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30734 (exit $ac_status); }; }; then
30735 wx_cv_func_iconv_const="no"
30736else
30737 echo "$as_me: failed program was:" >&5
30738sed 's/^/| /' conftest.$ac_ext >&5
30739
30740wx_cv_func_iconv_const="yes"
30741
30742fi
ac1cb8d3 30743rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
30744
30745fi
30746echo "$as_me:$LINENO: result: $wx_cv_func_iconv_const" >&5
30747echo "${ECHO_T}$wx_cv_func_iconv_const" >&6
30748
30749 iconv_const=
30750 if test "x$wx_cv_func_iconv_const" = "xyes"; then
30751 iconv_const="const"
30752 fi
30753
30754
30755cat >>confdefs.h <<_ACEOF
30756#define ICONV_CONST $iconv_const
30757_ACEOF
30758
30759 fi
30760 LIBICONV=
30761 if test "$am_cv_lib_iconv" = yes; then
30762 LIBICONV="-liconv"
30763 fi
30764
30765
30766LIBS="$LIBICONV $LIBS"
30767ac_ext=c
30768ac_cpp='$CPP $CPPFLAGS'
30769ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30770ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30771ac_compiler_gnu=$ac_cv_c_compiler_gnu
30772
30773
30774if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then
30775
30776for ac_func in sigaction
30777do
30778as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30779echo "$as_me:$LINENO: checking for $ac_func" >&5
30780echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30781if eval "test \"\${$as_ac_var+set}\" = set"; then
30782 echo $ECHO_N "(cached) $ECHO_C" >&6
30783else
30784 cat >conftest.$ac_ext <<_ACEOF
30785/* confdefs.h. */
30786_ACEOF
30787cat confdefs.h >>conftest.$ac_ext
30788cat >>conftest.$ac_ext <<_ACEOF
30789/* end confdefs.h. */
ac1cb8d3
VS
30790/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30791 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30792#define $ac_func innocuous_$ac_func
30793
a848cd7e
SC
30794/* System header to define __stub macros and hopefully few prototypes,
30795 which can conflict with char $ac_func (); below.
30796 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30797 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 30798
a848cd7e
SC
30799#ifdef __STDC__
30800# include <limits.h>
30801#else
30802# include <assert.h>
30803#endif
ac1cb8d3
VS
30804
30805#undef $ac_func
30806
a848cd7e
SC
30807/* Override any gcc2 internal prototype to avoid an error. */
30808#ifdef __cplusplus
30809extern "C"
30810{
30811#endif
30812/* We use char because int might match the return type of a gcc2
30813 builtin and then its argument prototype would still apply. */
30814char $ac_func ();
30815/* The GNU C library defines this for functions which it implements
30816 to always fail with ENOSYS. Some functions are actually named
30817 something starting with __ and the normal name is an alias. */
30818#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30819choke me
30820#else
30821char (*f) () = $ac_func;
30822#endif
30823#ifdef __cplusplus
30824}
30825#endif
30826
30827int
30828main ()
30829{
30830return f != $ac_func;
30831 ;
30832 return 0;
30833}
30834_ACEOF
30835rm -f conftest.$ac_objext conftest$ac_exeext
30836if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30837 (eval $ac_link) 2>conftest.er1
a848cd7e 30838 ac_status=$?
ac1cb8d3
VS
30839 grep -v '^ *+' conftest.er1 >conftest.err
30840 rm -f conftest.er1
30841 cat conftest.err >&5
a848cd7e
SC
30842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30843 (exit $ac_status); } &&
89be85c2
VS
30844 { ac_try='test -z "$ac_c_werror_flag"
30845 || test ! -s conftest.err'
ac1cb8d3
VS
30846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30847 (eval $ac_try) 2>&5
30848 ac_status=$?
30849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30850 (exit $ac_status); }; } &&
30851 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30853 (eval $ac_try) 2>&5
30854 ac_status=$?
30855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30856 (exit $ac_status); }; }; then
30857 eval "$as_ac_var=yes"
30858else
30859 echo "$as_me: failed program was:" >&5
30860sed 's/^/| /' conftest.$ac_ext >&5
30861
30862eval "$as_ac_var=no"
30863fi
ac1cb8d3
VS
30864rm -f conftest.err conftest.$ac_objext \
30865 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30866fi
30867echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30868echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30869if test `eval echo '${'$as_ac_var'}'` = yes; then
30870 cat >>confdefs.h <<_ACEOF
30871#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30872_ACEOF
30873
30874fi
30875done
30876
30877
30878 if test "$ac_cv_func_sigaction" = "no"; then
30879 { echo "$as_me:$LINENO: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&5
30880echo "$as_me: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&2;}
30881 wxUSE_ON_FATAL_EXCEPTION=no
30882 fi
30883
30884 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
30885
30886
30887 ac_ext=cc
30888ac_cpp='$CXXCPP $CPPFLAGS'
30889ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30890ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30891ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30892
30893
30894 echo "$as_me:$LINENO: checking for sa_handler type" >&5
30895echo $ECHO_N "checking for sa_handler type... $ECHO_C" >&6
30896if test "${wx_cv_type_sa_handler+set}" = set; then
30897 echo $ECHO_N "(cached) $ECHO_C" >&6
30898else
30899
30900 cat >conftest.$ac_ext <<_ACEOF
30901/* confdefs.h. */
30902_ACEOF
30903cat confdefs.h >>conftest.$ac_ext
30904cat >>conftest.$ac_ext <<_ACEOF
30905/* end confdefs.h. */
30906#include <signal.h>
30907int
30908main ()
30909{
30910
30911 extern void testSigHandler(int);
30912
30913 struct sigaction sa;
30914 sa.sa_handler = testSigHandler;
30915
30916 ;
30917 return 0;
30918}
30919_ACEOF
30920rm -f conftest.$ac_objext
30921if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 30922 (eval $ac_compile) 2>conftest.er1
a848cd7e 30923 ac_status=$?
ac1cb8d3
VS
30924 grep -v '^ *+' conftest.er1 >conftest.err
30925 rm -f conftest.er1
30926 cat conftest.err >&5
a848cd7e
SC
30927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30928 (exit $ac_status); } &&
89be85c2
VS
30929 { ac_try='test -z "$ac_cxx_werror_flag"
30930 || test ! -s conftest.err'
ac1cb8d3
VS
30931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30932 (eval $ac_try) 2>&5
30933 ac_status=$?
30934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30935 (exit $ac_status); }; } &&
30936 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
30937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30938 (eval $ac_try) 2>&5
30939 ac_status=$?
30940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30941 (exit $ac_status); }; }; then
30942
30943 wx_cv_type_sa_handler=int
30944
30945else
30946 echo "$as_me: failed program was:" >&5
30947sed 's/^/| /' conftest.$ac_ext >&5
30948
30949
30950 wx_cv_type_sa_handler=void
30951
30952fi
ac1cb8d3 30953rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
30954
30955fi
30956echo "$as_me:$LINENO: result: $wx_cv_type_sa_handler" >&5
30957echo "${ECHO_T}$wx_cv_type_sa_handler" >&6
30958
30959 ac_ext=c
30960ac_cpp='$CPP $CPPFLAGS'
30961ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30962ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30963ac_compiler_gnu=$ac_cv_c_compiler_gnu
30964
30965
30966 cat >>confdefs.h <<_ACEOF
30967#define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler
30968_ACEOF
30969
30970 fi
30971fi
30972
eaff0f0d
VZ
30973if test "$wxUSE_STACKWALKER" = "yes" -a "$wxUSE_UNIX" = "yes"; then
30974
30975
30976 ac_ext=cc
30977ac_cpp='$CXXCPP $CPPFLAGS'
30978ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30979ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30980ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30981
30982
30983 echo "$as_me:$LINENO: checking for backtrace() in <execinfo.h>" >&5
30984echo $ECHO_N "checking for backtrace() in <execinfo.h>... $ECHO_C" >&6
30985if test "${wx_cv_func_backtrace+set}" = set; then
30986 echo $ECHO_N "(cached) $ECHO_C" >&6
30987else
30988
30989 cat >conftest.$ac_ext <<_ACEOF
30990/* confdefs.h. */
30991_ACEOF
30992cat confdefs.h >>conftest.$ac_ext
30993cat >>conftest.$ac_ext <<_ACEOF
30994/* end confdefs.h. */
30995#include <execinfo.h>
30996int
30997main ()
30998{
30999
31000 void *trace[1];
31001 char **messages;
31002
31003 backtrace(trace, 1);
31004 messages = backtrace_symbols(trace, 1);
31005
31006 ;
31007 return 0;
31008}
31009_ACEOF
31010rm -f conftest.$ac_objext
31011if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31012 (eval $ac_compile) 2>conftest.er1
31013 ac_status=$?
31014 grep -v '^ *+' conftest.er1 >conftest.err
31015 rm -f conftest.er1
31016 cat conftest.err >&5
31017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31018 (exit $ac_status); } &&
89be85c2
VS
31019 { ac_try='test -z "$ac_cxx_werror_flag"
31020 || test ! -s conftest.err'
eaff0f0d
VZ
31021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31022 (eval $ac_try) 2>&5
31023 ac_status=$?
31024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31025 (exit $ac_status); }; } &&
31026 { ac_try='test -s conftest.$ac_objext'
31027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31028 (eval $ac_try) 2>&5
31029 ac_status=$?
31030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31031 (exit $ac_status); }; }; then
31032 wx_cv_func_backtrace=yes
31033else
31034 echo "$as_me: failed program was:" >&5
31035sed 's/^/| /' conftest.$ac_ext >&5
31036
31037wx_cv_func_backtrace=no
31038
31039fi
31040rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31041
31042
31043fi
31044echo "$as_me:$LINENO: result: $wx_cv_func_backtrace" >&5
31045echo "${ECHO_T}$wx_cv_func_backtrace" >&6
31046
31047
31048 if test "$wx_cv_func_backtrace" = "no"; then
31049 { echo "$as_me:$LINENO: WARNING: backtrace() is not available, wxStackWalker will not be available" >&5
31050echo "$as_me: WARNING: backtrace() is not available, wxStackWalker will not be available" >&2;}
31051 wxUSE_STACKWALKER=no
31052 else
31053 echo "$as_me:$LINENO: checking for __cxa_demangle() in <cxxabi.h>" >&5
31054echo $ECHO_N "checking for __cxa_demangle() in <cxxabi.h>... $ECHO_C" >&6
31055if test "${wx_cv_func_cxa_demangle+set}" = set; then
31056 echo $ECHO_N "(cached) $ECHO_C" >&6
31057else
31058
31059 cat >conftest.$ac_ext <<_ACEOF
31060/* confdefs.h. */
31061_ACEOF
31062cat confdefs.h >>conftest.$ac_ext
31063cat >>conftest.$ac_ext <<_ACEOF
31064/* end confdefs.h. */
31065#include <cxxabi.h>
31066int
31067main ()
31068{
31069
31070 int rc;
31071 __cxxabiv1::__cxa_demangle("foo", 0, 0, &rc);
31072
31073 ;
31074 return 0;
31075}
31076_ACEOF
31077rm -f conftest.$ac_objext
31078if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31079 (eval $ac_compile) 2>conftest.er1
31080 ac_status=$?
31081 grep -v '^ *+' conftest.er1 >conftest.err
31082 rm -f conftest.er1
31083 cat conftest.err >&5
31084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31085 (exit $ac_status); } &&
89be85c2
VS
31086 { ac_try='test -z "$ac_cxx_werror_flag"
31087 || test ! -s conftest.err'
eaff0f0d
VZ
31088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31089 (eval $ac_try) 2>&5
31090 ac_status=$?
31091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31092 (exit $ac_status); }; } &&
31093 { ac_try='test -s conftest.$ac_objext'
31094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31095 (eval $ac_try) 2>&5
31096 ac_status=$?
31097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31098 (exit $ac_status); }; }; then
31099 wx_cv_func_cxa_demangle=yes
31100else
31101 echo "$as_me: failed program was:" >&5
31102sed 's/^/| /' conftest.$ac_ext >&5
31103
31104wx_cv_func_cxa_demangle=no
31105
31106fi
31107rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31108
31109
31110fi
31111echo "$as_me:$LINENO: result: $wx_cv_func_cxa_demangle" >&5
31112echo "${ECHO_T}$wx_cv_func_cxa_demangle" >&6
31113
31114 if test "$wx_cv_func_cxa_demangle" = "yes"; then
31115 cat >>confdefs.h <<\_ACEOF
31116#define HAVE_CXA_DEMANGLE 1
31117_ACEOF
31118
31119 fi
31120 fi
31121
31122 ac_ext=c
31123ac_cpp='$CPP $CPPFLAGS'
31124ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31125ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31126ac_compiler_gnu=$ac_cv_c_compiler_gnu
31127
31128fi
31129
a848cd7e
SC
31130
31131
31132for ac_func in mkstemp mktemp
31133do
31134as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31135echo "$as_me:$LINENO: checking for $ac_func" >&5
31136echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31137if eval "test \"\${$as_ac_var+set}\" = set"; then
31138 echo $ECHO_N "(cached) $ECHO_C" >&6
31139else
31140 cat >conftest.$ac_ext <<_ACEOF
31141/* confdefs.h. */
31142_ACEOF
31143cat confdefs.h >>conftest.$ac_ext
31144cat >>conftest.$ac_ext <<_ACEOF
31145/* end confdefs.h. */
ac1cb8d3
VS
31146/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31147 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31148#define $ac_func innocuous_$ac_func
31149
a848cd7e
SC
31150/* System header to define __stub macros and hopefully few prototypes,
31151 which can conflict with char $ac_func (); below.
31152 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31153 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 31154
a848cd7e
SC
31155#ifdef __STDC__
31156# include <limits.h>
31157#else
31158# include <assert.h>
31159#endif
ac1cb8d3
VS
31160
31161#undef $ac_func
31162
a848cd7e
SC
31163/* Override any gcc2 internal prototype to avoid an error. */
31164#ifdef __cplusplus
31165extern "C"
31166{
31167#endif
31168/* We use char because int might match the return type of a gcc2
31169 builtin and then its argument prototype would still apply. */
31170char $ac_func ();
31171/* The GNU C library defines this for functions which it implements
31172 to always fail with ENOSYS. Some functions are actually named
31173 something starting with __ and the normal name is an alias. */
31174#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31175choke me
31176#else
31177char (*f) () = $ac_func;
31178#endif
31179#ifdef __cplusplus
31180}
31181#endif
31182
31183int
31184main ()
31185{
31186return f != $ac_func;
31187 ;
31188 return 0;
31189}
31190_ACEOF
31191rm -f conftest.$ac_objext conftest$ac_exeext
31192if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31193 (eval $ac_link) 2>conftest.er1
a848cd7e 31194 ac_status=$?
ac1cb8d3
VS
31195 grep -v '^ *+' conftest.er1 >conftest.err
31196 rm -f conftest.er1
31197 cat conftest.err >&5
a848cd7e
SC
31198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31199 (exit $ac_status); } &&
89be85c2
VS
31200 { ac_try='test -z "$ac_c_werror_flag"
31201 || test ! -s conftest.err'
ac1cb8d3
VS
31202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31203 (eval $ac_try) 2>&5
31204 ac_status=$?
31205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31206 (exit $ac_status); }; } &&
31207 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31209 (eval $ac_try) 2>&5
31210 ac_status=$?
31211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31212 (exit $ac_status); }; }; then
31213 eval "$as_ac_var=yes"
31214else
31215 echo "$as_me: failed program was:" >&5
31216sed 's/^/| /' conftest.$ac_ext >&5
31217
31218eval "$as_ac_var=no"
31219fi
ac1cb8d3
VS
31220rm -f conftest.err conftest.$ac_objext \
31221 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31222fi
31223echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31224echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31225if test `eval echo '${'$as_ac_var'}'` = yes; then
31226 cat >>confdefs.h <<_ACEOF
31227#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31228_ACEOF
31229 break
31230fi
31231done
31232
31233
31234echo "$as_me:$LINENO: checking for statfs" >&5
31235echo $ECHO_N "checking for statfs... $ECHO_C" >&6
31236if test "${wx_cv_func_statfs+set}" = set; then
31237 echo $ECHO_N "(cached) $ECHO_C" >&6
31238else
31239 cat >conftest.$ac_ext <<_ACEOF
31240/* confdefs.h. */
31241_ACEOF
31242cat confdefs.h >>conftest.$ac_ext
31243cat >>conftest.$ac_ext <<_ACEOF
31244/* end confdefs.h. */
31245
31246 #if defined(__BSD__)
31247 #include <sys/param.h>
31248 #include <sys/mount.h>
31249 #else
31250 #include <sys/vfs.h>
31251 #endif
31252
31253int
31254main ()
31255{
31256
31257 long l;
31258 struct statfs fs;
31259 statfs("/", &fs);
31260 l = fs.f_bsize;
31261 l += fs.f_blocks;
31262 l += fs.f_bavail;
31263
31264 ;
31265 return 0;
31266}
31267_ACEOF
31268rm -f conftest.$ac_objext
31269if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 31270 (eval $ac_compile) 2>conftest.er1
a848cd7e 31271 ac_status=$?
ac1cb8d3
VS
31272 grep -v '^ *+' conftest.er1 >conftest.err
31273 rm -f conftest.er1
31274 cat conftest.err >&5
a848cd7e
SC
31275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31276 (exit $ac_status); } &&
89be85c2
VS
31277 { ac_try='test -z "$ac_c_werror_flag"
31278 || test ! -s conftest.err'
ac1cb8d3
VS
31279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31280 (eval $ac_try) 2>&5
31281 ac_status=$?
31282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31283 (exit $ac_status); }; } &&
31284 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
31285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31286 (eval $ac_try) 2>&5
31287 ac_status=$?
31288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31289 (exit $ac_status); }; }; then
31290
31291 wx_cv_func_statfs=yes
31292
31293else
31294 echo "$as_me: failed program was:" >&5
31295sed 's/^/| /' conftest.$ac_ext >&5
31296
31297
31298 wx_cv_func_statfs=no
31299
31300
31301fi
ac1cb8d3 31302rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
31303
31304fi
31305echo "$as_me:$LINENO: result: $wx_cv_func_statfs" >&5
31306echo "${ECHO_T}$wx_cv_func_statfs" >&6
31307
31308if test "$wx_cv_func_statfs" = "yes"; then
31309 wx_cv_type_statvfs_t="struct statfs"
31310 cat >>confdefs.h <<\_ACEOF
31311#define HAVE_STATFS 1
31312_ACEOF
31313
31314else
31315 echo "$as_me:$LINENO: checking for statvfs" >&5
31316echo $ECHO_N "checking for statvfs... $ECHO_C" >&6
31317if test "${wx_cv_func_statvfs+set}" = set; then
31318 echo $ECHO_N "(cached) $ECHO_C" >&6
31319else
31320 cat >conftest.$ac_ext <<_ACEOF
31321/* confdefs.h. */
31322_ACEOF
31323cat confdefs.h >>conftest.$ac_ext
31324cat >>conftest.$ac_ext <<_ACEOF
31325/* end confdefs.h. */
31326
31327 #include <stddef.h>
31328 #include <sys/statvfs.h>
31329
31330int
31331main ()
31332{
31333
31334 statvfs("/", NULL);
31335
31336 ;
31337 return 0;
31338}
31339_ACEOF
31340rm -f conftest.$ac_objext
31341if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 31342 (eval $ac_compile) 2>conftest.er1
a848cd7e 31343 ac_status=$?
ac1cb8d3
VS
31344 grep -v '^ *+' conftest.er1 >conftest.err
31345 rm -f conftest.er1
31346 cat conftest.err >&5
a848cd7e
SC
31347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31348 (exit $ac_status); } &&
89be85c2
VS
31349 { ac_try='test -z "$ac_c_werror_flag"
31350 || test ! -s conftest.err'
ac1cb8d3
VS
31351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31352 (eval $ac_try) 2>&5
31353 ac_status=$?
31354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31355 (exit $ac_status); }; } &&
31356 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
31357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31358 (eval $ac_try) 2>&5
31359 ac_status=$?
31360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31361 (exit $ac_status); }; }; then
31362 wx_cv_func_statvfs=yes
31363else
31364 echo "$as_me: failed program was:" >&5
31365sed 's/^/| /' conftest.$ac_ext >&5
31366
31367wx_cv_func_statvfs=no
31368
31369fi
ac1cb8d3 31370rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
31371
31372fi
31373echo "$as_me:$LINENO: result: $wx_cv_func_statvfs" >&5
31374echo "${ECHO_T}$wx_cv_func_statvfs" >&6
31375
31376 if test "$wx_cv_func_statvfs" = "yes"; then
31377
31378
31379 ac_ext=cc
31380ac_cpp='$CXXCPP $CPPFLAGS'
31381ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31382ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31383ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31384
31385
31386 echo "$as_me:$LINENO: checking for statvfs argument type" >&5
31387echo $ECHO_N "checking for statvfs argument type... $ECHO_C" >&6
31388if test "${wx_cv_type_statvfs_t+set}" = set; then
31389 echo $ECHO_N "(cached) $ECHO_C" >&6
31390else
31391 cat >conftest.$ac_ext <<_ACEOF
31392/* confdefs.h. */
31393_ACEOF
31394cat confdefs.h >>conftest.$ac_ext
31395cat >>conftest.$ac_ext <<_ACEOF
31396/* end confdefs.h. */
31397
31398 #include <sys/statvfs.h>
31399
31400int
31401main ()
31402{
31403
31404 long l;
31405 statvfs_t fs;
31406 statvfs("/", &fs);
31407 l = fs.f_bsize;
31408 l += fs.f_blocks;
31409 l += fs.f_bavail;
31410
31411 ;
31412 return 0;
31413}
31414_ACEOF
31415rm -f conftest.$ac_objext
31416if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 31417 (eval $ac_compile) 2>conftest.er1
a848cd7e 31418 ac_status=$?
ac1cb8d3
VS
31419 grep -v '^ *+' conftest.er1 >conftest.err
31420 rm -f conftest.er1
31421 cat conftest.err >&5
a848cd7e
SC
31422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31423 (exit $ac_status); } &&
89be85c2
VS
31424 { ac_try='test -z "$ac_cxx_werror_flag"
31425 || test ! -s conftest.err'
ac1cb8d3
VS
31426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31427 (eval $ac_try) 2>&5
31428 ac_status=$?
31429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31430 (exit $ac_status); }; } &&
31431 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
31432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31433 (eval $ac_try) 2>&5
31434 ac_status=$?
31435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31436 (exit $ac_status); }; }; then
31437 wx_cv_type_statvfs_t=statvfs_t
31438else
31439 echo "$as_me: failed program was:" >&5
31440sed 's/^/| /' conftest.$ac_ext >&5
31441
31442
31443 cat >conftest.$ac_ext <<_ACEOF
31444/* confdefs.h. */
31445_ACEOF
31446cat confdefs.h >>conftest.$ac_ext
31447cat >>conftest.$ac_ext <<_ACEOF
31448/* end confdefs.h. */
31449
31450 #include <sys/statvfs.h>
31451
31452int
31453main ()
31454{
31455
31456 long l;
31457 struct statvfs fs;
31458 statvfs("/", &fs);
31459 l = fs.f_bsize;
31460 l += fs.f_blocks;
31461 l += fs.f_bavail;
31462
31463 ;
31464 return 0;
31465}
31466_ACEOF
31467rm -f conftest.$ac_objext
31468if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 31469 (eval $ac_compile) 2>conftest.er1
a848cd7e 31470 ac_status=$?
ac1cb8d3
VS
31471 grep -v '^ *+' conftest.er1 >conftest.err
31472 rm -f conftest.er1
31473 cat conftest.err >&5
a848cd7e
SC
31474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31475 (exit $ac_status); } &&
89be85c2
VS
31476 { ac_try='test -z "$ac_cxx_werror_flag"
31477 || test ! -s conftest.err'
ac1cb8d3
VS
31478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31479 (eval $ac_try) 2>&5
31480 ac_status=$?
31481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31482 (exit $ac_status); }; } &&
31483 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
31484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31485 (eval $ac_try) 2>&5
31486 ac_status=$?
31487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31488 (exit $ac_status); }; }; then
31489 wx_cv_type_statvfs_t="struct statvfs"
31490else
31491 echo "$as_me: failed program was:" >&5
31492sed 's/^/| /' conftest.$ac_ext >&5
31493
31494wx_cv_type_statvfs_t="unknown"
31495
31496fi
ac1cb8d3 31497rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
31498
31499
31500fi
ac1cb8d3 31501rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
31502
31503fi
31504echo "$as_me:$LINENO: result: $wx_cv_type_statvfs_t" >&5
31505echo "${ECHO_T}$wx_cv_type_statvfs_t" >&6
31506
31507 ac_ext=c
31508ac_cpp='$CPP $CPPFLAGS'
31509ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31510ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31511ac_compiler_gnu=$ac_cv_c_compiler_gnu
31512
31513
31514 if test "$wx_cv_type_statvfs_t" != "unknown"; then
31515 cat >>confdefs.h <<\_ACEOF
31516#define HAVE_STATVFS 1
31517_ACEOF
31518
31519 fi
31520 else
31521 wx_cv_type_statvfs_t="unknown"
31522 fi
31523fi
31524
31525if test "$wx_cv_type_statvfs_t" != "unknown"; then
31526 cat >>confdefs.h <<_ACEOF
31527#define WX_STATFS_T $wx_cv_type_statvfs_t
31528_ACEOF
31529
31530else
31531 { echo "$as_me:$LINENO: WARNING: wxGetDiskSpace() function won't work without statfs()" >&5
31532echo "$as_me: WARNING: wxGetDiskSpace() function won't work without statfs()" >&2;}
31533fi
31534
31535if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
31536
31537
31538for ac_func in fcntl flock
31539do
31540as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31541echo "$as_me:$LINENO: checking for $ac_func" >&5
31542echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31543if eval "test \"\${$as_ac_var+set}\" = set"; then
31544 echo $ECHO_N "(cached) $ECHO_C" >&6
31545else
31546 cat >conftest.$ac_ext <<_ACEOF
31547/* confdefs.h. */
31548_ACEOF
31549cat confdefs.h >>conftest.$ac_ext
31550cat >>conftest.$ac_ext <<_ACEOF
31551/* end confdefs.h. */
ac1cb8d3
VS
31552/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31553 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31554#define $ac_func innocuous_$ac_func
31555
a848cd7e
SC
31556/* System header to define __stub macros and hopefully few prototypes,
31557 which can conflict with char $ac_func (); below.
31558 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31559 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 31560
a848cd7e
SC
31561#ifdef __STDC__
31562# include <limits.h>
31563#else
31564# include <assert.h>
31565#endif
ac1cb8d3
VS
31566
31567#undef $ac_func
31568
a848cd7e
SC
31569/* Override any gcc2 internal prototype to avoid an error. */
31570#ifdef __cplusplus
31571extern "C"
31572{
31573#endif
31574/* We use char because int might match the return type of a gcc2
31575 builtin and then its argument prototype would still apply. */
31576char $ac_func ();
31577/* The GNU C library defines this for functions which it implements
31578 to always fail with ENOSYS. Some functions are actually named
31579 something starting with __ and the normal name is an alias. */
31580#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31581choke me
31582#else
31583char (*f) () = $ac_func;
31584#endif
31585#ifdef __cplusplus
31586}
31587#endif
31588
31589int
31590main ()
31591{
31592return f != $ac_func;
31593 ;
31594 return 0;
31595}
31596_ACEOF
31597rm -f conftest.$ac_objext conftest$ac_exeext
31598if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31599 (eval $ac_link) 2>conftest.er1
a848cd7e 31600 ac_status=$?
ac1cb8d3
VS
31601 grep -v '^ *+' conftest.er1 >conftest.err
31602 rm -f conftest.er1
31603 cat conftest.err >&5
a848cd7e
SC
31604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31605 (exit $ac_status); } &&
89be85c2
VS
31606 { ac_try='test -z "$ac_c_werror_flag"
31607 || test ! -s conftest.err'
ac1cb8d3
VS
31608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31609 (eval $ac_try) 2>&5
31610 ac_status=$?
31611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31612 (exit $ac_status); }; } &&
31613 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31615 (eval $ac_try) 2>&5
31616 ac_status=$?
31617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31618 (exit $ac_status); }; }; then
31619 eval "$as_ac_var=yes"
31620else
31621 echo "$as_me: failed program was:" >&5
31622sed 's/^/| /' conftest.$ac_ext >&5
31623
31624eval "$as_ac_var=no"
31625fi
ac1cb8d3
VS
31626rm -f conftest.err conftest.$ac_objext \
31627 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31628fi
31629echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31630echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31631if test `eval echo '${'$as_ac_var'}'` = yes; then
31632 cat >>confdefs.h <<_ACEOF
31633#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31634_ACEOF
31635 break
31636fi
31637done
31638
31639
31640 if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then
31641 { echo "$as_me:$LINENO: WARNING: wxSingleInstanceChecker not available" >&5
31642echo "$as_me: WARNING: wxSingleInstanceChecker not available" >&2;}
31643 wxUSE_SNGLINST_CHECKER=no
31644 fi
31645fi
31646
31647
31648for ac_func in timegm
31649do
31650as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31651echo "$as_me:$LINENO: checking for $ac_func" >&5
31652echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31653if eval "test \"\${$as_ac_var+set}\" = set"; then
31654 echo $ECHO_N "(cached) $ECHO_C" >&6
31655else
31656 cat >conftest.$ac_ext <<_ACEOF
31657/* confdefs.h. */
31658_ACEOF
31659cat confdefs.h >>conftest.$ac_ext
31660cat >>conftest.$ac_ext <<_ACEOF
31661/* end confdefs.h. */
ac1cb8d3
VS
31662/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31663 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31664#define $ac_func innocuous_$ac_func
31665
a848cd7e
SC
31666/* System header to define __stub macros and hopefully few prototypes,
31667 which can conflict with char $ac_func (); below.
31668 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31669 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 31670
a848cd7e
SC
31671#ifdef __STDC__
31672# include <limits.h>
31673#else
31674# include <assert.h>
31675#endif
ac1cb8d3
VS
31676
31677#undef $ac_func
31678
a848cd7e
SC
31679/* Override any gcc2 internal prototype to avoid an error. */
31680#ifdef __cplusplus
31681extern "C"
31682{
31683#endif
31684/* We use char because int might match the return type of a gcc2
31685 builtin and then its argument prototype would still apply. */
31686char $ac_func ();
31687/* The GNU C library defines this for functions which it implements
31688 to always fail with ENOSYS. Some functions are actually named
31689 something starting with __ and the normal name is an alias. */
31690#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31691choke me
31692#else
31693char (*f) () = $ac_func;
31694#endif
31695#ifdef __cplusplus
31696}
31697#endif
31698
31699int
31700main ()
31701{
31702return f != $ac_func;
31703 ;
31704 return 0;
31705}
31706_ACEOF
31707rm -f conftest.$ac_objext conftest$ac_exeext
31708if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31709 (eval $ac_link) 2>conftest.er1
a848cd7e 31710 ac_status=$?
ac1cb8d3
VS
31711 grep -v '^ *+' conftest.er1 >conftest.err
31712 rm -f conftest.er1
31713 cat conftest.err >&5
a848cd7e
SC
31714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31715 (exit $ac_status); } &&
89be85c2
VS
31716 { ac_try='test -z "$ac_c_werror_flag"
31717 || test ! -s conftest.err'
ac1cb8d3
VS
31718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31719 (eval $ac_try) 2>&5
31720 ac_status=$?
31721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31722 (exit $ac_status); }; } &&
31723 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31725 (eval $ac_try) 2>&5
31726 ac_status=$?
31727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31728 (exit $ac_status); }; }; then
31729 eval "$as_ac_var=yes"
31730else
31731 echo "$as_me: failed program was:" >&5
31732sed 's/^/| /' conftest.$ac_ext >&5
31733
31734eval "$as_ac_var=no"
31735fi
ac1cb8d3
VS
31736rm -f conftest.err conftest.$ac_objext \
31737 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31738fi
31739echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31740echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31741if test `eval echo '${'$as_ac_var'}'` = yes; then
31742 cat >>confdefs.h <<_ACEOF
31743#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31744_ACEOF
31745
31746fi
31747done
31748
31749
31750
31751
31752for ac_func in putenv setenv
31753do
31754as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31755echo "$as_me:$LINENO: checking for $ac_func" >&5
31756echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31757if eval "test \"\${$as_ac_var+set}\" = set"; then
31758 echo $ECHO_N "(cached) $ECHO_C" >&6
31759else
31760 cat >conftest.$ac_ext <<_ACEOF
31761/* confdefs.h. */
31762_ACEOF
31763cat confdefs.h >>conftest.$ac_ext
31764cat >>conftest.$ac_ext <<_ACEOF
31765/* end confdefs.h. */
ac1cb8d3
VS
31766/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31767 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31768#define $ac_func innocuous_$ac_func
31769
a848cd7e
SC
31770/* System header to define __stub macros and hopefully few prototypes,
31771 which can conflict with char $ac_func (); below.
31772 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31773 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 31774
a848cd7e
SC
31775#ifdef __STDC__
31776# include <limits.h>
31777#else
31778# include <assert.h>
31779#endif
ac1cb8d3
VS
31780
31781#undef $ac_func
31782
a848cd7e
SC
31783/* Override any gcc2 internal prototype to avoid an error. */
31784#ifdef __cplusplus
31785extern "C"
31786{
31787#endif
31788/* We use char because int might match the return type of a gcc2
31789 builtin and then its argument prototype would still apply. */
31790char $ac_func ();
31791/* The GNU C library defines this for functions which it implements
31792 to always fail with ENOSYS. Some functions are actually named
31793 something starting with __ and the normal name is an alias. */
31794#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31795choke me
31796#else
31797char (*f) () = $ac_func;
31798#endif
31799#ifdef __cplusplus
31800}
31801#endif
31802
31803int
31804main ()
31805{
31806return f != $ac_func;
31807 ;
31808 return 0;
31809}
31810_ACEOF
31811rm -f conftest.$ac_objext conftest$ac_exeext
31812if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31813 (eval $ac_link) 2>conftest.er1
a848cd7e 31814 ac_status=$?
ac1cb8d3
VS
31815 grep -v '^ *+' conftest.er1 >conftest.err
31816 rm -f conftest.er1
31817 cat conftest.err >&5
a848cd7e
SC
31818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31819 (exit $ac_status); } &&
89be85c2
VS
31820 { ac_try='test -z "$ac_c_werror_flag"
31821 || test ! -s conftest.err'
ac1cb8d3
VS
31822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31823 (eval $ac_try) 2>&5
31824 ac_status=$?
31825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31826 (exit $ac_status); }; } &&
31827 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31829 (eval $ac_try) 2>&5
31830 ac_status=$?
31831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31832 (exit $ac_status); }; }; then
31833 eval "$as_ac_var=yes"
31834else
31835 echo "$as_me: failed program was:" >&5
31836sed 's/^/| /' conftest.$ac_ext >&5
31837
31838eval "$as_ac_var=no"
31839fi
ac1cb8d3
VS
31840rm -f conftest.err conftest.$ac_objext \
31841 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31842fi
31843echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31844echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31845if test `eval echo '${'$as_ac_var'}'` = yes; then
31846 cat >>confdefs.h <<_ACEOF
31847#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31848_ACEOF
31849 break
31850fi
31851done
31852
31853
31854HAVE_SOME_SLEEP_FUNC=0
31855if test "$USE_BEOS" = 1; then
31856 cat >>confdefs.h <<\_ACEOF
31857#define HAVE_SLEEP 1
31858_ACEOF
31859
31860 HAVE_SOME_SLEEP_FUNC=1
31861fi
31862
31863if test "$USE_DARWIN" = 1; then
31864 cat >>confdefs.h <<\_ACEOF
31865#define HAVE_USLEEP 1
31866_ACEOF
31867
31868 HAVE_SOME_SLEEP_FUNC=1
31869fi
31870
31871if test "$HAVE_SOME_SLEEP_FUNC" != 1; then
31872 POSIX4_LINK=
31873
31874for ac_func in nanosleep
31875do
31876as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31877echo "$as_me:$LINENO: checking for $ac_func" >&5
31878echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31879if eval "test \"\${$as_ac_var+set}\" = set"; then
31880 echo $ECHO_N "(cached) $ECHO_C" >&6
31881else
31882 cat >conftest.$ac_ext <<_ACEOF
31883/* confdefs.h. */
31884_ACEOF
31885cat confdefs.h >>conftest.$ac_ext
31886cat >>conftest.$ac_ext <<_ACEOF
31887/* end confdefs.h. */
ac1cb8d3
VS
31888/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31889 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31890#define $ac_func innocuous_$ac_func
31891
a848cd7e
SC
31892/* System header to define __stub macros and hopefully few prototypes,
31893 which can conflict with char $ac_func (); below.
31894 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31895 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 31896
a848cd7e
SC
31897#ifdef __STDC__
31898# include <limits.h>
31899#else
31900# include <assert.h>
31901#endif
ac1cb8d3
VS
31902
31903#undef $ac_func
31904
a848cd7e
SC
31905/* Override any gcc2 internal prototype to avoid an error. */
31906#ifdef __cplusplus
31907extern "C"
31908{
31909#endif
31910/* We use char because int might match the return type of a gcc2
31911 builtin and then its argument prototype would still apply. */
31912char $ac_func ();
31913/* The GNU C library defines this for functions which it implements
31914 to always fail with ENOSYS. Some functions are actually named
31915 something starting with __ and the normal name is an alias. */
31916#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31917choke me
31918#else
31919char (*f) () = $ac_func;
31920#endif
31921#ifdef __cplusplus
31922}
31923#endif
31924
31925int
31926main ()
31927{
31928return f != $ac_func;
31929 ;
31930 return 0;
31931}
31932_ACEOF
31933rm -f conftest.$ac_objext conftest$ac_exeext
31934if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31935 (eval $ac_link) 2>conftest.er1
a848cd7e 31936 ac_status=$?
ac1cb8d3
VS
31937 grep -v '^ *+' conftest.er1 >conftest.err
31938 rm -f conftest.er1
31939 cat conftest.err >&5
a848cd7e
SC
31940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31941 (exit $ac_status); } &&
89be85c2
VS
31942 { ac_try='test -z "$ac_c_werror_flag"
31943 || test ! -s conftest.err'
ac1cb8d3
VS
31944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31945 (eval $ac_try) 2>&5
31946 ac_status=$?
31947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31948 (exit $ac_status); }; } &&
31949 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31951 (eval $ac_try) 2>&5
31952 ac_status=$?
31953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31954 (exit $ac_status); }; }; then
31955 eval "$as_ac_var=yes"
31956else
31957 echo "$as_me: failed program was:" >&5
31958sed 's/^/| /' conftest.$ac_ext >&5
31959
31960eval "$as_ac_var=no"
31961fi
ac1cb8d3
VS
31962rm -f conftest.err conftest.$ac_objext \
31963 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31964fi
31965echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31966echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31967if test `eval echo '${'$as_ac_var'}'` = yes; then
31968 cat >>confdefs.h <<_ACEOF
31969#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31970_ACEOF
31971 cat >>confdefs.h <<\_ACEOF
31972#define HAVE_NANOSLEEP 1
31973_ACEOF
31974
31975else
31976
31977 echo "$as_me:$LINENO: checking for nanosleep in -lposix4" >&5
31978echo $ECHO_N "checking for nanosleep in -lposix4... $ECHO_C" >&6
31979if test "${ac_cv_lib_posix4_nanosleep+set}" = set; then
31980 echo $ECHO_N "(cached) $ECHO_C" >&6
31981else
31982 ac_check_lib_save_LIBS=$LIBS
31983LIBS="-lposix4 $LIBS"
31984cat >conftest.$ac_ext <<_ACEOF
31985/* confdefs.h. */
31986_ACEOF
31987cat confdefs.h >>conftest.$ac_ext
31988cat >>conftest.$ac_ext <<_ACEOF
31989/* end confdefs.h. */
31990
31991/* Override any gcc2 internal prototype to avoid an error. */
31992#ifdef __cplusplus
31993extern "C"
31994#endif
31995/* We use char because int might match the return type of a gcc2
31996 builtin and then its argument prototype would still apply. */
31997char nanosleep ();
31998int
31999main ()
32000{
32001nanosleep ();
32002 ;
32003 return 0;
32004}
32005_ACEOF
32006rm -f conftest.$ac_objext conftest$ac_exeext
32007if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32008 (eval $ac_link) 2>conftest.er1
a848cd7e 32009 ac_status=$?
ac1cb8d3
VS
32010 grep -v '^ *+' conftest.er1 >conftest.err
32011 rm -f conftest.er1
32012 cat conftest.err >&5
a848cd7e
SC
32013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32014 (exit $ac_status); } &&
89be85c2
VS
32015 { ac_try='test -z "$ac_c_werror_flag"
32016 || test ! -s conftest.err'
ac1cb8d3
VS
32017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32018 (eval $ac_try) 2>&5
32019 ac_status=$?
32020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32021 (exit $ac_status); }; } &&
32022 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32024 (eval $ac_try) 2>&5
32025 ac_status=$?
32026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32027 (exit $ac_status); }; }; then
32028 ac_cv_lib_posix4_nanosleep=yes
32029else
32030 echo "$as_me: failed program was:" >&5
32031sed 's/^/| /' conftest.$ac_ext >&5
32032
32033ac_cv_lib_posix4_nanosleep=no
32034fi
ac1cb8d3
VS
32035rm -f conftest.err conftest.$ac_objext \
32036 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32037LIBS=$ac_check_lib_save_LIBS
32038fi
32039echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_nanosleep" >&5
32040echo "${ECHO_T}$ac_cv_lib_posix4_nanosleep" >&6
32041if test $ac_cv_lib_posix4_nanosleep = yes; then
32042
32043 cat >>confdefs.h <<\_ACEOF
32044#define HAVE_NANOSLEEP 1
32045_ACEOF
32046
32047 POSIX4_LINK=" -lposix4"
32048
32049else
32050
32051
32052for ac_func in usleep
32053do
32054as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32055echo "$as_me:$LINENO: checking for $ac_func" >&5
32056echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32057if eval "test \"\${$as_ac_var+set}\" = set"; then
32058 echo $ECHO_N "(cached) $ECHO_C" >&6
32059else
32060 cat >conftest.$ac_ext <<_ACEOF
32061/* confdefs.h. */
32062_ACEOF
32063cat confdefs.h >>conftest.$ac_ext
32064cat >>conftest.$ac_ext <<_ACEOF
32065/* end confdefs.h. */
ac1cb8d3
VS
32066/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32067 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32068#define $ac_func innocuous_$ac_func
32069
a848cd7e
SC
32070/* System header to define __stub macros and hopefully few prototypes,
32071 which can conflict with char $ac_func (); below.
32072 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32073 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 32074
a848cd7e
SC
32075#ifdef __STDC__
32076# include <limits.h>
32077#else
32078# include <assert.h>
32079#endif
ac1cb8d3
VS
32080
32081#undef $ac_func
32082
a848cd7e
SC
32083/* Override any gcc2 internal prototype to avoid an error. */
32084#ifdef __cplusplus
32085extern "C"
32086{
32087#endif
32088/* We use char because int might match the return type of a gcc2
32089 builtin and then its argument prototype would still apply. */
32090char $ac_func ();
32091/* The GNU C library defines this for functions which it implements
32092 to always fail with ENOSYS. Some functions are actually named
32093 something starting with __ and the normal name is an alias. */
32094#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32095choke me
32096#else
32097char (*f) () = $ac_func;
32098#endif
32099#ifdef __cplusplus
32100}
32101#endif
32102
32103int
32104main ()
32105{
32106return f != $ac_func;
32107 ;
32108 return 0;
32109}
32110_ACEOF
32111rm -f conftest.$ac_objext conftest$ac_exeext
32112if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32113 (eval $ac_link) 2>conftest.er1
a848cd7e 32114 ac_status=$?
ac1cb8d3
VS
32115 grep -v '^ *+' conftest.er1 >conftest.err
32116 rm -f conftest.er1
32117 cat conftest.err >&5
a848cd7e
SC
32118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32119 (exit $ac_status); } &&
89be85c2
VS
32120 { ac_try='test -z "$ac_c_werror_flag"
32121 || test ! -s conftest.err'
ac1cb8d3
VS
32122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32123 (eval $ac_try) 2>&5
32124 ac_status=$?
32125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32126 (exit $ac_status); }; } &&
32127 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32129 (eval $ac_try) 2>&5
32130 ac_status=$?
32131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32132 (exit $ac_status); }; }; then
32133 eval "$as_ac_var=yes"
32134else
32135 echo "$as_me: failed program was:" >&5
32136sed 's/^/| /' conftest.$ac_ext >&5
32137
32138eval "$as_ac_var=no"
32139fi
ac1cb8d3
VS
32140rm -f conftest.err conftest.$ac_objext \
32141 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32142fi
32143echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32144echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32145if test `eval echo '${'$as_ac_var'}'` = yes; then
32146 cat >>confdefs.h <<_ACEOF
32147#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32148_ACEOF
32149 cat >>confdefs.h <<\_ACEOF
32150#define HAVE_USLEEP 1
32151_ACEOF
32152
32153else
32154 { echo "$as_me:$LINENO: WARNING: wxSleep() function will not work" >&5
32155echo "$as_me: WARNING: wxSleep() function will not work" >&2;}
32156
32157fi
32158done
32159
32160
32161
32162fi
32163
32164
32165
32166fi
32167done
32168
32169fi
32170
32171
32172
32173for ac_func in uname gethostname
32174do
32175as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32176echo "$as_me:$LINENO: checking for $ac_func" >&5
32177echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32178if eval "test \"\${$as_ac_var+set}\" = set"; then
32179 echo $ECHO_N "(cached) $ECHO_C" >&6
32180else
32181 cat >conftest.$ac_ext <<_ACEOF
32182/* confdefs.h. */
32183_ACEOF
32184cat confdefs.h >>conftest.$ac_ext
32185cat >>conftest.$ac_ext <<_ACEOF
32186/* end confdefs.h. */
ac1cb8d3
VS
32187/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32188 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32189#define $ac_func innocuous_$ac_func
32190
a848cd7e
SC
32191/* System header to define __stub macros and hopefully few prototypes,
32192 which can conflict with char $ac_func (); below.
32193 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32194 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 32195
a848cd7e
SC
32196#ifdef __STDC__
32197# include <limits.h>
32198#else
32199# include <assert.h>
32200#endif
ac1cb8d3
VS
32201
32202#undef $ac_func
32203
a848cd7e
SC
32204/* Override any gcc2 internal prototype to avoid an error. */
32205#ifdef __cplusplus
32206extern "C"
32207{
32208#endif
32209/* We use char because int might match the return type of a gcc2
32210 builtin and then its argument prototype would still apply. */
32211char $ac_func ();
32212/* The GNU C library defines this for functions which it implements
32213 to always fail with ENOSYS. Some functions are actually named
32214 something starting with __ and the normal name is an alias. */
32215#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32216choke me
32217#else
32218char (*f) () = $ac_func;
32219#endif
32220#ifdef __cplusplus
32221}
32222#endif
32223
32224int
32225main ()
32226{
32227return f != $ac_func;
32228 ;
32229 return 0;
32230}
32231_ACEOF
32232rm -f conftest.$ac_objext conftest$ac_exeext
32233if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32234 (eval $ac_link) 2>conftest.er1
a848cd7e 32235 ac_status=$?
ac1cb8d3
VS
32236 grep -v '^ *+' conftest.er1 >conftest.err
32237 rm -f conftest.er1
32238 cat conftest.err >&5
a848cd7e
SC
32239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32240 (exit $ac_status); } &&
89be85c2
VS
32241 { ac_try='test -z "$ac_c_werror_flag"
32242 || test ! -s conftest.err'
ac1cb8d3
VS
32243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32244 (eval $ac_try) 2>&5
32245 ac_status=$?
32246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32247 (exit $ac_status); }; } &&
32248 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32250 (eval $ac_try) 2>&5
32251 ac_status=$?
32252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32253 (exit $ac_status); }; }; then
32254 eval "$as_ac_var=yes"
32255else
32256 echo "$as_me: failed program was:" >&5
32257sed 's/^/| /' conftest.$ac_ext >&5
32258
32259eval "$as_ac_var=no"
32260fi
ac1cb8d3
VS
32261rm -f conftest.err conftest.$ac_objext \
32262 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32263fi
32264echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32265echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32266if test `eval echo '${'$as_ac_var'}'` = yes; then
32267 cat >>confdefs.h <<_ACEOF
32268#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32269_ACEOF
32270 break
32271fi
32272done
32273
32274
32275
32276
32277ac_ext=cc
32278ac_cpp='$CXXCPP $CPPFLAGS'
32279ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32280ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32281ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32282
32283
32284
32285for ac_func in strtok_r
32286do
32287as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32288echo "$as_me:$LINENO: checking for $ac_func" >&5
32289echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32290if eval "test \"\${$as_ac_var+set}\" = set"; then
32291 echo $ECHO_N "(cached) $ECHO_C" >&6
32292else
32293 cat >conftest.$ac_ext <<_ACEOF
32294/* confdefs.h. */
32295_ACEOF
32296cat confdefs.h >>conftest.$ac_ext
32297cat >>conftest.$ac_ext <<_ACEOF
32298/* end confdefs.h. */
ac1cb8d3
VS
32299/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32300 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32301#define $ac_func innocuous_$ac_func
32302
a848cd7e
SC
32303/* System header to define __stub macros and hopefully few prototypes,
32304 which can conflict with char $ac_func (); below.
32305 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32306 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 32307
a848cd7e
SC
32308#ifdef __STDC__
32309# include <limits.h>
32310#else
32311# include <assert.h>
32312#endif
ac1cb8d3
VS
32313
32314#undef $ac_func
32315
a848cd7e
SC
32316/* Override any gcc2 internal prototype to avoid an error. */
32317#ifdef __cplusplus
32318extern "C"
32319{
32320#endif
32321/* We use char because int might match the return type of a gcc2
32322 builtin and then its argument prototype would still apply. */
32323char $ac_func ();
32324/* The GNU C library defines this for functions which it implements
32325 to always fail with ENOSYS. Some functions are actually named
32326 something starting with __ and the normal name is an alias. */
32327#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32328choke me
32329#else
32330char (*f) () = $ac_func;
32331#endif
32332#ifdef __cplusplus
32333}
32334#endif
32335
32336int
32337main ()
32338{
32339return f != $ac_func;
32340 ;
32341 return 0;
32342}
32343_ACEOF
32344rm -f conftest.$ac_objext conftest$ac_exeext
32345if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32346 (eval $ac_link) 2>conftest.er1
a848cd7e 32347 ac_status=$?
ac1cb8d3
VS
32348 grep -v '^ *+' conftest.er1 >conftest.err
32349 rm -f conftest.er1
32350 cat conftest.err >&5
a848cd7e
SC
32351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32352 (exit $ac_status); } &&
89be85c2
VS
32353 { ac_try='test -z "$ac_cxx_werror_flag"
32354 || test ! -s conftest.err'
ac1cb8d3
VS
32355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32356 (eval $ac_try) 2>&5
32357 ac_status=$?
32358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32359 (exit $ac_status); }; } &&
32360 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32362 (eval $ac_try) 2>&5
32363 ac_status=$?
32364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32365 (exit $ac_status); }; }; then
32366 eval "$as_ac_var=yes"
32367else
32368 echo "$as_me: failed program was:" >&5
32369sed 's/^/| /' conftest.$ac_ext >&5
32370
32371eval "$as_ac_var=no"
32372fi
ac1cb8d3
VS
32373rm -f conftest.err conftest.$ac_objext \
32374 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32375fi
32376echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32377echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32378if test `eval echo '${'$as_ac_var'}'` = yes; then
32379 cat >>confdefs.h <<_ACEOF
32380#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32381_ACEOF
32382
32383fi
32384done
32385
32386
32387ac_ext=c
32388ac_cpp='$CPP $CPPFLAGS'
32389ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32390ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32391ac_compiler_gnu=$ac_cv_c_compiler_gnu
32392
32393
32394INET_LINK=
32395
32396for ac_func in inet_addr
32397do
32398as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32399echo "$as_me:$LINENO: checking for $ac_func" >&5
32400echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32401if eval "test \"\${$as_ac_var+set}\" = set"; then
32402 echo $ECHO_N "(cached) $ECHO_C" >&6
32403else
32404 cat >conftest.$ac_ext <<_ACEOF
32405/* confdefs.h. */
32406_ACEOF
32407cat confdefs.h >>conftest.$ac_ext
32408cat >>conftest.$ac_ext <<_ACEOF
32409/* end confdefs.h. */
ac1cb8d3
VS
32410/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32411 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32412#define $ac_func innocuous_$ac_func
32413
a848cd7e
SC
32414/* System header to define __stub macros and hopefully few prototypes,
32415 which can conflict with char $ac_func (); below.
32416 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32417 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 32418
a848cd7e
SC
32419#ifdef __STDC__
32420# include <limits.h>
32421#else
32422# include <assert.h>
32423#endif
ac1cb8d3
VS
32424
32425#undef $ac_func
32426
a848cd7e
SC
32427/* Override any gcc2 internal prototype to avoid an error. */
32428#ifdef __cplusplus
32429extern "C"
32430{
32431#endif
32432/* We use char because int might match the return type of a gcc2
32433 builtin and then its argument prototype would still apply. */
32434char $ac_func ();
32435/* The GNU C library defines this for functions which it implements
32436 to always fail with ENOSYS. Some functions are actually named
32437 something starting with __ and the normal name is an alias. */
32438#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32439choke me
32440#else
32441char (*f) () = $ac_func;
32442#endif
32443#ifdef __cplusplus
32444}
32445#endif
32446
32447int
32448main ()
32449{
32450return f != $ac_func;
32451 ;
32452 return 0;
32453}
32454_ACEOF
32455rm -f conftest.$ac_objext conftest$ac_exeext
32456if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32457 (eval $ac_link) 2>conftest.er1
a848cd7e 32458 ac_status=$?
ac1cb8d3
VS
32459 grep -v '^ *+' conftest.er1 >conftest.err
32460 rm -f conftest.er1
32461 cat conftest.err >&5
a848cd7e
SC
32462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32463 (exit $ac_status); } &&
89be85c2
VS
32464 { ac_try='test -z "$ac_c_werror_flag"
32465 || test ! -s conftest.err'
ac1cb8d3
VS
32466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32467 (eval $ac_try) 2>&5
32468 ac_status=$?
32469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32470 (exit $ac_status); }; } &&
32471 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32473 (eval $ac_try) 2>&5
32474 ac_status=$?
32475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32476 (exit $ac_status); }; }; then
32477 eval "$as_ac_var=yes"
32478else
32479 echo "$as_me: failed program was:" >&5
32480sed 's/^/| /' conftest.$ac_ext >&5
32481
32482eval "$as_ac_var=no"
32483fi
ac1cb8d3
VS
32484rm -f conftest.err conftest.$ac_objext \
32485 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32486fi
32487echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32488echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32489if test `eval echo '${'$as_ac_var'}'` = yes; then
32490 cat >>confdefs.h <<_ACEOF
32491#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32492_ACEOF
32493 cat >>confdefs.h <<\_ACEOF
32494#define HAVE_INET_ADDR 1
32495_ACEOF
32496
32497else
32498
32499 echo "$as_me:$LINENO: checking for inet_addr in -lnsl" >&5
32500echo $ECHO_N "checking for inet_addr in -lnsl... $ECHO_C" >&6
32501if test "${ac_cv_lib_nsl_inet_addr+set}" = set; then
32502 echo $ECHO_N "(cached) $ECHO_C" >&6
32503else
32504 ac_check_lib_save_LIBS=$LIBS
32505LIBS="-lnsl $LIBS"
32506cat >conftest.$ac_ext <<_ACEOF
32507/* confdefs.h. */
32508_ACEOF
32509cat confdefs.h >>conftest.$ac_ext
32510cat >>conftest.$ac_ext <<_ACEOF
32511/* end confdefs.h. */
32512
32513/* Override any gcc2 internal prototype to avoid an error. */
32514#ifdef __cplusplus
32515extern "C"
32516#endif
32517/* We use char because int might match the return type of a gcc2
32518 builtin and then its argument prototype would still apply. */
32519char inet_addr ();
32520int
32521main ()
32522{
32523inet_addr ();
32524 ;
32525 return 0;
32526}
32527_ACEOF
32528rm -f conftest.$ac_objext conftest$ac_exeext
32529if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32530 (eval $ac_link) 2>conftest.er1
a848cd7e 32531 ac_status=$?
ac1cb8d3
VS
32532 grep -v '^ *+' conftest.er1 >conftest.err
32533 rm -f conftest.er1
32534 cat conftest.err >&5
a848cd7e
SC
32535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32536 (exit $ac_status); } &&
89be85c2
VS
32537 { ac_try='test -z "$ac_c_werror_flag"
32538 || test ! -s conftest.err'
ac1cb8d3
VS
32539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32540 (eval $ac_try) 2>&5
32541 ac_status=$?
32542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32543 (exit $ac_status); }; } &&
32544 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32546 (eval $ac_try) 2>&5
32547 ac_status=$?
32548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32549 (exit $ac_status); }; }; then
32550 ac_cv_lib_nsl_inet_addr=yes
32551else
32552 echo "$as_me: failed program was:" >&5
32553sed 's/^/| /' conftest.$ac_ext >&5
32554
32555ac_cv_lib_nsl_inet_addr=no
32556fi
ac1cb8d3
VS
32557rm -f conftest.err conftest.$ac_objext \
32558 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32559LIBS=$ac_check_lib_save_LIBS
32560fi
32561echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_inet_addr" >&5
32562echo "${ECHO_T}$ac_cv_lib_nsl_inet_addr" >&6
32563if test $ac_cv_lib_nsl_inet_addr = yes; then
32564 INET_LINK="nsl"
32565else
32566
32567 echo "$as_me:$LINENO: checking for inet_addr in -lresolv" >&5
32568echo $ECHO_N "checking for inet_addr in -lresolv... $ECHO_C" >&6
32569if test "${ac_cv_lib_resolv_inet_addr+set}" = set; then
32570 echo $ECHO_N "(cached) $ECHO_C" >&6
32571else
32572 ac_check_lib_save_LIBS=$LIBS
32573LIBS="-lresolv $LIBS"
32574cat >conftest.$ac_ext <<_ACEOF
32575/* confdefs.h. */
32576_ACEOF
32577cat confdefs.h >>conftest.$ac_ext
32578cat >>conftest.$ac_ext <<_ACEOF
32579/* end confdefs.h. */
32580
32581/* Override any gcc2 internal prototype to avoid an error. */
32582#ifdef __cplusplus
32583extern "C"
32584#endif
32585/* We use char because int might match the return type of a gcc2
32586 builtin and then its argument prototype would still apply. */
32587char inet_addr ();
32588int
32589main ()
32590{
32591inet_addr ();
32592 ;
32593 return 0;
32594}
32595_ACEOF
32596rm -f conftest.$ac_objext conftest$ac_exeext
32597if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32598 (eval $ac_link) 2>conftest.er1
a848cd7e 32599 ac_status=$?
ac1cb8d3
VS
32600 grep -v '^ *+' conftest.er1 >conftest.err
32601 rm -f conftest.er1
32602 cat conftest.err >&5
a848cd7e
SC
32603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32604 (exit $ac_status); } &&
89be85c2
VS
32605 { ac_try='test -z "$ac_c_werror_flag"
32606 || test ! -s conftest.err'
ac1cb8d3
VS
32607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32608 (eval $ac_try) 2>&5
32609 ac_status=$?
32610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32611 (exit $ac_status); }; } &&
32612 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32614 (eval $ac_try) 2>&5
32615 ac_status=$?
32616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32617 (exit $ac_status); }; }; then
32618 ac_cv_lib_resolv_inet_addr=yes
32619else
32620 echo "$as_me: failed program was:" >&5
32621sed 's/^/| /' conftest.$ac_ext >&5
32622
32623ac_cv_lib_resolv_inet_addr=no
32624fi
ac1cb8d3
VS
32625rm -f conftest.err conftest.$ac_objext \
32626 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32627LIBS=$ac_check_lib_save_LIBS
32628fi
32629echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_addr" >&5
32630echo "${ECHO_T}$ac_cv_lib_resolv_inet_addr" >&6
32631if test $ac_cv_lib_resolv_inet_addr = yes; then
32632 INET_LINK="resolv"
32633else
32634
32635 echo "$as_me:$LINENO: checking for inet_addr in -lsocket" >&5
32636echo $ECHO_N "checking for inet_addr in -lsocket... $ECHO_C" >&6
32637if test "${ac_cv_lib_socket_inet_addr+set}" = set; then
32638 echo $ECHO_N "(cached) $ECHO_C" >&6
32639else
32640 ac_check_lib_save_LIBS=$LIBS
32641LIBS="-lsocket $LIBS"
32642cat >conftest.$ac_ext <<_ACEOF
32643/* confdefs.h. */
32644_ACEOF
32645cat confdefs.h >>conftest.$ac_ext
32646cat >>conftest.$ac_ext <<_ACEOF
32647/* end confdefs.h. */
32648
32649/* Override any gcc2 internal prototype to avoid an error. */
32650#ifdef __cplusplus
32651extern "C"
32652#endif
32653/* We use char because int might match the return type of a gcc2
32654 builtin and then its argument prototype would still apply. */
32655char inet_addr ();
32656int
32657main ()
32658{
32659inet_addr ();
32660 ;
32661 return 0;
32662}
32663_ACEOF
32664rm -f conftest.$ac_objext conftest$ac_exeext
32665if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32666 (eval $ac_link) 2>conftest.er1
a848cd7e 32667 ac_status=$?
ac1cb8d3
VS
32668 grep -v '^ *+' conftest.er1 >conftest.err
32669 rm -f conftest.er1
32670 cat conftest.err >&5
a848cd7e
SC
32671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32672 (exit $ac_status); } &&
89be85c2
VS
32673 { ac_try='test -z "$ac_c_werror_flag"
32674 || test ! -s conftest.err'
ac1cb8d3
VS
32675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32676 (eval $ac_try) 2>&5
32677 ac_status=$?
32678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32679 (exit $ac_status); }; } &&
32680 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32682 (eval $ac_try) 2>&5
32683 ac_status=$?
32684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32685 (exit $ac_status); }; }; then
32686 ac_cv_lib_socket_inet_addr=yes
32687else
32688 echo "$as_me: failed program was:" >&5
32689sed 's/^/| /' conftest.$ac_ext >&5
32690
32691ac_cv_lib_socket_inet_addr=no
32692fi
ac1cb8d3
VS
32693rm -f conftest.err conftest.$ac_objext \
32694 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32695LIBS=$ac_check_lib_save_LIBS
32696fi
32697echo "$as_me:$LINENO: result: $ac_cv_lib_socket_inet_addr" >&5
32698echo "${ECHO_T}$ac_cv_lib_socket_inet_addr" >&6
32699if test $ac_cv_lib_socket_inet_addr = yes; then
32700 INET_LINK="socket"
32701
32702fi
32703
32704
32705
32706fi
32707
32708
32709
32710fi
32711
32712
32713
32714fi
32715done
32716
32717
32718
32719for ac_func in inet_aton
32720do
32721as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32722echo "$as_me:$LINENO: checking for $ac_func" >&5
32723echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32724if eval "test \"\${$as_ac_var+set}\" = set"; then
32725 echo $ECHO_N "(cached) $ECHO_C" >&6
32726else
32727 cat >conftest.$ac_ext <<_ACEOF
32728/* confdefs.h. */
32729_ACEOF
32730cat confdefs.h >>conftest.$ac_ext
32731cat >>conftest.$ac_ext <<_ACEOF
32732/* end confdefs.h. */
ac1cb8d3
VS
32733/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32734 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32735#define $ac_func innocuous_$ac_func
32736
a848cd7e
SC
32737/* System header to define __stub macros and hopefully few prototypes,
32738 which can conflict with char $ac_func (); below.
32739 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32740 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 32741
a848cd7e
SC
32742#ifdef __STDC__
32743# include <limits.h>
32744#else
32745# include <assert.h>
32746#endif
ac1cb8d3
VS
32747
32748#undef $ac_func
32749
a848cd7e
SC
32750/* Override any gcc2 internal prototype to avoid an error. */
32751#ifdef __cplusplus
32752extern "C"
32753{
32754#endif
32755/* We use char because int might match the return type of a gcc2
32756 builtin and then its argument prototype would still apply. */
32757char $ac_func ();
32758/* The GNU C library defines this for functions which it implements
32759 to always fail with ENOSYS. Some functions are actually named
32760 something starting with __ and the normal name is an alias. */
32761#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32762choke me
32763#else
32764char (*f) () = $ac_func;
32765#endif
32766#ifdef __cplusplus
32767}
32768#endif
32769
32770int
32771main ()
32772{
32773return f != $ac_func;
32774 ;
32775 return 0;
32776}
32777_ACEOF
32778rm -f conftest.$ac_objext conftest$ac_exeext
32779if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32780 (eval $ac_link) 2>conftest.er1
a848cd7e 32781 ac_status=$?
ac1cb8d3
VS
32782 grep -v '^ *+' conftest.er1 >conftest.err
32783 rm -f conftest.er1
32784 cat conftest.err >&5
a848cd7e
SC
32785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32786 (exit $ac_status); } &&
89be85c2
VS
32787 { ac_try='test -z "$ac_c_werror_flag"
32788 || test ! -s conftest.err'
ac1cb8d3
VS
32789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32790 (eval $ac_try) 2>&5
32791 ac_status=$?
32792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32793 (exit $ac_status); }; } &&
32794 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32796 (eval $ac_try) 2>&5
32797 ac_status=$?
32798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32799 (exit $ac_status); }; }; then
32800 eval "$as_ac_var=yes"
32801else
32802 echo "$as_me: failed program was:" >&5
32803sed 's/^/| /' conftest.$ac_ext >&5
32804
32805eval "$as_ac_var=no"
32806fi
ac1cb8d3
VS
32807rm -f conftest.err conftest.$ac_objext \
32808 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32809fi
32810echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32811echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32812if test `eval echo '${'$as_ac_var'}'` = yes; then
32813 cat >>confdefs.h <<_ACEOF
32814#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32815_ACEOF
32816 cat >>confdefs.h <<\_ACEOF
32817#define HAVE_INET_ATON 1
32818_ACEOF
32819
32820else
32821
32822 as_ac_Lib=`echo "ac_cv_lib_$INET_LINK''_inet_aton" | $as_tr_sh`
32823echo "$as_me:$LINENO: checking for inet_aton in -l$INET_LINK" >&5
32824echo $ECHO_N "checking for inet_aton in -l$INET_LINK... $ECHO_C" >&6
32825if eval "test \"\${$as_ac_Lib+set}\" = set"; then
32826 echo $ECHO_N "(cached) $ECHO_C" >&6
32827else
32828 ac_check_lib_save_LIBS=$LIBS
32829LIBS="-l$INET_LINK $LIBS"
32830cat >conftest.$ac_ext <<_ACEOF
32831/* confdefs.h. */
32832_ACEOF
32833cat confdefs.h >>conftest.$ac_ext
32834cat >>conftest.$ac_ext <<_ACEOF
32835/* end confdefs.h. */
32836
32837/* Override any gcc2 internal prototype to avoid an error. */
32838#ifdef __cplusplus
32839extern "C"
32840#endif
32841/* We use char because int might match the return type of a gcc2
32842 builtin and then its argument prototype would still apply. */
32843char inet_aton ();
32844int
32845main ()
32846{
32847inet_aton ();
32848 ;
32849 return 0;
32850}
32851_ACEOF
32852rm -f conftest.$ac_objext conftest$ac_exeext
32853if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32854 (eval $ac_link) 2>conftest.er1
a848cd7e 32855 ac_status=$?
ac1cb8d3
VS
32856 grep -v '^ *+' conftest.er1 >conftest.err
32857 rm -f conftest.er1
32858 cat conftest.err >&5
a848cd7e
SC
32859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32860 (exit $ac_status); } &&
89be85c2
VS
32861 { ac_try='test -z "$ac_c_werror_flag"
32862 || test ! -s conftest.err'
ac1cb8d3
VS
32863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32864 (eval $ac_try) 2>&5
32865 ac_status=$?
32866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32867 (exit $ac_status); }; } &&
32868 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32870 (eval $ac_try) 2>&5
32871 ac_status=$?
32872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32873 (exit $ac_status); }; }; then
32874 eval "$as_ac_Lib=yes"
32875else
32876 echo "$as_me: failed program was:" >&5
32877sed 's/^/| /' conftest.$ac_ext >&5
32878
32879eval "$as_ac_Lib=no"
32880fi
ac1cb8d3
VS
32881rm -f conftest.err conftest.$ac_objext \
32882 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32883LIBS=$ac_check_lib_save_LIBS
32884fi
32885echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
32886echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
32887if test `eval echo '${'$as_ac_Lib'}'` = yes; then
32888 cat >>confdefs.h <<\_ACEOF
32889#define HAVE_INET_ATON 1
32890_ACEOF
32891
32892fi
32893
32894
32895fi
32896done
32897
32898
32899if test "x$INET_LINK" != "x"; then
32900 cat >>confdefs.h <<\_ACEOF
32901#define HAVE_INET_ADDR 1
32902_ACEOF
32903
32904 INET_LINK=" -l$INET_LINK"
32905fi
32906
32907fi
32908
32909
32910
32911EXTRALIBS_ESD=
32912echo "$as_me:$LINENO: checking for esd_close in -lesd" >&5
32913echo $ECHO_N "checking for esd_close in -lesd... $ECHO_C" >&6
32914if test "${ac_cv_lib_esd_esd_close+set}" = set; then
32915 echo $ECHO_N "(cached) $ECHO_C" >&6
32916else
32917 ac_check_lib_save_LIBS=$LIBS
32918LIBS="-lesd $LIBS"
32919cat >conftest.$ac_ext <<_ACEOF
32920/* confdefs.h. */
32921_ACEOF
32922cat confdefs.h >>conftest.$ac_ext
32923cat >>conftest.$ac_ext <<_ACEOF
32924/* end confdefs.h. */
32925
32926/* Override any gcc2 internal prototype to avoid an error. */
32927#ifdef __cplusplus
32928extern "C"
32929#endif
32930/* We use char because int might match the return type of a gcc2
32931 builtin and then its argument prototype would still apply. */
32932char esd_close ();
32933int
32934main ()
32935{
32936esd_close ();
32937 ;
32938 return 0;
32939}
32940_ACEOF
32941rm -f conftest.$ac_objext conftest$ac_exeext
32942if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32943 (eval $ac_link) 2>conftest.er1
a848cd7e 32944 ac_status=$?
ac1cb8d3
VS
32945 grep -v '^ *+' conftest.er1 >conftest.err
32946 rm -f conftest.er1
32947 cat conftest.err >&5
a848cd7e
SC
32948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32949 (exit $ac_status); } &&
89be85c2
VS
32950 { ac_try='test -z "$ac_c_werror_flag"
32951 || test ! -s conftest.err'
ac1cb8d3
VS
32952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32953 (eval $ac_try) 2>&5
32954 ac_status=$?
32955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32956 (exit $ac_status); }; } &&
32957 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32959 (eval $ac_try) 2>&5
32960 ac_status=$?
32961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32962 (exit $ac_status); }; }; then
32963 ac_cv_lib_esd_esd_close=yes
32964else
32965 echo "$as_me: failed program was:" >&5
32966sed 's/^/| /' conftest.$ac_ext >&5
32967
32968ac_cv_lib_esd_esd_close=no
32969fi
ac1cb8d3
VS
32970rm -f conftest.err conftest.$ac_objext \
32971 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32972LIBS=$ac_check_lib_save_LIBS
32973fi
32974echo "$as_me:$LINENO: result: $ac_cv_lib_esd_esd_close" >&5
32975echo "${ECHO_T}$ac_cv_lib_esd_esd_close" >&6
32976if test $ac_cv_lib_esd_esd_close = yes; then
32977
32978
32979for ac_header in esd.h
32980do
32981as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
32982if eval "test \"\${$as_ac_Header+set}\" = set"; then
32983 echo "$as_me:$LINENO: checking for $ac_header" >&5
32984echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
32985if eval "test \"\${$as_ac_Header+set}\" = set"; then
32986 echo $ECHO_N "(cached) $ECHO_C" >&6
32987fi
32988echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
32989echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
32990else
32991 # Is the header compilable?
32992echo "$as_me:$LINENO: checking $ac_header usability" >&5
32993echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
32994cat >conftest.$ac_ext <<_ACEOF
32995/* confdefs.h. */
32996_ACEOF
32997cat confdefs.h >>conftest.$ac_ext
32998cat >>conftest.$ac_ext <<_ACEOF
32999/* end confdefs.h. */
33000$ac_includes_default
33001#include <$ac_header>
33002_ACEOF
33003rm -f conftest.$ac_objext
33004if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 33005 (eval $ac_compile) 2>conftest.er1
a848cd7e 33006 ac_status=$?
ac1cb8d3
VS
33007 grep -v '^ *+' conftest.er1 >conftest.err
33008 rm -f conftest.er1
33009 cat conftest.err >&5
a848cd7e
SC
33010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33011 (exit $ac_status); } &&
89be85c2
VS
33012 { ac_try='test -z "$ac_c_werror_flag"
33013 || test ! -s conftest.err'
ac1cb8d3
VS
33014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33015 (eval $ac_try) 2>&5
33016 ac_status=$?
33017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33018 (exit $ac_status); }; } &&
33019 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
33020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33021 (eval $ac_try) 2>&5
33022 ac_status=$?
33023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33024 (exit $ac_status); }; }; then
33025 ac_header_compiler=yes
33026else
33027 echo "$as_me: failed program was:" >&5
33028sed 's/^/| /' conftest.$ac_ext >&5
33029
33030ac_header_compiler=no
33031fi
ac1cb8d3 33032rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
33033echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33034echo "${ECHO_T}$ac_header_compiler" >&6
33035
33036# Is the header present?
33037echo "$as_me:$LINENO: checking $ac_header presence" >&5
33038echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
33039cat >conftest.$ac_ext <<_ACEOF
33040/* confdefs.h. */
33041_ACEOF
33042cat confdefs.h >>conftest.$ac_ext
33043cat >>conftest.$ac_ext <<_ACEOF
33044/* end confdefs.h. */
33045#include <$ac_header>
33046_ACEOF
33047if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
33048 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
33049 ac_status=$?
33050 grep -v '^ *+' conftest.er1 >conftest.err
33051 rm -f conftest.er1
33052 cat conftest.err >&5
33053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33054 (exit $ac_status); } >/dev/null; then
33055 if test -s conftest.err; then
33056 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 33057 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
33058 else
33059 ac_cpp_err=
33060 fi
33061else
33062 ac_cpp_err=yes
33063fi
33064if test -z "$ac_cpp_err"; then
33065 ac_header_preproc=yes
33066else
33067 echo "$as_me: failed program was:" >&5
33068sed 's/^/| /' conftest.$ac_ext >&5
33069
33070 ac_header_preproc=no
33071fi
33072rm -f conftest.err conftest.$ac_ext
33073echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33074echo "${ECHO_T}$ac_header_preproc" >&6
33075
33076# So? What about this header?
ac1cb8d3
VS
33077case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33078 yes:no: )
a848cd7e
SC
33079 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
33080echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
33081 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
33082echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
33083 ac_header_preproc=yes
a848cd7e 33084 ;;
ac1cb8d3 33085 no:yes:* )
a848cd7e
SC
33086 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
33087echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
33088 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
33089echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
33090 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
33091echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
33092 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
33093echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
33094 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
33095echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
33096 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
33097echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
33098 (
33099 cat <<\_ASBOX
ac1cb8d3
VS
33100## ----------------------------------------- ##
33101## Report this to wx-dev@lists.wxwidgets.org ##
33102## ----------------------------------------- ##
a848cd7e
SC
33103_ASBOX
33104 ) |
33105 sed "s/^/$as_me: WARNING: /" >&2
33106 ;;
33107esac
33108echo "$as_me:$LINENO: checking for $ac_header" >&5
33109echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
33110if eval "test \"\${$as_ac_Header+set}\" = set"; then
33111 echo $ECHO_N "(cached) $ECHO_C" >&6
33112else
ac1cb8d3 33113 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
33114fi
33115echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
33116echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
33117
33118fi
33119if test `eval echo '${'$as_ac_Header'}'` = yes; then
33120 cat >>confdefs.h <<_ACEOF
33121#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
33122_ACEOF
33123
33124 EXTRALIBS_ESD="-lesd"
33125
33126fi
33127
33128done
33129
33130
33131fi
33132
33133
33134
33135echo "$as_me:$LINENO: checking for known CD-ROM interface" >&5
33136echo $ECHO_N "checking for known CD-ROM interface... $ECHO_C" >&6
33137cat >conftest.$ac_ext <<_ACEOF
33138/* confdefs.h. */
33139_ACEOF
33140cat confdefs.h >>conftest.$ac_ext
33141cat >>conftest.$ac_ext <<_ACEOF
33142/* end confdefs.h. */
33143#ifdef __linux__
33144 #include <linux/cdrom.h>
33145 #else
33146 /* For Solaris */
33147 #include <sys/cdio.h>
33148 #endif
33149
33150int
33151main ()
33152{
33153struct cdrom_tocentry entry, old_entry;
33154 ;
33155 return 0;
33156}
33157_ACEOF
33158rm -f conftest.$ac_objext
33159if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 33160 (eval $ac_compile) 2>conftest.er1
a848cd7e 33161 ac_status=$?
ac1cb8d3
VS
33162 grep -v '^ *+' conftest.er1 >conftest.err
33163 rm -f conftest.er1
33164 cat conftest.err >&5
a848cd7e
SC
33165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33166 (exit $ac_status); } &&
89be85c2
VS
33167 { ac_try='test -z "$ac_c_werror_flag"
33168 || test ! -s conftest.err'
ac1cb8d3
VS
33169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33170 (eval $ac_try) 2>&5
33171 ac_status=$?
33172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33173 (exit $ac_status); }; } &&
33174 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
33175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33176 (eval $ac_try) 2>&5
33177 ac_status=$?
33178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33179 (exit $ac_status); }; }; then
33180 echo "$as_me:$LINENO: result: yes" >&5
33181echo "${ECHO_T}yes" >&6
33182 cat >>confdefs.h <<\_ACEOF
33183#define HAVE_KNOWN_CDROM_INTERFACE 1
33184_ACEOF
33185
33186else
33187 echo "$as_me: failed program was:" >&5
33188sed 's/^/| /' conftest.$ac_ext >&5
33189
33190echo "$as_me:$LINENO: result: no" >&5
33191echo "${ECHO_T}no" >&6
33192fi
ac1cb8d3 33193rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
33194
33195
33196cat >confcache <<\_ACEOF
33197# This file is a shell script that caches the results of configure
33198# tests run on this system so they can be shared between configure
33199# scripts and configure runs, see configure's option --config-cache.
33200# It is not useful on other systems. If it contains results you don't
33201# want to keep, you may remove or edit it.
33202#
33203# config.status only pays attention to the cache file if you give it
33204# the --recheck option to rerun configure.
33205#
33206# `ac_cv_env_foo' variables (set or unset) will be overridden when
33207# loading this file, other *unset* `ac_cv_foo' will be assigned the
33208# following values.
33209
33210_ACEOF
33211
33212# The following way of writing the cache mishandles newlines in values,
33213# but we know of no workaround that is simple, portable, and efficient.
33214# So, don't put newlines in cache variables' values.
33215# Ultrix sh set writes to stderr and can't be redirected directly,
33216# and sets the high bit in the cache file unless we assign to the vars.
33217{
33218 (set) 2>&1 |
33219 case `(ac_space=' '; set | grep ac_space) 2>&1` in
33220 *ac_space=\ *)
33221 # `set' does not quote correctly, so add quotes (double-quote
33222 # substitution turns \\\\ into \\, and sed turns \\ into \).
33223 sed -n \
ac1cb8d3
VS
33224 "s/'/'\\\\''/g;
33225 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a848cd7e
SC
33226 ;;
33227 *)
33228 # `set' quotes correctly as required by POSIX, so do not add quotes.
33229 sed -n \
ac1cb8d3 33230 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
33231 ;;
33232 esac;
33233} |
33234 sed '
33235 t clear
33236 : clear
33237 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
33238 t end
33239 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
33240 : end' >>confcache
33241if diff $cache_file confcache >/dev/null 2>&1; then :; else
33242 if test -w $cache_file; then
33243 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
33244 cat confcache >$cache_file
33245 else
33246 echo "not updating unwritable cache $cache_file"
33247 fi
33248fi
33249rm -f confcache
33250
33251
33252CPP_MT_FLAG=
33253if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then
33254
33255
33256 THREADS_LINK=
33257 THREADS_CFLAGS=
33258
33259 if test "$wxUSE_THREADS" = "yes" ; then
33260 if test "$USE_BEOS" = 1; then
33261 { echo "$as_me:$LINENO: WARNING: BeOS threads are not yet supported... disabled" >&5
33262echo "$as_me: WARNING: BeOS threads are not yet supported... disabled" >&2;}
33263 wxUSE_THREADS="no"
33264 fi
33265 fi
33266
33267 if test "$wxUSE_THREADS" = "yes" ; then
33268
33269
33270 THREAD_OPTS="-pthread"
33271 case "${host}" in
33272 *-*-solaris2* | *-*-sunos4* )
33273 if test "x$GCC" = "xyes"; then
33274 THREAD_OPTS="-pthreads $THREAD_OPTS"
33275 else
33276 THREAD_OPTS="-mt $THREAD_OPTS"
33277 fi
33278 ;;
33279 *-*-freebsd*)
33280 THREAD_OPTS="-kthread lthread $THREAD_OPTS c_r"
33281 ;;
33282 *-*-darwin* | *-*-cygwin* )
33283 THREAD_OPTS=""
33284 ;;
33285 *-*-aix*)
33286 THREAD_OPTS="pthreads"
33287 ;;
33288 *-hp-hpux* )
33289 if test "x$GCC" != "xyes"; then
33290 THREAD_OPTS=""
33291 fi
33292 ;;
33293
33294 *-*-irix* )
33295 if test "x$GCC" = "xyes"; then
33296 THREAD_OPTS=""
33297 fi
33298 ;;
33299
33300 *-*-*UnixWare*)
33301 if test "x$GCC" != "xyes"; then
33302 THREAD_OPTS="-Ethread"
33303 fi
33304 ;;
33305 esac
33306
33307 THREAD_OPTS="$THREAD_OPTS pthread none"
33308
33309 THREADS_OK=no
33310 for flag in $THREAD_OPTS; do
33311 case $flag in
33312 none)
33313 echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
33314echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6
33315 ;;
33316
33317 -*)
33318 echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
33319echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6
33320 THREADS_CFLAGS="$flag"
33321 ;;
33322
33323 *)
33324 echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
33325echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6
33326 THREADS_LINK="-l$flag"
33327 ;;
33328 esac
33329
33330 save_LIBS="$LIBS"
33331 save_CFLAGS="$CFLAGS"
33332 LIBS="$THREADS_LINK $LIBS"
33333 CFLAGS="$THREADS_CFLAGS $CFLAGS"
33334
33335 cat >conftest.$ac_ext <<_ACEOF
33336/* confdefs.h. */
33337_ACEOF
33338cat confdefs.h >>conftest.$ac_ext
33339cat >>conftest.$ac_ext <<_ACEOF
33340/* end confdefs.h. */
33341#include <pthread.h>
33342int
33343main ()
33344{
33345pthread_create(0,0,0,0);
33346 ;
33347 return 0;
33348}
33349_ACEOF
33350rm -f conftest.$ac_objext conftest$ac_exeext
33351if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33352 (eval $ac_link) 2>conftest.er1
a848cd7e 33353 ac_status=$?
ac1cb8d3
VS
33354 grep -v '^ *+' conftest.er1 >conftest.err
33355 rm -f conftest.er1
33356 cat conftest.err >&5
a848cd7e
SC
33357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33358 (exit $ac_status); } &&
89be85c2
VS
33359 { ac_try='test -z "$ac_c_werror_flag"
33360 || test ! -s conftest.err'
ac1cb8d3
VS
33361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33362 (eval $ac_try) 2>&5
33363 ac_status=$?
33364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33365 (exit $ac_status); }; } &&
33366 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33368 (eval $ac_try) 2>&5
33369 ac_status=$?
33370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33371 (exit $ac_status); }; }; then
33372 THREADS_OK=yes
33373else
33374 echo "$as_me: failed program was:" >&5
33375sed 's/^/| /' conftest.$ac_ext >&5
33376
33377fi
ac1cb8d3
VS
33378rm -f conftest.err conftest.$ac_objext \
33379 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33380
33381 LIBS="$save_LIBS"
33382 CFLAGS="$save_CFLAGS"
33383
33384 echo "$as_me:$LINENO: result: $THREADS_OK" >&5
33385echo "${ECHO_T}$THREADS_OK" >&6
33386 if test "x$THREADS_OK" = "xyes"; then
33387 break;
33388 fi
33389
33390 THREADS_LINK=""
33391 THREADS_CFLAGS=""
33392 done
33393
33394 if test "x$THREADS_OK" != "xyes"; then
33395 wxUSE_THREADS=no
33396 { echo "$as_me:$LINENO: WARNING: No thread support on this system... disabled" >&5
33397echo "$as_me: WARNING: No thread support on this system... disabled" >&2;}
33398 else
33399 LDFLAGS="$THREADS_CFLAGS $LDFLAGS"
33400 LIBS="$THREADS_LINK $LIBS"
33401
33402 echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
33403echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6
33404 flag=no
33405 case "${host}" in
33406 *-aix*)
33407 LDFLAGS="-L/usr/lib/threads $LDFLAGS"
33408 flag="-D_THREAD_SAFE"
33409 ;;
33410 *-freebsd*)
33411 flag="-D_THREAD_SAFE"
33412 ;;
33413 *-hp-hpux* )
33414 flag="-D_REENTRANT"
33415 if test "x$GCC" != "xyes"; then
33416 flag="$flag -D_RWSTD_MULTI_THREAD"
33417 fi
33418 ;;
33419 *solaris* | alpha*-osf*)
33420 flag="-D_REENTRANT"
33421 ;;
33422 esac
33423 echo "$as_me:$LINENO: result: ${flag}" >&5
33424echo "${ECHO_T}${flag}" >&6
33425 if test "x$flag" != xno; then
33426 THREADS_CFLAGS="$THREADS_CFLAGS $flag"
33427 fi
33428
33429 if test "x$THREADS_CFLAGS" != "x"; then
33430 CFLAGS="$CFLAGS $THREADS_CFLAGS"
33431 CXXFLAGS="$CXXFLAGS $THREADS_CFLAGS"
33432 fi
33433 fi
33434 fi
33435
33436 if test "$wxUSE_THREADS" = "yes" ; then
33437
33438for ac_func in thr_setconcurrency
33439do
33440as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33441echo "$as_me:$LINENO: checking for $ac_func" >&5
33442echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33443if eval "test \"\${$as_ac_var+set}\" = set"; then
33444 echo $ECHO_N "(cached) $ECHO_C" >&6
33445else
33446 cat >conftest.$ac_ext <<_ACEOF
33447/* confdefs.h. */
33448_ACEOF
33449cat confdefs.h >>conftest.$ac_ext
33450cat >>conftest.$ac_ext <<_ACEOF
33451/* end confdefs.h. */
ac1cb8d3
VS
33452/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33453 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33454#define $ac_func innocuous_$ac_func
33455
a848cd7e
SC
33456/* System header to define __stub macros and hopefully few prototypes,
33457 which can conflict with char $ac_func (); below.
33458 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33459 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 33460
a848cd7e
SC
33461#ifdef __STDC__
33462# include <limits.h>
33463#else
33464# include <assert.h>
33465#endif
ac1cb8d3
VS
33466
33467#undef $ac_func
33468
a848cd7e
SC
33469/* Override any gcc2 internal prototype to avoid an error. */
33470#ifdef __cplusplus
33471extern "C"
33472{
33473#endif
33474/* We use char because int might match the return type of a gcc2
33475 builtin and then its argument prototype would still apply. */
33476char $ac_func ();
33477/* The GNU C library defines this for functions which it implements
33478 to always fail with ENOSYS. Some functions are actually named
33479 something starting with __ and the normal name is an alias. */
33480#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33481choke me
33482#else
33483char (*f) () = $ac_func;
33484#endif
33485#ifdef __cplusplus
33486}
33487#endif
33488
33489int
33490main ()
33491{
33492return f != $ac_func;
33493 ;
33494 return 0;
33495}
33496_ACEOF
33497rm -f conftest.$ac_objext conftest$ac_exeext
33498if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33499 (eval $ac_link) 2>conftest.er1
a848cd7e 33500 ac_status=$?
ac1cb8d3
VS
33501 grep -v '^ *+' conftest.er1 >conftest.err
33502 rm -f conftest.er1
33503 cat conftest.err >&5
a848cd7e
SC
33504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33505 (exit $ac_status); } &&
89be85c2
VS
33506 { ac_try='test -z "$ac_c_werror_flag"
33507 || test ! -s conftest.err'
ac1cb8d3
VS
33508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33509 (eval $ac_try) 2>&5
33510 ac_status=$?
33511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33512 (exit $ac_status); }; } &&
33513 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33515 (eval $ac_try) 2>&5
33516 ac_status=$?
33517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33518 (exit $ac_status); }; }; then
33519 eval "$as_ac_var=yes"
33520else
33521 echo "$as_me: failed program was:" >&5
33522sed 's/^/| /' conftest.$ac_ext >&5
33523
33524eval "$as_ac_var=no"
33525fi
ac1cb8d3
VS
33526rm -f conftest.err conftest.$ac_objext \
33527 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33528fi
33529echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33530echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33531if test `eval echo '${'$as_ac_var'}'` = yes; then
33532 cat >>confdefs.h <<_ACEOF
33533#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33534_ACEOF
33535
33536fi
33537done
33538
33539
33540
33541for ac_header in sched.h
33542do
33543as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
33544if eval "test \"\${$as_ac_Header+set}\" = set"; then
33545 echo "$as_me:$LINENO: checking for $ac_header" >&5
33546echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
33547if eval "test \"\${$as_ac_Header+set}\" = set"; then
33548 echo $ECHO_N "(cached) $ECHO_C" >&6
33549fi
33550echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
33551echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
33552else
33553 # Is the header compilable?
33554echo "$as_me:$LINENO: checking $ac_header usability" >&5
33555echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
33556cat >conftest.$ac_ext <<_ACEOF
33557/* confdefs.h. */
33558_ACEOF
33559cat confdefs.h >>conftest.$ac_ext
33560cat >>conftest.$ac_ext <<_ACEOF
33561/* end confdefs.h. */
33562$ac_includes_default
33563#include <$ac_header>
33564_ACEOF
33565rm -f conftest.$ac_objext
33566if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 33567 (eval $ac_compile) 2>conftest.er1
a848cd7e 33568 ac_status=$?
ac1cb8d3
VS
33569 grep -v '^ *+' conftest.er1 >conftest.err
33570 rm -f conftest.er1
33571 cat conftest.err >&5
a848cd7e
SC
33572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33573 (exit $ac_status); } &&
89be85c2
VS
33574 { ac_try='test -z "$ac_c_werror_flag"
33575 || test ! -s conftest.err'
ac1cb8d3
VS
33576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33577 (eval $ac_try) 2>&5
33578 ac_status=$?
33579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33580 (exit $ac_status); }; } &&
33581 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
33582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33583 (eval $ac_try) 2>&5
33584 ac_status=$?
33585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33586 (exit $ac_status); }; }; then
33587 ac_header_compiler=yes
33588else
33589 echo "$as_me: failed program was:" >&5
33590sed 's/^/| /' conftest.$ac_ext >&5
33591
33592ac_header_compiler=no
33593fi
ac1cb8d3 33594rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
33595echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33596echo "${ECHO_T}$ac_header_compiler" >&6
33597
33598# Is the header present?
33599echo "$as_me:$LINENO: checking $ac_header presence" >&5
33600echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
33601cat >conftest.$ac_ext <<_ACEOF
33602/* confdefs.h. */
33603_ACEOF
33604cat confdefs.h >>conftest.$ac_ext
33605cat >>conftest.$ac_ext <<_ACEOF
33606/* end confdefs.h. */
33607#include <$ac_header>
33608_ACEOF
33609if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
33610 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
33611 ac_status=$?
33612 grep -v '^ *+' conftest.er1 >conftest.err
33613 rm -f conftest.er1
33614 cat conftest.err >&5
33615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33616 (exit $ac_status); } >/dev/null; then
33617 if test -s conftest.err; then
33618 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 33619 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
33620 else
33621 ac_cpp_err=
33622 fi
33623else
33624 ac_cpp_err=yes
33625fi
33626if test -z "$ac_cpp_err"; then
33627 ac_header_preproc=yes
33628else
33629 echo "$as_me: failed program was:" >&5
33630sed 's/^/| /' conftest.$ac_ext >&5
33631
33632 ac_header_preproc=no
33633fi
33634rm -f conftest.err conftest.$ac_ext
33635echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33636echo "${ECHO_T}$ac_header_preproc" >&6
33637
33638# So? What about this header?
ac1cb8d3
VS
33639case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33640 yes:no: )
a848cd7e
SC
33641 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
33642echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
33643 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
33644echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
33645 ac_header_preproc=yes
a848cd7e 33646 ;;
ac1cb8d3 33647 no:yes:* )
a848cd7e
SC
33648 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
33649echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
33650 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
33651echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
33652 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
33653echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
33654 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
33655echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
33656 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
33657echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
33658 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
33659echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
33660 (
33661 cat <<\_ASBOX
ac1cb8d3
VS
33662## ----------------------------------------- ##
33663## Report this to wx-dev@lists.wxwidgets.org ##
33664## ----------------------------------------- ##
a848cd7e
SC
33665_ASBOX
33666 ) |
33667 sed "s/^/$as_me: WARNING: /" >&2
33668 ;;
33669esac
33670echo "$as_me:$LINENO: checking for $ac_header" >&5
33671echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
33672if eval "test \"\${$as_ac_Header+set}\" = set"; then
33673 echo $ECHO_N "(cached) $ECHO_C" >&6
33674else
ac1cb8d3 33675 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
33676fi
33677echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
33678echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
33679
33680fi
33681if test `eval echo '${'$as_ac_Header'}'` = yes; then
33682 cat >>confdefs.h <<_ACEOF
33683#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
33684_ACEOF
33685
33686fi
33687
33688done
33689
33690 if test "$ac_cv_header_sched_h" = "yes"; then
33691 echo "$as_me:$LINENO: checking for sched_yield" >&5
33692echo $ECHO_N "checking for sched_yield... $ECHO_C" >&6
33693if test "${ac_cv_func_sched_yield+set}" = set; then
33694 echo $ECHO_N "(cached) $ECHO_C" >&6
33695else
33696 cat >conftest.$ac_ext <<_ACEOF
33697/* confdefs.h. */
33698_ACEOF
33699cat confdefs.h >>conftest.$ac_ext
33700cat >>conftest.$ac_ext <<_ACEOF
33701/* end confdefs.h. */
ac1cb8d3
VS
33702/* Define sched_yield to an innocuous variant, in case <limits.h> declares sched_yield.
33703 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33704#define sched_yield innocuous_sched_yield
33705
a848cd7e
SC
33706/* System header to define __stub macros and hopefully few prototypes,
33707 which can conflict with char sched_yield (); below.
33708 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33709 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 33710
a848cd7e
SC
33711#ifdef __STDC__
33712# include <limits.h>
33713#else
33714# include <assert.h>
33715#endif
ac1cb8d3
VS
33716
33717#undef sched_yield
33718
a848cd7e
SC
33719/* Override any gcc2 internal prototype to avoid an error. */
33720#ifdef __cplusplus
33721extern "C"
33722{
33723#endif
33724/* We use char because int might match the return type of a gcc2
33725 builtin and then its argument prototype would still apply. */
33726char sched_yield ();
33727/* The GNU C library defines this for functions which it implements
33728 to always fail with ENOSYS. Some functions are actually named
33729 something starting with __ and the normal name is an alias. */
33730#if defined (__stub_sched_yield) || defined (__stub___sched_yield)
33731choke me
33732#else
33733char (*f) () = sched_yield;
33734#endif
33735#ifdef __cplusplus
33736}
33737#endif
33738
33739int
33740main ()
33741{
33742return f != sched_yield;
33743 ;
33744 return 0;
33745}
33746_ACEOF
33747rm -f conftest.$ac_objext conftest$ac_exeext
33748if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33749 (eval $ac_link) 2>conftest.er1
a848cd7e 33750 ac_status=$?
ac1cb8d3
VS
33751 grep -v '^ *+' conftest.er1 >conftest.err
33752 rm -f conftest.er1
33753 cat conftest.err >&5
a848cd7e
SC
33754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33755 (exit $ac_status); } &&
89be85c2
VS
33756 { ac_try='test -z "$ac_c_werror_flag"
33757 || test ! -s conftest.err'
ac1cb8d3
VS
33758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33759 (eval $ac_try) 2>&5
33760 ac_status=$?
33761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33762 (exit $ac_status); }; } &&
33763 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33765 (eval $ac_try) 2>&5
33766 ac_status=$?
33767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33768 (exit $ac_status); }; }; then
33769 ac_cv_func_sched_yield=yes
33770else
33771 echo "$as_me: failed program was:" >&5
33772sed 's/^/| /' conftest.$ac_ext >&5
33773
33774ac_cv_func_sched_yield=no
33775fi
ac1cb8d3
VS
33776rm -f conftest.err conftest.$ac_objext \
33777 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33778fi
33779echo "$as_me:$LINENO: result: $ac_cv_func_sched_yield" >&5
33780echo "${ECHO_T}$ac_cv_func_sched_yield" >&6
33781if test $ac_cv_func_sched_yield = yes; then
33782 cat >>confdefs.h <<\_ACEOF
33783#define HAVE_SCHED_YIELD 1
33784_ACEOF
33785
33786else
33787
33788 echo "$as_me:$LINENO: checking for sched_yield in -lposix4" >&5
33789echo $ECHO_N "checking for sched_yield in -lposix4... $ECHO_C" >&6
33790if test "${ac_cv_lib_posix4_sched_yield+set}" = set; then
33791 echo $ECHO_N "(cached) $ECHO_C" >&6
33792else
33793 ac_check_lib_save_LIBS=$LIBS
33794LIBS="-lposix4 $LIBS"
33795cat >conftest.$ac_ext <<_ACEOF
33796/* confdefs.h. */
33797_ACEOF
33798cat confdefs.h >>conftest.$ac_ext
33799cat >>conftest.$ac_ext <<_ACEOF
33800/* end confdefs.h. */
33801
33802/* Override any gcc2 internal prototype to avoid an error. */
33803#ifdef __cplusplus
33804extern "C"
33805#endif
33806/* We use char because int might match the return type of a gcc2
33807 builtin and then its argument prototype would still apply. */
33808char sched_yield ();
33809int
33810main ()
33811{
33812sched_yield ();
33813 ;
33814 return 0;
33815}
33816_ACEOF
33817rm -f conftest.$ac_objext conftest$ac_exeext
33818if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33819 (eval $ac_link) 2>conftest.er1
a848cd7e 33820 ac_status=$?
ac1cb8d3
VS
33821 grep -v '^ *+' conftest.er1 >conftest.err
33822 rm -f conftest.er1
33823 cat conftest.err >&5
a848cd7e
SC
33824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33825 (exit $ac_status); } &&
89be85c2
VS
33826 { ac_try='test -z "$ac_c_werror_flag"
33827 || test ! -s conftest.err'
ac1cb8d3
VS
33828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33829 (eval $ac_try) 2>&5
33830 ac_status=$?
33831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33832 (exit $ac_status); }; } &&
33833 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33835 (eval $ac_try) 2>&5
33836 ac_status=$?
33837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33838 (exit $ac_status); }; }; then
33839 ac_cv_lib_posix4_sched_yield=yes
33840else
33841 echo "$as_me: failed program was:" >&5
33842sed 's/^/| /' conftest.$ac_ext >&5
33843
33844ac_cv_lib_posix4_sched_yield=no
33845fi
ac1cb8d3
VS
33846rm -f conftest.err conftest.$ac_objext \
33847 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33848LIBS=$ac_check_lib_save_LIBS
33849fi
33850echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_yield" >&5
33851echo "${ECHO_T}$ac_cv_lib_posix4_sched_yield" >&6
33852if test $ac_cv_lib_posix4_sched_yield = yes; then
33853 cat >>confdefs.h <<\_ACEOF
33854#define HAVE_SCHED_YIELD 1
33855_ACEOF
33856 POSIX4_LINK=" -lposix4"
33857else
33858 { echo "$as_me:$LINENO: WARNING: wxThread::Yield will not work properly" >&5
33859echo "$as_me: WARNING: wxThread::Yield will not work properly" >&2;}
33860
33861fi
33862
33863
33864
33865fi
33866
33867 fi
33868
33869 HAVE_PRIOR_FUNCS=0
33870 echo "$as_me:$LINENO: checking for pthread_attr_getschedpolicy" >&5
33871echo $ECHO_N "checking for pthread_attr_getschedpolicy... $ECHO_C" >&6
33872if test "${ac_cv_func_pthread_attr_getschedpolicy+set}" = set; then
33873 echo $ECHO_N "(cached) $ECHO_C" >&6
33874else
33875 cat >conftest.$ac_ext <<_ACEOF
33876/* confdefs.h. */
33877_ACEOF
33878cat confdefs.h >>conftest.$ac_ext
33879cat >>conftest.$ac_ext <<_ACEOF
33880/* end confdefs.h. */
ac1cb8d3
VS
33881/* Define pthread_attr_getschedpolicy to an innocuous variant, in case <limits.h> declares pthread_attr_getschedpolicy.
33882 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33883#define pthread_attr_getschedpolicy innocuous_pthread_attr_getschedpolicy
33884
a848cd7e
SC
33885/* System header to define __stub macros and hopefully few prototypes,
33886 which can conflict with char pthread_attr_getschedpolicy (); below.
33887 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33888 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 33889
a848cd7e
SC
33890#ifdef __STDC__
33891# include <limits.h>
33892#else
33893# include <assert.h>
33894#endif
ac1cb8d3
VS
33895
33896#undef pthread_attr_getschedpolicy
33897
a848cd7e
SC
33898/* Override any gcc2 internal prototype to avoid an error. */
33899#ifdef __cplusplus
33900extern "C"
33901{
33902#endif
33903/* We use char because int might match the return type of a gcc2
33904 builtin and then its argument prototype would still apply. */
33905char pthread_attr_getschedpolicy ();
33906/* The GNU C library defines this for functions which it implements
33907 to always fail with ENOSYS. Some functions are actually named
33908 something starting with __ and the normal name is an alias. */
33909#if defined (__stub_pthread_attr_getschedpolicy) || defined (__stub___pthread_attr_getschedpolicy)
33910choke me
33911#else
33912char (*f) () = pthread_attr_getschedpolicy;
33913#endif
33914#ifdef __cplusplus
33915}
33916#endif
33917
33918int
33919main ()
33920{
33921return f != pthread_attr_getschedpolicy;
33922 ;
33923 return 0;
33924}
33925_ACEOF
33926rm -f conftest.$ac_objext conftest$ac_exeext
33927if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33928 (eval $ac_link) 2>conftest.er1
a848cd7e 33929 ac_status=$?
ac1cb8d3
VS
33930 grep -v '^ *+' conftest.er1 >conftest.err
33931 rm -f conftest.er1
33932 cat conftest.err >&5
a848cd7e
SC
33933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33934 (exit $ac_status); } &&
89be85c2
VS
33935 { ac_try='test -z "$ac_c_werror_flag"
33936 || test ! -s conftest.err'
ac1cb8d3
VS
33937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33938 (eval $ac_try) 2>&5
33939 ac_status=$?
33940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33941 (exit $ac_status); }; } &&
33942 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33944 (eval $ac_try) 2>&5
33945 ac_status=$?
33946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33947 (exit $ac_status); }; }; then
33948 ac_cv_func_pthread_attr_getschedpolicy=yes
33949else
33950 echo "$as_me: failed program was:" >&5
33951sed 's/^/| /' conftest.$ac_ext >&5
33952
33953ac_cv_func_pthread_attr_getschedpolicy=no
33954fi
ac1cb8d3
VS
33955rm -f conftest.err conftest.$ac_objext \
33956 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33957fi
33958echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_getschedpolicy" >&5
33959echo "${ECHO_T}$ac_cv_func_pthread_attr_getschedpolicy" >&6
33960if test $ac_cv_func_pthread_attr_getschedpolicy = yes; then
33961 echo "$as_me:$LINENO: checking for pthread_attr_setschedparam" >&5
33962echo $ECHO_N "checking for pthread_attr_setschedparam... $ECHO_C" >&6
33963if test "${ac_cv_func_pthread_attr_setschedparam+set}" = set; then
33964 echo $ECHO_N "(cached) $ECHO_C" >&6
33965else
33966 cat >conftest.$ac_ext <<_ACEOF
33967/* confdefs.h. */
33968_ACEOF
33969cat confdefs.h >>conftest.$ac_ext
33970cat >>conftest.$ac_ext <<_ACEOF
33971/* end confdefs.h. */
ac1cb8d3
VS
33972/* Define pthread_attr_setschedparam to an innocuous variant, in case <limits.h> declares pthread_attr_setschedparam.
33973 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33974#define pthread_attr_setschedparam innocuous_pthread_attr_setschedparam
33975
a848cd7e
SC
33976/* System header to define __stub macros and hopefully few prototypes,
33977 which can conflict with char pthread_attr_setschedparam (); below.
33978 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33979 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 33980
a848cd7e
SC
33981#ifdef __STDC__
33982# include <limits.h>
33983#else
33984# include <assert.h>
33985#endif
ac1cb8d3
VS
33986
33987#undef pthread_attr_setschedparam
33988
a848cd7e
SC
33989/* Override any gcc2 internal prototype to avoid an error. */
33990#ifdef __cplusplus
33991extern "C"
33992{
33993#endif
33994/* We use char because int might match the return type of a gcc2
33995 builtin and then its argument prototype would still apply. */
33996char pthread_attr_setschedparam ();
33997/* The GNU C library defines this for functions which it implements
33998 to always fail with ENOSYS. Some functions are actually named
33999 something starting with __ and the normal name is an alias. */
34000#if defined (__stub_pthread_attr_setschedparam) || defined (__stub___pthread_attr_setschedparam)
34001choke me
34002#else
34003char (*f) () = pthread_attr_setschedparam;
34004#endif
34005#ifdef __cplusplus
34006}
34007#endif
34008
34009int
34010main ()
34011{
34012return f != pthread_attr_setschedparam;
34013 ;
34014 return 0;
34015}
34016_ACEOF
34017rm -f conftest.$ac_objext conftest$ac_exeext
34018if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34019 (eval $ac_link) 2>conftest.er1
a848cd7e 34020 ac_status=$?
ac1cb8d3
VS
34021 grep -v '^ *+' conftest.er1 >conftest.err
34022 rm -f conftest.er1
34023 cat conftest.err >&5
a848cd7e
SC
34024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34025 (exit $ac_status); } &&
89be85c2
VS
34026 { ac_try='test -z "$ac_c_werror_flag"
34027 || test ! -s conftest.err'
ac1cb8d3
VS
34028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34029 (eval $ac_try) 2>&5
34030 ac_status=$?
34031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34032 (exit $ac_status); }; } &&
34033 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34035 (eval $ac_try) 2>&5
34036 ac_status=$?
34037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34038 (exit $ac_status); }; }; then
34039 ac_cv_func_pthread_attr_setschedparam=yes
34040else
34041 echo "$as_me: failed program was:" >&5
34042sed 's/^/| /' conftest.$ac_ext >&5
34043
34044ac_cv_func_pthread_attr_setschedparam=no
34045fi
ac1cb8d3
VS
34046rm -f conftest.err conftest.$ac_objext \
34047 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34048fi
34049echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_setschedparam" >&5
34050echo "${ECHO_T}$ac_cv_func_pthread_attr_setschedparam" >&6
34051if test $ac_cv_func_pthread_attr_setschedparam = yes; then
34052 echo "$as_me:$LINENO: checking for sched_get_priority_max" >&5
34053echo $ECHO_N "checking for sched_get_priority_max... $ECHO_C" >&6
34054if test "${ac_cv_func_sched_get_priority_max+set}" = set; then
34055 echo $ECHO_N "(cached) $ECHO_C" >&6
34056else
34057 cat >conftest.$ac_ext <<_ACEOF
34058/* confdefs.h. */
34059_ACEOF
34060cat confdefs.h >>conftest.$ac_ext
34061cat >>conftest.$ac_ext <<_ACEOF
34062/* end confdefs.h. */
ac1cb8d3
VS
34063/* Define sched_get_priority_max to an innocuous variant, in case <limits.h> declares sched_get_priority_max.
34064 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34065#define sched_get_priority_max innocuous_sched_get_priority_max
34066
a848cd7e
SC
34067/* System header to define __stub macros and hopefully few prototypes,
34068 which can conflict with char sched_get_priority_max (); below.
34069 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34070 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 34071
a848cd7e
SC
34072#ifdef __STDC__
34073# include <limits.h>
34074#else
34075# include <assert.h>
34076#endif
ac1cb8d3
VS
34077
34078#undef sched_get_priority_max
34079
a848cd7e
SC
34080/* Override any gcc2 internal prototype to avoid an error. */
34081#ifdef __cplusplus
34082extern "C"
34083{
34084#endif
34085/* We use char because int might match the return type of a gcc2
34086 builtin and then its argument prototype would still apply. */
34087char sched_get_priority_max ();
34088/* The GNU C library defines this for functions which it implements
34089 to always fail with ENOSYS. Some functions are actually named
34090 something starting with __ and the normal name is an alias. */
34091#if defined (__stub_sched_get_priority_max) || defined (__stub___sched_get_priority_max)
34092choke me
34093#else
34094char (*f) () = sched_get_priority_max;
34095#endif
34096#ifdef __cplusplus
34097}
34098#endif
34099
34100int
34101main ()
34102{
34103return f != sched_get_priority_max;
34104 ;
34105 return 0;
34106}
34107_ACEOF
34108rm -f conftest.$ac_objext conftest$ac_exeext
34109if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34110 (eval $ac_link) 2>conftest.er1
a848cd7e 34111 ac_status=$?
ac1cb8d3
VS
34112 grep -v '^ *+' conftest.er1 >conftest.err
34113 rm -f conftest.er1
34114 cat conftest.err >&5
a848cd7e
SC
34115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34116 (exit $ac_status); } &&
89be85c2
VS
34117 { ac_try='test -z "$ac_c_werror_flag"
34118 || test ! -s conftest.err'
ac1cb8d3
VS
34119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34120 (eval $ac_try) 2>&5
34121 ac_status=$?
34122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34123 (exit $ac_status); }; } &&
34124 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34126 (eval $ac_try) 2>&5
34127 ac_status=$?
34128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34129 (exit $ac_status); }; }; then
34130 ac_cv_func_sched_get_priority_max=yes
34131else
34132 echo "$as_me: failed program was:" >&5
34133sed 's/^/| /' conftest.$ac_ext >&5
34134
34135ac_cv_func_sched_get_priority_max=no
34136fi
ac1cb8d3
VS
34137rm -f conftest.err conftest.$ac_objext \
34138 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34139fi
34140echo "$as_me:$LINENO: result: $ac_cv_func_sched_get_priority_max" >&5
34141echo "${ECHO_T}$ac_cv_func_sched_get_priority_max" >&6
34142if test $ac_cv_func_sched_get_priority_max = yes; then
34143 HAVE_PRIOR_FUNCS=1
34144else
34145 echo "$as_me:$LINENO: checking for sched_get_priority_max in -lposix4" >&5
34146echo $ECHO_N "checking for sched_get_priority_max in -lposix4... $ECHO_C" >&6
34147if test "${ac_cv_lib_posix4_sched_get_priority_max+set}" = set; then
34148 echo $ECHO_N "(cached) $ECHO_C" >&6
34149else
34150 ac_check_lib_save_LIBS=$LIBS
34151LIBS="-lposix4 $LIBS"
34152cat >conftest.$ac_ext <<_ACEOF
34153/* confdefs.h. */
34154_ACEOF
34155cat confdefs.h >>conftest.$ac_ext
34156cat >>conftest.$ac_ext <<_ACEOF
34157/* end confdefs.h. */
34158
34159/* Override any gcc2 internal prototype to avoid an error. */
34160#ifdef __cplusplus
34161extern "C"
34162#endif
34163/* We use char because int might match the return type of a gcc2
34164 builtin and then its argument prototype would still apply. */
34165char sched_get_priority_max ();
34166int
34167main ()
34168{
34169sched_get_priority_max ();
34170 ;
34171 return 0;
34172}
34173_ACEOF
34174rm -f conftest.$ac_objext conftest$ac_exeext
34175if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34176 (eval $ac_link) 2>conftest.er1
a848cd7e 34177 ac_status=$?
ac1cb8d3
VS
34178 grep -v '^ *+' conftest.er1 >conftest.err
34179 rm -f conftest.er1
34180 cat conftest.err >&5
a848cd7e
SC
34181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34182 (exit $ac_status); } &&
89be85c2
VS
34183 { ac_try='test -z "$ac_c_werror_flag"
34184 || test ! -s conftest.err'
ac1cb8d3
VS
34185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34186 (eval $ac_try) 2>&5
34187 ac_status=$?
34188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34189 (exit $ac_status); }; } &&
34190 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34192 (eval $ac_try) 2>&5
34193 ac_status=$?
34194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34195 (exit $ac_status); }; }; then
34196 ac_cv_lib_posix4_sched_get_priority_max=yes
34197else
34198 echo "$as_me: failed program was:" >&5
34199sed 's/^/| /' conftest.$ac_ext >&5
34200
34201ac_cv_lib_posix4_sched_get_priority_max=no
34202fi
ac1cb8d3
VS
34203rm -f conftest.err conftest.$ac_objext \
34204 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34205LIBS=$ac_check_lib_save_LIBS
34206fi
34207echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_get_priority_max" >&5
34208echo "${ECHO_T}$ac_cv_lib_posix4_sched_get_priority_max" >&6
34209if test $ac_cv_lib_posix4_sched_get_priority_max = yes; then
34210
34211 HAVE_PRIOR_FUNCS=1
34212 POSIX4_LINK=" -lposix4"
34213
34214fi
34215
34216
34217fi
34218
34219
34220fi
34221
34222
34223fi
34224
34225
34226 if test "$HAVE_PRIOR_FUNCS" = 1; then
34227 cat >>confdefs.h <<\_ACEOF
34228#define HAVE_THREAD_PRIORITY_FUNCTIONS 1
34229_ACEOF
34230
34231 else
34232 { echo "$as_me:$LINENO: WARNING: Setting thread priority will not work" >&5
34233echo "$as_me: WARNING: Setting thread priority will not work" >&2;}
34234 fi
34235
34236 echo "$as_me:$LINENO: checking for pthread_cancel" >&5
34237echo $ECHO_N "checking for pthread_cancel... $ECHO_C" >&6
34238if test "${ac_cv_func_pthread_cancel+set}" = set; then
34239 echo $ECHO_N "(cached) $ECHO_C" >&6
34240else
34241 cat >conftest.$ac_ext <<_ACEOF
34242/* confdefs.h. */
34243_ACEOF
34244cat confdefs.h >>conftest.$ac_ext
34245cat >>conftest.$ac_ext <<_ACEOF
34246/* end confdefs.h. */
ac1cb8d3
VS
34247/* Define pthread_cancel to an innocuous variant, in case <limits.h> declares pthread_cancel.
34248 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34249#define pthread_cancel innocuous_pthread_cancel
34250
a848cd7e
SC
34251/* System header to define __stub macros and hopefully few prototypes,
34252 which can conflict with char pthread_cancel (); below.
34253 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34254 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 34255
a848cd7e
SC
34256#ifdef __STDC__
34257# include <limits.h>
34258#else
34259# include <assert.h>
34260#endif
ac1cb8d3
VS
34261
34262#undef pthread_cancel
34263
a848cd7e
SC
34264/* Override any gcc2 internal prototype to avoid an error. */
34265#ifdef __cplusplus
34266extern "C"
34267{
34268#endif
34269/* We use char because int might match the return type of a gcc2
34270 builtin and then its argument prototype would still apply. */
34271char pthread_cancel ();
34272/* The GNU C library defines this for functions which it implements
34273 to always fail with ENOSYS. Some functions are actually named
34274 something starting with __ and the normal name is an alias. */
34275#if defined (__stub_pthread_cancel) || defined (__stub___pthread_cancel)
34276choke me
34277#else
34278char (*f) () = pthread_cancel;
34279#endif
34280#ifdef __cplusplus
34281}
34282#endif
34283
34284int
34285main ()
34286{
34287return f != pthread_cancel;
34288 ;
34289 return 0;
34290}
34291_ACEOF
34292rm -f conftest.$ac_objext conftest$ac_exeext
34293if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34294 (eval $ac_link) 2>conftest.er1
a848cd7e 34295 ac_status=$?
ac1cb8d3
VS
34296 grep -v '^ *+' conftest.er1 >conftest.err
34297 rm -f conftest.er1
34298 cat conftest.err >&5
a848cd7e
SC
34299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34300 (exit $ac_status); } &&
89be85c2
VS
34301 { ac_try='test -z "$ac_c_werror_flag"
34302 || test ! -s conftest.err'
ac1cb8d3
VS
34303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34304 (eval $ac_try) 2>&5
34305 ac_status=$?
34306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34307 (exit $ac_status); }; } &&
34308 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34310 (eval $ac_try) 2>&5
34311 ac_status=$?
34312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34313 (exit $ac_status); }; }; then
34314 ac_cv_func_pthread_cancel=yes
34315else
34316 echo "$as_me: failed program was:" >&5
34317sed 's/^/| /' conftest.$ac_ext >&5
34318
34319ac_cv_func_pthread_cancel=no
34320fi
ac1cb8d3
VS
34321rm -f conftest.err conftest.$ac_objext \
34322 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34323fi
34324echo "$as_me:$LINENO: result: $ac_cv_func_pthread_cancel" >&5
34325echo "${ECHO_T}$ac_cv_func_pthread_cancel" >&6
34326if test $ac_cv_func_pthread_cancel = yes; then
34327 cat >>confdefs.h <<\_ACEOF
34328#define HAVE_PTHREAD_CANCEL 1
34329_ACEOF
34330
34331else
34332 { echo "$as_me:$LINENO: WARNING: wxThread::Kill() will not work properly" >&5
34333echo "$as_me: WARNING: wxThread::Kill() will not work properly" >&2;}
34334fi
34335
34336
34337
34338
34339 echo "$as_me:$LINENO: checking for pthread_mutexattr_t" >&5
34340echo $ECHO_N "checking for pthread_mutexattr_t... $ECHO_C" >&6
34341if test "${wx_cv_type_pthread_mutexattr_t+set}" = set; then
34342 echo $ECHO_N "(cached) $ECHO_C" >&6
34343else
34344
34345 cat >conftest.$ac_ext <<_ACEOF
34346/* confdefs.h. */
34347_ACEOF
34348cat confdefs.h >>conftest.$ac_ext
34349cat >>conftest.$ac_ext <<_ACEOF
34350/* end confdefs.h. */
34351#include <pthread.h>
34352int
34353main ()
34354{
34355
34356 pthread_mutexattr_t attr;
34357 pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
34358
34359 ;
34360 return 0;
34361}
34362_ACEOF
34363rm -f conftest.$ac_objext
34364if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 34365 (eval $ac_compile) 2>conftest.er1
a848cd7e 34366 ac_status=$?
ac1cb8d3
VS
34367 grep -v '^ *+' conftest.er1 >conftest.err
34368 rm -f conftest.er1
34369 cat conftest.err >&5
a848cd7e
SC
34370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34371 (exit $ac_status); } &&
89be85c2
VS
34372 { ac_try='test -z "$ac_c_werror_flag"
34373 || 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_objext'
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
34386 wx_cv_type_pthread_mutexattr_t=yes
34387
34388else
34389 echo "$as_me: failed program was:" >&5
34390sed 's/^/| /' conftest.$ac_ext >&5
34391
34392
34393 wx_cv_type_pthread_mutexattr_t=no
34394
34395
34396fi
ac1cb8d3 34397rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
34398
34399fi
34400echo "$as_me:$LINENO: result: $wx_cv_type_pthread_mutexattr_t" >&5
34401echo "${ECHO_T}$wx_cv_type_pthread_mutexattr_t" >&6
34402
34403 if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then
34404 cat >>confdefs.h <<\_ACEOF
34405#define HAVE_PTHREAD_MUTEXATTR_T 1
34406_ACEOF
34407
34408 else
34409 echo "$as_me:$LINENO: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5
34410echo $ECHO_N "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER... $ECHO_C" >&6
34411if test "${wx_cv_type_pthread_rec_mutex_init+set}" = set; then
34412 echo $ECHO_N "(cached) $ECHO_C" >&6
34413else
34414
34415 cat >conftest.$ac_ext <<_ACEOF
34416/* confdefs.h. */
34417_ACEOF
34418cat confdefs.h >>conftest.$ac_ext
34419cat >>conftest.$ac_ext <<_ACEOF
34420/* end confdefs.h. */
34421#include <pthread.h>
34422int
34423main ()
34424{
34425
34426 pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;
34427
34428 ;
34429 return 0;
34430}
34431_ACEOF
34432rm -f conftest.$ac_objext
34433if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 34434 (eval $ac_compile) 2>conftest.er1
a848cd7e 34435 ac_status=$?
ac1cb8d3
VS
34436 grep -v '^ *+' conftest.er1 >conftest.err
34437 rm -f conftest.er1
34438 cat conftest.err >&5
a848cd7e
SC
34439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34440 (exit $ac_status); } &&
89be85c2
VS
34441 { ac_try='test -z "$ac_c_werror_flag"
34442 || test ! -s conftest.err'
ac1cb8d3
VS
34443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34444 (eval $ac_try) 2>&5
34445 ac_status=$?
34446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34447 (exit $ac_status); }; } &&
34448 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
34449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34450 (eval $ac_try) 2>&5
34451 ac_status=$?
34452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34453 (exit $ac_status); }; }; then
34454
34455 wx_cv_type_pthread_rec_mutex_init=yes
34456
34457else
34458 echo "$as_me: failed program was:" >&5
34459sed 's/^/| /' conftest.$ac_ext >&5
34460
34461
34462 wx_cv_type_pthread_rec_mutex_init=no
34463
34464
34465fi
ac1cb8d3 34466rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
34467
34468fi
34469echo "$as_me:$LINENO: result: $wx_cv_type_pthread_rec_mutex_init" >&5
34470echo "${ECHO_T}$wx_cv_type_pthread_rec_mutex_init" >&6
34471 if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then
34472 cat >>confdefs.h <<\_ACEOF
34473#define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1
34474_ACEOF
34475
34476 else
34477 { echo "$as_me:$LINENO: WARNING: wxMutex won't be recursive on this platform" >&5
34478echo "$as_me: WARNING: wxMutex won't be recursive on this platform" >&2;}
34479 fi
34480 fi
34481 fi
34482
34483else
34484 if test "$wxUSE_THREADS" = "yes" ; then
34485 case "${host}" in
34486 *-*-mingw32* )
34487 echo "$as_me:$LINENO: checking if compiler supports -mthreads" >&5
34488echo $ECHO_N "checking if compiler supports -mthreads... $ECHO_C" >&6
34489if test "${wx_cv_cflags_mthread+set}" = set; then
34490 echo $ECHO_N "(cached) $ECHO_C" >&6
34491else
34492
34493 CFLAGS_OLD="$CFLAGS"
34494 CFLAGS="$CFLAGS -mthreads"
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. */
34501
34502int
34503main ()
34504{
34505
34506 ;
34507 return 0;
34508}
34509_ACEOF
34510rm -f conftest.$ac_objext
34511if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 34512 (eval $ac_compile) 2>conftest.er1
a848cd7e 34513 ac_status=$?
ac1cb8d3
VS
34514 grep -v '^ *+' conftest.er1 >conftest.err
34515 rm -f conftest.er1
34516 cat conftest.err >&5
a848cd7e
SC
34517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34518 (exit $ac_status); } &&
89be85c2
VS
34519 { ac_try='test -z "$ac_c_werror_flag"
34520 || test ! -s conftest.err'
ac1cb8d3
VS
34521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34522 (eval $ac_try) 2>&5
34523 ac_status=$?
34524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34525 (exit $ac_status); }; } &&
34526 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
34527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34528 (eval $ac_try) 2>&5
34529 ac_status=$?
34530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34531 (exit $ac_status); }; }; then
34532 wx_cv_cflags_mthread=yes
34533else
34534 echo "$as_me: failed program was:" >&5
34535sed 's/^/| /' conftest.$ac_ext >&5
34536
34537wx_cv_cflags_mthread=no
34538
34539fi
ac1cb8d3 34540rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
34541
34542
34543fi
34544echo "$as_me:$LINENO: result: $wx_cv_cflags_mthread" >&5
34545echo "${ECHO_T}$wx_cv_cflags_mthread" >&6
34546
34547 if test "$wx_cv_cflags_mthread" = "yes"; then
34548 CXXFLAGS="$CXXFLAGS -mthreads"
34549 TOOLCHAIN_DEFS="$TOOLCHAIN_DEFS -mthreads"
34550 LDFLAGS="$LDFLAGS -mthreads"
34551 else
34552 CFLAGS="$CFLAGS_OLD"
34553 fi
34554 ;;
34555 *-pc-os2*emx )
34556 CFLAGS="$CFLAGS -Zmt -D__ST_MT_ERRNO__"
34557 CXXFLAGS="$CXXFLAGS -Zmt -D__ST_MT_ERRNO__"
34558 LDFLAGS="$LDFLAGS -Zmt"
34559 ;;
34560 esac
34561 fi
34562fi
34563
34564if test "$wxUSE_THREADS" = "yes"; then
34565 cat >>confdefs.h <<\_ACEOF
34566#define wxUSE_THREADS 1
34567_ACEOF
34568
34569
34570 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread"
34571else
34572 if test "$ac_cv_func_strtok_r" = "yes"; then
34573 echo "$as_me:$LINENO: checking if -D_REENTRANT is needed" >&5
34574echo $ECHO_N "checking if -D_REENTRANT is needed... $ECHO_C" >&6
34575 if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then
34576 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D_REENTRANT"
34577 echo "$as_me:$LINENO: result: yes" >&5
34578echo "${ECHO_T}yes" >&6
34579 else
34580 echo "$as_me:$LINENO: result: no" >&5
34581echo "${ECHO_T}no" >&6
34582 fi
34583 fi
34584fi
34585
34586if test "$WXGTK20" = 1 ; then
34587 cat >>confdefs.h <<_ACEOF
34588#define __WXGTK20__ $WXGTK20
34589_ACEOF
34590
34591 WXGTK12=1
34592fi
34593
34594if test "$WXGTK12" = 1 ; then
34595 cat >>confdefs.h <<_ACEOF
34596#define __WXGTK12__ $WXGTK12
34597_ACEOF
34598
34599fi
34600
34601if test "$WXGTK127" = 1 ; then
34602 cat >>confdefs.h <<_ACEOF
34603#define __WXGTK127__ $WXGTK127
34604_ACEOF
34605
34606fi
34607
34608if test "$WXGPE" = 1 ; then
34609 cat >>confdefs.h <<_ACEOF
34610#define __WXGPE__ $WXGPE
34611_ACEOF
34612
34613fi
34614
34615WXDEBUG=
34616
34617if test "$wxUSE_DEBUG_INFO" = "yes" ; then
34618 WXDEBUG="-g"
34619 wxUSE_OPTIMISE=no
34620fi
34621
34622if test "$wxUSE_DEBUG_GDB" = "yes" ; then
34623 wxUSE_DEBUG_INFO=yes
34624 WXDEBUG="-ggdb"
34625fi
34626
34627if test "$wxUSE_DEBUG_FLAG" = "yes" ; then
34628 cat >>confdefs.h <<\_ACEOF
34629#define WXDEBUG 1
34630_ACEOF
34631
34632 WXDEBUG_DEFINE="-D__WXDEBUG__"
34633else
34634 if test "$wxUSE_GTK" = 1 ; then
34635 WXDEBUG_DEFINE="-DGTK_NO_CHECK_CASTS"
34636 fi
34637fi
34638
34639if test "$wxUSE_MEM_TRACING" = "yes" ; then
34640 cat >>confdefs.h <<\_ACEOF
34641#define wxUSE_MEMORY_TRACING 1
34642_ACEOF
34643
34644 cat >>confdefs.h <<\_ACEOF
34645#define wxUSE_GLOBAL_MEMORY_OPERATORS 1
34646_ACEOF
34647
34648 cat >>confdefs.h <<\_ACEOF
34649#define wxUSE_DEBUG_NEW_ALWAYS 1
34650_ACEOF
34651
34652 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck"
34653fi
34654
34655if test "$wxUSE_DMALLOC" = "yes" ; then
34656 DMALLOC_LIBS="-ldmalloc"
34657fi
34658
34659PROFILE=
34660if test "$wxUSE_PROFILE" = "yes" ; then
34661 PROFILE=" -pg"
34662fi
34663
34664CODE_GEN_FLAGS=
34665CODE_GEN_FLAGS_CXX=
34666if test "$GCC" = "yes" ; then
34667 if test "$wxUSE_NO_RTTI" = "yes" ; then
34668 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-rtti"
34669 fi
34670 if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
34671 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-exceptions"
34672 fi
34673 if test "$wxUSE_PERMISSIVE" = "yes" ; then
34674 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fpermissive"
34675 fi
34676
34677 case "${host}" in
34678 powerpc*-*-aix* )
34679 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -mminimal-toc"
34680 ;;
34681 *-hppa* )
34682 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -ffunction-sections"
34683 ;;
34684 esac
34685fi
34686
34687OPTIMISE=
34688if test "$wxUSE_OPTIMISE" = "no" ; then
34689 if test "$GCC" = yes ; then
34690 OPTIMISE="-O0"
34691 fi
34692else
34693 if test "$GCC" = yes ; then
34694 OPTIMISE="-O2"
34695
34696 case "${host}" in
34697 i586-*-*|i686-*-* )
34698 OPTIMISE="${OPTIMISE} "
34699 ;;
34700 esac
34701 else
34702 OPTIMISE="-O"
34703 fi
34704fi
34705
34706
34707if test "x$WXWIN_COMPATIBILITY_2_2" = "xyes"; then
34708 cat >>confdefs.h <<\_ACEOF
34709#define WXWIN_COMPATIBILITY_2_2 1
34710_ACEOF
34711
34712
34713 WXWIN_COMPATIBILITY_2_4="yes"
34714fi
34715
34716if test "x$WXWIN_COMPATIBILITY_2_4" != "xno"; then
34717 cat >>confdefs.h <<\_ACEOF
34718#define WXWIN_COMPATIBILITY_2_4 1
34719_ACEOF
34720
34721fi
34722
34723
34724if test "$wxUSE_GUI" = "yes"; then
881bfcd6 34725 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
34726#define wxUSE_GUI 1
34727_ACEOF
34728
34729
370fd4c2 34730 fi
a848cd7e
SC
34731
34732
34733if test "$wxUSE_UNIX" = "yes"; then
34734 cat >>confdefs.h <<\_ACEOF
34735#define wxUSE_UNIX 1
34736_ACEOF
34737
34738fi
34739
34740
34741if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then
34742
34743 HAVE_DL_FUNCS=0
34744 HAVE_SHL_FUNCS=0
34745 if test "$wxUSE_DYNAMIC_LOADER" = "yes" -o "$wxUSE_DYNLIB_CLASS" = "yes" ; then
34746 if test "$USE_DARWIN" = 1; then
34747 HAVE_DL_FUNCS=1
34748 else
34749
34750for ac_func in dlopen
34751do
34752as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34753echo "$as_me:$LINENO: checking for $ac_func" >&5
34754echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34755if eval "test \"\${$as_ac_var+set}\" = set"; then
34756 echo $ECHO_N "(cached) $ECHO_C" >&6
34757else
34758 cat >conftest.$ac_ext <<_ACEOF
34759/* confdefs.h. */
34760_ACEOF
34761cat confdefs.h >>conftest.$ac_ext
34762cat >>conftest.$ac_ext <<_ACEOF
34763/* end confdefs.h. */
ac1cb8d3
VS
34764/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34765 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34766#define $ac_func innocuous_$ac_func
34767
a848cd7e
SC
34768/* System header to define __stub macros and hopefully few prototypes,
34769 which can conflict with char $ac_func (); below.
34770 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34771 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 34772
a848cd7e
SC
34773#ifdef __STDC__
34774# include <limits.h>
34775#else
34776# include <assert.h>
34777#endif
ac1cb8d3
VS
34778
34779#undef $ac_func
34780
a848cd7e
SC
34781/* Override any gcc2 internal prototype to avoid an error. */
34782#ifdef __cplusplus
34783extern "C"
34784{
34785#endif
34786/* We use char because int might match the return type of a gcc2
34787 builtin and then its argument prototype would still apply. */
34788char $ac_func ();
34789/* The GNU C library defines this for functions which it implements
34790 to always fail with ENOSYS. Some functions are actually named
34791 something starting with __ and the normal name is an alias. */
34792#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34793choke me
34794#else
34795char (*f) () = $ac_func;
34796#endif
34797#ifdef __cplusplus
34798}
34799#endif
34800
34801int
34802main ()
34803{
34804return f != $ac_func;
34805 ;
34806 return 0;
34807}
34808_ACEOF
34809rm -f conftest.$ac_objext conftest$ac_exeext
34810if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34811 (eval $ac_link) 2>conftest.er1
a848cd7e 34812 ac_status=$?
ac1cb8d3
VS
34813 grep -v '^ *+' conftest.er1 >conftest.err
34814 rm -f conftest.er1
34815 cat conftest.err >&5
a848cd7e
SC
34816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34817 (exit $ac_status); } &&
89be85c2
VS
34818 { ac_try='test -z "$ac_c_werror_flag"
34819 || test ! -s conftest.err'
ac1cb8d3
VS
34820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34821 (eval $ac_try) 2>&5
34822 ac_status=$?
34823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34824 (exit $ac_status); }; } &&
34825 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34827 (eval $ac_try) 2>&5
34828 ac_status=$?
34829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34830 (exit $ac_status); }; }; then
34831 eval "$as_ac_var=yes"
34832else
34833 echo "$as_me: failed program was:" >&5
34834sed 's/^/| /' conftest.$ac_ext >&5
34835
34836eval "$as_ac_var=no"
34837fi
ac1cb8d3
VS
34838rm -f conftest.err conftest.$ac_objext \
34839 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34840fi
34841echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34842echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34843if test `eval echo '${'$as_ac_var'}'` = yes; then
34844 cat >>confdefs.h <<_ACEOF
34845#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34846_ACEOF
34847
34848 cat >>confdefs.h <<\_ACEOF
34849#define HAVE_DLOPEN 1
34850_ACEOF
34851
34852 HAVE_DL_FUNCS=1
34853
34854else
34855
34856 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
34857echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
34858if test "${ac_cv_lib_dl_dlopen+set}" = set; then
34859 echo $ECHO_N "(cached) $ECHO_C" >&6
34860else
34861 ac_check_lib_save_LIBS=$LIBS
34862LIBS="-ldl $LIBS"
34863cat >conftest.$ac_ext <<_ACEOF
34864/* confdefs.h. */
34865_ACEOF
34866cat confdefs.h >>conftest.$ac_ext
34867cat >>conftest.$ac_ext <<_ACEOF
34868/* end confdefs.h. */
34869
34870/* Override any gcc2 internal prototype to avoid an error. */
34871#ifdef __cplusplus
34872extern "C"
34873#endif
34874/* We use char because int might match the return type of a gcc2
34875 builtin and then its argument prototype would still apply. */
34876char dlopen ();
34877int
34878main ()
34879{
34880dlopen ();
34881 ;
34882 return 0;
34883}
34884_ACEOF
34885rm -f conftest.$ac_objext conftest$ac_exeext
34886if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34887 (eval $ac_link) 2>conftest.er1
a848cd7e 34888 ac_status=$?
ac1cb8d3
VS
34889 grep -v '^ *+' conftest.er1 >conftest.err
34890 rm -f conftest.er1
34891 cat conftest.err >&5
a848cd7e
SC
34892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34893 (exit $ac_status); } &&
89be85c2
VS
34894 { ac_try='test -z "$ac_c_werror_flag"
34895 || test ! -s conftest.err'
ac1cb8d3
VS
34896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34897 (eval $ac_try) 2>&5
34898 ac_status=$?
34899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34900 (exit $ac_status); }; } &&
34901 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34903 (eval $ac_try) 2>&5
34904 ac_status=$?
34905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34906 (exit $ac_status); }; }; then
34907 ac_cv_lib_dl_dlopen=yes
34908else
34909 echo "$as_me: failed program was:" >&5
34910sed 's/^/| /' conftest.$ac_ext >&5
34911
34912ac_cv_lib_dl_dlopen=no
34913fi
ac1cb8d3
VS
34914rm -f conftest.err conftest.$ac_objext \
34915 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34916LIBS=$ac_check_lib_save_LIBS
34917fi
34918echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
34919echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
34920if test $ac_cv_lib_dl_dlopen = yes; then
34921
34922 cat >>confdefs.h <<\_ACEOF
34923#define HAVE_DLOPEN 1
34924_ACEOF
34925
34926 HAVE_DL_FUNCS=1
34927 DL_LINK=" -ldl$DL_LINK"
34928
34929else
34930
34931
34932for ac_func in shl_load
34933do
34934as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34935echo "$as_me:$LINENO: checking for $ac_func" >&5
34936echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34937if eval "test \"\${$as_ac_var+set}\" = set"; then
34938 echo $ECHO_N "(cached) $ECHO_C" >&6
34939else
34940 cat >conftest.$ac_ext <<_ACEOF
34941/* confdefs.h. */
34942_ACEOF
34943cat confdefs.h >>conftest.$ac_ext
34944cat >>conftest.$ac_ext <<_ACEOF
34945/* end confdefs.h. */
ac1cb8d3
VS
34946/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34947 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34948#define $ac_func innocuous_$ac_func
34949
a848cd7e
SC
34950/* System header to define __stub macros and hopefully few prototypes,
34951 which can conflict with char $ac_func (); below.
34952 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34953 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 34954
a848cd7e
SC
34955#ifdef __STDC__
34956# include <limits.h>
34957#else
34958# include <assert.h>
34959#endif
ac1cb8d3
VS
34960
34961#undef $ac_func
34962
a848cd7e
SC
34963/* Override any gcc2 internal prototype to avoid an error. */
34964#ifdef __cplusplus
34965extern "C"
34966{
34967#endif
34968/* We use char because int might match the return type of a gcc2
34969 builtin and then its argument prototype would still apply. */
34970char $ac_func ();
34971/* The GNU C library defines this for functions which it implements
34972 to always fail with ENOSYS. Some functions are actually named
34973 something starting with __ and the normal name is an alias. */
34974#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34975choke me
34976#else
34977char (*f) () = $ac_func;
34978#endif
34979#ifdef __cplusplus
34980}
34981#endif
34982
34983int
34984main ()
34985{
34986return f != $ac_func;
34987 ;
34988 return 0;
34989}
34990_ACEOF
34991rm -f conftest.$ac_objext conftest$ac_exeext
34992if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34993 (eval $ac_link) 2>conftest.er1
a848cd7e 34994 ac_status=$?
ac1cb8d3
VS
34995 grep -v '^ *+' conftest.er1 >conftest.err
34996 rm -f conftest.er1
34997 cat conftest.err >&5
a848cd7e
SC
34998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34999 (exit $ac_status); } &&
89be85c2
VS
35000 { ac_try='test -z "$ac_c_werror_flag"
35001 || test ! -s conftest.err'
ac1cb8d3
VS
35002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35003 (eval $ac_try) 2>&5
35004 ac_status=$?
35005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35006 (exit $ac_status); }; } &&
35007 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35009 (eval $ac_try) 2>&5
35010 ac_status=$?
35011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35012 (exit $ac_status); }; }; then
35013 eval "$as_ac_var=yes"
35014else
35015 echo "$as_me: failed program was:" >&5
35016sed 's/^/| /' conftest.$ac_ext >&5
35017
35018eval "$as_ac_var=no"
35019fi
ac1cb8d3
VS
35020rm -f conftest.err conftest.$ac_objext \
35021 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35022fi
35023echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35024echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35025if test `eval echo '${'$as_ac_var'}'` = yes; then
35026 cat >>confdefs.h <<_ACEOF
35027#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35028_ACEOF
35029
35030 cat >>confdefs.h <<\_ACEOF
35031#define HAVE_SHL_LOAD 1
35032_ACEOF
35033
35034 HAVE_SHL_FUNCS=1
35035
35036else
35037
35038 echo "$as_me:$LINENO: checking for dld in -lshl_load" >&5
35039echo $ECHO_N "checking for dld in -lshl_load... $ECHO_C" >&6
35040if test "${ac_cv_lib_shl_load_dld+set}" = set; then
35041 echo $ECHO_N "(cached) $ECHO_C" >&6
35042else
35043 ac_check_lib_save_LIBS=$LIBS
35044LIBS="-lshl_load $LIBS"
35045cat >conftest.$ac_ext <<_ACEOF
35046/* confdefs.h. */
35047_ACEOF
35048cat confdefs.h >>conftest.$ac_ext
35049cat >>conftest.$ac_ext <<_ACEOF
35050/* end confdefs.h. */
35051
35052/* Override any gcc2 internal prototype to avoid an error. */
35053#ifdef __cplusplus
35054extern "C"
35055#endif
35056/* We use char because int might match the return type of a gcc2
35057 builtin and then its argument prototype would still apply. */
35058char dld ();
35059int
35060main ()
35061{
35062dld ();
35063 ;
35064 return 0;
35065}
35066_ACEOF
35067rm -f conftest.$ac_objext conftest$ac_exeext
35068if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35069 (eval $ac_link) 2>conftest.er1
a848cd7e 35070 ac_status=$?
ac1cb8d3
VS
35071 grep -v '^ *+' conftest.er1 >conftest.err
35072 rm -f conftest.er1
35073 cat conftest.err >&5
a848cd7e
SC
35074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35075 (exit $ac_status); } &&
89be85c2
VS
35076 { ac_try='test -z "$ac_c_werror_flag"
35077 || test ! -s conftest.err'
ac1cb8d3
VS
35078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35079 (eval $ac_try) 2>&5
35080 ac_status=$?
35081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35082 (exit $ac_status); }; } &&
35083 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35085 (eval $ac_try) 2>&5
35086 ac_status=$?
35087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35088 (exit $ac_status); }; }; then
35089 ac_cv_lib_shl_load_dld=yes
35090else
35091 echo "$as_me: failed program was:" >&5
35092sed 's/^/| /' conftest.$ac_ext >&5
35093
35094ac_cv_lib_shl_load_dld=no
35095fi
ac1cb8d3
VS
35096rm -f conftest.err conftest.$ac_objext \
35097 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35098LIBS=$ac_check_lib_save_LIBS
35099fi
35100echo "$as_me:$LINENO: result: $ac_cv_lib_shl_load_dld" >&5
35101echo "${ECHO_T}$ac_cv_lib_shl_load_dld" >&6
35102if test $ac_cv_lib_shl_load_dld = yes; then
35103
35104 HAVE_SHL_FUNCS=1
35105 DL_LINK=" -ldld$DL_LINK"
35106
35107fi
35108
35109
35110fi
35111done
35112
35113
35114fi
35115
35116
35117fi
35118done
35119
35120
35121 if test "$HAVE_DL_FUNCS" = 1; then
35122
35123for ac_func in dlerror
35124do
35125as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35126echo "$as_me:$LINENO: checking for $ac_func" >&5
35127echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35128if eval "test \"\${$as_ac_var+set}\" = set"; then
35129 echo $ECHO_N "(cached) $ECHO_C" >&6
35130else
35131 cat >conftest.$ac_ext <<_ACEOF
35132/* confdefs.h. */
35133_ACEOF
35134cat confdefs.h >>conftest.$ac_ext
35135cat >>conftest.$ac_ext <<_ACEOF
35136/* end confdefs.h. */
ac1cb8d3
VS
35137/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35138 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35139#define $ac_func innocuous_$ac_func
35140
a848cd7e
SC
35141/* System header to define __stub macros and hopefully few prototypes,
35142 which can conflict with char $ac_func (); below.
35143 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35144 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 35145
a848cd7e
SC
35146#ifdef __STDC__
35147# include <limits.h>
35148#else
35149# include <assert.h>
35150#endif
ac1cb8d3
VS
35151
35152#undef $ac_func
35153
a848cd7e
SC
35154/* Override any gcc2 internal prototype to avoid an error. */
35155#ifdef __cplusplus
35156extern "C"
35157{
35158#endif
35159/* We use char because int might match the return type of a gcc2
35160 builtin and then its argument prototype would still apply. */
35161char $ac_func ();
35162/* The GNU C library defines this for functions which it implements
35163 to always fail with ENOSYS. Some functions are actually named
35164 something starting with __ and the normal name is an alias. */
35165#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35166choke me
35167#else
35168char (*f) () = $ac_func;
35169#endif
35170#ifdef __cplusplus
35171}
35172#endif
35173
35174int
35175main ()
35176{
35177return f != $ac_func;
35178 ;
35179 return 0;
35180}
35181_ACEOF
35182rm -f conftest.$ac_objext conftest$ac_exeext
35183if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35184 (eval $ac_link) 2>conftest.er1
a848cd7e 35185 ac_status=$?
ac1cb8d3
VS
35186 grep -v '^ *+' conftest.er1 >conftest.err
35187 rm -f conftest.er1
35188 cat conftest.err >&5
a848cd7e
SC
35189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35190 (exit $ac_status); } &&
89be85c2
VS
35191 { ac_try='test -z "$ac_c_werror_flag"
35192 || test ! -s conftest.err'
ac1cb8d3
VS
35193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35194 (eval $ac_try) 2>&5
35195 ac_status=$?
35196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35197 (exit $ac_status); }; } &&
35198 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35200 (eval $ac_try) 2>&5
35201 ac_status=$?
35202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35203 (exit $ac_status); }; }; then
35204 eval "$as_ac_var=yes"
35205else
35206 echo "$as_me: failed program was:" >&5
35207sed 's/^/| /' conftest.$ac_ext >&5
35208
35209eval "$as_ac_var=no"
35210fi
ac1cb8d3
VS
35211rm -f conftest.err conftest.$ac_objext \
35212 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35213fi
35214echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35215echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35216if test `eval echo '${'$as_ac_var'}'` = yes; then
35217 cat >>confdefs.h <<_ACEOF
35218#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35219_ACEOF
35220 cat >>confdefs.h <<\_ACEOF
35221#define HAVE_DLERROR 1
35222_ACEOF
35223
35224else
35225
35226 echo "$as_me:$LINENO: checking for dlerror in -ldl" >&5
35227echo $ECHO_N "checking for dlerror in -ldl... $ECHO_C" >&6
35228if test "${ac_cv_lib_dl_dlerror+set}" = set; then
35229 echo $ECHO_N "(cached) $ECHO_C" >&6
35230else
35231 ac_check_lib_save_LIBS=$LIBS
35232LIBS="-ldl $LIBS"
35233cat >conftest.$ac_ext <<_ACEOF
35234/* confdefs.h. */
35235_ACEOF
35236cat confdefs.h >>conftest.$ac_ext
35237cat >>conftest.$ac_ext <<_ACEOF
35238/* end confdefs.h. */
35239
35240/* Override any gcc2 internal prototype to avoid an error. */
35241#ifdef __cplusplus
35242extern "C"
35243#endif
35244/* We use char because int might match the return type of a gcc2
35245 builtin and then its argument prototype would still apply. */
35246char dlerror ();
35247int
35248main ()
35249{
35250dlerror ();
35251 ;
35252 return 0;
35253}
35254_ACEOF
35255rm -f conftest.$ac_objext conftest$ac_exeext
35256if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35257 (eval $ac_link) 2>conftest.er1
a848cd7e 35258 ac_status=$?
ac1cb8d3
VS
35259 grep -v '^ *+' conftest.er1 >conftest.err
35260 rm -f conftest.er1
35261 cat conftest.err >&5
a848cd7e
SC
35262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35263 (exit $ac_status); } &&
89be85c2
VS
35264 { ac_try='test -z "$ac_c_werror_flag"
35265 || test ! -s conftest.err'
ac1cb8d3
VS
35266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35267 (eval $ac_try) 2>&5
35268 ac_status=$?
35269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35270 (exit $ac_status); }; } &&
35271 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35273 (eval $ac_try) 2>&5
35274 ac_status=$?
35275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35276 (exit $ac_status); }; }; then
35277 ac_cv_lib_dl_dlerror=yes
35278else
35279 echo "$as_me: failed program was:" >&5
35280sed 's/^/| /' conftest.$ac_ext >&5
35281
35282ac_cv_lib_dl_dlerror=no
35283fi
ac1cb8d3
VS
35284rm -f conftest.err conftest.$ac_objext \
35285 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35286LIBS=$ac_check_lib_save_LIBS
35287fi
35288echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlerror" >&5
35289echo "${ECHO_T}$ac_cv_lib_dl_dlerror" >&6
35290if test $ac_cv_lib_dl_dlerror = yes; then
35291 cat >>confdefs.h <<\_ACEOF
35292#define HAVE_DLERROR 1
35293_ACEOF
35294
35295fi
35296
35297
35298
35299fi
35300done
35301
35302 fi
35303 fi
35304
35305 if test "$HAVE_DL_FUNCS" = 0; then
35306 if test "$HAVE_SHL_FUNCS" = 0; then
35307 if test "$USE_UNIX" = 1; then
35308 { echo "$as_me:$LINENO: WARNING: Missing dynamic loading support, several features will be disabled" >&5
35309echo "$as_me: WARNING: Missing dynamic loading support, several features will be disabled" >&2;}
35310 wxUSE_DYNAMIC_LOADER=no
35311 wxUSE_DYNLIB_CLASS=no
35312 else
35313 { echo "$as_me:$LINENO: WARNING: Assuming wxLibrary class works on this platform" >&5
35314echo "$as_me: WARNING: Assuming wxLibrary class works on this platform" >&2;}
35315 fi
35316 fi
35317 fi
35318 fi
35319fi
35320
35321if test "$wxUSE_DYNAMIC_LOADER" = "yes" ; then
35322 cat >>confdefs.h <<\_ACEOF
35323#define wxUSE_DYNAMIC_LOADER 1
35324_ACEOF
35325
35326fi
35327if test "$wxUSE_DYNLIB_CLASS" = "yes" ; then
35328 cat >>confdefs.h <<\_ACEOF
35329#define wxUSE_DYNLIB_CLASS 1
35330_ACEOF
35331
35332fi
35333
35334
35335
35336if test "$wxUSE_PLUGINS" = "yes" ; then
35337 if test "$wxUSE_SHARED" = "no" ; then
35338 { echo "$as_me:$LINENO: WARNING: plugins supported only in shared build, disabling" >&5
35339echo "$as_me: WARNING: plugins supported only in shared build, disabling" >&2;}
35340 wxUSE_PLUGINS=no
35341 fi
35342 if test "$wxUSE_MONOLITHIC" = "yes" ; then
35343 { echo "$as_me:$LINENO: WARNING: plugins not supported monolithic build, disabling" >&5
35344echo "$as_me: WARNING: plugins not supported monolithic build, disabling" >&2;}
35345 wxUSE_PLUGINS=no
35346 fi
35347 if test "$wxUSE_DYNLIB_CLASS" = "no" ; then
35348 { echo "$as_me:$LINENO: WARNING: plugins require wxDynamicLibrary, disabling" >&5
35349echo "$as_me: WARNING: plugins require wxDynamicLibrary, disabling" >&2;}
35350 wxUSE_PLUGINS=no
35351 fi
35352 if test "$wxUSE_PLUGINS" = "yes" ; then
35353 cat >>confdefs.h <<\_ACEOF
35354#define wxUSE_PLUGINS 1
35355_ACEOF
35356
35357 fi
35358fi
35359
35360
35361if test "$wxUSE_STL" = "yes"; then
35362 cat >>confdefs.h <<\_ACEOF
35363#define wxUSE_STL 1
35364_ACEOF
35365
35366fi
35367
35368if test "$wxUSE_APPLE_IEEE" = "yes"; then
35369 cat >>confdefs.h <<\_ACEOF
35370#define wxUSE_APPLE_IEEE 1
35371_ACEOF
35372
35373fi
35374
35375if test "$wxUSE_TIMER" = "yes"; then
35376 cat >>confdefs.h <<\_ACEOF
35377#define wxUSE_TIMER 1
35378_ACEOF
35379
35380fi
35381
35382WITH_PLUGIN_SDL=0
35383if test "$wxUSE_SOUND" = "yes"; then
35384 if test "$USE_UNIX" = "1" ; then
35385
35386for ac_header in sys/soundcard.h
35387do
35388as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
35389if eval "test \"\${$as_ac_Header+set}\" = set"; then
35390 echo "$as_me:$LINENO: checking for $ac_header" >&5
35391echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35392if eval "test \"\${$as_ac_Header+set}\" = set"; then
35393 echo $ECHO_N "(cached) $ECHO_C" >&6
35394fi
35395echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35396echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35397else
35398 # Is the header compilable?
35399echo "$as_me:$LINENO: checking $ac_header usability" >&5
35400echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
35401cat >conftest.$ac_ext <<_ACEOF
35402/* confdefs.h. */
35403_ACEOF
35404cat confdefs.h >>conftest.$ac_ext
35405cat >>conftest.$ac_ext <<_ACEOF
35406/* end confdefs.h. */
35407$ac_includes_default
35408#include <$ac_header>
35409_ACEOF
35410rm -f conftest.$ac_objext
35411if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 35412 (eval $ac_compile) 2>conftest.er1
a848cd7e 35413 ac_status=$?
ac1cb8d3
VS
35414 grep -v '^ *+' conftest.er1 >conftest.err
35415 rm -f conftest.er1
35416 cat conftest.err >&5
a848cd7e
SC
35417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35418 (exit $ac_status); } &&
89be85c2
VS
35419 { ac_try='test -z "$ac_c_werror_flag"
35420 || test ! -s conftest.err'
ac1cb8d3
VS
35421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35422 (eval $ac_try) 2>&5
35423 ac_status=$?
35424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35425 (exit $ac_status); }; } &&
35426 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
35427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35428 (eval $ac_try) 2>&5
35429 ac_status=$?
35430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35431 (exit $ac_status); }; }; then
35432 ac_header_compiler=yes
35433else
35434 echo "$as_me: failed program was:" >&5
35435sed 's/^/| /' conftest.$ac_ext >&5
35436
35437ac_header_compiler=no
35438fi
ac1cb8d3 35439rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
35440echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
35441echo "${ECHO_T}$ac_header_compiler" >&6
35442
35443# Is the header present?
35444echo "$as_me:$LINENO: checking $ac_header presence" >&5
35445echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
35446cat >conftest.$ac_ext <<_ACEOF
35447/* confdefs.h. */
35448_ACEOF
35449cat confdefs.h >>conftest.$ac_ext
35450cat >>conftest.$ac_ext <<_ACEOF
35451/* end confdefs.h. */
35452#include <$ac_header>
35453_ACEOF
35454if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
35455 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
35456 ac_status=$?
35457 grep -v '^ *+' conftest.er1 >conftest.err
35458 rm -f conftest.er1
35459 cat conftest.err >&5
35460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35461 (exit $ac_status); } >/dev/null; then
35462 if test -s conftest.err; then
35463 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 35464 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
35465 else
35466 ac_cpp_err=
35467 fi
35468else
35469 ac_cpp_err=yes
35470fi
35471if test -z "$ac_cpp_err"; then
35472 ac_header_preproc=yes
35473else
35474 echo "$as_me: failed program was:" >&5
35475sed 's/^/| /' conftest.$ac_ext >&5
35476
35477 ac_header_preproc=no
35478fi
35479rm -f conftest.err conftest.$ac_ext
35480echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
35481echo "${ECHO_T}$ac_header_preproc" >&6
35482
35483# So? What about this header?
ac1cb8d3
VS
35484case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
35485 yes:no: )
a848cd7e
SC
35486 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
35487echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
35488 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
35489echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
35490 ac_header_preproc=yes
a848cd7e 35491 ;;
ac1cb8d3 35492 no:yes:* )
a848cd7e
SC
35493 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
35494echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
35495 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
35496echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
35497 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
35498echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
35499 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
35500echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
35501 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
35502echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
35503 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
35504echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
35505 (
35506 cat <<\_ASBOX
ac1cb8d3
VS
35507## ----------------------------------------- ##
35508## Report this to wx-dev@lists.wxwidgets.org ##
35509## ----------------------------------------- ##
a848cd7e
SC
35510_ASBOX
35511 ) |
35512 sed "s/^/$as_me: WARNING: /" >&2
35513 ;;
35514esac
35515echo "$as_me:$LINENO: checking for $ac_header" >&5
35516echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35517if eval "test \"\${$as_ac_Header+set}\" = set"; then
35518 echo $ECHO_N "(cached) $ECHO_C" >&6
35519else
ac1cb8d3 35520 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
35521fi
35522echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35523echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35524
35525fi
35526if test `eval echo '${'$as_ac_Header'}'` = yes; then
35527 cat >>confdefs.h <<_ACEOF
35528#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
35529_ACEOF
35530
35531fi
35532
35533done
35534
35535
35536 if test "$wxUSE_LIBSDL" != "no"; then
35537
35538# Check whether --with-sdl-prefix or --without-sdl-prefix was given.
35539if test "${with_sdl_prefix+set}" = set; then
35540 withval="$with_sdl_prefix"
35541 sdl_prefix="$withval"
35542else
35543 sdl_prefix=""
35544fi;
35545
35546# Check whether --with-sdl-exec-prefix or --without-sdl-exec-prefix was given.
35547if test "${with_sdl_exec_prefix+set}" = set; then
35548 withval="$with_sdl_exec_prefix"
35549 sdl_exec_prefix="$withval"
35550else
35551 sdl_exec_prefix=""
35552fi;
35553# Check whether --enable-sdltest or --disable-sdltest was given.
35554if test "${enable_sdltest+set}" = set; then
35555 enableval="$enable_sdltest"
35556
35557else
35558 enable_sdltest=yes
35559fi;
35560
35561 if test x$sdl_exec_prefix != x ; then
35562 sdl_args="$sdl_args --exec-prefix=$sdl_exec_prefix"
35563 if test x${SDL_CONFIG+set} != xset ; then
35564 SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config
35565 fi
35566 fi
35567 if test x$sdl_prefix != x ; then
35568 sdl_args="$sdl_args --prefix=$sdl_prefix"
35569 if test x${SDL_CONFIG+set} != xset ; then
35570 SDL_CONFIG=$sdl_prefix/bin/sdl-config
35571 fi
35572 fi
35573
35574
35575 PATH="$prefix/bin:$prefix/usr/bin:$PATH"
35576 # Extract the first word of "sdl-config", so it can be a program name with args.
35577set dummy sdl-config; ac_word=$2
35578echo "$as_me:$LINENO: checking for $ac_word" >&5
35579echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
35580if test "${ac_cv_path_SDL_CONFIG+set}" = set; then
35581 echo $ECHO_N "(cached) $ECHO_C" >&6
35582else
35583 case $SDL_CONFIG in
35584 [\\/]* | ?:[\\/]*)
35585 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
35586 ;;
35587 *)
35588 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35589for as_dir in $PATH
35590do
35591 IFS=$as_save_IFS
35592 test -z "$as_dir" && as_dir=.
35593 for ac_exec_ext in '' $ac_executable_extensions; do
35594 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
35595 ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
35596 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
35597 break 2
35598 fi
35599done
35600done
35601
35602 test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
35603 ;;
35604esac
35605fi
35606SDL_CONFIG=$ac_cv_path_SDL_CONFIG
35607
35608if test -n "$SDL_CONFIG"; then
35609 echo "$as_me:$LINENO: result: $SDL_CONFIG" >&5
35610echo "${ECHO_T}$SDL_CONFIG" >&6
35611else
35612 echo "$as_me:$LINENO: result: no" >&5
35613echo "${ECHO_T}no" >&6
35614fi
35615
35616 min_sdl_version=1.2.0
35617 echo "$as_me:$LINENO: checking for SDL - version >= $min_sdl_version" >&5
35618echo $ECHO_N "checking for SDL - version >= $min_sdl_version... $ECHO_C" >&6
35619 no_sdl=""
35620 if test "$SDL_CONFIG" = "no" ; then
35621 no_sdl=yes
35622 else
35623 SDL_CFLAGS=`$SDL_CONFIG $sdlconf_args --cflags`
35624 SDL_LIBS=`$SDL_CONFIG $sdlconf_args --libs`
35625
35626 sdl_major_version=`$SDL_CONFIG $sdl_args --version | \
35627 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
35628 sdl_minor_version=`$SDL_CONFIG $sdl_args --version | \
35629 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
35630 sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
35631 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
35632 if test "x$enable_sdltest" = "xyes" ; then
35633 ac_save_CFLAGS="$CFLAGS"
94acd38e 35634 ac_save_CXXFLAGS="$CXXFLAGS"
a848cd7e
SC
35635 ac_save_LIBS="$LIBS"
35636 CFLAGS="$CFLAGS $SDL_CFLAGS"
94acd38e 35637 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
a848cd7e
SC
35638 LIBS="$LIBS $SDL_LIBS"
35639 rm -f conf.sdltest
35640 if test "$cross_compiling" = yes; then
35641 echo $ac_n "cross compiling; assumed OK... $ac_c"
35642else
35643 cat >conftest.$ac_ext <<_ACEOF
35644/* confdefs.h. */
35645_ACEOF
35646cat confdefs.h >>conftest.$ac_ext
35647cat >>conftest.$ac_ext <<_ACEOF
35648/* end confdefs.h. */
35649
35650#include <stdio.h>
35651#include <stdlib.h>
35652#include <string.h>
35653#include "SDL.h"
35654
35655char*
35656my_strdup (char *str)
35657{
35658 char *new_str;
35659
35660 if (str)
35661 {
35662 new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
35663 strcpy (new_str, str);
35664 }
35665 else
35666 new_str = NULL;
35667
35668 return new_str;
35669}
35670
35671int main (int argc, char *argv[])
35672{
35673 int major, minor, micro;
35674 char *tmp_version;
35675
35676 /* This hangs on some systems (?)
35677 system ("touch conf.sdltest");
35678 */
35679 { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
35680
35681 /* HP/UX 9 (%@#!) writes to sscanf strings */
35682 tmp_version = my_strdup("$min_sdl_version");
35683 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
35684 printf("%s, bad version string\n", "$min_sdl_version");
35685 exit(1);
35686 }
35687
35688 if (($sdl_major_version > major) ||
35689 (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
35690 (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
35691 {
35692 return 0;
35693 }
35694 else
35695 {
35696 printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
35697 printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
35698 printf("*** best to upgrade to the required version.\n");
35699 printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
35700 printf("*** to point to the correct copy of sdl-config, and remove the file\n");
35701 printf("*** config.cache before re-running configure\n");
35702 return 1;
35703 }
35704}
35705
35706
35707_ACEOF
35708rm -f conftest$ac_exeext
35709if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35710 (eval $ac_link) 2>&5
35711 ac_status=$?
35712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35713 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
35714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35715 (eval $ac_try) 2>&5
35716 ac_status=$?
35717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35718 (exit $ac_status); }; }; then
35719 :
35720else
35721 echo "$as_me: program exited with status $ac_status" >&5
35722echo "$as_me: failed program was:" >&5
35723sed 's/^/| /' conftest.$ac_ext >&5
35724
35725( exit $ac_status )
35726no_sdl=yes
35727fi
ac1cb8d3 35728rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
35729fi
35730 CFLAGS="$ac_save_CFLAGS"
94acd38e 35731 CXXFLAGS="$ac_save_CXXFLAGS"
a848cd7e
SC
35732 LIBS="$ac_save_LIBS"
35733 fi
35734 fi
35735 if test "x$no_sdl" = x ; then
35736 echo "$as_me:$LINENO: result: yes" >&5
35737echo "${ECHO_T}yes" >&6
35738
35739 EXTRALIBS_SDL="$SDL_LIBS"
35740 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
35741 cat >>confdefs.h <<\_ACEOF
35742#define wxUSE_LIBSDL 1
35743_ACEOF
35744
35745
35746 else
35747 echo "$as_me:$LINENO: result: no" >&5
35748echo "${ECHO_T}no" >&6
35749 if test "$SDL_CONFIG" = "no" ; then
35750 echo "*** The sdl-config script installed by SDL could not be found"
35751 echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
35752 echo "*** your path, or set the SDL_CONFIG environment variable to the"
35753 echo "*** full path to sdl-config."
35754 else
35755 if test -f conf.sdltest ; then
35756 :
35757 else
35758 echo "*** Could not run SDL test program, checking why..."
35759 CFLAGS="$CFLAGS $SDL_CFLAGS"
94acd38e 35760 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
a848cd7e
SC
35761 LIBS="$LIBS $SDL_LIBS"
35762 cat >conftest.$ac_ext <<_ACEOF
35763/* confdefs.h. */
35764_ACEOF
35765cat confdefs.h >>conftest.$ac_ext
35766cat >>conftest.$ac_ext <<_ACEOF
35767/* end confdefs.h. */
35768
35769#include <stdio.h>
35770#include "SDL.h"
35771
35772int main(int argc, char *argv[])
35773{ return 0; }
35774#undef main
35775#define main K_and_R_C_main
35776
35777int
35778main ()
35779{
35780 return 0;
35781 ;
35782 return 0;
35783}
35784_ACEOF
35785rm -f conftest.$ac_objext conftest$ac_exeext
35786if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35787 (eval $ac_link) 2>conftest.er1
a848cd7e 35788 ac_status=$?
ac1cb8d3
VS
35789 grep -v '^ *+' conftest.er1 >conftest.err
35790 rm -f conftest.er1
35791 cat conftest.err >&5
a848cd7e
SC
35792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35793 (exit $ac_status); } &&
89be85c2
VS
35794 { ac_try='test -z "$ac_c_werror_flag"
35795 || test ! -s conftest.err'
ac1cb8d3
VS
35796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35797 (eval $ac_try) 2>&5
35798 ac_status=$?
35799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35800 (exit $ac_status); }; } &&
35801 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35803 (eval $ac_try) 2>&5
35804 ac_status=$?
35805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35806 (exit $ac_status); }; }; then
35807 echo "*** The test program compiled, but did not run. This usually means"
35808 echo "*** that the run-time linker is not finding SDL or finding the wrong"
35809 echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
35810 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
35811 echo "*** to the installed location Also, make sure you have run ldconfig if that"
35812 echo "*** is required on your system"
35813 echo "***"
35814 echo "*** If you have an old version installed, it is best to remove it, although"
35815 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
35816else
35817 echo "$as_me: failed program was:" >&5
35818sed 's/^/| /' conftest.$ac_ext >&5
35819
35820 echo "*** The test program failed to compile or link. See the file config.log for the"
35821 echo "*** exact error that occured. This usually means SDL was incorrectly installed"
35822 echo "*** or that you have moved SDL since it was installed. In the latter case, you"
35823 echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
35824fi
ac1cb8d3
VS
35825rm -f conftest.err conftest.$ac_objext \
35826 conftest$ac_exeext conftest.$ac_ext
a848cd7e 35827 CFLAGS="$ac_save_CFLAGS"
94acd38e 35828 CXXFLAGS="$ac_save_CXXFLAGS"
a848cd7e
SC
35829 LIBS="$ac_save_LIBS"
35830 fi
35831 fi
35832 SDL_CFLAGS=""
35833 SDL_LIBS=""
35834 wxUSE_LIBSDL="no"
35835 fi
35836
35837
35838 rm -f conf.sdltest
35839
35840 if test "$wxUSE_LIBSDL" = "yes" -a "$wxUSE_PLUGINS" = "yes" ; then
35841 WITH_PLUGIN_SDL=1
35842 fi
35843 fi
35844 fi
35845
35846 cat >>confdefs.h <<\_ACEOF
35847#define wxUSE_SOUND 1
35848_ACEOF
35849
35850 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sound"
35851fi
35852
d1c38808
VZ
35853if test "$WXGTK20" = 1; then
35854 if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
35855 if test "$wxUSE_LIBGNOMEPRINT" = "yes" ; then
35856
35857
35858 succeeded=no
35859
35860 if test -z "$PKG_CONFIG"; then
35861 # Extract the first word of "pkg-config", so it can be a program name with args.
35862set dummy pkg-config; ac_word=$2
35863echo "$as_me:$LINENO: checking for $ac_word" >&5
35864echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
35865if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
35866 echo $ECHO_N "(cached) $ECHO_C" >&6
35867else
35868 case $PKG_CONFIG in
35869 [\\/]* | ?:[\\/]*)
35870 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
35871 ;;
35872 *)
35873 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35874for as_dir in $PATH
35875do
35876 IFS=$as_save_IFS
35877 test -z "$as_dir" && as_dir=.
35878 for ac_exec_ext in '' $ac_executable_extensions; do
35879 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
35880 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
35881 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
35882 break 2
35883 fi
35884done
35885done
35886
35887 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
35888 ;;
35889esac
35890fi
35891PKG_CONFIG=$ac_cv_path_PKG_CONFIG
35892
35893if test -n "$PKG_CONFIG"; then
35894 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
35895echo "${ECHO_T}$PKG_CONFIG" >&6
35896else
35897 echo "$as_me:$LINENO: result: no" >&5
35898echo "${ECHO_T}no" >&6
35899fi
35900
35901 fi
35902
35903 if test "$PKG_CONFIG" = "no" ; then
35904 echo "*** The pkg-config script could not be found. Make sure it is"
35905 echo "*** in your path, or set the PKG_CONFIG environment variable"
35906 echo "*** to the full path to pkg-config."
35907 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
35908 else
35909 PKG_CONFIG_MIN_VERSION=0.9.0
35910 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
ffa762ff
VS
35911 echo "$as_me:$LINENO: checking for libgnomeprintui-2.2 >= 2.8" >&5
35912echo $ECHO_N "checking for libgnomeprintui-2.2 >= 2.8... $ECHO_C" >&6
d1c38808 35913
ffa762ff 35914 if $PKG_CONFIG --exists "libgnomeprintui-2.2 >= 2.8" ; then
d1c38808
VZ
35915 echo "$as_me:$LINENO: result: yes" >&5
35916echo "${ECHO_T}yes" >&6
35917 succeeded=yes
35918
35919 echo "$as_me:$LINENO: checking LIBGNOMEPRINTUI_CFLAGS" >&5
35920echo $ECHO_N "checking LIBGNOMEPRINTUI_CFLAGS... $ECHO_C" >&6
ffa762ff 35921 LIBGNOMEPRINTUI_CFLAGS=`$PKG_CONFIG --cflags "libgnomeprintui-2.2 >= 2.8"`
d1c38808
VZ
35922 echo "$as_me:$LINENO: result: $LIBGNOMEPRINTUI_CFLAGS" >&5
35923echo "${ECHO_T}$LIBGNOMEPRINTUI_CFLAGS" >&6
35924
35925 echo "$as_me:$LINENO: checking LIBGNOMEPRINTUI_LIBS" >&5
35926echo $ECHO_N "checking LIBGNOMEPRINTUI_LIBS... $ECHO_C" >&6
ffa762ff 35927 LIBGNOMEPRINTUI_LIBS=`$PKG_CONFIG --libs "libgnomeprintui-2.2 >= 2.8"`
d1c38808
VZ
35928 echo "$as_me:$LINENO: result: $LIBGNOMEPRINTUI_LIBS" >&5
35929echo "${ECHO_T}$LIBGNOMEPRINTUI_LIBS" >&6
35930 else
35931 LIBGNOMEPRINTUI_CFLAGS=""
35932 LIBGNOMEPRINTUI_LIBS=""
35933 ## If we have a custom action on failure, don't print errors, but
35934 ## do set a variable so people can do so.
ffa762ff 35935 LIBGNOMEPRINTUI_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libgnomeprintui-2.2 >= 2.8"`
d1c38808
VZ
35936
35937 fi
35938
35939
35940
35941 else
35942 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
35943 echo "*** See http://www.freedesktop.org/software/pkgconfig"
35944 fi
35945 fi
35946
35947 if test $succeeded = yes; then
35948
d1c38808
VZ
35949 CXXFLAGS="$CXXFLAGS $LIBGNOMEPRINTUI_CFLAGS"
35950 cat >>confdefs.h <<\_ACEOF
35951#define wxUSE_LIBGNOMEPRINT 1
35952_ACEOF
35953
35954
35955 else
35956
35957 { echo "$as_me:$LINENO: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&5
35958echo "$as_me: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&2;}
35959 wxUSE_LIBGNOMEPRINT="no"
35960
35961
35962 fi
35963
35964 fi
35965 fi
35966fi
35967
35968
a848cd7e
SC
35969if test "$wxUSE_CMDLINE_PARSER" = "yes"; then
35970 cat >>confdefs.h <<\_ACEOF
35971#define wxUSE_CMDLINE_PARSER 1
35972_ACEOF
35973
35974fi
35975
35976if test "$wxUSE_STOPWATCH" = "yes"; then
35977 cat >>confdefs.h <<\_ACEOF
35978#define wxUSE_STOPWATCH 1
35979_ACEOF
35980
35981fi
35982
35983if test "$wxUSE_DATETIME" = "yes"; then
35984 cat >>confdefs.h <<\_ACEOF
35985#define wxUSE_DATETIME 1
35986_ACEOF
35987
35988fi
35989
35990if test "$wxUSE_FILE" = "yes"; then
35991 cat >>confdefs.h <<\_ACEOF
35992#define wxUSE_FILE 1
35993_ACEOF
35994
35995fi
35996
35997if test "$wxUSE_FFILE" = "yes"; then
35998 cat >>confdefs.h <<\_ACEOF
35999#define wxUSE_FFILE 1
36000_ACEOF
36001
36002fi
36003
36004if test "$wxUSE_FILESYSTEM" = "yes"; then
36005 cat >>confdefs.h <<\_ACEOF
36006#define wxUSE_FILESYSTEM 1
36007_ACEOF
36008
36009fi
36010
36011if test "$wxUSE_FS_ZIP" = "yes"; then
36012 cat >>confdefs.h <<\_ACEOF
36013#define wxUSE_FS_ZIP 1
36014_ACEOF
36015
36016fi
36017
9e8e867f 36018if test "$wxUSE_ARCHIVE_STREAMS" = "yes"; then
a848cd7e 36019 cat >>confdefs.h <<\_ACEOF
9e8e867f 36020#define wxUSE_ARCHIVE_STREAMS 1
81f90336
MW
36021_ACEOF
36022
36023fi
36024
36025if test "$wxUSE_ZIPSTREAM" = "yes"; then
9e8e867f 36026 if test "$wxUSE_ARCHIVE_STREAMS" != "yes"; then
81f90336
MW
36027 { echo "$as_me:$LINENO: WARNING: wxZip requires wxArchive... disabled" >&5
36028echo "$as_me: WARNING: wxZip requires wxArchive... disabled" >&2;}
36029 elif test "$wxUSE_ZLIB" = "no"; then
36030 { echo "$as_me:$LINENO: WARNING: wxZip requires wxZlib... disabled" >&5
36031echo "$as_me: WARNING: wxZip requires wxZlib... disabled" >&2;}
36032 else
36033 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
36034#define wxUSE_ZIPSTREAM 1
36035_ACEOF
36036
81f90336 36037 fi
a848cd7e
SC
36038fi
36039
a848cd7e
SC
36040if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
36041 cat >>confdefs.h <<\_ACEOF
36042#define wxUSE_ON_FATAL_EXCEPTION 1
36043_ACEOF
36044
36045fi
36046
eaff0f0d
VZ
36047if test "$wxUSE_STACKWALKER" = "yes"; then
36048 cat >>confdefs.h <<\_ACEOF
36049#define wxUSE_STACKWALKER 1
36050_ACEOF
36051
36052fi
36053
a848cd7e
SC
36054if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
36055 cat >>confdefs.h <<\_ACEOF
36056#define wxUSE_SNGLINST_CHECKER 1
36057_ACEOF
36058
36059fi
36060
36061if test "$wxUSE_BUSYINFO" = "yes"; then
36062 cat >>confdefs.h <<\_ACEOF
36063#define wxUSE_BUSYINFO 1
36064_ACEOF
36065
36066fi
36067
36068if test "$wxUSE_STD_IOSTREAM" = "yes"; then
36069 cat >>confdefs.h <<\_ACEOF
36070#define wxUSE_STD_IOSTREAM 1
36071_ACEOF
36072
36073fi
36074
36075if test "$wxUSE_TEXTBUFFER" = "yes"; then
36076 cat >>confdefs.h <<\_ACEOF
36077#define wxUSE_TEXTBUFFER 1
36078_ACEOF
36079
36080fi
36081
36082if test "$wxUSE_TEXTFILE" = "yes"; then
36083 if test "$wxUSE_FILE" != "yes" -o "$wxUSE_TEXTBUFFER" != "yes" ; then
36084 { echo "$as_me:$LINENO: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&5
36085echo "$as_me: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&2;}
36086 else
36087 cat >>confdefs.h <<\_ACEOF
36088#define wxUSE_TEXTFILE 1
36089_ACEOF
36090
36091 fi
36092fi
36093
36094if test "$wxUSE_CONFIG" = "yes" ; then
36095 if test "$wxUSE_TEXTFILE" != "yes"; then
36096 { echo "$as_me:$LINENO: WARNING: wxConfig requires wxTextFile... disabled" >&5
36097echo "$as_me: WARNING: wxConfig requires wxTextFile... disabled" >&2;}
36098 else
36099 cat >>confdefs.h <<\_ACEOF
36100#define wxUSE_CONFIG 1
89be85c2
VS
36101_ACEOF
36102
36103 cat >>confdefs.h <<\_ACEOF
36104#define wxUSE_CONFIG_NATIVE 1
a848cd7e
SC
36105_ACEOF
36106
36107 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config"
36108 fi
36109fi
36110
36111if test "$wxUSE_INTL" = "yes" ; then
36112 if test "$wxUSE_FILE" != "yes"; then
36113 { echo "$as_me:$LINENO: WARNING: I18n code requires wxFile... disabled" >&5
36114echo "$as_me: WARNING: I18n code requires wxFile... disabled" >&2;}
36115 else
36116 cat >>confdefs.h <<\_ACEOF
36117#define wxUSE_INTL 1
36118_ACEOF
36119
36120 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat"
36121 GUIDIST="$GUIDIST INTL_DIST"
36122 fi
36123fi
36124
36125if test "$wxUSE_LOG" = "yes"; then
36126 cat >>confdefs.h <<\_ACEOF
36127#define wxUSE_LOG 1
36128_ACEOF
36129
36130
36131 if test "$wxUSE_LOGGUI" = "yes"; then
36132 cat >>confdefs.h <<\_ACEOF
36133#define wxUSE_LOGGUI 1
36134_ACEOF
36135
36136 fi
36137
36138 if test "$wxUSE_LOGWINDOW" = "yes"; then
36139 cat >>confdefs.h <<\_ACEOF
36140#define wxUSE_LOGWINDOW 1
36141_ACEOF
36142
36143 fi
36144
36145 if test "$wxUSE_LOGDIALOG" = "yes"; then
36146 cat >>confdefs.h <<\_ACEOF
36147#define wxUSE_LOG_DIALOG 1
36148_ACEOF
36149
36150 fi
36151fi
36152
36153if test "$wxUSE_LONGLONG" = "yes"; then
36154 cat >>confdefs.h <<\_ACEOF
36155#define wxUSE_LONGLONG 1
36156_ACEOF
36157
36158fi
36159
36160if test "$wxUSE_GEOMETRY" = "yes"; then
36161 cat >>confdefs.h <<\_ACEOF
36162#define wxUSE_GEOMETRY 1
36163_ACEOF
36164
36165fi
36166
a848cd7e
SC
36167if test "$wxUSE_STREAMS" = "yes" ; then
36168 cat >>confdefs.h <<\_ACEOF
36169#define wxUSE_STREAMS 1
36170_ACEOF
36171
36172fi
36173
36174
36175if test "$wxUSE_DATETIME" = "yes"; then
36176
36177for ac_func in strptime
36178do
36179as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36180echo "$as_me:$LINENO: checking for $ac_func" >&5
36181echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36182if eval "test \"\${$as_ac_var+set}\" = set"; then
36183 echo $ECHO_N "(cached) $ECHO_C" >&6
36184else
36185 cat >conftest.$ac_ext <<_ACEOF
36186/* confdefs.h. */
36187_ACEOF
36188cat confdefs.h >>conftest.$ac_ext
36189cat >>conftest.$ac_ext <<_ACEOF
36190/* end confdefs.h. */
ac1cb8d3
VS
36191/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36192 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36193#define $ac_func innocuous_$ac_func
36194
a848cd7e
SC
36195/* System header to define __stub macros and hopefully few prototypes,
36196 which can conflict with char $ac_func (); below.
36197 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36198 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 36199
a848cd7e
SC
36200#ifdef __STDC__
36201# include <limits.h>
36202#else
36203# include <assert.h>
36204#endif
ac1cb8d3
VS
36205
36206#undef $ac_func
36207
a848cd7e
SC
36208/* Override any gcc2 internal prototype to avoid an error. */
36209#ifdef __cplusplus
36210extern "C"
36211{
36212#endif
36213/* We use char because int might match the return type of a gcc2
36214 builtin and then its argument prototype would still apply. */
36215char $ac_func ();
36216/* The GNU C library defines this for functions which it implements
36217 to always fail with ENOSYS. Some functions are actually named
36218 something starting with __ and the normal name is an alias. */
36219#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36220choke me
36221#else
36222char (*f) () = $ac_func;
36223#endif
36224#ifdef __cplusplus
36225}
36226#endif
36227
36228int
36229main ()
36230{
36231return f != $ac_func;
36232 ;
36233 return 0;
36234}
36235_ACEOF
36236rm -f conftest.$ac_objext conftest$ac_exeext
36237if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36238 (eval $ac_link) 2>conftest.er1
a848cd7e 36239 ac_status=$?
ac1cb8d3
VS
36240 grep -v '^ *+' conftest.er1 >conftest.err
36241 rm -f conftest.er1
36242 cat conftest.err >&5
a848cd7e
SC
36243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36244 (exit $ac_status); } &&
89be85c2
VS
36245 { ac_try='test -z "$ac_c_werror_flag"
36246 || test ! -s conftest.err'
ac1cb8d3
VS
36247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36248 (eval $ac_try) 2>&5
36249 ac_status=$?
36250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36251 (exit $ac_status); }; } &&
36252 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36254 (eval $ac_try) 2>&5
36255 ac_status=$?
36256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36257 (exit $ac_status); }; }; then
36258 eval "$as_ac_var=yes"
36259else
36260 echo "$as_me: failed program was:" >&5
36261sed 's/^/| /' conftest.$ac_ext >&5
36262
36263eval "$as_ac_var=no"
36264fi
ac1cb8d3
VS
36265rm -f conftest.err conftest.$ac_objext \
36266 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36267fi
36268echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36269echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36270if test `eval echo '${'$as_ac_var'}'` = yes; then
36271 cat >>confdefs.h <<_ACEOF
36272#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36273_ACEOF
36274
36275fi
36276done
36277
36278
36279 echo "$as_me:$LINENO: checking for timezone variable in <time.h>" >&5
36280echo $ECHO_N "checking for timezone variable in <time.h>... $ECHO_C" >&6
36281if test "${wx_cv_var_timezone+set}" = set; then
36282 echo $ECHO_N "(cached) $ECHO_C" >&6
36283else
36284
36285 cat >conftest.$ac_ext <<_ACEOF
36286/* confdefs.h. */
36287_ACEOF
36288cat confdefs.h >>conftest.$ac_ext
36289cat >>conftest.$ac_ext <<_ACEOF
36290/* end confdefs.h. */
36291
36292 #include <time.h>
36293
36294int
36295main ()
36296{
36297
36298 int tz;
36299 tz = timezone;
36300
36301 ;
36302 return 0;
36303}
36304_ACEOF
36305rm -f conftest.$ac_objext
36306if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 36307 (eval $ac_compile) 2>conftest.er1
a848cd7e 36308 ac_status=$?
ac1cb8d3
VS
36309 grep -v '^ *+' conftest.er1 >conftest.err
36310 rm -f conftest.er1
36311 cat conftest.err >&5
a848cd7e
SC
36312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36313 (exit $ac_status); } &&
89be85c2
VS
36314 { ac_try='test -z "$ac_c_werror_flag"
36315 || test ! -s conftest.err'
ac1cb8d3
VS
36316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36317 (eval $ac_try) 2>&5
36318 ac_status=$?
36319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36320 (exit $ac_status); }; } &&
36321 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
36322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36323 (eval $ac_try) 2>&5
36324 ac_status=$?
36325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36326 (exit $ac_status); }; }; then
36327
36328 wx_cv_var_timezone=timezone
36329
36330else
36331 echo "$as_me: failed program was:" >&5
36332sed 's/^/| /' conftest.$ac_ext >&5
36333
36334
36335 cat >conftest.$ac_ext <<_ACEOF
36336/* confdefs.h. */
36337_ACEOF
36338cat confdefs.h >>conftest.$ac_ext
36339cat >>conftest.$ac_ext <<_ACEOF
36340/* end confdefs.h. */
36341
36342 #include <time.h>
36343
36344int
36345main ()
36346{
36347
36348 int tz;
36349 tz = _timezone;
36350
36351 ;
36352 return 0;
36353}
36354_ACEOF
36355rm -f conftest.$ac_objext
36356if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 36357 (eval $ac_compile) 2>conftest.er1
a848cd7e 36358 ac_status=$?
ac1cb8d3
VS
36359 grep -v '^ *+' conftest.er1 >conftest.err
36360 rm -f conftest.er1
36361 cat conftest.err >&5
a848cd7e
SC
36362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36363 (exit $ac_status); } &&
89be85c2
VS
36364 { ac_try='test -z "$ac_c_werror_flag"
36365 || test ! -s conftest.err'
ac1cb8d3
VS
36366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36367 (eval $ac_try) 2>&5
36368 ac_status=$?
36369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36370 (exit $ac_status); }; } &&
36371 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
36372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36373 (eval $ac_try) 2>&5
36374 ac_status=$?
36375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36376 (exit $ac_status); }; }; then
36377
36378 wx_cv_var_timezone=_timezone
36379
36380else
36381 echo "$as_me: failed program was:" >&5
36382sed 's/^/| /' conftest.$ac_ext >&5
36383
36384
36385 cat >conftest.$ac_ext <<_ACEOF
36386/* confdefs.h. */
36387_ACEOF
36388cat confdefs.h >>conftest.$ac_ext
36389cat >>conftest.$ac_ext <<_ACEOF
36390/* end confdefs.h. */
36391
36392 #include <time.h>
36393
36394int
36395main ()
36396{
36397
36398 int tz;
36399 tz = __timezone;
36400
36401 ;
36402 return 0;
36403}
36404_ACEOF
36405rm -f conftest.$ac_objext
36406if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 36407 (eval $ac_compile) 2>conftest.er1
a848cd7e 36408 ac_status=$?
ac1cb8d3
VS
36409 grep -v '^ *+' conftest.er1 >conftest.err
36410 rm -f conftest.er1
36411 cat conftest.err >&5
a848cd7e
SC
36412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36413 (exit $ac_status); } &&
89be85c2
VS
36414 { ac_try='test -z "$ac_c_werror_flag"
36415 || test ! -s conftest.err'
ac1cb8d3
VS
36416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36417 (eval $ac_try) 2>&5
36418 ac_status=$?
36419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36420 (exit $ac_status); }; } &&
36421 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
36422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36423 (eval $ac_try) 2>&5
36424 ac_status=$?
36425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36426 (exit $ac_status); }; }; then
36427
36428 wx_cv_var_timezone=__timezone
36429
36430else
36431 echo "$as_me: failed program was:" >&5
36432sed 's/^/| /' conftest.$ac_ext >&5
36433
36434
36435 if test "$USE_DOS" = 0 ; then
36436 { echo "$as_me:$LINENO: WARNING: no timezone variable" >&5
36437echo "$as_me: WARNING: no timezone variable" >&2;}
36438 fi
36439
36440
36441fi
ac1cb8d3 36442rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
36443
36444
36445fi
ac1cb8d3 36446rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
36447
36448
36449fi
ac1cb8d3 36450rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
36451
36452
36453fi
36454echo "$as_me:$LINENO: result: $wx_cv_var_timezone" >&5
36455echo "${ECHO_T}$wx_cv_var_timezone" >&6
36456
36457 if test "x$wx_cv_var_timezone" != x ; then
36458 cat >>confdefs.h <<_ACEOF
36459#define WX_TIMEZONE $wx_cv_var_timezone
36460_ACEOF
36461
36462 fi
36463
36464
36465for ac_func in localtime
36466do
36467as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36468echo "$as_me:$LINENO: checking for $ac_func" >&5
36469echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36470if eval "test \"\${$as_ac_var+set}\" = set"; then
36471 echo $ECHO_N "(cached) $ECHO_C" >&6
36472else
36473 cat >conftest.$ac_ext <<_ACEOF
36474/* confdefs.h. */
36475_ACEOF
36476cat confdefs.h >>conftest.$ac_ext
36477cat >>conftest.$ac_ext <<_ACEOF
36478/* end confdefs.h. */
ac1cb8d3
VS
36479/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36480 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36481#define $ac_func innocuous_$ac_func
36482
a848cd7e
SC
36483/* System header to define __stub macros and hopefully few prototypes,
36484 which can conflict with char $ac_func (); below.
36485 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36486 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 36487
a848cd7e
SC
36488#ifdef __STDC__
36489# include <limits.h>
36490#else
36491# include <assert.h>
36492#endif
ac1cb8d3
VS
36493
36494#undef $ac_func
36495
a848cd7e
SC
36496/* Override any gcc2 internal prototype to avoid an error. */
36497#ifdef __cplusplus
36498extern "C"
36499{
36500#endif
36501/* We use char because int might match the return type of a gcc2
36502 builtin and then its argument prototype would still apply. */
36503char $ac_func ();
36504/* The GNU C library defines this for functions which it implements
36505 to always fail with ENOSYS. Some functions are actually named
36506 something starting with __ and the normal name is an alias. */
36507#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36508choke me
36509#else
36510char (*f) () = $ac_func;
36511#endif
36512#ifdef __cplusplus
36513}
36514#endif
36515
36516int
36517main ()
36518{
36519return f != $ac_func;
36520 ;
36521 return 0;
36522}
36523_ACEOF
36524rm -f conftest.$ac_objext conftest$ac_exeext
36525if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36526 (eval $ac_link) 2>conftest.er1
a848cd7e 36527 ac_status=$?
ac1cb8d3
VS
36528 grep -v '^ *+' conftest.er1 >conftest.err
36529 rm -f conftest.er1
36530 cat conftest.err >&5
a848cd7e
SC
36531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36532 (exit $ac_status); } &&
89be85c2
VS
36533 { ac_try='test -z "$ac_c_werror_flag"
36534 || test ! -s conftest.err'
ac1cb8d3
VS
36535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36536 (eval $ac_try) 2>&5
36537 ac_status=$?
36538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36539 (exit $ac_status); }; } &&
36540 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36542 (eval $ac_try) 2>&5
36543 ac_status=$?
36544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36545 (exit $ac_status); }; }; then
36546 eval "$as_ac_var=yes"
36547else
36548 echo "$as_me: failed program was:" >&5
36549sed 's/^/| /' conftest.$ac_ext >&5
36550
36551eval "$as_ac_var=no"
36552fi
ac1cb8d3
VS
36553rm -f conftest.err conftest.$ac_objext \
36554 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36555fi
36556echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36557echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36558if test `eval echo '${'$as_ac_var'}'` = yes; then
36559 cat >>confdefs.h <<_ACEOF
36560#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36561_ACEOF
36562
36563fi
36564done
36565
36566
36567 if test "$ac_cv_func_localtime" = "yes"; then
36568 echo "$as_me:$LINENO: checking for tm_gmtoff in struct tm" >&5
36569echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6
36570if test "${wx_cv_struct_tm_has_gmtoff+set}" = set; then
36571 echo $ECHO_N "(cached) $ECHO_C" >&6
36572else
36573
36574 cat >conftest.$ac_ext <<_ACEOF
36575/* confdefs.h. */
36576_ACEOF
36577cat confdefs.h >>conftest.$ac_ext
36578cat >>conftest.$ac_ext <<_ACEOF
36579/* end confdefs.h. */
36580
36581 #include <time.h>
36582
36583int
36584main ()
36585{
36586
36587 struct tm tm;
36588 tm.tm_gmtoff++;
36589
36590 ;
36591 return 0;
36592}
36593_ACEOF
36594rm -f conftest.$ac_objext
36595if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 36596 (eval $ac_compile) 2>conftest.er1
a848cd7e 36597 ac_status=$?
ac1cb8d3
VS
36598 grep -v '^ *+' conftest.er1 >conftest.err
36599 rm -f conftest.er1
36600 cat conftest.err >&5
a848cd7e
SC
36601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36602 (exit $ac_status); } &&
89be85c2
VS
36603 { ac_try='test -z "$ac_c_werror_flag"
36604 || test ! -s conftest.err'
ac1cb8d3
VS
36605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36606 (eval $ac_try) 2>&5
36607 ac_status=$?
36608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36609 (exit $ac_status); }; } &&
36610 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
36611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36612 (eval $ac_try) 2>&5
36613 ac_status=$?
36614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36615 (exit $ac_status); }; }; then
36616
36617 wx_cv_struct_tm_has_gmtoff=yes
36618
36619else
36620 echo "$as_me: failed program was:" >&5
36621sed 's/^/| /' conftest.$ac_ext >&5
36622
36623wx_cv_struct_tm_has_gmtoff=no
36624
36625fi
ac1cb8d3 36626rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
36627
36628fi
36629echo "$as_me:$LINENO: result: $wx_cv_struct_tm_has_gmtoff" >&5
36630echo "${ECHO_T}$wx_cv_struct_tm_has_gmtoff" >&6
36631 fi
36632
36633 if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then
36634 cat >>confdefs.h <<\_ACEOF
36635#define WX_GMTOFF_IN_TM 1
36636_ACEOF
36637
36638 fi
36639
36640
36641
36642for ac_func in gettimeofday ftime
36643do
36644as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36645echo "$as_me:$LINENO: checking for $ac_func" >&5
36646echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36647if eval "test \"\${$as_ac_var+set}\" = set"; then
36648 echo $ECHO_N "(cached) $ECHO_C" >&6
36649else
36650 cat >conftest.$ac_ext <<_ACEOF
36651/* confdefs.h. */
36652_ACEOF
36653cat confdefs.h >>conftest.$ac_ext
36654cat >>conftest.$ac_ext <<_ACEOF
36655/* end confdefs.h. */
ac1cb8d3
VS
36656/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36657 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36658#define $ac_func innocuous_$ac_func
36659
a848cd7e
SC
36660/* System header to define __stub macros and hopefully few prototypes,
36661 which can conflict with char $ac_func (); below.
36662 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36663 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 36664
a848cd7e
SC
36665#ifdef __STDC__
36666# include <limits.h>
36667#else
36668# include <assert.h>
36669#endif
ac1cb8d3
VS
36670
36671#undef $ac_func
36672
a848cd7e
SC
36673/* Override any gcc2 internal prototype to avoid an error. */
36674#ifdef __cplusplus
36675extern "C"
36676{
36677#endif
36678/* We use char because int might match the return type of a gcc2
36679 builtin and then its argument prototype would still apply. */
36680char $ac_func ();
36681/* The GNU C library defines this for functions which it implements
36682 to always fail with ENOSYS. Some functions are actually named
36683 something starting with __ and the normal name is an alias. */
36684#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36685choke me
36686#else
36687char (*f) () = $ac_func;
36688#endif
36689#ifdef __cplusplus
36690}
36691#endif
36692
36693int
36694main ()
36695{
36696return f != $ac_func;
36697 ;
36698 return 0;
36699}
36700_ACEOF
36701rm -f conftest.$ac_objext conftest$ac_exeext
36702if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36703 (eval $ac_link) 2>conftest.er1
a848cd7e 36704 ac_status=$?
ac1cb8d3
VS
36705 grep -v '^ *+' conftest.er1 >conftest.err
36706 rm -f conftest.er1
36707 cat conftest.err >&5
a848cd7e
SC
36708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36709 (exit $ac_status); } &&
89be85c2
VS
36710 { ac_try='test -z "$ac_c_werror_flag"
36711 || test ! -s conftest.err'
ac1cb8d3
VS
36712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36713 (eval $ac_try) 2>&5
36714 ac_status=$?
36715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36716 (exit $ac_status); }; } &&
36717 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36719 (eval $ac_try) 2>&5
36720 ac_status=$?
36721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36722 (exit $ac_status); }; }; then
36723 eval "$as_ac_var=yes"
36724else
36725 echo "$as_me: failed program was:" >&5
36726sed 's/^/| /' conftest.$ac_ext >&5
36727
36728eval "$as_ac_var=no"
36729fi
ac1cb8d3
VS
36730rm -f conftest.err conftest.$ac_objext \
36731 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36732fi
36733echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36734echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36735if test `eval echo '${'$as_ac_var'}'` = yes; then
36736 cat >>confdefs.h <<_ACEOF
36737#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36738_ACEOF
36739 break
36740fi
36741done
36742
36743
36744 if test "$ac_cv_func_gettimeofday" = "yes"; then
36745 echo "$as_me:$LINENO: checking whether gettimeofday takes two arguments" >&5
36746echo $ECHO_N "checking whether gettimeofday takes two arguments... $ECHO_C" >&6
36747if test "${wx_cv_func_gettimeofday_has_2_args+set}" = set; then
36748 echo $ECHO_N "(cached) $ECHO_C" >&6
36749else
36750
36751
36752
36753 ac_ext=cc
36754ac_cpp='$CXXCPP $CPPFLAGS'
36755ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36756ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36757ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
36758
36759
36760 cat >conftest.$ac_ext <<_ACEOF
36761/* confdefs.h. */
36762_ACEOF
36763cat confdefs.h >>conftest.$ac_ext
36764cat >>conftest.$ac_ext <<_ACEOF
36765/* end confdefs.h. */
36766
36767 #include <sys/time.h>
36768 #include <unistd.h>
36769
36770int
36771main ()
36772{
36773
36774 struct timeval tv;
36775 gettimeofday(&tv, NULL);
36776
36777 ;
36778 return 0;
36779}
36780_ACEOF
36781rm -f conftest.$ac_objext
36782if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 36783 (eval $ac_compile) 2>conftest.er1
a848cd7e 36784 ac_status=$?
ac1cb8d3
VS
36785 grep -v '^ *+' conftest.er1 >conftest.err
36786 rm -f conftest.er1
36787 cat conftest.err >&5
a848cd7e
SC
36788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36789 (exit $ac_status); } &&
89be85c2
VS
36790 { ac_try='test -z "$ac_cxx_werror_flag"
36791 || test ! -s conftest.err'
ac1cb8d3
VS
36792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36793 (eval $ac_try) 2>&5
36794 ac_status=$?
36795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36796 (exit $ac_status); }; } &&
36797 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
36798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36799 (eval $ac_try) 2>&5
36800 ac_status=$?
36801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36802 (exit $ac_status); }; }; then
36803 wx_cv_func_gettimeofday_has_2_args=yes
36804else
36805 echo "$as_me: failed program was:" >&5
36806sed 's/^/| /' conftest.$ac_ext >&5
36807
36808cat >conftest.$ac_ext <<_ACEOF
36809/* confdefs.h. */
36810_ACEOF
36811cat confdefs.h >>conftest.$ac_ext
36812cat >>conftest.$ac_ext <<_ACEOF
36813/* end confdefs.h. */
36814
36815 #include <sys/time.h>
36816 #include <unistd.h>
36817
36818int
36819main ()
36820{
36821
36822 struct timeval tv;
36823 gettimeofday(&tv);
36824
36825 ;
36826 return 0;
36827}
36828_ACEOF
36829rm -f conftest.$ac_objext
36830if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 36831 (eval $ac_compile) 2>conftest.er1
a848cd7e 36832 ac_status=$?
ac1cb8d3
VS
36833 grep -v '^ *+' conftest.er1 >conftest.err
36834 rm -f conftest.er1
36835 cat conftest.err >&5
a848cd7e
SC
36836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36837 (exit $ac_status); } &&
89be85c2
VS
36838 { ac_try='test -z "$ac_cxx_werror_flag"
36839 || test ! -s conftest.err'
ac1cb8d3
VS
36840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36841 (eval $ac_try) 2>&5
36842 ac_status=$?
36843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36844 (exit $ac_status); }; } &&
36845 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
36846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36847 (eval $ac_try) 2>&5
36848 ac_status=$?
36849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36850 (exit $ac_status); }; }; then
36851 wx_cv_func_gettimeofday_has_2_args=no
36852else
36853 echo "$as_me: failed program was:" >&5
36854sed 's/^/| /' conftest.$ac_ext >&5
36855
36856
36857 { echo "$as_me:$LINENO: WARNING: failed to determine number of gettimeofday() arguments" >&5
36858echo "$as_me: WARNING: failed to determine number of gettimeofday() arguments" >&2;}
36859 wx_cv_func_gettimeofday_has_2_args=unknown
36860
36861
36862fi
ac1cb8d3 36863rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
36864
36865fi
ac1cb8d3 36866rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
36867 ac_ext=c
36868ac_cpp='$CPP $CPPFLAGS'
36869ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36870ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36871ac_compiler_gnu=$ac_cv_c_compiler_gnu
36872
36873
36874fi
36875echo "$as_me:$LINENO: result: $wx_cv_func_gettimeofday_has_2_args" >&5
36876echo "${ECHO_T}$wx_cv_func_gettimeofday_has_2_args" >&6
36877
36878 if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then
36879 cat >>confdefs.h <<\_ACEOF
36880#define WX_GETTIMEOFDAY_NO_TZ 1
36881_ACEOF
36882
36883 fi
36884 fi
36885
36886 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest"
36887fi
36888
36889
36890if test "$wxUSE_SOCKETS" = "yes"; then
36891 if test "$wxUSE_MGL" = "1"; then
36892 { echo "$as_me:$LINENO: WARNING: wxSocket not yet supported under MGL... disabled" >&5
36893echo "$as_me: WARNING: wxSocket not yet supported under MGL... disabled" >&2;}
36894 wxUSE_SOCKETS="no"
36895 fi
36896fi
36897
36898if test "$wxUSE_SOCKETS" = "yes"; then
36899 if test "$TOOLKIT" != "MSW"; then
36900 echo "$as_me:$LINENO: checking for socket" >&5
36901echo $ECHO_N "checking for socket... $ECHO_C" >&6
36902if test "${ac_cv_func_socket+set}" = set; then
36903 echo $ECHO_N "(cached) $ECHO_C" >&6
36904else
36905 cat >conftest.$ac_ext <<_ACEOF
36906/* confdefs.h. */
36907_ACEOF
36908cat confdefs.h >>conftest.$ac_ext
36909cat >>conftest.$ac_ext <<_ACEOF
36910/* end confdefs.h. */
ac1cb8d3
VS
36911/* Define socket to an innocuous variant, in case <limits.h> declares socket.
36912 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36913#define socket innocuous_socket
36914
a848cd7e
SC
36915/* System header to define __stub macros and hopefully few prototypes,
36916 which can conflict with char socket (); below.
36917 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36918 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 36919
a848cd7e
SC
36920#ifdef __STDC__
36921# include <limits.h>
36922#else
36923# include <assert.h>
36924#endif
ac1cb8d3
VS
36925
36926#undef socket
36927
a848cd7e
SC
36928/* Override any gcc2 internal prototype to avoid an error. */
36929#ifdef __cplusplus
36930extern "C"
36931{
36932#endif
36933/* We use char because int might match the return type of a gcc2
36934 builtin and then its argument prototype would still apply. */
36935char socket ();
36936/* The GNU C library defines this for functions which it implements
36937 to always fail with ENOSYS. Some functions are actually named
36938 something starting with __ and the normal name is an alias. */
36939#if defined (__stub_socket) || defined (__stub___socket)
36940choke me
36941#else
36942char (*f) () = socket;
36943#endif
36944#ifdef __cplusplus
36945}
36946#endif
36947
36948int
36949main ()
36950{
36951return f != socket;
36952 ;
36953 return 0;
36954}
36955_ACEOF
36956rm -f conftest.$ac_objext conftest$ac_exeext
36957if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36958 (eval $ac_link) 2>conftest.er1
a848cd7e 36959 ac_status=$?
ac1cb8d3
VS
36960 grep -v '^ *+' conftest.er1 >conftest.err
36961 rm -f conftest.er1
36962 cat conftest.err >&5
a848cd7e
SC
36963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36964 (exit $ac_status); } &&
89be85c2
VS
36965 { ac_try='test -z "$ac_c_werror_flag"
36966 || test ! -s conftest.err'
ac1cb8d3
VS
36967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36968 (eval $ac_try) 2>&5
36969 ac_status=$?
36970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36971 (exit $ac_status); }; } &&
36972 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36974 (eval $ac_try) 2>&5
36975 ac_status=$?
36976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36977 (exit $ac_status); }; }; then
36978 ac_cv_func_socket=yes
36979else
36980 echo "$as_me: failed program was:" >&5
36981sed 's/^/| /' conftest.$ac_ext >&5
36982
36983ac_cv_func_socket=no
36984fi
ac1cb8d3
VS
36985rm -f conftest.err conftest.$ac_objext \
36986 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36987fi
36988echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
36989echo "${ECHO_T}$ac_cv_func_socket" >&6
36990if test $ac_cv_func_socket = yes; then
36991 :
36992else
36993
36994 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
36995echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
36996if test "${ac_cv_lib_socket_socket+set}" = set; then
36997 echo $ECHO_N "(cached) $ECHO_C" >&6
36998else
36999 ac_check_lib_save_LIBS=$LIBS
37000LIBS="-lsocket $LIBS"
37001cat >conftest.$ac_ext <<_ACEOF
37002/* confdefs.h. */
37003_ACEOF
37004cat confdefs.h >>conftest.$ac_ext
37005cat >>conftest.$ac_ext <<_ACEOF
37006/* end confdefs.h. */
37007
37008/* Override any gcc2 internal prototype to avoid an error. */
37009#ifdef __cplusplus
37010extern "C"
37011#endif
37012/* We use char because int might match the return type of a gcc2
37013 builtin and then its argument prototype would still apply. */
37014char socket ();
37015int
37016main ()
37017{
37018socket ();
37019 ;
37020 return 0;
37021}
37022_ACEOF
37023rm -f conftest.$ac_objext conftest$ac_exeext
37024if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37025 (eval $ac_link) 2>conftest.er1
a848cd7e 37026 ac_status=$?
ac1cb8d3
VS
37027 grep -v '^ *+' conftest.er1 >conftest.err
37028 rm -f conftest.er1
37029 cat conftest.err >&5
a848cd7e
SC
37030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37031 (exit $ac_status); } &&
89be85c2
VS
37032 { ac_try='test -z "$ac_c_werror_flag"
37033 || test ! -s conftest.err'
ac1cb8d3
VS
37034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37035 (eval $ac_try) 2>&5
37036 ac_status=$?
37037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37038 (exit $ac_status); }; } &&
37039 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37041 (eval $ac_try) 2>&5
37042 ac_status=$?
37043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37044 (exit $ac_status); }; }; then
37045 ac_cv_lib_socket_socket=yes
37046else
37047 echo "$as_me: failed program was:" >&5
37048sed 's/^/| /' conftest.$ac_ext >&5
37049
37050ac_cv_lib_socket_socket=no
37051fi
ac1cb8d3
VS
37052rm -f conftest.err conftest.$ac_objext \
37053 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37054LIBS=$ac_check_lib_save_LIBS
37055fi
37056echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
37057echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
37058if test $ac_cv_lib_socket_socket = yes; then
37059 if test "$INET_LINK" != " -lsocket"; then
37060 INET_LINK="$INET_LINK -lsocket"
37061 fi
37062else
37063
37064 { echo "$as_me:$LINENO: WARNING: socket library not found - sockets will be disabled" >&5
37065echo "$as_me: WARNING: socket library not found - sockets will be disabled" >&2;}
37066 wxUSE_SOCKETS=no
37067
37068
37069fi
37070
37071
37072
37073fi
37074
37075 fi
37076fi
37077
37078if test "$wxUSE_SOCKETS" = "yes" ; then
37079 if test "$TOOLKIT" != "MSW"; then
4d4ff94c
VZ
37080 ac_ext=cc
37081ac_cpp='$CXXCPP $CPPFLAGS'
37082ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37083ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37084ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
37085
37086 echo "$as_me:$LINENO: checking what is the type of the third argument of getsockname" >&5
a848cd7e
SC
37087echo $ECHO_N "checking what is the type of the third argument of getsockname... $ECHO_C" >&6
37088if test "${wx_cv_type_getsockname3+set}" = set; then
37089 echo $ECHO_N "(cached) $ECHO_C" >&6
37090else
37091
37092 cat >conftest.$ac_ext <<_ACEOF
37093/* confdefs.h. */
37094_ACEOF
37095cat confdefs.h >>conftest.$ac_ext
37096cat >>conftest.$ac_ext <<_ACEOF
37097/* end confdefs.h. */
37098
37099 #include <sys/types.h>
37100 #include <sys/socket.h>
37101
37102int
37103main ()
37104{
37105
37106 socklen_t len;
37107 getsockname(0, 0, &len);
37108
37109 ;
37110 return 0;
37111}
37112_ACEOF
37113rm -f conftest.$ac_objext
37114if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 37115 (eval $ac_compile) 2>conftest.er1
a848cd7e 37116 ac_status=$?
ac1cb8d3
VS
37117 grep -v '^ *+' conftest.er1 >conftest.err
37118 rm -f conftest.er1
37119 cat conftest.err >&5
a848cd7e
SC
37120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37121 (exit $ac_status); } &&
89be85c2
VS
37122 { ac_try='test -z "$ac_cxx_werror_flag"
37123 || test ! -s conftest.err'
ac1cb8d3
VS
37124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37125 (eval $ac_try) 2>&5
37126 ac_status=$?
37127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37128 (exit $ac_status); }; } &&
37129 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
37130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37131 (eval $ac_try) 2>&5
37132 ac_status=$?
37133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37134 (exit $ac_status); }; }; then
37135 wx_cv_type_getsockname3=socklen_t
37136else
37137 echo "$as_me: failed program was:" >&5
37138sed 's/^/| /' conftest.$ac_ext >&5
37139
37140
37141 CFLAGS_OLD="$CFLAGS"
37142 if test "$GCC" = yes ; then
37143 CFLAGS="$CFLAGS -Werror"
37144 fi
37145
37146 cat >conftest.$ac_ext <<_ACEOF
37147/* confdefs.h. */
37148_ACEOF
37149cat confdefs.h >>conftest.$ac_ext
37150cat >>conftest.$ac_ext <<_ACEOF
37151/* end confdefs.h. */
37152
37153 #include <sys/types.h>
37154 #include <sys/socket.h>
37155
37156int
37157main ()
37158{
37159
37160 size_t len;
37161 getsockname(0, 0, &len);
37162
37163 ;
37164 return 0;
37165}
37166_ACEOF
37167rm -f conftest.$ac_objext
37168if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 37169 (eval $ac_compile) 2>conftest.er1
a848cd7e 37170 ac_status=$?
ac1cb8d3
VS
37171 grep -v '^ *+' conftest.er1 >conftest.err
37172 rm -f conftest.er1
37173 cat conftest.err >&5
a848cd7e
SC
37174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37175 (exit $ac_status); } &&
89be85c2
VS
37176 { ac_try='test -z "$ac_cxx_werror_flag"
37177 || test ! -s conftest.err'
ac1cb8d3
VS
37178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37179 (eval $ac_try) 2>&5
37180 ac_status=$?
37181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37182 (exit $ac_status); }; } &&
37183 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
37184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37185 (eval $ac_try) 2>&5
37186 ac_status=$?
37187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37188 (exit $ac_status); }; }; then
37189 wx_cv_type_getsockname3=size_t
37190else
37191 echo "$as_me: failed program was:" >&5
37192sed 's/^/| /' conftest.$ac_ext >&5
37193
37194cat >conftest.$ac_ext <<_ACEOF
37195/* confdefs.h. */
37196_ACEOF
37197cat confdefs.h >>conftest.$ac_ext
37198cat >>conftest.$ac_ext <<_ACEOF
37199/* end confdefs.h. */
37200
37201 #include <sys/types.h>
37202 #include <sys/socket.h>
37203
37204int
37205main ()
37206{
37207
37208 int len;
37209 getsockname(0, 0, &len);
37210
37211 ;
37212 return 0;
37213}
37214_ACEOF
37215rm -f conftest.$ac_objext
37216if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 37217 (eval $ac_compile) 2>conftest.er1
a848cd7e 37218 ac_status=$?
ac1cb8d3
VS
37219 grep -v '^ *+' conftest.er1 >conftest.err
37220 rm -f conftest.er1
37221 cat conftest.err >&5
a848cd7e
SC
37222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37223 (exit $ac_status); } &&
89be85c2
VS
37224 { ac_try='test -z "$ac_cxx_werror_flag"
37225 || test ! -s conftest.err'
ac1cb8d3
VS
37226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37227 (eval $ac_try) 2>&5
37228 ac_status=$?
37229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37230 (exit $ac_status); }; } &&
37231 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
37232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37233 (eval $ac_try) 2>&5
37234 ac_status=$?
37235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37236 (exit $ac_status); }; }; then
37237 wx_cv_type_getsockname3=int
37238else
37239 echo "$as_me: failed program was:" >&5
37240sed 's/^/| /' conftest.$ac_ext >&5
37241
37242wx_cv_type_getsockname3=unknown
37243
37244fi
ac1cb8d3 37245rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
37246
37247fi
ac1cb8d3 37248rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
37249
37250 CFLAGS="$CFLAGS_OLD"
37251
37252
37253fi
ac1cb8d3 37254rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
37255
37256fi
37257echo "$as_me:$LINENO: result: $wx_cv_type_getsockname3" >&5
37258echo "${ECHO_T}$wx_cv_type_getsockname3" >&6
37259
37260 if test "$wx_cv_type_getsockname3" = "unknown"; then
37261 wxUSE_SOCKETS=no
37262 { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5
37263echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;}
37264 else
37265 cat >>confdefs.h <<_ACEOF
37266#define SOCKLEN_T $wx_cv_type_getsockname3
5b674b9d
DE
37267_ACEOF
37268
37269 fi
37270 echo "$as_me:$LINENO: checking what is the type of the fifth argument of getsockopt" >&5
37271echo $ECHO_N "checking what is the type of the fifth argument of getsockopt... $ECHO_C" >&6
37272if test "${wx_cv_type_getsockopt5+set}" = set; then
37273 echo $ECHO_N "(cached) $ECHO_C" >&6
37274else
37275
37276 cat >conftest.$ac_ext <<_ACEOF
37277/* confdefs.h. */
37278_ACEOF
37279cat confdefs.h >>conftest.$ac_ext
37280cat >>conftest.$ac_ext <<_ACEOF
37281/* end confdefs.h. */
37282
37283 #include <sys/types.h>
37284 #include <sys/socket.h>
37285
37286int
37287main ()
37288{
37289
37290 socklen_t len;
37291 getsockopt(0, 0, 0, 0, &len);
37292
37293 ;
37294 return 0;
37295}
37296_ACEOF
37297rm -f conftest.$ac_objext
37298if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37299 (eval $ac_compile) 2>conftest.er1
37300 ac_status=$?
37301 grep -v '^ *+' conftest.er1 >conftest.err
37302 rm -f conftest.er1
37303 cat conftest.err >&5
37304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37305 (exit $ac_status); } &&
89be85c2
VS
37306 { ac_try='test -z "$ac_cxx_werror_flag"
37307 || test ! -s conftest.err'
5b674b9d
DE
37308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37309 (eval $ac_try) 2>&5
37310 ac_status=$?
37311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37312 (exit $ac_status); }; } &&
37313 { ac_try='test -s conftest.$ac_objext'
37314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37315 (eval $ac_try) 2>&5
37316 ac_status=$?
37317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37318 (exit $ac_status); }; }; then
37319 wx_cv_type_getsockopt5=socklen_t
37320else
37321 echo "$as_me: failed program was:" >&5
37322sed 's/^/| /' conftest.$ac_ext >&5
37323
37324
37325 CFLAGS_OLD="$CFLAGS"
37326 if test "$GCC" = yes ; then
37327 CFLAGS="$CFLAGS -Werror"
37328 fi
37329
37330 cat >conftest.$ac_ext <<_ACEOF
37331/* confdefs.h. */
37332_ACEOF
37333cat confdefs.h >>conftest.$ac_ext
37334cat >>conftest.$ac_ext <<_ACEOF
37335/* end confdefs.h. */
37336
37337 #include <sys/types.h>
37338 #include <sys/socket.h>
37339
37340int
37341main ()
37342{
37343
37344 size_t len;
37345 getsockopt(0, 0, 0, 0, &len);
37346
37347 ;
37348 return 0;
37349}
37350_ACEOF
37351rm -f conftest.$ac_objext
37352if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37353 (eval $ac_compile) 2>conftest.er1
37354 ac_status=$?
37355 grep -v '^ *+' conftest.er1 >conftest.err
37356 rm -f conftest.er1
37357 cat conftest.err >&5
37358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37359 (exit $ac_status); } &&
89be85c2
VS
37360 { ac_try='test -z "$ac_cxx_werror_flag"
37361 || test ! -s conftest.err'
5b674b9d
DE
37362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37363 (eval $ac_try) 2>&5
37364 ac_status=$?
37365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37366 (exit $ac_status); }; } &&
37367 { ac_try='test -s conftest.$ac_objext'
37368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37369 (eval $ac_try) 2>&5
37370 ac_status=$?
37371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37372 (exit $ac_status); }; }; then
37373 wx_cv_type_getsockopt5=size_t
37374else
37375 echo "$as_me: failed program was:" >&5
37376sed 's/^/| /' conftest.$ac_ext >&5
37377
37378cat >conftest.$ac_ext <<_ACEOF
37379/* confdefs.h. */
37380_ACEOF
37381cat confdefs.h >>conftest.$ac_ext
37382cat >>conftest.$ac_ext <<_ACEOF
37383/* end confdefs.h. */
37384
37385 #include <sys/types.h>
37386 #include <sys/socket.h>
37387
37388int
37389main ()
37390{
37391
37392 int len;
37393 getsockopt(0, 0, 0, 0, &len);
37394
37395 ;
37396 return 0;
37397}
37398_ACEOF
37399rm -f conftest.$ac_objext
37400if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37401 (eval $ac_compile) 2>conftest.er1
37402 ac_status=$?
37403 grep -v '^ *+' conftest.er1 >conftest.err
37404 rm -f conftest.er1
37405 cat conftest.err >&5
37406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37407 (exit $ac_status); } &&
89be85c2
VS
37408 { ac_try='test -z "$ac_cxx_werror_flag"
37409 || test ! -s conftest.err'
5b674b9d
DE
37410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37411 (eval $ac_try) 2>&5
37412 ac_status=$?
37413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37414 (exit $ac_status); }; } &&
37415 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
37421 wx_cv_type_getsockopt5=int
37422else
37423 echo "$as_me: failed program was:" >&5
37424sed 's/^/| /' conftest.$ac_ext >&5
37425
37426wx_cv_type_getsockopt5=unknown
37427
37428fi
37429rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37430
37431fi
37432rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37433
37434 CFLAGS="$CFLAGS_OLD"
37435
37436
37437fi
37438rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37439
37440fi
37441echo "$as_me:$LINENO: result: $wx_cv_type_getsockopt5" >&5
37442echo "${ECHO_T}$wx_cv_type_getsockopt5" >&6
37443
37444 if test "$wx_cv_type_getsockopt5" = "unknown"; then
37445 wxUSE_SOCKETS=no
37446 { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5
37447echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;}
37448 else
37449 cat >>confdefs.h <<_ACEOF
37450#define SOCKOPTLEN_T $wx_cv_type_getsockopt5
a848cd7e
SC
37451_ACEOF
37452
37453 fi
4d4ff94c
VZ
37454 ac_ext=c
37455ac_cpp='$CPP $CPPFLAGS'
37456ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37457ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37458ac_compiler_gnu=$ac_cv_c_compiler_gnu
37459
a848cd7e
SC
37460 fi
37461fi
37462
37463if test "$wxUSE_SOCKETS" = "yes" ; then
37464 cat >>confdefs.h <<\_ACEOF
37465#define wxUSE_SOCKETS 1
37466_ACEOF
37467
37468 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets"
37469fi
37470
37471if test "$wxUSE_PROTOCOL" = "yes"; then
37472 if test "$wxUSE_SOCKETS" != "yes"; then
37473 { echo "$as_me:$LINENO: WARNING: Protocol classes require sockets... disabled" >&5
37474echo "$as_me: WARNING: Protocol classes require sockets... disabled" >&2;}
37475 wxUSE_PROTOCOL=no
37476 fi
37477fi
37478
37479if test "$wxUSE_PROTOCOL" = "yes"; then
37480 cat >>confdefs.h <<\_ACEOF
37481#define wxUSE_PROTOCOL 1
37482_ACEOF
37483
37484
37485 if test "$wxUSE_PROTOCOL_HTTP" = "yes"; then
37486 cat >>confdefs.h <<\_ACEOF
37487#define wxUSE_PROTOCOL_HTTP 1
37488_ACEOF
37489
37490 fi
37491 if test "$wxUSE_PROTOCOL_FTP" = "yes"; then
37492 cat >>confdefs.h <<\_ACEOF
37493#define wxUSE_PROTOCOL_FTP 1
37494_ACEOF
37495
37496 fi
37497 if test "$wxUSE_PROTOCOL_FILE" = "yes"; then
37498 cat >>confdefs.h <<\_ACEOF
37499#define wxUSE_PROTOCOL_FILE 1
37500_ACEOF
37501
37502 fi
37503else
37504 if test "$wxUSE_FS_INET" = "yes"; then
37505 { echo "$as_me:$LINENO: WARNING: HTTP filesystem require protocol classes... disabled" >&5
37506echo "$as_me: WARNING: HTTP filesystem require protocol classes... disabled" >&2;}
37507 wxUSE_FS_INET="no"
37508 fi
37509fi
37510
37511if test "$wxUSE_URL" = "yes"; then
37512 if test "$wxUSE_PROTOCOL" != "yes"; then
37513 { echo "$as_me:$LINENO: WARNING: wxURL class requires wxProtocol... disabled" >&5
37514echo "$as_me: WARNING: wxURL class requires wxProtocol... disabled" >&2;}
37515 wxUSE_URL=no
37516 fi
37517 if test "$wxUSE_URL" = "yes"; then
37518 cat >>confdefs.h <<\_ACEOF
37519#define wxUSE_URL 1
37520_ACEOF
37521
37522 fi
37523fi
37524
37525if test "$wxUSE_FS_INET" = "yes"; then
37526 cat >>confdefs.h <<\_ACEOF
37527#define wxUSE_FS_INET 1
37528_ACEOF
37529
37530fi
37531
37532
37533if test "$wxUSE_GUI" = "yes"; then
4cb1d3da 37534 if test "$wxUSE_JOYSTICK" = "yes"; then
a848cd7e 37535
4cb1d3da 37536 if test "$TOOLKIT" != "MAC" -a "$TOOLKIT" != "COCOA" -a "$TOOLKIT" != "MSW"; then
a848cd7e
SC
37537
37538for ac_header in linux/joystick.h
37539do
37540as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
37541if eval "test \"\${$as_ac_Header+set}\" = set"; then
37542 echo "$as_me:$LINENO: checking for $ac_header" >&5
37543echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
37544if eval "test \"\${$as_ac_Header+set}\" = set"; then
37545 echo $ECHO_N "(cached) $ECHO_C" >&6
37546fi
37547echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
37548echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
37549else
37550 # Is the header compilable?
37551echo "$as_me:$LINENO: checking $ac_header usability" >&5
37552echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
37553cat >conftest.$ac_ext <<_ACEOF
37554/* confdefs.h. */
37555_ACEOF
37556cat confdefs.h >>conftest.$ac_ext
37557cat >>conftest.$ac_ext <<_ACEOF
37558/* end confdefs.h. */
37559$ac_includes_default
37560#include <$ac_header>
37561_ACEOF
37562rm -f conftest.$ac_objext
37563if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 37564 (eval $ac_compile) 2>conftest.er1
a848cd7e 37565 ac_status=$?
ac1cb8d3
VS
37566 grep -v '^ *+' conftest.er1 >conftest.err
37567 rm -f conftest.er1
37568 cat conftest.err >&5
a848cd7e
SC
37569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37570 (exit $ac_status); } &&
89be85c2
VS
37571 { ac_try='test -z "$ac_c_werror_flag"
37572 || test ! -s conftest.err'
ac1cb8d3
VS
37573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37574 (eval $ac_try) 2>&5
37575 ac_status=$?
37576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37577 (exit $ac_status); }; } &&
37578 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
37579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37580 (eval $ac_try) 2>&5
37581 ac_status=$?
37582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37583 (exit $ac_status); }; }; then
37584 ac_header_compiler=yes
37585else
37586 echo "$as_me: failed program was:" >&5
37587sed 's/^/| /' conftest.$ac_ext >&5
37588
37589ac_header_compiler=no
37590fi
ac1cb8d3 37591rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
37592echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
37593echo "${ECHO_T}$ac_header_compiler" >&6
37594
37595# Is the header present?
37596echo "$as_me:$LINENO: checking $ac_header presence" >&5
37597echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
37598cat >conftest.$ac_ext <<_ACEOF
37599/* confdefs.h. */
37600_ACEOF
37601cat confdefs.h >>conftest.$ac_ext
37602cat >>conftest.$ac_ext <<_ACEOF
37603/* end confdefs.h. */
37604#include <$ac_header>
37605_ACEOF
37606if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
37607 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
37608 ac_status=$?
37609 grep -v '^ *+' conftest.er1 >conftest.err
37610 rm -f conftest.er1
37611 cat conftest.err >&5
37612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37613 (exit $ac_status); } >/dev/null; then
37614 if test -s conftest.err; then
37615 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 37616 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
37617 else
37618 ac_cpp_err=
37619 fi
37620else
37621 ac_cpp_err=yes
37622fi
37623if test -z "$ac_cpp_err"; then
37624 ac_header_preproc=yes
37625else
37626 echo "$as_me: failed program was:" >&5
37627sed 's/^/| /' conftest.$ac_ext >&5
37628
37629 ac_header_preproc=no
37630fi
37631rm -f conftest.err conftest.$ac_ext
37632echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
37633echo "${ECHO_T}$ac_header_preproc" >&6
37634
37635# So? What about this header?
ac1cb8d3
VS
37636case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
37637 yes:no: )
a848cd7e
SC
37638 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
37639echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
37640 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
37641echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
37642 ac_header_preproc=yes
a848cd7e 37643 ;;
ac1cb8d3 37644 no:yes:* )
a848cd7e
SC
37645 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
37646echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
37647 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
37648echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
37649 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
37650echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
37651 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
37652echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
37653 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
37654echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
37655 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
37656echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
37657 (
37658 cat <<\_ASBOX
ac1cb8d3
VS
37659## ----------------------------------------- ##
37660## Report this to wx-dev@lists.wxwidgets.org ##
37661## ----------------------------------------- ##
a848cd7e
SC
37662_ASBOX
37663 ) |
37664 sed "s/^/$as_me: WARNING: /" >&2
37665 ;;
37666esac
37667echo "$as_me:$LINENO: checking for $ac_header" >&5
37668echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
37669if eval "test \"\${$as_ac_Header+set}\" = set"; then
37670 echo $ECHO_N "(cached) $ECHO_C" >&6
37671else
ac1cb8d3 37672 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
37673fi
37674echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
37675echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
37676
37677fi
37678if test `eval echo '${'$as_ac_Header'}'` = yes; then
37679 cat >>confdefs.h <<_ACEOF
37680#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
37681_ACEOF
37682
37683fi
37684
37685done
37686
37687 if test "$ac_cv_header_linux_joystick_h" != "yes"; then
37688 wxUSE_JOYSTICK=no
37689 { echo "$as_me:$LINENO: WARNING: Joystick not supported by this system... disabled" >&5
37690echo "$as_me: WARNING: Joystick not supported by this system... disabled" >&2;}
37691 fi
4cb1d3da
RN
37692 else
37693 if test "$USE_DARWIN" != 1 -a "$TOOLKIT" != "MSW"; then
37694 wxUSE_JOYSTICK=no
37695 { echo "$as_me:$LINENO: WARNING: Joystick not supported by this system... disabled" >&5
37696echo "$as_me: WARNING: Joystick not supported by this system... disabled" >&2;}
37697 fi
a848cd7e 37698 fi
a848cd7e 37699
4cb1d3da
RN
37700
37701 if test "$wxUSE_JOYSTICK" = "yes"; then
37702 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
37703#define wxUSE_JOYSTICK 1
37704_ACEOF
37705
4cb1d3da
RN
37706 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest"
37707 fi
a848cd7e
SC
37708 fi
37709fi
37710
37711
37712
37713if test "$wxUSE_FONTMAP" = "yes" ; then
37714 cat >>confdefs.h <<\_ACEOF
37715#define wxUSE_FONTMAP 1
37716_ACEOF
37717
37718fi
37719
37720if test "$wxUSE_UNICODE" = "yes" ; then
37721 cat >>confdefs.h <<\_ACEOF
37722#define wxUSE_UNICODE 1
37723_ACEOF
37724
37725
37726 if test "$USE_WIN32" != 1; then
37727 wxUSE_UNICODE_MSLU=no
37728 fi
37729
37730 if test "$USE_WIN32" = 1 -a "$wxUSE_UNICODE_MSLU" = "yes"; then
37731 echo "$as_me:$LINENO: checking for main in -lunicows" >&5
37732echo $ECHO_N "checking for main in -lunicows... $ECHO_C" >&6
37733if test "${ac_cv_lib_unicows_main+set}" = set; then
37734 echo $ECHO_N "(cached) $ECHO_C" >&6
37735else
37736 ac_check_lib_save_LIBS=$LIBS
37737LIBS="-lunicows $LIBS"
37738cat >conftest.$ac_ext <<_ACEOF
37739/* confdefs.h. */
37740_ACEOF
37741cat confdefs.h >>conftest.$ac_ext
37742cat >>conftest.$ac_ext <<_ACEOF
37743/* end confdefs.h. */
37744
37745
37746int
37747main ()
37748{
37749main ();
37750 ;
37751 return 0;
37752}
37753_ACEOF
37754rm -f conftest.$ac_objext conftest$ac_exeext
37755if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37756 (eval $ac_link) 2>conftest.er1
a848cd7e 37757 ac_status=$?
ac1cb8d3
VS
37758 grep -v '^ *+' conftest.er1 >conftest.err
37759 rm -f conftest.er1
37760 cat conftest.err >&5
a848cd7e
SC
37761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37762 (exit $ac_status); } &&
89be85c2
VS
37763 { ac_try='test -z "$ac_c_werror_flag"
37764 || test ! -s conftest.err'
ac1cb8d3
VS
37765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37766 (eval $ac_try) 2>&5
37767 ac_status=$?
37768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37769 (exit $ac_status); }; } &&
37770 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37772 (eval $ac_try) 2>&5
37773 ac_status=$?
37774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37775 (exit $ac_status); }; }; then
37776 ac_cv_lib_unicows_main=yes
37777else
37778 echo "$as_me: failed program was:" >&5
37779sed 's/^/| /' conftest.$ac_ext >&5
37780
37781ac_cv_lib_unicows_main=no
37782fi
ac1cb8d3
VS
37783rm -f conftest.err conftest.$ac_objext \
37784 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37785LIBS=$ac_check_lib_save_LIBS
37786fi
37787echo "$as_me:$LINENO: result: $ac_cv_lib_unicows_main" >&5
37788echo "${ECHO_T}$ac_cv_lib_unicows_main" >&6
37789if test $ac_cv_lib_unicows_main = yes; then
37790
37791 cat >>confdefs.h <<\_ACEOF
37792#define wxUSE_UNICODE_MSLU 1
37793_ACEOF
37794
37795
37796else
37797
37798 { echo "$as_me:$LINENO: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
37799 Applications will only run on Windows NT/2000/XP!" >&5
37800echo "$as_me: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
37801 Applications will only run on Windows NT/2000/XP!" >&2;}
37802 wxUSE_UNICODE_MSLU=no
37803
37804fi
37805
37806 fi
37807fi
37808
37809if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then
37810 cat >>confdefs.h <<\_ACEOF
37811#define wxUSE_EXPERIMENTAL_PRINTF 1
37812_ACEOF
37813
37814fi
37815
37816
37817if test "$wxUSE_POSTSCRIPT" = "yes" ; then
37818 cat >>confdefs.h <<\_ACEOF
37819#define wxUSE_POSTSCRIPT 1
37820_ACEOF
37821
37822fi
37823
37824cat >>confdefs.h <<\_ACEOF
37825#define wxUSE_AFM_FOR_POSTSCRIPT 1
37826_ACEOF
37827
37828
37829cat >>confdefs.h <<\_ACEOF
37830#define wxUSE_NORMALIZED_PS_FONTS 1
37831_ACEOF
37832
37833
37834
37835if test "$wxUSE_CONSTRAINTS" = "yes"; then
37836 cat >>confdefs.h <<\_ACEOF
37837#define wxUSE_CONSTRAINTS 1
37838_ACEOF
37839
37840 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout"
37841fi
37842
8a7b1113
VZ
37843if test "$wxUSE_MDI" = "yes"; then
37844 cat >>confdefs.h <<\_ACEOF
37845#define wxUSE_MDI 1
37846_ACEOF
37847
37848
37849 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
37850 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
37851#define wxUSE_MDI_ARCHITECTURE 1
37852_ACEOF
37853
8a7b1113
VZ
37854 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi"
37855 fi
a848cd7e
SC
37856fi
37857
37858if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then
37859 cat >>confdefs.h <<\_ACEOF
37860#define wxUSE_DOC_VIEW_ARCHITECTURE 1
37861_ACEOF
37862
37863 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview"
37864 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
37865 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi"
37866 fi
37867fi
37868
37869if test "$wxUSE_HELP" = "yes"; then
37870 cat >>confdefs.h <<\_ACEOF
37871#define wxUSE_HELP 1
37872_ACEOF
37873
37874 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help"
37875
37876 if test "$wxUSE_MSW" = 1; then
37877 if test "$wxUSE_MS_HTML_HELP" = "yes"; then
37878 cat >>confdefs.h <<\_ACEOF
37879#define wxUSE_MS_HTML_HELP 1
37880_ACEOF
37881
37882 fi
37883 fi
37884
37885 if test "$wxUSE_WXHTML_HELP" = "yes"; then
37886 if test "$wxUSE_HTML" = "yes"; then
37887 cat >>confdefs.h <<\_ACEOF
37888#define wxUSE_WXHTML_HELP 1
37889_ACEOF
37890
37891 else
37892 { echo "$as_me:$LINENO: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&5
37893echo "$as_me: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&2;}
37894 wxUSE_WXHTML_HELP=no
37895 fi
37896 fi
37897fi
37898
37899if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
37900 if test "$wxUSE_CONSTRAINTS" != "yes"; then
37901 { echo "$as_me:$LINENO: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&5
37902echo "$as_me: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&2;}
37903 else
37904 cat >>confdefs.h <<\_ACEOF
37905#define wxUSE_PRINTING_ARCHITECTURE 1
37906_ACEOF
37907
37908 fi
37909 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing"
37910fi
37911
37912if test "$wxUSE_PROLOGIO" = "yes" -o "$wxUSE_RESOURCES" = "yes"; then
37913 { { echo "$as_me:$LINENO: error: wxExpr and old-style resources are now available in contrib only" >&5
37914echo "$as_me: error: wxExpr and old-style resources are now available in contrib only" >&2;}
37915 { (exit 1); exit 1; }; }
37916fi
37917
37918
37919if test "$USE_WIN32" = 1 -a \( "$wxUSE_DATAOBJ" = "yes" \
37920 -o "$wxUSE_CLIPBOARD" = "yes" \
37921 -o "$wxUSE_OLE" = "yes" \
37922 -o "$wxUSE_DRAG_AND_DROP" = "yes" \) ; then
37923
37924for ac_header in ole2.h
37925do
37926as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
37927if eval "test \"\${$as_ac_Header+set}\" = set"; then
37928 echo "$as_me:$LINENO: checking for $ac_header" >&5
37929echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
37930if eval "test \"\${$as_ac_Header+set}\" = set"; then
37931 echo $ECHO_N "(cached) $ECHO_C" >&6
37932fi
37933echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
37934echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
37935else
37936 # Is the header compilable?
37937echo "$as_me:$LINENO: checking $ac_header usability" >&5
37938echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
37939cat >conftest.$ac_ext <<_ACEOF
37940/* confdefs.h. */
37941_ACEOF
37942cat confdefs.h >>conftest.$ac_ext
37943cat >>conftest.$ac_ext <<_ACEOF
37944/* end confdefs.h. */
37945$ac_includes_default
37946#include <$ac_header>
37947_ACEOF
37948rm -f conftest.$ac_objext
37949if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 37950 (eval $ac_compile) 2>conftest.er1
a848cd7e 37951 ac_status=$?
ac1cb8d3
VS
37952 grep -v '^ *+' conftest.er1 >conftest.err
37953 rm -f conftest.er1
37954 cat conftest.err >&5
a848cd7e
SC
37955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37956 (exit $ac_status); } &&
89be85c2
VS
37957 { ac_try='test -z "$ac_c_werror_flag"
37958 || test ! -s conftest.err'
ac1cb8d3
VS
37959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37960 (eval $ac_try) 2>&5
37961 ac_status=$?
37962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37963 (exit $ac_status); }; } &&
37964 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
37965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37966 (eval $ac_try) 2>&5
37967 ac_status=$?
37968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37969 (exit $ac_status); }; }; then
37970 ac_header_compiler=yes
37971else
37972 echo "$as_me: failed program was:" >&5
37973sed 's/^/| /' conftest.$ac_ext >&5
37974
37975ac_header_compiler=no
37976fi
ac1cb8d3 37977rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
37978echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
37979echo "${ECHO_T}$ac_header_compiler" >&6
37980
37981# Is the header present?
37982echo "$as_me:$LINENO: checking $ac_header presence" >&5
37983echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
37984cat >conftest.$ac_ext <<_ACEOF
37985/* confdefs.h. */
37986_ACEOF
37987cat confdefs.h >>conftest.$ac_ext
37988cat >>conftest.$ac_ext <<_ACEOF
37989/* end confdefs.h. */
37990#include <$ac_header>
37991_ACEOF
37992if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
37993 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
37994 ac_status=$?
37995 grep -v '^ *+' conftest.er1 >conftest.err
37996 rm -f conftest.er1
37997 cat conftest.err >&5
37998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37999 (exit $ac_status); } >/dev/null; then
38000 if test -s conftest.err; then
38001 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 38002 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
38003 else
38004 ac_cpp_err=
38005 fi
38006else
38007 ac_cpp_err=yes
38008fi
38009if test -z "$ac_cpp_err"; then
38010 ac_header_preproc=yes
38011else
38012 echo "$as_me: failed program was:" >&5
38013sed 's/^/| /' conftest.$ac_ext >&5
38014
38015 ac_header_preproc=no
38016fi
38017rm -f conftest.err conftest.$ac_ext
38018echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
38019echo "${ECHO_T}$ac_header_preproc" >&6
38020
38021# So? What about this header?
ac1cb8d3
VS
38022case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
38023 yes:no: )
a848cd7e
SC
38024 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
38025echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
38026 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
38027echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
38028 ac_header_preproc=yes
a848cd7e 38029 ;;
ac1cb8d3 38030 no:yes:* )
a848cd7e
SC
38031 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
38032echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
38033 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
38034echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
38035 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
38036echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
38037 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
38038echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
38039 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
38040echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
38041 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
38042echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
38043 (
38044 cat <<\_ASBOX
ac1cb8d3
VS
38045## ----------------------------------------- ##
38046## Report this to wx-dev@lists.wxwidgets.org ##
38047## ----------------------------------------- ##
a848cd7e
SC
38048_ASBOX
38049 ) |
38050 sed "s/^/$as_me: WARNING: /" >&2
38051 ;;
38052esac
38053echo "$as_me:$LINENO: checking for $ac_header" >&5
38054echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
38055if eval "test \"\${$as_ac_Header+set}\" = set"; then
38056 echo $ECHO_N "(cached) $ECHO_C" >&6
38057else
ac1cb8d3 38058 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
38059fi
38060echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
38061echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
38062
38063fi
38064if test `eval echo '${'$as_ac_Header'}'` = yes; then
38065 cat >>confdefs.h <<_ACEOF
38066#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
38067_ACEOF
38068
38069fi
38070
38071done
38072
38073
38074 if test "$ac_cv_header_ole2_h" = "yes" ; then
38075 if test "$GCC" = yes ; then
38076
38077
38078 ac_ext=cc
38079ac_cpp='$CXXCPP $CPPFLAGS'
38080ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38081ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38082ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
38083
38084
38085 echo "$as_me:$LINENO: checking if g++ requires -fvtable-thunks" >&5
38086echo $ECHO_N "checking if g++ requires -fvtable-thunks... $ECHO_C" >&6
38087 cat >conftest.$ac_ext <<_ACEOF
38088/* confdefs.h. */
38089_ACEOF
38090cat confdefs.h >>conftest.$ac_ext
38091cat >>conftest.$ac_ext <<_ACEOF
38092/* end confdefs.h. */
38093#include <windows.h>
38094 #include <ole2.h>
38095int
38096main ()
38097{
38098
38099 ;
38100 return 0;
38101}
38102_ACEOF
38103rm -f conftest.$ac_objext
38104if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 38105 (eval $ac_compile) 2>conftest.er1
a848cd7e 38106 ac_status=$?
ac1cb8d3
VS
38107 grep -v '^ *+' conftest.er1 >conftest.err
38108 rm -f conftest.er1
38109 cat conftest.err >&5
a848cd7e
SC
38110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38111 (exit $ac_status); } &&
89be85c2
VS
38112 { ac_try='test -z "$ac_cxx_werror_flag"
38113 || test ! -s conftest.err'
ac1cb8d3
VS
38114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38115 (eval $ac_try) 2>&5
38116 ac_status=$?
38117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38118 (exit $ac_status); }; } &&
38119 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
38120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38121 (eval $ac_try) 2>&5
38122 ac_status=$?
38123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38124 (exit $ac_status); }; }; then
38125 echo "$as_me:$LINENO: result: no" >&5
38126echo "${ECHO_T}no" >&6
38127else
38128 echo "$as_me: failed program was:" >&5
38129sed 's/^/| /' conftest.$ac_ext >&5
38130
38131echo "$as_me:$LINENO: result: yes" >&5
38132echo "${ECHO_T}yes" >&6
38133 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fvtable-thunks"
38134fi
ac1cb8d3 38135rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
38136 ac_ext=c
38137ac_cpp='$CPP $CPPFLAGS'
38138ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38139ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38140ac_compiler_gnu=$ac_cv_c_compiler_gnu
38141
a848cd7e
SC
38142 LIBS=" -lrpcrt4 -loleaut32 -lole32 -luuid$LIBS"
38143 if test "$wxUSE_OLE" = "yes" ; then
38144 cat >>confdefs.h <<\_ACEOF
38145#define wxUSE_OLE 1
38146_ACEOF
38147
38148 fi
38149 fi
38150
38151 if test "$wxUSE_DATAOBJ" = "yes" ; then
38152 cat >>confdefs.h <<\_ACEOF
38153#define wxUSE_DATAOBJ 1
38154_ACEOF
38155
38156 fi
38157 else
38158 { echo "$as_me:$LINENO: WARNING: Some features disabled because OLE headers not found" >&5
38159echo "$as_me: WARNING: Some features disabled because OLE headers not found" >&2;}
38160
38161 wxUSE_CLIPBOARD=no
38162 wxUSE_DRAG_AND_DROP=no
38163 wxUSE_DATAOBJ=no
38164 wxUSE_OLE=no
38165 fi
38166
38167 if test "$wxUSE_METAFILE" = "yes"; then
38168 cat >>confdefs.h <<\_ACEOF
38169#define wxUSE_METAFILE 1
38170_ACEOF
38171
38172
38173 cat >>confdefs.h <<\_ACEOF
38174#define wxUSE_ENH_METAFILE 1
38175_ACEOF
38176
38177 fi
38178fi
38179
38180if test "$wxUSE_IPC" = "yes"; then
38181 if test "$wxUSE_SOCKETS" != "yes"; then
77ffb593
JS
38182 { echo "$as_me:$LINENO: WARNING: wxWidgets IPC classes require sockets... disabled" >&5
38183echo "$as_me: WARNING: wxWidgets IPC classes require sockets... disabled" >&2;}
a848cd7e
SC
38184 fi
38185
38186 cat >>confdefs.h <<\_ACEOF
38187#define wxUSE_IPC 1
38188_ACEOF
38189
38190fi
38191
38192if test "$wxUSE_CLIPBOARD" = "yes"; then
38193 if test "$wxUSE_MGL" = 1; then
38194 { echo "$as_me:$LINENO: WARNING: Clipboard not yet supported under MGL... disabled" >&5
38195echo "$as_me: WARNING: Clipboard not yet supported under MGL... disabled" >&2;}
38196 wxUSE_CLIPBOARD=no
38197 fi
38198
38199 if test "$wxUSE_CLIPBOARD" = "yes"; then
38200 cat >>confdefs.h <<\_ACEOF
38201#define wxUSE_CLIPBOARD 1
38202_ACEOF
38203
38204
38205 cat >>confdefs.h <<\_ACEOF
38206#define wxUSE_DATAOBJ 1
38207_ACEOF
38208
38209 fi
38210fi
38211
38212if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then
38213 if test "$wxUSE_GTK" = 1; then
38214 if test "$WXGTK12" != 1; then
38215 { echo "$as_me:$LINENO: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&5
38216echo "$as_me: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&2;}
38217 wxUSE_DRAG_AND_DROP=no
38218 fi
38219 fi
38220
38221 if test "$wxUSE_MOTIF" = 1; then
38222 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under Motif... disabled" >&5
38223echo "$as_me: WARNING: Drag and drop not yet supported under Motif... disabled" >&2;}
38224 wxUSE_DRAG_AND_DROP=no
38225 fi
38226
38227 if test "$wxUSE_X11" = 1; then
38228 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under X11... disabled" >&5
38229echo "$as_me: WARNING: Drag and drop not yet supported under X11... disabled" >&2;}
38230 wxUSE_DRAG_AND_DROP=no
38231 fi
38232
38233 if test "$wxUSE_MGL" = 1; then
38234 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under MGL... disabled" >&5
38235echo "$as_me: WARNING: Drag and drop not yet supported under MGL... disabled" >&2;}
38236 wxUSE_DRAG_AND_DROP=no
38237 fi
38238
38239 if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
38240 cat >>confdefs.h <<\_ACEOF
38241#define wxUSE_DRAG_AND_DROP 1
38242_ACEOF
38243
38244 fi
38245
38246fi
38247
38248if test "$wxUSE_DRAG_AND_DROP" = "yes" -o "$wxUSE_CLIPBOARD" = "yes"; then
38249 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd"
38250fi
38251
38252if test "$wxUSE_SPLINES" = "yes" ; then
38253 cat >>confdefs.h <<\_ACEOF
38254#define wxUSE_SPLINES 1
38255_ACEOF
38256
38257fi
38258
38259
38260USES_CONTROLS=0
38261if test "$wxUSE_CONTROLS" = "yes"; then
38262 USES_CONTROLS=1
38263fi
38264
38265if test "$wxUSE_ACCEL" = "yes"; then
38266 cat >>confdefs.h <<\_ACEOF
38267#define wxUSE_ACCEL 1
38268_ACEOF
38269
38270 USES_CONTROLS=1
38271fi
38272
38273if test "$wxUSE_BUTTON" = "yes"; then
38274 cat >>confdefs.h <<\_ACEOF
38275#define wxUSE_BUTTON 1
38276_ACEOF
38277
38278 USES_CONTROLS=1
38279fi
38280
38281if test "$wxUSE_BMPBUTTON" = "yes"; then
38282 cat >>confdefs.h <<\_ACEOF
38283#define wxUSE_BMPBUTTON 1
38284_ACEOF
38285
38286 USES_CONTROLS=1
38287fi
38288
38289if test "$wxUSE_CALCTRL" = "yes"; then
38290 cat >>confdefs.h <<\_ACEOF
38291#define wxUSE_CALENDARCTRL 1
38292_ACEOF
38293
38294 USES_CONTROLS=1
38295 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar"
38296fi
38297
38298if test "$wxUSE_CARET" = "yes"; then
38299 cat >>confdefs.h <<\_ACEOF
38300#define wxUSE_CARET 1
38301_ACEOF
38302
38303 USES_CONTROLS=1
38304 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret"
38305fi
38306
38307if test "$wxUSE_COMBOBOX" = "yes"; then
38308 cat >>confdefs.h <<\_ACEOF
38309#define wxUSE_COMBOBOX 1
38310_ACEOF
38311
38312 USES_CONTROLS=1
38313fi
38314
38315if test "$wxUSE_CHOICE" = "yes"; then
38316 cat >>confdefs.h <<\_ACEOF
38317#define wxUSE_CHOICE 1
38318_ACEOF
38319
38320 USES_CONTROLS=1
38321fi
38322
92bbdbcd
WS
38323if test "$wxUSE_CHOICEBOOK" = "yes"; then
38324 cat >>confdefs.h <<\_ACEOF
38325#define wxUSE_CHOICEBOOK 1
38326_ACEOF
38327
38328 USES_CONTROLS=1
38329fi
38330
a848cd7e
SC
38331if test "$wxUSE_CHECKBOX" = "yes"; then
38332 cat >>confdefs.h <<\_ACEOF
38333#define wxUSE_CHECKBOX 1
38334_ACEOF
38335
38336 USES_CONTROLS=1
38337fi
38338
38339if test "$wxUSE_CHECKLST" = "yes"; then
38340 cat >>confdefs.h <<\_ACEOF
38341#define wxUSE_CHECKLISTBOX 1
38342_ACEOF
38343
38344 USES_CONTROLS=1
38345 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst"
38346fi
38347
da98e9be
VZ
38348if test "$wxUSE_DATEPICKCTRL" = "yes"; then
38349 cat >>confdefs.h <<\_ACEOF
38350#define wxUSE_DATEPICKCTRL 1
38351_ACEOF
38352
38353 USES_CONTROLS=1
38354fi
38355
a848cd7e
SC
38356if test "$wxUSE_DISPLAY" = "yes"; then
38357 cat >>confdefs.h <<\_ACEOF
38358#define wxUSE_DISPLAY 1
38359_ACEOF
38360
38361 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS display"
38362fi
38363
38364if test "$wxUSE_GAUGE" = "yes"; then
38365 cat >>confdefs.h <<\_ACEOF
38366#define wxUSE_GAUGE 1
38367_ACEOF
38368
38369 USES_CONTROLS=1
38370fi
38371
38372if test "$wxUSE_GRID" = "yes"; then
38373 cat >>confdefs.h <<\_ACEOF
38374#define wxUSE_GRID 1
38375_ACEOF
38376
38377 USES_CONTROLS=1
38378 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid"
38379fi
38380
38381if test "$wxUSE_IMAGLIST" = "yes"; then
38382 cat >>confdefs.h <<\_ACEOF
38383#define wxUSE_IMAGLIST 1
38384_ACEOF
38385
38386fi
38387
38388if test "$wxUSE_LISTBOOK" = "yes"; then
38389 cat >>confdefs.h <<\_ACEOF
38390#define wxUSE_LISTBOOK 1
38391_ACEOF
38392
38393 USES_CONTROLS=1
38394fi
38395
38396if test "$wxUSE_LISTBOX" = "yes"; then
38397 cat >>confdefs.h <<\_ACEOF
38398#define wxUSE_LISTBOX 1
38399_ACEOF
38400
38401 USES_CONTROLS=1
38402fi
38403
38404if test "$wxUSE_LISTCTRL" = "yes"; then
38405 if test "$wxUSE_IMAGLIST" = "yes"; then
38406 cat >>confdefs.h <<\_ACEOF
38407#define wxUSE_LISTCTRL 1
38408_ACEOF
38409
38410 USES_CONTROLS=1
38411 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl"
38412 else
38413 { echo "$as_me:$LINENO: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&5
38414echo "$as_me: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&2;}
38415 fi
38416fi
38417
38418if test "$wxUSE_NOTEBOOK" = "yes"; then
38419 cat >>confdefs.h <<\_ACEOF
38420#define wxUSE_NOTEBOOK 1
38421_ACEOF
38422
38423 USES_CONTROLS=1
38424 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook"
38425fi
38426
38427
38428if test "$wxUSE_RADIOBOX" = "yes"; then
38429 cat >>confdefs.h <<\_ACEOF
38430#define wxUSE_RADIOBOX 1
38431_ACEOF
38432
38433 USES_CONTROLS=1
38434fi
38435
38436if test "$wxUSE_RADIOBTN" = "yes"; then
38437 cat >>confdefs.h <<\_ACEOF
38438#define wxUSE_RADIOBTN 1
38439_ACEOF
38440
38441 USES_CONTROLS=1
38442fi
38443
38444if test "$wxUSE_SASH" = "yes"; then
38445 cat >>confdefs.h <<\_ACEOF
38446#define wxUSE_SASH 1
38447_ACEOF
38448
38449 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest"
38450fi
38451
38452if test "$wxUSE_SCROLLBAR" = "yes"; then
38453 cat >>confdefs.h <<\_ACEOF
38454#define wxUSE_SCROLLBAR 1
38455_ACEOF
38456
38457 USES_CONTROLS=1
38458 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub"
38459fi
38460
38461if test "$wxUSE_SLIDER" = "yes"; then
38462 cat >>confdefs.h <<\_ACEOF
38463#define wxUSE_SLIDER 1
38464_ACEOF
38465
38466 USES_CONTROLS=1
38467fi
38468
38469if test "$wxUSE_SPINBTN" = "yes"; then
38470 cat >>confdefs.h <<\_ACEOF
38471#define wxUSE_SPINBTN 1
38472_ACEOF
38473
38474 USES_CONTROLS=1
38475fi
38476
38477if test "$wxUSE_SPINCTRL" = "yes"; then
38478 cat >>confdefs.h <<\_ACEOF
38479#define wxUSE_SPINCTRL 1
38480_ACEOF
38481
38482 USES_CONTROLS=1
38483fi
38484
38485if test "$wxUSE_SPLITTER" = "yes"; then
38486 cat >>confdefs.h <<\_ACEOF
38487#define wxUSE_SPLITTER 1
38488_ACEOF
38489
38490 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter"
38491fi
38492
38493if test "$wxUSE_STATBMP" = "yes"; then
38494 cat >>confdefs.h <<\_ACEOF
38495#define wxUSE_STATBMP 1
38496_ACEOF
38497
38498 USES_CONTROLS=1
38499fi
38500
38501if test "$wxUSE_STATBOX" = "yes"; then
38502 cat >>confdefs.h <<\_ACEOF
38503#define wxUSE_STATBOX 1
38504_ACEOF
38505
38506 USES_CONTROLS=1
38507fi
38508
38509if test "$wxUSE_STATTEXT" = "yes"; then
38510 cat >>confdefs.h <<\_ACEOF
38511#define wxUSE_STATTEXT 1
38512_ACEOF
38513
38514 USES_CONTROLS=1
38515fi
38516
38517if test "$wxUSE_STATLINE" = "yes"; then
38518 cat >>confdefs.h <<\_ACEOF
38519#define wxUSE_STATLINE 1
38520_ACEOF
38521
38522 USES_CONTROLS=1
38523fi
38524
38525if test "$wxUSE_STATUSBAR" = "yes"; then
da4486fb
VZ
38526 cat >>confdefs.h <<\_ACEOF
38527#define wxUSE_NATIVE_STATUSBAR 1
38528_ACEOF
38529
a848cd7e
SC
38530 cat >>confdefs.h <<\_ACEOF
38531#define wxUSE_STATUSBAR 1
38532_ACEOF
38533
38534 USES_CONTROLS=1
38535
38536 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar"
38537fi
38538
38539if test "$wxUSE_TABDIALOG" = "yes"; then
38540 cat >>confdefs.h <<\_ACEOF
38541#define wxUSE_TAB_DIALOG 1
38542_ACEOF
38543
a848cd7e
SC
38544fi
38545
38546if test "$wxUSE_TEXTCTRL" = "yes"; then
38547 cat >>confdefs.h <<\_ACEOF
38548#define wxUSE_TEXTCTRL 1
38549_ACEOF
38550
38551 USES_CONTROLS=1
38552 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text"
38553fi
38554
38555if test "$wxUSE_TOGGLEBTN" = "yes"; then
38556 if test "$wxUSE_COCOA" = 1 ; then
38557 { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&5
38558echo "$as_me: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&2;}
38559 wxUSE_TOGGLEBTN=no
bdcade0a
MB
38560 else
38561 if test "$wxUSE_PM" = 1; then
38562 { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under PM... disabled" >&5
38563echo "$as_me: WARNING: Toggle button not yet supported under PM... disabled" >&2;}
38564 wxUSE_TOGGLEBTN=no
38565 fi
a848cd7e
SC
38566 fi
38567 if test "$wxUSE_UNIVERSAL" = "yes"; then
38568 { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under wxUniversal... disabled" >&5
38569echo "$as_me: WARNING: Toggle button not yet supported under wxUniversal... disabled" >&2;}
38570 wxUSE_TOGGLEBTN=no
38571 fi
38572
38573 if test "$wxUSE_TOGGLEBTN" = "yes"; then
38574 cat >>confdefs.h <<\_ACEOF
38575#define wxUSE_TOGGLEBTN 1
38576_ACEOF
38577
38578 USES_CONTROLS=1
38579 fi
38580fi
38581
38582if test "$wxUSE_TOOLBAR_SIMPLE" = "yes"; then
38583 cat >>confdefs.h <<\_ACEOF
38584#define wxUSE_TOOLBAR_SIMPLE 1
38585_ACEOF
38586
38587 wxUSE_TOOLBAR="yes"
38588 USES_CONTROLS=1
38589fi
38590
38591if test "$wxUSE_TOOLBAR" = "yes"; then
38592 cat >>confdefs.h <<\_ACEOF
38593#define wxUSE_TOOLBAR 1
38594_ACEOF
38595
38596 USES_CONTROLS=1
38597
38598 if test "$wxUSE_TOOLBAR_SIMPLE" != "yes"; then
38599 wxUSE_TOOLBAR_NATIVE="yes"
38600 fi
38601
38602 if test "$wxUSE_TOOLBAR_NATIVE" = "yes"; then
38603 cat >>confdefs.h <<\_ACEOF
38604#define wxUSE_TOOLBAR_NATIVE 1
38605_ACEOF
38606
38607 USES_CONTROLS=1
38608 fi
38609
38610 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar"
38611fi
38612
38613if test "$wxUSE_TOOLTIPS" = "yes"; then
38614 if test "$wxUSE_MOTIF" = 1; then
38615 { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet under Motif... disabled" >&5
38616echo "$as_me: WARNING: wxTooltip not supported yet under Motif... disabled" >&2;}
38617 else
38618 if test "$wxUSE_UNIVERSAL" = "yes"; then
38619 { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&5
38620echo "$as_me: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&2;}
38621 else
38622 cat >>confdefs.h <<\_ACEOF
38623#define wxUSE_TOOLTIPS 1
38624_ACEOF
38625
38626 fi
38627 fi
38628fi
38629
38630if test "$wxUSE_TREECTRL" = "yes"; then
38631 if test "$wxUSE_IMAGLIST" = "yes"; then
38632 cat >>confdefs.h <<\_ACEOF
38633#define wxUSE_TREECTRL 1
38634_ACEOF
38635
38636 USES_CONTROLS=1
38637 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl"
38638 else
38639 { echo "$as_me:$LINENO: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&5
38640echo "$as_me: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&2;}
38641 fi
38642fi
38643
38644if test "$wxUSE_POPUPWIN" = "yes"; then
38645 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
38646 { echo "$as_me:$LINENO: WARNING: Popup window not yet supported under Mac OS X... disabled" >&5
38647echo "$as_me: WARNING: Popup window not yet supported under Mac OS X... disabled" >&2;}
38648 else
38649 if test "$wxUSE_PM" = 1; then
38650 { echo "$as_me:$LINENO: WARNING: wxPopupWindow not yet supported under PM... disabled" >&5
38651echo "$as_me: WARNING: wxPopupWindow not yet supported under PM... disabled" >&2;}
38652 else
38653 cat >>confdefs.h <<\_ACEOF
38654#define wxUSE_POPUPWIN 1
38655_ACEOF
38656
38657
38658 USES_CONTROLS=1
38659 fi
38660 fi
38661fi
38662
0dcd06dd 38663if test "$wxUSE_DIALUP_MANAGER" = "yes"; then
b843b628
MB
38664 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
38665 { echo "$as_me:$LINENO: WARNING: Dialup manager not yet supported under Mac OS X... disabled" >&5
38666echo "$as_me: WARNING: Dialup manager not yet supported under Mac OS X... disabled" >&2;}
38667 else
38668 cat >>confdefs.h <<\_ACEOF
38669#define wxUSE_DIALUP_MANAGER 1
38670_ACEOF
38671
38672 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup"
38673 fi
38674fi
38675
a848cd7e
SC
38676if test "$wxUSE_TIPWINDOW" = "yes"; then
38677 if test "$wxUSE_PM" = 1; then
38678 { echo "$as_me:$LINENO: WARNING: wxTipWindow not yet supported under PM... disabled" >&5
38679echo "$as_me: WARNING: wxTipWindow not yet supported under PM... disabled" >&2;}
38680 else
38681 cat >>confdefs.h <<\_ACEOF
38682#define wxUSE_TIPWINDOW 1
38683_ACEOF
38684
38685 fi
38686fi
38687
38688if test "$USES_CONTROLS" = 1; then
38689 cat >>confdefs.h <<\_ACEOF
38690#define wxUSE_CONTROLS 1
38691_ACEOF
38692
38693fi
38694
38695
38696if test "$wxUSE_ACCESSIBILITY" = "yes"; then
38697 cat >>confdefs.h <<\_ACEOF
38698#define wxUSE_ACCESSIBILITY 1
38699_ACEOF
38700
38701 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS access"
38702fi
38703
38704if test "$wxUSE_DRAGIMAGE" = "yes"; then
38705 cat >>confdefs.h <<\_ACEOF
38706#define wxUSE_DRAGIMAGE 1
38707_ACEOF
38708
38709 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag"
38710fi
38711
38712if test "$wxUSE_EXCEPTIONS" = "yes"; then
07bea8f0
VS
38713 if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
38714 { echo "$as_me:$LINENO: WARNING: --enable-exceptions can't be used with --enable-no_exceptions" >&5
38715echo "$as_me: WARNING: --enable-exceptions can't be used with --enable-no_exceptions" >&2;}
38716 else
38717 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
38718#define wxUSE_EXCEPTIONS 1
38719_ACEOF
38720
07bea8f0
VS
38721 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS except"
38722 fi
a848cd7e
SC
38723fi
38724
38725USE_HTML=0
38726if test "$wxUSE_HTML" = "yes"; then
38727 cat >>confdefs.h <<\_ACEOF
38728#define wxUSE_HTML 1
38729_ACEOF
38730
38731 USE_HTML=1
38732 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html html/about html/help html/helpview html/printing html/test html/virtual html/widget html/zip htlbox"
de59c161
RD
38733 if test "$wxUSE_MAC" = 1; then
38734 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html/htmlctrl"
38735 fi
a848cd7e 38736fi
646b6ec1 38737if test "$wxUSE_WEBKIT" = "yes"; then
1e9e8aba 38738 if test "$wxUSE_MAC" = 1 -a "$USE_DARWIN" = 1; then
07bea8f0
VS
38739 old_CPPFLAGS="$CPPFLAGS"
38740 CPPFLAGS="$CPPFLAGS -x objective-c++"
38741 echo "$as_me:$LINENO: checking for WebKit/HIWebView.h" >&5
38742echo $ECHO_N "checking for WebKit/HIWebView.h... $ECHO_C" >&6
38743if test "${ac_cv_header_WebKit_HIWebView_h+set}" = set; then
38744 echo $ECHO_N "(cached) $ECHO_C" >&6
38745else
38746 cat >conftest.$ac_ext <<_ACEOF
38747/* confdefs.h. */
38748_ACEOF
38749cat confdefs.h >>conftest.$ac_ext
38750cat >>conftest.$ac_ext <<_ACEOF
38751/* end confdefs.h. */
38752#include <Carbon/Carbon.h>
38753
38754#include <WebKit/HIWebView.h>
38755_ACEOF
38756rm -f conftest.$ac_objext
38757if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38758 (eval $ac_compile) 2>conftest.er1
38759 ac_status=$?
38760 grep -v '^ *+' conftest.er1 >conftest.err
38761 rm -f conftest.er1
38762 cat conftest.err >&5
38763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38764 (exit $ac_status); } &&
89be85c2
VS
38765 { ac_try='test -z "$ac_c_werror_flag"
38766 || test ! -s conftest.err'
07bea8f0
VS
38767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38768 (eval $ac_try) 2>&5
38769 ac_status=$?
38770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38771 (exit $ac_status); }; } &&
38772 { ac_try='test -s conftest.$ac_objext'
38773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38774 (eval $ac_try) 2>&5
38775 ac_status=$?
38776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38777 (exit $ac_status); }; }; then
38778 ac_cv_header_WebKit_HIWebView_h=yes
38779else
38780 echo "$as_me: failed program was:" >&5
38781sed 's/^/| /' conftest.$ac_ext >&5
38782
38783ac_cv_header_WebKit_HIWebView_h=no
38784fi
38785rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38786fi
38787echo "$as_me:$LINENO: result: $ac_cv_header_WebKit_HIWebView_h" >&5
38788echo "${ECHO_T}$ac_cv_header_WebKit_HIWebView_h" >&6
38789if test $ac_cv_header_WebKit_HIWebView_h = yes; then
38790
38791 cat >>confdefs.h <<\_ACEOF
646b6ec1
VS
38792#define wxUSE_WEBKIT 1
38793_ACEOF
38794
07bea8f0
VS
38795 WEBKIT_LINK="-framework WebKit"
38796
38797else
38798
38799 { echo "$as_me:$LINENO: WARNING: WebKit headers not found; disabling wxWebKit" >&5
38800echo "$as_me: WARNING: WebKit headers not found; disabling wxWebKit" >&2;}
38801 wxUSE_WEBKIT=no
38802
646b6ec1
VS
38803fi
38804
07bea8f0
VS
38805
38806 CPPFLAGS="$old_CPPFLAGS"
38807 elif test "$wxUSE_COCOA" = 1; then
38808 cat >>confdefs.h <<\_ACEOF
38809#define wxUSE_WEBKIT 1
38810_ACEOF
38811
38812 else
38813 wxUSE_WEBKIT=no
38814 fi
38815fi
38816
9a8f0513
VS
38817USE_XRC=0
38818if test "$wxUSE_XRC" = "yes"; then
d2ebf0b7
VS
38819 if test "$wxUSE_XML" != "yes"; then
38820 { echo "$as_me:$LINENO: WARNING: XML library not built, XRC resources disabled" >&5
38821echo "$as_me: WARNING: XML library not built, XRC resources disabled" >&2;}
38822 wxUSE_XRC=no
38823 else
38824 cat >>confdefs.h <<\_ACEOF
9a8f0513
VS
38825#define wxUSE_XRC 1
38826_ACEOF
38827
d2ebf0b7
VS
38828 USE_XRC=1
38829 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS xrc"
38830 fi
9a8f0513 38831fi
07bea8f0 38832
a848cd7e
SC
38833if test "$wxUSE_MENUS" = "yes"; then
38834 cat >>confdefs.h <<\_ACEOF
38835#define wxUSE_MENUS 1
38836_ACEOF
38837
38838 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu"
38839fi
38840
38841if test "$wxUSE_METAFILE" = "yes"; then
38842 cat >>confdefs.h <<\_ACEOF
38843#define wxUSE_METAFILE 1
38844_ACEOF
38845
38846fi
38847
38848if test "$wxUSE_MIMETYPE" = "yes"; then
38849 cat >>confdefs.h <<\_ACEOF
38850#define wxUSE_MIMETYPE 1
38851_ACEOF
38852
38853fi
38854
38855if test "$wxUSE_MINIFRAME" = "yes"; then
38856 cat >>confdefs.h <<\_ACEOF
38857#define wxUSE_MINIFRAME 1
38858_ACEOF
38859
38860 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram"
38861fi
38862
38863if test "$wxUSE_SYSTEM_OPTIONS" = "yes"; then
38864 cat >>confdefs.h <<\_ACEOF
38865#define wxUSE_SYSTEM_OPTIONS 1
38866_ACEOF
38867
38868 if test "$TOOLKIT" = "MSW" -o "$TOOLKIT" = "GTK" -o "$TOOLKIT" = "X11" -o \
a49baeab 38869 "$TOOLKIT" = "MOTIF" -o "$TOOLKIT" = "COCOA"; then
a848cd7e
SC
38870 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS taskbar"
38871 fi
38872fi
38873
38874
38875if test "$wxUSE_VALIDATORS" = "yes"; then
38876 cat >>confdefs.h <<\_ACEOF
38877#define wxUSE_VALIDATORS 1
38878_ACEOF
38879
38880 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate"
38881fi
38882
38883if test "$wxUSE_PALETTE" = "yes" ; then
38884 cat >>confdefs.h <<\_ACEOF
38885#define wxUSE_PALETTE 1
38886_ACEOF
38887
38888fi
38889
38890if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_MSLU" = "yes" ; then
38891 LIBS=" -lunicows $LIBS"
38892fi
38893
38894
38895if test "$wxUSE_IMAGE" = "yes" ; then
38896 cat >>confdefs.h <<\_ACEOF
38897#define wxUSE_IMAGE 1
38898_ACEOF
38899
38900
38901 if test "$wxUSE_GIF" = "yes" ; then
38902 cat >>confdefs.h <<\_ACEOF
38903#define wxUSE_GIF 1
38904_ACEOF
38905
38906 fi
38907
38908 if test "$wxUSE_PCX" = "yes" ; then
38909 cat >>confdefs.h <<\_ACEOF
38910#define wxUSE_PCX 1
38911_ACEOF
38912
38913 fi
38914
38915 if test "$wxUSE_IFF" = "yes" ; then
38916 cat >>confdefs.h <<\_ACEOF
38917#define wxUSE_IFF 1
38918_ACEOF
38919
38920 fi
38921
38922 if test "$wxUSE_PNM" = "yes" ; then
38923 cat >>confdefs.h <<\_ACEOF
38924#define wxUSE_PNM 1
38925_ACEOF
38926
38927 fi
38928
38929 if test "$wxUSE_XPM" = "yes" ; then
38930 cat >>confdefs.h <<\_ACEOF
38931#define wxUSE_XPM 1
38932_ACEOF
38933
38934 fi
38935
38936 if test "$wxUSE_ICO_CUR" = "yes" ; then
38937 cat >>confdefs.h <<\_ACEOF
38938#define wxUSE_ICO_CUR 1
38939_ACEOF
38940
38941 fi
38942fi
38943
38944
38945if test "$wxUSE_CHOICEDLG" = "yes"; then
38946 cat >>confdefs.h <<\_ACEOF
38947#define wxUSE_CHOICEDLG 1
38948_ACEOF
38949
38950fi
38951
38952if test "$wxUSE_COLOURDLG" = "yes"; then
38953 cat >>confdefs.h <<\_ACEOF
38954#define wxUSE_COLOURDLG 1
38955_ACEOF
38956
38957fi
38958
38959if test "$wxUSE_FILEDLG" = "yes"; then
38960 cat >>confdefs.h <<\_ACEOF
38961#define wxUSE_FILEDLG 1
38962_ACEOF
38963
38964fi
38965
38966if test "$wxUSE_FINDREPLDLG" = "yes"; then
38967 cat >>confdefs.h <<\_ACEOF
38968#define wxUSE_FINDREPLDLG 1
38969_ACEOF
38970
38971fi
38972
38973if test "$wxUSE_FONTDLG" = "yes"; then
38974 cat >>confdefs.h <<\_ACEOF
38975#define wxUSE_FONTDLG 1
38976_ACEOF
38977
38978fi
38979
38980if test "$wxUSE_DIRDLG" = "yes"; then
38981 if test "$wxUSE_TREECTRL" != "yes"; then
38982 { echo "$as_me:$LINENO: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&5
38983echo "$as_me: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&2;}
38984 else
38985 cat >>confdefs.h <<\_ACEOF
38986#define wxUSE_DIRDLG 1
38987_ACEOF
38988
38989 fi
38990fi
38991
38992if test "$wxUSE_MSGDLG" = "yes"; then
38993 cat >>confdefs.h <<\_ACEOF
38994#define wxUSE_MSGDLG 1
38995_ACEOF
38996
38997fi
38998
38999if test "$wxUSE_NUMBERDLG" = "yes"; then
39000 cat >>confdefs.h <<\_ACEOF
39001#define wxUSE_NUMBERDLG 1
39002_ACEOF
39003
39004fi
39005
39006if test "$wxUSE_PROGRESSDLG" = "yes"; then
39007 if test "$wxUSE_CONSTRAINTS" != "yes"; then
39008 { echo "$as_me:$LINENO: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&5
39009echo "$as_me: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&2;}
39010 else
39011 cat >>confdefs.h <<\_ACEOF
39012#define wxUSE_PROGRESSDLG 1
39013_ACEOF
39014
39015 fi
39016fi
39017
39018if test "$wxUSE_SPLASH" = "yes"; then
39019 cat >>confdefs.h <<\_ACEOF
39020#define wxUSE_SPLASH 1
39021_ACEOF
39022
2057db16 39023 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splash"
a848cd7e
SC
39024fi
39025
39026if test "$wxUSE_STARTUP_TIPS" = "yes"; then
39027 if test "$wxUSE_CONSTRAINTS" != "yes"; then
39028 { echo "$as_me:$LINENO: WARNING: Startup tips requires constraints and won't be compiled without them" >&5
39029echo "$as_me: WARNING: Startup tips requires constraints and won't be compiled without them" >&2;}
39030 else
39031 cat >>confdefs.h <<\_ACEOF
39032#define wxUSE_STARTUP_TIPS 1
39033_ACEOF
39034
39035 fi
39036fi
39037
39038if test "$wxUSE_TEXTDLG" = "yes"; then
39039 cat >>confdefs.h <<\_ACEOF
39040#define wxUSE_TEXTDLG 1
39041_ACEOF
39042
39043fi
39044
39045if test "$wxUSE_WIZARDDLG" = "yes"; then
39046 cat >>confdefs.h <<\_ACEOF
39047#define wxUSE_WIZARDDLG 1
39048_ACEOF
39049
39050 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard"
39051fi
39052
39053
ce756cb0
RN
39054if test "$wxUSE_MEDIACTRL" = "yes"; then
39055 if test "$wxUSE_MSW" = 1; then
39056 wxUSE_DIRECTSHOW="yes"
39057
39058for ac_header in dshow.h
39059do
39060as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
39061echo "$as_me:$LINENO: checking for $ac_header" >&5
39062echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
39063if eval "test \"\${$as_ac_Header+set}\" = set"; then
39064 echo $ECHO_N "(cached) $ECHO_C" >&6
39065else
39066 cat >conftest.$ac_ext <<_ACEOF
39067/* confdefs.h. */
39068_ACEOF
39069cat confdefs.h >>conftest.$ac_ext
39070cat >>conftest.$ac_ext <<_ACEOF
39071/* end confdefs.h. */
39072#include <windows.h>
39073
39074#include <$ac_header>
39075_ACEOF
39076rm -f conftest.$ac_objext
39077if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39078 (eval $ac_compile) 2>conftest.er1
39079 ac_status=$?
39080 grep -v '^ *+' conftest.er1 >conftest.err
39081 rm -f conftest.er1
39082 cat conftest.err >&5
39083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39084 (exit $ac_status); } &&
39085 { ac_try='test -z "$ac_c_werror_flag"
39086 || test ! -s conftest.err'
39087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39088 (eval $ac_try) 2>&5
39089 ac_status=$?
39090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39091 (exit $ac_status); }; } &&
39092 { ac_try='test -s conftest.$ac_objext'
39093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39094 (eval $ac_try) 2>&5
39095 ac_status=$?
39096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39097 (exit $ac_status); }; }; then
39098 eval "$as_ac_Header=yes"
39099else
39100 echo "$as_me: failed program was:" >&5
39101sed 's/^/| /' conftest.$ac_ext >&5
39102
39103eval "$as_ac_Header=no"
39104fi
39105rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39106fi
39107echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
39108echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
39109if test `eval echo '${'$as_ac_Header'}'` = yes; then
39110 cat >>confdefs.h <<_ACEOF
39111#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
39112_ACEOF
39113
39114else
39115
39116 wxUSE_DIRECTSHOW="no"
39117 { echo "$as_me:$LINENO: WARNING: DirectShow not installed; consider installing the DirectX7 SDK or higher" >&5
39118echo "$as_me: WARNING: DirectShow not installed; consider installing the DirectX7 SDK or higher" >&2;}
39119
39120fi
39121
39122done
39123
39124
39125 if test "$wxUSE_DIRECTSHOW" = "yes"; then
39126 cat >>confdefs.h <<\_ACEOF
39127#define wxUSE_DIRECTSHOW 1
39128_ACEOF
39129
39130 LIBS="$LIBS -lstrmiids"
39131 fi
39132 fi
39133
39134 if test "$wxUSE_GTK" = 1; then
39135 wxUSE_GSTREAMER="yes"
39136
ce756cb0 39137
dae87f93 39138 succeeded=no
ce756cb0 39139
dae87f93
RN
39140 if test -z "$PKG_CONFIG"; then
39141 # Extract the first word of "pkg-config", so it can be a program name with args.
39142set dummy pkg-config; ac_word=$2
39143echo "$as_me:$LINENO: checking for $ac_word" >&5
39144echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
39145if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
39146 echo $ECHO_N "(cached) $ECHO_C" >&6
39147else
39148 case $PKG_CONFIG in
39149 [\\/]* | ?:[\\/]*)
39150 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
39151 ;;
39152 *)
39153 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
39154for as_dir in $PATH
39155do
39156 IFS=$as_save_IFS
39157 test -z "$as_dir" && as_dir=.
39158 for ac_exec_ext in '' $ac_executable_extensions; do
39159 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
39160 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
39161 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
39162 break 2
39163 fi
39164done
39165done
39166
39167 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
39168 ;;
39169esac
39170fi
39171PKG_CONFIG=$ac_cv_path_PKG_CONFIG
39172
39173if test -n "$PKG_CONFIG"; then
39174 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
39175echo "${ECHO_T}$PKG_CONFIG" >&6
39176else
39177 echo "$as_me:$LINENO: result: no" >&5
39178echo "${ECHO_T}no" >&6
39179fi
39180
39181 fi
39182
39183 if test "$PKG_CONFIG" = "no" ; then
39184 echo "*** The pkg-config script could not be found. Make sure it is"
39185 echo "*** in your path, or set the PKG_CONFIG environment variable"
39186 echo "*** to the full path to pkg-config."
39187 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
39188 else
39189 PKG_CONFIG_MIN_VERSION=0.9.0
39190 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
39191 echo "$as_me:$LINENO: checking for gstreamer-0.8" >&5
39192echo $ECHO_N "checking for gstreamer-0.8... $ECHO_C" >&6
39193
39194 if $PKG_CONFIG --exists "gstreamer-0.8" ; then
39195 echo "$as_me:$LINENO: result: yes" >&5
ce756cb0 39196echo "${ECHO_T}yes" >&6
dae87f93 39197 succeeded=yes
ce756cb0 39198
dae87f93
RN
39199 echo "$as_me:$LINENO: checking GSTREAMER_CFLAGS" >&5
39200echo $ECHO_N "checking GSTREAMER_CFLAGS... $ECHO_C" >&6
39201 GSTREAMER_CFLAGS=`$PKG_CONFIG --cflags "gstreamer-0.8"`
39202 echo "$as_me:$LINENO: result: $GSTREAMER_CFLAGS" >&5
39203echo "${ECHO_T}$GSTREAMER_CFLAGS" >&6
39204
39205 echo "$as_me:$LINENO: checking GSTREAMER_LIBS" >&5
39206echo $ECHO_N "checking GSTREAMER_LIBS... $ECHO_C" >&6
39207 GSTREAMER_LIBS=`$PKG_CONFIG --libs "gstreamer-0.8"`
39208 echo "$as_me:$LINENO: result: $GSTREAMER_LIBS" >&5
39209echo "${ECHO_T}$GSTREAMER_LIBS" >&6
39210 else
39211 GSTREAMER_CFLAGS=""
39212 GSTREAMER_LIBS=""
39213 ## If we have a custom action on failure, don't print errors, but
39214 ## do set a variable so people can do so.
39215 GSTREAMER_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gstreamer-0.8"`
ce756cb0 39216
dae87f93
RN
39217 fi
39218
39219
39220
39221 else
39222 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
39223 echo "*** See http://www.freedesktop.org/software/pkgconfig"
39224 fi
39225 fi
39226
39227 if test $succeeded = yes; then
39228
39229 CPPFLAGS="$CPPFLAGS $GSTREAMER_CFLAGS"
39230 LIBS="$LIBS $GSTREAMER_LIBS -lgstplay-0.8"
ce756cb0 39231
ce756cb0 39232 else
dae87f93
RN
39233
39234 { echo "$as_me:$LINENO: WARNING: GStreamer installation not found" >&5
39235echo "$as_me: WARNING: GStreamer installation not found" >&2;}
39236 wxUSE_GSTREAMER="no"
39237
39238 fi
39239
39240
39241
39242
39243
39244 if test "x$GST_INSPECT" == "x"; then
39245 # Extract the first word of "gst-inspect", so it can be a program name with args.
39246set dummy gst-inspect; ac_word=$2
39247echo "$as_me:$LINENO: checking for $ac_word" >&5
39248echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
39249if test "${ac_cv_prog_GST_INSPECT+set}" = set; then
39250 echo $ECHO_N "(cached) $ECHO_C" >&6
39251else
39252 if test -n "$GST_INSPECT"; then
39253 ac_cv_prog_GST_INSPECT="$GST_INSPECT" # Let the user override the test.
39254else
39255as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
39256for as_dir in $PATH
39257do
39258 IFS=$as_save_IFS
39259 test -z "$as_dir" && as_dir=.
39260 for ac_exec_ext in '' $ac_executable_extensions; do
39261 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
39262 ac_cv_prog_GST_INSPECT="gst-inspect"
39263 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
39264 break 2
ce756cb0 39265 fi
dae87f93
RN
39266done
39267done
39268
39269fi
39270fi
39271GST_INSPECT=$ac_cv_prog_GST_INSPECT
39272if test -n "$GST_INSPECT"; then
39273 echo "$as_me:$LINENO: result: $GST_INSPECT" >&5
39274echo "${ECHO_T}$GST_INSPECT" >&6
39275else
39276 echo "$as_me:$LINENO: result: no" >&5
39277echo "${ECHO_T}no" >&6
39278fi
39279
39280 fi
39281
39282 if test "x$GST_INSPECT" != "x"; then
39283 echo "$as_me:$LINENO: checking GStreamer element xvimagesink" >&5
39284echo $ECHO_N "checking GStreamer element xvimagesink... $ECHO_C" >&6
39285 if $GST_INSPECT xvimagesink > /dev/null 2> /dev/null ; then
39286 echo "$as_me:$LINENO: result: found." >&5
39287echo "${ECHO_T}found." >&6
ce756cb0 39288
ce756cb0 39289 else
dae87f93
RN
39290 echo "$as_me:$LINENO: result: not found." >&5
39291echo "${ECHO_T}not found." >&6
39292
39293 wxUSE_GSTREAMER="no"
39294 { echo "$as_me:$LINENO: WARNING: x video sink not found - cannot use GStreamer" >&5
39295echo "$as_me: WARNING: x video sink not found - cannot use GStreamer" >&2;}
39296
39297 fi
39298 fi
39299
39300
39301 echo "$as_me:$LINENO: checking for gst/xoverlay/xoverlay.h" >&5
39302echo $ECHO_N "checking for gst/xoverlay/xoverlay.h... $ECHO_C" >&6
39303if test "${ac_cv_header_gst_xoverlay_xoverlay_h+set}" = set; then
39304 echo $ECHO_N "(cached) $ECHO_C" >&6
39305else
39306 cat >conftest.$ac_ext <<_ACEOF
ce756cb0
RN
39307/* confdefs.h. */
39308_ACEOF
39309cat confdefs.h >>conftest.$ac_ext
39310cat >>conftest.$ac_ext <<_ACEOF
39311/* end confdefs.h. */
dae87f93 39312#include <gst/gst.h>
ce756cb0 39313
dae87f93 39314#include <gst/xoverlay/xoverlay.h>
ce756cb0
RN
39315_ACEOF
39316rm -f conftest.$ac_objext
39317if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39318 (eval $ac_compile) 2>conftest.er1
39319 ac_status=$?
39320 grep -v '^ *+' conftest.er1 >conftest.err
39321 rm -f conftest.er1
39322 cat conftest.err >&5
39323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39324 (exit $ac_status); } &&
39325 { ac_try='test -z "$ac_c_werror_flag"
39326 || test ! -s conftest.err'
39327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39328 (eval $ac_try) 2>&5
39329 ac_status=$?
39330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39331 (exit $ac_status); }; } &&
39332 { ac_try='test -s conftest.$ac_objext'
39333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39334 (eval $ac_try) 2>&5
39335 ac_status=$?
39336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39337 (exit $ac_status); }; }; then
dae87f93 39338 ac_cv_header_gst_xoverlay_xoverlay_h=yes
ce756cb0
RN
39339else
39340 echo "$as_me: failed program was:" >&5
39341sed 's/^/| /' conftest.$ac_ext >&5
39342
dae87f93 39343ac_cv_header_gst_xoverlay_xoverlay_h=no
ce756cb0
RN
39344fi
39345rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
dae87f93
RN
39346fi
39347echo "$as_me:$LINENO: result: $ac_cv_header_gst_xoverlay_xoverlay_h" >&5
39348echo "${ECHO_T}$ac_cv_header_gst_xoverlay_xoverlay_h" >&6
39349if test $ac_cv_header_gst_xoverlay_xoverlay_h = yes; then
39350 :
39351else
ce756cb0 39352
dae87f93
RN
39353 wxUSE_GSTREAMER="no"
39354 { echo "$as_me:$LINENO: WARNING: xoverlay header not found, cannot use GStreamer" >&5
39355echo "$as_me: WARNING: xoverlay header not found, cannot use GStreamer" >&2;}
ce756cb0 39356
dae87f93 39357fi
ce756cb0 39358
dae87f93
RN
39359
39360
39361 echo "$as_me:$LINENO: checking for gstplay 0.8" >&5
ce756cb0
RN
39362echo $ECHO_N "checking for gstplay 0.8... $ECHO_C" >&6
39363
39364ac_find_libraries=
39365for ac_dir in $SEARCH_LIB /usr/lib;
39366 do
39367 for ac_extension in a so sl dylib; do
39368 if test -f "$ac_dir/libgstplay-0.8.$ac_extension"; then
39369 ac_find_libraries=$ac_dir
39370 break 2
39371 fi
39372 done
39373 done
39374
ce756cb0 39375
dae87f93
RN
39376 if test "$ac_find_libraries" = "" ; then
39377 echo "$as_me:$LINENO: result: no" >&5
39378echo "${ECHO_T}no" >&6
39379 wxUSE_GSTREAMER="no"
39380 else
39381 echo "$as_me:$LINENO: result: yes" >&5
ce756cb0 39382echo "${ECHO_T}yes" >&6
dae87f93 39383 fi
ce756cb0 39384
dae87f93
RN
39385 if test "$wxUSE_GSTREAMER" = "yes"; then
39386 cat >>confdefs.h <<\_ACEOF
ce756cb0
RN
39387#define wxUSE_GSTREAMER 1
39388_ACEOF
39389
dae87f93
RN
39390 echo "$as_me:$LINENO: result: GStreamer detection successful" >&5
39391echo "${ECHO_T}GStreamer detection successful" >&6
ce756cb0
RN
39392 fi
39393 fi
39394 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mediaplayer"
39395 cat >>confdefs.h <<\_ACEOF
39396#define wxUSE_MEDIACTRL 1
39397_ACEOF
39398
39399fi
39400
39401
a848cd7e
SC
39402if test "$cross_compiling" = "yes"; then
39403 OSINFO="\"$host\""
39404else
39405 OSINFO=`uname -s -r -m`
39406 OSINFO="\"$OSINFO\""
39407fi
39408
39409cat >>confdefs.h <<_ACEOF
39410#define WXWIN_OS_DESCRIPTION $OSINFO
39411_ACEOF
39412
39413
39414
39415if test "x$prefix" != "xNONE"; then
39416 wxPREFIX=$prefix
39417else
39418 wxPREFIX=$ac_default_prefix
39419fi
39420
39421cat >>confdefs.h <<_ACEOF
39422#define wxINSTALL_PREFIX "$wxPREFIX"
39423_ACEOF
39424
39425
a848cd7e
SC
39426
39427
39428CORE_BASE_LIBS="net base"
39429CORE_GUI_LIBS="adv core"
39430
39431if test "$wxUSE_XML" = "yes" ; then
39432 CORE_BASE_LIBS="xml $CORE_BASE_LIBS"
39433fi
39434if test "$wxUSE_ODBC" != "no" ; then
39435 CORE_BASE_LIBS="odbc $CORE_BASE_LIBS"
39436 CORE_GUI_LIBS="dbgrid $CORE_GUI_LIBS"
39437fi
39438if test "$wxUSE_HTML" = "yes" ; then
39439 CORE_GUI_LIBS="html $CORE_GUI_LIBS"
39440fi
9a8f0513
VS
39441if test "$wxUSE_XRC" = "yes" ; then
39442 CORE_GUI_LIBS="xrc $CORE_GUI_LIBS"
39443fi
a848cd7e
SC
39444
39445if test "$wxUSE_GUI" != "yes"; then
39446 CORE_GUI_LIBS=""
39447fi
39448
39449
39450
39451
39452
39453
39454
39455
39456if test "$wxUSE_MAC" = 1 ; then
a98bf0c0 39457 if test "$wxUSE_SOUND" = "yes" || test "$wxUSE_MEDIACTRL" = "yes"; then
1e9e8aba
DE
39458 if test "$USE_DARWIN" = 1; then
39459 LDFLAGS="$LDFLAGS -framework QuickTime"
39460 else
39461 LDFLAGS="$LDFLAGS -lQuickTimeLib"
39462 fi
07bea8f0 39463 fi
5dcf30a0 39464 if test "$USE_DARWIN" = 1; then
1e9e8aba
DE
39465 LDFLAGS="$LDFLAGS -framework IOKit -framework Carbon -framework Cocoa -framework System"
39466 else
39467 LDFLAGS="$LDFLAGS -lCarbonLib"
5dcf30a0 39468 fi
a848cd7e
SC
39469fi
39470if test "$wxUSE_COCOA" = 1 ; then
4cb1d3da 39471 LDFLAGS="$LDFLAGS -framework IOKit -framework Cocoa"
4fc81cbc
RN
39472 if test "$wxUSE_MEDIACTRL" = "yes"; then
39473 LDFLAGS="$LDFLAGS -framework QuickTime"
39474 fi
a848cd7e
SC
39475fi
39476
39477
39478LIBS="$ZLIB_LINK $POSIX4_LINK $INET_LINK $WCHAR_LINK $DL_LINK $LIBS"
39479
39480have_cos=0
39481have_floor=0
39482
39483for ac_func in cos
39484do
39485as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39486echo "$as_me:$LINENO: checking for $ac_func" >&5
39487echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
39488if eval "test \"\${$as_ac_var+set}\" = set"; then
39489 echo $ECHO_N "(cached) $ECHO_C" >&6
39490else
39491 cat >conftest.$ac_ext <<_ACEOF
39492/* confdefs.h. */
39493_ACEOF
39494cat confdefs.h >>conftest.$ac_ext
39495cat >>conftest.$ac_ext <<_ACEOF
39496/* end confdefs.h. */
ac1cb8d3
VS
39497/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39498 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39499#define $ac_func innocuous_$ac_func
39500
a848cd7e
SC
39501/* System header to define __stub macros and hopefully few prototypes,
39502 which can conflict with char $ac_func (); below.
39503 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39504 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 39505
a848cd7e
SC
39506#ifdef __STDC__
39507# include <limits.h>
39508#else
39509# include <assert.h>
39510#endif
ac1cb8d3
VS
39511
39512#undef $ac_func
39513
a848cd7e
SC
39514/* Override any gcc2 internal prototype to avoid an error. */
39515#ifdef __cplusplus
39516extern "C"
39517{
39518#endif
39519/* We use char because int might match the return type of a gcc2
39520 builtin and then its argument prototype would still apply. */
39521char $ac_func ();
39522/* The GNU C library defines this for functions which it implements
39523 to always fail with ENOSYS. Some functions are actually named
39524 something starting with __ and the normal name is an alias. */
39525#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
39526choke me
39527#else
39528char (*f) () = $ac_func;
39529#endif
39530#ifdef __cplusplus
39531}
39532#endif
39533
39534int
39535main ()
39536{
39537return f != $ac_func;
39538 ;
39539 return 0;
39540}
39541_ACEOF
39542rm -f conftest.$ac_objext conftest$ac_exeext
39543if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 39544 (eval $ac_link) 2>conftest.er1
a848cd7e 39545 ac_status=$?
ac1cb8d3
VS
39546 grep -v '^ *+' conftest.er1 >conftest.err
39547 rm -f conftest.er1
39548 cat conftest.err >&5
a848cd7e
SC
39549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39550 (exit $ac_status); } &&
89be85c2
VS
39551 { ac_try='test -z "$ac_c_werror_flag"
39552 || test ! -s conftest.err'
ac1cb8d3
VS
39553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39554 (eval $ac_try) 2>&5
39555 ac_status=$?
39556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39557 (exit $ac_status); }; } &&
39558 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
39559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39560 (eval $ac_try) 2>&5
39561 ac_status=$?
39562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39563 (exit $ac_status); }; }; then
39564 eval "$as_ac_var=yes"
39565else
39566 echo "$as_me: failed program was:" >&5
39567sed 's/^/| /' conftest.$ac_ext >&5
39568
39569eval "$as_ac_var=no"
39570fi
ac1cb8d3
VS
39571rm -f conftest.err conftest.$ac_objext \
39572 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
39573fi
39574echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
39575echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
39576if test `eval echo '${'$as_ac_var'}'` = yes; then
39577 cat >>confdefs.h <<_ACEOF
39578#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39579_ACEOF
39580 have_cos=1
39581fi
39582done
39583
39584
39585for ac_func in floor
39586do
39587as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39588echo "$as_me:$LINENO: checking for $ac_func" >&5
39589echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
39590if eval "test \"\${$as_ac_var+set}\" = set"; then
39591 echo $ECHO_N "(cached) $ECHO_C" >&6
39592else
39593 cat >conftest.$ac_ext <<_ACEOF
39594/* confdefs.h. */
39595_ACEOF
39596cat confdefs.h >>conftest.$ac_ext
39597cat >>conftest.$ac_ext <<_ACEOF
39598/* end confdefs.h. */
ac1cb8d3
VS
39599/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39600 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39601#define $ac_func innocuous_$ac_func
39602
a848cd7e
SC
39603/* System header to define __stub macros and hopefully few prototypes,
39604 which can conflict with char $ac_func (); below.
39605 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39606 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 39607
a848cd7e
SC
39608#ifdef __STDC__
39609# include <limits.h>
39610#else
39611# include <assert.h>
39612#endif
ac1cb8d3
VS
39613
39614#undef $ac_func
39615
a848cd7e
SC
39616/* Override any gcc2 internal prototype to avoid an error. */
39617#ifdef __cplusplus
39618extern "C"
39619{
39620#endif
39621/* We use char because int might match the return type of a gcc2
39622 builtin and then its argument prototype would still apply. */
39623char $ac_func ();
39624/* The GNU C library defines this for functions which it implements
39625 to always fail with ENOSYS. Some functions are actually named
39626 something starting with __ and the normal name is an alias. */
39627#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
39628choke me
39629#else
39630char (*f) () = $ac_func;
39631#endif
39632#ifdef __cplusplus
39633}
39634#endif
39635
39636int
39637main ()
39638{
39639return f != $ac_func;
39640 ;
39641 return 0;
39642}
39643_ACEOF
39644rm -f conftest.$ac_objext conftest$ac_exeext
39645if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 39646 (eval $ac_link) 2>conftest.er1
a848cd7e 39647 ac_status=$?
ac1cb8d3
VS
39648 grep -v '^ *+' conftest.er1 >conftest.err
39649 rm -f conftest.er1
39650 cat conftest.err >&5
a848cd7e
SC
39651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39652 (exit $ac_status); } &&
89be85c2
VS
39653 { ac_try='test -z "$ac_c_werror_flag"
39654 || test ! -s conftest.err'
ac1cb8d3
VS
39655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39656 (eval $ac_try) 2>&5
39657 ac_status=$?
39658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39659 (exit $ac_status); }; } &&
39660 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
39661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39662 (eval $ac_try) 2>&5
39663 ac_status=$?
39664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39665 (exit $ac_status); }; }; then
39666 eval "$as_ac_var=yes"
39667else
39668 echo "$as_me: failed program was:" >&5
39669sed 's/^/| /' conftest.$ac_ext >&5
39670
39671eval "$as_ac_var=no"
39672fi
ac1cb8d3
VS
39673rm -f conftest.err conftest.$ac_objext \
39674 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
39675fi
39676echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
39677echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
39678if test `eval echo '${'$as_ac_var'}'` = yes; then
39679 cat >>confdefs.h <<_ACEOF
39680#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39681_ACEOF
39682 have_floor=1
39683fi
39684done
39685
39686echo "$as_me:$LINENO: checking if floating point functions link without -lm" >&5
39687echo $ECHO_N "checking if floating point functions link without -lm... $ECHO_C" >&6
39688if test "$have_cos" = 1 -a "$have_floor" = 1; then
39689 echo "$as_me:$LINENO: result: yes" >&5
39690echo "${ECHO_T}yes" >&6
39691else
39692 echo "$as_me:$LINENO: result: no" >&5
39693echo "${ECHO_T}no" >&6
39694 LIBS="$LIBS -lm"
39695 # use different functions to avoid configure caching
39696 have_sin=0
39697 have_ceil=0
39698
39699for ac_func in sin
39700do
39701as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39702echo "$as_me:$LINENO: checking for $ac_func" >&5
39703echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
39704if eval "test \"\${$as_ac_var+set}\" = set"; then
39705 echo $ECHO_N "(cached) $ECHO_C" >&6
39706else
39707 cat >conftest.$ac_ext <<_ACEOF
39708/* confdefs.h. */
39709_ACEOF
39710cat confdefs.h >>conftest.$ac_ext
39711cat >>conftest.$ac_ext <<_ACEOF
39712/* end confdefs.h. */
ac1cb8d3
VS
39713/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39714 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39715#define $ac_func innocuous_$ac_func
39716
a848cd7e
SC
39717/* System header to define __stub macros and hopefully few prototypes,
39718 which can conflict with char $ac_func (); below.
39719 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39720 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 39721
a848cd7e
SC
39722#ifdef __STDC__
39723# include <limits.h>
39724#else
39725# include <assert.h>
39726#endif
ac1cb8d3
VS
39727
39728#undef $ac_func
39729
a848cd7e
SC
39730/* Override any gcc2 internal prototype to avoid an error. */
39731#ifdef __cplusplus
39732extern "C"
39733{
39734#endif
39735/* We use char because int might match the return type of a gcc2
39736 builtin and then its argument prototype would still apply. */
39737char $ac_func ();
39738/* The GNU C library defines this for functions which it implements
39739 to always fail with ENOSYS. Some functions are actually named
39740 something starting with __ and the normal name is an alias. */
39741#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
39742choke me
39743#else
39744char (*f) () = $ac_func;
39745#endif
39746#ifdef __cplusplus
39747}
39748#endif
39749
39750int
39751main ()
39752{
39753return f != $ac_func;
39754 ;
39755 return 0;
39756}
39757_ACEOF
39758rm -f conftest.$ac_objext conftest$ac_exeext
39759if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 39760 (eval $ac_link) 2>conftest.er1
a848cd7e 39761 ac_status=$?
ac1cb8d3
VS
39762 grep -v '^ *+' conftest.er1 >conftest.err
39763 rm -f conftest.er1
39764 cat conftest.err >&5
a848cd7e
SC
39765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39766 (exit $ac_status); } &&
89be85c2
VS
39767 { ac_try='test -z "$ac_c_werror_flag"
39768 || test ! -s conftest.err'
ac1cb8d3
VS
39769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39770 (eval $ac_try) 2>&5
39771 ac_status=$?
39772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39773 (exit $ac_status); }; } &&
39774 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
39775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39776 (eval $ac_try) 2>&5
39777 ac_status=$?
39778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39779 (exit $ac_status); }; }; then
39780 eval "$as_ac_var=yes"
39781else
39782 echo "$as_me: failed program was:" >&5
39783sed 's/^/| /' conftest.$ac_ext >&5
39784
39785eval "$as_ac_var=no"
39786fi
ac1cb8d3
VS
39787rm -f conftest.err conftest.$ac_objext \
39788 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
39789fi
39790echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
39791echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
39792if test `eval echo '${'$as_ac_var'}'` = yes; then
39793 cat >>confdefs.h <<_ACEOF
39794#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39795_ACEOF
39796 have_sin=1
39797fi
39798done
39799
39800
39801for ac_func in ceil
39802do
39803as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39804echo "$as_me:$LINENO: checking for $ac_func" >&5
39805echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
39806if eval "test \"\${$as_ac_var+set}\" = set"; then
39807 echo $ECHO_N "(cached) $ECHO_C" >&6
39808else
39809 cat >conftest.$ac_ext <<_ACEOF
39810/* confdefs.h. */
39811_ACEOF
39812cat confdefs.h >>conftest.$ac_ext
39813cat >>conftest.$ac_ext <<_ACEOF
39814/* end confdefs.h. */
ac1cb8d3
VS
39815/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39816 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39817#define $ac_func innocuous_$ac_func
39818
a848cd7e
SC
39819/* System header to define __stub macros and hopefully few prototypes,
39820 which can conflict with char $ac_func (); below.
39821 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39822 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 39823
a848cd7e
SC
39824#ifdef __STDC__
39825# include <limits.h>
39826#else
39827# include <assert.h>
39828#endif
ac1cb8d3
VS
39829
39830#undef $ac_func
39831
a848cd7e
SC
39832/* Override any gcc2 internal prototype to avoid an error. */
39833#ifdef __cplusplus
39834extern "C"
39835{
39836#endif
39837/* We use char because int might match the return type of a gcc2
39838 builtin and then its argument prototype would still apply. */
39839char $ac_func ();
39840/* The GNU C library defines this for functions which it implements
39841 to always fail with ENOSYS. Some functions are actually named
39842 something starting with __ and the normal name is an alias. */
39843#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
39844choke me
39845#else
39846char (*f) () = $ac_func;
39847#endif
39848#ifdef __cplusplus
39849}
39850#endif
39851
39852int
39853main ()
39854{
39855return f != $ac_func;
39856 ;
39857 return 0;
39858}
39859_ACEOF
39860rm -f conftest.$ac_objext conftest$ac_exeext
39861if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 39862 (eval $ac_link) 2>conftest.er1
a848cd7e 39863 ac_status=$?
ac1cb8d3
VS
39864 grep -v '^ *+' conftest.er1 >conftest.err
39865 rm -f conftest.er1
39866 cat conftest.err >&5
a848cd7e
SC
39867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39868 (exit $ac_status); } &&
89be85c2
VS
39869 { ac_try='test -z "$ac_c_werror_flag"
39870 || test ! -s conftest.err'
ac1cb8d3
VS
39871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39872 (eval $ac_try) 2>&5
39873 ac_status=$?
39874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39875 (exit $ac_status); }; } &&
39876 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
39877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39878 (eval $ac_try) 2>&5
39879 ac_status=$?
39880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39881 (exit $ac_status); }; }; then
39882 eval "$as_ac_var=yes"
39883else
39884 echo "$as_me: failed program was:" >&5
39885sed 's/^/| /' conftest.$ac_ext >&5
39886
39887eval "$as_ac_var=no"
39888fi
ac1cb8d3
VS
39889rm -f conftest.err conftest.$ac_objext \
39890 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
39891fi
39892echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
39893echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
39894if test `eval echo '${'$as_ac_var'}'` = yes; then
39895 cat >>confdefs.h <<_ACEOF
39896#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39897_ACEOF
39898 have_ceil=1
39899fi
39900done
39901
39902 echo "$as_me:$LINENO: checking if floating point functions link with -lm" >&5
39903echo $ECHO_N "checking if floating point functions link with -lm... $ECHO_C" >&6
39904 if test "$have_sin" = 1 -a "$have_ceil" = 1; then
39905 echo "$as_me:$LINENO: result: yes" >&5
39906echo "${ECHO_T}yes" >&6
39907 else
39908 echo "$as_me:$LINENO: result: no" >&5
39909echo "${ECHO_T}no" >&6
39910 # not sure we should warn the user, crash, etc.
39911 fi
39912fi
39913
39914if test "$wxUSE_GUI" = "yes"; then
39915
39916
39917 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS artprov controls dialogs \
39918 drawing dynamic erase event exec font image \
39919 minimal propsize rotate shaped widgets render"
39920
39921 if test "$wxUSE_MONOLITHIC" != "yes"; then
39922 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS console"
39923 fi
39924else
39925 SAMPLES_SUBDIRS="console"
39926fi
39927
39928
ceec2216 39929INCLUDES="-I\${top_builddir}lib/wx/include/${TOOLCHAIN_FULLNAME} \
a848cd7e
SC
39930-I\${top_srcdir}/include $TOOLKIT_INCLUDE"
39931
39932if test "$GXX" = yes ; then
5294a27e
VZ
39933 CWARNINGS="-Wall"
39934 CXXWARNINGS="$CWARNINGS -Wno-ctor-dtor-privacy"
a848cd7e
SC
39935 fi
39936
39937EXTRA_CFLAGS="$WXDEBUG $WXODBCFLAG $PROFILE $OPTIMISE"
39938
0c3c69fc 39939CPPFLAGS=`echo $WXDEBUG_DEFINE $INCLUDES $CPPFLAGS`
5294a27e 39940CFLAGS=`echo $CODE_GEN_FLAGS $EXTRA_CFLAGS $CFLAGS $CWARNINGS`
0c3c69fc 39941CXXFLAGS=`echo $CODE_GEN_FLAGS $CODE_GEN_FLAGS_CXX $EXTRA_CFLAGS $CXXFLAGS $CXXWARNINGS`
a848cd7e 39942
95986553
DE
39943if test "x$MWCC" = "xyes"; then
39944
39945 CC="$CC -cwd source -I-"
39946 CXX="$CXX -cwd source -I-"
39947fi
39948
a848cd7e 39949
0c3c69fc 39950LIBS=`echo $LIBS`
a848cd7e
SC
39951EXTRALIBS="$LDFLAGS $LDFLAGS_VERSIONING $LIBS $DMALLOC_LIBS"
39952EXTRALIBS_XML="$EXPAT_LINK"
39953EXTRALIBS_HTML="$MSPACK_LINK"
39954EXTRALIBS_ODBC="$ODBC_LINK"
39955if test "$wxUSE_GUI" = "yes"; then
2e350179 39956 EXTRALIBS_GUI=`echo $GUI_TK_LIBRARY $PNG_LINK $JPEG_LINK $TIFF_LINK $WEBKIT_LINK $EXTRALIBS_GNOMEPRINT`
a848cd7e
SC
39957fi
39958if test "$wxUSE_OPENGL" = "yes"; then
39959 EXTRALIBS_OPENGL="$LDFLAGS_GL $OPENGL_LIBS"
39960fi
39961
39962LDFLAGS="$LDFLAGS $PROFILE"
39963
39964if test "$wxUSE_GTK" = 1; then
39965 WXCONFIG_INCLUDE=
39966else
39967 WXCONFIG_INCLUDE="$TOOLKIT_INCLUDE"
39968fi
39969
39970WXCONFIG_EXTRALIBS="$LIBS"
39971
39972if test "$wxUSE_REGEX" = "builtin" ; then
39973 wxconfig_3rdparty="$wxconfig_3rdparty regex${lib_unicode_suffix}"
39974fi
39975if test "$wxUSE_EXPAT" = "builtin" ; then
39976 wxconfig_3rdparty="$wxconfig_3rdparty expat"
39977fi
39978if test "$wxUSE_ODBC" = "builtin" ; then
39979 wxconfig_3rdparty="$wxconfig_3rdparty odbc"
39980fi
39981if test "$wxUSE_LIBTIFF" = "builtin" ; then
39982 wxconfig_3rdparty="$wxconfig_3rdparty tiff"
39983fi
39984if test "$wxUSE_LIBJPEG" = "builtin" ; then
39985 wxconfig_3rdparty="$wxconfig_3rdparty jpeg"
39986fi
39987if test "$wxUSE_LIBPNG" = "builtin" ; then
39988 wxconfig_3rdparty="$wxconfig_3rdparty png"
39989fi
39990if test "$wxUSE_ZLIB" = "builtin" ; then
39991 wxconfig_3rdparty="$wxconfig_3rdparty zlib"
39992fi
39993if test "$wxUSE_ODBC" = "builtin" ; then
39994 wxconfig_3rdparty="$wxconfig_3rdparty odbc"
39995fi
39996
39997for i in $wxconfig_3rdparty ; do
ceec2216 39998 WXCONFIG_EXTRALIBS="$WXCONFIG_EXTRALIBS -lwx${i}${lib_debug_suffix}${WX_LIB_FLAVOUR}-${WX_RELEASE}${HOST_SUFFIX}"
a848cd7e
SC
39999done
40000
40001
40002if test "x$wxUSE_UNIVERSAL" = "xyes" ; then
40003 WXUNIV=1
40004else
40005 WXUNIV=0
40006fi
40007
40008
40009
40010
40011
40012
40013
40014
40015
40016if test $wxUSE_MONOLITHIC = "yes" ; then
40017 MONOLITHIC=1
40018else
40019 MONOLITHIC=0
40020fi
40021
40022if test $wxUSE_PLUGINS = "yes" ; then
40023 USE_PLUGINS=1
40024else
40025 USE_PLUGINS=0
40026fi
40027
40028if test $wxUSE_ODBC != "no" ; then
40029 USE_ODBC=1
40030else
40031 USE_ODBC=0
40032fi
40033
40034if test $wxUSE_OFFICIAL_BUILD = "yes" ; then
40035 OFFICIAL_BUILD=1
40036else
40037 OFFICIAL_BUILD=0
40038fi
40039
40040
40041
40042
40043
40044
40045
40046
40047
40048
40049
40050
40051
40052
40053
40054
40055
40056
40057
ceec2216 40058
d1c38808 40059
a848cd7e
SC
40060
40061
40062TOOLKIT_LOWERCASE=`echo $TOOLKIT | tr "[A-Z]" "[a-z]"`
40063
40064
40065
40066
40067
40068
40069
40070
4d4ff94c
VZ
40071case "$TOOLKIT" in
40072 GTK)
40073 TOOLKIT_USER="GTK+"
40074 if test "$WXGTK20" = 1; then
40075 TOOLKIT_USER="$TOOLKIT_USER 2"
40076 fi
9a8f0513 40077 ;;
4d4ff94c
VZ
40078
40079 *)
40080 TOOLKIT_USER=$TOOLKIT_LOWERCASE
9a8f0513 40081 ;;
4d4ff94c 40082esac
a848cd7e 40083
9a8f0513 40084
1e9e8aba
DE
40085
40086
a848cd7e
SC
40087 if test "x$BAKEFILE_HOST" = "x"; then
40088 BAKEFILE_HOST="${host}"
40089 fi
40090
40091 if test "x$BAKEFILE_CHECK_BASICS" != "xno"; then
40092
40093 if test -n "$ac_tool_prefix"; then
40094 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
40095set dummy ${ac_tool_prefix}ranlib; ac_word=$2
40096echo "$as_me:$LINENO: checking for $ac_word" >&5
40097echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
40098if test "${ac_cv_prog_RANLIB+set}" = set; then
40099 echo $ECHO_N "(cached) $ECHO_C" >&6
40100else
40101 if test -n "$RANLIB"; then
40102 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
40103else
40104as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
40105for as_dir in $PATH
40106do
40107 IFS=$as_save_IFS
40108 test -z "$as_dir" && as_dir=.
40109 for ac_exec_ext in '' $ac_executable_extensions; do
40110 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
40111 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
40112 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
40113 break 2
40114 fi
40115done
40116done
40117
40118fi
40119fi
40120RANLIB=$ac_cv_prog_RANLIB
40121if test -n "$RANLIB"; then
40122 echo "$as_me:$LINENO: result: $RANLIB" >&5
40123echo "${ECHO_T}$RANLIB" >&6
40124else
40125 echo "$as_me:$LINENO: result: no" >&5
40126echo "${ECHO_T}no" >&6
40127fi
40128
40129fi
40130if test -z "$ac_cv_prog_RANLIB"; then
40131 ac_ct_RANLIB=$RANLIB
40132 # Extract the first word of "ranlib", so it can be a program name with args.
40133set dummy ranlib; ac_word=$2
40134echo "$as_me:$LINENO: checking for $ac_word" >&5
40135echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
40136if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
40137 echo $ECHO_N "(cached) $ECHO_C" >&6
40138else
40139 if test -n "$ac_ct_RANLIB"; then
40140 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
40141else
40142as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
40143for as_dir in $PATH
40144do
40145 IFS=$as_save_IFS
40146 test -z "$as_dir" && as_dir=.
40147 for ac_exec_ext in '' $ac_executable_extensions; do
40148 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
40149 ac_cv_prog_ac_ct_RANLIB="ranlib"
40150 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
40151 break 2
40152 fi
40153done
40154done
40155
40156 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
40157fi
40158fi
40159ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
40160if test -n "$ac_ct_RANLIB"; then
40161 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
40162echo "${ECHO_T}$ac_ct_RANLIB" >&6
40163else
40164 echo "$as_me:$LINENO: result: no" >&5
40165echo "${ECHO_T}no" >&6
40166fi
40167
40168 RANLIB=$ac_ct_RANLIB
40169else
40170 RANLIB="$ac_cv_prog_RANLIB"
40171fi
40172
40173 # Find a good install program. We prefer a C program (faster),
40174# so one script is as good as another. But avoid the broken or
40175# incompatible versions:
40176# SysV /etc/install, /usr/sbin/install
40177# SunOS /usr/etc/install
40178# IRIX /sbin/install
40179# AIX /bin/install
40180# AmigaOS /C/install, which installs bootblocks on floppy discs
40181# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
40182# AFS /usr/afsws/bin/install, which mishandles nonexistent args
40183# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
ac1cb8d3 40184# OS/2's system install, which has a completely different semantic
a848cd7e
SC
40185# ./install, which can be erroneously created by make from ./install.sh.
40186echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
40187echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
40188if test -z "$INSTALL"; then
40189if test "${ac_cv_path_install+set}" = set; then
40190 echo $ECHO_N "(cached) $ECHO_C" >&6
40191else
40192 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
40193for as_dir in $PATH
40194do
40195 IFS=$as_save_IFS
40196 test -z "$as_dir" && as_dir=.
40197 # Account for people who put trailing slashes in PATH elements.
40198case $as_dir/ in
40199 ./ | .// | /cC/* | \
40200 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
ac1cb8d3 40201 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
a848cd7e
SC
40202 /usr/ucb/* ) ;;
40203 *)
40204 # OSF1 and SCO ODT 3.0 have their own names for install.
40205 # Don't use installbsd from OSF since it installs stuff as root
40206 # by default.
40207 for ac_prog in ginstall scoinst install; do
40208 for ac_exec_ext in '' $ac_executable_extensions; do
ac1cb8d3
VS
40209 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
40210 if test $ac_prog = install &&
40211 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
40212 # AIX install. It has an incompatible calling convention.
40213 :
40214 elif test $ac_prog = install &&
40215 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
40216 # program-specific install script used by HP pwplus--don't use.
40217 :
40218 else
40219 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
40220 break 3
40221 fi
40222 fi
a848cd7e
SC
40223 done
40224 done
40225 ;;
40226esac
40227done
40228
40229
40230fi
40231 if test "${ac_cv_path_install+set}" = set; then
40232 INSTALL=$ac_cv_path_install
40233 else
40234 # As a last resort, use the slow shell script. We don't cache a
40235 # path for INSTALL within a source directory, because that will
40236 # break other packages using the cache if that directory is
40237 # removed, or if the path is relative.
40238 INSTALL=$ac_install_sh
40239 fi
40240fi
40241echo "$as_me:$LINENO: result: $INSTALL" >&5
40242echo "${ECHO_T}$INSTALL" >&6
40243
40244# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
40245# It thinks the first close brace ends the variable substitution.
40246test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
40247
40248test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
40249
40250test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
40251
40252 echo "$as_me:$LINENO: checking whether ln -s works" >&5
40253echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
40254LN_S=$as_ln_s
40255if test "$LN_S" = "ln -s"; then
40256 echo "$as_me:$LINENO: result: yes" >&5
40257echo "${ECHO_T}yes" >&6
40258else
40259 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
40260echo "${ECHO_T}no, using $LN_S" >&6
40261fi
40262
40263
40264 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
40265echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
ac1cb8d3 40266set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
a848cd7e
SC
40267if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
40268 echo $ECHO_N "(cached) $ECHO_C" >&6
40269else
40270 cat >conftest.make <<\_ACEOF
40271all:
40272 @echo 'ac_maketemp="$(MAKE)"'
40273_ACEOF
40274# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
40275eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
40276if test -n "$ac_maketemp"; then
40277 eval ac_cv_prog_make_${ac_make}_set=yes
40278else
40279 eval ac_cv_prog_make_${ac_make}_set=no
40280fi
40281rm -f conftest.make
40282fi
40283if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
40284 echo "$as_me:$LINENO: result: yes" >&5
40285echo "${ECHO_T}yes" >&6
40286 SET_MAKE=
40287else
40288 echo "$as_me:$LINENO: result: no" >&5
40289echo "${ECHO_T}no" >&6
40290 SET_MAKE="MAKE=${MAKE-make}"
40291fi
40292
40293
40294
40295 if test -n "$ac_tool_prefix"; then
40296 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
40297set dummy ${ac_tool_prefix}ar; ac_word=$2
40298echo "$as_me:$LINENO: checking for $ac_word" >&5
40299echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
40300if test "${ac_cv_prog_AR+set}" = set; then
40301 echo $ECHO_N "(cached) $ECHO_C" >&6
40302else
40303 if test -n "$AR"; then
40304 ac_cv_prog_AR="$AR" # Let the user override the test.
40305else
40306as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
40307for as_dir in $PATH
40308do
40309 IFS=$as_save_IFS
40310 test -z "$as_dir" && as_dir=.
40311 for ac_exec_ext in '' $ac_executable_extensions; do
40312 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
40313 ac_cv_prog_AR="${ac_tool_prefix}ar"
40314 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
40315 break 2
40316 fi
40317done
40318done
40319
40320fi
40321fi
40322AR=$ac_cv_prog_AR
40323if test -n "$AR"; then
40324 echo "$as_me:$LINENO: result: $AR" >&5
40325echo "${ECHO_T}$AR" >&6
40326else
40327 echo "$as_me:$LINENO: result: no" >&5
40328echo "${ECHO_T}no" >&6
40329fi
40330
40331fi
40332if test -z "$ac_cv_prog_AR"; then
40333 ac_ct_AR=$AR
40334 # Extract the first word of "ar", so it can be a program name with args.
40335set dummy ar; ac_word=$2
40336echo "$as_me:$LINENO: checking for $ac_word" >&5
40337echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
40338if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
40339 echo $ECHO_N "(cached) $ECHO_C" >&6
40340else
40341 if test -n "$ac_ct_AR"; then
40342 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
40343else
40344as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
40345for as_dir in $PATH
40346do
40347 IFS=$as_save_IFS
40348 test -z "$as_dir" && as_dir=.
40349 for ac_exec_ext in '' $ac_executable_extensions; do
40350 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
40351 ac_cv_prog_ac_ct_AR="ar"
40352 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
40353 break 2
40354 fi
40355done
40356done
40357
40358 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
40359fi
40360fi
40361ac_ct_AR=$ac_cv_prog_ac_ct_AR
40362if test -n "$ac_ct_AR"; then
40363 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
40364echo "${ECHO_T}$ac_ct_AR" >&6
40365else
40366 echo "$as_me:$LINENO: result: no" >&5
40367echo "${ECHO_T}no" >&6
40368fi
40369
40370 AR=$ac_ct_AR
40371else
40372 AR="$ac_cv_prog_AR"
40373fi
40374
40375 if test -n "$ac_tool_prefix"; then
40376 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
40377set dummy ${ac_tool_prefix}strip; ac_word=$2
40378echo "$as_me:$LINENO: checking for $ac_word" >&5
40379echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
40380if test "${ac_cv_prog_STRIP+set}" = set; then
40381 echo $ECHO_N "(cached) $ECHO_C" >&6
40382else
40383 if test -n "$STRIP"; then
40384 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
40385else
40386as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
40387for as_dir in $PATH
40388do
40389 IFS=$as_save_IFS
40390 test -z "$as_dir" && as_dir=.
40391 for ac_exec_ext in '' $ac_executable_extensions; do
40392 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
40393 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
40394 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
40395 break 2
40396 fi
40397done
40398done
40399
40400fi
40401fi
40402STRIP=$ac_cv_prog_STRIP
40403if test -n "$STRIP"; then
40404 echo "$as_me:$LINENO: result: $STRIP" >&5
40405echo "${ECHO_T}$STRIP" >&6
40406else
40407 echo "$as_me:$LINENO: result: no" >&5
40408echo "${ECHO_T}no" >&6
40409fi
40410
40411fi
40412if test -z "$ac_cv_prog_STRIP"; then
40413 ac_ct_STRIP=$STRIP
40414 # Extract the first word of "strip", so it can be a program name with args.
40415set dummy strip; ac_word=$2
40416echo "$as_me:$LINENO: checking for $ac_word" >&5
40417echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
40418if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
40419 echo $ECHO_N "(cached) $ECHO_C" >&6
40420else
40421 if test -n "$ac_ct_STRIP"; then
40422 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
40423else
40424as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
40425for as_dir in $PATH
40426do
40427 IFS=$as_save_IFS
40428 test -z "$as_dir" && as_dir=.
40429 for ac_exec_ext in '' $ac_executable_extensions; do
40430 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
40431 ac_cv_prog_ac_ct_STRIP="strip"
40432 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
40433 break 2
40434 fi
40435done
40436done
40437
40438 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
40439fi
40440fi
40441ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
40442if test -n "$ac_ct_STRIP"; then
40443 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
40444echo "${ECHO_T}$ac_ct_STRIP" >&6
40445else
40446 echo "$as_me:$LINENO: result: no" >&5
40447echo "${ECHO_T}no" >&6
40448fi
40449
40450 STRIP=$ac_ct_STRIP
40451else
40452 STRIP="$ac_cv_prog_STRIP"
40453fi
40454
40455 if test -n "$ac_tool_prefix"; then
40456 # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
40457set dummy ${ac_tool_prefix}nm; ac_word=$2
40458echo "$as_me:$LINENO: checking for $ac_word" >&5
40459echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
40460if test "${ac_cv_prog_NM+set}" = set; then
40461 echo $ECHO_N "(cached) $ECHO_C" >&6
40462else
40463 if test -n "$NM"; then
40464 ac_cv_prog_NM="$NM" # Let the user override the test.
40465else
40466as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
40467for as_dir in $PATH
40468do
40469 IFS=$as_save_IFS
40470 test -z "$as_dir" && as_dir=.
40471 for ac_exec_ext in '' $ac_executable_extensions; do
40472 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
40473 ac_cv_prog_NM="${ac_tool_prefix}nm"
40474 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
40475 break 2
40476 fi
40477done
40478done
40479
40480fi
40481fi
40482NM=$ac_cv_prog_NM
40483if test -n "$NM"; then
40484 echo "$as_me:$LINENO: result: $NM" >&5
40485echo "${ECHO_T}$NM" >&6
40486else
40487 echo "$as_me:$LINENO: result: no" >&5
40488echo "${ECHO_T}no" >&6
40489fi
40490
40491fi
40492if test -z "$ac_cv_prog_NM"; then
40493 ac_ct_NM=$NM
40494 # Extract the first word of "nm", so it can be a program name with args.
40495set dummy nm; ac_word=$2
40496echo "$as_me:$LINENO: checking for $ac_word" >&5
40497echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
40498if test "${ac_cv_prog_ac_ct_NM+set}" = set; then
40499 echo $ECHO_N "(cached) $ECHO_C" >&6
40500else
40501 if test -n "$ac_ct_NM"; then
40502 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
40503else
40504as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
40505for as_dir in $PATH
40506do
40507 IFS=$as_save_IFS
40508 test -z "$as_dir" && as_dir=.
40509 for ac_exec_ext in '' $ac_executable_extensions; do
40510 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
40511 ac_cv_prog_ac_ct_NM="nm"
40512 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
40513 break 2
40514 fi
40515done
40516done
40517
40518 test -z "$ac_cv_prog_ac_ct_NM" && ac_cv_prog_ac_ct_NM=":"
40519fi
40520fi
40521ac_ct_NM=$ac_cv_prog_ac_ct_NM
40522if test -n "$ac_ct_NM"; then
40523 echo "$as_me:$LINENO: result: $ac_ct_NM" >&5
40524echo "${ECHO_T}$ac_ct_NM" >&6
40525else
40526 echo "$as_me:$LINENO: result: no" >&5
40527echo "${ECHO_T}no" >&6
40528fi
40529
40530 NM=$ac_ct_NM
40531else
40532 NM="$ac_cv_prog_NM"
40533fi
40534
40535
40536 case ${BAKEFILE_HOST} in
40537 *-hp-hpux* )
1e9e8aba 40538 INSTALL_DIR="mkdir -p"
a848cd7e
SC
40539 ;;
40540 *) INSTALL_DIR="$INSTALL -d"
40541 ;;
40542 esac
40543
40544
40545 LDFLAGS_GUI=
40546 case ${BAKEFILE_HOST} in
40547 *-*-cygwin* | *-*-mingw32* )
40548 LDFLAGS_GUI="-mwindows"
40549 esac
40550
40551
40552 fi
40553
40554 echo "$as_me:$LINENO: checking if make is GNU make" >&5
40555echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6
40556if test "${bakefile_cv_prog_makeisgnu+set}" = set; then
40557 echo $ECHO_N "(cached) $ECHO_C" >&6
40558else
40559
40560 if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
40561 egrep -s GNU > /dev/null); then
40562 bakefile_cv_prog_makeisgnu="yes"
40563 else
40564 bakefile_cv_prog_makeisgnu="no"
40565 fi
40566
40567fi
40568echo "$as_me:$LINENO: result: $bakefile_cv_prog_makeisgnu" >&5
40569echo "${ECHO_T}$bakefile_cv_prog_makeisgnu" >&6
40570
40571 if test "x$bakefile_cv_prog_makeisgnu" = "xyes"; then
40572 IF_GNU_MAKE=""
40573 else
40574 IF_GNU_MAKE="#"
40575 fi
40576
40577
40578
40579 PLATFORM_UNIX=0
40580 PLATFORM_WIN32=0
40581 PLATFORM_MSDOS=0
40582 PLATFORM_MAC=0
1e9e8aba 40583 PLATFORM_MACOS=0
a848cd7e
SC
40584 PLATFORM_MACOSX=0
40585 PLATFORM_OS2=0
1e9e8aba 40586 PLATFORM_BEOS=0
a848cd7e
SC
40587
40588 if test "x$BAKEFILE_FORCE_PLATFORM" = "x"; then
40589 case "${BAKEFILE_HOST}" in
40590 *-*-cygwin* | *-*-mingw32* )
40591 PLATFORM_WIN32=1
40592 ;;
40593 *-pc-msdosdjgpp )
40594 PLATFORM_MSDOS=1
40595 ;;
40596 *-pc-os2_emx | *-pc-os2-emx )
40597 PLATFORM_OS2=1
40598 ;;
40599 powerpc-*-darwin* )
40600 PLATFORM_MAC=1
40601 PLATFORM_MACOSX=1
40602 ;;
1e9e8aba
DE
40603 *-*-beos* )
40604 PLATFORM_BEOS=1
40605 ;;
40606 powerpc-apple-macos* )
40607 PLATFORM_MAC=1
40608 PLATFORM_MACOS=1
40609 ;;
a848cd7e
SC
40610 * )
40611 PLATFORM_UNIX=1
40612 ;;
40613 esac
40614 else
40615 case "$BAKEFILE_FORCE_PLATFORM" in
40616 win32 )
40617 PLATFORM_WIN32=1
40618 ;;
40619 msdos )
40620 PLATFORM_MSDOS=1
40621 ;;
40622 os2 )
40623 PLATFORM_OS2=1
40624 ;;
40625 darwin )
40626 PLATFORM_MAC=1
40627 PLATFORM_MACOSX=1
40628 ;;
40629 unix )
40630 PLATFORM_UNIX=1
40631 ;;
1e9e8aba
DE
40632 beos )
40633 PLATFORM_BEOS=1
40634 ;;
a848cd7e
SC
40635 * )
40636 { { echo "$as_me:$LINENO: error: Unknown platform: $BAKEFILE_FORCE_PLATFORM" >&5
40637echo "$as_me: error: Unknown platform: $BAKEFILE_FORCE_PLATFORM" >&2;}
40638 { (exit 1); exit 1; }; }
40639 ;;
40640 esac
40641 fi
40642
40643
40644
40645
40646
40647
40648
40649
40650
1e9e8aba
DE
40651
40652
a848cd7e
SC
40653 # Check whether --enable-omf or --disable-omf was given.
40654if test "${enable_omf+set}" = set; then
40655 enableval="$enable_omf"
40656 bk_os2_use_omf="$enableval"
40657fi;
40658
40659 case "${BAKEFILE_HOST}" in
40660 *-*-darwin* )
40661 CFLAGS="$CFLAGS -fno-common"
40662 CXXFLAGS="$CXXFLAGS -fno-common"
40663 ;;
40664
40665 *-pc-os2_emx | *-pc-os2-emx )
40666 if test "x$bk_os2_use_omf" = "xyes" ; then
40667 AR=emxomfar
40668 RANLIB=:
40669 LDFLAGS="-Zomf $LDFLAGS"
40670 CFLAGS="-Zomf $CFLAGS"
40671 CXXFLAGS="-Zomf $CXXFLAGS"
40672 OS2_LIBEXT="lib"
40673 else
40674 OS2_LIBEXT="a"
40675 fi
40676 ;;
1e9e8aba
DE
40677
40678 i*86-*-beos* )
40679 LDFLAGS="-L/boot/develop/lib/x86 $LDFLAGS"
40680 ;;
a848cd7e
SC
40681 esac
40682
40683
40684 SO_SUFFIX="so"
40685 SO_SUFFIX_MODULE="so"
40686 EXEEXT=""
40687 LIBPREFIX="lib"
40688 LIBEXT=".a"
40689 DLLPREFIX="lib"
40690 DLLPREFIX_MODULE=""
40691 DLLIMP_SUFFIX=""
40692
40693 case "${BAKEFILE_HOST}" in
40694 *-hp-hpux* )
40695 SO_SUFFIX="sl"
40696 SO_SUFFIX_MODULE="sl"
40697 ;;
40698 *-*-aix* )
40699 SO_SUFFIX="a"
40700 SO_SUFFIX_MODULE="a"
40701 ;;
40702 *-*-cygwin* | *-*-mingw32* )
40703 SO_SUFFIX="dll"
40704 SO_SUFFIX_MODULE="dll"
40705 DLLIMP_SUFFIX="dll.a"
40706 EXEEXT=".exe"
40707 DLLPREFIX=""
40708 ;;
40709 *-pc-msdosdjgpp )
40710 EXEEXT=".exe"
40711 DLLPREFIX=""
40712 ;;
40713 *-pc-os2_emx | *-pc-os2-emx )
40714 SO_SUFFIX="dll"
40715 SO_SUFFIX_MODULE="dll"
40716 DLLIMP_SUFFIX=$OS2_LIBEXT
40717 EXEEXT=".exe"
40718 DLLPREFIX=""
40719 LIBPREFIX=""
40720 LIBEXT=".$OS2_LIBEXT"
40721 ;;
40722 powerpc-*-darwin* )
40723 SO_SUFFIX="dylib"
40724 SO_SUFFIX_MODULE="bundle"
40725 ;;
40726 esac
40727
40728 if test "x$DLLIMP_SUFFIX" = "x" ; then
40729 DLLIMP_SUFFIX="$SO_SUFFIX"
40730 fi
40731
40732
40733
40734
40735
40736
40737
40738
40739
40740
40741
1e9e8aba
DE
40742 PIC_FLAG=""
40743 if test "x$GCC" = "xyes"; then
a848cd7e
SC
40744 PIC_FLAG="-fPIC"
40745 fi
40746
1e9e8aba
DE
40747 SHARED_LD_CC="\$(CC) -shared ${PIC_FLAG} -o"
40748 SHARED_LD_CXX="\$(CXX) -shared ${PIC_FLAG} -o"
40749
a848cd7e
SC
40750 case "${BAKEFILE_HOST}" in
40751 *-hp-hpux* )
1e9e8aba 40752 if test "x$GCC" != "xyes"; then
a848cd7e
SC
40753 LDFLAGS="$LDFLAGS -L/usr/lib"
40754
40755 SHARED_LD_CC="${CC} -b -o"
40756 SHARED_LD_CXX="${CXX} -b -o"
40757 PIC_FLAG="+Z"
40758 fi
40759 ;;
40760
40761 *-*-linux* )
40762 if test "x$GCC" != "xyes"; then
40763 echo "$as_me:$LINENO: checking for Intel compiler" >&5
40764echo $ECHO_N "checking for Intel compiler... $ECHO_C" >&6
40765if test "${bakefile_cv_prog_icc+set}" = set; then
40766 echo $ECHO_N "(cached) $ECHO_C" >&6
40767else
40768
40769 cat >conftest.$ac_ext <<_ACEOF
40770/* confdefs.h. */
40771_ACEOF
40772cat confdefs.h >>conftest.$ac_ext
40773cat >>conftest.$ac_ext <<_ACEOF
40774/* end confdefs.h. */
40775
40776int
40777main ()
40778{
40779
40780 #ifndef __INTEL_COMPILER
40781 #error Not icc
40782 #endif
40783
40784 ;
40785 return 0;
40786}
40787_ACEOF
40788rm -f conftest.$ac_objext
40789if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 40790 (eval $ac_compile) 2>conftest.er1
a848cd7e 40791 ac_status=$?
ac1cb8d3
VS
40792 grep -v '^ *+' conftest.er1 >conftest.err
40793 rm -f conftest.er1
40794 cat conftest.err >&5
a848cd7e
SC
40795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40796 (exit $ac_status); } &&
89be85c2
VS
40797 { ac_try='test -z "$ac_c_werror_flag"
40798 || test ! -s conftest.err'
ac1cb8d3
VS
40799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40800 (eval $ac_try) 2>&5
40801 ac_status=$?
40802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40803 (exit $ac_status); }; } &&
40804 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
40805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40806 (eval $ac_try) 2>&5
40807 ac_status=$?
40808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40809 (exit $ac_status); }; }; then
40810 bakefile_cv_prog_icc=yes
40811else
40812 echo "$as_me: failed program was:" >&5
40813sed 's/^/| /' conftest.$ac_ext >&5
40814
40815bakefile_cv_prog_icc=no
40816
40817fi
ac1cb8d3 40818rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
40819
40820fi
40821echo "$as_me:$LINENO: result: $bakefile_cv_prog_icc" >&5
40822echo "${ECHO_T}$bakefile_cv_prog_icc" >&6
40823 if test "$bakefile_cv_prog_icc" = "yes"; then
40824 PIC_FLAG="-KPIC"
40825 fi
40826 fi
40827 ;;
40828
40829 *-*-solaris2* )
40830 if test "x$GCC" != xyes ; then
40831 SHARED_LD_CC="${CC} -G -o"
40832 SHARED_LD_CXX="${CXX} -G -o"
40833 PIC_FLAG="-KPIC"
40834 fi
40835 ;;
40836
40837 *-*-darwin* )
40838
40839 echo "$as_me:$LINENO: checking for gcc 3.1 or later" >&5
40840echo $ECHO_N "checking for gcc 3.1 or later... $ECHO_C" >&6
40841if test "${wx_cv_gcc31+set}" = set; then
40842 echo $ECHO_N "(cached) $ECHO_C" >&6
40843else
40844
40845 cat >conftest.$ac_ext <<_ACEOF
40846/* confdefs.h. */
40847_ACEOF
40848cat confdefs.h >>conftest.$ac_ext
40849cat >>conftest.$ac_ext <<_ACEOF
40850/* end confdefs.h. */
40851
40852int
40853main ()
40854{
40855
40856 #if (__GNUC__ < 3) || \
40857 ((__GNUC__ == 3) && (__GNUC_MINOR__ < 1))
40858 #error old gcc
40859 #endif
40860
40861 ;
40862 return 0;
40863}
40864_ACEOF
40865rm -f conftest.$ac_objext
40866if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 40867 (eval $ac_compile) 2>conftest.er1
a848cd7e 40868 ac_status=$?
ac1cb8d3
VS
40869 grep -v '^ *+' conftest.er1 >conftest.err
40870 rm -f conftest.er1
40871 cat conftest.err >&5
a848cd7e
SC
40872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40873 (exit $ac_status); } &&
89be85c2
VS
40874 { ac_try='test -z "$ac_c_werror_flag"
40875 || test ! -s conftest.err'
ac1cb8d3
VS
40876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40877 (eval $ac_try) 2>&5
40878 ac_status=$?
40879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40880 (exit $ac_status); }; } &&
40881 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
40882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40883 (eval $ac_try) 2>&5
40884 ac_status=$?
40885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40886 (exit $ac_status); }; }; then
40887
40888 wx_cv_gcc31=yes
40889
40890else
40891 echo "$as_me: failed program was:" >&5
40892sed 's/^/| /' conftest.$ac_ext >&5
40893
40894
40895 wx_cv_gcc31=no
40896
40897
40898fi
ac1cb8d3 40899rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
40900
40901fi
40902echo "$as_me:$LINENO: result: $wx_cv_gcc31" >&5
40903echo "${ECHO_T}$wx_cv_gcc31" >&6
40904 if test "$wx_cv_gcc31" = "no"; then
473276a9
VS
40905
40906D='$'
40907cat <<EOF >shared-ld-sh
a848cd7e
SC
40908#!/bin/sh
40909#-----------------------------------------------------------------------------
40910#-- Name: distrib/mac/shared-ld-sh
40911#-- Purpose: Link a mach-o dynamic shared library for Darwin / Mac OS X
40912#-- Author: Gilles Depeyrot
40913#-- Copyright: (c) 2002 Gilles Depeyrot
40914#-- Licence: any use permitted
40915#-----------------------------------------------------------------------------
40916
40917verbose=0
40918args=""
40919objects=""
40920linking_flag="-dynamiclib"
40921
473276a9
VS
40922while test ${D}# -gt 0; do
40923 case ${D}1 in
a848cd7e
SC
40924
40925 -v)
40926 verbose=1
40927 ;;
40928
40929 -o|-compatibility_version|-current_version|-framework|-undefined|-install_name)
40930 # collect these options and values
473276a9 40931 args="${D}{args} ${D}1 ${D}2"
a848cd7e
SC
40932 shift
40933 ;;
40934
40935 -l*|-L*|-flat_namespace|-headerpad_max_install_names)
40936 # collect these options
473276a9 40937 args="${D}{args} ${D}1"
a848cd7e
SC
40938 ;;
40939
40940 -dynamiclib|-bundle)
473276a9 40941 linking_flag="${D}1"
a848cd7e
SC
40942 ;;
40943
40944 -*)
473276a9 40945 echo "shared-ld: unhandled option '${D}1'"
a848cd7e
SC
40946 exit 1
40947 ;;
40948
40949 *.o | *.a | *.dylib)
40950 # collect object files
473276a9 40951 objects="${D}{objects} ${D}1"
a848cd7e
SC
40952 ;;
40953
40954 *)
473276a9 40955 echo "shared-ld: unhandled argument '${D}1'"
a848cd7e
SC
40956 exit 1
40957 ;;
40958
40959 esac
40960 shift
40961done
40962
40963#
40964# Link one module containing all the others
40965#
473276a9
VS
40966if test ${D}{verbose} = 1; then
40967 echo "c++ -r -keep_private_externs -nostdlib ${D}{objects} -o master.${D}${D}.o"
a848cd7e 40968fi
473276a9
VS
40969c++ -r -keep_private_externs -nostdlib ${D}{objects} -o master.${D}${D}.o
40970status=${D}?
40971if test ${D}{status} != 0; then
40972 exit ${D}{status}
a848cd7e
SC
40973fi
40974
40975#
40976# Link the shared library from the single module created
40977#
473276a9
VS
40978if test ${D}{verbose} = 1; then
40979 echo "cc ${D}{linking_flag} master.${D}${D}.o ${D}{args}"
a848cd7e 40980fi
473276a9
VS
40981c++ ${D}{linking_flag} master.${D}${D}.o ${D}{args}
40982status=${D}?
40983if test ${D}{status} != 0; then
40984 exit ${D}{status}
a848cd7e
SC
40985fi
40986
40987#
40988# Remove intermediate module
40989#
473276a9 40990rm -f master.${D}${D}.o
a848cd7e
SC
40991
40992exit 0
40993EOF
473276a9 40994
a848cd7e
SC
40995 chmod +x shared-ld-sh
40996
40997 SHARED_LD_CC="`pwd`/shared-ld-sh -dynamiclib -headerpad_max_install_names -o"
40998 SHARED_LD_MODULE_CC="`pwd`/shared-ld-sh -bundle -headerpad_max_install_names -o"
40999 SHARED_LD_CXX="$SHARED_LD_CC"
41000 SHARED_LD_MODULE_CXX="$SHARED_LD_MODULE_CC"
41001 else
41002 SHARED_LD_CC="\${CC} -dynamiclib -single_module -headerpad_max_install_names -o"
41003 SHARED_LD_MODULE_CC="\${CC} -bundle -single_module -headerpad_max_install_names -o"
41004 SHARED_LD_CXX="\${CXX} -dynamiclib -single_module -headerpad_max_install_names -o"
41005 SHARED_LD_MODULE_CXX="\${CXX} -bundle -single_module -headerpad_max_install_names -o"
41006 fi
41007
41008 PIC_FLAG="-dynamic -fPIC"
41009 ;;
41010
41011 *-*-aix* )
41012 if test "x$GCC" != "xyes"; then
41013 # Extract the first word of "makeC++SharedLib", so it can be a program name with args.
41014set dummy makeC++SharedLib; ac_word=$2
41015echo "$as_me:$LINENO: checking for $ac_word" >&5
41016echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
41017if test "${ac_cv_prog_AIX_CXX_LD+set}" = set; then
41018 echo $ECHO_N "(cached) $ECHO_C" >&6
41019else
41020 if test -n "$AIX_CXX_LD"; then
41021 ac_cv_prog_AIX_CXX_LD="$AIX_CXX_LD" # Let the user override the test.
41022else
41023as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
41024for as_dir in $PATH
41025do
41026 IFS=$as_save_IFS
41027 test -z "$as_dir" && as_dir=.
41028 for ac_exec_ext in '' $ac_executable_extensions; do
41029 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
41030 ac_cv_prog_AIX_CXX_LD="makeC++SharedLib"
41031 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
41032 break 2
41033 fi
41034done
41035done
41036
41037 test -z "$ac_cv_prog_AIX_CXX_LD" && ac_cv_prog_AIX_CXX_LD="/usr/lpp/xlC/bin/makeC++SharedLib"
41038fi
41039fi
41040AIX_CXX_LD=$ac_cv_prog_AIX_CXX_LD
41041if test -n "$AIX_CXX_LD"; then
41042 echo "$as_me:$LINENO: result: $AIX_CXX_LD" >&5
41043echo "${ECHO_T}$AIX_CXX_LD" >&6
41044else
41045 echo "$as_me:$LINENO: result: no" >&5
41046echo "${ECHO_T}no" >&6
41047fi
41048
41049 SHARED_LD_CC="$AIX_CC_LD -p 0 -o"
41050 SHARED_LD_CXX="$AIX_CXX_LD -p 0 -o"
41051 fi
41052 ;;
41053
41054 *-*-beos* )
1e9e8aba
DE
41055 SHARED_LD_CC="${LD} -nostart -o"
41056 SHARED_LD_CXX="${LD} -nostart -o"
a848cd7e
SC
41057 ;;
41058
41059 *-*-irix* )
41060 if test "x$GCC" != "xyes"; then
41061 PIC_FLAG="-KPIC"
41062 fi
41063 ;;
41064
41065 *-*-cygwin* | *-*-mingw32* )
41066 PIC_FLAG=""
1e9e8aba
DE
41067 SHARED_LD_CC="\$(CC) -shared -o"
41068 SHARED_LD_CXX="\$(CXX) -shared -o"
a848cd7e
SC
41069 ;;
41070
41071 *-pc-os2_emx | *-pc-os2-emx )
b1d22ded
DE
41072 SHARED_LD_CC="`pwd`/dllar.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
41073 SHARED_LD_CXX="`pwd`/dllar.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
a848cd7e 41074 PIC_FLAG=""
473276a9
VS
41075
41076D='$'
41077cat <<EOF >dllar.sh
41078#!/bin/sh
41079#
41080# dllar - a tool to build both a .dll and an .a file
41081# from a set of object (.o) files for EMX/OS2.
41082#
41083# Written by Andrew Zabolotny, bit@freya.etu.ru
41084# Ported to Unix like shell by Stefan Neis, Stefan.Neis@t-online.de
41085#
41086# This script will accept a set of files on the command line.
41087# All the public symbols from the .o files will be exported into
41088# a .DEF file, then linker will be run (through gcc) against them to
41089# build a shared library consisting of all given .o files. All libraries
41090# (.a) will be first decompressed into component .o files then act as
41091# described above. You can optionally give a description (-d "description")
41092# which will be put into .DLL. To see the list of accepted options (as well
41093# as command-line format) simply run this program without options. The .DLL
41094# is built to be imported by name (there is no guarantee that new versions
41095# of the library you build will have same ordinals for same symbols).
41096#
41097# dllar is free software; you can redistribute it and/or modify
41098# it under the terms of the GNU General Public License as published by
41099# the Free Software Foundation; either version 2, or (at your option)
41100# any later version.
41101#
41102# dllar is distributed in the hope that it will be useful,
41103# but WITHOUT ANY WARRANTY; without even the implied warranty of
41104# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
41105# GNU General Public License for more details.
41106#
41107# You should have received a copy of the GNU General Public License
41108# along with dllar; see the file COPYING. If not, write to the Free
41109# Software Foundation, 59 Temple Place - Suite 330, Boston, MA
41110# 02111-1307, USA.
41111
41112# To successfuly run this program you will need:
41113# - Current drive should have LFN support (HPFS, ext2, network, etc)
41114# (Sometimes dllar generates filenames which won't fit 8.3 scheme)
41115# - gcc
41116# (used to build the .dll)
41117# - emxexp
41118# (used to create .def file from .o files)
41119# - emximp
41120# (used to create .a file from .def file)
41121# - GNU text utilites (cat, sort, uniq)
41122# used to process emxexp output
41123# - GNU file utilities (mv, rm)
41124# - GNU sed
41125# - lxlite (optional, see flag below)
41126# (used for general .dll cleanup)
41127#
41128
41129flag_USE_LXLITE=1;
41130
41131#
41132# helper functions
41133# basnam, variant of basename, which does _not_ remove the path, _iff_
41134# second argument (suffix to remove) is given
41135basnam(){
41136 case ${D}# in
41137 1)
1e9e8aba 41138 echo ${D}1 | sed 's/.*\\///' | sed 's/.*\\\\//'
473276a9
VS
41139 ;;
41140 2)
41141 echo ${D}1 | sed 's/'${D}2'${D}//'
41142 ;;
41143 *)
41144 echo "error in basnam ${D}*"
41145 exit 8
41146 ;;
41147 esac
41148}
41149
41150# Cleanup temporary files and output
41151CleanUp() {
41152 cd ${D}curDir
41153 for i in ${D}inputFiles ; do
41154 case ${D}i in
41155 *!)
41156 rm -rf \`basnam ${D}i !\`
41157 ;;
41158 *)
41159 ;;
41160 esac
41161 done
41162
41163 # Kill result in case of failure as there is just to many stupid make/nmake
41164 # things out there which doesn't do this.
1e9e8aba 41165 if [ ${D}# -eq 0 ]; then
473276a9
VS
41166 rm -f ${D}arcFile ${D}arcFile2 ${D}defFile ${D}dllFile
41167 fi
41168}
41169
41170# Print usage and exit script with rc=1.
41171PrintHelp() {
b1d22ded
DE
41172 echo 'Usage: dllar.sh [-o[utput] output_file] [-i[mport] importlib_name]'
41173 echo ' [-name-mangler-script script.sh]'
41174 echo ' [-d[escription] "dll descrption"] [-cc "CC"] [-f[lags] "CFLAGS"]'
41175 echo ' [-ord[inals]] -ex[clude] "symbol(s)"'
41176 echo ' [-libf[lags] "{INIT|TERM}{GLOBAL|INSTANCE}"] [-nocrt[dll]] [-nolxl[ite]]'
1e9e8aba 41177 echo ' [*.o] [*.a]'
473276a9
VS
41178 echo '*> "output_file" should have no extension.'
41179 echo ' If it has the .o, .a or .dll extension, it is automatically removed.'
41180 echo ' The import library name is derived from this and is set to "name".a,'
41181 echo ' unless overridden by -import'
41182 echo '*> "importlib_name" should have no extension.'
41183 echo ' If it has the .o, or .a extension, it is automatically removed.'
41184 echo ' This name is used as the import library name and may be longer and'
41185 echo ' more descriptive than the DLL name which has to follow the old '
41186 echo ' 8.3 convention of FAT.'
b1d22ded
DE
41187 echo '*> "script.sh may be given to override the output_file name by a'
41188 echo ' different name. It is mainly useful if the regular make process'
41189 echo ' of some package does not take into account OS/2 restriction of'
41190 echo ' DLL name lengths. It takes the importlib name as input and is'
41191 echo ' supposed to procude a shorter name as output. The script should'
41192 echo ' expect to get importlib_name without extension and should produce'
41193 echo ' a (max.) 8 letter name without extension.'
473276a9
VS
41194 echo '*> "cc" is used to use another GCC executable. (default: gcc.exe)'
41195 echo '*> "flags" should be any set of valid GCC flags. (default: -s -Zcrtdll)'
41196 echo ' These flags will be put at the start of GCC command line.'
b1d22ded
DE
41197 echo '*> -ord[inals] tells dllar to export entries by ordinals. Be careful.'
41198 echo '*> -ex[clude] defines symbols which will not be exported. You can define'
473276a9
VS
41199 echo ' multiple symbols, for example -ex "myfunc yourfunc _GLOBAL*".'
41200 echo ' If the last character of a symbol is "*", all symbols beginning'
41201 echo ' with the prefix before "*" will be exclude, (see _GLOBAL* above).'
b1d22ded 41202 echo '*> -libf[lags] can be used to add INITGLOBAL/INITINSTANCE and/or'
473276a9 41203 echo ' TERMGLOBAL/TERMINSTANCE flags to the dynamically-linked library.'
b1d22ded 41204 echo '*> -nocrt[dll] switch will disable linking the library against emx''s'
473276a9 41205 echo ' C runtime DLLs.'
b1d22ded 41206 echo '*> -nolxl[ite] switch will disable running lxlite on the resulting DLL.'
473276a9
VS
41207 echo '*> All other switches (for example -L./ or -lmylib) will be passed'
41208 echo ' unchanged to GCC at the end of command line.'
41209 echo '*> If you create a DLL from a library and you do not specify -o,'
41210 echo ' the basename for DLL and import library will be set to library name,'
41211 echo ' the initial library will be renamed to 'name'_s.a (_s for static)'
41212 echo ' i.e. "dllar gcc.a" will create gcc.dll and gcc.a, and the initial'
41213 echo ' library will be renamed into gcc_s.a.'
41214 echo '--------'
41215 echo 'Example:'
41216 echo ' dllar -o gcc290.dll libgcc.a -d "GNU C runtime library" -ord'
41217 echo ' -ex "__main __ctordtor*" -libf "INITINSTANCE TERMINSTANCE"'
41218 CleanUp
41219 exit 1
41220}
41221
41222# Execute a command.
41223# If exit code of the commnad <> 0 CleanUp() is called and we'll exit the script.
41224# @Uses Whatever CleanUp() uses.
41225doCommand() {
41226 echo "${D}*"
41227 eval ${D}*
41228 rcCmd=${D}?
41229
1e9e8aba 41230 if [ ${D}rcCmd -ne 0 ]; then
473276a9
VS
41231 echo "command failed, exit code="${D}rcCmd
41232 CleanUp
41233 exit ${D}rcCmd
41234 fi
41235}
41236
41237# main routine
41238# setup globals
41239cmdLine=${D}*
41240outFile=""
41241outimpFile=""
41242inputFiles=""
b1d22ded 41243renameScript=""
473276a9
VS
41244description=""
41245CC=gcc.exe
41246CFLAGS="-s -Zcrtdll"
41247EXTRA_CFLAGS=""
41248EXPORT_BY_ORDINALS=0
41249exclude_symbols=""
41250library_flags=""
41251curDir=\`pwd\`
41252curDirS=curDir
41253case ${D}curDirS in
41254*/)
41255 ;;
41256*)
41257 curDirS=${D}{curDirS}"/"
41258 ;;
41259esac
41260# Parse commandline
41261libsToLink=0
b1d22ded 41262omfLinking=0
1e9e8aba 41263while [ ${D}1 ]; do
473276a9
VS
41264 case ${D}1 in
41265 -ord*)
41266 EXPORT_BY_ORDINALS=1;
41267 ;;
41268 -o*)
41269 shift
41270 outFile=${D}1
41271 ;;
41272 -i*)
41273 shift
41274 outimpFile=${D}1
41275 ;;
b1d22ded
DE
41276 -name-mangler-script)
41277 shift
41278 renameScript=${D}1
41279 ;;
473276a9
VS
41280 -d*)
41281 shift
41282 description=${D}1
41283 ;;
41284 -f*)
41285 shift
41286 CFLAGS=${D}1
41287 ;;
41288 -c*)
41289 shift
41290 CC=${D}1
41291 ;;
41292 -h*)
41293 PrintHelp
41294 ;;
41295 -ex*)
41296 shift
41297 exclude_symbols=${D}{exclude_symbols}${D}1" "
41298 ;;
41299 -libf*)
41300 shift
41301 library_flags=${D}{library_flags}${D}1" "
41302 ;;
41303 -nocrt*)
41304 CFLAGS="-s"
41305 ;;
41306 -nolxl*)
41307 flag_USE_LXLITE=0
41308 ;;
41309 -* | /*)
41310 case ${D}1 in
41311 -L* | -l*)
41312 libsToLink=1
41313 ;;
b1d22ded
DE
41314 -Zomf)
41315 omfLinking=1
41316 ;;
473276a9
VS
41317 *)
41318 ;;
41319 esac
41320 EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1
41321 ;;
b1d22ded
DE
41322 *.dll)
41323 EXTRA_CFLAGS="${D}{EXTRA_CFLAGS} \`basnam ${D}1 .dll\`"
41324 if [ ${D}omfLinking -eq 1 ]; then
41325 EXTRA_CFLAGS="${D}{EXTRA_CFLAGS}.lib"
41326 else
41327 EXTRA_CFLAGS="${D}{EXTRA_CFLAGS}.a"
41328 fi
41329 ;;
473276a9
VS
41330 *)
41331 found=0;
1e9e8aba 41332 if [ ${D}libsToLink -ne 0 ]; then
473276a9
VS
41333 EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1
41334 else
41335 for file in ${D}1 ; do
1e9e8aba 41336 if [ -f ${D}file ]; then
473276a9
VS
41337 inputFiles="${D}{inputFiles} ${D}file"
41338 found=1
41339 fi
41340 done
1e9e8aba 41341 if [ ${D}found -eq 0 ]; then
473276a9
VS
41342 echo "ERROR: No file(s) found: "${D}1
41343 exit 8
41344 fi
41345 fi
41346 ;;
41347 esac
41348 shift
41349done # iterate cmdline words
41350
41351#
1e9e8aba 41352if [ -z "${D}inputFiles" ]; then
473276a9
VS
41353 echo "dllar: no input files"
41354 PrintHelp
41355fi
41356
41357# Now extract all .o files from .a files
41358newInputFiles=""
41359for file in ${D}inputFiles ; do
41360 case ${D}file in
41361 *.a | *.lib)
41362 case ${D}file in
41363 *.a)
41364 suffix=".a"
41365 AR="ar"
41366 ;;
41367 *.lib)
41368 suffix=".lib"
41369 AR="emxomfar"
41370 EXTRA_CFLAGS="${D}EXTRA_CFLAGS -Zomf"
41371 ;;
41372 *)
41373 ;;
41374 esac
41375 dirname=\`basnam ${D}file ${D}suffix\`"_%"
41376 mkdir ${D}dirname
1e9e8aba 41377 if [ ${D}? -ne 0 ]; then
473276a9
VS
41378 echo "Failed to create subdirectory ./${D}dirname"
41379 CleanUp
41380 exit 8;
41381 fi
41382 # Append '!' to indicate archive
41383 newInputFiles="${D}newInputFiles ${D}{dirname}!"
41384 doCommand "cd ${D}dirname; ${D}AR x ../${D}file"
41385 cd ${D}curDir
41386 found=0;
41387 for subfile in ${D}dirname/*.o* ; do
1e9e8aba 41388 if [ -f ${D}subfile ]; then
473276a9 41389 found=1
1e9e8aba 41390 if [ -s ${D}subfile ]; then
473276a9
VS
41391 # FIXME: This should be: is file size > 32 byte, _not_ > 0!
41392 newInputFiles="${D}newInputFiles ${D}subfile"
41393 fi
41394 fi
41395 done
1e9e8aba
DE
41396 if [ ${D}found -eq 0 ]; then
41397 echo "WARNING: there are no files in archive \\'${D}file\\'"
473276a9
VS
41398 fi
41399 ;;
41400 *)
41401 newInputFiles="${D}{newInputFiles} ${D}file"
41402 ;;
41403 esac
41404done
41405inputFiles="${D}newInputFiles"
41406
41407# Output filename(s).
41408do_backup=0;
1e9e8aba 41409if [ -z ${D}outFile ]; then
473276a9
VS
41410 do_backup=1;
41411 set outFile ${D}inputFiles; outFile=${D}2
41412fi
41413
41414# If it is an archive, remove the '!' and the '_%' suffixes
41415case ${D}outFile in
41416*_%!)
41417 outFile=\`basnam ${D}outFile _%!\`
41418 ;;
41419*)
41420 ;;
41421esac
41422case ${D}outFile in
41423*.dll)
41424 outFile=\`basnam ${D}outFile .dll\`
41425 ;;
41426*.DLL)
41427 outFile=\`basnam ${D}outFile .DLL\`
41428 ;;
41429*.o)
41430 outFile=\`basnam ${D}outFile .o\`
41431 ;;
41432*.obj)
41433 outFile=\`basnam ${D}outFile .obj\`
41434 ;;
41435*.a)
41436 outFile=\`basnam ${D}outFile .a\`
41437 ;;
41438*.lib)
41439 outFile=\`basnam ${D}outFile .lib\`
41440 ;;
41441*)
41442 ;;
41443esac
41444case ${D}outimpFile in
41445*.a)
41446 outimpFile=\`basnam ${D}outimpFile .a\`
41447 ;;
41448*.lib)
41449 outimpFile=\`basnam ${D}outimpFile .lib\`
41450 ;;
41451*)
41452 ;;
41453esac
1e9e8aba 41454if [ -z ${D}outimpFile ]; then
473276a9
VS
41455 outimpFile=${D}outFile
41456fi
41457defFile="${D}{outFile}.def"
41458arcFile="${D}{outimpFile}.a"
41459arcFile2="${D}{outimpFile}.lib"
b1d22ded
DE
41460
41461#create ${D}dllFile as something matching 8.3 restrictions,
41462if [ -z ${D}renameScript ] ; then
41463 dllFile="${D}outFile"
41464else
41465 dllFile=\`${D}renameScript ${D}outimpFile\`
41466fi
473276a9 41467
1e9e8aba
DE
41468if [ ${D}do_backup -ne 0 ] ; then
41469 if [ -f ${D}arcFile ] ; then
473276a9
VS
41470 doCommand "mv ${D}arcFile ${D}{outFile}_s.a"
41471 fi
1e9e8aba 41472 if [ -f ${D}arcFile2 ] ; then
473276a9
VS
41473 doCommand "mv ${D}arcFile2 ${D}{outFile}_s.lib"
41474 fi
41475fi
41476
41477# Extract public symbols from all the object files.
41478tmpdefFile=${D}{defFile}_%
41479rm -f ${D}tmpdefFile
41480for file in ${D}inputFiles ; do
41481 case ${D}file in
41482 *!)
41483 ;;
41484 *)
41485 doCommand "emxexp -u ${D}file >> ${D}tmpdefFile"
41486 ;;
41487 esac
41488done
41489
41490# Create the def file.
41491rm -f ${D}defFile
41492echo "LIBRARY \`basnam ${D}dllFile\` ${D}library_flags" >> ${D}defFile
b1d22ded
DE
41493dllFile="${D}{dllFile}.dll"
41494if [ ! -z ${D}description ]; then
1e9e8aba 41495 echo "DESCRIPTION \\"${D}{description}\\"" >> ${D}defFile
473276a9
VS
41496fi
41497echo "EXPORTS" >> ${D}defFile
41498
41499doCommand "cat ${D}tmpdefFile | sort.exe | uniq.exe > ${D}{tmpdefFile}%"
41500grep -v "^ *;" < ${D}{tmpdefFile}% | grep -v "^ *${D}" >${D}tmpdefFile
41501
41502# Checks if the export is ok or not.
41503for word in ${D}exclude_symbols; do
41504 grep -v ${D}word < ${D}tmpdefFile >${D}{tmpdefFile}%
41505 mv ${D}{tmpdefFile}% ${D}tmpdefFile
41506done
41507
41508
1e9e8aba
DE
41509if [ ${D}EXPORT_BY_ORDINALS -ne 0 ]; then
41510 sed "=" < ${D}tmpdefFile | \\
473276a9
VS
41511 sed '
41512 N
41513 : loop
1e9e8aba 41514 s/^\\([0-9]\\+\\)\\([^;]*\\)\\(;.*\\)\\?/\\2 @\\1 NONAME/
473276a9
VS
41515 t loop
41516 ' > ${D}{tmpdefFile}%
41517 grep -v "^ *${D}" < ${D}{tmpdefFile}% > ${D}tmpdefFile
41518else
41519 rm -f ${D}{tmpdefFile}%
41520fi
41521cat ${D}tmpdefFile >> ${D}defFile
41522rm -f ${D}tmpdefFile
41523
41524# Do linking, create implib, and apply lxlite.
41525gccCmdl="";
41526for file in ${D}inputFiles ; do
41527 case ${D}file in
41528 *!)
41529 ;;
41530 *)
41531 gccCmdl="${D}gccCmdl ${D}file"
41532 ;;
41533 esac
41534done
41535doCommand "${D}CC ${D}CFLAGS -Zdll -o ${D}dllFile ${D}defFile ${D}gccCmdl ${D}EXTRA_CFLAGS"
41536touch "${D}{outFile}.dll"
41537
41538doCommand "emximp -o ${D}arcFile ${D}defFile"
1e9e8aba 41539if [ ${D}flag_USE_LXLITE -ne 0 ]; then
473276a9 41540 add_flags="";
1e9e8aba 41541 if [ ${D}EXPORT_BY_ORDINALS -ne 0 ]; then
473276a9
VS
41542 add_flags="-ynd"
41543 fi
41544 doCommand "lxlite -cs -t: -mrn -mln ${D}add_flags ${D}dllFile"
41545fi
41546doCommand "emxomf -s -l ${D}arcFile"
41547
41548# Successful exit.
41549CleanUp 1
41550exit 0
41551EOF
41552
41553 chmod +x dllar.sh
a848cd7e
SC
41554 ;;
41555
1e9e8aba 41556 powerpc-apple-macos* | \
a848cd7e
SC
41557 *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | \
41558 *-*-sunos4* | \
41559 *-*-osf* | \
41560 *-*-dgux5* | \
41561 *-*-sysv5* )
41562 ;;
41563
41564 *)
41565 { { echo "$as_me:$LINENO: error: unknown system type $BAKEFILE_HOST." >&5
41566echo "$as_me: error: unknown system type $BAKEFILE_HOST." >&2;}
41567 { (exit 1); exit 1; }; }
41568 esac
41569
2057db16
VS
41570 if test "x$PIC_FLAG" != "x" ; then
41571 PIC_FLAG="$PIC_FLAG -DPIC"
41572 fi
41573
a848cd7e
SC
41574 if test "x$SHARED_LD_MODULE_CC" = "x" ; then
41575 SHARED_LD_MODULE_CC="$SHARED_LD_CC"
41576 fi
41577 if test "x$SHARED_LD_MODULE_CXX" = "x" ; then
41578 SHARED_LD_MODULE_CXX="$SHARED_LD_CXX"
41579 fi
41580
41581
41582
41583
41584
41585
41586
41587
41588 USE_SOVERSION=0
41589 USE_SOVERLINUX=0
41590 USE_SOVERSOLARIS=0
41591 USE_SOSYMLINKS=0
41592 USE_MACVERSION=0
41593 SONAME_FLAG=
41594
41595 case "${BAKEFILE_HOST}" in
b1d22ded 41596 *-*-linux* | *-*-freebsd* )
5f652d0d
VS
41597 SONAME_FLAG="-Wl,-soname,"
41598 USE_SOVERSION=1
41599 USE_SOVERLINUX=1
41600 USE_SOSYMLINKS=1
41601 ;;
41602
a848cd7e
SC
41603 *-*-solaris2* )
41604 SONAME_FLAG="-h "
41605 USE_SOVERSION=1
41606 USE_SOVERSOLARIS=1
41607 USE_SOSYMLINKS=1
41608 ;;
41609
41610 *-*-darwin* )
41611 USE_MACVERSION=1
41612 USE_SOVERSION=1
41613 USE_SOSYMLINKS=1
41614 ;;
41615 esac
41616
41617
41618
41619
41620
41621
41622
41623
41624
41625 echo "$as_me:$LINENO: checking for dependency tracking method" >&5
41626echo $ECHO_N "checking for dependency tracking method... $ECHO_C" >&6
41627 DEPS_TRACKING=0
41628
41629 if test "x$GCC" = "xyes"; then
41630 DEPSMODE=gcc
41631 DEPS_TRACKING=1
41632 case "${BAKEFILE_HOST}" in
41633 powerpc-*-darwin* )
41634 DEPSFLAG_GCC="-no-cpp-precomp -MMD"
41635 ;;
41636 * )
41637 DEPSFLAG_GCC="-MMD"
41638 ;;
41639 esac
41640 echo "$as_me:$LINENO: result: gcc" >&5
41641echo "${ECHO_T}gcc" >&6
b1d22ded 41642 elif test "x$MWCC" = "xyes"; then
81f90336 41643 DEPSMODE=mwcc
b1d22ded 41644 DEPS_TRACKING=1
81f90336 41645 DEPSFLAG_MWCC="-MM"
b1d22ded
DE
41646 echo "$as_me:$LINENO: result: mwcc" >&5
41647echo "${ECHO_T}mwcc" >&6
a848cd7e
SC
41648 else
41649 echo "$as_me:$LINENO: result: none" >&5
41650echo "${ECHO_T}none" >&6
41651 fi
41652
41653 if test $DEPS_TRACKING = 1 ; then
473276a9
VS
41654
41655D='$'
41656cat <<EOF >bk-deps
a848cd7e
SC
41657#!/bin/sh
41658
41659# This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf
41660# script. It is used to track C/C++ files dependencies in portable way.
41661#
41662# Permission is given to use this file in any way.
41663
473276a9 41664DEPSMODE=${DEPSMODE}
a848cd7e 41665DEPSDIR=.deps
473276a9 41666DEPSFLAG_GCC="${DEPSFLAG_GCC}"
81f90336 41667DEPSFLAG_MWCC="${DEPSFLAG_MWCC}"
a848cd7e 41668
473276a9 41669mkdir -p ${D}DEPSDIR
a848cd7e 41670
473276a9
VS
41671if test ${D}DEPSMODE = gcc ; then
41672 ${D}* ${D}{DEPSFLAG_GCC}
41673 status=${D}?
41674 if test ${D}{status} != 0 ; then
41675 exit ${D}{status}
a848cd7e
SC
41676 fi
41677 # move created file to the location we want it in:
473276a9
VS
41678 while test ${D}# -gt 0; do
41679 case "${D}1" in
a848cd7e
SC
41680 -o )
41681 shift
473276a9 41682 objfile=${D}1
a848cd7e
SC
41683 ;;
41684 -* )
41685 ;;
41686 * )
473276a9 41687 srcfile=${D}1
a848cd7e
SC
41688 ;;
41689 esac
41690 shift
41691 done
1e9e8aba
DE
41692 depfile=\`basename ${D}srcfile | sed -e 's/\\..*${D}/.d/g'\`
41693 depobjname=\`echo ${D}depfile |sed -e 's/\\.d/.o/g'\`
473276a9
VS
41694 if test -f ${D}depfile ; then
41695 sed -e "s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{DEPSDIR}/${D}{objfile}.d
41696 rm -f ${D}depfile
a848cd7e 41697 else
1e9e8aba 41698 depfile=\`basename ${D}objfile | sed -e 's/\\..*${D}/.d/g'\`
473276a9
VS
41699 if test -f ${D}depfile ; then
41700 sed -e "/^${D}objfile/!s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{DEPSDIR}/${D}{objfile}.d
41701 rm -f ${D}depfile
a848cd7e
SC
41702 fi
41703 fi
41704 exit 0
81f90336
MW
41705elif test ${D}DEPSMODE = mwcc ; then
41706 ${D}*
41707 status=${D}?
41708 if test ${D}{status} != 0 ; then
41709 exit ${D}{status}
41710 fi
41711 # Run mwcc again with -MM and redirect into the dep file we want
41712 # NOTE: We can't use shift here because we need ${D}* to be valid
41713 prevarg=
41714 for arg in ${D}* ; do
41715 if test "${D}prevarg" = "-o"; then
41716 objfile=${D}arg
41717 else
41718 case "${D}arg" in
41719 -* )
41720 ;;
41721 * )
41722 srcfile=${D}arg
41723 ;;
41724 esac
41725 fi
41726 prevarg="${D}arg"
41727 done
41728 ${D}* ${D}DEPSFLAG_MWCC >${D}{DEPSDIR}/${D}{objfile}.d
41729 exit 0
a848cd7e 41730else
473276a9
VS
41731 ${D}*
41732 exit ${D}?
a848cd7e
SC
41733fi
41734EOF
473276a9 41735
a848cd7e
SC
41736 chmod +x bk-deps
41737 fi
41738
41739
41740
41741
41742 RESCOMP=
41743 SETFILE=
41744
41745 case ${BAKEFILE_HOST} in
41746 *-*-cygwin* | *-*-mingw32* )
41747 if test "$build" != "$host" ; then
41748 RESCOMP=$host_alias-windres
41749 else
41750 # Extract the first word of "windres", so it can be a program name with args.
41751set dummy windres; ac_word=$2
41752echo "$as_me:$LINENO: checking for $ac_word" >&5
41753echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
41754if test "${ac_cv_prog_RESCOMP+set}" = set; then
41755 echo $ECHO_N "(cached) $ECHO_C" >&6
41756else
41757 if test -n "$RESCOMP"; then
41758 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
41759else
41760as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
41761for as_dir in $PATH
41762do
41763 IFS=$as_save_IFS
41764 test -z "$as_dir" && as_dir=.
41765 for ac_exec_ext in '' $ac_executable_extensions; do
41766 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
41767 ac_cv_prog_RESCOMP="windres"
41768 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
41769 break 2
41770 fi
41771done
41772done
41773
41774 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="windres"
41775fi
41776fi
41777RESCOMP=$ac_cv_prog_RESCOMP
41778if test -n "$RESCOMP"; then
41779 echo "$as_me:$LINENO: result: $RESCOMP" >&5
41780echo "${ECHO_T}$RESCOMP" >&6
41781else
41782 echo "$as_me:$LINENO: result: no" >&5
41783echo "${ECHO_T}no" >&6
41784fi
41785
41786 fi
41787 ;;
41788
1e9e8aba 41789 *-*-darwin* | powerpc-apple-macos* )
a848cd7e
SC
41790 # Extract the first word of "Rez", so it can be a program name with args.
41791set dummy Rez; ac_word=$2
41792echo "$as_me:$LINENO: checking for $ac_word" >&5
41793echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
41794if test "${ac_cv_prog_RESCOMP+set}" = set; then
41795 echo $ECHO_N "(cached) $ECHO_C" >&6
41796else
41797 if test -n "$RESCOMP"; then
41798 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
41799else
41800as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
41801for as_dir in $PATH
41802do
41803 IFS=$as_save_IFS
41804 test -z "$as_dir" && as_dir=.
41805 for ac_exec_ext in '' $ac_executable_extensions; do
41806 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
41807 ac_cv_prog_RESCOMP="Rez"
41808 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
41809 break 2
41810 fi
41811done
41812done
41813
41814 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez"
41815fi
41816fi
41817RESCOMP=$ac_cv_prog_RESCOMP
41818if test -n "$RESCOMP"; then
41819 echo "$as_me:$LINENO: result: $RESCOMP" >&5
41820echo "${ECHO_T}$RESCOMP" >&6
41821else
41822 echo "$as_me:$LINENO: result: no" >&5
41823echo "${ECHO_T}no" >&6
41824fi
41825
41826 # Extract the first word of "SetFile", so it can be a program name with args.
41827set dummy SetFile; ac_word=$2
41828echo "$as_me:$LINENO: checking for $ac_word" >&5
41829echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
41830if test "${ac_cv_prog_SETFILE+set}" = set; then
41831 echo $ECHO_N "(cached) $ECHO_C" >&6
41832else
41833 if test -n "$SETFILE"; then
41834 ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
41835else
41836as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
41837for as_dir in $PATH
41838do
41839 IFS=$as_save_IFS
41840 test -z "$as_dir" && as_dir=.
41841 for ac_exec_ext in '' $ac_executable_extensions; do
41842 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
41843 ac_cv_prog_SETFILE="SetFile"
41844 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
41845 break 2
41846 fi
41847done
41848done
41849
41850 test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
41851fi
41852fi
41853SETFILE=$ac_cv_prog_SETFILE
41854if test -n "$SETFILE"; then
41855 echo "$as_me:$LINENO: result: $SETFILE" >&5
41856echo "${ECHO_T}$SETFILE" >&6
41857else
41858 echo "$as_me:$LINENO: result: no" >&5
41859echo "${ECHO_T}no" >&6
41860fi
41861
41862 ;;
41863 esac
41864
41865
41866
41867
41868
94acd38e 41869 BAKEFILE_BAKEFILE_M4_VERSION="0.1.7"
a848cd7e 41870
dcc1b6ad 41871
94acd38e 41872BAKEFILE_AUTOCONF_INC_M4_VERSION="0.1.7"
a848cd7e 41873
646b6ec1 41874
74b84332 41875
a848cd7e
SC
41876 # Check whether --enable-precomp-headers or --disable-precomp-headers was given.
41877if test "${enable_precomp_headers+set}" = set; then
41878 enableval="$enable_precomp_headers"
41879 bk_use_pch="$enableval"
41880fi;
41881
41882 GCC_PCH=0
41883
41884 if test "x$bk_use_pch" = "x" -o "x$bk_use_pch" = "xyes" ; then
41885 if test "x$GCC" = "xyes"; then
41886 echo "$as_me:$LINENO: checking if the compiler supports precompiled headers" >&5
41887echo $ECHO_N "checking if the compiler supports precompiled headers... $ECHO_C" >&6
41888 cat >conftest.$ac_ext <<_ACEOF
41889/* confdefs.h. */
41890_ACEOF
41891cat confdefs.h >>conftest.$ac_ext
41892cat >>conftest.$ac_ext <<_ACEOF
41893/* end confdefs.h. */
41894
41895int
41896main ()
41897{
41898
41899 #if !defined(__GNUC__) || !defined(__GNUC_MINOR__)
41900 #error "no pch support"
41901 #endif
41902 #if (__GNUC__ < 3)
41903 #error "no pch support"
41904 #endif
41905 #if (__GNUC__ == 3) && \
41906 ((!defined(__APPLE_CC__) && (__GNUC_MINOR__ < 4)) || \
41907 ( defined(__APPLE_CC__) && (__GNUC_MINOR__ < 3)))
41908 #error "no pch support"
41909 #endif
41910
41911 ;
41912 return 0;
41913}
41914_ACEOF
41915rm -f conftest.$ac_objext
41916if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 41917 (eval $ac_compile) 2>conftest.er1
a848cd7e 41918 ac_status=$?
ac1cb8d3
VS
41919 grep -v '^ *+' conftest.er1 >conftest.err
41920 rm -f conftest.er1
41921 cat conftest.err >&5
a848cd7e
SC
41922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41923 (exit $ac_status); } &&
89be85c2
VS
41924 { ac_try='test -z "$ac_c_werror_flag"
41925 || test ! -s conftest.err'
ac1cb8d3
VS
41926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41927 (eval $ac_try) 2>&5
41928 ac_status=$?
41929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41930 (exit $ac_status); }; } &&
41931 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
41932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41933 (eval $ac_try) 2>&5
41934 ac_status=$?
41935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41936 (exit $ac_status); }; }; then
41937
41938 echo "$as_me:$LINENO: result: yes" >&5
41939echo "${ECHO_T}yes" >&6
a848cd7e
SC
41940 GCC_PCH=1
41941
41942else
41943 echo "$as_me: failed program was:" >&5
41944sed 's/^/| /' conftest.$ac_ext >&5
41945
41946
41947 echo "$as_me:$LINENO: result: no" >&5
41948echo "${ECHO_T}no" >&6
41949
41950fi
ac1cb8d3 41951rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 41952 if test $GCC_PCH = 1 ; then
1e9e8aba
DE
41953
41954D='$'
41955cat <<EOF >bk-make-pch
a848cd7e
SC
41956#!/bin/sh
41957
41958# This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf
41959# script. It is used to generated precompiled headers.
41960#
41961# Permission is given to use this file in any way.
41962
1e9e8aba
DE
41963outfile="${D}{1}"
41964header="${D}{2}"
a848cd7e
SC
41965shift
41966shift
41967
41968compiler=
41969headerfile=
1e9e8aba
DE
41970while test ${D}{#} -gt 0; do
41971 case "${D}{1}" in
a848cd7e 41972 -I* )
1e9e8aba
DE
41973 incdir=\`echo ${D}{1} | sed -e 's/-I\\(.*\\)/\\1/g'\`
41974 if test "x${D}{headerfile}" = "x" -a -f "${D}{incdir}/${D}{header}" ; then
41975 headerfile="${D}{incdir}/${D}{header}"
a848cd7e
SC
41976 fi
41977 ;;
41978 esac
1e9e8aba 41979 compiler="${D}{compiler} ${D}{1}"
a848cd7e
SC
41980 shift
41981done
41982
1e9e8aba
DE
41983if test "x${D}{headerfile}" = "x" ; then
41984 echo "error: can't find header ${D}{header} in include paths" >2
a848cd7e 41985else
1e9e8aba
DE
41986 if test -f ${D}{outfile} ; then
41987 rm -f ${D}{outfile}
a848cd7e 41988 else
1e9e8aba 41989 mkdir -p \`dirname ${D}{outfile}\`
a848cd7e 41990 fi
1e9e8aba 41991 depsfile=".deps/\`echo ${D}{outfile} | tr '/.' '__'\`.d"
a848cd7e
SC
41992 mkdir -p .deps
41993 # can do this because gcc is >= 3.4:
1e9e8aba
DE
41994 ${D}{compiler} -o ${D}{outfile} -MMD -MF "${D}{depsfile}" "${D}{headerfile}"
41995 exit ${D}{?}
a848cd7e
SC
41996fi
41997EOF
1e9e8aba 41998
a848cd7e
SC
41999 chmod +x bk-make-pch
42000 fi
42001 fi
42002 fi
42003
42004
42005
a848cd7e
SC
42006 COND_BUILD_DEBUG="#"
42007 if test "x$BUILD" = "xdebug" ; then
42008 COND_BUILD_DEBUG=""
42009 fi
42010
42011 COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT="#"
42012 if test "x$BUILD" = "xdebug" -a "x$DEBUG_FLAG" = "xdefault" ; then
42013 COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT=""
42014 fi
42015
42016 COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT="#"
42017 if test "x$BUILD" = "xdebug" -a "x$DEBUG_INFO" = "xdefault" ; then
42018 COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT=""
42019 fi
42020
42021 COND_BUILD_DEBUG_UNICODE_0="#"
42022 if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x0" ; then
42023 COND_BUILD_DEBUG_UNICODE_0=""
42024 fi
42025
42026 COND_BUILD_DEBUG_UNICODE_1="#"
42027 if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x1" ; then
42028 COND_BUILD_DEBUG_UNICODE_1=""
42029 fi
42030
42031 COND_BUILD_RELEASE="#"
42032 if test "x$BUILD" = "xrelease" ; then
42033 COND_BUILD_RELEASE=""
42034 fi
42035
42036 COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT="#"
42037 if test "x$BUILD" = "xrelease" -a "x$DEBUG_INFO" = "xdefault" ; then
42038 COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT=""
42039 fi
42040
42041 COND_BUILD_RELEASE_UNICODE_0="#"
42042 if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x0" ; then
42043 COND_BUILD_RELEASE_UNICODE_0=""
42044 fi
42045
42046 COND_BUILD_RELEASE_UNICODE_1="#"
42047 if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x1" ; then
42048 COND_BUILD_RELEASE_UNICODE_1=""
42049 fi
42050
42051 COND_DEBUG_FLAG_1="#"
42052 if test "x$DEBUG_FLAG" = "x1" ; then
42053 COND_DEBUG_FLAG_1=""
42054 fi
42055
42056 COND_DEBUG_INFO_0="#"
42057 if test "x$DEBUG_INFO" = "x0" ; then
42058 COND_DEBUG_INFO_0=""
42059 fi
42060
42061 COND_DEBUG_INFO_1="#"
42062 if test "x$DEBUG_INFO" = "x1" ; then
42063 COND_DEBUG_INFO_1=""
42064 fi
42065
42066 COND_DEPS_TRACKING_0="#"
42067 if test "x$DEPS_TRACKING" = "x0" ; then
42068 COND_DEPS_TRACKING_0=""
42069 fi
42070
42071 COND_DEPS_TRACKING_1="#"
42072 if test "x$DEPS_TRACKING" = "x1" ; then
42073 COND_DEPS_TRACKING_1=""
42074 fi
42075
42076 COND_GCC_PCH_1="#"
42077 if test "x$GCC_PCH" = "x1" ; then
42078 COND_GCC_PCH_1=""
42079 fi
42080
42081 COND_MONOLITHIC_0="#"
42082 if test "x$MONOLITHIC" = "x0" ; then
42083 COND_MONOLITHIC_0=""
42084 fi
42085
42086 COND_MONOLITHIC_0_SHARED_0="#"
42087 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" ; then
42088 COND_MONOLITHIC_0_SHARED_0=""
42089 fi
42090
42091 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1="#"
42092 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" ; then
42093 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1=""
42094 fi
42095
90970d69
DE
42096 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1="#"
42097 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_HTML" = "x1" ; then
42098 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1=""
42099 fi
42100
a848cd7e
SC
42101 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1="#"
42102 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then
42103 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1=""
42104 fi
42105
a848cd7e
SC
42106 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1="#"
42107 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_ODBC" = "x1" ; then
42108 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1=""
42109 fi
42110
ceec2216
RL
42111 COND_MONOLITHIC_0_SHARED_0_USE_XRC_1="#"
42112 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_XRC" = "x1" ; then
42113 COND_MONOLITHIC_0_SHARED_0_USE_XRC_1=""
42114 fi
42115
a848cd7e
SC
42116 COND_MONOLITHIC_0_SHARED_1="#"
42117 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" ; then
42118 COND_MONOLITHIC_0_SHARED_1=""
42119 fi
42120
42121 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1="#"
42122 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" ; then
42123 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1=""
42124 fi
42125
90970d69
DE
42126 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1="#"
42127 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_HTML" = "x1" ; then
42128 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1=""
42129 fi
42130
a848cd7e
SC
42131 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1="#"
42132 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then
42133 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1=""
42134 fi
42135
a848cd7e
SC
42136 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1="#"
42137 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_ODBC" = "x1" ; then
42138 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1=""
42139 fi
42140
ceec2216
RL
42141 COND_MONOLITHIC_0_SHARED_1_USE_XRC_1="#"
42142 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_XRC" = "x1" ; then
42143 COND_MONOLITHIC_0_SHARED_1_USE_XRC_1=""
42144 fi
42145
a848cd7e
SC
42146 COND_MONOLITHIC_0_USE_ODBC_1="#"
42147 if test "x$MONOLITHIC" = "x0" -a "x$USE_ODBC" = "x1" ; then
42148 COND_MONOLITHIC_0_USE_ODBC_1=""
42149 fi
42150
42151 COND_MONOLITHIC_1="#"
42152 if test "x$MONOLITHIC" = "x1" ; then
42153 COND_MONOLITHIC_1=""
42154 fi
42155
42156 COND_MONOLITHIC_1_SHARED_0="#"
42157 if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x0" ; then
42158 COND_MONOLITHIC_1_SHARED_0=""
42159 fi
42160
42161 COND_MONOLITHIC_1_SHARED_1="#"
42162 if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x1" ; then
42163 COND_MONOLITHIC_1_SHARED_1=""
42164 fi
42165
42166 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1="#"
42167 if test "x$OFFICIAL_BUILD" = "x0" -a "x$PLATFORM_WIN32" = "x1" ; then
42168 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1=""
42169 fi
42170
42171 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1="#"
42172 if test "x$OFFICIAL_BUILD" = "x1" -a "x$PLATFORM_WIN32" = "x1" ; then
42173 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1=""
42174 fi
42175
42176 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1="#"
42177 if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERSION" = "x1" ; then
42178 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1=""
42179 fi
42180
42181 COND_PLATFORM_MACOSX_1="#"
42182 if test "x$PLATFORM_MACOSX" = "x1" ; then
42183 COND_PLATFORM_MACOSX_1=""
42184 fi
42185
a30f955f
VS
42186 COND_PLATFORM_MACOSX_1_TOOLKIT_="#"
42187 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "x" ; then
42188 COND_PLATFORM_MACOSX_1_TOOLKIT_=""
42189 fi
42190
a848cd7e
SC
42191 COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA="#"
42192 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xCOCOA" ; then
42193 COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA=""
42194 fi
42195
42196 COND_PLATFORM_MACOSX_1_TOOLKIT_GTK="#"
42197 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xGTK" ; then
42198 COND_PLATFORM_MACOSX_1_TOOLKIT_GTK=""
42199 fi
42200
42201 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC="#"
42202 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" ; then
42203 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC=""
42204 fi
42205
fc480dc1
DE
42206 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1="#"
42207 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" ; then
42208 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1=""
42209 fi
42210
1e9e8aba
DE
42211 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="#"
42212 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
42213 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0=""
42214 fi
42215
ebee3cd0
VS
42216 COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF="#"
42217 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMOTIF" ; then
42218 COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF=""
42219 fi
42220
42221 COND_PLATFORM_MACOSX_1_TOOLKIT_X11="#"
42222 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xX11" ; then
42223 COND_PLATFORM_MACOSX_1_TOOLKIT_X11=""
42224 fi
42225
a848cd7e
SC
42226 COND_PLATFORM_MACOSX_1_USE_GUI_1="#"
42227 if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_GUI" = "x1" ; then
42228 COND_PLATFORM_MACOSX_1_USE_GUI_1=""
42229 fi
42230
42231 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1="#"
42232 if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_SOVERSION" = "x1" ; then
42233 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1=""
42234 fi
42235
b48a2016
DE
42236 COND_PLATFORM_MACOS_1="#"
42237 if test "x$PLATFORM_MACOS" = "x1" ; then
42238 COND_PLATFORM_MACOS_1=""
42239 fi
42240
a848cd7e
SC
42241 COND_PLATFORM_MAC_1="#"
42242 if test "x$PLATFORM_MAC" = "x1" ; then
42243 COND_PLATFORM_MAC_1=""
42244 fi
42245
42246 COND_PLATFORM_OS2_1="#"
42247 if test "x$PLATFORM_OS2" = "x1" ; then
42248 COND_PLATFORM_OS2_1=""
42249 fi
42250
42251 COND_PLATFORM_UNIX_0="#"
42252 if test "x$PLATFORM_UNIX" = "x0" ; then
42253 COND_PLATFORM_UNIX_0=""
42254 fi
42255
42256 COND_PLATFORM_UNIX_1="#"
42257 if test "x$PLATFORM_UNIX" = "x1" ; then
42258 COND_PLATFORM_UNIX_1=""
42259 fi
42260
42261 COND_PLATFORM_UNIX_1_USE_GUI_1="#"
42262 if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_GUI" = "x1" ; then
42263 COND_PLATFORM_UNIX_1_USE_GUI_1=""
42264 fi
42265
42266 COND_PLATFORM_UNIX_1_USE_PLUGINS_0="#"
42267 if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_PLUGINS" = "x0" ; then
42268 COND_PLATFORM_UNIX_1_USE_PLUGINS_0=""
42269 fi
42270
42271 COND_PLATFORM_WIN32_0="#"
42272 if test "x$PLATFORM_WIN32" = "x0" ; then
42273 COND_PLATFORM_WIN32_0=""
42274 fi
42275
42276 COND_PLATFORM_WIN32_1="#"
42277 if test "x$PLATFORM_WIN32" = "x1" ; then
42278 COND_PLATFORM_WIN32_1=""
42279 fi
42280
42281 COND_SHARED_0="#"
42282 if test "x$SHARED" = "x0" ; then
42283 COND_SHARED_0=""
42284 fi
42285
ceec2216
RL
42286 COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0="#"
42287 if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xMAC" -a "x$WXUNIV" = "x0" ; then
42288 COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0=""
42289 fi
42290
42291 COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0="#"
42292 if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xMSW" -a "x$WXUNIV" = "x0" ; then
42293 COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0=""
42294 fi
42295
42296 COND_SHARED_0_TOOLKIT_PM_WXUNIV_0="#"
42297 if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xPM" -a "x$WXUNIV" = "x0" ; then
42298 COND_SHARED_0_TOOLKIT_PM_WXUNIV_0=""
42299 fi
42300
a848cd7e
SC
42301 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1="#"
42302 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
42303 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1=""
42304 fi
42305
42306 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
42307 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
42308 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
42309 fi
42310
42311 COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
42312 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
42313 COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
42314 fi
42315
42316 COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
42317 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
42318 COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
42319 fi
42320
42321 COND_SHARED_0_WXUSE_EXPAT_BUILTIN="#"
42322 if test "x$SHARED" = "x0" -a "x$wxUSE_EXPAT" = "xbuiltin" ; then
42323 COND_SHARED_0_WXUSE_EXPAT_BUILTIN=""
42324 fi
42325
42326 COND_SHARED_0_WXUSE_ODBC_BUILTIN="#"
42327 if test "x$SHARED" = "x0" -a "x$wxUSE_ODBC" = "xbuiltin" ; then
42328 COND_SHARED_0_WXUSE_ODBC_BUILTIN=""
42329 fi
42330
42331 COND_SHARED_0_WXUSE_REGEX_BUILTIN="#"
42332 if test "x$SHARED" = "x0" -a "x$wxUSE_REGEX" = "xbuiltin" ; then
42333 COND_SHARED_0_WXUSE_REGEX_BUILTIN=""
42334 fi
42335
42336 COND_SHARED_0_WXUSE_ZLIB_BUILTIN="#"
42337 if test "x$SHARED" = "x0" -a "x$wxUSE_ZLIB" = "xbuiltin" ; then
42338 COND_SHARED_0_WXUSE_ZLIB_BUILTIN=""
42339 fi
42340
42341 COND_SHARED_1="#"
42342 if test "x$SHARED" = "x1" ; then
42343 COND_SHARED_1=""
42344 fi
42345
42346 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1="#"
42347 if test "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
42348 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1=""
42349 fi
42350
a30f955f
VS
42351 COND_TOOLKIT_="#"
42352 if test "x$TOOLKIT" = "x" ; then
42353 COND_TOOLKIT_=""
42354 fi
42355
a848cd7e
SC
42356 COND_TOOLKIT_COCOA="#"
42357 if test "x$TOOLKIT" = "xCOCOA" ; then
42358 COND_TOOLKIT_COCOA=""
42359 fi
42360
a49baeab
DE
42361 COND_TOOLKIT_COCOA_USE_GUI_1="#"
42362 if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" ; then
42363 COND_TOOLKIT_COCOA_USE_GUI_1=""
42364 fi
42365
a848cd7e
SC
42366 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0="#"
42367 if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
42368 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0=""
42369 fi
42370
42371 COND_TOOLKIT_GTK="#"
42372 if test "x$TOOLKIT" = "xGTK" ; then
42373 COND_TOOLKIT_GTK=""
42374 fi
42375
42376 COND_TOOLKIT_GTK_USE_GUI_1="#"
42377 if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" ; then
42378 COND_TOOLKIT_GTK_USE_GUI_1=""
42379 fi
42380
42381 COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0="#"
42382 if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
42383 COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0=""
42384 fi
42385
42386 COND_TOOLKIT_MAC="#"
42387 if test "x$TOOLKIT" = "xMAC" ; then
42388 COND_TOOLKIT_MAC=""
42389 fi
42390
42391 COND_TOOLKIT_MAC_USE_GUI_1="#"
42392 if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" ; then
42393 COND_TOOLKIT_MAC_USE_GUI_1=""
42394 fi
42395
42396 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="#"
42397 if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
42398 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0=""
42399 fi
42400
42401 COND_TOOLKIT_MGL="#"
42402 if test "x$TOOLKIT" = "xMGL" ; then
42403 COND_TOOLKIT_MGL=""
42404 fi
42405
42406 COND_TOOLKIT_MGL_USE_GUI_1="#"
42407 if test "x$TOOLKIT" = "xMGL" -a "x$USE_GUI" = "x1" ; then
42408 COND_TOOLKIT_MGL_USE_GUI_1=""
42409 fi
42410
42411 COND_TOOLKIT_MOTIF="#"
42412 if test "x$TOOLKIT" = "xMOTIF" ; then
42413 COND_TOOLKIT_MOTIF=""
42414 fi
42415
42416 COND_TOOLKIT_MOTIF_USE_GUI_1="#"
42417 if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" ; then
42418 COND_TOOLKIT_MOTIF_USE_GUI_1=""
42419 fi
42420
42421 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0="#"
42422 if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
42423 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0=""
42424 fi
42425
42426 COND_TOOLKIT_MSW="#"
42427 if test "x$TOOLKIT" = "xMSW" ; then
42428 COND_TOOLKIT_MSW=""
42429 fi
42430
42431 COND_TOOLKIT_MSW_USE_GUI_1="#"
42432 if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" ; then
42433 COND_TOOLKIT_MSW_USE_GUI_1=""
42434 fi
42435
42436 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0="#"
42437 if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
42438 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0=""
42439 fi
42440
42441 COND_TOOLKIT_PM="#"
42442 if test "x$TOOLKIT" = "xPM" ; then
42443 COND_TOOLKIT_PM=""
42444 fi
42445
42446 COND_TOOLKIT_PM_USE_GUI_1="#"
42447 if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" ; then
42448 COND_TOOLKIT_PM_USE_GUI_1=""
42449 fi
42450
42451 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0="#"
42452 if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
42453 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0=""
42454 fi
42455
3fd9c298
DE
42456 COND_TOOLKIT_WINCE="#"
42457 if test "x$TOOLKIT" = "xWINCE" ; then
42458 COND_TOOLKIT_WINCE=""
42459 fi
42460
42461 COND_TOOLKIT_WINCE_USE_GUI_1="#"
42462 if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" ; then
42463 COND_TOOLKIT_WINCE_USE_GUI_1=""
42464 fi
42465
42466 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0="#"
42467 if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
42468 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0=""
42469 fi
42470
a848cd7e
SC
42471 COND_TOOLKIT_X11="#"
42472 if test "x$TOOLKIT" = "xX11" ; then
42473 COND_TOOLKIT_X11=""
42474 fi
42475
42476 COND_TOOLKIT_X11_USE_GUI_1="#"
42477 if test "x$TOOLKIT" = "xX11" -a "x$USE_GUI" = "x1" ; then
42478 COND_TOOLKIT_X11_USE_GUI_1=""
42479 fi
42480
42481 COND_UNICODE_1="#"
42482 if test "x$UNICODE" = "x1" ; then
42483 COND_UNICODE_1=""
42484 fi
42485
42486 COND_USE_EXCEPTIONS_0="#"
42487 if test "x$USE_EXCEPTIONS" = "x0" ; then
42488 COND_USE_EXCEPTIONS_0=""
42489 fi
42490
42491 COND_USE_EXCEPTIONS_1="#"
42492 if test "x$USE_EXCEPTIONS" = "x1" ; then
42493 COND_USE_EXCEPTIONS_1=""
42494 fi
42495
42496 COND_USE_GUI_0="#"
42497 if test "x$USE_GUI" = "x0" ; then
42498 COND_USE_GUI_0=""
42499 fi
42500
42501 COND_USE_GUI_1="#"
42502 if test "x$USE_GUI" = "x1" ; then
42503 COND_USE_GUI_1=""
42504 fi
42505
42506 COND_USE_GUI_1_WXUNIV_0="#"
42507 if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
42508 COND_USE_GUI_1_WXUNIV_0=""
42509 fi
42510
42511 COND_USE_GUI_1_WXUNIV_1="#"
42512 if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x1" ; then
42513 COND_USE_GUI_1_WXUNIV_1=""
42514 fi
42515
42516 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
42517 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
42518 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
42519 fi
42520
42521 COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
42522 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
42523 COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
42524 fi
42525
42526 COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
42527 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
42528 COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
42529 fi
42530
ceec2216
RL
42531 COND_USE_ODBC_1="#"
42532 if test "x$USE_ODBC" = "x1" ; then
42533 COND_USE_ODBC_1=""
42534 fi
42535
ffa0583f
RL
42536 COND_USE_OPENGL_1="#"
42537 if test "x$USE_OPENGL" = "x1" ; then
42538 COND_USE_OPENGL_1=""
42539 fi
42540
a848cd7e
SC
42541 COND_USE_PLUGINS_0="#"
42542 if test "x$USE_PLUGINS" = "x0" ; then
42543 COND_USE_PLUGINS_0=""
42544 fi
42545
42546 COND_USE_SOSYMLINKS_1="#"
42547 if test "x$USE_SOSYMLINKS" = "x1" ; then
42548 COND_USE_SOSYMLINKS_1=""
42549 fi
42550
42551 COND_USE_SOVERLINUX_1="#"
42552 if test "x$USE_SOVERLINUX" = "x1" ; then
42553 COND_USE_SOVERLINUX_1=""
42554 fi
42555
42556 COND_USE_SOVERSION_0="#"
42557 if test "x$USE_SOVERSION" = "x0" ; then
42558 COND_USE_SOVERSION_0=""
42559 fi
42560
42561 COND_USE_SOVERSOLARIS_1="#"
42562 if test "x$USE_SOVERSOLARIS" = "x1" ; then
42563 COND_USE_SOVERSOLARIS_1=""
42564 fi
42565
a13a7f89
RL
42566 COND_USE_XRC_1="#"
42567 if test "x$USE_XRC" = "x1" ; then
42568 COND_USE_XRC_1=""
42569 fi
42570
a848cd7e
SC
42571 COND_WITH_PLUGIN_SDL_1="#"
42572 if test "x$WITH_PLUGIN_SDL" = "x1" ; then
42573 COND_WITH_PLUGIN_SDL_1=""
42574 fi
42575
1e6eb025
VZ
42576 COND_WXUNIV_0="#"
42577 if test "x$WXUNIV" = "x0" ; then
42578 COND_WXUNIV_0=""
42579 fi
42580
a848cd7e
SC
42581 COND_WXUNIV_1="#"
42582 if test "x$WXUNIV" = "x1" ; then
42583 COND_WXUNIV_1=""
42584 fi
42585
42586 COND_WXUSE_EXPAT_BUILTIN="#"
42587 if test "x$wxUSE_EXPAT" = "xbuiltin" ; then
42588 COND_WXUSE_EXPAT_BUILTIN=""
42589 fi
42590
42591 COND_WXUSE_LIBJPEG_BUILTIN="#"
42592 if test "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
42593 COND_WXUSE_LIBJPEG_BUILTIN=""
42594 fi
42595
42596 COND_WXUSE_LIBPNG_BUILTIN="#"
42597 if test "x$wxUSE_LIBPNG" = "xbuiltin" ; then
42598 COND_WXUSE_LIBPNG_BUILTIN=""
42599 fi
42600
42601 COND_WXUSE_LIBTIFF_BUILTIN="#"
42602 if test "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
42603 COND_WXUSE_LIBTIFF_BUILTIN=""
42604 fi
42605
42606 COND_WXUSE_ODBC_BUILTIN="#"
42607 if test "x$wxUSE_ODBC" = "xbuiltin" ; then
42608 COND_WXUSE_ODBC_BUILTIN=""
42609 fi
42610
42611 COND_WXUSE_REGEX_BUILTIN="#"
42612 if test "x$wxUSE_REGEX" = "xbuiltin" ; then
42613 COND_WXUSE_REGEX_BUILTIN=""
42614 fi
42615
42616 COND_WXUSE_ZLIB_BUILTIN="#"
42617 if test "x$wxUSE_ZLIB" = "xbuiltin" ; then
42618 COND_WXUSE_ZLIB_BUILTIN=""
42619 fi
42620
42621
42622
2057db16
VS
42623 if test "$BAKEFILE_BAKEFILE_M4_VERSION" != "$BAKEFILE_AUTOCONF_INC_M4_VERSION" ; then
42624 { { 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
42625echo "$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;}
42626 { (exit 1); exit 1; }; }
42627 fi
42628
a848cd7e 42629
ceec2216
RL
42630if test "$wxUSE_SHARED" = "yes"; then
42631
42632 sanitised_bakefile_mess=`echo "$SHARED_LD_CXX" | tr -d '()'`
42633 EXE_LINKER=`eval echo "$sanitised_bakefile_mess"`
42634
5b674b9d
DE
42635 case "${host}" in
42636 *-pc-os2_emx | *-pc-os2-emx )
42637 SHARED_LD_CC="`pwd`/dllar.sh -name-mangler-script ./dllnames.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
42638 SHARED_LD_CXX="`pwd`/dllar.sh -name-mangler-script ./dllnames.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
42639 cp -p ${srcdir}/src/os2/dllnames.sh .
42640 cp -p ${srcdir}/src/os2/dllar.sh .
42641 ;;
42642 esac
ceec2216
RL
42643else
42644
42645 EXE_LINKER="$CXX -o"
42646
42647fi
a848cd7e 42648
74b84332 42649GCC_PRAGMA_FLAGS=""
c08ebc62
DE
42650PCH_FLAGS=""
42651if test $GCC_PCH = 1 ; then
42652 GCC_PRAGMA_FLAGS="-DNO_GCC_PRAGMA"
42653 PCH_FLAGS="-DWX_PRECOMP"
42654else
a848cd7e
SC
42655 case "${host}" in
42656 powerpc-*-darwin* )
74b84332 42657 GCC_PRAGMA_FLAGS="-DNO_GCC_PRAGMA"
a848cd7e 42658 ;;
bea8e651 42659 *-*-mingw32* )
1f344abf
VS
42660 if test "$wxUSE_STL" = "yes" -o \
42661 "$wxUSE_NO_EXCEPTIONS" != "yes" -o \
42662 "$wxUSE_NO_RTTI" != "yes"; then
42663 echo "$as_me:$LINENO: checking if this MinGW version needs -DNO_GCC_PRAGMA" >&5
42664echo $ECHO_N "checking if this MinGW version needs -DNO_GCC_PRAGMA... $ECHO_C" >&6
bea8e651
MB
42665 cat >conftest.$ac_ext <<_ACEOF
42666/* confdefs.h. */
42667_ACEOF
42668cat confdefs.h >>conftest.$ac_ext
42669cat >>conftest.$ac_ext <<_ACEOF
42670/* end confdefs.h. */
42671
3314e67b
RR
42672int
42673main ()
42674{
42675#if !(__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 2))
42676 #error "Not GCC 3.2 or greater"
42677 #endif
42678
42679 ;
42680 return 0;
42681}
42682_ACEOF
42683rm -f conftest.$ac_objext
42684if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
42685 (eval $ac_compile) 2>conftest.er1
42686 ac_status=$?
42687 grep -v '^ *+' conftest.er1 >conftest.err
42688 rm -f conftest.er1
42689 cat conftest.err >&5
42690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42691 (exit $ac_status); } &&
89be85c2
VS
42692 { ac_try='test -z "$ac_c_werror_flag"
42693 || test ! -s conftest.err'
3314e67b
RR
42694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42695 (eval $ac_try) 2>&5
42696 ac_status=$?
42697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42698 (exit $ac_status); }; } &&
42699 { ac_try='test -s conftest.$ac_objext'
42700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42701 (eval $ac_try) 2>&5
42702 ac_status=$?
42703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42704 (exit $ac_status); }; }; then
42705 GCC_PRAGMA_FLAGS="-DNO_GCC_PRAGMA"
42706 echo "$as_me:$LINENO: result: yes" >&5
42707echo "${ECHO_T}yes" >&6
42708else
42709 echo "$as_me: failed program was:" >&5
42710sed 's/^/| /' conftest.$ac_ext >&5
42711
42712echo "$as_me:$LINENO: result: no" >&5
42713echo "${ECHO_T}no" >&6
42714fi
42715rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
42716 fi
42717 ;;
42718 *-pc-os2_emx | *-pc-os2-emx )
42719 if test "$wxUSE_STL" = "yes"; then
42720 echo "$as_me:$LINENO: checking if this gcc version needs -DNO_GCC_PRAGMA" >&5
42721echo $ECHO_N "checking if this gcc version needs -DNO_GCC_PRAGMA... $ECHO_C" >&6
42722 cat >conftest.$ac_ext <<_ACEOF
42723/* confdefs.h. */
42724_ACEOF
42725cat confdefs.h >>conftest.$ac_ext
42726cat >>conftest.$ac_ext <<_ACEOF
42727/* end confdefs.h. */
42728
bea8e651
MB
42729int
42730main ()
42731{
1f344abf 42732#if !(__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 2))
bea8e651
MB
42733 #error "Not GCC 3.2 or greater"
42734 #endif
42735
42736 ;
42737 return 0;
42738}
42739_ACEOF
42740rm -f conftest.$ac_objext
42741if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 42742 (eval $ac_compile) 2>conftest.er1
bea8e651 42743 ac_status=$?
ac1cb8d3
VS
42744 grep -v '^ *+' conftest.er1 >conftest.err
42745 rm -f conftest.er1
42746 cat conftest.err >&5
bea8e651
MB
42747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42748 (exit $ac_status); } &&
89be85c2
VS
42749 { ac_try='test -z "$ac_c_werror_flag"
42750 || test ! -s conftest.err'
ac1cb8d3
VS
42751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42752 (eval $ac_try) 2>&5
42753 ac_status=$?
42754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42755 (exit $ac_status); }; } &&
42756 { ac_try='test -s conftest.$ac_objext'
bea8e651
MB
42757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42758 (eval $ac_try) 2>&5
42759 ac_status=$?
42760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42761 (exit $ac_status); }; }; then
74b84332 42762 GCC_PRAGMA_FLAGS="-DNO_GCC_PRAGMA"
bea8e651
MB
42763 echo "$as_me:$LINENO: result: yes" >&5
42764echo "${ECHO_T}yes" >&6
42765else
42766 echo "$as_me: failed program was:" >&5
42767sed 's/^/| /' conftest.$ac_ext >&5
42768
42769echo "$as_me:$LINENO: result: no" >&5
42770echo "${ECHO_T}no" >&6
42771fi
ac1cb8d3 42772rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bea8e651
MB
42773 fi
42774 ;;
a848cd7e
SC
42775 esac
42776fi
d2083416 42777CPPFLAGS="$PCH_FLAGS $GCC_PRAGMA_FLAGS $CPPFLAGS"
a848cd7e
SC
42778
42779
42780SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`"
42781
42782
42783
42784
42785
42786
42787
42788
42789
42790
42791
42792
42793
42794
42795
42796
42797
42798
42799
42800
42801
42802
42803
42804
42805
42806
42807
42808
42809
42810
42811
42812
42813
42814
42815
42816
42817
42818
42819
42820
42821
42822
a848cd7e
SC
42823
42824
42825
42826
42827
42828
42829
42830
42831
42832
42833
42834
42835
42836
42837
42838
42839
42840
74b84332 42841
a848cd7e
SC
42842
42843
42844echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
42845echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
ac1cb8d3 42846set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
a848cd7e
SC
42847if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
42848 echo $ECHO_N "(cached) $ECHO_C" >&6
42849else
42850 cat >conftest.make <<\_ACEOF
42851all:
42852 @echo 'ac_maketemp="$(MAKE)"'
42853_ACEOF
42854# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
42855eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
42856if test -n "$ac_maketemp"; then
42857 eval ac_cv_prog_make_${ac_make}_set=yes
42858else
42859 eval ac_cv_prog_make_${ac_make}_set=no
42860fi
42861rm -f conftest.make
42862fi
42863if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
42864 echo "$as_me:$LINENO: result: yes" >&5
42865echo "${ECHO_T}yes" >&6
42866 SET_MAKE=
42867else
42868 echo "$as_me:$LINENO: result: no" >&5
42869echo "${ECHO_T}no" >&6
42870 SET_MAKE="MAKE=${MAKE-make}"
42871fi
42872
42873
a848cd7e 42874
ceec2216
RL
42875 ac_config_headers="$ac_config_headers lib/wx/include/${TOOLCHAIN_FULLNAME}/wx/setup.h:setup.h.in"
42876
a848cd7e 42877
ceec2216 42878 ac_config_files="$ac_config_files lib/wx/config/${TOOLCHAIN_FULLNAME}:wx-config.in"
a848cd7e 42879
a848cd7e 42880
ceec2216 42881 ac_config_files="$ac_config_files lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}:wx-config-inplace.in"
a848cd7e 42882
ceec2216
RL
42883
42884 ac_config_files="$ac_config_files version-script Makefile"
42885
42886
42887 ac_config_commands="$ac_config_commands wx-config
42888 "
a848cd7e
SC
42889
42890
9103d280
RL
42891
42892
a848cd7e
SC
42893if test "$wxUSE_GUI" = "yes"; then
42894 SUBDIRS="samples demos utils contrib"
42895else SUBDIRS="samples utils"
42896fi
42897
42898
42899
42900# Check whether --with-cppunit-prefix or --without-cppunit-prefix was given.
42901if test "${with_cppunit_prefix+set}" = set; then
42902 withval="$with_cppunit_prefix"
42903 cppunit_config_prefix="$withval"
42904else
42905 cppunit_config_prefix=""
42906fi;
42907
42908# Check whether --with-cppunit-exec-prefix or --without-cppunit-exec-prefix was given.
42909if test "${with_cppunit_exec_prefix+set}" = set; then
42910 withval="$with_cppunit_exec_prefix"
42911 cppunit_config_exec_prefix="$withval"
42912else
42913 cppunit_config_exec_prefix=""
42914fi;
42915
42916 if test x$cppunit_config_exec_prefix != x ; then
42917 cppunit_config_args="$cppunit_config_args --exec-prefix=$cppunit_config_exec_prefix"
42918 if test x${CPPUNIT_CONFIG+set} != xset ; then
42919 CPPUNIT_CONFIG=$cppunit_config_exec_prefix/bin/cppunit-config
42920 fi
42921 fi
42922 if test x$cppunit_config_prefix != x ; then
42923 cppunit_config_args="$cppunit_config_args --prefix=$cppunit_config_prefix"
42924 if test x${CPPUNIT_CONFIG+set} != xset ; then
42925 CPPUNIT_CONFIG=$cppunit_config_prefix/bin/cppunit-config
42926 fi
42927 fi
42928
42929 # Extract the first word of "cppunit-config", so it can be a program name with args.
42930set dummy cppunit-config; ac_word=$2
42931echo "$as_me:$LINENO: checking for $ac_word" >&5
42932echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
42933if test "${ac_cv_path_CPPUNIT_CONFIG+set}" = set; then
42934 echo $ECHO_N "(cached) $ECHO_C" >&6
42935else
42936 case $CPPUNIT_CONFIG in
42937 [\\/]* | ?:[\\/]*)
42938 ac_cv_path_CPPUNIT_CONFIG="$CPPUNIT_CONFIG" # Let the user override the test with a path.
42939 ;;
42940 *)
42941 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
42942for as_dir in $PATH
42943do
42944 IFS=$as_save_IFS
42945 test -z "$as_dir" && as_dir=.
42946 for ac_exec_ext in '' $ac_executable_extensions; do
42947 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
42948 ac_cv_path_CPPUNIT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
42949 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
42950 break 2
42951 fi
42952done
42953done
42954
42955 test -z "$ac_cv_path_CPPUNIT_CONFIG" && ac_cv_path_CPPUNIT_CONFIG="no"
42956 ;;
42957esac
42958fi
42959CPPUNIT_CONFIG=$ac_cv_path_CPPUNIT_CONFIG
42960
42961if test -n "$CPPUNIT_CONFIG"; then
42962 echo "$as_me:$LINENO: result: $CPPUNIT_CONFIG" >&5
42963echo "${ECHO_T}$CPPUNIT_CONFIG" >&6
42964else
42965 echo "$as_me:$LINENO: result: no" >&5
42966echo "${ECHO_T}no" >&6
42967fi
42968
42969 cppunit_version_min=1.8.0
42970
42971 echo "$as_me:$LINENO: checking for Cppunit - version >= $cppunit_version_min" >&5
42972echo $ECHO_N "checking for Cppunit - version >= $cppunit_version_min... $ECHO_C" >&6
42973 no_cppunit=""
42974 if test "$CPPUNIT_CONFIG" = "no" ; then
42975 no_cppunit=yes
42976 else
42977 CPPUNIT_CFLAGS=`$CPPUNIT_CONFIG --cflags`
42978 CPPUNIT_LIBS=`$CPPUNIT_CONFIG --libs`
42979 cppunit_version=`$CPPUNIT_CONFIG --version`
42980
42981 cppunit_major_version=`echo $cppunit_version | \
42982 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
42983 cppunit_minor_version=`echo $cppunit_version | \
42984 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
42985 cppunit_micro_version=`echo $cppunit_version | \
42986 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
42987
42988 cppunit_major_min=`echo $cppunit_version_min | \
42989 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
42990 cppunit_minor_min=`echo $cppunit_version_min | \
42991 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
42992 cppunit_micro_min=`echo $cppunit_version_min | \
42993 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
42994
42995 cppunit_version_proper=`expr \
42996 $cppunit_major_version \> $cppunit_major_min \| \
42997 $cppunit_major_version \= $cppunit_major_min \& \
42998 $cppunit_minor_version \> $cppunit_minor_min \| \
42999 $cppunit_major_version \= $cppunit_major_min \& \
43000 $cppunit_minor_version \= $cppunit_minor_min \& \
43001 $cppunit_micro_version \>= $cppunit_micro_min `
43002
43003 if test "$cppunit_version_proper" = "1" ; then
43004 echo "$as_me:$LINENO: result: $cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&5
43005echo "${ECHO_T}$cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&6
43006 else
43007 echo "$as_me:$LINENO: result: no" >&5
43008echo "${ECHO_T}no" >&6
43009 no_cppunit=yes
43010 fi
43011 fi
43012
43013 if test "x$no_cppunit" = x ; then
c2218763 43014 SUBDIRS="$SUBDIRS tests"
a848cd7e
SC
43015 else
43016 CPPUNIT_CFLAGS=""
43017 CPPUNIT_LIBS=""
c2218763 43018 :
a848cd7e
SC
43019 fi
43020
43021
43022
43023
43024
43025for subdir in `echo $SUBDIRS`; do
43026 if test -d ${srcdir}/${subdir} ; then
43027 if test "$wxUSE_GUI" = "yes"; then
43028 if test ${subdir} = "samples"; then
43029 makefiles="samples/Makefile.in $makefiles"
43030 for sample in `echo $SAMPLES_SUBDIRS`; do
43031 if test -d $srcdir/samples/$sample; then
43032 makefiles="samples/$sample/Makefile.in $makefiles"
43033 fi
43034 done
43035 else makefiles=`(cd $srcdir ; find $subdir -name Makefile.in)`
43036 fi
43037 else if test ${subdir} = "samples"; then
43038 makefiles="samples/Makefile.in samples/console/Makefile.in"
43039 elif test ${subdir} = "utils"; then
6537ccf8
VS
43040 makefiles=""
43041 for util in HelpGen tex2rtf ; do
43042 if test -d $srcdir/utils/$util ; then
43043 makefiles="utils/$util/Makefile.in \
43044 utils/$util/src/Makefile.in \
43045 $makefiles"
43046 fi
43047 done
a848cd7e
SC
43048 else makefiles=`(cd $srcdir ; find $subdir -name Makefile.in)`
43049 fi
43050 fi
43051
43052 for mkin in $makefiles ; do
43053 mk=`echo $mkin | sed 's/Makefile\.in/Makefile/g'`
43054 ac_config_files="$ac_config_files $mk"
43055
43056 done
43057 fi
43058done
43059
43060
43061cat >confcache <<\_ACEOF
43062# This file is a shell script that caches the results of configure
43063# tests run on this system so they can be shared between configure
43064# scripts and configure runs, see configure's option --config-cache.
43065# It is not useful on other systems. If it contains results you don't
43066# want to keep, you may remove or edit it.
43067#
43068# config.status only pays attention to the cache file if you give it
43069# the --recheck option to rerun configure.
43070#
43071# `ac_cv_env_foo' variables (set or unset) will be overridden when
43072# loading this file, other *unset* `ac_cv_foo' will be assigned the
43073# following values.
43074
43075_ACEOF
43076
43077# The following way of writing the cache mishandles newlines in values,
43078# but we know of no workaround that is simple, portable, and efficient.
43079# So, don't put newlines in cache variables' values.
43080# Ultrix sh set writes to stderr and can't be redirected directly,
43081# and sets the high bit in the cache file unless we assign to the vars.
43082{
43083 (set) 2>&1 |
43084 case `(ac_space=' '; set | grep ac_space) 2>&1` in
43085 *ac_space=\ *)
43086 # `set' does not quote correctly, so add quotes (double-quote
43087 # substitution turns \\\\ into \\, and sed turns \\ into \).
43088 sed -n \
ac1cb8d3
VS
43089 "s/'/'\\\\''/g;
43090 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a848cd7e
SC
43091 ;;
43092 *)
43093 # `set' quotes correctly as required by POSIX, so do not add quotes.
43094 sed -n \
ac1cb8d3 43095 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
43096 ;;
43097 esac;
43098} |
43099 sed '
43100 t clear
43101 : clear
43102 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
43103 t end
43104 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
43105 : end' >>confcache
43106if diff $cache_file confcache >/dev/null 2>&1; then :; else
43107 if test -w $cache_file; then
43108 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
43109 cat confcache >$cache_file
43110 else
43111 echo "not updating unwritable cache $cache_file"
43112 fi
43113fi
43114rm -f confcache
43115
43116test "x$prefix" = xNONE && prefix=$ac_default_prefix
43117# Let make expand exec_prefix.
43118test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
43119
43120# VPATH may cause trouble with some makes, so we remove $(srcdir),
43121# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
43122# trailing colons and then remove the whole line if VPATH becomes empty
43123# (actually we leave an empty line to preserve line numbers).
43124if test "x$srcdir" = x.; then
ac1cb8d3 43125 ac_vpsub='/^[ ]*VPATH[ ]*=/{
a848cd7e
SC
43126s/:*\$(srcdir):*/:/;
43127s/:*\${srcdir}:*/:/;
43128s/:*@srcdir@:*/:/;
ac1cb8d3 43129s/^\([^=]*=[ ]*\):*/\1/;
a848cd7e 43130s/:*$//;
ac1cb8d3 43131s/^[^=]*=[ ]*$//;
a848cd7e
SC
43132}'
43133fi
43134
43135DEFS=-DHAVE_CONFIG_H
43136
43137ac_libobjs=
43138ac_ltlibobjs=
43139for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
43140 # 1. Remove the extension, and $U if already installed.
43141 ac_i=`echo "$ac_i" |
ac1cb8d3 43142 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
a848cd7e
SC
43143 # 2. Add them.
43144 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
43145 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
43146done
43147LIBOBJS=$ac_libobjs
43148
43149LTLIBOBJS=$ac_ltlibobjs
43150
43151
43152
43153: ${CONFIG_STATUS=./config.status}
43154ac_clean_files_save=$ac_clean_files
43155ac_clean_files="$ac_clean_files $CONFIG_STATUS"
43156{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
43157echo "$as_me: creating $CONFIG_STATUS" >&6;}
43158cat >$CONFIG_STATUS <<_ACEOF
43159#! $SHELL
43160# Generated by $as_me.
43161# Run this file to recreate the current configuration.
43162# Compiler output produced by configure, useful for debugging
43163# configure, is in config.log if it exists.
43164
43165debug=false
43166ac_cs_recheck=false
43167ac_cs_silent=false
43168SHELL=\${CONFIG_SHELL-$SHELL}
43169_ACEOF
43170
43171cat >>$CONFIG_STATUS <<\_ACEOF
43172## --------------------- ##
43173## M4sh Initialization. ##
43174## --------------------- ##
43175
43176# Be Bourne compatible
43177if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
43178 emulate sh
43179 NULLCMD=:
43180 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
43181 # is contrary to our usage. Disable this feature.
43182 alias -g '${1+"$@"}'='"$@"'
43183elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
43184 set -o posix
43185fi
ac1cb8d3 43186DUALCASE=1; export DUALCASE # for MKS sh
a848cd7e
SC
43187
43188# Support unset when possible.
ac1cb8d3 43189if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
a848cd7e
SC
43190 as_unset=unset
43191else
43192 as_unset=false
43193fi
43194
43195
43196# Work around bugs in pre-3.0 UWIN ksh.
43197$as_unset ENV MAIL MAILPATH
43198PS1='$ '
43199PS2='> '
43200PS4='+ '
43201
43202# NLS nuisances.
43203for as_var in \
43204 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
43205 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
43206 LC_TELEPHONE LC_TIME
43207do
ac1cb8d3 43208 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
a848cd7e
SC
43209 eval $as_var=C; export $as_var
43210 else
43211 $as_unset $as_var
43212 fi
43213done
43214
43215# Required to use basename.
43216if expr a : '\(a\)' >/dev/null 2>&1; then
43217 as_expr=expr
43218else
43219 as_expr=false
43220fi
43221
43222if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
43223 as_basename=basename
43224else
43225 as_basename=false
43226fi
43227
43228
43229# Name of the executable.
43230as_me=`$as_basename "$0" ||
43231$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
43232 X"$0" : 'X\(//\)$' \| \
43233 X"$0" : 'X\(/\)$' \| \
43234 . : '\(.\)' 2>/dev/null ||
43235echo X/"$0" |
43236 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
43237 /^X\/\(\/\/\)$/{ s//\1/; q; }
43238 /^X\/\(\/\).*/{ s//\1/; q; }
43239 s/.*/./; q'`
43240
43241
43242# PATH needs CR, and LINENO needs CR and PATH.
43243# Avoid depending upon Character Ranges.
43244as_cr_letters='abcdefghijklmnopqrstuvwxyz'
43245as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
43246as_cr_Letters=$as_cr_letters$as_cr_LETTERS
43247as_cr_digits='0123456789'
43248as_cr_alnum=$as_cr_Letters$as_cr_digits
43249
43250# The user is always right.
43251if test "${PATH_SEPARATOR+set}" != set; then
43252 echo "#! /bin/sh" >conf$$.sh
43253 echo "exit 0" >>conf$$.sh
43254 chmod +x conf$$.sh
43255 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
43256 PATH_SEPARATOR=';'
43257 else
43258 PATH_SEPARATOR=:
43259 fi
43260 rm -f conf$$.sh
43261fi
43262
43263
43264 as_lineno_1=$LINENO
43265 as_lineno_2=$LINENO
43266 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
43267 test "x$as_lineno_1" != "x$as_lineno_2" &&
43268 test "x$as_lineno_3" = "x$as_lineno_2" || {
43269 # Find who we are. Look in the path if we contain no path at all
43270 # relative or not.
43271 case $0 in
43272 *[\\/]* ) as_myself=$0 ;;
43273 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43274for as_dir in $PATH
43275do
43276 IFS=$as_save_IFS
43277 test -z "$as_dir" && as_dir=.
43278 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
43279done
43280
43281 ;;
43282 esac
43283 # We did not find ourselves, most probably we were run as `sh COMMAND'
43284 # in which case we are not to be found in the path.
43285 if test "x$as_myself" = x; then
43286 as_myself=$0
43287 fi
43288 if test ! -f "$as_myself"; then
43289 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
43290echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
43291 { (exit 1); exit 1; }; }
43292 fi
43293 case $CONFIG_SHELL in
43294 '')
43295 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43296for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
43297do
43298 IFS=$as_save_IFS
43299 test -z "$as_dir" && as_dir=.
43300 for as_base in sh bash ksh sh5; do
43301 case $as_dir in
43302 /*)
43303 if ("$as_dir/$as_base" -c '
43304 as_lineno_1=$LINENO
43305 as_lineno_2=$LINENO
43306 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
43307 test "x$as_lineno_1" != "x$as_lineno_2" &&
43308 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
43309 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
43310 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
43311 CONFIG_SHELL=$as_dir/$as_base
43312 export CONFIG_SHELL
43313 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
43314 fi;;
43315 esac
43316 done
43317done
43318;;
43319 esac
43320
43321 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
43322 # uniformly replaced by the line number. The first 'sed' inserts a
43323 # line-number line before each line; the second 'sed' does the real
43324 # work. The second script uses 'N' to pair each line-number line
43325 # with the numbered line, and appends trailing '-' during
43326 # substitution so that $LINENO is not a special case at line end.
43327 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
43328 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
43329 sed '=' <$as_myself |
43330 sed '
43331 N
43332 s,$,-,
43333 : loop
43334 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
43335 t loop
43336 s,-$,,
43337 s,^['$as_cr_digits']*\n,,
43338 ' >$as_me.lineno &&
43339 chmod +x $as_me.lineno ||
43340 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
43341echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
43342 { (exit 1); exit 1; }; }
43343
43344 # Don't try to exec as it changes $[0], causing all sort of problems
43345 # (the dirname of $[0] is not the place where we might find the
43346 # original and so on. Autoconf is especially sensible to this).
43347 . ./$as_me.lineno
43348 # Exit status is that of the last command.
43349 exit
43350}
43351
43352
43353case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
43354 *c*,-n*) ECHO_N= ECHO_C='
43355' ECHO_T=' ' ;;
43356 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
43357 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
43358esac
43359
43360if expr a : '\(a\)' >/dev/null 2>&1; then
43361 as_expr=expr
43362else
43363 as_expr=false
43364fi
43365
43366rm -f conf$$ conf$$.exe conf$$.file
43367echo >conf$$.file
43368if ln -s conf$$.file conf$$ 2>/dev/null; then
43369 # We could just check for DJGPP; but this test a) works b) is more generic
43370 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
43371 if test -f conf$$.exe; then
43372 # Don't use ln at all; we don't have any links
43373 as_ln_s='cp -p'
43374 else
43375 as_ln_s='ln -s'
43376 fi
43377elif ln conf$$.file conf$$ 2>/dev/null; then
43378 as_ln_s=ln
43379else
43380 as_ln_s='cp -p'
43381fi
43382rm -f conf$$ conf$$.exe conf$$.file
43383
43384if mkdir -p . 2>/dev/null; then
43385 as_mkdir_p=:
43386else
ac1cb8d3 43387 test -d ./-p && rmdir ./-p
a848cd7e
SC
43388 as_mkdir_p=false
43389fi
43390
43391as_executable_p="test -f"
43392
43393# Sed expression to map a string onto a valid CPP name.
ac1cb8d3 43394as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
a848cd7e
SC
43395
43396# Sed expression to map a string onto a valid variable name.
ac1cb8d3 43397as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
a848cd7e
SC
43398
43399
43400# IFS
43401# We need space, tab and new line, in precisely that order.
43402as_nl='
43403'
43404IFS=" $as_nl"
43405
43406# CDPATH.
43407$as_unset CDPATH
43408
43409exec 6>&1
43410
43411# Open the log real soon, to keep \$[0] and so on meaningful, and to
43412# report actual input values of CONFIG_FILES etc. instead of their
43413# values after options handling. Logging --version etc. is OK.
43414exec 5>>config.log
43415{
43416 echo
43417 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
43418## Running $as_me. ##
43419_ASBOX
43420} >&5
43421cat >&5 <<_CSEOF
43422
81f90336 43423This file was extended by wxWidgets $as_me 2.5.4, which was
ac1cb8d3 43424generated by GNU Autoconf 2.59. Invocation command line was
a848cd7e
SC
43425
43426 CONFIG_FILES = $CONFIG_FILES
43427 CONFIG_HEADERS = $CONFIG_HEADERS
43428 CONFIG_LINKS = $CONFIG_LINKS
43429 CONFIG_COMMANDS = $CONFIG_COMMANDS
43430 $ $0 $@
43431
43432_CSEOF
43433echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
43434echo >&5
43435_ACEOF
43436
43437# Files that config.status was made for.
43438if test -n "$ac_config_files"; then
43439 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
43440fi
43441
43442if test -n "$ac_config_headers"; then
43443 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
43444fi
43445
43446if test -n "$ac_config_links"; then
43447 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
43448fi
43449
43450if test -n "$ac_config_commands"; then
43451 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
43452fi
43453
43454cat >>$CONFIG_STATUS <<\_ACEOF
43455
43456ac_cs_usage="\
43457\`$as_me' instantiates files from templates according to the
43458current configuration.
43459
43460Usage: $0 [OPTIONS] [FILE]...
43461
43462 -h, --help print this help, then exit
43463 -V, --version print version number, then exit
43464 -q, --quiet do not print progress messages
43465 -d, --debug don't remove temporary files
43466 --recheck update $as_me by reconfiguring in the same conditions
43467 --file=FILE[:TEMPLATE]
ac1cb8d3 43468 instantiate the configuration file FILE
a848cd7e 43469 --header=FILE[:TEMPLATE]
ac1cb8d3 43470 instantiate the configuration header FILE
a848cd7e
SC
43471
43472Configuration files:
43473$config_files
43474
43475Configuration headers:
43476$config_headers
43477
43478Configuration commands:
43479$config_commands
43480
43481Report bugs to <bug-autoconf@gnu.org>."
43482_ACEOF
43483
43484cat >>$CONFIG_STATUS <<_ACEOF
43485ac_cs_version="\\
81f90336 43486wxWidgets config.status 2.5.4
ac1cb8d3 43487configured by $0, generated by GNU Autoconf 2.59,
a848cd7e
SC
43488 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
43489
ac1cb8d3 43490Copyright (C) 2003 Free Software Foundation, Inc.
a848cd7e
SC
43491This config.status script is free software; the Free Software Foundation
43492gives unlimited permission to copy, distribute and modify it."
43493srcdir=$srcdir
43494INSTALL="$INSTALL"
43495_ACEOF
43496
43497cat >>$CONFIG_STATUS <<\_ACEOF
43498# If no file are specified by the user, then we need to provide default
43499# value. By we need to know if files were specified by the user.
43500ac_need_defaults=:
43501while test $# != 0
43502do
43503 case $1 in
43504 --*=*)
43505 ac_option=`expr "x$1" : 'x\([^=]*\)='`
43506 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
43507 ac_shift=:
43508 ;;
43509 -*)
43510 ac_option=$1
43511 ac_optarg=$2
43512 ac_shift=shift
43513 ;;
43514 *) # This is not an option, so the user has probably given explicit
43515 # arguments.
43516 ac_option=$1
43517 ac_need_defaults=false;;
43518 esac
43519
43520 case $ac_option in
43521 # Handling of the options.
43522_ACEOF
43523cat >>$CONFIG_STATUS <<\_ACEOF
43524 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
43525 ac_cs_recheck=: ;;
43526 --version | --vers* | -V )
43527 echo "$ac_cs_version"; exit 0 ;;
43528 --he | --h)
43529 # Conflict between --help and --header
43530 { { echo "$as_me:$LINENO: error: ambiguous option: $1
43531Try \`$0 --help' for more information." >&5
43532echo "$as_me: error: ambiguous option: $1
43533Try \`$0 --help' for more information." >&2;}
43534 { (exit 1); exit 1; }; };;
43535 --help | --hel | -h )
43536 echo "$ac_cs_usage"; exit 0 ;;
43537 --debug | --d* | -d )
43538 debug=: ;;
43539 --file | --fil | --fi | --f )
43540 $ac_shift
43541 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
43542 ac_need_defaults=false;;
43543 --header | --heade | --head | --hea )
43544 $ac_shift
43545 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
43546 ac_need_defaults=false;;
43547 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
43548 | -silent | --silent | --silen | --sile | --sil | --si | --s)
43549 ac_cs_silent=: ;;
43550
43551 # This is an error.
43552 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
43553Try \`$0 --help' for more information." >&5
43554echo "$as_me: error: unrecognized option: $1
43555Try \`$0 --help' for more information." >&2;}
43556 { (exit 1); exit 1; }; } ;;
43557
43558 *) ac_config_targets="$ac_config_targets $1" ;;
43559
43560 esac
43561 shift
43562done
43563
43564ac_configure_extra_args=
43565
43566if $ac_cs_silent; then
43567 exec 6>/dev/null
43568 ac_configure_extra_args="$ac_configure_extra_args --silent"
43569fi
43570
43571_ACEOF
43572cat >>$CONFIG_STATUS <<_ACEOF
43573if \$ac_cs_recheck; then
43574 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
43575 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
43576fi
43577
43578_ACEOF
43579
43580cat >>$CONFIG_STATUS <<_ACEOF
43581#
43582# INIT-COMMANDS section.
43583#
43584
ceec2216
RL
43585 TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
43586 TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
43587 TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
43588 LN_S="${LN_S}"
a848cd7e
SC
43589
43590
43591_ACEOF
43592
43593
43594
43595cat >>$CONFIG_STATUS <<\_ACEOF
43596for ac_config_target in $ac_config_targets
43597do
43598 case "$ac_config_target" in
43599 # Handling of arguments.
ceec2216
RL
43600 "lib/wx/config/${TOOLCHAIN_FULLNAME}" ) CONFIG_FILES="$CONFIG_FILES lib/wx/config/${TOOLCHAIN_FULLNAME}:wx-config.in" ;;
43601 "lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}" ) CONFIG_FILES="$CONFIG_FILES lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}:wx-config-inplace.in" ;;
a848cd7e
SC
43602 "version-script" ) CONFIG_FILES="$CONFIG_FILES version-script" ;;
43603 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
43604 "$mk" ) CONFIG_FILES="$CONFIG_FILES $mk" ;;
ceec2216
RL
43605 "wx-config" ) CONFIG_COMMANDS="$CONFIG_COMMANDS wx-config" ;;
43606 "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
43607 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
43608echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
43609 { (exit 1); exit 1; }; };;
43610 esac
43611done
43612
43613# If the user did not use the arguments to specify the items to instantiate,
43614# then the envvar interface is used. Set only those that are not.
43615# We use the long form for the default assignment because of an extremely
43616# bizarre bug on SunOS 4.1.3.
43617if $ac_need_defaults; then
43618 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
43619 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
43620 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
43621fi
43622
43623# Have a temporary directory for convenience. Make it in the build tree
43624# simply because there is no reason to put it here, and in addition,
43625# creating and moving files from /tmp can sometimes cause problems.
43626# Create a temporary directory, and hook for its removal unless debugging.
43627$debug ||
43628{
43629 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
43630 trap '{ (exit 1); exit 1; }' 1 2 13 15
43631}
43632
43633# Create a (secure) tmp directory for tmp files.
43634
43635{
43636 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
43637 test -n "$tmp" && test -d "$tmp"
43638} ||
43639{
43640 tmp=./confstat$$-$RANDOM
43641 (umask 077 && mkdir $tmp)
43642} ||
43643{
43644 echo "$me: cannot create a temporary directory in ." >&2
43645 { (exit 1); exit 1; }
43646}
43647
43648_ACEOF
43649
43650cat >>$CONFIG_STATUS <<_ACEOF
43651
43652#
43653# CONFIG_FILES section.
43654#
43655
43656# No need to generate the scripts if there are no CONFIG_FILES.
43657# This happens for instance when ./config.status config.h
43658if test -n "\$CONFIG_FILES"; then
43659 # Protect against being on the right side of a sed subst in config.status.
43660 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
43661 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
43662s,@SHELL@,$SHELL,;t t
43663s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
43664s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
43665s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
43666s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
43667s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
43668s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
43669s,@exec_prefix@,$exec_prefix,;t t
43670s,@prefix@,$prefix,;t t
43671s,@program_transform_name@,$program_transform_name,;t t
43672s,@bindir@,$bindir,;t t
43673s,@sbindir@,$sbindir,;t t
43674s,@libexecdir@,$libexecdir,;t t
43675s,@datadir@,$datadir,;t t
43676s,@sysconfdir@,$sysconfdir,;t t
43677s,@sharedstatedir@,$sharedstatedir,;t t
43678s,@localstatedir@,$localstatedir,;t t
43679s,@libdir@,$libdir,;t t
43680s,@includedir@,$includedir,;t t
43681s,@oldincludedir@,$oldincludedir,;t t
43682s,@infodir@,$infodir,;t t
43683s,@mandir@,$mandir,;t t
43684s,@build_alias@,$build_alias,;t t
43685s,@host_alias@,$host_alias,;t t
43686s,@target_alias@,$target_alias,;t t
43687s,@DEFS@,$DEFS,;t t
43688s,@ECHO_C@,$ECHO_C,;t t
43689s,@ECHO_N@,$ECHO_N,;t t
43690s,@ECHO_T@,$ECHO_T,;t t
43691s,@LIBS@,$LIBS,;t t
43692s,@build@,$build,;t t
43693s,@build_cpu@,$build_cpu,;t t
43694s,@build_vendor@,$build_vendor,;t t
43695s,@build_os@,$build_os,;t t
43696s,@host@,$host,;t t
43697s,@host_cpu@,$host_cpu,;t t
43698s,@host_vendor@,$host_vendor,;t t
43699s,@host_os@,$host_os,;t t
43700s,@target@,$target,;t t
43701s,@target_cpu@,$target_cpu,;t t
43702s,@target_vendor@,$target_vendor,;t t
43703s,@target_os@,$target_os,;t t
43704s,@CC@,$CC,;t t
43705s,@CFLAGS@,$CFLAGS,;t t
43706s,@LDFLAGS@,$LDFLAGS,;t t
43707s,@CPPFLAGS@,$CPPFLAGS,;t t
43708s,@ac_ct_CC@,$ac_ct_CC,;t t
43709s,@EXEEXT@,$EXEEXT,;t t
43710s,@OBJEXT@,$OBJEXT,;t t
43711s,@CPP@,$CPP,;t t
43712s,@EGREP@,$EGREP,;t t
43713s,@CXX@,$CXX,;t t
43714s,@CXXFLAGS@,$CXXFLAGS,;t t
43715s,@ac_ct_CXX@,$ac_ct_CXX,;t t
43716s,@RANLIB@,$RANLIB,;t t
43717s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
43718s,@AR@,$AR,;t t
43719s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
43720s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
43721s,@INSTALL_DATA@,$INSTALL_DATA,;t t
43722s,@STRIP@,$STRIP,;t t
43723s,@IF_GNU_MAKE@,$IF_GNU_MAKE,;t t
43724s,@LN_S@,$LN_S,;t t
43725s,@CXXCPP@,$CXXCPP,;t t
43726s,@subdirs@,$subdirs,;t t
43727s,@PKG_CONFIG@,$PKG_CONFIG,;t t
43728s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
43729s,@GTK_LIBS@,$GTK_LIBS,;t t
43730s,@GTK_CONFIG@,$GTK_CONFIG,;t t
a848cd7e
SC
43731s,@X_CFLAGS@,$X_CFLAGS,;t t
43732s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
43733s,@X_LIBS@,$X_LIBS,;t t
43734s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
43735s,@PANGOX_CFLAGS@,$PANGOX_CFLAGS,;t t
43736s,@PANGOX_LIBS@,$PANGOX_LIBS,;t t
d1c38808
VZ
43737s,@PANGOFT2_CFLAGS@,$PANGOFT2_CFLAGS,;t t
43738s,@PANGOFT2_LIBS@,$PANGOFT2_LIBS,;t t
a848cd7e
SC
43739s,@PANGOXFT_CFLAGS@,$PANGOXFT_CFLAGS,;t t
43740s,@PANGOXFT_LIBS@,$PANGOXFT_LIBS,;t t
43741s,@RESCOMP@,$RESCOMP,;t t
43742s,@DEREZ@,$DEREZ,;t t
43743s,@SETFILE@,$SETFILE,;t t
43744s,@LIBICONV@,$LIBICONV,;t t
43745s,@EXTRALIBS_ESD@,$EXTRALIBS_ESD,;t t
43746s,@SDL_CONFIG@,$SDL_CONFIG,;t t
43747s,@SDL_CFLAGS@,$SDL_CFLAGS,;t t
43748s,@SDL_LIBS@,$SDL_LIBS,;t t
d1c38808
VZ
43749s,@LIBGNOMEPRINTUI_CFLAGS@,$LIBGNOMEPRINTUI_CFLAGS,;t t
43750s,@LIBGNOMEPRINTUI_LIBS@,$LIBGNOMEPRINTUI_LIBS,;t t
dae87f93
RN
43751s,@GSTREAMER_CFLAGS@,$GSTREAMER_CFLAGS,;t t
43752s,@GSTREAMER_LIBS@,$GSTREAMER_LIBS,;t t
43753s,@GST_INSPECT@,$GST_INSPECT,;t t
a848cd7e
SC
43754s,@CORE_BASE_LIBS@,$CORE_BASE_LIBS,;t t
43755s,@CORE_GUI_LIBS@,$CORE_GUI_LIBS,;t t
43756s,@wxUSE_ZLIB@,$wxUSE_ZLIB,;t t
43757s,@wxUSE_REGEX@,$wxUSE_REGEX,;t t
43758s,@wxUSE_EXPAT@,$wxUSE_EXPAT,;t t
43759s,@wxUSE_ODBC@,$wxUSE_ODBC,;t t
43760s,@wxUSE_LIBJPEG@,$wxUSE_LIBJPEG,;t t
43761s,@wxUSE_LIBPNG@,$wxUSE_LIBPNG,;t t
43762s,@wxUSE_LIBTIFF@,$wxUSE_LIBTIFF,;t t
43763s,@VENDOR@,$VENDOR,;t t
43764s,@OFFICIAL_BUILD@,$OFFICIAL_BUILD,;t t
ceec2216
RL
43765s,@WX_FLAVOUR@,$WX_FLAVOUR,;t t
43766s,@WX_LIB_FLAVOUR@,$WX_LIB_FLAVOUR,;t t
a848cd7e
SC
43767s,@WXUNIV@,$WXUNIV,;t t
43768s,@MONOLITHIC@,$MONOLITHIC,;t t
43769s,@USE_PLUGINS@,$USE_PLUGINS,;t t
43770s,@EXTRALIBS@,$EXTRALIBS,;t t
43771s,@EXTRALIBS_XML@,$EXTRALIBS_XML,;t t
43772s,@EXTRALIBS_HTML@,$EXTRALIBS_HTML,;t t
43773s,@EXTRALIBS_ODBC@,$EXTRALIBS_ODBC,;t t
43774s,@EXTRALIBS_GUI@,$EXTRALIBS_GUI,;t t
43775s,@EXTRALIBS_OPENGL@,$EXTRALIBS_OPENGL,;t t
43776s,@EXTRALIBS_SDL@,$EXTRALIBS_SDL,;t t
43777s,@WITH_PLUGIN_SDL@,$WITH_PLUGIN_SDL,;t t
d1c38808 43778s,@EXTRALIBS_GNOMEPRINT@,$EXTRALIBS_GNOMEPRINT,;t t
a848cd7e
SC
43779s,@UNICODE@,$UNICODE,;t t
43780s,@BUILD@,$BUILD,;t t
43781s,@DEBUG_INFO@,$DEBUG_INFO,;t t
43782s,@DEBUG_FLAG@,$DEBUG_FLAG,;t t
a848cd7e
SC
43783s,@TOOLKIT_LOWERCASE@,$TOOLKIT_LOWERCASE,;t t
43784s,@TOOLKIT_VERSION@,$TOOLKIT_VERSION,;t t
43785s,@SAMPLES_RPATH_FLAG@,$SAMPLES_RPATH_FLAG,;t t
43786s,@SAMPLES_RPATH_POSTLINK@,$SAMPLES_RPATH_POSTLINK,;t t
43787s,@HOST_SUFFIX@,$HOST_SUFFIX,;t t
43788s,@CPPUNIT_CFLAGS@,$CPPUNIT_CFLAGS,;t t
43789s,@CPPUNIT_LIBS@,$CPPUNIT_LIBS,;t t
43790s,@SET_MAKE@,$SET_MAKE,;t t
43791s,@MAKE_SET@,$MAKE_SET,;t t
43792s,@ac_ct_AR@,$ac_ct_AR,;t t
43793s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
43794s,@NM@,$NM,;t t
43795s,@ac_ct_NM@,$ac_ct_NM,;t t
43796s,@INSTALL_DIR@,$INSTALL_DIR,;t t
43797s,@LDFLAGS_GUI@,$LDFLAGS_GUI,;t t
43798s,@PLATFORM_UNIX@,$PLATFORM_UNIX,;t t
43799s,@PLATFORM_WIN32@,$PLATFORM_WIN32,;t t
43800s,@PLATFORM_MSDOS@,$PLATFORM_MSDOS,;t t
43801s,@PLATFORM_MAC@,$PLATFORM_MAC,;t t
1e9e8aba 43802s,@PLATFORM_MACOS@,$PLATFORM_MACOS,;t t
a848cd7e
SC
43803s,@PLATFORM_MACOSX@,$PLATFORM_MACOSX,;t t
43804s,@PLATFORM_OS2@,$PLATFORM_OS2,;t t
1e9e8aba 43805s,@PLATFORM_BEOS@,$PLATFORM_BEOS,;t t
a848cd7e
SC
43806s,@SO_SUFFIX@,$SO_SUFFIX,;t t
43807s,@SO_SUFFIX_MODULE@,$SO_SUFFIX_MODULE,;t t
43808s,@DLLIMP_SUFFIX@,$DLLIMP_SUFFIX,;t t
43809s,@LIBPREFIX@,$LIBPREFIX,;t t
43810s,@LIBEXT@,$LIBEXT,;t t
43811s,@DLLPREFIX@,$DLLPREFIX,;t t
43812s,@DLLPREFIX_MODULE@,$DLLPREFIX_MODULE,;t t
43813s,@AIX_CXX_LD@,$AIX_CXX_LD,;t t
43814s,@SHARED_LD_CC@,$SHARED_LD_CC,;t t
43815s,@SHARED_LD_CXX@,$SHARED_LD_CXX,;t t
43816s,@SHARED_LD_MODULE_CC@,$SHARED_LD_MODULE_CC,;t t
43817s,@SHARED_LD_MODULE_CXX@,$SHARED_LD_MODULE_CXX,;t t
43818s,@PIC_FLAG@,$PIC_FLAG,;t t
43819s,@USE_SOVERSION@,$USE_SOVERSION,;t t
43820s,@USE_SOVERLINUX@,$USE_SOVERLINUX,;t t
43821s,@USE_SOVERSOLARIS@,$USE_SOVERSOLARIS,;t t
43822s,@USE_MACVERSION@,$USE_MACVERSION,;t t
43823s,@USE_SOSYMLINKS@,$USE_SOSYMLINKS,;t t
43824s,@SONAME_FLAG@,$SONAME_FLAG,;t t
43825s,@DEPS_TRACKING@,$DEPS_TRACKING,;t t
43826s,@GCC_PCH@,$GCC_PCH,;t t
43827s,@COND_BUILD_DEBUG@,$COND_BUILD_DEBUG,;t t
43828s,@COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT@,$COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT,;t t
43829s,@COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT@,$COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT,;t t
43830s,@COND_BUILD_DEBUG_UNICODE_0@,$COND_BUILD_DEBUG_UNICODE_0,;t t
43831s,@COND_BUILD_DEBUG_UNICODE_1@,$COND_BUILD_DEBUG_UNICODE_1,;t t
43832s,@COND_BUILD_RELEASE@,$COND_BUILD_RELEASE,;t t
43833s,@COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT@,$COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT,;t t
43834s,@COND_BUILD_RELEASE_UNICODE_0@,$COND_BUILD_RELEASE_UNICODE_0,;t t
43835s,@COND_BUILD_RELEASE_UNICODE_1@,$COND_BUILD_RELEASE_UNICODE_1,;t t
43836s,@COND_DEBUG_FLAG_1@,$COND_DEBUG_FLAG_1,;t t
43837s,@COND_DEBUG_INFO_0@,$COND_DEBUG_INFO_0,;t t
43838s,@COND_DEBUG_INFO_1@,$COND_DEBUG_INFO_1,;t t
43839s,@COND_DEPS_TRACKING_0@,$COND_DEPS_TRACKING_0,;t t
43840s,@COND_DEPS_TRACKING_1@,$COND_DEPS_TRACKING_1,;t t
43841s,@COND_GCC_PCH_1@,$COND_GCC_PCH_1,;t t
43842s,@COND_MONOLITHIC_0@,$COND_MONOLITHIC_0,;t t
43843s,@COND_MONOLITHIC_0_SHARED_0@,$COND_MONOLITHIC_0_SHARED_0,;t t
43844s,@COND_MONOLITHIC_0_SHARED_0_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1,;t t
90970d69 43845s,@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 43846s,@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 43847s,@COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1,;t t
ceec2216 43848s,@COND_MONOLITHIC_0_SHARED_0_USE_XRC_1@,$COND_MONOLITHIC_0_SHARED_0_USE_XRC_1,;t t
a848cd7e
SC
43849s,@COND_MONOLITHIC_0_SHARED_1@,$COND_MONOLITHIC_0_SHARED_1,;t t
43850s,@COND_MONOLITHIC_0_SHARED_1_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1,;t t
90970d69 43851s,@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 43852s,@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 43853s,@COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1,;t t
ceec2216 43854s,@COND_MONOLITHIC_0_SHARED_1_USE_XRC_1@,$COND_MONOLITHIC_0_SHARED_1_USE_XRC_1,;t t
a848cd7e
SC
43855s,@COND_MONOLITHIC_0_USE_ODBC_1@,$COND_MONOLITHIC_0_USE_ODBC_1,;t t
43856s,@COND_MONOLITHIC_1@,$COND_MONOLITHIC_1,;t t
43857s,@COND_MONOLITHIC_1_SHARED_0@,$COND_MONOLITHIC_1_SHARED_0,;t t
43858s,@COND_MONOLITHIC_1_SHARED_1@,$COND_MONOLITHIC_1_SHARED_1,;t t
43859s,@COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1,;t t
43860s,@COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1,;t t
43861s,@COND_PLATFORM_MACOSX_0_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_0_USE_SOVERSION_1,;t t
43862s,@COND_PLATFORM_MACOSX_1@,$COND_PLATFORM_MACOSX_1,;t t
a30f955f 43863s,@COND_PLATFORM_MACOSX_1_TOOLKIT_@,$COND_PLATFORM_MACOSX_1_TOOLKIT_,;t t
a848cd7e
SC
43864s,@COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA@,$COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA,;t t
43865s,@COND_PLATFORM_MACOSX_1_TOOLKIT_GTK@,$COND_PLATFORM_MACOSX_1_TOOLKIT_GTK,;t t
43866s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MAC@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MAC,;t t
fc480dc1 43867s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1,;t t
1e9e8aba 43868s,@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
43869s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF,;t t
43870s,@COND_PLATFORM_MACOSX_1_TOOLKIT_X11@,$COND_PLATFORM_MACOSX_1_TOOLKIT_X11,;t t
a848cd7e
SC
43871s,@COND_PLATFORM_MACOSX_1_USE_GUI_1@,$COND_PLATFORM_MACOSX_1_USE_GUI_1,;t t
43872s,@COND_PLATFORM_MACOSX_1_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_1_USE_SOVERSION_1,;t t
b48a2016 43873s,@COND_PLATFORM_MACOS_1@,$COND_PLATFORM_MACOS_1,;t t
a848cd7e
SC
43874s,@COND_PLATFORM_MAC_1@,$COND_PLATFORM_MAC_1,;t t
43875s,@COND_PLATFORM_OS2_1@,$COND_PLATFORM_OS2_1,;t t
43876s,@COND_PLATFORM_UNIX_0@,$COND_PLATFORM_UNIX_0,;t t
43877s,@COND_PLATFORM_UNIX_1@,$COND_PLATFORM_UNIX_1,;t t
43878s,@COND_PLATFORM_UNIX_1_USE_GUI_1@,$COND_PLATFORM_UNIX_1_USE_GUI_1,;t t
43879s,@COND_PLATFORM_UNIX_1_USE_PLUGINS_0@,$COND_PLATFORM_UNIX_1_USE_PLUGINS_0,;t t
43880s,@COND_PLATFORM_WIN32_0@,$COND_PLATFORM_WIN32_0,;t t
43881s,@COND_PLATFORM_WIN32_1@,$COND_PLATFORM_WIN32_1,;t t
43882s,@COND_SHARED_0@,$COND_SHARED_0,;t t
ceec2216
RL
43883s,@COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0,;t t
43884s,@COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0,;t t
43885s,@COND_SHARED_0_TOOLKIT_PM_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_PM_WXUNIV_0,;t t
a848cd7e
SC
43886s,@COND_SHARED_0_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_0_USE_GUI_1_USE_OPENGL_1,;t t
43887s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN,;t t
43888s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN,;t t
43889s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN,;t t
43890s,@COND_SHARED_0_WXUSE_EXPAT_BUILTIN@,$COND_SHARED_0_WXUSE_EXPAT_BUILTIN,;t t
43891s,@COND_SHARED_0_WXUSE_ODBC_BUILTIN@,$COND_SHARED_0_WXUSE_ODBC_BUILTIN,;t t
43892s,@COND_SHARED_0_WXUSE_REGEX_BUILTIN@,$COND_SHARED_0_WXUSE_REGEX_BUILTIN,;t t
43893s,@COND_SHARED_0_WXUSE_ZLIB_BUILTIN@,$COND_SHARED_0_WXUSE_ZLIB_BUILTIN,;t t
43894s,@COND_SHARED_1@,$COND_SHARED_1,;t t
43895s,@COND_SHARED_1_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_1_USE_GUI_1_USE_OPENGL_1,;t t
a30f955f 43896s,@COND_TOOLKIT_@,$COND_TOOLKIT_,;t t
a848cd7e 43897s,@COND_TOOLKIT_COCOA@,$COND_TOOLKIT_COCOA,;t t
a49baeab 43898s,@COND_TOOLKIT_COCOA_USE_GUI_1@,$COND_TOOLKIT_COCOA_USE_GUI_1,;t t
a848cd7e
SC
43899s,@COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0,;t t
43900s,@COND_TOOLKIT_GTK@,$COND_TOOLKIT_GTK,;t t
43901s,@COND_TOOLKIT_GTK_USE_GUI_1@,$COND_TOOLKIT_GTK_USE_GUI_1,;t t
43902s,@COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0,;t t
43903s,@COND_TOOLKIT_MAC@,$COND_TOOLKIT_MAC,;t t
43904s,@COND_TOOLKIT_MAC_USE_GUI_1@,$COND_TOOLKIT_MAC_USE_GUI_1,;t t
43905s,@COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0,;t t
43906s,@COND_TOOLKIT_MGL@,$COND_TOOLKIT_MGL,;t t
43907s,@COND_TOOLKIT_MGL_USE_GUI_1@,$COND_TOOLKIT_MGL_USE_GUI_1,;t t
43908s,@COND_TOOLKIT_MOTIF@,$COND_TOOLKIT_MOTIF,;t t
43909s,@COND_TOOLKIT_MOTIF_USE_GUI_1@,$COND_TOOLKIT_MOTIF_USE_GUI_1,;t t
43910s,@COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0,;t t
43911s,@COND_TOOLKIT_MSW@,$COND_TOOLKIT_MSW,;t t
43912s,@COND_TOOLKIT_MSW_USE_GUI_1@,$COND_TOOLKIT_MSW_USE_GUI_1,;t t
43913s,@COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0,;t t
43914s,@COND_TOOLKIT_PM@,$COND_TOOLKIT_PM,;t t
43915s,@COND_TOOLKIT_PM_USE_GUI_1@,$COND_TOOLKIT_PM_USE_GUI_1,;t t
43916s,@COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0,;t t
3fd9c298
DE
43917s,@COND_TOOLKIT_WINCE@,$COND_TOOLKIT_WINCE,;t t
43918s,@COND_TOOLKIT_WINCE_USE_GUI_1@,$COND_TOOLKIT_WINCE_USE_GUI_1,;t t
43919s,@COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0,;t t
a848cd7e
SC
43920s,@COND_TOOLKIT_X11@,$COND_TOOLKIT_X11,;t t
43921s,@COND_TOOLKIT_X11_USE_GUI_1@,$COND_TOOLKIT_X11_USE_GUI_1,;t t
43922s,@COND_UNICODE_1@,$COND_UNICODE_1,;t t
43923s,@COND_USE_EXCEPTIONS_0@,$COND_USE_EXCEPTIONS_0,;t t
43924s,@COND_USE_EXCEPTIONS_1@,$COND_USE_EXCEPTIONS_1,;t t
43925s,@COND_USE_GUI_0@,$COND_USE_GUI_0,;t t
43926s,@COND_USE_GUI_1@,$COND_USE_GUI_1,;t t
43927s,@COND_USE_GUI_1_WXUNIV_0@,$COND_USE_GUI_1_WXUNIV_0,;t t
43928s,@COND_USE_GUI_1_WXUNIV_1@,$COND_USE_GUI_1_WXUNIV_1,;t t
43929s,@COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN,;t t
43930s,@COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN,;t t
43931s,@COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN,;t t
ceec2216 43932s,@COND_USE_ODBC_1@,$COND_USE_ODBC_1,;t t
ffa0583f 43933s,@COND_USE_OPENGL_1@,$COND_USE_OPENGL_1,;t t
a848cd7e
SC
43934s,@COND_USE_PLUGINS_0@,$COND_USE_PLUGINS_0,;t t
43935s,@COND_USE_SOSYMLINKS_1@,$COND_USE_SOSYMLINKS_1,;t t
43936s,@COND_USE_SOVERLINUX_1@,$COND_USE_SOVERLINUX_1,;t t
43937s,@COND_USE_SOVERSION_0@,$COND_USE_SOVERSION_0,;t t
43938s,@COND_USE_SOVERSOLARIS_1@,$COND_USE_SOVERSOLARIS_1,;t t
a13a7f89 43939s,@COND_USE_XRC_1@,$COND_USE_XRC_1,;t t
a848cd7e 43940s,@COND_WITH_PLUGIN_SDL_1@,$COND_WITH_PLUGIN_SDL_1,;t t
1e6eb025 43941s,@COND_WXUNIV_0@,$COND_WXUNIV_0,;t t
a848cd7e
SC
43942s,@COND_WXUNIV_1@,$COND_WXUNIV_1,;t t
43943s,@COND_WXUSE_EXPAT_BUILTIN@,$COND_WXUSE_EXPAT_BUILTIN,;t t
43944s,@COND_WXUSE_LIBJPEG_BUILTIN@,$COND_WXUSE_LIBJPEG_BUILTIN,;t t
43945s,@COND_WXUSE_LIBPNG_BUILTIN@,$COND_WXUSE_LIBPNG_BUILTIN,;t t
43946s,@COND_WXUSE_LIBTIFF_BUILTIN@,$COND_WXUSE_LIBTIFF_BUILTIN,;t t
43947s,@COND_WXUSE_ODBC_BUILTIN@,$COND_WXUSE_ODBC_BUILTIN,;t t
43948s,@COND_WXUSE_REGEX_BUILTIN@,$COND_WXUSE_REGEX_BUILTIN,;t t
43949s,@COND_WXUSE_ZLIB_BUILTIN@,$COND_WXUSE_ZLIB_BUILTIN,;t t
ceec2216 43950s,@SHARED@,$SHARED,;t t
a848cd7e
SC
43951s,@WX_LIBRARY_BASENAME_NOGUI@,$WX_LIBRARY_BASENAME_NOGUI,;t t
43952s,@WX_LIBRARY_BASENAME_GUI@,$WX_LIBRARY_BASENAME_GUI,;t t
a848cd7e
SC
43953s,@WXDEBUG_DEFINE@,$WXDEBUG_DEFINE,;t t
43954s,@USE_GUI@,$USE_GUI,;t t
43955s,@AFMINSTALL@,$AFMINSTALL,;t t
43956s,@WIN32INSTALL@,$WIN32INSTALL,;t t
43957s,@TOOLKIT@,$TOOLKIT,;t t
43958s,@TOOLKIT_DIR@,$TOOLKIT_DIR,;t t
a848cd7e 43959s,@TOOLCHAIN_NAME@,$TOOLCHAIN_NAME,;t t
ceec2216 43960s,@TOOLCHAIN_FULLNAME@,$TOOLCHAIN_FULLNAME,;t t
a848cd7e
SC
43961s,@TOOLCHAIN_DEFS@,$TOOLCHAIN_DEFS,;t t
43962s,@TOOLCHAIN_DLL_DEFS@,$TOOLCHAIN_DLL_DEFS,;t t
a848cd7e 43963s,@cross_compiling@,$cross_compiling,;t t
ceec2216
RL
43964s,@WIDGET_SET@,$WIDGET_SET,;t t
43965s,@WX_RELEASE@,$WX_RELEASE,;t t
43966s,@WX_VERSION@,$WX_VERSION,;t t
43967s,@WX_SUBVERSION@,$WX_SUBVERSION,;t t
43968s,@WX_CHARTYPE@,$WX_CHARTYPE,;t t
43969s,@WX_DEBUGTYPE@,$WX_DEBUGTYPE,;t t
a848cd7e 43970s,@WXCONFIG_EXTRALIBS@,$WXCONFIG_EXTRALIBS,;t t
a848cd7e
SC
43971s,@WXCONFIG_INCLUDE@,$WXCONFIG_INCLUDE,;t t
43972s,@WXCONFIG_RPATH@,$WXCONFIG_RPATH,;t t
43973s,@WXCONFIG_LDFLAGS_GUI@,$WXCONFIG_LDFLAGS_GUI,;t t
43974s,@WX_LARGEFILE_FLAGS@,$WX_LARGEFILE_FLAGS,;t t
74b84332 43975s,@GCC_PRAGMA_FLAGS@,$GCC_PRAGMA_FLAGS,;t t
a848cd7e
SC
43976s,@CODE_GEN_FLAGS@,$CODE_GEN_FLAGS,;t t
43977s,@CODE_GEN_FLAGS_CXX@,$CODE_GEN_FLAGS_CXX,;t t
ceec2216 43978s,@EXE_LINKER@,$EXE_LINKER,;t t
a848cd7e 43979s,@GUIDIST@,$GUIDIST,;t t
a848cd7e
SC
43980s,@DISTDIR@,$DISTDIR,;t t
43981s,@SAMPLES_SUBDIRS@,$SAMPLES_SUBDIRS,;t t
43982s,@LDFLAGS_GL@,$LDFLAGS_GL,;t t
a848cd7e
SC
43983s,@OPENGL_LIBS@,$OPENGL_LIBS,;t t
43984s,@DMALLOC_LIBS@,$DMALLOC_LIBS,;t t
43985s,@WX_VERSION_TAG@,$WX_VERSION_TAG,;t t
43986s,@RESFLAGS@,$RESFLAGS,;t t
43987s,@RESPROGRAMOBJ@,$RESPROGRAMOBJ,;t t
43988s,@WX_RESOURCES_MACOSX_ASCII@,$WX_RESOURCES_MACOSX_ASCII,;t t
43989s,@WX_RESOURCES_MACOSX_DATA@,$WX_RESOURCES_MACOSX_DATA,;t t
43990s,@LIBWXMACRES@,$LIBWXMACRES,;t t
43991s,@MACRESCOMP@,$MACRESCOMP,;t t
43992s,@MACSETFILE@,$MACSETFILE,;t t
43993s,@MACRESWXCONFIG@,$MACRESWXCONFIG,;t t
43994s,@GCC@,$GCC,;t t
a848cd7e 43995s,@DLLTOOL@,$DLLTOOL,;t t
a848cd7e
SC
43996s,@CPPUNIT_CONFIG@,$CPPUNIT_CONFIG,;t t
43997s,@LIBOBJS@,$LIBOBJS,;t t
43998s,@LTLIBOBJS@,$LTLIBOBJS,;t t
43999CEOF
44000
44001_ACEOF
44002
44003 cat >>$CONFIG_STATUS <<\_ACEOF
44004 # Split the substitutions into bite-sized pieces for seds with
44005 # small command number limits, like on Digital OSF/1 and HP-UX.
44006 ac_max_sed_lines=48
44007 ac_sed_frag=1 # Number of current file.
44008 ac_beg=1 # First line for current file.
44009 ac_end=$ac_max_sed_lines # Line after last line for current file.
44010 ac_more_lines=:
44011 ac_sed_cmds=
44012 while $ac_more_lines; do
44013 if test $ac_beg -gt 1; then
44014 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
44015 else
44016 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
44017 fi
44018 if test ! -s $tmp/subs.frag; then
44019 ac_more_lines=false
44020 else
44021 # The purpose of the label and of the branching condition is to
44022 # speed up the sed processing (if there are no `@' at all, there
44023 # is no need to browse any of the substitutions).
44024 # These are the two extra sed commands mentioned above.
44025 (echo ':t
44026 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
44027 if test -z "$ac_sed_cmds"; then
ac1cb8d3 44028 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
a848cd7e 44029 else
ac1cb8d3 44030 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
a848cd7e
SC
44031 fi
44032 ac_sed_frag=`expr $ac_sed_frag + 1`
44033 ac_beg=$ac_end
44034 ac_end=`expr $ac_end + $ac_max_sed_lines`
44035 fi
44036 done
44037 if test -z "$ac_sed_cmds"; then
44038 ac_sed_cmds=cat
44039 fi
44040fi # test -n "$CONFIG_FILES"
44041
44042_ACEOF
44043cat >>$CONFIG_STATUS <<\_ACEOF
44044for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
44045 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
44046 case $ac_file in
44047 - | *:- | *:-:* ) # input from stdin
ac1cb8d3
VS
44048 cat >$tmp/stdin
44049 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
44050 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e 44051 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
ac1cb8d3 44052 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e
SC
44053 * ) ac_file_in=$ac_file.in ;;
44054 esac
44055
44056 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
44057 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
44058$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
44059 X"$ac_file" : 'X\(//\)[^/]' \| \
44060 X"$ac_file" : 'X\(//\)$' \| \
44061 X"$ac_file" : 'X\(/\)' \| \
44062 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
44063echo X"$ac_file" |
44064 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
44065 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
44066 /^X\(\/\/\)$/{ s//\1/; q; }
44067 /^X\(\/\).*/{ s//\1/; q; }
44068 s/.*/./; q'`
44069 { if $as_mkdir_p; then
44070 mkdir -p "$ac_dir"
44071 else
44072 as_dir="$ac_dir"
44073 as_dirs=
44074 while test ! -d "$as_dir"; do
44075 as_dirs="$as_dir $as_dirs"
44076 as_dir=`(dirname "$as_dir") 2>/dev/null ||
44077$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
44078 X"$as_dir" : 'X\(//\)[^/]' \| \
44079 X"$as_dir" : 'X\(//\)$' \| \
44080 X"$as_dir" : 'X\(/\)' \| \
44081 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
44082echo X"$as_dir" |
44083 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
44084 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
44085 /^X\(\/\/\)$/{ s//\1/; q; }
44086 /^X\(\/\).*/{ s//\1/; q; }
44087 s/.*/./; q'`
44088 done
44089 test ! -n "$as_dirs" || mkdir $as_dirs
44090 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
44091echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
44092 { (exit 1); exit 1; }; }; }
44093
44094 ac_builddir=.
44095
44096if test "$ac_dir" != .; then
44097 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
44098 # A "../" for each directory in $ac_dir_suffix.
44099 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
44100else
44101 ac_dir_suffix= ac_top_builddir=
44102fi
44103
44104case $srcdir in
44105 .) # No --srcdir option. We are building in place.
44106 ac_srcdir=.
44107 if test -z "$ac_top_builddir"; then
44108 ac_top_srcdir=.
44109 else
44110 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
44111 fi ;;
44112 [\\/]* | ?:[\\/]* ) # Absolute path.
44113 ac_srcdir=$srcdir$ac_dir_suffix;
44114 ac_top_srcdir=$srcdir ;;
44115 *) # Relative path.
44116 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
44117 ac_top_srcdir=$ac_top_builddir$srcdir ;;
44118esac
ac1cb8d3
VS
44119
44120# Do not use `cd foo && pwd` to compute absolute paths, because
44121# the directories may not exist.
44122case `pwd` in
44123.) ac_abs_builddir="$ac_dir";;
44124*)
44125 case "$ac_dir" in
44126 .) ac_abs_builddir=`pwd`;;
44127 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
44128 *) ac_abs_builddir=`pwd`/"$ac_dir";;
44129 esac;;
44130esac
44131case $ac_abs_builddir in
44132.) ac_abs_top_builddir=${ac_top_builddir}.;;
44133*)
44134 case ${ac_top_builddir}. in
44135 .) ac_abs_top_builddir=$ac_abs_builddir;;
44136 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
44137 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
44138 esac;;
44139esac
44140case $ac_abs_builddir in
44141.) ac_abs_srcdir=$ac_srcdir;;
44142*)
44143 case $ac_srcdir in
44144 .) ac_abs_srcdir=$ac_abs_builddir;;
44145 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
44146 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
44147 esac;;
44148esac
44149case $ac_abs_builddir in
44150.) ac_abs_top_srcdir=$ac_top_srcdir;;
44151*)
44152 case $ac_top_srcdir in
44153 .) ac_abs_top_srcdir=$ac_abs_builddir;;
44154 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
44155 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
44156 esac;;
44157esac
a848cd7e
SC
44158
44159
44160 case $INSTALL in
44161 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
44162 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
44163 esac
44164
89be85c2
VS
44165 if test x"$ac_file" != x-; then
44166 { echo "$as_me:$LINENO: creating $ac_file" >&5
44167echo "$as_me: creating $ac_file" >&6;}
44168 rm -f "$ac_file"
44169 fi
a848cd7e
SC
44170 # Let's still pretend it is `configure' which instantiates (i.e., don't
44171 # use $as_me), people would be surprised to read:
44172 # /* config.h. Generated by config.status. */
44173 if test x"$ac_file" = x-; then
44174 configure_input=
44175 else
44176 configure_input="$ac_file. "
44177 fi
44178 configure_input=$configure_input"Generated from `echo $ac_file_in |
ac1cb8d3 44179 sed 's,.*/,,'` by configure."
a848cd7e
SC
44180
44181 # First look for the input files in the build tree, otherwise in the
44182 # src tree.
44183 ac_file_inputs=`IFS=:
44184 for f in $ac_file_in; do
44185 case $f in
44186 -) echo $tmp/stdin ;;
44187 [\\/$]*)
ac1cb8d3
VS
44188 # Absolute (can't be DOS-style, as IFS=:)
44189 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
44190echo "$as_me: error: cannot find input file: $f" >&2;}
44191 { (exit 1); exit 1; }; }
ac1cb8d3 44192 echo "$f";;
a848cd7e 44193 *) # Relative
ac1cb8d3
VS
44194 if test -f "$f"; then
44195 # Build tree
44196 echo "$f"
44197 elif test -f "$srcdir/$f"; then
44198 # Source tree
44199 echo "$srcdir/$f"
44200 else
44201 # /dev/null tree
44202 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
44203echo "$as_me: error: cannot find input file: $f" >&2;}
44204 { (exit 1); exit 1; }; }
ac1cb8d3 44205 fi;;
a848cd7e
SC
44206 esac
44207 done` || { (exit 1); exit 1; }
44208_ACEOF
44209cat >>$CONFIG_STATUS <<_ACEOF
44210 sed "$ac_vpsub
44211$extrasub
44212_ACEOF
44213cat >>$CONFIG_STATUS <<\_ACEOF
44214:t
44215/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
44216s,@configure_input@,$configure_input,;t t
44217s,@srcdir@,$ac_srcdir,;t t
44218s,@abs_srcdir@,$ac_abs_srcdir,;t t
44219s,@top_srcdir@,$ac_top_srcdir,;t t
44220s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
44221s,@builddir@,$ac_builddir,;t t
44222s,@abs_builddir@,$ac_abs_builddir,;t t
44223s,@top_builddir@,$ac_top_builddir,;t t
44224s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
44225s,@INSTALL@,$ac_INSTALL,;t t
44226" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
44227 rm -f $tmp/stdin
44228 if test x"$ac_file" != x-; then
44229 mv $tmp/out $ac_file
44230 else
44231 cat $tmp/out
44232 rm -f $tmp/out
44233 fi
44234
ceec2216
RL
44235 # Run the commands associated with the file.
44236 case $ac_file in
44237 lib/wx/config/${TOOLCHAIN_FULLNAME} ) chmod +x lib/wx/config/${TOOLCHAIN_FULLNAME} ;;
44238 lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} ) chmod +x lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} ;;
44239 esac
a848cd7e
SC
44240done
44241_ACEOF
44242cat >>$CONFIG_STATUS <<\_ACEOF
44243
44244#
44245# CONFIG_HEADER section.
44246#
44247
44248# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
44249# NAME is the cpp macro being defined and VALUE is the value it is being given.
44250#
44251# ac_d sets the value in "#define NAME VALUE" lines.
ac1cb8d3
VS
44252ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
44253ac_dB='[ ].*$,\1#\2'
a848cd7e
SC
44254ac_dC=' '
44255ac_dD=',;t'
44256# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
ac1cb8d3 44257ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
a848cd7e
SC
44258ac_uB='$,\1#\2define\3'
44259ac_uC=' '
44260ac_uD=',;t'
44261
44262for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
44263 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
44264 case $ac_file in
44265 - | *:- | *:-:* ) # input from stdin
ac1cb8d3
VS
44266 cat >$tmp/stdin
44267 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
44268 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e 44269 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
ac1cb8d3 44270 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e
SC
44271 * ) ac_file_in=$ac_file.in ;;
44272 esac
44273
44274 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
44275echo "$as_me: creating $ac_file" >&6;}
44276
44277 # First look for the input files in the build tree, otherwise in the
44278 # src tree.
44279 ac_file_inputs=`IFS=:
44280 for f in $ac_file_in; do
44281 case $f in
44282 -) echo $tmp/stdin ;;
44283 [\\/$]*)
ac1cb8d3
VS
44284 # Absolute (can't be DOS-style, as IFS=:)
44285 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
44286echo "$as_me: error: cannot find input file: $f" >&2;}
44287 { (exit 1); exit 1; }; }
ac1cb8d3
VS
44288 # Do quote $f, to prevent DOS paths from being IFS'd.
44289 echo "$f";;
a848cd7e 44290 *) # Relative
ac1cb8d3
VS
44291 if test -f "$f"; then
44292 # Build tree
44293 echo "$f"
44294 elif test -f "$srcdir/$f"; then
44295 # Source tree
44296 echo "$srcdir/$f"
44297 else
44298 # /dev/null tree
44299 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
44300echo "$as_me: error: cannot find input file: $f" >&2;}
44301 { (exit 1); exit 1; }; }
ac1cb8d3 44302 fi;;
a848cd7e
SC
44303 esac
44304 done` || { (exit 1); exit 1; }
44305 # Remove the trailing spaces.
ac1cb8d3 44306 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
a848cd7e
SC
44307
44308_ACEOF
44309
44310# Transform confdefs.h into two sed scripts, `conftest.defines' and
44311# `conftest.undefs', that substitutes the proper values into
44312# config.h.in to produce config.h. The first handles `#define'
44313# templates, and the second `#undef' templates.
44314# And first: Protect against being on the right side of a sed subst in
44315# config.status. Protect against being in an unquoted here document
44316# in config.status.
44317rm -f conftest.defines conftest.undefs
44318# Using a here document instead of a string reduces the quoting nightmare.
44319# Putting comments in sed scripts is not portable.
44320#
44321# `end' is used to avoid that the second main sed command (meant for
44322# 0-ary CPP macros) applies to n-ary macro definitions.
44323# See the Autoconf documentation for `clear'.
44324cat >confdef2sed.sed <<\_ACEOF
44325s/[\\&,]/\\&/g
44326s,[\\$`],\\&,g
44327t clear
44328: clear
ac1cb8d3 44329s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
a848cd7e 44330t end
ac1cb8d3 44331s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
a848cd7e
SC
44332: end
44333_ACEOF
44334# If some macros were called several times there might be several times
44335# the same #defines, which is useless. Nevertheless, we may not want to
44336# sort them, since we want the *last* AC-DEFINE to be honored.
44337uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
44338sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
44339rm -f confdef2sed.sed
44340
44341# This sed command replaces #undef with comments. This is necessary, for
44342# example, in the case of _POSIX_SOURCE, which is predefined and required
44343# on some systems where configure will not decide to define it.
44344cat >>conftest.undefs <<\_ACEOF
ac1cb8d3 44345s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
a848cd7e
SC
44346_ACEOF
44347
44348# Break up conftest.defines because some shells have a limit on the size
44349# of here documents, and old seds have small limits too (100 cmds).
44350echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
ac1cb8d3 44351echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
a848cd7e
SC
44352echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
44353echo ' :' >>$CONFIG_STATUS
44354rm -f conftest.tail
44355while grep . conftest.defines >/dev/null
44356do
44357 # Write a limited-size here document to $tmp/defines.sed.
44358 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
44359 # Speed up: don't consider the non `#define' lines.
ac1cb8d3 44360 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
a848cd7e
SC
44361 # Work around the forget-to-reset-the-flag bug.
44362 echo 't clr' >>$CONFIG_STATUS
44363 echo ': clr' >>$CONFIG_STATUS
44364 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
44365 echo 'CEOF
44366 sed -f $tmp/defines.sed $tmp/in >$tmp/out
44367 rm -f $tmp/in
44368 mv $tmp/out $tmp/in
44369' >>$CONFIG_STATUS
44370 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
44371 rm -f conftest.defines
44372 mv conftest.tail conftest.defines
44373done
44374rm -f conftest.defines
44375echo ' fi # grep' >>$CONFIG_STATUS
44376echo >>$CONFIG_STATUS
44377
44378# Break up conftest.undefs because some shells have a limit on the size
44379# of here documents, and old seds have small limits too (100 cmds).
44380echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
44381rm -f conftest.tail
44382while grep . conftest.undefs >/dev/null
44383do
44384 # Write a limited-size here document to $tmp/undefs.sed.
44385 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
44386 # Speed up: don't consider the non `#undef'
ac1cb8d3 44387 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
a848cd7e
SC
44388 # Work around the forget-to-reset-the-flag bug.
44389 echo 't clr' >>$CONFIG_STATUS
44390 echo ': clr' >>$CONFIG_STATUS
44391 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
44392 echo 'CEOF
44393 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
44394 rm -f $tmp/in
44395 mv $tmp/out $tmp/in
44396' >>$CONFIG_STATUS
44397 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
44398 rm -f conftest.undefs
44399 mv conftest.tail conftest.undefs
44400done
44401rm -f conftest.undefs
44402
44403cat >>$CONFIG_STATUS <<\_ACEOF
44404 # Let's still pretend it is `configure' which instantiates (i.e., don't
44405 # use $as_me), people would be surprised to read:
44406 # /* config.h. Generated by config.status. */
44407 if test x"$ac_file" = x-; then
44408 echo "/* Generated by configure. */" >$tmp/config.h
44409 else
44410 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
44411 fi
44412 cat $tmp/in >>$tmp/config.h
44413 rm -f $tmp/in
44414 if test x"$ac_file" != x-; then
44415 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
44416 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
44417echo "$as_me: $ac_file is unchanged" >&6;}
44418 else
44419 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
44420$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
44421 X"$ac_file" : 'X\(//\)[^/]' \| \
44422 X"$ac_file" : 'X\(//\)$' \| \
44423 X"$ac_file" : 'X\(/\)' \| \
44424 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
44425echo X"$ac_file" |
44426 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
44427 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
44428 /^X\(\/\/\)$/{ s//\1/; q; }
44429 /^X\(\/\).*/{ s//\1/; q; }
44430 s/.*/./; q'`
44431 { if $as_mkdir_p; then
44432 mkdir -p "$ac_dir"
44433 else
44434 as_dir="$ac_dir"
44435 as_dirs=
44436 while test ! -d "$as_dir"; do
44437 as_dirs="$as_dir $as_dirs"
44438 as_dir=`(dirname "$as_dir") 2>/dev/null ||
44439$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
44440 X"$as_dir" : 'X\(//\)[^/]' \| \
44441 X"$as_dir" : 'X\(//\)$' \| \
44442 X"$as_dir" : 'X\(/\)' \| \
44443 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
44444echo X"$as_dir" |
44445 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
44446 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
44447 /^X\(\/\/\)$/{ s//\1/; q; }
44448 /^X\(\/\).*/{ s//\1/; q; }
44449 s/.*/./; q'`
44450 done
44451 test ! -n "$as_dirs" || mkdir $as_dirs
44452 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
44453echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
44454 { (exit 1); exit 1; }; }; }
44455
44456 rm -f $ac_file
44457 mv $tmp/config.h $ac_file
44458 fi
44459 else
44460 cat $tmp/config.h
44461 rm -f $tmp/config.h
44462 fi
44463done
44464_ACEOF
44465cat >>$CONFIG_STATUS <<\_ACEOF
44466
44467#
44468# CONFIG_COMMANDS section.
44469#
44470for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
44471 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
44472 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
44473 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
44474$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
44475 X"$ac_dest" : 'X\(//\)[^/]' \| \
44476 X"$ac_dest" : 'X\(//\)$' \| \
44477 X"$ac_dest" : 'X\(/\)' \| \
44478 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
44479echo X"$ac_dest" |
44480 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
44481 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
44482 /^X\(\/\/\)$/{ s//\1/; q; }
44483 /^X\(\/\).*/{ s//\1/; q; }
44484 s/.*/./; q'`
ac1cb8d3
VS
44485 { if $as_mkdir_p; then
44486 mkdir -p "$ac_dir"
44487 else
44488 as_dir="$ac_dir"
44489 as_dirs=
44490 while test ! -d "$as_dir"; do
44491 as_dirs="$as_dir $as_dirs"
44492 as_dir=`(dirname "$as_dir") 2>/dev/null ||
44493$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
44494 X"$as_dir" : 'X\(//\)[^/]' \| \
44495 X"$as_dir" : 'X\(//\)$' \| \
44496 X"$as_dir" : 'X\(/\)' \| \
44497 . : '\(.\)' 2>/dev/null ||
44498echo X"$as_dir" |
44499 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
44500 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
44501 /^X\(\/\/\)$/{ s//\1/; q; }
44502 /^X\(\/\).*/{ s//\1/; q; }
44503 s/.*/./; q'`
44504 done
44505 test ! -n "$as_dirs" || mkdir $as_dirs
44506 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
44507echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
44508 { (exit 1); exit 1; }; }; }
44509
a848cd7e
SC
44510 ac_builddir=.
44511
44512if test "$ac_dir" != .; then
44513 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
44514 # A "../" for each directory in $ac_dir_suffix.
44515 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
44516else
44517 ac_dir_suffix= ac_top_builddir=
44518fi
44519
44520case $srcdir in
44521 .) # No --srcdir option. We are building in place.
44522 ac_srcdir=.
44523 if test -z "$ac_top_builddir"; then
44524 ac_top_srcdir=.
44525 else
44526 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
44527 fi ;;
44528 [\\/]* | ?:[\\/]* ) # Absolute path.
44529 ac_srcdir=$srcdir$ac_dir_suffix;
44530 ac_top_srcdir=$srcdir ;;
44531 *) # Relative path.
44532 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
44533 ac_top_srcdir=$ac_top_builddir$srcdir ;;
44534esac
ac1cb8d3
VS
44535
44536# Do not use `cd foo && pwd` to compute absolute paths, because
44537# the directories may not exist.
44538case `pwd` in
44539.) ac_abs_builddir="$ac_dir";;
44540*)
44541 case "$ac_dir" in
44542 .) ac_abs_builddir=`pwd`;;
44543 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
44544 *) ac_abs_builddir=`pwd`/"$ac_dir";;
44545 esac;;
44546esac
44547case $ac_abs_builddir in
44548.) ac_abs_top_builddir=${ac_top_builddir}.;;
44549*)
44550 case ${ac_top_builddir}. in
44551 .) ac_abs_top_builddir=$ac_abs_builddir;;
44552 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
44553 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
44554 esac;;
44555esac
44556case $ac_abs_builddir in
44557.) ac_abs_srcdir=$ac_srcdir;;
44558*)
44559 case $ac_srcdir in
44560 .) ac_abs_srcdir=$ac_abs_builddir;;
44561 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
44562 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
44563 esac;;
44564esac
44565case $ac_abs_builddir in
44566.) ac_abs_top_srcdir=$ac_top_srcdir;;
44567*)
44568 case $ac_top_srcdir in
44569 .) ac_abs_top_srcdir=$ac_abs_builddir;;
44570 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
44571 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
44572 esac;;
44573esac
a848cd7e
SC
44574
44575
44576 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
44577echo "$as_me: executing $ac_dest commands" >&6;}
44578 case $ac_dest in
ceec2216
RL
44579 wx-config ) rm -f wx-config
44580 ${LN_S} lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} wx-config
44581 ;;
a848cd7e
SC
44582 esac
44583done
44584_ACEOF
44585
44586cat >>$CONFIG_STATUS <<\_ACEOF
44587
44588{ (exit 0); exit 0; }
44589_ACEOF
44590chmod +x $CONFIG_STATUS
44591ac_clean_files=$ac_clean_files_save
44592
44593
44594# configure is writing to config.log, and then calls config.status.
44595# config.status does its own redirection, appending to config.log.
44596# Unfortunately, on DOS this fails, as config.log is still kept open
44597# by configure, so config.status won't be able to write to it; its
44598# output is simply discarded. So we exec the FD to /dev/null,
44599# effectively closing config.log, so it can be properly (re)opened and
44600# appended to by config.status. When coming back to configure, we
44601# need to make the FD available again.
44602if test "$no_create" != yes; then
44603 ac_cs_success=:
44604 ac_config_status_args=
44605 test "$silent" = yes &&
44606 ac_config_status_args="$ac_config_status_args --quiet"
44607 exec 5>/dev/null
44608 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
44609 exec 5>>config.log
44610 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
44611 # would make configure fail if this is the last instruction.
44612 $ac_cs_success || { (exit 1); exit 1; }
44613fi
44614
44615#
44616# CONFIG_SUBDIRS section.
44617#
44618if test "$no_recursion" != yes; then
44619
44620 # Remove --cache-file and --srcdir arguments so they do not pile up.
44621 ac_sub_configure_args=
44622 ac_prev=
44623 for ac_arg in $ac_configure_args; do
44624 if test -n "$ac_prev"; then
44625 ac_prev=
44626 continue
44627 fi
44628 case $ac_arg in
44629 -cache-file | --cache-file | --cache-fil | --cache-fi \
44630 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
44631 ac_prev=cache_file ;;
44632 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
44633 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
44634 | --c=*)
44635 ;;
44636 --config-cache | -C)
44637 ;;
44638 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
44639 ac_prev=srcdir ;;
44640 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
44641 ;;
44642 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
44643 ac_prev=prefix ;;
44644 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
44645 ;;
44646 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
44647 esac
44648 done
44649
44650 # Always prepend --prefix to ensure using the same prefix
44651 # in subdir configurations.
44652 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
44653
44654 ac_popdir=`pwd`
44655 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
44656
44657 # Do not complain, so a configure script can configure whichever
44658 # parts of a large source tree are present.
44659 test -d $srcdir/$ac_dir || continue
44660
44661 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
44662echo "$as_me: configuring in $ac_dir" >&6;}
44663 { if $as_mkdir_p; then
44664 mkdir -p "$ac_dir"
44665 else
44666 as_dir="$ac_dir"
44667 as_dirs=
44668 while test ! -d "$as_dir"; do
44669 as_dirs="$as_dir $as_dirs"
44670 as_dir=`(dirname "$as_dir") 2>/dev/null ||
44671$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
44672 X"$as_dir" : 'X\(//\)[^/]' \| \
44673 X"$as_dir" : 'X\(//\)$' \| \
44674 X"$as_dir" : 'X\(/\)' \| \
44675 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
44676echo X"$as_dir" |
44677 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
44678 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
44679 /^X\(\/\/\)$/{ s//\1/; q; }
44680 /^X\(\/\).*/{ s//\1/; q; }
44681 s/.*/./; q'`
44682 done
44683 test ! -n "$as_dirs" || mkdir $as_dirs
44684 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
44685echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
44686 { (exit 1); exit 1; }; }; }
44687
44688 ac_builddir=.
44689
44690if test "$ac_dir" != .; then
44691 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
44692 # A "../" for each directory in $ac_dir_suffix.
44693 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
44694else
44695 ac_dir_suffix= ac_top_builddir=
44696fi
44697
44698case $srcdir in
44699 .) # No --srcdir option. We are building in place.
44700 ac_srcdir=.
44701 if test -z "$ac_top_builddir"; then
44702 ac_top_srcdir=.
44703 else
44704 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
44705 fi ;;
44706 [\\/]* | ?:[\\/]* ) # Absolute path.
44707 ac_srcdir=$srcdir$ac_dir_suffix;
44708 ac_top_srcdir=$srcdir ;;
44709 *) # Relative path.
44710 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
44711 ac_top_srcdir=$ac_top_builddir$srcdir ;;
44712esac
ac1cb8d3
VS
44713
44714# Do not use `cd foo && pwd` to compute absolute paths, because
44715# the directories may not exist.
44716case `pwd` in
44717.) ac_abs_builddir="$ac_dir";;
44718*)
44719 case "$ac_dir" in
44720 .) ac_abs_builddir=`pwd`;;
44721 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
44722 *) ac_abs_builddir=`pwd`/"$ac_dir";;
44723 esac;;
44724esac
44725case $ac_abs_builddir in
44726.) ac_abs_top_builddir=${ac_top_builddir}.;;
44727*)
44728 case ${ac_top_builddir}. in
44729 .) ac_abs_top_builddir=$ac_abs_builddir;;
44730 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
44731 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
44732 esac;;
44733esac
44734case $ac_abs_builddir in
44735.) ac_abs_srcdir=$ac_srcdir;;
44736*)
44737 case $ac_srcdir in
44738 .) ac_abs_srcdir=$ac_abs_builddir;;
44739 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
44740 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
44741 esac;;
44742esac
44743case $ac_abs_builddir in
44744.) ac_abs_top_srcdir=$ac_top_srcdir;;
44745*)
44746 case $ac_top_srcdir in
44747 .) ac_abs_top_srcdir=$ac_abs_builddir;;
44748 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
44749 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
44750 esac;;
44751esac
a848cd7e
SC
44752
44753
44754 cd $ac_dir
44755
44756 # Check for guested configure; otherwise get Cygnus style configure.
44757 if test -f $ac_srcdir/configure.gnu; then
44758 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
44759 elif test -f $ac_srcdir/configure; then
44760 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
44761 elif test -f $ac_srcdir/configure.in; then
44762 ac_sub_configure=$ac_configure
44763 else
44764 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
44765echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
44766 ac_sub_configure=
44767 fi
44768
44769 # The recursion is here.
44770 if test -n "$ac_sub_configure"; then
44771 # Make the cache file name correct relative to the subdirectory.
44772 case $cache_file in
44773 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
44774 *) # Relative path.
ac1cb8d3 44775 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
a848cd7e
SC
44776 esac
44777
44778 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
44779echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
44780 # The eval makes quoting arguments work.
44781 eval $ac_sub_configure $ac_sub_configure_args \
ac1cb8d3
VS
44782 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
44783 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
a848cd7e
SC
44784echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
44785 { (exit 1); exit 1; }; }
44786 fi
44787
89be85c2 44788 cd $ac_popdir
a848cd7e
SC
44789 done
44790fi
44791
44792
44793echo
77ffb593 44794echo "Configured wxWidgets ${WX_VERSION} for \`${host}'"
a848cd7e 44795echo ""
4d4ff94c 44796echo " Which GUI toolkit should wxWidgets use? ${TOOLKIT_USER:-base only}"
77ffb593 44797echo " Should wxWidgets be compiled into single library? ${wxUSE_MONOLITHIC:-yes}"
a848cd7e 44798
77ffb593
JS
44799echo " Should wxWidgets be compiled in debug mode? ${wxUSE_DEBUG:-no}"
44800echo " Should wxWidgets be linked as a shared library? ${wxUSE_SHARED:-no}"
44801echo " Should wxWidgets be compiled in Unicode mode? ${wxUSE_UNICODE:-no}"
a848cd7e 44802
77ffb593
JS
44803echo " What level of wxWidgets compatibility should be enabled?"
44804echo " wxWidgets 2.2 ${WXWIN_COMPATIBILITY_2_2:-no}"
44805echo " wxWidgets 2.4 ${WXWIN_COMPATIBILITY_2_4:-yes}"
a848cd7e 44806
77ffb593 44807echo " Which libraries should wxWidgets use?"
a848cd7e
SC
44808echo " jpeg ${wxUSE_LIBJPEG-none}"
44809echo " png ${wxUSE_LIBPNG-none}"
44810echo " regex ${wxUSE_REGEX}"
44811echo " tiff ${wxUSE_LIBTIFF-none}"
44812if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
44813echo " xpm ${wxUSE_LIBXPM-none}"
44814fi
44815echo " zlib ${wxUSE_ZLIB}"
44816echo " odbc ${wxUSE_ODBC}"
44817echo " expat ${wxUSE_EXPAT}"
44818echo " libmspack ${wxUSE_LIBMSPACK}"
44819echo " sdl ${wxUSE_LIBSDL}"
6d1ce868 44820echo " gnomeprint ${wxUSE_LIBGNOMEPRINT-none}"
a848cd7e
SC
44821
44822echo ""
44823