]> git.saurik.com Git - wxWidgets.git/blame - configure
Fixes for wxPython site-packages location.
[wxWidgets.git] / configure
CommitLineData
a848cd7e
SC
1#! /bin/sh
2# From configure.in Id: configure.in.
3# Guess values for system-dependent variables and create Makefiles.
7714864e 4# Generated by GNU Autoconf 2.59 for wxWidgets 2.5.3.
a848cd7e 5#
77ffb593 6# Report bugs to <wx-dev@lists.wxwidgets.org>.
a848cd7e 7#
ac1cb8d3 8# Copyright (C) 2003 Free Software Foundation, Inc.
a848cd7e
SC
9# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
11## --------------------- ##
12## M4sh Initialization. ##
13## --------------------- ##
14
15# Be Bourne compatible
16if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17 emulate sh
18 NULLCMD=:
19 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20 # is contrary to our usage. Disable this feature.
21 alias -g '${1+"$@"}'='"$@"'
22elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
23 set -o posix
24fi
ac1cb8d3 25DUALCASE=1; export DUALCASE # for MKS sh
a848cd7e
SC
26
27# Support unset when possible.
ac1cb8d3 28if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
a848cd7e
SC
29 as_unset=unset
30else
31 as_unset=false
32fi
33
34
35# Work around bugs in pre-3.0 UWIN ksh.
36$as_unset ENV MAIL MAILPATH
37PS1='$ '
38PS2='> '
39PS4='+ '
40
41# NLS nuisances.
42for as_var in \
43 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
44 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
45 LC_TELEPHONE LC_TIME
46do
ac1cb8d3 47 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
a848cd7e
SC
48 eval $as_var=C; export $as_var
49 else
50 $as_unset $as_var
51 fi
52done
53
54# Required to use basename.
55if expr a : '\(a\)' >/dev/null 2>&1; then
56 as_expr=expr
57else
58 as_expr=false
59fi
60
61if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
62 as_basename=basename
63else
64 as_basename=false
65fi
66
67
68# Name of the executable.
69as_me=`$as_basename "$0" ||
70$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
71 X"$0" : 'X\(//\)$' \| \
72 X"$0" : 'X\(/\)$' \| \
73 . : '\(.\)' 2>/dev/null ||
74echo X/"$0" |
75 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
76 /^X\/\(\/\/\)$/{ s//\1/; q; }
77 /^X\/\(\/\).*/{ s//\1/; q; }
78 s/.*/./; q'`
79
80
81# PATH needs CR, and LINENO needs CR and PATH.
82# Avoid depending upon Character Ranges.
83as_cr_letters='abcdefghijklmnopqrstuvwxyz'
84as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
85as_cr_Letters=$as_cr_letters$as_cr_LETTERS
86as_cr_digits='0123456789'
87as_cr_alnum=$as_cr_Letters$as_cr_digits
88
89# The user is always right.
90if test "${PATH_SEPARATOR+set}" != set; then
91 echo "#! /bin/sh" >conf$$.sh
92 echo "exit 0" >>conf$$.sh
93 chmod +x conf$$.sh
94 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
95 PATH_SEPARATOR=';'
96 else
97 PATH_SEPARATOR=:
98 fi
99 rm -f conf$$.sh
100fi
101
102
103 as_lineno_1=$LINENO
104 as_lineno_2=$LINENO
105 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
106 test "x$as_lineno_1" != "x$as_lineno_2" &&
107 test "x$as_lineno_3" = "x$as_lineno_2" || {
108 # Find who we are. Look in the path if we contain no path at all
109 # relative or not.
110 case $0 in
111 *[\\/]* ) as_myself=$0 ;;
112 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
113for as_dir in $PATH
114do
115 IFS=$as_save_IFS
116 test -z "$as_dir" && as_dir=.
117 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
118done
119
120 ;;
121 esac
122 # We did not find ourselves, most probably we were run as `sh COMMAND'
123 # in which case we are not to be found in the path.
124 if test "x$as_myself" = x; then
125 as_myself=$0
126 fi
127 if test ! -f "$as_myself"; then
128 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
129 { (exit 1); exit 1; }; }
130 fi
131 case $CONFIG_SHELL in
132 '')
133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
134for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
135do
136 IFS=$as_save_IFS
137 test -z "$as_dir" && as_dir=.
138 for as_base in sh bash ksh sh5; do
139 case $as_dir in
140 /*)
141 if ("$as_dir/$as_base" -c '
142 as_lineno_1=$LINENO
143 as_lineno_2=$LINENO
144 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
145 test "x$as_lineno_1" != "x$as_lineno_2" &&
146 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
147 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
148 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
149 CONFIG_SHELL=$as_dir/$as_base
150 export CONFIG_SHELL
151 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
152 fi;;
153 esac
154 done
155done
156;;
157 esac
158
159 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
160 # uniformly replaced by the line number. The first 'sed' inserts a
161 # line-number line before each line; the second 'sed' does the real
162 # work. The second script uses 'N' to pair each line-number line
163 # with the numbered line, and appends trailing '-' during
164 # substitution so that $LINENO is not a special case at line end.
165 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
166 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
167 sed '=' <$as_myself |
168 sed '
169 N
170 s,$,-,
171 : loop
172 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
173 t loop
174 s,-$,,
175 s,^['$as_cr_digits']*\n,,
176 ' >$as_me.lineno &&
177 chmod +x $as_me.lineno ||
178 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
179 { (exit 1); exit 1; }; }
180
181 # Don't try to exec as it changes $[0], causing all sort of problems
182 # (the dirname of $[0] is not the place where we might find the
183 # original and so on. Autoconf is especially sensible to this).
184 . ./$as_me.lineno
185 # Exit status is that of the last command.
186 exit
187}
188
189
190case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
191 *c*,-n*) ECHO_N= ECHO_C='
192' ECHO_T=' ' ;;
193 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
194 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
195esac
196
197if expr a : '\(a\)' >/dev/null 2>&1; then
198 as_expr=expr
199else
200 as_expr=false
201fi
202
203rm -f conf$$ conf$$.exe conf$$.file
204echo >conf$$.file
205if ln -s conf$$.file conf$$ 2>/dev/null; then
206 # We could just check for DJGPP; but this test a) works b) is more generic
207 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
208 if test -f conf$$.exe; then
209 # Don't use ln at all; we don't have any links
210 as_ln_s='cp -p'
211 else
212 as_ln_s='ln -s'
213 fi
214elif ln conf$$.file conf$$ 2>/dev/null; then
215 as_ln_s=ln
216else
217 as_ln_s='cp -p'
218fi
219rm -f conf$$ conf$$.exe conf$$.file
220
221if mkdir -p . 2>/dev/null; then
222 as_mkdir_p=:
223else
ac1cb8d3 224 test -d ./-p && rmdir ./-p
a848cd7e
SC
225 as_mkdir_p=false
226fi
227
228as_executable_p="test -f"
229
230# Sed expression to map a string onto a valid CPP name.
ac1cb8d3 231as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
a848cd7e
SC
232
233# Sed expression to map a string onto a valid variable name.
ac1cb8d3 234as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
a848cd7e
SC
235
236
237# IFS
238# We need space, tab and new line, in precisely that order.
239as_nl='
240'
241IFS=" $as_nl"
242
243# CDPATH.
244$as_unset CDPATH
245
246
247# Name of the host.
248# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
249# so uname gets run too.
250ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
251
252exec 6>&1
253
254#
255# Initializations.
256#
257ac_default_prefix=/usr/local
258ac_config_libobj_dir=.
259cross_compiling=no
260subdirs=
261MFLAGS=
262MAKEFLAGS=
263SHELL=${CONFIG_SHELL-/bin/sh}
264
265# Maximum number of lines to put in a shell here document.
266# This variable seems obsolete. It should probably be removed, and
267# only ac_max_sed_lines should be used.
268: ${ac_max_here_lines=38}
269
270# Identity of this package.
77ffb593
JS
271PACKAGE_NAME='wxWidgets'
272PACKAGE_TARNAME='wxwidgets'
7714864e
RL
273PACKAGE_VERSION='2.5.3'
274PACKAGE_STRING='wxWidgets 2.5.3'
77ffb593 275PACKAGE_BUGREPORT='wx-dev@lists.wxwidgets.org'
a848cd7e
SC
276
277ac_unique_file="wx-config.in"
278# Factoring default headers for most tests.
279ac_includes_default="\
280#include <stdio.h>
281#if HAVE_SYS_TYPES_H
282# include <sys/types.h>
283#endif
284#if HAVE_SYS_STAT_H
285# include <sys/stat.h>
286#endif
287#if STDC_HEADERS
288# include <stdlib.h>
289# include <stddef.h>
290#else
291# if HAVE_STDLIB_H
292# include <stdlib.h>
293# endif
294#endif
295#if HAVE_STRING_H
296# if !STDC_HEADERS && HAVE_MEMORY_H
297# include <memory.h>
298# endif
299# include <string.h>
300#endif
301#if HAVE_STRINGS_H
302# include <strings.h>
303#endif
304#if HAVE_INTTYPES_H
305# include <inttypes.h>
306#else
307# if HAVE_STDINT_H
308# include <stdint.h>
309# endif
310#endif
311#if HAVE_UNISTD_H
312# include <unistd.h>
313#endif"
314
315ac_subdirs_all="$ac_subdirs_all src/expat"
d1c38808 316ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP EGREP CXX CXXFLAGS ac_ct_CXX RANLIB ac_ct_RANLIB AR INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA STRIP IF_GNU_MAKE LN_S CXXCPP subdirs PKG_CONFIG GTK_CFLAGS GTK_LIBS GTK_CONFIG X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS PANGOX_CFLAGS PANGOX_LIBS PANGOFT2_CFLAGS PANGOFT2_LIBS PANGOXFT_CFLAGS PANGOXFT_LIBS RESCOMP DEREZ SETFILE LIBICONV EXTRALIBS_ESD SDL_CONFIG SDL_CFLAGS SDL_LIBS LIBGNOMEPRINTUI_CFLAGS LIBGNOMEPRINTUI_LIBS CORE_BASE_LIBS CORE_GUI_LIBS wxUSE_ZLIB wxUSE_REGEX wxUSE_EXPAT wxUSE_ODBC wxUSE_LIBJPEG wxUSE_LIBPNG wxUSE_LIBTIFF VENDOR OFFICIAL_BUILD WX_FLAVOUR WX_LIB_FLAVOUR WXUNIV MONOLITHIC USE_PLUGINS EXTRALIBS EXTRALIBS_XML EXTRALIBS_HTML EXTRALIBS_ODBC EXTRALIBS_GUI EXTRALIBS_OPENGL EXTRALIBS_SDL WITH_PLUGIN_SDL EXTRALIBS_GNOMEPRINT UNICODE BUILD DEBUG_INFO DEBUG_FLAG TOOLKIT_LOWERCASE TOOLKIT_VERSION SAMPLES_RPATH_FLAG SAMPLES_RPATH_POSTLINK HOST_SUFFIX CPPUNIT_CFLAGS CPPUNIT_LIBS SET_MAKE MAKE_SET ac_ct_AR ac_ct_STRIP NM ac_ct_NM INSTALL_DIR LDFLAGS_GUI PLATFORM_UNIX PLATFORM_WIN32 PLATFORM_MSDOS PLATFORM_MAC PLATFORM_MACOSX PLATFORM_OS2 SO_SUFFIX SO_SUFFIX_MODULE DLLIMP_SUFFIX LIBPREFIX LIBEXT DLLPREFIX DLLPREFIX_MODULE AIX_CXX_LD SHARED_LD_CC SHARED_LD_CXX SHARED_LD_MODULE_CC SHARED_LD_MODULE_CXX PIC_FLAG USE_SOVERSION USE_SOVERLINUX USE_SOVERSOLARIS USE_MACVERSION USE_SOSYMLINKS SONAME_FLAG DEPS_TRACKING GCC_PCH COND_BUILD_DEBUG COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT COND_BUILD_DEBUG_UNICODE_0 COND_BUILD_DEBUG_UNICODE_1 COND_BUILD_RELEASE COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT COND_BUILD_RELEASE_UNICODE_0 COND_BUILD_RELEASE_UNICODE_1 COND_DEBUG_FLAG_1 COND_DEBUG_INFO_0 COND_DEBUG_INFO_1 COND_DEPS_TRACKING_0 COND_DEPS_TRACKING_1 COND_GCC_PCH_1 COND_MONOLITHIC_0 COND_MONOLITHIC_0_SHARED_0 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1 COND_MONOLITHIC_0_SHARED_0_USE_HTML_1 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1 COND_MONOLITHIC_0_SHARED_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_ODBC_1 COND_MONOLITHIC_0_SHARED_1_USE_HTML_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_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_1 COND_WXUSE_EXPAT_BUILTIN COND_WXUSE_LIBJPEG_BUILTIN COND_WXUSE_LIBPNG_BUILTIN COND_WXUSE_LIBTIFF_BUILTIN COND_WXUSE_ODBC_BUILTIN COND_WXUSE_REGEX_BUILTIN COND_WXUSE_ZLIB_BUILTIN COND_TOOLKIT_MAC_WXUNIV_0 COND_TOOLKIT_MSW_WXUNIV_0 COND_TOOLKIT_PM_WXUNIV_0 SHARED WX_LIBRARY_BASENAME_NOGUI WX_LIBRARY_BASENAME_GUI WXDEBUG_DEFINE USE_GUI AFMINSTALL WIN32INSTALL TOOLKIT TOOLKIT_DIR TOOLCHAIN_NAME TOOLCHAIN_FULLNAME TOOLCHAIN_DEFS TOOLCHAIN_DLL_DEFS cross_compiling WIDGET_SET WX_RELEASE WX_VERSION WX_SUBVERSION WX_CHARTYPE WX_DEBUGTYPE WXCONFIG_EXTRALIBS WXCONFIG_INCLUDE WXCONFIG_RPATH WXCONFIG_LDFLAGS_GUI WX_LARGEFILE_FLAGS GCC_PRAGMA_FLAGS CODE_GEN_FLAGS CODE_GEN_FLAGS_CXX EXE_LINKER GUIDIST DISTDIR SAMPLES_SUBDIRS LDFLAGS_GL OPENGL_LIBS DMALLOC_LIBS WX_VERSION_TAG RESFLAGS RESPROGRAMOBJ WX_RESOURCES_MACOSX_ASCII WX_RESOURCES_MACOSX_DATA LIBWXMACRES MACRESCOMP MACSETFILE MACRESWXCONFIG GCC DLLTOOL CPPUNIT_CONFIG LIBOBJS LTLIBOBJS'
a848cd7e
SC
317ac_subst_files=''
318
319# Initialize some variables set by options.
320ac_init_help=
321ac_init_version=false
322# The variables have the same names as the options, with
323# dashes changed to underlines.
324cache_file=/dev/null
325exec_prefix=NONE
326no_create=
327no_recursion=
328prefix=NONE
329program_prefix=NONE
330program_suffix=NONE
331program_transform_name=s,x,x,
332silent=
333site=
334srcdir=
335verbose=
336x_includes=NONE
337x_libraries=NONE
338
339# Installation directory options.
340# These are left unexpanded so users can "make install exec_prefix=/foo"
341# and all the variables that are supposed to be based on exec_prefix
342# by default will actually change.
343# Use braces instead of parens because sh, perl, etc. also accept them.
344bindir='${exec_prefix}/bin'
345sbindir='${exec_prefix}/sbin'
346libexecdir='${exec_prefix}/libexec'
347datadir='${prefix}/share'
348sysconfdir='${prefix}/etc'
349sharedstatedir='${prefix}/com'
350localstatedir='${prefix}/var'
351libdir='${exec_prefix}/lib'
352includedir='${prefix}/include'
353oldincludedir='/usr/include'
354infodir='${prefix}/info'
355mandir='${prefix}/man'
356
357ac_prev=
358for ac_option
359do
360 # If the previous option needs an argument, assign it.
361 if test -n "$ac_prev"; then
362 eval "$ac_prev=\$ac_option"
363 ac_prev=
364 continue
365 fi
366
367 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
368
369 # Accept the important Cygnus configure options, so we can diagnose typos.
370
371 case $ac_option in
372
373 -bindir | --bindir | --bindi | --bind | --bin | --bi)
374 ac_prev=bindir ;;
375 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
376 bindir=$ac_optarg ;;
377
378 -build | --build | --buil | --bui | --bu)
379 ac_prev=build_alias ;;
380 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
381 build_alias=$ac_optarg ;;
382
383 -cache-file | --cache-file | --cache-fil | --cache-fi \
384 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
385 ac_prev=cache_file ;;
386 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
387 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
388 cache_file=$ac_optarg ;;
389
390 --config-cache | -C)
391 cache_file=config.cache ;;
392
393 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
394 ac_prev=datadir ;;
395 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
396 | --da=*)
397 datadir=$ac_optarg ;;
398
399 -disable-* | --disable-*)
400 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
401 # Reject names that are not valid shell variable names.
402 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
403 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
404 { (exit 1); exit 1; }; }
405 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
406 eval "enable_$ac_feature=no" ;;
407
408 -enable-* | --enable-*)
409 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
410 # Reject names that are not valid shell variable names.
411 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
412 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
413 { (exit 1); exit 1; }; }
414 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
415 case $ac_option in
416 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
417 *) ac_optarg=yes ;;
418 esac
419 eval "enable_$ac_feature='$ac_optarg'" ;;
420
421 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
422 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
423 | --exec | --exe | --ex)
424 ac_prev=exec_prefix ;;
425 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
426 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
427 | --exec=* | --exe=* | --ex=*)
428 exec_prefix=$ac_optarg ;;
429
430 -gas | --gas | --ga | --g)
431 # Obsolete; use --with-gas.
432 with_gas=yes ;;
433
434 -help | --help | --hel | --he | -h)
435 ac_init_help=long ;;
436 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
437 ac_init_help=recursive ;;
438 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
439 ac_init_help=short ;;
440
441 -host | --host | --hos | --ho)
442 ac_prev=host_alias ;;
443 -host=* | --host=* | --hos=* | --ho=*)
444 host_alias=$ac_optarg ;;
445
446 -includedir | --includedir | --includedi | --included | --include \
447 | --includ | --inclu | --incl | --inc)
448 ac_prev=includedir ;;
449 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
450 | --includ=* | --inclu=* | --incl=* | --inc=*)
451 includedir=$ac_optarg ;;
452
453 -infodir | --infodir | --infodi | --infod | --info | --inf)
454 ac_prev=infodir ;;
455 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
456 infodir=$ac_optarg ;;
457
458 -libdir | --libdir | --libdi | --libd)
459 ac_prev=libdir ;;
460 -libdir=* | --libdir=* | --libdi=* | --libd=*)
461 libdir=$ac_optarg ;;
462
463 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
464 | --libexe | --libex | --libe)
465 ac_prev=libexecdir ;;
466 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
467 | --libexe=* | --libex=* | --libe=*)
468 libexecdir=$ac_optarg ;;
469
470 -localstatedir | --localstatedir | --localstatedi | --localstated \
471 | --localstate | --localstat | --localsta | --localst \
472 | --locals | --local | --loca | --loc | --lo)
473 ac_prev=localstatedir ;;
474 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
475 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
476 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
477 localstatedir=$ac_optarg ;;
478
479 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
480 ac_prev=mandir ;;
481 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
482 mandir=$ac_optarg ;;
483
484 -nfp | --nfp | --nf)
485 # Obsolete; use --without-fp.
486 with_fp=no ;;
487
488 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
489 | --no-cr | --no-c | -n)
490 no_create=yes ;;
491
492 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
493 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
494 no_recursion=yes ;;
495
496 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
497 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
498 | --oldin | --oldi | --old | --ol | --o)
499 ac_prev=oldincludedir ;;
500 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
501 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
502 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
503 oldincludedir=$ac_optarg ;;
504
505 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
506 ac_prev=prefix ;;
507 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
508 prefix=$ac_optarg ;;
509
510 -program-prefix | --program-prefix | --program-prefi | --program-pref \
511 | --program-pre | --program-pr | --program-p)
512 ac_prev=program_prefix ;;
513 -program-prefix=* | --program-prefix=* | --program-prefi=* \
514 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
515 program_prefix=$ac_optarg ;;
516
517 -program-suffix | --program-suffix | --program-suffi | --program-suff \
518 | --program-suf | --program-su | --program-s)
519 ac_prev=program_suffix ;;
520 -program-suffix=* | --program-suffix=* | --program-suffi=* \
521 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
522 program_suffix=$ac_optarg ;;
523
524 -program-transform-name | --program-transform-name \
525 | --program-transform-nam | --program-transform-na \
526 | --program-transform-n | --program-transform- \
527 | --program-transform | --program-transfor \
528 | --program-transfo | --program-transf \
529 | --program-trans | --program-tran \
530 | --progr-tra | --program-tr | --program-t)
531 ac_prev=program_transform_name ;;
532 -program-transform-name=* | --program-transform-name=* \
533 | --program-transform-nam=* | --program-transform-na=* \
534 | --program-transform-n=* | --program-transform-=* \
535 | --program-transform=* | --program-transfor=* \
536 | --program-transfo=* | --program-transf=* \
537 | --program-trans=* | --program-tran=* \
538 | --progr-tra=* | --program-tr=* | --program-t=*)
539 program_transform_name=$ac_optarg ;;
540
541 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
542 | -silent | --silent | --silen | --sile | --sil)
543 silent=yes ;;
544
545 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
546 ac_prev=sbindir ;;
547 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
548 | --sbi=* | --sb=*)
549 sbindir=$ac_optarg ;;
550
551 -sharedstatedir | --sharedstatedir | --sharedstatedi \
552 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
553 | --sharedst | --shareds | --shared | --share | --shar \
554 | --sha | --sh)
555 ac_prev=sharedstatedir ;;
556 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
557 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
558 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
559 | --sha=* | --sh=*)
560 sharedstatedir=$ac_optarg ;;
561
562 -site | --site | --sit)
563 ac_prev=site ;;
564 -site=* | --site=* | --sit=*)
565 site=$ac_optarg ;;
566
567 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
568 ac_prev=srcdir ;;
569 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
570 srcdir=$ac_optarg ;;
571
572 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
573 | --syscon | --sysco | --sysc | --sys | --sy)
574 ac_prev=sysconfdir ;;
575 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
576 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
577 sysconfdir=$ac_optarg ;;
578
579 -target | --target | --targe | --targ | --tar | --ta | --t)
580 ac_prev=target_alias ;;
581 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
582 target_alias=$ac_optarg ;;
583
584 -v | -verbose | --verbose | --verbos | --verbo | --verb)
585 verbose=yes ;;
586
587 -version | --version | --versio | --versi | --vers | -V)
588 ac_init_version=: ;;
589
590 -with-* | --with-*)
591 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
592 # Reject names that are not valid shell variable names.
593 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
594 { echo "$as_me: error: invalid package name: $ac_package" >&2
595 { (exit 1); exit 1; }; }
596 ac_package=`echo $ac_package| sed 's/-/_/g'`
597 case $ac_option in
598 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
599 *) ac_optarg=yes ;;
600 esac
601 eval "with_$ac_package='$ac_optarg'" ;;
602
603 -without-* | --without-*)
604 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
605 # Reject names that are not valid shell variable names.
606 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
607 { echo "$as_me: error: invalid package name: $ac_package" >&2
608 { (exit 1); exit 1; }; }
609 ac_package=`echo $ac_package | sed 's/-/_/g'`
610 eval "with_$ac_package=no" ;;
611
612 --x)
613 # Obsolete; use --with-x.
614 with_x=yes ;;
615
616 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
617 | --x-incl | --x-inc | --x-in | --x-i)
618 ac_prev=x_includes ;;
619 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
620 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
621 x_includes=$ac_optarg ;;
622
623 -x-libraries | --x-libraries | --x-librarie | --x-librari \
624 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
625 ac_prev=x_libraries ;;
626 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
627 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
628 x_libraries=$ac_optarg ;;
629
630 -*) { echo "$as_me: error: unrecognized option: $ac_option
631Try \`$0 --help' for more information." >&2
632 { (exit 1); exit 1; }; }
633 ;;
634
635 *=*)
636 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
637 # Reject names that are not valid shell variable names.
638 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
639 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
640 { (exit 1); exit 1; }; }
641 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
642 eval "$ac_envvar='$ac_optarg'"
643 export $ac_envvar ;;
644
645 *)
646 # FIXME: should be removed in autoconf 3.0.
647 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
648 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
649 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
650 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
651 ;;
652
653 esac
654done
655
656if test -n "$ac_prev"; then
657 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
658 { echo "$as_me: error: missing argument to $ac_option" >&2
659 { (exit 1); exit 1; }; }
660fi
661
662# Be sure to have absolute paths.
663for ac_var in exec_prefix prefix
664do
665 eval ac_val=$`echo $ac_var`
666 case $ac_val in
667 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
668 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
669 { (exit 1); exit 1; }; };;
670 esac
671done
672
673# Be sure to have absolute paths.
674for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
ac1cb8d3 675 localstatedir libdir includedir oldincludedir infodir mandir
a848cd7e
SC
676do
677 eval ac_val=$`echo $ac_var`
678 case $ac_val in
679 [\\/$]* | ?:[\\/]* ) ;;
680 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
681 { (exit 1); exit 1; }; };;
682 esac
683done
684
685# There might be people who depend on the old broken behavior: `$host'
686# used to hold the argument of --host etc.
687# FIXME: To remove some day.
688build=$build_alias
689host=$host_alias
690target=$target_alias
691
692# FIXME: To remove some day.
693if test "x$host_alias" != x; then
694 if test "x$build_alias" = x; then
695 cross_compiling=maybe
696 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
697 If a cross compiler is detected then cross compile mode will be used." >&2
698 elif test "x$build_alias" != "x$host_alias"; then
699 cross_compiling=yes
700 fi
701fi
702
703ac_tool_prefix=
704test -n "$host_alias" && ac_tool_prefix=$host_alias-
705
706test "$silent" = yes && exec 6>/dev/null
707
708
709# Find the source files, if location was not specified.
710if test -z "$srcdir"; then
711 ac_srcdir_defaulted=yes
712 # Try the directory containing this script, then its parent.
713 ac_confdir=`(dirname "$0") 2>/dev/null ||
714$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
715 X"$0" : 'X\(//\)[^/]' \| \
716 X"$0" : 'X\(//\)$' \| \
717 X"$0" : 'X\(/\)' \| \
718 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
719echo X"$0" |
720 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
721 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
722 /^X\(\/\/\)$/{ s//\1/; q; }
723 /^X\(\/\).*/{ s//\1/; q; }
724 s/.*/./; q'`
725 srcdir=$ac_confdir
726 if test ! -r $srcdir/$ac_unique_file; then
727 srcdir=..
728 fi
729else
730 ac_srcdir_defaulted=no
731fi
732if test ! -r $srcdir/$ac_unique_file; then
733 if test "$ac_srcdir_defaulted" = yes; then
734 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
735 { (exit 1); exit 1; }; }
736 else
737 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
738 { (exit 1); exit 1; }; }
739 fi
740fi
741(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
742 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
743 { (exit 1); exit 1; }; }
744srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
745ac_env_build_alias_set=${build_alias+set}
746ac_env_build_alias_value=$build_alias
747ac_cv_env_build_alias_set=${build_alias+set}
748ac_cv_env_build_alias_value=$build_alias
749ac_env_host_alias_set=${host_alias+set}
750ac_env_host_alias_value=$host_alias
751ac_cv_env_host_alias_set=${host_alias+set}
752ac_cv_env_host_alias_value=$host_alias
753ac_env_target_alias_set=${target_alias+set}
754ac_env_target_alias_value=$target_alias
755ac_cv_env_target_alias_set=${target_alias+set}
756ac_cv_env_target_alias_value=$target_alias
757ac_env_CC_set=${CC+set}
758ac_env_CC_value=$CC
759ac_cv_env_CC_set=${CC+set}
760ac_cv_env_CC_value=$CC
761ac_env_CFLAGS_set=${CFLAGS+set}
762ac_env_CFLAGS_value=$CFLAGS
763ac_cv_env_CFLAGS_set=${CFLAGS+set}
764ac_cv_env_CFLAGS_value=$CFLAGS
765ac_env_LDFLAGS_set=${LDFLAGS+set}
766ac_env_LDFLAGS_value=$LDFLAGS
767ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
768ac_cv_env_LDFLAGS_value=$LDFLAGS
769ac_env_CPPFLAGS_set=${CPPFLAGS+set}
770ac_env_CPPFLAGS_value=$CPPFLAGS
771ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
772ac_cv_env_CPPFLAGS_value=$CPPFLAGS
773ac_env_CPP_set=${CPP+set}
774ac_env_CPP_value=$CPP
775ac_cv_env_CPP_set=${CPP+set}
776ac_cv_env_CPP_value=$CPP
777ac_env_CXX_set=${CXX+set}
778ac_env_CXX_value=$CXX
779ac_cv_env_CXX_set=${CXX+set}
780ac_cv_env_CXX_value=$CXX
781ac_env_CXXFLAGS_set=${CXXFLAGS+set}
782ac_env_CXXFLAGS_value=$CXXFLAGS
783ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
784ac_cv_env_CXXFLAGS_value=$CXXFLAGS
785ac_env_CXXCPP_set=${CXXCPP+set}
786ac_env_CXXCPP_value=$CXXCPP
787ac_cv_env_CXXCPP_set=${CXXCPP+set}
788ac_cv_env_CXXCPP_value=$CXXCPP
789
790#
791# Report the --help message.
792#
793if test "$ac_init_help" = "long"; then
794 # Omit some internal or obsolete options to make the list less imposing.
795 # This message is too long to be a string in the A/UX 3.1 sh.
796 cat <<_ACEOF
7714864e 797\`configure' configures wxWidgets 2.5.3 to adapt to many kinds of systems.
a848cd7e
SC
798
799Usage: $0 [OPTION]... [VAR=VALUE]...
800
801To assign environment variables (e.g., CC, CFLAGS...), specify them as
802VAR=VALUE. See below for descriptions of some of the useful variables.
803
804Defaults for the options are specified in brackets.
805
806Configuration:
807 -h, --help display this help and exit
808 --help=short display options specific to this package
809 --help=recursive display the short help of all the included packages
810 -V, --version display version information and exit
811 -q, --quiet, --silent do not print \`checking...' messages
812 --cache-file=FILE cache test results in FILE [disabled]
813 -C, --config-cache alias for \`--cache-file=config.cache'
814 -n, --no-create do not create output files
815 --srcdir=DIR find the sources in DIR [configure dir or \`..']
816
817_ACEOF
818
819 cat <<_ACEOF
820Installation directories:
821 --prefix=PREFIX install architecture-independent files in PREFIX
ac1cb8d3 822 [$ac_default_prefix]
a848cd7e 823 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
ac1cb8d3 824 [PREFIX]
a848cd7e
SC
825
826By default, \`make install' will install all the files in
827\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
828an installation prefix other than \`$ac_default_prefix' using \`--prefix',
829for instance \`--prefix=\$HOME'.
830
831For better control, use the options below.
832
833Fine tuning of the installation directories:
834 --bindir=DIR user executables [EPREFIX/bin]
835 --sbindir=DIR system admin executables [EPREFIX/sbin]
836 --libexecdir=DIR program executables [EPREFIX/libexec]
837 --datadir=DIR read-only architecture-independent data [PREFIX/share]
838 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
839 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
840 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
841 --libdir=DIR object code libraries [EPREFIX/lib]
842 --includedir=DIR C header files [PREFIX/include]
843 --oldincludedir=DIR C header files for non-gcc [/usr/include]
844 --infodir=DIR info documentation [PREFIX/info]
845 --mandir=DIR man documentation [PREFIX/man]
846_ACEOF
847
848 cat <<\_ACEOF
849
850X features:
851 --x-includes=DIR X include files are in DIR
852 --x-libraries=DIR X library files are in DIR
853
854System types:
855 --build=BUILD configure for building on BUILD [guessed]
856 --host=HOST cross-compile to build programs to run on HOST [BUILD]
857 --target=TARGET configure for building compilers for TARGET [HOST]
858_ACEOF
859fi
860
861if test -n "$ac_init_help"; then
862 case $ac_init_help in
7714864e 863 short | recursive ) echo "Configuration of wxWidgets 2.5.3:";;
a848cd7e
SC
864 esac
865 cat <<\_ACEOF
866
867Optional Features:
868 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
869 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
870 --enable-gui use GUI classes
77ffb593
JS
871 --enable-monolithic build wxWidgets as single library
872 --enable-plugins build parts of wxWidgets as loadable components
873 --enable-universal use wxWidgets GUI controls instead of native ones
a848cd7e 874 --enable-nanox use NanoX
9f45f08e 875 --disable-gtk2 use GTK+ 1.2 instead of 2.0
a848cd7e
SC
876 --enable-gpe use GNOME PDA Environment features if possible
877 --enable-shared create shared library code
878 --enable-optimise create optimised code
879 --enable-debug same as debug_flag and debug_info
880 --enable-stl use STL for containers
881 --enable-omf use OMF object format
882 --enable-debug_flag set __WXDEBUG__ flag (recommended for developers!)
883 --enable-debug_info create code with debugging information
884 --enable-debug_gdb create code with extra GDB debugging information
885 --enable-debug_cntxt use wxDebugContext
886 --enable-mem_tracing create code with memory tracing
887 --enable-profile create code with profiling information
888 --enable-no_rtti create code without RTTI information
889 --enable-no_exceptions create code without C++ exceptions handling
890 --enable-permissive compile code disregarding strict ANSI
891 --enable-no_deps create code without dependency information
77ffb593
JS
892 --enable-compat22 enable wxWidgets 2.2 compatibility
893 --disable-compat24 disable wxWidgets 2.4 compatibility
ffa0583f 894 --disable-rpath disable use of rpath for uninstalled builds
a848cd7e
SC
895 --enable-intl use internationalization system
896 --enable-config use wxConfig (and derived) classes
897 --enable-protocols use wxProtocol and derived classes
898 --enable-ftp use wxFTP (requires wxProtocol
899 --enable-http use wxHTTP (requires wxProtocol
900 --enable-fileproto use wxFileProto class (requires wxProtocol
901 --enable-sockets use socket/network classes
902 --enable-ole use OLE classes (Win32 only)
903 --enable-dataobj use data object classes
904 --enable-ipc use interprocess communication (wxSocket etc.)
905 --enable-apple_ieee use the Apple IEEE codec
906 --enable-catch_segvs catch signals in wxApp::OnFatalException (Unix only)
907 --enable-cmdline use wxCmdLineParser class
908 --enable-datetime use wxDateTime class
909 --enable-dialupman use dialup network classes
910 --enable-dynlib use wxLibrary class for DLL loading
911 --enable-dynamicloader use (new) wxDynamicLibrary class
912 --enable-exceptions build exception-safe library
913 --enable-ffile use wxFFile class
914 --enable-file use wxFile class
915 --enable-filesystem use virtual file systems classes
916 --enable-fontmap use font encodings conversion classes
917 --enable-fs_inet use virtual HTTP/FTP filesystems
918 --enable-fs_zip use virtual ZIP filesystems
919 --enable-geometry use geometry class
920 --enable-log use logging system
921 --enable-longlong use wxLongLong class
922 --enable-mimetype use wxMimeTypesManager
923 --enable-mslu use MS Layer for Unicode on Windows 9x (Win32 only)
924 --enable-snglinst use wxSingleInstanceChecker class
925 --enable-streams use wxStream etc classes
926 --enable-std_iostreams use standard C++ stream classes
927 --enable-stopwatch use wxStopWatch class
928 --enable-sysoptions use wxSystemOptions
929 --enable-textbuf use wxTextBuffer class
930 --enable-textfile use wxTextFile class
931 --enable-timer use wxTimer class
932 --enable-unicode compile wxString with Unicode support
933 --enable-sound use wxSound class
3b57de8b 934 --enable-mediactrl use wxMediaCtrl class
77ffb593 935 --enable-wxprintfv use wxWidgets implementation of vprintf()
a848cd7e 936 --enable-zipstream use wxZipInputStream
a848cd7e
SC
937 --enable-url use wxURL class
938 --enable-protocol use wxProtocol class
939 --enable-protocol-http HTTP support in wxProtocol
940 --enable-protocol-ftp FTP support in wxProtocol
941 --enable-protocol-file FILE support in wxProtocol
942 --enable-threads use threads
943 --enable-docview use document view architecture
944 --enable-help use help subsystem
945 --enable-mshtmlhelp use MS HTML Help (win32)
946 --enable-html use wxHTML sub-library
947 --enable-htmlhelp use wxHTML-based help
9a8f0513 948 --enable-xrc use XRC resources sub-library
a848cd7e
SC
949 --enable-constraints use layout-constraints system
950 --enable-printarch use printing architecture
951 --enable-mdi use multiple document interface architecture
8a7b1113 952 --enable-mdidoc use docview architecture with MDI
a848cd7e
SC
953 --enable-loggui use standard GUI logger
954 --enable-logwin use wxLogWindow
955 --enable-logdialog use wxLogDialog
646b6ec1 956 --enable-webkit use wxWebKitCtrl (Mac)
a848cd7e
SC
957 --enable-postscript use wxPostscriptDC device context (default for gtk+)
958 --enable-prologio not available; see contrib
959 --enable-resources not available; see contrib
960 --enable-clipboard use wxClipboard class
961 --enable-dnd use Drag'n'Drop classes
962 --enable-metafile use win32 metafiles
963 --enable-controls use all usual controls
964 --enable-accel use accelerators
965 --enable-button use wxButton class
966 --enable-bmpbutton use wxBitmapButton class
967 --enable-calendar use wxCalendarCtrl class
968 --enable-caret use wxCaret class
969 --enable-checkbox use wxCheckBox class
970 --enable-checklst use wxCheckListBox (listbox with checkboxes) class
971 --enable-choice use wxChoice class
92bbdbcd 972 --enable-choicebook use wxChoicebook class
a848cd7e
SC
973 --enable-combobox use wxComboBox class
974 --enable-display use wxDisplay class
975 --enable-gauge use wxGauge class
976 --enable-grid use wxGrid class
977 --enable-imaglist use wxImageList class
978 --enable-listbook use wxListbook class
979 --enable-listbox use wxListBox class
980 --enable-listctrl use wxListCtrl class
981 --enable-notebook use wxNotebook class
982 --enable-radiobox use wxRadioBox class
983 --enable-radiobtn use wxRadioButton class
984 --enable-sash use wxSashWindow class
985 --enable-scrollbar use wxScrollBar class and scrollable windows
986 --enable-slider use wxSlider class
987 --enable-spinbtn use wxSpinButton class
988 --enable-spinctrl use wxSpinCtrl class
989 --enable-splitter use wxSplitterWindow class
990 --enable-statbmp use wxStaticBitmap class
991 --enable-statbox use wxStaticBox class
992 --enable-statline use wxStaticLine class
993 --enable-stattext use wxStaticText class
994 --enable-statusbar use wxStatusBar class
995 --enable-tabdialog use wxTabControl class
996 --enable-textctrl use wxTextCtrl class
997 --enable-togglebtn use wxToggleButton class
998 --enable-toolbar use wxToolBar class
999 --enable-tbarnative use native wxToolBar class
1000 --enable-tbarsmpl use wxToolBarSimple class
1001 --enable-treectrl use wxTreeCtrl class
1002 --enable-tipwindow use wxTipWindow class
1003 --enable-popupwin use wxPopUpWindow class
1004 --enable-commondlg use all common dialogs
1005 --enable-choicedlg use wxChoiceDialog
1006 --enable-coldlg use wxColourDialog
1007 --enable-filedlg use wxFileDialog
1008 --enable-finddlg use wxFindReplaceDialog
1009 --enable-fontdlg use wxFontDialog
1010 --enable-dirdlg use wxDirDialog
1011 --enable-msgdlg use wxMessageDialog
1012 --enable-numberdlg use wxNumberEntryDialog
1013 --enable-splash use wxSplashScreen
1014 --enable-textdlg use wxTextDialog
1015 --enable-tipdlg use startup tips
1016 --enable-progressdlg use wxProgressDialog
1017 --enable-wizarddlg use wxWizard
1018 --enable-menus use wxMenu/wxMenuBar/wxMenuItem classes
1019 --enable-miniframe use wxMiniFrame class
1020 --enable-tooltips use wxToolTip class
1021 --enable-splines use spline drawing code
1022 --enable-validators use wxValidator and derived classes
1023 --enable-busyinfo use wxBusyInfo
1024 --enable-joystick use wxJoystick (Linux only)
1025 --enable-metafiles use wxMetaFile (Windows only)
1026 --enable-dragimage use wxDragImage
1027 --enable-accessibility enable accessibility support
1028 --enable-palette use wxPalette class
1029 --enable-image use wxImage class
1030 --enable-gif use gif images (GIF file format)
1031 --enable-pcx use pcx images (PCX file format)
1032 --enable-iff use iff images (IFF file format)
1033 --enable-pnm use pnm images (PNM file format)
1034 --enable-xpm use xpm images (XPM file format)
1035 --enable-icocur use Windows ICO and CUR formats
77ffb593 1036 --enable-official_build official build of wxWidgets (win32 DLL only)
a848cd7e
SC
1037 --enable-vendor=VENDOR vendor name (win32 DLL only)
1038 --disable-largefile omit support for large files
1039 --disable-gtktest do not try to compile and run a test GTK+ program
1040 --disable-gtktest Do not try to compile and run a test GTK program
1041 --disable-sdltest Do not try to compile and run a test SDL program
1042 --enable-omf use OMF object format (OS/2)
ebee3cd0
VS
1043 --disable-precomp-headers
1044 don't use precompiled headers even if compiler can
a848cd7e
SC
1045
1046Optional Packages:
1047 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1048 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1049 --with-gtk use GTK+
1050 --with-motif use Motif/Lesstif
1051 --with-mac use Mac OS X
1052 --with-cocoa use Cocoa
1053 --with-wine use Wine
1054 --with-msw use MS-Windows
1055 --with-pm use OS/2 Presentation Manager
1056 --with-mgl use SciTech MGL
1057 --with-microwin use MicroWindows
1058 --with-x11 use X11
1059 --with-libpng use libpng (PNG image format)
1060 --with-libjpeg use libjpeg (JPEG file format)
1061 --with-libtiff use libtiff (TIFF file format)
1062 --with-libxpm use libxpm (XPM file format)
1063 --with-libmspack use libmspack (CHM help files loading)
1064 --with-sdl use SDL for audio on Unix
d1c38808 1065 --with-gnomeprint use GNOME print for audio printing under Unix
a848cd7e
SC
1066 --with-opengl use OpenGL (or Mesa)
1067 --with-dmalloc use dmalloc library (http://dmalloc.com/)
1068 --with-regex enable support for wxRegEx class
1069 --with-zlib use zlib for LZW compression
1070 --with-odbc use the IODBC and wxODBC classes
1071 --with-expat enable XML support using expat parser
ceec2216 1072 --with-flavour=NAME specify a name to identify this build
a848cd7e
SC
1073 --with-gtk-prefix=PFX Prefix where GTK is installed (optional)
1074 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)
1075 --with-x use the X Window System
1076 --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib
1077 --with-sdl-prefix=PFX Prefix where SDL is installed (optional)
1078 --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional)
1079 --with-cppunit-prefix=PFX Prefix where CppUnit is installed (optional)
1080 --with-cppunit-exec-prefix=PFX Exec prefix where CppUnit is installed (optional)
1081
1082Some influential environment variables:
dcc1b6ad
VS
1083 CC C compiler command
1084 CFLAGS C compiler flags
1085 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1086 nonstandard directory <lib dir>
1087 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1088 headers in a nonstandard directory <include dir>
1089 CPP C preprocessor
1090 CXX C++ compiler command
1091 CXXFLAGS C++ compiler flags
1092 CXXCPP C++ preprocessor
a848cd7e
SC
1093
1094Use these variables to override the choices made by `configure' or to help
1095it to find libraries and programs with nonstandard names/locations.
1096
77ffb593 1097Report bugs to <wx-dev@lists.wxwidgets.org>.
a848cd7e
SC
1098_ACEOF
1099fi
1100
1101if test "$ac_init_help" = "recursive"; then
1102 # If there are subdirs, report their specific --help.
1103 ac_popdir=`pwd`
1104 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1105 test -d $ac_dir || continue
1106 ac_builddir=.
1107
1108if test "$ac_dir" != .; then
1109 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1110 # A "../" for each directory in $ac_dir_suffix.
1111 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1112else
1113 ac_dir_suffix= ac_top_builddir=
1114fi
1115
1116case $srcdir in
1117 .) # No --srcdir option. We are building in place.
1118 ac_srcdir=.
1119 if test -z "$ac_top_builddir"; then
1120 ac_top_srcdir=.
1121 else
1122 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1123 fi ;;
1124 [\\/]* | ?:[\\/]* ) # Absolute path.
1125 ac_srcdir=$srcdir$ac_dir_suffix;
1126 ac_top_srcdir=$srcdir ;;
1127 *) # Relative path.
1128 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1129 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1130esac
ac1cb8d3
VS
1131
1132# Do not use `cd foo && pwd` to compute absolute paths, because
1133# the directories may not exist.
1134case `pwd` in
1135.) ac_abs_builddir="$ac_dir";;
1136*)
1137 case "$ac_dir" in
1138 .) ac_abs_builddir=`pwd`;;
1139 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1140 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1141 esac;;
1142esac
1143case $ac_abs_builddir in
1144.) ac_abs_top_builddir=${ac_top_builddir}.;;
1145*)
1146 case ${ac_top_builddir}. in
1147 .) ac_abs_top_builddir=$ac_abs_builddir;;
1148 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1149 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1150 esac;;
1151esac
1152case $ac_abs_builddir in
1153.) ac_abs_srcdir=$ac_srcdir;;
1154*)
1155 case $ac_srcdir in
1156 .) ac_abs_srcdir=$ac_abs_builddir;;
1157 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1158 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1159 esac;;
1160esac
1161case $ac_abs_builddir in
1162.) ac_abs_top_srcdir=$ac_top_srcdir;;
1163*)
1164 case $ac_top_srcdir in
1165 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1166 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1167 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1168 esac;;
1169esac
a848cd7e
SC
1170
1171 cd $ac_dir
1172 # Check for guested configure; otherwise get Cygnus style configure.
1173 if test -f $ac_srcdir/configure.gnu; then
1174 echo
1175 $SHELL $ac_srcdir/configure.gnu --help=recursive
1176 elif test -f $ac_srcdir/configure; then
1177 echo
1178 $SHELL $ac_srcdir/configure --help=recursive
1179 elif test -f $ac_srcdir/configure.ac ||
ac1cb8d3 1180 test -f $ac_srcdir/configure.in; then
a848cd7e
SC
1181 echo
1182 $ac_configure --help
1183 else
1184 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1185 fi
17a7bf57 1186 cd "$ac_popdir"
a848cd7e
SC
1187 done
1188fi
1189
1190test -n "$ac_init_help" && exit 0
1191if $ac_init_version; then
1192 cat <<\_ACEOF
7714864e 1193wxWidgets configure 2.5.3
ac1cb8d3 1194generated by GNU Autoconf 2.59
a848cd7e 1195
ac1cb8d3 1196Copyright (C) 2003 Free Software Foundation, Inc.
a848cd7e
SC
1197This configure script is free software; the Free Software Foundation
1198gives unlimited permission to copy, distribute and modify it.
1199_ACEOF
1200 exit 0
1201fi
1202exec 5>config.log
1203cat >&5 <<_ACEOF
1204This file contains any messages produced by compilers while
1205running configure, to aid debugging if configure makes a mistake.
1206
7714864e 1207It was created by wxWidgets $as_me 2.5.3, which was
ac1cb8d3 1208generated by GNU Autoconf 2.59. Invocation command line was
a848cd7e
SC
1209
1210 $ $0 $@
1211
1212_ACEOF
1213{
1214cat <<_ASUNAME
1215## --------- ##
1216## Platform. ##
1217## --------- ##
1218
1219hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1220uname -m = `(uname -m) 2>/dev/null || echo unknown`
1221uname -r = `(uname -r) 2>/dev/null || echo unknown`
1222uname -s = `(uname -s) 2>/dev/null || echo unknown`
1223uname -v = `(uname -v) 2>/dev/null || echo unknown`
1224
1225/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1226/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1227
1228/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1229/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1230/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1231hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1232/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1233/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1234/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1235
1236_ASUNAME
1237
1238as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1239for as_dir in $PATH
1240do
1241 IFS=$as_save_IFS
1242 test -z "$as_dir" && as_dir=.
1243 echo "PATH: $as_dir"
1244done
1245
1246} >&5
1247
1248cat >&5 <<_ACEOF
1249
1250
1251## ----------- ##
1252## Core tests. ##
1253## ----------- ##
1254
1255_ACEOF
1256
1257
1258# Keep a trace of the command line.
1259# Strip out --no-create and --no-recursion so they do not pile up.
1260# Strip out --silent because we don't want to record it for future runs.
1261# Also quote any args containing shell meta-characters.
1262# Make two passes to allow for proper duplicate-argument suppression.
1263ac_configure_args=
1264ac_configure_args0=
1265ac_configure_args1=
1266ac_sep=
1267ac_must_keep_next=false
1268for ac_pass in 1 2
1269do
1270 for ac_arg
1271 do
1272 case $ac_arg in
1273 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1274 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1275 | -silent | --silent | --silen | --sile | --sil)
1276 continue ;;
1277 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1278 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1279 esac
1280 case $ac_pass in
1281 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1282 2)
1283 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1284 if test $ac_must_keep_next = true; then
ac1cb8d3 1285 ac_must_keep_next=false # Got value, back to normal.
a848cd7e 1286 else
ac1cb8d3
VS
1287 case $ac_arg in
1288 *=* | --config-cache | -C | -disable-* | --disable-* \
1289 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1290 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1291 | -with-* | --with-* | -without-* | --without-* | --x)
1292 case "$ac_configure_args0 " in
1293 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1294 esac
1295 ;;
1296 -* ) ac_must_keep_next=true ;;
1297 esac
a848cd7e
SC
1298 fi
1299 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1300 # Get rid of the leading space.
1301 ac_sep=" "
1302 ;;
1303 esac
1304 done
1305done
1306$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1307$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1308
1309# When interrupted or exit'd, cleanup temporary files, and complete
1310# config.log. We remove comments because anyway the quotes in there
1311# would cause problems or look ugly.
1312# WARNING: Be sure not to use single quotes in there, as some shells,
1313# such as our DU 5.0 friend, will then `close' the trap.
1314trap 'exit_status=$?
1315 # Save into config.log some information that might help in debugging.
1316 {
1317 echo
1318
1319 cat <<\_ASBOX
1320## ---------------- ##
1321## Cache variables. ##
1322## ---------------- ##
1323_ASBOX
1324 echo
1325 # The following way of writing the cache mishandles newlines in values,
1326{
1327 (set) 2>&1 |
1328 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1329 *ac_space=\ *)
1330 sed -n \
ac1cb8d3
VS
1331 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1332 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
a848cd7e
SC
1333 ;;
1334 *)
1335 sed -n \
ac1cb8d3 1336 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
1337 ;;
1338 esac;
1339}
1340 echo
1341
1342 cat <<\_ASBOX
1343## ----------------- ##
1344## Output variables. ##
1345## ----------------- ##
1346_ASBOX
1347 echo
1348 for ac_var in $ac_subst_vars
1349 do
1350 eval ac_val=$`echo $ac_var`
1351 echo "$ac_var='"'"'$ac_val'"'"'"
1352 done | sort
1353 echo
1354
1355 if test -n "$ac_subst_files"; then
1356 cat <<\_ASBOX
1357## ------------- ##
1358## Output files. ##
1359## ------------- ##
1360_ASBOX
1361 echo
1362 for ac_var in $ac_subst_files
1363 do
1364 eval ac_val=$`echo $ac_var`
ac1cb8d3 1365 echo "$ac_var='"'"'$ac_val'"'"'"
a848cd7e
SC
1366 done | sort
1367 echo
1368 fi
1369
1370 if test -s confdefs.h; then
1371 cat <<\_ASBOX
1372## ----------- ##
1373## confdefs.h. ##
1374## ----------- ##
1375_ASBOX
1376 echo
1377 sed "/^$/d" confdefs.h | sort
1378 echo
1379 fi
1380 test "$ac_signal" != 0 &&
1381 echo "$as_me: caught signal $ac_signal"
1382 echo "$as_me: exit $exit_status"
1383 } >&5
ac1cb8d3 1384 rm -f core *.core &&
a848cd7e
SC
1385 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1386 exit $exit_status
1387 ' 0
1388for ac_signal in 1 2 13 15; do
1389 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1390done
1391ac_signal=0
1392
1393# confdefs.h avoids OS command line length limits that DEFS can exceed.
1394rm -rf conftest* confdefs.h
1395# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1396echo >confdefs.h
1397
1398# Predefined preprocessor variables.
1399
1400cat >>confdefs.h <<_ACEOF
1401#define PACKAGE_NAME "$PACKAGE_NAME"
1402_ACEOF
1403
1404
1405cat >>confdefs.h <<_ACEOF
1406#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1407_ACEOF
1408
1409
1410cat >>confdefs.h <<_ACEOF
1411#define PACKAGE_VERSION "$PACKAGE_VERSION"
1412_ACEOF
1413
1414
1415cat >>confdefs.h <<_ACEOF
1416#define PACKAGE_STRING "$PACKAGE_STRING"
1417_ACEOF
1418
1419
1420cat >>confdefs.h <<_ACEOF
1421#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1422_ACEOF
1423
1424
1425# Let the site file select an alternate cache file if it wants to.
1426# Prefer explicitly selected file to automatically selected ones.
1427if test -z "$CONFIG_SITE"; then
1428 if test "x$prefix" != xNONE; then
1429 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1430 else
1431 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1432 fi
1433fi
1434for ac_site_file in $CONFIG_SITE; do
1435 if test -r "$ac_site_file"; then
1436 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1437echo "$as_me: loading site script $ac_site_file" >&6;}
1438 sed 's/^/| /' "$ac_site_file" >&5
1439 . "$ac_site_file"
1440 fi
1441done
1442
1443if test -r "$cache_file"; then
1444 # Some versions of bash will fail to source /dev/null (special
1445 # files actually), so we avoid doing that.
1446 if test -f "$cache_file"; then
1447 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1448echo "$as_me: loading cache $cache_file" >&6;}
1449 case $cache_file in
1450 [\\/]* | ?:[\\/]* ) . $cache_file;;
1451 *) . ./$cache_file;;
1452 esac
1453 fi
1454else
1455 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1456echo "$as_me: creating cache $cache_file" >&6;}
1457 >$cache_file
1458fi
1459
1460# Check that the precious variables saved in the cache have kept the same
1461# value.
1462ac_cache_corrupted=false
1463for ac_var in `(set) 2>&1 |
ac1cb8d3 1464 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
a848cd7e
SC
1465 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1466 eval ac_new_set=\$ac_env_${ac_var}_set
1467 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1468 eval ac_new_val="\$ac_env_${ac_var}_value"
1469 case $ac_old_set,$ac_new_set in
1470 set,)
1471 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1472echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1473 ac_cache_corrupted=: ;;
1474 ,set)
1475 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1476echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1477 ac_cache_corrupted=: ;;
1478 ,);;
1479 *)
1480 if test "x$ac_old_val" != "x$ac_new_val"; then
ac1cb8d3 1481 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
a848cd7e 1482echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
ac1cb8d3 1483 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
a848cd7e 1484echo "$as_me: former value: $ac_old_val" >&2;}
ac1cb8d3 1485 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
a848cd7e 1486echo "$as_me: current value: $ac_new_val" >&2;}
ac1cb8d3 1487 ac_cache_corrupted=:
a848cd7e
SC
1488 fi;;
1489 esac
1490 # Pass precious variables to config.status.
1491 if test "$ac_new_set" = set; then
1492 case $ac_new_val in
1493 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1494 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1495 *) ac_arg=$ac_var=$ac_new_val ;;
1496 esac
1497 case " $ac_configure_args " in
1498 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1499 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1500 esac
1501 fi
1502done
1503if $ac_cache_corrupted; then
1504 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1505echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1506 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1507echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1508 { (exit 1); exit 1; }; }
1509fi
1510
1511ac_ext=c
1512ac_cpp='$CPP $CPPFLAGS'
1513ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1514ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1515ac_compiler_gnu=$ac_cv_c_compiler_gnu
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546ac_aux_dir=
1547for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1548 if test -f $ac_dir/install-sh; then
1549 ac_aux_dir=$ac_dir
1550 ac_install_sh="$ac_aux_dir/install-sh -c"
1551 break
1552 elif test -f $ac_dir/install.sh; then
1553 ac_aux_dir=$ac_dir
1554 ac_install_sh="$ac_aux_dir/install.sh -c"
1555 break
1556 elif test -f $ac_dir/shtool; then
1557 ac_aux_dir=$ac_dir
1558 ac_install_sh="$ac_aux_dir/shtool install -c"
1559 break
1560 fi
1561done
1562if test -z "$ac_aux_dir"; then
1563 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1564echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1565 { (exit 1); exit 1; }; }
1566fi
1567ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1568ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1569ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1570
1571# Make sure we can run config.sub.
1572$ac_config_sub sun4 >/dev/null 2>&1 ||
1573 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1574echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1575 { (exit 1); exit 1; }; }
1576
1577echo "$as_me:$LINENO: checking build system type" >&5
1578echo $ECHO_N "checking build system type... $ECHO_C" >&6
1579if test "${ac_cv_build+set}" = set; then
1580 echo $ECHO_N "(cached) $ECHO_C" >&6
1581else
1582 ac_cv_build_alias=$build_alias
1583test -z "$ac_cv_build_alias" &&
1584 ac_cv_build_alias=`$ac_config_guess`
1585test -z "$ac_cv_build_alias" &&
1586 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1587echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1588 { (exit 1); exit 1; }; }
1589ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1590 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1591echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1592 { (exit 1); exit 1; }; }
1593
1594fi
1595echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1596echo "${ECHO_T}$ac_cv_build" >&6
1597build=$ac_cv_build
1598build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1599build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1600build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1601
1602
1603echo "$as_me:$LINENO: checking host system type" >&5
1604echo $ECHO_N "checking host system type... $ECHO_C" >&6
1605if test "${ac_cv_host+set}" = set; then
1606 echo $ECHO_N "(cached) $ECHO_C" >&6
1607else
1608 ac_cv_host_alias=$host_alias
1609test -z "$ac_cv_host_alias" &&
1610 ac_cv_host_alias=$ac_cv_build_alias
1611ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1612 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1613echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1614 { (exit 1); exit 1; }; }
1615
1616fi
1617echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1618echo "${ECHO_T}$ac_cv_host" >&6
1619host=$ac_cv_host
1620host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1621host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1622host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1623
1624
1625echo "$as_me:$LINENO: checking target system type" >&5
1626echo $ECHO_N "checking target system type... $ECHO_C" >&6
1627if test "${ac_cv_target+set}" = set; then
1628 echo $ECHO_N "(cached) $ECHO_C" >&6
1629else
1630 ac_cv_target_alias=$target_alias
1631test "x$ac_cv_target_alias" = "x" &&
1632 ac_cv_target_alias=$ac_cv_host_alias
1633ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1634 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1635echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1636 { (exit 1); exit 1; }; }
1637
1638fi
1639echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1640echo "${ECHO_T}$ac_cv_target" >&6
1641target=$ac_cv_target
1642target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1643target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1644target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1645
1646
1647# The aliases save the names the user supplied, while $host etc.
1648# will get canonicalized.
1649test -n "$target_alias" &&
1650 test "$program_prefix$program_suffix$program_transform_name" = \
1651 NONENONEs,x,x, &&
1652 program_prefix=${target_alias}-
1653
1654
1655
ceec2216
RL
1656wx_major_version_number=2
1657wx_minor_version_number=5
7714864e 1658wx_release_number=3
2cbbc68d 1659wx_subrelease_number=2
a848cd7e 1660
ceec2216
RL
1661WX_RELEASE=$wx_major_version_number.$wx_minor_version_number
1662WX_VERSION=$WX_RELEASE.$wx_release_number
1663WX_SUBVERSION=$WX_VERSION.$wx_subrelease_number
a848cd7e 1664
ceec2216 1665WX_MSW_VERSION=$wx_major_version_number$wx_minor_version_number$wx_release_number
a848cd7e 1666
78a9e10d 1667WX_CURRENT=4
a848cd7e 1668WX_REVISION=0
78a9e10d 1669WX_AGE=1
a848cd7e
SC
1670
1671
1672
1673USE_UNIX=1
1674USE_OS2=0
1675USE_WIN32=0
1676USE_DOS=0
1677USE_BEOS=0
1678USE_MAC=0
1679
1680USE_AIX=
1681USE_BSD= USE_DARWIN= USE_FREEBSD=
1682USE_GNU= USE_HPUX=
1683USE_LINUX=
1684USE_NETBSD=
1685USE_OPENBSD=
1686USE_OSF= USE_SGI=
1687USE_SOLARIS= USE_SUN= USE_SUNOS= USE_SVR4= USE_SYSV= USE_VMS=
1688USE_ULTRIX=
1689USE_UNIXWARE=
1690
1691USE_ALPHA=
1692
1693NEEDS_D_REENTRANT_FOR_R_FUNCS=0
1694
1695ALL_TOOLKITS="COCOA GTK MAC MGL MICROWIN MOTIF MSW PM X11"
1696
1697DEFAULT_wxUSE_COCOA=0
1698DEFAULT_wxUSE_GTK=0
1699DEFAULT_wxUSE_MAC=0
1700DEFAULT_wxUSE_MGL=0
1701DEFAULT_wxUSE_MICROWIN=0
1702DEFAULT_wxUSE_MOTIF=0
1703DEFAULT_wxUSE_MSW=0
1704DEFAULT_wxUSE_PM=0
1705DEFAULT_wxUSE_X11=0
1706
1707DEFAULT_DEFAULT_wxUSE_COCOA=0
1708DEFAULT_DEFAULT_wxUSE_GTK=0
1709DEFAULT_DEFAULT_wxUSE_MAC=0
1710DEFAULT_DEFAULT_wxUSE_MGL=0
1711DEFAULT_DEFAULT_wxUSE_MICROWIN=0
1712DEFAULT_DEFAULT_wxUSE_MOTIF=0
1713DEFAULT_DEFAULT_wxUSE_MSW=0
1714DEFAULT_DEFAULT_wxUSE_PM=0
1715DEFAULT_DEFAULT_wxUSE_X11=0
1716
1717PROGRAM_EXT=
1718SO_SUFFIX=so
1719SAMPLES_RPATH_FLAG=
1720SAMPLES_RPATH_POSTLINK=
1721
1722case "${host}" in
1723 *-hp-hpux* )
1724 USE_HPUX=1
1725 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1726 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1727 SO_SUFFIX=sl
1728 cat >>confdefs.h <<\_ACEOF
1729#define __HPUX__ 1
1730_ACEOF
1731
1732 ;;
1733 *-*-linux* )
1734 USE_LINUX=1
1735 cat >>confdefs.h <<\_ACEOF
1736#define __LINUX__ 1
1737_ACEOF
1738
1739 TMP=`uname -m`
1740 if test "x$TMP" = "xalpha"; then
1741 USE_ALPHA=1
1742 cat >>confdefs.h <<\_ACEOF
1743#define __ALPHA__ 1
1744_ACEOF
1745
1746 fi
1747 DEFAULT_DEFAULT_wxUSE_GTK=1
1748 ;;
1749 *-*-gnu* | *-*-k*bsd*-gnu )
1750 USE_GNU=1
1751 TMP=`uname -m`
1752 if test "x$TMP" = "xalpha"; then
1753 USE_ALPHA=1
1754 cat >>confdefs.h <<\_ACEOF
1755#define __ALPHA__ 1
1756_ACEOF
1757
1758 fi
1759 DEFAULT_DEFAULT_wxUSE_GTK=1
1760 ;;
1761 *-*-irix5* | *-*-irix6* )
1762 USE_SGI=1
1763 USE_SVR4=1
1764 cat >>confdefs.h <<\_ACEOF
1765#define __SGI__ 1
1766_ACEOF
1767
1768 cat >>confdefs.h <<\_ACEOF
1769#define __SVR4__ 1
1770_ACEOF
1771
1772 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1773 ;;
1774 *-*-solaris2* )
1775 USE_SUN=1
1776 USE_SOLARIS=1
1777 USE_SVR4=1
1778 cat >>confdefs.h <<\_ACEOF
1779#define __SUN__ 1
1780_ACEOF
1781
1782 cat >>confdefs.h <<\_ACEOF
1783#define __SOLARIS__ 1
1784_ACEOF
1785
1786 cat >>confdefs.h <<\_ACEOF
1787#define __SVR4__ 1
1788_ACEOF
1789
1790 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1791 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1792 ;;
1793 *-*-sunos4* )
1794 USE_SUN=1
1795 USE_SUNOS=1
1796 USE_BSD=1
1797 cat >>confdefs.h <<\_ACEOF
1798#define __SUN__ 1
1799_ACEOF
1800
1801 cat >>confdefs.h <<\_ACEOF
1802#define __SUNOS__ 1
1803_ACEOF
1804
1805 cat >>confdefs.h <<\_ACEOF
1806#define __BSD__ 1
1807_ACEOF
1808
1809 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1810 ;;
1811 *-*-freebsd*)
1812 USE_BSD=1
1813 USE_FREEBSD=1
1814 cat >>confdefs.h <<\_ACEOF
1815#define __FREEBSD__ 1
1816_ACEOF
1817
1818 cat >>confdefs.h <<\_ACEOF
1819#define __BSD__ 1
1820_ACEOF
1821
1822 DEFAULT_DEFAULT_wxUSE_GTK=1
1823 ;;
1824 *-*-openbsd*)
1825 USE_BSD=1
1826 USE_OPENBSD=1
1827 cat >>confdefs.h <<\_ACEOF
1828#define __OPENBSD__ 1
1829_ACEOF
1830
1831 cat >>confdefs.h <<\_ACEOF
1832#define __BSD__ 1
1833_ACEOF
1834
1835 DEFAULT_DEFAULT_wxUSE_GTK=1
1836 ;;
1837 *-*-netbsd*)
1838 USE_BSD=1
1839 USE_NETBSD=1
1840 cat >>confdefs.h <<\_ACEOF
1841#define __NETBSD__ 1
1842_ACEOF
1843
1844 cat >>confdefs.h <<\_ACEOF
1845#define __BSD__ 1
1846_ACEOF
1847
1848 DEFAULT_DEFAULT_wxUSE_GTK=1
1849 ;;
1850 *-*-osf* )
1851 USE_ALPHA=1
1852 USE_OSF=1
1853 cat >>confdefs.h <<\_ACEOF
1854#define __ALPHA__ 1
1855_ACEOF
1856
1857 cat >>confdefs.h <<\_ACEOF
1858#define __OSF__ 1
1859_ACEOF
1860
1861 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1862 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1863 ;;
1864 *-*-dgux5* )
1865 USE_ALPHA=1
1866 USE_SVR4=1
1867 cat >>confdefs.h <<\_ACEOF
1868#define __ALPHA__ 1
1869_ACEOF
1870
1871 cat >>confdefs.h <<\_ACEOF
1872#define __SVR4__ 1
1873_ACEOF
1874
1875 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1876 ;;
1877 *-*-sysv5* )
1878 USE_SYSV=1
1879 USE_SVR4=1
1880 cat >>confdefs.h <<\_ACEOF
1881#define __SYSV__ 1
1882_ACEOF
1883
1884 cat >>confdefs.h <<\_ACEOF
1885#define __SVR4__ 1
1886_ACEOF
1887
1888 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1889 ;;
1890 *-*-aix* )
1891 USE_AIX=1
1892 USE_SYSV=1
1893 USE_SVR4=1
1894 SO_SUFFIX=a
1895 cat >>confdefs.h <<\_ACEOF
1896#define __AIX__ 1
1897_ACEOF
1898
1899 cat >>confdefs.h <<\_ACEOF
1900#define __SYSV__ 1
1901_ACEOF
1902
1903 cat >>confdefs.h <<\_ACEOF
1904#define __SVR4__ 1
1905_ACEOF
1906
1907 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1908 ;;
1909
1910 *-*-*UnixWare*)
1911 USE_SYSV=1
1912 USE_SVR4=1
1913 USE_UNIXWARE=1
1914 cat >>confdefs.h <<\_ACEOF
1915#define __UNIXWARE__ 1
1916_ACEOF
1917
1918 ;;
1919
1920 *-*-cygwin* | *-*-mingw32* )
1921 SO_SUFFIX=dll
1922 PROGRAM_EXT=".exe"
1923 RESCOMP=windres
1924 DEFAULT_DEFAULT_wxUSE_MSW=1
1925 ;;
1926
1927 *-pc-msdosdjgpp )
1928 USE_UNIX=0
1929 USE_DOS=1
1930 cat >>confdefs.h <<\_ACEOF
1931#define __DOS__ 1
1932_ACEOF
1933
1934 PROGRAM_EXT=".exe"
1935 DEFAULT_DEFAULT_wxUSE_MGL=1
1936 LIBS="$LIBS -lstdc++"
1937 ;;
1938
1939 *-pc-os2_emx | *-pc-os2-emx )
1940 cat >>confdefs.h <<\_ACEOF
1941#define __EMX__ 1
1942_ACEOF
1943
1944 USE_OS2=1
1945 cat >>confdefs.h <<\_ACEOF
1946#define __OS2__ 1
1947_ACEOF
1948
1949 PROGRAM_EXT=".exe"
1950 DEFAULT_DEFAULT_wxUSE_PM=1
1951 CXX=gcc
1952 LDFLAGS="$LDFLAGS -Zcrtdll"
1953 ac_executable_extensions=".exe"
1954 export ac_executable_extensions
1955 ac_save_IFS="$IFS"
1956 IFS='\\'
1957 ac_TEMP_PATH=
1958 for ac_dir in $PATH; do
1959 IFS=$ac_save_IFS
1960 if test -z "$ac_TEMP_PATH"; then
1961 ac_TEMP_PATH="$ac_dir"
1962 else
1963 ac_TEMP_PATH="$ac_TEMP_PATH/$ac_dir"
1964 fi
1965 done
1966 export PATH="$ac_TEMP_PATH"
1967 unset ac_TEMP_PATH
1968 ;;
1969
1970 powerpc-*-darwin* )
1971 USE_BSD=1
1972 USE_DARWIN=1
1973 SO_SUFFIX=dylib
1974 cat >>confdefs.h <<\_ACEOF
1975#define __BSD__ 1
1976_ACEOF
1977
1978 cat >>confdefs.h <<\_ACEOF
1979#define __DARWIN__ 1
1980_ACEOF
1981
1982 cat >>confdefs.h <<\_ACEOF
1983#define __POWERPC__ 1
1984_ACEOF
1985
1986 cat >>confdefs.h <<\_ACEOF
1987#define TARGET_CARBON 1
1988_ACEOF
1989
1990 DEFAULT_DEFAULT_wxUSE_MAC=1
1991 ;;
1992
1993 *-*-beos* )
1994 USE_BEOS=1
1995 cat >>confdefs.h <<\_ACEOF
1996#define __BEOS__ 1
1997_ACEOF
1998
1999 ;;
2000
2001 *)
2002 { { echo "$as_me:$LINENO: error: unknown system type ${host}." >&5
2003echo "$as_me: error: unknown system type ${host}." >&2;}
2004 { (exit 1); exit 1; }; }
2005esac
2006
2007
2008
2009
2010 wx_arg_cache_file="configarg.cache"
2011 echo "loading argument cache $wx_arg_cache_file"
2012 rm -f ${wx_arg_cache_file}.tmp
2013 touch ${wx_arg_cache_file}.tmp
2014 touch ${wx_arg_cache_file}
2015
2016
2017DEBUG_CONFIGURE=0
2018if test $DEBUG_CONFIGURE = 1; then
2019 DEFAULT_wxUSE_UNIVERSAL=no
2020 DEFAULT_wxUSE_STL=no
2021
2022 DEFAULT_wxUSE_NANOX=no
2023
2024 DEFAULT_wxUSE_THREADS=yes
2025
2026 DEFAULT_wxUSE_SHARED=yes
2027 DEFAULT_wxUSE_OPTIMISE=no
2028 DEFAULT_wxUSE_PROFILE=no
2029 DEFAULT_wxUSE_NO_DEPS=no
2030 DEFAULT_wxUSE_NO_RTTI=no
2031 DEFAULT_wxUSE_NO_EXCEPTIONS=no
ffa0583f 2032 DEFAULT_wxUSE_RPATH=yes
a848cd7e
SC
2033 DEFAULT_wxUSE_PERMISSIVE=no
2034 DEFAULT_wxUSE_DEBUG_FLAG=yes
2035 DEFAULT_wxUSE_DEBUG_INFO=yes
2036 DEFAULT_wxUSE_DEBUG_GDB=yes
2037 DEFAULT_wxUSE_MEM_TRACING=no
2038 DEFAULT_wxUSE_DEBUG_CONTEXT=no
2039 DEFAULT_wxUSE_DMALLOC=no
2040 DEFAULT_wxUSE_APPLE_IEEE=no
2041
2042 DEFAULT_wxUSE_EXCEPTIONS=no
2043 DEFAULT_wxUSE_LOG=yes
2044 DEFAULT_wxUSE_LOGWINDOW=no
2045 DEFAULT_wxUSE_LOGGUI=no
2046 DEFAULT_wxUSE_LOGDIALOG=no
2047
2048 DEFAULT_wxUSE_GUI=yes
2049 DEFAULT_wxUSE_CONTROLS=no
2050
2051 DEFAULT_wxUSE_REGEX=no
2052 DEFAULT_wxUSE_XML=no
2053 DEFAULT_wxUSE_EXPAT=no
2054 DEFAULT_wxUSE_ZLIB=no
2055 DEFAULT_wxUSE_LIBPNG=no
2056 DEFAULT_wxUSE_LIBJPEG=no
2057 DEFAULT_wxUSE_LIBTIFF=no
2058 DEFAULT_wxUSE_LIBXPM=no
2059 DEFAULT_wxUSE_LIBMSPACK=no
2060 DEFAULT_wxUSE_LIBSDL=no
d1c38808 2061 DEFAULT_wxUSE_LIBGNOMEPRINT=no
a848cd7e
SC
2062 DEFAULT_wxUSE_ODBC=no
2063 DEFAULT_wxUSE_OPENGL=no
2064
2065 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=no
2066 DEFAULT_wxUSE_SNGLINST_CHECKER=no
2067 DEFAULT_wxUSE_STD_IOSTREAM=no
2068 DEFAULT_wxUSE_CMDLINE_PARSER=no
2069 DEFAULT_wxUSE_DATETIME=no
2070 DEFAULT_wxUSE_TIMER=no
2071 DEFAULT_wxUSE_STOPWATCH=no
2072 DEFAULT_wxUSE_FILE=no
2073 DEFAULT_wxUSE_FFILE=no
2074 DEFAULT_wxUSE_TEXTBUFFER=no
2075 DEFAULT_wxUSE_TEXTFILE=no
2076 DEFAULT_wxUSE_SOUND=no
3b57de8b
RL
2077 DEFAULT_wxUSE_MEDIACTRL=no
2078 DEFAULT_wxUSE_DIRECTSHOW=no
a848cd7e
SC
2079 DEFAULT_wxUSE_INTL=no
2080 DEFAULT_wxUSE_CONFIG=no
2081 DEFAULT_wxUSE_FONTMAP=no
2082 DEFAULT_wxUSE_STREAMS=no
2083 DEFAULT_wxUSE_SOCKETS=no
2084 DEFAULT_wxUSE_OLE=no
2085 DEFAULT_wxUSE_DATAOBJ=no
2086 DEFAULT_wxUSE_DIALUP_MANAGER=no
2087 DEFAULT_wxUSE_JOYSTICK=no
2088 DEFAULT_wxUSE_DYNLIB_CLASS=no
2089 DEFAULT_wxUSE_DYNAMIC_LOADER=no
2090 DEFAULT_wxUSE_LONGLONG=no
2091 DEFAULT_wxUSE_GEOMETRY=no
2092
2093 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no
2094 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no
2095 DEFAULT_wxUSE_POSTSCRIPT=no
2096
2097 DEFAULT_wxUSE_CLIPBOARD=no
2098 DEFAULT_wxUSE_TOOLTIPS=no
2099 DEFAULT_wxUSE_DRAG_AND_DROP=no
2100 DEFAULT_wxUSE_DRAGIMAGE=no
2101 DEFAULT_wxUSE_SPLINES=no
2102
8a7b1113 2103 DEFAULT_wxUSE_MDI=no
a848cd7e
SC
2104 DEFAULT_wxUSE_MDI_ARCHITECTURE=no
2105 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no
2106 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no
2107
2108 DEFAULT_wxUSE_RESOURCES=no
2109 DEFAULT_wxUSE_CONSTRAINTS=no
2110 DEFAULT_wxUSE_IPC=no
2111 DEFAULT_wxUSE_HELP=no
2112 DEFAULT_wxUSE_MS_HTML_HELP=no
2113 DEFAULT_wxUSE_WXHTML_HELP=no
2114 DEFAULT_wxUSE_TREELAYOUT=no
2115 DEFAULT_wxUSE_METAFILE=no
2116 DEFAULT_wxUSE_MIMETYPE=no
2117 DEFAULT_wxUSE_SYSTEM_OPTIONS=no
2118 DEFAULT_wxUSE_PROTOCOL=no
2119 DEFAULT_wxUSE_PROTOCOL_HTTP=no
2120 DEFAULT_wxUSE_PROTOCOL_FTP=no
2121 DEFAULT_wxUSE_PROTOCOL_FILE=no
2122 DEFAULT_wxUSE_URL=no
2123
2124 DEFAULT_wxUSE_COMMONDLGS=no
2125 DEFAULT_wxUSE_CHOICEDLG=no
2126 DEFAULT_wxUSE_COLOURDLG=no
2127 DEFAULT_wxUSE_DIRDLG=no
2128 DEFAULT_wxUSE_FILEDLG=no
2129 DEFAULT_wxUSE_FINDREPLDLG=no
2130 DEFAULT_wxUSE_FONTDLG=no
2131 DEFAULT_wxUSE_MSGDLG=no
2132 DEFAULT_wxUSE_NUMBERDLG=no
2133 DEFAULT_wxUSE_TEXTDLG=no
2134 DEFAULT_wxUSE_SPLASH=no
2135 DEFAULT_wxUSE_STARTUP_TIPS=no
2136 DEFAULT_wxUSE_PROGRESSDLG=no
2137 DEFAULT_wxUSE_WIZARDDLG=no
2138
2139 DEFAULT_wxUSE_MENUS=no
2140 DEFAULT_wxUSE_MINIFRAME=no
2141 DEFAULT_wxUSE_HTML=no
9a8f0513 2142 DEFAULT_wxUSE_XRC=no
646b6ec1 2143 DEFAULT_wxUSE_WEBKIT=no
a848cd7e
SC
2144 DEFAULT_wxUSE_FILESYSTEM=no
2145 DEFAULT_wxUSE_FS_INET=no
2146 DEFAULT_wxUSE_FS_ZIP=no
2147 DEFAULT_wxUSE_BUSYINFO=no
2148 DEFAULT_wxUSE_ZIPSTREAM=no
a848cd7e
SC
2149 DEFAULT_wxUSE_VALIDATORS=no
2150
2151 DEFAULT_wxUSE_ACCEL=no
2152 DEFAULT_wxUSE_BUTTON=no
2153 DEFAULT_wxUSE_BMPBUTTON=no
2154 DEFAULT_wxUSE_CALCTRL=no
2155 DEFAULT_wxUSE_CARET=no
2156 DEFAULT_wxUSE_CHECKBOX=no
2157 DEFAULT_wxUSE_CHECKLST=no
2158 DEFAULT_wxUSE_CHOICE=no
92bbdbcd 2159 DEFAULT_wxUSE_CHOICEBOOK=no
a848cd7e
SC
2160 DEFAULT_wxUSE_COMBOBOX=no
2161 DEFAULT_wxUSE_DISPLAY=no
2162 DEFAULT_wxUSE_GAUGE=no
2163 DEFAULT_wxUSE_GRID=no
2164 DEFAULT_wxUSE_IMAGLIST=no
2165 DEFAULT_wxUSE_LISTBOOK=no
2166 DEFAULT_wxUSE_LISTBOX=no
2167 DEFAULT_wxUSE_LISTCTRL=no
2168 DEFAULT_wxUSE_NOTEBOOK=no
2169 DEFAULT_wxUSE_RADIOBOX=no
2170 DEFAULT_wxUSE_RADIOBTN=no
2171 DEFAULT_wxUSE_SASH=no
2172 DEFAULT_wxUSE_SCROLLBAR=no
2173 DEFAULT_wxUSE_SLIDER=no
2174 DEFAULT_wxUSE_SPINBTN=no
2175 DEFAULT_wxUSE_SPINCTRL=no
2176 DEFAULT_wxUSE_SPLITTER=no
2177 DEFAULT_wxUSE_STATBMP=no
2178 DEFAULT_wxUSE_STATBOX=no
2179 DEFAULT_wxUSE_STATLINE=no
2180 DEFAULT_wxUSE_STATTEXT=no
2181 DEFAULT_wxUSE_STATUSBAR=yes
2182 DEFAULT_wxUSE_TABDIALOG=no
2183 DEFAULT_wxUSE_TEXTCTRL=no
2184 DEFAULT_wxUSE_TOGGLEBTN=no
2185 DEFAULT_wxUSE_TOOLBAR=no
2186 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
2187 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
2188 DEFAULT_wxUSE_TREECTRL=no
2189 DEFAULT_wxUSE_POPUPWIN=no
2190 DEFAULT_wxUSE_TIPWINDOW=no
2191
2192 DEFAULT_wxUSE_UNICODE=no
2193 DEFAULT_wxUSE_UNICODE_MSLU=no
2194 DEFAULT_wxUSE_WCSRTOMBS=no
2195
2196 DEFAULT_wxUSE_PALETTE=no
2197 DEFAULT_wxUSE_IMAGE=no
2198 DEFAULT_wxUSE_GIF=no
2199 DEFAULT_wxUSE_PCX=no
2200 DEFAULT_wxUSE_PNM=no
2201 DEFAULT_wxUSE_IFF=no
2202 DEFAULT_wxUSE_XPM=no
2203 DEFAULT_wxUSE_ICO_CUR=no
2204 DEFAULT_wxUSE_ACCESSIBILITY=no
2205
2206 DEFAULT_wxUSE_MONOLITHIC=no
2207 DEFAULT_wxUSE_PLUGINS=no
2208 DEFAULT_wxUSE_OFFICIAL_BUILD=no
2209else
2210 DEFAULT_wxUSE_UNIVERSAL=no
2211 DEFAULT_wxUSE_STL=no
2212
2213 DEFAULT_wxUSE_NANOX=no
2214
2215 DEFAULT_wxUSE_THREADS=yes
2216
2217 DEFAULT_wxUSE_SHARED=yes
2218 DEFAULT_wxUSE_OPTIMISE=yes
2219 DEFAULT_wxUSE_PROFILE=no
2220 DEFAULT_wxUSE_NO_DEPS=no
2221 DEFAULT_wxUSE_NO_RTTI=no
2222 DEFAULT_wxUSE_NO_EXCEPTIONS=no
ffa0583f 2223 DEFAULT_wxUSE_RPATH=yes
a848cd7e
SC
2224 DEFAULT_wxUSE_PERMISSIVE=no
2225 DEFAULT_wxUSE_DEBUG_FLAG=no
2226 DEFAULT_wxUSE_DEBUG_INFO=no
2227 DEFAULT_wxUSE_DEBUG_GDB=no
2228 DEFAULT_wxUSE_MEM_TRACING=no
2229 DEFAULT_wxUSE_DEBUG_CONTEXT=no
2230 DEFAULT_wxUSE_DMALLOC=no
2231 DEFAULT_wxUSE_APPLE_IEEE=yes
2232
2233 DEFAULT_wxUSE_EXCEPTIONS=yes
2234 DEFAULT_wxUSE_LOG=yes
2235 DEFAULT_wxUSE_LOGWINDOW=yes
2236 DEFAULT_wxUSE_LOGGUI=yes
2237 DEFAULT_wxUSE_LOGDIALOG=yes
2238
2239 DEFAULT_wxUSE_GUI=yes
2240
2241 DEFAULT_wxUSE_REGEX=yes
2242 DEFAULT_wxUSE_XML=yes
2243 DEFAULT_wxUSE_EXPAT=yes
2244 DEFAULT_wxUSE_ZLIB=yes
2245 DEFAULT_wxUSE_LIBPNG=yes
2246 DEFAULT_wxUSE_LIBJPEG=yes
2247 DEFAULT_wxUSE_LIBTIFF=yes
2248 DEFAULT_wxUSE_LIBXPM=yes
2249 DEFAULT_wxUSE_LIBMSPACK=yes
2250 DEFAULT_wxUSE_LIBSDL=no
d1c38808 2251 DEFAULT_wxUSE_LIBGNOMEPRINT=no
a848cd7e
SC
2252 DEFAULT_wxUSE_ODBC=no
2253 DEFAULT_wxUSE_OPENGL=no
2254
2255 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=yes
2256 DEFAULT_wxUSE_SNGLINST_CHECKER=yes
2257 DEFAULT_wxUSE_STD_IOSTREAM=no
2258 DEFAULT_wxUSE_CMDLINE_PARSER=yes
2259 DEFAULT_wxUSE_DATETIME=yes
2260 DEFAULT_wxUSE_TIMER=yes
2261 DEFAULT_wxUSE_STOPWATCH=yes
2262 DEFAULT_wxUSE_FILE=yes
2263 DEFAULT_wxUSE_FFILE=yes
2264 DEFAULT_wxUSE_TEXTBUFFER=yes
2265 DEFAULT_wxUSE_TEXTFILE=yes
2266 DEFAULT_wxUSE_SOUND=yes
3b57de8b
RL
2267 DEFAULT_wxUSE_MEDIACTRL=no
2268 DEFAULT_wxUSE_DIRECTSHOW=no
a848cd7e
SC
2269 DEFAULT_wxUSE_INTL=yes
2270 DEFAULT_wxUSE_CONFIG=yes
2271 DEFAULT_wxUSE_FONTMAP=yes
2272 DEFAULT_wxUSE_STREAMS=yes
2273 DEFAULT_wxUSE_SOCKETS=yes
2274 DEFAULT_wxUSE_OLE=yes
2275 DEFAULT_wxUSE_DATAOBJ=yes
2276 DEFAULT_wxUSE_DIALUP_MANAGER=yes
2277 DEFAULT_wxUSE_JOYSTICK=yes
2278 DEFAULT_wxUSE_DYNLIB_CLASS=yes
2279 DEFAULT_wxUSE_DYNAMIC_LOADER=yes
2280 DEFAULT_wxUSE_LONGLONG=yes
2281 DEFAULT_wxUSE_GEOMETRY=yes
2282
2283 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes
2284 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes
2285 DEFAULT_wxUSE_POSTSCRIPT=yes
2286
2287 DEFAULT_wxUSE_CLIPBOARD=yes
2288 DEFAULT_wxUSE_TOOLTIPS=yes
2289 DEFAULT_wxUSE_DRAG_AND_DROP=yes
2290 DEFAULT_wxUSE_DRAGIMAGE=yes
2291 DEFAULT_wxUSE_SPLINES=yes
2292
8a7b1113 2293 DEFAULT_wxUSE_MDI=yes
a848cd7e
SC
2294 DEFAULT_wxUSE_MDI_ARCHITECTURE=yes
2295 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes
2296 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes
2297
2298 DEFAULT_wxUSE_RESOURCES=no
2299 DEFAULT_wxUSE_CONSTRAINTS=yes
2300 DEFAULT_wxUSE_IPC=yes
2301 DEFAULT_wxUSE_HELP=yes
2302 DEFAULT_wxUSE_MS_HTML_HELP=yes
2303 DEFAULT_wxUSE_WXHTML_HELP=yes
2304 DEFAULT_wxUSE_TREELAYOUT=yes
2305 DEFAULT_wxUSE_METAFILE=yes
2306 DEFAULT_wxUSE_MIMETYPE=yes
2307 DEFAULT_wxUSE_SYSTEM_OPTIONS=yes
2308 DEFAULT_wxUSE_PROTOCOL=yes
2309 DEFAULT_wxUSE_PROTOCOL_HTTP=yes
2310 DEFAULT_wxUSE_PROTOCOL_FTP=yes
2311 DEFAULT_wxUSE_PROTOCOL_FILE=yes
2312 DEFAULT_wxUSE_URL=yes
2313
2314 DEFAULT_wxUSE_COMMONDLGS=yes
2315 DEFAULT_wxUSE_CHOICEDLG=yes
2316 DEFAULT_wxUSE_COLOURDLG=yes
2317 DEFAULT_wxUSE_DIRDLG=yes
2318 DEFAULT_wxUSE_FILEDLG=yes
2319 DEFAULT_wxUSE_FINDREPLDLG=yes
2320 DEFAULT_wxUSE_FONTDLG=yes
2321 DEFAULT_wxUSE_MSGDLG=yes
2322 DEFAULT_wxUSE_NUMBERDLG=yes
2323 DEFAULT_wxUSE_TEXTDLG=yes
2324 DEFAULT_wxUSE_SPLASH=yes
2325 DEFAULT_wxUSE_STARTUP_TIPS=yes
2326 DEFAULT_wxUSE_PROGRESSDLG=yes
2327 DEFAULT_wxUSE_WIZARDDLG=yes
2328
2329 DEFAULT_wxUSE_MENUS=yes
2330 DEFAULT_wxUSE_MINIFRAME=yes
2331 DEFAULT_wxUSE_HTML=yes
9a8f0513 2332 DEFAULT_wxUSE_XRC=yes
646b6ec1 2333 DEFAULT_wxUSE_WEBKIT=yes
a848cd7e
SC
2334 DEFAULT_wxUSE_FILESYSTEM=yes
2335 DEFAULT_wxUSE_FS_INET=yes
2336 DEFAULT_wxUSE_FS_ZIP=yes
2337 DEFAULT_wxUSE_BUSYINFO=yes
2338 DEFAULT_wxUSE_ZIPSTREAM=yes
a848cd7e
SC
2339 DEFAULT_wxUSE_VALIDATORS=yes
2340
2341 DEFAULT_wxUSE_ACCEL=yes
2342 DEFAULT_wxUSE_BUTTON=yes
2343 DEFAULT_wxUSE_BMPBUTTON=yes
2344 DEFAULT_wxUSE_CALCTRL=yes
2345 DEFAULT_wxUSE_CARET=yes
2346 DEFAULT_wxUSE_CHECKBOX=yes
2347 DEFAULT_wxUSE_CHECKLST=yes
2348 DEFAULT_wxUSE_CHOICE=yes
92bbdbcd 2349 DEFAULT_wxUSE_CHOICEBOOK=yes
a848cd7e
SC
2350 DEFAULT_wxUSE_COMBOBOX=yes
2351 DEFAULT_wxUSE_DISPLAY=yes
2352 DEFAULT_wxUSE_GAUGE=yes
2353 DEFAULT_wxUSE_GRID=yes
2354 DEFAULT_wxUSE_IMAGLIST=yes
2355 DEFAULT_wxUSE_LISTBOOK=yes
2356 DEFAULT_wxUSE_LISTBOX=yes
2357 DEFAULT_wxUSE_LISTCTRL=yes
2358 DEFAULT_wxUSE_NOTEBOOK=yes
2359 DEFAULT_wxUSE_RADIOBOX=yes
2360 DEFAULT_wxUSE_RADIOBTN=yes
2361 DEFAULT_wxUSE_SASH=yes
2362 DEFAULT_wxUSE_SCROLLBAR=yes
2363 DEFAULT_wxUSE_SLIDER=yes
2364 DEFAULT_wxUSE_SPINBTN=yes
2365 DEFAULT_wxUSE_SPINCTRL=yes
2366 DEFAULT_wxUSE_SPLITTER=yes
2367 DEFAULT_wxUSE_STATBMP=yes
2368 DEFAULT_wxUSE_STATBOX=yes
2369 DEFAULT_wxUSE_STATLINE=yes
2370 DEFAULT_wxUSE_STATTEXT=yes
2371 DEFAULT_wxUSE_STATUSBAR=yes
2372 DEFAULT_wxUSE_TABDIALOG=no
2373 DEFAULT_wxUSE_TEXTCTRL=yes
2374 DEFAULT_wxUSE_TOGGLEBTN=yes
2375 DEFAULT_wxUSE_TOOLBAR=yes
2376 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
2377 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
2378 DEFAULT_wxUSE_TREECTRL=yes
2379 DEFAULT_wxUSE_POPUPWIN=yes
2380 DEFAULT_wxUSE_TIPWINDOW=yes
2381
2382 DEFAULT_wxUSE_UNICODE=no
2383 DEFAULT_wxUSE_UNICODE_MSLU=yes
2384 DEFAULT_wxUSE_WCSRTOMBS=no
2385
2386 DEFAULT_wxUSE_PALETTE=yes
2387 DEFAULT_wxUSE_IMAGE=yes
2388 DEFAULT_wxUSE_GIF=yes
2389 DEFAULT_wxUSE_PCX=yes
2390 DEFAULT_wxUSE_IFF=no
2391 DEFAULT_wxUSE_PNM=yes
2392 DEFAULT_wxUSE_XPM=yes
2393 DEFAULT_wxUSE_ICO_CUR=yes
2394 DEFAULT_wxUSE_ACCESSIBILITY=no
2395
2396 DEFAULT_wxUSE_MONOLITHIC=no
2397 DEFAULT_wxUSE_PLUGINS=no
2398 DEFAULT_wxUSE_OFFICIAL_BUILD=no
9f45f08e
VS
2399
2400 DEFAULT_wxUSE_GTK2=yes
a848cd7e
SC
2401fi
2402
2403
2404
2405for toolkit in `echo $ALL_TOOLKITS`; do
2406 LINE=`grep "wxUSE_$toolkit=" ${wx_arg_cache_file}`
2407 if test "x$LINE" != "x" ; then
2408 has_toolkit_in_cache=1
2409 eval "DEFAULT_$LINE"
2410 eval "CACHE_$toolkit=1"
2411 fi
2412done
2413
2414
2415
2416 enablestring=
2417 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gui" >&5
2418echo $ECHO_N "checking for --${enablestring:-enable}-gui... $ECHO_C" >&6
2419 no_cache=0
2420 # Check whether --enable-gui or --disable-gui was given.
2421if test "${enable_gui+set}" = set; then
2422 enableval="$enable_gui"
2423
2424 if test "$enableval" = yes; then
2425 ac_cv_use_gui='wxUSE_GUI=yes'
2426 else
2427 ac_cv_use_gui='wxUSE_GUI=no'
2428 fi
2429
2430else
2431
2432 LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}`
2433 if test "x$LINE" != x ; then
2434 eval "DEFAULT_$LINE"
2435 else
2436 no_cache=1
2437 fi
2438
2439 ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI
2440
2441fi;
2442
2443 eval "$ac_cv_use_gui"
2444 if test "$no_cache" != 1; then
2445 echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp
2446 fi
2447
2448 if test "$wxUSE_GUI" = yes; then
2449 echo "$as_me:$LINENO: result: yes" >&5
2450echo "${ECHO_T}yes" >&6
2451 else
2452 echo "$as_me:$LINENO: result: no" >&5
2453echo "${ECHO_T}no" >&6
2454 fi
2455
2456
2457 enablestring=
2458 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-monolithic" >&5
2459echo $ECHO_N "checking for --${enablestring:-enable}-monolithic... $ECHO_C" >&6
2460 no_cache=0
2461 # Check whether --enable-monolithic or --disable-monolithic was given.
2462if test "${enable_monolithic+set}" = set; then
2463 enableval="$enable_monolithic"
2464
2465 if test "$enableval" = yes; then
2466 ac_cv_use_monolithic='wxUSE_MONOLITHIC=yes'
2467 else
2468 ac_cv_use_monolithic='wxUSE_MONOLITHIC=no'
2469 fi
2470
2471else
2472
2473 LINE=`grep "wxUSE_MONOLITHIC" ${wx_arg_cache_file}`
2474 if test "x$LINE" != x ; then
2475 eval "DEFAULT_$LINE"
2476 else
2477 no_cache=1
2478 fi
2479
2480 ac_cv_use_monolithic='wxUSE_MONOLITHIC='$DEFAULT_wxUSE_MONOLITHIC
2481
2482fi;
2483
2484 eval "$ac_cv_use_monolithic"
2485 if test "$no_cache" != 1; then
2486 echo $ac_cv_use_monolithic >> ${wx_arg_cache_file}.tmp
2487 fi
2488
2489 if test "$wxUSE_MONOLITHIC" = yes; then
2490 echo "$as_me:$LINENO: result: yes" >&5
2491echo "${ECHO_T}yes" >&6
2492 else
2493 echo "$as_me:$LINENO: result: no" >&5
2494echo "${ECHO_T}no" >&6
2495 fi
2496
2497
2498 enablestring=
2499 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-plugins" >&5
2500echo $ECHO_N "checking for --${enablestring:-enable}-plugins... $ECHO_C" >&6
2501 no_cache=0
2502 # Check whether --enable-plugins or --disable-plugins was given.
2503if test "${enable_plugins+set}" = set; then
2504 enableval="$enable_plugins"
2505
2506 if test "$enableval" = yes; then
2507 ac_cv_use_plugins='wxUSE_PLUGINS=yes'
2508 else
2509 ac_cv_use_plugins='wxUSE_PLUGINS=no'
2510 fi
2511
2512else
2513
2514 LINE=`grep "wxUSE_PLUGINS" ${wx_arg_cache_file}`
2515 if test "x$LINE" != x ; then
2516 eval "DEFAULT_$LINE"
2517 else
2518 no_cache=1
2519 fi
2520
2521 ac_cv_use_plugins='wxUSE_PLUGINS='$DEFAULT_wxUSE_PLUGINS
2522
2523fi;
2524
2525 eval "$ac_cv_use_plugins"
2526 if test "$no_cache" != 1; then
2527 echo $ac_cv_use_plugins >> ${wx_arg_cache_file}.tmp
2528 fi
2529
2530 if test "$wxUSE_PLUGINS" = yes; then
2531 echo "$as_me:$LINENO: result: yes" >&5
2532echo "${ECHO_T}yes" >&6
2533 else
2534 echo "$as_me:$LINENO: result: no" >&5
2535echo "${ECHO_T}no" >&6
2536 fi
2537
2538
2539if test "$wxUSE_GUI" = "yes"; then
2540
2541
2542 enablestring=
2543 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-universal" >&5
2544echo $ECHO_N "checking for --${enablestring:-enable}-universal... $ECHO_C" >&6
2545 no_cache=0
2546 # Check whether --enable-universal or --disable-universal was given.
2547if test "${enable_universal+set}" = set; then
2548 enableval="$enable_universal"
2549
2550 if test "$enableval" = yes; then
2551 ac_cv_use_universal='wxUSE_UNIVERSAL=yes'
2552 else
2553 ac_cv_use_universal='wxUSE_UNIVERSAL=no'
2554 fi
2555
2556else
2557
2558 LINE=`grep "wxUSE_UNIVERSAL" ${wx_arg_cache_file}`
2559 if test "x$LINE" != x ; then
2560 eval "DEFAULT_$LINE"
2561 else
2562 no_cache=1
2563 fi
2564
2565 ac_cv_use_universal='wxUSE_UNIVERSAL='$DEFAULT_wxUSE_UNIVERSAL
2566
2567fi;
2568
2569 eval "$ac_cv_use_universal"
2570 if test "$no_cache" != 1; then
2571 echo $ac_cv_use_universal >> ${wx_arg_cache_file}.tmp
2572 fi
2573
2574 if test "$wxUSE_UNIVERSAL" = yes; then
2575 echo "$as_me:$LINENO: result: yes" >&5
2576echo "${ECHO_T}yes" >&6
2577 else
2578 echo "$as_me:$LINENO: result: no" >&5
2579echo "${ECHO_T}no" >&6
2580 fi
2581
2582
2583# Check whether --with-gtk or --without-gtk was given.
2584if test "${with_gtk+set}" = set; then
2585 withval="$with_gtk"
2586 wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1
2587fi;
2588
2589# Check whether --with-motif or --without-motif was given.
2590if test "${with_motif+set}" = set; then
2591 withval="$with_motif"
2592 wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1
2593fi;
2594
2595# Check whether --with-mac or --without-mac was given.
2596if test "${with_mac+set}" = set; then
2597 withval="$with_mac"
c228d3a4 2598 wxUSE_MAC="$withval" CACHE_MAC=1 TOOLKIT_GIVEN=1
a848cd7e
SC
2599fi;
2600
2601# Check whether --with-cocoa or --without-cocoa was given.
2602if test "${with_cocoa+set}" = set; then
2603 withval="$with_cocoa"
c228d3a4 2604 wxUSE_COCOA="$withval" CACHE_COCOA=1 TOOLKIT_GIVEN=1
a848cd7e
SC
2605fi;
2606
2607# Check whether --with-wine or --without-wine was given.
2608if test "${with_wine+set}" = set; then
2609 withval="$with_wine"
2610 wxUSE_WINE="$withval" CACHE_WINE=1
2611fi;
2612
2613# Check whether --with-msw or --without-msw was given.
2614if test "${with_msw+set}" = set; then
2615 withval="$with_msw"
2616 wxUSE_MSW="$withval" CACHE_MSW=1 TOOLKIT_GIVEN=1
2617fi;
2618
2619# Check whether --with-pm or --without-pm was given.
2620if test "${with_pm+set}" = set; then
2621 withval="$with_pm"
2622 wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1
2623fi;
2624
2625# Check whether --with-mgl or --without-mgl was given.
2626if test "${with_mgl+set}" = set; then
2627 withval="$with_mgl"
2628 wxUSE_MGL="$withval" wxUSE_UNIVERSAL="yes" CACHE_MGL=1 TOOLKIT_GIVEN=1
2629fi;
2630
2631# Check whether --with-microwin or --without-microwin was given.
2632if test "${with_microwin+set}" = set; then
2633 withval="$with_microwin"
2634 wxUSE_MICROWIN="$withval" CACHE_MICROWIN=1 TOOLKIT_GIVEN=1
2635fi;
2636
2637# Check whether --with-x11 or --without-x11 was given.
2638if test "${with_x11+set}" = set; then
2639 withval="$with_x11"
2640 wxUSE_X11="$withval" wxUSE_UNIVERSAL="yes" CACHE_X11=1 TOOLKIT_GIVEN=1
2641fi;
2642
2643 enablestring=
2644 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-nanox" >&5
2645echo $ECHO_N "checking for --${enablestring:-enable}-nanox... $ECHO_C" >&6
2646 no_cache=0
2647 # Check whether --enable-nanox or --disable-nanox was given.
2648if test "${enable_nanox+set}" = set; then
2649 enableval="$enable_nanox"
2650
2651 if test "$enableval" = yes; then
2652 ac_cv_use_nanox='wxUSE_NANOX=yes'
2653 else
2654 ac_cv_use_nanox='wxUSE_NANOX=no'
2655 fi
2656
2657else
2658
2659 LINE=`grep "wxUSE_NANOX" ${wx_arg_cache_file}`
2660 if test "x$LINE" != x ; then
2661 eval "DEFAULT_$LINE"
2662 else
2663 no_cache=1
2664 fi
2665
2666 ac_cv_use_nanox='wxUSE_NANOX='$DEFAULT_wxUSE_NANOX
2667
2668fi;
2669
2670 eval "$ac_cv_use_nanox"
2671 if test "$no_cache" != 1; then
2672 echo $ac_cv_use_nanox >> ${wx_arg_cache_file}.tmp
2673 fi
2674
2675 if test "$wxUSE_NANOX" = yes; then
2676 echo "$as_me:$LINENO: result: yes" >&5
2677echo "${ECHO_T}yes" >&6
2678 else
2679 echo "$as_me:$LINENO: result: no" >&5
2680echo "${ECHO_T}no" >&6
2681 fi
2682
2683
2684
2685 enablestring=
2686 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gtk2" >&5
2687echo $ECHO_N "checking for --${enablestring:-enable}-gtk2... $ECHO_C" >&6
2688 no_cache=0
2689 # Check whether --enable-gtk2 or --disable-gtk2 was given.
2690if test "${enable_gtk2+set}" = set; then
2691 enableval="$enable_gtk2"
2692
2693 if test "$enableval" = yes; then
2694 ac_cv_use_gtk2='wxUSE_GTK2=yes'
2695 else
2696 ac_cv_use_gtk2='wxUSE_GTK2=no'
2697 fi
2698
2699else
2700
2701 LINE=`grep "wxUSE_GTK2" ${wx_arg_cache_file}`
2702 if test "x$LINE" != x ; then
2703 eval "DEFAULT_$LINE"
2704 else
2705 no_cache=1
2706 fi
2707
2708 ac_cv_use_gtk2='wxUSE_GTK2='$DEFAULT_wxUSE_GTK2
2709
2710fi;
2711
2712 eval "$ac_cv_use_gtk2"
2713 if test "$no_cache" != 1; then
2714 echo $ac_cv_use_gtk2 >> ${wx_arg_cache_file}.tmp
2715 fi
2716
2717 if test "$wxUSE_GTK2" = yes; then
2718 echo "$as_me:$LINENO: result: yes" >&5
2719echo "${ECHO_T}yes" >&6
2720 else
2721 echo "$as_me:$LINENO: result: no" >&5
2722echo "${ECHO_T}no" >&6
2723 fi
2724
2725
2726 enablestring=
2727 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gpe" >&5
2728echo $ECHO_N "checking for --${enablestring:-enable}-gpe... $ECHO_C" >&6
2729 no_cache=0
2730 # Check whether --enable-gpe or --disable-gpe was given.
2731if test "${enable_gpe+set}" = set; then
2732 enableval="$enable_gpe"
2733
2734 if test "$enableval" = yes; then
2735 ac_cv_use_gpe='wxUSE_GPE=yes'
2736 else
2737 ac_cv_use_gpe='wxUSE_GPE=no'
2738 fi
2739
2740else
2741
2742 LINE=`grep "wxUSE_GPE" ${wx_arg_cache_file}`
2743 if test "x$LINE" != x ; then
2744 eval "DEFAULT_$LINE"
2745 else
2746 no_cache=1
2747 fi
2748
2749 ac_cv_use_gpe='wxUSE_GPE='$DEFAULT_wxUSE_GPE
2750
2751fi;
2752
2753 eval "$ac_cv_use_gpe"
2754 if test "$no_cache" != 1; then
2755 echo $ac_cv_use_gpe >> ${wx_arg_cache_file}.tmp
2756 fi
2757
2758 if test "$wxUSE_GPE" = yes; then
2759 echo "$as_me:$LINENO: result: yes" >&5
2760echo "${ECHO_T}yes" >&6
2761 else
2762 echo "$as_me:$LINENO: result: no" >&5
2763echo "${ECHO_T}no" >&6
2764 fi
2765
2766
2767
2768 echo "$as_me:$LINENO: checking for --with-libpng" >&5
2769echo $ECHO_N "checking for --with-libpng... $ECHO_C" >&6
2770 no_cache=0
2771
2772# Check whether --with-libpng or --without-libpng was given.
2773if test "${with_libpng+set}" = set; then
2774 withval="$with_libpng"
2775
2776 if test "$withval" = yes; then
2777 ac_cv_use_libpng='wxUSE_LIBPNG=yes'
2778 elif test "$withval" = no; then
2779 ac_cv_use_libpng='wxUSE_LIBPNG=no'
2780 elif test "$withval" = sys; then
2781 ac_cv_use_libpng='wxUSE_LIBPNG=sys'
2782 elif test "$withval" = builtin; then
2783 ac_cv_use_libpng='wxUSE_LIBPNG=builtin'
2784 else
2785 { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5
2786echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;}
2787 { (exit 1); exit 1; }; }
2788 fi
2789
2790else
2791
2792 LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}`
2793 if test "x$LINE" != x ; then
2794 eval "DEFAULT_$LINE"
2795 else
2796 no_cache=1
2797 fi
2798
2799 ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG
2800
2801fi;
2802
2803 eval "$ac_cv_use_libpng"
2804 if test "$no_cache" != 1; then
2805 echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp
2806 fi
2807
2808 if test "$wxUSE_LIBPNG" = yes; then
2809 echo "$as_me:$LINENO: result: yes" >&5
2810echo "${ECHO_T}yes" >&6
2811 elif test "$wxUSE_LIBPNG" = no; then
2812 echo "$as_me:$LINENO: result: no" >&5
2813echo "${ECHO_T}no" >&6
2814 elif test "$wxUSE_LIBPNG" = sys; then
2815 echo "$as_me:$LINENO: result: system version" >&5
2816echo "${ECHO_T}system version" >&6
2817 elif test "$wxUSE_LIBPNG" = builtin; then
2818 echo "$as_me:$LINENO: result: builtin version" >&5
2819echo "${ECHO_T}builtin version" >&6
2820 else
2821 { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5
2822echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;}
2823 { (exit 1); exit 1; }; }
2824 fi
2825
2826
2827 echo "$as_me:$LINENO: checking for --with-libjpeg" >&5
2828echo $ECHO_N "checking for --with-libjpeg... $ECHO_C" >&6
2829 no_cache=0
2830
2831# Check whether --with-libjpeg or --without-libjpeg was given.
2832if test "${with_libjpeg+set}" = set; then
2833 withval="$with_libjpeg"
2834
2835 if test "$withval" = yes; then
2836 ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes'
2837 elif test "$withval" = no; then
2838 ac_cv_use_libjpeg='wxUSE_LIBJPEG=no'
2839 elif test "$withval" = sys; then
2840 ac_cv_use_libjpeg='wxUSE_LIBJPEG=sys'
2841 elif test "$withval" = builtin; then
2842 ac_cv_use_libjpeg='wxUSE_LIBJPEG=builtin'
2843 else
2844 { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5
2845echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;}
2846 { (exit 1); exit 1; }; }
2847 fi
2848
2849else
2850
2851 LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}`
2852 if test "x$LINE" != x ; then
2853 eval "DEFAULT_$LINE"
2854 else
2855 no_cache=1
2856 fi
2857
2858 ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG
2859
2860fi;
2861
2862 eval "$ac_cv_use_libjpeg"
2863 if test "$no_cache" != 1; then
2864 echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp
2865 fi
2866
2867 if test "$wxUSE_LIBJPEG" = yes; then
2868 echo "$as_me:$LINENO: result: yes" >&5
2869echo "${ECHO_T}yes" >&6
2870 elif test "$wxUSE_LIBJPEG" = no; then
2871 echo "$as_me:$LINENO: result: no" >&5
2872echo "${ECHO_T}no" >&6
2873 elif test "$wxUSE_LIBJPEG" = sys; then
2874 echo "$as_me:$LINENO: result: system version" >&5
2875echo "${ECHO_T}system version" >&6
2876 elif test "$wxUSE_LIBJPEG" = builtin; then
2877 echo "$as_me:$LINENO: result: builtin version" >&5
2878echo "${ECHO_T}builtin version" >&6
2879 else
2880 { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5
2881echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;}
2882 { (exit 1); exit 1; }; }
2883 fi
2884
2885
2886 echo "$as_me:$LINENO: checking for --with-libtiff" >&5
2887echo $ECHO_N "checking for --with-libtiff... $ECHO_C" >&6
2888 no_cache=0
2889
2890# Check whether --with-libtiff or --without-libtiff was given.
2891if test "${with_libtiff+set}" = set; then
2892 withval="$with_libtiff"
2893
2894 if test "$withval" = yes; then
2895 ac_cv_use_libtiff='wxUSE_LIBTIFF=yes'
2896 elif test "$withval" = no; then
2897 ac_cv_use_libtiff='wxUSE_LIBTIFF=no'
2898 elif test "$withval" = sys; then
2899 ac_cv_use_libtiff='wxUSE_LIBTIFF=sys'
2900 elif test "$withval" = builtin; then
2901 ac_cv_use_libtiff='wxUSE_LIBTIFF=builtin'
2902 else
2903 { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5
2904echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;}
2905 { (exit 1); exit 1; }; }
2906 fi
2907
2908else
2909
2910 LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}`
2911 if test "x$LINE" != x ; then
2912 eval "DEFAULT_$LINE"
2913 else
2914 no_cache=1
2915 fi
2916
2917 ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF
2918
2919fi;
2920
2921 eval "$ac_cv_use_libtiff"
2922 if test "$no_cache" != 1; then
2923 echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp
2924 fi
2925
2926 if test "$wxUSE_LIBTIFF" = yes; then
2927 echo "$as_me:$LINENO: result: yes" >&5
2928echo "${ECHO_T}yes" >&6
2929 elif test "$wxUSE_LIBTIFF" = no; then
2930 echo "$as_me:$LINENO: result: no" >&5
2931echo "${ECHO_T}no" >&6
2932 elif test "$wxUSE_LIBTIFF" = sys; then
2933 echo "$as_me:$LINENO: result: system version" >&5
2934echo "${ECHO_T}system version" >&6
2935 elif test "$wxUSE_LIBTIFF" = builtin; then
2936 echo "$as_me:$LINENO: result: builtin version" >&5
2937echo "${ECHO_T}builtin version" >&6
2938 else
2939 { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5
2940echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;}
2941 { (exit 1); exit 1; }; }
2942 fi
2943
2944
2945 echo "$as_me:$LINENO: checking for --with-libxpm" >&5
2946echo $ECHO_N "checking for --with-libxpm... $ECHO_C" >&6
2947 no_cache=0
2948
2949# Check whether --with-libxpm or --without-libxpm was given.
2950if test "${with_libxpm+set}" = set; then
2951 withval="$with_libxpm"
2952
2953 if test "$withval" = yes; then
2954 ac_cv_use_libxpm='wxUSE_LIBXPM=yes'
2955 elif test "$withval" = no; then
2956 ac_cv_use_libxpm='wxUSE_LIBXPM=no'
2957 elif test "$withval" = sys; then
2958 ac_cv_use_libxpm='wxUSE_LIBXPM=sys'
2959 elif test "$withval" = builtin; then
2960 ac_cv_use_libxpm='wxUSE_LIBXPM=builtin'
2961 else
2962 { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5
2963echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;}
2964 { (exit 1); exit 1; }; }
2965 fi
2966
2967else
2968
2969 LINE=`grep "wxUSE_LIBXPM" ${wx_arg_cache_file}`
2970 if test "x$LINE" != x ; then
2971 eval "DEFAULT_$LINE"
2972 else
2973 no_cache=1
2974 fi
2975
2976 ac_cv_use_libxpm='wxUSE_LIBXPM='$DEFAULT_wxUSE_LIBXPM
2977
2978fi;
2979
2980 eval "$ac_cv_use_libxpm"
2981 if test "$no_cache" != 1; then
2982 echo $ac_cv_use_libxpm >> ${wx_arg_cache_file}.tmp
2983 fi
2984
2985 if test "$wxUSE_LIBXPM" = yes; then
2986 echo "$as_me:$LINENO: result: yes" >&5
2987echo "${ECHO_T}yes" >&6
2988 elif test "$wxUSE_LIBXPM" = no; then
2989 echo "$as_me:$LINENO: result: no" >&5
2990echo "${ECHO_T}no" >&6
2991 elif test "$wxUSE_LIBXPM" = sys; then
2992 echo "$as_me:$LINENO: result: system version" >&5
2993echo "${ECHO_T}system version" >&6
2994 elif test "$wxUSE_LIBXPM" = builtin; then
2995 echo "$as_me:$LINENO: result: builtin version" >&5
2996echo "${ECHO_T}builtin version" >&6
2997 else
2998 { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5
2999echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;}
3000 { (exit 1); exit 1; }; }
3001 fi
3002
3003
3004 echo "$as_me:$LINENO: checking for --with-libmspack" >&5
3005echo $ECHO_N "checking for --with-libmspack... $ECHO_C" >&6
3006 no_cache=0
3007
3008# Check whether --with-libmspack or --without-libmspack was given.
3009if test "${with_libmspack+set}" = set; then
3010 withval="$with_libmspack"
3011
3012 if test "$withval" = yes; then
3013 ac_cv_use_libmspack='wxUSE_LIBMSPACK=yes'
3014 else
3015 ac_cv_use_libmspack='wxUSE_LIBMSPACK=no'
3016 fi
3017
3018else
3019
3020 LINE=`grep "wxUSE_LIBMSPACK" ${wx_arg_cache_file}`
3021 if test "x$LINE" != x ; then
3022 eval "DEFAULT_$LINE"
3023 else
3024 no_cache=1
3025 fi
3026
3027 ac_cv_use_libmspack='wxUSE_LIBMSPACK='$DEFAULT_wxUSE_LIBMSPACK
3028
3029fi;
3030
3031 eval "$ac_cv_use_libmspack"
3032 if test "$no_cache" != 1; then
3033 echo $ac_cv_use_libmspack >> ${wx_arg_cache_file}.tmp
3034 fi
3035
3036 if test "$wxUSE_LIBMSPACK" = yes; then
3037 echo "$as_me:$LINENO: result: yes" >&5
3038echo "${ECHO_T}yes" >&6
3039 else
3040 echo "$as_me:$LINENO: result: no" >&5
3041echo "${ECHO_T}no" >&6
3042 fi
3043
3044
3045 echo "$as_me:$LINENO: checking for --with-sdl" >&5
3046echo $ECHO_N "checking for --with-sdl... $ECHO_C" >&6
3047 no_cache=0
3048
3049# Check whether --with-sdl or --without-sdl was given.
3050if test "${with_sdl+set}" = set; then
3051 withval="$with_sdl"
3052
3053 if test "$withval" = yes; then
3054 ac_cv_use_sdl='wxUSE_LIBSDL=yes'
3055 else
3056 ac_cv_use_sdl='wxUSE_LIBSDL=no'
3057 fi
3058
3059else
3060
3061 LINE=`grep "wxUSE_LIBSDL" ${wx_arg_cache_file}`
3062 if test "x$LINE" != x ; then
3063 eval "DEFAULT_$LINE"
3064 else
3065 no_cache=1
3066 fi
3067
3068 ac_cv_use_sdl='wxUSE_LIBSDL='$DEFAULT_wxUSE_LIBSDL
3069
3070fi;
3071
3072 eval "$ac_cv_use_sdl"
3073 if test "$no_cache" != 1; then
3074 echo $ac_cv_use_sdl >> ${wx_arg_cache_file}.tmp
3075 fi
3076
3077 if test "$wxUSE_LIBSDL" = yes; then
3078 echo "$as_me:$LINENO: result: yes" >&5
3079echo "${ECHO_T}yes" >&6
3080 else
3081 echo "$as_me:$LINENO: result: no" >&5
3082echo "${ECHO_T}no" >&6
3083 fi
3084
3085
d1c38808
VZ
3086 echo "$as_me:$LINENO: checking for --with-gnomeprint" >&5
3087echo $ECHO_N "checking for --with-gnomeprint... $ECHO_C" >&6
3088 no_cache=0
3089
3090# Check whether --with-gnomeprint or --without-gnomeprint was given.
3091if test "${with_gnomeprint+set}" = set; then
3092 withval="$with_gnomeprint"
3093
3094 if test "$withval" = yes; then
3095 ac_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT=yes'
3096 else
3097 ac_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT=no'
3098 fi
3099
3100else
3101
3102 LINE=`grep "wxUSE_LIBGNOMEPRINT" ${wx_arg_cache_file}`
3103 if test "x$LINE" != x ; then
3104 eval "DEFAULT_$LINE"
3105 else
3106 no_cache=1
3107 fi
3108
3109 ac_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT='$DEFAULT_wxUSE_LIBGNOMEPRINT
3110
3111fi;
3112
3113 eval "$ac_cv_use_gnomeprint"
3114 if test "$no_cache" != 1; then
3115 echo $ac_cv_use_gnomeprint >> ${wx_arg_cache_file}.tmp
3116 fi
3117
3118 if test "$wxUSE_LIBGNOMEPRINT" = yes; then
3119 echo "$as_me:$LINENO: result: yes" >&5
3120echo "${ECHO_T}yes" >&6
3121 else
3122 echo "$as_me:$LINENO: result: no" >&5
3123echo "${ECHO_T}no" >&6
3124 fi
3125
3126
a848cd7e
SC
3127 echo "$as_me:$LINENO: checking for --with-opengl" >&5
3128echo $ECHO_N "checking for --with-opengl... $ECHO_C" >&6
3129 no_cache=0
3130
3131# Check whether --with-opengl or --without-opengl was given.
3132if test "${with_opengl+set}" = set; then
3133 withval="$with_opengl"
3134
3135 if test "$withval" = yes; then
3136 ac_cv_use_opengl='wxUSE_OPENGL=yes'
3137 else
3138 ac_cv_use_opengl='wxUSE_OPENGL=no'
3139 fi
3140
3141else
3142
3143 LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}`
3144 if test "x$LINE" != x ; then
3145 eval "DEFAULT_$LINE"
3146 else
3147 no_cache=1
3148 fi
3149
3150 ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL
3151
3152fi;
3153
3154 eval "$ac_cv_use_opengl"
3155 if test "$no_cache" != 1; then
3156 echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp
3157 fi
3158
3159 if test "$wxUSE_OPENGL" = yes; then
3160 echo "$as_me:$LINENO: result: yes" >&5
3161echo "${ECHO_T}yes" >&6
3162 else
3163 echo "$as_me:$LINENO: result: no" >&5
3164echo "${ECHO_T}no" >&6
3165 fi
3166
3167
3168fi
3169
3170
3171 echo "$as_me:$LINENO: checking for --with-dmalloc" >&5
3172echo $ECHO_N "checking for --with-dmalloc... $ECHO_C" >&6
3173 no_cache=0
3174
3175# Check whether --with-dmalloc or --without-dmalloc was given.
3176if test "${with_dmalloc+set}" = set; then
3177 withval="$with_dmalloc"
3178
3179 if test "$withval" = yes; then
3180 ac_cv_use_dmalloc='wxUSE_DMALLOC=yes'
3181 else
3182 ac_cv_use_dmalloc='wxUSE_DMALLOC=no'
3183 fi
3184
3185else
3186
3187 LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}`
3188 if test "x$LINE" != x ; then
3189 eval "DEFAULT_$LINE"
3190 else
3191 no_cache=1
3192 fi
3193
3194 ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC
3195
3196fi;
3197
3198 eval "$ac_cv_use_dmalloc"
3199 if test "$no_cache" != 1; then
3200 echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp
3201 fi
3202
3203 if test "$wxUSE_DMALLOC" = yes; then
3204 echo "$as_me:$LINENO: result: yes" >&5
3205echo "${ECHO_T}yes" >&6
3206 else
3207 echo "$as_me:$LINENO: result: no" >&5
3208echo "${ECHO_T}no" >&6
3209 fi
3210
3211
3212 echo "$as_me:$LINENO: checking for --with-regex" >&5
3213echo $ECHO_N "checking for --with-regex... $ECHO_C" >&6
3214 no_cache=0
3215
3216# Check whether --with-regex or --without-regex was given.
3217if test "${with_regex+set}" = set; then
3218 withval="$with_regex"
3219
3220 if test "$withval" = yes; then
3221 ac_cv_use_regex='wxUSE_REGEX=yes'
3222 elif test "$withval" = no; then
3223 ac_cv_use_regex='wxUSE_REGEX=no'
3224 elif test "$withval" = sys; then
3225 ac_cv_use_regex='wxUSE_REGEX=sys'
3226 elif test "$withval" = builtin; then
3227 ac_cv_use_regex='wxUSE_REGEX=builtin'
3228 else
3229 { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5
3230echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;}
3231 { (exit 1); exit 1; }; }
3232 fi
3233
3234else
3235
3236 LINE=`grep "wxUSE_REGEX" ${wx_arg_cache_file}`
3237 if test "x$LINE" != x ; then
3238 eval "DEFAULT_$LINE"
3239 else
3240 no_cache=1
3241 fi
3242
3243 ac_cv_use_regex='wxUSE_REGEX='$DEFAULT_wxUSE_REGEX
3244
3245fi;
3246
3247 eval "$ac_cv_use_regex"
3248 if test "$no_cache" != 1; then
3249 echo $ac_cv_use_regex >> ${wx_arg_cache_file}.tmp
3250 fi
3251
3252 if test "$wxUSE_REGEX" = yes; then
3253 echo "$as_me:$LINENO: result: yes" >&5
3254echo "${ECHO_T}yes" >&6
3255 elif test "$wxUSE_REGEX" = no; then
3256 echo "$as_me:$LINENO: result: no" >&5
3257echo "${ECHO_T}no" >&6
3258 elif test "$wxUSE_REGEX" = sys; then
3259 echo "$as_me:$LINENO: result: system version" >&5
3260echo "${ECHO_T}system version" >&6
3261 elif test "$wxUSE_REGEX" = builtin; then
3262 echo "$as_me:$LINENO: result: builtin version" >&5
3263echo "${ECHO_T}builtin version" >&6
3264 else
3265 { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5
3266echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;}
3267 { (exit 1); exit 1; }; }
3268 fi
3269
3270
3271 echo "$as_me:$LINENO: checking for --with-zlib" >&5
3272echo $ECHO_N "checking for --with-zlib... $ECHO_C" >&6
3273 no_cache=0
3274
3275# Check whether --with-zlib or --without-zlib was given.
3276if test "${with_zlib+set}" = set; then
3277 withval="$with_zlib"
3278
3279 if test "$withval" = yes; then
3280 ac_cv_use_zlib='wxUSE_ZLIB=yes'
3281 elif test "$withval" = no; then
3282 ac_cv_use_zlib='wxUSE_ZLIB=no'
3283 elif test "$withval" = sys; then
3284 ac_cv_use_zlib='wxUSE_ZLIB=sys'
3285 elif test "$withval" = builtin; then
3286 ac_cv_use_zlib='wxUSE_ZLIB=builtin'
3287 else
3288 { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5
3289echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;}
3290 { (exit 1); exit 1; }; }
3291 fi
3292
3293else
3294
3295 LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}`
3296 if test "x$LINE" != x ; then
3297 eval "DEFAULT_$LINE"
3298 else
3299 no_cache=1
3300 fi
3301
3302 ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB
3303
3304fi;
3305
3306 eval "$ac_cv_use_zlib"
3307 if test "$no_cache" != 1; then
3308 echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp
3309 fi
3310
3311 if test "$wxUSE_ZLIB" = yes; then
3312 echo "$as_me:$LINENO: result: yes" >&5
3313echo "${ECHO_T}yes" >&6
3314 elif test "$wxUSE_ZLIB" = no; then
3315 echo "$as_me:$LINENO: result: no" >&5
3316echo "${ECHO_T}no" >&6
3317 elif test "$wxUSE_ZLIB" = sys; then
3318 echo "$as_me:$LINENO: result: system version" >&5
3319echo "${ECHO_T}system version" >&6
3320 elif test "$wxUSE_ZLIB" = builtin; then
3321 echo "$as_me:$LINENO: result: builtin version" >&5
3322echo "${ECHO_T}builtin version" >&6
3323 else
3324 { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5
3325echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;}
3326 { (exit 1); exit 1; }; }
3327 fi
3328
3329
3330 echo "$as_me:$LINENO: checking for --with-odbc" >&5
3331echo $ECHO_N "checking for --with-odbc... $ECHO_C" >&6
3332 no_cache=0
3333
3334# Check whether --with-odbc or --without-odbc was given.
3335if test "${with_odbc+set}" = set; then
3336 withval="$with_odbc"
3337
3338 if test "$withval" = yes; then
3339 ac_cv_use_odbc='wxUSE_ODBC=yes'
3340 elif test "$withval" = no; then
3341 ac_cv_use_odbc='wxUSE_ODBC=no'
3342 elif test "$withval" = sys; then
3343 ac_cv_use_odbc='wxUSE_ODBC=sys'
3344 elif test "$withval" = builtin; then
3345 ac_cv_use_odbc='wxUSE_ODBC=builtin'
3346 else
3347 { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5
3348echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;}
3349 { (exit 1); exit 1; }; }
3350 fi
3351
3352else
3353
3354 LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}`
3355 if test "x$LINE" != x ; then
3356 eval "DEFAULT_$LINE"
3357 else
3358 no_cache=1
3359 fi
3360
3361 ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC
3362
3363fi;
3364
3365 eval "$ac_cv_use_odbc"
3366 if test "$no_cache" != 1; then
3367 echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp
3368 fi
3369
3370 if test "$wxUSE_ODBC" = yes; then
3371 echo "$as_me:$LINENO: result: yes" >&5
3372echo "${ECHO_T}yes" >&6
3373 elif test "$wxUSE_ODBC" = no; then
3374 echo "$as_me:$LINENO: result: no" >&5
3375echo "${ECHO_T}no" >&6
3376 elif test "$wxUSE_ODBC" = sys; then
3377 echo "$as_me:$LINENO: result: system version" >&5
3378echo "${ECHO_T}system version" >&6
3379 elif test "$wxUSE_ODBC" = builtin; then
3380 echo "$as_me:$LINENO: result: builtin version" >&5
3381echo "${ECHO_T}builtin version" >&6
3382 else
3383 { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5
3384echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;}
3385 { (exit 1); exit 1; }; }
3386 fi
3387
3388
3389 echo "$as_me:$LINENO: checking for --with-expat" >&5
3390echo $ECHO_N "checking for --with-expat... $ECHO_C" >&6
3391 no_cache=0
3392
3393# Check whether --with-expat or --without-expat was given.
3394if test "${with_expat+set}" = set; then
3395 withval="$with_expat"
3396
3397 if test "$withval" = yes; then
3398 ac_cv_use_expat='wxUSE_EXPAT=yes'
3399 elif test "$withval" = no; then
3400 ac_cv_use_expat='wxUSE_EXPAT=no'
3401 elif test "$withval" = sys; then
3402 ac_cv_use_expat='wxUSE_EXPAT=sys'
3403 elif test "$withval" = builtin; then
3404 ac_cv_use_expat='wxUSE_EXPAT=builtin'
3405 else
3406 { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5
3407echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;}
3408 { (exit 1); exit 1; }; }
3409 fi
3410
3411else
3412
3413 LINE=`grep "wxUSE_EXPAT" ${wx_arg_cache_file}`
3414 if test "x$LINE" != x ; then
3415 eval "DEFAULT_$LINE"
3416 else
3417 no_cache=1
3418 fi
3419
3420 ac_cv_use_expat='wxUSE_EXPAT='$DEFAULT_wxUSE_EXPAT
3421
3422fi;
3423
3424 eval "$ac_cv_use_expat"
3425 if test "$no_cache" != 1; then
3426 echo $ac_cv_use_expat >> ${wx_arg_cache_file}.tmp
3427 fi
3428
3429 if test "$wxUSE_EXPAT" = yes; then
3430 echo "$as_me:$LINENO: result: yes" >&5
3431echo "${ECHO_T}yes" >&6
3432 elif test "$wxUSE_EXPAT" = no; then
3433 echo "$as_me:$LINENO: result: no" >&5
3434echo "${ECHO_T}no" >&6
3435 elif test "$wxUSE_EXPAT" = sys; then
3436 echo "$as_me:$LINENO: result: system version" >&5
3437echo "${ECHO_T}system version" >&6
3438 elif test "$wxUSE_EXPAT" = builtin; then
3439 echo "$as_me:$LINENO: result: builtin version" >&5
3440echo "${ECHO_T}builtin version" >&6
3441 else
3442 { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5
3443echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;}
3444 { (exit 1); exit 1; }; }
3445 fi
3446
3447
3448
3449
3450 enablestring=
3451 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-shared" >&5
3452echo $ECHO_N "checking for --${enablestring:-enable}-shared... $ECHO_C" >&6
3453 no_cache=0
3454 # Check whether --enable-shared or --disable-shared was given.
3455if test "${enable_shared+set}" = set; then
3456 enableval="$enable_shared"
3457
3458 if test "$enableval" = yes; then
3459 ac_cv_use_shared='wxUSE_SHARED=yes'
3460 else
3461 ac_cv_use_shared='wxUSE_SHARED=no'
3462 fi
3463
3464else
3465
3466 LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}`
3467 if test "x$LINE" != x ; then
3468 eval "DEFAULT_$LINE"
3469 else
3470 no_cache=1
3471 fi
3472
3473 ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED
3474
3475fi;
3476
3477 eval "$ac_cv_use_shared"
3478 if test "$no_cache" != 1; then
3479 echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp
3480 fi
3481
3482 if test "$wxUSE_SHARED" = yes; then
3483 echo "$as_me:$LINENO: result: yes" >&5
3484echo "${ECHO_T}yes" >&6
3485 else
3486 echo "$as_me:$LINENO: result: no" >&5
3487echo "${ECHO_T}no" >&6
3488 fi
3489
3490
3491 enablestring=
3492 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-optimise" >&5
3493echo $ECHO_N "checking for --${enablestring:-enable}-optimise... $ECHO_C" >&6
3494 no_cache=0
3495 # Check whether --enable-optimise or --disable-optimise was given.
3496if test "${enable_optimise+set}" = set; then
3497 enableval="$enable_optimise"
3498
3499 if test "$enableval" = yes; then
3500 ac_cv_use_optimise='wxUSE_OPTIMISE=yes'
3501 else
3502 ac_cv_use_optimise='wxUSE_OPTIMISE=no'
3503 fi
3504
3505else
3506
3507 LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}`
3508 if test "x$LINE" != x ; then
3509 eval "DEFAULT_$LINE"
3510 else
3511 no_cache=1
3512 fi
3513
3514 ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE
3515
3516fi;
3517
3518 eval "$ac_cv_use_optimise"
3519 if test "$no_cache" != 1; then
3520 echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp
3521 fi
3522
3523 if test "$wxUSE_OPTIMISE" = yes; then
3524 echo "$as_me:$LINENO: result: yes" >&5
3525echo "${ECHO_T}yes" >&6
3526 else
3527 echo "$as_me:$LINENO: result: no" >&5
3528echo "${ECHO_T}no" >&6
3529 fi
3530
3531
3532 enablestring=
3533 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug" >&5
3534echo $ECHO_N "checking for --${enablestring:-enable}-debug... $ECHO_C" >&6
3535 no_cache=0
3536 # Check whether --enable-debug or --disable-debug was given.
3537if test "${enable_debug+set}" = set; then
3538 enableval="$enable_debug"
3539
3540 if test "$enableval" = yes; then
3541 ac_cv_use_debug='wxUSE_DEBUG=yes'
3542 else
3543 ac_cv_use_debug='wxUSE_DEBUG=no'
3544 fi
3545
3546else
3547
3548 LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}`
3549 if test "x$LINE" != x ; then
3550 eval "DEFAULT_$LINE"
3551 else
3552 no_cache=1
3553 fi
3554
3555 ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG
3556
3557fi;
3558
3559 eval "$ac_cv_use_debug"
3560 if test "$no_cache" != 1; then
3561 echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp
3562 fi
3563
3564 if test "$wxUSE_DEBUG" = yes; then
3565 echo "$as_me:$LINENO: result: yes" >&5
3566echo "${ECHO_T}yes" >&6
3567 else
3568 echo "$as_me:$LINENO: result: no" >&5
3569echo "${ECHO_T}no" >&6
3570 fi
3571
3572
3573 enablestring=
3574 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stl" >&5
3575echo $ECHO_N "checking for --${enablestring:-enable}-stl... $ECHO_C" >&6
3576 no_cache=0
3577 # Check whether --enable-stl or --disable-stl was given.
3578if test "${enable_stl+set}" = set; then
3579 enableval="$enable_stl"
3580
3581 if test "$enableval" = yes; then
3582 ac_cv_use_stl='wxUSE_STL=yes'
3583 else
3584 ac_cv_use_stl='wxUSE_STL=no'
3585 fi
3586
3587else
3588
3589 LINE=`grep "wxUSE_STL" ${wx_arg_cache_file}`
3590 if test "x$LINE" != x ; then
3591 eval "DEFAULT_$LINE"
3592 else
3593 no_cache=1
3594 fi
3595
3596 ac_cv_use_stl='wxUSE_STL='$DEFAULT_wxUSE_STL
3597
3598fi;
3599
3600 eval "$ac_cv_use_stl"
3601 if test "$no_cache" != 1; then
3602 echo $ac_cv_use_stl >> ${wx_arg_cache_file}.tmp
3603 fi
3604
3605 if test "$wxUSE_STL" = yes; then
3606 echo "$as_me:$LINENO: result: yes" >&5
3607echo "${ECHO_T}yes" >&6
3608 else
3609 echo "$as_me:$LINENO: result: no" >&5
3610echo "${ECHO_T}no" >&6
3611 fi
3612
3613if test "$USE_OS2" = "1"; then
3614
3615 enablestring=
3616 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-omf" >&5
3617echo $ECHO_N "checking for --${enablestring:-enable}-omf... $ECHO_C" >&6
3618 no_cache=0
3619 # Check whether --enable-omf or --disable-omf was given.
3620if test "${enable_omf+set}" = set; then
3621 enableval="$enable_omf"
3622
3623 if test "$enableval" = yes; then
3624 ac_cv_use_omf='wxUSE_OMF=yes'
3625 else
3626 ac_cv_use_omf='wxUSE_OMF=no'
3627 fi
3628
3629else
3630
3631 LINE=`grep "wxUSE_OMF" ${wx_arg_cache_file}`
3632 if test "x$LINE" != x ; then
3633 eval "DEFAULT_$LINE"
3634 else
3635 no_cache=1
3636 fi
3637
3638 ac_cv_use_omf='wxUSE_OMF='$DEFAULT_wxUSE_OMF
3639
3640fi;
3641
3642 eval "$ac_cv_use_omf"
3643 if test "$no_cache" != 1; then
3644 echo $ac_cv_use_omf >> ${wx_arg_cache_file}.tmp
3645 fi
3646
3647 if test "$wxUSE_OMF" = yes; then
3648 echo "$as_me:$LINENO: result: yes" >&5
3649echo "${ECHO_T}yes" >&6
3650 else
3651 echo "$as_me:$LINENO: result: no" >&5
3652echo "${ECHO_T}no" >&6
3653 fi
3654
3655fi
3656
3657if test "$wxUSE_DEBUG" = "yes"; then
3658 DEFAULT_wxUSE_DEBUG_FLAG=yes
3659 DEFAULT_wxUSE_DEBUG_INFO=yes
3660 BUILD=debug
3661elif test "$wxUSE_DEBUG" = "no"; then
3662 DEFAULT_wxUSE_DEBUG_FLAG=no
3663 DEFAULT_wxUSE_DEBUG_INFO=no
3664 BUILD=release
3665fi
3666
3667
3668 enablestring=
3669 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_flag" >&5
3670echo $ECHO_N "checking for --${enablestring:-enable}-debug_flag... $ECHO_C" >&6
3671 no_cache=0
3672 # Check whether --enable-debug_flag or --disable-debug_flag was given.
3673if test "${enable_debug_flag+set}" = set; then
3674 enableval="$enable_debug_flag"
3675
3676 if test "$enableval" = yes; then
3677 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes'
3678 else
3679 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no'
3680 fi
3681
3682else
3683
3684 LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}`
3685 if test "x$LINE" != x ; then
3686 eval "DEFAULT_$LINE"
3687 else
3688 no_cache=1
3689 fi
3690
3691 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG
3692
3693fi;
3694
3695 eval "$ac_cv_use_debug_flag"
3696 if test "$no_cache" != 1; then
3697 echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp
3698 fi
3699
3700 if test "$wxUSE_DEBUG_FLAG" = yes; then
3701 echo "$as_me:$LINENO: result: yes" >&5
3702echo "${ECHO_T}yes" >&6
3703 else
3704 echo "$as_me:$LINENO: result: no" >&5
3705echo "${ECHO_T}no" >&6
3706 fi
3707
3708
3709 enablestring=
3710 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_info" >&5
3711echo $ECHO_N "checking for --${enablestring:-enable}-debug_info... $ECHO_C" >&6
3712 no_cache=0
3713 # Check whether --enable-debug_info or --disable-debug_info was given.
3714if test "${enable_debug_info+set}" = set; then
3715 enableval="$enable_debug_info"
3716
3717 if test "$enableval" = yes; then
3718 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes'
3719 else
3720 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no'
3721 fi
3722
3723else
3724
3725 LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}`
3726 if test "x$LINE" != x ; then
3727 eval "DEFAULT_$LINE"
3728 else
3729 no_cache=1
3730 fi
3731
3732 ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO
3733
3734fi;
3735
3736 eval "$ac_cv_use_debug_info"
3737 if test "$no_cache" != 1; then
3738 echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp
3739 fi
3740
3741 if test "$wxUSE_DEBUG_INFO" = yes; then
3742 echo "$as_me:$LINENO: result: yes" >&5
3743echo "${ECHO_T}yes" >&6
3744 else
3745 echo "$as_me:$LINENO: result: no" >&5
3746echo "${ECHO_T}no" >&6
3747 fi
3748
3749
3750 enablestring=
3751 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_gdb" >&5
3752echo $ECHO_N "checking for --${enablestring:-enable}-debug_gdb... $ECHO_C" >&6
3753 no_cache=0
3754 # Check whether --enable-debug_gdb or --disable-debug_gdb was given.
3755if test "${enable_debug_gdb+set}" = set; then
3756 enableval="$enable_debug_gdb"
3757
3758 if test "$enableval" = yes; then
3759 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes'
3760 else
3761 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no'
3762 fi
3763
3764else
3765
3766 LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}`
3767 if test "x$LINE" != x ; then
3768 eval "DEFAULT_$LINE"
3769 else
3770 no_cache=1
3771 fi
3772
3773 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB
3774
3775fi;
3776
3777 eval "$ac_cv_use_debug_gdb"
3778 if test "$no_cache" != 1; then
3779 echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp
3780 fi
3781
3782 if test "$wxUSE_DEBUG_GDB" = yes; then
3783 echo "$as_me:$LINENO: result: yes" >&5
3784echo "${ECHO_T}yes" >&6
3785 else
3786 echo "$as_me:$LINENO: result: no" >&5
3787echo "${ECHO_T}no" >&6
3788 fi
3789
3790
3791 enablestring=
3792 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_cntxt" >&5
3793echo $ECHO_N "checking for --${enablestring:-enable}-debug_cntxt... $ECHO_C" >&6
3794 no_cache=0
3795 # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given.
3796if test "${enable_debug_cntxt+set}" = set; then
3797 enableval="$enable_debug_cntxt"
3798
3799 if test "$enableval" = yes; then
3800 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes'
3801 else
3802 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no'
3803 fi
3804
3805else
3806
3807 LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}`
3808 if test "x$LINE" != x ; then
3809 eval "DEFAULT_$LINE"
3810 else
3811 no_cache=1
3812 fi
3813
3814 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT
3815
3816fi;
3817
3818 eval "$ac_cv_use_debug_cntxt"
3819 if test "$no_cache" != 1; then
3820 echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp
3821 fi
3822
3823 if test "$wxUSE_DEBUG_CONTEXT" = yes; then
3824 echo "$as_me:$LINENO: result: yes" >&5
3825echo "${ECHO_T}yes" >&6
3826 else
3827 echo "$as_me:$LINENO: result: no" >&5
3828echo "${ECHO_T}no" >&6
3829 fi
3830
3831
3832 enablestring=
3833 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mem_tracing" >&5
3834echo $ECHO_N "checking for --${enablestring:-enable}-mem_tracing... $ECHO_C" >&6
3835 no_cache=0
3836 # Check whether --enable-mem_tracing or --disable-mem_tracing was given.
3837if test "${enable_mem_tracing+set}" = set; then
3838 enableval="$enable_mem_tracing"
3839
3840 if test "$enableval" = yes; then
3841 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes'
3842 else
3843 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no'
3844 fi
3845
3846else
3847
3848 LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}`
3849 if test "x$LINE" != x ; then
3850 eval "DEFAULT_$LINE"
3851 else
3852 no_cache=1
3853 fi
3854
3855 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING
3856
3857fi;
3858
3859 eval "$ac_cv_use_mem_tracing"
3860 if test "$no_cache" != 1; then
3861 echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp
3862 fi
3863
3864 if test "$wxUSE_MEM_TRACING" = yes; then
3865 echo "$as_me:$LINENO: result: yes" >&5
3866echo "${ECHO_T}yes" >&6
3867 else
3868 echo "$as_me:$LINENO: result: no" >&5
3869echo "${ECHO_T}no" >&6
3870 fi
3871
3872
3873 enablestring=
3874 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-profile" >&5
3875echo $ECHO_N "checking for --${enablestring:-enable}-profile... $ECHO_C" >&6
3876 no_cache=0
3877 # Check whether --enable-profile or --disable-profile was given.
3878if test "${enable_profile+set}" = set; then
3879 enableval="$enable_profile"
3880
3881 if test "$enableval" = yes; then
3882 ac_cv_use_profile='wxUSE_PROFILE=yes'
3883 else
3884 ac_cv_use_profile='wxUSE_PROFILE=no'
3885 fi
3886
3887else
3888
3889 LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}`
3890 if test "x$LINE" != x ; then
3891 eval "DEFAULT_$LINE"
3892 else
3893 no_cache=1
3894 fi
3895
3896 ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE
3897
3898fi;
3899
3900 eval "$ac_cv_use_profile"
3901 if test "$no_cache" != 1; then
3902 echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp
3903 fi
3904
3905 if test "$wxUSE_PROFILE" = yes; then
3906 echo "$as_me:$LINENO: result: yes" >&5
3907echo "${ECHO_T}yes" >&6
3908 else
3909 echo "$as_me:$LINENO: result: no" >&5
3910echo "${ECHO_T}no" >&6
3911 fi
3912
3913
3914 enablestring=
3915 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_rtti" >&5
3916echo $ECHO_N "checking for --${enablestring:-enable}-no_rtti... $ECHO_C" >&6
3917 no_cache=0
3918 # Check whether --enable-no_rtti or --disable-no_rtti was given.
3919if test "${enable_no_rtti+set}" = set; then
3920 enableval="$enable_no_rtti"
3921
3922 if test "$enableval" = yes; then
3923 ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes'
3924 else
3925 ac_cv_use_no_rtti='wxUSE_NO_RTTI=no'
3926 fi
3927
3928else
3929
3930 LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}`
3931 if test "x$LINE" != x ; then
3932 eval "DEFAULT_$LINE"
3933 else
3934 no_cache=1
3935 fi
3936
3937 ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI
3938
3939fi;
3940
3941 eval "$ac_cv_use_no_rtti"
3942 if test "$no_cache" != 1; then
3943 echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp
3944 fi
3945
3946 if test "$wxUSE_NO_RTTI" = yes; then
3947 echo "$as_me:$LINENO: result: yes" >&5
3948echo "${ECHO_T}yes" >&6
3949 else
3950 echo "$as_me:$LINENO: result: no" >&5
3951echo "${ECHO_T}no" >&6
3952 fi
3953
3954
3955 enablestring=
3956 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_exceptions" >&5
3957echo $ECHO_N "checking for --${enablestring:-enable}-no_exceptions... $ECHO_C" >&6
3958 no_cache=0
3959 # Check whether --enable-no_exceptions or --disable-no_exceptions was given.
3960if test "${enable_no_exceptions+set}" = set; then
3961 enableval="$enable_no_exceptions"
3962
3963 if test "$enableval" = yes; then
3964 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes'
3965 else
3966 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no'
3967 fi
3968
3969else
3970
3971 LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}`
3972 if test "x$LINE" != x ; then
3973 eval "DEFAULT_$LINE"
3974 else
3975 no_cache=1
3976 fi
3977
3978 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS
3979
3980fi;
3981
3982 eval "$ac_cv_use_no_exceptions"
3983 if test "$no_cache" != 1; then
3984 echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp
3985 fi
3986
3987 if test "$wxUSE_NO_EXCEPTIONS" = yes; then
3988 echo "$as_me:$LINENO: result: yes" >&5
3989echo "${ECHO_T}yes" >&6
3990 else
3991 echo "$as_me:$LINENO: result: no" >&5
3992echo "${ECHO_T}no" >&6
3993 fi
3994
3995
3996 enablestring=
3997 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-permissive" >&5
3998echo $ECHO_N "checking for --${enablestring:-enable}-permissive... $ECHO_C" >&6
3999 no_cache=0
4000 # Check whether --enable-permissive or --disable-permissive was given.
4001if test "${enable_permissive+set}" = set; then
4002 enableval="$enable_permissive"
4003
4004 if test "$enableval" = yes; then
4005 ac_cv_use_permissive='wxUSE_PERMISSIVE=yes'
4006 else
4007 ac_cv_use_permissive='wxUSE_PERMISSIVE=no'
4008 fi
4009
4010else
4011
4012 LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}`
4013 if test "x$LINE" != x ; then
4014 eval "DEFAULT_$LINE"
4015 else
4016 no_cache=1
4017 fi
4018
4019 ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE
4020
4021fi;
4022
4023 eval "$ac_cv_use_permissive"
4024 if test "$no_cache" != 1; then
4025 echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp
4026 fi
4027
4028 if test "$wxUSE_PERMISSIVE" = yes; then
4029 echo "$as_me:$LINENO: result: yes" >&5
4030echo "${ECHO_T}yes" >&6
4031 else
4032 echo "$as_me:$LINENO: result: no" >&5
4033echo "${ECHO_T}no" >&6
4034 fi
4035
4036
4037 enablestring=
4038 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_deps" >&5
4039echo $ECHO_N "checking for --${enablestring:-enable}-no_deps... $ECHO_C" >&6
4040 no_cache=0
4041 # Check whether --enable-no_deps or --disable-no_deps was given.
4042if test "${enable_no_deps+set}" = set; then
4043 enableval="$enable_no_deps"
4044
4045 if test "$enableval" = yes; then
4046 ac_cv_use_no_deps='wxUSE_NO_DEPS=yes'
4047 else
4048 ac_cv_use_no_deps='wxUSE_NO_DEPS=no'
4049 fi
4050
4051else
4052
4053 LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}`
4054 if test "x$LINE" != x ; then
4055 eval "DEFAULT_$LINE"
4056 else
4057 no_cache=1
4058 fi
4059
4060 ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS
4061
4062fi;
4063
4064 eval "$ac_cv_use_no_deps"
4065 if test "$no_cache" != 1; then
4066 echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp
4067 fi
4068
4069 if test "$wxUSE_NO_DEPS" = yes; then
4070 echo "$as_me:$LINENO: result: yes" >&5
4071echo "${ECHO_T}yes" >&6
4072 else
4073 echo "$as_me:$LINENO: result: no" >&5
4074echo "${ECHO_T}no" >&6
4075 fi
4076
4077
4078
4079 enablestring=
4080 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat22" >&5
4081echo $ECHO_N "checking for --${enablestring:-enable}-compat22... $ECHO_C" >&6
4082 no_cache=0
4083 # Check whether --enable-compat22 or --disable-compat22 was given.
4084if test "${enable_compat22+set}" = set; then
4085 enableval="$enable_compat22"
4086
4087 if test "$enableval" = yes; then
4088 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=yes'
4089 else
4090 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=no'
4091 fi
4092
4093else
4094
4095 LINE=`grep "WXWIN_COMPATIBILITY_2_2" ${wx_arg_cache_file}`
4096 if test "x$LINE" != x ; then
4097 eval "DEFAULT_$LINE"
4098 else
4099 no_cache=1
4100 fi
4101
4102 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2='$DEFAULT_WXWIN_COMPATIBILITY_2_2
4103
4104fi;
4105
4106 eval "$ac_cv_use_compat22"
4107 if test "$no_cache" != 1; then
4108 echo $ac_cv_use_compat22 >> ${wx_arg_cache_file}.tmp
4109 fi
4110
4111 if test "$WXWIN_COMPATIBILITY_2_2" = yes; then
4112 echo "$as_me:$LINENO: result: yes" >&5
4113echo "${ECHO_T}yes" >&6
4114 else
4115 echo "$as_me:$LINENO: result: no" >&5
4116echo "${ECHO_T}no" >&6
4117 fi
4118
4119
4120 enablestring=disable
4121 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat24" >&5
4122echo $ECHO_N "checking for --${enablestring:-enable}-compat24... $ECHO_C" >&6
4123 no_cache=0
4124 # Check whether --enable-compat24 or --disable-compat24 was given.
4125if test "${enable_compat24+set}" = set; then
4126 enableval="$enable_compat24"
4127
4128 if test "$enableval" = yes; then
4129 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=yes'
4130 else
4131 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=no'
4132 fi
4133
4134else
4135
4136 LINE=`grep "WXWIN_COMPATIBILITY_2_4" ${wx_arg_cache_file}`
4137 if test "x$LINE" != x ; then
4138 eval "DEFAULT_$LINE"
4139 else
4140 no_cache=1
4141 fi
4142
4143 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4='$DEFAULT_WXWIN_COMPATIBILITY_2_4
4144
4145fi;
4146
4147 eval "$ac_cv_use_compat24"
4148 if test "$no_cache" != 1; then
4149 echo $ac_cv_use_compat24 >> ${wx_arg_cache_file}.tmp
4150 fi
4151
4152 if test "$WXWIN_COMPATIBILITY_2_4" = yes; then
4153 echo "$as_me:$LINENO: result: yes" >&5
4154echo "${ECHO_T}yes" >&6
4155 else
4156 echo "$as_me:$LINENO: result: no" >&5
4157echo "${ECHO_T}no" >&6
4158 fi
4159
4160
ffa0583f
RL
4161
4162 enablestring=
4163 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-rpath" >&5
4164echo $ECHO_N "checking for --${enablestring:-enable}-rpath... $ECHO_C" >&6
4165 no_cache=0
4166 # Check whether --enable-rpath or --disable-rpath was given.
a848cd7e
SC
4167if test "${enable_rpath+set}" = set; then
4168 enableval="$enable_rpath"
ffa0583f
RL
4169
4170 if test "$enableval" = yes; then
4171 ac_cv_use_rpath='wxUSE_RPATH=yes'
4172 else
4173 ac_cv_use_rpath='wxUSE_RPATH=no'
4174 fi
4175
4176else
4177
4178 LINE=`grep "wxUSE_RPATH" ${wx_arg_cache_file}`
4179 if test "x$LINE" != x ; then
4180 eval "DEFAULT_$LINE"
4181 else
4182 no_cache=1
4183 fi
4184
4185 ac_cv_use_rpath='wxUSE_RPATH='$DEFAULT_wxUSE_RPATH
4186
a848cd7e
SC
4187fi;
4188
ffa0583f
RL
4189 eval "$ac_cv_use_rpath"
4190 if test "$no_cache" != 1; then
4191 echo $ac_cv_use_rpath >> ${wx_arg_cache_file}.tmp
4192 fi
4193
4194 if test "$wxUSE_RPATH" = yes; then
4195 echo "$as_me:$LINENO: result: yes" >&5
4196echo "${ECHO_T}yes" >&6
4197 else
4198 echo "$as_me:$LINENO: result: no" >&5
4199echo "${ECHO_T}no" >&6
4200 fi
4201
a848cd7e
SC
4202
4203
4204
4205
4206 enablestring=
4207 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-intl" >&5
4208echo $ECHO_N "checking for --${enablestring:-enable}-intl... $ECHO_C" >&6
4209 no_cache=0
4210 # Check whether --enable-intl or --disable-intl was given.
4211if test "${enable_intl+set}" = set; then
4212 enableval="$enable_intl"
4213
4214 if test "$enableval" = yes; then
4215 ac_cv_use_intl='wxUSE_INTL=yes'
4216 else
4217 ac_cv_use_intl='wxUSE_INTL=no'
4218 fi
4219
4220else
4221
4222 LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}`
4223 if test "x$LINE" != x ; then
4224 eval "DEFAULT_$LINE"
4225 else
4226 no_cache=1
4227 fi
4228
4229 ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL
4230
4231fi;
4232
4233 eval "$ac_cv_use_intl"
4234 if test "$no_cache" != 1; then
4235 echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp
4236 fi
4237
4238 if test "$wxUSE_INTL" = yes; then
4239 echo "$as_me:$LINENO: result: yes" >&5
4240echo "${ECHO_T}yes" >&6
4241 else
4242 echo "$as_me:$LINENO: result: no" >&5
4243echo "${ECHO_T}no" >&6
4244 fi
4245
4246
4247 enablestring=
4248 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-config" >&5
4249echo $ECHO_N "checking for --${enablestring:-enable}-config... $ECHO_C" >&6
4250 no_cache=0
4251 # Check whether --enable-config or --disable-config was given.
4252if test "${enable_config+set}" = set; then
4253 enableval="$enable_config"
4254
4255 if test "$enableval" = yes; then
4256 ac_cv_use_config='wxUSE_CONFIG=yes'
4257 else
4258 ac_cv_use_config='wxUSE_CONFIG=no'
4259 fi
4260
4261else
4262
4263 LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}`
4264 if test "x$LINE" != x ; then
4265 eval "DEFAULT_$LINE"
4266 else
4267 no_cache=1
4268 fi
4269
4270 ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG
4271
4272fi;
4273
4274 eval "$ac_cv_use_config"
4275 if test "$no_cache" != 1; then
4276 echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp
4277 fi
4278
4279 if test "$wxUSE_CONFIG" = yes; then
4280 echo "$as_me:$LINENO: result: yes" >&5
4281echo "${ECHO_T}yes" >&6
4282 else
4283 echo "$as_me:$LINENO: result: no" >&5
4284echo "${ECHO_T}no" >&6
4285 fi
4286
4287
4288
4289 enablestring=
4290 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocols" >&5
4291echo $ECHO_N "checking for --${enablestring:-enable}-protocols... $ECHO_C" >&6
4292 no_cache=0
4293 # Check whether --enable-protocols or --disable-protocols was given.
4294if test "${enable_protocols+set}" = set; then
4295 enableval="$enable_protocols"
4296
4297 if test "$enableval" = yes; then
4298 ac_cv_use_protocols='wxUSE_PROTOCOL=yes'
4299 else
4300 ac_cv_use_protocols='wxUSE_PROTOCOL=no'
4301 fi
4302
4303else
4304
4305 LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
4306 if test "x$LINE" != x ; then
4307 eval "DEFAULT_$LINE"
4308 else
4309 no_cache=1
4310 fi
4311
4312 ac_cv_use_protocols='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
4313
4314fi;
4315
4316 eval "$ac_cv_use_protocols"
4317 if test "$no_cache" != 1; then
4318 echo $ac_cv_use_protocols >> ${wx_arg_cache_file}.tmp
4319 fi
4320
4321 if test "$wxUSE_PROTOCOL" = yes; then
4322 echo "$as_me:$LINENO: result: yes" >&5
4323echo "${ECHO_T}yes" >&6
4324 else
4325 echo "$as_me:$LINENO: result: no" >&5
4326echo "${ECHO_T}no" >&6
4327 fi
4328
4329
4330 enablestring=
4331 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ftp" >&5
4332echo $ECHO_N "checking for --${enablestring:-enable}-ftp... $ECHO_C" >&6
4333 no_cache=0
4334 # Check whether --enable-ftp or --disable-ftp was given.
4335if test "${enable_ftp+set}" = set; then
4336 enableval="$enable_ftp"
4337
4338 if test "$enableval" = yes; then
4339 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=yes'
4340 else
4341 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=no'
4342 fi
4343
4344else
4345
4346 LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
4347 if test "x$LINE" != x ; then
4348 eval "DEFAULT_$LINE"
4349 else
4350 no_cache=1
4351 fi
4352
4353 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
4354
4355fi;
4356
4357 eval "$ac_cv_use_ftp"
4358 if test "$no_cache" != 1; then
4359 echo $ac_cv_use_ftp >> ${wx_arg_cache_file}.tmp
4360 fi
4361
4362 if test "$wxUSE_PROTOCOL_FTP" = yes; then
4363 echo "$as_me:$LINENO: result: yes" >&5
4364echo "${ECHO_T}yes" >&6
4365 else
4366 echo "$as_me:$LINENO: result: no" >&5
4367echo "${ECHO_T}no" >&6
4368 fi
4369
4370
4371 enablestring=
4372 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-http" >&5
4373echo $ECHO_N "checking for --${enablestring:-enable}-http... $ECHO_C" >&6
4374 no_cache=0
4375 # Check whether --enable-http or --disable-http was given.
4376if test "${enable_http+set}" = set; then
4377 enableval="$enable_http"
4378
4379 if test "$enableval" = yes; then
4380 ac_cv_use_http='wxUSE_PROTOCOL_HTTP=yes'
4381 else
4382 ac_cv_use_http='wxUSE_PROTOCOL_HTTP=no'
4383 fi
4384
4385else
4386
4387 LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
4388 if test "x$LINE" != x ; then
4389 eval "DEFAULT_$LINE"
4390 else
4391 no_cache=1
4392 fi
4393
4394 ac_cv_use_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
4395
4396fi;
4397
4398 eval "$ac_cv_use_http"
4399 if test "$no_cache" != 1; then
4400 echo $ac_cv_use_http >> ${wx_arg_cache_file}.tmp
4401 fi
4402
4403 if test "$wxUSE_PROTOCOL_HTTP" = yes; then
4404 echo "$as_me:$LINENO: result: yes" >&5
4405echo "${ECHO_T}yes" >&6
4406 else
4407 echo "$as_me:$LINENO: result: no" >&5
4408echo "${ECHO_T}no" >&6
4409 fi
4410
4411
4412 enablestring=
4413 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fileproto" >&5
4414echo $ECHO_N "checking for --${enablestring:-enable}-fileproto... $ECHO_C" >&6
4415 no_cache=0
4416 # Check whether --enable-fileproto or --disable-fileproto was given.
4417if test "${enable_fileproto+set}" = set; then
4418 enableval="$enable_fileproto"
4419
4420 if test "$enableval" = yes; then
4421 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=yes'
4422 else
4423 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=no'
4424 fi
4425
4426else
4427
4428 LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
4429 if test "x$LINE" != x ; then
4430 eval "DEFAULT_$LINE"
4431 else
4432 no_cache=1
4433 fi
4434
4435 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
4436
4437fi;
4438
4439 eval "$ac_cv_use_fileproto"
4440 if test "$no_cache" != 1; then
4441 echo $ac_cv_use_fileproto >> ${wx_arg_cache_file}.tmp
4442 fi
4443
4444 if test "$wxUSE_PROTOCOL_FILE" = yes; then
4445 echo "$as_me:$LINENO: result: yes" >&5
4446echo "${ECHO_T}yes" >&6
4447 else
4448 echo "$as_me:$LINENO: result: no" >&5
4449echo "${ECHO_T}no" >&6
4450 fi
4451
4452
4453 enablestring=
4454 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sockets" >&5
4455echo $ECHO_N "checking for --${enablestring:-enable}-sockets... $ECHO_C" >&6
4456 no_cache=0
4457 # Check whether --enable-sockets or --disable-sockets was given.
4458if test "${enable_sockets+set}" = set; then
4459 enableval="$enable_sockets"
4460
4461 if test "$enableval" = yes; then
4462 ac_cv_use_sockets='wxUSE_SOCKETS=yes'
4463 else
4464 ac_cv_use_sockets='wxUSE_SOCKETS=no'
4465 fi
4466
4467else
4468
4469 LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}`
4470 if test "x$LINE" != x ; then
4471 eval "DEFAULT_$LINE"
4472 else
4473 no_cache=1
4474 fi
4475
4476 ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS
4477
4478fi;
4479
4480 eval "$ac_cv_use_sockets"
4481 if test "$no_cache" != 1; then
4482 echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp
4483 fi
4484
4485 if test "$wxUSE_SOCKETS" = yes; then
4486 echo "$as_me:$LINENO: result: yes" >&5
4487echo "${ECHO_T}yes" >&6
4488 else
4489 echo "$as_me:$LINENO: result: no" >&5
4490echo "${ECHO_T}no" >&6
4491 fi
4492
4493
4494 enablestring=
4495 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ole" >&5
4496echo $ECHO_N "checking for --${enablestring:-enable}-ole... $ECHO_C" >&6
4497 no_cache=0
4498 # Check whether --enable-ole or --disable-ole was given.
4499if test "${enable_ole+set}" = set; then
4500 enableval="$enable_ole"
4501
4502 if test "$enableval" = yes; then
4503 ac_cv_use_ole='wxUSE_OLE=yes'
4504 else
4505 ac_cv_use_ole='wxUSE_OLE=no'
4506 fi
4507
4508else
4509
4510 LINE=`grep "wxUSE_OLE" ${wx_arg_cache_file}`
4511 if test "x$LINE" != x ; then
4512 eval "DEFAULT_$LINE"
4513 else
4514 no_cache=1
4515 fi
4516
4517 ac_cv_use_ole='wxUSE_OLE='$DEFAULT_wxUSE_OLE
4518
4519fi;
4520
4521 eval "$ac_cv_use_ole"
4522 if test "$no_cache" != 1; then
4523 echo $ac_cv_use_ole >> ${wx_arg_cache_file}.tmp
4524 fi
4525
4526 if test "$wxUSE_OLE" = yes; then
4527 echo "$as_me:$LINENO: result: yes" >&5
4528echo "${ECHO_T}yes" >&6
4529 else
4530 echo "$as_me:$LINENO: result: no" >&5
4531echo "${ECHO_T}no" >&6
4532 fi
4533
4534
4535 enablestring=
4536 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dataobj" >&5
4537echo $ECHO_N "checking for --${enablestring:-enable}-dataobj... $ECHO_C" >&6
4538 no_cache=0
4539 # Check whether --enable-dataobj or --disable-dataobj was given.
4540if test "${enable_dataobj+set}" = set; then
4541 enableval="$enable_dataobj"
4542
4543 if test "$enableval" = yes; then
4544 ac_cv_use_dataobj='wxUSE_DATAOBJ=yes'
4545 else
4546 ac_cv_use_dataobj='wxUSE_DATAOBJ=no'
4547 fi
4548
4549else
4550
4551 LINE=`grep "wxUSE_DATAOBJ" ${wx_arg_cache_file}`
4552 if test "x$LINE" != x ; then
4553 eval "DEFAULT_$LINE"
4554 else
4555 no_cache=1
4556 fi
4557
4558 ac_cv_use_dataobj='wxUSE_DATAOBJ='$DEFAULT_wxUSE_DATAOBJ
4559
4560fi;
4561
4562 eval "$ac_cv_use_dataobj"
4563 if test "$no_cache" != 1; then
4564 echo $ac_cv_use_dataobj >> ${wx_arg_cache_file}.tmp
4565 fi
4566
4567 if test "$wxUSE_DATAOBJ" = yes; then
4568 echo "$as_me:$LINENO: result: yes" >&5
4569echo "${ECHO_T}yes" >&6
4570 else
4571 echo "$as_me:$LINENO: result: no" >&5
4572echo "${ECHO_T}no" >&6
4573 fi
4574
4575
4576
4577 enablestring=
4578 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ipc" >&5
4579echo $ECHO_N "checking for --${enablestring:-enable}-ipc... $ECHO_C" >&6
4580 no_cache=0
4581 # Check whether --enable-ipc or --disable-ipc was given.
4582if test "${enable_ipc+set}" = set; then
4583 enableval="$enable_ipc"
4584
4585 if test "$enableval" = yes; then
4586 ac_cv_use_ipc='wxUSE_IPC=yes'
4587 else
4588 ac_cv_use_ipc='wxUSE_IPC=no'
4589 fi
4590
4591else
4592
4593 LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}`
4594 if test "x$LINE" != x ; then
4595 eval "DEFAULT_$LINE"
4596 else
4597 no_cache=1
4598 fi
4599
4600 ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC
4601
4602fi;
4603
4604 eval "$ac_cv_use_ipc"
4605 if test "$no_cache" != 1; then
4606 echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp
4607 fi
4608
4609 if test "$wxUSE_IPC" = yes; then
4610 echo "$as_me:$LINENO: result: yes" >&5
4611echo "${ECHO_T}yes" >&6
4612 else
4613 echo "$as_me:$LINENO: result: no" >&5
4614echo "${ECHO_T}no" >&6
4615 fi
4616
4617
4618
4619 enablestring=
4620 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-apple_ieee" >&5
4621echo $ECHO_N "checking for --${enablestring:-enable}-apple_ieee... $ECHO_C" >&6
4622 no_cache=0
4623 # Check whether --enable-apple_ieee or --disable-apple_ieee was given.
4624if test "${enable_apple_ieee+set}" = set; then
4625 enableval="$enable_apple_ieee"
4626
4627 if test "$enableval" = yes; then
4628 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes'
4629 else
4630 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no'
4631 fi
4632
4633else
4634
4635 LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}`
4636 if test "x$LINE" != x ; then
4637 eval "DEFAULT_$LINE"
4638 else
4639 no_cache=1
4640 fi
4641
4642 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE
4643
4644fi;
4645
4646 eval "$ac_cv_use_apple_ieee"
4647 if test "$no_cache" != 1; then
4648 echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp
4649 fi
4650
4651 if test "$wxUSE_APPLE_IEEE" = yes; then
4652 echo "$as_me:$LINENO: result: yes" >&5
4653echo "${ECHO_T}yes" >&6
4654 else
4655 echo "$as_me:$LINENO: result: no" >&5
4656echo "${ECHO_T}no" >&6
4657 fi
4658
4659
4660 enablestring=
4661 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-catch_segvs" >&5
4662echo $ECHO_N "checking for --${enablestring:-enable}-catch_segvs... $ECHO_C" >&6
4663 no_cache=0
4664 # Check whether --enable-catch_segvs or --disable-catch_segvs was given.
4665if test "${enable_catch_segvs+set}" = set; then
4666 enableval="$enable_catch_segvs"
4667
4668 if test "$enableval" = yes; then
4669 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes'
4670 else
4671 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no'
4672 fi
4673
4674else
4675
4676 LINE=`grep "wxUSE_ON_FATAL_EXCEPTION" ${wx_arg_cache_file}`
4677 if test "x$LINE" != x ; then
4678 eval "DEFAULT_$LINE"
4679 else
4680 no_cache=1
4681 fi
4682
4683 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION='$DEFAULT_wxUSE_ON_FATAL_EXCEPTION
4684
4685fi;
4686
4687 eval "$ac_cv_use_catch_segvs"
4688 if test "$no_cache" != 1; then
4689 echo $ac_cv_use_catch_segvs >> ${wx_arg_cache_file}.tmp
4690 fi
4691
4692 if test "$wxUSE_ON_FATAL_EXCEPTION" = yes; then
4693 echo "$as_me:$LINENO: result: yes" >&5
4694echo "${ECHO_T}yes" >&6
4695 else
4696 echo "$as_me:$LINENO: result: no" >&5
4697echo "${ECHO_T}no" >&6
4698 fi
4699
4700
4701 enablestring=
4702 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-cmdline" >&5
4703echo $ECHO_N "checking for --${enablestring:-enable}-cmdline... $ECHO_C" >&6
4704 no_cache=0
4705 # Check whether --enable-cmdline or --disable-cmdline was given.
4706if test "${enable_cmdline+set}" = set; then
4707 enableval="$enable_cmdline"
4708
4709 if test "$enableval" = yes; then
4710 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=yes'
4711 else
4712 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=no'
4713 fi
4714
4715else
4716
4717 LINE=`grep "wxUSE_CMDLINE_PARSER" ${wx_arg_cache_file}`
4718 if test "x$LINE" != x ; then
4719 eval "DEFAULT_$LINE"
4720 else
4721 no_cache=1
4722 fi
4723
4724 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER='$DEFAULT_wxUSE_CMDLINE_PARSER
4725
4726fi;
4727
4728 eval "$ac_cv_use_cmdline"
4729 if test "$no_cache" != 1; then
4730 echo $ac_cv_use_cmdline >> ${wx_arg_cache_file}.tmp
4731 fi
4732
4733 if test "$wxUSE_CMDLINE_PARSER" = yes; then
4734 echo "$as_me:$LINENO: result: yes" >&5
4735echo "${ECHO_T}yes" >&6
4736 else
4737 echo "$as_me:$LINENO: result: no" >&5
4738echo "${ECHO_T}no" >&6
4739 fi
4740
4741
4742 enablestring=
4743 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-datetime" >&5
4744echo $ECHO_N "checking for --${enablestring:-enable}-datetime... $ECHO_C" >&6
4745 no_cache=0
4746 # Check whether --enable-datetime or --disable-datetime was given.
4747if test "${enable_datetime+set}" = set; then
4748 enableval="$enable_datetime"
4749
4750 if test "$enableval" = yes; then
4751 ac_cv_use_datetime='wxUSE_DATETIME=yes'
4752 else
4753 ac_cv_use_datetime='wxUSE_DATETIME=no'
4754 fi
4755
4756else
4757
4758 LINE=`grep "wxUSE_DATETIME" ${wx_arg_cache_file}`
4759 if test "x$LINE" != x ; then
4760 eval "DEFAULT_$LINE"
4761 else
4762 no_cache=1
4763 fi
4764
4765 ac_cv_use_datetime='wxUSE_DATETIME='$DEFAULT_wxUSE_DATETIME
4766
4767fi;
4768
4769 eval "$ac_cv_use_datetime"
4770 if test "$no_cache" != 1; then
4771 echo $ac_cv_use_datetime >> ${wx_arg_cache_file}.tmp
4772 fi
4773
4774 if test "$wxUSE_DATETIME" = yes; then
4775 echo "$as_me:$LINENO: result: yes" >&5
4776echo "${ECHO_T}yes" >&6
4777 else
4778 echo "$as_me:$LINENO: result: no" >&5
4779echo "${ECHO_T}no" >&6
4780 fi
4781
4782
4783 enablestring=
4784 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dialupman" >&5
4785echo $ECHO_N "checking for --${enablestring:-enable}-dialupman... $ECHO_C" >&6
4786 no_cache=0
4787 # Check whether --enable-dialupman or --disable-dialupman was given.
4788if test "${enable_dialupman+set}" = set; then
4789 enableval="$enable_dialupman"
4790
4791 if test "$enableval" = yes; then
4792 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes'
4793 else
4794 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no'
4795 fi
4796
4797else
4798
4799 LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}`
4800 if test "x$LINE" != x ; then
4801 eval "DEFAULT_$LINE"
4802 else
4803 no_cache=1
4804 fi
4805
4806 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER
4807
4808fi;
4809
4810 eval "$ac_cv_use_dialupman"
4811 if test "$no_cache" != 1; then
4812 echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp
4813 fi
4814
4815 if test "$wxUSE_DIALUP_MANAGER" = yes; then
4816 echo "$as_me:$LINENO: result: yes" >&5
4817echo "${ECHO_T}yes" >&6
4818 else
4819 echo "$as_me:$LINENO: result: no" >&5
4820echo "${ECHO_T}no" >&6
4821 fi
4822
4823
4824 enablestring=
4825 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynlib" >&5
4826echo $ECHO_N "checking for --${enablestring:-enable}-dynlib... $ECHO_C" >&6
4827 no_cache=0
4828 # Check whether --enable-dynlib or --disable-dynlib was given.
4829if test "${enable_dynlib+set}" = set; then
4830 enableval="$enable_dynlib"
4831
4832 if test "$enableval" = yes; then
4833 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes'
4834 else
4835 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no'
4836 fi
4837
4838else
4839
4840 LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}`
4841 if test "x$LINE" != x ; then
4842 eval "DEFAULT_$LINE"
4843 else
4844 no_cache=1
4845 fi
4846
4847 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS
4848
4849fi;
4850
4851 eval "$ac_cv_use_dynlib"
4852 if test "$no_cache" != 1; then
4853 echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp
4854 fi
4855
4856 if test "$wxUSE_DYNLIB_CLASS" = yes; then
4857 echo "$as_me:$LINENO: result: yes" >&5
4858echo "${ECHO_T}yes" >&6
4859 else
4860 echo "$as_me:$LINENO: result: no" >&5
4861echo "${ECHO_T}no" >&6
4862 fi
4863
4864
4865 enablestring=
4866 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynamicloader" >&5
4867echo $ECHO_N "checking for --${enablestring:-enable}-dynamicloader... $ECHO_C" >&6
4868 no_cache=0
4869 # Check whether --enable-dynamicloader or --disable-dynamicloader was given.
4870if test "${enable_dynamicloader+set}" = set; then
4871 enableval="$enable_dynamicloader"
4872
4873 if test "$enableval" = yes; then
4874 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=yes'
4875 else
4876 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=no'
4877 fi
4878
4879else
4880
4881 LINE=`grep "wxUSE_DYNAMIC_LOADER" ${wx_arg_cache_file}`
4882 if test "x$LINE" != x ; then
4883 eval "DEFAULT_$LINE"
4884 else
4885 no_cache=1
4886 fi
4887
4888 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER='$DEFAULT_wxUSE_DYNAMIC_LOADER
4889
4890fi;
4891
4892 eval "$ac_cv_use_dynamicloader"
4893 if test "$no_cache" != 1; then
4894 echo $ac_cv_use_dynamicloader >> ${wx_arg_cache_file}.tmp
4895 fi
4896
4897 if test "$wxUSE_DYNAMIC_LOADER" = yes; then
4898 echo "$as_me:$LINENO: result: yes" >&5
4899echo "${ECHO_T}yes" >&6
4900 else
4901 echo "$as_me:$LINENO: result: no" >&5
4902echo "${ECHO_T}no" >&6
4903 fi
4904
4905
4906 enablestring=
4907 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-exceptions" >&5
4908echo $ECHO_N "checking for --${enablestring:-enable}-exceptions... $ECHO_C" >&6
4909 no_cache=0
4910 # Check whether --enable-exceptions or --disable-exceptions was given.
4911if test "${enable_exceptions+set}" = set; then
4912 enableval="$enable_exceptions"
4913
4914 if test "$enableval" = yes; then
4915 ac_cv_use_exceptions='wxUSE_EXCEPTIONS=yes'
4916 else
4917 ac_cv_use_exceptions='wxUSE_EXCEPTIONS=no'
4918 fi
4919
4920else
4921
4922 LINE=`grep "wxUSE_EXCEPTIONS" ${wx_arg_cache_file}`
4923 if test "x$LINE" != x ; then
4924 eval "DEFAULT_$LINE"
4925 else
4926 no_cache=1
4927 fi
4928
4929 ac_cv_use_exceptions='wxUSE_EXCEPTIONS='$DEFAULT_wxUSE_EXCEPTIONS
4930
4931fi;
4932
4933 eval "$ac_cv_use_exceptions"
4934 if test "$no_cache" != 1; then
4935 echo $ac_cv_use_exceptions >> ${wx_arg_cache_file}.tmp
4936 fi
4937
4938 if test "$wxUSE_EXCEPTIONS" = yes; then
4939 echo "$as_me:$LINENO: result: yes" >&5
4940echo "${ECHO_T}yes" >&6
4941 else
4942 echo "$as_me:$LINENO: result: no" >&5
4943echo "${ECHO_T}no" >&6
4944 fi
4945
4946
4947 enablestring=
4948 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ffile" >&5
4949echo $ECHO_N "checking for --${enablestring:-enable}-ffile... $ECHO_C" >&6
4950 no_cache=0
4951 # Check whether --enable-ffile or --disable-ffile was given.
4952if test "${enable_ffile+set}" = set; then
4953 enableval="$enable_ffile"
4954
4955 if test "$enableval" = yes; then
4956 ac_cv_use_ffile='wxUSE_FFILE=yes'
4957 else
4958 ac_cv_use_ffile='wxUSE_FFILE=no'
4959 fi
4960
4961else
4962
4963 LINE=`grep "wxUSE_FFILE" ${wx_arg_cache_file}`
4964 if test "x$LINE" != x ; then
4965 eval "DEFAULT_$LINE"
4966 else
4967 no_cache=1
4968 fi
4969
4970 ac_cv_use_ffile='wxUSE_FFILE='$DEFAULT_wxUSE_FFILE
4971
4972fi;
4973
4974 eval "$ac_cv_use_ffile"
4975 if test "$no_cache" != 1; then
4976 echo $ac_cv_use_ffile >> ${wx_arg_cache_file}.tmp
4977 fi
4978
4979 if test "$wxUSE_FFILE" = yes; then
4980 echo "$as_me:$LINENO: result: yes" >&5
4981echo "${ECHO_T}yes" >&6
4982 else
4983 echo "$as_me:$LINENO: result: no" >&5
4984echo "${ECHO_T}no" >&6
4985 fi
4986
4987
4988 enablestring=
4989 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-file" >&5
4990echo $ECHO_N "checking for --${enablestring:-enable}-file... $ECHO_C" >&6
4991 no_cache=0
4992 # Check whether --enable-file or --disable-file was given.
4993if test "${enable_file+set}" = set; then
4994 enableval="$enable_file"
4995
4996 if test "$enableval" = yes; then
4997 ac_cv_use_file='wxUSE_FILE=yes'
4998 else
4999 ac_cv_use_file='wxUSE_FILE=no'
5000 fi
5001
5002else
5003
5004 LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}`
5005 if test "x$LINE" != x ; then
5006 eval "DEFAULT_$LINE"
5007 else
5008 no_cache=1
5009 fi
5010
5011 ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE
5012
5013fi;
5014
5015 eval "$ac_cv_use_file"
5016 if test "$no_cache" != 1; then
5017 echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp
5018 fi
5019
5020 if test "$wxUSE_FILE" = yes; then
5021 echo "$as_me:$LINENO: result: yes" >&5
5022echo "${ECHO_T}yes" >&6
5023 else
5024 echo "$as_me:$LINENO: result: no" >&5
5025echo "${ECHO_T}no" >&6
5026 fi
5027
5028
5029 enablestring=
5030 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filesystem" >&5
5031echo $ECHO_N "checking for --${enablestring:-enable}-filesystem... $ECHO_C" >&6
5032 no_cache=0
5033 # Check whether --enable-filesystem or --disable-filesystem was given.
5034if test "${enable_filesystem+set}" = set; then
5035 enableval="$enable_filesystem"
5036
5037 if test "$enableval" = yes; then
5038 ac_cv_use_filesystem='wxUSE_FILESYSTEM=yes'
5039 else
5040 ac_cv_use_filesystem='wxUSE_FILESYSTEM=no'
5041 fi
5042
5043else
5044
5045 LINE=`grep "wxUSE_FILESYSTEM" ${wx_arg_cache_file}`
5046 if test "x$LINE" != x ; then
5047 eval "DEFAULT_$LINE"
5048 else
5049 no_cache=1
5050 fi
5051
5052 ac_cv_use_filesystem='wxUSE_FILESYSTEM='$DEFAULT_wxUSE_FILESYSTEM
5053
5054fi;
5055
5056 eval "$ac_cv_use_filesystem"
5057 if test "$no_cache" != 1; then
5058 echo $ac_cv_use_filesystem >> ${wx_arg_cache_file}.tmp
5059 fi
5060
5061 if test "$wxUSE_FILESYSTEM" = yes; then
5062 echo "$as_me:$LINENO: result: yes" >&5
5063echo "${ECHO_T}yes" >&6
5064 else
5065 echo "$as_me:$LINENO: result: no" >&5
5066echo "${ECHO_T}no" >&6
5067 fi
5068
5069
5070 enablestring=
5071 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontmap" >&5
5072echo $ECHO_N "checking for --${enablestring:-enable}-fontmap... $ECHO_C" >&6
5073 no_cache=0
5074 # Check whether --enable-fontmap or --disable-fontmap was given.
5075if test "${enable_fontmap+set}" = set; then
5076 enableval="$enable_fontmap"
5077
5078 if test "$enableval" = yes; then
5079 ac_cv_use_fontmap='wxUSE_FONTMAP=yes'
5080 else
5081 ac_cv_use_fontmap='wxUSE_FONTMAP=no'
5082 fi
5083
5084else
5085
5086 LINE=`grep "wxUSE_FONTMAP" ${wx_arg_cache_file}`
5087 if test "x$LINE" != x ; then
5088 eval "DEFAULT_$LINE"
5089 else
5090 no_cache=1
5091 fi
5092
5093 ac_cv_use_fontmap='wxUSE_FONTMAP='$DEFAULT_wxUSE_FONTMAP
5094
5095fi;
5096
5097 eval "$ac_cv_use_fontmap"
5098 if test "$no_cache" != 1; then
5099 echo $ac_cv_use_fontmap >> ${wx_arg_cache_file}.tmp
5100 fi
5101
5102 if test "$wxUSE_FONTMAP" = yes; then
5103 echo "$as_me:$LINENO: result: yes" >&5
5104echo "${ECHO_T}yes" >&6
5105 else
5106 echo "$as_me:$LINENO: result: no" >&5
5107echo "${ECHO_T}no" >&6
5108 fi
5109
5110
5111 enablestring=
5112 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_inet" >&5
5113echo $ECHO_N "checking for --${enablestring:-enable}-fs_inet... $ECHO_C" >&6
5114 no_cache=0
5115 # Check whether --enable-fs_inet or --disable-fs_inet was given.
5116if test "${enable_fs_inet+set}" = set; then
5117 enableval="$enable_fs_inet"
5118
5119 if test "$enableval" = yes; then
5120 ac_cv_use_fs_inet='wxUSE_FS_INET=yes'
5121 else
5122 ac_cv_use_fs_inet='wxUSE_FS_INET=no'
5123 fi
5124
5125else
5126
5127 LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}`
5128 if test "x$LINE" != x ; then
5129 eval "DEFAULT_$LINE"
5130 else
5131 no_cache=1
5132 fi
5133
5134 ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET
5135
5136fi;
5137
5138 eval "$ac_cv_use_fs_inet"
5139 if test "$no_cache" != 1; then
5140 echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp
5141 fi
5142
5143 if test "$wxUSE_FS_INET" = yes; then
5144 echo "$as_me:$LINENO: result: yes" >&5
5145echo "${ECHO_T}yes" >&6
5146 else
5147 echo "$as_me:$LINENO: result: no" >&5
5148echo "${ECHO_T}no" >&6
5149 fi
5150
5151
5152 enablestring=
5153 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_zip" >&5
5154echo $ECHO_N "checking for --${enablestring:-enable}-fs_zip... $ECHO_C" >&6
5155 no_cache=0
5156 # Check whether --enable-fs_zip or --disable-fs_zip was given.
5157if test "${enable_fs_zip+set}" = set; then
5158 enableval="$enable_fs_zip"
5159
5160 if test "$enableval" = yes; then
5161 ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes'
5162 else
5163 ac_cv_use_fs_zip='wxUSE_FS_ZIP=no'
5164 fi
5165
5166else
5167
5168 LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}`
5169 if test "x$LINE" != x ; then
5170 eval "DEFAULT_$LINE"
5171 else
5172 no_cache=1
5173 fi
5174
5175 ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP
5176
5177fi;
5178
5179 eval "$ac_cv_use_fs_zip"
5180 if test "$no_cache" != 1; then
5181 echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp
5182 fi
5183
5184 if test "$wxUSE_FS_ZIP" = yes; then
5185 echo "$as_me:$LINENO: result: yes" >&5
5186echo "${ECHO_T}yes" >&6
5187 else
5188 echo "$as_me:$LINENO: result: no" >&5
5189echo "${ECHO_T}no" >&6
5190 fi
5191
5192
5193 enablestring=
5194 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-geometry" >&5
5195echo $ECHO_N "checking for --${enablestring:-enable}-geometry... $ECHO_C" >&6
5196 no_cache=0
5197 # Check whether --enable-geometry or --disable-geometry was given.
5198if test "${enable_geometry+set}" = set; then
5199 enableval="$enable_geometry"
5200
5201 if test "$enableval" = yes; then
5202 ac_cv_use_geometry='wxUSE_GEOMETRY=yes'
5203 else
5204 ac_cv_use_geometry='wxUSE_GEOMETRY=no'
5205 fi
5206
5207else
5208
5209 LINE=`grep "wxUSE_GEOMETRY" ${wx_arg_cache_file}`
5210 if test "x$LINE" != x ; then
5211 eval "DEFAULT_$LINE"
5212 else
5213 no_cache=1
5214 fi
5215
5216 ac_cv_use_geometry='wxUSE_GEOMETRY='$DEFAULT_wxUSE_GEOMETRY
5217
5218fi;
5219
5220 eval "$ac_cv_use_geometry"
5221 if test "$no_cache" != 1; then
5222 echo $ac_cv_use_geometry >> ${wx_arg_cache_file}.tmp
5223 fi
5224
5225 if test "$wxUSE_GEOMETRY" = yes; then
5226 echo "$as_me:$LINENO: result: yes" >&5
5227echo "${ECHO_T}yes" >&6
5228 else
5229 echo "$as_me:$LINENO: result: no" >&5
5230echo "${ECHO_T}no" >&6
5231 fi
5232
5233
5234 enablestring=
5235 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-log" >&5
5236echo $ECHO_N "checking for --${enablestring:-enable}-log... $ECHO_C" >&6
5237 no_cache=0
5238 # Check whether --enable-log or --disable-log was given.
5239if test "${enable_log+set}" = set; then
5240 enableval="$enable_log"
5241
5242 if test "$enableval" = yes; then
5243 ac_cv_use_log='wxUSE_LOG=yes'
5244 else
5245 ac_cv_use_log='wxUSE_LOG=no'
5246 fi
5247
5248else
5249
5250 LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}`
5251 if test "x$LINE" != x ; then
5252 eval "DEFAULT_$LINE"
5253 else
5254 no_cache=1
5255 fi
5256
5257 ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG
5258
5259fi;
5260
5261 eval "$ac_cv_use_log"
5262 if test "$no_cache" != 1; then
5263 echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp
5264 fi
5265
5266 if test "$wxUSE_LOG" = yes; then
5267 echo "$as_me:$LINENO: result: yes" >&5
5268echo "${ECHO_T}yes" >&6
5269 else
5270 echo "$as_me:$LINENO: result: no" >&5
5271echo "${ECHO_T}no" >&6
5272 fi
5273
5274
5275 enablestring=
5276 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-longlong" >&5
5277echo $ECHO_N "checking for --${enablestring:-enable}-longlong... $ECHO_C" >&6
5278 no_cache=0
5279 # Check whether --enable-longlong or --disable-longlong was given.
5280if test "${enable_longlong+set}" = set; then
5281 enableval="$enable_longlong"
5282
5283 if test "$enableval" = yes; then
5284 ac_cv_use_longlong='wxUSE_LONGLONG=yes'
5285 else
5286 ac_cv_use_longlong='wxUSE_LONGLONG=no'
5287 fi
5288
5289else
5290
5291 LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}`
5292 if test "x$LINE" != x ; then
5293 eval "DEFAULT_$LINE"
5294 else
5295 no_cache=1
5296 fi
5297
5298 ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG
5299
5300fi;
5301
5302 eval "$ac_cv_use_longlong"
5303 if test "$no_cache" != 1; then
5304 echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp
5305 fi
5306
5307 if test "$wxUSE_LONGLONG" = yes; then
5308 echo "$as_me:$LINENO: result: yes" >&5
5309echo "${ECHO_T}yes" >&6
5310 else
5311 echo "$as_me:$LINENO: result: no" >&5
5312echo "${ECHO_T}no" >&6
5313 fi
5314
5315
5316 enablestring=
5317 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mimetype" >&5
5318echo $ECHO_N "checking for --${enablestring:-enable}-mimetype... $ECHO_C" >&6
5319 no_cache=0
5320 # Check whether --enable-mimetype or --disable-mimetype was given.
5321if test "${enable_mimetype+set}" = set; then
5322 enableval="$enable_mimetype"
5323
5324 if test "$enableval" = yes; then
5325 ac_cv_use_mimetype='wxUSE_MIMETYPE=yes'
5326 else
5327 ac_cv_use_mimetype='wxUSE_MIMETYPE=no'
5328 fi
5329
5330else
5331
5332 LINE=`grep "wxUSE_MIMETYPE" ${wx_arg_cache_file}`
5333 if test "x$LINE" != x ; then
5334 eval "DEFAULT_$LINE"
5335 else
5336 no_cache=1
5337 fi
5338
5339 ac_cv_use_mimetype='wxUSE_MIMETYPE='$DEFAULT_wxUSE_MIMETYPE
5340
5341fi;
5342
5343 eval "$ac_cv_use_mimetype"
5344 if test "$no_cache" != 1; then
5345 echo $ac_cv_use_mimetype >> ${wx_arg_cache_file}.tmp
5346 fi
5347
5348 if test "$wxUSE_MIMETYPE" = yes; then
5349 echo "$as_me:$LINENO: result: yes" >&5
5350echo "${ECHO_T}yes" >&6
5351 else
5352 echo "$as_me:$LINENO: result: no" >&5
5353echo "${ECHO_T}no" >&6
5354 fi
5355
5356
5357 enablestring=
5358 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mslu" >&5
5359echo $ECHO_N "checking for --${enablestring:-enable}-mslu... $ECHO_C" >&6
5360 no_cache=0
5361 # Check whether --enable-mslu or --disable-mslu was given.
5362if test "${enable_mslu+set}" = set; then
5363 enableval="$enable_mslu"
5364
5365 if test "$enableval" = yes; then
5366 ac_cv_use_mslu='wxUSE_UNICODE_MSLU=yes'
5367 else
5368 ac_cv_use_mslu='wxUSE_UNICODE_MSLU=no'
5369 fi
5370
5371else
5372
5373 LINE=`grep "wxUSE_UNICODE_MSLU" ${wx_arg_cache_file}`
5374 if test "x$LINE" != x ; then
5375 eval "DEFAULT_$LINE"
5376 else
5377 no_cache=1
5378 fi
5379
5380 ac_cv_use_mslu='wxUSE_UNICODE_MSLU='$DEFAULT_wxUSE_UNICODE_MSLU
5381
5382fi;
5383
5384 eval "$ac_cv_use_mslu"
5385 if test "$no_cache" != 1; then
5386 echo $ac_cv_use_mslu >> ${wx_arg_cache_file}.tmp
5387 fi
5388
5389 if test "$wxUSE_UNICODE_MSLU" = yes; then
5390 echo "$as_me:$LINENO: result: yes" >&5
5391echo "${ECHO_T}yes" >&6
5392 else
5393 echo "$as_me:$LINENO: result: no" >&5
5394echo "${ECHO_T}no" >&6
5395 fi
5396
5397
5398 enablestring=
5399 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-snglinst" >&5
5400echo $ECHO_N "checking for --${enablestring:-enable}-snglinst... $ECHO_C" >&6
5401 no_cache=0
5402 # Check whether --enable-snglinst or --disable-snglinst was given.
5403if test "${enable_snglinst+set}" = set; then
5404 enableval="$enable_snglinst"
5405
5406 if test "$enableval" = yes; then
5407 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes'
5408 else
5409 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no'
5410 fi
5411
5412else
5413
5414 LINE=`grep "wxUSE_SNGLINST_CHECKER" ${wx_arg_cache_file}`
5415 if test "x$LINE" != x ; then
5416 eval "DEFAULT_$LINE"
5417 else
5418 no_cache=1
5419 fi
5420
5421 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER='$DEFAULT_wxUSE_SNGLINST_CHECKER
5422
5423fi;
5424
5425 eval "$ac_cv_use_snglinst"
5426 if test "$no_cache" != 1; then
5427 echo $ac_cv_use_snglinst >> ${wx_arg_cache_file}.tmp
5428 fi
5429
5430 if test "$wxUSE_SNGLINST_CHECKER" = yes; then
5431 echo "$as_me:$LINENO: result: yes" >&5
5432echo "${ECHO_T}yes" >&6
5433 else
5434 echo "$as_me:$LINENO: result: no" >&5
5435echo "${ECHO_T}no" >&6
5436 fi
5437
5438
5439 enablestring=
5440 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-streams" >&5
5441echo $ECHO_N "checking for --${enablestring:-enable}-streams... $ECHO_C" >&6
5442 no_cache=0
5443 # Check whether --enable-streams or --disable-streams was given.
5444if test "${enable_streams+set}" = set; then
5445 enableval="$enable_streams"
5446
5447 if test "$enableval" = yes; then
5448 ac_cv_use_streams='wxUSE_STREAMS=yes'
5449 else
5450 ac_cv_use_streams='wxUSE_STREAMS=no'
5451 fi
5452
5453else
5454
5455 LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}`
5456 if test "x$LINE" != x ; then
5457 eval "DEFAULT_$LINE"
5458 else
5459 no_cache=1
5460 fi
5461
5462 ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS
5463
5464fi;
5465
5466 eval "$ac_cv_use_streams"
5467 if test "$no_cache" != 1; then
5468 echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp
5469 fi
5470
5471 if test "$wxUSE_STREAMS" = yes; then
5472 echo "$as_me:$LINENO: result: yes" >&5
5473echo "${ECHO_T}yes" >&6
5474 else
5475 echo "$as_me:$LINENO: result: no" >&5
5476echo "${ECHO_T}no" >&6
5477 fi
5478
5479
5480 enablestring=
5481 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-std_iostreams" >&5
5482echo $ECHO_N "checking for --${enablestring:-enable}-std_iostreams... $ECHO_C" >&6
5483 no_cache=0
5484 # Check whether --enable-std_iostreams or --disable-std_iostreams was given.
5485if test "${enable_std_iostreams+set}" = set; then
5486 enableval="$enable_std_iostreams"
5487
5488 if test "$enableval" = yes; then
5489 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes'
5490 else
5491 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no'
5492 fi
5493
5494else
5495
5496 LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}`
5497 if test "x$LINE" != x ; then
5498 eval "DEFAULT_$LINE"
5499 else
5500 no_cache=1
5501 fi
5502
5503 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM
5504
5505fi;
5506
5507 eval "$ac_cv_use_std_iostreams"
5508 if test "$no_cache" != 1; then
5509 echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp
5510 fi
5511
5512 if test "$wxUSE_STD_IOSTREAM" = yes; then
5513 echo "$as_me:$LINENO: result: yes" >&5
5514echo "${ECHO_T}yes" >&6
5515 else
5516 echo "$as_me:$LINENO: result: no" >&5
5517echo "${ECHO_T}no" >&6
5518 fi
5519
5520
5521 enablestring=
5522 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stopwatch" >&5
5523echo $ECHO_N "checking for --${enablestring:-enable}-stopwatch... $ECHO_C" >&6
5524 no_cache=0
5525 # Check whether --enable-stopwatch or --disable-stopwatch was given.
5526if test "${enable_stopwatch+set}" = set; then
5527 enableval="$enable_stopwatch"
5528
5529 if test "$enableval" = yes; then
5530 ac_cv_use_stopwatch='wxUSE_STOPWATCH=yes'
5531 else
5532 ac_cv_use_stopwatch='wxUSE_STOPWATCH=no'
5533 fi
5534
5535else
5536
5537 LINE=`grep "wxUSE_STOPWATCH" ${wx_arg_cache_file}`
5538 if test "x$LINE" != x ; then
5539 eval "DEFAULT_$LINE"
5540 else
5541 no_cache=1
5542 fi
5543
5544 ac_cv_use_stopwatch='wxUSE_STOPWATCH='$DEFAULT_wxUSE_STOPWATCH
5545
5546fi;
5547
5548 eval "$ac_cv_use_stopwatch"
5549 if test "$no_cache" != 1; then
5550 echo $ac_cv_use_stopwatch >> ${wx_arg_cache_file}.tmp
5551 fi
5552
5553 if test "$wxUSE_STOPWATCH" = yes; then
5554 echo "$as_me:$LINENO: result: yes" >&5
5555echo "${ECHO_T}yes" >&6
5556 else
5557 echo "$as_me:$LINENO: result: no" >&5
5558echo "${ECHO_T}no" >&6
5559 fi
5560
5561
5562 enablestring=
5563 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-system_options" >&5
5564echo $ECHO_N "checking for --${enablestring:-enable}-system_options... $ECHO_C" >&6
5565 no_cache=0
5566 # Check whether --enable-system_options or --disable-system_options was given.
5567if test "${enable_system_options+set}" = set; then
5568 enableval="$enable_system_options"
5569
5570 if test "$enableval" = yes; then
5571 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=yes'
5572 else
5573 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=no'
5574 fi
5575
5576else
5577
5578 LINE=`grep "wxUSE_SYSTEM_OPTIONS" ${wx_arg_cache_file}`
5579 if test "x$LINE" != x ; then
5580 eval "DEFAULT_$LINE"
5581 else
5582 no_cache=1
5583 fi
5584
5585 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS='$DEFAULT_wxUSE_SYSTEM_OPTIONS
5586
5587fi;
5588
5589 eval "$ac_cv_use_system_options"
5590 if test "$no_cache" != 1; then
5591 echo $ac_cv_use_system_options >> ${wx_arg_cache_file}.tmp
5592 fi
5593
5594 if test "$wxUSE_SYSTEM_OPTIONS" = yes; then
5595 echo "$as_me:$LINENO: result: yes" >&5
5596echo "${ECHO_T}yes" >&6
5597 else
5598 echo "$as_me:$LINENO: result: no" >&5
5599echo "${ECHO_T}no" >&6
5600 fi
5601
5602
5603 enablestring=
5604 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textbuf" >&5
5605echo $ECHO_N "checking for --${enablestring:-enable}-textbuf... $ECHO_C" >&6
5606 no_cache=0
5607 # Check whether --enable-textbuf or --disable-textbuf was given.
5608if test "${enable_textbuf+set}" = set; then
5609 enableval="$enable_textbuf"
5610
5611 if test "$enableval" = yes; then
5612 ac_cv_use_textbuf='wxUSE_TEXTBUFFER=yes'
5613 else
5614 ac_cv_use_textbuf='wxUSE_TEXTBUFFER=no'
5615 fi
5616
5617else
5618
5619 LINE=`grep "wxUSE_TEXTBUFFER" ${wx_arg_cache_file}`
5620 if test "x$LINE" != x ; then
5621 eval "DEFAULT_$LINE"
5622 else
5623 no_cache=1
5624 fi
5625
5626 ac_cv_use_textbuf='wxUSE_TEXTBUFFER='$DEFAULT_wxUSE_TEXTBUFFER
5627
5628fi;
5629
5630 eval "$ac_cv_use_textbuf"
5631 if test "$no_cache" != 1; then
5632 echo $ac_cv_use_textbuf >> ${wx_arg_cache_file}.tmp
5633 fi
5634
5635 if test "$wxUSE_TEXTBUFFER" = yes; then
5636 echo "$as_me:$LINENO: result: yes" >&5
5637echo "${ECHO_T}yes" >&6
5638 else
5639 echo "$as_me:$LINENO: result: no" >&5
5640echo "${ECHO_T}no" >&6
5641 fi
5642
5643
5644 enablestring=
5645 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textfile" >&5
5646echo $ECHO_N "checking for --${enablestring:-enable}-textfile... $ECHO_C" >&6
5647 no_cache=0
5648 # Check whether --enable-textfile or --disable-textfile was given.
5649if test "${enable_textfile+set}" = set; then
5650 enableval="$enable_textfile"
5651
5652 if test "$enableval" = yes; then
5653 ac_cv_use_textfile='wxUSE_TEXTFILE=yes'
5654 else
5655 ac_cv_use_textfile='wxUSE_TEXTFILE=no'
5656 fi
5657
5658else
5659
5660 LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}`
5661 if test "x$LINE" != x ; then
5662 eval "DEFAULT_$LINE"
5663 else
5664 no_cache=1
5665 fi
5666
5667 ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE
5668
5669fi;
5670
5671 eval "$ac_cv_use_textfile"
5672 if test "$no_cache" != 1; then
5673 echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp
5674 fi
5675
5676 if test "$wxUSE_TEXTFILE" = yes; then
5677 echo "$as_me:$LINENO: result: yes" >&5
5678echo "${ECHO_T}yes" >&6
5679 else
5680 echo "$as_me:$LINENO: result: no" >&5
5681echo "${ECHO_T}no" >&6
5682 fi
5683
5684
5685 enablestring=
5686 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-timer" >&5
5687echo $ECHO_N "checking for --${enablestring:-enable}-timer... $ECHO_C" >&6
5688 no_cache=0
5689 # Check whether --enable-timer or --disable-timer was given.
5690if test "${enable_timer+set}" = set; then
5691 enableval="$enable_timer"
5692
5693 if test "$enableval" = yes; then
5694 ac_cv_use_timer='wxUSE_TIMER=yes'
5695 else
5696 ac_cv_use_timer='wxUSE_TIMER=no'
5697 fi
5698
5699else
5700
5701 LINE=`grep "wxUSE_TIMER" ${wx_arg_cache_file}`
5702 if test "x$LINE" != x ; then
5703 eval "DEFAULT_$LINE"
5704 else
5705 no_cache=1
5706 fi
5707
5708 ac_cv_use_timer='wxUSE_TIMER='$DEFAULT_wxUSE_TIMER
5709
5710fi;
5711
5712 eval "$ac_cv_use_timer"
5713 if test "$no_cache" != 1; then
5714 echo $ac_cv_use_timer >> ${wx_arg_cache_file}.tmp
5715 fi
5716
5717 if test "$wxUSE_TIMER" = yes; then
5718 echo "$as_me:$LINENO: result: yes" >&5
5719echo "${ECHO_T}yes" >&6
5720 else
5721 echo "$as_me:$LINENO: result: no" >&5
5722echo "${ECHO_T}no" >&6
5723 fi
5724
5725
5726 enablestring=
5727 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-unicode" >&5
5728echo $ECHO_N "checking for --${enablestring:-enable}-unicode... $ECHO_C" >&6
5729 no_cache=0
5730 # Check whether --enable-unicode or --disable-unicode was given.
5731if test "${enable_unicode+set}" = set; then
5732 enableval="$enable_unicode"
5733
5734 if test "$enableval" = yes; then
5735 ac_cv_use_unicode='wxUSE_UNICODE=yes'
5736 else
5737 ac_cv_use_unicode='wxUSE_UNICODE=no'
5738 fi
5739
5740else
5741
5742 LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}`
5743 if test "x$LINE" != x ; then
5744 eval "DEFAULT_$LINE"
5745 else
5746 no_cache=1
5747 fi
5748
5749 ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE
5750
5751fi;
5752
5753 eval "$ac_cv_use_unicode"
5754 if test "$no_cache" != 1; then
5755 echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp
5756 fi
5757
5758 if test "$wxUSE_UNICODE" = yes; then
5759 echo "$as_me:$LINENO: result: yes" >&5
5760echo "${ECHO_T}yes" >&6
5761 else
5762 echo "$as_me:$LINENO: result: no" >&5
5763echo "${ECHO_T}no" >&6
5764 fi
5765
5766
5767 enablestring=
5768 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sound" >&5
5769echo $ECHO_N "checking for --${enablestring:-enable}-sound... $ECHO_C" >&6
5770 no_cache=0
5771 # Check whether --enable-sound or --disable-sound was given.
5772if test "${enable_sound+set}" = set; then
5773 enableval="$enable_sound"
5774
5775 if test "$enableval" = yes; then
5776 ac_cv_use_sound='wxUSE_SOUND=yes'
5777 else
5778 ac_cv_use_sound='wxUSE_SOUND=no'
5779 fi
5780
5781else
5782
5783 LINE=`grep "wxUSE_SOUND" ${wx_arg_cache_file}`
5784 if test "x$LINE" != x ; then
5785 eval "DEFAULT_$LINE"
5786 else
5787 no_cache=1
5788 fi
5789
5790 ac_cv_use_sound='wxUSE_SOUND='$DEFAULT_wxUSE_SOUND
5791
5792fi;
5793
5794 eval "$ac_cv_use_sound"
5795 if test "$no_cache" != 1; then
5796 echo $ac_cv_use_sound >> ${wx_arg_cache_file}.tmp
5797 fi
5798
5799 if test "$wxUSE_SOUND" = yes; then
5800 echo "$as_me:$LINENO: result: yes" >&5
5801echo "${ECHO_T}yes" >&6
5802 else
5803 echo "$as_me:$LINENO: result: no" >&5
5804echo "${ECHO_T}no" >&6
5805 fi
5806
5807
3b57de8b
RL
5808 enablestring=
5809 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mediactrl" >&5
5810echo $ECHO_N "checking for --${enablestring:-enable}-mediactrl... $ECHO_C" >&6
5811 no_cache=0
5812 # Check whether --enable-mediactrl or --disable-mediactrl was given.
5813if test "${enable_mediactrl+set}" = set; then
5814 enableval="$enable_mediactrl"
5815
5816 if test "$enableval" = yes; then
5817 ac_cv_use_mediactrl='wxUSE_MEDIACTRL=yes'
5818 else
5819 ac_cv_use_mediactrl='wxUSE_MEDIACTRL=no'
5820 fi
5821
5822else
5823
5824 LINE=`grep "wxUSE_MEDIACTRL" ${wx_arg_cache_file}`
5825 if test "x$LINE" != x ; then
5826 eval "DEFAULT_$LINE"
5827 else
5828 no_cache=1
5829 fi
5830
5831 ac_cv_use_mediactrl='wxUSE_MEDIACTRL='$DEFAULT_wxUSE_MEDIACTRL
5832
5833fi;
5834
5835 eval "$ac_cv_use_mediactrl"
5836 if test "$no_cache" != 1; then
5837 echo $ac_cv_use_mediactrl >> ${wx_arg_cache_file}.tmp
5838 fi
5839
5840 if test "$wxUSE_MEDIACTRL" = yes; then
5841 echo "$as_me:$LINENO: result: yes" >&5
5842echo "${ECHO_T}yes" >&6
5843 else
5844 echo "$as_me:$LINENO: result: no" >&5
5845echo "${ECHO_T}no" >&6
5846 fi
5847
5848
a848cd7e
SC
5849 enablestring=
5850 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wxprintfv" >&5
5851echo $ECHO_N "checking for --${enablestring:-enable}-wxprintfv... $ECHO_C" >&6
5852 no_cache=0
5853 # Check whether --enable-wxprintfv or --disable-wxprintfv was given.
5854if test "${enable_wxprintfv+set}" = set; then
5855 enableval="$enable_wxprintfv"
5856
5857 if test "$enableval" = yes; then
5858 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=yes'
5859 else
5860 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=no'
5861 fi
5862
5863else
5864
5865 LINE=`grep "wxUSE_EXPERIMENTAL_PRINTF" ${wx_arg_cache_file}`
5866 if test "x$LINE" != x ; then
5867 eval "DEFAULT_$LINE"
5868 else
5869 no_cache=1
5870 fi
5871
5872 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF='$DEFAULT_wxUSE_EXPERIMENTAL_PRINTF
5873
5874fi;
5875
5876 eval "$ac_cv_use_wxprintfv"
5877 if test "$no_cache" != 1; then
5878 echo $ac_cv_use_wxprintfv >> ${wx_arg_cache_file}.tmp
5879 fi
5880
5881 if test "$wxUSE_EXPERIMENTAL_PRINTF" = yes; then
5882 echo "$as_me:$LINENO: result: yes" >&5
5883echo "${ECHO_T}yes" >&6
5884 else
5885 echo "$as_me:$LINENO: result: no" >&5
5886echo "${ECHO_T}no" >&6
5887 fi
5888
5889
5890 enablestring=
5891 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-zipstream" >&5
5892echo $ECHO_N "checking for --${enablestring:-enable}-zipstream... $ECHO_C" >&6
5893 no_cache=0
5894 # Check whether --enable-zipstream or --disable-zipstream was given.
5895if test "${enable_zipstream+set}" = set; then
5896 enableval="$enable_zipstream"
5897
5898 if test "$enableval" = yes; then
5899 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes'
5900 else
5901 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no'
5902 fi
5903
5904else
5905
5906 LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}`
5907 if test "x$LINE" != x ; then
5908 eval "DEFAULT_$LINE"
5909 else
5910 no_cache=1
5911 fi
5912
5913 ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM
5914
5915fi;
5916
5917 eval "$ac_cv_use_zipstream"
5918 if test "$no_cache" != 1; then
5919 echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp
5920 fi
5921
5922 if test "$wxUSE_ZIPSTREAM" = yes; then
5923 echo "$as_me:$LINENO: result: yes" >&5
5924echo "${ECHO_T}yes" >&6
5925 else
5926 echo "$as_me:$LINENO: result: no" >&5
5927echo "${ECHO_T}no" >&6
5928 fi
5929
5930
a848cd7e
SC
5931
5932 enablestring=
5933 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-url" >&5
5934echo $ECHO_N "checking for --${enablestring:-enable}-url... $ECHO_C" >&6
5935 no_cache=0
5936 # Check whether --enable-url or --disable-url was given.
5937if test "${enable_url+set}" = set; then
5938 enableval="$enable_url"
5939
5940 if test "$enableval" = yes; then
5941 ac_cv_use_url='wxUSE_URL=yes'
5942 else
5943 ac_cv_use_url='wxUSE_URL=no'
5944 fi
5945
5946else
5947
5948 LINE=`grep "wxUSE_URL" ${wx_arg_cache_file}`
5949 if test "x$LINE" != x ; then
5950 eval "DEFAULT_$LINE"
5951 else
5952 no_cache=1
5953 fi
5954
5955 ac_cv_use_url='wxUSE_URL='$DEFAULT_wxUSE_URL
5956
5957fi;
5958
5959 eval "$ac_cv_use_url"
5960 if test "$no_cache" != 1; then
5961 echo $ac_cv_use_url >> ${wx_arg_cache_file}.tmp
5962 fi
5963
5964 if test "$wxUSE_URL" = yes; then
5965 echo "$as_me:$LINENO: result: yes" >&5
5966echo "${ECHO_T}yes" >&6
5967 else
5968 echo "$as_me:$LINENO: result: no" >&5
5969echo "${ECHO_T}no" >&6
5970 fi
5971
5972
5973 enablestring=
5974 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol" >&5
5975echo $ECHO_N "checking for --${enablestring:-enable}-protocol... $ECHO_C" >&6
5976 no_cache=0
5977 # Check whether --enable-protocol or --disable-protocol was given.
5978if test "${enable_protocol+set}" = set; then
5979 enableval="$enable_protocol"
5980
5981 if test "$enableval" = yes; then
5982 ac_cv_use_protocol='wxUSE_PROTOCOL=yes'
5983 else
5984 ac_cv_use_protocol='wxUSE_PROTOCOL=no'
5985 fi
5986
5987else
5988
5989 LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
5990 if test "x$LINE" != x ; then
5991 eval "DEFAULT_$LINE"
5992 else
5993 no_cache=1
5994 fi
5995
5996 ac_cv_use_protocol='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
5997
5998fi;
5999
6000 eval "$ac_cv_use_protocol"
6001 if test "$no_cache" != 1; then
6002 echo $ac_cv_use_protocol >> ${wx_arg_cache_file}.tmp
6003 fi
6004
6005 if test "$wxUSE_PROTOCOL" = yes; then
6006 echo "$as_me:$LINENO: result: yes" >&5
6007echo "${ECHO_T}yes" >&6
6008 else
6009 echo "$as_me:$LINENO: result: no" >&5
6010echo "${ECHO_T}no" >&6
6011 fi
6012
6013
6014 enablestring=
6015 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_http" >&5
6016echo $ECHO_N "checking for --${enablestring:-enable}-protocol_http... $ECHO_C" >&6
6017 no_cache=0
6018 # Check whether --enable-protocol_http or --disable-protocol_http was given.
6019if test "${enable_protocol_http+set}" = set; then
6020 enableval="$enable_protocol_http"
6021
6022 if test "$enableval" = yes; then
6023 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=yes'
6024 else
6025 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=no'
6026 fi
6027
6028else
6029
6030 LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
6031 if test "x$LINE" != x ; then
6032 eval "DEFAULT_$LINE"
6033 else
6034 no_cache=1
6035 fi
6036
6037 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
6038
6039fi;
6040
6041 eval "$ac_cv_use_protocol_http"
6042 if test "$no_cache" != 1; then
6043 echo $ac_cv_use_protocol_http >> ${wx_arg_cache_file}.tmp
6044 fi
6045
6046 if test "$wxUSE_PROTOCOL_HTTP" = yes; then
6047 echo "$as_me:$LINENO: result: yes" >&5
6048echo "${ECHO_T}yes" >&6
6049 else
6050 echo "$as_me:$LINENO: result: no" >&5
6051echo "${ECHO_T}no" >&6
6052 fi
6053
6054
6055 enablestring=
6056 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_ftp" >&5
6057echo $ECHO_N "checking for --${enablestring:-enable}-protocol_ftp... $ECHO_C" >&6
6058 no_cache=0
6059 # Check whether --enable-protocol_ftp or --disable-protocol_ftp was given.
6060if test "${enable_protocol_ftp+set}" = set; then
6061 enableval="$enable_protocol_ftp"
6062
6063 if test "$enableval" = yes; then
6064 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=yes'
6065 else
6066 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=no'
6067 fi
6068
6069else
6070
6071 LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
6072 if test "x$LINE" != x ; then
6073 eval "DEFAULT_$LINE"
6074 else
6075 no_cache=1
6076 fi
6077
6078 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
6079
6080fi;
6081
6082 eval "$ac_cv_use_protocol_ftp"
6083 if test "$no_cache" != 1; then
6084 echo $ac_cv_use_protocol_ftp >> ${wx_arg_cache_file}.tmp
6085 fi
6086
6087 if test "$wxUSE_PROTOCOL_FTP" = yes; then
6088 echo "$as_me:$LINENO: result: yes" >&5
6089echo "${ECHO_T}yes" >&6
6090 else
6091 echo "$as_me:$LINENO: result: no" >&5
6092echo "${ECHO_T}no" >&6
6093 fi
6094
6095
6096 enablestring=
6097 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_file" >&5
6098echo $ECHO_N "checking for --${enablestring:-enable}-protocol_file... $ECHO_C" >&6
6099 no_cache=0
6100 # Check whether --enable-protocol_file or --disable-protocol_file was given.
6101if test "${enable_protocol_file+set}" = set; then
6102 enableval="$enable_protocol_file"
6103
6104 if test "$enableval" = yes; then
6105 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=yes'
6106 else
6107 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=no'
6108 fi
6109
6110else
6111
6112 LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
6113 if test "x$LINE" != x ; then
6114 eval "DEFAULT_$LINE"
6115 else
6116 no_cache=1
6117 fi
6118
6119 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
6120
6121fi;
6122
6123 eval "$ac_cv_use_protocol_file"
6124 if test "$no_cache" != 1; then
6125 echo $ac_cv_use_protocol_file >> ${wx_arg_cache_file}.tmp
6126 fi
6127
6128 if test "$wxUSE_PROTOCOL_FILE" = yes; then
6129 echo "$as_me:$LINENO: result: yes" >&5
6130echo "${ECHO_T}yes" >&6
6131 else
6132 echo "$as_me:$LINENO: result: no" >&5
6133echo "${ECHO_T}no" >&6
6134 fi
6135
6136
6137
6138
6139
6140 enablestring=
6141 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-threads" >&5
6142echo $ECHO_N "checking for --${enablestring:-enable}-threads... $ECHO_C" >&6
6143 no_cache=0
6144 # Check whether --enable-threads or --disable-threads was given.
6145if test "${enable_threads+set}" = set; then
6146 enableval="$enable_threads"
6147
6148 if test "$enableval" = yes; then
6149 ac_cv_use_threads='wxUSE_THREADS=yes'
6150 else
6151 ac_cv_use_threads='wxUSE_THREADS=no'
6152 fi
6153
6154else
6155
6156 LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}`
6157 if test "x$LINE" != x ; then
6158 eval "DEFAULT_$LINE"
6159 else
6160 no_cache=1
6161 fi
6162
6163 ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS
6164
6165fi;
6166
6167 eval "$ac_cv_use_threads"
6168 if test "$no_cache" != 1; then
6169 echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp
6170 fi
6171
6172 if test "$wxUSE_THREADS" = yes; then
6173 echo "$as_me:$LINENO: result: yes" >&5
6174echo "${ECHO_T}yes" >&6
6175 else
6176 echo "$as_me:$LINENO: result: no" >&5
6177echo "${ECHO_T}no" >&6
6178 fi
6179
6180
6181if test "$wxUSE_GUI" = "yes"; then
6182
6183
6184
6185 enablestring=
6186 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-docview" >&5
6187echo $ECHO_N "checking for --${enablestring:-enable}-docview... $ECHO_C" >&6
6188 no_cache=0
6189 # Check whether --enable-docview or --disable-docview was given.
6190if test "${enable_docview+set}" = set; then
6191 enableval="$enable_docview"
6192
6193 if test "$enableval" = yes; then
6194 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes'
6195 else
6196 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no'
6197 fi
6198
6199else
6200
6201 LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}`
6202 if test "x$LINE" != x ; then
6203 eval "DEFAULT_$LINE"
6204 else
6205 no_cache=1
6206 fi
6207
6208 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE
6209
6210fi;
6211
6212 eval "$ac_cv_use_docview"
6213 if test "$no_cache" != 1; then
6214 echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp
6215 fi
6216
6217 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then
6218 echo "$as_me:$LINENO: result: yes" >&5
6219echo "${ECHO_T}yes" >&6
6220 else
6221 echo "$as_me:$LINENO: result: no" >&5
6222echo "${ECHO_T}no" >&6
6223 fi
6224
6225
6226 enablestring=
6227 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-help" >&5
6228echo $ECHO_N "checking for --${enablestring:-enable}-help... $ECHO_C" >&6
6229 no_cache=0
6230 # Check whether --enable-help or --disable-help was given.
6231if test "${enable_help+set}" = set; then
6232 enableval="$enable_help"
6233
6234 if test "$enableval" = yes; then
6235 ac_cv_use_help='wxUSE_HELP=yes'
6236 else
6237 ac_cv_use_help='wxUSE_HELP=no'
6238 fi
6239
6240else
6241
6242 LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}`
6243 if test "x$LINE" != x ; then
6244 eval "DEFAULT_$LINE"
6245 else
6246 no_cache=1
6247 fi
6248
6249 ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP
6250
6251fi;
6252
6253 eval "$ac_cv_use_help"
6254 if test "$no_cache" != 1; then
6255 echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp
6256 fi
6257
6258 if test "$wxUSE_HELP" = yes; then
6259 echo "$as_me:$LINENO: result: yes" >&5
6260echo "${ECHO_T}yes" >&6
6261 else
6262 echo "$as_me:$LINENO: result: no" >&5
6263echo "${ECHO_T}no" >&6
6264 fi
6265
6266
6267 enablestring=
6268 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mshtmlhelp" >&5
6269echo $ECHO_N "checking for --${enablestring:-enable}-mshtmlhelp... $ECHO_C" >&6
6270 no_cache=0
6271 # Check whether --enable-mshtmlhelp or --disable-mshtmlhelp was given.
6272if test "${enable_mshtmlhelp+set}" = set; then
6273 enableval="$enable_mshtmlhelp"
6274
6275 if test "$enableval" = yes; then
6276 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=yes'
6277 else
6278 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=no'
6279 fi
6280
6281else
6282
6283 LINE=`grep "wxUSE_MS_HTML_HELP" ${wx_arg_cache_file}`
6284 if test "x$LINE" != x ; then
6285 eval "DEFAULT_$LINE"
6286 else
6287 no_cache=1
6288 fi
6289
6290 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP='$DEFAULT_wxUSE_MS_HTML_HELP
6291
6292fi;
6293
6294 eval "$ac_cv_use_mshtmlhelp"
6295 if test "$no_cache" != 1; then
6296 echo $ac_cv_use_mshtmlhelp >> ${wx_arg_cache_file}.tmp
6297 fi
6298
6299 if test "$wxUSE_MS_HTML_HELP" = yes; then
6300 echo "$as_me:$LINENO: result: yes" >&5
6301echo "${ECHO_T}yes" >&6
6302 else
6303 echo "$as_me:$LINENO: result: no" >&5
6304echo "${ECHO_T}no" >&6
6305 fi
6306
6307
6308 enablestring=
6309 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-html" >&5
6310echo $ECHO_N "checking for --${enablestring:-enable}-html... $ECHO_C" >&6
6311 no_cache=0
6312 # Check whether --enable-html or --disable-html was given.
6313if test "${enable_html+set}" = set; then
6314 enableval="$enable_html"
6315
6316 if test "$enableval" = yes; then
6317 ac_cv_use_html='wxUSE_HTML=yes'
6318 else
6319 ac_cv_use_html='wxUSE_HTML=no'
6320 fi
6321
6322else
6323
6324 LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}`
6325 if test "x$LINE" != x ; then
6326 eval "DEFAULT_$LINE"
6327 else
6328 no_cache=1
6329 fi
6330
6331 ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML
6332
6333fi;
6334
6335 eval "$ac_cv_use_html"
6336 if test "$no_cache" != 1; then
6337 echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp
6338 fi
6339
6340 if test "$wxUSE_HTML" = yes; then
6341 echo "$as_me:$LINENO: result: yes" >&5
6342echo "${ECHO_T}yes" >&6
6343 else
6344 echo "$as_me:$LINENO: result: no" >&5
6345echo "${ECHO_T}no" >&6
6346 fi
6347
6348
6349 enablestring=
6350 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-htmlhelp" >&5
6351echo $ECHO_N "checking for --${enablestring:-enable}-htmlhelp... $ECHO_C" >&6
6352 no_cache=0
6353 # Check whether --enable-htmlhelp or --disable-htmlhelp was given.
6354if test "${enable_htmlhelp+set}" = set; then
6355 enableval="$enable_htmlhelp"
6356
6357 if test "$enableval" = yes; then
6358 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=yes'
6359 else
6360 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=no'
6361 fi
6362
6363else
6364
6365 LINE=`grep "wxUSE_WXHTML_HELP" ${wx_arg_cache_file}`
6366 if test "x$LINE" != x ; then
6367 eval "DEFAULT_$LINE"
6368 else
6369 no_cache=1
6370 fi
6371
6372 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP='$DEFAULT_wxUSE_WXHTML_HELP
6373
6374fi;
6375
6376 eval "$ac_cv_use_htmlhelp"
6377 if test "$no_cache" != 1; then
6378 echo $ac_cv_use_htmlhelp >> ${wx_arg_cache_file}.tmp
6379 fi
6380
6381 if test "$wxUSE_WXHTML_HELP" = yes; then
6382 echo "$as_me:$LINENO: result: yes" >&5
6383echo "${ECHO_T}yes" >&6
6384 else
6385 echo "$as_me:$LINENO: result: no" >&5
6386echo "${ECHO_T}no" >&6
6387 fi
6388
6389
9a8f0513
VS
6390 enablestring=
6391 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xrc" >&5
6392echo $ECHO_N "checking for --${enablestring:-enable}-xrc... $ECHO_C" >&6
6393 no_cache=0
6394 # Check whether --enable-xrc or --disable-xrc was given.
6395if test "${enable_xrc+set}" = set; then
6396 enableval="$enable_xrc"
6397
6398 if test "$enableval" = yes; then
6399 ac_cv_use_xrc='wxUSE_XRC=yes'
6400 else
6401 ac_cv_use_xrc='wxUSE_XRC=no'
6402 fi
6403
6404else
6405
6406 LINE=`grep "wxUSE_XRC" ${wx_arg_cache_file}`
6407 if test "x$LINE" != x ; then
6408 eval "DEFAULT_$LINE"
6409 else
6410 no_cache=1
6411 fi
6412
6413 ac_cv_use_xrc='wxUSE_XRC='$DEFAULT_wxUSE_XRC
6414
6415fi;
6416
6417 eval "$ac_cv_use_xrc"
6418 if test "$no_cache" != 1; then
6419 echo $ac_cv_use_xrc >> ${wx_arg_cache_file}.tmp
6420 fi
6421
6422 if test "$wxUSE_XRC" = yes; then
6423 echo "$as_me:$LINENO: result: yes" >&5
6424echo "${ECHO_T}yes" >&6
6425 else
6426 echo "$as_me:$LINENO: result: no" >&5
6427echo "${ECHO_T}no" >&6
6428 fi
6429
6430
a848cd7e
SC
6431 enablestring=
6432 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-constraints" >&5
6433echo $ECHO_N "checking for --${enablestring:-enable}-constraints... $ECHO_C" >&6
6434 no_cache=0
6435 # Check whether --enable-constraints or --disable-constraints was given.
6436if test "${enable_constraints+set}" = set; then
6437 enableval="$enable_constraints"
6438
6439 if test "$enableval" = yes; then
6440 ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes'
6441 else
6442 ac_cv_use_constraints='wxUSE_CONSTRAINTS=no'
6443 fi
6444
6445else
6446
6447 LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}`
6448 if test "x$LINE" != x ; then
6449 eval "DEFAULT_$LINE"
6450 else
6451 no_cache=1
6452 fi
6453
6454 ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS
6455
6456fi;
6457
6458 eval "$ac_cv_use_constraints"
6459 if test "$no_cache" != 1; then
6460 echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp
6461 fi
6462
6463 if test "$wxUSE_CONSTRAINTS" = yes; then
6464 echo "$as_me:$LINENO: result: yes" >&5
6465echo "${ECHO_T}yes" >&6
6466 else
6467 echo "$as_me:$LINENO: result: no" >&5
6468echo "${ECHO_T}no" >&6
6469 fi
6470
6471
6472 enablestring=
6473 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-printarch" >&5
6474echo $ECHO_N "checking for --${enablestring:-enable}-printarch... $ECHO_C" >&6
6475 no_cache=0
6476 # Check whether --enable-printarch or --disable-printarch was given.
6477if test "${enable_printarch+set}" = set; then
6478 enableval="$enable_printarch"
6479
6480 if test "$enableval" = yes; then
6481 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes'
6482 else
6483 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no'
6484 fi
6485
6486else
6487
6488 LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}`
6489 if test "x$LINE" != x ; then
6490 eval "DEFAULT_$LINE"
6491 else
6492 no_cache=1
6493 fi
6494
6495 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE
6496
6497fi;
6498
6499 eval "$ac_cv_use_printarch"
6500 if test "$no_cache" != 1; then
6501 echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp
6502 fi
6503
6504 if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then
6505 echo "$as_me:$LINENO: result: yes" >&5
6506echo "${ECHO_T}yes" >&6
6507 else
6508 echo "$as_me:$LINENO: result: no" >&5
6509echo "${ECHO_T}no" >&6
6510 fi
6511
6512
6513 enablestring=
6514 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdi" >&5
6515echo $ECHO_N "checking for --${enablestring:-enable}-mdi... $ECHO_C" >&6
6516 no_cache=0
6517 # Check whether --enable-mdi or --disable-mdi was given.
6518if test "${enable_mdi+set}" = set; then
6519 enableval="$enable_mdi"
6520
6521 if test "$enableval" = yes; then
8a7b1113 6522 ac_cv_use_mdi='wxUSE_MDI=yes'
a848cd7e 6523 else
8a7b1113 6524 ac_cv_use_mdi='wxUSE_MDI=no'
a848cd7e
SC
6525 fi
6526
6527else
6528
8a7b1113 6529 LINE=`grep "wxUSE_MDI" ${wx_arg_cache_file}`
a848cd7e
SC
6530 if test "x$LINE" != x ; then
6531 eval "DEFAULT_$LINE"
6532 else
6533 no_cache=1
6534 fi
6535
8a7b1113 6536 ac_cv_use_mdi='wxUSE_MDI='$DEFAULT_wxUSE_MDI
a848cd7e
SC
6537
6538fi;
6539
6540 eval "$ac_cv_use_mdi"
6541 if test "$no_cache" != 1; then
6542 echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp
6543 fi
6544
8a7b1113
VZ
6545 if test "$wxUSE_MDI" = yes; then
6546 echo "$as_me:$LINENO: result: yes" >&5
6547echo "${ECHO_T}yes" >&6
6548 else
6549 echo "$as_me:$LINENO: result: no" >&5
6550echo "${ECHO_T}no" >&6
6551 fi
6552
6553
6554 enablestring=
6555 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdidoc" >&5
6556echo $ECHO_N "checking for --${enablestring:-enable}-mdidoc... $ECHO_C" >&6
6557 no_cache=0
6558 # Check whether --enable-mdidoc or --disable-mdidoc was given.
6559if test "${enable_mdidoc+set}" = set; then
6560 enableval="$enable_mdidoc"
6561
6562 if test "$enableval" = yes; then
6563 ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=yes'
6564 else
6565 ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=no'
6566 fi
6567
6568else
6569
6570 LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}`
6571 if test "x$LINE" != x ; then
6572 eval "DEFAULT_$LINE"
6573 else
6574 no_cache=1
6575 fi
6576
6577 ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE
6578
6579fi;
6580
6581 eval "$ac_cv_use_mdidoc"
6582 if test "$no_cache" != 1; then
6583 echo $ac_cv_use_mdidoc >> ${wx_arg_cache_file}.tmp
6584 fi
6585
a848cd7e
SC
6586 if test "$wxUSE_MDI_ARCHITECTURE" = yes; then
6587 echo "$as_me:$LINENO: result: yes" >&5
6588echo "${ECHO_T}yes" >&6
6589 else
6590 echo "$as_me:$LINENO: result: no" >&5
6591echo "${ECHO_T}no" >&6
6592 fi
6593
6594
6595 enablestring=
6596 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-loggui" >&5
6597echo $ECHO_N "checking for --${enablestring:-enable}-loggui... $ECHO_C" >&6
6598 no_cache=0
6599 # Check whether --enable-loggui or --disable-loggui was given.
6600if test "${enable_loggui+set}" = set; then
6601 enableval="$enable_loggui"
6602
6603 if test "$enableval" = yes; then
6604 ac_cv_use_loggui='wxUSE_LOGGUI=yes'
6605 else
6606 ac_cv_use_loggui='wxUSE_LOGGUI=no'
6607 fi
6608
6609else
6610
6611 LINE=`grep "wxUSE_LOGGUI" ${wx_arg_cache_file}`
6612 if test "x$LINE" != x ; then
6613 eval "DEFAULT_$LINE"
6614 else
6615 no_cache=1
6616 fi
6617
6618 ac_cv_use_loggui='wxUSE_LOGGUI='$DEFAULT_wxUSE_LOGGUI
6619
6620fi;
6621
6622 eval "$ac_cv_use_loggui"
6623 if test "$no_cache" != 1; then
6624 echo $ac_cv_use_loggui >> ${wx_arg_cache_file}.tmp
6625 fi
6626
6627 if test "$wxUSE_LOGGUI" = yes; then
6628 echo "$as_me:$LINENO: result: yes" >&5
6629echo "${ECHO_T}yes" >&6
6630 else
6631 echo "$as_me:$LINENO: result: no" >&5
6632echo "${ECHO_T}no" >&6
6633 fi
6634
6635
6636 enablestring=
6637 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logwin" >&5
6638echo $ECHO_N "checking for --${enablestring:-enable}-logwin... $ECHO_C" >&6
6639 no_cache=0
6640 # Check whether --enable-logwin or --disable-logwin was given.
6641if test "${enable_logwin+set}" = set; then
6642 enableval="$enable_logwin"
6643
6644 if test "$enableval" = yes; then
6645 ac_cv_use_logwin='wxUSE_LOGWINDOW=yes'
6646 else
6647 ac_cv_use_logwin='wxUSE_LOGWINDOW=no'
6648 fi
6649
6650else
6651
6652 LINE=`grep "wxUSE_LOGWINDOW" ${wx_arg_cache_file}`
6653 if test "x$LINE" != x ; then
6654 eval "DEFAULT_$LINE"
6655 else
6656 no_cache=1
6657 fi
6658
6659 ac_cv_use_logwin='wxUSE_LOGWINDOW='$DEFAULT_wxUSE_LOGWINDOW
6660
6661fi;
6662
6663 eval "$ac_cv_use_logwin"
6664 if test "$no_cache" != 1; then
6665 echo $ac_cv_use_logwin >> ${wx_arg_cache_file}.tmp
6666 fi
6667
6668 if test "$wxUSE_LOGWINDOW" = yes; then
6669 echo "$as_me:$LINENO: result: yes" >&5
6670echo "${ECHO_T}yes" >&6
6671 else
6672 echo "$as_me:$LINENO: result: no" >&5
6673echo "${ECHO_T}no" >&6
6674 fi
6675
6676
6677 enablestring=
6678 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logdialog" >&5
6679echo $ECHO_N "checking for --${enablestring:-enable}-logdialog... $ECHO_C" >&6
6680 no_cache=0
6681 # Check whether --enable-logdialog or --disable-logdialog was given.
6682if test "${enable_logdialog+set}" = set; then
6683 enableval="$enable_logdialog"
6684
6685 if test "$enableval" = yes; then
6686 ac_cv_use_logdialog='wxUSE_LOGDIALOG=yes'
6687 else
6688 ac_cv_use_logdialog='wxUSE_LOGDIALOG=no'
6689 fi
6690
6691else
6692
6693 LINE=`grep "wxUSE_LOGDIALOG" ${wx_arg_cache_file}`
6694 if test "x$LINE" != x ; then
6695 eval "DEFAULT_$LINE"
6696 else
6697 no_cache=1
6698 fi
6699
6700 ac_cv_use_logdialog='wxUSE_LOGDIALOG='$DEFAULT_wxUSE_LOGDIALOG
6701
6702fi;
6703
6704 eval "$ac_cv_use_logdialog"
6705 if test "$no_cache" != 1; then
6706 echo $ac_cv_use_logdialog >> ${wx_arg_cache_file}.tmp
6707 fi
6708
6709 if test "$wxUSE_LOGDIALOG" = yes; then
6710 echo "$as_me:$LINENO: result: yes" >&5
6711echo "${ECHO_T}yes" >&6
6712 else
6713 echo "$as_me:$LINENO: result: no" >&5
6714echo "${ECHO_T}no" >&6
6715 fi
6716
6717
646b6ec1
VS
6718 enablestring=
6719 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-webkit" >&5
6720echo $ECHO_N "checking for --${enablestring:-enable}-webkit... $ECHO_C" >&6
6721 no_cache=0
6722 # Check whether --enable-webkit or --disable-webkit was given.
6723if test "${enable_webkit+set}" = set; then
6724 enableval="$enable_webkit"
6725
6726 if test "$enableval" = yes; then
6727 ac_cv_use_webkit='wxUSE_WEBKIT=yes'
6728 else
6729 ac_cv_use_webkit='wxUSE_WEBKIT=no'
6730 fi
6731
6732else
6733
6734 LINE=`grep "wxUSE_WEBKIT" ${wx_arg_cache_file}`
6735 if test "x$LINE" != x ; then
6736 eval "DEFAULT_$LINE"
6737 else
6738 no_cache=1
6739 fi
6740
6741 ac_cv_use_webkit='wxUSE_WEBKIT='$DEFAULT_wxUSE_WEBKIT
6742
6743fi;
6744
6745 eval "$ac_cv_use_webkit"
6746 if test "$no_cache" != 1; then
6747 echo $ac_cv_use_webkit >> ${wx_arg_cache_file}.tmp
6748 fi
6749
6750 if test "$wxUSE_WEBKIT" = yes; then
6751 echo "$as_me:$LINENO: result: yes" >&5
6752echo "${ECHO_T}yes" >&6
6753 else
6754 echo "$as_me:$LINENO: result: no" >&5
6755echo "${ECHO_T}no" >&6
6756 fi
6757
6758
a848cd7e
SC
6759
6760 enablestring=
6761 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-postscript" >&5
6762echo $ECHO_N "checking for --${enablestring:-enable}-postscript... $ECHO_C" >&6
6763 no_cache=0
6764 # Check whether --enable-postscript or --disable-postscript was given.
6765if test "${enable_postscript+set}" = set; then
6766 enableval="$enable_postscript"
6767
6768 if test "$enableval" = yes; then
6769 ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes'
6770 else
6771 ac_cv_use_postscript='wxUSE_POSTSCRIPT=no'
6772 fi
6773
6774else
6775
6776 LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}`
6777 if test "x$LINE" != x ; then
6778 eval "DEFAULT_$LINE"
6779 else
6780 no_cache=1
6781 fi
6782
6783 ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT
6784
6785fi;
6786
6787 eval "$ac_cv_use_postscript"
6788 if test "$no_cache" != 1; then
6789 echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp
6790 fi
6791
6792 if test "$wxUSE_POSTSCRIPT" = yes; then
6793 echo "$as_me:$LINENO: result: yes" >&5
6794echo "${ECHO_T}yes" >&6
6795 else
6796 echo "$as_me:$LINENO: result: no" >&5
6797echo "${ECHO_T}no" >&6
6798 fi
6799
6800
6801
6802
6803
6804 enablestring=
6805 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-prologio" >&5
6806echo $ECHO_N "checking for --${enablestring:-enable}-prologio... $ECHO_C" >&6
6807 no_cache=0
6808 # Check whether --enable-prologio or --disable-prologio was given.
6809if test "${enable_prologio+set}" = set; then
6810 enableval="$enable_prologio"
6811
6812 if test "$enableval" = yes; then
6813 ac_cv_use_prologio='wxUSE_PROLOGIO=yes'
6814 else
6815 ac_cv_use_prologio='wxUSE_PROLOGIO=no'
6816 fi
6817
6818else
6819
6820 LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}`
6821 if test "x$LINE" != x ; then
6822 eval "DEFAULT_$LINE"
6823 else
6824 no_cache=1
6825 fi
6826
6827 ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO
6828
6829fi;
6830
6831 eval "$ac_cv_use_prologio"
6832 if test "$no_cache" != 1; then
6833 echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp
6834 fi
6835
6836 if test "$wxUSE_PROLOGIO" = yes; then
6837 echo "$as_me:$LINENO: result: yes" >&5
6838echo "${ECHO_T}yes" >&6
6839 else
6840 echo "$as_me:$LINENO: result: no" >&5
6841echo "${ECHO_T}no" >&6
6842 fi
6843
6844
6845 enablestring=
6846 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-resources" >&5
6847echo $ECHO_N "checking for --${enablestring:-enable}-resources... $ECHO_C" >&6
6848 no_cache=0
6849 # Check whether --enable-resources or --disable-resources was given.
6850if test "${enable_resources+set}" = set; then
6851 enableval="$enable_resources"
6852
6853 if test "$enableval" = yes; then
6854 ac_cv_use_resources='wxUSE_RESOURCES=yes'
6855 else
6856 ac_cv_use_resources='wxUSE_RESOURCES=no'
6857 fi
6858
6859else
6860
6861 LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}`
6862 if test "x$LINE" != x ; then
6863 eval "DEFAULT_$LINE"
6864 else
6865 no_cache=1
6866 fi
6867
6868 ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES
6869
6870fi;
6871
6872 eval "$ac_cv_use_resources"
6873 if test "$no_cache" != 1; then
6874 echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp
6875 fi
6876
6877 if test "$wxUSE_RESOURCES" = yes; then
6878 echo "$as_me:$LINENO: result: yes" >&5
6879echo "${ECHO_T}yes" >&6
6880 else
6881 echo "$as_me:$LINENO: result: no" >&5
6882echo "${ECHO_T}no" >&6
6883 fi
6884
6885
6886
6887
6888 enablestring=
6889 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-clipboard" >&5
6890echo $ECHO_N "checking for --${enablestring:-enable}-clipboard... $ECHO_C" >&6
6891 no_cache=0
6892 # Check whether --enable-clipboard or --disable-clipboard was given.
6893if test "${enable_clipboard+set}" = set; then
6894 enableval="$enable_clipboard"
6895
6896 if test "$enableval" = yes; then
6897 ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes'
6898 else
6899 ac_cv_use_clipboard='wxUSE_CLIPBOARD=no'
6900 fi
6901
6902else
6903
6904 LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}`
6905 if test "x$LINE" != x ; then
6906 eval "DEFAULT_$LINE"
6907 else
6908 no_cache=1
6909 fi
6910
6911 ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD
6912
6913fi;
6914
6915 eval "$ac_cv_use_clipboard"
6916 if test "$no_cache" != 1; then
6917 echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp
6918 fi
6919
6920 if test "$wxUSE_CLIPBOARD" = yes; then
6921 echo "$as_me:$LINENO: result: yes" >&5
6922echo "${ECHO_T}yes" >&6
6923 else
6924 echo "$as_me:$LINENO: result: no" >&5
6925echo "${ECHO_T}no" >&6
6926 fi
6927
6928
6929 enablestring=
6930 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dnd" >&5
6931echo $ECHO_N "checking for --${enablestring:-enable}-dnd... $ECHO_C" >&6
6932 no_cache=0
6933 # Check whether --enable-dnd or --disable-dnd was given.
6934if test "${enable_dnd+set}" = set; then
6935 enableval="$enable_dnd"
6936
6937 if test "$enableval" = yes; then
6938 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes'
6939 else
6940 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no'
6941 fi
6942
6943else
6944
6945 LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}`
6946 if test "x$LINE" != x ; then
6947 eval "DEFAULT_$LINE"
6948 else
6949 no_cache=1
6950 fi
6951
6952 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP
6953
6954fi;
6955
6956 eval "$ac_cv_use_dnd"
6957 if test "$no_cache" != 1; then
6958 echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp
6959 fi
6960
6961 if test "$wxUSE_DRAG_AND_DROP" = yes; then
6962 echo "$as_me:$LINENO: result: yes" >&5
6963echo "${ECHO_T}yes" >&6
6964 else
6965 echo "$as_me:$LINENO: result: no" >&5
6966echo "${ECHO_T}no" >&6
6967 fi
6968
6969
6970 enablestring=
6971 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5
6972echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6
6973 no_cache=0
6974 # Check whether --enable-metafile or --disable-metafile was given.
6975if test "${enable_metafile+set}" = set; then
6976 enableval="$enable_metafile"
6977
6978 if test "$enableval" = yes; then
6979 ac_cv_use_metafile='wxUSE_METAFILE=yes'
6980 else
6981 ac_cv_use_metafile='wxUSE_METAFILE=no'
6982 fi
6983
6984else
6985
6986 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
6987 if test "x$LINE" != x ; then
6988 eval "DEFAULT_$LINE"
6989 else
6990 no_cache=1
6991 fi
6992
6993 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
6994
6995fi;
6996
6997 eval "$ac_cv_use_metafile"
6998 if test "$no_cache" != 1; then
6999 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
7000 fi
7001
7002 if test "$wxUSE_METAFILE" = yes; then
7003 echo "$as_me:$LINENO: result: yes" >&5
7004echo "${ECHO_T}yes" >&6
7005 else
7006 echo "$as_me:$LINENO: result: no" >&5
7007echo "${ECHO_T}no" >&6
7008 fi
7009
7010
7011
7012
7013
7014 enablestring=
7015 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-controls" >&5
7016echo $ECHO_N "checking for --${enablestring:-enable}-controls... $ECHO_C" >&6
7017 no_cache=0
7018 # Check whether --enable-controls or --disable-controls was given.
7019if test "${enable_controls+set}" = set; then
7020 enableval="$enable_controls"
7021
7022 if test "$enableval" = yes; then
7023 ac_cv_use_controls='wxUSE_CONTROLS=yes'
7024 else
7025 ac_cv_use_controls='wxUSE_CONTROLS=no'
7026 fi
7027
7028else
7029
7030 LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}`
7031 if test "x$LINE" != x ; then
7032 eval "DEFAULT_$LINE"
7033 else
7034 no_cache=1
7035 fi
7036
7037 ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS
7038
7039fi;
7040
7041 eval "$ac_cv_use_controls"
7042 if test "$no_cache" != 1; then
7043 echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp
7044 fi
7045
7046 if test "$wxUSE_CONTROLS" = yes; then
7047 echo "$as_me:$LINENO: result: yes" >&5
7048echo "${ECHO_T}yes" >&6
7049 else
7050 echo "$as_me:$LINENO: result: no" >&5
7051echo "${ECHO_T}no" >&6
7052 fi
7053
7054
7055if test "$wxUSE_CONTROLS" = "yes"; then
7056 DEFAULT_wxUSE_ACCEL=yes
7057 DEFAULT_wxUSE_BMPBUTTON=yes
7058 DEFAULT_wxUSE_BUTTON=yes
7059 DEFAULT_wxUSE_CALCTRL=no
7060 DEFAULT_wxUSE_CARET=yes
7061 DEFAULT_wxUSE_COMBOBOX=yes
7062 DEFAULT_wxUSE_CHECKBOX=yes
7063 DEFAULT_wxUSE_CHECKLISTBOX=yes
7064 DEFAULT_wxUSE_CHOICE=yes
92bbdbcd 7065 DEFAULT_wxUSE_CHOICEBOOK=yes
a848cd7e
SC
7066 DEFAULT_wxUSE_GAUGE=yes
7067 DEFAULT_wxUSE_GRID=yes
7068 DEFAULT_wxUSE_IMAGLIST=yes
7069 DEFAULT_wxUSE_LISTBOOK=yes
7070 DEFAULT_wxUSE_LISTBOX=yes
7071 DEFAULT_wxUSE_LISTCTRL=yes
7072 DEFAULT_wxUSE_NOTEBOOK=yes
7073 DEFAULT_wxUSE_RADIOBOX=yes
7074 DEFAULT_wxUSE_RADIOBTN=yes
7075 DEFAULT_wxUSE_SASH=yes
7076 DEFAULT_wxUSE_SCROLLBAR=yes
7077 DEFAULT_wxUSE_SLIDER=yes
7078 DEFAULT_wxUSE_SPINBTN=yes
7079 DEFAULT_wxUSE_SPINCTRL=yes
7080 DEFAULT_wxUSE_SPLITTER=yes
7081 DEFAULT_wxUSE_STATBMP=yes
7082 DEFAULT_wxUSE_STATBOX=yes
7083 DEFAULT_wxUSE_STATLINE=yes
7084 DEFAULT_wxUSE_STATUSBAR=yes
7085 DEFAULT_wxUSE_TAB_DIALOG=yes
7086 DEFAULT_wxUSE_TOGGLEBTN=yes
7087 DEFAULT_wxUSE_TOOLBAR=yes
7088 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
7089 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
7090 DEFAULT_wxUSE_TOOLTIPS=yes
7091 DEFAULT_wxUSE_TREECTRL=yes
7092 DEFAULT_wxUSE_POPUPWIN=yes
7093 DEFAULT_wxUSE_TIPWINDOW=yes
7094elif test "$wxUSE_CONTROLS" = "no"; then
7095 DEFAULT_wxUSE_ACCEL=no
7096 DEFAULT_wxUSE_BMPBUTTON=no
7097 DEFAULT_wxUSE_BUTTON=no
7098 DEFAULT_wxUSE_CALCTRL=no
7099 DEFAULT_wxUSE_CARET=no
7100 DEFAULT_wxUSE_COMBOBOX=no
7101 DEFAULT_wxUSE_CHECKBOX=no
7102 DEFAULT_wxUSE_CHECKLISTBOX=no
7103 DEFAULT_wxUSE_CHOICE=no
92bbdbcd 7104 DEFAULT_wxUSE_CHOICEBOOK=no
a848cd7e
SC
7105 DEFAULT_wxUSE_GAUGE=no
7106 DEFAULT_wxUSE_GRID=no
7107 DEFAULT_wxUSE_IMAGLIST=no
7108 DEFAULT_wxUSE_LISTBOOK=no
7109 DEFAULT_wxUSE_LISTBOX=no
7110 DEFAULT_wxUSE_LISTCTRL=no
7111 DEFAULT_wxUSE_NOTEBOOK=no
7112 DEFAULT_wxUSE_RADIOBOX=no
7113 DEFAULT_wxUSE_RADIOBTN=no
7114 DEFAULT_wxUSE_SASH=no
7115 DEFAULT_wxUSE_SCROLLBAR=no
7116 DEFAULT_wxUSE_SLIDER=no
7117 DEFAULT_wxUSE_SPINBTN=no
7118 DEFAULT_wxUSE_SPINCTRL=no
7119 DEFAULT_wxUSE_SPLITTER=no
7120 DEFAULT_wxUSE_STATBMP=no
7121 DEFAULT_wxUSE_STATBOX=no
7122 DEFAULT_wxUSE_STATLINE=no
7123 DEFAULT_wxUSE_STATUSBAR=no
7124 DEFAULT_wxUSE_TAB_DIALOG=no
7125 DEFAULT_wxUSE_TOGGLEBTN=no
7126 DEFAULT_wxUSE_TOOLBAR=no
7127 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
7128 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
7129 DEFAULT_wxUSE_TOOLTIPS=no
7130 DEFAULT_wxUSE_TREECTRL=no
7131 DEFAULT_wxUSE_POPUPWIN=no
7132 DEFAULT_wxUSE_TIPWINDOW=no
7133fi
7134
a848cd7e
SC
7135
7136 enablestring=
7137 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accel" >&5
7138echo $ECHO_N "checking for --${enablestring:-enable}-accel... $ECHO_C" >&6
7139 no_cache=0
7140 # Check whether --enable-accel or --disable-accel was given.
7141if test "${enable_accel+set}" = set; then
7142 enableval="$enable_accel"
7143
7144 if test "$enableval" = yes; then
7145 ac_cv_use_accel='wxUSE_ACCEL=yes'
7146 else
7147 ac_cv_use_accel='wxUSE_ACCEL=no'
7148 fi
7149
7150else
7151
7152 LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}`
7153 if test "x$LINE" != x ; then
7154 eval "DEFAULT_$LINE"
7155 else
7156 no_cache=1
7157 fi
7158
7159 ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL
7160
7161fi;
7162
7163 eval "$ac_cv_use_accel"
7164 if test "$no_cache" != 1; then
7165 echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp
7166 fi
7167
7168 if test "$wxUSE_ACCEL" = yes; then
7169 echo "$as_me:$LINENO: result: yes" >&5
7170echo "${ECHO_T}yes" >&6
7171 else
7172 echo "$as_me:$LINENO: result: no" >&5
7173echo "${ECHO_T}no" >&6
7174 fi
7175
7176
7177 enablestring=
7178 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-button" >&5
7179echo $ECHO_N "checking for --${enablestring:-enable}-button... $ECHO_C" >&6
7180 no_cache=0
7181 # Check whether --enable-button or --disable-button was given.
7182if test "${enable_button+set}" = set; then
7183 enableval="$enable_button"
7184
7185 if test "$enableval" = yes; then
7186 ac_cv_use_button='wxUSE_BUTTON=yes'
7187 else
7188 ac_cv_use_button='wxUSE_BUTTON=no'
7189 fi
7190
7191else
7192
7193 LINE=`grep "wxUSE_BUTTON" ${wx_arg_cache_file}`
7194 if test "x$LINE" != x ; then
7195 eval "DEFAULT_$LINE"
7196 else
7197 no_cache=1
7198 fi
7199
7200 ac_cv_use_button='wxUSE_BUTTON='$DEFAULT_wxUSE_BUTTON
7201
7202fi;
7203
7204 eval "$ac_cv_use_button"
7205 if test "$no_cache" != 1; then
7206 echo $ac_cv_use_button >> ${wx_arg_cache_file}.tmp
7207 fi
7208
7209 if test "$wxUSE_BUTTON" = yes; then
7210 echo "$as_me:$LINENO: result: yes" >&5
7211echo "${ECHO_T}yes" >&6
7212 else
7213 echo "$as_me:$LINENO: result: no" >&5
7214echo "${ECHO_T}no" >&6
7215 fi
7216
7217
7218 enablestring=
7219 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-bmpbutton" >&5
7220echo $ECHO_N "checking for --${enablestring:-enable}-bmpbutton... $ECHO_C" >&6
7221 no_cache=0
7222 # Check whether --enable-bmpbutton or --disable-bmpbutton was given.
7223if test "${enable_bmpbutton+set}" = set; then
7224 enableval="$enable_bmpbutton"
7225
7226 if test "$enableval" = yes; then
7227 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes'
7228 else
7229 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no'
7230 fi
7231
7232else
7233
7234 LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}`
7235 if test "x$LINE" != x ; then
7236 eval "DEFAULT_$LINE"
7237 else
7238 no_cache=1
7239 fi
7240
7241 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON
7242
7243fi;
7244
7245 eval "$ac_cv_use_bmpbutton"
7246 if test "$no_cache" != 1; then
7247 echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp
7248 fi
7249
7250 if test "$wxUSE_BMPBUTTON" = yes; then
7251 echo "$as_me:$LINENO: result: yes" >&5
7252echo "${ECHO_T}yes" >&6
7253 else
7254 echo "$as_me:$LINENO: result: no" >&5
7255echo "${ECHO_T}no" >&6
7256 fi
7257
7258
7259 enablestring=
7260 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-calendar" >&5
7261echo $ECHO_N "checking for --${enablestring:-enable}-calendar... $ECHO_C" >&6
7262 no_cache=0
7263 # Check whether --enable-calendar or --disable-calendar was given.
7264if test "${enable_calendar+set}" = set; then
7265 enableval="$enable_calendar"
7266
7267 if test "$enableval" = yes; then
7268 ac_cv_use_calendar='wxUSE_CALCTRL=yes'
7269 else
7270 ac_cv_use_calendar='wxUSE_CALCTRL=no'
7271 fi
7272
7273else
7274
7275 LINE=`grep "wxUSE_CALCTRL" ${wx_arg_cache_file}`
7276 if test "x$LINE" != x ; then
7277 eval "DEFAULT_$LINE"
7278 else
7279 no_cache=1
7280 fi
7281
7282 ac_cv_use_calendar='wxUSE_CALCTRL='$DEFAULT_wxUSE_CALCTRL
7283
7284fi;
7285
7286 eval "$ac_cv_use_calendar"
7287 if test "$no_cache" != 1; then
7288 echo $ac_cv_use_calendar >> ${wx_arg_cache_file}.tmp
7289 fi
7290
7291 if test "$wxUSE_CALCTRL" = yes; then
7292 echo "$as_me:$LINENO: result: yes" >&5
7293echo "${ECHO_T}yes" >&6
7294 else
7295 echo "$as_me:$LINENO: result: no" >&5
7296echo "${ECHO_T}no" >&6
7297 fi
7298
7299
7300 enablestring=
7301 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-caret" >&5
7302echo $ECHO_N "checking for --${enablestring:-enable}-caret... $ECHO_C" >&6
7303 no_cache=0
7304 # Check whether --enable-caret or --disable-caret was given.
7305if test "${enable_caret+set}" = set; then
7306 enableval="$enable_caret"
7307
7308 if test "$enableval" = yes; then
7309 ac_cv_use_caret='wxUSE_CARET=yes'
7310 else
7311 ac_cv_use_caret='wxUSE_CARET=no'
7312 fi
7313
7314else
7315
7316 LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}`
7317 if test "x$LINE" != x ; then
7318 eval "DEFAULT_$LINE"
7319 else
7320 no_cache=1
7321 fi
7322
7323 ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET
7324
7325fi;
7326
7327 eval "$ac_cv_use_caret"
7328 if test "$no_cache" != 1; then
7329 echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp
7330 fi
7331
7332 if test "$wxUSE_CARET" = yes; then
7333 echo "$as_me:$LINENO: result: yes" >&5
7334echo "${ECHO_T}yes" >&6
7335 else
7336 echo "$as_me:$LINENO: result: no" >&5
7337echo "${ECHO_T}no" >&6
7338 fi
7339
7340
7341 enablestring=
7342 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checkbox" >&5
7343echo $ECHO_N "checking for --${enablestring:-enable}-checkbox... $ECHO_C" >&6
7344 no_cache=0
7345 # Check whether --enable-checkbox or --disable-checkbox was given.
7346if test "${enable_checkbox+set}" = set; then
7347 enableval="$enable_checkbox"
7348
7349 if test "$enableval" = yes; then
7350 ac_cv_use_checkbox='wxUSE_CHECKBOX=yes'
7351 else
7352 ac_cv_use_checkbox='wxUSE_CHECKBOX=no'
7353 fi
7354
7355else
7356
7357 LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}`
7358 if test "x$LINE" != x ; then
7359 eval "DEFAULT_$LINE"
7360 else
7361 no_cache=1
7362 fi
7363
7364 ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX
7365
7366fi;
7367
7368 eval "$ac_cv_use_checkbox"
7369 if test "$no_cache" != 1; then
7370 echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp
7371 fi
7372
7373 if test "$wxUSE_CHECKBOX" = yes; then
7374 echo "$as_me:$LINENO: result: yes" >&5
7375echo "${ECHO_T}yes" >&6
7376 else
7377 echo "$as_me:$LINENO: result: no" >&5
7378echo "${ECHO_T}no" >&6
7379 fi
7380
7381
7382 enablestring=
7383 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checklst" >&5
7384echo $ECHO_N "checking for --${enablestring:-enable}-checklst... $ECHO_C" >&6
7385 no_cache=0
7386 # Check whether --enable-checklst or --disable-checklst was given.
7387if test "${enable_checklst+set}" = set; then
7388 enableval="$enable_checklst"
7389
7390 if test "$enableval" = yes; then
7391 ac_cv_use_checklst='wxUSE_CHECKLST=yes'
7392 else
7393 ac_cv_use_checklst='wxUSE_CHECKLST=no'
7394 fi
7395
7396else
7397
7398 LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}`
7399 if test "x$LINE" != x ; then
7400 eval "DEFAULT_$LINE"
7401 else
7402 no_cache=1
7403 fi
7404
7405 ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST
7406
7407fi;
7408
7409 eval "$ac_cv_use_checklst"
7410 if test "$no_cache" != 1; then
7411 echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp
7412 fi
7413
7414 if test "$wxUSE_CHECKLST" = yes; then
7415 echo "$as_me:$LINENO: result: yes" >&5
7416echo "${ECHO_T}yes" >&6
7417 else
7418 echo "$as_me:$LINENO: result: no" >&5
7419echo "${ECHO_T}no" >&6
7420 fi
7421
7422
7423 enablestring=
7424 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choice" >&5
7425echo $ECHO_N "checking for --${enablestring:-enable}-choice... $ECHO_C" >&6
7426 no_cache=0
7427 # Check whether --enable-choice or --disable-choice was given.
7428if test "${enable_choice+set}" = set; then
7429 enableval="$enable_choice"
7430
7431 if test "$enableval" = yes; then
7432 ac_cv_use_choice='wxUSE_CHOICE=yes'
7433 else
7434 ac_cv_use_choice='wxUSE_CHOICE=no'
7435 fi
7436
7437else
7438
7439 LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}`
7440 if test "x$LINE" != x ; then
7441 eval "DEFAULT_$LINE"
7442 else
7443 no_cache=1
7444 fi
7445
7446 ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE
7447
7448fi;
7449
7450 eval "$ac_cv_use_choice"
7451 if test "$no_cache" != 1; then
7452 echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp
7453 fi
7454
7455 if test "$wxUSE_CHOICE" = yes; then
7456 echo "$as_me:$LINENO: result: yes" >&5
7457echo "${ECHO_T}yes" >&6
7458 else
7459 echo "$as_me:$LINENO: result: no" >&5
7460echo "${ECHO_T}no" >&6
7461 fi
7462
7463
92bbdbcd
WS
7464 enablestring=
7465 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicebook" >&5
7466echo $ECHO_N "checking for --${enablestring:-enable}-choicebook... $ECHO_C" >&6
7467 no_cache=0
7468 # Check whether --enable-choicebook or --disable-choicebook was given.
7469if test "${enable_choicebook+set}" = set; then
7470 enableval="$enable_choicebook"
7471
7472 if test "$enableval" = yes; then
7473 ac_cv_use_choicebook='wxUSE_CHOICEBOOK=yes'
7474 else
7475 ac_cv_use_choicebook='wxUSE_CHOICEBOOK=no'
7476 fi
7477
7478else
7479
7480 LINE=`grep "wxUSE_CHOICEBOOK" ${wx_arg_cache_file}`
7481 if test "x$LINE" != x ; then
7482 eval "DEFAULT_$LINE"
7483 else
7484 no_cache=1
7485 fi
7486
7487 ac_cv_use_choicebook='wxUSE_CHOICEBOOK='$DEFAULT_wxUSE_CHOICEBOOK
7488
7489fi;
7490
7491 eval "$ac_cv_use_choicebook"
7492 if test "$no_cache" != 1; then
7493 echo $ac_cv_use_choicebook >> ${wx_arg_cache_file}.tmp
7494 fi
7495
7496 if test "$wxUSE_CHOICEBOOK" = yes; then
7497 echo "$as_me:$LINENO: result: yes" >&5
7498echo "${ECHO_T}yes" >&6
7499 else
7500 echo "$as_me:$LINENO: result: no" >&5
7501echo "${ECHO_T}no" >&6
7502 fi
7503
7504
a848cd7e
SC
7505 enablestring=
7506 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-combobox" >&5
7507echo $ECHO_N "checking for --${enablestring:-enable}-combobox... $ECHO_C" >&6
7508 no_cache=0
7509 # Check whether --enable-combobox or --disable-combobox was given.
7510if test "${enable_combobox+set}" = set; then
7511 enableval="$enable_combobox"
7512
7513 if test "$enableval" = yes; then
7514 ac_cv_use_combobox='wxUSE_COMBOBOX=yes'
7515 else
7516 ac_cv_use_combobox='wxUSE_COMBOBOX=no'
7517 fi
7518
7519else
7520
7521 LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}`
7522 if test "x$LINE" != x ; then
7523 eval "DEFAULT_$LINE"
7524 else
7525 no_cache=1
7526 fi
7527
7528 ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX
7529
7530fi;
7531
7532 eval "$ac_cv_use_combobox"
7533 if test "$no_cache" != 1; then
7534 echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp
7535 fi
7536
7537 if test "$wxUSE_COMBOBOX" = yes; then
7538 echo "$as_me:$LINENO: result: yes" >&5
7539echo "${ECHO_T}yes" >&6
7540 else
7541 echo "$as_me:$LINENO: result: no" >&5
7542echo "${ECHO_T}no" >&6
7543 fi
7544
7545
7546 enablestring=
7547 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-display" >&5
7548echo $ECHO_N "checking for --${enablestring:-enable}-display... $ECHO_C" >&6
7549 no_cache=0
7550 # Check whether --enable-display or --disable-display was given.
7551if test "${enable_display+set}" = set; then
7552 enableval="$enable_display"
7553
7554 if test "$enableval" = yes; then
7555 ac_cv_use_display='wxUSE_DISPLAY=yes'
7556 else
7557 ac_cv_use_display='wxUSE_DISPLAY=no'
7558 fi
7559
7560else
7561
7562 LINE=`grep "wxUSE_DISPLAY" ${wx_arg_cache_file}`
7563 if test "x$LINE" != x ; then
7564 eval "DEFAULT_$LINE"
7565 else
7566 no_cache=1
7567 fi
7568
7569 ac_cv_use_display='wxUSE_DISPLAY='$DEFAULT_wxUSE_DISPLAY
7570
7571fi;
7572
7573 eval "$ac_cv_use_display"
7574 if test "$no_cache" != 1; then
7575 echo $ac_cv_use_display >> ${wx_arg_cache_file}.tmp
7576 fi
7577
7578 if test "$wxUSE_DISPLAY" = yes; then
7579 echo "$as_me:$LINENO: result: yes" >&5
7580echo "${ECHO_T}yes" >&6
7581 else
7582 echo "$as_me:$LINENO: result: no" >&5
7583echo "${ECHO_T}no" >&6
7584 fi
7585
7586
7587 enablestring=
7588 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gauge" >&5
7589echo $ECHO_N "checking for --${enablestring:-enable}-gauge... $ECHO_C" >&6
7590 no_cache=0
7591 # Check whether --enable-gauge or --disable-gauge was given.
7592if test "${enable_gauge+set}" = set; then
7593 enableval="$enable_gauge"
7594
7595 if test "$enableval" = yes; then
7596 ac_cv_use_gauge='wxUSE_GAUGE=yes'
7597 else
7598 ac_cv_use_gauge='wxUSE_GAUGE=no'
7599 fi
7600
7601else
7602
7603 LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}`
7604 if test "x$LINE" != x ; then
7605 eval "DEFAULT_$LINE"
7606 else
7607 no_cache=1
7608 fi
7609
7610 ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE
7611
7612fi;
7613
7614 eval "$ac_cv_use_gauge"
7615 if test "$no_cache" != 1; then
7616 echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp
7617 fi
7618
7619 if test "$wxUSE_GAUGE" = yes; then
7620 echo "$as_me:$LINENO: result: yes" >&5
7621echo "${ECHO_T}yes" >&6
7622 else
7623 echo "$as_me:$LINENO: result: no" >&5
7624echo "${ECHO_T}no" >&6
7625 fi
7626
7627
7628 enablestring=
7629 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-grid" >&5
7630echo $ECHO_N "checking for --${enablestring:-enable}-grid... $ECHO_C" >&6
7631 no_cache=0
7632 # Check whether --enable-grid or --disable-grid was given.
7633if test "${enable_grid+set}" = set; then
7634 enableval="$enable_grid"
7635
7636 if test "$enableval" = yes; then
7637 ac_cv_use_grid='wxUSE_GRID=yes'
7638 else
7639 ac_cv_use_grid='wxUSE_GRID=no'
7640 fi
7641
7642else
7643
7644 LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}`
7645 if test "x$LINE" != x ; then
7646 eval "DEFAULT_$LINE"
7647 else
7648 no_cache=1
7649 fi
7650
7651 ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID
7652
7653fi;
7654
7655 eval "$ac_cv_use_grid"
7656 if test "$no_cache" != 1; then
7657 echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp
7658 fi
7659
7660 if test "$wxUSE_GRID" = yes; then
7661 echo "$as_me:$LINENO: result: yes" >&5
7662echo "${ECHO_T}yes" >&6
7663 else
7664 echo "$as_me:$LINENO: result: no" >&5
7665echo "${ECHO_T}no" >&6
7666 fi
7667
7668
7669 enablestring=
7670 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-imaglist" >&5
7671echo $ECHO_N "checking for --${enablestring:-enable}-imaglist... $ECHO_C" >&6
7672 no_cache=0
7673 # Check whether --enable-imaglist or --disable-imaglist was given.
7674if test "${enable_imaglist+set}" = set; then
7675 enableval="$enable_imaglist"
7676
7677 if test "$enableval" = yes; then
7678 ac_cv_use_imaglist='wxUSE_IMAGLIST=yes'
7679 else
7680 ac_cv_use_imaglist='wxUSE_IMAGLIST=no'
7681 fi
7682
7683else
7684
7685 LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}`
7686 if test "x$LINE" != x ; then
7687 eval "DEFAULT_$LINE"
7688 else
7689 no_cache=1
7690 fi
7691
7692 ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST
7693
7694fi;
7695
7696 eval "$ac_cv_use_imaglist"
7697 if test "$no_cache" != 1; then
7698 echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp
7699 fi
7700
7701 if test "$wxUSE_IMAGLIST" = yes; then
7702 echo "$as_me:$LINENO: result: yes" >&5
7703echo "${ECHO_T}yes" >&6
7704 else
7705 echo "$as_me:$LINENO: result: no" >&5
7706echo "${ECHO_T}no" >&6
7707 fi
7708
7709
7710 enablestring=
7711 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbook" >&5
7712echo $ECHO_N "checking for --${enablestring:-enable}-listbook... $ECHO_C" >&6
7713 no_cache=0
7714 # Check whether --enable-listbook or --disable-listbook was given.
7715if test "${enable_listbook+set}" = set; then
7716 enableval="$enable_listbook"
7717
7718 if test "$enableval" = yes; then
7719 ac_cv_use_listbook='wxUSE_LISTBOOK=yes'
7720 else
7721 ac_cv_use_listbook='wxUSE_LISTBOOK=no'
7722 fi
7723
7724else
7725
7726 LINE=`grep "wxUSE_LISTBOOK" ${wx_arg_cache_file}`
7727 if test "x$LINE" != x ; then
7728 eval "DEFAULT_$LINE"
7729 else
7730 no_cache=1
7731 fi
7732
7733 ac_cv_use_listbook='wxUSE_LISTBOOK='$DEFAULT_wxUSE_LISTBOOK
7734
7735fi;
7736
7737 eval "$ac_cv_use_listbook"
7738 if test "$no_cache" != 1; then
7739 echo $ac_cv_use_listbook >> ${wx_arg_cache_file}.tmp
7740 fi
7741
7742 if test "$wxUSE_LISTBOOK" = yes; then
7743 echo "$as_me:$LINENO: result: yes" >&5
7744echo "${ECHO_T}yes" >&6
7745 else
7746 echo "$as_me:$LINENO: result: no" >&5
7747echo "${ECHO_T}no" >&6
7748 fi
7749
7750
7751 enablestring=
7752 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbox" >&5
7753echo $ECHO_N "checking for --${enablestring:-enable}-listbox... $ECHO_C" >&6
7754 no_cache=0
7755 # Check whether --enable-listbox or --disable-listbox was given.
7756if test "${enable_listbox+set}" = set; then
7757 enableval="$enable_listbox"
7758
7759 if test "$enableval" = yes; then
7760 ac_cv_use_listbox='wxUSE_LISTBOX=yes'
7761 else
7762 ac_cv_use_listbox='wxUSE_LISTBOX=no'
7763 fi
7764
7765else
7766
7767 LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}`
7768 if test "x$LINE" != x ; then
7769 eval "DEFAULT_$LINE"
7770 else
7771 no_cache=1
7772 fi
7773
7774 ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX
7775
7776fi;
7777
7778 eval "$ac_cv_use_listbox"
7779 if test "$no_cache" != 1; then
7780 echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp
7781 fi
7782
7783 if test "$wxUSE_LISTBOX" = yes; then
7784 echo "$as_me:$LINENO: result: yes" >&5
7785echo "${ECHO_T}yes" >&6
7786 else
7787 echo "$as_me:$LINENO: result: no" >&5
7788echo "${ECHO_T}no" >&6
7789 fi
7790
7791
7792 enablestring=
7793 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listctrl" >&5
7794echo $ECHO_N "checking for --${enablestring:-enable}-listctrl... $ECHO_C" >&6
7795 no_cache=0
7796 # Check whether --enable-listctrl or --disable-listctrl was given.
7797if test "${enable_listctrl+set}" = set; then
7798 enableval="$enable_listctrl"
7799
7800 if test "$enableval" = yes; then
7801 ac_cv_use_listctrl='wxUSE_LISTCTRL=yes'
7802 else
7803 ac_cv_use_listctrl='wxUSE_LISTCTRL=no'
7804 fi
7805
7806else
7807
7808 LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}`
7809 if test "x$LINE" != x ; then
7810 eval "DEFAULT_$LINE"
7811 else
7812 no_cache=1
7813 fi
7814
7815 ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL
7816
7817fi;
7818
7819 eval "$ac_cv_use_listctrl"
7820 if test "$no_cache" != 1; then
7821 echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp
7822 fi
7823
7824 if test "$wxUSE_LISTCTRL" = yes; then
7825 echo "$as_me:$LINENO: result: yes" >&5
7826echo "${ECHO_T}yes" >&6
7827 else
7828 echo "$as_me:$LINENO: result: no" >&5
7829echo "${ECHO_T}no" >&6
7830 fi
7831
7832
7833 enablestring=
7834 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-notebook" >&5
7835echo $ECHO_N "checking for --${enablestring:-enable}-notebook... $ECHO_C" >&6
7836 no_cache=0
7837 # Check whether --enable-notebook or --disable-notebook was given.
7838if test "${enable_notebook+set}" = set; then
7839 enableval="$enable_notebook"
7840
7841 if test "$enableval" = yes; then
7842 ac_cv_use_notebook='wxUSE_NOTEBOOK=yes'
7843 else
7844 ac_cv_use_notebook='wxUSE_NOTEBOOK=no'
7845 fi
7846
7847else
7848
7849 LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}`
7850 if test "x$LINE" != x ; then
7851 eval "DEFAULT_$LINE"
7852 else
7853 no_cache=1
7854 fi
7855
7856 ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK
7857
7858fi;
7859
7860 eval "$ac_cv_use_notebook"
7861 if test "$no_cache" != 1; then
7862 echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp
7863 fi
7864
7865 if test "$wxUSE_NOTEBOOK" = yes; then
7866 echo "$as_me:$LINENO: result: yes" >&5
7867echo "${ECHO_T}yes" >&6
7868 else
7869 echo "$as_me:$LINENO: result: no" >&5
7870echo "${ECHO_T}no" >&6
7871 fi
7872
7873
7874 enablestring=
7875 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobox" >&5
7876echo $ECHO_N "checking for --${enablestring:-enable}-radiobox... $ECHO_C" >&6
7877 no_cache=0
7878 # Check whether --enable-radiobox or --disable-radiobox was given.
7879if test "${enable_radiobox+set}" = set; then
7880 enableval="$enable_radiobox"
7881
7882 if test "$enableval" = yes; then
7883 ac_cv_use_radiobox='wxUSE_RADIOBOX=yes'
7884 else
7885 ac_cv_use_radiobox='wxUSE_RADIOBOX=no'
7886 fi
7887
7888else
7889
7890 LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}`
7891 if test "x$LINE" != x ; then
7892 eval "DEFAULT_$LINE"
7893 else
7894 no_cache=1
7895 fi
7896
7897 ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX
7898
7899fi;
7900
7901 eval "$ac_cv_use_radiobox"
7902 if test "$no_cache" != 1; then
7903 echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp
7904 fi
7905
7906 if test "$wxUSE_RADIOBOX" = yes; then
7907 echo "$as_me:$LINENO: result: yes" >&5
7908echo "${ECHO_T}yes" >&6
7909 else
7910 echo "$as_me:$LINENO: result: no" >&5
7911echo "${ECHO_T}no" >&6
7912 fi
7913
7914
7915 enablestring=
7916 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobtn" >&5
7917echo $ECHO_N "checking for --${enablestring:-enable}-radiobtn... $ECHO_C" >&6
7918 no_cache=0
7919 # Check whether --enable-radiobtn or --disable-radiobtn was given.
7920if test "${enable_radiobtn+set}" = set; then
7921 enableval="$enable_radiobtn"
7922
7923 if test "$enableval" = yes; then
7924 ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes'
7925 else
7926 ac_cv_use_radiobtn='wxUSE_RADIOBTN=no'
7927 fi
7928
7929else
7930
7931 LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}`
7932 if test "x$LINE" != x ; then
7933 eval "DEFAULT_$LINE"
7934 else
7935 no_cache=1
7936 fi
7937
7938 ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN
7939
7940fi;
7941
7942 eval "$ac_cv_use_radiobtn"
7943 if test "$no_cache" != 1; then
7944 echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp
7945 fi
7946
7947 if test "$wxUSE_RADIOBTN" = yes; then
7948 echo "$as_me:$LINENO: result: yes" >&5
7949echo "${ECHO_T}yes" >&6
7950 else
7951 echo "$as_me:$LINENO: result: no" >&5
7952echo "${ECHO_T}no" >&6
7953 fi
7954
7955
7956 enablestring=
7957 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sash" >&5
7958echo $ECHO_N "checking for --${enablestring:-enable}-sash... $ECHO_C" >&6
7959 no_cache=0
7960 # Check whether --enable-sash or --disable-sash was given.
7961if test "${enable_sash+set}" = set; then
7962 enableval="$enable_sash"
7963
7964 if test "$enableval" = yes; then
7965 ac_cv_use_sash='wxUSE_SASH=yes'
7966 else
7967 ac_cv_use_sash='wxUSE_SASH=no'
7968 fi
7969
7970else
7971
7972 LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}`
7973 if test "x$LINE" != x ; then
7974 eval "DEFAULT_$LINE"
7975 else
7976 no_cache=1
7977 fi
7978
7979 ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH
7980
7981fi;
7982
7983 eval "$ac_cv_use_sash"
7984 if test "$no_cache" != 1; then
7985 echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp
7986 fi
7987
7988 if test "$wxUSE_SASH" = yes; then
7989 echo "$as_me:$LINENO: result: yes" >&5
7990echo "${ECHO_T}yes" >&6
7991 else
7992 echo "$as_me:$LINENO: result: no" >&5
7993echo "${ECHO_T}no" >&6
7994 fi
7995
7996
7997 enablestring=
7998 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-scrollbar" >&5
7999echo $ECHO_N "checking for --${enablestring:-enable}-scrollbar... $ECHO_C" >&6
8000 no_cache=0
8001 # Check whether --enable-scrollbar or --disable-scrollbar was given.
8002if test "${enable_scrollbar+set}" = set; then
8003 enableval="$enable_scrollbar"
8004
8005 if test "$enableval" = yes; then
8006 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes'
8007 else
8008 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no'
8009 fi
8010
8011else
8012
8013 LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}`
8014 if test "x$LINE" != x ; then
8015 eval "DEFAULT_$LINE"
8016 else
8017 no_cache=1
8018 fi
8019
8020 ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR
8021
8022fi;
8023
8024 eval "$ac_cv_use_scrollbar"
8025 if test "$no_cache" != 1; then
8026 echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp
8027 fi
8028
8029 if test "$wxUSE_SCROLLBAR" = yes; then
8030 echo "$as_me:$LINENO: result: yes" >&5
8031echo "${ECHO_T}yes" >&6
8032 else
8033 echo "$as_me:$LINENO: result: no" >&5
8034echo "${ECHO_T}no" >&6
8035 fi
8036
8037
8038 enablestring=
8039 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-slider" >&5
8040echo $ECHO_N "checking for --${enablestring:-enable}-slider... $ECHO_C" >&6
8041 no_cache=0
8042 # Check whether --enable-slider or --disable-slider was given.
8043if test "${enable_slider+set}" = set; then
8044 enableval="$enable_slider"
8045
8046 if test "$enableval" = yes; then
8047 ac_cv_use_slider='wxUSE_SLIDER=yes'
8048 else
8049 ac_cv_use_slider='wxUSE_SLIDER=no'
8050 fi
8051
8052else
8053
8054 LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}`
8055 if test "x$LINE" != x ; then
8056 eval "DEFAULT_$LINE"
8057 else
8058 no_cache=1
8059 fi
8060
8061 ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER
8062
8063fi;
8064
8065 eval "$ac_cv_use_slider"
8066 if test "$no_cache" != 1; then
8067 echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp
8068 fi
8069
8070 if test "$wxUSE_SLIDER" = yes; then
8071 echo "$as_me:$LINENO: result: yes" >&5
8072echo "${ECHO_T}yes" >&6
8073 else
8074 echo "$as_me:$LINENO: result: no" >&5
8075echo "${ECHO_T}no" >&6
8076 fi
8077
8078
8079 enablestring=
8080 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinbtn" >&5
8081echo $ECHO_N "checking for --${enablestring:-enable}-spinbtn... $ECHO_C" >&6
8082 no_cache=0
8083 # Check whether --enable-spinbtn or --disable-spinbtn was given.
8084if test "${enable_spinbtn+set}" = set; then
8085 enableval="$enable_spinbtn"
8086
8087 if test "$enableval" = yes; then
8088 ac_cv_use_spinbtn='wxUSE_SPINBTN=yes'
8089 else
8090 ac_cv_use_spinbtn='wxUSE_SPINBTN=no'
8091 fi
8092
8093else
8094
8095 LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}`
8096 if test "x$LINE" != x ; then
8097 eval "DEFAULT_$LINE"
8098 else
8099 no_cache=1
8100 fi
8101
8102 ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN
8103
8104fi;
8105
8106 eval "$ac_cv_use_spinbtn"
8107 if test "$no_cache" != 1; then
8108 echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp
8109 fi
8110
8111 if test "$wxUSE_SPINBTN" = yes; then
8112 echo "$as_me:$LINENO: result: yes" >&5
8113echo "${ECHO_T}yes" >&6
8114 else
8115 echo "$as_me:$LINENO: result: no" >&5
8116echo "${ECHO_T}no" >&6
8117 fi
8118
8119
8120 enablestring=
8121 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinctrl" >&5
8122echo $ECHO_N "checking for --${enablestring:-enable}-spinctrl... $ECHO_C" >&6
8123 no_cache=0
8124 # Check whether --enable-spinctrl or --disable-spinctrl was given.
8125if test "${enable_spinctrl+set}" = set; then
8126 enableval="$enable_spinctrl"
8127
8128 if test "$enableval" = yes; then
8129 ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes'
8130 else
8131 ac_cv_use_spinctrl='wxUSE_SPINCTRL=no'
8132 fi
8133
8134else
8135
8136 LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}`
8137 if test "x$LINE" != x ; then
8138 eval "DEFAULT_$LINE"
8139 else
8140 no_cache=1
8141 fi
8142
8143 ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL
8144
8145fi;
8146
8147 eval "$ac_cv_use_spinctrl"
8148 if test "$no_cache" != 1; then
8149 echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp
8150 fi
8151
8152 if test "$wxUSE_SPINCTRL" = yes; then
8153 echo "$as_me:$LINENO: result: yes" >&5
8154echo "${ECHO_T}yes" >&6
8155 else
8156 echo "$as_me:$LINENO: result: no" >&5
8157echo "${ECHO_T}no" >&6
8158 fi
8159
8160
8161 enablestring=
8162 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splitter" >&5
8163echo $ECHO_N "checking for --${enablestring:-enable}-splitter... $ECHO_C" >&6
8164 no_cache=0
8165 # Check whether --enable-splitter or --disable-splitter was given.
8166if test "${enable_splitter+set}" = set; then
8167 enableval="$enable_splitter"
8168
8169 if test "$enableval" = yes; then
8170 ac_cv_use_splitter='wxUSE_SPLITTER=yes'
8171 else
8172 ac_cv_use_splitter='wxUSE_SPLITTER=no'
8173 fi
8174
8175else
8176
8177 LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}`
8178 if test "x$LINE" != x ; then
8179 eval "DEFAULT_$LINE"
8180 else
8181 no_cache=1
8182 fi
8183
8184 ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER
8185
8186fi;
8187
8188 eval "$ac_cv_use_splitter"
8189 if test "$no_cache" != 1; then
8190 echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp
8191 fi
8192
8193 if test "$wxUSE_SPLITTER" = yes; then
8194 echo "$as_me:$LINENO: result: yes" >&5
8195echo "${ECHO_T}yes" >&6
8196 else
8197 echo "$as_me:$LINENO: result: no" >&5
8198echo "${ECHO_T}no" >&6
8199 fi
8200
8201
8202 enablestring=
8203 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbmp" >&5
8204echo $ECHO_N "checking for --${enablestring:-enable}-statbmp... $ECHO_C" >&6
8205 no_cache=0
8206 # Check whether --enable-statbmp or --disable-statbmp was given.
8207if test "${enable_statbmp+set}" = set; then
8208 enableval="$enable_statbmp"
8209
8210 if test "$enableval" = yes; then
8211 ac_cv_use_statbmp='wxUSE_STATBMP=yes'
8212 else
8213 ac_cv_use_statbmp='wxUSE_STATBMP=no'
8214 fi
8215
8216else
8217
8218 LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}`
8219 if test "x$LINE" != x ; then
8220 eval "DEFAULT_$LINE"
8221 else
8222 no_cache=1
8223 fi
8224
8225 ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP
8226
8227fi;
8228
8229 eval "$ac_cv_use_statbmp"
8230 if test "$no_cache" != 1; then
8231 echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp
8232 fi
8233
8234 if test "$wxUSE_STATBMP" = yes; then
8235 echo "$as_me:$LINENO: result: yes" >&5
8236echo "${ECHO_T}yes" >&6
8237 else
8238 echo "$as_me:$LINENO: result: no" >&5
8239echo "${ECHO_T}no" >&6
8240 fi
8241
8242
8243 enablestring=
8244 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbox" >&5
8245echo $ECHO_N "checking for --${enablestring:-enable}-statbox... $ECHO_C" >&6
8246 no_cache=0
8247 # Check whether --enable-statbox or --disable-statbox was given.
8248if test "${enable_statbox+set}" = set; then
8249 enableval="$enable_statbox"
8250
8251 if test "$enableval" = yes; then
8252 ac_cv_use_statbox='wxUSE_STATBOX=yes'
8253 else
8254 ac_cv_use_statbox='wxUSE_STATBOX=no'
8255 fi
8256
8257else
8258
8259 LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}`
8260 if test "x$LINE" != x ; then
8261 eval "DEFAULT_$LINE"
8262 else
8263 no_cache=1
8264 fi
8265
8266 ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX
8267
8268fi;
8269
8270 eval "$ac_cv_use_statbox"
8271 if test "$no_cache" != 1; then
8272 echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp
8273 fi
8274
8275 if test "$wxUSE_STATBOX" = yes; then
8276 echo "$as_me:$LINENO: result: yes" >&5
8277echo "${ECHO_T}yes" >&6
8278 else
8279 echo "$as_me:$LINENO: result: no" >&5
8280echo "${ECHO_T}no" >&6
8281 fi
8282
8283
8284 enablestring=
8285 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statline" >&5
8286echo $ECHO_N "checking for --${enablestring:-enable}-statline... $ECHO_C" >&6
8287 no_cache=0
8288 # Check whether --enable-statline or --disable-statline was given.
8289if test "${enable_statline+set}" = set; then
8290 enableval="$enable_statline"
8291
8292 if test "$enableval" = yes; then
8293 ac_cv_use_statline='wxUSE_STATLINE=yes'
8294 else
8295 ac_cv_use_statline='wxUSE_STATLINE=no'
8296 fi
8297
8298else
8299
8300 LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}`
8301 if test "x$LINE" != x ; then
8302 eval "DEFAULT_$LINE"
8303 else
8304 no_cache=1
8305 fi
8306
8307 ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE
8308
8309fi;
8310
8311 eval "$ac_cv_use_statline"
8312 if test "$no_cache" != 1; then
8313 echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp
8314 fi
8315
8316 if test "$wxUSE_STATLINE" = yes; then
8317 echo "$as_me:$LINENO: result: yes" >&5
8318echo "${ECHO_T}yes" >&6
8319 else
8320 echo "$as_me:$LINENO: result: no" >&5
8321echo "${ECHO_T}no" >&6
8322 fi
8323
8324
8325 enablestring=
8326 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stattext" >&5
8327echo $ECHO_N "checking for --${enablestring:-enable}-stattext... $ECHO_C" >&6
8328 no_cache=0
8329 # Check whether --enable-stattext or --disable-stattext was given.
8330if test "${enable_stattext+set}" = set; then
8331 enableval="$enable_stattext"
8332
8333 if test "$enableval" = yes; then
8334 ac_cv_use_stattext='wxUSE_STATTEXT=yes'
8335 else
8336 ac_cv_use_stattext='wxUSE_STATTEXT=no'
8337 fi
8338
8339else
8340
8341 LINE=`grep "wxUSE_STATTEXT" ${wx_arg_cache_file}`
8342 if test "x$LINE" != x ; then
8343 eval "DEFAULT_$LINE"
8344 else
8345 no_cache=1
8346 fi
8347
8348 ac_cv_use_stattext='wxUSE_STATTEXT='$DEFAULT_wxUSE_STATTEXT
8349
8350fi;
8351
8352 eval "$ac_cv_use_stattext"
8353 if test "$no_cache" != 1; then
8354 echo $ac_cv_use_stattext >> ${wx_arg_cache_file}.tmp
8355 fi
8356
8357 if test "$wxUSE_STATTEXT" = yes; then
8358 echo "$as_me:$LINENO: result: yes" >&5
8359echo "${ECHO_T}yes" >&6
8360 else
8361 echo "$as_me:$LINENO: result: no" >&5
8362echo "${ECHO_T}no" >&6
8363 fi
8364
8365
8366 enablestring=
8367 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statusbar" >&5
8368echo $ECHO_N "checking for --${enablestring:-enable}-statusbar... $ECHO_C" >&6
8369 no_cache=0
8370 # Check whether --enable-statusbar or --disable-statusbar was given.
8371if test "${enable_statusbar+set}" = set; then
8372 enableval="$enable_statusbar"
8373
8374 if test "$enableval" = yes; then
8375 ac_cv_use_statusbar='wxUSE_STATUSBAR=yes'
8376 else
8377 ac_cv_use_statusbar='wxUSE_STATUSBAR=no'
8378 fi
8379
8380else
8381
8382 LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}`
8383 if test "x$LINE" != x ; then
8384 eval "DEFAULT_$LINE"
8385 else
8386 no_cache=1
8387 fi
8388
8389 ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR
8390
8391fi;
8392
8393 eval "$ac_cv_use_statusbar"
8394 if test "$no_cache" != 1; then
8395 echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp
8396 fi
8397
8398 if test "$wxUSE_STATUSBAR" = yes; then
8399 echo "$as_me:$LINENO: result: yes" >&5
8400echo "${ECHO_T}yes" >&6
8401 else
8402 echo "$as_me:$LINENO: result: no" >&5
8403echo "${ECHO_T}no" >&6
8404 fi
8405
8406
8407 enablestring=
8408 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tabdialog" >&5
8409echo $ECHO_N "checking for --${enablestring:-enable}-tabdialog... $ECHO_C" >&6
8410 no_cache=0
8411 # Check whether --enable-tabdialog or --disable-tabdialog was given.
8412if test "${enable_tabdialog+set}" = set; then
8413 enableval="$enable_tabdialog"
8414
8415 if test "$enableval" = yes; then
8416 ac_cv_use_tabdialog='wxUSE_TABDIALOG=yes'
8417 else
8418 ac_cv_use_tabdialog='wxUSE_TABDIALOG=no'
8419 fi
8420
8421else
8422
8423 LINE=`grep "wxUSE_TABDIALOG" ${wx_arg_cache_file}`
8424 if test "x$LINE" != x ; then
8425 eval "DEFAULT_$LINE"
8426 else
8427 no_cache=1
8428 fi
8429
8430 ac_cv_use_tabdialog='wxUSE_TABDIALOG='$DEFAULT_wxUSE_TABDIALOG
8431
8432fi;
8433
8434 eval "$ac_cv_use_tabdialog"
8435 if test "$no_cache" != 1; then
8436 echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp
8437 fi
8438
8439 if test "$wxUSE_TABDIALOG" = yes; then
8440 echo "$as_me:$LINENO: result: yes" >&5
8441echo "${ECHO_T}yes" >&6
8442 else
8443 echo "$as_me:$LINENO: result: no" >&5
8444echo "${ECHO_T}no" >&6
8445 fi
8446
8447
8448 enablestring=
8449 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textctrl" >&5
8450echo $ECHO_N "checking for --${enablestring:-enable}-textctrl... $ECHO_C" >&6
8451 no_cache=0
8452 # Check whether --enable-textctrl or --disable-textctrl was given.
8453if test "${enable_textctrl+set}" = set; then
8454 enableval="$enable_textctrl"
8455
8456 if test "$enableval" = yes; then
8457 ac_cv_use_textctrl='wxUSE_TEXTCTRL=yes'
8458 else
8459 ac_cv_use_textctrl='wxUSE_TEXTCTRL=no'
8460 fi
8461
8462else
8463
8464 LINE=`grep "wxUSE_TEXTCTRL" ${wx_arg_cache_file}`
8465 if test "x$LINE" != x ; then
8466 eval "DEFAULT_$LINE"
8467 else
8468 no_cache=1
8469 fi
8470
8471 ac_cv_use_textctrl='wxUSE_TEXTCTRL='$DEFAULT_wxUSE_TEXTCTRL
8472
8473fi;
8474
8475 eval "$ac_cv_use_textctrl"
8476 if test "$no_cache" != 1; then
8477 echo $ac_cv_use_textctrl >> ${wx_arg_cache_file}.tmp
8478 fi
8479
8480 if test "$wxUSE_TEXTCTRL" = yes; then
8481 echo "$as_me:$LINENO: result: yes" >&5
8482echo "${ECHO_T}yes" >&6
8483 else
8484 echo "$as_me:$LINENO: result: no" >&5
8485echo "${ECHO_T}no" >&6
8486 fi
8487
8488
8489 enablestring=
8490 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-togglebtn" >&5
8491echo $ECHO_N "checking for --${enablestring:-enable}-togglebtn... $ECHO_C" >&6
8492 no_cache=0
8493 # Check whether --enable-togglebtn or --disable-togglebtn was given.
8494if test "${enable_togglebtn+set}" = set; then
8495 enableval="$enable_togglebtn"
8496
8497 if test "$enableval" = yes; then
8498 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes'
8499 else
8500 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=no'
8501 fi
8502
8503else
8504
8505 LINE=`grep "wxUSE_TOGGLEBTN" ${wx_arg_cache_file}`
8506 if test "x$LINE" != x ; then
8507 eval "DEFAULT_$LINE"
8508 else
8509 no_cache=1
8510 fi
8511
8512 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN='$DEFAULT_wxUSE_TOGGLEBTN
8513
8514fi;
8515
8516 eval "$ac_cv_use_togglebtn"
8517 if test "$no_cache" != 1; then
8518 echo $ac_cv_use_togglebtn >> ${wx_arg_cache_file}.tmp
8519 fi
8520
8521 if test "$wxUSE_TOGGLEBTN" = yes; then
8522 echo "$as_me:$LINENO: result: yes" >&5
8523echo "${ECHO_T}yes" >&6
8524 else
8525 echo "$as_me:$LINENO: result: no" >&5
8526echo "${ECHO_T}no" >&6
8527 fi
8528
8529
8530 enablestring=
8531 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-toolbar" >&5
8532echo $ECHO_N "checking for --${enablestring:-enable}-toolbar... $ECHO_C" >&6
8533 no_cache=0
8534 # Check whether --enable-toolbar or --disable-toolbar was given.
8535if test "${enable_toolbar+set}" = set; then
8536 enableval="$enable_toolbar"
8537
8538 if test "$enableval" = yes; then
8539 ac_cv_use_toolbar='wxUSE_TOOLBAR=yes'
8540 else
8541 ac_cv_use_toolbar='wxUSE_TOOLBAR=no'
8542 fi
8543
8544else
8545
8546 LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}`
8547 if test "x$LINE" != x ; then
8548 eval "DEFAULT_$LINE"
8549 else
8550 no_cache=1
8551 fi
8552
8553 ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR
8554
8555fi;
8556
8557 eval "$ac_cv_use_toolbar"
8558 if test "$no_cache" != 1; then
8559 echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp
8560 fi
8561
8562 if test "$wxUSE_TOOLBAR" = yes; then
8563 echo "$as_me:$LINENO: result: yes" >&5
8564echo "${ECHO_T}yes" >&6
8565 else
8566 echo "$as_me:$LINENO: result: no" >&5
8567echo "${ECHO_T}no" >&6
8568 fi
8569
8570
8571 enablestring=
8572 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarnative" >&5
8573echo $ECHO_N "checking for --${enablestring:-enable}-tbarnative... $ECHO_C" >&6
8574 no_cache=0
8575 # Check whether --enable-tbarnative or --disable-tbarnative was given.
8576if test "${enable_tbarnative+set}" = set; then
8577 enableval="$enable_tbarnative"
8578
8579 if test "$enableval" = yes; then
8580 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes'
8581 else
8582 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no'
8583 fi
8584
8585else
8586
8587 LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}`
8588 if test "x$LINE" != x ; then
8589 eval "DEFAULT_$LINE"
8590 else
8591 no_cache=1
8592 fi
8593
8594 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE
8595
8596fi;
8597
8598 eval "$ac_cv_use_tbarnative"
8599 if test "$no_cache" != 1; then
8600 echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp
8601 fi
8602
8603 if test "$wxUSE_TOOLBAR_NATIVE" = yes; then
8604 echo "$as_me:$LINENO: result: yes" >&5
8605echo "${ECHO_T}yes" >&6
8606 else
8607 echo "$as_me:$LINENO: result: no" >&5
8608echo "${ECHO_T}no" >&6
8609 fi
8610
8611
8612 enablestring=
8613 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarsmpl" >&5
8614echo $ECHO_N "checking for --${enablestring:-enable}-tbarsmpl... $ECHO_C" >&6
8615 no_cache=0
8616 # Check whether --enable-tbarsmpl or --disable-tbarsmpl was given.
8617if test "${enable_tbarsmpl+set}" = set; then
8618 enableval="$enable_tbarsmpl"
8619
8620 if test "$enableval" = yes; then
8621 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=yes'
8622 else
8623 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=no'
8624 fi
8625
8626else
8627
8628 LINE=`grep "wxUSE_TOOLBAR_SIMPLE" ${wx_arg_cache_file}`
8629 if test "x$LINE" != x ; then
8630 eval "DEFAULT_$LINE"
8631 else
8632 no_cache=1
8633 fi
8634
8635 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE='$DEFAULT_wxUSE_TOOLBAR_SIMPLE
8636
8637fi;
8638
8639 eval "$ac_cv_use_tbarsmpl"
8640 if test "$no_cache" != 1; then
8641 echo $ac_cv_use_tbarsmpl >> ${wx_arg_cache_file}.tmp
8642 fi
8643
8644 if test "$wxUSE_TOOLBAR_SIMPLE" = yes; then
8645 echo "$as_me:$LINENO: result: yes" >&5
8646echo "${ECHO_T}yes" >&6
8647 else
8648 echo "$as_me:$LINENO: result: no" >&5
8649echo "${ECHO_T}no" >&6
8650 fi
8651
8652
8653 enablestring=
8654 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-treectrl" >&5
8655echo $ECHO_N "checking for --${enablestring:-enable}-treectrl... $ECHO_C" >&6
8656 no_cache=0
8657 # Check whether --enable-treectrl or --disable-treectrl was given.
8658if test "${enable_treectrl+set}" = set; then
8659 enableval="$enable_treectrl"
8660
8661 if test "$enableval" = yes; then
8662 ac_cv_use_treectrl='wxUSE_TREECTRL=yes'
8663 else
8664 ac_cv_use_treectrl='wxUSE_TREECTRL=no'
8665 fi
8666
8667else
8668
8669 LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}`
8670 if test "x$LINE" != x ; then
8671 eval "DEFAULT_$LINE"
8672 else
8673 no_cache=1
8674 fi
8675
8676 ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL
8677
8678fi;
8679
8680 eval "$ac_cv_use_treectrl"
8681 if test "$no_cache" != 1; then
8682 echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp
8683 fi
8684
8685 if test "$wxUSE_TREECTRL" = yes; then
8686 echo "$as_me:$LINENO: result: yes" >&5
8687echo "${ECHO_T}yes" >&6
8688 else
8689 echo "$as_me:$LINENO: result: no" >&5
8690echo "${ECHO_T}no" >&6
8691 fi
8692
8693
8694 enablestring=
8695 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipwindow" >&5
8696echo $ECHO_N "checking for --${enablestring:-enable}-tipwindow... $ECHO_C" >&6
8697 no_cache=0
8698 # Check whether --enable-tipwindow or --disable-tipwindow was given.
8699if test "${enable_tipwindow+set}" = set; then
8700 enableval="$enable_tipwindow"
8701
8702 if test "$enableval" = yes; then
8703 ac_cv_use_tipwindow='wxUSE_TIPWINDOW=yes'
8704 else
8705 ac_cv_use_tipwindow='wxUSE_TIPWINDOW=no'
8706 fi
8707
8708else
8709
8710 LINE=`grep "wxUSE_TIPWINDOW" ${wx_arg_cache_file}`
8711 if test "x$LINE" != x ; then
8712 eval "DEFAULT_$LINE"
8713 else
8714 no_cache=1
8715 fi
8716
8717 ac_cv_use_tipwindow='wxUSE_TIPWINDOW='$DEFAULT_wxUSE_TIPWINDOW
8718
8719fi;
8720
8721 eval "$ac_cv_use_tipwindow"
8722 if test "$no_cache" != 1; then
8723 echo $ac_cv_use_tipwindow >> ${wx_arg_cache_file}.tmp
8724 fi
8725
8726 if test "$wxUSE_TIPWINDOW" = yes; then
8727 echo "$as_me:$LINENO: result: yes" >&5
8728echo "${ECHO_T}yes" >&6
8729 else
8730 echo "$as_me:$LINENO: result: no" >&5
8731echo "${ECHO_T}no" >&6
8732 fi
8733
8734
8735 enablestring=
8736 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-popupwin" >&5
8737echo $ECHO_N "checking for --${enablestring:-enable}-popupwin... $ECHO_C" >&6
8738 no_cache=0
8739 # Check whether --enable-popupwin or --disable-popupwin was given.
8740if test "${enable_popupwin+set}" = set; then
8741 enableval="$enable_popupwin"
8742
8743 if test "$enableval" = yes; then
8744 ac_cv_use_popupwin='wxUSE_POPUPWIN=yes'
8745 else
8746 ac_cv_use_popupwin='wxUSE_POPUPWIN=no'
8747 fi
8748
8749else
8750
8751 LINE=`grep "wxUSE_POPUPWIN" ${wx_arg_cache_file}`
8752 if test "x$LINE" != x ; then
8753 eval "DEFAULT_$LINE"
8754 else
8755 no_cache=1
8756 fi
8757
8758 ac_cv_use_popupwin='wxUSE_POPUPWIN='$DEFAULT_wxUSE_POPUPWIN
8759
8760fi;
8761
8762 eval "$ac_cv_use_popupwin"
8763 if test "$no_cache" != 1; then
8764 echo $ac_cv_use_popupwin >> ${wx_arg_cache_file}.tmp
8765 fi
8766
8767 if test "$wxUSE_POPUPWIN" = yes; then
8768 echo "$as_me:$LINENO: result: yes" >&5
8769echo "${ECHO_T}yes" >&6
8770 else
8771 echo "$as_me:$LINENO: result: no" >&5
8772echo "${ECHO_T}no" >&6
8773 fi
8774
8775
8776
8777
8778 enablestring=
8779 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-commondlg" >&5
8780echo $ECHO_N "checking for --${enablestring:-enable}-commondlg... $ECHO_C" >&6
8781 no_cache=0
8782 # Check whether --enable-commondlg or --disable-commondlg was given.
8783if test "${enable_commondlg+set}" = set; then
8784 enableval="$enable_commondlg"
8785
8786 if test "$enableval" = yes; then
8787 ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes'
8788 else
8789 ac_cv_use_commondlg='wxUSE_COMMONDLGS=no'
8790 fi
8791
8792else
8793
8794 LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}`
8795 if test "x$LINE" != x ; then
8796 eval "DEFAULT_$LINE"
8797 else
8798 no_cache=1
8799 fi
8800
8801 ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS
8802
8803fi;
8804
8805 eval "$ac_cv_use_commondlg"
8806 if test "$no_cache" != 1; then
8807 echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp
8808 fi
8809
8810 if test "$wxUSE_COMMONDLGS" = yes; then
8811 echo "$as_me:$LINENO: result: yes" >&5
8812echo "${ECHO_T}yes" >&6
8813 else
8814 echo "$as_me:$LINENO: result: no" >&5
8815echo "${ECHO_T}no" >&6
8816 fi
8817
8818
8819 enablestring=
8820 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicedlg" >&5
8821echo $ECHO_N "checking for --${enablestring:-enable}-choicedlg... $ECHO_C" >&6
8822 no_cache=0
8823 # Check whether --enable-choicedlg or --disable-choicedlg was given.
8824if test "${enable_choicedlg+set}" = set; then
8825 enableval="$enable_choicedlg"
8826
8827 if test "$enableval" = yes; then
8828 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=yes'
8829 else
8830 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=no'
8831 fi
8832
8833else
8834
8835 LINE=`grep "wxUSE_CHOICEDLG" ${wx_arg_cache_file}`
8836 if test "x$LINE" != x ; then
8837 eval "DEFAULT_$LINE"
8838 else
8839 no_cache=1
8840 fi
8841
8842 ac_cv_use_choicedlg='wxUSE_CHOICEDLG='$DEFAULT_wxUSE_CHOICEDLG
8843
8844fi;
8845
8846 eval "$ac_cv_use_choicedlg"
8847 if test "$no_cache" != 1; then
8848 echo $ac_cv_use_choicedlg >> ${wx_arg_cache_file}.tmp
8849 fi
8850
8851 if test "$wxUSE_CHOICEDLG" = yes; then
8852 echo "$as_me:$LINENO: result: yes" >&5
8853echo "${ECHO_T}yes" >&6
8854 else
8855 echo "$as_me:$LINENO: result: no" >&5
8856echo "${ECHO_T}no" >&6
8857 fi
8858
8859
8860 enablestring=
8861 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-coldlg" >&5
8862echo $ECHO_N "checking for --${enablestring:-enable}-coldlg... $ECHO_C" >&6
8863 no_cache=0
8864 # Check whether --enable-coldlg or --disable-coldlg was given.
8865if test "${enable_coldlg+set}" = set; then
8866 enableval="$enable_coldlg"
8867
8868 if test "$enableval" = yes; then
8869 ac_cv_use_coldlg='wxUSE_COLOURDLG=yes'
8870 else
8871 ac_cv_use_coldlg='wxUSE_COLOURDLG=no'
8872 fi
8873
8874else
8875
8876 LINE=`grep "wxUSE_COLOURDLG" ${wx_arg_cache_file}`
8877 if test "x$LINE" != x ; then
8878 eval "DEFAULT_$LINE"
8879 else
8880 no_cache=1
8881 fi
8882
8883 ac_cv_use_coldlg='wxUSE_COLOURDLG='$DEFAULT_wxUSE_COLOURDLG
8884
8885fi;
8886
8887 eval "$ac_cv_use_coldlg"
8888 if test "$no_cache" != 1; then
8889 echo $ac_cv_use_coldlg >> ${wx_arg_cache_file}.tmp
8890 fi
8891
8892 if test "$wxUSE_COLOURDLG" = yes; then
8893 echo "$as_me:$LINENO: result: yes" >&5
8894echo "${ECHO_T}yes" >&6
8895 else
8896 echo "$as_me:$LINENO: result: no" >&5
8897echo "${ECHO_T}no" >&6
8898 fi
8899
8900
8901 enablestring=
8902 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filedlg" >&5
8903echo $ECHO_N "checking for --${enablestring:-enable}-filedlg... $ECHO_C" >&6
8904 no_cache=0
8905 # Check whether --enable-filedlg or --disable-filedlg was given.
8906if test "${enable_filedlg+set}" = set; then
8907 enableval="$enable_filedlg"
8908
8909 if test "$enableval" = yes; then
8910 ac_cv_use_filedlg='wxUSE_FILEDLG=yes'
8911 else
8912 ac_cv_use_filedlg='wxUSE_FILEDLG=no'
8913 fi
8914
8915else
8916
8917 LINE=`grep "wxUSE_FILEDLG" ${wx_arg_cache_file}`
8918 if test "x$LINE" != x ; then
8919 eval "DEFAULT_$LINE"
8920 else
8921 no_cache=1
8922 fi
8923
8924 ac_cv_use_filedlg='wxUSE_FILEDLG='$DEFAULT_wxUSE_FILEDLG
8925
8926fi;
8927
8928 eval "$ac_cv_use_filedlg"
8929 if test "$no_cache" != 1; then
8930 echo $ac_cv_use_filedlg >> ${wx_arg_cache_file}.tmp
8931 fi
8932
8933 if test "$wxUSE_FILEDLG" = yes; then
8934 echo "$as_me:$LINENO: result: yes" >&5
8935echo "${ECHO_T}yes" >&6
8936 else
8937 echo "$as_me:$LINENO: result: no" >&5
8938echo "${ECHO_T}no" >&6
8939 fi
8940
8941
8942 enablestring=
8943 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-finddlg" >&5
8944echo $ECHO_N "checking for --${enablestring:-enable}-finddlg... $ECHO_C" >&6
8945 no_cache=0
8946 # Check whether --enable-finddlg or --disable-finddlg was given.
8947if test "${enable_finddlg+set}" = set; then
8948 enableval="$enable_finddlg"
8949
8950 if test "$enableval" = yes; then
8951 ac_cv_use_finddlg='wxUSE_FINDREPLDLG=yes'
8952 else
8953 ac_cv_use_finddlg='wxUSE_FINDREPLDLG=no'
8954 fi
8955
8956else
8957
8958 LINE=`grep "wxUSE_FINDREPLDLG" ${wx_arg_cache_file}`
8959 if test "x$LINE" != x ; then
8960 eval "DEFAULT_$LINE"
8961 else
8962 no_cache=1
8963 fi
8964
8965 ac_cv_use_finddlg='wxUSE_FINDREPLDLG='$DEFAULT_wxUSE_FINDREPLDLG
8966
8967fi;
8968
8969 eval "$ac_cv_use_finddlg"
8970 if test "$no_cache" != 1; then
8971 echo $ac_cv_use_finddlg >> ${wx_arg_cache_file}.tmp
8972 fi
8973
8974 if test "$wxUSE_FINDREPLDLG" = yes; then
8975 echo "$as_me:$LINENO: result: yes" >&5
8976echo "${ECHO_T}yes" >&6
8977 else
8978 echo "$as_me:$LINENO: result: no" >&5
8979echo "${ECHO_T}no" >&6
8980 fi
8981
8982
8983 enablestring=
8984 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontdlg" >&5
8985echo $ECHO_N "checking for --${enablestring:-enable}-fontdlg... $ECHO_C" >&6
8986 no_cache=0
8987 # Check whether --enable-fontdlg or --disable-fontdlg was given.
8988if test "${enable_fontdlg+set}" = set; then
8989 enableval="$enable_fontdlg"
8990
8991 if test "$enableval" = yes; then
8992 ac_cv_use_fontdlg='wxUSE_FONTDLG=yes'
8993 else
8994 ac_cv_use_fontdlg='wxUSE_FONTDLG=no'
8995 fi
8996
8997else
8998
8999 LINE=`grep "wxUSE_FONTDLG" ${wx_arg_cache_file}`
9000 if test "x$LINE" != x ; then
9001 eval "DEFAULT_$LINE"
9002 else
9003 no_cache=1
9004 fi
9005
9006 ac_cv_use_fontdlg='wxUSE_FONTDLG='$DEFAULT_wxUSE_FONTDLG
9007
9008fi;
9009
9010 eval "$ac_cv_use_fontdlg"
9011 if test "$no_cache" != 1; then
9012 echo $ac_cv_use_fontdlg >> ${wx_arg_cache_file}.tmp
9013 fi
9014
9015 if test "$wxUSE_FONTDLG" = yes; then
9016 echo "$as_me:$LINENO: result: yes" >&5
9017echo "${ECHO_T}yes" >&6
9018 else
9019 echo "$as_me:$LINENO: result: no" >&5
9020echo "${ECHO_T}no" >&6
9021 fi
9022
9023
9024 enablestring=
9025 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dirdlg" >&5
9026echo $ECHO_N "checking for --${enablestring:-enable}-dirdlg... $ECHO_C" >&6
9027 no_cache=0
9028 # Check whether --enable-dirdlg or --disable-dirdlg was given.
9029if test "${enable_dirdlg+set}" = set; then
9030 enableval="$enable_dirdlg"
9031
9032 if test "$enableval" = yes; then
9033 ac_cv_use_dirdlg='wxUSE_DIRDLG=yes'
9034 else
9035 ac_cv_use_dirdlg='wxUSE_DIRDLG=no'
9036 fi
9037
9038else
9039
9040 LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}`
9041 if test "x$LINE" != x ; then
9042 eval "DEFAULT_$LINE"
9043 else
9044 no_cache=1
9045 fi
9046
9047 ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG
9048
9049fi;
9050
9051 eval "$ac_cv_use_dirdlg"
9052 if test "$no_cache" != 1; then
9053 echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp
9054 fi
9055
9056 if test "$wxUSE_DIRDLG" = yes; then
9057 echo "$as_me:$LINENO: result: yes" >&5
9058echo "${ECHO_T}yes" >&6
9059 else
9060 echo "$as_me:$LINENO: result: no" >&5
9061echo "${ECHO_T}no" >&6
9062 fi
9063
9064
9065 enablestring=
9066 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-msgdlg" >&5
9067echo $ECHO_N "checking for --${enablestring:-enable}-msgdlg... $ECHO_C" >&6
9068 no_cache=0
9069 # Check whether --enable-msgdlg or --disable-msgdlg was given.
9070if test "${enable_msgdlg+set}" = set; then
9071 enableval="$enable_msgdlg"
9072
9073 if test "$enableval" = yes; then
9074 ac_cv_use_msgdlg='wxUSE_MSGDLG=yes'
9075 else
9076 ac_cv_use_msgdlg='wxUSE_MSGDLG=no'
9077 fi
9078
9079else
9080
9081 LINE=`grep "wxUSE_MSGDLG" ${wx_arg_cache_file}`
9082 if test "x$LINE" != x ; then
9083 eval "DEFAULT_$LINE"
9084 else
9085 no_cache=1
9086 fi
9087
9088 ac_cv_use_msgdlg='wxUSE_MSGDLG='$DEFAULT_wxUSE_MSGDLG
9089
9090fi;
9091
9092 eval "$ac_cv_use_msgdlg"
9093 if test "$no_cache" != 1; then
9094 echo $ac_cv_use_msgdlg >> ${wx_arg_cache_file}.tmp
9095 fi
9096
9097 if test "$wxUSE_MSGDLG" = yes; then
9098 echo "$as_me:$LINENO: result: yes" >&5
9099echo "${ECHO_T}yes" >&6
9100 else
9101 echo "$as_me:$LINENO: result: no" >&5
9102echo "${ECHO_T}no" >&6
9103 fi
9104
9105
9106 enablestring=
9107 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-numberdlg" >&5
9108echo $ECHO_N "checking for --${enablestring:-enable}-numberdlg... $ECHO_C" >&6
9109 no_cache=0
9110 # Check whether --enable-numberdlg or --disable-numberdlg was given.
9111if test "${enable_numberdlg+set}" = set; then
9112 enableval="$enable_numberdlg"
9113
9114 if test "$enableval" = yes; then
9115 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=yes'
9116 else
9117 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=no'
9118 fi
9119
9120else
9121
9122 LINE=`grep "wxUSE_NUMBERDLG" ${wx_arg_cache_file}`
9123 if test "x$LINE" != x ; then
9124 eval "DEFAULT_$LINE"
9125 else
9126 no_cache=1
9127 fi
9128
9129 ac_cv_use_numberdlg='wxUSE_NUMBERDLG='$DEFAULT_wxUSE_NUMBERDLG
9130
9131fi;
9132
9133 eval "$ac_cv_use_numberdlg"
9134 if test "$no_cache" != 1; then
9135 echo $ac_cv_use_numberdlg >> ${wx_arg_cache_file}.tmp
9136 fi
9137
9138 if test "$wxUSE_NUMBERDLG" = yes; then
9139 echo "$as_me:$LINENO: result: yes" >&5
9140echo "${ECHO_T}yes" >&6
9141 else
9142 echo "$as_me:$LINENO: result: no" >&5
9143echo "${ECHO_T}no" >&6
9144 fi
9145
9146
9147 enablestring=
9148 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splash" >&5
9149echo $ECHO_N "checking for --${enablestring:-enable}-splash... $ECHO_C" >&6
9150 no_cache=0
9151 # Check whether --enable-splash or --disable-splash was given.
9152if test "${enable_splash+set}" = set; then
9153 enableval="$enable_splash"
9154
9155 if test "$enableval" = yes; then
9156 ac_cv_use_splash='wxUSE_SPLASH=yes'
9157 else
9158 ac_cv_use_splash='wxUSE_SPLASH=no'
9159 fi
9160
9161else
9162
9163 LINE=`grep "wxUSE_SPLASH" ${wx_arg_cache_file}`
9164 if test "x$LINE" != x ; then
9165 eval "DEFAULT_$LINE"
9166 else
9167 no_cache=1
9168 fi
9169
9170 ac_cv_use_splash='wxUSE_SPLASH='$DEFAULT_wxUSE_SPLASH
9171
9172fi;
9173
9174 eval "$ac_cv_use_splash"
9175 if test "$no_cache" != 1; then
9176 echo $ac_cv_use_splash >> ${wx_arg_cache_file}.tmp
9177 fi
9178
9179 if test "$wxUSE_SPLASH" = yes; then
9180 echo "$as_me:$LINENO: result: yes" >&5
9181echo "${ECHO_T}yes" >&6
9182 else
9183 echo "$as_me:$LINENO: result: no" >&5
9184echo "${ECHO_T}no" >&6
9185 fi
9186
9187
9188 enablestring=
9189 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textdlg" >&5
9190echo $ECHO_N "checking for --${enablestring:-enable}-textdlg... $ECHO_C" >&6
9191 no_cache=0
9192 # Check whether --enable-textdlg or --disable-textdlg was given.
9193if test "${enable_textdlg+set}" = set; then
9194 enableval="$enable_textdlg"
9195
9196 if test "$enableval" = yes; then
9197 ac_cv_use_textdlg='wxUSE_TEXTDLG=yes'
9198 else
9199 ac_cv_use_textdlg='wxUSE_TEXTDLG=no'
9200 fi
9201
9202else
9203
9204 LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}`
9205 if test "x$LINE" != x ; then
9206 eval "DEFAULT_$LINE"
9207 else
9208 no_cache=1
9209 fi
9210
9211 ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG
9212
9213fi;
9214
9215 eval "$ac_cv_use_textdlg"
9216 if test "$no_cache" != 1; then
9217 echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp
9218 fi
9219
9220 if test "$wxUSE_TEXTDLG" = yes; then
9221 echo "$as_me:$LINENO: result: yes" >&5
9222echo "${ECHO_T}yes" >&6
9223 else
9224 echo "$as_me:$LINENO: result: no" >&5
9225echo "${ECHO_T}no" >&6
9226 fi
9227
9228
9229 enablestring=
9230 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipdlg" >&5
9231echo $ECHO_N "checking for --${enablestring:-enable}-tipdlg... $ECHO_C" >&6
9232 no_cache=0
9233 # Check whether --enable-tipdlg or --disable-tipdlg was given.
9234if test "${enable_tipdlg+set}" = set; then
9235 enableval="$enable_tipdlg"
9236
9237 if test "$enableval" = yes; then
9238 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes'
9239 else
9240 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no'
9241 fi
9242
9243else
9244
9245 LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}`
9246 if test "x$LINE" != x ; then
9247 eval "DEFAULT_$LINE"
9248 else
9249 no_cache=1
9250 fi
9251
9252 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS
9253
9254fi;
9255
9256 eval "$ac_cv_use_tipdlg"
9257 if test "$no_cache" != 1; then
9258 echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp
9259 fi
9260
9261 if test "$wxUSE_STARTUP_TIPS" = yes; then
9262 echo "$as_me:$LINENO: result: yes" >&5
9263echo "${ECHO_T}yes" >&6
9264 else
9265 echo "$as_me:$LINENO: result: no" >&5
9266echo "${ECHO_T}no" >&6
9267 fi
9268
9269
9270 enablestring=
9271 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-progressdlg" >&5
9272echo $ECHO_N "checking for --${enablestring:-enable}-progressdlg... $ECHO_C" >&6
9273 no_cache=0
9274 # Check whether --enable-progressdlg or --disable-progressdlg was given.
9275if test "${enable_progressdlg+set}" = set; then
9276 enableval="$enable_progressdlg"
9277
9278 if test "$enableval" = yes; then
9279 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes'
9280 else
9281 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no'
9282 fi
9283
9284else
9285
9286 LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}`
9287 if test "x$LINE" != x ; then
9288 eval "DEFAULT_$LINE"
9289 else
9290 no_cache=1
9291 fi
9292
9293 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG
9294
9295fi;
9296
9297 eval "$ac_cv_use_progressdlg"
9298 if test "$no_cache" != 1; then
9299 echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp
9300 fi
9301
9302 if test "$wxUSE_PROGRESSDLG" = yes; then
9303 echo "$as_me:$LINENO: result: yes" >&5
9304echo "${ECHO_T}yes" >&6
9305 else
9306 echo "$as_me:$LINENO: result: no" >&5
9307echo "${ECHO_T}no" >&6
9308 fi
9309
9310
9311 enablestring=
9312 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wizarddlg" >&5
9313echo $ECHO_N "checking for --${enablestring:-enable}-wizarddlg... $ECHO_C" >&6
9314 no_cache=0
9315 # Check whether --enable-wizarddlg or --disable-wizarddlg was given.
9316if test "${enable_wizarddlg+set}" = set; then
9317 enableval="$enable_wizarddlg"
9318
9319 if test "$enableval" = yes; then
9320 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=yes'
9321 else
9322 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=no'
9323 fi
9324
9325else
9326
9327 LINE=`grep "wxUSE_WIZARDDLG" ${wx_arg_cache_file}`
9328 if test "x$LINE" != x ; then
9329 eval "DEFAULT_$LINE"
9330 else
9331 no_cache=1
9332 fi
9333
9334 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG='$DEFAULT_wxUSE_WIZARDDLG
9335
9336fi;
9337
9338 eval "$ac_cv_use_wizarddlg"
9339 if test "$no_cache" != 1; then
9340 echo $ac_cv_use_wizarddlg >> ${wx_arg_cache_file}.tmp
9341 fi
9342
9343 if test "$wxUSE_WIZARDDLG" = yes; then
9344 echo "$as_me:$LINENO: result: yes" >&5
9345echo "${ECHO_T}yes" >&6
9346 else
9347 echo "$as_me:$LINENO: result: no" >&5
9348echo "${ECHO_T}no" >&6
9349 fi
9350
9351
9352
9353
9354 enablestring=
9355 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-menus" >&5
9356echo $ECHO_N "checking for --${enablestring:-enable}-menus... $ECHO_C" >&6
9357 no_cache=0
9358 # Check whether --enable-menus or --disable-menus was given.
9359if test "${enable_menus+set}" = set; then
9360 enableval="$enable_menus"
9361
9362 if test "$enableval" = yes; then
9363 ac_cv_use_menus='wxUSE_MENUS=yes'
9364 else
9365 ac_cv_use_menus='wxUSE_MENUS=no'
9366 fi
9367
9368else
9369
9370 LINE=`grep "wxUSE_MENUS" ${wx_arg_cache_file}`
9371 if test "x$LINE" != x ; then
9372 eval "DEFAULT_$LINE"
9373 else
9374 no_cache=1
9375 fi
9376
9377 ac_cv_use_menus='wxUSE_MENUS='$DEFAULT_wxUSE_MENUS
9378
9379fi;
9380
9381 eval "$ac_cv_use_menus"
9382 if test "$no_cache" != 1; then
9383 echo $ac_cv_use_menus >> ${wx_arg_cache_file}.tmp
9384 fi
9385
9386 if test "$wxUSE_MENUS" = yes; then
9387 echo "$as_me:$LINENO: result: yes" >&5
9388echo "${ECHO_T}yes" >&6
9389 else
9390 echo "$as_me:$LINENO: result: no" >&5
9391echo "${ECHO_T}no" >&6
9392 fi
9393
9394
9395 enablestring=
9396 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-miniframe" >&5
9397echo $ECHO_N "checking for --${enablestring:-enable}-miniframe... $ECHO_C" >&6
9398 no_cache=0
9399 # Check whether --enable-miniframe or --disable-miniframe was given.
9400if test "${enable_miniframe+set}" = set; then
9401 enableval="$enable_miniframe"
9402
9403 if test "$enableval" = yes; then
9404 ac_cv_use_miniframe='wxUSE_MINIFRAME=yes'
9405 else
9406 ac_cv_use_miniframe='wxUSE_MINIFRAME=no'
9407 fi
9408
9409else
9410
9411 LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}`
9412 if test "x$LINE" != x ; then
9413 eval "DEFAULT_$LINE"
9414 else
9415 no_cache=1
9416 fi
9417
9418 ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME
9419
9420fi;
9421
9422 eval "$ac_cv_use_miniframe"
9423 if test "$no_cache" != 1; then
9424 echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp
9425 fi
9426
9427 if test "$wxUSE_MINIFRAME" = yes; then
9428 echo "$as_me:$LINENO: result: yes" >&5
9429echo "${ECHO_T}yes" >&6
9430 else
9431 echo "$as_me:$LINENO: result: no" >&5
9432echo "${ECHO_T}no" >&6
9433 fi
9434
9435
9436 enablestring=
9437 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tooltips" >&5
9438echo $ECHO_N "checking for --${enablestring:-enable}-tooltips... $ECHO_C" >&6
9439 no_cache=0
9440 # Check whether --enable-tooltips or --disable-tooltips was given.
9441if test "${enable_tooltips+set}" = set; then
9442 enableval="$enable_tooltips"
9443
9444 if test "$enableval" = yes; then
9445 ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes'
9446 else
9447 ac_cv_use_tooltips='wxUSE_TOOLTIPS=no'
9448 fi
9449
9450else
9451
9452 LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}`
9453 if test "x$LINE" != x ; then
9454 eval "DEFAULT_$LINE"
9455 else
9456 no_cache=1
9457 fi
9458
9459 ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS
9460
9461fi;
9462
9463 eval "$ac_cv_use_tooltips"
9464 if test "$no_cache" != 1; then
9465 echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp
9466 fi
9467
9468 if test "$wxUSE_TOOLTIPS" = yes; then
9469 echo "$as_me:$LINENO: result: yes" >&5
9470echo "${ECHO_T}yes" >&6
9471 else
9472 echo "$as_me:$LINENO: result: no" >&5
9473echo "${ECHO_T}no" >&6
9474 fi
9475
9476
9477 enablestring=
9478 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splines" >&5
9479echo $ECHO_N "checking for --${enablestring:-enable}-splines... $ECHO_C" >&6
9480 no_cache=0
9481 # Check whether --enable-splines or --disable-splines was given.
9482if test "${enable_splines+set}" = set; then
9483 enableval="$enable_splines"
9484
9485 if test "$enableval" = yes; then
9486 ac_cv_use_splines='wxUSE_SPLINES=yes'
9487 else
9488 ac_cv_use_splines='wxUSE_SPLINES=no'
9489 fi
9490
9491else
9492
9493 LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}`
9494 if test "x$LINE" != x ; then
9495 eval "DEFAULT_$LINE"
9496 else
9497 no_cache=1
9498 fi
9499
9500 ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES
9501
9502fi;
9503
9504 eval "$ac_cv_use_splines"
9505 if test "$no_cache" != 1; then
9506 echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp
9507 fi
9508
9509 if test "$wxUSE_SPLINES" = yes; then
9510 echo "$as_me:$LINENO: result: yes" >&5
9511echo "${ECHO_T}yes" >&6
9512 else
9513 echo "$as_me:$LINENO: result: no" >&5
9514echo "${ECHO_T}no" >&6
9515 fi
9516
9517
9518 enablestring=
9519 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-validators" >&5
9520echo $ECHO_N "checking for --${enablestring:-enable}-validators... $ECHO_C" >&6
9521 no_cache=0
9522 # Check whether --enable-validators or --disable-validators was given.
9523if test "${enable_validators+set}" = set; then
9524 enableval="$enable_validators"
9525
9526 if test "$enableval" = yes; then
9527 ac_cv_use_validators='wxUSE_VALIDATORS=yes'
9528 else
9529 ac_cv_use_validators='wxUSE_VALIDATORS=no'
9530 fi
9531
9532else
9533
9534 LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}`
9535 if test "x$LINE" != x ; then
9536 eval "DEFAULT_$LINE"
9537 else
9538 no_cache=1
9539 fi
9540
9541 ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS
9542
9543fi;
9544
9545 eval "$ac_cv_use_validators"
9546 if test "$no_cache" != 1; then
9547 echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp
9548 fi
9549
9550 if test "$wxUSE_VALIDATORS" = yes; then
9551 echo "$as_me:$LINENO: result: yes" >&5
9552echo "${ECHO_T}yes" >&6
9553 else
9554 echo "$as_me:$LINENO: result: no" >&5
9555echo "${ECHO_T}no" >&6
9556 fi
9557
9558
9559 enablestring=
9560 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-busyinfo" >&5
9561echo $ECHO_N "checking for --${enablestring:-enable}-busyinfo... $ECHO_C" >&6
9562 no_cache=0
9563 # Check whether --enable-busyinfo or --disable-busyinfo was given.
9564if test "${enable_busyinfo+set}" = set; then
9565 enableval="$enable_busyinfo"
9566
9567 if test "$enableval" = yes; then
9568 ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes'
9569 else
9570 ac_cv_use_busyinfo='wxUSE_BUSYINFO=no'
9571 fi
9572
9573else
9574
9575 LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}`
9576 if test "x$LINE" != x ; then
9577 eval "DEFAULT_$LINE"
9578 else
9579 no_cache=1
9580 fi
9581
9582 ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO
9583
9584fi;
9585
9586 eval "$ac_cv_use_busyinfo"
9587 if test "$no_cache" != 1; then
9588 echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp
9589 fi
9590
9591 if test "$wxUSE_BUSYINFO" = yes; then
9592 echo "$as_me:$LINENO: result: yes" >&5
9593echo "${ECHO_T}yes" >&6
9594 else
9595 echo "$as_me:$LINENO: result: no" >&5
9596echo "${ECHO_T}no" >&6
9597 fi
9598
9599
9600 enablestring=
9601 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-joystick" >&5
9602echo $ECHO_N "checking for --${enablestring:-enable}-joystick... $ECHO_C" >&6
9603 no_cache=0
9604 # Check whether --enable-joystick or --disable-joystick was given.
9605if test "${enable_joystick+set}" = set; then
9606 enableval="$enable_joystick"
9607
9608 if test "$enableval" = yes; then
9609 ac_cv_use_joystick='wxUSE_JOYSTICK=yes'
9610 else
9611 ac_cv_use_joystick='wxUSE_JOYSTICK=no'
9612 fi
9613
9614else
9615
9616 LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}`
9617 if test "x$LINE" != x ; then
9618 eval "DEFAULT_$LINE"
9619 else
9620 no_cache=1
9621 fi
9622
9623 ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK
9624
9625fi;
9626
9627 eval "$ac_cv_use_joystick"
9628 if test "$no_cache" != 1; then
9629 echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp
9630 fi
9631
9632 if test "$wxUSE_JOYSTICK" = yes; then
9633 echo "$as_me:$LINENO: result: yes" >&5
9634echo "${ECHO_T}yes" >&6
9635 else
9636 echo "$as_me:$LINENO: result: no" >&5
9637echo "${ECHO_T}no" >&6
9638 fi
9639
9640
9641 enablestring=
9642 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5
9643echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6
9644 no_cache=0
9645 # Check whether --enable-metafile or --disable-metafile was given.
9646if test "${enable_metafile+set}" = set; then
9647 enableval="$enable_metafile"
9648
9649 if test "$enableval" = yes; then
9650 ac_cv_use_metafile='wxUSE_METAFILE=yes'
9651 else
9652 ac_cv_use_metafile='wxUSE_METAFILE=no'
9653 fi
9654
9655else
9656
9657 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
9658 if test "x$LINE" != x ; then
9659 eval "DEFAULT_$LINE"
9660 else
9661 no_cache=1
9662 fi
9663
9664 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
9665
9666fi;
9667
9668 eval "$ac_cv_use_metafile"
9669 if test "$no_cache" != 1; then
9670 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
9671 fi
9672
9673 if test "$wxUSE_METAFILE" = yes; then
9674 echo "$as_me:$LINENO: result: yes" >&5
9675echo "${ECHO_T}yes" >&6
9676 else
9677 echo "$as_me:$LINENO: result: no" >&5
9678echo "${ECHO_T}no" >&6
9679 fi
9680
9681
9682 enablestring=
9683 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dragimage" >&5
9684echo $ECHO_N "checking for --${enablestring:-enable}-dragimage... $ECHO_C" >&6
9685 no_cache=0
9686 # Check whether --enable-dragimage or --disable-dragimage was given.
9687if test "${enable_dragimage+set}" = set; then
9688 enableval="$enable_dragimage"
9689
9690 if test "$enableval" = yes; then
9691 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=yes'
9692 else
9693 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=no'
9694 fi
9695
9696else
9697
9698 LINE=`grep "wxUSE_DRAGIMAGE" ${wx_arg_cache_file}`
9699 if test "x$LINE" != x ; then
9700 eval "DEFAULT_$LINE"
9701 else
9702 no_cache=1
9703 fi
9704
9705 ac_cv_use_dragimage='wxUSE_DRAGIMAGE='$DEFAULT_wxUSE_DRAGIMAGE
9706
9707fi;
9708
9709 eval "$ac_cv_use_dragimage"
9710 if test "$no_cache" != 1; then
9711 echo $ac_cv_use_dragimage >> ${wx_arg_cache_file}.tmp
9712 fi
9713
9714 if test "$wxUSE_DRAGIMAGE" = yes; then
9715 echo "$as_me:$LINENO: result: yes" >&5
9716echo "${ECHO_T}yes" >&6
9717 else
9718 echo "$as_me:$LINENO: result: no" >&5
9719echo "${ECHO_T}no" >&6
9720 fi
9721
9722
9723 enablestring=
9724 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accessibility" >&5
9725echo $ECHO_N "checking for --${enablestring:-enable}-accessibility... $ECHO_C" >&6
9726 no_cache=0
9727 # Check whether --enable-accessibility or --disable-accessibility was given.
9728if test "${enable_accessibility+set}" = set; then
9729 enableval="$enable_accessibility"
9730
9731 if test "$enableval" = yes; then
9732 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=yes'
9733 else
9734 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=no'
9735 fi
9736
9737else
9738
9739 LINE=`grep "wxUSE_ACCESSIBILITY" ${wx_arg_cache_file}`
9740 if test "x$LINE" != x ; then
9741 eval "DEFAULT_$LINE"
9742 else
9743 no_cache=1
9744 fi
9745
9746 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY='$DEFAULT_wxUSE_ACCESSIBILITY
9747
9748fi;
9749
9750 eval "$ac_cv_use_accessibility"
9751 if test "$no_cache" != 1; then
9752 echo $ac_cv_use_accessibility >> ${wx_arg_cache_file}.tmp
9753 fi
9754
9755 if test "$wxUSE_ACCESSIBILITY" = yes; then
9756 echo "$as_me:$LINENO: result: yes" >&5
9757echo "${ECHO_T}yes" >&6
9758 else
9759 echo "$as_me:$LINENO: result: no" >&5
9760echo "${ECHO_T}no" >&6
9761 fi
9762
9763
9764
9765
9766 enablestring=
9767 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-palette" >&5
9768echo $ECHO_N "checking for --${enablestring:-enable}-palette... $ECHO_C" >&6
9769 no_cache=0
9770 # Check whether --enable-palette or --disable-palette was given.
9771if test "${enable_palette+set}" = set; then
9772 enableval="$enable_palette"
9773
9774 if test "$enableval" = yes; then
9775 ac_cv_use_palette='wxUSE_PALETTE=yes'
9776 else
9777 ac_cv_use_palette='wxUSE_PALETTE=no'
9778 fi
9779
9780else
9781
9782 LINE=`grep "wxUSE_PALETTE" ${wx_arg_cache_file}`
9783 if test "x$LINE" != x ; then
9784 eval "DEFAULT_$LINE"
9785 else
9786 no_cache=1
9787 fi
9788
9789 ac_cv_use_palette='wxUSE_PALETTE='$DEFAULT_wxUSE_PALETTE
9790
9791fi;
9792
9793 eval "$ac_cv_use_palette"
9794 if test "$no_cache" != 1; then
9795 echo $ac_cv_use_palette >> ${wx_arg_cache_file}.tmp
9796 fi
9797
9798 if test "$wxUSE_PALETTE" = yes; then
9799 echo "$as_me:$LINENO: result: yes" >&5
9800echo "${ECHO_T}yes" >&6
9801 else
9802 echo "$as_me:$LINENO: result: no" >&5
9803echo "${ECHO_T}no" >&6
9804 fi
9805
9806
9807 enablestring=
9808 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-image" >&5
9809echo $ECHO_N "checking for --${enablestring:-enable}-image... $ECHO_C" >&6
9810 no_cache=0
9811 # Check whether --enable-image or --disable-image was given.
9812if test "${enable_image+set}" = set; then
9813 enableval="$enable_image"
9814
9815 if test "$enableval" = yes; then
9816 ac_cv_use_image='wxUSE_IMAGE=yes'
9817 else
9818 ac_cv_use_image='wxUSE_IMAGE=no'
9819 fi
9820
9821else
9822
9823 LINE=`grep "wxUSE_IMAGE" ${wx_arg_cache_file}`
9824 if test "x$LINE" != x ; then
9825 eval "DEFAULT_$LINE"
9826 else
9827 no_cache=1
9828 fi
9829
9830 ac_cv_use_image='wxUSE_IMAGE='$DEFAULT_wxUSE_IMAGE
9831
9832fi;
9833
9834 eval "$ac_cv_use_image"
9835 if test "$no_cache" != 1; then
9836 echo $ac_cv_use_image >> ${wx_arg_cache_file}.tmp
9837 fi
9838
9839 if test "$wxUSE_IMAGE" = yes; then
9840 echo "$as_me:$LINENO: result: yes" >&5
9841echo "${ECHO_T}yes" >&6
9842 else
9843 echo "$as_me:$LINENO: result: no" >&5
9844echo "${ECHO_T}no" >&6
9845 fi
9846
9847
9848 enablestring=
9849 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gif" >&5
9850echo $ECHO_N "checking for --${enablestring:-enable}-gif... $ECHO_C" >&6
9851 no_cache=0
9852 # Check whether --enable-gif or --disable-gif was given.
9853if test "${enable_gif+set}" = set; then
9854 enableval="$enable_gif"
9855
9856 if test "$enableval" = yes; then
9857 ac_cv_use_gif='wxUSE_GIF=yes'
9858 else
9859 ac_cv_use_gif='wxUSE_GIF=no'
9860 fi
9861
9862else
9863
9864 LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}`
9865 if test "x$LINE" != x ; then
9866 eval "DEFAULT_$LINE"
9867 else
9868 no_cache=1
9869 fi
9870
9871 ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF
9872
9873fi;
9874
9875 eval "$ac_cv_use_gif"
9876 if test "$no_cache" != 1; then
9877 echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp
9878 fi
9879
9880 if test "$wxUSE_GIF" = yes; then
9881 echo "$as_me:$LINENO: result: yes" >&5
9882echo "${ECHO_T}yes" >&6
9883 else
9884 echo "$as_me:$LINENO: result: no" >&5
9885echo "${ECHO_T}no" >&6
9886 fi
9887
9888
9889 enablestring=
9890 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pcx" >&5
9891echo $ECHO_N "checking for --${enablestring:-enable}-pcx... $ECHO_C" >&6
9892 no_cache=0
9893 # Check whether --enable-pcx or --disable-pcx was given.
9894if test "${enable_pcx+set}" = set; then
9895 enableval="$enable_pcx"
9896
9897 if test "$enableval" = yes; then
9898 ac_cv_use_pcx='wxUSE_PCX=yes'
9899 else
9900 ac_cv_use_pcx='wxUSE_PCX=no'
9901 fi
9902
9903else
9904
9905 LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}`
9906 if test "x$LINE" != x ; then
9907 eval "DEFAULT_$LINE"
9908 else
9909 no_cache=1
9910 fi
9911
9912 ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX
9913
9914fi;
9915
9916 eval "$ac_cv_use_pcx"
9917 if test "$no_cache" != 1; then
9918 echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp
9919 fi
9920
9921 if test "$wxUSE_PCX" = yes; then
9922 echo "$as_me:$LINENO: result: yes" >&5
9923echo "${ECHO_T}yes" >&6
9924 else
9925 echo "$as_me:$LINENO: result: no" >&5
9926echo "${ECHO_T}no" >&6
9927 fi
9928
9929
9930 enablestring=
9931 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-iff" >&5
9932echo $ECHO_N "checking for --${enablestring:-enable}-iff... $ECHO_C" >&6
9933 no_cache=0
9934 # Check whether --enable-iff or --disable-iff was given.
9935if test "${enable_iff+set}" = set; then
9936 enableval="$enable_iff"
9937
9938 if test "$enableval" = yes; then
9939 ac_cv_use_iff='wxUSE_IFF=yes'
9940 else
9941 ac_cv_use_iff='wxUSE_IFF=no'
9942 fi
9943
9944else
9945
9946 LINE=`grep "wxUSE_IFF" ${wx_arg_cache_file}`
9947 if test "x$LINE" != x ; then
9948 eval "DEFAULT_$LINE"
9949 else
9950 no_cache=1
9951 fi
9952
9953 ac_cv_use_iff='wxUSE_IFF='$DEFAULT_wxUSE_IFF
9954
9955fi;
9956
9957 eval "$ac_cv_use_iff"
9958 if test "$no_cache" != 1; then
9959 echo $ac_cv_use_iff >> ${wx_arg_cache_file}.tmp
9960 fi
9961
9962 if test "$wxUSE_IFF" = yes; then
9963 echo "$as_me:$LINENO: result: yes" >&5
9964echo "${ECHO_T}yes" >&6
9965 else
9966 echo "$as_me:$LINENO: result: no" >&5
9967echo "${ECHO_T}no" >&6
9968 fi
9969
9970
9971 enablestring=
9972 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pnm" >&5
9973echo $ECHO_N "checking for --${enablestring:-enable}-pnm... $ECHO_C" >&6
9974 no_cache=0
9975 # Check whether --enable-pnm or --disable-pnm was given.
9976if test "${enable_pnm+set}" = set; then
9977 enableval="$enable_pnm"
9978
9979 if test "$enableval" = yes; then
9980 ac_cv_use_pnm='wxUSE_PNM=yes'
9981 else
9982 ac_cv_use_pnm='wxUSE_PNM=no'
9983 fi
9984
9985else
9986
9987 LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}`
9988 if test "x$LINE" != x ; then
9989 eval "DEFAULT_$LINE"
9990 else
9991 no_cache=1
9992 fi
9993
9994 ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM
9995
9996fi;
9997
9998 eval "$ac_cv_use_pnm"
9999 if test "$no_cache" != 1; then
10000 echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp
10001 fi
10002
10003 if test "$wxUSE_PNM" = yes; then
10004 echo "$as_me:$LINENO: result: yes" >&5
10005echo "${ECHO_T}yes" >&6
10006 else
10007 echo "$as_me:$LINENO: result: no" >&5
10008echo "${ECHO_T}no" >&6
10009 fi
10010
10011
10012 enablestring=
10013 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xpm" >&5
10014echo $ECHO_N "checking for --${enablestring:-enable}-xpm... $ECHO_C" >&6
10015 no_cache=0
10016 # Check whether --enable-xpm or --disable-xpm was given.
10017if test "${enable_xpm+set}" = set; then
10018 enableval="$enable_xpm"
10019
10020 if test "$enableval" = yes; then
10021 ac_cv_use_xpm='wxUSE_XPM=yes'
10022 else
10023 ac_cv_use_xpm='wxUSE_XPM=no'
10024 fi
10025
10026else
10027
10028 LINE=`grep "wxUSE_XPM" ${wx_arg_cache_file}`
10029 if test "x$LINE" != x ; then
10030 eval "DEFAULT_$LINE"
10031 else
10032 no_cache=1
10033 fi
10034
10035 ac_cv_use_xpm='wxUSE_XPM='$DEFAULT_wxUSE_XPM
10036
10037fi;
10038
10039 eval "$ac_cv_use_xpm"
10040 if test "$no_cache" != 1; then
10041 echo $ac_cv_use_xpm >> ${wx_arg_cache_file}.tmp
10042 fi
10043
10044 if test "$wxUSE_XPM" = yes; then
10045 echo "$as_me:$LINENO: result: yes" >&5
10046echo "${ECHO_T}yes" >&6
10047 else
10048 echo "$as_me:$LINENO: result: no" >&5
10049echo "${ECHO_T}no" >&6
10050 fi
10051
10052
10053 enablestring=
10054 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ico_cur" >&5
10055echo $ECHO_N "checking for --${enablestring:-enable}-ico_cur... $ECHO_C" >&6
10056 no_cache=0
10057 # Check whether --enable-ico_cur or --disable-ico_cur was given.
10058if test "${enable_ico_cur+set}" = set; then
10059 enableval="$enable_ico_cur"
10060
10061 if test "$enableval" = yes; then
10062 ac_cv_use_ico_cur='wxUSE_ICO_CUR=yes'
10063 else
10064 ac_cv_use_ico_cur='wxUSE_ICO_CUR=no'
10065 fi
10066
10067else
10068
10069 LINE=`grep "wxUSE_ICO_CUR" ${wx_arg_cache_file}`
10070 if test "x$LINE" != x ; then
10071 eval "DEFAULT_$LINE"
10072 else
10073 no_cache=1
10074 fi
10075
10076 ac_cv_use_ico_cur='wxUSE_ICO_CUR='$DEFAULT_wxUSE_ICO_CUR
10077
10078fi;
10079
10080 eval "$ac_cv_use_ico_cur"
10081 if test "$no_cache" != 1; then
10082 echo $ac_cv_use_ico_cur >> ${wx_arg_cache_file}.tmp
10083 fi
10084
10085 if test "$wxUSE_ICO_CUR" = yes; then
10086 echo "$as_me:$LINENO: result: yes" >&5
10087echo "${ECHO_T}yes" >&6
10088 else
10089 echo "$as_me:$LINENO: result: no" >&5
10090echo "${ECHO_T}no" >&6
10091 fi
10092
10093
10094fi
10095
10096
10097
ceec2216
RL
10098# Check whether --with-flavour or --without-flavour was given.
10099if test "${with_flavour+set}" = set; then
10100 withval="$with_flavour"
10101 WX_FLAVOUR="$withval"
10102fi;
10103
10104
10105
a848cd7e
SC
10106 enablestring=
10107 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-official_build" >&5
10108echo $ECHO_N "checking for --${enablestring:-enable}-official_build... $ECHO_C" >&6
10109 no_cache=0
10110 # Check whether --enable-official_build or --disable-official_build was given.
10111if test "${enable_official_build+set}" = set; then
10112 enableval="$enable_official_build"
10113
10114 if test "$enableval" = yes; then
10115 ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD=yes'
10116 else
10117 ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD=no'
10118 fi
10119
10120else
10121
10122 LINE=`grep "wxUSE_OFFICIAL_BUILD" ${wx_arg_cache_file}`
10123 if test "x$LINE" != x ; then
10124 eval "DEFAULT_$LINE"
10125 else
10126 no_cache=1
10127 fi
10128
10129 ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD='$DEFAULT_wxUSE_OFFICIAL_BUILD
10130
10131fi;
10132
10133 eval "$ac_cv_use_official_build"
10134 if test "$no_cache" != 1; then
10135 echo $ac_cv_use_official_build >> ${wx_arg_cache_file}.tmp
10136 fi
10137
10138 if test "$wxUSE_OFFICIAL_BUILD" = yes; then
10139 echo "$as_me:$LINENO: result: yes" >&5
10140echo "${ECHO_T}yes" >&6
10141 else
10142 echo "$as_me:$LINENO: result: no" >&5
10143echo "${ECHO_T}no" >&6
10144 fi
10145
10146# Check whether --enable-vendor or --disable-vendor was given.
10147if test "${enable_vendor+set}" = set; then
10148 enableval="$enable_vendor"
10149 VENDOR="$enableval"
10150fi;
10151if test "x$VENDOR" = "x"; then
10152 VENDOR="custom"
10153fi
10154
a848cd7e
SC
10155
10156
10157
10158 echo "saving argument cache $wx_arg_cache_file"
10159 mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file}
10160
10161
10162
10163echo "$as_me:$LINENO: checking for toolkit" >&5
10164echo $ECHO_N "checking for toolkit... $ECHO_C" >&6
10165
10166# In Wine, we need to default to MSW, not GTK or MOTIF
10167if test "$wxUSE_WINE" = "yes"; then
10168 DEFAULT_DEFAULT_wxUSE_GTK=0
10169 DEFAULT_DEFAULT_wxUSE_MOTIF=0
10170 DEFAULT_DEFAULT_wxUSE_MSW=1
10171 wxUSE_SHARED=no
10172fi
10173
10174if test "$wxUSE_GUI" = "yes"; then
10175
10176 if test "$USE_BEOS" = 1; then
10177 { { echo "$as_me:$LINENO: error: BeOS GUI is not supported yet, use --disable-gui" >&5
10178echo "$as_me: error: BeOS GUI is not supported yet, use --disable-gui" >&2;}
10179 { (exit 1); exit 1; }; }
10180 fi
10181
10182 if test "$TOOLKIT_GIVEN" = 1; then
10183 for toolkit in `echo $ALL_TOOLKITS`; do
10184 var=wxUSE_$toolkit
10185 eval "value=\$${var}"
10186 eval "$var=`echo \$value | sed -e "s/yes/1/" -e "s/no/0/"`"
10187 done
10188 else
10189 for toolkit in `echo $ALL_TOOLKITS`; do
10190 if test "$has_toolkit_in_cache" != 1; then
10191 var=DEFAULT_DEFAULT_wxUSE_$toolkit
10192 else
10193 var=DEFAULT_wxUSE_$toolkit
10194 fi
10195 eval "wxUSE_$toolkit=\$${var}"
10196 done
10197 fi
10198
10199 NUM_TOOLKITS=`expr ${wxUSE_COCOA:-0} + ${wxUSE_GTK:-0} + ${wxUSE_MAC:-0} \
10200 + ${wxUSE_MGL:-0} + ${wxUSE_MICROWIN:-0} \
10201 + ${wxUSE_MOTIF:-0} + ${wxUSE_MSW:-0} + ${wxUSE_X11:-0}`
10202
10203 case "${host}" in
10204 *-pc-os2_emx | *-pc-os2-emx )
10205 NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}`
10206 esac
10207
10208 case "$NUM_TOOLKITS" in
10209 1)
10210 ;;
10211 0)
10212 { { echo "$as_me:$LINENO: error: Please specify a toolkit -- cannot determine the default for ${host}" >&5
10213echo "$as_me: error: Please specify a toolkit -- cannot determine the default for ${host}" >&2;}
10214 { (exit 1); exit 1; }; }
10215 ;;
10216 *)
10217 { { echo "$as_me:$LINENO: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&5
10218echo "$as_me: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&2;}
10219 { (exit 1); exit 1; }; }
10220 esac
10221
10222 for toolkit in `echo $ALL_TOOLKITS`; do
10223 var=wxUSE_$toolkit
10224 eval "value=\$${var}"
10225 if test "x$value" != x; then
10226 cache_var=CACHE_$toolkit
10227 eval "cache=\$${cache_var}"
10228 if test "$cache" = 1; then
10229 echo "$var=$value" >> ${wx_arg_cache_file}
10230 fi
10231 if test "$value" = 1; then
10232 toolkit_echo=`echo $toolkit | tr "[A-Z]" "[a-z]"`
10233 echo "$as_me:$LINENO: result: $toolkit_echo" >&5
10234echo "${ECHO_T}$toolkit_echo" >&6
10235 fi
10236 fi
10237 done
10238else
10239 if test "x$host_alias" != "x"; then
10240 echo "$as_me:$LINENO: result: base ($host_alias hosted) only" >&5
10241echo "${ECHO_T}base ($host_alias hosted) only" >&6
10242 else
10243 echo "$as_me:$LINENO: result: base only" >&5
10244echo "${ECHO_T}base only" >&6
10245 fi
10246fi
10247
10248wants_win32=0
10249doesnt_want_win32=0
10250case "${host}" in
10251 *-*-cygwin*)
10252 if test "$wxUSE_MSW" = 1 ; then
10253 wants_win32=1
10254 else
10255 doesnt_want_win32=1
10256 fi
10257 ;;
10258 *-*-mingw*)
10259 wants_win32=1
10260 ;;
10261esac
10262
10263if test "$wxUSE_WINE" = "yes"; then
10264 wants_win32=1
10265 CC=winegcc
10266 CXX=wineg++
10267 RESCOMP=wrc
10268 LDFLAGS_GUI="-mwindows"
10269fi
10270
10271if test "$wants_win32" = 1 ; then
10272 USE_UNIX=0
10273 USE_WIN32=1
10274 cat >>confdefs.h <<\_ACEOF
10275#define __WIN32__ 1
10276_ACEOF
10277
10278 cat >>confdefs.h <<\_ACEOF
10279#define __WIN95__ 1
10280_ACEOF
10281
10282 cat >>confdefs.h <<\_ACEOF
10283#define __WINDOWS__ 1
10284_ACEOF
10285
10286 cat >>confdefs.h <<\_ACEOF
10287#define __GNUWIN32__ 1
10288_ACEOF
10289
10290 cat >>confdefs.h <<\_ACEOF
10291#define STRICT 1
10292_ACEOF
10293
10294 cat >>confdefs.h <<\_ACEOF
10295#define WINVER 0x0400
10296_ACEOF
10297
10298fi
10299if test "$doesnt_want_win32" = 1 ; then
10300 USE_UNIX=1
10301 USE_WIN32=0
10302fi
10303
10304if test "$USE_UNIX" = 1 ; then
10305 wxUSE_UNIX=yes
10306 cat >>confdefs.h <<\_ACEOF
10307#define __UNIX__ 1
10308_ACEOF
10309
10310fi
10311
10312
10313cat >confcache <<\_ACEOF
10314# This file is a shell script that caches the results of configure
10315# tests run on this system so they can be shared between configure
10316# scripts and configure runs, see configure's option --config-cache.
10317# It is not useful on other systems. If it contains results you don't
10318# want to keep, you may remove or edit it.
10319#
10320# config.status only pays attention to the cache file if you give it
10321# the --recheck option to rerun configure.
10322#
10323# `ac_cv_env_foo' variables (set or unset) will be overridden when
10324# loading this file, other *unset* `ac_cv_foo' will be assigned the
10325# following values.
10326
10327_ACEOF
10328
10329# The following way of writing the cache mishandles newlines in values,
10330# but we know of no workaround that is simple, portable, and efficient.
10331# So, don't put newlines in cache variables' values.
10332# Ultrix sh set writes to stderr and can't be redirected directly,
10333# and sets the high bit in the cache file unless we assign to the vars.
10334{
10335 (set) 2>&1 |
10336 case `(ac_space=' '; set | grep ac_space) 2>&1` in
10337 *ac_space=\ *)
10338 # `set' does not quote correctly, so add quotes (double-quote
10339 # substitution turns \\\\ into \\, and sed turns \\ into \).
10340 sed -n \
ac1cb8d3
VS
10341 "s/'/'\\\\''/g;
10342 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a848cd7e
SC
10343 ;;
10344 *)
10345 # `set' quotes correctly as required by POSIX, so do not add quotes.
10346 sed -n \
ac1cb8d3 10347 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
10348 ;;
10349 esac;
10350} |
10351 sed '
10352 t clear
10353 : clear
10354 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10355 t end
10356 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10357 : end' >>confcache
10358if diff $cache_file confcache >/dev/null 2>&1; then :; else
10359 if test -w $cache_file; then
10360 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
10361 cat confcache >$cache_file
10362 else
10363 echo "not updating unwritable cache $cache_file"
10364 fi
10365fi
10366rm -f confcache
10367
10368if test "$build" != "$host" ; then
10369 if test "$USE_WIN32" = 1 -o "$USE_DOS" = 1 -o "$USE_UNIX"; then
10370 CC=$host_alias-gcc
10371 CXX=$host_alias-c++
10372 AR=$host_alias-ar
10373 RANLIB=$host_alias-ranlib
10374 DLLTOOL=$host_alias-dlltool
10375 RESCOMP=$host_alias-windres
a848cd7e
SC
10376 STRIP=$host_alias-strip
10377 else
10378 { { echo "$as_me:$LINENO: error: $build_alias -> $host_alias cross compilation not supported yet." >&5
10379echo "$as_me: error: $build_alias -> $host_alias cross compilation not supported yet." >&2;}
10380 { (exit 1); exit 1; }; }
10381 fi
10382fi
10383
10384CFLAGS=${CFLAGS:=}
10385ac_ext=c
10386ac_cpp='$CPP $CPPFLAGS'
10387ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10388ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10389ac_compiler_gnu=$ac_cv_c_compiler_gnu
10390if test -n "$ac_tool_prefix"; then
10391 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
10392set dummy ${ac_tool_prefix}gcc; ac_word=$2
10393echo "$as_me:$LINENO: checking for $ac_word" >&5
10394echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10395if test "${ac_cv_prog_CC+set}" = set; then
10396 echo $ECHO_N "(cached) $ECHO_C" >&6
10397else
10398 if test -n "$CC"; then
10399 ac_cv_prog_CC="$CC" # Let the user override the test.
10400else
10401as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10402for as_dir in $PATH
10403do
10404 IFS=$as_save_IFS
10405 test -z "$as_dir" && as_dir=.
10406 for ac_exec_ext in '' $ac_executable_extensions; do
10407 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10408 ac_cv_prog_CC="${ac_tool_prefix}gcc"
10409 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10410 break 2
10411 fi
10412done
10413done
10414
10415fi
10416fi
10417CC=$ac_cv_prog_CC
10418if test -n "$CC"; then
10419 echo "$as_me:$LINENO: result: $CC" >&5
10420echo "${ECHO_T}$CC" >&6
10421else
10422 echo "$as_me:$LINENO: result: no" >&5
10423echo "${ECHO_T}no" >&6
10424fi
10425
10426fi
10427if test -z "$ac_cv_prog_CC"; then
10428 ac_ct_CC=$CC
10429 # Extract the first word of "gcc", so it can be a program name with args.
10430set dummy gcc; ac_word=$2
10431echo "$as_me:$LINENO: checking for $ac_word" >&5
10432echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10433if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
10434 echo $ECHO_N "(cached) $ECHO_C" >&6
10435else
10436 if test -n "$ac_ct_CC"; then
10437 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
10438else
10439as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10440for as_dir in $PATH
10441do
10442 IFS=$as_save_IFS
10443 test -z "$as_dir" && as_dir=.
10444 for ac_exec_ext in '' $ac_executable_extensions; do
10445 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10446 ac_cv_prog_ac_ct_CC="gcc"
10447 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10448 break 2
10449 fi
10450done
10451done
10452
10453fi
10454fi
10455ac_ct_CC=$ac_cv_prog_ac_ct_CC
10456if test -n "$ac_ct_CC"; then
10457 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
10458echo "${ECHO_T}$ac_ct_CC" >&6
10459else
10460 echo "$as_me:$LINENO: result: no" >&5
10461echo "${ECHO_T}no" >&6
10462fi
10463
10464 CC=$ac_ct_CC
10465else
10466 CC="$ac_cv_prog_CC"
10467fi
10468
10469if test -z "$CC"; then
10470 if test -n "$ac_tool_prefix"; then
10471 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
10472set dummy ${ac_tool_prefix}cc; ac_word=$2
10473echo "$as_me:$LINENO: checking for $ac_word" >&5
10474echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10475if test "${ac_cv_prog_CC+set}" = set; then
10476 echo $ECHO_N "(cached) $ECHO_C" >&6
10477else
10478 if test -n "$CC"; then
10479 ac_cv_prog_CC="$CC" # Let the user override the test.
10480else
10481as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10482for as_dir in $PATH
10483do
10484 IFS=$as_save_IFS
10485 test -z "$as_dir" && as_dir=.
10486 for ac_exec_ext in '' $ac_executable_extensions; do
10487 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10488 ac_cv_prog_CC="${ac_tool_prefix}cc"
10489 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10490 break 2
10491 fi
10492done
10493done
10494
10495fi
10496fi
10497CC=$ac_cv_prog_CC
10498if test -n "$CC"; then
10499 echo "$as_me:$LINENO: result: $CC" >&5
10500echo "${ECHO_T}$CC" >&6
10501else
10502 echo "$as_me:$LINENO: result: no" >&5
10503echo "${ECHO_T}no" >&6
10504fi
10505
10506fi
10507if test -z "$ac_cv_prog_CC"; then
10508 ac_ct_CC=$CC
10509 # Extract the first word of "cc", so it can be a program name with args.
10510set dummy cc; ac_word=$2
10511echo "$as_me:$LINENO: checking for $ac_word" >&5
10512echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10513if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
10514 echo $ECHO_N "(cached) $ECHO_C" >&6
10515else
10516 if test -n "$ac_ct_CC"; then
10517 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
10518else
10519as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10520for as_dir in $PATH
10521do
10522 IFS=$as_save_IFS
10523 test -z "$as_dir" && as_dir=.
10524 for ac_exec_ext in '' $ac_executable_extensions; do
10525 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10526 ac_cv_prog_ac_ct_CC="cc"
10527 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10528 break 2
10529 fi
10530done
10531done
10532
10533fi
10534fi
10535ac_ct_CC=$ac_cv_prog_ac_ct_CC
10536if test -n "$ac_ct_CC"; then
10537 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
10538echo "${ECHO_T}$ac_ct_CC" >&6
10539else
10540 echo "$as_me:$LINENO: result: no" >&5
10541echo "${ECHO_T}no" >&6
10542fi
10543
10544 CC=$ac_ct_CC
10545else
10546 CC="$ac_cv_prog_CC"
10547fi
10548
10549fi
10550if test -z "$CC"; then
10551 # Extract the first word of "cc", so it can be a program name with args.
10552set dummy cc; ac_word=$2
10553echo "$as_me:$LINENO: checking for $ac_word" >&5
10554echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10555if test "${ac_cv_prog_CC+set}" = set; then
10556 echo $ECHO_N "(cached) $ECHO_C" >&6
10557else
10558 if test -n "$CC"; then
10559 ac_cv_prog_CC="$CC" # Let the user override the test.
10560else
10561 ac_prog_rejected=no
10562as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10563for as_dir in $PATH
10564do
10565 IFS=$as_save_IFS
10566 test -z "$as_dir" && as_dir=.
10567 for ac_exec_ext in '' $ac_executable_extensions; do
10568 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10569 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
10570 ac_prog_rejected=yes
10571 continue
10572 fi
10573 ac_cv_prog_CC="cc"
10574 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10575 break 2
10576 fi
10577done
10578done
10579
10580if test $ac_prog_rejected = yes; then
10581 # We found a bogon in the path, so make sure we never use it.
10582 set dummy $ac_cv_prog_CC
10583 shift
10584 if test $# != 0; then
10585 # We chose a different compiler from the bogus one.
10586 # However, it has the same basename, so the bogon will be chosen
10587 # first if we set CC to just the basename; use the full file name.
10588 shift
10589 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
10590 fi
10591fi
10592fi
10593fi
10594CC=$ac_cv_prog_CC
10595if test -n "$CC"; then
10596 echo "$as_me:$LINENO: result: $CC" >&5
10597echo "${ECHO_T}$CC" >&6
10598else
10599 echo "$as_me:$LINENO: result: no" >&5
10600echo "${ECHO_T}no" >&6
10601fi
10602
10603fi
10604if test -z "$CC"; then
10605 if test -n "$ac_tool_prefix"; then
10606 for ac_prog in cl
10607 do
10608 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10609set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10610echo "$as_me:$LINENO: checking for $ac_word" >&5
10611echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10612if test "${ac_cv_prog_CC+set}" = set; then
10613 echo $ECHO_N "(cached) $ECHO_C" >&6
10614else
10615 if test -n "$CC"; then
10616 ac_cv_prog_CC="$CC" # Let the user override the test.
10617else
10618as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10619for as_dir in $PATH
10620do
10621 IFS=$as_save_IFS
10622 test -z "$as_dir" && as_dir=.
10623 for ac_exec_ext in '' $ac_executable_extensions; do
10624 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10625 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
10626 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10627 break 2
10628 fi
10629done
10630done
10631
10632fi
10633fi
10634CC=$ac_cv_prog_CC
10635if test -n "$CC"; then
10636 echo "$as_me:$LINENO: result: $CC" >&5
10637echo "${ECHO_T}$CC" >&6
10638else
10639 echo "$as_me:$LINENO: result: no" >&5
10640echo "${ECHO_T}no" >&6
10641fi
10642
10643 test -n "$CC" && break
10644 done
10645fi
10646if test -z "$CC"; then
10647 ac_ct_CC=$CC
10648 for ac_prog in cl
10649do
10650 # Extract the first word of "$ac_prog", so it can be a program name with args.
10651set dummy $ac_prog; ac_word=$2
10652echo "$as_me:$LINENO: checking for $ac_word" >&5
10653echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10654if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
10655 echo $ECHO_N "(cached) $ECHO_C" >&6
10656else
10657 if test -n "$ac_ct_CC"; then
10658 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
10659else
10660as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10661for as_dir in $PATH
10662do
10663 IFS=$as_save_IFS
10664 test -z "$as_dir" && as_dir=.
10665 for ac_exec_ext in '' $ac_executable_extensions; do
10666 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10667 ac_cv_prog_ac_ct_CC="$ac_prog"
10668 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10669 break 2
10670 fi
10671done
10672done
10673
10674fi
10675fi
10676ac_ct_CC=$ac_cv_prog_ac_ct_CC
10677if test -n "$ac_ct_CC"; then
10678 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
10679echo "${ECHO_T}$ac_ct_CC" >&6
10680else
10681 echo "$as_me:$LINENO: result: no" >&5
10682echo "${ECHO_T}no" >&6
10683fi
10684
10685 test -n "$ac_ct_CC" && break
10686done
10687
10688 CC=$ac_ct_CC
10689fi
10690
10691fi
10692
10693
10694test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
10695See \`config.log' for more details." >&5
10696echo "$as_me: error: no acceptable C compiler found in \$PATH
10697See \`config.log' for more details." >&2;}
10698 { (exit 1); exit 1; }; }
10699
10700# Provide some information about the compiler.
10701echo "$as_me:$LINENO:" \
10702 "checking for C compiler version" >&5
10703ac_compiler=`set X $ac_compile; echo $2`
10704{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
10705 (eval $ac_compiler --version </dev/null >&5) 2>&5
10706 ac_status=$?
10707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10708 (exit $ac_status); }
10709{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
10710 (eval $ac_compiler -v </dev/null >&5) 2>&5
10711 ac_status=$?
10712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10713 (exit $ac_status); }
10714{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
10715 (eval $ac_compiler -V </dev/null >&5) 2>&5
10716 ac_status=$?
10717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10718 (exit $ac_status); }
10719
10720cat >conftest.$ac_ext <<_ACEOF
10721/* confdefs.h. */
10722_ACEOF
10723cat confdefs.h >>conftest.$ac_ext
10724cat >>conftest.$ac_ext <<_ACEOF
10725/* end confdefs.h. */
10726
10727int
10728main ()
10729{
10730
10731 ;
10732 return 0;
10733}
10734_ACEOF
10735ac_clean_files_save=$ac_clean_files
10736ac_clean_files="$ac_clean_files a.out a.exe b.out"
10737# Try to create an executable without -o first, disregard a.out.
10738# It will help us diagnose broken compilers, and finding out an intuition
10739# of exeext.
ac1cb8d3
VS
10740echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
10741echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
a848cd7e
SC
10742ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
10743if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
10744 (eval $ac_link_default) 2>&5
10745 ac_status=$?
10746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10747 (exit $ac_status); }; then
10748 # Find the output, starting from the most likely. This scheme is
10749# not robust to junk in `.', hence go to wildcards (a.*) only as a last
10750# resort.
10751
10752# Be careful to initialize this variable, since it used to be cached.
10753# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
10754ac_cv_exeext=
10755# b.out is created by i960 compilers.
10756for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
10757do
10758 test -f "$ac_file" || continue
10759 case $ac_file in
10760 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
ac1cb8d3 10761 ;;
a848cd7e 10762 conftest.$ac_ext )
ac1cb8d3
VS
10763 # This is the source file.
10764 ;;
a848cd7e 10765 [ab].out )
ac1cb8d3
VS
10766 # We found the default executable, but exeext='' is most
10767 # certainly right.
10768 break;;
a848cd7e 10769 *.* )
ac1cb8d3
VS
10770 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
10771 # FIXME: I believe we export ac_cv_exeext for Libtool,
10772 # but it would be cool to find out if it's true. Does anybody
10773 # maintain Libtool? --akim.
10774 export ac_cv_exeext
10775 break;;
a848cd7e 10776 * )
ac1cb8d3 10777 break;;
a848cd7e
SC
10778 esac
10779done
10780else
10781 echo "$as_me: failed program was:" >&5
10782sed 's/^/| /' conftest.$ac_ext >&5
10783
10784{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
10785See \`config.log' for more details." >&5
10786echo "$as_me: error: C compiler cannot create executables
10787See \`config.log' for more details." >&2;}
10788 { (exit 77); exit 77; }; }
10789fi
10790
10791ac_exeext=$ac_cv_exeext
10792echo "$as_me:$LINENO: result: $ac_file" >&5
10793echo "${ECHO_T}$ac_file" >&6
10794
10795# Check the compiler produces executables we can run. If not, either
10796# the compiler is broken, or we cross compile.
10797echo "$as_me:$LINENO: checking whether the C compiler works" >&5
10798echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
10799# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
10800# If not cross compiling, check that we can run a simple program.
10801if test "$cross_compiling" != yes; then
10802 if { ac_try='./$ac_file'
10803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10804 (eval $ac_try) 2>&5
10805 ac_status=$?
10806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10807 (exit $ac_status); }; }; then
10808 cross_compiling=no
10809 else
10810 if test "$cross_compiling" = maybe; then
10811 cross_compiling=yes
10812 else
10813 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
10814If you meant to cross compile, use \`--host'.
10815See \`config.log' for more details." >&5
10816echo "$as_me: error: cannot run C compiled programs.
10817If you meant to cross compile, use \`--host'.
10818See \`config.log' for more details." >&2;}
10819 { (exit 1); exit 1; }; }
10820 fi
10821 fi
10822fi
10823echo "$as_me:$LINENO: result: yes" >&5
10824echo "${ECHO_T}yes" >&6
10825
10826rm -f a.out a.exe conftest$ac_cv_exeext b.out
10827ac_clean_files=$ac_clean_files_save
10828# Check the compiler produces executables we can run. If not, either
10829# the compiler is broken, or we cross compile.
10830echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
10831echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
10832echo "$as_me:$LINENO: result: $cross_compiling" >&5
10833echo "${ECHO_T}$cross_compiling" >&6
10834
10835echo "$as_me:$LINENO: checking for suffix of executables" >&5
10836echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
10837if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10838 (eval $ac_link) 2>&5
10839 ac_status=$?
10840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10841 (exit $ac_status); }; then
10842 # If both `conftest.exe' and `conftest' are `present' (well, observable)
10843# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
10844# work properly (i.e., refer to `conftest.exe'), while it won't with
10845# `rm'.
10846for ac_file in conftest.exe conftest conftest.*; do
10847 test -f "$ac_file" || continue
10848 case $ac_file in
10849 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
10850 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
ac1cb8d3
VS
10851 export ac_cv_exeext
10852 break;;
a848cd7e
SC
10853 * ) break;;
10854 esac
10855done
10856else
10857 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
10858See \`config.log' for more details." >&5
10859echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
10860See \`config.log' for more details." >&2;}
10861 { (exit 1); exit 1; }; }
10862fi
10863
10864rm -f conftest$ac_cv_exeext
10865echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
10866echo "${ECHO_T}$ac_cv_exeext" >&6
10867
10868rm -f conftest.$ac_ext
10869EXEEXT=$ac_cv_exeext
10870ac_exeext=$EXEEXT
10871echo "$as_me:$LINENO: checking for suffix of object files" >&5
10872echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
10873if test "${ac_cv_objext+set}" = set; then
10874 echo $ECHO_N "(cached) $ECHO_C" >&6
10875else
10876 cat >conftest.$ac_ext <<_ACEOF
10877/* confdefs.h. */
10878_ACEOF
10879cat confdefs.h >>conftest.$ac_ext
10880cat >>conftest.$ac_ext <<_ACEOF
10881/* end confdefs.h. */
10882
10883int
10884main ()
10885{
10886
10887 ;
10888 return 0;
10889}
10890_ACEOF
10891rm -f conftest.o conftest.obj
10892if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10893 (eval $ac_compile) 2>&5
10894 ac_status=$?
10895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10896 (exit $ac_status); }; then
10897 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
10898 case $ac_file in
10899 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
10900 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
10901 break;;
10902 esac
10903done
10904else
10905 echo "$as_me: failed program was:" >&5
10906sed 's/^/| /' conftest.$ac_ext >&5
10907
10908{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
10909See \`config.log' for more details." >&5
10910echo "$as_me: error: cannot compute suffix of object files: cannot compile
10911See \`config.log' for more details." >&2;}
10912 { (exit 1); exit 1; }; }
10913fi
10914
10915rm -f conftest.$ac_cv_objext conftest.$ac_ext
10916fi
10917echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
10918echo "${ECHO_T}$ac_cv_objext" >&6
10919OBJEXT=$ac_cv_objext
10920ac_objext=$OBJEXT
10921echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
10922echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
10923if test "${ac_cv_c_compiler_gnu+set}" = set; then
10924 echo $ECHO_N "(cached) $ECHO_C" >&6
10925else
10926 cat >conftest.$ac_ext <<_ACEOF
10927/* confdefs.h. */
10928_ACEOF
10929cat confdefs.h >>conftest.$ac_ext
10930cat >>conftest.$ac_ext <<_ACEOF
10931/* end confdefs.h. */
10932
10933int
10934main ()
10935{
10936#ifndef __GNUC__
10937 choke me
10938#endif
10939
10940 ;
10941 return 0;
10942}
10943_ACEOF
10944rm -f conftest.$ac_objext
10945if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 10946 (eval $ac_compile) 2>conftest.er1
a848cd7e 10947 ac_status=$?
ac1cb8d3
VS
10948 grep -v '^ *+' conftest.er1 >conftest.err
10949 rm -f conftest.er1
10950 cat conftest.err >&5
a848cd7e
SC
10951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10952 (exit $ac_status); } &&
17a7bf57 10953 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
10954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10955 (eval $ac_try) 2>&5
10956 ac_status=$?
10957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10958 (exit $ac_status); }; } &&
10959 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
10960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10961 (eval $ac_try) 2>&5
10962 ac_status=$?
10963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10964 (exit $ac_status); }; }; then
10965 ac_compiler_gnu=yes
10966else
10967 echo "$as_me: failed program was:" >&5
10968sed 's/^/| /' conftest.$ac_ext >&5
10969
10970ac_compiler_gnu=no
10971fi
ac1cb8d3 10972rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
10973ac_cv_c_compiler_gnu=$ac_compiler_gnu
10974
10975fi
10976echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
10977echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
10978GCC=`test $ac_compiler_gnu = yes && echo yes`
10979ac_test_CFLAGS=${CFLAGS+set}
10980ac_save_CFLAGS=$CFLAGS
10981CFLAGS="-g"
10982echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
10983echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
10984if test "${ac_cv_prog_cc_g+set}" = set; then
10985 echo $ECHO_N "(cached) $ECHO_C" >&6
10986else
10987 cat >conftest.$ac_ext <<_ACEOF
10988/* confdefs.h. */
10989_ACEOF
10990cat confdefs.h >>conftest.$ac_ext
10991cat >>conftest.$ac_ext <<_ACEOF
10992/* end confdefs.h. */
10993
10994int
10995main ()
10996{
10997
10998 ;
10999 return 0;
11000}
11001_ACEOF
11002rm -f conftest.$ac_objext
11003if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11004 (eval $ac_compile) 2>conftest.er1
a848cd7e 11005 ac_status=$?
ac1cb8d3
VS
11006 grep -v '^ *+' conftest.er1 >conftest.err
11007 rm -f conftest.er1
11008 cat conftest.err >&5
a848cd7e
SC
11009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11010 (exit $ac_status); } &&
17a7bf57 11011 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
11012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11013 (eval $ac_try) 2>&5
11014 ac_status=$?
11015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11016 (exit $ac_status); }; } &&
11017 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11019 (eval $ac_try) 2>&5
11020 ac_status=$?
11021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11022 (exit $ac_status); }; }; then
11023 ac_cv_prog_cc_g=yes
11024else
11025 echo "$as_me: failed program was:" >&5
11026sed 's/^/| /' conftest.$ac_ext >&5
11027
11028ac_cv_prog_cc_g=no
11029fi
ac1cb8d3 11030rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11031fi
11032echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
11033echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
11034if test "$ac_test_CFLAGS" = set; then
11035 CFLAGS=$ac_save_CFLAGS
11036elif test $ac_cv_prog_cc_g = yes; then
11037 if test "$GCC" = yes; then
11038 CFLAGS="-g -O2"
11039 else
11040 CFLAGS="-g"
11041 fi
11042else
11043 if test "$GCC" = yes; then
11044 CFLAGS="-O2"
11045 else
11046 CFLAGS=
11047 fi
11048fi
11049echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
11050echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
11051if test "${ac_cv_prog_cc_stdc+set}" = set; then
11052 echo $ECHO_N "(cached) $ECHO_C" >&6
11053else
11054 ac_cv_prog_cc_stdc=no
11055ac_save_CC=$CC
11056cat >conftest.$ac_ext <<_ACEOF
11057/* confdefs.h. */
11058_ACEOF
11059cat confdefs.h >>conftest.$ac_ext
11060cat >>conftest.$ac_ext <<_ACEOF
11061/* end confdefs.h. */
11062#include <stdarg.h>
11063#include <stdio.h>
11064#include <sys/types.h>
11065#include <sys/stat.h>
11066/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
11067struct buf { int x; };
11068FILE * (*rcsopen) (struct buf *, struct stat *, int);
11069static char *e (p, i)
11070 char **p;
11071 int i;
11072{
11073 return p[i];
11074}
11075static char *f (char * (*g) (char **, int), char **p, ...)
11076{
11077 char *s;
11078 va_list v;
11079 va_start (v,p);
11080 s = g (p, va_arg (v,int));
11081 va_end (v);
11082 return s;
11083}
ac1cb8d3
VS
11084
11085/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
11086 function prototypes and stuff, but not '\xHH' hex character constants.
11087 These don't provoke an error unfortunately, instead are silently treated
11088 as 'x'. The following induces an error, until -std1 is added to get
11089 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
11090 array size at least. It's necessary to write '\x00'==0 to get something
11091 that's true only with -std1. */
11092int osf4_cc_array ['\x00' == 0 ? 1 : -1];
11093
a848cd7e
SC
11094int test (int i, double x);
11095struct s1 {int (*f) (int a);};
11096struct s2 {int (*f) (double a);};
11097int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
11098int argc;
11099char **argv;
11100int
11101main ()
11102{
11103return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
11104 ;
11105 return 0;
11106}
11107_ACEOF
11108# Don't try gcc -ansi; that turns off useful extensions and
11109# breaks some systems' header files.
11110# AIX -qlanglvl=ansi
11111# Ultrix and OSF/1 -std1
11112# HP-UX 10.20 and later -Ae
11113# HP-UX older versions -Aa -D_HPUX_SOURCE
11114# SVR4 -Xc -D__EXTENSIONS__
11115for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
11116do
11117 CC="$ac_save_CC $ac_arg"
11118 rm -f conftest.$ac_objext
11119if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11120 (eval $ac_compile) 2>conftest.er1
a848cd7e 11121 ac_status=$?
ac1cb8d3
VS
11122 grep -v '^ *+' conftest.er1 >conftest.err
11123 rm -f conftest.er1
11124 cat conftest.err >&5
a848cd7e
SC
11125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11126 (exit $ac_status); } &&
17a7bf57 11127 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
11128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11129 (eval $ac_try) 2>&5
11130 ac_status=$?
11131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11132 (exit $ac_status); }; } &&
11133 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11135 (eval $ac_try) 2>&5
11136 ac_status=$?
11137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11138 (exit $ac_status); }; }; then
11139 ac_cv_prog_cc_stdc=$ac_arg
11140break
11141else
11142 echo "$as_me: failed program was:" >&5
11143sed 's/^/| /' conftest.$ac_ext >&5
11144
11145fi
ac1cb8d3 11146rm -f conftest.err conftest.$ac_objext
a848cd7e
SC
11147done
11148rm -f conftest.$ac_ext conftest.$ac_objext
11149CC=$ac_save_CC
11150
11151fi
11152
11153case "x$ac_cv_prog_cc_stdc" in
11154 x|xno)
11155 echo "$as_me:$LINENO: result: none needed" >&5
11156echo "${ECHO_T}none needed" >&6 ;;
11157 *)
11158 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
11159echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
11160 CC="$CC $ac_cv_prog_cc_stdc" ;;
11161esac
11162
11163# Some people use a C++ compiler to compile C. Since we use `exit',
11164# in C++ we need to declare it. In case someone uses the same compiler
11165# for both compiling C and C++ we need to have the C++ compiler decide
11166# the declaration of exit, since it's the most demanding environment.
11167cat >conftest.$ac_ext <<_ACEOF
11168#ifndef __cplusplus
11169 choke me
11170#endif
11171_ACEOF
11172rm -f conftest.$ac_objext
11173if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11174 (eval $ac_compile) 2>conftest.er1
a848cd7e 11175 ac_status=$?
ac1cb8d3
VS
11176 grep -v '^ *+' conftest.er1 >conftest.err
11177 rm -f conftest.er1
11178 cat conftest.err >&5
a848cd7e
SC
11179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11180 (exit $ac_status); } &&
17a7bf57 11181 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
11182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11183 (eval $ac_try) 2>&5
11184 ac_status=$?
11185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11186 (exit $ac_status); }; } &&
11187 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11189 (eval $ac_try) 2>&5
11190 ac_status=$?
11191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11192 (exit $ac_status); }; }; then
11193 for ac_declaration in \
ac1cb8d3 11194 '' \
a848cd7e
SC
11195 'extern "C" void std::exit (int) throw (); using std::exit;' \
11196 'extern "C" void std::exit (int); using std::exit;' \
11197 'extern "C" void exit (int) throw ();' \
11198 'extern "C" void exit (int);' \
11199 'void exit (int);'
11200do
11201 cat >conftest.$ac_ext <<_ACEOF
11202/* confdefs.h. */
11203_ACEOF
11204cat confdefs.h >>conftest.$ac_ext
11205cat >>conftest.$ac_ext <<_ACEOF
11206/* end confdefs.h. */
de59c161 11207$ac_declaration
ac1cb8d3 11208#include <stdlib.h>
a848cd7e
SC
11209int
11210main ()
11211{
11212exit (42);
11213 ;
11214 return 0;
11215}
11216_ACEOF
11217rm -f conftest.$ac_objext
11218if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11219 (eval $ac_compile) 2>conftest.er1
a848cd7e 11220 ac_status=$?
ac1cb8d3
VS
11221 grep -v '^ *+' conftest.er1 >conftest.err
11222 rm -f conftest.er1
11223 cat conftest.err >&5
a848cd7e
SC
11224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11225 (exit $ac_status); } &&
17a7bf57 11226 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
11227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11228 (eval $ac_try) 2>&5
11229 ac_status=$?
11230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11231 (exit $ac_status); }; } &&
11232 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11234 (eval $ac_try) 2>&5
11235 ac_status=$?
11236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11237 (exit $ac_status); }; }; then
11238 :
11239else
11240 echo "$as_me: failed program was:" >&5
11241sed 's/^/| /' conftest.$ac_ext >&5
11242
11243continue
11244fi
ac1cb8d3 11245rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11246 cat >conftest.$ac_ext <<_ACEOF
11247/* confdefs.h. */
11248_ACEOF
11249cat confdefs.h >>conftest.$ac_ext
11250cat >>conftest.$ac_ext <<_ACEOF
11251/* end confdefs.h. */
11252$ac_declaration
11253int
11254main ()
11255{
11256exit (42);
11257 ;
11258 return 0;
11259}
11260_ACEOF
11261rm -f conftest.$ac_objext
11262if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11263 (eval $ac_compile) 2>conftest.er1
a848cd7e 11264 ac_status=$?
ac1cb8d3
VS
11265 grep -v '^ *+' conftest.er1 >conftest.err
11266 rm -f conftest.er1
11267 cat conftest.err >&5
a848cd7e
SC
11268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11269 (exit $ac_status); } &&
17a7bf57 11270 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
11271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11272 (eval $ac_try) 2>&5
11273 ac_status=$?
11274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11275 (exit $ac_status); }; } &&
11276 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11278 (eval $ac_try) 2>&5
11279 ac_status=$?
11280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11281 (exit $ac_status); }; }; then
11282 break
11283else
11284 echo "$as_me: failed program was:" >&5
11285sed 's/^/| /' conftest.$ac_ext >&5
11286
11287fi
ac1cb8d3 11288rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11289done
11290rm -f conftest*
11291if test -n "$ac_declaration"; then
11292 echo '#ifdef __cplusplus' >>confdefs.h
11293 echo $ac_declaration >>confdefs.h
11294 echo '#endif' >>confdefs.h
11295fi
11296
11297else
11298 echo "$as_me: failed program was:" >&5
11299sed 's/^/| /' conftest.$ac_ext >&5
11300
11301fi
ac1cb8d3 11302rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11303ac_ext=c
11304ac_cpp='$CPP $CPPFLAGS'
11305ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11306ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11307ac_compiler_gnu=$ac_cv_c_compiler_gnu
11308
11309
11310
11311ac_ext=c
11312ac_cpp='$CPP $CPPFLAGS'
11313ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11314ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11315ac_compiler_gnu=$ac_cv_c_compiler_gnu
11316echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
11317echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
11318# On Suns, sometimes $CPP names a directory.
11319if test -n "$CPP" && test -d "$CPP"; then
11320 CPP=
11321fi
11322if test -z "$CPP"; then
11323 if test "${ac_cv_prog_CPP+set}" = set; then
11324 echo $ECHO_N "(cached) $ECHO_C" >&6
11325else
11326 # Double quotes because CPP needs to be expanded
11327 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
11328 do
11329 ac_preproc_ok=false
11330for ac_c_preproc_warn_flag in '' yes
11331do
11332 # Use a header file that comes with gcc, so configuring glibc
11333 # with a fresh cross-compiler works.
11334 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11335 # <limits.h> exists even on freestanding compilers.
11336 # On the NeXT, cc -E runs the code through the compiler's parser,
11337 # not just through cpp. "Syntax error" is here to catch this case.
11338 cat >conftest.$ac_ext <<_ACEOF
11339/* confdefs.h. */
11340_ACEOF
11341cat confdefs.h >>conftest.$ac_ext
11342cat >>conftest.$ac_ext <<_ACEOF
11343/* end confdefs.h. */
11344#ifdef __STDC__
11345# include <limits.h>
11346#else
11347# include <assert.h>
11348#endif
ac1cb8d3 11349 Syntax error
a848cd7e
SC
11350_ACEOF
11351if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11352 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11353 ac_status=$?
11354 grep -v '^ *+' conftest.er1 >conftest.err
11355 rm -f conftest.er1
11356 cat conftest.err >&5
11357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11358 (exit $ac_status); } >/dev/null; then
11359 if test -s conftest.err; then
11360 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 11361 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
11362 else
11363 ac_cpp_err=
11364 fi
11365else
11366 ac_cpp_err=yes
11367fi
11368if test -z "$ac_cpp_err"; then
11369 :
11370else
11371 echo "$as_me: failed program was:" >&5
11372sed 's/^/| /' conftest.$ac_ext >&5
11373
11374 # Broken: fails on valid input.
11375continue
11376fi
11377rm -f conftest.err conftest.$ac_ext
11378
11379 # OK, works on sane cases. Now check whether non-existent headers
11380 # can be detected and how.
11381 cat >conftest.$ac_ext <<_ACEOF
11382/* confdefs.h. */
11383_ACEOF
11384cat confdefs.h >>conftest.$ac_ext
11385cat >>conftest.$ac_ext <<_ACEOF
11386/* end confdefs.h. */
11387#include <ac_nonexistent.h>
11388_ACEOF
11389if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11390 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11391 ac_status=$?
11392 grep -v '^ *+' conftest.er1 >conftest.err
11393 rm -f conftest.er1
11394 cat conftest.err >&5
11395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11396 (exit $ac_status); } >/dev/null; then
11397 if test -s conftest.err; then
11398 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 11399 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
11400 else
11401 ac_cpp_err=
11402 fi
11403else
11404 ac_cpp_err=yes
11405fi
11406if test -z "$ac_cpp_err"; then
11407 # Broken: success on invalid input.
11408continue
11409else
11410 echo "$as_me: failed program was:" >&5
11411sed 's/^/| /' conftest.$ac_ext >&5
11412
11413 # Passes both tests.
11414ac_preproc_ok=:
11415break
11416fi
11417rm -f conftest.err conftest.$ac_ext
11418
11419done
11420# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11421rm -f conftest.err conftest.$ac_ext
11422if $ac_preproc_ok; then
11423 break
11424fi
11425
11426 done
11427 ac_cv_prog_CPP=$CPP
11428
11429fi
11430 CPP=$ac_cv_prog_CPP
11431else
11432 ac_cv_prog_CPP=$CPP
11433fi
11434echo "$as_me:$LINENO: result: $CPP" >&5
11435echo "${ECHO_T}$CPP" >&6
11436ac_preproc_ok=false
11437for ac_c_preproc_warn_flag in '' yes
11438do
11439 # Use a header file that comes with gcc, so configuring glibc
11440 # with a fresh cross-compiler works.
11441 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11442 # <limits.h> exists even on freestanding compilers.
11443 # On the NeXT, cc -E runs the code through the compiler's parser,
11444 # not just through cpp. "Syntax error" is here to catch this case.
11445 cat >conftest.$ac_ext <<_ACEOF
11446/* confdefs.h. */
11447_ACEOF
11448cat confdefs.h >>conftest.$ac_ext
11449cat >>conftest.$ac_ext <<_ACEOF
11450/* end confdefs.h. */
11451#ifdef __STDC__
11452# include <limits.h>
11453#else
11454# include <assert.h>
11455#endif
ac1cb8d3 11456 Syntax error
a848cd7e
SC
11457_ACEOF
11458if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11459 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11460 ac_status=$?
11461 grep -v '^ *+' conftest.er1 >conftest.err
11462 rm -f conftest.er1
11463 cat conftest.err >&5
11464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11465 (exit $ac_status); } >/dev/null; then
11466 if test -s conftest.err; then
11467 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 11468 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
11469 else
11470 ac_cpp_err=
11471 fi
11472else
11473 ac_cpp_err=yes
11474fi
11475if test -z "$ac_cpp_err"; then
11476 :
11477else
11478 echo "$as_me: failed program was:" >&5
11479sed 's/^/| /' conftest.$ac_ext >&5
11480
11481 # Broken: fails on valid input.
11482continue
11483fi
11484rm -f conftest.err conftest.$ac_ext
11485
11486 # OK, works on sane cases. Now check whether non-existent headers
11487 # can be detected and how.
11488 cat >conftest.$ac_ext <<_ACEOF
11489/* confdefs.h. */
11490_ACEOF
11491cat confdefs.h >>conftest.$ac_ext
11492cat >>conftest.$ac_ext <<_ACEOF
11493/* end confdefs.h. */
11494#include <ac_nonexistent.h>
11495_ACEOF
11496if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11497 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11498 ac_status=$?
11499 grep -v '^ *+' conftest.er1 >conftest.err
11500 rm -f conftest.er1
11501 cat conftest.err >&5
11502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11503 (exit $ac_status); } >/dev/null; then
11504 if test -s conftest.err; then
11505 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 11506 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
11507 else
11508 ac_cpp_err=
11509 fi
11510else
11511 ac_cpp_err=yes
11512fi
11513if test -z "$ac_cpp_err"; then
11514 # Broken: success on invalid input.
11515continue
11516else
11517 echo "$as_me: failed program was:" >&5
11518sed 's/^/| /' conftest.$ac_ext >&5
11519
11520 # Passes both tests.
11521ac_preproc_ok=:
11522break
11523fi
11524rm -f conftest.err conftest.$ac_ext
11525
11526done
11527# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11528rm -f conftest.err conftest.$ac_ext
11529if $ac_preproc_ok; then
11530 :
11531else
11532 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
11533See \`config.log' for more details." >&5
11534echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
11535See \`config.log' for more details." >&2;}
11536 { (exit 1); exit 1; }; }
11537fi
11538
11539ac_ext=c
11540ac_cpp='$CPP $CPPFLAGS'
11541ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11542ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11543ac_compiler_gnu=$ac_cv_c_compiler_gnu
11544
11545
11546echo "$as_me:$LINENO: checking for egrep" >&5
11547echo $ECHO_N "checking for egrep... $ECHO_C" >&6
11548if test "${ac_cv_prog_egrep+set}" = set; then
11549 echo $ECHO_N "(cached) $ECHO_C" >&6
11550else
11551 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
11552 then ac_cv_prog_egrep='grep -E'
11553 else ac_cv_prog_egrep='egrep'
11554 fi
11555fi
11556echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
11557echo "${ECHO_T}$ac_cv_prog_egrep" >&6
11558 EGREP=$ac_cv_prog_egrep
11559
11560
11561if test $ac_cv_c_compiler_gnu = yes; then
11562 echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
11563echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
11564if test "${ac_cv_prog_gcc_traditional+set}" = set; then
11565 echo $ECHO_N "(cached) $ECHO_C" >&6
11566else
11567 ac_pattern="Autoconf.*'x'"
11568 cat >conftest.$ac_ext <<_ACEOF
11569/* confdefs.h. */
11570_ACEOF
11571cat confdefs.h >>conftest.$ac_ext
11572cat >>conftest.$ac_ext <<_ACEOF
11573/* end confdefs.h. */
11574#include <sgtty.h>
11575Autoconf TIOCGETP
11576_ACEOF
11577if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11578 $EGREP "$ac_pattern" >/dev/null 2>&1; then
11579 ac_cv_prog_gcc_traditional=yes
11580else
11581 ac_cv_prog_gcc_traditional=no
11582fi
11583rm -f conftest*
11584
11585
11586 if test $ac_cv_prog_gcc_traditional = no; then
11587 cat >conftest.$ac_ext <<_ACEOF
11588/* confdefs.h. */
11589_ACEOF
11590cat confdefs.h >>conftest.$ac_ext
11591cat >>conftest.$ac_ext <<_ACEOF
11592/* end confdefs.h. */
11593#include <termio.h>
11594Autoconf TCGETA
11595_ACEOF
11596if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11597 $EGREP "$ac_pattern" >/dev/null 2>&1; then
11598 ac_cv_prog_gcc_traditional=yes
11599fi
11600rm -f conftest*
11601
11602 fi
11603fi
11604echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
11605echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
11606 if test $ac_cv_prog_gcc_traditional = yes; then
11607 CC="$CC -traditional"
11608 fi
11609fi
11610
11611
11612
11613
11614ac_ext=cc
11615ac_cpp='$CXXCPP $CPPFLAGS'
11616ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11617ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11618ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11619
11620
11621CXXFLAGS=${CXXFLAGS:=}
11622ac_ext=cc
11623ac_cpp='$CXXCPP $CPPFLAGS'
11624ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11625ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11626ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11627if test -n "$ac_tool_prefix"; then
11628 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
11629 do
11630 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11631set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11632echo "$as_me:$LINENO: checking for $ac_word" >&5
11633echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11634if test "${ac_cv_prog_CXX+set}" = set; then
11635 echo $ECHO_N "(cached) $ECHO_C" >&6
11636else
11637 if test -n "$CXX"; then
11638 ac_cv_prog_CXX="$CXX" # Let the user override the test.
11639else
11640as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11641for as_dir in $PATH
11642do
11643 IFS=$as_save_IFS
11644 test -z "$as_dir" && as_dir=.
11645 for ac_exec_ext in '' $ac_executable_extensions; do
11646 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11647 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
11648 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11649 break 2
11650 fi
11651done
11652done
11653
11654fi
11655fi
11656CXX=$ac_cv_prog_CXX
11657if test -n "$CXX"; then
11658 echo "$as_me:$LINENO: result: $CXX" >&5
11659echo "${ECHO_T}$CXX" >&6
11660else
11661 echo "$as_me:$LINENO: result: no" >&5
11662echo "${ECHO_T}no" >&6
11663fi
11664
11665 test -n "$CXX" && break
11666 done
11667fi
11668if test -z "$CXX"; then
11669 ac_ct_CXX=$CXX
11670 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
11671do
11672 # Extract the first word of "$ac_prog", so it can be a program name with args.
11673set dummy $ac_prog; ac_word=$2
11674echo "$as_me:$LINENO: checking for $ac_word" >&5
11675echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11676if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
11677 echo $ECHO_N "(cached) $ECHO_C" >&6
11678else
11679 if test -n "$ac_ct_CXX"; then
11680 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
11681else
11682as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11683for as_dir in $PATH
11684do
11685 IFS=$as_save_IFS
11686 test -z "$as_dir" && as_dir=.
11687 for ac_exec_ext in '' $ac_executable_extensions; do
11688 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11689 ac_cv_prog_ac_ct_CXX="$ac_prog"
11690 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11691 break 2
11692 fi
11693done
11694done
11695
11696fi
11697fi
11698ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
11699if test -n "$ac_ct_CXX"; then
11700 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
11701echo "${ECHO_T}$ac_ct_CXX" >&6
11702else
11703 echo "$as_me:$LINENO: result: no" >&5
11704echo "${ECHO_T}no" >&6
11705fi
11706
11707 test -n "$ac_ct_CXX" && break
11708done
11709test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
11710
11711 CXX=$ac_ct_CXX
11712fi
11713
11714
11715# Provide some information about the compiler.
11716echo "$as_me:$LINENO:" \
11717 "checking for C++ compiler version" >&5
11718ac_compiler=`set X $ac_compile; echo $2`
11719{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
11720 (eval $ac_compiler --version </dev/null >&5) 2>&5
11721 ac_status=$?
11722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11723 (exit $ac_status); }
11724{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
11725 (eval $ac_compiler -v </dev/null >&5) 2>&5
11726 ac_status=$?
11727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11728 (exit $ac_status); }
11729{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
11730 (eval $ac_compiler -V </dev/null >&5) 2>&5
11731 ac_status=$?
11732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11733 (exit $ac_status); }
11734
11735echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
11736echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
11737if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
11738 echo $ECHO_N "(cached) $ECHO_C" >&6
11739else
11740 cat >conftest.$ac_ext <<_ACEOF
11741/* confdefs.h. */
11742_ACEOF
11743cat confdefs.h >>conftest.$ac_ext
11744cat >>conftest.$ac_ext <<_ACEOF
11745/* end confdefs.h. */
11746
11747int
11748main ()
11749{
11750#ifndef __GNUC__
11751 choke me
11752#endif
11753
11754 ;
11755 return 0;
11756}
11757_ACEOF
11758rm -f conftest.$ac_objext
11759if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11760 (eval $ac_compile) 2>conftest.er1
a848cd7e 11761 ac_status=$?
ac1cb8d3
VS
11762 grep -v '^ *+' conftest.er1 >conftest.err
11763 rm -f conftest.er1
11764 cat conftest.err >&5
a848cd7e
SC
11765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11766 (exit $ac_status); } &&
17a7bf57 11767 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
11768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11769 (eval $ac_try) 2>&5
11770 ac_status=$?
11771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11772 (exit $ac_status); }; } &&
11773 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11775 (eval $ac_try) 2>&5
11776 ac_status=$?
11777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11778 (exit $ac_status); }; }; then
11779 ac_compiler_gnu=yes
11780else
11781 echo "$as_me: failed program was:" >&5
11782sed 's/^/| /' conftest.$ac_ext >&5
11783
11784ac_compiler_gnu=no
11785fi
ac1cb8d3 11786rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11787ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
11788
11789fi
11790echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
11791echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
11792GXX=`test $ac_compiler_gnu = yes && echo yes`
11793ac_test_CXXFLAGS=${CXXFLAGS+set}
11794ac_save_CXXFLAGS=$CXXFLAGS
11795CXXFLAGS="-g"
11796echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
11797echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
11798if test "${ac_cv_prog_cxx_g+set}" = set; then
11799 echo $ECHO_N "(cached) $ECHO_C" >&6
11800else
11801 cat >conftest.$ac_ext <<_ACEOF
11802/* confdefs.h. */
11803_ACEOF
11804cat confdefs.h >>conftest.$ac_ext
11805cat >>conftest.$ac_ext <<_ACEOF
11806/* end confdefs.h. */
11807
11808int
11809main ()
11810{
11811
11812 ;
11813 return 0;
11814}
11815_ACEOF
11816rm -f conftest.$ac_objext
11817if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11818 (eval $ac_compile) 2>conftest.er1
a848cd7e 11819 ac_status=$?
ac1cb8d3
VS
11820 grep -v '^ *+' conftest.er1 >conftest.err
11821 rm -f conftest.er1
11822 cat conftest.err >&5
a848cd7e
SC
11823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11824 (exit $ac_status); } &&
17a7bf57 11825 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
11826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11827 (eval $ac_try) 2>&5
11828 ac_status=$?
11829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11830 (exit $ac_status); }; } &&
11831 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11833 (eval $ac_try) 2>&5
11834 ac_status=$?
11835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11836 (exit $ac_status); }; }; then
11837 ac_cv_prog_cxx_g=yes
11838else
11839 echo "$as_me: failed program was:" >&5
11840sed 's/^/| /' conftest.$ac_ext >&5
11841
11842ac_cv_prog_cxx_g=no
11843fi
ac1cb8d3 11844rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11845fi
11846echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
11847echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
11848if test "$ac_test_CXXFLAGS" = set; then
11849 CXXFLAGS=$ac_save_CXXFLAGS
11850elif test $ac_cv_prog_cxx_g = yes; then
11851 if test "$GXX" = yes; then
11852 CXXFLAGS="-g -O2"
11853 else
11854 CXXFLAGS="-g"
11855 fi
11856else
11857 if test "$GXX" = yes; then
11858 CXXFLAGS="-O2"
11859 else
11860 CXXFLAGS=
11861 fi
11862fi
11863for ac_declaration in \
ac1cb8d3 11864 '' \
a848cd7e
SC
11865 'extern "C" void std::exit (int) throw (); using std::exit;' \
11866 'extern "C" void std::exit (int); using std::exit;' \
11867 'extern "C" void exit (int) throw ();' \
11868 'extern "C" void exit (int);' \
11869 'void exit (int);'
11870do
11871 cat >conftest.$ac_ext <<_ACEOF
11872/* confdefs.h. */
11873_ACEOF
11874cat confdefs.h >>conftest.$ac_ext
11875cat >>conftest.$ac_ext <<_ACEOF
11876/* end confdefs.h. */
de59c161 11877$ac_declaration
ac1cb8d3 11878#include <stdlib.h>
a848cd7e
SC
11879int
11880main ()
11881{
11882exit (42);
11883 ;
11884 return 0;
11885}
11886_ACEOF
11887rm -f conftest.$ac_objext
11888if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11889 (eval $ac_compile) 2>conftest.er1
a848cd7e 11890 ac_status=$?
ac1cb8d3
VS
11891 grep -v '^ *+' conftest.er1 >conftest.err
11892 rm -f conftest.er1
11893 cat conftest.err >&5
a848cd7e
SC
11894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11895 (exit $ac_status); } &&
17a7bf57 11896 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
11897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11898 (eval $ac_try) 2>&5
11899 ac_status=$?
11900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11901 (exit $ac_status); }; } &&
11902 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11904 (eval $ac_try) 2>&5
11905 ac_status=$?
11906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11907 (exit $ac_status); }; }; then
11908 :
11909else
11910 echo "$as_me: failed program was:" >&5
11911sed 's/^/| /' conftest.$ac_ext >&5
11912
11913continue
11914fi
ac1cb8d3 11915rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11916 cat >conftest.$ac_ext <<_ACEOF
11917/* confdefs.h. */
11918_ACEOF
11919cat confdefs.h >>conftest.$ac_ext
11920cat >>conftest.$ac_ext <<_ACEOF
11921/* end confdefs.h. */
11922$ac_declaration
11923int
11924main ()
11925{
11926exit (42);
11927 ;
11928 return 0;
11929}
11930_ACEOF
11931rm -f conftest.$ac_objext
11932if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11933 (eval $ac_compile) 2>conftest.er1
a848cd7e 11934 ac_status=$?
ac1cb8d3
VS
11935 grep -v '^ *+' conftest.er1 >conftest.err
11936 rm -f conftest.er1
11937 cat conftest.err >&5
a848cd7e
SC
11938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11939 (exit $ac_status); } &&
17a7bf57 11940 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
11941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11942 (eval $ac_try) 2>&5
11943 ac_status=$?
11944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11945 (exit $ac_status); }; } &&
11946 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11948 (eval $ac_try) 2>&5
11949 ac_status=$?
11950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11951 (exit $ac_status); }; }; then
11952 break
11953else
11954 echo "$as_me: failed program was:" >&5
11955sed 's/^/| /' conftest.$ac_ext >&5
11956
11957fi
ac1cb8d3 11958rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11959done
11960rm -f conftest*
11961if test -n "$ac_declaration"; then
11962 echo '#ifdef __cplusplus' >>confdefs.h
11963 echo $ac_declaration >>confdefs.h
11964 echo '#endif' >>confdefs.h
11965fi
11966
11967ac_ext=cc
11968ac_cpp='$CXXCPP $CPPFLAGS'
11969ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11970ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11971ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11972
11973
11974ac_ext=c
11975ac_cpp='$CPP $CPPFLAGS'
11976ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11977ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11978ac_compiler_gnu=$ac_cv_c_compiler_gnu
11979
11980
a848cd7e
SC
11981if test -n "$ac_tool_prefix"; then
11982 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
11983set dummy ${ac_tool_prefix}ranlib; ac_word=$2
11984echo "$as_me:$LINENO: checking for $ac_word" >&5
11985echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11986if test "${ac_cv_prog_RANLIB+set}" = set; then
11987 echo $ECHO_N "(cached) $ECHO_C" >&6
11988else
11989 if test -n "$RANLIB"; then
11990 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11991else
11992as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11993for as_dir in $PATH
11994do
11995 IFS=$as_save_IFS
11996 test -z "$as_dir" && as_dir=.
11997 for ac_exec_ext in '' $ac_executable_extensions; do
11998 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11999 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
12000 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12001 break 2
12002 fi
12003done
12004done
12005
12006fi
12007fi
12008RANLIB=$ac_cv_prog_RANLIB
12009if test -n "$RANLIB"; then
12010 echo "$as_me:$LINENO: result: $RANLIB" >&5
12011echo "${ECHO_T}$RANLIB" >&6
12012else
12013 echo "$as_me:$LINENO: result: no" >&5
12014echo "${ECHO_T}no" >&6
12015fi
12016
12017fi
12018if test -z "$ac_cv_prog_RANLIB"; then
12019 ac_ct_RANLIB=$RANLIB
12020 # Extract the first word of "ranlib", so it can be a program name with args.
12021set dummy ranlib; ac_word=$2
12022echo "$as_me:$LINENO: checking for $ac_word" >&5
12023echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12024if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
12025 echo $ECHO_N "(cached) $ECHO_C" >&6
12026else
12027 if test -n "$ac_ct_RANLIB"; then
12028 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
12029else
12030as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12031for as_dir in $PATH
12032do
12033 IFS=$as_save_IFS
12034 test -z "$as_dir" && as_dir=.
12035 for ac_exec_ext in '' $ac_executable_extensions; do
12036 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12037 ac_cv_prog_ac_ct_RANLIB="ranlib"
12038 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12039 break 2
12040 fi
12041done
12042done
12043
12044 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
12045fi
12046fi
12047ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
12048if test -n "$ac_ct_RANLIB"; then
12049 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
12050echo "${ECHO_T}$ac_ct_RANLIB" >&6
12051else
12052 echo "$as_me:$LINENO: result: no" >&5
12053echo "${ECHO_T}no" >&6
12054fi
12055
12056 RANLIB=$ac_ct_RANLIB
12057else
12058 RANLIB="$ac_cv_prog_RANLIB"
12059fi
12060
12061
12062# Extract the first word of "ar", so it can be a program name with args.
12063set dummy ar; ac_word=$2
12064echo "$as_me:$LINENO: checking for $ac_word" >&5
12065echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12066if test "${ac_cv_prog_AR+set}" = set; then
12067 echo $ECHO_N "(cached) $ECHO_C" >&6
12068else
12069 if test -n "$AR"; then
12070 ac_cv_prog_AR="$AR" # Let the user override the test.
12071else
12072as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12073for as_dir in $PATH
12074do
12075 IFS=$as_save_IFS
12076 test -z "$as_dir" && as_dir=.
12077 for ac_exec_ext in '' $ac_executable_extensions; do
12078 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12079 ac_cv_prog_AR="ar"
12080 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12081 break 2
12082 fi
12083done
12084done
12085
12086fi
12087fi
12088AR=$ac_cv_prog_AR
12089if test -n "$AR"; then
12090 echo "$as_me:$LINENO: result: $AR" >&5
12091echo "${ECHO_T}$AR" >&6
12092else
12093 echo "$as_me:$LINENO: result: no" >&5
12094echo "${ECHO_T}no" >&6
12095fi
12096
12097if test "x$AR" = "x" ; then
77ffb593
JS
12098 { { echo "$as_me:$LINENO: error: ar is needed to build wxWidgets" >&5
12099echo "$as_me: error: ar is needed to build wxWidgets" >&2;}
a848cd7e
SC
12100 { (exit 1); exit 1; }; }
12101fi
12102
12103# Find a good install program. We prefer a C program (faster),
12104# so one script is as good as another. But avoid the broken or
12105# incompatible versions:
12106# SysV /etc/install, /usr/sbin/install
12107# SunOS /usr/etc/install
12108# IRIX /sbin/install
12109# AIX /bin/install
12110# AmigaOS /C/install, which installs bootblocks on floppy discs
12111# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
12112# AFS /usr/afsws/bin/install, which mishandles nonexistent args
12113# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
ac1cb8d3 12114# OS/2's system install, which has a completely different semantic
a848cd7e
SC
12115# ./install, which can be erroneously created by make from ./install.sh.
12116echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
12117echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
12118if test -z "$INSTALL"; then
12119if test "${ac_cv_path_install+set}" = set; then
12120 echo $ECHO_N "(cached) $ECHO_C" >&6
12121else
12122 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12123for as_dir in $PATH
12124do
12125 IFS=$as_save_IFS
12126 test -z "$as_dir" && as_dir=.
12127 # Account for people who put trailing slashes in PATH elements.
12128case $as_dir/ in
12129 ./ | .// | /cC/* | \
12130 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
ac1cb8d3 12131 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
a848cd7e
SC
12132 /usr/ucb/* ) ;;
12133 *)
12134 # OSF1 and SCO ODT 3.0 have their own names for install.
12135 # Don't use installbsd from OSF since it installs stuff as root
12136 # by default.
12137 for ac_prog in ginstall scoinst install; do
12138 for ac_exec_ext in '' $ac_executable_extensions; do
ac1cb8d3
VS
12139 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
12140 if test $ac_prog = install &&
12141 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
12142 # AIX install. It has an incompatible calling convention.
12143 :
12144 elif test $ac_prog = install &&
12145 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
12146 # program-specific install script used by HP pwplus--don't use.
12147 :
12148 else
12149 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
12150 break 3
12151 fi
12152 fi
a848cd7e
SC
12153 done
12154 done
12155 ;;
12156esac
12157done
12158
12159
12160fi
12161 if test "${ac_cv_path_install+set}" = set; then
12162 INSTALL=$ac_cv_path_install
12163 else
12164 # As a last resort, use the slow shell script. We don't cache a
12165 # path for INSTALL within a source directory, because that will
12166 # break other packages using the cache if that directory is
12167 # removed, or if the path is relative.
12168 INSTALL=$ac_install_sh
12169 fi
12170fi
12171echo "$as_me:$LINENO: result: $INSTALL" >&5
12172echo "${ECHO_T}$INSTALL" >&6
12173
12174# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
12175# It thinks the first close brace ends the variable substitution.
12176test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
12177
12178test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
12179
12180test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
12181
12182
12183case ${INSTALL} in
12184 /* ) # Absolute
12185 ;;
12186 ?:* ) # Drive letter, considered as absolute.
12187 ;;
12188 *)
12189 INSTALL=`pwd`/${INSTALL} ;;
12190esac
12191
a848cd7e
SC
12192
12193case "${host}" in
12194
12195 powerpc-*-darwin* )
12196 INSTALL_PROGRAM="cp -fp"
12197 INSTALL_DATA="cp -fp"
12198 ;;
12199 *)
12200 ;;
12201esac
12202
12203# Extract the first word of "strip", so it can be a program name with args.
12204set dummy strip; ac_word=$2
12205echo "$as_me:$LINENO: checking for $ac_word" >&5
12206echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12207if test "${ac_cv_prog_STRIP+set}" = set; then
12208 echo $ECHO_N "(cached) $ECHO_C" >&6
12209else
12210 if test -n "$STRIP"; then
12211 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
12212else
12213as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12214for as_dir in $PATH
12215do
12216 IFS=$as_save_IFS
12217 test -z "$as_dir" && as_dir=.
12218 for ac_exec_ext in '' $ac_executable_extensions; do
12219 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12220 ac_cv_prog_STRIP="strip"
12221 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12222 break 2
12223 fi
12224done
12225done
12226
12227 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="true"
12228fi
12229fi
12230STRIP=$ac_cv_prog_STRIP
12231if test -n "$STRIP"; then
12232 echo "$as_me:$LINENO: result: $STRIP" >&5
12233echo "${ECHO_T}$STRIP" >&6
12234else
12235 echo "$as_me:$LINENO: result: no" >&5
12236echo "${ECHO_T}no" >&6
12237fi
12238
12239
12240echo "$as_me:$LINENO: checking if make is GNU make" >&5
12241echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6
12242if test "${wx_cv_prog_makeisgnu+set}" = set; then
12243 echo $ECHO_N "(cached) $ECHO_C" >&6
12244else
12245
12246 if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
12247 egrep -s GNU > /dev/null); then
12248 wx_cv_prog_makeisgnu="yes"
12249 else
12250 wx_cv_prog_makeisgnu="no"
12251 fi
12252
12253fi
12254echo "$as_me:$LINENO: result: $wx_cv_prog_makeisgnu" >&5
12255echo "${ECHO_T}$wx_cv_prog_makeisgnu" >&6
12256
12257if test "x$wx_cv_prog_makeisgnu" = "xyes"; then
12258 IF_GNU_MAKE=""
12259else
12260 IF_GNU_MAKE="#"
12261fi
12262
12263
12264
12265if test "x$wx_cv_prog_makeisgnu" != "xyes"; then
12266echo "$as_me:$LINENO: checking if make supports VPATH" >&5
12267echo $ECHO_N "checking if make supports VPATH... $ECHO_C" >&6
12268if test "${wx_cv_prog_makevpath+set}" = set; then
12269 echo $ECHO_N "(cached) $ECHO_C" >&6
12270else
12271
12272cat - << EOF > confMake
12273check : file
12274 cp \$? \$@
12275 cp \$? final_file
12276EOF
12277
12278if test ! -d sub ; then
12279 mkdir sub
12280fi
12281echo dummy > sub/file
12282${MAKE-make} -f confMake VPATH=sub 2>&5 > /dev/null
12283RESULT=$?
12284rm -f sub/file check final_file confMake
12285rmdir sub
12286if test "$RESULT" = 0; then
12287 wx_cv_prog_makevpath="yes"
12288else
12289 wx_cv_prog_makevpath="no"
12290fi
12291
12292fi
12293echo "$as_me:$LINENO: result: $wx_cv_prog_makevpath" >&5
12294echo "${ECHO_T}$wx_cv_prog_makevpath" >&6
12295
12296if test "x$wx_cv_prog_makevpath" != "xyes"; then
12297{ { echo "$as_me:$LINENO: error:
12298You need a make-utility that is able to use the variable
12299VPATH correctly.
12300If your version of make does not support VPATH correctly,
12301please install GNU-make (possibly as gmake), and start
12302configure with the following command:
12303export MAKE=gmake; ./configure for sh-type shells
12304setenv MAKE gmake; ./configure for csh-type shells
12305Also please do remember to use gmake in this case every time
12306you are trying to compile.
12307" >&5
12308echo "$as_me: error:
12309You need a make-utility that is able to use the variable
12310VPATH correctly.
12311If your version of make does not support VPATH correctly,
12312please install GNU-make (possibly as gmake), and start
12313configure with the following command:
12314export MAKE=gmake; ./configure for sh-type shells
12315setenv MAKE gmake; ./configure for csh-type shells
12316Also please do remember to use gmake in this case every time
12317you are trying to compile.
12318" >&2;}
12319 { (exit 1); exit 1; }; }
12320fi fi
12321echo "$as_me:$LINENO: checking whether ln -s works" >&5
12322echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
12323LN_S=$as_ln_s
12324if test "$LN_S" = "ln -s"; then
12325 echo "$as_me:$LINENO: result: yes" >&5
12326echo "${ECHO_T}yes" >&6
12327else
12328 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
12329echo "${ECHO_T}no, using $LN_S" >&6
12330fi
12331
12332
12333
12334case "${host}" in
12335 *-pc-os2_emx | *-pc-os2-emx )
12336 if test "$wxUSE_MOTIF" = 1 -o "$wxUSE_GTK" = 1 -o "$wxUSE_X11" = 1; then
12337 echo "$as_me:$LINENO: checking for drand48 in -lcExt" >&5
12338echo $ECHO_N "checking for drand48 in -lcExt... $ECHO_C" >&6
12339if test "${ac_cv_lib_cExt_drand48+set}" = set; then
12340 echo $ECHO_N "(cached) $ECHO_C" >&6
12341else
12342 ac_check_lib_save_LIBS=$LIBS
12343LIBS="-lcExt $LIBS"
12344cat >conftest.$ac_ext <<_ACEOF
12345/* confdefs.h. */
12346_ACEOF
12347cat confdefs.h >>conftest.$ac_ext
12348cat >>conftest.$ac_ext <<_ACEOF
12349/* end confdefs.h. */
12350
12351/* Override any gcc2 internal prototype to avoid an error. */
12352#ifdef __cplusplus
12353extern "C"
12354#endif
12355/* We use char because int might match the return type of a gcc2
12356 builtin and then its argument prototype would still apply. */
12357char drand48 ();
12358int
12359main ()
12360{
12361drand48 ();
12362 ;
12363 return 0;
12364}
12365_ACEOF
12366rm -f conftest.$ac_objext conftest$ac_exeext
12367if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 12368 (eval $ac_link) 2>conftest.er1
a848cd7e 12369 ac_status=$?
ac1cb8d3
VS
12370 grep -v '^ *+' conftest.er1 >conftest.err
12371 rm -f conftest.er1
12372 cat conftest.err >&5
a848cd7e
SC
12373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12374 (exit $ac_status); } &&
17a7bf57 12375 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
12376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12377 (eval $ac_try) 2>&5
12378 ac_status=$?
12379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12380 (exit $ac_status); }; } &&
12381 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
12382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12383 (eval $ac_try) 2>&5
12384 ac_status=$?
12385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12386 (exit $ac_status); }; }; then
12387 ac_cv_lib_cExt_drand48=yes
12388else
12389 echo "$as_me: failed program was:" >&5
12390sed 's/^/| /' conftest.$ac_ext >&5
12391
12392ac_cv_lib_cExt_drand48=no
12393fi
ac1cb8d3
VS
12394rm -f conftest.err conftest.$ac_objext \
12395 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
12396LIBS=$ac_check_lib_save_LIBS
12397fi
12398echo "$as_me:$LINENO: result: $ac_cv_lib_cExt_drand48" >&5
12399echo "${ECHO_T}$ac_cv_lib_cExt_drand48" >&6
12400if test $ac_cv_lib_cExt_drand48 = yes; then
12401 LIBS="$LIBS -lcExt"
12402fi
12403
12404 else
12405 RESPROGRAMOBJ="\${top_srcdir}/include/wx/os2/wx.res"
12406 fi
12407 echo "$as_me:$LINENO: checking for gcc version" >&5
12408echo $ECHO_N "checking for gcc version... $ECHO_C" >&6
12409if test "${wx_cv_gccversion+set}" = set; then
12410 echo $ECHO_N "(cached) $ECHO_C" >&6
12411else
12412
12413 cat >conftest.$ac_ext <<_ACEOF
12414/* confdefs.h. */
12415_ACEOF
12416cat confdefs.h >>conftest.$ac_ext
12417cat >>conftest.$ac_ext <<_ACEOF
12418/* end confdefs.h. */
12419
12420int
12421main ()
12422{
12423
12424 #if (__GNUC__ < 3)
12425 #error old gcc
12426 #endif
12427
12428 ;
12429 return 0;
12430}
12431_ACEOF
12432rm -f conftest.$ac_objext
12433if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12434 (eval $ac_compile) 2>conftest.er1
a848cd7e 12435 ac_status=$?
ac1cb8d3
VS
12436 grep -v '^ *+' conftest.er1 >conftest.err
12437 rm -f conftest.er1
12438 cat conftest.err >&5
a848cd7e
SC
12439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12440 (exit $ac_status); } &&
17a7bf57 12441 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
12442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12443 (eval $ac_try) 2>&5
12444 ac_status=$?
12445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12446 (exit $ac_status); }; } &&
12447 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12449 (eval $ac_try) 2>&5
12450 ac_status=$?
12451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12452 (exit $ac_status); }; }; then
12453
12454 cat >conftest.$ac_ext <<_ACEOF
12455/* confdefs.h. */
12456_ACEOF
12457cat confdefs.h >>conftest.$ac_ext
12458cat >>conftest.$ac_ext <<_ACEOF
12459/* end confdefs.h. */
12460
12461int
12462main ()
12463{
12464
12465 #if (__GNUC__==3) && ((__GNUC_MINOR__ < 2) || ((__GNUC_MINOR__==2) && (__GNUC_PATCHLEVEL__<2)))
12466 #error intermediate gcc
12467 #endif
12468
12469 ;
12470 return 0;
12471}
12472_ACEOF
12473rm -f conftest.$ac_objext
12474if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12475 (eval $ac_compile) 2>conftest.er1
a848cd7e 12476 ac_status=$?
ac1cb8d3
VS
12477 grep -v '^ *+' conftest.er1 >conftest.err
12478 rm -f conftest.er1
12479 cat conftest.err >&5
a848cd7e
SC
12480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12481 (exit $ac_status); } &&
17a7bf57 12482 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
12483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12484 (eval $ac_try) 2>&5
12485 ac_status=$?
12486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12487 (exit $ac_status); }; } &&
12488 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12490 (eval $ac_try) 2>&5
12491 ac_status=$?
12492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12493 (exit $ac_status); }; }; then
12494
12495 wx_cv_gccversion=Innotek
12496
12497else
12498 echo "$as_me: failed program was:" >&5
12499sed 's/^/| /' conftest.$ac_ext >&5
12500
12501
12502 wx_cv_gccversion=3
12503
12504
12505fi
ac1cb8d3 12506rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12507
12508else
12509 echo "$as_me: failed program was:" >&5
12510sed 's/^/| /' conftest.$ac_ext >&5
12511
12512
12513 wx_cv_gccversion=2
12514
12515
12516fi
ac1cb8d3 12517rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12518
12519fi
12520echo "$as_me:$LINENO: result: $wx_cv_gccversion" >&5
12521echo "${ECHO_T}$wx_cv_gccversion" >&6
12522 if test "$wx_cv_gccversion" = "2"; then
12523 LIBS="$LIBS -lstdcpp"
12524 LDFLAGS="$LDFLAGS -Zsysv-signals"
12525 else
12526 if test "$wx_cv_gccversion" = "3"; then
12527 LIBS="$LIBS -lstdcxx"
12528 LDFLAGS="$LDFLAGS -Zsysv-signals"
12529 else
12530 LIBS="$LIBS -lstdc++"
12531 fi
12532 fi
12533 if test "$wxUSE_OMF" = "yes"; then
de59c161 12534 LDFLAGS="$LDFLAGS -Zomf -Zlinker /PMTYPE:PM -Zlinker /EXEPACK"
a848cd7e
SC
12535 fi
12536 ;;
12537 *)
12538
12539
12540
12541 ac_ext=cc
12542ac_cpp='$CXXCPP $CPPFLAGS'
12543ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12544ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12545ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12546
12547
12548
12549echo "$as_me:$LINENO: checking for strcasecmp() in string.h" >&5
12550echo $ECHO_N "checking for strcasecmp() in string.h... $ECHO_C" >&6
12551if test "${ac_cv_string_strcasecmp+set}" = set; then
12552 echo $ECHO_N "(cached) $ECHO_C" >&6
12553else
12554
12555 cat >conftest.$ac_ext <<_ACEOF
12556/* confdefs.h. */
12557_ACEOF
12558cat confdefs.h >>conftest.$ac_ext
12559cat >>conftest.$ac_ext <<_ACEOF
12560/* end confdefs.h. */
12561
12562 #include <string.h>
12563
12564int
12565main ()
12566{
12567
12568 strcasecmp("foo", "bar");
12569
12570 ;
12571 return 0;
12572}
12573_ACEOF
12574rm -f conftest.$ac_objext conftest$ac_exeext
12575if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 12576 (eval $ac_link) 2>conftest.er1
a848cd7e 12577 ac_status=$?
ac1cb8d3
VS
12578 grep -v '^ *+' conftest.er1 >conftest.err
12579 rm -f conftest.er1
12580 cat conftest.err >&5
a848cd7e
SC
12581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12582 (exit $ac_status); } &&
17a7bf57 12583 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
12584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12585 (eval $ac_try) 2>&5
12586 ac_status=$?
12587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12588 (exit $ac_status); }; } &&
12589 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
12590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12591 (eval $ac_try) 2>&5
12592 ac_status=$?
12593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12594 (exit $ac_status); }; }; then
12595 ac_cv_string_strcasecmp=yes
12596else
12597 echo "$as_me: failed program was:" >&5
12598sed 's/^/| /' conftest.$ac_ext >&5
12599
12600ac_cv_string_strcasecmp=no
12601
12602fi
ac1cb8d3
VS
12603rm -f conftest.err conftest.$ac_objext \
12604 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
12605
12606fi
12607echo "$as_me:$LINENO: result: $ac_cv_string_strcasecmp" >&5
12608echo "${ECHO_T}$ac_cv_string_strcasecmp" >&6
12609
12610 if test x"$ac_cv_string_strcasecmp" = "xyes"; then
12611 cat >>confdefs.h <<\_ACEOF
12612#define HAVE_STRCASECMP_IN_STRING_H 1
12613_ACEOF
12614
12615 else
12616 echo "$as_me:$LINENO: checking for strcasecmp() in strings.h" >&5
12617echo $ECHO_N "checking for strcasecmp() in strings.h... $ECHO_C" >&6
12618if test "${ac_cv_strings_strcasecmp+set}" = set; then
12619 echo $ECHO_N "(cached) $ECHO_C" >&6
12620else
12621
12622 cat >conftest.$ac_ext <<_ACEOF
12623/* confdefs.h. */
12624_ACEOF
12625cat confdefs.h >>conftest.$ac_ext
12626cat >>conftest.$ac_ext <<_ACEOF
12627/* end confdefs.h. */
12628
12629 #include <strings.h>
12630
12631int
12632main ()
12633{
12634
12635 strcasecmp("foo", "bar");
12636
12637 ;
12638 return 0;
12639}
12640_ACEOF
12641rm -f conftest.$ac_objext conftest$ac_exeext
12642if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 12643 (eval $ac_link) 2>conftest.er1
a848cd7e 12644 ac_status=$?
ac1cb8d3
VS
12645 grep -v '^ *+' conftest.er1 >conftest.err
12646 rm -f conftest.er1
12647 cat conftest.err >&5
a848cd7e
SC
12648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12649 (exit $ac_status); } &&
17a7bf57 12650 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
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); }; } &&
12656 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
12657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12658 (eval $ac_try) 2>&5
12659 ac_status=$?
12660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12661 (exit $ac_status); }; }; then
12662 ac_cv_strings_strcasecmp=yes
12663else
12664 echo "$as_me: failed program was:" >&5
12665sed 's/^/| /' conftest.$ac_ext >&5
12666
12667ac_cv_strings_strcasecmp=no
12668
12669fi
ac1cb8d3
VS
12670rm -f conftest.err conftest.$ac_objext \
12671 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
12672
12673fi
12674echo "$as_me:$LINENO: result: $ac_cv_strings_strcasecmp" >&5
12675echo "${ECHO_T}$ac_cv_strings_strcasecmp" >&6
12676
0c3c69fc 12677 if test x"$ac_cv_strings_strcasecmp" = "xyes"; then
a848cd7e
SC
12678 cat >>confdefs.h <<\_ACEOF
12679#define HAVE_STRCASECMP_IN_STRINGS_H 1
12680_ACEOF
12681
12682 else
12683 { { echo "$as_me:$LINENO: error: No case-insensitive string comparison function found." >&5
12684echo "$as_me: error: No case-insensitive string comparison function found." >&2;}
12685 { (exit 1); exit 1; }; }
12686 fi
12687 fi
12688
12689 ac_ext=c
12690ac_cpp='$CPP $CPPFLAGS'
12691ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12692ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12693ac_compiler_gnu=$ac_cv_c_compiler_gnu
12694
12695 ;;
12696esac
12697
12698
12699echo "$as_me:$LINENO: checking for ANSI C header files" >&5
12700echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
12701if test "${ac_cv_header_stdc+set}" = set; then
12702 echo $ECHO_N "(cached) $ECHO_C" >&6
12703else
12704 cat >conftest.$ac_ext <<_ACEOF
12705/* confdefs.h. */
12706_ACEOF
12707cat confdefs.h >>conftest.$ac_ext
12708cat >>conftest.$ac_ext <<_ACEOF
12709/* end confdefs.h. */
12710#include <stdlib.h>
12711#include <stdarg.h>
12712#include <string.h>
12713#include <float.h>
12714
12715int
12716main ()
12717{
12718
12719 ;
12720 return 0;
12721}
12722_ACEOF
12723rm -f conftest.$ac_objext
12724if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12725 (eval $ac_compile) 2>conftest.er1
a848cd7e 12726 ac_status=$?
ac1cb8d3
VS
12727 grep -v '^ *+' conftest.er1 >conftest.err
12728 rm -f conftest.er1
12729 cat conftest.err >&5
a848cd7e
SC
12730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12731 (exit $ac_status); } &&
17a7bf57 12732 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
12733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12734 (eval $ac_try) 2>&5
12735 ac_status=$?
12736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12737 (exit $ac_status); }; } &&
12738 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12740 (eval $ac_try) 2>&5
12741 ac_status=$?
12742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12743 (exit $ac_status); }; }; then
12744 ac_cv_header_stdc=yes
12745else
12746 echo "$as_me: failed program was:" >&5
12747sed 's/^/| /' conftest.$ac_ext >&5
12748
12749ac_cv_header_stdc=no
12750fi
ac1cb8d3 12751rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12752
12753if test $ac_cv_header_stdc = yes; then
12754 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
12755 cat >conftest.$ac_ext <<_ACEOF
12756/* confdefs.h. */
12757_ACEOF
12758cat confdefs.h >>conftest.$ac_ext
12759cat >>conftest.$ac_ext <<_ACEOF
12760/* end confdefs.h. */
12761#include <string.h>
12762
12763_ACEOF
12764if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12765 $EGREP "memchr" >/dev/null 2>&1; then
12766 :
12767else
12768 ac_cv_header_stdc=no
12769fi
12770rm -f conftest*
12771
12772fi
12773
12774if test $ac_cv_header_stdc = yes; then
12775 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
12776 cat >conftest.$ac_ext <<_ACEOF
12777/* confdefs.h. */
12778_ACEOF
12779cat confdefs.h >>conftest.$ac_ext
12780cat >>conftest.$ac_ext <<_ACEOF
12781/* end confdefs.h. */
12782#include <stdlib.h>
12783
12784_ACEOF
12785if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12786 $EGREP "free" >/dev/null 2>&1; then
12787 :
12788else
12789 ac_cv_header_stdc=no
12790fi
12791rm -f conftest*
12792
12793fi
12794
12795if test $ac_cv_header_stdc = yes; then
12796 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
12797 if test "$cross_compiling" = yes; then
12798 :
12799else
12800 cat >conftest.$ac_ext <<_ACEOF
12801/* confdefs.h. */
12802_ACEOF
12803cat confdefs.h >>conftest.$ac_ext
12804cat >>conftest.$ac_ext <<_ACEOF
12805/* end confdefs.h. */
12806#include <ctype.h>
12807#if ((' ' & 0x0FF) == 0x020)
12808# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
12809# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
12810#else
12811# define ISLOWER(c) \
ac1cb8d3
VS
12812 (('a' <= (c) && (c) <= 'i') \
12813 || ('j' <= (c) && (c) <= 'r') \
12814 || ('s' <= (c) && (c) <= 'z'))
a848cd7e
SC
12815# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
12816#endif
12817
12818#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
12819int
12820main ()
12821{
12822 int i;
12823 for (i = 0; i < 256; i++)
12824 if (XOR (islower (i), ISLOWER (i))
ac1cb8d3 12825 || toupper (i) != TOUPPER (i))
a848cd7e
SC
12826 exit(2);
12827 exit (0);
12828}
12829_ACEOF
12830rm -f conftest$ac_exeext
12831if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12832 (eval $ac_link) 2>&5
12833 ac_status=$?
12834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12835 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12837 (eval $ac_try) 2>&5
12838 ac_status=$?
12839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12840 (exit $ac_status); }; }; then
12841 :
12842else
12843 echo "$as_me: program exited with status $ac_status" >&5
12844echo "$as_me: failed program was:" >&5
12845sed 's/^/| /' conftest.$ac_ext >&5
12846
12847( exit $ac_status )
12848ac_cv_header_stdc=no
12849fi
ac1cb8d3 12850rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12851fi
12852fi
12853fi
12854echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
12855echo "${ECHO_T}$ac_cv_header_stdc" >&6
12856if test $ac_cv_header_stdc = yes; then
12857
12858cat >>confdefs.h <<\_ACEOF
12859#define STDC_HEADERS 1
12860_ACEOF
12861
12862fi
12863
12864# On IRIX 5.3, sys/types and inttypes.h are conflicting.
12865
12866
12867
12868
12869
12870
12871
12872
12873
12874for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
ac1cb8d3 12875 inttypes.h stdint.h unistd.h
a848cd7e
SC
12876do
12877as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12878echo "$as_me:$LINENO: checking for $ac_header" >&5
12879echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12880if eval "test \"\${$as_ac_Header+set}\" = set"; then
12881 echo $ECHO_N "(cached) $ECHO_C" >&6
12882else
12883 cat >conftest.$ac_ext <<_ACEOF
12884/* confdefs.h. */
12885_ACEOF
12886cat confdefs.h >>conftest.$ac_ext
12887cat >>conftest.$ac_ext <<_ACEOF
12888/* end confdefs.h. */
12889$ac_includes_default
12890
12891#include <$ac_header>
12892_ACEOF
12893rm -f conftest.$ac_objext
12894if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12895 (eval $ac_compile) 2>conftest.er1
a848cd7e 12896 ac_status=$?
ac1cb8d3
VS
12897 grep -v '^ *+' conftest.er1 >conftest.err
12898 rm -f conftest.er1
12899 cat conftest.err >&5
a848cd7e
SC
12900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12901 (exit $ac_status); } &&
17a7bf57 12902 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
12903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12904 (eval $ac_try) 2>&5
12905 ac_status=$?
12906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12907 (exit $ac_status); }; } &&
12908 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12910 (eval $ac_try) 2>&5
12911 ac_status=$?
12912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12913 (exit $ac_status); }; }; then
12914 eval "$as_ac_Header=yes"
12915else
12916 echo "$as_me: failed program was:" >&5
12917sed 's/^/| /' conftest.$ac_ext >&5
12918
12919eval "$as_ac_Header=no"
12920fi
ac1cb8d3 12921rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12922fi
12923echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12924echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12925if test `eval echo '${'$as_ac_Header'}'` = yes; then
12926 cat >>confdefs.h <<_ACEOF
12927#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12928_ACEOF
12929
12930fi
12931
12932done
12933
12934
12935
12936for ac_header in stdlib.h
12937do
12938as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12939if eval "test \"\${$as_ac_Header+set}\" = set"; then
12940 echo "$as_me:$LINENO: checking for $ac_header" >&5
12941echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12942if eval "test \"\${$as_ac_Header+set}\" = set"; then
12943 echo $ECHO_N "(cached) $ECHO_C" >&6
12944fi
12945echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12946echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12947else
12948 # Is the header compilable?
12949echo "$as_me:$LINENO: checking $ac_header usability" >&5
12950echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12951cat >conftest.$ac_ext <<_ACEOF
12952/* confdefs.h. */
12953_ACEOF
12954cat confdefs.h >>conftest.$ac_ext
12955cat >>conftest.$ac_ext <<_ACEOF
12956/* end confdefs.h. */
12957$ac_includes_default
12958#include <$ac_header>
12959_ACEOF
12960rm -f conftest.$ac_objext
12961if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12962 (eval $ac_compile) 2>conftest.er1
a848cd7e 12963 ac_status=$?
ac1cb8d3
VS
12964 grep -v '^ *+' conftest.er1 >conftest.err
12965 rm -f conftest.er1
12966 cat conftest.err >&5
a848cd7e
SC
12967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12968 (exit $ac_status); } &&
17a7bf57 12969 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
12970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12971 (eval $ac_try) 2>&5
12972 ac_status=$?
12973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12974 (exit $ac_status); }; } &&
12975 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12977 (eval $ac_try) 2>&5
12978 ac_status=$?
12979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12980 (exit $ac_status); }; }; then
12981 ac_header_compiler=yes
12982else
12983 echo "$as_me: failed program was:" >&5
12984sed 's/^/| /' conftest.$ac_ext >&5
12985
12986ac_header_compiler=no
12987fi
ac1cb8d3 12988rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12989echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12990echo "${ECHO_T}$ac_header_compiler" >&6
12991
12992# Is the header present?
12993echo "$as_me:$LINENO: checking $ac_header presence" >&5
12994echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12995cat >conftest.$ac_ext <<_ACEOF
12996/* confdefs.h. */
12997_ACEOF
12998cat confdefs.h >>conftest.$ac_ext
12999cat >>conftest.$ac_ext <<_ACEOF
13000/* end confdefs.h. */
13001#include <$ac_header>
13002_ACEOF
13003if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13004 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13005 ac_status=$?
13006 grep -v '^ *+' conftest.er1 >conftest.err
13007 rm -f conftest.er1
13008 cat conftest.err >&5
13009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13010 (exit $ac_status); } >/dev/null; then
13011 if test -s conftest.err; then
13012 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 13013 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
13014 else
13015 ac_cpp_err=
13016 fi
13017else
13018 ac_cpp_err=yes
13019fi
13020if test -z "$ac_cpp_err"; then
13021 ac_header_preproc=yes
13022else
13023 echo "$as_me: failed program was:" >&5
13024sed 's/^/| /' conftest.$ac_ext >&5
13025
13026 ac_header_preproc=no
13027fi
13028rm -f conftest.err conftest.$ac_ext
13029echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13030echo "${ECHO_T}$ac_header_preproc" >&6
13031
13032# So? What about this header?
ac1cb8d3
VS
13033case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13034 yes:no: )
a848cd7e
SC
13035 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13036echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
13037 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13038echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13039 ac_header_preproc=yes
a848cd7e 13040 ;;
ac1cb8d3 13041 no:yes:* )
a848cd7e
SC
13042 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13043echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
13044 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13045echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13046 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13047echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13048 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13049echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
13050 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13051echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
13052 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13053echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
13054 (
13055 cat <<\_ASBOX
ac1cb8d3
VS
13056## ----------------------------------------- ##
13057## Report this to wx-dev@lists.wxwidgets.org ##
13058## ----------------------------------------- ##
a848cd7e
SC
13059_ASBOX
13060 ) |
13061 sed "s/^/$as_me: WARNING: /" >&2
13062 ;;
13063esac
13064echo "$as_me:$LINENO: checking for $ac_header" >&5
13065echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13066if eval "test \"\${$as_ac_Header+set}\" = set"; then
13067 echo $ECHO_N "(cached) $ECHO_C" >&6
13068else
ac1cb8d3 13069 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
13070fi
13071echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13072echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13073
13074fi
13075if test `eval echo '${'$as_ac_Header'}'` = yes; then
13076 cat >>confdefs.h <<_ACEOF
13077#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13078_ACEOF
13079
13080fi
13081
13082done
13083
13084
13085for ac_header in malloc.h
13086do
13087as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13088if eval "test \"\${$as_ac_Header+set}\" = set"; then
13089 echo "$as_me:$LINENO: checking for $ac_header" >&5
13090echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13091if eval "test \"\${$as_ac_Header+set}\" = set"; then
13092 echo $ECHO_N "(cached) $ECHO_C" >&6
13093fi
13094echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13095echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13096else
13097 # Is the header compilable?
13098echo "$as_me:$LINENO: checking $ac_header usability" >&5
13099echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13100cat >conftest.$ac_ext <<_ACEOF
13101/* confdefs.h. */
13102_ACEOF
13103cat confdefs.h >>conftest.$ac_ext
13104cat >>conftest.$ac_ext <<_ACEOF
13105/* end confdefs.h. */
13106$ac_includes_default
13107#include <$ac_header>
13108_ACEOF
13109rm -f conftest.$ac_objext
13110if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 13111 (eval $ac_compile) 2>conftest.er1
a848cd7e 13112 ac_status=$?
ac1cb8d3
VS
13113 grep -v '^ *+' conftest.er1 >conftest.err
13114 rm -f conftest.er1
13115 cat conftest.err >&5
a848cd7e
SC
13116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13117 (exit $ac_status); } &&
17a7bf57 13118 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
13119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13120 (eval $ac_try) 2>&5
13121 ac_status=$?
13122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13123 (exit $ac_status); }; } &&
13124 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
13125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13126 (eval $ac_try) 2>&5
13127 ac_status=$?
13128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13129 (exit $ac_status); }; }; then
13130 ac_header_compiler=yes
13131else
13132 echo "$as_me: failed program was:" >&5
13133sed 's/^/| /' conftest.$ac_ext >&5
13134
13135ac_header_compiler=no
13136fi
ac1cb8d3 13137rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
13138echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13139echo "${ECHO_T}$ac_header_compiler" >&6
13140
13141# Is the header present?
13142echo "$as_me:$LINENO: checking $ac_header presence" >&5
13143echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13144cat >conftest.$ac_ext <<_ACEOF
13145/* confdefs.h. */
13146_ACEOF
13147cat confdefs.h >>conftest.$ac_ext
13148cat >>conftest.$ac_ext <<_ACEOF
13149/* end confdefs.h. */
13150#include <$ac_header>
13151_ACEOF
13152if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13153 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13154 ac_status=$?
13155 grep -v '^ *+' conftest.er1 >conftest.err
13156 rm -f conftest.er1
13157 cat conftest.err >&5
13158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13159 (exit $ac_status); } >/dev/null; then
13160 if test -s conftest.err; then
13161 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 13162 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
13163 else
13164 ac_cpp_err=
13165 fi
13166else
13167 ac_cpp_err=yes
13168fi
13169if test -z "$ac_cpp_err"; then
13170 ac_header_preproc=yes
13171else
13172 echo "$as_me: failed program was:" >&5
13173sed 's/^/| /' conftest.$ac_ext >&5
13174
13175 ac_header_preproc=no
13176fi
13177rm -f conftest.err conftest.$ac_ext
13178echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13179echo "${ECHO_T}$ac_header_preproc" >&6
13180
13181# So? What about this header?
ac1cb8d3
VS
13182case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13183 yes:no: )
a848cd7e
SC
13184 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13185echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
13186 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13187echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13188 ac_header_preproc=yes
a848cd7e 13189 ;;
ac1cb8d3 13190 no:yes:* )
a848cd7e
SC
13191 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13192echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
13193 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13194echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13195 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13196echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13197 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13198echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
13199 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13200echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
13201 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13202echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
13203 (
13204 cat <<\_ASBOX
ac1cb8d3
VS
13205## ----------------------------------------- ##
13206## Report this to wx-dev@lists.wxwidgets.org ##
13207## ----------------------------------------- ##
a848cd7e
SC
13208_ASBOX
13209 ) |
13210 sed "s/^/$as_me: WARNING: /" >&2
13211 ;;
13212esac
13213echo "$as_me:$LINENO: checking for $ac_header" >&5
13214echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13215if eval "test \"\${$as_ac_Header+set}\" = set"; then
13216 echo $ECHO_N "(cached) $ECHO_C" >&6
13217else
ac1cb8d3 13218 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
13219fi
13220echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13221echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13222
13223fi
13224if test `eval echo '${'$as_ac_Header'}'` = yes; then
13225 cat >>confdefs.h <<_ACEOF
13226#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13227_ACEOF
13228
13229fi
13230
13231done
13232
13233
13234for ac_header in unistd.h
13235do
13236as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13237if eval "test \"\${$as_ac_Header+set}\" = set"; then
13238 echo "$as_me:$LINENO: checking for $ac_header" >&5
13239echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13240if eval "test \"\${$as_ac_Header+set}\" = set"; then
13241 echo $ECHO_N "(cached) $ECHO_C" >&6
13242fi
13243echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13244echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13245else
13246 # Is the header compilable?
13247echo "$as_me:$LINENO: checking $ac_header usability" >&5
13248echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13249cat >conftest.$ac_ext <<_ACEOF
13250/* confdefs.h. */
13251_ACEOF
13252cat confdefs.h >>conftest.$ac_ext
13253cat >>conftest.$ac_ext <<_ACEOF
13254/* end confdefs.h. */
13255$ac_includes_default
13256#include <$ac_header>
13257_ACEOF
13258rm -f conftest.$ac_objext
13259if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 13260 (eval $ac_compile) 2>conftest.er1
a848cd7e 13261 ac_status=$?
ac1cb8d3
VS
13262 grep -v '^ *+' conftest.er1 >conftest.err
13263 rm -f conftest.er1
13264 cat conftest.err >&5
a848cd7e
SC
13265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13266 (exit $ac_status); } &&
17a7bf57 13267 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
13268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13269 (eval $ac_try) 2>&5
13270 ac_status=$?
13271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13272 (exit $ac_status); }; } &&
13273 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
13274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13275 (eval $ac_try) 2>&5
13276 ac_status=$?
13277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13278 (exit $ac_status); }; }; then
13279 ac_header_compiler=yes
13280else
13281 echo "$as_me: failed program was:" >&5
13282sed 's/^/| /' conftest.$ac_ext >&5
13283
13284ac_header_compiler=no
13285fi
ac1cb8d3 13286rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
13287echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13288echo "${ECHO_T}$ac_header_compiler" >&6
13289
13290# Is the header present?
13291echo "$as_me:$LINENO: checking $ac_header presence" >&5
13292echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13293cat >conftest.$ac_ext <<_ACEOF
13294/* confdefs.h. */
13295_ACEOF
13296cat confdefs.h >>conftest.$ac_ext
13297cat >>conftest.$ac_ext <<_ACEOF
13298/* end confdefs.h. */
13299#include <$ac_header>
13300_ACEOF
13301if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13302 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13303 ac_status=$?
13304 grep -v '^ *+' conftest.er1 >conftest.err
13305 rm -f conftest.er1
13306 cat conftest.err >&5
13307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13308 (exit $ac_status); } >/dev/null; then
13309 if test -s conftest.err; then
13310 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 13311 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
13312 else
13313 ac_cpp_err=
13314 fi
13315else
13316 ac_cpp_err=yes
13317fi
13318if test -z "$ac_cpp_err"; then
13319 ac_header_preproc=yes
13320else
13321 echo "$as_me: failed program was:" >&5
13322sed 's/^/| /' conftest.$ac_ext >&5
13323
13324 ac_header_preproc=no
13325fi
13326rm -f conftest.err conftest.$ac_ext
13327echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13328echo "${ECHO_T}$ac_header_preproc" >&6
13329
13330# So? What about this header?
ac1cb8d3
VS
13331case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13332 yes:no: )
a848cd7e
SC
13333 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13334echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
13335 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13336echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13337 ac_header_preproc=yes
a848cd7e 13338 ;;
ac1cb8d3 13339 no:yes:* )
a848cd7e
SC
13340 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13341echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
13342 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13343echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13344 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13345echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13346 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13347echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
13348 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13349echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
13350 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13351echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
13352 (
13353 cat <<\_ASBOX
ac1cb8d3
VS
13354## ----------------------------------------- ##
13355## Report this to wx-dev@lists.wxwidgets.org ##
13356## ----------------------------------------- ##
a848cd7e
SC
13357_ASBOX
13358 ) |
13359 sed "s/^/$as_me: WARNING: /" >&2
13360 ;;
13361esac
13362echo "$as_me:$LINENO: checking for $ac_header" >&5
13363echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13364if eval "test \"\${$as_ac_Header+set}\" = set"; then
13365 echo $ECHO_N "(cached) $ECHO_C" >&6
13366else
ac1cb8d3 13367 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
13368fi
13369echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13370echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13371
13372fi
13373if test `eval echo '${'$as_ac_Header'}'` = yes; then
13374 cat >>confdefs.h <<_ACEOF
13375#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13376_ACEOF
13377
13378fi
13379
13380done
13381
13382
13383for ac_header in wchar.h
13384do
13385as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13386if eval "test \"\${$as_ac_Header+set}\" = set"; then
13387 echo "$as_me:$LINENO: checking for $ac_header" >&5
13388echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13389if eval "test \"\${$as_ac_Header+set}\" = set"; then
13390 echo $ECHO_N "(cached) $ECHO_C" >&6
13391fi
13392echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13393echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13394else
13395 # Is the header compilable?
13396echo "$as_me:$LINENO: checking $ac_header usability" >&5
13397echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13398cat >conftest.$ac_ext <<_ACEOF
13399/* confdefs.h. */
13400_ACEOF
13401cat confdefs.h >>conftest.$ac_ext
13402cat >>conftest.$ac_ext <<_ACEOF
13403/* end confdefs.h. */
13404$ac_includes_default
13405#include <$ac_header>
13406_ACEOF
13407rm -f conftest.$ac_objext
13408if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 13409 (eval $ac_compile) 2>conftest.er1
a848cd7e 13410 ac_status=$?
ac1cb8d3
VS
13411 grep -v '^ *+' conftest.er1 >conftest.err
13412 rm -f conftest.er1
13413 cat conftest.err >&5
a848cd7e
SC
13414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13415 (exit $ac_status); } &&
17a7bf57 13416 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
13417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13418 (eval $ac_try) 2>&5
13419 ac_status=$?
13420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13421 (exit $ac_status); }; } &&
13422 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
13423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13424 (eval $ac_try) 2>&5
13425 ac_status=$?
13426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13427 (exit $ac_status); }; }; then
13428 ac_header_compiler=yes
13429else
13430 echo "$as_me: failed program was:" >&5
13431sed 's/^/| /' conftest.$ac_ext >&5
13432
13433ac_header_compiler=no
13434fi
ac1cb8d3 13435rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
13436echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13437echo "${ECHO_T}$ac_header_compiler" >&6
13438
13439# Is the header present?
13440echo "$as_me:$LINENO: checking $ac_header presence" >&5
13441echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13442cat >conftest.$ac_ext <<_ACEOF
13443/* confdefs.h. */
13444_ACEOF
13445cat confdefs.h >>conftest.$ac_ext
13446cat >>conftest.$ac_ext <<_ACEOF
13447/* end confdefs.h. */
13448#include <$ac_header>
13449_ACEOF
13450if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13451 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13452 ac_status=$?
13453 grep -v '^ *+' conftest.er1 >conftest.err
13454 rm -f conftest.er1
13455 cat conftest.err >&5
13456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13457 (exit $ac_status); } >/dev/null; then
13458 if test -s conftest.err; then
13459 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 13460 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
13461 else
13462 ac_cpp_err=
13463 fi
13464else
13465 ac_cpp_err=yes
13466fi
13467if test -z "$ac_cpp_err"; then
13468 ac_header_preproc=yes
13469else
13470 echo "$as_me: failed program was:" >&5
13471sed 's/^/| /' conftest.$ac_ext >&5
13472
13473 ac_header_preproc=no
13474fi
13475rm -f conftest.err conftest.$ac_ext
13476echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13477echo "${ECHO_T}$ac_header_preproc" >&6
13478
13479# So? What about this header?
ac1cb8d3
VS
13480case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13481 yes:no: )
a848cd7e
SC
13482 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13483echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
13484 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13485echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13486 ac_header_preproc=yes
a848cd7e 13487 ;;
ac1cb8d3 13488 no:yes:* )
a848cd7e
SC
13489 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13490echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
13491 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13492echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13493 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13494echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13495 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13496echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
13497 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13498echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
13499 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13500echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
13501 (
13502 cat <<\_ASBOX
ac1cb8d3
VS
13503## ----------------------------------------- ##
13504## Report this to wx-dev@lists.wxwidgets.org ##
13505## ----------------------------------------- ##
a848cd7e
SC
13506_ASBOX
13507 ) |
13508 sed "s/^/$as_me: WARNING: /" >&2
13509 ;;
13510esac
13511echo "$as_me:$LINENO: checking for $ac_header" >&5
13512echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13513if eval "test \"\${$as_ac_Header+set}\" = set"; then
13514 echo $ECHO_N "(cached) $ECHO_C" >&6
13515else
ac1cb8d3 13516 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
13517fi
13518echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13519echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13520
13521fi
13522if test `eval echo '${'$as_ac_Header'}'` = yes; then
13523 cat >>confdefs.h <<_ACEOF
13524#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13525_ACEOF
13526
13527fi
13528
13529done
13530
13531
13532if test "$ac_cv_header_wchar_h" != "yes"; then
13533
13534for ac_header in wcstr.h
13535do
13536as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13537if eval "test \"\${$as_ac_Header+set}\" = set"; then
13538 echo "$as_me:$LINENO: checking for $ac_header" >&5
13539echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13540if eval "test \"\${$as_ac_Header+set}\" = set"; then
13541 echo $ECHO_N "(cached) $ECHO_C" >&6
13542fi
13543echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13544echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13545else
13546 # Is the header compilable?
13547echo "$as_me:$LINENO: checking $ac_header usability" >&5
13548echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13549cat >conftest.$ac_ext <<_ACEOF
13550/* confdefs.h. */
13551_ACEOF
13552cat confdefs.h >>conftest.$ac_ext
13553cat >>conftest.$ac_ext <<_ACEOF
13554/* end confdefs.h. */
13555$ac_includes_default
13556#include <$ac_header>
13557_ACEOF
13558rm -f conftest.$ac_objext
13559if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 13560 (eval $ac_compile) 2>conftest.er1
a848cd7e 13561 ac_status=$?
ac1cb8d3
VS
13562 grep -v '^ *+' conftest.er1 >conftest.err
13563 rm -f conftest.er1
13564 cat conftest.err >&5
a848cd7e
SC
13565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13566 (exit $ac_status); } &&
17a7bf57 13567 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
13568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13569 (eval $ac_try) 2>&5
13570 ac_status=$?
13571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13572 (exit $ac_status); }; } &&
13573 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
13574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13575 (eval $ac_try) 2>&5
13576 ac_status=$?
13577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13578 (exit $ac_status); }; }; then
13579 ac_header_compiler=yes
13580else
13581 echo "$as_me: failed program was:" >&5
13582sed 's/^/| /' conftest.$ac_ext >&5
13583
13584ac_header_compiler=no
13585fi
ac1cb8d3 13586rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
13587echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13588echo "${ECHO_T}$ac_header_compiler" >&6
13589
13590# Is the header present?
13591echo "$as_me:$LINENO: checking $ac_header presence" >&5
13592echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13593cat >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 <$ac_header>
13600_ACEOF
13601if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13602 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13603 ac_status=$?
13604 grep -v '^ *+' conftest.er1 >conftest.err
13605 rm -f conftest.er1
13606 cat conftest.err >&5
13607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13608 (exit $ac_status); } >/dev/null; then
13609 if test -s conftest.err; then
13610 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 13611 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
13612 else
13613 ac_cpp_err=
13614 fi
13615else
13616 ac_cpp_err=yes
13617fi
13618if test -z "$ac_cpp_err"; then
13619 ac_header_preproc=yes
13620else
13621 echo "$as_me: failed program was:" >&5
13622sed 's/^/| /' conftest.$ac_ext >&5
13623
13624 ac_header_preproc=no
13625fi
13626rm -f conftest.err conftest.$ac_ext
13627echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13628echo "${ECHO_T}$ac_header_preproc" >&6
13629
13630# So? What about this header?
ac1cb8d3
VS
13631case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13632 yes:no: )
a848cd7e
SC
13633 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13634echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
13635 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13636echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13637 ac_header_preproc=yes
a848cd7e 13638 ;;
ac1cb8d3 13639 no:yes:* )
a848cd7e
SC
13640 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13641echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
13642 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13643echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13644 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13645echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13646 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13647echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
13648 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13649echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
13650 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13651echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
13652 (
13653 cat <<\_ASBOX
ac1cb8d3
VS
13654## ----------------------------------------- ##
13655## Report this to wx-dev@lists.wxwidgets.org ##
13656## ----------------------------------------- ##
a848cd7e
SC
13657_ASBOX
13658 ) |
13659 sed "s/^/$as_me: WARNING: /" >&2
13660 ;;
13661esac
13662echo "$as_me:$LINENO: checking for $ac_header" >&5
13663echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13664if eval "test \"\${$as_ac_Header+set}\" = set"; then
13665 echo $ECHO_N "(cached) $ECHO_C" >&6
13666else
ac1cb8d3 13667 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
13668fi
13669echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13670echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13671
13672fi
13673if test `eval echo '${'$as_ac_Header'}'` = yes; then
13674 cat >>confdefs.h <<_ACEOF
13675#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13676_ACEOF
13677
13678fi
13679
13680done
13681
13682fi
13683
13684
13685for ac_header in fnmatch.h
13686do
13687as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13688if eval "test \"\${$as_ac_Header+set}\" = set"; then
13689 echo "$as_me:$LINENO: checking for $ac_header" >&5
13690echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13691if eval "test \"\${$as_ac_Header+set}\" = set"; then
13692 echo $ECHO_N "(cached) $ECHO_C" >&6
13693fi
13694echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13695echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13696else
13697 # Is the header compilable?
13698echo "$as_me:$LINENO: checking $ac_header usability" >&5
13699echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13700cat >conftest.$ac_ext <<_ACEOF
13701/* confdefs.h. */
13702_ACEOF
13703cat confdefs.h >>conftest.$ac_ext
13704cat >>conftest.$ac_ext <<_ACEOF
13705/* end confdefs.h. */
13706$ac_includes_default
13707#include <$ac_header>
13708_ACEOF
13709rm -f conftest.$ac_objext
13710if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 13711 (eval $ac_compile) 2>conftest.er1
a848cd7e 13712 ac_status=$?
ac1cb8d3
VS
13713 grep -v '^ *+' conftest.er1 >conftest.err
13714 rm -f conftest.er1
13715 cat conftest.err >&5
a848cd7e
SC
13716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13717 (exit $ac_status); } &&
17a7bf57 13718 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
13719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13720 (eval $ac_try) 2>&5
13721 ac_status=$?
13722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13723 (exit $ac_status); }; } &&
13724 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
13725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13726 (eval $ac_try) 2>&5
13727 ac_status=$?
13728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13729 (exit $ac_status); }; }; then
13730 ac_header_compiler=yes
13731else
13732 echo "$as_me: failed program was:" >&5
13733sed 's/^/| /' conftest.$ac_ext >&5
13734
13735ac_header_compiler=no
13736fi
ac1cb8d3 13737rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
13738echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13739echo "${ECHO_T}$ac_header_compiler" >&6
13740
13741# Is the header present?
13742echo "$as_me:$LINENO: checking $ac_header presence" >&5
13743echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13744cat >conftest.$ac_ext <<_ACEOF
13745/* confdefs.h. */
13746_ACEOF
13747cat confdefs.h >>conftest.$ac_ext
13748cat >>conftest.$ac_ext <<_ACEOF
13749/* end confdefs.h. */
13750#include <$ac_header>
13751_ACEOF
13752if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13753 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13754 ac_status=$?
13755 grep -v '^ *+' conftest.er1 >conftest.err
13756 rm -f conftest.er1
13757 cat conftest.err >&5
13758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13759 (exit $ac_status); } >/dev/null; then
13760 if test -s conftest.err; then
13761 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 13762 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
13763 else
13764 ac_cpp_err=
13765 fi
13766else
13767 ac_cpp_err=yes
13768fi
13769if test -z "$ac_cpp_err"; then
13770 ac_header_preproc=yes
13771else
13772 echo "$as_me: failed program was:" >&5
13773sed 's/^/| /' conftest.$ac_ext >&5
13774
13775 ac_header_preproc=no
13776fi
13777rm -f conftest.err conftest.$ac_ext
13778echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13779echo "${ECHO_T}$ac_header_preproc" >&6
13780
13781# So? What about this header?
ac1cb8d3
VS
13782case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13783 yes:no: )
a848cd7e
SC
13784 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13785echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
13786 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13787echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13788 ac_header_preproc=yes
a848cd7e 13789 ;;
ac1cb8d3 13790 no:yes:* )
a848cd7e
SC
13791 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13792echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
13793 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13794echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13795 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13796echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13797 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13798echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
13799 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13800echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
13801 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13802echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
13803 (
13804 cat <<\_ASBOX
ac1cb8d3
VS
13805## ----------------------------------------- ##
13806## Report this to wx-dev@lists.wxwidgets.org ##
13807## ----------------------------------------- ##
a848cd7e
SC
13808_ASBOX
13809 ) |
13810 sed "s/^/$as_me: WARNING: /" >&2
13811 ;;
13812esac
13813echo "$as_me:$LINENO: checking for $ac_header" >&5
13814echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13815if eval "test \"\${$as_ac_Header+set}\" = set"; then
13816 echo $ECHO_N "(cached) $ECHO_C" >&6
13817else
ac1cb8d3 13818 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
13819fi
13820echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13821echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13822
13823fi
13824if test `eval echo '${'$as_ac_Header'}'` = yes; then
13825 cat >>confdefs.h <<_ACEOF
13826#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13827_ACEOF
13828
13829fi
13830
13831done
13832
13833
13834if test "x$ac_cv_header_fnmatch_h" = "xyes"; then
13835
13836for ac_func in fnmatch
13837do
13838as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13839echo "$as_me:$LINENO: checking for $ac_func" >&5
13840echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13841if eval "test \"\${$as_ac_var+set}\" = set"; then
13842 echo $ECHO_N "(cached) $ECHO_C" >&6
13843else
13844 cat >conftest.$ac_ext <<_ACEOF
13845/* confdefs.h. */
13846_ACEOF
13847cat confdefs.h >>conftest.$ac_ext
13848cat >>conftest.$ac_ext <<_ACEOF
13849/* end confdefs.h. */
ac1cb8d3
VS
13850/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13851 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13852#define $ac_func innocuous_$ac_func
13853
a848cd7e
SC
13854/* System header to define __stub macros and hopefully few prototypes,
13855 which can conflict with char $ac_func (); below.
13856 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13857 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 13858
a848cd7e
SC
13859#ifdef __STDC__
13860# include <limits.h>
13861#else
13862# include <assert.h>
13863#endif
ac1cb8d3
VS
13864
13865#undef $ac_func
13866
a848cd7e
SC
13867/* Override any gcc2 internal prototype to avoid an error. */
13868#ifdef __cplusplus
13869extern "C"
13870{
13871#endif
13872/* We use char because int might match the return type of a gcc2
13873 builtin and then its argument prototype would still apply. */
13874char $ac_func ();
13875/* The GNU C library defines this for functions which it implements
13876 to always fail with ENOSYS. Some functions are actually named
13877 something starting with __ and the normal name is an alias. */
13878#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13879choke me
13880#else
13881char (*f) () = $ac_func;
13882#endif
13883#ifdef __cplusplus
13884}
13885#endif
13886
13887int
13888main ()
13889{
13890return f != $ac_func;
13891 ;
13892 return 0;
13893}
13894_ACEOF
13895rm -f conftest.$ac_objext conftest$ac_exeext
13896if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 13897 (eval $ac_link) 2>conftest.er1
a848cd7e 13898 ac_status=$?
ac1cb8d3
VS
13899 grep -v '^ *+' conftest.er1 >conftest.err
13900 rm -f conftest.er1
13901 cat conftest.err >&5
a848cd7e
SC
13902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13903 (exit $ac_status); } &&
17a7bf57 13904 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
13905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13906 (eval $ac_try) 2>&5
13907 ac_status=$?
13908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13909 (exit $ac_status); }; } &&
13910 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
13911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13912 (eval $ac_try) 2>&5
13913 ac_status=$?
13914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13915 (exit $ac_status); }; }; then
13916 eval "$as_ac_var=yes"
13917else
13918 echo "$as_me: failed program was:" >&5
13919sed 's/^/| /' conftest.$ac_ext >&5
13920
13921eval "$as_ac_var=no"
13922fi
ac1cb8d3
VS
13923rm -f conftest.err conftest.$ac_objext \
13924 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
13925fi
13926echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13927echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13928if test `eval echo '${'$as_ac_var'}'` = yes; then
13929 cat >>confdefs.h <<_ACEOF
13930#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13931_ACEOF
13932
13933fi
13934done
13935
13936fi
13937
13938
13939for ac_header in langinfo.h
13940do
13941as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13942if eval "test \"\${$as_ac_Header+set}\" = set"; then
13943 echo "$as_me:$LINENO: checking for $ac_header" >&5
13944echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13945if eval "test \"\${$as_ac_Header+set}\" = set"; then
13946 echo $ECHO_N "(cached) $ECHO_C" >&6
13947fi
13948echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13949echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13950else
13951 # Is the header compilable?
13952echo "$as_me:$LINENO: checking $ac_header usability" >&5
13953echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13954cat >conftest.$ac_ext <<_ACEOF
13955/* confdefs.h. */
13956_ACEOF
13957cat confdefs.h >>conftest.$ac_ext
13958cat >>conftest.$ac_ext <<_ACEOF
13959/* end confdefs.h. */
13960$ac_includes_default
13961#include <$ac_header>
13962_ACEOF
13963rm -f conftest.$ac_objext
13964if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 13965 (eval $ac_compile) 2>conftest.er1
a848cd7e 13966 ac_status=$?
ac1cb8d3
VS
13967 grep -v '^ *+' conftest.er1 >conftest.err
13968 rm -f conftest.er1
13969 cat conftest.err >&5
a848cd7e
SC
13970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13971 (exit $ac_status); } &&
17a7bf57 13972 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
13973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13974 (eval $ac_try) 2>&5
13975 ac_status=$?
13976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13977 (exit $ac_status); }; } &&
13978 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
13979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13980 (eval $ac_try) 2>&5
13981 ac_status=$?
13982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13983 (exit $ac_status); }; }; then
13984 ac_header_compiler=yes
13985else
13986 echo "$as_me: failed program was:" >&5
13987sed 's/^/| /' conftest.$ac_ext >&5
13988
13989ac_header_compiler=no
13990fi
ac1cb8d3 13991rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
13992echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13993echo "${ECHO_T}$ac_header_compiler" >&6
13994
13995# Is the header present?
13996echo "$as_me:$LINENO: checking $ac_header presence" >&5
13997echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13998cat >conftest.$ac_ext <<_ACEOF
13999/* confdefs.h. */
14000_ACEOF
14001cat confdefs.h >>conftest.$ac_ext
14002cat >>conftest.$ac_ext <<_ACEOF
14003/* end confdefs.h. */
14004#include <$ac_header>
14005_ACEOF
14006if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14007 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14008 ac_status=$?
14009 grep -v '^ *+' conftest.er1 >conftest.err
14010 rm -f conftest.er1
14011 cat conftest.err >&5
14012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14013 (exit $ac_status); } >/dev/null; then
14014 if test -s conftest.err; then
14015 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 14016 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
14017 else
14018 ac_cpp_err=
14019 fi
14020else
14021 ac_cpp_err=yes
14022fi
14023if test -z "$ac_cpp_err"; then
14024 ac_header_preproc=yes
14025else
14026 echo "$as_me: failed program was:" >&5
14027sed 's/^/| /' conftest.$ac_ext >&5
14028
14029 ac_header_preproc=no
14030fi
14031rm -f conftest.err conftest.$ac_ext
14032echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14033echo "${ECHO_T}$ac_header_preproc" >&6
14034
14035# So? What about this header?
ac1cb8d3
VS
14036case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14037 yes:no: )
a848cd7e
SC
14038 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14039echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
14040 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14041echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14042 ac_header_preproc=yes
a848cd7e 14043 ;;
ac1cb8d3 14044 no:yes:* )
a848cd7e
SC
14045 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14046echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
14047 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14048echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14049 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14050echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14051 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14052echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
14053 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14054echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
14055 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14056echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
14057 (
14058 cat <<\_ASBOX
ac1cb8d3
VS
14059## ----------------------------------------- ##
14060## Report this to wx-dev@lists.wxwidgets.org ##
14061## ----------------------------------------- ##
a848cd7e
SC
14062_ASBOX
14063 ) |
14064 sed "s/^/$as_me: WARNING: /" >&2
14065 ;;
14066esac
14067echo "$as_me:$LINENO: checking for $ac_header" >&5
14068echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14069if eval "test \"\${$as_ac_Header+set}\" = set"; then
14070 echo $ECHO_N "(cached) $ECHO_C" >&6
14071else
ac1cb8d3 14072 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
14073fi
14074echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14075echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14076
14077fi
14078if test `eval echo '${'$as_ac_Header'}'` = yes; then
14079 cat >>confdefs.h <<_ACEOF
14080#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14081_ACEOF
14082
14083fi
14084
14085done
14086
14087
14088case "${host}" in
14089 *-pc-os2_emx | *-pc-os2-emx )
14090 if test $ac_cv_header_langinfo_h = "yes"; then
14091 LIBS="$LIBS -lintl"
14092 fi
14093 ;;
14094esac
14095
14096if test "$wxUSE_GUI" = "yes"; then
14097 if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_PM" != 1; then
14098
14099for ac_header in X11/Xlib.h
14100do
14101as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14102if eval "test \"\${$as_ac_Header+set}\" = set"; then
14103 echo "$as_me:$LINENO: checking for $ac_header" >&5
14104echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14105if eval "test \"\${$as_ac_Header+set}\" = set"; then
14106 echo $ECHO_N "(cached) $ECHO_C" >&6
14107fi
14108echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14109echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14110else
14111 # Is the header compilable?
14112echo "$as_me:$LINENO: checking $ac_header usability" >&5
14113echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14114cat >conftest.$ac_ext <<_ACEOF
14115/* confdefs.h. */
14116_ACEOF
14117cat confdefs.h >>conftest.$ac_ext
14118cat >>conftest.$ac_ext <<_ACEOF
14119/* end confdefs.h. */
14120$ac_includes_default
14121#include <$ac_header>
14122_ACEOF
14123rm -f conftest.$ac_objext
14124if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14125 (eval $ac_compile) 2>conftest.er1
a848cd7e 14126 ac_status=$?
ac1cb8d3
VS
14127 grep -v '^ *+' conftest.er1 >conftest.err
14128 rm -f conftest.er1
14129 cat conftest.err >&5
a848cd7e
SC
14130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14131 (exit $ac_status); } &&
17a7bf57 14132 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
14133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14134 (eval $ac_try) 2>&5
14135 ac_status=$?
14136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14137 (exit $ac_status); }; } &&
14138 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14140 (eval $ac_try) 2>&5
14141 ac_status=$?
14142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14143 (exit $ac_status); }; }; then
14144 ac_header_compiler=yes
14145else
14146 echo "$as_me: failed program was:" >&5
14147sed 's/^/| /' conftest.$ac_ext >&5
14148
14149ac_header_compiler=no
14150fi
ac1cb8d3 14151rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14152echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14153echo "${ECHO_T}$ac_header_compiler" >&6
14154
14155# Is the header present?
14156echo "$as_me:$LINENO: checking $ac_header presence" >&5
14157echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14158cat >conftest.$ac_ext <<_ACEOF
14159/* confdefs.h. */
14160_ACEOF
14161cat confdefs.h >>conftest.$ac_ext
14162cat >>conftest.$ac_ext <<_ACEOF
14163/* end confdefs.h. */
14164#include <$ac_header>
14165_ACEOF
14166if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14167 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14168 ac_status=$?
14169 grep -v '^ *+' conftest.er1 >conftest.err
14170 rm -f conftest.er1
14171 cat conftest.err >&5
14172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14173 (exit $ac_status); } >/dev/null; then
14174 if test -s conftest.err; then
14175 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 14176 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
14177 else
14178 ac_cpp_err=
14179 fi
14180else
14181 ac_cpp_err=yes
14182fi
14183if test -z "$ac_cpp_err"; then
14184 ac_header_preproc=yes
14185else
14186 echo "$as_me: failed program was:" >&5
14187sed 's/^/| /' conftest.$ac_ext >&5
14188
14189 ac_header_preproc=no
14190fi
14191rm -f conftest.err conftest.$ac_ext
14192echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14193echo "${ECHO_T}$ac_header_preproc" >&6
14194
14195# So? What about this header?
ac1cb8d3
VS
14196case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14197 yes:no: )
a848cd7e
SC
14198 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14199echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
14200 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14201echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14202 ac_header_preproc=yes
a848cd7e 14203 ;;
ac1cb8d3 14204 no:yes:* )
a848cd7e
SC
14205 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14206echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
14207 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14208echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14209 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14210echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14211 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14212echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
14213 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14214echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
14215 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14216echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
14217 (
14218 cat <<\_ASBOX
ac1cb8d3
VS
14219## ----------------------------------------- ##
14220## Report this to wx-dev@lists.wxwidgets.org ##
14221## ----------------------------------------- ##
a848cd7e
SC
14222_ASBOX
14223 ) |
14224 sed "s/^/$as_me: WARNING: /" >&2
14225 ;;
14226esac
14227echo "$as_me:$LINENO: checking for $ac_header" >&5
14228echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14229if eval "test \"\${$as_ac_Header+set}\" = set"; then
14230 echo $ECHO_N "(cached) $ECHO_C" >&6
14231else
ac1cb8d3 14232 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
14233fi
14234echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14235echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14236
14237fi
14238if test `eval echo '${'$as_ac_Header'}'` = yes; then
14239 cat >>confdefs.h <<_ACEOF
14240#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14241_ACEOF
14242
14243fi
14244
14245done
14246
14247
14248for ac_header in X11/XKBlib.h
14249do
14250as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14251echo "$as_me:$LINENO: checking for $ac_header" >&5
14252echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14253if eval "test \"\${$as_ac_Header+set}\" = set"; then
14254 echo $ECHO_N "(cached) $ECHO_C" >&6
14255else
14256 cat >conftest.$ac_ext <<_ACEOF
14257/* confdefs.h. */
14258_ACEOF
14259cat confdefs.h >>conftest.$ac_ext
14260cat >>conftest.$ac_ext <<_ACEOF
14261/* end confdefs.h. */
14262
14263 #if HAVE_X11_XLIB_H
14264 #include <X11/Xlib.h>
14265 #endif
14266
14267
14268#include <$ac_header>
14269_ACEOF
14270rm -f conftest.$ac_objext
14271if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14272 (eval $ac_compile) 2>conftest.er1
a848cd7e 14273 ac_status=$?
ac1cb8d3
VS
14274 grep -v '^ *+' conftest.er1 >conftest.err
14275 rm -f conftest.er1
14276 cat conftest.err >&5
a848cd7e
SC
14277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14278 (exit $ac_status); } &&
17a7bf57 14279 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
14280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14281 (eval $ac_try) 2>&5
14282 ac_status=$?
14283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14284 (exit $ac_status); }; } &&
14285 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14287 (eval $ac_try) 2>&5
14288 ac_status=$?
14289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14290 (exit $ac_status); }; }; then
14291 eval "$as_ac_Header=yes"
14292else
14293 echo "$as_me: failed program was:" >&5
14294sed 's/^/| /' conftest.$ac_ext >&5
14295
14296eval "$as_ac_Header=no"
14297fi
ac1cb8d3 14298rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14299fi
14300echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14301echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14302if test `eval echo '${'$as_ac_Header'}'` = yes; then
14303 cat >>confdefs.h <<_ACEOF
14304#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14305_ACEOF
14306
14307fi
14308
14309done
14310
14311 fi
14312fi
14313
14314
14315echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
14316echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
14317if test "${ac_cv_c_const+set}" = set; then
14318 echo $ECHO_N "(cached) $ECHO_C" >&6
14319else
14320 cat >conftest.$ac_ext <<_ACEOF
14321/* confdefs.h. */
14322_ACEOF
14323cat confdefs.h >>conftest.$ac_ext
14324cat >>conftest.$ac_ext <<_ACEOF
14325/* end confdefs.h. */
14326
14327int
14328main ()
14329{
14330/* FIXME: Include the comments suggested by Paul. */
14331#ifndef __cplusplus
14332 /* Ultrix mips cc rejects this. */
14333 typedef int charset[2];
14334 const charset x;
14335 /* SunOS 4.1.1 cc rejects this. */
14336 char const *const *ccp;
14337 char **p;
14338 /* NEC SVR4.0.2 mips cc rejects this. */
14339 struct point {int x, y;};
14340 static struct point const zero = {0,0};
14341 /* AIX XL C 1.02.0.0 rejects this.
14342 It does not let you subtract one const X* pointer from another in
14343 an arm of an if-expression whose if-part is not a constant
14344 expression */
14345 const char *g = "string";
14346 ccp = &g + (g ? g-g : 0);
14347 /* HPUX 7.0 cc rejects these. */
14348 ++ccp;
14349 p = (char**) ccp;
14350 ccp = (char const *const *) p;
14351 { /* SCO 3.2v4 cc rejects this. */
14352 char *t;
14353 char const *s = 0 ? (char *) 0 : (char const *) 0;
14354
14355 *t++ = 0;
14356 }
14357 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
14358 int x[] = {25, 17};
14359 const int *foo = &x[0];
14360 ++foo;
14361 }
14362 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
14363 typedef const int *iptr;
14364 iptr p = 0;
14365 ++p;
14366 }
14367 { /* AIX XL C 1.02.0.0 rejects this saying
14368 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
14369 struct s { int j; const int *ap[3]; };
14370 struct s *b; b->j = 5;
14371 }
14372 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
14373 const int foo = 10;
14374 }
14375#endif
14376
14377 ;
14378 return 0;
14379}
14380_ACEOF
14381rm -f conftest.$ac_objext
14382if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14383 (eval $ac_compile) 2>conftest.er1
a848cd7e 14384 ac_status=$?
ac1cb8d3
VS
14385 grep -v '^ *+' conftest.er1 >conftest.err
14386 rm -f conftest.er1
14387 cat conftest.err >&5
a848cd7e
SC
14388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14389 (exit $ac_status); } &&
17a7bf57 14390 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
14391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14392 (eval $ac_try) 2>&5
14393 ac_status=$?
14394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14395 (exit $ac_status); }; } &&
14396 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14398 (eval $ac_try) 2>&5
14399 ac_status=$?
14400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14401 (exit $ac_status); }; }; then
14402 ac_cv_c_const=yes
14403else
14404 echo "$as_me: failed program was:" >&5
14405sed 's/^/| /' conftest.$ac_ext >&5
14406
14407ac_cv_c_const=no
14408fi
ac1cb8d3 14409rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14410fi
14411echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
14412echo "${ECHO_T}$ac_cv_c_const" >&6
14413if test $ac_cv_c_const = no; then
14414
14415cat >>confdefs.h <<\_ACEOF
14416#define const
14417_ACEOF
14418
14419fi
14420
14421echo "$as_me:$LINENO: checking for inline" >&5
14422echo $ECHO_N "checking for inline... $ECHO_C" >&6
14423if test "${ac_cv_c_inline+set}" = set; then
14424 echo $ECHO_N "(cached) $ECHO_C" >&6
14425else
14426 ac_cv_c_inline=no
14427for ac_kw in inline __inline__ __inline; do
14428 cat >conftest.$ac_ext <<_ACEOF
14429/* confdefs.h. */
14430_ACEOF
14431cat confdefs.h >>conftest.$ac_ext
14432cat >>conftest.$ac_ext <<_ACEOF
14433/* end confdefs.h. */
14434#ifndef __cplusplus
14435typedef int foo_t;
14436static $ac_kw foo_t static_foo () {return 0; }
14437$ac_kw foo_t foo () {return 0; }
14438#endif
14439
14440_ACEOF
14441rm -f conftest.$ac_objext
14442if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14443 (eval $ac_compile) 2>conftest.er1
a848cd7e 14444 ac_status=$?
ac1cb8d3
VS
14445 grep -v '^ *+' conftest.er1 >conftest.err
14446 rm -f conftest.er1
14447 cat conftest.err >&5
a848cd7e
SC
14448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14449 (exit $ac_status); } &&
17a7bf57 14450 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
14451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14452 (eval $ac_try) 2>&5
14453 ac_status=$?
14454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14455 (exit $ac_status); }; } &&
14456 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14458 (eval $ac_try) 2>&5
14459 ac_status=$?
14460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14461 (exit $ac_status); }; }; then
14462 ac_cv_c_inline=$ac_kw; break
14463else
14464 echo "$as_me: failed program was:" >&5
14465sed 's/^/| /' conftest.$ac_ext >&5
14466
14467fi
ac1cb8d3 14468rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14469done
14470
14471fi
14472echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
14473echo "${ECHO_T}$ac_cv_c_inline" >&6
ac1cb8d3
VS
14474
14475
a848cd7e
SC
14476case $ac_cv_c_inline in
14477 inline | yes) ;;
ac1cb8d3
VS
14478 *)
14479 case $ac_cv_c_inline in
14480 no) ac_val=;;
14481 *) ac_val=$ac_cv_c_inline;;
14482 esac
14483 cat >>confdefs.h <<_ACEOF
14484#ifndef __cplusplus
14485#define inline $ac_val
14486#endif
de59c161 14487_ACEOF
ac1cb8d3 14488 ;;
a848cd7e
SC
14489esac
14490
14491
14492echo "$as_me:$LINENO: checking for char" >&5
14493echo $ECHO_N "checking for char... $ECHO_C" >&6
14494if test "${ac_cv_type_char+set}" = set; then
14495 echo $ECHO_N "(cached) $ECHO_C" >&6
14496else
14497 cat >conftest.$ac_ext <<_ACEOF
14498/* confdefs.h. */
14499_ACEOF
14500cat confdefs.h >>conftest.$ac_ext
14501cat >>conftest.$ac_ext <<_ACEOF
14502/* end confdefs.h. */
14503$ac_includes_default
14504int
14505main ()
14506{
14507if ((char *) 0)
14508 return 0;
14509if (sizeof (char))
14510 return 0;
14511 ;
14512 return 0;
14513}
14514_ACEOF
14515rm -f conftest.$ac_objext
14516if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14517 (eval $ac_compile) 2>conftest.er1
a848cd7e 14518 ac_status=$?
ac1cb8d3
VS
14519 grep -v '^ *+' conftest.er1 >conftest.err
14520 rm -f conftest.er1
14521 cat conftest.err >&5
a848cd7e
SC
14522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14523 (exit $ac_status); } &&
17a7bf57 14524 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
14525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14526 (eval $ac_try) 2>&5
14527 ac_status=$?
14528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14529 (exit $ac_status); }; } &&
14530 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14532 (eval $ac_try) 2>&5
14533 ac_status=$?
14534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14535 (exit $ac_status); }; }; then
14536 ac_cv_type_char=yes
14537else
14538 echo "$as_me: failed program was:" >&5
14539sed 's/^/| /' conftest.$ac_ext >&5
14540
14541ac_cv_type_char=no
14542fi
ac1cb8d3 14543rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14544fi
14545echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
14546echo "${ECHO_T}$ac_cv_type_char" >&6
14547
14548echo "$as_me:$LINENO: checking size of char" >&5
14549echo $ECHO_N "checking size of char... $ECHO_C" >&6
14550if test "${ac_cv_sizeof_char+set}" = set; then
14551 echo $ECHO_N "(cached) $ECHO_C" >&6
14552else
14553 if test "$ac_cv_type_char" = yes; then
14554 # The cast to unsigned long works around a bug in the HP C Compiler
14555 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14556 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14557 # This bug is HP SR number 8606223364.
14558 if test "$cross_compiling" = yes; then
14559 # Depending upon the size, compute the lo and hi bounds.
14560cat >conftest.$ac_ext <<_ACEOF
14561/* confdefs.h. */
14562_ACEOF
14563cat confdefs.h >>conftest.$ac_ext
14564cat >>conftest.$ac_ext <<_ACEOF
14565/* end confdefs.h. */
14566$ac_includes_default
14567int
14568main ()
14569{
14570static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
14571test_array [0] = 0
14572
14573 ;
14574 return 0;
14575}
14576_ACEOF
14577rm -f conftest.$ac_objext
14578if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14579 (eval $ac_compile) 2>conftest.er1
a848cd7e 14580 ac_status=$?
ac1cb8d3
VS
14581 grep -v '^ *+' conftest.er1 >conftest.err
14582 rm -f conftest.er1
14583 cat conftest.err >&5
a848cd7e
SC
14584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14585 (exit $ac_status); } &&
17a7bf57 14586 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
14587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14588 (eval $ac_try) 2>&5
14589 ac_status=$?
14590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14591 (exit $ac_status); }; } &&
14592 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14594 (eval $ac_try) 2>&5
14595 ac_status=$?
14596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14597 (exit $ac_status); }; }; then
14598 ac_lo=0 ac_mid=0
14599 while :; do
14600 cat >conftest.$ac_ext <<_ACEOF
14601/* confdefs.h. */
14602_ACEOF
14603cat confdefs.h >>conftest.$ac_ext
14604cat >>conftest.$ac_ext <<_ACEOF
14605/* end confdefs.h. */
14606$ac_includes_default
14607int
14608main ()
14609{
14610static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
14611test_array [0] = 0
14612
14613 ;
14614 return 0;
14615}
14616_ACEOF
14617rm -f conftest.$ac_objext
14618if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14619 (eval $ac_compile) 2>conftest.er1
a848cd7e 14620 ac_status=$?
ac1cb8d3
VS
14621 grep -v '^ *+' conftest.er1 >conftest.err
14622 rm -f conftest.er1
14623 cat conftest.err >&5
a848cd7e
SC
14624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14625 (exit $ac_status); } &&
17a7bf57 14626 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
14627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14628 (eval $ac_try) 2>&5
14629 ac_status=$?
14630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14631 (exit $ac_status); }; } &&
14632 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14634 (eval $ac_try) 2>&5
14635 ac_status=$?
14636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14637 (exit $ac_status); }; }; then
14638 ac_hi=$ac_mid; break
14639else
14640 echo "$as_me: failed program was:" >&5
14641sed 's/^/| /' conftest.$ac_ext >&5
14642
14643ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
14644 if test $ac_lo -le $ac_mid; then
14645 ac_lo= ac_hi=
14646 break
14647 fi
14648 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 14649fi
ac1cb8d3 14650rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14651 done
14652else
14653 echo "$as_me: failed program was:" >&5
14654sed 's/^/| /' conftest.$ac_ext >&5
14655
14656cat >conftest.$ac_ext <<_ACEOF
14657/* confdefs.h. */
14658_ACEOF
14659cat confdefs.h >>conftest.$ac_ext
14660cat >>conftest.$ac_ext <<_ACEOF
14661/* end confdefs.h. */
14662$ac_includes_default
14663int
14664main ()
14665{
14666static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
14667test_array [0] = 0
14668
14669 ;
14670 return 0;
14671}
14672_ACEOF
14673rm -f conftest.$ac_objext
14674if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14675 (eval $ac_compile) 2>conftest.er1
a848cd7e 14676 ac_status=$?
ac1cb8d3
VS
14677 grep -v '^ *+' conftest.er1 >conftest.err
14678 rm -f conftest.er1
14679 cat conftest.err >&5
a848cd7e
SC
14680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14681 (exit $ac_status); } &&
17a7bf57 14682 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
14683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14684 (eval $ac_try) 2>&5
14685 ac_status=$?
14686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14687 (exit $ac_status); }; } &&
14688 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14690 (eval $ac_try) 2>&5
14691 ac_status=$?
14692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14693 (exit $ac_status); }; }; then
14694 ac_hi=-1 ac_mid=-1
14695 while :; do
14696 cat >conftest.$ac_ext <<_ACEOF
14697/* confdefs.h. */
14698_ACEOF
14699cat confdefs.h >>conftest.$ac_ext
14700cat >>conftest.$ac_ext <<_ACEOF
14701/* end confdefs.h. */
14702$ac_includes_default
14703int
14704main ()
14705{
14706static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
14707test_array [0] = 0
14708
14709 ;
14710 return 0;
14711}
14712_ACEOF
14713rm -f conftest.$ac_objext
14714if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14715 (eval $ac_compile) 2>conftest.er1
a848cd7e 14716 ac_status=$?
ac1cb8d3
VS
14717 grep -v '^ *+' conftest.er1 >conftest.err
14718 rm -f conftest.er1
14719 cat conftest.err >&5
a848cd7e
SC
14720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14721 (exit $ac_status); } &&
17a7bf57 14722 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
14723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14724 (eval $ac_try) 2>&5
14725 ac_status=$?
14726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14727 (exit $ac_status); }; } &&
14728 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14730 (eval $ac_try) 2>&5
14731 ac_status=$?
14732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14733 (exit $ac_status); }; }; then
14734 ac_lo=$ac_mid; break
14735else
14736 echo "$as_me: failed program was:" >&5
14737sed 's/^/| /' conftest.$ac_ext >&5
14738
14739ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
14740 if test $ac_mid -le $ac_hi; then
14741 ac_lo= ac_hi=
14742 break
14743 fi
14744 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 14745fi
ac1cb8d3 14746rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14747 done
14748else
14749 echo "$as_me: failed program was:" >&5
14750sed 's/^/| /' conftest.$ac_ext >&5
14751
14752ac_lo= ac_hi=
14753fi
ac1cb8d3 14754rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 14755fi
ac1cb8d3 14756rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14757# Binary search between lo and hi bounds.
14758while test "x$ac_lo" != "x$ac_hi"; do
14759 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14760 cat >conftest.$ac_ext <<_ACEOF
14761/* confdefs.h. */
14762_ACEOF
14763cat confdefs.h >>conftest.$ac_ext
14764cat >>conftest.$ac_ext <<_ACEOF
14765/* end confdefs.h. */
14766$ac_includes_default
14767int
14768main ()
14769{
14770static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
14771test_array [0] = 0
14772
14773 ;
14774 return 0;
14775}
14776_ACEOF
14777rm -f conftest.$ac_objext
14778if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14779 (eval $ac_compile) 2>conftest.er1
a848cd7e 14780 ac_status=$?
ac1cb8d3
VS
14781 grep -v '^ *+' conftest.er1 >conftest.err
14782 rm -f conftest.er1
14783 cat conftest.err >&5
a848cd7e
SC
14784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14785 (exit $ac_status); } &&
17a7bf57 14786 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
14787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14788 (eval $ac_try) 2>&5
14789 ac_status=$?
14790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14791 (exit $ac_status); }; } &&
14792 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14794 (eval $ac_try) 2>&5
14795 ac_status=$?
14796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14797 (exit $ac_status); }; }; then
14798 ac_hi=$ac_mid
14799else
14800 echo "$as_me: failed program was:" >&5
14801sed 's/^/| /' conftest.$ac_ext >&5
14802
14803ac_lo=`expr '(' $ac_mid ')' + 1`
14804fi
ac1cb8d3 14805rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14806done
14807case $ac_lo in
14808?*) ac_cv_sizeof_char=$ac_lo;;
14809'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
14810See \`config.log' for more details." >&5
14811echo "$as_me: error: cannot compute sizeof (char), 77
14812See \`config.log' for more details." >&2;}
14813 { (exit 1); exit 1; }; } ;;
14814esac
14815else
14816 if test "$cross_compiling" = yes; then
17a7bf57
RL
14817 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
14818echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
14819 { (exit 1); exit 1; }; }
14820else
14821 cat >conftest.$ac_ext <<_ACEOF
14822/* confdefs.h. */
14823_ACEOF
14824cat confdefs.h >>conftest.$ac_ext
14825cat >>conftest.$ac_ext <<_ACEOF
14826/* end confdefs.h. */
14827$ac_includes_default
14828long longval () { return (long) (sizeof (char)); }
14829unsigned long ulongval () { return (long) (sizeof (char)); }
14830#include <stdio.h>
14831#include <stdlib.h>
14832int
14833main ()
14834{
14835
14836 FILE *f = fopen ("conftest.val", "w");
14837 if (! f)
14838 exit (1);
14839 if (((long) (sizeof (char))) < 0)
14840 {
14841 long i = longval ();
14842 if (i != ((long) (sizeof (char))))
14843 exit (1);
14844 fprintf (f, "%ld\n", i);
14845 }
14846 else
14847 {
14848 unsigned long i = ulongval ();
14849 if (i != ((long) (sizeof (char))))
14850 exit (1);
14851 fprintf (f, "%lu\n", i);
14852 }
14853 exit (ferror (f) || fclose (f) != 0);
14854
14855 ;
14856 return 0;
14857}
14858_ACEOF
14859rm -f conftest$ac_exeext
14860if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14861 (eval $ac_link) 2>&5
14862 ac_status=$?
14863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14864 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14866 (eval $ac_try) 2>&5
14867 ac_status=$?
14868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14869 (exit $ac_status); }; }; then
14870 ac_cv_sizeof_char=`cat conftest.val`
14871else
14872 echo "$as_me: program exited with status $ac_status" >&5
14873echo "$as_me: failed program was:" >&5
14874sed 's/^/| /' conftest.$ac_ext >&5
14875
14876( exit $ac_status )
14877{ { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
14878See \`config.log' for more details." >&5
14879echo "$as_me: error: cannot compute sizeof (char), 77
14880See \`config.log' for more details." >&2;}
14881 { (exit 1); exit 1; }; }
14882fi
ac1cb8d3 14883rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14884fi
14885fi
14886rm -f conftest.val
14887else
14888 ac_cv_sizeof_char=0
14889fi
14890fi
14891echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
14892echo "${ECHO_T}$ac_cv_sizeof_char" >&6
14893cat >>confdefs.h <<_ACEOF
14894#define SIZEOF_CHAR $ac_cv_sizeof_char
14895_ACEOF
14896
14897
14898echo "$as_me:$LINENO: checking for short" >&5
14899echo $ECHO_N "checking for short... $ECHO_C" >&6
14900if test "${ac_cv_type_short+set}" = set; then
14901 echo $ECHO_N "(cached) $ECHO_C" >&6
14902else
14903 cat >conftest.$ac_ext <<_ACEOF
14904/* confdefs.h. */
14905_ACEOF
14906cat confdefs.h >>conftest.$ac_ext
14907cat >>conftest.$ac_ext <<_ACEOF
14908/* end confdefs.h. */
14909$ac_includes_default
14910int
14911main ()
14912{
14913if ((short *) 0)
14914 return 0;
14915if (sizeof (short))
14916 return 0;
14917 ;
14918 return 0;
14919}
14920_ACEOF
14921rm -f conftest.$ac_objext
14922if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14923 (eval $ac_compile) 2>conftest.er1
a848cd7e 14924 ac_status=$?
ac1cb8d3
VS
14925 grep -v '^ *+' conftest.er1 >conftest.err
14926 rm -f conftest.er1
14927 cat conftest.err >&5
a848cd7e
SC
14928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14929 (exit $ac_status); } &&
17a7bf57 14930 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
14931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14932 (eval $ac_try) 2>&5
14933 ac_status=$?
14934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14935 (exit $ac_status); }; } &&
14936 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14938 (eval $ac_try) 2>&5
14939 ac_status=$?
14940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14941 (exit $ac_status); }; }; then
14942 ac_cv_type_short=yes
14943else
14944 echo "$as_me: failed program was:" >&5
14945sed 's/^/| /' conftest.$ac_ext >&5
14946
14947ac_cv_type_short=no
14948fi
ac1cb8d3 14949rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14950fi
14951echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
14952echo "${ECHO_T}$ac_cv_type_short" >&6
14953
14954echo "$as_me:$LINENO: checking size of short" >&5
14955echo $ECHO_N "checking size of short... $ECHO_C" >&6
14956if test "${ac_cv_sizeof_short+set}" = set; then
14957 echo $ECHO_N "(cached) $ECHO_C" >&6
14958else
14959 if test "$ac_cv_type_short" = yes; then
14960 # The cast to unsigned long works around a bug in the HP C Compiler
14961 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14962 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14963 # This bug is HP SR number 8606223364.
14964 if test "$cross_compiling" = yes; then
14965 # Depending upon the size, compute the lo and hi bounds.
14966cat >conftest.$ac_ext <<_ACEOF
14967/* confdefs.h. */
14968_ACEOF
14969cat confdefs.h >>conftest.$ac_ext
14970cat >>conftest.$ac_ext <<_ACEOF
14971/* end confdefs.h. */
14972$ac_includes_default
14973int
14974main ()
14975{
14976static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
14977test_array [0] = 0
14978
14979 ;
14980 return 0;
14981}
14982_ACEOF
14983rm -f conftest.$ac_objext
14984if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14985 (eval $ac_compile) 2>conftest.er1
a848cd7e 14986 ac_status=$?
ac1cb8d3
VS
14987 grep -v '^ *+' conftest.er1 >conftest.err
14988 rm -f conftest.er1
14989 cat conftest.err >&5
a848cd7e
SC
14990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14991 (exit $ac_status); } &&
17a7bf57 14992 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
14993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14994 (eval $ac_try) 2>&5
14995 ac_status=$?
14996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14997 (exit $ac_status); }; } &&
14998 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15000 (eval $ac_try) 2>&5
15001 ac_status=$?
15002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15003 (exit $ac_status); }; }; then
15004 ac_lo=0 ac_mid=0
15005 while :; do
15006 cat >conftest.$ac_ext <<_ACEOF
15007/* confdefs.h. */
15008_ACEOF
15009cat confdefs.h >>conftest.$ac_ext
15010cat >>conftest.$ac_ext <<_ACEOF
15011/* end confdefs.h. */
15012$ac_includes_default
15013int
15014main ()
15015{
15016static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
15017test_array [0] = 0
15018
15019 ;
15020 return 0;
15021}
15022_ACEOF
15023rm -f conftest.$ac_objext
15024if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15025 (eval $ac_compile) 2>conftest.er1
a848cd7e 15026 ac_status=$?
ac1cb8d3
VS
15027 grep -v '^ *+' conftest.er1 >conftest.err
15028 rm -f conftest.er1
15029 cat conftest.err >&5
a848cd7e
SC
15030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15031 (exit $ac_status); } &&
17a7bf57 15032 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15034 (eval $ac_try) 2>&5
15035 ac_status=$?
15036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15037 (exit $ac_status); }; } &&
15038 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15040 (eval $ac_try) 2>&5
15041 ac_status=$?
15042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15043 (exit $ac_status); }; }; then
15044 ac_hi=$ac_mid; break
15045else
15046 echo "$as_me: failed program was:" >&5
15047sed 's/^/| /' conftest.$ac_ext >&5
15048
15049ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
15050 if test $ac_lo -le $ac_mid; then
15051 ac_lo= ac_hi=
15052 break
15053 fi
15054 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 15055fi
ac1cb8d3 15056rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15057 done
15058else
15059 echo "$as_me: failed program was:" >&5
15060sed 's/^/| /' conftest.$ac_ext >&5
15061
15062cat >conftest.$ac_ext <<_ACEOF
15063/* confdefs.h. */
15064_ACEOF
15065cat confdefs.h >>conftest.$ac_ext
15066cat >>conftest.$ac_ext <<_ACEOF
15067/* end confdefs.h. */
15068$ac_includes_default
15069int
15070main ()
15071{
15072static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
15073test_array [0] = 0
15074
15075 ;
15076 return 0;
15077}
15078_ACEOF
15079rm -f conftest.$ac_objext
15080if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15081 (eval $ac_compile) 2>conftest.er1
a848cd7e 15082 ac_status=$?
ac1cb8d3
VS
15083 grep -v '^ *+' conftest.er1 >conftest.err
15084 rm -f conftest.er1
15085 cat conftest.err >&5
a848cd7e
SC
15086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15087 (exit $ac_status); } &&
17a7bf57 15088 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15090 (eval $ac_try) 2>&5
15091 ac_status=$?
15092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15093 (exit $ac_status); }; } &&
15094 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15096 (eval $ac_try) 2>&5
15097 ac_status=$?
15098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15099 (exit $ac_status); }; }; then
15100 ac_hi=-1 ac_mid=-1
15101 while :; do
15102 cat >conftest.$ac_ext <<_ACEOF
15103/* confdefs.h. */
15104_ACEOF
15105cat confdefs.h >>conftest.$ac_ext
15106cat >>conftest.$ac_ext <<_ACEOF
15107/* end confdefs.h. */
15108$ac_includes_default
15109int
15110main ()
15111{
15112static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
15113test_array [0] = 0
15114
15115 ;
15116 return 0;
15117}
15118_ACEOF
15119rm -f conftest.$ac_objext
15120if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15121 (eval $ac_compile) 2>conftest.er1
a848cd7e 15122 ac_status=$?
ac1cb8d3
VS
15123 grep -v '^ *+' conftest.er1 >conftest.err
15124 rm -f conftest.er1
15125 cat conftest.err >&5
a848cd7e
SC
15126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15127 (exit $ac_status); } &&
17a7bf57 15128 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15130 (eval $ac_try) 2>&5
15131 ac_status=$?
15132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15133 (exit $ac_status); }; } &&
15134 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15136 (eval $ac_try) 2>&5
15137 ac_status=$?
15138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15139 (exit $ac_status); }; }; then
15140 ac_lo=$ac_mid; break
15141else
15142 echo "$as_me: failed program was:" >&5
15143sed 's/^/| /' conftest.$ac_ext >&5
15144
15145ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
15146 if test $ac_mid -le $ac_hi; then
15147 ac_lo= ac_hi=
15148 break
15149 fi
15150 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 15151fi
ac1cb8d3 15152rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15153 done
15154else
15155 echo "$as_me: failed program was:" >&5
15156sed 's/^/| /' conftest.$ac_ext >&5
15157
15158ac_lo= ac_hi=
15159fi
ac1cb8d3 15160rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 15161fi
ac1cb8d3 15162rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15163# Binary search between lo and hi bounds.
15164while test "x$ac_lo" != "x$ac_hi"; do
15165 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15166 cat >conftest.$ac_ext <<_ACEOF
15167/* confdefs.h. */
15168_ACEOF
15169cat confdefs.h >>conftest.$ac_ext
15170cat >>conftest.$ac_ext <<_ACEOF
15171/* end confdefs.h. */
15172$ac_includes_default
15173int
15174main ()
15175{
15176static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
15177test_array [0] = 0
15178
15179 ;
15180 return 0;
15181}
15182_ACEOF
15183rm -f conftest.$ac_objext
15184if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15185 (eval $ac_compile) 2>conftest.er1
a848cd7e 15186 ac_status=$?
ac1cb8d3
VS
15187 grep -v '^ *+' conftest.er1 >conftest.err
15188 rm -f conftest.er1
15189 cat conftest.err >&5
a848cd7e
SC
15190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15191 (exit $ac_status); } &&
17a7bf57 15192 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15194 (eval $ac_try) 2>&5
15195 ac_status=$?
15196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15197 (exit $ac_status); }; } &&
15198 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15200 (eval $ac_try) 2>&5
15201 ac_status=$?
15202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15203 (exit $ac_status); }; }; then
15204 ac_hi=$ac_mid
15205else
15206 echo "$as_me: failed program was:" >&5
15207sed 's/^/| /' conftest.$ac_ext >&5
15208
15209ac_lo=`expr '(' $ac_mid ')' + 1`
15210fi
ac1cb8d3 15211rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15212done
15213case $ac_lo in
15214?*) ac_cv_sizeof_short=$ac_lo;;
15215'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
15216See \`config.log' for more details." >&5
15217echo "$as_me: error: cannot compute sizeof (short), 77
15218See \`config.log' for more details." >&2;}
15219 { (exit 1); exit 1; }; } ;;
15220esac
15221else
15222 if test "$cross_compiling" = yes; then
17a7bf57
RL
15223 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
15224echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
15225 { (exit 1); exit 1; }; }
15226else
15227 cat >conftest.$ac_ext <<_ACEOF
15228/* confdefs.h. */
15229_ACEOF
15230cat confdefs.h >>conftest.$ac_ext
15231cat >>conftest.$ac_ext <<_ACEOF
15232/* end confdefs.h. */
15233$ac_includes_default
15234long longval () { return (long) (sizeof (short)); }
15235unsigned long ulongval () { return (long) (sizeof (short)); }
15236#include <stdio.h>
15237#include <stdlib.h>
15238int
15239main ()
15240{
15241
15242 FILE *f = fopen ("conftest.val", "w");
15243 if (! f)
15244 exit (1);
15245 if (((long) (sizeof (short))) < 0)
15246 {
15247 long i = longval ();
15248 if (i != ((long) (sizeof (short))))
15249 exit (1);
15250 fprintf (f, "%ld\n", i);
15251 }
15252 else
15253 {
15254 unsigned long i = ulongval ();
15255 if (i != ((long) (sizeof (short))))
15256 exit (1);
15257 fprintf (f, "%lu\n", i);
15258 }
15259 exit (ferror (f) || fclose (f) != 0);
15260
15261 ;
15262 return 0;
15263}
15264_ACEOF
15265rm -f conftest$ac_exeext
15266if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15267 (eval $ac_link) 2>&5
15268 ac_status=$?
15269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15270 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15272 (eval $ac_try) 2>&5
15273 ac_status=$?
15274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15275 (exit $ac_status); }; }; then
15276 ac_cv_sizeof_short=`cat conftest.val`
15277else
15278 echo "$as_me: program exited with status $ac_status" >&5
15279echo "$as_me: failed program was:" >&5
15280sed 's/^/| /' conftest.$ac_ext >&5
15281
15282( exit $ac_status )
15283{ { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
15284See \`config.log' for more details." >&5
15285echo "$as_me: error: cannot compute sizeof (short), 77
15286See \`config.log' for more details." >&2;}
15287 { (exit 1); exit 1; }; }
15288fi
ac1cb8d3 15289rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15290fi
15291fi
15292rm -f conftest.val
15293else
15294 ac_cv_sizeof_short=0
15295fi
15296fi
15297echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
15298echo "${ECHO_T}$ac_cv_sizeof_short" >&6
15299cat >>confdefs.h <<_ACEOF
15300#define SIZEOF_SHORT $ac_cv_sizeof_short
15301_ACEOF
15302
15303
15304echo "$as_me:$LINENO: checking for void *" >&5
15305echo $ECHO_N "checking for void *... $ECHO_C" >&6
15306if test "${ac_cv_type_void_p+set}" = set; then
15307 echo $ECHO_N "(cached) $ECHO_C" >&6
15308else
15309 cat >conftest.$ac_ext <<_ACEOF
15310/* confdefs.h. */
15311_ACEOF
15312cat confdefs.h >>conftest.$ac_ext
15313cat >>conftest.$ac_ext <<_ACEOF
15314/* end confdefs.h. */
15315$ac_includes_default
15316int
15317main ()
15318{
15319if ((void * *) 0)
15320 return 0;
15321if (sizeof (void *))
15322 return 0;
15323 ;
15324 return 0;
15325}
15326_ACEOF
15327rm -f conftest.$ac_objext
15328if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15329 (eval $ac_compile) 2>conftest.er1
a848cd7e 15330 ac_status=$?
ac1cb8d3
VS
15331 grep -v '^ *+' conftest.er1 >conftest.err
15332 rm -f conftest.er1
15333 cat conftest.err >&5
a848cd7e
SC
15334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15335 (exit $ac_status); } &&
17a7bf57 15336 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15338 (eval $ac_try) 2>&5
15339 ac_status=$?
15340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15341 (exit $ac_status); }; } &&
15342 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15344 (eval $ac_try) 2>&5
15345 ac_status=$?
15346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15347 (exit $ac_status); }; }; then
15348 ac_cv_type_void_p=yes
15349else
15350 echo "$as_me: failed program was:" >&5
15351sed 's/^/| /' conftest.$ac_ext >&5
15352
15353ac_cv_type_void_p=no
15354fi
ac1cb8d3 15355rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15356fi
15357echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
15358echo "${ECHO_T}$ac_cv_type_void_p" >&6
15359
15360echo "$as_me:$LINENO: checking size of void *" >&5
15361echo $ECHO_N "checking size of void *... $ECHO_C" >&6
15362if test "${ac_cv_sizeof_void_p+set}" = set; then
15363 echo $ECHO_N "(cached) $ECHO_C" >&6
15364else
15365 if test "$ac_cv_type_void_p" = yes; then
15366 # The cast to unsigned long works around a bug in the HP C Compiler
15367 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15368 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15369 # This bug is HP SR number 8606223364.
15370 if test "$cross_compiling" = yes; then
15371 # Depending upon the size, compute the lo and hi bounds.
15372cat >conftest.$ac_ext <<_ACEOF
15373/* confdefs.h. */
15374_ACEOF
15375cat confdefs.h >>conftest.$ac_ext
15376cat >>conftest.$ac_ext <<_ACEOF
15377/* end confdefs.h. */
15378$ac_includes_default
15379int
15380main ()
15381{
15382static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
15383test_array [0] = 0
15384
15385 ;
15386 return 0;
15387}
15388_ACEOF
15389rm -f conftest.$ac_objext
15390if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15391 (eval $ac_compile) 2>conftest.er1
a848cd7e 15392 ac_status=$?
ac1cb8d3
VS
15393 grep -v '^ *+' conftest.er1 >conftest.err
15394 rm -f conftest.er1
15395 cat conftest.err >&5
a848cd7e
SC
15396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15397 (exit $ac_status); } &&
17a7bf57 15398 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15400 (eval $ac_try) 2>&5
15401 ac_status=$?
15402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15403 (exit $ac_status); }; } &&
15404 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15406 (eval $ac_try) 2>&5
15407 ac_status=$?
15408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15409 (exit $ac_status); }; }; then
15410 ac_lo=0 ac_mid=0
15411 while :; do
15412 cat >conftest.$ac_ext <<_ACEOF
15413/* confdefs.h. */
15414_ACEOF
15415cat confdefs.h >>conftest.$ac_ext
15416cat >>conftest.$ac_ext <<_ACEOF
15417/* end confdefs.h. */
15418$ac_includes_default
15419int
15420main ()
15421{
15422static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
15423test_array [0] = 0
15424
15425 ;
15426 return 0;
15427}
15428_ACEOF
15429rm -f conftest.$ac_objext
15430if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15431 (eval $ac_compile) 2>conftest.er1
a848cd7e 15432 ac_status=$?
ac1cb8d3
VS
15433 grep -v '^ *+' conftest.er1 >conftest.err
15434 rm -f conftest.er1
15435 cat conftest.err >&5
a848cd7e
SC
15436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15437 (exit $ac_status); } &&
17a7bf57 15438 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15440 (eval $ac_try) 2>&5
15441 ac_status=$?
15442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15443 (exit $ac_status); }; } &&
15444 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15446 (eval $ac_try) 2>&5
15447 ac_status=$?
15448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15449 (exit $ac_status); }; }; then
15450 ac_hi=$ac_mid; break
15451else
15452 echo "$as_me: failed program was:" >&5
15453sed 's/^/| /' conftest.$ac_ext >&5
15454
15455ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
15456 if test $ac_lo -le $ac_mid; then
15457 ac_lo= ac_hi=
15458 break
15459 fi
15460 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 15461fi
ac1cb8d3 15462rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15463 done
15464else
15465 echo "$as_me: failed program was:" >&5
15466sed 's/^/| /' conftest.$ac_ext >&5
15467
15468cat >conftest.$ac_ext <<_ACEOF
15469/* confdefs.h. */
15470_ACEOF
15471cat confdefs.h >>conftest.$ac_ext
15472cat >>conftest.$ac_ext <<_ACEOF
15473/* end confdefs.h. */
15474$ac_includes_default
15475int
15476main ()
15477{
15478static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
15479test_array [0] = 0
15480
15481 ;
15482 return 0;
15483}
15484_ACEOF
15485rm -f conftest.$ac_objext
15486if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15487 (eval $ac_compile) 2>conftest.er1
a848cd7e 15488 ac_status=$?
ac1cb8d3
VS
15489 grep -v '^ *+' conftest.er1 >conftest.err
15490 rm -f conftest.er1
15491 cat conftest.err >&5
a848cd7e
SC
15492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15493 (exit $ac_status); } &&
17a7bf57 15494 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15496 (eval $ac_try) 2>&5
15497 ac_status=$?
15498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15499 (exit $ac_status); }; } &&
15500 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15502 (eval $ac_try) 2>&5
15503 ac_status=$?
15504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15505 (exit $ac_status); }; }; then
15506 ac_hi=-1 ac_mid=-1
15507 while :; do
15508 cat >conftest.$ac_ext <<_ACEOF
15509/* confdefs.h. */
15510_ACEOF
15511cat confdefs.h >>conftest.$ac_ext
15512cat >>conftest.$ac_ext <<_ACEOF
15513/* end confdefs.h. */
15514$ac_includes_default
15515int
15516main ()
15517{
15518static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
15519test_array [0] = 0
15520
15521 ;
15522 return 0;
15523}
15524_ACEOF
15525rm -f conftest.$ac_objext
15526if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15527 (eval $ac_compile) 2>conftest.er1
a848cd7e 15528 ac_status=$?
ac1cb8d3
VS
15529 grep -v '^ *+' conftest.er1 >conftest.err
15530 rm -f conftest.er1
15531 cat conftest.err >&5
a848cd7e
SC
15532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15533 (exit $ac_status); } &&
17a7bf57 15534 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15536 (eval $ac_try) 2>&5
15537 ac_status=$?
15538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15539 (exit $ac_status); }; } &&
15540 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
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); }; }; then
15546 ac_lo=$ac_mid; break
15547else
15548 echo "$as_me: failed program was:" >&5
15549sed 's/^/| /' conftest.$ac_ext >&5
15550
15551ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
15552 if test $ac_mid -le $ac_hi; then
15553 ac_lo= ac_hi=
15554 break
15555 fi
15556 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 15557fi
ac1cb8d3 15558rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15559 done
15560else
15561 echo "$as_me: failed program was:" >&5
15562sed 's/^/| /' conftest.$ac_ext >&5
15563
15564ac_lo= ac_hi=
15565fi
ac1cb8d3 15566rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 15567fi
ac1cb8d3 15568rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15569# Binary search between lo and hi bounds.
15570while test "x$ac_lo" != "x$ac_hi"; do
15571 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15572 cat >conftest.$ac_ext <<_ACEOF
15573/* confdefs.h. */
15574_ACEOF
15575cat confdefs.h >>conftest.$ac_ext
15576cat >>conftest.$ac_ext <<_ACEOF
15577/* end confdefs.h. */
15578$ac_includes_default
15579int
15580main ()
15581{
15582static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
15583test_array [0] = 0
15584
15585 ;
15586 return 0;
15587}
15588_ACEOF
15589rm -f conftest.$ac_objext
15590if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15591 (eval $ac_compile) 2>conftest.er1
a848cd7e 15592 ac_status=$?
ac1cb8d3
VS
15593 grep -v '^ *+' conftest.er1 >conftest.err
15594 rm -f conftest.er1
15595 cat conftest.err >&5
a848cd7e
SC
15596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15597 (exit $ac_status); } &&
17a7bf57 15598 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15600 (eval $ac_try) 2>&5
15601 ac_status=$?
15602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15603 (exit $ac_status); }; } &&
15604 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15606 (eval $ac_try) 2>&5
15607 ac_status=$?
15608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15609 (exit $ac_status); }; }; then
15610 ac_hi=$ac_mid
15611else
15612 echo "$as_me: failed program was:" >&5
15613sed 's/^/| /' conftest.$ac_ext >&5
15614
15615ac_lo=`expr '(' $ac_mid ')' + 1`
15616fi
ac1cb8d3 15617rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15618done
15619case $ac_lo in
15620?*) ac_cv_sizeof_void_p=$ac_lo;;
15621'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
15622See \`config.log' for more details." >&5
15623echo "$as_me: error: cannot compute sizeof (void *), 77
15624See \`config.log' for more details." >&2;}
15625 { (exit 1); exit 1; }; } ;;
15626esac
15627else
15628 if test "$cross_compiling" = yes; then
17a7bf57
RL
15629 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
15630echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
15631 { (exit 1); exit 1; }; }
15632else
15633 cat >conftest.$ac_ext <<_ACEOF
15634/* confdefs.h. */
15635_ACEOF
15636cat confdefs.h >>conftest.$ac_ext
15637cat >>conftest.$ac_ext <<_ACEOF
15638/* end confdefs.h. */
15639$ac_includes_default
15640long longval () { return (long) (sizeof (void *)); }
15641unsigned long ulongval () { return (long) (sizeof (void *)); }
15642#include <stdio.h>
15643#include <stdlib.h>
15644int
15645main ()
15646{
15647
15648 FILE *f = fopen ("conftest.val", "w");
15649 if (! f)
15650 exit (1);
15651 if (((long) (sizeof (void *))) < 0)
15652 {
15653 long i = longval ();
15654 if (i != ((long) (sizeof (void *))))
15655 exit (1);
15656 fprintf (f, "%ld\n", i);
15657 }
15658 else
15659 {
15660 unsigned long i = ulongval ();
15661 if (i != ((long) (sizeof (void *))))
15662 exit (1);
15663 fprintf (f, "%lu\n", i);
15664 }
15665 exit (ferror (f) || fclose (f) != 0);
15666
15667 ;
15668 return 0;
15669}
15670_ACEOF
15671rm -f conftest$ac_exeext
15672if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15673 (eval $ac_link) 2>&5
15674 ac_status=$?
15675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15676 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15678 (eval $ac_try) 2>&5
15679 ac_status=$?
15680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15681 (exit $ac_status); }; }; then
15682 ac_cv_sizeof_void_p=`cat conftest.val`
15683else
15684 echo "$as_me: program exited with status $ac_status" >&5
15685echo "$as_me: failed program was:" >&5
15686sed 's/^/| /' conftest.$ac_ext >&5
15687
15688( exit $ac_status )
15689{ { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
15690See \`config.log' for more details." >&5
15691echo "$as_me: error: cannot compute sizeof (void *), 77
15692See \`config.log' for more details." >&2;}
15693 { (exit 1); exit 1; }; }
15694fi
ac1cb8d3 15695rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15696fi
15697fi
15698rm -f conftest.val
15699else
15700 ac_cv_sizeof_void_p=0
15701fi
15702fi
15703echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
15704echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
15705cat >>confdefs.h <<_ACEOF
15706#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
15707_ACEOF
15708
15709
15710echo "$as_me:$LINENO: checking for int" >&5
15711echo $ECHO_N "checking for int... $ECHO_C" >&6
15712if test "${ac_cv_type_int+set}" = set; then
15713 echo $ECHO_N "(cached) $ECHO_C" >&6
15714else
15715 cat >conftest.$ac_ext <<_ACEOF
15716/* confdefs.h. */
15717_ACEOF
15718cat confdefs.h >>conftest.$ac_ext
15719cat >>conftest.$ac_ext <<_ACEOF
15720/* end confdefs.h. */
15721$ac_includes_default
15722int
15723main ()
15724{
15725if ((int *) 0)
15726 return 0;
15727if (sizeof (int))
15728 return 0;
15729 ;
15730 return 0;
15731}
15732_ACEOF
15733rm -f conftest.$ac_objext
15734if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15735 (eval $ac_compile) 2>conftest.er1
a848cd7e 15736 ac_status=$?
ac1cb8d3
VS
15737 grep -v '^ *+' conftest.er1 >conftest.err
15738 rm -f conftest.er1
15739 cat conftest.err >&5
a848cd7e
SC
15740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15741 (exit $ac_status); } &&
17a7bf57 15742 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15744 (eval $ac_try) 2>&5
15745 ac_status=$?
15746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15747 (exit $ac_status); }; } &&
15748 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15750 (eval $ac_try) 2>&5
15751 ac_status=$?
15752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15753 (exit $ac_status); }; }; then
15754 ac_cv_type_int=yes
15755else
15756 echo "$as_me: failed program was:" >&5
15757sed 's/^/| /' conftest.$ac_ext >&5
15758
15759ac_cv_type_int=no
15760fi
ac1cb8d3 15761rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15762fi
15763echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
15764echo "${ECHO_T}$ac_cv_type_int" >&6
15765
15766echo "$as_me:$LINENO: checking size of int" >&5
15767echo $ECHO_N "checking size of int... $ECHO_C" >&6
15768if test "${ac_cv_sizeof_int+set}" = set; then
15769 echo $ECHO_N "(cached) $ECHO_C" >&6
15770else
15771 if test "$ac_cv_type_int" = yes; then
15772 # The cast to unsigned long works around a bug in the HP C Compiler
15773 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15774 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15775 # This bug is HP SR number 8606223364.
15776 if test "$cross_compiling" = yes; then
15777 # Depending upon the size, compute the lo and hi bounds.
15778cat >conftest.$ac_ext <<_ACEOF
15779/* confdefs.h. */
15780_ACEOF
15781cat confdefs.h >>conftest.$ac_ext
15782cat >>conftest.$ac_ext <<_ACEOF
15783/* end confdefs.h. */
15784$ac_includes_default
15785int
15786main ()
15787{
15788static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
15789test_array [0] = 0
15790
15791 ;
15792 return 0;
15793}
15794_ACEOF
15795rm -f conftest.$ac_objext
15796if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15797 (eval $ac_compile) 2>conftest.er1
a848cd7e 15798 ac_status=$?
ac1cb8d3
VS
15799 grep -v '^ *+' conftest.er1 >conftest.err
15800 rm -f conftest.er1
15801 cat conftest.err >&5
a848cd7e
SC
15802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15803 (exit $ac_status); } &&
17a7bf57 15804 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15806 (eval $ac_try) 2>&5
15807 ac_status=$?
15808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15809 (exit $ac_status); }; } &&
15810 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15812 (eval $ac_try) 2>&5
15813 ac_status=$?
15814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15815 (exit $ac_status); }; }; then
15816 ac_lo=0 ac_mid=0
15817 while :; do
15818 cat >conftest.$ac_ext <<_ACEOF
15819/* confdefs.h. */
15820_ACEOF
15821cat confdefs.h >>conftest.$ac_ext
15822cat >>conftest.$ac_ext <<_ACEOF
15823/* end confdefs.h. */
15824$ac_includes_default
15825int
15826main ()
15827{
15828static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
15829test_array [0] = 0
15830
15831 ;
15832 return 0;
15833}
15834_ACEOF
15835rm -f conftest.$ac_objext
15836if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15837 (eval $ac_compile) 2>conftest.er1
a848cd7e 15838 ac_status=$?
ac1cb8d3
VS
15839 grep -v '^ *+' conftest.er1 >conftest.err
15840 rm -f conftest.er1
15841 cat conftest.err >&5
a848cd7e
SC
15842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15843 (exit $ac_status); } &&
17a7bf57 15844 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15846 (eval $ac_try) 2>&5
15847 ac_status=$?
15848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15849 (exit $ac_status); }; } &&
15850 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15852 (eval $ac_try) 2>&5
15853 ac_status=$?
15854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15855 (exit $ac_status); }; }; then
15856 ac_hi=$ac_mid; break
15857else
15858 echo "$as_me: failed program was:" >&5
15859sed 's/^/| /' conftest.$ac_ext >&5
15860
15861ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
15862 if test $ac_lo -le $ac_mid; then
15863 ac_lo= ac_hi=
15864 break
15865 fi
15866 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 15867fi
ac1cb8d3 15868rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15869 done
15870else
15871 echo "$as_me: failed program was:" >&5
15872sed 's/^/| /' conftest.$ac_ext >&5
15873
15874cat >conftest.$ac_ext <<_ACEOF
15875/* confdefs.h. */
15876_ACEOF
15877cat confdefs.h >>conftest.$ac_ext
15878cat >>conftest.$ac_ext <<_ACEOF
15879/* end confdefs.h. */
15880$ac_includes_default
15881int
15882main ()
15883{
15884static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
15885test_array [0] = 0
15886
15887 ;
15888 return 0;
15889}
15890_ACEOF
15891rm -f conftest.$ac_objext
15892if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15893 (eval $ac_compile) 2>conftest.er1
a848cd7e 15894 ac_status=$?
ac1cb8d3
VS
15895 grep -v '^ *+' conftest.er1 >conftest.err
15896 rm -f conftest.er1
15897 cat conftest.err >&5
a848cd7e
SC
15898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15899 (exit $ac_status); } &&
17a7bf57 15900 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15902 (eval $ac_try) 2>&5
15903 ac_status=$?
15904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15905 (exit $ac_status); }; } &&
15906 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15908 (eval $ac_try) 2>&5
15909 ac_status=$?
15910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15911 (exit $ac_status); }; }; then
15912 ac_hi=-1 ac_mid=-1
15913 while :; do
15914 cat >conftest.$ac_ext <<_ACEOF
15915/* confdefs.h. */
15916_ACEOF
15917cat confdefs.h >>conftest.$ac_ext
15918cat >>conftest.$ac_ext <<_ACEOF
15919/* end confdefs.h. */
15920$ac_includes_default
15921int
15922main ()
15923{
15924static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
15925test_array [0] = 0
15926
15927 ;
15928 return 0;
15929}
15930_ACEOF
15931rm -f conftest.$ac_objext
15932if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15933 (eval $ac_compile) 2>conftest.er1
a848cd7e 15934 ac_status=$?
ac1cb8d3
VS
15935 grep -v '^ *+' conftest.er1 >conftest.err
15936 rm -f conftest.er1
15937 cat conftest.err >&5
a848cd7e
SC
15938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15939 (exit $ac_status); } &&
17a7bf57 15940 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15942 (eval $ac_try) 2>&5
15943 ac_status=$?
15944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15945 (exit $ac_status); }; } &&
15946 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15948 (eval $ac_try) 2>&5
15949 ac_status=$?
15950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15951 (exit $ac_status); }; }; then
15952 ac_lo=$ac_mid; break
15953else
15954 echo "$as_me: failed program was:" >&5
15955sed 's/^/| /' conftest.$ac_ext >&5
15956
15957ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
15958 if test $ac_mid -le $ac_hi; then
15959 ac_lo= ac_hi=
15960 break
15961 fi
15962 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 15963fi
ac1cb8d3 15964rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15965 done
15966else
15967 echo "$as_me: failed program was:" >&5
15968sed 's/^/| /' conftest.$ac_ext >&5
15969
15970ac_lo= ac_hi=
15971fi
ac1cb8d3 15972rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 15973fi
ac1cb8d3 15974rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15975# Binary search between lo and hi bounds.
15976while test "x$ac_lo" != "x$ac_hi"; do
15977 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15978 cat >conftest.$ac_ext <<_ACEOF
15979/* confdefs.h. */
15980_ACEOF
15981cat confdefs.h >>conftest.$ac_ext
15982cat >>conftest.$ac_ext <<_ACEOF
15983/* end confdefs.h. */
15984$ac_includes_default
15985int
15986main ()
15987{
15988static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
15989test_array [0] = 0
15990
15991 ;
15992 return 0;
15993}
15994_ACEOF
15995rm -f conftest.$ac_objext
15996if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15997 (eval $ac_compile) 2>conftest.er1
a848cd7e 15998 ac_status=$?
ac1cb8d3
VS
15999 grep -v '^ *+' conftest.er1 >conftest.err
16000 rm -f conftest.er1
16001 cat conftest.err >&5
a848cd7e
SC
16002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16003 (exit $ac_status); } &&
17a7bf57 16004 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16006 (eval $ac_try) 2>&5
16007 ac_status=$?
16008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16009 (exit $ac_status); }; } &&
16010 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16012 (eval $ac_try) 2>&5
16013 ac_status=$?
16014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16015 (exit $ac_status); }; }; then
16016 ac_hi=$ac_mid
16017else
16018 echo "$as_me: failed program was:" >&5
16019sed 's/^/| /' conftest.$ac_ext >&5
16020
16021ac_lo=`expr '(' $ac_mid ')' + 1`
16022fi
ac1cb8d3 16023rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16024done
16025case $ac_lo in
16026?*) ac_cv_sizeof_int=$ac_lo;;
16027'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
16028See \`config.log' for more details." >&5
16029echo "$as_me: error: cannot compute sizeof (int), 77
16030See \`config.log' for more details." >&2;}
16031 { (exit 1); exit 1; }; } ;;
16032esac
16033else
16034 if test "$cross_compiling" = yes; then
17a7bf57
RL
16035 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
16036echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
16037 { (exit 1); exit 1; }; }
16038else
16039 cat >conftest.$ac_ext <<_ACEOF
16040/* confdefs.h. */
16041_ACEOF
16042cat confdefs.h >>conftest.$ac_ext
16043cat >>conftest.$ac_ext <<_ACEOF
16044/* end confdefs.h. */
16045$ac_includes_default
16046long longval () { return (long) (sizeof (int)); }
16047unsigned long ulongval () { return (long) (sizeof (int)); }
16048#include <stdio.h>
16049#include <stdlib.h>
16050int
16051main ()
16052{
16053
16054 FILE *f = fopen ("conftest.val", "w");
16055 if (! f)
16056 exit (1);
16057 if (((long) (sizeof (int))) < 0)
16058 {
16059 long i = longval ();
16060 if (i != ((long) (sizeof (int))))
16061 exit (1);
16062 fprintf (f, "%ld\n", i);
16063 }
16064 else
16065 {
16066 unsigned long i = ulongval ();
16067 if (i != ((long) (sizeof (int))))
16068 exit (1);
16069 fprintf (f, "%lu\n", i);
16070 }
16071 exit (ferror (f) || fclose (f) != 0);
16072
16073 ;
16074 return 0;
16075}
16076_ACEOF
16077rm -f conftest$ac_exeext
16078if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16079 (eval $ac_link) 2>&5
16080 ac_status=$?
16081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16082 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16084 (eval $ac_try) 2>&5
16085 ac_status=$?
16086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16087 (exit $ac_status); }; }; then
16088 ac_cv_sizeof_int=`cat conftest.val`
16089else
16090 echo "$as_me: program exited with status $ac_status" >&5
16091echo "$as_me: failed program was:" >&5
16092sed 's/^/| /' conftest.$ac_ext >&5
16093
16094( exit $ac_status )
16095{ { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
16096See \`config.log' for more details." >&5
16097echo "$as_me: error: cannot compute sizeof (int), 77
16098See \`config.log' for more details." >&2;}
16099 { (exit 1); exit 1; }; }
16100fi
ac1cb8d3 16101rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16102fi
16103fi
16104rm -f conftest.val
16105else
16106 ac_cv_sizeof_int=0
16107fi
16108fi
16109echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
16110echo "${ECHO_T}$ac_cv_sizeof_int" >&6
16111cat >>confdefs.h <<_ACEOF
16112#define SIZEOF_INT $ac_cv_sizeof_int
16113_ACEOF
16114
16115
16116echo "$as_me:$LINENO: checking for long" >&5
16117echo $ECHO_N "checking for long... $ECHO_C" >&6
16118if test "${ac_cv_type_long+set}" = set; then
16119 echo $ECHO_N "(cached) $ECHO_C" >&6
16120else
16121 cat >conftest.$ac_ext <<_ACEOF
16122/* confdefs.h. */
16123_ACEOF
16124cat confdefs.h >>conftest.$ac_ext
16125cat >>conftest.$ac_ext <<_ACEOF
16126/* end confdefs.h. */
16127$ac_includes_default
16128int
16129main ()
16130{
16131if ((long *) 0)
16132 return 0;
16133if (sizeof (long))
16134 return 0;
16135 ;
16136 return 0;
16137}
16138_ACEOF
16139rm -f conftest.$ac_objext
16140if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16141 (eval $ac_compile) 2>conftest.er1
a848cd7e 16142 ac_status=$?
ac1cb8d3
VS
16143 grep -v '^ *+' conftest.er1 >conftest.err
16144 rm -f conftest.er1
16145 cat conftest.err >&5
a848cd7e
SC
16146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16147 (exit $ac_status); } &&
17a7bf57 16148 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16150 (eval $ac_try) 2>&5
16151 ac_status=$?
16152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16153 (exit $ac_status); }; } &&
16154 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16156 (eval $ac_try) 2>&5
16157 ac_status=$?
16158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16159 (exit $ac_status); }; }; then
16160 ac_cv_type_long=yes
16161else
16162 echo "$as_me: failed program was:" >&5
16163sed 's/^/| /' conftest.$ac_ext >&5
16164
16165ac_cv_type_long=no
16166fi
ac1cb8d3 16167rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16168fi
16169echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
16170echo "${ECHO_T}$ac_cv_type_long" >&6
16171
16172echo "$as_me:$LINENO: checking size of long" >&5
16173echo $ECHO_N "checking size of long... $ECHO_C" >&6
16174if test "${ac_cv_sizeof_long+set}" = set; then
16175 echo $ECHO_N "(cached) $ECHO_C" >&6
16176else
16177 if test "$ac_cv_type_long" = yes; then
16178 # The cast to unsigned long works around a bug in the HP C Compiler
16179 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16180 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16181 # This bug is HP SR number 8606223364.
16182 if test "$cross_compiling" = yes; then
16183 # Depending upon the size, compute the lo and hi bounds.
16184cat >conftest.$ac_ext <<_ACEOF
16185/* confdefs.h. */
16186_ACEOF
16187cat confdefs.h >>conftest.$ac_ext
16188cat >>conftest.$ac_ext <<_ACEOF
16189/* end confdefs.h. */
16190$ac_includes_default
16191int
16192main ()
16193{
16194static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
16195test_array [0] = 0
16196
16197 ;
16198 return 0;
16199}
16200_ACEOF
16201rm -f conftest.$ac_objext
16202if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16203 (eval $ac_compile) 2>conftest.er1
a848cd7e 16204 ac_status=$?
ac1cb8d3
VS
16205 grep -v '^ *+' conftest.er1 >conftest.err
16206 rm -f conftest.er1
16207 cat conftest.err >&5
a848cd7e
SC
16208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16209 (exit $ac_status); } &&
17a7bf57 16210 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16212 (eval $ac_try) 2>&5
16213 ac_status=$?
16214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16215 (exit $ac_status); }; } &&
16216 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16218 (eval $ac_try) 2>&5
16219 ac_status=$?
16220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16221 (exit $ac_status); }; }; then
16222 ac_lo=0 ac_mid=0
16223 while :; do
16224 cat >conftest.$ac_ext <<_ACEOF
16225/* confdefs.h. */
16226_ACEOF
16227cat confdefs.h >>conftest.$ac_ext
16228cat >>conftest.$ac_ext <<_ACEOF
16229/* end confdefs.h. */
16230$ac_includes_default
16231int
16232main ()
16233{
16234static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
16235test_array [0] = 0
16236
16237 ;
16238 return 0;
16239}
16240_ACEOF
16241rm -f conftest.$ac_objext
16242if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16243 (eval $ac_compile) 2>conftest.er1
a848cd7e 16244 ac_status=$?
ac1cb8d3
VS
16245 grep -v '^ *+' conftest.er1 >conftest.err
16246 rm -f conftest.er1
16247 cat conftest.err >&5
a848cd7e
SC
16248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16249 (exit $ac_status); } &&
17a7bf57 16250 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16252 (eval $ac_try) 2>&5
16253 ac_status=$?
16254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16255 (exit $ac_status); }; } &&
16256 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16258 (eval $ac_try) 2>&5
16259 ac_status=$?
16260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16261 (exit $ac_status); }; }; then
16262 ac_hi=$ac_mid; break
16263else
16264 echo "$as_me: failed program was:" >&5
16265sed 's/^/| /' conftest.$ac_ext >&5
16266
16267ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
16268 if test $ac_lo -le $ac_mid; then
16269 ac_lo= ac_hi=
16270 break
16271 fi
16272 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 16273fi
ac1cb8d3 16274rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16275 done
16276else
16277 echo "$as_me: failed program was:" >&5
16278sed 's/^/| /' conftest.$ac_ext >&5
16279
16280cat >conftest.$ac_ext <<_ACEOF
16281/* confdefs.h. */
16282_ACEOF
16283cat confdefs.h >>conftest.$ac_ext
16284cat >>conftest.$ac_ext <<_ACEOF
16285/* end confdefs.h. */
16286$ac_includes_default
16287int
16288main ()
16289{
16290static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
16291test_array [0] = 0
16292
16293 ;
16294 return 0;
16295}
16296_ACEOF
16297rm -f conftest.$ac_objext
16298if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16299 (eval $ac_compile) 2>conftest.er1
a848cd7e 16300 ac_status=$?
ac1cb8d3
VS
16301 grep -v '^ *+' conftest.er1 >conftest.err
16302 rm -f conftest.er1
16303 cat conftest.err >&5
a848cd7e
SC
16304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16305 (exit $ac_status); } &&
17a7bf57 16306 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16308 (eval $ac_try) 2>&5
16309 ac_status=$?
16310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16311 (exit $ac_status); }; } &&
16312 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16314 (eval $ac_try) 2>&5
16315 ac_status=$?
16316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16317 (exit $ac_status); }; }; then
16318 ac_hi=-1 ac_mid=-1
16319 while :; do
16320 cat >conftest.$ac_ext <<_ACEOF
16321/* confdefs.h. */
16322_ACEOF
16323cat confdefs.h >>conftest.$ac_ext
16324cat >>conftest.$ac_ext <<_ACEOF
16325/* end confdefs.h. */
16326$ac_includes_default
16327int
16328main ()
16329{
16330static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
16331test_array [0] = 0
16332
16333 ;
16334 return 0;
16335}
16336_ACEOF
16337rm -f conftest.$ac_objext
16338if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16339 (eval $ac_compile) 2>conftest.er1
a848cd7e 16340 ac_status=$?
ac1cb8d3
VS
16341 grep -v '^ *+' conftest.er1 >conftest.err
16342 rm -f conftest.er1
16343 cat conftest.err >&5
a848cd7e
SC
16344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16345 (exit $ac_status); } &&
17a7bf57 16346 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16348 (eval $ac_try) 2>&5
16349 ac_status=$?
16350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16351 (exit $ac_status); }; } &&
16352 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16354 (eval $ac_try) 2>&5
16355 ac_status=$?
16356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16357 (exit $ac_status); }; }; then
16358 ac_lo=$ac_mid; break
16359else
16360 echo "$as_me: failed program was:" >&5
16361sed 's/^/| /' conftest.$ac_ext >&5
16362
16363ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
16364 if test $ac_mid -le $ac_hi; then
16365 ac_lo= ac_hi=
16366 break
16367 fi
16368 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 16369fi
ac1cb8d3 16370rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16371 done
16372else
16373 echo "$as_me: failed program was:" >&5
16374sed 's/^/| /' conftest.$ac_ext >&5
16375
16376ac_lo= ac_hi=
16377fi
ac1cb8d3 16378rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 16379fi
ac1cb8d3 16380rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16381# Binary search between lo and hi bounds.
16382while test "x$ac_lo" != "x$ac_hi"; do
16383 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16384 cat >conftest.$ac_ext <<_ACEOF
16385/* confdefs.h. */
16386_ACEOF
16387cat confdefs.h >>conftest.$ac_ext
16388cat >>conftest.$ac_ext <<_ACEOF
16389/* end confdefs.h. */
16390$ac_includes_default
16391int
16392main ()
16393{
16394static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
16395test_array [0] = 0
16396
16397 ;
16398 return 0;
16399}
16400_ACEOF
16401rm -f conftest.$ac_objext
16402if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16403 (eval $ac_compile) 2>conftest.er1
a848cd7e 16404 ac_status=$?
ac1cb8d3
VS
16405 grep -v '^ *+' conftest.er1 >conftest.err
16406 rm -f conftest.er1
16407 cat conftest.err >&5
a848cd7e
SC
16408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16409 (exit $ac_status); } &&
17a7bf57 16410 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16412 (eval $ac_try) 2>&5
16413 ac_status=$?
16414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16415 (exit $ac_status); }; } &&
16416 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16418 (eval $ac_try) 2>&5
16419 ac_status=$?
16420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16421 (exit $ac_status); }; }; then
16422 ac_hi=$ac_mid
16423else
16424 echo "$as_me: failed program was:" >&5
16425sed 's/^/| /' conftest.$ac_ext >&5
16426
16427ac_lo=`expr '(' $ac_mid ')' + 1`
16428fi
ac1cb8d3 16429rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16430done
16431case $ac_lo in
16432?*) ac_cv_sizeof_long=$ac_lo;;
16433'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
16434See \`config.log' for more details." >&5
16435echo "$as_me: error: cannot compute sizeof (long), 77
16436See \`config.log' for more details." >&2;}
16437 { (exit 1); exit 1; }; } ;;
16438esac
16439else
16440 if test "$cross_compiling" = yes; then
17a7bf57
RL
16441 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
16442echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
16443 { (exit 1); exit 1; }; }
16444else
16445 cat >conftest.$ac_ext <<_ACEOF
16446/* confdefs.h. */
16447_ACEOF
16448cat confdefs.h >>conftest.$ac_ext
16449cat >>conftest.$ac_ext <<_ACEOF
16450/* end confdefs.h. */
16451$ac_includes_default
16452long longval () { return (long) (sizeof (long)); }
16453unsigned long ulongval () { return (long) (sizeof (long)); }
16454#include <stdio.h>
16455#include <stdlib.h>
16456int
16457main ()
16458{
16459
16460 FILE *f = fopen ("conftest.val", "w");
16461 if (! f)
16462 exit (1);
16463 if (((long) (sizeof (long))) < 0)
16464 {
16465 long i = longval ();
16466 if (i != ((long) (sizeof (long))))
16467 exit (1);
16468 fprintf (f, "%ld\n", i);
16469 }
16470 else
16471 {
16472 unsigned long i = ulongval ();
16473 if (i != ((long) (sizeof (long))))
16474 exit (1);
16475 fprintf (f, "%lu\n", i);
16476 }
16477 exit (ferror (f) || fclose (f) != 0);
16478
16479 ;
16480 return 0;
16481}
16482_ACEOF
16483rm -f conftest$ac_exeext
16484if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16485 (eval $ac_link) 2>&5
16486 ac_status=$?
16487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16488 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16490 (eval $ac_try) 2>&5
16491 ac_status=$?
16492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16493 (exit $ac_status); }; }; then
16494 ac_cv_sizeof_long=`cat conftest.val`
16495else
16496 echo "$as_me: program exited with status $ac_status" >&5
16497echo "$as_me: failed program was:" >&5
16498sed 's/^/| /' conftest.$ac_ext >&5
16499
16500( exit $ac_status )
16501{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
16502See \`config.log' for more details." >&5
16503echo "$as_me: error: cannot compute sizeof (long), 77
16504See \`config.log' for more details." >&2;}
16505 { (exit 1); exit 1; }; }
16506fi
ac1cb8d3 16507rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16508fi
16509fi
16510rm -f conftest.val
16511else
16512 ac_cv_sizeof_long=0
16513fi
16514fi
16515echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
16516echo "${ECHO_T}$ac_cv_sizeof_long" >&6
16517cat >>confdefs.h <<_ACEOF
16518#define SIZEOF_LONG $ac_cv_sizeof_long
16519_ACEOF
16520
16521
16522echo "$as_me:$LINENO: checking for size_t" >&5
16523echo $ECHO_N "checking for size_t... $ECHO_C" >&6
16524if test "${ac_cv_type_size_t+set}" = set; then
16525 echo $ECHO_N "(cached) $ECHO_C" >&6
16526else
16527 cat >conftest.$ac_ext <<_ACEOF
16528/* confdefs.h. */
16529_ACEOF
16530cat confdefs.h >>conftest.$ac_ext
16531cat >>conftest.$ac_ext <<_ACEOF
16532/* end confdefs.h. */
16533$ac_includes_default
16534int
16535main ()
16536{
16537if ((size_t *) 0)
16538 return 0;
16539if (sizeof (size_t))
16540 return 0;
16541 ;
16542 return 0;
16543}
16544_ACEOF
16545rm -f conftest.$ac_objext
16546if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16547 (eval $ac_compile) 2>conftest.er1
a848cd7e 16548 ac_status=$?
ac1cb8d3
VS
16549 grep -v '^ *+' conftest.er1 >conftest.err
16550 rm -f conftest.er1
16551 cat conftest.err >&5
a848cd7e
SC
16552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16553 (exit $ac_status); } &&
17a7bf57 16554 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
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); }; } &&
16560 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16562 (eval $ac_try) 2>&5
16563 ac_status=$?
16564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16565 (exit $ac_status); }; }; then
16566 ac_cv_type_size_t=yes
16567else
16568 echo "$as_me: failed program was:" >&5
16569sed 's/^/| /' conftest.$ac_ext >&5
16570
16571ac_cv_type_size_t=no
16572fi
ac1cb8d3 16573rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16574fi
16575echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
16576echo "${ECHO_T}$ac_cv_type_size_t" >&6
16577
16578echo "$as_me:$LINENO: checking size of size_t" >&5
16579echo $ECHO_N "checking size of size_t... $ECHO_C" >&6
16580if test "${ac_cv_sizeof_size_t+set}" = set; then
16581 echo $ECHO_N "(cached) $ECHO_C" >&6
16582else
16583 if test "$ac_cv_type_size_t" = yes; then
16584 # The cast to unsigned long works around a bug in the HP C Compiler
16585 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16586 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16587 # This bug is HP SR number 8606223364.
16588 if test "$cross_compiling" = yes; then
16589 # Depending upon the size, compute the lo and hi bounds.
16590cat >conftest.$ac_ext <<_ACEOF
16591/* confdefs.h. */
16592_ACEOF
16593cat confdefs.h >>conftest.$ac_ext
16594cat >>conftest.$ac_ext <<_ACEOF
16595/* end confdefs.h. */
16596$ac_includes_default
16597int
16598main ()
16599{
16600static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= 0)];
16601test_array [0] = 0
16602
16603 ;
16604 return 0;
16605}
16606_ACEOF
16607rm -f conftest.$ac_objext
16608if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16609 (eval $ac_compile) 2>conftest.er1
a848cd7e 16610 ac_status=$?
ac1cb8d3
VS
16611 grep -v '^ *+' conftest.er1 >conftest.err
16612 rm -f conftest.er1
16613 cat conftest.err >&5
a848cd7e
SC
16614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16615 (exit $ac_status); } &&
17a7bf57 16616 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16618 (eval $ac_try) 2>&5
16619 ac_status=$?
16620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16621 (exit $ac_status); }; } &&
16622 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16624 (eval $ac_try) 2>&5
16625 ac_status=$?
16626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16627 (exit $ac_status); }; }; then
16628 ac_lo=0 ac_mid=0
16629 while :; do
16630 cat >conftest.$ac_ext <<_ACEOF
16631/* confdefs.h. */
16632_ACEOF
16633cat confdefs.h >>conftest.$ac_ext
16634cat >>conftest.$ac_ext <<_ACEOF
16635/* end confdefs.h. */
16636$ac_includes_default
16637int
16638main ()
16639{
16640static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
16641test_array [0] = 0
16642
16643 ;
16644 return 0;
16645}
16646_ACEOF
16647rm -f conftest.$ac_objext
16648if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16649 (eval $ac_compile) 2>conftest.er1
a848cd7e 16650 ac_status=$?
ac1cb8d3
VS
16651 grep -v '^ *+' conftest.er1 >conftest.err
16652 rm -f conftest.er1
16653 cat conftest.err >&5
a848cd7e
SC
16654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16655 (exit $ac_status); } &&
17a7bf57 16656 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16658 (eval $ac_try) 2>&5
16659 ac_status=$?
16660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16661 (exit $ac_status); }; } &&
16662 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16664 (eval $ac_try) 2>&5
16665 ac_status=$?
16666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16667 (exit $ac_status); }; }; then
16668 ac_hi=$ac_mid; break
16669else
16670 echo "$as_me: failed program was:" >&5
16671sed 's/^/| /' conftest.$ac_ext >&5
16672
16673ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
16674 if test $ac_lo -le $ac_mid; then
16675 ac_lo= ac_hi=
16676 break
16677 fi
16678 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 16679fi
ac1cb8d3 16680rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16681 done
16682else
16683 echo "$as_me: failed program was:" >&5
16684sed 's/^/| /' conftest.$ac_ext >&5
16685
16686cat >conftest.$ac_ext <<_ACEOF
16687/* confdefs.h. */
16688_ACEOF
16689cat confdefs.h >>conftest.$ac_ext
16690cat >>conftest.$ac_ext <<_ACEOF
16691/* end confdefs.h. */
16692$ac_includes_default
16693int
16694main ()
16695{
16696static int test_array [1 - 2 * !(((long) (sizeof (size_t))) < 0)];
16697test_array [0] = 0
16698
16699 ;
16700 return 0;
16701}
16702_ACEOF
16703rm -f conftest.$ac_objext
16704if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16705 (eval $ac_compile) 2>conftest.er1
a848cd7e 16706 ac_status=$?
ac1cb8d3
VS
16707 grep -v '^ *+' conftest.er1 >conftest.err
16708 rm -f conftest.er1
16709 cat conftest.err >&5
a848cd7e
SC
16710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16711 (exit $ac_status); } &&
17a7bf57 16712 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16714 (eval $ac_try) 2>&5
16715 ac_status=$?
16716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16717 (exit $ac_status); }; } &&
16718 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16720 (eval $ac_try) 2>&5
16721 ac_status=$?
16722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16723 (exit $ac_status); }; }; then
16724 ac_hi=-1 ac_mid=-1
16725 while :; do
16726 cat >conftest.$ac_ext <<_ACEOF
16727/* confdefs.h. */
16728_ACEOF
16729cat confdefs.h >>conftest.$ac_ext
16730cat >>conftest.$ac_ext <<_ACEOF
16731/* end confdefs.h. */
16732$ac_includes_default
16733int
16734main ()
16735{
16736static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= $ac_mid)];
16737test_array [0] = 0
16738
16739 ;
16740 return 0;
16741}
16742_ACEOF
16743rm -f conftest.$ac_objext
16744if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16745 (eval $ac_compile) 2>conftest.er1
a848cd7e 16746 ac_status=$?
ac1cb8d3
VS
16747 grep -v '^ *+' conftest.er1 >conftest.err
16748 rm -f conftest.er1
16749 cat conftest.err >&5
a848cd7e
SC
16750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16751 (exit $ac_status); } &&
17a7bf57 16752 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16754 (eval $ac_try) 2>&5
16755 ac_status=$?
16756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16757 (exit $ac_status); }; } &&
16758 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16760 (eval $ac_try) 2>&5
16761 ac_status=$?
16762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16763 (exit $ac_status); }; }; then
16764 ac_lo=$ac_mid; break
16765else
16766 echo "$as_me: failed program was:" >&5
16767sed 's/^/| /' conftest.$ac_ext >&5
16768
16769ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
16770 if test $ac_mid -le $ac_hi; then
16771 ac_lo= ac_hi=
16772 break
16773 fi
16774 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 16775fi
ac1cb8d3 16776rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16777 done
16778else
16779 echo "$as_me: failed program was:" >&5
16780sed 's/^/| /' conftest.$ac_ext >&5
16781
16782ac_lo= ac_hi=
16783fi
ac1cb8d3 16784rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 16785fi
ac1cb8d3 16786rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16787# Binary search between lo and hi bounds.
16788while test "x$ac_lo" != "x$ac_hi"; do
16789 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16790 cat >conftest.$ac_ext <<_ACEOF
16791/* confdefs.h. */
16792_ACEOF
16793cat confdefs.h >>conftest.$ac_ext
16794cat >>conftest.$ac_ext <<_ACEOF
16795/* end confdefs.h. */
16796$ac_includes_default
16797int
16798main ()
16799{
16800static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
16801test_array [0] = 0
16802
16803 ;
16804 return 0;
16805}
16806_ACEOF
16807rm -f conftest.$ac_objext
16808if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16809 (eval $ac_compile) 2>conftest.er1
a848cd7e 16810 ac_status=$?
ac1cb8d3
VS
16811 grep -v '^ *+' conftest.er1 >conftest.err
16812 rm -f conftest.er1
16813 cat conftest.err >&5
a848cd7e
SC
16814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16815 (exit $ac_status); } &&
17a7bf57 16816 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16818 (eval $ac_try) 2>&5
16819 ac_status=$?
16820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16821 (exit $ac_status); }; } &&
16822 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16824 (eval $ac_try) 2>&5
16825 ac_status=$?
16826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16827 (exit $ac_status); }; }; then
16828 ac_hi=$ac_mid
16829else
16830 echo "$as_me: failed program was:" >&5
16831sed 's/^/| /' conftest.$ac_ext >&5
16832
16833ac_lo=`expr '(' $ac_mid ')' + 1`
16834fi
ac1cb8d3 16835rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16836done
16837case $ac_lo in
16838?*) ac_cv_sizeof_size_t=$ac_lo;;
16839'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
16840See \`config.log' for more details." >&5
16841echo "$as_me: error: cannot compute sizeof (size_t), 77
16842See \`config.log' for more details." >&2;}
16843 { (exit 1); exit 1; }; } ;;
16844esac
16845else
16846 if test "$cross_compiling" = yes; then
17a7bf57
RL
16847 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
16848echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
16849 { (exit 1); exit 1; }; }
16850else
16851 cat >conftest.$ac_ext <<_ACEOF
16852/* confdefs.h. */
16853_ACEOF
16854cat confdefs.h >>conftest.$ac_ext
16855cat >>conftest.$ac_ext <<_ACEOF
16856/* end confdefs.h. */
16857$ac_includes_default
16858long longval () { return (long) (sizeof (size_t)); }
16859unsigned long ulongval () { return (long) (sizeof (size_t)); }
16860#include <stdio.h>
16861#include <stdlib.h>
16862int
16863main ()
16864{
16865
16866 FILE *f = fopen ("conftest.val", "w");
16867 if (! f)
16868 exit (1);
16869 if (((long) (sizeof (size_t))) < 0)
16870 {
16871 long i = longval ();
16872 if (i != ((long) (sizeof (size_t))))
16873 exit (1);
16874 fprintf (f, "%ld\n", i);
16875 }
16876 else
16877 {
16878 unsigned long i = ulongval ();
16879 if (i != ((long) (sizeof (size_t))))
16880 exit (1);
16881 fprintf (f, "%lu\n", i);
16882 }
16883 exit (ferror (f) || fclose (f) != 0);
16884
16885 ;
16886 return 0;
16887}
16888_ACEOF
16889rm -f conftest$ac_exeext
16890if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16891 (eval $ac_link) 2>&5
16892 ac_status=$?
16893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16894 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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_cv_sizeof_size_t=`cat conftest.val`
16901else
16902 echo "$as_me: program exited with status $ac_status" >&5
16903echo "$as_me: failed program was:" >&5
16904sed 's/^/| /' conftest.$ac_ext >&5
16905
16906( exit $ac_status )
16907{ { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
16908See \`config.log' for more details." >&5
16909echo "$as_me: error: cannot compute sizeof (size_t), 77
16910See \`config.log' for more details." >&2;}
16911 { (exit 1); exit 1; }; }
16912fi
ac1cb8d3 16913rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16914fi
16915fi
16916rm -f conftest.val
16917else
16918 ac_cv_sizeof_size_t=0
16919fi
16920fi
16921echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
16922echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6
16923cat >>confdefs.h <<_ACEOF
16924#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
16925_ACEOF
16926
16927
16928
16929case "${host}" in
16930 arm-*-linux* )
16931 echo "$as_me:$LINENO: checking for long long" >&5
16932echo $ECHO_N "checking for long long... $ECHO_C" >&6
16933if test "${ac_cv_type_long_long+set}" = set; then
16934 echo $ECHO_N "(cached) $ECHO_C" >&6
16935else
16936 cat >conftest.$ac_ext <<_ACEOF
16937/* confdefs.h. */
16938_ACEOF
16939cat confdefs.h >>conftest.$ac_ext
16940cat >>conftest.$ac_ext <<_ACEOF
16941/* end confdefs.h. */
16942$ac_includes_default
16943int
16944main ()
16945{
16946if ((long long *) 0)
16947 return 0;
16948if (sizeof (long long))
16949 return 0;
16950 ;
16951 return 0;
16952}
16953_ACEOF
16954rm -f conftest.$ac_objext
16955if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16956 (eval $ac_compile) 2>conftest.er1
a848cd7e 16957 ac_status=$?
ac1cb8d3
VS
16958 grep -v '^ *+' conftest.er1 >conftest.err
16959 rm -f conftest.er1
16960 cat conftest.err >&5
a848cd7e
SC
16961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16962 (exit $ac_status); } &&
17a7bf57 16963 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16965 (eval $ac_try) 2>&5
16966 ac_status=$?
16967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16968 (exit $ac_status); }; } &&
16969 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16971 (eval $ac_try) 2>&5
16972 ac_status=$?
16973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16974 (exit $ac_status); }; }; then
16975 ac_cv_type_long_long=yes
16976else
16977 echo "$as_me: failed program was:" >&5
16978sed 's/^/| /' conftest.$ac_ext >&5
16979
16980ac_cv_type_long_long=no
16981fi
ac1cb8d3 16982rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16983fi
16984echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
16985echo "${ECHO_T}$ac_cv_type_long_long" >&6
16986
16987echo "$as_me:$LINENO: checking size of long long" >&5
16988echo $ECHO_N "checking size of long long... $ECHO_C" >&6
16989if test "${ac_cv_sizeof_long_long+set}" = set; then
16990 echo $ECHO_N "(cached) $ECHO_C" >&6
16991else
16992 if test "$ac_cv_type_long_long" = yes; then
16993 # The cast to unsigned long works around a bug in the HP C Compiler
16994 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16995 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16996 # This bug is HP SR number 8606223364.
16997 if test "$cross_compiling" = yes; then
16998 # Depending upon the size, compute the lo and hi bounds.
16999cat >conftest.$ac_ext <<_ACEOF
17000/* confdefs.h. */
17001_ACEOF
17002cat confdefs.h >>conftest.$ac_ext
17003cat >>conftest.$ac_ext <<_ACEOF
17004/* end confdefs.h. */
17005$ac_includes_default
17006int
17007main ()
17008{
17009static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
17010test_array [0] = 0
17011
17012 ;
17013 return 0;
17014}
17015_ACEOF
17016rm -f conftest.$ac_objext
17017if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17018 (eval $ac_compile) 2>conftest.er1
a848cd7e 17019 ac_status=$?
ac1cb8d3
VS
17020 grep -v '^ *+' conftest.er1 >conftest.err
17021 rm -f conftest.er1
17022 cat conftest.err >&5
a848cd7e
SC
17023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17024 (exit $ac_status); } &&
17a7bf57 17025 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17027 (eval $ac_try) 2>&5
17028 ac_status=$?
17029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17030 (exit $ac_status); }; } &&
17031 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17033 (eval $ac_try) 2>&5
17034 ac_status=$?
17035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17036 (exit $ac_status); }; }; then
17037 ac_lo=0 ac_mid=0
17038 while :; do
17039 cat >conftest.$ac_ext <<_ACEOF
17040/* confdefs.h. */
17041_ACEOF
17042cat confdefs.h >>conftest.$ac_ext
17043cat >>conftest.$ac_ext <<_ACEOF
17044/* end confdefs.h. */
17045$ac_includes_default
17046int
17047main ()
17048{
17049static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
17050test_array [0] = 0
17051
17052 ;
17053 return 0;
17054}
17055_ACEOF
17056rm -f conftest.$ac_objext
17057if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17058 (eval $ac_compile) 2>conftest.er1
a848cd7e 17059 ac_status=$?
ac1cb8d3
VS
17060 grep -v '^ *+' conftest.er1 >conftest.err
17061 rm -f conftest.er1
17062 cat conftest.err >&5
a848cd7e
SC
17063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17064 (exit $ac_status); } &&
17a7bf57 17065 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17067 (eval $ac_try) 2>&5
17068 ac_status=$?
17069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17070 (exit $ac_status); }; } &&
17071 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17073 (eval $ac_try) 2>&5
17074 ac_status=$?
17075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17076 (exit $ac_status); }; }; then
17077 ac_hi=$ac_mid; break
17078else
17079 echo "$as_me: failed program was:" >&5
17080sed 's/^/| /' conftest.$ac_ext >&5
17081
17082ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
17083 if test $ac_lo -le $ac_mid; then
17084 ac_lo= ac_hi=
17085 break
17086 fi
17087 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 17088fi
ac1cb8d3 17089rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17090 done
17091else
17092 echo "$as_me: failed program was:" >&5
17093sed 's/^/| /' conftest.$ac_ext >&5
17094
17095cat >conftest.$ac_ext <<_ACEOF
17096/* confdefs.h. */
17097_ACEOF
17098cat confdefs.h >>conftest.$ac_ext
17099cat >>conftest.$ac_ext <<_ACEOF
17100/* end confdefs.h. */
17101$ac_includes_default
17102int
17103main ()
17104{
17105static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
17106test_array [0] = 0
17107
17108 ;
17109 return 0;
17110}
17111_ACEOF
17112rm -f conftest.$ac_objext
17113if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17114 (eval $ac_compile) 2>conftest.er1
a848cd7e 17115 ac_status=$?
ac1cb8d3
VS
17116 grep -v '^ *+' conftest.er1 >conftest.err
17117 rm -f conftest.er1
17118 cat conftest.err >&5
a848cd7e
SC
17119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17120 (exit $ac_status); } &&
17a7bf57 17121 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17123 (eval $ac_try) 2>&5
17124 ac_status=$?
17125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17126 (exit $ac_status); }; } &&
17127 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17129 (eval $ac_try) 2>&5
17130 ac_status=$?
17131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17132 (exit $ac_status); }; }; then
17133 ac_hi=-1 ac_mid=-1
17134 while :; do
17135 cat >conftest.$ac_ext <<_ACEOF
17136/* confdefs.h. */
17137_ACEOF
17138cat confdefs.h >>conftest.$ac_ext
17139cat >>conftest.$ac_ext <<_ACEOF
17140/* end confdefs.h. */
17141$ac_includes_default
17142int
17143main ()
17144{
17145static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
17146test_array [0] = 0
17147
17148 ;
17149 return 0;
17150}
17151_ACEOF
17152rm -f conftest.$ac_objext
17153if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17154 (eval $ac_compile) 2>conftest.er1
a848cd7e 17155 ac_status=$?
ac1cb8d3
VS
17156 grep -v '^ *+' conftest.er1 >conftest.err
17157 rm -f conftest.er1
17158 cat conftest.err >&5
a848cd7e
SC
17159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17160 (exit $ac_status); } &&
17a7bf57 17161 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17163 (eval $ac_try) 2>&5
17164 ac_status=$?
17165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17166 (exit $ac_status); }; } &&
17167 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17169 (eval $ac_try) 2>&5
17170 ac_status=$?
17171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17172 (exit $ac_status); }; }; then
17173 ac_lo=$ac_mid; break
17174else
17175 echo "$as_me: failed program was:" >&5
17176sed 's/^/| /' conftest.$ac_ext >&5
17177
17178ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
17179 if test $ac_mid -le $ac_hi; then
17180 ac_lo= ac_hi=
17181 break
17182 fi
17183 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 17184fi
ac1cb8d3 17185rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17186 done
17187else
17188 echo "$as_me: failed program was:" >&5
17189sed 's/^/| /' conftest.$ac_ext >&5
17190
17191ac_lo= ac_hi=
17192fi
ac1cb8d3 17193rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 17194fi
ac1cb8d3 17195rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17196# Binary search between lo and hi bounds.
17197while test "x$ac_lo" != "x$ac_hi"; do
17198 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
17199 cat >conftest.$ac_ext <<_ACEOF
17200/* confdefs.h. */
17201_ACEOF
17202cat confdefs.h >>conftest.$ac_ext
17203cat >>conftest.$ac_ext <<_ACEOF
17204/* end confdefs.h. */
17205$ac_includes_default
17206int
17207main ()
17208{
17209static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
17210test_array [0] = 0
17211
17212 ;
17213 return 0;
17214}
17215_ACEOF
17216rm -f conftest.$ac_objext
17217if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17218 (eval $ac_compile) 2>conftest.er1
a848cd7e 17219 ac_status=$?
ac1cb8d3
VS
17220 grep -v '^ *+' conftest.er1 >conftest.err
17221 rm -f conftest.er1
17222 cat conftest.err >&5
a848cd7e
SC
17223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17224 (exit $ac_status); } &&
17a7bf57 17225 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17227 (eval $ac_try) 2>&5
17228 ac_status=$?
17229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17230 (exit $ac_status); }; } &&
17231 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17233 (eval $ac_try) 2>&5
17234 ac_status=$?
17235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17236 (exit $ac_status); }; }; then
17237 ac_hi=$ac_mid
17238else
17239 echo "$as_me: failed program was:" >&5
17240sed 's/^/| /' conftest.$ac_ext >&5
17241
17242ac_lo=`expr '(' $ac_mid ')' + 1`
17243fi
ac1cb8d3 17244rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17245done
17246case $ac_lo in
17247?*) ac_cv_sizeof_long_long=$ac_lo;;
17248'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
17249See \`config.log' for more details." >&5
17250echo "$as_me: error: cannot compute sizeof (long long), 77
17251See \`config.log' for more details." >&2;}
17252 { (exit 1); exit 1; }; } ;;
17253esac
17254else
17255 if test "$cross_compiling" = yes; then
17a7bf57
RL
17256 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
17257echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
17258 { (exit 1); exit 1; }; }
17259else
17260 cat >conftest.$ac_ext <<_ACEOF
17261/* confdefs.h. */
17262_ACEOF
17263cat confdefs.h >>conftest.$ac_ext
17264cat >>conftest.$ac_ext <<_ACEOF
17265/* end confdefs.h. */
17266$ac_includes_default
17267long longval () { return (long) (sizeof (long long)); }
17268unsigned long ulongval () { return (long) (sizeof (long long)); }
17269#include <stdio.h>
17270#include <stdlib.h>
17271int
17272main ()
17273{
17274
17275 FILE *f = fopen ("conftest.val", "w");
17276 if (! f)
17277 exit (1);
17278 if (((long) (sizeof (long long))) < 0)
17279 {
17280 long i = longval ();
17281 if (i != ((long) (sizeof (long long))))
17282 exit (1);
17283 fprintf (f, "%ld\n", i);
17284 }
17285 else
17286 {
17287 unsigned long i = ulongval ();
17288 if (i != ((long) (sizeof (long long))))
17289 exit (1);
17290 fprintf (f, "%lu\n", i);
17291 }
17292 exit (ferror (f) || fclose (f) != 0);
17293
17294 ;
17295 return 0;
17296}
17297_ACEOF
17298rm -f conftest$ac_exeext
17299if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17300 (eval $ac_link) 2>&5
17301 ac_status=$?
17302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17303 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17305 (eval $ac_try) 2>&5
17306 ac_status=$?
17307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17308 (exit $ac_status); }; }; then
17309 ac_cv_sizeof_long_long=`cat conftest.val`
17310else
17311 echo "$as_me: program exited with status $ac_status" >&5
17312echo "$as_me: failed program was:" >&5
17313sed 's/^/| /' conftest.$ac_ext >&5
17314
17315( exit $ac_status )
17316{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
17317See \`config.log' for more details." >&5
17318echo "$as_me: error: cannot compute sizeof (long long), 77
17319See \`config.log' for more details." >&2;}
17320 { (exit 1); exit 1; }; }
17321fi
ac1cb8d3 17322rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17323fi
17324fi
17325rm -f conftest.val
17326else
17327 ac_cv_sizeof_long_long=0
17328fi
17329fi
17330echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
17331echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
17332cat >>confdefs.h <<_ACEOF
17333#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
17334_ACEOF
17335
17336
17337 ;;
17338 *-hp-hpux* )
17339 echo "$as_me:$LINENO: checking for long long" >&5
17340echo $ECHO_N "checking for long long... $ECHO_C" >&6
17341if test "${ac_cv_type_long_long+set}" = set; then
17342 echo $ECHO_N "(cached) $ECHO_C" >&6
17343else
17344 cat >conftest.$ac_ext <<_ACEOF
17345/* confdefs.h. */
17346_ACEOF
17347cat confdefs.h >>conftest.$ac_ext
17348cat >>conftest.$ac_ext <<_ACEOF
17349/* end confdefs.h. */
17350$ac_includes_default
17351int
17352main ()
17353{
17354if ((long long *) 0)
17355 return 0;
17356if (sizeof (long long))
17357 return 0;
17358 ;
17359 return 0;
17360}
17361_ACEOF
17362rm -f conftest.$ac_objext
17363if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17364 (eval $ac_compile) 2>conftest.er1
a848cd7e 17365 ac_status=$?
ac1cb8d3
VS
17366 grep -v '^ *+' conftest.er1 >conftest.err
17367 rm -f conftest.er1
17368 cat conftest.err >&5
a848cd7e
SC
17369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17370 (exit $ac_status); } &&
17a7bf57 17371 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17373 (eval $ac_try) 2>&5
17374 ac_status=$?
17375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17376 (exit $ac_status); }; } &&
17377 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17379 (eval $ac_try) 2>&5
17380 ac_status=$?
17381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17382 (exit $ac_status); }; }; then
17383 ac_cv_type_long_long=yes
17384else
17385 echo "$as_me: failed program was:" >&5
17386sed 's/^/| /' conftest.$ac_ext >&5
17387
17388ac_cv_type_long_long=no
17389fi
ac1cb8d3 17390rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17391fi
17392echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
17393echo "${ECHO_T}$ac_cv_type_long_long" >&6
17394
17395echo "$as_me:$LINENO: checking size of long long" >&5
17396echo $ECHO_N "checking size of long long... $ECHO_C" >&6
17397if test "${ac_cv_sizeof_long_long+set}" = set; then
17398 echo $ECHO_N "(cached) $ECHO_C" >&6
17399else
17400 if test "$ac_cv_type_long_long" = yes; then
17401 # The cast to unsigned long works around a bug in the HP C Compiler
17402 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17403 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17404 # This bug is HP SR number 8606223364.
17405 if test "$cross_compiling" = yes; then
17406 # Depending upon the size, compute the lo and hi bounds.
17407cat >conftest.$ac_ext <<_ACEOF
17408/* confdefs.h. */
17409_ACEOF
17410cat confdefs.h >>conftest.$ac_ext
17411cat >>conftest.$ac_ext <<_ACEOF
17412/* end confdefs.h. */
17413$ac_includes_default
17414int
17415main ()
17416{
17417static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
17418test_array [0] = 0
17419
17420 ;
17421 return 0;
17422}
17423_ACEOF
17424rm -f conftest.$ac_objext
17425if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17426 (eval $ac_compile) 2>conftest.er1
a848cd7e 17427 ac_status=$?
ac1cb8d3
VS
17428 grep -v '^ *+' conftest.er1 >conftest.err
17429 rm -f conftest.er1
17430 cat conftest.err >&5
a848cd7e
SC
17431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17432 (exit $ac_status); } &&
17a7bf57 17433 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17435 (eval $ac_try) 2>&5
17436 ac_status=$?
17437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17438 (exit $ac_status); }; } &&
17439 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17441 (eval $ac_try) 2>&5
17442 ac_status=$?
17443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17444 (exit $ac_status); }; }; then
17445 ac_lo=0 ac_mid=0
17446 while :; do
17447 cat >conftest.$ac_ext <<_ACEOF
17448/* confdefs.h. */
17449_ACEOF
17450cat confdefs.h >>conftest.$ac_ext
17451cat >>conftest.$ac_ext <<_ACEOF
17452/* end confdefs.h. */
17453$ac_includes_default
17454int
17455main ()
17456{
17457static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
17458test_array [0] = 0
17459
17460 ;
17461 return 0;
17462}
17463_ACEOF
17464rm -f conftest.$ac_objext
17465if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17466 (eval $ac_compile) 2>conftest.er1
a848cd7e 17467 ac_status=$?
ac1cb8d3
VS
17468 grep -v '^ *+' conftest.er1 >conftest.err
17469 rm -f conftest.er1
17470 cat conftest.err >&5
a848cd7e
SC
17471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17472 (exit $ac_status); } &&
17a7bf57 17473 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17475 (eval $ac_try) 2>&5
17476 ac_status=$?
17477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17478 (exit $ac_status); }; } &&
17479 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17481 (eval $ac_try) 2>&5
17482 ac_status=$?
17483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17484 (exit $ac_status); }; }; then
17485 ac_hi=$ac_mid; break
17486else
17487 echo "$as_me: failed program was:" >&5
17488sed 's/^/| /' conftest.$ac_ext >&5
17489
17490ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
17491 if test $ac_lo -le $ac_mid; then
17492 ac_lo= ac_hi=
17493 break
17494 fi
17495 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 17496fi
ac1cb8d3 17497rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17498 done
17499else
17500 echo "$as_me: failed program was:" >&5
17501sed 's/^/| /' conftest.$ac_ext >&5
17502
17503cat >conftest.$ac_ext <<_ACEOF
17504/* confdefs.h. */
17505_ACEOF
17506cat confdefs.h >>conftest.$ac_ext
17507cat >>conftest.$ac_ext <<_ACEOF
17508/* end confdefs.h. */
17509$ac_includes_default
17510int
17511main ()
17512{
17513static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
17514test_array [0] = 0
17515
17516 ;
17517 return 0;
17518}
17519_ACEOF
17520rm -f conftest.$ac_objext
17521if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17522 (eval $ac_compile) 2>conftest.er1
a848cd7e 17523 ac_status=$?
ac1cb8d3
VS
17524 grep -v '^ *+' conftest.er1 >conftest.err
17525 rm -f conftest.er1
17526 cat conftest.err >&5
a848cd7e
SC
17527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17528 (exit $ac_status); } &&
17a7bf57 17529 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17531 (eval $ac_try) 2>&5
17532 ac_status=$?
17533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17534 (exit $ac_status); }; } &&
17535 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17537 (eval $ac_try) 2>&5
17538 ac_status=$?
17539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17540 (exit $ac_status); }; }; then
17541 ac_hi=-1 ac_mid=-1
17542 while :; do
17543 cat >conftest.$ac_ext <<_ACEOF
17544/* confdefs.h. */
17545_ACEOF
17546cat confdefs.h >>conftest.$ac_ext
17547cat >>conftest.$ac_ext <<_ACEOF
17548/* end confdefs.h. */
17549$ac_includes_default
17550int
17551main ()
17552{
17553static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
17554test_array [0] = 0
17555
17556 ;
17557 return 0;
17558}
17559_ACEOF
17560rm -f conftest.$ac_objext
17561if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17562 (eval $ac_compile) 2>conftest.er1
a848cd7e 17563 ac_status=$?
ac1cb8d3
VS
17564 grep -v '^ *+' conftest.er1 >conftest.err
17565 rm -f conftest.er1
17566 cat conftest.err >&5
a848cd7e
SC
17567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17568 (exit $ac_status); } &&
17a7bf57 17569 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17571 (eval $ac_try) 2>&5
17572 ac_status=$?
17573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17574 (exit $ac_status); }; } &&
17575 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17577 (eval $ac_try) 2>&5
17578 ac_status=$?
17579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17580 (exit $ac_status); }; }; then
17581 ac_lo=$ac_mid; break
17582else
17583 echo "$as_me: failed program was:" >&5
17584sed 's/^/| /' conftest.$ac_ext >&5
17585
17586ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
17587 if test $ac_mid -le $ac_hi; then
17588 ac_lo= ac_hi=
17589 break
17590 fi
17591 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 17592fi
ac1cb8d3 17593rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17594 done
17595else
17596 echo "$as_me: failed program was:" >&5
17597sed 's/^/| /' conftest.$ac_ext >&5
17598
17599ac_lo= ac_hi=
17600fi
ac1cb8d3 17601rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 17602fi
ac1cb8d3 17603rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17604# Binary search between lo and hi bounds.
17605while test "x$ac_lo" != "x$ac_hi"; do
17606 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
17607 cat >conftest.$ac_ext <<_ACEOF
17608/* confdefs.h. */
17609_ACEOF
17610cat confdefs.h >>conftest.$ac_ext
17611cat >>conftest.$ac_ext <<_ACEOF
17612/* end confdefs.h. */
17613$ac_includes_default
17614int
17615main ()
17616{
17617static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
17618test_array [0] = 0
17619
17620 ;
17621 return 0;
17622}
17623_ACEOF
17624rm -f conftest.$ac_objext
17625if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17626 (eval $ac_compile) 2>conftest.er1
a848cd7e 17627 ac_status=$?
ac1cb8d3
VS
17628 grep -v '^ *+' conftest.er1 >conftest.err
17629 rm -f conftest.er1
17630 cat conftest.err >&5
a848cd7e
SC
17631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17632 (exit $ac_status); } &&
17a7bf57 17633 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17635 (eval $ac_try) 2>&5
17636 ac_status=$?
17637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17638 (exit $ac_status); }; } &&
17639 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17641 (eval $ac_try) 2>&5
17642 ac_status=$?
17643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17644 (exit $ac_status); }; }; then
17645 ac_hi=$ac_mid
17646else
17647 echo "$as_me: failed program was:" >&5
17648sed 's/^/| /' conftest.$ac_ext >&5
17649
17650ac_lo=`expr '(' $ac_mid ')' + 1`
17651fi
ac1cb8d3 17652rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17653done
17654case $ac_lo in
17655?*) ac_cv_sizeof_long_long=$ac_lo;;
17656'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
17657See \`config.log' for more details." >&5
17658echo "$as_me: error: cannot compute sizeof (long long), 77
17659See \`config.log' for more details." >&2;}
17660 { (exit 1); exit 1; }; } ;;
17661esac
17662else
17663 if test "$cross_compiling" = yes; then
17a7bf57
RL
17664 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
17665echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
17666 { (exit 1); exit 1; }; }
17667else
17668 cat >conftest.$ac_ext <<_ACEOF
17669/* confdefs.h. */
17670_ACEOF
17671cat confdefs.h >>conftest.$ac_ext
17672cat >>conftest.$ac_ext <<_ACEOF
17673/* end confdefs.h. */
17674$ac_includes_default
17675long longval () { return (long) (sizeof (long long)); }
17676unsigned long ulongval () { return (long) (sizeof (long long)); }
17677#include <stdio.h>
17678#include <stdlib.h>
17679int
17680main ()
17681{
17682
17683 FILE *f = fopen ("conftest.val", "w");
17684 if (! f)
17685 exit (1);
17686 if (((long) (sizeof (long long))) < 0)
17687 {
17688 long i = longval ();
17689 if (i != ((long) (sizeof (long long))))
17690 exit (1);
17691 fprintf (f, "%ld\n", i);
17692 }
17693 else
17694 {
17695 unsigned long i = ulongval ();
17696 if (i != ((long) (sizeof (long long))))
17697 exit (1);
17698 fprintf (f, "%lu\n", i);
17699 }
17700 exit (ferror (f) || fclose (f) != 0);
17701
17702 ;
17703 return 0;
17704}
17705_ACEOF
17706rm -f conftest$ac_exeext
17707if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17708 (eval $ac_link) 2>&5
17709 ac_status=$?
17710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17711 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17713 (eval $ac_try) 2>&5
17714 ac_status=$?
17715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17716 (exit $ac_status); }; }; then
17717 ac_cv_sizeof_long_long=`cat conftest.val`
17718else
17719 echo "$as_me: program exited with status $ac_status" >&5
17720echo "$as_me: failed program was:" >&5
17721sed 's/^/| /' conftest.$ac_ext >&5
17722
17723( exit $ac_status )
17724{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
17725See \`config.log' for more details." >&5
17726echo "$as_me: error: cannot compute sizeof (long long), 77
17727See \`config.log' for more details." >&2;}
17728 { (exit 1); exit 1; }; }
17729fi
ac1cb8d3 17730rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17731fi
17732fi
17733rm -f conftest.val
17734else
17735 ac_cv_sizeof_long_long=0
17736fi
17737fi
17738echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
17739echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
17740cat >>confdefs.h <<_ACEOF
17741#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
17742_ACEOF
17743
17744
17745 if test "$ac_cv_sizeof_long_long" != "0"; then
17746 CPPFLAGS="$CPPFLAGS -D_INCLUDE_LONGLONG"
17747 fi
17748 ;;
17749 * )
17750 echo "$as_me:$LINENO: checking for long long" >&5
17751echo $ECHO_N "checking for long long... $ECHO_C" >&6
17752if test "${ac_cv_type_long_long+set}" = set; then
17753 echo $ECHO_N "(cached) $ECHO_C" >&6
17754else
17755 cat >conftest.$ac_ext <<_ACEOF
17756/* confdefs.h. */
17757_ACEOF
17758cat confdefs.h >>conftest.$ac_ext
17759cat >>conftest.$ac_ext <<_ACEOF
17760/* end confdefs.h. */
17761$ac_includes_default
17762int
17763main ()
17764{
17765if ((long long *) 0)
17766 return 0;
17767if (sizeof (long long))
17768 return 0;
17769 ;
17770 return 0;
17771}
17772_ACEOF
17773rm -f conftest.$ac_objext
17774if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17775 (eval $ac_compile) 2>conftest.er1
a848cd7e 17776 ac_status=$?
ac1cb8d3
VS
17777 grep -v '^ *+' conftest.er1 >conftest.err
17778 rm -f conftest.er1
17779 cat conftest.err >&5
a848cd7e
SC
17780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17781 (exit $ac_status); } &&
17a7bf57 17782 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17784 (eval $ac_try) 2>&5
17785 ac_status=$?
17786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17787 (exit $ac_status); }; } &&
17788 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17790 (eval $ac_try) 2>&5
17791 ac_status=$?
17792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17793 (exit $ac_status); }; }; then
17794 ac_cv_type_long_long=yes
17795else
17796 echo "$as_me: failed program was:" >&5
17797sed 's/^/| /' conftest.$ac_ext >&5
17798
17799ac_cv_type_long_long=no
17800fi
ac1cb8d3 17801rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17802fi
17803echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
17804echo "${ECHO_T}$ac_cv_type_long_long" >&6
17805
17806echo "$as_me:$LINENO: checking size of long long" >&5
17807echo $ECHO_N "checking size of long long... $ECHO_C" >&6
17808if test "${ac_cv_sizeof_long_long+set}" = set; then
17809 echo $ECHO_N "(cached) $ECHO_C" >&6
17810else
17811 if test "$ac_cv_type_long_long" = yes; then
17812 # The cast to unsigned long works around a bug in the HP C Compiler
17813 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17814 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17815 # This bug is HP SR number 8606223364.
17816 if test "$cross_compiling" = yes; then
17817 # Depending upon the size, compute the lo and hi bounds.
17818cat >conftest.$ac_ext <<_ACEOF
17819/* confdefs.h. */
17820_ACEOF
17821cat confdefs.h >>conftest.$ac_ext
17822cat >>conftest.$ac_ext <<_ACEOF
17823/* end confdefs.h. */
17824$ac_includes_default
17825int
17826main ()
17827{
17828static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
17829test_array [0] = 0
17830
17831 ;
17832 return 0;
17833}
17834_ACEOF
17835rm -f conftest.$ac_objext
17836if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17837 (eval $ac_compile) 2>conftest.er1
a848cd7e 17838 ac_status=$?
ac1cb8d3
VS
17839 grep -v '^ *+' conftest.er1 >conftest.err
17840 rm -f conftest.er1
17841 cat conftest.err >&5
a848cd7e
SC
17842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17843 (exit $ac_status); } &&
17a7bf57 17844 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17846 (eval $ac_try) 2>&5
17847 ac_status=$?
17848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17849 (exit $ac_status); }; } &&
17850 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17852 (eval $ac_try) 2>&5
17853 ac_status=$?
17854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17855 (exit $ac_status); }; }; then
17856 ac_lo=0 ac_mid=0
17857 while :; do
17858 cat >conftest.$ac_ext <<_ACEOF
17859/* confdefs.h. */
17860_ACEOF
17861cat confdefs.h >>conftest.$ac_ext
17862cat >>conftest.$ac_ext <<_ACEOF
17863/* end confdefs.h. */
17864$ac_includes_default
17865int
17866main ()
17867{
17868static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
17869test_array [0] = 0
17870
17871 ;
17872 return 0;
17873}
17874_ACEOF
17875rm -f conftest.$ac_objext
17876if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17877 (eval $ac_compile) 2>conftest.er1
a848cd7e 17878 ac_status=$?
ac1cb8d3
VS
17879 grep -v '^ *+' conftest.er1 >conftest.err
17880 rm -f conftest.er1
17881 cat conftest.err >&5
a848cd7e
SC
17882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17883 (exit $ac_status); } &&
17a7bf57 17884 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17886 (eval $ac_try) 2>&5
17887 ac_status=$?
17888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17889 (exit $ac_status); }; } &&
17890 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17892 (eval $ac_try) 2>&5
17893 ac_status=$?
17894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17895 (exit $ac_status); }; }; then
17896 ac_hi=$ac_mid; break
17897else
17898 echo "$as_me: failed program was:" >&5
17899sed 's/^/| /' conftest.$ac_ext >&5
17900
17901ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
17902 if test $ac_lo -le $ac_mid; then
17903 ac_lo= ac_hi=
17904 break
17905 fi
17906 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 17907fi
ac1cb8d3 17908rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17909 done
17910else
17911 echo "$as_me: failed program was:" >&5
17912sed 's/^/| /' conftest.$ac_ext >&5
17913
17914cat >conftest.$ac_ext <<_ACEOF
17915/* confdefs.h. */
17916_ACEOF
17917cat confdefs.h >>conftest.$ac_ext
17918cat >>conftest.$ac_ext <<_ACEOF
17919/* end confdefs.h. */
17920$ac_includes_default
17921int
17922main ()
17923{
17924static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
17925test_array [0] = 0
17926
17927 ;
17928 return 0;
17929}
17930_ACEOF
17931rm -f conftest.$ac_objext
17932if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17933 (eval $ac_compile) 2>conftest.er1
a848cd7e 17934 ac_status=$?
ac1cb8d3
VS
17935 grep -v '^ *+' conftest.er1 >conftest.err
17936 rm -f conftest.er1
17937 cat conftest.err >&5
a848cd7e
SC
17938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17939 (exit $ac_status); } &&
17a7bf57 17940 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17942 (eval $ac_try) 2>&5
17943 ac_status=$?
17944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17945 (exit $ac_status); }; } &&
17946 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17948 (eval $ac_try) 2>&5
17949 ac_status=$?
17950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17951 (exit $ac_status); }; }; then
17952 ac_hi=-1 ac_mid=-1
17953 while :; do
17954 cat >conftest.$ac_ext <<_ACEOF
17955/* confdefs.h. */
17956_ACEOF
17957cat confdefs.h >>conftest.$ac_ext
17958cat >>conftest.$ac_ext <<_ACEOF
17959/* end confdefs.h. */
17960$ac_includes_default
17961int
17962main ()
17963{
17964static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
17965test_array [0] = 0
17966
17967 ;
17968 return 0;
17969}
17970_ACEOF
17971rm -f conftest.$ac_objext
17972if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17973 (eval $ac_compile) 2>conftest.er1
a848cd7e 17974 ac_status=$?
ac1cb8d3
VS
17975 grep -v '^ *+' conftest.er1 >conftest.err
17976 rm -f conftest.er1
17977 cat conftest.err >&5
a848cd7e
SC
17978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17979 (exit $ac_status); } &&
17a7bf57 17980 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17982 (eval $ac_try) 2>&5
17983 ac_status=$?
17984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17985 (exit $ac_status); }; } &&
17986 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17988 (eval $ac_try) 2>&5
17989 ac_status=$?
17990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17991 (exit $ac_status); }; }; then
17992 ac_lo=$ac_mid; break
17993else
17994 echo "$as_me: failed program was:" >&5
17995sed 's/^/| /' conftest.$ac_ext >&5
17996
17997ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
17998 if test $ac_mid -le $ac_hi; then
17999 ac_lo= ac_hi=
18000 break
18001 fi
18002 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 18003fi
ac1cb8d3 18004rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18005 done
18006else
18007 echo "$as_me: failed program was:" >&5
18008sed 's/^/| /' conftest.$ac_ext >&5
18009
18010ac_lo= ac_hi=
18011fi
ac1cb8d3 18012rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 18013fi
ac1cb8d3 18014rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18015# Binary search between lo and hi bounds.
18016while test "x$ac_lo" != "x$ac_hi"; do
18017 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18018 cat >conftest.$ac_ext <<_ACEOF
18019/* confdefs.h. */
18020_ACEOF
18021cat confdefs.h >>conftest.$ac_ext
18022cat >>conftest.$ac_ext <<_ACEOF
18023/* end confdefs.h. */
18024$ac_includes_default
18025int
18026main ()
18027{
18028static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
18029test_array [0] = 0
18030
18031 ;
18032 return 0;
18033}
18034_ACEOF
18035rm -f conftest.$ac_objext
18036if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18037 (eval $ac_compile) 2>conftest.er1
a848cd7e 18038 ac_status=$?
ac1cb8d3
VS
18039 grep -v '^ *+' conftest.er1 >conftest.err
18040 rm -f conftest.er1
18041 cat conftest.err >&5
a848cd7e
SC
18042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18043 (exit $ac_status); } &&
17a7bf57 18044 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18046 (eval $ac_try) 2>&5
18047 ac_status=$?
18048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18049 (exit $ac_status); }; } &&
18050 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18052 (eval $ac_try) 2>&5
18053 ac_status=$?
18054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18055 (exit $ac_status); }; }; then
18056 ac_hi=$ac_mid
18057else
18058 echo "$as_me: failed program was:" >&5
18059sed 's/^/| /' conftest.$ac_ext >&5
18060
18061ac_lo=`expr '(' $ac_mid ')' + 1`
18062fi
ac1cb8d3 18063rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18064done
18065case $ac_lo in
18066?*) ac_cv_sizeof_long_long=$ac_lo;;
18067'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
18068See \`config.log' for more details." >&5
18069echo "$as_me: error: cannot compute sizeof (long long), 77
18070See \`config.log' for more details." >&2;}
18071 { (exit 1); exit 1; }; } ;;
18072esac
18073else
18074 if test "$cross_compiling" = yes; then
17a7bf57
RL
18075 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
18076echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
18077 { (exit 1); exit 1; }; }
18078else
18079 cat >conftest.$ac_ext <<_ACEOF
18080/* confdefs.h. */
18081_ACEOF
18082cat confdefs.h >>conftest.$ac_ext
18083cat >>conftest.$ac_ext <<_ACEOF
18084/* end confdefs.h. */
18085$ac_includes_default
18086long longval () { return (long) (sizeof (long long)); }
18087unsigned long ulongval () { return (long) (sizeof (long long)); }
18088#include <stdio.h>
18089#include <stdlib.h>
18090int
18091main ()
18092{
18093
18094 FILE *f = fopen ("conftest.val", "w");
18095 if (! f)
18096 exit (1);
18097 if (((long) (sizeof (long long))) < 0)
18098 {
18099 long i = longval ();
18100 if (i != ((long) (sizeof (long long))))
18101 exit (1);
18102 fprintf (f, "%ld\n", i);
18103 }
18104 else
18105 {
18106 unsigned long i = ulongval ();
18107 if (i != ((long) (sizeof (long long))))
18108 exit (1);
18109 fprintf (f, "%lu\n", i);
18110 }
18111 exit (ferror (f) || fclose (f) != 0);
18112
18113 ;
18114 return 0;
18115}
18116_ACEOF
18117rm -f conftest$ac_exeext
18118if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18119 (eval $ac_link) 2>&5
18120 ac_status=$?
18121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18122 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18124 (eval $ac_try) 2>&5
18125 ac_status=$?
18126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18127 (exit $ac_status); }; }; then
18128 ac_cv_sizeof_long_long=`cat conftest.val`
18129else
18130 echo "$as_me: program exited with status $ac_status" >&5
18131echo "$as_me: failed program was:" >&5
18132sed 's/^/| /' conftest.$ac_ext >&5
18133
18134( exit $ac_status )
18135{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
18136See \`config.log' for more details." >&5
18137echo "$as_me: error: cannot compute sizeof (long long), 77
18138See \`config.log' for more details." >&2;}
18139 { (exit 1); exit 1; }; }
18140fi
ac1cb8d3 18141rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18142fi
18143fi
18144rm -f conftest.val
18145else
18146 ac_cv_sizeof_long_long=0
18147fi
18148fi
18149echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
18150echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
18151cat >>confdefs.h <<_ACEOF
18152#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
18153_ACEOF
18154
18155
18156esac
18157
18158echo "$as_me:$LINENO: checking size of wchar_t" >&5
18159echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6
18160if test "${wx_cv_sizeof_wchar_t+set}" = set; then
18161 echo $ECHO_N "(cached) $ECHO_C" >&6
18162else
18163
18164 if test "$cross_compiling" = yes; then
18165
18166 case "${host}" in
18167 *-pc-msdosdjgpp )
18168 wx_cv_sizeof_wchar_t=0
18169 ;;
18170 * )
18171 wx_cv_sizeof_wchar_t=4
18172 ;;
18173 esac
18174
18175
18176else
18177 cat >conftest.$ac_ext <<_ACEOF
18178/* confdefs.h. */
18179_ACEOF
18180cat confdefs.h >>conftest.$ac_ext
18181cat >>conftest.$ac_ext <<_ACEOF
18182/* end confdefs.h. */
18183
18184 /* DJGPP only has fake wchar_t: */
18185 #ifdef __DJGPP__
18186 # error "fake wchar_t"
18187 #endif
18188 #ifdef HAVE_WCHAR_H
18189 # ifdef __CYGWIN__
18190 # include <stddef.h>
18191 # endif
18192 # include <wchar.h>
18193 #endif
18194 #ifdef HAVE_STDLIB_H
18195 # include <stdlib.h>
18196 #endif
18197 #include <stdio.h>
18198 int main()
18199 {
18200 FILE *f=fopen("conftestval", "w");
18201 if (!f) exit(1);
18202 fprintf(f, "%i", sizeof(wchar_t));
18203 exit(0);
18204 }
18205
18206_ACEOF
18207rm -f conftest$ac_exeext
18208if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18209 (eval $ac_link) 2>&5
18210 ac_status=$?
18211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18212 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18214 (eval $ac_try) 2>&5
18215 ac_status=$?
18216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18217 (exit $ac_status); }; }; then
18218 wx_cv_sizeof_wchar_t=`cat conftestval`
18219else
18220 echo "$as_me: program exited with status $ac_status" >&5
18221echo "$as_me: failed program was:" >&5
18222sed 's/^/| /' conftest.$ac_ext >&5
18223
18224( exit $ac_status )
18225wx_cv_sizeof_wchar_t=0
18226fi
ac1cb8d3 18227rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18228fi
18229
18230fi
18231echo "$as_me:$LINENO: result: $wx_cv_sizeof_wchar_t" >&5
18232echo "${ECHO_T}$wx_cv_sizeof_wchar_t" >&6
18233
18234cat >>confdefs.h <<_ACEOF
18235#define SIZEOF_WCHAR_T $wx_cv_sizeof_wchar_t
18236_ACEOF
18237
18238
ba3d13e1
VZ
18239echo "$as_me:$LINENO: checking for va_copy" >&5
18240echo $ECHO_N "checking for va_copy... $ECHO_C" >&6
18241if test "${wx_cv_func_va_copy+set}" = set; then
18242 echo $ECHO_N "(cached) $ECHO_C" >&6
18243else
18244
18245 cat >conftest.$ac_ext <<_ACEOF
18246
18247 #include <stdarg.h>
18248 void foo(char *f, ...)
18249 {
18250 va_list ap1, ap2;
18251 va_start(ap1, f);
18252 va_copy(ap2, ap1);
18253 va_end(ap2);
18254 va_end(ap1);
18255 }
18256_ACEOF
18257rm -f conftest.$ac_objext conftest$ac_exeext
18258if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18259 (eval $ac_link) 2>conftest.er1
18260 ac_status=$?
18261 grep -v '^ *+' conftest.er1 >conftest.err
18262 rm -f conftest.er1
18263 cat conftest.err >&5
18264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18265 (exit $ac_status); } &&
17a7bf57 18266 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ba3d13e1
VZ
18267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18268 (eval $ac_try) 2>&5
18269 ac_status=$?
18270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18271 (exit $ac_status); }; } &&
18272 { ac_try='test -s conftest$ac_exeext'
18273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18274 (eval $ac_try) 2>&5
18275 ac_status=$?
18276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18277 (exit $ac_status); }; }; then
18278 wx_cv_func_va_copy=yes
18279else
18280 echo "$as_me: failed program was:" >&5
18281sed 's/^/| /' conftest.$ac_ext >&5
18282
18283wx_cv_func_va_copy=no
18284
18285fi
18286rm -f conftest.err conftest.$ac_objext \
18287 conftest$ac_exeext conftest.$ac_ext
18288
18289
18290fi
18291echo "$as_me:$LINENO: result: $wx_cv_func_va_copy" >&5
18292echo "${ECHO_T}$wx_cv_func_va_copy" >&6
18293
18294if test $wx_cv_func_va_copy = "yes"; then
18295 cat >>confdefs.h <<\_ACEOF
18296#define HAVE_VA_COPY 1
18297_ACEOF
18298
18299else
18300 echo "$as_me:$LINENO: checking if va_list can be copied by value" >&5
18301echo $ECHO_N "checking if va_list can be copied by value... $ECHO_C" >&6
18302if test "${wx_cv_type_va_list_lvalue+set}" = set; then
18303 echo $ECHO_N "(cached) $ECHO_C" >&6
18304else
18305
18306 if test "$cross_compiling" = yes; then
18307 wx_cv_type_va_list_lvalue=yes
18308
18309else
18310 cat >conftest.$ac_ext <<_ACEOF
18311
18312 #include <stdarg.h>
18313 int foo(char *f, ...)
18314 {
18315 va_list ap1, ap2;
18316 va_start(ap1, f);
18317 ap2 = ap1;
18318 if ( va_arg(ap1, int) != 17 || va_arg(ap2, int) != 17 )
18319 return 1;
18320 va_end(ap2);
18321 va_end(ap1);
18322 return 0;
18323 }
18324 int main()
18325 {
18326 return foo("hi", 17);
18327 }
18328_ACEOF
18329rm -f conftest$ac_exeext
18330if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18331 (eval $ac_link) 2>&5
18332 ac_status=$?
18333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18334 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18336 (eval $ac_try) 2>&5
18337 ac_status=$?
18338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18339 (exit $ac_status); }; }; then
18340 wx_cv_type_va_list_lvalue=yes
18341else
18342 echo "$as_me: program exited with status $ac_status" >&5
18343echo "$as_me: failed program was:" >&5
18344sed 's/^/| /' conftest.$ac_ext >&5
18345
18346( exit $ac_status )
18347wx_cv_type_va_list_lvalue=no
18348fi
18349rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18350fi
18351
18352
18353fi
18354echo "$as_me:$LINENO: result: $wx_cv_type_va_list_lvalue" >&5
18355echo "${ECHO_T}$wx_cv_type_va_list_lvalue" >&6
18356
18357 if test $wx_cv_type_va_list_lvalue != "yes"; then
18358 cat >>confdefs.h <<\_ACEOF
18359#define VA_LIST_IS_ARRAY 1
18360_ACEOF
18361
18362 fi
18363fi
18364
a848cd7e
SC
18365# Check whether --enable-largefile or --disable-largefile was given.
18366if test "${enable_largefile+set}" = set; then
18367 enableval="$enable_largefile"
18368
18369fi;
18370if test "$enable_largefile" != no; then
18371 wx_largefile=no
18372
18373 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
18374echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
18375if test "${ac_cv_sys_file_offset_bits+set}" = set; then
18376 echo $ECHO_N "(cached) $ECHO_C" >&6
18377else
18378
18379 cat >conftest.$ac_ext <<_ACEOF
18380/* confdefs.h. */
18381_ACEOF
18382cat confdefs.h >>conftest.$ac_ext
18383cat >>conftest.$ac_ext <<_ACEOF
18384/* end confdefs.h. */
18385#define _FILE_OFFSET_BITS 64
18386 #include <sys/types.h>
18387int
18388main ()
18389{
18390typedef struct {
18391 unsigned int field: sizeof(off_t) == 8;
18392} wxlf;
18393
18394 ;
18395 return 0;
18396}
18397_ACEOF
18398rm -f conftest.$ac_objext
18399if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18400 (eval $ac_compile) 2>conftest.er1
a848cd7e 18401 ac_status=$?
ac1cb8d3
VS
18402 grep -v '^ *+' conftest.er1 >conftest.err
18403 rm -f conftest.er1
18404 cat conftest.err >&5
a848cd7e
SC
18405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18406 (exit $ac_status); } &&
17a7bf57 18407 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18409 (eval $ac_try) 2>&5
18410 ac_status=$?
18411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18412 (exit $ac_status); }; } &&
18413 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18415 (eval $ac_try) 2>&5
18416 ac_status=$?
18417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18418 (exit $ac_status); }; }; then
18419 ac_cv_sys_file_offset_bits=64
18420else
18421 echo "$as_me: failed program was:" >&5
18422sed 's/^/| /' conftest.$ac_ext >&5
18423
18424ac_cv_sys_file_offset_bits=no
18425fi
ac1cb8d3 18426rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18427
18428
18429fi
18430echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
18431echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
18432
18433 if test "$ac_cv_sys_file_offset_bits" != no; then
18434 wx_largefile=yes
18435 cat >>confdefs.h <<_ACEOF
18436#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
18437_ACEOF
18438
18439 fi
18440
18441 if test "x$wx_largefile" != "xyes"; then
18442
18443 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
18444echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
18445if test "${ac_cv_sys_large_files+set}" = set; then
18446 echo $ECHO_N "(cached) $ECHO_C" >&6
18447else
18448
18449 cat >conftest.$ac_ext <<_ACEOF
18450/* confdefs.h. */
18451_ACEOF
18452cat confdefs.h >>conftest.$ac_ext
18453cat >>conftest.$ac_ext <<_ACEOF
18454/* end confdefs.h. */
18455#define _LARGE_FILES 1
18456 #include <sys/types.h>
18457int
18458main ()
18459{
18460typedef struct {
18461 unsigned int field: sizeof(off_t) == 8;
18462} wxlf;
18463
18464 ;
18465 return 0;
18466}
18467_ACEOF
18468rm -f conftest.$ac_objext
18469if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18470 (eval $ac_compile) 2>conftest.er1
a848cd7e 18471 ac_status=$?
ac1cb8d3
VS
18472 grep -v '^ *+' conftest.er1 >conftest.err
18473 rm -f conftest.er1
18474 cat conftest.err >&5
a848cd7e
SC
18475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18476 (exit $ac_status); } &&
17a7bf57 18477 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18479 (eval $ac_try) 2>&5
18480 ac_status=$?
18481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18482 (exit $ac_status); }; } &&
18483 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18485 (eval $ac_try) 2>&5
18486 ac_status=$?
18487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18488 (exit $ac_status); }; }; then
18489 ac_cv_sys_large_files=1
18490else
18491 echo "$as_me: failed program was:" >&5
18492sed 's/^/| /' conftest.$ac_ext >&5
18493
18494ac_cv_sys_large_files=no
18495fi
ac1cb8d3 18496rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18497
18498
18499fi
18500echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
18501echo "${ECHO_T}$ac_cv_sys_large_files" >&6
18502
18503 if test "$ac_cv_sys_large_files" != no; then
18504 wx_largefile=yes
18505 cat >>confdefs.h <<_ACEOF
18506#define _LARGE_FILES $ac_cv_sys_large_files
18507_ACEOF
18508
18509 fi
18510
18511 fi
18512
18513 echo "$as_me:$LINENO: checking if large file support is available" >&5
18514echo $ECHO_N "checking if large file support is available... $ECHO_C" >&6
18515 if test "x$wx_largefile" = "xyes"; then
18516 cat >>confdefs.h <<\_ACEOF
18517#define HAVE_LARGEFILE_SUPPORT 1
18518_ACEOF
18519
18520 fi
18521 echo "$as_me:$LINENO: result: $wx_largefile" >&5
18522echo "${ECHO_T}$wx_largefile" >&6
18523fi
18524
18525
18526if test "x$wx_largefile" = "xyes"; then
18527 if test "x$ac_cv_sys_file_offset_bits" = "x64"; then
18528 WX_LARGEFILE_FLAGS="-D_FILE_OFFSET_BITS=64 -D_LARGE_FILES"
18529 else
18530 WX_LARGEFILE_FLAGS="-D_LARGE_FILES"
18531 fi
18532 CPPFLAGS="$CPPFLAGS $WX_LARGEFILE_FLAGS"
18533fi
18534
18535echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
18536echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
18537if test "${ac_cv_c_bigendian+set}" = set; then
18538 echo $ECHO_N "(cached) $ECHO_C" >&6
18539else
18540 ac_cv_c_bigendian=unknown
18541# See if sys/param.h defines the BYTE_ORDER macro.
18542cat >conftest.$ac_ext <<_ACEOF
18543/* confdefs.h. */
18544_ACEOF
18545cat confdefs.h >>conftest.$ac_ext
18546cat >>conftest.$ac_ext <<_ACEOF
18547/* end confdefs.h. */
18548#include <sys/types.h>
18549#include <sys/param.h>
18550int
18551main ()
18552{
18553
18554#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
18555 bogus endian macros
18556#endif
18557 ;
18558 return 0;
18559}
18560_ACEOF
18561rm -f conftest.$ac_objext
18562if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18563 (eval $ac_compile) 2>conftest.er1
a848cd7e 18564 ac_status=$?
ac1cb8d3
VS
18565 grep -v '^ *+' conftest.er1 >conftest.err
18566 rm -f conftest.er1
18567 cat conftest.err >&5
a848cd7e
SC
18568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18569 (exit $ac_status); } &&
17a7bf57 18570 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18572 (eval $ac_try) 2>&5
18573 ac_status=$?
18574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18575 (exit $ac_status); }; } &&
18576 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18578 (eval $ac_try) 2>&5
18579 ac_status=$?
18580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18581 (exit $ac_status); }; }; then
18582 # It does; now see whether it defined to BIG_ENDIAN or not.
18583cat >conftest.$ac_ext <<_ACEOF
18584/* confdefs.h. */
18585_ACEOF
18586cat confdefs.h >>conftest.$ac_ext
18587cat >>conftest.$ac_ext <<_ACEOF
18588/* end confdefs.h. */
18589#include <sys/types.h>
18590#include <sys/param.h>
18591int
18592main ()
18593{
18594
18595#if BYTE_ORDER != BIG_ENDIAN
18596 not big endian
18597#endif
18598 ;
18599 return 0;
18600}
18601_ACEOF
18602rm -f conftest.$ac_objext
18603if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18604 (eval $ac_compile) 2>conftest.er1
a848cd7e 18605 ac_status=$?
ac1cb8d3
VS
18606 grep -v '^ *+' conftest.er1 >conftest.err
18607 rm -f conftest.er1
18608 cat conftest.err >&5
a848cd7e
SC
18609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18610 (exit $ac_status); } &&
17a7bf57 18611 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18613 (eval $ac_try) 2>&5
18614 ac_status=$?
18615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18616 (exit $ac_status); }; } &&
18617 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18619 (eval $ac_try) 2>&5
18620 ac_status=$?
18621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18622 (exit $ac_status); }; }; then
18623 ac_cv_c_bigendian=yes
18624else
18625 echo "$as_me: failed program was:" >&5
18626sed 's/^/| /' conftest.$ac_ext >&5
18627
18628ac_cv_c_bigendian=no
18629fi
ac1cb8d3 18630rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18631else
18632 echo "$as_me: failed program was:" >&5
18633sed 's/^/| /' conftest.$ac_ext >&5
18634
18635fi
ac1cb8d3 18636rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18637if test $ac_cv_c_bigendian = unknown; then
18638if test "$cross_compiling" = yes; then
18639 ac_cv_c_bigendian=unknown
18640else
18641 cat >conftest.$ac_ext <<_ACEOF
18642/* confdefs.h. */
18643_ACEOF
18644cat confdefs.h >>conftest.$ac_ext
18645cat >>conftest.$ac_ext <<_ACEOF
18646/* end confdefs.h. */
18647main () {
18648 /* Are we little or big endian? From Harbison&Steele. */
18649 union
18650 {
18651 long l;
18652 char c[sizeof (long)];
18653 } u;
18654 u.l = 1;
18655 exit (u.c[sizeof (long) - 1] == 1);
18656}
18657_ACEOF
18658rm -f conftest$ac_exeext
18659if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18660 (eval $ac_link) 2>&5
18661 ac_status=$?
18662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18663 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18665 (eval $ac_try) 2>&5
18666 ac_status=$?
18667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18668 (exit $ac_status); }; }; then
18669 ac_cv_c_bigendian=no
18670else
18671 echo "$as_me: program exited with status $ac_status" >&5
18672echo "$as_me: failed program was:" >&5
18673sed 's/^/| /' conftest.$ac_ext >&5
18674
18675( exit $ac_status )
18676ac_cv_c_bigendian=yes
18677fi
ac1cb8d3 18678rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18679fi
18680fi
18681fi
18682echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
18683echo "${ECHO_T}$ac_cv_c_bigendian" >&6
18684if test $ac_cv_c_bigendian = unknown; then
18685 { 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
18686echo "$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;}
18687fi
18688if test $ac_cv_c_bigendian = yes; then
18689 cat >>confdefs.h <<\_ACEOF
18690#define WORDS_BIGENDIAN 1
18691_ACEOF
18692
18693fi
18694
18695
18696ac_ext=cc
18697ac_cpp='$CXXCPP $CPPFLAGS'
18698ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18699ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18700ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18701echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
18702echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
18703if test -z "$CXXCPP"; then
18704 if test "${ac_cv_prog_CXXCPP+set}" = set; then
18705 echo $ECHO_N "(cached) $ECHO_C" >&6
18706else
18707 # Double quotes because CXXCPP needs to be expanded
18708 for CXXCPP in "$CXX -E" "/lib/cpp"
18709 do
18710 ac_preproc_ok=false
18711for ac_cxx_preproc_warn_flag in '' yes
18712do
18713 # Use a header file that comes with gcc, so configuring glibc
18714 # with a fresh cross-compiler works.
18715 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18716 # <limits.h> exists even on freestanding compilers.
18717 # On the NeXT, cc -E runs the code through the compiler's parser,
18718 # not just through cpp. "Syntax error" is here to catch this case.
18719 cat >conftest.$ac_ext <<_ACEOF
18720/* confdefs.h. */
18721_ACEOF
18722cat confdefs.h >>conftest.$ac_ext
18723cat >>conftest.$ac_ext <<_ACEOF
18724/* end confdefs.h. */
18725#ifdef __STDC__
18726# include <limits.h>
18727#else
18728# include <assert.h>
18729#endif
ac1cb8d3 18730 Syntax error
a848cd7e
SC
18731_ACEOF
18732if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18733 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18734 ac_status=$?
18735 grep -v '^ *+' conftest.er1 >conftest.err
18736 rm -f conftest.er1
18737 cat conftest.err >&5
18738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18739 (exit $ac_status); } >/dev/null; then
18740 if test -s conftest.err; then
18741 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 18742 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
18743 else
18744 ac_cpp_err=
18745 fi
18746else
18747 ac_cpp_err=yes
18748fi
18749if test -z "$ac_cpp_err"; then
18750 :
18751else
18752 echo "$as_me: failed program was:" >&5
18753sed 's/^/| /' conftest.$ac_ext >&5
18754
18755 # Broken: fails on valid input.
18756continue
18757fi
18758rm -f conftest.err conftest.$ac_ext
18759
18760 # OK, works on sane cases. Now check whether non-existent headers
18761 # can be detected and how.
18762 cat >conftest.$ac_ext <<_ACEOF
18763/* confdefs.h. */
18764_ACEOF
18765cat confdefs.h >>conftest.$ac_ext
18766cat >>conftest.$ac_ext <<_ACEOF
18767/* end confdefs.h. */
18768#include <ac_nonexistent.h>
18769_ACEOF
18770if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18771 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18772 ac_status=$?
18773 grep -v '^ *+' conftest.er1 >conftest.err
18774 rm -f conftest.er1
18775 cat conftest.err >&5
18776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18777 (exit $ac_status); } >/dev/null; then
18778 if test -s conftest.err; then
18779 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 18780 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
18781 else
18782 ac_cpp_err=
18783 fi
18784else
18785 ac_cpp_err=yes
18786fi
18787if test -z "$ac_cpp_err"; then
18788 # Broken: success on invalid input.
18789continue
18790else
18791 echo "$as_me: failed program was:" >&5
18792sed 's/^/| /' conftest.$ac_ext >&5
18793
18794 # Passes both tests.
18795ac_preproc_ok=:
18796break
18797fi
18798rm -f conftest.err conftest.$ac_ext
18799
18800done
18801# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18802rm -f conftest.err conftest.$ac_ext
18803if $ac_preproc_ok; then
18804 break
18805fi
18806
18807 done
18808 ac_cv_prog_CXXCPP=$CXXCPP
18809
18810fi
18811 CXXCPP=$ac_cv_prog_CXXCPP
18812else
18813 ac_cv_prog_CXXCPP=$CXXCPP
18814fi
18815echo "$as_me:$LINENO: result: $CXXCPP" >&5
18816echo "${ECHO_T}$CXXCPP" >&6
18817ac_preproc_ok=false
18818for ac_cxx_preproc_warn_flag in '' yes
18819do
18820 # Use a header file that comes with gcc, so configuring glibc
18821 # with a fresh cross-compiler works.
18822 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18823 # <limits.h> exists even on freestanding compilers.
18824 # On the NeXT, cc -E runs the code through the compiler's parser,
18825 # not just through cpp. "Syntax error" is here to catch this case.
18826 cat >conftest.$ac_ext <<_ACEOF
18827/* confdefs.h. */
18828_ACEOF
18829cat confdefs.h >>conftest.$ac_ext
18830cat >>conftest.$ac_ext <<_ACEOF
18831/* end confdefs.h. */
18832#ifdef __STDC__
18833# include <limits.h>
18834#else
18835# include <assert.h>
18836#endif
ac1cb8d3 18837 Syntax error
a848cd7e
SC
18838_ACEOF
18839if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18840 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18841 ac_status=$?
18842 grep -v '^ *+' conftest.er1 >conftest.err
18843 rm -f conftest.er1
18844 cat conftest.err >&5
18845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18846 (exit $ac_status); } >/dev/null; then
18847 if test -s conftest.err; then
18848 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 18849 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
18850 else
18851 ac_cpp_err=
18852 fi
18853else
18854 ac_cpp_err=yes
18855fi
18856if test -z "$ac_cpp_err"; then
18857 :
18858else
18859 echo "$as_me: failed program was:" >&5
18860sed 's/^/| /' conftest.$ac_ext >&5
18861
18862 # Broken: fails on valid input.
18863continue
18864fi
18865rm -f conftest.err conftest.$ac_ext
18866
18867 # OK, works on sane cases. Now check whether non-existent headers
18868 # can be detected and how.
18869 cat >conftest.$ac_ext <<_ACEOF
18870/* confdefs.h. */
18871_ACEOF
18872cat confdefs.h >>conftest.$ac_ext
18873cat >>conftest.$ac_ext <<_ACEOF
18874/* end confdefs.h. */
18875#include <ac_nonexistent.h>
18876_ACEOF
18877if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18878 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18879 ac_status=$?
18880 grep -v '^ *+' conftest.er1 >conftest.err
18881 rm -f conftest.er1
18882 cat conftest.err >&5
18883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18884 (exit $ac_status); } >/dev/null; then
18885 if test -s conftest.err; then
18886 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 18887 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
18888 else
18889 ac_cpp_err=
18890 fi
18891else
18892 ac_cpp_err=yes
18893fi
18894if test -z "$ac_cpp_err"; then
18895 # Broken: success on invalid input.
18896continue
18897else
18898 echo "$as_me: failed program was:" >&5
18899sed 's/^/| /' conftest.$ac_ext >&5
18900
18901 # Passes both tests.
18902ac_preproc_ok=:
18903break
18904fi
18905rm -f conftest.err conftest.$ac_ext
18906
18907done
18908# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18909rm -f conftest.err conftest.$ac_ext
18910if $ac_preproc_ok; then
18911 :
18912else
18913 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
18914See \`config.log' for more details." >&5
18915echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
18916See \`config.log' for more details." >&2;}
18917 { (exit 1); exit 1; }; }
18918fi
18919
18920ac_ext=cc
18921ac_cpp='$CXXCPP $CPPFLAGS'
18922ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18923ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18924ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18925
18926
18927
18928
18929
18930 ac_ext=cc
18931ac_cpp='$CXXCPP $CPPFLAGS'
18932ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18933ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18934ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18935
18936
18937
18938for ac_header in iostream
18939do
18940as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18941if eval "test \"\${$as_ac_Header+set}\" = set"; then
18942 echo "$as_me:$LINENO: checking for $ac_header" >&5
18943echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18944if eval "test \"\${$as_ac_Header+set}\" = set"; then
18945 echo $ECHO_N "(cached) $ECHO_C" >&6
18946fi
18947echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18948echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18949else
18950 # Is the header compilable?
18951echo "$as_me:$LINENO: checking $ac_header usability" >&5
18952echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18953cat >conftest.$ac_ext <<_ACEOF
18954/* confdefs.h. */
18955_ACEOF
18956cat confdefs.h >>conftest.$ac_ext
18957cat >>conftest.$ac_ext <<_ACEOF
18958/* end confdefs.h. */
18959$ac_includes_default
18960#include <$ac_header>
18961_ACEOF
18962rm -f conftest.$ac_objext
18963if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18964 (eval $ac_compile) 2>conftest.er1
a848cd7e 18965 ac_status=$?
ac1cb8d3
VS
18966 grep -v '^ *+' conftest.er1 >conftest.err
18967 rm -f conftest.er1
18968 cat conftest.err >&5
a848cd7e
SC
18969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18970 (exit $ac_status); } &&
17a7bf57 18971 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18973 (eval $ac_try) 2>&5
18974 ac_status=$?
18975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18976 (exit $ac_status); }; } &&
18977 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18979 (eval $ac_try) 2>&5
18980 ac_status=$?
18981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18982 (exit $ac_status); }; }; then
18983 ac_header_compiler=yes
18984else
18985 echo "$as_me: failed program was:" >&5
18986sed 's/^/| /' conftest.$ac_ext >&5
18987
18988ac_header_compiler=no
18989fi
ac1cb8d3 18990rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18991echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18992echo "${ECHO_T}$ac_header_compiler" >&6
18993
18994# Is the header present?
18995echo "$as_me:$LINENO: checking $ac_header presence" >&5
18996echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18997cat >conftest.$ac_ext <<_ACEOF
18998/* confdefs.h. */
18999_ACEOF
19000cat confdefs.h >>conftest.$ac_ext
19001cat >>conftest.$ac_ext <<_ACEOF
19002/* end confdefs.h. */
19003#include <$ac_header>
19004_ACEOF
19005if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19006 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19007 ac_status=$?
19008 grep -v '^ *+' conftest.er1 >conftest.err
19009 rm -f conftest.er1
19010 cat conftest.err >&5
19011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19012 (exit $ac_status); } >/dev/null; then
19013 if test -s conftest.err; then
19014 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 19015 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
19016 else
19017 ac_cpp_err=
19018 fi
19019else
19020 ac_cpp_err=yes
19021fi
19022if test -z "$ac_cpp_err"; then
19023 ac_header_preproc=yes
19024else
19025 echo "$as_me: failed program was:" >&5
19026sed 's/^/| /' conftest.$ac_ext >&5
19027
19028 ac_header_preproc=no
19029fi
19030rm -f conftest.err conftest.$ac_ext
19031echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19032echo "${ECHO_T}$ac_header_preproc" >&6
19033
19034# So? What about this header?
ac1cb8d3
VS
19035case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
19036 yes:no: )
a848cd7e
SC
19037 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19038echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
19039 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19040echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19041 ac_header_preproc=yes
a848cd7e 19042 ;;
ac1cb8d3 19043 no:yes:* )
a848cd7e
SC
19044 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19045echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
19046 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19047echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19048 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19049echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19050 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19051echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
19052 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19053echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
19054 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19055echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
19056 (
19057 cat <<\_ASBOX
ac1cb8d3
VS
19058## ----------------------------------------- ##
19059## Report this to wx-dev@lists.wxwidgets.org ##
19060## ----------------------------------------- ##
a848cd7e
SC
19061_ASBOX
19062 ) |
19063 sed "s/^/$as_me: WARNING: /" >&2
19064 ;;
19065esac
19066echo "$as_me:$LINENO: checking for $ac_header" >&5
19067echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19068if eval "test \"\${$as_ac_Header+set}\" = set"; then
19069 echo $ECHO_N "(cached) $ECHO_C" >&6
19070else
ac1cb8d3 19071 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
19072fi
19073echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19074echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19075
19076fi
19077if test `eval echo '${'$as_ac_Header'}'` = yes; then
19078 cat >>confdefs.h <<_ACEOF
19079#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19080_ACEOF
19081
19082fi
19083
19084done
19085
19086
19087 if test "$ac_cv_header_iostream" = "yes" ; then
19088 :
19089 else
19090 cat >>confdefs.h <<\_ACEOF
19091#define wxUSE_IOSTREAMH 1
19092_ACEOF
19093
19094 fi
19095
19096 ac_ext=c
19097ac_cpp='$CPP $CPPFLAGS'
19098ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19099ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19100ac_compiler_gnu=$ac_cv_c_compiler_gnu
19101
19102
19103
19104
19105 echo "$as_me:$LINENO: checking if C++ compiler supports bool" >&5
19106echo $ECHO_N "checking if C++ compiler supports bool... $ECHO_C" >&6
19107if test "${wx_cv_cpp_bool+set}" = set; then
19108 echo $ECHO_N "(cached) $ECHO_C" >&6
19109else
19110
19111
19112
19113 ac_ext=cc
19114ac_cpp='$CXXCPP $CPPFLAGS'
19115ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19116ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19117ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19118
19119
19120 cat >conftest.$ac_ext <<_ACEOF
19121/* confdefs.h. */
19122_ACEOF
19123cat confdefs.h >>conftest.$ac_ext
19124cat >>conftest.$ac_ext <<_ACEOF
19125/* end confdefs.h. */
19126
19127
19128int
19129main ()
19130{
19131
19132 bool b = true;
19133
19134 return 0;
19135
19136 ;
19137 return 0;
19138}
19139_ACEOF
19140rm -f conftest.$ac_objext
19141if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19142 (eval $ac_compile) 2>conftest.er1
a848cd7e 19143 ac_status=$?
ac1cb8d3
VS
19144 grep -v '^ *+' conftest.er1 >conftest.err
19145 rm -f conftest.er1
19146 cat conftest.err >&5
a848cd7e
SC
19147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19148 (exit $ac_status); } &&
17a7bf57 19149 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19151 (eval $ac_try) 2>&5
19152 ac_status=$?
19153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19154 (exit $ac_status); }; } &&
19155 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19157 (eval $ac_try) 2>&5
19158 ac_status=$?
19159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19160 (exit $ac_status); }; }; then
19161
19162 wx_cv_cpp_bool=yes
19163
19164else
19165 echo "$as_me: failed program was:" >&5
19166sed 's/^/| /' conftest.$ac_ext >&5
19167
19168
19169 wx_cv_cpp_bool=no
19170
19171
19172fi
ac1cb8d3 19173rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19174
19175 ac_ext=c
19176ac_cpp='$CPP $CPPFLAGS'
19177ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19178ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19179ac_compiler_gnu=$ac_cv_c_compiler_gnu
19180
19181
19182fi
19183echo "$as_me:$LINENO: result: $wx_cv_cpp_bool" >&5
19184echo "${ECHO_T}$wx_cv_cpp_bool" >&6
19185
19186 if test "$wx_cv_cpp_bool" = "yes"; then
19187 cat >>confdefs.h <<\_ACEOF
19188#define HAVE_BOOL 1
19189_ACEOF
19190
19191 fi
19192
19193
19194
19195 echo "$as_me:$LINENO: checking if C++ compiler supports the explicit keyword" >&5
19196echo $ECHO_N "checking if C++ compiler supports the explicit keyword... $ECHO_C" >&6
19197if test "${wx_cv_explicit+set}" = set; then
19198 echo $ECHO_N "(cached) $ECHO_C" >&6
19199else
19200
19201
19202
19203 ac_ext=cc
19204ac_cpp='$CXXCPP $CPPFLAGS'
19205ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19206ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19207ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19208
19209
19210 cat >conftest.$ac_ext <<_ACEOF
19211/* confdefs.h. */
19212_ACEOF
19213cat confdefs.h >>conftest.$ac_ext
19214cat >>conftest.$ac_ext <<_ACEOF
19215/* end confdefs.h. */
19216
19217 class Foo { public: explicit Foo(int) {} };
19218
19219int
19220main ()
19221{
19222
19223 return 0;
19224
19225 ;
19226 return 0;
19227}
19228_ACEOF
19229rm -f conftest.$ac_objext
19230if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19231 (eval $ac_compile) 2>conftest.er1
a848cd7e 19232 ac_status=$?
ac1cb8d3
VS
19233 grep -v '^ *+' conftest.er1 >conftest.err
19234 rm -f conftest.er1
19235 cat conftest.err >&5
a848cd7e
SC
19236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19237 (exit $ac_status); } &&
17a7bf57 19238 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19240 (eval $ac_try) 2>&5
19241 ac_status=$?
19242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19243 (exit $ac_status); }; } &&
19244 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19246 (eval $ac_try) 2>&5
19247 ac_status=$?
19248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19249 (exit $ac_status); }; }; then
19250
19251 cat >conftest.$ac_ext <<_ACEOF
19252/* confdefs.h. */
19253_ACEOF
19254cat confdefs.h >>conftest.$ac_ext
19255cat >>conftest.$ac_ext <<_ACEOF
19256/* end confdefs.h. */
19257
19258 class Foo { public: explicit Foo(int) {} };
19259 static void TakeFoo(const Foo& foo) { }
19260
19261int
19262main ()
19263{
19264
19265 TakeFoo(17);
19266 return 0;
19267
19268 ;
19269 return 0;
19270}
19271_ACEOF
19272rm -f conftest.$ac_objext
19273if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19274 (eval $ac_compile) 2>conftest.er1
a848cd7e 19275 ac_status=$?
ac1cb8d3
VS
19276 grep -v '^ *+' conftest.er1 >conftest.err
19277 rm -f conftest.er1
19278 cat conftest.err >&5
a848cd7e
SC
19279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19280 (exit $ac_status); } &&
17a7bf57 19281 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19283 (eval $ac_try) 2>&5
19284 ac_status=$?
19285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19286 (exit $ac_status); }; } &&
19287 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19289 (eval $ac_try) 2>&5
19290 ac_status=$?
19291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19292 (exit $ac_status); }; }; then
19293 wx_cv_explicit=no
19294else
19295 echo "$as_me: failed program was:" >&5
19296sed 's/^/| /' conftest.$ac_ext >&5
19297
19298wx_cv_explicit=yes
19299
19300fi
ac1cb8d3 19301rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19302
19303else
19304 echo "$as_me: failed program was:" >&5
19305sed 's/^/| /' conftest.$ac_ext >&5
19306
19307wx_cv_explicit=no
19308
19309fi
ac1cb8d3 19310rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19311
19312 ac_ext=c
19313ac_cpp='$CPP $CPPFLAGS'
19314ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19315ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19316ac_compiler_gnu=$ac_cv_c_compiler_gnu
19317
19318
19319fi
19320echo "$as_me:$LINENO: result: $wx_cv_explicit" >&5
19321echo "${ECHO_T}$wx_cv_explicit" >&6
19322
19323 if test "$wx_cv_explicit" = "yes"; then
19324 cat >>confdefs.h <<\_ACEOF
19325#define HAVE_EXPLICIT 1
19326_ACEOF
19327
19328 fi
19329
19330
19331echo "$as_me:$LINENO: checking whether the compiler supports const_cast<>" >&5
19332echo $ECHO_N "checking whether the compiler supports const_cast<>... $ECHO_C" >&6
19333if test "${ac_cv_cxx_const_cast+set}" = set; then
19334 echo $ECHO_N "(cached) $ECHO_C" >&6
19335else
19336
19337
19338 ac_ext=cc
19339ac_cpp='$CXXCPP $CPPFLAGS'
19340ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19341ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19342ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19343
19344 cat >conftest.$ac_ext <<_ACEOF
19345/* confdefs.h. */
19346_ACEOF
19347cat confdefs.h >>conftest.$ac_ext
19348cat >>conftest.$ac_ext <<_ACEOF
19349/* end confdefs.h. */
19350
19351int
19352main ()
19353{
19354int x = 0;const int& y = x;int& z = const_cast<int&>(y);return z;
19355 ;
19356 return 0;
19357}
19358_ACEOF
19359rm -f conftest.$ac_objext
19360if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19361 (eval $ac_compile) 2>conftest.er1
a848cd7e 19362 ac_status=$?
ac1cb8d3
VS
19363 grep -v '^ *+' conftest.er1 >conftest.err
19364 rm -f conftest.er1
19365 cat conftest.err >&5
a848cd7e
SC
19366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19367 (exit $ac_status); } &&
17a7bf57 19368 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19370 (eval $ac_try) 2>&5
19371 ac_status=$?
19372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19373 (exit $ac_status); }; } &&
19374 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19376 (eval $ac_try) 2>&5
19377 ac_status=$?
19378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19379 (exit $ac_status); }; }; then
19380 ac_cv_cxx_const_cast=yes
19381else
19382 echo "$as_me: failed program was:" >&5
19383sed 's/^/| /' conftest.$ac_ext >&5
19384
19385ac_cv_cxx_const_cast=no
19386fi
ac1cb8d3 19387rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19388 ac_ext=c
19389ac_cpp='$CPP $CPPFLAGS'
19390ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19391ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19392ac_compiler_gnu=$ac_cv_c_compiler_gnu
19393
19394
19395fi
19396echo "$as_me:$LINENO: result: $ac_cv_cxx_const_cast" >&5
19397echo "${ECHO_T}$ac_cv_cxx_const_cast" >&6
19398if test "$ac_cv_cxx_const_cast" = yes; then
19399
19400cat >>confdefs.h <<\_ACEOF
19401#define HAVE_CONST_CAST
19402_ACEOF
19403
19404fi
19405
7714864e
RL
19406echo "$as_me:$LINENO: checking whether the compiler supports reinterpret_cast<>" >&5
19407echo $ECHO_N "checking whether the compiler supports reinterpret_cast<>... $ECHO_C" >&6
19408if test "${ac_cv_cxx_reinterpret_cast+set}" = set; then
19409 echo $ECHO_N "(cached) $ECHO_C" >&6
19410else
19411
19412
19413 ac_ext=cc
19414ac_cpp='$CXXCPP $CPPFLAGS'
19415ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19416ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19417ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19418
19419 cat >conftest.$ac_ext <<_ACEOF
19420/* confdefs.h. */
19421_ACEOF
19422cat confdefs.h >>conftest.$ac_ext
19423cat >>conftest.$ac_ext <<_ACEOF
19424/* end confdefs.h. */
19425#include <typeinfo>
19426class Base { public : Base () {} virtual void f () = 0;};
19427class Derived : public Base { public : Derived () {} virtual void f () {} };
19428class Unrelated { public : Unrelated () {} };
19429int g (Unrelated&) { return 0; }
19430int
19431main ()
19432{
19433
19434Derived d;Base& b=d;Unrelated& e=reinterpret_cast<Unrelated&>(b);return g(e);
19435 ;
19436 return 0;
19437}
19438_ACEOF
19439rm -f conftest.$ac_objext
19440if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19441 (eval $ac_compile) 2>conftest.er1
19442 ac_status=$?
19443 grep -v '^ *+' conftest.er1 >conftest.err
19444 rm -f conftest.er1
19445 cat conftest.err >&5
19446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19447 (exit $ac_status); } &&
17a7bf57 19448 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
7714864e
RL
19449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19450 (eval $ac_try) 2>&5
19451 ac_status=$?
19452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19453 (exit $ac_status); }; } &&
19454 { ac_try='test -s conftest.$ac_objext'
19455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19456 (eval $ac_try) 2>&5
19457 ac_status=$?
19458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19459 (exit $ac_status); }; }; then
19460 ac_cv_cxx_reinterpret_cast=yes
19461else
19462 echo "$as_me: failed program was:" >&5
19463sed 's/^/| /' conftest.$ac_ext >&5
19464
19465ac_cv_cxx_reinterpret_cast=no
19466fi
19467rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19468 ac_ext=c
19469ac_cpp='$CPP $CPPFLAGS'
19470ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19471ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19472ac_compiler_gnu=$ac_cv_c_compiler_gnu
19473
19474
19475fi
19476echo "$as_me:$LINENO: result: $ac_cv_cxx_reinterpret_cast" >&5
19477echo "${ECHO_T}$ac_cv_cxx_reinterpret_cast" >&6
19478if test "$ac_cv_cxx_reinterpret_cast" = yes; then
19479
19480cat >>confdefs.h <<\_ACEOF
19481#define HAVE_REINTERPRET_CAST
19482_ACEOF
19483
19484fi
19485
a848cd7e
SC
19486echo "$as_me:$LINENO: checking whether the compiler supports static_cast<>" >&5
19487echo $ECHO_N "checking whether the compiler supports static_cast<>... $ECHO_C" >&6
19488if test "${ac_cv_cxx_static_cast+set}" = set; then
19489 echo $ECHO_N "(cached) $ECHO_C" >&6
19490else
19491
19492
19493 ac_ext=cc
19494ac_cpp='$CXXCPP $CPPFLAGS'
19495ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19496ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19497ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19498
19499 cat >conftest.$ac_ext <<_ACEOF
19500/* confdefs.h. */
19501_ACEOF
19502cat confdefs.h >>conftest.$ac_ext
19503cat >>conftest.$ac_ext <<_ACEOF
19504/* end confdefs.h. */
19505#include <typeinfo>
19506class Base { public : Base () {} virtual void f () = 0; };
19507class Derived : public Base { public : Derived () {} virtual void f () {} };
19508int g (Derived&) { return 0; }
19509int
19510main ()
19511{
19512
19513Derived d; Base& b = d; Derived& s = static_cast<Derived&> (b); return g (s);
19514 ;
19515 return 0;
19516}
19517_ACEOF
19518rm -f conftest.$ac_objext
19519if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19520 (eval $ac_compile) 2>conftest.er1
a848cd7e 19521 ac_status=$?
ac1cb8d3
VS
19522 grep -v '^ *+' conftest.er1 >conftest.err
19523 rm -f conftest.er1
19524 cat conftest.err >&5
a848cd7e
SC
19525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19526 (exit $ac_status); } &&
17a7bf57 19527 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19529 (eval $ac_try) 2>&5
19530 ac_status=$?
19531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19532 (exit $ac_status); }; } &&
19533 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19535 (eval $ac_try) 2>&5
19536 ac_status=$?
19537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19538 (exit $ac_status); }; }; then
19539 ac_cv_cxx_static_cast=yes
19540else
19541 echo "$as_me: failed program was:" >&5
19542sed 's/^/| /' conftest.$ac_ext >&5
19543
19544ac_cv_cxx_static_cast=no
19545fi
ac1cb8d3 19546rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19547 ac_ext=c
19548ac_cpp='$CPP $CPPFLAGS'
19549ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19550ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19551ac_compiler_gnu=$ac_cv_c_compiler_gnu
19552
19553
19554fi
19555echo "$as_me:$LINENO: result: $ac_cv_cxx_static_cast" >&5
19556echo "${ECHO_T}$ac_cv_cxx_static_cast" >&6
19557if test "$ac_cv_cxx_static_cast" = yes; then
19558
19559cat >>confdefs.h <<\_ACEOF
19560#define HAVE_STATIC_CAST
19561_ACEOF
19562
19563fi
19564
19565
19566if test "$wxUSE_STL" = "yes"; then
19567 ac_ext=cc
19568ac_cpp='$CXXCPP $CPPFLAGS'
19569ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19570ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19571ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19572
19573
19574 echo "$as_me:$LINENO: checking for basic STL functionality" >&5
19575echo $ECHO_N "checking for basic STL functionality... $ECHO_C" >&6
19576 cat >conftest.$ac_ext <<_ACEOF
19577/* confdefs.h. */
19578_ACEOF
19579cat confdefs.h >>conftest.$ac_ext
19580cat >>conftest.$ac_ext <<_ACEOF
19581/* end confdefs.h. */
19582#include <string>
19583 #include <functional>
19584 #include <algorithm>
19585 #include <vector>
19586 #include <list>
19587int
19588main ()
19589{
19590std::vector<int> moo;
19591 std::list<int> foo;
19592 std::vector<int>::iterator it =
19593 std::find_if(moo.begin(), moo.end(),
19594 std::bind2nd(std::less<int>(), 3));
19595 ;
19596 return 0;
19597}
19598_ACEOF
19599rm -f conftest.$ac_objext
19600if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19601 (eval $ac_compile) 2>conftest.er1
a848cd7e 19602 ac_status=$?
ac1cb8d3
VS
19603 grep -v '^ *+' conftest.er1 >conftest.err
19604 rm -f conftest.er1
19605 cat conftest.err >&5
a848cd7e
SC
19606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19607 (exit $ac_status); } &&
17a7bf57 19608 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19610 (eval $ac_try) 2>&5
19611 ac_status=$?
19612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19613 (exit $ac_status); }; } &&
19614 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19616 (eval $ac_try) 2>&5
19617 ac_status=$?
19618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19619 (exit $ac_status); }; }; then
19620 echo "$as_me:$LINENO: result: yes" >&5
19621echo "${ECHO_T}yes" >&6
19622else
19623 echo "$as_me: failed program was:" >&5
19624sed 's/^/| /' conftest.$ac_ext >&5
19625
19626echo "$as_me:$LINENO: result: no" >&5
19627echo "${ECHO_T}no" >&6
19628 { { echo "$as_me:$LINENO: error: Basic STL functionality missing" >&5
19629echo "$as_me: error: Basic STL functionality missing" >&2;}
19630 { (exit 1); exit 1; }; }
19631fi
ac1cb8d3 19632rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19633
19634 echo "$as_me:$LINENO: checking for std::wstring in <string>" >&5
19635echo $ECHO_N "checking for std::wstring in <string>... $ECHO_C" >&6
19636 cat >conftest.$ac_ext <<_ACEOF
19637/* confdefs.h. */
19638_ACEOF
19639cat confdefs.h >>conftest.$ac_ext
19640cat >>conftest.$ac_ext <<_ACEOF
19641/* end confdefs.h. */
19642#include <string>
19643int
19644main ()
19645{
19646std::wstring foo;
19647 ;
19648 return 0;
19649}
19650_ACEOF
19651rm -f conftest.$ac_objext
19652if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19653 (eval $ac_compile) 2>conftest.er1
a848cd7e 19654 ac_status=$?
ac1cb8d3
VS
19655 grep -v '^ *+' conftest.er1 >conftest.err
19656 rm -f conftest.er1
19657 cat conftest.err >&5
a848cd7e
SC
19658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19659 (exit $ac_status); } &&
17a7bf57 19660 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19662 (eval $ac_try) 2>&5
19663 ac_status=$?
19664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19665 (exit $ac_status); }; } &&
19666 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19668 (eval $ac_try) 2>&5
19669 ac_status=$?
19670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19671 (exit $ac_status); }; }; then
19672 echo "$as_me:$LINENO: result: yes" >&5
19673echo "${ECHO_T}yes" >&6
19674 cat >>confdefs.h <<\_ACEOF
19675#define HAVE_STD_WSTRING 1
19676_ACEOF
19677
19678else
19679 echo "$as_me: failed program was:" >&5
19680sed 's/^/| /' conftest.$ac_ext >&5
19681
19682echo "$as_me:$LINENO: result: no" >&5
19683echo "${ECHO_T}no" >&6
19684fi
ac1cb8d3 19685rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19686
19687 echo "$as_me:$LINENO: checking for compliant std::string::compare" >&5
19688echo $ECHO_N "checking for compliant std::string::compare... $ECHO_C" >&6
19689 cat >conftest.$ac_ext <<_ACEOF
19690/* confdefs.h. */
19691_ACEOF
19692cat confdefs.h >>conftest.$ac_ext
19693cat >>conftest.$ac_ext <<_ACEOF
19694/* end confdefs.h. */
19695#include <string>
19696int
19697main ()
19698{
19699std::string foo, bar;
19700 foo.compare(bar);
19701 foo.compare(1, 1, bar);
19702 foo.compare(1, 1, bar, 1, 1);
19703 foo.compare("");
19704 foo.compare(1, 1, "");
19705 foo.compare(1, 1, "", 2);
19706 ;
19707 return 0;
19708}
19709_ACEOF
19710rm -f conftest.$ac_objext
19711if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19712 (eval $ac_compile) 2>conftest.er1
a848cd7e 19713 ac_status=$?
ac1cb8d3
VS
19714 grep -v '^ *+' conftest.er1 >conftest.err
19715 rm -f conftest.er1
19716 cat conftest.err >&5
a848cd7e
SC
19717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19718 (exit $ac_status); } &&
17a7bf57 19719 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19721 (eval $ac_try) 2>&5
19722 ac_status=$?
19723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19724 (exit $ac_status); }; } &&
19725 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19727 (eval $ac_try) 2>&5
19728 ac_status=$?
19729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19730 (exit $ac_status); }; }; then
19731 echo "$as_me:$LINENO: result: yes" >&5
19732echo "${ECHO_T}yes" >&6
19733 cat >>confdefs.h <<\_ACEOF
19734#define HAVE_STD_STRING_COMPARE 1
19735_ACEOF
19736
19737else
19738 echo "$as_me: failed program was:" >&5
19739sed 's/^/| /' conftest.$ac_ext >&5
19740
19741echo "$as_me:$LINENO: result: no" >&5
19742echo "${ECHO_T}no" >&6
19743fi
ac1cb8d3 19744rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
19745
19746 if test "${ac_cv_header_hash_map+set}" = set; then
19747 echo "$as_me:$LINENO: checking for hash_map" >&5
19748echo $ECHO_N "checking for hash_map... $ECHO_C" >&6
19749if test "${ac_cv_header_hash_map+set}" = set; then
19750 echo $ECHO_N "(cached) $ECHO_C" >&6
19751fi
19752echo "$as_me:$LINENO: result: $ac_cv_header_hash_map" >&5
19753echo "${ECHO_T}$ac_cv_header_hash_map" >&6
19754else
19755 # Is the header compilable?
19756echo "$as_me:$LINENO: checking hash_map usability" >&5
19757echo $ECHO_N "checking hash_map usability... $ECHO_C" >&6
19758cat >conftest.$ac_ext <<_ACEOF
19759/* confdefs.h. */
19760_ACEOF
19761cat confdefs.h >>conftest.$ac_ext
19762cat >>conftest.$ac_ext <<_ACEOF
19763/* end confdefs.h. */
19764$ac_includes_default
19765#include <hash_map>
19766_ACEOF
19767rm -f conftest.$ac_objext
19768if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19769 (eval $ac_compile) 2>conftest.er1
bdcade0a 19770 ac_status=$?
ac1cb8d3
VS
19771 grep -v '^ *+' conftest.er1 >conftest.err
19772 rm -f conftest.er1
19773 cat conftest.err >&5
bdcade0a
MB
19774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19775 (exit $ac_status); } &&
17a7bf57 19776 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19778 (eval $ac_try) 2>&5
19779 ac_status=$?
19780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19781 (exit $ac_status); }; } &&
19782 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
19783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19784 (eval $ac_try) 2>&5
19785 ac_status=$?
19786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19787 (exit $ac_status); }; }; then
19788 ac_header_compiler=yes
19789else
19790 echo "$as_me: failed program was:" >&5
19791sed 's/^/| /' conftest.$ac_ext >&5
19792
19793ac_header_compiler=no
19794fi
ac1cb8d3 19795rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
19796echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19797echo "${ECHO_T}$ac_header_compiler" >&6
19798
19799# Is the header present?
19800echo "$as_me:$LINENO: checking hash_map presence" >&5
19801echo $ECHO_N "checking hash_map presence... $ECHO_C" >&6
19802cat >conftest.$ac_ext <<_ACEOF
19803/* confdefs.h. */
19804_ACEOF
19805cat confdefs.h >>conftest.$ac_ext
19806cat >>conftest.$ac_ext <<_ACEOF
19807/* end confdefs.h. */
19808#include <hash_map>
19809_ACEOF
19810if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19811 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19812 ac_status=$?
19813 grep -v '^ *+' conftest.er1 >conftest.err
19814 rm -f conftest.er1
19815 cat conftest.err >&5
19816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19817 (exit $ac_status); } >/dev/null; then
19818 if test -s conftest.err; then
19819 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 19820 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
bdcade0a
MB
19821 else
19822 ac_cpp_err=
19823 fi
19824else
19825 ac_cpp_err=yes
19826fi
19827if test -z "$ac_cpp_err"; then
19828 ac_header_preproc=yes
19829else
19830 echo "$as_me: failed program was:" >&5
19831sed 's/^/| /' conftest.$ac_ext >&5
19832
19833 ac_header_preproc=no
19834fi
19835rm -f conftest.err conftest.$ac_ext
19836echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19837echo "${ECHO_T}$ac_header_preproc" >&6
19838
19839# So? What about this header?
ac1cb8d3
VS
19840case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
19841 yes:no: )
bdcade0a
MB
19842 { echo "$as_me:$LINENO: WARNING: hash_map: accepted by the compiler, rejected by the preprocessor!" >&5
19843echo "$as_me: WARNING: hash_map: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
19844 { echo "$as_me:$LINENO: WARNING: hash_map: proceeding with the compiler's result" >&5
19845echo "$as_me: WARNING: hash_map: proceeding with the compiler's result" >&2;}
19846 ac_header_preproc=yes
bdcade0a 19847 ;;
ac1cb8d3 19848 no:yes:* )
bdcade0a
MB
19849 { echo "$as_me:$LINENO: WARNING: hash_map: present but cannot be compiled" >&5
19850echo "$as_me: WARNING: hash_map: present but cannot be compiled" >&2;}
ac1cb8d3
VS
19851 { echo "$as_me:$LINENO: WARNING: hash_map: check for missing prerequisite headers?" >&5
19852echo "$as_me: WARNING: hash_map: check for missing prerequisite headers?" >&2;}
19853 { echo "$as_me:$LINENO: WARNING: hash_map: see the Autoconf documentation" >&5
19854echo "$as_me: WARNING: hash_map: see the Autoconf documentation" >&2;}
19855 { echo "$as_me:$LINENO: WARNING: hash_map: section \"Present But Cannot Be Compiled\"" >&5
19856echo "$as_me: WARNING: hash_map: section \"Present But Cannot Be Compiled\"" >&2;}
bdcade0a
MB
19857 { echo "$as_me:$LINENO: WARNING: hash_map: proceeding with the preprocessor's result" >&5
19858echo "$as_me: WARNING: hash_map: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
19859 { echo "$as_me:$LINENO: WARNING: hash_map: in the future, the compiler will take precedence" >&5
19860echo "$as_me: WARNING: hash_map: in the future, the compiler will take precedence" >&2;}
bdcade0a
MB
19861 (
19862 cat <<\_ASBOX
ac1cb8d3
VS
19863## ----------------------------------------- ##
19864## Report this to wx-dev@lists.wxwidgets.org ##
19865## ----------------------------------------- ##
bdcade0a
MB
19866_ASBOX
19867 ) |
19868 sed "s/^/$as_me: WARNING: /" >&2
19869 ;;
19870esac
19871echo "$as_me:$LINENO: checking for hash_map" >&5
19872echo $ECHO_N "checking for hash_map... $ECHO_C" >&6
19873if test "${ac_cv_header_hash_map+set}" = set; then
19874 echo $ECHO_N "(cached) $ECHO_C" >&6
19875else
19876 ac_cv_header_hash_map=$ac_header_preproc
19877fi
19878echo "$as_me:$LINENO: result: $ac_cv_header_hash_map" >&5
19879echo "${ECHO_T}$ac_cv_header_hash_map" >&6
19880
19881fi
19882if test $ac_cv_header_hash_map = yes; then
19883 echo "$as_me:$LINENO: checking for hash_map and hash_set" >&5
19884echo $ECHO_N "checking for hash_map and hash_set... $ECHO_C" >&6
19885 cat >conftest.$ac_ext <<_ACEOF
19886/* confdefs.h. */
19887_ACEOF
19888cat confdefs.h >>conftest.$ac_ext
19889cat >>conftest.$ac_ext <<_ACEOF
19890/* end confdefs.h. */
19891#include <hash_map>
19892 #include <hash_set>
19893int
19894main ()
19895{
19896std::hash_map<double*, char*, std::hash<double*>, std::equal_to<double*> > test1;
19897 std::hash_set<char*, std::hash<char*>, std::equal_to<char*> > test2;
19898 ;
19899 return 0;
19900}
19901_ACEOF
19902rm -f conftest.$ac_objext
19903if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19904 (eval $ac_compile) 2>conftest.er1
bdcade0a 19905 ac_status=$?
ac1cb8d3
VS
19906 grep -v '^ *+' conftest.er1 >conftest.err
19907 rm -f conftest.er1
19908 cat conftest.err >&5
bdcade0a
MB
19909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19910 (exit $ac_status); } &&
17a7bf57 19911 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19913 (eval $ac_try) 2>&5
19914 ac_status=$?
19915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19916 (exit $ac_status); }; } &&
19917 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
19918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19919 (eval $ac_try) 2>&5
19920 ac_status=$?
19921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19922 (exit $ac_status); }; }; then
19923 echo "$as_me:$LINENO: result: yes" >&5
19924echo "${ECHO_T}yes" >&6
19925 cat >>confdefs.h <<\_ACEOF
19926#define HAVE_HASH_MAP 1
19927_ACEOF
19928
19929 cat >>confdefs.h <<\_ACEOF
19930#define HAVE_STD_HASH_MAP 1
19931_ACEOF
19932
19933else
19934 echo "$as_me: failed program was:" >&5
19935sed 's/^/| /' conftest.$ac_ext >&5
19936
19937echo "$as_me:$LINENO: result: no" >&5
19938echo "${ECHO_T}no" >&6
19939fi
ac1cb8d3 19940rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
19941
19942fi
19943
19944
19945
19946 if test "${ac_cv_header_ext_hash_map+set}" = set; then
19947 echo "$as_me:$LINENO: checking for ext/hash_map" >&5
19948echo $ECHO_N "checking for ext/hash_map... $ECHO_C" >&6
19949if test "${ac_cv_header_ext_hash_map+set}" = set; then
19950 echo $ECHO_N "(cached) $ECHO_C" >&6
19951fi
19952echo "$as_me:$LINENO: result: $ac_cv_header_ext_hash_map" >&5
19953echo "${ECHO_T}$ac_cv_header_ext_hash_map" >&6
19954else
19955 # Is the header compilable?
19956echo "$as_me:$LINENO: checking ext/hash_map usability" >&5
19957echo $ECHO_N "checking ext/hash_map usability... $ECHO_C" >&6
19958cat >conftest.$ac_ext <<_ACEOF
19959/* confdefs.h. */
19960_ACEOF
19961cat confdefs.h >>conftest.$ac_ext
19962cat >>conftest.$ac_ext <<_ACEOF
19963/* end confdefs.h. */
19964$ac_includes_default
19965#include <ext/hash_map>
19966_ACEOF
19967rm -f conftest.$ac_objext
19968if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19969 (eval $ac_compile) 2>conftest.er1
bdcade0a 19970 ac_status=$?
ac1cb8d3
VS
19971 grep -v '^ *+' conftest.er1 >conftest.err
19972 rm -f conftest.er1
19973 cat conftest.err >&5
bdcade0a
MB
19974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19975 (exit $ac_status); } &&
17a7bf57 19976 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19978 (eval $ac_try) 2>&5
19979 ac_status=$?
19980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19981 (exit $ac_status); }; } &&
19982 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
19983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19984 (eval $ac_try) 2>&5
19985 ac_status=$?
19986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19987 (exit $ac_status); }; }; then
19988 ac_header_compiler=yes
19989else
19990 echo "$as_me: failed program was:" >&5
19991sed 's/^/| /' conftest.$ac_ext >&5
19992
19993ac_header_compiler=no
19994fi
ac1cb8d3 19995rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
19996echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19997echo "${ECHO_T}$ac_header_compiler" >&6
19998
19999# Is the header present?
20000echo "$as_me:$LINENO: checking ext/hash_map presence" >&5
20001echo $ECHO_N "checking ext/hash_map presence... $ECHO_C" >&6
20002cat >conftest.$ac_ext <<_ACEOF
20003/* confdefs.h. */
20004_ACEOF
20005cat confdefs.h >>conftest.$ac_ext
20006cat >>conftest.$ac_ext <<_ACEOF
20007/* end confdefs.h. */
20008#include <ext/hash_map>
20009_ACEOF
20010if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20011 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20012 ac_status=$?
20013 grep -v '^ *+' conftest.er1 >conftest.err
20014 rm -f conftest.er1
20015 cat conftest.err >&5
20016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20017 (exit $ac_status); } >/dev/null; then
20018 if test -s conftest.err; then
20019 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 20020 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
bdcade0a
MB
20021 else
20022 ac_cpp_err=
20023 fi
20024else
20025 ac_cpp_err=yes
20026fi
20027if test -z "$ac_cpp_err"; then
20028 ac_header_preproc=yes
20029else
20030 echo "$as_me: failed program was:" >&5
20031sed 's/^/| /' conftest.$ac_ext >&5
20032
20033 ac_header_preproc=no
20034fi
20035rm -f conftest.err conftest.$ac_ext
20036echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20037echo "${ECHO_T}$ac_header_preproc" >&6
20038
20039# So? What about this header?
ac1cb8d3
VS
20040case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
20041 yes:no: )
bdcade0a
MB
20042 { echo "$as_me:$LINENO: WARNING: ext/hash_map: accepted by the compiler, rejected by the preprocessor!" >&5
20043echo "$as_me: WARNING: ext/hash_map: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
20044 { echo "$as_me:$LINENO: WARNING: ext/hash_map: proceeding with the compiler's result" >&5
20045echo "$as_me: WARNING: ext/hash_map: proceeding with the compiler's result" >&2;}
20046 ac_header_preproc=yes
bdcade0a 20047 ;;
ac1cb8d3 20048 no:yes:* )
bdcade0a
MB
20049 { echo "$as_me:$LINENO: WARNING: ext/hash_map: present but cannot be compiled" >&5
20050echo "$as_me: WARNING: ext/hash_map: present but cannot be compiled" >&2;}
ac1cb8d3
VS
20051 { echo "$as_me:$LINENO: WARNING: ext/hash_map: check for missing prerequisite headers?" >&5
20052echo "$as_me: WARNING: ext/hash_map: check for missing prerequisite headers?" >&2;}
20053 { echo "$as_me:$LINENO: WARNING: ext/hash_map: see the Autoconf documentation" >&5
20054echo "$as_me: WARNING: ext/hash_map: see the Autoconf documentation" >&2;}
20055 { echo "$as_me:$LINENO: WARNING: ext/hash_map: section \"Present But Cannot Be Compiled\"" >&5
20056echo "$as_me: WARNING: ext/hash_map: section \"Present But Cannot Be Compiled\"" >&2;}
bdcade0a
MB
20057 { echo "$as_me:$LINENO: WARNING: ext/hash_map: proceeding with the preprocessor's result" >&5
20058echo "$as_me: WARNING: ext/hash_map: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
20059 { echo "$as_me:$LINENO: WARNING: ext/hash_map: in the future, the compiler will take precedence" >&5
20060echo "$as_me: WARNING: ext/hash_map: in the future, the compiler will take precedence" >&2;}
bdcade0a
MB
20061 (
20062 cat <<\_ASBOX
ac1cb8d3
VS
20063## ----------------------------------------- ##
20064## Report this to wx-dev@lists.wxwidgets.org ##
20065## ----------------------------------------- ##
bdcade0a
MB
20066_ASBOX
20067 ) |
20068 sed "s/^/$as_me: WARNING: /" >&2
20069 ;;
20070esac
20071echo "$as_me:$LINENO: checking for ext/hash_map" >&5
20072echo $ECHO_N "checking for ext/hash_map... $ECHO_C" >&6
20073if test "${ac_cv_header_ext_hash_map+set}" = set; then
20074 echo $ECHO_N "(cached) $ECHO_C" >&6
20075else
20076 ac_cv_header_ext_hash_map=$ac_header_preproc
20077fi
20078echo "$as_me:$LINENO: result: $ac_cv_header_ext_hash_map" >&5
20079echo "${ECHO_T}$ac_cv_header_ext_hash_map" >&6
20080
20081fi
20082if test $ac_cv_header_ext_hash_map = yes; then
20083 echo "$as_me:$LINENO: checking for hash_map and hash_set" >&5
20084echo $ECHO_N "checking for hash_map and hash_set... $ECHO_C" >&6
20085 cat >conftest.$ac_ext <<_ACEOF
20086/* confdefs.h. */
20087_ACEOF
20088cat confdefs.h >>conftest.$ac_ext
20089cat >>conftest.$ac_ext <<_ACEOF
20090/* end confdefs.h. */
20091#include <ext/hash_map>
20092 #include <ext/hash_set>
20093int
20094main ()
20095{
20096__gnu_cxx::hash_map<double*, char*, __gnu_cxx::hash<double*>, std::equal_to<double*> > test1;
20097 __gnu_cxx::hash_set<char*, __gnu_cxx::hash<char*>, std::equal_to<char*> > test2;
20098 ;
20099 return 0;
20100}
20101_ACEOF
20102rm -f conftest.$ac_objext
20103if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20104 (eval $ac_compile) 2>conftest.er1
bdcade0a 20105 ac_status=$?
ac1cb8d3
VS
20106 grep -v '^ *+' conftest.er1 >conftest.err
20107 rm -f conftest.er1
20108 cat conftest.err >&5
bdcade0a
MB
20109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20110 (exit $ac_status); } &&
17a7bf57 20111 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20113 (eval $ac_try) 2>&5
20114 ac_status=$?
20115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20116 (exit $ac_status); }; } &&
20117 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
20118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20119 (eval $ac_try) 2>&5
20120 ac_status=$?
20121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20122 (exit $ac_status); }; }; then
20123 echo "$as_me:$LINENO: result: yes" >&5
20124echo "${ECHO_T}yes" >&6
20125 cat >>confdefs.h <<\_ACEOF
20126#define HAVE_EXT_HASH_MAP 1
20127_ACEOF
20128
20129 cat >>confdefs.h <<\_ACEOF
20130#define HAVE_GNU_CXX_HASH_MAP 1
20131_ACEOF
20132
20133else
20134 echo "$as_me: failed program was:" >&5
20135sed 's/^/| /' conftest.$ac_ext >&5
20136
20137echo "$as_me:$LINENO: result: no" >&5
20138echo "${ECHO_T}no" >&6
20139fi
ac1cb8d3 20140rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
20141
20142fi
20143
20144
a848cd7e
SC
20145
20146 ac_ext=c
20147ac_cpp='$CPP $CPPFLAGS'
20148ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20149ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20150ac_compiler_gnu=$ac_cv_c_compiler_gnu
20151
20152fi
20153
20154
20155SEARCH_INCLUDE="\
20156 /usr/local/include \
20157 \
20158 /usr/Motif-2.1/include \
20159 /usr/Motif-1.2/include \
20160 /usr/include/Motif1.2 \
20161 /opt/xpm/include/X11 \
20162 /opt/GBxpm/include/ \
20163 /opt/GBxpm/X11/include/ \
20164 \
20165 /usr/dt/include \
20166 /usr/openwin/include \
20167 \
20168 /usr/include/Xm \
20169 \
20170 /usr/X11R6/include \
20171 /usr/X11R6.4/include \
20172 /usr/X11R5/include \
20173 /usr/X11R4/include \
20174 \
20175 /usr/include/X11R6 \
20176 /usr/include/X11R5 \
20177 /usr/include/X11R4 \
20178 \
20179 /usr/local/X11R6/include \
20180 /usr/local/X11R5/include \
20181 /usr/local/X11R4/include \
20182 \
20183 /usr/local/include/X11R6 \
20184 /usr/local/include/X11R5 \
20185 /usr/local/include/X11R4 \
20186 \
20187 /usr/X11/include \
20188 /usr/include/X11 \
20189 /usr/local/X11/include \
20190 /usr/local/include/X11 \
20191 \
20192 /usr/X386/include \
20193 /usr/x386/include \
20194 /usr/XFree86/include/X11 \
20195 \
20196 X:/XFree86/include \
20197 X:/XFree86/include/X11 \
20198 \
20199 /usr/include/gtk \
20200 /usr/local/include/gtk \
20201 /usr/include/glib \
20202 /usr/local/include/glib \
20203 \
20204 /usr/include/qt \
20205 /usr/local/include/qt \
20206 \
20207 /usr/local/arm/3.3.2/include \
20208 \
20209 /usr/include/windows \
20210 /usr/include/wine \
20211 /usr/local/include/wine \
20212 \
20213 /usr/unsupported/include \
20214 /usr/athena/include \
20215 /usr/local/x11r5/include \
20216 /usr/lpp/Xamples/include \
20217 \
20218 /usr/openwin/share/include"
20219
20220SEARCH_LIB="/usr/lib /usr/lib32 `echo "$SEARCH_INCLUDE" | sed s/include/lib/g` /usr/lib64 /usr/X11R6/lib64"
20221
20222
20223cat >confcache <<\_ACEOF
20224# This file is a shell script that caches the results of configure
20225# tests run on this system so they can be shared between configure
20226# scripts and configure runs, see configure's option --config-cache.
20227# It is not useful on other systems. If it contains results you don't
20228# want to keep, you may remove or edit it.
20229#
20230# config.status only pays attention to the cache file if you give it
20231# the --recheck option to rerun configure.
20232#
20233# `ac_cv_env_foo' variables (set or unset) will be overridden when
20234# loading this file, other *unset* `ac_cv_foo' will be assigned the
20235# following values.
20236
20237_ACEOF
20238
20239# The following way of writing the cache mishandles newlines in values,
20240# but we know of no workaround that is simple, portable, and efficient.
20241# So, don't put newlines in cache variables' values.
20242# Ultrix sh set writes to stderr and can't be redirected directly,
20243# and sets the high bit in the cache file unless we assign to the vars.
20244{
20245 (set) 2>&1 |
20246 case `(ac_space=' '; set | grep ac_space) 2>&1` in
20247 *ac_space=\ *)
20248 # `set' does not quote correctly, so add quotes (double-quote
20249 # substitution turns \\\\ into \\, and sed turns \\ into \).
20250 sed -n \
ac1cb8d3
VS
20251 "s/'/'\\\\''/g;
20252 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a848cd7e
SC
20253 ;;
20254 *)
20255 # `set' quotes correctly as required by POSIX, so do not add quotes.
20256 sed -n \
ac1cb8d3 20257 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
20258 ;;
20259 esac;
20260} |
20261 sed '
20262 t clear
20263 : clear
20264 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20265 t end
20266 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20267 : end' >>confcache
20268if diff $cache_file confcache >/dev/null 2>&1; then :; else
20269 if test -w $cache_file; then
20270 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
20271 cat confcache >$cache_file
20272 else
20273 echo "not updating unwritable cache $cache_file"
20274 fi
20275fi
20276rm -f confcache
20277
20278if test "$USE_LINUX" = 1 -o "$USE_GNU" = 1; then
20279 echo "$as_me:$LINENO: checking for glibc 2.1 or later" >&5
20280echo $ECHO_N "checking for glibc 2.1 or later... $ECHO_C" >&6
20281if test "${wx_cv_lib_glibc21+set}" = set; then
20282 echo $ECHO_N "(cached) $ECHO_C" >&6
20283else
20284
20285 cat >conftest.$ac_ext <<_ACEOF
20286/* confdefs.h. */
20287_ACEOF
20288cat confdefs.h >>conftest.$ac_ext
20289cat >>conftest.$ac_ext <<_ACEOF
20290/* end confdefs.h. */
20291#include <features.h>
20292int
20293main ()
20294{
20295
20296 #if (__GLIBC__ < 2) || (__GLIBC_MINOR__ < 1)
20297 #error not glibc2.1
20298 #endif
20299
20300 ;
20301 return 0;
20302}
20303_ACEOF
20304rm -f conftest.$ac_objext
20305if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20306 (eval $ac_compile) 2>conftest.er1
a848cd7e 20307 ac_status=$?
ac1cb8d3
VS
20308 grep -v '^ *+' conftest.er1 >conftest.err
20309 rm -f conftest.er1
20310 cat conftest.err >&5
a848cd7e
SC
20311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20312 (exit $ac_status); } &&
17a7bf57 20313 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20315 (eval $ac_try) 2>&5
20316 ac_status=$?
20317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20318 (exit $ac_status); }; } &&
20319 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20321 (eval $ac_try) 2>&5
20322 ac_status=$?
20323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20324 (exit $ac_status); }; }; then
20325
20326 wx_cv_lib_glibc21=yes
20327
20328else
20329 echo "$as_me: failed program was:" >&5
20330sed 's/^/| /' conftest.$ac_ext >&5
20331
20332
20333 wx_cv_lib_glibc21=no
20334
20335
20336fi
ac1cb8d3 20337rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20338
20339fi
20340echo "$as_me:$LINENO: result: $wx_cv_lib_glibc21" >&5
20341echo "${ECHO_T}$wx_cv_lib_glibc21" >&6
20342 if test "$wx_cv_lib_glibc21" = "yes"; then
20343 cat >>confdefs.h <<\_ACEOF
20344#define wxHAVE_GLIBC2 1
20345_ACEOF
20346
20347 fi
20348fi
20349
20350if test "x$wx_cv_lib_glibc21" = "xyes"; then
20351 if test "$wxUSE_UNICODE" = "yes" -o "$wxUSE_THREADS" = "yes"; then
20352 cat >>confdefs.h <<\_ACEOF
20353#define _GNU_SOURCE 1
20354_ACEOF
20355
20356 fi
20357fi
20358
20359
20360
20361if test "$wxUSE_REGEX" != "no"; then
20362 cat >>confdefs.h <<\_ACEOF
20363#define wxUSE_REGEX 1
20364_ACEOF
20365
20366
20367 if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_REGEX" = "yes"; then
20368 { echo "$as_me:$LINENO: WARNING: Defaulting to the the builtin regex library for Unicode build." >&5
20369echo "$as_me: WARNING: Defaulting to the the builtin regex library for Unicode build." >&2;}
20370 wxUSE_REGEX=builtin
20371 fi
20372
20373 if test "$wxUSE_REGEX" = "sys" -o "$wxUSE_REGEX" = "yes" ; then
20374 if test "${ac_cv_header_regex_h+set}" = set; then
20375 echo "$as_me:$LINENO: checking for regex.h" >&5
20376echo $ECHO_N "checking for regex.h... $ECHO_C" >&6
20377if test "${ac_cv_header_regex_h+set}" = set; then
20378 echo $ECHO_N "(cached) $ECHO_C" >&6
20379fi
20380echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
20381echo "${ECHO_T}$ac_cv_header_regex_h" >&6
20382else
20383 # Is the header compilable?
20384echo "$as_me:$LINENO: checking regex.h usability" >&5
20385echo $ECHO_N "checking regex.h usability... $ECHO_C" >&6
20386cat >conftest.$ac_ext <<_ACEOF
20387/* confdefs.h. */
20388_ACEOF
20389cat confdefs.h >>conftest.$ac_ext
20390cat >>conftest.$ac_ext <<_ACEOF
20391/* end confdefs.h. */
20392$ac_includes_default
20393#include <regex.h>
20394_ACEOF
20395rm -f conftest.$ac_objext
20396if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20397 (eval $ac_compile) 2>conftest.er1
a848cd7e 20398 ac_status=$?
ac1cb8d3
VS
20399 grep -v '^ *+' conftest.er1 >conftest.err
20400 rm -f conftest.er1
20401 cat conftest.err >&5
a848cd7e
SC
20402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20403 (exit $ac_status); } &&
17a7bf57 20404 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20406 (eval $ac_try) 2>&5
20407 ac_status=$?
20408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20409 (exit $ac_status); }; } &&
20410 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20412 (eval $ac_try) 2>&5
20413 ac_status=$?
20414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20415 (exit $ac_status); }; }; then
20416 ac_header_compiler=yes
20417else
20418 echo "$as_me: failed program was:" >&5
20419sed 's/^/| /' conftest.$ac_ext >&5
20420
20421ac_header_compiler=no
20422fi
ac1cb8d3 20423rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20424echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20425echo "${ECHO_T}$ac_header_compiler" >&6
20426
20427# Is the header present?
20428echo "$as_me:$LINENO: checking regex.h presence" >&5
20429echo $ECHO_N "checking regex.h presence... $ECHO_C" >&6
20430cat >conftest.$ac_ext <<_ACEOF
20431/* confdefs.h. */
20432_ACEOF
20433cat confdefs.h >>conftest.$ac_ext
20434cat >>conftest.$ac_ext <<_ACEOF
20435/* end confdefs.h. */
20436#include <regex.h>
20437_ACEOF
20438if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20439 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20440 ac_status=$?
20441 grep -v '^ *+' conftest.er1 >conftest.err
20442 rm -f conftest.er1
20443 cat conftest.err >&5
20444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20445 (exit $ac_status); } >/dev/null; then
20446 if test -s conftest.err; then
20447 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 20448 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
20449 else
20450 ac_cpp_err=
20451 fi
20452else
20453 ac_cpp_err=yes
20454fi
20455if test -z "$ac_cpp_err"; then
20456 ac_header_preproc=yes
20457else
20458 echo "$as_me: failed program was:" >&5
20459sed 's/^/| /' conftest.$ac_ext >&5
20460
20461 ac_header_preproc=no
20462fi
20463rm -f conftest.err conftest.$ac_ext
20464echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20465echo "${ECHO_T}$ac_header_preproc" >&6
20466
20467# So? What about this header?
ac1cb8d3
VS
20468case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20469 yes:no: )
a848cd7e
SC
20470 { echo "$as_me:$LINENO: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&5
20471echo "$as_me: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
20472 { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the compiler's result" >&5
20473echo "$as_me: WARNING: regex.h: proceeding with the compiler's result" >&2;}
20474 ac_header_preproc=yes
a848cd7e 20475 ;;
ac1cb8d3 20476 no:yes:* )
a848cd7e
SC
20477 { echo "$as_me:$LINENO: WARNING: regex.h: present but cannot be compiled" >&5
20478echo "$as_me: WARNING: regex.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
20479 { echo "$as_me:$LINENO: WARNING: regex.h: check for missing prerequisite headers?" >&5
20480echo "$as_me: WARNING: regex.h: check for missing prerequisite headers?" >&2;}
20481 { echo "$as_me:$LINENO: WARNING: regex.h: see the Autoconf documentation" >&5
20482echo "$as_me: WARNING: regex.h: see the Autoconf documentation" >&2;}
20483 { echo "$as_me:$LINENO: WARNING: regex.h: section \"Present But Cannot Be Compiled\"" >&5
20484echo "$as_me: WARNING: regex.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
20485 { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the preprocessor's result" >&5
20486echo "$as_me: WARNING: regex.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
20487 { echo "$as_me:$LINENO: WARNING: regex.h: in the future, the compiler will take precedence" >&5
20488echo "$as_me: WARNING: regex.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
20489 (
20490 cat <<\_ASBOX
ac1cb8d3
VS
20491## ----------------------------------------- ##
20492## Report this to wx-dev@lists.wxwidgets.org ##
20493## ----------------------------------------- ##
a848cd7e
SC
20494_ASBOX
20495 ) |
20496 sed "s/^/$as_me: WARNING: /" >&2
20497 ;;
20498esac
20499echo "$as_me:$LINENO: checking for regex.h" >&5
20500echo $ECHO_N "checking for regex.h... $ECHO_C" >&6
20501if test "${ac_cv_header_regex_h+set}" = set; then
20502 echo $ECHO_N "(cached) $ECHO_C" >&6
20503else
20504 ac_cv_header_regex_h=$ac_header_preproc
20505fi
20506echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
20507echo "${ECHO_T}$ac_cv_header_regex_h" >&6
20508
20509fi
20510if test $ac_cv_header_regex_h = yes; then
20511
20512for ac_func in regcomp
20513do
20514as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20515echo "$as_me:$LINENO: checking for $ac_func" >&5
20516echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20517if eval "test \"\${$as_ac_var+set}\" = set"; then
20518 echo $ECHO_N "(cached) $ECHO_C" >&6
20519else
20520 cat >conftest.$ac_ext <<_ACEOF
20521/* confdefs.h. */
20522_ACEOF
20523cat confdefs.h >>conftest.$ac_ext
20524cat >>conftest.$ac_ext <<_ACEOF
20525/* end confdefs.h. */
ac1cb8d3
VS
20526/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20527 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20528#define $ac_func innocuous_$ac_func
20529
a848cd7e
SC
20530/* System header to define __stub macros and hopefully few prototypes,
20531 which can conflict with char $ac_func (); below.
20532 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20533 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 20534
a848cd7e
SC
20535#ifdef __STDC__
20536# include <limits.h>
20537#else
20538# include <assert.h>
20539#endif
ac1cb8d3
VS
20540
20541#undef $ac_func
20542
a848cd7e
SC
20543/* Override any gcc2 internal prototype to avoid an error. */
20544#ifdef __cplusplus
20545extern "C"
20546{
20547#endif
20548/* We use char because int might match the return type of a gcc2
20549 builtin and then its argument prototype would still apply. */
20550char $ac_func ();
20551/* The GNU C library defines this for functions which it implements
20552 to always fail with ENOSYS. Some functions are actually named
20553 something starting with __ and the normal name is an alias. */
20554#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20555choke me
20556#else
20557char (*f) () = $ac_func;
20558#endif
20559#ifdef __cplusplus
20560}
20561#endif
20562
20563int
20564main ()
20565{
20566return f != $ac_func;
20567 ;
20568 return 0;
20569}
20570_ACEOF
20571rm -f conftest.$ac_objext conftest$ac_exeext
20572if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 20573 (eval $ac_link) 2>conftest.er1
a848cd7e 20574 ac_status=$?
ac1cb8d3
VS
20575 grep -v '^ *+' conftest.er1 >conftest.err
20576 rm -f conftest.er1
20577 cat conftest.err >&5
a848cd7e
SC
20578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20579 (exit $ac_status); } &&
17a7bf57 20580 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20582 (eval $ac_try) 2>&5
20583 ac_status=$?
20584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20585 (exit $ac_status); }; } &&
20586 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
20587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20588 (eval $ac_try) 2>&5
20589 ac_status=$?
20590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20591 (exit $ac_status); }; }; then
20592 eval "$as_ac_var=yes"
20593else
20594 echo "$as_me: failed program was:" >&5
20595sed 's/^/| /' conftest.$ac_ext >&5
20596
20597eval "$as_ac_var=no"
20598fi
ac1cb8d3
VS
20599rm -f conftest.err conftest.$ac_objext \
20600 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
20601fi
20602echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20603echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20604if test `eval echo '${'$as_ac_var'}'` = yes; then
20605 cat >>confdefs.h <<_ACEOF
20606#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20607_ACEOF
20608
20609fi
20610done
20611
20612fi
20613
20614
20615
20616 if test "x$ac_cv_func_regcomp" != "xyes"; then
20617 if test "$wxUSE_REGEX" = "sys" ; then
20618 { { echo "$as_me:$LINENO: error: system regex library not found! Use --with-regex to use built-in version" >&5
20619echo "$as_me: error: system regex library not found! Use --with-regex to use built-in version" >&2;}
20620 { (exit 1); exit 1; }; }
20621 else
20622 { echo "$as_me:$LINENO: WARNING: system regex library not found, will use built-in instead" >&5
20623echo "$as_me: WARNING: system regex library not found, will use built-in instead" >&2;}
20624 wxUSE_REGEX=builtin
20625 fi
20626 else
20627 wxUSE_REGEX=sys
20628 cat >>confdefs.h <<\_ACEOF
20629#define WX_NO_REGEX_ADVANCED 1
20630_ACEOF
20631
20632 fi
20633 fi
20634fi
20635
20636
20637ZLIB_LINK=
20638if test "$wxUSE_ZLIB" != "no" ; then
20639 cat >>confdefs.h <<\_ACEOF
20640#define wxUSE_ZLIB 1
20641_ACEOF
20642
20643
20644 if test "$wxUSE_ZLIB" = "sys" -o "$wxUSE_ZLIB" = "yes" ; then
20645 if test "$USE_DARWIN" = 1; then
20646 system_zlib_h_ok="yes"
20647 else
20648 echo "$as_me:$LINENO: checking for zlib.h >= 1.1.4" >&5
20649echo $ECHO_N "checking for zlib.h >= 1.1.4... $ECHO_C" >&6
20650if test "${ac_cv_header_zlib_h+set}" = set; then
20651 echo $ECHO_N "(cached) $ECHO_C" >&6
20652else
20653 if test "$cross_compiling" = yes; then
20654 unset ac_cv_header_zlib_h
20655
20656else
20657 cat >conftest.$ac_ext <<_ACEOF
20658/* confdefs.h. */
20659_ACEOF
20660cat confdefs.h >>conftest.$ac_ext
20661cat >>conftest.$ac_ext <<_ACEOF
20662/* end confdefs.h. */
20663
20664 #include <zlib.h>
20665 #include <stdio.h>
20666
20667 int main()
20668 {
20669 FILE *f=fopen("conftestval", "w");
20670 if (!f) exit(1);
20671 fprintf(f, "%s",
20672 ZLIB_VERSION[0] == '1' &&
20673 (ZLIB_VERSION[2] > '1' ||
20674 (ZLIB_VERSION[2] == '1' &&
20675 ZLIB_VERSION[4] >= '4')) ? "yes" : "no");
20676 exit(0);
20677 }
20678
20679_ACEOF
20680rm -f conftest$ac_exeext
20681if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20682 (eval $ac_link) 2>&5
20683 ac_status=$?
20684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20685 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20687 (eval $ac_try) 2>&5
20688 ac_status=$?
20689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20690 (exit $ac_status); }; }; then
20691 ac_cv_header_zlib_h=`cat conftestval`
20692else
20693 echo "$as_me: program exited with status $ac_status" >&5
20694echo "$as_me: failed program was:" >&5
20695sed 's/^/| /' conftest.$ac_ext >&5
20696
20697( exit $ac_status )
20698ac_cv_header_zlib_h=no
20699fi
ac1cb8d3 20700rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20701fi
20702
20703fi
20704echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
20705echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
20706 if test "${ac_cv_header_zlib_h+set}" = set; then
20707 echo "$as_me:$LINENO: checking for zlib.h" >&5
20708echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
20709if test "${ac_cv_header_zlib_h+set}" = set; then
20710 echo $ECHO_N "(cached) $ECHO_C" >&6
20711fi
20712echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
20713echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
20714else
20715 # Is the header compilable?
20716echo "$as_me:$LINENO: checking zlib.h usability" >&5
20717echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6
20718cat >conftest.$ac_ext <<_ACEOF
20719/* confdefs.h. */
20720_ACEOF
20721cat confdefs.h >>conftest.$ac_ext
20722cat >>conftest.$ac_ext <<_ACEOF
20723/* end confdefs.h. */
20724$ac_includes_default
20725#include <zlib.h>
20726_ACEOF
20727rm -f conftest.$ac_objext
20728if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20729 (eval $ac_compile) 2>conftest.er1
a848cd7e 20730 ac_status=$?
ac1cb8d3
VS
20731 grep -v '^ *+' conftest.er1 >conftest.err
20732 rm -f conftest.er1
20733 cat conftest.err >&5
a848cd7e
SC
20734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20735 (exit $ac_status); } &&
17a7bf57 20736 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
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); }; } &&
20742 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20744 (eval $ac_try) 2>&5
20745 ac_status=$?
20746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20747 (exit $ac_status); }; }; then
20748 ac_header_compiler=yes
20749else
20750 echo "$as_me: failed program was:" >&5
20751sed 's/^/| /' conftest.$ac_ext >&5
20752
20753ac_header_compiler=no
20754fi
ac1cb8d3 20755rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20756echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20757echo "${ECHO_T}$ac_header_compiler" >&6
20758
20759# Is the header present?
20760echo "$as_me:$LINENO: checking zlib.h presence" >&5
20761echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6
20762cat >conftest.$ac_ext <<_ACEOF
20763/* confdefs.h. */
20764_ACEOF
20765cat confdefs.h >>conftest.$ac_ext
20766cat >>conftest.$ac_ext <<_ACEOF
20767/* end confdefs.h. */
20768#include <zlib.h>
20769_ACEOF
20770if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20771 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20772 ac_status=$?
20773 grep -v '^ *+' conftest.er1 >conftest.err
20774 rm -f conftest.er1
20775 cat conftest.err >&5
20776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20777 (exit $ac_status); } >/dev/null; then
20778 if test -s conftest.err; then
20779 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 20780 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
20781 else
20782 ac_cpp_err=
20783 fi
20784else
20785 ac_cpp_err=yes
20786fi
20787if test -z "$ac_cpp_err"; then
20788 ac_header_preproc=yes
20789else
20790 echo "$as_me: failed program was:" >&5
20791sed 's/^/| /' conftest.$ac_ext >&5
20792
20793 ac_header_preproc=no
20794fi
20795rm -f conftest.err conftest.$ac_ext
20796echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20797echo "${ECHO_T}$ac_header_preproc" >&6
20798
20799# So? What about this header?
ac1cb8d3
VS
20800case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20801 yes:no: )
a848cd7e
SC
20802 { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
20803echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
20804 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
20805echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
20806 ac_header_preproc=yes
a848cd7e 20807 ;;
ac1cb8d3 20808 no:yes:* )
a848cd7e
SC
20809 { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
20810echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
20811 { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
20812echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
20813 { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
20814echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
20815 { echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5
20816echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
20817 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
20818echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
20819 { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
20820echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
20821 (
20822 cat <<\_ASBOX
ac1cb8d3
VS
20823## ----------------------------------------- ##
20824## Report this to wx-dev@lists.wxwidgets.org ##
20825## ----------------------------------------- ##
a848cd7e
SC
20826_ASBOX
20827 ) |
20828 sed "s/^/$as_me: WARNING: /" >&2
20829 ;;
20830esac
20831echo "$as_me:$LINENO: checking for zlib.h" >&5
20832echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
20833if test "${ac_cv_header_zlib_h+set}" = set; then
20834 echo $ECHO_N "(cached) $ECHO_C" >&6
20835else
20836 ac_cv_header_zlib_h=$ac_header_preproc
20837fi
20838echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
20839echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
20840
20841fi
20842
20843
20844
20845 system_zlib_h_ok=$ac_cv_header_zlib_h
20846 fi
20847
20848 if test "$system_zlib_h_ok" = "yes"; then
20849 echo "$as_me:$LINENO: checking for deflate in -lz" >&5
20850echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
20851if test "${ac_cv_lib_z_deflate+set}" = set; then
20852 echo $ECHO_N "(cached) $ECHO_C" >&6
20853else
20854 ac_check_lib_save_LIBS=$LIBS
20855LIBS="-lz $LIBS"
20856cat >conftest.$ac_ext <<_ACEOF
20857/* confdefs.h. */
20858_ACEOF
20859cat confdefs.h >>conftest.$ac_ext
20860cat >>conftest.$ac_ext <<_ACEOF
20861/* end confdefs.h. */
20862
20863/* Override any gcc2 internal prototype to avoid an error. */
20864#ifdef __cplusplus
20865extern "C"
20866#endif
20867/* We use char because int might match the return type of a gcc2
20868 builtin and then its argument prototype would still apply. */
20869char deflate ();
20870int
20871main ()
20872{
20873deflate ();
20874 ;
20875 return 0;
20876}
20877_ACEOF
20878rm -f conftest.$ac_objext conftest$ac_exeext
20879if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 20880 (eval $ac_link) 2>conftest.er1
a848cd7e 20881 ac_status=$?
ac1cb8d3
VS
20882 grep -v '^ *+' conftest.er1 >conftest.err
20883 rm -f conftest.er1
20884 cat conftest.err >&5
a848cd7e
SC
20885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20886 (exit $ac_status); } &&
17a7bf57 20887 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20889 (eval $ac_try) 2>&5
20890 ac_status=$?
20891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20892 (exit $ac_status); }; } &&
20893 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
20894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20895 (eval $ac_try) 2>&5
20896 ac_status=$?
20897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20898 (exit $ac_status); }; }; then
20899 ac_cv_lib_z_deflate=yes
20900else
20901 echo "$as_me: failed program was:" >&5
20902sed 's/^/| /' conftest.$ac_ext >&5
20903
20904ac_cv_lib_z_deflate=no
20905fi
ac1cb8d3
VS
20906rm -f conftest.err conftest.$ac_objext \
20907 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
20908LIBS=$ac_check_lib_save_LIBS
20909fi
20910echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
20911echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
20912if test $ac_cv_lib_z_deflate = yes; then
20913 ZLIB_LINK=" -lz"
20914fi
20915
20916 fi
20917
20918 if test "x$ZLIB_LINK" = "x" ; then
20919 if test "$wxUSE_ZLIB" = "sys" ; then
20920 { { echo "$as_me:$LINENO: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&5
20921echo "$as_me: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&2;}
20922 { (exit 1); exit 1; }; }
20923 else
20924 { echo "$as_me:$LINENO: WARNING: zlib library not found or too old, will use built-in instead" >&5
20925echo "$as_me: WARNING: zlib library not found or too old, will use built-in instead" >&2;}
20926 wxUSE_ZLIB=builtin
20927 fi
20928 else
20929 wxUSE_ZLIB=sys
20930 fi
20931 fi
20932fi
20933
20934
20935PNG_LINK=
20936if test "$wxUSE_LIBPNG" != "no" ; then
20937 cat >>confdefs.h <<\_ACEOF
20938#define wxUSE_LIBPNG 1
20939_ACEOF
20940
20941
20942 if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBPNG" = "builtin" ; then
20943 { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&5
20944echo "$as_me: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&2;}
20945 wxUSE_LIBPNG=sys
20946 fi
20947
20948 if test "$wxUSE_MGL" != 1 -a "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then
20949 { echo "$as_me:$LINENO: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&5
20950echo "$as_me: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&2;}
20951 wxUSE_LIBPNG=builtin
20952 fi
20953
20954 if test "$wxUSE_MGL" != 1 ; then
20955 if test "$wxUSE_LIBPNG" = "sys" -o "$wxUSE_LIBPNG" = "yes" ; then
20956 echo "$as_me:$LINENO: checking for png.h > 0.90" >&5
20957echo $ECHO_N "checking for png.h > 0.90... $ECHO_C" >&6
20958if test "${ac_cv_header_png_h+set}" = set; then
20959 echo $ECHO_N "(cached) $ECHO_C" >&6
20960else
20961 if test "$cross_compiling" = yes; then
20962 unset ac_cv_header_png_h
20963
20964else
20965 cat >conftest.$ac_ext <<_ACEOF
20966/* confdefs.h. */
20967_ACEOF
20968cat confdefs.h >>conftest.$ac_ext
20969cat >>conftest.$ac_ext <<_ACEOF
20970/* end confdefs.h. */
20971
20972 #include <png.h>
20973 #include <stdio.h>
20974
20975 int main()
20976 {
20977 FILE *f=fopen("conftestval", "w");
20978 if (!f) exit(1);
20979 fprintf(f, "%s",
20980 PNG_LIBPNG_VER > 90 ? "yes" : "no");
20981 exit(0);
20982 }
20983
20984_ACEOF
20985rm -f conftest$ac_exeext
20986if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20987 (eval $ac_link) 2>&5
20988 ac_status=$?
20989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20990 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20992 (eval $ac_try) 2>&5
20993 ac_status=$?
20994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20995 (exit $ac_status); }; }; then
20996 ac_cv_header_png_h=`cat conftestval`
20997else
20998 echo "$as_me: program exited with status $ac_status" >&5
20999echo "$as_me: failed program was:" >&5
21000sed 's/^/| /' conftest.$ac_ext >&5
21001
21002( exit $ac_status )
21003ac_cv_header_png_h=no
21004fi
ac1cb8d3 21005rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21006fi
21007
21008fi
21009echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
21010echo "${ECHO_T}$ac_cv_header_png_h" >&6
21011 if test "${ac_cv_header_png_h+set}" = set; then
21012 echo "$as_me:$LINENO: checking for png.h" >&5
21013echo $ECHO_N "checking for png.h... $ECHO_C" >&6
21014if test "${ac_cv_header_png_h+set}" = set; then
21015 echo $ECHO_N "(cached) $ECHO_C" >&6
21016fi
21017echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
21018echo "${ECHO_T}$ac_cv_header_png_h" >&6
21019else
21020 # Is the header compilable?
21021echo "$as_me:$LINENO: checking png.h usability" >&5
21022echo $ECHO_N "checking png.h usability... $ECHO_C" >&6
21023cat >conftest.$ac_ext <<_ACEOF
21024/* confdefs.h. */
21025_ACEOF
21026cat confdefs.h >>conftest.$ac_ext
21027cat >>conftest.$ac_ext <<_ACEOF
21028/* end confdefs.h. */
21029$ac_includes_default
21030#include <png.h>
21031_ACEOF
21032rm -f conftest.$ac_objext
21033if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21034 (eval $ac_compile) 2>conftest.er1
a848cd7e 21035 ac_status=$?
ac1cb8d3
VS
21036 grep -v '^ *+' conftest.er1 >conftest.err
21037 rm -f conftest.er1
21038 cat conftest.err >&5
a848cd7e
SC
21039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21040 (exit $ac_status); } &&
17a7bf57 21041 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21043 (eval $ac_try) 2>&5
21044 ac_status=$?
21045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21046 (exit $ac_status); }; } &&
21047 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21049 (eval $ac_try) 2>&5
21050 ac_status=$?
21051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21052 (exit $ac_status); }; }; then
21053 ac_header_compiler=yes
21054else
21055 echo "$as_me: failed program was:" >&5
21056sed 's/^/| /' conftest.$ac_ext >&5
21057
21058ac_header_compiler=no
21059fi
ac1cb8d3 21060rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21061echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21062echo "${ECHO_T}$ac_header_compiler" >&6
21063
21064# Is the header present?
21065echo "$as_me:$LINENO: checking png.h presence" >&5
21066echo $ECHO_N "checking png.h presence... $ECHO_C" >&6
21067cat >conftest.$ac_ext <<_ACEOF
21068/* confdefs.h. */
21069_ACEOF
21070cat confdefs.h >>conftest.$ac_ext
21071cat >>conftest.$ac_ext <<_ACEOF
21072/* end confdefs.h. */
21073#include <png.h>
21074_ACEOF
21075if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21076 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21077 ac_status=$?
21078 grep -v '^ *+' conftest.er1 >conftest.err
21079 rm -f conftest.er1
21080 cat conftest.err >&5
21081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21082 (exit $ac_status); } >/dev/null; then
21083 if test -s conftest.err; then
21084 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 21085 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
21086 else
21087 ac_cpp_err=
21088 fi
21089else
21090 ac_cpp_err=yes
21091fi
21092if test -z "$ac_cpp_err"; then
21093 ac_header_preproc=yes
21094else
21095 echo "$as_me: failed program was:" >&5
21096sed 's/^/| /' conftest.$ac_ext >&5
21097
21098 ac_header_preproc=no
21099fi
21100rm -f conftest.err conftest.$ac_ext
21101echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21102echo "${ECHO_T}$ac_header_preproc" >&6
21103
21104# So? What about this header?
ac1cb8d3
VS
21105case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21106 yes:no: )
a848cd7e
SC
21107 { echo "$as_me:$LINENO: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&5
21108echo "$as_me: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
21109 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the compiler's result" >&5
21110echo "$as_me: WARNING: png.h: proceeding with the compiler's result" >&2;}
21111 ac_header_preproc=yes
a848cd7e 21112 ;;
ac1cb8d3 21113 no:yes:* )
a848cd7e
SC
21114 { echo "$as_me:$LINENO: WARNING: png.h: present but cannot be compiled" >&5
21115echo "$as_me: WARNING: png.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
21116 { echo "$as_me:$LINENO: WARNING: png.h: check for missing prerequisite headers?" >&5
21117echo "$as_me: WARNING: png.h: check for missing prerequisite headers?" >&2;}
21118 { echo "$as_me:$LINENO: WARNING: png.h: see the Autoconf documentation" >&5
21119echo "$as_me: WARNING: png.h: see the Autoconf documentation" >&2;}
21120 { echo "$as_me:$LINENO: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&5
21121echo "$as_me: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
21122 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5
21123echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
21124 { echo "$as_me:$LINENO: WARNING: png.h: in the future, the compiler will take precedence" >&5
21125echo "$as_me: WARNING: png.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
21126 (
21127 cat <<\_ASBOX
ac1cb8d3
VS
21128## ----------------------------------------- ##
21129## Report this to wx-dev@lists.wxwidgets.org ##
21130## ----------------------------------------- ##
a848cd7e
SC
21131_ASBOX
21132 ) |
21133 sed "s/^/$as_me: WARNING: /" >&2
21134 ;;
21135esac
21136echo "$as_me:$LINENO: checking for png.h" >&5
21137echo $ECHO_N "checking for png.h... $ECHO_C" >&6
21138if test "${ac_cv_header_png_h+set}" = set; then
21139 echo $ECHO_N "(cached) $ECHO_C" >&6
21140else
21141 ac_cv_header_png_h=$ac_header_preproc
21142fi
21143echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
21144echo "${ECHO_T}$ac_cv_header_png_h" >&6
21145
21146fi
21147
21148
21149
21150 if test "$ac_cv_header_png_h" = "yes"; then
21151 echo "$as_me:$LINENO: checking for png_check_sig in -lpng" >&5
21152echo $ECHO_N "checking for png_check_sig in -lpng... $ECHO_C" >&6
21153if test "${ac_cv_lib_png_png_check_sig+set}" = set; then
21154 echo $ECHO_N "(cached) $ECHO_C" >&6
21155else
21156 ac_check_lib_save_LIBS=$LIBS
21157LIBS="-lpng -lz -lm $LIBS"
21158cat >conftest.$ac_ext <<_ACEOF
21159/* confdefs.h. */
21160_ACEOF
21161cat confdefs.h >>conftest.$ac_ext
21162cat >>conftest.$ac_ext <<_ACEOF
21163/* end confdefs.h. */
21164
21165/* Override any gcc2 internal prototype to avoid an error. */
21166#ifdef __cplusplus
21167extern "C"
21168#endif
21169/* We use char because int might match the return type of a gcc2
21170 builtin and then its argument prototype would still apply. */
21171char png_check_sig ();
21172int
21173main ()
21174{
21175png_check_sig ();
21176 ;
21177 return 0;
21178}
21179_ACEOF
21180rm -f conftest.$ac_objext conftest$ac_exeext
21181if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 21182 (eval $ac_link) 2>conftest.er1
a848cd7e 21183 ac_status=$?
ac1cb8d3
VS
21184 grep -v '^ *+' conftest.er1 >conftest.err
21185 rm -f conftest.er1
21186 cat conftest.err >&5
a848cd7e
SC
21187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21188 (exit $ac_status); } &&
17a7bf57 21189 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21191 (eval $ac_try) 2>&5
21192 ac_status=$?
21193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21194 (exit $ac_status); }; } &&
21195 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
21196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21197 (eval $ac_try) 2>&5
21198 ac_status=$?
21199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21200 (exit $ac_status); }; }; then
21201 ac_cv_lib_png_png_check_sig=yes
21202else
21203 echo "$as_me: failed program was:" >&5
21204sed 's/^/| /' conftest.$ac_ext >&5
21205
21206ac_cv_lib_png_png_check_sig=no
21207fi
ac1cb8d3
VS
21208rm -f conftest.err conftest.$ac_objext \
21209 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
21210LIBS=$ac_check_lib_save_LIBS
21211fi
21212echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_check_sig" >&5
21213echo "${ECHO_T}$ac_cv_lib_png_png_check_sig" >&6
21214if test $ac_cv_lib_png_png_check_sig = yes; then
21215 PNG_LINK=" -lpng -lz"
21216fi
21217
21218 fi
21219
21220 if test "x$PNG_LINK" = "x" ; then
21221 if test "$wxUSE_LIBPNG" = "sys" ; then
21222 { { echo "$as_me:$LINENO: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&5
21223echo "$as_me: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&2;}
21224 { (exit 1); exit 1; }; }
21225 else
21226 { echo "$as_me:$LINENO: WARNING: system png library not found or too old, will use built-in instead" >&5
21227echo "$as_me: WARNING: system png library not found or too old, will use built-in instead" >&2;}
21228 wxUSE_LIBPNG=builtin
21229 fi
21230 else
21231 wxUSE_LIBPNG=sys
21232 fi
21233 fi
21234 fi
21235
21236 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png"
21237fi
21238
21239
21240JPEG_LINK=
21241if test "$wxUSE_LIBJPEG" != "no" ; then
21242 cat >>confdefs.h <<\_ACEOF
21243#define wxUSE_LIBJPEG 1
21244_ACEOF
21245
21246
21247 if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBJPEG" = "builtin" ; then
21248 { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&5
21249echo "$as_me: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&2;}
21250 wxUSE_LIBJPEG=sys
21251 fi
21252
21253 if test "$wxUSE_MGL" != 1 ; then
21254 if test "$wxUSE_LIBJPEG" = "sys" -o "$wxUSE_LIBJPEG" = "yes" ; then
21255 echo "$as_me:$LINENO: checking for jpeglib.h" >&5
21256echo $ECHO_N "checking for jpeglib.h... $ECHO_C" >&6
21257 if test "${ac_cv_header_jpeglib_h+set}" = set; then
21258 echo $ECHO_N "(cached) $ECHO_C" >&6
21259else
21260 cat >conftest.$ac_ext <<_ACEOF
21261/* confdefs.h. */
21262_ACEOF
21263cat confdefs.h >>conftest.$ac_ext
21264cat >>conftest.$ac_ext <<_ACEOF
21265/* end confdefs.h. */
21266
21267 #undef HAVE_STDLIB_H
21268 #include <stdio.h>
21269 #include <jpeglib.h>
21270
21271int
21272main ()
21273{
21274
21275
21276 ;
21277 return 0;
21278}
21279_ACEOF
21280rm -f conftest.$ac_objext
21281if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21282 (eval $ac_compile) 2>conftest.er1
a848cd7e 21283 ac_status=$?
ac1cb8d3
VS
21284 grep -v '^ *+' conftest.er1 >conftest.err
21285 rm -f conftest.er1
21286 cat conftest.err >&5
a848cd7e
SC
21287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21288 (exit $ac_status); } &&
17a7bf57 21289 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21291 (eval $ac_try) 2>&5
21292 ac_status=$?
21293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21294 (exit $ac_status); }; } &&
21295 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21297 (eval $ac_try) 2>&5
21298 ac_status=$?
21299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21300 (exit $ac_status); }; }; then
21301 ac_cv_header_jpeglib_h=yes
21302else
21303 echo "$as_me: failed program was:" >&5
21304sed 's/^/| /' conftest.$ac_ext >&5
21305
21306ac_cv_header_jpeglib_h=no
21307
21308fi
ac1cb8d3 21309rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21310
21311fi
21312
21313 echo "$as_me:$LINENO: result: $ac_cv_header_jpeglib_h" >&5
21314echo "${ECHO_T}$ac_cv_header_jpeglib_h" >&6
21315
21316 if test "$ac_cv_header_jpeglib_h" = "yes"; then
21317 echo "$as_me:$LINENO: checking for jpeg_read_header in -ljpeg" >&5
21318echo $ECHO_N "checking for jpeg_read_header in -ljpeg... $ECHO_C" >&6
21319if test "${ac_cv_lib_jpeg_jpeg_read_header+set}" = set; then
21320 echo $ECHO_N "(cached) $ECHO_C" >&6
21321else
21322 ac_check_lib_save_LIBS=$LIBS
21323LIBS="-ljpeg $LIBS"
21324cat >conftest.$ac_ext <<_ACEOF
21325/* confdefs.h. */
21326_ACEOF
21327cat confdefs.h >>conftest.$ac_ext
21328cat >>conftest.$ac_ext <<_ACEOF
21329/* end confdefs.h. */
21330
21331/* Override any gcc2 internal prototype to avoid an error. */
21332#ifdef __cplusplus
21333extern "C"
21334#endif
21335/* We use char because int might match the return type of a gcc2
21336 builtin and then its argument prototype would still apply. */
21337char jpeg_read_header ();
21338int
21339main ()
21340{
21341jpeg_read_header ();
21342 ;
21343 return 0;
21344}
21345_ACEOF
21346rm -f conftest.$ac_objext conftest$ac_exeext
21347if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 21348 (eval $ac_link) 2>conftest.er1
a848cd7e 21349 ac_status=$?
ac1cb8d3
VS
21350 grep -v '^ *+' conftest.er1 >conftest.err
21351 rm -f conftest.er1
21352 cat conftest.err >&5
a848cd7e
SC
21353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21354 (exit $ac_status); } &&
17a7bf57 21355 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21357 (eval $ac_try) 2>&5
21358 ac_status=$?
21359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21360 (exit $ac_status); }; } &&
21361 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
21362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21363 (eval $ac_try) 2>&5
21364 ac_status=$?
21365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21366 (exit $ac_status); }; }; then
21367 ac_cv_lib_jpeg_jpeg_read_header=yes
21368else
21369 echo "$as_me: failed program was:" >&5
21370sed 's/^/| /' conftest.$ac_ext >&5
21371
21372ac_cv_lib_jpeg_jpeg_read_header=no
21373fi
ac1cb8d3
VS
21374rm -f conftest.err conftest.$ac_objext \
21375 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
21376LIBS=$ac_check_lib_save_LIBS
21377fi
21378echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5
21379echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_read_header" >&6
21380if test $ac_cv_lib_jpeg_jpeg_read_header = yes; then
21381 JPEG_LINK=" -ljpeg"
21382fi
21383
21384 fi
21385
21386 if test "x$JPEG_LINK" = "x" ; then
21387 if test "$wxUSE_LIBJPEG" = "sys" ; then
21388 { { echo "$as_me:$LINENO: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&5
21389echo "$as_me: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&2;}
21390 { (exit 1); exit 1; }; }
21391 else
21392 { echo "$as_me:$LINENO: WARNING: system jpeg library not found, will use built-in instead" >&5
21393echo "$as_me: WARNING: system jpeg library not found, will use built-in instead" >&2;}
21394 wxUSE_LIBJPEG=builtin
21395 fi
21396 else
21397 wxUSE_LIBJPEG=sys
21398 fi
21399 fi
21400 fi
21401fi
21402
21403
21404TIFF_LINK=
21405TIFF_PREREQ_LINKS=-lm
21406if test "$wxUSE_LIBTIFF" != "no" ; then
21407 cat >>confdefs.h <<\_ACEOF
21408#define wxUSE_LIBTIFF 1
21409_ACEOF
21410
21411
21412 if test "$wxUSE_LIBTIFF" = "sys" -o "$wxUSE_LIBTIFF" = "yes" ; then
21413 if test "$wxUSE_LIBJPEG" = "sys"; then
21414 TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $JPEG_LINK"
21415 fi
21416 if test "$wxUSE_ZLIB" = "sys"; then
21417 TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $ZLIB_LINK"
21418 fi
21419 if test "${ac_cv_header_tiffio_h+set}" = set; then
21420 echo "$as_me:$LINENO: checking for tiffio.h" >&5
21421echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
21422if test "${ac_cv_header_tiffio_h+set}" = set; then
21423 echo $ECHO_N "(cached) $ECHO_C" >&6
21424fi
21425echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
21426echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
21427else
21428 # Is the header compilable?
21429echo "$as_me:$LINENO: checking tiffio.h usability" >&5
21430echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6
21431cat >conftest.$ac_ext <<_ACEOF
21432/* confdefs.h. */
21433_ACEOF
21434cat confdefs.h >>conftest.$ac_ext
21435cat >>conftest.$ac_ext <<_ACEOF
21436/* end confdefs.h. */
21437$ac_includes_default
21438#include <tiffio.h>
21439_ACEOF
21440rm -f conftest.$ac_objext
21441if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21442 (eval $ac_compile) 2>conftest.er1
a848cd7e 21443 ac_status=$?
ac1cb8d3
VS
21444 grep -v '^ *+' conftest.er1 >conftest.err
21445 rm -f conftest.er1
21446 cat conftest.err >&5
a848cd7e
SC
21447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21448 (exit $ac_status); } &&
17a7bf57 21449 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21451 (eval $ac_try) 2>&5
21452 ac_status=$?
21453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21454 (exit $ac_status); }; } &&
21455 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21457 (eval $ac_try) 2>&5
21458 ac_status=$?
21459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21460 (exit $ac_status); }; }; then
21461 ac_header_compiler=yes
21462else
21463 echo "$as_me: failed program was:" >&5
21464sed 's/^/| /' conftest.$ac_ext >&5
21465
21466ac_header_compiler=no
21467fi
ac1cb8d3 21468rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21469echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21470echo "${ECHO_T}$ac_header_compiler" >&6
21471
21472# Is the header present?
21473echo "$as_me:$LINENO: checking tiffio.h presence" >&5
21474echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6
21475cat >conftest.$ac_ext <<_ACEOF
21476/* confdefs.h. */
21477_ACEOF
21478cat confdefs.h >>conftest.$ac_ext
21479cat >>conftest.$ac_ext <<_ACEOF
21480/* end confdefs.h. */
21481#include <tiffio.h>
21482_ACEOF
21483if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21484 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21485 ac_status=$?
21486 grep -v '^ *+' conftest.er1 >conftest.err
21487 rm -f conftest.er1
21488 cat conftest.err >&5
21489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21490 (exit $ac_status); } >/dev/null; then
21491 if test -s conftest.err; then
21492 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 21493 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
21494 else
21495 ac_cpp_err=
21496 fi
21497else
21498 ac_cpp_err=yes
21499fi
21500if test -z "$ac_cpp_err"; then
21501 ac_header_preproc=yes
21502else
21503 echo "$as_me: failed program was:" >&5
21504sed 's/^/| /' conftest.$ac_ext >&5
21505
21506 ac_header_preproc=no
21507fi
21508rm -f conftest.err conftest.$ac_ext
21509echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21510echo "${ECHO_T}$ac_header_preproc" >&6
21511
21512# So? What about this header?
ac1cb8d3
VS
21513case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21514 yes:no: )
a848cd7e
SC
21515 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
21516echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
21517 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5
21518echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;}
21519 ac_header_preproc=yes
a848cd7e 21520 ;;
ac1cb8d3 21521 no:yes:* )
a848cd7e
SC
21522 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
21523echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
21524 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
21525echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
21526 { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
21527echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
21528 { echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
21529echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
21530 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
21531echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
21532 { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
21533echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
21534 (
21535 cat <<\_ASBOX
ac1cb8d3
VS
21536## ----------------------------------------- ##
21537## Report this to wx-dev@lists.wxwidgets.org ##
21538## ----------------------------------------- ##
a848cd7e
SC
21539_ASBOX
21540 ) |
21541 sed "s/^/$as_me: WARNING: /" >&2
21542 ;;
21543esac
21544echo "$as_me:$LINENO: checking for tiffio.h" >&5
21545echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
21546if test "${ac_cv_header_tiffio_h+set}" = set; then
21547 echo $ECHO_N "(cached) $ECHO_C" >&6
21548else
21549 ac_cv_header_tiffio_h=$ac_header_preproc
21550fi
21551echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
21552echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
21553
21554fi
21555if test $ac_cv_header_tiffio_h = yes; then
21556
21557 echo "$as_me:$LINENO: checking for TIFFError in -ltiff" >&5
21558echo $ECHO_N "checking for TIFFError in -ltiff... $ECHO_C" >&6
21559if test "${ac_cv_lib_tiff_TIFFError+set}" = set; then
21560 echo $ECHO_N "(cached) $ECHO_C" >&6
21561else
21562 ac_check_lib_save_LIBS=$LIBS
21563LIBS="-ltiff $TIFF_PREREQ_LINKS $LIBS"
21564cat >conftest.$ac_ext <<_ACEOF
21565/* confdefs.h. */
21566_ACEOF
21567cat confdefs.h >>conftest.$ac_ext
21568cat >>conftest.$ac_ext <<_ACEOF
21569/* end confdefs.h. */
21570
21571/* Override any gcc2 internal prototype to avoid an error. */
21572#ifdef __cplusplus
21573extern "C"
21574#endif
21575/* We use char because int might match the return type of a gcc2
21576 builtin and then its argument prototype would still apply. */
21577char TIFFError ();
21578int
21579main ()
21580{
21581TIFFError ();
21582 ;
21583 return 0;
21584}
21585_ACEOF
21586rm -f conftest.$ac_objext conftest$ac_exeext
21587if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 21588 (eval $ac_link) 2>conftest.er1
a848cd7e 21589 ac_status=$?
ac1cb8d3
VS
21590 grep -v '^ *+' conftest.er1 >conftest.err
21591 rm -f conftest.er1
21592 cat conftest.err >&5
a848cd7e
SC
21593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21594 (exit $ac_status); } &&
17a7bf57 21595 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21597 (eval $ac_try) 2>&5
21598 ac_status=$?
21599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21600 (exit $ac_status); }; } &&
21601 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
21602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21603 (eval $ac_try) 2>&5
21604 ac_status=$?
21605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21606 (exit $ac_status); }; }; then
21607 ac_cv_lib_tiff_TIFFError=yes
21608else
21609 echo "$as_me: failed program was:" >&5
21610sed 's/^/| /' conftest.$ac_ext >&5
21611
21612ac_cv_lib_tiff_TIFFError=no
21613fi
ac1cb8d3
VS
21614rm -f conftest.err conftest.$ac_objext \
21615 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
21616LIBS=$ac_check_lib_save_LIBS
21617fi
21618echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFError" >&5
21619echo "${ECHO_T}$ac_cv_lib_tiff_TIFFError" >&6
21620if test $ac_cv_lib_tiff_TIFFError = yes; then
21621 TIFF_LINK=" -ltiff"
21622fi
21623
21624
21625
21626fi
21627
21628
21629
21630 if test "x$TIFF_LINK" = "x" ; then
21631 if test "$wxUSE_LIBTIFF" = "sys" ; then
21632 { { echo "$as_me:$LINENO: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&5
21633echo "$as_me: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&2;}
21634 { (exit 1); exit 1; }; }
21635 else
21636 { echo "$as_me:$LINENO: WARNING: system tiff library not found, will use built-in instead" >&5
21637echo "$as_me: WARNING: system tiff library not found, will use built-in instead" >&2;}
21638 wxUSE_LIBTIFF=builtin
21639 fi
21640 else
21641 wxUSE_LIBTIFF=sys
21642 fi
21643 fi
21644fi
21645
21646
21647if test "$wxUSE_EXPAT" != "no"; then
21648 wxUSE_XML=yes
21649 cat >>confdefs.h <<\_ACEOF
21650#define wxUSE_EXPAT 1
21651_ACEOF
21652
21653 cat >>confdefs.h <<\_ACEOF
21654#define wxUSE_XML 1
21655_ACEOF
21656
21657
21658 if test "$wxUSE_EXPAT" = "sys" -o "$wxUSE_EXPAT" = "yes" ; then
21659 if test "${ac_cv_header_expat_h+set}" = set; then
21660 echo "$as_me:$LINENO: checking for expat.h" >&5
21661echo $ECHO_N "checking for expat.h... $ECHO_C" >&6
21662if test "${ac_cv_header_expat_h+set}" = set; then
21663 echo $ECHO_N "(cached) $ECHO_C" >&6
21664fi
21665echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5
21666echo "${ECHO_T}$ac_cv_header_expat_h" >&6
21667else
21668 # Is the header compilable?
21669echo "$as_me:$LINENO: checking expat.h usability" >&5
21670echo $ECHO_N "checking expat.h usability... $ECHO_C" >&6
21671cat >conftest.$ac_ext <<_ACEOF
21672/* confdefs.h. */
21673_ACEOF
21674cat confdefs.h >>conftest.$ac_ext
21675cat >>conftest.$ac_ext <<_ACEOF
21676/* end confdefs.h. */
21677$ac_includes_default
21678#include <expat.h>
21679_ACEOF
21680rm -f conftest.$ac_objext
21681if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21682 (eval $ac_compile) 2>conftest.er1
a848cd7e 21683 ac_status=$?
ac1cb8d3
VS
21684 grep -v '^ *+' conftest.er1 >conftest.err
21685 rm -f conftest.er1
21686 cat conftest.err >&5
a848cd7e
SC
21687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21688 (exit $ac_status); } &&
17a7bf57 21689 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21691 (eval $ac_try) 2>&5
21692 ac_status=$?
21693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21694 (exit $ac_status); }; } &&
21695 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21697 (eval $ac_try) 2>&5
21698 ac_status=$?
21699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21700 (exit $ac_status); }; }; then
21701 ac_header_compiler=yes
21702else
21703 echo "$as_me: failed program was:" >&5
21704sed 's/^/| /' conftest.$ac_ext >&5
21705
21706ac_header_compiler=no
21707fi
ac1cb8d3 21708rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21709echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21710echo "${ECHO_T}$ac_header_compiler" >&6
21711
21712# Is the header present?
21713echo "$as_me:$LINENO: checking expat.h presence" >&5
21714echo $ECHO_N "checking expat.h presence... $ECHO_C" >&6
21715cat >conftest.$ac_ext <<_ACEOF
21716/* confdefs.h. */
21717_ACEOF
21718cat confdefs.h >>conftest.$ac_ext
21719cat >>conftest.$ac_ext <<_ACEOF
21720/* end confdefs.h. */
21721#include <expat.h>
21722_ACEOF
21723if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21724 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21725 ac_status=$?
21726 grep -v '^ *+' conftest.er1 >conftest.err
21727 rm -f conftest.er1
21728 cat conftest.err >&5
21729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21730 (exit $ac_status); } >/dev/null; then
21731 if test -s conftest.err; then
21732 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 21733 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
21734 else
21735 ac_cpp_err=
21736 fi
21737else
21738 ac_cpp_err=yes
21739fi
21740if test -z "$ac_cpp_err"; then
21741 ac_header_preproc=yes
21742else
21743 echo "$as_me: failed program was:" >&5
21744sed 's/^/| /' conftest.$ac_ext >&5
21745
21746 ac_header_preproc=no
21747fi
21748rm -f conftest.err conftest.$ac_ext
21749echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21750echo "${ECHO_T}$ac_header_preproc" >&6
21751
21752# So? What about this header?
ac1cb8d3
VS
21753case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21754 yes:no: )
a848cd7e
SC
21755 { echo "$as_me:$LINENO: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&5
21756echo "$as_me: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
21757 { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the compiler's result" >&5
21758echo "$as_me: WARNING: expat.h: proceeding with the compiler's result" >&2;}
21759 ac_header_preproc=yes
a848cd7e 21760 ;;
ac1cb8d3 21761 no:yes:* )
a848cd7e
SC
21762 { echo "$as_me:$LINENO: WARNING: expat.h: present but cannot be compiled" >&5
21763echo "$as_me: WARNING: expat.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
21764 { echo "$as_me:$LINENO: WARNING: expat.h: check for missing prerequisite headers?" >&5
21765echo "$as_me: WARNING: expat.h: check for missing prerequisite headers?" >&2;}
21766 { echo "$as_me:$LINENO: WARNING: expat.h: see the Autoconf documentation" >&5
21767echo "$as_me: WARNING: expat.h: see the Autoconf documentation" >&2;}
21768 { echo "$as_me:$LINENO: WARNING: expat.h: section \"Present But Cannot Be Compiled\"" >&5
21769echo "$as_me: WARNING: expat.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
21770 { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the preprocessor's result" >&5
21771echo "$as_me: WARNING: expat.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
21772 { echo "$as_me:$LINENO: WARNING: expat.h: in the future, the compiler will take precedence" >&5
21773echo "$as_me: WARNING: expat.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
21774 (
21775 cat <<\_ASBOX
ac1cb8d3
VS
21776## ----------------------------------------- ##
21777## Report this to wx-dev@lists.wxwidgets.org ##
21778## ----------------------------------------- ##
a848cd7e
SC
21779_ASBOX
21780 ) |
21781 sed "s/^/$as_me: WARNING: /" >&2
21782 ;;
21783esac
21784echo "$as_me:$LINENO: checking for expat.h" >&5
21785echo $ECHO_N "checking for expat.h... $ECHO_C" >&6
21786if test "${ac_cv_header_expat_h+set}" = set; then
21787 echo $ECHO_N "(cached) $ECHO_C" >&6
21788else
21789 ac_cv_header_expat_h=$ac_header_preproc
21790fi
21791echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5
21792echo "${ECHO_T}$ac_cv_header_expat_h" >&6
21793
21794fi
21795if test $ac_cv_header_expat_h = yes; then
21796 found_expat_h=1
21797fi
21798
21799
21800 if test "x$found_expat_h" = "x1"; then
21801 echo "$as_me:$LINENO: checking if expat.h is valid C++ header" >&5
21802echo $ECHO_N "checking if expat.h is valid C++ header... $ECHO_C" >&6
21803if test "${wx_cv_expat_is_not_broken+set}" = set; then
21804 echo $ECHO_N "(cached) $ECHO_C" >&6
21805else
21806
21807
21808
21809 ac_ext=cc
21810ac_cpp='$CXXCPP $CPPFLAGS'
21811ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21812ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21813ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21814
21815 cat >conftest.$ac_ext <<_ACEOF
21816/* confdefs.h. */
21817_ACEOF
21818cat confdefs.h >>conftest.$ac_ext
21819cat >>conftest.$ac_ext <<_ACEOF
21820/* end confdefs.h. */
21821#include <expat.h>
21822int
21823main ()
21824{
21825
21826 ;
21827 return 0;
21828}
21829_ACEOF
21830rm -f conftest.$ac_objext
21831if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21832 (eval $ac_compile) 2>conftest.er1
a848cd7e 21833 ac_status=$?
ac1cb8d3
VS
21834 grep -v '^ *+' conftest.er1 >conftest.err
21835 rm -f conftest.er1
21836 cat conftest.err >&5
a848cd7e
SC
21837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21838 (exit $ac_status); } &&
17a7bf57 21839 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21841 (eval $ac_try) 2>&5
21842 ac_status=$?
21843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21844 (exit $ac_status); }; } &&
21845 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21847 (eval $ac_try) 2>&5
21848 ac_status=$?
21849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21850 (exit $ac_status); }; }; then
21851 wx_cv_expat_is_not_broken=yes
21852else
21853 echo "$as_me: failed program was:" >&5
21854sed 's/^/| /' conftest.$ac_ext >&5
21855
21856wx_cv_expat_is_not_broken=no
21857
21858fi
ac1cb8d3 21859rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21860 ac_ext=c
21861ac_cpp='$CPP $CPPFLAGS'
21862ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21863ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21864ac_compiler_gnu=$ac_cv_c_compiler_gnu
21865
21866
21867
21868fi
21869echo "$as_me:$LINENO: result: $wx_cv_expat_is_not_broken" >&5
21870echo "${ECHO_T}$wx_cv_expat_is_not_broken" >&6
21871 if test "$wx_cv_expat_is_not_broken" = "yes" ; then
21872 echo "$as_me:$LINENO: checking for XML_ParserCreate in -lexpat" >&5
21873echo $ECHO_N "checking for XML_ParserCreate in -lexpat... $ECHO_C" >&6
21874if test "${ac_cv_lib_expat_XML_ParserCreate+set}" = set; then
21875 echo $ECHO_N "(cached) $ECHO_C" >&6
21876else
21877 ac_check_lib_save_LIBS=$LIBS
21878LIBS="-lexpat $LIBS"
21879cat >conftest.$ac_ext <<_ACEOF
21880/* confdefs.h. */
21881_ACEOF
21882cat confdefs.h >>conftest.$ac_ext
21883cat >>conftest.$ac_ext <<_ACEOF
21884/* end confdefs.h. */
21885
21886/* Override any gcc2 internal prototype to avoid an error. */
21887#ifdef __cplusplus
21888extern "C"
21889#endif
21890/* We use char because int might match the return type of a gcc2
21891 builtin and then its argument prototype would still apply. */
21892char XML_ParserCreate ();
21893int
21894main ()
21895{
21896XML_ParserCreate ();
21897 ;
21898 return 0;
21899}
21900_ACEOF
21901rm -f conftest.$ac_objext conftest$ac_exeext
21902if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 21903 (eval $ac_link) 2>conftest.er1
a848cd7e 21904 ac_status=$?
ac1cb8d3
VS
21905 grep -v '^ *+' conftest.er1 >conftest.err
21906 rm -f conftest.er1
21907 cat conftest.err >&5
a848cd7e
SC
21908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21909 (exit $ac_status); } &&
17a7bf57 21910 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21912 (eval $ac_try) 2>&5
21913 ac_status=$?
21914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21915 (exit $ac_status); }; } &&
21916 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
21917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21918 (eval $ac_try) 2>&5
21919 ac_status=$?
21920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21921 (exit $ac_status); }; }; then
21922 ac_cv_lib_expat_XML_ParserCreate=yes
21923else
21924 echo "$as_me: failed program was:" >&5
21925sed 's/^/| /' conftest.$ac_ext >&5
21926
21927ac_cv_lib_expat_XML_ParserCreate=no
21928fi
ac1cb8d3
VS
21929rm -f conftest.err conftest.$ac_objext \
21930 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
21931LIBS=$ac_check_lib_save_LIBS
21932fi
21933echo "$as_me:$LINENO: result: $ac_cv_lib_expat_XML_ParserCreate" >&5
21934echo "${ECHO_T}$ac_cv_lib_expat_XML_ParserCreate" >&6
21935if test $ac_cv_lib_expat_XML_ParserCreate = yes; then
21936 EXPAT_LINK=" -lexpat"
21937fi
21938
21939 fi
21940 fi
21941 if test "x$EXPAT_LINK" = "x" ; then
21942 if test "$wxUSE_EXPAT" = "sys" ; then
21943 { { echo "$as_me:$LINENO: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&5
21944echo "$as_me: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&2;}
21945 { (exit 1); exit 1; }; }
21946 else
21947 { echo "$as_me:$LINENO: WARNING: system expat library not found, will use built-in instead" >&5
21948echo "$as_me: WARNING: system expat library not found, will use built-in instead" >&2;}
21949 wxUSE_EXPAT=builtin
21950 fi
21951 else
21952 wxUSE_EXPAT=sys
21953 fi
21954 fi
21955 if test "$wxUSE_EXPAT" = "builtin" ; then
21956
21957
21958subdirs="$subdirs src/expat"
21959
21960 fi
21961fi
21962
21963
21964
21965if test "$wxUSE_LIBMSPACK" != "no"; then
21966
21967 if test "${ac_cv_header_mspack_h+set}" = set; then
21968 echo "$as_me:$LINENO: checking for mspack.h" >&5
21969echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6
21970if test "${ac_cv_header_mspack_h+set}" = set; then
21971 echo $ECHO_N "(cached) $ECHO_C" >&6
21972fi
21973echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5
21974echo "${ECHO_T}$ac_cv_header_mspack_h" >&6
21975else
21976 # Is the header compilable?
21977echo "$as_me:$LINENO: checking mspack.h usability" >&5
21978echo $ECHO_N "checking mspack.h usability... $ECHO_C" >&6
21979cat >conftest.$ac_ext <<_ACEOF
21980/* confdefs.h. */
21981_ACEOF
21982cat confdefs.h >>conftest.$ac_ext
21983cat >>conftest.$ac_ext <<_ACEOF
21984/* end confdefs.h. */
21985$ac_includes_default
21986#include <mspack.h>
21987_ACEOF
21988rm -f conftest.$ac_objext
21989if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21990 (eval $ac_compile) 2>conftest.er1
a848cd7e 21991 ac_status=$?
ac1cb8d3
VS
21992 grep -v '^ *+' conftest.er1 >conftest.err
21993 rm -f conftest.er1
21994 cat conftest.err >&5
a848cd7e
SC
21995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21996 (exit $ac_status); } &&
17a7bf57 21997 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21999 (eval $ac_try) 2>&5
22000 ac_status=$?
22001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22002 (exit $ac_status); }; } &&
22003 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22005 (eval $ac_try) 2>&5
22006 ac_status=$?
22007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22008 (exit $ac_status); }; }; then
22009 ac_header_compiler=yes
22010else
22011 echo "$as_me: failed program was:" >&5
22012sed 's/^/| /' conftest.$ac_ext >&5
22013
22014ac_header_compiler=no
22015fi
ac1cb8d3 22016rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22017echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22018echo "${ECHO_T}$ac_header_compiler" >&6
22019
22020# Is the header present?
22021echo "$as_me:$LINENO: checking mspack.h presence" >&5
22022echo $ECHO_N "checking mspack.h presence... $ECHO_C" >&6
22023cat >conftest.$ac_ext <<_ACEOF
22024/* confdefs.h. */
22025_ACEOF
22026cat confdefs.h >>conftest.$ac_ext
22027cat >>conftest.$ac_ext <<_ACEOF
22028/* end confdefs.h. */
22029#include <mspack.h>
22030_ACEOF
22031if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22032 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22033 ac_status=$?
22034 grep -v '^ *+' conftest.er1 >conftest.err
22035 rm -f conftest.er1
22036 cat conftest.err >&5
22037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22038 (exit $ac_status); } >/dev/null; then
22039 if test -s conftest.err; then
22040 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 22041 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
22042 else
22043 ac_cpp_err=
22044 fi
22045else
22046 ac_cpp_err=yes
22047fi
22048if test -z "$ac_cpp_err"; then
22049 ac_header_preproc=yes
22050else
22051 echo "$as_me: failed program was:" >&5
22052sed 's/^/| /' conftest.$ac_ext >&5
22053
22054 ac_header_preproc=no
22055fi
22056rm -f conftest.err conftest.$ac_ext
22057echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22058echo "${ECHO_T}$ac_header_preproc" >&6
22059
22060# So? What about this header?
ac1cb8d3
VS
22061case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22062 yes:no: )
a848cd7e
SC
22063 { echo "$as_me:$LINENO: WARNING: mspack.h: accepted by the compiler, rejected by the preprocessor!" >&5
22064echo "$as_me: WARNING: mspack.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
22065 { echo "$as_me:$LINENO: WARNING: mspack.h: proceeding with the compiler's result" >&5
22066echo "$as_me: WARNING: mspack.h: proceeding with the compiler's result" >&2;}
22067 ac_header_preproc=yes
a848cd7e 22068 ;;
ac1cb8d3 22069 no:yes:* )
a848cd7e
SC
22070 { echo "$as_me:$LINENO: WARNING: mspack.h: present but cannot be compiled" >&5
22071echo "$as_me: WARNING: mspack.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
22072 { echo "$as_me:$LINENO: WARNING: mspack.h: check for missing prerequisite headers?" >&5
22073echo "$as_me: WARNING: mspack.h: check for missing prerequisite headers?" >&2;}
22074 { echo "$as_me:$LINENO: WARNING: mspack.h: see the Autoconf documentation" >&5
22075echo "$as_me: WARNING: mspack.h: see the Autoconf documentation" >&2;}
22076 { echo "$as_me:$LINENO: WARNING: mspack.h: section \"Present But Cannot Be Compiled\"" >&5
22077echo "$as_me: WARNING: mspack.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
22078 { echo "$as_me:$LINENO: WARNING: mspack.h: proceeding with the preprocessor's result" >&5
22079echo "$as_me: WARNING: mspack.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
22080 { echo "$as_me:$LINENO: WARNING: mspack.h: in the future, the compiler will take precedence" >&5
22081echo "$as_me: WARNING: mspack.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
22082 (
22083 cat <<\_ASBOX
ac1cb8d3
VS
22084## ----------------------------------------- ##
22085## Report this to wx-dev@lists.wxwidgets.org ##
22086## ----------------------------------------- ##
a848cd7e
SC
22087_ASBOX
22088 ) |
22089 sed "s/^/$as_me: WARNING: /" >&2
22090 ;;
22091esac
22092echo "$as_me:$LINENO: checking for mspack.h" >&5
22093echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6
22094if test "${ac_cv_header_mspack_h+set}" = set; then
22095 echo $ECHO_N "(cached) $ECHO_C" >&6
22096else
22097 ac_cv_header_mspack_h=$ac_header_preproc
22098fi
22099echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5
22100echo "${ECHO_T}$ac_cv_header_mspack_h" >&6
22101
22102fi
22103if test $ac_cv_header_mspack_h = yes; then
22104 found_mspack_h=1
22105fi
22106
22107
22108 if test "x$found_mspack_h" = "x1"; then
22109 echo "$as_me:$LINENO: checking for mspack_create_chm_decompressor in -lmspack" >&5
22110echo $ECHO_N "checking for mspack_create_chm_decompressor in -lmspack... $ECHO_C" >&6
22111if test "${ac_cv_lib_mspack_mspack_create_chm_decompressor+set}" = set; then
22112 echo $ECHO_N "(cached) $ECHO_C" >&6
22113else
22114 ac_check_lib_save_LIBS=$LIBS
22115LIBS="-lmspack $LIBS"
22116cat >conftest.$ac_ext <<_ACEOF
22117/* confdefs.h. */
22118_ACEOF
22119cat confdefs.h >>conftest.$ac_ext
22120cat >>conftest.$ac_ext <<_ACEOF
22121/* end confdefs.h. */
22122
22123/* Override any gcc2 internal prototype to avoid an error. */
22124#ifdef __cplusplus
22125extern "C"
22126#endif
22127/* We use char because int might match the return type of a gcc2
22128 builtin and then its argument prototype would still apply. */
22129char mspack_create_chm_decompressor ();
22130int
22131main ()
22132{
22133mspack_create_chm_decompressor ();
22134 ;
22135 return 0;
22136}
22137_ACEOF
22138rm -f conftest.$ac_objext conftest$ac_exeext
22139if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 22140 (eval $ac_link) 2>conftest.er1
a848cd7e 22141 ac_status=$?
ac1cb8d3
VS
22142 grep -v '^ *+' conftest.er1 >conftest.err
22143 rm -f conftest.er1
22144 cat conftest.err >&5
a848cd7e
SC
22145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22146 (exit $ac_status); } &&
17a7bf57 22147 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
22148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22149 (eval $ac_try) 2>&5
22150 ac_status=$?
22151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22152 (exit $ac_status); }; } &&
22153 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
22154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22155 (eval $ac_try) 2>&5
22156 ac_status=$?
22157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22158 (exit $ac_status); }; }; then
22159 ac_cv_lib_mspack_mspack_create_chm_decompressor=yes
22160else
22161 echo "$as_me: failed program was:" >&5
22162sed 's/^/| /' conftest.$ac_ext >&5
22163
22164ac_cv_lib_mspack_mspack_create_chm_decompressor=no
22165fi
ac1cb8d3
VS
22166rm -f conftest.err conftest.$ac_objext \
22167 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
22168LIBS=$ac_check_lib_save_LIBS
22169fi
22170echo "$as_me:$LINENO: result: $ac_cv_lib_mspack_mspack_create_chm_decompressor" >&5
22171echo "${ECHO_T}$ac_cv_lib_mspack_mspack_create_chm_decompressor" >&6
22172if test $ac_cv_lib_mspack_mspack_create_chm_decompressor = yes; then
22173 MSPACK_LINK=" -lmspack"
22174fi
22175
22176 fi
22177 if test "x$MSPACK_LINK" = "x" ; then
22178 wxUSE_LIBMSPACK=no
22179 else
22180 cat >>confdefs.h <<\_ACEOF
22181#define wxUSE_LIBMSPACK 1
22182_ACEOF
22183
22184 fi
22185fi
22186
22187
22188
22189AFMINSTALL=
22190WIN32INSTALL=
22191
22192TOOLKIT=
22193TOOLKIT_INCLUDE=
22194WIDGET_SET=
22195
22196if test "$USE_WIN32" = 1 ; then
22197
22198for ac_header in w32api.h
22199do
22200as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22201if eval "test \"\${$as_ac_Header+set}\" = set"; then
22202 echo "$as_me:$LINENO: checking for $ac_header" >&5
22203echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22204if eval "test \"\${$as_ac_Header+set}\" = set"; then
22205 echo $ECHO_N "(cached) $ECHO_C" >&6
22206fi
22207echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22208echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22209else
22210 # Is the header compilable?
22211echo "$as_me:$LINENO: checking $ac_header usability" >&5
22212echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
22213cat >conftest.$ac_ext <<_ACEOF
22214/* confdefs.h. */
22215_ACEOF
22216cat confdefs.h >>conftest.$ac_ext
22217cat >>conftest.$ac_ext <<_ACEOF
22218/* end confdefs.h. */
22219$ac_includes_default
22220#include <$ac_header>
22221_ACEOF
22222rm -f conftest.$ac_objext
22223if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22224 (eval $ac_compile) 2>conftest.er1
a848cd7e 22225 ac_status=$?
ac1cb8d3
VS
22226 grep -v '^ *+' conftest.er1 >conftest.err
22227 rm -f conftest.er1
22228 cat conftest.err >&5
a848cd7e
SC
22229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22230 (exit $ac_status); } &&
17a7bf57 22231 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
22232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22233 (eval $ac_try) 2>&5
22234 ac_status=$?
22235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22236 (exit $ac_status); }; } &&
22237 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22239 (eval $ac_try) 2>&5
22240 ac_status=$?
22241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22242 (exit $ac_status); }; }; then
22243 ac_header_compiler=yes
22244else
22245 echo "$as_me: failed program was:" >&5
22246sed 's/^/| /' conftest.$ac_ext >&5
22247
22248ac_header_compiler=no
22249fi
ac1cb8d3 22250rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22251echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22252echo "${ECHO_T}$ac_header_compiler" >&6
22253
22254# Is the header present?
22255echo "$as_me:$LINENO: checking $ac_header presence" >&5
22256echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
22257cat >conftest.$ac_ext <<_ACEOF
22258/* confdefs.h. */
22259_ACEOF
22260cat confdefs.h >>conftest.$ac_ext
22261cat >>conftest.$ac_ext <<_ACEOF
22262/* end confdefs.h. */
22263#include <$ac_header>
22264_ACEOF
22265if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22266 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22267 ac_status=$?
22268 grep -v '^ *+' conftest.er1 >conftest.err
22269 rm -f conftest.er1
22270 cat conftest.err >&5
22271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22272 (exit $ac_status); } >/dev/null; then
22273 if test -s conftest.err; then
22274 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 22275 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
22276 else
22277 ac_cpp_err=
22278 fi
22279else
22280 ac_cpp_err=yes
22281fi
22282if test -z "$ac_cpp_err"; then
22283 ac_header_preproc=yes
22284else
22285 echo "$as_me: failed program was:" >&5
22286sed 's/^/| /' conftest.$ac_ext >&5
22287
22288 ac_header_preproc=no
22289fi
22290rm -f conftest.err conftest.$ac_ext
22291echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22292echo "${ECHO_T}$ac_header_preproc" >&6
22293
22294# So? What about this header?
ac1cb8d3
VS
22295case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22296 yes:no: )
a848cd7e
SC
22297 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22298echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
22299 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22300echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22301 ac_header_preproc=yes
a848cd7e 22302 ;;
ac1cb8d3 22303 no:yes:* )
a848cd7e
SC
22304 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22305echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
22306 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22307echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22308 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22309echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22310 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22311echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
22312 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22313echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
22314 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22315echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
22316 (
22317 cat <<\_ASBOX
ac1cb8d3
VS
22318## ----------------------------------------- ##
22319## Report this to wx-dev@lists.wxwidgets.org ##
22320## ----------------------------------------- ##
a848cd7e
SC
22321_ASBOX
22322 ) |
22323 sed "s/^/$as_me: WARNING: /" >&2
22324 ;;
22325esac
22326echo "$as_me:$LINENO: checking for $ac_header" >&5
22327echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22328if eval "test \"\${$as_ac_Header+set}\" = set"; then
22329 echo $ECHO_N "(cached) $ECHO_C" >&6
22330else
ac1cb8d3 22331 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
22332fi
22333echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22334echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22335
22336fi
22337if test `eval echo '${'$as_ac_Header'}'` = yes; then
22338 cat >>confdefs.h <<_ACEOF
22339#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22340_ACEOF
22341
22342fi
22343
22344done
22345
22346 if test "${ac_cv_header_windows_h+set}" = set; then
22347 echo "$as_me:$LINENO: checking for windows.h" >&5
22348echo $ECHO_N "checking for windows.h... $ECHO_C" >&6
22349if test "${ac_cv_header_windows_h+set}" = set; then
22350 echo $ECHO_N "(cached) $ECHO_C" >&6
22351fi
22352echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
22353echo "${ECHO_T}$ac_cv_header_windows_h" >&6
22354else
22355 # Is the header compilable?
22356echo "$as_me:$LINENO: checking windows.h usability" >&5
22357echo $ECHO_N "checking windows.h usability... $ECHO_C" >&6
22358cat >conftest.$ac_ext <<_ACEOF
22359/* confdefs.h. */
22360_ACEOF
22361cat confdefs.h >>conftest.$ac_ext
22362cat >>conftest.$ac_ext <<_ACEOF
22363/* end confdefs.h. */
22364$ac_includes_default
22365#include <windows.h>
22366_ACEOF
22367rm -f conftest.$ac_objext
22368if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22369 (eval $ac_compile) 2>conftest.er1
a848cd7e 22370 ac_status=$?
ac1cb8d3
VS
22371 grep -v '^ *+' conftest.er1 >conftest.err
22372 rm -f conftest.er1
22373 cat conftest.err >&5
a848cd7e
SC
22374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22375 (exit $ac_status); } &&
17a7bf57 22376 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
22377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22378 (eval $ac_try) 2>&5
22379 ac_status=$?
22380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22381 (exit $ac_status); }; } &&
22382 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22384 (eval $ac_try) 2>&5
22385 ac_status=$?
22386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22387 (exit $ac_status); }; }; then
22388 ac_header_compiler=yes
22389else
22390 echo "$as_me: failed program was:" >&5
22391sed 's/^/| /' conftest.$ac_ext >&5
22392
22393ac_header_compiler=no
22394fi
ac1cb8d3 22395rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22396echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22397echo "${ECHO_T}$ac_header_compiler" >&6
22398
22399# Is the header present?
22400echo "$as_me:$LINENO: checking windows.h presence" >&5
22401echo $ECHO_N "checking windows.h presence... $ECHO_C" >&6
22402cat >conftest.$ac_ext <<_ACEOF
22403/* confdefs.h. */
22404_ACEOF
22405cat confdefs.h >>conftest.$ac_ext
22406cat >>conftest.$ac_ext <<_ACEOF
22407/* end confdefs.h. */
22408#include <windows.h>
22409_ACEOF
22410if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22411 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22412 ac_status=$?
22413 grep -v '^ *+' conftest.er1 >conftest.err
22414 rm -f conftest.er1
22415 cat conftest.err >&5
22416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22417 (exit $ac_status); } >/dev/null; then
22418 if test -s conftest.err; then
22419 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 22420 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
22421 else
22422 ac_cpp_err=
22423 fi
22424else
22425 ac_cpp_err=yes
22426fi
22427if test -z "$ac_cpp_err"; then
22428 ac_header_preproc=yes
22429else
22430 echo "$as_me: failed program was:" >&5
22431sed 's/^/| /' conftest.$ac_ext >&5
22432
22433 ac_header_preproc=no
22434fi
22435rm -f conftest.err conftest.$ac_ext
22436echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22437echo "${ECHO_T}$ac_header_preproc" >&6
22438
22439# So? What about this header?
ac1cb8d3
VS
22440case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22441 yes:no: )
a848cd7e
SC
22442 { echo "$as_me:$LINENO: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&5
22443echo "$as_me: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
22444 { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the compiler's result" >&5
22445echo "$as_me: WARNING: windows.h: proceeding with the compiler's result" >&2;}
22446 ac_header_preproc=yes
a848cd7e 22447 ;;
ac1cb8d3 22448 no:yes:* )
a848cd7e
SC
22449 { echo "$as_me:$LINENO: WARNING: windows.h: present but cannot be compiled" >&5
22450echo "$as_me: WARNING: windows.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
22451 { echo "$as_me:$LINENO: WARNING: windows.h: check for missing prerequisite headers?" >&5
22452echo "$as_me: WARNING: windows.h: check for missing prerequisite headers?" >&2;}
22453 { echo "$as_me:$LINENO: WARNING: windows.h: see the Autoconf documentation" >&5
22454echo "$as_me: WARNING: windows.h: see the Autoconf documentation" >&2;}
22455 { echo "$as_me:$LINENO: WARNING: windows.h: section \"Present But Cannot Be Compiled\"" >&5
22456echo "$as_me: WARNING: windows.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
22457 { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the preprocessor's result" >&5
22458echo "$as_me: WARNING: windows.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
22459 { echo "$as_me:$LINENO: WARNING: windows.h: in the future, the compiler will take precedence" >&5
22460echo "$as_me: WARNING: windows.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
22461 (
22462 cat <<\_ASBOX
ac1cb8d3
VS
22463## ----------------------------------------- ##
22464## Report this to wx-dev@lists.wxwidgets.org ##
22465## ----------------------------------------- ##
a848cd7e
SC
22466_ASBOX
22467 ) |
22468 sed "s/^/$as_me: WARNING: /" >&2
22469 ;;
22470esac
22471echo "$as_me:$LINENO: checking for windows.h" >&5
22472echo $ECHO_N "checking for windows.h... $ECHO_C" >&6
22473if test "${ac_cv_header_windows_h+set}" = set; then
22474 echo $ECHO_N "(cached) $ECHO_C" >&6
22475else
22476 ac_cv_header_windows_h=$ac_header_preproc
22477fi
22478echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
22479echo "${ECHO_T}$ac_cv_header_windows_h" >&6
22480
22481fi
22482if test $ac_cv_header_windows_h = yes; then
22483 :
22484else
22485
22486 { { echo "$as_me:$LINENO: error: please set CFLAGS to contain the location of windows.h" >&5
22487echo "$as_me: error: please set CFLAGS to contain the location of windows.h" >&2;}
22488 { (exit 1); exit 1; }; }
22489
22490fi
22491
22492
22493
22494 LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lcomdlg32 -lctl3d32 -ladvapi32 -lwsock32 -lgdi32"
22495
22496 if test "$wxUSE_ACCESSIBILITY" = "yes" ; then
22497 LIBS="$LIBS -loleacc"
22498 fi
22499
22500 case "${host}" in
22501 *-*-cygwin* )
22502 LIBS="$LIBS -lkernel32 -luser32"
22503 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WIN95__"
22504 esac
22505
22506 if test "$wxUSE_ODBC" = "sys" ; then
22507 wxUSE_ODBC = "yes"
22508 fi
22509 if test "$wxUSE_ODBC" = "yes" ; then
22510 LIBS=" -lodbc32 -lole32 -loleaut32 $LIBS"
22511 cat >>confdefs.h <<\_ACEOF
22512#define wxUSE_ODBC 1
22513_ACEOF
22514
22515 fi
22516
22517 RESFLAGS="--include-dir \$(top_srcdir)/include --include-dir \$(top_srcdir)/\$(program_dir) --define __WIN32__ --define __WIN95__ --define __GNUWIN32__"
22518 RESPROGRAMOBJ="\$(PROGRAM)_resources.o"
22519
22520 WIN32INSTALL=win32install
22521fi
22522
22523if test "$wxUSE_GUI" = "yes"; then
22524 USE_GUI=1
22525
22526 GUI_TK_LIBRARY=
22527
22528 WXGTK12=
22529 WXGTK127=
22530 WXGTK20=
22531 WXGPE=
22532
207bc66c
RN
22533 if test "$wxUSE_COCOA" = 1 ; then
22534 if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes"; then
22535 { echo "$as_me:$LINENO: WARNING: Printing not supported under wxCocoa yet, disabled" >&5
22536echo "$as_me: WARNING: Printing not supported under wxCocoa yet, disabled" >&2;}
22537 wxUSE_PRINTING_ARCHITECTURE=no
22538 fi
22539 if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
22540 { echo "$as_me:$LINENO: WARNING: Drag and Drop not supported under wxCocoa yet, disabled" >&5
22541echo "$as_me: WARNING: Drag and Drop not supported under wxCocoa yet, disabled" >&2;}
22542 wxUSE_DRAG_AND_DROP=no
22543 fi
22544 if test "$wxUSE_DRAGIMAGE" = "yes"; then
22545 { echo "$as_me:$LINENO: WARNING: Drag Image and DandD not supported under wxCocoa yet, disabled" >&5
22546echo "$as_me: WARNING: Drag Image and DandD not supported under wxCocoa yet, disabled" >&2;}
22547 wxUSE_DRAGIMAGE=no
22548 fi
22549 fi
22550
a848cd7e
SC
22551 if test "$wxUSE_MSW" = 1 ; then
22552 TOOLKIT=MSW
22553 GUIDIST=MSW_DIST
22554
ceec2216 22555 case "${host}" in
a848cd7e
SC
22556 *-*-mingw32* )
22557 WXCONFIG_LDFLAGS_GUI="$LDFLAGS -Wl,--subsystem,windows -mwindows"
22558 esac
22559 fi
22560
22561 if test "$wxUSE_GTK" = 1; then
22562 echo "$as_me:$LINENO: checking for GTK+ version" >&5
22563echo $ECHO_N "checking for GTK+ version... $ECHO_C" >&6
22564
22565 gtk_version_cached=1
22566 if test "${wx_cv_lib_gtk+set}" = set; then
22567 echo $ECHO_N "(cached) $ECHO_C" >&6
22568else
22569
22570 gtk_version_cached=0
22571 echo "$as_me:$LINENO: result: " >&5
22572echo "${ECHO_T}" >&6
22573
22574 GTK_MODULES=
22575 if test "$wxUSE_THREADS" = "yes"; then
22576 GTK_MODULES=gthread
22577 fi
22578
22579 wx_cv_lib_gtk=
22580 if test "x$wxUSE_GTK2" = "xyes"; then
22581 # Check whether --enable-gtktest or --disable-gtktest was given.
22582if test "${enable_gtktest+set}" = set; then
22583 enableval="$enable_gtktest"
22584
22585else
22586 enable_gtktest=yes
22587fi;
22588
22589 pkg_config_args=gtk+-2.0
22590 for module in . $GTK_MODULES
22591 do
22592 case "$module" in
22593 gthread)
22594 pkg_config_args="$pkg_config_args gthread-2.0"
22595 ;;
22596 esac
22597 done
22598
22599 no_gtk=""
22600
22601 # Extract the first word of "pkg-config", so it can be a program name with args.
22602set dummy pkg-config; ac_word=$2
22603echo "$as_me:$LINENO: checking for $ac_word" >&5
22604echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22605if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
22606 echo $ECHO_N "(cached) $ECHO_C" >&6
22607else
22608 case $PKG_CONFIG in
22609 [\\/]* | ?:[\\/]*)
22610 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
22611 ;;
22612 *)
22613 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22614for as_dir in $PATH
22615do
22616 IFS=$as_save_IFS
22617 test -z "$as_dir" && as_dir=.
22618 for ac_exec_ext in '' $ac_executable_extensions; do
22619 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22620 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22621 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22622 break 2
22623 fi
22624done
22625done
22626
22627 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
22628 ;;
22629esac
22630fi
22631PKG_CONFIG=$ac_cv_path_PKG_CONFIG
22632
22633if test -n "$PKG_CONFIG"; then
22634 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
22635echo "${ECHO_T}$PKG_CONFIG" >&6
22636else
22637 echo "$as_me:$LINENO: result: no" >&5
22638echo "${ECHO_T}no" >&6
22639fi
22640
22641
22642 if test x$PKG_CONFIG != xno ; then
22643 if pkg-config --atleast-pkgconfig-version 0.7 ; then
22644 :
22645 else
c2218763 22646 echo "*** pkg-config too old; version 0.7 or better required."
a848cd7e
SC
22647 no_gtk=yes
22648 PKG_CONFIG=no
22649 fi
22650 else
22651 no_gtk=yes
22652 fi
22653
22654 min_gtk_version=2.0.0
22655 echo "$as_me:$LINENO: checking for GTK+ - version >= $min_gtk_version" >&5
22656echo $ECHO_N "checking for GTK+ - version >= $min_gtk_version... $ECHO_C" >&6
22657
22658 if test x$PKG_CONFIG != xno ; then
22659 ## don't try to run the test against uninstalled libtool libs
22660 if $PKG_CONFIG --uninstalled $pkg_config_args; then
22661 echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH"
22662 enable_gtktest=no
22663 fi
22664
22665 if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then
22666 :
22667 else
22668 no_gtk=yes
22669 fi
22670 fi
22671
22672 if test x"$no_gtk" = x ; then
22673 GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags`
22674 GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs`
22675 gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
22676 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
22677 gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
22678 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
22679 gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
22680 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
22681 if test "x$enable_gtktest" = "xyes" ; then
22682 ac_save_CFLAGS="$CFLAGS"
22683 ac_save_LIBS="$LIBS"
22684 CFLAGS="$CFLAGS $GTK_CFLAGS"
22685 LIBS="$GTK_LIBS $LIBS"
22686 rm -f conf.gtktest
22687 if test "$cross_compiling" = yes; then
22688 echo $ac_n "cross compiling; assumed OK... $ac_c"
22689else
22690 cat >conftest.$ac_ext <<_ACEOF
22691/* confdefs.h. */
22692_ACEOF
22693cat confdefs.h >>conftest.$ac_ext
22694cat >>conftest.$ac_ext <<_ACEOF
22695/* end confdefs.h. */
22696
22697#include <gtk/gtk.h>
22698#include <stdio.h>
22699#include <stdlib.h>
22700
22701int
22702main ()
22703{
22704 int major, minor, micro;
22705 char *tmp_version;
22706
22707 system ("touch conf.gtktest");
22708
22709 /* HP/UX 9 (%@#!) writes to sscanf strings */
22710 tmp_version = g_strdup("$min_gtk_version");
22711 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
22712 printf("%s, bad version string\n", "$min_gtk_version");
22713 exit(1);
22714 }
22715
22716 if ((gtk_major_version != $gtk_config_major_version) ||
22717 (gtk_minor_version != $gtk_config_minor_version) ||
22718 (gtk_micro_version != $gtk_config_micro_version))
22719 {
22720 printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
22721 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
22722 gtk_major_version, gtk_minor_version, gtk_micro_version);
22723 printf ("*** was found! If pkg-config was correct, then it is best\n");
22724 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
22725 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
22726 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
22727 printf("*** required on your system.\n");
22728 printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
22729 printf("*** to point to the correct configuration files\n");
22730 }
22731 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
22732 (gtk_minor_version != GTK_MINOR_VERSION) ||
22733 (gtk_micro_version != GTK_MICRO_VERSION))
22734 {
22735 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
22736 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
22737 printf("*** library (version %d.%d.%d)\n",
22738 gtk_major_version, gtk_minor_version, gtk_micro_version);
22739 }
22740 else
22741 {
22742 if ((gtk_major_version > major) ||
22743 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
22744 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
22745 {
22746 return 0;
22747 }
22748 else
22749 {
22750 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
22751 gtk_major_version, gtk_minor_version, gtk_micro_version);
22752 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
22753 major, minor, micro);
22754 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
22755 printf("***\n");
22756 printf("*** If you have already installed a sufficiently new version, this error\n");
22757 printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
22758 printf("*** being found. The easiest way to fix this is to remove the old version\n");
22759 printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n");
22760 printf("*** correct copy of pkg-config. (In this case, you will have to\n");
22761 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
22762 printf("*** so that the correct libraries are found at run-time))\n");
22763 }
22764 }
22765 return 1;
22766}
22767
22768_ACEOF
22769rm -f conftest$ac_exeext
22770if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22771 (eval $ac_link) 2>&5
22772 ac_status=$?
22773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22774 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22776 (eval $ac_try) 2>&5
22777 ac_status=$?
22778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22779 (exit $ac_status); }; }; then
22780 :
22781else
22782 echo "$as_me: program exited with status $ac_status" >&5
22783echo "$as_me: failed program was:" >&5
22784sed 's/^/| /' conftest.$ac_ext >&5
22785
22786( exit $ac_status )
22787no_gtk=yes
22788fi
ac1cb8d3 22789rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22790fi
22791 CFLAGS="$ac_save_CFLAGS"
22792 LIBS="$ac_save_LIBS"
22793 fi
22794 fi
22795 if test "x$no_gtk" = x ; then
22796 echo "$as_me:$LINENO: result: yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&5
22797echo "${ECHO_T}yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&6
22798 wx_cv_lib_gtk=2.0
22799 else
22800 echo "$as_me:$LINENO: result: no" >&5
22801echo "${ECHO_T}no" >&6
22802 if test "$PKG_CONFIG" = "no" ; then
22803 echo "*** A new enough version of pkg-config was not found."
22804 echo "*** See http://pkgconfig.sourceforge.net"
22805 else
22806 if test -f conf.gtktest ; then
22807 :
22808 else
22809 echo "*** Could not run GTK+ test program, checking why..."
22810 ac_save_CFLAGS="$CFLAGS"
22811 ac_save_LIBS="$LIBS"
22812 CFLAGS="$CFLAGS $GTK_CFLAGS"
22813 LIBS="$LIBS $GTK_LIBS"
22814 cat >conftest.$ac_ext <<_ACEOF
22815/* confdefs.h. */
22816_ACEOF
22817cat confdefs.h >>conftest.$ac_ext
22818cat >>conftest.$ac_ext <<_ACEOF
22819/* end confdefs.h. */
22820
22821#include <gtk/gtk.h>
22822#include <stdio.h>
22823
22824int
22825main ()
22826{
22827 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
22828 ;
22829 return 0;
22830}
22831_ACEOF
22832rm -f conftest.$ac_objext conftest$ac_exeext
22833if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 22834 (eval $ac_link) 2>conftest.er1
a848cd7e 22835 ac_status=$?
ac1cb8d3
VS
22836 grep -v '^ *+' conftest.er1 >conftest.err
22837 rm -f conftest.er1
22838 cat conftest.err >&5
a848cd7e
SC
22839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22840 (exit $ac_status); } &&
17a7bf57 22841 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
22842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22843 (eval $ac_try) 2>&5
22844 ac_status=$?
22845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22846 (exit $ac_status); }; } &&
22847 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
22848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22849 (eval $ac_try) 2>&5
22850 ac_status=$?
22851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22852 (exit $ac_status); }; }; then
22853 echo "*** The test program compiled, but did not run. This usually means"
22854 echo "*** that the run-time linker is not finding GTK+ or finding the wrong"
22855 echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your"
22856 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
22857 echo "*** to the installed location Also, make sure you have run ldconfig if that"
22858 echo "*** is required on your system"
22859 echo "***"
22860 echo "*** If you have an old version installed, it is best to remove it, although"
22861 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
22862else
22863 echo "$as_me: failed program was:" >&5
22864sed 's/^/| /' conftest.$ac_ext >&5
22865
22866 echo "*** The test program failed to compile or link. See the file config.log for the"
22867 echo "*** exact error that occured. This usually means GTK+ is incorrectly installed."
22868fi
ac1cb8d3
VS
22869rm -f conftest.err conftest.$ac_objext \
22870 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
22871 CFLAGS="$ac_save_CFLAGS"
22872 LIBS="$ac_save_LIBS"
22873 fi
22874 fi
22875 GTK_CFLAGS=""
22876 GTK_LIBS=""
22877 :
22878 fi
22879
22880
22881 rm -f conf.gtktest
22882
22883 else
22884
22885# Check whether --with-gtk-prefix or --without-gtk-prefix was given.
22886if test "${with_gtk_prefix+set}" = set; then
22887 withval="$with_gtk_prefix"
22888 gtk_config_prefix="$withval"
22889else
22890 gtk_config_prefix=""
22891fi;
22892
22893# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
22894if test "${with_gtk_exec_prefix+set}" = set; then
22895 withval="$with_gtk_exec_prefix"
22896 gtk_config_exec_prefix="$withval"
22897else
22898 gtk_config_exec_prefix=""
22899fi;
22900# Check whether --enable-gtktest or --disable-gtktest was given.
22901if test "${enable_gtktest+set}" = set; then
22902 enableval="$enable_gtktest"
22903
22904else
22905 enable_gtktest=yes
22906fi;
22907
22908 for module in . $GTK_MODULES
22909 do
22910 case "$module" in
22911 gthread)
22912 gtk_config_args="$gtk_config_args gthread"
22913 ;;
22914 esac
22915 done
22916
22917 if test x$gtk_config_exec_prefix != x ; then
22918 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
22919 if test x${GTK_CONFIG+set} != xset ; then
22920 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
22921 fi
22922 fi
22923 if test x$gtk_config_prefix != x ; then
22924 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
22925 if test x${GTK_CONFIG+set} != xset ; then
22926 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
22927 fi
22928 fi
22929
22930 # Extract the first word of "gtk-config", so it can be a program name with args.
22931set dummy gtk-config; ac_word=$2
22932echo "$as_me:$LINENO: checking for $ac_word" >&5
22933echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22934if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
22935 echo $ECHO_N "(cached) $ECHO_C" >&6
22936else
22937 case $GTK_CONFIG in
22938 [\\/]* | ?:[\\/]*)
22939 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
22940 ;;
22941 *)
22942 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22943for as_dir in $PATH
22944do
22945 IFS=$as_save_IFS
22946 test -z "$as_dir" && as_dir=.
22947 for ac_exec_ext in '' $ac_executable_extensions; do
22948 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22949 ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22950 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22951 break 2
22952 fi
22953done
22954done
22955
22956 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
22957 ;;
22958esac
22959fi
22960GTK_CONFIG=$ac_cv_path_GTK_CONFIG
22961
22962if test -n "$GTK_CONFIG"; then
22963 echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
22964echo "${ECHO_T}$GTK_CONFIG" >&6
22965else
22966 echo "$as_me:$LINENO: result: no" >&5
22967echo "${ECHO_T}no" >&6
22968fi
22969
22970 min_gtk_version=1.2.7
22971 echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
22972echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6
22973 no_gtk=""
22974 if test "$GTK_CONFIG" = "no" ; then
22975 no_gtk=yes
22976 else
22977 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
22978 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
22979 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
22980 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
22981 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
22982 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
22983 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
22984 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
22985 if test "x$enable_gtktest" = "xyes" ; then
22986 ac_save_CFLAGS="$CFLAGS"
22987 ac_save_LIBS="$LIBS"
22988 CFLAGS="$CFLAGS $GTK_CFLAGS"
22989 LIBS="$GTK_LIBS $LIBS"
22990 rm -f conf.gtktest
22991 if test "$cross_compiling" = yes; then
22992 echo $ac_n "cross compiling; assumed OK... $ac_c"
22993else
22994 cat >conftest.$ac_ext <<_ACEOF
22995/* confdefs.h. */
22996_ACEOF
22997cat confdefs.h >>conftest.$ac_ext
22998cat >>conftest.$ac_ext <<_ACEOF
22999/* end confdefs.h. */
23000
23001#include <gtk/gtk.h>
23002#include <stdio.h>
23003#include <stdlib.h>
23004
23005int
23006main ()
23007{
23008 int major, minor, micro;
23009 char *tmp_version;
23010
23011 system ("touch conf.gtktest");
23012
23013 /* HP/UX 9 (%@#!) writes to sscanf strings */
23014 tmp_version = g_strdup("$min_gtk_version");
23015 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
23016 printf("%s, bad version string\n", "$min_gtk_version");
23017 exit(1);
23018 }
23019
23020 if ((gtk_major_version != $gtk_config_major_version) ||
23021 (gtk_minor_version != $gtk_config_minor_version) ||
23022 (gtk_micro_version != $gtk_config_micro_version))
23023 {
23024 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
23025 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
23026 gtk_major_version, gtk_minor_version, gtk_micro_version);
23027 printf ("*** was found! If gtk-config was correct, then it is best\n");
23028 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
23029 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
23030 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
23031 printf("*** required on your system.\n");
23032 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
23033 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
23034 printf("*** before re-running configure\n");
23035 }
23036#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
23037 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
23038 (gtk_minor_version != GTK_MINOR_VERSION) ||
23039 (gtk_micro_version != GTK_MICRO_VERSION))
23040 {
23041 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
23042 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
23043 printf("*** library (version %d.%d.%d)\n",
23044 gtk_major_version, gtk_minor_version, gtk_micro_version);
23045 }
23046#endif /* defined (GTK_MAJOR_VERSION) ... */
23047 else
23048 {
23049 if ((gtk_major_version > major) ||
23050 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
23051 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
23052 {
23053 return 0;
23054 }
23055 else
23056 {
23057 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
23058 gtk_major_version, gtk_minor_version, gtk_micro_version);
23059 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
23060 major, minor, micro);
23061 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
23062 printf("***\n");
23063 printf("*** If you have already installed a sufficiently new version, this error\n");
23064 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
23065 printf("*** being found. The easiest way to fix this is to remove the old version\n");
23066 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
23067 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
23068 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
23069 printf("*** so that the correct libraries are found at run-time))\n");
23070 }
23071 }
23072 return 1;
23073}
23074
23075_ACEOF
23076rm -f conftest$ac_exeext
23077if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23078 (eval $ac_link) 2>&5
23079 ac_status=$?
23080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23081 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23083 (eval $ac_try) 2>&5
23084 ac_status=$?
23085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23086 (exit $ac_status); }; }; then
23087 :
23088else
23089 echo "$as_me: program exited with status $ac_status" >&5
23090echo "$as_me: failed program was:" >&5
23091sed 's/^/| /' conftest.$ac_ext >&5
23092
23093( exit $ac_status )
23094no_gtk=yes
23095fi
ac1cb8d3 23096rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
23097fi
23098 CFLAGS="$ac_save_CFLAGS"
23099 LIBS="$ac_save_LIBS"
23100 fi
23101 fi
23102 if test "x$no_gtk" = x ; then
23103 echo "$as_me:$LINENO: result: yes" >&5
23104echo "${ECHO_T}yes" >&6
23105 wx_cv_lib_gtk=1.2.7
23106 else
23107 echo "$as_me:$LINENO: result: no" >&5
23108echo "${ECHO_T}no" >&6
23109 if test "$GTK_CONFIG" = "no" ; then
23110 echo "*** The gtk-config script installed by GTK could not be found"
23111 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
23112 echo "*** your path, or set the GTK_CONFIG environment variable to the"
23113 echo "*** full path to gtk-config."
23114 else
23115 if test -f conf.gtktest ; then
23116 :
23117 else
23118 echo "*** Could not run GTK test program, checking why..."
23119 CFLAGS="$CFLAGS $GTK_CFLAGS"
23120 LIBS="$LIBS $GTK_LIBS"
23121 cat >conftest.$ac_ext <<_ACEOF
23122/* confdefs.h. */
23123_ACEOF
23124cat confdefs.h >>conftest.$ac_ext
23125cat >>conftest.$ac_ext <<_ACEOF
23126/* end confdefs.h. */
23127
23128#include <gtk/gtk.h>
23129#include <stdio.h>
23130
23131int
23132main ()
23133{
23134 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
23135 ;
23136 return 0;
23137}
23138_ACEOF
23139rm -f conftest.$ac_objext conftest$ac_exeext
23140if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 23141 (eval $ac_link) 2>conftest.er1
a848cd7e 23142 ac_status=$?
ac1cb8d3
VS
23143 grep -v '^ *+' conftest.er1 >conftest.err
23144 rm -f conftest.er1
23145 cat conftest.err >&5
a848cd7e
SC
23146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23147 (exit $ac_status); } &&
17a7bf57 23148 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23150 (eval $ac_try) 2>&5
23151 ac_status=$?
23152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23153 (exit $ac_status); }; } &&
23154 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
23155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23156 (eval $ac_try) 2>&5
23157 ac_status=$?
23158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23159 (exit $ac_status); }; }; then
23160 echo "*** The test program compiled, but did not run. This usually means"
23161 echo "*** that the run-time linker is not finding GTK or finding the wrong"
23162 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
23163 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
23164 echo "*** to the installed location Also, make sure you have run ldconfig if that"
23165 echo "*** is required on your system"
23166 echo "***"
23167 echo "*** If you have an old version installed, it is best to remove it, although"
23168 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
23169 echo "***"
23170 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
23171 echo "*** came with the system with the command"
23172 echo "***"
23173 echo "*** rpm --erase --nodeps gtk gtk-devel"
23174else
23175 echo "$as_me: failed program was:" >&5
23176sed 's/^/| /' conftest.$ac_ext >&5
23177
23178 echo "*** The test program failed to compile or link. See the file config.log for the"
23179 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
23180 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
23181 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
23182fi
ac1cb8d3
VS
23183rm -f conftest.err conftest.$ac_objext \
23184 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
23185 CFLAGS="$ac_save_CFLAGS"
23186 LIBS="$ac_save_LIBS"
23187 fi
23188 fi
23189 GTK_CFLAGS=""
23190 GTK_LIBS=""
23191 :
23192 fi
23193
23194
23195 rm -f conf.gtktest
23196
23197
23198 if test -z "$wx_cv_lib_gtk"; then
23199
23200# Check whether --with-gtk-prefix or --without-gtk-prefix was given.
23201if test "${with_gtk_prefix+set}" = set; then
23202 withval="$with_gtk_prefix"
23203 gtk_config_prefix="$withval"
23204else
23205 gtk_config_prefix=""
23206fi;
23207
23208# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
23209if test "${with_gtk_exec_prefix+set}" = set; then
23210 withval="$with_gtk_exec_prefix"
23211 gtk_config_exec_prefix="$withval"
23212else
23213 gtk_config_exec_prefix=""
23214fi;
23215# Check whether --enable-gtktest or --disable-gtktest was given.
23216if test "${enable_gtktest+set}" = set; then
23217 enableval="$enable_gtktest"
23218
23219else
23220 enable_gtktest=yes
23221fi;
23222
23223 for module in . $GTK_MODULES
23224 do
23225 case "$module" in
23226 gthread)
23227 gtk_config_args="$gtk_config_args gthread"
23228 ;;
23229 esac
23230 done
23231
23232 if test x$gtk_config_exec_prefix != x ; then
23233 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
23234 if test x${GTK_CONFIG+set} != xset ; then
23235 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
23236 fi
23237 fi
23238 if test x$gtk_config_prefix != x ; then
23239 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
23240 if test x${GTK_CONFIG+set} != xset ; then
23241 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
23242 fi
23243 fi
23244
23245 # Extract the first word of "gtk-config", so it can be a program name with args.
23246set dummy gtk-config; ac_word=$2
23247echo "$as_me:$LINENO: checking for $ac_word" >&5
23248echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
23249if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
23250 echo $ECHO_N "(cached) $ECHO_C" >&6
23251else
23252 case $GTK_CONFIG in
23253 [\\/]* | ?:[\\/]*)
23254 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
23255 ;;
23256 *)
23257 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23258for as_dir in $PATH
23259do
23260 IFS=$as_save_IFS
23261 test -z "$as_dir" && as_dir=.
23262 for ac_exec_ext in '' $ac_executable_extensions; do
23263 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23264 ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
23265 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23266 break 2
23267 fi
23268done
23269done
23270
23271 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
23272 ;;
23273esac
23274fi
23275GTK_CONFIG=$ac_cv_path_GTK_CONFIG
23276
23277if test -n "$GTK_CONFIG"; then
23278 echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
23279echo "${ECHO_T}$GTK_CONFIG" >&6
23280else
23281 echo "$as_me:$LINENO: result: no" >&5
23282echo "${ECHO_T}no" >&6
23283fi
23284
23285 min_gtk_version=1.2.3
23286 echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
23287echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6
23288 no_gtk=""
23289 if test "$GTK_CONFIG" = "no" ; then
23290 no_gtk=yes
23291 else
23292 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
23293 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
23294 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
23295 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
23296 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
23297 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
23298 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
23299 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
23300 if test "x$enable_gtktest" = "xyes" ; then
23301 ac_save_CFLAGS="$CFLAGS"
23302 ac_save_LIBS="$LIBS"
23303 CFLAGS="$CFLAGS $GTK_CFLAGS"
23304 LIBS="$GTK_LIBS $LIBS"
23305 rm -f conf.gtktest
23306 if test "$cross_compiling" = yes; then
23307 echo $ac_n "cross compiling; assumed OK... $ac_c"
23308else
23309 cat >conftest.$ac_ext <<_ACEOF
23310/* confdefs.h. */
23311_ACEOF
23312cat confdefs.h >>conftest.$ac_ext
23313cat >>conftest.$ac_ext <<_ACEOF
23314/* end confdefs.h. */
23315
23316#include <gtk/gtk.h>
23317#include <stdio.h>
23318#include <stdlib.h>
23319
23320int
23321main ()
23322{
23323 int major, minor, micro;
23324 char *tmp_version;
23325
23326 system ("touch conf.gtktest");
23327
23328 /* HP/UX 9 (%@#!) writes to sscanf strings */
23329 tmp_version = g_strdup("$min_gtk_version");
23330 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
23331 printf("%s, bad version string\n", "$min_gtk_version");
23332 exit(1);
23333 }
23334
23335 if ((gtk_major_version != $gtk_config_major_version) ||
23336 (gtk_minor_version != $gtk_config_minor_version) ||
23337 (gtk_micro_version != $gtk_config_micro_version))
23338 {
23339 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
23340 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
23341 gtk_major_version, gtk_minor_version, gtk_micro_version);
23342 printf ("*** was found! If gtk-config was correct, then it is best\n");
23343 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
23344 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
23345 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
23346 printf("*** required on your system.\n");
23347 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
23348 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
23349 printf("*** before re-running configure\n");
23350 }
23351#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
23352 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
23353 (gtk_minor_version != GTK_MINOR_VERSION) ||
23354 (gtk_micro_version != GTK_MICRO_VERSION))
23355 {
23356 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
23357 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
23358 printf("*** library (version %d.%d.%d)\n",
23359 gtk_major_version, gtk_minor_version, gtk_micro_version);
23360 }
23361#endif /* defined (GTK_MAJOR_VERSION) ... */
23362 else
23363 {
23364 if ((gtk_major_version > major) ||
23365 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
23366 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
23367 {
23368 return 0;
23369 }
23370 else
23371 {
23372 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
23373 gtk_major_version, gtk_minor_version, gtk_micro_version);
23374 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
23375 major, minor, micro);
23376 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
23377 printf("***\n");
23378 printf("*** If you have already installed a sufficiently new version, this error\n");
23379 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
23380 printf("*** being found. The easiest way to fix this is to remove the old version\n");
23381 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
23382 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
23383 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
23384 printf("*** so that the correct libraries are found at run-time))\n");
23385 }
23386 }
23387 return 1;
23388}
23389
23390_ACEOF
23391rm -f conftest$ac_exeext
23392if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23393 (eval $ac_link) 2>&5
23394 ac_status=$?
23395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23396 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23398 (eval $ac_try) 2>&5
23399 ac_status=$?
23400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23401 (exit $ac_status); }; }; then
23402 :
23403else
23404 echo "$as_me: program exited with status $ac_status" >&5
23405echo "$as_me: failed program was:" >&5
23406sed 's/^/| /' conftest.$ac_ext >&5
23407
23408( exit $ac_status )
23409no_gtk=yes
23410fi
ac1cb8d3 23411rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
23412fi
23413 CFLAGS="$ac_save_CFLAGS"
23414 LIBS="$ac_save_LIBS"
23415 fi
23416 fi
23417 if test "x$no_gtk" = x ; then
23418 echo "$as_me:$LINENO: result: yes" >&5
23419echo "${ECHO_T}yes" >&6
23420 wx_cv_lib_gtk=1.2.3
23421 else
23422 echo "$as_me:$LINENO: result: no" >&5
23423echo "${ECHO_T}no" >&6
23424 if test "$GTK_CONFIG" = "no" ; then
23425 echo "*** The gtk-config script installed by GTK could not be found"
23426 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
23427 echo "*** your path, or set the GTK_CONFIG environment variable to the"
23428 echo "*** full path to gtk-config."
23429 else
23430 if test -f conf.gtktest ; then
23431 :
23432 else
23433 echo "*** Could not run GTK test program, checking why..."
23434 CFLAGS="$CFLAGS $GTK_CFLAGS"
23435 LIBS="$LIBS $GTK_LIBS"
23436 cat >conftest.$ac_ext <<_ACEOF
23437/* confdefs.h. */
23438_ACEOF
23439cat confdefs.h >>conftest.$ac_ext
23440cat >>conftest.$ac_ext <<_ACEOF
23441/* end confdefs.h. */
23442
23443#include <gtk/gtk.h>
23444#include <stdio.h>
23445
23446int
23447main ()
23448{
23449 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
23450 ;
23451 return 0;
23452}
23453_ACEOF
23454rm -f conftest.$ac_objext conftest$ac_exeext
23455if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 23456 (eval $ac_link) 2>conftest.er1
a848cd7e 23457 ac_status=$?
ac1cb8d3
VS
23458 grep -v '^ *+' conftest.er1 >conftest.err
23459 rm -f conftest.er1
23460 cat conftest.err >&5
a848cd7e
SC
23461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23462 (exit $ac_status); } &&
17a7bf57 23463 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23465 (eval $ac_try) 2>&5
23466 ac_status=$?
23467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23468 (exit $ac_status); }; } &&
23469 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
23470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23471 (eval $ac_try) 2>&5
23472 ac_status=$?
23473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23474 (exit $ac_status); }; }; then
23475 echo "*** The test program compiled, but did not run. This usually means"
23476 echo "*** that the run-time linker is not finding GTK or finding the wrong"
23477 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
23478 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
23479 echo "*** to the installed location Also, make sure you have run ldconfig if that"
23480 echo "*** is required on your system"
23481 echo "***"
23482 echo "*** If you have an old version installed, it is best to remove it, although"
23483 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
23484 echo "***"
23485 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
23486 echo "*** came with the system with the command"
23487 echo "***"
23488 echo "*** rpm --erase --nodeps gtk gtk-devel"
23489else
23490 echo "$as_me: failed program was:" >&5
23491sed 's/^/| /' conftest.$ac_ext >&5
23492
23493 echo "*** The test program failed to compile or link. See the file config.log for the"
23494 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
23495 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
23496 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
23497fi
ac1cb8d3
VS
23498rm -f conftest.err conftest.$ac_objext \
23499 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
23500 CFLAGS="$ac_save_CFLAGS"
23501 LIBS="$ac_save_LIBS"
23502 fi
23503 fi
23504 GTK_CFLAGS=""
23505 GTK_LIBS=""
23506 :
23507 fi
23508
23509
23510 rm -f conf.gtktest
23511
23512 fi
23513 fi
23514
23515 if test -z "$wx_cv_lib_gtk"; then
23516 wx_cv_lib_gtk=none
23517 else
23518 wx_cv_cflags_gtk=$GTK_CFLAGS
23519 wx_cv_libs_gtk=$GTK_LIBS
23520 fi
23521
23522
23523fi
23524
23525
23526 if test "$gtk_version_cached" = 1; then
23527 echo "$as_me:$LINENO: result: $wx_cv_lib_gtk" >&5
23528echo "${ECHO_T}$wx_cv_lib_gtk" >&6
23529 fi
23530
23531 case "$wx_cv_lib_gtk" in
23532 2.0) WXGTK20=1
23533 TOOLKIT_VERSION=2
23534 ;;
23535 1.2.7) WXGTK127=1
23536 WXGTK12=1
23537 ;;
23538 1.2.3) WXGTK12=1
23539 ;;
23540 *) { { echo "$as_me:$LINENO: error:
23541Please check that gtk-config is in path, the directory
23542where GTK+ libraries are installed (returned by
23543'gtk-config --libs' command) is in LD_LIBRARY_PATH or
23544equivalent variable and GTK+ is version 1.2.3 or above.
23545 " >&5
23546echo "$as_me: error:
23547Please check that gtk-config is in path, the directory
23548where GTK+ libraries are installed (returned by
23549'gtk-config --libs' command) is in LD_LIBRARY_PATH or
23550equivalent variable and GTK+ is version 1.2.3 or above.
23551 " >&2;}
23552 { (exit 1); exit 1; }; }
23553 ;;
23554 esac
23555
23556 if test "$WXGTK20" = 1; then
304205f1
VS
23557 save_CFLAGS="$CFLAGS"
23558 save_LIBS="$LIBS"
23559 CFLAGS="$CFLAGS $GTK_CFLAGS"
23560 LIBS="$LIBS $GTK_LIBS"
23561
23562for ac_func in pango_font_family_is_monospace
23563do
23564as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23565echo "$as_me:$LINENO: checking for $ac_func" >&5
23566echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23567if eval "test \"\${$as_ac_var+set}\" = set"; then
23568 echo $ECHO_N "(cached) $ECHO_C" >&6
23569else
23570 cat >conftest.$ac_ext <<_ACEOF
23571/* confdefs.h. */
23572_ACEOF
23573cat confdefs.h >>conftest.$ac_ext
23574cat >>conftest.$ac_ext <<_ACEOF
23575/* end confdefs.h. */
23576/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23577 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23578#define $ac_func innocuous_$ac_func
23579
23580/* System header to define __stub macros and hopefully few prototypes,
23581 which can conflict with char $ac_func (); below.
23582 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23583 <limits.h> exists even on freestanding compilers. */
23584
23585#ifdef __STDC__
23586# include <limits.h>
23587#else
23588# include <assert.h>
23589#endif
23590
23591#undef $ac_func
23592
23593/* Override any gcc2 internal prototype to avoid an error. */
23594#ifdef __cplusplus
23595extern "C"
23596{
23597#endif
23598/* We use char because int might match the return type of a gcc2
23599 builtin and then its argument prototype would still apply. */
23600char $ac_func ();
23601/* The GNU C library defines this for functions which it implements
23602 to always fail with ENOSYS. Some functions are actually named
23603 something starting with __ and the normal name is an alias. */
23604#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23605choke me
23606#else
23607char (*f) () = $ac_func;
23608#endif
23609#ifdef __cplusplus
23610}
23611#endif
23612
23613int
23614main ()
23615{
23616return f != $ac_func;
23617 ;
23618 return 0;
23619}
23620_ACEOF
23621rm -f conftest.$ac_objext conftest$ac_exeext
23622if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23623 (eval $ac_link) 2>conftest.er1
23624 ac_status=$?
23625 grep -v '^ *+' conftest.er1 >conftest.err
23626 rm -f conftest.er1
23627 cat conftest.err >&5
23628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23629 (exit $ac_status); } &&
17a7bf57 23630 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
304205f1
VS
23631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23632 (eval $ac_try) 2>&5
23633 ac_status=$?
23634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23635 (exit $ac_status); }; } &&
23636 { ac_try='test -s conftest$ac_exeext'
23637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23638 (eval $ac_try) 2>&5
23639 ac_status=$?
23640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23641 (exit $ac_status); }; }; then
23642 eval "$as_ac_var=yes"
23643else
23644 echo "$as_me: failed program was:" >&5
23645sed 's/^/| /' conftest.$ac_ext >&5
23646
23647eval "$as_ac_var=no"
23648fi
23649rm -f conftest.err conftest.$ac_objext \
23650 conftest$ac_exeext conftest.$ac_ext
23651fi
23652echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23653echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23654if test `eval echo '${'$as_ac_var'}'` = yes; then
23655 cat >>confdefs.h <<_ACEOF
23656#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23657_ACEOF
23658
23659fi
23660done
23661
23662 CFLAGS="$save_CFLAGS"
23663 LIBS="$save_LIBS"
a848cd7e
SC
23664 else
23665 if test "$wxUSE_UNICODE" = "yes"; then
23666 { echo "$as_me:$LINENO: WARNING: Unicode configuration not supported with GTK+ 1.x" >&5
23667echo "$as_me: WARNING: Unicode configuration not supported with GTK+ 1.x" >&2;}
23668 wxUSE_UNICODE=no
23669 fi
23670 fi
23671
23672 if test "$USE_DARWIN" != 1; then
23673
23674for ac_func in poll
23675do
23676as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23677echo "$as_me:$LINENO: checking for $ac_func" >&5
23678echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23679if eval "test \"\${$as_ac_var+set}\" = set"; then
23680 echo $ECHO_N "(cached) $ECHO_C" >&6
23681else
23682 cat >conftest.$ac_ext <<_ACEOF
23683/* confdefs.h. */
23684_ACEOF
23685cat confdefs.h >>conftest.$ac_ext
23686cat >>conftest.$ac_ext <<_ACEOF
23687/* end confdefs.h. */
ac1cb8d3
VS
23688/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23689 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23690#define $ac_func innocuous_$ac_func
23691
a848cd7e
SC
23692/* System header to define __stub macros and hopefully few prototypes,
23693 which can conflict with char $ac_func (); below.
23694 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23695 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 23696
a848cd7e
SC
23697#ifdef __STDC__
23698# include <limits.h>
23699#else
23700# include <assert.h>
23701#endif
ac1cb8d3
VS
23702
23703#undef $ac_func
23704
a848cd7e
SC
23705/* Override any gcc2 internal prototype to avoid an error. */
23706#ifdef __cplusplus
23707extern "C"
23708{
23709#endif
23710/* We use char because int might match the return type of a gcc2
23711 builtin and then its argument prototype would still apply. */
23712char $ac_func ();
23713/* The GNU C library defines this for functions which it implements
23714 to always fail with ENOSYS. Some functions are actually named
23715 something starting with __ and the normal name is an alias. */
23716#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23717choke me
23718#else
23719char (*f) () = $ac_func;
23720#endif
23721#ifdef __cplusplus
23722}
23723#endif
23724
23725int
23726main ()
23727{
23728return f != $ac_func;
23729 ;
23730 return 0;
23731}
23732_ACEOF
23733rm -f conftest.$ac_objext conftest$ac_exeext
23734if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 23735 (eval $ac_link) 2>conftest.er1
a848cd7e 23736 ac_status=$?
ac1cb8d3
VS
23737 grep -v '^ *+' conftest.er1 >conftest.err
23738 rm -f conftest.er1
23739 cat conftest.err >&5
a848cd7e
SC
23740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23741 (exit $ac_status); } &&
17a7bf57 23742 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23744 (eval $ac_try) 2>&5
23745 ac_status=$?
23746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23747 (exit $ac_status); }; } &&
23748 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
23749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23750 (eval $ac_try) 2>&5
23751 ac_status=$?
23752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23753 (exit $ac_status); }; }; then
23754 eval "$as_ac_var=yes"
23755else
23756 echo "$as_me: failed program was:" >&5
23757sed 's/^/| /' conftest.$ac_ext >&5
23758
23759eval "$as_ac_var=no"
23760fi
ac1cb8d3
VS
23761rm -f conftest.err conftest.$ac_objext \
23762 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
23763fi
23764echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23765echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23766if test `eval echo '${'$as_ac_var'}'` = yes; then
23767 cat >>confdefs.h <<_ACEOF
23768#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23769_ACEOF
23770
23771fi
23772done
23773
23774 fi
23775
23776 TOOLKIT_INCLUDE="$wx_cv_cflags_gtk"
23777 GUI_TK_LIBRARY="$wx_cv_libs_gtk $GUI_TK_LIBRARY"
23778
23779 AFMINSTALL=afminstall
23780 TOOLKIT=GTK
23781 GUIDIST=GTK_DIST
23782
23783 echo "$as_me:$LINENO: checking for gdk_im_open in -lgdk" >&5
23784echo $ECHO_N "checking for gdk_im_open in -lgdk... $ECHO_C" >&6
23785if test "${ac_cv_lib_gdk_gdk_im_open+set}" = set; then
23786 echo $ECHO_N "(cached) $ECHO_C" >&6
23787else
23788 ac_check_lib_save_LIBS=$LIBS
23789LIBS="-lgdk $LIBS"
23790cat >conftest.$ac_ext <<_ACEOF
23791/* confdefs.h. */
23792_ACEOF
23793cat confdefs.h >>conftest.$ac_ext
23794cat >>conftest.$ac_ext <<_ACEOF
23795/* end confdefs.h. */
23796
23797/* Override any gcc2 internal prototype to avoid an error. */
23798#ifdef __cplusplus
23799extern "C"
23800#endif
23801/* We use char because int might match the return type of a gcc2
23802 builtin and then its argument prototype would still apply. */
23803char gdk_im_open ();
23804int
23805main ()
23806{
23807gdk_im_open ();
23808 ;
23809 return 0;
23810}
23811_ACEOF
23812rm -f conftest.$ac_objext conftest$ac_exeext
23813if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 23814 (eval $ac_link) 2>conftest.er1
a848cd7e 23815 ac_status=$?
ac1cb8d3
VS
23816 grep -v '^ *+' conftest.er1 >conftest.err
23817 rm -f conftest.er1
23818 cat conftest.err >&5
a848cd7e
SC
23819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23820 (exit $ac_status); } &&
17a7bf57 23821 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23823 (eval $ac_try) 2>&5
23824 ac_status=$?
23825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23826 (exit $ac_status); }; } &&
23827 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
23828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23829 (eval $ac_try) 2>&5
23830 ac_status=$?
23831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23832 (exit $ac_status); }; }; then
23833 ac_cv_lib_gdk_gdk_im_open=yes
23834else
23835 echo "$as_me: failed program was:" >&5
23836sed 's/^/| /' conftest.$ac_ext >&5
23837
23838ac_cv_lib_gdk_gdk_im_open=no
23839fi
ac1cb8d3
VS
23840rm -f conftest.err conftest.$ac_objext \
23841 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
23842LIBS=$ac_check_lib_save_LIBS
23843fi
23844echo "$as_me:$LINENO: result: $ac_cv_lib_gdk_gdk_im_open" >&5
23845echo "${ECHO_T}$ac_cv_lib_gdk_gdk_im_open" >&6
23846if test $ac_cv_lib_gdk_gdk_im_open = yes; then
23847 cat >>confdefs.h <<\_ACEOF
23848#define HAVE_XIM 1
23849_ACEOF
23850
23851fi
23852
23853
23854
23855 if test "$wxUSE_GPE" = "yes"; then
23856 echo "$as_me:$LINENO: checking for gpewidget library" >&5
23857echo $ECHO_N "checking for gpewidget library... $ECHO_C" >&6
23858
23859ac_find_libraries=
23860for ac_dir in $SEARCH_LIB /usr/lib;
23861 do
23862 for ac_extension in a so sl dylib; do
23863 if test -f "$ac_dir/libgpewidget.$ac_extension"; then
23864 ac_find_libraries=$ac_dir
23865 break 2
23866 fi
23867 done
23868 done
23869
23870 if test "$ac_find_libraries" != "" ; then
23871
23872 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
23873 result=$?
23874 if test $result = 0; then
23875 ac_path_to_link=""
23876 else
23877 ac_path_to_link=" -L$ac_find_libraries"
23878 fi
23879
23880 GUI_TK_LIBRARY="-L${prefix}/lib -lgpewidget $GUI_TK_LIBRARY"
23881 WXGPE=1
23882 echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5
23883echo "${ECHO_T}found at $ac_find_libraries" >&6
23884 else
23885 echo "$as_me:$LINENO: result: not found" >&5
23886echo "${ECHO_T}not found" >&6
23887 fi
23888
23889 fi
23890 fi
23891
23892 if test "$wxUSE_MGL" = 1; then
23893 echo "$as_me:$LINENO: checking for SciTech MGL library" >&5
23894echo $ECHO_N "checking for SciTech MGL library... $ECHO_C" >&6
23895 if test "x$MGL_ROOT" = x ; then
23896 echo "$as_me:$LINENO: result: not found" >&5
23897echo "${ECHO_T}not found" >&6
23898 { { echo "$as_me:$LINENO: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&5
23899echo "$as_me: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&2;}
23900 { (exit 1); exit 1; }; }
23901 else
23902 echo "$as_me:$LINENO: result: $MGL_ROOT" >&5
23903echo "${ECHO_T}$MGL_ROOT" >&6
23904 fi
23905
23906 echo "$as_me:$LINENO: checking for libmgl location" >&5
23907echo $ECHO_N "checking for libmgl location... $ECHO_C" >&6
23908 case "${host}" in
23909 *-*-linux* )
23910 if test "x$wxUSE_SHARED" = xyes ; then
23911 mgl_os_candidates="linux/gcc/x86/so linux/gcc/x86/a linux/gcc/glibc.so linux/gcc/glibc"
23912 else
23913 mgl_os_candidates="linux/gcc/x86/a linux/gcc/x86/so linux/gcc/glibc linux/gcc/glibc.so"
23914 fi
23915 ;;
23916 *-pc-msdosdjgpp )
23917 mgl_os_candidates="dos32/dj2"
23918 ;;
23919 *)
23920 { { echo "$as_me:$LINENO: error: This system type ${host} is not yet supported by wxMGL." >&5
23921echo "$as_me: error: This system type ${host} is not yet supported by wxMGL." >&2;}
23922 { (exit 1); exit 1; }; }
23923 esac
23924
23925 mgl_lib_type=""
23926 mgl_os=""
23927
23928 for mgl_os_i in $mgl_os_candidates ; do
23929 if test "x$mgl_os" = x ; then
23930 if test "$wxUSE_DEBUG_FLAG" = yes ; then
23931 if test -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.a -o \
23932 -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.so; then
23933 mgl_lib_type=debug
23934 mgl_os=$mgl_os_i
23935 fi
23936 fi
23937 if test "x$mgl_lib_type" = x ; then
23938 if test -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.a -o \
23939 -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.so; then
23940 mgl_lib_type=release
23941 mgl_os=$mgl_os_i
23942 fi
23943 fi
23944 fi
23945 done
23946
23947 if test "x$mgl_os" = x ; then
23948 echo "$as_me:$LINENO: result: not found" >&5
23949echo "${ECHO_T}not found" >&6
23950 { { echo "$as_me:$LINENO: error: Cannot find MGL libraries, make sure they are compiled." >&5
23951echo "$as_me: error: Cannot find MGL libraries, make sure they are compiled." >&2;}
23952 { (exit 1); exit 1; }; }
23953 fi
23954 echo "$as_me:$LINENO: result: \"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&5
23955echo "${ECHO_T}\"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&6
23956
23957 wxUSE_UNIVERSAL="yes"
23958
23959 TOOLKIT_INCLUDE="-I$MGL_ROOT/include"
23960 GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$mgl_lib_type/$mgl_os -lmgl -lmglcpp -lpm"
23961
23962 AFMINSTALL=afminstall
23963 TOOLKIT=MGL
23964 GUIDIST=MGL_DIST
23965 fi
23966
23967 if test "$wxUSE_MICROWIN" = 1; then
23968 echo "$as_me:$LINENO: checking for MicroWindows" >&5
23969echo $ECHO_N "checking for MicroWindows... $ECHO_C" >&6
23970 if test "x$MICROWINDOWS" = x ; then
23971 echo "$as_me:$LINENO: result: not found" >&5
23972echo "${ECHO_T}not found" >&6
23973 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&5
23974echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&2;}
23975 { (exit 1); exit 1; }; }
23976 else
23977 echo "$as_me:$LINENO: result: $MICROWINDOWS" >&5
23978echo "${ECHO_T}$MICROWINDOWS" >&6
23979 fi
23980
23981 if test -f $MICROWINDOWS/lib/libmwin.a; then
23982 echo "$as_me:$LINENO: result: MicroWindows' libraries found." >&5
23983echo "${ECHO_T}MicroWindows' libraries found." >&6
23984 else
23985 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows libraries, make sure they are compiled." >&5
23986echo "$as_me: error: Cannot find MicroWindows libraries, make sure they are compiled." >&2;}
23987 { (exit 1); exit 1; }; }
23988 fi
23989
23990 TOOLKIT_INCLUDE="-I$MICROWINDOWS/include"
23991 GUI_TK_LIBRARY="-L$MICROWINDOWS/lib -lmwin -lmwengine -mwfonts -mwdrivers -mwinlib"
23992
23993 wxUSE_UNIVERSAL="yes"
23994
23995 AFMINSTALL=afminstall
23996 TOOLKIT=MICROWIN
23997 GUIDIST=MICROWIN_DIST
23998
23999 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXMSW__ -D__WIN95__ -D__WIN32__ -DMWIN -DMICROWIN_NOCONTROLS -DMICROWIN_TODO=1"
24000 fi
24001
74b84332 24002 if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
17a7bf57
RL
24003
24004if test "x$ac_path_x_has_been_run" != xyes; then
24005 echo "$as_me:$LINENO: checking for X" >&5
a848cd7e
SC
24006echo $ECHO_N "checking for X... $ECHO_C" >&6
24007
17a7bf57 24008ac_path_x_has_been_run=yes
a848cd7e
SC
24009
24010# Check whether --with-x or --without-x was given.
24011if test "${with_x+set}" = set; then
24012 withval="$with_x"
24013
24014fi;
24015# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
24016if test "x$with_x" = xno; then
24017 # The user explicitly disabled X.
24018 have_x=disabled
24019else
24020 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
24021 # Both variables are already set.
24022 have_x=yes
24023 else
24024 if test "${ac_cv_have_x+set}" = set; then
24025 echo $ECHO_N "(cached) $ECHO_C" >&6
24026else
24027 # One or both of the vars are not set, and there is no cached value.
24028ac_x_includes=no ac_x_libraries=no
24029rm -fr conftest.dir
24030if mkdir conftest.dir; then
24031 cd conftest.dir
24032 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
24033 cat >Imakefile <<'_ACEOF'
24034acfindx:
24035 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
24036_ACEOF
24037 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
24038 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
24039 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
24040 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
24041 for ac_extension in a so sl; do
24042 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
ac1cb8d3
VS
24043 test -f $ac_im_libdir/libX11.$ac_extension; then
24044 ac_im_usrlibdir=$ac_im_libdir; break
a848cd7e
SC
24045 fi
24046 done
24047 # Screen out bogus values from the imake configuration. They are
24048 # bogus both because they are the default anyway, and because
24049 # using them would break gcc on systems where it needs fixed includes.
24050 case $ac_im_incroot in
24051 /usr/include) ;;
24052 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
24053 esac
24054 case $ac_im_usrlibdir in
24055 /usr/lib | /lib) ;;
24056 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
24057 esac
24058 fi
24059 cd ..
24060 rm -fr conftest.dir
24061fi
24062
24063# Standard set of common directories for X headers.
24064# Check X11 before X11Rn because it is often a symlink to the current release.
24065ac_x_header_dirs='
24066/usr/X11/include
24067/usr/X11R6/include
24068/usr/X11R5/include
24069/usr/X11R4/include
24070
24071/usr/include/X11
24072/usr/include/X11R6
24073/usr/include/X11R5
24074/usr/include/X11R4
24075
24076/usr/local/X11/include
24077/usr/local/X11R6/include
24078/usr/local/X11R5/include
24079/usr/local/X11R4/include
24080
24081/usr/local/include/X11
24082/usr/local/include/X11R6
24083/usr/local/include/X11R5
24084/usr/local/include/X11R4
24085
24086/usr/X386/include
24087/usr/x386/include
24088/usr/XFree86/include/X11
24089
24090/usr/include
24091/usr/local/include
24092/usr/unsupported/include
24093/usr/athena/include
24094/usr/local/x11r5/include
24095/usr/lpp/Xamples/include
24096
24097/usr/openwin/include
24098/usr/openwin/share/include'
24099
24100if test "$ac_x_includes" = no; then
17a7bf57 24101 # Guess where to find include files, by looking for a specified header file.
a848cd7e
SC
24102 # First, try using that file with no special directory specified.
24103 cat >conftest.$ac_ext <<_ACEOF
24104/* confdefs.h. */
24105_ACEOF
24106cat confdefs.h >>conftest.$ac_ext
24107cat >>conftest.$ac_ext <<_ACEOF
24108/* end confdefs.h. */
24109#include <X11/Intrinsic.h>
24110_ACEOF
24111if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24112 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24113 ac_status=$?
24114 grep -v '^ *+' conftest.er1 >conftest.err
24115 rm -f conftest.er1
24116 cat conftest.err >&5
24117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24118 (exit $ac_status); } >/dev/null; then
24119 if test -s conftest.err; then
24120 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 24121 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
24122 else
24123 ac_cpp_err=
24124 fi
24125else
24126 ac_cpp_err=yes
24127fi
24128if test -z "$ac_cpp_err"; then
24129 # We can compile using X headers with no special include directory.
24130ac_x_includes=
24131else
24132 echo "$as_me: failed program was:" >&5
24133sed 's/^/| /' conftest.$ac_ext >&5
24134
24135 for ac_dir in $ac_x_header_dirs; do
24136 if test -r "$ac_dir/X11/Intrinsic.h"; then
24137 ac_x_includes=$ac_dir
24138 break
24139 fi
24140done
24141fi
24142rm -f conftest.err conftest.$ac_ext
24143fi # $ac_x_includes = no
24144
24145if test "$ac_x_libraries" = no; then
24146 # Check for the libraries.
24147 # See if we find them without any special options.
24148 # Don't add to $LIBS permanently.
24149 ac_save_LIBS=$LIBS
24150 LIBS="-lXt $LIBS"
24151 cat >conftest.$ac_ext <<_ACEOF
24152/* confdefs.h. */
24153_ACEOF
24154cat confdefs.h >>conftest.$ac_ext
24155cat >>conftest.$ac_ext <<_ACEOF
24156/* end confdefs.h. */
24157#include <X11/Intrinsic.h>
24158int
24159main ()
24160{
24161XtMalloc (0)
24162 ;
24163 return 0;
24164}
24165_ACEOF
24166rm -f conftest.$ac_objext conftest$ac_exeext
24167if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24168 (eval $ac_link) 2>conftest.er1
a848cd7e 24169 ac_status=$?
ac1cb8d3
VS
24170 grep -v '^ *+' conftest.er1 >conftest.err
24171 rm -f conftest.er1
24172 cat conftest.err >&5
a848cd7e
SC
24173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24174 (exit $ac_status); } &&
17a7bf57 24175 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
24176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24177 (eval $ac_try) 2>&5
24178 ac_status=$?
24179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24180 (exit $ac_status); }; } &&
24181 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24183 (eval $ac_try) 2>&5
24184 ac_status=$?
24185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24186 (exit $ac_status); }; }; then
24187 LIBS=$ac_save_LIBS
24188# We can link X programs with no special library path.
24189ac_x_libraries=
24190else
24191 echo "$as_me: failed program was:" >&5
24192sed 's/^/| /' conftest.$ac_ext >&5
24193
24194LIBS=$ac_save_LIBS
24195for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
24196do
24197 # Don't even attempt the hair of trying to link an X program!
24198 for ac_extension in a so sl; do
24199 if test -r $ac_dir/libXt.$ac_extension; then
24200 ac_x_libraries=$ac_dir
24201 break 2
24202 fi
24203 done
24204done
24205fi
ac1cb8d3
VS
24206rm -f conftest.err conftest.$ac_objext \
24207 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24208fi # $ac_x_libraries = no
24209
24210if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
24211 # Didn't find X anywhere. Cache the known absence of X.
24212 ac_cv_have_x="have_x=no"
24213else
24214 # Record where we found X for the cache.
24215 ac_cv_have_x="have_x=yes \
ac1cb8d3 24216 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
a848cd7e
SC
24217fi
24218fi
24219
24220 fi
24221 eval "$ac_cv_have_x"
24222fi # $with_x != no
24223
24224if test "$have_x" != yes; then
24225 echo "$as_me:$LINENO: result: $have_x" >&5
24226echo "${ECHO_T}$have_x" >&6
24227 no_x=yes
24228else
24229 # If each of the values was on the command line, it overrides each guess.
24230 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
24231 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
24232 # Update the cache value to reflect the command line values.
24233 ac_cv_have_x="have_x=yes \
24234 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
17a7bf57
RL
24235 # It might be that x_includes is empty (headers are found in the
24236 # standard search path. Then output the corresponding message
24237 ac_out_x_includes=$x_includes
24238 test "x$x_includes" = x && ac_out_x_includes="in standard search path"
24239 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $ac_out_x_includes" >&5
24240echo "${ECHO_T}libraries $x_libraries, headers $ac_out_x_includes" >&6
a848cd7e
SC
24241fi
24242
17a7bf57 24243fi
a848cd7e
SC
24244if test "$no_x" = yes; then
24245 # Not all programs may use this symbol, but it does not hurt to define it.
24246
24247cat >>confdefs.h <<\_ACEOF
24248#define X_DISPLAY_MISSING 1
24249_ACEOF
24250
24251 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
24252else
24253 if test -n "$x_includes"; then
24254 X_CFLAGS="$X_CFLAGS -I$x_includes"
24255 fi
24256
24257 # It would also be nice to do this for all -L options, not just this one.
24258 if test -n "$x_libraries"; then
24259 X_LIBS="$X_LIBS -L$x_libraries"
24260 # For Solaris; some versions of Sun CC require a space after -R and
24261 # others require no space. Words are not sufficient . . . .
24262 case `(uname -sr) 2>/dev/null` in
24263 "SunOS 5"*)
24264 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
24265echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
24266 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
24267 cat >conftest.$ac_ext <<_ACEOF
24268/* confdefs.h. */
24269_ACEOF
24270cat confdefs.h >>conftest.$ac_ext
24271cat >>conftest.$ac_ext <<_ACEOF
24272/* end confdefs.h. */
24273
24274int
24275main ()
24276{
24277
24278 ;
24279 return 0;
24280}
24281_ACEOF
24282rm -f conftest.$ac_objext conftest$ac_exeext
24283if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24284 (eval $ac_link) 2>conftest.er1
a848cd7e 24285 ac_status=$?
ac1cb8d3
VS
24286 grep -v '^ *+' conftest.er1 >conftest.err
24287 rm -f conftest.er1
24288 cat conftest.err >&5
a848cd7e
SC
24289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24290 (exit $ac_status); } &&
17a7bf57 24291 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
24292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24293 (eval $ac_try) 2>&5
24294 ac_status=$?
24295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24296 (exit $ac_status); }; } &&
24297 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
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); }; }; then
24303 ac_R_nospace=yes
24304else
24305 echo "$as_me: failed program was:" >&5
24306sed 's/^/| /' conftest.$ac_ext >&5
24307
24308ac_R_nospace=no
24309fi
ac1cb8d3
VS
24310rm -f conftest.err conftest.$ac_objext \
24311 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24312 if test $ac_R_nospace = yes; then
24313 echo "$as_me:$LINENO: result: no" >&5
24314echo "${ECHO_T}no" >&6
24315 X_LIBS="$X_LIBS -R$x_libraries"
24316 else
24317 LIBS="$ac_xsave_LIBS -R $x_libraries"
24318 cat >conftest.$ac_ext <<_ACEOF
24319/* confdefs.h. */
24320_ACEOF
24321cat confdefs.h >>conftest.$ac_ext
24322cat >>conftest.$ac_ext <<_ACEOF
24323/* end confdefs.h. */
24324
24325int
24326main ()
24327{
24328
24329 ;
24330 return 0;
24331}
24332_ACEOF
24333rm -f conftest.$ac_objext conftest$ac_exeext
24334if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24335 (eval $ac_link) 2>conftest.er1
a848cd7e 24336 ac_status=$?
ac1cb8d3
VS
24337 grep -v '^ *+' conftest.er1 >conftest.err
24338 rm -f conftest.er1
24339 cat conftest.err >&5
a848cd7e
SC
24340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24341 (exit $ac_status); } &&
17a7bf57 24342 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
24343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24344 (eval $ac_try) 2>&5
24345 ac_status=$?
24346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24347 (exit $ac_status); }; } &&
24348 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24350 (eval $ac_try) 2>&5
24351 ac_status=$?
24352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24353 (exit $ac_status); }; }; then
24354 ac_R_space=yes
24355else
24356 echo "$as_me: failed program was:" >&5
24357sed 's/^/| /' conftest.$ac_ext >&5
24358
24359ac_R_space=no
24360fi
ac1cb8d3
VS
24361rm -f conftest.err conftest.$ac_objext \
24362 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24363 if test $ac_R_space = yes; then
24364 echo "$as_me:$LINENO: result: yes" >&5
24365echo "${ECHO_T}yes" >&6
24366 X_LIBS="$X_LIBS -R $x_libraries"
24367 else
24368 echo "$as_me:$LINENO: result: neither works" >&5
24369echo "${ECHO_T}neither works" >&6
24370 fi
24371 fi
24372 LIBS=$ac_xsave_LIBS
24373 esac
24374 fi
24375
24376 # Check for system-dependent libraries X programs must link with.
24377 # Do this before checking for the system-independent R6 libraries
24378 # (-lICE), since we may need -lsocket or whatever for X linking.
24379
24380 if test "$ISC" = yes; then
24381 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
24382 else
24383 # Martyn Johnson says this is needed for Ultrix, if the X
24384 # libraries were built with DECnet support. And Karl Berry says
24385 # the Alpha needs dnet_stub (dnet does not exist).
24386 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
24387 cat >conftest.$ac_ext <<_ACEOF
24388/* confdefs.h. */
24389_ACEOF
24390cat confdefs.h >>conftest.$ac_ext
24391cat >>conftest.$ac_ext <<_ACEOF
24392/* end confdefs.h. */
24393
24394/* Override any gcc2 internal prototype to avoid an error. */
24395#ifdef __cplusplus
24396extern "C"
24397#endif
24398/* We use char because int might match the return type of a gcc2
24399 builtin and then its argument prototype would still apply. */
24400char XOpenDisplay ();
24401int
24402main ()
24403{
24404XOpenDisplay ();
24405 ;
24406 return 0;
24407}
24408_ACEOF
24409rm -f conftest.$ac_objext conftest$ac_exeext
24410if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24411 (eval $ac_link) 2>conftest.er1
a848cd7e 24412 ac_status=$?
ac1cb8d3
VS
24413 grep -v '^ *+' conftest.er1 >conftest.err
24414 rm -f conftest.er1
24415 cat conftest.err >&5
a848cd7e
SC
24416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24417 (exit $ac_status); } &&
17a7bf57 24418 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
24419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24420 (eval $ac_try) 2>&5
24421 ac_status=$?
24422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24423 (exit $ac_status); }; } &&
24424 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24426 (eval $ac_try) 2>&5
24427 ac_status=$?
24428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24429 (exit $ac_status); }; }; then
24430 :
24431else
24432 echo "$as_me: failed program was:" >&5
24433sed 's/^/| /' conftest.$ac_ext >&5
24434
24435echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
24436echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
24437if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
24438 echo $ECHO_N "(cached) $ECHO_C" >&6
24439else
24440 ac_check_lib_save_LIBS=$LIBS
24441LIBS="-ldnet $LIBS"
24442cat >conftest.$ac_ext <<_ACEOF
24443/* confdefs.h. */
24444_ACEOF
24445cat confdefs.h >>conftest.$ac_ext
24446cat >>conftest.$ac_ext <<_ACEOF
24447/* end confdefs.h. */
24448
24449/* Override any gcc2 internal prototype to avoid an error. */
24450#ifdef __cplusplus
24451extern "C"
24452#endif
24453/* We use char because int might match the return type of a gcc2
24454 builtin and then its argument prototype would still apply. */
24455char dnet_ntoa ();
24456int
24457main ()
24458{
24459dnet_ntoa ();
24460 ;
24461 return 0;
24462}
24463_ACEOF
24464rm -f conftest.$ac_objext conftest$ac_exeext
24465if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24466 (eval $ac_link) 2>conftest.er1
a848cd7e 24467 ac_status=$?
ac1cb8d3
VS
24468 grep -v '^ *+' conftest.er1 >conftest.err
24469 rm -f conftest.er1
24470 cat conftest.err >&5
a848cd7e
SC
24471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24472 (exit $ac_status); } &&
17a7bf57 24473 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
24474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24475 (eval $ac_try) 2>&5
24476 ac_status=$?
24477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24478 (exit $ac_status); }; } &&
24479 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24481 (eval $ac_try) 2>&5
24482 ac_status=$?
24483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24484 (exit $ac_status); }; }; then
24485 ac_cv_lib_dnet_dnet_ntoa=yes
24486else
24487 echo "$as_me: failed program was:" >&5
24488sed 's/^/| /' conftest.$ac_ext >&5
24489
24490ac_cv_lib_dnet_dnet_ntoa=no
24491fi
ac1cb8d3
VS
24492rm -f conftest.err conftest.$ac_objext \
24493 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24494LIBS=$ac_check_lib_save_LIBS
24495fi
24496echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
24497echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
24498if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
24499 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
24500fi
24501
24502 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
24503 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
24504echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
24505if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
24506 echo $ECHO_N "(cached) $ECHO_C" >&6
24507else
24508 ac_check_lib_save_LIBS=$LIBS
24509LIBS="-ldnet_stub $LIBS"
24510cat >conftest.$ac_ext <<_ACEOF
24511/* confdefs.h. */
24512_ACEOF
24513cat confdefs.h >>conftest.$ac_ext
24514cat >>conftest.$ac_ext <<_ACEOF
24515/* end confdefs.h. */
24516
24517/* Override any gcc2 internal prototype to avoid an error. */
24518#ifdef __cplusplus
24519extern "C"
24520#endif
24521/* We use char because int might match the return type of a gcc2
24522 builtin and then its argument prototype would still apply. */
24523char dnet_ntoa ();
24524int
24525main ()
24526{
24527dnet_ntoa ();
24528 ;
24529 return 0;
24530}
24531_ACEOF
24532rm -f conftest.$ac_objext conftest$ac_exeext
24533if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24534 (eval $ac_link) 2>conftest.er1
a848cd7e 24535 ac_status=$?
ac1cb8d3
VS
24536 grep -v '^ *+' conftest.er1 >conftest.err
24537 rm -f conftest.er1
24538 cat conftest.err >&5
a848cd7e
SC
24539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24540 (exit $ac_status); } &&
17a7bf57 24541 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
24542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24543 (eval $ac_try) 2>&5
24544 ac_status=$?
24545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24546 (exit $ac_status); }; } &&
24547 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24549 (eval $ac_try) 2>&5
24550 ac_status=$?
24551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24552 (exit $ac_status); }; }; then
24553 ac_cv_lib_dnet_stub_dnet_ntoa=yes
24554else
24555 echo "$as_me: failed program was:" >&5
24556sed 's/^/| /' conftest.$ac_ext >&5
24557
24558ac_cv_lib_dnet_stub_dnet_ntoa=no
24559fi
ac1cb8d3
VS
24560rm -f conftest.err conftest.$ac_objext \
24561 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24562LIBS=$ac_check_lib_save_LIBS
24563fi
24564echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
24565echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
24566if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
24567 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
24568fi
24569
24570 fi
24571fi
ac1cb8d3
VS
24572rm -f conftest.err conftest.$ac_objext \
24573 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24574 LIBS="$ac_xsave_LIBS"
24575
24576 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
24577 # to get the SysV transport functions.
24578 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
24579 # needs -lnsl.
24580 # The nsl library prevents programs from opening the X display
24581 # on Irix 5.2, according to T.E. Dickey.
24582 # The functions gethostbyname, getservbyname, and inet_addr are
24583 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
24584 echo "$as_me:$LINENO: checking for gethostbyname" >&5
24585echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
24586if test "${ac_cv_func_gethostbyname+set}" = set; then
24587 echo $ECHO_N "(cached) $ECHO_C" >&6
24588else
24589 cat >conftest.$ac_ext <<_ACEOF
24590/* confdefs.h. */
24591_ACEOF
24592cat confdefs.h >>conftest.$ac_ext
24593cat >>conftest.$ac_ext <<_ACEOF
24594/* end confdefs.h. */
ac1cb8d3
VS
24595/* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
24596 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24597#define gethostbyname innocuous_gethostbyname
24598
a848cd7e
SC
24599/* System header to define __stub macros and hopefully few prototypes,
24600 which can conflict with char gethostbyname (); below.
24601 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24602 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 24603
a848cd7e
SC
24604#ifdef __STDC__
24605# include <limits.h>
24606#else
24607# include <assert.h>
24608#endif
ac1cb8d3
VS
24609
24610#undef gethostbyname
24611
a848cd7e
SC
24612/* Override any gcc2 internal prototype to avoid an error. */
24613#ifdef __cplusplus
24614extern "C"
24615{
24616#endif
24617/* We use char because int might match the return type of a gcc2
24618 builtin and then its argument prototype would still apply. */
24619char gethostbyname ();
24620/* The GNU C library defines this for functions which it implements
24621 to always fail with ENOSYS. Some functions are actually named
24622 something starting with __ and the normal name is an alias. */
24623#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
24624choke me
24625#else
24626char (*f) () = gethostbyname;
24627#endif
24628#ifdef __cplusplus
24629}
24630#endif
24631
24632int
24633main ()
24634{
24635return f != gethostbyname;
24636 ;
24637 return 0;
24638}
24639_ACEOF
24640rm -f conftest.$ac_objext conftest$ac_exeext
24641if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24642 (eval $ac_link) 2>conftest.er1
a848cd7e 24643 ac_status=$?
ac1cb8d3
VS
24644 grep -v '^ *+' conftest.er1 >conftest.err
24645 rm -f conftest.er1
24646 cat conftest.err >&5
a848cd7e
SC
24647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24648 (exit $ac_status); } &&
17a7bf57 24649 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
24650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24651 (eval $ac_try) 2>&5
24652 ac_status=$?
24653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24654 (exit $ac_status); }; } &&
24655 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24657 (eval $ac_try) 2>&5
24658 ac_status=$?
24659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24660 (exit $ac_status); }; }; then
24661 ac_cv_func_gethostbyname=yes
24662else
24663 echo "$as_me: failed program was:" >&5
24664sed 's/^/| /' conftest.$ac_ext >&5
24665
24666ac_cv_func_gethostbyname=no
24667fi
ac1cb8d3
VS
24668rm -f conftest.err conftest.$ac_objext \
24669 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24670fi
24671echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
24672echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
24673
24674 if test $ac_cv_func_gethostbyname = no; then
24675 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
24676echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
24677if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
24678 echo $ECHO_N "(cached) $ECHO_C" >&6
24679else
24680 ac_check_lib_save_LIBS=$LIBS
24681LIBS="-lnsl $LIBS"
24682cat >conftest.$ac_ext <<_ACEOF
24683/* confdefs.h. */
24684_ACEOF
24685cat confdefs.h >>conftest.$ac_ext
24686cat >>conftest.$ac_ext <<_ACEOF
24687/* end confdefs.h. */
24688
24689/* Override any gcc2 internal prototype to avoid an error. */
24690#ifdef __cplusplus
24691extern "C"
24692#endif
24693/* We use char because int might match the return type of a gcc2
24694 builtin and then its argument prototype would still apply. */
24695char gethostbyname ();
24696int
24697main ()
24698{
24699gethostbyname ();
24700 ;
24701 return 0;
24702}
24703_ACEOF
24704rm -f conftest.$ac_objext conftest$ac_exeext
24705if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3
VS
24706 (eval $ac_link) 2>conftest.er1
24707 ac_status=$?
24708 grep -v '^ *+' conftest.er1 >conftest.err
24709 rm -f conftest.er1
24710 cat conftest.err >&5
24711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24712 (exit $ac_status); } &&
17a7bf57 24713 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
24714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24715 (eval $ac_try) 2>&5
24716 ac_status=$?
24717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24718 (exit $ac_status); }; } &&
24719 { ac_try='test -s conftest$ac_exeext'
24720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24721 (eval $ac_try) 2>&5
24722 ac_status=$?
24723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24724 (exit $ac_status); }; }; then
24725 ac_cv_lib_nsl_gethostbyname=yes
24726else
24727 echo "$as_me: failed program was:" >&5
24728sed 's/^/| /' conftest.$ac_ext >&5
24729
24730ac_cv_lib_nsl_gethostbyname=no
24731fi
24732rm -f conftest.err conftest.$ac_objext \
24733 conftest$ac_exeext conftest.$ac_ext
24734LIBS=$ac_check_lib_save_LIBS
24735fi
24736echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
24737echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
24738if test $ac_cv_lib_nsl_gethostbyname = yes; then
24739 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
24740fi
24741
24742 if test $ac_cv_lib_nsl_gethostbyname = no; then
24743 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
24744echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
24745if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
24746 echo $ECHO_N "(cached) $ECHO_C" >&6
24747else
24748 ac_check_lib_save_LIBS=$LIBS
24749LIBS="-lbsd $LIBS"
24750cat >conftest.$ac_ext <<_ACEOF
24751/* confdefs.h. */
24752_ACEOF
24753cat confdefs.h >>conftest.$ac_ext
24754cat >>conftest.$ac_ext <<_ACEOF
24755/* end confdefs.h. */
24756
24757/* Override any gcc2 internal prototype to avoid an error. */
24758#ifdef __cplusplus
24759extern "C"
24760#endif
24761/* We use char because int might match the return type of a gcc2
24762 builtin and then its argument prototype would still apply. */
24763char gethostbyname ();
24764int
24765main ()
24766{
24767gethostbyname ();
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
a848cd7e 24775 ac_status=$?
ac1cb8d3
VS
24776 grep -v '^ *+' conftest.er1 >conftest.err
24777 rm -f conftest.er1
24778 cat conftest.err >&5
a848cd7e
SC
24779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24780 (exit $ac_status); } &&
17a7bf57 24781 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
a848cd7e
SC
24782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24783 (eval $ac_try) 2>&5
24784 ac_status=$?
24785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ac1cb8d3
VS
24786 (exit $ac_status); }; } &&
24787 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24789 (eval $ac_try) 2>&5
24790 ac_status=$?
24791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24792 (exit $ac_status); }; }; then
24793 ac_cv_lib_bsd_gethostbyname=yes
24794else
24795 echo "$as_me: failed program was:" >&5
24796sed 's/^/| /' conftest.$ac_ext >&5
24797
24798ac_cv_lib_bsd_gethostbyname=no
24799fi
ac1cb8d3
VS
24800rm -f conftest.err conftest.$ac_objext \
24801 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24802LIBS=$ac_check_lib_save_LIBS
24803fi
24804echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
24805echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
24806if test $ac_cv_lib_bsd_gethostbyname = yes; then
24807 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
24808fi
24809
24810 fi
24811 fi
24812
24813 # lieder@skyler.mavd.honeywell.com says without -lsocket,
24814 # socket/setsockopt and other routines are undefined under SCO ODT
24815 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
24816 # on later versions), says Simon Leinen: it contains gethostby*
24817 # variants that don't use the name server (or something). -lsocket
24818 # must be given before -lnsl if both are needed. We assume that
24819 # if connect needs -lnsl, so does gethostbyname.
24820 echo "$as_me:$LINENO: checking for connect" >&5
24821echo $ECHO_N "checking for connect... $ECHO_C" >&6
24822if test "${ac_cv_func_connect+set}" = set; then
24823 echo $ECHO_N "(cached) $ECHO_C" >&6
24824else
24825 cat >conftest.$ac_ext <<_ACEOF
24826/* confdefs.h. */
24827_ACEOF
24828cat confdefs.h >>conftest.$ac_ext
24829cat >>conftest.$ac_ext <<_ACEOF
24830/* end confdefs.h. */
ac1cb8d3
VS
24831/* Define connect to an innocuous variant, in case <limits.h> declares connect.
24832 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24833#define connect innocuous_connect
24834
a848cd7e
SC
24835/* System header to define __stub macros and hopefully few prototypes,
24836 which can conflict with char connect (); below.
24837 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24838 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 24839
a848cd7e
SC
24840#ifdef __STDC__
24841# include <limits.h>
24842#else
24843# include <assert.h>
24844#endif
ac1cb8d3
VS
24845
24846#undef connect
24847
a848cd7e
SC
24848/* Override any gcc2 internal prototype to avoid an error. */
24849#ifdef __cplusplus
24850extern "C"
24851{
24852#endif
24853/* We use char because int might match the return type of a gcc2
24854 builtin and then its argument prototype would still apply. */
24855char connect ();
24856/* The GNU C library defines this for functions which it implements
24857 to always fail with ENOSYS. Some functions are actually named
24858 something starting with __ and the normal name is an alias. */
24859#if defined (__stub_connect) || defined (__stub___connect)
24860choke me
24861#else
24862char (*f) () = connect;
24863#endif
24864#ifdef __cplusplus
24865}
24866#endif
24867
24868int
24869main ()
24870{
24871return f != connect;
24872 ;
24873 return 0;
24874}
24875_ACEOF
24876rm -f conftest.$ac_objext conftest$ac_exeext
24877if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24878 (eval $ac_link) 2>conftest.er1
a848cd7e 24879 ac_status=$?
ac1cb8d3
VS
24880 grep -v '^ *+' conftest.er1 >conftest.err
24881 rm -f conftest.er1
24882 cat conftest.err >&5
a848cd7e
SC
24883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24884 (exit $ac_status); } &&
17a7bf57 24885 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
24886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24887 (eval $ac_try) 2>&5
24888 ac_status=$?
24889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24890 (exit $ac_status); }; } &&
24891 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24893 (eval $ac_try) 2>&5
24894 ac_status=$?
24895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24896 (exit $ac_status); }; }; then
24897 ac_cv_func_connect=yes
24898else
24899 echo "$as_me: failed program was:" >&5
24900sed 's/^/| /' conftest.$ac_ext >&5
24901
24902ac_cv_func_connect=no
24903fi
ac1cb8d3
VS
24904rm -f conftest.err conftest.$ac_objext \
24905 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24906fi
24907echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
24908echo "${ECHO_T}$ac_cv_func_connect" >&6
24909
24910 if test $ac_cv_func_connect = no; then
24911 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
24912echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
24913if test "${ac_cv_lib_socket_connect+set}" = set; then
24914 echo $ECHO_N "(cached) $ECHO_C" >&6
24915else
24916 ac_check_lib_save_LIBS=$LIBS
24917LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
24918cat >conftest.$ac_ext <<_ACEOF
24919/* confdefs.h. */
24920_ACEOF
24921cat confdefs.h >>conftest.$ac_ext
24922cat >>conftest.$ac_ext <<_ACEOF
24923/* end confdefs.h. */
24924
24925/* Override any gcc2 internal prototype to avoid an error. */
24926#ifdef __cplusplus
24927extern "C"
24928#endif
24929/* We use char because int might match the return type of a gcc2
24930 builtin and then its argument prototype would still apply. */
24931char connect ();
24932int
24933main ()
24934{
24935connect ();
24936 ;
24937 return 0;
24938}
24939_ACEOF
24940rm -f conftest.$ac_objext conftest$ac_exeext
24941if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24942 (eval $ac_link) 2>conftest.er1
a848cd7e 24943 ac_status=$?
ac1cb8d3
VS
24944 grep -v '^ *+' conftest.er1 >conftest.err
24945 rm -f conftest.er1
24946 cat conftest.err >&5
a848cd7e
SC
24947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24948 (exit $ac_status); } &&
17a7bf57 24949 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
24950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24951 (eval $ac_try) 2>&5
24952 ac_status=$?
24953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24954 (exit $ac_status); }; } &&
24955 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24957 (eval $ac_try) 2>&5
24958 ac_status=$?
24959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24960 (exit $ac_status); }; }; then
24961 ac_cv_lib_socket_connect=yes
24962else
24963 echo "$as_me: failed program was:" >&5
24964sed 's/^/| /' conftest.$ac_ext >&5
24965
24966ac_cv_lib_socket_connect=no
24967fi
ac1cb8d3
VS
24968rm -f conftest.err conftest.$ac_objext \
24969 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24970LIBS=$ac_check_lib_save_LIBS
24971fi
24972echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
24973echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
24974if test $ac_cv_lib_socket_connect = yes; then
24975 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
24976fi
24977
24978 fi
24979
24980 # Guillermo Gomez says -lposix is necessary on A/UX.
24981 echo "$as_me:$LINENO: checking for remove" >&5
24982echo $ECHO_N "checking for remove... $ECHO_C" >&6
24983if test "${ac_cv_func_remove+set}" = set; then
24984 echo $ECHO_N "(cached) $ECHO_C" >&6
24985else
24986 cat >conftest.$ac_ext <<_ACEOF
24987/* confdefs.h. */
24988_ACEOF
24989cat confdefs.h >>conftest.$ac_ext
24990cat >>conftest.$ac_ext <<_ACEOF
24991/* end confdefs.h. */
ac1cb8d3
VS
24992/* Define remove to an innocuous variant, in case <limits.h> declares remove.
24993 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24994#define remove innocuous_remove
24995
a848cd7e
SC
24996/* System header to define __stub macros and hopefully few prototypes,
24997 which can conflict with char remove (); below.
24998 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24999 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 25000
a848cd7e
SC
25001#ifdef __STDC__
25002# include <limits.h>
25003#else
25004# include <assert.h>
25005#endif
ac1cb8d3
VS
25006
25007#undef remove
25008
a848cd7e
SC
25009/* Override any gcc2 internal prototype to avoid an error. */
25010#ifdef __cplusplus
25011extern "C"
25012{
25013#endif
25014/* We use char because int might match the return type of a gcc2
25015 builtin and then its argument prototype would still apply. */
25016char remove ();
25017/* The GNU C library defines this for functions which it implements
25018 to always fail with ENOSYS. Some functions are actually named
25019 something starting with __ and the normal name is an alias. */
25020#if defined (__stub_remove) || defined (__stub___remove)
25021choke me
25022#else
25023char (*f) () = remove;
25024#endif
25025#ifdef __cplusplus
25026}
25027#endif
25028
25029int
25030main ()
25031{
25032return f != remove;
25033 ;
25034 return 0;
25035}
25036_ACEOF
25037rm -f conftest.$ac_objext conftest$ac_exeext
25038if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25039 (eval $ac_link) 2>conftest.er1
a848cd7e 25040 ac_status=$?
ac1cb8d3
VS
25041 grep -v '^ *+' conftest.er1 >conftest.err
25042 rm -f conftest.er1
25043 cat conftest.err >&5
a848cd7e
SC
25044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25045 (exit $ac_status); } &&
17a7bf57 25046 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
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); }; } &&
25052 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25054 (eval $ac_try) 2>&5
25055 ac_status=$?
25056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25057 (exit $ac_status); }; }; then
25058 ac_cv_func_remove=yes
25059else
25060 echo "$as_me: failed program was:" >&5
25061sed 's/^/| /' conftest.$ac_ext >&5
25062
25063ac_cv_func_remove=no
25064fi
ac1cb8d3
VS
25065rm -f conftest.err conftest.$ac_objext \
25066 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25067fi
25068echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
25069echo "${ECHO_T}$ac_cv_func_remove" >&6
25070
25071 if test $ac_cv_func_remove = no; then
25072 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
25073echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
25074if test "${ac_cv_lib_posix_remove+set}" = set; then
25075 echo $ECHO_N "(cached) $ECHO_C" >&6
25076else
25077 ac_check_lib_save_LIBS=$LIBS
25078LIBS="-lposix $LIBS"
25079cat >conftest.$ac_ext <<_ACEOF
25080/* confdefs.h. */
25081_ACEOF
25082cat confdefs.h >>conftest.$ac_ext
25083cat >>conftest.$ac_ext <<_ACEOF
25084/* end confdefs.h. */
25085
25086/* Override any gcc2 internal prototype to avoid an error. */
25087#ifdef __cplusplus
25088extern "C"
25089#endif
25090/* We use char because int might match the return type of a gcc2
25091 builtin and then its argument prototype would still apply. */
25092char remove ();
25093int
25094main ()
25095{
25096remove ();
25097 ;
25098 return 0;
25099}
25100_ACEOF
25101rm -f conftest.$ac_objext conftest$ac_exeext
25102if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25103 (eval $ac_link) 2>conftest.er1
a848cd7e 25104 ac_status=$?
ac1cb8d3
VS
25105 grep -v '^ *+' conftest.er1 >conftest.err
25106 rm -f conftest.er1
25107 cat conftest.err >&5
a848cd7e
SC
25108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25109 (exit $ac_status); } &&
17a7bf57 25110 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
25111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25112 (eval $ac_try) 2>&5
25113 ac_status=$?
25114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25115 (exit $ac_status); }; } &&
25116 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25118 (eval $ac_try) 2>&5
25119 ac_status=$?
25120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25121 (exit $ac_status); }; }; then
25122 ac_cv_lib_posix_remove=yes
25123else
25124 echo "$as_me: failed program was:" >&5
25125sed 's/^/| /' conftest.$ac_ext >&5
25126
25127ac_cv_lib_posix_remove=no
25128fi
ac1cb8d3
VS
25129rm -f conftest.err conftest.$ac_objext \
25130 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25131LIBS=$ac_check_lib_save_LIBS
25132fi
25133echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
25134echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
25135if test $ac_cv_lib_posix_remove = yes; then
25136 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
25137fi
25138
25139 fi
25140
25141 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
25142 echo "$as_me:$LINENO: checking for shmat" >&5
25143echo $ECHO_N "checking for shmat... $ECHO_C" >&6
25144if test "${ac_cv_func_shmat+set}" = set; then
25145 echo $ECHO_N "(cached) $ECHO_C" >&6
25146else
25147 cat >conftest.$ac_ext <<_ACEOF
25148/* confdefs.h. */
25149_ACEOF
25150cat confdefs.h >>conftest.$ac_ext
25151cat >>conftest.$ac_ext <<_ACEOF
25152/* end confdefs.h. */
ac1cb8d3
VS
25153/* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
25154 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25155#define shmat innocuous_shmat
25156
a848cd7e
SC
25157/* System header to define __stub macros and hopefully few prototypes,
25158 which can conflict with char shmat (); below.
25159 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25160 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 25161
a848cd7e
SC
25162#ifdef __STDC__
25163# include <limits.h>
25164#else
25165# include <assert.h>
25166#endif
ac1cb8d3
VS
25167
25168#undef shmat
25169
a848cd7e
SC
25170/* Override any gcc2 internal prototype to avoid an error. */
25171#ifdef __cplusplus
25172extern "C"
25173{
25174#endif
25175/* We use char because int might match the return type of a gcc2
25176 builtin and then its argument prototype would still apply. */
25177char shmat ();
25178/* The GNU C library defines this for functions which it implements
25179 to always fail with ENOSYS. Some functions are actually named
25180 something starting with __ and the normal name is an alias. */
25181#if defined (__stub_shmat) || defined (__stub___shmat)
25182choke me
25183#else
25184char (*f) () = shmat;
25185#endif
25186#ifdef __cplusplus
25187}
25188#endif
25189
25190int
25191main ()
25192{
25193return f != shmat;
25194 ;
25195 return 0;
25196}
25197_ACEOF
25198rm -f conftest.$ac_objext conftest$ac_exeext
25199if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25200 (eval $ac_link) 2>conftest.er1
a848cd7e 25201 ac_status=$?
ac1cb8d3
VS
25202 grep -v '^ *+' conftest.er1 >conftest.err
25203 rm -f conftest.er1
25204 cat conftest.err >&5
a848cd7e
SC
25205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25206 (exit $ac_status); } &&
17a7bf57 25207 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
25208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25209 (eval $ac_try) 2>&5
25210 ac_status=$?
25211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25212 (exit $ac_status); }; } &&
25213 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25215 (eval $ac_try) 2>&5
25216 ac_status=$?
25217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25218 (exit $ac_status); }; }; then
25219 ac_cv_func_shmat=yes
25220else
25221 echo "$as_me: failed program was:" >&5
25222sed 's/^/| /' conftest.$ac_ext >&5
25223
25224ac_cv_func_shmat=no
25225fi
ac1cb8d3
VS
25226rm -f conftest.err conftest.$ac_objext \
25227 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25228fi
25229echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
25230echo "${ECHO_T}$ac_cv_func_shmat" >&6
25231
25232 if test $ac_cv_func_shmat = no; then
25233 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
25234echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
25235if test "${ac_cv_lib_ipc_shmat+set}" = set; then
25236 echo $ECHO_N "(cached) $ECHO_C" >&6
25237else
25238 ac_check_lib_save_LIBS=$LIBS
25239LIBS="-lipc $LIBS"
25240cat >conftest.$ac_ext <<_ACEOF
25241/* confdefs.h. */
25242_ACEOF
25243cat confdefs.h >>conftest.$ac_ext
25244cat >>conftest.$ac_ext <<_ACEOF
25245/* end confdefs.h. */
25246
25247/* Override any gcc2 internal prototype to avoid an error. */
25248#ifdef __cplusplus
25249extern "C"
25250#endif
25251/* We use char because int might match the return type of a gcc2
25252 builtin and then its argument prototype would still apply. */
25253char shmat ();
25254int
25255main ()
25256{
25257shmat ();
25258 ;
25259 return 0;
25260}
25261_ACEOF
25262rm -f conftest.$ac_objext conftest$ac_exeext
25263if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25264 (eval $ac_link) 2>conftest.er1
a848cd7e 25265 ac_status=$?
ac1cb8d3
VS
25266 grep -v '^ *+' conftest.er1 >conftest.err
25267 rm -f conftest.er1
25268 cat conftest.err >&5
a848cd7e
SC
25269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25270 (exit $ac_status); } &&
17a7bf57 25271 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
25272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25273 (eval $ac_try) 2>&5
25274 ac_status=$?
25275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25276 (exit $ac_status); }; } &&
25277 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25279 (eval $ac_try) 2>&5
25280 ac_status=$?
25281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25282 (exit $ac_status); }; }; then
25283 ac_cv_lib_ipc_shmat=yes
25284else
25285 echo "$as_me: failed program was:" >&5
25286sed 's/^/| /' conftest.$ac_ext >&5
25287
25288ac_cv_lib_ipc_shmat=no
25289fi
ac1cb8d3
VS
25290rm -f conftest.err conftest.$ac_objext \
25291 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25292LIBS=$ac_check_lib_save_LIBS
25293fi
25294echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
25295echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
25296if test $ac_cv_lib_ipc_shmat = yes; then
25297 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
25298fi
25299
25300 fi
25301 fi
25302
25303 # Check for libraries that X11R6 Xt/Xaw programs need.
25304 ac_save_LDFLAGS=$LDFLAGS
25305 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
25306 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
25307 # check for ICE first), but we must link in the order -lSM -lICE or
25308 # we get undefined symbols. So assume we have SM if we have ICE.
25309 # These have to be linked with before -lX11, unlike the other
25310 # libraries we check for below, so use a different variable.
25311 # John Interrante, Karl Berry
25312 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
25313echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
25314if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
25315 echo $ECHO_N "(cached) $ECHO_C" >&6
25316else
25317 ac_check_lib_save_LIBS=$LIBS
25318LIBS="-lICE $X_EXTRA_LIBS $LIBS"
25319cat >conftest.$ac_ext <<_ACEOF
25320/* confdefs.h. */
25321_ACEOF
25322cat confdefs.h >>conftest.$ac_ext
25323cat >>conftest.$ac_ext <<_ACEOF
25324/* end confdefs.h. */
25325
25326/* Override any gcc2 internal prototype to avoid an error. */
25327#ifdef __cplusplus
25328extern "C"
25329#endif
25330/* We use char because int might match the return type of a gcc2
25331 builtin and then its argument prototype would still apply. */
25332char IceConnectionNumber ();
25333int
25334main ()
25335{
25336IceConnectionNumber ();
25337 ;
25338 return 0;
25339}
25340_ACEOF
25341rm -f conftest.$ac_objext conftest$ac_exeext
25342if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25343 (eval $ac_link) 2>conftest.er1
a848cd7e 25344 ac_status=$?
ac1cb8d3
VS
25345 grep -v '^ *+' conftest.er1 >conftest.err
25346 rm -f conftest.er1
25347 cat conftest.err >&5
a848cd7e
SC
25348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25349 (exit $ac_status); } &&
17a7bf57 25350 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
25351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25352 (eval $ac_try) 2>&5
25353 ac_status=$?
25354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25355 (exit $ac_status); }; } &&
25356 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25358 (eval $ac_try) 2>&5
25359 ac_status=$?
25360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25361 (exit $ac_status); }; }; then
25362 ac_cv_lib_ICE_IceConnectionNumber=yes
25363else
25364 echo "$as_me: failed program was:" >&5
25365sed 's/^/| /' conftest.$ac_ext >&5
25366
25367ac_cv_lib_ICE_IceConnectionNumber=no
25368fi
ac1cb8d3
VS
25369rm -f conftest.err conftest.$ac_objext \
25370 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25371LIBS=$ac_check_lib_save_LIBS
25372fi
25373echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
25374echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
25375if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
25376 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
25377fi
25378
25379 LDFLAGS=$ac_save_LDFLAGS
25380
25381fi
25382
25383
25384 if test "$no_x" = "yes"; then
25385 { { echo "$as_me:$LINENO: error: X11 not found" >&5
25386echo "$as_me: error: X11 not found" >&2;}
25387 { (exit please use --x-includes and/or --x-libraries options); exit please use --x-includes and/or --x-libraries options; }; }
25388 fi
25389
74b84332
VS
25390 GUI_TK_LIBRARY=`echo $X_LIBS | sed 's/ -LNONE//' | sed 's/ -RNONE//'`
25391 TOOLKIT_INCLUDE=`echo $X_CFLAGS | sed 's/ -INONE//'`
a848cd7e
SC
25392 AFMINSTALL=afminstall
25393 COMPILED_X_PROGRAM=0
25394
74b84332
VS
25395 fi
25396
25397 if test "$wxUSE_X11" = 1; then
a848cd7e
SC
25398 if test "$wxUSE_NANOX" = "yes"; then
25399 echo "$as_me:$LINENO: checking for MicroWindows/NanoX distribution" >&5
25400echo $ECHO_N "checking for MicroWindows/NanoX distribution... $ECHO_C" >&6
25401 if test "x$MICROWIN" = x ; then
25402 echo "$as_me:$LINENO: result: not found" >&5
25403echo "${ECHO_T}not found" >&6
25404 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&5
25405echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&2;}
25406 { (exit 1); exit 1; }; }
25407 else
25408 echo "$as_me:$LINENO: result: $MICROWIN" >&5
25409echo "${ECHO_T}$MICROWIN" >&6
25410 cat >>confdefs.h <<\_ACEOF
25411#define wxUSE_NANOX 1
25412_ACEOF
25413
25414 fi
25415 fi
25416
25417 if test "$wxUSE_UNICODE" = "yes"; then
25418
25419 succeeded=no
25420
25421 if test -z "$PKG_CONFIG"; then
25422 # Extract the first word of "pkg-config", so it can be a program name with args.
25423set dummy pkg-config; ac_word=$2
25424echo "$as_me:$LINENO: checking for $ac_word" >&5
25425echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25426if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
25427 echo $ECHO_N "(cached) $ECHO_C" >&6
25428else
25429 case $PKG_CONFIG in
25430 [\\/]* | ?:[\\/]*)
25431 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
25432 ;;
25433 *)
25434 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25435for as_dir in $PATH
25436do
25437 IFS=$as_save_IFS
25438 test -z "$as_dir" && as_dir=.
25439 for ac_exec_ext in '' $ac_executable_extensions; do
25440 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25441 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
25442 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25443 break 2
25444 fi
25445done
25446done
25447
25448 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
25449 ;;
25450esac
25451fi
25452PKG_CONFIG=$ac_cv_path_PKG_CONFIG
25453
25454if test -n "$PKG_CONFIG"; then
25455 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
25456echo "${ECHO_T}$PKG_CONFIG" >&6
25457else
25458 echo "$as_me:$LINENO: result: no" >&5
25459echo "${ECHO_T}no" >&6
25460fi
25461
25462 fi
25463
25464 if test "$PKG_CONFIG" = "no" ; then
25465 echo "*** The pkg-config script could not be found. Make sure it is"
25466 echo "*** in your path, or set the PKG_CONFIG environment variable"
25467 echo "*** to the full path to pkg-config."
25468 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
25469 else
25470 PKG_CONFIG_MIN_VERSION=0.9.0
25471 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
25472 echo "$as_me:$LINENO: checking for pangox" >&5
25473echo $ECHO_N "checking for pangox... $ECHO_C" >&6
25474
25475 if $PKG_CONFIG --exists "pangox" ; then
25476 echo "$as_me:$LINENO: result: yes" >&5
25477echo "${ECHO_T}yes" >&6
25478 succeeded=yes
25479
25480 echo "$as_me:$LINENO: checking PANGOX_CFLAGS" >&5
25481echo $ECHO_N "checking PANGOX_CFLAGS... $ECHO_C" >&6
25482 PANGOX_CFLAGS=`$PKG_CONFIG --cflags "pangox"`
25483 echo "$as_me:$LINENO: result: $PANGOX_CFLAGS" >&5
25484echo "${ECHO_T}$PANGOX_CFLAGS" >&6
25485
25486 echo "$as_me:$LINENO: checking PANGOX_LIBS" >&5
25487echo $ECHO_N "checking PANGOX_LIBS... $ECHO_C" >&6
25488 PANGOX_LIBS=`$PKG_CONFIG --libs "pangox"`
25489 echo "$as_me:$LINENO: result: $PANGOX_LIBS" >&5
25490echo "${ECHO_T}$PANGOX_LIBS" >&6
25491 else
25492 PANGOX_CFLAGS=""
25493 PANGOX_LIBS=""
25494 ## If we have a custom action on failure, don't print errors, but
25495 ## do set a variable so people can do so.
25496 PANGOX_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangox"`
25497
25498 fi
25499
25500
25501
25502 else
25503 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
25504 echo "*** See http://www.freedesktop.org/software/pkgconfig"
25505 fi
25506 fi
25507
25508 if test $succeeded = yes; then
25509
25510 CXXFLAGS="$CXXFLAGS $PANGOX_CFLAGS"
25511 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOX_LIBS"
25512
25513 else
25514
25515 { { echo "$as_me:$LINENO: error: pangox library not found, library cannot be compiled in Unicode mode" >&5
25516echo "$as_me: error: pangox library not found, library cannot be compiled in Unicode mode" >&2;}
25517 { (exit 1); exit 1; }; }
25518
25519
25520 fi
25521
25522
25523 succeeded=no
25524
25525 if test -z "$PKG_CONFIG"; then
25526 # Extract the first word of "pkg-config", so it can be a program name with args.
25527set dummy pkg-config; ac_word=$2
25528echo "$as_me:$LINENO: checking for $ac_word" >&5
25529echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25530if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
25531 echo $ECHO_N "(cached) $ECHO_C" >&6
25532else
25533 case $PKG_CONFIG in
25534 [\\/]* | ?:[\\/]*)
25535 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
25536 ;;
25537 *)
25538 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25539for as_dir in $PATH
25540do
25541 IFS=$as_save_IFS
25542 test -z "$as_dir" && as_dir=.
25543 for ac_exec_ext in '' $ac_executable_extensions; do
25544 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25545 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
25546 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25547 break 2
25548 fi
25549done
25550done
25551
25552 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
25553 ;;
25554esac
25555fi
25556PKG_CONFIG=$ac_cv_path_PKG_CONFIG
25557
25558if test -n "$PKG_CONFIG"; then
25559 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
25560echo "${ECHO_T}$PKG_CONFIG" >&6
25561else
25562 echo "$as_me:$LINENO: result: no" >&5
25563echo "${ECHO_T}no" >&6
25564fi
25565
25566 fi
25567
25568 if test "$PKG_CONFIG" = "no" ; then
25569 echo "*** The pkg-config script could not be found. Make sure it is"
25570 echo "*** in your path, or set the PKG_CONFIG environment variable"
25571 echo "*** to the full path to pkg-config."
25572 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
25573 else
25574 PKG_CONFIG_MIN_VERSION=0.9.0
25575 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
25576 echo "$as_me:$LINENO: checking for pangoft2" >&5
25577echo $ECHO_N "checking for pangoft2... $ECHO_C" >&6
25578
25579 if $PKG_CONFIG --exists "pangoft2" ; then
25580 echo "$as_me:$LINENO: result: yes" >&5
25581echo "${ECHO_T}yes" >&6
25582 succeeded=yes
25583
25584 echo "$as_me:$LINENO: checking PANGOFT2_CFLAGS" >&5
25585echo $ECHO_N "checking PANGOFT2_CFLAGS... $ECHO_C" >&6
25586 PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"`
25587 echo "$as_me:$LINENO: result: $PANGOFT2_CFLAGS" >&5
25588echo "${ECHO_T}$PANGOFT2_CFLAGS" >&6
25589
25590 echo "$as_me:$LINENO: checking PANGOFT2_LIBS" >&5
25591echo $ECHO_N "checking PANGOFT2_LIBS... $ECHO_C" >&6
25592 PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"`
25593 echo "$as_me:$LINENO: result: $PANGOFT2_LIBS" >&5
25594echo "${ECHO_T}$PANGOFT2_LIBS" >&6
25595 else
25596 PANGOFT2_CFLAGS=""
25597 PANGOFT2_LIBS=""
25598 ## If we have a custom action on failure, don't print errors, but
25599 ## do set a variable so people can do so.
25600 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
25601
25602 fi
25603
25604
25605
25606 else
25607 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
25608 echo "*** See http://www.freedesktop.org/software/pkgconfig"
25609 fi
25610 fi
25611
25612 if test $succeeded = yes; then
25613
25614 CXXFLAGS="$CXXFLAGS $PANGOFT2_CFLAGS"
25615 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOFT2_LIBS"
25616
25617 else
25618
25619 { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5
25620echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;}
25621 wxUSE_PRINTING_ARCHITECTURE="no"
25622
25623
25624 fi
25625
25626
25627 succeeded=no
25628
25629 if test -z "$PKG_CONFIG"; then
25630 # Extract the first word of "pkg-config", so it can be a program name with args.
25631set dummy pkg-config; ac_word=$2
25632echo "$as_me:$LINENO: checking for $ac_word" >&5
25633echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25634if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
25635 echo $ECHO_N "(cached) $ECHO_C" >&6
25636else
25637 case $PKG_CONFIG in
25638 [\\/]* | ?:[\\/]*)
25639 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
25640 ;;
25641 *)
25642 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25643for as_dir in $PATH
25644do
25645 IFS=$as_save_IFS
25646 test -z "$as_dir" && as_dir=.
25647 for ac_exec_ext in '' $ac_executable_extensions; do
25648 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25649 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
25650 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25651 break 2
25652 fi
25653done
25654done
25655
25656 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
25657 ;;
25658esac
25659fi
25660PKG_CONFIG=$ac_cv_path_PKG_CONFIG
25661
25662if test -n "$PKG_CONFIG"; then
25663 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
25664echo "${ECHO_T}$PKG_CONFIG" >&6
25665else
25666 echo "$as_me:$LINENO: result: no" >&5
25667echo "${ECHO_T}no" >&6
25668fi
25669
25670 fi
25671
25672 if test "$PKG_CONFIG" = "no" ; then
25673 echo "*** The pkg-config script could not be found. Make sure it is"
25674 echo "*** in your path, or set the PKG_CONFIG environment variable"
25675 echo "*** to the full path to pkg-config."
25676 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
25677 else
25678 PKG_CONFIG_MIN_VERSION=0.9.0
25679 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
25680 echo "$as_me:$LINENO: checking for pangoxft" >&5
25681echo $ECHO_N "checking for pangoxft... $ECHO_C" >&6
25682
25683 if $PKG_CONFIG --exists "pangoxft" ; then
25684 echo "$as_me:$LINENO: result: yes" >&5
25685echo "${ECHO_T}yes" >&6
25686 succeeded=yes
25687
25688 echo "$as_me:$LINENO: checking PANGOXFT_CFLAGS" >&5
25689echo $ECHO_N "checking PANGOXFT_CFLAGS... $ECHO_C" >&6
25690 PANGOXFT_CFLAGS=`$PKG_CONFIG --cflags "pangoxft"`
25691 echo "$as_me:$LINENO: result: $PANGOXFT_CFLAGS" >&5
25692echo "${ECHO_T}$PANGOXFT_CFLAGS" >&6
25693
25694 echo "$as_me:$LINENO: checking PANGOXFT_LIBS" >&5
25695echo $ECHO_N "checking PANGOXFT_LIBS... $ECHO_C" >&6
25696 PANGOXFT_LIBS=`$PKG_CONFIG --libs "pangoxft"`
25697 echo "$as_me:$LINENO: result: $PANGOXFT_LIBS" >&5
25698echo "${ECHO_T}$PANGOXFT_LIBS" >&6
25699 else
25700 PANGOXFT_CFLAGS=""
25701 PANGOXFT_LIBS=""
25702 ## If we have a custom action on failure, don't print errors, but
25703 ## do set a variable so people can do so.
25704 PANGOXFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoxft"`
25705
25706 fi
25707
25708
25709
25710 else
25711 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
25712 echo "*** See http://www.freedesktop.org/software/pkgconfig"
25713 fi
25714 fi
25715
25716 if test $succeeded = yes; then
25717
25718 CXXFLAGS="$CXXFLAGS $PANGOXFT_CFLAGS"
25719 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOXFT_LIBS"
25720
25721 else
25722
25723 { echo "$as_me:$LINENO: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&5
25724echo "$as_me: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&2;}
25725
25726
25727 fi
25728
304205f1
VS
25729 save_CFLAGS="$CFLAGS"
25730 save_LIBS="$LIBS"
25731 CFLAGS="$CFLAGS $PANGOX_CFLAGS"
25732 LIBS="$LIBS $PANGOX_LIBS"
25733
25734for ac_func in pango_font_family_is_monospace
25735do
25736as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25737echo "$as_me:$LINENO: checking for $ac_func" >&5
25738echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25739if eval "test \"\${$as_ac_var+set}\" = set"; then
25740 echo $ECHO_N "(cached) $ECHO_C" >&6
25741else
25742 cat >conftest.$ac_ext <<_ACEOF
25743/* confdefs.h. */
25744_ACEOF
25745cat confdefs.h >>conftest.$ac_ext
25746cat >>conftest.$ac_ext <<_ACEOF
25747/* end confdefs.h. */
25748/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25749 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25750#define $ac_func innocuous_$ac_func
25751
25752/* System header to define __stub macros and hopefully few prototypes,
25753 which can conflict with char $ac_func (); below.
25754 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25755 <limits.h> exists even on freestanding compilers. */
25756
25757#ifdef __STDC__
25758# include <limits.h>
25759#else
25760# include <assert.h>
25761#endif
25762
25763#undef $ac_func
25764
25765/* Override any gcc2 internal prototype to avoid an error. */
25766#ifdef __cplusplus
25767extern "C"
25768{
25769#endif
25770/* We use char because int might match the return type of a gcc2
25771 builtin and then its argument prototype would still apply. */
25772char $ac_func ();
25773/* The GNU C library defines this for functions which it implements
25774 to always fail with ENOSYS. Some functions are actually named
25775 something starting with __ and the normal name is an alias. */
25776#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25777choke me
25778#else
25779char (*f) () = $ac_func;
25780#endif
25781#ifdef __cplusplus
25782}
25783#endif
25784
25785int
25786main ()
25787{
25788return f != $ac_func;
25789 ;
25790 return 0;
25791}
25792_ACEOF
25793rm -f conftest.$ac_objext conftest$ac_exeext
25794if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25795 (eval $ac_link) 2>conftest.er1
25796 ac_status=$?
25797 grep -v '^ *+' conftest.er1 >conftest.err
25798 rm -f conftest.er1
25799 cat conftest.err >&5
25800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25801 (exit $ac_status); } &&
17a7bf57 25802 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
304205f1
VS
25803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25804 (eval $ac_try) 2>&5
25805 ac_status=$?
25806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25807 (exit $ac_status); }; } &&
25808 { ac_try='test -s conftest$ac_exeext'
25809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25810 (eval $ac_try) 2>&5
25811 ac_status=$?
25812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25813 (exit $ac_status); }; }; then
25814 eval "$as_ac_var=yes"
25815else
25816 echo "$as_me: failed program was:" >&5
25817sed 's/^/| /' conftest.$ac_ext >&5
25818
25819eval "$as_ac_var=no"
25820fi
25821rm -f conftest.err conftest.$ac_objext \
25822 conftest$ac_exeext conftest.$ac_ext
25823fi
25824echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25825echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25826if test `eval echo '${'$as_ac_var'}'` = yes; then
25827 cat >>confdefs.h <<_ACEOF
25828#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25829_ACEOF
25830
25831fi
25832done
25833
25834 CFLAGS="$save_CFLAGS"
25835 LIBS="$save_LIBS"
a848cd7e
SC
25836 fi
25837
25838 wxUSE_UNIVERSAL="yes"
25839
25840 if test "$wxUSE_NANOX" = "yes"; then
25841 TOOLKIT_INCLUDE="-I\$(top_srcdir)/include/wx/x11/nanox -I\$(MICROWIN)/src/include $TOOLKIT_INCLUDE"
25842 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"
25843 GUI_TK_LIBRARY="$GUI_TK_LIBRARY \$(MICROWIN)/src/lib/libnano-X.a"
25844 else
25845 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lX11"
25846 fi
25847
a848cd7e
SC
25848 TOOLKIT=X11
25849 GUIDIST=X11_DIST
25850 fi
25851
25852 if test "$wxUSE_MOTIF" = 1; then
74b84332
VS
25853 echo "$as_me:$LINENO: checking for Motif/Lesstif headers" >&5
25854echo $ECHO_N "checking for Motif/Lesstif headers... $ECHO_C" >&6
a848cd7e 25855
74b84332
VS
25856ac_find_includes=
25857for ac_dir in $SEARCH_INCLUDE /usr/include;
25858 do
25859 if test -f "$ac_dir/Xm/Xm.h"; then
25860 ac_find_includes=$ac_dir
25861 break
25862 fi
25863 done
a848cd7e 25864
74b84332
VS
25865 if test "$ac_find_includes" != "" ; then
25866 echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
25867echo "${ECHO_T}found in $ac_find_includes" >&6
25868
25869 if test "x$ac_find_includes" = "x/usr/include"; then
25870 ac_path_to_include=""
25871 else
25872 echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null
25873 result=$?
25874 if test $result = 0; then
25875 ac_path_to_include=""
25876 else
25877 ac_path_to_include=" -I$ac_find_includes"
25878 fi
a848cd7e
SC
25879 fi
25880
74b84332
VS
25881 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE$ac_path_to_include"
25882 else
25883 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
25884/* confdefs.h. */
25885_ACEOF
25886cat confdefs.h >>conftest.$ac_ext
25887cat >>conftest.$ac_ext <<_ACEOF
25888/* end confdefs.h. */
25889
74b84332
VS
25890 #include <Xm/Xm.h>
25891
a848cd7e
SC
25892int
25893main ()
25894{
25895
74b84332
VS
25896 int version;
25897 version = xmUseVersion;
25898
a848cd7e
SC
25899 ;
25900 return 0;
25901}
25902_ACEOF
74b84332
VS
25903rm -f conftest.$ac_objext
25904if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25905 (eval $ac_compile) 2>conftest.er1
a848cd7e 25906 ac_status=$?
ac1cb8d3
VS
25907 grep -v '^ *+' conftest.er1 >conftest.err
25908 rm -f conftest.er1
25909 cat conftest.err >&5
a848cd7e
SC
25910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25911 (exit $ac_status); } &&
17a7bf57 25912 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
25913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25914 (eval $ac_try) 2>&5
25915 ac_status=$?
25916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25917 (exit $ac_status); }; } &&
74b84332 25918 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
25919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25920 (eval $ac_try) 2>&5
25921 ac_status=$?
25922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25923 (exit $ac_status); }; }; then
74b84332
VS
25924
25925 echo "$as_me:$LINENO: result: found in default search path" >&5
25926echo "${ECHO_T}found in default search path" >&6
25927 COMPILED_X_PROGRAM=1
25928
a848cd7e
SC
25929else
25930 echo "$as_me: failed program was:" >&5
25931sed 's/^/| /' conftest.$ac_ext >&5
25932
a848cd7e 25933
74b84332
VS
25934 echo "$as_me:$LINENO: result: no" >&5
25935echo "${ECHO_T}no" >&6
25936 { { echo "$as_me:$LINENO: error: please set CFLAGS to contain the location of Xm/Xm.h" >&5
25937echo "$as_me: error: please set CFLAGS to contain the location of Xm/Xm.h" >&2;}
25938 { (exit 1); exit 1; }; }
a848cd7e 25939
a848cd7e 25940
a848cd7e 25941fi
74b84332
VS
25942rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25943 fi
25944
25945 if test "$COMPILED_X_PROGRAM" = 0; then
25946 echo "$as_me:$LINENO: checking for Motif/Lesstif library" >&5
25947echo $ECHO_N "checking for Motif/Lesstif library... $ECHO_C" >&6
25948
25949ac_find_libraries=
25950for ac_dir in $SEARCH_LIB /usr/lib;
25951 do
25952 for ac_extension in a so sl dylib; do
25953 if test -f "$ac_dir/libXm.$ac_extension"; then
25954 ac_find_libraries=$ac_dir
25955 break 2
a848cd7e 25956 fi
74b84332
VS
25957 done
25958 done
a848cd7e 25959
74b84332
VS
25960 if test "$ac_find_libraries" != "" ; then
25961 echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5
25962echo "${ECHO_T}found at $ac_find_libraries" >&6
a848cd7e 25963
74b84332
VS
25964
25965 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
25966 result=$?
25967 if test $result = 0; then
25968 ac_path_to_link=""
a848cd7e 25969 else
74b84332
VS
25970 ac_path_to_link=" -L$ac_find_libraries"
25971 fi
25972
25973 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
25974 else
25975 save_CFLAGS=$CFLAGS
25976 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
25977
25978 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
25979/* confdefs.h. */
25980_ACEOF
25981cat confdefs.h >>conftest.$ac_ext
25982cat >>conftest.$ac_ext <<_ACEOF
25983/* end confdefs.h. */
25984
74b84332
VS
25985 #include <Xm/Xm.h>
25986
a848cd7e
SC
25987int
25988main ()
25989{
74b84332
VS
25990
25991 int version;
25992 version = xmUseVersion;
25993
a848cd7e
SC
25994 ;
25995 return 0;
25996}
25997_ACEOF
74b84332
VS
25998rm -f conftest.$ac_objext
25999if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26000 (eval $ac_compile) 2>conftest.er1
a848cd7e 26001 ac_status=$?
ac1cb8d3
VS
26002 grep -v '^ *+' conftest.er1 >conftest.err
26003 rm -f conftest.er1
26004 cat conftest.err >&5
a848cd7e
SC
26005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26006 (exit $ac_status); } &&
17a7bf57 26007 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
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); }; } &&
74b84332 26013 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
26014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26015 (eval $ac_try) 2>&5
26016 ac_status=$?
26017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26018 (exit $ac_status); }; }; then
74b84332
VS
26019
26020 echo "$as_me:$LINENO: result: found in default search path" >&5
26021echo "${ECHO_T}found in default search path" >&6
26022 COMPILED_X_PROGRAM=1
26023
a848cd7e
SC
26024else
26025 echo "$as_me: failed program was:" >&5
26026sed 's/^/| /' conftest.$ac_ext >&5
26027
74b84332
VS
26028
26029 echo "$as_me:$LINENO: result: no" >&5
26030echo "${ECHO_T}no" >&6
26031 { { echo "$as_me:$LINENO: error: please set LDFLAGS to contain the location of libXm" >&5
26032echo "$as_me: error: please set LDFLAGS to contain the location of libXm" >&2;}
26033 { (exit 1); exit 1; }; }
26034
26035
26036fi
26037rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26038
26039 CFLAGS=$save_CFLAGS
26040 fi
26041 fi
26042
26043 echo "$as_me:$LINENO: checking if we need -lXp and/or -lSM -lICE" >&5
26044echo $ECHO_N "checking if we need -lXp and/or -lSM -lICE... $ECHO_C" >&6
26045 libp_link=""
26046 libsm_ice_link=""
26047 libs_found=0
26048 for libp in "" " -lXp"; do
26049 if test "$libs_found" = "0"; then
26050 for libsm_ice in "" " -lSM -lICE"; do
26051 if test "$libs_found" = "0"; then
26052 save_LIBS="$LIBS"
26053 LIBS="$GUI_TK_LIBRARY -lXm ${libp} -lXmu -lXext -lXt${libsm_ice} -lX11"
26054 save_CFLAGS=$CFLAGS
26055 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
26056
26057 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
26058/* confdefs.h. */
26059_ACEOF
26060cat confdefs.h >>conftest.$ac_ext
26061cat >>conftest.$ac_ext <<_ACEOF
26062/* end confdefs.h. */
26063
74b84332
VS
26064 #include <Xm/Xm.h>
26065 #include <Xm/List.h>
26066
a848cd7e
SC
26067int
26068main ()
26069{
74b84332
VS
26070
26071 XmString string = NULL;
26072 Widget w = NULL;
26073 int position = 0;
26074 XmListAddItem(w, string, position);
26075
a848cd7e
SC
26076 ;
26077 return 0;
26078}
26079_ACEOF
26080rm -f conftest.$ac_objext conftest$ac_exeext
26081if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26082 (eval $ac_link) 2>conftest.er1
a848cd7e 26083 ac_status=$?
ac1cb8d3
VS
26084 grep -v '^ *+' conftest.er1 >conftest.err
26085 rm -f conftest.er1
26086 cat conftest.err >&5
a848cd7e
SC
26087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26088 (exit $ac_status); } &&
17a7bf57 26089 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26091 (eval $ac_try) 2>&5
26092 ac_status=$?
26093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26094 (exit $ac_status); }; } &&
26095 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26097 (eval $ac_try) 2>&5
26098 ac_status=$?
26099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26100 (exit $ac_status); }; }; then
26101
26102 libp_link="$libp"
26103 libsm_ice_link="$libsm_ice"
26104 echo "$as_me:$LINENO: result: need${libp_link}${libsm_ice_link}" >&5
26105echo "${ECHO_T}need${libp_link}${libsm_ice_link}" >&6
26106 libs_found=1
26107
26108else
26109 echo "$as_me: failed program was:" >&5
26110sed 's/^/| /' conftest.$ac_ext >&5
26111
26112
26113
26114fi
ac1cb8d3
VS
26115rm -f conftest.err conftest.$ac_objext \
26116 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26117
26118 LIBS="$save_LIBS"
26119 CFLAGS=$save_CFLAGS
26120 fi
26121 done
26122 fi
26123 done
26124
26125 if test "$libs_found" = "0"; then
26126 echo "$as_me:$LINENO: result: can't find the right libraries" >&5
26127echo "${ECHO_T}can't find the right libraries" >&6
26128 { { echo "$as_me:$LINENO: error: can't link a simple motif program" >&5
26129echo "$as_me: error: can't link a simple motif program" >&2;}
26130 { (exit 1); exit 1; }; }
26131 fi
26132
26133 save_CFLAGS=$CFLAGS
26134 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
26135 echo "$as_me:$LINENO: checking for Motif 2" >&5
26136echo $ECHO_N "checking for Motif 2... $ECHO_C" >&6
26137 cat >conftest.$ac_ext <<_ACEOF
26138/* confdefs.h. */
26139_ACEOF
26140cat confdefs.h >>conftest.$ac_ext
26141cat >>conftest.$ac_ext <<_ACEOF
26142/* end confdefs.h. */
26143
26144 #include <Xm/Xm.h>
26145
26146int
26147main ()
26148{
26149
26150 #if XmVersion < 2000
26151 #error "Not Motif 2"
26152 #endif
26153
26154 ;
26155 return 0;
26156}
26157_ACEOF
26158rm -f conftest.$ac_objext
26159if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 26160 (eval $ac_compile) 2>conftest.er1
a848cd7e 26161 ac_status=$?
ac1cb8d3
VS
26162 grep -v '^ *+' conftest.er1 >conftest.err
26163 rm -f conftest.er1
26164 cat conftest.err >&5
a848cd7e
SC
26165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26166 (exit $ac_status); } &&
17a7bf57 26167 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26169 (eval $ac_try) 2>&5
26170 ac_status=$?
26171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26172 (exit $ac_status); }; } &&
26173 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
26174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26175 (eval $ac_try) 2>&5
26176 ac_status=$?
26177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26178 (exit $ac_status); }; }; then
26179
26180 cat >>confdefs.h <<\_ACEOF
26181#define __WXMOTIF20__ 1
26182_ACEOF
26183
26184 echo "$as_me:$LINENO: result: found" >&5
26185echo "${ECHO_T}found" >&6
26186
26187else
26188 echo "$as_me: failed program was:" >&5
26189sed 's/^/| /' conftest.$ac_ext >&5
26190
26191
26192 cat >>confdefs.h <<\_ACEOF
26193#define __WXMOTIF20__ 0
26194_ACEOF
26195
26196 echo "$as_me:$LINENO: result: not found" >&5
26197echo "${ECHO_T}not found" >&6
26198
26199fi
ac1cb8d3 26200rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
26201 CFLAGS=$save_CFLAGS
26202
26203 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXm${libp_link} -lXmu -lXext -lXt${libsm_ice_link} -lX11"
a848cd7e
SC
26204 TOOLKIT=MOTIF
26205 GUIDIST=MOTIF_DIST
26206 fi
26207
74b84332 26208 if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
a848cd7e
SC
26209 if test "$wxUSE_LIBXPM" = "sys"; then
26210 echo "$as_me:$LINENO: checking for Xpm library" >&5
26211echo $ECHO_N "checking for Xpm library... $ECHO_C" >&6
26212
26213ac_find_libraries=
26214for ac_dir in $SEARCH_LIB /usr/lib;
26215 do
26216 for ac_extension in a so sl dylib; do
26217 if test -f "$ac_dir/libXpm.$ac_extension"; then
26218 ac_find_libraries=$ac_dir
26219 break 2
26220 fi
26221 done
26222 done
26223
26224 if test "$ac_find_libraries" != "" ; then
26225
26226 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
26227 result=$?
26228 if test $result = 0; then
26229 ac_path_to_link=""
26230 else
26231 ac_path_to_link=" -L$ac_find_libraries"
26232 fi
26233
26234 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
26235 echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5
26236echo "${ECHO_T}found at $ac_find_libraries" >&6
26237
26238 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
26239echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
26240if test "${wx_cv_x11_xpm_h+set}" = set; then
26241 echo $ECHO_N "(cached) $ECHO_C" >&6
26242else
26243
26244 save_CFLAGS=$CFLAGS
26245 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
26246
26247 cat >conftest.$ac_ext <<_ACEOF
26248/* confdefs.h. */
26249_ACEOF
26250cat confdefs.h >>conftest.$ac_ext
26251cat >>conftest.$ac_ext <<_ACEOF
26252/* end confdefs.h. */
26253
26254 #include <X11/xpm.h>
26255
26256int
26257main ()
26258{
26259
26260 int version;
26261 version = XpmLibraryVersion();
26262
26263 ;
26264 return 0;
26265}
26266_ACEOF
26267rm -f conftest.$ac_objext
26268if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 26269 (eval $ac_compile) 2>conftest.er1
a848cd7e 26270 ac_status=$?
ac1cb8d3
VS
26271 grep -v '^ *+' conftest.er1 >conftest.err
26272 rm -f conftest.er1
26273 cat conftest.err >&5
a848cd7e
SC
26274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26275 (exit $ac_status); } &&
17a7bf57 26276 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26278 (eval $ac_try) 2>&5
26279 ac_status=$?
26280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26281 (exit $ac_status); }; } &&
26282 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
26283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26284 (eval $ac_try) 2>&5
26285 ac_status=$?
26286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26287 (exit $ac_status); }; }; then
26288 wx_cv_x11_xpm_h=yes
26289else
26290 echo "$as_me: failed program was:" >&5
26291sed 's/^/| /' conftest.$ac_ext >&5
26292
26293wx_cv_x11_xpm_h=no
26294
26295fi
ac1cb8d3 26296rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
26297
26298 CFLAGS=$save_CFLAGS
26299
26300
26301fi
26302echo "$as_me:$LINENO: result: $wx_cv_x11_xpm_h" >&5
26303echo "${ECHO_T}$wx_cv_x11_xpm_h" >&6
26304
26305 if test $wx_cv_x11_xpm_h = "yes"; then
26306 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXpm"
26307 cat >>confdefs.h <<\_ACEOF
26308#define wxHAVE_LIB_XPM 1
26309_ACEOF
26310
26311 else
26312 { echo "$as_me:$LINENO: WARNING: built-in less efficient XPM decoder will be used" >&5
26313echo "$as_me: WARNING: built-in less efficient XPM decoder will be used" >&2;}
26314 fi
26315 fi
26316
26317 fi
26318
26319 echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
26320echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6
26321if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
26322 echo $ECHO_N "(cached) $ECHO_C" >&6
26323else
26324 ac_check_lib_save_LIBS=$LIBS
26325LIBS="-lXext $GUI_TK_LIBRARY -lX11 $LIBS"
26326cat >conftest.$ac_ext <<_ACEOF
26327/* confdefs.h. */
26328_ACEOF
26329cat confdefs.h >>conftest.$ac_ext
26330cat >>conftest.$ac_ext <<_ACEOF
26331/* end confdefs.h. */
26332
26333/* Override any gcc2 internal prototype to avoid an error. */
26334#ifdef __cplusplus
26335extern "C"
26336#endif
26337/* We use char because int might match the return type of a gcc2
26338 builtin and then its argument prototype would still apply. */
26339char XShapeQueryExtension ();
26340int
26341main ()
26342{
26343XShapeQueryExtension ();
26344 ;
26345 return 0;
26346}
26347_ACEOF
26348rm -f conftest.$ac_objext conftest$ac_exeext
26349if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26350 (eval $ac_link) 2>conftest.er1
a848cd7e 26351 ac_status=$?
ac1cb8d3
VS
26352 grep -v '^ *+' conftest.er1 >conftest.err
26353 rm -f conftest.er1
26354 cat conftest.err >&5
a848cd7e
SC
26355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26356 (exit $ac_status); } &&
17a7bf57 26357 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26359 (eval $ac_try) 2>&5
26360 ac_status=$?
26361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26362 (exit $ac_status); }; } &&
26363 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26365 (eval $ac_try) 2>&5
26366 ac_status=$?
26367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26368 (exit $ac_status); }; }; then
26369 ac_cv_lib_Xext_XShapeQueryExtension=yes
26370else
26371 echo "$as_me: failed program was:" >&5
26372sed 's/^/| /' conftest.$ac_ext >&5
26373
26374ac_cv_lib_Xext_XShapeQueryExtension=no
26375fi
ac1cb8d3
VS
26376rm -f conftest.err conftest.$ac_objext \
26377 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26378LIBS=$ac_check_lib_save_LIBS
26379fi
26380echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
26381echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6
26382if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
26383
26384 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXext"
26385 wxHAVE_XEXT_LIB=1
26386
26387fi
26388
26389
26390 if test "$wxHAVE_XEXT_LIB" = 1; then
26391 save_CFLAGS="$CFLAGS"
26392 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
26393
26394 echo "$as_me:$LINENO: checking for X11/extensions/shape.h" >&5
26395echo $ECHO_N "checking for X11/extensions/shape.h... $ECHO_C" >&6
26396 cat >conftest.$ac_ext <<_ACEOF
26397/* confdefs.h. */
26398_ACEOF
26399cat confdefs.h >>conftest.$ac_ext
26400cat >>conftest.$ac_ext <<_ACEOF
26401/* end confdefs.h. */
26402
26403 #include <X11/Xlib.h>
26404 #include <X11/extensions/shape.h>
26405
26406int
26407main ()
26408{
26409
26410 int dummy1, dummy2;
26411 XShapeQueryExtension((Display*)NULL,
26412 (int*)NULL, (int*)NULL);
26413
26414 ;
26415 return 0;
26416}
26417_ACEOF
26418rm -f conftest.$ac_objext
26419if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 26420 (eval $ac_compile) 2>conftest.er1
a848cd7e 26421 ac_status=$?
ac1cb8d3
VS
26422 grep -v '^ *+' conftest.er1 >conftest.err
26423 rm -f conftest.er1
26424 cat conftest.err >&5
a848cd7e
SC
26425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26426 (exit $ac_status); } &&
17a7bf57 26427 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26429 (eval $ac_try) 2>&5
26430 ac_status=$?
26431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26432 (exit $ac_status); }; } &&
26433 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
26434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26435 (eval $ac_try) 2>&5
26436 ac_status=$?
26437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26438 (exit $ac_status); }; }; then
26439
26440 cat >>confdefs.h <<\_ACEOF
26441#define HAVE_XSHAPE 1
26442_ACEOF
26443
26444 echo "$as_me:$LINENO: result: found" >&5
26445echo "${ECHO_T}found" >&6
26446
26447else
26448 echo "$as_me: failed program was:" >&5
26449sed 's/^/| /' conftest.$ac_ext >&5
26450
26451
26452 echo "$as_me:$LINENO: result: not found" >&5
26453echo "${ECHO_T}not found" >&6
26454
26455fi
ac1cb8d3 26456rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
26457 CFLAGS="$save_CFLAGS"
26458
26459 fi
26460 fi
26461
26462 if test "$wxUSE_MAC" = 1; then
26463 echo "$as_me:$LINENO: checking for compiler syntax to enable Pascal strings" >&5
26464echo $ECHO_N "checking for compiler syntax to enable Pascal strings... $ECHO_C" >&6
26465 if test "$GCC" = yes; then
26466 echo "$as_me:$LINENO: result: gcc" >&5
26467echo "${ECHO_T}gcc" >&6
26468 CPPFLAGS_PASCAL="-fpascal-strings"
26469 elif test "`echo $CXX | sed -e 's@.*/@@'`" = "xlC"; then
26470 echo "$as_me:$LINENO: result: xlc" >&5
26471echo "${ECHO_T}xlc" >&6
26472 CPPFLAGS_PASCAL="-qmacpstr"
26473 else
26474 echo "$as_me:$LINENO: result: none" >&5
26475echo "${ECHO_T}none" >&6
26476 fi
26477
26478 CPPFLAGS="$CPPFLAGS $CPPFLAGS_PASCAL -I\${top_srcdir}/src/mac/carbon/morefilex -I/Developer/Headers/FlatCarbon"
26479
a848cd7e
SC
26480 TOOLKIT=MAC
26481 GUIDIST=MACX_DIST
dd21ced8 26482 WXBASEPORT="_carbon"
a848cd7e
SC
26483 fi
26484
26485 if test "$wxUSE_COCOA" = 1; then
a848cd7e
SC
26486 TOOLKIT=COCOA
26487 GUIDIST=COCOA_DIST
26488 fi
26489
26490 if test "$wxUSE_PM" = 1; then
26491 TOOLKIT=PM
de59c161
RD
26492 GUIDIST=PM_DIST
26493 echo "$as_me:$LINENO: checking for type SPBCDATA" >&5
26494echo $ECHO_N "checking for type SPBCDATA... $ECHO_C" >&6
26495if test "${wx_cv_spbcdata+set}" = set; then
26496 echo $ECHO_N "(cached) $ECHO_C" >&6
26497else
26498
26499 cat >conftest.$ac_ext <<_ACEOF
de59c161
RD
26500/* confdefs.h. */
26501_ACEOF
26502cat confdefs.h >>conftest.$ac_ext
26503cat >>conftest.$ac_ext <<_ACEOF
26504/* end confdefs.h. */
26505
26506 #define INCL_PM
26507 #include <os2.h>
26508
26509int
26510main ()
26511{
26512
26513 SPBCDATA test;
26514
26515 ;
26516 return 0;
26517}
26518_ACEOF
26519rm -f conftest.$ac_objext
26520if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 26521 (eval $ac_compile) 2>conftest.er1
de59c161 26522 ac_status=$?
ac1cb8d3
VS
26523 grep -v '^ *+' conftest.er1 >conftest.err
26524 rm -f conftest.er1
26525 cat conftest.err >&5
de59c161
RD
26526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26527 (exit $ac_status); } &&
17a7bf57 26528 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26530 (eval $ac_try) 2>&5
26531 ac_status=$?
26532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26533 (exit $ac_status); }; } &&
26534 { ac_try='test -s conftest.$ac_objext'
de59c161
RD
26535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26536 (eval $ac_try) 2>&5
26537 ac_status=$?
26538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26539 (exit $ac_status); }; }; then
26540 wx_cv_spbcdata=yes
26541else
26542 echo "$as_me: failed program was:" >&5
26543sed 's/^/| /' conftest.$ac_ext >&5
26544
26545wx_cv_spbcdata=no
26546
26547fi
ac1cb8d3 26548rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
de59c161
RD
26549
26550
26551fi
26552echo "$as_me:$LINENO: result: $wx_cv_spbcdata" >&5
26553echo "${ECHO_T}$wx_cv_spbcdata" >&6
26554
26555 if test $wx_cv_spbcdata = "yes"; then
26556 cat >>confdefs.h <<\_ACEOF
26557#define HAVE_SPBCDATA 1
26558_ACEOF
26559
26560 fi
a848cd7e
SC
26561 fi
26562
26563 if test "$TOOLKIT" = "PM" ; then
26564 TOOLKIT_DIR="os2"
26565 else
26566 TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"`
26567 fi
26568
a848cd7e 26569 if test "$wxUSE_UNIVERSAL" = "yes"; then
a848cd7e
SC
26570 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__"
26571 WIDGET_SET=univ
a848cd7e
SC
26572 fi
26573
26574 GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST"
26575 DISTDIR="wx\$(TOOLKIT)"
26576else
26577 USE_GUI=0
26578
26579 TOOLKIT_DIR="base"
26580
26581 if test "$USE_WIN32" = 1 ; then
a848cd7e 26582 TOOLKIT="MSW"
a848cd7e
SC
26583 fi
26584
a848cd7e
SC
26585 GUIDIST="BASE_DIST"
26586 DISTDIR="wxBase"
26587fi
26588
26589
26590
26591
26592IODBC_C_SRC=""
26593
26594
26595if test "$TOOLKIT" != "MSW" ; then
26596
26597 if test "$wxUSE_ODBC" = "sys" -o "$wxUSE_ODBC" = "yes" ; then
26598
26599 if test "${ac_cv_header_sql_h+set}" = set; then
26600 echo "$as_me:$LINENO: checking for sql.h" >&5
26601echo $ECHO_N "checking for sql.h... $ECHO_C" >&6
26602if test "${ac_cv_header_sql_h+set}" = set; then
26603 echo $ECHO_N "(cached) $ECHO_C" >&6
26604fi
26605echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
26606echo "${ECHO_T}$ac_cv_header_sql_h" >&6
26607else
26608 # Is the header compilable?
26609echo "$as_me:$LINENO: checking sql.h usability" >&5
26610echo $ECHO_N "checking sql.h usability... $ECHO_C" >&6
26611cat >conftest.$ac_ext <<_ACEOF
26612/* confdefs.h. */
26613_ACEOF
26614cat confdefs.h >>conftest.$ac_ext
26615cat >>conftest.$ac_ext <<_ACEOF
26616/* end confdefs.h. */
26617$ac_includes_default
26618#include <sql.h>
26619_ACEOF
26620rm -f conftest.$ac_objext
26621if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 26622 (eval $ac_compile) 2>conftest.er1
a848cd7e 26623 ac_status=$?
ac1cb8d3
VS
26624 grep -v '^ *+' conftest.er1 >conftest.err
26625 rm -f conftest.er1
26626 cat conftest.err >&5
a848cd7e
SC
26627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26628 (exit $ac_status); } &&
17a7bf57 26629 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26631 (eval $ac_try) 2>&5
26632 ac_status=$?
26633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26634 (exit $ac_status); }; } &&
26635 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
26636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26637 (eval $ac_try) 2>&5
26638 ac_status=$?
26639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26640 (exit $ac_status); }; }; then
26641 ac_header_compiler=yes
26642else
26643 echo "$as_me: failed program was:" >&5
26644sed 's/^/| /' conftest.$ac_ext >&5
26645
26646ac_header_compiler=no
26647fi
ac1cb8d3 26648rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
26649echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26650echo "${ECHO_T}$ac_header_compiler" >&6
26651
26652# Is the header present?
26653echo "$as_me:$LINENO: checking sql.h presence" >&5
26654echo $ECHO_N "checking sql.h presence... $ECHO_C" >&6
26655cat >conftest.$ac_ext <<_ACEOF
26656/* confdefs.h. */
26657_ACEOF
26658cat confdefs.h >>conftest.$ac_ext
26659cat >>conftest.$ac_ext <<_ACEOF
26660/* end confdefs.h. */
26661#include <sql.h>
26662_ACEOF
26663if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26664 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26665 ac_status=$?
26666 grep -v '^ *+' conftest.er1 >conftest.err
26667 rm -f conftest.er1
26668 cat conftest.err >&5
26669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26670 (exit $ac_status); } >/dev/null; then
26671 if test -s conftest.err; then
26672 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 26673 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
26674 else
26675 ac_cpp_err=
26676 fi
26677else
26678 ac_cpp_err=yes
26679fi
26680if test -z "$ac_cpp_err"; then
26681 ac_header_preproc=yes
26682else
26683 echo "$as_me: failed program was:" >&5
26684sed 's/^/| /' conftest.$ac_ext >&5
26685
26686 ac_header_preproc=no
26687fi
26688rm -f conftest.err conftest.$ac_ext
26689echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26690echo "${ECHO_T}$ac_header_preproc" >&6
26691
26692# So? What about this header?
ac1cb8d3
VS
26693case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26694 yes:no: )
a848cd7e
SC
26695 { echo "$as_me:$LINENO: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&5
26696echo "$as_me: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
26697 { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the compiler's result" >&5
26698echo "$as_me: WARNING: sql.h: proceeding with the compiler's result" >&2;}
26699 ac_header_preproc=yes
a848cd7e 26700 ;;
ac1cb8d3 26701 no:yes:* )
a848cd7e
SC
26702 { echo "$as_me:$LINENO: WARNING: sql.h: present but cannot be compiled" >&5
26703echo "$as_me: WARNING: sql.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
26704 { echo "$as_me:$LINENO: WARNING: sql.h: check for missing prerequisite headers?" >&5
26705echo "$as_me: WARNING: sql.h: check for missing prerequisite headers?" >&2;}
26706 { echo "$as_me:$LINENO: WARNING: sql.h: see the Autoconf documentation" >&5
26707echo "$as_me: WARNING: sql.h: see the Autoconf documentation" >&2;}
26708 { echo "$as_me:$LINENO: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&5
26709echo "$as_me: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
26710 { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the preprocessor's result" >&5
26711echo "$as_me: WARNING: sql.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
26712 { echo "$as_me:$LINENO: WARNING: sql.h: in the future, the compiler will take precedence" >&5
26713echo "$as_me: WARNING: sql.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
26714 (
26715 cat <<\_ASBOX
ac1cb8d3
VS
26716## ----------------------------------------- ##
26717## Report this to wx-dev@lists.wxwidgets.org ##
26718## ----------------------------------------- ##
a848cd7e
SC
26719_ASBOX
26720 ) |
26721 sed "s/^/$as_me: WARNING: /" >&2
26722 ;;
26723esac
26724echo "$as_me:$LINENO: checking for sql.h" >&5
26725echo $ECHO_N "checking for sql.h... $ECHO_C" >&6
26726if test "${ac_cv_header_sql_h+set}" = set; then
26727 echo $ECHO_N "(cached) $ECHO_C" >&6
26728else
26729 ac_cv_header_sql_h=$ac_header_preproc
26730fi
26731echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
26732echo "${ECHO_T}$ac_cv_header_sql_h" >&6
26733
26734fi
26735if test $ac_cv_header_sql_h = yes; then
26736 found_sql_h=1
26737fi
26738
26739
26740 if test "x$found_sql_h" = "x1" ; then
26741 echo "$as_me:$LINENO: checking for SQLAllocEnv in -liodbc" >&5
26742echo $ECHO_N "checking for SQLAllocEnv in -liodbc... $ECHO_C" >&6
26743if test "${ac_cv_lib_iodbc_SQLAllocEnv+set}" = set; then
26744 echo $ECHO_N "(cached) $ECHO_C" >&6
26745else
26746 ac_check_lib_save_LIBS=$LIBS
26747LIBS="-liodbc $LIBS"
26748cat >conftest.$ac_ext <<_ACEOF
26749/* confdefs.h. */
26750_ACEOF
26751cat confdefs.h >>conftest.$ac_ext
26752cat >>conftest.$ac_ext <<_ACEOF
26753/* end confdefs.h. */
26754
26755/* Override any gcc2 internal prototype to avoid an error. */
26756#ifdef __cplusplus
26757extern "C"
26758#endif
26759/* We use char because int might match the return type of a gcc2
26760 builtin and then its argument prototype would still apply. */
26761char SQLAllocEnv ();
26762int
26763main ()
26764{
26765SQLAllocEnv ();
26766 ;
26767 return 0;
26768}
26769_ACEOF
26770rm -f conftest.$ac_objext conftest$ac_exeext
26771if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26772 (eval $ac_link) 2>conftest.er1
a848cd7e 26773 ac_status=$?
ac1cb8d3
VS
26774 grep -v '^ *+' conftest.er1 >conftest.err
26775 rm -f conftest.er1
26776 cat conftest.err >&5
a848cd7e
SC
26777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26778 (exit $ac_status); } &&
17a7bf57 26779 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26781 (eval $ac_try) 2>&5
26782 ac_status=$?
26783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26784 (exit $ac_status); }; } &&
26785 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26787 (eval $ac_try) 2>&5
26788 ac_status=$?
26789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26790 (exit $ac_status); }; }; then
26791 ac_cv_lib_iodbc_SQLAllocEnv=yes
26792else
26793 echo "$as_me: failed program was:" >&5
26794sed 's/^/| /' conftest.$ac_ext >&5
26795
26796ac_cv_lib_iodbc_SQLAllocEnv=no
26797fi
ac1cb8d3
VS
26798rm -f conftest.err conftest.$ac_objext \
26799 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26800LIBS=$ac_check_lib_save_LIBS
26801fi
26802echo "$as_me:$LINENO: result: $ac_cv_lib_iodbc_SQLAllocEnv" >&5
26803echo "${ECHO_T}$ac_cv_lib_iodbc_SQLAllocEnv" >&6
26804if test $ac_cv_lib_iodbc_SQLAllocEnv = yes; then
26805 ODBC_LINK=" -liodbc"
26806else
26807
26808 echo "$as_me:$LINENO: checking for SQLAllocEnv in -lunixodbc" >&5
26809echo $ECHO_N "checking for SQLAllocEnv in -lunixodbc... $ECHO_C" >&6
26810if test "${ac_cv_lib_unixodbc_SQLAllocEnv+set}" = set; then
26811 echo $ECHO_N "(cached) $ECHO_C" >&6
26812else
26813 ac_check_lib_save_LIBS=$LIBS
26814LIBS="-lunixodbc $LIBS"
26815cat >conftest.$ac_ext <<_ACEOF
26816/* confdefs.h. */
26817_ACEOF
26818cat confdefs.h >>conftest.$ac_ext
26819cat >>conftest.$ac_ext <<_ACEOF
26820/* end confdefs.h. */
26821
26822/* Override any gcc2 internal prototype to avoid an error. */
26823#ifdef __cplusplus
26824extern "C"
26825#endif
26826/* We use char because int might match the return type of a gcc2
26827 builtin and then its argument prototype would still apply. */
26828char SQLAllocEnv ();
26829int
26830main ()
26831{
26832SQLAllocEnv ();
26833 ;
26834 return 0;
26835}
26836_ACEOF
26837rm -f conftest.$ac_objext conftest$ac_exeext
26838if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26839 (eval $ac_link) 2>conftest.er1
a848cd7e 26840 ac_status=$?
ac1cb8d3
VS
26841 grep -v '^ *+' conftest.er1 >conftest.err
26842 rm -f conftest.er1
26843 cat conftest.err >&5
a848cd7e
SC
26844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26845 (exit $ac_status); } &&
17a7bf57 26846 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26848 (eval $ac_try) 2>&5
26849 ac_status=$?
26850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26851 (exit $ac_status); }; } &&
26852 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26854 (eval $ac_try) 2>&5
26855 ac_status=$?
26856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26857 (exit $ac_status); }; }; then
26858 ac_cv_lib_unixodbc_SQLAllocEnv=yes
26859else
26860 echo "$as_me: failed program was:" >&5
26861sed 's/^/| /' conftest.$ac_ext >&5
26862
26863ac_cv_lib_unixodbc_SQLAllocEnv=no
26864fi
ac1cb8d3
VS
26865rm -f conftest.err conftest.$ac_objext \
26866 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26867LIBS=$ac_check_lib_save_LIBS
26868fi
26869echo "$as_me:$LINENO: result: $ac_cv_lib_unixodbc_SQLAllocEnv" >&5
26870echo "${ECHO_T}$ac_cv_lib_unixodbc_SQLAllocEnv" >&6
26871if test $ac_cv_lib_unixodbc_SQLAllocEnv = yes; then
26872 ODBC_LINK=" -lunixodbc"
26873else
26874
26875 echo "$as_me:$LINENO: checking for SQLAllocEnv in -lodbc" >&5
26876echo $ECHO_N "checking for SQLAllocEnv in -lodbc... $ECHO_C" >&6
26877if test "${ac_cv_lib_odbc_SQLAllocEnv+set}" = set; then
26878 echo $ECHO_N "(cached) $ECHO_C" >&6
26879else
26880 ac_check_lib_save_LIBS=$LIBS
26881LIBS="-lodbc $LIBS"
26882cat >conftest.$ac_ext <<_ACEOF
26883/* confdefs.h. */
26884_ACEOF
26885cat confdefs.h >>conftest.$ac_ext
26886cat >>conftest.$ac_ext <<_ACEOF
26887/* end confdefs.h. */
26888
26889/* Override any gcc2 internal prototype to avoid an error. */
26890#ifdef __cplusplus
26891extern "C"
26892#endif
26893/* We use char because int might match the return type of a gcc2
26894 builtin and then its argument prototype would still apply. */
26895char SQLAllocEnv ();
26896int
26897main ()
26898{
26899SQLAllocEnv ();
26900 ;
26901 return 0;
26902}
26903_ACEOF
26904rm -f conftest.$ac_objext conftest$ac_exeext
26905if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26906 (eval $ac_link) 2>conftest.er1
a848cd7e 26907 ac_status=$?
ac1cb8d3
VS
26908 grep -v '^ *+' conftest.er1 >conftest.err
26909 rm -f conftest.er1
26910 cat conftest.err >&5
a848cd7e
SC
26911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26912 (exit $ac_status); } &&
17a7bf57 26913 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26915 (eval $ac_try) 2>&5
26916 ac_status=$?
26917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26918 (exit $ac_status); }; } &&
26919 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26921 (eval $ac_try) 2>&5
26922 ac_status=$?
26923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26924 (exit $ac_status); }; }; then
26925 ac_cv_lib_odbc_SQLAllocEnv=yes
26926else
26927 echo "$as_me: failed program was:" >&5
26928sed 's/^/| /' conftest.$ac_ext >&5
26929
26930ac_cv_lib_odbc_SQLAllocEnv=no
26931fi
ac1cb8d3
VS
26932rm -f conftest.err conftest.$ac_objext \
26933 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26934LIBS=$ac_check_lib_save_LIBS
26935fi
26936echo "$as_me:$LINENO: result: $ac_cv_lib_odbc_SQLAllocEnv" >&5
26937echo "${ECHO_T}$ac_cv_lib_odbc_SQLAllocEnv" >&6
26938if test $ac_cv_lib_odbc_SQLAllocEnv = yes; then
26939 ODBC_LINK=" -lodbc"
26940fi
26941
26942
26943fi
26944
26945
26946fi
26947
26948 fi
26949 if test "x$ODBC_LINK" = "x" ; then
26950 if test "$wxUSE_ODBC" = "sys" ; then
26951 { { echo "$as_me:$LINENO: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&5
26952echo "$as_me: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&2;}
26953 { (exit 1); exit 1; }; }
26954 else
26955 { echo "$as_me:$LINENO: WARNING: system ODBC library not found, will use built-in instead" >&5
26956echo "$as_me: WARNING: system ODBC library not found, will use built-in instead" >&2;}
26957 wxUSE_ODBC=builtin
26958 fi
26959 else
26960 wxUSE_ODBC=sys
26961 fi
26962 fi
26963 if test "$wxUSE_ODBC" != "no" ; then
26964 cat >>confdefs.h <<\_ACEOF
26965#define wxUSE_ODBC 1
26966_ACEOF
26967
26968 if test "$wxUSE_ODBC" = "builtin" ; then
26969 cat >>confdefs.h <<\_ACEOF
26970#define wxUSE_BUILTIN_IODBC 1
26971_ACEOF
26972
26973 fi
26974 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db"
26975
26976 WXODBCFLAG="-D_IODBC_"
26977 fi
26978fi
26979
a848cd7e 26980
01cb68df 26981
a848cd7e 26982if test "$wxUSE_DISPLAY" = "yes"; then
2a5d7a98 26983 if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_MAC" != 1 -a "$wxUSE_COCOA" != 1; then
a848cd7e
SC
26984 echo "$as_me:$LINENO: checking for Xinerama" >&5
26985echo $ECHO_N "checking for Xinerama... $ECHO_C" >&6
26986
26987ac_find_libraries=
26988for ac_dir in $SEARCH_LIB /usr/lib;
26989 do
26990 for ac_extension in a so sl dylib; do
26991 if test -f "$ac_dir/libXinerama.$ac_extension"; then
26992 ac_find_libraries=$ac_dir
26993 break 2
26994 fi
26995 done
26996 done
26997
26998 if test "$ac_find_libraries" != "" ; then
26999
27000 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
27001 result=$?
27002 if test $result = 0; then
27003 ac_path_to_link=""
27004 else
27005 ac_path_to_link=" -L$ac_find_libraries"
27006 fi
27007
27008 if test "$ac_path_to_link" != " -L/usr/lib" ; then
27009 LDFLAGS="$LDFLAGS $ac_path_to_link"
27010 fi
27011 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXinerama"
27012 echo "$as_me:$LINENO: result: yes" >&5
27013echo "${ECHO_T}yes" >&6
27014
27015 echo "$as_me:$LINENO: checking for Xxf86vm extension" >&5
27016echo $ECHO_N "checking for Xxf86vm extension... $ECHO_C" >&6
27017
27018ac_find_libraries=
27019for ac_dir in $SEARCH_LIB /usr/lib;
27020 do
27021 for ac_extension in a so sl dylib; do
27022 if test -f "$ac_dir/libXxf86vm.$ac_extension"; then
27023 ac_find_libraries=$ac_dir
27024 break 2
27025 fi
27026 done
27027 done
27028
27029 if test "$ac_find_libraries" != "" ; then
27030 echo "$as_me:$LINENO: result: yes" >&5
27031echo "${ECHO_T}yes" >&6
27032
27033for ac_header in X11/extensions/xf86vmode.h
27034do
27035as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27036echo "$as_me:$LINENO: checking for $ac_header" >&5
27037echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27038if eval "test \"\${$as_ac_Header+set}\" = set"; then
27039 echo $ECHO_N "(cached) $ECHO_C" >&6
27040else
27041 cat >conftest.$ac_ext <<_ACEOF
27042/* confdefs.h. */
27043_ACEOF
27044cat confdefs.h >>conftest.$ac_ext
27045cat >>conftest.$ac_ext <<_ACEOF
27046/* end confdefs.h. */
27047
27048 #if HAVE_X11_XLIB_H
27049 #include <X11/Xlib.h>
27050 #endif
27051
27052
27053#include <$ac_header>
27054_ACEOF
27055rm -f conftest.$ac_objext
27056if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 27057 (eval $ac_compile) 2>conftest.er1
a848cd7e 27058 ac_status=$?
ac1cb8d3
VS
27059 grep -v '^ *+' conftest.er1 >conftest.err
27060 rm -f conftest.er1
27061 cat conftest.err >&5
a848cd7e
SC
27062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27063 (exit $ac_status); } &&
17a7bf57 27064 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
27065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27066 (eval $ac_try) 2>&5
27067 ac_status=$?
27068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27069 (exit $ac_status); }; } &&
27070 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
27071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27072 (eval $ac_try) 2>&5
27073 ac_status=$?
27074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27075 (exit $ac_status); }; }; then
27076 eval "$as_ac_Header=yes"
27077else
27078 echo "$as_me: failed program was:" >&5
27079sed 's/^/| /' conftest.$ac_ext >&5
27080
27081eval "$as_ac_Header=no"
27082fi
ac1cb8d3 27083rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
27084fi
27085echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27086echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27087if test `eval echo '${'$as_ac_Header'}'` = yes; then
27088 cat >>confdefs.h <<_ACEOF
27089#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27090_ACEOF
27091
27092 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXxf86vm"
27093
27094fi
27095
27096done
27097
27098 else
27099 echo "$as_me:$LINENO: result: no" >&5
27100echo "${ECHO_T}no" >&6
27101 fi
27102
27103 else
27104 echo "$as_me:$LINENO: result: no" >&5
27105echo "${ECHO_T}no" >&6
dcc1b6ad
VS
27106 { echo "$as_me:$LINENO: WARNING: Xinerama not found; disabling wxDisplay" >&5
27107echo "$as_me: WARNING: Xinerama not found; disabling wxDisplay" >&2;}
a848cd7e
SC
27108 wxUSE_DISPLAY="no"
27109 fi
01cb68df
RG
27110 elif test "$wxUSE_MSW" = 1; then
27111
27112
27113for ac_header in multimon.h ddraw.h
27114do
27115as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27116if eval "test \"\${$as_ac_Header+set}\" = set"; then
27117 echo "$as_me:$LINENO: checking for $ac_header" >&5
27118echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27119if eval "test \"\${$as_ac_Header+set}\" = set"; then
27120 echo $ECHO_N "(cached) $ECHO_C" >&6
27121fi
27122echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27123echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27124else
27125 # Is the header compilable?
27126echo "$as_me:$LINENO: checking $ac_header usability" >&5
27127echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
27128cat >conftest.$ac_ext <<_ACEOF
27129/* confdefs.h. */
27130_ACEOF
27131cat confdefs.h >>conftest.$ac_ext
27132cat >>conftest.$ac_ext <<_ACEOF
27133/* end confdefs.h. */
27134$ac_includes_default
27135#include <$ac_header>
27136_ACEOF
27137rm -f conftest.$ac_objext
27138if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 27139 (eval $ac_compile) 2>conftest.er1
01cb68df 27140 ac_status=$?
ac1cb8d3
VS
27141 grep -v '^ *+' conftest.er1 >conftest.err
27142 rm -f conftest.er1
27143 cat conftest.err >&5
01cb68df
RG
27144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27145 (exit $ac_status); } &&
17a7bf57 27146 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
27147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27148 (eval $ac_try) 2>&5
27149 ac_status=$?
27150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27151 (exit $ac_status); }; } &&
27152 { ac_try='test -s conftest.$ac_objext'
01cb68df
RG
27153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27154 (eval $ac_try) 2>&5
27155 ac_status=$?
27156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27157 (exit $ac_status); }; }; then
27158 ac_header_compiler=yes
27159else
27160 echo "$as_me: failed program was:" >&5
27161sed 's/^/| /' conftest.$ac_ext >&5
27162
27163ac_header_compiler=no
27164fi
ac1cb8d3 27165rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
01cb68df
RG
27166echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27167echo "${ECHO_T}$ac_header_compiler" >&6
27168
27169# Is the header present?
27170echo "$as_me:$LINENO: checking $ac_header presence" >&5
27171echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
27172cat >conftest.$ac_ext <<_ACEOF
27173/* confdefs.h. */
27174_ACEOF
27175cat confdefs.h >>conftest.$ac_ext
27176cat >>conftest.$ac_ext <<_ACEOF
27177/* end confdefs.h. */
27178#include <$ac_header>
27179_ACEOF
27180if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27181 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27182 ac_status=$?
27183 grep -v '^ *+' conftest.er1 >conftest.err
27184 rm -f conftest.er1
27185 cat conftest.err >&5
27186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27187 (exit $ac_status); } >/dev/null; then
27188 if test -s conftest.err; then
27189 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 27190 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
01cb68df
RG
27191 else
27192 ac_cpp_err=
27193 fi
27194else
27195 ac_cpp_err=yes
27196fi
27197if test -z "$ac_cpp_err"; then
27198 ac_header_preproc=yes
27199else
27200 echo "$as_me: failed program was:" >&5
27201sed 's/^/| /' conftest.$ac_ext >&5
27202
27203 ac_header_preproc=no
27204fi
27205rm -f conftest.err conftest.$ac_ext
27206echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27207echo "${ECHO_T}$ac_header_preproc" >&6
27208
27209# So? What about this header?
ac1cb8d3
VS
27210case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27211 yes:no: )
01cb68df
RG
27212 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27213echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
27214 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27215echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27216 ac_header_preproc=yes
01cb68df 27217 ;;
ac1cb8d3 27218 no:yes:* )
01cb68df
RG
27219 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27220echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
27221 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
27222echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
27223 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27224echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27225 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
27226echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
01cb68df
RG
27227 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27228echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
27229 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27230echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
01cb68df
RG
27231 (
27232 cat <<\_ASBOX
ac1cb8d3
VS
27233## ----------------------------------------- ##
27234## Report this to wx-dev@lists.wxwidgets.org ##
27235## ----------------------------------------- ##
01cb68df
RG
27236_ASBOX
27237 ) |
27238 sed "s/^/$as_me: WARNING: /" >&2
27239 ;;
27240esac
27241echo "$as_me:$LINENO: checking for $ac_header" >&5
27242echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27243if eval "test \"\${$as_ac_Header+set}\" = set"; then
27244 echo $ECHO_N "(cached) $ECHO_C" >&6
27245else
ac1cb8d3 27246 eval "$as_ac_Header=\$ac_header_preproc"
01cb68df
RG
27247fi
27248echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27249echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27250
27251fi
27252if test `eval echo '${'$as_ac_Header'}'` = yes; then
27253 cat >>confdefs.h <<_ACEOF
27254#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27255_ACEOF
27256
27257else
27258
27259 wxUSE_DISPLAY="no"
dcc1b6ad
VS
27260 { echo "$as_me:$LINENO: WARNING: ddraw.h or multimon.h not found; disabling wxDisplay" >&5
27261echo "$as_me: WARNING: ddraw.h or multimon.h not found; disabling wxDisplay" >&2;}
01cb68df
RG
27262
27263fi
27264
27265done
27266
a848cd7e
SC
27267 fi
27268fi
27269
27270
3b57de8b
RL
27271if test "$wxUSE_MEDIACTRL" = "yes"; then
27272 if test "$wxUSE_MSW" = 1; then
27273 wxUSE_DIRECTSHOW="yes"
27274
27275for ac_header in dshow.h
27276do
27277as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27278if eval "test \"\${$as_ac_Header+set}\" = set"; then
27279 echo "$as_me:$LINENO: checking for $ac_header" >&5
27280echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27281if eval "test \"\${$as_ac_Header+set}\" = set"; then
27282 echo $ECHO_N "(cached) $ECHO_C" >&6
27283fi
27284echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27285echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27286else
27287 # Is the header compilable?
27288echo "$as_me:$LINENO: checking $ac_header usability" >&5
27289echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
27290cat >conftest.$ac_ext <<_ACEOF
27291/* confdefs.h. */
27292_ACEOF
27293cat confdefs.h >>conftest.$ac_ext
27294cat >>conftest.$ac_ext <<_ACEOF
27295/* end confdefs.h. */
27296$ac_includes_default
27297#include <$ac_header>
27298_ACEOF
27299rm -f conftest.$ac_objext
27300if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27301 (eval $ac_compile) 2>conftest.er1
27302 ac_status=$?
27303 grep -v '^ *+' conftest.er1 >conftest.err
27304 rm -f conftest.er1
27305 cat conftest.err >&5
27306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27307 (exit $ac_status); } &&
27308 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27310 (eval $ac_try) 2>&5
27311 ac_status=$?
27312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27313 (exit $ac_status); }; } &&
27314 { ac_try='test -s conftest.$ac_objext'
27315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27316 (eval $ac_try) 2>&5
27317 ac_status=$?
27318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27319 (exit $ac_status); }; }; then
27320 ac_header_compiler=yes
27321else
27322 echo "$as_me: failed program was:" >&5
27323sed 's/^/| /' conftest.$ac_ext >&5
27324
27325ac_header_compiler=no
27326fi
27327rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27328echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27329echo "${ECHO_T}$ac_header_compiler" >&6
27330
27331# Is the header present?
27332echo "$as_me:$LINENO: checking $ac_header presence" >&5
27333echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
27334cat >conftest.$ac_ext <<_ACEOF
27335/* confdefs.h. */
27336_ACEOF
27337cat confdefs.h >>conftest.$ac_ext
27338cat >>conftest.$ac_ext <<_ACEOF
27339/* end confdefs.h. */
27340#include <$ac_header>
27341_ACEOF
27342if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27343 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27344 ac_status=$?
27345 grep -v '^ *+' conftest.er1 >conftest.err
27346 rm -f conftest.er1
27347 cat conftest.err >&5
27348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27349 (exit $ac_status); } >/dev/null; then
27350 if test -s conftest.err; then
27351 ac_cpp_err=$ac_c_preproc_warn_flag
27352 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
27353 else
27354 ac_cpp_err=
27355 fi
27356else
27357 ac_cpp_err=yes
27358fi
27359if test -z "$ac_cpp_err"; then
27360 ac_header_preproc=yes
27361else
27362 echo "$as_me: failed program was:" >&5
27363sed 's/^/| /' conftest.$ac_ext >&5
27364
27365 ac_header_preproc=no
27366fi
27367rm -f conftest.err conftest.$ac_ext
27368echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27369echo "${ECHO_T}$ac_header_preproc" >&6
27370
27371# So? What about this header?
27372case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27373 yes:no: )
27374 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27375echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27376 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27377echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27378 ac_header_preproc=yes
27379 ;;
27380 no:yes:* )
27381 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27382echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27383 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
27384echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
27385 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27386echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27387 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
27388echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
27389 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27390echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27391 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27392echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27393 (
27394 cat <<\_ASBOX
27395## ----------------------------------------- ##
27396## Report this to wx-dev@lists.wxwidgets.org ##
27397## ----------------------------------------- ##
27398_ASBOX
27399 ) |
27400 sed "s/^/$as_me: WARNING: /" >&2
27401 ;;
27402esac
27403echo "$as_me:$LINENO: checking for $ac_header" >&5
27404echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27405if eval "test \"\${$as_ac_Header+set}\" = set"; then
27406 echo $ECHO_N "(cached) $ECHO_C" >&6
27407else
27408 eval "$as_ac_Header=\$ac_header_preproc"
27409fi
27410echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27411echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27412
27413fi
27414if test `eval echo '${'$as_ac_Header'}'` = yes; then
27415 cat >>confdefs.h <<_ACEOF
27416#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27417_ACEOF
27418
27419else
27420
27421 wxUSE_DIRECTSHOW="no"
27422 { echo "$as_me:$LINENO: WARNING: DirectShow not installed; consider installing the DirectX7 SDK or higher" >&5
27423echo "$as_me: WARNING: DirectShow not installed; consider installing the DirectX7 SDK or higher" >&2;}
27424
27425fi
27426
27427done
27428
27429
27430 if test "$wxUSE_DIRECTSHOW" = "yes"; then
27431 cat >>confdefs.h <<\_ACEOF
27432#define wxUSE_DIRECTSHOW 1
27433_ACEOF
27434
27435 LIBS="$LIBS -lstrmiids"
27436 if
27437 fi
27438fi
27439
27440
a848cd7e
SC
27441USE_OPENGL=0
27442if test "$wxUSE_OPENGL" = "yes"; then
27443 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = "1"; then
27444 OPENGL_LIBS="-framework OpenGL -framework AGL"
27445 elif test "$wxUSE_MSW" = 1; then
27446 OPENGL_LIBS="-lopengl32 -lglu32"
27447 else
27448
27449
27450ac_find_includes=
27451for ac_dir in $SEARCH_INCLUDE /usr/include;
27452 do
27453 if test -f "$ac_dir/GL/gl.h"; then
27454 ac_find_includes=$ac_dir
27455 break
27456 fi
27457 done
27458
27459 if test "$ac_find_includes" != "" ; then
27460 echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
27461echo "${ECHO_T}found in $ac_find_includes" >&6
27462
27463 if test "x$ac_find_includes" = "x/usr/include"; then
27464 ac_path_to_include=""
27465 else
27466 echo "$CPPFLAGS" | grep "\-I$ac_find_includes" > /dev/null
27467 result=$?
27468 if test $result = 0; then
27469 ac_path_to_include=""
27470 else
27471 ac_path_to_include=" -I$ac_find_includes"
27472 fi
27473 fi
27474
27475 CPPFLAGS="$CPPFLAGS$ac_path_to_include"
27476 fi
27477
27478 if test "${ac_cv_header_GL_gl_h+set}" = set; then
27479 echo "$as_me:$LINENO: checking for GL/gl.h" >&5
27480echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6
27481if test "${ac_cv_header_GL_gl_h+set}" = set; then
27482 echo $ECHO_N "(cached) $ECHO_C" >&6
27483fi
27484echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
27485echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6
27486else
27487 # Is the header compilable?
27488echo "$as_me:$LINENO: checking GL/gl.h usability" >&5
27489echo $ECHO_N "checking GL/gl.h usability... $ECHO_C" >&6
27490cat >conftest.$ac_ext <<_ACEOF
27491/* confdefs.h. */
27492_ACEOF
27493cat confdefs.h >>conftest.$ac_ext
27494cat >>conftest.$ac_ext <<_ACEOF
27495/* end confdefs.h. */
27496$ac_includes_default
27497#include <GL/gl.h>
27498_ACEOF
27499rm -f conftest.$ac_objext
27500if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 27501 (eval $ac_compile) 2>conftest.er1
a848cd7e 27502 ac_status=$?
ac1cb8d3
VS
27503 grep -v '^ *+' conftest.er1 >conftest.err
27504 rm -f conftest.er1
27505 cat conftest.err >&5
a848cd7e
SC
27506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27507 (exit $ac_status); } &&
17a7bf57 27508 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
27509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27510 (eval $ac_try) 2>&5
27511 ac_status=$?
27512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27513 (exit $ac_status); }; } &&
27514 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
27515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27516 (eval $ac_try) 2>&5
27517 ac_status=$?
27518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27519 (exit $ac_status); }; }; then
27520 ac_header_compiler=yes
27521else
27522 echo "$as_me: failed program was:" >&5
27523sed 's/^/| /' conftest.$ac_ext >&5
27524
27525ac_header_compiler=no
27526fi
ac1cb8d3 27527rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
27528echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27529echo "${ECHO_T}$ac_header_compiler" >&6
27530
27531# Is the header present?
27532echo "$as_me:$LINENO: checking GL/gl.h presence" >&5
27533echo $ECHO_N "checking GL/gl.h presence... $ECHO_C" >&6
27534cat >conftest.$ac_ext <<_ACEOF
27535/* confdefs.h. */
27536_ACEOF
27537cat confdefs.h >>conftest.$ac_ext
27538cat >>conftest.$ac_ext <<_ACEOF
27539/* end confdefs.h. */
27540#include <GL/gl.h>
27541_ACEOF
27542if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27543 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27544 ac_status=$?
27545 grep -v '^ *+' conftest.er1 >conftest.err
27546 rm -f conftest.er1
27547 cat conftest.err >&5
27548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27549 (exit $ac_status); } >/dev/null; then
27550 if test -s conftest.err; then
27551 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 27552 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
27553 else
27554 ac_cpp_err=
27555 fi
27556else
27557 ac_cpp_err=yes
27558fi
27559if test -z "$ac_cpp_err"; then
27560 ac_header_preproc=yes
27561else
27562 echo "$as_me: failed program was:" >&5
27563sed 's/^/| /' conftest.$ac_ext >&5
27564
27565 ac_header_preproc=no
27566fi
27567rm -f conftest.err conftest.$ac_ext
27568echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27569echo "${ECHO_T}$ac_header_preproc" >&6
27570
27571# So? What about this header?
ac1cb8d3
VS
27572case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27573 yes:no: )
a848cd7e
SC
27574 { echo "$as_me:$LINENO: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&5
27575echo "$as_me: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
27576 { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the compiler's result" >&5
27577echo "$as_me: WARNING: GL/gl.h: proceeding with the compiler's result" >&2;}
27578 ac_header_preproc=yes
a848cd7e 27579 ;;
ac1cb8d3 27580 no:yes:* )
a848cd7e
SC
27581 { echo "$as_me:$LINENO: WARNING: GL/gl.h: present but cannot be compiled" >&5
27582echo "$as_me: WARNING: GL/gl.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
27583 { echo "$as_me:$LINENO: WARNING: GL/gl.h: check for missing prerequisite headers?" >&5
27584echo "$as_me: WARNING: GL/gl.h: check for missing prerequisite headers?" >&2;}
27585 { echo "$as_me:$LINENO: WARNING: GL/gl.h: see the Autoconf documentation" >&5
27586echo "$as_me: WARNING: GL/gl.h: see the Autoconf documentation" >&2;}
27587 { echo "$as_me:$LINENO: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&5
27588echo "$as_me: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
27589 { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&5
27590echo "$as_me: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
27591 { echo "$as_me:$LINENO: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&5
27592echo "$as_me: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
27593 (
27594 cat <<\_ASBOX
ac1cb8d3
VS
27595## ----------------------------------------- ##
27596## Report this to wx-dev@lists.wxwidgets.org ##
27597## ----------------------------------------- ##
a848cd7e
SC
27598_ASBOX
27599 ) |
27600 sed "s/^/$as_me: WARNING: /" >&2
27601 ;;
27602esac
27603echo "$as_me:$LINENO: checking for GL/gl.h" >&5
27604echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6
27605if test "${ac_cv_header_GL_gl_h+set}" = set; then
27606 echo $ECHO_N "(cached) $ECHO_C" >&6
27607else
27608 ac_cv_header_GL_gl_h=$ac_header_preproc
27609fi
27610echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
27611echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6
27612
27613fi
27614if test $ac_cv_header_GL_gl_h = yes; then
27615
27616 found_gl=0
27617
27618 echo "$as_me:$LINENO: checking for -lGL" >&5
27619echo $ECHO_N "checking for -lGL... $ECHO_C" >&6
27620
27621ac_find_libraries=
27622for ac_dir in $SEARCH_LIB /usr/lib;
27623 do
27624 for ac_extension in a so sl dylib; do
27625 if test -f "$ac_dir/libGL.$ac_extension"; then
27626 ac_find_libraries=$ac_dir
27627 break 2
27628 fi
27629 done
27630 done
27631
27632 if test "$ac_find_libraries" != "" ; then
27633
27634 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
27635 result=$?
27636 if test $result = 0; then
27637 ac_path_to_link=""
27638 else
27639 ac_path_to_link=" -L$ac_find_libraries"
27640 fi
27641
27642 if test "$ac_path_to_link" != " -L/usr/lib" ; then
27643 LDFLAGS_GL="$ac_path_to_link"
27644 fi
27645
27646
27647ac_find_libraries=
27648for ac_dir in $SEARCH_LIB /usr/lib;
27649 do
27650 for ac_extension in a so sl dylib; do
27651 if test -f "$ac_dir/libGLU.$ac_extension"; then
27652 ac_find_libraries=$ac_dir
27653 break 2
27654 fi
27655 done
27656 done
27657
27658 if test "$ac_find_libraries" != "" ; then
27659
27660 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
27661 result=$?
27662 if test $result = 0; then
27663 ac_path_to_link=""
27664 else
27665 ac_path_to_link=" -L$ac_find_libraries"
27666 fi
27667
27668 if test "$ac_path_to_link" != " -L/usr/lib" -a \
27669 "$ac_path_to_link" != "$LDFLAGS_GL"; then
27670 LDFLAGS_GL="$LDFLAGS_GL$ac_path_to_link"
27671 fi
27672
27673 found_gl=1
27674 OPENGL_LIBS="-lGL -lGLU"
27675 echo "$as_me:$LINENO: result: yes" >&5
27676echo "${ECHO_T}yes" >&6
27677 fi
27678 fi
27679
27680 if test "$found_gl" != 1; then
27681 echo "$as_me:$LINENO: result: no" >&5
27682echo "${ECHO_T}no" >&6
27683 echo "$as_me:$LINENO: checking for -lMesaGL" >&5
27684echo $ECHO_N "checking for -lMesaGL... $ECHO_C" >&6
27685
27686ac_find_libraries=
27687for ac_dir in $SEARCH_LIB /usr/lib;
27688 do
27689 for ac_extension in a so sl dylib; do
27690 if test -f "$ac_dir/libMesaGL.$ac_extension"; then
27691 ac_find_libraries=$ac_dir
27692 break 2
27693 fi
27694 done
27695 done
27696
27697 if test "$ac_find_libraries" != "" ; then
27698
27699 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
27700 result=$?
27701 if test $result = 0; then
27702 ac_path_to_link=""
27703 else
27704 ac_path_to_link=" -L$ac_find_libraries"
27705 fi
27706
27707 LDFLAGS_GL="$LDFLAGS$ac_path_to_link"
27708 OPENGL_LIBS="-lMesaGL -lMesaGLU"
27709 echo "$as_me:$LINENO: result: yes" >&5
27710echo "${ECHO_T}yes" >&6
27711 else
27712 echo "$as_me:$LINENO: result: no" >&5
27713echo "${ECHO_T}no" >&6
27714 fi
27715 fi
27716
27717fi
27718
27719
27720
27721 if test "x$OPENGL_LIBS" = "x"; then
27722 { { echo "$as_me:$LINENO: error: OpenGL libraries not available" >&5
27723echo "$as_me: error: OpenGL libraries not available" >&2;}
27724 { (exit 1); exit 1; }; }
27725 fi
27726 fi
27727
27728 if test "$wxUSE_OPENGL" = "yes"; then
27729 USE_OPENGL=1
27730 cat >>confdefs.h <<\_ACEOF
27731#define wxUSE_OPENGL 1
27732_ACEOF
27733
27734 cat >>confdefs.h <<\_ACEOF
27735#define wxUSE_GLCANVAS 1
27736_ACEOF
27737
27738 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl opengl/cube opengl/penguin opengl/isosurf"
27739 fi
27740fi
27741
a848cd7e
SC
27742
27743if test -n "$TOOLKIT" ; then
27744 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WX${TOOLKIT}__"
27745fi
27746
a848cd7e
SC
27747
27748
27749if test "$wxUSE_SHARED" = "yes"; then
27750 case "${host}" in
27751 *-pc-msdosdjgpp )
27752 wxUSE_SHARED=no
27753 { echo "$as_me:$LINENO: WARNING: Host system doesn't support shared libraries, disabling" >&5
27754echo "$as_me: WARNING: Host system doesn't support shared libraries, disabling" >&2;}
27755 ;;
27756 esac
27757fi
27758
a848cd7e 27759if test "$wxUSE_SHARED" = "yes"; then
a848cd7e
SC
27760
27761
27762 found_versioning=no
27763
27764
27765 if test $found_versioning = no ; then
27766 echo "$as_me:$LINENO: checking if the linker accepts --version-script" >&5
27767echo $ECHO_N "checking if the linker accepts --version-script... $ECHO_C" >&6
27768if test "${wx_cv_version_script+set}" = set; then
27769 echo $ECHO_N "(cached) $ECHO_C" >&6
27770else
27771
27772 echo "VER_1 { *; };" >conftest.sym
27773 echo "int main() { return 0; }" >conftest.cpp
27774
27775 if { ac_try='
27776 $CXX -o conftest.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
27777 -Wl,--version-script,conftest.sym >/dev/null 2>conftest.stderr'
27778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27779 (eval $ac_try) 2>&5
27780 ac_status=$?
27781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27782 (exit $ac_status); }; } ; then
27783 if test -s conftest.stderr ; then
27784 wx_cv_version_script=no
27785 else
27786 wx_cv_version_script=yes
27787 fi
27788 else
27789 wx_cv_version_script=no
27790 fi
27791 rm -f conftest.output conftest.stderr conftest.sym conftest.cpp
27792
27793fi
27794echo "$as_me:$LINENO: result: $wx_cv_version_script" >&5
27795echo "${ECHO_T}$wx_cv_version_script" >&6
27796 if test $wx_cv_version_script = yes ; then
27797 LDFLAGS_VERSIONING="-Wl,--version-script,\$(top_builddir)version-script"
27798 fi
27799 fi
27800
27801
27802 case "${host}" in
27803 *-*-linux* | *-*-gnu* )
27804 SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib"
ffa0583f 27805 WXCONFIG_RPATH="-Wl,-rpath,\$libdir"
a848cd7e
SC
27806 ;;
27807
27808 *-*-solaris2* )
27809 if test "$GCC" = yes ; then
27810 CPPFLAGS="$CPPFLAGS -isystem /usr/openwin/include"
27811
27812 saveLdflags="$LDFLAGS"
27813 LDFLAGS="$saveLdflags -Wl,-rpath,/"
27814 echo "$as_me:$LINENO: checking if the linker accepts -rpath" >&5
27815echo $ECHO_N "checking if the linker accepts -rpath... $ECHO_C" >&6
27816 cat >conftest.$ac_ext <<_ACEOF
27817/* confdefs.h. */
27818_ACEOF
27819cat confdefs.h >>conftest.$ac_ext
27820cat >>conftest.$ac_ext <<_ACEOF
27821/* end confdefs.h. */
27822
27823int
27824main ()
27825{
27826
27827 ;
27828 return 0;
27829}
27830_ACEOF
27831rm -f conftest.$ac_objext conftest$ac_exeext
27832if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27833 (eval $ac_link) 2>conftest.er1
a848cd7e 27834 ac_status=$?
ac1cb8d3
VS
27835 grep -v '^ *+' conftest.er1 >conftest.err
27836 rm -f conftest.er1
27837 cat conftest.err >&5
a848cd7e
SC
27838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27839 (exit $ac_status); } &&
17a7bf57 27840 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
27841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27842 (eval $ac_try) 2>&5
27843 ac_status=$?
27844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27845 (exit $ac_status); }; } &&
27846 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27848 (eval $ac_try) 2>&5
27849 ac_status=$?
27850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27851 (exit $ac_status); }; }; then
27852
27853 echo "$as_me:$LINENO: result: yes" >&5
27854echo "${ECHO_T}yes" >&6
27855 SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib"
ffa0583f 27856 WXCONFIG_RPATH="-Wl,-rpath,\$libdir"
a848cd7e
SC
27857
27858else
27859 echo "$as_me: failed program was:" >&5
27860sed 's/^/| /' conftest.$ac_ext >&5
27861
27862
27863 echo "$as_me:$LINENO: result: no" >&5
27864echo "${ECHO_T}no" >&6
27865 echo "$as_me:$LINENO: checking if the linker accepts -R" >&5
27866echo $ECHO_N "checking if the linker accepts -R... $ECHO_C" >&6
27867 LDFLAGS="$saveLdflags -Wl,-R,/"
27868 cat >conftest.$ac_ext <<_ACEOF
27869/* confdefs.h. */
27870_ACEOF
27871cat confdefs.h >>conftest.$ac_ext
27872cat >>conftest.$ac_ext <<_ACEOF
27873/* end confdefs.h. */
27874
27875int
27876main ()
27877{
27878
27879 ;
27880 return 0;
27881}
27882_ACEOF
27883rm -f conftest.$ac_objext conftest$ac_exeext
27884if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27885 (eval $ac_link) 2>conftest.er1
a848cd7e 27886 ac_status=$?
ac1cb8d3
VS
27887 grep -v '^ *+' conftest.er1 >conftest.err
27888 rm -f conftest.er1
27889 cat conftest.err >&5
a848cd7e
SC
27890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27891 (exit $ac_status); } &&
17a7bf57 27892 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
27893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27894 (eval $ac_try) 2>&5
27895 ac_status=$?
27896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27897 (exit $ac_status); }; } &&
27898 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27900 (eval $ac_try) 2>&5
27901 ac_status=$?
27902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27903 (exit $ac_status); }; }; then
27904
ffa0583f 27905 echo "$as_me:$LINENO: result: yes" >&5
a848cd7e 27906echo "${ECHO_T}yes" >&6
ffa0583f
RL
27907 SAMPLES_RPATH_FLAG="-Wl,-R,\$(top_builddir)lib"
27908 WXCONFIG_RPATH="-Wl,-R,\$libdir"
27909
a848cd7e
SC
27910else
27911 echo "$as_me: failed program was:" >&5
27912sed 's/^/| /' conftest.$ac_ext >&5
27913
27914
27915 echo "$as_me:$LINENO: result: no" >&5
27916echo "${ECHO_T}no" >&6
27917
27918fi
ac1cb8d3
VS
27919rm -f conftest.err conftest.$ac_objext \
27920 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27921
27922fi
ac1cb8d3
VS
27923rm -f conftest.err conftest.$ac_objext \
27924 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27925 LDFLAGS="$saveLdflags"
27926 else
a848cd7e 27927 SAMPLES_RPATH_FLAG="-R\$(top_builddir)lib"
ffa0583f 27928 WXCONFIG_RPATH="-R\$libdir"
a848cd7e
SC
27929 fi
27930 ;;
27931
27932 powerpc-*-darwin* )
27933 SAMPLES_RPATH_POSTLINK="\$(top_builddir)change-install-names \$(LIBDIRNAME) \$(prefix) \$@"
27934 cat <<EOF >change-install-names
27935#!/bin/sh
27936libnames=\`cd \${1} ; ls -1 | grep '\.[0-9][0-9]*\.dylib\$'\`
27937inst_cmd="install_name_tool "
27938for i in \${libnames} ; do
27939 inst_cmd="\${inst_cmd} -change \${2}/lib/\${i} \${1}/\${i}"
27940done
27941\${inst_cmd} \${3}
27942EOF
27943 chmod +x change-install-names
27944 ;;
27945
27946 *-*-cygwin* | *-*-mingw32* )
27947 TOOLCHAIN_DLL_DEFS="${TOOLCHAIN_DLL_DEFS} -DWXUSINGDLL=1"
27948 ;;
27949
27950 esac
ceec2216 27951
ffa0583f
RL
27952 if test $wxUSE_RPATH = "no"; then
27953 SAMPLES_RPATH_FLAG=''
27954 SAMPLES_RPATH_POSTLINK=''
27955 WXCONFIG_RPATH=''
27956 fi
27957
27958 SHARED=1
27959
27960else
27961
ceec2216
RL
27962 config_linkage_component="-static"
27963 SHARED=0
ffa0583f 27964
ceec2216 27965fi
a848cd7e 27966
a848cd7e 27967
ceec2216
RL
27968UNICODE=0
27969lib_unicode_suffix=
27970WX_CHARTYPE="ansi"
27971if test "$wxUSE_UNICODE" = "yes"; then
27972 lib_unicode_suffix=u
27973 WX_CHARTYPE="unicode"
27974 UNICODE=1
a848cd7e
SC
27975fi
27976
ceec2216
RL
27977lib_debug_suffix=
27978WX_DEBUGTYPE="release"
27979DEBUG_FLAG=0
27980if test "$wxUSE_DEBUG_FLAG" = "yes"; then
27981 lib_debug_suffix=d
27982 WX_DEBUGTYPE="debug"
27983 DEBUG_FLAG=1
27984fi
a848cd7e 27985
ceec2216
RL
27986WX_FLAVOUR=${WX_FLAVOUR:+-$WX_FLAVOUR}
27987WX_LIB_FLAVOUR=`echo $WX_FLAVOUR | tr '-' '_'`
a848cd7e 27988
ceec2216
RL
27989DEBUG_INFO=0
27990if test "$wxUSE_DEBUG_INFO" = "yes"; then
27991 DEBUG_INFO=1
27992fi
a848cd7e 27993
ceec2216 27994WX_VERSION_TAG=`echo WX${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}_${WX_RELEASE} | tr "[a-z]" "[A-Z]"`
a848cd7e 27995
ceec2216 27996TOOLCHAIN_NAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}-${WX_RELEASE}"
a848cd7e 27997
ceec2216 27998TOOLCHAIN_FULLNAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}-${WX_CHARTYPE}-${WX_DEBUGTYPE}${config_linkage_component}-${WX_RELEASE}${WX_FLAVOUR}"
a848cd7e 27999
ceec2216
RL
28000if test "$cross_compiling" = "yes"; then
28001 HOST_SUFFIX="-$host_alias"
28002 TOOLCHAIN_NAME="$TOOLCHAIN_NAME$HOST_SUFFIX"
28003 TOOLCHAIN_FULLNAME="${host_alias}-$TOOLCHAIN_FULLNAME"
a848cd7e
SC
28004fi
28005
dd21ced8 28006WX_LIBRARY_BASENAME_NOGUI="wx_base${WXBASEPORT}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}"
ceec2216
RL
28007WX_LIBRARY_BASENAME_GUI="wx_${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}"
28008
28009
28010
a848cd7e 28011if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1; then
abb9aae7
VZ
28012 WX_RESOURCES_MACOSX_ASCII="libwx_${TOOLCHAIN_NAME}.${wx_release_number}.r"
28013 WX_RESOURCES_MACOSX_DATA="libwx_${TOOLCHAIN_NAME}.${wx_release_number}.rsrc"
ceec2216 28014
a848cd7e 28015 LIBWXMACRES="\$(top_builddir)lib/${WX_RESOURCES_MACOSX_ASCII}"
a848cd7e
SC
28016
28017 # Extract the first word of "Rez", so it can be a program name with args.
28018set dummy Rez; ac_word=$2
28019echo "$as_me:$LINENO: checking for $ac_word" >&5
28020echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
28021if test "${ac_cv_prog_RESCOMP+set}" = set; then
28022 echo $ECHO_N "(cached) $ECHO_C" >&6
28023else
28024 if test -n "$RESCOMP"; then
28025 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
28026else
28027as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28028for as_dir in $PATH
28029do
28030 IFS=$as_save_IFS
28031 test -z "$as_dir" && as_dir=.
28032 for ac_exec_ext in '' $ac_executable_extensions; do
28033 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
28034 ac_cv_prog_RESCOMP="Rez"
28035 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28036 break 2
28037 fi
28038done
28039done
28040
28041 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez"
28042fi
28043fi
28044RESCOMP=$ac_cv_prog_RESCOMP
28045if test -n "$RESCOMP"; then
28046 echo "$as_me:$LINENO: result: $RESCOMP" >&5
28047echo "${ECHO_T}$RESCOMP" >&6
28048else
28049 echo "$as_me:$LINENO: result: no" >&5
28050echo "${ECHO_T}no" >&6
28051fi
28052
28053 # Extract the first word of "DeRez", so it can be a program name with args.
28054set dummy DeRez; ac_word=$2
28055echo "$as_me:$LINENO: checking for $ac_word" >&5
28056echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
28057if test "${ac_cv_prog_DEREZ+set}" = set; then
28058 echo $ECHO_N "(cached) $ECHO_C" >&6
28059else
28060 if test -n "$DEREZ"; then
28061 ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test.
28062else
28063as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28064for as_dir in $PATH
28065do
28066 IFS=$as_save_IFS
28067 test -z "$as_dir" && as_dir=.
28068 for ac_exec_ext in '' $ac_executable_extensions; do
28069 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
28070 ac_cv_prog_DEREZ="DeRez"
28071 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28072 break 2
28073 fi
28074done
28075done
28076
28077 test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez"
28078fi
28079fi
28080DEREZ=$ac_cv_prog_DEREZ
28081if test -n "$DEREZ"; then
28082 echo "$as_me:$LINENO: result: $DEREZ" >&5
28083echo "${ECHO_T}$DEREZ" >&6
28084else
28085 echo "$as_me:$LINENO: result: no" >&5
28086echo "${ECHO_T}no" >&6
28087fi
28088
28089 # Extract the first word of "SetFile", so it can be a program name with args.
28090set dummy SetFile; ac_word=$2
28091echo "$as_me:$LINENO: checking for $ac_word" >&5
28092echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
28093if test "${ac_cv_prog_SETFILE+set}" = set; then
28094 echo $ECHO_N "(cached) $ECHO_C" >&6
28095else
28096 if test -n "$SETFILE"; then
28097 ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
28098else
28099as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28100for as_dir in $PATH
28101do
28102 IFS=$as_save_IFS
28103 test -z "$as_dir" && as_dir=.
28104 for ac_exec_ext in '' $ac_executable_extensions; do
28105 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
28106 ac_cv_prog_SETFILE="SetFile"
28107 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28108 break 2
28109 fi
28110done
28111done
28112
28113 test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
28114fi
28115fi
28116SETFILE=$ac_cv_prog_SETFILE
28117if test -n "$SETFILE"; then
28118 echo "$as_me:$LINENO: result: $SETFILE" >&5
28119echo "${ECHO_T}$SETFILE" >&6
28120else
28121 echo "$as_me:$LINENO: result: no" >&5
28122echo "${ECHO_T}no" >&6
28123fi
28124
28125
28126 MACSETFILE="\$(SETFILE)"
28127
28128 if test "$wxUSE_MAC" = 1; then
28129 MACRESCOMP="\$(RESCOMP) -d __DARWIN__ -t APPL Carbon.r ${LIBWXMACRES} -o"
28130
28131 MACRESWXCONFIG="${RESCOMP} -d __DARWIN__ -t APPL Carbon.r \\\${exec_prefix}/lib/${WX_RESOURCES_MACOSX_ASCII} -o"
28132 else
28133 MACRESCOMP="echo -n | \$(RESCOMP) -d __DARWIN__ -t APPL ${LIBWXMACRES} -o"
28134 MACRESWXCONFIG="echo -n \\\| ${RESCOMP} -d __DARWIN__ -t APPL \\\${exec_prefix}/lib/${WX_RESOURCES_MACOSX_ASCII} -o"
28135 fi
28136else
ffa0583f
RL
28137 MACSETFILE="@true"
28138 MACRESWXCONFIG="@true"
a848cd7e
SC
28139
28140 if test "$wxUSE_PM" = 1; then
28141 MACRESCOMP="emxbind -ep"
28142 else
ffa0583f 28143 MACRESCOMP="@true"
a848cd7e
SC
28144 fi
28145fi
28146
28147
28148
28149echo "$as_me:$LINENO: checking for mode_t" >&5
28150echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
28151if test "${ac_cv_type_mode_t+set}" = set; then
28152 echo $ECHO_N "(cached) $ECHO_C" >&6
28153else
28154 cat >conftest.$ac_ext <<_ACEOF
28155/* confdefs.h. */
28156_ACEOF
28157cat confdefs.h >>conftest.$ac_ext
28158cat >>conftest.$ac_ext <<_ACEOF
28159/* end confdefs.h. */
28160$ac_includes_default
28161int
28162main ()
28163{
28164if ((mode_t *) 0)
28165 return 0;
28166if (sizeof (mode_t))
28167 return 0;
28168 ;
28169 return 0;
28170}
28171_ACEOF
28172rm -f conftest.$ac_objext
28173if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 28174 (eval $ac_compile) 2>conftest.er1
a848cd7e 28175 ac_status=$?
ac1cb8d3
VS
28176 grep -v '^ *+' conftest.er1 >conftest.err
28177 rm -f conftest.er1
28178 cat conftest.err >&5
a848cd7e
SC
28179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28180 (exit $ac_status); } &&
17a7bf57 28181 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28183 (eval $ac_try) 2>&5
28184 ac_status=$?
28185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28186 (exit $ac_status); }; } &&
28187 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
28188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28189 (eval $ac_try) 2>&5
28190 ac_status=$?
28191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28192 (exit $ac_status); }; }; then
28193 ac_cv_type_mode_t=yes
28194else
28195 echo "$as_me: failed program was:" >&5
28196sed 's/^/| /' conftest.$ac_ext >&5
28197
28198ac_cv_type_mode_t=no
28199fi
ac1cb8d3 28200rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
28201fi
28202echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
28203echo "${ECHO_T}$ac_cv_type_mode_t" >&6
28204if test $ac_cv_type_mode_t = yes; then
28205 :
28206else
28207
28208cat >>confdefs.h <<_ACEOF
28209#define mode_t int
28210_ACEOF
28211
28212fi
28213
28214echo "$as_me:$LINENO: checking for off_t" >&5
28215echo $ECHO_N "checking for off_t... $ECHO_C" >&6
28216if test "${ac_cv_type_off_t+set}" = set; then
28217 echo $ECHO_N "(cached) $ECHO_C" >&6
28218else
28219 cat >conftest.$ac_ext <<_ACEOF
28220/* confdefs.h. */
28221_ACEOF
28222cat confdefs.h >>conftest.$ac_ext
28223cat >>conftest.$ac_ext <<_ACEOF
28224/* end confdefs.h. */
28225$ac_includes_default
28226int
28227main ()
28228{
28229if ((off_t *) 0)
28230 return 0;
28231if (sizeof (off_t))
28232 return 0;
28233 ;
28234 return 0;
28235}
28236_ACEOF
28237rm -f conftest.$ac_objext
28238if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 28239 (eval $ac_compile) 2>conftest.er1
a848cd7e 28240 ac_status=$?
ac1cb8d3
VS
28241 grep -v '^ *+' conftest.er1 >conftest.err
28242 rm -f conftest.er1
28243 cat conftest.err >&5
a848cd7e
SC
28244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28245 (exit $ac_status); } &&
17a7bf57 28246 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28248 (eval $ac_try) 2>&5
28249 ac_status=$?
28250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28251 (exit $ac_status); }; } &&
28252 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
28253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28254 (eval $ac_try) 2>&5
28255 ac_status=$?
28256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28257 (exit $ac_status); }; }; then
28258 ac_cv_type_off_t=yes
28259else
28260 echo "$as_me: failed program was:" >&5
28261sed 's/^/| /' conftest.$ac_ext >&5
28262
28263ac_cv_type_off_t=no
28264fi
ac1cb8d3 28265rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
28266fi
28267echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
28268echo "${ECHO_T}$ac_cv_type_off_t" >&6
28269if test $ac_cv_type_off_t = yes; then
28270 :
28271else
28272
28273cat >>confdefs.h <<_ACEOF
28274#define off_t long
28275_ACEOF
28276
28277fi
28278
28279echo "$as_me:$LINENO: checking for pid_t" >&5
28280echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
28281if test "${ac_cv_type_pid_t+set}" = set; then
28282 echo $ECHO_N "(cached) $ECHO_C" >&6
28283else
28284 cat >conftest.$ac_ext <<_ACEOF
28285/* confdefs.h. */
28286_ACEOF
28287cat confdefs.h >>conftest.$ac_ext
28288cat >>conftest.$ac_ext <<_ACEOF
28289/* end confdefs.h. */
28290$ac_includes_default
28291int
28292main ()
28293{
28294if ((pid_t *) 0)
28295 return 0;
28296if (sizeof (pid_t))
28297 return 0;
28298 ;
28299 return 0;
28300}
28301_ACEOF
28302rm -f conftest.$ac_objext
28303if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 28304 (eval $ac_compile) 2>conftest.er1
a848cd7e 28305 ac_status=$?
ac1cb8d3
VS
28306 grep -v '^ *+' conftest.er1 >conftest.err
28307 rm -f conftest.er1
28308 cat conftest.err >&5
a848cd7e
SC
28309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28310 (exit $ac_status); } &&
17a7bf57 28311 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28313 (eval $ac_try) 2>&5
28314 ac_status=$?
28315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28316 (exit $ac_status); }; } &&
28317 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
28318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28319 (eval $ac_try) 2>&5
28320 ac_status=$?
28321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28322 (exit $ac_status); }; }; then
28323 ac_cv_type_pid_t=yes
28324else
28325 echo "$as_me: failed program was:" >&5
28326sed 's/^/| /' conftest.$ac_ext >&5
28327
28328ac_cv_type_pid_t=no
28329fi
ac1cb8d3 28330rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
28331fi
28332echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
28333echo "${ECHO_T}$ac_cv_type_pid_t" >&6
28334if test $ac_cv_type_pid_t = yes; then
28335 :
28336else
28337
28338cat >>confdefs.h <<_ACEOF
28339#define pid_t int
28340_ACEOF
28341
28342fi
28343
28344echo "$as_me:$LINENO: checking for size_t" >&5
28345echo $ECHO_N "checking for size_t... $ECHO_C" >&6
28346if test "${ac_cv_type_size_t+set}" = set; then
28347 echo $ECHO_N "(cached) $ECHO_C" >&6
28348else
28349 cat >conftest.$ac_ext <<_ACEOF
28350/* confdefs.h. */
28351_ACEOF
28352cat confdefs.h >>conftest.$ac_ext
28353cat >>conftest.$ac_ext <<_ACEOF
28354/* end confdefs.h. */
28355$ac_includes_default
28356int
28357main ()
28358{
28359if ((size_t *) 0)
28360 return 0;
28361if (sizeof (size_t))
28362 return 0;
28363 ;
28364 return 0;
28365}
28366_ACEOF
28367rm -f conftest.$ac_objext
28368if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 28369 (eval $ac_compile) 2>conftest.er1
a848cd7e 28370 ac_status=$?
ac1cb8d3
VS
28371 grep -v '^ *+' conftest.er1 >conftest.err
28372 rm -f conftest.er1
28373 cat conftest.err >&5
a848cd7e
SC
28374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28375 (exit $ac_status); } &&
17a7bf57 28376 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28378 (eval $ac_try) 2>&5
28379 ac_status=$?
28380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28381 (exit $ac_status); }; } &&
28382 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
28383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28384 (eval $ac_try) 2>&5
28385 ac_status=$?
28386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28387 (exit $ac_status); }; }; then
28388 ac_cv_type_size_t=yes
28389else
28390 echo "$as_me: failed program was:" >&5
28391sed 's/^/| /' conftest.$ac_ext >&5
28392
28393ac_cv_type_size_t=no
28394fi
ac1cb8d3 28395rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
28396fi
28397echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
28398echo "${ECHO_T}$ac_cv_type_size_t" >&6
28399if test $ac_cv_type_size_t = yes; then
28400 :
28401else
28402
28403cat >>confdefs.h <<_ACEOF
28404#define size_t unsigned
28405_ACEOF
28406
28407fi
28408
28409echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
28410echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
28411if test "${ac_cv_type_uid_t+set}" = set; then
28412 echo $ECHO_N "(cached) $ECHO_C" >&6
28413else
28414 cat >conftest.$ac_ext <<_ACEOF
28415/* confdefs.h. */
28416_ACEOF
28417cat confdefs.h >>conftest.$ac_ext
28418cat >>conftest.$ac_ext <<_ACEOF
28419/* end confdefs.h. */
28420#include <sys/types.h>
28421
28422_ACEOF
28423if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28424 $EGREP "uid_t" >/dev/null 2>&1; then
28425 ac_cv_type_uid_t=yes
28426else
28427 ac_cv_type_uid_t=no
28428fi
28429rm -f conftest*
28430
28431fi
28432echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
28433echo "${ECHO_T}$ac_cv_type_uid_t" >&6
28434if test $ac_cv_type_uid_t = no; then
28435
28436cat >>confdefs.h <<\_ACEOF
28437#define uid_t int
28438_ACEOF
28439
28440
28441cat >>confdefs.h <<\_ACEOF
28442#define gid_t int
28443_ACEOF
28444
28445fi
28446
28447
28448
28449
28450ac_ext=cc
28451ac_cpp='$CXXCPP $CPPFLAGS'
28452ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28453ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28454ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28455
28456echo "$as_me:$LINENO: checking if size_t is unsigned int" >&5
28457echo $ECHO_N "checking if size_t is unsigned int... $ECHO_C" >&6
28458if test "${wx_cv_size_t_is_uint+set}" = set; then
28459 echo $ECHO_N "(cached) $ECHO_C" >&6
28460else
28461
28462 cat >conftest.$ac_ext <<_ACEOF
28463/* confdefs.h. */
28464_ACEOF
28465cat confdefs.h >>conftest.$ac_ext
28466cat >>conftest.$ac_ext <<_ACEOF
28467/* end confdefs.h. */
28468#include <stddef.h>
28469int
28470main ()
28471{
28472
28473 return 0; }
28474
28475 struct Foo { void foo(size_t); void foo(unsigned int); };
28476
28477 int bar() {
28478
28479 ;
28480 return 0;
28481}
28482_ACEOF
28483rm -f conftest.$ac_objext
28484if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 28485 (eval $ac_compile) 2>conftest.er1
a848cd7e 28486 ac_status=$?
ac1cb8d3
VS
28487 grep -v '^ *+' conftest.er1 >conftest.err
28488 rm -f conftest.er1
28489 cat conftest.err >&5
a848cd7e
SC
28490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28491 (exit $ac_status); } &&
17a7bf57 28492 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28494 (eval $ac_try) 2>&5
28495 ac_status=$?
28496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28497 (exit $ac_status); }; } &&
28498 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
28499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28500 (eval $ac_try) 2>&5
28501 ac_status=$?
28502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28503 (exit $ac_status); }; }; then
28504 wx_cv_size_t_is_uint=no
28505else
28506 echo "$as_me: failed program was:" >&5
28507sed 's/^/| /' conftest.$ac_ext >&5
28508
28509wx_cv_size_t_is_uint=yes
28510
28511fi
ac1cb8d3 28512rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
28513
28514
28515fi
28516echo "$as_me:$LINENO: result: $wx_cv_size_t_is_uint" >&5
28517echo "${ECHO_T}$wx_cv_size_t_is_uint" >&6
28518
28519if test "$wx_cv_size_t_is_uint" = "yes"; then
28520 cat >>confdefs.h <<\_ACEOF
28521#define wxSIZE_T_IS_UINT 1
28522_ACEOF
28523
28524else
28525 echo "$as_me:$LINENO: checking if size_t is unsigned long" >&5
28526echo $ECHO_N "checking if size_t is unsigned long... $ECHO_C" >&6
28527if test "${wx_cv_size_t_is_ulong+set}" = set; then
28528 echo $ECHO_N "(cached) $ECHO_C" >&6
28529else
28530 cat >conftest.$ac_ext <<_ACEOF
28531/* confdefs.h. */
28532_ACEOF
28533cat confdefs.h >>conftest.$ac_ext
28534cat >>conftest.$ac_ext <<_ACEOF
28535/* end confdefs.h. */
28536#include <stddef.h>
28537int
28538main ()
28539{
28540
28541 return 0; }
28542
28543 struct Foo { void foo(size_t); void foo(unsigned long); };
28544
28545 int bar() {
28546
28547 ;
28548 return 0;
28549}
28550_ACEOF
28551rm -f conftest.$ac_objext
28552if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 28553 (eval $ac_compile) 2>conftest.er1
a848cd7e 28554 ac_status=$?
ac1cb8d3
VS
28555 grep -v '^ *+' conftest.er1 >conftest.err
28556 rm -f conftest.er1
28557 cat conftest.err >&5
a848cd7e
SC
28558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28559 (exit $ac_status); } &&
17a7bf57 28560 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28562 (eval $ac_try) 2>&5
28563 ac_status=$?
28564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28565 (exit $ac_status); }; } &&
28566 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
28567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28568 (eval $ac_try) 2>&5
28569 ac_status=$?
28570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28571 (exit $ac_status); }; }; then
28572 wx_cv_size_t_is_ulong=no
28573else
28574 echo "$as_me: failed program was:" >&5
28575sed 's/^/| /' conftest.$ac_ext >&5
28576
28577wx_cv_size_t_is_ulong=yes
28578
28579fi
ac1cb8d3 28580rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
28581
28582fi
28583echo "$as_me:$LINENO: result: $wx_cv_size_t_is_ulong" >&5
28584echo "${ECHO_T}$wx_cv_size_t_is_ulong" >&6
28585
28586 if test "$wx_cv_size_t_is_ulong" = "yes"; then
28587 cat >>confdefs.h <<\_ACEOF
28588#define wxSIZE_T_IS_ULONG 1
28589_ACEOF
28590
28591 fi
28592fi
28593
28594ac_ext=c
28595ac_cpp='$CPP $CPPFLAGS'
28596ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28597ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28598ac_compiler_gnu=$ac_cv_c_compiler_gnu
28599
28600
28601
28602echo "$as_me:$LINENO: checking for pw_gecos in struct passwd" >&5
28603echo $ECHO_N "checking for pw_gecos in struct passwd... $ECHO_C" >&6
28604if test "${wx_cv_struct_pw_gecos+set}" = set; then
28605 echo $ECHO_N "(cached) $ECHO_C" >&6
28606else
28607
28608 cat >conftest.$ac_ext <<_ACEOF
28609/* confdefs.h. */
28610_ACEOF
28611cat confdefs.h >>conftest.$ac_ext
28612cat >>conftest.$ac_ext <<_ACEOF
28613/* end confdefs.h. */
28614#include <pwd.h>
28615int
28616main ()
28617{
28618
28619 char *p;
28620 struct passwd *pw;
28621 p = pw->pw_gecos;
28622
28623 ;
28624 return 0;
28625}
28626_ACEOF
28627rm -f conftest.$ac_objext
28628if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 28629 (eval $ac_compile) 2>conftest.er1
a848cd7e 28630 ac_status=$?
ac1cb8d3
VS
28631 grep -v '^ *+' conftest.er1 >conftest.err
28632 rm -f conftest.er1
28633 cat conftest.err >&5
a848cd7e
SC
28634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28635 (exit $ac_status); } &&
17a7bf57 28636 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28638 (eval $ac_try) 2>&5
28639 ac_status=$?
28640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28641 (exit $ac_status); }; } &&
28642 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
28643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28644 (eval $ac_try) 2>&5
28645 ac_status=$?
28646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28647 (exit $ac_status); }; }; then
28648
28649 wx_cv_struct_pw_gecos=yes
28650
28651else
28652 echo "$as_me: failed program was:" >&5
28653sed 's/^/| /' conftest.$ac_ext >&5
28654
28655
28656 wx_cv_struct_pw_gecos=no
28657
28658
28659fi
ac1cb8d3 28660rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
28661
28662
28663fi
28664echo "$as_me:$LINENO: result: $wx_cv_struct_pw_gecos" >&5
28665echo "${ECHO_T}$wx_cv_struct_pw_gecos" >&6
28666
28667if test "$wx_cv_struct_pw_gecos" = "yes"; then
28668 cat >>confdefs.h <<\_ACEOF
28669#define HAVE_PW_GECOS 1
28670_ACEOF
28671
28672fi
28673
28674
28675if test "$wx_cv_sizeof_wchar_t" != "0"; then
28676 cat >>confdefs.h <<\_ACEOF
28677#define wxUSE_WCHAR_T 1
28678_ACEOF
28679
28680
28681 WCSLEN_FOUND=0
28682 WCHAR_LINK=
28683
28684for ac_func in wcslen
28685do
28686as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28687echo "$as_me:$LINENO: checking for $ac_func" >&5
28688echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28689if eval "test \"\${$as_ac_var+set}\" = set"; then
28690 echo $ECHO_N "(cached) $ECHO_C" >&6
28691else
28692 cat >conftest.$ac_ext <<_ACEOF
28693/* confdefs.h. */
28694_ACEOF
28695cat confdefs.h >>conftest.$ac_ext
28696cat >>conftest.$ac_ext <<_ACEOF
28697/* end confdefs.h. */
ac1cb8d3
VS
28698/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28699 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28700#define $ac_func innocuous_$ac_func
28701
a848cd7e
SC
28702/* System header to define __stub macros and hopefully few prototypes,
28703 which can conflict with char $ac_func (); below.
28704 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28705 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 28706
a848cd7e
SC
28707#ifdef __STDC__
28708# include <limits.h>
28709#else
28710# include <assert.h>
28711#endif
ac1cb8d3
VS
28712
28713#undef $ac_func
28714
a848cd7e
SC
28715/* Override any gcc2 internal prototype to avoid an error. */
28716#ifdef __cplusplus
28717extern "C"
28718{
28719#endif
28720/* We use char because int might match the return type of a gcc2
28721 builtin and then its argument prototype would still apply. */
28722char $ac_func ();
28723/* The GNU C library defines this for functions which it implements
28724 to always fail with ENOSYS. Some functions are actually named
28725 something starting with __ and the normal name is an alias. */
28726#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28727choke me
28728#else
28729char (*f) () = $ac_func;
28730#endif
28731#ifdef __cplusplus
28732}
28733#endif
28734
28735int
28736main ()
28737{
28738return f != $ac_func;
28739 ;
28740 return 0;
28741}
28742_ACEOF
28743rm -f conftest.$ac_objext conftest$ac_exeext
28744if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28745 (eval $ac_link) 2>conftest.er1
a848cd7e 28746 ac_status=$?
ac1cb8d3
VS
28747 grep -v '^ *+' conftest.er1 >conftest.err
28748 rm -f conftest.er1
28749 cat conftest.err >&5
a848cd7e
SC
28750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28751 (exit $ac_status); } &&
17a7bf57 28752 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28754 (eval $ac_try) 2>&5
28755 ac_status=$?
28756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28757 (exit $ac_status); }; } &&
28758 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28760 (eval $ac_try) 2>&5
28761 ac_status=$?
28762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28763 (exit $ac_status); }; }; then
28764 eval "$as_ac_var=yes"
28765else
28766 echo "$as_me: failed program was:" >&5
28767sed 's/^/| /' conftest.$ac_ext >&5
28768
28769eval "$as_ac_var=no"
28770fi
ac1cb8d3
VS
28771rm -f conftest.err conftest.$ac_objext \
28772 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28773fi
28774echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28775echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28776if test `eval echo '${'$as_ac_var'}'` = yes; then
28777 cat >>confdefs.h <<_ACEOF
28778#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28779_ACEOF
28780 WCSLEN_FOUND=1
28781fi
28782done
28783
28784
28785 if test "$WCSLEN_FOUND" = 0; then
28786 if test "$TOOLKIT" = "MSW"; then
28787 echo "$as_me:$LINENO: checking for wcslen in -lmsvcrt" >&5
28788echo $ECHO_N "checking for wcslen in -lmsvcrt... $ECHO_C" >&6
28789if test "${ac_cv_lib_msvcrt_wcslen+set}" = set; then
28790 echo $ECHO_N "(cached) $ECHO_C" >&6
28791else
28792 ac_check_lib_save_LIBS=$LIBS
28793LIBS="-lmsvcrt $LIBS"
28794cat >conftest.$ac_ext <<_ACEOF
28795/* confdefs.h. */
28796_ACEOF
28797cat confdefs.h >>conftest.$ac_ext
28798cat >>conftest.$ac_ext <<_ACEOF
28799/* end confdefs.h. */
28800
28801/* Override any gcc2 internal prototype to avoid an error. */
28802#ifdef __cplusplus
28803extern "C"
28804#endif
28805/* We use char because int might match the return type of a gcc2
28806 builtin and then its argument prototype would still apply. */
28807char wcslen ();
28808int
28809main ()
28810{
28811wcslen ();
28812 ;
28813 return 0;
28814}
28815_ACEOF
28816rm -f conftest.$ac_objext conftest$ac_exeext
28817if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28818 (eval $ac_link) 2>conftest.er1
a848cd7e 28819 ac_status=$?
ac1cb8d3
VS
28820 grep -v '^ *+' conftest.er1 >conftest.err
28821 rm -f conftest.er1
28822 cat conftest.err >&5
a848cd7e
SC
28823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28824 (exit $ac_status); } &&
17a7bf57 28825 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28827 (eval $ac_try) 2>&5
28828 ac_status=$?
28829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28830 (exit $ac_status); }; } &&
28831 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28833 (eval $ac_try) 2>&5
28834 ac_status=$?
28835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28836 (exit $ac_status); }; }; then
28837 ac_cv_lib_msvcrt_wcslen=yes
28838else
28839 echo "$as_me: failed program was:" >&5
28840sed 's/^/| /' conftest.$ac_ext >&5
28841
28842ac_cv_lib_msvcrt_wcslen=no
28843fi
ac1cb8d3
VS
28844rm -f conftest.err conftest.$ac_objext \
28845 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28846LIBS=$ac_check_lib_save_LIBS
28847fi
28848echo "$as_me:$LINENO: result: $ac_cv_lib_msvcrt_wcslen" >&5
28849echo "${ECHO_T}$ac_cv_lib_msvcrt_wcslen" >&6
28850if test $ac_cv_lib_msvcrt_wcslen = yes; then
28851 WCHAR_OK=1
28852fi
28853
28854 else
28855 echo "$as_me:$LINENO: checking for wcslen in -lw" >&5
28856echo $ECHO_N "checking for wcslen in -lw... $ECHO_C" >&6
28857if test "${ac_cv_lib_w_wcslen+set}" = set; then
28858 echo $ECHO_N "(cached) $ECHO_C" >&6
28859else
28860 ac_check_lib_save_LIBS=$LIBS
28861LIBS="-lw $LIBS"
28862cat >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
28869/* Override any gcc2 internal prototype to avoid an error. */
28870#ifdef __cplusplus
28871extern "C"
28872#endif
28873/* We use char because int might match the return type of a gcc2
28874 builtin and then its argument prototype would still apply. */
28875char wcslen ();
28876int
28877main ()
28878{
28879wcslen ();
28880 ;
28881 return 0;
28882}
28883_ACEOF
28884rm -f conftest.$ac_objext conftest$ac_exeext
28885if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28886 (eval $ac_link) 2>conftest.er1
a848cd7e 28887 ac_status=$?
ac1cb8d3
VS
28888 grep -v '^ *+' conftest.er1 >conftest.err
28889 rm -f conftest.er1
28890 cat conftest.err >&5
a848cd7e
SC
28891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28892 (exit $ac_status); } &&
17a7bf57 28893 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
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); }; } &&
28899 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28901 (eval $ac_try) 2>&5
28902 ac_status=$?
28903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28904 (exit $ac_status); }; }; then
28905 ac_cv_lib_w_wcslen=yes
28906else
28907 echo "$as_me: failed program was:" >&5
28908sed 's/^/| /' conftest.$ac_ext >&5
28909
28910ac_cv_lib_w_wcslen=no
28911fi
ac1cb8d3
VS
28912rm -f conftest.err conftest.$ac_objext \
28913 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28914LIBS=$ac_check_lib_save_LIBS
28915fi
28916echo "$as_me:$LINENO: result: $ac_cv_lib_w_wcslen" >&5
28917echo "${ECHO_T}$ac_cv_lib_w_wcslen" >&6
28918if test $ac_cv_lib_w_wcslen = yes; then
28919
28920 WCHAR_LINK=" -lw"
28921 WCSLEN_FOUND=1
28922
28923fi
28924
28925 fi
28926 fi
28927
28928 if test "$WCSLEN_FOUND" = 1; then
28929 cat >>confdefs.h <<\_ACEOF
28930#define HAVE_WCSLEN 1
28931_ACEOF
28932
28933 fi
28934
473276a9
VS
28935 if test "$USE_HPUX" = 1 -a "x$GCC" != "xyes"; then
28936 CPPFLAGS="$CPPFLAGS -D_INCLUDE__STDC_A1_SOURCE "
28937 fi
28938
a848cd7e
SC
28939
28940for ac_func in wcsrtombs
28941do
28942as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28943echo "$as_me:$LINENO: checking for $ac_func" >&5
28944echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28945if eval "test \"\${$as_ac_var+set}\" = set"; then
28946 echo $ECHO_N "(cached) $ECHO_C" >&6
28947else
28948 cat >conftest.$ac_ext <<_ACEOF
28949/* confdefs.h. */
28950_ACEOF
28951cat confdefs.h >>conftest.$ac_ext
28952cat >>conftest.$ac_ext <<_ACEOF
28953/* end confdefs.h. */
ac1cb8d3
VS
28954/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28955 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28956#define $ac_func innocuous_$ac_func
28957
a848cd7e
SC
28958/* System header to define __stub macros and hopefully few prototypes,
28959 which can conflict with char $ac_func (); below.
28960 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28961 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 28962
a848cd7e
SC
28963#ifdef __STDC__
28964# include <limits.h>
28965#else
28966# include <assert.h>
28967#endif
ac1cb8d3
VS
28968
28969#undef $ac_func
28970
a848cd7e
SC
28971/* Override any gcc2 internal prototype to avoid an error. */
28972#ifdef __cplusplus
28973extern "C"
28974{
28975#endif
28976/* We use char because int might match the return type of a gcc2
28977 builtin and then its argument prototype would still apply. */
28978char $ac_func ();
28979/* The GNU C library defines this for functions which it implements
28980 to always fail with ENOSYS. Some functions are actually named
28981 something starting with __ and the normal name is an alias. */
28982#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28983choke me
28984#else
28985char (*f) () = $ac_func;
28986#endif
28987#ifdef __cplusplus
28988}
28989#endif
28990
28991int
28992main ()
28993{
28994return f != $ac_func;
28995 ;
28996 return 0;
28997}
28998_ACEOF
28999rm -f conftest.$ac_objext conftest$ac_exeext
29000if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29001 (eval $ac_link) 2>conftest.er1
a848cd7e 29002 ac_status=$?
ac1cb8d3
VS
29003 grep -v '^ *+' conftest.er1 >conftest.err
29004 rm -f conftest.er1
29005 cat conftest.err >&5
a848cd7e
SC
29006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29007 (exit $ac_status); } &&
17a7bf57 29008 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29010 (eval $ac_try) 2>&5
29011 ac_status=$?
29012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29013 (exit $ac_status); }; } &&
29014 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29016 (eval $ac_try) 2>&5
29017 ac_status=$?
29018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29019 (exit $ac_status); }; }; then
29020 eval "$as_ac_var=yes"
29021else
29022 echo "$as_me: failed program was:" >&5
29023sed 's/^/| /' conftest.$ac_ext >&5
29024
29025eval "$as_ac_var=no"
29026fi
ac1cb8d3
VS
29027rm -f conftest.err conftest.$ac_objext \
29028 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29029fi
29030echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29031echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29032if test `eval echo '${'$as_ac_var'}'` = yes; then
29033 cat >>confdefs.h <<_ACEOF
29034#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29035_ACEOF
29036
29037fi
29038done
29039
29040else
29041 { echo "$as_me:$LINENO: WARNING: Wide character support is unavailable" >&5
29042echo "$as_me: WARNING: Wide character support is unavailable" >&2;}
29043fi
29044
29045
29046
29047ac_ext=cc
29048ac_cpp='$CXXCPP $CPPFLAGS'
29049ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29050ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29051ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29052
29053
29054
29055for ac_func in vsnprintf
29056do
29057as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29058echo "$as_me:$LINENO: checking for $ac_func" >&5
29059echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29060if eval "test \"\${$as_ac_var+set}\" = set"; then
29061 echo $ECHO_N "(cached) $ECHO_C" >&6
29062else
29063 cat >conftest.$ac_ext <<_ACEOF
29064/* confdefs.h. */
29065_ACEOF
29066cat confdefs.h >>conftest.$ac_ext
29067cat >>conftest.$ac_ext <<_ACEOF
29068/* end confdefs.h. */
ac1cb8d3
VS
29069/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29070 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29071#define $ac_func innocuous_$ac_func
29072
a848cd7e
SC
29073/* System header to define __stub macros and hopefully few prototypes,
29074 which can conflict with char $ac_func (); below.
29075 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29076 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 29077
a848cd7e
SC
29078#ifdef __STDC__
29079# include <limits.h>
29080#else
29081# include <assert.h>
29082#endif
ac1cb8d3
VS
29083
29084#undef $ac_func
29085
a848cd7e
SC
29086/* Override any gcc2 internal prototype to avoid an error. */
29087#ifdef __cplusplus
29088extern "C"
29089{
29090#endif
29091/* We use char because int might match the return type of a gcc2
29092 builtin and then its argument prototype would still apply. */
29093char $ac_func ();
29094/* The GNU C library defines this for functions which it implements
29095 to always fail with ENOSYS. Some functions are actually named
29096 something starting with __ and the normal name is an alias. */
29097#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29098choke me
29099#else
29100char (*f) () = $ac_func;
29101#endif
29102#ifdef __cplusplus
29103}
29104#endif
29105
29106int
29107main ()
29108{
29109return f != $ac_func;
29110 ;
29111 return 0;
29112}
29113_ACEOF
29114rm -f conftest.$ac_objext conftest$ac_exeext
29115if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29116 (eval $ac_link) 2>conftest.er1
a848cd7e 29117 ac_status=$?
ac1cb8d3
VS
29118 grep -v '^ *+' conftest.er1 >conftest.err
29119 rm -f conftest.er1
29120 cat conftest.err >&5
a848cd7e
SC
29121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29122 (exit $ac_status); } &&
17a7bf57 29123 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29125 (eval $ac_try) 2>&5
29126 ac_status=$?
29127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29128 (exit $ac_status); }; } &&
29129 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29131 (eval $ac_try) 2>&5
29132 ac_status=$?
29133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29134 (exit $ac_status); }; }; then
29135 eval "$as_ac_var=yes"
29136else
29137 echo "$as_me: failed program was:" >&5
29138sed 's/^/| /' conftest.$ac_ext >&5
29139
29140eval "$as_ac_var=no"
29141fi
ac1cb8d3
VS
29142rm -f conftest.err conftest.$ac_objext \
29143 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29144fi
29145echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29146echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29147if test `eval echo '${'$as_ac_var'}'` = yes; then
29148 cat >>confdefs.h <<_ACEOF
29149#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29150_ACEOF
29151
29152fi
29153done
29154
29155
29156if test "$ac_cv_func_vsnprintf" = "yes"; then
29157 echo "$as_me:$LINENO: checking for vsnprintf declaration" >&5
29158echo $ECHO_N "checking for vsnprintf declaration... $ECHO_C" >&6
29159if test "${wx_cv_func_vsnprintf_decl+set}" = set; then
29160 echo $ECHO_N "(cached) $ECHO_C" >&6
29161else
29162
29163 cat >conftest.$ac_ext <<_ACEOF
29164/* confdefs.h. */
29165_ACEOF
29166cat confdefs.h >>conftest.$ac_ext
29167cat >>conftest.$ac_ext <<_ACEOF
29168/* end confdefs.h. */
29169
29170 #include <stdio.h>
29171 #include <stdarg.h>
29172
29173int
29174main ()
29175{
29176
29177 char *buf;
29178 va_list ap;
29179 vsnprintf(buf, 10u, "%s", ap);
29180
29181 ;
29182 return 0;
29183}
29184_ACEOF
29185rm -f conftest.$ac_objext
29186if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 29187 (eval $ac_compile) 2>conftest.er1
a848cd7e 29188 ac_status=$?
ac1cb8d3
VS
29189 grep -v '^ *+' conftest.er1 >conftest.err
29190 rm -f conftest.er1
29191 cat conftest.err >&5
a848cd7e
SC
29192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29193 (exit $ac_status); } &&
17a7bf57 29194 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29196 (eval $ac_try) 2>&5
29197 ac_status=$?
29198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29199 (exit $ac_status); }; } &&
29200 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
29201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29202 (eval $ac_try) 2>&5
29203 ac_status=$?
29204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29205 (exit $ac_status); }; }; then
29206 wx_cv_func_vsnprintf_decl=yes
29207else
29208 echo "$as_me: failed program was:" >&5
29209sed 's/^/| /' conftest.$ac_ext >&5
29210
29211wx_cv_func_vsnprintf_decl=no
29212
29213fi
ac1cb8d3 29214rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
29215
29216
29217fi
29218echo "$as_me:$LINENO: result: $wx_cv_func_vsnprintf_decl" >&5
29219echo "${ECHO_T}$wx_cv_func_vsnprintf_decl" >&6
29220
29221 if test "$wx_cv_func_vsnprintf_decl" = "yes"; then
29222 cat >>confdefs.h <<\_ACEOF
29223#define HAVE_VSNPRINTF_DECL 1
29224_ACEOF
29225
29226 fi
29227fi
29228
29229if test "$wxUSE_UNICODE" = yes; then
29230
29231
29232
fbe47c7b
VS
29233
29234
29235
29236for ac_func in wputc wputchar putws fputws wprintf vswprintf
a848cd7e
SC
29237do
29238as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29239echo "$as_me:$LINENO: checking for $ac_func" >&5
29240echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29241if eval "test \"\${$as_ac_var+set}\" = set"; then
29242 echo $ECHO_N "(cached) $ECHO_C" >&6
29243else
29244 cat >conftest.$ac_ext <<_ACEOF
29245/* confdefs.h. */
29246_ACEOF
29247cat confdefs.h >>conftest.$ac_ext
29248cat >>conftest.$ac_ext <<_ACEOF
29249/* end confdefs.h. */
ac1cb8d3
VS
29250/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29251 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29252#define $ac_func innocuous_$ac_func
29253
a848cd7e
SC
29254/* System header to define __stub macros and hopefully few prototypes,
29255 which can conflict with char $ac_func (); below.
29256 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29257 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 29258
a848cd7e
SC
29259#ifdef __STDC__
29260# include <limits.h>
29261#else
29262# include <assert.h>
29263#endif
ac1cb8d3
VS
29264
29265#undef $ac_func
29266
a848cd7e
SC
29267/* Override any gcc2 internal prototype to avoid an error. */
29268#ifdef __cplusplus
29269extern "C"
29270{
29271#endif
29272/* We use char because int might match the return type of a gcc2
29273 builtin and then its argument prototype would still apply. */
29274char $ac_func ();
29275/* The GNU C library defines this for functions which it implements
29276 to always fail with ENOSYS. Some functions are actually named
29277 something starting with __ and the normal name is an alias. */
29278#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29279choke me
29280#else
29281char (*f) () = $ac_func;
29282#endif
29283#ifdef __cplusplus
29284}
29285#endif
29286
29287int
29288main ()
29289{
29290return f != $ac_func;
29291 ;
29292 return 0;
29293}
29294_ACEOF
29295rm -f conftest.$ac_objext conftest$ac_exeext
29296if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29297 (eval $ac_link) 2>conftest.er1
a848cd7e 29298 ac_status=$?
ac1cb8d3
VS
29299 grep -v '^ *+' conftest.er1 >conftest.err
29300 rm -f conftest.er1
29301 cat conftest.err >&5
a848cd7e
SC
29302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29303 (exit $ac_status); } &&
17a7bf57 29304 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29306 (eval $ac_try) 2>&5
29307 ac_status=$?
29308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29309 (exit $ac_status); }; } &&
29310 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29312 (eval $ac_try) 2>&5
29313 ac_status=$?
29314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29315 (exit $ac_status); }; }; then
29316 eval "$as_ac_var=yes"
29317else
29318 echo "$as_me: failed program was:" >&5
29319sed 's/^/| /' conftest.$ac_ext >&5
29320
29321eval "$as_ac_var=no"
29322fi
ac1cb8d3
VS
29323rm -f conftest.err conftest.$ac_objext \
29324 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29325fi
29326echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29327echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29328if test `eval echo '${'$as_ac_var'}'` = yes; then
29329 cat >>confdefs.h <<_ACEOF
29330#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29331_ACEOF
29332
29333fi
29334done
29335
29336
29337 echo "$as_me:$LINENO: checking for _vsnwprintf" >&5
29338echo $ECHO_N "checking for _vsnwprintf... $ECHO_C" >&6
29339 cat >conftest.$ac_ext <<_ACEOF
29340/* confdefs.h. */
29341_ACEOF
29342cat confdefs.h >>conftest.$ac_ext
29343cat >>conftest.$ac_ext <<_ACEOF
29344/* end confdefs.h. */
29345#include <wchar.h>
29346int
29347main ()
29348{
29349&_vsnwprintf;
29350 ;
29351 return 0;
29352}
29353_ACEOF
29354rm -f conftest.$ac_objext
29355if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 29356 (eval $ac_compile) 2>conftest.er1
a848cd7e 29357 ac_status=$?
ac1cb8d3
VS
29358 grep -v '^ *+' conftest.er1 >conftest.err
29359 rm -f conftest.er1
29360 cat conftest.err >&5
a848cd7e
SC
29361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29362 (exit $ac_status); } &&
17a7bf57 29363 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29365 (eval $ac_try) 2>&5
29366 ac_status=$?
29367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29368 (exit $ac_status); }; } &&
29369 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
29370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29371 (eval $ac_try) 2>&5
29372 ac_status=$?
29373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29374 (exit $ac_status); }; }; then
29375 echo "$as_me:$LINENO: result: yes" >&5
29376echo "${ECHO_T}yes" >&6
29377 cat >>confdefs.h <<\_ACEOF
29378#define HAVE__VSNWPRINTF 1
29379_ACEOF
29380
29381else
29382 echo "$as_me: failed program was:" >&5
29383sed 's/^/| /' conftest.$ac_ext >&5
29384
29385echo "$as_me:$LINENO: result: no" >&5
29386echo "${ECHO_T}no" >&6
29387fi
ac1cb8d3 29388rm -f conftest.err conftest.$ac_objext conftest.$ac_ext;
a848cd7e
SC
29389fi
29390
29391ac_ext=c
29392ac_cpp='$CPP $CPPFLAGS'
29393ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29394ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29395ac_compiler_gnu=$ac_cv_c_compiler_gnu
29396
29397
29398
29399
29400if test "$TOOLKIT" != "MSW"; then
29401
29402
29403
29404
29405ac_ext=cc
29406ac_cpp='$CXXCPP $CPPFLAGS'
29407ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29408ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29409ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29410
29411
29412
29413
29414# Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
29415if test "${with_libiconv_prefix+set}" = set; then
29416 withval="$with_libiconv_prefix"
29417
29418 for dir in `echo "$withval" | tr : ' '`; do
29419 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
29420 if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
29421 done
29422
29423fi;
29424
29425 echo "$as_me:$LINENO: checking for iconv" >&5
29426echo $ECHO_N "checking for iconv... $ECHO_C" >&6
29427if test "${am_cv_func_iconv+set}" = set; then
29428 echo $ECHO_N "(cached) $ECHO_C" >&6
29429else
29430
29431 am_cv_func_iconv="no, consider installing GNU libiconv"
29432 am_cv_lib_iconv=no
29433 cat >conftest.$ac_ext <<_ACEOF
29434/* confdefs.h. */
29435_ACEOF
29436cat confdefs.h >>conftest.$ac_ext
29437cat >>conftest.$ac_ext <<_ACEOF
29438/* end confdefs.h. */
29439#include <stdlib.h>
29440#include <iconv.h>
29441int
29442main ()
29443{
29444iconv_t cd = iconv_open("","");
29445 iconv(cd,NULL,NULL,NULL,NULL);
29446 iconv_close(cd);
29447 ;
29448 return 0;
29449}
29450_ACEOF
29451rm -f conftest.$ac_objext conftest$ac_exeext
29452if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29453 (eval $ac_link) 2>conftest.er1
a848cd7e 29454 ac_status=$?
ac1cb8d3
VS
29455 grep -v '^ *+' conftest.er1 >conftest.err
29456 rm -f conftest.er1
29457 cat conftest.err >&5
a848cd7e
SC
29458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29459 (exit $ac_status); } &&
17a7bf57 29460 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29462 (eval $ac_try) 2>&5
29463 ac_status=$?
29464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29465 (exit $ac_status); }; } &&
29466 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29468 (eval $ac_try) 2>&5
29469 ac_status=$?
29470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29471 (exit $ac_status); }; }; then
29472 am_cv_func_iconv=yes
29473else
29474 echo "$as_me: failed program was:" >&5
29475sed 's/^/| /' conftest.$ac_ext >&5
29476
29477fi
ac1cb8d3
VS
29478rm -f conftest.err conftest.$ac_objext \
29479 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29480 if test "$am_cv_func_iconv" != yes; then
29481 am_save_LIBS="$LIBS"
29482 LIBS="$LIBS -liconv"
29483 cat >conftest.$ac_ext <<_ACEOF
29484/* confdefs.h. */
29485_ACEOF
29486cat confdefs.h >>conftest.$ac_ext
29487cat >>conftest.$ac_ext <<_ACEOF
29488/* end confdefs.h. */
29489#include <stdlib.h>
29490#include <iconv.h>
29491int
29492main ()
29493{
29494iconv_t cd = iconv_open("","");
29495 iconv(cd,NULL,NULL,NULL,NULL);
29496 iconv_close(cd);
29497 ;
29498 return 0;
29499}
29500_ACEOF
29501rm -f conftest.$ac_objext conftest$ac_exeext
29502if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29503 (eval $ac_link) 2>conftest.er1
a848cd7e 29504 ac_status=$?
ac1cb8d3
VS
29505 grep -v '^ *+' conftest.er1 >conftest.err
29506 rm -f conftest.er1
29507 cat conftest.err >&5
a848cd7e
SC
29508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29509 (exit $ac_status); } &&
17a7bf57 29510 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29512 (eval $ac_try) 2>&5
29513 ac_status=$?
29514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29515 (exit $ac_status); }; } &&
29516 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29518 (eval $ac_try) 2>&5
29519 ac_status=$?
29520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29521 (exit $ac_status); }; }; then
29522 am_cv_lib_iconv=yes
29523 am_cv_func_iconv=yes
29524else
29525 echo "$as_me: failed program was:" >&5
29526sed 's/^/| /' conftest.$ac_ext >&5
29527
29528fi
ac1cb8d3
VS
29529rm -f conftest.err conftest.$ac_objext \
29530 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29531 LIBS="$am_save_LIBS"
29532 fi
29533
29534fi
29535echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
29536echo "${ECHO_T}$am_cv_func_iconv" >&6
29537 if test "$am_cv_func_iconv" = yes; then
29538
29539cat >>confdefs.h <<\_ACEOF
29540#define HAVE_ICONV 1
29541_ACEOF
29542
29543 echo "$as_me:$LINENO: checking if iconv needs const" >&5
29544echo $ECHO_N "checking if iconv needs const... $ECHO_C" >&6
29545if test "${wx_cv_func_iconv_const+set}" = set; then
29546 echo $ECHO_N "(cached) $ECHO_C" >&6
29547else
29548 cat >conftest.$ac_ext <<_ACEOF
29549/* confdefs.h. */
29550_ACEOF
29551cat confdefs.h >>conftest.$ac_ext
29552cat >>conftest.$ac_ext <<_ACEOF
29553/* end confdefs.h. */
29554
29555#include <stdlib.h>
29556#include <iconv.h>
29557extern
29558#ifdef __cplusplus
29559"C"
29560#endif
29561#if defined(__STDC__) || defined(__cplusplus)
29562size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
29563#else
29564size_t iconv();
29565#endif
29566
29567int
29568main ()
29569{
29570
29571 ;
29572 return 0;
29573}
29574_ACEOF
29575rm -f conftest.$ac_objext
29576if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 29577 (eval $ac_compile) 2>conftest.er1
a848cd7e 29578 ac_status=$?
ac1cb8d3
VS
29579 grep -v '^ *+' conftest.er1 >conftest.err
29580 rm -f conftest.er1
29581 cat conftest.err >&5
a848cd7e
SC
29582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29583 (exit $ac_status); } &&
17a7bf57 29584 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29586 (eval $ac_try) 2>&5
29587 ac_status=$?
29588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29589 (exit $ac_status); }; } &&
29590 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
29591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29592 (eval $ac_try) 2>&5
29593 ac_status=$?
29594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29595 (exit $ac_status); }; }; then
29596 wx_cv_func_iconv_const="no"
29597else
29598 echo "$as_me: failed program was:" >&5
29599sed 's/^/| /' conftest.$ac_ext >&5
29600
29601wx_cv_func_iconv_const="yes"
29602
29603fi
ac1cb8d3 29604rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
29605
29606fi
29607echo "$as_me:$LINENO: result: $wx_cv_func_iconv_const" >&5
29608echo "${ECHO_T}$wx_cv_func_iconv_const" >&6
29609
29610 iconv_const=
29611 if test "x$wx_cv_func_iconv_const" = "xyes"; then
29612 iconv_const="const"
29613 fi
29614
29615
29616cat >>confdefs.h <<_ACEOF
29617#define ICONV_CONST $iconv_const
29618_ACEOF
29619
29620 fi
29621 LIBICONV=
29622 if test "$am_cv_lib_iconv" = yes; then
29623 LIBICONV="-liconv"
29624 fi
29625
29626
29627LIBS="$LIBICONV $LIBS"
29628ac_ext=c
29629ac_cpp='$CPP $CPPFLAGS'
29630ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29631ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29632ac_compiler_gnu=$ac_cv_c_compiler_gnu
29633
29634
29635if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then
29636
29637for ac_func in sigaction
29638do
29639as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29640echo "$as_me:$LINENO: checking for $ac_func" >&5
29641echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29642if eval "test \"\${$as_ac_var+set}\" = set"; then
29643 echo $ECHO_N "(cached) $ECHO_C" >&6
29644else
29645 cat >conftest.$ac_ext <<_ACEOF
29646/* confdefs.h. */
29647_ACEOF
29648cat confdefs.h >>conftest.$ac_ext
29649cat >>conftest.$ac_ext <<_ACEOF
29650/* end confdefs.h. */
ac1cb8d3
VS
29651/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29652 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29653#define $ac_func innocuous_$ac_func
29654
a848cd7e
SC
29655/* System header to define __stub macros and hopefully few prototypes,
29656 which can conflict with char $ac_func (); below.
29657 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29658 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 29659
a848cd7e
SC
29660#ifdef __STDC__
29661# include <limits.h>
29662#else
29663# include <assert.h>
29664#endif
ac1cb8d3
VS
29665
29666#undef $ac_func
29667
a848cd7e
SC
29668/* Override any gcc2 internal prototype to avoid an error. */
29669#ifdef __cplusplus
29670extern "C"
29671{
29672#endif
29673/* We use char because int might match the return type of a gcc2
29674 builtin and then its argument prototype would still apply. */
29675char $ac_func ();
29676/* The GNU C library defines this for functions which it implements
29677 to always fail with ENOSYS. Some functions are actually named
29678 something starting with __ and the normal name is an alias. */
29679#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29680choke me
29681#else
29682char (*f) () = $ac_func;
29683#endif
29684#ifdef __cplusplus
29685}
29686#endif
29687
29688int
29689main ()
29690{
29691return f != $ac_func;
29692 ;
29693 return 0;
29694}
29695_ACEOF
29696rm -f conftest.$ac_objext conftest$ac_exeext
29697if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29698 (eval $ac_link) 2>conftest.er1
a848cd7e 29699 ac_status=$?
ac1cb8d3
VS
29700 grep -v '^ *+' conftest.er1 >conftest.err
29701 rm -f conftest.er1
29702 cat conftest.err >&5
a848cd7e
SC
29703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29704 (exit $ac_status); } &&
17a7bf57 29705 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29707 (eval $ac_try) 2>&5
29708 ac_status=$?
29709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29710 (exit $ac_status); }; } &&
29711 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29713 (eval $ac_try) 2>&5
29714 ac_status=$?
29715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29716 (exit $ac_status); }; }; then
29717 eval "$as_ac_var=yes"
29718else
29719 echo "$as_me: failed program was:" >&5
29720sed 's/^/| /' conftest.$ac_ext >&5
29721
29722eval "$as_ac_var=no"
29723fi
ac1cb8d3
VS
29724rm -f conftest.err conftest.$ac_objext \
29725 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29726fi
29727echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29728echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29729if test `eval echo '${'$as_ac_var'}'` = yes; then
29730 cat >>confdefs.h <<_ACEOF
29731#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29732_ACEOF
29733
29734fi
29735done
29736
29737
29738 if test "$ac_cv_func_sigaction" = "no"; then
29739 { echo "$as_me:$LINENO: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&5
29740echo "$as_me: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&2;}
29741 wxUSE_ON_FATAL_EXCEPTION=no
29742 fi
29743
29744 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
29745
29746
29747 ac_ext=cc
29748ac_cpp='$CXXCPP $CPPFLAGS'
29749ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29750ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29751ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29752
29753
29754 echo "$as_me:$LINENO: checking for sa_handler type" >&5
29755echo $ECHO_N "checking for sa_handler type... $ECHO_C" >&6
29756if test "${wx_cv_type_sa_handler+set}" = set; then
29757 echo $ECHO_N "(cached) $ECHO_C" >&6
29758else
29759
29760 cat >conftest.$ac_ext <<_ACEOF
29761/* confdefs.h. */
29762_ACEOF
29763cat confdefs.h >>conftest.$ac_ext
29764cat >>conftest.$ac_ext <<_ACEOF
29765/* end confdefs.h. */
29766#include <signal.h>
29767int
29768main ()
29769{
29770
29771 extern void testSigHandler(int);
29772
29773 struct sigaction sa;
29774 sa.sa_handler = testSigHandler;
29775
29776 ;
29777 return 0;
29778}
29779_ACEOF
29780rm -f conftest.$ac_objext
29781if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 29782 (eval $ac_compile) 2>conftest.er1
a848cd7e 29783 ac_status=$?
ac1cb8d3
VS
29784 grep -v '^ *+' conftest.er1 >conftest.err
29785 rm -f conftest.er1
29786 cat conftest.err >&5
a848cd7e
SC
29787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29788 (exit $ac_status); } &&
17a7bf57 29789 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29791 (eval $ac_try) 2>&5
29792 ac_status=$?
29793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29794 (exit $ac_status); }; } &&
29795 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
29796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29797 (eval $ac_try) 2>&5
29798 ac_status=$?
29799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29800 (exit $ac_status); }; }; then
29801
29802 wx_cv_type_sa_handler=int
29803
29804else
29805 echo "$as_me: failed program was:" >&5
29806sed 's/^/| /' conftest.$ac_ext >&5
29807
29808
29809 wx_cv_type_sa_handler=void
29810
29811fi
ac1cb8d3 29812rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
29813
29814fi
29815echo "$as_me:$LINENO: result: $wx_cv_type_sa_handler" >&5
29816echo "${ECHO_T}$wx_cv_type_sa_handler" >&6
29817
29818 ac_ext=c
29819ac_cpp='$CPP $CPPFLAGS'
29820ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29821ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29822ac_compiler_gnu=$ac_cv_c_compiler_gnu
29823
29824
29825 cat >>confdefs.h <<_ACEOF
29826#define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler
29827_ACEOF
29828
29829 fi
29830fi
29831
29832
29833
29834for ac_func in mkstemp mktemp
29835do
29836as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29837echo "$as_me:$LINENO: checking for $ac_func" >&5
29838echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29839if eval "test \"\${$as_ac_var+set}\" = set"; then
29840 echo $ECHO_N "(cached) $ECHO_C" >&6
29841else
29842 cat >conftest.$ac_ext <<_ACEOF
29843/* confdefs.h. */
29844_ACEOF
29845cat confdefs.h >>conftest.$ac_ext
29846cat >>conftest.$ac_ext <<_ACEOF
29847/* end confdefs.h. */
ac1cb8d3
VS
29848/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29849 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29850#define $ac_func innocuous_$ac_func
29851
a848cd7e
SC
29852/* System header to define __stub macros and hopefully few prototypes,
29853 which can conflict with char $ac_func (); below.
29854 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29855 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 29856
a848cd7e
SC
29857#ifdef __STDC__
29858# include <limits.h>
29859#else
29860# include <assert.h>
29861#endif
ac1cb8d3
VS
29862
29863#undef $ac_func
29864
a848cd7e
SC
29865/* Override any gcc2 internal prototype to avoid an error. */
29866#ifdef __cplusplus
29867extern "C"
29868{
29869#endif
29870/* We use char because int might match the return type of a gcc2
29871 builtin and then its argument prototype would still apply. */
29872char $ac_func ();
29873/* The GNU C library defines this for functions which it implements
29874 to always fail with ENOSYS. Some functions are actually named
29875 something starting with __ and the normal name is an alias. */
29876#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29877choke me
29878#else
29879char (*f) () = $ac_func;
29880#endif
29881#ifdef __cplusplus
29882}
29883#endif
29884
29885int
29886main ()
29887{
29888return f != $ac_func;
29889 ;
29890 return 0;
29891}
29892_ACEOF
29893rm -f conftest.$ac_objext conftest$ac_exeext
29894if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29895 (eval $ac_link) 2>conftest.er1
a848cd7e 29896 ac_status=$?
ac1cb8d3
VS
29897 grep -v '^ *+' conftest.er1 >conftest.err
29898 rm -f conftest.er1
29899 cat conftest.err >&5
a848cd7e
SC
29900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29901 (exit $ac_status); } &&
17a7bf57 29902 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29904 (eval $ac_try) 2>&5
29905 ac_status=$?
29906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29907 (exit $ac_status); }; } &&
29908 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29910 (eval $ac_try) 2>&5
29911 ac_status=$?
29912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29913 (exit $ac_status); }; }; then
29914 eval "$as_ac_var=yes"
29915else
29916 echo "$as_me: failed program was:" >&5
29917sed 's/^/| /' conftest.$ac_ext >&5
29918
29919eval "$as_ac_var=no"
29920fi
ac1cb8d3
VS
29921rm -f conftest.err conftest.$ac_objext \
29922 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29923fi
29924echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29925echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29926if test `eval echo '${'$as_ac_var'}'` = yes; then
29927 cat >>confdefs.h <<_ACEOF
29928#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29929_ACEOF
29930 break
29931fi
29932done
29933
29934
29935echo "$as_me:$LINENO: checking for statfs" >&5
29936echo $ECHO_N "checking for statfs... $ECHO_C" >&6
29937if test "${wx_cv_func_statfs+set}" = set; then
29938 echo $ECHO_N "(cached) $ECHO_C" >&6
29939else
29940 cat >conftest.$ac_ext <<_ACEOF
29941/* confdefs.h. */
29942_ACEOF
29943cat confdefs.h >>conftest.$ac_ext
29944cat >>conftest.$ac_ext <<_ACEOF
29945/* end confdefs.h. */
29946
29947 #if defined(__BSD__)
29948 #include <sys/param.h>
29949 #include <sys/mount.h>
29950 #else
29951 #include <sys/vfs.h>
29952 #endif
29953
29954int
29955main ()
29956{
29957
29958 long l;
29959 struct statfs fs;
29960 statfs("/", &fs);
29961 l = fs.f_bsize;
29962 l += fs.f_blocks;
29963 l += fs.f_bavail;
29964
29965 ;
29966 return 0;
29967}
29968_ACEOF
29969rm -f conftest.$ac_objext
29970if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 29971 (eval $ac_compile) 2>conftest.er1
a848cd7e 29972 ac_status=$?
ac1cb8d3
VS
29973 grep -v '^ *+' conftest.er1 >conftest.err
29974 rm -f conftest.er1
29975 cat conftest.err >&5
a848cd7e
SC
29976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29977 (exit $ac_status); } &&
17a7bf57 29978 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29980 (eval $ac_try) 2>&5
29981 ac_status=$?
29982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29983 (exit $ac_status); }; } &&
29984 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
29985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29986 (eval $ac_try) 2>&5
29987 ac_status=$?
29988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29989 (exit $ac_status); }; }; then
29990
29991 wx_cv_func_statfs=yes
29992
29993else
29994 echo "$as_me: failed program was:" >&5
29995sed 's/^/| /' conftest.$ac_ext >&5
29996
29997
29998 wx_cv_func_statfs=no
29999
30000
30001fi
ac1cb8d3 30002rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
30003
30004fi
30005echo "$as_me:$LINENO: result: $wx_cv_func_statfs" >&5
30006echo "${ECHO_T}$wx_cv_func_statfs" >&6
30007
30008if test "$wx_cv_func_statfs" = "yes"; then
30009 wx_cv_type_statvfs_t="struct statfs"
30010 cat >>confdefs.h <<\_ACEOF
30011#define HAVE_STATFS 1
30012_ACEOF
30013
30014else
30015 echo "$as_me:$LINENO: checking for statvfs" >&5
30016echo $ECHO_N "checking for statvfs... $ECHO_C" >&6
30017if test "${wx_cv_func_statvfs+set}" = set; then
30018 echo $ECHO_N "(cached) $ECHO_C" >&6
30019else
30020 cat >conftest.$ac_ext <<_ACEOF
30021/* confdefs.h. */
30022_ACEOF
30023cat confdefs.h >>conftest.$ac_ext
30024cat >>conftest.$ac_ext <<_ACEOF
30025/* end confdefs.h. */
30026
30027 #include <stddef.h>
30028 #include <sys/statvfs.h>
30029
30030int
30031main ()
30032{
30033
30034 statvfs("/", NULL);
30035
30036 ;
30037 return 0;
30038}
30039_ACEOF
30040rm -f conftest.$ac_objext
30041if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 30042 (eval $ac_compile) 2>conftest.er1
a848cd7e 30043 ac_status=$?
ac1cb8d3
VS
30044 grep -v '^ *+' conftest.er1 >conftest.err
30045 rm -f conftest.er1
30046 cat conftest.err >&5
a848cd7e
SC
30047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30048 (exit $ac_status); } &&
17a7bf57 30049 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30051 (eval $ac_try) 2>&5
30052 ac_status=$?
30053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30054 (exit $ac_status); }; } &&
30055 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
30056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30057 (eval $ac_try) 2>&5
30058 ac_status=$?
30059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30060 (exit $ac_status); }; }; then
30061 wx_cv_func_statvfs=yes
30062else
30063 echo "$as_me: failed program was:" >&5
30064sed 's/^/| /' conftest.$ac_ext >&5
30065
30066wx_cv_func_statvfs=no
30067
30068fi
ac1cb8d3 30069rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
30070
30071fi
30072echo "$as_me:$LINENO: result: $wx_cv_func_statvfs" >&5
30073echo "${ECHO_T}$wx_cv_func_statvfs" >&6
30074
30075 if test "$wx_cv_func_statvfs" = "yes"; then
30076
30077
30078 ac_ext=cc
30079ac_cpp='$CXXCPP $CPPFLAGS'
30080ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30081ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30082ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30083
30084
30085 echo "$as_me:$LINENO: checking for statvfs argument type" >&5
30086echo $ECHO_N "checking for statvfs argument type... $ECHO_C" >&6
30087if test "${wx_cv_type_statvfs_t+set}" = set; then
30088 echo $ECHO_N "(cached) $ECHO_C" >&6
30089else
30090 cat >conftest.$ac_ext <<_ACEOF
30091/* confdefs.h. */
30092_ACEOF
30093cat confdefs.h >>conftest.$ac_ext
30094cat >>conftest.$ac_ext <<_ACEOF
30095/* end confdefs.h. */
30096
30097 #include <sys/statvfs.h>
30098
30099int
30100main ()
30101{
30102
30103 long l;
30104 statvfs_t fs;
30105 statvfs("/", &fs);
30106 l = fs.f_bsize;
30107 l += fs.f_blocks;
30108 l += fs.f_bavail;
30109
30110 ;
30111 return 0;
30112}
30113_ACEOF
30114rm -f conftest.$ac_objext
30115if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 30116 (eval $ac_compile) 2>conftest.er1
a848cd7e 30117 ac_status=$?
ac1cb8d3
VS
30118 grep -v '^ *+' conftest.er1 >conftest.err
30119 rm -f conftest.er1
30120 cat conftest.err >&5
a848cd7e
SC
30121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30122 (exit $ac_status); } &&
17a7bf57 30123 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30125 (eval $ac_try) 2>&5
30126 ac_status=$?
30127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30128 (exit $ac_status); }; } &&
30129 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
30130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30131 (eval $ac_try) 2>&5
30132 ac_status=$?
30133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30134 (exit $ac_status); }; }; then
30135 wx_cv_type_statvfs_t=statvfs_t
30136else
30137 echo "$as_me: failed program was:" >&5
30138sed 's/^/| /' conftest.$ac_ext >&5
30139
30140
30141 cat >conftest.$ac_ext <<_ACEOF
30142/* confdefs.h. */
30143_ACEOF
30144cat confdefs.h >>conftest.$ac_ext
30145cat >>conftest.$ac_ext <<_ACEOF
30146/* end confdefs.h. */
30147
30148 #include <sys/statvfs.h>
30149
30150int
30151main ()
30152{
30153
30154 long l;
30155 struct statvfs fs;
30156 statvfs("/", &fs);
30157 l = fs.f_bsize;
30158 l += fs.f_blocks;
30159 l += fs.f_bavail;
30160
30161 ;
30162 return 0;
30163}
30164_ACEOF
30165rm -f conftest.$ac_objext
30166if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 30167 (eval $ac_compile) 2>conftest.er1
a848cd7e 30168 ac_status=$?
ac1cb8d3
VS
30169 grep -v '^ *+' conftest.er1 >conftest.err
30170 rm -f conftest.er1
30171 cat conftest.err >&5
a848cd7e
SC
30172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30173 (exit $ac_status); } &&
17a7bf57 30174 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30176 (eval $ac_try) 2>&5
30177 ac_status=$?
30178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30179 (exit $ac_status); }; } &&
30180 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
30181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30182 (eval $ac_try) 2>&5
30183 ac_status=$?
30184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30185 (exit $ac_status); }; }; then
30186 wx_cv_type_statvfs_t="struct statvfs"
30187else
30188 echo "$as_me: failed program was:" >&5
30189sed 's/^/| /' conftest.$ac_ext >&5
30190
30191wx_cv_type_statvfs_t="unknown"
30192
30193fi
ac1cb8d3 30194rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
30195
30196
30197fi
ac1cb8d3 30198rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
30199
30200fi
30201echo "$as_me:$LINENO: result: $wx_cv_type_statvfs_t" >&5
30202echo "${ECHO_T}$wx_cv_type_statvfs_t" >&6
30203
30204 ac_ext=c
30205ac_cpp='$CPP $CPPFLAGS'
30206ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30207ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30208ac_compiler_gnu=$ac_cv_c_compiler_gnu
30209
30210
30211 if test "$wx_cv_type_statvfs_t" != "unknown"; then
30212 cat >>confdefs.h <<\_ACEOF
30213#define HAVE_STATVFS 1
30214_ACEOF
30215
30216 fi
30217 else
30218 wx_cv_type_statvfs_t="unknown"
30219 fi
30220fi
30221
30222if test "$wx_cv_type_statvfs_t" != "unknown"; then
30223 cat >>confdefs.h <<_ACEOF
30224#define WX_STATFS_T $wx_cv_type_statvfs_t
30225_ACEOF
30226
30227else
30228 { echo "$as_me:$LINENO: WARNING: wxGetDiskSpace() function won't work without statfs()" >&5
30229echo "$as_me: WARNING: wxGetDiskSpace() function won't work without statfs()" >&2;}
30230fi
30231
30232if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
30233
30234
30235for ac_func in fcntl flock
30236do
30237as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30238echo "$as_me:$LINENO: checking for $ac_func" >&5
30239echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30240if eval "test \"\${$as_ac_var+set}\" = set"; then
30241 echo $ECHO_N "(cached) $ECHO_C" >&6
30242else
30243 cat >conftest.$ac_ext <<_ACEOF
30244/* confdefs.h. */
30245_ACEOF
30246cat confdefs.h >>conftest.$ac_ext
30247cat >>conftest.$ac_ext <<_ACEOF
30248/* end confdefs.h. */
ac1cb8d3
VS
30249/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30250 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30251#define $ac_func innocuous_$ac_func
30252
a848cd7e
SC
30253/* System header to define __stub macros and hopefully few prototypes,
30254 which can conflict with char $ac_func (); below.
30255 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30256 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 30257
a848cd7e
SC
30258#ifdef __STDC__
30259# include <limits.h>
30260#else
30261# include <assert.h>
30262#endif
ac1cb8d3
VS
30263
30264#undef $ac_func
30265
a848cd7e
SC
30266/* Override any gcc2 internal prototype to avoid an error. */
30267#ifdef __cplusplus
30268extern "C"
30269{
30270#endif
30271/* We use char because int might match the return type of a gcc2
30272 builtin and then its argument prototype would still apply. */
30273char $ac_func ();
30274/* The GNU C library defines this for functions which it implements
30275 to always fail with ENOSYS. Some functions are actually named
30276 something starting with __ and the normal name is an alias. */
30277#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30278choke me
30279#else
30280char (*f) () = $ac_func;
30281#endif
30282#ifdef __cplusplus
30283}
30284#endif
30285
30286int
30287main ()
30288{
30289return f != $ac_func;
30290 ;
30291 return 0;
30292}
30293_ACEOF
30294rm -f conftest.$ac_objext conftest$ac_exeext
30295if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30296 (eval $ac_link) 2>conftest.er1
a848cd7e 30297 ac_status=$?
ac1cb8d3
VS
30298 grep -v '^ *+' conftest.er1 >conftest.err
30299 rm -f conftest.er1
30300 cat conftest.err >&5
a848cd7e
SC
30301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30302 (exit $ac_status); } &&
17a7bf57 30303 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30305 (eval $ac_try) 2>&5
30306 ac_status=$?
30307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30308 (exit $ac_status); }; } &&
30309 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30311 (eval $ac_try) 2>&5
30312 ac_status=$?
30313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30314 (exit $ac_status); }; }; then
30315 eval "$as_ac_var=yes"
30316else
30317 echo "$as_me: failed program was:" >&5
30318sed 's/^/| /' conftest.$ac_ext >&5
30319
30320eval "$as_ac_var=no"
30321fi
ac1cb8d3
VS
30322rm -f conftest.err conftest.$ac_objext \
30323 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30324fi
30325echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30326echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30327if test `eval echo '${'$as_ac_var'}'` = yes; then
30328 cat >>confdefs.h <<_ACEOF
30329#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30330_ACEOF
30331 break
30332fi
30333done
30334
30335
30336 if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then
30337 { echo "$as_me:$LINENO: WARNING: wxSingleInstanceChecker not available" >&5
30338echo "$as_me: WARNING: wxSingleInstanceChecker not available" >&2;}
30339 wxUSE_SNGLINST_CHECKER=no
30340 fi
30341fi
30342
30343
30344for ac_func in timegm
30345do
30346as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30347echo "$as_me:$LINENO: checking for $ac_func" >&5
30348echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30349if eval "test \"\${$as_ac_var+set}\" = set"; then
30350 echo $ECHO_N "(cached) $ECHO_C" >&6
30351else
30352 cat >conftest.$ac_ext <<_ACEOF
30353/* confdefs.h. */
30354_ACEOF
30355cat confdefs.h >>conftest.$ac_ext
30356cat >>conftest.$ac_ext <<_ACEOF
30357/* end confdefs.h. */
ac1cb8d3
VS
30358/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30359 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30360#define $ac_func innocuous_$ac_func
30361
a848cd7e
SC
30362/* System header to define __stub macros and hopefully few prototypes,
30363 which can conflict with char $ac_func (); below.
30364 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30365 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 30366
a848cd7e
SC
30367#ifdef __STDC__
30368# include <limits.h>
30369#else
30370# include <assert.h>
30371#endif
ac1cb8d3
VS
30372
30373#undef $ac_func
30374
a848cd7e
SC
30375/* Override any gcc2 internal prototype to avoid an error. */
30376#ifdef __cplusplus
30377extern "C"
30378{
30379#endif
30380/* We use char because int might match the return type of a gcc2
30381 builtin and then its argument prototype would still apply. */
30382char $ac_func ();
30383/* The GNU C library defines this for functions which it implements
30384 to always fail with ENOSYS. Some functions are actually named
30385 something starting with __ and the normal name is an alias. */
30386#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30387choke me
30388#else
30389char (*f) () = $ac_func;
30390#endif
30391#ifdef __cplusplus
30392}
30393#endif
30394
30395int
30396main ()
30397{
30398return f != $ac_func;
30399 ;
30400 return 0;
30401}
30402_ACEOF
30403rm -f conftest.$ac_objext conftest$ac_exeext
30404if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30405 (eval $ac_link) 2>conftest.er1
a848cd7e 30406 ac_status=$?
ac1cb8d3
VS
30407 grep -v '^ *+' conftest.er1 >conftest.err
30408 rm -f conftest.er1
30409 cat conftest.err >&5
a848cd7e
SC
30410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30411 (exit $ac_status); } &&
17a7bf57 30412 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30414 (eval $ac_try) 2>&5
30415 ac_status=$?
30416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30417 (exit $ac_status); }; } &&
30418 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30420 (eval $ac_try) 2>&5
30421 ac_status=$?
30422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30423 (exit $ac_status); }; }; then
30424 eval "$as_ac_var=yes"
30425else
30426 echo "$as_me: failed program was:" >&5
30427sed 's/^/| /' conftest.$ac_ext >&5
30428
30429eval "$as_ac_var=no"
30430fi
ac1cb8d3
VS
30431rm -f conftest.err conftest.$ac_objext \
30432 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30433fi
30434echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30435echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30436if test `eval echo '${'$as_ac_var'}'` = yes; then
30437 cat >>confdefs.h <<_ACEOF
30438#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30439_ACEOF
30440
30441fi
30442done
30443
30444
30445
30446
30447for ac_func in putenv setenv
30448do
30449as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30450echo "$as_me:$LINENO: checking for $ac_func" >&5
30451echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30452if eval "test \"\${$as_ac_var+set}\" = set"; then
30453 echo $ECHO_N "(cached) $ECHO_C" >&6
30454else
30455 cat >conftest.$ac_ext <<_ACEOF
30456/* confdefs.h. */
30457_ACEOF
30458cat confdefs.h >>conftest.$ac_ext
30459cat >>conftest.$ac_ext <<_ACEOF
30460/* end confdefs.h. */
ac1cb8d3
VS
30461/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30462 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30463#define $ac_func innocuous_$ac_func
30464
a848cd7e
SC
30465/* System header to define __stub macros and hopefully few prototypes,
30466 which can conflict with char $ac_func (); below.
30467 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30468 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 30469
a848cd7e
SC
30470#ifdef __STDC__
30471# include <limits.h>
30472#else
30473# include <assert.h>
30474#endif
ac1cb8d3
VS
30475
30476#undef $ac_func
30477
a848cd7e
SC
30478/* Override any gcc2 internal prototype to avoid an error. */
30479#ifdef __cplusplus
30480extern "C"
30481{
30482#endif
30483/* We use char because int might match the return type of a gcc2
30484 builtin and then its argument prototype would still apply. */
30485char $ac_func ();
30486/* The GNU C library defines this for functions which it implements
30487 to always fail with ENOSYS. Some functions are actually named
30488 something starting with __ and the normal name is an alias. */
30489#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30490choke me
30491#else
30492char (*f) () = $ac_func;
30493#endif
30494#ifdef __cplusplus
30495}
30496#endif
30497
30498int
30499main ()
30500{
30501return f != $ac_func;
30502 ;
30503 return 0;
30504}
30505_ACEOF
30506rm -f conftest.$ac_objext conftest$ac_exeext
30507if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30508 (eval $ac_link) 2>conftest.er1
a848cd7e 30509 ac_status=$?
ac1cb8d3
VS
30510 grep -v '^ *+' conftest.er1 >conftest.err
30511 rm -f conftest.er1
30512 cat conftest.err >&5
a848cd7e
SC
30513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30514 (exit $ac_status); } &&
17a7bf57 30515 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30517 (eval $ac_try) 2>&5
30518 ac_status=$?
30519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30520 (exit $ac_status); }; } &&
30521 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30523 (eval $ac_try) 2>&5
30524 ac_status=$?
30525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30526 (exit $ac_status); }; }; then
30527 eval "$as_ac_var=yes"
30528else
30529 echo "$as_me: failed program was:" >&5
30530sed 's/^/| /' conftest.$ac_ext >&5
30531
30532eval "$as_ac_var=no"
30533fi
ac1cb8d3
VS
30534rm -f conftest.err conftest.$ac_objext \
30535 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30536fi
30537echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30538echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30539if test `eval echo '${'$as_ac_var'}'` = yes; then
30540 cat >>confdefs.h <<_ACEOF
30541#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30542_ACEOF
30543 break
30544fi
30545done
30546
30547
30548HAVE_SOME_SLEEP_FUNC=0
30549if test "$USE_BEOS" = 1; then
30550 cat >>confdefs.h <<\_ACEOF
30551#define HAVE_SLEEP 1
30552_ACEOF
30553
30554 HAVE_SOME_SLEEP_FUNC=1
30555fi
30556
30557if test "$USE_DARWIN" = 1; then
30558 cat >>confdefs.h <<\_ACEOF
30559#define HAVE_USLEEP 1
30560_ACEOF
30561
30562 HAVE_SOME_SLEEP_FUNC=1
30563fi
30564
30565if test "$HAVE_SOME_SLEEP_FUNC" != 1; then
30566 POSIX4_LINK=
30567
30568for ac_func in nanosleep
30569do
30570as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30571echo "$as_me:$LINENO: checking for $ac_func" >&5
30572echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30573if eval "test \"\${$as_ac_var+set}\" = set"; then
30574 echo $ECHO_N "(cached) $ECHO_C" >&6
30575else
30576 cat >conftest.$ac_ext <<_ACEOF
30577/* confdefs.h. */
30578_ACEOF
30579cat confdefs.h >>conftest.$ac_ext
30580cat >>conftest.$ac_ext <<_ACEOF
30581/* end confdefs.h. */
ac1cb8d3
VS
30582/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30583 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30584#define $ac_func innocuous_$ac_func
30585
a848cd7e
SC
30586/* System header to define __stub macros and hopefully few prototypes,
30587 which can conflict with char $ac_func (); below.
30588 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30589 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 30590
a848cd7e
SC
30591#ifdef __STDC__
30592# include <limits.h>
30593#else
30594# include <assert.h>
30595#endif
ac1cb8d3
VS
30596
30597#undef $ac_func
30598
a848cd7e
SC
30599/* Override any gcc2 internal prototype to avoid an error. */
30600#ifdef __cplusplus
30601extern "C"
30602{
30603#endif
30604/* We use char because int might match the return type of a gcc2
30605 builtin and then its argument prototype would still apply. */
30606char $ac_func ();
30607/* The GNU C library defines this for functions which it implements
30608 to always fail with ENOSYS. Some functions are actually named
30609 something starting with __ and the normal name is an alias. */
30610#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30611choke me
30612#else
30613char (*f) () = $ac_func;
30614#endif
30615#ifdef __cplusplus
30616}
30617#endif
30618
30619int
30620main ()
30621{
30622return f != $ac_func;
30623 ;
30624 return 0;
30625}
30626_ACEOF
30627rm -f conftest.$ac_objext conftest$ac_exeext
30628if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30629 (eval $ac_link) 2>conftest.er1
a848cd7e 30630 ac_status=$?
ac1cb8d3
VS
30631 grep -v '^ *+' conftest.er1 >conftest.err
30632 rm -f conftest.er1
30633 cat conftest.err >&5
a848cd7e
SC
30634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30635 (exit $ac_status); } &&
17a7bf57 30636 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30638 (eval $ac_try) 2>&5
30639 ac_status=$?
30640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30641 (exit $ac_status); }; } &&
30642 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30644 (eval $ac_try) 2>&5
30645 ac_status=$?
30646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30647 (exit $ac_status); }; }; then
30648 eval "$as_ac_var=yes"
30649else
30650 echo "$as_me: failed program was:" >&5
30651sed 's/^/| /' conftest.$ac_ext >&5
30652
30653eval "$as_ac_var=no"
30654fi
ac1cb8d3
VS
30655rm -f conftest.err conftest.$ac_objext \
30656 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30657fi
30658echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30659echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30660if test `eval echo '${'$as_ac_var'}'` = yes; then
30661 cat >>confdefs.h <<_ACEOF
30662#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30663_ACEOF
30664 cat >>confdefs.h <<\_ACEOF
30665#define HAVE_NANOSLEEP 1
30666_ACEOF
30667
30668else
30669
30670 echo "$as_me:$LINENO: checking for nanosleep in -lposix4" >&5
30671echo $ECHO_N "checking for nanosleep in -lposix4... $ECHO_C" >&6
30672if test "${ac_cv_lib_posix4_nanosleep+set}" = set; then
30673 echo $ECHO_N "(cached) $ECHO_C" >&6
30674else
30675 ac_check_lib_save_LIBS=$LIBS
30676LIBS="-lposix4 $LIBS"
30677cat >conftest.$ac_ext <<_ACEOF
30678/* confdefs.h. */
30679_ACEOF
30680cat confdefs.h >>conftest.$ac_ext
30681cat >>conftest.$ac_ext <<_ACEOF
30682/* end confdefs.h. */
30683
30684/* Override any gcc2 internal prototype to avoid an error. */
30685#ifdef __cplusplus
30686extern "C"
30687#endif
30688/* We use char because int might match the return type of a gcc2
30689 builtin and then its argument prototype would still apply. */
30690char nanosleep ();
30691int
30692main ()
30693{
30694nanosleep ();
30695 ;
30696 return 0;
30697}
30698_ACEOF
30699rm -f conftest.$ac_objext conftest$ac_exeext
30700if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30701 (eval $ac_link) 2>conftest.er1
a848cd7e 30702 ac_status=$?
ac1cb8d3
VS
30703 grep -v '^ *+' conftest.er1 >conftest.err
30704 rm -f conftest.er1
30705 cat conftest.err >&5
a848cd7e
SC
30706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30707 (exit $ac_status); } &&
17a7bf57 30708 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30710 (eval $ac_try) 2>&5
30711 ac_status=$?
30712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30713 (exit $ac_status); }; } &&
30714 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30716 (eval $ac_try) 2>&5
30717 ac_status=$?
30718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30719 (exit $ac_status); }; }; then
30720 ac_cv_lib_posix4_nanosleep=yes
30721else
30722 echo "$as_me: failed program was:" >&5
30723sed 's/^/| /' conftest.$ac_ext >&5
30724
30725ac_cv_lib_posix4_nanosleep=no
30726fi
ac1cb8d3
VS
30727rm -f conftest.err conftest.$ac_objext \
30728 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30729LIBS=$ac_check_lib_save_LIBS
30730fi
30731echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_nanosleep" >&5
30732echo "${ECHO_T}$ac_cv_lib_posix4_nanosleep" >&6
30733if test $ac_cv_lib_posix4_nanosleep = yes; then
30734
30735 cat >>confdefs.h <<\_ACEOF
30736#define HAVE_NANOSLEEP 1
30737_ACEOF
30738
30739 POSIX4_LINK=" -lposix4"
30740
30741else
30742
30743
30744for ac_func in usleep
30745do
30746as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30747echo "$as_me:$LINENO: checking for $ac_func" >&5
30748echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30749if eval "test \"\${$as_ac_var+set}\" = set"; then
30750 echo $ECHO_N "(cached) $ECHO_C" >&6
30751else
30752 cat >conftest.$ac_ext <<_ACEOF
30753/* confdefs.h. */
30754_ACEOF
30755cat confdefs.h >>conftest.$ac_ext
30756cat >>conftest.$ac_ext <<_ACEOF
30757/* end confdefs.h. */
ac1cb8d3
VS
30758/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30759 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30760#define $ac_func innocuous_$ac_func
30761
a848cd7e
SC
30762/* System header to define __stub macros and hopefully few prototypes,
30763 which can conflict with char $ac_func (); below.
30764 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30765 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 30766
a848cd7e
SC
30767#ifdef __STDC__
30768# include <limits.h>
30769#else
30770# include <assert.h>
30771#endif
ac1cb8d3
VS
30772
30773#undef $ac_func
30774
a848cd7e
SC
30775/* Override any gcc2 internal prototype to avoid an error. */
30776#ifdef __cplusplus
30777extern "C"
30778{
30779#endif
30780/* We use char because int might match the return type of a gcc2
30781 builtin and then its argument prototype would still apply. */
30782char $ac_func ();
30783/* The GNU C library defines this for functions which it implements
30784 to always fail with ENOSYS. Some functions are actually named
30785 something starting with __ and the normal name is an alias. */
30786#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30787choke me
30788#else
30789char (*f) () = $ac_func;
30790#endif
30791#ifdef __cplusplus
30792}
30793#endif
30794
30795int
30796main ()
30797{
30798return f != $ac_func;
30799 ;
30800 return 0;
30801}
30802_ACEOF
30803rm -f conftest.$ac_objext conftest$ac_exeext
30804if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30805 (eval $ac_link) 2>conftest.er1
a848cd7e 30806 ac_status=$?
ac1cb8d3
VS
30807 grep -v '^ *+' conftest.er1 >conftest.err
30808 rm -f conftest.er1
30809 cat conftest.err >&5
a848cd7e
SC
30810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30811 (exit $ac_status); } &&
17a7bf57 30812 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30814 (eval $ac_try) 2>&5
30815 ac_status=$?
30816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30817 (exit $ac_status); }; } &&
30818 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30820 (eval $ac_try) 2>&5
30821 ac_status=$?
30822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30823 (exit $ac_status); }; }; then
30824 eval "$as_ac_var=yes"
30825else
30826 echo "$as_me: failed program was:" >&5
30827sed 's/^/| /' conftest.$ac_ext >&5
30828
30829eval "$as_ac_var=no"
30830fi
ac1cb8d3
VS
30831rm -f conftest.err conftest.$ac_objext \
30832 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30833fi
30834echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30835echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30836if test `eval echo '${'$as_ac_var'}'` = yes; then
30837 cat >>confdefs.h <<_ACEOF
30838#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30839_ACEOF
30840 cat >>confdefs.h <<\_ACEOF
30841#define HAVE_USLEEP 1
30842_ACEOF
30843
30844else
30845 { echo "$as_me:$LINENO: WARNING: wxSleep() function will not work" >&5
30846echo "$as_me: WARNING: wxSleep() function will not work" >&2;}
30847
30848fi
30849done
30850
30851
30852
30853fi
30854
30855
30856
30857fi
30858done
30859
30860fi
30861
30862
30863
30864for ac_func in uname gethostname
30865do
30866as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30867echo "$as_me:$LINENO: checking for $ac_func" >&5
30868echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30869if eval "test \"\${$as_ac_var+set}\" = set"; then
30870 echo $ECHO_N "(cached) $ECHO_C" >&6
30871else
30872 cat >conftest.$ac_ext <<_ACEOF
30873/* confdefs.h. */
30874_ACEOF
30875cat confdefs.h >>conftest.$ac_ext
30876cat >>conftest.$ac_ext <<_ACEOF
30877/* end confdefs.h. */
ac1cb8d3
VS
30878/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30879 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30880#define $ac_func innocuous_$ac_func
30881
a848cd7e
SC
30882/* System header to define __stub macros and hopefully few prototypes,
30883 which can conflict with char $ac_func (); below.
30884 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30885 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 30886
a848cd7e
SC
30887#ifdef __STDC__
30888# include <limits.h>
30889#else
30890# include <assert.h>
30891#endif
ac1cb8d3
VS
30892
30893#undef $ac_func
30894
a848cd7e
SC
30895/* Override any gcc2 internal prototype to avoid an error. */
30896#ifdef __cplusplus
30897extern "C"
30898{
30899#endif
30900/* We use char because int might match the return type of a gcc2
30901 builtin and then its argument prototype would still apply. */
30902char $ac_func ();
30903/* The GNU C library defines this for functions which it implements
30904 to always fail with ENOSYS. Some functions are actually named
30905 something starting with __ and the normal name is an alias. */
30906#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30907choke me
30908#else
30909char (*f) () = $ac_func;
30910#endif
30911#ifdef __cplusplus
30912}
30913#endif
30914
30915int
30916main ()
30917{
30918return f != $ac_func;
30919 ;
30920 return 0;
30921}
30922_ACEOF
30923rm -f conftest.$ac_objext conftest$ac_exeext
30924if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30925 (eval $ac_link) 2>conftest.er1
a848cd7e 30926 ac_status=$?
ac1cb8d3
VS
30927 grep -v '^ *+' conftest.er1 >conftest.err
30928 rm -f conftest.er1
30929 cat conftest.err >&5
a848cd7e
SC
30930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30931 (exit $ac_status); } &&
17a7bf57 30932 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30934 (eval $ac_try) 2>&5
30935 ac_status=$?
30936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30937 (exit $ac_status); }; } &&
30938 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30940 (eval $ac_try) 2>&5
30941 ac_status=$?
30942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30943 (exit $ac_status); }; }; then
30944 eval "$as_ac_var=yes"
30945else
30946 echo "$as_me: failed program was:" >&5
30947sed 's/^/| /' conftest.$ac_ext >&5
30948
30949eval "$as_ac_var=no"
30950fi
ac1cb8d3
VS
30951rm -f conftest.err conftest.$ac_objext \
30952 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30953fi
30954echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30955echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30956if test `eval echo '${'$as_ac_var'}'` = yes; then
30957 cat >>confdefs.h <<_ACEOF
30958#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30959_ACEOF
30960 break
30961fi
30962done
30963
30964
30965
30966
30967ac_ext=cc
30968ac_cpp='$CXXCPP $CPPFLAGS'
30969ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30970ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30971ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30972
30973
30974
30975for ac_func in strtok_r
30976do
30977as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30978echo "$as_me:$LINENO: checking for $ac_func" >&5
30979echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30980if eval "test \"\${$as_ac_var+set}\" = set"; then
30981 echo $ECHO_N "(cached) $ECHO_C" >&6
30982else
30983 cat >conftest.$ac_ext <<_ACEOF
30984/* confdefs.h. */
30985_ACEOF
30986cat confdefs.h >>conftest.$ac_ext
30987cat >>conftest.$ac_ext <<_ACEOF
30988/* end confdefs.h. */
ac1cb8d3
VS
30989/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30990 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30991#define $ac_func innocuous_$ac_func
30992
a848cd7e
SC
30993/* System header to define __stub macros and hopefully few prototypes,
30994 which can conflict with char $ac_func (); below.
30995 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30996 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 30997
a848cd7e
SC
30998#ifdef __STDC__
30999# include <limits.h>
31000#else
31001# include <assert.h>
31002#endif
ac1cb8d3
VS
31003
31004#undef $ac_func
31005
a848cd7e
SC
31006/* Override any gcc2 internal prototype to avoid an error. */
31007#ifdef __cplusplus
31008extern "C"
31009{
31010#endif
31011/* We use char because int might match the return type of a gcc2
31012 builtin and then its argument prototype would still apply. */
31013char $ac_func ();
31014/* The GNU C library defines this for functions which it implements
31015 to always fail with ENOSYS. Some functions are actually named
31016 something starting with __ and the normal name is an alias. */
31017#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31018choke me
31019#else
31020char (*f) () = $ac_func;
31021#endif
31022#ifdef __cplusplus
31023}
31024#endif
31025
31026int
31027main ()
31028{
31029return f != $ac_func;
31030 ;
31031 return 0;
31032}
31033_ACEOF
31034rm -f conftest.$ac_objext conftest$ac_exeext
31035if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31036 (eval $ac_link) 2>conftest.er1
a848cd7e 31037 ac_status=$?
ac1cb8d3
VS
31038 grep -v '^ *+' conftest.er1 >conftest.err
31039 rm -f conftest.er1
31040 cat conftest.err >&5
a848cd7e
SC
31041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31042 (exit $ac_status); } &&
17a7bf57 31043 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31045 (eval $ac_try) 2>&5
31046 ac_status=$?
31047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31048 (exit $ac_status); }; } &&
31049 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31051 (eval $ac_try) 2>&5
31052 ac_status=$?
31053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31054 (exit $ac_status); }; }; then
31055 eval "$as_ac_var=yes"
31056else
31057 echo "$as_me: failed program was:" >&5
31058sed 's/^/| /' conftest.$ac_ext >&5
31059
31060eval "$as_ac_var=no"
31061fi
ac1cb8d3
VS
31062rm -f conftest.err conftest.$ac_objext \
31063 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31064fi
31065echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31066echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31067if test `eval echo '${'$as_ac_var'}'` = yes; then
31068 cat >>confdefs.h <<_ACEOF
31069#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31070_ACEOF
31071
31072fi
31073done
31074
31075
31076ac_ext=c
31077ac_cpp='$CPP $CPPFLAGS'
31078ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31079ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31080ac_compiler_gnu=$ac_cv_c_compiler_gnu
31081
31082
31083INET_LINK=
31084
31085for ac_func in inet_addr
31086do
31087as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31088echo "$as_me:$LINENO: checking for $ac_func" >&5
31089echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31090if eval "test \"\${$as_ac_var+set}\" = set"; then
31091 echo $ECHO_N "(cached) $ECHO_C" >&6
31092else
31093 cat >conftest.$ac_ext <<_ACEOF
31094/* confdefs.h. */
31095_ACEOF
31096cat confdefs.h >>conftest.$ac_ext
31097cat >>conftest.$ac_ext <<_ACEOF
31098/* end confdefs.h. */
ac1cb8d3
VS
31099/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31100 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31101#define $ac_func innocuous_$ac_func
31102
a848cd7e
SC
31103/* System header to define __stub macros and hopefully few prototypes,
31104 which can conflict with char $ac_func (); below.
31105 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31106 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 31107
a848cd7e
SC
31108#ifdef __STDC__
31109# include <limits.h>
31110#else
31111# include <assert.h>
31112#endif
ac1cb8d3
VS
31113
31114#undef $ac_func
31115
a848cd7e
SC
31116/* Override any gcc2 internal prototype to avoid an error. */
31117#ifdef __cplusplus
31118extern "C"
31119{
31120#endif
31121/* We use char because int might match the return type of a gcc2
31122 builtin and then its argument prototype would still apply. */
31123char $ac_func ();
31124/* The GNU C library defines this for functions which it implements
31125 to always fail with ENOSYS. Some functions are actually named
31126 something starting with __ and the normal name is an alias. */
31127#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31128choke me
31129#else
31130char (*f) () = $ac_func;
31131#endif
31132#ifdef __cplusplus
31133}
31134#endif
31135
31136int
31137main ()
31138{
31139return f != $ac_func;
31140 ;
31141 return 0;
31142}
31143_ACEOF
31144rm -f conftest.$ac_objext conftest$ac_exeext
31145if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31146 (eval $ac_link) 2>conftest.er1
a848cd7e 31147 ac_status=$?
ac1cb8d3
VS
31148 grep -v '^ *+' conftest.er1 >conftest.err
31149 rm -f conftest.er1
31150 cat conftest.err >&5
a848cd7e
SC
31151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31152 (exit $ac_status); } &&
17a7bf57 31153 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31155 (eval $ac_try) 2>&5
31156 ac_status=$?
31157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31158 (exit $ac_status); }; } &&
31159 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31161 (eval $ac_try) 2>&5
31162 ac_status=$?
31163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31164 (exit $ac_status); }; }; then
31165 eval "$as_ac_var=yes"
31166else
31167 echo "$as_me: failed program was:" >&5
31168sed 's/^/| /' conftest.$ac_ext >&5
31169
31170eval "$as_ac_var=no"
31171fi
ac1cb8d3
VS
31172rm -f conftest.err conftest.$ac_objext \
31173 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31174fi
31175echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31176echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31177if test `eval echo '${'$as_ac_var'}'` = yes; then
31178 cat >>confdefs.h <<_ACEOF
31179#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31180_ACEOF
31181 cat >>confdefs.h <<\_ACEOF
31182#define HAVE_INET_ADDR 1
31183_ACEOF
31184
31185else
31186
31187 echo "$as_me:$LINENO: checking for inet_addr in -lnsl" >&5
31188echo $ECHO_N "checking for inet_addr in -lnsl... $ECHO_C" >&6
31189if test "${ac_cv_lib_nsl_inet_addr+set}" = set; then
31190 echo $ECHO_N "(cached) $ECHO_C" >&6
31191else
31192 ac_check_lib_save_LIBS=$LIBS
31193LIBS="-lnsl $LIBS"
31194cat >conftest.$ac_ext <<_ACEOF
31195/* confdefs.h. */
31196_ACEOF
31197cat confdefs.h >>conftest.$ac_ext
31198cat >>conftest.$ac_ext <<_ACEOF
31199/* end confdefs.h. */
31200
31201/* Override any gcc2 internal prototype to avoid an error. */
31202#ifdef __cplusplus
31203extern "C"
31204#endif
31205/* We use char because int might match the return type of a gcc2
31206 builtin and then its argument prototype would still apply. */
31207char inet_addr ();
31208int
31209main ()
31210{
31211inet_addr ();
31212 ;
31213 return 0;
31214}
31215_ACEOF
31216rm -f conftest.$ac_objext conftest$ac_exeext
31217if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31218 (eval $ac_link) 2>conftest.er1
a848cd7e 31219 ac_status=$?
ac1cb8d3
VS
31220 grep -v '^ *+' conftest.er1 >conftest.err
31221 rm -f conftest.er1
31222 cat conftest.err >&5
a848cd7e
SC
31223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31224 (exit $ac_status); } &&
17a7bf57 31225 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31227 (eval $ac_try) 2>&5
31228 ac_status=$?
31229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31230 (exit $ac_status); }; } &&
31231 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31233 (eval $ac_try) 2>&5
31234 ac_status=$?
31235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31236 (exit $ac_status); }; }; then
31237 ac_cv_lib_nsl_inet_addr=yes
31238else
31239 echo "$as_me: failed program was:" >&5
31240sed 's/^/| /' conftest.$ac_ext >&5
31241
31242ac_cv_lib_nsl_inet_addr=no
31243fi
ac1cb8d3
VS
31244rm -f conftest.err conftest.$ac_objext \
31245 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31246LIBS=$ac_check_lib_save_LIBS
31247fi
31248echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_inet_addr" >&5
31249echo "${ECHO_T}$ac_cv_lib_nsl_inet_addr" >&6
31250if test $ac_cv_lib_nsl_inet_addr = yes; then
31251 INET_LINK="nsl"
31252else
31253
31254 echo "$as_me:$LINENO: checking for inet_addr in -lresolv" >&5
31255echo $ECHO_N "checking for inet_addr in -lresolv... $ECHO_C" >&6
31256if test "${ac_cv_lib_resolv_inet_addr+set}" = set; then
31257 echo $ECHO_N "(cached) $ECHO_C" >&6
31258else
31259 ac_check_lib_save_LIBS=$LIBS
31260LIBS="-lresolv $LIBS"
31261cat >conftest.$ac_ext <<_ACEOF
31262/* confdefs.h. */
31263_ACEOF
31264cat confdefs.h >>conftest.$ac_ext
31265cat >>conftest.$ac_ext <<_ACEOF
31266/* end confdefs.h. */
31267
31268/* Override any gcc2 internal prototype to avoid an error. */
31269#ifdef __cplusplus
31270extern "C"
31271#endif
31272/* We use char because int might match the return type of a gcc2
31273 builtin and then its argument prototype would still apply. */
31274char inet_addr ();
31275int
31276main ()
31277{
31278inet_addr ();
31279 ;
31280 return 0;
31281}
31282_ACEOF
31283rm -f conftest.$ac_objext conftest$ac_exeext
31284if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31285 (eval $ac_link) 2>conftest.er1
a848cd7e 31286 ac_status=$?
ac1cb8d3
VS
31287 grep -v '^ *+' conftest.er1 >conftest.err
31288 rm -f conftest.er1
31289 cat conftest.err >&5
a848cd7e
SC
31290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31291 (exit $ac_status); } &&
17a7bf57 31292 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31294 (eval $ac_try) 2>&5
31295 ac_status=$?
31296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31297 (exit $ac_status); }; } &&
31298 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31300 (eval $ac_try) 2>&5
31301 ac_status=$?
31302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31303 (exit $ac_status); }; }; then
31304 ac_cv_lib_resolv_inet_addr=yes
31305else
31306 echo "$as_me: failed program was:" >&5
31307sed 's/^/| /' conftest.$ac_ext >&5
31308
31309ac_cv_lib_resolv_inet_addr=no
31310fi
ac1cb8d3
VS
31311rm -f conftest.err conftest.$ac_objext \
31312 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31313LIBS=$ac_check_lib_save_LIBS
31314fi
31315echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_addr" >&5
31316echo "${ECHO_T}$ac_cv_lib_resolv_inet_addr" >&6
31317if test $ac_cv_lib_resolv_inet_addr = yes; then
31318 INET_LINK="resolv"
31319else
31320
31321 echo "$as_me:$LINENO: checking for inet_addr in -lsocket" >&5
31322echo $ECHO_N "checking for inet_addr in -lsocket... $ECHO_C" >&6
31323if test "${ac_cv_lib_socket_inet_addr+set}" = set; then
31324 echo $ECHO_N "(cached) $ECHO_C" >&6
31325else
31326 ac_check_lib_save_LIBS=$LIBS
31327LIBS="-lsocket $LIBS"
31328cat >conftest.$ac_ext <<_ACEOF
31329/* confdefs.h. */
31330_ACEOF
31331cat confdefs.h >>conftest.$ac_ext
31332cat >>conftest.$ac_ext <<_ACEOF
31333/* end confdefs.h. */
31334
31335/* Override any gcc2 internal prototype to avoid an error. */
31336#ifdef __cplusplus
31337extern "C"
31338#endif
31339/* We use char because int might match the return type of a gcc2
31340 builtin and then its argument prototype would still apply. */
31341char inet_addr ();
31342int
31343main ()
31344{
31345inet_addr ();
31346 ;
31347 return 0;
31348}
31349_ACEOF
31350rm -f conftest.$ac_objext conftest$ac_exeext
31351if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31352 (eval $ac_link) 2>conftest.er1
a848cd7e 31353 ac_status=$?
ac1cb8d3
VS
31354 grep -v '^ *+' conftest.er1 >conftest.err
31355 rm -f conftest.er1
31356 cat conftest.err >&5
a848cd7e
SC
31357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31358 (exit $ac_status); } &&
17a7bf57 31359 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31361 (eval $ac_try) 2>&5
31362 ac_status=$?
31363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31364 (exit $ac_status); }; } &&
31365 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31367 (eval $ac_try) 2>&5
31368 ac_status=$?
31369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31370 (exit $ac_status); }; }; then
31371 ac_cv_lib_socket_inet_addr=yes
31372else
31373 echo "$as_me: failed program was:" >&5
31374sed 's/^/| /' conftest.$ac_ext >&5
31375
31376ac_cv_lib_socket_inet_addr=no
31377fi
ac1cb8d3
VS
31378rm -f conftest.err conftest.$ac_objext \
31379 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31380LIBS=$ac_check_lib_save_LIBS
31381fi
31382echo "$as_me:$LINENO: result: $ac_cv_lib_socket_inet_addr" >&5
31383echo "${ECHO_T}$ac_cv_lib_socket_inet_addr" >&6
31384if test $ac_cv_lib_socket_inet_addr = yes; then
31385 INET_LINK="socket"
31386
31387fi
31388
31389
31390
31391fi
31392
31393
31394
31395fi
31396
31397
31398
31399fi
31400done
31401
31402
31403
31404for ac_func in inet_aton
31405do
31406as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31407echo "$as_me:$LINENO: checking for $ac_func" >&5
31408echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31409if eval "test \"\${$as_ac_var+set}\" = set"; then
31410 echo $ECHO_N "(cached) $ECHO_C" >&6
31411else
31412 cat >conftest.$ac_ext <<_ACEOF
31413/* confdefs.h. */
31414_ACEOF
31415cat confdefs.h >>conftest.$ac_ext
31416cat >>conftest.$ac_ext <<_ACEOF
31417/* end confdefs.h. */
ac1cb8d3
VS
31418/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31419 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31420#define $ac_func innocuous_$ac_func
31421
a848cd7e
SC
31422/* System header to define __stub macros and hopefully few prototypes,
31423 which can conflict with char $ac_func (); below.
31424 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31425 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 31426
a848cd7e
SC
31427#ifdef __STDC__
31428# include <limits.h>
31429#else
31430# include <assert.h>
31431#endif
ac1cb8d3
VS
31432
31433#undef $ac_func
31434
a848cd7e
SC
31435/* Override any gcc2 internal prototype to avoid an error. */
31436#ifdef __cplusplus
31437extern "C"
31438{
31439#endif
31440/* We use char because int might match the return type of a gcc2
31441 builtin and then its argument prototype would still apply. */
31442char $ac_func ();
31443/* The GNU C library defines this for functions which it implements
31444 to always fail with ENOSYS. Some functions are actually named
31445 something starting with __ and the normal name is an alias. */
31446#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31447choke me
31448#else
31449char (*f) () = $ac_func;
31450#endif
31451#ifdef __cplusplus
31452}
31453#endif
31454
31455int
31456main ()
31457{
31458return f != $ac_func;
31459 ;
31460 return 0;
31461}
31462_ACEOF
31463rm -f conftest.$ac_objext conftest$ac_exeext
31464if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31465 (eval $ac_link) 2>conftest.er1
a848cd7e 31466 ac_status=$?
ac1cb8d3
VS
31467 grep -v '^ *+' conftest.er1 >conftest.err
31468 rm -f conftest.er1
31469 cat conftest.err >&5
a848cd7e
SC
31470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31471 (exit $ac_status); } &&
17a7bf57 31472 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31474 (eval $ac_try) 2>&5
31475 ac_status=$?
31476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31477 (exit $ac_status); }; } &&
31478 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31480 (eval $ac_try) 2>&5
31481 ac_status=$?
31482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31483 (exit $ac_status); }; }; then
31484 eval "$as_ac_var=yes"
31485else
31486 echo "$as_me: failed program was:" >&5
31487sed 's/^/| /' conftest.$ac_ext >&5
31488
31489eval "$as_ac_var=no"
31490fi
ac1cb8d3
VS
31491rm -f conftest.err conftest.$ac_objext \
31492 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31493fi
31494echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31495echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31496if test `eval echo '${'$as_ac_var'}'` = yes; then
31497 cat >>confdefs.h <<_ACEOF
31498#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31499_ACEOF
31500 cat >>confdefs.h <<\_ACEOF
31501#define HAVE_INET_ATON 1
31502_ACEOF
31503
31504else
31505
31506 as_ac_Lib=`echo "ac_cv_lib_$INET_LINK''_inet_aton" | $as_tr_sh`
31507echo "$as_me:$LINENO: checking for inet_aton in -l$INET_LINK" >&5
31508echo $ECHO_N "checking for inet_aton in -l$INET_LINK... $ECHO_C" >&6
31509if eval "test \"\${$as_ac_Lib+set}\" = set"; then
31510 echo $ECHO_N "(cached) $ECHO_C" >&6
31511else
31512 ac_check_lib_save_LIBS=$LIBS
31513LIBS="-l$INET_LINK $LIBS"
31514cat >conftest.$ac_ext <<_ACEOF
31515/* confdefs.h. */
31516_ACEOF
31517cat confdefs.h >>conftest.$ac_ext
31518cat >>conftest.$ac_ext <<_ACEOF
31519/* end confdefs.h. */
31520
31521/* Override any gcc2 internal prototype to avoid an error. */
31522#ifdef __cplusplus
31523extern "C"
31524#endif
31525/* We use char because int might match the return type of a gcc2
31526 builtin and then its argument prototype would still apply. */
31527char inet_aton ();
31528int
31529main ()
31530{
31531inet_aton ();
31532 ;
31533 return 0;
31534}
31535_ACEOF
31536rm -f conftest.$ac_objext conftest$ac_exeext
31537if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31538 (eval $ac_link) 2>conftest.er1
a848cd7e 31539 ac_status=$?
ac1cb8d3
VS
31540 grep -v '^ *+' conftest.er1 >conftest.err
31541 rm -f conftest.er1
31542 cat conftest.err >&5
a848cd7e
SC
31543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31544 (exit $ac_status); } &&
17a7bf57 31545 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31547 (eval $ac_try) 2>&5
31548 ac_status=$?
31549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31550 (exit $ac_status); }; } &&
31551 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31553 (eval $ac_try) 2>&5
31554 ac_status=$?
31555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31556 (exit $ac_status); }; }; then
31557 eval "$as_ac_Lib=yes"
31558else
31559 echo "$as_me: failed program was:" >&5
31560sed 's/^/| /' conftest.$ac_ext >&5
31561
31562eval "$as_ac_Lib=no"
31563fi
ac1cb8d3
VS
31564rm -f conftest.err conftest.$ac_objext \
31565 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31566LIBS=$ac_check_lib_save_LIBS
31567fi
31568echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
31569echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
31570if test `eval echo '${'$as_ac_Lib'}'` = yes; then
31571 cat >>confdefs.h <<\_ACEOF
31572#define HAVE_INET_ATON 1
31573_ACEOF
31574
31575fi
31576
31577
31578fi
31579done
31580
31581
31582if test "x$INET_LINK" != "x"; then
31583 cat >>confdefs.h <<\_ACEOF
31584#define HAVE_INET_ADDR 1
31585_ACEOF
31586
31587 INET_LINK=" -l$INET_LINK"
31588fi
31589
31590fi
31591
31592
31593
31594EXTRALIBS_ESD=
31595echo "$as_me:$LINENO: checking for esd_close in -lesd" >&5
31596echo $ECHO_N "checking for esd_close in -lesd... $ECHO_C" >&6
31597if test "${ac_cv_lib_esd_esd_close+set}" = set; then
31598 echo $ECHO_N "(cached) $ECHO_C" >&6
31599else
31600 ac_check_lib_save_LIBS=$LIBS
31601LIBS="-lesd $LIBS"
31602cat >conftest.$ac_ext <<_ACEOF
31603/* confdefs.h. */
31604_ACEOF
31605cat confdefs.h >>conftest.$ac_ext
31606cat >>conftest.$ac_ext <<_ACEOF
31607/* end confdefs.h. */
31608
31609/* Override any gcc2 internal prototype to avoid an error. */
31610#ifdef __cplusplus
31611extern "C"
31612#endif
31613/* We use char because int might match the return type of a gcc2
31614 builtin and then its argument prototype would still apply. */
31615char esd_close ();
31616int
31617main ()
31618{
31619esd_close ();
31620 ;
31621 return 0;
31622}
31623_ACEOF
31624rm -f conftest.$ac_objext conftest$ac_exeext
31625if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31626 (eval $ac_link) 2>conftest.er1
a848cd7e 31627 ac_status=$?
ac1cb8d3
VS
31628 grep -v '^ *+' conftest.er1 >conftest.err
31629 rm -f conftest.er1
31630 cat conftest.err >&5
a848cd7e
SC
31631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31632 (exit $ac_status); } &&
17a7bf57 31633 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31635 (eval $ac_try) 2>&5
31636 ac_status=$?
31637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31638 (exit $ac_status); }; } &&
31639 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31641 (eval $ac_try) 2>&5
31642 ac_status=$?
31643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31644 (exit $ac_status); }; }; then
31645 ac_cv_lib_esd_esd_close=yes
31646else
31647 echo "$as_me: failed program was:" >&5
31648sed 's/^/| /' conftest.$ac_ext >&5
31649
31650ac_cv_lib_esd_esd_close=no
31651fi
ac1cb8d3
VS
31652rm -f conftest.err conftest.$ac_objext \
31653 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31654LIBS=$ac_check_lib_save_LIBS
31655fi
31656echo "$as_me:$LINENO: result: $ac_cv_lib_esd_esd_close" >&5
31657echo "${ECHO_T}$ac_cv_lib_esd_esd_close" >&6
31658if test $ac_cv_lib_esd_esd_close = yes; then
31659
31660
31661for ac_header in esd.h
31662do
31663as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
31664if eval "test \"\${$as_ac_Header+set}\" = set"; then
31665 echo "$as_me:$LINENO: checking for $ac_header" >&5
31666echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31667if eval "test \"\${$as_ac_Header+set}\" = set"; then
31668 echo $ECHO_N "(cached) $ECHO_C" >&6
31669fi
31670echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31671echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31672else
31673 # Is the header compilable?
31674echo "$as_me:$LINENO: checking $ac_header usability" >&5
31675echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
31676cat >conftest.$ac_ext <<_ACEOF
31677/* confdefs.h. */
31678_ACEOF
31679cat confdefs.h >>conftest.$ac_ext
31680cat >>conftest.$ac_ext <<_ACEOF
31681/* end confdefs.h. */
31682$ac_includes_default
31683#include <$ac_header>
31684_ACEOF
31685rm -f conftest.$ac_objext
31686if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 31687 (eval $ac_compile) 2>conftest.er1
a848cd7e 31688 ac_status=$?
ac1cb8d3
VS
31689 grep -v '^ *+' conftest.er1 >conftest.err
31690 rm -f conftest.er1
31691 cat conftest.err >&5
a848cd7e
SC
31692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31693 (exit $ac_status); } &&
17a7bf57 31694 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31696 (eval $ac_try) 2>&5
31697 ac_status=$?
31698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31699 (exit $ac_status); }; } &&
31700 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
31701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31702 (eval $ac_try) 2>&5
31703 ac_status=$?
31704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31705 (exit $ac_status); }; }; then
31706 ac_header_compiler=yes
31707else
31708 echo "$as_me: failed program was:" >&5
31709sed 's/^/| /' conftest.$ac_ext >&5
31710
31711ac_header_compiler=no
31712fi
ac1cb8d3 31713rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
31714echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31715echo "${ECHO_T}$ac_header_compiler" >&6
31716
31717# Is the header present?
31718echo "$as_me:$LINENO: checking $ac_header presence" >&5
31719echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
31720cat >conftest.$ac_ext <<_ACEOF
31721/* confdefs.h. */
31722_ACEOF
31723cat confdefs.h >>conftest.$ac_ext
31724cat >>conftest.$ac_ext <<_ACEOF
31725/* end confdefs.h. */
31726#include <$ac_header>
31727_ACEOF
31728if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
31729 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
31730 ac_status=$?
31731 grep -v '^ *+' conftest.er1 >conftest.err
31732 rm -f conftest.er1
31733 cat conftest.err >&5
31734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31735 (exit $ac_status); } >/dev/null; then
31736 if test -s conftest.err; then
31737 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 31738 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
31739 else
31740 ac_cpp_err=
31741 fi
31742else
31743 ac_cpp_err=yes
31744fi
31745if test -z "$ac_cpp_err"; then
31746 ac_header_preproc=yes
31747else
31748 echo "$as_me: failed program was:" >&5
31749sed 's/^/| /' conftest.$ac_ext >&5
31750
31751 ac_header_preproc=no
31752fi
31753rm -f conftest.err conftest.$ac_ext
31754echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31755echo "${ECHO_T}$ac_header_preproc" >&6
31756
31757# So? What about this header?
ac1cb8d3
VS
31758case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31759 yes:no: )
a848cd7e
SC
31760 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
31761echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
31762 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
31763echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
31764 ac_header_preproc=yes
a848cd7e 31765 ;;
ac1cb8d3 31766 no:yes:* )
a848cd7e
SC
31767 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
31768echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
31769 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
31770echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
31771 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
31772echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
31773 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
31774echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
31775 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
31776echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
31777 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
31778echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
31779 (
31780 cat <<\_ASBOX
ac1cb8d3
VS
31781## ----------------------------------------- ##
31782## Report this to wx-dev@lists.wxwidgets.org ##
31783## ----------------------------------------- ##
a848cd7e
SC
31784_ASBOX
31785 ) |
31786 sed "s/^/$as_me: WARNING: /" >&2
31787 ;;
31788esac
31789echo "$as_me:$LINENO: checking for $ac_header" >&5
31790echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31791if eval "test \"\${$as_ac_Header+set}\" = set"; then
31792 echo $ECHO_N "(cached) $ECHO_C" >&6
31793else
ac1cb8d3 31794 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
31795fi
31796echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31797echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31798
31799fi
31800if test `eval echo '${'$as_ac_Header'}'` = yes; then
31801 cat >>confdefs.h <<_ACEOF
31802#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
31803_ACEOF
31804
31805 EXTRALIBS_ESD="-lesd"
31806
31807fi
31808
31809done
31810
31811
31812fi
31813
31814
31815
31816echo "$as_me:$LINENO: checking for known CD-ROM interface" >&5
31817echo $ECHO_N "checking for known CD-ROM interface... $ECHO_C" >&6
31818cat >conftest.$ac_ext <<_ACEOF
31819/* confdefs.h. */
31820_ACEOF
31821cat confdefs.h >>conftest.$ac_ext
31822cat >>conftest.$ac_ext <<_ACEOF
31823/* end confdefs.h. */
31824#ifdef __linux__
31825 #include <linux/cdrom.h>
31826 #else
31827 /* For Solaris */
31828 #include <sys/cdio.h>
31829 #endif
31830
31831int
31832main ()
31833{
31834struct cdrom_tocentry entry, old_entry;
31835 ;
31836 return 0;
31837}
31838_ACEOF
31839rm -f conftest.$ac_objext
31840if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 31841 (eval $ac_compile) 2>conftest.er1
a848cd7e 31842 ac_status=$?
ac1cb8d3
VS
31843 grep -v '^ *+' conftest.er1 >conftest.err
31844 rm -f conftest.er1
31845 cat conftest.err >&5
a848cd7e
SC
31846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31847 (exit $ac_status); } &&
17a7bf57 31848 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31850 (eval $ac_try) 2>&5
31851 ac_status=$?
31852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31853 (exit $ac_status); }; } &&
31854 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
31855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31856 (eval $ac_try) 2>&5
31857 ac_status=$?
31858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31859 (exit $ac_status); }; }; then
31860 echo "$as_me:$LINENO: result: yes" >&5
31861echo "${ECHO_T}yes" >&6
31862 cat >>confdefs.h <<\_ACEOF
31863#define HAVE_KNOWN_CDROM_INTERFACE 1
31864_ACEOF
31865
31866else
31867 echo "$as_me: failed program was:" >&5
31868sed 's/^/| /' conftest.$ac_ext >&5
31869
31870echo "$as_me:$LINENO: result: no" >&5
31871echo "${ECHO_T}no" >&6
31872fi
ac1cb8d3 31873rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
31874
31875
31876cat >confcache <<\_ACEOF
31877# This file is a shell script that caches the results of configure
31878# tests run on this system so they can be shared between configure
31879# scripts and configure runs, see configure's option --config-cache.
31880# It is not useful on other systems. If it contains results you don't
31881# want to keep, you may remove or edit it.
31882#
31883# config.status only pays attention to the cache file if you give it
31884# the --recheck option to rerun configure.
31885#
31886# `ac_cv_env_foo' variables (set or unset) will be overridden when
31887# loading this file, other *unset* `ac_cv_foo' will be assigned the
31888# following values.
31889
31890_ACEOF
31891
31892# The following way of writing the cache mishandles newlines in values,
31893# but we know of no workaround that is simple, portable, and efficient.
31894# So, don't put newlines in cache variables' values.
31895# Ultrix sh set writes to stderr and can't be redirected directly,
31896# and sets the high bit in the cache file unless we assign to the vars.
31897{
31898 (set) 2>&1 |
31899 case `(ac_space=' '; set | grep ac_space) 2>&1` in
31900 *ac_space=\ *)
31901 # `set' does not quote correctly, so add quotes (double-quote
31902 # substitution turns \\\\ into \\, and sed turns \\ into \).
31903 sed -n \
ac1cb8d3
VS
31904 "s/'/'\\\\''/g;
31905 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a848cd7e
SC
31906 ;;
31907 *)
31908 # `set' quotes correctly as required by POSIX, so do not add quotes.
31909 sed -n \
ac1cb8d3 31910 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
31911 ;;
31912 esac;
31913} |
31914 sed '
31915 t clear
31916 : clear
31917 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
31918 t end
31919 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
31920 : end' >>confcache
31921if diff $cache_file confcache >/dev/null 2>&1; then :; else
31922 if test -w $cache_file; then
31923 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
31924 cat confcache >$cache_file
31925 else
31926 echo "not updating unwritable cache $cache_file"
31927 fi
31928fi
31929rm -f confcache
31930
31931
31932CPP_MT_FLAG=
31933if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then
31934
31935
31936 THREADS_LINK=
31937 THREADS_CFLAGS=
31938
31939 if test "$wxUSE_THREADS" = "yes" ; then
31940 if test "$USE_BEOS" = 1; then
31941 { echo "$as_me:$LINENO: WARNING: BeOS threads are not yet supported... disabled" >&5
31942echo "$as_me: WARNING: BeOS threads are not yet supported... disabled" >&2;}
31943 wxUSE_THREADS="no"
31944 fi
31945 fi
31946
31947 if test "$wxUSE_THREADS" = "yes" ; then
31948
31949
31950 THREAD_OPTS="-pthread"
31951 case "${host}" in
31952 *-*-solaris2* | *-*-sunos4* )
31953 if test "x$GCC" = "xyes"; then
31954 THREAD_OPTS="-pthreads $THREAD_OPTS"
31955 else
31956 THREAD_OPTS="-mt $THREAD_OPTS"
31957 fi
31958 ;;
31959 *-*-freebsd*)
31960 THREAD_OPTS="-kthread lthread $THREAD_OPTS c_r"
31961 ;;
31962 *-*-darwin* | *-*-cygwin* )
31963 THREAD_OPTS=""
31964 ;;
31965 *-*-aix*)
31966 THREAD_OPTS="pthreads"
31967 ;;
31968 *-hp-hpux* )
31969 if test "x$GCC" != "xyes"; then
31970 THREAD_OPTS=""
31971 fi
31972 ;;
31973
31974 *-*-irix* )
31975 if test "x$GCC" = "xyes"; then
31976 THREAD_OPTS=""
31977 fi
31978 ;;
31979
31980 *-*-*UnixWare*)
31981 if test "x$GCC" != "xyes"; then
31982 THREAD_OPTS="-Ethread"
31983 fi
31984 ;;
31985 esac
31986
31987 THREAD_OPTS="$THREAD_OPTS pthread none"
31988
31989 THREADS_OK=no
31990 for flag in $THREAD_OPTS; do
31991 case $flag in
31992 none)
31993 echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
31994echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6
31995 ;;
31996
31997 -*)
31998 echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
31999echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6
32000 THREADS_CFLAGS="$flag"
32001 ;;
32002
32003 *)
32004 echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
32005echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6
32006 THREADS_LINK="-l$flag"
32007 ;;
32008 esac
32009
32010 save_LIBS="$LIBS"
32011 save_CFLAGS="$CFLAGS"
32012 LIBS="$THREADS_LINK $LIBS"
32013 CFLAGS="$THREADS_CFLAGS $CFLAGS"
32014
32015 cat >conftest.$ac_ext <<_ACEOF
32016/* confdefs.h. */
32017_ACEOF
32018cat confdefs.h >>conftest.$ac_ext
32019cat >>conftest.$ac_ext <<_ACEOF
32020/* end confdefs.h. */
32021#include <pthread.h>
32022int
32023main ()
32024{
32025pthread_create(0,0,0,0);
32026 ;
32027 return 0;
32028}
32029_ACEOF
32030rm -f conftest.$ac_objext conftest$ac_exeext
32031if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32032 (eval $ac_link) 2>conftest.er1
a848cd7e 32033 ac_status=$?
ac1cb8d3
VS
32034 grep -v '^ *+' conftest.er1 >conftest.err
32035 rm -f conftest.er1
32036 cat conftest.err >&5
a848cd7e
SC
32037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32038 (exit $ac_status); } &&
17a7bf57 32039 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32041 (eval $ac_try) 2>&5
32042 ac_status=$?
32043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32044 (exit $ac_status); }; } &&
32045 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32047 (eval $ac_try) 2>&5
32048 ac_status=$?
32049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32050 (exit $ac_status); }; }; then
32051 THREADS_OK=yes
32052else
32053 echo "$as_me: failed program was:" >&5
32054sed 's/^/| /' conftest.$ac_ext >&5
32055
32056fi
ac1cb8d3
VS
32057rm -f conftest.err conftest.$ac_objext \
32058 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32059
32060 LIBS="$save_LIBS"
32061 CFLAGS="$save_CFLAGS"
32062
32063 echo "$as_me:$LINENO: result: $THREADS_OK" >&5
32064echo "${ECHO_T}$THREADS_OK" >&6
32065 if test "x$THREADS_OK" = "xyes"; then
32066 break;
32067 fi
32068
32069 THREADS_LINK=""
32070 THREADS_CFLAGS=""
32071 done
32072
32073 if test "x$THREADS_OK" != "xyes"; then
32074 wxUSE_THREADS=no
32075 { echo "$as_me:$LINENO: WARNING: No thread support on this system... disabled" >&5
32076echo "$as_me: WARNING: No thread support on this system... disabled" >&2;}
32077 else
32078 LDFLAGS="$THREADS_CFLAGS $LDFLAGS"
32079 LIBS="$THREADS_LINK $LIBS"
32080
32081 echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
32082echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6
32083 flag=no
32084 case "${host}" in
32085 *-aix*)
32086 LDFLAGS="-L/usr/lib/threads $LDFLAGS"
32087 flag="-D_THREAD_SAFE"
32088 ;;
32089 *-freebsd*)
32090 flag="-D_THREAD_SAFE"
32091 ;;
32092 *-hp-hpux* )
32093 flag="-D_REENTRANT"
32094 if test "x$GCC" != "xyes"; then
32095 flag="$flag -D_RWSTD_MULTI_THREAD"
473276a9
VS
32096
32097 LIBS="$LIBS -lcma"
a848cd7e
SC
32098 fi
32099 ;;
32100 *solaris* | alpha*-osf*)
32101 flag="-D_REENTRANT"
32102 ;;
32103 esac
32104 echo "$as_me:$LINENO: result: ${flag}" >&5
32105echo "${ECHO_T}${flag}" >&6
32106 if test "x$flag" != xno; then
32107 THREADS_CFLAGS="$THREADS_CFLAGS $flag"
32108 fi
32109
32110 if test "x$THREADS_CFLAGS" != "x"; then
32111 CFLAGS="$CFLAGS $THREADS_CFLAGS"
32112 CXXFLAGS="$CXXFLAGS $THREADS_CFLAGS"
32113 fi
32114 fi
32115 fi
32116
32117 if test "$wxUSE_THREADS" = "yes" ; then
32118
32119for ac_func in thr_setconcurrency
32120do
32121as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32122echo "$as_me:$LINENO: checking for $ac_func" >&5
32123echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32124if eval "test \"\${$as_ac_var+set}\" = set"; then
32125 echo $ECHO_N "(cached) $ECHO_C" >&6
32126else
32127 cat >conftest.$ac_ext <<_ACEOF
32128/* confdefs.h. */
32129_ACEOF
32130cat confdefs.h >>conftest.$ac_ext
32131cat >>conftest.$ac_ext <<_ACEOF
32132/* end confdefs.h. */
ac1cb8d3
VS
32133/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32134 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32135#define $ac_func innocuous_$ac_func
32136
a848cd7e
SC
32137/* System header to define __stub macros and hopefully few prototypes,
32138 which can conflict with char $ac_func (); below.
32139 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32140 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 32141
a848cd7e
SC
32142#ifdef __STDC__
32143# include <limits.h>
32144#else
32145# include <assert.h>
32146#endif
ac1cb8d3
VS
32147
32148#undef $ac_func
32149
a848cd7e
SC
32150/* Override any gcc2 internal prototype to avoid an error. */
32151#ifdef __cplusplus
32152extern "C"
32153{
32154#endif
32155/* We use char because int might match the return type of a gcc2
32156 builtin and then its argument prototype would still apply. */
32157char $ac_func ();
32158/* The GNU C library defines this for functions which it implements
32159 to always fail with ENOSYS. Some functions are actually named
32160 something starting with __ and the normal name is an alias. */
32161#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32162choke me
32163#else
32164char (*f) () = $ac_func;
32165#endif
32166#ifdef __cplusplus
32167}
32168#endif
32169
32170int
32171main ()
32172{
32173return f != $ac_func;
32174 ;
32175 return 0;
32176}
32177_ACEOF
32178rm -f conftest.$ac_objext conftest$ac_exeext
32179if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32180 (eval $ac_link) 2>conftest.er1
a848cd7e 32181 ac_status=$?
ac1cb8d3
VS
32182 grep -v '^ *+' conftest.er1 >conftest.err
32183 rm -f conftest.er1
32184 cat conftest.err >&5
a848cd7e
SC
32185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32186 (exit $ac_status); } &&
17a7bf57 32187 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32189 (eval $ac_try) 2>&5
32190 ac_status=$?
32191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32192 (exit $ac_status); }; } &&
32193 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32195 (eval $ac_try) 2>&5
32196 ac_status=$?
32197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32198 (exit $ac_status); }; }; then
32199 eval "$as_ac_var=yes"
32200else
32201 echo "$as_me: failed program was:" >&5
32202sed 's/^/| /' conftest.$ac_ext >&5
32203
32204eval "$as_ac_var=no"
32205fi
ac1cb8d3
VS
32206rm -f conftest.err conftest.$ac_objext \
32207 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32208fi
32209echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32210echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32211if test `eval echo '${'$as_ac_var'}'` = yes; then
32212 cat >>confdefs.h <<_ACEOF
32213#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32214_ACEOF
32215
32216fi
32217done
32218
32219
32220
32221for ac_header in sched.h
32222do
32223as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
32224if eval "test \"\${$as_ac_Header+set}\" = set"; then
32225 echo "$as_me:$LINENO: checking for $ac_header" >&5
32226echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
32227if eval "test \"\${$as_ac_Header+set}\" = set"; then
32228 echo $ECHO_N "(cached) $ECHO_C" >&6
32229fi
32230echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
32231echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
32232else
32233 # Is the header compilable?
32234echo "$as_me:$LINENO: checking $ac_header usability" >&5
32235echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
32236cat >conftest.$ac_ext <<_ACEOF
32237/* confdefs.h. */
32238_ACEOF
32239cat confdefs.h >>conftest.$ac_ext
32240cat >>conftest.$ac_ext <<_ACEOF
32241/* end confdefs.h. */
32242$ac_includes_default
32243#include <$ac_header>
32244_ACEOF
32245rm -f conftest.$ac_objext
32246if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 32247 (eval $ac_compile) 2>conftest.er1
a848cd7e 32248 ac_status=$?
ac1cb8d3
VS
32249 grep -v '^ *+' conftest.er1 >conftest.err
32250 rm -f conftest.er1
32251 cat conftest.err >&5
a848cd7e
SC
32252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32253 (exit $ac_status); } &&
17a7bf57 32254 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32256 (eval $ac_try) 2>&5
32257 ac_status=$?
32258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32259 (exit $ac_status); }; } &&
32260 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
32261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32262 (eval $ac_try) 2>&5
32263 ac_status=$?
32264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32265 (exit $ac_status); }; }; then
32266 ac_header_compiler=yes
32267else
32268 echo "$as_me: failed program was:" >&5
32269sed 's/^/| /' conftest.$ac_ext >&5
32270
32271ac_header_compiler=no
32272fi
ac1cb8d3 32273rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
32274echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32275echo "${ECHO_T}$ac_header_compiler" >&6
32276
32277# Is the header present?
32278echo "$as_me:$LINENO: checking $ac_header presence" >&5
32279echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
32280cat >conftest.$ac_ext <<_ACEOF
32281/* confdefs.h. */
32282_ACEOF
32283cat confdefs.h >>conftest.$ac_ext
32284cat >>conftest.$ac_ext <<_ACEOF
32285/* end confdefs.h. */
32286#include <$ac_header>
32287_ACEOF
32288if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
32289 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
32290 ac_status=$?
32291 grep -v '^ *+' conftest.er1 >conftest.err
32292 rm -f conftest.er1
32293 cat conftest.err >&5
32294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32295 (exit $ac_status); } >/dev/null; then
32296 if test -s conftest.err; then
32297 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 32298 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
32299 else
32300 ac_cpp_err=
32301 fi
32302else
32303 ac_cpp_err=yes
32304fi
32305if test -z "$ac_cpp_err"; then
32306 ac_header_preproc=yes
32307else
32308 echo "$as_me: failed program was:" >&5
32309sed 's/^/| /' conftest.$ac_ext >&5
32310
32311 ac_header_preproc=no
32312fi
32313rm -f conftest.err conftest.$ac_ext
32314echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32315echo "${ECHO_T}$ac_header_preproc" >&6
32316
32317# So? What about this header?
ac1cb8d3
VS
32318case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32319 yes:no: )
a848cd7e
SC
32320 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
32321echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
32322 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
32323echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
32324 ac_header_preproc=yes
a848cd7e 32325 ;;
ac1cb8d3 32326 no:yes:* )
a848cd7e
SC
32327 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
32328echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
32329 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
32330echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
32331 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
32332echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
32333 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
32334echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
32335 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
32336echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
32337 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
32338echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
32339 (
32340 cat <<\_ASBOX
ac1cb8d3
VS
32341## ----------------------------------------- ##
32342## Report this to wx-dev@lists.wxwidgets.org ##
32343## ----------------------------------------- ##
a848cd7e
SC
32344_ASBOX
32345 ) |
32346 sed "s/^/$as_me: WARNING: /" >&2
32347 ;;
32348esac
32349echo "$as_me:$LINENO: checking for $ac_header" >&5
32350echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
32351if eval "test \"\${$as_ac_Header+set}\" = set"; then
32352 echo $ECHO_N "(cached) $ECHO_C" >&6
32353else
ac1cb8d3 32354 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
32355fi
32356echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
32357echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
32358
32359fi
32360if test `eval echo '${'$as_ac_Header'}'` = yes; then
32361 cat >>confdefs.h <<_ACEOF
32362#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
32363_ACEOF
32364
32365fi
32366
32367done
32368
32369 if test "$ac_cv_header_sched_h" = "yes"; then
32370 echo "$as_me:$LINENO: checking for sched_yield" >&5
32371echo $ECHO_N "checking for sched_yield... $ECHO_C" >&6
32372if test "${ac_cv_func_sched_yield+set}" = set; then
32373 echo $ECHO_N "(cached) $ECHO_C" >&6
32374else
32375 cat >conftest.$ac_ext <<_ACEOF
32376/* confdefs.h. */
32377_ACEOF
32378cat confdefs.h >>conftest.$ac_ext
32379cat >>conftest.$ac_ext <<_ACEOF
32380/* end confdefs.h. */
ac1cb8d3
VS
32381/* Define sched_yield to an innocuous variant, in case <limits.h> declares sched_yield.
32382 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32383#define sched_yield innocuous_sched_yield
32384
a848cd7e
SC
32385/* System header to define __stub macros and hopefully few prototypes,
32386 which can conflict with char sched_yield (); below.
32387 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32388 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 32389
a848cd7e
SC
32390#ifdef __STDC__
32391# include <limits.h>
32392#else
32393# include <assert.h>
32394#endif
ac1cb8d3
VS
32395
32396#undef sched_yield
32397
a848cd7e
SC
32398/* Override any gcc2 internal prototype to avoid an error. */
32399#ifdef __cplusplus
32400extern "C"
32401{
32402#endif
32403/* We use char because int might match the return type of a gcc2
32404 builtin and then its argument prototype would still apply. */
32405char sched_yield ();
32406/* The GNU C library defines this for functions which it implements
32407 to always fail with ENOSYS. Some functions are actually named
32408 something starting with __ and the normal name is an alias. */
32409#if defined (__stub_sched_yield) || defined (__stub___sched_yield)
32410choke me
32411#else
32412char (*f) () = sched_yield;
32413#endif
32414#ifdef __cplusplus
32415}
32416#endif
32417
32418int
32419main ()
32420{
32421return f != sched_yield;
32422 ;
32423 return 0;
32424}
32425_ACEOF
32426rm -f conftest.$ac_objext conftest$ac_exeext
32427if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32428 (eval $ac_link) 2>conftest.er1
a848cd7e 32429 ac_status=$?
ac1cb8d3
VS
32430 grep -v '^ *+' conftest.er1 >conftest.err
32431 rm -f conftest.er1
32432 cat conftest.err >&5
a848cd7e
SC
32433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32434 (exit $ac_status); } &&
17a7bf57 32435 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32437 (eval $ac_try) 2>&5
32438 ac_status=$?
32439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32440 (exit $ac_status); }; } &&
32441 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32443 (eval $ac_try) 2>&5
32444 ac_status=$?
32445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32446 (exit $ac_status); }; }; then
32447 ac_cv_func_sched_yield=yes
32448else
32449 echo "$as_me: failed program was:" >&5
32450sed 's/^/| /' conftest.$ac_ext >&5
32451
32452ac_cv_func_sched_yield=no
32453fi
ac1cb8d3
VS
32454rm -f conftest.err conftest.$ac_objext \
32455 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32456fi
32457echo "$as_me:$LINENO: result: $ac_cv_func_sched_yield" >&5
32458echo "${ECHO_T}$ac_cv_func_sched_yield" >&6
32459if test $ac_cv_func_sched_yield = yes; then
32460 cat >>confdefs.h <<\_ACEOF
32461#define HAVE_SCHED_YIELD 1
32462_ACEOF
32463
32464else
32465
32466 echo "$as_me:$LINENO: checking for sched_yield in -lposix4" >&5
32467echo $ECHO_N "checking for sched_yield in -lposix4... $ECHO_C" >&6
32468if test "${ac_cv_lib_posix4_sched_yield+set}" = set; then
32469 echo $ECHO_N "(cached) $ECHO_C" >&6
32470else
32471 ac_check_lib_save_LIBS=$LIBS
32472LIBS="-lposix4 $LIBS"
32473cat >conftest.$ac_ext <<_ACEOF
32474/* confdefs.h. */
32475_ACEOF
32476cat confdefs.h >>conftest.$ac_ext
32477cat >>conftest.$ac_ext <<_ACEOF
32478/* end confdefs.h. */
32479
32480/* Override any gcc2 internal prototype to avoid an error. */
32481#ifdef __cplusplus
32482extern "C"
32483#endif
32484/* We use char because int might match the return type of a gcc2
32485 builtin and then its argument prototype would still apply. */
32486char sched_yield ();
32487int
32488main ()
32489{
32490sched_yield ();
32491 ;
32492 return 0;
32493}
32494_ACEOF
32495rm -f conftest.$ac_objext conftest$ac_exeext
32496if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32497 (eval $ac_link) 2>conftest.er1
a848cd7e 32498 ac_status=$?
ac1cb8d3
VS
32499 grep -v '^ *+' conftest.er1 >conftest.err
32500 rm -f conftest.er1
32501 cat conftest.err >&5
a848cd7e
SC
32502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32503 (exit $ac_status); } &&
17a7bf57 32504 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32506 (eval $ac_try) 2>&5
32507 ac_status=$?
32508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32509 (exit $ac_status); }; } &&
32510 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32512 (eval $ac_try) 2>&5
32513 ac_status=$?
32514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32515 (exit $ac_status); }; }; then
32516 ac_cv_lib_posix4_sched_yield=yes
32517else
32518 echo "$as_me: failed program was:" >&5
32519sed 's/^/| /' conftest.$ac_ext >&5
32520
32521ac_cv_lib_posix4_sched_yield=no
32522fi
ac1cb8d3
VS
32523rm -f conftest.err conftest.$ac_objext \
32524 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32525LIBS=$ac_check_lib_save_LIBS
32526fi
32527echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_yield" >&5
32528echo "${ECHO_T}$ac_cv_lib_posix4_sched_yield" >&6
32529if test $ac_cv_lib_posix4_sched_yield = yes; then
32530 cat >>confdefs.h <<\_ACEOF
32531#define HAVE_SCHED_YIELD 1
32532_ACEOF
32533 POSIX4_LINK=" -lposix4"
32534else
32535 { echo "$as_me:$LINENO: WARNING: wxThread::Yield will not work properly" >&5
32536echo "$as_me: WARNING: wxThread::Yield will not work properly" >&2;}
32537
32538fi
32539
32540
32541
32542fi
32543
32544 fi
32545
32546 HAVE_PRIOR_FUNCS=0
32547 echo "$as_me:$LINENO: checking for pthread_attr_getschedpolicy" >&5
32548echo $ECHO_N "checking for pthread_attr_getschedpolicy... $ECHO_C" >&6
32549if test "${ac_cv_func_pthread_attr_getschedpolicy+set}" = set; then
32550 echo $ECHO_N "(cached) $ECHO_C" >&6
32551else
32552 cat >conftest.$ac_ext <<_ACEOF
32553/* confdefs.h. */
32554_ACEOF
32555cat confdefs.h >>conftest.$ac_ext
32556cat >>conftest.$ac_ext <<_ACEOF
32557/* end confdefs.h. */
ac1cb8d3
VS
32558/* Define pthread_attr_getschedpolicy to an innocuous variant, in case <limits.h> declares pthread_attr_getschedpolicy.
32559 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32560#define pthread_attr_getschedpolicy innocuous_pthread_attr_getschedpolicy
32561
a848cd7e
SC
32562/* System header to define __stub macros and hopefully few prototypes,
32563 which can conflict with char pthread_attr_getschedpolicy (); below.
32564 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32565 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 32566
a848cd7e
SC
32567#ifdef __STDC__
32568# include <limits.h>
32569#else
32570# include <assert.h>
32571#endif
ac1cb8d3
VS
32572
32573#undef pthread_attr_getschedpolicy
32574
a848cd7e
SC
32575/* Override any gcc2 internal prototype to avoid an error. */
32576#ifdef __cplusplus
32577extern "C"
32578{
32579#endif
32580/* We use char because int might match the return type of a gcc2
32581 builtin and then its argument prototype would still apply. */
32582char pthread_attr_getschedpolicy ();
32583/* The GNU C library defines this for functions which it implements
32584 to always fail with ENOSYS. Some functions are actually named
32585 something starting with __ and the normal name is an alias. */
32586#if defined (__stub_pthread_attr_getschedpolicy) || defined (__stub___pthread_attr_getschedpolicy)
32587choke me
32588#else
32589char (*f) () = pthread_attr_getschedpolicy;
32590#endif
32591#ifdef __cplusplus
32592}
32593#endif
32594
32595int
32596main ()
32597{
32598return f != pthread_attr_getschedpolicy;
32599 ;
32600 return 0;
32601}
32602_ACEOF
32603rm -f conftest.$ac_objext conftest$ac_exeext
32604if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32605 (eval $ac_link) 2>conftest.er1
a848cd7e 32606 ac_status=$?
ac1cb8d3
VS
32607 grep -v '^ *+' conftest.er1 >conftest.err
32608 rm -f conftest.er1
32609 cat conftest.err >&5
a848cd7e
SC
32610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32611 (exit $ac_status); } &&
17a7bf57 32612 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
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); }; } &&
32618 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32620 (eval $ac_try) 2>&5
32621 ac_status=$?
32622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32623 (exit $ac_status); }; }; then
32624 ac_cv_func_pthread_attr_getschedpolicy=yes
32625else
32626 echo "$as_me: failed program was:" >&5
32627sed 's/^/| /' conftest.$ac_ext >&5
32628
32629ac_cv_func_pthread_attr_getschedpolicy=no
32630fi
ac1cb8d3
VS
32631rm -f conftest.err conftest.$ac_objext \
32632 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32633fi
32634echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_getschedpolicy" >&5
32635echo "${ECHO_T}$ac_cv_func_pthread_attr_getschedpolicy" >&6
32636if test $ac_cv_func_pthread_attr_getschedpolicy = yes; then
32637 echo "$as_me:$LINENO: checking for pthread_attr_setschedparam" >&5
32638echo $ECHO_N "checking for pthread_attr_setschedparam... $ECHO_C" >&6
32639if test "${ac_cv_func_pthread_attr_setschedparam+set}" = set; then
32640 echo $ECHO_N "(cached) $ECHO_C" >&6
32641else
32642 cat >conftest.$ac_ext <<_ACEOF
32643/* confdefs.h. */
32644_ACEOF
32645cat confdefs.h >>conftest.$ac_ext
32646cat >>conftest.$ac_ext <<_ACEOF
32647/* end confdefs.h. */
ac1cb8d3
VS
32648/* Define pthread_attr_setschedparam to an innocuous variant, in case <limits.h> declares pthread_attr_setschedparam.
32649 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32650#define pthread_attr_setschedparam innocuous_pthread_attr_setschedparam
32651
a848cd7e
SC
32652/* System header to define __stub macros and hopefully few prototypes,
32653 which can conflict with char pthread_attr_setschedparam (); below.
32654 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32655 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 32656
a848cd7e
SC
32657#ifdef __STDC__
32658# include <limits.h>
32659#else
32660# include <assert.h>
32661#endif
ac1cb8d3
VS
32662
32663#undef pthread_attr_setschedparam
32664
a848cd7e
SC
32665/* Override any gcc2 internal prototype to avoid an error. */
32666#ifdef __cplusplus
32667extern "C"
32668{
32669#endif
32670/* We use char because int might match the return type of a gcc2
32671 builtin and then its argument prototype would still apply. */
32672char pthread_attr_setschedparam ();
32673/* The GNU C library defines this for functions which it implements
32674 to always fail with ENOSYS. Some functions are actually named
32675 something starting with __ and the normal name is an alias. */
32676#if defined (__stub_pthread_attr_setschedparam) || defined (__stub___pthread_attr_setschedparam)
32677choke me
32678#else
32679char (*f) () = pthread_attr_setschedparam;
32680#endif
32681#ifdef __cplusplus
32682}
32683#endif
32684
32685int
32686main ()
32687{
32688return f != pthread_attr_setschedparam;
32689 ;
32690 return 0;
32691}
32692_ACEOF
32693rm -f conftest.$ac_objext conftest$ac_exeext
32694if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32695 (eval $ac_link) 2>conftest.er1
a848cd7e 32696 ac_status=$?
ac1cb8d3
VS
32697 grep -v '^ *+' conftest.er1 >conftest.err
32698 rm -f conftest.er1
32699 cat conftest.err >&5
a848cd7e
SC
32700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32701 (exit $ac_status); } &&
17a7bf57 32702 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32704 (eval $ac_try) 2>&5
32705 ac_status=$?
32706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32707 (exit $ac_status); }; } &&
32708 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32710 (eval $ac_try) 2>&5
32711 ac_status=$?
32712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32713 (exit $ac_status); }; }; then
32714 ac_cv_func_pthread_attr_setschedparam=yes
32715else
32716 echo "$as_me: failed program was:" >&5
32717sed 's/^/| /' conftest.$ac_ext >&5
32718
32719ac_cv_func_pthread_attr_setschedparam=no
32720fi
ac1cb8d3
VS
32721rm -f conftest.err conftest.$ac_objext \
32722 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32723fi
32724echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_setschedparam" >&5
32725echo "${ECHO_T}$ac_cv_func_pthread_attr_setschedparam" >&6
32726if test $ac_cv_func_pthread_attr_setschedparam = yes; then
32727 echo "$as_me:$LINENO: checking for sched_get_priority_max" >&5
32728echo $ECHO_N "checking for sched_get_priority_max... $ECHO_C" >&6
32729if test "${ac_cv_func_sched_get_priority_max+set}" = set; then
32730 echo $ECHO_N "(cached) $ECHO_C" >&6
32731else
32732 cat >conftest.$ac_ext <<_ACEOF
32733/* confdefs.h. */
32734_ACEOF
32735cat confdefs.h >>conftest.$ac_ext
32736cat >>conftest.$ac_ext <<_ACEOF
32737/* end confdefs.h. */
ac1cb8d3
VS
32738/* Define sched_get_priority_max to an innocuous variant, in case <limits.h> declares sched_get_priority_max.
32739 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32740#define sched_get_priority_max innocuous_sched_get_priority_max
32741
a848cd7e
SC
32742/* System header to define __stub macros and hopefully few prototypes,
32743 which can conflict with char sched_get_priority_max (); below.
32744 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32745 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 32746
a848cd7e
SC
32747#ifdef __STDC__
32748# include <limits.h>
32749#else
32750# include <assert.h>
32751#endif
ac1cb8d3
VS
32752
32753#undef sched_get_priority_max
32754
a848cd7e
SC
32755/* Override any gcc2 internal prototype to avoid an error. */
32756#ifdef __cplusplus
32757extern "C"
32758{
32759#endif
32760/* We use char because int might match the return type of a gcc2
32761 builtin and then its argument prototype would still apply. */
32762char sched_get_priority_max ();
32763/* The GNU C library defines this for functions which it implements
32764 to always fail with ENOSYS. Some functions are actually named
32765 something starting with __ and the normal name is an alias. */
32766#if defined (__stub_sched_get_priority_max) || defined (__stub___sched_get_priority_max)
32767choke me
32768#else
32769char (*f) () = sched_get_priority_max;
32770#endif
32771#ifdef __cplusplus
32772}
32773#endif
32774
32775int
32776main ()
32777{
32778return f != sched_get_priority_max;
32779 ;
32780 return 0;
32781}
32782_ACEOF
32783rm -f conftest.$ac_objext conftest$ac_exeext
32784if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32785 (eval $ac_link) 2>conftest.er1
a848cd7e 32786 ac_status=$?
ac1cb8d3
VS
32787 grep -v '^ *+' conftest.er1 >conftest.err
32788 rm -f conftest.er1
32789 cat conftest.err >&5
a848cd7e
SC
32790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32791 (exit $ac_status); } &&
17a7bf57 32792 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32794 (eval $ac_try) 2>&5
32795 ac_status=$?
32796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32797 (exit $ac_status); }; } &&
32798 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32800 (eval $ac_try) 2>&5
32801 ac_status=$?
32802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32803 (exit $ac_status); }; }; then
32804 ac_cv_func_sched_get_priority_max=yes
32805else
32806 echo "$as_me: failed program was:" >&5
32807sed 's/^/| /' conftest.$ac_ext >&5
32808
32809ac_cv_func_sched_get_priority_max=no
32810fi
ac1cb8d3
VS
32811rm -f conftest.err conftest.$ac_objext \
32812 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32813fi
32814echo "$as_me:$LINENO: result: $ac_cv_func_sched_get_priority_max" >&5
32815echo "${ECHO_T}$ac_cv_func_sched_get_priority_max" >&6
32816if test $ac_cv_func_sched_get_priority_max = yes; then
32817 HAVE_PRIOR_FUNCS=1
32818else
32819 echo "$as_me:$LINENO: checking for sched_get_priority_max in -lposix4" >&5
32820echo $ECHO_N "checking for sched_get_priority_max in -lposix4... $ECHO_C" >&6
32821if test "${ac_cv_lib_posix4_sched_get_priority_max+set}" = set; then
32822 echo $ECHO_N "(cached) $ECHO_C" >&6
32823else
32824 ac_check_lib_save_LIBS=$LIBS
32825LIBS="-lposix4 $LIBS"
32826cat >conftest.$ac_ext <<_ACEOF
32827/* confdefs.h. */
32828_ACEOF
32829cat confdefs.h >>conftest.$ac_ext
32830cat >>conftest.$ac_ext <<_ACEOF
32831/* end confdefs.h. */
32832
32833/* Override any gcc2 internal prototype to avoid an error. */
32834#ifdef __cplusplus
32835extern "C"
32836#endif
32837/* We use char because int might match the return type of a gcc2
32838 builtin and then its argument prototype would still apply. */
32839char sched_get_priority_max ();
32840int
32841main ()
32842{
32843sched_get_priority_max ();
32844 ;
32845 return 0;
32846}
32847_ACEOF
32848rm -f conftest.$ac_objext conftest$ac_exeext
32849if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32850 (eval $ac_link) 2>conftest.er1
a848cd7e 32851 ac_status=$?
ac1cb8d3
VS
32852 grep -v '^ *+' conftest.er1 >conftest.err
32853 rm -f conftest.er1
32854 cat conftest.err >&5
a848cd7e
SC
32855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32856 (exit $ac_status); } &&
17a7bf57 32857 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32859 (eval $ac_try) 2>&5
32860 ac_status=$?
32861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32862 (exit $ac_status); }; } &&
32863 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32865 (eval $ac_try) 2>&5
32866 ac_status=$?
32867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32868 (exit $ac_status); }; }; then
32869 ac_cv_lib_posix4_sched_get_priority_max=yes
32870else
32871 echo "$as_me: failed program was:" >&5
32872sed 's/^/| /' conftest.$ac_ext >&5
32873
32874ac_cv_lib_posix4_sched_get_priority_max=no
32875fi
ac1cb8d3
VS
32876rm -f conftest.err conftest.$ac_objext \
32877 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32878LIBS=$ac_check_lib_save_LIBS
32879fi
32880echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_get_priority_max" >&5
32881echo "${ECHO_T}$ac_cv_lib_posix4_sched_get_priority_max" >&6
32882if test $ac_cv_lib_posix4_sched_get_priority_max = yes; then
32883
32884 HAVE_PRIOR_FUNCS=1
32885 POSIX4_LINK=" -lposix4"
32886
32887fi
32888
32889
32890fi
32891
32892
32893fi
32894
32895
32896fi
32897
32898
32899 if test "$HAVE_PRIOR_FUNCS" = 1; then
32900 cat >>confdefs.h <<\_ACEOF
32901#define HAVE_THREAD_PRIORITY_FUNCTIONS 1
32902_ACEOF
32903
32904 else
32905 { echo "$as_me:$LINENO: WARNING: Setting thread priority will not work" >&5
32906echo "$as_me: WARNING: Setting thread priority will not work" >&2;}
32907 fi
32908
32909 echo "$as_me:$LINENO: checking for pthread_cancel" >&5
32910echo $ECHO_N "checking for pthread_cancel... $ECHO_C" >&6
32911if test "${ac_cv_func_pthread_cancel+set}" = set; then
32912 echo $ECHO_N "(cached) $ECHO_C" >&6
32913else
32914 cat >conftest.$ac_ext <<_ACEOF
32915/* confdefs.h. */
32916_ACEOF
32917cat confdefs.h >>conftest.$ac_ext
32918cat >>conftest.$ac_ext <<_ACEOF
32919/* end confdefs.h. */
ac1cb8d3
VS
32920/* Define pthread_cancel to an innocuous variant, in case <limits.h> declares pthread_cancel.
32921 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32922#define pthread_cancel innocuous_pthread_cancel
32923
a848cd7e
SC
32924/* System header to define __stub macros and hopefully few prototypes,
32925 which can conflict with char pthread_cancel (); below.
32926 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32927 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 32928
a848cd7e
SC
32929#ifdef __STDC__
32930# include <limits.h>
32931#else
32932# include <assert.h>
32933#endif
ac1cb8d3
VS
32934
32935#undef pthread_cancel
32936
a848cd7e
SC
32937/* Override any gcc2 internal prototype to avoid an error. */
32938#ifdef __cplusplus
32939extern "C"
32940{
32941#endif
32942/* We use char because int might match the return type of a gcc2
32943 builtin and then its argument prototype would still apply. */
32944char pthread_cancel ();
32945/* The GNU C library defines this for functions which it implements
32946 to always fail with ENOSYS. Some functions are actually named
32947 something starting with __ and the normal name is an alias. */
32948#if defined (__stub_pthread_cancel) || defined (__stub___pthread_cancel)
32949choke me
32950#else
32951char (*f) () = pthread_cancel;
32952#endif
32953#ifdef __cplusplus
32954}
32955#endif
32956
32957int
32958main ()
32959{
32960return f != pthread_cancel;
32961 ;
32962 return 0;
32963}
32964_ACEOF
32965rm -f conftest.$ac_objext conftest$ac_exeext
32966if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32967 (eval $ac_link) 2>conftest.er1
a848cd7e 32968 ac_status=$?
ac1cb8d3
VS
32969 grep -v '^ *+' conftest.er1 >conftest.err
32970 rm -f conftest.er1
32971 cat conftest.err >&5
a848cd7e
SC
32972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32973 (exit $ac_status); } &&
17a7bf57 32974 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32976 (eval $ac_try) 2>&5
32977 ac_status=$?
32978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32979 (exit $ac_status); }; } &&
32980 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32982 (eval $ac_try) 2>&5
32983 ac_status=$?
32984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32985 (exit $ac_status); }; }; then
32986 ac_cv_func_pthread_cancel=yes
32987else
32988 echo "$as_me: failed program was:" >&5
32989sed 's/^/| /' conftest.$ac_ext >&5
32990
32991ac_cv_func_pthread_cancel=no
32992fi
ac1cb8d3
VS
32993rm -f conftest.err conftest.$ac_objext \
32994 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32995fi
32996echo "$as_me:$LINENO: result: $ac_cv_func_pthread_cancel" >&5
32997echo "${ECHO_T}$ac_cv_func_pthread_cancel" >&6
32998if test $ac_cv_func_pthread_cancel = yes; then
32999 cat >>confdefs.h <<\_ACEOF
33000#define HAVE_PTHREAD_CANCEL 1
33001_ACEOF
33002
33003else
33004 { echo "$as_me:$LINENO: WARNING: wxThread::Kill() will not work properly" >&5
33005echo "$as_me: WARNING: wxThread::Kill() will not work properly" >&2;}
33006fi
33007
33008
33009
33010
33011 echo "$as_me:$LINENO: checking for pthread_mutexattr_t" >&5
33012echo $ECHO_N "checking for pthread_mutexattr_t... $ECHO_C" >&6
33013if test "${wx_cv_type_pthread_mutexattr_t+set}" = set; then
33014 echo $ECHO_N "(cached) $ECHO_C" >&6
33015else
33016
33017 cat >conftest.$ac_ext <<_ACEOF
33018/* confdefs.h. */
33019_ACEOF
33020cat confdefs.h >>conftest.$ac_ext
33021cat >>conftest.$ac_ext <<_ACEOF
33022/* end confdefs.h. */
33023#include <pthread.h>
33024int
33025main ()
33026{
33027
33028 pthread_mutexattr_t attr;
33029 pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
33030
33031 ;
33032 return 0;
33033}
33034_ACEOF
33035rm -f conftest.$ac_objext
33036if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 33037 (eval $ac_compile) 2>conftest.er1
a848cd7e 33038 ac_status=$?
ac1cb8d3
VS
33039 grep -v '^ *+' conftest.er1 >conftest.err
33040 rm -f conftest.er1
33041 cat conftest.err >&5
a848cd7e
SC
33042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33043 (exit $ac_status); } &&
17a7bf57 33044 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33046 (eval $ac_try) 2>&5
33047 ac_status=$?
33048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33049 (exit $ac_status); }; } &&
33050 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
33051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33052 (eval $ac_try) 2>&5
33053 ac_status=$?
33054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33055 (exit $ac_status); }; }; then
33056
33057 wx_cv_type_pthread_mutexattr_t=yes
33058
33059else
33060 echo "$as_me: failed program was:" >&5
33061sed 's/^/| /' conftest.$ac_ext >&5
33062
33063
33064 wx_cv_type_pthread_mutexattr_t=no
33065
33066
33067fi
ac1cb8d3 33068rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
33069
33070fi
33071echo "$as_me:$LINENO: result: $wx_cv_type_pthread_mutexattr_t" >&5
33072echo "${ECHO_T}$wx_cv_type_pthread_mutexattr_t" >&6
33073
33074 if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then
33075 cat >>confdefs.h <<\_ACEOF
33076#define HAVE_PTHREAD_MUTEXATTR_T 1
33077_ACEOF
33078
33079 else
33080 echo "$as_me:$LINENO: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5
33081echo $ECHO_N "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER... $ECHO_C" >&6
33082if test "${wx_cv_type_pthread_rec_mutex_init+set}" = set; then
33083 echo $ECHO_N "(cached) $ECHO_C" >&6
33084else
33085
33086 cat >conftest.$ac_ext <<_ACEOF
33087/* confdefs.h. */
33088_ACEOF
33089cat confdefs.h >>conftest.$ac_ext
33090cat >>conftest.$ac_ext <<_ACEOF
33091/* end confdefs.h. */
33092#include <pthread.h>
33093int
33094main ()
33095{
33096
33097 pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;
33098
33099 ;
33100 return 0;
33101}
33102_ACEOF
33103rm -f conftest.$ac_objext
33104if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 33105 (eval $ac_compile) 2>conftest.er1
a848cd7e 33106 ac_status=$?
ac1cb8d3
VS
33107 grep -v '^ *+' conftest.er1 >conftest.err
33108 rm -f conftest.er1
33109 cat conftest.err >&5
a848cd7e
SC
33110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33111 (exit $ac_status); } &&
17a7bf57 33112 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33114 (eval $ac_try) 2>&5
33115 ac_status=$?
33116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33117 (exit $ac_status); }; } &&
33118 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
33119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33120 (eval $ac_try) 2>&5
33121 ac_status=$?
33122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33123 (exit $ac_status); }; }; then
33124
33125 wx_cv_type_pthread_rec_mutex_init=yes
33126
33127else
33128 echo "$as_me: failed program was:" >&5
33129sed 's/^/| /' conftest.$ac_ext >&5
33130
33131
33132 wx_cv_type_pthread_rec_mutex_init=no
33133
33134
33135fi
ac1cb8d3 33136rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
33137
33138fi
33139echo "$as_me:$LINENO: result: $wx_cv_type_pthread_rec_mutex_init" >&5
33140echo "${ECHO_T}$wx_cv_type_pthread_rec_mutex_init" >&6
33141 if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then
33142 cat >>confdefs.h <<\_ACEOF
33143#define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1
33144_ACEOF
33145
33146 else
33147 { echo "$as_me:$LINENO: WARNING: wxMutex won't be recursive on this platform" >&5
33148echo "$as_me: WARNING: wxMutex won't be recursive on this platform" >&2;}
33149 fi
33150 fi
33151 fi
33152
33153else
33154 if test "$wxUSE_THREADS" = "yes" ; then
33155 case "${host}" in
33156 *-*-mingw32* )
33157 echo "$as_me:$LINENO: checking if compiler supports -mthreads" >&5
33158echo $ECHO_N "checking if compiler supports -mthreads... $ECHO_C" >&6
33159if test "${wx_cv_cflags_mthread+set}" = set; then
33160 echo $ECHO_N "(cached) $ECHO_C" >&6
33161else
33162
33163 CFLAGS_OLD="$CFLAGS"
33164 CFLAGS="$CFLAGS -mthreads"
33165 cat >conftest.$ac_ext <<_ACEOF
33166/* confdefs.h. */
33167_ACEOF
33168cat confdefs.h >>conftest.$ac_ext
33169cat >>conftest.$ac_ext <<_ACEOF
33170/* end confdefs.h. */
33171
33172int
33173main ()
33174{
33175
33176 ;
33177 return 0;
33178}
33179_ACEOF
33180rm -f conftest.$ac_objext
33181if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 33182 (eval $ac_compile) 2>conftest.er1
a848cd7e 33183 ac_status=$?
ac1cb8d3
VS
33184 grep -v '^ *+' conftest.er1 >conftest.err
33185 rm -f conftest.er1
33186 cat conftest.err >&5
a848cd7e
SC
33187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33188 (exit $ac_status); } &&
17a7bf57 33189 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33191 (eval $ac_try) 2>&5
33192 ac_status=$?
33193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33194 (exit $ac_status); }; } &&
33195 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
33196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33197 (eval $ac_try) 2>&5
33198 ac_status=$?
33199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33200 (exit $ac_status); }; }; then
33201 wx_cv_cflags_mthread=yes
33202else
33203 echo "$as_me: failed program was:" >&5
33204sed 's/^/| /' conftest.$ac_ext >&5
33205
33206wx_cv_cflags_mthread=no
33207
33208fi
ac1cb8d3 33209rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
33210
33211
33212fi
33213echo "$as_me:$LINENO: result: $wx_cv_cflags_mthread" >&5
33214echo "${ECHO_T}$wx_cv_cflags_mthread" >&6
33215
33216 if test "$wx_cv_cflags_mthread" = "yes"; then
33217 CXXFLAGS="$CXXFLAGS -mthreads"
33218 TOOLCHAIN_DEFS="$TOOLCHAIN_DEFS -mthreads"
33219 LDFLAGS="$LDFLAGS -mthreads"
33220 else
33221 CFLAGS="$CFLAGS_OLD"
33222 fi
33223 ;;
33224 *-pc-os2*emx )
33225 CFLAGS="$CFLAGS -Zmt -D__ST_MT_ERRNO__"
33226 CXXFLAGS="$CXXFLAGS -Zmt -D__ST_MT_ERRNO__"
33227 LDFLAGS="$LDFLAGS -Zmt"
33228 ;;
33229 esac
33230 fi
33231fi
33232
33233if test "$wxUSE_THREADS" = "yes"; then
33234 cat >>confdefs.h <<\_ACEOF
33235#define wxUSE_THREADS 1
33236_ACEOF
33237
33238
33239 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread"
33240else
33241 if test "$ac_cv_func_strtok_r" = "yes"; then
33242 echo "$as_me:$LINENO: checking if -D_REENTRANT is needed" >&5
33243echo $ECHO_N "checking if -D_REENTRANT is needed... $ECHO_C" >&6
33244 if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then
33245 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D_REENTRANT"
33246 echo "$as_me:$LINENO: result: yes" >&5
33247echo "${ECHO_T}yes" >&6
33248 else
33249 echo "$as_me:$LINENO: result: no" >&5
33250echo "${ECHO_T}no" >&6
33251 fi
33252 fi
33253fi
33254
33255if test "$WXGTK20" = 1 ; then
33256 cat >>confdefs.h <<_ACEOF
33257#define __WXGTK20__ $WXGTK20
33258_ACEOF
33259
33260 WXGTK12=1
33261fi
33262
33263if test "$WXGTK12" = 1 ; then
33264 cat >>confdefs.h <<_ACEOF
33265#define __WXGTK12__ $WXGTK12
33266_ACEOF
33267
33268fi
33269
33270if test "$WXGTK127" = 1 ; then
33271 cat >>confdefs.h <<_ACEOF
33272#define __WXGTK127__ $WXGTK127
33273_ACEOF
33274
33275fi
33276
33277if test "$WXGPE" = 1 ; then
33278 cat >>confdefs.h <<_ACEOF
33279#define __WXGPE__ $WXGPE
33280_ACEOF
33281
33282fi
33283
33284WXDEBUG=
33285
33286if test "$wxUSE_DEBUG_INFO" = "yes" ; then
33287 WXDEBUG="-g"
33288 wxUSE_OPTIMISE=no
33289fi
33290
33291if test "$wxUSE_DEBUG_GDB" = "yes" ; then
33292 wxUSE_DEBUG_INFO=yes
33293 WXDEBUG="-ggdb"
33294fi
33295
33296if test "$wxUSE_DEBUG_FLAG" = "yes" ; then
33297 cat >>confdefs.h <<\_ACEOF
33298#define WXDEBUG 1
33299_ACEOF
33300
33301 WXDEBUG_DEFINE="-D__WXDEBUG__"
33302else
33303 if test "$wxUSE_GTK" = 1 ; then
33304 WXDEBUG_DEFINE="-DGTK_NO_CHECK_CASTS"
33305 fi
33306fi
33307
33308if test "$wxUSE_MEM_TRACING" = "yes" ; then
33309 cat >>confdefs.h <<\_ACEOF
33310#define wxUSE_MEMORY_TRACING 1
33311_ACEOF
33312
33313 cat >>confdefs.h <<\_ACEOF
33314#define wxUSE_GLOBAL_MEMORY_OPERATORS 1
33315_ACEOF
33316
33317 cat >>confdefs.h <<\_ACEOF
33318#define wxUSE_DEBUG_NEW_ALWAYS 1
33319_ACEOF
33320
33321 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck"
33322fi
33323
33324if test "$wxUSE_DMALLOC" = "yes" ; then
33325 DMALLOC_LIBS="-ldmalloc"
33326fi
33327
33328PROFILE=
33329if test "$wxUSE_PROFILE" = "yes" ; then
33330 PROFILE=" -pg"
33331fi
33332
33333CODE_GEN_FLAGS=
33334CODE_GEN_FLAGS_CXX=
33335if test "$GCC" = "yes" ; then
33336 if test "$wxUSE_NO_RTTI" = "yes" ; then
33337 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-rtti"
33338 fi
33339 if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
33340 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-exceptions"
33341 fi
33342 if test "$wxUSE_PERMISSIVE" = "yes" ; then
33343 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fpermissive"
33344 fi
33345
33346 case "${host}" in
33347 powerpc*-*-aix* )
33348 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -mminimal-toc"
33349 ;;
33350 *-hppa* )
33351 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -ffunction-sections"
33352 ;;
33353 esac
33354fi
33355
33356OPTIMISE=
33357if test "$wxUSE_OPTIMISE" = "no" ; then
33358 if test "$GCC" = yes ; then
33359 OPTIMISE="-O0"
33360 fi
33361else
33362 if test "$GCC" = yes ; then
33363 OPTIMISE="-O2"
33364
33365 case "${host}" in
33366 i586-*-*|i686-*-* )
33367 OPTIMISE="${OPTIMISE} "
33368 ;;
33369 esac
33370 else
33371 OPTIMISE="-O"
33372 fi
33373fi
33374
33375
33376if test "x$WXWIN_COMPATIBILITY_2_2" = "xyes"; then
33377 cat >>confdefs.h <<\_ACEOF
33378#define WXWIN_COMPATIBILITY_2_2 1
33379_ACEOF
33380
33381
33382 WXWIN_COMPATIBILITY_2_4="yes"
33383fi
33384
33385if test "x$WXWIN_COMPATIBILITY_2_4" != "xno"; then
33386 cat >>confdefs.h <<\_ACEOF
33387#define WXWIN_COMPATIBILITY_2_4 1
33388_ACEOF
33389
33390fi
33391
33392
33393if test "$wxUSE_GUI" = "yes"; then
33394 cat >>confdefs.h <<\_ACEOF
33395#define wxUSE_GUI 1
33396_ACEOF
33397
33398
33399 else
33400 cat >>confdefs.h <<\_ACEOF
33401#define wxUSE_NOGUI 1
33402_ACEOF
33403
33404fi
33405
33406
33407if test "$wxUSE_UNIX" = "yes"; then
33408 cat >>confdefs.h <<\_ACEOF
33409#define wxUSE_UNIX 1
33410_ACEOF
33411
33412fi
33413
33414
33415if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then
33416
33417 HAVE_DL_FUNCS=0
33418 HAVE_SHL_FUNCS=0
33419 if test "$wxUSE_DYNAMIC_LOADER" = "yes" -o "$wxUSE_DYNLIB_CLASS" = "yes" ; then
33420 if test "$USE_DARWIN" = 1; then
33421 HAVE_DL_FUNCS=1
33422 else
33423
33424for ac_func in dlopen
33425do
33426as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33427echo "$as_me:$LINENO: checking for $ac_func" >&5
33428echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33429if eval "test \"\${$as_ac_var+set}\" = set"; then
33430 echo $ECHO_N "(cached) $ECHO_C" >&6
33431else
33432 cat >conftest.$ac_ext <<_ACEOF
33433/* confdefs.h. */
33434_ACEOF
33435cat confdefs.h >>conftest.$ac_ext
33436cat >>conftest.$ac_ext <<_ACEOF
33437/* end confdefs.h. */
ac1cb8d3
VS
33438/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33439 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33440#define $ac_func innocuous_$ac_func
33441
a848cd7e
SC
33442/* System header to define __stub macros and hopefully few prototypes,
33443 which can conflict with char $ac_func (); below.
33444 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33445 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 33446
a848cd7e
SC
33447#ifdef __STDC__
33448# include <limits.h>
33449#else
33450# include <assert.h>
33451#endif
ac1cb8d3
VS
33452
33453#undef $ac_func
33454
a848cd7e
SC
33455/* Override any gcc2 internal prototype to avoid an error. */
33456#ifdef __cplusplus
33457extern "C"
33458{
33459#endif
33460/* We use char because int might match the return type of a gcc2
33461 builtin and then its argument prototype would still apply. */
33462char $ac_func ();
33463/* The GNU C library defines this for functions which it implements
33464 to always fail with ENOSYS. Some functions are actually named
33465 something starting with __ and the normal name is an alias. */
33466#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33467choke me
33468#else
33469char (*f) () = $ac_func;
33470#endif
33471#ifdef __cplusplus
33472}
33473#endif
33474
33475int
33476main ()
33477{
33478return f != $ac_func;
33479 ;
33480 return 0;
33481}
33482_ACEOF
33483rm -f conftest.$ac_objext conftest$ac_exeext
33484if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33485 (eval $ac_link) 2>conftest.er1
a848cd7e 33486 ac_status=$?
ac1cb8d3
VS
33487 grep -v '^ *+' conftest.er1 >conftest.err
33488 rm -f conftest.er1
33489 cat conftest.err >&5
a848cd7e
SC
33490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33491 (exit $ac_status); } &&
17a7bf57 33492 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33494 (eval $ac_try) 2>&5
33495 ac_status=$?
33496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33497 (exit $ac_status); }; } &&
33498 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33500 (eval $ac_try) 2>&5
33501 ac_status=$?
33502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33503 (exit $ac_status); }; }; then
33504 eval "$as_ac_var=yes"
33505else
33506 echo "$as_me: failed program was:" >&5
33507sed 's/^/| /' conftest.$ac_ext >&5
33508
33509eval "$as_ac_var=no"
33510fi
ac1cb8d3
VS
33511rm -f conftest.err conftest.$ac_objext \
33512 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33513fi
33514echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33515echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33516if test `eval echo '${'$as_ac_var'}'` = yes; then
33517 cat >>confdefs.h <<_ACEOF
33518#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33519_ACEOF
33520
33521 cat >>confdefs.h <<\_ACEOF
33522#define HAVE_DLOPEN 1
33523_ACEOF
33524
33525 HAVE_DL_FUNCS=1
33526
33527else
33528
33529 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
33530echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
33531if test "${ac_cv_lib_dl_dlopen+set}" = set; then
33532 echo $ECHO_N "(cached) $ECHO_C" >&6
33533else
33534 ac_check_lib_save_LIBS=$LIBS
33535LIBS="-ldl $LIBS"
33536cat >conftest.$ac_ext <<_ACEOF
33537/* confdefs.h. */
33538_ACEOF
33539cat confdefs.h >>conftest.$ac_ext
33540cat >>conftest.$ac_ext <<_ACEOF
33541/* end confdefs.h. */
33542
33543/* Override any gcc2 internal prototype to avoid an error. */
33544#ifdef __cplusplus
33545extern "C"
33546#endif
33547/* We use char because int might match the return type of a gcc2
33548 builtin and then its argument prototype would still apply. */
33549char dlopen ();
33550int
33551main ()
33552{
33553dlopen ();
33554 ;
33555 return 0;
33556}
33557_ACEOF
33558rm -f conftest.$ac_objext conftest$ac_exeext
33559if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33560 (eval $ac_link) 2>conftest.er1
a848cd7e 33561 ac_status=$?
ac1cb8d3
VS
33562 grep -v '^ *+' conftest.er1 >conftest.err
33563 rm -f conftest.er1
33564 cat conftest.err >&5
a848cd7e
SC
33565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33566 (exit $ac_status); } &&
17a7bf57 33567 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33569 (eval $ac_try) 2>&5
33570 ac_status=$?
33571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33572 (exit $ac_status); }; } &&
33573 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33575 (eval $ac_try) 2>&5
33576 ac_status=$?
33577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33578 (exit $ac_status); }; }; then
33579 ac_cv_lib_dl_dlopen=yes
33580else
33581 echo "$as_me: failed program was:" >&5
33582sed 's/^/| /' conftest.$ac_ext >&5
33583
33584ac_cv_lib_dl_dlopen=no
33585fi
ac1cb8d3
VS
33586rm -f conftest.err conftest.$ac_objext \
33587 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33588LIBS=$ac_check_lib_save_LIBS
33589fi
33590echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
33591echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
33592if test $ac_cv_lib_dl_dlopen = yes; then
33593
33594 cat >>confdefs.h <<\_ACEOF
33595#define HAVE_DLOPEN 1
33596_ACEOF
33597
33598 HAVE_DL_FUNCS=1
33599 DL_LINK=" -ldl$DL_LINK"
33600
33601else
33602
33603
33604for ac_func in shl_load
33605do
33606as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33607echo "$as_me:$LINENO: checking for $ac_func" >&5
33608echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33609if eval "test \"\${$as_ac_var+set}\" = set"; then
33610 echo $ECHO_N "(cached) $ECHO_C" >&6
33611else
33612 cat >conftest.$ac_ext <<_ACEOF
33613/* confdefs.h. */
33614_ACEOF
33615cat confdefs.h >>conftest.$ac_ext
33616cat >>conftest.$ac_ext <<_ACEOF
33617/* end confdefs.h. */
ac1cb8d3
VS
33618/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33619 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33620#define $ac_func innocuous_$ac_func
33621
a848cd7e
SC
33622/* System header to define __stub macros and hopefully few prototypes,
33623 which can conflict with char $ac_func (); below.
33624 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33625 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 33626
a848cd7e
SC
33627#ifdef __STDC__
33628# include <limits.h>
33629#else
33630# include <assert.h>
33631#endif
ac1cb8d3
VS
33632
33633#undef $ac_func
33634
a848cd7e
SC
33635/* Override any gcc2 internal prototype to avoid an error. */
33636#ifdef __cplusplus
33637extern "C"
33638{
33639#endif
33640/* We use char because int might match the return type of a gcc2
33641 builtin and then its argument prototype would still apply. */
33642char $ac_func ();
33643/* The GNU C library defines this for functions which it implements
33644 to always fail with ENOSYS. Some functions are actually named
33645 something starting with __ and the normal name is an alias. */
33646#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33647choke me
33648#else
33649char (*f) () = $ac_func;
33650#endif
33651#ifdef __cplusplus
33652}
33653#endif
33654
33655int
33656main ()
33657{
33658return f != $ac_func;
33659 ;
33660 return 0;
33661}
33662_ACEOF
33663rm -f conftest.$ac_objext conftest$ac_exeext
33664if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33665 (eval $ac_link) 2>conftest.er1
a848cd7e 33666 ac_status=$?
ac1cb8d3
VS
33667 grep -v '^ *+' conftest.er1 >conftest.err
33668 rm -f conftest.er1
33669 cat conftest.err >&5
a848cd7e
SC
33670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33671 (exit $ac_status); } &&
17a7bf57 33672 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33674 (eval $ac_try) 2>&5
33675 ac_status=$?
33676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33677 (exit $ac_status); }; } &&
33678 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33680 (eval $ac_try) 2>&5
33681 ac_status=$?
33682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33683 (exit $ac_status); }; }; then
33684 eval "$as_ac_var=yes"
33685else
33686 echo "$as_me: failed program was:" >&5
33687sed 's/^/| /' conftest.$ac_ext >&5
33688
33689eval "$as_ac_var=no"
33690fi
ac1cb8d3
VS
33691rm -f conftest.err conftest.$ac_objext \
33692 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33693fi
33694echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33695echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33696if test `eval echo '${'$as_ac_var'}'` = yes; then
33697 cat >>confdefs.h <<_ACEOF
33698#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33699_ACEOF
33700
33701 cat >>confdefs.h <<\_ACEOF
33702#define HAVE_SHL_LOAD 1
33703_ACEOF
33704
33705 HAVE_SHL_FUNCS=1
33706
33707else
33708
33709 echo "$as_me:$LINENO: checking for dld in -lshl_load" >&5
33710echo $ECHO_N "checking for dld in -lshl_load... $ECHO_C" >&6
33711if test "${ac_cv_lib_shl_load_dld+set}" = set; then
33712 echo $ECHO_N "(cached) $ECHO_C" >&6
33713else
33714 ac_check_lib_save_LIBS=$LIBS
33715LIBS="-lshl_load $LIBS"
33716cat >conftest.$ac_ext <<_ACEOF
33717/* confdefs.h. */
33718_ACEOF
33719cat confdefs.h >>conftest.$ac_ext
33720cat >>conftest.$ac_ext <<_ACEOF
33721/* end confdefs.h. */
33722
33723/* Override any gcc2 internal prototype to avoid an error. */
33724#ifdef __cplusplus
33725extern "C"
33726#endif
33727/* We use char because int might match the return type of a gcc2
33728 builtin and then its argument prototype would still apply. */
33729char dld ();
33730int
33731main ()
33732{
33733dld ();
33734 ;
33735 return 0;
33736}
33737_ACEOF
33738rm -f conftest.$ac_objext conftest$ac_exeext
33739if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33740 (eval $ac_link) 2>conftest.er1
a848cd7e 33741 ac_status=$?
ac1cb8d3
VS
33742 grep -v '^ *+' conftest.er1 >conftest.err
33743 rm -f conftest.er1
33744 cat conftest.err >&5
a848cd7e
SC
33745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33746 (exit $ac_status); } &&
17a7bf57 33747 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33749 (eval $ac_try) 2>&5
33750 ac_status=$?
33751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33752 (exit $ac_status); }; } &&
33753 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33755 (eval $ac_try) 2>&5
33756 ac_status=$?
33757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33758 (exit $ac_status); }; }; then
33759 ac_cv_lib_shl_load_dld=yes
33760else
33761 echo "$as_me: failed program was:" >&5
33762sed 's/^/| /' conftest.$ac_ext >&5
33763
33764ac_cv_lib_shl_load_dld=no
33765fi
ac1cb8d3
VS
33766rm -f conftest.err conftest.$ac_objext \
33767 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33768LIBS=$ac_check_lib_save_LIBS
33769fi
33770echo "$as_me:$LINENO: result: $ac_cv_lib_shl_load_dld" >&5
33771echo "${ECHO_T}$ac_cv_lib_shl_load_dld" >&6
33772if test $ac_cv_lib_shl_load_dld = yes; then
33773
33774 HAVE_SHL_FUNCS=1
33775 DL_LINK=" -ldld$DL_LINK"
33776
33777fi
33778
33779
33780fi
33781done
33782
33783
33784fi
33785
33786
33787fi
33788done
33789
33790
33791 if test "$HAVE_DL_FUNCS" = 1; then
33792
33793for ac_func in dlerror
33794do
33795as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33796echo "$as_me:$LINENO: checking for $ac_func" >&5
33797echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33798if eval "test \"\${$as_ac_var+set}\" = set"; then
33799 echo $ECHO_N "(cached) $ECHO_C" >&6
33800else
33801 cat >conftest.$ac_ext <<_ACEOF
33802/* confdefs.h. */
33803_ACEOF
33804cat confdefs.h >>conftest.$ac_ext
33805cat >>conftest.$ac_ext <<_ACEOF
33806/* end confdefs.h. */
ac1cb8d3
VS
33807/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33808 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33809#define $ac_func innocuous_$ac_func
33810
a848cd7e
SC
33811/* System header to define __stub macros and hopefully few prototypes,
33812 which can conflict with char $ac_func (); below.
33813 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33814 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 33815
a848cd7e
SC
33816#ifdef __STDC__
33817# include <limits.h>
33818#else
33819# include <assert.h>
33820#endif
ac1cb8d3
VS
33821
33822#undef $ac_func
33823
a848cd7e
SC
33824/* Override any gcc2 internal prototype to avoid an error. */
33825#ifdef __cplusplus
33826extern "C"
33827{
33828#endif
33829/* We use char because int might match the return type of a gcc2
33830 builtin and then its argument prototype would still apply. */
33831char $ac_func ();
33832/* The GNU C library defines this for functions which it implements
33833 to always fail with ENOSYS. Some functions are actually named
33834 something starting with __ and the normal name is an alias. */
33835#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33836choke me
33837#else
33838char (*f) () = $ac_func;
33839#endif
33840#ifdef __cplusplus
33841}
33842#endif
33843
33844int
33845main ()
33846{
33847return f != $ac_func;
33848 ;
33849 return 0;
33850}
33851_ACEOF
33852rm -f conftest.$ac_objext conftest$ac_exeext
33853if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33854 (eval $ac_link) 2>conftest.er1
a848cd7e 33855 ac_status=$?
ac1cb8d3
VS
33856 grep -v '^ *+' conftest.er1 >conftest.err
33857 rm -f conftest.er1
33858 cat conftest.err >&5
a848cd7e
SC
33859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33860 (exit $ac_status); } &&
17a7bf57 33861 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33863 (eval $ac_try) 2>&5
33864 ac_status=$?
33865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33866 (exit $ac_status); }; } &&
33867 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33869 (eval $ac_try) 2>&5
33870 ac_status=$?
33871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33872 (exit $ac_status); }; }; then
33873 eval "$as_ac_var=yes"
33874else
33875 echo "$as_me: failed program was:" >&5
33876sed 's/^/| /' conftest.$ac_ext >&5
33877
33878eval "$as_ac_var=no"
33879fi
ac1cb8d3
VS
33880rm -f conftest.err conftest.$ac_objext \
33881 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33882fi
33883echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33884echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33885if test `eval echo '${'$as_ac_var'}'` = yes; then
33886 cat >>confdefs.h <<_ACEOF
33887#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33888_ACEOF
33889 cat >>confdefs.h <<\_ACEOF
33890#define HAVE_DLERROR 1
33891_ACEOF
33892
33893else
33894
33895 echo "$as_me:$LINENO: checking for dlerror in -ldl" >&5
33896echo $ECHO_N "checking for dlerror in -ldl... $ECHO_C" >&6
33897if test "${ac_cv_lib_dl_dlerror+set}" = set; then
33898 echo $ECHO_N "(cached) $ECHO_C" >&6
33899else
33900 ac_check_lib_save_LIBS=$LIBS
33901LIBS="-ldl $LIBS"
33902cat >conftest.$ac_ext <<_ACEOF
33903/* confdefs.h. */
33904_ACEOF
33905cat confdefs.h >>conftest.$ac_ext
33906cat >>conftest.$ac_ext <<_ACEOF
33907/* end confdefs.h. */
33908
33909/* Override any gcc2 internal prototype to avoid an error. */
33910#ifdef __cplusplus
33911extern "C"
33912#endif
33913/* We use char because int might match the return type of a gcc2
33914 builtin and then its argument prototype would still apply. */
33915char dlerror ();
33916int
33917main ()
33918{
33919dlerror ();
33920 ;
33921 return 0;
33922}
33923_ACEOF
33924rm -f conftest.$ac_objext conftest$ac_exeext
33925if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33926 (eval $ac_link) 2>conftest.er1
a848cd7e 33927 ac_status=$?
ac1cb8d3
VS
33928 grep -v '^ *+' conftest.er1 >conftest.err
33929 rm -f conftest.er1
33930 cat conftest.err >&5
a848cd7e
SC
33931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33932 (exit $ac_status); } &&
17a7bf57 33933 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33935 (eval $ac_try) 2>&5
33936 ac_status=$?
33937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33938 (exit $ac_status); }; } &&
33939 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33941 (eval $ac_try) 2>&5
33942 ac_status=$?
33943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33944 (exit $ac_status); }; }; then
33945 ac_cv_lib_dl_dlerror=yes
33946else
33947 echo "$as_me: failed program was:" >&5
33948sed 's/^/| /' conftest.$ac_ext >&5
33949
33950ac_cv_lib_dl_dlerror=no
33951fi
ac1cb8d3
VS
33952rm -f conftest.err conftest.$ac_objext \
33953 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33954LIBS=$ac_check_lib_save_LIBS
33955fi
33956echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlerror" >&5
33957echo "${ECHO_T}$ac_cv_lib_dl_dlerror" >&6
33958if test $ac_cv_lib_dl_dlerror = yes; then
33959 cat >>confdefs.h <<\_ACEOF
33960#define HAVE_DLERROR 1
33961_ACEOF
33962
33963fi
33964
33965
33966
33967fi
33968done
33969
33970 fi
33971 fi
33972
33973 if test "$HAVE_DL_FUNCS" = 0; then
33974 if test "$HAVE_SHL_FUNCS" = 0; then
33975 if test "$USE_UNIX" = 1; then
33976 { echo "$as_me:$LINENO: WARNING: Missing dynamic loading support, several features will be disabled" >&5
33977echo "$as_me: WARNING: Missing dynamic loading support, several features will be disabled" >&2;}
33978 wxUSE_DYNAMIC_LOADER=no
33979 wxUSE_DYNLIB_CLASS=no
33980 else
33981 { echo "$as_me:$LINENO: WARNING: Assuming wxLibrary class works on this platform" >&5
33982echo "$as_me: WARNING: Assuming wxLibrary class works on this platform" >&2;}
33983 fi
33984 fi
33985 fi
33986 fi
33987fi
33988
33989if test "$wxUSE_DYNAMIC_LOADER" = "yes" ; then
33990 cat >>confdefs.h <<\_ACEOF
33991#define wxUSE_DYNAMIC_LOADER 1
33992_ACEOF
33993
33994fi
33995if test "$wxUSE_DYNLIB_CLASS" = "yes" ; then
33996 cat >>confdefs.h <<\_ACEOF
33997#define wxUSE_DYNLIB_CLASS 1
33998_ACEOF
33999
34000fi
34001
34002
34003
34004if test "$wxUSE_PLUGINS" = "yes" ; then
34005 if test "$wxUSE_SHARED" = "no" ; then
34006 { echo "$as_me:$LINENO: WARNING: plugins supported only in shared build, disabling" >&5
34007echo "$as_me: WARNING: plugins supported only in shared build, disabling" >&2;}
34008 wxUSE_PLUGINS=no
34009 fi
34010 if test "$wxUSE_MONOLITHIC" = "yes" ; then
34011 { echo "$as_me:$LINENO: WARNING: plugins not supported monolithic build, disabling" >&5
34012echo "$as_me: WARNING: plugins not supported monolithic build, disabling" >&2;}
34013 wxUSE_PLUGINS=no
34014 fi
34015 if test "$wxUSE_DYNLIB_CLASS" = "no" ; then
34016 { echo "$as_me:$LINENO: WARNING: plugins require wxDynamicLibrary, disabling" >&5
34017echo "$as_me: WARNING: plugins require wxDynamicLibrary, disabling" >&2;}
34018 wxUSE_PLUGINS=no
34019 fi
34020 if test "$wxUSE_PLUGINS" = "yes" ; then
34021 cat >>confdefs.h <<\_ACEOF
34022#define wxUSE_PLUGINS 1
34023_ACEOF
34024
34025 fi
34026fi
34027
34028
34029if test "$wxUSE_STL" = "yes"; then
34030 cat >>confdefs.h <<\_ACEOF
34031#define wxUSE_STL 1
34032_ACEOF
34033
34034fi
34035
34036if test "$wxUSE_APPLE_IEEE" = "yes"; then
34037 cat >>confdefs.h <<\_ACEOF
34038#define wxUSE_APPLE_IEEE 1
34039_ACEOF
34040
34041fi
34042
34043if test "$wxUSE_TIMER" = "yes"; then
34044 cat >>confdefs.h <<\_ACEOF
34045#define wxUSE_TIMER 1
34046_ACEOF
34047
34048fi
34049
34050WITH_PLUGIN_SDL=0
34051if test "$wxUSE_SOUND" = "yes"; then
34052 if test "$USE_UNIX" = "1" ; then
34053
34054for ac_header in sys/soundcard.h
34055do
34056as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
34057if eval "test \"\${$as_ac_Header+set}\" = set"; then
34058 echo "$as_me:$LINENO: checking for $ac_header" >&5
34059echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
34060if eval "test \"\${$as_ac_Header+set}\" = set"; then
34061 echo $ECHO_N "(cached) $ECHO_C" >&6
34062fi
34063echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
34064echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
34065else
34066 # Is the header compilable?
34067echo "$as_me:$LINENO: checking $ac_header usability" >&5
34068echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
34069cat >conftest.$ac_ext <<_ACEOF
34070/* confdefs.h. */
34071_ACEOF
34072cat confdefs.h >>conftest.$ac_ext
34073cat >>conftest.$ac_ext <<_ACEOF
34074/* end confdefs.h. */
34075$ac_includes_default
34076#include <$ac_header>
34077_ACEOF
34078rm -f conftest.$ac_objext
34079if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 34080 (eval $ac_compile) 2>conftest.er1
a848cd7e 34081 ac_status=$?
ac1cb8d3
VS
34082 grep -v '^ *+' conftest.er1 >conftest.err
34083 rm -f conftest.er1
34084 cat conftest.err >&5
a848cd7e
SC
34085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34086 (exit $ac_status); } &&
17a7bf57 34087 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34089 (eval $ac_try) 2>&5
34090 ac_status=$?
34091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34092 (exit $ac_status); }; } &&
34093 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
34094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34095 (eval $ac_try) 2>&5
34096 ac_status=$?
34097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34098 (exit $ac_status); }; }; then
34099 ac_header_compiler=yes
34100else
34101 echo "$as_me: failed program was:" >&5
34102sed 's/^/| /' conftest.$ac_ext >&5
34103
34104ac_header_compiler=no
34105fi
ac1cb8d3 34106rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
34107echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
34108echo "${ECHO_T}$ac_header_compiler" >&6
34109
34110# Is the header present?
34111echo "$as_me:$LINENO: checking $ac_header presence" >&5
34112echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
34113cat >conftest.$ac_ext <<_ACEOF
34114/* confdefs.h. */
34115_ACEOF
34116cat confdefs.h >>conftest.$ac_ext
34117cat >>conftest.$ac_ext <<_ACEOF
34118/* end confdefs.h. */
34119#include <$ac_header>
34120_ACEOF
34121if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
34122 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
34123 ac_status=$?
34124 grep -v '^ *+' conftest.er1 >conftest.err
34125 rm -f conftest.er1
34126 cat conftest.err >&5
34127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34128 (exit $ac_status); } >/dev/null; then
34129 if test -s conftest.err; then
34130 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 34131 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
34132 else
34133 ac_cpp_err=
34134 fi
34135else
34136 ac_cpp_err=yes
34137fi
34138if test -z "$ac_cpp_err"; then
34139 ac_header_preproc=yes
34140else
34141 echo "$as_me: failed program was:" >&5
34142sed 's/^/| /' conftest.$ac_ext >&5
34143
34144 ac_header_preproc=no
34145fi
34146rm -f conftest.err conftest.$ac_ext
34147echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
34148echo "${ECHO_T}$ac_header_preproc" >&6
34149
34150# So? What about this header?
ac1cb8d3
VS
34151case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
34152 yes:no: )
a848cd7e
SC
34153 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
34154echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
34155 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
34156echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
34157 ac_header_preproc=yes
a848cd7e 34158 ;;
ac1cb8d3 34159 no:yes:* )
a848cd7e
SC
34160 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
34161echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
34162 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
34163echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
34164 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
34165echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
34166 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
34167echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
34168 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
34169echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
34170 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
34171echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
34172 (
34173 cat <<\_ASBOX
ac1cb8d3
VS
34174## ----------------------------------------- ##
34175## Report this to wx-dev@lists.wxwidgets.org ##
34176## ----------------------------------------- ##
a848cd7e
SC
34177_ASBOX
34178 ) |
34179 sed "s/^/$as_me: WARNING: /" >&2
34180 ;;
34181esac
34182echo "$as_me:$LINENO: checking for $ac_header" >&5
34183echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
34184if eval "test \"\${$as_ac_Header+set}\" = set"; then
34185 echo $ECHO_N "(cached) $ECHO_C" >&6
34186else
ac1cb8d3 34187 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
34188fi
34189echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
34190echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
34191
34192fi
34193if test `eval echo '${'$as_ac_Header'}'` = yes; then
34194 cat >>confdefs.h <<_ACEOF
34195#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
34196_ACEOF
34197
34198fi
34199
34200done
34201
34202
34203 if test "$wxUSE_LIBSDL" != "no"; then
34204
34205# Check whether --with-sdl-prefix or --without-sdl-prefix was given.
34206if test "${with_sdl_prefix+set}" = set; then
34207 withval="$with_sdl_prefix"
34208 sdl_prefix="$withval"
34209else
34210 sdl_prefix=""
34211fi;
34212
34213# Check whether --with-sdl-exec-prefix or --without-sdl-exec-prefix was given.
34214if test "${with_sdl_exec_prefix+set}" = set; then
34215 withval="$with_sdl_exec_prefix"
34216 sdl_exec_prefix="$withval"
34217else
34218 sdl_exec_prefix=""
34219fi;
34220# Check whether --enable-sdltest or --disable-sdltest was given.
34221if test "${enable_sdltest+set}" = set; then
34222 enableval="$enable_sdltest"
34223
34224else
34225 enable_sdltest=yes
34226fi;
34227
34228 if test x$sdl_exec_prefix != x ; then
34229 sdl_args="$sdl_args --exec-prefix=$sdl_exec_prefix"
34230 if test x${SDL_CONFIG+set} != xset ; then
34231 SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config
34232 fi
34233 fi
34234 if test x$sdl_prefix != x ; then
34235 sdl_args="$sdl_args --prefix=$sdl_prefix"
34236 if test x${SDL_CONFIG+set} != xset ; then
34237 SDL_CONFIG=$sdl_prefix/bin/sdl-config
34238 fi
34239 fi
34240
34241
34242 PATH="$prefix/bin:$prefix/usr/bin:$PATH"
34243 # Extract the first word of "sdl-config", so it can be a program name with args.
34244set dummy sdl-config; ac_word=$2
34245echo "$as_me:$LINENO: checking for $ac_word" >&5
34246echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
34247if test "${ac_cv_path_SDL_CONFIG+set}" = set; then
34248 echo $ECHO_N "(cached) $ECHO_C" >&6
34249else
34250 case $SDL_CONFIG in
34251 [\\/]* | ?:[\\/]*)
34252 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
34253 ;;
34254 *)
34255 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34256for as_dir in $PATH
34257do
34258 IFS=$as_save_IFS
34259 test -z "$as_dir" && as_dir=.
34260 for ac_exec_ext in '' $ac_executable_extensions; do
34261 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34262 ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
34263 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
34264 break 2
34265 fi
34266done
34267done
34268
34269 test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
34270 ;;
34271esac
34272fi
34273SDL_CONFIG=$ac_cv_path_SDL_CONFIG
34274
34275if test -n "$SDL_CONFIG"; then
34276 echo "$as_me:$LINENO: result: $SDL_CONFIG" >&5
34277echo "${ECHO_T}$SDL_CONFIG" >&6
34278else
34279 echo "$as_me:$LINENO: result: no" >&5
34280echo "${ECHO_T}no" >&6
34281fi
34282
34283 min_sdl_version=1.2.0
34284 echo "$as_me:$LINENO: checking for SDL - version >= $min_sdl_version" >&5
34285echo $ECHO_N "checking for SDL - version >= $min_sdl_version... $ECHO_C" >&6
34286 no_sdl=""
34287 if test "$SDL_CONFIG" = "no" ; then
34288 no_sdl=yes
34289 else
34290 SDL_CFLAGS=`$SDL_CONFIG $sdlconf_args --cflags`
34291 SDL_LIBS=`$SDL_CONFIG $sdlconf_args --libs`
34292
34293 sdl_major_version=`$SDL_CONFIG $sdl_args --version | \
34294 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
34295 sdl_minor_version=`$SDL_CONFIG $sdl_args --version | \
34296 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
34297 sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
34298 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
34299 if test "x$enable_sdltest" = "xyes" ; then
34300 ac_save_CFLAGS="$CFLAGS"
34301 ac_save_LIBS="$LIBS"
34302 CFLAGS="$CFLAGS $SDL_CFLAGS"
34303 LIBS="$LIBS $SDL_LIBS"
34304 rm -f conf.sdltest
34305 if test "$cross_compiling" = yes; then
34306 echo $ac_n "cross compiling; assumed OK... $ac_c"
34307else
34308 cat >conftest.$ac_ext <<_ACEOF
34309/* confdefs.h. */
34310_ACEOF
34311cat confdefs.h >>conftest.$ac_ext
34312cat >>conftest.$ac_ext <<_ACEOF
34313/* end confdefs.h. */
34314
34315#include <stdio.h>
34316#include <stdlib.h>
34317#include <string.h>
34318#include "SDL.h"
34319
34320char*
34321my_strdup (char *str)
34322{
34323 char *new_str;
34324
34325 if (str)
34326 {
34327 new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
34328 strcpy (new_str, str);
34329 }
34330 else
34331 new_str = NULL;
34332
34333 return new_str;
34334}
34335
34336int main (int argc, char *argv[])
34337{
34338 int major, minor, micro;
34339 char *tmp_version;
34340
34341 /* This hangs on some systems (?)
34342 system ("touch conf.sdltest");
34343 */
34344 { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
34345
34346 /* HP/UX 9 (%@#!) writes to sscanf strings */
34347 tmp_version = my_strdup("$min_sdl_version");
34348 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
34349 printf("%s, bad version string\n", "$min_sdl_version");
34350 exit(1);
34351 }
34352
34353 if (($sdl_major_version > major) ||
34354 (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
34355 (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
34356 {
34357 return 0;
34358 }
34359 else
34360 {
34361 printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
34362 printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
34363 printf("*** best to upgrade to the required version.\n");
34364 printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
34365 printf("*** to point to the correct copy of sdl-config, and remove the file\n");
34366 printf("*** config.cache before re-running configure\n");
34367 return 1;
34368 }
34369}
34370
34371
34372_ACEOF
34373rm -f conftest$ac_exeext
34374if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34375 (eval $ac_link) 2>&5
34376 ac_status=$?
34377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34378 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34380 (eval $ac_try) 2>&5
34381 ac_status=$?
34382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34383 (exit $ac_status); }; }; then
34384 :
34385else
34386 echo "$as_me: program exited with status $ac_status" >&5
34387echo "$as_me: failed program was:" >&5
34388sed 's/^/| /' conftest.$ac_ext >&5
34389
34390( exit $ac_status )
34391no_sdl=yes
34392fi
ac1cb8d3 34393rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
34394fi
34395 CFLAGS="$ac_save_CFLAGS"
34396 LIBS="$ac_save_LIBS"
34397 fi
34398 fi
34399 if test "x$no_sdl" = x ; then
34400 echo "$as_me:$LINENO: result: yes" >&5
34401echo "${ECHO_T}yes" >&6
34402
34403 EXTRALIBS_SDL="$SDL_LIBS"
34404 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
34405 cat >>confdefs.h <<\_ACEOF
34406#define wxUSE_LIBSDL 1
34407_ACEOF
34408
34409
34410 else
34411 echo "$as_me:$LINENO: result: no" >&5
34412echo "${ECHO_T}no" >&6
34413 if test "$SDL_CONFIG" = "no" ; then
34414 echo "*** The sdl-config script installed by SDL could not be found"
34415 echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
34416 echo "*** your path, or set the SDL_CONFIG environment variable to the"
34417 echo "*** full path to sdl-config."
34418 else
34419 if test -f conf.sdltest ; then
34420 :
34421 else
34422 echo "*** Could not run SDL test program, checking why..."
34423 CFLAGS="$CFLAGS $SDL_CFLAGS"
34424 LIBS="$LIBS $SDL_LIBS"
34425 cat >conftest.$ac_ext <<_ACEOF
34426/* confdefs.h. */
34427_ACEOF
34428cat confdefs.h >>conftest.$ac_ext
34429cat >>conftest.$ac_ext <<_ACEOF
34430/* end confdefs.h. */
34431
34432#include <stdio.h>
34433#include "SDL.h"
34434
34435int main(int argc, char *argv[])
34436{ return 0; }
34437#undef main
34438#define main K_and_R_C_main
34439
34440int
34441main ()
34442{
34443 return 0;
34444 ;
34445 return 0;
34446}
34447_ACEOF
34448rm -f conftest.$ac_objext conftest$ac_exeext
34449if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34450 (eval $ac_link) 2>conftest.er1
a848cd7e 34451 ac_status=$?
ac1cb8d3
VS
34452 grep -v '^ *+' conftest.er1 >conftest.err
34453 rm -f conftest.er1
34454 cat conftest.err >&5
a848cd7e
SC
34455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34456 (exit $ac_status); } &&
17a7bf57 34457 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34459 (eval $ac_try) 2>&5
34460 ac_status=$?
34461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34462 (exit $ac_status); }; } &&
34463 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34465 (eval $ac_try) 2>&5
34466 ac_status=$?
34467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34468 (exit $ac_status); }; }; then
34469 echo "*** The test program compiled, but did not run. This usually means"
34470 echo "*** that the run-time linker is not finding SDL or finding the wrong"
34471 echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
34472 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
34473 echo "*** to the installed location Also, make sure you have run ldconfig if that"
34474 echo "*** is required on your system"
34475 echo "***"
34476 echo "*** If you have an old version installed, it is best to remove it, although"
34477 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
34478else
34479 echo "$as_me: failed program was:" >&5
34480sed 's/^/| /' conftest.$ac_ext >&5
34481
34482 echo "*** The test program failed to compile or link. See the file config.log for the"
34483 echo "*** exact error that occured. This usually means SDL was incorrectly installed"
34484 echo "*** or that you have moved SDL since it was installed. In the latter case, you"
34485 echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
34486fi
ac1cb8d3
VS
34487rm -f conftest.err conftest.$ac_objext \
34488 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34489 CFLAGS="$ac_save_CFLAGS"
34490 LIBS="$ac_save_LIBS"
34491 fi
34492 fi
34493 SDL_CFLAGS=""
34494 SDL_LIBS=""
34495 wxUSE_LIBSDL="no"
34496 fi
34497
34498
34499 rm -f conf.sdltest
34500
34501 if test "$wxUSE_LIBSDL" = "yes" -a "$wxUSE_PLUGINS" = "yes" ; then
34502 WITH_PLUGIN_SDL=1
34503 fi
34504 fi
34505 fi
34506
34507 cat >>confdefs.h <<\_ACEOF
34508#define wxUSE_SOUND 1
34509_ACEOF
34510
34511 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sound"
34512fi
34513
d1c38808
VZ
34514if test "$WXGTK20" = 1; then
34515 if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
34516 if test "$wxUSE_LIBGNOMEPRINT" = "yes" ; then
34517
34518
34519 succeeded=no
34520
34521 if test -z "$PKG_CONFIG"; then
34522 # Extract the first word of "pkg-config", so it can be a program name with args.
34523set dummy pkg-config; ac_word=$2
34524echo "$as_me:$LINENO: checking for $ac_word" >&5
34525echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
34526if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
34527 echo $ECHO_N "(cached) $ECHO_C" >&6
34528else
34529 case $PKG_CONFIG in
34530 [\\/]* | ?:[\\/]*)
34531 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
34532 ;;
34533 *)
34534 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34535for as_dir in $PATH
34536do
34537 IFS=$as_save_IFS
34538 test -z "$as_dir" && as_dir=.
34539 for ac_exec_ext in '' $ac_executable_extensions; do
34540 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34541 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
34542 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
34543 break 2
34544 fi
34545done
34546done
34547
34548 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
34549 ;;
34550esac
34551fi
34552PKG_CONFIG=$ac_cv_path_PKG_CONFIG
34553
34554if test -n "$PKG_CONFIG"; then
34555 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
34556echo "${ECHO_T}$PKG_CONFIG" >&6
34557else
34558 echo "$as_me:$LINENO: result: no" >&5
34559echo "${ECHO_T}no" >&6
34560fi
34561
34562 fi
34563
34564 if test "$PKG_CONFIG" = "no" ; then
34565 echo "*** The pkg-config script could not be found. Make sure it is"
34566 echo "*** in your path, or set the PKG_CONFIG environment variable"
34567 echo "*** to the full path to pkg-config."
34568 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
34569 else
34570 PKG_CONFIG_MIN_VERSION=0.9.0
34571 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
34572 echo "$as_me:$LINENO: checking for libgnomeprintui-2.2" >&5
34573echo $ECHO_N "checking for libgnomeprintui-2.2... $ECHO_C" >&6
34574
34575 if $PKG_CONFIG --exists "libgnomeprintui-2.2" ; then
34576 echo "$as_me:$LINENO: result: yes" >&5
34577echo "${ECHO_T}yes" >&6
34578 succeeded=yes
34579
34580 echo "$as_me:$LINENO: checking LIBGNOMEPRINTUI_CFLAGS" >&5
34581echo $ECHO_N "checking LIBGNOMEPRINTUI_CFLAGS... $ECHO_C" >&6
34582 LIBGNOMEPRINTUI_CFLAGS=`$PKG_CONFIG --cflags "libgnomeprintui-2.2"`
34583 echo "$as_me:$LINENO: result: $LIBGNOMEPRINTUI_CFLAGS" >&5
34584echo "${ECHO_T}$LIBGNOMEPRINTUI_CFLAGS" >&6
34585
34586 echo "$as_me:$LINENO: checking LIBGNOMEPRINTUI_LIBS" >&5
34587echo $ECHO_N "checking LIBGNOMEPRINTUI_LIBS... $ECHO_C" >&6
34588 LIBGNOMEPRINTUI_LIBS=`$PKG_CONFIG --libs "libgnomeprintui-2.2"`
34589 echo "$as_me:$LINENO: result: $LIBGNOMEPRINTUI_LIBS" >&5
34590echo "${ECHO_T}$LIBGNOMEPRINTUI_LIBS" >&6
34591 else
34592 LIBGNOMEPRINTUI_CFLAGS=""
34593 LIBGNOMEPRINTUI_LIBS=""
34594 ## If we have a custom action on failure, don't print errors, but
34595 ## do set a variable so people can do so.
34596 LIBGNOMEPRINTUI_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libgnomeprintui-2.2"`
34597
34598 fi
34599
34600
34601
34602 else
34603 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
34604 echo "*** See http://www.freedesktop.org/software/pkgconfig"
34605 fi
34606 fi
34607
34608 if test $succeeded = yes; then
34609
34610 EXTRALIBS_GNOMEPRINT="$LIBGNOMEPRINTUI_LIBS"
34611 CXXFLAGS="$CXXFLAGS $LIBGNOMEPRINTUI_CFLAGS"
34612 cat >>confdefs.h <<\_ACEOF
34613#define wxUSE_LIBGNOMEPRINT 1
34614_ACEOF
34615
34616
34617 else
34618
34619 { echo "$as_me:$LINENO: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&5
34620echo "$as_me: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&2;}
34621 wxUSE_LIBGNOMEPRINT="no"
34622
34623
34624 fi
34625
34626 fi
34627 fi
34628fi
34629
34630
a848cd7e
SC
34631if test "$wxUSE_CMDLINE_PARSER" = "yes"; then
34632 cat >>confdefs.h <<\_ACEOF
34633#define wxUSE_CMDLINE_PARSER 1
34634_ACEOF
34635
34636fi
34637
34638if test "$wxUSE_STOPWATCH" = "yes"; then
34639 cat >>confdefs.h <<\_ACEOF
34640#define wxUSE_STOPWATCH 1
34641_ACEOF
34642
34643fi
34644
34645if test "$wxUSE_DATETIME" = "yes"; then
34646 cat >>confdefs.h <<\_ACEOF
34647#define wxUSE_DATETIME 1
34648_ACEOF
34649
34650fi
34651
34652if test "$wxUSE_FILE" = "yes"; then
34653 cat >>confdefs.h <<\_ACEOF
34654#define wxUSE_FILE 1
34655_ACEOF
34656
34657fi
34658
34659if test "$wxUSE_FFILE" = "yes"; then
34660 cat >>confdefs.h <<\_ACEOF
34661#define wxUSE_FFILE 1
34662_ACEOF
34663
34664fi
34665
34666if test "$wxUSE_FILESYSTEM" = "yes"; then
34667 cat >>confdefs.h <<\_ACEOF
34668#define wxUSE_FILESYSTEM 1
34669_ACEOF
34670
34671fi
34672
34673if test "$wxUSE_FS_ZIP" = "yes"; then
34674 cat >>confdefs.h <<\_ACEOF
34675#define wxUSE_FS_ZIP 1
34676_ACEOF
34677
34678fi
34679
34680if test "$wxUSE_ZIPSTREAM" = "yes"; then
34681 cat >>confdefs.h <<\_ACEOF
34682#define wxUSE_ZIPSTREAM 1
34683_ACEOF
34684
34685fi
34686
a848cd7e
SC
34687if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
34688 cat >>confdefs.h <<\_ACEOF
34689#define wxUSE_ON_FATAL_EXCEPTION 1
34690_ACEOF
34691
34692fi
34693
34694if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
34695 cat >>confdefs.h <<\_ACEOF
34696#define wxUSE_SNGLINST_CHECKER 1
34697_ACEOF
34698
34699fi
34700
34701if test "$wxUSE_BUSYINFO" = "yes"; then
34702 cat >>confdefs.h <<\_ACEOF
34703#define wxUSE_BUSYINFO 1
34704_ACEOF
34705
34706fi
34707
34708if test "$wxUSE_STD_IOSTREAM" = "yes"; then
34709 cat >>confdefs.h <<\_ACEOF
34710#define wxUSE_STD_IOSTREAM 1
34711_ACEOF
34712
34713fi
34714
34715if test "$wxUSE_TEXTBUFFER" = "yes"; then
34716 cat >>confdefs.h <<\_ACEOF
34717#define wxUSE_TEXTBUFFER 1
34718_ACEOF
34719
34720fi
34721
34722if test "$wxUSE_TEXTFILE" = "yes"; then
34723 if test "$wxUSE_FILE" != "yes" -o "$wxUSE_TEXTBUFFER" != "yes" ; then
34724 { echo "$as_me:$LINENO: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&5
34725echo "$as_me: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&2;}
34726 else
34727 cat >>confdefs.h <<\_ACEOF
34728#define wxUSE_TEXTFILE 1
34729_ACEOF
34730
34731 fi
34732fi
34733
34734if test "$wxUSE_CONFIG" = "yes" ; then
34735 if test "$wxUSE_TEXTFILE" != "yes"; then
34736 { echo "$as_me:$LINENO: WARNING: wxConfig requires wxTextFile... disabled" >&5
34737echo "$as_me: WARNING: wxConfig requires wxTextFile... disabled" >&2;}
34738 else
34739 cat >>confdefs.h <<\_ACEOF
34740#define wxUSE_CONFIG 1
34741_ACEOF
34742
34743 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config"
34744 fi
34745fi
34746
34747if test "$wxUSE_INTL" = "yes" ; then
34748 if test "$wxUSE_FILE" != "yes"; then
34749 { echo "$as_me:$LINENO: WARNING: I18n code requires wxFile... disabled" >&5
34750echo "$as_me: WARNING: I18n code requires wxFile... disabled" >&2;}
34751 else
34752 cat >>confdefs.h <<\_ACEOF
34753#define wxUSE_INTL 1
34754_ACEOF
34755
34756 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat"
34757 GUIDIST="$GUIDIST INTL_DIST"
34758 fi
34759fi
34760
34761if test "$wxUSE_LOG" = "yes"; then
34762 cat >>confdefs.h <<\_ACEOF
34763#define wxUSE_LOG 1
34764_ACEOF
34765
34766
34767 if test "$wxUSE_LOGGUI" = "yes"; then
34768 cat >>confdefs.h <<\_ACEOF
34769#define wxUSE_LOGGUI 1
34770_ACEOF
34771
34772 fi
34773
34774 if test "$wxUSE_LOGWINDOW" = "yes"; then
34775 cat >>confdefs.h <<\_ACEOF
34776#define wxUSE_LOGWINDOW 1
34777_ACEOF
34778
34779 fi
34780
34781 if test "$wxUSE_LOGDIALOG" = "yes"; then
34782 cat >>confdefs.h <<\_ACEOF
34783#define wxUSE_LOG_DIALOG 1
34784_ACEOF
34785
34786 fi
34787fi
34788
34789if test "$wxUSE_LONGLONG" = "yes"; then
34790 cat >>confdefs.h <<\_ACEOF
34791#define wxUSE_LONGLONG 1
34792_ACEOF
34793
34794fi
34795
34796if test "$wxUSE_GEOMETRY" = "yes"; then
34797 cat >>confdefs.h <<\_ACEOF
34798#define wxUSE_GEOMETRY 1
34799_ACEOF
34800
34801fi
34802
34803if test "$wxUSE_DIALUP_MANAGER" = "yes" ; then
34804 cat >>confdefs.h <<\_ACEOF
34805#define wxUSE_DIALUP_MANAGER 1
34806_ACEOF
34807
34808 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup"
34809fi
34810
34811if test "$wxUSE_STREAMS" = "yes" ; then
34812 cat >>confdefs.h <<\_ACEOF
34813#define wxUSE_STREAMS 1
34814_ACEOF
34815
34816fi
34817
34818
34819if test "$wxUSE_DATETIME" = "yes"; then
34820
34821for ac_func in strptime
34822do
34823as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34824echo "$as_me:$LINENO: checking for $ac_func" >&5
34825echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34826if eval "test \"\${$as_ac_var+set}\" = set"; then
34827 echo $ECHO_N "(cached) $ECHO_C" >&6
34828else
34829 cat >conftest.$ac_ext <<_ACEOF
34830/* confdefs.h. */
34831_ACEOF
34832cat confdefs.h >>conftest.$ac_ext
34833cat >>conftest.$ac_ext <<_ACEOF
34834/* end confdefs.h. */
ac1cb8d3
VS
34835/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34836 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34837#define $ac_func innocuous_$ac_func
34838
a848cd7e
SC
34839/* System header to define __stub macros and hopefully few prototypes,
34840 which can conflict with char $ac_func (); below.
34841 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34842 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 34843
a848cd7e
SC
34844#ifdef __STDC__
34845# include <limits.h>
34846#else
34847# include <assert.h>
34848#endif
ac1cb8d3
VS
34849
34850#undef $ac_func
34851
a848cd7e
SC
34852/* Override any gcc2 internal prototype to avoid an error. */
34853#ifdef __cplusplus
34854extern "C"
34855{
34856#endif
34857/* We use char because int might match the return type of a gcc2
34858 builtin and then its argument prototype would still apply. */
34859char $ac_func ();
34860/* The GNU C library defines this for functions which it implements
34861 to always fail with ENOSYS. Some functions are actually named
34862 something starting with __ and the normal name is an alias. */
34863#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34864choke me
34865#else
34866char (*f) () = $ac_func;
34867#endif
34868#ifdef __cplusplus
34869}
34870#endif
34871
34872int
34873main ()
34874{
34875return f != $ac_func;
34876 ;
34877 return 0;
34878}
34879_ACEOF
34880rm -f conftest.$ac_objext conftest$ac_exeext
34881if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34882 (eval $ac_link) 2>conftest.er1
a848cd7e 34883 ac_status=$?
ac1cb8d3
VS
34884 grep -v '^ *+' conftest.er1 >conftest.err
34885 rm -f conftest.er1
34886 cat conftest.err >&5
a848cd7e
SC
34887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34888 (exit $ac_status); } &&
17a7bf57 34889 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34891 (eval $ac_try) 2>&5
34892 ac_status=$?
34893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34894 (exit $ac_status); }; } &&
34895 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
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); }; }; then
34901 eval "$as_ac_var=yes"
34902else
34903 echo "$as_me: failed program was:" >&5
34904sed 's/^/| /' conftest.$ac_ext >&5
34905
34906eval "$as_ac_var=no"
34907fi
ac1cb8d3
VS
34908rm -f conftest.err conftest.$ac_objext \
34909 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34910fi
34911echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34912echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34913if test `eval echo '${'$as_ac_var'}'` = yes; then
34914 cat >>confdefs.h <<_ACEOF
34915#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34916_ACEOF
34917
34918fi
34919done
34920
34921
34922 echo "$as_me:$LINENO: checking for timezone variable in <time.h>" >&5
34923echo $ECHO_N "checking for timezone variable in <time.h>... $ECHO_C" >&6
34924if test "${wx_cv_var_timezone+set}" = set; then
34925 echo $ECHO_N "(cached) $ECHO_C" >&6
34926else
34927
34928 cat >conftest.$ac_ext <<_ACEOF
34929/* confdefs.h. */
34930_ACEOF
34931cat confdefs.h >>conftest.$ac_ext
34932cat >>conftest.$ac_ext <<_ACEOF
34933/* end confdefs.h. */
34934
34935 #include <time.h>
34936
34937int
34938main ()
34939{
34940
34941 int tz;
34942 tz = timezone;
34943
34944 ;
34945 return 0;
34946}
34947_ACEOF
34948rm -f conftest.$ac_objext
34949if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 34950 (eval $ac_compile) 2>conftest.er1
a848cd7e 34951 ac_status=$?
ac1cb8d3
VS
34952 grep -v '^ *+' conftest.er1 >conftest.err
34953 rm -f conftest.er1
34954 cat conftest.err >&5
a848cd7e
SC
34955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34956 (exit $ac_status); } &&
17a7bf57 34957 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34959 (eval $ac_try) 2>&5
34960 ac_status=$?
34961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34962 (exit $ac_status); }; } &&
34963 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
34964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34965 (eval $ac_try) 2>&5
34966 ac_status=$?
34967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34968 (exit $ac_status); }; }; then
34969
34970 wx_cv_var_timezone=timezone
34971
34972else
34973 echo "$as_me: failed program was:" >&5
34974sed 's/^/| /' conftest.$ac_ext >&5
34975
34976
34977 cat >conftest.$ac_ext <<_ACEOF
34978/* confdefs.h. */
34979_ACEOF
34980cat confdefs.h >>conftest.$ac_ext
34981cat >>conftest.$ac_ext <<_ACEOF
34982/* end confdefs.h. */
34983
34984 #include <time.h>
34985
34986int
34987main ()
34988{
34989
34990 int tz;
34991 tz = _timezone;
34992
34993 ;
34994 return 0;
34995}
34996_ACEOF
34997rm -f conftest.$ac_objext
34998if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 34999 (eval $ac_compile) 2>conftest.er1
a848cd7e 35000 ac_status=$?
ac1cb8d3
VS
35001 grep -v '^ *+' conftest.er1 >conftest.err
35002 rm -f conftest.er1
35003 cat conftest.err >&5
a848cd7e
SC
35004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35005 (exit $ac_status); } &&
17a7bf57 35006 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35008 (eval $ac_try) 2>&5
35009 ac_status=$?
35010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35011 (exit $ac_status); }; } &&
35012 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
35013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35014 (eval $ac_try) 2>&5
35015 ac_status=$?
35016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35017 (exit $ac_status); }; }; then
35018
35019 wx_cv_var_timezone=_timezone
35020
35021else
35022 echo "$as_me: failed program was:" >&5
35023sed 's/^/| /' conftest.$ac_ext >&5
35024
35025
35026 cat >conftest.$ac_ext <<_ACEOF
35027/* confdefs.h. */
35028_ACEOF
35029cat confdefs.h >>conftest.$ac_ext
35030cat >>conftest.$ac_ext <<_ACEOF
35031/* end confdefs.h. */
35032
35033 #include <time.h>
35034
35035int
35036main ()
35037{
35038
35039 int tz;
35040 tz = __timezone;
35041
35042 ;
35043 return 0;
35044}
35045_ACEOF
35046rm -f conftest.$ac_objext
35047if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 35048 (eval $ac_compile) 2>conftest.er1
a848cd7e 35049 ac_status=$?
ac1cb8d3
VS
35050 grep -v '^ *+' conftest.er1 >conftest.err
35051 rm -f conftest.er1
35052 cat conftest.err >&5
a848cd7e
SC
35053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35054 (exit $ac_status); } &&
17a7bf57 35055 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35057 (eval $ac_try) 2>&5
35058 ac_status=$?
35059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35060 (exit $ac_status); }; } &&
35061 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
35062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35063 (eval $ac_try) 2>&5
35064 ac_status=$?
35065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35066 (exit $ac_status); }; }; then
35067
35068 wx_cv_var_timezone=__timezone
35069
35070else
35071 echo "$as_me: failed program was:" >&5
35072sed 's/^/| /' conftest.$ac_ext >&5
35073
35074
35075 if test "$USE_DOS" = 0 ; then
35076 { echo "$as_me:$LINENO: WARNING: no timezone variable" >&5
35077echo "$as_me: WARNING: no timezone variable" >&2;}
35078 fi
35079
35080
35081fi
ac1cb8d3 35082rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
35083
35084
35085fi
ac1cb8d3 35086rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
35087
35088
35089fi
ac1cb8d3 35090rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
35091
35092
35093fi
35094echo "$as_me:$LINENO: result: $wx_cv_var_timezone" >&5
35095echo "${ECHO_T}$wx_cv_var_timezone" >&6
35096
35097 if test "x$wx_cv_var_timezone" != x ; then
35098 cat >>confdefs.h <<_ACEOF
35099#define WX_TIMEZONE $wx_cv_var_timezone
35100_ACEOF
35101
35102 fi
35103
35104
35105for ac_func in localtime
35106do
35107as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35108echo "$as_me:$LINENO: checking for $ac_func" >&5
35109echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35110if eval "test \"\${$as_ac_var+set}\" = set"; then
35111 echo $ECHO_N "(cached) $ECHO_C" >&6
35112else
35113 cat >conftest.$ac_ext <<_ACEOF
35114/* confdefs.h. */
35115_ACEOF
35116cat confdefs.h >>conftest.$ac_ext
35117cat >>conftest.$ac_ext <<_ACEOF
35118/* end confdefs.h. */
ac1cb8d3
VS
35119/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35120 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35121#define $ac_func innocuous_$ac_func
35122
a848cd7e
SC
35123/* System header to define __stub macros and hopefully few prototypes,
35124 which can conflict with char $ac_func (); below.
35125 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35126 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 35127
a848cd7e
SC
35128#ifdef __STDC__
35129# include <limits.h>
35130#else
35131# include <assert.h>
35132#endif
ac1cb8d3
VS
35133
35134#undef $ac_func
35135
a848cd7e
SC
35136/* Override any gcc2 internal prototype to avoid an error. */
35137#ifdef __cplusplus
35138extern "C"
35139{
35140#endif
35141/* We use char because int might match the return type of a gcc2
35142 builtin and then its argument prototype would still apply. */
35143char $ac_func ();
35144/* The GNU C library defines this for functions which it implements
35145 to always fail with ENOSYS. Some functions are actually named
35146 something starting with __ and the normal name is an alias. */
35147#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35148choke me
35149#else
35150char (*f) () = $ac_func;
35151#endif
35152#ifdef __cplusplus
35153}
35154#endif
35155
35156int
35157main ()
35158{
35159return f != $ac_func;
35160 ;
35161 return 0;
35162}
35163_ACEOF
35164rm -f conftest.$ac_objext conftest$ac_exeext
35165if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35166 (eval $ac_link) 2>conftest.er1
a848cd7e 35167 ac_status=$?
ac1cb8d3
VS
35168 grep -v '^ *+' conftest.er1 >conftest.err
35169 rm -f conftest.er1
35170 cat conftest.err >&5
a848cd7e
SC
35171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35172 (exit $ac_status); } &&
17a7bf57 35173 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35175 (eval $ac_try) 2>&5
35176 ac_status=$?
35177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35178 (exit $ac_status); }; } &&
35179 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35181 (eval $ac_try) 2>&5
35182 ac_status=$?
35183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35184 (exit $ac_status); }; }; then
35185 eval "$as_ac_var=yes"
35186else
35187 echo "$as_me: failed program was:" >&5
35188sed 's/^/| /' conftest.$ac_ext >&5
35189
35190eval "$as_ac_var=no"
35191fi
ac1cb8d3
VS
35192rm -f conftest.err conftest.$ac_objext \
35193 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35194fi
35195echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35196echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35197if test `eval echo '${'$as_ac_var'}'` = yes; then
35198 cat >>confdefs.h <<_ACEOF
35199#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35200_ACEOF
35201
35202fi
35203done
35204
35205
35206 if test "$ac_cv_func_localtime" = "yes"; then
35207 echo "$as_me:$LINENO: checking for tm_gmtoff in struct tm" >&5
35208echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6
35209if test "${wx_cv_struct_tm_has_gmtoff+set}" = set; then
35210 echo $ECHO_N "(cached) $ECHO_C" >&6
35211else
35212
35213 cat >conftest.$ac_ext <<_ACEOF
35214/* confdefs.h. */
35215_ACEOF
35216cat confdefs.h >>conftest.$ac_ext
35217cat >>conftest.$ac_ext <<_ACEOF
35218/* end confdefs.h. */
35219
35220 #include <time.h>
35221
35222int
35223main ()
35224{
35225
35226 struct tm tm;
35227 tm.tm_gmtoff++;
35228
35229 ;
35230 return 0;
35231}
35232_ACEOF
35233rm -f conftest.$ac_objext
35234if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 35235 (eval $ac_compile) 2>conftest.er1
a848cd7e 35236 ac_status=$?
ac1cb8d3
VS
35237 grep -v '^ *+' conftest.er1 >conftest.err
35238 rm -f conftest.er1
35239 cat conftest.err >&5
a848cd7e
SC
35240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35241 (exit $ac_status); } &&
17a7bf57 35242 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35244 (eval $ac_try) 2>&5
35245 ac_status=$?
35246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35247 (exit $ac_status); }; } &&
35248 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
35249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35250 (eval $ac_try) 2>&5
35251 ac_status=$?
35252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35253 (exit $ac_status); }; }; then
35254
35255 wx_cv_struct_tm_has_gmtoff=yes
35256
35257else
35258 echo "$as_me: failed program was:" >&5
35259sed 's/^/| /' conftest.$ac_ext >&5
35260
35261wx_cv_struct_tm_has_gmtoff=no
35262
35263fi
ac1cb8d3 35264rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
35265
35266fi
35267echo "$as_me:$LINENO: result: $wx_cv_struct_tm_has_gmtoff" >&5
35268echo "${ECHO_T}$wx_cv_struct_tm_has_gmtoff" >&6
35269 fi
35270
35271 if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then
35272 cat >>confdefs.h <<\_ACEOF
35273#define WX_GMTOFF_IN_TM 1
35274_ACEOF
35275
35276 fi
35277
35278
35279
35280for ac_func in gettimeofday ftime
35281do
35282as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35283echo "$as_me:$LINENO: checking for $ac_func" >&5
35284echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35285if eval "test \"\${$as_ac_var+set}\" = set"; then
35286 echo $ECHO_N "(cached) $ECHO_C" >&6
35287else
35288 cat >conftest.$ac_ext <<_ACEOF
35289/* confdefs.h. */
35290_ACEOF
35291cat confdefs.h >>conftest.$ac_ext
35292cat >>conftest.$ac_ext <<_ACEOF
35293/* end confdefs.h. */
ac1cb8d3
VS
35294/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35295 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35296#define $ac_func innocuous_$ac_func
35297
a848cd7e
SC
35298/* System header to define __stub macros and hopefully few prototypes,
35299 which can conflict with char $ac_func (); below.
35300 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35301 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 35302
a848cd7e
SC
35303#ifdef __STDC__
35304# include <limits.h>
35305#else
35306# include <assert.h>
35307#endif
ac1cb8d3
VS
35308
35309#undef $ac_func
35310
a848cd7e
SC
35311/* Override any gcc2 internal prototype to avoid an error. */
35312#ifdef __cplusplus
35313extern "C"
35314{
35315#endif
35316/* We use char because int might match the return type of a gcc2
35317 builtin and then its argument prototype would still apply. */
35318char $ac_func ();
35319/* The GNU C library defines this for functions which it implements
35320 to always fail with ENOSYS. Some functions are actually named
35321 something starting with __ and the normal name is an alias. */
35322#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35323choke me
35324#else
35325char (*f) () = $ac_func;
35326#endif
35327#ifdef __cplusplus
35328}
35329#endif
35330
35331int
35332main ()
35333{
35334return f != $ac_func;
35335 ;
35336 return 0;
35337}
35338_ACEOF
35339rm -f conftest.$ac_objext conftest$ac_exeext
35340if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35341 (eval $ac_link) 2>conftest.er1
a848cd7e 35342 ac_status=$?
ac1cb8d3
VS
35343 grep -v '^ *+' conftest.er1 >conftest.err
35344 rm -f conftest.er1
35345 cat conftest.err >&5
a848cd7e
SC
35346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35347 (exit $ac_status); } &&
17a7bf57 35348 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35350 (eval $ac_try) 2>&5
35351 ac_status=$?
35352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35353 (exit $ac_status); }; } &&
35354 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35356 (eval $ac_try) 2>&5
35357 ac_status=$?
35358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35359 (exit $ac_status); }; }; then
35360 eval "$as_ac_var=yes"
35361else
35362 echo "$as_me: failed program was:" >&5
35363sed 's/^/| /' conftest.$ac_ext >&5
35364
35365eval "$as_ac_var=no"
35366fi
ac1cb8d3
VS
35367rm -f conftest.err conftest.$ac_objext \
35368 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35369fi
35370echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35371echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35372if test `eval echo '${'$as_ac_var'}'` = yes; then
35373 cat >>confdefs.h <<_ACEOF
35374#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35375_ACEOF
35376 break
35377fi
35378done
35379
35380
35381 if test "$ac_cv_func_gettimeofday" = "yes"; then
35382 echo "$as_me:$LINENO: checking whether gettimeofday takes two arguments" >&5
35383echo $ECHO_N "checking whether gettimeofday takes two arguments... $ECHO_C" >&6
35384if test "${wx_cv_func_gettimeofday_has_2_args+set}" = set; then
35385 echo $ECHO_N "(cached) $ECHO_C" >&6
35386else
35387
35388
35389
35390 ac_ext=cc
35391ac_cpp='$CXXCPP $CPPFLAGS'
35392ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35393ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35394ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
35395
35396
35397 cat >conftest.$ac_ext <<_ACEOF
35398/* confdefs.h. */
35399_ACEOF
35400cat confdefs.h >>conftest.$ac_ext
35401cat >>conftest.$ac_ext <<_ACEOF
35402/* end confdefs.h. */
35403
35404 #include <sys/time.h>
35405 #include <unistd.h>
35406
35407int
35408main ()
35409{
35410
35411 struct timeval tv;
35412 gettimeofday(&tv, NULL);
35413
35414 ;
35415 return 0;
35416}
35417_ACEOF
35418rm -f conftest.$ac_objext
35419if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 35420 (eval $ac_compile) 2>conftest.er1
a848cd7e 35421 ac_status=$?
ac1cb8d3
VS
35422 grep -v '^ *+' conftest.er1 >conftest.err
35423 rm -f conftest.er1
35424 cat conftest.err >&5
a848cd7e
SC
35425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35426 (exit $ac_status); } &&
17a7bf57 35427 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35429 (eval $ac_try) 2>&5
35430 ac_status=$?
35431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35432 (exit $ac_status); }; } &&
35433 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
35434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35435 (eval $ac_try) 2>&5
35436 ac_status=$?
35437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35438 (exit $ac_status); }; }; then
35439 wx_cv_func_gettimeofday_has_2_args=yes
35440else
35441 echo "$as_me: failed program was:" >&5
35442sed 's/^/| /' conftest.$ac_ext >&5
35443
35444cat >conftest.$ac_ext <<_ACEOF
35445/* confdefs.h. */
35446_ACEOF
35447cat confdefs.h >>conftest.$ac_ext
35448cat >>conftest.$ac_ext <<_ACEOF
35449/* end confdefs.h. */
35450
35451 #include <sys/time.h>
35452 #include <unistd.h>
35453
35454int
35455main ()
35456{
35457
35458 struct timeval tv;
35459 gettimeofday(&tv);
35460
35461 ;
35462 return 0;
35463}
35464_ACEOF
35465rm -f conftest.$ac_objext
35466if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 35467 (eval $ac_compile) 2>conftest.er1
a848cd7e 35468 ac_status=$?
ac1cb8d3
VS
35469 grep -v '^ *+' conftest.er1 >conftest.err
35470 rm -f conftest.er1
35471 cat conftest.err >&5
a848cd7e
SC
35472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35473 (exit $ac_status); } &&
17a7bf57 35474 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35476 (eval $ac_try) 2>&5
35477 ac_status=$?
35478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35479 (exit $ac_status); }; } &&
35480 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
35481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35482 (eval $ac_try) 2>&5
35483 ac_status=$?
35484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35485 (exit $ac_status); }; }; then
35486 wx_cv_func_gettimeofday_has_2_args=no
35487else
35488 echo "$as_me: failed program was:" >&5
35489sed 's/^/| /' conftest.$ac_ext >&5
35490
35491
35492 { echo "$as_me:$LINENO: WARNING: failed to determine number of gettimeofday() arguments" >&5
35493echo "$as_me: WARNING: failed to determine number of gettimeofday() arguments" >&2;}
35494 wx_cv_func_gettimeofday_has_2_args=unknown
35495
35496
35497fi
ac1cb8d3 35498rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
35499
35500fi
ac1cb8d3 35501rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
35502 ac_ext=c
35503ac_cpp='$CPP $CPPFLAGS'
35504ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35505ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35506ac_compiler_gnu=$ac_cv_c_compiler_gnu
35507
35508
35509fi
35510echo "$as_me:$LINENO: result: $wx_cv_func_gettimeofday_has_2_args" >&5
35511echo "${ECHO_T}$wx_cv_func_gettimeofday_has_2_args" >&6
35512
35513 if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then
35514 cat >>confdefs.h <<\_ACEOF
35515#define WX_GETTIMEOFDAY_NO_TZ 1
35516_ACEOF
35517
35518 fi
35519 fi
35520
35521 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest"
35522fi
35523
35524
35525if test "$wxUSE_SOCKETS" = "yes"; then
35526 if test "$wxUSE_MGL" = "1"; then
35527 { echo "$as_me:$LINENO: WARNING: wxSocket not yet supported under MGL... disabled" >&5
35528echo "$as_me: WARNING: wxSocket not yet supported under MGL... disabled" >&2;}
35529 wxUSE_SOCKETS="no"
35530 fi
35531fi
35532
35533if test "$wxUSE_SOCKETS" = "yes"; then
35534 if test "$TOOLKIT" != "MSW"; then
35535 echo "$as_me:$LINENO: checking for socket" >&5
35536echo $ECHO_N "checking for socket... $ECHO_C" >&6
35537if test "${ac_cv_func_socket+set}" = set; then
35538 echo $ECHO_N "(cached) $ECHO_C" >&6
35539else
35540 cat >conftest.$ac_ext <<_ACEOF
35541/* confdefs.h. */
35542_ACEOF
35543cat confdefs.h >>conftest.$ac_ext
35544cat >>conftest.$ac_ext <<_ACEOF
35545/* end confdefs.h. */
ac1cb8d3
VS
35546/* Define socket to an innocuous variant, in case <limits.h> declares socket.
35547 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35548#define socket innocuous_socket
35549
a848cd7e
SC
35550/* System header to define __stub macros and hopefully few prototypes,
35551 which can conflict with char socket (); below.
35552 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35553 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 35554
a848cd7e
SC
35555#ifdef __STDC__
35556# include <limits.h>
35557#else
35558# include <assert.h>
35559#endif
ac1cb8d3
VS
35560
35561#undef socket
35562
a848cd7e
SC
35563/* Override any gcc2 internal prototype to avoid an error. */
35564#ifdef __cplusplus
35565extern "C"
35566{
35567#endif
35568/* We use char because int might match the return type of a gcc2
35569 builtin and then its argument prototype would still apply. */
35570char socket ();
35571/* The GNU C library defines this for functions which it implements
35572 to always fail with ENOSYS. Some functions are actually named
35573 something starting with __ and the normal name is an alias. */
35574#if defined (__stub_socket) || defined (__stub___socket)
35575choke me
35576#else
35577char (*f) () = socket;
35578#endif
35579#ifdef __cplusplus
35580}
35581#endif
35582
35583int
35584main ()
35585{
35586return f != socket;
35587 ;
35588 return 0;
35589}
35590_ACEOF
35591rm -f conftest.$ac_objext conftest$ac_exeext
35592if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35593 (eval $ac_link) 2>conftest.er1
a848cd7e 35594 ac_status=$?
ac1cb8d3
VS
35595 grep -v '^ *+' conftest.er1 >conftest.err
35596 rm -f conftest.er1
35597 cat conftest.err >&5
a848cd7e
SC
35598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35599 (exit $ac_status); } &&
17a7bf57 35600 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35602 (eval $ac_try) 2>&5
35603 ac_status=$?
35604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35605 (exit $ac_status); }; } &&
35606 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35608 (eval $ac_try) 2>&5
35609 ac_status=$?
35610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35611 (exit $ac_status); }; }; then
35612 ac_cv_func_socket=yes
35613else
35614 echo "$as_me: failed program was:" >&5
35615sed 's/^/| /' conftest.$ac_ext >&5
35616
35617ac_cv_func_socket=no
35618fi
ac1cb8d3
VS
35619rm -f conftest.err conftest.$ac_objext \
35620 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35621fi
35622echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
35623echo "${ECHO_T}$ac_cv_func_socket" >&6
35624if test $ac_cv_func_socket = yes; then
35625 :
35626else
35627
35628 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
35629echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
35630if test "${ac_cv_lib_socket_socket+set}" = set; then
35631 echo $ECHO_N "(cached) $ECHO_C" >&6
35632else
35633 ac_check_lib_save_LIBS=$LIBS
35634LIBS="-lsocket $LIBS"
35635cat >conftest.$ac_ext <<_ACEOF
35636/* confdefs.h. */
35637_ACEOF
35638cat confdefs.h >>conftest.$ac_ext
35639cat >>conftest.$ac_ext <<_ACEOF
35640/* end confdefs.h. */
35641
35642/* Override any gcc2 internal prototype to avoid an error. */
35643#ifdef __cplusplus
35644extern "C"
35645#endif
35646/* We use char because int might match the return type of a gcc2
35647 builtin and then its argument prototype would still apply. */
35648char socket ();
35649int
35650main ()
35651{
35652socket ();
35653 ;
35654 return 0;
35655}
35656_ACEOF
35657rm -f conftest.$ac_objext conftest$ac_exeext
35658if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35659 (eval $ac_link) 2>conftest.er1
a848cd7e 35660 ac_status=$?
ac1cb8d3
VS
35661 grep -v '^ *+' conftest.er1 >conftest.err
35662 rm -f conftest.er1
35663 cat conftest.err >&5
a848cd7e
SC
35664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35665 (exit $ac_status); } &&
17a7bf57 35666 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35668 (eval $ac_try) 2>&5
35669 ac_status=$?
35670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35671 (exit $ac_status); }; } &&
35672 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35674 (eval $ac_try) 2>&5
35675 ac_status=$?
35676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35677 (exit $ac_status); }; }; then
35678 ac_cv_lib_socket_socket=yes
35679else
35680 echo "$as_me: failed program was:" >&5
35681sed 's/^/| /' conftest.$ac_ext >&5
35682
35683ac_cv_lib_socket_socket=no
35684fi
ac1cb8d3
VS
35685rm -f conftest.err conftest.$ac_objext \
35686 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35687LIBS=$ac_check_lib_save_LIBS
35688fi
35689echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
35690echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
35691if test $ac_cv_lib_socket_socket = yes; then
35692 if test "$INET_LINK" != " -lsocket"; then
35693 INET_LINK="$INET_LINK -lsocket"
35694 fi
35695else
35696
35697 { echo "$as_me:$LINENO: WARNING: socket library not found - sockets will be disabled" >&5
35698echo "$as_me: WARNING: socket library not found - sockets will be disabled" >&2;}
35699 wxUSE_SOCKETS=no
35700
35701
35702fi
35703
35704
35705
35706fi
35707
35708 fi
35709fi
35710
35711if test "$wxUSE_SOCKETS" = "yes" ; then
35712 if test "$TOOLKIT" != "MSW"; then
4d4ff94c
VZ
35713 ac_ext=cc
35714ac_cpp='$CXXCPP $CPPFLAGS'
35715ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35716ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35717ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
35718
35719 echo "$as_me:$LINENO: checking what is the type of the third argument of getsockname" >&5
a848cd7e
SC
35720echo $ECHO_N "checking what is the type of the third argument of getsockname... $ECHO_C" >&6
35721if test "${wx_cv_type_getsockname3+set}" = set; then
35722 echo $ECHO_N "(cached) $ECHO_C" >&6
35723else
35724
35725 cat >conftest.$ac_ext <<_ACEOF
35726/* confdefs.h. */
35727_ACEOF
35728cat confdefs.h >>conftest.$ac_ext
35729cat >>conftest.$ac_ext <<_ACEOF
35730/* end confdefs.h. */
35731
35732 #include <sys/types.h>
35733 #include <sys/socket.h>
35734
35735int
35736main ()
35737{
35738
35739 socklen_t len;
35740 getsockname(0, 0, &len);
35741
35742 ;
35743 return 0;
35744}
35745_ACEOF
35746rm -f conftest.$ac_objext
35747if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 35748 (eval $ac_compile) 2>conftest.er1
a848cd7e 35749 ac_status=$?
ac1cb8d3
VS
35750 grep -v '^ *+' conftest.er1 >conftest.err
35751 rm -f conftest.er1
35752 cat conftest.err >&5
a848cd7e
SC
35753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35754 (exit $ac_status); } &&
17a7bf57 35755 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35757 (eval $ac_try) 2>&5
35758 ac_status=$?
35759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35760 (exit $ac_status); }; } &&
35761 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
35762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35763 (eval $ac_try) 2>&5
35764 ac_status=$?
35765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35766 (exit $ac_status); }; }; then
35767 wx_cv_type_getsockname3=socklen_t
35768else
35769 echo "$as_me: failed program was:" >&5
35770sed 's/^/| /' conftest.$ac_ext >&5
35771
35772
35773 CFLAGS_OLD="$CFLAGS"
35774 if test "$GCC" = yes ; then
35775 CFLAGS="$CFLAGS -Werror"
35776 fi
35777
35778 cat >conftest.$ac_ext <<_ACEOF
35779/* confdefs.h. */
35780_ACEOF
35781cat confdefs.h >>conftest.$ac_ext
35782cat >>conftest.$ac_ext <<_ACEOF
35783/* end confdefs.h. */
35784
35785 #include <sys/types.h>
35786 #include <sys/socket.h>
35787
35788int
35789main ()
35790{
35791
35792 size_t len;
35793 getsockname(0, 0, &len);
35794
35795 ;
35796 return 0;
35797}
35798_ACEOF
35799rm -f conftest.$ac_objext
35800if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 35801 (eval $ac_compile) 2>conftest.er1
a848cd7e 35802 ac_status=$?
ac1cb8d3
VS
35803 grep -v '^ *+' conftest.er1 >conftest.err
35804 rm -f conftest.er1
35805 cat conftest.err >&5
a848cd7e
SC
35806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35807 (exit $ac_status); } &&
17a7bf57 35808 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35810 (eval $ac_try) 2>&5
35811 ac_status=$?
35812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35813 (exit $ac_status); }; } &&
35814 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
35815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35816 (eval $ac_try) 2>&5
35817 ac_status=$?
35818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35819 (exit $ac_status); }; }; then
35820 wx_cv_type_getsockname3=size_t
35821else
35822 echo "$as_me: failed program was:" >&5
35823sed 's/^/| /' conftest.$ac_ext >&5
35824
35825cat >conftest.$ac_ext <<_ACEOF
35826/* confdefs.h. */
35827_ACEOF
35828cat confdefs.h >>conftest.$ac_ext
35829cat >>conftest.$ac_ext <<_ACEOF
35830/* end confdefs.h. */
35831
35832 #include <sys/types.h>
35833 #include <sys/socket.h>
35834
35835int
35836main ()
35837{
35838
35839 int len;
35840 getsockname(0, 0, &len);
35841
35842 ;
35843 return 0;
35844}
35845_ACEOF
35846rm -f conftest.$ac_objext
35847if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 35848 (eval $ac_compile) 2>conftest.er1
a848cd7e 35849 ac_status=$?
ac1cb8d3
VS
35850 grep -v '^ *+' conftest.er1 >conftest.err
35851 rm -f conftest.er1
35852 cat conftest.err >&5
a848cd7e
SC
35853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35854 (exit $ac_status); } &&
17a7bf57 35855 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35857 (eval $ac_try) 2>&5
35858 ac_status=$?
35859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35860 (exit $ac_status); }; } &&
35861 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
35862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35863 (eval $ac_try) 2>&5
35864 ac_status=$?
35865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35866 (exit $ac_status); }; }; then
35867 wx_cv_type_getsockname3=int
35868else
35869 echo "$as_me: failed program was:" >&5
35870sed 's/^/| /' conftest.$ac_ext >&5
35871
35872wx_cv_type_getsockname3=unknown
35873
35874fi
ac1cb8d3 35875rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
35876
35877fi
ac1cb8d3 35878rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
35879
35880 CFLAGS="$CFLAGS_OLD"
35881
35882
35883fi
ac1cb8d3 35884rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
35885
35886fi
35887echo "$as_me:$LINENO: result: $wx_cv_type_getsockname3" >&5
35888echo "${ECHO_T}$wx_cv_type_getsockname3" >&6
35889
35890 if test "$wx_cv_type_getsockname3" = "unknown"; then
35891 wxUSE_SOCKETS=no
35892 { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5
35893echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;}
35894 else
35895 cat >>confdefs.h <<_ACEOF
35896#define SOCKLEN_T $wx_cv_type_getsockname3
35897_ACEOF
35898
35899 fi
4d4ff94c
VZ
35900 ac_ext=c
35901ac_cpp='$CPP $CPPFLAGS'
35902ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35903ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35904ac_compiler_gnu=$ac_cv_c_compiler_gnu
35905
a848cd7e
SC
35906 fi
35907fi
35908
35909if test "$wxUSE_SOCKETS" = "yes" ; then
35910 cat >>confdefs.h <<\_ACEOF
35911#define wxUSE_SOCKETS 1
35912_ACEOF
35913
35914 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets"
35915fi
35916
35917if test "$wxUSE_PROTOCOL" = "yes"; then
35918 if test "$wxUSE_SOCKETS" != "yes"; then
35919 { echo "$as_me:$LINENO: WARNING: Protocol classes require sockets... disabled" >&5
35920echo "$as_me: WARNING: Protocol classes require sockets... disabled" >&2;}
35921 wxUSE_PROTOCOL=no
35922 fi
35923fi
35924
35925if test "$wxUSE_PROTOCOL" = "yes"; then
35926 cat >>confdefs.h <<\_ACEOF
35927#define wxUSE_PROTOCOL 1
35928_ACEOF
35929
35930
35931 if test "$wxUSE_PROTOCOL_HTTP" = "yes"; then
35932 cat >>confdefs.h <<\_ACEOF
35933#define wxUSE_PROTOCOL_HTTP 1
35934_ACEOF
35935
35936 fi
35937 if test "$wxUSE_PROTOCOL_FTP" = "yes"; then
35938 cat >>confdefs.h <<\_ACEOF
35939#define wxUSE_PROTOCOL_FTP 1
35940_ACEOF
35941
35942 fi
35943 if test "$wxUSE_PROTOCOL_FILE" = "yes"; then
35944 cat >>confdefs.h <<\_ACEOF
35945#define wxUSE_PROTOCOL_FILE 1
35946_ACEOF
35947
35948 fi
35949else
35950 if test "$wxUSE_FS_INET" = "yes"; then
35951 { echo "$as_me:$LINENO: WARNING: HTTP filesystem require protocol classes... disabled" >&5
35952echo "$as_me: WARNING: HTTP filesystem require protocol classes... disabled" >&2;}
35953 wxUSE_FS_INET="no"
35954 fi
35955fi
35956
35957if test "$wxUSE_URL" = "yes"; then
35958 if test "$wxUSE_PROTOCOL" != "yes"; then
35959 { echo "$as_me:$LINENO: WARNING: wxURL class requires wxProtocol... disabled" >&5
35960echo "$as_me: WARNING: wxURL class requires wxProtocol... disabled" >&2;}
35961 wxUSE_URL=no
35962 fi
35963 if test "$wxUSE_URL" = "yes"; then
35964 cat >>confdefs.h <<\_ACEOF
35965#define wxUSE_URL 1
35966_ACEOF
35967
35968 fi
35969fi
35970
35971if test "$wxUSE_FS_INET" = "yes"; then
35972 cat >>confdefs.h <<\_ACEOF
35973#define wxUSE_FS_INET 1
35974_ACEOF
35975
35976fi
35977
35978
35979if test "$wxUSE_GUI" = "yes"; then
35980
35981 if test "$TOOLKIT" = "MAC" -o "$TOOLKIT" = "COCOA"; then
35982 { echo "$as_me:$LINENO: WARNING: Joystick not yet supported under Mac OS X... disabled" >&5
35983echo "$as_me: WARNING: Joystick not yet supported under Mac OS X... disabled" >&2;}
35984 wxUSE_JOYSTICK=no
35985 fi
35986
35987 if test "$TOOLKIT" != "MSW"; then
35988 if test "$wxUSE_JOYSTICK" = "yes"; then
35989
35990for ac_header in linux/joystick.h
35991do
35992as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
35993if eval "test \"\${$as_ac_Header+set}\" = set"; then
35994 echo "$as_me:$LINENO: checking for $ac_header" >&5
35995echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35996if eval "test \"\${$as_ac_Header+set}\" = set"; then
35997 echo $ECHO_N "(cached) $ECHO_C" >&6
35998fi
35999echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36000echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36001else
36002 # Is the header compilable?
36003echo "$as_me:$LINENO: checking $ac_header usability" >&5
36004echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
36005cat >conftest.$ac_ext <<_ACEOF
36006/* confdefs.h. */
36007_ACEOF
36008cat confdefs.h >>conftest.$ac_ext
36009cat >>conftest.$ac_ext <<_ACEOF
36010/* end confdefs.h. */
36011$ac_includes_default
36012#include <$ac_header>
36013_ACEOF
36014rm -f conftest.$ac_objext
36015if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 36016 (eval $ac_compile) 2>conftest.er1
a848cd7e 36017 ac_status=$?
ac1cb8d3
VS
36018 grep -v '^ *+' conftest.er1 >conftest.err
36019 rm -f conftest.er1
36020 cat conftest.err >&5
a848cd7e
SC
36021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36022 (exit $ac_status); } &&
17a7bf57 36023 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36025 (eval $ac_try) 2>&5
36026 ac_status=$?
36027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36028 (exit $ac_status); }; } &&
36029 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
36030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36031 (eval $ac_try) 2>&5
36032 ac_status=$?
36033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36034 (exit $ac_status); }; }; then
36035 ac_header_compiler=yes
36036else
36037 echo "$as_me: failed program was:" >&5
36038sed 's/^/| /' conftest.$ac_ext >&5
36039
36040ac_header_compiler=no
36041fi
ac1cb8d3 36042rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
36043echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36044echo "${ECHO_T}$ac_header_compiler" >&6
36045
36046# Is the header present?
36047echo "$as_me:$LINENO: checking $ac_header presence" >&5
36048echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
36049cat >conftest.$ac_ext <<_ACEOF
36050/* confdefs.h. */
36051_ACEOF
36052cat confdefs.h >>conftest.$ac_ext
36053cat >>conftest.$ac_ext <<_ACEOF
36054/* end confdefs.h. */
36055#include <$ac_header>
36056_ACEOF
36057if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
36058 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
36059 ac_status=$?
36060 grep -v '^ *+' conftest.er1 >conftest.err
36061 rm -f conftest.er1
36062 cat conftest.err >&5
36063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36064 (exit $ac_status); } >/dev/null; then
36065 if test -s conftest.err; then
36066 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 36067 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
36068 else
36069 ac_cpp_err=
36070 fi
36071else
36072 ac_cpp_err=yes
36073fi
36074if test -z "$ac_cpp_err"; then
36075 ac_header_preproc=yes
36076else
36077 echo "$as_me: failed program was:" >&5
36078sed 's/^/| /' conftest.$ac_ext >&5
36079
36080 ac_header_preproc=no
36081fi
36082rm -f conftest.err conftest.$ac_ext
36083echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36084echo "${ECHO_T}$ac_header_preproc" >&6
36085
36086# So? What about this header?
ac1cb8d3
VS
36087case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36088 yes:no: )
a848cd7e
SC
36089 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
36090echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
36091 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
36092echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
36093 ac_header_preproc=yes
a848cd7e 36094 ;;
ac1cb8d3 36095 no:yes:* )
a848cd7e
SC
36096 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
36097echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
36098 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
36099echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
36100 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
36101echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
36102 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
36103echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
36104 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
36105echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
36106 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
36107echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
36108 (
36109 cat <<\_ASBOX
ac1cb8d3
VS
36110## ----------------------------------------- ##
36111## Report this to wx-dev@lists.wxwidgets.org ##
36112## ----------------------------------------- ##
a848cd7e
SC
36113_ASBOX
36114 ) |
36115 sed "s/^/$as_me: WARNING: /" >&2
36116 ;;
36117esac
36118echo "$as_me:$LINENO: checking for $ac_header" >&5
36119echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36120if eval "test \"\${$as_ac_Header+set}\" = set"; then
36121 echo $ECHO_N "(cached) $ECHO_C" >&6
36122else
ac1cb8d3 36123 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
36124fi
36125echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36126echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36127
36128fi
36129if test `eval echo '${'$as_ac_Header'}'` = yes; then
36130 cat >>confdefs.h <<_ACEOF
36131#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
36132_ACEOF
36133
36134fi
36135
36136done
36137
36138 if test "$ac_cv_header_linux_joystick_h" != "yes"; then
36139 wxUSE_JOYSTICK=no
36140 { echo "$as_me:$LINENO: WARNING: Joystick not supported by this system... disabled" >&5
36141echo "$as_me: WARNING: Joystick not supported by this system... disabled" >&2;}
36142 fi
36143 fi
36144 fi
36145
36146 if test "$wxUSE_JOYSTICK" = "yes"; then
36147 cat >>confdefs.h <<\_ACEOF
36148#define wxUSE_JOYSTICK 1
36149_ACEOF
36150
36151 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest"
36152 fi
36153fi
36154
36155
36156
36157if test "$wxUSE_FONTMAP" = "yes" ; then
36158 cat >>confdefs.h <<\_ACEOF
36159#define wxUSE_FONTMAP 1
36160_ACEOF
36161
36162fi
36163
36164if test "$wxUSE_UNICODE" = "yes" ; then
36165 cat >>confdefs.h <<\_ACEOF
36166#define wxUSE_UNICODE 1
36167_ACEOF
36168
36169
36170 if test "$USE_WIN32" != 1; then
36171 wxUSE_UNICODE_MSLU=no
36172 fi
36173
36174 if test "$USE_WIN32" = 1 -a "$wxUSE_UNICODE_MSLU" = "yes"; then
36175 echo "$as_me:$LINENO: checking for main in -lunicows" >&5
36176echo $ECHO_N "checking for main in -lunicows... $ECHO_C" >&6
36177if test "${ac_cv_lib_unicows_main+set}" = set; then
36178 echo $ECHO_N "(cached) $ECHO_C" >&6
36179else
36180 ac_check_lib_save_LIBS=$LIBS
36181LIBS="-lunicows $LIBS"
36182cat >conftest.$ac_ext <<_ACEOF
36183/* confdefs.h. */
36184_ACEOF
36185cat confdefs.h >>conftest.$ac_ext
36186cat >>conftest.$ac_ext <<_ACEOF
36187/* end confdefs.h. */
36188
36189
36190int
36191main ()
36192{
36193main ();
36194 ;
36195 return 0;
36196}
36197_ACEOF
36198rm -f conftest.$ac_objext conftest$ac_exeext
36199if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36200 (eval $ac_link) 2>conftest.er1
a848cd7e 36201 ac_status=$?
ac1cb8d3
VS
36202 grep -v '^ *+' conftest.er1 >conftest.err
36203 rm -f conftest.er1
36204 cat conftest.err >&5
a848cd7e
SC
36205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36206 (exit $ac_status); } &&
17a7bf57 36207 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36209 (eval $ac_try) 2>&5
36210 ac_status=$?
36211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36212 (exit $ac_status); }; } &&
36213 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36215 (eval $ac_try) 2>&5
36216 ac_status=$?
36217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36218 (exit $ac_status); }; }; then
36219 ac_cv_lib_unicows_main=yes
36220else
36221 echo "$as_me: failed program was:" >&5
36222sed 's/^/| /' conftest.$ac_ext >&5
36223
36224ac_cv_lib_unicows_main=no
36225fi
ac1cb8d3
VS
36226rm -f conftest.err conftest.$ac_objext \
36227 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36228LIBS=$ac_check_lib_save_LIBS
36229fi
36230echo "$as_me:$LINENO: result: $ac_cv_lib_unicows_main" >&5
36231echo "${ECHO_T}$ac_cv_lib_unicows_main" >&6
36232if test $ac_cv_lib_unicows_main = yes; then
36233
36234 cat >>confdefs.h <<\_ACEOF
36235#define wxUSE_UNICODE_MSLU 1
36236_ACEOF
36237
36238
36239else
36240
36241 { echo "$as_me:$LINENO: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
36242 Applications will only run on Windows NT/2000/XP!" >&5
36243echo "$as_me: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
36244 Applications will only run on Windows NT/2000/XP!" >&2;}
36245 wxUSE_UNICODE_MSLU=no
36246
36247fi
36248
36249 fi
36250fi
36251
36252if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then
36253 cat >>confdefs.h <<\_ACEOF
36254#define wxUSE_EXPERIMENTAL_PRINTF 1
36255_ACEOF
36256
36257fi
36258
36259
36260if test "$wxUSE_POSTSCRIPT" = "yes" ; then
36261 cat >>confdefs.h <<\_ACEOF
36262#define wxUSE_POSTSCRIPT 1
36263_ACEOF
36264
36265fi
36266
36267cat >>confdefs.h <<\_ACEOF
36268#define wxUSE_AFM_FOR_POSTSCRIPT 1
36269_ACEOF
36270
36271
36272cat >>confdefs.h <<\_ACEOF
36273#define wxUSE_NORMALIZED_PS_FONTS 1
36274_ACEOF
36275
36276
36277
36278if test "$wxUSE_CONSTRAINTS" = "yes"; then
36279 cat >>confdefs.h <<\_ACEOF
36280#define wxUSE_CONSTRAINTS 1
36281_ACEOF
36282
36283 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout"
36284fi
36285
8a7b1113
VZ
36286if test "$wxUSE_MDI" = "yes"; then
36287 cat >>confdefs.h <<\_ACEOF
36288#define wxUSE_MDI 1
36289_ACEOF
36290
36291
36292 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
36293 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
36294#define wxUSE_MDI_ARCHITECTURE 1
36295_ACEOF
36296
8a7b1113
VZ
36297 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi"
36298 fi
a848cd7e
SC
36299fi
36300
36301if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then
36302 cat >>confdefs.h <<\_ACEOF
36303#define wxUSE_DOC_VIEW_ARCHITECTURE 1
36304_ACEOF
36305
36306 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview"
36307 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
36308 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi"
36309 fi
36310fi
36311
36312if test "$wxUSE_HELP" = "yes"; then
36313 cat >>confdefs.h <<\_ACEOF
36314#define wxUSE_HELP 1
36315_ACEOF
36316
36317 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help"
36318
36319 if test "$wxUSE_MSW" = 1; then
36320 if test "$wxUSE_MS_HTML_HELP" = "yes"; then
36321 cat >>confdefs.h <<\_ACEOF
36322#define wxUSE_MS_HTML_HELP 1
36323_ACEOF
36324
36325 fi
36326 fi
36327
36328 if test "$wxUSE_WXHTML_HELP" = "yes"; then
36329 if test "$wxUSE_HTML" = "yes"; then
36330 cat >>confdefs.h <<\_ACEOF
36331#define wxUSE_WXHTML_HELP 1
36332_ACEOF
36333
36334 else
36335 { echo "$as_me:$LINENO: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&5
36336echo "$as_me: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&2;}
36337 wxUSE_WXHTML_HELP=no
36338 fi
36339 fi
36340fi
36341
36342if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
36343 if test "$wxUSE_CONSTRAINTS" != "yes"; then
36344 { echo "$as_me:$LINENO: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&5
36345echo "$as_me: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&2;}
36346 else
36347 cat >>confdefs.h <<\_ACEOF
36348#define wxUSE_PRINTING_ARCHITECTURE 1
36349_ACEOF
36350
36351 fi
36352 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing"
36353fi
36354
36355if test "$wxUSE_PROLOGIO" = "yes" -o "$wxUSE_RESOURCES" = "yes"; then
36356 { { echo "$as_me:$LINENO: error: wxExpr and old-style resources are now available in contrib only" >&5
36357echo "$as_me: error: wxExpr and old-style resources are now available in contrib only" >&2;}
36358 { (exit 1); exit 1; }; }
36359fi
36360
36361
36362if test "$USE_WIN32" = 1 -a \( "$wxUSE_DATAOBJ" = "yes" \
36363 -o "$wxUSE_CLIPBOARD" = "yes" \
36364 -o "$wxUSE_OLE" = "yes" \
36365 -o "$wxUSE_DRAG_AND_DROP" = "yes" \) ; then
36366
36367for ac_header in ole2.h
36368do
36369as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
36370if eval "test \"\${$as_ac_Header+set}\" = set"; then
36371 echo "$as_me:$LINENO: checking for $ac_header" >&5
36372echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36373if eval "test \"\${$as_ac_Header+set}\" = set"; then
36374 echo $ECHO_N "(cached) $ECHO_C" >&6
36375fi
36376echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36377echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36378else
36379 # Is the header compilable?
36380echo "$as_me:$LINENO: checking $ac_header usability" >&5
36381echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
36382cat >conftest.$ac_ext <<_ACEOF
36383/* confdefs.h. */
36384_ACEOF
36385cat confdefs.h >>conftest.$ac_ext
36386cat >>conftest.$ac_ext <<_ACEOF
36387/* end confdefs.h. */
36388$ac_includes_default
36389#include <$ac_header>
36390_ACEOF
36391rm -f conftest.$ac_objext
36392if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 36393 (eval $ac_compile) 2>conftest.er1
a848cd7e 36394 ac_status=$?
ac1cb8d3
VS
36395 grep -v '^ *+' conftest.er1 >conftest.err
36396 rm -f conftest.er1
36397 cat conftest.err >&5
a848cd7e
SC
36398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36399 (exit $ac_status); } &&
17a7bf57 36400 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36402 (eval $ac_try) 2>&5
36403 ac_status=$?
36404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36405 (exit $ac_status); }; } &&
36406 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
36407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36408 (eval $ac_try) 2>&5
36409 ac_status=$?
36410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36411 (exit $ac_status); }; }; then
36412 ac_header_compiler=yes
36413else
36414 echo "$as_me: failed program was:" >&5
36415sed 's/^/| /' conftest.$ac_ext >&5
36416
36417ac_header_compiler=no
36418fi
ac1cb8d3 36419rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
36420echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36421echo "${ECHO_T}$ac_header_compiler" >&6
36422
36423# Is the header present?
36424echo "$as_me:$LINENO: checking $ac_header presence" >&5
36425echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
36426cat >conftest.$ac_ext <<_ACEOF
36427/* confdefs.h. */
36428_ACEOF
36429cat confdefs.h >>conftest.$ac_ext
36430cat >>conftest.$ac_ext <<_ACEOF
36431/* end confdefs.h. */
36432#include <$ac_header>
36433_ACEOF
36434if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
36435 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
36436 ac_status=$?
36437 grep -v '^ *+' conftest.er1 >conftest.err
36438 rm -f conftest.er1
36439 cat conftest.err >&5
36440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36441 (exit $ac_status); } >/dev/null; then
36442 if test -s conftest.err; then
36443 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 36444 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
36445 else
36446 ac_cpp_err=
36447 fi
36448else
36449 ac_cpp_err=yes
36450fi
36451if test -z "$ac_cpp_err"; then
36452 ac_header_preproc=yes
36453else
36454 echo "$as_me: failed program was:" >&5
36455sed 's/^/| /' conftest.$ac_ext >&5
36456
36457 ac_header_preproc=no
36458fi
36459rm -f conftest.err conftest.$ac_ext
36460echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36461echo "${ECHO_T}$ac_header_preproc" >&6
36462
36463# So? What about this header?
ac1cb8d3
VS
36464case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36465 yes:no: )
a848cd7e
SC
36466 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
36467echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
36468 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
36469echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
36470 ac_header_preproc=yes
a848cd7e 36471 ;;
ac1cb8d3 36472 no:yes:* )
a848cd7e
SC
36473 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
36474echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
36475 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
36476echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
36477 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
36478echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
36479 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
36480echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
36481 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
36482echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
36483 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
36484echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
36485 (
36486 cat <<\_ASBOX
ac1cb8d3
VS
36487## ----------------------------------------- ##
36488## Report this to wx-dev@lists.wxwidgets.org ##
36489## ----------------------------------------- ##
a848cd7e
SC
36490_ASBOX
36491 ) |
36492 sed "s/^/$as_me: WARNING: /" >&2
36493 ;;
36494esac
36495echo "$as_me:$LINENO: checking for $ac_header" >&5
36496echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36497if eval "test \"\${$as_ac_Header+set}\" = set"; then
36498 echo $ECHO_N "(cached) $ECHO_C" >&6
36499else
ac1cb8d3 36500 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
36501fi
36502echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36503echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36504
36505fi
36506if test `eval echo '${'$as_ac_Header'}'` = yes; then
36507 cat >>confdefs.h <<_ACEOF
36508#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
36509_ACEOF
36510
36511fi
36512
36513done
36514
36515
36516 if test "$ac_cv_header_ole2_h" = "yes" ; then
36517 if test "$GCC" = yes ; then
36518
36519
36520 ac_ext=cc
36521ac_cpp='$CXXCPP $CPPFLAGS'
36522ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36523ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36524ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
36525
36526
36527 echo "$as_me:$LINENO: checking if g++ requires -fvtable-thunks" >&5
36528echo $ECHO_N "checking if g++ requires -fvtable-thunks... $ECHO_C" >&6
36529 cat >conftest.$ac_ext <<_ACEOF
36530/* confdefs.h. */
36531_ACEOF
36532cat confdefs.h >>conftest.$ac_ext
36533cat >>conftest.$ac_ext <<_ACEOF
36534/* end confdefs.h. */
36535#include <windows.h>
36536 #include <ole2.h>
36537int
36538main ()
36539{
36540
36541 ;
36542 return 0;
36543}
36544_ACEOF
36545rm -f conftest.$ac_objext
36546if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 36547 (eval $ac_compile) 2>conftest.er1
a848cd7e 36548 ac_status=$?
ac1cb8d3
VS
36549 grep -v '^ *+' conftest.er1 >conftest.err
36550 rm -f conftest.er1
36551 cat conftest.err >&5
a848cd7e
SC
36552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36553 (exit $ac_status); } &&
17a7bf57 36554 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36556 (eval $ac_try) 2>&5
36557 ac_status=$?
36558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36559 (exit $ac_status); }; } &&
36560 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
36561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36562 (eval $ac_try) 2>&5
36563 ac_status=$?
36564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36565 (exit $ac_status); }; }; then
36566 echo "$as_me:$LINENO: result: no" >&5
36567echo "${ECHO_T}no" >&6
36568else
36569 echo "$as_me: failed program was:" >&5
36570sed 's/^/| /' conftest.$ac_ext >&5
36571
36572echo "$as_me:$LINENO: result: yes" >&5
36573echo "${ECHO_T}yes" >&6
36574 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fvtable-thunks"
36575fi
ac1cb8d3 36576rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
36577 ac_ext=c
36578ac_cpp='$CPP $CPPFLAGS'
36579ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36580ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36581ac_compiler_gnu=$ac_cv_c_compiler_gnu
36582
a848cd7e
SC
36583 LIBS=" -lrpcrt4 -loleaut32 -lole32 -luuid$LIBS"
36584 if test "$wxUSE_OLE" = "yes" ; then
36585 cat >>confdefs.h <<\_ACEOF
36586#define wxUSE_OLE 1
36587_ACEOF
36588
36589 fi
36590 fi
36591
36592 if test "$wxUSE_DATAOBJ" = "yes" ; then
36593 cat >>confdefs.h <<\_ACEOF
36594#define wxUSE_DATAOBJ 1
36595_ACEOF
36596
36597 fi
36598 else
36599 { echo "$as_me:$LINENO: WARNING: Some features disabled because OLE headers not found" >&5
36600echo "$as_me: WARNING: Some features disabled because OLE headers not found" >&2;}
36601
36602 wxUSE_CLIPBOARD=no
36603 wxUSE_DRAG_AND_DROP=no
36604 wxUSE_DATAOBJ=no
36605 wxUSE_OLE=no
36606 fi
36607
36608 if test "$wxUSE_METAFILE" = "yes"; then
36609 cat >>confdefs.h <<\_ACEOF
36610#define wxUSE_METAFILE 1
36611_ACEOF
36612
36613
36614 cat >>confdefs.h <<\_ACEOF
36615#define wxUSE_ENH_METAFILE 1
36616_ACEOF
36617
36618 fi
36619fi
36620
36621if test "$wxUSE_IPC" = "yes"; then
36622 if test "$wxUSE_SOCKETS" != "yes"; then
77ffb593
JS
36623 { echo "$as_me:$LINENO: WARNING: wxWidgets IPC classes require sockets... disabled" >&5
36624echo "$as_me: WARNING: wxWidgets IPC classes require sockets... disabled" >&2;}
a848cd7e
SC
36625 fi
36626
36627 cat >>confdefs.h <<\_ACEOF
36628#define wxUSE_IPC 1
36629_ACEOF
36630
36631fi
36632
36633if test "$wxUSE_CLIPBOARD" = "yes"; then
36634 if test "$wxUSE_MGL" = 1; then
36635 { echo "$as_me:$LINENO: WARNING: Clipboard not yet supported under MGL... disabled" >&5
36636echo "$as_me: WARNING: Clipboard not yet supported under MGL... disabled" >&2;}
36637 wxUSE_CLIPBOARD=no
36638 fi
36639
36640 if test "$wxUSE_CLIPBOARD" = "yes"; then
36641 cat >>confdefs.h <<\_ACEOF
36642#define wxUSE_CLIPBOARD 1
36643_ACEOF
36644
36645
36646 cat >>confdefs.h <<\_ACEOF
36647#define wxUSE_DATAOBJ 1
36648_ACEOF
36649
36650 fi
36651fi
36652
36653if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then
36654 if test "$wxUSE_GTK" = 1; then
36655 if test "$WXGTK12" != 1; then
36656 { echo "$as_me:$LINENO: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&5
36657echo "$as_me: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&2;}
36658 wxUSE_DRAG_AND_DROP=no
36659 fi
36660 fi
36661
36662 if test "$wxUSE_MOTIF" = 1; then
36663 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under Motif... disabled" >&5
36664echo "$as_me: WARNING: Drag and drop not yet supported under Motif... disabled" >&2;}
36665 wxUSE_DRAG_AND_DROP=no
36666 fi
36667
36668 if test "$wxUSE_X11" = 1; then
36669 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under X11... disabled" >&5
36670echo "$as_me: WARNING: Drag and drop not yet supported under X11... disabled" >&2;}
36671 wxUSE_DRAG_AND_DROP=no
36672 fi
36673
36674 if test "$wxUSE_MGL" = 1; then
36675 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under MGL... disabled" >&5
36676echo "$as_me: WARNING: Drag and drop not yet supported under MGL... disabled" >&2;}
36677 wxUSE_DRAG_AND_DROP=no
36678 fi
36679
36680 if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
36681 cat >>confdefs.h <<\_ACEOF
36682#define wxUSE_DRAG_AND_DROP 1
36683_ACEOF
36684
36685 fi
36686
36687fi
36688
36689if test "$wxUSE_DRAG_AND_DROP" = "yes" -o "$wxUSE_CLIPBOARD" = "yes"; then
36690 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd"
36691fi
36692
36693if test "$wxUSE_SPLINES" = "yes" ; then
36694 cat >>confdefs.h <<\_ACEOF
36695#define wxUSE_SPLINES 1
36696_ACEOF
36697
36698fi
36699
36700
36701USES_CONTROLS=0
36702if test "$wxUSE_CONTROLS" = "yes"; then
36703 USES_CONTROLS=1
36704fi
36705
36706if test "$wxUSE_ACCEL" = "yes"; then
36707 cat >>confdefs.h <<\_ACEOF
36708#define wxUSE_ACCEL 1
36709_ACEOF
36710
36711 USES_CONTROLS=1
36712fi
36713
36714if test "$wxUSE_BUTTON" = "yes"; then
36715 cat >>confdefs.h <<\_ACEOF
36716#define wxUSE_BUTTON 1
36717_ACEOF
36718
36719 USES_CONTROLS=1
36720fi
36721
36722if test "$wxUSE_BMPBUTTON" = "yes"; then
36723 cat >>confdefs.h <<\_ACEOF
36724#define wxUSE_BMPBUTTON 1
36725_ACEOF
36726
36727 USES_CONTROLS=1
36728fi
36729
36730if test "$wxUSE_CALCTRL" = "yes"; then
36731 cat >>confdefs.h <<\_ACEOF
36732#define wxUSE_CALENDARCTRL 1
36733_ACEOF
36734
36735 USES_CONTROLS=1
36736 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar"
36737fi
36738
36739if test "$wxUSE_CARET" = "yes"; then
36740 cat >>confdefs.h <<\_ACEOF
36741#define wxUSE_CARET 1
36742_ACEOF
36743
36744 USES_CONTROLS=1
36745 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret"
36746fi
36747
36748if test "$wxUSE_COMBOBOX" = "yes"; then
36749 cat >>confdefs.h <<\_ACEOF
36750#define wxUSE_COMBOBOX 1
36751_ACEOF
36752
36753 USES_CONTROLS=1
36754fi
36755
36756if test "$wxUSE_CHOICE" = "yes"; then
36757 cat >>confdefs.h <<\_ACEOF
36758#define wxUSE_CHOICE 1
36759_ACEOF
36760
36761 USES_CONTROLS=1
36762fi
36763
92bbdbcd
WS
36764if test "$wxUSE_CHOICEBOOK" = "yes"; then
36765 cat >>confdefs.h <<\_ACEOF
36766#define wxUSE_CHOICEBOOK 1
36767_ACEOF
36768
36769 USES_CONTROLS=1
36770fi
36771
a848cd7e
SC
36772if test "$wxUSE_CHECKBOX" = "yes"; then
36773 cat >>confdefs.h <<\_ACEOF
36774#define wxUSE_CHECKBOX 1
36775_ACEOF
36776
36777 USES_CONTROLS=1
36778fi
36779
36780if test "$wxUSE_CHECKLST" = "yes"; then
36781 cat >>confdefs.h <<\_ACEOF
36782#define wxUSE_CHECKLISTBOX 1
36783_ACEOF
36784
36785 USES_CONTROLS=1
36786 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst"
36787fi
36788
36789if test "$wxUSE_DISPLAY" = "yes"; then
36790 cat >>confdefs.h <<\_ACEOF
36791#define wxUSE_DISPLAY 1
36792_ACEOF
36793
36794 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS display"
36795fi
36796
36797if test "$wxUSE_GAUGE" = "yes"; then
36798 cat >>confdefs.h <<\_ACEOF
36799#define wxUSE_GAUGE 1
36800_ACEOF
36801
36802 USES_CONTROLS=1
36803fi
36804
36805if test "$wxUSE_GRID" = "yes"; then
36806 cat >>confdefs.h <<\_ACEOF
36807#define wxUSE_GRID 1
36808_ACEOF
36809
36810 USES_CONTROLS=1
36811 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid"
36812fi
36813
36814if test "$wxUSE_IMAGLIST" = "yes"; then
36815 cat >>confdefs.h <<\_ACEOF
36816#define wxUSE_IMAGLIST 1
36817_ACEOF
36818
36819fi
36820
36821if test "$wxUSE_LISTBOOK" = "yes"; then
36822 cat >>confdefs.h <<\_ACEOF
36823#define wxUSE_LISTBOOK 1
36824_ACEOF
36825
36826 USES_CONTROLS=1
36827fi
36828
36829if test "$wxUSE_LISTBOX" = "yes"; then
36830 cat >>confdefs.h <<\_ACEOF
36831#define wxUSE_LISTBOX 1
36832_ACEOF
36833
36834 USES_CONTROLS=1
36835fi
36836
36837if test "$wxUSE_LISTCTRL" = "yes"; then
36838 if test "$wxUSE_IMAGLIST" = "yes"; then
36839 cat >>confdefs.h <<\_ACEOF
36840#define wxUSE_LISTCTRL 1
36841_ACEOF
36842
36843 USES_CONTROLS=1
36844 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl"
36845 else
36846 { echo "$as_me:$LINENO: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&5
36847echo "$as_me: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&2;}
36848 fi
36849fi
36850
36851if test "$wxUSE_NOTEBOOK" = "yes"; then
36852 cat >>confdefs.h <<\_ACEOF
36853#define wxUSE_NOTEBOOK 1
36854_ACEOF
36855
36856 USES_CONTROLS=1
36857 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook"
36858fi
36859
36860
36861if test "$wxUSE_RADIOBOX" = "yes"; then
36862 cat >>confdefs.h <<\_ACEOF
36863#define wxUSE_RADIOBOX 1
36864_ACEOF
36865
36866 USES_CONTROLS=1
36867fi
36868
36869if test "$wxUSE_RADIOBTN" = "yes"; then
36870 cat >>confdefs.h <<\_ACEOF
36871#define wxUSE_RADIOBTN 1
36872_ACEOF
36873
36874 USES_CONTROLS=1
36875fi
36876
36877if test "$wxUSE_SASH" = "yes"; then
36878 cat >>confdefs.h <<\_ACEOF
36879#define wxUSE_SASH 1
36880_ACEOF
36881
36882 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest"
36883fi
36884
36885if test "$wxUSE_SCROLLBAR" = "yes"; then
36886 cat >>confdefs.h <<\_ACEOF
36887#define wxUSE_SCROLLBAR 1
36888_ACEOF
36889
36890 USES_CONTROLS=1
36891 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub"
36892fi
36893
36894if test "$wxUSE_SLIDER" = "yes"; then
36895 cat >>confdefs.h <<\_ACEOF
36896#define wxUSE_SLIDER 1
36897_ACEOF
36898
36899 USES_CONTROLS=1
36900fi
36901
36902if test "$wxUSE_SPINBTN" = "yes"; then
36903 cat >>confdefs.h <<\_ACEOF
36904#define wxUSE_SPINBTN 1
36905_ACEOF
36906
36907 USES_CONTROLS=1
36908fi
36909
36910if test "$wxUSE_SPINCTRL" = "yes"; then
36911 cat >>confdefs.h <<\_ACEOF
36912#define wxUSE_SPINCTRL 1
36913_ACEOF
36914
36915 USES_CONTROLS=1
36916fi
36917
36918if test "$wxUSE_SPLITTER" = "yes"; then
36919 cat >>confdefs.h <<\_ACEOF
36920#define wxUSE_SPLITTER 1
36921_ACEOF
36922
36923 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter"
36924fi
36925
36926if test "$wxUSE_STATBMP" = "yes"; then
36927 cat >>confdefs.h <<\_ACEOF
36928#define wxUSE_STATBMP 1
36929_ACEOF
36930
36931 USES_CONTROLS=1
36932fi
36933
36934if test "$wxUSE_STATBOX" = "yes"; then
36935 cat >>confdefs.h <<\_ACEOF
36936#define wxUSE_STATBOX 1
36937_ACEOF
36938
36939 USES_CONTROLS=1
36940fi
36941
36942if test "$wxUSE_STATTEXT" = "yes"; then
36943 cat >>confdefs.h <<\_ACEOF
36944#define wxUSE_STATTEXT 1
36945_ACEOF
36946
36947 USES_CONTROLS=1
36948fi
36949
36950if test "$wxUSE_STATLINE" = "yes"; then
36951 cat >>confdefs.h <<\_ACEOF
36952#define wxUSE_STATLINE 1
36953_ACEOF
36954
36955 USES_CONTROLS=1
36956fi
36957
36958if test "$wxUSE_STATUSBAR" = "yes"; then
36959 cat >>confdefs.h <<\_ACEOF
36960#define wxUSE_STATUSBAR 1
36961_ACEOF
36962
36963 USES_CONTROLS=1
36964
36965 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar"
36966fi
36967
36968if test "$wxUSE_TABDIALOG" = "yes"; then
36969 cat >>confdefs.h <<\_ACEOF
36970#define wxUSE_TAB_DIALOG 1
36971_ACEOF
36972
36973 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS tab"
36974fi
36975
36976if test "$wxUSE_TEXTCTRL" = "yes"; then
36977 cat >>confdefs.h <<\_ACEOF
36978#define wxUSE_TEXTCTRL 1
36979_ACEOF
36980
36981 USES_CONTROLS=1
36982 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text"
36983fi
36984
36985if test "$wxUSE_TOGGLEBTN" = "yes"; then
36986 if test "$wxUSE_COCOA" = 1 ; then
36987 { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&5
36988echo "$as_me: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&2;}
36989 wxUSE_TOGGLEBTN=no
bdcade0a
MB
36990 else
36991 if test "$wxUSE_PM" = 1; then
36992 { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under PM... disabled" >&5
36993echo "$as_me: WARNING: Toggle button not yet supported under PM... disabled" >&2;}
36994 wxUSE_TOGGLEBTN=no
36995 fi
a848cd7e
SC
36996 fi
36997 if test "$wxUSE_UNIVERSAL" = "yes"; then
36998 { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under wxUniversal... disabled" >&5
36999echo "$as_me: WARNING: Toggle button not yet supported under wxUniversal... disabled" >&2;}
37000 wxUSE_TOGGLEBTN=no
37001 fi
37002
37003 if test "$wxUSE_TOGGLEBTN" = "yes"; then
37004 cat >>confdefs.h <<\_ACEOF
37005#define wxUSE_TOGGLEBTN 1
37006_ACEOF
37007
37008 USES_CONTROLS=1
37009 fi
37010fi
37011
37012if test "$wxUSE_TOOLBAR_SIMPLE" = "yes"; then
37013 cat >>confdefs.h <<\_ACEOF
37014#define wxUSE_TOOLBAR_SIMPLE 1
37015_ACEOF
37016
37017 wxUSE_TOOLBAR="yes"
37018 USES_CONTROLS=1
37019fi
37020
37021if test "$wxUSE_TOOLBAR" = "yes"; then
37022 cat >>confdefs.h <<\_ACEOF
37023#define wxUSE_TOOLBAR 1
37024_ACEOF
37025
37026 USES_CONTROLS=1
37027
37028 if test "$wxUSE_TOOLBAR_SIMPLE" != "yes"; then
37029 wxUSE_TOOLBAR_NATIVE="yes"
37030 fi
37031
37032 if test "$wxUSE_TOOLBAR_NATIVE" = "yes"; then
37033 cat >>confdefs.h <<\_ACEOF
37034#define wxUSE_TOOLBAR_NATIVE 1
37035_ACEOF
37036
37037 USES_CONTROLS=1
37038 fi
37039
37040 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar"
37041fi
37042
37043if test "$wxUSE_TOOLTIPS" = "yes"; then
37044 if test "$wxUSE_MOTIF" = 1; then
37045 { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet under Motif... disabled" >&5
37046echo "$as_me: WARNING: wxTooltip not supported yet under Motif... disabled" >&2;}
37047 else
37048 if test "$wxUSE_UNIVERSAL" = "yes"; then
37049 { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&5
37050echo "$as_me: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&2;}
37051 else
37052 cat >>confdefs.h <<\_ACEOF
37053#define wxUSE_TOOLTIPS 1
37054_ACEOF
37055
37056 fi
37057 fi
37058fi
37059
37060if test "$wxUSE_TREECTRL" = "yes"; then
37061 if test "$wxUSE_IMAGLIST" = "yes"; then
37062 cat >>confdefs.h <<\_ACEOF
37063#define wxUSE_TREECTRL 1
37064_ACEOF
37065
37066 USES_CONTROLS=1
37067 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl"
37068 else
37069 { echo "$as_me:$LINENO: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&5
37070echo "$as_me: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&2;}
37071 fi
37072fi
37073
37074if test "$wxUSE_POPUPWIN" = "yes"; then
37075 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
37076 { echo "$as_me:$LINENO: WARNING: Popup window not yet supported under Mac OS X... disabled" >&5
37077echo "$as_me: WARNING: Popup window not yet supported under Mac OS X... disabled" >&2;}
37078 else
37079 if test "$wxUSE_PM" = 1; then
37080 { echo "$as_me:$LINENO: WARNING: wxPopupWindow not yet supported under PM... disabled" >&5
37081echo "$as_me: WARNING: wxPopupWindow not yet supported under PM... disabled" >&2;}
37082 else
37083 cat >>confdefs.h <<\_ACEOF
37084#define wxUSE_POPUPWIN 1
37085_ACEOF
37086
37087
37088 USES_CONTROLS=1
37089 fi
37090 fi
37091fi
37092
37093if test "$wxUSE_TIPWINDOW" = "yes"; then
37094 if test "$wxUSE_PM" = 1; then
37095 { echo "$as_me:$LINENO: WARNING: wxTipWindow not yet supported under PM... disabled" >&5
37096echo "$as_me: WARNING: wxTipWindow not yet supported under PM... disabled" >&2;}
37097 else
37098 cat >>confdefs.h <<\_ACEOF
37099#define wxUSE_TIPWINDOW 1
37100_ACEOF
37101
37102 fi
37103fi
37104
37105if test "$USES_CONTROLS" = 1; then
37106 cat >>confdefs.h <<\_ACEOF
37107#define wxUSE_CONTROLS 1
37108_ACEOF
37109
37110fi
37111
37112
37113if test "$wxUSE_ACCESSIBILITY" = "yes"; then
37114 cat >>confdefs.h <<\_ACEOF
37115#define wxUSE_ACCESSIBILITY 1
37116_ACEOF
37117
37118 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS access"
37119fi
37120
37121if test "$wxUSE_DRAGIMAGE" = "yes"; then
37122 cat >>confdefs.h <<\_ACEOF
37123#define wxUSE_DRAGIMAGE 1
37124_ACEOF
37125
37126 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag"
37127fi
37128
37129if test "$wxUSE_EXCEPTIONS" = "yes"; then
07bea8f0
VS
37130 if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
37131 { echo "$as_me:$LINENO: WARNING: --enable-exceptions can't be used with --enable-no_exceptions" >&5
37132echo "$as_me: WARNING: --enable-exceptions can't be used with --enable-no_exceptions" >&2;}
37133 else
37134 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
37135#define wxUSE_EXCEPTIONS 1
37136_ACEOF
37137
07bea8f0
VS
37138 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS except"
37139 fi
a848cd7e
SC
37140fi
37141
37142USE_HTML=0
37143if test "$wxUSE_HTML" = "yes"; then
37144 cat >>confdefs.h <<\_ACEOF
37145#define wxUSE_HTML 1
37146_ACEOF
37147
37148 USE_HTML=1
37149 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html html/about html/help html/helpview html/printing html/test html/virtual html/widget html/zip htlbox"
de59c161
RD
37150 if test "$wxUSE_MAC" = 1; then
37151 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html/htmlctrl"
37152 fi
a848cd7e 37153fi
646b6ec1 37154if test "$wxUSE_WEBKIT" = "yes"; then
07bea8f0
VS
37155 if test "$wxUSE_MAC" = 1; then
37156 old_CPPFLAGS="$CPPFLAGS"
37157 CPPFLAGS="$CPPFLAGS -x objective-c++"
37158 echo "$as_me:$LINENO: checking for WebKit/HIWebView.h" >&5
37159echo $ECHO_N "checking for WebKit/HIWebView.h... $ECHO_C" >&6
37160if test "${ac_cv_header_WebKit_HIWebView_h+set}" = set; then
37161 echo $ECHO_N "(cached) $ECHO_C" >&6
37162else
37163 cat >conftest.$ac_ext <<_ACEOF
37164/* confdefs.h. */
37165_ACEOF
37166cat confdefs.h >>conftest.$ac_ext
37167cat >>conftest.$ac_ext <<_ACEOF
37168/* end confdefs.h. */
37169#include <Carbon/Carbon.h>
37170
37171#include <WebKit/HIWebView.h>
37172_ACEOF
37173rm -f conftest.$ac_objext
37174if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37175 (eval $ac_compile) 2>conftest.er1
37176 ac_status=$?
37177 grep -v '^ *+' conftest.er1 >conftest.err
37178 rm -f conftest.er1
37179 cat conftest.err >&5
37180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37181 (exit $ac_status); } &&
17a7bf57 37182 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
07bea8f0
VS
37183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37184 (eval $ac_try) 2>&5
37185 ac_status=$?
37186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37187 (exit $ac_status); }; } &&
37188 { ac_try='test -s conftest.$ac_objext'
37189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37190 (eval $ac_try) 2>&5
37191 ac_status=$?
37192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37193 (exit $ac_status); }; }; then
37194 ac_cv_header_WebKit_HIWebView_h=yes
37195else
37196 echo "$as_me: failed program was:" >&5
37197sed 's/^/| /' conftest.$ac_ext >&5
37198
37199ac_cv_header_WebKit_HIWebView_h=no
37200fi
37201rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37202fi
37203echo "$as_me:$LINENO: result: $ac_cv_header_WebKit_HIWebView_h" >&5
37204echo "${ECHO_T}$ac_cv_header_WebKit_HIWebView_h" >&6
37205if test $ac_cv_header_WebKit_HIWebView_h = yes; then
37206
37207 cat >>confdefs.h <<\_ACEOF
646b6ec1
VS
37208#define wxUSE_WEBKIT 1
37209_ACEOF
37210
07bea8f0
VS
37211 WEBKIT_LINK="-framework WebKit"
37212
37213else
37214
37215 { echo "$as_me:$LINENO: WARNING: WebKit headers not found; disabling wxWebKit" >&5
37216echo "$as_me: WARNING: WebKit headers not found; disabling wxWebKit" >&2;}
37217 wxUSE_WEBKIT=no
37218
646b6ec1
VS
37219fi
37220
07bea8f0
VS
37221
37222 CPPFLAGS="$old_CPPFLAGS"
37223 elif test "$wxUSE_COCOA" = 1; then
37224 cat >>confdefs.h <<\_ACEOF
37225#define wxUSE_WEBKIT 1
37226_ACEOF
37227
37228 else
37229 wxUSE_WEBKIT=no
37230 fi
37231fi
37232
9a8f0513
VS
37233USE_XRC=0
37234if test "$wxUSE_XRC" = "yes"; then
d2ebf0b7
VS
37235 if test "$wxUSE_XML" != "yes"; then
37236 { echo "$as_me:$LINENO: WARNING: XML library not built, XRC resources disabled" >&5
37237echo "$as_me: WARNING: XML library not built, XRC resources disabled" >&2;}
37238 wxUSE_XRC=no
37239 else
37240 cat >>confdefs.h <<\_ACEOF
9a8f0513
VS
37241#define wxUSE_XRC 1
37242_ACEOF
37243
d2ebf0b7
VS
37244 USE_XRC=1
37245 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS xrc"
37246 fi
9a8f0513 37247fi
07bea8f0 37248
a848cd7e
SC
37249if test "$wxUSE_MENUS" = "yes"; then
37250 cat >>confdefs.h <<\_ACEOF
37251#define wxUSE_MENUS 1
37252_ACEOF
37253
37254 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu"
37255fi
37256
37257if test "$wxUSE_METAFILE" = "yes"; then
37258 cat >>confdefs.h <<\_ACEOF
37259#define wxUSE_METAFILE 1
37260_ACEOF
37261
37262fi
37263
37264if test "$wxUSE_MIMETYPE" = "yes"; then
37265 cat >>confdefs.h <<\_ACEOF
37266#define wxUSE_MIMETYPE 1
37267_ACEOF
37268
37269fi
37270
37271if test "$wxUSE_MINIFRAME" = "yes"; then
37272 cat >>confdefs.h <<\_ACEOF
37273#define wxUSE_MINIFRAME 1
37274_ACEOF
37275
37276 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram"
37277fi
37278
37279if test "$wxUSE_SYSTEM_OPTIONS" = "yes"; then
37280 cat >>confdefs.h <<\_ACEOF
37281#define wxUSE_SYSTEM_OPTIONS 1
37282_ACEOF
37283
37284 if test "$TOOLKIT" = "MSW" -o "$TOOLKIT" = "GTK" -o "$TOOLKIT" = "X11" -o \
a49baeab 37285 "$TOOLKIT" = "MOTIF" -o "$TOOLKIT" = "COCOA"; then
a848cd7e
SC
37286 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS taskbar"
37287 fi
37288fi
37289
37290
37291if test "$wxUSE_VALIDATORS" = "yes"; then
37292 cat >>confdefs.h <<\_ACEOF
37293#define wxUSE_VALIDATORS 1
37294_ACEOF
37295
37296 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate"
37297fi
37298
37299if test "$wxUSE_PALETTE" = "yes" ; then
37300 cat >>confdefs.h <<\_ACEOF
37301#define wxUSE_PALETTE 1
37302_ACEOF
37303
37304fi
37305
37306if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_MSLU" = "yes" ; then
37307 LIBS=" -lunicows $LIBS"
37308fi
37309
37310
37311if test "$wxUSE_IMAGE" = "yes" ; then
37312 cat >>confdefs.h <<\_ACEOF
37313#define wxUSE_IMAGE 1
37314_ACEOF
37315
37316
37317 if test "$wxUSE_GIF" = "yes" ; then
37318 cat >>confdefs.h <<\_ACEOF
37319#define wxUSE_GIF 1
37320_ACEOF
37321
37322 fi
37323
37324 if test "$wxUSE_PCX" = "yes" ; then
37325 cat >>confdefs.h <<\_ACEOF
37326#define wxUSE_PCX 1
37327_ACEOF
37328
37329 fi
37330
37331 if test "$wxUSE_IFF" = "yes" ; then
37332 cat >>confdefs.h <<\_ACEOF
37333#define wxUSE_IFF 1
37334_ACEOF
37335
37336 fi
37337
37338 if test "$wxUSE_PNM" = "yes" ; then
37339 cat >>confdefs.h <<\_ACEOF
37340#define wxUSE_PNM 1
37341_ACEOF
37342
37343 fi
37344
37345 if test "$wxUSE_XPM" = "yes" ; then
37346 cat >>confdefs.h <<\_ACEOF
37347#define wxUSE_XPM 1
37348_ACEOF
37349
37350 fi
37351
37352 if test "$wxUSE_ICO_CUR" = "yes" ; then
37353 cat >>confdefs.h <<\_ACEOF
37354#define wxUSE_ICO_CUR 1
37355_ACEOF
37356
37357 fi
37358fi
37359
37360
37361if test "$wxUSE_CHOICEDLG" = "yes"; then
37362 cat >>confdefs.h <<\_ACEOF
37363#define wxUSE_CHOICEDLG 1
37364_ACEOF
37365
37366fi
37367
37368if test "$wxUSE_COLOURDLG" = "yes"; then
37369 cat >>confdefs.h <<\_ACEOF
37370#define wxUSE_COLOURDLG 1
37371_ACEOF
37372
37373fi
37374
37375if test "$wxUSE_FILEDLG" = "yes"; then
37376 cat >>confdefs.h <<\_ACEOF
37377#define wxUSE_FILEDLG 1
37378_ACEOF
37379
37380fi
37381
37382if test "$wxUSE_FINDREPLDLG" = "yes"; then
37383 cat >>confdefs.h <<\_ACEOF
37384#define wxUSE_FINDREPLDLG 1
37385_ACEOF
37386
37387fi
37388
37389if test "$wxUSE_FONTDLG" = "yes"; then
37390 cat >>confdefs.h <<\_ACEOF
37391#define wxUSE_FONTDLG 1
37392_ACEOF
37393
37394fi
37395
37396if test "$wxUSE_DIRDLG" = "yes"; then
37397 if test "$wxUSE_TREECTRL" != "yes"; then
37398 { echo "$as_me:$LINENO: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&5
37399echo "$as_me: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&2;}
37400 else
37401 cat >>confdefs.h <<\_ACEOF
37402#define wxUSE_DIRDLG 1
37403_ACEOF
37404
37405 fi
37406fi
37407
37408if test "$wxUSE_MSGDLG" = "yes"; then
37409 cat >>confdefs.h <<\_ACEOF
37410#define wxUSE_MSGDLG 1
37411_ACEOF
37412
37413fi
37414
37415if test "$wxUSE_NUMBERDLG" = "yes"; then
37416 cat >>confdefs.h <<\_ACEOF
37417#define wxUSE_NUMBERDLG 1
37418_ACEOF
37419
37420fi
37421
37422if test "$wxUSE_PROGRESSDLG" = "yes"; then
37423 if test "$wxUSE_CONSTRAINTS" != "yes"; then
37424 { echo "$as_me:$LINENO: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&5
37425echo "$as_me: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&2;}
37426 else
37427 cat >>confdefs.h <<\_ACEOF
37428#define wxUSE_PROGRESSDLG 1
37429_ACEOF
37430
37431 fi
37432fi
37433
37434if test "$wxUSE_SPLASH" = "yes"; then
37435 cat >>confdefs.h <<\_ACEOF
37436#define wxUSE_SPLASH 1
37437_ACEOF
37438
2057db16 37439 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splash"
a848cd7e
SC
37440fi
37441
37442if test "$wxUSE_STARTUP_TIPS" = "yes"; then
37443 if test "$wxUSE_CONSTRAINTS" != "yes"; then
37444 { echo "$as_me:$LINENO: WARNING: Startup tips requires constraints and won't be compiled without them" >&5
37445echo "$as_me: WARNING: Startup tips requires constraints and won't be compiled without them" >&2;}
37446 else
37447 cat >>confdefs.h <<\_ACEOF
37448#define wxUSE_STARTUP_TIPS 1
37449_ACEOF
37450
37451 fi
37452fi
37453
37454if test "$wxUSE_TEXTDLG" = "yes"; then
37455 cat >>confdefs.h <<\_ACEOF
37456#define wxUSE_TEXTDLG 1
37457_ACEOF
37458
37459fi
37460
37461if test "$wxUSE_WIZARDDLG" = "yes"; then
37462 cat >>confdefs.h <<\_ACEOF
37463#define wxUSE_WIZARDDLG 1
37464_ACEOF
37465
37466 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard"
37467fi
37468
37469
37470if test "$cross_compiling" = "yes"; then
37471 OSINFO="\"$host\""
37472else
37473 OSINFO=`uname -s -r -m`
37474 OSINFO="\"$OSINFO\""
37475fi
37476
37477cat >>confdefs.h <<_ACEOF
37478#define WXWIN_OS_DESCRIPTION $OSINFO
37479_ACEOF
37480
37481
37482
37483if test "x$prefix" != "xNONE"; then
37484 wxPREFIX=$prefix
37485else
37486 wxPREFIX=$ac_default_prefix
37487fi
37488
37489cat >>confdefs.h <<_ACEOF
37490#define wxINSTALL_PREFIX "$wxPREFIX"
37491_ACEOF
37492
37493
a848cd7e
SC
37494
37495
37496CORE_BASE_LIBS="net base"
37497CORE_GUI_LIBS="adv core"
37498
37499if test "$wxUSE_XML" = "yes" ; then
37500 CORE_BASE_LIBS="xml $CORE_BASE_LIBS"
37501fi
37502if test "$wxUSE_ODBC" != "no" ; then
37503 CORE_BASE_LIBS="odbc $CORE_BASE_LIBS"
37504 CORE_GUI_LIBS="dbgrid $CORE_GUI_LIBS"
37505fi
37506if test "$wxUSE_HTML" = "yes" ; then
37507 CORE_GUI_LIBS="html $CORE_GUI_LIBS"
37508fi
9a8f0513
VS
37509if test "$wxUSE_XRC" = "yes" ; then
37510 CORE_GUI_LIBS="xrc $CORE_GUI_LIBS"
37511fi
a848cd7e
SC
37512
37513if test "$wxUSE_GUI" != "yes"; then
37514 CORE_GUI_LIBS=""
37515fi
37516
37517
37518
37519
37520
37521
37522
37523
37524if test "$wxUSE_MAC" = 1 ; then
3b57de8b 37525 if test "$wxUSE_SOUND" = "yes"; -o "$wxUSE_MEDIACTRL" = "yes"; then
07bea8f0
VS
37526 LDFLAGS="$LDFLAGS -framework QuickTime"
37527 fi
5dcf30a0
RN
37528 if test "$USE_DARWIN" = 1; then
37529 LDFLAGS="$LDFLAGS -framework IOKit"
37530 fi
07bea8f0 37531 LDFLAGS="$LDFLAGS -framework Carbon -framework Cocoa -framework System"
a848cd7e
SC
37532fi
37533if test "$wxUSE_COCOA" = 1 ; then
f7e98dee 37534 LDFLAGS="$LDFLAGS -framework Cocoa"
a848cd7e
SC
37535fi
37536
37537
37538LIBS="$ZLIB_LINK $POSIX4_LINK $INET_LINK $WCHAR_LINK $DL_LINK $LIBS"
37539
37540have_cos=0
37541have_floor=0
37542
37543for ac_func in cos
37544do
37545as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37546echo "$as_me:$LINENO: checking for $ac_func" >&5
37547echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37548if eval "test \"\${$as_ac_var+set}\" = set"; then
37549 echo $ECHO_N "(cached) $ECHO_C" >&6
37550else
37551 cat >conftest.$ac_ext <<_ACEOF
37552/* confdefs.h. */
37553_ACEOF
37554cat confdefs.h >>conftest.$ac_ext
37555cat >>conftest.$ac_ext <<_ACEOF
37556/* end confdefs.h. */
ac1cb8d3
VS
37557/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37558 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37559#define $ac_func innocuous_$ac_func
37560
a848cd7e
SC
37561/* System header to define __stub macros and hopefully few prototypes,
37562 which can conflict with char $ac_func (); below.
37563 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37564 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 37565
a848cd7e
SC
37566#ifdef __STDC__
37567# include <limits.h>
37568#else
37569# include <assert.h>
37570#endif
ac1cb8d3
VS
37571
37572#undef $ac_func
37573
a848cd7e
SC
37574/* Override any gcc2 internal prototype to avoid an error. */
37575#ifdef __cplusplus
37576extern "C"
37577{
37578#endif
37579/* We use char because int might match the return type of a gcc2
37580 builtin and then its argument prototype would still apply. */
37581char $ac_func ();
37582/* The GNU C library defines this for functions which it implements
37583 to always fail with ENOSYS. Some functions are actually named
37584 something starting with __ and the normal name is an alias. */
37585#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37586choke me
37587#else
37588char (*f) () = $ac_func;
37589#endif
37590#ifdef __cplusplus
37591}
37592#endif
37593
37594int
37595main ()
37596{
37597return f != $ac_func;
37598 ;
37599 return 0;
37600}
37601_ACEOF
37602rm -f conftest.$ac_objext conftest$ac_exeext
37603if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37604 (eval $ac_link) 2>conftest.er1
a848cd7e 37605 ac_status=$?
ac1cb8d3
VS
37606 grep -v '^ *+' conftest.er1 >conftest.err
37607 rm -f conftest.er1
37608 cat conftest.err >&5
a848cd7e
SC
37609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37610 (exit $ac_status); } &&
17a7bf57 37611 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37613 (eval $ac_try) 2>&5
37614 ac_status=$?
37615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37616 (exit $ac_status); }; } &&
37617 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37619 (eval $ac_try) 2>&5
37620 ac_status=$?
37621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37622 (exit $ac_status); }; }; then
37623 eval "$as_ac_var=yes"
37624else
37625 echo "$as_me: failed program was:" >&5
37626sed 's/^/| /' conftest.$ac_ext >&5
37627
37628eval "$as_ac_var=no"
37629fi
ac1cb8d3
VS
37630rm -f conftest.err conftest.$ac_objext \
37631 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37632fi
37633echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37634echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37635if test `eval echo '${'$as_ac_var'}'` = yes; then
37636 cat >>confdefs.h <<_ACEOF
37637#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37638_ACEOF
37639 have_cos=1
37640fi
37641done
37642
37643
37644for ac_func in floor
37645do
37646as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37647echo "$as_me:$LINENO: checking for $ac_func" >&5
37648echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37649if eval "test \"\${$as_ac_var+set}\" = set"; then
37650 echo $ECHO_N "(cached) $ECHO_C" >&6
37651else
37652 cat >conftest.$ac_ext <<_ACEOF
37653/* confdefs.h. */
37654_ACEOF
37655cat confdefs.h >>conftest.$ac_ext
37656cat >>conftest.$ac_ext <<_ACEOF
37657/* end confdefs.h. */
ac1cb8d3
VS
37658/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37659 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37660#define $ac_func innocuous_$ac_func
37661
a848cd7e
SC
37662/* System header to define __stub macros and hopefully few prototypes,
37663 which can conflict with char $ac_func (); below.
37664 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37665 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 37666
a848cd7e
SC
37667#ifdef __STDC__
37668# include <limits.h>
37669#else
37670# include <assert.h>
37671#endif
ac1cb8d3
VS
37672
37673#undef $ac_func
37674
a848cd7e
SC
37675/* Override any gcc2 internal prototype to avoid an error. */
37676#ifdef __cplusplus
37677extern "C"
37678{
37679#endif
37680/* We use char because int might match the return type of a gcc2
37681 builtin and then its argument prototype would still apply. */
37682char $ac_func ();
37683/* The GNU C library defines this for functions which it implements
37684 to always fail with ENOSYS. Some functions are actually named
37685 something starting with __ and the normal name is an alias. */
37686#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37687choke me
37688#else
37689char (*f) () = $ac_func;
37690#endif
37691#ifdef __cplusplus
37692}
37693#endif
37694
37695int
37696main ()
37697{
37698return f != $ac_func;
37699 ;
37700 return 0;
37701}
37702_ACEOF
37703rm -f conftest.$ac_objext conftest$ac_exeext
37704if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37705 (eval $ac_link) 2>conftest.er1
a848cd7e 37706 ac_status=$?
ac1cb8d3
VS
37707 grep -v '^ *+' conftest.er1 >conftest.err
37708 rm -f conftest.er1
37709 cat conftest.err >&5
a848cd7e
SC
37710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37711 (exit $ac_status); } &&
17a7bf57 37712 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37714 (eval $ac_try) 2>&5
37715 ac_status=$?
37716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37717 (exit $ac_status); }; } &&
37718 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37720 (eval $ac_try) 2>&5
37721 ac_status=$?
37722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37723 (exit $ac_status); }; }; then
37724 eval "$as_ac_var=yes"
37725else
37726 echo "$as_me: failed program was:" >&5
37727sed 's/^/| /' conftest.$ac_ext >&5
37728
37729eval "$as_ac_var=no"
37730fi
ac1cb8d3
VS
37731rm -f conftest.err conftest.$ac_objext \
37732 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37733fi
37734echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37735echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37736if test `eval echo '${'$as_ac_var'}'` = yes; then
37737 cat >>confdefs.h <<_ACEOF
37738#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37739_ACEOF
37740 have_floor=1
37741fi
37742done
37743
37744echo "$as_me:$LINENO: checking if floating point functions link without -lm" >&5
37745echo $ECHO_N "checking if floating point functions link without -lm... $ECHO_C" >&6
37746if test "$have_cos" = 1 -a "$have_floor" = 1; then
37747 echo "$as_me:$LINENO: result: yes" >&5
37748echo "${ECHO_T}yes" >&6
37749else
37750 echo "$as_me:$LINENO: result: no" >&5
37751echo "${ECHO_T}no" >&6
37752 LIBS="$LIBS -lm"
37753 # use different functions to avoid configure caching
37754 have_sin=0
37755 have_ceil=0
37756
37757for ac_func in sin
37758do
37759as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37760echo "$as_me:$LINENO: checking for $ac_func" >&5
37761echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37762if eval "test \"\${$as_ac_var+set}\" = set"; then
37763 echo $ECHO_N "(cached) $ECHO_C" >&6
37764else
37765 cat >conftest.$ac_ext <<_ACEOF
37766/* confdefs.h. */
37767_ACEOF
37768cat confdefs.h >>conftest.$ac_ext
37769cat >>conftest.$ac_ext <<_ACEOF
37770/* end confdefs.h. */
ac1cb8d3
VS
37771/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37772 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37773#define $ac_func innocuous_$ac_func
37774
a848cd7e
SC
37775/* System header to define __stub macros and hopefully few prototypes,
37776 which can conflict with char $ac_func (); below.
37777 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37778 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 37779
a848cd7e
SC
37780#ifdef __STDC__
37781# include <limits.h>
37782#else
37783# include <assert.h>
37784#endif
ac1cb8d3
VS
37785
37786#undef $ac_func
37787
a848cd7e
SC
37788/* Override any gcc2 internal prototype to avoid an error. */
37789#ifdef __cplusplus
37790extern "C"
37791{
37792#endif
37793/* We use char because int might match the return type of a gcc2
37794 builtin and then its argument prototype would still apply. */
37795char $ac_func ();
37796/* The GNU C library defines this for functions which it implements
37797 to always fail with ENOSYS. Some functions are actually named
37798 something starting with __ and the normal name is an alias. */
37799#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37800choke me
37801#else
37802char (*f) () = $ac_func;
37803#endif
37804#ifdef __cplusplus
37805}
37806#endif
37807
37808int
37809main ()
37810{
37811return f != $ac_func;
37812 ;
37813 return 0;
37814}
37815_ACEOF
37816rm -f conftest.$ac_objext conftest$ac_exeext
37817if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37818 (eval $ac_link) 2>conftest.er1
a848cd7e 37819 ac_status=$?
ac1cb8d3
VS
37820 grep -v '^ *+' conftest.er1 >conftest.err
37821 rm -f conftest.er1
37822 cat conftest.err >&5
a848cd7e
SC
37823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37824 (exit $ac_status); } &&
17a7bf57 37825 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37827 (eval $ac_try) 2>&5
37828 ac_status=$?
37829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37830 (exit $ac_status); }; } &&
37831 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37833 (eval $ac_try) 2>&5
37834 ac_status=$?
37835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37836 (exit $ac_status); }; }; then
37837 eval "$as_ac_var=yes"
37838else
37839 echo "$as_me: failed program was:" >&5
37840sed 's/^/| /' conftest.$ac_ext >&5
37841
37842eval "$as_ac_var=no"
37843fi
ac1cb8d3
VS
37844rm -f conftest.err conftest.$ac_objext \
37845 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37846fi
37847echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37848echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37849if test `eval echo '${'$as_ac_var'}'` = yes; then
37850 cat >>confdefs.h <<_ACEOF
37851#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37852_ACEOF
37853 have_sin=1
37854fi
37855done
37856
37857
37858for ac_func in ceil
37859do
37860as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37861echo "$as_me:$LINENO: checking for $ac_func" >&5
37862echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37863if eval "test \"\${$as_ac_var+set}\" = set"; then
37864 echo $ECHO_N "(cached) $ECHO_C" >&6
37865else
37866 cat >conftest.$ac_ext <<_ACEOF
37867/* confdefs.h. */
37868_ACEOF
37869cat confdefs.h >>conftest.$ac_ext
37870cat >>conftest.$ac_ext <<_ACEOF
37871/* end confdefs.h. */
ac1cb8d3
VS
37872/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37873 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37874#define $ac_func innocuous_$ac_func
37875
a848cd7e
SC
37876/* System header to define __stub macros and hopefully few prototypes,
37877 which can conflict with char $ac_func (); below.
37878 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37879 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 37880
a848cd7e
SC
37881#ifdef __STDC__
37882# include <limits.h>
37883#else
37884# include <assert.h>
37885#endif
ac1cb8d3
VS
37886
37887#undef $ac_func
37888
a848cd7e
SC
37889/* Override any gcc2 internal prototype to avoid an error. */
37890#ifdef __cplusplus
37891extern "C"
37892{
37893#endif
37894/* We use char because int might match the return type of a gcc2
37895 builtin and then its argument prototype would still apply. */
37896char $ac_func ();
37897/* The GNU C library defines this for functions which it implements
37898 to always fail with ENOSYS. Some functions are actually named
37899 something starting with __ and the normal name is an alias. */
37900#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37901choke me
37902#else
37903char (*f) () = $ac_func;
37904#endif
37905#ifdef __cplusplus
37906}
37907#endif
37908
37909int
37910main ()
37911{
37912return f != $ac_func;
37913 ;
37914 return 0;
37915}
37916_ACEOF
37917rm -f conftest.$ac_objext conftest$ac_exeext
37918if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37919 (eval $ac_link) 2>conftest.er1
a848cd7e 37920 ac_status=$?
ac1cb8d3
VS
37921 grep -v '^ *+' conftest.er1 >conftest.err
37922 rm -f conftest.er1
37923 cat conftest.err >&5
a848cd7e
SC
37924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37925 (exit $ac_status); } &&
17a7bf57 37926 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37928 (eval $ac_try) 2>&5
37929 ac_status=$?
37930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37931 (exit $ac_status); }; } &&
37932 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37934 (eval $ac_try) 2>&5
37935 ac_status=$?
37936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37937 (exit $ac_status); }; }; then
37938 eval "$as_ac_var=yes"
37939else
37940 echo "$as_me: failed program was:" >&5
37941sed 's/^/| /' conftest.$ac_ext >&5
37942
37943eval "$as_ac_var=no"
37944fi
ac1cb8d3
VS
37945rm -f conftest.err conftest.$ac_objext \
37946 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37947fi
37948echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37949echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37950if test `eval echo '${'$as_ac_var'}'` = yes; then
37951 cat >>confdefs.h <<_ACEOF
37952#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37953_ACEOF
37954 have_ceil=1
37955fi
37956done
37957
37958 echo "$as_me:$LINENO: checking if floating point functions link with -lm" >&5
37959echo $ECHO_N "checking if floating point functions link with -lm... $ECHO_C" >&6
37960 if test "$have_sin" = 1 -a "$have_ceil" = 1; then
37961 echo "$as_me:$LINENO: result: yes" >&5
37962echo "${ECHO_T}yes" >&6
37963 else
37964 echo "$as_me:$LINENO: result: no" >&5
37965echo "${ECHO_T}no" >&6
37966 # not sure we should warn the user, crash, etc.
37967 fi
37968fi
37969
37970if test "$wxUSE_GUI" = "yes"; then
37971
37972
37973 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS artprov controls dialogs \
37974 drawing dynamic erase event exec font image \
37975 minimal propsize rotate shaped widgets render"
37976
37977 if test "$wxUSE_MONOLITHIC" != "yes"; then
37978 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS console"
37979 fi
37980else
37981 SAMPLES_SUBDIRS="console"
37982fi
37983
37984
ceec2216 37985INCLUDES="-I\${top_builddir}lib/wx/include/${TOOLCHAIN_FULLNAME} \
a848cd7e
SC
37986-I\${top_srcdir}/include $TOOLKIT_INCLUDE"
37987
37988if test "$GXX" = yes ; then
37989 CXXWARNINGS="-Wall"
37990 fi
37991
37992EXTRA_CFLAGS="$WXDEBUG $WXODBCFLAG $PROFILE $OPTIMISE"
37993
0c3c69fc
VS
37994CPPFLAGS=`echo $WXDEBUG_DEFINE $INCLUDES $CPPFLAGS`
37995CFLAGS=`echo $CODE_GEN_FLAGS $EXTRA_CFLAGS $CFLAGS $CXXWARNINGS`
37996CXXFLAGS=`echo $CODE_GEN_FLAGS $CODE_GEN_FLAGS_CXX $EXTRA_CFLAGS $CXXFLAGS $CXXWARNINGS`
a848cd7e
SC
37997
37998
0c3c69fc 37999LIBS=`echo $LIBS`
a848cd7e
SC
38000EXTRALIBS="$LDFLAGS $LDFLAGS_VERSIONING $LIBS $DMALLOC_LIBS"
38001EXTRALIBS_XML="$EXPAT_LINK"
38002EXTRALIBS_HTML="$MSPACK_LINK"
38003EXTRALIBS_ODBC="$ODBC_LINK"
38004if test "$wxUSE_GUI" = "yes"; then
0c3c69fc 38005 EXTRALIBS_GUI=`echo $GUI_TK_LIBRARY $PNG_LINK $JPEG_LINK $TIFF_LINK $WEBKIT_LINK`
a848cd7e
SC
38006fi
38007if test "$wxUSE_OPENGL" = "yes"; then
38008 EXTRALIBS_OPENGL="$LDFLAGS_GL $OPENGL_LIBS"
38009fi
38010
38011LDFLAGS="$LDFLAGS $PROFILE"
38012
38013if test "$wxUSE_GTK" = 1; then
38014 WXCONFIG_INCLUDE=
38015else
38016 WXCONFIG_INCLUDE="$TOOLKIT_INCLUDE"
38017fi
38018
38019WXCONFIG_EXTRALIBS="$LIBS"
38020
38021if test "$wxUSE_REGEX" = "builtin" ; then
38022 wxconfig_3rdparty="$wxconfig_3rdparty regex${lib_unicode_suffix}"
38023fi
38024if test "$wxUSE_EXPAT" = "builtin" ; then
38025 wxconfig_3rdparty="$wxconfig_3rdparty expat"
38026fi
38027if test "$wxUSE_ODBC" = "builtin" ; then
38028 wxconfig_3rdparty="$wxconfig_3rdparty odbc"
38029fi
38030if test "$wxUSE_LIBTIFF" = "builtin" ; then
38031 wxconfig_3rdparty="$wxconfig_3rdparty tiff"
38032fi
38033if test "$wxUSE_LIBJPEG" = "builtin" ; then
38034 wxconfig_3rdparty="$wxconfig_3rdparty jpeg"
38035fi
38036if test "$wxUSE_LIBPNG" = "builtin" ; then
38037 wxconfig_3rdparty="$wxconfig_3rdparty png"
38038fi
38039if test "$wxUSE_ZLIB" = "builtin" ; then
38040 wxconfig_3rdparty="$wxconfig_3rdparty zlib"
38041fi
38042if test "$wxUSE_ODBC" = "builtin" ; then
38043 wxconfig_3rdparty="$wxconfig_3rdparty odbc"
38044fi
38045
38046for i in $wxconfig_3rdparty ; do
ceec2216 38047 WXCONFIG_EXTRALIBS="$WXCONFIG_EXTRALIBS -lwx${i}${lib_debug_suffix}${WX_LIB_FLAVOUR}-${WX_RELEASE}${HOST_SUFFIX}"
a848cd7e
SC
38048done
38049
38050
38051if test "x$wxUSE_UNIVERSAL" = "xyes" ; then
38052 WXUNIV=1
38053else
38054 WXUNIV=0
38055fi
38056
38057
38058
38059
38060
38061
38062
38063
38064
38065if test $wxUSE_MONOLITHIC = "yes" ; then
38066 MONOLITHIC=1
38067else
38068 MONOLITHIC=0
38069fi
38070
38071if test $wxUSE_PLUGINS = "yes" ; then
38072 USE_PLUGINS=1
38073else
38074 USE_PLUGINS=0
38075fi
38076
38077if test $wxUSE_ODBC != "no" ; then
38078 USE_ODBC=1
38079else
38080 USE_ODBC=0
38081fi
38082
38083if test $wxUSE_OFFICIAL_BUILD = "yes" ; then
38084 OFFICIAL_BUILD=1
38085else
38086 OFFICIAL_BUILD=0
38087fi
38088
38089
38090
38091
38092
38093
38094
38095
38096
38097
38098
38099
38100
38101
38102
38103
38104
38105
38106
ceec2216 38107
d1c38808 38108
a848cd7e
SC
38109
38110
38111TOOLKIT_LOWERCASE=`echo $TOOLKIT | tr "[A-Z]" "[a-z]"`
38112
38113
38114
38115
38116
38117
38118
38119
4d4ff94c
VZ
38120case "$TOOLKIT" in
38121 GTK)
38122 TOOLKIT_USER="GTK+"
38123 if test "$WXGTK20" = 1; then
38124 TOOLKIT_USER="$TOOLKIT_USER 2"
38125 fi
9a8f0513 38126 ;;
4d4ff94c
VZ
38127
38128 *)
38129 TOOLKIT_USER=$TOOLKIT_LOWERCASE
9a8f0513 38130 ;;
4d4ff94c 38131esac
a848cd7e 38132
9a8f0513 38133
a848cd7e
SC
38134 if test "x$BAKEFILE_HOST" = "x"; then
38135 BAKEFILE_HOST="${host}"
38136 fi
38137
38138 if test "x$BAKEFILE_CHECK_BASICS" != "xno"; then
38139
38140 if test -n "$ac_tool_prefix"; then
38141 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
38142set dummy ${ac_tool_prefix}ranlib; ac_word=$2
38143echo "$as_me:$LINENO: checking for $ac_word" >&5
38144echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
38145if test "${ac_cv_prog_RANLIB+set}" = set; then
38146 echo $ECHO_N "(cached) $ECHO_C" >&6
38147else
38148 if test -n "$RANLIB"; then
38149 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
38150else
38151as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38152for as_dir in $PATH
38153do
38154 IFS=$as_save_IFS
38155 test -z "$as_dir" && as_dir=.
38156 for ac_exec_ext in '' $ac_executable_extensions; do
38157 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
38158 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
38159 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
38160 break 2
38161 fi
38162done
38163done
38164
38165fi
38166fi
38167RANLIB=$ac_cv_prog_RANLIB
38168if test -n "$RANLIB"; then
38169 echo "$as_me:$LINENO: result: $RANLIB" >&5
38170echo "${ECHO_T}$RANLIB" >&6
38171else
38172 echo "$as_me:$LINENO: result: no" >&5
38173echo "${ECHO_T}no" >&6
38174fi
38175
38176fi
38177if test -z "$ac_cv_prog_RANLIB"; then
38178 ac_ct_RANLIB=$RANLIB
38179 # Extract the first word of "ranlib", so it can be a program name with args.
38180set dummy ranlib; ac_word=$2
38181echo "$as_me:$LINENO: checking for $ac_word" >&5
38182echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
38183if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
38184 echo $ECHO_N "(cached) $ECHO_C" >&6
38185else
38186 if test -n "$ac_ct_RANLIB"; then
38187 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
38188else
38189as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38190for as_dir in $PATH
38191do
38192 IFS=$as_save_IFS
38193 test -z "$as_dir" && as_dir=.
38194 for ac_exec_ext in '' $ac_executable_extensions; do
38195 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
38196 ac_cv_prog_ac_ct_RANLIB="ranlib"
38197 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
38198 break 2
38199 fi
38200done
38201done
38202
38203 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
38204fi
38205fi
38206ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
38207if test -n "$ac_ct_RANLIB"; then
38208 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
38209echo "${ECHO_T}$ac_ct_RANLIB" >&6
38210else
38211 echo "$as_me:$LINENO: result: no" >&5
38212echo "${ECHO_T}no" >&6
38213fi
38214
38215 RANLIB=$ac_ct_RANLIB
38216else
38217 RANLIB="$ac_cv_prog_RANLIB"
38218fi
38219
38220 # Find a good install program. We prefer a C program (faster),
38221# so one script is as good as another. But avoid the broken or
38222# incompatible versions:
38223# SysV /etc/install, /usr/sbin/install
38224# SunOS /usr/etc/install
38225# IRIX /sbin/install
38226# AIX /bin/install
38227# AmigaOS /C/install, which installs bootblocks on floppy discs
38228# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
38229# AFS /usr/afsws/bin/install, which mishandles nonexistent args
38230# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
ac1cb8d3 38231# OS/2's system install, which has a completely different semantic
a848cd7e
SC
38232# ./install, which can be erroneously created by make from ./install.sh.
38233echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
38234echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
38235if test -z "$INSTALL"; then
38236if test "${ac_cv_path_install+set}" = set; then
38237 echo $ECHO_N "(cached) $ECHO_C" >&6
38238else
38239 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38240for as_dir in $PATH
38241do
38242 IFS=$as_save_IFS
38243 test -z "$as_dir" && as_dir=.
38244 # Account for people who put trailing slashes in PATH elements.
38245case $as_dir/ in
38246 ./ | .// | /cC/* | \
38247 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
ac1cb8d3 38248 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
a848cd7e
SC
38249 /usr/ucb/* ) ;;
38250 *)
38251 # OSF1 and SCO ODT 3.0 have their own names for install.
38252 # Don't use installbsd from OSF since it installs stuff as root
38253 # by default.
38254 for ac_prog in ginstall scoinst install; do
38255 for ac_exec_ext in '' $ac_executable_extensions; do
ac1cb8d3
VS
38256 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
38257 if test $ac_prog = install &&
38258 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
38259 # AIX install. It has an incompatible calling convention.
38260 :
38261 elif test $ac_prog = install &&
38262 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
38263 # program-specific install script used by HP pwplus--don't use.
38264 :
38265 else
38266 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
38267 break 3
38268 fi
38269 fi
a848cd7e
SC
38270 done
38271 done
38272 ;;
38273esac
38274done
38275
38276
38277fi
38278 if test "${ac_cv_path_install+set}" = set; then
38279 INSTALL=$ac_cv_path_install
38280 else
38281 # As a last resort, use the slow shell script. We don't cache a
38282 # path for INSTALL within a source directory, because that will
38283 # break other packages using the cache if that directory is
38284 # removed, or if the path is relative.
38285 INSTALL=$ac_install_sh
38286 fi
38287fi
38288echo "$as_me:$LINENO: result: $INSTALL" >&5
38289echo "${ECHO_T}$INSTALL" >&6
38290
38291# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
38292# It thinks the first close brace ends the variable substitution.
38293test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
38294
38295test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
38296
38297test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
38298
38299 echo "$as_me:$LINENO: checking whether ln -s works" >&5
38300echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
38301LN_S=$as_ln_s
38302if test "$LN_S" = "ln -s"; then
38303 echo "$as_me:$LINENO: result: yes" >&5
38304echo "${ECHO_T}yes" >&6
38305else
38306 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
38307echo "${ECHO_T}no, using $LN_S" >&6
38308fi
38309
38310
38311 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
38312echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
ac1cb8d3 38313set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
a848cd7e
SC
38314if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
38315 echo $ECHO_N "(cached) $ECHO_C" >&6
38316else
38317 cat >conftest.make <<\_ACEOF
38318all:
38319 @echo 'ac_maketemp="$(MAKE)"'
38320_ACEOF
38321# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
38322eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
38323if test -n "$ac_maketemp"; then
38324 eval ac_cv_prog_make_${ac_make}_set=yes
38325else
38326 eval ac_cv_prog_make_${ac_make}_set=no
38327fi
38328rm -f conftest.make
38329fi
38330if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
38331 echo "$as_me:$LINENO: result: yes" >&5
38332echo "${ECHO_T}yes" >&6
38333 SET_MAKE=
38334else
38335 echo "$as_me:$LINENO: result: no" >&5
38336echo "${ECHO_T}no" >&6
38337 SET_MAKE="MAKE=${MAKE-make}"
38338fi
38339
38340
38341
38342 if test -n "$ac_tool_prefix"; then
38343 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
38344set dummy ${ac_tool_prefix}ar; ac_word=$2
38345echo "$as_me:$LINENO: checking for $ac_word" >&5
38346echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
38347if test "${ac_cv_prog_AR+set}" = set; then
38348 echo $ECHO_N "(cached) $ECHO_C" >&6
38349else
38350 if test -n "$AR"; then
38351 ac_cv_prog_AR="$AR" # Let the user override the test.
38352else
38353as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38354for as_dir in $PATH
38355do
38356 IFS=$as_save_IFS
38357 test -z "$as_dir" && as_dir=.
38358 for ac_exec_ext in '' $ac_executable_extensions; do
38359 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
38360 ac_cv_prog_AR="${ac_tool_prefix}ar"
38361 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
38362 break 2
38363 fi
38364done
38365done
38366
38367fi
38368fi
38369AR=$ac_cv_prog_AR
38370if test -n "$AR"; then
38371 echo "$as_me:$LINENO: result: $AR" >&5
38372echo "${ECHO_T}$AR" >&6
38373else
38374 echo "$as_me:$LINENO: result: no" >&5
38375echo "${ECHO_T}no" >&6
38376fi
38377
38378fi
38379if test -z "$ac_cv_prog_AR"; then
38380 ac_ct_AR=$AR
38381 # Extract the first word of "ar", so it can be a program name with args.
38382set dummy ar; ac_word=$2
38383echo "$as_me:$LINENO: checking for $ac_word" >&5
38384echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
38385if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
38386 echo $ECHO_N "(cached) $ECHO_C" >&6
38387else
38388 if test -n "$ac_ct_AR"; then
38389 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
38390else
38391as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38392for as_dir in $PATH
38393do
38394 IFS=$as_save_IFS
38395 test -z "$as_dir" && as_dir=.
38396 for ac_exec_ext in '' $ac_executable_extensions; do
38397 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
38398 ac_cv_prog_ac_ct_AR="ar"
38399 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
38400 break 2
38401 fi
38402done
38403done
38404
38405 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
38406fi
38407fi
38408ac_ct_AR=$ac_cv_prog_ac_ct_AR
38409if test -n "$ac_ct_AR"; then
38410 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
38411echo "${ECHO_T}$ac_ct_AR" >&6
38412else
38413 echo "$as_me:$LINENO: result: no" >&5
38414echo "${ECHO_T}no" >&6
38415fi
38416
38417 AR=$ac_ct_AR
38418else
38419 AR="$ac_cv_prog_AR"
38420fi
38421
38422 if test -n "$ac_tool_prefix"; then
38423 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
38424set dummy ${ac_tool_prefix}strip; ac_word=$2
38425echo "$as_me:$LINENO: checking for $ac_word" >&5
38426echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
38427if test "${ac_cv_prog_STRIP+set}" = set; then
38428 echo $ECHO_N "(cached) $ECHO_C" >&6
38429else
38430 if test -n "$STRIP"; then
38431 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
38432else
38433as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38434for as_dir in $PATH
38435do
38436 IFS=$as_save_IFS
38437 test -z "$as_dir" && as_dir=.
38438 for ac_exec_ext in '' $ac_executable_extensions; do
38439 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
38440 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
38441 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
38442 break 2
38443 fi
38444done
38445done
38446
38447fi
38448fi
38449STRIP=$ac_cv_prog_STRIP
38450if test -n "$STRIP"; then
38451 echo "$as_me:$LINENO: result: $STRIP" >&5
38452echo "${ECHO_T}$STRIP" >&6
38453else
38454 echo "$as_me:$LINENO: result: no" >&5
38455echo "${ECHO_T}no" >&6
38456fi
38457
38458fi
38459if test -z "$ac_cv_prog_STRIP"; then
38460 ac_ct_STRIP=$STRIP
38461 # Extract the first word of "strip", so it can be a program name with args.
38462set dummy strip; ac_word=$2
38463echo "$as_me:$LINENO: checking for $ac_word" >&5
38464echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
38465if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
38466 echo $ECHO_N "(cached) $ECHO_C" >&6
38467else
38468 if test -n "$ac_ct_STRIP"; then
38469 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
38470else
38471as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38472for as_dir in $PATH
38473do
38474 IFS=$as_save_IFS
38475 test -z "$as_dir" && as_dir=.
38476 for ac_exec_ext in '' $ac_executable_extensions; do
38477 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
38478 ac_cv_prog_ac_ct_STRIP="strip"
38479 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
38480 break 2
38481 fi
38482done
38483done
38484
38485 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
38486fi
38487fi
38488ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
38489if test -n "$ac_ct_STRIP"; then
38490 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
38491echo "${ECHO_T}$ac_ct_STRIP" >&6
38492else
38493 echo "$as_me:$LINENO: result: no" >&5
38494echo "${ECHO_T}no" >&6
38495fi
38496
38497 STRIP=$ac_ct_STRIP
38498else
38499 STRIP="$ac_cv_prog_STRIP"
38500fi
38501
38502 if test -n "$ac_tool_prefix"; then
38503 # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
38504set dummy ${ac_tool_prefix}nm; ac_word=$2
38505echo "$as_me:$LINENO: checking for $ac_word" >&5
38506echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
38507if test "${ac_cv_prog_NM+set}" = set; then
38508 echo $ECHO_N "(cached) $ECHO_C" >&6
38509else
38510 if test -n "$NM"; then
38511 ac_cv_prog_NM="$NM" # Let the user override the test.
38512else
38513as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38514for as_dir in $PATH
38515do
38516 IFS=$as_save_IFS
38517 test -z "$as_dir" && as_dir=.
38518 for ac_exec_ext in '' $ac_executable_extensions; do
38519 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
38520 ac_cv_prog_NM="${ac_tool_prefix}nm"
38521 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
38522 break 2
38523 fi
38524done
38525done
38526
38527fi
38528fi
38529NM=$ac_cv_prog_NM
38530if test -n "$NM"; then
38531 echo "$as_me:$LINENO: result: $NM" >&5
38532echo "${ECHO_T}$NM" >&6
38533else
38534 echo "$as_me:$LINENO: result: no" >&5
38535echo "${ECHO_T}no" >&6
38536fi
38537
38538fi
38539if test -z "$ac_cv_prog_NM"; then
38540 ac_ct_NM=$NM
38541 # Extract the first word of "nm", so it can be a program name with args.
38542set dummy nm; ac_word=$2
38543echo "$as_me:$LINENO: checking for $ac_word" >&5
38544echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
38545if test "${ac_cv_prog_ac_ct_NM+set}" = set; then
38546 echo $ECHO_N "(cached) $ECHO_C" >&6
38547else
38548 if test -n "$ac_ct_NM"; then
38549 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
38550else
38551as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38552for as_dir in $PATH
38553do
38554 IFS=$as_save_IFS
38555 test -z "$as_dir" && as_dir=.
38556 for ac_exec_ext in '' $ac_executable_extensions; do
38557 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
38558 ac_cv_prog_ac_ct_NM="nm"
38559 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
38560 break 2
38561 fi
38562done
38563done
38564
38565 test -z "$ac_cv_prog_ac_ct_NM" && ac_cv_prog_ac_ct_NM=":"
38566fi
38567fi
38568ac_ct_NM=$ac_cv_prog_ac_ct_NM
38569if test -n "$ac_ct_NM"; then
38570 echo "$as_me:$LINENO: result: $ac_ct_NM" >&5
38571echo "${ECHO_T}$ac_ct_NM" >&6
38572else
38573 echo "$as_me:$LINENO: result: no" >&5
38574echo "${ECHO_T}no" >&6
38575fi
38576
38577 NM=$ac_ct_NM
38578else
38579 NM="$ac_cv_prog_NM"
38580fi
38581
38582
38583 case ${BAKEFILE_HOST} in
38584 *-hp-hpux* )
a49baeab 38585 INSTALL_DIR="mkdir -p"
a848cd7e
SC
38586 ;;
38587 *) INSTALL_DIR="$INSTALL -d"
38588 ;;
38589 esac
38590
38591
38592 LDFLAGS_GUI=
38593 case ${BAKEFILE_HOST} in
38594 *-*-cygwin* | *-*-mingw32* )
38595 LDFLAGS_GUI="-mwindows"
38596 esac
38597
38598
38599 fi
38600
38601 echo "$as_me:$LINENO: checking if make is GNU make" >&5
38602echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6
38603if test "${bakefile_cv_prog_makeisgnu+set}" = set; then
38604 echo $ECHO_N "(cached) $ECHO_C" >&6
38605else
38606
38607 if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
38608 egrep -s GNU > /dev/null); then
38609 bakefile_cv_prog_makeisgnu="yes"
38610 else
38611 bakefile_cv_prog_makeisgnu="no"
38612 fi
38613
38614fi
38615echo "$as_me:$LINENO: result: $bakefile_cv_prog_makeisgnu" >&5
38616echo "${ECHO_T}$bakefile_cv_prog_makeisgnu" >&6
38617
38618 if test "x$bakefile_cv_prog_makeisgnu" = "xyes"; then
38619 IF_GNU_MAKE=""
38620 else
38621 IF_GNU_MAKE="#"
38622 fi
38623
38624
38625
38626 PLATFORM_UNIX=0
38627 PLATFORM_WIN32=0
38628 PLATFORM_MSDOS=0
38629 PLATFORM_MAC=0
38630 PLATFORM_MACOSX=0
38631 PLATFORM_OS2=0
38632
38633 if test "x$BAKEFILE_FORCE_PLATFORM" = "x"; then
38634 case "${BAKEFILE_HOST}" in
38635 *-*-cygwin* | *-*-mingw32* )
38636 PLATFORM_WIN32=1
38637 ;;
38638 *-pc-msdosdjgpp )
38639 PLATFORM_MSDOS=1
38640 ;;
38641 *-pc-os2_emx | *-pc-os2-emx )
38642 PLATFORM_OS2=1
38643 ;;
38644 powerpc-*-darwin* )
38645 PLATFORM_MAC=1
38646 PLATFORM_MACOSX=1
38647 ;;
38648 * )
38649 PLATFORM_UNIX=1
38650 ;;
38651 esac
38652 else
38653 case "$BAKEFILE_FORCE_PLATFORM" in
38654 win32 )
38655 PLATFORM_WIN32=1
38656 ;;
38657 msdos )
38658 PLATFORM_MSDOS=1
38659 ;;
38660 os2 )
38661 PLATFORM_OS2=1
38662 ;;
38663 darwin )
38664 PLATFORM_MAC=1
38665 PLATFORM_MACOSX=1
38666 ;;
38667 unix )
38668 PLATFORM_UNIX=1
38669 ;;
38670 * )
38671 { { echo "$as_me:$LINENO: error: Unknown platform: $BAKEFILE_FORCE_PLATFORM" >&5
38672echo "$as_me: error: Unknown platform: $BAKEFILE_FORCE_PLATFORM" >&2;}
38673 { (exit 1); exit 1; }; }
38674 ;;
38675 esac
38676 fi
38677
38678
38679
38680
38681
38682
38683
38684
38685
38686 # Check whether --enable-omf or --disable-omf was given.
38687if test "${enable_omf+set}" = set; then
38688 enableval="$enable_omf"
38689 bk_os2_use_omf="$enableval"
38690fi;
38691
38692 case "${BAKEFILE_HOST}" in
38693 *-*-darwin* )
38694 CFLAGS="$CFLAGS -fno-common"
38695 CXXFLAGS="$CXXFLAGS -fno-common"
38696 ;;
38697
38698 *-pc-os2_emx | *-pc-os2-emx )
38699 if test "x$bk_os2_use_omf" = "xyes" ; then
38700 AR=emxomfar
38701 RANLIB=:
38702 LDFLAGS="-Zomf $LDFLAGS"
38703 CFLAGS="-Zomf $CFLAGS"
38704 CXXFLAGS="-Zomf $CXXFLAGS"
38705 OS2_LIBEXT="lib"
38706 else
38707 OS2_LIBEXT="a"
38708 fi
38709 ;;
38710 esac
38711
38712
38713 SO_SUFFIX="so"
38714 SO_SUFFIX_MODULE="so"
38715 EXEEXT=""
38716 LIBPREFIX="lib"
38717 LIBEXT=".a"
38718 DLLPREFIX="lib"
38719 DLLPREFIX_MODULE=""
38720 DLLIMP_SUFFIX=""
38721
38722 case "${BAKEFILE_HOST}" in
38723 *-hp-hpux* )
38724 SO_SUFFIX="sl"
38725 SO_SUFFIX_MODULE="sl"
38726 ;;
38727 *-*-aix* )
38728 SO_SUFFIX="a"
38729 SO_SUFFIX_MODULE="a"
38730 ;;
38731 *-*-cygwin* | *-*-mingw32* )
38732 SO_SUFFIX="dll"
38733 SO_SUFFIX_MODULE="dll"
38734 DLLIMP_SUFFIX="dll.a"
38735 EXEEXT=".exe"
38736 DLLPREFIX=""
38737 ;;
38738 *-pc-msdosdjgpp )
38739 EXEEXT=".exe"
38740 DLLPREFIX=""
38741 ;;
38742 *-pc-os2_emx | *-pc-os2-emx )
38743 SO_SUFFIX="dll"
38744 SO_SUFFIX_MODULE="dll"
38745 DLLIMP_SUFFIX=$OS2_LIBEXT
38746 EXEEXT=".exe"
38747 DLLPREFIX=""
38748 LIBPREFIX=""
38749 LIBEXT=".$OS2_LIBEXT"
38750 ;;
38751 powerpc-*-darwin* )
38752 SO_SUFFIX="dylib"
38753 SO_SUFFIX_MODULE="bundle"
38754 ;;
38755 esac
38756
38757 if test "x$DLLIMP_SUFFIX" = "x" ; then
38758 DLLIMP_SUFFIX="$SO_SUFFIX"
38759 fi
38760
38761
38762
38763
38764
38765
38766
38767
38768
38769
38770
38771 SHARED_LD_CC="\$(CC) -shared -o"
38772 SHARED_LD_CXX="\$(CXX) -shared -o"
38773
38774 if test "x$GCC" = "xyes"; then
38775 PIC_FLAG="-fPIC"
38776 fi
38777
38778 case "${BAKEFILE_HOST}" in
38779 *-hp-hpux* )
38780 if test "x$GCC" = "xyes"; then
38781 SHARED_LD_CC="${CC} -shared ${PIC_FLAG} -o"
38782 SHARED_LD_CXX="${CXX} -shared ${PIC_FLAG} -o"
38783 else
38784 LDFLAGS="$LDFLAGS -L/usr/lib"
38785
38786 SHARED_LD_CC="${CC} -b -o"
38787 SHARED_LD_CXX="${CXX} -b -o"
38788 PIC_FLAG="+Z"
38789 fi
38790 ;;
38791
38792 *-*-linux* )
38793 if test "x$GCC" != "xyes"; then
38794 echo "$as_me:$LINENO: checking for Intel compiler" >&5
38795echo $ECHO_N "checking for Intel compiler... $ECHO_C" >&6
38796if test "${bakefile_cv_prog_icc+set}" = set; then
38797 echo $ECHO_N "(cached) $ECHO_C" >&6
38798else
38799
38800 cat >conftest.$ac_ext <<_ACEOF
38801/* confdefs.h. */
38802_ACEOF
38803cat confdefs.h >>conftest.$ac_ext
38804cat >>conftest.$ac_ext <<_ACEOF
38805/* end confdefs.h. */
38806
38807int
38808main ()
38809{
38810
38811 #ifndef __INTEL_COMPILER
38812 #error Not icc
38813 #endif
38814
38815 ;
38816 return 0;
38817}
38818_ACEOF
38819rm -f conftest.$ac_objext
38820if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 38821 (eval $ac_compile) 2>conftest.er1
a848cd7e 38822 ac_status=$?
ac1cb8d3
VS
38823 grep -v '^ *+' conftest.er1 >conftest.err
38824 rm -f conftest.er1
38825 cat conftest.err >&5
a848cd7e
SC
38826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38827 (exit $ac_status); } &&
17a7bf57 38828 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
38829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38830 (eval $ac_try) 2>&5
38831 ac_status=$?
38832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38833 (exit $ac_status); }; } &&
38834 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
38835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38836 (eval $ac_try) 2>&5
38837 ac_status=$?
38838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38839 (exit $ac_status); }; }; then
38840 bakefile_cv_prog_icc=yes
38841else
38842 echo "$as_me: failed program was:" >&5
38843sed 's/^/| /' conftest.$ac_ext >&5
38844
38845bakefile_cv_prog_icc=no
38846
38847fi
ac1cb8d3 38848rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
38849
38850fi
38851echo "$as_me:$LINENO: result: $bakefile_cv_prog_icc" >&5
38852echo "${ECHO_T}$bakefile_cv_prog_icc" >&6
38853 if test "$bakefile_cv_prog_icc" = "yes"; then
38854 PIC_FLAG="-KPIC"
38855 fi
38856 fi
38857 ;;
38858
38859 *-*-solaris2* )
38860 if test "x$GCC" != xyes ; then
38861 SHARED_LD_CC="${CC} -G -o"
38862 SHARED_LD_CXX="${CXX} -G -o"
38863 PIC_FLAG="-KPIC"
38864 fi
38865 ;;
38866
38867 *-*-darwin* )
38868
38869 echo "$as_me:$LINENO: checking for gcc 3.1 or later" >&5
38870echo $ECHO_N "checking for gcc 3.1 or later... $ECHO_C" >&6
38871if test "${wx_cv_gcc31+set}" = set; then
38872 echo $ECHO_N "(cached) $ECHO_C" >&6
38873else
38874
38875 cat >conftest.$ac_ext <<_ACEOF
38876/* confdefs.h. */
38877_ACEOF
38878cat confdefs.h >>conftest.$ac_ext
38879cat >>conftest.$ac_ext <<_ACEOF
38880/* end confdefs.h. */
38881
38882int
38883main ()
38884{
38885
38886 #if (__GNUC__ < 3) || \
38887 ((__GNUC__ == 3) && (__GNUC_MINOR__ < 1))
38888 #error old gcc
38889 #endif
38890
38891 ;
38892 return 0;
38893}
38894_ACEOF
38895rm -f conftest.$ac_objext
38896if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 38897 (eval $ac_compile) 2>conftest.er1
a848cd7e 38898 ac_status=$?
ac1cb8d3
VS
38899 grep -v '^ *+' conftest.er1 >conftest.err
38900 rm -f conftest.er1
38901 cat conftest.err >&5
a848cd7e
SC
38902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38903 (exit $ac_status); } &&
17a7bf57 38904 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
38905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38906 (eval $ac_try) 2>&5
38907 ac_status=$?
38908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38909 (exit $ac_status); }; } &&
38910 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
38911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38912 (eval $ac_try) 2>&5
38913 ac_status=$?
38914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38915 (exit $ac_status); }; }; then
38916
38917 wx_cv_gcc31=yes
38918
38919else
38920 echo "$as_me: failed program was:" >&5
38921sed 's/^/| /' conftest.$ac_ext >&5
38922
38923
38924 wx_cv_gcc31=no
38925
38926
38927fi
ac1cb8d3 38928rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
38929
38930fi
38931echo "$as_me:$LINENO: result: $wx_cv_gcc31" >&5
38932echo "${ECHO_T}$wx_cv_gcc31" >&6
38933 if test "$wx_cv_gcc31" = "no"; then
473276a9
VS
38934
38935D='$'
38936cat <<EOF >shared-ld-sh
a848cd7e
SC
38937#!/bin/sh
38938#-----------------------------------------------------------------------------
38939#-- Name: distrib/mac/shared-ld-sh
38940#-- Purpose: Link a mach-o dynamic shared library for Darwin / Mac OS X
38941#-- Author: Gilles Depeyrot
38942#-- Copyright: (c) 2002 Gilles Depeyrot
38943#-- Licence: any use permitted
38944#-----------------------------------------------------------------------------
38945
38946verbose=0
38947args=""
38948objects=""
38949linking_flag="-dynamiclib"
38950
473276a9
VS
38951while test ${D}# -gt 0; do
38952 case ${D}1 in
a848cd7e
SC
38953
38954 -v)
38955 verbose=1
38956 ;;
38957
38958 -o|-compatibility_version|-current_version|-framework|-undefined|-install_name)
38959 # collect these options and values
473276a9 38960 args="${D}{args} ${D}1 ${D}2"
a848cd7e
SC
38961 shift
38962 ;;
38963
38964 -l*|-L*|-flat_namespace|-headerpad_max_install_names)
38965 # collect these options
473276a9 38966 args="${D}{args} ${D}1"
a848cd7e
SC
38967 ;;
38968
38969 -dynamiclib|-bundle)
473276a9 38970 linking_flag="${D}1"
a848cd7e
SC
38971 ;;
38972
38973 -*)
473276a9 38974 echo "shared-ld: unhandled option '${D}1'"
a848cd7e
SC
38975 exit 1
38976 ;;
38977
38978 *.o | *.a | *.dylib)
38979 # collect object files
473276a9 38980 objects="${D}{objects} ${D}1"
a848cd7e
SC
38981 ;;
38982
38983 *)
473276a9 38984 echo "shared-ld: unhandled argument '${D}1'"
a848cd7e
SC
38985 exit 1
38986 ;;
38987
38988 esac
38989 shift
38990done
38991
38992#
38993# Link one module containing all the others
38994#
473276a9
VS
38995if test ${D}{verbose} = 1; then
38996 echo "c++ -r -keep_private_externs -nostdlib ${D}{objects} -o master.${D}${D}.o"
a848cd7e 38997fi
473276a9
VS
38998c++ -r -keep_private_externs -nostdlib ${D}{objects} -o master.${D}${D}.o
38999status=${D}?
39000if test ${D}{status} != 0; then
39001 exit ${D}{status}
a848cd7e
SC
39002fi
39003
39004#
39005# Link the shared library from the single module created
39006#
473276a9
VS
39007if test ${D}{verbose} = 1; then
39008 echo "cc ${D}{linking_flag} master.${D}${D}.o ${D}{args}"
a848cd7e 39009fi
473276a9
VS
39010c++ ${D}{linking_flag} master.${D}${D}.o ${D}{args}
39011status=${D}?
39012if test ${D}{status} != 0; then
39013 exit ${D}{status}
a848cd7e
SC
39014fi
39015
39016#
39017# Remove intermediate module
39018#
473276a9 39019rm -f master.${D}${D}.o
a848cd7e
SC
39020
39021exit 0
39022EOF
473276a9 39023
a848cd7e
SC
39024 chmod +x shared-ld-sh
39025
39026 SHARED_LD_CC="`pwd`/shared-ld-sh -dynamiclib -headerpad_max_install_names -o"
39027 SHARED_LD_MODULE_CC="`pwd`/shared-ld-sh -bundle -headerpad_max_install_names -o"
39028 SHARED_LD_CXX="$SHARED_LD_CC"
39029 SHARED_LD_MODULE_CXX="$SHARED_LD_MODULE_CC"
39030 else
39031 SHARED_LD_CC="\${CC} -dynamiclib -single_module -headerpad_max_install_names -o"
39032 SHARED_LD_MODULE_CC="\${CC} -bundle -single_module -headerpad_max_install_names -o"
39033 SHARED_LD_CXX="\${CXX} -dynamiclib -single_module -headerpad_max_install_names -o"
39034 SHARED_LD_MODULE_CXX="\${CXX} -bundle -single_module -headerpad_max_install_names -o"
39035 fi
39036
39037 PIC_FLAG="-dynamic -fPIC"
39038 ;;
39039
39040 *-*-aix* )
39041 if test "x$GCC" != "xyes"; then
39042 # Extract the first word of "makeC++SharedLib", so it can be a program name with args.
39043set dummy makeC++SharedLib; ac_word=$2
39044echo "$as_me:$LINENO: checking for $ac_word" >&5
39045echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
39046if test "${ac_cv_prog_AIX_CXX_LD+set}" = set; then
39047 echo $ECHO_N "(cached) $ECHO_C" >&6
39048else
39049 if test -n "$AIX_CXX_LD"; then
39050 ac_cv_prog_AIX_CXX_LD="$AIX_CXX_LD" # Let the user override the test.
39051else
39052as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
39053for as_dir in $PATH
39054do
39055 IFS=$as_save_IFS
39056 test -z "$as_dir" && as_dir=.
39057 for ac_exec_ext in '' $ac_executable_extensions; do
39058 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
39059 ac_cv_prog_AIX_CXX_LD="makeC++SharedLib"
39060 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
39061 break 2
39062 fi
39063done
39064done
39065
39066 test -z "$ac_cv_prog_AIX_CXX_LD" && ac_cv_prog_AIX_CXX_LD="/usr/lpp/xlC/bin/makeC++SharedLib"
39067fi
39068fi
39069AIX_CXX_LD=$ac_cv_prog_AIX_CXX_LD
39070if test -n "$AIX_CXX_LD"; then
39071 echo "$as_me:$LINENO: result: $AIX_CXX_LD" >&5
39072echo "${ECHO_T}$AIX_CXX_LD" >&6
39073else
39074 echo "$as_me:$LINENO: result: no" >&5
39075echo "${ECHO_T}no" >&6
39076fi
39077
39078 SHARED_LD_CC="$AIX_CC_LD -p 0 -o"
39079 SHARED_LD_CXX="$AIX_CXX_LD -p 0 -o"
39080 fi
39081 ;;
39082
39083 *-*-beos* )
39084 SHARED_LD_CC="${LD} -shared -o"
39085 SHARED_LD_CXX="${LD} -shared -o"
39086 ;;
39087
39088 *-*-irix* )
39089 if test "x$GCC" != "xyes"; then
39090 PIC_FLAG="-KPIC"
39091 fi
39092 ;;
39093
39094 *-*-cygwin* | *-*-mingw32* )
39095 PIC_FLAG=""
39096 ;;
39097
39098 *-pc-os2_emx | *-pc-os2-emx )
473276a9
VS
39099 SHARED_LD_CC="`pwd`/dllar.sh -o"
39100 SHARED_LD_CXX="`pwd`/dllar.sh -o"
a848cd7e 39101 PIC_FLAG=""
473276a9
VS
39102
39103D='$'
39104cat <<EOF >dllar.sh
39105#!/bin/sh
39106#
39107# dllar - a tool to build both a .dll and an .a file
39108# from a set of object (.o) files for EMX/OS2.
39109#
39110# Written by Andrew Zabolotny, bit@freya.etu.ru
39111# Ported to Unix like shell by Stefan Neis, Stefan.Neis@t-online.de
39112#
39113# This script will accept a set of files on the command line.
39114# All the public symbols from the .o files will be exported into
39115# a .DEF file, then linker will be run (through gcc) against them to
39116# build a shared library consisting of all given .o files. All libraries
39117# (.a) will be first decompressed into component .o files then act as
39118# described above. You can optionally give a description (-d "description")
39119# which will be put into .DLL. To see the list of accepted options (as well
39120# as command-line format) simply run this program without options. The .DLL
39121# is built to be imported by name (there is no guarantee that new versions
39122# of the library you build will have same ordinals for same symbols).
39123#
39124# dllar is free software; you can redistribute it and/or modify
39125# it under the terms of the GNU General Public License as published by
39126# the Free Software Foundation; either version 2, or (at your option)
39127# any later version.
39128#
39129# dllar is distributed in the hope that it will be useful,
39130# but WITHOUT ANY WARRANTY; without even the implied warranty of
39131# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
39132# GNU General Public License for more details.
39133#
39134# You should have received a copy of the GNU General Public License
39135# along with dllar; see the file COPYING. If not, write to the Free
39136# Software Foundation, 59 Temple Place - Suite 330, Boston, MA
39137# 02111-1307, USA.
39138
39139# To successfuly run this program you will need:
39140# - Current drive should have LFN support (HPFS, ext2, network, etc)
39141# (Sometimes dllar generates filenames which won't fit 8.3 scheme)
39142# - gcc
39143# (used to build the .dll)
39144# - emxexp
39145# (used to create .def file from .o files)
39146# - emximp
39147# (used to create .a file from .def file)
39148# - GNU text utilites (cat, sort, uniq)
39149# used to process emxexp output
39150# - GNU file utilities (mv, rm)
39151# - GNU sed
39152# - lxlite (optional, see flag below)
39153# (used for general .dll cleanup)
39154#
39155
39156flag_USE_LXLITE=1;
39157
39158#
39159# helper functions
39160# basnam, variant of basename, which does _not_ remove the path, _iff_
39161# second argument (suffix to remove) is given
39162basnam(){
39163 case ${D}# in
39164 1)
39165 echo ${D}1 | sed 's/.*\///' | sed 's/.*\\//'
39166 ;;
39167 2)
39168 echo ${D}1 | sed 's/'${D}2'${D}//'
39169 ;;
39170 *)
39171 echo "error in basnam ${D}*"
39172 exit 8
39173 ;;
39174 esac
39175}
39176
39177# Cleanup temporary files and output
39178CleanUp() {
39179 cd ${D}curDir
39180 for i in ${D}inputFiles ; do
39181 case ${D}i in
39182 *!)
39183 rm -rf \`basnam ${D}i !\`
39184 ;;
39185 *)
39186 ;;
39187 esac
39188 done
39189
39190 # Kill result in case of failure as there is just to many stupid make/nmake
39191 # things out there which doesn't do this.
2057db16 39192 if [] ${D}# -eq 0 []; then
473276a9
VS
39193 rm -f ${D}arcFile ${D}arcFile2 ${D}defFile ${D}dllFile
39194 fi
39195}
39196
39197# Print usage and exit script with rc=1.
39198PrintHelp() {
2057db16
VS
39199 echo 'Usage: dllar []-o[[]utput[]] output_file[] []-i[[]mport[]] importlib_name[]'
39200 echo ' []-d[[]escription[]] "dll descrption"[] []-cc "CC"[] []-f[[]lags[]] "CFLAGS"[]'
39201 echo ' []-ord[[]inals[]][] -ex[]clude[] "symbol(s)"'
39202 echo ' []-libf[[]lags[]] "{INIT|TERM}{GLOBAL|INSTANCE}"[] []-nocrt[[]dll[]][] []-nolxl[[]ite[]][]'
39203 echo ' []*.o[] []*.a[]'
473276a9
VS
39204 echo '*> "output_file" should have no extension.'
39205 echo ' If it has the .o, .a or .dll extension, it is automatically removed.'
39206 echo ' The import library name is derived from this and is set to "name".a,'
39207 echo ' unless overridden by -import'
39208 echo '*> "importlib_name" should have no extension.'
39209 echo ' If it has the .o, or .a extension, it is automatically removed.'
39210 echo ' This name is used as the import library name and may be longer and'
39211 echo ' more descriptive than the DLL name which has to follow the old '
39212 echo ' 8.3 convention of FAT.'
39213 echo '*> "cc" is used to use another GCC executable. (default: gcc.exe)'
39214 echo '*> "flags" should be any set of valid GCC flags. (default: -s -Zcrtdll)'
39215 echo ' These flags will be put at the start of GCC command line.'
2057db16
VS
39216 echo '*> -ord[]inals[] tells dllar to export entries by ordinals. Be careful.'
39217 echo '*> -ex[]clude[] defines symbols which will not be exported. You can define'
473276a9
VS
39218 echo ' multiple symbols, for example -ex "myfunc yourfunc _GLOBAL*".'
39219 echo ' If the last character of a symbol is "*", all symbols beginning'
39220 echo ' with the prefix before "*" will be exclude, (see _GLOBAL* above).'
2057db16 39221 echo '*> -libf[]lags[] can be used to add INITGLOBAL/INITINSTANCE and/or'
473276a9 39222 echo ' TERMGLOBAL/TERMINSTANCE flags to the dynamically-linked library.'
2057db16 39223 echo '*> -nocrt[]dll[] switch will disable linking the library against emx''s'
473276a9 39224 echo ' C runtime DLLs.'
2057db16 39225 echo '*> -nolxl[]ite[] switch will disable running lxlite on the resulting DLL.'
473276a9
VS
39226 echo '*> All other switches (for example -L./ or -lmylib) will be passed'
39227 echo ' unchanged to GCC at the end of command line.'
39228 echo '*> If you create a DLL from a library and you do not specify -o,'
39229 echo ' the basename for DLL and import library will be set to library name,'
39230 echo ' the initial library will be renamed to 'name'_s.a (_s for static)'
39231 echo ' i.e. "dllar gcc.a" will create gcc.dll and gcc.a, and the initial'
39232 echo ' library will be renamed into gcc_s.a.'
39233 echo '--------'
39234 echo 'Example:'
39235 echo ' dllar -o gcc290.dll libgcc.a -d "GNU C runtime library" -ord'
39236 echo ' -ex "__main __ctordtor*" -libf "INITINSTANCE TERMINSTANCE"'
39237 CleanUp
39238 exit 1
39239}
39240
39241# Execute a command.
39242# If exit code of the commnad <> 0 CleanUp() is called and we'll exit the script.
39243# @Uses Whatever CleanUp() uses.
39244doCommand() {
39245 echo "${D}*"
39246 eval ${D}*
39247 rcCmd=${D}?
39248
2057db16 39249 if [] ${D}rcCmd -ne 0 []; then
473276a9
VS
39250 echo "command failed, exit code="${D}rcCmd
39251 CleanUp
39252 exit ${D}rcCmd
39253 fi
39254}
39255
39256# main routine
39257# setup globals
39258cmdLine=${D}*
39259outFile=""
39260outimpFile=""
39261inputFiles=""
39262description=""
39263CC=gcc.exe
39264CFLAGS="-s -Zcrtdll"
39265EXTRA_CFLAGS=""
39266EXPORT_BY_ORDINALS=0
39267exclude_symbols=""
39268library_flags=""
39269curDir=\`pwd\`
39270curDirS=curDir
39271case ${D}curDirS in
39272*/)
39273 ;;
39274*)
39275 curDirS=${D}{curDirS}"/"
39276 ;;
39277esac
39278# Parse commandline
39279libsToLink=0
2057db16 39280while [] ${D}1 []; do
473276a9
VS
39281 case ${D}1 in
39282 -ord*)
39283 EXPORT_BY_ORDINALS=1;
39284 ;;
39285 -o*)
39286 shift
39287 outFile=${D}1
39288 ;;
39289 -i*)
39290 shift
39291 outimpFile=${D}1
39292 ;;
39293 -d*)
39294 shift
39295 description=${D}1
39296 ;;
39297 -f*)
39298 shift
39299 CFLAGS=${D}1
39300 ;;
39301 -c*)
39302 shift
39303 CC=${D}1
39304 ;;
39305 -h*)
39306 PrintHelp
39307 ;;
39308 -ex*)
39309 shift
39310 exclude_symbols=${D}{exclude_symbols}${D}1" "
39311 ;;
39312 -libf*)
39313 shift
39314 library_flags=${D}{library_flags}${D}1" "
39315 ;;
39316 -nocrt*)
39317 CFLAGS="-s"
39318 ;;
39319 -nolxl*)
39320 flag_USE_LXLITE=0
39321 ;;
39322 -* | /*)
39323 case ${D}1 in
39324 -L* | -l*)
39325 libsToLink=1
39326 ;;
39327 *)
39328 ;;
39329 esac
39330 EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1
39331 ;;
39332 *)
39333 found=0;
2057db16 39334 if [] ${D}libsToLink -ne 0 []; then
473276a9
VS
39335 EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1
39336 else
39337 for file in ${D}1 ; do
2057db16 39338 if [] -f ${D}file []; then
473276a9
VS
39339 inputFiles="${D}{inputFiles} ${D}file"
39340 found=1
39341 fi
39342 done
2057db16 39343 if [] ${D}found -eq 0 []; then
473276a9
VS
39344 echo "ERROR: No file(s) found: "${D}1
39345 exit 8
39346 fi
39347 fi
39348 ;;
39349 esac
39350 shift
39351done # iterate cmdline words
39352
39353#
2057db16 39354if [] -z "${D}inputFiles" []; then
473276a9
VS
39355 echo "dllar: no input files"
39356 PrintHelp
39357fi
39358
39359# Now extract all .o files from .a files
39360newInputFiles=""
39361for file in ${D}inputFiles ; do
39362 case ${D}file in
39363 *.a | *.lib)
39364 case ${D}file in
39365 *.a)
39366 suffix=".a"
39367 AR="ar"
39368 ;;
39369 *.lib)
39370 suffix=".lib"
39371 AR="emxomfar"
39372 EXTRA_CFLAGS="${D}EXTRA_CFLAGS -Zomf"
39373 ;;
39374 *)
39375 ;;
39376 esac
39377 dirname=\`basnam ${D}file ${D}suffix\`"_%"
39378 mkdir ${D}dirname
2057db16 39379 if [] ${D}? -ne 0 []; then
473276a9
VS
39380 echo "Failed to create subdirectory ./${D}dirname"
39381 CleanUp
39382 exit 8;
39383 fi
39384 # Append '!' to indicate archive
39385 newInputFiles="${D}newInputFiles ${D}{dirname}!"
39386 doCommand "cd ${D}dirname; ${D}AR x ../${D}file"
39387 cd ${D}curDir
39388 found=0;
39389 for subfile in ${D}dirname/*.o* ; do
2057db16 39390 if [] -f ${D}subfile []; then
473276a9 39391 found=1
2057db16 39392 if [] -s ${D}subfile []; then
473276a9
VS
39393 # FIXME: This should be: is file size > 32 byte, _not_ > 0!
39394 newInputFiles="${D}newInputFiles ${D}subfile"
39395 fi
39396 fi
39397 done
2057db16 39398 if [] ${D}found -eq 0 []; then
473276a9
VS
39399 echo "WARNING: there are no files in archive \'${D}file\'"
39400 fi
39401 ;;
39402 *)
39403 newInputFiles="${D}{newInputFiles} ${D}file"
39404 ;;
39405 esac
39406done
39407inputFiles="${D}newInputFiles"
39408
39409# Output filename(s).
39410do_backup=0;
2057db16 39411if [] -z ${D}outFile []; then
473276a9
VS
39412 do_backup=1;
39413 set outFile ${D}inputFiles; outFile=${D}2
39414fi
39415
39416# If it is an archive, remove the '!' and the '_%' suffixes
39417case ${D}outFile in
39418*_%!)
39419 outFile=\`basnam ${D}outFile _%!\`
39420 ;;
39421*)
39422 ;;
39423esac
39424case ${D}outFile in
39425*.dll)
39426 outFile=\`basnam ${D}outFile .dll\`
39427 ;;
39428*.DLL)
39429 outFile=\`basnam ${D}outFile .DLL\`
39430 ;;
39431*.o)
39432 outFile=\`basnam ${D}outFile .o\`
39433 ;;
39434*.obj)
39435 outFile=\`basnam ${D}outFile .obj\`
39436 ;;
39437*.a)
39438 outFile=\`basnam ${D}outFile .a\`
39439 ;;
39440*.lib)
39441 outFile=\`basnam ${D}outFile .lib\`
39442 ;;
39443*)
39444 ;;
39445esac
39446case ${D}outimpFile in
39447*.a)
39448 outimpFile=\`basnam ${D}outimpFile .a\`
39449 ;;
39450*.lib)
39451 outimpFile=\`basnam ${D}outimpFile .lib\`
39452 ;;
39453*)
39454 ;;
39455esac
2057db16 39456if [] -z ${D}outimpFile []; then
473276a9
VS
39457 outimpFile=${D}outFile
39458fi
39459defFile="${D}{outFile}.def"
39460arcFile="${D}{outimpFile}.a"
39461arcFile2="${D}{outimpFile}.lib"
39462dllFile="${D}outFile"
39463# Add suffix to dllFile later, first we need a version to use as
39464# name in .def file.
39465
2057db16
VS
39466if [] ${D}do_backup -ne 0 [] ; then
39467 if [] -f ${D}arcFile [] ; then
473276a9
VS
39468 doCommand "mv ${D}arcFile ${D}{outFile}_s.a"
39469 fi
2057db16 39470 if [] -f ${D}arcFile2 [] ; then
473276a9
VS
39471 doCommand "mv ${D}arcFile2 ${D}{outFile}_s.lib"
39472 fi
39473fi
39474
39475# Extract public symbols from all the object files.
39476tmpdefFile=${D}{defFile}_%
39477rm -f ${D}tmpdefFile
39478for file in ${D}inputFiles ; do
39479 case ${D}file in
39480 *!)
39481 ;;
39482 *)
39483 doCommand "emxexp -u ${D}file >> ${D}tmpdefFile"
39484 ;;
39485 esac
39486done
39487
39488# Create the def file.
39489rm -f ${D}defFile
39490echo "LIBRARY \`basnam ${D}dllFile\` ${D}library_flags" >> ${D}defFile
39491dllFile="${D}dllFile.dll"
2057db16 39492if [] -n ${D}description []; then
473276a9
VS
39493 echo "DESCRIPTION \"${D}{description}\"" >> ${D}defFile
39494fi
39495echo "EXPORTS" >> ${D}defFile
39496
39497doCommand "cat ${D}tmpdefFile | sort.exe | uniq.exe > ${D}{tmpdefFile}%"
39498grep -v "^ *;" < ${D}{tmpdefFile}% | grep -v "^ *${D}" >${D}tmpdefFile
39499
39500# Checks if the export is ok or not.
39501for word in ${D}exclude_symbols; do
39502 grep -v ${D}word < ${D}tmpdefFile >${D}{tmpdefFile}%
39503 mv ${D}{tmpdefFile}% ${D}tmpdefFile
39504done
39505
39506
2057db16 39507if [] ${D}EXPORT_BY_ORDINALS -ne 0 []; then
473276a9
VS
39508 sed "=" < ${D}tmpdefFile | \
39509 sed '
39510 N
39511 : loop
2057db16 39512 s/^\([]0-9[]\+\)\([]^;[]*\)\(;.*\)\?/\2 @\1 NONAME/
473276a9
VS
39513 t loop
39514 ' > ${D}{tmpdefFile}%
39515 grep -v "^ *${D}" < ${D}{tmpdefFile}% > ${D}tmpdefFile
39516else
39517 rm -f ${D}{tmpdefFile}%
39518fi
39519cat ${D}tmpdefFile >> ${D}defFile
39520rm -f ${D}tmpdefFile
39521
39522# Do linking, create implib, and apply lxlite.
39523gccCmdl="";
39524for file in ${D}inputFiles ; do
39525 case ${D}file in
39526 *!)
39527 ;;
39528 *)
39529 gccCmdl="${D}gccCmdl ${D}file"
39530 ;;
39531 esac
39532done
39533doCommand "${D}CC ${D}CFLAGS -Zdll -o ${D}dllFile ${D}defFile ${D}gccCmdl ${D}EXTRA_CFLAGS"
39534touch "${D}{outFile}.dll"
39535
39536doCommand "emximp -o ${D}arcFile ${D}defFile"
2057db16 39537if [] ${D}flag_USE_LXLITE -ne 0 []; then
473276a9 39538 add_flags="";
2057db16 39539 if [] ${D}EXPORT_BY_ORDINALS -ne 0 []; then
473276a9
VS
39540 add_flags="-ynd"
39541 fi
39542 doCommand "lxlite -cs -t: -mrn -mln ${D}add_flags ${D}dllFile"
39543fi
39544doCommand "emxomf -s -l ${D}arcFile"
39545
39546# Successful exit.
39547CleanUp 1
39548exit 0
39549EOF
39550
39551 chmod +x dllar.sh
a848cd7e
SC
39552 ;;
39553
39554 *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | \
39555 *-*-sunos4* | \
39556 *-*-osf* | \
39557 *-*-dgux5* | \
39558 *-*-sysv5* )
39559 ;;
39560
39561 *)
39562 { { echo "$as_me:$LINENO: error: unknown system type $BAKEFILE_HOST." >&5
39563echo "$as_me: error: unknown system type $BAKEFILE_HOST." >&2;}
39564 { (exit 1); exit 1; }; }
39565 esac
39566
2057db16
VS
39567 if test "x$PIC_FLAG" != "x" ; then
39568 PIC_FLAG="$PIC_FLAG -DPIC"
39569 fi
39570
a848cd7e
SC
39571 if test "x$SHARED_LD_MODULE_CC" = "x" ; then
39572 SHARED_LD_MODULE_CC="$SHARED_LD_CC"
39573 fi
39574 if test "x$SHARED_LD_MODULE_CXX" = "x" ; then
39575 SHARED_LD_MODULE_CXX="$SHARED_LD_CXX"
39576 fi
39577
39578
39579
39580
39581
39582
39583
39584
39585 USE_SOVERSION=0
39586 USE_SOVERLINUX=0
39587 USE_SOVERSOLARIS=0
39588 USE_SOSYMLINKS=0
39589 USE_MACVERSION=0
39590 SONAME_FLAG=
39591
39592 case "${BAKEFILE_HOST}" in
39593 *-*-linux* )
39594 SONAME_FLAG="-Wl,-soname,"
39595 USE_SOVERSION=1
39596 USE_SOVERLINUX=1
39597 USE_SOSYMLINKS=1
39598 ;;
39599
39600 *-*-solaris2* )
39601 SONAME_FLAG="-h "
39602 USE_SOVERSION=1
39603 USE_SOVERSOLARIS=1
39604 USE_SOSYMLINKS=1
39605 ;;
39606
39607 *-*-darwin* )
39608 USE_MACVERSION=1
39609 USE_SOVERSION=1
39610 USE_SOSYMLINKS=1
39611 ;;
39612 esac
39613
39614
39615
39616
39617
39618
39619
39620
39621
39622 echo "$as_me:$LINENO: checking for dependency tracking method" >&5
39623echo $ECHO_N "checking for dependency tracking method... $ECHO_C" >&6
39624 DEPS_TRACKING=0
39625
39626 if test "x$GCC" = "xyes"; then
39627 DEPSMODE=gcc
39628 DEPS_TRACKING=1
39629 case "${BAKEFILE_HOST}" in
39630 powerpc-*-darwin* )
39631 DEPSFLAG_GCC="-no-cpp-precomp -MMD"
39632 ;;
39633 * )
39634 DEPSFLAG_GCC="-MMD"
39635 ;;
39636 esac
39637 echo "$as_me:$LINENO: result: gcc" >&5
39638echo "${ECHO_T}gcc" >&6
39639 else
39640 echo "$as_me:$LINENO: result: none" >&5
39641echo "${ECHO_T}none" >&6
39642 fi
39643
39644 if test $DEPS_TRACKING = 1 ; then
473276a9
VS
39645
39646D='$'
39647cat <<EOF >bk-deps
a848cd7e
SC
39648#!/bin/sh
39649
39650# This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf
39651# script. It is used to track C/C++ files dependencies in portable way.
39652#
39653# Permission is given to use this file in any way.
39654
473276a9 39655DEPSMODE=${DEPSMODE}
a848cd7e 39656DEPSDIR=.deps
473276a9 39657DEPSFLAG_GCC="${DEPSFLAG_GCC}"
a848cd7e 39658
473276a9 39659mkdir -p ${D}DEPSDIR
a848cd7e 39660
473276a9
VS
39661if test ${D}DEPSMODE = gcc ; then
39662 ${D}* ${D}{DEPSFLAG_GCC}
39663 status=${D}?
39664 if test ${D}{status} != 0 ; then
39665 exit ${D}{status}
a848cd7e
SC
39666 fi
39667 # move created file to the location we want it in:
473276a9
VS
39668 while test ${D}# -gt 0; do
39669 case "${D}1" in
a848cd7e
SC
39670 -o )
39671 shift
473276a9 39672 objfile=${D}1
a848cd7e
SC
39673 ;;
39674 -* )
39675 ;;
39676 * )
473276a9 39677 srcfile=${D}1
a848cd7e
SC
39678 ;;
39679 esac
39680 shift
39681 done
473276a9
VS
39682 depfile=\`basename ${D}srcfile | sed -e 's/\..*${D}/.d/g'\`
39683 depobjname=\`echo ${D}depfile |sed -e 's/\.d/.o/g'\`
39684 if test -f ${D}depfile ; then
39685 sed -e "s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{DEPSDIR}/${D}{objfile}.d
39686 rm -f ${D}depfile
a848cd7e 39687 else
473276a9
VS
39688 depfile=\`basename ${D}objfile | sed -e 's/\..*${D}/.d/g'\`
39689 if test -f ${D}depfile ; then
39690 sed -e "/^${D}objfile/!s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{DEPSDIR}/${D}{objfile}.d
39691 rm -f ${D}depfile
a848cd7e
SC
39692 fi
39693 fi
39694 exit 0
39695else
473276a9
VS
39696 ${D}*
39697 exit ${D}?
a848cd7e
SC
39698fi
39699EOF
473276a9 39700
a848cd7e
SC
39701 chmod +x bk-deps
39702 fi
39703
39704
39705
39706
39707 RESCOMP=
39708 SETFILE=
39709
39710 case ${BAKEFILE_HOST} in
39711 *-*-cygwin* | *-*-mingw32* )
39712 if test "$build" != "$host" ; then
39713 RESCOMP=$host_alias-windres
39714 else
39715 # Extract the first word of "windres", so it can be a program name with args.
39716set dummy windres; ac_word=$2
39717echo "$as_me:$LINENO: checking for $ac_word" >&5
39718echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
39719if test "${ac_cv_prog_RESCOMP+set}" = set; then
39720 echo $ECHO_N "(cached) $ECHO_C" >&6
39721else
39722 if test -n "$RESCOMP"; then
39723 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
39724else
39725as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
39726for as_dir in $PATH
39727do
39728 IFS=$as_save_IFS
39729 test -z "$as_dir" && as_dir=.
39730 for ac_exec_ext in '' $ac_executable_extensions; do
39731 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
39732 ac_cv_prog_RESCOMP="windres"
39733 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
39734 break 2
39735 fi
39736done
39737done
39738
39739 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="windres"
39740fi
39741fi
39742RESCOMP=$ac_cv_prog_RESCOMP
39743if test -n "$RESCOMP"; then
39744 echo "$as_me:$LINENO: result: $RESCOMP" >&5
39745echo "${ECHO_T}$RESCOMP" >&6
39746else
39747 echo "$as_me:$LINENO: result: no" >&5
39748echo "${ECHO_T}no" >&6
39749fi
39750
39751 fi
39752 ;;
39753
39754 *-*-darwin* )
39755 # Extract the first word of "Rez", so it can be a program name with args.
39756set dummy Rez; ac_word=$2
39757echo "$as_me:$LINENO: checking for $ac_word" >&5
39758echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
39759if test "${ac_cv_prog_RESCOMP+set}" = set; then
39760 echo $ECHO_N "(cached) $ECHO_C" >&6
39761else
39762 if test -n "$RESCOMP"; then
39763 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
39764else
39765as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
39766for as_dir in $PATH
39767do
39768 IFS=$as_save_IFS
39769 test -z "$as_dir" && as_dir=.
39770 for ac_exec_ext in '' $ac_executable_extensions; do
39771 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
39772 ac_cv_prog_RESCOMP="Rez"
39773 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
39774 break 2
39775 fi
39776done
39777done
39778
39779 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez"
39780fi
39781fi
39782RESCOMP=$ac_cv_prog_RESCOMP
39783if test -n "$RESCOMP"; then
39784 echo "$as_me:$LINENO: result: $RESCOMP" >&5
39785echo "${ECHO_T}$RESCOMP" >&6
39786else
39787 echo "$as_me:$LINENO: result: no" >&5
39788echo "${ECHO_T}no" >&6
39789fi
39790
39791 # Extract the first word of "SetFile", so it can be a program name with args.
39792set dummy SetFile; ac_word=$2
39793echo "$as_me:$LINENO: checking for $ac_word" >&5
39794echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
39795if test "${ac_cv_prog_SETFILE+set}" = set; then
39796 echo $ECHO_N "(cached) $ECHO_C" >&6
39797else
39798 if test -n "$SETFILE"; then
39799 ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
39800else
39801as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
39802for as_dir in $PATH
39803do
39804 IFS=$as_save_IFS
39805 test -z "$as_dir" && as_dir=.
39806 for ac_exec_ext in '' $ac_executable_extensions; do
39807 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
39808 ac_cv_prog_SETFILE="SetFile"
39809 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
39810 break 2
39811 fi
39812done
39813done
39814
39815 test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
39816fi
39817fi
39818SETFILE=$ac_cv_prog_SETFILE
39819if test -n "$SETFILE"; then
39820 echo "$as_me:$LINENO: result: $SETFILE" >&5
39821echo "${ECHO_T}$SETFILE" >&6
39822else
39823 echo "$as_me:$LINENO: result: no" >&5
39824echo "${ECHO_T}no" >&6
39825fi
39826
39827 ;;
39828 esac
39829
39830
39831
39832
39833
2057db16 39834 BAKEFILE_BAKEFILE_M4_VERSION="0.1.4"
a848cd7e 39835
dcc1b6ad 39836
a49baeab 39837
17a7bf57
RL
39838
39839
9f45f08e 39840BAKEFILE_AUTOCONF_INC_M4_VERSION="0.1.4"
a848cd7e 39841
646b6ec1 39842
74b84332 39843
a848cd7e
SC
39844 # Check whether --enable-precomp-headers or --disable-precomp-headers was given.
39845if test "${enable_precomp_headers+set}" = set; then
39846 enableval="$enable_precomp_headers"
39847 bk_use_pch="$enableval"
39848fi;
39849
39850 GCC_PCH=0
39851
39852 if test "x$bk_use_pch" = "x" -o "x$bk_use_pch" = "xyes" ; then
39853 if test "x$GCC" = "xyes"; then
39854 echo "$as_me:$LINENO: checking if the compiler supports precompiled headers" >&5
39855echo $ECHO_N "checking if the compiler supports precompiled headers... $ECHO_C" >&6
39856 cat >conftest.$ac_ext <<_ACEOF
39857/* confdefs.h. */
39858_ACEOF
39859cat confdefs.h >>conftest.$ac_ext
39860cat >>conftest.$ac_ext <<_ACEOF
39861/* end confdefs.h. */
39862
39863int
39864main ()
39865{
39866
39867 #if !defined(__GNUC__) || !defined(__GNUC_MINOR__)
39868 #error "no pch support"
39869 #endif
39870 #if (__GNUC__ < 3)
39871 #error "no pch support"
39872 #endif
39873 #if (__GNUC__ == 3) && \
39874 ((!defined(__APPLE_CC__) && (__GNUC_MINOR__ < 4)) || \
39875 ( defined(__APPLE_CC__) && (__GNUC_MINOR__ < 3)))
39876 #error "no pch support"
39877 #endif
39878
39879 ;
39880 return 0;
39881}
39882_ACEOF
39883rm -f conftest.$ac_objext
39884if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 39885 (eval $ac_compile) 2>conftest.er1
a848cd7e 39886 ac_status=$?
ac1cb8d3
VS
39887 grep -v '^ *+' conftest.er1 >conftest.err
39888 rm -f conftest.er1
39889 cat conftest.err >&5
a848cd7e
SC
39890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39891 (exit $ac_status); } &&
17a7bf57 39892 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
39893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39894 (eval $ac_try) 2>&5
39895 ac_status=$?
39896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39897 (exit $ac_status); }; } &&
39898 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
39899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39900 (eval $ac_try) 2>&5
39901 ac_status=$?
39902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39903 (exit $ac_status); }; }; then
39904
39905 echo "$as_me:$LINENO: result: yes" >&5
39906echo "${ECHO_T}yes" >&6
a848cd7e
SC
39907 GCC_PCH=1
39908
39909else
39910 echo "$as_me: failed program was:" >&5
39911sed 's/^/| /' conftest.$ac_ext >&5
39912
39913
39914 echo "$as_me:$LINENO: result: no" >&5
39915echo "${ECHO_T}no" >&6
39916
39917fi
ac1cb8d3 39918rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
39919 if test $GCC_PCH = 1 ; then
39920 cat <<EOF >bk-make-pch
39921#!/bin/sh
39922
39923# This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf
39924# script. It is used to generated precompiled headers.
39925#
39926# Permission is given to use this file in any way.
39927
39928outfile="\${1}"
39929header="\${2}"
39930shift
39931shift
39932
39933compiler=
39934headerfile=
39935while test \${#} -gt 0; do
39936 case "\${1}" in
39937 -I* )
39938 incdir=\`echo \${1} | sed -e 's/-I\(.*\)/\1/g'\`
39939 if test "x\${headerfile}" = "x" -a -f "\${incdir}/\${header}" ; then
39940 headerfile="\${incdir}/\${header}"
39941 fi
39942 ;;
39943 esac
39944 compiler="\${compiler} \${1}"
39945 shift
39946done
39947
39948if test "x\${headerfile}" = "x" ; then
39949 echo "error: can't find header \${header} in include paths" >2
39950else
39951 if test -f \${outfile} ; then
39952 rm -f \${outfile}
39953 else
39954 mkdir -p \`dirname \${outfile}\`
39955 fi
39956 depsfile=".deps/\`basename \${outfile}\`.d"
39957 mkdir -p .deps
39958 # can do this because gcc is >= 3.4:
39959 \${compiler} -o \${outfile} -MMD -MF "\${depsfile}" "\${headerfile}"
39960 exit \${?}
39961fi
39962EOF
39963 chmod +x bk-make-pch
39964 fi
39965 fi
39966 fi
39967
39968
39969
39970
39971
dcc1b6ad
VS
39972
39973
39974 # Check whether --enable-precomp-headers or --disable-precomp-headers was given.
39975if test "${enable_precomp_headers+set}" = set; then
39976 enableval="$enable_precomp_headers"
39977 bk_use_pch="$enableval"
39978fi;
39979
39980 GCC_PCH=0
39981
39982 if test "x$bk_use_pch" = "x" -o "x$bk_use_pch" = "xyes" ; then
39983 if test "x$GCC" = "xyes"; then
39984 echo "$as_me:$LINENO: checking if the compiler supports precompiled headers" >&5
39985echo $ECHO_N "checking if the compiler supports precompiled headers... $ECHO_C" >&6
39986 cat >conftest.$ac_ext <<_ACEOF
39987/* confdefs.h. */
39988_ACEOF
39989cat confdefs.h >>conftest.$ac_ext
39990cat >>conftest.$ac_ext <<_ACEOF
39991/* end confdefs.h. */
39992
39993int
39994main ()
39995{
39996
39997 #if !defined(__GNUC__) || !defined(__GNUC_MINOR__)
39998 #error "no pch support"
39999 #endif
40000 #if (__GNUC__ < 3)
40001 #error "no pch support"
40002 #endif
40003 #if (__GNUC__ == 3) && \
40004 ((!defined(__APPLE_CC__) && (__GNUC_MINOR__ < 4)) || \
40005 ( defined(__APPLE_CC__) && (__GNUC_MINOR__ < 3)))
40006 #error "no pch support"
40007 #endif
40008
40009 ;
40010 return 0;
40011}
40012_ACEOF
40013rm -f conftest.$ac_objext
40014if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 40015 (eval $ac_compile) 2>conftest.er1
dcc1b6ad 40016 ac_status=$?
ac1cb8d3
VS
40017 grep -v '^ *+' conftest.er1 >conftest.err
40018 rm -f conftest.er1
40019 cat conftest.err >&5
dcc1b6ad
VS
40020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40021 (exit $ac_status); } &&
17a7bf57 40022 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
40023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40024 (eval $ac_try) 2>&5
40025 ac_status=$?
40026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40027 (exit $ac_status); }; } &&
40028 { ac_try='test -s conftest.$ac_objext'
dcc1b6ad
VS
40029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40030 (eval $ac_try) 2>&5
40031 ac_status=$?
40032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40033 (exit $ac_status); }; }; then
40034
40035 echo "$as_me:$LINENO: result: yes" >&5
40036echo "${ECHO_T}yes" >&6
dcc1b6ad
VS
40037 GCC_PCH=1
40038
40039else
40040 echo "$as_me: failed program was:" >&5
40041sed 's/^/| /' conftest.$ac_ext >&5
40042
40043
40044 echo "$as_me:$LINENO: result: no" >&5
40045echo "${ECHO_T}no" >&6
40046
40047fi
ac1cb8d3 40048rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
dcc1b6ad
VS
40049 if test $GCC_PCH = 1 ; then
40050 cat <<EOF >bk-make-pch
40051#!/bin/sh
40052
40053# This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf
40054# script. It is used to generated precompiled headers.
40055#
40056# Permission is given to use this file in any way.
40057
40058outfile="\${1}"
40059header="\${2}"
40060shift
40061shift
40062
40063compiler=
40064headerfile=
40065while test \${#} -gt 0; do
40066 case "\${1}" in
40067 -I* )
40068 incdir=\`echo \${1} | sed -e 's/-I\(.*\)/\1/g'\`
40069 if test "x\${headerfile}" = "x" -a -f "\${incdir}/\${header}" ; then
40070 headerfile="\${incdir}/\${header}"
40071 fi
40072 ;;
40073 esac
40074 compiler="\${compiler} \${1}"
40075 shift
40076done
40077
40078if test "x\${headerfile}" = "x" ; then
40079 echo "error: can't find header \${header} in include paths" >2
40080else
40081 if test -f \${outfile} ; then
40082 rm -f \${outfile}
40083 else
40084 mkdir -p \`dirname \${outfile}\`
40085 fi
40086 depsfile=".deps/\`basename \${outfile}\`.d"
40087 mkdir -p .deps
40088 # can do this because gcc is >= 3.4:
40089 \${compiler} -o \${outfile} -MMD -MF "\${depsfile}" "\${headerfile}"
40090 exit \${?}
40091fi
40092EOF
40093 chmod +x bk-make-pch
40094 fi
40095 fi
40096 fi
40097
40098
40099
a848cd7e
SC
40100 COND_BUILD_DEBUG="#"
40101 if test "x$BUILD" = "xdebug" ; then
40102 COND_BUILD_DEBUG=""
40103 fi
40104
40105 COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT="#"
40106 if test "x$BUILD" = "xdebug" -a "x$DEBUG_FLAG" = "xdefault" ; then
40107 COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT=""
40108 fi
40109
40110 COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT="#"
40111 if test "x$BUILD" = "xdebug" -a "x$DEBUG_INFO" = "xdefault" ; then
40112 COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT=""
40113 fi
40114
40115 COND_BUILD_DEBUG_UNICODE_0="#"
40116 if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x0" ; then
40117 COND_BUILD_DEBUG_UNICODE_0=""
40118 fi
40119
40120 COND_BUILD_DEBUG_UNICODE_1="#"
40121 if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x1" ; then
40122 COND_BUILD_DEBUG_UNICODE_1=""
40123 fi
40124
40125 COND_BUILD_RELEASE="#"
40126 if test "x$BUILD" = "xrelease" ; then
40127 COND_BUILD_RELEASE=""
40128 fi
40129
40130 COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT="#"
40131 if test "x$BUILD" = "xrelease" -a "x$DEBUG_INFO" = "xdefault" ; then
40132 COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT=""
40133 fi
40134
40135 COND_BUILD_RELEASE_UNICODE_0="#"
40136 if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x0" ; then
40137 COND_BUILD_RELEASE_UNICODE_0=""
40138 fi
40139
40140 COND_BUILD_RELEASE_UNICODE_1="#"
40141 if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x1" ; then
40142 COND_BUILD_RELEASE_UNICODE_1=""
40143 fi
40144
40145 COND_DEBUG_FLAG_1="#"
40146 if test "x$DEBUG_FLAG" = "x1" ; then
40147 COND_DEBUG_FLAG_1=""
40148 fi
40149
40150 COND_DEBUG_INFO_0="#"
40151 if test "x$DEBUG_INFO" = "x0" ; then
40152 COND_DEBUG_INFO_0=""
40153 fi
40154
40155 COND_DEBUG_INFO_1="#"
40156 if test "x$DEBUG_INFO" = "x1" ; then
40157 COND_DEBUG_INFO_1=""
40158 fi
40159
40160 COND_DEPS_TRACKING_0="#"
40161 if test "x$DEPS_TRACKING" = "x0" ; then
40162 COND_DEPS_TRACKING_0=""
40163 fi
40164
40165 COND_DEPS_TRACKING_1="#"
40166 if test "x$DEPS_TRACKING" = "x1" ; then
40167 COND_DEPS_TRACKING_1=""
40168 fi
40169
40170 COND_GCC_PCH_1="#"
40171 if test "x$GCC_PCH" = "x1" ; then
40172 COND_GCC_PCH_1=""
40173 fi
40174
40175 COND_MONOLITHIC_0="#"
40176 if test "x$MONOLITHIC" = "x0" ; then
40177 COND_MONOLITHIC_0=""
40178 fi
40179
40180 COND_MONOLITHIC_0_SHARED_0="#"
40181 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" ; then
40182 COND_MONOLITHIC_0_SHARED_0=""
40183 fi
40184
40185 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1="#"
40186 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" ; then
40187 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1=""
40188 fi
40189
40190 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1="#"
40191 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then
40192 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1=""
40193 fi
40194
40195 COND_MONOLITHIC_0_SHARED_0_USE_HTML_1="#"
40196 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_HTML" = "x1" ; then
40197 COND_MONOLITHIC_0_SHARED_0_USE_HTML_1=""
40198 fi
40199
40200 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1="#"
40201 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_ODBC" = "x1" ; then
40202 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1=""
40203 fi
40204
ceec2216
RL
40205 COND_MONOLITHIC_0_SHARED_0_USE_XRC_1="#"
40206 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_XRC" = "x1" ; then
40207 COND_MONOLITHIC_0_SHARED_0_USE_XRC_1=""
40208 fi
40209
a848cd7e
SC
40210 COND_MONOLITHIC_0_SHARED_1="#"
40211 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" ; then
40212 COND_MONOLITHIC_0_SHARED_1=""
40213 fi
40214
40215 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1="#"
40216 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" ; then
40217 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1=""
40218 fi
40219
40220 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1="#"
40221 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then
40222 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1=""
40223 fi
40224
40225 COND_MONOLITHIC_0_SHARED_1_USE_HTML_1="#"
40226 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_HTML" = "x1" ; then
40227 COND_MONOLITHIC_0_SHARED_1_USE_HTML_1=""
40228 fi
40229
40230 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1="#"
40231 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_ODBC" = "x1" ; then
40232 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1=""
40233 fi
40234
ceec2216
RL
40235 COND_MONOLITHIC_0_SHARED_1_USE_XRC_1="#"
40236 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_XRC" = "x1" ; then
40237 COND_MONOLITHIC_0_SHARED_1_USE_XRC_1=""
40238 fi
40239
a848cd7e
SC
40240 COND_MONOLITHIC_0_USE_ODBC_1="#"
40241 if test "x$MONOLITHIC" = "x0" -a "x$USE_ODBC" = "x1" ; then
40242 COND_MONOLITHIC_0_USE_ODBC_1=""
40243 fi
40244
40245 COND_MONOLITHIC_1="#"
40246 if test "x$MONOLITHIC" = "x1" ; then
40247 COND_MONOLITHIC_1=""
40248 fi
40249
40250 COND_MONOLITHIC_1_SHARED_0="#"
40251 if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x0" ; then
40252 COND_MONOLITHIC_1_SHARED_0=""
40253 fi
40254
40255 COND_MONOLITHIC_1_SHARED_1="#"
40256 if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x1" ; then
40257 COND_MONOLITHIC_1_SHARED_1=""
40258 fi
40259
40260 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1="#"
40261 if test "x$OFFICIAL_BUILD" = "x0" -a "x$PLATFORM_WIN32" = "x1" ; then
40262 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1=""
40263 fi
40264
40265 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1="#"
40266 if test "x$OFFICIAL_BUILD" = "x1" -a "x$PLATFORM_WIN32" = "x1" ; then
40267 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1=""
40268 fi
40269
40270 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1="#"
40271 if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERSION" = "x1" ; then
40272 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1=""
40273 fi
40274
40275 COND_PLATFORM_MACOSX_1="#"
40276 if test "x$PLATFORM_MACOSX" = "x1" ; then
40277 COND_PLATFORM_MACOSX_1=""
40278 fi
40279
a30f955f
VS
40280 COND_PLATFORM_MACOSX_1_TOOLKIT_="#"
40281 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "x" ; then
40282 COND_PLATFORM_MACOSX_1_TOOLKIT_=""
40283 fi
40284
a848cd7e
SC
40285 COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA="#"
40286 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xCOCOA" ; then
40287 COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA=""
40288 fi
40289
40290 COND_PLATFORM_MACOSX_1_TOOLKIT_GTK="#"
40291 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xGTK" ; then
40292 COND_PLATFORM_MACOSX_1_TOOLKIT_GTK=""
40293 fi
40294
40295 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC="#"
40296 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" ; then
40297 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC=""
40298 fi
40299
ebee3cd0
VS
40300 COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF="#"
40301 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMOTIF" ; then
40302 COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF=""
40303 fi
40304
40305 COND_PLATFORM_MACOSX_1_TOOLKIT_X11="#"
40306 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xX11" ; then
40307 COND_PLATFORM_MACOSX_1_TOOLKIT_X11=""
40308 fi
40309
a848cd7e
SC
40310 COND_PLATFORM_MACOSX_1_USE_GUI_1="#"
40311 if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_GUI" = "x1" ; then
40312 COND_PLATFORM_MACOSX_1_USE_GUI_1=""
40313 fi
40314
40315 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1="#"
40316 if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_SOVERSION" = "x1" ; then
40317 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1=""
40318 fi
40319
b48a2016
DE
40320 COND_PLATFORM_MACOS_1="#"
40321 if test "x$PLATFORM_MACOS" = "x1" ; then
40322 COND_PLATFORM_MACOS_1=""
40323 fi
40324
a848cd7e
SC
40325 COND_PLATFORM_MAC_1="#"
40326 if test "x$PLATFORM_MAC" = "x1" ; then
40327 COND_PLATFORM_MAC_1=""
40328 fi
40329
40330 COND_PLATFORM_OS2_1="#"
40331 if test "x$PLATFORM_OS2" = "x1" ; then
40332 COND_PLATFORM_OS2_1=""
40333 fi
40334
40335 COND_PLATFORM_UNIX_0="#"
40336 if test "x$PLATFORM_UNIX" = "x0" ; then
40337 COND_PLATFORM_UNIX_0=""
40338 fi
40339
40340 COND_PLATFORM_UNIX_1="#"
40341 if test "x$PLATFORM_UNIX" = "x1" ; then
40342 COND_PLATFORM_UNIX_1=""
40343 fi
40344
40345 COND_PLATFORM_UNIX_1_USE_GUI_1="#"
40346 if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_GUI" = "x1" ; then
40347 COND_PLATFORM_UNIX_1_USE_GUI_1=""
40348 fi
40349
40350 COND_PLATFORM_UNIX_1_USE_PLUGINS_0="#"
40351 if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_PLUGINS" = "x0" ; then
40352 COND_PLATFORM_UNIX_1_USE_PLUGINS_0=""
40353 fi
40354
40355 COND_PLATFORM_WIN32_0="#"
40356 if test "x$PLATFORM_WIN32" = "x0" ; then
40357 COND_PLATFORM_WIN32_0=""
40358 fi
40359
40360 COND_PLATFORM_WIN32_1="#"
40361 if test "x$PLATFORM_WIN32" = "x1" ; then
40362 COND_PLATFORM_WIN32_1=""
40363 fi
40364
40365 COND_SHARED_0="#"
40366 if test "x$SHARED" = "x0" ; then
40367 COND_SHARED_0=""
40368 fi
40369
ceec2216
RL
40370 COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0="#"
40371 if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xMAC" -a "x$WXUNIV" = "x0" ; then
40372 COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0=""
40373 fi
40374
40375 COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0="#"
40376 if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xMSW" -a "x$WXUNIV" = "x0" ; then
40377 COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0=""
40378 fi
40379
40380 COND_SHARED_0_TOOLKIT_PM_WXUNIV_0="#"
40381 if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xPM" -a "x$WXUNIV" = "x0" ; then
40382 COND_SHARED_0_TOOLKIT_PM_WXUNIV_0=""
40383 fi
40384
a848cd7e
SC
40385 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1="#"
40386 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
40387 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1=""
40388 fi
40389
40390 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
40391 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
40392 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
40393 fi
40394
40395 COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
40396 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
40397 COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
40398 fi
40399
40400 COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
40401 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
40402 COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
40403 fi
40404
40405 COND_SHARED_0_WXUSE_EXPAT_BUILTIN="#"
40406 if test "x$SHARED" = "x0" -a "x$wxUSE_EXPAT" = "xbuiltin" ; then
40407 COND_SHARED_0_WXUSE_EXPAT_BUILTIN=""
40408 fi
40409
40410 COND_SHARED_0_WXUSE_ODBC_BUILTIN="#"
40411 if test "x$SHARED" = "x0" -a "x$wxUSE_ODBC" = "xbuiltin" ; then
40412 COND_SHARED_0_WXUSE_ODBC_BUILTIN=""
40413 fi
40414
40415 COND_SHARED_0_WXUSE_REGEX_BUILTIN="#"
40416 if test "x$SHARED" = "x0" -a "x$wxUSE_REGEX" = "xbuiltin" ; then
40417 COND_SHARED_0_WXUSE_REGEX_BUILTIN=""
40418 fi
40419
40420 COND_SHARED_0_WXUSE_ZLIB_BUILTIN="#"
40421 if test "x$SHARED" = "x0" -a "x$wxUSE_ZLIB" = "xbuiltin" ; then
40422 COND_SHARED_0_WXUSE_ZLIB_BUILTIN=""
40423 fi
40424
40425 COND_SHARED_1="#"
40426 if test "x$SHARED" = "x1" ; then
40427 COND_SHARED_1=""
40428 fi
40429
40430 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1="#"
40431 if test "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
40432 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1=""
40433 fi
40434
a30f955f
VS
40435 COND_TOOLKIT_="#"
40436 if test "x$TOOLKIT" = "x" ; then
40437 COND_TOOLKIT_=""
40438 fi
40439
a848cd7e
SC
40440 COND_TOOLKIT_COCOA="#"
40441 if test "x$TOOLKIT" = "xCOCOA" ; then
40442 COND_TOOLKIT_COCOA=""
40443 fi
40444
a49baeab
DE
40445 COND_TOOLKIT_COCOA_USE_GUI_1="#"
40446 if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" ; then
40447 COND_TOOLKIT_COCOA_USE_GUI_1=""
40448 fi
40449
a848cd7e
SC
40450 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0="#"
40451 if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
40452 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0=""
40453 fi
40454
40455 COND_TOOLKIT_GTK="#"
40456 if test "x$TOOLKIT" = "xGTK" ; then
40457 COND_TOOLKIT_GTK=""
40458 fi
40459
40460 COND_TOOLKIT_GTK_USE_GUI_1="#"
40461 if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" ; then
40462 COND_TOOLKIT_GTK_USE_GUI_1=""
40463 fi
40464
40465 COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0="#"
40466 if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
40467 COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0=""
40468 fi
40469
40470 COND_TOOLKIT_MAC="#"
40471 if test "x$TOOLKIT" = "xMAC" ; then
40472 COND_TOOLKIT_MAC=""
40473 fi
40474
40475 COND_TOOLKIT_MAC_USE_GUI_1="#"
40476 if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" ; then
40477 COND_TOOLKIT_MAC_USE_GUI_1=""
40478 fi
40479
40480 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="#"
40481 if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
40482 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0=""
40483 fi
40484
40485 COND_TOOLKIT_MGL="#"
40486 if test "x$TOOLKIT" = "xMGL" ; then
40487 COND_TOOLKIT_MGL=""
40488 fi
40489
40490 COND_TOOLKIT_MGL_USE_GUI_1="#"
40491 if test "x$TOOLKIT" = "xMGL" -a "x$USE_GUI" = "x1" ; then
40492 COND_TOOLKIT_MGL_USE_GUI_1=""
40493 fi
40494
40495 COND_TOOLKIT_MOTIF="#"
40496 if test "x$TOOLKIT" = "xMOTIF" ; then
40497 COND_TOOLKIT_MOTIF=""
40498 fi
40499
40500 COND_TOOLKIT_MOTIF_USE_GUI_1="#"
40501 if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" ; then
40502 COND_TOOLKIT_MOTIF_USE_GUI_1=""
40503 fi
40504
40505 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0="#"
40506 if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
40507 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0=""
40508 fi
40509
40510 COND_TOOLKIT_MSW="#"
40511 if test "x$TOOLKIT" = "xMSW" ; then
40512 COND_TOOLKIT_MSW=""
40513 fi
40514
40515 COND_TOOLKIT_MSW_USE_GUI_1="#"
40516 if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" ; then
40517 COND_TOOLKIT_MSW_USE_GUI_1=""
40518 fi
40519
40520 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0="#"
40521 if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
40522 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0=""
40523 fi
40524
40525 COND_TOOLKIT_PM="#"
40526 if test "x$TOOLKIT" = "xPM" ; then
40527 COND_TOOLKIT_PM=""
40528 fi
40529
40530 COND_TOOLKIT_PM_USE_GUI_1="#"
40531 if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" ; then
40532 COND_TOOLKIT_PM_USE_GUI_1=""
40533 fi
40534
40535 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0="#"
40536 if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
40537 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0=""
40538 fi
40539
3fd9c298
DE
40540 COND_TOOLKIT_WINCE="#"
40541 if test "x$TOOLKIT" = "xWINCE" ; then
40542 COND_TOOLKIT_WINCE=""
40543 fi
40544
40545 COND_TOOLKIT_WINCE_USE_GUI_1="#"
40546 if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" ; then
40547 COND_TOOLKIT_WINCE_USE_GUI_1=""
40548 fi
40549
40550 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0="#"
40551 if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
40552 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0=""
40553 fi
40554
a848cd7e
SC
40555 COND_TOOLKIT_X11="#"
40556 if test "x$TOOLKIT" = "xX11" ; then
40557 COND_TOOLKIT_X11=""
40558 fi
40559
40560 COND_TOOLKIT_X11_USE_GUI_1="#"
40561 if test "x$TOOLKIT" = "xX11" -a "x$USE_GUI" = "x1" ; then
40562 COND_TOOLKIT_X11_USE_GUI_1=""
40563 fi
40564
40565 COND_UNICODE_1="#"
40566 if test "x$UNICODE" = "x1" ; then
40567 COND_UNICODE_1=""
40568 fi
40569
40570 COND_USE_EXCEPTIONS_0="#"
40571 if test "x$USE_EXCEPTIONS" = "x0" ; then
40572 COND_USE_EXCEPTIONS_0=""
40573 fi
40574
40575 COND_USE_EXCEPTIONS_1="#"
40576 if test "x$USE_EXCEPTIONS" = "x1" ; then
40577 COND_USE_EXCEPTIONS_1=""
40578 fi
40579
40580 COND_USE_GUI_0="#"
40581 if test "x$USE_GUI" = "x0" ; then
40582 COND_USE_GUI_0=""
40583 fi
40584
40585 COND_USE_GUI_1="#"
40586 if test "x$USE_GUI" = "x1" ; then
40587 COND_USE_GUI_1=""
40588 fi
40589
40590 COND_USE_GUI_1_WXUNIV_0="#"
40591 if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
40592 COND_USE_GUI_1_WXUNIV_0=""
40593 fi
40594
40595 COND_USE_GUI_1_WXUNIV_1="#"
40596 if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x1" ; then
40597 COND_USE_GUI_1_WXUNIV_1=""
40598 fi
40599
40600 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
40601 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
40602 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
40603 fi
40604
40605 COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
40606 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
40607 COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
40608 fi
40609
40610 COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
40611 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
40612 COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
40613 fi
40614
ceec2216
RL
40615 COND_USE_ODBC_1="#"
40616 if test "x$USE_ODBC" = "x1" ; then
40617 COND_USE_ODBC_1=""
40618 fi
40619
ffa0583f
RL
40620 COND_USE_OPENGL_1="#"
40621 if test "x$USE_OPENGL" = "x1" ; then
40622 COND_USE_OPENGL_1=""
40623 fi
40624
a848cd7e
SC
40625 COND_USE_PLUGINS_0="#"
40626 if test "x$USE_PLUGINS" = "x0" ; then
40627 COND_USE_PLUGINS_0=""
40628 fi
40629
40630 COND_USE_SOSYMLINKS_1="#"
40631 if test "x$USE_SOSYMLINKS" = "x1" ; then
40632 COND_USE_SOSYMLINKS_1=""
40633 fi
40634
40635 COND_USE_SOVERLINUX_1="#"
40636 if test "x$USE_SOVERLINUX" = "x1" ; then
40637 COND_USE_SOVERLINUX_1=""
40638 fi
40639
40640 COND_USE_SOVERSION_0="#"
40641 if test "x$USE_SOVERSION" = "x0" ; then
40642 COND_USE_SOVERSION_0=""
40643 fi
40644
40645 COND_USE_SOVERSOLARIS_1="#"
40646 if test "x$USE_SOVERSOLARIS" = "x1" ; then
40647 COND_USE_SOVERSOLARIS_1=""
40648 fi
40649
a13a7f89
RL
40650 COND_USE_XRC_1="#"
40651 if test "x$USE_XRC" = "x1" ; then
40652 COND_USE_XRC_1=""
40653 fi
40654
a848cd7e
SC
40655 COND_WITH_PLUGIN_SDL_1="#"
40656 if test "x$WITH_PLUGIN_SDL" = "x1" ; then
40657 COND_WITH_PLUGIN_SDL_1=""
40658 fi
40659
a848cd7e
SC
40660 COND_WXUNIV_1="#"
40661 if test "x$WXUNIV" = "x1" ; then
40662 COND_WXUNIV_1=""
40663 fi
40664
40665 COND_WXUSE_EXPAT_BUILTIN="#"
40666 if test "x$wxUSE_EXPAT" = "xbuiltin" ; then
40667 COND_WXUSE_EXPAT_BUILTIN=""
40668 fi
40669
40670 COND_WXUSE_LIBJPEG_BUILTIN="#"
40671 if test "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
40672 COND_WXUSE_LIBJPEG_BUILTIN=""
40673 fi
40674
40675 COND_WXUSE_LIBPNG_BUILTIN="#"
40676 if test "x$wxUSE_LIBPNG" = "xbuiltin" ; then
40677 COND_WXUSE_LIBPNG_BUILTIN=""
40678 fi
40679
40680 COND_WXUSE_LIBTIFF_BUILTIN="#"
40681 if test "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
40682 COND_WXUSE_LIBTIFF_BUILTIN=""
40683 fi
40684
40685 COND_WXUSE_ODBC_BUILTIN="#"
40686 if test "x$wxUSE_ODBC" = "xbuiltin" ; then
40687 COND_WXUSE_ODBC_BUILTIN=""
40688 fi
40689
40690 COND_WXUSE_REGEX_BUILTIN="#"
40691 if test "x$wxUSE_REGEX" = "xbuiltin" ; then
40692 COND_WXUSE_REGEX_BUILTIN=""
40693 fi
40694
40695 COND_WXUSE_ZLIB_BUILTIN="#"
40696 if test "x$wxUSE_ZLIB" = "xbuiltin" ; then
40697 COND_WXUSE_ZLIB_BUILTIN=""
40698 fi
40699
dcc1b6ad
VS
40700 COND_BUILD_DEBUG="#"
40701 if test "x$BUILD" = "xdebug" ; then
40702 COND_BUILD_DEBUG=""
40703 fi
40704
40705 COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT="#"
40706 if test "x$BUILD" = "xdebug" -a "x$DEBUG_FLAG" = "xdefault" ; then
40707 COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT=""
40708 fi
40709
40710 COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT="#"
40711 if test "x$BUILD" = "xdebug" -a "x$DEBUG_INFO" = "xdefault" ; then
40712 COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT=""
40713 fi
40714
40715 COND_BUILD_DEBUG_UNICODE_0="#"
40716 if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x0" ; then
40717 COND_BUILD_DEBUG_UNICODE_0=""
40718 fi
40719
40720 COND_BUILD_DEBUG_UNICODE_1="#"
40721 if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x1" ; then
40722 COND_BUILD_DEBUG_UNICODE_1=""
40723 fi
40724
40725 COND_BUILD_RELEASE="#"
40726 if test "x$BUILD" = "xrelease" ; then
40727 COND_BUILD_RELEASE=""
40728 fi
40729
40730 COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT="#"
40731 if test "x$BUILD" = "xrelease" -a "x$DEBUG_INFO" = "xdefault" ; then
40732 COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT=""
40733 fi
40734
40735 COND_BUILD_RELEASE_UNICODE_0="#"
40736 if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x0" ; then
40737 COND_BUILD_RELEASE_UNICODE_0=""
40738 fi
40739
40740 COND_BUILD_RELEASE_UNICODE_1="#"
40741 if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x1" ; then
40742 COND_BUILD_RELEASE_UNICODE_1=""
40743 fi
40744
40745 COND_DEBUG_FLAG_1="#"
40746 if test "x$DEBUG_FLAG" = "x1" ; then
40747 COND_DEBUG_FLAG_1=""
40748 fi
40749
40750 COND_DEBUG_INFO_0="#"
40751 if test "x$DEBUG_INFO" = "x0" ; then
40752 COND_DEBUG_INFO_0=""
40753 fi
40754
40755 COND_DEBUG_INFO_1="#"
40756 if test "x$DEBUG_INFO" = "x1" ; then
40757 COND_DEBUG_INFO_1=""
40758 fi
40759
40760 COND_DEPS_TRACKING_0="#"
40761 if test "x$DEPS_TRACKING" = "x0" ; then
40762 COND_DEPS_TRACKING_0=""
40763 fi
40764
40765 COND_DEPS_TRACKING_1="#"
40766 if test "x$DEPS_TRACKING" = "x1" ; then
40767 COND_DEPS_TRACKING_1=""
40768 fi
40769
40770 COND_GCC_PCH_1="#"
40771 if test "x$GCC_PCH" = "x1" ; then
40772 COND_GCC_PCH_1=""
40773 fi
40774
40775 COND_MONOLITHIC_0="#"
40776 if test "x$MONOLITHIC" = "x0" ; then
40777 COND_MONOLITHIC_0=""
40778 fi
40779
40780 COND_MONOLITHIC_0_SHARED_0="#"
40781 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" ; then
40782 COND_MONOLITHIC_0_SHARED_0=""
40783 fi
40784
40785 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1="#"
40786 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" ; then
40787 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1=""
40788 fi
40789
40790 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1="#"
40791 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then
40792 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1=""
40793 fi
40794
40795 COND_MONOLITHIC_0_SHARED_0_USE_HTML_1="#"
40796 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_HTML" = "x1" ; then
40797 COND_MONOLITHIC_0_SHARED_0_USE_HTML_1=""
40798 fi
40799
40800 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1="#"
40801 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_ODBC" = "x1" ; then
40802 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1=""
40803 fi
40804
9a8f0513
VS
40805 COND_MONOLITHIC_0_SHARED_0_USE_XRC_1="#"
40806 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_XRC" = "x1" ; then
40807 COND_MONOLITHIC_0_SHARED_0_USE_XRC_1=""
40808 fi
40809
dcc1b6ad
VS
40810 COND_MONOLITHIC_0_SHARED_1="#"
40811 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" ; then
40812 COND_MONOLITHIC_0_SHARED_1=""
40813 fi
40814
40815 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1="#"
40816 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" ; then
40817 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1=""
40818 fi
40819
40820 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1="#"
40821 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then
40822 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1=""
40823 fi
40824
40825 COND_MONOLITHIC_0_SHARED_1_USE_HTML_1="#"
40826 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_HTML" = "x1" ; then
40827 COND_MONOLITHIC_0_SHARED_1_USE_HTML_1=""
40828 fi
40829
40830 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1="#"
40831 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_ODBC" = "x1" ; then
40832 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1=""
40833 fi
40834
9a8f0513
VS
40835 COND_MONOLITHIC_0_SHARED_1_USE_XRC_1="#"
40836 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_XRC" = "x1" ; then
40837 COND_MONOLITHIC_0_SHARED_1_USE_XRC_1=""
40838 fi
40839
dcc1b6ad
VS
40840 COND_MONOLITHIC_0_USE_ODBC_1="#"
40841 if test "x$MONOLITHIC" = "x0" -a "x$USE_ODBC" = "x1" ; then
40842 COND_MONOLITHIC_0_USE_ODBC_1=""
40843 fi
40844
40845 COND_MONOLITHIC_1="#"
40846 if test "x$MONOLITHIC" = "x1" ; then
40847 COND_MONOLITHIC_1=""
40848 fi
40849
40850 COND_MONOLITHIC_1_SHARED_0="#"
40851 if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x0" ; then
40852 COND_MONOLITHIC_1_SHARED_0=""
40853 fi
40854
40855 COND_MONOLITHIC_1_SHARED_1="#"
40856 if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x1" ; then
40857 COND_MONOLITHIC_1_SHARED_1=""
40858 fi
40859
40860 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1="#"
40861 if test "x$OFFICIAL_BUILD" = "x0" -a "x$PLATFORM_WIN32" = "x1" ; then
40862 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1=""
40863 fi
40864
40865 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1="#"
40866 if test "x$OFFICIAL_BUILD" = "x1" -a "x$PLATFORM_WIN32" = "x1" ; then
40867 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1=""
40868 fi
40869
40870 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1="#"
40871 if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERSION" = "x1" ; then
40872 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1=""
40873 fi
40874
40875 COND_PLATFORM_MACOSX_1="#"
40876 if test "x$PLATFORM_MACOSX" = "x1" ; then
40877 COND_PLATFORM_MACOSX_1=""
40878 fi
40879
40880 COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA="#"
40881 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xCOCOA" ; then
40882 COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA=""
40883 fi
40884
40885 COND_PLATFORM_MACOSX_1_TOOLKIT_GTK="#"
40886 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xGTK" ; then
40887 COND_PLATFORM_MACOSX_1_TOOLKIT_GTK=""
40888 fi
40889
40890 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC="#"
40891 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" ; then
40892 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC=""
40893 fi
40894
9a8f0513
VS
40895 COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF="#"
40896 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMOTIF" ; then
40897 COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF=""
40898 fi
40899
40900 COND_PLATFORM_MACOSX_1_TOOLKIT_X11="#"
40901 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xX11" ; then
40902 COND_PLATFORM_MACOSX_1_TOOLKIT_X11=""
40903 fi
40904
dcc1b6ad
VS
40905 COND_PLATFORM_MACOSX_1_USE_GUI_1="#"
40906 if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_GUI" = "x1" ; then
40907 COND_PLATFORM_MACOSX_1_USE_GUI_1=""
40908 fi
40909
40910 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1="#"
40911 if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_SOVERSION" = "x1" ; then
40912 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1=""
40913 fi
40914
40915 COND_PLATFORM_MAC_1="#"
40916 if test "x$PLATFORM_MAC" = "x1" ; then
40917 COND_PLATFORM_MAC_1=""
40918 fi
40919
40920 COND_PLATFORM_OS2_1="#"
40921 if test "x$PLATFORM_OS2" = "x1" ; then
40922 COND_PLATFORM_OS2_1=""
40923 fi
40924
40925 COND_PLATFORM_UNIX_0="#"
40926 if test "x$PLATFORM_UNIX" = "x0" ; then
40927 COND_PLATFORM_UNIX_0=""
40928 fi
40929
40930 COND_PLATFORM_UNIX_1="#"
40931 if test "x$PLATFORM_UNIX" = "x1" ; then
40932 COND_PLATFORM_UNIX_1=""
40933 fi
40934
40935 COND_PLATFORM_UNIX_1_USE_GUI_1="#"
40936 if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_GUI" = "x1" ; then
40937 COND_PLATFORM_UNIX_1_USE_GUI_1=""
40938 fi
40939
40940 COND_PLATFORM_UNIX_1_USE_PLUGINS_0="#"
40941 if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_PLUGINS" = "x0" ; then
40942 COND_PLATFORM_UNIX_1_USE_PLUGINS_0=""
40943 fi
40944
40945 COND_PLATFORM_WIN32_0="#"
40946 if test "x$PLATFORM_WIN32" = "x0" ; then
40947 COND_PLATFORM_WIN32_0=""
40948 fi
40949
40950 COND_PLATFORM_WIN32_1="#"
40951 if test "x$PLATFORM_WIN32" = "x1" ; then
40952 COND_PLATFORM_WIN32_1=""
40953 fi
40954
40955 COND_SHARED_0="#"
40956 if test "x$SHARED" = "x0" ; then
40957 COND_SHARED_0=""
40958 fi
40959
40960 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1="#"
40961 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
40962 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1=""
40963 fi
40964
40965 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
40966 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
40967 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
40968 fi
40969
40970 COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
40971 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
40972 COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
40973 fi
40974
40975 COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
40976 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
40977 COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
40978 fi
40979
40980 COND_SHARED_0_WXUSE_EXPAT_BUILTIN="#"
40981 if test "x$SHARED" = "x0" -a "x$wxUSE_EXPAT" = "xbuiltin" ; then
40982 COND_SHARED_0_WXUSE_EXPAT_BUILTIN=""
40983 fi
40984
40985 COND_SHARED_0_WXUSE_ODBC_BUILTIN="#"
40986 if test "x$SHARED" = "x0" -a "x$wxUSE_ODBC" = "xbuiltin" ; then
40987 COND_SHARED_0_WXUSE_ODBC_BUILTIN=""
40988 fi
40989
40990 COND_SHARED_0_WXUSE_REGEX_BUILTIN="#"
40991 if test "x$SHARED" = "x0" -a "x$wxUSE_REGEX" = "xbuiltin" ; then
40992 COND_SHARED_0_WXUSE_REGEX_BUILTIN=""
40993 fi
40994
40995 COND_SHARED_0_WXUSE_ZLIB_BUILTIN="#"
40996 if test "x$SHARED" = "x0" -a "x$wxUSE_ZLIB" = "xbuiltin" ; then
40997 COND_SHARED_0_WXUSE_ZLIB_BUILTIN=""
40998 fi
40999
41000 COND_SHARED_1="#"
41001 if test "x$SHARED" = "x1" ; then
41002 COND_SHARED_1=""
41003 fi
41004
41005 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1="#"
41006 if test "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
41007 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1=""
41008 fi
41009
41010 COND_TOOLKIT_COCOA="#"
41011 if test "x$TOOLKIT" = "xCOCOA" ; then
41012 COND_TOOLKIT_COCOA=""
41013 fi
41014
41015 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0="#"
41016 if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
41017 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0=""
41018 fi
41019
41020 COND_TOOLKIT_GTK="#"
41021 if test "x$TOOLKIT" = "xGTK" ; then
41022 COND_TOOLKIT_GTK=""
41023 fi
41024
41025 COND_TOOLKIT_GTK_USE_GUI_1="#"
41026 if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" ; then
41027 COND_TOOLKIT_GTK_USE_GUI_1=""
41028 fi
41029
41030 COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0="#"
41031 if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
41032 COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0=""
41033 fi
41034
41035 COND_TOOLKIT_MAC="#"
41036 if test "x$TOOLKIT" = "xMAC" ; then
41037 COND_TOOLKIT_MAC=""
41038 fi
41039
41040 COND_TOOLKIT_MAC_USE_GUI_1="#"
41041 if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" ; then
41042 COND_TOOLKIT_MAC_USE_GUI_1=""
41043 fi
41044
41045 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="#"
41046 if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
41047 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0=""
41048 fi
41049
9a8f0513
VS
41050 COND_TOOLKIT_MAC_WXUNIV_0="#"
41051 if test "x$TOOLKIT" = "xMAC" -a "x$WXUNIV" = "x0" ; then
41052 COND_TOOLKIT_MAC_WXUNIV_0=""
41053 fi
41054
dcc1b6ad
VS
41055 COND_TOOLKIT_MGL="#"
41056 if test "x$TOOLKIT" = "xMGL" ; then
41057 COND_TOOLKIT_MGL=""
41058 fi
41059
41060 COND_TOOLKIT_MGL_USE_GUI_1="#"
41061 if test "x$TOOLKIT" = "xMGL" -a "x$USE_GUI" = "x1" ; then
41062 COND_TOOLKIT_MGL_USE_GUI_1=""
41063 fi
41064
41065 COND_TOOLKIT_MOTIF="#"
41066 if test "x$TOOLKIT" = "xMOTIF" ; then
41067 COND_TOOLKIT_MOTIF=""
41068 fi
41069
41070 COND_TOOLKIT_MOTIF_USE_GUI_1="#"
41071 if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" ; then
41072 COND_TOOLKIT_MOTIF_USE_GUI_1=""
41073 fi
41074
41075 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0="#"
41076 if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
41077 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0=""
41078 fi
41079
41080 COND_TOOLKIT_MSW="#"
41081 if test "x$TOOLKIT" = "xMSW" ; then
41082 COND_TOOLKIT_MSW=""
41083 fi
41084
41085 COND_TOOLKIT_MSW_USE_GUI_1="#"
41086 if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" ; then
41087 COND_TOOLKIT_MSW_USE_GUI_1=""
41088 fi
41089
41090 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0="#"
41091 if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
41092 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0=""
41093 fi
41094
9a8f0513
VS
41095 COND_TOOLKIT_MSW_WXUNIV_0="#"
41096 if test "x$TOOLKIT" = "xMSW" -a "x$WXUNIV" = "x0" ; then
41097 COND_TOOLKIT_MSW_WXUNIV_0=""
41098 fi
41099
dcc1b6ad
VS
41100 COND_TOOLKIT_PM="#"
41101 if test "x$TOOLKIT" = "xPM" ; then
41102 COND_TOOLKIT_PM=""
41103 fi
41104
41105 COND_TOOLKIT_PM_USE_GUI_1="#"
41106 if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" ; then
41107 COND_TOOLKIT_PM_USE_GUI_1=""
41108 fi
41109
41110 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0="#"
41111 if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
41112 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0=""
41113 fi
41114
9a8f0513
VS
41115 COND_TOOLKIT_PM_WXUNIV_0="#"
41116 if test "x$TOOLKIT" = "xPM" -a "x$WXUNIV" = "x0" ; then
41117 COND_TOOLKIT_PM_WXUNIV_0=""
41118 fi
41119
dcc1b6ad
VS
41120 COND_TOOLKIT_WINCE="#"
41121 if test "x$TOOLKIT" = "xWINCE" ; then
41122 COND_TOOLKIT_WINCE=""
41123 fi
41124
41125 COND_TOOLKIT_WINCE_USE_GUI_1="#"
41126 if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" ; then
41127 COND_TOOLKIT_WINCE_USE_GUI_1=""
41128 fi
41129
41130 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0="#"
41131 if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
41132 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0=""
41133 fi
41134
41135 COND_TOOLKIT_X11="#"
41136 if test "x$TOOLKIT" = "xX11" ; then
41137 COND_TOOLKIT_X11=""
41138 fi
41139
41140 COND_TOOLKIT_X11_USE_GUI_1="#"
41141 if test "x$TOOLKIT" = "xX11" -a "x$USE_GUI" = "x1" ; then
41142 COND_TOOLKIT_X11_USE_GUI_1=""
41143 fi
41144
41145 COND_UNICODE_1="#"
41146 if test "x$UNICODE" = "x1" ; then
41147 COND_UNICODE_1=""
41148 fi
41149
41150 COND_USE_EXCEPTIONS_0="#"
41151 if test "x$USE_EXCEPTIONS" = "x0" ; then
41152 COND_USE_EXCEPTIONS_0=""
41153 fi
41154
41155 COND_USE_EXCEPTIONS_1="#"
41156 if test "x$USE_EXCEPTIONS" = "x1" ; then
41157 COND_USE_EXCEPTIONS_1=""
41158 fi
41159
41160 COND_USE_GUI_0="#"
41161 if test "x$USE_GUI" = "x0" ; then
41162 COND_USE_GUI_0=""
41163 fi
41164
41165 COND_USE_GUI_1="#"
41166 if test "x$USE_GUI" = "x1" ; then
41167 COND_USE_GUI_1=""
41168 fi
41169
41170 COND_USE_GUI_1_WXUNIV_0="#"
41171 if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
41172 COND_USE_GUI_1_WXUNIV_0=""
41173 fi
41174
41175 COND_USE_GUI_1_WXUNIV_1="#"
41176 if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x1" ; then
41177 COND_USE_GUI_1_WXUNIV_1=""
41178 fi
41179
41180 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
41181 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
41182 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
41183 fi
41184
41185 COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
41186 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
41187 COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
41188 fi
41189
41190 COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
41191 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
41192 COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
41193 fi
41194
41195 COND_USE_ODBC_1="#"
41196 if test "x$USE_ODBC" = "x1" ; then
41197 COND_USE_ODBC_1=""
41198 fi
41199
41200 COND_USE_PLUGINS_0="#"
41201 if test "x$USE_PLUGINS" = "x0" ; then
41202 COND_USE_PLUGINS_0=""
41203 fi
41204
41205 COND_USE_SOSYMLINKS_1="#"
41206 if test "x$USE_SOSYMLINKS" = "x1" ; then
41207 COND_USE_SOSYMLINKS_1=""
41208 fi
41209
41210 COND_USE_SOVERLINUX_1="#"
41211 if test "x$USE_SOVERLINUX" = "x1" ; then
41212 COND_USE_SOVERLINUX_1=""
41213 fi
41214
41215 COND_USE_SOVERSION_0="#"
41216 if test "x$USE_SOVERSION" = "x0" ; then
41217 COND_USE_SOVERSION_0=""
41218 fi
41219
41220 COND_USE_SOVERSOLARIS_1="#"
41221 if test "x$USE_SOVERSOLARIS" = "x1" ; then
41222 COND_USE_SOVERSOLARIS_1=""
41223 fi
41224
41225 COND_WITH_PLUGIN_SDL_1="#"
41226 if test "x$WITH_PLUGIN_SDL" = "x1" ; then
41227 COND_WITH_PLUGIN_SDL_1=""
41228 fi
41229
41230 COND_WXUNIV_1="#"
41231 if test "x$WXUNIV" = "x1" ; then
41232 COND_WXUNIV_1=""
41233 fi
41234
41235 COND_WXUSE_EXPAT_BUILTIN="#"
41236 if test "x$wxUSE_EXPAT" = "xbuiltin" ; then
41237 COND_WXUSE_EXPAT_BUILTIN=""
41238 fi
41239
41240 COND_WXUSE_LIBJPEG_BUILTIN="#"
41241 if test "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
41242 COND_WXUSE_LIBJPEG_BUILTIN=""
41243 fi
41244
41245 COND_WXUSE_LIBPNG_BUILTIN="#"
41246 if test "x$wxUSE_LIBPNG" = "xbuiltin" ; then
41247 COND_WXUSE_LIBPNG_BUILTIN=""
41248 fi
41249
41250 COND_WXUSE_LIBTIFF_BUILTIN="#"
41251 if test "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
41252 COND_WXUSE_LIBTIFF_BUILTIN=""
41253 fi
41254
41255 COND_WXUSE_ODBC_BUILTIN="#"
41256 if test "x$wxUSE_ODBC" = "xbuiltin" ; then
41257 COND_WXUSE_ODBC_BUILTIN=""
41258 fi
41259
41260 COND_WXUSE_REGEX_BUILTIN="#"
41261 if test "x$wxUSE_REGEX" = "xbuiltin" ; then
41262 COND_WXUSE_REGEX_BUILTIN=""
41263 fi
41264
41265 COND_WXUSE_ZLIB_BUILTIN="#"
41266 if test "x$wxUSE_ZLIB" = "xbuiltin" ; then
41267 COND_WXUSE_ZLIB_BUILTIN=""
41268 fi
41269
a848cd7e
SC
41270
41271
2057db16
VS
41272 if test "$BAKEFILE_BAKEFILE_M4_VERSION" != "$BAKEFILE_AUTOCONF_INC_M4_VERSION" ; then
41273 { { 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
41274echo "$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;}
41275 { (exit 1); exit 1; }; }
41276 fi
41277
a848cd7e 41278
ceec2216
RL
41279if test "$wxUSE_SHARED" = "yes"; then
41280
41281 sanitised_bakefile_mess=`echo "$SHARED_LD_CXX" | tr -d '()'`
41282 EXE_LINKER=`eval echo "$sanitised_bakefile_mess"`
41283
41284else
41285
41286 EXE_LINKER="$CXX -o"
41287
41288fi
a848cd7e 41289
74b84332 41290GCC_PRAGMA_FLAGS=""
a848cd7e 41291if test $GCC_PCH = 1 ; then
74b84332 41292 GCC_PRAGMA_FLAGS="-DWX_PRECOMP -DNO_GCC_PRAGMA"
a848cd7e
SC
41293else
41294 case "${host}" in
41295 powerpc-*-darwin* )
74b84332 41296 GCC_PRAGMA_FLAGS="-DNO_GCC_PRAGMA"
a848cd7e 41297 ;;
bea8e651 41298 *-*-mingw32* )
1f344abf
VS
41299 if test "$wxUSE_STL" = "yes" -o \
41300 "$wxUSE_NO_EXCEPTIONS" != "yes" -o \
41301 "$wxUSE_NO_RTTI" != "yes"; then
41302 echo "$as_me:$LINENO: checking if this MinGW version needs -DNO_GCC_PRAGMA" >&5
41303echo $ECHO_N "checking if this MinGW version needs -DNO_GCC_PRAGMA... $ECHO_C" >&6
bea8e651
MB
41304 cat >conftest.$ac_ext <<_ACEOF
41305/* confdefs.h. */
41306_ACEOF
41307cat confdefs.h >>conftest.$ac_ext
41308cat >>conftest.$ac_ext <<_ACEOF
41309/* end confdefs.h. */
41310
41311int
41312main ()
41313{
1f344abf 41314#if !(__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 2))
bea8e651
MB
41315 #error "Not GCC 3.2 or greater"
41316 #endif
41317
41318 ;
41319 return 0;
41320}
41321_ACEOF
41322rm -f conftest.$ac_objext
41323if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 41324 (eval $ac_compile) 2>conftest.er1
bea8e651 41325 ac_status=$?
ac1cb8d3
VS
41326 grep -v '^ *+' conftest.er1 >conftest.err
41327 rm -f conftest.er1
41328 cat conftest.err >&5
bea8e651
MB
41329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41330 (exit $ac_status); } &&
17a7bf57 41331 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
41332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41333 (eval $ac_try) 2>&5
41334 ac_status=$?
41335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41336 (exit $ac_status); }; } &&
41337 { ac_try='test -s conftest.$ac_objext'
bea8e651
MB
41338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41339 (eval $ac_try) 2>&5
41340 ac_status=$?
41341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41342 (exit $ac_status); }; }; then
74b84332 41343 GCC_PRAGMA_FLAGS="-DNO_GCC_PRAGMA"
bea8e651
MB
41344 echo "$as_me:$LINENO: result: yes" >&5
41345echo "${ECHO_T}yes" >&6
41346else
41347 echo "$as_me: failed program was:" >&5
41348sed 's/^/| /' conftest.$ac_ext >&5
41349
41350echo "$as_me:$LINENO: result: no" >&5
41351echo "${ECHO_T}no" >&6
41352fi
ac1cb8d3 41353rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bea8e651
MB
41354 fi
41355 ;;
a848cd7e
SC
41356 esac
41357fi
74b84332 41358CPPFLAGS="$GCC_PRAGMA_FLAGS $CPPFLAGS"
a848cd7e
SC
41359
41360
41361SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`"
41362
41363
41364
41365
41366
41367
41368
41369
41370
41371
41372
41373
41374
41375
41376
41377
41378
41379
41380
41381
41382
41383
41384
41385
41386
41387
41388
41389
41390
41391
41392
41393
41394
41395
41396
41397
41398
41399
41400
41401
41402
41403
a848cd7e
SC
41404
41405
41406
41407
41408
41409
41410
41411
41412
41413
41414
41415
41416
41417
41418
41419
41420
41421
74b84332 41422
a848cd7e
SC
41423
41424
41425echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
41426echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
ac1cb8d3 41427set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
a848cd7e
SC
41428if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
41429 echo $ECHO_N "(cached) $ECHO_C" >&6
41430else
41431 cat >conftest.make <<\_ACEOF
41432all:
41433 @echo 'ac_maketemp="$(MAKE)"'
41434_ACEOF
41435# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
41436eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
41437if test -n "$ac_maketemp"; then
41438 eval ac_cv_prog_make_${ac_make}_set=yes
41439else
41440 eval ac_cv_prog_make_${ac_make}_set=no
41441fi
41442rm -f conftest.make
41443fi
41444if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
41445 echo "$as_me:$LINENO: result: yes" >&5
41446echo "${ECHO_T}yes" >&6
41447 SET_MAKE=
41448else
41449 echo "$as_me:$LINENO: result: no" >&5
41450echo "${ECHO_T}no" >&6
41451 SET_MAKE="MAKE=${MAKE-make}"
41452fi
41453
41454
a848cd7e 41455
ceec2216
RL
41456 ac_config_headers="$ac_config_headers lib/wx/include/${TOOLCHAIN_FULLNAME}/wx/setup.h:setup.h.in"
41457
a848cd7e 41458
ceec2216 41459 ac_config_files="$ac_config_files lib/wx/config/${TOOLCHAIN_FULLNAME}:wx-config.in"
a848cd7e 41460
a848cd7e 41461
ceec2216 41462 ac_config_files="$ac_config_files lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}:wx-config-inplace.in"
a848cd7e 41463
ceec2216
RL
41464
41465 ac_config_files="$ac_config_files version-script Makefile"
41466
41467
41468 ac_config_commands="$ac_config_commands wx-config
41469 "
a848cd7e
SC
41470
41471
9103d280
RL
41472
41473
a848cd7e
SC
41474if test "$wxUSE_GUI" = "yes"; then
41475 SUBDIRS="samples demos utils contrib"
41476else SUBDIRS="samples utils"
41477fi
41478
41479
41480
41481# Check whether --with-cppunit-prefix or --without-cppunit-prefix was given.
41482if test "${with_cppunit_prefix+set}" = set; then
41483 withval="$with_cppunit_prefix"
41484 cppunit_config_prefix="$withval"
41485else
41486 cppunit_config_prefix=""
41487fi;
41488
41489# Check whether --with-cppunit-exec-prefix or --without-cppunit-exec-prefix was given.
41490if test "${with_cppunit_exec_prefix+set}" = set; then
41491 withval="$with_cppunit_exec_prefix"
41492 cppunit_config_exec_prefix="$withval"
41493else
41494 cppunit_config_exec_prefix=""
41495fi;
41496
41497 if test x$cppunit_config_exec_prefix != x ; then
41498 cppunit_config_args="$cppunit_config_args --exec-prefix=$cppunit_config_exec_prefix"
41499 if test x${CPPUNIT_CONFIG+set} != xset ; then
41500 CPPUNIT_CONFIG=$cppunit_config_exec_prefix/bin/cppunit-config
41501 fi
41502 fi
41503 if test x$cppunit_config_prefix != x ; then
41504 cppunit_config_args="$cppunit_config_args --prefix=$cppunit_config_prefix"
41505 if test x${CPPUNIT_CONFIG+set} != xset ; then
41506 CPPUNIT_CONFIG=$cppunit_config_prefix/bin/cppunit-config
41507 fi
41508 fi
41509
41510 # Extract the first word of "cppunit-config", so it can be a program name with args.
41511set dummy cppunit-config; ac_word=$2
41512echo "$as_me:$LINENO: checking for $ac_word" >&5
41513echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
41514if test "${ac_cv_path_CPPUNIT_CONFIG+set}" = set; then
41515 echo $ECHO_N "(cached) $ECHO_C" >&6
41516else
41517 case $CPPUNIT_CONFIG in
41518 [\\/]* | ?:[\\/]*)
41519 ac_cv_path_CPPUNIT_CONFIG="$CPPUNIT_CONFIG" # Let the user override the test with a path.
41520 ;;
41521 *)
41522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
41523for as_dir in $PATH
41524do
41525 IFS=$as_save_IFS
41526 test -z "$as_dir" && as_dir=.
41527 for ac_exec_ext in '' $ac_executable_extensions; do
41528 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
41529 ac_cv_path_CPPUNIT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
41530 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
41531 break 2
41532 fi
41533done
41534done
41535
41536 test -z "$ac_cv_path_CPPUNIT_CONFIG" && ac_cv_path_CPPUNIT_CONFIG="no"
41537 ;;
41538esac
41539fi
41540CPPUNIT_CONFIG=$ac_cv_path_CPPUNIT_CONFIG
41541
41542if test -n "$CPPUNIT_CONFIG"; then
41543 echo "$as_me:$LINENO: result: $CPPUNIT_CONFIG" >&5
41544echo "${ECHO_T}$CPPUNIT_CONFIG" >&6
41545else
41546 echo "$as_me:$LINENO: result: no" >&5
41547echo "${ECHO_T}no" >&6
41548fi
41549
41550 cppunit_version_min=1.8.0
41551
41552 echo "$as_me:$LINENO: checking for Cppunit - version >= $cppunit_version_min" >&5
41553echo $ECHO_N "checking for Cppunit - version >= $cppunit_version_min... $ECHO_C" >&6
41554 no_cppunit=""
41555 if test "$CPPUNIT_CONFIG" = "no" ; then
41556 no_cppunit=yes
41557 else
41558 CPPUNIT_CFLAGS=`$CPPUNIT_CONFIG --cflags`
41559 CPPUNIT_LIBS=`$CPPUNIT_CONFIG --libs`
41560 cppunit_version=`$CPPUNIT_CONFIG --version`
41561
41562 cppunit_major_version=`echo $cppunit_version | \
41563 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
41564 cppunit_minor_version=`echo $cppunit_version | \
41565 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
41566 cppunit_micro_version=`echo $cppunit_version | \
41567 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
41568
41569 cppunit_major_min=`echo $cppunit_version_min | \
41570 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
41571 cppunit_minor_min=`echo $cppunit_version_min | \
41572 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
41573 cppunit_micro_min=`echo $cppunit_version_min | \
41574 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
41575
41576 cppunit_version_proper=`expr \
41577 $cppunit_major_version \> $cppunit_major_min \| \
41578 $cppunit_major_version \= $cppunit_major_min \& \
41579 $cppunit_minor_version \> $cppunit_minor_min \| \
41580 $cppunit_major_version \= $cppunit_major_min \& \
41581 $cppunit_minor_version \= $cppunit_minor_min \& \
41582 $cppunit_micro_version \>= $cppunit_micro_min `
41583
41584 if test "$cppunit_version_proper" = "1" ; then
41585 echo "$as_me:$LINENO: result: $cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&5
41586echo "${ECHO_T}$cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&6
41587 else
41588 echo "$as_me:$LINENO: result: no" >&5
41589echo "${ECHO_T}no" >&6
41590 no_cppunit=yes
41591 fi
41592 fi
41593
41594 if test "x$no_cppunit" = x ; then
c2218763 41595 SUBDIRS="$SUBDIRS tests"
a848cd7e
SC
41596 else
41597 CPPUNIT_CFLAGS=""
41598 CPPUNIT_LIBS=""
c2218763 41599 :
a848cd7e
SC
41600 fi
41601
41602
41603
41604
41605
41606for subdir in `echo $SUBDIRS`; do
41607 if test -d ${srcdir}/${subdir} ; then
41608 if test "$wxUSE_GUI" = "yes"; then
41609 if test ${subdir} = "samples"; then
41610 makefiles="samples/Makefile.in $makefiles"
41611 for sample in `echo $SAMPLES_SUBDIRS`; do
41612 if test -d $srcdir/samples/$sample; then
41613 makefiles="samples/$sample/Makefile.in $makefiles"
41614 fi
41615 done
41616 else makefiles=`(cd $srcdir ; find $subdir -name Makefile.in)`
41617 fi
41618 else if test ${subdir} = "samples"; then
41619 makefiles="samples/Makefile.in samples/console/Makefile.in"
41620 elif test ${subdir} = "utils"; then
6537ccf8
VS
41621 makefiles=""
41622 for util in HelpGen tex2rtf ; do
41623 if test -d $srcdir/utils/$util ; then
41624 makefiles="utils/$util/Makefile.in \
41625 utils/$util/src/Makefile.in \
41626 $makefiles"
41627 fi
41628 done
a848cd7e
SC
41629 else makefiles=`(cd $srcdir ; find $subdir -name Makefile.in)`
41630 fi
41631 fi
41632
41633 for mkin in $makefiles ; do
41634 mk=`echo $mkin | sed 's/Makefile\.in/Makefile/g'`
41635 ac_config_files="$ac_config_files $mk"
41636
41637 done
41638 fi
41639done
41640
41641
41642cat >confcache <<\_ACEOF
41643# This file is a shell script that caches the results of configure
41644# tests run on this system so they can be shared between configure
41645# scripts and configure runs, see configure's option --config-cache.
41646# It is not useful on other systems. If it contains results you don't
41647# want to keep, you may remove or edit it.
41648#
41649# config.status only pays attention to the cache file if you give it
41650# the --recheck option to rerun configure.
41651#
41652# `ac_cv_env_foo' variables (set or unset) will be overridden when
41653# loading this file, other *unset* `ac_cv_foo' will be assigned the
41654# following values.
41655
41656_ACEOF
41657
41658# The following way of writing the cache mishandles newlines in values,
41659# but we know of no workaround that is simple, portable, and efficient.
41660# So, don't put newlines in cache variables' values.
41661# Ultrix sh set writes to stderr and can't be redirected directly,
41662# and sets the high bit in the cache file unless we assign to the vars.
41663{
41664 (set) 2>&1 |
41665 case `(ac_space=' '; set | grep ac_space) 2>&1` in
41666 *ac_space=\ *)
41667 # `set' does not quote correctly, so add quotes (double-quote
41668 # substitution turns \\\\ into \\, and sed turns \\ into \).
41669 sed -n \
ac1cb8d3
VS
41670 "s/'/'\\\\''/g;
41671 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a848cd7e
SC
41672 ;;
41673 *)
41674 # `set' quotes correctly as required by POSIX, so do not add quotes.
41675 sed -n \
ac1cb8d3 41676 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
41677 ;;
41678 esac;
41679} |
41680 sed '
41681 t clear
41682 : clear
41683 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
41684 t end
41685 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
41686 : end' >>confcache
41687if diff $cache_file confcache >/dev/null 2>&1; then :; else
41688 if test -w $cache_file; then
41689 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
41690 cat confcache >$cache_file
41691 else
41692 echo "not updating unwritable cache $cache_file"
41693 fi
41694fi
41695rm -f confcache
41696
41697test "x$prefix" = xNONE && prefix=$ac_default_prefix
41698# Let make expand exec_prefix.
41699test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
41700
41701# VPATH may cause trouble with some makes, so we remove $(srcdir),
41702# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
41703# trailing colons and then remove the whole line if VPATH becomes empty
41704# (actually we leave an empty line to preserve line numbers).
41705if test "x$srcdir" = x.; then
ac1cb8d3 41706 ac_vpsub='/^[ ]*VPATH[ ]*=/{
a848cd7e
SC
41707s/:*\$(srcdir):*/:/;
41708s/:*\${srcdir}:*/:/;
41709s/:*@srcdir@:*/:/;
ac1cb8d3 41710s/^\([^=]*=[ ]*\):*/\1/;
a848cd7e 41711s/:*$//;
ac1cb8d3 41712s/^[^=]*=[ ]*$//;
a848cd7e
SC
41713}'
41714fi
41715
41716DEFS=-DHAVE_CONFIG_H
41717
41718ac_libobjs=
41719ac_ltlibobjs=
41720for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
41721 # 1. Remove the extension, and $U if already installed.
41722 ac_i=`echo "$ac_i" |
ac1cb8d3 41723 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
a848cd7e
SC
41724 # 2. Add them.
41725 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
41726 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
41727done
41728LIBOBJS=$ac_libobjs
41729
41730LTLIBOBJS=$ac_ltlibobjs
41731
41732
41733
41734: ${CONFIG_STATUS=./config.status}
41735ac_clean_files_save=$ac_clean_files
41736ac_clean_files="$ac_clean_files $CONFIG_STATUS"
41737{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
41738echo "$as_me: creating $CONFIG_STATUS" >&6;}
41739cat >$CONFIG_STATUS <<_ACEOF
41740#! $SHELL
41741# Generated by $as_me.
41742# Run this file to recreate the current configuration.
41743# Compiler output produced by configure, useful for debugging
41744# configure, is in config.log if it exists.
41745
41746debug=false
41747ac_cs_recheck=false
41748ac_cs_silent=false
41749SHELL=\${CONFIG_SHELL-$SHELL}
41750_ACEOF
41751
41752cat >>$CONFIG_STATUS <<\_ACEOF
41753## --------------------- ##
41754## M4sh Initialization. ##
41755## --------------------- ##
41756
41757# Be Bourne compatible
41758if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
41759 emulate sh
41760 NULLCMD=:
41761 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
41762 # is contrary to our usage. Disable this feature.
41763 alias -g '${1+"$@"}'='"$@"'
41764elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
41765 set -o posix
41766fi
ac1cb8d3 41767DUALCASE=1; export DUALCASE # for MKS sh
a848cd7e
SC
41768
41769# Support unset when possible.
ac1cb8d3 41770if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
a848cd7e
SC
41771 as_unset=unset
41772else
41773 as_unset=false
41774fi
41775
41776
41777# Work around bugs in pre-3.0 UWIN ksh.
41778$as_unset ENV MAIL MAILPATH
41779PS1='$ '
41780PS2='> '
41781PS4='+ '
41782
41783# NLS nuisances.
41784for as_var in \
41785 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41786 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
41787 LC_TELEPHONE LC_TIME
41788do
ac1cb8d3 41789 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
a848cd7e
SC
41790 eval $as_var=C; export $as_var
41791 else
41792 $as_unset $as_var
41793 fi
41794done
41795
41796# Required to use basename.
41797if expr a : '\(a\)' >/dev/null 2>&1; then
41798 as_expr=expr
41799else
41800 as_expr=false
41801fi
41802
41803if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
41804 as_basename=basename
41805else
41806 as_basename=false
41807fi
41808
41809
41810# Name of the executable.
41811as_me=`$as_basename "$0" ||
41812$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
41813 X"$0" : 'X\(//\)$' \| \
41814 X"$0" : 'X\(/\)$' \| \
41815 . : '\(.\)' 2>/dev/null ||
41816echo X/"$0" |
41817 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
41818 /^X\/\(\/\/\)$/{ s//\1/; q; }
41819 /^X\/\(\/\).*/{ s//\1/; q; }
41820 s/.*/./; q'`
41821
41822
41823# PATH needs CR, and LINENO needs CR and PATH.
41824# Avoid depending upon Character Ranges.
41825as_cr_letters='abcdefghijklmnopqrstuvwxyz'
41826as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
41827as_cr_Letters=$as_cr_letters$as_cr_LETTERS
41828as_cr_digits='0123456789'
41829as_cr_alnum=$as_cr_Letters$as_cr_digits
41830
41831# The user is always right.
41832if test "${PATH_SEPARATOR+set}" != set; then
41833 echo "#! /bin/sh" >conf$$.sh
41834 echo "exit 0" >>conf$$.sh
41835 chmod +x conf$$.sh
41836 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
41837 PATH_SEPARATOR=';'
41838 else
41839 PATH_SEPARATOR=:
41840 fi
41841 rm -f conf$$.sh
41842fi
41843
41844
41845 as_lineno_1=$LINENO
41846 as_lineno_2=$LINENO
41847 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
41848 test "x$as_lineno_1" != "x$as_lineno_2" &&
41849 test "x$as_lineno_3" = "x$as_lineno_2" || {
41850 # Find who we are. Look in the path if we contain no path at all
41851 # relative or not.
41852 case $0 in
41853 *[\\/]* ) as_myself=$0 ;;
41854 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
41855for as_dir in $PATH
41856do
41857 IFS=$as_save_IFS
41858 test -z "$as_dir" && as_dir=.
41859 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
41860done
41861
41862 ;;
41863 esac
41864 # We did not find ourselves, most probably we were run as `sh COMMAND'
41865 # in which case we are not to be found in the path.
41866 if test "x$as_myself" = x; then
41867 as_myself=$0
41868 fi
41869 if test ! -f "$as_myself"; then
41870 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
41871echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
41872 { (exit 1); exit 1; }; }
41873 fi
41874 case $CONFIG_SHELL in
41875 '')
41876 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
41877for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
41878do
41879 IFS=$as_save_IFS
41880 test -z "$as_dir" && as_dir=.
41881 for as_base in sh bash ksh sh5; do
41882 case $as_dir in
41883 /*)
41884 if ("$as_dir/$as_base" -c '
41885 as_lineno_1=$LINENO
41886 as_lineno_2=$LINENO
41887 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
41888 test "x$as_lineno_1" != "x$as_lineno_2" &&
41889 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
41890 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
41891 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
41892 CONFIG_SHELL=$as_dir/$as_base
41893 export CONFIG_SHELL
41894 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
41895 fi;;
41896 esac
41897 done
41898done
41899;;
41900 esac
41901
41902 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
41903 # uniformly replaced by the line number. The first 'sed' inserts a
41904 # line-number line before each line; the second 'sed' does the real
41905 # work. The second script uses 'N' to pair each line-number line
41906 # with the numbered line, and appends trailing '-' during
41907 # substitution so that $LINENO is not a special case at line end.
41908 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
41909 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
41910 sed '=' <$as_myself |
41911 sed '
41912 N
41913 s,$,-,
41914 : loop
41915 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
41916 t loop
41917 s,-$,,
41918 s,^['$as_cr_digits']*\n,,
41919 ' >$as_me.lineno &&
41920 chmod +x $as_me.lineno ||
41921 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
41922echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
41923 { (exit 1); exit 1; }; }
41924
41925 # Don't try to exec as it changes $[0], causing all sort of problems
41926 # (the dirname of $[0] is not the place where we might find the
41927 # original and so on. Autoconf is especially sensible to this).
41928 . ./$as_me.lineno
41929 # Exit status is that of the last command.
41930 exit
41931}
41932
41933
41934case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
41935 *c*,-n*) ECHO_N= ECHO_C='
41936' ECHO_T=' ' ;;
41937 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
41938 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
41939esac
41940
41941if expr a : '\(a\)' >/dev/null 2>&1; then
41942 as_expr=expr
41943else
41944 as_expr=false
41945fi
41946
41947rm -f conf$$ conf$$.exe conf$$.file
41948echo >conf$$.file
41949if ln -s conf$$.file conf$$ 2>/dev/null; then
41950 # We could just check for DJGPP; but this test a) works b) is more generic
41951 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
41952 if test -f conf$$.exe; then
41953 # Don't use ln at all; we don't have any links
41954 as_ln_s='cp -p'
41955 else
41956 as_ln_s='ln -s'
41957 fi
41958elif ln conf$$.file conf$$ 2>/dev/null; then
41959 as_ln_s=ln
41960else
41961 as_ln_s='cp -p'
41962fi
41963rm -f conf$$ conf$$.exe conf$$.file
41964
41965if mkdir -p . 2>/dev/null; then
41966 as_mkdir_p=:
41967else
ac1cb8d3 41968 test -d ./-p && rmdir ./-p
a848cd7e
SC
41969 as_mkdir_p=false
41970fi
41971
41972as_executable_p="test -f"
41973
41974# Sed expression to map a string onto a valid CPP name.
ac1cb8d3 41975as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
a848cd7e
SC
41976
41977# Sed expression to map a string onto a valid variable name.
ac1cb8d3 41978as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
a848cd7e
SC
41979
41980
41981# IFS
41982# We need space, tab and new line, in precisely that order.
41983as_nl='
41984'
41985IFS=" $as_nl"
41986
41987# CDPATH.
41988$as_unset CDPATH
41989
41990exec 6>&1
41991
41992# Open the log real soon, to keep \$[0] and so on meaningful, and to
41993# report actual input values of CONFIG_FILES etc. instead of their
41994# values after options handling. Logging --version etc. is OK.
41995exec 5>>config.log
41996{
41997 echo
41998 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
41999## Running $as_me. ##
42000_ASBOX
42001} >&5
42002cat >&5 <<_CSEOF
42003
7714864e 42004This file was extended by wxWidgets $as_me 2.5.3, which was
ac1cb8d3 42005generated by GNU Autoconf 2.59. Invocation command line was
a848cd7e
SC
42006
42007 CONFIG_FILES = $CONFIG_FILES
42008 CONFIG_HEADERS = $CONFIG_HEADERS
42009 CONFIG_LINKS = $CONFIG_LINKS
42010 CONFIG_COMMANDS = $CONFIG_COMMANDS
42011 $ $0 $@
42012
42013_CSEOF
42014echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
42015echo >&5
42016_ACEOF
42017
42018# Files that config.status was made for.
42019if test -n "$ac_config_files"; then
42020 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
42021fi
42022
42023if test -n "$ac_config_headers"; then
42024 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
42025fi
42026
42027if test -n "$ac_config_links"; then
42028 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
42029fi
42030
42031if test -n "$ac_config_commands"; then
42032 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
42033fi
42034
42035cat >>$CONFIG_STATUS <<\_ACEOF
42036
42037ac_cs_usage="\
42038\`$as_me' instantiates files from templates according to the
42039current configuration.
42040
42041Usage: $0 [OPTIONS] [FILE]...
42042
42043 -h, --help print this help, then exit
42044 -V, --version print version number, then exit
42045 -q, --quiet do not print progress messages
42046 -d, --debug don't remove temporary files
42047 --recheck update $as_me by reconfiguring in the same conditions
42048 --file=FILE[:TEMPLATE]
ac1cb8d3 42049 instantiate the configuration file FILE
a848cd7e 42050 --header=FILE[:TEMPLATE]
ac1cb8d3 42051 instantiate the configuration header FILE
a848cd7e
SC
42052
42053Configuration files:
42054$config_files
42055
42056Configuration headers:
42057$config_headers
42058
42059Configuration commands:
42060$config_commands
42061
42062Report bugs to <bug-autoconf@gnu.org>."
42063_ACEOF
42064
42065cat >>$CONFIG_STATUS <<_ACEOF
42066ac_cs_version="\\
7714864e 42067wxWidgets config.status 2.5.3
ac1cb8d3 42068configured by $0, generated by GNU Autoconf 2.59,
a848cd7e
SC
42069 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
42070
ac1cb8d3 42071Copyright (C) 2003 Free Software Foundation, Inc.
a848cd7e
SC
42072This config.status script is free software; the Free Software Foundation
42073gives unlimited permission to copy, distribute and modify it."
42074srcdir=$srcdir
42075INSTALL="$INSTALL"
42076_ACEOF
42077
42078cat >>$CONFIG_STATUS <<\_ACEOF
42079# If no file are specified by the user, then we need to provide default
42080# value. By we need to know if files were specified by the user.
42081ac_need_defaults=:
42082while test $# != 0
42083do
42084 case $1 in
42085 --*=*)
42086 ac_option=`expr "x$1" : 'x\([^=]*\)='`
42087 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
42088 ac_shift=:
42089 ;;
42090 -*)
42091 ac_option=$1
42092 ac_optarg=$2
42093 ac_shift=shift
42094 ;;
42095 *) # This is not an option, so the user has probably given explicit
42096 # arguments.
42097 ac_option=$1
42098 ac_need_defaults=false;;
42099 esac
42100
42101 case $ac_option in
42102 # Handling of the options.
42103_ACEOF
42104cat >>$CONFIG_STATUS <<\_ACEOF
42105 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
42106 ac_cs_recheck=: ;;
42107 --version | --vers* | -V )
42108 echo "$ac_cs_version"; exit 0 ;;
42109 --he | --h)
42110 # Conflict between --help and --header
42111 { { echo "$as_me:$LINENO: error: ambiguous option: $1
42112Try \`$0 --help' for more information." >&5
42113echo "$as_me: error: ambiguous option: $1
42114Try \`$0 --help' for more information." >&2;}
42115 { (exit 1); exit 1; }; };;
42116 --help | --hel | -h )
42117 echo "$ac_cs_usage"; exit 0 ;;
42118 --debug | --d* | -d )
42119 debug=: ;;
42120 --file | --fil | --fi | --f )
42121 $ac_shift
42122 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
42123 ac_need_defaults=false;;
42124 --header | --heade | --head | --hea )
42125 $ac_shift
42126 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
42127 ac_need_defaults=false;;
42128 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
42129 | -silent | --silent | --silen | --sile | --sil | --si | --s)
42130 ac_cs_silent=: ;;
42131
42132 # This is an error.
42133 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
42134Try \`$0 --help' for more information." >&5
42135echo "$as_me: error: unrecognized option: $1
42136Try \`$0 --help' for more information." >&2;}
42137 { (exit 1); exit 1; }; } ;;
42138
42139 *) ac_config_targets="$ac_config_targets $1" ;;
42140
42141 esac
42142 shift
42143done
42144
42145ac_configure_extra_args=
42146
42147if $ac_cs_silent; then
42148 exec 6>/dev/null
42149 ac_configure_extra_args="$ac_configure_extra_args --silent"
42150fi
42151
42152_ACEOF
42153cat >>$CONFIG_STATUS <<_ACEOF
42154if \$ac_cs_recheck; then
42155 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
42156 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
42157fi
42158
42159_ACEOF
42160
42161cat >>$CONFIG_STATUS <<_ACEOF
42162#
42163# INIT-COMMANDS section.
42164#
42165
ceec2216
RL
42166 TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
42167 TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
42168 TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
42169 LN_S="${LN_S}"
a848cd7e
SC
42170
42171
42172_ACEOF
42173
42174
42175
42176cat >>$CONFIG_STATUS <<\_ACEOF
42177for ac_config_target in $ac_config_targets
42178do
42179 case "$ac_config_target" in
42180 # Handling of arguments.
ceec2216
RL
42181 "lib/wx/config/${TOOLCHAIN_FULLNAME}" ) CONFIG_FILES="$CONFIG_FILES lib/wx/config/${TOOLCHAIN_FULLNAME}:wx-config.in" ;;
42182 "lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}" ) CONFIG_FILES="$CONFIG_FILES lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}:wx-config-inplace.in" ;;
a848cd7e
SC
42183 "version-script" ) CONFIG_FILES="$CONFIG_FILES version-script" ;;
42184 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
42185 "$mk" ) CONFIG_FILES="$CONFIG_FILES $mk" ;;
ceec2216
RL
42186 "wx-config" ) CONFIG_COMMANDS="$CONFIG_COMMANDS wx-config" ;;
42187 "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
42188 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
42189echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
42190 { (exit 1); exit 1; }; };;
42191 esac
42192done
42193
42194# If the user did not use the arguments to specify the items to instantiate,
42195# then the envvar interface is used. Set only those that are not.
42196# We use the long form for the default assignment because of an extremely
42197# bizarre bug on SunOS 4.1.3.
42198if $ac_need_defaults; then
42199 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
42200 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
42201 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
42202fi
42203
42204# Have a temporary directory for convenience. Make it in the build tree
42205# simply because there is no reason to put it here, and in addition,
42206# creating and moving files from /tmp can sometimes cause problems.
42207# Create a temporary directory, and hook for its removal unless debugging.
42208$debug ||
42209{
42210 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
42211 trap '{ (exit 1); exit 1; }' 1 2 13 15
42212}
42213
42214# Create a (secure) tmp directory for tmp files.
42215
42216{
42217 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
42218 test -n "$tmp" && test -d "$tmp"
42219} ||
42220{
42221 tmp=./confstat$$-$RANDOM
42222 (umask 077 && mkdir $tmp)
42223} ||
42224{
42225 echo "$me: cannot create a temporary directory in ." >&2
42226 { (exit 1); exit 1; }
42227}
42228
42229_ACEOF
42230
42231cat >>$CONFIG_STATUS <<_ACEOF
42232
42233#
42234# CONFIG_FILES section.
42235#
42236
42237# No need to generate the scripts if there are no CONFIG_FILES.
42238# This happens for instance when ./config.status config.h
42239if test -n "\$CONFIG_FILES"; then
42240 # Protect against being on the right side of a sed subst in config.status.
42241 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
42242 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
42243s,@SHELL@,$SHELL,;t t
42244s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
42245s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
42246s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
42247s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
42248s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
42249s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
42250s,@exec_prefix@,$exec_prefix,;t t
42251s,@prefix@,$prefix,;t t
42252s,@program_transform_name@,$program_transform_name,;t t
42253s,@bindir@,$bindir,;t t
42254s,@sbindir@,$sbindir,;t t
42255s,@libexecdir@,$libexecdir,;t t
42256s,@datadir@,$datadir,;t t
42257s,@sysconfdir@,$sysconfdir,;t t
42258s,@sharedstatedir@,$sharedstatedir,;t t
42259s,@localstatedir@,$localstatedir,;t t
42260s,@libdir@,$libdir,;t t
42261s,@includedir@,$includedir,;t t
42262s,@oldincludedir@,$oldincludedir,;t t
42263s,@infodir@,$infodir,;t t
42264s,@mandir@,$mandir,;t t
42265s,@build_alias@,$build_alias,;t t
42266s,@host_alias@,$host_alias,;t t
42267s,@target_alias@,$target_alias,;t t
42268s,@DEFS@,$DEFS,;t t
42269s,@ECHO_C@,$ECHO_C,;t t
42270s,@ECHO_N@,$ECHO_N,;t t
42271s,@ECHO_T@,$ECHO_T,;t t
42272s,@LIBS@,$LIBS,;t t
42273s,@build@,$build,;t t
42274s,@build_cpu@,$build_cpu,;t t
42275s,@build_vendor@,$build_vendor,;t t
42276s,@build_os@,$build_os,;t t
42277s,@host@,$host,;t t
42278s,@host_cpu@,$host_cpu,;t t
42279s,@host_vendor@,$host_vendor,;t t
42280s,@host_os@,$host_os,;t t
42281s,@target@,$target,;t t
42282s,@target_cpu@,$target_cpu,;t t
42283s,@target_vendor@,$target_vendor,;t t
42284s,@target_os@,$target_os,;t t
42285s,@CC@,$CC,;t t
42286s,@CFLAGS@,$CFLAGS,;t t
42287s,@LDFLAGS@,$LDFLAGS,;t t
42288s,@CPPFLAGS@,$CPPFLAGS,;t t
42289s,@ac_ct_CC@,$ac_ct_CC,;t t
42290s,@EXEEXT@,$EXEEXT,;t t
42291s,@OBJEXT@,$OBJEXT,;t t
42292s,@CPP@,$CPP,;t t
42293s,@EGREP@,$EGREP,;t t
42294s,@CXX@,$CXX,;t t
42295s,@CXXFLAGS@,$CXXFLAGS,;t t
42296s,@ac_ct_CXX@,$ac_ct_CXX,;t t
42297s,@RANLIB@,$RANLIB,;t t
42298s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
42299s,@AR@,$AR,;t t
42300s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
42301s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
42302s,@INSTALL_DATA@,$INSTALL_DATA,;t t
42303s,@STRIP@,$STRIP,;t t
42304s,@IF_GNU_MAKE@,$IF_GNU_MAKE,;t t
42305s,@LN_S@,$LN_S,;t t
42306s,@CXXCPP@,$CXXCPP,;t t
42307s,@subdirs@,$subdirs,;t t
42308s,@PKG_CONFIG@,$PKG_CONFIG,;t t
42309s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
42310s,@GTK_LIBS@,$GTK_LIBS,;t t
42311s,@GTK_CONFIG@,$GTK_CONFIG,;t t
a848cd7e
SC
42312s,@X_CFLAGS@,$X_CFLAGS,;t t
42313s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
42314s,@X_LIBS@,$X_LIBS,;t t
42315s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
42316s,@PANGOX_CFLAGS@,$PANGOX_CFLAGS,;t t
42317s,@PANGOX_LIBS@,$PANGOX_LIBS,;t t
d1c38808
VZ
42318s,@PANGOFT2_CFLAGS@,$PANGOFT2_CFLAGS,;t t
42319s,@PANGOFT2_LIBS@,$PANGOFT2_LIBS,;t t
a848cd7e
SC
42320s,@PANGOXFT_CFLAGS@,$PANGOXFT_CFLAGS,;t t
42321s,@PANGOXFT_LIBS@,$PANGOXFT_LIBS,;t t
42322s,@RESCOMP@,$RESCOMP,;t t
42323s,@DEREZ@,$DEREZ,;t t
42324s,@SETFILE@,$SETFILE,;t t
42325s,@LIBICONV@,$LIBICONV,;t t
42326s,@EXTRALIBS_ESD@,$EXTRALIBS_ESD,;t t
42327s,@SDL_CONFIG@,$SDL_CONFIG,;t t
42328s,@SDL_CFLAGS@,$SDL_CFLAGS,;t t
42329s,@SDL_LIBS@,$SDL_LIBS,;t t
d1c38808
VZ
42330s,@LIBGNOMEPRINTUI_CFLAGS@,$LIBGNOMEPRINTUI_CFLAGS,;t t
42331s,@LIBGNOMEPRINTUI_LIBS@,$LIBGNOMEPRINTUI_LIBS,;t t
a848cd7e
SC
42332s,@CORE_BASE_LIBS@,$CORE_BASE_LIBS,;t t
42333s,@CORE_GUI_LIBS@,$CORE_GUI_LIBS,;t t
42334s,@wxUSE_ZLIB@,$wxUSE_ZLIB,;t t
42335s,@wxUSE_REGEX@,$wxUSE_REGEX,;t t
42336s,@wxUSE_EXPAT@,$wxUSE_EXPAT,;t t
42337s,@wxUSE_ODBC@,$wxUSE_ODBC,;t t
42338s,@wxUSE_LIBJPEG@,$wxUSE_LIBJPEG,;t t
42339s,@wxUSE_LIBPNG@,$wxUSE_LIBPNG,;t t
42340s,@wxUSE_LIBTIFF@,$wxUSE_LIBTIFF,;t t
42341s,@VENDOR@,$VENDOR,;t t
42342s,@OFFICIAL_BUILD@,$OFFICIAL_BUILD,;t t
ceec2216
RL
42343s,@WX_FLAVOUR@,$WX_FLAVOUR,;t t
42344s,@WX_LIB_FLAVOUR@,$WX_LIB_FLAVOUR,;t t
a848cd7e
SC
42345s,@WXUNIV@,$WXUNIV,;t t
42346s,@MONOLITHIC@,$MONOLITHIC,;t t
42347s,@USE_PLUGINS@,$USE_PLUGINS,;t t
42348s,@EXTRALIBS@,$EXTRALIBS,;t t
42349s,@EXTRALIBS_XML@,$EXTRALIBS_XML,;t t
42350s,@EXTRALIBS_HTML@,$EXTRALIBS_HTML,;t t
42351s,@EXTRALIBS_ODBC@,$EXTRALIBS_ODBC,;t t
42352s,@EXTRALIBS_GUI@,$EXTRALIBS_GUI,;t t
42353s,@EXTRALIBS_OPENGL@,$EXTRALIBS_OPENGL,;t t
42354s,@EXTRALIBS_SDL@,$EXTRALIBS_SDL,;t t
42355s,@WITH_PLUGIN_SDL@,$WITH_PLUGIN_SDL,;t t
d1c38808 42356s,@EXTRALIBS_GNOMEPRINT@,$EXTRALIBS_GNOMEPRINT,;t t
a848cd7e
SC
42357s,@UNICODE@,$UNICODE,;t t
42358s,@BUILD@,$BUILD,;t t
42359s,@DEBUG_INFO@,$DEBUG_INFO,;t t
42360s,@DEBUG_FLAG@,$DEBUG_FLAG,;t t
a848cd7e
SC
42361s,@TOOLKIT_LOWERCASE@,$TOOLKIT_LOWERCASE,;t t
42362s,@TOOLKIT_VERSION@,$TOOLKIT_VERSION,;t t
42363s,@SAMPLES_RPATH_FLAG@,$SAMPLES_RPATH_FLAG,;t t
42364s,@SAMPLES_RPATH_POSTLINK@,$SAMPLES_RPATH_POSTLINK,;t t
42365s,@HOST_SUFFIX@,$HOST_SUFFIX,;t t
42366s,@CPPUNIT_CFLAGS@,$CPPUNIT_CFLAGS,;t t
42367s,@CPPUNIT_LIBS@,$CPPUNIT_LIBS,;t t
42368s,@SET_MAKE@,$SET_MAKE,;t t
42369s,@MAKE_SET@,$MAKE_SET,;t t
42370s,@ac_ct_AR@,$ac_ct_AR,;t t
42371s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
42372s,@NM@,$NM,;t t
42373s,@ac_ct_NM@,$ac_ct_NM,;t t
42374s,@INSTALL_DIR@,$INSTALL_DIR,;t t
42375s,@LDFLAGS_GUI@,$LDFLAGS_GUI,;t t
42376s,@PLATFORM_UNIX@,$PLATFORM_UNIX,;t t
42377s,@PLATFORM_WIN32@,$PLATFORM_WIN32,;t t
42378s,@PLATFORM_MSDOS@,$PLATFORM_MSDOS,;t t
42379s,@PLATFORM_MAC@,$PLATFORM_MAC,;t t
42380s,@PLATFORM_MACOSX@,$PLATFORM_MACOSX,;t t
42381s,@PLATFORM_OS2@,$PLATFORM_OS2,;t t
42382s,@SO_SUFFIX@,$SO_SUFFIX,;t t
42383s,@SO_SUFFIX_MODULE@,$SO_SUFFIX_MODULE,;t t
42384s,@DLLIMP_SUFFIX@,$DLLIMP_SUFFIX,;t t
42385s,@LIBPREFIX@,$LIBPREFIX,;t t
42386s,@LIBEXT@,$LIBEXT,;t t
42387s,@DLLPREFIX@,$DLLPREFIX,;t t
42388s,@DLLPREFIX_MODULE@,$DLLPREFIX_MODULE,;t t
42389s,@AIX_CXX_LD@,$AIX_CXX_LD,;t t
42390s,@SHARED_LD_CC@,$SHARED_LD_CC,;t t
42391s,@SHARED_LD_CXX@,$SHARED_LD_CXX,;t t
42392s,@SHARED_LD_MODULE_CC@,$SHARED_LD_MODULE_CC,;t t
42393s,@SHARED_LD_MODULE_CXX@,$SHARED_LD_MODULE_CXX,;t t
42394s,@PIC_FLAG@,$PIC_FLAG,;t t
42395s,@USE_SOVERSION@,$USE_SOVERSION,;t t
42396s,@USE_SOVERLINUX@,$USE_SOVERLINUX,;t t
42397s,@USE_SOVERSOLARIS@,$USE_SOVERSOLARIS,;t t
42398s,@USE_MACVERSION@,$USE_MACVERSION,;t t
42399s,@USE_SOSYMLINKS@,$USE_SOSYMLINKS,;t t
42400s,@SONAME_FLAG@,$SONAME_FLAG,;t t
42401s,@DEPS_TRACKING@,$DEPS_TRACKING,;t t
42402s,@GCC_PCH@,$GCC_PCH,;t t
42403s,@COND_BUILD_DEBUG@,$COND_BUILD_DEBUG,;t t
42404s,@COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT@,$COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT,;t t
42405s,@COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT@,$COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT,;t t
42406s,@COND_BUILD_DEBUG_UNICODE_0@,$COND_BUILD_DEBUG_UNICODE_0,;t t
42407s,@COND_BUILD_DEBUG_UNICODE_1@,$COND_BUILD_DEBUG_UNICODE_1,;t t
42408s,@COND_BUILD_RELEASE@,$COND_BUILD_RELEASE,;t t
42409s,@COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT@,$COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT,;t t
42410s,@COND_BUILD_RELEASE_UNICODE_0@,$COND_BUILD_RELEASE_UNICODE_0,;t t
42411s,@COND_BUILD_RELEASE_UNICODE_1@,$COND_BUILD_RELEASE_UNICODE_1,;t t
42412s,@COND_DEBUG_FLAG_1@,$COND_DEBUG_FLAG_1,;t t
42413s,@COND_DEBUG_INFO_0@,$COND_DEBUG_INFO_0,;t t
42414s,@COND_DEBUG_INFO_1@,$COND_DEBUG_INFO_1,;t t
42415s,@COND_DEPS_TRACKING_0@,$COND_DEPS_TRACKING_0,;t t
42416s,@COND_DEPS_TRACKING_1@,$COND_DEPS_TRACKING_1,;t t
42417s,@COND_GCC_PCH_1@,$COND_GCC_PCH_1,;t t
42418s,@COND_MONOLITHIC_0@,$COND_MONOLITHIC_0,;t t
42419s,@COND_MONOLITHIC_0_SHARED_0@,$COND_MONOLITHIC_0_SHARED_0,;t t
42420s,@COND_MONOLITHIC_0_SHARED_0_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1,;t t
42421s,@COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1,;t t
42422s,@COND_MONOLITHIC_0_SHARED_0_USE_HTML_1@,$COND_MONOLITHIC_0_SHARED_0_USE_HTML_1,;t t
42423s,@COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1,;t t
ceec2216 42424s,@COND_MONOLITHIC_0_SHARED_0_USE_XRC_1@,$COND_MONOLITHIC_0_SHARED_0_USE_XRC_1,;t t
a848cd7e
SC
42425s,@COND_MONOLITHIC_0_SHARED_1@,$COND_MONOLITHIC_0_SHARED_1,;t t
42426s,@COND_MONOLITHIC_0_SHARED_1_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1,;t t
42427s,@COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1,;t t
42428s,@COND_MONOLITHIC_0_SHARED_1_USE_HTML_1@,$COND_MONOLITHIC_0_SHARED_1_USE_HTML_1,;t t
42429s,@COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1,;t t
ceec2216 42430s,@COND_MONOLITHIC_0_SHARED_1_USE_XRC_1@,$COND_MONOLITHIC_0_SHARED_1_USE_XRC_1,;t t
a848cd7e
SC
42431s,@COND_MONOLITHIC_0_USE_ODBC_1@,$COND_MONOLITHIC_0_USE_ODBC_1,;t t
42432s,@COND_MONOLITHIC_1@,$COND_MONOLITHIC_1,;t t
42433s,@COND_MONOLITHIC_1_SHARED_0@,$COND_MONOLITHIC_1_SHARED_0,;t t
42434s,@COND_MONOLITHIC_1_SHARED_1@,$COND_MONOLITHIC_1_SHARED_1,;t t
42435s,@COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1,;t t
42436s,@COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1,;t t
42437s,@COND_PLATFORM_MACOSX_0_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_0_USE_SOVERSION_1,;t t
42438s,@COND_PLATFORM_MACOSX_1@,$COND_PLATFORM_MACOSX_1,;t t
a30f955f 42439s,@COND_PLATFORM_MACOSX_1_TOOLKIT_@,$COND_PLATFORM_MACOSX_1_TOOLKIT_,;t t
a848cd7e
SC
42440s,@COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA@,$COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA,;t t
42441s,@COND_PLATFORM_MACOSX_1_TOOLKIT_GTK@,$COND_PLATFORM_MACOSX_1_TOOLKIT_GTK,;t t
42442s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MAC@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MAC,;t t
ebee3cd0
VS
42443s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF,;t t
42444s,@COND_PLATFORM_MACOSX_1_TOOLKIT_X11@,$COND_PLATFORM_MACOSX_1_TOOLKIT_X11,;t t
a848cd7e
SC
42445s,@COND_PLATFORM_MACOSX_1_USE_GUI_1@,$COND_PLATFORM_MACOSX_1_USE_GUI_1,;t t
42446s,@COND_PLATFORM_MACOSX_1_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_1_USE_SOVERSION_1,;t t
b48a2016 42447s,@COND_PLATFORM_MACOS_1@,$COND_PLATFORM_MACOS_1,;t t
a848cd7e
SC
42448s,@COND_PLATFORM_MAC_1@,$COND_PLATFORM_MAC_1,;t t
42449s,@COND_PLATFORM_OS2_1@,$COND_PLATFORM_OS2_1,;t t
42450s,@COND_PLATFORM_UNIX_0@,$COND_PLATFORM_UNIX_0,;t t
42451s,@COND_PLATFORM_UNIX_1@,$COND_PLATFORM_UNIX_1,;t t
42452s,@COND_PLATFORM_UNIX_1_USE_GUI_1@,$COND_PLATFORM_UNIX_1_USE_GUI_1,;t t
42453s,@COND_PLATFORM_UNIX_1_USE_PLUGINS_0@,$COND_PLATFORM_UNIX_1_USE_PLUGINS_0,;t t
42454s,@COND_PLATFORM_WIN32_0@,$COND_PLATFORM_WIN32_0,;t t
42455s,@COND_PLATFORM_WIN32_1@,$COND_PLATFORM_WIN32_1,;t t
42456s,@COND_SHARED_0@,$COND_SHARED_0,;t t
ceec2216
RL
42457s,@COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0,;t t
42458s,@COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0,;t t
42459s,@COND_SHARED_0_TOOLKIT_PM_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_PM_WXUNIV_0,;t t
a848cd7e
SC
42460s,@COND_SHARED_0_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_0_USE_GUI_1_USE_OPENGL_1,;t t
42461s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN,;t t
42462s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN,;t t
42463s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN,;t t
42464s,@COND_SHARED_0_WXUSE_EXPAT_BUILTIN@,$COND_SHARED_0_WXUSE_EXPAT_BUILTIN,;t t
42465s,@COND_SHARED_0_WXUSE_ODBC_BUILTIN@,$COND_SHARED_0_WXUSE_ODBC_BUILTIN,;t t
42466s,@COND_SHARED_0_WXUSE_REGEX_BUILTIN@,$COND_SHARED_0_WXUSE_REGEX_BUILTIN,;t t
42467s,@COND_SHARED_0_WXUSE_ZLIB_BUILTIN@,$COND_SHARED_0_WXUSE_ZLIB_BUILTIN,;t t
42468s,@COND_SHARED_1@,$COND_SHARED_1,;t t
42469s,@COND_SHARED_1_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_1_USE_GUI_1_USE_OPENGL_1,;t t
a30f955f 42470s,@COND_TOOLKIT_@,$COND_TOOLKIT_,;t t
a848cd7e 42471s,@COND_TOOLKIT_COCOA@,$COND_TOOLKIT_COCOA,;t t
a49baeab 42472s,@COND_TOOLKIT_COCOA_USE_GUI_1@,$COND_TOOLKIT_COCOA_USE_GUI_1,;t t
a848cd7e
SC
42473s,@COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0,;t t
42474s,@COND_TOOLKIT_GTK@,$COND_TOOLKIT_GTK,;t t
42475s,@COND_TOOLKIT_GTK_USE_GUI_1@,$COND_TOOLKIT_GTK_USE_GUI_1,;t t
42476s,@COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0,;t t
42477s,@COND_TOOLKIT_MAC@,$COND_TOOLKIT_MAC,;t t
42478s,@COND_TOOLKIT_MAC_USE_GUI_1@,$COND_TOOLKIT_MAC_USE_GUI_1,;t t
42479s,@COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0,;t t
42480s,@COND_TOOLKIT_MGL@,$COND_TOOLKIT_MGL,;t t
42481s,@COND_TOOLKIT_MGL_USE_GUI_1@,$COND_TOOLKIT_MGL_USE_GUI_1,;t t
42482s,@COND_TOOLKIT_MOTIF@,$COND_TOOLKIT_MOTIF,;t t
42483s,@COND_TOOLKIT_MOTIF_USE_GUI_1@,$COND_TOOLKIT_MOTIF_USE_GUI_1,;t t
42484s,@COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0,;t t
42485s,@COND_TOOLKIT_MSW@,$COND_TOOLKIT_MSW,;t t
42486s,@COND_TOOLKIT_MSW_USE_GUI_1@,$COND_TOOLKIT_MSW_USE_GUI_1,;t t
42487s,@COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0,;t t
42488s,@COND_TOOLKIT_PM@,$COND_TOOLKIT_PM,;t t
42489s,@COND_TOOLKIT_PM_USE_GUI_1@,$COND_TOOLKIT_PM_USE_GUI_1,;t t
42490s,@COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0,;t t
3fd9c298
DE
42491s,@COND_TOOLKIT_WINCE@,$COND_TOOLKIT_WINCE,;t t
42492s,@COND_TOOLKIT_WINCE_USE_GUI_1@,$COND_TOOLKIT_WINCE_USE_GUI_1,;t t
42493s,@COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0,;t t
a848cd7e
SC
42494s,@COND_TOOLKIT_X11@,$COND_TOOLKIT_X11,;t t
42495s,@COND_TOOLKIT_X11_USE_GUI_1@,$COND_TOOLKIT_X11_USE_GUI_1,;t t
42496s,@COND_UNICODE_1@,$COND_UNICODE_1,;t t
42497s,@COND_USE_EXCEPTIONS_0@,$COND_USE_EXCEPTIONS_0,;t t
42498s,@COND_USE_EXCEPTIONS_1@,$COND_USE_EXCEPTIONS_1,;t t
42499s,@COND_USE_GUI_0@,$COND_USE_GUI_0,;t t
42500s,@COND_USE_GUI_1@,$COND_USE_GUI_1,;t t
42501s,@COND_USE_GUI_1_WXUNIV_0@,$COND_USE_GUI_1_WXUNIV_0,;t t
42502s,@COND_USE_GUI_1_WXUNIV_1@,$COND_USE_GUI_1_WXUNIV_1,;t t
42503s,@COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN,;t t
42504s,@COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN,;t t
42505s,@COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN,;t t
ceec2216 42506s,@COND_USE_ODBC_1@,$COND_USE_ODBC_1,;t t
ffa0583f 42507s,@COND_USE_OPENGL_1@,$COND_USE_OPENGL_1,;t t
a848cd7e
SC
42508s,@COND_USE_PLUGINS_0@,$COND_USE_PLUGINS_0,;t t
42509s,@COND_USE_SOSYMLINKS_1@,$COND_USE_SOSYMLINKS_1,;t t
42510s,@COND_USE_SOVERLINUX_1@,$COND_USE_SOVERLINUX_1,;t t
42511s,@COND_USE_SOVERSION_0@,$COND_USE_SOVERSION_0,;t t
42512s,@COND_USE_SOVERSOLARIS_1@,$COND_USE_SOVERSOLARIS_1,;t t
a13a7f89 42513s,@COND_USE_XRC_1@,$COND_USE_XRC_1,;t t
a848cd7e 42514s,@COND_WITH_PLUGIN_SDL_1@,$COND_WITH_PLUGIN_SDL_1,;t t
a848cd7e
SC
42515s,@COND_WXUNIV_1@,$COND_WXUNIV_1,;t t
42516s,@COND_WXUSE_EXPAT_BUILTIN@,$COND_WXUSE_EXPAT_BUILTIN,;t t
42517s,@COND_WXUSE_LIBJPEG_BUILTIN@,$COND_WXUSE_LIBJPEG_BUILTIN,;t t
42518s,@COND_WXUSE_LIBPNG_BUILTIN@,$COND_WXUSE_LIBPNG_BUILTIN,;t t
42519s,@COND_WXUSE_LIBTIFF_BUILTIN@,$COND_WXUSE_LIBTIFF_BUILTIN,;t t
42520s,@COND_WXUSE_ODBC_BUILTIN@,$COND_WXUSE_ODBC_BUILTIN,;t t
42521s,@COND_WXUSE_REGEX_BUILTIN@,$COND_WXUSE_REGEX_BUILTIN,;t t
42522s,@COND_WXUSE_ZLIB_BUILTIN@,$COND_WXUSE_ZLIB_BUILTIN,;t t
9a8f0513
VS
42523s,@COND_TOOLKIT_MAC_WXUNIV_0@,$COND_TOOLKIT_MAC_WXUNIV_0,;t t
42524s,@COND_TOOLKIT_MSW_WXUNIV_0@,$COND_TOOLKIT_MSW_WXUNIV_0,;t t
42525s,@COND_TOOLKIT_PM_WXUNIV_0@,$COND_TOOLKIT_PM_WXUNIV_0,;t t
ceec2216 42526s,@SHARED@,$SHARED,;t t
a848cd7e
SC
42527s,@WX_LIBRARY_BASENAME_NOGUI@,$WX_LIBRARY_BASENAME_NOGUI,;t t
42528s,@WX_LIBRARY_BASENAME_GUI@,$WX_LIBRARY_BASENAME_GUI,;t t
a848cd7e
SC
42529s,@WXDEBUG_DEFINE@,$WXDEBUG_DEFINE,;t t
42530s,@USE_GUI@,$USE_GUI,;t t
42531s,@AFMINSTALL@,$AFMINSTALL,;t t
42532s,@WIN32INSTALL@,$WIN32INSTALL,;t t
42533s,@TOOLKIT@,$TOOLKIT,;t t
42534s,@TOOLKIT_DIR@,$TOOLKIT_DIR,;t t
a848cd7e 42535s,@TOOLCHAIN_NAME@,$TOOLCHAIN_NAME,;t t
ceec2216 42536s,@TOOLCHAIN_FULLNAME@,$TOOLCHAIN_FULLNAME,;t t
a848cd7e
SC
42537s,@TOOLCHAIN_DEFS@,$TOOLCHAIN_DEFS,;t t
42538s,@TOOLCHAIN_DLL_DEFS@,$TOOLCHAIN_DLL_DEFS,;t t
a848cd7e 42539s,@cross_compiling@,$cross_compiling,;t t
ceec2216
RL
42540s,@WIDGET_SET@,$WIDGET_SET,;t t
42541s,@WX_RELEASE@,$WX_RELEASE,;t t
42542s,@WX_VERSION@,$WX_VERSION,;t t
42543s,@WX_SUBVERSION@,$WX_SUBVERSION,;t t
42544s,@WX_CHARTYPE@,$WX_CHARTYPE,;t t
42545s,@WX_DEBUGTYPE@,$WX_DEBUGTYPE,;t t
a848cd7e 42546s,@WXCONFIG_EXTRALIBS@,$WXCONFIG_EXTRALIBS,;t t
a848cd7e
SC
42547s,@WXCONFIG_INCLUDE@,$WXCONFIG_INCLUDE,;t t
42548s,@WXCONFIG_RPATH@,$WXCONFIG_RPATH,;t t
42549s,@WXCONFIG_LDFLAGS_GUI@,$WXCONFIG_LDFLAGS_GUI,;t t
42550s,@WX_LARGEFILE_FLAGS@,$WX_LARGEFILE_FLAGS,;t t
74b84332 42551s,@GCC_PRAGMA_FLAGS@,$GCC_PRAGMA_FLAGS,;t t
a848cd7e
SC
42552s,@CODE_GEN_FLAGS@,$CODE_GEN_FLAGS,;t t
42553s,@CODE_GEN_FLAGS_CXX@,$CODE_GEN_FLAGS_CXX,;t t
ceec2216 42554s,@EXE_LINKER@,$EXE_LINKER,;t t
a848cd7e 42555s,@GUIDIST@,$GUIDIST,;t t
a848cd7e
SC
42556s,@DISTDIR@,$DISTDIR,;t t
42557s,@SAMPLES_SUBDIRS@,$SAMPLES_SUBDIRS,;t t
42558s,@LDFLAGS_GL@,$LDFLAGS_GL,;t t
a848cd7e
SC
42559s,@OPENGL_LIBS@,$OPENGL_LIBS,;t t
42560s,@DMALLOC_LIBS@,$DMALLOC_LIBS,;t t
42561s,@WX_VERSION_TAG@,$WX_VERSION_TAG,;t t
42562s,@RESFLAGS@,$RESFLAGS,;t t
42563s,@RESPROGRAMOBJ@,$RESPROGRAMOBJ,;t t
42564s,@WX_RESOURCES_MACOSX_ASCII@,$WX_RESOURCES_MACOSX_ASCII,;t t
42565s,@WX_RESOURCES_MACOSX_DATA@,$WX_RESOURCES_MACOSX_DATA,;t t
42566s,@LIBWXMACRES@,$LIBWXMACRES,;t t
42567s,@MACRESCOMP@,$MACRESCOMP,;t t
42568s,@MACSETFILE@,$MACSETFILE,;t t
42569s,@MACRESWXCONFIG@,$MACRESWXCONFIG,;t t
42570s,@GCC@,$GCC,;t t
a848cd7e 42571s,@DLLTOOL@,$DLLTOOL,;t t
a848cd7e
SC
42572s,@CPPUNIT_CONFIG@,$CPPUNIT_CONFIG,;t t
42573s,@LIBOBJS@,$LIBOBJS,;t t
42574s,@LTLIBOBJS@,$LTLIBOBJS,;t t
42575CEOF
42576
42577_ACEOF
42578
42579 cat >>$CONFIG_STATUS <<\_ACEOF
42580 # Split the substitutions into bite-sized pieces for seds with
42581 # small command number limits, like on Digital OSF/1 and HP-UX.
42582 ac_max_sed_lines=48
42583 ac_sed_frag=1 # Number of current file.
42584 ac_beg=1 # First line for current file.
42585 ac_end=$ac_max_sed_lines # Line after last line for current file.
42586 ac_more_lines=:
42587 ac_sed_cmds=
42588 while $ac_more_lines; do
42589 if test $ac_beg -gt 1; then
42590 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
42591 else
42592 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
42593 fi
42594 if test ! -s $tmp/subs.frag; then
42595 ac_more_lines=false
42596 else
42597 # The purpose of the label and of the branching condition is to
42598 # speed up the sed processing (if there are no `@' at all, there
42599 # is no need to browse any of the substitutions).
42600 # These are the two extra sed commands mentioned above.
42601 (echo ':t
42602 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
42603 if test -z "$ac_sed_cmds"; then
ac1cb8d3 42604 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
a848cd7e 42605 else
ac1cb8d3 42606 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
a848cd7e
SC
42607 fi
42608 ac_sed_frag=`expr $ac_sed_frag + 1`
42609 ac_beg=$ac_end
42610 ac_end=`expr $ac_end + $ac_max_sed_lines`
42611 fi
42612 done
42613 if test -z "$ac_sed_cmds"; then
42614 ac_sed_cmds=cat
42615 fi
42616fi # test -n "$CONFIG_FILES"
42617
42618_ACEOF
42619cat >>$CONFIG_STATUS <<\_ACEOF
42620for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
42621 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
42622 case $ac_file in
42623 - | *:- | *:-:* ) # input from stdin
ac1cb8d3
VS
42624 cat >$tmp/stdin
42625 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
42626 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e 42627 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
ac1cb8d3 42628 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e
SC
42629 * ) ac_file_in=$ac_file.in ;;
42630 esac
42631
42632 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
42633 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
42634$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
42635 X"$ac_file" : 'X\(//\)[^/]' \| \
42636 X"$ac_file" : 'X\(//\)$' \| \
42637 X"$ac_file" : 'X\(/\)' \| \
42638 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
42639echo X"$ac_file" |
42640 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
42641 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
42642 /^X\(\/\/\)$/{ s//\1/; q; }
42643 /^X\(\/\).*/{ s//\1/; q; }
42644 s/.*/./; q'`
42645 { if $as_mkdir_p; then
42646 mkdir -p "$ac_dir"
42647 else
42648 as_dir="$ac_dir"
42649 as_dirs=
42650 while test ! -d "$as_dir"; do
42651 as_dirs="$as_dir $as_dirs"
42652 as_dir=`(dirname "$as_dir") 2>/dev/null ||
42653$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
42654 X"$as_dir" : 'X\(//\)[^/]' \| \
42655 X"$as_dir" : 'X\(//\)$' \| \
42656 X"$as_dir" : 'X\(/\)' \| \
42657 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
42658echo X"$as_dir" |
42659 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
42660 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
42661 /^X\(\/\/\)$/{ s//\1/; q; }
42662 /^X\(\/\).*/{ s//\1/; q; }
42663 s/.*/./; q'`
42664 done
42665 test ! -n "$as_dirs" || mkdir $as_dirs
42666 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
42667echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
42668 { (exit 1); exit 1; }; }; }
42669
42670 ac_builddir=.
42671
42672if test "$ac_dir" != .; then
42673 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
42674 # A "../" for each directory in $ac_dir_suffix.
42675 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
42676else
42677 ac_dir_suffix= ac_top_builddir=
42678fi
42679
42680case $srcdir in
42681 .) # No --srcdir option. We are building in place.
42682 ac_srcdir=.
42683 if test -z "$ac_top_builddir"; then
42684 ac_top_srcdir=.
42685 else
42686 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
42687 fi ;;
42688 [\\/]* | ?:[\\/]* ) # Absolute path.
42689 ac_srcdir=$srcdir$ac_dir_suffix;
42690 ac_top_srcdir=$srcdir ;;
42691 *) # Relative path.
42692 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
42693 ac_top_srcdir=$ac_top_builddir$srcdir ;;
42694esac
ac1cb8d3
VS
42695
42696# Do not use `cd foo && pwd` to compute absolute paths, because
42697# the directories may not exist.
42698case `pwd` in
42699.) ac_abs_builddir="$ac_dir";;
42700*)
42701 case "$ac_dir" in
42702 .) ac_abs_builddir=`pwd`;;
42703 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
42704 *) ac_abs_builddir=`pwd`/"$ac_dir";;
42705 esac;;
42706esac
42707case $ac_abs_builddir in
42708.) ac_abs_top_builddir=${ac_top_builddir}.;;
42709*)
42710 case ${ac_top_builddir}. in
42711 .) ac_abs_top_builddir=$ac_abs_builddir;;
42712 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
42713 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
42714 esac;;
42715esac
42716case $ac_abs_builddir in
42717.) ac_abs_srcdir=$ac_srcdir;;
42718*)
42719 case $ac_srcdir in
42720 .) ac_abs_srcdir=$ac_abs_builddir;;
42721 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
42722 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
42723 esac;;
42724esac
42725case $ac_abs_builddir in
42726.) ac_abs_top_srcdir=$ac_top_srcdir;;
42727*)
42728 case $ac_top_srcdir in
42729 .) ac_abs_top_srcdir=$ac_abs_builddir;;
42730 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
42731 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
42732 esac;;
42733esac
a848cd7e
SC
42734
42735
42736 case $INSTALL in
42737 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
42738 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
42739 esac
42740
a848cd7e
SC
42741 # Let's still pretend it is `configure' which instantiates (i.e., don't
42742 # use $as_me), people would be surprised to read:
42743 # /* config.h. Generated by config.status. */
42744 if test x"$ac_file" = x-; then
42745 configure_input=
42746 else
42747 configure_input="$ac_file. "
42748 fi
42749 configure_input=$configure_input"Generated from `echo $ac_file_in |
ac1cb8d3 42750 sed 's,.*/,,'` by configure."
a848cd7e
SC
42751
42752 # First look for the input files in the build tree, otherwise in the
42753 # src tree.
42754 ac_file_inputs=`IFS=:
42755 for f in $ac_file_in; do
42756 case $f in
42757 -) echo $tmp/stdin ;;
42758 [\\/$]*)
ac1cb8d3
VS
42759 # Absolute (can't be DOS-style, as IFS=:)
42760 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
42761echo "$as_me: error: cannot find input file: $f" >&2;}
42762 { (exit 1); exit 1; }; }
ac1cb8d3 42763 echo "$f";;
a848cd7e 42764 *) # Relative
ac1cb8d3
VS
42765 if test -f "$f"; then
42766 # Build tree
42767 echo "$f"
42768 elif test -f "$srcdir/$f"; then
42769 # Source tree
42770 echo "$srcdir/$f"
42771 else
42772 # /dev/null tree
42773 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
42774echo "$as_me: error: cannot find input file: $f" >&2;}
42775 { (exit 1); exit 1; }; }
ac1cb8d3 42776 fi;;
a848cd7e
SC
42777 esac
42778 done` || { (exit 1); exit 1; }
17a7bf57
RL
42779
42780 if test x"$ac_file" != x-; then
42781 { echo "$as_me:$LINENO: creating $ac_file" >&5
42782echo "$as_me: creating $ac_file" >&6;}
42783 rm -f "$ac_file"
42784 fi
a848cd7e
SC
42785_ACEOF
42786cat >>$CONFIG_STATUS <<_ACEOF
42787 sed "$ac_vpsub
42788$extrasub
42789_ACEOF
42790cat >>$CONFIG_STATUS <<\_ACEOF
42791:t
42792/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
42793s,@configure_input@,$configure_input,;t t
42794s,@srcdir@,$ac_srcdir,;t t
42795s,@abs_srcdir@,$ac_abs_srcdir,;t t
42796s,@top_srcdir@,$ac_top_srcdir,;t t
42797s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
42798s,@builddir@,$ac_builddir,;t t
42799s,@abs_builddir@,$ac_abs_builddir,;t t
42800s,@top_builddir@,$ac_top_builddir,;t t
42801s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
42802s,@INSTALL@,$ac_INSTALL,;t t
42803" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
42804 rm -f $tmp/stdin
42805 if test x"$ac_file" != x-; then
42806 mv $tmp/out $ac_file
42807 else
42808 cat $tmp/out
42809 rm -f $tmp/out
42810 fi
42811
ceec2216
RL
42812 # Run the commands associated with the file.
42813 case $ac_file in
42814 lib/wx/config/${TOOLCHAIN_FULLNAME} ) chmod +x lib/wx/config/${TOOLCHAIN_FULLNAME} ;;
42815 lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} ) chmod +x lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} ;;
42816 esac
a848cd7e
SC
42817done
42818_ACEOF
42819cat >>$CONFIG_STATUS <<\_ACEOF
42820
42821#
42822# CONFIG_HEADER section.
42823#
42824
42825# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
42826# NAME is the cpp macro being defined and VALUE is the value it is being given.
42827#
42828# ac_d sets the value in "#define NAME VALUE" lines.
ac1cb8d3
VS
42829ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
42830ac_dB='[ ].*$,\1#\2'
a848cd7e
SC
42831ac_dC=' '
42832ac_dD=',;t'
42833# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
ac1cb8d3 42834ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
a848cd7e
SC
42835ac_uB='$,\1#\2define\3'
42836ac_uC=' '
42837ac_uD=',;t'
42838
42839for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
42840 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
42841 case $ac_file in
42842 - | *:- | *:-:* ) # input from stdin
ac1cb8d3
VS
42843 cat >$tmp/stdin
42844 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
42845 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e 42846 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
ac1cb8d3 42847 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e
SC
42848 * ) ac_file_in=$ac_file.in ;;
42849 esac
42850
42851 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
42852echo "$as_me: creating $ac_file" >&6;}
42853
42854 # First look for the input files in the build tree, otherwise in the
42855 # src tree.
42856 ac_file_inputs=`IFS=:
42857 for f in $ac_file_in; do
42858 case $f in
42859 -) echo $tmp/stdin ;;
42860 [\\/$]*)
ac1cb8d3
VS
42861 # Absolute (can't be DOS-style, as IFS=:)
42862 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
42863echo "$as_me: error: cannot find input file: $f" >&2;}
42864 { (exit 1); exit 1; }; }
ac1cb8d3
VS
42865 # Do quote $f, to prevent DOS paths from being IFS'd.
42866 echo "$f";;
a848cd7e 42867 *) # Relative
ac1cb8d3
VS
42868 if test -f "$f"; then
42869 # Build tree
42870 echo "$f"
42871 elif test -f "$srcdir/$f"; then
42872 # Source tree
42873 echo "$srcdir/$f"
42874 else
42875 # /dev/null tree
42876 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
42877echo "$as_me: error: cannot find input file: $f" >&2;}
42878 { (exit 1); exit 1; }; }
ac1cb8d3 42879 fi;;
a848cd7e
SC
42880 esac
42881 done` || { (exit 1); exit 1; }
42882 # Remove the trailing spaces.
ac1cb8d3 42883 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
a848cd7e
SC
42884
42885_ACEOF
42886
42887# Transform confdefs.h into two sed scripts, `conftest.defines' and
42888# `conftest.undefs', that substitutes the proper values into
42889# config.h.in to produce config.h. The first handles `#define'
42890# templates, and the second `#undef' templates.
42891# And first: Protect against being on the right side of a sed subst in
42892# config.status. Protect against being in an unquoted here document
42893# in config.status.
42894rm -f conftest.defines conftest.undefs
42895# Using a here document instead of a string reduces the quoting nightmare.
42896# Putting comments in sed scripts is not portable.
42897#
42898# `end' is used to avoid that the second main sed command (meant for
42899# 0-ary CPP macros) applies to n-ary macro definitions.
42900# See the Autoconf documentation for `clear'.
42901cat >confdef2sed.sed <<\_ACEOF
42902s/[\\&,]/\\&/g
42903s,[\\$`],\\&,g
42904t clear
42905: clear
ac1cb8d3 42906s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
a848cd7e 42907t end
ac1cb8d3 42908s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
a848cd7e
SC
42909: end
42910_ACEOF
42911# If some macros were called several times there might be several times
42912# the same #defines, which is useless. Nevertheless, we may not want to
42913# sort them, since we want the *last* AC-DEFINE to be honored.
42914uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
42915sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
42916rm -f confdef2sed.sed
42917
42918# This sed command replaces #undef with comments. This is necessary, for
42919# example, in the case of _POSIX_SOURCE, which is predefined and required
42920# on some systems where configure will not decide to define it.
42921cat >>conftest.undefs <<\_ACEOF
ac1cb8d3 42922s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
a848cd7e
SC
42923_ACEOF
42924
42925# Break up conftest.defines because some shells have a limit on the size
42926# of here documents, and old seds have small limits too (100 cmds).
42927echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
ac1cb8d3 42928echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
a848cd7e
SC
42929echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
42930echo ' :' >>$CONFIG_STATUS
42931rm -f conftest.tail
42932while grep . conftest.defines >/dev/null
42933do
42934 # Write a limited-size here document to $tmp/defines.sed.
42935 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
42936 # Speed up: don't consider the non `#define' lines.
ac1cb8d3 42937 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
a848cd7e
SC
42938 # Work around the forget-to-reset-the-flag bug.
42939 echo 't clr' >>$CONFIG_STATUS
42940 echo ': clr' >>$CONFIG_STATUS
42941 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
42942 echo 'CEOF
42943 sed -f $tmp/defines.sed $tmp/in >$tmp/out
42944 rm -f $tmp/in
42945 mv $tmp/out $tmp/in
42946' >>$CONFIG_STATUS
42947 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
42948 rm -f conftest.defines
42949 mv conftest.tail conftest.defines
42950done
42951rm -f conftest.defines
42952echo ' fi # grep' >>$CONFIG_STATUS
42953echo >>$CONFIG_STATUS
42954
42955# Break up conftest.undefs because some shells have a limit on the size
42956# of here documents, and old seds have small limits too (100 cmds).
42957echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
42958rm -f conftest.tail
42959while grep . conftest.undefs >/dev/null
42960do
42961 # Write a limited-size here document to $tmp/undefs.sed.
42962 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
42963 # Speed up: don't consider the non `#undef'
ac1cb8d3 42964 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
a848cd7e
SC
42965 # Work around the forget-to-reset-the-flag bug.
42966 echo 't clr' >>$CONFIG_STATUS
42967 echo ': clr' >>$CONFIG_STATUS
42968 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
42969 echo 'CEOF
42970 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
42971 rm -f $tmp/in
42972 mv $tmp/out $tmp/in
42973' >>$CONFIG_STATUS
42974 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
42975 rm -f conftest.undefs
42976 mv conftest.tail conftest.undefs
42977done
42978rm -f conftest.undefs
42979
42980cat >>$CONFIG_STATUS <<\_ACEOF
42981 # Let's still pretend it is `configure' which instantiates (i.e., don't
42982 # use $as_me), people would be surprised to read:
42983 # /* config.h. Generated by config.status. */
42984 if test x"$ac_file" = x-; then
42985 echo "/* Generated by configure. */" >$tmp/config.h
42986 else
42987 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
42988 fi
42989 cat $tmp/in >>$tmp/config.h
42990 rm -f $tmp/in
42991 if test x"$ac_file" != x-; then
42992 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
42993 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
42994echo "$as_me: $ac_file is unchanged" >&6;}
42995 else
42996 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
42997$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
42998 X"$ac_file" : 'X\(//\)[^/]' \| \
42999 X"$ac_file" : 'X\(//\)$' \| \
43000 X"$ac_file" : 'X\(/\)' \| \
43001 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
43002echo X"$ac_file" |
43003 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
43004 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
43005 /^X\(\/\/\)$/{ s//\1/; q; }
43006 /^X\(\/\).*/{ s//\1/; q; }
43007 s/.*/./; q'`
43008 { if $as_mkdir_p; then
43009 mkdir -p "$ac_dir"
43010 else
43011 as_dir="$ac_dir"
43012 as_dirs=
43013 while test ! -d "$as_dir"; do
43014 as_dirs="$as_dir $as_dirs"
43015 as_dir=`(dirname "$as_dir") 2>/dev/null ||
43016$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
43017 X"$as_dir" : 'X\(//\)[^/]' \| \
43018 X"$as_dir" : 'X\(//\)$' \| \
43019 X"$as_dir" : 'X\(/\)' \| \
43020 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
43021echo X"$as_dir" |
43022 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
43023 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
43024 /^X\(\/\/\)$/{ s//\1/; q; }
43025 /^X\(\/\).*/{ s//\1/; q; }
43026 s/.*/./; q'`
43027 done
43028 test ! -n "$as_dirs" || mkdir $as_dirs
43029 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
43030echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
43031 { (exit 1); exit 1; }; }; }
43032
43033 rm -f $ac_file
43034 mv $tmp/config.h $ac_file
43035 fi
43036 else
43037 cat $tmp/config.h
43038 rm -f $tmp/config.h
43039 fi
43040done
43041_ACEOF
43042cat >>$CONFIG_STATUS <<\_ACEOF
43043
43044#
43045# CONFIG_COMMANDS section.
43046#
43047for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
43048 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
43049 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
43050 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
43051$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
43052 X"$ac_dest" : 'X\(//\)[^/]' \| \
43053 X"$ac_dest" : 'X\(//\)$' \| \
43054 X"$ac_dest" : 'X\(/\)' \| \
43055 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
43056echo X"$ac_dest" |
43057 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
43058 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
43059 /^X\(\/\/\)$/{ s//\1/; q; }
43060 /^X\(\/\).*/{ s//\1/; q; }
43061 s/.*/./; q'`
ac1cb8d3
VS
43062 { if $as_mkdir_p; then
43063 mkdir -p "$ac_dir"
43064 else
43065 as_dir="$ac_dir"
43066 as_dirs=
43067 while test ! -d "$as_dir"; do
43068 as_dirs="$as_dir $as_dirs"
43069 as_dir=`(dirname "$as_dir") 2>/dev/null ||
43070$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
43071 X"$as_dir" : 'X\(//\)[^/]' \| \
43072 X"$as_dir" : 'X\(//\)$' \| \
43073 X"$as_dir" : 'X\(/\)' \| \
43074 . : '\(.\)' 2>/dev/null ||
43075echo X"$as_dir" |
43076 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
43077 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
43078 /^X\(\/\/\)$/{ s//\1/; q; }
43079 /^X\(\/\).*/{ s//\1/; q; }
43080 s/.*/./; q'`
43081 done
43082 test ! -n "$as_dirs" || mkdir $as_dirs
43083 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
43084echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
43085 { (exit 1); exit 1; }; }; }
43086
a848cd7e
SC
43087 ac_builddir=.
43088
43089if test "$ac_dir" != .; then
43090 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
43091 # A "../" for each directory in $ac_dir_suffix.
43092 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
43093else
43094 ac_dir_suffix= ac_top_builddir=
43095fi
43096
43097case $srcdir in
43098 .) # No --srcdir option. We are building in place.
43099 ac_srcdir=.
43100 if test -z "$ac_top_builddir"; then
43101 ac_top_srcdir=.
43102 else
43103 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
43104 fi ;;
43105 [\\/]* | ?:[\\/]* ) # Absolute path.
43106 ac_srcdir=$srcdir$ac_dir_suffix;
43107 ac_top_srcdir=$srcdir ;;
43108 *) # Relative path.
43109 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
43110 ac_top_srcdir=$ac_top_builddir$srcdir ;;
43111esac
ac1cb8d3
VS
43112
43113# Do not use `cd foo && pwd` to compute absolute paths, because
43114# the directories may not exist.
43115case `pwd` in
43116.) ac_abs_builddir="$ac_dir";;
43117*)
43118 case "$ac_dir" in
43119 .) ac_abs_builddir=`pwd`;;
43120 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
43121 *) ac_abs_builddir=`pwd`/"$ac_dir";;
43122 esac;;
43123esac
43124case $ac_abs_builddir in
43125.) ac_abs_top_builddir=${ac_top_builddir}.;;
43126*)
43127 case ${ac_top_builddir}. in
43128 .) ac_abs_top_builddir=$ac_abs_builddir;;
43129 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
43130 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
43131 esac;;
43132esac
43133case $ac_abs_builddir in
43134.) ac_abs_srcdir=$ac_srcdir;;
43135*)
43136 case $ac_srcdir in
43137 .) ac_abs_srcdir=$ac_abs_builddir;;
43138 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
43139 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
43140 esac;;
43141esac
43142case $ac_abs_builddir in
43143.) ac_abs_top_srcdir=$ac_top_srcdir;;
43144*)
43145 case $ac_top_srcdir in
43146 .) ac_abs_top_srcdir=$ac_abs_builddir;;
43147 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
43148 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
43149 esac;;
43150esac
a848cd7e
SC
43151
43152
43153 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
43154echo "$as_me: executing $ac_dest commands" >&6;}
43155 case $ac_dest in
ceec2216
RL
43156 wx-config ) rm -f wx-config
43157 ${LN_S} lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} wx-config
43158 ;;
a848cd7e
SC
43159 esac
43160done
43161_ACEOF
43162
43163cat >>$CONFIG_STATUS <<\_ACEOF
43164
43165{ (exit 0); exit 0; }
43166_ACEOF
43167chmod +x $CONFIG_STATUS
43168ac_clean_files=$ac_clean_files_save
43169
43170
43171# configure is writing to config.log, and then calls config.status.
43172# config.status does its own redirection, appending to config.log.
43173# Unfortunately, on DOS this fails, as config.log is still kept open
43174# by configure, so config.status won't be able to write to it; its
43175# output is simply discarded. So we exec the FD to /dev/null,
43176# effectively closing config.log, so it can be properly (re)opened and
43177# appended to by config.status. When coming back to configure, we
43178# need to make the FD available again.
43179if test "$no_create" != yes; then
43180 ac_cs_success=:
43181 ac_config_status_args=
43182 test "$silent" = yes &&
43183 ac_config_status_args="$ac_config_status_args --quiet"
43184 exec 5>/dev/null
43185 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
43186 exec 5>>config.log
43187 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
43188 # would make configure fail if this is the last instruction.
43189 $ac_cs_success || { (exit 1); exit 1; }
43190fi
43191
43192#
43193# CONFIG_SUBDIRS section.
43194#
43195if test "$no_recursion" != yes; then
43196
43197 # Remove --cache-file and --srcdir arguments so they do not pile up.
43198 ac_sub_configure_args=
43199 ac_prev=
43200 for ac_arg in $ac_configure_args; do
43201 if test -n "$ac_prev"; then
43202 ac_prev=
43203 continue
43204 fi
43205 case $ac_arg in
43206 -cache-file | --cache-file | --cache-fil | --cache-fi \
43207 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
43208 ac_prev=cache_file ;;
43209 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
43210 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
43211 | --c=*)
43212 ;;
43213 --config-cache | -C)
43214 ;;
43215 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
43216 ac_prev=srcdir ;;
43217 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
43218 ;;
43219 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
43220 ac_prev=prefix ;;
43221 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
43222 ;;
43223 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
43224 esac
43225 done
43226
43227 # Always prepend --prefix to ensure using the same prefix
43228 # in subdir configurations.
43229 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
43230
43231 ac_popdir=`pwd`
43232 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
43233
43234 # Do not complain, so a configure script can configure whichever
43235 # parts of a large source tree are present.
43236 test -d $srcdir/$ac_dir || continue
43237
43238 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
43239echo "$as_me: configuring in $ac_dir" >&6;}
43240 { if $as_mkdir_p; then
43241 mkdir -p "$ac_dir"
43242 else
43243 as_dir="$ac_dir"
43244 as_dirs=
43245 while test ! -d "$as_dir"; do
43246 as_dirs="$as_dir $as_dirs"
43247 as_dir=`(dirname "$as_dir") 2>/dev/null ||
43248$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
43249 X"$as_dir" : 'X\(//\)[^/]' \| \
43250 X"$as_dir" : 'X\(//\)$' \| \
43251 X"$as_dir" : 'X\(/\)' \| \
43252 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
43253echo X"$as_dir" |
43254 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
43255 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
43256 /^X\(\/\/\)$/{ s//\1/; q; }
43257 /^X\(\/\).*/{ s//\1/; q; }
43258 s/.*/./; q'`
43259 done
43260 test ! -n "$as_dirs" || mkdir $as_dirs
43261 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
43262echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
43263 { (exit 1); exit 1; }; }; }
43264
43265 ac_builddir=.
43266
43267if test "$ac_dir" != .; then
43268 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
43269 # A "../" for each directory in $ac_dir_suffix.
43270 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
43271else
43272 ac_dir_suffix= ac_top_builddir=
43273fi
43274
43275case $srcdir in
43276 .) # No --srcdir option. We are building in place.
43277 ac_srcdir=.
43278 if test -z "$ac_top_builddir"; then
43279 ac_top_srcdir=.
43280 else
43281 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
43282 fi ;;
43283 [\\/]* | ?:[\\/]* ) # Absolute path.
43284 ac_srcdir=$srcdir$ac_dir_suffix;
43285 ac_top_srcdir=$srcdir ;;
43286 *) # Relative path.
43287 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
43288 ac_top_srcdir=$ac_top_builddir$srcdir ;;
43289esac
ac1cb8d3
VS
43290
43291# Do not use `cd foo && pwd` to compute absolute paths, because
43292# the directories may not exist.
43293case `pwd` in
43294.) ac_abs_builddir="$ac_dir";;
43295*)
43296 case "$ac_dir" in
43297 .) ac_abs_builddir=`pwd`;;
43298 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
43299 *) ac_abs_builddir=`pwd`/"$ac_dir";;
43300 esac;;
43301esac
43302case $ac_abs_builddir in
43303.) ac_abs_top_builddir=${ac_top_builddir}.;;
43304*)
43305 case ${ac_top_builddir}. in
43306 .) ac_abs_top_builddir=$ac_abs_builddir;;
43307 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
43308 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
43309 esac;;
43310esac
43311case $ac_abs_builddir in
43312.) ac_abs_srcdir=$ac_srcdir;;
43313*)
43314 case $ac_srcdir in
43315 .) ac_abs_srcdir=$ac_abs_builddir;;
43316 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
43317 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
43318 esac;;
43319esac
43320case $ac_abs_builddir in
43321.) ac_abs_top_srcdir=$ac_top_srcdir;;
43322*)
43323 case $ac_top_srcdir in
43324 .) ac_abs_top_srcdir=$ac_abs_builddir;;
43325 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
43326 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
43327 esac;;
43328esac
a848cd7e
SC
43329
43330
43331 cd $ac_dir
43332
43333 # Check for guested configure; otherwise get Cygnus style configure.
43334 if test -f $ac_srcdir/configure.gnu; then
43335 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
43336 elif test -f $ac_srcdir/configure; then
43337 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
43338 elif test -f $ac_srcdir/configure.in; then
43339 ac_sub_configure=$ac_configure
43340 else
43341 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
43342echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
43343 ac_sub_configure=
43344 fi
43345
43346 # The recursion is here.
43347 if test -n "$ac_sub_configure"; then
43348 # Make the cache file name correct relative to the subdirectory.
43349 case $cache_file in
43350 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
43351 *) # Relative path.
ac1cb8d3 43352 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
a848cd7e
SC
43353 esac
43354
43355 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
43356echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
43357 # The eval makes quoting arguments work.
43358 eval $ac_sub_configure $ac_sub_configure_args \
ac1cb8d3
VS
43359 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
43360 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
a848cd7e
SC
43361echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
43362 { (exit 1); exit 1; }; }
43363 fi
43364
17a7bf57 43365 cd "$ac_popdir"
a848cd7e
SC
43366 done
43367fi
43368
43369
43370echo
77ffb593 43371echo "Configured wxWidgets ${WX_VERSION} for \`${host}'"
a848cd7e 43372echo ""
4d4ff94c 43373echo " Which GUI toolkit should wxWidgets use? ${TOOLKIT_USER:-base only}"
77ffb593 43374echo " Should wxWidgets be compiled into single library? ${wxUSE_MONOLITHIC:-yes}"
a848cd7e 43375
77ffb593
JS
43376echo " Should wxWidgets be compiled in debug mode? ${wxUSE_DEBUG:-no}"
43377echo " Should wxWidgets be linked as a shared library? ${wxUSE_SHARED:-no}"
43378echo " Should wxWidgets be compiled in Unicode mode? ${wxUSE_UNICODE:-no}"
a848cd7e 43379
77ffb593
JS
43380echo " What level of wxWidgets compatibility should be enabled?"
43381echo " wxWidgets 2.2 ${WXWIN_COMPATIBILITY_2_2:-no}"
43382echo " wxWidgets 2.4 ${WXWIN_COMPATIBILITY_2_4:-yes}"
a848cd7e 43383
77ffb593 43384echo " Which libraries should wxWidgets use?"
a848cd7e
SC
43385echo " jpeg ${wxUSE_LIBJPEG-none}"
43386echo " png ${wxUSE_LIBPNG-none}"
43387echo " regex ${wxUSE_REGEX}"
43388echo " tiff ${wxUSE_LIBTIFF-none}"
43389if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
43390echo " xpm ${wxUSE_LIBXPM-none}"
43391fi
43392echo " zlib ${wxUSE_ZLIB}"
43393echo " odbc ${wxUSE_ODBC}"
43394echo " expat ${wxUSE_EXPAT}"
43395echo " libmspack ${wxUSE_LIBMSPACK}"
43396echo " sdl ${wxUSE_LIBSDL}"
d1c38808 43397echo " gnomeprint ${wxUSE_LIBGNOMEPRINT}"
a848cd7e
SC
43398
43399echo ""
43400