]> git.saurik.com Git - wxWidgets.git/blame - configure
note broken code, cast hack to fix warning on pickier compilers
[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"
ffa0583f 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 PANGOFT2_CFLAGS PANGOFT2_LIBS X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS PANGOX_CFLAGS PANGOX_LIBS PANGOXFT_CFLAGS PANGOXFT_LIBS RESCOMP DEREZ SETFILE LIBICONV EXTRALIBS_ESD SDL_CONFIG SDL_CFLAGS SDL_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 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_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
77ffb593 934 --enable-wxprintfv use wxWidgets implementation of vprintf()
a848cd7e 935 --enable-zipstream use wxZipInputStream
a848cd7e
SC
936 --enable-url use wxURL class
937 --enable-protocol use wxProtocol class
938 --enable-protocol-http HTTP support in wxProtocol
939 --enable-protocol-ftp FTP support in wxProtocol
940 --enable-protocol-file FILE support in wxProtocol
941 --enable-threads use threads
942 --enable-docview use document view architecture
943 --enable-help use help subsystem
944 --enable-mshtmlhelp use MS HTML Help (win32)
945 --enable-html use wxHTML sub-library
946 --enable-htmlhelp use wxHTML-based help
9a8f0513 947 --enable-xrc use XRC resources sub-library
a848cd7e
SC
948 --enable-constraints use layout-constraints system
949 --enable-printarch use printing architecture
950 --enable-mdi use multiple document interface architecture
8a7b1113 951 --enable-mdidoc use docview architecture with MDI
a848cd7e
SC
952 --enable-loggui use standard GUI logger
953 --enable-logwin use wxLogWindow
954 --enable-logdialog use wxLogDialog
646b6ec1 955 --enable-webkit use wxWebKitCtrl (Mac)
a848cd7e
SC
956 --enable-postscript use wxPostscriptDC device context (default for gtk+)
957 --enable-prologio not available; see contrib
958 --enable-resources not available; see contrib
959 --enable-clipboard use wxClipboard class
960 --enable-dnd use Drag'n'Drop classes
961 --enable-metafile use win32 metafiles
962 --enable-controls use all usual controls
963 --enable-accel use accelerators
964 --enable-button use wxButton class
965 --enable-bmpbutton use wxBitmapButton class
966 --enable-calendar use wxCalendarCtrl class
967 --enable-caret use wxCaret class
968 --enable-checkbox use wxCheckBox class
969 --enable-checklst use wxCheckListBox (listbox with checkboxes) class
970 --enable-choice use wxChoice class
92bbdbcd 971 --enable-choicebook use wxChoicebook class
a848cd7e
SC
972 --enable-combobox use wxComboBox class
973 --enable-display use wxDisplay class
974 --enable-gauge use wxGauge class
975 --enable-grid use wxGrid class
976 --enable-imaglist use wxImageList class
977 --enable-listbook use wxListbook class
978 --enable-listbox use wxListBox class
979 --enable-listctrl use wxListCtrl class
980 --enable-notebook use wxNotebook class
981 --enable-radiobox use wxRadioBox class
982 --enable-radiobtn use wxRadioButton class
983 --enable-sash use wxSashWindow class
984 --enable-scrollbar use wxScrollBar class and scrollable windows
985 --enable-slider use wxSlider class
986 --enable-spinbtn use wxSpinButton class
987 --enable-spinctrl use wxSpinCtrl class
988 --enable-splitter use wxSplitterWindow class
989 --enable-statbmp use wxStaticBitmap class
990 --enable-statbox use wxStaticBox class
991 --enable-statline use wxStaticLine class
992 --enable-stattext use wxStaticText class
993 --enable-statusbar use wxStatusBar class
994 --enable-tabdialog use wxTabControl class
995 --enable-textctrl use wxTextCtrl class
996 --enable-togglebtn use wxToggleButton class
997 --enable-toolbar use wxToolBar class
998 --enable-tbarnative use native wxToolBar class
999 --enable-tbarsmpl use wxToolBarSimple class
1000 --enable-treectrl use wxTreeCtrl class
1001 --enable-tipwindow use wxTipWindow class
1002 --enable-popupwin use wxPopUpWindow class
1003 --enable-commondlg use all common dialogs
1004 --enable-choicedlg use wxChoiceDialog
1005 --enable-coldlg use wxColourDialog
1006 --enable-filedlg use wxFileDialog
1007 --enable-finddlg use wxFindReplaceDialog
1008 --enable-fontdlg use wxFontDialog
1009 --enable-dirdlg use wxDirDialog
1010 --enable-msgdlg use wxMessageDialog
1011 --enable-numberdlg use wxNumberEntryDialog
1012 --enable-splash use wxSplashScreen
1013 --enable-textdlg use wxTextDialog
1014 --enable-tipdlg use startup tips
1015 --enable-progressdlg use wxProgressDialog
1016 --enable-wizarddlg use wxWizard
1017 --enable-menus use wxMenu/wxMenuBar/wxMenuItem classes
1018 --enable-miniframe use wxMiniFrame class
1019 --enable-tooltips use wxToolTip class
1020 --enable-splines use spline drawing code
1021 --enable-validators use wxValidator and derived classes
1022 --enable-busyinfo use wxBusyInfo
1023 --enable-joystick use wxJoystick (Linux only)
1024 --enable-metafiles use wxMetaFile (Windows only)
1025 --enable-dragimage use wxDragImage
1026 --enable-accessibility enable accessibility support
1027 --enable-palette use wxPalette class
1028 --enable-image use wxImage class
1029 --enable-gif use gif images (GIF file format)
1030 --enable-pcx use pcx images (PCX file format)
1031 --enable-iff use iff images (IFF file format)
1032 --enable-pnm use pnm images (PNM file format)
1033 --enable-xpm use xpm images (XPM file format)
1034 --enable-icocur use Windows ICO and CUR formats
77ffb593 1035 --enable-official_build official build of wxWidgets (win32 DLL only)
a848cd7e
SC
1036 --enable-vendor=VENDOR vendor name (win32 DLL only)
1037 --disable-largefile omit support for large files
1038 --disable-gtktest do not try to compile and run a test GTK+ program
1039 --disable-gtktest Do not try to compile and run a test GTK program
1040 --disable-sdltest Do not try to compile and run a test SDL program
1041 --enable-omf use OMF object format (OS/2)
ebee3cd0
VS
1042 --disable-precomp-headers
1043 don't use precompiled headers even if compiler can
a848cd7e
SC
1044
1045Optional Packages:
1046 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1047 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1048 --with-gtk use GTK+
1049 --with-motif use Motif/Lesstif
1050 --with-mac use Mac OS X
1051 --with-cocoa use Cocoa
1052 --with-wine use Wine
1053 --with-msw use MS-Windows
1054 --with-pm use OS/2 Presentation Manager
1055 --with-mgl use SciTech MGL
1056 --with-microwin use MicroWindows
1057 --with-x11 use X11
1058 --with-libpng use libpng (PNG image format)
1059 --with-libjpeg use libjpeg (JPEG file format)
1060 --with-libtiff use libtiff (TIFF file format)
1061 --with-libxpm use libxpm (XPM file format)
1062 --with-libmspack use libmspack (CHM help files loading)
1063 --with-sdl use SDL for audio on Unix
1064 --with-opengl use OpenGL (or Mesa)
1065 --with-dmalloc use dmalloc library (http://dmalloc.com/)
1066 --with-regex enable support for wxRegEx class
1067 --with-zlib use zlib for LZW compression
1068 --with-odbc use the IODBC and wxODBC classes
1069 --with-expat enable XML support using expat parser
ceec2216 1070 --with-flavour=NAME specify a name to identify this build
a848cd7e
SC
1071 --with-gtk-prefix=PFX Prefix where GTK is installed (optional)
1072 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)
1073 --with-x use the X Window System
1074 --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib
1075 --with-sdl-prefix=PFX Prefix where SDL is installed (optional)
1076 --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional)
1077 --with-cppunit-prefix=PFX Prefix where CppUnit is installed (optional)
1078 --with-cppunit-exec-prefix=PFX Exec prefix where CppUnit is installed (optional)
1079
1080Some influential environment variables:
dcc1b6ad
VS
1081 CC C compiler command
1082 CFLAGS C compiler flags
1083 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1084 nonstandard directory <lib dir>
1085 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1086 headers in a nonstandard directory <include dir>
1087 CPP C preprocessor
1088 CXX C++ compiler command
1089 CXXFLAGS C++ compiler flags
1090 CXXCPP C++ preprocessor
a848cd7e
SC
1091
1092Use these variables to override the choices made by `configure' or to help
1093it to find libraries and programs with nonstandard names/locations.
1094
77ffb593 1095Report bugs to <wx-dev@lists.wxwidgets.org>.
a848cd7e
SC
1096_ACEOF
1097fi
1098
1099if test "$ac_init_help" = "recursive"; then
1100 # If there are subdirs, report their specific --help.
1101 ac_popdir=`pwd`
1102 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1103 test -d $ac_dir || continue
1104 ac_builddir=.
1105
1106if test "$ac_dir" != .; then
1107 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1108 # A "../" for each directory in $ac_dir_suffix.
1109 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1110else
1111 ac_dir_suffix= ac_top_builddir=
1112fi
1113
1114case $srcdir in
1115 .) # No --srcdir option. We are building in place.
1116 ac_srcdir=.
1117 if test -z "$ac_top_builddir"; then
1118 ac_top_srcdir=.
1119 else
1120 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1121 fi ;;
1122 [\\/]* | ?:[\\/]* ) # Absolute path.
1123 ac_srcdir=$srcdir$ac_dir_suffix;
1124 ac_top_srcdir=$srcdir ;;
1125 *) # Relative path.
1126 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1127 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1128esac
ac1cb8d3
VS
1129
1130# Do not use `cd foo && pwd` to compute absolute paths, because
1131# the directories may not exist.
1132case `pwd` in
1133.) ac_abs_builddir="$ac_dir";;
1134*)
1135 case "$ac_dir" in
1136 .) ac_abs_builddir=`pwd`;;
1137 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1138 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1139 esac;;
1140esac
1141case $ac_abs_builddir in
1142.) ac_abs_top_builddir=${ac_top_builddir}.;;
1143*)
1144 case ${ac_top_builddir}. in
1145 .) ac_abs_top_builddir=$ac_abs_builddir;;
1146 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1147 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1148 esac;;
1149esac
1150case $ac_abs_builddir in
1151.) ac_abs_srcdir=$ac_srcdir;;
1152*)
1153 case $ac_srcdir in
1154 .) ac_abs_srcdir=$ac_abs_builddir;;
1155 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1156 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1157 esac;;
1158esac
1159case $ac_abs_builddir in
1160.) ac_abs_top_srcdir=$ac_top_srcdir;;
1161*)
1162 case $ac_top_srcdir in
1163 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1164 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1165 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1166 esac;;
1167esac
a848cd7e
SC
1168
1169 cd $ac_dir
1170 # Check for guested configure; otherwise get Cygnus style configure.
1171 if test -f $ac_srcdir/configure.gnu; then
1172 echo
1173 $SHELL $ac_srcdir/configure.gnu --help=recursive
1174 elif test -f $ac_srcdir/configure; then
1175 echo
1176 $SHELL $ac_srcdir/configure --help=recursive
1177 elif test -f $ac_srcdir/configure.ac ||
ac1cb8d3 1178 test -f $ac_srcdir/configure.in; then
a848cd7e
SC
1179 echo
1180 $ac_configure --help
1181 else
1182 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1183 fi
ffa0583f 1184 cd "$ac_popdir"
a848cd7e
SC
1185 done
1186fi
1187
1188test -n "$ac_init_help" && exit 0
1189if $ac_init_version; then
1190 cat <<\_ACEOF
7714864e 1191wxWidgets configure 2.5.3
ac1cb8d3 1192generated by GNU Autoconf 2.59
a848cd7e 1193
ac1cb8d3 1194Copyright (C) 2003 Free Software Foundation, Inc.
a848cd7e
SC
1195This configure script is free software; the Free Software Foundation
1196gives unlimited permission to copy, distribute and modify it.
1197_ACEOF
1198 exit 0
1199fi
1200exec 5>config.log
1201cat >&5 <<_ACEOF
1202This file contains any messages produced by compilers while
1203running configure, to aid debugging if configure makes a mistake.
1204
7714864e 1205It was created by wxWidgets $as_me 2.5.3, which was
ac1cb8d3 1206generated by GNU Autoconf 2.59. Invocation command line was
a848cd7e
SC
1207
1208 $ $0 $@
1209
1210_ACEOF
1211{
1212cat <<_ASUNAME
1213## --------- ##
1214## Platform. ##
1215## --------- ##
1216
1217hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1218uname -m = `(uname -m) 2>/dev/null || echo unknown`
1219uname -r = `(uname -r) 2>/dev/null || echo unknown`
1220uname -s = `(uname -s) 2>/dev/null || echo unknown`
1221uname -v = `(uname -v) 2>/dev/null || echo unknown`
1222
1223/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1224/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1225
1226/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1227/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1228/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1229hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1230/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1231/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1232/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1233
1234_ASUNAME
1235
1236as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1237for as_dir in $PATH
1238do
1239 IFS=$as_save_IFS
1240 test -z "$as_dir" && as_dir=.
1241 echo "PATH: $as_dir"
1242done
1243
1244} >&5
1245
1246cat >&5 <<_ACEOF
1247
1248
1249## ----------- ##
1250## Core tests. ##
1251## ----------- ##
1252
1253_ACEOF
1254
1255
1256# Keep a trace of the command line.
1257# Strip out --no-create and --no-recursion so they do not pile up.
1258# Strip out --silent because we don't want to record it for future runs.
1259# Also quote any args containing shell meta-characters.
1260# Make two passes to allow for proper duplicate-argument suppression.
1261ac_configure_args=
1262ac_configure_args0=
1263ac_configure_args1=
1264ac_sep=
1265ac_must_keep_next=false
1266for ac_pass in 1 2
1267do
1268 for ac_arg
1269 do
1270 case $ac_arg in
1271 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1272 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1273 | -silent | --silent | --silen | --sile | --sil)
1274 continue ;;
1275 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1276 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1277 esac
1278 case $ac_pass in
1279 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1280 2)
1281 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1282 if test $ac_must_keep_next = true; then
ac1cb8d3 1283 ac_must_keep_next=false # Got value, back to normal.
a848cd7e 1284 else
ac1cb8d3
VS
1285 case $ac_arg in
1286 *=* | --config-cache | -C | -disable-* | --disable-* \
1287 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1288 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1289 | -with-* | --with-* | -without-* | --without-* | --x)
1290 case "$ac_configure_args0 " in
1291 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1292 esac
1293 ;;
1294 -* ) ac_must_keep_next=true ;;
1295 esac
a848cd7e
SC
1296 fi
1297 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1298 # Get rid of the leading space.
1299 ac_sep=" "
1300 ;;
1301 esac
1302 done
1303done
1304$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1305$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1306
1307# When interrupted or exit'd, cleanup temporary files, and complete
1308# config.log. We remove comments because anyway the quotes in there
1309# would cause problems or look ugly.
1310# WARNING: Be sure not to use single quotes in there, as some shells,
1311# such as our DU 5.0 friend, will then `close' the trap.
1312trap 'exit_status=$?
1313 # Save into config.log some information that might help in debugging.
1314 {
1315 echo
1316
1317 cat <<\_ASBOX
1318## ---------------- ##
1319## Cache variables. ##
1320## ---------------- ##
1321_ASBOX
1322 echo
1323 # The following way of writing the cache mishandles newlines in values,
1324{
1325 (set) 2>&1 |
1326 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1327 *ac_space=\ *)
1328 sed -n \
ac1cb8d3
VS
1329 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1330 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
a848cd7e
SC
1331 ;;
1332 *)
1333 sed -n \
ac1cb8d3 1334 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
1335 ;;
1336 esac;
1337}
1338 echo
1339
1340 cat <<\_ASBOX
1341## ----------------- ##
1342## Output variables. ##
1343## ----------------- ##
1344_ASBOX
1345 echo
1346 for ac_var in $ac_subst_vars
1347 do
1348 eval ac_val=$`echo $ac_var`
1349 echo "$ac_var='"'"'$ac_val'"'"'"
1350 done | sort
1351 echo
1352
1353 if test -n "$ac_subst_files"; then
1354 cat <<\_ASBOX
1355## ------------- ##
1356## Output files. ##
1357## ------------- ##
1358_ASBOX
1359 echo
1360 for ac_var in $ac_subst_files
1361 do
1362 eval ac_val=$`echo $ac_var`
ac1cb8d3 1363 echo "$ac_var='"'"'$ac_val'"'"'"
a848cd7e
SC
1364 done | sort
1365 echo
1366 fi
1367
1368 if test -s confdefs.h; then
1369 cat <<\_ASBOX
1370## ----------- ##
1371## confdefs.h. ##
1372## ----------- ##
1373_ASBOX
1374 echo
1375 sed "/^$/d" confdefs.h | sort
1376 echo
1377 fi
1378 test "$ac_signal" != 0 &&
1379 echo "$as_me: caught signal $ac_signal"
1380 echo "$as_me: exit $exit_status"
1381 } >&5
ac1cb8d3 1382 rm -f core *.core &&
a848cd7e
SC
1383 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1384 exit $exit_status
1385 ' 0
1386for ac_signal in 1 2 13 15; do
1387 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1388done
1389ac_signal=0
1390
1391# confdefs.h avoids OS command line length limits that DEFS can exceed.
1392rm -rf conftest* confdefs.h
1393# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1394echo >confdefs.h
1395
1396# Predefined preprocessor variables.
1397
1398cat >>confdefs.h <<_ACEOF
1399#define PACKAGE_NAME "$PACKAGE_NAME"
1400_ACEOF
1401
1402
1403cat >>confdefs.h <<_ACEOF
1404#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1405_ACEOF
1406
1407
1408cat >>confdefs.h <<_ACEOF
1409#define PACKAGE_VERSION "$PACKAGE_VERSION"
1410_ACEOF
1411
1412
1413cat >>confdefs.h <<_ACEOF
1414#define PACKAGE_STRING "$PACKAGE_STRING"
1415_ACEOF
1416
1417
1418cat >>confdefs.h <<_ACEOF
1419#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1420_ACEOF
1421
1422
1423# Let the site file select an alternate cache file if it wants to.
1424# Prefer explicitly selected file to automatically selected ones.
1425if test -z "$CONFIG_SITE"; then
1426 if test "x$prefix" != xNONE; then
1427 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1428 else
1429 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1430 fi
1431fi
1432for ac_site_file in $CONFIG_SITE; do
1433 if test -r "$ac_site_file"; then
1434 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1435echo "$as_me: loading site script $ac_site_file" >&6;}
1436 sed 's/^/| /' "$ac_site_file" >&5
1437 . "$ac_site_file"
1438 fi
1439done
1440
1441if test -r "$cache_file"; then
1442 # Some versions of bash will fail to source /dev/null (special
1443 # files actually), so we avoid doing that.
1444 if test -f "$cache_file"; then
1445 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1446echo "$as_me: loading cache $cache_file" >&6;}
1447 case $cache_file in
1448 [\\/]* | ?:[\\/]* ) . $cache_file;;
1449 *) . ./$cache_file;;
1450 esac
1451 fi
1452else
1453 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1454echo "$as_me: creating cache $cache_file" >&6;}
1455 >$cache_file
1456fi
1457
1458# Check that the precious variables saved in the cache have kept the same
1459# value.
1460ac_cache_corrupted=false
1461for ac_var in `(set) 2>&1 |
ac1cb8d3 1462 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
a848cd7e
SC
1463 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1464 eval ac_new_set=\$ac_env_${ac_var}_set
1465 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1466 eval ac_new_val="\$ac_env_${ac_var}_value"
1467 case $ac_old_set,$ac_new_set in
1468 set,)
1469 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1470echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1471 ac_cache_corrupted=: ;;
1472 ,set)
1473 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1474echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1475 ac_cache_corrupted=: ;;
1476 ,);;
1477 *)
1478 if test "x$ac_old_val" != "x$ac_new_val"; then
ac1cb8d3 1479 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
a848cd7e 1480echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
ac1cb8d3 1481 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
a848cd7e 1482echo "$as_me: former value: $ac_old_val" >&2;}
ac1cb8d3 1483 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
a848cd7e 1484echo "$as_me: current value: $ac_new_val" >&2;}
ac1cb8d3 1485 ac_cache_corrupted=:
a848cd7e
SC
1486 fi;;
1487 esac
1488 # Pass precious variables to config.status.
1489 if test "$ac_new_set" = set; then
1490 case $ac_new_val in
1491 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1492 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1493 *) ac_arg=$ac_var=$ac_new_val ;;
1494 esac
1495 case " $ac_configure_args " in
1496 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1497 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1498 esac
1499 fi
1500done
1501if $ac_cache_corrupted; then
1502 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1503echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1504 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1505echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1506 { (exit 1); exit 1; }; }
1507fi
1508
1509ac_ext=c
1510ac_cpp='$CPP $CPPFLAGS'
1511ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1512ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1513ac_compiler_gnu=$ac_cv_c_compiler_gnu
1514
1515
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
1544ac_aux_dir=
1545for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1546 if test -f $ac_dir/install-sh; then
1547 ac_aux_dir=$ac_dir
1548 ac_install_sh="$ac_aux_dir/install-sh -c"
1549 break
1550 elif test -f $ac_dir/install.sh; then
1551 ac_aux_dir=$ac_dir
1552 ac_install_sh="$ac_aux_dir/install.sh -c"
1553 break
1554 elif test -f $ac_dir/shtool; then
1555 ac_aux_dir=$ac_dir
1556 ac_install_sh="$ac_aux_dir/shtool install -c"
1557 break
1558 fi
1559done
1560if test -z "$ac_aux_dir"; then
1561 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1562echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1563 { (exit 1); exit 1; }; }
1564fi
1565ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1566ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1567ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1568
1569# Make sure we can run config.sub.
1570$ac_config_sub sun4 >/dev/null 2>&1 ||
1571 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1572echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1573 { (exit 1); exit 1; }; }
1574
1575echo "$as_me:$LINENO: checking build system type" >&5
1576echo $ECHO_N "checking build system type... $ECHO_C" >&6
1577if test "${ac_cv_build+set}" = set; then
1578 echo $ECHO_N "(cached) $ECHO_C" >&6
1579else
1580 ac_cv_build_alias=$build_alias
1581test -z "$ac_cv_build_alias" &&
1582 ac_cv_build_alias=`$ac_config_guess`
1583test -z "$ac_cv_build_alias" &&
1584 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1585echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1586 { (exit 1); exit 1; }; }
1587ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1588 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1589echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1590 { (exit 1); exit 1; }; }
1591
1592fi
1593echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1594echo "${ECHO_T}$ac_cv_build" >&6
1595build=$ac_cv_build
1596build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1597build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1598build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1599
1600
1601echo "$as_me:$LINENO: checking host system type" >&5
1602echo $ECHO_N "checking host system type... $ECHO_C" >&6
1603if test "${ac_cv_host+set}" = set; then
1604 echo $ECHO_N "(cached) $ECHO_C" >&6
1605else
1606 ac_cv_host_alias=$host_alias
1607test -z "$ac_cv_host_alias" &&
1608 ac_cv_host_alias=$ac_cv_build_alias
1609ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1610 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1611echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1612 { (exit 1); exit 1; }; }
1613
1614fi
1615echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1616echo "${ECHO_T}$ac_cv_host" >&6
1617host=$ac_cv_host
1618host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1619host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1620host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1621
1622
1623echo "$as_me:$LINENO: checking target system type" >&5
1624echo $ECHO_N "checking target system type... $ECHO_C" >&6
1625if test "${ac_cv_target+set}" = set; then
1626 echo $ECHO_N "(cached) $ECHO_C" >&6
1627else
1628 ac_cv_target_alias=$target_alias
1629test "x$ac_cv_target_alias" = "x" &&
1630 ac_cv_target_alias=$ac_cv_host_alias
1631ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1632 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1633echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1634 { (exit 1); exit 1; }; }
1635
1636fi
1637echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1638echo "${ECHO_T}$ac_cv_target" >&6
1639target=$ac_cv_target
1640target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1641target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1642target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1643
1644
1645# The aliases save the names the user supplied, while $host etc.
1646# will get canonicalized.
1647test -n "$target_alias" &&
1648 test "$program_prefix$program_suffix$program_transform_name" = \
1649 NONENONEs,x,x, &&
1650 program_prefix=${target_alias}-
1651
1652
1653
ceec2216
RL
1654wx_major_version_number=2
1655wx_minor_version_number=5
7714864e 1656wx_release_number=3
78a9e10d 1657wx_subrelease_number=1
a848cd7e 1658
ceec2216
RL
1659WX_RELEASE=$wx_major_version_number.$wx_minor_version_number
1660WX_VERSION=$WX_RELEASE.$wx_release_number
1661WX_SUBVERSION=$WX_VERSION.$wx_subrelease_number
a848cd7e 1662
ceec2216 1663WX_MSW_VERSION=$wx_major_version_number$wx_minor_version_number$wx_release_number
a848cd7e 1664
78a9e10d 1665WX_CURRENT=4
a848cd7e 1666WX_REVISION=0
78a9e10d 1667WX_AGE=1
a848cd7e
SC
1668
1669
1670
1671USE_UNIX=1
1672USE_OS2=0
1673USE_WIN32=0
1674USE_DOS=0
1675USE_BEOS=0
1676USE_MAC=0
1677
1678USE_AIX=
1679USE_BSD= USE_DARWIN= USE_FREEBSD=
1680USE_GNU= USE_HPUX=
1681USE_LINUX=
1682USE_NETBSD=
1683USE_OPENBSD=
1684USE_OSF= USE_SGI=
1685USE_SOLARIS= USE_SUN= USE_SUNOS= USE_SVR4= USE_SYSV= USE_VMS=
1686USE_ULTRIX=
1687USE_UNIXWARE=
1688
1689USE_ALPHA=
1690
1691NEEDS_D_REENTRANT_FOR_R_FUNCS=0
1692
1693ALL_TOOLKITS="COCOA GTK MAC MGL MICROWIN MOTIF MSW PM X11"
1694
1695DEFAULT_wxUSE_COCOA=0
1696DEFAULT_wxUSE_GTK=0
1697DEFAULT_wxUSE_MAC=0
1698DEFAULT_wxUSE_MGL=0
1699DEFAULT_wxUSE_MICROWIN=0
1700DEFAULT_wxUSE_MOTIF=0
1701DEFAULT_wxUSE_MSW=0
1702DEFAULT_wxUSE_PM=0
1703DEFAULT_wxUSE_X11=0
1704
1705DEFAULT_DEFAULT_wxUSE_COCOA=0
1706DEFAULT_DEFAULT_wxUSE_GTK=0
1707DEFAULT_DEFAULT_wxUSE_MAC=0
1708DEFAULT_DEFAULT_wxUSE_MGL=0
1709DEFAULT_DEFAULT_wxUSE_MICROWIN=0
1710DEFAULT_DEFAULT_wxUSE_MOTIF=0
1711DEFAULT_DEFAULT_wxUSE_MSW=0
1712DEFAULT_DEFAULT_wxUSE_PM=0
1713DEFAULT_DEFAULT_wxUSE_X11=0
1714
1715PROGRAM_EXT=
1716SO_SUFFIX=so
1717SAMPLES_RPATH_FLAG=
1718SAMPLES_RPATH_POSTLINK=
1719
1720case "${host}" in
1721 *-hp-hpux* )
1722 USE_HPUX=1
1723 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1724 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1725 SO_SUFFIX=sl
1726 cat >>confdefs.h <<\_ACEOF
1727#define __HPUX__ 1
1728_ACEOF
1729
1730 ;;
1731 *-*-linux* )
1732 USE_LINUX=1
1733 cat >>confdefs.h <<\_ACEOF
1734#define __LINUX__ 1
1735_ACEOF
1736
1737 TMP=`uname -m`
1738 if test "x$TMP" = "xalpha"; then
1739 USE_ALPHA=1
1740 cat >>confdefs.h <<\_ACEOF
1741#define __ALPHA__ 1
1742_ACEOF
1743
1744 fi
1745 DEFAULT_DEFAULT_wxUSE_GTK=1
1746 ;;
1747 *-*-gnu* | *-*-k*bsd*-gnu )
1748 USE_GNU=1
1749 TMP=`uname -m`
1750 if test "x$TMP" = "xalpha"; then
1751 USE_ALPHA=1
1752 cat >>confdefs.h <<\_ACEOF
1753#define __ALPHA__ 1
1754_ACEOF
1755
1756 fi
1757 DEFAULT_DEFAULT_wxUSE_GTK=1
1758 ;;
1759 *-*-irix5* | *-*-irix6* )
1760 USE_SGI=1
1761 USE_SVR4=1
1762 cat >>confdefs.h <<\_ACEOF
1763#define __SGI__ 1
1764_ACEOF
1765
1766 cat >>confdefs.h <<\_ACEOF
1767#define __SVR4__ 1
1768_ACEOF
1769
1770 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1771 ;;
1772 *-*-solaris2* )
1773 USE_SUN=1
1774 USE_SOLARIS=1
1775 USE_SVR4=1
1776 cat >>confdefs.h <<\_ACEOF
1777#define __SUN__ 1
1778_ACEOF
1779
1780 cat >>confdefs.h <<\_ACEOF
1781#define __SOLARIS__ 1
1782_ACEOF
1783
1784 cat >>confdefs.h <<\_ACEOF
1785#define __SVR4__ 1
1786_ACEOF
1787
1788 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1789 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1790 ;;
1791 *-*-sunos4* )
1792 USE_SUN=1
1793 USE_SUNOS=1
1794 USE_BSD=1
1795 cat >>confdefs.h <<\_ACEOF
1796#define __SUN__ 1
1797_ACEOF
1798
1799 cat >>confdefs.h <<\_ACEOF
1800#define __SUNOS__ 1
1801_ACEOF
1802
1803 cat >>confdefs.h <<\_ACEOF
1804#define __BSD__ 1
1805_ACEOF
1806
1807 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1808 ;;
1809 *-*-freebsd*)
1810 USE_BSD=1
1811 USE_FREEBSD=1
1812 cat >>confdefs.h <<\_ACEOF
1813#define __FREEBSD__ 1
1814_ACEOF
1815
1816 cat >>confdefs.h <<\_ACEOF
1817#define __BSD__ 1
1818_ACEOF
1819
1820 DEFAULT_DEFAULT_wxUSE_GTK=1
1821 ;;
1822 *-*-openbsd*)
1823 USE_BSD=1
1824 USE_OPENBSD=1
1825 cat >>confdefs.h <<\_ACEOF
1826#define __OPENBSD__ 1
1827_ACEOF
1828
1829 cat >>confdefs.h <<\_ACEOF
1830#define __BSD__ 1
1831_ACEOF
1832
1833 DEFAULT_DEFAULT_wxUSE_GTK=1
1834 ;;
1835 *-*-netbsd*)
1836 USE_BSD=1
1837 USE_NETBSD=1
1838 cat >>confdefs.h <<\_ACEOF
1839#define __NETBSD__ 1
1840_ACEOF
1841
1842 cat >>confdefs.h <<\_ACEOF
1843#define __BSD__ 1
1844_ACEOF
1845
1846 DEFAULT_DEFAULT_wxUSE_GTK=1
1847 ;;
1848 *-*-osf* )
1849 USE_ALPHA=1
1850 USE_OSF=1
1851 cat >>confdefs.h <<\_ACEOF
1852#define __ALPHA__ 1
1853_ACEOF
1854
1855 cat >>confdefs.h <<\_ACEOF
1856#define __OSF__ 1
1857_ACEOF
1858
1859 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1860 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1861 ;;
1862 *-*-dgux5* )
1863 USE_ALPHA=1
1864 USE_SVR4=1
1865 cat >>confdefs.h <<\_ACEOF
1866#define __ALPHA__ 1
1867_ACEOF
1868
1869 cat >>confdefs.h <<\_ACEOF
1870#define __SVR4__ 1
1871_ACEOF
1872
1873 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1874 ;;
1875 *-*-sysv5* )
1876 USE_SYSV=1
1877 USE_SVR4=1
1878 cat >>confdefs.h <<\_ACEOF
1879#define __SYSV__ 1
1880_ACEOF
1881
1882 cat >>confdefs.h <<\_ACEOF
1883#define __SVR4__ 1
1884_ACEOF
1885
1886 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1887 ;;
1888 *-*-aix* )
1889 USE_AIX=1
1890 USE_SYSV=1
1891 USE_SVR4=1
1892 SO_SUFFIX=a
1893 cat >>confdefs.h <<\_ACEOF
1894#define __AIX__ 1
1895_ACEOF
1896
1897 cat >>confdefs.h <<\_ACEOF
1898#define __SYSV__ 1
1899_ACEOF
1900
1901 cat >>confdefs.h <<\_ACEOF
1902#define __SVR4__ 1
1903_ACEOF
1904
1905 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1906 ;;
1907
1908 *-*-*UnixWare*)
1909 USE_SYSV=1
1910 USE_SVR4=1
1911 USE_UNIXWARE=1
1912 cat >>confdefs.h <<\_ACEOF
1913#define __UNIXWARE__ 1
1914_ACEOF
1915
1916 ;;
1917
1918 *-*-cygwin* | *-*-mingw32* )
1919 SO_SUFFIX=dll
1920 PROGRAM_EXT=".exe"
1921 RESCOMP=windres
1922 DEFAULT_DEFAULT_wxUSE_MSW=1
1923 ;;
1924
1925 *-pc-msdosdjgpp )
1926 USE_UNIX=0
1927 USE_DOS=1
1928 cat >>confdefs.h <<\_ACEOF
1929#define __DOS__ 1
1930_ACEOF
1931
1932 PROGRAM_EXT=".exe"
1933 DEFAULT_DEFAULT_wxUSE_MGL=1
1934 LIBS="$LIBS -lstdc++"
1935 ;;
1936
1937 *-pc-os2_emx | *-pc-os2-emx )
1938 cat >>confdefs.h <<\_ACEOF
1939#define __EMX__ 1
1940_ACEOF
1941
1942 USE_OS2=1
1943 cat >>confdefs.h <<\_ACEOF
1944#define __OS2__ 1
1945_ACEOF
1946
1947 PROGRAM_EXT=".exe"
1948 DEFAULT_DEFAULT_wxUSE_PM=1
1949 CXX=gcc
1950 LDFLAGS="$LDFLAGS -Zcrtdll"
1951 ac_executable_extensions=".exe"
1952 export ac_executable_extensions
1953 ac_save_IFS="$IFS"
1954 IFS='\\'
1955 ac_TEMP_PATH=
1956 for ac_dir in $PATH; do
1957 IFS=$ac_save_IFS
1958 if test -z "$ac_TEMP_PATH"; then
1959 ac_TEMP_PATH="$ac_dir"
1960 else
1961 ac_TEMP_PATH="$ac_TEMP_PATH/$ac_dir"
1962 fi
1963 done
1964 export PATH="$ac_TEMP_PATH"
1965 unset ac_TEMP_PATH
1966 ;;
1967
1968 powerpc-*-darwin* )
1969 USE_BSD=1
1970 USE_DARWIN=1
1971 SO_SUFFIX=dylib
1972 cat >>confdefs.h <<\_ACEOF
1973#define __BSD__ 1
1974_ACEOF
1975
1976 cat >>confdefs.h <<\_ACEOF
1977#define __DARWIN__ 1
1978_ACEOF
1979
1980 cat >>confdefs.h <<\_ACEOF
1981#define __POWERPC__ 1
1982_ACEOF
1983
1984 cat >>confdefs.h <<\_ACEOF
1985#define TARGET_CARBON 1
1986_ACEOF
1987
1988 DEFAULT_DEFAULT_wxUSE_MAC=1
1989 ;;
1990
1991 *-*-beos* )
1992 USE_BEOS=1
1993 cat >>confdefs.h <<\_ACEOF
1994#define __BEOS__ 1
1995_ACEOF
1996
1997 ;;
1998
1999 *)
2000 { { echo "$as_me:$LINENO: error: unknown system type ${host}." >&5
2001echo "$as_me: error: unknown system type ${host}." >&2;}
2002 { (exit 1); exit 1; }; }
2003esac
2004
2005
2006
2007
2008 wx_arg_cache_file="configarg.cache"
2009 echo "loading argument cache $wx_arg_cache_file"
2010 rm -f ${wx_arg_cache_file}.tmp
2011 touch ${wx_arg_cache_file}.tmp
2012 touch ${wx_arg_cache_file}
2013
2014
2015DEBUG_CONFIGURE=0
2016if test $DEBUG_CONFIGURE = 1; then
2017 DEFAULT_wxUSE_UNIVERSAL=no
2018 DEFAULT_wxUSE_STL=no
2019
2020 DEFAULT_wxUSE_NANOX=no
2021
2022 DEFAULT_wxUSE_THREADS=yes
2023
2024 DEFAULT_wxUSE_SHARED=yes
2025 DEFAULT_wxUSE_OPTIMISE=no
2026 DEFAULT_wxUSE_PROFILE=no
2027 DEFAULT_wxUSE_NO_DEPS=no
2028 DEFAULT_wxUSE_NO_RTTI=no
2029 DEFAULT_wxUSE_NO_EXCEPTIONS=no
ffa0583f 2030 DEFAULT_wxUSE_RPATH=yes
a848cd7e
SC
2031 DEFAULT_wxUSE_PERMISSIVE=no
2032 DEFAULT_wxUSE_DEBUG_FLAG=yes
2033 DEFAULT_wxUSE_DEBUG_INFO=yes
2034 DEFAULT_wxUSE_DEBUG_GDB=yes
2035 DEFAULT_wxUSE_MEM_TRACING=no
2036 DEFAULT_wxUSE_DEBUG_CONTEXT=no
2037 DEFAULT_wxUSE_DMALLOC=no
2038 DEFAULT_wxUSE_APPLE_IEEE=no
2039
2040 DEFAULT_wxUSE_EXCEPTIONS=no
2041 DEFAULT_wxUSE_LOG=yes
2042 DEFAULT_wxUSE_LOGWINDOW=no
2043 DEFAULT_wxUSE_LOGGUI=no
2044 DEFAULT_wxUSE_LOGDIALOG=no
2045
2046 DEFAULT_wxUSE_GUI=yes
2047 DEFAULT_wxUSE_CONTROLS=no
2048
2049 DEFAULT_wxUSE_REGEX=no
2050 DEFAULT_wxUSE_XML=no
2051 DEFAULT_wxUSE_EXPAT=no
2052 DEFAULT_wxUSE_ZLIB=no
2053 DEFAULT_wxUSE_LIBPNG=no
2054 DEFAULT_wxUSE_LIBJPEG=no
2055 DEFAULT_wxUSE_LIBTIFF=no
2056 DEFAULT_wxUSE_LIBXPM=no
2057 DEFAULT_wxUSE_LIBMSPACK=no
2058 DEFAULT_wxUSE_LIBSDL=no
2059 DEFAULT_wxUSE_ODBC=no
2060 DEFAULT_wxUSE_OPENGL=no
2061
2062 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=no
2063 DEFAULT_wxUSE_SNGLINST_CHECKER=no
2064 DEFAULT_wxUSE_STD_IOSTREAM=no
2065 DEFAULT_wxUSE_CMDLINE_PARSER=no
2066 DEFAULT_wxUSE_DATETIME=no
2067 DEFAULT_wxUSE_TIMER=no
2068 DEFAULT_wxUSE_STOPWATCH=no
2069 DEFAULT_wxUSE_FILE=no
2070 DEFAULT_wxUSE_FFILE=no
2071 DEFAULT_wxUSE_TEXTBUFFER=no
2072 DEFAULT_wxUSE_TEXTFILE=no
2073 DEFAULT_wxUSE_SOUND=no
2074 DEFAULT_wxUSE_INTL=no
2075 DEFAULT_wxUSE_CONFIG=no
2076 DEFAULT_wxUSE_FONTMAP=no
2077 DEFAULT_wxUSE_STREAMS=no
2078 DEFAULT_wxUSE_SOCKETS=no
2079 DEFAULT_wxUSE_OLE=no
2080 DEFAULT_wxUSE_DATAOBJ=no
2081 DEFAULT_wxUSE_DIALUP_MANAGER=no
2082 DEFAULT_wxUSE_JOYSTICK=no
2083 DEFAULT_wxUSE_DYNLIB_CLASS=no
2084 DEFAULT_wxUSE_DYNAMIC_LOADER=no
2085 DEFAULT_wxUSE_LONGLONG=no
2086 DEFAULT_wxUSE_GEOMETRY=no
2087
2088 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no
2089 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no
2090 DEFAULT_wxUSE_POSTSCRIPT=no
2091
2092 DEFAULT_wxUSE_CLIPBOARD=no
2093 DEFAULT_wxUSE_TOOLTIPS=no
2094 DEFAULT_wxUSE_DRAG_AND_DROP=no
2095 DEFAULT_wxUSE_DRAGIMAGE=no
2096 DEFAULT_wxUSE_SPLINES=no
2097
8a7b1113 2098 DEFAULT_wxUSE_MDI=no
a848cd7e
SC
2099 DEFAULT_wxUSE_MDI_ARCHITECTURE=no
2100 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no
2101 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no
2102
2103 DEFAULT_wxUSE_RESOURCES=no
2104 DEFAULT_wxUSE_CONSTRAINTS=no
2105 DEFAULT_wxUSE_IPC=no
2106 DEFAULT_wxUSE_HELP=no
2107 DEFAULT_wxUSE_MS_HTML_HELP=no
2108 DEFAULT_wxUSE_WXHTML_HELP=no
2109 DEFAULT_wxUSE_TREELAYOUT=no
2110 DEFAULT_wxUSE_METAFILE=no
2111 DEFAULT_wxUSE_MIMETYPE=no
2112 DEFAULT_wxUSE_SYSTEM_OPTIONS=no
2113 DEFAULT_wxUSE_PROTOCOL=no
2114 DEFAULT_wxUSE_PROTOCOL_HTTP=no
2115 DEFAULT_wxUSE_PROTOCOL_FTP=no
2116 DEFAULT_wxUSE_PROTOCOL_FILE=no
2117 DEFAULT_wxUSE_URL=no
2118
2119 DEFAULT_wxUSE_COMMONDLGS=no
2120 DEFAULT_wxUSE_CHOICEDLG=no
2121 DEFAULT_wxUSE_COLOURDLG=no
2122 DEFAULT_wxUSE_DIRDLG=no
2123 DEFAULT_wxUSE_FILEDLG=no
2124 DEFAULT_wxUSE_FINDREPLDLG=no
2125 DEFAULT_wxUSE_FONTDLG=no
2126 DEFAULT_wxUSE_MSGDLG=no
2127 DEFAULT_wxUSE_NUMBERDLG=no
2128 DEFAULT_wxUSE_TEXTDLG=no
2129 DEFAULT_wxUSE_SPLASH=no
2130 DEFAULT_wxUSE_STARTUP_TIPS=no
2131 DEFAULT_wxUSE_PROGRESSDLG=no
2132 DEFAULT_wxUSE_WIZARDDLG=no
2133
2134 DEFAULT_wxUSE_MENUS=no
2135 DEFAULT_wxUSE_MINIFRAME=no
2136 DEFAULT_wxUSE_HTML=no
9a8f0513 2137 DEFAULT_wxUSE_XRC=no
646b6ec1 2138 DEFAULT_wxUSE_WEBKIT=no
a848cd7e
SC
2139 DEFAULT_wxUSE_FILESYSTEM=no
2140 DEFAULT_wxUSE_FS_INET=no
2141 DEFAULT_wxUSE_FS_ZIP=no
2142 DEFAULT_wxUSE_BUSYINFO=no
2143 DEFAULT_wxUSE_ZIPSTREAM=no
a848cd7e
SC
2144 DEFAULT_wxUSE_VALIDATORS=no
2145
2146 DEFAULT_wxUSE_ACCEL=no
2147 DEFAULT_wxUSE_BUTTON=no
2148 DEFAULT_wxUSE_BMPBUTTON=no
2149 DEFAULT_wxUSE_CALCTRL=no
2150 DEFAULT_wxUSE_CARET=no
2151 DEFAULT_wxUSE_CHECKBOX=no
2152 DEFAULT_wxUSE_CHECKLST=no
2153 DEFAULT_wxUSE_CHOICE=no
92bbdbcd 2154 DEFAULT_wxUSE_CHOICEBOOK=no
a848cd7e
SC
2155 DEFAULT_wxUSE_COMBOBOX=no
2156 DEFAULT_wxUSE_DISPLAY=no
2157 DEFAULT_wxUSE_GAUGE=no
2158 DEFAULT_wxUSE_GRID=no
2159 DEFAULT_wxUSE_IMAGLIST=no
2160 DEFAULT_wxUSE_LISTBOOK=no
2161 DEFAULT_wxUSE_LISTBOX=no
2162 DEFAULT_wxUSE_LISTCTRL=no
2163 DEFAULT_wxUSE_NOTEBOOK=no
2164 DEFAULT_wxUSE_RADIOBOX=no
2165 DEFAULT_wxUSE_RADIOBTN=no
2166 DEFAULT_wxUSE_SASH=no
2167 DEFAULT_wxUSE_SCROLLBAR=no
2168 DEFAULT_wxUSE_SLIDER=no
2169 DEFAULT_wxUSE_SPINBTN=no
2170 DEFAULT_wxUSE_SPINCTRL=no
2171 DEFAULT_wxUSE_SPLITTER=no
2172 DEFAULT_wxUSE_STATBMP=no
2173 DEFAULT_wxUSE_STATBOX=no
2174 DEFAULT_wxUSE_STATLINE=no
2175 DEFAULT_wxUSE_STATTEXT=no
2176 DEFAULT_wxUSE_STATUSBAR=yes
2177 DEFAULT_wxUSE_TABDIALOG=no
2178 DEFAULT_wxUSE_TEXTCTRL=no
2179 DEFAULT_wxUSE_TOGGLEBTN=no
2180 DEFAULT_wxUSE_TOOLBAR=no
2181 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
2182 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
2183 DEFAULT_wxUSE_TREECTRL=no
2184 DEFAULT_wxUSE_POPUPWIN=no
2185 DEFAULT_wxUSE_TIPWINDOW=no
2186
2187 DEFAULT_wxUSE_UNICODE=no
2188 DEFAULT_wxUSE_UNICODE_MSLU=no
2189 DEFAULT_wxUSE_WCSRTOMBS=no
2190
2191 DEFAULT_wxUSE_PALETTE=no
2192 DEFAULT_wxUSE_IMAGE=no
2193 DEFAULT_wxUSE_GIF=no
2194 DEFAULT_wxUSE_PCX=no
2195 DEFAULT_wxUSE_PNM=no
2196 DEFAULT_wxUSE_IFF=no
2197 DEFAULT_wxUSE_XPM=no
2198 DEFAULT_wxUSE_ICO_CUR=no
2199 DEFAULT_wxUSE_ACCESSIBILITY=no
2200
2201 DEFAULT_wxUSE_MONOLITHIC=no
2202 DEFAULT_wxUSE_PLUGINS=no
2203 DEFAULT_wxUSE_OFFICIAL_BUILD=no
2204else
2205 DEFAULT_wxUSE_UNIVERSAL=no
2206 DEFAULT_wxUSE_STL=no
2207
2208 DEFAULT_wxUSE_NANOX=no
2209
2210 DEFAULT_wxUSE_THREADS=yes
2211
2212 DEFAULT_wxUSE_SHARED=yes
2213 DEFAULT_wxUSE_OPTIMISE=yes
2214 DEFAULT_wxUSE_PROFILE=no
2215 DEFAULT_wxUSE_NO_DEPS=no
2216 DEFAULT_wxUSE_NO_RTTI=no
2217 DEFAULT_wxUSE_NO_EXCEPTIONS=no
ffa0583f 2218 DEFAULT_wxUSE_RPATH=yes
a848cd7e
SC
2219 DEFAULT_wxUSE_PERMISSIVE=no
2220 DEFAULT_wxUSE_DEBUG_FLAG=no
2221 DEFAULT_wxUSE_DEBUG_INFO=no
2222 DEFAULT_wxUSE_DEBUG_GDB=no
2223 DEFAULT_wxUSE_MEM_TRACING=no
2224 DEFAULT_wxUSE_DEBUG_CONTEXT=no
2225 DEFAULT_wxUSE_DMALLOC=no
2226 DEFAULT_wxUSE_APPLE_IEEE=yes
2227
2228 DEFAULT_wxUSE_EXCEPTIONS=yes
2229 DEFAULT_wxUSE_LOG=yes
2230 DEFAULT_wxUSE_LOGWINDOW=yes
2231 DEFAULT_wxUSE_LOGGUI=yes
2232 DEFAULT_wxUSE_LOGDIALOG=yes
2233
2234 DEFAULT_wxUSE_GUI=yes
2235
2236 DEFAULT_wxUSE_REGEX=yes
2237 DEFAULT_wxUSE_XML=yes
2238 DEFAULT_wxUSE_EXPAT=yes
2239 DEFAULT_wxUSE_ZLIB=yes
2240 DEFAULT_wxUSE_LIBPNG=yes
2241 DEFAULT_wxUSE_LIBJPEG=yes
2242 DEFAULT_wxUSE_LIBTIFF=yes
2243 DEFAULT_wxUSE_LIBXPM=yes
2244 DEFAULT_wxUSE_LIBMSPACK=yes
2245 DEFAULT_wxUSE_LIBSDL=no
2246 DEFAULT_wxUSE_ODBC=no
2247 DEFAULT_wxUSE_OPENGL=no
2248
2249 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=yes
2250 DEFAULT_wxUSE_SNGLINST_CHECKER=yes
2251 DEFAULT_wxUSE_STD_IOSTREAM=no
2252 DEFAULT_wxUSE_CMDLINE_PARSER=yes
2253 DEFAULT_wxUSE_DATETIME=yes
2254 DEFAULT_wxUSE_TIMER=yes
2255 DEFAULT_wxUSE_STOPWATCH=yes
2256 DEFAULT_wxUSE_FILE=yes
2257 DEFAULT_wxUSE_FFILE=yes
2258 DEFAULT_wxUSE_TEXTBUFFER=yes
2259 DEFAULT_wxUSE_TEXTFILE=yes
2260 DEFAULT_wxUSE_SOUND=yes
2261 DEFAULT_wxUSE_INTL=yes
2262 DEFAULT_wxUSE_CONFIG=yes
2263 DEFAULT_wxUSE_FONTMAP=yes
2264 DEFAULT_wxUSE_STREAMS=yes
2265 DEFAULT_wxUSE_SOCKETS=yes
2266 DEFAULT_wxUSE_OLE=yes
2267 DEFAULT_wxUSE_DATAOBJ=yes
2268 DEFAULT_wxUSE_DIALUP_MANAGER=yes
2269 DEFAULT_wxUSE_JOYSTICK=yes
2270 DEFAULT_wxUSE_DYNLIB_CLASS=yes
2271 DEFAULT_wxUSE_DYNAMIC_LOADER=yes
2272 DEFAULT_wxUSE_LONGLONG=yes
2273 DEFAULT_wxUSE_GEOMETRY=yes
2274
2275 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes
2276 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes
2277 DEFAULT_wxUSE_POSTSCRIPT=yes
2278
2279 DEFAULT_wxUSE_CLIPBOARD=yes
2280 DEFAULT_wxUSE_TOOLTIPS=yes
2281 DEFAULT_wxUSE_DRAG_AND_DROP=yes
2282 DEFAULT_wxUSE_DRAGIMAGE=yes
2283 DEFAULT_wxUSE_SPLINES=yes
2284
8a7b1113 2285 DEFAULT_wxUSE_MDI=yes
a848cd7e
SC
2286 DEFAULT_wxUSE_MDI_ARCHITECTURE=yes
2287 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes
2288 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes
2289
2290 DEFAULT_wxUSE_RESOURCES=no
2291 DEFAULT_wxUSE_CONSTRAINTS=yes
2292 DEFAULT_wxUSE_IPC=yes
2293 DEFAULT_wxUSE_HELP=yes
2294 DEFAULT_wxUSE_MS_HTML_HELP=yes
2295 DEFAULT_wxUSE_WXHTML_HELP=yes
2296 DEFAULT_wxUSE_TREELAYOUT=yes
2297 DEFAULT_wxUSE_METAFILE=yes
2298 DEFAULT_wxUSE_MIMETYPE=yes
2299 DEFAULT_wxUSE_SYSTEM_OPTIONS=yes
2300 DEFAULT_wxUSE_PROTOCOL=yes
2301 DEFAULT_wxUSE_PROTOCOL_HTTP=yes
2302 DEFAULT_wxUSE_PROTOCOL_FTP=yes
2303 DEFAULT_wxUSE_PROTOCOL_FILE=yes
2304 DEFAULT_wxUSE_URL=yes
2305
2306 DEFAULT_wxUSE_COMMONDLGS=yes
2307 DEFAULT_wxUSE_CHOICEDLG=yes
2308 DEFAULT_wxUSE_COLOURDLG=yes
2309 DEFAULT_wxUSE_DIRDLG=yes
2310 DEFAULT_wxUSE_FILEDLG=yes
2311 DEFAULT_wxUSE_FINDREPLDLG=yes
2312 DEFAULT_wxUSE_FONTDLG=yes
2313 DEFAULT_wxUSE_MSGDLG=yes
2314 DEFAULT_wxUSE_NUMBERDLG=yes
2315 DEFAULT_wxUSE_TEXTDLG=yes
2316 DEFAULT_wxUSE_SPLASH=yes
2317 DEFAULT_wxUSE_STARTUP_TIPS=yes
2318 DEFAULT_wxUSE_PROGRESSDLG=yes
2319 DEFAULT_wxUSE_WIZARDDLG=yes
2320
2321 DEFAULT_wxUSE_MENUS=yes
2322 DEFAULT_wxUSE_MINIFRAME=yes
2323 DEFAULT_wxUSE_HTML=yes
9a8f0513 2324 DEFAULT_wxUSE_XRC=yes
646b6ec1 2325 DEFAULT_wxUSE_WEBKIT=yes
a848cd7e
SC
2326 DEFAULT_wxUSE_FILESYSTEM=yes
2327 DEFAULT_wxUSE_FS_INET=yes
2328 DEFAULT_wxUSE_FS_ZIP=yes
2329 DEFAULT_wxUSE_BUSYINFO=yes
2330 DEFAULT_wxUSE_ZIPSTREAM=yes
a848cd7e
SC
2331 DEFAULT_wxUSE_VALIDATORS=yes
2332
2333 DEFAULT_wxUSE_ACCEL=yes
2334 DEFAULT_wxUSE_BUTTON=yes
2335 DEFAULT_wxUSE_BMPBUTTON=yes
2336 DEFAULT_wxUSE_CALCTRL=yes
2337 DEFAULT_wxUSE_CARET=yes
2338 DEFAULT_wxUSE_CHECKBOX=yes
2339 DEFAULT_wxUSE_CHECKLST=yes
2340 DEFAULT_wxUSE_CHOICE=yes
92bbdbcd 2341 DEFAULT_wxUSE_CHOICEBOOK=yes
a848cd7e
SC
2342 DEFAULT_wxUSE_COMBOBOX=yes
2343 DEFAULT_wxUSE_DISPLAY=yes
2344 DEFAULT_wxUSE_GAUGE=yes
2345 DEFAULT_wxUSE_GRID=yes
2346 DEFAULT_wxUSE_IMAGLIST=yes
2347 DEFAULT_wxUSE_LISTBOOK=yes
2348 DEFAULT_wxUSE_LISTBOX=yes
2349 DEFAULT_wxUSE_LISTCTRL=yes
2350 DEFAULT_wxUSE_NOTEBOOK=yes
2351 DEFAULT_wxUSE_RADIOBOX=yes
2352 DEFAULT_wxUSE_RADIOBTN=yes
2353 DEFAULT_wxUSE_SASH=yes
2354 DEFAULT_wxUSE_SCROLLBAR=yes
2355 DEFAULT_wxUSE_SLIDER=yes
2356 DEFAULT_wxUSE_SPINBTN=yes
2357 DEFAULT_wxUSE_SPINCTRL=yes
2358 DEFAULT_wxUSE_SPLITTER=yes
2359 DEFAULT_wxUSE_STATBMP=yes
2360 DEFAULT_wxUSE_STATBOX=yes
2361 DEFAULT_wxUSE_STATLINE=yes
2362 DEFAULT_wxUSE_STATTEXT=yes
2363 DEFAULT_wxUSE_STATUSBAR=yes
2364 DEFAULT_wxUSE_TABDIALOG=no
2365 DEFAULT_wxUSE_TEXTCTRL=yes
2366 DEFAULT_wxUSE_TOGGLEBTN=yes
2367 DEFAULT_wxUSE_TOOLBAR=yes
2368 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
2369 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
2370 DEFAULT_wxUSE_TREECTRL=yes
2371 DEFAULT_wxUSE_POPUPWIN=yes
2372 DEFAULT_wxUSE_TIPWINDOW=yes
2373
2374 DEFAULT_wxUSE_UNICODE=no
2375 DEFAULT_wxUSE_UNICODE_MSLU=yes
2376 DEFAULT_wxUSE_WCSRTOMBS=no
2377
2378 DEFAULT_wxUSE_PALETTE=yes
2379 DEFAULT_wxUSE_IMAGE=yes
2380 DEFAULT_wxUSE_GIF=yes
2381 DEFAULT_wxUSE_PCX=yes
2382 DEFAULT_wxUSE_IFF=no
2383 DEFAULT_wxUSE_PNM=yes
2384 DEFAULT_wxUSE_XPM=yes
2385 DEFAULT_wxUSE_ICO_CUR=yes
2386 DEFAULT_wxUSE_ACCESSIBILITY=no
2387
2388 DEFAULT_wxUSE_MONOLITHIC=no
2389 DEFAULT_wxUSE_PLUGINS=no
2390 DEFAULT_wxUSE_OFFICIAL_BUILD=no
9f45f08e
VS
2391
2392 DEFAULT_wxUSE_GTK2=yes
a848cd7e
SC
2393fi
2394
2395
2396
2397for toolkit in `echo $ALL_TOOLKITS`; do
2398 LINE=`grep "wxUSE_$toolkit=" ${wx_arg_cache_file}`
2399 if test "x$LINE" != "x" ; then
2400 has_toolkit_in_cache=1
2401 eval "DEFAULT_$LINE"
2402 eval "CACHE_$toolkit=1"
2403 fi
2404done
2405
2406
2407
2408 enablestring=
2409 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gui" >&5
2410echo $ECHO_N "checking for --${enablestring:-enable}-gui... $ECHO_C" >&6
2411 no_cache=0
2412 # Check whether --enable-gui or --disable-gui was given.
2413if test "${enable_gui+set}" = set; then
2414 enableval="$enable_gui"
2415
2416 if test "$enableval" = yes; then
2417 ac_cv_use_gui='wxUSE_GUI=yes'
2418 else
2419 ac_cv_use_gui='wxUSE_GUI=no'
2420 fi
2421
2422else
2423
2424 LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}`
2425 if test "x$LINE" != x ; then
2426 eval "DEFAULT_$LINE"
2427 else
2428 no_cache=1
2429 fi
2430
2431 ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI
2432
2433fi;
2434
2435 eval "$ac_cv_use_gui"
2436 if test "$no_cache" != 1; then
2437 echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp
2438 fi
2439
2440 if test "$wxUSE_GUI" = yes; then
2441 echo "$as_me:$LINENO: result: yes" >&5
2442echo "${ECHO_T}yes" >&6
2443 else
2444 echo "$as_me:$LINENO: result: no" >&5
2445echo "${ECHO_T}no" >&6
2446 fi
2447
2448
2449 enablestring=
2450 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-monolithic" >&5
2451echo $ECHO_N "checking for --${enablestring:-enable}-monolithic... $ECHO_C" >&6
2452 no_cache=0
2453 # Check whether --enable-monolithic or --disable-monolithic was given.
2454if test "${enable_monolithic+set}" = set; then
2455 enableval="$enable_monolithic"
2456
2457 if test "$enableval" = yes; then
2458 ac_cv_use_monolithic='wxUSE_MONOLITHIC=yes'
2459 else
2460 ac_cv_use_monolithic='wxUSE_MONOLITHIC=no'
2461 fi
2462
2463else
2464
2465 LINE=`grep "wxUSE_MONOLITHIC" ${wx_arg_cache_file}`
2466 if test "x$LINE" != x ; then
2467 eval "DEFAULT_$LINE"
2468 else
2469 no_cache=1
2470 fi
2471
2472 ac_cv_use_monolithic='wxUSE_MONOLITHIC='$DEFAULT_wxUSE_MONOLITHIC
2473
2474fi;
2475
2476 eval "$ac_cv_use_monolithic"
2477 if test "$no_cache" != 1; then
2478 echo $ac_cv_use_monolithic >> ${wx_arg_cache_file}.tmp
2479 fi
2480
2481 if test "$wxUSE_MONOLITHIC" = yes; then
2482 echo "$as_me:$LINENO: result: yes" >&5
2483echo "${ECHO_T}yes" >&6
2484 else
2485 echo "$as_me:$LINENO: result: no" >&5
2486echo "${ECHO_T}no" >&6
2487 fi
2488
2489
2490 enablestring=
2491 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-plugins" >&5
2492echo $ECHO_N "checking for --${enablestring:-enable}-plugins... $ECHO_C" >&6
2493 no_cache=0
2494 # Check whether --enable-plugins or --disable-plugins was given.
2495if test "${enable_plugins+set}" = set; then
2496 enableval="$enable_plugins"
2497
2498 if test "$enableval" = yes; then
2499 ac_cv_use_plugins='wxUSE_PLUGINS=yes'
2500 else
2501 ac_cv_use_plugins='wxUSE_PLUGINS=no'
2502 fi
2503
2504else
2505
2506 LINE=`grep "wxUSE_PLUGINS" ${wx_arg_cache_file}`
2507 if test "x$LINE" != x ; then
2508 eval "DEFAULT_$LINE"
2509 else
2510 no_cache=1
2511 fi
2512
2513 ac_cv_use_plugins='wxUSE_PLUGINS='$DEFAULT_wxUSE_PLUGINS
2514
2515fi;
2516
2517 eval "$ac_cv_use_plugins"
2518 if test "$no_cache" != 1; then
2519 echo $ac_cv_use_plugins >> ${wx_arg_cache_file}.tmp
2520 fi
2521
2522 if test "$wxUSE_PLUGINS" = yes; then
2523 echo "$as_me:$LINENO: result: yes" >&5
2524echo "${ECHO_T}yes" >&6
2525 else
2526 echo "$as_me:$LINENO: result: no" >&5
2527echo "${ECHO_T}no" >&6
2528 fi
2529
2530
2531if test "$wxUSE_GUI" = "yes"; then
2532
2533
2534 enablestring=
2535 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-universal" >&5
2536echo $ECHO_N "checking for --${enablestring:-enable}-universal... $ECHO_C" >&6
2537 no_cache=0
2538 # Check whether --enable-universal or --disable-universal was given.
2539if test "${enable_universal+set}" = set; then
2540 enableval="$enable_universal"
2541
2542 if test "$enableval" = yes; then
2543 ac_cv_use_universal='wxUSE_UNIVERSAL=yes'
2544 else
2545 ac_cv_use_universal='wxUSE_UNIVERSAL=no'
2546 fi
2547
2548else
2549
2550 LINE=`grep "wxUSE_UNIVERSAL" ${wx_arg_cache_file}`
2551 if test "x$LINE" != x ; then
2552 eval "DEFAULT_$LINE"
2553 else
2554 no_cache=1
2555 fi
2556
2557 ac_cv_use_universal='wxUSE_UNIVERSAL='$DEFAULT_wxUSE_UNIVERSAL
2558
2559fi;
2560
2561 eval "$ac_cv_use_universal"
2562 if test "$no_cache" != 1; then
2563 echo $ac_cv_use_universal >> ${wx_arg_cache_file}.tmp
2564 fi
2565
2566 if test "$wxUSE_UNIVERSAL" = yes; then
2567 echo "$as_me:$LINENO: result: yes" >&5
2568echo "${ECHO_T}yes" >&6
2569 else
2570 echo "$as_me:$LINENO: result: no" >&5
2571echo "${ECHO_T}no" >&6
2572 fi
2573
2574
2575# Check whether --with-gtk or --without-gtk was given.
2576if test "${with_gtk+set}" = set; then
2577 withval="$with_gtk"
2578 wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1
2579fi;
2580
2581# Check whether --with-motif or --without-motif was given.
2582if test "${with_motif+set}" = set; then
2583 withval="$with_motif"
2584 wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1
2585fi;
2586
2587# Check whether --with-mac or --without-mac was given.
2588if test "${with_mac+set}" = set; then
2589 withval="$with_mac"
c228d3a4 2590 wxUSE_MAC="$withval" CACHE_MAC=1 TOOLKIT_GIVEN=1
a848cd7e
SC
2591fi;
2592
2593# Check whether --with-cocoa or --without-cocoa was given.
2594if test "${with_cocoa+set}" = set; then
2595 withval="$with_cocoa"
c228d3a4 2596 wxUSE_COCOA="$withval" CACHE_COCOA=1 TOOLKIT_GIVEN=1
a848cd7e
SC
2597fi;
2598
2599# Check whether --with-wine or --without-wine was given.
2600if test "${with_wine+set}" = set; then
2601 withval="$with_wine"
2602 wxUSE_WINE="$withval" CACHE_WINE=1
2603fi;
2604
2605# Check whether --with-msw or --without-msw was given.
2606if test "${with_msw+set}" = set; then
2607 withval="$with_msw"
2608 wxUSE_MSW="$withval" CACHE_MSW=1 TOOLKIT_GIVEN=1
2609fi;
2610
2611# Check whether --with-pm or --without-pm was given.
2612if test "${with_pm+set}" = set; then
2613 withval="$with_pm"
2614 wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1
2615fi;
2616
2617# Check whether --with-mgl or --without-mgl was given.
2618if test "${with_mgl+set}" = set; then
2619 withval="$with_mgl"
2620 wxUSE_MGL="$withval" wxUSE_UNIVERSAL="yes" CACHE_MGL=1 TOOLKIT_GIVEN=1
2621fi;
2622
2623# Check whether --with-microwin or --without-microwin was given.
2624if test "${with_microwin+set}" = set; then
2625 withval="$with_microwin"
2626 wxUSE_MICROWIN="$withval" CACHE_MICROWIN=1 TOOLKIT_GIVEN=1
2627fi;
2628
2629# Check whether --with-x11 or --without-x11 was given.
2630if test "${with_x11+set}" = set; then
2631 withval="$with_x11"
2632 wxUSE_X11="$withval" wxUSE_UNIVERSAL="yes" CACHE_X11=1 TOOLKIT_GIVEN=1
2633fi;
2634
2635 enablestring=
2636 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-nanox" >&5
2637echo $ECHO_N "checking for --${enablestring:-enable}-nanox... $ECHO_C" >&6
2638 no_cache=0
2639 # Check whether --enable-nanox or --disable-nanox was given.
2640if test "${enable_nanox+set}" = set; then
2641 enableval="$enable_nanox"
2642
2643 if test "$enableval" = yes; then
2644 ac_cv_use_nanox='wxUSE_NANOX=yes'
2645 else
2646 ac_cv_use_nanox='wxUSE_NANOX=no'
2647 fi
2648
2649else
2650
2651 LINE=`grep "wxUSE_NANOX" ${wx_arg_cache_file}`
2652 if test "x$LINE" != x ; then
2653 eval "DEFAULT_$LINE"
2654 else
2655 no_cache=1
2656 fi
2657
2658 ac_cv_use_nanox='wxUSE_NANOX='$DEFAULT_wxUSE_NANOX
2659
2660fi;
2661
2662 eval "$ac_cv_use_nanox"
2663 if test "$no_cache" != 1; then
2664 echo $ac_cv_use_nanox >> ${wx_arg_cache_file}.tmp
2665 fi
2666
2667 if test "$wxUSE_NANOX" = yes; then
2668 echo "$as_me:$LINENO: result: yes" >&5
2669echo "${ECHO_T}yes" >&6
2670 else
2671 echo "$as_me:$LINENO: result: no" >&5
2672echo "${ECHO_T}no" >&6
2673 fi
2674
2675
2676
2677 enablestring=
2678 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gtk2" >&5
2679echo $ECHO_N "checking for --${enablestring:-enable}-gtk2... $ECHO_C" >&6
2680 no_cache=0
2681 # Check whether --enable-gtk2 or --disable-gtk2 was given.
2682if test "${enable_gtk2+set}" = set; then
2683 enableval="$enable_gtk2"
2684
2685 if test "$enableval" = yes; then
2686 ac_cv_use_gtk2='wxUSE_GTK2=yes'
2687 else
2688 ac_cv_use_gtk2='wxUSE_GTK2=no'
2689 fi
2690
2691else
2692
2693 LINE=`grep "wxUSE_GTK2" ${wx_arg_cache_file}`
2694 if test "x$LINE" != x ; then
2695 eval "DEFAULT_$LINE"
2696 else
2697 no_cache=1
2698 fi
2699
2700 ac_cv_use_gtk2='wxUSE_GTK2='$DEFAULT_wxUSE_GTK2
2701
2702fi;
2703
2704 eval "$ac_cv_use_gtk2"
2705 if test "$no_cache" != 1; then
2706 echo $ac_cv_use_gtk2 >> ${wx_arg_cache_file}.tmp
2707 fi
2708
2709 if test "$wxUSE_GTK2" = yes; then
2710 echo "$as_me:$LINENO: result: yes" >&5
2711echo "${ECHO_T}yes" >&6
2712 else
2713 echo "$as_me:$LINENO: result: no" >&5
2714echo "${ECHO_T}no" >&6
2715 fi
2716
2717
2718 enablestring=
2719 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gpe" >&5
2720echo $ECHO_N "checking for --${enablestring:-enable}-gpe... $ECHO_C" >&6
2721 no_cache=0
2722 # Check whether --enable-gpe or --disable-gpe was given.
2723if test "${enable_gpe+set}" = set; then
2724 enableval="$enable_gpe"
2725
2726 if test "$enableval" = yes; then
2727 ac_cv_use_gpe='wxUSE_GPE=yes'
2728 else
2729 ac_cv_use_gpe='wxUSE_GPE=no'
2730 fi
2731
2732else
2733
2734 LINE=`grep "wxUSE_GPE" ${wx_arg_cache_file}`
2735 if test "x$LINE" != x ; then
2736 eval "DEFAULT_$LINE"
2737 else
2738 no_cache=1
2739 fi
2740
2741 ac_cv_use_gpe='wxUSE_GPE='$DEFAULT_wxUSE_GPE
2742
2743fi;
2744
2745 eval "$ac_cv_use_gpe"
2746 if test "$no_cache" != 1; then
2747 echo $ac_cv_use_gpe >> ${wx_arg_cache_file}.tmp
2748 fi
2749
2750 if test "$wxUSE_GPE" = yes; then
2751 echo "$as_me:$LINENO: result: yes" >&5
2752echo "${ECHO_T}yes" >&6
2753 else
2754 echo "$as_me:$LINENO: result: no" >&5
2755echo "${ECHO_T}no" >&6
2756 fi
2757
2758
2759
2760 echo "$as_me:$LINENO: checking for --with-libpng" >&5
2761echo $ECHO_N "checking for --with-libpng... $ECHO_C" >&6
2762 no_cache=0
2763
2764# Check whether --with-libpng or --without-libpng was given.
2765if test "${with_libpng+set}" = set; then
2766 withval="$with_libpng"
2767
2768 if test "$withval" = yes; then
2769 ac_cv_use_libpng='wxUSE_LIBPNG=yes'
2770 elif test "$withval" = no; then
2771 ac_cv_use_libpng='wxUSE_LIBPNG=no'
2772 elif test "$withval" = sys; then
2773 ac_cv_use_libpng='wxUSE_LIBPNG=sys'
2774 elif test "$withval" = builtin; then
2775 ac_cv_use_libpng='wxUSE_LIBPNG=builtin'
2776 else
2777 { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5
2778echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;}
2779 { (exit 1); exit 1; }; }
2780 fi
2781
2782else
2783
2784 LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}`
2785 if test "x$LINE" != x ; then
2786 eval "DEFAULT_$LINE"
2787 else
2788 no_cache=1
2789 fi
2790
2791 ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG
2792
2793fi;
2794
2795 eval "$ac_cv_use_libpng"
2796 if test "$no_cache" != 1; then
2797 echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp
2798 fi
2799
2800 if test "$wxUSE_LIBPNG" = yes; then
2801 echo "$as_me:$LINENO: result: yes" >&5
2802echo "${ECHO_T}yes" >&6
2803 elif test "$wxUSE_LIBPNG" = no; then
2804 echo "$as_me:$LINENO: result: no" >&5
2805echo "${ECHO_T}no" >&6
2806 elif test "$wxUSE_LIBPNG" = sys; then
2807 echo "$as_me:$LINENO: result: system version" >&5
2808echo "${ECHO_T}system version" >&6
2809 elif test "$wxUSE_LIBPNG" = builtin; then
2810 echo "$as_me:$LINENO: result: builtin version" >&5
2811echo "${ECHO_T}builtin version" >&6
2812 else
2813 { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5
2814echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;}
2815 { (exit 1); exit 1; }; }
2816 fi
2817
2818
2819 echo "$as_me:$LINENO: checking for --with-libjpeg" >&5
2820echo $ECHO_N "checking for --with-libjpeg... $ECHO_C" >&6
2821 no_cache=0
2822
2823# Check whether --with-libjpeg or --without-libjpeg was given.
2824if test "${with_libjpeg+set}" = set; then
2825 withval="$with_libjpeg"
2826
2827 if test "$withval" = yes; then
2828 ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes'
2829 elif test "$withval" = no; then
2830 ac_cv_use_libjpeg='wxUSE_LIBJPEG=no'
2831 elif test "$withval" = sys; then
2832 ac_cv_use_libjpeg='wxUSE_LIBJPEG=sys'
2833 elif test "$withval" = builtin; then
2834 ac_cv_use_libjpeg='wxUSE_LIBJPEG=builtin'
2835 else
2836 { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5
2837echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;}
2838 { (exit 1); exit 1; }; }
2839 fi
2840
2841else
2842
2843 LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}`
2844 if test "x$LINE" != x ; then
2845 eval "DEFAULT_$LINE"
2846 else
2847 no_cache=1
2848 fi
2849
2850 ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG
2851
2852fi;
2853
2854 eval "$ac_cv_use_libjpeg"
2855 if test "$no_cache" != 1; then
2856 echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp
2857 fi
2858
2859 if test "$wxUSE_LIBJPEG" = yes; then
2860 echo "$as_me:$LINENO: result: yes" >&5
2861echo "${ECHO_T}yes" >&6
2862 elif test "$wxUSE_LIBJPEG" = no; then
2863 echo "$as_me:$LINENO: result: no" >&5
2864echo "${ECHO_T}no" >&6
2865 elif test "$wxUSE_LIBJPEG" = sys; then
2866 echo "$as_me:$LINENO: result: system version" >&5
2867echo "${ECHO_T}system version" >&6
2868 elif test "$wxUSE_LIBJPEG" = builtin; then
2869 echo "$as_me:$LINENO: result: builtin version" >&5
2870echo "${ECHO_T}builtin version" >&6
2871 else
2872 { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5
2873echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;}
2874 { (exit 1); exit 1; }; }
2875 fi
2876
2877
2878 echo "$as_me:$LINENO: checking for --with-libtiff" >&5
2879echo $ECHO_N "checking for --with-libtiff... $ECHO_C" >&6
2880 no_cache=0
2881
2882# Check whether --with-libtiff or --without-libtiff was given.
2883if test "${with_libtiff+set}" = set; then
2884 withval="$with_libtiff"
2885
2886 if test "$withval" = yes; then
2887 ac_cv_use_libtiff='wxUSE_LIBTIFF=yes'
2888 elif test "$withval" = no; then
2889 ac_cv_use_libtiff='wxUSE_LIBTIFF=no'
2890 elif test "$withval" = sys; then
2891 ac_cv_use_libtiff='wxUSE_LIBTIFF=sys'
2892 elif test "$withval" = builtin; then
2893 ac_cv_use_libtiff='wxUSE_LIBTIFF=builtin'
2894 else
2895 { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5
2896echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;}
2897 { (exit 1); exit 1; }; }
2898 fi
2899
2900else
2901
2902 LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}`
2903 if test "x$LINE" != x ; then
2904 eval "DEFAULT_$LINE"
2905 else
2906 no_cache=1
2907 fi
2908
2909 ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF
2910
2911fi;
2912
2913 eval "$ac_cv_use_libtiff"
2914 if test "$no_cache" != 1; then
2915 echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp
2916 fi
2917
2918 if test "$wxUSE_LIBTIFF" = yes; then
2919 echo "$as_me:$LINENO: result: yes" >&5
2920echo "${ECHO_T}yes" >&6
2921 elif test "$wxUSE_LIBTIFF" = no; then
2922 echo "$as_me:$LINENO: result: no" >&5
2923echo "${ECHO_T}no" >&6
2924 elif test "$wxUSE_LIBTIFF" = sys; then
2925 echo "$as_me:$LINENO: result: system version" >&5
2926echo "${ECHO_T}system version" >&6
2927 elif test "$wxUSE_LIBTIFF" = builtin; then
2928 echo "$as_me:$LINENO: result: builtin version" >&5
2929echo "${ECHO_T}builtin version" >&6
2930 else
2931 { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5
2932echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;}
2933 { (exit 1); exit 1; }; }
2934 fi
2935
2936
2937 echo "$as_me:$LINENO: checking for --with-libxpm" >&5
2938echo $ECHO_N "checking for --with-libxpm... $ECHO_C" >&6
2939 no_cache=0
2940
2941# Check whether --with-libxpm or --without-libxpm was given.
2942if test "${with_libxpm+set}" = set; then
2943 withval="$with_libxpm"
2944
2945 if test "$withval" = yes; then
2946 ac_cv_use_libxpm='wxUSE_LIBXPM=yes'
2947 elif test "$withval" = no; then
2948 ac_cv_use_libxpm='wxUSE_LIBXPM=no'
2949 elif test "$withval" = sys; then
2950 ac_cv_use_libxpm='wxUSE_LIBXPM=sys'
2951 elif test "$withval" = builtin; then
2952 ac_cv_use_libxpm='wxUSE_LIBXPM=builtin'
2953 else
2954 { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5
2955echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;}
2956 { (exit 1); exit 1; }; }
2957 fi
2958
2959else
2960
2961 LINE=`grep "wxUSE_LIBXPM" ${wx_arg_cache_file}`
2962 if test "x$LINE" != x ; then
2963 eval "DEFAULT_$LINE"
2964 else
2965 no_cache=1
2966 fi
2967
2968 ac_cv_use_libxpm='wxUSE_LIBXPM='$DEFAULT_wxUSE_LIBXPM
2969
2970fi;
2971
2972 eval "$ac_cv_use_libxpm"
2973 if test "$no_cache" != 1; then
2974 echo $ac_cv_use_libxpm >> ${wx_arg_cache_file}.tmp
2975 fi
2976
2977 if test "$wxUSE_LIBXPM" = yes; then
2978 echo "$as_me:$LINENO: result: yes" >&5
2979echo "${ECHO_T}yes" >&6
2980 elif test "$wxUSE_LIBXPM" = no; then
2981 echo "$as_me:$LINENO: result: no" >&5
2982echo "${ECHO_T}no" >&6
2983 elif test "$wxUSE_LIBXPM" = sys; then
2984 echo "$as_me:$LINENO: result: system version" >&5
2985echo "${ECHO_T}system version" >&6
2986 elif test "$wxUSE_LIBXPM" = builtin; then
2987 echo "$as_me:$LINENO: result: builtin version" >&5
2988echo "${ECHO_T}builtin version" >&6
2989 else
2990 { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5
2991echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;}
2992 { (exit 1); exit 1; }; }
2993 fi
2994
2995
2996 echo "$as_me:$LINENO: checking for --with-libmspack" >&5
2997echo $ECHO_N "checking for --with-libmspack... $ECHO_C" >&6
2998 no_cache=0
2999
3000# Check whether --with-libmspack or --without-libmspack was given.
3001if test "${with_libmspack+set}" = set; then
3002 withval="$with_libmspack"
3003
3004 if test "$withval" = yes; then
3005 ac_cv_use_libmspack='wxUSE_LIBMSPACK=yes'
3006 else
3007 ac_cv_use_libmspack='wxUSE_LIBMSPACK=no'
3008 fi
3009
3010else
3011
3012 LINE=`grep "wxUSE_LIBMSPACK" ${wx_arg_cache_file}`
3013 if test "x$LINE" != x ; then
3014 eval "DEFAULT_$LINE"
3015 else
3016 no_cache=1
3017 fi
3018
3019 ac_cv_use_libmspack='wxUSE_LIBMSPACK='$DEFAULT_wxUSE_LIBMSPACK
3020
3021fi;
3022
3023 eval "$ac_cv_use_libmspack"
3024 if test "$no_cache" != 1; then
3025 echo $ac_cv_use_libmspack >> ${wx_arg_cache_file}.tmp
3026 fi
3027
3028 if test "$wxUSE_LIBMSPACK" = yes; then
3029 echo "$as_me:$LINENO: result: yes" >&5
3030echo "${ECHO_T}yes" >&6
3031 else
3032 echo "$as_me:$LINENO: result: no" >&5
3033echo "${ECHO_T}no" >&6
3034 fi
3035
3036
3037 echo "$as_me:$LINENO: checking for --with-sdl" >&5
3038echo $ECHO_N "checking for --with-sdl... $ECHO_C" >&6
3039 no_cache=0
3040
3041# Check whether --with-sdl or --without-sdl was given.
3042if test "${with_sdl+set}" = set; then
3043 withval="$with_sdl"
3044
3045 if test "$withval" = yes; then
3046 ac_cv_use_sdl='wxUSE_LIBSDL=yes'
3047 else
3048 ac_cv_use_sdl='wxUSE_LIBSDL=no'
3049 fi
3050
3051else
3052
3053 LINE=`grep "wxUSE_LIBSDL" ${wx_arg_cache_file}`
3054 if test "x$LINE" != x ; then
3055 eval "DEFAULT_$LINE"
3056 else
3057 no_cache=1
3058 fi
3059
3060 ac_cv_use_sdl='wxUSE_LIBSDL='$DEFAULT_wxUSE_LIBSDL
3061
3062fi;
3063
3064 eval "$ac_cv_use_sdl"
3065 if test "$no_cache" != 1; then
3066 echo $ac_cv_use_sdl >> ${wx_arg_cache_file}.tmp
3067 fi
3068
3069 if test "$wxUSE_LIBSDL" = yes; then
3070 echo "$as_me:$LINENO: result: yes" >&5
3071echo "${ECHO_T}yes" >&6
3072 else
3073 echo "$as_me:$LINENO: result: no" >&5
3074echo "${ECHO_T}no" >&6
3075 fi
3076
3077
3078 echo "$as_me:$LINENO: checking for --with-opengl" >&5
3079echo $ECHO_N "checking for --with-opengl... $ECHO_C" >&6
3080 no_cache=0
3081
3082# Check whether --with-opengl or --without-opengl was given.
3083if test "${with_opengl+set}" = set; then
3084 withval="$with_opengl"
3085
3086 if test "$withval" = yes; then
3087 ac_cv_use_opengl='wxUSE_OPENGL=yes'
3088 else
3089 ac_cv_use_opengl='wxUSE_OPENGL=no'
3090 fi
3091
3092else
3093
3094 LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}`
3095 if test "x$LINE" != x ; then
3096 eval "DEFAULT_$LINE"
3097 else
3098 no_cache=1
3099 fi
3100
3101 ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL
3102
3103fi;
3104
3105 eval "$ac_cv_use_opengl"
3106 if test "$no_cache" != 1; then
3107 echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp
3108 fi
3109
3110 if test "$wxUSE_OPENGL" = yes; then
3111 echo "$as_me:$LINENO: result: yes" >&5
3112echo "${ECHO_T}yes" >&6
3113 else
3114 echo "$as_me:$LINENO: result: no" >&5
3115echo "${ECHO_T}no" >&6
3116 fi
3117
3118
3119fi
3120
3121
3122 echo "$as_me:$LINENO: checking for --with-dmalloc" >&5
3123echo $ECHO_N "checking for --with-dmalloc... $ECHO_C" >&6
3124 no_cache=0
3125
3126# Check whether --with-dmalloc or --without-dmalloc was given.
3127if test "${with_dmalloc+set}" = set; then
3128 withval="$with_dmalloc"
3129
3130 if test "$withval" = yes; then
3131 ac_cv_use_dmalloc='wxUSE_DMALLOC=yes'
3132 else
3133 ac_cv_use_dmalloc='wxUSE_DMALLOC=no'
3134 fi
3135
3136else
3137
3138 LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}`
3139 if test "x$LINE" != x ; then
3140 eval "DEFAULT_$LINE"
3141 else
3142 no_cache=1
3143 fi
3144
3145 ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC
3146
3147fi;
3148
3149 eval "$ac_cv_use_dmalloc"
3150 if test "$no_cache" != 1; then
3151 echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp
3152 fi
3153
3154 if test "$wxUSE_DMALLOC" = yes; then
3155 echo "$as_me:$LINENO: result: yes" >&5
3156echo "${ECHO_T}yes" >&6
3157 else
3158 echo "$as_me:$LINENO: result: no" >&5
3159echo "${ECHO_T}no" >&6
3160 fi
3161
3162
3163 echo "$as_me:$LINENO: checking for --with-regex" >&5
3164echo $ECHO_N "checking for --with-regex... $ECHO_C" >&6
3165 no_cache=0
3166
3167# Check whether --with-regex or --without-regex was given.
3168if test "${with_regex+set}" = set; then
3169 withval="$with_regex"
3170
3171 if test "$withval" = yes; then
3172 ac_cv_use_regex='wxUSE_REGEX=yes'
3173 elif test "$withval" = no; then
3174 ac_cv_use_regex='wxUSE_REGEX=no'
3175 elif test "$withval" = sys; then
3176 ac_cv_use_regex='wxUSE_REGEX=sys'
3177 elif test "$withval" = builtin; then
3178 ac_cv_use_regex='wxUSE_REGEX=builtin'
3179 else
3180 { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5
3181echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;}
3182 { (exit 1); exit 1; }; }
3183 fi
3184
3185else
3186
3187 LINE=`grep "wxUSE_REGEX" ${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_regex='wxUSE_REGEX='$DEFAULT_wxUSE_REGEX
3195
3196fi;
3197
3198 eval "$ac_cv_use_regex"
3199 if test "$no_cache" != 1; then
3200 echo $ac_cv_use_regex >> ${wx_arg_cache_file}.tmp
3201 fi
3202
3203 if test "$wxUSE_REGEX" = yes; then
3204 echo "$as_me:$LINENO: result: yes" >&5
3205echo "${ECHO_T}yes" >&6
3206 elif test "$wxUSE_REGEX" = no; then
3207 echo "$as_me:$LINENO: result: no" >&5
3208echo "${ECHO_T}no" >&6
3209 elif test "$wxUSE_REGEX" = sys; then
3210 echo "$as_me:$LINENO: result: system version" >&5
3211echo "${ECHO_T}system version" >&6
3212 elif test "$wxUSE_REGEX" = builtin; then
3213 echo "$as_me:$LINENO: result: builtin version" >&5
3214echo "${ECHO_T}builtin version" >&6
3215 else
3216 { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5
3217echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;}
3218 { (exit 1); exit 1; }; }
3219 fi
3220
3221
3222 echo "$as_me:$LINENO: checking for --with-zlib" >&5
3223echo $ECHO_N "checking for --with-zlib... $ECHO_C" >&6
3224 no_cache=0
3225
3226# Check whether --with-zlib or --without-zlib was given.
3227if test "${with_zlib+set}" = set; then
3228 withval="$with_zlib"
3229
3230 if test "$withval" = yes; then
3231 ac_cv_use_zlib='wxUSE_ZLIB=yes'
3232 elif test "$withval" = no; then
3233 ac_cv_use_zlib='wxUSE_ZLIB=no'
3234 elif test "$withval" = sys; then
3235 ac_cv_use_zlib='wxUSE_ZLIB=sys'
3236 elif test "$withval" = builtin; then
3237 ac_cv_use_zlib='wxUSE_ZLIB=builtin'
3238 else
3239 { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5
3240echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;}
3241 { (exit 1); exit 1; }; }
3242 fi
3243
3244else
3245
3246 LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}`
3247 if test "x$LINE" != x ; then
3248 eval "DEFAULT_$LINE"
3249 else
3250 no_cache=1
3251 fi
3252
3253 ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB
3254
3255fi;
3256
3257 eval "$ac_cv_use_zlib"
3258 if test "$no_cache" != 1; then
3259 echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp
3260 fi
3261
3262 if test "$wxUSE_ZLIB" = yes; then
3263 echo "$as_me:$LINENO: result: yes" >&5
3264echo "${ECHO_T}yes" >&6
3265 elif test "$wxUSE_ZLIB" = no; then
3266 echo "$as_me:$LINENO: result: no" >&5
3267echo "${ECHO_T}no" >&6
3268 elif test "$wxUSE_ZLIB" = sys; then
3269 echo "$as_me:$LINENO: result: system version" >&5
3270echo "${ECHO_T}system version" >&6
3271 elif test "$wxUSE_ZLIB" = builtin; then
3272 echo "$as_me:$LINENO: result: builtin version" >&5
3273echo "${ECHO_T}builtin version" >&6
3274 else
3275 { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5
3276echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;}
3277 { (exit 1); exit 1; }; }
3278 fi
3279
3280
3281 echo "$as_me:$LINENO: checking for --with-odbc" >&5
3282echo $ECHO_N "checking for --with-odbc... $ECHO_C" >&6
3283 no_cache=0
3284
3285# Check whether --with-odbc or --without-odbc was given.
3286if test "${with_odbc+set}" = set; then
3287 withval="$with_odbc"
3288
3289 if test "$withval" = yes; then
3290 ac_cv_use_odbc='wxUSE_ODBC=yes'
3291 elif test "$withval" = no; then
3292 ac_cv_use_odbc='wxUSE_ODBC=no'
3293 elif test "$withval" = sys; then
3294 ac_cv_use_odbc='wxUSE_ODBC=sys'
3295 elif test "$withval" = builtin; then
3296 ac_cv_use_odbc='wxUSE_ODBC=builtin'
3297 else
3298 { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5
3299echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;}
3300 { (exit 1); exit 1; }; }
3301 fi
3302
3303else
3304
3305 LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}`
3306 if test "x$LINE" != x ; then
3307 eval "DEFAULT_$LINE"
3308 else
3309 no_cache=1
3310 fi
3311
3312 ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC
3313
3314fi;
3315
3316 eval "$ac_cv_use_odbc"
3317 if test "$no_cache" != 1; then
3318 echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp
3319 fi
3320
3321 if test "$wxUSE_ODBC" = yes; then
3322 echo "$as_me:$LINENO: result: yes" >&5
3323echo "${ECHO_T}yes" >&6
3324 elif test "$wxUSE_ODBC" = no; then
3325 echo "$as_me:$LINENO: result: no" >&5
3326echo "${ECHO_T}no" >&6
3327 elif test "$wxUSE_ODBC" = sys; then
3328 echo "$as_me:$LINENO: result: system version" >&5
3329echo "${ECHO_T}system version" >&6
3330 elif test "$wxUSE_ODBC" = builtin; then
3331 echo "$as_me:$LINENO: result: builtin version" >&5
3332echo "${ECHO_T}builtin version" >&6
3333 else
3334 { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5
3335echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;}
3336 { (exit 1); exit 1; }; }
3337 fi
3338
3339
3340 echo "$as_me:$LINENO: checking for --with-expat" >&5
3341echo $ECHO_N "checking for --with-expat... $ECHO_C" >&6
3342 no_cache=0
3343
3344# Check whether --with-expat or --without-expat was given.
3345if test "${with_expat+set}" = set; then
3346 withval="$with_expat"
3347
3348 if test "$withval" = yes; then
3349 ac_cv_use_expat='wxUSE_EXPAT=yes'
3350 elif test "$withval" = no; then
3351 ac_cv_use_expat='wxUSE_EXPAT=no'
3352 elif test "$withval" = sys; then
3353 ac_cv_use_expat='wxUSE_EXPAT=sys'
3354 elif test "$withval" = builtin; then
3355 ac_cv_use_expat='wxUSE_EXPAT=builtin'
3356 else
3357 { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5
3358echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;}
3359 { (exit 1); exit 1; }; }
3360 fi
3361
3362else
3363
3364 LINE=`grep "wxUSE_EXPAT" ${wx_arg_cache_file}`
3365 if test "x$LINE" != x ; then
3366 eval "DEFAULT_$LINE"
3367 else
3368 no_cache=1
3369 fi
3370
3371 ac_cv_use_expat='wxUSE_EXPAT='$DEFAULT_wxUSE_EXPAT
3372
3373fi;
3374
3375 eval "$ac_cv_use_expat"
3376 if test "$no_cache" != 1; then
3377 echo $ac_cv_use_expat >> ${wx_arg_cache_file}.tmp
3378 fi
3379
3380 if test "$wxUSE_EXPAT" = yes; then
3381 echo "$as_me:$LINENO: result: yes" >&5
3382echo "${ECHO_T}yes" >&6
3383 elif test "$wxUSE_EXPAT" = no; then
3384 echo "$as_me:$LINENO: result: no" >&5
3385echo "${ECHO_T}no" >&6
3386 elif test "$wxUSE_EXPAT" = sys; then
3387 echo "$as_me:$LINENO: result: system version" >&5
3388echo "${ECHO_T}system version" >&6
3389 elif test "$wxUSE_EXPAT" = builtin; then
3390 echo "$as_me:$LINENO: result: builtin version" >&5
3391echo "${ECHO_T}builtin version" >&6
3392 else
3393 { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5
3394echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;}
3395 { (exit 1); exit 1; }; }
3396 fi
3397
3398
3399
3400
3401 enablestring=
3402 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-shared" >&5
3403echo $ECHO_N "checking for --${enablestring:-enable}-shared... $ECHO_C" >&6
3404 no_cache=0
3405 # Check whether --enable-shared or --disable-shared was given.
3406if test "${enable_shared+set}" = set; then
3407 enableval="$enable_shared"
3408
3409 if test "$enableval" = yes; then
3410 ac_cv_use_shared='wxUSE_SHARED=yes'
3411 else
3412 ac_cv_use_shared='wxUSE_SHARED=no'
3413 fi
3414
3415else
3416
3417 LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}`
3418 if test "x$LINE" != x ; then
3419 eval "DEFAULT_$LINE"
3420 else
3421 no_cache=1
3422 fi
3423
3424 ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED
3425
3426fi;
3427
3428 eval "$ac_cv_use_shared"
3429 if test "$no_cache" != 1; then
3430 echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp
3431 fi
3432
3433 if test "$wxUSE_SHARED" = yes; then
3434 echo "$as_me:$LINENO: result: yes" >&5
3435echo "${ECHO_T}yes" >&6
3436 else
3437 echo "$as_me:$LINENO: result: no" >&5
3438echo "${ECHO_T}no" >&6
3439 fi
3440
3441
3442 enablestring=
3443 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-optimise" >&5
3444echo $ECHO_N "checking for --${enablestring:-enable}-optimise... $ECHO_C" >&6
3445 no_cache=0
3446 # Check whether --enable-optimise or --disable-optimise was given.
3447if test "${enable_optimise+set}" = set; then
3448 enableval="$enable_optimise"
3449
3450 if test "$enableval" = yes; then
3451 ac_cv_use_optimise='wxUSE_OPTIMISE=yes'
3452 else
3453 ac_cv_use_optimise='wxUSE_OPTIMISE=no'
3454 fi
3455
3456else
3457
3458 LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}`
3459 if test "x$LINE" != x ; then
3460 eval "DEFAULT_$LINE"
3461 else
3462 no_cache=1
3463 fi
3464
3465 ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE
3466
3467fi;
3468
3469 eval "$ac_cv_use_optimise"
3470 if test "$no_cache" != 1; then
3471 echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp
3472 fi
3473
3474 if test "$wxUSE_OPTIMISE" = yes; then
3475 echo "$as_me:$LINENO: result: yes" >&5
3476echo "${ECHO_T}yes" >&6
3477 else
3478 echo "$as_me:$LINENO: result: no" >&5
3479echo "${ECHO_T}no" >&6
3480 fi
3481
3482
3483 enablestring=
3484 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug" >&5
3485echo $ECHO_N "checking for --${enablestring:-enable}-debug... $ECHO_C" >&6
3486 no_cache=0
3487 # Check whether --enable-debug or --disable-debug was given.
3488if test "${enable_debug+set}" = set; then
3489 enableval="$enable_debug"
3490
3491 if test "$enableval" = yes; then
3492 ac_cv_use_debug='wxUSE_DEBUG=yes'
3493 else
3494 ac_cv_use_debug='wxUSE_DEBUG=no'
3495 fi
3496
3497else
3498
3499 LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}`
3500 if test "x$LINE" != x ; then
3501 eval "DEFAULT_$LINE"
3502 else
3503 no_cache=1
3504 fi
3505
3506 ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG
3507
3508fi;
3509
3510 eval "$ac_cv_use_debug"
3511 if test "$no_cache" != 1; then
3512 echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp
3513 fi
3514
3515 if test "$wxUSE_DEBUG" = yes; then
3516 echo "$as_me:$LINENO: result: yes" >&5
3517echo "${ECHO_T}yes" >&6
3518 else
3519 echo "$as_me:$LINENO: result: no" >&5
3520echo "${ECHO_T}no" >&6
3521 fi
3522
3523
3524 enablestring=
3525 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stl" >&5
3526echo $ECHO_N "checking for --${enablestring:-enable}-stl... $ECHO_C" >&6
3527 no_cache=0
3528 # Check whether --enable-stl or --disable-stl was given.
3529if test "${enable_stl+set}" = set; then
3530 enableval="$enable_stl"
3531
3532 if test "$enableval" = yes; then
3533 ac_cv_use_stl='wxUSE_STL=yes'
3534 else
3535 ac_cv_use_stl='wxUSE_STL=no'
3536 fi
3537
3538else
3539
3540 LINE=`grep "wxUSE_STL" ${wx_arg_cache_file}`
3541 if test "x$LINE" != x ; then
3542 eval "DEFAULT_$LINE"
3543 else
3544 no_cache=1
3545 fi
3546
3547 ac_cv_use_stl='wxUSE_STL='$DEFAULT_wxUSE_STL
3548
3549fi;
3550
3551 eval "$ac_cv_use_stl"
3552 if test "$no_cache" != 1; then
3553 echo $ac_cv_use_stl >> ${wx_arg_cache_file}.tmp
3554 fi
3555
3556 if test "$wxUSE_STL" = yes; then
3557 echo "$as_me:$LINENO: result: yes" >&5
3558echo "${ECHO_T}yes" >&6
3559 else
3560 echo "$as_me:$LINENO: result: no" >&5
3561echo "${ECHO_T}no" >&6
3562 fi
3563
3564if test "$USE_OS2" = "1"; then
3565
3566 enablestring=
3567 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-omf" >&5
3568echo $ECHO_N "checking for --${enablestring:-enable}-omf... $ECHO_C" >&6
3569 no_cache=0
3570 # Check whether --enable-omf or --disable-omf was given.
3571if test "${enable_omf+set}" = set; then
3572 enableval="$enable_omf"
3573
3574 if test "$enableval" = yes; then
3575 ac_cv_use_omf='wxUSE_OMF=yes'
3576 else
3577 ac_cv_use_omf='wxUSE_OMF=no'
3578 fi
3579
3580else
3581
3582 LINE=`grep "wxUSE_OMF" ${wx_arg_cache_file}`
3583 if test "x$LINE" != x ; then
3584 eval "DEFAULT_$LINE"
3585 else
3586 no_cache=1
3587 fi
3588
3589 ac_cv_use_omf='wxUSE_OMF='$DEFAULT_wxUSE_OMF
3590
3591fi;
3592
3593 eval "$ac_cv_use_omf"
3594 if test "$no_cache" != 1; then
3595 echo $ac_cv_use_omf >> ${wx_arg_cache_file}.tmp
3596 fi
3597
3598 if test "$wxUSE_OMF" = yes; then
3599 echo "$as_me:$LINENO: result: yes" >&5
3600echo "${ECHO_T}yes" >&6
3601 else
3602 echo "$as_me:$LINENO: result: no" >&5
3603echo "${ECHO_T}no" >&6
3604 fi
3605
3606fi
3607
3608if test "$wxUSE_DEBUG" = "yes"; then
3609 DEFAULT_wxUSE_DEBUG_FLAG=yes
3610 DEFAULT_wxUSE_DEBUG_INFO=yes
3611 BUILD=debug
3612elif test "$wxUSE_DEBUG" = "no"; then
3613 DEFAULT_wxUSE_DEBUG_FLAG=no
3614 DEFAULT_wxUSE_DEBUG_INFO=no
3615 BUILD=release
3616fi
3617
3618
3619 enablestring=
3620 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_flag" >&5
3621echo $ECHO_N "checking for --${enablestring:-enable}-debug_flag... $ECHO_C" >&6
3622 no_cache=0
3623 # Check whether --enable-debug_flag or --disable-debug_flag was given.
3624if test "${enable_debug_flag+set}" = set; then
3625 enableval="$enable_debug_flag"
3626
3627 if test "$enableval" = yes; then
3628 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes'
3629 else
3630 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no'
3631 fi
3632
3633else
3634
3635 LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}`
3636 if test "x$LINE" != x ; then
3637 eval "DEFAULT_$LINE"
3638 else
3639 no_cache=1
3640 fi
3641
3642 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG
3643
3644fi;
3645
3646 eval "$ac_cv_use_debug_flag"
3647 if test "$no_cache" != 1; then
3648 echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp
3649 fi
3650
3651 if test "$wxUSE_DEBUG_FLAG" = yes; then
3652 echo "$as_me:$LINENO: result: yes" >&5
3653echo "${ECHO_T}yes" >&6
3654 else
3655 echo "$as_me:$LINENO: result: no" >&5
3656echo "${ECHO_T}no" >&6
3657 fi
3658
3659
3660 enablestring=
3661 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_info" >&5
3662echo $ECHO_N "checking for --${enablestring:-enable}-debug_info... $ECHO_C" >&6
3663 no_cache=0
3664 # Check whether --enable-debug_info or --disable-debug_info was given.
3665if test "${enable_debug_info+set}" = set; then
3666 enableval="$enable_debug_info"
3667
3668 if test "$enableval" = yes; then
3669 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes'
3670 else
3671 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no'
3672 fi
3673
3674else
3675
3676 LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}`
3677 if test "x$LINE" != x ; then
3678 eval "DEFAULT_$LINE"
3679 else
3680 no_cache=1
3681 fi
3682
3683 ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO
3684
3685fi;
3686
3687 eval "$ac_cv_use_debug_info"
3688 if test "$no_cache" != 1; then
3689 echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp
3690 fi
3691
3692 if test "$wxUSE_DEBUG_INFO" = yes; then
3693 echo "$as_me:$LINENO: result: yes" >&5
3694echo "${ECHO_T}yes" >&6
3695 else
3696 echo "$as_me:$LINENO: result: no" >&5
3697echo "${ECHO_T}no" >&6
3698 fi
3699
3700
3701 enablestring=
3702 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_gdb" >&5
3703echo $ECHO_N "checking for --${enablestring:-enable}-debug_gdb... $ECHO_C" >&6
3704 no_cache=0
3705 # Check whether --enable-debug_gdb or --disable-debug_gdb was given.
3706if test "${enable_debug_gdb+set}" = set; then
3707 enableval="$enable_debug_gdb"
3708
3709 if test "$enableval" = yes; then
3710 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes'
3711 else
3712 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no'
3713 fi
3714
3715else
3716
3717 LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}`
3718 if test "x$LINE" != x ; then
3719 eval "DEFAULT_$LINE"
3720 else
3721 no_cache=1
3722 fi
3723
3724 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB
3725
3726fi;
3727
3728 eval "$ac_cv_use_debug_gdb"
3729 if test "$no_cache" != 1; then
3730 echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp
3731 fi
3732
3733 if test "$wxUSE_DEBUG_GDB" = yes; then
3734 echo "$as_me:$LINENO: result: yes" >&5
3735echo "${ECHO_T}yes" >&6
3736 else
3737 echo "$as_me:$LINENO: result: no" >&5
3738echo "${ECHO_T}no" >&6
3739 fi
3740
3741
3742 enablestring=
3743 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_cntxt" >&5
3744echo $ECHO_N "checking for --${enablestring:-enable}-debug_cntxt... $ECHO_C" >&6
3745 no_cache=0
3746 # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given.
3747if test "${enable_debug_cntxt+set}" = set; then
3748 enableval="$enable_debug_cntxt"
3749
3750 if test "$enableval" = yes; then
3751 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes'
3752 else
3753 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no'
3754 fi
3755
3756else
3757
3758 LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}`
3759 if test "x$LINE" != x ; then
3760 eval "DEFAULT_$LINE"
3761 else
3762 no_cache=1
3763 fi
3764
3765 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT
3766
3767fi;
3768
3769 eval "$ac_cv_use_debug_cntxt"
3770 if test "$no_cache" != 1; then
3771 echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp
3772 fi
3773
3774 if test "$wxUSE_DEBUG_CONTEXT" = yes; then
3775 echo "$as_me:$LINENO: result: yes" >&5
3776echo "${ECHO_T}yes" >&6
3777 else
3778 echo "$as_me:$LINENO: result: no" >&5
3779echo "${ECHO_T}no" >&6
3780 fi
3781
3782
3783 enablestring=
3784 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mem_tracing" >&5
3785echo $ECHO_N "checking for --${enablestring:-enable}-mem_tracing... $ECHO_C" >&6
3786 no_cache=0
3787 # Check whether --enable-mem_tracing or --disable-mem_tracing was given.
3788if test "${enable_mem_tracing+set}" = set; then
3789 enableval="$enable_mem_tracing"
3790
3791 if test "$enableval" = yes; then
3792 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes'
3793 else
3794 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no'
3795 fi
3796
3797else
3798
3799 LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}`
3800 if test "x$LINE" != x ; then
3801 eval "DEFAULT_$LINE"
3802 else
3803 no_cache=1
3804 fi
3805
3806 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING
3807
3808fi;
3809
3810 eval "$ac_cv_use_mem_tracing"
3811 if test "$no_cache" != 1; then
3812 echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp
3813 fi
3814
3815 if test "$wxUSE_MEM_TRACING" = yes; then
3816 echo "$as_me:$LINENO: result: yes" >&5
3817echo "${ECHO_T}yes" >&6
3818 else
3819 echo "$as_me:$LINENO: result: no" >&5
3820echo "${ECHO_T}no" >&6
3821 fi
3822
3823
3824 enablestring=
3825 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-profile" >&5
3826echo $ECHO_N "checking for --${enablestring:-enable}-profile... $ECHO_C" >&6
3827 no_cache=0
3828 # Check whether --enable-profile or --disable-profile was given.
3829if test "${enable_profile+set}" = set; then
3830 enableval="$enable_profile"
3831
3832 if test "$enableval" = yes; then
3833 ac_cv_use_profile='wxUSE_PROFILE=yes'
3834 else
3835 ac_cv_use_profile='wxUSE_PROFILE=no'
3836 fi
3837
3838else
3839
3840 LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}`
3841 if test "x$LINE" != x ; then
3842 eval "DEFAULT_$LINE"
3843 else
3844 no_cache=1
3845 fi
3846
3847 ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE
3848
3849fi;
3850
3851 eval "$ac_cv_use_profile"
3852 if test "$no_cache" != 1; then
3853 echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp
3854 fi
3855
3856 if test "$wxUSE_PROFILE" = yes; then
3857 echo "$as_me:$LINENO: result: yes" >&5
3858echo "${ECHO_T}yes" >&6
3859 else
3860 echo "$as_me:$LINENO: result: no" >&5
3861echo "${ECHO_T}no" >&6
3862 fi
3863
3864
3865 enablestring=
3866 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_rtti" >&5
3867echo $ECHO_N "checking for --${enablestring:-enable}-no_rtti... $ECHO_C" >&6
3868 no_cache=0
3869 # Check whether --enable-no_rtti or --disable-no_rtti was given.
3870if test "${enable_no_rtti+set}" = set; then
3871 enableval="$enable_no_rtti"
3872
3873 if test "$enableval" = yes; then
3874 ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes'
3875 else
3876 ac_cv_use_no_rtti='wxUSE_NO_RTTI=no'
3877 fi
3878
3879else
3880
3881 LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}`
3882 if test "x$LINE" != x ; then
3883 eval "DEFAULT_$LINE"
3884 else
3885 no_cache=1
3886 fi
3887
3888 ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI
3889
3890fi;
3891
3892 eval "$ac_cv_use_no_rtti"
3893 if test "$no_cache" != 1; then
3894 echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp
3895 fi
3896
3897 if test "$wxUSE_NO_RTTI" = yes; then
3898 echo "$as_me:$LINENO: result: yes" >&5
3899echo "${ECHO_T}yes" >&6
3900 else
3901 echo "$as_me:$LINENO: result: no" >&5
3902echo "${ECHO_T}no" >&6
3903 fi
3904
3905
3906 enablestring=
3907 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_exceptions" >&5
3908echo $ECHO_N "checking for --${enablestring:-enable}-no_exceptions... $ECHO_C" >&6
3909 no_cache=0
3910 # Check whether --enable-no_exceptions or --disable-no_exceptions was given.
3911if test "${enable_no_exceptions+set}" = set; then
3912 enableval="$enable_no_exceptions"
3913
3914 if test "$enableval" = yes; then
3915 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes'
3916 else
3917 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no'
3918 fi
3919
3920else
3921
3922 LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}`
3923 if test "x$LINE" != x ; then
3924 eval "DEFAULT_$LINE"
3925 else
3926 no_cache=1
3927 fi
3928
3929 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS
3930
3931fi;
3932
3933 eval "$ac_cv_use_no_exceptions"
3934 if test "$no_cache" != 1; then
3935 echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp
3936 fi
3937
3938 if test "$wxUSE_NO_EXCEPTIONS" = yes; then
3939 echo "$as_me:$LINENO: result: yes" >&5
3940echo "${ECHO_T}yes" >&6
3941 else
3942 echo "$as_me:$LINENO: result: no" >&5
3943echo "${ECHO_T}no" >&6
3944 fi
3945
3946
3947 enablestring=
3948 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-permissive" >&5
3949echo $ECHO_N "checking for --${enablestring:-enable}-permissive... $ECHO_C" >&6
3950 no_cache=0
3951 # Check whether --enable-permissive or --disable-permissive was given.
3952if test "${enable_permissive+set}" = set; then
3953 enableval="$enable_permissive"
3954
3955 if test "$enableval" = yes; then
3956 ac_cv_use_permissive='wxUSE_PERMISSIVE=yes'
3957 else
3958 ac_cv_use_permissive='wxUSE_PERMISSIVE=no'
3959 fi
3960
3961else
3962
3963 LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}`
3964 if test "x$LINE" != x ; then
3965 eval "DEFAULT_$LINE"
3966 else
3967 no_cache=1
3968 fi
3969
3970 ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE
3971
3972fi;
3973
3974 eval "$ac_cv_use_permissive"
3975 if test "$no_cache" != 1; then
3976 echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp
3977 fi
3978
3979 if test "$wxUSE_PERMISSIVE" = yes; then
3980 echo "$as_me:$LINENO: result: yes" >&5
3981echo "${ECHO_T}yes" >&6
3982 else
3983 echo "$as_me:$LINENO: result: no" >&5
3984echo "${ECHO_T}no" >&6
3985 fi
3986
3987
3988 enablestring=
3989 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_deps" >&5
3990echo $ECHO_N "checking for --${enablestring:-enable}-no_deps... $ECHO_C" >&6
3991 no_cache=0
3992 # Check whether --enable-no_deps or --disable-no_deps was given.
3993if test "${enable_no_deps+set}" = set; then
3994 enableval="$enable_no_deps"
3995
3996 if test "$enableval" = yes; then
3997 ac_cv_use_no_deps='wxUSE_NO_DEPS=yes'
3998 else
3999 ac_cv_use_no_deps='wxUSE_NO_DEPS=no'
4000 fi
4001
4002else
4003
4004 LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}`
4005 if test "x$LINE" != x ; then
4006 eval "DEFAULT_$LINE"
4007 else
4008 no_cache=1
4009 fi
4010
4011 ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS
4012
4013fi;
4014
4015 eval "$ac_cv_use_no_deps"
4016 if test "$no_cache" != 1; then
4017 echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp
4018 fi
4019
4020 if test "$wxUSE_NO_DEPS" = yes; then
4021 echo "$as_me:$LINENO: result: yes" >&5
4022echo "${ECHO_T}yes" >&6
4023 else
4024 echo "$as_me:$LINENO: result: no" >&5
4025echo "${ECHO_T}no" >&6
4026 fi
4027
4028
4029
4030 enablestring=
4031 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat22" >&5
4032echo $ECHO_N "checking for --${enablestring:-enable}-compat22... $ECHO_C" >&6
4033 no_cache=0
4034 # Check whether --enable-compat22 or --disable-compat22 was given.
4035if test "${enable_compat22+set}" = set; then
4036 enableval="$enable_compat22"
4037
4038 if test "$enableval" = yes; then
4039 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=yes'
4040 else
4041 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=no'
4042 fi
4043
4044else
4045
4046 LINE=`grep "WXWIN_COMPATIBILITY_2_2" ${wx_arg_cache_file}`
4047 if test "x$LINE" != x ; then
4048 eval "DEFAULT_$LINE"
4049 else
4050 no_cache=1
4051 fi
4052
4053 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2='$DEFAULT_WXWIN_COMPATIBILITY_2_2
4054
4055fi;
4056
4057 eval "$ac_cv_use_compat22"
4058 if test "$no_cache" != 1; then
4059 echo $ac_cv_use_compat22 >> ${wx_arg_cache_file}.tmp
4060 fi
4061
4062 if test "$WXWIN_COMPATIBILITY_2_2" = yes; then
4063 echo "$as_me:$LINENO: result: yes" >&5
4064echo "${ECHO_T}yes" >&6
4065 else
4066 echo "$as_me:$LINENO: result: no" >&5
4067echo "${ECHO_T}no" >&6
4068 fi
4069
4070
4071 enablestring=disable
4072 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat24" >&5
4073echo $ECHO_N "checking for --${enablestring:-enable}-compat24... $ECHO_C" >&6
4074 no_cache=0
4075 # Check whether --enable-compat24 or --disable-compat24 was given.
4076if test "${enable_compat24+set}" = set; then
4077 enableval="$enable_compat24"
4078
4079 if test "$enableval" = yes; then
4080 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=yes'
4081 else
4082 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=no'
4083 fi
4084
4085else
4086
4087 LINE=`grep "WXWIN_COMPATIBILITY_2_4" ${wx_arg_cache_file}`
4088 if test "x$LINE" != x ; then
4089 eval "DEFAULT_$LINE"
4090 else
4091 no_cache=1
4092 fi
4093
4094 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4='$DEFAULT_WXWIN_COMPATIBILITY_2_4
4095
4096fi;
4097
4098 eval "$ac_cv_use_compat24"
4099 if test "$no_cache" != 1; then
4100 echo $ac_cv_use_compat24 >> ${wx_arg_cache_file}.tmp
4101 fi
4102
4103 if test "$WXWIN_COMPATIBILITY_2_4" = yes; then
4104 echo "$as_me:$LINENO: result: yes" >&5
4105echo "${ECHO_T}yes" >&6
4106 else
4107 echo "$as_me:$LINENO: result: no" >&5
4108echo "${ECHO_T}no" >&6
4109 fi
4110
4111
ffa0583f
RL
4112
4113 enablestring=
4114 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-rpath" >&5
4115echo $ECHO_N "checking for --${enablestring:-enable}-rpath... $ECHO_C" >&6
4116 no_cache=0
4117 # Check whether --enable-rpath or --disable-rpath was given.
a848cd7e
SC
4118if test "${enable_rpath+set}" = set; then
4119 enableval="$enable_rpath"
ffa0583f
RL
4120
4121 if test "$enableval" = yes; then
4122 ac_cv_use_rpath='wxUSE_RPATH=yes'
4123 else
4124 ac_cv_use_rpath='wxUSE_RPATH=no'
4125 fi
4126
4127else
4128
4129 LINE=`grep "wxUSE_RPATH" ${wx_arg_cache_file}`
4130 if test "x$LINE" != x ; then
4131 eval "DEFAULT_$LINE"
4132 else
4133 no_cache=1
4134 fi
4135
4136 ac_cv_use_rpath='wxUSE_RPATH='$DEFAULT_wxUSE_RPATH
4137
a848cd7e
SC
4138fi;
4139
ffa0583f
RL
4140 eval "$ac_cv_use_rpath"
4141 if test "$no_cache" != 1; then
4142 echo $ac_cv_use_rpath >> ${wx_arg_cache_file}.tmp
4143 fi
4144
4145 if test "$wxUSE_RPATH" = yes; then
4146 echo "$as_me:$LINENO: result: yes" >&5
4147echo "${ECHO_T}yes" >&6
4148 else
4149 echo "$as_me:$LINENO: result: no" >&5
4150echo "${ECHO_T}no" >&6
4151 fi
4152
a848cd7e
SC
4153
4154
4155
4156
4157 enablestring=
4158 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-intl" >&5
4159echo $ECHO_N "checking for --${enablestring:-enable}-intl... $ECHO_C" >&6
4160 no_cache=0
4161 # Check whether --enable-intl or --disable-intl was given.
4162if test "${enable_intl+set}" = set; then
4163 enableval="$enable_intl"
4164
4165 if test "$enableval" = yes; then
4166 ac_cv_use_intl='wxUSE_INTL=yes'
4167 else
4168 ac_cv_use_intl='wxUSE_INTL=no'
4169 fi
4170
4171else
4172
4173 LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}`
4174 if test "x$LINE" != x ; then
4175 eval "DEFAULT_$LINE"
4176 else
4177 no_cache=1
4178 fi
4179
4180 ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL
4181
4182fi;
4183
4184 eval "$ac_cv_use_intl"
4185 if test "$no_cache" != 1; then
4186 echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp
4187 fi
4188
4189 if test "$wxUSE_INTL" = yes; then
4190 echo "$as_me:$LINENO: result: yes" >&5
4191echo "${ECHO_T}yes" >&6
4192 else
4193 echo "$as_me:$LINENO: result: no" >&5
4194echo "${ECHO_T}no" >&6
4195 fi
4196
4197
4198 enablestring=
4199 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-config" >&5
4200echo $ECHO_N "checking for --${enablestring:-enable}-config... $ECHO_C" >&6
4201 no_cache=0
4202 # Check whether --enable-config or --disable-config was given.
4203if test "${enable_config+set}" = set; then
4204 enableval="$enable_config"
4205
4206 if test "$enableval" = yes; then
4207 ac_cv_use_config='wxUSE_CONFIG=yes'
4208 else
4209 ac_cv_use_config='wxUSE_CONFIG=no'
4210 fi
4211
4212else
4213
4214 LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}`
4215 if test "x$LINE" != x ; then
4216 eval "DEFAULT_$LINE"
4217 else
4218 no_cache=1
4219 fi
4220
4221 ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG
4222
4223fi;
4224
4225 eval "$ac_cv_use_config"
4226 if test "$no_cache" != 1; then
4227 echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp
4228 fi
4229
4230 if test "$wxUSE_CONFIG" = yes; then
4231 echo "$as_me:$LINENO: result: yes" >&5
4232echo "${ECHO_T}yes" >&6
4233 else
4234 echo "$as_me:$LINENO: result: no" >&5
4235echo "${ECHO_T}no" >&6
4236 fi
4237
4238
4239
4240 enablestring=
4241 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocols" >&5
4242echo $ECHO_N "checking for --${enablestring:-enable}-protocols... $ECHO_C" >&6
4243 no_cache=0
4244 # Check whether --enable-protocols or --disable-protocols was given.
4245if test "${enable_protocols+set}" = set; then
4246 enableval="$enable_protocols"
4247
4248 if test "$enableval" = yes; then
4249 ac_cv_use_protocols='wxUSE_PROTOCOL=yes'
4250 else
4251 ac_cv_use_protocols='wxUSE_PROTOCOL=no'
4252 fi
4253
4254else
4255
4256 LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
4257 if test "x$LINE" != x ; then
4258 eval "DEFAULT_$LINE"
4259 else
4260 no_cache=1
4261 fi
4262
4263 ac_cv_use_protocols='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
4264
4265fi;
4266
4267 eval "$ac_cv_use_protocols"
4268 if test "$no_cache" != 1; then
4269 echo $ac_cv_use_protocols >> ${wx_arg_cache_file}.tmp
4270 fi
4271
4272 if test "$wxUSE_PROTOCOL" = yes; then
4273 echo "$as_me:$LINENO: result: yes" >&5
4274echo "${ECHO_T}yes" >&6
4275 else
4276 echo "$as_me:$LINENO: result: no" >&5
4277echo "${ECHO_T}no" >&6
4278 fi
4279
4280
4281 enablestring=
4282 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ftp" >&5
4283echo $ECHO_N "checking for --${enablestring:-enable}-ftp... $ECHO_C" >&6
4284 no_cache=0
4285 # Check whether --enable-ftp or --disable-ftp was given.
4286if test "${enable_ftp+set}" = set; then
4287 enableval="$enable_ftp"
4288
4289 if test "$enableval" = yes; then
4290 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=yes'
4291 else
4292 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=no'
4293 fi
4294
4295else
4296
4297 LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
4298 if test "x$LINE" != x ; then
4299 eval "DEFAULT_$LINE"
4300 else
4301 no_cache=1
4302 fi
4303
4304 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
4305
4306fi;
4307
4308 eval "$ac_cv_use_ftp"
4309 if test "$no_cache" != 1; then
4310 echo $ac_cv_use_ftp >> ${wx_arg_cache_file}.tmp
4311 fi
4312
4313 if test "$wxUSE_PROTOCOL_FTP" = yes; then
4314 echo "$as_me:$LINENO: result: yes" >&5
4315echo "${ECHO_T}yes" >&6
4316 else
4317 echo "$as_me:$LINENO: result: no" >&5
4318echo "${ECHO_T}no" >&6
4319 fi
4320
4321
4322 enablestring=
4323 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-http" >&5
4324echo $ECHO_N "checking for --${enablestring:-enable}-http... $ECHO_C" >&6
4325 no_cache=0
4326 # Check whether --enable-http or --disable-http was given.
4327if test "${enable_http+set}" = set; then
4328 enableval="$enable_http"
4329
4330 if test "$enableval" = yes; then
4331 ac_cv_use_http='wxUSE_PROTOCOL_HTTP=yes'
4332 else
4333 ac_cv_use_http='wxUSE_PROTOCOL_HTTP=no'
4334 fi
4335
4336else
4337
4338 LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
4339 if test "x$LINE" != x ; then
4340 eval "DEFAULT_$LINE"
4341 else
4342 no_cache=1
4343 fi
4344
4345 ac_cv_use_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
4346
4347fi;
4348
4349 eval "$ac_cv_use_http"
4350 if test "$no_cache" != 1; then
4351 echo $ac_cv_use_http >> ${wx_arg_cache_file}.tmp
4352 fi
4353
4354 if test "$wxUSE_PROTOCOL_HTTP" = yes; then
4355 echo "$as_me:$LINENO: result: yes" >&5
4356echo "${ECHO_T}yes" >&6
4357 else
4358 echo "$as_me:$LINENO: result: no" >&5
4359echo "${ECHO_T}no" >&6
4360 fi
4361
4362
4363 enablestring=
4364 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fileproto" >&5
4365echo $ECHO_N "checking for --${enablestring:-enable}-fileproto... $ECHO_C" >&6
4366 no_cache=0
4367 # Check whether --enable-fileproto or --disable-fileproto was given.
4368if test "${enable_fileproto+set}" = set; then
4369 enableval="$enable_fileproto"
4370
4371 if test "$enableval" = yes; then
4372 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=yes'
4373 else
4374 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=no'
4375 fi
4376
4377else
4378
4379 LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
4380 if test "x$LINE" != x ; then
4381 eval "DEFAULT_$LINE"
4382 else
4383 no_cache=1
4384 fi
4385
4386 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
4387
4388fi;
4389
4390 eval "$ac_cv_use_fileproto"
4391 if test "$no_cache" != 1; then
4392 echo $ac_cv_use_fileproto >> ${wx_arg_cache_file}.tmp
4393 fi
4394
4395 if test "$wxUSE_PROTOCOL_FILE" = yes; then
4396 echo "$as_me:$LINENO: result: yes" >&5
4397echo "${ECHO_T}yes" >&6
4398 else
4399 echo "$as_me:$LINENO: result: no" >&5
4400echo "${ECHO_T}no" >&6
4401 fi
4402
4403
4404 enablestring=
4405 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sockets" >&5
4406echo $ECHO_N "checking for --${enablestring:-enable}-sockets... $ECHO_C" >&6
4407 no_cache=0
4408 # Check whether --enable-sockets or --disable-sockets was given.
4409if test "${enable_sockets+set}" = set; then
4410 enableval="$enable_sockets"
4411
4412 if test "$enableval" = yes; then
4413 ac_cv_use_sockets='wxUSE_SOCKETS=yes'
4414 else
4415 ac_cv_use_sockets='wxUSE_SOCKETS=no'
4416 fi
4417
4418else
4419
4420 LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}`
4421 if test "x$LINE" != x ; then
4422 eval "DEFAULT_$LINE"
4423 else
4424 no_cache=1
4425 fi
4426
4427 ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS
4428
4429fi;
4430
4431 eval "$ac_cv_use_sockets"
4432 if test "$no_cache" != 1; then
4433 echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp
4434 fi
4435
4436 if test "$wxUSE_SOCKETS" = yes; then
4437 echo "$as_me:$LINENO: result: yes" >&5
4438echo "${ECHO_T}yes" >&6
4439 else
4440 echo "$as_me:$LINENO: result: no" >&5
4441echo "${ECHO_T}no" >&6
4442 fi
4443
4444
4445 enablestring=
4446 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ole" >&5
4447echo $ECHO_N "checking for --${enablestring:-enable}-ole... $ECHO_C" >&6
4448 no_cache=0
4449 # Check whether --enable-ole or --disable-ole was given.
4450if test "${enable_ole+set}" = set; then
4451 enableval="$enable_ole"
4452
4453 if test "$enableval" = yes; then
4454 ac_cv_use_ole='wxUSE_OLE=yes'
4455 else
4456 ac_cv_use_ole='wxUSE_OLE=no'
4457 fi
4458
4459else
4460
4461 LINE=`grep "wxUSE_OLE" ${wx_arg_cache_file}`
4462 if test "x$LINE" != x ; then
4463 eval "DEFAULT_$LINE"
4464 else
4465 no_cache=1
4466 fi
4467
4468 ac_cv_use_ole='wxUSE_OLE='$DEFAULT_wxUSE_OLE
4469
4470fi;
4471
4472 eval "$ac_cv_use_ole"
4473 if test "$no_cache" != 1; then
4474 echo $ac_cv_use_ole >> ${wx_arg_cache_file}.tmp
4475 fi
4476
4477 if test "$wxUSE_OLE" = yes; then
4478 echo "$as_me:$LINENO: result: yes" >&5
4479echo "${ECHO_T}yes" >&6
4480 else
4481 echo "$as_me:$LINENO: result: no" >&5
4482echo "${ECHO_T}no" >&6
4483 fi
4484
4485
4486 enablestring=
4487 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dataobj" >&5
4488echo $ECHO_N "checking for --${enablestring:-enable}-dataobj... $ECHO_C" >&6
4489 no_cache=0
4490 # Check whether --enable-dataobj or --disable-dataobj was given.
4491if test "${enable_dataobj+set}" = set; then
4492 enableval="$enable_dataobj"
4493
4494 if test "$enableval" = yes; then
4495 ac_cv_use_dataobj='wxUSE_DATAOBJ=yes'
4496 else
4497 ac_cv_use_dataobj='wxUSE_DATAOBJ=no'
4498 fi
4499
4500else
4501
4502 LINE=`grep "wxUSE_DATAOBJ" ${wx_arg_cache_file}`
4503 if test "x$LINE" != x ; then
4504 eval "DEFAULT_$LINE"
4505 else
4506 no_cache=1
4507 fi
4508
4509 ac_cv_use_dataobj='wxUSE_DATAOBJ='$DEFAULT_wxUSE_DATAOBJ
4510
4511fi;
4512
4513 eval "$ac_cv_use_dataobj"
4514 if test "$no_cache" != 1; then
4515 echo $ac_cv_use_dataobj >> ${wx_arg_cache_file}.tmp
4516 fi
4517
4518 if test "$wxUSE_DATAOBJ" = yes; then
4519 echo "$as_me:$LINENO: result: yes" >&5
4520echo "${ECHO_T}yes" >&6
4521 else
4522 echo "$as_me:$LINENO: result: no" >&5
4523echo "${ECHO_T}no" >&6
4524 fi
4525
4526
4527
4528 enablestring=
4529 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ipc" >&5
4530echo $ECHO_N "checking for --${enablestring:-enable}-ipc... $ECHO_C" >&6
4531 no_cache=0
4532 # Check whether --enable-ipc or --disable-ipc was given.
4533if test "${enable_ipc+set}" = set; then
4534 enableval="$enable_ipc"
4535
4536 if test "$enableval" = yes; then
4537 ac_cv_use_ipc='wxUSE_IPC=yes'
4538 else
4539 ac_cv_use_ipc='wxUSE_IPC=no'
4540 fi
4541
4542else
4543
4544 LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}`
4545 if test "x$LINE" != x ; then
4546 eval "DEFAULT_$LINE"
4547 else
4548 no_cache=1
4549 fi
4550
4551 ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC
4552
4553fi;
4554
4555 eval "$ac_cv_use_ipc"
4556 if test "$no_cache" != 1; then
4557 echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp
4558 fi
4559
4560 if test "$wxUSE_IPC" = yes; then
4561 echo "$as_me:$LINENO: result: yes" >&5
4562echo "${ECHO_T}yes" >&6
4563 else
4564 echo "$as_me:$LINENO: result: no" >&5
4565echo "${ECHO_T}no" >&6
4566 fi
4567
4568
4569
4570 enablestring=
4571 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-apple_ieee" >&5
4572echo $ECHO_N "checking for --${enablestring:-enable}-apple_ieee... $ECHO_C" >&6
4573 no_cache=0
4574 # Check whether --enable-apple_ieee or --disable-apple_ieee was given.
4575if test "${enable_apple_ieee+set}" = set; then
4576 enableval="$enable_apple_ieee"
4577
4578 if test "$enableval" = yes; then
4579 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes'
4580 else
4581 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no'
4582 fi
4583
4584else
4585
4586 LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}`
4587 if test "x$LINE" != x ; then
4588 eval "DEFAULT_$LINE"
4589 else
4590 no_cache=1
4591 fi
4592
4593 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE
4594
4595fi;
4596
4597 eval "$ac_cv_use_apple_ieee"
4598 if test "$no_cache" != 1; then
4599 echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp
4600 fi
4601
4602 if test "$wxUSE_APPLE_IEEE" = yes; then
4603 echo "$as_me:$LINENO: result: yes" >&5
4604echo "${ECHO_T}yes" >&6
4605 else
4606 echo "$as_me:$LINENO: result: no" >&5
4607echo "${ECHO_T}no" >&6
4608 fi
4609
4610
4611 enablestring=
4612 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-catch_segvs" >&5
4613echo $ECHO_N "checking for --${enablestring:-enable}-catch_segvs... $ECHO_C" >&6
4614 no_cache=0
4615 # Check whether --enable-catch_segvs or --disable-catch_segvs was given.
4616if test "${enable_catch_segvs+set}" = set; then
4617 enableval="$enable_catch_segvs"
4618
4619 if test "$enableval" = yes; then
4620 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes'
4621 else
4622 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no'
4623 fi
4624
4625else
4626
4627 LINE=`grep "wxUSE_ON_FATAL_EXCEPTION" ${wx_arg_cache_file}`
4628 if test "x$LINE" != x ; then
4629 eval "DEFAULT_$LINE"
4630 else
4631 no_cache=1
4632 fi
4633
4634 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION='$DEFAULT_wxUSE_ON_FATAL_EXCEPTION
4635
4636fi;
4637
4638 eval "$ac_cv_use_catch_segvs"
4639 if test "$no_cache" != 1; then
4640 echo $ac_cv_use_catch_segvs >> ${wx_arg_cache_file}.tmp
4641 fi
4642
4643 if test "$wxUSE_ON_FATAL_EXCEPTION" = yes; then
4644 echo "$as_me:$LINENO: result: yes" >&5
4645echo "${ECHO_T}yes" >&6
4646 else
4647 echo "$as_me:$LINENO: result: no" >&5
4648echo "${ECHO_T}no" >&6
4649 fi
4650
4651
4652 enablestring=
4653 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-cmdline" >&5
4654echo $ECHO_N "checking for --${enablestring:-enable}-cmdline... $ECHO_C" >&6
4655 no_cache=0
4656 # Check whether --enable-cmdline or --disable-cmdline was given.
4657if test "${enable_cmdline+set}" = set; then
4658 enableval="$enable_cmdline"
4659
4660 if test "$enableval" = yes; then
4661 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=yes'
4662 else
4663 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=no'
4664 fi
4665
4666else
4667
4668 LINE=`grep "wxUSE_CMDLINE_PARSER" ${wx_arg_cache_file}`
4669 if test "x$LINE" != x ; then
4670 eval "DEFAULT_$LINE"
4671 else
4672 no_cache=1
4673 fi
4674
4675 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER='$DEFAULT_wxUSE_CMDLINE_PARSER
4676
4677fi;
4678
4679 eval "$ac_cv_use_cmdline"
4680 if test "$no_cache" != 1; then
4681 echo $ac_cv_use_cmdline >> ${wx_arg_cache_file}.tmp
4682 fi
4683
4684 if test "$wxUSE_CMDLINE_PARSER" = yes; then
4685 echo "$as_me:$LINENO: result: yes" >&5
4686echo "${ECHO_T}yes" >&6
4687 else
4688 echo "$as_me:$LINENO: result: no" >&5
4689echo "${ECHO_T}no" >&6
4690 fi
4691
4692
4693 enablestring=
4694 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-datetime" >&5
4695echo $ECHO_N "checking for --${enablestring:-enable}-datetime... $ECHO_C" >&6
4696 no_cache=0
4697 # Check whether --enable-datetime or --disable-datetime was given.
4698if test "${enable_datetime+set}" = set; then
4699 enableval="$enable_datetime"
4700
4701 if test "$enableval" = yes; then
4702 ac_cv_use_datetime='wxUSE_DATETIME=yes'
4703 else
4704 ac_cv_use_datetime='wxUSE_DATETIME=no'
4705 fi
4706
4707else
4708
4709 LINE=`grep "wxUSE_DATETIME" ${wx_arg_cache_file}`
4710 if test "x$LINE" != x ; then
4711 eval "DEFAULT_$LINE"
4712 else
4713 no_cache=1
4714 fi
4715
4716 ac_cv_use_datetime='wxUSE_DATETIME='$DEFAULT_wxUSE_DATETIME
4717
4718fi;
4719
4720 eval "$ac_cv_use_datetime"
4721 if test "$no_cache" != 1; then
4722 echo $ac_cv_use_datetime >> ${wx_arg_cache_file}.tmp
4723 fi
4724
4725 if test "$wxUSE_DATETIME" = yes; then
4726 echo "$as_me:$LINENO: result: yes" >&5
4727echo "${ECHO_T}yes" >&6
4728 else
4729 echo "$as_me:$LINENO: result: no" >&5
4730echo "${ECHO_T}no" >&6
4731 fi
4732
4733
4734 enablestring=
4735 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dialupman" >&5
4736echo $ECHO_N "checking for --${enablestring:-enable}-dialupman... $ECHO_C" >&6
4737 no_cache=0
4738 # Check whether --enable-dialupman or --disable-dialupman was given.
4739if test "${enable_dialupman+set}" = set; then
4740 enableval="$enable_dialupman"
4741
4742 if test "$enableval" = yes; then
4743 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes'
4744 else
4745 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no'
4746 fi
4747
4748else
4749
4750 LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}`
4751 if test "x$LINE" != x ; then
4752 eval "DEFAULT_$LINE"
4753 else
4754 no_cache=1
4755 fi
4756
4757 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER
4758
4759fi;
4760
4761 eval "$ac_cv_use_dialupman"
4762 if test "$no_cache" != 1; then
4763 echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp
4764 fi
4765
4766 if test "$wxUSE_DIALUP_MANAGER" = yes; then
4767 echo "$as_me:$LINENO: result: yes" >&5
4768echo "${ECHO_T}yes" >&6
4769 else
4770 echo "$as_me:$LINENO: result: no" >&5
4771echo "${ECHO_T}no" >&6
4772 fi
4773
4774
4775 enablestring=
4776 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynlib" >&5
4777echo $ECHO_N "checking for --${enablestring:-enable}-dynlib... $ECHO_C" >&6
4778 no_cache=0
4779 # Check whether --enable-dynlib or --disable-dynlib was given.
4780if test "${enable_dynlib+set}" = set; then
4781 enableval="$enable_dynlib"
4782
4783 if test "$enableval" = yes; then
4784 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes'
4785 else
4786 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no'
4787 fi
4788
4789else
4790
4791 LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}`
4792 if test "x$LINE" != x ; then
4793 eval "DEFAULT_$LINE"
4794 else
4795 no_cache=1
4796 fi
4797
4798 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS
4799
4800fi;
4801
4802 eval "$ac_cv_use_dynlib"
4803 if test "$no_cache" != 1; then
4804 echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp
4805 fi
4806
4807 if test "$wxUSE_DYNLIB_CLASS" = yes; then
4808 echo "$as_me:$LINENO: result: yes" >&5
4809echo "${ECHO_T}yes" >&6
4810 else
4811 echo "$as_me:$LINENO: result: no" >&5
4812echo "${ECHO_T}no" >&6
4813 fi
4814
4815
4816 enablestring=
4817 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynamicloader" >&5
4818echo $ECHO_N "checking for --${enablestring:-enable}-dynamicloader... $ECHO_C" >&6
4819 no_cache=0
4820 # Check whether --enable-dynamicloader or --disable-dynamicloader was given.
4821if test "${enable_dynamicloader+set}" = set; then
4822 enableval="$enable_dynamicloader"
4823
4824 if test "$enableval" = yes; then
4825 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=yes'
4826 else
4827 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=no'
4828 fi
4829
4830else
4831
4832 LINE=`grep "wxUSE_DYNAMIC_LOADER" ${wx_arg_cache_file}`
4833 if test "x$LINE" != x ; then
4834 eval "DEFAULT_$LINE"
4835 else
4836 no_cache=1
4837 fi
4838
4839 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER='$DEFAULT_wxUSE_DYNAMIC_LOADER
4840
4841fi;
4842
4843 eval "$ac_cv_use_dynamicloader"
4844 if test "$no_cache" != 1; then
4845 echo $ac_cv_use_dynamicloader >> ${wx_arg_cache_file}.tmp
4846 fi
4847
4848 if test "$wxUSE_DYNAMIC_LOADER" = yes; then
4849 echo "$as_me:$LINENO: result: yes" >&5
4850echo "${ECHO_T}yes" >&6
4851 else
4852 echo "$as_me:$LINENO: result: no" >&5
4853echo "${ECHO_T}no" >&6
4854 fi
4855
4856
4857 enablestring=
4858 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-exceptions" >&5
4859echo $ECHO_N "checking for --${enablestring:-enable}-exceptions... $ECHO_C" >&6
4860 no_cache=0
4861 # Check whether --enable-exceptions or --disable-exceptions was given.
4862if test "${enable_exceptions+set}" = set; then
4863 enableval="$enable_exceptions"
4864
4865 if test "$enableval" = yes; then
4866 ac_cv_use_exceptions='wxUSE_EXCEPTIONS=yes'
4867 else
4868 ac_cv_use_exceptions='wxUSE_EXCEPTIONS=no'
4869 fi
4870
4871else
4872
4873 LINE=`grep "wxUSE_EXCEPTIONS" ${wx_arg_cache_file}`
4874 if test "x$LINE" != x ; then
4875 eval "DEFAULT_$LINE"
4876 else
4877 no_cache=1
4878 fi
4879
4880 ac_cv_use_exceptions='wxUSE_EXCEPTIONS='$DEFAULT_wxUSE_EXCEPTIONS
4881
4882fi;
4883
4884 eval "$ac_cv_use_exceptions"
4885 if test "$no_cache" != 1; then
4886 echo $ac_cv_use_exceptions >> ${wx_arg_cache_file}.tmp
4887 fi
4888
4889 if test "$wxUSE_EXCEPTIONS" = yes; then
4890 echo "$as_me:$LINENO: result: yes" >&5
4891echo "${ECHO_T}yes" >&6
4892 else
4893 echo "$as_me:$LINENO: result: no" >&5
4894echo "${ECHO_T}no" >&6
4895 fi
4896
4897
4898 enablestring=
4899 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ffile" >&5
4900echo $ECHO_N "checking for --${enablestring:-enable}-ffile... $ECHO_C" >&6
4901 no_cache=0
4902 # Check whether --enable-ffile or --disable-ffile was given.
4903if test "${enable_ffile+set}" = set; then
4904 enableval="$enable_ffile"
4905
4906 if test "$enableval" = yes; then
4907 ac_cv_use_ffile='wxUSE_FFILE=yes'
4908 else
4909 ac_cv_use_ffile='wxUSE_FFILE=no'
4910 fi
4911
4912else
4913
4914 LINE=`grep "wxUSE_FFILE" ${wx_arg_cache_file}`
4915 if test "x$LINE" != x ; then
4916 eval "DEFAULT_$LINE"
4917 else
4918 no_cache=1
4919 fi
4920
4921 ac_cv_use_ffile='wxUSE_FFILE='$DEFAULT_wxUSE_FFILE
4922
4923fi;
4924
4925 eval "$ac_cv_use_ffile"
4926 if test "$no_cache" != 1; then
4927 echo $ac_cv_use_ffile >> ${wx_arg_cache_file}.tmp
4928 fi
4929
4930 if test "$wxUSE_FFILE" = yes; then
4931 echo "$as_me:$LINENO: result: yes" >&5
4932echo "${ECHO_T}yes" >&6
4933 else
4934 echo "$as_me:$LINENO: result: no" >&5
4935echo "${ECHO_T}no" >&6
4936 fi
4937
4938
4939 enablestring=
4940 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-file" >&5
4941echo $ECHO_N "checking for --${enablestring:-enable}-file... $ECHO_C" >&6
4942 no_cache=0
4943 # Check whether --enable-file or --disable-file was given.
4944if test "${enable_file+set}" = set; then
4945 enableval="$enable_file"
4946
4947 if test "$enableval" = yes; then
4948 ac_cv_use_file='wxUSE_FILE=yes'
4949 else
4950 ac_cv_use_file='wxUSE_FILE=no'
4951 fi
4952
4953else
4954
4955 LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}`
4956 if test "x$LINE" != x ; then
4957 eval "DEFAULT_$LINE"
4958 else
4959 no_cache=1
4960 fi
4961
4962 ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE
4963
4964fi;
4965
4966 eval "$ac_cv_use_file"
4967 if test "$no_cache" != 1; then
4968 echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp
4969 fi
4970
4971 if test "$wxUSE_FILE" = yes; then
4972 echo "$as_me:$LINENO: result: yes" >&5
4973echo "${ECHO_T}yes" >&6
4974 else
4975 echo "$as_me:$LINENO: result: no" >&5
4976echo "${ECHO_T}no" >&6
4977 fi
4978
4979
4980 enablestring=
4981 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filesystem" >&5
4982echo $ECHO_N "checking for --${enablestring:-enable}-filesystem... $ECHO_C" >&6
4983 no_cache=0
4984 # Check whether --enable-filesystem or --disable-filesystem was given.
4985if test "${enable_filesystem+set}" = set; then
4986 enableval="$enable_filesystem"
4987
4988 if test "$enableval" = yes; then
4989 ac_cv_use_filesystem='wxUSE_FILESYSTEM=yes'
4990 else
4991 ac_cv_use_filesystem='wxUSE_FILESYSTEM=no'
4992 fi
4993
4994else
4995
4996 LINE=`grep "wxUSE_FILESYSTEM" ${wx_arg_cache_file}`
4997 if test "x$LINE" != x ; then
4998 eval "DEFAULT_$LINE"
4999 else
5000 no_cache=1
5001 fi
5002
5003 ac_cv_use_filesystem='wxUSE_FILESYSTEM='$DEFAULT_wxUSE_FILESYSTEM
5004
5005fi;
5006
5007 eval "$ac_cv_use_filesystem"
5008 if test "$no_cache" != 1; then
5009 echo $ac_cv_use_filesystem >> ${wx_arg_cache_file}.tmp
5010 fi
5011
5012 if test "$wxUSE_FILESYSTEM" = yes; then
5013 echo "$as_me:$LINENO: result: yes" >&5
5014echo "${ECHO_T}yes" >&6
5015 else
5016 echo "$as_me:$LINENO: result: no" >&5
5017echo "${ECHO_T}no" >&6
5018 fi
5019
5020
5021 enablestring=
5022 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontmap" >&5
5023echo $ECHO_N "checking for --${enablestring:-enable}-fontmap... $ECHO_C" >&6
5024 no_cache=0
5025 # Check whether --enable-fontmap or --disable-fontmap was given.
5026if test "${enable_fontmap+set}" = set; then
5027 enableval="$enable_fontmap"
5028
5029 if test "$enableval" = yes; then
5030 ac_cv_use_fontmap='wxUSE_FONTMAP=yes'
5031 else
5032 ac_cv_use_fontmap='wxUSE_FONTMAP=no'
5033 fi
5034
5035else
5036
5037 LINE=`grep "wxUSE_FONTMAP" ${wx_arg_cache_file}`
5038 if test "x$LINE" != x ; then
5039 eval "DEFAULT_$LINE"
5040 else
5041 no_cache=1
5042 fi
5043
5044 ac_cv_use_fontmap='wxUSE_FONTMAP='$DEFAULT_wxUSE_FONTMAP
5045
5046fi;
5047
5048 eval "$ac_cv_use_fontmap"
5049 if test "$no_cache" != 1; then
5050 echo $ac_cv_use_fontmap >> ${wx_arg_cache_file}.tmp
5051 fi
5052
5053 if test "$wxUSE_FONTMAP" = yes; then
5054 echo "$as_me:$LINENO: result: yes" >&5
5055echo "${ECHO_T}yes" >&6
5056 else
5057 echo "$as_me:$LINENO: result: no" >&5
5058echo "${ECHO_T}no" >&6
5059 fi
5060
5061
5062 enablestring=
5063 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_inet" >&5
5064echo $ECHO_N "checking for --${enablestring:-enable}-fs_inet... $ECHO_C" >&6
5065 no_cache=0
5066 # Check whether --enable-fs_inet or --disable-fs_inet was given.
5067if test "${enable_fs_inet+set}" = set; then
5068 enableval="$enable_fs_inet"
5069
5070 if test "$enableval" = yes; then
5071 ac_cv_use_fs_inet='wxUSE_FS_INET=yes'
5072 else
5073 ac_cv_use_fs_inet='wxUSE_FS_INET=no'
5074 fi
5075
5076else
5077
5078 LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}`
5079 if test "x$LINE" != x ; then
5080 eval "DEFAULT_$LINE"
5081 else
5082 no_cache=1
5083 fi
5084
5085 ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET
5086
5087fi;
5088
5089 eval "$ac_cv_use_fs_inet"
5090 if test "$no_cache" != 1; then
5091 echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp
5092 fi
5093
5094 if test "$wxUSE_FS_INET" = yes; then
5095 echo "$as_me:$LINENO: result: yes" >&5
5096echo "${ECHO_T}yes" >&6
5097 else
5098 echo "$as_me:$LINENO: result: no" >&5
5099echo "${ECHO_T}no" >&6
5100 fi
5101
5102
5103 enablestring=
5104 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_zip" >&5
5105echo $ECHO_N "checking for --${enablestring:-enable}-fs_zip... $ECHO_C" >&6
5106 no_cache=0
5107 # Check whether --enable-fs_zip or --disable-fs_zip was given.
5108if test "${enable_fs_zip+set}" = set; then
5109 enableval="$enable_fs_zip"
5110
5111 if test "$enableval" = yes; then
5112 ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes'
5113 else
5114 ac_cv_use_fs_zip='wxUSE_FS_ZIP=no'
5115 fi
5116
5117else
5118
5119 LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}`
5120 if test "x$LINE" != x ; then
5121 eval "DEFAULT_$LINE"
5122 else
5123 no_cache=1
5124 fi
5125
5126 ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP
5127
5128fi;
5129
5130 eval "$ac_cv_use_fs_zip"
5131 if test "$no_cache" != 1; then
5132 echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp
5133 fi
5134
5135 if test "$wxUSE_FS_ZIP" = yes; then
5136 echo "$as_me:$LINENO: result: yes" >&5
5137echo "${ECHO_T}yes" >&6
5138 else
5139 echo "$as_me:$LINENO: result: no" >&5
5140echo "${ECHO_T}no" >&6
5141 fi
5142
5143
5144 enablestring=
5145 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-geometry" >&5
5146echo $ECHO_N "checking for --${enablestring:-enable}-geometry... $ECHO_C" >&6
5147 no_cache=0
5148 # Check whether --enable-geometry or --disable-geometry was given.
5149if test "${enable_geometry+set}" = set; then
5150 enableval="$enable_geometry"
5151
5152 if test "$enableval" = yes; then
5153 ac_cv_use_geometry='wxUSE_GEOMETRY=yes'
5154 else
5155 ac_cv_use_geometry='wxUSE_GEOMETRY=no'
5156 fi
5157
5158else
5159
5160 LINE=`grep "wxUSE_GEOMETRY" ${wx_arg_cache_file}`
5161 if test "x$LINE" != x ; then
5162 eval "DEFAULT_$LINE"
5163 else
5164 no_cache=1
5165 fi
5166
5167 ac_cv_use_geometry='wxUSE_GEOMETRY='$DEFAULT_wxUSE_GEOMETRY
5168
5169fi;
5170
5171 eval "$ac_cv_use_geometry"
5172 if test "$no_cache" != 1; then
5173 echo $ac_cv_use_geometry >> ${wx_arg_cache_file}.tmp
5174 fi
5175
5176 if test "$wxUSE_GEOMETRY" = yes; then
5177 echo "$as_me:$LINENO: result: yes" >&5
5178echo "${ECHO_T}yes" >&6
5179 else
5180 echo "$as_me:$LINENO: result: no" >&5
5181echo "${ECHO_T}no" >&6
5182 fi
5183
5184
5185 enablestring=
5186 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-log" >&5
5187echo $ECHO_N "checking for --${enablestring:-enable}-log... $ECHO_C" >&6
5188 no_cache=0
5189 # Check whether --enable-log or --disable-log was given.
5190if test "${enable_log+set}" = set; then
5191 enableval="$enable_log"
5192
5193 if test "$enableval" = yes; then
5194 ac_cv_use_log='wxUSE_LOG=yes'
5195 else
5196 ac_cv_use_log='wxUSE_LOG=no'
5197 fi
5198
5199else
5200
5201 LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}`
5202 if test "x$LINE" != x ; then
5203 eval "DEFAULT_$LINE"
5204 else
5205 no_cache=1
5206 fi
5207
5208 ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG
5209
5210fi;
5211
5212 eval "$ac_cv_use_log"
5213 if test "$no_cache" != 1; then
5214 echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp
5215 fi
5216
5217 if test "$wxUSE_LOG" = yes; then
5218 echo "$as_me:$LINENO: result: yes" >&5
5219echo "${ECHO_T}yes" >&6
5220 else
5221 echo "$as_me:$LINENO: result: no" >&5
5222echo "${ECHO_T}no" >&6
5223 fi
5224
5225
5226 enablestring=
5227 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-longlong" >&5
5228echo $ECHO_N "checking for --${enablestring:-enable}-longlong... $ECHO_C" >&6
5229 no_cache=0
5230 # Check whether --enable-longlong or --disable-longlong was given.
5231if test "${enable_longlong+set}" = set; then
5232 enableval="$enable_longlong"
5233
5234 if test "$enableval" = yes; then
5235 ac_cv_use_longlong='wxUSE_LONGLONG=yes'
5236 else
5237 ac_cv_use_longlong='wxUSE_LONGLONG=no'
5238 fi
5239
5240else
5241
5242 LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}`
5243 if test "x$LINE" != x ; then
5244 eval "DEFAULT_$LINE"
5245 else
5246 no_cache=1
5247 fi
5248
5249 ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG
5250
5251fi;
5252
5253 eval "$ac_cv_use_longlong"
5254 if test "$no_cache" != 1; then
5255 echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp
5256 fi
5257
5258 if test "$wxUSE_LONGLONG" = yes; then
5259 echo "$as_me:$LINENO: result: yes" >&5
5260echo "${ECHO_T}yes" >&6
5261 else
5262 echo "$as_me:$LINENO: result: no" >&5
5263echo "${ECHO_T}no" >&6
5264 fi
5265
5266
5267 enablestring=
5268 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mimetype" >&5
5269echo $ECHO_N "checking for --${enablestring:-enable}-mimetype... $ECHO_C" >&6
5270 no_cache=0
5271 # Check whether --enable-mimetype or --disable-mimetype was given.
5272if test "${enable_mimetype+set}" = set; then
5273 enableval="$enable_mimetype"
5274
5275 if test "$enableval" = yes; then
5276 ac_cv_use_mimetype='wxUSE_MIMETYPE=yes'
5277 else
5278 ac_cv_use_mimetype='wxUSE_MIMETYPE=no'
5279 fi
5280
5281else
5282
5283 LINE=`grep "wxUSE_MIMETYPE" ${wx_arg_cache_file}`
5284 if test "x$LINE" != x ; then
5285 eval "DEFAULT_$LINE"
5286 else
5287 no_cache=1
5288 fi
5289
5290 ac_cv_use_mimetype='wxUSE_MIMETYPE='$DEFAULT_wxUSE_MIMETYPE
5291
5292fi;
5293
5294 eval "$ac_cv_use_mimetype"
5295 if test "$no_cache" != 1; then
5296 echo $ac_cv_use_mimetype >> ${wx_arg_cache_file}.tmp
5297 fi
5298
5299 if test "$wxUSE_MIMETYPE" = yes; then
5300 echo "$as_me:$LINENO: result: yes" >&5
5301echo "${ECHO_T}yes" >&6
5302 else
5303 echo "$as_me:$LINENO: result: no" >&5
5304echo "${ECHO_T}no" >&6
5305 fi
5306
5307
5308 enablestring=
5309 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mslu" >&5
5310echo $ECHO_N "checking for --${enablestring:-enable}-mslu... $ECHO_C" >&6
5311 no_cache=0
5312 # Check whether --enable-mslu or --disable-mslu was given.
5313if test "${enable_mslu+set}" = set; then
5314 enableval="$enable_mslu"
5315
5316 if test "$enableval" = yes; then
5317 ac_cv_use_mslu='wxUSE_UNICODE_MSLU=yes'
5318 else
5319 ac_cv_use_mslu='wxUSE_UNICODE_MSLU=no'
5320 fi
5321
5322else
5323
5324 LINE=`grep "wxUSE_UNICODE_MSLU" ${wx_arg_cache_file}`
5325 if test "x$LINE" != x ; then
5326 eval "DEFAULT_$LINE"
5327 else
5328 no_cache=1
5329 fi
5330
5331 ac_cv_use_mslu='wxUSE_UNICODE_MSLU='$DEFAULT_wxUSE_UNICODE_MSLU
5332
5333fi;
5334
5335 eval "$ac_cv_use_mslu"
5336 if test "$no_cache" != 1; then
5337 echo $ac_cv_use_mslu >> ${wx_arg_cache_file}.tmp
5338 fi
5339
5340 if test "$wxUSE_UNICODE_MSLU" = yes; then
5341 echo "$as_me:$LINENO: result: yes" >&5
5342echo "${ECHO_T}yes" >&6
5343 else
5344 echo "$as_me:$LINENO: result: no" >&5
5345echo "${ECHO_T}no" >&6
5346 fi
5347
5348
5349 enablestring=
5350 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-snglinst" >&5
5351echo $ECHO_N "checking for --${enablestring:-enable}-snglinst... $ECHO_C" >&6
5352 no_cache=0
5353 # Check whether --enable-snglinst or --disable-snglinst was given.
5354if test "${enable_snglinst+set}" = set; then
5355 enableval="$enable_snglinst"
5356
5357 if test "$enableval" = yes; then
5358 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes'
5359 else
5360 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no'
5361 fi
5362
5363else
5364
5365 LINE=`grep "wxUSE_SNGLINST_CHECKER" ${wx_arg_cache_file}`
5366 if test "x$LINE" != x ; then
5367 eval "DEFAULT_$LINE"
5368 else
5369 no_cache=1
5370 fi
5371
5372 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER='$DEFAULT_wxUSE_SNGLINST_CHECKER
5373
5374fi;
5375
5376 eval "$ac_cv_use_snglinst"
5377 if test "$no_cache" != 1; then
5378 echo $ac_cv_use_snglinst >> ${wx_arg_cache_file}.tmp
5379 fi
5380
5381 if test "$wxUSE_SNGLINST_CHECKER" = yes; then
5382 echo "$as_me:$LINENO: result: yes" >&5
5383echo "${ECHO_T}yes" >&6
5384 else
5385 echo "$as_me:$LINENO: result: no" >&5
5386echo "${ECHO_T}no" >&6
5387 fi
5388
5389
5390 enablestring=
5391 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-streams" >&5
5392echo $ECHO_N "checking for --${enablestring:-enable}-streams... $ECHO_C" >&6
5393 no_cache=0
5394 # Check whether --enable-streams or --disable-streams was given.
5395if test "${enable_streams+set}" = set; then
5396 enableval="$enable_streams"
5397
5398 if test "$enableval" = yes; then
5399 ac_cv_use_streams='wxUSE_STREAMS=yes'
5400 else
5401 ac_cv_use_streams='wxUSE_STREAMS=no'
5402 fi
5403
5404else
5405
5406 LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}`
5407 if test "x$LINE" != x ; then
5408 eval "DEFAULT_$LINE"
5409 else
5410 no_cache=1
5411 fi
5412
5413 ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS
5414
5415fi;
5416
5417 eval "$ac_cv_use_streams"
5418 if test "$no_cache" != 1; then
5419 echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp
5420 fi
5421
5422 if test "$wxUSE_STREAMS" = yes; then
5423 echo "$as_me:$LINENO: result: yes" >&5
5424echo "${ECHO_T}yes" >&6
5425 else
5426 echo "$as_me:$LINENO: result: no" >&5
5427echo "${ECHO_T}no" >&6
5428 fi
5429
5430
5431 enablestring=
5432 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-std_iostreams" >&5
5433echo $ECHO_N "checking for --${enablestring:-enable}-std_iostreams... $ECHO_C" >&6
5434 no_cache=0
5435 # Check whether --enable-std_iostreams or --disable-std_iostreams was given.
5436if test "${enable_std_iostreams+set}" = set; then
5437 enableval="$enable_std_iostreams"
5438
5439 if test "$enableval" = yes; then
5440 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes'
5441 else
5442 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no'
5443 fi
5444
5445else
5446
5447 LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}`
5448 if test "x$LINE" != x ; then
5449 eval "DEFAULT_$LINE"
5450 else
5451 no_cache=1
5452 fi
5453
5454 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM
5455
5456fi;
5457
5458 eval "$ac_cv_use_std_iostreams"
5459 if test "$no_cache" != 1; then
5460 echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp
5461 fi
5462
5463 if test "$wxUSE_STD_IOSTREAM" = yes; then
5464 echo "$as_me:$LINENO: result: yes" >&5
5465echo "${ECHO_T}yes" >&6
5466 else
5467 echo "$as_me:$LINENO: result: no" >&5
5468echo "${ECHO_T}no" >&6
5469 fi
5470
5471
5472 enablestring=
5473 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stopwatch" >&5
5474echo $ECHO_N "checking for --${enablestring:-enable}-stopwatch... $ECHO_C" >&6
5475 no_cache=0
5476 # Check whether --enable-stopwatch or --disable-stopwatch was given.
5477if test "${enable_stopwatch+set}" = set; then
5478 enableval="$enable_stopwatch"
5479
5480 if test "$enableval" = yes; then
5481 ac_cv_use_stopwatch='wxUSE_STOPWATCH=yes'
5482 else
5483 ac_cv_use_stopwatch='wxUSE_STOPWATCH=no'
5484 fi
5485
5486else
5487
5488 LINE=`grep "wxUSE_STOPWATCH" ${wx_arg_cache_file}`
5489 if test "x$LINE" != x ; then
5490 eval "DEFAULT_$LINE"
5491 else
5492 no_cache=1
5493 fi
5494
5495 ac_cv_use_stopwatch='wxUSE_STOPWATCH='$DEFAULT_wxUSE_STOPWATCH
5496
5497fi;
5498
5499 eval "$ac_cv_use_stopwatch"
5500 if test "$no_cache" != 1; then
5501 echo $ac_cv_use_stopwatch >> ${wx_arg_cache_file}.tmp
5502 fi
5503
5504 if test "$wxUSE_STOPWATCH" = yes; then
5505 echo "$as_me:$LINENO: result: yes" >&5
5506echo "${ECHO_T}yes" >&6
5507 else
5508 echo "$as_me:$LINENO: result: no" >&5
5509echo "${ECHO_T}no" >&6
5510 fi
5511
5512
5513 enablestring=
5514 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-system_options" >&5
5515echo $ECHO_N "checking for --${enablestring:-enable}-system_options... $ECHO_C" >&6
5516 no_cache=0
5517 # Check whether --enable-system_options or --disable-system_options was given.
5518if test "${enable_system_options+set}" = set; then
5519 enableval="$enable_system_options"
5520
5521 if test "$enableval" = yes; then
5522 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=yes'
5523 else
5524 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=no'
5525 fi
5526
5527else
5528
5529 LINE=`grep "wxUSE_SYSTEM_OPTIONS" ${wx_arg_cache_file}`
5530 if test "x$LINE" != x ; then
5531 eval "DEFAULT_$LINE"
5532 else
5533 no_cache=1
5534 fi
5535
5536 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS='$DEFAULT_wxUSE_SYSTEM_OPTIONS
5537
5538fi;
5539
5540 eval "$ac_cv_use_system_options"
5541 if test "$no_cache" != 1; then
5542 echo $ac_cv_use_system_options >> ${wx_arg_cache_file}.tmp
5543 fi
5544
5545 if test "$wxUSE_SYSTEM_OPTIONS" = yes; then
5546 echo "$as_me:$LINENO: result: yes" >&5
5547echo "${ECHO_T}yes" >&6
5548 else
5549 echo "$as_me:$LINENO: result: no" >&5
5550echo "${ECHO_T}no" >&6
5551 fi
5552
5553
5554 enablestring=
5555 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textbuf" >&5
5556echo $ECHO_N "checking for --${enablestring:-enable}-textbuf... $ECHO_C" >&6
5557 no_cache=0
5558 # Check whether --enable-textbuf or --disable-textbuf was given.
5559if test "${enable_textbuf+set}" = set; then
5560 enableval="$enable_textbuf"
5561
5562 if test "$enableval" = yes; then
5563 ac_cv_use_textbuf='wxUSE_TEXTBUFFER=yes'
5564 else
5565 ac_cv_use_textbuf='wxUSE_TEXTBUFFER=no'
5566 fi
5567
5568else
5569
5570 LINE=`grep "wxUSE_TEXTBUFFER" ${wx_arg_cache_file}`
5571 if test "x$LINE" != x ; then
5572 eval "DEFAULT_$LINE"
5573 else
5574 no_cache=1
5575 fi
5576
5577 ac_cv_use_textbuf='wxUSE_TEXTBUFFER='$DEFAULT_wxUSE_TEXTBUFFER
5578
5579fi;
5580
5581 eval "$ac_cv_use_textbuf"
5582 if test "$no_cache" != 1; then
5583 echo $ac_cv_use_textbuf >> ${wx_arg_cache_file}.tmp
5584 fi
5585
5586 if test "$wxUSE_TEXTBUFFER" = yes; then
5587 echo "$as_me:$LINENO: result: yes" >&5
5588echo "${ECHO_T}yes" >&6
5589 else
5590 echo "$as_me:$LINENO: result: no" >&5
5591echo "${ECHO_T}no" >&6
5592 fi
5593
5594
5595 enablestring=
5596 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textfile" >&5
5597echo $ECHO_N "checking for --${enablestring:-enable}-textfile... $ECHO_C" >&6
5598 no_cache=0
5599 # Check whether --enable-textfile or --disable-textfile was given.
5600if test "${enable_textfile+set}" = set; then
5601 enableval="$enable_textfile"
5602
5603 if test "$enableval" = yes; then
5604 ac_cv_use_textfile='wxUSE_TEXTFILE=yes'
5605 else
5606 ac_cv_use_textfile='wxUSE_TEXTFILE=no'
5607 fi
5608
5609else
5610
5611 LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}`
5612 if test "x$LINE" != x ; then
5613 eval "DEFAULT_$LINE"
5614 else
5615 no_cache=1
5616 fi
5617
5618 ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE
5619
5620fi;
5621
5622 eval "$ac_cv_use_textfile"
5623 if test "$no_cache" != 1; then
5624 echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp
5625 fi
5626
5627 if test "$wxUSE_TEXTFILE" = yes; then
5628 echo "$as_me:$LINENO: result: yes" >&5
5629echo "${ECHO_T}yes" >&6
5630 else
5631 echo "$as_me:$LINENO: result: no" >&5
5632echo "${ECHO_T}no" >&6
5633 fi
5634
5635
5636 enablestring=
5637 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-timer" >&5
5638echo $ECHO_N "checking for --${enablestring:-enable}-timer... $ECHO_C" >&6
5639 no_cache=0
5640 # Check whether --enable-timer or --disable-timer was given.
5641if test "${enable_timer+set}" = set; then
5642 enableval="$enable_timer"
5643
5644 if test "$enableval" = yes; then
5645 ac_cv_use_timer='wxUSE_TIMER=yes'
5646 else
5647 ac_cv_use_timer='wxUSE_TIMER=no'
5648 fi
5649
5650else
5651
5652 LINE=`grep "wxUSE_TIMER" ${wx_arg_cache_file}`
5653 if test "x$LINE" != x ; then
5654 eval "DEFAULT_$LINE"
5655 else
5656 no_cache=1
5657 fi
5658
5659 ac_cv_use_timer='wxUSE_TIMER='$DEFAULT_wxUSE_TIMER
5660
5661fi;
5662
5663 eval "$ac_cv_use_timer"
5664 if test "$no_cache" != 1; then
5665 echo $ac_cv_use_timer >> ${wx_arg_cache_file}.tmp
5666 fi
5667
5668 if test "$wxUSE_TIMER" = yes; then
5669 echo "$as_me:$LINENO: result: yes" >&5
5670echo "${ECHO_T}yes" >&6
5671 else
5672 echo "$as_me:$LINENO: result: no" >&5
5673echo "${ECHO_T}no" >&6
5674 fi
5675
5676
5677 enablestring=
5678 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-unicode" >&5
5679echo $ECHO_N "checking for --${enablestring:-enable}-unicode... $ECHO_C" >&6
5680 no_cache=0
5681 # Check whether --enable-unicode or --disable-unicode was given.
5682if test "${enable_unicode+set}" = set; then
5683 enableval="$enable_unicode"
5684
5685 if test "$enableval" = yes; then
5686 ac_cv_use_unicode='wxUSE_UNICODE=yes'
5687 else
5688 ac_cv_use_unicode='wxUSE_UNICODE=no'
5689 fi
5690
5691else
5692
5693 LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}`
5694 if test "x$LINE" != x ; then
5695 eval "DEFAULT_$LINE"
5696 else
5697 no_cache=1
5698 fi
5699
5700 ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE
5701
5702fi;
5703
5704 eval "$ac_cv_use_unicode"
5705 if test "$no_cache" != 1; then
5706 echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp
5707 fi
5708
5709 if test "$wxUSE_UNICODE" = yes; then
5710 echo "$as_me:$LINENO: result: yes" >&5
5711echo "${ECHO_T}yes" >&6
5712 else
5713 echo "$as_me:$LINENO: result: no" >&5
5714echo "${ECHO_T}no" >&6
5715 fi
5716
5717
5718 enablestring=
5719 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sound" >&5
5720echo $ECHO_N "checking for --${enablestring:-enable}-sound... $ECHO_C" >&6
5721 no_cache=0
5722 # Check whether --enable-sound or --disable-sound was given.
5723if test "${enable_sound+set}" = set; then
5724 enableval="$enable_sound"
5725
5726 if test "$enableval" = yes; then
5727 ac_cv_use_sound='wxUSE_SOUND=yes'
5728 else
5729 ac_cv_use_sound='wxUSE_SOUND=no'
5730 fi
5731
5732else
5733
5734 LINE=`grep "wxUSE_SOUND" ${wx_arg_cache_file}`
5735 if test "x$LINE" != x ; then
5736 eval "DEFAULT_$LINE"
5737 else
5738 no_cache=1
5739 fi
5740
5741 ac_cv_use_sound='wxUSE_SOUND='$DEFAULT_wxUSE_SOUND
5742
5743fi;
5744
5745 eval "$ac_cv_use_sound"
5746 if test "$no_cache" != 1; then
5747 echo $ac_cv_use_sound >> ${wx_arg_cache_file}.tmp
5748 fi
5749
5750 if test "$wxUSE_SOUND" = yes; then
5751 echo "$as_me:$LINENO: result: yes" >&5
5752echo "${ECHO_T}yes" >&6
5753 else
5754 echo "$as_me:$LINENO: result: no" >&5
5755echo "${ECHO_T}no" >&6
5756 fi
5757
5758
5759 enablestring=
5760 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wxprintfv" >&5
5761echo $ECHO_N "checking for --${enablestring:-enable}-wxprintfv... $ECHO_C" >&6
5762 no_cache=0
5763 # Check whether --enable-wxprintfv or --disable-wxprintfv was given.
5764if test "${enable_wxprintfv+set}" = set; then
5765 enableval="$enable_wxprintfv"
5766
5767 if test "$enableval" = yes; then
5768 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=yes'
5769 else
5770 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=no'
5771 fi
5772
5773else
5774
5775 LINE=`grep "wxUSE_EXPERIMENTAL_PRINTF" ${wx_arg_cache_file}`
5776 if test "x$LINE" != x ; then
5777 eval "DEFAULT_$LINE"
5778 else
5779 no_cache=1
5780 fi
5781
5782 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF='$DEFAULT_wxUSE_EXPERIMENTAL_PRINTF
5783
5784fi;
5785
5786 eval "$ac_cv_use_wxprintfv"
5787 if test "$no_cache" != 1; then
5788 echo $ac_cv_use_wxprintfv >> ${wx_arg_cache_file}.tmp
5789 fi
5790
5791 if test "$wxUSE_EXPERIMENTAL_PRINTF" = yes; then
5792 echo "$as_me:$LINENO: result: yes" >&5
5793echo "${ECHO_T}yes" >&6
5794 else
5795 echo "$as_me:$LINENO: result: no" >&5
5796echo "${ECHO_T}no" >&6
5797 fi
5798
5799
5800 enablestring=
5801 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-zipstream" >&5
5802echo $ECHO_N "checking for --${enablestring:-enable}-zipstream... $ECHO_C" >&6
5803 no_cache=0
5804 # Check whether --enable-zipstream or --disable-zipstream was given.
5805if test "${enable_zipstream+set}" = set; then
5806 enableval="$enable_zipstream"
5807
5808 if test "$enableval" = yes; then
5809 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes'
5810 else
5811 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no'
5812 fi
5813
5814else
5815
5816 LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}`
5817 if test "x$LINE" != x ; then
5818 eval "DEFAULT_$LINE"
5819 else
5820 no_cache=1
5821 fi
5822
5823 ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM
5824
5825fi;
5826
5827 eval "$ac_cv_use_zipstream"
5828 if test "$no_cache" != 1; then
5829 echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp
5830 fi
5831
5832 if test "$wxUSE_ZIPSTREAM" = yes; then
5833 echo "$as_me:$LINENO: result: yes" >&5
5834echo "${ECHO_T}yes" >&6
5835 else
5836 echo "$as_me:$LINENO: result: no" >&5
5837echo "${ECHO_T}no" >&6
5838 fi
5839
5840
a848cd7e
SC
5841
5842 enablestring=
5843 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-url" >&5
5844echo $ECHO_N "checking for --${enablestring:-enable}-url... $ECHO_C" >&6
5845 no_cache=0
5846 # Check whether --enable-url or --disable-url was given.
5847if test "${enable_url+set}" = set; then
5848 enableval="$enable_url"
5849
5850 if test "$enableval" = yes; then
5851 ac_cv_use_url='wxUSE_URL=yes'
5852 else
5853 ac_cv_use_url='wxUSE_URL=no'
5854 fi
5855
5856else
5857
5858 LINE=`grep "wxUSE_URL" ${wx_arg_cache_file}`
5859 if test "x$LINE" != x ; then
5860 eval "DEFAULT_$LINE"
5861 else
5862 no_cache=1
5863 fi
5864
5865 ac_cv_use_url='wxUSE_URL='$DEFAULT_wxUSE_URL
5866
5867fi;
5868
5869 eval "$ac_cv_use_url"
5870 if test "$no_cache" != 1; then
5871 echo $ac_cv_use_url >> ${wx_arg_cache_file}.tmp
5872 fi
5873
5874 if test "$wxUSE_URL" = yes; then
5875 echo "$as_me:$LINENO: result: yes" >&5
5876echo "${ECHO_T}yes" >&6
5877 else
5878 echo "$as_me:$LINENO: result: no" >&5
5879echo "${ECHO_T}no" >&6
5880 fi
5881
5882
5883 enablestring=
5884 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol" >&5
5885echo $ECHO_N "checking for --${enablestring:-enable}-protocol... $ECHO_C" >&6
5886 no_cache=0
5887 # Check whether --enable-protocol or --disable-protocol was given.
5888if test "${enable_protocol+set}" = set; then
5889 enableval="$enable_protocol"
5890
5891 if test "$enableval" = yes; then
5892 ac_cv_use_protocol='wxUSE_PROTOCOL=yes'
5893 else
5894 ac_cv_use_protocol='wxUSE_PROTOCOL=no'
5895 fi
5896
5897else
5898
5899 LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
5900 if test "x$LINE" != x ; then
5901 eval "DEFAULT_$LINE"
5902 else
5903 no_cache=1
5904 fi
5905
5906 ac_cv_use_protocol='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
5907
5908fi;
5909
5910 eval "$ac_cv_use_protocol"
5911 if test "$no_cache" != 1; then
5912 echo $ac_cv_use_protocol >> ${wx_arg_cache_file}.tmp
5913 fi
5914
5915 if test "$wxUSE_PROTOCOL" = yes; then
5916 echo "$as_me:$LINENO: result: yes" >&5
5917echo "${ECHO_T}yes" >&6
5918 else
5919 echo "$as_me:$LINENO: result: no" >&5
5920echo "${ECHO_T}no" >&6
5921 fi
5922
5923
5924 enablestring=
5925 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_http" >&5
5926echo $ECHO_N "checking for --${enablestring:-enable}-protocol_http... $ECHO_C" >&6
5927 no_cache=0
5928 # Check whether --enable-protocol_http or --disable-protocol_http was given.
5929if test "${enable_protocol_http+set}" = set; then
5930 enableval="$enable_protocol_http"
5931
5932 if test "$enableval" = yes; then
5933 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=yes'
5934 else
5935 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=no'
5936 fi
5937
5938else
5939
5940 LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
5941 if test "x$LINE" != x ; then
5942 eval "DEFAULT_$LINE"
5943 else
5944 no_cache=1
5945 fi
5946
5947 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
5948
5949fi;
5950
5951 eval "$ac_cv_use_protocol_http"
5952 if test "$no_cache" != 1; then
5953 echo $ac_cv_use_protocol_http >> ${wx_arg_cache_file}.tmp
5954 fi
5955
5956 if test "$wxUSE_PROTOCOL_HTTP" = yes; then
5957 echo "$as_me:$LINENO: result: yes" >&5
5958echo "${ECHO_T}yes" >&6
5959 else
5960 echo "$as_me:$LINENO: result: no" >&5
5961echo "${ECHO_T}no" >&6
5962 fi
5963
5964
5965 enablestring=
5966 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_ftp" >&5
5967echo $ECHO_N "checking for --${enablestring:-enable}-protocol_ftp... $ECHO_C" >&6
5968 no_cache=0
5969 # Check whether --enable-protocol_ftp or --disable-protocol_ftp was given.
5970if test "${enable_protocol_ftp+set}" = set; then
5971 enableval="$enable_protocol_ftp"
5972
5973 if test "$enableval" = yes; then
5974 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=yes'
5975 else
5976 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=no'
5977 fi
5978
5979else
5980
5981 LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
5982 if test "x$LINE" != x ; then
5983 eval "DEFAULT_$LINE"
5984 else
5985 no_cache=1
5986 fi
5987
5988 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
5989
5990fi;
5991
5992 eval "$ac_cv_use_protocol_ftp"
5993 if test "$no_cache" != 1; then
5994 echo $ac_cv_use_protocol_ftp >> ${wx_arg_cache_file}.tmp
5995 fi
5996
5997 if test "$wxUSE_PROTOCOL_FTP" = yes; then
5998 echo "$as_me:$LINENO: result: yes" >&5
5999echo "${ECHO_T}yes" >&6
6000 else
6001 echo "$as_me:$LINENO: result: no" >&5
6002echo "${ECHO_T}no" >&6
6003 fi
6004
6005
6006 enablestring=
6007 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_file" >&5
6008echo $ECHO_N "checking for --${enablestring:-enable}-protocol_file... $ECHO_C" >&6
6009 no_cache=0
6010 # Check whether --enable-protocol_file or --disable-protocol_file was given.
6011if test "${enable_protocol_file+set}" = set; then
6012 enableval="$enable_protocol_file"
6013
6014 if test "$enableval" = yes; then
6015 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=yes'
6016 else
6017 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=no'
6018 fi
6019
6020else
6021
6022 LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
6023 if test "x$LINE" != x ; then
6024 eval "DEFAULT_$LINE"
6025 else
6026 no_cache=1
6027 fi
6028
6029 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
6030
6031fi;
6032
6033 eval "$ac_cv_use_protocol_file"
6034 if test "$no_cache" != 1; then
6035 echo $ac_cv_use_protocol_file >> ${wx_arg_cache_file}.tmp
6036 fi
6037
6038 if test "$wxUSE_PROTOCOL_FILE" = yes; then
6039 echo "$as_me:$LINENO: result: yes" >&5
6040echo "${ECHO_T}yes" >&6
6041 else
6042 echo "$as_me:$LINENO: result: no" >&5
6043echo "${ECHO_T}no" >&6
6044 fi
6045
6046
6047
6048
6049
6050 enablestring=
6051 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-threads" >&5
6052echo $ECHO_N "checking for --${enablestring:-enable}-threads... $ECHO_C" >&6
6053 no_cache=0
6054 # Check whether --enable-threads or --disable-threads was given.
6055if test "${enable_threads+set}" = set; then
6056 enableval="$enable_threads"
6057
6058 if test "$enableval" = yes; then
6059 ac_cv_use_threads='wxUSE_THREADS=yes'
6060 else
6061 ac_cv_use_threads='wxUSE_THREADS=no'
6062 fi
6063
6064else
6065
6066 LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}`
6067 if test "x$LINE" != x ; then
6068 eval "DEFAULT_$LINE"
6069 else
6070 no_cache=1
6071 fi
6072
6073 ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS
6074
6075fi;
6076
6077 eval "$ac_cv_use_threads"
6078 if test "$no_cache" != 1; then
6079 echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp
6080 fi
6081
6082 if test "$wxUSE_THREADS" = yes; then
6083 echo "$as_me:$LINENO: result: yes" >&5
6084echo "${ECHO_T}yes" >&6
6085 else
6086 echo "$as_me:$LINENO: result: no" >&5
6087echo "${ECHO_T}no" >&6
6088 fi
6089
6090
6091if test "$wxUSE_GUI" = "yes"; then
6092
6093
6094
6095 enablestring=
6096 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-docview" >&5
6097echo $ECHO_N "checking for --${enablestring:-enable}-docview... $ECHO_C" >&6
6098 no_cache=0
6099 # Check whether --enable-docview or --disable-docview was given.
6100if test "${enable_docview+set}" = set; then
6101 enableval="$enable_docview"
6102
6103 if test "$enableval" = yes; then
6104 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes'
6105 else
6106 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no'
6107 fi
6108
6109else
6110
6111 LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}`
6112 if test "x$LINE" != x ; then
6113 eval "DEFAULT_$LINE"
6114 else
6115 no_cache=1
6116 fi
6117
6118 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE
6119
6120fi;
6121
6122 eval "$ac_cv_use_docview"
6123 if test "$no_cache" != 1; then
6124 echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp
6125 fi
6126
6127 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then
6128 echo "$as_me:$LINENO: result: yes" >&5
6129echo "${ECHO_T}yes" >&6
6130 else
6131 echo "$as_me:$LINENO: result: no" >&5
6132echo "${ECHO_T}no" >&6
6133 fi
6134
6135
6136 enablestring=
6137 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-help" >&5
6138echo $ECHO_N "checking for --${enablestring:-enable}-help... $ECHO_C" >&6
6139 no_cache=0
6140 # Check whether --enable-help or --disable-help was given.
6141if test "${enable_help+set}" = set; then
6142 enableval="$enable_help"
6143
6144 if test "$enableval" = yes; then
6145 ac_cv_use_help='wxUSE_HELP=yes'
6146 else
6147 ac_cv_use_help='wxUSE_HELP=no'
6148 fi
6149
6150else
6151
6152 LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}`
6153 if test "x$LINE" != x ; then
6154 eval "DEFAULT_$LINE"
6155 else
6156 no_cache=1
6157 fi
6158
6159 ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP
6160
6161fi;
6162
6163 eval "$ac_cv_use_help"
6164 if test "$no_cache" != 1; then
6165 echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp
6166 fi
6167
6168 if test "$wxUSE_HELP" = yes; then
6169 echo "$as_me:$LINENO: result: yes" >&5
6170echo "${ECHO_T}yes" >&6
6171 else
6172 echo "$as_me:$LINENO: result: no" >&5
6173echo "${ECHO_T}no" >&6
6174 fi
6175
6176
6177 enablestring=
6178 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mshtmlhelp" >&5
6179echo $ECHO_N "checking for --${enablestring:-enable}-mshtmlhelp... $ECHO_C" >&6
6180 no_cache=0
6181 # Check whether --enable-mshtmlhelp or --disable-mshtmlhelp was given.
6182if test "${enable_mshtmlhelp+set}" = set; then
6183 enableval="$enable_mshtmlhelp"
6184
6185 if test "$enableval" = yes; then
6186 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=yes'
6187 else
6188 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=no'
6189 fi
6190
6191else
6192
6193 LINE=`grep "wxUSE_MS_HTML_HELP" ${wx_arg_cache_file}`
6194 if test "x$LINE" != x ; then
6195 eval "DEFAULT_$LINE"
6196 else
6197 no_cache=1
6198 fi
6199
6200 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP='$DEFAULT_wxUSE_MS_HTML_HELP
6201
6202fi;
6203
6204 eval "$ac_cv_use_mshtmlhelp"
6205 if test "$no_cache" != 1; then
6206 echo $ac_cv_use_mshtmlhelp >> ${wx_arg_cache_file}.tmp
6207 fi
6208
6209 if test "$wxUSE_MS_HTML_HELP" = yes; then
6210 echo "$as_me:$LINENO: result: yes" >&5
6211echo "${ECHO_T}yes" >&6
6212 else
6213 echo "$as_me:$LINENO: result: no" >&5
6214echo "${ECHO_T}no" >&6
6215 fi
6216
6217
6218 enablestring=
6219 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-html" >&5
6220echo $ECHO_N "checking for --${enablestring:-enable}-html... $ECHO_C" >&6
6221 no_cache=0
6222 # Check whether --enable-html or --disable-html was given.
6223if test "${enable_html+set}" = set; then
6224 enableval="$enable_html"
6225
6226 if test "$enableval" = yes; then
6227 ac_cv_use_html='wxUSE_HTML=yes'
6228 else
6229 ac_cv_use_html='wxUSE_HTML=no'
6230 fi
6231
6232else
6233
6234 LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}`
6235 if test "x$LINE" != x ; then
6236 eval "DEFAULT_$LINE"
6237 else
6238 no_cache=1
6239 fi
6240
6241 ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML
6242
6243fi;
6244
6245 eval "$ac_cv_use_html"
6246 if test "$no_cache" != 1; then
6247 echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp
6248 fi
6249
6250 if test "$wxUSE_HTML" = yes; then
6251 echo "$as_me:$LINENO: result: yes" >&5
6252echo "${ECHO_T}yes" >&6
6253 else
6254 echo "$as_me:$LINENO: result: no" >&5
6255echo "${ECHO_T}no" >&6
6256 fi
6257
6258
6259 enablestring=
6260 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-htmlhelp" >&5
6261echo $ECHO_N "checking for --${enablestring:-enable}-htmlhelp... $ECHO_C" >&6
6262 no_cache=0
6263 # Check whether --enable-htmlhelp or --disable-htmlhelp was given.
6264if test "${enable_htmlhelp+set}" = set; then
6265 enableval="$enable_htmlhelp"
6266
6267 if test "$enableval" = yes; then
6268 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=yes'
6269 else
6270 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=no'
6271 fi
6272
6273else
6274
6275 LINE=`grep "wxUSE_WXHTML_HELP" ${wx_arg_cache_file}`
6276 if test "x$LINE" != x ; then
6277 eval "DEFAULT_$LINE"
6278 else
6279 no_cache=1
6280 fi
6281
6282 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP='$DEFAULT_wxUSE_WXHTML_HELP
6283
6284fi;
6285
6286 eval "$ac_cv_use_htmlhelp"
6287 if test "$no_cache" != 1; then
6288 echo $ac_cv_use_htmlhelp >> ${wx_arg_cache_file}.tmp
6289 fi
6290
6291 if test "$wxUSE_WXHTML_HELP" = yes; then
6292 echo "$as_me:$LINENO: result: yes" >&5
6293echo "${ECHO_T}yes" >&6
6294 else
6295 echo "$as_me:$LINENO: result: no" >&5
6296echo "${ECHO_T}no" >&6
6297 fi
6298
6299
9a8f0513
VS
6300 enablestring=
6301 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xrc" >&5
6302echo $ECHO_N "checking for --${enablestring:-enable}-xrc... $ECHO_C" >&6
6303 no_cache=0
6304 # Check whether --enable-xrc or --disable-xrc was given.
6305if test "${enable_xrc+set}" = set; then
6306 enableval="$enable_xrc"
6307
6308 if test "$enableval" = yes; then
6309 ac_cv_use_xrc='wxUSE_XRC=yes'
6310 else
6311 ac_cv_use_xrc='wxUSE_XRC=no'
6312 fi
6313
6314else
6315
6316 LINE=`grep "wxUSE_XRC" ${wx_arg_cache_file}`
6317 if test "x$LINE" != x ; then
6318 eval "DEFAULT_$LINE"
6319 else
6320 no_cache=1
6321 fi
6322
6323 ac_cv_use_xrc='wxUSE_XRC='$DEFAULT_wxUSE_XRC
6324
6325fi;
6326
6327 eval "$ac_cv_use_xrc"
6328 if test "$no_cache" != 1; then
6329 echo $ac_cv_use_xrc >> ${wx_arg_cache_file}.tmp
6330 fi
6331
6332 if test "$wxUSE_XRC" = yes; then
6333 echo "$as_me:$LINENO: result: yes" >&5
6334echo "${ECHO_T}yes" >&6
6335 else
6336 echo "$as_me:$LINENO: result: no" >&5
6337echo "${ECHO_T}no" >&6
6338 fi
6339
6340
a848cd7e
SC
6341 enablestring=
6342 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-constraints" >&5
6343echo $ECHO_N "checking for --${enablestring:-enable}-constraints... $ECHO_C" >&6
6344 no_cache=0
6345 # Check whether --enable-constraints or --disable-constraints was given.
6346if test "${enable_constraints+set}" = set; then
6347 enableval="$enable_constraints"
6348
6349 if test "$enableval" = yes; then
6350 ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes'
6351 else
6352 ac_cv_use_constraints='wxUSE_CONSTRAINTS=no'
6353 fi
6354
6355else
6356
6357 LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}`
6358 if test "x$LINE" != x ; then
6359 eval "DEFAULT_$LINE"
6360 else
6361 no_cache=1
6362 fi
6363
6364 ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS
6365
6366fi;
6367
6368 eval "$ac_cv_use_constraints"
6369 if test "$no_cache" != 1; then
6370 echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp
6371 fi
6372
6373 if test "$wxUSE_CONSTRAINTS" = yes; then
6374 echo "$as_me:$LINENO: result: yes" >&5
6375echo "${ECHO_T}yes" >&6
6376 else
6377 echo "$as_me:$LINENO: result: no" >&5
6378echo "${ECHO_T}no" >&6
6379 fi
6380
6381
6382 enablestring=
6383 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-printarch" >&5
6384echo $ECHO_N "checking for --${enablestring:-enable}-printarch... $ECHO_C" >&6
6385 no_cache=0
6386 # Check whether --enable-printarch or --disable-printarch was given.
6387if test "${enable_printarch+set}" = set; then
6388 enableval="$enable_printarch"
6389
6390 if test "$enableval" = yes; then
6391 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes'
6392 else
6393 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no'
6394 fi
6395
6396else
6397
6398 LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}`
6399 if test "x$LINE" != x ; then
6400 eval "DEFAULT_$LINE"
6401 else
6402 no_cache=1
6403 fi
6404
6405 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE
6406
6407fi;
6408
6409 eval "$ac_cv_use_printarch"
6410 if test "$no_cache" != 1; then
6411 echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp
6412 fi
6413
6414 if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then
6415 echo "$as_me:$LINENO: result: yes" >&5
6416echo "${ECHO_T}yes" >&6
6417 else
6418 echo "$as_me:$LINENO: result: no" >&5
6419echo "${ECHO_T}no" >&6
6420 fi
6421
6422
6423 enablestring=
6424 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdi" >&5
6425echo $ECHO_N "checking for --${enablestring:-enable}-mdi... $ECHO_C" >&6
6426 no_cache=0
6427 # Check whether --enable-mdi or --disable-mdi was given.
6428if test "${enable_mdi+set}" = set; then
6429 enableval="$enable_mdi"
6430
6431 if test "$enableval" = yes; then
8a7b1113 6432 ac_cv_use_mdi='wxUSE_MDI=yes'
a848cd7e 6433 else
8a7b1113 6434 ac_cv_use_mdi='wxUSE_MDI=no'
a848cd7e
SC
6435 fi
6436
6437else
6438
8a7b1113 6439 LINE=`grep "wxUSE_MDI" ${wx_arg_cache_file}`
a848cd7e
SC
6440 if test "x$LINE" != x ; then
6441 eval "DEFAULT_$LINE"
6442 else
6443 no_cache=1
6444 fi
6445
8a7b1113 6446 ac_cv_use_mdi='wxUSE_MDI='$DEFAULT_wxUSE_MDI
a848cd7e
SC
6447
6448fi;
6449
6450 eval "$ac_cv_use_mdi"
6451 if test "$no_cache" != 1; then
6452 echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp
6453 fi
6454
8a7b1113
VZ
6455 if test "$wxUSE_MDI" = yes; then
6456 echo "$as_me:$LINENO: result: yes" >&5
6457echo "${ECHO_T}yes" >&6
6458 else
6459 echo "$as_me:$LINENO: result: no" >&5
6460echo "${ECHO_T}no" >&6
6461 fi
6462
6463
6464 enablestring=
6465 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdidoc" >&5
6466echo $ECHO_N "checking for --${enablestring:-enable}-mdidoc... $ECHO_C" >&6
6467 no_cache=0
6468 # Check whether --enable-mdidoc or --disable-mdidoc was given.
6469if test "${enable_mdidoc+set}" = set; then
6470 enableval="$enable_mdidoc"
6471
6472 if test "$enableval" = yes; then
6473 ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=yes'
6474 else
6475 ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=no'
6476 fi
6477
6478else
6479
6480 LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}`
6481 if test "x$LINE" != x ; then
6482 eval "DEFAULT_$LINE"
6483 else
6484 no_cache=1
6485 fi
6486
6487 ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE
6488
6489fi;
6490
6491 eval "$ac_cv_use_mdidoc"
6492 if test "$no_cache" != 1; then
6493 echo $ac_cv_use_mdidoc >> ${wx_arg_cache_file}.tmp
6494 fi
6495
a848cd7e
SC
6496 if test "$wxUSE_MDI_ARCHITECTURE" = yes; then
6497 echo "$as_me:$LINENO: result: yes" >&5
6498echo "${ECHO_T}yes" >&6
6499 else
6500 echo "$as_me:$LINENO: result: no" >&5
6501echo "${ECHO_T}no" >&6
6502 fi
6503
6504
6505 enablestring=
6506 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-loggui" >&5
6507echo $ECHO_N "checking for --${enablestring:-enable}-loggui... $ECHO_C" >&6
6508 no_cache=0
6509 # Check whether --enable-loggui or --disable-loggui was given.
6510if test "${enable_loggui+set}" = set; then
6511 enableval="$enable_loggui"
6512
6513 if test "$enableval" = yes; then
6514 ac_cv_use_loggui='wxUSE_LOGGUI=yes'
6515 else
6516 ac_cv_use_loggui='wxUSE_LOGGUI=no'
6517 fi
6518
6519else
6520
6521 LINE=`grep "wxUSE_LOGGUI" ${wx_arg_cache_file}`
6522 if test "x$LINE" != x ; then
6523 eval "DEFAULT_$LINE"
6524 else
6525 no_cache=1
6526 fi
6527
6528 ac_cv_use_loggui='wxUSE_LOGGUI='$DEFAULT_wxUSE_LOGGUI
6529
6530fi;
6531
6532 eval "$ac_cv_use_loggui"
6533 if test "$no_cache" != 1; then
6534 echo $ac_cv_use_loggui >> ${wx_arg_cache_file}.tmp
6535 fi
6536
6537 if test "$wxUSE_LOGGUI" = yes; then
6538 echo "$as_me:$LINENO: result: yes" >&5
6539echo "${ECHO_T}yes" >&6
6540 else
6541 echo "$as_me:$LINENO: result: no" >&5
6542echo "${ECHO_T}no" >&6
6543 fi
6544
6545
6546 enablestring=
6547 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logwin" >&5
6548echo $ECHO_N "checking for --${enablestring:-enable}-logwin... $ECHO_C" >&6
6549 no_cache=0
6550 # Check whether --enable-logwin or --disable-logwin was given.
6551if test "${enable_logwin+set}" = set; then
6552 enableval="$enable_logwin"
6553
6554 if test "$enableval" = yes; then
6555 ac_cv_use_logwin='wxUSE_LOGWINDOW=yes'
6556 else
6557 ac_cv_use_logwin='wxUSE_LOGWINDOW=no'
6558 fi
6559
6560else
6561
6562 LINE=`grep "wxUSE_LOGWINDOW" ${wx_arg_cache_file}`
6563 if test "x$LINE" != x ; then
6564 eval "DEFAULT_$LINE"
6565 else
6566 no_cache=1
6567 fi
6568
6569 ac_cv_use_logwin='wxUSE_LOGWINDOW='$DEFAULT_wxUSE_LOGWINDOW
6570
6571fi;
6572
6573 eval "$ac_cv_use_logwin"
6574 if test "$no_cache" != 1; then
6575 echo $ac_cv_use_logwin >> ${wx_arg_cache_file}.tmp
6576 fi
6577
6578 if test "$wxUSE_LOGWINDOW" = yes; then
6579 echo "$as_me:$LINENO: result: yes" >&5
6580echo "${ECHO_T}yes" >&6
6581 else
6582 echo "$as_me:$LINENO: result: no" >&5
6583echo "${ECHO_T}no" >&6
6584 fi
6585
6586
6587 enablestring=
6588 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logdialog" >&5
6589echo $ECHO_N "checking for --${enablestring:-enable}-logdialog... $ECHO_C" >&6
6590 no_cache=0
6591 # Check whether --enable-logdialog or --disable-logdialog was given.
6592if test "${enable_logdialog+set}" = set; then
6593 enableval="$enable_logdialog"
6594
6595 if test "$enableval" = yes; then
6596 ac_cv_use_logdialog='wxUSE_LOGDIALOG=yes'
6597 else
6598 ac_cv_use_logdialog='wxUSE_LOGDIALOG=no'
6599 fi
6600
6601else
6602
6603 LINE=`grep "wxUSE_LOGDIALOG" ${wx_arg_cache_file}`
6604 if test "x$LINE" != x ; then
6605 eval "DEFAULT_$LINE"
6606 else
6607 no_cache=1
6608 fi
6609
6610 ac_cv_use_logdialog='wxUSE_LOGDIALOG='$DEFAULT_wxUSE_LOGDIALOG
6611
6612fi;
6613
6614 eval "$ac_cv_use_logdialog"
6615 if test "$no_cache" != 1; then
6616 echo $ac_cv_use_logdialog >> ${wx_arg_cache_file}.tmp
6617 fi
6618
6619 if test "$wxUSE_LOGDIALOG" = yes; then
6620 echo "$as_me:$LINENO: result: yes" >&5
6621echo "${ECHO_T}yes" >&6
6622 else
6623 echo "$as_me:$LINENO: result: no" >&5
6624echo "${ECHO_T}no" >&6
6625 fi
6626
6627
646b6ec1
VS
6628 enablestring=
6629 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-webkit" >&5
6630echo $ECHO_N "checking for --${enablestring:-enable}-webkit... $ECHO_C" >&6
6631 no_cache=0
6632 # Check whether --enable-webkit or --disable-webkit was given.
6633if test "${enable_webkit+set}" = set; then
6634 enableval="$enable_webkit"
6635
6636 if test "$enableval" = yes; then
6637 ac_cv_use_webkit='wxUSE_WEBKIT=yes'
6638 else
6639 ac_cv_use_webkit='wxUSE_WEBKIT=no'
6640 fi
6641
6642else
6643
6644 LINE=`grep "wxUSE_WEBKIT" ${wx_arg_cache_file}`
6645 if test "x$LINE" != x ; then
6646 eval "DEFAULT_$LINE"
6647 else
6648 no_cache=1
6649 fi
6650
6651 ac_cv_use_webkit='wxUSE_WEBKIT='$DEFAULT_wxUSE_WEBKIT
6652
6653fi;
6654
6655 eval "$ac_cv_use_webkit"
6656 if test "$no_cache" != 1; then
6657 echo $ac_cv_use_webkit >> ${wx_arg_cache_file}.tmp
6658 fi
6659
6660 if test "$wxUSE_WEBKIT" = yes; then
6661 echo "$as_me:$LINENO: result: yes" >&5
6662echo "${ECHO_T}yes" >&6
6663 else
6664 echo "$as_me:$LINENO: result: no" >&5
6665echo "${ECHO_T}no" >&6
6666 fi
6667
6668
a848cd7e
SC
6669
6670 enablestring=
6671 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-postscript" >&5
6672echo $ECHO_N "checking for --${enablestring:-enable}-postscript... $ECHO_C" >&6
6673 no_cache=0
6674 # Check whether --enable-postscript or --disable-postscript was given.
6675if test "${enable_postscript+set}" = set; then
6676 enableval="$enable_postscript"
6677
6678 if test "$enableval" = yes; then
6679 ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes'
6680 else
6681 ac_cv_use_postscript='wxUSE_POSTSCRIPT=no'
6682 fi
6683
6684else
6685
6686 LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}`
6687 if test "x$LINE" != x ; then
6688 eval "DEFAULT_$LINE"
6689 else
6690 no_cache=1
6691 fi
6692
6693 ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT
6694
6695fi;
6696
6697 eval "$ac_cv_use_postscript"
6698 if test "$no_cache" != 1; then
6699 echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp
6700 fi
6701
6702 if test "$wxUSE_POSTSCRIPT" = yes; then
6703 echo "$as_me:$LINENO: result: yes" >&5
6704echo "${ECHO_T}yes" >&6
6705 else
6706 echo "$as_me:$LINENO: result: no" >&5
6707echo "${ECHO_T}no" >&6
6708 fi
6709
6710
6711
6712
6713
6714 enablestring=
6715 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-prologio" >&5
6716echo $ECHO_N "checking for --${enablestring:-enable}-prologio... $ECHO_C" >&6
6717 no_cache=0
6718 # Check whether --enable-prologio or --disable-prologio was given.
6719if test "${enable_prologio+set}" = set; then
6720 enableval="$enable_prologio"
6721
6722 if test "$enableval" = yes; then
6723 ac_cv_use_prologio='wxUSE_PROLOGIO=yes'
6724 else
6725 ac_cv_use_prologio='wxUSE_PROLOGIO=no'
6726 fi
6727
6728else
6729
6730 LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}`
6731 if test "x$LINE" != x ; then
6732 eval "DEFAULT_$LINE"
6733 else
6734 no_cache=1
6735 fi
6736
6737 ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO
6738
6739fi;
6740
6741 eval "$ac_cv_use_prologio"
6742 if test "$no_cache" != 1; then
6743 echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp
6744 fi
6745
6746 if test "$wxUSE_PROLOGIO" = yes; then
6747 echo "$as_me:$LINENO: result: yes" >&5
6748echo "${ECHO_T}yes" >&6
6749 else
6750 echo "$as_me:$LINENO: result: no" >&5
6751echo "${ECHO_T}no" >&6
6752 fi
6753
6754
6755 enablestring=
6756 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-resources" >&5
6757echo $ECHO_N "checking for --${enablestring:-enable}-resources... $ECHO_C" >&6
6758 no_cache=0
6759 # Check whether --enable-resources or --disable-resources was given.
6760if test "${enable_resources+set}" = set; then
6761 enableval="$enable_resources"
6762
6763 if test "$enableval" = yes; then
6764 ac_cv_use_resources='wxUSE_RESOURCES=yes'
6765 else
6766 ac_cv_use_resources='wxUSE_RESOURCES=no'
6767 fi
6768
6769else
6770
6771 LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}`
6772 if test "x$LINE" != x ; then
6773 eval "DEFAULT_$LINE"
6774 else
6775 no_cache=1
6776 fi
6777
6778 ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES
6779
6780fi;
6781
6782 eval "$ac_cv_use_resources"
6783 if test "$no_cache" != 1; then
6784 echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp
6785 fi
6786
6787 if test "$wxUSE_RESOURCES" = yes; then
6788 echo "$as_me:$LINENO: result: yes" >&5
6789echo "${ECHO_T}yes" >&6
6790 else
6791 echo "$as_me:$LINENO: result: no" >&5
6792echo "${ECHO_T}no" >&6
6793 fi
6794
6795
6796
6797
6798 enablestring=
6799 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-clipboard" >&5
6800echo $ECHO_N "checking for --${enablestring:-enable}-clipboard... $ECHO_C" >&6
6801 no_cache=0
6802 # Check whether --enable-clipboard or --disable-clipboard was given.
6803if test "${enable_clipboard+set}" = set; then
6804 enableval="$enable_clipboard"
6805
6806 if test "$enableval" = yes; then
6807 ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes'
6808 else
6809 ac_cv_use_clipboard='wxUSE_CLIPBOARD=no'
6810 fi
6811
6812else
6813
6814 LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}`
6815 if test "x$LINE" != x ; then
6816 eval "DEFAULT_$LINE"
6817 else
6818 no_cache=1
6819 fi
6820
6821 ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD
6822
6823fi;
6824
6825 eval "$ac_cv_use_clipboard"
6826 if test "$no_cache" != 1; then
6827 echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp
6828 fi
6829
6830 if test "$wxUSE_CLIPBOARD" = yes; then
6831 echo "$as_me:$LINENO: result: yes" >&5
6832echo "${ECHO_T}yes" >&6
6833 else
6834 echo "$as_me:$LINENO: result: no" >&5
6835echo "${ECHO_T}no" >&6
6836 fi
6837
6838
6839 enablestring=
6840 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dnd" >&5
6841echo $ECHO_N "checking for --${enablestring:-enable}-dnd... $ECHO_C" >&6
6842 no_cache=0
6843 # Check whether --enable-dnd or --disable-dnd was given.
6844if test "${enable_dnd+set}" = set; then
6845 enableval="$enable_dnd"
6846
6847 if test "$enableval" = yes; then
6848 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes'
6849 else
6850 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no'
6851 fi
6852
6853else
6854
6855 LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}`
6856 if test "x$LINE" != x ; then
6857 eval "DEFAULT_$LINE"
6858 else
6859 no_cache=1
6860 fi
6861
6862 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP
6863
6864fi;
6865
6866 eval "$ac_cv_use_dnd"
6867 if test "$no_cache" != 1; then
6868 echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp
6869 fi
6870
6871 if test "$wxUSE_DRAG_AND_DROP" = yes; then
6872 echo "$as_me:$LINENO: result: yes" >&5
6873echo "${ECHO_T}yes" >&6
6874 else
6875 echo "$as_me:$LINENO: result: no" >&5
6876echo "${ECHO_T}no" >&6
6877 fi
6878
6879
6880 enablestring=
6881 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5
6882echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6
6883 no_cache=0
6884 # Check whether --enable-metafile or --disable-metafile was given.
6885if test "${enable_metafile+set}" = set; then
6886 enableval="$enable_metafile"
6887
6888 if test "$enableval" = yes; then
6889 ac_cv_use_metafile='wxUSE_METAFILE=yes'
6890 else
6891 ac_cv_use_metafile='wxUSE_METAFILE=no'
6892 fi
6893
6894else
6895
6896 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
6897 if test "x$LINE" != x ; then
6898 eval "DEFAULT_$LINE"
6899 else
6900 no_cache=1
6901 fi
6902
6903 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
6904
6905fi;
6906
6907 eval "$ac_cv_use_metafile"
6908 if test "$no_cache" != 1; then
6909 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
6910 fi
6911
6912 if test "$wxUSE_METAFILE" = yes; then
6913 echo "$as_me:$LINENO: result: yes" >&5
6914echo "${ECHO_T}yes" >&6
6915 else
6916 echo "$as_me:$LINENO: result: no" >&5
6917echo "${ECHO_T}no" >&6
6918 fi
6919
6920
6921
6922
6923
6924 enablestring=
6925 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-controls" >&5
6926echo $ECHO_N "checking for --${enablestring:-enable}-controls... $ECHO_C" >&6
6927 no_cache=0
6928 # Check whether --enable-controls or --disable-controls was given.
6929if test "${enable_controls+set}" = set; then
6930 enableval="$enable_controls"
6931
6932 if test "$enableval" = yes; then
6933 ac_cv_use_controls='wxUSE_CONTROLS=yes'
6934 else
6935 ac_cv_use_controls='wxUSE_CONTROLS=no'
6936 fi
6937
6938else
6939
6940 LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}`
6941 if test "x$LINE" != x ; then
6942 eval "DEFAULT_$LINE"
6943 else
6944 no_cache=1
6945 fi
6946
6947 ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS
6948
6949fi;
6950
6951 eval "$ac_cv_use_controls"
6952 if test "$no_cache" != 1; then
6953 echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp
6954 fi
6955
6956 if test "$wxUSE_CONTROLS" = yes; then
6957 echo "$as_me:$LINENO: result: yes" >&5
6958echo "${ECHO_T}yes" >&6
6959 else
6960 echo "$as_me:$LINENO: result: no" >&5
6961echo "${ECHO_T}no" >&6
6962 fi
6963
6964
6965if test "$wxUSE_CONTROLS" = "yes"; then
6966 DEFAULT_wxUSE_ACCEL=yes
6967 DEFAULT_wxUSE_BMPBUTTON=yes
6968 DEFAULT_wxUSE_BUTTON=yes
6969 DEFAULT_wxUSE_CALCTRL=no
6970 DEFAULT_wxUSE_CARET=yes
6971 DEFAULT_wxUSE_COMBOBOX=yes
6972 DEFAULT_wxUSE_CHECKBOX=yes
6973 DEFAULT_wxUSE_CHECKLISTBOX=yes
6974 DEFAULT_wxUSE_CHOICE=yes
92bbdbcd 6975 DEFAULT_wxUSE_CHOICEBOOK=yes
a848cd7e
SC
6976 DEFAULT_wxUSE_GAUGE=yes
6977 DEFAULT_wxUSE_GRID=yes
6978 DEFAULT_wxUSE_IMAGLIST=yes
6979 DEFAULT_wxUSE_LISTBOOK=yes
6980 DEFAULT_wxUSE_LISTBOX=yes
6981 DEFAULT_wxUSE_LISTCTRL=yes
6982 DEFAULT_wxUSE_NOTEBOOK=yes
6983 DEFAULT_wxUSE_RADIOBOX=yes
6984 DEFAULT_wxUSE_RADIOBTN=yes
6985 DEFAULT_wxUSE_SASH=yes
6986 DEFAULT_wxUSE_SCROLLBAR=yes
6987 DEFAULT_wxUSE_SLIDER=yes
6988 DEFAULT_wxUSE_SPINBTN=yes
6989 DEFAULT_wxUSE_SPINCTRL=yes
6990 DEFAULT_wxUSE_SPLITTER=yes
6991 DEFAULT_wxUSE_STATBMP=yes
6992 DEFAULT_wxUSE_STATBOX=yes
6993 DEFAULT_wxUSE_STATLINE=yes
6994 DEFAULT_wxUSE_STATUSBAR=yes
6995 DEFAULT_wxUSE_TAB_DIALOG=yes
6996 DEFAULT_wxUSE_TOGGLEBTN=yes
6997 DEFAULT_wxUSE_TOOLBAR=yes
6998 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
6999 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
7000 DEFAULT_wxUSE_TOOLTIPS=yes
7001 DEFAULT_wxUSE_TREECTRL=yes
7002 DEFAULT_wxUSE_POPUPWIN=yes
7003 DEFAULT_wxUSE_TIPWINDOW=yes
7004elif test "$wxUSE_CONTROLS" = "no"; then
7005 DEFAULT_wxUSE_ACCEL=no
7006 DEFAULT_wxUSE_BMPBUTTON=no
7007 DEFAULT_wxUSE_BUTTON=no
7008 DEFAULT_wxUSE_CALCTRL=no
7009 DEFAULT_wxUSE_CARET=no
7010 DEFAULT_wxUSE_COMBOBOX=no
7011 DEFAULT_wxUSE_CHECKBOX=no
7012 DEFAULT_wxUSE_CHECKLISTBOX=no
7013 DEFAULT_wxUSE_CHOICE=no
92bbdbcd 7014 DEFAULT_wxUSE_CHOICEBOOK=no
a848cd7e
SC
7015 DEFAULT_wxUSE_GAUGE=no
7016 DEFAULT_wxUSE_GRID=no
7017 DEFAULT_wxUSE_IMAGLIST=no
7018 DEFAULT_wxUSE_LISTBOOK=no
7019 DEFAULT_wxUSE_LISTBOX=no
7020 DEFAULT_wxUSE_LISTCTRL=no
7021 DEFAULT_wxUSE_NOTEBOOK=no
7022 DEFAULT_wxUSE_RADIOBOX=no
7023 DEFAULT_wxUSE_RADIOBTN=no
7024 DEFAULT_wxUSE_SASH=no
7025 DEFAULT_wxUSE_SCROLLBAR=no
7026 DEFAULT_wxUSE_SLIDER=no
7027 DEFAULT_wxUSE_SPINBTN=no
7028 DEFAULT_wxUSE_SPINCTRL=no
7029 DEFAULT_wxUSE_SPLITTER=no
7030 DEFAULT_wxUSE_STATBMP=no
7031 DEFAULT_wxUSE_STATBOX=no
7032 DEFAULT_wxUSE_STATLINE=no
7033 DEFAULT_wxUSE_STATUSBAR=no
7034 DEFAULT_wxUSE_TAB_DIALOG=no
7035 DEFAULT_wxUSE_TOGGLEBTN=no
7036 DEFAULT_wxUSE_TOOLBAR=no
7037 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
7038 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
7039 DEFAULT_wxUSE_TOOLTIPS=no
7040 DEFAULT_wxUSE_TREECTRL=no
7041 DEFAULT_wxUSE_POPUPWIN=no
7042 DEFAULT_wxUSE_TIPWINDOW=no
7043fi
7044
a848cd7e
SC
7045
7046 enablestring=
7047 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accel" >&5
7048echo $ECHO_N "checking for --${enablestring:-enable}-accel... $ECHO_C" >&6
7049 no_cache=0
7050 # Check whether --enable-accel or --disable-accel was given.
7051if test "${enable_accel+set}" = set; then
7052 enableval="$enable_accel"
7053
7054 if test "$enableval" = yes; then
7055 ac_cv_use_accel='wxUSE_ACCEL=yes'
7056 else
7057 ac_cv_use_accel='wxUSE_ACCEL=no'
7058 fi
7059
7060else
7061
7062 LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}`
7063 if test "x$LINE" != x ; then
7064 eval "DEFAULT_$LINE"
7065 else
7066 no_cache=1
7067 fi
7068
7069 ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL
7070
7071fi;
7072
7073 eval "$ac_cv_use_accel"
7074 if test "$no_cache" != 1; then
7075 echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp
7076 fi
7077
7078 if test "$wxUSE_ACCEL" = yes; then
7079 echo "$as_me:$LINENO: result: yes" >&5
7080echo "${ECHO_T}yes" >&6
7081 else
7082 echo "$as_me:$LINENO: result: no" >&5
7083echo "${ECHO_T}no" >&6
7084 fi
7085
7086
7087 enablestring=
7088 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-button" >&5
7089echo $ECHO_N "checking for --${enablestring:-enable}-button... $ECHO_C" >&6
7090 no_cache=0
7091 # Check whether --enable-button or --disable-button was given.
7092if test "${enable_button+set}" = set; then
7093 enableval="$enable_button"
7094
7095 if test "$enableval" = yes; then
7096 ac_cv_use_button='wxUSE_BUTTON=yes'
7097 else
7098 ac_cv_use_button='wxUSE_BUTTON=no'
7099 fi
7100
7101else
7102
7103 LINE=`grep "wxUSE_BUTTON" ${wx_arg_cache_file}`
7104 if test "x$LINE" != x ; then
7105 eval "DEFAULT_$LINE"
7106 else
7107 no_cache=1
7108 fi
7109
7110 ac_cv_use_button='wxUSE_BUTTON='$DEFAULT_wxUSE_BUTTON
7111
7112fi;
7113
7114 eval "$ac_cv_use_button"
7115 if test "$no_cache" != 1; then
7116 echo $ac_cv_use_button >> ${wx_arg_cache_file}.tmp
7117 fi
7118
7119 if test "$wxUSE_BUTTON" = yes; then
7120 echo "$as_me:$LINENO: result: yes" >&5
7121echo "${ECHO_T}yes" >&6
7122 else
7123 echo "$as_me:$LINENO: result: no" >&5
7124echo "${ECHO_T}no" >&6
7125 fi
7126
7127
7128 enablestring=
7129 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-bmpbutton" >&5
7130echo $ECHO_N "checking for --${enablestring:-enable}-bmpbutton... $ECHO_C" >&6
7131 no_cache=0
7132 # Check whether --enable-bmpbutton or --disable-bmpbutton was given.
7133if test "${enable_bmpbutton+set}" = set; then
7134 enableval="$enable_bmpbutton"
7135
7136 if test "$enableval" = yes; then
7137 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes'
7138 else
7139 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no'
7140 fi
7141
7142else
7143
7144 LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}`
7145 if test "x$LINE" != x ; then
7146 eval "DEFAULT_$LINE"
7147 else
7148 no_cache=1
7149 fi
7150
7151 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON
7152
7153fi;
7154
7155 eval "$ac_cv_use_bmpbutton"
7156 if test "$no_cache" != 1; then
7157 echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp
7158 fi
7159
7160 if test "$wxUSE_BMPBUTTON" = yes; then
7161 echo "$as_me:$LINENO: result: yes" >&5
7162echo "${ECHO_T}yes" >&6
7163 else
7164 echo "$as_me:$LINENO: result: no" >&5
7165echo "${ECHO_T}no" >&6
7166 fi
7167
7168
7169 enablestring=
7170 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-calendar" >&5
7171echo $ECHO_N "checking for --${enablestring:-enable}-calendar... $ECHO_C" >&6
7172 no_cache=0
7173 # Check whether --enable-calendar or --disable-calendar was given.
7174if test "${enable_calendar+set}" = set; then
7175 enableval="$enable_calendar"
7176
7177 if test "$enableval" = yes; then
7178 ac_cv_use_calendar='wxUSE_CALCTRL=yes'
7179 else
7180 ac_cv_use_calendar='wxUSE_CALCTRL=no'
7181 fi
7182
7183else
7184
7185 LINE=`grep "wxUSE_CALCTRL" ${wx_arg_cache_file}`
7186 if test "x$LINE" != x ; then
7187 eval "DEFAULT_$LINE"
7188 else
7189 no_cache=1
7190 fi
7191
7192 ac_cv_use_calendar='wxUSE_CALCTRL='$DEFAULT_wxUSE_CALCTRL
7193
7194fi;
7195
7196 eval "$ac_cv_use_calendar"
7197 if test "$no_cache" != 1; then
7198 echo $ac_cv_use_calendar >> ${wx_arg_cache_file}.tmp
7199 fi
7200
7201 if test "$wxUSE_CALCTRL" = yes; then
7202 echo "$as_me:$LINENO: result: yes" >&5
7203echo "${ECHO_T}yes" >&6
7204 else
7205 echo "$as_me:$LINENO: result: no" >&5
7206echo "${ECHO_T}no" >&6
7207 fi
7208
7209
7210 enablestring=
7211 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-caret" >&5
7212echo $ECHO_N "checking for --${enablestring:-enable}-caret... $ECHO_C" >&6
7213 no_cache=0
7214 # Check whether --enable-caret or --disable-caret was given.
7215if test "${enable_caret+set}" = set; then
7216 enableval="$enable_caret"
7217
7218 if test "$enableval" = yes; then
7219 ac_cv_use_caret='wxUSE_CARET=yes'
7220 else
7221 ac_cv_use_caret='wxUSE_CARET=no'
7222 fi
7223
7224else
7225
7226 LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}`
7227 if test "x$LINE" != x ; then
7228 eval "DEFAULT_$LINE"
7229 else
7230 no_cache=1
7231 fi
7232
7233 ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET
7234
7235fi;
7236
7237 eval "$ac_cv_use_caret"
7238 if test "$no_cache" != 1; then
7239 echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp
7240 fi
7241
7242 if test "$wxUSE_CARET" = yes; then
7243 echo "$as_me:$LINENO: result: yes" >&5
7244echo "${ECHO_T}yes" >&6
7245 else
7246 echo "$as_me:$LINENO: result: no" >&5
7247echo "${ECHO_T}no" >&6
7248 fi
7249
7250
7251 enablestring=
7252 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checkbox" >&5
7253echo $ECHO_N "checking for --${enablestring:-enable}-checkbox... $ECHO_C" >&6
7254 no_cache=0
7255 # Check whether --enable-checkbox or --disable-checkbox was given.
7256if test "${enable_checkbox+set}" = set; then
7257 enableval="$enable_checkbox"
7258
7259 if test "$enableval" = yes; then
7260 ac_cv_use_checkbox='wxUSE_CHECKBOX=yes'
7261 else
7262 ac_cv_use_checkbox='wxUSE_CHECKBOX=no'
7263 fi
7264
7265else
7266
7267 LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}`
7268 if test "x$LINE" != x ; then
7269 eval "DEFAULT_$LINE"
7270 else
7271 no_cache=1
7272 fi
7273
7274 ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX
7275
7276fi;
7277
7278 eval "$ac_cv_use_checkbox"
7279 if test "$no_cache" != 1; then
7280 echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp
7281 fi
7282
7283 if test "$wxUSE_CHECKBOX" = yes; then
7284 echo "$as_me:$LINENO: result: yes" >&5
7285echo "${ECHO_T}yes" >&6
7286 else
7287 echo "$as_me:$LINENO: result: no" >&5
7288echo "${ECHO_T}no" >&6
7289 fi
7290
7291
7292 enablestring=
7293 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checklst" >&5
7294echo $ECHO_N "checking for --${enablestring:-enable}-checklst... $ECHO_C" >&6
7295 no_cache=0
7296 # Check whether --enable-checklst or --disable-checklst was given.
7297if test "${enable_checklst+set}" = set; then
7298 enableval="$enable_checklst"
7299
7300 if test "$enableval" = yes; then
7301 ac_cv_use_checklst='wxUSE_CHECKLST=yes'
7302 else
7303 ac_cv_use_checklst='wxUSE_CHECKLST=no'
7304 fi
7305
7306else
7307
7308 LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}`
7309 if test "x$LINE" != x ; then
7310 eval "DEFAULT_$LINE"
7311 else
7312 no_cache=1
7313 fi
7314
7315 ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST
7316
7317fi;
7318
7319 eval "$ac_cv_use_checklst"
7320 if test "$no_cache" != 1; then
7321 echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp
7322 fi
7323
7324 if test "$wxUSE_CHECKLST" = yes; then
7325 echo "$as_me:$LINENO: result: yes" >&5
7326echo "${ECHO_T}yes" >&6
7327 else
7328 echo "$as_me:$LINENO: result: no" >&5
7329echo "${ECHO_T}no" >&6
7330 fi
7331
7332
7333 enablestring=
7334 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choice" >&5
7335echo $ECHO_N "checking for --${enablestring:-enable}-choice... $ECHO_C" >&6
7336 no_cache=0
7337 # Check whether --enable-choice or --disable-choice was given.
7338if test "${enable_choice+set}" = set; then
7339 enableval="$enable_choice"
7340
7341 if test "$enableval" = yes; then
7342 ac_cv_use_choice='wxUSE_CHOICE=yes'
7343 else
7344 ac_cv_use_choice='wxUSE_CHOICE=no'
7345 fi
7346
7347else
7348
7349 LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}`
7350 if test "x$LINE" != x ; then
7351 eval "DEFAULT_$LINE"
7352 else
7353 no_cache=1
7354 fi
7355
7356 ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE
7357
7358fi;
7359
7360 eval "$ac_cv_use_choice"
7361 if test "$no_cache" != 1; then
7362 echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp
7363 fi
7364
7365 if test "$wxUSE_CHOICE" = yes; then
7366 echo "$as_me:$LINENO: result: yes" >&5
7367echo "${ECHO_T}yes" >&6
7368 else
7369 echo "$as_me:$LINENO: result: no" >&5
7370echo "${ECHO_T}no" >&6
7371 fi
7372
7373
92bbdbcd
WS
7374 enablestring=
7375 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicebook" >&5
7376echo $ECHO_N "checking for --${enablestring:-enable}-choicebook... $ECHO_C" >&6
7377 no_cache=0
7378 # Check whether --enable-choicebook or --disable-choicebook was given.
7379if test "${enable_choicebook+set}" = set; then
7380 enableval="$enable_choicebook"
7381
7382 if test "$enableval" = yes; then
7383 ac_cv_use_choicebook='wxUSE_CHOICEBOOK=yes'
7384 else
7385 ac_cv_use_choicebook='wxUSE_CHOICEBOOK=no'
7386 fi
7387
7388else
7389
7390 LINE=`grep "wxUSE_CHOICEBOOK" ${wx_arg_cache_file}`
7391 if test "x$LINE" != x ; then
7392 eval "DEFAULT_$LINE"
7393 else
7394 no_cache=1
7395 fi
7396
7397 ac_cv_use_choicebook='wxUSE_CHOICEBOOK='$DEFAULT_wxUSE_CHOICEBOOK
7398
7399fi;
7400
7401 eval "$ac_cv_use_choicebook"
7402 if test "$no_cache" != 1; then
7403 echo $ac_cv_use_choicebook >> ${wx_arg_cache_file}.tmp
7404 fi
7405
7406 if test "$wxUSE_CHOICEBOOK" = yes; then
7407 echo "$as_me:$LINENO: result: yes" >&5
7408echo "${ECHO_T}yes" >&6
7409 else
7410 echo "$as_me:$LINENO: result: no" >&5
7411echo "${ECHO_T}no" >&6
7412 fi
7413
7414
a848cd7e
SC
7415 enablestring=
7416 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-combobox" >&5
7417echo $ECHO_N "checking for --${enablestring:-enable}-combobox... $ECHO_C" >&6
7418 no_cache=0
7419 # Check whether --enable-combobox or --disable-combobox was given.
7420if test "${enable_combobox+set}" = set; then
7421 enableval="$enable_combobox"
7422
7423 if test "$enableval" = yes; then
7424 ac_cv_use_combobox='wxUSE_COMBOBOX=yes'
7425 else
7426 ac_cv_use_combobox='wxUSE_COMBOBOX=no'
7427 fi
7428
7429else
7430
7431 LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}`
7432 if test "x$LINE" != x ; then
7433 eval "DEFAULT_$LINE"
7434 else
7435 no_cache=1
7436 fi
7437
7438 ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX
7439
7440fi;
7441
7442 eval "$ac_cv_use_combobox"
7443 if test "$no_cache" != 1; then
7444 echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp
7445 fi
7446
7447 if test "$wxUSE_COMBOBOX" = yes; then
7448 echo "$as_me:$LINENO: result: yes" >&5
7449echo "${ECHO_T}yes" >&6
7450 else
7451 echo "$as_me:$LINENO: result: no" >&5
7452echo "${ECHO_T}no" >&6
7453 fi
7454
7455
7456 enablestring=
7457 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-display" >&5
7458echo $ECHO_N "checking for --${enablestring:-enable}-display... $ECHO_C" >&6
7459 no_cache=0
7460 # Check whether --enable-display or --disable-display was given.
7461if test "${enable_display+set}" = set; then
7462 enableval="$enable_display"
7463
7464 if test "$enableval" = yes; then
7465 ac_cv_use_display='wxUSE_DISPLAY=yes'
7466 else
7467 ac_cv_use_display='wxUSE_DISPLAY=no'
7468 fi
7469
7470else
7471
7472 LINE=`grep "wxUSE_DISPLAY" ${wx_arg_cache_file}`
7473 if test "x$LINE" != x ; then
7474 eval "DEFAULT_$LINE"
7475 else
7476 no_cache=1
7477 fi
7478
7479 ac_cv_use_display='wxUSE_DISPLAY='$DEFAULT_wxUSE_DISPLAY
7480
7481fi;
7482
7483 eval "$ac_cv_use_display"
7484 if test "$no_cache" != 1; then
7485 echo $ac_cv_use_display >> ${wx_arg_cache_file}.tmp
7486 fi
7487
7488 if test "$wxUSE_DISPLAY" = yes; then
7489 echo "$as_me:$LINENO: result: yes" >&5
7490echo "${ECHO_T}yes" >&6
7491 else
7492 echo "$as_me:$LINENO: result: no" >&5
7493echo "${ECHO_T}no" >&6
7494 fi
7495
7496
7497 enablestring=
7498 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gauge" >&5
7499echo $ECHO_N "checking for --${enablestring:-enable}-gauge... $ECHO_C" >&6
7500 no_cache=0
7501 # Check whether --enable-gauge or --disable-gauge was given.
7502if test "${enable_gauge+set}" = set; then
7503 enableval="$enable_gauge"
7504
7505 if test "$enableval" = yes; then
7506 ac_cv_use_gauge='wxUSE_GAUGE=yes'
7507 else
7508 ac_cv_use_gauge='wxUSE_GAUGE=no'
7509 fi
7510
7511else
7512
7513 LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}`
7514 if test "x$LINE" != x ; then
7515 eval "DEFAULT_$LINE"
7516 else
7517 no_cache=1
7518 fi
7519
7520 ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE
7521
7522fi;
7523
7524 eval "$ac_cv_use_gauge"
7525 if test "$no_cache" != 1; then
7526 echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp
7527 fi
7528
7529 if test "$wxUSE_GAUGE" = yes; then
7530 echo "$as_me:$LINENO: result: yes" >&5
7531echo "${ECHO_T}yes" >&6
7532 else
7533 echo "$as_me:$LINENO: result: no" >&5
7534echo "${ECHO_T}no" >&6
7535 fi
7536
7537
7538 enablestring=
7539 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-grid" >&5
7540echo $ECHO_N "checking for --${enablestring:-enable}-grid... $ECHO_C" >&6
7541 no_cache=0
7542 # Check whether --enable-grid or --disable-grid was given.
7543if test "${enable_grid+set}" = set; then
7544 enableval="$enable_grid"
7545
7546 if test "$enableval" = yes; then
7547 ac_cv_use_grid='wxUSE_GRID=yes'
7548 else
7549 ac_cv_use_grid='wxUSE_GRID=no'
7550 fi
7551
7552else
7553
7554 LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}`
7555 if test "x$LINE" != x ; then
7556 eval "DEFAULT_$LINE"
7557 else
7558 no_cache=1
7559 fi
7560
7561 ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID
7562
7563fi;
7564
7565 eval "$ac_cv_use_grid"
7566 if test "$no_cache" != 1; then
7567 echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp
7568 fi
7569
7570 if test "$wxUSE_GRID" = yes; then
7571 echo "$as_me:$LINENO: result: yes" >&5
7572echo "${ECHO_T}yes" >&6
7573 else
7574 echo "$as_me:$LINENO: result: no" >&5
7575echo "${ECHO_T}no" >&6
7576 fi
7577
7578
7579 enablestring=
7580 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-imaglist" >&5
7581echo $ECHO_N "checking for --${enablestring:-enable}-imaglist... $ECHO_C" >&6
7582 no_cache=0
7583 # Check whether --enable-imaglist or --disable-imaglist was given.
7584if test "${enable_imaglist+set}" = set; then
7585 enableval="$enable_imaglist"
7586
7587 if test "$enableval" = yes; then
7588 ac_cv_use_imaglist='wxUSE_IMAGLIST=yes'
7589 else
7590 ac_cv_use_imaglist='wxUSE_IMAGLIST=no'
7591 fi
7592
7593else
7594
7595 LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}`
7596 if test "x$LINE" != x ; then
7597 eval "DEFAULT_$LINE"
7598 else
7599 no_cache=1
7600 fi
7601
7602 ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST
7603
7604fi;
7605
7606 eval "$ac_cv_use_imaglist"
7607 if test "$no_cache" != 1; then
7608 echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp
7609 fi
7610
7611 if test "$wxUSE_IMAGLIST" = yes; then
7612 echo "$as_me:$LINENO: result: yes" >&5
7613echo "${ECHO_T}yes" >&6
7614 else
7615 echo "$as_me:$LINENO: result: no" >&5
7616echo "${ECHO_T}no" >&6
7617 fi
7618
7619
7620 enablestring=
7621 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbook" >&5
7622echo $ECHO_N "checking for --${enablestring:-enable}-listbook... $ECHO_C" >&6
7623 no_cache=0
7624 # Check whether --enable-listbook or --disable-listbook was given.
7625if test "${enable_listbook+set}" = set; then
7626 enableval="$enable_listbook"
7627
7628 if test "$enableval" = yes; then
7629 ac_cv_use_listbook='wxUSE_LISTBOOK=yes'
7630 else
7631 ac_cv_use_listbook='wxUSE_LISTBOOK=no'
7632 fi
7633
7634else
7635
7636 LINE=`grep "wxUSE_LISTBOOK" ${wx_arg_cache_file}`
7637 if test "x$LINE" != x ; then
7638 eval "DEFAULT_$LINE"
7639 else
7640 no_cache=1
7641 fi
7642
7643 ac_cv_use_listbook='wxUSE_LISTBOOK='$DEFAULT_wxUSE_LISTBOOK
7644
7645fi;
7646
7647 eval "$ac_cv_use_listbook"
7648 if test "$no_cache" != 1; then
7649 echo $ac_cv_use_listbook >> ${wx_arg_cache_file}.tmp
7650 fi
7651
7652 if test "$wxUSE_LISTBOOK" = yes; then
7653 echo "$as_me:$LINENO: result: yes" >&5
7654echo "${ECHO_T}yes" >&6
7655 else
7656 echo "$as_me:$LINENO: result: no" >&5
7657echo "${ECHO_T}no" >&6
7658 fi
7659
7660
7661 enablestring=
7662 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbox" >&5
7663echo $ECHO_N "checking for --${enablestring:-enable}-listbox... $ECHO_C" >&6
7664 no_cache=0
7665 # Check whether --enable-listbox or --disable-listbox was given.
7666if test "${enable_listbox+set}" = set; then
7667 enableval="$enable_listbox"
7668
7669 if test "$enableval" = yes; then
7670 ac_cv_use_listbox='wxUSE_LISTBOX=yes'
7671 else
7672 ac_cv_use_listbox='wxUSE_LISTBOX=no'
7673 fi
7674
7675else
7676
7677 LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}`
7678 if test "x$LINE" != x ; then
7679 eval "DEFAULT_$LINE"
7680 else
7681 no_cache=1
7682 fi
7683
7684 ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX
7685
7686fi;
7687
7688 eval "$ac_cv_use_listbox"
7689 if test "$no_cache" != 1; then
7690 echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp
7691 fi
7692
7693 if test "$wxUSE_LISTBOX" = yes; then
7694 echo "$as_me:$LINENO: result: yes" >&5
7695echo "${ECHO_T}yes" >&6
7696 else
7697 echo "$as_me:$LINENO: result: no" >&5
7698echo "${ECHO_T}no" >&6
7699 fi
7700
7701
7702 enablestring=
7703 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listctrl" >&5
7704echo $ECHO_N "checking for --${enablestring:-enable}-listctrl... $ECHO_C" >&6
7705 no_cache=0
7706 # Check whether --enable-listctrl or --disable-listctrl was given.
7707if test "${enable_listctrl+set}" = set; then
7708 enableval="$enable_listctrl"
7709
7710 if test "$enableval" = yes; then
7711 ac_cv_use_listctrl='wxUSE_LISTCTRL=yes'
7712 else
7713 ac_cv_use_listctrl='wxUSE_LISTCTRL=no'
7714 fi
7715
7716else
7717
7718 LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}`
7719 if test "x$LINE" != x ; then
7720 eval "DEFAULT_$LINE"
7721 else
7722 no_cache=1
7723 fi
7724
7725 ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL
7726
7727fi;
7728
7729 eval "$ac_cv_use_listctrl"
7730 if test "$no_cache" != 1; then
7731 echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp
7732 fi
7733
7734 if test "$wxUSE_LISTCTRL" = yes; then
7735 echo "$as_me:$LINENO: result: yes" >&5
7736echo "${ECHO_T}yes" >&6
7737 else
7738 echo "$as_me:$LINENO: result: no" >&5
7739echo "${ECHO_T}no" >&6
7740 fi
7741
7742
7743 enablestring=
7744 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-notebook" >&5
7745echo $ECHO_N "checking for --${enablestring:-enable}-notebook... $ECHO_C" >&6
7746 no_cache=0
7747 # Check whether --enable-notebook or --disable-notebook was given.
7748if test "${enable_notebook+set}" = set; then
7749 enableval="$enable_notebook"
7750
7751 if test "$enableval" = yes; then
7752 ac_cv_use_notebook='wxUSE_NOTEBOOK=yes'
7753 else
7754 ac_cv_use_notebook='wxUSE_NOTEBOOK=no'
7755 fi
7756
7757else
7758
7759 LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}`
7760 if test "x$LINE" != x ; then
7761 eval "DEFAULT_$LINE"
7762 else
7763 no_cache=1
7764 fi
7765
7766 ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK
7767
7768fi;
7769
7770 eval "$ac_cv_use_notebook"
7771 if test "$no_cache" != 1; then
7772 echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp
7773 fi
7774
7775 if test "$wxUSE_NOTEBOOK" = yes; then
7776 echo "$as_me:$LINENO: result: yes" >&5
7777echo "${ECHO_T}yes" >&6
7778 else
7779 echo "$as_me:$LINENO: result: no" >&5
7780echo "${ECHO_T}no" >&6
7781 fi
7782
7783
7784 enablestring=
7785 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobox" >&5
7786echo $ECHO_N "checking for --${enablestring:-enable}-radiobox... $ECHO_C" >&6
7787 no_cache=0
7788 # Check whether --enable-radiobox or --disable-radiobox was given.
7789if test "${enable_radiobox+set}" = set; then
7790 enableval="$enable_radiobox"
7791
7792 if test "$enableval" = yes; then
7793 ac_cv_use_radiobox='wxUSE_RADIOBOX=yes'
7794 else
7795 ac_cv_use_radiobox='wxUSE_RADIOBOX=no'
7796 fi
7797
7798else
7799
7800 LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}`
7801 if test "x$LINE" != x ; then
7802 eval "DEFAULT_$LINE"
7803 else
7804 no_cache=1
7805 fi
7806
7807 ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX
7808
7809fi;
7810
7811 eval "$ac_cv_use_radiobox"
7812 if test "$no_cache" != 1; then
7813 echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp
7814 fi
7815
7816 if test "$wxUSE_RADIOBOX" = yes; then
7817 echo "$as_me:$LINENO: result: yes" >&5
7818echo "${ECHO_T}yes" >&6
7819 else
7820 echo "$as_me:$LINENO: result: no" >&5
7821echo "${ECHO_T}no" >&6
7822 fi
7823
7824
7825 enablestring=
7826 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobtn" >&5
7827echo $ECHO_N "checking for --${enablestring:-enable}-radiobtn... $ECHO_C" >&6
7828 no_cache=0
7829 # Check whether --enable-radiobtn or --disable-radiobtn was given.
7830if test "${enable_radiobtn+set}" = set; then
7831 enableval="$enable_radiobtn"
7832
7833 if test "$enableval" = yes; then
7834 ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes'
7835 else
7836 ac_cv_use_radiobtn='wxUSE_RADIOBTN=no'
7837 fi
7838
7839else
7840
7841 LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}`
7842 if test "x$LINE" != x ; then
7843 eval "DEFAULT_$LINE"
7844 else
7845 no_cache=1
7846 fi
7847
7848 ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN
7849
7850fi;
7851
7852 eval "$ac_cv_use_radiobtn"
7853 if test "$no_cache" != 1; then
7854 echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp
7855 fi
7856
7857 if test "$wxUSE_RADIOBTN" = yes; then
7858 echo "$as_me:$LINENO: result: yes" >&5
7859echo "${ECHO_T}yes" >&6
7860 else
7861 echo "$as_me:$LINENO: result: no" >&5
7862echo "${ECHO_T}no" >&6
7863 fi
7864
7865
7866 enablestring=
7867 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sash" >&5
7868echo $ECHO_N "checking for --${enablestring:-enable}-sash... $ECHO_C" >&6
7869 no_cache=0
7870 # Check whether --enable-sash or --disable-sash was given.
7871if test "${enable_sash+set}" = set; then
7872 enableval="$enable_sash"
7873
7874 if test "$enableval" = yes; then
7875 ac_cv_use_sash='wxUSE_SASH=yes'
7876 else
7877 ac_cv_use_sash='wxUSE_SASH=no'
7878 fi
7879
7880else
7881
7882 LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}`
7883 if test "x$LINE" != x ; then
7884 eval "DEFAULT_$LINE"
7885 else
7886 no_cache=1
7887 fi
7888
7889 ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH
7890
7891fi;
7892
7893 eval "$ac_cv_use_sash"
7894 if test "$no_cache" != 1; then
7895 echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp
7896 fi
7897
7898 if test "$wxUSE_SASH" = yes; then
7899 echo "$as_me:$LINENO: result: yes" >&5
7900echo "${ECHO_T}yes" >&6
7901 else
7902 echo "$as_me:$LINENO: result: no" >&5
7903echo "${ECHO_T}no" >&6
7904 fi
7905
7906
7907 enablestring=
7908 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-scrollbar" >&5
7909echo $ECHO_N "checking for --${enablestring:-enable}-scrollbar... $ECHO_C" >&6
7910 no_cache=0
7911 # Check whether --enable-scrollbar or --disable-scrollbar was given.
7912if test "${enable_scrollbar+set}" = set; then
7913 enableval="$enable_scrollbar"
7914
7915 if test "$enableval" = yes; then
7916 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes'
7917 else
7918 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no'
7919 fi
7920
7921else
7922
7923 LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}`
7924 if test "x$LINE" != x ; then
7925 eval "DEFAULT_$LINE"
7926 else
7927 no_cache=1
7928 fi
7929
7930 ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR
7931
7932fi;
7933
7934 eval "$ac_cv_use_scrollbar"
7935 if test "$no_cache" != 1; then
7936 echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp
7937 fi
7938
7939 if test "$wxUSE_SCROLLBAR" = yes; then
7940 echo "$as_me:$LINENO: result: yes" >&5
7941echo "${ECHO_T}yes" >&6
7942 else
7943 echo "$as_me:$LINENO: result: no" >&5
7944echo "${ECHO_T}no" >&6
7945 fi
7946
7947
7948 enablestring=
7949 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-slider" >&5
7950echo $ECHO_N "checking for --${enablestring:-enable}-slider... $ECHO_C" >&6
7951 no_cache=0
7952 # Check whether --enable-slider or --disable-slider was given.
7953if test "${enable_slider+set}" = set; then
7954 enableval="$enable_slider"
7955
7956 if test "$enableval" = yes; then
7957 ac_cv_use_slider='wxUSE_SLIDER=yes'
7958 else
7959 ac_cv_use_slider='wxUSE_SLIDER=no'
7960 fi
7961
7962else
7963
7964 LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}`
7965 if test "x$LINE" != x ; then
7966 eval "DEFAULT_$LINE"
7967 else
7968 no_cache=1
7969 fi
7970
7971 ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER
7972
7973fi;
7974
7975 eval "$ac_cv_use_slider"
7976 if test "$no_cache" != 1; then
7977 echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp
7978 fi
7979
7980 if test "$wxUSE_SLIDER" = yes; then
7981 echo "$as_me:$LINENO: result: yes" >&5
7982echo "${ECHO_T}yes" >&6
7983 else
7984 echo "$as_me:$LINENO: result: no" >&5
7985echo "${ECHO_T}no" >&6
7986 fi
7987
7988
7989 enablestring=
7990 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinbtn" >&5
7991echo $ECHO_N "checking for --${enablestring:-enable}-spinbtn... $ECHO_C" >&6
7992 no_cache=0
7993 # Check whether --enable-spinbtn or --disable-spinbtn was given.
7994if test "${enable_spinbtn+set}" = set; then
7995 enableval="$enable_spinbtn"
7996
7997 if test "$enableval" = yes; then
7998 ac_cv_use_spinbtn='wxUSE_SPINBTN=yes'
7999 else
8000 ac_cv_use_spinbtn='wxUSE_SPINBTN=no'
8001 fi
8002
8003else
8004
8005 LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}`
8006 if test "x$LINE" != x ; then
8007 eval "DEFAULT_$LINE"
8008 else
8009 no_cache=1
8010 fi
8011
8012 ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN
8013
8014fi;
8015
8016 eval "$ac_cv_use_spinbtn"
8017 if test "$no_cache" != 1; then
8018 echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp
8019 fi
8020
8021 if test "$wxUSE_SPINBTN" = yes; then
8022 echo "$as_me:$LINENO: result: yes" >&5
8023echo "${ECHO_T}yes" >&6
8024 else
8025 echo "$as_me:$LINENO: result: no" >&5
8026echo "${ECHO_T}no" >&6
8027 fi
8028
8029
8030 enablestring=
8031 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinctrl" >&5
8032echo $ECHO_N "checking for --${enablestring:-enable}-spinctrl... $ECHO_C" >&6
8033 no_cache=0
8034 # Check whether --enable-spinctrl or --disable-spinctrl was given.
8035if test "${enable_spinctrl+set}" = set; then
8036 enableval="$enable_spinctrl"
8037
8038 if test "$enableval" = yes; then
8039 ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes'
8040 else
8041 ac_cv_use_spinctrl='wxUSE_SPINCTRL=no'
8042 fi
8043
8044else
8045
8046 LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}`
8047 if test "x$LINE" != x ; then
8048 eval "DEFAULT_$LINE"
8049 else
8050 no_cache=1
8051 fi
8052
8053 ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL
8054
8055fi;
8056
8057 eval "$ac_cv_use_spinctrl"
8058 if test "$no_cache" != 1; then
8059 echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp
8060 fi
8061
8062 if test "$wxUSE_SPINCTRL" = yes; then
8063 echo "$as_me:$LINENO: result: yes" >&5
8064echo "${ECHO_T}yes" >&6
8065 else
8066 echo "$as_me:$LINENO: result: no" >&5
8067echo "${ECHO_T}no" >&6
8068 fi
8069
8070
8071 enablestring=
8072 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splitter" >&5
8073echo $ECHO_N "checking for --${enablestring:-enable}-splitter... $ECHO_C" >&6
8074 no_cache=0
8075 # Check whether --enable-splitter or --disable-splitter was given.
8076if test "${enable_splitter+set}" = set; then
8077 enableval="$enable_splitter"
8078
8079 if test "$enableval" = yes; then
8080 ac_cv_use_splitter='wxUSE_SPLITTER=yes'
8081 else
8082 ac_cv_use_splitter='wxUSE_SPLITTER=no'
8083 fi
8084
8085else
8086
8087 LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}`
8088 if test "x$LINE" != x ; then
8089 eval "DEFAULT_$LINE"
8090 else
8091 no_cache=1
8092 fi
8093
8094 ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER
8095
8096fi;
8097
8098 eval "$ac_cv_use_splitter"
8099 if test "$no_cache" != 1; then
8100 echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp
8101 fi
8102
8103 if test "$wxUSE_SPLITTER" = yes; then
8104 echo "$as_me:$LINENO: result: yes" >&5
8105echo "${ECHO_T}yes" >&6
8106 else
8107 echo "$as_me:$LINENO: result: no" >&5
8108echo "${ECHO_T}no" >&6
8109 fi
8110
8111
8112 enablestring=
8113 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbmp" >&5
8114echo $ECHO_N "checking for --${enablestring:-enable}-statbmp... $ECHO_C" >&6
8115 no_cache=0
8116 # Check whether --enable-statbmp or --disable-statbmp was given.
8117if test "${enable_statbmp+set}" = set; then
8118 enableval="$enable_statbmp"
8119
8120 if test "$enableval" = yes; then
8121 ac_cv_use_statbmp='wxUSE_STATBMP=yes'
8122 else
8123 ac_cv_use_statbmp='wxUSE_STATBMP=no'
8124 fi
8125
8126else
8127
8128 LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}`
8129 if test "x$LINE" != x ; then
8130 eval "DEFAULT_$LINE"
8131 else
8132 no_cache=1
8133 fi
8134
8135 ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP
8136
8137fi;
8138
8139 eval "$ac_cv_use_statbmp"
8140 if test "$no_cache" != 1; then
8141 echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp
8142 fi
8143
8144 if test "$wxUSE_STATBMP" = yes; then
8145 echo "$as_me:$LINENO: result: yes" >&5
8146echo "${ECHO_T}yes" >&6
8147 else
8148 echo "$as_me:$LINENO: result: no" >&5
8149echo "${ECHO_T}no" >&6
8150 fi
8151
8152
8153 enablestring=
8154 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbox" >&5
8155echo $ECHO_N "checking for --${enablestring:-enable}-statbox... $ECHO_C" >&6
8156 no_cache=0
8157 # Check whether --enable-statbox or --disable-statbox was given.
8158if test "${enable_statbox+set}" = set; then
8159 enableval="$enable_statbox"
8160
8161 if test "$enableval" = yes; then
8162 ac_cv_use_statbox='wxUSE_STATBOX=yes'
8163 else
8164 ac_cv_use_statbox='wxUSE_STATBOX=no'
8165 fi
8166
8167else
8168
8169 LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}`
8170 if test "x$LINE" != x ; then
8171 eval "DEFAULT_$LINE"
8172 else
8173 no_cache=1
8174 fi
8175
8176 ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX
8177
8178fi;
8179
8180 eval "$ac_cv_use_statbox"
8181 if test "$no_cache" != 1; then
8182 echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp
8183 fi
8184
8185 if test "$wxUSE_STATBOX" = yes; then
8186 echo "$as_me:$LINENO: result: yes" >&5
8187echo "${ECHO_T}yes" >&6
8188 else
8189 echo "$as_me:$LINENO: result: no" >&5
8190echo "${ECHO_T}no" >&6
8191 fi
8192
8193
8194 enablestring=
8195 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statline" >&5
8196echo $ECHO_N "checking for --${enablestring:-enable}-statline... $ECHO_C" >&6
8197 no_cache=0
8198 # Check whether --enable-statline or --disable-statline was given.
8199if test "${enable_statline+set}" = set; then
8200 enableval="$enable_statline"
8201
8202 if test "$enableval" = yes; then
8203 ac_cv_use_statline='wxUSE_STATLINE=yes'
8204 else
8205 ac_cv_use_statline='wxUSE_STATLINE=no'
8206 fi
8207
8208else
8209
8210 LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}`
8211 if test "x$LINE" != x ; then
8212 eval "DEFAULT_$LINE"
8213 else
8214 no_cache=1
8215 fi
8216
8217 ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE
8218
8219fi;
8220
8221 eval "$ac_cv_use_statline"
8222 if test "$no_cache" != 1; then
8223 echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp
8224 fi
8225
8226 if test "$wxUSE_STATLINE" = yes; then
8227 echo "$as_me:$LINENO: result: yes" >&5
8228echo "${ECHO_T}yes" >&6
8229 else
8230 echo "$as_me:$LINENO: result: no" >&5
8231echo "${ECHO_T}no" >&6
8232 fi
8233
8234
8235 enablestring=
8236 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stattext" >&5
8237echo $ECHO_N "checking for --${enablestring:-enable}-stattext... $ECHO_C" >&6
8238 no_cache=0
8239 # Check whether --enable-stattext or --disable-stattext was given.
8240if test "${enable_stattext+set}" = set; then
8241 enableval="$enable_stattext"
8242
8243 if test "$enableval" = yes; then
8244 ac_cv_use_stattext='wxUSE_STATTEXT=yes'
8245 else
8246 ac_cv_use_stattext='wxUSE_STATTEXT=no'
8247 fi
8248
8249else
8250
8251 LINE=`grep "wxUSE_STATTEXT" ${wx_arg_cache_file}`
8252 if test "x$LINE" != x ; then
8253 eval "DEFAULT_$LINE"
8254 else
8255 no_cache=1
8256 fi
8257
8258 ac_cv_use_stattext='wxUSE_STATTEXT='$DEFAULT_wxUSE_STATTEXT
8259
8260fi;
8261
8262 eval "$ac_cv_use_stattext"
8263 if test "$no_cache" != 1; then
8264 echo $ac_cv_use_stattext >> ${wx_arg_cache_file}.tmp
8265 fi
8266
8267 if test "$wxUSE_STATTEXT" = yes; then
8268 echo "$as_me:$LINENO: result: yes" >&5
8269echo "${ECHO_T}yes" >&6
8270 else
8271 echo "$as_me:$LINENO: result: no" >&5
8272echo "${ECHO_T}no" >&6
8273 fi
8274
8275
8276 enablestring=
8277 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statusbar" >&5
8278echo $ECHO_N "checking for --${enablestring:-enable}-statusbar... $ECHO_C" >&6
8279 no_cache=0
8280 # Check whether --enable-statusbar or --disable-statusbar was given.
8281if test "${enable_statusbar+set}" = set; then
8282 enableval="$enable_statusbar"
8283
8284 if test "$enableval" = yes; then
8285 ac_cv_use_statusbar='wxUSE_STATUSBAR=yes'
8286 else
8287 ac_cv_use_statusbar='wxUSE_STATUSBAR=no'
8288 fi
8289
8290else
8291
8292 LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}`
8293 if test "x$LINE" != x ; then
8294 eval "DEFAULT_$LINE"
8295 else
8296 no_cache=1
8297 fi
8298
8299 ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR
8300
8301fi;
8302
8303 eval "$ac_cv_use_statusbar"
8304 if test "$no_cache" != 1; then
8305 echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp
8306 fi
8307
8308 if test "$wxUSE_STATUSBAR" = yes; then
8309 echo "$as_me:$LINENO: result: yes" >&5
8310echo "${ECHO_T}yes" >&6
8311 else
8312 echo "$as_me:$LINENO: result: no" >&5
8313echo "${ECHO_T}no" >&6
8314 fi
8315
8316
8317 enablestring=
8318 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tabdialog" >&5
8319echo $ECHO_N "checking for --${enablestring:-enable}-tabdialog... $ECHO_C" >&6
8320 no_cache=0
8321 # Check whether --enable-tabdialog or --disable-tabdialog was given.
8322if test "${enable_tabdialog+set}" = set; then
8323 enableval="$enable_tabdialog"
8324
8325 if test "$enableval" = yes; then
8326 ac_cv_use_tabdialog='wxUSE_TABDIALOG=yes'
8327 else
8328 ac_cv_use_tabdialog='wxUSE_TABDIALOG=no'
8329 fi
8330
8331else
8332
8333 LINE=`grep "wxUSE_TABDIALOG" ${wx_arg_cache_file}`
8334 if test "x$LINE" != x ; then
8335 eval "DEFAULT_$LINE"
8336 else
8337 no_cache=1
8338 fi
8339
8340 ac_cv_use_tabdialog='wxUSE_TABDIALOG='$DEFAULT_wxUSE_TABDIALOG
8341
8342fi;
8343
8344 eval "$ac_cv_use_tabdialog"
8345 if test "$no_cache" != 1; then
8346 echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp
8347 fi
8348
8349 if test "$wxUSE_TABDIALOG" = yes; then
8350 echo "$as_me:$LINENO: result: yes" >&5
8351echo "${ECHO_T}yes" >&6
8352 else
8353 echo "$as_me:$LINENO: result: no" >&5
8354echo "${ECHO_T}no" >&6
8355 fi
8356
8357
8358 enablestring=
8359 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textctrl" >&5
8360echo $ECHO_N "checking for --${enablestring:-enable}-textctrl... $ECHO_C" >&6
8361 no_cache=0
8362 # Check whether --enable-textctrl or --disable-textctrl was given.
8363if test "${enable_textctrl+set}" = set; then
8364 enableval="$enable_textctrl"
8365
8366 if test "$enableval" = yes; then
8367 ac_cv_use_textctrl='wxUSE_TEXTCTRL=yes'
8368 else
8369 ac_cv_use_textctrl='wxUSE_TEXTCTRL=no'
8370 fi
8371
8372else
8373
8374 LINE=`grep "wxUSE_TEXTCTRL" ${wx_arg_cache_file}`
8375 if test "x$LINE" != x ; then
8376 eval "DEFAULT_$LINE"
8377 else
8378 no_cache=1
8379 fi
8380
8381 ac_cv_use_textctrl='wxUSE_TEXTCTRL='$DEFAULT_wxUSE_TEXTCTRL
8382
8383fi;
8384
8385 eval "$ac_cv_use_textctrl"
8386 if test "$no_cache" != 1; then
8387 echo $ac_cv_use_textctrl >> ${wx_arg_cache_file}.tmp
8388 fi
8389
8390 if test "$wxUSE_TEXTCTRL" = yes; then
8391 echo "$as_me:$LINENO: result: yes" >&5
8392echo "${ECHO_T}yes" >&6
8393 else
8394 echo "$as_me:$LINENO: result: no" >&5
8395echo "${ECHO_T}no" >&6
8396 fi
8397
8398
8399 enablestring=
8400 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-togglebtn" >&5
8401echo $ECHO_N "checking for --${enablestring:-enable}-togglebtn... $ECHO_C" >&6
8402 no_cache=0
8403 # Check whether --enable-togglebtn or --disable-togglebtn was given.
8404if test "${enable_togglebtn+set}" = set; then
8405 enableval="$enable_togglebtn"
8406
8407 if test "$enableval" = yes; then
8408 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes'
8409 else
8410 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=no'
8411 fi
8412
8413else
8414
8415 LINE=`grep "wxUSE_TOGGLEBTN" ${wx_arg_cache_file}`
8416 if test "x$LINE" != x ; then
8417 eval "DEFAULT_$LINE"
8418 else
8419 no_cache=1
8420 fi
8421
8422 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN='$DEFAULT_wxUSE_TOGGLEBTN
8423
8424fi;
8425
8426 eval "$ac_cv_use_togglebtn"
8427 if test "$no_cache" != 1; then
8428 echo $ac_cv_use_togglebtn >> ${wx_arg_cache_file}.tmp
8429 fi
8430
8431 if test "$wxUSE_TOGGLEBTN" = yes; then
8432 echo "$as_me:$LINENO: result: yes" >&5
8433echo "${ECHO_T}yes" >&6
8434 else
8435 echo "$as_me:$LINENO: result: no" >&5
8436echo "${ECHO_T}no" >&6
8437 fi
8438
8439
8440 enablestring=
8441 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-toolbar" >&5
8442echo $ECHO_N "checking for --${enablestring:-enable}-toolbar... $ECHO_C" >&6
8443 no_cache=0
8444 # Check whether --enable-toolbar or --disable-toolbar was given.
8445if test "${enable_toolbar+set}" = set; then
8446 enableval="$enable_toolbar"
8447
8448 if test "$enableval" = yes; then
8449 ac_cv_use_toolbar='wxUSE_TOOLBAR=yes'
8450 else
8451 ac_cv_use_toolbar='wxUSE_TOOLBAR=no'
8452 fi
8453
8454else
8455
8456 LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}`
8457 if test "x$LINE" != x ; then
8458 eval "DEFAULT_$LINE"
8459 else
8460 no_cache=1
8461 fi
8462
8463 ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR
8464
8465fi;
8466
8467 eval "$ac_cv_use_toolbar"
8468 if test "$no_cache" != 1; then
8469 echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp
8470 fi
8471
8472 if test "$wxUSE_TOOLBAR" = yes; then
8473 echo "$as_me:$LINENO: result: yes" >&5
8474echo "${ECHO_T}yes" >&6
8475 else
8476 echo "$as_me:$LINENO: result: no" >&5
8477echo "${ECHO_T}no" >&6
8478 fi
8479
8480
8481 enablestring=
8482 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarnative" >&5
8483echo $ECHO_N "checking for --${enablestring:-enable}-tbarnative... $ECHO_C" >&6
8484 no_cache=0
8485 # Check whether --enable-tbarnative or --disable-tbarnative was given.
8486if test "${enable_tbarnative+set}" = set; then
8487 enableval="$enable_tbarnative"
8488
8489 if test "$enableval" = yes; then
8490 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes'
8491 else
8492 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no'
8493 fi
8494
8495else
8496
8497 LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}`
8498 if test "x$LINE" != x ; then
8499 eval "DEFAULT_$LINE"
8500 else
8501 no_cache=1
8502 fi
8503
8504 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE
8505
8506fi;
8507
8508 eval "$ac_cv_use_tbarnative"
8509 if test "$no_cache" != 1; then
8510 echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp
8511 fi
8512
8513 if test "$wxUSE_TOOLBAR_NATIVE" = yes; then
8514 echo "$as_me:$LINENO: result: yes" >&5
8515echo "${ECHO_T}yes" >&6
8516 else
8517 echo "$as_me:$LINENO: result: no" >&5
8518echo "${ECHO_T}no" >&6
8519 fi
8520
8521
8522 enablestring=
8523 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarsmpl" >&5
8524echo $ECHO_N "checking for --${enablestring:-enable}-tbarsmpl... $ECHO_C" >&6
8525 no_cache=0
8526 # Check whether --enable-tbarsmpl or --disable-tbarsmpl was given.
8527if test "${enable_tbarsmpl+set}" = set; then
8528 enableval="$enable_tbarsmpl"
8529
8530 if test "$enableval" = yes; then
8531 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=yes'
8532 else
8533 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=no'
8534 fi
8535
8536else
8537
8538 LINE=`grep "wxUSE_TOOLBAR_SIMPLE" ${wx_arg_cache_file}`
8539 if test "x$LINE" != x ; then
8540 eval "DEFAULT_$LINE"
8541 else
8542 no_cache=1
8543 fi
8544
8545 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE='$DEFAULT_wxUSE_TOOLBAR_SIMPLE
8546
8547fi;
8548
8549 eval "$ac_cv_use_tbarsmpl"
8550 if test "$no_cache" != 1; then
8551 echo $ac_cv_use_tbarsmpl >> ${wx_arg_cache_file}.tmp
8552 fi
8553
8554 if test "$wxUSE_TOOLBAR_SIMPLE" = yes; then
8555 echo "$as_me:$LINENO: result: yes" >&5
8556echo "${ECHO_T}yes" >&6
8557 else
8558 echo "$as_me:$LINENO: result: no" >&5
8559echo "${ECHO_T}no" >&6
8560 fi
8561
8562
8563 enablestring=
8564 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-treectrl" >&5
8565echo $ECHO_N "checking for --${enablestring:-enable}-treectrl... $ECHO_C" >&6
8566 no_cache=0
8567 # Check whether --enable-treectrl or --disable-treectrl was given.
8568if test "${enable_treectrl+set}" = set; then
8569 enableval="$enable_treectrl"
8570
8571 if test "$enableval" = yes; then
8572 ac_cv_use_treectrl='wxUSE_TREECTRL=yes'
8573 else
8574 ac_cv_use_treectrl='wxUSE_TREECTRL=no'
8575 fi
8576
8577else
8578
8579 LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}`
8580 if test "x$LINE" != x ; then
8581 eval "DEFAULT_$LINE"
8582 else
8583 no_cache=1
8584 fi
8585
8586 ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL
8587
8588fi;
8589
8590 eval "$ac_cv_use_treectrl"
8591 if test "$no_cache" != 1; then
8592 echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp
8593 fi
8594
8595 if test "$wxUSE_TREECTRL" = yes; then
8596 echo "$as_me:$LINENO: result: yes" >&5
8597echo "${ECHO_T}yes" >&6
8598 else
8599 echo "$as_me:$LINENO: result: no" >&5
8600echo "${ECHO_T}no" >&6
8601 fi
8602
8603
8604 enablestring=
8605 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipwindow" >&5
8606echo $ECHO_N "checking for --${enablestring:-enable}-tipwindow... $ECHO_C" >&6
8607 no_cache=0
8608 # Check whether --enable-tipwindow or --disable-tipwindow was given.
8609if test "${enable_tipwindow+set}" = set; then
8610 enableval="$enable_tipwindow"
8611
8612 if test "$enableval" = yes; then
8613 ac_cv_use_tipwindow='wxUSE_TIPWINDOW=yes'
8614 else
8615 ac_cv_use_tipwindow='wxUSE_TIPWINDOW=no'
8616 fi
8617
8618else
8619
8620 LINE=`grep "wxUSE_TIPWINDOW" ${wx_arg_cache_file}`
8621 if test "x$LINE" != x ; then
8622 eval "DEFAULT_$LINE"
8623 else
8624 no_cache=1
8625 fi
8626
8627 ac_cv_use_tipwindow='wxUSE_TIPWINDOW='$DEFAULT_wxUSE_TIPWINDOW
8628
8629fi;
8630
8631 eval "$ac_cv_use_tipwindow"
8632 if test "$no_cache" != 1; then
8633 echo $ac_cv_use_tipwindow >> ${wx_arg_cache_file}.tmp
8634 fi
8635
8636 if test "$wxUSE_TIPWINDOW" = yes; then
8637 echo "$as_me:$LINENO: result: yes" >&5
8638echo "${ECHO_T}yes" >&6
8639 else
8640 echo "$as_me:$LINENO: result: no" >&5
8641echo "${ECHO_T}no" >&6
8642 fi
8643
8644
8645 enablestring=
8646 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-popupwin" >&5
8647echo $ECHO_N "checking for --${enablestring:-enable}-popupwin... $ECHO_C" >&6
8648 no_cache=0
8649 # Check whether --enable-popupwin or --disable-popupwin was given.
8650if test "${enable_popupwin+set}" = set; then
8651 enableval="$enable_popupwin"
8652
8653 if test "$enableval" = yes; then
8654 ac_cv_use_popupwin='wxUSE_POPUPWIN=yes'
8655 else
8656 ac_cv_use_popupwin='wxUSE_POPUPWIN=no'
8657 fi
8658
8659else
8660
8661 LINE=`grep "wxUSE_POPUPWIN" ${wx_arg_cache_file}`
8662 if test "x$LINE" != x ; then
8663 eval "DEFAULT_$LINE"
8664 else
8665 no_cache=1
8666 fi
8667
8668 ac_cv_use_popupwin='wxUSE_POPUPWIN='$DEFAULT_wxUSE_POPUPWIN
8669
8670fi;
8671
8672 eval "$ac_cv_use_popupwin"
8673 if test "$no_cache" != 1; then
8674 echo $ac_cv_use_popupwin >> ${wx_arg_cache_file}.tmp
8675 fi
8676
8677 if test "$wxUSE_POPUPWIN" = yes; then
8678 echo "$as_me:$LINENO: result: yes" >&5
8679echo "${ECHO_T}yes" >&6
8680 else
8681 echo "$as_me:$LINENO: result: no" >&5
8682echo "${ECHO_T}no" >&6
8683 fi
8684
8685
8686
8687
8688 enablestring=
8689 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-commondlg" >&5
8690echo $ECHO_N "checking for --${enablestring:-enable}-commondlg... $ECHO_C" >&6
8691 no_cache=0
8692 # Check whether --enable-commondlg or --disable-commondlg was given.
8693if test "${enable_commondlg+set}" = set; then
8694 enableval="$enable_commondlg"
8695
8696 if test "$enableval" = yes; then
8697 ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes'
8698 else
8699 ac_cv_use_commondlg='wxUSE_COMMONDLGS=no'
8700 fi
8701
8702else
8703
8704 LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}`
8705 if test "x$LINE" != x ; then
8706 eval "DEFAULT_$LINE"
8707 else
8708 no_cache=1
8709 fi
8710
8711 ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS
8712
8713fi;
8714
8715 eval "$ac_cv_use_commondlg"
8716 if test "$no_cache" != 1; then
8717 echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp
8718 fi
8719
8720 if test "$wxUSE_COMMONDLGS" = yes; then
8721 echo "$as_me:$LINENO: result: yes" >&5
8722echo "${ECHO_T}yes" >&6
8723 else
8724 echo "$as_me:$LINENO: result: no" >&5
8725echo "${ECHO_T}no" >&6
8726 fi
8727
8728
8729 enablestring=
8730 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicedlg" >&5
8731echo $ECHO_N "checking for --${enablestring:-enable}-choicedlg... $ECHO_C" >&6
8732 no_cache=0
8733 # Check whether --enable-choicedlg or --disable-choicedlg was given.
8734if test "${enable_choicedlg+set}" = set; then
8735 enableval="$enable_choicedlg"
8736
8737 if test "$enableval" = yes; then
8738 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=yes'
8739 else
8740 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=no'
8741 fi
8742
8743else
8744
8745 LINE=`grep "wxUSE_CHOICEDLG" ${wx_arg_cache_file}`
8746 if test "x$LINE" != x ; then
8747 eval "DEFAULT_$LINE"
8748 else
8749 no_cache=1
8750 fi
8751
8752 ac_cv_use_choicedlg='wxUSE_CHOICEDLG='$DEFAULT_wxUSE_CHOICEDLG
8753
8754fi;
8755
8756 eval "$ac_cv_use_choicedlg"
8757 if test "$no_cache" != 1; then
8758 echo $ac_cv_use_choicedlg >> ${wx_arg_cache_file}.tmp
8759 fi
8760
8761 if test "$wxUSE_CHOICEDLG" = yes; then
8762 echo "$as_me:$LINENO: result: yes" >&5
8763echo "${ECHO_T}yes" >&6
8764 else
8765 echo "$as_me:$LINENO: result: no" >&5
8766echo "${ECHO_T}no" >&6
8767 fi
8768
8769
8770 enablestring=
8771 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-coldlg" >&5
8772echo $ECHO_N "checking for --${enablestring:-enable}-coldlg... $ECHO_C" >&6
8773 no_cache=0
8774 # Check whether --enable-coldlg or --disable-coldlg was given.
8775if test "${enable_coldlg+set}" = set; then
8776 enableval="$enable_coldlg"
8777
8778 if test "$enableval" = yes; then
8779 ac_cv_use_coldlg='wxUSE_COLOURDLG=yes'
8780 else
8781 ac_cv_use_coldlg='wxUSE_COLOURDLG=no'
8782 fi
8783
8784else
8785
8786 LINE=`grep "wxUSE_COLOURDLG" ${wx_arg_cache_file}`
8787 if test "x$LINE" != x ; then
8788 eval "DEFAULT_$LINE"
8789 else
8790 no_cache=1
8791 fi
8792
8793 ac_cv_use_coldlg='wxUSE_COLOURDLG='$DEFAULT_wxUSE_COLOURDLG
8794
8795fi;
8796
8797 eval "$ac_cv_use_coldlg"
8798 if test "$no_cache" != 1; then
8799 echo $ac_cv_use_coldlg >> ${wx_arg_cache_file}.tmp
8800 fi
8801
8802 if test "$wxUSE_COLOURDLG" = yes; then
8803 echo "$as_me:$LINENO: result: yes" >&5
8804echo "${ECHO_T}yes" >&6
8805 else
8806 echo "$as_me:$LINENO: result: no" >&5
8807echo "${ECHO_T}no" >&6
8808 fi
8809
8810
8811 enablestring=
8812 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filedlg" >&5
8813echo $ECHO_N "checking for --${enablestring:-enable}-filedlg... $ECHO_C" >&6
8814 no_cache=0
8815 # Check whether --enable-filedlg or --disable-filedlg was given.
8816if test "${enable_filedlg+set}" = set; then
8817 enableval="$enable_filedlg"
8818
8819 if test "$enableval" = yes; then
8820 ac_cv_use_filedlg='wxUSE_FILEDLG=yes'
8821 else
8822 ac_cv_use_filedlg='wxUSE_FILEDLG=no'
8823 fi
8824
8825else
8826
8827 LINE=`grep "wxUSE_FILEDLG" ${wx_arg_cache_file}`
8828 if test "x$LINE" != x ; then
8829 eval "DEFAULT_$LINE"
8830 else
8831 no_cache=1
8832 fi
8833
8834 ac_cv_use_filedlg='wxUSE_FILEDLG='$DEFAULT_wxUSE_FILEDLG
8835
8836fi;
8837
8838 eval "$ac_cv_use_filedlg"
8839 if test "$no_cache" != 1; then
8840 echo $ac_cv_use_filedlg >> ${wx_arg_cache_file}.tmp
8841 fi
8842
8843 if test "$wxUSE_FILEDLG" = yes; then
8844 echo "$as_me:$LINENO: result: yes" >&5
8845echo "${ECHO_T}yes" >&6
8846 else
8847 echo "$as_me:$LINENO: result: no" >&5
8848echo "${ECHO_T}no" >&6
8849 fi
8850
8851
8852 enablestring=
8853 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-finddlg" >&5
8854echo $ECHO_N "checking for --${enablestring:-enable}-finddlg... $ECHO_C" >&6
8855 no_cache=0
8856 # Check whether --enable-finddlg or --disable-finddlg was given.
8857if test "${enable_finddlg+set}" = set; then
8858 enableval="$enable_finddlg"
8859
8860 if test "$enableval" = yes; then
8861 ac_cv_use_finddlg='wxUSE_FINDREPLDLG=yes'
8862 else
8863 ac_cv_use_finddlg='wxUSE_FINDREPLDLG=no'
8864 fi
8865
8866else
8867
8868 LINE=`grep "wxUSE_FINDREPLDLG" ${wx_arg_cache_file}`
8869 if test "x$LINE" != x ; then
8870 eval "DEFAULT_$LINE"
8871 else
8872 no_cache=1
8873 fi
8874
8875 ac_cv_use_finddlg='wxUSE_FINDREPLDLG='$DEFAULT_wxUSE_FINDREPLDLG
8876
8877fi;
8878
8879 eval "$ac_cv_use_finddlg"
8880 if test "$no_cache" != 1; then
8881 echo $ac_cv_use_finddlg >> ${wx_arg_cache_file}.tmp
8882 fi
8883
8884 if test "$wxUSE_FINDREPLDLG" = yes; then
8885 echo "$as_me:$LINENO: result: yes" >&5
8886echo "${ECHO_T}yes" >&6
8887 else
8888 echo "$as_me:$LINENO: result: no" >&5
8889echo "${ECHO_T}no" >&6
8890 fi
8891
8892
8893 enablestring=
8894 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontdlg" >&5
8895echo $ECHO_N "checking for --${enablestring:-enable}-fontdlg... $ECHO_C" >&6
8896 no_cache=0
8897 # Check whether --enable-fontdlg or --disable-fontdlg was given.
8898if test "${enable_fontdlg+set}" = set; then
8899 enableval="$enable_fontdlg"
8900
8901 if test "$enableval" = yes; then
8902 ac_cv_use_fontdlg='wxUSE_FONTDLG=yes'
8903 else
8904 ac_cv_use_fontdlg='wxUSE_FONTDLG=no'
8905 fi
8906
8907else
8908
8909 LINE=`grep "wxUSE_FONTDLG" ${wx_arg_cache_file}`
8910 if test "x$LINE" != x ; then
8911 eval "DEFAULT_$LINE"
8912 else
8913 no_cache=1
8914 fi
8915
8916 ac_cv_use_fontdlg='wxUSE_FONTDLG='$DEFAULT_wxUSE_FONTDLG
8917
8918fi;
8919
8920 eval "$ac_cv_use_fontdlg"
8921 if test "$no_cache" != 1; then
8922 echo $ac_cv_use_fontdlg >> ${wx_arg_cache_file}.tmp
8923 fi
8924
8925 if test "$wxUSE_FONTDLG" = yes; then
8926 echo "$as_me:$LINENO: result: yes" >&5
8927echo "${ECHO_T}yes" >&6
8928 else
8929 echo "$as_me:$LINENO: result: no" >&5
8930echo "${ECHO_T}no" >&6
8931 fi
8932
8933
8934 enablestring=
8935 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dirdlg" >&5
8936echo $ECHO_N "checking for --${enablestring:-enable}-dirdlg... $ECHO_C" >&6
8937 no_cache=0
8938 # Check whether --enable-dirdlg or --disable-dirdlg was given.
8939if test "${enable_dirdlg+set}" = set; then
8940 enableval="$enable_dirdlg"
8941
8942 if test "$enableval" = yes; then
8943 ac_cv_use_dirdlg='wxUSE_DIRDLG=yes'
8944 else
8945 ac_cv_use_dirdlg='wxUSE_DIRDLG=no'
8946 fi
8947
8948else
8949
8950 LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}`
8951 if test "x$LINE" != x ; then
8952 eval "DEFAULT_$LINE"
8953 else
8954 no_cache=1
8955 fi
8956
8957 ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG
8958
8959fi;
8960
8961 eval "$ac_cv_use_dirdlg"
8962 if test "$no_cache" != 1; then
8963 echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp
8964 fi
8965
8966 if test "$wxUSE_DIRDLG" = yes; then
8967 echo "$as_me:$LINENO: result: yes" >&5
8968echo "${ECHO_T}yes" >&6
8969 else
8970 echo "$as_me:$LINENO: result: no" >&5
8971echo "${ECHO_T}no" >&6
8972 fi
8973
8974
8975 enablestring=
8976 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-msgdlg" >&5
8977echo $ECHO_N "checking for --${enablestring:-enable}-msgdlg... $ECHO_C" >&6
8978 no_cache=0
8979 # Check whether --enable-msgdlg or --disable-msgdlg was given.
8980if test "${enable_msgdlg+set}" = set; then
8981 enableval="$enable_msgdlg"
8982
8983 if test "$enableval" = yes; then
8984 ac_cv_use_msgdlg='wxUSE_MSGDLG=yes'
8985 else
8986 ac_cv_use_msgdlg='wxUSE_MSGDLG=no'
8987 fi
8988
8989else
8990
8991 LINE=`grep "wxUSE_MSGDLG" ${wx_arg_cache_file}`
8992 if test "x$LINE" != x ; then
8993 eval "DEFAULT_$LINE"
8994 else
8995 no_cache=1
8996 fi
8997
8998 ac_cv_use_msgdlg='wxUSE_MSGDLG='$DEFAULT_wxUSE_MSGDLG
8999
9000fi;
9001
9002 eval "$ac_cv_use_msgdlg"
9003 if test "$no_cache" != 1; then
9004 echo $ac_cv_use_msgdlg >> ${wx_arg_cache_file}.tmp
9005 fi
9006
9007 if test "$wxUSE_MSGDLG" = yes; then
9008 echo "$as_me:$LINENO: result: yes" >&5
9009echo "${ECHO_T}yes" >&6
9010 else
9011 echo "$as_me:$LINENO: result: no" >&5
9012echo "${ECHO_T}no" >&6
9013 fi
9014
9015
9016 enablestring=
9017 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-numberdlg" >&5
9018echo $ECHO_N "checking for --${enablestring:-enable}-numberdlg... $ECHO_C" >&6
9019 no_cache=0
9020 # Check whether --enable-numberdlg or --disable-numberdlg was given.
9021if test "${enable_numberdlg+set}" = set; then
9022 enableval="$enable_numberdlg"
9023
9024 if test "$enableval" = yes; then
9025 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=yes'
9026 else
9027 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=no'
9028 fi
9029
9030else
9031
9032 LINE=`grep "wxUSE_NUMBERDLG" ${wx_arg_cache_file}`
9033 if test "x$LINE" != x ; then
9034 eval "DEFAULT_$LINE"
9035 else
9036 no_cache=1
9037 fi
9038
9039 ac_cv_use_numberdlg='wxUSE_NUMBERDLG='$DEFAULT_wxUSE_NUMBERDLG
9040
9041fi;
9042
9043 eval "$ac_cv_use_numberdlg"
9044 if test "$no_cache" != 1; then
9045 echo $ac_cv_use_numberdlg >> ${wx_arg_cache_file}.tmp
9046 fi
9047
9048 if test "$wxUSE_NUMBERDLG" = yes; then
9049 echo "$as_me:$LINENO: result: yes" >&5
9050echo "${ECHO_T}yes" >&6
9051 else
9052 echo "$as_me:$LINENO: result: no" >&5
9053echo "${ECHO_T}no" >&6
9054 fi
9055
9056
9057 enablestring=
9058 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splash" >&5
9059echo $ECHO_N "checking for --${enablestring:-enable}-splash... $ECHO_C" >&6
9060 no_cache=0
9061 # Check whether --enable-splash or --disable-splash was given.
9062if test "${enable_splash+set}" = set; then
9063 enableval="$enable_splash"
9064
9065 if test "$enableval" = yes; then
9066 ac_cv_use_splash='wxUSE_SPLASH=yes'
9067 else
9068 ac_cv_use_splash='wxUSE_SPLASH=no'
9069 fi
9070
9071else
9072
9073 LINE=`grep "wxUSE_SPLASH" ${wx_arg_cache_file}`
9074 if test "x$LINE" != x ; then
9075 eval "DEFAULT_$LINE"
9076 else
9077 no_cache=1
9078 fi
9079
9080 ac_cv_use_splash='wxUSE_SPLASH='$DEFAULT_wxUSE_SPLASH
9081
9082fi;
9083
9084 eval "$ac_cv_use_splash"
9085 if test "$no_cache" != 1; then
9086 echo $ac_cv_use_splash >> ${wx_arg_cache_file}.tmp
9087 fi
9088
9089 if test "$wxUSE_SPLASH" = yes; then
9090 echo "$as_me:$LINENO: result: yes" >&5
9091echo "${ECHO_T}yes" >&6
9092 else
9093 echo "$as_me:$LINENO: result: no" >&5
9094echo "${ECHO_T}no" >&6
9095 fi
9096
9097
9098 enablestring=
9099 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textdlg" >&5
9100echo $ECHO_N "checking for --${enablestring:-enable}-textdlg... $ECHO_C" >&6
9101 no_cache=0
9102 # Check whether --enable-textdlg or --disable-textdlg was given.
9103if test "${enable_textdlg+set}" = set; then
9104 enableval="$enable_textdlg"
9105
9106 if test "$enableval" = yes; then
9107 ac_cv_use_textdlg='wxUSE_TEXTDLG=yes'
9108 else
9109 ac_cv_use_textdlg='wxUSE_TEXTDLG=no'
9110 fi
9111
9112else
9113
9114 LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}`
9115 if test "x$LINE" != x ; then
9116 eval "DEFAULT_$LINE"
9117 else
9118 no_cache=1
9119 fi
9120
9121 ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG
9122
9123fi;
9124
9125 eval "$ac_cv_use_textdlg"
9126 if test "$no_cache" != 1; then
9127 echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp
9128 fi
9129
9130 if test "$wxUSE_TEXTDLG" = yes; then
9131 echo "$as_me:$LINENO: result: yes" >&5
9132echo "${ECHO_T}yes" >&6
9133 else
9134 echo "$as_me:$LINENO: result: no" >&5
9135echo "${ECHO_T}no" >&6
9136 fi
9137
9138
9139 enablestring=
9140 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipdlg" >&5
9141echo $ECHO_N "checking for --${enablestring:-enable}-tipdlg... $ECHO_C" >&6
9142 no_cache=0
9143 # Check whether --enable-tipdlg or --disable-tipdlg was given.
9144if test "${enable_tipdlg+set}" = set; then
9145 enableval="$enable_tipdlg"
9146
9147 if test "$enableval" = yes; then
9148 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes'
9149 else
9150 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no'
9151 fi
9152
9153else
9154
9155 LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}`
9156 if test "x$LINE" != x ; then
9157 eval "DEFAULT_$LINE"
9158 else
9159 no_cache=1
9160 fi
9161
9162 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS
9163
9164fi;
9165
9166 eval "$ac_cv_use_tipdlg"
9167 if test "$no_cache" != 1; then
9168 echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp
9169 fi
9170
9171 if test "$wxUSE_STARTUP_TIPS" = yes; then
9172 echo "$as_me:$LINENO: result: yes" >&5
9173echo "${ECHO_T}yes" >&6
9174 else
9175 echo "$as_me:$LINENO: result: no" >&5
9176echo "${ECHO_T}no" >&6
9177 fi
9178
9179
9180 enablestring=
9181 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-progressdlg" >&5
9182echo $ECHO_N "checking for --${enablestring:-enable}-progressdlg... $ECHO_C" >&6
9183 no_cache=0
9184 # Check whether --enable-progressdlg or --disable-progressdlg was given.
9185if test "${enable_progressdlg+set}" = set; then
9186 enableval="$enable_progressdlg"
9187
9188 if test "$enableval" = yes; then
9189 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes'
9190 else
9191 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no'
9192 fi
9193
9194else
9195
9196 LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}`
9197 if test "x$LINE" != x ; then
9198 eval "DEFAULT_$LINE"
9199 else
9200 no_cache=1
9201 fi
9202
9203 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG
9204
9205fi;
9206
9207 eval "$ac_cv_use_progressdlg"
9208 if test "$no_cache" != 1; then
9209 echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp
9210 fi
9211
9212 if test "$wxUSE_PROGRESSDLG" = yes; then
9213 echo "$as_me:$LINENO: result: yes" >&5
9214echo "${ECHO_T}yes" >&6
9215 else
9216 echo "$as_me:$LINENO: result: no" >&5
9217echo "${ECHO_T}no" >&6
9218 fi
9219
9220
9221 enablestring=
9222 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wizarddlg" >&5
9223echo $ECHO_N "checking for --${enablestring:-enable}-wizarddlg... $ECHO_C" >&6
9224 no_cache=0
9225 # Check whether --enable-wizarddlg or --disable-wizarddlg was given.
9226if test "${enable_wizarddlg+set}" = set; then
9227 enableval="$enable_wizarddlg"
9228
9229 if test "$enableval" = yes; then
9230 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=yes'
9231 else
9232 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=no'
9233 fi
9234
9235else
9236
9237 LINE=`grep "wxUSE_WIZARDDLG" ${wx_arg_cache_file}`
9238 if test "x$LINE" != x ; then
9239 eval "DEFAULT_$LINE"
9240 else
9241 no_cache=1
9242 fi
9243
9244 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG='$DEFAULT_wxUSE_WIZARDDLG
9245
9246fi;
9247
9248 eval "$ac_cv_use_wizarddlg"
9249 if test "$no_cache" != 1; then
9250 echo $ac_cv_use_wizarddlg >> ${wx_arg_cache_file}.tmp
9251 fi
9252
9253 if test "$wxUSE_WIZARDDLG" = yes; then
9254 echo "$as_me:$LINENO: result: yes" >&5
9255echo "${ECHO_T}yes" >&6
9256 else
9257 echo "$as_me:$LINENO: result: no" >&5
9258echo "${ECHO_T}no" >&6
9259 fi
9260
9261
9262
9263
9264 enablestring=
9265 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-menus" >&5
9266echo $ECHO_N "checking for --${enablestring:-enable}-menus... $ECHO_C" >&6
9267 no_cache=0
9268 # Check whether --enable-menus or --disable-menus was given.
9269if test "${enable_menus+set}" = set; then
9270 enableval="$enable_menus"
9271
9272 if test "$enableval" = yes; then
9273 ac_cv_use_menus='wxUSE_MENUS=yes'
9274 else
9275 ac_cv_use_menus='wxUSE_MENUS=no'
9276 fi
9277
9278else
9279
9280 LINE=`grep "wxUSE_MENUS" ${wx_arg_cache_file}`
9281 if test "x$LINE" != x ; then
9282 eval "DEFAULT_$LINE"
9283 else
9284 no_cache=1
9285 fi
9286
9287 ac_cv_use_menus='wxUSE_MENUS='$DEFAULT_wxUSE_MENUS
9288
9289fi;
9290
9291 eval "$ac_cv_use_menus"
9292 if test "$no_cache" != 1; then
9293 echo $ac_cv_use_menus >> ${wx_arg_cache_file}.tmp
9294 fi
9295
9296 if test "$wxUSE_MENUS" = yes; then
9297 echo "$as_me:$LINENO: result: yes" >&5
9298echo "${ECHO_T}yes" >&6
9299 else
9300 echo "$as_me:$LINENO: result: no" >&5
9301echo "${ECHO_T}no" >&6
9302 fi
9303
9304
9305 enablestring=
9306 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-miniframe" >&5
9307echo $ECHO_N "checking for --${enablestring:-enable}-miniframe... $ECHO_C" >&6
9308 no_cache=0
9309 # Check whether --enable-miniframe or --disable-miniframe was given.
9310if test "${enable_miniframe+set}" = set; then
9311 enableval="$enable_miniframe"
9312
9313 if test "$enableval" = yes; then
9314 ac_cv_use_miniframe='wxUSE_MINIFRAME=yes'
9315 else
9316 ac_cv_use_miniframe='wxUSE_MINIFRAME=no'
9317 fi
9318
9319else
9320
9321 LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}`
9322 if test "x$LINE" != x ; then
9323 eval "DEFAULT_$LINE"
9324 else
9325 no_cache=1
9326 fi
9327
9328 ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME
9329
9330fi;
9331
9332 eval "$ac_cv_use_miniframe"
9333 if test "$no_cache" != 1; then
9334 echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp
9335 fi
9336
9337 if test "$wxUSE_MINIFRAME" = yes; then
9338 echo "$as_me:$LINENO: result: yes" >&5
9339echo "${ECHO_T}yes" >&6
9340 else
9341 echo "$as_me:$LINENO: result: no" >&5
9342echo "${ECHO_T}no" >&6
9343 fi
9344
9345
9346 enablestring=
9347 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tooltips" >&5
9348echo $ECHO_N "checking for --${enablestring:-enable}-tooltips... $ECHO_C" >&6
9349 no_cache=0
9350 # Check whether --enable-tooltips or --disable-tooltips was given.
9351if test "${enable_tooltips+set}" = set; then
9352 enableval="$enable_tooltips"
9353
9354 if test "$enableval" = yes; then
9355 ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes'
9356 else
9357 ac_cv_use_tooltips='wxUSE_TOOLTIPS=no'
9358 fi
9359
9360else
9361
9362 LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}`
9363 if test "x$LINE" != x ; then
9364 eval "DEFAULT_$LINE"
9365 else
9366 no_cache=1
9367 fi
9368
9369 ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS
9370
9371fi;
9372
9373 eval "$ac_cv_use_tooltips"
9374 if test "$no_cache" != 1; then
9375 echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp
9376 fi
9377
9378 if test "$wxUSE_TOOLTIPS" = yes; then
9379 echo "$as_me:$LINENO: result: yes" >&5
9380echo "${ECHO_T}yes" >&6
9381 else
9382 echo "$as_me:$LINENO: result: no" >&5
9383echo "${ECHO_T}no" >&6
9384 fi
9385
9386
9387 enablestring=
9388 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splines" >&5
9389echo $ECHO_N "checking for --${enablestring:-enable}-splines... $ECHO_C" >&6
9390 no_cache=0
9391 # Check whether --enable-splines or --disable-splines was given.
9392if test "${enable_splines+set}" = set; then
9393 enableval="$enable_splines"
9394
9395 if test "$enableval" = yes; then
9396 ac_cv_use_splines='wxUSE_SPLINES=yes'
9397 else
9398 ac_cv_use_splines='wxUSE_SPLINES=no'
9399 fi
9400
9401else
9402
9403 LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}`
9404 if test "x$LINE" != x ; then
9405 eval "DEFAULT_$LINE"
9406 else
9407 no_cache=1
9408 fi
9409
9410 ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES
9411
9412fi;
9413
9414 eval "$ac_cv_use_splines"
9415 if test "$no_cache" != 1; then
9416 echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp
9417 fi
9418
9419 if test "$wxUSE_SPLINES" = yes; then
9420 echo "$as_me:$LINENO: result: yes" >&5
9421echo "${ECHO_T}yes" >&6
9422 else
9423 echo "$as_me:$LINENO: result: no" >&5
9424echo "${ECHO_T}no" >&6
9425 fi
9426
9427
9428 enablestring=
9429 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-validators" >&5
9430echo $ECHO_N "checking for --${enablestring:-enable}-validators... $ECHO_C" >&6
9431 no_cache=0
9432 # Check whether --enable-validators or --disable-validators was given.
9433if test "${enable_validators+set}" = set; then
9434 enableval="$enable_validators"
9435
9436 if test "$enableval" = yes; then
9437 ac_cv_use_validators='wxUSE_VALIDATORS=yes'
9438 else
9439 ac_cv_use_validators='wxUSE_VALIDATORS=no'
9440 fi
9441
9442else
9443
9444 LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}`
9445 if test "x$LINE" != x ; then
9446 eval "DEFAULT_$LINE"
9447 else
9448 no_cache=1
9449 fi
9450
9451 ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS
9452
9453fi;
9454
9455 eval "$ac_cv_use_validators"
9456 if test "$no_cache" != 1; then
9457 echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp
9458 fi
9459
9460 if test "$wxUSE_VALIDATORS" = yes; then
9461 echo "$as_me:$LINENO: result: yes" >&5
9462echo "${ECHO_T}yes" >&6
9463 else
9464 echo "$as_me:$LINENO: result: no" >&5
9465echo "${ECHO_T}no" >&6
9466 fi
9467
9468
9469 enablestring=
9470 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-busyinfo" >&5
9471echo $ECHO_N "checking for --${enablestring:-enable}-busyinfo... $ECHO_C" >&6
9472 no_cache=0
9473 # Check whether --enable-busyinfo or --disable-busyinfo was given.
9474if test "${enable_busyinfo+set}" = set; then
9475 enableval="$enable_busyinfo"
9476
9477 if test "$enableval" = yes; then
9478 ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes'
9479 else
9480 ac_cv_use_busyinfo='wxUSE_BUSYINFO=no'
9481 fi
9482
9483else
9484
9485 LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}`
9486 if test "x$LINE" != x ; then
9487 eval "DEFAULT_$LINE"
9488 else
9489 no_cache=1
9490 fi
9491
9492 ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO
9493
9494fi;
9495
9496 eval "$ac_cv_use_busyinfo"
9497 if test "$no_cache" != 1; then
9498 echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp
9499 fi
9500
9501 if test "$wxUSE_BUSYINFO" = yes; then
9502 echo "$as_me:$LINENO: result: yes" >&5
9503echo "${ECHO_T}yes" >&6
9504 else
9505 echo "$as_me:$LINENO: result: no" >&5
9506echo "${ECHO_T}no" >&6
9507 fi
9508
9509
9510 enablestring=
9511 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-joystick" >&5
9512echo $ECHO_N "checking for --${enablestring:-enable}-joystick... $ECHO_C" >&6
9513 no_cache=0
9514 # Check whether --enable-joystick or --disable-joystick was given.
9515if test "${enable_joystick+set}" = set; then
9516 enableval="$enable_joystick"
9517
9518 if test "$enableval" = yes; then
9519 ac_cv_use_joystick='wxUSE_JOYSTICK=yes'
9520 else
9521 ac_cv_use_joystick='wxUSE_JOYSTICK=no'
9522 fi
9523
9524else
9525
9526 LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}`
9527 if test "x$LINE" != x ; then
9528 eval "DEFAULT_$LINE"
9529 else
9530 no_cache=1
9531 fi
9532
9533 ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK
9534
9535fi;
9536
9537 eval "$ac_cv_use_joystick"
9538 if test "$no_cache" != 1; then
9539 echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp
9540 fi
9541
9542 if test "$wxUSE_JOYSTICK" = yes; then
9543 echo "$as_me:$LINENO: result: yes" >&5
9544echo "${ECHO_T}yes" >&6
9545 else
9546 echo "$as_me:$LINENO: result: no" >&5
9547echo "${ECHO_T}no" >&6
9548 fi
9549
9550
9551 enablestring=
9552 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5
9553echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6
9554 no_cache=0
9555 # Check whether --enable-metafile or --disable-metafile was given.
9556if test "${enable_metafile+set}" = set; then
9557 enableval="$enable_metafile"
9558
9559 if test "$enableval" = yes; then
9560 ac_cv_use_metafile='wxUSE_METAFILE=yes'
9561 else
9562 ac_cv_use_metafile='wxUSE_METAFILE=no'
9563 fi
9564
9565else
9566
9567 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
9568 if test "x$LINE" != x ; then
9569 eval "DEFAULT_$LINE"
9570 else
9571 no_cache=1
9572 fi
9573
9574 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
9575
9576fi;
9577
9578 eval "$ac_cv_use_metafile"
9579 if test "$no_cache" != 1; then
9580 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
9581 fi
9582
9583 if test "$wxUSE_METAFILE" = yes; then
9584 echo "$as_me:$LINENO: result: yes" >&5
9585echo "${ECHO_T}yes" >&6
9586 else
9587 echo "$as_me:$LINENO: result: no" >&5
9588echo "${ECHO_T}no" >&6
9589 fi
9590
9591
9592 enablestring=
9593 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dragimage" >&5
9594echo $ECHO_N "checking for --${enablestring:-enable}-dragimage... $ECHO_C" >&6
9595 no_cache=0
9596 # Check whether --enable-dragimage or --disable-dragimage was given.
9597if test "${enable_dragimage+set}" = set; then
9598 enableval="$enable_dragimage"
9599
9600 if test "$enableval" = yes; then
9601 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=yes'
9602 else
9603 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=no'
9604 fi
9605
9606else
9607
9608 LINE=`grep "wxUSE_DRAGIMAGE" ${wx_arg_cache_file}`
9609 if test "x$LINE" != x ; then
9610 eval "DEFAULT_$LINE"
9611 else
9612 no_cache=1
9613 fi
9614
9615 ac_cv_use_dragimage='wxUSE_DRAGIMAGE='$DEFAULT_wxUSE_DRAGIMAGE
9616
9617fi;
9618
9619 eval "$ac_cv_use_dragimage"
9620 if test "$no_cache" != 1; then
9621 echo $ac_cv_use_dragimage >> ${wx_arg_cache_file}.tmp
9622 fi
9623
9624 if test "$wxUSE_DRAGIMAGE" = yes; then
9625 echo "$as_me:$LINENO: result: yes" >&5
9626echo "${ECHO_T}yes" >&6
9627 else
9628 echo "$as_me:$LINENO: result: no" >&5
9629echo "${ECHO_T}no" >&6
9630 fi
9631
9632
9633 enablestring=
9634 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accessibility" >&5
9635echo $ECHO_N "checking for --${enablestring:-enable}-accessibility... $ECHO_C" >&6
9636 no_cache=0
9637 # Check whether --enable-accessibility or --disable-accessibility was given.
9638if test "${enable_accessibility+set}" = set; then
9639 enableval="$enable_accessibility"
9640
9641 if test "$enableval" = yes; then
9642 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=yes'
9643 else
9644 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=no'
9645 fi
9646
9647else
9648
9649 LINE=`grep "wxUSE_ACCESSIBILITY" ${wx_arg_cache_file}`
9650 if test "x$LINE" != x ; then
9651 eval "DEFAULT_$LINE"
9652 else
9653 no_cache=1
9654 fi
9655
9656 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY='$DEFAULT_wxUSE_ACCESSIBILITY
9657
9658fi;
9659
9660 eval "$ac_cv_use_accessibility"
9661 if test "$no_cache" != 1; then
9662 echo $ac_cv_use_accessibility >> ${wx_arg_cache_file}.tmp
9663 fi
9664
9665 if test "$wxUSE_ACCESSIBILITY" = yes; then
9666 echo "$as_me:$LINENO: result: yes" >&5
9667echo "${ECHO_T}yes" >&6
9668 else
9669 echo "$as_me:$LINENO: result: no" >&5
9670echo "${ECHO_T}no" >&6
9671 fi
9672
9673
9674
9675
9676 enablestring=
9677 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-palette" >&5
9678echo $ECHO_N "checking for --${enablestring:-enable}-palette... $ECHO_C" >&6
9679 no_cache=0
9680 # Check whether --enable-palette or --disable-palette was given.
9681if test "${enable_palette+set}" = set; then
9682 enableval="$enable_palette"
9683
9684 if test "$enableval" = yes; then
9685 ac_cv_use_palette='wxUSE_PALETTE=yes'
9686 else
9687 ac_cv_use_palette='wxUSE_PALETTE=no'
9688 fi
9689
9690else
9691
9692 LINE=`grep "wxUSE_PALETTE" ${wx_arg_cache_file}`
9693 if test "x$LINE" != x ; then
9694 eval "DEFAULT_$LINE"
9695 else
9696 no_cache=1
9697 fi
9698
9699 ac_cv_use_palette='wxUSE_PALETTE='$DEFAULT_wxUSE_PALETTE
9700
9701fi;
9702
9703 eval "$ac_cv_use_palette"
9704 if test "$no_cache" != 1; then
9705 echo $ac_cv_use_palette >> ${wx_arg_cache_file}.tmp
9706 fi
9707
9708 if test "$wxUSE_PALETTE" = yes; then
9709 echo "$as_me:$LINENO: result: yes" >&5
9710echo "${ECHO_T}yes" >&6
9711 else
9712 echo "$as_me:$LINENO: result: no" >&5
9713echo "${ECHO_T}no" >&6
9714 fi
9715
9716
9717 enablestring=
9718 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-image" >&5
9719echo $ECHO_N "checking for --${enablestring:-enable}-image... $ECHO_C" >&6
9720 no_cache=0
9721 # Check whether --enable-image or --disable-image was given.
9722if test "${enable_image+set}" = set; then
9723 enableval="$enable_image"
9724
9725 if test "$enableval" = yes; then
9726 ac_cv_use_image='wxUSE_IMAGE=yes'
9727 else
9728 ac_cv_use_image='wxUSE_IMAGE=no'
9729 fi
9730
9731else
9732
9733 LINE=`grep "wxUSE_IMAGE" ${wx_arg_cache_file}`
9734 if test "x$LINE" != x ; then
9735 eval "DEFAULT_$LINE"
9736 else
9737 no_cache=1
9738 fi
9739
9740 ac_cv_use_image='wxUSE_IMAGE='$DEFAULT_wxUSE_IMAGE
9741
9742fi;
9743
9744 eval "$ac_cv_use_image"
9745 if test "$no_cache" != 1; then
9746 echo $ac_cv_use_image >> ${wx_arg_cache_file}.tmp
9747 fi
9748
9749 if test "$wxUSE_IMAGE" = yes; then
9750 echo "$as_me:$LINENO: result: yes" >&5
9751echo "${ECHO_T}yes" >&6
9752 else
9753 echo "$as_me:$LINENO: result: no" >&5
9754echo "${ECHO_T}no" >&6
9755 fi
9756
9757
9758 enablestring=
9759 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gif" >&5
9760echo $ECHO_N "checking for --${enablestring:-enable}-gif... $ECHO_C" >&6
9761 no_cache=0
9762 # Check whether --enable-gif or --disable-gif was given.
9763if test "${enable_gif+set}" = set; then
9764 enableval="$enable_gif"
9765
9766 if test "$enableval" = yes; then
9767 ac_cv_use_gif='wxUSE_GIF=yes'
9768 else
9769 ac_cv_use_gif='wxUSE_GIF=no'
9770 fi
9771
9772else
9773
9774 LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}`
9775 if test "x$LINE" != x ; then
9776 eval "DEFAULT_$LINE"
9777 else
9778 no_cache=1
9779 fi
9780
9781 ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF
9782
9783fi;
9784
9785 eval "$ac_cv_use_gif"
9786 if test "$no_cache" != 1; then
9787 echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp
9788 fi
9789
9790 if test "$wxUSE_GIF" = yes; then
9791 echo "$as_me:$LINENO: result: yes" >&5
9792echo "${ECHO_T}yes" >&6
9793 else
9794 echo "$as_me:$LINENO: result: no" >&5
9795echo "${ECHO_T}no" >&6
9796 fi
9797
9798
9799 enablestring=
9800 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pcx" >&5
9801echo $ECHO_N "checking for --${enablestring:-enable}-pcx... $ECHO_C" >&6
9802 no_cache=0
9803 # Check whether --enable-pcx or --disable-pcx was given.
9804if test "${enable_pcx+set}" = set; then
9805 enableval="$enable_pcx"
9806
9807 if test "$enableval" = yes; then
9808 ac_cv_use_pcx='wxUSE_PCX=yes'
9809 else
9810 ac_cv_use_pcx='wxUSE_PCX=no'
9811 fi
9812
9813else
9814
9815 LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}`
9816 if test "x$LINE" != x ; then
9817 eval "DEFAULT_$LINE"
9818 else
9819 no_cache=1
9820 fi
9821
9822 ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX
9823
9824fi;
9825
9826 eval "$ac_cv_use_pcx"
9827 if test "$no_cache" != 1; then
9828 echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp
9829 fi
9830
9831 if test "$wxUSE_PCX" = yes; then
9832 echo "$as_me:$LINENO: result: yes" >&5
9833echo "${ECHO_T}yes" >&6
9834 else
9835 echo "$as_me:$LINENO: result: no" >&5
9836echo "${ECHO_T}no" >&6
9837 fi
9838
9839
9840 enablestring=
9841 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-iff" >&5
9842echo $ECHO_N "checking for --${enablestring:-enable}-iff... $ECHO_C" >&6
9843 no_cache=0
9844 # Check whether --enable-iff or --disable-iff was given.
9845if test "${enable_iff+set}" = set; then
9846 enableval="$enable_iff"
9847
9848 if test "$enableval" = yes; then
9849 ac_cv_use_iff='wxUSE_IFF=yes'
9850 else
9851 ac_cv_use_iff='wxUSE_IFF=no'
9852 fi
9853
9854else
9855
9856 LINE=`grep "wxUSE_IFF" ${wx_arg_cache_file}`
9857 if test "x$LINE" != x ; then
9858 eval "DEFAULT_$LINE"
9859 else
9860 no_cache=1
9861 fi
9862
9863 ac_cv_use_iff='wxUSE_IFF='$DEFAULT_wxUSE_IFF
9864
9865fi;
9866
9867 eval "$ac_cv_use_iff"
9868 if test "$no_cache" != 1; then
9869 echo $ac_cv_use_iff >> ${wx_arg_cache_file}.tmp
9870 fi
9871
9872 if test "$wxUSE_IFF" = yes; then
9873 echo "$as_me:$LINENO: result: yes" >&5
9874echo "${ECHO_T}yes" >&6
9875 else
9876 echo "$as_me:$LINENO: result: no" >&5
9877echo "${ECHO_T}no" >&6
9878 fi
9879
9880
9881 enablestring=
9882 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pnm" >&5
9883echo $ECHO_N "checking for --${enablestring:-enable}-pnm... $ECHO_C" >&6
9884 no_cache=0
9885 # Check whether --enable-pnm or --disable-pnm was given.
9886if test "${enable_pnm+set}" = set; then
9887 enableval="$enable_pnm"
9888
9889 if test "$enableval" = yes; then
9890 ac_cv_use_pnm='wxUSE_PNM=yes'
9891 else
9892 ac_cv_use_pnm='wxUSE_PNM=no'
9893 fi
9894
9895else
9896
9897 LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}`
9898 if test "x$LINE" != x ; then
9899 eval "DEFAULT_$LINE"
9900 else
9901 no_cache=1
9902 fi
9903
9904 ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM
9905
9906fi;
9907
9908 eval "$ac_cv_use_pnm"
9909 if test "$no_cache" != 1; then
9910 echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp
9911 fi
9912
9913 if test "$wxUSE_PNM" = yes; then
9914 echo "$as_me:$LINENO: result: yes" >&5
9915echo "${ECHO_T}yes" >&6
9916 else
9917 echo "$as_me:$LINENO: result: no" >&5
9918echo "${ECHO_T}no" >&6
9919 fi
9920
9921
9922 enablestring=
9923 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xpm" >&5
9924echo $ECHO_N "checking for --${enablestring:-enable}-xpm... $ECHO_C" >&6
9925 no_cache=0
9926 # Check whether --enable-xpm or --disable-xpm was given.
9927if test "${enable_xpm+set}" = set; then
9928 enableval="$enable_xpm"
9929
9930 if test "$enableval" = yes; then
9931 ac_cv_use_xpm='wxUSE_XPM=yes'
9932 else
9933 ac_cv_use_xpm='wxUSE_XPM=no'
9934 fi
9935
9936else
9937
9938 LINE=`grep "wxUSE_XPM" ${wx_arg_cache_file}`
9939 if test "x$LINE" != x ; then
9940 eval "DEFAULT_$LINE"
9941 else
9942 no_cache=1
9943 fi
9944
9945 ac_cv_use_xpm='wxUSE_XPM='$DEFAULT_wxUSE_XPM
9946
9947fi;
9948
9949 eval "$ac_cv_use_xpm"
9950 if test "$no_cache" != 1; then
9951 echo $ac_cv_use_xpm >> ${wx_arg_cache_file}.tmp
9952 fi
9953
9954 if test "$wxUSE_XPM" = yes; then
9955 echo "$as_me:$LINENO: result: yes" >&5
9956echo "${ECHO_T}yes" >&6
9957 else
9958 echo "$as_me:$LINENO: result: no" >&5
9959echo "${ECHO_T}no" >&6
9960 fi
9961
9962
9963 enablestring=
9964 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ico_cur" >&5
9965echo $ECHO_N "checking for --${enablestring:-enable}-ico_cur... $ECHO_C" >&6
9966 no_cache=0
9967 # Check whether --enable-ico_cur or --disable-ico_cur was given.
9968if test "${enable_ico_cur+set}" = set; then
9969 enableval="$enable_ico_cur"
9970
9971 if test "$enableval" = yes; then
9972 ac_cv_use_ico_cur='wxUSE_ICO_CUR=yes'
9973 else
9974 ac_cv_use_ico_cur='wxUSE_ICO_CUR=no'
9975 fi
9976
9977else
9978
9979 LINE=`grep "wxUSE_ICO_CUR" ${wx_arg_cache_file}`
9980 if test "x$LINE" != x ; then
9981 eval "DEFAULT_$LINE"
9982 else
9983 no_cache=1
9984 fi
9985
9986 ac_cv_use_ico_cur='wxUSE_ICO_CUR='$DEFAULT_wxUSE_ICO_CUR
9987
9988fi;
9989
9990 eval "$ac_cv_use_ico_cur"
9991 if test "$no_cache" != 1; then
9992 echo $ac_cv_use_ico_cur >> ${wx_arg_cache_file}.tmp
9993 fi
9994
9995 if test "$wxUSE_ICO_CUR" = yes; then
9996 echo "$as_me:$LINENO: result: yes" >&5
9997echo "${ECHO_T}yes" >&6
9998 else
9999 echo "$as_me:$LINENO: result: no" >&5
10000echo "${ECHO_T}no" >&6
10001 fi
10002
10003
10004fi
10005
10006
10007
ceec2216
RL
10008# Check whether --with-flavour or --without-flavour was given.
10009if test "${with_flavour+set}" = set; then
10010 withval="$with_flavour"
10011 WX_FLAVOUR="$withval"
10012fi;
10013
10014
10015
a848cd7e
SC
10016 enablestring=
10017 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-official_build" >&5
10018echo $ECHO_N "checking for --${enablestring:-enable}-official_build... $ECHO_C" >&6
10019 no_cache=0
10020 # Check whether --enable-official_build or --disable-official_build was given.
10021if test "${enable_official_build+set}" = set; then
10022 enableval="$enable_official_build"
10023
10024 if test "$enableval" = yes; then
10025 ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD=yes'
10026 else
10027 ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD=no'
10028 fi
10029
10030else
10031
10032 LINE=`grep "wxUSE_OFFICIAL_BUILD" ${wx_arg_cache_file}`
10033 if test "x$LINE" != x ; then
10034 eval "DEFAULT_$LINE"
10035 else
10036 no_cache=1
10037 fi
10038
10039 ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD='$DEFAULT_wxUSE_OFFICIAL_BUILD
10040
10041fi;
10042
10043 eval "$ac_cv_use_official_build"
10044 if test "$no_cache" != 1; then
10045 echo $ac_cv_use_official_build >> ${wx_arg_cache_file}.tmp
10046 fi
10047
10048 if test "$wxUSE_OFFICIAL_BUILD" = yes; then
10049 echo "$as_me:$LINENO: result: yes" >&5
10050echo "${ECHO_T}yes" >&6
10051 else
10052 echo "$as_me:$LINENO: result: no" >&5
10053echo "${ECHO_T}no" >&6
10054 fi
10055
10056# Check whether --enable-vendor or --disable-vendor was given.
10057if test "${enable_vendor+set}" = set; then
10058 enableval="$enable_vendor"
10059 VENDOR="$enableval"
10060fi;
10061if test "x$VENDOR" = "x"; then
10062 VENDOR="custom"
10063fi
10064
a848cd7e
SC
10065
10066
10067
10068 echo "saving argument cache $wx_arg_cache_file"
10069 mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file}
10070
10071
10072
10073echo "$as_me:$LINENO: checking for toolkit" >&5
10074echo $ECHO_N "checking for toolkit... $ECHO_C" >&6
10075
10076# In Wine, we need to default to MSW, not GTK or MOTIF
10077if test "$wxUSE_WINE" = "yes"; then
10078 DEFAULT_DEFAULT_wxUSE_GTK=0
10079 DEFAULT_DEFAULT_wxUSE_MOTIF=0
10080 DEFAULT_DEFAULT_wxUSE_MSW=1
10081 wxUSE_SHARED=no
10082fi
10083
10084if test "$wxUSE_GUI" = "yes"; then
10085
10086 if test "$USE_BEOS" = 1; then
10087 { { echo "$as_me:$LINENO: error: BeOS GUI is not supported yet, use --disable-gui" >&5
10088echo "$as_me: error: BeOS GUI is not supported yet, use --disable-gui" >&2;}
10089 { (exit 1); exit 1; }; }
10090 fi
10091
10092 if test "$TOOLKIT_GIVEN" = 1; then
10093 for toolkit in `echo $ALL_TOOLKITS`; do
10094 var=wxUSE_$toolkit
10095 eval "value=\$${var}"
10096 eval "$var=`echo \$value | sed -e "s/yes/1/" -e "s/no/0/"`"
10097 done
10098 else
10099 for toolkit in `echo $ALL_TOOLKITS`; do
10100 if test "$has_toolkit_in_cache" != 1; then
10101 var=DEFAULT_DEFAULT_wxUSE_$toolkit
10102 else
10103 var=DEFAULT_wxUSE_$toolkit
10104 fi
10105 eval "wxUSE_$toolkit=\$${var}"
10106 done
10107 fi
10108
10109 NUM_TOOLKITS=`expr ${wxUSE_COCOA:-0} + ${wxUSE_GTK:-0} + ${wxUSE_MAC:-0} \
10110 + ${wxUSE_MGL:-0} + ${wxUSE_MICROWIN:-0} \
10111 + ${wxUSE_MOTIF:-0} + ${wxUSE_MSW:-0} + ${wxUSE_X11:-0}`
10112
10113 case "${host}" in
10114 *-pc-os2_emx | *-pc-os2-emx )
10115 NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}`
10116 esac
10117
10118 case "$NUM_TOOLKITS" in
10119 1)
10120 ;;
10121 0)
10122 { { echo "$as_me:$LINENO: error: Please specify a toolkit -- cannot determine the default for ${host}" >&5
10123echo "$as_me: error: Please specify a toolkit -- cannot determine the default for ${host}" >&2;}
10124 { (exit 1); exit 1; }; }
10125 ;;
10126 *)
10127 { { echo "$as_me:$LINENO: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&5
10128echo "$as_me: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&2;}
10129 { (exit 1); exit 1; }; }
10130 esac
10131
10132 for toolkit in `echo $ALL_TOOLKITS`; do
10133 var=wxUSE_$toolkit
10134 eval "value=\$${var}"
10135 if test "x$value" != x; then
10136 cache_var=CACHE_$toolkit
10137 eval "cache=\$${cache_var}"
10138 if test "$cache" = 1; then
10139 echo "$var=$value" >> ${wx_arg_cache_file}
10140 fi
10141 if test "$value" = 1; then
10142 toolkit_echo=`echo $toolkit | tr "[A-Z]" "[a-z]"`
10143 echo "$as_me:$LINENO: result: $toolkit_echo" >&5
10144echo "${ECHO_T}$toolkit_echo" >&6
10145 fi
10146 fi
10147 done
10148else
10149 if test "x$host_alias" != "x"; then
10150 echo "$as_me:$LINENO: result: base ($host_alias hosted) only" >&5
10151echo "${ECHO_T}base ($host_alias hosted) only" >&6
10152 else
10153 echo "$as_me:$LINENO: result: base only" >&5
10154echo "${ECHO_T}base only" >&6
10155 fi
10156fi
10157
10158wants_win32=0
10159doesnt_want_win32=0
10160case "${host}" in
10161 *-*-cygwin*)
10162 if test "$wxUSE_MSW" = 1 ; then
10163 wants_win32=1
10164 else
10165 doesnt_want_win32=1
10166 fi
10167 ;;
10168 *-*-mingw*)
10169 wants_win32=1
10170 ;;
10171esac
10172
10173if test "$wxUSE_WINE" = "yes"; then
10174 wants_win32=1
10175 CC=winegcc
10176 CXX=wineg++
10177 RESCOMP=wrc
10178 LDFLAGS_GUI="-mwindows"
10179fi
10180
10181if test "$wants_win32" = 1 ; then
10182 USE_UNIX=0
10183 USE_WIN32=1
10184 cat >>confdefs.h <<\_ACEOF
10185#define __WIN32__ 1
10186_ACEOF
10187
10188 cat >>confdefs.h <<\_ACEOF
10189#define __WIN95__ 1
10190_ACEOF
10191
10192 cat >>confdefs.h <<\_ACEOF
10193#define __WINDOWS__ 1
10194_ACEOF
10195
10196 cat >>confdefs.h <<\_ACEOF
10197#define __GNUWIN32__ 1
10198_ACEOF
10199
10200 cat >>confdefs.h <<\_ACEOF
10201#define STRICT 1
10202_ACEOF
10203
10204 cat >>confdefs.h <<\_ACEOF
10205#define WINVER 0x0400
10206_ACEOF
10207
10208fi
10209if test "$doesnt_want_win32" = 1 ; then
10210 USE_UNIX=1
10211 USE_WIN32=0
10212fi
10213
10214if test "$USE_UNIX" = 1 ; then
10215 wxUSE_UNIX=yes
10216 cat >>confdefs.h <<\_ACEOF
10217#define __UNIX__ 1
10218_ACEOF
10219
10220fi
10221
10222
10223cat >confcache <<\_ACEOF
10224# This file is a shell script that caches the results of configure
10225# tests run on this system so they can be shared between configure
10226# scripts and configure runs, see configure's option --config-cache.
10227# It is not useful on other systems. If it contains results you don't
10228# want to keep, you may remove or edit it.
10229#
10230# config.status only pays attention to the cache file if you give it
10231# the --recheck option to rerun configure.
10232#
10233# `ac_cv_env_foo' variables (set or unset) will be overridden when
10234# loading this file, other *unset* `ac_cv_foo' will be assigned the
10235# following values.
10236
10237_ACEOF
10238
10239# The following way of writing the cache mishandles newlines in values,
10240# but we know of no workaround that is simple, portable, and efficient.
10241# So, don't put newlines in cache variables' values.
10242# Ultrix sh set writes to stderr and can't be redirected directly,
10243# and sets the high bit in the cache file unless we assign to the vars.
10244{
10245 (set) 2>&1 |
10246 case `(ac_space=' '; set | grep ac_space) 2>&1` in
10247 *ac_space=\ *)
10248 # `set' does not quote correctly, so add quotes (double-quote
10249 # substitution turns \\\\ into \\, and sed turns \\ into \).
10250 sed -n \
ac1cb8d3
VS
10251 "s/'/'\\\\''/g;
10252 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a848cd7e
SC
10253 ;;
10254 *)
10255 # `set' quotes correctly as required by POSIX, so do not add quotes.
10256 sed -n \
ac1cb8d3 10257 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
10258 ;;
10259 esac;
10260} |
10261 sed '
10262 t clear
10263 : clear
10264 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10265 t end
10266 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10267 : end' >>confcache
10268if diff $cache_file confcache >/dev/null 2>&1; then :; else
10269 if test -w $cache_file; then
10270 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
10271 cat confcache >$cache_file
10272 else
10273 echo "not updating unwritable cache $cache_file"
10274 fi
10275fi
10276rm -f confcache
10277
10278if test "$build" != "$host" ; then
10279 if test "$USE_WIN32" = 1 -o "$USE_DOS" = 1 -o "$USE_UNIX"; then
10280 CC=$host_alias-gcc
10281 CXX=$host_alias-c++
10282 AR=$host_alias-ar
10283 RANLIB=$host_alias-ranlib
10284 DLLTOOL=$host_alias-dlltool
10285 RESCOMP=$host_alias-windres
a848cd7e
SC
10286 STRIP=$host_alias-strip
10287 else
10288 { { echo "$as_me:$LINENO: error: $build_alias -> $host_alias cross compilation not supported yet." >&5
10289echo "$as_me: error: $build_alias -> $host_alias cross compilation not supported yet." >&2;}
10290 { (exit 1); exit 1; }; }
10291 fi
10292fi
10293
10294CFLAGS=${CFLAGS:=}
10295ac_ext=c
10296ac_cpp='$CPP $CPPFLAGS'
10297ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10298ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10299ac_compiler_gnu=$ac_cv_c_compiler_gnu
10300if test -n "$ac_tool_prefix"; then
10301 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
10302set dummy ${ac_tool_prefix}gcc; ac_word=$2
10303echo "$as_me:$LINENO: checking for $ac_word" >&5
10304echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10305if test "${ac_cv_prog_CC+set}" = set; then
10306 echo $ECHO_N "(cached) $ECHO_C" >&6
10307else
10308 if test -n "$CC"; then
10309 ac_cv_prog_CC="$CC" # Let the user override the test.
10310else
10311as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10312for as_dir in $PATH
10313do
10314 IFS=$as_save_IFS
10315 test -z "$as_dir" && as_dir=.
10316 for ac_exec_ext in '' $ac_executable_extensions; do
10317 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10318 ac_cv_prog_CC="${ac_tool_prefix}gcc"
10319 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10320 break 2
10321 fi
10322done
10323done
10324
10325fi
10326fi
10327CC=$ac_cv_prog_CC
10328if test -n "$CC"; then
10329 echo "$as_me:$LINENO: result: $CC" >&5
10330echo "${ECHO_T}$CC" >&6
10331else
10332 echo "$as_me:$LINENO: result: no" >&5
10333echo "${ECHO_T}no" >&6
10334fi
10335
10336fi
10337if test -z "$ac_cv_prog_CC"; then
10338 ac_ct_CC=$CC
10339 # Extract the first word of "gcc", so it can be a program name with args.
10340set dummy gcc; ac_word=$2
10341echo "$as_me:$LINENO: checking for $ac_word" >&5
10342echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10343if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
10344 echo $ECHO_N "(cached) $ECHO_C" >&6
10345else
10346 if test -n "$ac_ct_CC"; then
10347 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
10348else
10349as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10350for as_dir in $PATH
10351do
10352 IFS=$as_save_IFS
10353 test -z "$as_dir" && as_dir=.
10354 for ac_exec_ext in '' $ac_executable_extensions; do
10355 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10356 ac_cv_prog_ac_ct_CC="gcc"
10357 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10358 break 2
10359 fi
10360done
10361done
10362
10363fi
10364fi
10365ac_ct_CC=$ac_cv_prog_ac_ct_CC
10366if test -n "$ac_ct_CC"; then
10367 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
10368echo "${ECHO_T}$ac_ct_CC" >&6
10369else
10370 echo "$as_me:$LINENO: result: no" >&5
10371echo "${ECHO_T}no" >&6
10372fi
10373
10374 CC=$ac_ct_CC
10375else
10376 CC="$ac_cv_prog_CC"
10377fi
10378
10379if test -z "$CC"; then
10380 if test -n "$ac_tool_prefix"; then
10381 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
10382set dummy ${ac_tool_prefix}cc; ac_word=$2
10383echo "$as_me:$LINENO: checking for $ac_word" >&5
10384echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10385if test "${ac_cv_prog_CC+set}" = set; then
10386 echo $ECHO_N "(cached) $ECHO_C" >&6
10387else
10388 if test -n "$CC"; then
10389 ac_cv_prog_CC="$CC" # Let the user override the test.
10390else
10391as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10392for as_dir in $PATH
10393do
10394 IFS=$as_save_IFS
10395 test -z "$as_dir" && as_dir=.
10396 for ac_exec_ext in '' $ac_executable_extensions; do
10397 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10398 ac_cv_prog_CC="${ac_tool_prefix}cc"
10399 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10400 break 2
10401 fi
10402done
10403done
10404
10405fi
10406fi
10407CC=$ac_cv_prog_CC
10408if test -n "$CC"; then
10409 echo "$as_me:$LINENO: result: $CC" >&5
10410echo "${ECHO_T}$CC" >&6
10411else
10412 echo "$as_me:$LINENO: result: no" >&5
10413echo "${ECHO_T}no" >&6
10414fi
10415
10416fi
10417if test -z "$ac_cv_prog_CC"; then
10418 ac_ct_CC=$CC
10419 # Extract the first word of "cc", so it can be a program name with args.
10420set dummy cc; ac_word=$2
10421echo "$as_me:$LINENO: checking for $ac_word" >&5
10422echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10423if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
10424 echo $ECHO_N "(cached) $ECHO_C" >&6
10425else
10426 if test -n "$ac_ct_CC"; then
10427 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
10428else
10429as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10430for as_dir in $PATH
10431do
10432 IFS=$as_save_IFS
10433 test -z "$as_dir" && as_dir=.
10434 for ac_exec_ext in '' $ac_executable_extensions; do
10435 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10436 ac_cv_prog_ac_ct_CC="cc"
10437 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10438 break 2
10439 fi
10440done
10441done
10442
10443fi
10444fi
10445ac_ct_CC=$ac_cv_prog_ac_ct_CC
10446if test -n "$ac_ct_CC"; then
10447 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
10448echo "${ECHO_T}$ac_ct_CC" >&6
10449else
10450 echo "$as_me:$LINENO: result: no" >&5
10451echo "${ECHO_T}no" >&6
10452fi
10453
10454 CC=$ac_ct_CC
10455else
10456 CC="$ac_cv_prog_CC"
10457fi
10458
10459fi
10460if test -z "$CC"; then
10461 # Extract the first word of "cc", so it can be a program name with args.
10462set dummy cc; ac_word=$2
10463echo "$as_me:$LINENO: checking for $ac_word" >&5
10464echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10465if test "${ac_cv_prog_CC+set}" = set; then
10466 echo $ECHO_N "(cached) $ECHO_C" >&6
10467else
10468 if test -n "$CC"; then
10469 ac_cv_prog_CC="$CC" # Let the user override the test.
10470else
10471 ac_prog_rejected=no
10472as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10473for as_dir in $PATH
10474do
10475 IFS=$as_save_IFS
10476 test -z "$as_dir" && as_dir=.
10477 for ac_exec_ext in '' $ac_executable_extensions; do
10478 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10479 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
10480 ac_prog_rejected=yes
10481 continue
10482 fi
10483 ac_cv_prog_CC="cc"
10484 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10485 break 2
10486 fi
10487done
10488done
10489
10490if test $ac_prog_rejected = yes; then
10491 # We found a bogon in the path, so make sure we never use it.
10492 set dummy $ac_cv_prog_CC
10493 shift
10494 if test $# != 0; then
10495 # We chose a different compiler from the bogus one.
10496 # However, it has the same basename, so the bogon will be chosen
10497 # first if we set CC to just the basename; use the full file name.
10498 shift
10499 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
10500 fi
10501fi
10502fi
10503fi
10504CC=$ac_cv_prog_CC
10505if test -n "$CC"; then
10506 echo "$as_me:$LINENO: result: $CC" >&5
10507echo "${ECHO_T}$CC" >&6
10508else
10509 echo "$as_me:$LINENO: result: no" >&5
10510echo "${ECHO_T}no" >&6
10511fi
10512
10513fi
10514if test -z "$CC"; then
10515 if test -n "$ac_tool_prefix"; then
10516 for ac_prog in cl
10517 do
10518 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10519set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10520echo "$as_me:$LINENO: checking for $ac_word" >&5
10521echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10522if test "${ac_cv_prog_CC+set}" = set; then
10523 echo $ECHO_N "(cached) $ECHO_C" >&6
10524else
10525 if test -n "$CC"; then
10526 ac_cv_prog_CC="$CC" # Let the user override the test.
10527else
10528as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10529for as_dir in $PATH
10530do
10531 IFS=$as_save_IFS
10532 test -z "$as_dir" && as_dir=.
10533 for ac_exec_ext in '' $ac_executable_extensions; do
10534 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10535 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
10536 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10537 break 2
10538 fi
10539done
10540done
10541
10542fi
10543fi
10544CC=$ac_cv_prog_CC
10545if test -n "$CC"; then
10546 echo "$as_me:$LINENO: result: $CC" >&5
10547echo "${ECHO_T}$CC" >&6
10548else
10549 echo "$as_me:$LINENO: result: no" >&5
10550echo "${ECHO_T}no" >&6
10551fi
10552
10553 test -n "$CC" && break
10554 done
10555fi
10556if test -z "$CC"; then
10557 ac_ct_CC=$CC
10558 for ac_prog in cl
10559do
10560 # Extract the first word of "$ac_prog", so it can be a program name with args.
10561set dummy $ac_prog; ac_word=$2
10562echo "$as_me:$LINENO: checking for $ac_word" >&5
10563echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10564if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
10565 echo $ECHO_N "(cached) $ECHO_C" >&6
10566else
10567 if test -n "$ac_ct_CC"; then
10568 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
10569else
10570as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10571for as_dir in $PATH
10572do
10573 IFS=$as_save_IFS
10574 test -z "$as_dir" && as_dir=.
10575 for ac_exec_ext in '' $ac_executable_extensions; do
10576 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10577 ac_cv_prog_ac_ct_CC="$ac_prog"
10578 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10579 break 2
10580 fi
10581done
10582done
10583
10584fi
10585fi
10586ac_ct_CC=$ac_cv_prog_ac_ct_CC
10587if test -n "$ac_ct_CC"; then
10588 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
10589echo "${ECHO_T}$ac_ct_CC" >&6
10590else
10591 echo "$as_me:$LINENO: result: no" >&5
10592echo "${ECHO_T}no" >&6
10593fi
10594
10595 test -n "$ac_ct_CC" && break
10596done
10597
10598 CC=$ac_ct_CC
10599fi
10600
10601fi
10602
10603
10604test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
10605See \`config.log' for more details." >&5
10606echo "$as_me: error: no acceptable C compiler found in \$PATH
10607See \`config.log' for more details." >&2;}
10608 { (exit 1); exit 1; }; }
10609
10610# Provide some information about the compiler.
10611echo "$as_me:$LINENO:" \
10612 "checking for C compiler version" >&5
10613ac_compiler=`set X $ac_compile; echo $2`
10614{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
10615 (eval $ac_compiler --version </dev/null >&5) 2>&5
10616 ac_status=$?
10617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10618 (exit $ac_status); }
10619{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
10620 (eval $ac_compiler -v </dev/null >&5) 2>&5
10621 ac_status=$?
10622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10623 (exit $ac_status); }
10624{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
10625 (eval $ac_compiler -V </dev/null >&5) 2>&5
10626 ac_status=$?
10627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10628 (exit $ac_status); }
10629
10630cat >conftest.$ac_ext <<_ACEOF
10631/* confdefs.h. */
10632_ACEOF
10633cat confdefs.h >>conftest.$ac_ext
10634cat >>conftest.$ac_ext <<_ACEOF
10635/* end confdefs.h. */
10636
10637int
10638main ()
10639{
10640
10641 ;
10642 return 0;
10643}
10644_ACEOF
10645ac_clean_files_save=$ac_clean_files
10646ac_clean_files="$ac_clean_files a.out a.exe b.out"
10647# Try to create an executable without -o first, disregard a.out.
10648# It will help us diagnose broken compilers, and finding out an intuition
10649# of exeext.
ac1cb8d3
VS
10650echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
10651echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
a848cd7e
SC
10652ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
10653if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
10654 (eval $ac_link_default) 2>&5
10655 ac_status=$?
10656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10657 (exit $ac_status); }; then
10658 # Find the output, starting from the most likely. This scheme is
10659# not robust to junk in `.', hence go to wildcards (a.*) only as a last
10660# resort.
10661
10662# Be careful to initialize this variable, since it used to be cached.
10663# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
10664ac_cv_exeext=
10665# b.out is created by i960 compilers.
10666for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
10667do
10668 test -f "$ac_file" || continue
10669 case $ac_file in
10670 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
ac1cb8d3 10671 ;;
a848cd7e 10672 conftest.$ac_ext )
ac1cb8d3
VS
10673 # This is the source file.
10674 ;;
a848cd7e 10675 [ab].out )
ac1cb8d3
VS
10676 # We found the default executable, but exeext='' is most
10677 # certainly right.
10678 break;;
a848cd7e 10679 *.* )
ac1cb8d3
VS
10680 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
10681 # FIXME: I believe we export ac_cv_exeext for Libtool,
10682 # but it would be cool to find out if it's true. Does anybody
10683 # maintain Libtool? --akim.
10684 export ac_cv_exeext
10685 break;;
a848cd7e 10686 * )
ac1cb8d3 10687 break;;
a848cd7e
SC
10688 esac
10689done
10690else
10691 echo "$as_me: failed program was:" >&5
10692sed 's/^/| /' conftest.$ac_ext >&5
10693
10694{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
10695See \`config.log' for more details." >&5
10696echo "$as_me: error: C compiler cannot create executables
10697See \`config.log' for more details." >&2;}
10698 { (exit 77); exit 77; }; }
10699fi
10700
10701ac_exeext=$ac_cv_exeext
10702echo "$as_me:$LINENO: result: $ac_file" >&5
10703echo "${ECHO_T}$ac_file" >&6
10704
10705# Check the compiler produces executables we can run. If not, either
10706# the compiler is broken, or we cross compile.
10707echo "$as_me:$LINENO: checking whether the C compiler works" >&5
10708echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
10709# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
10710# If not cross compiling, check that we can run a simple program.
10711if test "$cross_compiling" != yes; then
10712 if { ac_try='./$ac_file'
10713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10714 (eval $ac_try) 2>&5
10715 ac_status=$?
10716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10717 (exit $ac_status); }; }; then
10718 cross_compiling=no
10719 else
10720 if test "$cross_compiling" = maybe; then
10721 cross_compiling=yes
10722 else
10723 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
10724If you meant to cross compile, use \`--host'.
10725See \`config.log' for more details." >&5
10726echo "$as_me: error: cannot run C compiled programs.
10727If you meant to cross compile, use \`--host'.
10728See \`config.log' for more details." >&2;}
10729 { (exit 1); exit 1; }; }
10730 fi
10731 fi
10732fi
10733echo "$as_me:$LINENO: result: yes" >&5
10734echo "${ECHO_T}yes" >&6
10735
10736rm -f a.out a.exe conftest$ac_cv_exeext b.out
10737ac_clean_files=$ac_clean_files_save
10738# Check the compiler produces executables we can run. If not, either
10739# the compiler is broken, or we cross compile.
10740echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
10741echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
10742echo "$as_me:$LINENO: result: $cross_compiling" >&5
10743echo "${ECHO_T}$cross_compiling" >&6
10744
10745echo "$as_me:$LINENO: checking for suffix of executables" >&5
10746echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
10747if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10748 (eval $ac_link) 2>&5
10749 ac_status=$?
10750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10751 (exit $ac_status); }; then
10752 # If both `conftest.exe' and `conftest' are `present' (well, observable)
10753# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
10754# work properly (i.e., refer to `conftest.exe'), while it won't with
10755# `rm'.
10756for ac_file in conftest.exe conftest conftest.*; do
10757 test -f "$ac_file" || continue
10758 case $ac_file in
10759 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
10760 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
ac1cb8d3
VS
10761 export ac_cv_exeext
10762 break;;
a848cd7e
SC
10763 * ) break;;
10764 esac
10765done
10766else
10767 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
10768See \`config.log' for more details." >&5
10769echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
10770See \`config.log' for more details." >&2;}
10771 { (exit 1); exit 1; }; }
10772fi
10773
10774rm -f conftest$ac_cv_exeext
10775echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
10776echo "${ECHO_T}$ac_cv_exeext" >&6
10777
10778rm -f conftest.$ac_ext
10779EXEEXT=$ac_cv_exeext
10780ac_exeext=$EXEEXT
10781echo "$as_me:$LINENO: checking for suffix of object files" >&5
10782echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
10783if test "${ac_cv_objext+set}" = set; then
10784 echo $ECHO_N "(cached) $ECHO_C" >&6
10785else
10786 cat >conftest.$ac_ext <<_ACEOF
10787/* confdefs.h. */
10788_ACEOF
10789cat confdefs.h >>conftest.$ac_ext
10790cat >>conftest.$ac_ext <<_ACEOF
10791/* end confdefs.h. */
10792
10793int
10794main ()
10795{
10796
10797 ;
10798 return 0;
10799}
10800_ACEOF
10801rm -f conftest.o conftest.obj
10802if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10803 (eval $ac_compile) 2>&5
10804 ac_status=$?
10805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10806 (exit $ac_status); }; then
10807 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
10808 case $ac_file in
10809 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
10810 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
10811 break;;
10812 esac
10813done
10814else
10815 echo "$as_me: failed program was:" >&5
10816sed 's/^/| /' conftest.$ac_ext >&5
10817
10818{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
10819See \`config.log' for more details." >&5
10820echo "$as_me: error: cannot compute suffix of object files: cannot compile
10821See \`config.log' for more details." >&2;}
10822 { (exit 1); exit 1; }; }
10823fi
10824
10825rm -f conftest.$ac_cv_objext conftest.$ac_ext
10826fi
10827echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
10828echo "${ECHO_T}$ac_cv_objext" >&6
10829OBJEXT=$ac_cv_objext
10830ac_objext=$OBJEXT
10831echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
10832echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
10833if test "${ac_cv_c_compiler_gnu+set}" = set; then
10834 echo $ECHO_N "(cached) $ECHO_C" >&6
10835else
10836 cat >conftest.$ac_ext <<_ACEOF
10837/* confdefs.h. */
10838_ACEOF
10839cat confdefs.h >>conftest.$ac_ext
10840cat >>conftest.$ac_ext <<_ACEOF
10841/* end confdefs.h. */
10842
10843int
10844main ()
10845{
10846#ifndef __GNUC__
10847 choke me
10848#endif
10849
10850 ;
10851 return 0;
10852}
10853_ACEOF
10854rm -f conftest.$ac_objext
10855if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 10856 (eval $ac_compile) 2>conftest.er1
a848cd7e 10857 ac_status=$?
ac1cb8d3
VS
10858 grep -v '^ *+' conftest.er1 >conftest.err
10859 rm -f conftest.er1
10860 cat conftest.err >&5
a848cd7e
SC
10861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10862 (exit $ac_status); } &&
ffa0583f 10863 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
10864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10865 (eval $ac_try) 2>&5
10866 ac_status=$?
10867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10868 (exit $ac_status); }; } &&
10869 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
10870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10871 (eval $ac_try) 2>&5
10872 ac_status=$?
10873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10874 (exit $ac_status); }; }; then
10875 ac_compiler_gnu=yes
10876else
10877 echo "$as_me: failed program was:" >&5
10878sed 's/^/| /' conftest.$ac_ext >&5
10879
10880ac_compiler_gnu=no
10881fi
ac1cb8d3 10882rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
10883ac_cv_c_compiler_gnu=$ac_compiler_gnu
10884
10885fi
10886echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
10887echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
10888GCC=`test $ac_compiler_gnu = yes && echo yes`
10889ac_test_CFLAGS=${CFLAGS+set}
10890ac_save_CFLAGS=$CFLAGS
10891CFLAGS="-g"
10892echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
10893echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
10894if test "${ac_cv_prog_cc_g+set}" = set; then
10895 echo $ECHO_N "(cached) $ECHO_C" >&6
10896else
10897 cat >conftest.$ac_ext <<_ACEOF
10898/* confdefs.h. */
10899_ACEOF
10900cat confdefs.h >>conftest.$ac_ext
10901cat >>conftest.$ac_ext <<_ACEOF
10902/* end confdefs.h. */
10903
10904int
10905main ()
10906{
10907
10908 ;
10909 return 0;
10910}
10911_ACEOF
10912rm -f conftest.$ac_objext
10913if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 10914 (eval $ac_compile) 2>conftest.er1
a848cd7e 10915 ac_status=$?
ac1cb8d3
VS
10916 grep -v '^ *+' conftest.er1 >conftest.err
10917 rm -f conftest.er1
10918 cat conftest.err >&5
a848cd7e
SC
10919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10920 (exit $ac_status); } &&
ffa0583f 10921 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
10922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10923 (eval $ac_try) 2>&5
10924 ac_status=$?
10925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10926 (exit $ac_status); }; } &&
10927 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
10928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10929 (eval $ac_try) 2>&5
10930 ac_status=$?
10931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10932 (exit $ac_status); }; }; then
10933 ac_cv_prog_cc_g=yes
10934else
10935 echo "$as_me: failed program was:" >&5
10936sed 's/^/| /' conftest.$ac_ext >&5
10937
10938ac_cv_prog_cc_g=no
10939fi
ac1cb8d3 10940rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
10941fi
10942echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
10943echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
10944if test "$ac_test_CFLAGS" = set; then
10945 CFLAGS=$ac_save_CFLAGS
10946elif test $ac_cv_prog_cc_g = yes; then
10947 if test "$GCC" = yes; then
10948 CFLAGS="-g -O2"
10949 else
10950 CFLAGS="-g"
10951 fi
10952else
10953 if test "$GCC" = yes; then
10954 CFLAGS="-O2"
10955 else
10956 CFLAGS=
10957 fi
10958fi
10959echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
10960echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
10961if test "${ac_cv_prog_cc_stdc+set}" = set; then
10962 echo $ECHO_N "(cached) $ECHO_C" >&6
10963else
10964 ac_cv_prog_cc_stdc=no
10965ac_save_CC=$CC
10966cat >conftest.$ac_ext <<_ACEOF
10967/* confdefs.h. */
10968_ACEOF
10969cat confdefs.h >>conftest.$ac_ext
10970cat >>conftest.$ac_ext <<_ACEOF
10971/* end confdefs.h. */
10972#include <stdarg.h>
10973#include <stdio.h>
10974#include <sys/types.h>
10975#include <sys/stat.h>
10976/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
10977struct buf { int x; };
10978FILE * (*rcsopen) (struct buf *, struct stat *, int);
10979static char *e (p, i)
10980 char **p;
10981 int i;
10982{
10983 return p[i];
10984}
10985static char *f (char * (*g) (char **, int), char **p, ...)
10986{
10987 char *s;
10988 va_list v;
10989 va_start (v,p);
10990 s = g (p, va_arg (v,int));
10991 va_end (v);
10992 return s;
10993}
ac1cb8d3
VS
10994
10995/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
10996 function prototypes and stuff, but not '\xHH' hex character constants.
10997 These don't provoke an error unfortunately, instead are silently treated
10998 as 'x'. The following induces an error, until -std1 is added to get
10999 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
11000 array size at least. It's necessary to write '\x00'==0 to get something
11001 that's true only with -std1. */
11002int osf4_cc_array ['\x00' == 0 ? 1 : -1];
11003
a848cd7e
SC
11004int test (int i, double x);
11005struct s1 {int (*f) (int a);};
11006struct s2 {int (*f) (double a);};
11007int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
11008int argc;
11009char **argv;
11010int
11011main ()
11012{
11013return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
11014 ;
11015 return 0;
11016}
11017_ACEOF
11018# Don't try gcc -ansi; that turns off useful extensions and
11019# breaks some systems' header files.
11020# AIX -qlanglvl=ansi
11021# Ultrix and OSF/1 -std1
11022# HP-UX 10.20 and later -Ae
11023# HP-UX older versions -Aa -D_HPUX_SOURCE
11024# SVR4 -Xc -D__EXTENSIONS__
11025for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
11026do
11027 CC="$ac_save_CC $ac_arg"
11028 rm -f conftest.$ac_objext
11029if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11030 (eval $ac_compile) 2>conftest.er1
a848cd7e 11031 ac_status=$?
ac1cb8d3
VS
11032 grep -v '^ *+' conftest.er1 >conftest.err
11033 rm -f conftest.er1
11034 cat conftest.err >&5
a848cd7e
SC
11035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11036 (exit $ac_status); } &&
ffa0583f 11037 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
11038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11039 (eval $ac_try) 2>&5
11040 ac_status=$?
11041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11042 (exit $ac_status); }; } &&
11043 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11045 (eval $ac_try) 2>&5
11046 ac_status=$?
11047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11048 (exit $ac_status); }; }; then
11049 ac_cv_prog_cc_stdc=$ac_arg
11050break
11051else
11052 echo "$as_me: failed program was:" >&5
11053sed 's/^/| /' conftest.$ac_ext >&5
11054
11055fi
ac1cb8d3 11056rm -f conftest.err conftest.$ac_objext
a848cd7e
SC
11057done
11058rm -f conftest.$ac_ext conftest.$ac_objext
11059CC=$ac_save_CC
11060
11061fi
11062
11063case "x$ac_cv_prog_cc_stdc" in
11064 x|xno)
11065 echo "$as_me:$LINENO: result: none needed" >&5
11066echo "${ECHO_T}none needed" >&6 ;;
11067 *)
11068 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
11069echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
11070 CC="$CC $ac_cv_prog_cc_stdc" ;;
11071esac
11072
11073# Some people use a C++ compiler to compile C. Since we use `exit',
11074# in C++ we need to declare it. In case someone uses the same compiler
11075# for both compiling C and C++ we need to have the C++ compiler decide
11076# the declaration of exit, since it's the most demanding environment.
11077cat >conftest.$ac_ext <<_ACEOF
11078#ifndef __cplusplus
11079 choke me
11080#endif
11081_ACEOF
11082rm -f conftest.$ac_objext
11083if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11084 (eval $ac_compile) 2>conftest.er1
a848cd7e 11085 ac_status=$?
ac1cb8d3
VS
11086 grep -v '^ *+' conftest.er1 >conftest.err
11087 rm -f conftest.er1
11088 cat conftest.err >&5
a848cd7e
SC
11089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11090 (exit $ac_status); } &&
ffa0583f 11091 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
11092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11093 (eval $ac_try) 2>&5
11094 ac_status=$?
11095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11096 (exit $ac_status); }; } &&
11097 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11099 (eval $ac_try) 2>&5
11100 ac_status=$?
11101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11102 (exit $ac_status); }; }; then
11103 for ac_declaration in \
ac1cb8d3 11104 '' \
a848cd7e
SC
11105 'extern "C" void std::exit (int) throw (); using std::exit;' \
11106 'extern "C" void std::exit (int); using std::exit;' \
11107 'extern "C" void exit (int) throw ();' \
11108 'extern "C" void exit (int);' \
11109 'void exit (int);'
11110do
11111 cat >conftest.$ac_ext <<_ACEOF
11112/* confdefs.h. */
11113_ACEOF
11114cat confdefs.h >>conftest.$ac_ext
11115cat >>conftest.$ac_ext <<_ACEOF
11116/* end confdefs.h. */
de59c161 11117$ac_declaration
ac1cb8d3 11118#include <stdlib.h>
a848cd7e
SC
11119int
11120main ()
11121{
11122exit (42);
11123 ;
11124 return 0;
11125}
11126_ACEOF
11127rm -f conftest.$ac_objext
11128if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11129 (eval $ac_compile) 2>conftest.er1
a848cd7e 11130 ac_status=$?
ac1cb8d3
VS
11131 grep -v '^ *+' conftest.er1 >conftest.err
11132 rm -f conftest.er1
11133 cat conftest.err >&5
a848cd7e
SC
11134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11135 (exit $ac_status); } &&
ffa0583f 11136 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
11137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11138 (eval $ac_try) 2>&5
11139 ac_status=$?
11140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11141 (exit $ac_status); }; } &&
11142 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11144 (eval $ac_try) 2>&5
11145 ac_status=$?
11146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11147 (exit $ac_status); }; }; then
11148 :
11149else
11150 echo "$as_me: failed program was:" >&5
11151sed 's/^/| /' conftest.$ac_ext >&5
11152
11153continue
11154fi
ac1cb8d3 11155rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11156 cat >conftest.$ac_ext <<_ACEOF
11157/* confdefs.h. */
11158_ACEOF
11159cat confdefs.h >>conftest.$ac_ext
11160cat >>conftest.$ac_ext <<_ACEOF
11161/* end confdefs.h. */
11162$ac_declaration
11163int
11164main ()
11165{
11166exit (42);
11167 ;
11168 return 0;
11169}
11170_ACEOF
11171rm -f conftest.$ac_objext
11172if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11173 (eval $ac_compile) 2>conftest.er1
a848cd7e 11174 ac_status=$?
ac1cb8d3
VS
11175 grep -v '^ *+' conftest.er1 >conftest.err
11176 rm -f conftest.er1
11177 cat conftest.err >&5
a848cd7e
SC
11178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11179 (exit $ac_status); } &&
ffa0583f 11180 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
11181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11182 (eval $ac_try) 2>&5
11183 ac_status=$?
11184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11185 (exit $ac_status); }; } &&
11186 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11188 (eval $ac_try) 2>&5
11189 ac_status=$?
11190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11191 (exit $ac_status); }; }; then
11192 break
11193else
11194 echo "$as_me: failed program was:" >&5
11195sed 's/^/| /' conftest.$ac_ext >&5
11196
11197fi
ac1cb8d3 11198rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11199done
11200rm -f conftest*
11201if test -n "$ac_declaration"; then
11202 echo '#ifdef __cplusplus' >>confdefs.h
11203 echo $ac_declaration >>confdefs.h
11204 echo '#endif' >>confdefs.h
11205fi
11206
11207else
11208 echo "$as_me: failed program was:" >&5
11209sed 's/^/| /' conftest.$ac_ext >&5
11210
11211fi
ac1cb8d3 11212rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11213ac_ext=c
11214ac_cpp='$CPP $CPPFLAGS'
11215ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11216ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11217ac_compiler_gnu=$ac_cv_c_compiler_gnu
11218
11219
11220
11221ac_ext=c
11222ac_cpp='$CPP $CPPFLAGS'
11223ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11224ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11225ac_compiler_gnu=$ac_cv_c_compiler_gnu
11226echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
11227echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
11228# On Suns, sometimes $CPP names a directory.
11229if test -n "$CPP" && test -d "$CPP"; then
11230 CPP=
11231fi
11232if test -z "$CPP"; then
11233 if test "${ac_cv_prog_CPP+set}" = set; then
11234 echo $ECHO_N "(cached) $ECHO_C" >&6
11235else
11236 # Double quotes because CPP needs to be expanded
11237 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
11238 do
11239 ac_preproc_ok=false
11240for ac_c_preproc_warn_flag in '' yes
11241do
11242 # Use a header file that comes with gcc, so configuring glibc
11243 # with a fresh cross-compiler works.
11244 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11245 # <limits.h> exists even on freestanding compilers.
11246 # On the NeXT, cc -E runs the code through the compiler's parser,
11247 # not just through cpp. "Syntax error" is here to catch this case.
11248 cat >conftest.$ac_ext <<_ACEOF
11249/* confdefs.h. */
11250_ACEOF
11251cat confdefs.h >>conftest.$ac_ext
11252cat >>conftest.$ac_ext <<_ACEOF
11253/* end confdefs.h. */
11254#ifdef __STDC__
11255# include <limits.h>
11256#else
11257# include <assert.h>
11258#endif
ac1cb8d3 11259 Syntax error
a848cd7e
SC
11260_ACEOF
11261if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11262 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11263 ac_status=$?
11264 grep -v '^ *+' conftest.er1 >conftest.err
11265 rm -f conftest.er1
11266 cat conftest.err >&5
11267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11268 (exit $ac_status); } >/dev/null; then
11269 if test -s conftest.err; then
11270 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 11271 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
11272 else
11273 ac_cpp_err=
11274 fi
11275else
11276 ac_cpp_err=yes
11277fi
11278if test -z "$ac_cpp_err"; then
11279 :
11280else
11281 echo "$as_me: failed program was:" >&5
11282sed 's/^/| /' conftest.$ac_ext >&5
11283
11284 # Broken: fails on valid input.
11285continue
11286fi
11287rm -f conftest.err conftest.$ac_ext
11288
11289 # OK, works on sane cases. Now check whether non-existent headers
11290 # can be detected and how.
11291 cat >conftest.$ac_ext <<_ACEOF
11292/* confdefs.h. */
11293_ACEOF
11294cat confdefs.h >>conftest.$ac_ext
11295cat >>conftest.$ac_ext <<_ACEOF
11296/* end confdefs.h. */
11297#include <ac_nonexistent.h>
11298_ACEOF
11299if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11300 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11301 ac_status=$?
11302 grep -v '^ *+' conftest.er1 >conftest.err
11303 rm -f conftest.er1
11304 cat conftest.err >&5
11305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11306 (exit $ac_status); } >/dev/null; then
11307 if test -s conftest.err; then
11308 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 11309 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
11310 else
11311 ac_cpp_err=
11312 fi
11313else
11314 ac_cpp_err=yes
11315fi
11316if test -z "$ac_cpp_err"; then
11317 # Broken: success on invalid input.
11318continue
11319else
11320 echo "$as_me: failed program was:" >&5
11321sed 's/^/| /' conftest.$ac_ext >&5
11322
11323 # Passes both tests.
11324ac_preproc_ok=:
11325break
11326fi
11327rm -f conftest.err conftest.$ac_ext
11328
11329done
11330# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11331rm -f conftest.err conftest.$ac_ext
11332if $ac_preproc_ok; then
11333 break
11334fi
11335
11336 done
11337 ac_cv_prog_CPP=$CPP
11338
11339fi
11340 CPP=$ac_cv_prog_CPP
11341else
11342 ac_cv_prog_CPP=$CPP
11343fi
11344echo "$as_me:$LINENO: result: $CPP" >&5
11345echo "${ECHO_T}$CPP" >&6
11346ac_preproc_ok=false
11347for ac_c_preproc_warn_flag in '' yes
11348do
11349 # Use a header file that comes with gcc, so configuring glibc
11350 # with a fresh cross-compiler works.
11351 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11352 # <limits.h> exists even on freestanding compilers.
11353 # On the NeXT, cc -E runs the code through the compiler's parser,
11354 # not just through cpp. "Syntax error" is here to catch this case.
11355 cat >conftest.$ac_ext <<_ACEOF
11356/* confdefs.h. */
11357_ACEOF
11358cat confdefs.h >>conftest.$ac_ext
11359cat >>conftest.$ac_ext <<_ACEOF
11360/* end confdefs.h. */
11361#ifdef __STDC__
11362# include <limits.h>
11363#else
11364# include <assert.h>
11365#endif
ac1cb8d3 11366 Syntax error
a848cd7e
SC
11367_ACEOF
11368if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11369 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11370 ac_status=$?
11371 grep -v '^ *+' conftest.er1 >conftest.err
11372 rm -f conftest.er1
11373 cat conftest.err >&5
11374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11375 (exit $ac_status); } >/dev/null; then
11376 if test -s conftest.err; then
11377 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 11378 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
11379 else
11380 ac_cpp_err=
11381 fi
11382else
11383 ac_cpp_err=yes
11384fi
11385if test -z "$ac_cpp_err"; then
11386 :
11387else
11388 echo "$as_me: failed program was:" >&5
11389sed 's/^/| /' conftest.$ac_ext >&5
11390
11391 # Broken: fails on valid input.
11392continue
11393fi
11394rm -f conftest.err conftest.$ac_ext
11395
11396 # OK, works on sane cases. Now check whether non-existent headers
11397 # can be detected and how.
11398 cat >conftest.$ac_ext <<_ACEOF
11399/* confdefs.h. */
11400_ACEOF
11401cat confdefs.h >>conftest.$ac_ext
11402cat >>conftest.$ac_ext <<_ACEOF
11403/* end confdefs.h. */
11404#include <ac_nonexistent.h>
11405_ACEOF
11406if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11407 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11408 ac_status=$?
11409 grep -v '^ *+' conftest.er1 >conftest.err
11410 rm -f conftest.er1
11411 cat conftest.err >&5
11412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11413 (exit $ac_status); } >/dev/null; then
11414 if test -s conftest.err; then
11415 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 11416 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
11417 else
11418 ac_cpp_err=
11419 fi
11420else
11421 ac_cpp_err=yes
11422fi
11423if test -z "$ac_cpp_err"; then
11424 # Broken: success on invalid input.
11425continue
11426else
11427 echo "$as_me: failed program was:" >&5
11428sed 's/^/| /' conftest.$ac_ext >&5
11429
11430 # Passes both tests.
11431ac_preproc_ok=:
11432break
11433fi
11434rm -f conftest.err conftest.$ac_ext
11435
11436done
11437# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11438rm -f conftest.err conftest.$ac_ext
11439if $ac_preproc_ok; then
11440 :
11441else
11442 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
11443See \`config.log' for more details." >&5
11444echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
11445See \`config.log' for more details." >&2;}
11446 { (exit 1); exit 1; }; }
11447fi
11448
11449ac_ext=c
11450ac_cpp='$CPP $CPPFLAGS'
11451ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11452ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11453ac_compiler_gnu=$ac_cv_c_compiler_gnu
11454
11455
11456echo "$as_me:$LINENO: checking for egrep" >&5
11457echo $ECHO_N "checking for egrep... $ECHO_C" >&6
11458if test "${ac_cv_prog_egrep+set}" = set; then
11459 echo $ECHO_N "(cached) $ECHO_C" >&6
11460else
11461 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
11462 then ac_cv_prog_egrep='grep -E'
11463 else ac_cv_prog_egrep='egrep'
11464 fi
11465fi
11466echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
11467echo "${ECHO_T}$ac_cv_prog_egrep" >&6
11468 EGREP=$ac_cv_prog_egrep
11469
11470
11471if test $ac_cv_c_compiler_gnu = yes; then
11472 echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
11473echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
11474if test "${ac_cv_prog_gcc_traditional+set}" = set; then
11475 echo $ECHO_N "(cached) $ECHO_C" >&6
11476else
11477 ac_pattern="Autoconf.*'x'"
11478 cat >conftest.$ac_ext <<_ACEOF
11479/* confdefs.h. */
11480_ACEOF
11481cat confdefs.h >>conftest.$ac_ext
11482cat >>conftest.$ac_ext <<_ACEOF
11483/* end confdefs.h. */
11484#include <sgtty.h>
11485Autoconf TIOCGETP
11486_ACEOF
11487if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11488 $EGREP "$ac_pattern" >/dev/null 2>&1; then
11489 ac_cv_prog_gcc_traditional=yes
11490else
11491 ac_cv_prog_gcc_traditional=no
11492fi
11493rm -f conftest*
11494
11495
11496 if test $ac_cv_prog_gcc_traditional = no; then
11497 cat >conftest.$ac_ext <<_ACEOF
11498/* confdefs.h. */
11499_ACEOF
11500cat confdefs.h >>conftest.$ac_ext
11501cat >>conftest.$ac_ext <<_ACEOF
11502/* end confdefs.h. */
11503#include <termio.h>
11504Autoconf TCGETA
11505_ACEOF
11506if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11507 $EGREP "$ac_pattern" >/dev/null 2>&1; then
11508 ac_cv_prog_gcc_traditional=yes
11509fi
11510rm -f conftest*
11511
11512 fi
11513fi
11514echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
11515echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
11516 if test $ac_cv_prog_gcc_traditional = yes; then
11517 CC="$CC -traditional"
11518 fi
11519fi
11520
11521
11522
11523
11524ac_ext=cc
11525ac_cpp='$CXXCPP $CPPFLAGS'
11526ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11527ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11528ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11529
11530
11531CXXFLAGS=${CXXFLAGS:=}
11532ac_ext=cc
11533ac_cpp='$CXXCPP $CPPFLAGS'
11534ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11535ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11536ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11537if test -n "$ac_tool_prefix"; then
11538 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
11539 do
11540 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11541set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11542echo "$as_me:$LINENO: checking for $ac_word" >&5
11543echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11544if test "${ac_cv_prog_CXX+set}" = set; then
11545 echo $ECHO_N "(cached) $ECHO_C" >&6
11546else
11547 if test -n "$CXX"; then
11548 ac_cv_prog_CXX="$CXX" # Let the user override the test.
11549else
11550as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11551for as_dir in $PATH
11552do
11553 IFS=$as_save_IFS
11554 test -z "$as_dir" && as_dir=.
11555 for ac_exec_ext in '' $ac_executable_extensions; do
11556 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11557 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
11558 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11559 break 2
11560 fi
11561done
11562done
11563
11564fi
11565fi
11566CXX=$ac_cv_prog_CXX
11567if test -n "$CXX"; then
11568 echo "$as_me:$LINENO: result: $CXX" >&5
11569echo "${ECHO_T}$CXX" >&6
11570else
11571 echo "$as_me:$LINENO: result: no" >&5
11572echo "${ECHO_T}no" >&6
11573fi
11574
11575 test -n "$CXX" && break
11576 done
11577fi
11578if test -z "$CXX"; then
11579 ac_ct_CXX=$CXX
11580 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
11581do
11582 # Extract the first word of "$ac_prog", so it can be a program name with args.
11583set dummy $ac_prog; ac_word=$2
11584echo "$as_me:$LINENO: checking for $ac_word" >&5
11585echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11586if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
11587 echo $ECHO_N "(cached) $ECHO_C" >&6
11588else
11589 if test -n "$ac_ct_CXX"; then
11590 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
11591else
11592as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11593for as_dir in $PATH
11594do
11595 IFS=$as_save_IFS
11596 test -z "$as_dir" && as_dir=.
11597 for ac_exec_ext in '' $ac_executable_extensions; do
11598 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11599 ac_cv_prog_ac_ct_CXX="$ac_prog"
11600 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11601 break 2
11602 fi
11603done
11604done
11605
11606fi
11607fi
11608ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
11609if test -n "$ac_ct_CXX"; then
11610 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
11611echo "${ECHO_T}$ac_ct_CXX" >&6
11612else
11613 echo "$as_me:$LINENO: result: no" >&5
11614echo "${ECHO_T}no" >&6
11615fi
11616
11617 test -n "$ac_ct_CXX" && break
11618done
11619test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
11620
11621 CXX=$ac_ct_CXX
11622fi
11623
11624
11625# Provide some information about the compiler.
11626echo "$as_me:$LINENO:" \
11627 "checking for C++ compiler version" >&5
11628ac_compiler=`set X $ac_compile; echo $2`
11629{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
11630 (eval $ac_compiler --version </dev/null >&5) 2>&5
11631 ac_status=$?
11632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11633 (exit $ac_status); }
11634{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
11635 (eval $ac_compiler -v </dev/null >&5) 2>&5
11636 ac_status=$?
11637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11638 (exit $ac_status); }
11639{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
11640 (eval $ac_compiler -V </dev/null >&5) 2>&5
11641 ac_status=$?
11642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11643 (exit $ac_status); }
11644
11645echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
11646echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
11647if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
11648 echo $ECHO_N "(cached) $ECHO_C" >&6
11649else
11650 cat >conftest.$ac_ext <<_ACEOF
11651/* confdefs.h. */
11652_ACEOF
11653cat confdefs.h >>conftest.$ac_ext
11654cat >>conftest.$ac_ext <<_ACEOF
11655/* end confdefs.h. */
11656
11657int
11658main ()
11659{
11660#ifndef __GNUC__
11661 choke me
11662#endif
11663
11664 ;
11665 return 0;
11666}
11667_ACEOF
11668rm -f conftest.$ac_objext
11669if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11670 (eval $ac_compile) 2>conftest.er1
a848cd7e 11671 ac_status=$?
ac1cb8d3
VS
11672 grep -v '^ *+' conftest.er1 >conftest.err
11673 rm -f conftest.er1
11674 cat conftest.err >&5
a848cd7e
SC
11675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11676 (exit $ac_status); } &&
ffa0583f 11677 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
11678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11679 (eval $ac_try) 2>&5
11680 ac_status=$?
11681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11682 (exit $ac_status); }; } &&
11683 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11685 (eval $ac_try) 2>&5
11686 ac_status=$?
11687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11688 (exit $ac_status); }; }; then
11689 ac_compiler_gnu=yes
11690else
11691 echo "$as_me: failed program was:" >&5
11692sed 's/^/| /' conftest.$ac_ext >&5
11693
11694ac_compiler_gnu=no
11695fi
ac1cb8d3 11696rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11697ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
11698
11699fi
11700echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
11701echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
11702GXX=`test $ac_compiler_gnu = yes && echo yes`
11703ac_test_CXXFLAGS=${CXXFLAGS+set}
11704ac_save_CXXFLAGS=$CXXFLAGS
11705CXXFLAGS="-g"
11706echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
11707echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
11708if test "${ac_cv_prog_cxx_g+set}" = set; then
11709 echo $ECHO_N "(cached) $ECHO_C" >&6
11710else
11711 cat >conftest.$ac_ext <<_ACEOF
11712/* confdefs.h. */
11713_ACEOF
11714cat confdefs.h >>conftest.$ac_ext
11715cat >>conftest.$ac_ext <<_ACEOF
11716/* end confdefs.h. */
11717
11718int
11719main ()
11720{
11721
11722 ;
11723 return 0;
11724}
11725_ACEOF
11726rm -f conftest.$ac_objext
11727if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11728 (eval $ac_compile) 2>conftest.er1
a848cd7e 11729 ac_status=$?
ac1cb8d3
VS
11730 grep -v '^ *+' conftest.er1 >conftest.err
11731 rm -f conftest.er1
11732 cat conftest.err >&5
a848cd7e
SC
11733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11734 (exit $ac_status); } &&
ffa0583f 11735 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
11736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11737 (eval $ac_try) 2>&5
11738 ac_status=$?
11739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11740 (exit $ac_status); }; } &&
11741 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11743 (eval $ac_try) 2>&5
11744 ac_status=$?
11745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11746 (exit $ac_status); }; }; then
11747 ac_cv_prog_cxx_g=yes
11748else
11749 echo "$as_me: failed program was:" >&5
11750sed 's/^/| /' conftest.$ac_ext >&5
11751
11752ac_cv_prog_cxx_g=no
11753fi
ac1cb8d3 11754rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11755fi
11756echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
11757echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
11758if test "$ac_test_CXXFLAGS" = set; then
11759 CXXFLAGS=$ac_save_CXXFLAGS
11760elif test $ac_cv_prog_cxx_g = yes; then
11761 if test "$GXX" = yes; then
11762 CXXFLAGS="-g -O2"
11763 else
11764 CXXFLAGS="-g"
11765 fi
11766else
11767 if test "$GXX" = yes; then
11768 CXXFLAGS="-O2"
11769 else
11770 CXXFLAGS=
11771 fi
11772fi
11773for ac_declaration in \
ac1cb8d3 11774 '' \
a848cd7e
SC
11775 'extern "C" void std::exit (int) throw (); using std::exit;' \
11776 'extern "C" void std::exit (int); using std::exit;' \
11777 'extern "C" void exit (int) throw ();' \
11778 'extern "C" void exit (int);' \
11779 'void exit (int);'
11780do
11781 cat >conftest.$ac_ext <<_ACEOF
11782/* confdefs.h. */
11783_ACEOF
11784cat confdefs.h >>conftest.$ac_ext
11785cat >>conftest.$ac_ext <<_ACEOF
11786/* end confdefs.h. */
de59c161 11787$ac_declaration
ac1cb8d3 11788#include <stdlib.h>
a848cd7e
SC
11789int
11790main ()
11791{
11792exit (42);
11793 ;
11794 return 0;
11795}
11796_ACEOF
11797rm -f conftest.$ac_objext
11798if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11799 (eval $ac_compile) 2>conftest.er1
a848cd7e 11800 ac_status=$?
ac1cb8d3
VS
11801 grep -v '^ *+' conftest.er1 >conftest.err
11802 rm -f conftest.er1
11803 cat conftest.err >&5
a848cd7e
SC
11804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11805 (exit $ac_status); } &&
ffa0583f 11806 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
11807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11808 (eval $ac_try) 2>&5
11809 ac_status=$?
11810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11811 (exit $ac_status); }; } &&
11812 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11814 (eval $ac_try) 2>&5
11815 ac_status=$?
11816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11817 (exit $ac_status); }; }; then
11818 :
11819else
11820 echo "$as_me: failed program was:" >&5
11821sed 's/^/| /' conftest.$ac_ext >&5
11822
11823continue
11824fi
ac1cb8d3 11825rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11826 cat >conftest.$ac_ext <<_ACEOF
11827/* confdefs.h. */
11828_ACEOF
11829cat confdefs.h >>conftest.$ac_ext
11830cat >>conftest.$ac_ext <<_ACEOF
11831/* end confdefs.h. */
11832$ac_declaration
11833int
11834main ()
11835{
11836exit (42);
11837 ;
11838 return 0;
11839}
11840_ACEOF
11841rm -f conftest.$ac_objext
11842if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11843 (eval $ac_compile) 2>conftest.er1
a848cd7e 11844 ac_status=$?
ac1cb8d3
VS
11845 grep -v '^ *+' conftest.er1 >conftest.err
11846 rm -f conftest.er1
11847 cat conftest.err >&5
a848cd7e
SC
11848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11849 (exit $ac_status); } &&
ffa0583f 11850 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
11851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11852 (eval $ac_try) 2>&5
11853 ac_status=$?
11854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11855 (exit $ac_status); }; } &&
11856 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11858 (eval $ac_try) 2>&5
11859 ac_status=$?
11860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11861 (exit $ac_status); }; }; then
11862 break
11863else
11864 echo "$as_me: failed program was:" >&5
11865sed 's/^/| /' conftest.$ac_ext >&5
11866
11867fi
ac1cb8d3 11868rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11869done
11870rm -f conftest*
11871if test -n "$ac_declaration"; then
11872 echo '#ifdef __cplusplus' >>confdefs.h
11873 echo $ac_declaration >>confdefs.h
11874 echo '#endif' >>confdefs.h
11875fi
11876
11877ac_ext=cc
11878ac_cpp='$CXXCPP $CPPFLAGS'
11879ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11880ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11881ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11882
11883
11884ac_ext=c
11885ac_cpp='$CPP $CPPFLAGS'
11886ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11887ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11888ac_compiler_gnu=$ac_cv_c_compiler_gnu
11889
11890
a848cd7e
SC
11891if test -n "$ac_tool_prefix"; then
11892 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
11893set dummy ${ac_tool_prefix}ranlib; ac_word=$2
11894echo "$as_me:$LINENO: checking for $ac_word" >&5
11895echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11896if test "${ac_cv_prog_RANLIB+set}" = set; then
11897 echo $ECHO_N "(cached) $ECHO_C" >&6
11898else
11899 if test -n "$RANLIB"; then
11900 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11901else
11902as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11903for as_dir in $PATH
11904do
11905 IFS=$as_save_IFS
11906 test -z "$as_dir" && as_dir=.
11907 for ac_exec_ext in '' $ac_executable_extensions; do
11908 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11909 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
11910 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11911 break 2
11912 fi
11913done
11914done
11915
11916fi
11917fi
11918RANLIB=$ac_cv_prog_RANLIB
11919if test -n "$RANLIB"; then
11920 echo "$as_me:$LINENO: result: $RANLIB" >&5
11921echo "${ECHO_T}$RANLIB" >&6
11922else
11923 echo "$as_me:$LINENO: result: no" >&5
11924echo "${ECHO_T}no" >&6
11925fi
11926
11927fi
11928if test -z "$ac_cv_prog_RANLIB"; then
11929 ac_ct_RANLIB=$RANLIB
11930 # Extract the first word of "ranlib", so it can be a program name with args.
11931set dummy ranlib; ac_word=$2
11932echo "$as_me:$LINENO: checking for $ac_word" >&5
11933echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11934if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
11935 echo $ECHO_N "(cached) $ECHO_C" >&6
11936else
11937 if test -n "$ac_ct_RANLIB"; then
11938 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
11939else
11940as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11941for as_dir in $PATH
11942do
11943 IFS=$as_save_IFS
11944 test -z "$as_dir" && as_dir=.
11945 for ac_exec_ext in '' $ac_executable_extensions; do
11946 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11947 ac_cv_prog_ac_ct_RANLIB="ranlib"
11948 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11949 break 2
11950 fi
11951done
11952done
11953
11954 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
11955fi
11956fi
11957ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
11958if test -n "$ac_ct_RANLIB"; then
11959 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
11960echo "${ECHO_T}$ac_ct_RANLIB" >&6
11961else
11962 echo "$as_me:$LINENO: result: no" >&5
11963echo "${ECHO_T}no" >&6
11964fi
11965
11966 RANLIB=$ac_ct_RANLIB
11967else
11968 RANLIB="$ac_cv_prog_RANLIB"
11969fi
11970
11971
11972# Extract the first word of "ar", so it can be a program name with args.
11973set dummy ar; ac_word=$2
11974echo "$as_me:$LINENO: checking for $ac_word" >&5
11975echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11976if test "${ac_cv_prog_AR+set}" = set; then
11977 echo $ECHO_N "(cached) $ECHO_C" >&6
11978else
11979 if test -n "$AR"; then
11980 ac_cv_prog_AR="$AR" # Let the user override the test.
11981else
11982as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11983for as_dir in $PATH
11984do
11985 IFS=$as_save_IFS
11986 test -z "$as_dir" && as_dir=.
11987 for ac_exec_ext in '' $ac_executable_extensions; do
11988 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11989 ac_cv_prog_AR="ar"
11990 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11991 break 2
11992 fi
11993done
11994done
11995
11996fi
11997fi
11998AR=$ac_cv_prog_AR
11999if test -n "$AR"; then
12000 echo "$as_me:$LINENO: result: $AR" >&5
12001echo "${ECHO_T}$AR" >&6
12002else
12003 echo "$as_me:$LINENO: result: no" >&5
12004echo "${ECHO_T}no" >&6
12005fi
12006
12007if test "x$AR" = "x" ; then
77ffb593
JS
12008 { { echo "$as_me:$LINENO: error: ar is needed to build wxWidgets" >&5
12009echo "$as_me: error: ar is needed to build wxWidgets" >&2;}
a848cd7e
SC
12010 { (exit 1); exit 1; }; }
12011fi
12012
12013# Find a good install program. We prefer a C program (faster),
12014# so one script is as good as another. But avoid the broken or
12015# incompatible versions:
12016# SysV /etc/install, /usr/sbin/install
12017# SunOS /usr/etc/install
12018# IRIX /sbin/install
12019# AIX /bin/install
12020# AmigaOS /C/install, which installs bootblocks on floppy discs
12021# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
12022# AFS /usr/afsws/bin/install, which mishandles nonexistent args
12023# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
ac1cb8d3 12024# OS/2's system install, which has a completely different semantic
a848cd7e
SC
12025# ./install, which can be erroneously created by make from ./install.sh.
12026echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
12027echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
12028if test -z "$INSTALL"; then
12029if test "${ac_cv_path_install+set}" = set; then
12030 echo $ECHO_N "(cached) $ECHO_C" >&6
12031else
12032 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12033for as_dir in $PATH
12034do
12035 IFS=$as_save_IFS
12036 test -z "$as_dir" && as_dir=.
12037 # Account for people who put trailing slashes in PATH elements.
12038case $as_dir/ in
12039 ./ | .// | /cC/* | \
12040 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
ac1cb8d3 12041 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
a848cd7e
SC
12042 /usr/ucb/* ) ;;
12043 *)
12044 # OSF1 and SCO ODT 3.0 have their own names for install.
12045 # Don't use installbsd from OSF since it installs stuff as root
12046 # by default.
12047 for ac_prog in ginstall scoinst install; do
12048 for ac_exec_ext in '' $ac_executable_extensions; do
ac1cb8d3
VS
12049 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
12050 if test $ac_prog = install &&
12051 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
12052 # AIX install. It has an incompatible calling convention.
12053 :
12054 elif test $ac_prog = install &&
12055 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
12056 # program-specific install script used by HP pwplus--don't use.
12057 :
12058 else
12059 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
12060 break 3
12061 fi
12062 fi
a848cd7e
SC
12063 done
12064 done
12065 ;;
12066esac
12067done
12068
12069
12070fi
12071 if test "${ac_cv_path_install+set}" = set; then
12072 INSTALL=$ac_cv_path_install
12073 else
12074 # As a last resort, use the slow shell script. We don't cache a
12075 # path for INSTALL within a source directory, because that will
12076 # break other packages using the cache if that directory is
12077 # removed, or if the path is relative.
12078 INSTALL=$ac_install_sh
12079 fi
12080fi
12081echo "$as_me:$LINENO: result: $INSTALL" >&5
12082echo "${ECHO_T}$INSTALL" >&6
12083
12084# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
12085# It thinks the first close brace ends the variable substitution.
12086test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
12087
12088test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
12089
12090test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
12091
12092
12093case ${INSTALL} in
12094 /* ) # Absolute
12095 ;;
12096 ?:* ) # Drive letter, considered as absolute.
12097 ;;
12098 *)
12099 INSTALL=`pwd`/${INSTALL} ;;
12100esac
12101
a848cd7e
SC
12102
12103case "${host}" in
12104
12105 powerpc-*-darwin* )
12106 INSTALL_PROGRAM="cp -fp"
12107 INSTALL_DATA="cp -fp"
12108 ;;
12109 *)
12110 ;;
12111esac
12112
12113# Extract the first word of "strip", so it can be a program name with args.
12114set dummy strip; ac_word=$2
12115echo "$as_me:$LINENO: checking for $ac_word" >&5
12116echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12117if test "${ac_cv_prog_STRIP+set}" = set; then
12118 echo $ECHO_N "(cached) $ECHO_C" >&6
12119else
12120 if test -n "$STRIP"; then
12121 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
12122else
12123as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12124for as_dir in $PATH
12125do
12126 IFS=$as_save_IFS
12127 test -z "$as_dir" && as_dir=.
12128 for ac_exec_ext in '' $ac_executable_extensions; do
12129 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12130 ac_cv_prog_STRIP="strip"
12131 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12132 break 2
12133 fi
12134done
12135done
12136
12137 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="true"
12138fi
12139fi
12140STRIP=$ac_cv_prog_STRIP
12141if test -n "$STRIP"; then
12142 echo "$as_me:$LINENO: result: $STRIP" >&5
12143echo "${ECHO_T}$STRIP" >&6
12144else
12145 echo "$as_me:$LINENO: result: no" >&5
12146echo "${ECHO_T}no" >&6
12147fi
12148
12149
12150echo "$as_me:$LINENO: checking if make is GNU make" >&5
12151echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6
12152if test "${wx_cv_prog_makeisgnu+set}" = set; then
12153 echo $ECHO_N "(cached) $ECHO_C" >&6
12154else
12155
12156 if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
12157 egrep -s GNU > /dev/null); then
12158 wx_cv_prog_makeisgnu="yes"
12159 else
12160 wx_cv_prog_makeisgnu="no"
12161 fi
12162
12163fi
12164echo "$as_me:$LINENO: result: $wx_cv_prog_makeisgnu" >&5
12165echo "${ECHO_T}$wx_cv_prog_makeisgnu" >&6
12166
12167if test "x$wx_cv_prog_makeisgnu" = "xyes"; then
12168 IF_GNU_MAKE=""
12169else
12170 IF_GNU_MAKE="#"
12171fi
12172
12173
12174
12175if test "x$wx_cv_prog_makeisgnu" != "xyes"; then
12176echo "$as_me:$LINENO: checking if make supports VPATH" >&5
12177echo $ECHO_N "checking if make supports VPATH... $ECHO_C" >&6
12178if test "${wx_cv_prog_makevpath+set}" = set; then
12179 echo $ECHO_N "(cached) $ECHO_C" >&6
12180else
12181
12182cat - << EOF > confMake
12183check : file
12184 cp \$? \$@
12185 cp \$? final_file
12186EOF
12187
12188if test ! -d sub ; then
12189 mkdir sub
12190fi
12191echo dummy > sub/file
12192${MAKE-make} -f confMake VPATH=sub 2>&5 > /dev/null
12193RESULT=$?
12194rm -f sub/file check final_file confMake
12195rmdir sub
12196if test "$RESULT" = 0; then
12197 wx_cv_prog_makevpath="yes"
12198else
12199 wx_cv_prog_makevpath="no"
12200fi
12201
12202fi
12203echo "$as_me:$LINENO: result: $wx_cv_prog_makevpath" >&5
12204echo "${ECHO_T}$wx_cv_prog_makevpath" >&6
12205
12206if test "x$wx_cv_prog_makevpath" != "xyes"; then
12207{ { echo "$as_me:$LINENO: error:
12208You need a make-utility that is able to use the variable
12209VPATH correctly.
12210If your version of make does not support VPATH correctly,
12211please install GNU-make (possibly as gmake), and start
12212configure with the following command:
12213export MAKE=gmake; ./configure for sh-type shells
12214setenv MAKE gmake; ./configure for csh-type shells
12215Also please do remember to use gmake in this case every time
12216you are trying to compile.
12217" >&5
12218echo "$as_me: error:
12219You need a make-utility that is able to use the variable
12220VPATH correctly.
12221If your version of make does not support VPATH correctly,
12222please install GNU-make (possibly as gmake), and start
12223configure with the following command:
12224export MAKE=gmake; ./configure for sh-type shells
12225setenv MAKE gmake; ./configure for csh-type shells
12226Also please do remember to use gmake in this case every time
12227you are trying to compile.
12228" >&2;}
12229 { (exit 1); exit 1; }; }
12230fi fi
12231echo "$as_me:$LINENO: checking whether ln -s works" >&5
12232echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
12233LN_S=$as_ln_s
12234if test "$LN_S" = "ln -s"; then
12235 echo "$as_me:$LINENO: result: yes" >&5
12236echo "${ECHO_T}yes" >&6
12237else
12238 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
12239echo "${ECHO_T}no, using $LN_S" >&6
12240fi
12241
12242
12243
12244case "${host}" in
12245 *-pc-os2_emx | *-pc-os2-emx )
12246 if test "$wxUSE_MOTIF" = 1 -o "$wxUSE_GTK" = 1 -o "$wxUSE_X11" = 1; then
12247 echo "$as_me:$LINENO: checking for drand48 in -lcExt" >&5
12248echo $ECHO_N "checking for drand48 in -lcExt... $ECHO_C" >&6
12249if test "${ac_cv_lib_cExt_drand48+set}" = set; then
12250 echo $ECHO_N "(cached) $ECHO_C" >&6
12251else
12252 ac_check_lib_save_LIBS=$LIBS
12253LIBS="-lcExt $LIBS"
12254cat >conftest.$ac_ext <<_ACEOF
12255/* confdefs.h. */
12256_ACEOF
12257cat confdefs.h >>conftest.$ac_ext
12258cat >>conftest.$ac_ext <<_ACEOF
12259/* end confdefs.h. */
12260
12261/* Override any gcc2 internal prototype to avoid an error. */
12262#ifdef __cplusplus
12263extern "C"
12264#endif
12265/* We use char because int might match the return type of a gcc2
12266 builtin and then its argument prototype would still apply. */
12267char drand48 ();
12268int
12269main ()
12270{
12271drand48 ();
12272 ;
12273 return 0;
12274}
12275_ACEOF
12276rm -f conftest.$ac_objext conftest$ac_exeext
12277if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 12278 (eval $ac_link) 2>conftest.er1
a848cd7e 12279 ac_status=$?
ac1cb8d3
VS
12280 grep -v '^ *+' conftest.er1 >conftest.err
12281 rm -f conftest.er1
12282 cat conftest.err >&5
a848cd7e
SC
12283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12284 (exit $ac_status); } &&
ffa0583f 12285 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
12286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12287 (eval $ac_try) 2>&5
12288 ac_status=$?
12289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12290 (exit $ac_status); }; } &&
12291 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
12292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12293 (eval $ac_try) 2>&5
12294 ac_status=$?
12295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12296 (exit $ac_status); }; }; then
12297 ac_cv_lib_cExt_drand48=yes
12298else
12299 echo "$as_me: failed program was:" >&5
12300sed 's/^/| /' conftest.$ac_ext >&5
12301
12302ac_cv_lib_cExt_drand48=no
12303fi
ac1cb8d3
VS
12304rm -f conftest.err conftest.$ac_objext \
12305 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
12306LIBS=$ac_check_lib_save_LIBS
12307fi
12308echo "$as_me:$LINENO: result: $ac_cv_lib_cExt_drand48" >&5
12309echo "${ECHO_T}$ac_cv_lib_cExt_drand48" >&6
12310if test $ac_cv_lib_cExt_drand48 = yes; then
12311 LIBS="$LIBS -lcExt"
12312fi
12313
12314 else
12315 RESPROGRAMOBJ="\${top_srcdir}/include/wx/os2/wx.res"
12316 fi
12317 echo "$as_me:$LINENO: checking for gcc version" >&5
12318echo $ECHO_N "checking for gcc version... $ECHO_C" >&6
12319if test "${wx_cv_gccversion+set}" = set; then
12320 echo $ECHO_N "(cached) $ECHO_C" >&6
12321else
12322
12323 cat >conftest.$ac_ext <<_ACEOF
12324/* confdefs.h. */
12325_ACEOF
12326cat confdefs.h >>conftest.$ac_ext
12327cat >>conftest.$ac_ext <<_ACEOF
12328/* end confdefs.h. */
12329
12330int
12331main ()
12332{
12333
12334 #if (__GNUC__ < 3)
12335 #error old gcc
12336 #endif
12337
12338 ;
12339 return 0;
12340}
12341_ACEOF
12342rm -f conftest.$ac_objext
12343if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12344 (eval $ac_compile) 2>conftest.er1
a848cd7e 12345 ac_status=$?
ac1cb8d3
VS
12346 grep -v '^ *+' conftest.er1 >conftest.err
12347 rm -f conftest.er1
12348 cat conftest.err >&5
a848cd7e
SC
12349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12350 (exit $ac_status); } &&
ffa0583f 12351 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
12352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12353 (eval $ac_try) 2>&5
12354 ac_status=$?
12355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12356 (exit $ac_status); }; } &&
12357 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12359 (eval $ac_try) 2>&5
12360 ac_status=$?
12361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12362 (exit $ac_status); }; }; then
12363
12364 cat >conftest.$ac_ext <<_ACEOF
12365/* confdefs.h. */
12366_ACEOF
12367cat confdefs.h >>conftest.$ac_ext
12368cat >>conftest.$ac_ext <<_ACEOF
12369/* end confdefs.h. */
12370
12371int
12372main ()
12373{
12374
12375 #if (__GNUC__==3) && ((__GNUC_MINOR__ < 2) || ((__GNUC_MINOR__==2) && (__GNUC_PATCHLEVEL__<2)))
12376 #error intermediate gcc
12377 #endif
12378
12379 ;
12380 return 0;
12381}
12382_ACEOF
12383rm -f conftest.$ac_objext
12384if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12385 (eval $ac_compile) 2>conftest.er1
a848cd7e 12386 ac_status=$?
ac1cb8d3
VS
12387 grep -v '^ *+' conftest.er1 >conftest.err
12388 rm -f conftest.er1
12389 cat conftest.err >&5
a848cd7e
SC
12390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12391 (exit $ac_status); } &&
ffa0583f 12392 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
12393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12394 (eval $ac_try) 2>&5
12395 ac_status=$?
12396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12397 (exit $ac_status); }; } &&
12398 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12400 (eval $ac_try) 2>&5
12401 ac_status=$?
12402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12403 (exit $ac_status); }; }; then
12404
12405 wx_cv_gccversion=Innotek
12406
12407else
12408 echo "$as_me: failed program was:" >&5
12409sed 's/^/| /' conftest.$ac_ext >&5
12410
12411
12412 wx_cv_gccversion=3
12413
12414
12415fi
ac1cb8d3 12416rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12417
12418else
12419 echo "$as_me: failed program was:" >&5
12420sed 's/^/| /' conftest.$ac_ext >&5
12421
12422
12423 wx_cv_gccversion=2
12424
12425
12426fi
ac1cb8d3 12427rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12428
12429fi
12430echo "$as_me:$LINENO: result: $wx_cv_gccversion" >&5
12431echo "${ECHO_T}$wx_cv_gccversion" >&6
12432 if test "$wx_cv_gccversion" = "2"; then
12433 LIBS="$LIBS -lstdcpp"
12434 LDFLAGS="$LDFLAGS -Zsysv-signals"
12435 else
12436 if test "$wx_cv_gccversion" = "3"; then
12437 LIBS="$LIBS -lstdcxx"
12438 LDFLAGS="$LDFLAGS -Zsysv-signals"
12439 else
12440 LIBS="$LIBS -lstdc++"
12441 fi
12442 fi
12443 if test "$wxUSE_OMF" = "yes"; then
de59c161 12444 LDFLAGS="$LDFLAGS -Zomf -Zlinker /PMTYPE:PM -Zlinker /EXEPACK"
a848cd7e
SC
12445 fi
12446 ;;
12447 *)
12448
12449
12450
12451 ac_ext=cc
12452ac_cpp='$CXXCPP $CPPFLAGS'
12453ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12454ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12455ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12456
12457
12458
12459echo "$as_me:$LINENO: checking for strcasecmp() in string.h" >&5
12460echo $ECHO_N "checking for strcasecmp() in string.h... $ECHO_C" >&6
12461if test "${ac_cv_string_strcasecmp+set}" = set; then
12462 echo $ECHO_N "(cached) $ECHO_C" >&6
12463else
12464
12465 cat >conftest.$ac_ext <<_ACEOF
12466/* confdefs.h. */
12467_ACEOF
12468cat confdefs.h >>conftest.$ac_ext
12469cat >>conftest.$ac_ext <<_ACEOF
12470/* end confdefs.h. */
12471
12472 #include <string.h>
12473
12474int
12475main ()
12476{
12477
12478 strcasecmp("foo", "bar");
12479
12480 ;
12481 return 0;
12482}
12483_ACEOF
12484rm -f conftest.$ac_objext conftest$ac_exeext
12485if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 12486 (eval $ac_link) 2>conftest.er1
a848cd7e 12487 ac_status=$?
ac1cb8d3
VS
12488 grep -v '^ *+' conftest.er1 >conftest.err
12489 rm -f conftest.er1
12490 cat conftest.err >&5
a848cd7e
SC
12491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12492 (exit $ac_status); } &&
ffa0583f 12493 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
12494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12495 (eval $ac_try) 2>&5
12496 ac_status=$?
12497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12498 (exit $ac_status); }; } &&
12499 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
12500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12501 (eval $ac_try) 2>&5
12502 ac_status=$?
12503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12504 (exit $ac_status); }; }; then
12505 ac_cv_string_strcasecmp=yes
12506else
12507 echo "$as_me: failed program was:" >&5
12508sed 's/^/| /' conftest.$ac_ext >&5
12509
12510ac_cv_string_strcasecmp=no
12511
12512fi
ac1cb8d3
VS
12513rm -f conftest.err conftest.$ac_objext \
12514 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
12515
12516fi
12517echo "$as_me:$LINENO: result: $ac_cv_string_strcasecmp" >&5
12518echo "${ECHO_T}$ac_cv_string_strcasecmp" >&6
12519
12520 if test x"$ac_cv_string_strcasecmp" = "xyes"; then
12521 cat >>confdefs.h <<\_ACEOF
12522#define HAVE_STRCASECMP_IN_STRING_H 1
12523_ACEOF
12524
12525 else
12526 echo "$as_me:$LINENO: checking for strcasecmp() in strings.h" >&5
12527echo $ECHO_N "checking for strcasecmp() in strings.h... $ECHO_C" >&6
12528if test "${ac_cv_strings_strcasecmp+set}" = set; then
12529 echo $ECHO_N "(cached) $ECHO_C" >&6
12530else
12531
12532 cat >conftest.$ac_ext <<_ACEOF
12533/* confdefs.h. */
12534_ACEOF
12535cat confdefs.h >>conftest.$ac_ext
12536cat >>conftest.$ac_ext <<_ACEOF
12537/* end confdefs.h. */
12538
12539 #include <strings.h>
12540
12541int
12542main ()
12543{
12544
12545 strcasecmp("foo", "bar");
12546
12547 ;
12548 return 0;
12549}
12550_ACEOF
12551rm -f conftest.$ac_objext conftest$ac_exeext
12552if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 12553 (eval $ac_link) 2>conftest.er1
a848cd7e 12554 ac_status=$?
ac1cb8d3
VS
12555 grep -v '^ *+' conftest.er1 >conftest.err
12556 rm -f conftest.er1
12557 cat conftest.err >&5
a848cd7e
SC
12558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12559 (exit $ac_status); } &&
ffa0583f 12560 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
12561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12562 (eval $ac_try) 2>&5
12563 ac_status=$?
12564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12565 (exit $ac_status); }; } &&
12566 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
12567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12568 (eval $ac_try) 2>&5
12569 ac_status=$?
12570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12571 (exit $ac_status); }; }; then
12572 ac_cv_strings_strcasecmp=yes
12573else
12574 echo "$as_me: failed program was:" >&5
12575sed 's/^/| /' conftest.$ac_ext >&5
12576
12577ac_cv_strings_strcasecmp=no
12578
12579fi
ac1cb8d3
VS
12580rm -f conftest.err conftest.$ac_objext \
12581 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
12582
12583fi
12584echo "$as_me:$LINENO: result: $ac_cv_strings_strcasecmp" >&5
12585echo "${ECHO_T}$ac_cv_strings_strcasecmp" >&6
12586
0c3c69fc 12587 if test x"$ac_cv_strings_strcasecmp" = "xyes"; then
a848cd7e
SC
12588 cat >>confdefs.h <<\_ACEOF
12589#define HAVE_STRCASECMP_IN_STRINGS_H 1
12590_ACEOF
12591
12592 else
12593 { { echo "$as_me:$LINENO: error: No case-insensitive string comparison function found." >&5
12594echo "$as_me: error: No case-insensitive string comparison function found." >&2;}
12595 { (exit 1); exit 1; }; }
12596 fi
12597 fi
12598
12599 ac_ext=c
12600ac_cpp='$CPP $CPPFLAGS'
12601ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12602ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12603ac_compiler_gnu=$ac_cv_c_compiler_gnu
12604
12605 ;;
12606esac
12607
12608
12609echo "$as_me:$LINENO: checking for ANSI C header files" >&5
12610echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
12611if test "${ac_cv_header_stdc+set}" = set; then
12612 echo $ECHO_N "(cached) $ECHO_C" >&6
12613else
12614 cat >conftest.$ac_ext <<_ACEOF
12615/* confdefs.h. */
12616_ACEOF
12617cat confdefs.h >>conftest.$ac_ext
12618cat >>conftest.$ac_ext <<_ACEOF
12619/* end confdefs.h. */
12620#include <stdlib.h>
12621#include <stdarg.h>
12622#include <string.h>
12623#include <float.h>
12624
12625int
12626main ()
12627{
12628
12629 ;
12630 return 0;
12631}
12632_ACEOF
12633rm -f conftest.$ac_objext
12634if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12635 (eval $ac_compile) 2>conftest.er1
a848cd7e 12636 ac_status=$?
ac1cb8d3
VS
12637 grep -v '^ *+' conftest.er1 >conftest.err
12638 rm -f conftest.er1
12639 cat conftest.err >&5
a848cd7e
SC
12640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12641 (exit $ac_status); } &&
ffa0583f 12642 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
12643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12644 (eval $ac_try) 2>&5
12645 ac_status=$?
12646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12647 (exit $ac_status); }; } &&
12648 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12650 (eval $ac_try) 2>&5
12651 ac_status=$?
12652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12653 (exit $ac_status); }; }; then
12654 ac_cv_header_stdc=yes
12655else
12656 echo "$as_me: failed program was:" >&5
12657sed 's/^/| /' conftest.$ac_ext >&5
12658
12659ac_cv_header_stdc=no
12660fi
ac1cb8d3 12661rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12662
12663if test $ac_cv_header_stdc = yes; then
12664 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
12665 cat >conftest.$ac_ext <<_ACEOF
12666/* confdefs.h. */
12667_ACEOF
12668cat confdefs.h >>conftest.$ac_ext
12669cat >>conftest.$ac_ext <<_ACEOF
12670/* end confdefs.h. */
12671#include <string.h>
12672
12673_ACEOF
12674if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12675 $EGREP "memchr" >/dev/null 2>&1; then
12676 :
12677else
12678 ac_cv_header_stdc=no
12679fi
12680rm -f conftest*
12681
12682fi
12683
12684if test $ac_cv_header_stdc = yes; then
12685 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
12686 cat >conftest.$ac_ext <<_ACEOF
12687/* confdefs.h. */
12688_ACEOF
12689cat confdefs.h >>conftest.$ac_ext
12690cat >>conftest.$ac_ext <<_ACEOF
12691/* end confdefs.h. */
12692#include <stdlib.h>
12693
12694_ACEOF
12695if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12696 $EGREP "free" >/dev/null 2>&1; then
12697 :
12698else
12699 ac_cv_header_stdc=no
12700fi
12701rm -f conftest*
12702
12703fi
12704
12705if test $ac_cv_header_stdc = yes; then
12706 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
12707 if test "$cross_compiling" = yes; then
12708 :
12709else
12710 cat >conftest.$ac_ext <<_ACEOF
12711/* confdefs.h. */
12712_ACEOF
12713cat confdefs.h >>conftest.$ac_ext
12714cat >>conftest.$ac_ext <<_ACEOF
12715/* end confdefs.h. */
12716#include <ctype.h>
12717#if ((' ' & 0x0FF) == 0x020)
12718# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
12719# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
12720#else
12721# define ISLOWER(c) \
ac1cb8d3
VS
12722 (('a' <= (c) && (c) <= 'i') \
12723 || ('j' <= (c) && (c) <= 'r') \
12724 || ('s' <= (c) && (c) <= 'z'))
a848cd7e
SC
12725# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
12726#endif
12727
12728#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
12729int
12730main ()
12731{
12732 int i;
12733 for (i = 0; i < 256; i++)
12734 if (XOR (islower (i), ISLOWER (i))
ac1cb8d3 12735 || toupper (i) != TOUPPER (i))
a848cd7e
SC
12736 exit(2);
12737 exit (0);
12738}
12739_ACEOF
12740rm -f conftest$ac_exeext
12741if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12742 (eval $ac_link) 2>&5
12743 ac_status=$?
12744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12745 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12747 (eval $ac_try) 2>&5
12748 ac_status=$?
12749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12750 (exit $ac_status); }; }; then
12751 :
12752else
12753 echo "$as_me: program exited with status $ac_status" >&5
12754echo "$as_me: failed program was:" >&5
12755sed 's/^/| /' conftest.$ac_ext >&5
12756
12757( exit $ac_status )
12758ac_cv_header_stdc=no
12759fi
ac1cb8d3 12760rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12761fi
12762fi
12763fi
12764echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
12765echo "${ECHO_T}$ac_cv_header_stdc" >&6
12766if test $ac_cv_header_stdc = yes; then
12767
12768cat >>confdefs.h <<\_ACEOF
12769#define STDC_HEADERS 1
12770_ACEOF
12771
12772fi
12773
12774# On IRIX 5.3, sys/types and inttypes.h are conflicting.
12775
12776
12777
12778
12779
12780
12781
12782
12783
12784for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
ac1cb8d3 12785 inttypes.h stdint.h unistd.h
a848cd7e
SC
12786do
12787as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12788echo "$as_me:$LINENO: checking for $ac_header" >&5
12789echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12790if eval "test \"\${$as_ac_Header+set}\" = set"; then
12791 echo $ECHO_N "(cached) $ECHO_C" >&6
12792else
12793 cat >conftest.$ac_ext <<_ACEOF
12794/* confdefs.h. */
12795_ACEOF
12796cat confdefs.h >>conftest.$ac_ext
12797cat >>conftest.$ac_ext <<_ACEOF
12798/* end confdefs.h. */
12799$ac_includes_default
12800
12801#include <$ac_header>
12802_ACEOF
12803rm -f conftest.$ac_objext
12804if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12805 (eval $ac_compile) 2>conftest.er1
a848cd7e 12806 ac_status=$?
ac1cb8d3
VS
12807 grep -v '^ *+' conftest.er1 >conftest.err
12808 rm -f conftest.er1
12809 cat conftest.err >&5
a848cd7e
SC
12810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12811 (exit $ac_status); } &&
ffa0583f 12812 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
12813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12814 (eval $ac_try) 2>&5
12815 ac_status=$?
12816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12817 (exit $ac_status); }; } &&
12818 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12820 (eval $ac_try) 2>&5
12821 ac_status=$?
12822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12823 (exit $ac_status); }; }; then
12824 eval "$as_ac_Header=yes"
12825else
12826 echo "$as_me: failed program was:" >&5
12827sed 's/^/| /' conftest.$ac_ext >&5
12828
12829eval "$as_ac_Header=no"
12830fi
ac1cb8d3 12831rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12832fi
12833echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12834echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12835if test `eval echo '${'$as_ac_Header'}'` = yes; then
12836 cat >>confdefs.h <<_ACEOF
12837#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12838_ACEOF
12839
12840fi
12841
12842done
12843
12844
12845
12846for ac_header in stdlib.h
12847do
12848as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12849if eval "test \"\${$as_ac_Header+set}\" = set"; then
12850 echo "$as_me:$LINENO: checking for $ac_header" >&5
12851echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12852if eval "test \"\${$as_ac_Header+set}\" = set"; then
12853 echo $ECHO_N "(cached) $ECHO_C" >&6
12854fi
12855echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12856echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12857else
12858 # Is the header compilable?
12859echo "$as_me:$LINENO: checking $ac_header usability" >&5
12860echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12861cat >conftest.$ac_ext <<_ACEOF
12862/* confdefs.h. */
12863_ACEOF
12864cat confdefs.h >>conftest.$ac_ext
12865cat >>conftest.$ac_ext <<_ACEOF
12866/* end confdefs.h. */
12867$ac_includes_default
12868#include <$ac_header>
12869_ACEOF
12870rm -f conftest.$ac_objext
12871if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12872 (eval $ac_compile) 2>conftest.er1
a848cd7e 12873 ac_status=$?
ac1cb8d3
VS
12874 grep -v '^ *+' conftest.er1 >conftest.err
12875 rm -f conftest.er1
12876 cat conftest.err >&5
a848cd7e
SC
12877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12878 (exit $ac_status); } &&
ffa0583f 12879 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
12880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12881 (eval $ac_try) 2>&5
12882 ac_status=$?
12883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12884 (exit $ac_status); }; } &&
12885 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12887 (eval $ac_try) 2>&5
12888 ac_status=$?
12889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12890 (exit $ac_status); }; }; then
12891 ac_header_compiler=yes
12892else
12893 echo "$as_me: failed program was:" >&5
12894sed 's/^/| /' conftest.$ac_ext >&5
12895
12896ac_header_compiler=no
12897fi
ac1cb8d3 12898rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12899echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12900echo "${ECHO_T}$ac_header_compiler" >&6
12901
12902# Is the header present?
12903echo "$as_me:$LINENO: checking $ac_header presence" >&5
12904echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12905cat >conftest.$ac_ext <<_ACEOF
12906/* confdefs.h. */
12907_ACEOF
12908cat confdefs.h >>conftest.$ac_ext
12909cat >>conftest.$ac_ext <<_ACEOF
12910/* end confdefs.h. */
12911#include <$ac_header>
12912_ACEOF
12913if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12914 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12915 ac_status=$?
12916 grep -v '^ *+' conftest.er1 >conftest.err
12917 rm -f conftest.er1
12918 cat conftest.err >&5
12919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12920 (exit $ac_status); } >/dev/null; then
12921 if test -s conftest.err; then
12922 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 12923 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
12924 else
12925 ac_cpp_err=
12926 fi
12927else
12928 ac_cpp_err=yes
12929fi
12930if test -z "$ac_cpp_err"; then
12931 ac_header_preproc=yes
12932else
12933 echo "$as_me: failed program was:" >&5
12934sed 's/^/| /' conftest.$ac_ext >&5
12935
12936 ac_header_preproc=no
12937fi
12938rm -f conftest.err conftest.$ac_ext
12939echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12940echo "${ECHO_T}$ac_header_preproc" >&6
12941
12942# So? What about this header?
ac1cb8d3
VS
12943case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12944 yes:no: )
a848cd7e
SC
12945 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12946echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
12947 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12948echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12949 ac_header_preproc=yes
a848cd7e 12950 ;;
ac1cb8d3 12951 no:yes:* )
a848cd7e
SC
12952 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12953echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
12954 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12955echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12956 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12957echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12958 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12959echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
12960 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12961echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
12962 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12963echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
12964 (
12965 cat <<\_ASBOX
ac1cb8d3
VS
12966## ----------------------------------------- ##
12967## Report this to wx-dev@lists.wxwidgets.org ##
12968## ----------------------------------------- ##
a848cd7e
SC
12969_ASBOX
12970 ) |
12971 sed "s/^/$as_me: WARNING: /" >&2
12972 ;;
12973esac
12974echo "$as_me:$LINENO: checking for $ac_header" >&5
12975echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12976if eval "test \"\${$as_ac_Header+set}\" = set"; then
12977 echo $ECHO_N "(cached) $ECHO_C" >&6
12978else
ac1cb8d3 12979 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
12980fi
12981echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12982echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12983
12984fi
12985if test `eval echo '${'$as_ac_Header'}'` = yes; then
12986 cat >>confdefs.h <<_ACEOF
12987#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12988_ACEOF
12989
12990fi
12991
12992done
12993
12994
12995for ac_header in malloc.h
12996do
12997as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12998if eval "test \"\${$as_ac_Header+set}\" = set"; then
12999 echo "$as_me:$LINENO: checking for $ac_header" >&5
13000echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13001if eval "test \"\${$as_ac_Header+set}\" = set"; then
13002 echo $ECHO_N "(cached) $ECHO_C" >&6
13003fi
13004echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13005echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13006else
13007 # Is the header compilable?
13008echo "$as_me:$LINENO: checking $ac_header usability" >&5
13009echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13010cat >conftest.$ac_ext <<_ACEOF
13011/* confdefs.h. */
13012_ACEOF
13013cat confdefs.h >>conftest.$ac_ext
13014cat >>conftest.$ac_ext <<_ACEOF
13015/* end confdefs.h. */
13016$ac_includes_default
13017#include <$ac_header>
13018_ACEOF
13019rm -f conftest.$ac_objext
13020if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 13021 (eval $ac_compile) 2>conftest.er1
a848cd7e 13022 ac_status=$?
ac1cb8d3
VS
13023 grep -v '^ *+' conftest.er1 >conftest.err
13024 rm -f conftest.er1
13025 cat conftest.err >&5
a848cd7e
SC
13026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13027 (exit $ac_status); } &&
ffa0583f 13028 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
13029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13030 (eval $ac_try) 2>&5
13031 ac_status=$?
13032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13033 (exit $ac_status); }; } &&
13034 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
13035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13036 (eval $ac_try) 2>&5
13037 ac_status=$?
13038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13039 (exit $ac_status); }; }; then
13040 ac_header_compiler=yes
13041else
13042 echo "$as_me: failed program was:" >&5
13043sed 's/^/| /' conftest.$ac_ext >&5
13044
13045ac_header_compiler=no
13046fi
ac1cb8d3 13047rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
13048echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13049echo "${ECHO_T}$ac_header_compiler" >&6
13050
13051# Is the header present?
13052echo "$as_me:$LINENO: checking $ac_header presence" >&5
13053echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13054cat >conftest.$ac_ext <<_ACEOF
13055/* confdefs.h. */
13056_ACEOF
13057cat confdefs.h >>conftest.$ac_ext
13058cat >>conftest.$ac_ext <<_ACEOF
13059/* end confdefs.h. */
13060#include <$ac_header>
13061_ACEOF
13062if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13063 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13064 ac_status=$?
13065 grep -v '^ *+' conftest.er1 >conftest.err
13066 rm -f conftest.er1
13067 cat conftest.err >&5
13068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13069 (exit $ac_status); } >/dev/null; then
13070 if test -s conftest.err; then
13071 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 13072 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
13073 else
13074 ac_cpp_err=
13075 fi
13076else
13077 ac_cpp_err=yes
13078fi
13079if test -z "$ac_cpp_err"; then
13080 ac_header_preproc=yes
13081else
13082 echo "$as_me: failed program was:" >&5
13083sed 's/^/| /' conftest.$ac_ext >&5
13084
13085 ac_header_preproc=no
13086fi
13087rm -f conftest.err conftest.$ac_ext
13088echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13089echo "${ECHO_T}$ac_header_preproc" >&6
13090
13091# So? What about this header?
ac1cb8d3
VS
13092case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13093 yes:no: )
a848cd7e
SC
13094 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13095echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
13096 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13097echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13098 ac_header_preproc=yes
a848cd7e 13099 ;;
ac1cb8d3 13100 no:yes:* )
a848cd7e
SC
13101 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13102echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
13103 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13104echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13105 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13106echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13107 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13108echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
13109 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13110echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
13111 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13112echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
13113 (
13114 cat <<\_ASBOX
ac1cb8d3
VS
13115## ----------------------------------------- ##
13116## Report this to wx-dev@lists.wxwidgets.org ##
13117## ----------------------------------------- ##
a848cd7e
SC
13118_ASBOX
13119 ) |
13120 sed "s/^/$as_me: WARNING: /" >&2
13121 ;;
13122esac
13123echo "$as_me:$LINENO: checking for $ac_header" >&5
13124echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13125if eval "test \"\${$as_ac_Header+set}\" = set"; then
13126 echo $ECHO_N "(cached) $ECHO_C" >&6
13127else
ac1cb8d3 13128 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
13129fi
13130echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13131echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13132
13133fi
13134if test `eval echo '${'$as_ac_Header'}'` = yes; then
13135 cat >>confdefs.h <<_ACEOF
13136#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13137_ACEOF
13138
13139fi
13140
13141done
13142
13143
13144for ac_header in unistd.h
13145do
13146as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13147if eval "test \"\${$as_ac_Header+set}\" = set"; then
13148 echo "$as_me:$LINENO: checking for $ac_header" >&5
13149echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13150if eval "test \"\${$as_ac_Header+set}\" = set"; then
13151 echo $ECHO_N "(cached) $ECHO_C" >&6
13152fi
13153echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13154echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13155else
13156 # Is the header compilable?
13157echo "$as_me:$LINENO: checking $ac_header usability" >&5
13158echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13159cat >conftest.$ac_ext <<_ACEOF
13160/* confdefs.h. */
13161_ACEOF
13162cat confdefs.h >>conftest.$ac_ext
13163cat >>conftest.$ac_ext <<_ACEOF
13164/* end confdefs.h. */
13165$ac_includes_default
13166#include <$ac_header>
13167_ACEOF
13168rm -f conftest.$ac_objext
13169if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 13170 (eval $ac_compile) 2>conftest.er1
a848cd7e 13171 ac_status=$?
ac1cb8d3
VS
13172 grep -v '^ *+' conftest.er1 >conftest.err
13173 rm -f conftest.er1
13174 cat conftest.err >&5
a848cd7e
SC
13175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13176 (exit $ac_status); } &&
ffa0583f 13177 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
13178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13179 (eval $ac_try) 2>&5
13180 ac_status=$?
13181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13182 (exit $ac_status); }; } &&
13183 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
13184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13185 (eval $ac_try) 2>&5
13186 ac_status=$?
13187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13188 (exit $ac_status); }; }; then
13189 ac_header_compiler=yes
13190else
13191 echo "$as_me: failed program was:" >&5
13192sed 's/^/| /' conftest.$ac_ext >&5
13193
13194ac_header_compiler=no
13195fi
ac1cb8d3 13196rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
13197echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13198echo "${ECHO_T}$ac_header_compiler" >&6
13199
13200# Is the header present?
13201echo "$as_me:$LINENO: checking $ac_header presence" >&5
13202echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13203cat >conftest.$ac_ext <<_ACEOF
13204/* confdefs.h. */
13205_ACEOF
13206cat confdefs.h >>conftest.$ac_ext
13207cat >>conftest.$ac_ext <<_ACEOF
13208/* end confdefs.h. */
13209#include <$ac_header>
13210_ACEOF
13211if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13212 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13213 ac_status=$?
13214 grep -v '^ *+' conftest.er1 >conftest.err
13215 rm -f conftest.er1
13216 cat conftest.err >&5
13217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13218 (exit $ac_status); } >/dev/null; then
13219 if test -s conftest.err; then
13220 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 13221 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
13222 else
13223 ac_cpp_err=
13224 fi
13225else
13226 ac_cpp_err=yes
13227fi
13228if test -z "$ac_cpp_err"; then
13229 ac_header_preproc=yes
13230else
13231 echo "$as_me: failed program was:" >&5
13232sed 's/^/| /' conftest.$ac_ext >&5
13233
13234 ac_header_preproc=no
13235fi
13236rm -f conftest.err conftest.$ac_ext
13237echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13238echo "${ECHO_T}$ac_header_preproc" >&6
13239
13240# So? What about this header?
ac1cb8d3
VS
13241case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13242 yes:no: )
a848cd7e
SC
13243 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13244echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
13245 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13246echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13247 ac_header_preproc=yes
a848cd7e 13248 ;;
ac1cb8d3 13249 no:yes:* )
a848cd7e
SC
13250 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13251echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
13252 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13253echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13254 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13255echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13256 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13257echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
13258 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13259echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
13260 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13261echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
13262 (
13263 cat <<\_ASBOX
ac1cb8d3
VS
13264## ----------------------------------------- ##
13265## Report this to wx-dev@lists.wxwidgets.org ##
13266## ----------------------------------------- ##
a848cd7e
SC
13267_ASBOX
13268 ) |
13269 sed "s/^/$as_me: WARNING: /" >&2
13270 ;;
13271esac
13272echo "$as_me:$LINENO: checking for $ac_header" >&5
13273echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13274if eval "test \"\${$as_ac_Header+set}\" = set"; then
13275 echo $ECHO_N "(cached) $ECHO_C" >&6
13276else
ac1cb8d3 13277 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
13278fi
13279echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13280echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13281
13282fi
13283if test `eval echo '${'$as_ac_Header'}'` = yes; then
13284 cat >>confdefs.h <<_ACEOF
13285#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13286_ACEOF
13287
13288fi
13289
13290done
13291
13292
13293for ac_header in wchar.h
13294do
13295as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13296if eval "test \"\${$as_ac_Header+set}\" = set"; then
13297 echo "$as_me:$LINENO: checking for $ac_header" >&5
13298echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13299if eval "test \"\${$as_ac_Header+set}\" = set"; then
13300 echo $ECHO_N "(cached) $ECHO_C" >&6
13301fi
13302echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13303echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13304else
13305 # Is the header compilable?
13306echo "$as_me:$LINENO: checking $ac_header usability" >&5
13307echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13308cat >conftest.$ac_ext <<_ACEOF
13309/* confdefs.h. */
13310_ACEOF
13311cat confdefs.h >>conftest.$ac_ext
13312cat >>conftest.$ac_ext <<_ACEOF
13313/* end confdefs.h. */
13314$ac_includes_default
13315#include <$ac_header>
13316_ACEOF
13317rm -f conftest.$ac_objext
13318if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 13319 (eval $ac_compile) 2>conftest.er1
a848cd7e 13320 ac_status=$?
ac1cb8d3
VS
13321 grep -v '^ *+' conftest.er1 >conftest.err
13322 rm -f conftest.er1
13323 cat conftest.err >&5
a848cd7e
SC
13324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13325 (exit $ac_status); } &&
ffa0583f 13326 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
13327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13328 (eval $ac_try) 2>&5
13329 ac_status=$?
13330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13331 (exit $ac_status); }; } &&
13332 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
13333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13334 (eval $ac_try) 2>&5
13335 ac_status=$?
13336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13337 (exit $ac_status); }; }; then
13338 ac_header_compiler=yes
13339else
13340 echo "$as_me: failed program was:" >&5
13341sed 's/^/| /' conftest.$ac_ext >&5
13342
13343ac_header_compiler=no
13344fi
ac1cb8d3 13345rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
13346echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13347echo "${ECHO_T}$ac_header_compiler" >&6
13348
13349# Is the header present?
13350echo "$as_me:$LINENO: checking $ac_header presence" >&5
13351echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13352cat >conftest.$ac_ext <<_ACEOF
13353/* confdefs.h. */
13354_ACEOF
13355cat confdefs.h >>conftest.$ac_ext
13356cat >>conftest.$ac_ext <<_ACEOF
13357/* end confdefs.h. */
13358#include <$ac_header>
13359_ACEOF
13360if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13361 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13362 ac_status=$?
13363 grep -v '^ *+' conftest.er1 >conftest.err
13364 rm -f conftest.er1
13365 cat conftest.err >&5
13366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13367 (exit $ac_status); } >/dev/null; then
13368 if test -s conftest.err; then
13369 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 13370 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
13371 else
13372 ac_cpp_err=
13373 fi
13374else
13375 ac_cpp_err=yes
13376fi
13377if test -z "$ac_cpp_err"; then
13378 ac_header_preproc=yes
13379else
13380 echo "$as_me: failed program was:" >&5
13381sed 's/^/| /' conftest.$ac_ext >&5
13382
13383 ac_header_preproc=no
13384fi
13385rm -f conftest.err conftest.$ac_ext
13386echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13387echo "${ECHO_T}$ac_header_preproc" >&6
13388
13389# So? What about this header?
ac1cb8d3
VS
13390case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13391 yes:no: )
a848cd7e
SC
13392 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13393echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
13394 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13395echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13396 ac_header_preproc=yes
a848cd7e 13397 ;;
ac1cb8d3 13398 no:yes:* )
a848cd7e
SC
13399 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13400echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
13401 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13402echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13403 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13404echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13405 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13406echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
13407 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13408echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
13409 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13410echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
13411 (
13412 cat <<\_ASBOX
ac1cb8d3
VS
13413## ----------------------------------------- ##
13414## Report this to wx-dev@lists.wxwidgets.org ##
13415## ----------------------------------------- ##
a848cd7e
SC
13416_ASBOX
13417 ) |
13418 sed "s/^/$as_me: WARNING: /" >&2
13419 ;;
13420esac
13421echo "$as_me:$LINENO: checking for $ac_header" >&5
13422echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13423if eval "test \"\${$as_ac_Header+set}\" = set"; then
13424 echo $ECHO_N "(cached) $ECHO_C" >&6
13425else
ac1cb8d3 13426 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
13427fi
13428echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13429echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13430
13431fi
13432if test `eval echo '${'$as_ac_Header'}'` = yes; then
13433 cat >>confdefs.h <<_ACEOF
13434#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13435_ACEOF
13436
13437fi
13438
13439done
13440
13441
13442if test "$ac_cv_header_wchar_h" != "yes"; then
13443
13444for ac_header in wcstr.h
13445do
13446as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13447if eval "test \"\${$as_ac_Header+set}\" = set"; then
13448 echo "$as_me:$LINENO: checking for $ac_header" >&5
13449echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13450if eval "test \"\${$as_ac_Header+set}\" = set"; then
13451 echo $ECHO_N "(cached) $ECHO_C" >&6
13452fi
13453echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13454echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13455else
13456 # Is the header compilable?
13457echo "$as_me:$LINENO: checking $ac_header usability" >&5
13458echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13459cat >conftest.$ac_ext <<_ACEOF
13460/* confdefs.h. */
13461_ACEOF
13462cat confdefs.h >>conftest.$ac_ext
13463cat >>conftest.$ac_ext <<_ACEOF
13464/* end confdefs.h. */
13465$ac_includes_default
13466#include <$ac_header>
13467_ACEOF
13468rm -f conftest.$ac_objext
13469if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 13470 (eval $ac_compile) 2>conftest.er1
a848cd7e 13471 ac_status=$?
ac1cb8d3
VS
13472 grep -v '^ *+' conftest.er1 >conftest.err
13473 rm -f conftest.er1
13474 cat conftest.err >&5
a848cd7e
SC
13475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13476 (exit $ac_status); } &&
ffa0583f 13477 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
13478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13479 (eval $ac_try) 2>&5
13480 ac_status=$?
13481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13482 (exit $ac_status); }; } &&
13483 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
13484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13485 (eval $ac_try) 2>&5
13486 ac_status=$?
13487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13488 (exit $ac_status); }; }; then
13489 ac_header_compiler=yes
13490else
13491 echo "$as_me: failed program was:" >&5
13492sed 's/^/| /' conftest.$ac_ext >&5
13493
13494ac_header_compiler=no
13495fi
ac1cb8d3 13496rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
13497echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13498echo "${ECHO_T}$ac_header_compiler" >&6
13499
13500# Is the header present?
13501echo "$as_me:$LINENO: checking $ac_header presence" >&5
13502echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13503cat >conftest.$ac_ext <<_ACEOF
13504/* confdefs.h. */
13505_ACEOF
13506cat confdefs.h >>conftest.$ac_ext
13507cat >>conftest.$ac_ext <<_ACEOF
13508/* end confdefs.h. */
13509#include <$ac_header>
13510_ACEOF
13511if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13512 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13513 ac_status=$?
13514 grep -v '^ *+' conftest.er1 >conftest.err
13515 rm -f conftest.er1
13516 cat conftest.err >&5
13517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13518 (exit $ac_status); } >/dev/null; then
13519 if test -s conftest.err; then
13520 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 13521 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
13522 else
13523 ac_cpp_err=
13524 fi
13525else
13526 ac_cpp_err=yes
13527fi
13528if test -z "$ac_cpp_err"; then
13529 ac_header_preproc=yes
13530else
13531 echo "$as_me: failed program was:" >&5
13532sed 's/^/| /' conftest.$ac_ext >&5
13533
13534 ac_header_preproc=no
13535fi
13536rm -f conftest.err conftest.$ac_ext
13537echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13538echo "${ECHO_T}$ac_header_preproc" >&6
13539
13540# So? What about this header?
ac1cb8d3
VS
13541case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13542 yes:no: )
a848cd7e
SC
13543 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13544echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
13545 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13546echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13547 ac_header_preproc=yes
a848cd7e 13548 ;;
ac1cb8d3 13549 no:yes:* )
a848cd7e
SC
13550 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13551echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
13552 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13553echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13554 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13555echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13556 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13557echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
13558 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13559echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
13560 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13561echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
13562 (
13563 cat <<\_ASBOX
ac1cb8d3
VS
13564## ----------------------------------------- ##
13565## Report this to wx-dev@lists.wxwidgets.org ##
13566## ----------------------------------------- ##
a848cd7e
SC
13567_ASBOX
13568 ) |
13569 sed "s/^/$as_me: WARNING: /" >&2
13570 ;;
13571esac
13572echo "$as_me:$LINENO: checking for $ac_header" >&5
13573echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13574if eval "test \"\${$as_ac_Header+set}\" = set"; then
13575 echo $ECHO_N "(cached) $ECHO_C" >&6
13576else
ac1cb8d3 13577 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
13578fi
13579echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13580echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13581
13582fi
13583if test `eval echo '${'$as_ac_Header'}'` = yes; then
13584 cat >>confdefs.h <<_ACEOF
13585#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13586_ACEOF
13587
13588fi
13589
13590done
13591
13592fi
13593
13594
13595for ac_header in fnmatch.h
13596do
13597as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13598if eval "test \"\${$as_ac_Header+set}\" = set"; then
13599 echo "$as_me:$LINENO: checking for $ac_header" >&5
13600echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13601if eval "test \"\${$as_ac_Header+set}\" = set"; then
13602 echo $ECHO_N "(cached) $ECHO_C" >&6
13603fi
13604echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13605echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13606else
13607 # Is the header compilable?
13608echo "$as_me:$LINENO: checking $ac_header usability" >&5
13609echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13610cat >conftest.$ac_ext <<_ACEOF
13611/* confdefs.h. */
13612_ACEOF
13613cat confdefs.h >>conftest.$ac_ext
13614cat >>conftest.$ac_ext <<_ACEOF
13615/* end confdefs.h. */
13616$ac_includes_default
13617#include <$ac_header>
13618_ACEOF
13619rm -f conftest.$ac_objext
13620if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 13621 (eval $ac_compile) 2>conftest.er1
a848cd7e 13622 ac_status=$?
ac1cb8d3
VS
13623 grep -v '^ *+' conftest.er1 >conftest.err
13624 rm -f conftest.er1
13625 cat conftest.err >&5
a848cd7e
SC
13626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13627 (exit $ac_status); } &&
ffa0583f 13628 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
13629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13630 (eval $ac_try) 2>&5
13631 ac_status=$?
13632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13633 (exit $ac_status); }; } &&
13634 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
13635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13636 (eval $ac_try) 2>&5
13637 ac_status=$?
13638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13639 (exit $ac_status); }; }; then
13640 ac_header_compiler=yes
13641else
13642 echo "$as_me: failed program was:" >&5
13643sed 's/^/| /' conftest.$ac_ext >&5
13644
13645ac_header_compiler=no
13646fi
ac1cb8d3 13647rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
13648echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13649echo "${ECHO_T}$ac_header_compiler" >&6
13650
13651# Is the header present?
13652echo "$as_me:$LINENO: checking $ac_header presence" >&5
13653echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13654cat >conftest.$ac_ext <<_ACEOF
13655/* confdefs.h. */
13656_ACEOF
13657cat confdefs.h >>conftest.$ac_ext
13658cat >>conftest.$ac_ext <<_ACEOF
13659/* end confdefs.h. */
13660#include <$ac_header>
13661_ACEOF
13662if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13663 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13664 ac_status=$?
13665 grep -v '^ *+' conftest.er1 >conftest.err
13666 rm -f conftest.er1
13667 cat conftest.err >&5
13668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13669 (exit $ac_status); } >/dev/null; then
13670 if test -s conftest.err; then
13671 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 13672 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
13673 else
13674 ac_cpp_err=
13675 fi
13676else
13677 ac_cpp_err=yes
13678fi
13679if test -z "$ac_cpp_err"; then
13680 ac_header_preproc=yes
13681else
13682 echo "$as_me: failed program was:" >&5
13683sed 's/^/| /' conftest.$ac_ext >&5
13684
13685 ac_header_preproc=no
13686fi
13687rm -f conftest.err conftest.$ac_ext
13688echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13689echo "${ECHO_T}$ac_header_preproc" >&6
13690
13691# So? What about this header?
ac1cb8d3
VS
13692case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13693 yes:no: )
a848cd7e
SC
13694 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13695echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
13696 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13697echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13698 ac_header_preproc=yes
a848cd7e 13699 ;;
ac1cb8d3 13700 no:yes:* )
a848cd7e
SC
13701 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13702echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
13703 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13704echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13705 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13706echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13707 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13708echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
13709 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13710echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
13711 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13712echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
13713 (
13714 cat <<\_ASBOX
ac1cb8d3
VS
13715## ----------------------------------------- ##
13716## Report this to wx-dev@lists.wxwidgets.org ##
13717## ----------------------------------------- ##
a848cd7e
SC
13718_ASBOX
13719 ) |
13720 sed "s/^/$as_me: WARNING: /" >&2
13721 ;;
13722esac
13723echo "$as_me:$LINENO: checking for $ac_header" >&5
13724echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13725if eval "test \"\${$as_ac_Header+set}\" = set"; then
13726 echo $ECHO_N "(cached) $ECHO_C" >&6
13727else
ac1cb8d3 13728 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
13729fi
13730echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13731echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13732
13733fi
13734if test `eval echo '${'$as_ac_Header'}'` = yes; then
13735 cat >>confdefs.h <<_ACEOF
13736#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13737_ACEOF
13738
13739fi
13740
13741done
13742
13743
13744if test "x$ac_cv_header_fnmatch_h" = "xyes"; then
13745
13746for ac_func in fnmatch
13747do
13748as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13749echo "$as_me:$LINENO: checking for $ac_func" >&5
13750echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13751if eval "test \"\${$as_ac_var+set}\" = set"; then
13752 echo $ECHO_N "(cached) $ECHO_C" >&6
13753else
13754 cat >conftest.$ac_ext <<_ACEOF
13755/* confdefs.h. */
13756_ACEOF
13757cat confdefs.h >>conftest.$ac_ext
13758cat >>conftest.$ac_ext <<_ACEOF
13759/* end confdefs.h. */
ac1cb8d3
VS
13760/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13761 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13762#define $ac_func innocuous_$ac_func
13763
a848cd7e
SC
13764/* System header to define __stub macros and hopefully few prototypes,
13765 which can conflict with char $ac_func (); below.
13766 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13767 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 13768
a848cd7e
SC
13769#ifdef __STDC__
13770# include <limits.h>
13771#else
13772# include <assert.h>
13773#endif
ac1cb8d3
VS
13774
13775#undef $ac_func
13776
a848cd7e
SC
13777/* Override any gcc2 internal prototype to avoid an error. */
13778#ifdef __cplusplus
13779extern "C"
13780{
13781#endif
13782/* We use char because int might match the return type of a gcc2
13783 builtin and then its argument prototype would still apply. */
13784char $ac_func ();
13785/* The GNU C library defines this for functions which it implements
13786 to always fail with ENOSYS. Some functions are actually named
13787 something starting with __ and the normal name is an alias. */
13788#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13789choke me
13790#else
13791char (*f) () = $ac_func;
13792#endif
13793#ifdef __cplusplus
13794}
13795#endif
13796
13797int
13798main ()
13799{
13800return f != $ac_func;
13801 ;
13802 return 0;
13803}
13804_ACEOF
13805rm -f conftest.$ac_objext conftest$ac_exeext
13806if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 13807 (eval $ac_link) 2>conftest.er1
a848cd7e 13808 ac_status=$?
ac1cb8d3
VS
13809 grep -v '^ *+' conftest.er1 >conftest.err
13810 rm -f conftest.er1
13811 cat conftest.err >&5
a848cd7e
SC
13812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13813 (exit $ac_status); } &&
ffa0583f 13814 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
13815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13816 (eval $ac_try) 2>&5
13817 ac_status=$?
13818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13819 (exit $ac_status); }; } &&
13820 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
13821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13822 (eval $ac_try) 2>&5
13823 ac_status=$?
13824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13825 (exit $ac_status); }; }; then
13826 eval "$as_ac_var=yes"
13827else
13828 echo "$as_me: failed program was:" >&5
13829sed 's/^/| /' conftest.$ac_ext >&5
13830
13831eval "$as_ac_var=no"
13832fi
ac1cb8d3
VS
13833rm -f conftest.err conftest.$ac_objext \
13834 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
13835fi
13836echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13837echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13838if test `eval echo '${'$as_ac_var'}'` = yes; then
13839 cat >>confdefs.h <<_ACEOF
13840#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13841_ACEOF
13842
13843fi
13844done
13845
13846fi
13847
13848
13849for ac_header in langinfo.h
13850do
13851as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13852if eval "test \"\${$as_ac_Header+set}\" = set"; then
13853 echo "$as_me:$LINENO: checking for $ac_header" >&5
13854echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13855if eval "test \"\${$as_ac_Header+set}\" = set"; then
13856 echo $ECHO_N "(cached) $ECHO_C" >&6
13857fi
13858echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13859echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13860else
13861 # Is the header compilable?
13862echo "$as_me:$LINENO: checking $ac_header usability" >&5
13863echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13864cat >conftest.$ac_ext <<_ACEOF
13865/* confdefs.h. */
13866_ACEOF
13867cat confdefs.h >>conftest.$ac_ext
13868cat >>conftest.$ac_ext <<_ACEOF
13869/* end confdefs.h. */
13870$ac_includes_default
13871#include <$ac_header>
13872_ACEOF
13873rm -f conftest.$ac_objext
13874if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 13875 (eval $ac_compile) 2>conftest.er1
a848cd7e 13876 ac_status=$?
ac1cb8d3
VS
13877 grep -v '^ *+' conftest.er1 >conftest.err
13878 rm -f conftest.er1
13879 cat conftest.err >&5
a848cd7e
SC
13880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13881 (exit $ac_status); } &&
ffa0583f 13882 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
13883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13884 (eval $ac_try) 2>&5
13885 ac_status=$?
13886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13887 (exit $ac_status); }; } &&
13888 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
13889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13890 (eval $ac_try) 2>&5
13891 ac_status=$?
13892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13893 (exit $ac_status); }; }; then
13894 ac_header_compiler=yes
13895else
13896 echo "$as_me: failed program was:" >&5
13897sed 's/^/| /' conftest.$ac_ext >&5
13898
13899ac_header_compiler=no
13900fi
ac1cb8d3 13901rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
13902echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13903echo "${ECHO_T}$ac_header_compiler" >&6
13904
13905# Is the header present?
13906echo "$as_me:$LINENO: checking $ac_header presence" >&5
13907echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13908cat >conftest.$ac_ext <<_ACEOF
13909/* confdefs.h. */
13910_ACEOF
13911cat confdefs.h >>conftest.$ac_ext
13912cat >>conftest.$ac_ext <<_ACEOF
13913/* end confdefs.h. */
13914#include <$ac_header>
13915_ACEOF
13916if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13917 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13918 ac_status=$?
13919 grep -v '^ *+' conftest.er1 >conftest.err
13920 rm -f conftest.er1
13921 cat conftest.err >&5
13922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13923 (exit $ac_status); } >/dev/null; then
13924 if test -s conftest.err; then
13925 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 13926 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
13927 else
13928 ac_cpp_err=
13929 fi
13930else
13931 ac_cpp_err=yes
13932fi
13933if test -z "$ac_cpp_err"; then
13934 ac_header_preproc=yes
13935else
13936 echo "$as_me: failed program was:" >&5
13937sed 's/^/| /' conftest.$ac_ext >&5
13938
13939 ac_header_preproc=no
13940fi
13941rm -f conftest.err conftest.$ac_ext
13942echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13943echo "${ECHO_T}$ac_header_preproc" >&6
13944
13945# So? What about this header?
ac1cb8d3
VS
13946case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13947 yes:no: )
a848cd7e
SC
13948 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13949echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
13950 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13951echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13952 ac_header_preproc=yes
a848cd7e 13953 ;;
ac1cb8d3 13954 no:yes:* )
a848cd7e
SC
13955 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13956echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
13957 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13958echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13959 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13960echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13961 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13962echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
13963 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13964echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
13965 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13966echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
13967 (
13968 cat <<\_ASBOX
ac1cb8d3
VS
13969## ----------------------------------------- ##
13970## Report this to wx-dev@lists.wxwidgets.org ##
13971## ----------------------------------------- ##
a848cd7e
SC
13972_ASBOX
13973 ) |
13974 sed "s/^/$as_me: WARNING: /" >&2
13975 ;;
13976esac
13977echo "$as_me:$LINENO: checking for $ac_header" >&5
13978echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13979if eval "test \"\${$as_ac_Header+set}\" = set"; then
13980 echo $ECHO_N "(cached) $ECHO_C" >&6
13981else
ac1cb8d3 13982 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
13983fi
13984echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13985echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13986
13987fi
13988if test `eval echo '${'$as_ac_Header'}'` = yes; then
13989 cat >>confdefs.h <<_ACEOF
13990#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13991_ACEOF
13992
13993fi
13994
13995done
13996
13997
13998case "${host}" in
13999 *-pc-os2_emx | *-pc-os2-emx )
14000 if test $ac_cv_header_langinfo_h = "yes"; then
14001 LIBS="$LIBS -lintl"
14002 fi
14003 ;;
14004esac
14005
14006if test "$wxUSE_GUI" = "yes"; then
14007 if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_PM" != 1; then
14008
14009for ac_header in X11/Xlib.h
14010do
14011as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14012if eval "test \"\${$as_ac_Header+set}\" = set"; then
14013 echo "$as_me:$LINENO: checking for $ac_header" >&5
14014echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14015if eval "test \"\${$as_ac_Header+set}\" = set"; then
14016 echo $ECHO_N "(cached) $ECHO_C" >&6
14017fi
14018echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14019echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14020else
14021 # Is the header compilable?
14022echo "$as_me:$LINENO: checking $ac_header usability" >&5
14023echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14024cat >conftest.$ac_ext <<_ACEOF
14025/* confdefs.h. */
14026_ACEOF
14027cat confdefs.h >>conftest.$ac_ext
14028cat >>conftest.$ac_ext <<_ACEOF
14029/* end confdefs.h. */
14030$ac_includes_default
14031#include <$ac_header>
14032_ACEOF
14033rm -f conftest.$ac_objext
14034if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14035 (eval $ac_compile) 2>conftest.er1
a848cd7e 14036 ac_status=$?
ac1cb8d3
VS
14037 grep -v '^ *+' conftest.er1 >conftest.err
14038 rm -f conftest.er1
14039 cat conftest.err >&5
a848cd7e
SC
14040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14041 (exit $ac_status); } &&
ffa0583f 14042 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
14043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14044 (eval $ac_try) 2>&5
14045 ac_status=$?
14046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14047 (exit $ac_status); }; } &&
14048 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14050 (eval $ac_try) 2>&5
14051 ac_status=$?
14052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14053 (exit $ac_status); }; }; then
14054 ac_header_compiler=yes
14055else
14056 echo "$as_me: failed program was:" >&5
14057sed 's/^/| /' conftest.$ac_ext >&5
14058
14059ac_header_compiler=no
14060fi
ac1cb8d3 14061rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14062echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14063echo "${ECHO_T}$ac_header_compiler" >&6
14064
14065# Is the header present?
14066echo "$as_me:$LINENO: checking $ac_header presence" >&5
14067echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14068cat >conftest.$ac_ext <<_ACEOF
14069/* confdefs.h. */
14070_ACEOF
14071cat confdefs.h >>conftest.$ac_ext
14072cat >>conftest.$ac_ext <<_ACEOF
14073/* end confdefs.h. */
14074#include <$ac_header>
14075_ACEOF
14076if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14077 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14078 ac_status=$?
14079 grep -v '^ *+' conftest.er1 >conftest.err
14080 rm -f conftest.er1
14081 cat conftest.err >&5
14082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14083 (exit $ac_status); } >/dev/null; then
14084 if test -s conftest.err; then
14085 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 14086 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
14087 else
14088 ac_cpp_err=
14089 fi
14090else
14091 ac_cpp_err=yes
14092fi
14093if test -z "$ac_cpp_err"; then
14094 ac_header_preproc=yes
14095else
14096 echo "$as_me: failed program was:" >&5
14097sed 's/^/| /' conftest.$ac_ext >&5
14098
14099 ac_header_preproc=no
14100fi
14101rm -f conftest.err conftest.$ac_ext
14102echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14103echo "${ECHO_T}$ac_header_preproc" >&6
14104
14105# So? What about this header?
ac1cb8d3
VS
14106case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14107 yes:no: )
a848cd7e
SC
14108 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14109echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
14110 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14111echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14112 ac_header_preproc=yes
a848cd7e 14113 ;;
ac1cb8d3 14114 no:yes:* )
a848cd7e
SC
14115 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14116echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
14117 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14118echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14119 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14120echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14121 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14122echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
14123 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14124echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
14125 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14126echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
14127 (
14128 cat <<\_ASBOX
ac1cb8d3
VS
14129## ----------------------------------------- ##
14130## Report this to wx-dev@lists.wxwidgets.org ##
14131## ----------------------------------------- ##
a848cd7e
SC
14132_ASBOX
14133 ) |
14134 sed "s/^/$as_me: WARNING: /" >&2
14135 ;;
14136esac
14137echo "$as_me:$LINENO: checking for $ac_header" >&5
14138echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14139if eval "test \"\${$as_ac_Header+set}\" = set"; then
14140 echo $ECHO_N "(cached) $ECHO_C" >&6
14141else
ac1cb8d3 14142 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
14143fi
14144echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14145echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14146
14147fi
14148if test `eval echo '${'$as_ac_Header'}'` = yes; then
14149 cat >>confdefs.h <<_ACEOF
14150#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14151_ACEOF
14152
14153fi
14154
14155done
14156
14157
14158for ac_header in X11/XKBlib.h
14159do
14160as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14161echo "$as_me:$LINENO: checking for $ac_header" >&5
14162echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14163if eval "test \"\${$as_ac_Header+set}\" = set"; then
14164 echo $ECHO_N "(cached) $ECHO_C" >&6
14165else
14166 cat >conftest.$ac_ext <<_ACEOF
14167/* confdefs.h. */
14168_ACEOF
14169cat confdefs.h >>conftest.$ac_ext
14170cat >>conftest.$ac_ext <<_ACEOF
14171/* end confdefs.h. */
14172
14173 #if HAVE_X11_XLIB_H
14174 #include <X11/Xlib.h>
14175 #endif
14176
14177
14178#include <$ac_header>
14179_ACEOF
14180rm -f conftest.$ac_objext
14181if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14182 (eval $ac_compile) 2>conftest.er1
a848cd7e 14183 ac_status=$?
ac1cb8d3
VS
14184 grep -v '^ *+' conftest.er1 >conftest.err
14185 rm -f conftest.er1
14186 cat conftest.err >&5
a848cd7e
SC
14187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14188 (exit $ac_status); } &&
ffa0583f 14189 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
14190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14191 (eval $ac_try) 2>&5
14192 ac_status=$?
14193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14194 (exit $ac_status); }; } &&
14195 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14197 (eval $ac_try) 2>&5
14198 ac_status=$?
14199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14200 (exit $ac_status); }; }; then
14201 eval "$as_ac_Header=yes"
14202else
14203 echo "$as_me: failed program was:" >&5
14204sed 's/^/| /' conftest.$ac_ext >&5
14205
14206eval "$as_ac_Header=no"
14207fi
ac1cb8d3 14208rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14209fi
14210echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14211echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14212if test `eval echo '${'$as_ac_Header'}'` = yes; then
14213 cat >>confdefs.h <<_ACEOF
14214#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14215_ACEOF
14216
14217fi
14218
14219done
14220
14221 fi
14222fi
14223
14224
14225echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
14226echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
14227if test "${ac_cv_c_const+set}" = set; then
14228 echo $ECHO_N "(cached) $ECHO_C" >&6
14229else
14230 cat >conftest.$ac_ext <<_ACEOF
14231/* confdefs.h. */
14232_ACEOF
14233cat confdefs.h >>conftest.$ac_ext
14234cat >>conftest.$ac_ext <<_ACEOF
14235/* end confdefs.h. */
14236
14237int
14238main ()
14239{
14240/* FIXME: Include the comments suggested by Paul. */
14241#ifndef __cplusplus
14242 /* Ultrix mips cc rejects this. */
14243 typedef int charset[2];
14244 const charset x;
14245 /* SunOS 4.1.1 cc rejects this. */
14246 char const *const *ccp;
14247 char **p;
14248 /* NEC SVR4.0.2 mips cc rejects this. */
14249 struct point {int x, y;};
14250 static struct point const zero = {0,0};
14251 /* AIX XL C 1.02.0.0 rejects this.
14252 It does not let you subtract one const X* pointer from another in
14253 an arm of an if-expression whose if-part is not a constant
14254 expression */
14255 const char *g = "string";
14256 ccp = &g + (g ? g-g : 0);
14257 /* HPUX 7.0 cc rejects these. */
14258 ++ccp;
14259 p = (char**) ccp;
14260 ccp = (char const *const *) p;
14261 { /* SCO 3.2v4 cc rejects this. */
14262 char *t;
14263 char const *s = 0 ? (char *) 0 : (char const *) 0;
14264
14265 *t++ = 0;
14266 }
14267 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
14268 int x[] = {25, 17};
14269 const int *foo = &x[0];
14270 ++foo;
14271 }
14272 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
14273 typedef const int *iptr;
14274 iptr p = 0;
14275 ++p;
14276 }
14277 { /* AIX XL C 1.02.0.0 rejects this saying
14278 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
14279 struct s { int j; const int *ap[3]; };
14280 struct s *b; b->j = 5;
14281 }
14282 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
14283 const int foo = 10;
14284 }
14285#endif
14286
14287 ;
14288 return 0;
14289}
14290_ACEOF
14291rm -f conftest.$ac_objext
14292if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14293 (eval $ac_compile) 2>conftest.er1
a848cd7e 14294 ac_status=$?
ac1cb8d3
VS
14295 grep -v '^ *+' conftest.er1 >conftest.err
14296 rm -f conftest.er1
14297 cat conftest.err >&5
a848cd7e
SC
14298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14299 (exit $ac_status); } &&
ffa0583f 14300 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
14301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14302 (eval $ac_try) 2>&5
14303 ac_status=$?
14304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14305 (exit $ac_status); }; } &&
14306 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14308 (eval $ac_try) 2>&5
14309 ac_status=$?
14310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14311 (exit $ac_status); }; }; then
14312 ac_cv_c_const=yes
14313else
14314 echo "$as_me: failed program was:" >&5
14315sed 's/^/| /' conftest.$ac_ext >&5
14316
14317ac_cv_c_const=no
14318fi
ac1cb8d3 14319rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14320fi
14321echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
14322echo "${ECHO_T}$ac_cv_c_const" >&6
14323if test $ac_cv_c_const = no; then
14324
14325cat >>confdefs.h <<\_ACEOF
14326#define const
14327_ACEOF
14328
14329fi
14330
14331echo "$as_me:$LINENO: checking for inline" >&5
14332echo $ECHO_N "checking for inline... $ECHO_C" >&6
14333if test "${ac_cv_c_inline+set}" = set; then
14334 echo $ECHO_N "(cached) $ECHO_C" >&6
14335else
14336 ac_cv_c_inline=no
14337for ac_kw in inline __inline__ __inline; do
14338 cat >conftest.$ac_ext <<_ACEOF
14339/* confdefs.h. */
14340_ACEOF
14341cat confdefs.h >>conftest.$ac_ext
14342cat >>conftest.$ac_ext <<_ACEOF
14343/* end confdefs.h. */
14344#ifndef __cplusplus
14345typedef int foo_t;
14346static $ac_kw foo_t static_foo () {return 0; }
14347$ac_kw foo_t foo () {return 0; }
14348#endif
14349
14350_ACEOF
14351rm -f conftest.$ac_objext
14352if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14353 (eval $ac_compile) 2>conftest.er1
a848cd7e 14354 ac_status=$?
ac1cb8d3
VS
14355 grep -v '^ *+' conftest.er1 >conftest.err
14356 rm -f conftest.er1
14357 cat conftest.err >&5
a848cd7e
SC
14358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14359 (exit $ac_status); } &&
ffa0583f 14360 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
14361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14362 (eval $ac_try) 2>&5
14363 ac_status=$?
14364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14365 (exit $ac_status); }; } &&
14366 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14368 (eval $ac_try) 2>&5
14369 ac_status=$?
14370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14371 (exit $ac_status); }; }; then
14372 ac_cv_c_inline=$ac_kw; break
14373else
14374 echo "$as_me: failed program was:" >&5
14375sed 's/^/| /' conftest.$ac_ext >&5
14376
14377fi
ac1cb8d3 14378rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14379done
14380
14381fi
14382echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
14383echo "${ECHO_T}$ac_cv_c_inline" >&6
ac1cb8d3
VS
14384
14385
a848cd7e
SC
14386case $ac_cv_c_inline in
14387 inline | yes) ;;
ac1cb8d3
VS
14388 *)
14389 case $ac_cv_c_inline in
14390 no) ac_val=;;
14391 *) ac_val=$ac_cv_c_inline;;
14392 esac
14393 cat >>confdefs.h <<_ACEOF
14394#ifndef __cplusplus
14395#define inline $ac_val
14396#endif
de59c161 14397_ACEOF
ac1cb8d3 14398 ;;
a848cd7e
SC
14399esac
14400
14401
14402echo "$as_me:$LINENO: checking for char" >&5
14403echo $ECHO_N "checking for char... $ECHO_C" >&6
14404if test "${ac_cv_type_char+set}" = set; then
14405 echo $ECHO_N "(cached) $ECHO_C" >&6
14406else
14407 cat >conftest.$ac_ext <<_ACEOF
14408/* confdefs.h. */
14409_ACEOF
14410cat confdefs.h >>conftest.$ac_ext
14411cat >>conftest.$ac_ext <<_ACEOF
14412/* end confdefs.h. */
14413$ac_includes_default
14414int
14415main ()
14416{
14417if ((char *) 0)
14418 return 0;
14419if (sizeof (char))
14420 return 0;
14421 ;
14422 return 0;
14423}
14424_ACEOF
14425rm -f conftest.$ac_objext
14426if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14427 (eval $ac_compile) 2>conftest.er1
a848cd7e 14428 ac_status=$?
ac1cb8d3
VS
14429 grep -v '^ *+' conftest.er1 >conftest.err
14430 rm -f conftest.er1
14431 cat conftest.err >&5
a848cd7e
SC
14432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14433 (exit $ac_status); } &&
ffa0583f 14434 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
14435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14436 (eval $ac_try) 2>&5
14437 ac_status=$?
14438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14439 (exit $ac_status); }; } &&
14440 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14442 (eval $ac_try) 2>&5
14443 ac_status=$?
14444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14445 (exit $ac_status); }; }; then
14446 ac_cv_type_char=yes
14447else
14448 echo "$as_me: failed program was:" >&5
14449sed 's/^/| /' conftest.$ac_ext >&5
14450
14451ac_cv_type_char=no
14452fi
ac1cb8d3 14453rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14454fi
14455echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
14456echo "${ECHO_T}$ac_cv_type_char" >&6
14457
14458echo "$as_me:$LINENO: checking size of char" >&5
14459echo $ECHO_N "checking size of char... $ECHO_C" >&6
14460if test "${ac_cv_sizeof_char+set}" = set; then
14461 echo $ECHO_N "(cached) $ECHO_C" >&6
14462else
14463 if test "$ac_cv_type_char" = yes; then
14464 # The cast to unsigned long works around a bug in the HP C Compiler
14465 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14466 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14467 # This bug is HP SR number 8606223364.
14468 if test "$cross_compiling" = yes; then
14469 # Depending upon the size, compute the lo and hi bounds.
14470cat >conftest.$ac_ext <<_ACEOF
14471/* confdefs.h. */
14472_ACEOF
14473cat confdefs.h >>conftest.$ac_ext
14474cat >>conftest.$ac_ext <<_ACEOF
14475/* end confdefs.h. */
14476$ac_includes_default
14477int
14478main ()
14479{
14480static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
14481test_array [0] = 0
14482
14483 ;
14484 return 0;
14485}
14486_ACEOF
14487rm -f conftest.$ac_objext
14488if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14489 (eval $ac_compile) 2>conftest.er1
a848cd7e 14490 ac_status=$?
ac1cb8d3
VS
14491 grep -v '^ *+' conftest.er1 >conftest.err
14492 rm -f conftest.er1
14493 cat conftest.err >&5
a848cd7e
SC
14494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14495 (exit $ac_status); } &&
ffa0583f 14496 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
14497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14498 (eval $ac_try) 2>&5
14499 ac_status=$?
14500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14501 (exit $ac_status); }; } &&
14502 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14504 (eval $ac_try) 2>&5
14505 ac_status=$?
14506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14507 (exit $ac_status); }; }; then
14508 ac_lo=0 ac_mid=0
14509 while :; do
14510 cat >conftest.$ac_ext <<_ACEOF
14511/* confdefs.h. */
14512_ACEOF
14513cat confdefs.h >>conftest.$ac_ext
14514cat >>conftest.$ac_ext <<_ACEOF
14515/* end confdefs.h. */
14516$ac_includes_default
14517int
14518main ()
14519{
14520static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
14521test_array [0] = 0
14522
14523 ;
14524 return 0;
14525}
14526_ACEOF
14527rm -f conftest.$ac_objext
14528if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14529 (eval $ac_compile) 2>conftest.er1
a848cd7e 14530 ac_status=$?
ac1cb8d3
VS
14531 grep -v '^ *+' conftest.er1 >conftest.err
14532 rm -f conftest.er1
14533 cat conftest.err >&5
a848cd7e
SC
14534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14535 (exit $ac_status); } &&
ffa0583f 14536 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
14537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14538 (eval $ac_try) 2>&5
14539 ac_status=$?
14540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14541 (exit $ac_status); }; } &&
14542 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14544 (eval $ac_try) 2>&5
14545 ac_status=$?
14546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14547 (exit $ac_status); }; }; then
14548 ac_hi=$ac_mid; break
14549else
14550 echo "$as_me: failed program was:" >&5
14551sed 's/^/| /' conftest.$ac_ext >&5
14552
14553ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
14554 if test $ac_lo -le $ac_mid; then
14555 ac_lo= ac_hi=
14556 break
14557 fi
14558 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 14559fi
ac1cb8d3 14560rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14561 done
14562else
14563 echo "$as_me: failed program was:" >&5
14564sed 's/^/| /' conftest.$ac_ext >&5
14565
14566cat >conftest.$ac_ext <<_ACEOF
14567/* confdefs.h. */
14568_ACEOF
14569cat confdefs.h >>conftest.$ac_ext
14570cat >>conftest.$ac_ext <<_ACEOF
14571/* end confdefs.h. */
14572$ac_includes_default
14573int
14574main ()
14575{
14576static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
14577test_array [0] = 0
14578
14579 ;
14580 return 0;
14581}
14582_ACEOF
14583rm -f conftest.$ac_objext
14584if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14585 (eval $ac_compile) 2>conftest.er1
a848cd7e 14586 ac_status=$?
ac1cb8d3
VS
14587 grep -v '^ *+' conftest.er1 >conftest.err
14588 rm -f conftest.er1
14589 cat conftest.err >&5
a848cd7e
SC
14590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14591 (exit $ac_status); } &&
ffa0583f 14592 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
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); }; } &&
14598 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14600 (eval $ac_try) 2>&5
14601 ac_status=$?
14602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14603 (exit $ac_status); }; }; then
14604 ac_hi=-1 ac_mid=-1
14605 while :; do
14606 cat >conftest.$ac_ext <<_ACEOF
14607/* confdefs.h. */
14608_ACEOF
14609cat confdefs.h >>conftest.$ac_ext
14610cat >>conftest.$ac_ext <<_ACEOF
14611/* end confdefs.h. */
14612$ac_includes_default
14613int
14614main ()
14615{
14616static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
14617test_array [0] = 0
14618
14619 ;
14620 return 0;
14621}
14622_ACEOF
14623rm -f conftest.$ac_objext
14624if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14625 (eval $ac_compile) 2>conftest.er1
a848cd7e 14626 ac_status=$?
ac1cb8d3
VS
14627 grep -v '^ *+' conftest.er1 >conftest.err
14628 rm -f conftest.er1
14629 cat conftest.err >&5
a848cd7e
SC
14630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14631 (exit $ac_status); } &&
ffa0583f 14632 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
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); }; } &&
14638 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14640 (eval $ac_try) 2>&5
14641 ac_status=$?
14642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14643 (exit $ac_status); }; }; then
14644 ac_lo=$ac_mid; break
14645else
14646 echo "$as_me: failed program was:" >&5
14647sed 's/^/| /' conftest.$ac_ext >&5
14648
14649ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
14650 if test $ac_mid -le $ac_hi; then
14651 ac_lo= ac_hi=
14652 break
14653 fi
14654 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 14655fi
ac1cb8d3 14656rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14657 done
14658else
14659 echo "$as_me: failed program was:" >&5
14660sed 's/^/| /' conftest.$ac_ext >&5
14661
14662ac_lo= ac_hi=
14663fi
ac1cb8d3 14664rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 14665fi
ac1cb8d3 14666rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14667# Binary search between lo and hi bounds.
14668while test "x$ac_lo" != "x$ac_hi"; do
14669 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14670 cat >conftest.$ac_ext <<_ACEOF
14671/* confdefs.h. */
14672_ACEOF
14673cat confdefs.h >>conftest.$ac_ext
14674cat >>conftest.$ac_ext <<_ACEOF
14675/* end confdefs.h. */
14676$ac_includes_default
14677int
14678main ()
14679{
14680static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
14681test_array [0] = 0
14682
14683 ;
14684 return 0;
14685}
14686_ACEOF
14687rm -f conftest.$ac_objext
14688if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14689 (eval $ac_compile) 2>conftest.er1
a848cd7e 14690 ac_status=$?
ac1cb8d3
VS
14691 grep -v '^ *+' conftest.er1 >conftest.err
14692 rm -f conftest.er1
14693 cat conftest.err >&5
a848cd7e
SC
14694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14695 (exit $ac_status); } &&
ffa0583f 14696 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
14697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14698 (eval $ac_try) 2>&5
14699 ac_status=$?
14700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14701 (exit $ac_status); }; } &&
14702 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14704 (eval $ac_try) 2>&5
14705 ac_status=$?
14706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14707 (exit $ac_status); }; }; then
14708 ac_hi=$ac_mid
14709else
14710 echo "$as_me: failed program was:" >&5
14711sed 's/^/| /' conftest.$ac_ext >&5
14712
14713ac_lo=`expr '(' $ac_mid ')' + 1`
14714fi
ac1cb8d3 14715rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14716done
14717case $ac_lo in
14718?*) ac_cv_sizeof_char=$ac_lo;;
14719'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
14720See \`config.log' for more details." >&5
14721echo "$as_me: error: cannot compute sizeof (char), 77
14722See \`config.log' for more details." >&2;}
14723 { (exit 1); exit 1; }; } ;;
14724esac
14725else
14726 if test "$cross_compiling" = yes; then
ffa0583f
RL
14727 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
14728echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
14729 { (exit 1); exit 1; }; }
14730else
14731 cat >conftest.$ac_ext <<_ACEOF
14732/* confdefs.h. */
14733_ACEOF
14734cat confdefs.h >>conftest.$ac_ext
14735cat >>conftest.$ac_ext <<_ACEOF
14736/* end confdefs.h. */
14737$ac_includes_default
14738long longval () { return (long) (sizeof (char)); }
14739unsigned long ulongval () { return (long) (sizeof (char)); }
14740#include <stdio.h>
14741#include <stdlib.h>
14742int
14743main ()
14744{
14745
14746 FILE *f = fopen ("conftest.val", "w");
14747 if (! f)
14748 exit (1);
14749 if (((long) (sizeof (char))) < 0)
14750 {
14751 long i = longval ();
14752 if (i != ((long) (sizeof (char))))
14753 exit (1);
14754 fprintf (f, "%ld\n", i);
14755 }
14756 else
14757 {
14758 unsigned long i = ulongval ();
14759 if (i != ((long) (sizeof (char))))
14760 exit (1);
14761 fprintf (f, "%lu\n", i);
14762 }
14763 exit (ferror (f) || fclose (f) != 0);
14764
14765 ;
14766 return 0;
14767}
14768_ACEOF
14769rm -f conftest$ac_exeext
14770if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14771 (eval $ac_link) 2>&5
14772 ac_status=$?
14773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14774 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14776 (eval $ac_try) 2>&5
14777 ac_status=$?
14778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14779 (exit $ac_status); }; }; then
14780 ac_cv_sizeof_char=`cat conftest.val`
14781else
14782 echo "$as_me: program exited with status $ac_status" >&5
14783echo "$as_me: failed program was:" >&5
14784sed 's/^/| /' conftest.$ac_ext >&5
14785
14786( exit $ac_status )
14787{ { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
14788See \`config.log' for more details." >&5
14789echo "$as_me: error: cannot compute sizeof (char), 77
14790See \`config.log' for more details." >&2;}
14791 { (exit 1); exit 1; }; }
14792fi
ac1cb8d3 14793rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14794fi
14795fi
14796rm -f conftest.val
14797else
14798 ac_cv_sizeof_char=0
14799fi
14800fi
14801echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
14802echo "${ECHO_T}$ac_cv_sizeof_char" >&6
14803cat >>confdefs.h <<_ACEOF
14804#define SIZEOF_CHAR $ac_cv_sizeof_char
14805_ACEOF
14806
14807
14808echo "$as_me:$LINENO: checking for short" >&5
14809echo $ECHO_N "checking for short... $ECHO_C" >&6
14810if test "${ac_cv_type_short+set}" = set; then
14811 echo $ECHO_N "(cached) $ECHO_C" >&6
14812else
14813 cat >conftest.$ac_ext <<_ACEOF
14814/* confdefs.h. */
14815_ACEOF
14816cat confdefs.h >>conftest.$ac_ext
14817cat >>conftest.$ac_ext <<_ACEOF
14818/* end confdefs.h. */
14819$ac_includes_default
14820int
14821main ()
14822{
14823if ((short *) 0)
14824 return 0;
14825if (sizeof (short))
14826 return 0;
14827 ;
14828 return 0;
14829}
14830_ACEOF
14831rm -f conftest.$ac_objext
14832if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14833 (eval $ac_compile) 2>conftest.er1
a848cd7e 14834 ac_status=$?
ac1cb8d3
VS
14835 grep -v '^ *+' conftest.er1 >conftest.err
14836 rm -f conftest.er1
14837 cat conftest.err >&5
a848cd7e
SC
14838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14839 (exit $ac_status); } &&
ffa0583f 14840 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
14841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14842 (eval $ac_try) 2>&5
14843 ac_status=$?
14844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14845 (exit $ac_status); }; } &&
14846 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14848 (eval $ac_try) 2>&5
14849 ac_status=$?
14850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14851 (exit $ac_status); }; }; then
14852 ac_cv_type_short=yes
14853else
14854 echo "$as_me: failed program was:" >&5
14855sed 's/^/| /' conftest.$ac_ext >&5
14856
14857ac_cv_type_short=no
14858fi
ac1cb8d3 14859rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14860fi
14861echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
14862echo "${ECHO_T}$ac_cv_type_short" >&6
14863
14864echo "$as_me:$LINENO: checking size of short" >&5
14865echo $ECHO_N "checking size of short... $ECHO_C" >&6
14866if test "${ac_cv_sizeof_short+set}" = set; then
14867 echo $ECHO_N "(cached) $ECHO_C" >&6
14868else
14869 if test "$ac_cv_type_short" = yes; then
14870 # The cast to unsigned long works around a bug in the HP C Compiler
14871 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14872 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14873 # This bug is HP SR number 8606223364.
14874 if test "$cross_compiling" = yes; then
14875 # Depending upon the size, compute the lo and hi bounds.
14876cat >conftest.$ac_ext <<_ACEOF
14877/* confdefs.h. */
14878_ACEOF
14879cat confdefs.h >>conftest.$ac_ext
14880cat >>conftest.$ac_ext <<_ACEOF
14881/* end confdefs.h. */
14882$ac_includes_default
14883int
14884main ()
14885{
14886static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
14887test_array [0] = 0
14888
14889 ;
14890 return 0;
14891}
14892_ACEOF
14893rm -f conftest.$ac_objext
14894if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14895 (eval $ac_compile) 2>conftest.er1
a848cd7e 14896 ac_status=$?
ac1cb8d3
VS
14897 grep -v '^ *+' conftest.er1 >conftest.err
14898 rm -f conftest.er1
14899 cat conftest.err >&5
a848cd7e
SC
14900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14901 (exit $ac_status); } &&
ffa0583f 14902 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
14903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14904 (eval $ac_try) 2>&5
14905 ac_status=$?
14906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14907 (exit $ac_status); }; } &&
14908 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14910 (eval $ac_try) 2>&5
14911 ac_status=$?
14912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14913 (exit $ac_status); }; }; then
14914 ac_lo=0 ac_mid=0
14915 while :; do
14916 cat >conftest.$ac_ext <<_ACEOF
14917/* confdefs.h. */
14918_ACEOF
14919cat confdefs.h >>conftest.$ac_ext
14920cat >>conftest.$ac_ext <<_ACEOF
14921/* end confdefs.h. */
14922$ac_includes_default
14923int
14924main ()
14925{
14926static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
14927test_array [0] = 0
14928
14929 ;
14930 return 0;
14931}
14932_ACEOF
14933rm -f conftest.$ac_objext
14934if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14935 (eval $ac_compile) 2>conftest.er1
a848cd7e 14936 ac_status=$?
ac1cb8d3
VS
14937 grep -v '^ *+' conftest.er1 >conftest.err
14938 rm -f conftest.er1
14939 cat conftest.err >&5
a848cd7e
SC
14940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14941 (exit $ac_status); } &&
ffa0583f 14942 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
14943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14944 (eval $ac_try) 2>&5
14945 ac_status=$?
14946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14947 (exit $ac_status); }; } &&
14948 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14950 (eval $ac_try) 2>&5
14951 ac_status=$?
14952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14953 (exit $ac_status); }; }; then
14954 ac_hi=$ac_mid; break
14955else
14956 echo "$as_me: failed program was:" >&5
14957sed 's/^/| /' conftest.$ac_ext >&5
14958
14959ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
14960 if test $ac_lo -le $ac_mid; then
14961 ac_lo= ac_hi=
14962 break
14963 fi
14964 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 14965fi
ac1cb8d3 14966rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14967 done
14968else
14969 echo "$as_me: failed program was:" >&5
14970sed 's/^/| /' conftest.$ac_ext >&5
14971
14972cat >conftest.$ac_ext <<_ACEOF
14973/* confdefs.h. */
14974_ACEOF
14975cat confdefs.h >>conftest.$ac_ext
14976cat >>conftest.$ac_ext <<_ACEOF
14977/* end confdefs.h. */
14978$ac_includes_default
14979int
14980main ()
14981{
14982static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
14983test_array [0] = 0
14984
14985 ;
14986 return 0;
14987}
14988_ACEOF
14989rm -f conftest.$ac_objext
14990if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14991 (eval $ac_compile) 2>conftest.er1
a848cd7e 14992 ac_status=$?
ac1cb8d3
VS
14993 grep -v '^ *+' conftest.er1 >conftest.err
14994 rm -f conftest.er1
14995 cat conftest.err >&5
a848cd7e
SC
14996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14997 (exit $ac_status); } &&
ffa0583f 14998 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
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); }; } &&
15004 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15006 (eval $ac_try) 2>&5
15007 ac_status=$?
15008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15009 (exit $ac_status); }; }; then
15010 ac_hi=-1 ac_mid=-1
15011 while :; do
15012 cat >conftest.$ac_ext <<_ACEOF
15013/* confdefs.h. */
15014_ACEOF
15015cat confdefs.h >>conftest.$ac_ext
15016cat >>conftest.$ac_ext <<_ACEOF
15017/* end confdefs.h. */
15018$ac_includes_default
15019int
15020main ()
15021{
15022static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
15023test_array [0] = 0
15024
15025 ;
15026 return 0;
15027}
15028_ACEOF
15029rm -f conftest.$ac_objext
15030if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15031 (eval $ac_compile) 2>conftest.er1
a848cd7e 15032 ac_status=$?
ac1cb8d3
VS
15033 grep -v '^ *+' conftest.er1 >conftest.err
15034 rm -f conftest.er1
15035 cat conftest.err >&5
a848cd7e
SC
15036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15037 (exit $ac_status); } &&
ffa0583f 15038 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
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); }; } &&
15044 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15046 (eval $ac_try) 2>&5
15047 ac_status=$?
15048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15049 (exit $ac_status); }; }; then
15050 ac_lo=$ac_mid; break
15051else
15052 echo "$as_me: failed program was:" >&5
15053sed 's/^/| /' conftest.$ac_ext >&5
15054
15055ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
15056 if test $ac_mid -le $ac_hi; then
15057 ac_lo= ac_hi=
15058 break
15059 fi
15060 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 15061fi
ac1cb8d3 15062rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15063 done
15064else
15065 echo "$as_me: failed program was:" >&5
15066sed 's/^/| /' conftest.$ac_ext >&5
15067
15068ac_lo= ac_hi=
15069fi
ac1cb8d3 15070rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 15071fi
ac1cb8d3 15072rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15073# Binary search between lo and hi bounds.
15074while test "x$ac_lo" != "x$ac_hi"; do
15075 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15076 cat >conftest.$ac_ext <<_ACEOF
15077/* confdefs.h. */
15078_ACEOF
15079cat confdefs.h >>conftest.$ac_ext
15080cat >>conftest.$ac_ext <<_ACEOF
15081/* end confdefs.h. */
15082$ac_includes_default
15083int
15084main ()
15085{
15086static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
15087test_array [0] = 0
15088
15089 ;
15090 return 0;
15091}
15092_ACEOF
15093rm -f conftest.$ac_objext
15094if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15095 (eval $ac_compile) 2>conftest.er1
a848cd7e 15096 ac_status=$?
ac1cb8d3
VS
15097 grep -v '^ *+' conftest.er1 >conftest.err
15098 rm -f conftest.er1
15099 cat conftest.err >&5
a848cd7e
SC
15100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15101 (exit $ac_status); } &&
ffa0583f 15102 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15104 (eval $ac_try) 2>&5
15105 ac_status=$?
15106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15107 (exit $ac_status); }; } &&
15108 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15110 (eval $ac_try) 2>&5
15111 ac_status=$?
15112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15113 (exit $ac_status); }; }; then
15114 ac_hi=$ac_mid
15115else
15116 echo "$as_me: failed program was:" >&5
15117sed 's/^/| /' conftest.$ac_ext >&5
15118
15119ac_lo=`expr '(' $ac_mid ')' + 1`
15120fi
ac1cb8d3 15121rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15122done
15123case $ac_lo in
15124?*) ac_cv_sizeof_short=$ac_lo;;
15125'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
15126See \`config.log' for more details." >&5
15127echo "$as_me: error: cannot compute sizeof (short), 77
15128See \`config.log' for more details." >&2;}
15129 { (exit 1); exit 1; }; } ;;
15130esac
15131else
15132 if test "$cross_compiling" = yes; then
ffa0583f
RL
15133 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
15134echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
15135 { (exit 1); exit 1; }; }
15136else
15137 cat >conftest.$ac_ext <<_ACEOF
15138/* confdefs.h. */
15139_ACEOF
15140cat confdefs.h >>conftest.$ac_ext
15141cat >>conftest.$ac_ext <<_ACEOF
15142/* end confdefs.h. */
15143$ac_includes_default
15144long longval () { return (long) (sizeof (short)); }
15145unsigned long ulongval () { return (long) (sizeof (short)); }
15146#include <stdio.h>
15147#include <stdlib.h>
15148int
15149main ()
15150{
15151
15152 FILE *f = fopen ("conftest.val", "w");
15153 if (! f)
15154 exit (1);
15155 if (((long) (sizeof (short))) < 0)
15156 {
15157 long i = longval ();
15158 if (i != ((long) (sizeof (short))))
15159 exit (1);
15160 fprintf (f, "%ld\n", i);
15161 }
15162 else
15163 {
15164 unsigned long i = ulongval ();
15165 if (i != ((long) (sizeof (short))))
15166 exit (1);
15167 fprintf (f, "%lu\n", i);
15168 }
15169 exit (ferror (f) || fclose (f) != 0);
15170
15171 ;
15172 return 0;
15173}
15174_ACEOF
15175rm -f conftest$ac_exeext
15176if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15177 (eval $ac_link) 2>&5
15178 ac_status=$?
15179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15180 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15182 (eval $ac_try) 2>&5
15183 ac_status=$?
15184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15185 (exit $ac_status); }; }; then
15186 ac_cv_sizeof_short=`cat conftest.val`
15187else
15188 echo "$as_me: program exited with status $ac_status" >&5
15189echo "$as_me: failed program was:" >&5
15190sed 's/^/| /' conftest.$ac_ext >&5
15191
15192( exit $ac_status )
15193{ { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
15194See \`config.log' for more details." >&5
15195echo "$as_me: error: cannot compute sizeof (short), 77
15196See \`config.log' for more details." >&2;}
15197 { (exit 1); exit 1; }; }
15198fi
ac1cb8d3 15199rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15200fi
15201fi
15202rm -f conftest.val
15203else
15204 ac_cv_sizeof_short=0
15205fi
15206fi
15207echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
15208echo "${ECHO_T}$ac_cv_sizeof_short" >&6
15209cat >>confdefs.h <<_ACEOF
15210#define SIZEOF_SHORT $ac_cv_sizeof_short
15211_ACEOF
15212
15213
15214echo "$as_me:$LINENO: checking for void *" >&5
15215echo $ECHO_N "checking for void *... $ECHO_C" >&6
15216if test "${ac_cv_type_void_p+set}" = set; then
15217 echo $ECHO_N "(cached) $ECHO_C" >&6
15218else
15219 cat >conftest.$ac_ext <<_ACEOF
15220/* confdefs.h. */
15221_ACEOF
15222cat confdefs.h >>conftest.$ac_ext
15223cat >>conftest.$ac_ext <<_ACEOF
15224/* end confdefs.h. */
15225$ac_includes_default
15226int
15227main ()
15228{
15229if ((void * *) 0)
15230 return 0;
15231if (sizeof (void *))
15232 return 0;
15233 ;
15234 return 0;
15235}
15236_ACEOF
15237rm -f conftest.$ac_objext
15238if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15239 (eval $ac_compile) 2>conftest.er1
a848cd7e 15240 ac_status=$?
ac1cb8d3
VS
15241 grep -v '^ *+' conftest.er1 >conftest.err
15242 rm -f conftest.er1
15243 cat conftest.err >&5
a848cd7e
SC
15244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15245 (exit $ac_status); } &&
ffa0583f 15246 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15248 (eval $ac_try) 2>&5
15249 ac_status=$?
15250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15251 (exit $ac_status); }; } &&
15252 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15254 (eval $ac_try) 2>&5
15255 ac_status=$?
15256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15257 (exit $ac_status); }; }; then
15258 ac_cv_type_void_p=yes
15259else
15260 echo "$as_me: failed program was:" >&5
15261sed 's/^/| /' conftest.$ac_ext >&5
15262
15263ac_cv_type_void_p=no
15264fi
ac1cb8d3 15265rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15266fi
15267echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
15268echo "${ECHO_T}$ac_cv_type_void_p" >&6
15269
15270echo "$as_me:$LINENO: checking size of void *" >&5
15271echo $ECHO_N "checking size of void *... $ECHO_C" >&6
15272if test "${ac_cv_sizeof_void_p+set}" = set; then
15273 echo $ECHO_N "(cached) $ECHO_C" >&6
15274else
15275 if test "$ac_cv_type_void_p" = yes; then
15276 # The cast to unsigned long works around a bug in the HP C Compiler
15277 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15278 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15279 # This bug is HP SR number 8606223364.
15280 if test "$cross_compiling" = yes; then
15281 # Depending upon the size, compute the lo and hi bounds.
15282cat >conftest.$ac_ext <<_ACEOF
15283/* confdefs.h. */
15284_ACEOF
15285cat confdefs.h >>conftest.$ac_ext
15286cat >>conftest.$ac_ext <<_ACEOF
15287/* end confdefs.h. */
15288$ac_includes_default
15289int
15290main ()
15291{
15292static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
15293test_array [0] = 0
15294
15295 ;
15296 return 0;
15297}
15298_ACEOF
15299rm -f conftest.$ac_objext
15300if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15301 (eval $ac_compile) 2>conftest.er1
a848cd7e 15302 ac_status=$?
ac1cb8d3
VS
15303 grep -v '^ *+' conftest.er1 >conftest.err
15304 rm -f conftest.er1
15305 cat conftest.err >&5
a848cd7e
SC
15306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15307 (exit $ac_status); } &&
ffa0583f 15308 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15310 (eval $ac_try) 2>&5
15311 ac_status=$?
15312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15313 (exit $ac_status); }; } &&
15314 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15316 (eval $ac_try) 2>&5
15317 ac_status=$?
15318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15319 (exit $ac_status); }; }; then
15320 ac_lo=0 ac_mid=0
15321 while :; do
15322 cat >conftest.$ac_ext <<_ACEOF
15323/* confdefs.h. */
15324_ACEOF
15325cat confdefs.h >>conftest.$ac_ext
15326cat >>conftest.$ac_ext <<_ACEOF
15327/* end confdefs.h. */
15328$ac_includes_default
15329int
15330main ()
15331{
15332static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
15333test_array [0] = 0
15334
15335 ;
15336 return 0;
15337}
15338_ACEOF
15339rm -f conftest.$ac_objext
15340if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15341 (eval $ac_compile) 2>conftest.er1
a848cd7e 15342 ac_status=$?
ac1cb8d3
VS
15343 grep -v '^ *+' conftest.er1 >conftest.err
15344 rm -f conftest.er1
15345 cat conftest.err >&5
a848cd7e
SC
15346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15347 (exit $ac_status); } &&
ffa0583f 15348 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15350 (eval $ac_try) 2>&5
15351 ac_status=$?
15352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15353 (exit $ac_status); }; } &&
15354 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15356 (eval $ac_try) 2>&5
15357 ac_status=$?
15358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15359 (exit $ac_status); }; }; then
15360 ac_hi=$ac_mid; break
15361else
15362 echo "$as_me: failed program was:" >&5
15363sed 's/^/| /' conftest.$ac_ext >&5
15364
15365ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
15366 if test $ac_lo -le $ac_mid; then
15367 ac_lo= ac_hi=
15368 break
15369 fi
15370 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 15371fi
ac1cb8d3 15372rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15373 done
15374else
15375 echo "$as_me: failed program was:" >&5
15376sed 's/^/| /' conftest.$ac_ext >&5
15377
15378cat >conftest.$ac_ext <<_ACEOF
15379/* confdefs.h. */
15380_ACEOF
15381cat confdefs.h >>conftest.$ac_ext
15382cat >>conftest.$ac_ext <<_ACEOF
15383/* end confdefs.h. */
15384$ac_includes_default
15385int
15386main ()
15387{
15388static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
15389test_array [0] = 0
15390
15391 ;
15392 return 0;
15393}
15394_ACEOF
15395rm -f conftest.$ac_objext
15396if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15397 (eval $ac_compile) 2>conftest.er1
a848cd7e 15398 ac_status=$?
ac1cb8d3
VS
15399 grep -v '^ *+' conftest.er1 >conftest.err
15400 rm -f conftest.er1
15401 cat conftest.err >&5
a848cd7e
SC
15402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15403 (exit $ac_status); } &&
ffa0583f 15404 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
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); }; } &&
15410 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15412 (eval $ac_try) 2>&5
15413 ac_status=$?
15414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15415 (exit $ac_status); }; }; then
15416 ac_hi=-1 ac_mid=-1
15417 while :; do
15418 cat >conftest.$ac_ext <<_ACEOF
15419/* confdefs.h. */
15420_ACEOF
15421cat confdefs.h >>conftest.$ac_ext
15422cat >>conftest.$ac_ext <<_ACEOF
15423/* end confdefs.h. */
15424$ac_includes_default
15425int
15426main ()
15427{
15428static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
15429test_array [0] = 0
15430
15431 ;
15432 return 0;
15433}
15434_ACEOF
15435rm -f conftest.$ac_objext
15436if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15437 (eval $ac_compile) 2>conftest.er1
a848cd7e 15438 ac_status=$?
ac1cb8d3
VS
15439 grep -v '^ *+' conftest.er1 >conftest.err
15440 rm -f conftest.er1
15441 cat conftest.err >&5
a848cd7e
SC
15442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15443 (exit $ac_status); } &&
ffa0583f 15444 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
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); }; } &&
15450 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15452 (eval $ac_try) 2>&5
15453 ac_status=$?
15454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15455 (exit $ac_status); }; }; then
15456 ac_lo=$ac_mid; break
15457else
15458 echo "$as_me: failed program was:" >&5
15459sed 's/^/| /' conftest.$ac_ext >&5
15460
15461ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
15462 if test $ac_mid -le $ac_hi; then
15463 ac_lo= ac_hi=
15464 break
15465 fi
15466 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 15467fi
ac1cb8d3 15468rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15469 done
15470else
15471 echo "$as_me: failed program was:" >&5
15472sed 's/^/| /' conftest.$ac_ext >&5
15473
15474ac_lo= ac_hi=
15475fi
ac1cb8d3 15476rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 15477fi
ac1cb8d3 15478rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15479# Binary search between lo and hi bounds.
15480while test "x$ac_lo" != "x$ac_hi"; do
15481 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15482 cat >conftest.$ac_ext <<_ACEOF
15483/* confdefs.h. */
15484_ACEOF
15485cat confdefs.h >>conftest.$ac_ext
15486cat >>conftest.$ac_ext <<_ACEOF
15487/* end confdefs.h. */
15488$ac_includes_default
15489int
15490main ()
15491{
15492static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
15493test_array [0] = 0
15494
15495 ;
15496 return 0;
15497}
15498_ACEOF
15499rm -f conftest.$ac_objext
15500if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15501 (eval $ac_compile) 2>conftest.er1
a848cd7e 15502 ac_status=$?
ac1cb8d3
VS
15503 grep -v '^ *+' conftest.er1 >conftest.err
15504 rm -f conftest.er1
15505 cat conftest.err >&5
a848cd7e
SC
15506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15507 (exit $ac_status); } &&
ffa0583f 15508 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15510 (eval $ac_try) 2>&5
15511 ac_status=$?
15512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15513 (exit $ac_status); }; } &&
15514 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15516 (eval $ac_try) 2>&5
15517 ac_status=$?
15518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15519 (exit $ac_status); }; }; then
15520 ac_hi=$ac_mid
15521else
15522 echo "$as_me: failed program was:" >&5
15523sed 's/^/| /' conftest.$ac_ext >&5
15524
15525ac_lo=`expr '(' $ac_mid ')' + 1`
15526fi
ac1cb8d3 15527rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15528done
15529case $ac_lo in
15530?*) ac_cv_sizeof_void_p=$ac_lo;;
15531'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
15532See \`config.log' for more details." >&5
15533echo "$as_me: error: cannot compute sizeof (void *), 77
15534See \`config.log' for more details." >&2;}
15535 { (exit 1); exit 1; }; } ;;
15536esac
15537else
15538 if test "$cross_compiling" = yes; then
ffa0583f
RL
15539 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
15540echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
15541 { (exit 1); exit 1; }; }
15542else
15543 cat >conftest.$ac_ext <<_ACEOF
15544/* confdefs.h. */
15545_ACEOF
15546cat confdefs.h >>conftest.$ac_ext
15547cat >>conftest.$ac_ext <<_ACEOF
15548/* end confdefs.h. */
15549$ac_includes_default
15550long longval () { return (long) (sizeof (void *)); }
15551unsigned long ulongval () { return (long) (sizeof (void *)); }
15552#include <stdio.h>
15553#include <stdlib.h>
15554int
15555main ()
15556{
15557
15558 FILE *f = fopen ("conftest.val", "w");
15559 if (! f)
15560 exit (1);
15561 if (((long) (sizeof (void *))) < 0)
15562 {
15563 long i = longval ();
15564 if (i != ((long) (sizeof (void *))))
15565 exit (1);
15566 fprintf (f, "%ld\n", i);
15567 }
15568 else
15569 {
15570 unsigned long i = ulongval ();
15571 if (i != ((long) (sizeof (void *))))
15572 exit (1);
15573 fprintf (f, "%lu\n", i);
15574 }
15575 exit (ferror (f) || fclose (f) != 0);
15576
15577 ;
15578 return 0;
15579}
15580_ACEOF
15581rm -f conftest$ac_exeext
15582if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15583 (eval $ac_link) 2>&5
15584 ac_status=$?
15585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15586 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15588 (eval $ac_try) 2>&5
15589 ac_status=$?
15590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15591 (exit $ac_status); }; }; then
15592 ac_cv_sizeof_void_p=`cat conftest.val`
15593else
15594 echo "$as_me: program exited with status $ac_status" >&5
15595echo "$as_me: failed program was:" >&5
15596sed 's/^/| /' conftest.$ac_ext >&5
15597
15598( exit $ac_status )
15599{ { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
15600See \`config.log' for more details." >&5
15601echo "$as_me: error: cannot compute sizeof (void *), 77
15602See \`config.log' for more details." >&2;}
15603 { (exit 1); exit 1; }; }
15604fi
ac1cb8d3 15605rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15606fi
15607fi
15608rm -f conftest.val
15609else
15610 ac_cv_sizeof_void_p=0
15611fi
15612fi
15613echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
15614echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
15615cat >>confdefs.h <<_ACEOF
15616#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
15617_ACEOF
15618
15619
15620echo "$as_me:$LINENO: checking for int" >&5
15621echo $ECHO_N "checking for int... $ECHO_C" >&6
15622if test "${ac_cv_type_int+set}" = set; then
15623 echo $ECHO_N "(cached) $ECHO_C" >&6
15624else
15625 cat >conftest.$ac_ext <<_ACEOF
15626/* confdefs.h. */
15627_ACEOF
15628cat confdefs.h >>conftest.$ac_ext
15629cat >>conftest.$ac_ext <<_ACEOF
15630/* end confdefs.h. */
15631$ac_includes_default
15632int
15633main ()
15634{
15635if ((int *) 0)
15636 return 0;
15637if (sizeof (int))
15638 return 0;
15639 ;
15640 return 0;
15641}
15642_ACEOF
15643rm -f conftest.$ac_objext
15644if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15645 (eval $ac_compile) 2>conftest.er1
a848cd7e 15646 ac_status=$?
ac1cb8d3
VS
15647 grep -v '^ *+' conftest.er1 >conftest.err
15648 rm -f conftest.er1
15649 cat conftest.err >&5
a848cd7e
SC
15650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15651 (exit $ac_status); } &&
ffa0583f 15652 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15654 (eval $ac_try) 2>&5
15655 ac_status=$?
15656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15657 (exit $ac_status); }; } &&
15658 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15660 (eval $ac_try) 2>&5
15661 ac_status=$?
15662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15663 (exit $ac_status); }; }; then
15664 ac_cv_type_int=yes
15665else
15666 echo "$as_me: failed program was:" >&5
15667sed 's/^/| /' conftest.$ac_ext >&5
15668
15669ac_cv_type_int=no
15670fi
ac1cb8d3 15671rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15672fi
15673echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
15674echo "${ECHO_T}$ac_cv_type_int" >&6
15675
15676echo "$as_me:$LINENO: checking size of int" >&5
15677echo $ECHO_N "checking size of int... $ECHO_C" >&6
15678if test "${ac_cv_sizeof_int+set}" = set; then
15679 echo $ECHO_N "(cached) $ECHO_C" >&6
15680else
15681 if test "$ac_cv_type_int" = yes; then
15682 # The cast to unsigned long works around a bug in the HP C Compiler
15683 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15684 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15685 # This bug is HP SR number 8606223364.
15686 if test "$cross_compiling" = yes; then
15687 # Depending upon the size, compute the lo and hi bounds.
15688cat >conftest.$ac_ext <<_ACEOF
15689/* confdefs.h. */
15690_ACEOF
15691cat confdefs.h >>conftest.$ac_ext
15692cat >>conftest.$ac_ext <<_ACEOF
15693/* end confdefs.h. */
15694$ac_includes_default
15695int
15696main ()
15697{
15698static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
15699test_array [0] = 0
15700
15701 ;
15702 return 0;
15703}
15704_ACEOF
15705rm -f conftest.$ac_objext
15706if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15707 (eval $ac_compile) 2>conftest.er1
a848cd7e 15708 ac_status=$?
ac1cb8d3
VS
15709 grep -v '^ *+' conftest.er1 >conftest.err
15710 rm -f conftest.er1
15711 cat conftest.err >&5
a848cd7e
SC
15712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15713 (exit $ac_status); } &&
ffa0583f 15714 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15716 (eval $ac_try) 2>&5
15717 ac_status=$?
15718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15719 (exit $ac_status); }; } &&
15720 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15722 (eval $ac_try) 2>&5
15723 ac_status=$?
15724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15725 (exit $ac_status); }; }; then
15726 ac_lo=0 ac_mid=0
15727 while :; do
15728 cat >conftest.$ac_ext <<_ACEOF
15729/* confdefs.h. */
15730_ACEOF
15731cat confdefs.h >>conftest.$ac_ext
15732cat >>conftest.$ac_ext <<_ACEOF
15733/* end confdefs.h. */
15734$ac_includes_default
15735int
15736main ()
15737{
15738static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
15739test_array [0] = 0
15740
15741 ;
15742 return 0;
15743}
15744_ACEOF
15745rm -f conftest.$ac_objext
15746if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15747 (eval $ac_compile) 2>conftest.er1
a848cd7e 15748 ac_status=$?
ac1cb8d3
VS
15749 grep -v '^ *+' conftest.er1 >conftest.err
15750 rm -f conftest.er1
15751 cat conftest.err >&5
a848cd7e
SC
15752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15753 (exit $ac_status); } &&
ffa0583f 15754 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15756 (eval $ac_try) 2>&5
15757 ac_status=$?
15758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15759 (exit $ac_status); }; } &&
15760 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15762 (eval $ac_try) 2>&5
15763 ac_status=$?
15764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15765 (exit $ac_status); }; }; then
15766 ac_hi=$ac_mid; break
15767else
15768 echo "$as_me: failed program was:" >&5
15769sed 's/^/| /' conftest.$ac_ext >&5
15770
15771ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
15772 if test $ac_lo -le $ac_mid; then
15773 ac_lo= ac_hi=
15774 break
15775 fi
15776 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 15777fi
ac1cb8d3 15778rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15779 done
15780else
15781 echo "$as_me: failed program was:" >&5
15782sed 's/^/| /' conftest.$ac_ext >&5
15783
15784cat >conftest.$ac_ext <<_ACEOF
15785/* confdefs.h. */
15786_ACEOF
15787cat confdefs.h >>conftest.$ac_ext
15788cat >>conftest.$ac_ext <<_ACEOF
15789/* end confdefs.h. */
15790$ac_includes_default
15791int
15792main ()
15793{
15794static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
15795test_array [0] = 0
15796
15797 ;
15798 return 0;
15799}
15800_ACEOF
15801rm -f conftest.$ac_objext
15802if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15803 (eval $ac_compile) 2>conftest.er1
a848cd7e 15804 ac_status=$?
ac1cb8d3
VS
15805 grep -v '^ *+' conftest.er1 >conftest.err
15806 rm -f conftest.er1
15807 cat conftest.err >&5
a848cd7e
SC
15808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15809 (exit $ac_status); } &&
ffa0583f 15810 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
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); }; } &&
15816 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15818 (eval $ac_try) 2>&5
15819 ac_status=$?
15820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15821 (exit $ac_status); }; }; then
15822 ac_hi=-1 ac_mid=-1
15823 while :; do
15824 cat >conftest.$ac_ext <<_ACEOF
15825/* confdefs.h. */
15826_ACEOF
15827cat confdefs.h >>conftest.$ac_ext
15828cat >>conftest.$ac_ext <<_ACEOF
15829/* end confdefs.h. */
15830$ac_includes_default
15831int
15832main ()
15833{
15834static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
15835test_array [0] = 0
15836
15837 ;
15838 return 0;
15839}
15840_ACEOF
15841rm -f conftest.$ac_objext
15842if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15843 (eval $ac_compile) 2>conftest.er1
a848cd7e 15844 ac_status=$?
ac1cb8d3
VS
15845 grep -v '^ *+' conftest.er1 >conftest.err
15846 rm -f conftest.er1
15847 cat conftest.err >&5
a848cd7e
SC
15848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15849 (exit $ac_status); } &&
ffa0583f 15850 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
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); }; } &&
15856 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15858 (eval $ac_try) 2>&5
15859 ac_status=$?
15860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15861 (exit $ac_status); }; }; then
15862 ac_lo=$ac_mid; break
15863else
15864 echo "$as_me: failed program was:" >&5
15865sed 's/^/| /' conftest.$ac_ext >&5
15866
15867ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
15868 if test $ac_mid -le $ac_hi; then
15869 ac_lo= ac_hi=
15870 break
15871 fi
15872 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 15873fi
ac1cb8d3 15874rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15875 done
15876else
15877 echo "$as_me: failed program was:" >&5
15878sed 's/^/| /' conftest.$ac_ext >&5
15879
15880ac_lo= ac_hi=
15881fi
ac1cb8d3 15882rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 15883fi
ac1cb8d3 15884rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15885# Binary search between lo and hi bounds.
15886while test "x$ac_lo" != "x$ac_hi"; do
15887 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15888 cat >conftest.$ac_ext <<_ACEOF
15889/* confdefs.h. */
15890_ACEOF
15891cat confdefs.h >>conftest.$ac_ext
15892cat >>conftest.$ac_ext <<_ACEOF
15893/* end confdefs.h. */
15894$ac_includes_default
15895int
15896main ()
15897{
15898static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
15899test_array [0] = 0
15900
15901 ;
15902 return 0;
15903}
15904_ACEOF
15905rm -f conftest.$ac_objext
15906if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15907 (eval $ac_compile) 2>conftest.er1
a848cd7e 15908 ac_status=$?
ac1cb8d3
VS
15909 grep -v '^ *+' conftest.er1 >conftest.err
15910 rm -f conftest.er1
15911 cat conftest.err >&5
a848cd7e
SC
15912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15913 (exit $ac_status); } &&
ffa0583f 15914 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15916 (eval $ac_try) 2>&5
15917 ac_status=$?
15918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15919 (exit $ac_status); }; } &&
15920 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15922 (eval $ac_try) 2>&5
15923 ac_status=$?
15924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15925 (exit $ac_status); }; }; then
15926 ac_hi=$ac_mid
15927else
15928 echo "$as_me: failed program was:" >&5
15929sed 's/^/| /' conftest.$ac_ext >&5
15930
15931ac_lo=`expr '(' $ac_mid ')' + 1`
15932fi
ac1cb8d3 15933rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15934done
15935case $ac_lo in
15936?*) ac_cv_sizeof_int=$ac_lo;;
15937'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
15938See \`config.log' for more details." >&5
15939echo "$as_me: error: cannot compute sizeof (int), 77
15940See \`config.log' for more details." >&2;}
15941 { (exit 1); exit 1; }; } ;;
15942esac
15943else
15944 if test "$cross_compiling" = yes; then
ffa0583f
RL
15945 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
15946echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
15947 { (exit 1); exit 1; }; }
15948else
15949 cat >conftest.$ac_ext <<_ACEOF
15950/* confdefs.h. */
15951_ACEOF
15952cat confdefs.h >>conftest.$ac_ext
15953cat >>conftest.$ac_ext <<_ACEOF
15954/* end confdefs.h. */
15955$ac_includes_default
15956long longval () { return (long) (sizeof (int)); }
15957unsigned long ulongval () { return (long) (sizeof (int)); }
15958#include <stdio.h>
15959#include <stdlib.h>
15960int
15961main ()
15962{
15963
15964 FILE *f = fopen ("conftest.val", "w");
15965 if (! f)
15966 exit (1);
15967 if (((long) (sizeof (int))) < 0)
15968 {
15969 long i = longval ();
15970 if (i != ((long) (sizeof (int))))
15971 exit (1);
15972 fprintf (f, "%ld\n", i);
15973 }
15974 else
15975 {
15976 unsigned long i = ulongval ();
15977 if (i != ((long) (sizeof (int))))
15978 exit (1);
15979 fprintf (f, "%lu\n", i);
15980 }
15981 exit (ferror (f) || fclose (f) != 0);
15982
15983 ;
15984 return 0;
15985}
15986_ACEOF
15987rm -f conftest$ac_exeext
15988if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15989 (eval $ac_link) 2>&5
15990 ac_status=$?
15991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15992 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15994 (eval $ac_try) 2>&5
15995 ac_status=$?
15996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15997 (exit $ac_status); }; }; then
15998 ac_cv_sizeof_int=`cat conftest.val`
15999else
16000 echo "$as_me: program exited with status $ac_status" >&5
16001echo "$as_me: failed program was:" >&5
16002sed 's/^/| /' conftest.$ac_ext >&5
16003
16004( exit $ac_status )
16005{ { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
16006See \`config.log' for more details." >&5
16007echo "$as_me: error: cannot compute sizeof (int), 77
16008See \`config.log' for more details." >&2;}
16009 { (exit 1); exit 1; }; }
16010fi
ac1cb8d3 16011rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16012fi
16013fi
16014rm -f conftest.val
16015else
16016 ac_cv_sizeof_int=0
16017fi
16018fi
16019echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
16020echo "${ECHO_T}$ac_cv_sizeof_int" >&6
16021cat >>confdefs.h <<_ACEOF
16022#define SIZEOF_INT $ac_cv_sizeof_int
16023_ACEOF
16024
16025
16026echo "$as_me:$LINENO: checking for long" >&5
16027echo $ECHO_N "checking for long... $ECHO_C" >&6
16028if test "${ac_cv_type_long+set}" = set; then
16029 echo $ECHO_N "(cached) $ECHO_C" >&6
16030else
16031 cat >conftest.$ac_ext <<_ACEOF
16032/* confdefs.h. */
16033_ACEOF
16034cat confdefs.h >>conftest.$ac_ext
16035cat >>conftest.$ac_ext <<_ACEOF
16036/* end confdefs.h. */
16037$ac_includes_default
16038int
16039main ()
16040{
16041if ((long *) 0)
16042 return 0;
16043if (sizeof (long))
16044 return 0;
16045 ;
16046 return 0;
16047}
16048_ACEOF
16049rm -f conftest.$ac_objext
16050if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16051 (eval $ac_compile) 2>conftest.er1
a848cd7e 16052 ac_status=$?
ac1cb8d3
VS
16053 grep -v '^ *+' conftest.er1 >conftest.err
16054 rm -f conftest.er1
16055 cat conftest.err >&5
a848cd7e
SC
16056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16057 (exit $ac_status); } &&
ffa0583f 16058 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16060 (eval $ac_try) 2>&5
16061 ac_status=$?
16062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16063 (exit $ac_status); }; } &&
16064 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16066 (eval $ac_try) 2>&5
16067 ac_status=$?
16068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16069 (exit $ac_status); }; }; then
16070 ac_cv_type_long=yes
16071else
16072 echo "$as_me: failed program was:" >&5
16073sed 's/^/| /' conftest.$ac_ext >&5
16074
16075ac_cv_type_long=no
16076fi
ac1cb8d3 16077rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16078fi
16079echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
16080echo "${ECHO_T}$ac_cv_type_long" >&6
16081
16082echo "$as_me:$LINENO: checking size of long" >&5
16083echo $ECHO_N "checking size of long... $ECHO_C" >&6
16084if test "${ac_cv_sizeof_long+set}" = set; then
16085 echo $ECHO_N "(cached) $ECHO_C" >&6
16086else
16087 if test "$ac_cv_type_long" = yes; then
16088 # The cast to unsigned long works around a bug in the HP C Compiler
16089 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16090 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16091 # This bug is HP SR number 8606223364.
16092 if test "$cross_compiling" = yes; then
16093 # Depending upon the size, compute the lo and hi bounds.
16094cat >conftest.$ac_ext <<_ACEOF
16095/* confdefs.h. */
16096_ACEOF
16097cat confdefs.h >>conftest.$ac_ext
16098cat >>conftest.$ac_ext <<_ACEOF
16099/* end confdefs.h. */
16100$ac_includes_default
16101int
16102main ()
16103{
16104static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
16105test_array [0] = 0
16106
16107 ;
16108 return 0;
16109}
16110_ACEOF
16111rm -f conftest.$ac_objext
16112if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16113 (eval $ac_compile) 2>conftest.er1
a848cd7e 16114 ac_status=$?
ac1cb8d3
VS
16115 grep -v '^ *+' conftest.er1 >conftest.err
16116 rm -f conftest.er1
16117 cat conftest.err >&5
a848cd7e
SC
16118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16119 (exit $ac_status); } &&
ffa0583f 16120 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16122 (eval $ac_try) 2>&5
16123 ac_status=$?
16124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16125 (exit $ac_status); }; } &&
16126 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16128 (eval $ac_try) 2>&5
16129 ac_status=$?
16130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16131 (exit $ac_status); }; }; then
16132 ac_lo=0 ac_mid=0
16133 while :; do
16134 cat >conftest.$ac_ext <<_ACEOF
16135/* confdefs.h. */
16136_ACEOF
16137cat confdefs.h >>conftest.$ac_ext
16138cat >>conftest.$ac_ext <<_ACEOF
16139/* end confdefs.h. */
16140$ac_includes_default
16141int
16142main ()
16143{
16144static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
16145test_array [0] = 0
16146
16147 ;
16148 return 0;
16149}
16150_ACEOF
16151rm -f conftest.$ac_objext
16152if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16153 (eval $ac_compile) 2>conftest.er1
a848cd7e 16154 ac_status=$?
ac1cb8d3
VS
16155 grep -v '^ *+' conftest.er1 >conftest.err
16156 rm -f conftest.er1
16157 cat conftest.err >&5
a848cd7e
SC
16158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16159 (exit $ac_status); } &&
ffa0583f 16160 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16162 (eval $ac_try) 2>&5
16163 ac_status=$?
16164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16165 (exit $ac_status); }; } &&
16166 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16168 (eval $ac_try) 2>&5
16169 ac_status=$?
16170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16171 (exit $ac_status); }; }; then
16172 ac_hi=$ac_mid; break
16173else
16174 echo "$as_me: failed program was:" >&5
16175sed 's/^/| /' conftest.$ac_ext >&5
16176
16177ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
16178 if test $ac_lo -le $ac_mid; then
16179 ac_lo= ac_hi=
16180 break
16181 fi
16182 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 16183fi
ac1cb8d3 16184rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16185 done
16186else
16187 echo "$as_me: failed program was:" >&5
16188sed 's/^/| /' conftest.$ac_ext >&5
16189
16190cat >conftest.$ac_ext <<_ACEOF
16191/* confdefs.h. */
16192_ACEOF
16193cat confdefs.h >>conftest.$ac_ext
16194cat >>conftest.$ac_ext <<_ACEOF
16195/* end confdefs.h. */
16196$ac_includes_default
16197int
16198main ()
16199{
16200static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
16201test_array [0] = 0
16202
16203 ;
16204 return 0;
16205}
16206_ACEOF
16207rm -f conftest.$ac_objext
16208if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16209 (eval $ac_compile) 2>conftest.er1
a848cd7e 16210 ac_status=$?
ac1cb8d3
VS
16211 grep -v '^ *+' conftest.er1 >conftest.err
16212 rm -f conftest.er1
16213 cat conftest.err >&5
a848cd7e
SC
16214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16215 (exit $ac_status); } &&
ffa0583f 16216 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
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); }; } &&
16222 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16224 (eval $ac_try) 2>&5
16225 ac_status=$?
16226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16227 (exit $ac_status); }; }; then
16228 ac_hi=-1 ac_mid=-1
16229 while :; do
16230 cat >conftest.$ac_ext <<_ACEOF
16231/* confdefs.h. */
16232_ACEOF
16233cat confdefs.h >>conftest.$ac_ext
16234cat >>conftest.$ac_ext <<_ACEOF
16235/* end confdefs.h. */
16236$ac_includes_default
16237int
16238main ()
16239{
16240static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
16241test_array [0] = 0
16242
16243 ;
16244 return 0;
16245}
16246_ACEOF
16247rm -f conftest.$ac_objext
16248if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16249 (eval $ac_compile) 2>conftest.er1
a848cd7e 16250 ac_status=$?
ac1cb8d3
VS
16251 grep -v '^ *+' conftest.er1 >conftest.err
16252 rm -f conftest.er1
16253 cat conftest.err >&5
a848cd7e
SC
16254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16255 (exit $ac_status); } &&
ffa0583f 16256 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
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); }; } &&
16262 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16264 (eval $ac_try) 2>&5
16265 ac_status=$?
16266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16267 (exit $ac_status); }; }; then
16268 ac_lo=$ac_mid; break
16269else
16270 echo "$as_me: failed program was:" >&5
16271sed 's/^/| /' conftest.$ac_ext >&5
16272
16273ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
16274 if test $ac_mid -le $ac_hi; then
16275 ac_lo= ac_hi=
16276 break
16277 fi
16278 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 16279fi
ac1cb8d3 16280rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16281 done
16282else
16283 echo "$as_me: failed program was:" >&5
16284sed 's/^/| /' conftest.$ac_ext >&5
16285
16286ac_lo= ac_hi=
16287fi
ac1cb8d3 16288rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 16289fi
ac1cb8d3 16290rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16291# Binary search between lo and hi bounds.
16292while test "x$ac_lo" != "x$ac_hi"; do
16293 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16294 cat >conftest.$ac_ext <<_ACEOF
16295/* confdefs.h. */
16296_ACEOF
16297cat confdefs.h >>conftest.$ac_ext
16298cat >>conftest.$ac_ext <<_ACEOF
16299/* end confdefs.h. */
16300$ac_includes_default
16301int
16302main ()
16303{
16304static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
16305test_array [0] = 0
16306
16307 ;
16308 return 0;
16309}
16310_ACEOF
16311rm -f conftest.$ac_objext
16312if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16313 (eval $ac_compile) 2>conftest.er1
a848cd7e 16314 ac_status=$?
ac1cb8d3
VS
16315 grep -v '^ *+' conftest.er1 >conftest.err
16316 rm -f conftest.er1
16317 cat conftest.err >&5
a848cd7e
SC
16318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16319 (exit $ac_status); } &&
ffa0583f 16320 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16322 (eval $ac_try) 2>&5
16323 ac_status=$?
16324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16325 (exit $ac_status); }; } &&
16326 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16328 (eval $ac_try) 2>&5
16329 ac_status=$?
16330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16331 (exit $ac_status); }; }; then
16332 ac_hi=$ac_mid
16333else
16334 echo "$as_me: failed program was:" >&5
16335sed 's/^/| /' conftest.$ac_ext >&5
16336
16337ac_lo=`expr '(' $ac_mid ')' + 1`
16338fi
ac1cb8d3 16339rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16340done
16341case $ac_lo in
16342?*) ac_cv_sizeof_long=$ac_lo;;
16343'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
16344See \`config.log' for more details." >&5
16345echo "$as_me: error: cannot compute sizeof (long), 77
16346See \`config.log' for more details." >&2;}
16347 { (exit 1); exit 1; }; } ;;
16348esac
16349else
16350 if test "$cross_compiling" = yes; then
ffa0583f
RL
16351 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
16352echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
16353 { (exit 1); exit 1; }; }
16354else
16355 cat >conftest.$ac_ext <<_ACEOF
16356/* confdefs.h. */
16357_ACEOF
16358cat confdefs.h >>conftest.$ac_ext
16359cat >>conftest.$ac_ext <<_ACEOF
16360/* end confdefs.h. */
16361$ac_includes_default
16362long longval () { return (long) (sizeof (long)); }
16363unsigned long ulongval () { return (long) (sizeof (long)); }
16364#include <stdio.h>
16365#include <stdlib.h>
16366int
16367main ()
16368{
16369
16370 FILE *f = fopen ("conftest.val", "w");
16371 if (! f)
16372 exit (1);
16373 if (((long) (sizeof (long))) < 0)
16374 {
16375 long i = longval ();
16376 if (i != ((long) (sizeof (long))))
16377 exit (1);
16378 fprintf (f, "%ld\n", i);
16379 }
16380 else
16381 {
16382 unsigned long i = ulongval ();
16383 if (i != ((long) (sizeof (long))))
16384 exit (1);
16385 fprintf (f, "%lu\n", i);
16386 }
16387 exit (ferror (f) || fclose (f) != 0);
16388
16389 ;
16390 return 0;
16391}
16392_ACEOF
16393rm -f conftest$ac_exeext
16394if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16395 (eval $ac_link) 2>&5
16396 ac_status=$?
16397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16398 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16400 (eval $ac_try) 2>&5
16401 ac_status=$?
16402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16403 (exit $ac_status); }; }; then
16404 ac_cv_sizeof_long=`cat conftest.val`
16405else
16406 echo "$as_me: program exited with status $ac_status" >&5
16407echo "$as_me: failed program was:" >&5
16408sed 's/^/| /' conftest.$ac_ext >&5
16409
16410( exit $ac_status )
16411{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
16412See \`config.log' for more details." >&5
16413echo "$as_me: error: cannot compute sizeof (long), 77
16414See \`config.log' for more details." >&2;}
16415 { (exit 1); exit 1; }; }
16416fi
ac1cb8d3 16417rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16418fi
16419fi
16420rm -f conftest.val
16421else
16422 ac_cv_sizeof_long=0
16423fi
16424fi
16425echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
16426echo "${ECHO_T}$ac_cv_sizeof_long" >&6
16427cat >>confdefs.h <<_ACEOF
16428#define SIZEOF_LONG $ac_cv_sizeof_long
16429_ACEOF
16430
16431
16432echo "$as_me:$LINENO: checking for size_t" >&5
16433echo $ECHO_N "checking for size_t... $ECHO_C" >&6
16434if test "${ac_cv_type_size_t+set}" = set; then
16435 echo $ECHO_N "(cached) $ECHO_C" >&6
16436else
16437 cat >conftest.$ac_ext <<_ACEOF
16438/* confdefs.h. */
16439_ACEOF
16440cat confdefs.h >>conftest.$ac_ext
16441cat >>conftest.$ac_ext <<_ACEOF
16442/* end confdefs.h. */
16443$ac_includes_default
16444int
16445main ()
16446{
16447if ((size_t *) 0)
16448 return 0;
16449if (sizeof (size_t))
16450 return 0;
16451 ;
16452 return 0;
16453}
16454_ACEOF
16455rm -f conftest.$ac_objext
16456if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16457 (eval $ac_compile) 2>conftest.er1
a848cd7e 16458 ac_status=$?
ac1cb8d3
VS
16459 grep -v '^ *+' conftest.er1 >conftest.err
16460 rm -f conftest.er1
16461 cat conftest.err >&5
a848cd7e
SC
16462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16463 (exit $ac_status); } &&
ffa0583f 16464 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16466 (eval $ac_try) 2>&5
16467 ac_status=$?
16468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16469 (exit $ac_status); }; } &&
16470 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16472 (eval $ac_try) 2>&5
16473 ac_status=$?
16474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16475 (exit $ac_status); }; }; then
16476 ac_cv_type_size_t=yes
16477else
16478 echo "$as_me: failed program was:" >&5
16479sed 's/^/| /' conftest.$ac_ext >&5
16480
16481ac_cv_type_size_t=no
16482fi
ac1cb8d3 16483rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16484fi
16485echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
16486echo "${ECHO_T}$ac_cv_type_size_t" >&6
16487
16488echo "$as_me:$LINENO: checking size of size_t" >&5
16489echo $ECHO_N "checking size of size_t... $ECHO_C" >&6
16490if test "${ac_cv_sizeof_size_t+set}" = set; then
16491 echo $ECHO_N "(cached) $ECHO_C" >&6
16492else
16493 if test "$ac_cv_type_size_t" = yes; then
16494 # The cast to unsigned long works around a bug in the HP C Compiler
16495 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16496 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16497 # This bug is HP SR number 8606223364.
16498 if test "$cross_compiling" = yes; then
16499 # Depending upon the size, compute the lo and hi bounds.
16500cat >conftest.$ac_ext <<_ACEOF
16501/* confdefs.h. */
16502_ACEOF
16503cat confdefs.h >>conftest.$ac_ext
16504cat >>conftest.$ac_ext <<_ACEOF
16505/* end confdefs.h. */
16506$ac_includes_default
16507int
16508main ()
16509{
16510static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= 0)];
16511test_array [0] = 0
16512
16513 ;
16514 return 0;
16515}
16516_ACEOF
16517rm -f conftest.$ac_objext
16518if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16519 (eval $ac_compile) 2>conftest.er1
a848cd7e 16520 ac_status=$?
ac1cb8d3
VS
16521 grep -v '^ *+' conftest.er1 >conftest.err
16522 rm -f conftest.er1
16523 cat conftest.err >&5
a848cd7e
SC
16524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16525 (exit $ac_status); } &&
ffa0583f 16526 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16528 (eval $ac_try) 2>&5
16529 ac_status=$?
16530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16531 (exit $ac_status); }; } &&
16532 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16534 (eval $ac_try) 2>&5
16535 ac_status=$?
16536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16537 (exit $ac_status); }; }; then
16538 ac_lo=0 ac_mid=0
16539 while :; do
16540 cat >conftest.$ac_ext <<_ACEOF
16541/* confdefs.h. */
16542_ACEOF
16543cat confdefs.h >>conftest.$ac_ext
16544cat >>conftest.$ac_ext <<_ACEOF
16545/* end confdefs.h. */
16546$ac_includes_default
16547int
16548main ()
16549{
16550static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
16551test_array [0] = 0
16552
16553 ;
16554 return 0;
16555}
16556_ACEOF
16557rm -f conftest.$ac_objext
16558if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16559 (eval $ac_compile) 2>conftest.er1
a848cd7e 16560 ac_status=$?
ac1cb8d3
VS
16561 grep -v '^ *+' conftest.er1 >conftest.err
16562 rm -f conftest.er1
16563 cat conftest.err >&5
a848cd7e
SC
16564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16565 (exit $ac_status); } &&
ffa0583f 16566 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16568 (eval $ac_try) 2>&5
16569 ac_status=$?
16570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16571 (exit $ac_status); }; } &&
16572 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16574 (eval $ac_try) 2>&5
16575 ac_status=$?
16576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16577 (exit $ac_status); }; }; then
16578 ac_hi=$ac_mid; break
16579else
16580 echo "$as_me: failed program was:" >&5
16581sed 's/^/| /' conftest.$ac_ext >&5
16582
16583ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
16584 if test $ac_lo -le $ac_mid; then
16585 ac_lo= ac_hi=
16586 break
16587 fi
16588 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 16589fi
ac1cb8d3 16590rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16591 done
16592else
16593 echo "$as_me: failed program was:" >&5
16594sed 's/^/| /' conftest.$ac_ext >&5
16595
16596cat >conftest.$ac_ext <<_ACEOF
16597/* confdefs.h. */
16598_ACEOF
16599cat confdefs.h >>conftest.$ac_ext
16600cat >>conftest.$ac_ext <<_ACEOF
16601/* end confdefs.h. */
16602$ac_includes_default
16603int
16604main ()
16605{
16606static int test_array [1 - 2 * !(((long) (sizeof (size_t))) < 0)];
16607test_array [0] = 0
16608
16609 ;
16610 return 0;
16611}
16612_ACEOF
16613rm -f conftest.$ac_objext
16614if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16615 (eval $ac_compile) 2>conftest.er1
a848cd7e 16616 ac_status=$?
ac1cb8d3
VS
16617 grep -v '^ *+' conftest.er1 >conftest.err
16618 rm -f conftest.er1
16619 cat conftest.err >&5
a848cd7e
SC
16620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16621 (exit $ac_status); } &&
ffa0583f 16622 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
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); }; } &&
16628 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16630 (eval $ac_try) 2>&5
16631 ac_status=$?
16632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16633 (exit $ac_status); }; }; then
16634 ac_hi=-1 ac_mid=-1
16635 while :; do
16636 cat >conftest.$ac_ext <<_ACEOF
16637/* confdefs.h. */
16638_ACEOF
16639cat confdefs.h >>conftest.$ac_ext
16640cat >>conftest.$ac_ext <<_ACEOF
16641/* end confdefs.h. */
16642$ac_includes_default
16643int
16644main ()
16645{
16646static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= $ac_mid)];
16647test_array [0] = 0
16648
16649 ;
16650 return 0;
16651}
16652_ACEOF
16653rm -f conftest.$ac_objext
16654if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16655 (eval $ac_compile) 2>conftest.er1
a848cd7e 16656 ac_status=$?
ac1cb8d3
VS
16657 grep -v '^ *+' conftest.er1 >conftest.err
16658 rm -f conftest.er1
16659 cat conftest.err >&5
a848cd7e
SC
16660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16661 (exit $ac_status); } &&
ffa0583f 16662 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
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); }; } &&
16668 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16670 (eval $ac_try) 2>&5
16671 ac_status=$?
16672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16673 (exit $ac_status); }; }; then
16674 ac_lo=$ac_mid; break
16675else
16676 echo "$as_me: failed program was:" >&5
16677sed 's/^/| /' conftest.$ac_ext >&5
16678
16679ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
16680 if test $ac_mid -le $ac_hi; then
16681 ac_lo= ac_hi=
16682 break
16683 fi
16684 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 16685fi
ac1cb8d3 16686rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16687 done
16688else
16689 echo "$as_me: failed program was:" >&5
16690sed 's/^/| /' conftest.$ac_ext >&5
16691
16692ac_lo= ac_hi=
16693fi
ac1cb8d3 16694rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 16695fi
ac1cb8d3 16696rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16697# Binary search between lo and hi bounds.
16698while test "x$ac_lo" != "x$ac_hi"; do
16699 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16700 cat >conftest.$ac_ext <<_ACEOF
16701/* confdefs.h. */
16702_ACEOF
16703cat confdefs.h >>conftest.$ac_ext
16704cat >>conftest.$ac_ext <<_ACEOF
16705/* end confdefs.h. */
16706$ac_includes_default
16707int
16708main ()
16709{
16710static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
16711test_array [0] = 0
16712
16713 ;
16714 return 0;
16715}
16716_ACEOF
16717rm -f conftest.$ac_objext
16718if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16719 (eval $ac_compile) 2>conftest.er1
a848cd7e 16720 ac_status=$?
ac1cb8d3
VS
16721 grep -v '^ *+' conftest.er1 >conftest.err
16722 rm -f conftest.er1
16723 cat conftest.err >&5
a848cd7e
SC
16724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16725 (exit $ac_status); } &&
ffa0583f 16726 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16728 (eval $ac_try) 2>&5
16729 ac_status=$?
16730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16731 (exit $ac_status); }; } &&
16732 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16734 (eval $ac_try) 2>&5
16735 ac_status=$?
16736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16737 (exit $ac_status); }; }; then
16738 ac_hi=$ac_mid
16739else
16740 echo "$as_me: failed program was:" >&5
16741sed 's/^/| /' conftest.$ac_ext >&5
16742
16743ac_lo=`expr '(' $ac_mid ')' + 1`
16744fi
ac1cb8d3 16745rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16746done
16747case $ac_lo in
16748?*) ac_cv_sizeof_size_t=$ac_lo;;
16749'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
16750See \`config.log' for more details." >&5
16751echo "$as_me: error: cannot compute sizeof (size_t), 77
16752See \`config.log' for more details." >&2;}
16753 { (exit 1); exit 1; }; } ;;
16754esac
16755else
16756 if test "$cross_compiling" = yes; then
ffa0583f
RL
16757 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
16758echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
16759 { (exit 1); exit 1; }; }
16760else
16761 cat >conftest.$ac_ext <<_ACEOF
16762/* confdefs.h. */
16763_ACEOF
16764cat confdefs.h >>conftest.$ac_ext
16765cat >>conftest.$ac_ext <<_ACEOF
16766/* end confdefs.h. */
16767$ac_includes_default
16768long longval () { return (long) (sizeof (size_t)); }
16769unsigned long ulongval () { return (long) (sizeof (size_t)); }
16770#include <stdio.h>
16771#include <stdlib.h>
16772int
16773main ()
16774{
16775
16776 FILE *f = fopen ("conftest.val", "w");
16777 if (! f)
16778 exit (1);
16779 if (((long) (sizeof (size_t))) < 0)
16780 {
16781 long i = longval ();
16782 if (i != ((long) (sizeof (size_t))))
16783 exit (1);
16784 fprintf (f, "%ld\n", i);
16785 }
16786 else
16787 {
16788 unsigned long i = ulongval ();
16789 if (i != ((long) (sizeof (size_t))))
16790 exit (1);
16791 fprintf (f, "%lu\n", i);
16792 }
16793 exit (ferror (f) || fclose (f) != 0);
16794
16795 ;
16796 return 0;
16797}
16798_ACEOF
16799rm -f conftest$ac_exeext
16800if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16801 (eval $ac_link) 2>&5
16802 ac_status=$?
16803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16804 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16806 (eval $ac_try) 2>&5
16807 ac_status=$?
16808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16809 (exit $ac_status); }; }; then
16810 ac_cv_sizeof_size_t=`cat conftest.val`
16811else
16812 echo "$as_me: program exited with status $ac_status" >&5
16813echo "$as_me: failed program was:" >&5
16814sed 's/^/| /' conftest.$ac_ext >&5
16815
16816( exit $ac_status )
16817{ { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
16818See \`config.log' for more details." >&5
16819echo "$as_me: error: cannot compute sizeof (size_t), 77
16820See \`config.log' for more details." >&2;}
16821 { (exit 1); exit 1; }; }
16822fi
ac1cb8d3 16823rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16824fi
16825fi
16826rm -f conftest.val
16827else
16828 ac_cv_sizeof_size_t=0
16829fi
16830fi
16831echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
16832echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6
16833cat >>confdefs.h <<_ACEOF
16834#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
16835_ACEOF
16836
16837
16838
16839case "${host}" in
16840 arm-*-linux* )
16841 echo "$as_me:$LINENO: checking for long long" >&5
16842echo $ECHO_N "checking for long long... $ECHO_C" >&6
16843if test "${ac_cv_type_long_long+set}" = set; then
16844 echo $ECHO_N "(cached) $ECHO_C" >&6
16845else
16846 cat >conftest.$ac_ext <<_ACEOF
16847/* confdefs.h. */
16848_ACEOF
16849cat confdefs.h >>conftest.$ac_ext
16850cat >>conftest.$ac_ext <<_ACEOF
16851/* end confdefs.h. */
16852$ac_includes_default
16853int
16854main ()
16855{
16856if ((long long *) 0)
16857 return 0;
16858if (sizeof (long long))
16859 return 0;
16860 ;
16861 return 0;
16862}
16863_ACEOF
16864rm -f conftest.$ac_objext
16865if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16866 (eval $ac_compile) 2>conftest.er1
a848cd7e 16867 ac_status=$?
ac1cb8d3
VS
16868 grep -v '^ *+' conftest.er1 >conftest.err
16869 rm -f conftest.er1
16870 cat conftest.err >&5
a848cd7e
SC
16871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16872 (exit $ac_status); } &&
ffa0583f 16873 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16875 (eval $ac_try) 2>&5
16876 ac_status=$?
16877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16878 (exit $ac_status); }; } &&
16879 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16881 (eval $ac_try) 2>&5
16882 ac_status=$?
16883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16884 (exit $ac_status); }; }; then
16885 ac_cv_type_long_long=yes
16886else
16887 echo "$as_me: failed program was:" >&5
16888sed 's/^/| /' conftest.$ac_ext >&5
16889
16890ac_cv_type_long_long=no
16891fi
ac1cb8d3 16892rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16893fi
16894echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
16895echo "${ECHO_T}$ac_cv_type_long_long" >&6
16896
16897echo "$as_me:$LINENO: checking size of long long" >&5
16898echo $ECHO_N "checking size of long long... $ECHO_C" >&6
16899if test "${ac_cv_sizeof_long_long+set}" = set; then
16900 echo $ECHO_N "(cached) $ECHO_C" >&6
16901else
16902 if test "$ac_cv_type_long_long" = yes; then
16903 # The cast to unsigned long works around a bug in the HP C Compiler
16904 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16905 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16906 # This bug is HP SR number 8606223364.
16907 if test "$cross_compiling" = yes; then
16908 # Depending upon the size, compute the lo and hi bounds.
16909cat >conftest.$ac_ext <<_ACEOF
16910/* confdefs.h. */
16911_ACEOF
16912cat confdefs.h >>conftest.$ac_ext
16913cat >>conftest.$ac_ext <<_ACEOF
16914/* end confdefs.h. */
16915$ac_includes_default
16916int
16917main ()
16918{
16919static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
16920test_array [0] = 0
16921
16922 ;
16923 return 0;
16924}
16925_ACEOF
16926rm -f conftest.$ac_objext
16927if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16928 (eval $ac_compile) 2>conftest.er1
a848cd7e 16929 ac_status=$?
ac1cb8d3
VS
16930 grep -v '^ *+' conftest.er1 >conftest.err
16931 rm -f conftest.er1
16932 cat conftest.err >&5
a848cd7e
SC
16933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16934 (exit $ac_status); } &&
ffa0583f 16935 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16937 (eval $ac_try) 2>&5
16938 ac_status=$?
16939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16940 (exit $ac_status); }; } &&
16941 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16943 (eval $ac_try) 2>&5
16944 ac_status=$?
16945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16946 (exit $ac_status); }; }; then
16947 ac_lo=0 ac_mid=0
16948 while :; do
16949 cat >conftest.$ac_ext <<_ACEOF
16950/* confdefs.h. */
16951_ACEOF
16952cat confdefs.h >>conftest.$ac_ext
16953cat >>conftest.$ac_ext <<_ACEOF
16954/* end confdefs.h. */
16955$ac_includes_default
16956int
16957main ()
16958{
16959static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
16960test_array [0] = 0
16961
16962 ;
16963 return 0;
16964}
16965_ACEOF
16966rm -f conftest.$ac_objext
16967if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16968 (eval $ac_compile) 2>conftest.er1
a848cd7e 16969 ac_status=$?
ac1cb8d3
VS
16970 grep -v '^ *+' conftest.er1 >conftest.err
16971 rm -f conftest.er1
16972 cat conftest.err >&5
a848cd7e
SC
16973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16974 (exit $ac_status); } &&
ffa0583f 16975 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16977 (eval $ac_try) 2>&5
16978 ac_status=$?
16979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16980 (exit $ac_status); }; } &&
16981 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16983 (eval $ac_try) 2>&5
16984 ac_status=$?
16985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16986 (exit $ac_status); }; }; then
16987 ac_hi=$ac_mid; break
16988else
16989 echo "$as_me: failed program was:" >&5
16990sed 's/^/| /' conftest.$ac_ext >&5
16991
16992ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
16993 if test $ac_lo -le $ac_mid; then
16994 ac_lo= ac_hi=
16995 break
16996 fi
16997 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 16998fi
ac1cb8d3 16999rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17000 done
17001else
17002 echo "$as_me: failed program was:" >&5
17003sed 's/^/| /' conftest.$ac_ext >&5
17004
17005cat >conftest.$ac_ext <<_ACEOF
17006/* confdefs.h. */
17007_ACEOF
17008cat confdefs.h >>conftest.$ac_ext
17009cat >>conftest.$ac_ext <<_ACEOF
17010/* end confdefs.h. */
17011$ac_includes_default
17012int
17013main ()
17014{
17015static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
17016test_array [0] = 0
17017
17018 ;
17019 return 0;
17020}
17021_ACEOF
17022rm -f conftest.$ac_objext
17023if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17024 (eval $ac_compile) 2>conftest.er1
a848cd7e 17025 ac_status=$?
ac1cb8d3
VS
17026 grep -v '^ *+' conftest.er1 >conftest.err
17027 rm -f conftest.er1
17028 cat conftest.err >&5
a848cd7e
SC
17029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17030 (exit $ac_status); } &&
ffa0583f 17031 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
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); }; } &&
17037 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17039 (eval $ac_try) 2>&5
17040 ac_status=$?
17041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17042 (exit $ac_status); }; }; then
17043 ac_hi=-1 ac_mid=-1
17044 while :; do
17045 cat >conftest.$ac_ext <<_ACEOF
17046/* confdefs.h. */
17047_ACEOF
17048cat confdefs.h >>conftest.$ac_ext
17049cat >>conftest.$ac_ext <<_ACEOF
17050/* end confdefs.h. */
17051$ac_includes_default
17052int
17053main ()
17054{
17055static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
17056test_array [0] = 0
17057
17058 ;
17059 return 0;
17060}
17061_ACEOF
17062rm -f conftest.$ac_objext
17063if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17064 (eval $ac_compile) 2>conftest.er1
a848cd7e 17065 ac_status=$?
ac1cb8d3
VS
17066 grep -v '^ *+' conftest.er1 >conftest.err
17067 rm -f conftest.er1
17068 cat conftest.err >&5
a848cd7e
SC
17069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17070 (exit $ac_status); } &&
ffa0583f 17071 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
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); }; } &&
17077 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17079 (eval $ac_try) 2>&5
17080 ac_status=$?
17081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17082 (exit $ac_status); }; }; then
17083 ac_lo=$ac_mid; break
17084else
17085 echo "$as_me: failed program was:" >&5
17086sed 's/^/| /' conftest.$ac_ext >&5
17087
17088ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
17089 if test $ac_mid -le $ac_hi; then
17090 ac_lo= ac_hi=
17091 break
17092 fi
17093 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 17094fi
ac1cb8d3 17095rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17096 done
17097else
17098 echo "$as_me: failed program was:" >&5
17099sed 's/^/| /' conftest.$ac_ext >&5
17100
17101ac_lo= ac_hi=
17102fi
ac1cb8d3 17103rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 17104fi
ac1cb8d3 17105rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17106# Binary search between lo and hi bounds.
17107while test "x$ac_lo" != "x$ac_hi"; do
17108 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
17109 cat >conftest.$ac_ext <<_ACEOF
17110/* confdefs.h. */
17111_ACEOF
17112cat confdefs.h >>conftest.$ac_ext
17113cat >>conftest.$ac_ext <<_ACEOF
17114/* end confdefs.h. */
17115$ac_includes_default
17116int
17117main ()
17118{
17119static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
17120test_array [0] = 0
17121
17122 ;
17123 return 0;
17124}
17125_ACEOF
17126rm -f conftest.$ac_objext
17127if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17128 (eval $ac_compile) 2>conftest.er1
a848cd7e 17129 ac_status=$?
ac1cb8d3
VS
17130 grep -v '^ *+' conftest.er1 >conftest.err
17131 rm -f conftest.er1
17132 cat conftest.err >&5
a848cd7e
SC
17133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17134 (exit $ac_status); } &&
ffa0583f 17135 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17137 (eval $ac_try) 2>&5
17138 ac_status=$?
17139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17140 (exit $ac_status); }; } &&
17141 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17143 (eval $ac_try) 2>&5
17144 ac_status=$?
17145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17146 (exit $ac_status); }; }; then
17147 ac_hi=$ac_mid
17148else
17149 echo "$as_me: failed program was:" >&5
17150sed 's/^/| /' conftest.$ac_ext >&5
17151
17152ac_lo=`expr '(' $ac_mid ')' + 1`
17153fi
ac1cb8d3 17154rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17155done
17156case $ac_lo in
17157?*) ac_cv_sizeof_long_long=$ac_lo;;
17158'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
17159See \`config.log' for more details." >&5
17160echo "$as_me: error: cannot compute sizeof (long long), 77
17161See \`config.log' for more details." >&2;}
17162 { (exit 1); exit 1; }; } ;;
17163esac
17164else
17165 if test "$cross_compiling" = yes; then
ffa0583f
RL
17166 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
17167echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
17168 { (exit 1); exit 1; }; }
17169else
17170 cat >conftest.$ac_ext <<_ACEOF
17171/* confdefs.h. */
17172_ACEOF
17173cat confdefs.h >>conftest.$ac_ext
17174cat >>conftest.$ac_ext <<_ACEOF
17175/* end confdefs.h. */
17176$ac_includes_default
17177long longval () { return (long) (sizeof (long long)); }
17178unsigned long ulongval () { return (long) (sizeof (long long)); }
17179#include <stdio.h>
17180#include <stdlib.h>
17181int
17182main ()
17183{
17184
17185 FILE *f = fopen ("conftest.val", "w");
17186 if (! f)
17187 exit (1);
17188 if (((long) (sizeof (long long))) < 0)
17189 {
17190 long i = longval ();
17191 if (i != ((long) (sizeof (long long))))
17192 exit (1);
17193 fprintf (f, "%ld\n", i);
17194 }
17195 else
17196 {
17197 unsigned long i = ulongval ();
17198 if (i != ((long) (sizeof (long long))))
17199 exit (1);
17200 fprintf (f, "%lu\n", i);
17201 }
17202 exit (ferror (f) || fclose (f) != 0);
17203
17204 ;
17205 return 0;
17206}
17207_ACEOF
17208rm -f conftest$ac_exeext
17209if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17210 (eval $ac_link) 2>&5
17211 ac_status=$?
17212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17213 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17215 (eval $ac_try) 2>&5
17216 ac_status=$?
17217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17218 (exit $ac_status); }; }; then
17219 ac_cv_sizeof_long_long=`cat conftest.val`
17220else
17221 echo "$as_me: program exited with status $ac_status" >&5
17222echo "$as_me: failed program was:" >&5
17223sed 's/^/| /' conftest.$ac_ext >&5
17224
17225( exit $ac_status )
17226{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
17227See \`config.log' for more details." >&5
17228echo "$as_me: error: cannot compute sizeof (long long), 77
17229See \`config.log' for more details." >&2;}
17230 { (exit 1); exit 1; }; }
17231fi
ac1cb8d3 17232rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17233fi
17234fi
17235rm -f conftest.val
17236else
17237 ac_cv_sizeof_long_long=0
17238fi
17239fi
17240echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
17241echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
17242cat >>confdefs.h <<_ACEOF
17243#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
17244_ACEOF
17245
17246
17247 ;;
17248 *-hp-hpux* )
17249 echo "$as_me:$LINENO: checking for long long" >&5
17250echo $ECHO_N "checking for long long... $ECHO_C" >&6
17251if test "${ac_cv_type_long_long+set}" = set; then
17252 echo $ECHO_N "(cached) $ECHO_C" >&6
17253else
17254 cat >conftest.$ac_ext <<_ACEOF
17255/* confdefs.h. */
17256_ACEOF
17257cat confdefs.h >>conftest.$ac_ext
17258cat >>conftest.$ac_ext <<_ACEOF
17259/* end confdefs.h. */
17260$ac_includes_default
17261int
17262main ()
17263{
17264if ((long long *) 0)
17265 return 0;
17266if (sizeof (long long))
17267 return 0;
17268 ;
17269 return 0;
17270}
17271_ACEOF
17272rm -f conftest.$ac_objext
17273if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17274 (eval $ac_compile) 2>conftest.er1
a848cd7e 17275 ac_status=$?
ac1cb8d3
VS
17276 grep -v '^ *+' conftest.er1 >conftest.err
17277 rm -f conftest.er1
17278 cat conftest.err >&5
a848cd7e
SC
17279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17280 (exit $ac_status); } &&
ffa0583f 17281 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17283 (eval $ac_try) 2>&5
17284 ac_status=$?
17285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17286 (exit $ac_status); }; } &&
17287 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17289 (eval $ac_try) 2>&5
17290 ac_status=$?
17291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17292 (exit $ac_status); }; }; then
17293 ac_cv_type_long_long=yes
17294else
17295 echo "$as_me: failed program was:" >&5
17296sed 's/^/| /' conftest.$ac_ext >&5
17297
17298ac_cv_type_long_long=no
17299fi
ac1cb8d3 17300rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17301fi
17302echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
17303echo "${ECHO_T}$ac_cv_type_long_long" >&6
17304
17305echo "$as_me:$LINENO: checking size of long long" >&5
17306echo $ECHO_N "checking size of long long... $ECHO_C" >&6
17307if test "${ac_cv_sizeof_long_long+set}" = set; then
17308 echo $ECHO_N "(cached) $ECHO_C" >&6
17309else
17310 if test "$ac_cv_type_long_long" = yes; then
17311 # The cast to unsigned long works around a bug in the HP C Compiler
17312 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17313 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17314 # This bug is HP SR number 8606223364.
17315 if test "$cross_compiling" = yes; then
17316 # Depending upon the size, compute the lo and hi bounds.
17317cat >conftest.$ac_ext <<_ACEOF
17318/* confdefs.h. */
17319_ACEOF
17320cat confdefs.h >>conftest.$ac_ext
17321cat >>conftest.$ac_ext <<_ACEOF
17322/* end confdefs.h. */
17323$ac_includes_default
17324int
17325main ()
17326{
17327static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
17328test_array [0] = 0
17329
17330 ;
17331 return 0;
17332}
17333_ACEOF
17334rm -f conftest.$ac_objext
17335if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17336 (eval $ac_compile) 2>conftest.er1
a848cd7e 17337 ac_status=$?
ac1cb8d3
VS
17338 grep -v '^ *+' conftest.er1 >conftest.err
17339 rm -f conftest.er1
17340 cat conftest.err >&5
a848cd7e
SC
17341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17342 (exit $ac_status); } &&
ffa0583f 17343 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17345 (eval $ac_try) 2>&5
17346 ac_status=$?
17347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17348 (exit $ac_status); }; } &&
17349 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17351 (eval $ac_try) 2>&5
17352 ac_status=$?
17353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17354 (exit $ac_status); }; }; then
17355 ac_lo=0 ac_mid=0
17356 while :; do
17357 cat >conftest.$ac_ext <<_ACEOF
17358/* confdefs.h. */
17359_ACEOF
17360cat confdefs.h >>conftest.$ac_ext
17361cat >>conftest.$ac_ext <<_ACEOF
17362/* end confdefs.h. */
17363$ac_includes_default
17364int
17365main ()
17366{
17367static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
17368test_array [0] = 0
17369
17370 ;
17371 return 0;
17372}
17373_ACEOF
17374rm -f conftest.$ac_objext
17375if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17376 (eval $ac_compile) 2>conftest.er1
a848cd7e 17377 ac_status=$?
ac1cb8d3
VS
17378 grep -v '^ *+' conftest.er1 >conftest.err
17379 rm -f conftest.er1
17380 cat conftest.err >&5
a848cd7e
SC
17381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17382 (exit $ac_status); } &&
ffa0583f 17383 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17385 (eval $ac_try) 2>&5
17386 ac_status=$?
17387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17388 (exit $ac_status); }; } &&
17389 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17391 (eval $ac_try) 2>&5
17392 ac_status=$?
17393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17394 (exit $ac_status); }; }; then
17395 ac_hi=$ac_mid; break
17396else
17397 echo "$as_me: failed program was:" >&5
17398sed 's/^/| /' conftest.$ac_ext >&5
17399
17400ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
17401 if test $ac_lo -le $ac_mid; then
17402 ac_lo= ac_hi=
17403 break
17404 fi
17405 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 17406fi
ac1cb8d3 17407rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17408 done
17409else
17410 echo "$as_me: failed program was:" >&5
17411sed 's/^/| /' conftest.$ac_ext >&5
17412
17413cat >conftest.$ac_ext <<_ACEOF
17414/* confdefs.h. */
17415_ACEOF
17416cat confdefs.h >>conftest.$ac_ext
17417cat >>conftest.$ac_ext <<_ACEOF
17418/* end confdefs.h. */
17419$ac_includes_default
17420int
17421main ()
17422{
17423static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
17424test_array [0] = 0
17425
17426 ;
17427 return 0;
17428}
17429_ACEOF
17430rm -f conftest.$ac_objext
17431if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17432 (eval $ac_compile) 2>conftest.er1
a848cd7e 17433 ac_status=$?
ac1cb8d3
VS
17434 grep -v '^ *+' conftest.er1 >conftest.err
17435 rm -f conftest.er1
17436 cat conftest.err >&5
a848cd7e
SC
17437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17438 (exit $ac_status); } &&
ffa0583f 17439 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
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); }; } &&
17445 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17447 (eval $ac_try) 2>&5
17448 ac_status=$?
17449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17450 (exit $ac_status); }; }; then
17451 ac_hi=-1 ac_mid=-1
17452 while :; do
17453 cat >conftest.$ac_ext <<_ACEOF
17454/* confdefs.h. */
17455_ACEOF
17456cat confdefs.h >>conftest.$ac_ext
17457cat >>conftest.$ac_ext <<_ACEOF
17458/* end confdefs.h. */
17459$ac_includes_default
17460int
17461main ()
17462{
17463static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
17464test_array [0] = 0
17465
17466 ;
17467 return 0;
17468}
17469_ACEOF
17470rm -f conftest.$ac_objext
17471if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17472 (eval $ac_compile) 2>conftest.er1
a848cd7e 17473 ac_status=$?
ac1cb8d3
VS
17474 grep -v '^ *+' conftest.er1 >conftest.err
17475 rm -f conftest.er1
17476 cat conftest.err >&5
a848cd7e
SC
17477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17478 (exit $ac_status); } &&
ffa0583f 17479 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
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); }; } &&
17485 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17487 (eval $ac_try) 2>&5
17488 ac_status=$?
17489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17490 (exit $ac_status); }; }; then
17491 ac_lo=$ac_mid; break
17492else
17493 echo "$as_me: failed program was:" >&5
17494sed 's/^/| /' conftest.$ac_ext >&5
17495
17496ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
17497 if test $ac_mid -le $ac_hi; then
17498 ac_lo= ac_hi=
17499 break
17500 fi
17501 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 17502fi
ac1cb8d3 17503rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17504 done
17505else
17506 echo "$as_me: failed program was:" >&5
17507sed 's/^/| /' conftest.$ac_ext >&5
17508
17509ac_lo= ac_hi=
17510fi
ac1cb8d3 17511rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 17512fi
ac1cb8d3 17513rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17514# Binary search between lo and hi bounds.
17515while test "x$ac_lo" != "x$ac_hi"; do
17516 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
17517 cat >conftest.$ac_ext <<_ACEOF
17518/* confdefs.h. */
17519_ACEOF
17520cat confdefs.h >>conftest.$ac_ext
17521cat >>conftest.$ac_ext <<_ACEOF
17522/* end confdefs.h. */
17523$ac_includes_default
17524int
17525main ()
17526{
17527static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
17528test_array [0] = 0
17529
17530 ;
17531 return 0;
17532}
17533_ACEOF
17534rm -f conftest.$ac_objext
17535if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17536 (eval $ac_compile) 2>conftest.er1
a848cd7e 17537 ac_status=$?
ac1cb8d3
VS
17538 grep -v '^ *+' conftest.er1 >conftest.err
17539 rm -f conftest.er1
17540 cat conftest.err >&5
a848cd7e
SC
17541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17542 (exit $ac_status); } &&
ffa0583f 17543 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17545 (eval $ac_try) 2>&5
17546 ac_status=$?
17547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17548 (exit $ac_status); }; } &&
17549 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17551 (eval $ac_try) 2>&5
17552 ac_status=$?
17553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17554 (exit $ac_status); }; }; then
17555 ac_hi=$ac_mid
17556else
17557 echo "$as_me: failed program was:" >&5
17558sed 's/^/| /' conftest.$ac_ext >&5
17559
17560ac_lo=`expr '(' $ac_mid ')' + 1`
17561fi
ac1cb8d3 17562rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17563done
17564case $ac_lo in
17565?*) ac_cv_sizeof_long_long=$ac_lo;;
17566'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
17567See \`config.log' for more details." >&5
17568echo "$as_me: error: cannot compute sizeof (long long), 77
17569See \`config.log' for more details." >&2;}
17570 { (exit 1); exit 1; }; } ;;
17571esac
17572else
17573 if test "$cross_compiling" = yes; then
ffa0583f
RL
17574 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
17575echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
17576 { (exit 1); exit 1; }; }
17577else
17578 cat >conftest.$ac_ext <<_ACEOF
17579/* confdefs.h. */
17580_ACEOF
17581cat confdefs.h >>conftest.$ac_ext
17582cat >>conftest.$ac_ext <<_ACEOF
17583/* end confdefs.h. */
17584$ac_includes_default
17585long longval () { return (long) (sizeof (long long)); }
17586unsigned long ulongval () { return (long) (sizeof (long long)); }
17587#include <stdio.h>
17588#include <stdlib.h>
17589int
17590main ()
17591{
17592
17593 FILE *f = fopen ("conftest.val", "w");
17594 if (! f)
17595 exit (1);
17596 if (((long) (sizeof (long long))) < 0)
17597 {
17598 long i = longval ();
17599 if (i != ((long) (sizeof (long long))))
17600 exit (1);
17601 fprintf (f, "%ld\n", i);
17602 }
17603 else
17604 {
17605 unsigned long i = ulongval ();
17606 if (i != ((long) (sizeof (long long))))
17607 exit (1);
17608 fprintf (f, "%lu\n", i);
17609 }
17610 exit (ferror (f) || fclose (f) != 0);
17611
17612 ;
17613 return 0;
17614}
17615_ACEOF
17616rm -f conftest$ac_exeext
17617if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17618 (eval $ac_link) 2>&5
17619 ac_status=$?
17620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17621 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17623 (eval $ac_try) 2>&5
17624 ac_status=$?
17625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17626 (exit $ac_status); }; }; then
17627 ac_cv_sizeof_long_long=`cat conftest.val`
17628else
17629 echo "$as_me: program exited with status $ac_status" >&5
17630echo "$as_me: failed program was:" >&5
17631sed 's/^/| /' conftest.$ac_ext >&5
17632
17633( exit $ac_status )
17634{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
17635See \`config.log' for more details." >&5
17636echo "$as_me: error: cannot compute sizeof (long long), 77
17637See \`config.log' for more details." >&2;}
17638 { (exit 1); exit 1; }; }
17639fi
ac1cb8d3 17640rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17641fi
17642fi
17643rm -f conftest.val
17644else
17645 ac_cv_sizeof_long_long=0
17646fi
17647fi
17648echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
17649echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
17650cat >>confdefs.h <<_ACEOF
17651#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
17652_ACEOF
17653
17654
17655 if test "$ac_cv_sizeof_long_long" != "0"; then
17656 CPPFLAGS="$CPPFLAGS -D_INCLUDE_LONGLONG"
17657 fi
17658 ;;
17659 * )
17660 echo "$as_me:$LINENO: checking for long long" >&5
17661echo $ECHO_N "checking for long long... $ECHO_C" >&6
17662if test "${ac_cv_type_long_long+set}" = set; then
17663 echo $ECHO_N "(cached) $ECHO_C" >&6
17664else
17665 cat >conftest.$ac_ext <<_ACEOF
17666/* confdefs.h. */
17667_ACEOF
17668cat confdefs.h >>conftest.$ac_ext
17669cat >>conftest.$ac_ext <<_ACEOF
17670/* end confdefs.h. */
17671$ac_includes_default
17672int
17673main ()
17674{
17675if ((long long *) 0)
17676 return 0;
17677if (sizeof (long long))
17678 return 0;
17679 ;
17680 return 0;
17681}
17682_ACEOF
17683rm -f conftest.$ac_objext
17684if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17685 (eval $ac_compile) 2>conftest.er1
a848cd7e 17686 ac_status=$?
ac1cb8d3
VS
17687 grep -v '^ *+' conftest.er1 >conftest.err
17688 rm -f conftest.er1
17689 cat conftest.err >&5
a848cd7e
SC
17690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17691 (exit $ac_status); } &&
ffa0583f 17692 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17694 (eval $ac_try) 2>&5
17695 ac_status=$?
17696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17697 (exit $ac_status); }; } &&
17698 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17700 (eval $ac_try) 2>&5
17701 ac_status=$?
17702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17703 (exit $ac_status); }; }; then
17704 ac_cv_type_long_long=yes
17705else
17706 echo "$as_me: failed program was:" >&5
17707sed 's/^/| /' conftest.$ac_ext >&5
17708
17709ac_cv_type_long_long=no
17710fi
ac1cb8d3 17711rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17712fi
17713echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
17714echo "${ECHO_T}$ac_cv_type_long_long" >&6
17715
17716echo "$as_me:$LINENO: checking size of long long" >&5
17717echo $ECHO_N "checking size of long long... $ECHO_C" >&6
17718if test "${ac_cv_sizeof_long_long+set}" = set; then
17719 echo $ECHO_N "(cached) $ECHO_C" >&6
17720else
17721 if test "$ac_cv_type_long_long" = yes; then
17722 # The cast to unsigned long works around a bug in the HP C Compiler
17723 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17724 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17725 # This bug is HP SR number 8606223364.
17726 if test "$cross_compiling" = yes; then
17727 # Depending upon the size, compute the lo and hi bounds.
17728cat >conftest.$ac_ext <<_ACEOF
17729/* confdefs.h. */
17730_ACEOF
17731cat confdefs.h >>conftest.$ac_ext
17732cat >>conftest.$ac_ext <<_ACEOF
17733/* end confdefs.h. */
17734$ac_includes_default
17735int
17736main ()
17737{
17738static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
17739test_array [0] = 0
17740
17741 ;
17742 return 0;
17743}
17744_ACEOF
17745rm -f conftest.$ac_objext
17746if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17747 (eval $ac_compile) 2>conftest.er1
a848cd7e 17748 ac_status=$?
ac1cb8d3
VS
17749 grep -v '^ *+' conftest.er1 >conftest.err
17750 rm -f conftest.er1
17751 cat conftest.err >&5
a848cd7e
SC
17752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17753 (exit $ac_status); } &&
ffa0583f 17754 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17756 (eval $ac_try) 2>&5
17757 ac_status=$?
17758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17759 (exit $ac_status); }; } &&
17760 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17762 (eval $ac_try) 2>&5
17763 ac_status=$?
17764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17765 (exit $ac_status); }; }; then
17766 ac_lo=0 ac_mid=0
17767 while :; do
17768 cat >conftest.$ac_ext <<_ACEOF
17769/* confdefs.h. */
17770_ACEOF
17771cat confdefs.h >>conftest.$ac_ext
17772cat >>conftest.$ac_ext <<_ACEOF
17773/* end confdefs.h. */
17774$ac_includes_default
17775int
17776main ()
17777{
17778static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
17779test_array [0] = 0
17780
17781 ;
17782 return 0;
17783}
17784_ACEOF
17785rm -f conftest.$ac_objext
17786if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17787 (eval $ac_compile) 2>conftest.er1
a848cd7e 17788 ac_status=$?
ac1cb8d3
VS
17789 grep -v '^ *+' conftest.er1 >conftest.err
17790 rm -f conftest.er1
17791 cat conftest.err >&5
a848cd7e
SC
17792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17793 (exit $ac_status); } &&
ffa0583f 17794 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17796 (eval $ac_try) 2>&5
17797 ac_status=$?
17798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17799 (exit $ac_status); }; } &&
17800 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17802 (eval $ac_try) 2>&5
17803 ac_status=$?
17804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17805 (exit $ac_status); }; }; then
17806 ac_hi=$ac_mid; break
17807else
17808 echo "$as_me: failed program was:" >&5
17809sed 's/^/| /' conftest.$ac_ext >&5
17810
17811ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
17812 if test $ac_lo -le $ac_mid; then
17813 ac_lo= ac_hi=
17814 break
17815 fi
17816 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 17817fi
ac1cb8d3 17818rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17819 done
17820else
17821 echo "$as_me: failed program was:" >&5
17822sed 's/^/| /' conftest.$ac_ext >&5
17823
17824cat >conftest.$ac_ext <<_ACEOF
17825/* confdefs.h. */
17826_ACEOF
17827cat confdefs.h >>conftest.$ac_ext
17828cat >>conftest.$ac_ext <<_ACEOF
17829/* end confdefs.h. */
17830$ac_includes_default
17831int
17832main ()
17833{
17834static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
17835test_array [0] = 0
17836
17837 ;
17838 return 0;
17839}
17840_ACEOF
17841rm -f conftest.$ac_objext
17842if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17843 (eval $ac_compile) 2>conftest.er1
a848cd7e 17844 ac_status=$?
ac1cb8d3
VS
17845 grep -v '^ *+' conftest.er1 >conftest.err
17846 rm -f conftest.er1
17847 cat conftest.err >&5
a848cd7e
SC
17848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17849 (exit $ac_status); } &&
ffa0583f 17850 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
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); }; } &&
17856 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17858 (eval $ac_try) 2>&5
17859 ac_status=$?
17860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17861 (exit $ac_status); }; }; then
17862 ac_hi=-1 ac_mid=-1
17863 while :; do
17864 cat >conftest.$ac_ext <<_ACEOF
17865/* confdefs.h. */
17866_ACEOF
17867cat confdefs.h >>conftest.$ac_ext
17868cat >>conftest.$ac_ext <<_ACEOF
17869/* end confdefs.h. */
17870$ac_includes_default
17871int
17872main ()
17873{
17874static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
17875test_array [0] = 0
17876
17877 ;
17878 return 0;
17879}
17880_ACEOF
17881rm -f conftest.$ac_objext
17882if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17883 (eval $ac_compile) 2>conftest.er1
a848cd7e 17884 ac_status=$?
ac1cb8d3
VS
17885 grep -v '^ *+' conftest.er1 >conftest.err
17886 rm -f conftest.er1
17887 cat conftest.err >&5
a848cd7e
SC
17888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17889 (exit $ac_status); } &&
ffa0583f 17890 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
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); }; } &&
17896 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17898 (eval $ac_try) 2>&5
17899 ac_status=$?
17900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17901 (exit $ac_status); }; }; then
17902 ac_lo=$ac_mid; break
17903else
17904 echo "$as_me: failed program was:" >&5
17905sed 's/^/| /' conftest.$ac_ext >&5
17906
17907ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
17908 if test $ac_mid -le $ac_hi; then
17909 ac_lo= ac_hi=
17910 break
17911 fi
17912 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 17913fi
ac1cb8d3 17914rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17915 done
17916else
17917 echo "$as_me: failed program was:" >&5
17918sed 's/^/| /' conftest.$ac_ext >&5
17919
17920ac_lo= ac_hi=
17921fi
ac1cb8d3 17922rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 17923fi
ac1cb8d3 17924rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17925# Binary search between lo and hi bounds.
17926while test "x$ac_lo" != "x$ac_hi"; do
17927 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
17928 cat >conftest.$ac_ext <<_ACEOF
17929/* confdefs.h. */
17930_ACEOF
17931cat confdefs.h >>conftest.$ac_ext
17932cat >>conftest.$ac_ext <<_ACEOF
17933/* end confdefs.h. */
17934$ac_includes_default
17935int
17936main ()
17937{
17938static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
17939test_array [0] = 0
17940
17941 ;
17942 return 0;
17943}
17944_ACEOF
17945rm -f conftest.$ac_objext
17946if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17947 (eval $ac_compile) 2>conftest.er1
a848cd7e 17948 ac_status=$?
ac1cb8d3
VS
17949 grep -v '^ *+' conftest.er1 >conftest.err
17950 rm -f conftest.er1
17951 cat conftest.err >&5
a848cd7e
SC
17952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17953 (exit $ac_status); } &&
ffa0583f 17954 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17956 (eval $ac_try) 2>&5
17957 ac_status=$?
17958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17959 (exit $ac_status); }; } &&
17960 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17962 (eval $ac_try) 2>&5
17963 ac_status=$?
17964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17965 (exit $ac_status); }; }; then
17966 ac_hi=$ac_mid
17967else
17968 echo "$as_me: failed program was:" >&5
17969sed 's/^/| /' conftest.$ac_ext >&5
17970
17971ac_lo=`expr '(' $ac_mid ')' + 1`
17972fi
ac1cb8d3 17973rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17974done
17975case $ac_lo in
17976?*) ac_cv_sizeof_long_long=$ac_lo;;
17977'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
17978See \`config.log' for more details." >&5
17979echo "$as_me: error: cannot compute sizeof (long long), 77
17980See \`config.log' for more details." >&2;}
17981 { (exit 1); exit 1; }; } ;;
17982esac
17983else
17984 if test "$cross_compiling" = yes; then
ffa0583f
RL
17985 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
17986echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
17987 { (exit 1); exit 1; }; }
17988else
17989 cat >conftest.$ac_ext <<_ACEOF
17990/* confdefs.h. */
17991_ACEOF
17992cat confdefs.h >>conftest.$ac_ext
17993cat >>conftest.$ac_ext <<_ACEOF
17994/* end confdefs.h. */
17995$ac_includes_default
17996long longval () { return (long) (sizeof (long long)); }
17997unsigned long ulongval () { return (long) (sizeof (long long)); }
17998#include <stdio.h>
17999#include <stdlib.h>
18000int
18001main ()
18002{
18003
18004 FILE *f = fopen ("conftest.val", "w");
18005 if (! f)
18006 exit (1);
18007 if (((long) (sizeof (long long))) < 0)
18008 {
18009 long i = longval ();
18010 if (i != ((long) (sizeof (long long))))
18011 exit (1);
18012 fprintf (f, "%ld\n", i);
18013 }
18014 else
18015 {
18016 unsigned long i = ulongval ();
18017 if (i != ((long) (sizeof (long long))))
18018 exit (1);
18019 fprintf (f, "%lu\n", i);
18020 }
18021 exit (ferror (f) || fclose (f) != 0);
18022
18023 ;
18024 return 0;
18025}
18026_ACEOF
18027rm -f conftest$ac_exeext
18028if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18029 (eval $ac_link) 2>&5
18030 ac_status=$?
18031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18032 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18034 (eval $ac_try) 2>&5
18035 ac_status=$?
18036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18037 (exit $ac_status); }; }; then
18038 ac_cv_sizeof_long_long=`cat conftest.val`
18039else
18040 echo "$as_me: program exited with status $ac_status" >&5
18041echo "$as_me: failed program was:" >&5
18042sed 's/^/| /' conftest.$ac_ext >&5
18043
18044( exit $ac_status )
18045{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
18046See \`config.log' for more details." >&5
18047echo "$as_me: error: cannot compute sizeof (long long), 77
18048See \`config.log' for more details." >&2;}
18049 { (exit 1); exit 1; }; }
18050fi
ac1cb8d3 18051rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18052fi
18053fi
18054rm -f conftest.val
18055else
18056 ac_cv_sizeof_long_long=0
18057fi
18058fi
18059echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
18060echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
18061cat >>confdefs.h <<_ACEOF
18062#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
18063_ACEOF
18064
18065
18066esac
18067
18068echo "$as_me:$LINENO: checking size of wchar_t" >&5
18069echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6
18070if test "${wx_cv_sizeof_wchar_t+set}" = set; then
18071 echo $ECHO_N "(cached) $ECHO_C" >&6
18072else
18073
18074 if test "$cross_compiling" = yes; then
18075
18076 case "${host}" in
18077 *-pc-msdosdjgpp )
18078 wx_cv_sizeof_wchar_t=0
18079 ;;
18080 * )
18081 wx_cv_sizeof_wchar_t=4
18082 ;;
18083 esac
18084
18085
18086else
18087 cat >conftest.$ac_ext <<_ACEOF
18088/* confdefs.h. */
18089_ACEOF
18090cat confdefs.h >>conftest.$ac_ext
18091cat >>conftest.$ac_ext <<_ACEOF
18092/* end confdefs.h. */
18093
18094 /* DJGPP only has fake wchar_t: */
18095 #ifdef __DJGPP__
18096 # error "fake wchar_t"
18097 #endif
18098 #ifdef HAVE_WCHAR_H
18099 # ifdef __CYGWIN__
18100 # include <stddef.h>
18101 # endif
18102 # include <wchar.h>
18103 #endif
18104 #ifdef HAVE_STDLIB_H
18105 # include <stdlib.h>
18106 #endif
18107 #include <stdio.h>
18108 int main()
18109 {
18110 FILE *f=fopen("conftestval", "w");
18111 if (!f) exit(1);
18112 fprintf(f, "%i", sizeof(wchar_t));
18113 exit(0);
18114 }
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 wx_cv_sizeof_wchar_t=`cat conftestval`
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 )
18135wx_cv_sizeof_wchar_t=0
18136fi
ac1cb8d3 18137rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18138fi
18139
18140fi
18141echo "$as_me:$LINENO: result: $wx_cv_sizeof_wchar_t" >&5
18142echo "${ECHO_T}$wx_cv_sizeof_wchar_t" >&6
18143
18144cat >>confdefs.h <<_ACEOF
18145#define SIZEOF_WCHAR_T $wx_cv_sizeof_wchar_t
18146_ACEOF
18147
18148
ba3d13e1
VZ
18149echo "$as_me:$LINENO: checking for va_copy" >&5
18150echo $ECHO_N "checking for va_copy... $ECHO_C" >&6
18151if test "${wx_cv_func_va_copy+set}" = set; then
18152 echo $ECHO_N "(cached) $ECHO_C" >&6
18153else
18154
18155 cat >conftest.$ac_ext <<_ACEOF
18156
18157 #include <stdarg.h>
18158 void foo(char *f, ...)
18159 {
18160 va_list ap1, ap2;
18161 va_start(ap1, f);
18162 va_copy(ap2, ap1);
18163 va_end(ap2);
18164 va_end(ap1);
18165 }
18166_ACEOF
18167rm -f conftest.$ac_objext conftest$ac_exeext
18168if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18169 (eval $ac_link) 2>conftest.er1
18170 ac_status=$?
18171 grep -v '^ *+' conftest.er1 >conftest.err
18172 rm -f conftest.er1
18173 cat conftest.err >&5
18174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18175 (exit $ac_status); } &&
ffa0583f 18176 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ba3d13e1
VZ
18177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18178 (eval $ac_try) 2>&5
18179 ac_status=$?
18180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18181 (exit $ac_status); }; } &&
18182 { ac_try='test -s conftest$ac_exeext'
18183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18184 (eval $ac_try) 2>&5
18185 ac_status=$?
18186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18187 (exit $ac_status); }; }; then
18188 wx_cv_func_va_copy=yes
18189else
18190 echo "$as_me: failed program was:" >&5
18191sed 's/^/| /' conftest.$ac_ext >&5
18192
18193wx_cv_func_va_copy=no
18194
18195fi
18196rm -f conftest.err conftest.$ac_objext \
18197 conftest$ac_exeext conftest.$ac_ext
18198
18199
18200fi
18201echo "$as_me:$LINENO: result: $wx_cv_func_va_copy" >&5
18202echo "${ECHO_T}$wx_cv_func_va_copy" >&6
18203
18204if test $wx_cv_func_va_copy = "yes"; then
18205 cat >>confdefs.h <<\_ACEOF
18206#define HAVE_VA_COPY 1
18207_ACEOF
18208
18209else
18210 echo "$as_me:$LINENO: checking if va_list can be copied by value" >&5
18211echo $ECHO_N "checking if va_list can be copied by value... $ECHO_C" >&6
18212if test "${wx_cv_type_va_list_lvalue+set}" = set; then
18213 echo $ECHO_N "(cached) $ECHO_C" >&6
18214else
18215
18216 if test "$cross_compiling" = yes; then
18217 wx_cv_type_va_list_lvalue=yes
18218
18219else
18220 cat >conftest.$ac_ext <<_ACEOF
18221
18222 #include <stdarg.h>
18223 int foo(char *f, ...)
18224 {
18225 va_list ap1, ap2;
18226 va_start(ap1, f);
18227 ap2 = ap1;
18228 if ( va_arg(ap1, int) != 17 || va_arg(ap2, int) != 17 )
18229 return 1;
18230 va_end(ap2);
18231 va_end(ap1);
18232 return 0;
18233 }
18234 int main()
18235 {
18236 return foo("hi", 17);
18237 }
18238_ACEOF
18239rm -f conftest$ac_exeext
18240if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18241 (eval $ac_link) 2>&5
18242 ac_status=$?
18243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18244 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18246 (eval $ac_try) 2>&5
18247 ac_status=$?
18248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18249 (exit $ac_status); }; }; then
18250 wx_cv_type_va_list_lvalue=yes
18251else
18252 echo "$as_me: program exited with status $ac_status" >&5
18253echo "$as_me: failed program was:" >&5
18254sed 's/^/| /' conftest.$ac_ext >&5
18255
18256( exit $ac_status )
18257wx_cv_type_va_list_lvalue=no
18258fi
18259rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18260fi
18261
18262
18263fi
18264echo "$as_me:$LINENO: result: $wx_cv_type_va_list_lvalue" >&5
18265echo "${ECHO_T}$wx_cv_type_va_list_lvalue" >&6
18266
18267 if test $wx_cv_type_va_list_lvalue != "yes"; then
18268 cat >>confdefs.h <<\_ACEOF
18269#define VA_LIST_IS_ARRAY 1
18270_ACEOF
18271
18272 fi
18273fi
18274
a848cd7e
SC
18275# Check whether --enable-largefile or --disable-largefile was given.
18276if test "${enable_largefile+set}" = set; then
18277 enableval="$enable_largefile"
18278
18279fi;
18280if test "$enable_largefile" != no; then
18281 wx_largefile=no
18282
18283 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
18284echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
18285if test "${ac_cv_sys_file_offset_bits+set}" = set; then
18286 echo $ECHO_N "(cached) $ECHO_C" >&6
18287else
18288
18289 cat >conftest.$ac_ext <<_ACEOF
18290/* confdefs.h. */
18291_ACEOF
18292cat confdefs.h >>conftest.$ac_ext
18293cat >>conftest.$ac_ext <<_ACEOF
18294/* end confdefs.h. */
18295#define _FILE_OFFSET_BITS 64
18296 #include <sys/types.h>
18297int
18298main ()
18299{
18300typedef struct {
18301 unsigned int field: sizeof(off_t) == 8;
18302} wxlf;
18303
18304 ;
18305 return 0;
18306}
18307_ACEOF
18308rm -f conftest.$ac_objext
18309if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18310 (eval $ac_compile) 2>conftest.er1
a848cd7e 18311 ac_status=$?
ac1cb8d3
VS
18312 grep -v '^ *+' conftest.er1 >conftest.err
18313 rm -f conftest.er1
18314 cat conftest.err >&5
a848cd7e
SC
18315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18316 (exit $ac_status); } &&
ffa0583f 18317 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18319 (eval $ac_try) 2>&5
18320 ac_status=$?
18321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18322 (exit $ac_status); }; } &&
18323 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18325 (eval $ac_try) 2>&5
18326 ac_status=$?
18327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18328 (exit $ac_status); }; }; then
18329 ac_cv_sys_file_offset_bits=64
18330else
18331 echo "$as_me: failed program was:" >&5
18332sed 's/^/| /' conftest.$ac_ext >&5
18333
18334ac_cv_sys_file_offset_bits=no
18335fi
ac1cb8d3 18336rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18337
18338
18339fi
18340echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
18341echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
18342
18343 if test "$ac_cv_sys_file_offset_bits" != no; then
18344 wx_largefile=yes
18345 cat >>confdefs.h <<_ACEOF
18346#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
18347_ACEOF
18348
18349 fi
18350
18351 if test "x$wx_largefile" != "xyes"; then
18352
18353 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
18354echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
18355if test "${ac_cv_sys_large_files+set}" = set; then
18356 echo $ECHO_N "(cached) $ECHO_C" >&6
18357else
18358
18359 cat >conftest.$ac_ext <<_ACEOF
18360/* confdefs.h. */
18361_ACEOF
18362cat confdefs.h >>conftest.$ac_ext
18363cat >>conftest.$ac_ext <<_ACEOF
18364/* end confdefs.h. */
18365#define _LARGE_FILES 1
18366 #include <sys/types.h>
18367int
18368main ()
18369{
18370typedef struct {
18371 unsigned int field: sizeof(off_t) == 8;
18372} wxlf;
18373
18374 ;
18375 return 0;
18376}
18377_ACEOF
18378rm -f conftest.$ac_objext
18379if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18380 (eval $ac_compile) 2>conftest.er1
a848cd7e 18381 ac_status=$?
ac1cb8d3
VS
18382 grep -v '^ *+' conftest.er1 >conftest.err
18383 rm -f conftest.er1
18384 cat conftest.err >&5
a848cd7e
SC
18385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18386 (exit $ac_status); } &&
ffa0583f 18387 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18389 (eval $ac_try) 2>&5
18390 ac_status=$?
18391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18392 (exit $ac_status); }; } &&
18393 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18395 (eval $ac_try) 2>&5
18396 ac_status=$?
18397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18398 (exit $ac_status); }; }; then
18399 ac_cv_sys_large_files=1
18400else
18401 echo "$as_me: failed program was:" >&5
18402sed 's/^/| /' conftest.$ac_ext >&5
18403
18404ac_cv_sys_large_files=no
18405fi
ac1cb8d3 18406rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18407
18408
18409fi
18410echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
18411echo "${ECHO_T}$ac_cv_sys_large_files" >&6
18412
18413 if test "$ac_cv_sys_large_files" != no; then
18414 wx_largefile=yes
18415 cat >>confdefs.h <<_ACEOF
18416#define _LARGE_FILES $ac_cv_sys_large_files
18417_ACEOF
18418
18419 fi
18420
18421 fi
18422
18423 echo "$as_me:$LINENO: checking if large file support is available" >&5
18424echo $ECHO_N "checking if large file support is available... $ECHO_C" >&6
18425 if test "x$wx_largefile" = "xyes"; then
18426 cat >>confdefs.h <<\_ACEOF
18427#define HAVE_LARGEFILE_SUPPORT 1
18428_ACEOF
18429
18430 fi
18431 echo "$as_me:$LINENO: result: $wx_largefile" >&5
18432echo "${ECHO_T}$wx_largefile" >&6
18433fi
18434
18435
18436if test "x$wx_largefile" = "xyes"; then
18437 if test "x$ac_cv_sys_file_offset_bits" = "x64"; then
18438 WX_LARGEFILE_FLAGS="-D_FILE_OFFSET_BITS=64 -D_LARGE_FILES"
18439 else
18440 WX_LARGEFILE_FLAGS="-D_LARGE_FILES"
18441 fi
18442 CPPFLAGS="$CPPFLAGS $WX_LARGEFILE_FLAGS"
18443fi
18444
18445echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
18446echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
18447if test "${ac_cv_c_bigendian+set}" = set; then
18448 echo $ECHO_N "(cached) $ECHO_C" >&6
18449else
18450 ac_cv_c_bigendian=unknown
18451# See if sys/param.h defines the BYTE_ORDER macro.
18452cat >conftest.$ac_ext <<_ACEOF
18453/* confdefs.h. */
18454_ACEOF
18455cat confdefs.h >>conftest.$ac_ext
18456cat >>conftest.$ac_ext <<_ACEOF
18457/* end confdefs.h. */
18458#include <sys/types.h>
18459#include <sys/param.h>
18460int
18461main ()
18462{
18463
18464#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
18465 bogus endian macros
18466#endif
18467 ;
18468 return 0;
18469}
18470_ACEOF
18471rm -f conftest.$ac_objext
18472if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18473 (eval $ac_compile) 2>conftest.er1
a848cd7e 18474 ac_status=$?
ac1cb8d3
VS
18475 grep -v '^ *+' conftest.er1 >conftest.err
18476 rm -f conftest.er1
18477 cat conftest.err >&5
a848cd7e
SC
18478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18479 (exit $ac_status); } &&
ffa0583f 18480 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18482 (eval $ac_try) 2>&5
18483 ac_status=$?
18484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18485 (exit $ac_status); }; } &&
18486 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18488 (eval $ac_try) 2>&5
18489 ac_status=$?
18490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18491 (exit $ac_status); }; }; then
18492 # It does; now see whether it defined to BIG_ENDIAN or not.
18493cat >conftest.$ac_ext <<_ACEOF
18494/* confdefs.h. */
18495_ACEOF
18496cat confdefs.h >>conftest.$ac_ext
18497cat >>conftest.$ac_ext <<_ACEOF
18498/* end confdefs.h. */
18499#include <sys/types.h>
18500#include <sys/param.h>
18501int
18502main ()
18503{
18504
18505#if BYTE_ORDER != BIG_ENDIAN
18506 not big endian
18507#endif
18508 ;
18509 return 0;
18510}
18511_ACEOF
18512rm -f conftest.$ac_objext
18513if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18514 (eval $ac_compile) 2>conftest.er1
a848cd7e 18515 ac_status=$?
ac1cb8d3
VS
18516 grep -v '^ *+' conftest.er1 >conftest.err
18517 rm -f conftest.er1
18518 cat conftest.err >&5
a848cd7e
SC
18519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18520 (exit $ac_status); } &&
ffa0583f 18521 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18523 (eval $ac_try) 2>&5
18524 ac_status=$?
18525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18526 (exit $ac_status); }; } &&
18527 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18529 (eval $ac_try) 2>&5
18530 ac_status=$?
18531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18532 (exit $ac_status); }; }; then
18533 ac_cv_c_bigendian=yes
18534else
18535 echo "$as_me: failed program was:" >&5
18536sed 's/^/| /' conftest.$ac_ext >&5
18537
18538ac_cv_c_bigendian=no
18539fi
ac1cb8d3 18540rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18541else
18542 echo "$as_me: failed program was:" >&5
18543sed 's/^/| /' conftest.$ac_ext >&5
18544
18545fi
ac1cb8d3 18546rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18547if test $ac_cv_c_bigendian = unknown; then
18548if test "$cross_compiling" = yes; then
18549 ac_cv_c_bigendian=unknown
18550else
18551 cat >conftest.$ac_ext <<_ACEOF
18552/* confdefs.h. */
18553_ACEOF
18554cat confdefs.h >>conftest.$ac_ext
18555cat >>conftest.$ac_ext <<_ACEOF
18556/* end confdefs.h. */
18557main () {
18558 /* Are we little or big endian? From Harbison&Steele. */
18559 union
18560 {
18561 long l;
18562 char c[sizeof (long)];
18563 } u;
18564 u.l = 1;
18565 exit (u.c[sizeof (long) - 1] == 1);
18566}
18567_ACEOF
18568rm -f conftest$ac_exeext
18569if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18570 (eval $ac_link) 2>&5
18571 ac_status=$?
18572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18573 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18575 (eval $ac_try) 2>&5
18576 ac_status=$?
18577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18578 (exit $ac_status); }; }; then
18579 ac_cv_c_bigendian=no
18580else
18581 echo "$as_me: program exited with status $ac_status" >&5
18582echo "$as_me: failed program was:" >&5
18583sed 's/^/| /' conftest.$ac_ext >&5
18584
18585( exit $ac_status )
18586ac_cv_c_bigendian=yes
18587fi
ac1cb8d3 18588rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18589fi
18590fi
18591fi
18592echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
18593echo "${ECHO_T}$ac_cv_c_bigendian" >&6
18594if test $ac_cv_c_bigendian = unknown; then
18595 { 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
18596echo "$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;}
18597fi
18598if test $ac_cv_c_bigendian = yes; then
18599 cat >>confdefs.h <<\_ACEOF
18600#define WORDS_BIGENDIAN 1
18601_ACEOF
18602
18603fi
18604
18605
18606ac_ext=cc
18607ac_cpp='$CXXCPP $CPPFLAGS'
18608ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18609ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18610ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18611echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
18612echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
18613if test -z "$CXXCPP"; then
18614 if test "${ac_cv_prog_CXXCPP+set}" = set; then
18615 echo $ECHO_N "(cached) $ECHO_C" >&6
18616else
18617 # Double quotes because CXXCPP needs to be expanded
18618 for CXXCPP in "$CXX -E" "/lib/cpp"
18619 do
18620 ac_preproc_ok=false
18621for ac_cxx_preproc_warn_flag in '' yes
18622do
18623 # Use a header file that comes with gcc, so configuring glibc
18624 # with a fresh cross-compiler works.
18625 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18626 # <limits.h> exists even on freestanding compilers.
18627 # On the NeXT, cc -E runs the code through the compiler's parser,
18628 # not just through cpp. "Syntax error" is here to catch this case.
18629 cat >conftest.$ac_ext <<_ACEOF
18630/* confdefs.h. */
18631_ACEOF
18632cat confdefs.h >>conftest.$ac_ext
18633cat >>conftest.$ac_ext <<_ACEOF
18634/* end confdefs.h. */
18635#ifdef __STDC__
18636# include <limits.h>
18637#else
18638# include <assert.h>
18639#endif
ac1cb8d3 18640 Syntax error
a848cd7e
SC
18641_ACEOF
18642if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18643 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18644 ac_status=$?
18645 grep -v '^ *+' conftest.er1 >conftest.err
18646 rm -f conftest.er1
18647 cat conftest.err >&5
18648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18649 (exit $ac_status); } >/dev/null; then
18650 if test -s conftest.err; then
18651 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 18652 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
18653 else
18654 ac_cpp_err=
18655 fi
18656else
18657 ac_cpp_err=yes
18658fi
18659if test -z "$ac_cpp_err"; then
18660 :
18661else
18662 echo "$as_me: failed program was:" >&5
18663sed 's/^/| /' conftest.$ac_ext >&5
18664
18665 # Broken: fails on valid input.
18666continue
18667fi
18668rm -f conftest.err conftest.$ac_ext
18669
18670 # OK, works on sane cases. Now check whether non-existent headers
18671 # can be detected and how.
18672 cat >conftest.$ac_ext <<_ACEOF
18673/* confdefs.h. */
18674_ACEOF
18675cat confdefs.h >>conftest.$ac_ext
18676cat >>conftest.$ac_ext <<_ACEOF
18677/* end confdefs.h. */
18678#include <ac_nonexistent.h>
18679_ACEOF
18680if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18681 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18682 ac_status=$?
18683 grep -v '^ *+' conftest.er1 >conftest.err
18684 rm -f conftest.er1
18685 cat conftest.err >&5
18686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18687 (exit $ac_status); } >/dev/null; then
18688 if test -s conftest.err; then
18689 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 18690 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
18691 else
18692 ac_cpp_err=
18693 fi
18694else
18695 ac_cpp_err=yes
18696fi
18697if test -z "$ac_cpp_err"; then
18698 # Broken: success on invalid input.
18699continue
18700else
18701 echo "$as_me: failed program was:" >&5
18702sed 's/^/| /' conftest.$ac_ext >&5
18703
18704 # Passes both tests.
18705ac_preproc_ok=:
18706break
18707fi
18708rm -f conftest.err conftest.$ac_ext
18709
18710done
18711# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18712rm -f conftest.err conftest.$ac_ext
18713if $ac_preproc_ok; then
18714 break
18715fi
18716
18717 done
18718 ac_cv_prog_CXXCPP=$CXXCPP
18719
18720fi
18721 CXXCPP=$ac_cv_prog_CXXCPP
18722else
18723 ac_cv_prog_CXXCPP=$CXXCPP
18724fi
18725echo "$as_me:$LINENO: result: $CXXCPP" >&5
18726echo "${ECHO_T}$CXXCPP" >&6
18727ac_preproc_ok=false
18728for ac_cxx_preproc_warn_flag in '' yes
18729do
18730 # Use a header file that comes with gcc, so configuring glibc
18731 # with a fresh cross-compiler works.
18732 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18733 # <limits.h> exists even on freestanding compilers.
18734 # On the NeXT, cc -E runs the code through the compiler's parser,
18735 # not just through cpp. "Syntax error" is here to catch this case.
18736 cat >conftest.$ac_ext <<_ACEOF
18737/* confdefs.h. */
18738_ACEOF
18739cat confdefs.h >>conftest.$ac_ext
18740cat >>conftest.$ac_ext <<_ACEOF
18741/* end confdefs.h. */
18742#ifdef __STDC__
18743# include <limits.h>
18744#else
18745# include <assert.h>
18746#endif
ac1cb8d3 18747 Syntax error
a848cd7e
SC
18748_ACEOF
18749if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18750 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18751 ac_status=$?
18752 grep -v '^ *+' conftest.er1 >conftest.err
18753 rm -f conftest.er1
18754 cat conftest.err >&5
18755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18756 (exit $ac_status); } >/dev/null; then
18757 if test -s conftest.err; then
18758 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 18759 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
18760 else
18761 ac_cpp_err=
18762 fi
18763else
18764 ac_cpp_err=yes
18765fi
18766if test -z "$ac_cpp_err"; then
18767 :
18768else
18769 echo "$as_me: failed program was:" >&5
18770sed 's/^/| /' conftest.$ac_ext >&5
18771
18772 # Broken: fails on valid input.
18773continue
18774fi
18775rm -f conftest.err conftest.$ac_ext
18776
18777 # OK, works on sane cases. Now check whether non-existent headers
18778 # can be detected and how.
18779 cat >conftest.$ac_ext <<_ACEOF
18780/* confdefs.h. */
18781_ACEOF
18782cat confdefs.h >>conftest.$ac_ext
18783cat >>conftest.$ac_ext <<_ACEOF
18784/* end confdefs.h. */
18785#include <ac_nonexistent.h>
18786_ACEOF
18787if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18788 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18789 ac_status=$?
18790 grep -v '^ *+' conftest.er1 >conftest.err
18791 rm -f conftest.er1
18792 cat conftest.err >&5
18793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18794 (exit $ac_status); } >/dev/null; then
18795 if test -s conftest.err; then
18796 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 18797 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
18798 else
18799 ac_cpp_err=
18800 fi
18801else
18802 ac_cpp_err=yes
18803fi
18804if test -z "$ac_cpp_err"; then
18805 # Broken: success on invalid input.
18806continue
18807else
18808 echo "$as_me: failed program was:" >&5
18809sed 's/^/| /' conftest.$ac_ext >&5
18810
18811 # Passes both tests.
18812ac_preproc_ok=:
18813break
18814fi
18815rm -f conftest.err conftest.$ac_ext
18816
18817done
18818# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18819rm -f conftest.err conftest.$ac_ext
18820if $ac_preproc_ok; then
18821 :
18822else
18823 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
18824See \`config.log' for more details." >&5
18825echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
18826See \`config.log' for more details." >&2;}
18827 { (exit 1); exit 1; }; }
18828fi
18829
18830ac_ext=cc
18831ac_cpp='$CXXCPP $CPPFLAGS'
18832ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18833ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18834ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18835
18836
18837
18838
18839
18840 ac_ext=cc
18841ac_cpp='$CXXCPP $CPPFLAGS'
18842ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18843ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18844ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18845
18846
18847
18848for ac_header in iostream
18849do
18850as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18851if eval "test \"\${$as_ac_Header+set}\" = set"; then
18852 echo "$as_me:$LINENO: checking for $ac_header" >&5
18853echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18854if eval "test \"\${$as_ac_Header+set}\" = set"; then
18855 echo $ECHO_N "(cached) $ECHO_C" >&6
18856fi
18857echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18858echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18859else
18860 # Is the header compilable?
18861echo "$as_me:$LINENO: checking $ac_header usability" >&5
18862echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18863cat >conftest.$ac_ext <<_ACEOF
18864/* confdefs.h. */
18865_ACEOF
18866cat confdefs.h >>conftest.$ac_ext
18867cat >>conftest.$ac_ext <<_ACEOF
18868/* end confdefs.h. */
18869$ac_includes_default
18870#include <$ac_header>
18871_ACEOF
18872rm -f conftest.$ac_objext
18873if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18874 (eval $ac_compile) 2>conftest.er1
a848cd7e 18875 ac_status=$?
ac1cb8d3
VS
18876 grep -v '^ *+' conftest.er1 >conftest.err
18877 rm -f conftest.er1
18878 cat conftest.err >&5
a848cd7e
SC
18879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18880 (exit $ac_status); } &&
ffa0583f 18881 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18883 (eval $ac_try) 2>&5
18884 ac_status=$?
18885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18886 (exit $ac_status); }; } &&
18887 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18889 (eval $ac_try) 2>&5
18890 ac_status=$?
18891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18892 (exit $ac_status); }; }; then
18893 ac_header_compiler=yes
18894else
18895 echo "$as_me: failed program was:" >&5
18896sed 's/^/| /' conftest.$ac_ext >&5
18897
18898ac_header_compiler=no
18899fi
ac1cb8d3 18900rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18901echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18902echo "${ECHO_T}$ac_header_compiler" >&6
18903
18904# Is the header present?
18905echo "$as_me:$LINENO: checking $ac_header presence" >&5
18906echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18907cat >conftest.$ac_ext <<_ACEOF
18908/* confdefs.h. */
18909_ACEOF
18910cat confdefs.h >>conftest.$ac_ext
18911cat >>conftest.$ac_ext <<_ACEOF
18912/* end confdefs.h. */
18913#include <$ac_header>
18914_ACEOF
18915if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18916 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18917 ac_status=$?
18918 grep -v '^ *+' conftest.er1 >conftest.err
18919 rm -f conftest.er1
18920 cat conftest.err >&5
18921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18922 (exit $ac_status); } >/dev/null; then
18923 if test -s conftest.err; then
18924 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 18925 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
18926 else
18927 ac_cpp_err=
18928 fi
18929else
18930 ac_cpp_err=yes
18931fi
18932if test -z "$ac_cpp_err"; then
18933 ac_header_preproc=yes
18934else
18935 echo "$as_me: failed program was:" >&5
18936sed 's/^/| /' conftest.$ac_ext >&5
18937
18938 ac_header_preproc=no
18939fi
18940rm -f conftest.err conftest.$ac_ext
18941echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18942echo "${ECHO_T}$ac_header_preproc" >&6
18943
18944# So? What about this header?
ac1cb8d3
VS
18945case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
18946 yes:no: )
a848cd7e
SC
18947 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18948echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
18949 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18950echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18951 ac_header_preproc=yes
a848cd7e 18952 ;;
ac1cb8d3 18953 no:yes:* )
a848cd7e
SC
18954 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18955echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
18956 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18957echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18958 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18959echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18960 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18961echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
18962 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18963echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
18964 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18965echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
18966 (
18967 cat <<\_ASBOX
ac1cb8d3
VS
18968## ----------------------------------------- ##
18969## Report this to wx-dev@lists.wxwidgets.org ##
18970## ----------------------------------------- ##
a848cd7e
SC
18971_ASBOX
18972 ) |
18973 sed "s/^/$as_me: WARNING: /" >&2
18974 ;;
18975esac
18976echo "$as_me:$LINENO: checking for $ac_header" >&5
18977echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18978if eval "test \"\${$as_ac_Header+set}\" = set"; then
18979 echo $ECHO_N "(cached) $ECHO_C" >&6
18980else
ac1cb8d3 18981 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
18982fi
18983echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18984echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18985
18986fi
18987if test `eval echo '${'$as_ac_Header'}'` = yes; then
18988 cat >>confdefs.h <<_ACEOF
18989#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18990_ACEOF
18991
18992fi
18993
18994done
18995
18996
18997 if test "$ac_cv_header_iostream" = "yes" ; then
18998 :
18999 else
19000 cat >>confdefs.h <<\_ACEOF
19001#define wxUSE_IOSTREAMH 1
19002_ACEOF
19003
19004 fi
19005
19006 ac_ext=c
19007ac_cpp='$CPP $CPPFLAGS'
19008ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19009ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19010ac_compiler_gnu=$ac_cv_c_compiler_gnu
19011
19012
19013
19014
19015 echo "$as_me:$LINENO: checking if C++ compiler supports bool" >&5
19016echo $ECHO_N "checking if C++ compiler supports bool... $ECHO_C" >&6
19017if test "${wx_cv_cpp_bool+set}" = set; then
19018 echo $ECHO_N "(cached) $ECHO_C" >&6
19019else
19020
19021
19022
19023 ac_ext=cc
19024ac_cpp='$CXXCPP $CPPFLAGS'
19025ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19026ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19027ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19028
19029
19030 cat >conftest.$ac_ext <<_ACEOF
19031/* confdefs.h. */
19032_ACEOF
19033cat confdefs.h >>conftest.$ac_ext
19034cat >>conftest.$ac_ext <<_ACEOF
19035/* end confdefs.h. */
19036
19037
19038int
19039main ()
19040{
19041
19042 bool b = true;
19043
19044 return 0;
19045
19046 ;
19047 return 0;
19048}
19049_ACEOF
19050rm -f conftest.$ac_objext
19051if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19052 (eval $ac_compile) 2>conftest.er1
a848cd7e 19053 ac_status=$?
ac1cb8d3
VS
19054 grep -v '^ *+' conftest.er1 >conftest.err
19055 rm -f conftest.er1
19056 cat conftest.err >&5
a848cd7e
SC
19057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19058 (exit $ac_status); } &&
ffa0583f 19059 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19061 (eval $ac_try) 2>&5
19062 ac_status=$?
19063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19064 (exit $ac_status); }; } &&
19065 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19067 (eval $ac_try) 2>&5
19068 ac_status=$?
19069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19070 (exit $ac_status); }; }; then
19071
19072 wx_cv_cpp_bool=yes
19073
19074else
19075 echo "$as_me: failed program was:" >&5
19076sed 's/^/| /' conftest.$ac_ext >&5
19077
19078
19079 wx_cv_cpp_bool=no
19080
19081
19082fi
ac1cb8d3 19083rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19084
19085 ac_ext=c
19086ac_cpp='$CPP $CPPFLAGS'
19087ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19088ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19089ac_compiler_gnu=$ac_cv_c_compiler_gnu
19090
19091
19092fi
19093echo "$as_me:$LINENO: result: $wx_cv_cpp_bool" >&5
19094echo "${ECHO_T}$wx_cv_cpp_bool" >&6
19095
19096 if test "$wx_cv_cpp_bool" = "yes"; then
19097 cat >>confdefs.h <<\_ACEOF
19098#define HAVE_BOOL 1
19099_ACEOF
19100
19101 fi
19102
19103
19104
19105 echo "$as_me:$LINENO: checking if C++ compiler supports the explicit keyword" >&5
19106echo $ECHO_N "checking if C++ compiler supports the explicit keyword... $ECHO_C" >&6
19107if test "${wx_cv_explicit+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 class Foo { public: explicit Foo(int) {} };
19128
19129int
19130main ()
19131{
19132
19133 return 0;
19134
19135 ;
19136 return 0;
19137}
19138_ACEOF
19139rm -f conftest.$ac_objext
19140if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19141 (eval $ac_compile) 2>conftest.er1
a848cd7e 19142 ac_status=$?
ac1cb8d3
VS
19143 grep -v '^ *+' conftest.er1 >conftest.err
19144 rm -f conftest.er1
19145 cat conftest.err >&5
a848cd7e
SC
19146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19147 (exit $ac_status); } &&
ffa0583f 19148 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19150 (eval $ac_try) 2>&5
19151 ac_status=$?
19152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19153 (exit $ac_status); }; } &&
19154 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19156 (eval $ac_try) 2>&5
19157 ac_status=$?
19158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19159 (exit $ac_status); }; }; then
19160
19161 cat >conftest.$ac_ext <<_ACEOF
19162/* confdefs.h. */
19163_ACEOF
19164cat confdefs.h >>conftest.$ac_ext
19165cat >>conftest.$ac_ext <<_ACEOF
19166/* end confdefs.h. */
19167
19168 class Foo { public: explicit Foo(int) {} };
19169 static void TakeFoo(const Foo& foo) { }
19170
19171int
19172main ()
19173{
19174
19175 TakeFoo(17);
19176 return 0;
19177
19178 ;
19179 return 0;
19180}
19181_ACEOF
19182rm -f conftest.$ac_objext
19183if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19184 (eval $ac_compile) 2>conftest.er1
a848cd7e 19185 ac_status=$?
ac1cb8d3
VS
19186 grep -v '^ *+' conftest.er1 >conftest.err
19187 rm -f conftest.er1
19188 cat conftest.err >&5
a848cd7e
SC
19189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19190 (exit $ac_status); } &&
ffa0583f 19191 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19193 (eval $ac_try) 2>&5
19194 ac_status=$?
19195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19196 (exit $ac_status); }; } &&
19197 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19199 (eval $ac_try) 2>&5
19200 ac_status=$?
19201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19202 (exit $ac_status); }; }; then
19203 wx_cv_explicit=no
19204else
19205 echo "$as_me: failed program was:" >&5
19206sed 's/^/| /' conftest.$ac_ext >&5
19207
19208wx_cv_explicit=yes
19209
19210fi
ac1cb8d3 19211rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19212
19213else
19214 echo "$as_me: failed program was:" >&5
19215sed 's/^/| /' conftest.$ac_ext >&5
19216
19217wx_cv_explicit=no
19218
19219fi
ac1cb8d3 19220rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19221
19222 ac_ext=c
19223ac_cpp='$CPP $CPPFLAGS'
19224ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19225ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19226ac_compiler_gnu=$ac_cv_c_compiler_gnu
19227
19228
19229fi
19230echo "$as_me:$LINENO: result: $wx_cv_explicit" >&5
19231echo "${ECHO_T}$wx_cv_explicit" >&6
19232
19233 if test "$wx_cv_explicit" = "yes"; then
19234 cat >>confdefs.h <<\_ACEOF
19235#define HAVE_EXPLICIT 1
19236_ACEOF
19237
19238 fi
19239
19240
19241echo "$as_me:$LINENO: checking whether the compiler supports const_cast<>" >&5
19242echo $ECHO_N "checking whether the compiler supports const_cast<>... $ECHO_C" >&6
19243if test "${ac_cv_cxx_const_cast+set}" = set; then
19244 echo $ECHO_N "(cached) $ECHO_C" >&6
19245else
19246
19247
19248 ac_ext=cc
19249ac_cpp='$CXXCPP $CPPFLAGS'
19250ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19251ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19252ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19253
19254 cat >conftest.$ac_ext <<_ACEOF
19255/* confdefs.h. */
19256_ACEOF
19257cat confdefs.h >>conftest.$ac_ext
19258cat >>conftest.$ac_ext <<_ACEOF
19259/* end confdefs.h. */
19260
19261int
19262main ()
19263{
19264int x = 0;const int& y = x;int& z = const_cast<int&>(y);return z;
19265 ;
19266 return 0;
19267}
19268_ACEOF
19269rm -f conftest.$ac_objext
19270if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19271 (eval $ac_compile) 2>conftest.er1
a848cd7e 19272 ac_status=$?
ac1cb8d3
VS
19273 grep -v '^ *+' conftest.er1 >conftest.err
19274 rm -f conftest.er1
19275 cat conftest.err >&5
a848cd7e
SC
19276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19277 (exit $ac_status); } &&
ffa0583f 19278 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19280 (eval $ac_try) 2>&5
19281 ac_status=$?
19282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19283 (exit $ac_status); }; } &&
19284 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19286 (eval $ac_try) 2>&5
19287 ac_status=$?
19288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19289 (exit $ac_status); }; }; then
19290 ac_cv_cxx_const_cast=yes
19291else
19292 echo "$as_me: failed program was:" >&5
19293sed 's/^/| /' conftest.$ac_ext >&5
19294
19295ac_cv_cxx_const_cast=no
19296fi
ac1cb8d3 19297rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19298 ac_ext=c
19299ac_cpp='$CPP $CPPFLAGS'
19300ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19301ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19302ac_compiler_gnu=$ac_cv_c_compiler_gnu
19303
19304
19305fi
19306echo "$as_me:$LINENO: result: $ac_cv_cxx_const_cast" >&5
19307echo "${ECHO_T}$ac_cv_cxx_const_cast" >&6
19308if test "$ac_cv_cxx_const_cast" = yes; then
19309
19310cat >>confdefs.h <<\_ACEOF
19311#define HAVE_CONST_CAST
19312_ACEOF
19313
19314fi
19315
7714864e
RL
19316echo "$as_me:$LINENO: checking whether the compiler supports reinterpret_cast<>" >&5
19317echo $ECHO_N "checking whether the compiler supports reinterpret_cast<>... $ECHO_C" >&6
19318if test "${ac_cv_cxx_reinterpret_cast+set}" = set; then
19319 echo $ECHO_N "(cached) $ECHO_C" >&6
19320else
19321
19322
19323 ac_ext=cc
19324ac_cpp='$CXXCPP $CPPFLAGS'
19325ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19326ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19327ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19328
19329 cat >conftest.$ac_ext <<_ACEOF
19330/* confdefs.h. */
19331_ACEOF
19332cat confdefs.h >>conftest.$ac_ext
19333cat >>conftest.$ac_ext <<_ACEOF
19334/* end confdefs.h. */
19335#include <typeinfo>
19336class Base { public : Base () {} virtual void f () = 0;};
19337class Derived : public Base { public : Derived () {} virtual void f () {} };
19338class Unrelated { public : Unrelated () {} };
19339int g (Unrelated&) { return 0; }
19340int
19341main ()
19342{
19343
19344Derived d;Base& b=d;Unrelated& e=reinterpret_cast<Unrelated&>(b);return g(e);
19345 ;
19346 return 0;
19347}
19348_ACEOF
19349rm -f conftest.$ac_objext
19350if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19351 (eval $ac_compile) 2>conftest.er1
19352 ac_status=$?
19353 grep -v '^ *+' conftest.er1 >conftest.err
19354 rm -f conftest.er1
19355 cat conftest.err >&5
19356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19357 (exit $ac_status); } &&
ffa0583f 19358 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
7714864e
RL
19359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19360 (eval $ac_try) 2>&5
19361 ac_status=$?
19362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19363 (exit $ac_status); }; } &&
19364 { ac_try='test -s conftest.$ac_objext'
19365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19366 (eval $ac_try) 2>&5
19367 ac_status=$?
19368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19369 (exit $ac_status); }; }; then
19370 ac_cv_cxx_reinterpret_cast=yes
19371else
19372 echo "$as_me: failed program was:" >&5
19373sed 's/^/| /' conftest.$ac_ext >&5
19374
19375ac_cv_cxx_reinterpret_cast=no
19376fi
19377rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19378 ac_ext=c
19379ac_cpp='$CPP $CPPFLAGS'
19380ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19381ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19382ac_compiler_gnu=$ac_cv_c_compiler_gnu
19383
19384
19385fi
19386echo "$as_me:$LINENO: result: $ac_cv_cxx_reinterpret_cast" >&5
19387echo "${ECHO_T}$ac_cv_cxx_reinterpret_cast" >&6
19388if test "$ac_cv_cxx_reinterpret_cast" = yes; then
19389
19390cat >>confdefs.h <<\_ACEOF
19391#define HAVE_REINTERPRET_CAST
19392_ACEOF
19393
19394fi
19395
a848cd7e
SC
19396echo "$as_me:$LINENO: checking whether the compiler supports static_cast<>" >&5
19397echo $ECHO_N "checking whether the compiler supports static_cast<>... $ECHO_C" >&6
19398if test "${ac_cv_cxx_static_cast+set}" = set; then
19399 echo $ECHO_N "(cached) $ECHO_C" >&6
19400else
19401
19402
19403 ac_ext=cc
19404ac_cpp='$CXXCPP $CPPFLAGS'
19405ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19406ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19407ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19408
19409 cat >conftest.$ac_ext <<_ACEOF
19410/* confdefs.h. */
19411_ACEOF
19412cat confdefs.h >>conftest.$ac_ext
19413cat >>conftest.$ac_ext <<_ACEOF
19414/* end confdefs.h. */
19415#include <typeinfo>
19416class Base { public : Base () {} virtual void f () = 0; };
19417class Derived : public Base { public : Derived () {} virtual void f () {} };
19418int g (Derived&) { return 0; }
19419int
19420main ()
19421{
19422
19423Derived d; Base& b = d; Derived& s = static_cast<Derived&> (b); return g (s);
19424 ;
19425 return 0;
19426}
19427_ACEOF
19428rm -f conftest.$ac_objext
19429if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19430 (eval $ac_compile) 2>conftest.er1
a848cd7e 19431 ac_status=$?
ac1cb8d3
VS
19432 grep -v '^ *+' conftest.er1 >conftest.err
19433 rm -f conftest.er1
19434 cat conftest.err >&5
a848cd7e
SC
19435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19436 (exit $ac_status); } &&
ffa0583f 19437 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19439 (eval $ac_try) 2>&5
19440 ac_status=$?
19441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19442 (exit $ac_status); }; } &&
19443 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19445 (eval $ac_try) 2>&5
19446 ac_status=$?
19447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19448 (exit $ac_status); }; }; then
19449 ac_cv_cxx_static_cast=yes
19450else
19451 echo "$as_me: failed program was:" >&5
19452sed 's/^/| /' conftest.$ac_ext >&5
19453
19454ac_cv_cxx_static_cast=no
19455fi
ac1cb8d3 19456rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19457 ac_ext=c
19458ac_cpp='$CPP $CPPFLAGS'
19459ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19460ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19461ac_compiler_gnu=$ac_cv_c_compiler_gnu
19462
19463
19464fi
19465echo "$as_me:$LINENO: result: $ac_cv_cxx_static_cast" >&5
19466echo "${ECHO_T}$ac_cv_cxx_static_cast" >&6
19467if test "$ac_cv_cxx_static_cast" = yes; then
19468
19469cat >>confdefs.h <<\_ACEOF
19470#define HAVE_STATIC_CAST
19471_ACEOF
19472
19473fi
19474
19475
19476if test "$wxUSE_STL" = "yes"; then
19477 ac_ext=cc
19478ac_cpp='$CXXCPP $CPPFLAGS'
19479ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19480ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19481ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19482
19483
19484 echo "$as_me:$LINENO: checking for basic STL functionality" >&5
19485echo $ECHO_N "checking for basic STL functionality... $ECHO_C" >&6
19486 cat >conftest.$ac_ext <<_ACEOF
19487/* confdefs.h. */
19488_ACEOF
19489cat confdefs.h >>conftest.$ac_ext
19490cat >>conftest.$ac_ext <<_ACEOF
19491/* end confdefs.h. */
19492#include <string>
19493 #include <functional>
19494 #include <algorithm>
19495 #include <vector>
19496 #include <list>
19497int
19498main ()
19499{
19500std::vector<int> moo;
19501 std::list<int> foo;
19502 std::vector<int>::iterator it =
19503 std::find_if(moo.begin(), moo.end(),
19504 std::bind2nd(std::less<int>(), 3));
19505 ;
19506 return 0;
19507}
19508_ACEOF
19509rm -f conftest.$ac_objext
19510if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19511 (eval $ac_compile) 2>conftest.er1
a848cd7e 19512 ac_status=$?
ac1cb8d3
VS
19513 grep -v '^ *+' conftest.er1 >conftest.err
19514 rm -f conftest.er1
19515 cat conftest.err >&5
a848cd7e
SC
19516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19517 (exit $ac_status); } &&
ffa0583f 19518 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19520 (eval $ac_try) 2>&5
19521 ac_status=$?
19522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19523 (exit $ac_status); }; } &&
19524 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19526 (eval $ac_try) 2>&5
19527 ac_status=$?
19528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19529 (exit $ac_status); }; }; then
19530 echo "$as_me:$LINENO: result: yes" >&5
19531echo "${ECHO_T}yes" >&6
19532else
19533 echo "$as_me: failed program was:" >&5
19534sed 's/^/| /' conftest.$ac_ext >&5
19535
19536echo "$as_me:$LINENO: result: no" >&5
19537echo "${ECHO_T}no" >&6
19538 { { echo "$as_me:$LINENO: error: Basic STL functionality missing" >&5
19539echo "$as_me: error: Basic STL functionality missing" >&2;}
19540 { (exit 1); exit 1; }; }
19541fi
ac1cb8d3 19542rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19543
19544 echo "$as_me:$LINENO: checking for std::wstring in <string>" >&5
19545echo $ECHO_N "checking for std::wstring in <string>... $ECHO_C" >&6
19546 cat >conftest.$ac_ext <<_ACEOF
19547/* confdefs.h. */
19548_ACEOF
19549cat confdefs.h >>conftest.$ac_ext
19550cat >>conftest.$ac_ext <<_ACEOF
19551/* end confdefs.h. */
19552#include <string>
19553int
19554main ()
19555{
19556std::wstring foo;
19557 ;
19558 return 0;
19559}
19560_ACEOF
19561rm -f conftest.$ac_objext
19562if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19563 (eval $ac_compile) 2>conftest.er1
a848cd7e 19564 ac_status=$?
ac1cb8d3
VS
19565 grep -v '^ *+' conftest.er1 >conftest.err
19566 rm -f conftest.er1
19567 cat conftest.err >&5
a848cd7e
SC
19568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19569 (exit $ac_status); } &&
ffa0583f 19570 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19572 (eval $ac_try) 2>&5
19573 ac_status=$?
19574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19575 (exit $ac_status); }; } &&
19576 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19578 (eval $ac_try) 2>&5
19579 ac_status=$?
19580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19581 (exit $ac_status); }; }; then
19582 echo "$as_me:$LINENO: result: yes" >&5
19583echo "${ECHO_T}yes" >&6
19584 cat >>confdefs.h <<\_ACEOF
19585#define HAVE_STD_WSTRING 1
19586_ACEOF
19587
19588else
19589 echo "$as_me: failed program was:" >&5
19590sed 's/^/| /' conftest.$ac_ext >&5
19591
19592echo "$as_me:$LINENO: result: no" >&5
19593echo "${ECHO_T}no" >&6
19594fi
ac1cb8d3 19595rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19596
19597 echo "$as_me:$LINENO: checking for compliant std::string::compare" >&5
19598echo $ECHO_N "checking for compliant std::string::compare... $ECHO_C" >&6
19599 cat >conftest.$ac_ext <<_ACEOF
19600/* confdefs.h. */
19601_ACEOF
19602cat confdefs.h >>conftest.$ac_ext
19603cat >>conftest.$ac_ext <<_ACEOF
19604/* end confdefs.h. */
19605#include <string>
19606int
19607main ()
19608{
19609std::string foo, bar;
19610 foo.compare(bar);
19611 foo.compare(1, 1, bar);
19612 foo.compare(1, 1, bar, 1, 1);
19613 foo.compare("");
19614 foo.compare(1, 1, "");
19615 foo.compare(1, 1, "", 2);
19616 ;
19617 return 0;
19618}
19619_ACEOF
19620rm -f conftest.$ac_objext
19621if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19622 (eval $ac_compile) 2>conftest.er1
a848cd7e 19623 ac_status=$?
ac1cb8d3
VS
19624 grep -v '^ *+' conftest.er1 >conftest.err
19625 rm -f conftest.er1
19626 cat conftest.err >&5
a848cd7e
SC
19627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19628 (exit $ac_status); } &&
ffa0583f 19629 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19631 (eval $ac_try) 2>&5
19632 ac_status=$?
19633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19634 (exit $ac_status); }; } &&
19635 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19637 (eval $ac_try) 2>&5
19638 ac_status=$?
19639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19640 (exit $ac_status); }; }; then
19641 echo "$as_me:$LINENO: result: yes" >&5
19642echo "${ECHO_T}yes" >&6
19643 cat >>confdefs.h <<\_ACEOF
19644#define HAVE_STD_STRING_COMPARE 1
19645_ACEOF
19646
19647else
19648 echo "$as_me: failed program was:" >&5
19649sed 's/^/| /' conftest.$ac_ext >&5
19650
19651echo "$as_me:$LINENO: result: no" >&5
19652echo "${ECHO_T}no" >&6
19653fi
ac1cb8d3 19654rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
19655
19656 if test "${ac_cv_header_hash_map+set}" = set; then
19657 echo "$as_me:$LINENO: checking for hash_map" >&5
19658echo $ECHO_N "checking for hash_map... $ECHO_C" >&6
19659if test "${ac_cv_header_hash_map+set}" = set; then
19660 echo $ECHO_N "(cached) $ECHO_C" >&6
19661fi
19662echo "$as_me:$LINENO: result: $ac_cv_header_hash_map" >&5
19663echo "${ECHO_T}$ac_cv_header_hash_map" >&6
19664else
19665 # Is the header compilable?
19666echo "$as_me:$LINENO: checking hash_map usability" >&5
19667echo $ECHO_N "checking hash_map usability... $ECHO_C" >&6
19668cat >conftest.$ac_ext <<_ACEOF
19669/* confdefs.h. */
19670_ACEOF
19671cat confdefs.h >>conftest.$ac_ext
19672cat >>conftest.$ac_ext <<_ACEOF
19673/* end confdefs.h. */
19674$ac_includes_default
19675#include <hash_map>
19676_ACEOF
19677rm -f conftest.$ac_objext
19678if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19679 (eval $ac_compile) 2>conftest.er1
bdcade0a 19680 ac_status=$?
ac1cb8d3
VS
19681 grep -v '^ *+' conftest.er1 >conftest.err
19682 rm -f conftest.er1
19683 cat conftest.err >&5
bdcade0a
MB
19684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19685 (exit $ac_status); } &&
ffa0583f 19686 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19688 (eval $ac_try) 2>&5
19689 ac_status=$?
19690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19691 (exit $ac_status); }; } &&
19692 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
19693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19694 (eval $ac_try) 2>&5
19695 ac_status=$?
19696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19697 (exit $ac_status); }; }; then
19698 ac_header_compiler=yes
19699else
19700 echo "$as_me: failed program was:" >&5
19701sed 's/^/| /' conftest.$ac_ext >&5
19702
19703ac_header_compiler=no
19704fi
ac1cb8d3 19705rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
19706echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19707echo "${ECHO_T}$ac_header_compiler" >&6
19708
19709# Is the header present?
19710echo "$as_me:$LINENO: checking hash_map presence" >&5
19711echo $ECHO_N "checking hash_map presence... $ECHO_C" >&6
19712cat >conftest.$ac_ext <<_ACEOF
19713/* confdefs.h. */
19714_ACEOF
19715cat confdefs.h >>conftest.$ac_ext
19716cat >>conftest.$ac_ext <<_ACEOF
19717/* end confdefs.h. */
19718#include <hash_map>
19719_ACEOF
19720if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19721 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19722 ac_status=$?
19723 grep -v '^ *+' conftest.er1 >conftest.err
19724 rm -f conftest.er1
19725 cat conftest.err >&5
19726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19727 (exit $ac_status); } >/dev/null; then
19728 if test -s conftest.err; then
19729 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 19730 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
bdcade0a
MB
19731 else
19732 ac_cpp_err=
19733 fi
19734else
19735 ac_cpp_err=yes
19736fi
19737if test -z "$ac_cpp_err"; then
19738 ac_header_preproc=yes
19739else
19740 echo "$as_me: failed program was:" >&5
19741sed 's/^/| /' conftest.$ac_ext >&5
19742
19743 ac_header_preproc=no
19744fi
19745rm -f conftest.err conftest.$ac_ext
19746echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19747echo "${ECHO_T}$ac_header_preproc" >&6
19748
19749# So? What about this header?
ac1cb8d3
VS
19750case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
19751 yes:no: )
bdcade0a
MB
19752 { echo "$as_me:$LINENO: WARNING: hash_map: accepted by the compiler, rejected by the preprocessor!" >&5
19753echo "$as_me: WARNING: hash_map: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
19754 { echo "$as_me:$LINENO: WARNING: hash_map: proceeding with the compiler's result" >&5
19755echo "$as_me: WARNING: hash_map: proceeding with the compiler's result" >&2;}
19756 ac_header_preproc=yes
bdcade0a 19757 ;;
ac1cb8d3 19758 no:yes:* )
bdcade0a
MB
19759 { echo "$as_me:$LINENO: WARNING: hash_map: present but cannot be compiled" >&5
19760echo "$as_me: WARNING: hash_map: present but cannot be compiled" >&2;}
ac1cb8d3
VS
19761 { echo "$as_me:$LINENO: WARNING: hash_map: check for missing prerequisite headers?" >&5
19762echo "$as_me: WARNING: hash_map: check for missing prerequisite headers?" >&2;}
19763 { echo "$as_me:$LINENO: WARNING: hash_map: see the Autoconf documentation" >&5
19764echo "$as_me: WARNING: hash_map: see the Autoconf documentation" >&2;}
19765 { echo "$as_me:$LINENO: WARNING: hash_map: section \"Present But Cannot Be Compiled\"" >&5
19766echo "$as_me: WARNING: hash_map: section \"Present But Cannot Be Compiled\"" >&2;}
bdcade0a
MB
19767 { echo "$as_me:$LINENO: WARNING: hash_map: proceeding with the preprocessor's result" >&5
19768echo "$as_me: WARNING: hash_map: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
19769 { echo "$as_me:$LINENO: WARNING: hash_map: in the future, the compiler will take precedence" >&5
19770echo "$as_me: WARNING: hash_map: in the future, the compiler will take precedence" >&2;}
bdcade0a
MB
19771 (
19772 cat <<\_ASBOX
ac1cb8d3
VS
19773## ----------------------------------------- ##
19774## Report this to wx-dev@lists.wxwidgets.org ##
19775## ----------------------------------------- ##
bdcade0a
MB
19776_ASBOX
19777 ) |
19778 sed "s/^/$as_me: WARNING: /" >&2
19779 ;;
19780esac
19781echo "$as_me:$LINENO: checking for hash_map" >&5
19782echo $ECHO_N "checking for hash_map... $ECHO_C" >&6
19783if test "${ac_cv_header_hash_map+set}" = set; then
19784 echo $ECHO_N "(cached) $ECHO_C" >&6
19785else
19786 ac_cv_header_hash_map=$ac_header_preproc
19787fi
19788echo "$as_me:$LINENO: result: $ac_cv_header_hash_map" >&5
19789echo "${ECHO_T}$ac_cv_header_hash_map" >&6
19790
19791fi
19792if test $ac_cv_header_hash_map = yes; then
19793 echo "$as_me:$LINENO: checking for hash_map and hash_set" >&5
19794echo $ECHO_N "checking for hash_map and hash_set... $ECHO_C" >&6
19795 cat >conftest.$ac_ext <<_ACEOF
19796/* confdefs.h. */
19797_ACEOF
19798cat confdefs.h >>conftest.$ac_ext
19799cat >>conftest.$ac_ext <<_ACEOF
19800/* end confdefs.h. */
19801#include <hash_map>
19802 #include <hash_set>
19803int
19804main ()
19805{
19806std::hash_map<double*, char*, std::hash<double*>, std::equal_to<double*> > test1;
19807 std::hash_set<char*, std::hash<char*>, std::equal_to<char*> > test2;
19808 ;
19809 return 0;
19810}
19811_ACEOF
19812rm -f conftest.$ac_objext
19813if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19814 (eval $ac_compile) 2>conftest.er1
bdcade0a 19815 ac_status=$?
ac1cb8d3
VS
19816 grep -v '^ *+' conftest.er1 >conftest.err
19817 rm -f conftest.er1
19818 cat conftest.err >&5
bdcade0a
MB
19819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19820 (exit $ac_status); } &&
ffa0583f 19821 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19823 (eval $ac_try) 2>&5
19824 ac_status=$?
19825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19826 (exit $ac_status); }; } &&
19827 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
19828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19829 (eval $ac_try) 2>&5
19830 ac_status=$?
19831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19832 (exit $ac_status); }; }; then
19833 echo "$as_me:$LINENO: result: yes" >&5
19834echo "${ECHO_T}yes" >&6
19835 cat >>confdefs.h <<\_ACEOF
19836#define HAVE_HASH_MAP 1
19837_ACEOF
19838
19839 cat >>confdefs.h <<\_ACEOF
19840#define HAVE_STD_HASH_MAP 1
19841_ACEOF
19842
19843else
19844 echo "$as_me: failed program was:" >&5
19845sed 's/^/| /' conftest.$ac_ext >&5
19846
19847echo "$as_me:$LINENO: result: no" >&5
19848echo "${ECHO_T}no" >&6
19849fi
ac1cb8d3 19850rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
19851
19852fi
19853
19854
19855
19856 if test "${ac_cv_header_ext_hash_map+set}" = set; then
19857 echo "$as_me:$LINENO: checking for ext/hash_map" >&5
19858echo $ECHO_N "checking for ext/hash_map... $ECHO_C" >&6
19859if test "${ac_cv_header_ext_hash_map+set}" = set; then
19860 echo $ECHO_N "(cached) $ECHO_C" >&6
19861fi
19862echo "$as_me:$LINENO: result: $ac_cv_header_ext_hash_map" >&5
19863echo "${ECHO_T}$ac_cv_header_ext_hash_map" >&6
19864else
19865 # Is the header compilable?
19866echo "$as_me:$LINENO: checking ext/hash_map usability" >&5
19867echo $ECHO_N "checking ext/hash_map usability... $ECHO_C" >&6
19868cat >conftest.$ac_ext <<_ACEOF
19869/* confdefs.h. */
19870_ACEOF
19871cat confdefs.h >>conftest.$ac_ext
19872cat >>conftest.$ac_ext <<_ACEOF
19873/* end confdefs.h. */
19874$ac_includes_default
19875#include <ext/hash_map>
19876_ACEOF
19877rm -f conftest.$ac_objext
19878if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19879 (eval $ac_compile) 2>conftest.er1
bdcade0a 19880 ac_status=$?
ac1cb8d3
VS
19881 grep -v '^ *+' conftest.er1 >conftest.err
19882 rm -f conftest.er1
19883 cat conftest.err >&5
bdcade0a
MB
19884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19885 (exit $ac_status); } &&
ffa0583f 19886 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19888 (eval $ac_try) 2>&5
19889 ac_status=$?
19890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19891 (exit $ac_status); }; } &&
19892 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
19893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19894 (eval $ac_try) 2>&5
19895 ac_status=$?
19896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19897 (exit $ac_status); }; }; then
19898 ac_header_compiler=yes
19899else
19900 echo "$as_me: failed program was:" >&5
19901sed 's/^/| /' conftest.$ac_ext >&5
19902
19903ac_header_compiler=no
19904fi
ac1cb8d3 19905rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
19906echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19907echo "${ECHO_T}$ac_header_compiler" >&6
19908
19909# Is the header present?
19910echo "$as_me:$LINENO: checking ext/hash_map presence" >&5
19911echo $ECHO_N "checking ext/hash_map presence... $ECHO_C" >&6
19912cat >conftest.$ac_ext <<_ACEOF
19913/* confdefs.h. */
19914_ACEOF
19915cat confdefs.h >>conftest.$ac_ext
19916cat >>conftest.$ac_ext <<_ACEOF
19917/* end confdefs.h. */
19918#include <ext/hash_map>
19919_ACEOF
19920if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19921 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19922 ac_status=$?
19923 grep -v '^ *+' conftest.er1 >conftest.err
19924 rm -f conftest.er1
19925 cat conftest.err >&5
19926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19927 (exit $ac_status); } >/dev/null; then
19928 if test -s conftest.err; then
19929 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 19930 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
bdcade0a
MB
19931 else
19932 ac_cpp_err=
19933 fi
19934else
19935 ac_cpp_err=yes
19936fi
19937if test -z "$ac_cpp_err"; then
19938 ac_header_preproc=yes
19939else
19940 echo "$as_me: failed program was:" >&5
19941sed 's/^/| /' conftest.$ac_ext >&5
19942
19943 ac_header_preproc=no
19944fi
19945rm -f conftest.err conftest.$ac_ext
19946echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19947echo "${ECHO_T}$ac_header_preproc" >&6
19948
19949# So? What about this header?
ac1cb8d3
VS
19950case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
19951 yes:no: )
bdcade0a
MB
19952 { echo "$as_me:$LINENO: WARNING: ext/hash_map: accepted by the compiler, rejected by the preprocessor!" >&5
19953echo "$as_me: WARNING: ext/hash_map: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
19954 { echo "$as_me:$LINENO: WARNING: ext/hash_map: proceeding with the compiler's result" >&5
19955echo "$as_me: WARNING: ext/hash_map: proceeding with the compiler's result" >&2;}
19956 ac_header_preproc=yes
bdcade0a 19957 ;;
ac1cb8d3 19958 no:yes:* )
bdcade0a
MB
19959 { echo "$as_me:$LINENO: WARNING: ext/hash_map: present but cannot be compiled" >&5
19960echo "$as_me: WARNING: ext/hash_map: present but cannot be compiled" >&2;}
ac1cb8d3
VS
19961 { echo "$as_me:$LINENO: WARNING: ext/hash_map: check for missing prerequisite headers?" >&5
19962echo "$as_me: WARNING: ext/hash_map: check for missing prerequisite headers?" >&2;}
19963 { echo "$as_me:$LINENO: WARNING: ext/hash_map: see the Autoconf documentation" >&5
19964echo "$as_me: WARNING: ext/hash_map: see the Autoconf documentation" >&2;}
19965 { echo "$as_me:$LINENO: WARNING: ext/hash_map: section \"Present But Cannot Be Compiled\"" >&5
19966echo "$as_me: WARNING: ext/hash_map: section \"Present But Cannot Be Compiled\"" >&2;}
bdcade0a
MB
19967 { echo "$as_me:$LINENO: WARNING: ext/hash_map: proceeding with the preprocessor's result" >&5
19968echo "$as_me: WARNING: ext/hash_map: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
19969 { echo "$as_me:$LINENO: WARNING: ext/hash_map: in the future, the compiler will take precedence" >&5
19970echo "$as_me: WARNING: ext/hash_map: in the future, the compiler will take precedence" >&2;}
bdcade0a
MB
19971 (
19972 cat <<\_ASBOX
ac1cb8d3
VS
19973## ----------------------------------------- ##
19974## Report this to wx-dev@lists.wxwidgets.org ##
19975## ----------------------------------------- ##
bdcade0a
MB
19976_ASBOX
19977 ) |
19978 sed "s/^/$as_me: WARNING: /" >&2
19979 ;;
19980esac
19981echo "$as_me:$LINENO: checking for ext/hash_map" >&5
19982echo $ECHO_N "checking for ext/hash_map... $ECHO_C" >&6
19983if test "${ac_cv_header_ext_hash_map+set}" = set; then
19984 echo $ECHO_N "(cached) $ECHO_C" >&6
19985else
19986 ac_cv_header_ext_hash_map=$ac_header_preproc
19987fi
19988echo "$as_me:$LINENO: result: $ac_cv_header_ext_hash_map" >&5
19989echo "${ECHO_T}$ac_cv_header_ext_hash_map" >&6
19990
19991fi
19992if test $ac_cv_header_ext_hash_map = yes; then
19993 echo "$as_me:$LINENO: checking for hash_map and hash_set" >&5
19994echo $ECHO_N "checking for hash_map and hash_set... $ECHO_C" >&6
19995 cat >conftest.$ac_ext <<_ACEOF
19996/* confdefs.h. */
19997_ACEOF
19998cat confdefs.h >>conftest.$ac_ext
19999cat >>conftest.$ac_ext <<_ACEOF
20000/* end confdefs.h. */
20001#include <ext/hash_map>
20002 #include <ext/hash_set>
20003int
20004main ()
20005{
20006__gnu_cxx::hash_map<double*, char*, __gnu_cxx::hash<double*>, std::equal_to<double*> > test1;
20007 __gnu_cxx::hash_set<char*, __gnu_cxx::hash<char*>, std::equal_to<char*> > test2;
20008 ;
20009 return 0;
20010}
20011_ACEOF
20012rm -f conftest.$ac_objext
20013if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20014 (eval $ac_compile) 2>conftest.er1
bdcade0a 20015 ac_status=$?
ac1cb8d3
VS
20016 grep -v '^ *+' conftest.er1 >conftest.err
20017 rm -f conftest.er1
20018 cat conftest.err >&5
bdcade0a
MB
20019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20020 (exit $ac_status); } &&
ffa0583f 20021 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20023 (eval $ac_try) 2>&5
20024 ac_status=$?
20025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20026 (exit $ac_status); }; } &&
20027 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
20028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20029 (eval $ac_try) 2>&5
20030 ac_status=$?
20031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20032 (exit $ac_status); }; }; then
20033 echo "$as_me:$LINENO: result: yes" >&5
20034echo "${ECHO_T}yes" >&6
20035 cat >>confdefs.h <<\_ACEOF
20036#define HAVE_EXT_HASH_MAP 1
20037_ACEOF
20038
20039 cat >>confdefs.h <<\_ACEOF
20040#define HAVE_GNU_CXX_HASH_MAP 1
20041_ACEOF
20042
20043else
20044 echo "$as_me: failed program was:" >&5
20045sed 's/^/| /' conftest.$ac_ext >&5
20046
20047echo "$as_me:$LINENO: result: no" >&5
20048echo "${ECHO_T}no" >&6
20049fi
ac1cb8d3 20050rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
20051
20052fi
20053
20054
a848cd7e
SC
20055
20056 ac_ext=c
20057ac_cpp='$CPP $CPPFLAGS'
20058ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20059ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20060ac_compiler_gnu=$ac_cv_c_compiler_gnu
20061
20062fi
20063
20064
20065SEARCH_INCLUDE="\
20066 /usr/local/include \
20067 \
20068 /usr/Motif-2.1/include \
20069 /usr/Motif-1.2/include \
20070 /usr/include/Motif1.2 \
20071 /opt/xpm/include/X11 \
20072 /opt/GBxpm/include/ \
20073 /opt/GBxpm/X11/include/ \
20074 \
20075 /usr/dt/include \
20076 /usr/openwin/include \
20077 \
20078 /usr/include/Xm \
20079 \
20080 /usr/X11R6/include \
20081 /usr/X11R6.4/include \
20082 /usr/X11R5/include \
20083 /usr/X11R4/include \
20084 \
20085 /usr/include/X11R6 \
20086 /usr/include/X11R5 \
20087 /usr/include/X11R4 \
20088 \
20089 /usr/local/X11R6/include \
20090 /usr/local/X11R5/include \
20091 /usr/local/X11R4/include \
20092 \
20093 /usr/local/include/X11R6 \
20094 /usr/local/include/X11R5 \
20095 /usr/local/include/X11R4 \
20096 \
20097 /usr/X11/include \
20098 /usr/include/X11 \
20099 /usr/local/X11/include \
20100 /usr/local/include/X11 \
20101 \
20102 /usr/X386/include \
20103 /usr/x386/include \
20104 /usr/XFree86/include/X11 \
20105 \
20106 X:/XFree86/include \
20107 X:/XFree86/include/X11 \
20108 \
20109 /usr/include/gtk \
20110 /usr/local/include/gtk \
20111 /usr/include/glib \
20112 /usr/local/include/glib \
20113 \
20114 /usr/include/qt \
20115 /usr/local/include/qt \
20116 \
20117 /usr/local/arm/3.3.2/include \
20118 \
20119 /usr/include/windows \
20120 /usr/include/wine \
20121 /usr/local/include/wine \
20122 \
20123 /usr/unsupported/include \
20124 /usr/athena/include \
20125 /usr/local/x11r5/include \
20126 /usr/lpp/Xamples/include \
20127 \
20128 /usr/openwin/share/include"
20129
20130SEARCH_LIB="/usr/lib /usr/lib32 `echo "$SEARCH_INCLUDE" | sed s/include/lib/g` /usr/lib64 /usr/X11R6/lib64"
20131
20132
20133cat >confcache <<\_ACEOF
20134# This file is a shell script that caches the results of configure
20135# tests run on this system so they can be shared between configure
20136# scripts and configure runs, see configure's option --config-cache.
20137# It is not useful on other systems. If it contains results you don't
20138# want to keep, you may remove or edit it.
20139#
20140# config.status only pays attention to the cache file if you give it
20141# the --recheck option to rerun configure.
20142#
20143# `ac_cv_env_foo' variables (set or unset) will be overridden when
20144# loading this file, other *unset* `ac_cv_foo' will be assigned the
20145# following values.
20146
20147_ACEOF
20148
20149# The following way of writing the cache mishandles newlines in values,
20150# but we know of no workaround that is simple, portable, and efficient.
20151# So, don't put newlines in cache variables' values.
20152# Ultrix sh set writes to stderr and can't be redirected directly,
20153# and sets the high bit in the cache file unless we assign to the vars.
20154{
20155 (set) 2>&1 |
20156 case `(ac_space=' '; set | grep ac_space) 2>&1` in
20157 *ac_space=\ *)
20158 # `set' does not quote correctly, so add quotes (double-quote
20159 # substitution turns \\\\ into \\, and sed turns \\ into \).
20160 sed -n \
ac1cb8d3
VS
20161 "s/'/'\\\\''/g;
20162 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a848cd7e
SC
20163 ;;
20164 *)
20165 # `set' quotes correctly as required by POSIX, so do not add quotes.
20166 sed -n \
ac1cb8d3 20167 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
20168 ;;
20169 esac;
20170} |
20171 sed '
20172 t clear
20173 : clear
20174 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20175 t end
20176 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20177 : end' >>confcache
20178if diff $cache_file confcache >/dev/null 2>&1; then :; else
20179 if test -w $cache_file; then
20180 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
20181 cat confcache >$cache_file
20182 else
20183 echo "not updating unwritable cache $cache_file"
20184 fi
20185fi
20186rm -f confcache
20187
20188if test "$USE_LINUX" = 1 -o "$USE_GNU" = 1; then
20189 echo "$as_me:$LINENO: checking for glibc 2.1 or later" >&5
20190echo $ECHO_N "checking for glibc 2.1 or later... $ECHO_C" >&6
20191if test "${wx_cv_lib_glibc21+set}" = set; then
20192 echo $ECHO_N "(cached) $ECHO_C" >&6
20193else
20194
20195 cat >conftest.$ac_ext <<_ACEOF
20196/* confdefs.h. */
20197_ACEOF
20198cat confdefs.h >>conftest.$ac_ext
20199cat >>conftest.$ac_ext <<_ACEOF
20200/* end confdefs.h. */
20201#include <features.h>
20202int
20203main ()
20204{
20205
20206 #if (__GLIBC__ < 2) || (__GLIBC_MINOR__ < 1)
20207 #error not glibc2.1
20208 #endif
20209
20210 ;
20211 return 0;
20212}
20213_ACEOF
20214rm -f conftest.$ac_objext
20215if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20216 (eval $ac_compile) 2>conftest.er1
a848cd7e 20217 ac_status=$?
ac1cb8d3
VS
20218 grep -v '^ *+' conftest.er1 >conftest.err
20219 rm -f conftest.er1
20220 cat conftest.err >&5
a848cd7e
SC
20221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20222 (exit $ac_status); } &&
ffa0583f 20223 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20225 (eval $ac_try) 2>&5
20226 ac_status=$?
20227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20228 (exit $ac_status); }; } &&
20229 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20231 (eval $ac_try) 2>&5
20232 ac_status=$?
20233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20234 (exit $ac_status); }; }; then
20235
20236 wx_cv_lib_glibc21=yes
20237
20238else
20239 echo "$as_me: failed program was:" >&5
20240sed 's/^/| /' conftest.$ac_ext >&5
20241
20242
20243 wx_cv_lib_glibc21=no
20244
20245
20246fi
ac1cb8d3 20247rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20248
20249fi
20250echo "$as_me:$LINENO: result: $wx_cv_lib_glibc21" >&5
20251echo "${ECHO_T}$wx_cv_lib_glibc21" >&6
20252 if test "$wx_cv_lib_glibc21" = "yes"; then
20253 cat >>confdefs.h <<\_ACEOF
20254#define wxHAVE_GLIBC2 1
20255_ACEOF
20256
20257 fi
20258fi
20259
20260if test "x$wx_cv_lib_glibc21" = "xyes"; then
20261 if test "$wxUSE_UNICODE" = "yes" -o "$wxUSE_THREADS" = "yes"; then
20262 cat >>confdefs.h <<\_ACEOF
20263#define _GNU_SOURCE 1
20264_ACEOF
20265
20266 fi
20267fi
20268
20269
20270
20271if test "$wxUSE_REGEX" != "no"; then
20272 cat >>confdefs.h <<\_ACEOF
20273#define wxUSE_REGEX 1
20274_ACEOF
20275
20276
20277 if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_REGEX" = "yes"; then
20278 { echo "$as_me:$LINENO: WARNING: Defaulting to the the builtin regex library for Unicode build." >&5
20279echo "$as_me: WARNING: Defaulting to the the builtin regex library for Unicode build." >&2;}
20280 wxUSE_REGEX=builtin
20281 fi
20282
20283 if test "$wxUSE_REGEX" = "sys" -o "$wxUSE_REGEX" = "yes" ; then
20284 if test "${ac_cv_header_regex_h+set}" = set; then
20285 echo "$as_me:$LINENO: checking for regex.h" >&5
20286echo $ECHO_N "checking for regex.h... $ECHO_C" >&6
20287if test "${ac_cv_header_regex_h+set}" = set; then
20288 echo $ECHO_N "(cached) $ECHO_C" >&6
20289fi
20290echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
20291echo "${ECHO_T}$ac_cv_header_regex_h" >&6
20292else
20293 # Is the header compilable?
20294echo "$as_me:$LINENO: checking regex.h usability" >&5
20295echo $ECHO_N "checking regex.h usability... $ECHO_C" >&6
20296cat >conftest.$ac_ext <<_ACEOF
20297/* confdefs.h. */
20298_ACEOF
20299cat confdefs.h >>conftest.$ac_ext
20300cat >>conftest.$ac_ext <<_ACEOF
20301/* end confdefs.h. */
20302$ac_includes_default
20303#include <regex.h>
20304_ACEOF
20305rm -f conftest.$ac_objext
20306if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20307 (eval $ac_compile) 2>conftest.er1
a848cd7e 20308 ac_status=$?
ac1cb8d3
VS
20309 grep -v '^ *+' conftest.er1 >conftest.err
20310 rm -f conftest.er1
20311 cat conftest.err >&5
a848cd7e
SC
20312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20313 (exit $ac_status); } &&
ffa0583f 20314 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20316 (eval $ac_try) 2>&5
20317 ac_status=$?
20318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20319 (exit $ac_status); }; } &&
20320 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20322 (eval $ac_try) 2>&5
20323 ac_status=$?
20324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20325 (exit $ac_status); }; }; then
20326 ac_header_compiler=yes
20327else
20328 echo "$as_me: failed program was:" >&5
20329sed 's/^/| /' conftest.$ac_ext >&5
20330
20331ac_header_compiler=no
20332fi
ac1cb8d3 20333rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20334echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20335echo "${ECHO_T}$ac_header_compiler" >&6
20336
20337# Is the header present?
20338echo "$as_me:$LINENO: checking regex.h presence" >&5
20339echo $ECHO_N "checking regex.h presence... $ECHO_C" >&6
20340cat >conftest.$ac_ext <<_ACEOF
20341/* confdefs.h. */
20342_ACEOF
20343cat confdefs.h >>conftest.$ac_ext
20344cat >>conftest.$ac_ext <<_ACEOF
20345/* end confdefs.h. */
20346#include <regex.h>
20347_ACEOF
20348if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20349 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20350 ac_status=$?
20351 grep -v '^ *+' conftest.er1 >conftest.err
20352 rm -f conftest.er1
20353 cat conftest.err >&5
20354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20355 (exit $ac_status); } >/dev/null; then
20356 if test -s conftest.err; then
20357 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 20358 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
20359 else
20360 ac_cpp_err=
20361 fi
20362else
20363 ac_cpp_err=yes
20364fi
20365if test -z "$ac_cpp_err"; then
20366 ac_header_preproc=yes
20367else
20368 echo "$as_me: failed program was:" >&5
20369sed 's/^/| /' conftest.$ac_ext >&5
20370
20371 ac_header_preproc=no
20372fi
20373rm -f conftest.err conftest.$ac_ext
20374echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20375echo "${ECHO_T}$ac_header_preproc" >&6
20376
20377# So? What about this header?
ac1cb8d3
VS
20378case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20379 yes:no: )
a848cd7e
SC
20380 { echo "$as_me:$LINENO: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&5
20381echo "$as_me: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
20382 { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the compiler's result" >&5
20383echo "$as_me: WARNING: regex.h: proceeding with the compiler's result" >&2;}
20384 ac_header_preproc=yes
a848cd7e 20385 ;;
ac1cb8d3 20386 no:yes:* )
a848cd7e
SC
20387 { echo "$as_me:$LINENO: WARNING: regex.h: present but cannot be compiled" >&5
20388echo "$as_me: WARNING: regex.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
20389 { echo "$as_me:$LINENO: WARNING: regex.h: check for missing prerequisite headers?" >&5
20390echo "$as_me: WARNING: regex.h: check for missing prerequisite headers?" >&2;}
20391 { echo "$as_me:$LINENO: WARNING: regex.h: see the Autoconf documentation" >&5
20392echo "$as_me: WARNING: regex.h: see the Autoconf documentation" >&2;}
20393 { echo "$as_me:$LINENO: WARNING: regex.h: section \"Present But Cannot Be Compiled\"" >&5
20394echo "$as_me: WARNING: regex.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
20395 { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the preprocessor's result" >&5
20396echo "$as_me: WARNING: regex.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
20397 { echo "$as_me:$LINENO: WARNING: regex.h: in the future, the compiler will take precedence" >&5
20398echo "$as_me: WARNING: regex.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
20399 (
20400 cat <<\_ASBOX
ac1cb8d3
VS
20401## ----------------------------------------- ##
20402## Report this to wx-dev@lists.wxwidgets.org ##
20403## ----------------------------------------- ##
a848cd7e
SC
20404_ASBOX
20405 ) |
20406 sed "s/^/$as_me: WARNING: /" >&2
20407 ;;
20408esac
20409echo "$as_me:$LINENO: checking for regex.h" >&5
20410echo $ECHO_N "checking for regex.h... $ECHO_C" >&6
20411if test "${ac_cv_header_regex_h+set}" = set; then
20412 echo $ECHO_N "(cached) $ECHO_C" >&6
20413else
20414 ac_cv_header_regex_h=$ac_header_preproc
20415fi
20416echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
20417echo "${ECHO_T}$ac_cv_header_regex_h" >&6
20418
20419fi
20420if test $ac_cv_header_regex_h = yes; then
20421
20422for ac_func in regcomp
20423do
20424as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20425echo "$as_me:$LINENO: checking for $ac_func" >&5
20426echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20427if eval "test \"\${$as_ac_var+set}\" = set"; then
20428 echo $ECHO_N "(cached) $ECHO_C" >&6
20429else
20430 cat >conftest.$ac_ext <<_ACEOF
20431/* confdefs.h. */
20432_ACEOF
20433cat confdefs.h >>conftest.$ac_ext
20434cat >>conftest.$ac_ext <<_ACEOF
20435/* end confdefs.h. */
ac1cb8d3
VS
20436/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20437 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20438#define $ac_func innocuous_$ac_func
20439
a848cd7e
SC
20440/* System header to define __stub macros and hopefully few prototypes,
20441 which can conflict with char $ac_func (); below.
20442 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20443 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 20444
a848cd7e
SC
20445#ifdef __STDC__
20446# include <limits.h>
20447#else
20448# include <assert.h>
20449#endif
ac1cb8d3
VS
20450
20451#undef $ac_func
20452
a848cd7e
SC
20453/* Override any gcc2 internal prototype to avoid an error. */
20454#ifdef __cplusplus
20455extern "C"
20456{
20457#endif
20458/* We use char because int might match the return type of a gcc2
20459 builtin and then its argument prototype would still apply. */
20460char $ac_func ();
20461/* The GNU C library defines this for functions which it implements
20462 to always fail with ENOSYS. Some functions are actually named
20463 something starting with __ and the normal name is an alias. */
20464#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20465choke me
20466#else
20467char (*f) () = $ac_func;
20468#endif
20469#ifdef __cplusplus
20470}
20471#endif
20472
20473int
20474main ()
20475{
20476return f != $ac_func;
20477 ;
20478 return 0;
20479}
20480_ACEOF
20481rm -f conftest.$ac_objext conftest$ac_exeext
20482if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 20483 (eval $ac_link) 2>conftest.er1
a848cd7e 20484 ac_status=$?
ac1cb8d3
VS
20485 grep -v '^ *+' conftest.er1 >conftest.err
20486 rm -f conftest.er1
20487 cat conftest.err >&5
a848cd7e
SC
20488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20489 (exit $ac_status); } &&
ffa0583f 20490 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20492 (eval $ac_try) 2>&5
20493 ac_status=$?
20494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20495 (exit $ac_status); }; } &&
20496 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
20497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20498 (eval $ac_try) 2>&5
20499 ac_status=$?
20500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20501 (exit $ac_status); }; }; then
20502 eval "$as_ac_var=yes"
20503else
20504 echo "$as_me: failed program was:" >&5
20505sed 's/^/| /' conftest.$ac_ext >&5
20506
20507eval "$as_ac_var=no"
20508fi
ac1cb8d3
VS
20509rm -f conftest.err conftest.$ac_objext \
20510 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
20511fi
20512echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20513echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20514if test `eval echo '${'$as_ac_var'}'` = yes; then
20515 cat >>confdefs.h <<_ACEOF
20516#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20517_ACEOF
20518
20519fi
20520done
20521
20522fi
20523
20524
20525
20526 if test "x$ac_cv_func_regcomp" != "xyes"; then
20527 if test "$wxUSE_REGEX" = "sys" ; then
20528 { { echo "$as_me:$LINENO: error: system regex library not found! Use --with-regex to use built-in version" >&5
20529echo "$as_me: error: system regex library not found! Use --with-regex to use built-in version" >&2;}
20530 { (exit 1); exit 1; }; }
20531 else
20532 { echo "$as_me:$LINENO: WARNING: system regex library not found, will use built-in instead" >&5
20533echo "$as_me: WARNING: system regex library not found, will use built-in instead" >&2;}
20534 wxUSE_REGEX=builtin
20535 fi
20536 else
20537 wxUSE_REGEX=sys
20538 cat >>confdefs.h <<\_ACEOF
20539#define WX_NO_REGEX_ADVANCED 1
20540_ACEOF
20541
20542 fi
20543 fi
20544fi
20545
20546
20547ZLIB_LINK=
20548if test "$wxUSE_ZLIB" != "no" ; then
20549 cat >>confdefs.h <<\_ACEOF
20550#define wxUSE_ZLIB 1
20551_ACEOF
20552
20553
20554 if test "$wxUSE_ZLIB" = "sys" -o "$wxUSE_ZLIB" = "yes" ; then
20555 if test "$USE_DARWIN" = 1; then
20556 system_zlib_h_ok="yes"
20557 else
20558 echo "$as_me:$LINENO: checking for zlib.h >= 1.1.4" >&5
20559echo $ECHO_N "checking for zlib.h >= 1.1.4... $ECHO_C" >&6
20560if test "${ac_cv_header_zlib_h+set}" = set; then
20561 echo $ECHO_N "(cached) $ECHO_C" >&6
20562else
20563 if test "$cross_compiling" = yes; then
20564 unset ac_cv_header_zlib_h
20565
20566else
20567 cat >conftest.$ac_ext <<_ACEOF
20568/* confdefs.h. */
20569_ACEOF
20570cat confdefs.h >>conftest.$ac_ext
20571cat >>conftest.$ac_ext <<_ACEOF
20572/* end confdefs.h. */
20573
20574 #include <zlib.h>
20575 #include <stdio.h>
20576
20577 int main()
20578 {
20579 FILE *f=fopen("conftestval", "w");
20580 if (!f) exit(1);
20581 fprintf(f, "%s",
20582 ZLIB_VERSION[0] == '1' &&
20583 (ZLIB_VERSION[2] > '1' ||
20584 (ZLIB_VERSION[2] == '1' &&
20585 ZLIB_VERSION[4] >= '4')) ? "yes" : "no");
20586 exit(0);
20587 }
20588
20589_ACEOF
20590rm -f conftest$ac_exeext
20591if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20592 (eval $ac_link) 2>&5
20593 ac_status=$?
20594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20595 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20597 (eval $ac_try) 2>&5
20598 ac_status=$?
20599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20600 (exit $ac_status); }; }; then
20601 ac_cv_header_zlib_h=`cat conftestval`
20602else
20603 echo "$as_me: program exited with status $ac_status" >&5
20604echo "$as_me: failed program was:" >&5
20605sed 's/^/| /' conftest.$ac_ext >&5
20606
20607( exit $ac_status )
20608ac_cv_header_zlib_h=no
20609fi
ac1cb8d3 20610rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20611fi
20612
20613fi
20614echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
20615echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
20616 if test "${ac_cv_header_zlib_h+set}" = set; then
20617 echo "$as_me:$LINENO: checking for zlib.h" >&5
20618echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
20619if test "${ac_cv_header_zlib_h+set}" = set; then
20620 echo $ECHO_N "(cached) $ECHO_C" >&6
20621fi
20622echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
20623echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
20624else
20625 # Is the header compilable?
20626echo "$as_me:$LINENO: checking zlib.h usability" >&5
20627echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6
20628cat >conftest.$ac_ext <<_ACEOF
20629/* confdefs.h. */
20630_ACEOF
20631cat confdefs.h >>conftest.$ac_ext
20632cat >>conftest.$ac_ext <<_ACEOF
20633/* end confdefs.h. */
20634$ac_includes_default
20635#include <zlib.h>
20636_ACEOF
20637rm -f conftest.$ac_objext
20638if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20639 (eval $ac_compile) 2>conftest.er1
a848cd7e 20640 ac_status=$?
ac1cb8d3
VS
20641 grep -v '^ *+' conftest.er1 >conftest.err
20642 rm -f conftest.er1
20643 cat conftest.err >&5
a848cd7e
SC
20644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20645 (exit $ac_status); } &&
ffa0583f 20646 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20648 (eval $ac_try) 2>&5
20649 ac_status=$?
20650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20651 (exit $ac_status); }; } &&
20652 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20654 (eval $ac_try) 2>&5
20655 ac_status=$?
20656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20657 (exit $ac_status); }; }; then
20658 ac_header_compiler=yes
20659else
20660 echo "$as_me: failed program was:" >&5
20661sed 's/^/| /' conftest.$ac_ext >&5
20662
20663ac_header_compiler=no
20664fi
ac1cb8d3 20665rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20666echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20667echo "${ECHO_T}$ac_header_compiler" >&6
20668
20669# Is the header present?
20670echo "$as_me:$LINENO: checking zlib.h presence" >&5
20671echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6
20672cat >conftest.$ac_ext <<_ACEOF
20673/* confdefs.h. */
20674_ACEOF
20675cat confdefs.h >>conftest.$ac_ext
20676cat >>conftest.$ac_ext <<_ACEOF
20677/* end confdefs.h. */
20678#include <zlib.h>
20679_ACEOF
20680if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20681 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20682 ac_status=$?
20683 grep -v '^ *+' conftest.er1 >conftest.err
20684 rm -f conftest.er1
20685 cat conftest.err >&5
20686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20687 (exit $ac_status); } >/dev/null; then
20688 if test -s conftest.err; then
20689 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 20690 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
20691 else
20692 ac_cpp_err=
20693 fi
20694else
20695 ac_cpp_err=yes
20696fi
20697if test -z "$ac_cpp_err"; then
20698 ac_header_preproc=yes
20699else
20700 echo "$as_me: failed program was:" >&5
20701sed 's/^/| /' conftest.$ac_ext >&5
20702
20703 ac_header_preproc=no
20704fi
20705rm -f conftest.err conftest.$ac_ext
20706echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20707echo "${ECHO_T}$ac_header_preproc" >&6
20708
20709# So? What about this header?
ac1cb8d3
VS
20710case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20711 yes:no: )
a848cd7e
SC
20712 { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
20713echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
20714 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
20715echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
20716 ac_header_preproc=yes
a848cd7e 20717 ;;
ac1cb8d3 20718 no:yes:* )
a848cd7e
SC
20719 { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
20720echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
20721 { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
20722echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
20723 { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
20724echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
20725 { echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5
20726echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
20727 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
20728echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
20729 { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
20730echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
20731 (
20732 cat <<\_ASBOX
ac1cb8d3
VS
20733## ----------------------------------------- ##
20734## Report this to wx-dev@lists.wxwidgets.org ##
20735## ----------------------------------------- ##
a848cd7e
SC
20736_ASBOX
20737 ) |
20738 sed "s/^/$as_me: WARNING: /" >&2
20739 ;;
20740esac
20741echo "$as_me:$LINENO: checking for zlib.h" >&5
20742echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
20743if test "${ac_cv_header_zlib_h+set}" = set; then
20744 echo $ECHO_N "(cached) $ECHO_C" >&6
20745else
20746 ac_cv_header_zlib_h=$ac_header_preproc
20747fi
20748echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
20749echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
20750
20751fi
20752
20753
20754
20755 system_zlib_h_ok=$ac_cv_header_zlib_h
20756 fi
20757
20758 if test "$system_zlib_h_ok" = "yes"; then
20759 echo "$as_me:$LINENO: checking for deflate in -lz" >&5
20760echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
20761if test "${ac_cv_lib_z_deflate+set}" = set; then
20762 echo $ECHO_N "(cached) $ECHO_C" >&6
20763else
20764 ac_check_lib_save_LIBS=$LIBS
20765LIBS="-lz $LIBS"
20766cat >conftest.$ac_ext <<_ACEOF
20767/* confdefs.h. */
20768_ACEOF
20769cat confdefs.h >>conftest.$ac_ext
20770cat >>conftest.$ac_ext <<_ACEOF
20771/* end confdefs.h. */
20772
20773/* Override any gcc2 internal prototype to avoid an error. */
20774#ifdef __cplusplus
20775extern "C"
20776#endif
20777/* We use char because int might match the return type of a gcc2
20778 builtin and then its argument prototype would still apply. */
20779char deflate ();
20780int
20781main ()
20782{
20783deflate ();
20784 ;
20785 return 0;
20786}
20787_ACEOF
20788rm -f conftest.$ac_objext conftest$ac_exeext
20789if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 20790 (eval $ac_link) 2>conftest.er1
a848cd7e 20791 ac_status=$?
ac1cb8d3
VS
20792 grep -v '^ *+' conftest.er1 >conftest.err
20793 rm -f conftest.er1
20794 cat conftest.err >&5
a848cd7e
SC
20795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20796 (exit $ac_status); } &&
ffa0583f 20797 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20799 (eval $ac_try) 2>&5
20800 ac_status=$?
20801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20802 (exit $ac_status); }; } &&
20803 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
20804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20805 (eval $ac_try) 2>&5
20806 ac_status=$?
20807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20808 (exit $ac_status); }; }; then
20809 ac_cv_lib_z_deflate=yes
20810else
20811 echo "$as_me: failed program was:" >&5
20812sed 's/^/| /' conftest.$ac_ext >&5
20813
20814ac_cv_lib_z_deflate=no
20815fi
ac1cb8d3
VS
20816rm -f conftest.err conftest.$ac_objext \
20817 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
20818LIBS=$ac_check_lib_save_LIBS
20819fi
20820echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
20821echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
20822if test $ac_cv_lib_z_deflate = yes; then
20823 ZLIB_LINK=" -lz"
20824fi
20825
20826 fi
20827
20828 if test "x$ZLIB_LINK" = "x" ; then
20829 if test "$wxUSE_ZLIB" = "sys" ; then
20830 { { echo "$as_me:$LINENO: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&5
20831echo "$as_me: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&2;}
20832 { (exit 1); exit 1; }; }
20833 else
20834 { echo "$as_me:$LINENO: WARNING: zlib library not found or too old, will use built-in instead" >&5
20835echo "$as_me: WARNING: zlib library not found or too old, will use built-in instead" >&2;}
20836 wxUSE_ZLIB=builtin
20837 fi
20838 else
20839 wxUSE_ZLIB=sys
20840 fi
20841 fi
20842fi
20843
20844
20845PNG_LINK=
20846if test "$wxUSE_LIBPNG" != "no" ; then
20847 cat >>confdefs.h <<\_ACEOF
20848#define wxUSE_LIBPNG 1
20849_ACEOF
20850
20851
20852 if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBPNG" = "builtin" ; then
20853 { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&5
20854echo "$as_me: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&2;}
20855 wxUSE_LIBPNG=sys
20856 fi
20857
20858 if test "$wxUSE_MGL" != 1 -a "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then
20859 { echo "$as_me:$LINENO: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&5
20860echo "$as_me: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&2;}
20861 wxUSE_LIBPNG=builtin
20862 fi
20863
20864 if test "$wxUSE_MGL" != 1 ; then
20865 if test "$wxUSE_LIBPNG" = "sys" -o "$wxUSE_LIBPNG" = "yes" ; then
20866 echo "$as_me:$LINENO: checking for png.h > 0.90" >&5
20867echo $ECHO_N "checking for png.h > 0.90... $ECHO_C" >&6
20868if test "${ac_cv_header_png_h+set}" = set; then
20869 echo $ECHO_N "(cached) $ECHO_C" >&6
20870else
20871 if test "$cross_compiling" = yes; then
20872 unset ac_cv_header_png_h
20873
20874else
20875 cat >conftest.$ac_ext <<_ACEOF
20876/* confdefs.h. */
20877_ACEOF
20878cat confdefs.h >>conftest.$ac_ext
20879cat >>conftest.$ac_ext <<_ACEOF
20880/* end confdefs.h. */
20881
20882 #include <png.h>
20883 #include <stdio.h>
20884
20885 int main()
20886 {
20887 FILE *f=fopen("conftestval", "w");
20888 if (!f) exit(1);
20889 fprintf(f, "%s",
20890 PNG_LIBPNG_VER > 90 ? "yes" : "no");
20891 exit(0);
20892 }
20893
20894_ACEOF
20895rm -f conftest$ac_exeext
20896if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20897 (eval $ac_link) 2>&5
20898 ac_status=$?
20899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20900 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20902 (eval $ac_try) 2>&5
20903 ac_status=$?
20904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20905 (exit $ac_status); }; }; then
20906 ac_cv_header_png_h=`cat conftestval`
20907else
20908 echo "$as_me: program exited with status $ac_status" >&5
20909echo "$as_me: failed program was:" >&5
20910sed 's/^/| /' conftest.$ac_ext >&5
20911
20912( exit $ac_status )
20913ac_cv_header_png_h=no
20914fi
ac1cb8d3 20915rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20916fi
20917
20918fi
20919echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
20920echo "${ECHO_T}$ac_cv_header_png_h" >&6
20921 if test "${ac_cv_header_png_h+set}" = set; then
20922 echo "$as_me:$LINENO: checking for png.h" >&5
20923echo $ECHO_N "checking for png.h... $ECHO_C" >&6
20924if test "${ac_cv_header_png_h+set}" = set; then
20925 echo $ECHO_N "(cached) $ECHO_C" >&6
20926fi
20927echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
20928echo "${ECHO_T}$ac_cv_header_png_h" >&6
20929else
20930 # Is the header compilable?
20931echo "$as_me:$LINENO: checking png.h usability" >&5
20932echo $ECHO_N "checking png.h usability... $ECHO_C" >&6
20933cat >conftest.$ac_ext <<_ACEOF
20934/* confdefs.h. */
20935_ACEOF
20936cat confdefs.h >>conftest.$ac_ext
20937cat >>conftest.$ac_ext <<_ACEOF
20938/* end confdefs.h. */
20939$ac_includes_default
20940#include <png.h>
20941_ACEOF
20942rm -f conftest.$ac_objext
20943if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20944 (eval $ac_compile) 2>conftest.er1
a848cd7e 20945 ac_status=$?
ac1cb8d3
VS
20946 grep -v '^ *+' conftest.er1 >conftest.err
20947 rm -f conftest.er1
20948 cat conftest.err >&5
a848cd7e
SC
20949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20950 (exit $ac_status); } &&
ffa0583f 20951 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20953 (eval $ac_try) 2>&5
20954 ac_status=$?
20955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20956 (exit $ac_status); }; } &&
20957 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20959 (eval $ac_try) 2>&5
20960 ac_status=$?
20961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20962 (exit $ac_status); }; }; then
20963 ac_header_compiler=yes
20964else
20965 echo "$as_me: failed program was:" >&5
20966sed 's/^/| /' conftest.$ac_ext >&5
20967
20968ac_header_compiler=no
20969fi
ac1cb8d3 20970rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20971echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20972echo "${ECHO_T}$ac_header_compiler" >&6
20973
20974# Is the header present?
20975echo "$as_me:$LINENO: checking png.h presence" >&5
20976echo $ECHO_N "checking png.h presence... $ECHO_C" >&6
20977cat >conftest.$ac_ext <<_ACEOF
20978/* confdefs.h. */
20979_ACEOF
20980cat confdefs.h >>conftest.$ac_ext
20981cat >>conftest.$ac_ext <<_ACEOF
20982/* end confdefs.h. */
20983#include <png.h>
20984_ACEOF
20985if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20986 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20987 ac_status=$?
20988 grep -v '^ *+' conftest.er1 >conftest.err
20989 rm -f conftest.er1
20990 cat conftest.err >&5
20991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20992 (exit $ac_status); } >/dev/null; then
20993 if test -s conftest.err; then
20994 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 20995 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
20996 else
20997 ac_cpp_err=
20998 fi
20999else
21000 ac_cpp_err=yes
21001fi
21002if test -z "$ac_cpp_err"; then
21003 ac_header_preproc=yes
21004else
21005 echo "$as_me: failed program was:" >&5
21006sed 's/^/| /' conftest.$ac_ext >&5
21007
21008 ac_header_preproc=no
21009fi
21010rm -f conftest.err conftest.$ac_ext
21011echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21012echo "${ECHO_T}$ac_header_preproc" >&6
21013
21014# So? What about this header?
ac1cb8d3
VS
21015case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21016 yes:no: )
a848cd7e
SC
21017 { echo "$as_me:$LINENO: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&5
21018echo "$as_me: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
21019 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the compiler's result" >&5
21020echo "$as_me: WARNING: png.h: proceeding with the compiler's result" >&2;}
21021 ac_header_preproc=yes
a848cd7e 21022 ;;
ac1cb8d3 21023 no:yes:* )
a848cd7e
SC
21024 { echo "$as_me:$LINENO: WARNING: png.h: present but cannot be compiled" >&5
21025echo "$as_me: WARNING: png.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
21026 { echo "$as_me:$LINENO: WARNING: png.h: check for missing prerequisite headers?" >&5
21027echo "$as_me: WARNING: png.h: check for missing prerequisite headers?" >&2;}
21028 { echo "$as_me:$LINENO: WARNING: png.h: see the Autoconf documentation" >&5
21029echo "$as_me: WARNING: png.h: see the Autoconf documentation" >&2;}
21030 { echo "$as_me:$LINENO: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&5
21031echo "$as_me: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
21032 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5
21033echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
21034 { echo "$as_me:$LINENO: WARNING: png.h: in the future, the compiler will take precedence" >&5
21035echo "$as_me: WARNING: png.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
21036 (
21037 cat <<\_ASBOX
ac1cb8d3
VS
21038## ----------------------------------------- ##
21039## Report this to wx-dev@lists.wxwidgets.org ##
21040## ----------------------------------------- ##
a848cd7e
SC
21041_ASBOX
21042 ) |
21043 sed "s/^/$as_me: WARNING: /" >&2
21044 ;;
21045esac
21046echo "$as_me:$LINENO: checking for png.h" >&5
21047echo $ECHO_N "checking for png.h... $ECHO_C" >&6
21048if test "${ac_cv_header_png_h+set}" = set; then
21049 echo $ECHO_N "(cached) $ECHO_C" >&6
21050else
21051 ac_cv_header_png_h=$ac_header_preproc
21052fi
21053echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
21054echo "${ECHO_T}$ac_cv_header_png_h" >&6
21055
21056fi
21057
21058
21059
21060 if test "$ac_cv_header_png_h" = "yes"; then
21061 echo "$as_me:$LINENO: checking for png_check_sig in -lpng" >&5
21062echo $ECHO_N "checking for png_check_sig in -lpng... $ECHO_C" >&6
21063if test "${ac_cv_lib_png_png_check_sig+set}" = set; then
21064 echo $ECHO_N "(cached) $ECHO_C" >&6
21065else
21066 ac_check_lib_save_LIBS=$LIBS
21067LIBS="-lpng -lz -lm $LIBS"
21068cat >conftest.$ac_ext <<_ACEOF
21069/* confdefs.h. */
21070_ACEOF
21071cat confdefs.h >>conftest.$ac_ext
21072cat >>conftest.$ac_ext <<_ACEOF
21073/* end confdefs.h. */
21074
21075/* Override any gcc2 internal prototype to avoid an error. */
21076#ifdef __cplusplus
21077extern "C"
21078#endif
21079/* We use char because int might match the return type of a gcc2
21080 builtin and then its argument prototype would still apply. */
21081char png_check_sig ();
21082int
21083main ()
21084{
21085png_check_sig ();
21086 ;
21087 return 0;
21088}
21089_ACEOF
21090rm -f conftest.$ac_objext conftest$ac_exeext
21091if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 21092 (eval $ac_link) 2>conftest.er1
a848cd7e 21093 ac_status=$?
ac1cb8d3
VS
21094 grep -v '^ *+' conftest.er1 >conftest.err
21095 rm -f conftest.er1
21096 cat conftest.err >&5
a848cd7e
SC
21097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21098 (exit $ac_status); } &&
ffa0583f 21099 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21101 (eval $ac_try) 2>&5
21102 ac_status=$?
21103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21104 (exit $ac_status); }; } &&
21105 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
21106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21107 (eval $ac_try) 2>&5
21108 ac_status=$?
21109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21110 (exit $ac_status); }; }; then
21111 ac_cv_lib_png_png_check_sig=yes
21112else
21113 echo "$as_me: failed program was:" >&5
21114sed 's/^/| /' conftest.$ac_ext >&5
21115
21116ac_cv_lib_png_png_check_sig=no
21117fi
ac1cb8d3
VS
21118rm -f conftest.err conftest.$ac_objext \
21119 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
21120LIBS=$ac_check_lib_save_LIBS
21121fi
21122echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_check_sig" >&5
21123echo "${ECHO_T}$ac_cv_lib_png_png_check_sig" >&6
21124if test $ac_cv_lib_png_png_check_sig = yes; then
21125 PNG_LINK=" -lpng -lz"
21126fi
21127
21128 fi
21129
21130 if test "x$PNG_LINK" = "x" ; then
21131 if test "$wxUSE_LIBPNG" = "sys" ; then
21132 { { echo "$as_me:$LINENO: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&5
21133echo "$as_me: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&2;}
21134 { (exit 1); exit 1; }; }
21135 else
21136 { echo "$as_me:$LINENO: WARNING: system png library not found or too old, will use built-in instead" >&5
21137echo "$as_me: WARNING: system png library not found or too old, will use built-in instead" >&2;}
21138 wxUSE_LIBPNG=builtin
21139 fi
21140 else
21141 wxUSE_LIBPNG=sys
21142 fi
21143 fi
21144 fi
21145
21146 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png"
21147fi
21148
21149
21150JPEG_LINK=
21151if test "$wxUSE_LIBJPEG" != "no" ; then
21152 cat >>confdefs.h <<\_ACEOF
21153#define wxUSE_LIBJPEG 1
21154_ACEOF
21155
21156
21157 if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBJPEG" = "builtin" ; then
21158 { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&5
21159echo "$as_me: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&2;}
21160 wxUSE_LIBJPEG=sys
21161 fi
21162
21163 if test "$wxUSE_MGL" != 1 ; then
21164 if test "$wxUSE_LIBJPEG" = "sys" -o "$wxUSE_LIBJPEG" = "yes" ; then
21165 echo "$as_me:$LINENO: checking for jpeglib.h" >&5
21166echo $ECHO_N "checking for jpeglib.h... $ECHO_C" >&6
21167 if test "${ac_cv_header_jpeglib_h+set}" = set; then
21168 echo $ECHO_N "(cached) $ECHO_C" >&6
21169else
21170 cat >conftest.$ac_ext <<_ACEOF
21171/* confdefs.h. */
21172_ACEOF
21173cat confdefs.h >>conftest.$ac_ext
21174cat >>conftest.$ac_ext <<_ACEOF
21175/* end confdefs.h. */
21176
21177 #undef HAVE_STDLIB_H
21178 #include <stdio.h>
21179 #include <jpeglib.h>
21180
21181int
21182main ()
21183{
21184
21185
21186 ;
21187 return 0;
21188}
21189_ACEOF
21190rm -f conftest.$ac_objext
21191if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21192 (eval $ac_compile) 2>conftest.er1
a848cd7e 21193 ac_status=$?
ac1cb8d3
VS
21194 grep -v '^ *+' conftest.er1 >conftest.err
21195 rm -f conftest.er1
21196 cat conftest.err >&5
a848cd7e
SC
21197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21198 (exit $ac_status); } &&
ffa0583f 21199 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21201 (eval $ac_try) 2>&5
21202 ac_status=$?
21203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21204 (exit $ac_status); }; } &&
21205 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21207 (eval $ac_try) 2>&5
21208 ac_status=$?
21209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21210 (exit $ac_status); }; }; then
21211 ac_cv_header_jpeglib_h=yes
21212else
21213 echo "$as_me: failed program was:" >&5
21214sed 's/^/| /' conftest.$ac_ext >&5
21215
21216ac_cv_header_jpeglib_h=no
21217
21218fi
ac1cb8d3 21219rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21220
21221fi
21222
21223 echo "$as_me:$LINENO: result: $ac_cv_header_jpeglib_h" >&5
21224echo "${ECHO_T}$ac_cv_header_jpeglib_h" >&6
21225
21226 if test "$ac_cv_header_jpeglib_h" = "yes"; then
21227 echo "$as_me:$LINENO: checking for jpeg_read_header in -ljpeg" >&5
21228echo $ECHO_N "checking for jpeg_read_header in -ljpeg... $ECHO_C" >&6
21229if test "${ac_cv_lib_jpeg_jpeg_read_header+set}" = set; then
21230 echo $ECHO_N "(cached) $ECHO_C" >&6
21231else
21232 ac_check_lib_save_LIBS=$LIBS
21233LIBS="-ljpeg $LIBS"
21234cat >conftest.$ac_ext <<_ACEOF
21235/* confdefs.h. */
21236_ACEOF
21237cat confdefs.h >>conftest.$ac_ext
21238cat >>conftest.$ac_ext <<_ACEOF
21239/* end confdefs.h. */
21240
21241/* Override any gcc2 internal prototype to avoid an error. */
21242#ifdef __cplusplus
21243extern "C"
21244#endif
21245/* We use char because int might match the return type of a gcc2
21246 builtin and then its argument prototype would still apply. */
21247char jpeg_read_header ();
21248int
21249main ()
21250{
21251jpeg_read_header ();
21252 ;
21253 return 0;
21254}
21255_ACEOF
21256rm -f conftest.$ac_objext conftest$ac_exeext
21257if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 21258 (eval $ac_link) 2>conftest.er1
a848cd7e 21259 ac_status=$?
ac1cb8d3
VS
21260 grep -v '^ *+' conftest.er1 >conftest.err
21261 rm -f conftest.er1
21262 cat conftest.err >&5
a848cd7e
SC
21263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21264 (exit $ac_status); } &&
ffa0583f 21265 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21267 (eval $ac_try) 2>&5
21268 ac_status=$?
21269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21270 (exit $ac_status); }; } &&
21271 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
21272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21273 (eval $ac_try) 2>&5
21274 ac_status=$?
21275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21276 (exit $ac_status); }; }; then
21277 ac_cv_lib_jpeg_jpeg_read_header=yes
21278else
21279 echo "$as_me: failed program was:" >&5
21280sed 's/^/| /' conftest.$ac_ext >&5
21281
21282ac_cv_lib_jpeg_jpeg_read_header=no
21283fi
ac1cb8d3
VS
21284rm -f conftest.err conftest.$ac_objext \
21285 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
21286LIBS=$ac_check_lib_save_LIBS
21287fi
21288echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5
21289echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_read_header" >&6
21290if test $ac_cv_lib_jpeg_jpeg_read_header = yes; then
21291 JPEG_LINK=" -ljpeg"
21292fi
21293
21294 fi
21295
21296 if test "x$JPEG_LINK" = "x" ; then
21297 if test "$wxUSE_LIBJPEG" = "sys" ; then
21298 { { echo "$as_me:$LINENO: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&5
21299echo "$as_me: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&2;}
21300 { (exit 1); exit 1; }; }
21301 else
21302 { echo "$as_me:$LINENO: WARNING: system jpeg library not found, will use built-in instead" >&5
21303echo "$as_me: WARNING: system jpeg library not found, will use built-in instead" >&2;}
21304 wxUSE_LIBJPEG=builtin
21305 fi
21306 else
21307 wxUSE_LIBJPEG=sys
21308 fi
21309 fi
21310 fi
21311fi
21312
21313
21314TIFF_LINK=
21315TIFF_PREREQ_LINKS=-lm
21316if test "$wxUSE_LIBTIFF" != "no" ; then
21317 cat >>confdefs.h <<\_ACEOF
21318#define wxUSE_LIBTIFF 1
21319_ACEOF
21320
21321
21322 if test "$wxUSE_LIBTIFF" = "sys" -o "$wxUSE_LIBTIFF" = "yes" ; then
21323 if test "$wxUSE_LIBJPEG" = "sys"; then
21324 TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $JPEG_LINK"
21325 fi
21326 if test "$wxUSE_ZLIB" = "sys"; then
21327 TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $ZLIB_LINK"
21328 fi
21329 if test "${ac_cv_header_tiffio_h+set}" = set; then
21330 echo "$as_me:$LINENO: checking for tiffio.h" >&5
21331echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
21332if test "${ac_cv_header_tiffio_h+set}" = set; then
21333 echo $ECHO_N "(cached) $ECHO_C" >&6
21334fi
21335echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
21336echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
21337else
21338 # Is the header compilable?
21339echo "$as_me:$LINENO: checking tiffio.h usability" >&5
21340echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6
21341cat >conftest.$ac_ext <<_ACEOF
21342/* confdefs.h. */
21343_ACEOF
21344cat confdefs.h >>conftest.$ac_ext
21345cat >>conftest.$ac_ext <<_ACEOF
21346/* end confdefs.h. */
21347$ac_includes_default
21348#include <tiffio.h>
21349_ACEOF
21350rm -f conftest.$ac_objext
21351if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21352 (eval $ac_compile) 2>conftest.er1
a848cd7e 21353 ac_status=$?
ac1cb8d3
VS
21354 grep -v '^ *+' conftest.er1 >conftest.err
21355 rm -f conftest.er1
21356 cat conftest.err >&5
a848cd7e
SC
21357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21358 (exit $ac_status); } &&
ffa0583f 21359 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21361 (eval $ac_try) 2>&5
21362 ac_status=$?
21363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21364 (exit $ac_status); }; } &&
21365 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21367 (eval $ac_try) 2>&5
21368 ac_status=$?
21369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21370 (exit $ac_status); }; }; then
21371 ac_header_compiler=yes
21372else
21373 echo "$as_me: failed program was:" >&5
21374sed 's/^/| /' conftest.$ac_ext >&5
21375
21376ac_header_compiler=no
21377fi
ac1cb8d3 21378rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21379echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21380echo "${ECHO_T}$ac_header_compiler" >&6
21381
21382# Is the header present?
21383echo "$as_me:$LINENO: checking tiffio.h presence" >&5
21384echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6
21385cat >conftest.$ac_ext <<_ACEOF
21386/* confdefs.h. */
21387_ACEOF
21388cat confdefs.h >>conftest.$ac_ext
21389cat >>conftest.$ac_ext <<_ACEOF
21390/* end confdefs.h. */
21391#include <tiffio.h>
21392_ACEOF
21393if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21394 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21395 ac_status=$?
21396 grep -v '^ *+' conftest.er1 >conftest.err
21397 rm -f conftest.er1
21398 cat conftest.err >&5
21399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21400 (exit $ac_status); } >/dev/null; then
21401 if test -s conftest.err; then
21402 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 21403 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
21404 else
21405 ac_cpp_err=
21406 fi
21407else
21408 ac_cpp_err=yes
21409fi
21410if test -z "$ac_cpp_err"; then
21411 ac_header_preproc=yes
21412else
21413 echo "$as_me: failed program was:" >&5
21414sed 's/^/| /' conftest.$ac_ext >&5
21415
21416 ac_header_preproc=no
21417fi
21418rm -f conftest.err conftest.$ac_ext
21419echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21420echo "${ECHO_T}$ac_header_preproc" >&6
21421
21422# So? What about this header?
ac1cb8d3
VS
21423case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21424 yes:no: )
a848cd7e
SC
21425 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
21426echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
21427 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5
21428echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;}
21429 ac_header_preproc=yes
a848cd7e 21430 ;;
ac1cb8d3 21431 no:yes:* )
a848cd7e
SC
21432 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
21433echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
21434 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
21435echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
21436 { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
21437echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
21438 { echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
21439echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
21440 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
21441echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
21442 { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
21443echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
21444 (
21445 cat <<\_ASBOX
ac1cb8d3
VS
21446## ----------------------------------------- ##
21447## Report this to wx-dev@lists.wxwidgets.org ##
21448## ----------------------------------------- ##
a848cd7e
SC
21449_ASBOX
21450 ) |
21451 sed "s/^/$as_me: WARNING: /" >&2
21452 ;;
21453esac
21454echo "$as_me:$LINENO: checking for tiffio.h" >&5
21455echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
21456if test "${ac_cv_header_tiffio_h+set}" = set; then
21457 echo $ECHO_N "(cached) $ECHO_C" >&6
21458else
21459 ac_cv_header_tiffio_h=$ac_header_preproc
21460fi
21461echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
21462echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
21463
21464fi
21465if test $ac_cv_header_tiffio_h = yes; then
21466
21467 echo "$as_me:$LINENO: checking for TIFFError in -ltiff" >&5
21468echo $ECHO_N "checking for TIFFError in -ltiff... $ECHO_C" >&6
21469if test "${ac_cv_lib_tiff_TIFFError+set}" = set; then
21470 echo $ECHO_N "(cached) $ECHO_C" >&6
21471else
21472 ac_check_lib_save_LIBS=$LIBS
21473LIBS="-ltiff $TIFF_PREREQ_LINKS $LIBS"
21474cat >conftest.$ac_ext <<_ACEOF
21475/* confdefs.h. */
21476_ACEOF
21477cat confdefs.h >>conftest.$ac_ext
21478cat >>conftest.$ac_ext <<_ACEOF
21479/* end confdefs.h. */
21480
21481/* Override any gcc2 internal prototype to avoid an error. */
21482#ifdef __cplusplus
21483extern "C"
21484#endif
21485/* We use char because int might match the return type of a gcc2
21486 builtin and then its argument prototype would still apply. */
21487char TIFFError ();
21488int
21489main ()
21490{
21491TIFFError ();
21492 ;
21493 return 0;
21494}
21495_ACEOF
21496rm -f conftest.$ac_objext conftest$ac_exeext
21497if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 21498 (eval $ac_link) 2>conftest.er1
a848cd7e 21499 ac_status=$?
ac1cb8d3
VS
21500 grep -v '^ *+' conftest.er1 >conftest.err
21501 rm -f conftest.er1
21502 cat conftest.err >&5
a848cd7e
SC
21503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21504 (exit $ac_status); } &&
ffa0583f 21505 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21507 (eval $ac_try) 2>&5
21508 ac_status=$?
21509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21510 (exit $ac_status); }; } &&
21511 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
21512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21513 (eval $ac_try) 2>&5
21514 ac_status=$?
21515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21516 (exit $ac_status); }; }; then
21517 ac_cv_lib_tiff_TIFFError=yes
21518else
21519 echo "$as_me: failed program was:" >&5
21520sed 's/^/| /' conftest.$ac_ext >&5
21521
21522ac_cv_lib_tiff_TIFFError=no
21523fi
ac1cb8d3
VS
21524rm -f conftest.err conftest.$ac_objext \
21525 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
21526LIBS=$ac_check_lib_save_LIBS
21527fi
21528echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFError" >&5
21529echo "${ECHO_T}$ac_cv_lib_tiff_TIFFError" >&6
21530if test $ac_cv_lib_tiff_TIFFError = yes; then
21531 TIFF_LINK=" -ltiff"
21532fi
21533
21534
21535
21536fi
21537
21538
21539
21540 if test "x$TIFF_LINK" = "x" ; then
21541 if test "$wxUSE_LIBTIFF" = "sys" ; then
21542 { { echo "$as_me:$LINENO: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&5
21543echo "$as_me: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&2;}
21544 { (exit 1); exit 1; }; }
21545 else
21546 { echo "$as_me:$LINENO: WARNING: system tiff library not found, will use built-in instead" >&5
21547echo "$as_me: WARNING: system tiff library not found, will use built-in instead" >&2;}
21548 wxUSE_LIBTIFF=builtin
21549 fi
21550 else
21551 wxUSE_LIBTIFF=sys
21552 fi
21553 fi
21554fi
21555
21556
21557if test "$wxUSE_EXPAT" != "no"; then
21558 wxUSE_XML=yes
21559 cat >>confdefs.h <<\_ACEOF
21560#define wxUSE_EXPAT 1
21561_ACEOF
21562
21563 cat >>confdefs.h <<\_ACEOF
21564#define wxUSE_XML 1
21565_ACEOF
21566
21567
21568 if test "$wxUSE_EXPAT" = "sys" -o "$wxUSE_EXPAT" = "yes" ; then
21569 if test "${ac_cv_header_expat_h+set}" = set; then
21570 echo "$as_me:$LINENO: checking for expat.h" >&5
21571echo $ECHO_N "checking for expat.h... $ECHO_C" >&6
21572if test "${ac_cv_header_expat_h+set}" = set; then
21573 echo $ECHO_N "(cached) $ECHO_C" >&6
21574fi
21575echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5
21576echo "${ECHO_T}$ac_cv_header_expat_h" >&6
21577else
21578 # Is the header compilable?
21579echo "$as_me:$LINENO: checking expat.h usability" >&5
21580echo $ECHO_N "checking expat.h usability... $ECHO_C" >&6
21581cat >conftest.$ac_ext <<_ACEOF
21582/* confdefs.h. */
21583_ACEOF
21584cat confdefs.h >>conftest.$ac_ext
21585cat >>conftest.$ac_ext <<_ACEOF
21586/* end confdefs.h. */
21587$ac_includes_default
21588#include <expat.h>
21589_ACEOF
21590rm -f conftest.$ac_objext
21591if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21592 (eval $ac_compile) 2>conftest.er1
a848cd7e 21593 ac_status=$?
ac1cb8d3
VS
21594 grep -v '^ *+' conftest.er1 >conftest.err
21595 rm -f conftest.er1
21596 cat conftest.err >&5
a848cd7e
SC
21597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21598 (exit $ac_status); } &&
ffa0583f 21599 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21601 (eval $ac_try) 2>&5
21602 ac_status=$?
21603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21604 (exit $ac_status); }; } &&
21605 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21607 (eval $ac_try) 2>&5
21608 ac_status=$?
21609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21610 (exit $ac_status); }; }; then
21611 ac_header_compiler=yes
21612else
21613 echo "$as_me: failed program was:" >&5
21614sed 's/^/| /' conftest.$ac_ext >&5
21615
21616ac_header_compiler=no
21617fi
ac1cb8d3 21618rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21619echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21620echo "${ECHO_T}$ac_header_compiler" >&6
21621
21622# Is the header present?
21623echo "$as_me:$LINENO: checking expat.h presence" >&5
21624echo $ECHO_N "checking expat.h presence... $ECHO_C" >&6
21625cat >conftest.$ac_ext <<_ACEOF
21626/* confdefs.h. */
21627_ACEOF
21628cat confdefs.h >>conftest.$ac_ext
21629cat >>conftest.$ac_ext <<_ACEOF
21630/* end confdefs.h. */
21631#include <expat.h>
21632_ACEOF
21633if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21634 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21635 ac_status=$?
21636 grep -v '^ *+' conftest.er1 >conftest.err
21637 rm -f conftest.er1
21638 cat conftest.err >&5
21639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21640 (exit $ac_status); } >/dev/null; then
21641 if test -s conftest.err; then
21642 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 21643 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
21644 else
21645 ac_cpp_err=
21646 fi
21647else
21648 ac_cpp_err=yes
21649fi
21650if test -z "$ac_cpp_err"; then
21651 ac_header_preproc=yes
21652else
21653 echo "$as_me: failed program was:" >&5
21654sed 's/^/| /' conftest.$ac_ext >&5
21655
21656 ac_header_preproc=no
21657fi
21658rm -f conftest.err conftest.$ac_ext
21659echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21660echo "${ECHO_T}$ac_header_preproc" >&6
21661
21662# So? What about this header?
ac1cb8d3
VS
21663case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21664 yes:no: )
a848cd7e
SC
21665 { echo "$as_me:$LINENO: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&5
21666echo "$as_me: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
21667 { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the compiler's result" >&5
21668echo "$as_me: WARNING: expat.h: proceeding with the compiler's result" >&2;}
21669 ac_header_preproc=yes
a848cd7e 21670 ;;
ac1cb8d3 21671 no:yes:* )
a848cd7e
SC
21672 { echo "$as_me:$LINENO: WARNING: expat.h: present but cannot be compiled" >&5
21673echo "$as_me: WARNING: expat.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
21674 { echo "$as_me:$LINENO: WARNING: expat.h: check for missing prerequisite headers?" >&5
21675echo "$as_me: WARNING: expat.h: check for missing prerequisite headers?" >&2;}
21676 { echo "$as_me:$LINENO: WARNING: expat.h: see the Autoconf documentation" >&5
21677echo "$as_me: WARNING: expat.h: see the Autoconf documentation" >&2;}
21678 { echo "$as_me:$LINENO: WARNING: expat.h: section \"Present But Cannot Be Compiled\"" >&5
21679echo "$as_me: WARNING: expat.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
21680 { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the preprocessor's result" >&5
21681echo "$as_me: WARNING: expat.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
21682 { echo "$as_me:$LINENO: WARNING: expat.h: in the future, the compiler will take precedence" >&5
21683echo "$as_me: WARNING: expat.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
21684 (
21685 cat <<\_ASBOX
ac1cb8d3
VS
21686## ----------------------------------------- ##
21687## Report this to wx-dev@lists.wxwidgets.org ##
21688## ----------------------------------------- ##
a848cd7e
SC
21689_ASBOX
21690 ) |
21691 sed "s/^/$as_me: WARNING: /" >&2
21692 ;;
21693esac
21694echo "$as_me:$LINENO: checking for expat.h" >&5
21695echo $ECHO_N "checking for expat.h... $ECHO_C" >&6
21696if test "${ac_cv_header_expat_h+set}" = set; then
21697 echo $ECHO_N "(cached) $ECHO_C" >&6
21698else
21699 ac_cv_header_expat_h=$ac_header_preproc
21700fi
21701echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5
21702echo "${ECHO_T}$ac_cv_header_expat_h" >&6
21703
21704fi
21705if test $ac_cv_header_expat_h = yes; then
21706 found_expat_h=1
21707fi
21708
21709
21710 if test "x$found_expat_h" = "x1"; then
21711 echo "$as_me:$LINENO: checking if expat.h is valid C++ header" >&5
21712echo $ECHO_N "checking if expat.h is valid C++ header... $ECHO_C" >&6
21713if test "${wx_cv_expat_is_not_broken+set}" = set; then
21714 echo $ECHO_N "(cached) $ECHO_C" >&6
21715else
21716
21717
21718
21719 ac_ext=cc
21720ac_cpp='$CXXCPP $CPPFLAGS'
21721ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21722ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21723ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21724
21725 cat >conftest.$ac_ext <<_ACEOF
21726/* confdefs.h. */
21727_ACEOF
21728cat confdefs.h >>conftest.$ac_ext
21729cat >>conftest.$ac_ext <<_ACEOF
21730/* end confdefs.h. */
21731#include <expat.h>
21732int
21733main ()
21734{
21735
21736 ;
21737 return 0;
21738}
21739_ACEOF
21740rm -f conftest.$ac_objext
21741if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21742 (eval $ac_compile) 2>conftest.er1
a848cd7e 21743 ac_status=$?
ac1cb8d3
VS
21744 grep -v '^ *+' conftest.er1 >conftest.err
21745 rm -f conftest.er1
21746 cat conftest.err >&5
a848cd7e
SC
21747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21748 (exit $ac_status); } &&
ffa0583f 21749 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21751 (eval $ac_try) 2>&5
21752 ac_status=$?
21753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21754 (exit $ac_status); }; } &&
21755 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21757 (eval $ac_try) 2>&5
21758 ac_status=$?
21759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21760 (exit $ac_status); }; }; then
21761 wx_cv_expat_is_not_broken=yes
21762else
21763 echo "$as_me: failed program was:" >&5
21764sed 's/^/| /' conftest.$ac_ext >&5
21765
21766wx_cv_expat_is_not_broken=no
21767
21768fi
ac1cb8d3 21769rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21770 ac_ext=c
21771ac_cpp='$CPP $CPPFLAGS'
21772ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21773ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21774ac_compiler_gnu=$ac_cv_c_compiler_gnu
21775
21776
21777
21778fi
21779echo "$as_me:$LINENO: result: $wx_cv_expat_is_not_broken" >&5
21780echo "${ECHO_T}$wx_cv_expat_is_not_broken" >&6
21781 if test "$wx_cv_expat_is_not_broken" = "yes" ; then
21782 echo "$as_me:$LINENO: checking for XML_ParserCreate in -lexpat" >&5
21783echo $ECHO_N "checking for XML_ParserCreate in -lexpat... $ECHO_C" >&6
21784if test "${ac_cv_lib_expat_XML_ParserCreate+set}" = set; then
21785 echo $ECHO_N "(cached) $ECHO_C" >&6
21786else
21787 ac_check_lib_save_LIBS=$LIBS
21788LIBS="-lexpat $LIBS"
21789cat >conftest.$ac_ext <<_ACEOF
21790/* confdefs.h. */
21791_ACEOF
21792cat confdefs.h >>conftest.$ac_ext
21793cat >>conftest.$ac_ext <<_ACEOF
21794/* end confdefs.h. */
21795
21796/* Override any gcc2 internal prototype to avoid an error. */
21797#ifdef __cplusplus
21798extern "C"
21799#endif
21800/* We use char because int might match the return type of a gcc2
21801 builtin and then its argument prototype would still apply. */
21802char XML_ParserCreate ();
21803int
21804main ()
21805{
21806XML_ParserCreate ();
21807 ;
21808 return 0;
21809}
21810_ACEOF
21811rm -f conftest.$ac_objext conftest$ac_exeext
21812if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 21813 (eval $ac_link) 2>conftest.er1
a848cd7e 21814 ac_status=$?
ac1cb8d3
VS
21815 grep -v '^ *+' conftest.er1 >conftest.err
21816 rm -f conftest.er1
21817 cat conftest.err >&5
a848cd7e
SC
21818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21819 (exit $ac_status); } &&
ffa0583f 21820 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21822 (eval $ac_try) 2>&5
21823 ac_status=$?
21824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21825 (exit $ac_status); }; } &&
21826 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
21827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21828 (eval $ac_try) 2>&5
21829 ac_status=$?
21830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21831 (exit $ac_status); }; }; then
21832 ac_cv_lib_expat_XML_ParserCreate=yes
21833else
21834 echo "$as_me: failed program was:" >&5
21835sed 's/^/| /' conftest.$ac_ext >&5
21836
21837ac_cv_lib_expat_XML_ParserCreate=no
21838fi
ac1cb8d3
VS
21839rm -f conftest.err conftest.$ac_objext \
21840 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
21841LIBS=$ac_check_lib_save_LIBS
21842fi
21843echo "$as_me:$LINENO: result: $ac_cv_lib_expat_XML_ParserCreate" >&5
21844echo "${ECHO_T}$ac_cv_lib_expat_XML_ParserCreate" >&6
21845if test $ac_cv_lib_expat_XML_ParserCreate = yes; then
21846 EXPAT_LINK=" -lexpat"
21847fi
21848
21849 fi
21850 fi
21851 if test "x$EXPAT_LINK" = "x" ; then
21852 if test "$wxUSE_EXPAT" = "sys" ; then
21853 { { echo "$as_me:$LINENO: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&5
21854echo "$as_me: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&2;}
21855 { (exit 1); exit 1; }; }
21856 else
21857 { echo "$as_me:$LINENO: WARNING: system expat library not found, will use built-in instead" >&5
21858echo "$as_me: WARNING: system expat library not found, will use built-in instead" >&2;}
21859 wxUSE_EXPAT=builtin
21860 fi
21861 else
21862 wxUSE_EXPAT=sys
21863 fi
21864 fi
21865 if test "$wxUSE_EXPAT" = "builtin" ; then
21866
21867
21868subdirs="$subdirs src/expat"
21869
21870 fi
21871fi
21872
21873
21874
21875if test "$wxUSE_LIBMSPACK" != "no"; then
21876
21877 if test "${ac_cv_header_mspack_h+set}" = set; then
21878 echo "$as_me:$LINENO: checking for mspack.h" >&5
21879echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6
21880if test "${ac_cv_header_mspack_h+set}" = set; then
21881 echo $ECHO_N "(cached) $ECHO_C" >&6
21882fi
21883echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5
21884echo "${ECHO_T}$ac_cv_header_mspack_h" >&6
21885else
21886 # Is the header compilable?
21887echo "$as_me:$LINENO: checking mspack.h usability" >&5
21888echo $ECHO_N "checking mspack.h usability... $ECHO_C" >&6
21889cat >conftest.$ac_ext <<_ACEOF
21890/* confdefs.h. */
21891_ACEOF
21892cat confdefs.h >>conftest.$ac_ext
21893cat >>conftest.$ac_ext <<_ACEOF
21894/* end confdefs.h. */
21895$ac_includes_default
21896#include <mspack.h>
21897_ACEOF
21898rm -f conftest.$ac_objext
21899if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21900 (eval $ac_compile) 2>conftest.er1
a848cd7e 21901 ac_status=$?
ac1cb8d3
VS
21902 grep -v '^ *+' conftest.er1 >conftest.err
21903 rm -f conftest.er1
21904 cat conftest.err >&5
a848cd7e
SC
21905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21906 (exit $ac_status); } &&
ffa0583f 21907 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21909 (eval $ac_try) 2>&5
21910 ac_status=$?
21911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21912 (exit $ac_status); }; } &&
21913 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21915 (eval $ac_try) 2>&5
21916 ac_status=$?
21917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21918 (exit $ac_status); }; }; then
21919 ac_header_compiler=yes
21920else
21921 echo "$as_me: failed program was:" >&5
21922sed 's/^/| /' conftest.$ac_ext >&5
21923
21924ac_header_compiler=no
21925fi
ac1cb8d3 21926rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21927echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21928echo "${ECHO_T}$ac_header_compiler" >&6
21929
21930# Is the header present?
21931echo "$as_me:$LINENO: checking mspack.h presence" >&5
21932echo $ECHO_N "checking mspack.h presence... $ECHO_C" >&6
21933cat >conftest.$ac_ext <<_ACEOF
21934/* confdefs.h. */
21935_ACEOF
21936cat confdefs.h >>conftest.$ac_ext
21937cat >>conftest.$ac_ext <<_ACEOF
21938/* end confdefs.h. */
21939#include <mspack.h>
21940_ACEOF
21941if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21942 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21943 ac_status=$?
21944 grep -v '^ *+' conftest.er1 >conftest.err
21945 rm -f conftest.er1
21946 cat conftest.err >&5
21947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21948 (exit $ac_status); } >/dev/null; then
21949 if test -s conftest.err; then
21950 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 21951 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
21952 else
21953 ac_cpp_err=
21954 fi
21955else
21956 ac_cpp_err=yes
21957fi
21958if test -z "$ac_cpp_err"; then
21959 ac_header_preproc=yes
21960else
21961 echo "$as_me: failed program was:" >&5
21962sed 's/^/| /' conftest.$ac_ext >&5
21963
21964 ac_header_preproc=no
21965fi
21966rm -f conftest.err conftest.$ac_ext
21967echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21968echo "${ECHO_T}$ac_header_preproc" >&6
21969
21970# So? What about this header?
ac1cb8d3
VS
21971case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21972 yes:no: )
a848cd7e
SC
21973 { echo "$as_me:$LINENO: WARNING: mspack.h: accepted by the compiler, rejected by the preprocessor!" >&5
21974echo "$as_me: WARNING: mspack.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
21975 { echo "$as_me:$LINENO: WARNING: mspack.h: proceeding with the compiler's result" >&5
21976echo "$as_me: WARNING: mspack.h: proceeding with the compiler's result" >&2;}
21977 ac_header_preproc=yes
a848cd7e 21978 ;;
ac1cb8d3 21979 no:yes:* )
a848cd7e
SC
21980 { echo "$as_me:$LINENO: WARNING: mspack.h: present but cannot be compiled" >&5
21981echo "$as_me: WARNING: mspack.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
21982 { echo "$as_me:$LINENO: WARNING: mspack.h: check for missing prerequisite headers?" >&5
21983echo "$as_me: WARNING: mspack.h: check for missing prerequisite headers?" >&2;}
21984 { echo "$as_me:$LINENO: WARNING: mspack.h: see the Autoconf documentation" >&5
21985echo "$as_me: WARNING: mspack.h: see the Autoconf documentation" >&2;}
21986 { echo "$as_me:$LINENO: WARNING: mspack.h: section \"Present But Cannot Be Compiled\"" >&5
21987echo "$as_me: WARNING: mspack.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
21988 { echo "$as_me:$LINENO: WARNING: mspack.h: proceeding with the preprocessor's result" >&5
21989echo "$as_me: WARNING: mspack.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
21990 { echo "$as_me:$LINENO: WARNING: mspack.h: in the future, the compiler will take precedence" >&5
21991echo "$as_me: WARNING: mspack.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
21992 (
21993 cat <<\_ASBOX
ac1cb8d3
VS
21994## ----------------------------------------- ##
21995## Report this to wx-dev@lists.wxwidgets.org ##
21996## ----------------------------------------- ##
a848cd7e
SC
21997_ASBOX
21998 ) |
21999 sed "s/^/$as_me: WARNING: /" >&2
22000 ;;
22001esac
22002echo "$as_me:$LINENO: checking for mspack.h" >&5
22003echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6
22004if test "${ac_cv_header_mspack_h+set}" = set; then
22005 echo $ECHO_N "(cached) $ECHO_C" >&6
22006else
22007 ac_cv_header_mspack_h=$ac_header_preproc
22008fi
22009echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5
22010echo "${ECHO_T}$ac_cv_header_mspack_h" >&6
22011
22012fi
22013if test $ac_cv_header_mspack_h = yes; then
22014 found_mspack_h=1
22015fi
22016
22017
22018 if test "x$found_mspack_h" = "x1"; then
22019 echo "$as_me:$LINENO: checking for mspack_create_chm_decompressor in -lmspack" >&5
22020echo $ECHO_N "checking for mspack_create_chm_decompressor in -lmspack... $ECHO_C" >&6
22021if test "${ac_cv_lib_mspack_mspack_create_chm_decompressor+set}" = set; then
22022 echo $ECHO_N "(cached) $ECHO_C" >&6
22023else
22024 ac_check_lib_save_LIBS=$LIBS
22025LIBS="-lmspack $LIBS"
22026cat >conftest.$ac_ext <<_ACEOF
22027/* confdefs.h. */
22028_ACEOF
22029cat confdefs.h >>conftest.$ac_ext
22030cat >>conftest.$ac_ext <<_ACEOF
22031/* end confdefs.h. */
22032
22033/* Override any gcc2 internal prototype to avoid an error. */
22034#ifdef __cplusplus
22035extern "C"
22036#endif
22037/* We use char because int might match the return type of a gcc2
22038 builtin and then its argument prototype would still apply. */
22039char mspack_create_chm_decompressor ();
22040int
22041main ()
22042{
22043mspack_create_chm_decompressor ();
22044 ;
22045 return 0;
22046}
22047_ACEOF
22048rm -f conftest.$ac_objext conftest$ac_exeext
22049if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 22050 (eval $ac_link) 2>conftest.er1
a848cd7e 22051 ac_status=$?
ac1cb8d3
VS
22052 grep -v '^ *+' conftest.er1 >conftest.err
22053 rm -f conftest.er1
22054 cat conftest.err >&5
a848cd7e
SC
22055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22056 (exit $ac_status); } &&
ffa0583f 22057 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
22058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22059 (eval $ac_try) 2>&5
22060 ac_status=$?
22061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22062 (exit $ac_status); }; } &&
22063 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
22064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22065 (eval $ac_try) 2>&5
22066 ac_status=$?
22067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22068 (exit $ac_status); }; }; then
22069 ac_cv_lib_mspack_mspack_create_chm_decompressor=yes
22070else
22071 echo "$as_me: failed program was:" >&5
22072sed 's/^/| /' conftest.$ac_ext >&5
22073
22074ac_cv_lib_mspack_mspack_create_chm_decompressor=no
22075fi
ac1cb8d3
VS
22076rm -f conftest.err conftest.$ac_objext \
22077 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
22078LIBS=$ac_check_lib_save_LIBS
22079fi
22080echo "$as_me:$LINENO: result: $ac_cv_lib_mspack_mspack_create_chm_decompressor" >&5
22081echo "${ECHO_T}$ac_cv_lib_mspack_mspack_create_chm_decompressor" >&6
22082if test $ac_cv_lib_mspack_mspack_create_chm_decompressor = yes; then
22083 MSPACK_LINK=" -lmspack"
22084fi
22085
22086 fi
22087 if test "x$MSPACK_LINK" = "x" ; then
22088 wxUSE_LIBMSPACK=no
22089 else
22090 cat >>confdefs.h <<\_ACEOF
22091#define wxUSE_LIBMSPACK 1
22092_ACEOF
22093
22094 fi
22095fi
22096
22097
22098
22099AFMINSTALL=
22100WIN32INSTALL=
22101
22102TOOLKIT=
22103TOOLKIT_INCLUDE=
22104WIDGET_SET=
22105
22106if test "$USE_WIN32" = 1 ; then
22107
22108for ac_header in w32api.h
22109do
22110as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22111if eval "test \"\${$as_ac_Header+set}\" = set"; then
22112 echo "$as_me:$LINENO: checking for $ac_header" >&5
22113echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22114if eval "test \"\${$as_ac_Header+set}\" = set"; then
22115 echo $ECHO_N "(cached) $ECHO_C" >&6
22116fi
22117echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22118echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22119else
22120 # Is the header compilable?
22121echo "$as_me:$LINENO: checking $ac_header usability" >&5
22122echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
22123cat >conftest.$ac_ext <<_ACEOF
22124/* confdefs.h. */
22125_ACEOF
22126cat confdefs.h >>conftest.$ac_ext
22127cat >>conftest.$ac_ext <<_ACEOF
22128/* end confdefs.h. */
22129$ac_includes_default
22130#include <$ac_header>
22131_ACEOF
22132rm -f conftest.$ac_objext
22133if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22134 (eval $ac_compile) 2>conftest.er1
a848cd7e 22135 ac_status=$?
ac1cb8d3
VS
22136 grep -v '^ *+' conftest.er1 >conftest.err
22137 rm -f conftest.er1
22138 cat conftest.err >&5
a848cd7e
SC
22139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22140 (exit $ac_status); } &&
ffa0583f 22141 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
22142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22143 (eval $ac_try) 2>&5
22144 ac_status=$?
22145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22146 (exit $ac_status); }; } &&
22147 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
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); }; }; then
22153 ac_header_compiler=yes
22154else
22155 echo "$as_me: failed program was:" >&5
22156sed 's/^/| /' conftest.$ac_ext >&5
22157
22158ac_header_compiler=no
22159fi
ac1cb8d3 22160rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22161echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22162echo "${ECHO_T}$ac_header_compiler" >&6
22163
22164# Is the header present?
22165echo "$as_me:$LINENO: checking $ac_header presence" >&5
22166echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
22167cat >conftest.$ac_ext <<_ACEOF
22168/* confdefs.h. */
22169_ACEOF
22170cat confdefs.h >>conftest.$ac_ext
22171cat >>conftest.$ac_ext <<_ACEOF
22172/* end confdefs.h. */
22173#include <$ac_header>
22174_ACEOF
22175if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22176 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22177 ac_status=$?
22178 grep -v '^ *+' conftest.er1 >conftest.err
22179 rm -f conftest.er1
22180 cat conftest.err >&5
22181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22182 (exit $ac_status); } >/dev/null; then
22183 if test -s conftest.err; then
22184 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 22185 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
22186 else
22187 ac_cpp_err=
22188 fi
22189else
22190 ac_cpp_err=yes
22191fi
22192if test -z "$ac_cpp_err"; then
22193 ac_header_preproc=yes
22194else
22195 echo "$as_me: failed program was:" >&5
22196sed 's/^/| /' conftest.$ac_ext >&5
22197
22198 ac_header_preproc=no
22199fi
22200rm -f conftest.err conftest.$ac_ext
22201echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22202echo "${ECHO_T}$ac_header_preproc" >&6
22203
22204# So? What about this header?
ac1cb8d3
VS
22205case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22206 yes:no: )
a848cd7e
SC
22207 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22208echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
22209 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22210echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22211 ac_header_preproc=yes
a848cd7e 22212 ;;
ac1cb8d3 22213 no:yes:* )
a848cd7e
SC
22214 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22215echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
22216 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22217echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22218 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22219echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22220 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22221echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
22222 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22223echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
22224 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22225echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
22226 (
22227 cat <<\_ASBOX
ac1cb8d3
VS
22228## ----------------------------------------- ##
22229## Report this to wx-dev@lists.wxwidgets.org ##
22230## ----------------------------------------- ##
a848cd7e
SC
22231_ASBOX
22232 ) |
22233 sed "s/^/$as_me: WARNING: /" >&2
22234 ;;
22235esac
22236echo "$as_me:$LINENO: checking for $ac_header" >&5
22237echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22238if eval "test \"\${$as_ac_Header+set}\" = set"; then
22239 echo $ECHO_N "(cached) $ECHO_C" >&6
22240else
ac1cb8d3 22241 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
22242fi
22243echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22244echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22245
22246fi
22247if test `eval echo '${'$as_ac_Header'}'` = yes; then
22248 cat >>confdefs.h <<_ACEOF
22249#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22250_ACEOF
22251
22252fi
22253
22254done
22255
22256 if test "${ac_cv_header_windows_h+set}" = set; then
22257 echo "$as_me:$LINENO: checking for windows.h" >&5
22258echo $ECHO_N "checking for windows.h... $ECHO_C" >&6
22259if test "${ac_cv_header_windows_h+set}" = set; then
22260 echo $ECHO_N "(cached) $ECHO_C" >&6
22261fi
22262echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
22263echo "${ECHO_T}$ac_cv_header_windows_h" >&6
22264else
22265 # Is the header compilable?
22266echo "$as_me:$LINENO: checking windows.h usability" >&5
22267echo $ECHO_N "checking windows.h usability... $ECHO_C" >&6
22268cat >conftest.$ac_ext <<_ACEOF
22269/* confdefs.h. */
22270_ACEOF
22271cat confdefs.h >>conftest.$ac_ext
22272cat >>conftest.$ac_ext <<_ACEOF
22273/* end confdefs.h. */
22274$ac_includes_default
22275#include <windows.h>
22276_ACEOF
22277rm -f conftest.$ac_objext
22278if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22279 (eval $ac_compile) 2>conftest.er1
a848cd7e 22280 ac_status=$?
ac1cb8d3
VS
22281 grep -v '^ *+' conftest.er1 >conftest.err
22282 rm -f conftest.er1
22283 cat conftest.err >&5
a848cd7e
SC
22284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22285 (exit $ac_status); } &&
ffa0583f 22286 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
22287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22288 (eval $ac_try) 2>&5
22289 ac_status=$?
22290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22291 (exit $ac_status); }; } &&
22292 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22294 (eval $ac_try) 2>&5
22295 ac_status=$?
22296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22297 (exit $ac_status); }; }; then
22298 ac_header_compiler=yes
22299else
22300 echo "$as_me: failed program was:" >&5
22301sed 's/^/| /' conftest.$ac_ext >&5
22302
22303ac_header_compiler=no
22304fi
ac1cb8d3 22305rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22306echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22307echo "${ECHO_T}$ac_header_compiler" >&6
22308
22309# Is the header present?
22310echo "$as_me:$LINENO: checking windows.h presence" >&5
22311echo $ECHO_N "checking windows.h presence... $ECHO_C" >&6
22312cat >conftest.$ac_ext <<_ACEOF
22313/* confdefs.h. */
22314_ACEOF
22315cat confdefs.h >>conftest.$ac_ext
22316cat >>conftest.$ac_ext <<_ACEOF
22317/* end confdefs.h. */
22318#include <windows.h>
22319_ACEOF
22320if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22321 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22322 ac_status=$?
22323 grep -v '^ *+' conftest.er1 >conftest.err
22324 rm -f conftest.er1
22325 cat conftest.err >&5
22326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22327 (exit $ac_status); } >/dev/null; then
22328 if test -s conftest.err; then
22329 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 22330 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
22331 else
22332 ac_cpp_err=
22333 fi
22334else
22335 ac_cpp_err=yes
22336fi
22337if test -z "$ac_cpp_err"; then
22338 ac_header_preproc=yes
22339else
22340 echo "$as_me: failed program was:" >&5
22341sed 's/^/| /' conftest.$ac_ext >&5
22342
22343 ac_header_preproc=no
22344fi
22345rm -f conftest.err conftest.$ac_ext
22346echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22347echo "${ECHO_T}$ac_header_preproc" >&6
22348
22349# So? What about this header?
ac1cb8d3
VS
22350case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22351 yes:no: )
a848cd7e
SC
22352 { echo "$as_me:$LINENO: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&5
22353echo "$as_me: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
22354 { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the compiler's result" >&5
22355echo "$as_me: WARNING: windows.h: proceeding with the compiler's result" >&2;}
22356 ac_header_preproc=yes
a848cd7e 22357 ;;
ac1cb8d3 22358 no:yes:* )
a848cd7e
SC
22359 { echo "$as_me:$LINENO: WARNING: windows.h: present but cannot be compiled" >&5
22360echo "$as_me: WARNING: windows.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
22361 { echo "$as_me:$LINENO: WARNING: windows.h: check for missing prerequisite headers?" >&5
22362echo "$as_me: WARNING: windows.h: check for missing prerequisite headers?" >&2;}
22363 { echo "$as_me:$LINENO: WARNING: windows.h: see the Autoconf documentation" >&5
22364echo "$as_me: WARNING: windows.h: see the Autoconf documentation" >&2;}
22365 { echo "$as_me:$LINENO: WARNING: windows.h: section \"Present But Cannot Be Compiled\"" >&5
22366echo "$as_me: WARNING: windows.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
22367 { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the preprocessor's result" >&5
22368echo "$as_me: WARNING: windows.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
22369 { echo "$as_me:$LINENO: WARNING: windows.h: in the future, the compiler will take precedence" >&5
22370echo "$as_me: WARNING: windows.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
22371 (
22372 cat <<\_ASBOX
ac1cb8d3
VS
22373## ----------------------------------------- ##
22374## Report this to wx-dev@lists.wxwidgets.org ##
22375## ----------------------------------------- ##
a848cd7e
SC
22376_ASBOX
22377 ) |
22378 sed "s/^/$as_me: WARNING: /" >&2
22379 ;;
22380esac
22381echo "$as_me:$LINENO: checking for windows.h" >&5
22382echo $ECHO_N "checking for windows.h... $ECHO_C" >&6
22383if test "${ac_cv_header_windows_h+set}" = set; then
22384 echo $ECHO_N "(cached) $ECHO_C" >&6
22385else
22386 ac_cv_header_windows_h=$ac_header_preproc
22387fi
22388echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
22389echo "${ECHO_T}$ac_cv_header_windows_h" >&6
22390
22391fi
22392if test $ac_cv_header_windows_h = yes; then
22393 :
22394else
22395
22396 { { echo "$as_me:$LINENO: error: please set CFLAGS to contain the location of windows.h" >&5
22397echo "$as_me: error: please set CFLAGS to contain the location of windows.h" >&2;}
22398 { (exit 1); exit 1; }; }
22399
22400fi
22401
22402
22403
22404 LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lcomdlg32 -lctl3d32 -ladvapi32 -lwsock32 -lgdi32"
22405
22406 if test "$wxUSE_ACCESSIBILITY" = "yes" ; then
22407 LIBS="$LIBS -loleacc"
22408 fi
22409
22410 case "${host}" in
22411 *-*-cygwin* )
22412 LIBS="$LIBS -lkernel32 -luser32"
22413 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WIN95__"
22414 esac
22415
22416 if test "$wxUSE_ODBC" = "sys" ; then
22417 wxUSE_ODBC = "yes"
22418 fi
22419 if test "$wxUSE_ODBC" = "yes" ; then
22420 LIBS=" -lodbc32 -lole32 -loleaut32 $LIBS"
22421 cat >>confdefs.h <<\_ACEOF
22422#define wxUSE_ODBC 1
22423_ACEOF
22424
22425 fi
22426
22427 RESFLAGS="--include-dir \$(top_srcdir)/include --include-dir \$(top_srcdir)/\$(program_dir) --define __WIN32__ --define __WIN95__ --define __GNUWIN32__"
22428 RESPROGRAMOBJ="\$(PROGRAM)_resources.o"
22429
22430 WIN32INSTALL=win32install
22431fi
22432
22433if test "$wxUSE_GUI" = "yes"; then
22434 USE_GUI=1
22435
22436 GUI_TK_LIBRARY=
22437
22438 WXGTK12=
22439 WXGTK127=
22440 WXGTK20=
22441 WXGPE=
22442
207bc66c
RN
22443 if test "$wxUSE_COCOA" = 1 ; then
22444 if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes"; then
22445 { echo "$as_me:$LINENO: WARNING: Printing not supported under wxCocoa yet, disabled" >&5
22446echo "$as_me: WARNING: Printing not supported under wxCocoa yet, disabled" >&2;}
22447 wxUSE_PRINTING_ARCHITECTURE=no
22448 fi
22449 if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
22450 { echo "$as_me:$LINENO: WARNING: Drag and Drop not supported under wxCocoa yet, disabled" >&5
22451echo "$as_me: WARNING: Drag and Drop not supported under wxCocoa yet, disabled" >&2;}
22452 wxUSE_DRAG_AND_DROP=no
22453 fi
22454 if test "$wxUSE_DRAGIMAGE" = "yes"; then
22455 { echo "$as_me:$LINENO: WARNING: Drag Image and DandD not supported under wxCocoa yet, disabled" >&5
22456echo "$as_me: WARNING: Drag Image and DandD not supported under wxCocoa yet, disabled" >&2;}
22457 wxUSE_DRAGIMAGE=no
22458 fi
22459 fi
22460
a848cd7e
SC
22461 if test "$wxUSE_MSW" = 1 ; then
22462 TOOLKIT=MSW
22463 GUIDIST=MSW_DIST
22464
ceec2216 22465 case "${host}" in
a848cd7e
SC
22466 *-*-mingw32* )
22467 WXCONFIG_LDFLAGS_GUI="$LDFLAGS -Wl,--subsystem,windows -mwindows"
22468 esac
22469 fi
22470
22471 if test "$wxUSE_GTK" = 1; then
22472 echo "$as_me:$LINENO: checking for GTK+ version" >&5
22473echo $ECHO_N "checking for GTK+ version... $ECHO_C" >&6
22474
22475 gtk_version_cached=1
22476 if test "${wx_cv_lib_gtk+set}" = set; then
22477 echo $ECHO_N "(cached) $ECHO_C" >&6
22478else
22479
22480 gtk_version_cached=0
22481 echo "$as_me:$LINENO: result: " >&5
22482echo "${ECHO_T}" >&6
22483
22484 GTK_MODULES=
22485 if test "$wxUSE_THREADS" = "yes"; then
22486 GTK_MODULES=gthread
22487 fi
22488
22489 wx_cv_lib_gtk=
22490 if test "x$wxUSE_GTK2" = "xyes"; then
22491 # Check whether --enable-gtktest or --disable-gtktest was given.
22492if test "${enable_gtktest+set}" = set; then
22493 enableval="$enable_gtktest"
22494
22495else
22496 enable_gtktest=yes
22497fi;
22498
22499 pkg_config_args=gtk+-2.0
22500 for module in . $GTK_MODULES
22501 do
22502 case "$module" in
22503 gthread)
22504 pkg_config_args="$pkg_config_args gthread-2.0"
22505 ;;
22506 esac
22507 done
22508
22509 no_gtk=""
22510
22511 # Extract the first word of "pkg-config", so it can be a program name with args.
22512set dummy pkg-config; ac_word=$2
22513echo "$as_me:$LINENO: checking for $ac_word" >&5
22514echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22515if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
22516 echo $ECHO_N "(cached) $ECHO_C" >&6
22517else
22518 case $PKG_CONFIG in
22519 [\\/]* | ?:[\\/]*)
22520 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
22521 ;;
22522 *)
22523 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22524for as_dir in $PATH
22525do
22526 IFS=$as_save_IFS
22527 test -z "$as_dir" && as_dir=.
22528 for ac_exec_ext in '' $ac_executable_extensions; do
22529 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22530 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22531 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22532 break 2
22533 fi
22534done
22535done
22536
22537 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
22538 ;;
22539esac
22540fi
22541PKG_CONFIG=$ac_cv_path_PKG_CONFIG
22542
22543if test -n "$PKG_CONFIG"; then
22544 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
22545echo "${ECHO_T}$PKG_CONFIG" >&6
22546else
22547 echo "$as_me:$LINENO: result: no" >&5
22548echo "${ECHO_T}no" >&6
22549fi
22550
22551
22552 if test x$PKG_CONFIG != xno ; then
22553 if pkg-config --atleast-pkgconfig-version 0.7 ; then
22554 :
22555 else
c2218763 22556 echo "*** pkg-config too old; version 0.7 or better required."
a848cd7e
SC
22557 no_gtk=yes
22558 PKG_CONFIG=no
22559 fi
22560 else
22561 no_gtk=yes
22562 fi
22563
22564 min_gtk_version=2.0.0
22565 echo "$as_me:$LINENO: checking for GTK+ - version >= $min_gtk_version" >&5
22566echo $ECHO_N "checking for GTK+ - version >= $min_gtk_version... $ECHO_C" >&6
22567
22568 if test x$PKG_CONFIG != xno ; then
22569 ## don't try to run the test against uninstalled libtool libs
22570 if $PKG_CONFIG --uninstalled $pkg_config_args; then
22571 echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH"
22572 enable_gtktest=no
22573 fi
22574
22575 if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then
22576 :
22577 else
22578 no_gtk=yes
22579 fi
22580 fi
22581
22582 if test x"$no_gtk" = x ; then
22583 GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags`
22584 GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs`
22585 gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
22586 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
22587 gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
22588 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
22589 gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
22590 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
22591 if test "x$enable_gtktest" = "xyes" ; then
22592 ac_save_CFLAGS="$CFLAGS"
22593 ac_save_LIBS="$LIBS"
22594 CFLAGS="$CFLAGS $GTK_CFLAGS"
22595 LIBS="$GTK_LIBS $LIBS"
22596 rm -f conf.gtktest
22597 if test "$cross_compiling" = yes; then
22598 echo $ac_n "cross compiling; assumed OK... $ac_c"
22599else
22600 cat >conftest.$ac_ext <<_ACEOF
22601/* confdefs.h. */
22602_ACEOF
22603cat confdefs.h >>conftest.$ac_ext
22604cat >>conftest.$ac_ext <<_ACEOF
22605/* end confdefs.h. */
22606
22607#include <gtk/gtk.h>
22608#include <stdio.h>
22609#include <stdlib.h>
22610
22611int
22612main ()
22613{
22614 int major, minor, micro;
22615 char *tmp_version;
22616
22617 system ("touch conf.gtktest");
22618
22619 /* HP/UX 9 (%@#!) writes to sscanf strings */
22620 tmp_version = g_strdup("$min_gtk_version");
22621 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
22622 printf("%s, bad version string\n", "$min_gtk_version");
22623 exit(1);
22624 }
22625
22626 if ((gtk_major_version != $gtk_config_major_version) ||
22627 (gtk_minor_version != $gtk_config_minor_version) ||
22628 (gtk_micro_version != $gtk_config_micro_version))
22629 {
22630 printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
22631 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
22632 gtk_major_version, gtk_minor_version, gtk_micro_version);
22633 printf ("*** was found! If pkg-config was correct, then it is best\n");
22634 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
22635 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
22636 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
22637 printf("*** required on your system.\n");
22638 printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
22639 printf("*** to point to the correct configuration files\n");
22640 }
22641 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
22642 (gtk_minor_version != GTK_MINOR_VERSION) ||
22643 (gtk_micro_version != GTK_MICRO_VERSION))
22644 {
22645 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
22646 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
22647 printf("*** library (version %d.%d.%d)\n",
22648 gtk_major_version, gtk_minor_version, gtk_micro_version);
22649 }
22650 else
22651 {
22652 if ((gtk_major_version > major) ||
22653 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
22654 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
22655 {
22656 return 0;
22657 }
22658 else
22659 {
22660 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
22661 gtk_major_version, gtk_minor_version, gtk_micro_version);
22662 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
22663 major, minor, micro);
22664 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
22665 printf("***\n");
22666 printf("*** If you have already installed a sufficiently new version, this error\n");
22667 printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
22668 printf("*** being found. The easiest way to fix this is to remove the old version\n");
22669 printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n");
22670 printf("*** correct copy of pkg-config. (In this case, you will have to\n");
22671 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
22672 printf("*** so that the correct libraries are found at run-time))\n");
22673 }
22674 }
22675 return 1;
22676}
22677
22678_ACEOF
22679rm -f conftest$ac_exeext
22680if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22681 (eval $ac_link) 2>&5
22682 ac_status=$?
22683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22684 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22686 (eval $ac_try) 2>&5
22687 ac_status=$?
22688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22689 (exit $ac_status); }; }; then
22690 :
22691else
22692 echo "$as_me: program exited with status $ac_status" >&5
22693echo "$as_me: failed program was:" >&5
22694sed 's/^/| /' conftest.$ac_ext >&5
22695
22696( exit $ac_status )
22697no_gtk=yes
22698fi
ac1cb8d3 22699rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22700fi
22701 CFLAGS="$ac_save_CFLAGS"
22702 LIBS="$ac_save_LIBS"
22703 fi
22704 fi
22705 if test "x$no_gtk" = x ; then
22706 echo "$as_me:$LINENO: result: yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&5
22707echo "${ECHO_T}yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&6
22708 wx_cv_lib_gtk=2.0
22709 else
22710 echo "$as_me:$LINENO: result: no" >&5
22711echo "${ECHO_T}no" >&6
22712 if test "$PKG_CONFIG" = "no" ; then
22713 echo "*** A new enough version of pkg-config was not found."
22714 echo "*** See http://pkgconfig.sourceforge.net"
22715 else
22716 if test -f conf.gtktest ; then
22717 :
22718 else
22719 echo "*** Could not run GTK+ test program, checking why..."
22720 ac_save_CFLAGS="$CFLAGS"
22721 ac_save_LIBS="$LIBS"
22722 CFLAGS="$CFLAGS $GTK_CFLAGS"
22723 LIBS="$LIBS $GTK_LIBS"
22724 cat >conftest.$ac_ext <<_ACEOF
22725/* confdefs.h. */
22726_ACEOF
22727cat confdefs.h >>conftest.$ac_ext
22728cat >>conftest.$ac_ext <<_ACEOF
22729/* end confdefs.h. */
22730
22731#include <gtk/gtk.h>
22732#include <stdio.h>
22733
22734int
22735main ()
22736{
22737 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
22738 ;
22739 return 0;
22740}
22741_ACEOF
22742rm -f conftest.$ac_objext conftest$ac_exeext
22743if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 22744 (eval $ac_link) 2>conftest.er1
a848cd7e 22745 ac_status=$?
ac1cb8d3
VS
22746 grep -v '^ *+' conftest.er1 >conftest.err
22747 rm -f conftest.er1
22748 cat conftest.err >&5
a848cd7e
SC
22749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22750 (exit $ac_status); } &&
ffa0583f 22751 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
22752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22753 (eval $ac_try) 2>&5
22754 ac_status=$?
22755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22756 (exit $ac_status); }; } &&
22757 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
22758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22759 (eval $ac_try) 2>&5
22760 ac_status=$?
22761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22762 (exit $ac_status); }; }; then
22763 echo "*** The test program compiled, but did not run. This usually means"
22764 echo "*** that the run-time linker is not finding GTK+ or finding the wrong"
22765 echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your"
22766 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
22767 echo "*** to the installed location Also, make sure you have run ldconfig if that"
22768 echo "*** is required on your system"
22769 echo "***"
22770 echo "*** If you have an old version installed, it is best to remove it, although"
22771 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
22772else
22773 echo "$as_me: failed program was:" >&5
22774sed 's/^/| /' conftest.$ac_ext >&5
22775
22776 echo "*** The test program failed to compile or link. See the file config.log for the"
22777 echo "*** exact error that occured. This usually means GTK+ is incorrectly installed."
22778fi
ac1cb8d3
VS
22779rm -f conftest.err conftest.$ac_objext \
22780 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
22781 CFLAGS="$ac_save_CFLAGS"
22782 LIBS="$ac_save_LIBS"
22783 fi
22784 fi
22785 GTK_CFLAGS=""
22786 GTK_LIBS=""
22787 :
22788 fi
22789
22790
22791 rm -f conf.gtktest
22792
22793 else
22794
22795# Check whether --with-gtk-prefix or --without-gtk-prefix was given.
22796if test "${with_gtk_prefix+set}" = set; then
22797 withval="$with_gtk_prefix"
22798 gtk_config_prefix="$withval"
22799else
22800 gtk_config_prefix=""
22801fi;
22802
22803# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
22804if test "${with_gtk_exec_prefix+set}" = set; then
22805 withval="$with_gtk_exec_prefix"
22806 gtk_config_exec_prefix="$withval"
22807else
22808 gtk_config_exec_prefix=""
22809fi;
22810# Check whether --enable-gtktest or --disable-gtktest was given.
22811if test "${enable_gtktest+set}" = set; then
22812 enableval="$enable_gtktest"
22813
22814else
22815 enable_gtktest=yes
22816fi;
22817
22818 for module in . $GTK_MODULES
22819 do
22820 case "$module" in
22821 gthread)
22822 gtk_config_args="$gtk_config_args gthread"
22823 ;;
22824 esac
22825 done
22826
22827 if test x$gtk_config_exec_prefix != x ; then
22828 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
22829 if test x${GTK_CONFIG+set} != xset ; then
22830 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
22831 fi
22832 fi
22833 if test x$gtk_config_prefix != x ; then
22834 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
22835 if test x${GTK_CONFIG+set} != xset ; then
22836 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
22837 fi
22838 fi
22839
22840 # Extract the first word of "gtk-config", so it can be a program name with args.
22841set dummy gtk-config; ac_word=$2
22842echo "$as_me:$LINENO: checking for $ac_word" >&5
22843echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22844if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
22845 echo $ECHO_N "(cached) $ECHO_C" >&6
22846else
22847 case $GTK_CONFIG in
22848 [\\/]* | ?:[\\/]*)
22849 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
22850 ;;
22851 *)
22852 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22853for as_dir in $PATH
22854do
22855 IFS=$as_save_IFS
22856 test -z "$as_dir" && as_dir=.
22857 for ac_exec_ext in '' $ac_executable_extensions; do
22858 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22859 ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22860 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22861 break 2
22862 fi
22863done
22864done
22865
22866 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
22867 ;;
22868esac
22869fi
22870GTK_CONFIG=$ac_cv_path_GTK_CONFIG
22871
22872if test -n "$GTK_CONFIG"; then
22873 echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
22874echo "${ECHO_T}$GTK_CONFIG" >&6
22875else
22876 echo "$as_me:$LINENO: result: no" >&5
22877echo "${ECHO_T}no" >&6
22878fi
22879
22880 min_gtk_version=1.2.7
22881 echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
22882echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6
22883 no_gtk=""
22884 if test "$GTK_CONFIG" = "no" ; then
22885 no_gtk=yes
22886 else
22887 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
22888 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
22889 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
22890 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
22891 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
22892 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
22893 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
22894 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
22895 if test "x$enable_gtktest" = "xyes" ; then
22896 ac_save_CFLAGS="$CFLAGS"
22897 ac_save_LIBS="$LIBS"
22898 CFLAGS="$CFLAGS $GTK_CFLAGS"
22899 LIBS="$GTK_LIBS $LIBS"
22900 rm -f conf.gtktest
22901 if test "$cross_compiling" = yes; then
22902 echo $ac_n "cross compiling; assumed OK... $ac_c"
22903else
22904 cat >conftest.$ac_ext <<_ACEOF
22905/* confdefs.h. */
22906_ACEOF
22907cat confdefs.h >>conftest.$ac_ext
22908cat >>conftest.$ac_ext <<_ACEOF
22909/* end confdefs.h. */
22910
22911#include <gtk/gtk.h>
22912#include <stdio.h>
22913#include <stdlib.h>
22914
22915int
22916main ()
22917{
22918 int major, minor, micro;
22919 char *tmp_version;
22920
22921 system ("touch conf.gtktest");
22922
22923 /* HP/UX 9 (%@#!) writes to sscanf strings */
22924 tmp_version = g_strdup("$min_gtk_version");
22925 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
22926 printf("%s, bad version string\n", "$min_gtk_version");
22927 exit(1);
22928 }
22929
22930 if ((gtk_major_version != $gtk_config_major_version) ||
22931 (gtk_minor_version != $gtk_config_minor_version) ||
22932 (gtk_micro_version != $gtk_config_micro_version))
22933 {
22934 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
22935 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
22936 gtk_major_version, gtk_minor_version, gtk_micro_version);
22937 printf ("*** was found! If gtk-config was correct, then it is best\n");
22938 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
22939 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
22940 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
22941 printf("*** required on your system.\n");
22942 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
22943 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
22944 printf("*** before re-running configure\n");
22945 }
22946#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
22947 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
22948 (gtk_minor_version != GTK_MINOR_VERSION) ||
22949 (gtk_micro_version != GTK_MICRO_VERSION))
22950 {
22951 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
22952 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
22953 printf("*** library (version %d.%d.%d)\n",
22954 gtk_major_version, gtk_minor_version, gtk_micro_version);
22955 }
22956#endif /* defined (GTK_MAJOR_VERSION) ... */
22957 else
22958 {
22959 if ((gtk_major_version > major) ||
22960 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
22961 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
22962 {
22963 return 0;
22964 }
22965 else
22966 {
22967 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
22968 gtk_major_version, gtk_minor_version, gtk_micro_version);
22969 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
22970 major, minor, micro);
22971 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
22972 printf("***\n");
22973 printf("*** If you have already installed a sufficiently new version, this error\n");
22974 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
22975 printf("*** being found. The easiest way to fix this is to remove the old version\n");
22976 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
22977 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
22978 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
22979 printf("*** so that the correct libraries are found at run-time))\n");
22980 }
22981 }
22982 return 1;
22983}
22984
22985_ACEOF
22986rm -f conftest$ac_exeext
22987if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22988 (eval $ac_link) 2>&5
22989 ac_status=$?
22990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22991 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22993 (eval $ac_try) 2>&5
22994 ac_status=$?
22995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22996 (exit $ac_status); }; }; then
22997 :
22998else
22999 echo "$as_me: program exited with status $ac_status" >&5
23000echo "$as_me: failed program was:" >&5
23001sed 's/^/| /' conftest.$ac_ext >&5
23002
23003( exit $ac_status )
23004no_gtk=yes
23005fi
ac1cb8d3 23006rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
23007fi
23008 CFLAGS="$ac_save_CFLAGS"
23009 LIBS="$ac_save_LIBS"
23010 fi
23011 fi
23012 if test "x$no_gtk" = x ; then
23013 echo "$as_me:$LINENO: result: yes" >&5
23014echo "${ECHO_T}yes" >&6
23015 wx_cv_lib_gtk=1.2.7
23016 else
23017 echo "$as_me:$LINENO: result: no" >&5
23018echo "${ECHO_T}no" >&6
23019 if test "$GTK_CONFIG" = "no" ; then
23020 echo "*** The gtk-config script installed by GTK could not be found"
23021 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
23022 echo "*** your path, or set the GTK_CONFIG environment variable to the"
23023 echo "*** full path to gtk-config."
23024 else
23025 if test -f conf.gtktest ; then
23026 :
23027 else
23028 echo "*** Could not run GTK test program, checking why..."
23029 CFLAGS="$CFLAGS $GTK_CFLAGS"
23030 LIBS="$LIBS $GTK_LIBS"
23031 cat >conftest.$ac_ext <<_ACEOF
23032/* confdefs.h. */
23033_ACEOF
23034cat confdefs.h >>conftest.$ac_ext
23035cat >>conftest.$ac_ext <<_ACEOF
23036/* end confdefs.h. */
23037
23038#include <gtk/gtk.h>
23039#include <stdio.h>
23040
23041int
23042main ()
23043{
23044 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
23045 ;
23046 return 0;
23047}
23048_ACEOF
23049rm -f conftest.$ac_objext conftest$ac_exeext
23050if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 23051 (eval $ac_link) 2>conftest.er1
a848cd7e 23052 ac_status=$?
ac1cb8d3
VS
23053 grep -v '^ *+' conftest.er1 >conftest.err
23054 rm -f conftest.er1
23055 cat conftest.err >&5
a848cd7e
SC
23056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23057 (exit $ac_status); } &&
ffa0583f 23058 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23060 (eval $ac_try) 2>&5
23061 ac_status=$?
23062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23063 (exit $ac_status); }; } &&
23064 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
23065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23066 (eval $ac_try) 2>&5
23067 ac_status=$?
23068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23069 (exit $ac_status); }; }; then
23070 echo "*** The test program compiled, but did not run. This usually means"
23071 echo "*** that the run-time linker is not finding GTK or finding the wrong"
23072 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
23073 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
23074 echo "*** to the installed location Also, make sure you have run ldconfig if that"
23075 echo "*** is required on your system"
23076 echo "***"
23077 echo "*** If you have an old version installed, it is best to remove it, although"
23078 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
23079 echo "***"
23080 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
23081 echo "*** came with the system with the command"
23082 echo "***"
23083 echo "*** rpm --erase --nodeps gtk gtk-devel"
23084else
23085 echo "$as_me: failed program was:" >&5
23086sed 's/^/| /' conftest.$ac_ext >&5
23087
23088 echo "*** The test program failed to compile or link. See the file config.log for the"
23089 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
23090 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
23091 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
23092fi
ac1cb8d3
VS
23093rm -f conftest.err conftest.$ac_objext \
23094 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
23095 CFLAGS="$ac_save_CFLAGS"
23096 LIBS="$ac_save_LIBS"
23097 fi
23098 fi
23099 GTK_CFLAGS=""
23100 GTK_LIBS=""
23101 :
23102 fi
23103
23104
23105 rm -f conf.gtktest
23106
23107
23108 if test -z "$wx_cv_lib_gtk"; then
23109
23110# Check whether --with-gtk-prefix or --without-gtk-prefix was given.
23111if test "${with_gtk_prefix+set}" = set; then
23112 withval="$with_gtk_prefix"
23113 gtk_config_prefix="$withval"
23114else
23115 gtk_config_prefix=""
23116fi;
23117
23118# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
23119if test "${with_gtk_exec_prefix+set}" = set; then
23120 withval="$with_gtk_exec_prefix"
23121 gtk_config_exec_prefix="$withval"
23122else
23123 gtk_config_exec_prefix=""
23124fi;
23125# Check whether --enable-gtktest or --disable-gtktest was given.
23126if test "${enable_gtktest+set}" = set; then
23127 enableval="$enable_gtktest"
23128
23129else
23130 enable_gtktest=yes
23131fi;
23132
23133 for module in . $GTK_MODULES
23134 do
23135 case "$module" in
23136 gthread)
23137 gtk_config_args="$gtk_config_args gthread"
23138 ;;
23139 esac
23140 done
23141
23142 if test x$gtk_config_exec_prefix != x ; then
23143 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
23144 if test x${GTK_CONFIG+set} != xset ; then
23145 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
23146 fi
23147 fi
23148 if test x$gtk_config_prefix != x ; then
23149 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
23150 if test x${GTK_CONFIG+set} != xset ; then
23151 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
23152 fi
23153 fi
23154
23155 # Extract the first word of "gtk-config", so it can be a program name with args.
23156set dummy gtk-config; ac_word=$2
23157echo "$as_me:$LINENO: checking for $ac_word" >&5
23158echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
23159if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
23160 echo $ECHO_N "(cached) $ECHO_C" >&6
23161else
23162 case $GTK_CONFIG in
23163 [\\/]* | ?:[\\/]*)
23164 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
23165 ;;
23166 *)
23167 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23168for as_dir in $PATH
23169do
23170 IFS=$as_save_IFS
23171 test -z "$as_dir" && as_dir=.
23172 for ac_exec_ext in '' $ac_executable_extensions; do
23173 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23174 ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
23175 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23176 break 2
23177 fi
23178done
23179done
23180
23181 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
23182 ;;
23183esac
23184fi
23185GTK_CONFIG=$ac_cv_path_GTK_CONFIG
23186
23187if test -n "$GTK_CONFIG"; then
23188 echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
23189echo "${ECHO_T}$GTK_CONFIG" >&6
23190else
23191 echo "$as_me:$LINENO: result: no" >&5
23192echo "${ECHO_T}no" >&6
23193fi
23194
23195 min_gtk_version=1.2.3
23196 echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
23197echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6
23198 no_gtk=""
23199 if test "$GTK_CONFIG" = "no" ; then
23200 no_gtk=yes
23201 else
23202 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
23203 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
23204 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
23205 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
23206 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
23207 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
23208 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
23209 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
23210 if test "x$enable_gtktest" = "xyes" ; then
23211 ac_save_CFLAGS="$CFLAGS"
23212 ac_save_LIBS="$LIBS"
23213 CFLAGS="$CFLAGS $GTK_CFLAGS"
23214 LIBS="$GTK_LIBS $LIBS"
23215 rm -f conf.gtktest
23216 if test "$cross_compiling" = yes; then
23217 echo $ac_n "cross compiling; assumed OK... $ac_c"
23218else
23219 cat >conftest.$ac_ext <<_ACEOF
23220/* confdefs.h. */
23221_ACEOF
23222cat confdefs.h >>conftest.$ac_ext
23223cat >>conftest.$ac_ext <<_ACEOF
23224/* end confdefs.h. */
23225
23226#include <gtk/gtk.h>
23227#include <stdio.h>
23228#include <stdlib.h>
23229
23230int
23231main ()
23232{
23233 int major, minor, micro;
23234 char *tmp_version;
23235
23236 system ("touch conf.gtktest");
23237
23238 /* HP/UX 9 (%@#!) writes to sscanf strings */
23239 tmp_version = g_strdup("$min_gtk_version");
23240 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
23241 printf("%s, bad version string\n", "$min_gtk_version");
23242 exit(1);
23243 }
23244
23245 if ((gtk_major_version != $gtk_config_major_version) ||
23246 (gtk_minor_version != $gtk_config_minor_version) ||
23247 (gtk_micro_version != $gtk_config_micro_version))
23248 {
23249 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
23250 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
23251 gtk_major_version, gtk_minor_version, gtk_micro_version);
23252 printf ("*** was found! If gtk-config was correct, then it is best\n");
23253 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
23254 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
23255 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
23256 printf("*** required on your system.\n");
23257 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
23258 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
23259 printf("*** before re-running configure\n");
23260 }
23261#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
23262 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
23263 (gtk_minor_version != GTK_MINOR_VERSION) ||
23264 (gtk_micro_version != GTK_MICRO_VERSION))
23265 {
23266 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
23267 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
23268 printf("*** library (version %d.%d.%d)\n",
23269 gtk_major_version, gtk_minor_version, gtk_micro_version);
23270 }
23271#endif /* defined (GTK_MAJOR_VERSION) ... */
23272 else
23273 {
23274 if ((gtk_major_version > major) ||
23275 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
23276 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
23277 {
23278 return 0;
23279 }
23280 else
23281 {
23282 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
23283 gtk_major_version, gtk_minor_version, gtk_micro_version);
23284 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
23285 major, minor, micro);
23286 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
23287 printf("***\n");
23288 printf("*** If you have already installed a sufficiently new version, this error\n");
23289 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
23290 printf("*** being found. The easiest way to fix this is to remove the old version\n");
23291 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
23292 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
23293 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
23294 printf("*** so that the correct libraries are found at run-time))\n");
23295 }
23296 }
23297 return 1;
23298}
23299
23300_ACEOF
23301rm -f conftest$ac_exeext
23302if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23303 (eval $ac_link) 2>&5
23304 ac_status=$?
23305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23306 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23308 (eval $ac_try) 2>&5
23309 ac_status=$?
23310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23311 (exit $ac_status); }; }; then
23312 :
23313else
23314 echo "$as_me: program exited with status $ac_status" >&5
23315echo "$as_me: failed program was:" >&5
23316sed 's/^/| /' conftest.$ac_ext >&5
23317
23318( exit $ac_status )
23319no_gtk=yes
23320fi
ac1cb8d3 23321rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
23322fi
23323 CFLAGS="$ac_save_CFLAGS"
23324 LIBS="$ac_save_LIBS"
23325 fi
23326 fi
23327 if test "x$no_gtk" = x ; then
23328 echo "$as_me:$LINENO: result: yes" >&5
23329echo "${ECHO_T}yes" >&6
23330 wx_cv_lib_gtk=1.2.3
23331 else
23332 echo "$as_me:$LINENO: result: no" >&5
23333echo "${ECHO_T}no" >&6
23334 if test "$GTK_CONFIG" = "no" ; then
23335 echo "*** The gtk-config script installed by GTK could not be found"
23336 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
23337 echo "*** your path, or set the GTK_CONFIG environment variable to the"
23338 echo "*** full path to gtk-config."
23339 else
23340 if test -f conf.gtktest ; then
23341 :
23342 else
23343 echo "*** Could not run GTK test program, checking why..."
23344 CFLAGS="$CFLAGS $GTK_CFLAGS"
23345 LIBS="$LIBS $GTK_LIBS"
23346 cat >conftest.$ac_ext <<_ACEOF
23347/* confdefs.h. */
23348_ACEOF
23349cat confdefs.h >>conftest.$ac_ext
23350cat >>conftest.$ac_ext <<_ACEOF
23351/* end confdefs.h. */
23352
23353#include <gtk/gtk.h>
23354#include <stdio.h>
23355
23356int
23357main ()
23358{
23359 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
23360 ;
23361 return 0;
23362}
23363_ACEOF
23364rm -f conftest.$ac_objext conftest$ac_exeext
23365if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 23366 (eval $ac_link) 2>conftest.er1
a848cd7e 23367 ac_status=$?
ac1cb8d3
VS
23368 grep -v '^ *+' conftest.er1 >conftest.err
23369 rm -f conftest.er1
23370 cat conftest.err >&5
a848cd7e
SC
23371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23372 (exit $ac_status); } &&
ffa0583f 23373 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23375 (eval $ac_try) 2>&5
23376 ac_status=$?
23377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23378 (exit $ac_status); }; } &&
23379 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
23380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23381 (eval $ac_try) 2>&5
23382 ac_status=$?
23383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23384 (exit $ac_status); }; }; then
23385 echo "*** The test program compiled, but did not run. This usually means"
23386 echo "*** that the run-time linker is not finding GTK or finding the wrong"
23387 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
23388 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
23389 echo "*** to the installed location Also, make sure you have run ldconfig if that"
23390 echo "*** is required on your system"
23391 echo "***"
23392 echo "*** If you have an old version installed, it is best to remove it, although"
23393 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
23394 echo "***"
23395 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
23396 echo "*** came with the system with the command"
23397 echo "***"
23398 echo "*** rpm --erase --nodeps gtk gtk-devel"
23399else
23400 echo "$as_me: failed program was:" >&5
23401sed 's/^/| /' conftest.$ac_ext >&5
23402
23403 echo "*** The test program failed to compile or link. See the file config.log for the"
23404 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
23405 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
23406 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
23407fi
ac1cb8d3
VS
23408rm -f conftest.err conftest.$ac_objext \
23409 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
23410 CFLAGS="$ac_save_CFLAGS"
23411 LIBS="$ac_save_LIBS"
23412 fi
23413 fi
23414 GTK_CFLAGS=""
23415 GTK_LIBS=""
23416 :
23417 fi
23418
23419
23420 rm -f conf.gtktest
23421
23422 fi
23423 fi
23424
23425 if test -z "$wx_cv_lib_gtk"; then
23426 wx_cv_lib_gtk=none
23427 else
23428 wx_cv_cflags_gtk=$GTK_CFLAGS
23429 wx_cv_libs_gtk=$GTK_LIBS
23430 fi
23431
23432
23433fi
23434
23435
23436 if test "$gtk_version_cached" = 1; then
23437 echo "$as_me:$LINENO: result: $wx_cv_lib_gtk" >&5
23438echo "${ECHO_T}$wx_cv_lib_gtk" >&6
23439 fi
23440
23441 case "$wx_cv_lib_gtk" in
23442 2.0) WXGTK20=1
23443 TOOLKIT_VERSION=2
23444 ;;
23445 1.2.7) WXGTK127=1
23446 WXGTK12=1
23447 ;;
23448 1.2.3) WXGTK12=1
23449 ;;
23450 *) { { echo "$as_me:$LINENO: error:
23451Please check that gtk-config is in path, the directory
23452where GTK+ libraries are installed (returned by
23453'gtk-config --libs' command) is in LD_LIBRARY_PATH or
23454equivalent variable and GTK+ is version 1.2.3 or above.
23455 " >&5
23456echo "$as_me: error:
23457Please check that gtk-config is in path, the directory
23458where GTK+ libraries are installed (returned by
23459'gtk-config --libs' command) is in LD_LIBRARY_PATH or
23460equivalent variable and GTK+ is version 1.2.3 or above.
23461 " >&2;}
23462 { (exit 1); exit 1; }; }
23463 ;;
23464 esac
23465
23466 if test "$WXGTK20" = 1; then
23467 if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
23468
23469 succeeded=no
23470
23471 if test -z "$PKG_CONFIG"; then
23472 # Extract the first word of "pkg-config", so it can be a program name with args.
23473set dummy pkg-config; ac_word=$2
23474echo "$as_me:$LINENO: checking for $ac_word" >&5
23475echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
23476if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
23477 echo $ECHO_N "(cached) $ECHO_C" >&6
23478else
23479 case $PKG_CONFIG in
23480 [\\/]* | ?:[\\/]*)
23481 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
23482 ;;
23483 *)
23484 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23485for as_dir in $PATH
23486do
23487 IFS=$as_save_IFS
23488 test -z "$as_dir" && as_dir=.
23489 for ac_exec_ext in '' $ac_executable_extensions; do
23490 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23491 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
23492 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23493 break 2
23494 fi
23495done
23496done
23497
23498 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
23499 ;;
23500esac
23501fi
23502PKG_CONFIG=$ac_cv_path_PKG_CONFIG
23503
23504if test -n "$PKG_CONFIG"; then
23505 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
23506echo "${ECHO_T}$PKG_CONFIG" >&6
23507else
23508 echo "$as_me:$LINENO: result: no" >&5
23509echo "${ECHO_T}no" >&6
23510fi
23511
23512 fi
23513
23514 if test "$PKG_CONFIG" = "no" ; then
23515 echo "*** The pkg-config script could not be found. Make sure it is"
23516 echo "*** in your path, or set the PKG_CONFIG environment variable"
23517 echo "*** to the full path to pkg-config."
23518 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
23519 else
23520 PKG_CONFIG_MIN_VERSION=0.9.0
23521 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
23522 echo "$as_me:$LINENO: checking for pangoft2" >&5
23523echo $ECHO_N "checking for pangoft2... $ECHO_C" >&6
23524
23525 if $PKG_CONFIG --exists "pangoft2" ; then
23526 echo "$as_me:$LINENO: result: yes" >&5
23527echo "${ECHO_T}yes" >&6
23528 succeeded=yes
23529
23530 echo "$as_me:$LINENO: checking PANGOFT2_CFLAGS" >&5
23531echo $ECHO_N "checking PANGOFT2_CFLAGS... $ECHO_C" >&6
23532 PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"`
23533 echo "$as_me:$LINENO: result: $PANGOFT2_CFLAGS" >&5
23534echo "${ECHO_T}$PANGOFT2_CFLAGS" >&6
23535
23536 echo "$as_me:$LINENO: checking PANGOFT2_LIBS" >&5
23537echo $ECHO_N "checking PANGOFT2_LIBS... $ECHO_C" >&6
23538 PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"`
23539 echo "$as_me:$LINENO: result: $PANGOFT2_LIBS" >&5
23540echo "${ECHO_T}$PANGOFT2_LIBS" >&6
23541 else
23542 PANGOFT2_CFLAGS=""
23543 PANGOFT2_LIBS=""
23544 ## If we have a custom action on failure, don't print errors, but
23545 ## do set a variable so people can do so.
23546 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
23547
23548 fi
23549
23550
23551
23552 else
23553 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
23554 echo "*** See http://www.freedesktop.org/software/pkgconfig"
23555 fi
23556 fi
23557
23558 if test $succeeded = yes; then
23559
23560 CXXFLAGS="$CXXFLAGS $PANGOFT2_CFLAGS"
ceec2216
RL
23561 # FIXME: GTK_LIBS already has a lot of what this is
23562 # about to add, but we go ahead and just add
23563 # it all again anyway.
23564 # This is not a good way to manage things. And simply
23565 # uniq'ing the list later is hardly better.
a848cd7e
SC
23566 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOFT2_LIBS"
23567
23568 else
23569
23570 { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5
23571echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;}
23572 wxUSE_PRINTING_ARCHITECTURE="no"
23573
23574
23575 fi
23576
23577 fi
304205f1
VS
23578
23579 save_CFLAGS="$CFLAGS"
23580 save_LIBS="$LIBS"
23581 CFLAGS="$CFLAGS $GTK_CFLAGS"
23582 LIBS="$LIBS $GTK_LIBS"
23583
23584for ac_func in pango_font_family_is_monospace
23585do
23586as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23587echo "$as_me:$LINENO: checking for $ac_func" >&5
23588echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23589if eval "test \"\${$as_ac_var+set}\" = set"; then
23590 echo $ECHO_N "(cached) $ECHO_C" >&6
23591else
23592 cat >conftest.$ac_ext <<_ACEOF
23593/* confdefs.h. */
23594_ACEOF
23595cat confdefs.h >>conftest.$ac_ext
23596cat >>conftest.$ac_ext <<_ACEOF
23597/* end confdefs.h. */
23598/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23599 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23600#define $ac_func innocuous_$ac_func
23601
23602/* System header to define __stub macros and hopefully few prototypes,
23603 which can conflict with char $ac_func (); below.
23604 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23605 <limits.h> exists even on freestanding compilers. */
23606
23607#ifdef __STDC__
23608# include <limits.h>
23609#else
23610# include <assert.h>
23611#endif
23612
23613#undef $ac_func
23614
23615/* Override any gcc2 internal prototype to avoid an error. */
23616#ifdef __cplusplus
23617extern "C"
23618{
23619#endif
23620/* We use char because int might match the return type of a gcc2
23621 builtin and then its argument prototype would still apply. */
23622char $ac_func ();
23623/* The GNU C library defines this for functions which it implements
23624 to always fail with ENOSYS. Some functions are actually named
23625 something starting with __ and the normal name is an alias. */
23626#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23627choke me
23628#else
23629char (*f) () = $ac_func;
23630#endif
23631#ifdef __cplusplus
23632}
23633#endif
23634
23635int
23636main ()
23637{
23638return f != $ac_func;
23639 ;
23640 return 0;
23641}
23642_ACEOF
23643rm -f conftest.$ac_objext conftest$ac_exeext
23644if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23645 (eval $ac_link) 2>conftest.er1
23646 ac_status=$?
23647 grep -v '^ *+' conftest.er1 >conftest.err
23648 rm -f conftest.er1
23649 cat conftest.err >&5
23650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23651 (exit $ac_status); } &&
ffa0583f 23652 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
304205f1
VS
23653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23654 (eval $ac_try) 2>&5
23655 ac_status=$?
23656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23657 (exit $ac_status); }; } &&
23658 { ac_try='test -s conftest$ac_exeext'
23659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23660 (eval $ac_try) 2>&5
23661 ac_status=$?
23662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23663 (exit $ac_status); }; }; then
23664 eval "$as_ac_var=yes"
23665else
23666 echo "$as_me: failed program was:" >&5
23667sed 's/^/| /' conftest.$ac_ext >&5
23668
23669eval "$as_ac_var=no"
23670fi
23671rm -f conftest.err conftest.$ac_objext \
23672 conftest$ac_exeext conftest.$ac_ext
23673fi
23674echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23675echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23676if test `eval echo '${'$as_ac_var'}'` = yes; then
23677 cat >>confdefs.h <<_ACEOF
23678#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23679_ACEOF
23680
23681fi
23682done
23683
23684 CFLAGS="$save_CFLAGS"
23685 LIBS="$save_LIBS"
a848cd7e
SC
23686 else
23687 if test "$wxUSE_UNICODE" = "yes"; then
23688 { echo "$as_me:$LINENO: WARNING: Unicode configuration not supported with GTK+ 1.x" >&5
23689echo "$as_me: WARNING: Unicode configuration not supported with GTK+ 1.x" >&2;}
23690 wxUSE_UNICODE=no
23691 fi
23692 fi
23693
23694 if test "$USE_DARWIN" != 1; then
23695
23696for ac_func in poll
23697do
23698as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23699echo "$as_me:$LINENO: checking for $ac_func" >&5
23700echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23701if eval "test \"\${$as_ac_var+set}\" = set"; then
23702 echo $ECHO_N "(cached) $ECHO_C" >&6
23703else
23704 cat >conftest.$ac_ext <<_ACEOF
23705/* confdefs.h. */
23706_ACEOF
23707cat confdefs.h >>conftest.$ac_ext
23708cat >>conftest.$ac_ext <<_ACEOF
23709/* end confdefs.h. */
ac1cb8d3
VS
23710/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23711 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23712#define $ac_func innocuous_$ac_func
23713
a848cd7e
SC
23714/* System header to define __stub macros and hopefully few prototypes,
23715 which can conflict with char $ac_func (); below.
23716 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23717 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 23718
a848cd7e
SC
23719#ifdef __STDC__
23720# include <limits.h>
23721#else
23722# include <assert.h>
23723#endif
ac1cb8d3
VS
23724
23725#undef $ac_func
23726
a848cd7e
SC
23727/* Override any gcc2 internal prototype to avoid an error. */
23728#ifdef __cplusplus
23729extern "C"
23730{
23731#endif
23732/* We use char because int might match the return type of a gcc2
23733 builtin and then its argument prototype would still apply. */
23734char $ac_func ();
23735/* The GNU C library defines this for functions which it implements
23736 to always fail with ENOSYS. Some functions are actually named
23737 something starting with __ and the normal name is an alias. */
23738#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23739choke me
23740#else
23741char (*f) () = $ac_func;
23742#endif
23743#ifdef __cplusplus
23744}
23745#endif
23746
23747int
23748main ()
23749{
23750return f != $ac_func;
23751 ;
23752 return 0;
23753}
23754_ACEOF
23755rm -f conftest.$ac_objext conftest$ac_exeext
23756if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 23757 (eval $ac_link) 2>conftest.er1
a848cd7e 23758 ac_status=$?
ac1cb8d3
VS
23759 grep -v '^ *+' conftest.er1 >conftest.err
23760 rm -f conftest.er1
23761 cat conftest.err >&5
a848cd7e
SC
23762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23763 (exit $ac_status); } &&
ffa0583f 23764 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23766 (eval $ac_try) 2>&5
23767 ac_status=$?
23768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23769 (exit $ac_status); }; } &&
23770 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
23771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23772 (eval $ac_try) 2>&5
23773 ac_status=$?
23774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23775 (exit $ac_status); }; }; then
23776 eval "$as_ac_var=yes"
23777else
23778 echo "$as_me: failed program was:" >&5
23779sed 's/^/| /' conftest.$ac_ext >&5
23780
23781eval "$as_ac_var=no"
23782fi
ac1cb8d3
VS
23783rm -f conftest.err conftest.$ac_objext \
23784 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
23785fi
23786echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23787echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23788if test `eval echo '${'$as_ac_var'}'` = yes; then
23789 cat >>confdefs.h <<_ACEOF
23790#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23791_ACEOF
23792
23793fi
23794done
23795
23796 fi
23797
23798 TOOLKIT_INCLUDE="$wx_cv_cflags_gtk"
23799 GUI_TK_LIBRARY="$wx_cv_libs_gtk $GUI_TK_LIBRARY"
23800
23801 AFMINSTALL=afminstall
23802 TOOLKIT=GTK
23803 GUIDIST=GTK_DIST
23804
23805 echo "$as_me:$LINENO: checking for gdk_im_open in -lgdk" >&5
23806echo $ECHO_N "checking for gdk_im_open in -lgdk... $ECHO_C" >&6
23807if test "${ac_cv_lib_gdk_gdk_im_open+set}" = set; then
23808 echo $ECHO_N "(cached) $ECHO_C" >&6
23809else
23810 ac_check_lib_save_LIBS=$LIBS
23811LIBS="-lgdk $LIBS"
23812cat >conftest.$ac_ext <<_ACEOF
23813/* confdefs.h. */
23814_ACEOF
23815cat confdefs.h >>conftest.$ac_ext
23816cat >>conftest.$ac_ext <<_ACEOF
23817/* end confdefs.h. */
23818
23819/* Override any gcc2 internal prototype to avoid an error. */
23820#ifdef __cplusplus
23821extern "C"
23822#endif
23823/* We use char because int might match the return type of a gcc2
23824 builtin and then its argument prototype would still apply. */
23825char gdk_im_open ();
23826int
23827main ()
23828{
23829gdk_im_open ();
23830 ;
23831 return 0;
23832}
23833_ACEOF
23834rm -f conftest.$ac_objext conftest$ac_exeext
23835if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 23836 (eval $ac_link) 2>conftest.er1
a848cd7e 23837 ac_status=$?
ac1cb8d3
VS
23838 grep -v '^ *+' conftest.er1 >conftest.err
23839 rm -f conftest.er1
23840 cat conftest.err >&5
a848cd7e
SC
23841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23842 (exit $ac_status); } &&
ffa0583f 23843 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23845 (eval $ac_try) 2>&5
23846 ac_status=$?
23847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23848 (exit $ac_status); }; } &&
23849 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
23850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23851 (eval $ac_try) 2>&5
23852 ac_status=$?
23853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23854 (exit $ac_status); }; }; then
23855 ac_cv_lib_gdk_gdk_im_open=yes
23856else
23857 echo "$as_me: failed program was:" >&5
23858sed 's/^/| /' conftest.$ac_ext >&5
23859
23860ac_cv_lib_gdk_gdk_im_open=no
23861fi
ac1cb8d3
VS
23862rm -f conftest.err conftest.$ac_objext \
23863 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
23864LIBS=$ac_check_lib_save_LIBS
23865fi
23866echo "$as_me:$LINENO: result: $ac_cv_lib_gdk_gdk_im_open" >&5
23867echo "${ECHO_T}$ac_cv_lib_gdk_gdk_im_open" >&6
23868if test $ac_cv_lib_gdk_gdk_im_open = yes; then
23869 cat >>confdefs.h <<\_ACEOF
23870#define HAVE_XIM 1
23871_ACEOF
23872
23873fi
23874
23875
23876
23877 if test "$wxUSE_GPE" = "yes"; then
23878 echo "$as_me:$LINENO: checking for gpewidget library" >&5
23879echo $ECHO_N "checking for gpewidget library... $ECHO_C" >&6
23880
23881ac_find_libraries=
23882for ac_dir in $SEARCH_LIB /usr/lib;
23883 do
23884 for ac_extension in a so sl dylib; do
23885 if test -f "$ac_dir/libgpewidget.$ac_extension"; then
23886 ac_find_libraries=$ac_dir
23887 break 2
23888 fi
23889 done
23890 done
23891
23892 if test "$ac_find_libraries" != "" ; then
23893
23894 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
23895 result=$?
23896 if test $result = 0; then
23897 ac_path_to_link=""
23898 else
23899 ac_path_to_link=" -L$ac_find_libraries"
23900 fi
23901
23902 GUI_TK_LIBRARY="-L${prefix}/lib -lgpewidget $GUI_TK_LIBRARY"
23903 WXGPE=1
23904 echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5
23905echo "${ECHO_T}found at $ac_find_libraries" >&6
23906 else
23907 echo "$as_me:$LINENO: result: not found" >&5
23908echo "${ECHO_T}not found" >&6
23909 fi
23910
23911 fi
23912 fi
23913
23914 if test "$wxUSE_MGL" = 1; then
23915 echo "$as_me:$LINENO: checking for SciTech MGL library" >&5
23916echo $ECHO_N "checking for SciTech MGL library... $ECHO_C" >&6
23917 if test "x$MGL_ROOT" = x ; then
23918 echo "$as_me:$LINENO: result: not found" >&5
23919echo "${ECHO_T}not found" >&6
23920 { { echo "$as_me:$LINENO: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&5
23921echo "$as_me: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&2;}
23922 { (exit 1); exit 1; }; }
23923 else
23924 echo "$as_me:$LINENO: result: $MGL_ROOT" >&5
23925echo "${ECHO_T}$MGL_ROOT" >&6
23926 fi
23927
23928 echo "$as_me:$LINENO: checking for libmgl location" >&5
23929echo $ECHO_N "checking for libmgl location... $ECHO_C" >&6
23930 case "${host}" in
23931 *-*-linux* )
23932 if test "x$wxUSE_SHARED" = xyes ; then
23933 mgl_os_candidates="linux/gcc/x86/so linux/gcc/x86/a linux/gcc/glibc.so linux/gcc/glibc"
23934 else
23935 mgl_os_candidates="linux/gcc/x86/a linux/gcc/x86/so linux/gcc/glibc linux/gcc/glibc.so"
23936 fi
23937 ;;
23938 *-pc-msdosdjgpp )
23939 mgl_os_candidates="dos32/dj2"
23940 ;;
23941 *)
23942 { { echo "$as_me:$LINENO: error: This system type ${host} is not yet supported by wxMGL." >&5
23943echo "$as_me: error: This system type ${host} is not yet supported by wxMGL." >&2;}
23944 { (exit 1); exit 1; }; }
23945 esac
23946
23947 mgl_lib_type=""
23948 mgl_os=""
23949
23950 for mgl_os_i in $mgl_os_candidates ; do
23951 if test "x$mgl_os" = x ; then
23952 if test "$wxUSE_DEBUG_FLAG" = yes ; then
23953 if test -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.a -o \
23954 -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.so; then
23955 mgl_lib_type=debug
23956 mgl_os=$mgl_os_i
23957 fi
23958 fi
23959 if test "x$mgl_lib_type" = x ; then
23960 if test -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.a -o \
23961 -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.so; then
23962 mgl_lib_type=release
23963 mgl_os=$mgl_os_i
23964 fi
23965 fi
23966 fi
23967 done
23968
23969 if test "x$mgl_os" = x ; then
23970 echo "$as_me:$LINENO: result: not found" >&5
23971echo "${ECHO_T}not found" >&6
23972 { { echo "$as_me:$LINENO: error: Cannot find MGL libraries, make sure they are compiled." >&5
23973echo "$as_me: error: Cannot find MGL libraries, make sure they are compiled." >&2;}
23974 { (exit 1); exit 1; }; }
23975 fi
23976 echo "$as_me:$LINENO: result: \"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&5
23977echo "${ECHO_T}\"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&6
23978
23979 wxUSE_UNIVERSAL="yes"
23980
23981 TOOLKIT_INCLUDE="-I$MGL_ROOT/include"
23982 GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$mgl_lib_type/$mgl_os -lmgl -lmglcpp -lpm"
23983
23984 AFMINSTALL=afminstall
23985 TOOLKIT=MGL
23986 GUIDIST=MGL_DIST
23987 fi
23988
23989 if test "$wxUSE_MICROWIN" = 1; then
23990 echo "$as_me:$LINENO: checking for MicroWindows" >&5
23991echo $ECHO_N "checking for MicroWindows... $ECHO_C" >&6
23992 if test "x$MICROWINDOWS" = x ; then
23993 echo "$as_me:$LINENO: result: not found" >&5
23994echo "${ECHO_T}not found" >&6
23995 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&5
23996echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&2;}
23997 { (exit 1); exit 1; }; }
23998 else
23999 echo "$as_me:$LINENO: result: $MICROWINDOWS" >&5
24000echo "${ECHO_T}$MICROWINDOWS" >&6
24001 fi
24002
24003 if test -f $MICROWINDOWS/lib/libmwin.a; then
24004 echo "$as_me:$LINENO: result: MicroWindows' libraries found." >&5
24005echo "${ECHO_T}MicroWindows' libraries found." >&6
24006 else
24007 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows libraries, make sure they are compiled." >&5
24008echo "$as_me: error: Cannot find MicroWindows libraries, make sure they are compiled." >&2;}
24009 { (exit 1); exit 1; }; }
24010 fi
24011
24012 TOOLKIT_INCLUDE="-I$MICROWINDOWS/include"
24013 GUI_TK_LIBRARY="-L$MICROWINDOWS/lib -lmwin -lmwengine -mwfonts -mwdrivers -mwinlib"
24014
24015 wxUSE_UNIVERSAL="yes"
24016
24017 AFMINSTALL=afminstall
24018 TOOLKIT=MICROWIN
24019 GUIDIST=MICROWIN_DIST
24020
24021 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXMSW__ -D__WIN95__ -D__WIN32__ -DMWIN -DMICROWIN_NOCONTROLS -DMICROWIN_TODO=1"
24022 fi
24023
74b84332 24024 if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
ffa0583f
RL
24025
24026if test "x$ac_path_x_has_been_run" != xyes; then
24027 echo "$as_me:$LINENO: checking for X" >&5
a848cd7e
SC
24028echo $ECHO_N "checking for X... $ECHO_C" >&6
24029
ffa0583f 24030ac_path_x_has_been_run=yes
a848cd7e
SC
24031
24032# Check whether --with-x or --without-x was given.
24033if test "${with_x+set}" = set; then
24034 withval="$with_x"
24035
24036fi;
24037# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
24038if test "x$with_x" = xno; then
24039 # The user explicitly disabled X.
24040 have_x=disabled
24041else
24042 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
24043 # Both variables are already set.
24044 have_x=yes
24045 else
24046 if test "${ac_cv_have_x+set}" = set; then
24047 echo $ECHO_N "(cached) $ECHO_C" >&6
24048else
24049 # One or both of the vars are not set, and there is no cached value.
24050ac_x_includes=no ac_x_libraries=no
24051rm -fr conftest.dir
24052if mkdir conftest.dir; then
24053 cd conftest.dir
24054 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
24055 cat >Imakefile <<'_ACEOF'
24056acfindx:
24057 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
24058_ACEOF
24059 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
24060 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
24061 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
24062 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
24063 for ac_extension in a so sl; do
24064 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
ac1cb8d3
VS
24065 test -f $ac_im_libdir/libX11.$ac_extension; then
24066 ac_im_usrlibdir=$ac_im_libdir; break
a848cd7e
SC
24067 fi
24068 done
24069 # Screen out bogus values from the imake configuration. They are
24070 # bogus both because they are the default anyway, and because
24071 # using them would break gcc on systems where it needs fixed includes.
24072 case $ac_im_incroot in
24073 /usr/include) ;;
24074 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
24075 esac
24076 case $ac_im_usrlibdir in
24077 /usr/lib | /lib) ;;
24078 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
24079 esac
24080 fi
24081 cd ..
24082 rm -fr conftest.dir
24083fi
24084
24085# Standard set of common directories for X headers.
24086# Check X11 before X11Rn because it is often a symlink to the current release.
24087ac_x_header_dirs='
24088/usr/X11/include
24089/usr/X11R6/include
24090/usr/X11R5/include
24091/usr/X11R4/include
24092
24093/usr/include/X11
24094/usr/include/X11R6
24095/usr/include/X11R5
24096/usr/include/X11R4
24097
24098/usr/local/X11/include
24099/usr/local/X11R6/include
24100/usr/local/X11R5/include
24101/usr/local/X11R4/include
24102
24103/usr/local/include/X11
24104/usr/local/include/X11R6
24105/usr/local/include/X11R5
24106/usr/local/include/X11R4
24107
24108/usr/X386/include
24109/usr/x386/include
24110/usr/XFree86/include/X11
24111
24112/usr/include
24113/usr/local/include
24114/usr/unsupported/include
24115/usr/athena/include
24116/usr/local/x11r5/include
24117/usr/lpp/Xamples/include
24118
24119/usr/openwin/include
24120/usr/openwin/share/include'
24121
24122if test "$ac_x_includes" = no; then
ffa0583f 24123 # Guess where to find include files, by looking for a specified header file.
a848cd7e
SC
24124 # First, try using that file with no special directory specified.
24125 cat >conftest.$ac_ext <<_ACEOF
24126/* confdefs.h. */
24127_ACEOF
24128cat confdefs.h >>conftest.$ac_ext
24129cat >>conftest.$ac_ext <<_ACEOF
24130/* end confdefs.h. */
24131#include <X11/Intrinsic.h>
24132_ACEOF
24133if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24134 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24135 ac_status=$?
24136 grep -v '^ *+' conftest.er1 >conftest.err
24137 rm -f conftest.er1
24138 cat conftest.err >&5
24139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24140 (exit $ac_status); } >/dev/null; then
24141 if test -s conftest.err; then
24142 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 24143 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
24144 else
24145 ac_cpp_err=
24146 fi
24147else
24148 ac_cpp_err=yes
24149fi
24150if test -z "$ac_cpp_err"; then
24151 # We can compile using X headers with no special include directory.
24152ac_x_includes=
24153else
24154 echo "$as_me: failed program was:" >&5
24155sed 's/^/| /' conftest.$ac_ext >&5
24156
24157 for ac_dir in $ac_x_header_dirs; do
24158 if test -r "$ac_dir/X11/Intrinsic.h"; then
24159 ac_x_includes=$ac_dir
24160 break
24161 fi
24162done
24163fi
24164rm -f conftest.err conftest.$ac_ext
24165fi # $ac_x_includes = no
24166
24167if test "$ac_x_libraries" = no; then
24168 # Check for the libraries.
24169 # See if we find them without any special options.
24170 # Don't add to $LIBS permanently.
24171 ac_save_LIBS=$LIBS
24172 LIBS="-lXt $LIBS"
24173 cat >conftest.$ac_ext <<_ACEOF
24174/* confdefs.h. */
24175_ACEOF
24176cat confdefs.h >>conftest.$ac_ext
24177cat >>conftest.$ac_ext <<_ACEOF
24178/* end confdefs.h. */
24179#include <X11/Intrinsic.h>
24180int
24181main ()
24182{
24183XtMalloc (0)
24184 ;
24185 return 0;
24186}
24187_ACEOF
24188rm -f conftest.$ac_objext conftest$ac_exeext
24189if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24190 (eval $ac_link) 2>conftest.er1
a848cd7e 24191 ac_status=$?
ac1cb8d3
VS
24192 grep -v '^ *+' conftest.er1 >conftest.err
24193 rm -f conftest.er1
24194 cat conftest.err >&5
a848cd7e
SC
24195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24196 (exit $ac_status); } &&
ffa0583f 24197 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
24198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24199 (eval $ac_try) 2>&5
24200 ac_status=$?
24201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24202 (exit $ac_status); }; } &&
24203 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24205 (eval $ac_try) 2>&5
24206 ac_status=$?
24207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24208 (exit $ac_status); }; }; then
24209 LIBS=$ac_save_LIBS
24210# We can link X programs with no special library path.
24211ac_x_libraries=
24212else
24213 echo "$as_me: failed program was:" >&5
24214sed 's/^/| /' conftest.$ac_ext >&5
24215
24216LIBS=$ac_save_LIBS
24217for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
24218do
24219 # Don't even attempt the hair of trying to link an X program!
24220 for ac_extension in a so sl; do
24221 if test -r $ac_dir/libXt.$ac_extension; then
24222 ac_x_libraries=$ac_dir
24223 break 2
24224 fi
24225 done
24226done
24227fi
ac1cb8d3
VS
24228rm -f conftest.err conftest.$ac_objext \
24229 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24230fi # $ac_x_libraries = no
24231
24232if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
24233 # Didn't find X anywhere. Cache the known absence of X.
24234 ac_cv_have_x="have_x=no"
24235else
24236 # Record where we found X for the cache.
24237 ac_cv_have_x="have_x=yes \
ac1cb8d3 24238 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
a848cd7e
SC
24239fi
24240fi
24241
24242 fi
24243 eval "$ac_cv_have_x"
24244fi # $with_x != no
24245
24246if test "$have_x" != yes; then
24247 echo "$as_me:$LINENO: result: $have_x" >&5
24248echo "${ECHO_T}$have_x" >&6
24249 no_x=yes
24250else
24251 # If each of the values was on the command line, it overrides each guess.
24252 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
24253 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
24254 # Update the cache value to reflect the command line values.
24255 ac_cv_have_x="have_x=yes \
24256 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
ffa0583f
RL
24257 # It might be that x_includes is empty (headers are found in the
24258 # standard search path. Then output the corresponding message
24259 ac_out_x_includes=$x_includes
24260 test "x$x_includes" = x && ac_out_x_includes="in standard search path"
24261 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $ac_out_x_includes" >&5
24262echo "${ECHO_T}libraries $x_libraries, headers $ac_out_x_includes" >&6
a848cd7e
SC
24263fi
24264
ffa0583f 24265fi
a848cd7e
SC
24266if test "$no_x" = yes; then
24267 # Not all programs may use this symbol, but it does not hurt to define it.
24268
24269cat >>confdefs.h <<\_ACEOF
24270#define X_DISPLAY_MISSING 1
24271_ACEOF
24272
24273 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
24274else
24275 if test -n "$x_includes"; then
24276 X_CFLAGS="$X_CFLAGS -I$x_includes"
24277 fi
24278
24279 # It would also be nice to do this for all -L options, not just this one.
24280 if test -n "$x_libraries"; then
24281 X_LIBS="$X_LIBS -L$x_libraries"
24282 # For Solaris; some versions of Sun CC require a space after -R and
24283 # others require no space. Words are not sufficient . . . .
24284 case `(uname -sr) 2>/dev/null` in
24285 "SunOS 5"*)
24286 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
24287echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
24288 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
24289 cat >conftest.$ac_ext <<_ACEOF
24290/* confdefs.h. */
24291_ACEOF
24292cat confdefs.h >>conftest.$ac_ext
24293cat >>conftest.$ac_ext <<_ACEOF
24294/* end confdefs.h. */
24295
24296int
24297main ()
24298{
24299
24300 ;
24301 return 0;
24302}
24303_ACEOF
24304rm -f conftest.$ac_objext conftest$ac_exeext
24305if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24306 (eval $ac_link) 2>conftest.er1
a848cd7e 24307 ac_status=$?
ac1cb8d3
VS
24308 grep -v '^ *+' conftest.er1 >conftest.err
24309 rm -f conftest.er1
24310 cat conftest.err >&5
a848cd7e
SC
24311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24312 (exit $ac_status); } &&
ffa0583f 24313 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
24314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24315 (eval $ac_try) 2>&5
24316 ac_status=$?
24317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24318 (exit $ac_status); }; } &&
24319 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24321 (eval $ac_try) 2>&5
24322 ac_status=$?
24323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24324 (exit $ac_status); }; }; then
24325 ac_R_nospace=yes
24326else
24327 echo "$as_me: failed program was:" >&5
24328sed 's/^/| /' conftest.$ac_ext >&5
24329
24330ac_R_nospace=no
24331fi
ac1cb8d3
VS
24332rm -f conftest.err conftest.$ac_objext \
24333 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24334 if test $ac_R_nospace = yes; then
24335 echo "$as_me:$LINENO: result: no" >&5
24336echo "${ECHO_T}no" >&6
24337 X_LIBS="$X_LIBS -R$x_libraries"
24338 else
24339 LIBS="$ac_xsave_LIBS -R $x_libraries"
24340 cat >conftest.$ac_ext <<_ACEOF
24341/* confdefs.h. */
24342_ACEOF
24343cat confdefs.h >>conftest.$ac_ext
24344cat >>conftest.$ac_ext <<_ACEOF
24345/* end confdefs.h. */
24346
24347int
24348main ()
24349{
24350
24351 ;
24352 return 0;
24353}
24354_ACEOF
24355rm -f conftest.$ac_objext conftest$ac_exeext
24356if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24357 (eval $ac_link) 2>conftest.er1
a848cd7e 24358 ac_status=$?
ac1cb8d3
VS
24359 grep -v '^ *+' conftest.er1 >conftest.err
24360 rm -f conftest.er1
24361 cat conftest.err >&5
a848cd7e
SC
24362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24363 (exit $ac_status); } &&
ffa0583f 24364 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
24365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24366 (eval $ac_try) 2>&5
24367 ac_status=$?
24368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24369 (exit $ac_status); }; } &&
24370 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24372 (eval $ac_try) 2>&5
24373 ac_status=$?
24374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24375 (exit $ac_status); }; }; then
24376 ac_R_space=yes
24377else
24378 echo "$as_me: failed program was:" >&5
24379sed 's/^/| /' conftest.$ac_ext >&5
24380
24381ac_R_space=no
24382fi
ac1cb8d3
VS
24383rm -f conftest.err conftest.$ac_objext \
24384 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24385 if test $ac_R_space = yes; then
24386 echo "$as_me:$LINENO: result: yes" >&5
24387echo "${ECHO_T}yes" >&6
24388 X_LIBS="$X_LIBS -R $x_libraries"
24389 else
24390 echo "$as_me:$LINENO: result: neither works" >&5
24391echo "${ECHO_T}neither works" >&6
24392 fi
24393 fi
24394 LIBS=$ac_xsave_LIBS
24395 esac
24396 fi
24397
24398 # Check for system-dependent libraries X programs must link with.
24399 # Do this before checking for the system-independent R6 libraries
24400 # (-lICE), since we may need -lsocket or whatever for X linking.
24401
24402 if test "$ISC" = yes; then
24403 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
24404 else
24405 # Martyn Johnson says this is needed for Ultrix, if the X
24406 # libraries were built with DECnet support. And Karl Berry says
24407 # the Alpha needs dnet_stub (dnet does not exist).
24408 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
24409 cat >conftest.$ac_ext <<_ACEOF
24410/* confdefs.h. */
24411_ACEOF
24412cat confdefs.h >>conftest.$ac_ext
24413cat >>conftest.$ac_ext <<_ACEOF
24414/* end confdefs.h. */
24415
24416/* Override any gcc2 internal prototype to avoid an error. */
24417#ifdef __cplusplus
24418extern "C"
24419#endif
24420/* We use char because int might match the return type of a gcc2
24421 builtin and then its argument prototype would still apply. */
24422char XOpenDisplay ();
24423int
24424main ()
24425{
24426XOpenDisplay ();
24427 ;
24428 return 0;
24429}
24430_ACEOF
24431rm -f conftest.$ac_objext conftest$ac_exeext
24432if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24433 (eval $ac_link) 2>conftest.er1
a848cd7e 24434 ac_status=$?
ac1cb8d3
VS
24435 grep -v '^ *+' conftest.er1 >conftest.err
24436 rm -f conftest.er1
24437 cat conftest.err >&5
a848cd7e
SC
24438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24439 (exit $ac_status); } &&
ffa0583f 24440 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
24441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24442 (eval $ac_try) 2>&5
24443 ac_status=$?
24444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24445 (exit $ac_status); }; } &&
24446 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24448 (eval $ac_try) 2>&5
24449 ac_status=$?
24450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24451 (exit $ac_status); }; }; then
24452 :
24453else
24454 echo "$as_me: failed program was:" >&5
24455sed 's/^/| /' conftest.$ac_ext >&5
24456
24457echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
24458echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
24459if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
24460 echo $ECHO_N "(cached) $ECHO_C" >&6
24461else
24462 ac_check_lib_save_LIBS=$LIBS
24463LIBS="-ldnet $LIBS"
24464cat >conftest.$ac_ext <<_ACEOF
24465/* confdefs.h. */
24466_ACEOF
24467cat confdefs.h >>conftest.$ac_ext
24468cat >>conftest.$ac_ext <<_ACEOF
24469/* end confdefs.h. */
24470
24471/* Override any gcc2 internal prototype to avoid an error. */
24472#ifdef __cplusplus
24473extern "C"
24474#endif
24475/* We use char because int might match the return type of a gcc2
24476 builtin and then its argument prototype would still apply. */
24477char dnet_ntoa ();
24478int
24479main ()
24480{
24481dnet_ntoa ();
24482 ;
24483 return 0;
24484}
24485_ACEOF
24486rm -f conftest.$ac_objext conftest$ac_exeext
24487if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24488 (eval $ac_link) 2>conftest.er1
a848cd7e 24489 ac_status=$?
ac1cb8d3
VS
24490 grep -v '^ *+' conftest.er1 >conftest.err
24491 rm -f conftest.er1
24492 cat conftest.err >&5
a848cd7e
SC
24493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24494 (exit $ac_status); } &&
ffa0583f 24495 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
24496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24497 (eval $ac_try) 2>&5
24498 ac_status=$?
24499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24500 (exit $ac_status); }; } &&
24501 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24503 (eval $ac_try) 2>&5
24504 ac_status=$?
24505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24506 (exit $ac_status); }; }; then
24507 ac_cv_lib_dnet_dnet_ntoa=yes
24508else
24509 echo "$as_me: failed program was:" >&5
24510sed 's/^/| /' conftest.$ac_ext >&5
24511
24512ac_cv_lib_dnet_dnet_ntoa=no
24513fi
ac1cb8d3
VS
24514rm -f conftest.err conftest.$ac_objext \
24515 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24516LIBS=$ac_check_lib_save_LIBS
24517fi
24518echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
24519echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
24520if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
24521 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
24522fi
24523
24524 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
24525 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
24526echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
24527if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
24528 echo $ECHO_N "(cached) $ECHO_C" >&6
24529else
24530 ac_check_lib_save_LIBS=$LIBS
24531LIBS="-ldnet_stub $LIBS"
24532cat >conftest.$ac_ext <<_ACEOF
24533/* confdefs.h. */
24534_ACEOF
24535cat confdefs.h >>conftest.$ac_ext
24536cat >>conftest.$ac_ext <<_ACEOF
24537/* end confdefs.h. */
24538
24539/* Override any gcc2 internal prototype to avoid an error. */
24540#ifdef __cplusplus
24541extern "C"
24542#endif
24543/* We use char because int might match the return type of a gcc2
24544 builtin and then its argument prototype would still apply. */
24545char dnet_ntoa ();
24546int
24547main ()
24548{
24549dnet_ntoa ();
24550 ;
24551 return 0;
24552}
24553_ACEOF
24554rm -f conftest.$ac_objext conftest$ac_exeext
24555if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24556 (eval $ac_link) 2>conftest.er1
a848cd7e 24557 ac_status=$?
ac1cb8d3
VS
24558 grep -v '^ *+' conftest.er1 >conftest.err
24559 rm -f conftest.er1
24560 cat conftest.err >&5
a848cd7e
SC
24561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24562 (exit $ac_status); } &&
ffa0583f 24563 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
24564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24565 (eval $ac_try) 2>&5
24566 ac_status=$?
24567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24568 (exit $ac_status); }; } &&
24569 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24571 (eval $ac_try) 2>&5
24572 ac_status=$?
24573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24574 (exit $ac_status); }; }; then
24575 ac_cv_lib_dnet_stub_dnet_ntoa=yes
24576else
24577 echo "$as_me: failed program was:" >&5
24578sed 's/^/| /' conftest.$ac_ext >&5
24579
24580ac_cv_lib_dnet_stub_dnet_ntoa=no
24581fi
ac1cb8d3
VS
24582rm -f conftest.err conftest.$ac_objext \
24583 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24584LIBS=$ac_check_lib_save_LIBS
24585fi
24586echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
24587echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
24588if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
24589 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
24590fi
24591
24592 fi
24593fi
ac1cb8d3
VS
24594rm -f conftest.err conftest.$ac_objext \
24595 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24596 LIBS="$ac_xsave_LIBS"
24597
24598 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
24599 # to get the SysV transport functions.
24600 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
24601 # needs -lnsl.
24602 # The nsl library prevents programs from opening the X display
24603 # on Irix 5.2, according to T.E. Dickey.
24604 # The functions gethostbyname, getservbyname, and inet_addr are
24605 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
24606 echo "$as_me:$LINENO: checking for gethostbyname" >&5
24607echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
24608if test "${ac_cv_func_gethostbyname+set}" = set; then
24609 echo $ECHO_N "(cached) $ECHO_C" >&6
24610else
24611 cat >conftest.$ac_ext <<_ACEOF
24612/* confdefs.h. */
24613_ACEOF
24614cat confdefs.h >>conftest.$ac_ext
24615cat >>conftest.$ac_ext <<_ACEOF
24616/* end confdefs.h. */
ac1cb8d3
VS
24617/* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
24618 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24619#define gethostbyname innocuous_gethostbyname
24620
a848cd7e
SC
24621/* System header to define __stub macros and hopefully few prototypes,
24622 which can conflict with char gethostbyname (); below.
24623 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24624 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 24625
a848cd7e
SC
24626#ifdef __STDC__
24627# include <limits.h>
24628#else
24629# include <assert.h>
24630#endif
ac1cb8d3
VS
24631
24632#undef gethostbyname
24633
a848cd7e
SC
24634/* Override any gcc2 internal prototype to avoid an error. */
24635#ifdef __cplusplus
24636extern "C"
24637{
24638#endif
24639/* We use char because int might match the return type of a gcc2
24640 builtin and then its argument prototype would still apply. */
24641char gethostbyname ();
24642/* The GNU C library defines this for functions which it implements
24643 to always fail with ENOSYS. Some functions are actually named
24644 something starting with __ and the normal name is an alias. */
24645#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
24646choke me
24647#else
24648char (*f) () = gethostbyname;
24649#endif
24650#ifdef __cplusplus
24651}
24652#endif
24653
24654int
24655main ()
24656{
24657return f != gethostbyname;
24658 ;
24659 return 0;
24660}
24661_ACEOF
24662rm -f conftest.$ac_objext conftest$ac_exeext
24663if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24664 (eval $ac_link) 2>conftest.er1
a848cd7e 24665 ac_status=$?
ac1cb8d3
VS
24666 grep -v '^ *+' conftest.er1 >conftest.err
24667 rm -f conftest.er1
24668 cat conftest.err >&5
a848cd7e
SC
24669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24670 (exit $ac_status); } &&
ffa0583f 24671 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
24672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24673 (eval $ac_try) 2>&5
24674 ac_status=$?
24675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24676 (exit $ac_status); }; } &&
24677 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24679 (eval $ac_try) 2>&5
24680 ac_status=$?
24681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24682 (exit $ac_status); }; }; then
24683 ac_cv_func_gethostbyname=yes
24684else
24685 echo "$as_me: failed program was:" >&5
24686sed 's/^/| /' conftest.$ac_ext >&5
24687
24688ac_cv_func_gethostbyname=no
24689fi
ac1cb8d3
VS
24690rm -f conftest.err conftest.$ac_objext \
24691 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24692fi
24693echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
24694echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
24695
24696 if test $ac_cv_func_gethostbyname = no; then
24697 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
24698echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
24699if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
24700 echo $ECHO_N "(cached) $ECHO_C" >&6
24701else
24702 ac_check_lib_save_LIBS=$LIBS
24703LIBS="-lnsl $LIBS"
24704cat >conftest.$ac_ext <<_ACEOF
24705/* confdefs.h. */
24706_ACEOF
24707cat confdefs.h >>conftest.$ac_ext
24708cat >>conftest.$ac_ext <<_ACEOF
24709/* end confdefs.h. */
24710
24711/* Override any gcc2 internal prototype to avoid an error. */
24712#ifdef __cplusplus
24713extern "C"
24714#endif
24715/* We use char because int might match the return type of a gcc2
24716 builtin and then its argument prototype would still apply. */
24717char gethostbyname ();
24718int
24719main ()
24720{
24721gethostbyname ();
24722 ;
24723 return 0;
24724}
24725_ACEOF
24726rm -f conftest.$ac_objext conftest$ac_exeext
24727if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3
VS
24728 (eval $ac_link) 2>conftest.er1
24729 ac_status=$?
24730 grep -v '^ *+' conftest.er1 >conftest.err
24731 rm -f conftest.er1
24732 cat conftest.err >&5
24733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24734 (exit $ac_status); } &&
ffa0583f 24735 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
24736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24737 (eval $ac_try) 2>&5
24738 ac_status=$?
24739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24740 (exit $ac_status); }; } &&
24741 { ac_try='test -s conftest$ac_exeext'
24742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24743 (eval $ac_try) 2>&5
24744 ac_status=$?
24745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24746 (exit $ac_status); }; }; then
24747 ac_cv_lib_nsl_gethostbyname=yes
24748else
24749 echo "$as_me: failed program was:" >&5
24750sed 's/^/| /' conftest.$ac_ext >&5
24751
24752ac_cv_lib_nsl_gethostbyname=no
24753fi
24754rm -f conftest.err conftest.$ac_objext \
24755 conftest$ac_exeext conftest.$ac_ext
24756LIBS=$ac_check_lib_save_LIBS
24757fi
24758echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
24759echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
24760if test $ac_cv_lib_nsl_gethostbyname = yes; then
24761 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
24762fi
24763
24764 if test $ac_cv_lib_nsl_gethostbyname = no; then
24765 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
24766echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
24767if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
24768 echo $ECHO_N "(cached) $ECHO_C" >&6
24769else
24770 ac_check_lib_save_LIBS=$LIBS
24771LIBS="-lbsd $LIBS"
24772cat >conftest.$ac_ext <<_ACEOF
24773/* confdefs.h. */
24774_ACEOF
24775cat confdefs.h >>conftest.$ac_ext
24776cat >>conftest.$ac_ext <<_ACEOF
24777/* end confdefs.h. */
24778
24779/* Override any gcc2 internal prototype to avoid an error. */
24780#ifdef __cplusplus
24781extern "C"
24782#endif
24783/* We use char because int might match the return type of a gcc2
24784 builtin and then its argument prototype would still apply. */
24785char gethostbyname ();
24786int
24787main ()
24788{
24789gethostbyname ();
24790 ;
24791 return 0;
24792}
24793_ACEOF
24794rm -f conftest.$ac_objext conftest$ac_exeext
24795if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24796 (eval $ac_link) 2>conftest.er1
a848cd7e 24797 ac_status=$?
ac1cb8d3
VS
24798 grep -v '^ *+' conftest.er1 >conftest.err
24799 rm -f conftest.er1
24800 cat conftest.err >&5
a848cd7e
SC
24801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24802 (exit $ac_status); } &&
ffa0583f 24803 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
a848cd7e
SC
24804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24805 (eval $ac_try) 2>&5
24806 ac_status=$?
24807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ac1cb8d3
VS
24808 (exit $ac_status); }; } &&
24809 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24811 (eval $ac_try) 2>&5
24812 ac_status=$?
24813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24814 (exit $ac_status); }; }; then
24815 ac_cv_lib_bsd_gethostbyname=yes
24816else
24817 echo "$as_me: failed program was:" >&5
24818sed 's/^/| /' conftest.$ac_ext >&5
24819
24820ac_cv_lib_bsd_gethostbyname=no
24821fi
ac1cb8d3
VS
24822rm -f conftest.err conftest.$ac_objext \
24823 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24824LIBS=$ac_check_lib_save_LIBS
24825fi
24826echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
24827echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
24828if test $ac_cv_lib_bsd_gethostbyname = yes; then
24829 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
24830fi
24831
24832 fi
24833 fi
24834
24835 # lieder@skyler.mavd.honeywell.com says without -lsocket,
24836 # socket/setsockopt and other routines are undefined under SCO ODT
24837 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
24838 # on later versions), says Simon Leinen: it contains gethostby*
24839 # variants that don't use the name server (or something). -lsocket
24840 # must be given before -lnsl if both are needed. We assume that
24841 # if connect needs -lnsl, so does gethostbyname.
24842 echo "$as_me:$LINENO: checking for connect" >&5
24843echo $ECHO_N "checking for connect... $ECHO_C" >&6
24844if test "${ac_cv_func_connect+set}" = set; then
24845 echo $ECHO_N "(cached) $ECHO_C" >&6
24846else
24847 cat >conftest.$ac_ext <<_ACEOF
24848/* confdefs.h. */
24849_ACEOF
24850cat confdefs.h >>conftest.$ac_ext
24851cat >>conftest.$ac_ext <<_ACEOF
24852/* end confdefs.h. */
ac1cb8d3
VS
24853/* Define connect to an innocuous variant, in case <limits.h> declares connect.
24854 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24855#define connect innocuous_connect
24856
a848cd7e
SC
24857/* System header to define __stub macros and hopefully few prototypes,
24858 which can conflict with char connect (); below.
24859 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24860 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 24861
a848cd7e
SC
24862#ifdef __STDC__
24863# include <limits.h>
24864#else
24865# include <assert.h>
24866#endif
ac1cb8d3
VS
24867
24868#undef connect
24869
a848cd7e
SC
24870/* Override any gcc2 internal prototype to avoid an error. */
24871#ifdef __cplusplus
24872extern "C"
24873{
24874#endif
24875/* We use char because int might match the return type of a gcc2
24876 builtin and then its argument prototype would still apply. */
24877char connect ();
24878/* The GNU C library defines this for functions which it implements
24879 to always fail with ENOSYS. Some functions are actually named
24880 something starting with __ and the normal name is an alias. */
24881#if defined (__stub_connect) || defined (__stub___connect)
24882choke me
24883#else
24884char (*f) () = connect;
24885#endif
24886#ifdef __cplusplus
24887}
24888#endif
24889
24890int
24891main ()
24892{
24893return f != connect;
24894 ;
24895 return 0;
24896}
24897_ACEOF
24898rm -f conftest.$ac_objext conftest$ac_exeext
24899if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24900 (eval $ac_link) 2>conftest.er1
a848cd7e 24901 ac_status=$?
ac1cb8d3
VS
24902 grep -v '^ *+' conftest.er1 >conftest.err
24903 rm -f conftest.er1
24904 cat conftest.err >&5
a848cd7e
SC
24905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24906 (exit $ac_status); } &&
ffa0583f 24907 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
24908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24909 (eval $ac_try) 2>&5
24910 ac_status=$?
24911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24912 (exit $ac_status); }; } &&
24913 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24915 (eval $ac_try) 2>&5
24916 ac_status=$?
24917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24918 (exit $ac_status); }; }; then
24919 ac_cv_func_connect=yes
24920else
24921 echo "$as_me: failed program was:" >&5
24922sed 's/^/| /' conftest.$ac_ext >&5
24923
24924ac_cv_func_connect=no
24925fi
ac1cb8d3
VS
24926rm -f conftest.err conftest.$ac_objext \
24927 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24928fi
24929echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
24930echo "${ECHO_T}$ac_cv_func_connect" >&6
24931
24932 if test $ac_cv_func_connect = no; then
24933 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
24934echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
24935if test "${ac_cv_lib_socket_connect+set}" = set; then
24936 echo $ECHO_N "(cached) $ECHO_C" >&6
24937else
24938 ac_check_lib_save_LIBS=$LIBS
24939LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
24940cat >conftest.$ac_ext <<_ACEOF
24941/* confdefs.h. */
24942_ACEOF
24943cat confdefs.h >>conftest.$ac_ext
24944cat >>conftest.$ac_ext <<_ACEOF
24945/* end confdefs.h. */
24946
24947/* Override any gcc2 internal prototype to avoid an error. */
24948#ifdef __cplusplus
24949extern "C"
24950#endif
24951/* We use char because int might match the return type of a gcc2
24952 builtin and then its argument prototype would still apply. */
24953char connect ();
24954int
24955main ()
24956{
24957connect ();
24958 ;
24959 return 0;
24960}
24961_ACEOF
24962rm -f conftest.$ac_objext conftest$ac_exeext
24963if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24964 (eval $ac_link) 2>conftest.er1
a848cd7e 24965 ac_status=$?
ac1cb8d3
VS
24966 grep -v '^ *+' conftest.er1 >conftest.err
24967 rm -f conftest.er1
24968 cat conftest.err >&5
a848cd7e
SC
24969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24970 (exit $ac_status); } &&
ffa0583f 24971 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
24972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24973 (eval $ac_try) 2>&5
24974 ac_status=$?
24975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24976 (exit $ac_status); }; } &&
24977 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24979 (eval $ac_try) 2>&5
24980 ac_status=$?
24981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24982 (exit $ac_status); }; }; then
24983 ac_cv_lib_socket_connect=yes
24984else
24985 echo "$as_me: failed program was:" >&5
24986sed 's/^/| /' conftest.$ac_ext >&5
24987
24988ac_cv_lib_socket_connect=no
24989fi
ac1cb8d3
VS
24990rm -f conftest.err conftest.$ac_objext \
24991 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24992LIBS=$ac_check_lib_save_LIBS
24993fi
24994echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
24995echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
24996if test $ac_cv_lib_socket_connect = yes; then
24997 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
24998fi
24999
25000 fi
25001
25002 # Guillermo Gomez says -lposix is necessary on A/UX.
25003 echo "$as_me:$LINENO: checking for remove" >&5
25004echo $ECHO_N "checking for remove... $ECHO_C" >&6
25005if test "${ac_cv_func_remove+set}" = set; then
25006 echo $ECHO_N "(cached) $ECHO_C" >&6
25007else
25008 cat >conftest.$ac_ext <<_ACEOF
25009/* confdefs.h. */
25010_ACEOF
25011cat confdefs.h >>conftest.$ac_ext
25012cat >>conftest.$ac_ext <<_ACEOF
25013/* end confdefs.h. */
ac1cb8d3
VS
25014/* Define remove to an innocuous variant, in case <limits.h> declares remove.
25015 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25016#define remove innocuous_remove
25017
a848cd7e
SC
25018/* System header to define __stub macros and hopefully few prototypes,
25019 which can conflict with char remove (); below.
25020 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25021 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 25022
a848cd7e
SC
25023#ifdef __STDC__
25024# include <limits.h>
25025#else
25026# include <assert.h>
25027#endif
ac1cb8d3
VS
25028
25029#undef remove
25030
a848cd7e
SC
25031/* Override any gcc2 internal prototype to avoid an error. */
25032#ifdef __cplusplus
25033extern "C"
25034{
25035#endif
25036/* We use char because int might match the return type of a gcc2
25037 builtin and then its argument prototype would still apply. */
25038char remove ();
25039/* The GNU C library defines this for functions which it implements
25040 to always fail with ENOSYS. Some functions are actually named
25041 something starting with __ and the normal name is an alias. */
25042#if defined (__stub_remove) || defined (__stub___remove)
25043choke me
25044#else
25045char (*f) () = remove;
25046#endif
25047#ifdef __cplusplus
25048}
25049#endif
25050
25051int
25052main ()
25053{
25054return f != remove;
25055 ;
25056 return 0;
25057}
25058_ACEOF
25059rm -f conftest.$ac_objext conftest$ac_exeext
25060if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25061 (eval $ac_link) 2>conftest.er1
a848cd7e 25062 ac_status=$?
ac1cb8d3
VS
25063 grep -v '^ *+' conftest.er1 >conftest.err
25064 rm -f conftest.er1
25065 cat conftest.err >&5
a848cd7e
SC
25066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25067 (exit $ac_status); } &&
ffa0583f 25068 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
25069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25070 (eval $ac_try) 2>&5
25071 ac_status=$?
25072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25073 (exit $ac_status); }; } &&
25074 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25076 (eval $ac_try) 2>&5
25077 ac_status=$?
25078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25079 (exit $ac_status); }; }; then
25080 ac_cv_func_remove=yes
25081else
25082 echo "$as_me: failed program was:" >&5
25083sed 's/^/| /' conftest.$ac_ext >&5
25084
25085ac_cv_func_remove=no
25086fi
ac1cb8d3
VS
25087rm -f conftest.err conftest.$ac_objext \
25088 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25089fi
25090echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
25091echo "${ECHO_T}$ac_cv_func_remove" >&6
25092
25093 if test $ac_cv_func_remove = no; then
25094 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
25095echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
25096if test "${ac_cv_lib_posix_remove+set}" = set; then
25097 echo $ECHO_N "(cached) $ECHO_C" >&6
25098else
25099 ac_check_lib_save_LIBS=$LIBS
25100LIBS="-lposix $LIBS"
25101cat >conftest.$ac_ext <<_ACEOF
25102/* confdefs.h. */
25103_ACEOF
25104cat confdefs.h >>conftest.$ac_ext
25105cat >>conftest.$ac_ext <<_ACEOF
25106/* end confdefs.h. */
25107
25108/* Override any gcc2 internal prototype to avoid an error. */
25109#ifdef __cplusplus
25110extern "C"
25111#endif
25112/* We use char because int might match the return type of a gcc2
25113 builtin and then its argument prototype would still apply. */
25114char remove ();
25115int
25116main ()
25117{
25118remove ();
25119 ;
25120 return 0;
25121}
25122_ACEOF
25123rm -f conftest.$ac_objext conftest$ac_exeext
25124if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25125 (eval $ac_link) 2>conftest.er1
a848cd7e 25126 ac_status=$?
ac1cb8d3
VS
25127 grep -v '^ *+' conftest.er1 >conftest.err
25128 rm -f conftest.er1
25129 cat conftest.err >&5
a848cd7e
SC
25130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25131 (exit $ac_status); } &&
ffa0583f 25132 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
25133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25134 (eval $ac_try) 2>&5
25135 ac_status=$?
25136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25137 (exit $ac_status); }; } &&
25138 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25140 (eval $ac_try) 2>&5
25141 ac_status=$?
25142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25143 (exit $ac_status); }; }; then
25144 ac_cv_lib_posix_remove=yes
25145else
25146 echo "$as_me: failed program was:" >&5
25147sed 's/^/| /' conftest.$ac_ext >&5
25148
25149ac_cv_lib_posix_remove=no
25150fi
ac1cb8d3
VS
25151rm -f conftest.err conftest.$ac_objext \
25152 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25153LIBS=$ac_check_lib_save_LIBS
25154fi
25155echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
25156echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
25157if test $ac_cv_lib_posix_remove = yes; then
25158 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
25159fi
25160
25161 fi
25162
25163 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
25164 echo "$as_me:$LINENO: checking for shmat" >&5
25165echo $ECHO_N "checking for shmat... $ECHO_C" >&6
25166if test "${ac_cv_func_shmat+set}" = set; then
25167 echo $ECHO_N "(cached) $ECHO_C" >&6
25168else
25169 cat >conftest.$ac_ext <<_ACEOF
25170/* confdefs.h. */
25171_ACEOF
25172cat confdefs.h >>conftest.$ac_ext
25173cat >>conftest.$ac_ext <<_ACEOF
25174/* end confdefs.h. */
ac1cb8d3
VS
25175/* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
25176 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25177#define shmat innocuous_shmat
25178
a848cd7e
SC
25179/* System header to define __stub macros and hopefully few prototypes,
25180 which can conflict with char shmat (); below.
25181 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25182 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 25183
a848cd7e
SC
25184#ifdef __STDC__
25185# include <limits.h>
25186#else
25187# include <assert.h>
25188#endif
ac1cb8d3
VS
25189
25190#undef shmat
25191
a848cd7e
SC
25192/* Override any gcc2 internal prototype to avoid an error. */
25193#ifdef __cplusplus
25194extern "C"
25195{
25196#endif
25197/* We use char because int might match the return type of a gcc2
25198 builtin and then its argument prototype would still apply. */
25199char shmat ();
25200/* The GNU C library defines this for functions which it implements
25201 to always fail with ENOSYS. Some functions are actually named
25202 something starting with __ and the normal name is an alias. */
25203#if defined (__stub_shmat) || defined (__stub___shmat)
25204choke me
25205#else
25206char (*f) () = shmat;
25207#endif
25208#ifdef __cplusplus
25209}
25210#endif
25211
25212int
25213main ()
25214{
25215return f != shmat;
25216 ;
25217 return 0;
25218}
25219_ACEOF
25220rm -f conftest.$ac_objext conftest$ac_exeext
25221if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25222 (eval $ac_link) 2>conftest.er1
a848cd7e 25223 ac_status=$?
ac1cb8d3
VS
25224 grep -v '^ *+' conftest.er1 >conftest.err
25225 rm -f conftest.er1
25226 cat conftest.err >&5
a848cd7e
SC
25227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25228 (exit $ac_status); } &&
ffa0583f 25229 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
25230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25231 (eval $ac_try) 2>&5
25232 ac_status=$?
25233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25234 (exit $ac_status); }; } &&
25235 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25237 (eval $ac_try) 2>&5
25238 ac_status=$?
25239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25240 (exit $ac_status); }; }; then
25241 ac_cv_func_shmat=yes
25242else
25243 echo "$as_me: failed program was:" >&5
25244sed 's/^/| /' conftest.$ac_ext >&5
25245
25246ac_cv_func_shmat=no
25247fi
ac1cb8d3
VS
25248rm -f conftest.err conftest.$ac_objext \
25249 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25250fi
25251echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
25252echo "${ECHO_T}$ac_cv_func_shmat" >&6
25253
25254 if test $ac_cv_func_shmat = no; then
25255 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
25256echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
25257if test "${ac_cv_lib_ipc_shmat+set}" = set; then
25258 echo $ECHO_N "(cached) $ECHO_C" >&6
25259else
25260 ac_check_lib_save_LIBS=$LIBS
25261LIBS="-lipc $LIBS"
25262cat >conftest.$ac_ext <<_ACEOF
25263/* confdefs.h. */
25264_ACEOF
25265cat confdefs.h >>conftest.$ac_ext
25266cat >>conftest.$ac_ext <<_ACEOF
25267/* end confdefs.h. */
25268
25269/* Override any gcc2 internal prototype to avoid an error. */
25270#ifdef __cplusplus
25271extern "C"
25272#endif
25273/* We use char because int might match the return type of a gcc2
25274 builtin and then its argument prototype would still apply. */
25275char shmat ();
25276int
25277main ()
25278{
25279shmat ();
25280 ;
25281 return 0;
25282}
25283_ACEOF
25284rm -f conftest.$ac_objext conftest$ac_exeext
25285if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25286 (eval $ac_link) 2>conftest.er1
a848cd7e 25287 ac_status=$?
ac1cb8d3
VS
25288 grep -v '^ *+' conftest.er1 >conftest.err
25289 rm -f conftest.er1
25290 cat conftest.err >&5
a848cd7e
SC
25291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25292 (exit $ac_status); } &&
ffa0583f 25293 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
25294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25295 (eval $ac_try) 2>&5
25296 ac_status=$?
25297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25298 (exit $ac_status); }; } &&
25299 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25301 (eval $ac_try) 2>&5
25302 ac_status=$?
25303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25304 (exit $ac_status); }; }; then
25305 ac_cv_lib_ipc_shmat=yes
25306else
25307 echo "$as_me: failed program was:" >&5
25308sed 's/^/| /' conftest.$ac_ext >&5
25309
25310ac_cv_lib_ipc_shmat=no
25311fi
ac1cb8d3
VS
25312rm -f conftest.err conftest.$ac_objext \
25313 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25314LIBS=$ac_check_lib_save_LIBS
25315fi
25316echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
25317echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
25318if test $ac_cv_lib_ipc_shmat = yes; then
25319 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
25320fi
25321
25322 fi
25323 fi
25324
25325 # Check for libraries that X11R6 Xt/Xaw programs need.
25326 ac_save_LDFLAGS=$LDFLAGS
25327 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
25328 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
25329 # check for ICE first), but we must link in the order -lSM -lICE or
25330 # we get undefined symbols. So assume we have SM if we have ICE.
25331 # These have to be linked with before -lX11, unlike the other
25332 # libraries we check for below, so use a different variable.
25333 # John Interrante, Karl Berry
25334 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
25335echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
25336if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
25337 echo $ECHO_N "(cached) $ECHO_C" >&6
25338else
25339 ac_check_lib_save_LIBS=$LIBS
25340LIBS="-lICE $X_EXTRA_LIBS $LIBS"
25341cat >conftest.$ac_ext <<_ACEOF
25342/* confdefs.h. */
25343_ACEOF
25344cat confdefs.h >>conftest.$ac_ext
25345cat >>conftest.$ac_ext <<_ACEOF
25346/* end confdefs.h. */
25347
25348/* Override any gcc2 internal prototype to avoid an error. */
25349#ifdef __cplusplus
25350extern "C"
25351#endif
25352/* We use char because int might match the return type of a gcc2
25353 builtin and then its argument prototype would still apply. */
25354char IceConnectionNumber ();
25355int
25356main ()
25357{
25358IceConnectionNumber ();
25359 ;
25360 return 0;
25361}
25362_ACEOF
25363rm -f conftest.$ac_objext conftest$ac_exeext
25364if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25365 (eval $ac_link) 2>conftest.er1
a848cd7e 25366 ac_status=$?
ac1cb8d3
VS
25367 grep -v '^ *+' conftest.er1 >conftest.err
25368 rm -f conftest.er1
25369 cat conftest.err >&5
a848cd7e
SC
25370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25371 (exit $ac_status); } &&
ffa0583f 25372 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
25373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25374 (eval $ac_try) 2>&5
25375 ac_status=$?
25376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25377 (exit $ac_status); }; } &&
25378 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25380 (eval $ac_try) 2>&5
25381 ac_status=$?
25382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25383 (exit $ac_status); }; }; then
25384 ac_cv_lib_ICE_IceConnectionNumber=yes
25385else
25386 echo "$as_me: failed program was:" >&5
25387sed 's/^/| /' conftest.$ac_ext >&5
25388
25389ac_cv_lib_ICE_IceConnectionNumber=no
25390fi
ac1cb8d3
VS
25391rm -f conftest.err conftest.$ac_objext \
25392 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25393LIBS=$ac_check_lib_save_LIBS
25394fi
25395echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
25396echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
25397if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
25398 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
25399fi
25400
25401 LDFLAGS=$ac_save_LDFLAGS
25402
25403fi
25404
25405
25406 if test "$no_x" = "yes"; then
25407 { { echo "$as_me:$LINENO: error: X11 not found" >&5
25408echo "$as_me: error: X11 not found" >&2;}
25409 { (exit please use --x-includes and/or --x-libraries options); exit please use --x-includes and/or --x-libraries options; }; }
25410 fi
25411
74b84332
VS
25412 GUI_TK_LIBRARY=`echo $X_LIBS | sed 's/ -LNONE//' | sed 's/ -RNONE//'`
25413 TOOLKIT_INCLUDE=`echo $X_CFLAGS | sed 's/ -INONE//'`
a848cd7e
SC
25414 AFMINSTALL=afminstall
25415 COMPILED_X_PROGRAM=0
25416
74b84332
VS
25417 fi
25418
25419 if test "$wxUSE_X11" = 1; then
a848cd7e
SC
25420 if test "$wxUSE_NANOX" = "yes"; then
25421 echo "$as_me:$LINENO: checking for MicroWindows/NanoX distribution" >&5
25422echo $ECHO_N "checking for MicroWindows/NanoX distribution... $ECHO_C" >&6
25423 if test "x$MICROWIN" = x ; then
25424 echo "$as_me:$LINENO: result: not found" >&5
25425echo "${ECHO_T}not found" >&6
25426 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&5
25427echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&2;}
25428 { (exit 1); exit 1; }; }
25429 else
25430 echo "$as_me:$LINENO: result: $MICROWIN" >&5
25431echo "${ECHO_T}$MICROWIN" >&6
25432 cat >>confdefs.h <<\_ACEOF
25433#define wxUSE_NANOX 1
25434_ACEOF
25435
25436 fi
25437 fi
25438
25439 if test "$wxUSE_UNICODE" = "yes"; then
25440
25441 succeeded=no
25442
25443 if test -z "$PKG_CONFIG"; then
25444 # Extract the first word of "pkg-config", so it can be a program name with args.
25445set dummy pkg-config; ac_word=$2
25446echo "$as_me:$LINENO: checking for $ac_word" >&5
25447echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25448if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
25449 echo $ECHO_N "(cached) $ECHO_C" >&6
25450else
25451 case $PKG_CONFIG in
25452 [\\/]* | ?:[\\/]*)
25453 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
25454 ;;
25455 *)
25456 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25457for as_dir in $PATH
25458do
25459 IFS=$as_save_IFS
25460 test -z "$as_dir" && as_dir=.
25461 for ac_exec_ext in '' $ac_executable_extensions; do
25462 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25463 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
25464 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25465 break 2
25466 fi
25467done
25468done
25469
25470 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
25471 ;;
25472esac
25473fi
25474PKG_CONFIG=$ac_cv_path_PKG_CONFIG
25475
25476if test -n "$PKG_CONFIG"; then
25477 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
25478echo "${ECHO_T}$PKG_CONFIG" >&6
25479else
25480 echo "$as_me:$LINENO: result: no" >&5
25481echo "${ECHO_T}no" >&6
25482fi
25483
25484 fi
25485
25486 if test "$PKG_CONFIG" = "no" ; then
25487 echo "*** The pkg-config script could not be found. Make sure it is"
25488 echo "*** in your path, or set the PKG_CONFIG environment variable"
25489 echo "*** to the full path to pkg-config."
25490 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
25491 else
25492 PKG_CONFIG_MIN_VERSION=0.9.0
25493 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
25494 echo "$as_me:$LINENO: checking for pangox" >&5
25495echo $ECHO_N "checking for pangox... $ECHO_C" >&6
25496
25497 if $PKG_CONFIG --exists "pangox" ; then
25498 echo "$as_me:$LINENO: result: yes" >&5
25499echo "${ECHO_T}yes" >&6
25500 succeeded=yes
25501
25502 echo "$as_me:$LINENO: checking PANGOX_CFLAGS" >&5
25503echo $ECHO_N "checking PANGOX_CFLAGS... $ECHO_C" >&6
25504 PANGOX_CFLAGS=`$PKG_CONFIG --cflags "pangox"`
25505 echo "$as_me:$LINENO: result: $PANGOX_CFLAGS" >&5
25506echo "${ECHO_T}$PANGOX_CFLAGS" >&6
25507
25508 echo "$as_me:$LINENO: checking PANGOX_LIBS" >&5
25509echo $ECHO_N "checking PANGOX_LIBS... $ECHO_C" >&6
25510 PANGOX_LIBS=`$PKG_CONFIG --libs "pangox"`
25511 echo "$as_me:$LINENO: result: $PANGOX_LIBS" >&5
25512echo "${ECHO_T}$PANGOX_LIBS" >&6
25513 else
25514 PANGOX_CFLAGS=""
25515 PANGOX_LIBS=""
25516 ## If we have a custom action on failure, don't print errors, but
25517 ## do set a variable so people can do so.
25518 PANGOX_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangox"`
25519
25520 fi
25521
25522
25523
25524 else
25525 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
25526 echo "*** See http://www.freedesktop.org/software/pkgconfig"
25527 fi
25528 fi
25529
25530 if test $succeeded = yes; then
25531
25532 CXXFLAGS="$CXXFLAGS $PANGOX_CFLAGS"
25533 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOX_LIBS"
25534
25535 else
25536
25537 { { echo "$as_me:$LINENO: error: pangox library not found, library cannot be compiled in Unicode mode" >&5
25538echo "$as_me: error: pangox library not found, library cannot be compiled in Unicode mode" >&2;}
25539 { (exit 1); exit 1; }; }
25540
25541
25542 fi
25543
25544
25545 succeeded=no
25546
25547 if test -z "$PKG_CONFIG"; then
25548 # Extract the first word of "pkg-config", so it can be a program name with args.
25549set dummy pkg-config; ac_word=$2
25550echo "$as_me:$LINENO: checking for $ac_word" >&5
25551echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25552if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
25553 echo $ECHO_N "(cached) $ECHO_C" >&6
25554else
25555 case $PKG_CONFIG in
25556 [\\/]* | ?:[\\/]*)
25557 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
25558 ;;
25559 *)
25560 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25561for as_dir in $PATH
25562do
25563 IFS=$as_save_IFS
25564 test -z "$as_dir" && as_dir=.
25565 for ac_exec_ext in '' $ac_executable_extensions; do
25566 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25567 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
25568 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25569 break 2
25570 fi
25571done
25572done
25573
25574 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
25575 ;;
25576esac
25577fi
25578PKG_CONFIG=$ac_cv_path_PKG_CONFIG
25579
25580if test -n "$PKG_CONFIG"; then
25581 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
25582echo "${ECHO_T}$PKG_CONFIG" >&6
25583else
25584 echo "$as_me:$LINENO: result: no" >&5
25585echo "${ECHO_T}no" >&6
25586fi
25587
25588 fi
25589
25590 if test "$PKG_CONFIG" = "no" ; then
25591 echo "*** The pkg-config script could not be found. Make sure it is"
25592 echo "*** in your path, or set the PKG_CONFIG environment variable"
25593 echo "*** to the full path to pkg-config."
25594 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
25595 else
25596 PKG_CONFIG_MIN_VERSION=0.9.0
25597 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
25598 echo "$as_me:$LINENO: checking for pangoft2" >&5
25599echo $ECHO_N "checking for pangoft2... $ECHO_C" >&6
25600
25601 if $PKG_CONFIG --exists "pangoft2" ; then
25602 echo "$as_me:$LINENO: result: yes" >&5
25603echo "${ECHO_T}yes" >&6
25604 succeeded=yes
25605
25606 echo "$as_me:$LINENO: checking PANGOFT2_CFLAGS" >&5
25607echo $ECHO_N "checking PANGOFT2_CFLAGS... $ECHO_C" >&6
25608 PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"`
25609 echo "$as_me:$LINENO: result: $PANGOFT2_CFLAGS" >&5
25610echo "${ECHO_T}$PANGOFT2_CFLAGS" >&6
25611
25612 echo "$as_me:$LINENO: checking PANGOFT2_LIBS" >&5
25613echo $ECHO_N "checking PANGOFT2_LIBS... $ECHO_C" >&6
25614 PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"`
25615 echo "$as_me:$LINENO: result: $PANGOFT2_LIBS" >&5
25616echo "${ECHO_T}$PANGOFT2_LIBS" >&6
25617 else
25618 PANGOFT2_CFLAGS=""
25619 PANGOFT2_LIBS=""
25620 ## If we have a custom action on failure, don't print errors, but
25621 ## do set a variable so people can do so.
25622 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
25623
25624 fi
25625
25626
25627
25628 else
25629 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
25630 echo "*** See http://www.freedesktop.org/software/pkgconfig"
25631 fi
25632 fi
25633
25634 if test $succeeded = yes; then
25635
25636 CXXFLAGS="$CXXFLAGS $PANGOFT2_CFLAGS"
25637 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOFT2_LIBS"
25638
25639 else
25640
25641 { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5
25642echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;}
25643 wxUSE_PRINTING_ARCHITECTURE="no"
25644
25645
25646 fi
25647
25648
25649 succeeded=no
25650
25651 if test -z "$PKG_CONFIG"; then
25652 # Extract the first word of "pkg-config", so it can be a program name with args.
25653set dummy pkg-config; ac_word=$2
25654echo "$as_me:$LINENO: checking for $ac_word" >&5
25655echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25656if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
25657 echo $ECHO_N "(cached) $ECHO_C" >&6
25658else
25659 case $PKG_CONFIG in
25660 [\\/]* | ?:[\\/]*)
25661 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
25662 ;;
25663 *)
25664 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25665for as_dir in $PATH
25666do
25667 IFS=$as_save_IFS
25668 test -z "$as_dir" && as_dir=.
25669 for ac_exec_ext in '' $ac_executable_extensions; do
25670 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25671 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
25672 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25673 break 2
25674 fi
25675done
25676done
25677
25678 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
25679 ;;
25680esac
25681fi
25682PKG_CONFIG=$ac_cv_path_PKG_CONFIG
25683
25684if test -n "$PKG_CONFIG"; then
25685 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
25686echo "${ECHO_T}$PKG_CONFIG" >&6
25687else
25688 echo "$as_me:$LINENO: result: no" >&5
25689echo "${ECHO_T}no" >&6
25690fi
25691
25692 fi
25693
25694 if test "$PKG_CONFIG" = "no" ; then
25695 echo "*** The pkg-config script could not be found. Make sure it is"
25696 echo "*** in your path, or set the PKG_CONFIG environment variable"
25697 echo "*** to the full path to pkg-config."
25698 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
25699 else
25700 PKG_CONFIG_MIN_VERSION=0.9.0
25701 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
25702 echo "$as_me:$LINENO: checking for pangoxft" >&5
25703echo $ECHO_N "checking for pangoxft... $ECHO_C" >&6
25704
25705 if $PKG_CONFIG --exists "pangoxft" ; then
25706 echo "$as_me:$LINENO: result: yes" >&5
25707echo "${ECHO_T}yes" >&6
25708 succeeded=yes
25709
25710 echo "$as_me:$LINENO: checking PANGOXFT_CFLAGS" >&5
25711echo $ECHO_N "checking PANGOXFT_CFLAGS... $ECHO_C" >&6
25712 PANGOXFT_CFLAGS=`$PKG_CONFIG --cflags "pangoxft"`
25713 echo "$as_me:$LINENO: result: $PANGOXFT_CFLAGS" >&5
25714echo "${ECHO_T}$PANGOXFT_CFLAGS" >&6
25715
25716 echo "$as_me:$LINENO: checking PANGOXFT_LIBS" >&5
25717echo $ECHO_N "checking PANGOXFT_LIBS... $ECHO_C" >&6
25718 PANGOXFT_LIBS=`$PKG_CONFIG --libs "pangoxft"`
25719 echo "$as_me:$LINENO: result: $PANGOXFT_LIBS" >&5
25720echo "${ECHO_T}$PANGOXFT_LIBS" >&6
25721 else
25722 PANGOXFT_CFLAGS=""
25723 PANGOXFT_LIBS=""
25724 ## If we have a custom action on failure, don't print errors, but
25725 ## do set a variable so people can do so.
25726 PANGOXFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoxft"`
25727
25728 fi
25729
25730
25731
25732 else
25733 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
25734 echo "*** See http://www.freedesktop.org/software/pkgconfig"
25735 fi
25736 fi
25737
25738 if test $succeeded = yes; then
25739
25740 CXXFLAGS="$CXXFLAGS $PANGOXFT_CFLAGS"
25741 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOXFT_LIBS"
25742
25743 else
25744
25745 { echo "$as_me:$LINENO: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&5
25746echo "$as_me: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&2;}
25747
25748
25749 fi
25750
304205f1
VS
25751 save_CFLAGS="$CFLAGS"
25752 save_LIBS="$LIBS"
25753 CFLAGS="$CFLAGS $PANGOX_CFLAGS"
25754 LIBS="$LIBS $PANGOX_LIBS"
25755
25756for ac_func in pango_font_family_is_monospace
25757do
25758as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25759echo "$as_me:$LINENO: checking for $ac_func" >&5
25760echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25761if eval "test \"\${$as_ac_var+set}\" = set"; then
25762 echo $ECHO_N "(cached) $ECHO_C" >&6
25763else
25764 cat >conftest.$ac_ext <<_ACEOF
25765/* confdefs.h. */
25766_ACEOF
25767cat confdefs.h >>conftest.$ac_ext
25768cat >>conftest.$ac_ext <<_ACEOF
25769/* end confdefs.h. */
25770/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25771 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25772#define $ac_func innocuous_$ac_func
25773
25774/* System header to define __stub macros and hopefully few prototypes,
25775 which can conflict with char $ac_func (); below.
25776 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25777 <limits.h> exists even on freestanding compilers. */
25778
25779#ifdef __STDC__
25780# include <limits.h>
25781#else
25782# include <assert.h>
25783#endif
25784
25785#undef $ac_func
25786
25787/* Override any gcc2 internal prototype to avoid an error. */
25788#ifdef __cplusplus
25789extern "C"
25790{
25791#endif
25792/* We use char because int might match the return type of a gcc2
25793 builtin and then its argument prototype would still apply. */
25794char $ac_func ();
25795/* The GNU C library defines this for functions which it implements
25796 to always fail with ENOSYS. Some functions are actually named
25797 something starting with __ and the normal name is an alias. */
25798#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25799choke me
25800#else
25801char (*f) () = $ac_func;
25802#endif
25803#ifdef __cplusplus
25804}
25805#endif
25806
25807int
25808main ()
25809{
25810return f != $ac_func;
25811 ;
25812 return 0;
25813}
25814_ACEOF
25815rm -f conftest.$ac_objext conftest$ac_exeext
25816if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25817 (eval $ac_link) 2>conftest.er1
25818 ac_status=$?
25819 grep -v '^ *+' conftest.er1 >conftest.err
25820 rm -f conftest.er1
25821 cat conftest.err >&5
25822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25823 (exit $ac_status); } &&
ffa0583f 25824 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
304205f1
VS
25825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25826 (eval $ac_try) 2>&5
25827 ac_status=$?
25828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25829 (exit $ac_status); }; } &&
25830 { ac_try='test -s conftest$ac_exeext'
25831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25832 (eval $ac_try) 2>&5
25833 ac_status=$?
25834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25835 (exit $ac_status); }; }; then
25836 eval "$as_ac_var=yes"
25837else
25838 echo "$as_me: failed program was:" >&5
25839sed 's/^/| /' conftest.$ac_ext >&5
25840
25841eval "$as_ac_var=no"
25842fi
25843rm -f conftest.err conftest.$ac_objext \
25844 conftest$ac_exeext conftest.$ac_ext
25845fi
25846echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25847echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25848if test `eval echo '${'$as_ac_var'}'` = yes; then
25849 cat >>confdefs.h <<_ACEOF
25850#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25851_ACEOF
25852
25853fi
25854done
25855
25856 CFLAGS="$save_CFLAGS"
25857 LIBS="$save_LIBS"
a848cd7e
SC
25858 fi
25859
25860 wxUSE_UNIVERSAL="yes"
25861
25862 if test "$wxUSE_NANOX" = "yes"; then
25863 TOOLKIT_INCLUDE="-I\$(top_srcdir)/include/wx/x11/nanox -I\$(MICROWIN)/src/include $TOOLKIT_INCLUDE"
25864 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"
25865 GUI_TK_LIBRARY="$GUI_TK_LIBRARY \$(MICROWIN)/src/lib/libnano-X.a"
25866 else
25867 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lX11"
25868 fi
25869
a848cd7e
SC
25870 TOOLKIT=X11
25871 GUIDIST=X11_DIST
25872 fi
25873
25874 if test "$wxUSE_MOTIF" = 1; then
74b84332
VS
25875 echo "$as_me:$LINENO: checking for Motif/Lesstif headers" >&5
25876echo $ECHO_N "checking for Motif/Lesstif headers... $ECHO_C" >&6
a848cd7e 25877
74b84332
VS
25878ac_find_includes=
25879for ac_dir in $SEARCH_INCLUDE /usr/include;
25880 do
25881 if test -f "$ac_dir/Xm/Xm.h"; then
25882 ac_find_includes=$ac_dir
25883 break
25884 fi
25885 done
a848cd7e 25886
74b84332
VS
25887 if test "$ac_find_includes" != "" ; then
25888 echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
25889echo "${ECHO_T}found in $ac_find_includes" >&6
25890
25891 if test "x$ac_find_includes" = "x/usr/include"; then
25892 ac_path_to_include=""
25893 else
25894 echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null
25895 result=$?
25896 if test $result = 0; then
25897 ac_path_to_include=""
25898 else
25899 ac_path_to_include=" -I$ac_find_includes"
25900 fi
a848cd7e
SC
25901 fi
25902
74b84332
VS
25903 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE$ac_path_to_include"
25904 else
25905 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
25906/* confdefs.h. */
25907_ACEOF
25908cat confdefs.h >>conftest.$ac_ext
25909cat >>conftest.$ac_ext <<_ACEOF
25910/* end confdefs.h. */
25911
74b84332
VS
25912 #include <Xm/Xm.h>
25913
a848cd7e
SC
25914int
25915main ()
25916{
25917
74b84332
VS
25918 int version;
25919 version = xmUseVersion;
25920
a848cd7e
SC
25921 ;
25922 return 0;
25923}
25924_ACEOF
74b84332
VS
25925rm -f conftest.$ac_objext
25926if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25927 (eval $ac_compile) 2>conftest.er1
a848cd7e 25928 ac_status=$?
ac1cb8d3
VS
25929 grep -v '^ *+' conftest.er1 >conftest.err
25930 rm -f conftest.er1
25931 cat conftest.err >&5
a848cd7e
SC
25932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25933 (exit $ac_status); } &&
ffa0583f 25934 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
25935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25936 (eval $ac_try) 2>&5
25937 ac_status=$?
25938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25939 (exit $ac_status); }; } &&
74b84332 25940 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
25941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25942 (eval $ac_try) 2>&5
25943 ac_status=$?
25944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25945 (exit $ac_status); }; }; then
74b84332
VS
25946
25947 echo "$as_me:$LINENO: result: found in default search path" >&5
25948echo "${ECHO_T}found in default search path" >&6
25949 COMPILED_X_PROGRAM=1
25950
a848cd7e
SC
25951else
25952 echo "$as_me: failed program was:" >&5
25953sed 's/^/| /' conftest.$ac_ext >&5
25954
a848cd7e 25955
74b84332
VS
25956 echo "$as_me:$LINENO: result: no" >&5
25957echo "${ECHO_T}no" >&6
25958 { { echo "$as_me:$LINENO: error: please set CFLAGS to contain the location of Xm/Xm.h" >&5
25959echo "$as_me: error: please set CFLAGS to contain the location of Xm/Xm.h" >&2;}
25960 { (exit 1); exit 1; }; }
a848cd7e 25961
a848cd7e 25962
a848cd7e 25963fi
74b84332
VS
25964rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25965 fi
25966
25967 if test "$COMPILED_X_PROGRAM" = 0; then
25968 echo "$as_me:$LINENO: checking for Motif/Lesstif library" >&5
25969echo $ECHO_N "checking for Motif/Lesstif library... $ECHO_C" >&6
25970
25971ac_find_libraries=
25972for ac_dir in $SEARCH_LIB /usr/lib;
25973 do
25974 for ac_extension in a so sl dylib; do
25975 if test -f "$ac_dir/libXm.$ac_extension"; then
25976 ac_find_libraries=$ac_dir
25977 break 2
a848cd7e 25978 fi
74b84332
VS
25979 done
25980 done
a848cd7e 25981
74b84332
VS
25982 if test "$ac_find_libraries" != "" ; then
25983 echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5
25984echo "${ECHO_T}found at $ac_find_libraries" >&6
a848cd7e 25985
74b84332
VS
25986
25987 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
25988 result=$?
25989 if test $result = 0; then
25990 ac_path_to_link=""
a848cd7e 25991 else
74b84332
VS
25992 ac_path_to_link=" -L$ac_find_libraries"
25993 fi
25994
25995 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
25996 else
25997 save_CFLAGS=$CFLAGS
25998 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
25999
26000 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
26001/* confdefs.h. */
26002_ACEOF
26003cat confdefs.h >>conftest.$ac_ext
26004cat >>conftest.$ac_ext <<_ACEOF
26005/* end confdefs.h. */
26006
74b84332
VS
26007 #include <Xm/Xm.h>
26008
a848cd7e
SC
26009int
26010main ()
26011{
74b84332
VS
26012
26013 int version;
26014 version = xmUseVersion;
26015
a848cd7e
SC
26016 ;
26017 return 0;
26018}
26019_ACEOF
74b84332
VS
26020rm -f conftest.$ac_objext
26021if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26022 (eval $ac_compile) 2>conftest.er1
a848cd7e 26023 ac_status=$?
ac1cb8d3
VS
26024 grep -v '^ *+' conftest.er1 >conftest.err
26025 rm -f conftest.er1
26026 cat conftest.err >&5
a848cd7e
SC
26027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26028 (exit $ac_status); } &&
ffa0583f 26029 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26031 (eval $ac_try) 2>&5
26032 ac_status=$?
26033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26034 (exit $ac_status); }; } &&
74b84332 26035 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
26036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26037 (eval $ac_try) 2>&5
26038 ac_status=$?
26039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26040 (exit $ac_status); }; }; then
74b84332
VS
26041
26042 echo "$as_me:$LINENO: result: found in default search path" >&5
26043echo "${ECHO_T}found in default search path" >&6
26044 COMPILED_X_PROGRAM=1
26045
a848cd7e
SC
26046else
26047 echo "$as_me: failed program was:" >&5
26048sed 's/^/| /' conftest.$ac_ext >&5
26049
74b84332
VS
26050
26051 echo "$as_me:$LINENO: result: no" >&5
26052echo "${ECHO_T}no" >&6
26053 { { echo "$as_me:$LINENO: error: please set LDFLAGS to contain the location of libXm" >&5
26054echo "$as_me: error: please set LDFLAGS to contain the location of libXm" >&2;}
26055 { (exit 1); exit 1; }; }
26056
26057
26058fi
26059rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26060
26061 CFLAGS=$save_CFLAGS
26062 fi
26063 fi
26064
26065 echo "$as_me:$LINENO: checking if we need -lXp and/or -lSM -lICE" >&5
26066echo $ECHO_N "checking if we need -lXp and/or -lSM -lICE... $ECHO_C" >&6
26067 libp_link=""
26068 libsm_ice_link=""
26069 libs_found=0
26070 for libp in "" " -lXp"; do
26071 if test "$libs_found" = "0"; then
26072 for libsm_ice in "" " -lSM -lICE"; do
26073 if test "$libs_found" = "0"; then
26074 save_LIBS="$LIBS"
26075 LIBS="$GUI_TK_LIBRARY -lXm ${libp} -lXmu -lXext -lXt${libsm_ice} -lX11"
26076 save_CFLAGS=$CFLAGS
26077 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
26078
26079 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
26080/* confdefs.h. */
26081_ACEOF
26082cat confdefs.h >>conftest.$ac_ext
26083cat >>conftest.$ac_ext <<_ACEOF
26084/* end confdefs.h. */
26085
74b84332
VS
26086 #include <Xm/Xm.h>
26087 #include <Xm/List.h>
26088
a848cd7e
SC
26089int
26090main ()
26091{
74b84332
VS
26092
26093 XmString string = NULL;
26094 Widget w = NULL;
26095 int position = 0;
26096 XmListAddItem(w, string, position);
26097
a848cd7e
SC
26098 ;
26099 return 0;
26100}
26101_ACEOF
26102rm -f conftest.$ac_objext conftest$ac_exeext
26103if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26104 (eval $ac_link) 2>conftest.er1
a848cd7e 26105 ac_status=$?
ac1cb8d3
VS
26106 grep -v '^ *+' conftest.er1 >conftest.err
26107 rm -f conftest.er1
26108 cat conftest.err >&5
a848cd7e
SC
26109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26110 (exit $ac_status); } &&
ffa0583f 26111 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26113 (eval $ac_try) 2>&5
26114 ac_status=$?
26115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26116 (exit $ac_status); }; } &&
26117 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26119 (eval $ac_try) 2>&5
26120 ac_status=$?
26121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26122 (exit $ac_status); }; }; then
26123
26124 libp_link="$libp"
26125 libsm_ice_link="$libsm_ice"
26126 echo "$as_me:$LINENO: result: need${libp_link}${libsm_ice_link}" >&5
26127echo "${ECHO_T}need${libp_link}${libsm_ice_link}" >&6
26128 libs_found=1
26129
26130else
26131 echo "$as_me: failed program was:" >&5
26132sed 's/^/| /' conftest.$ac_ext >&5
26133
26134
26135
26136fi
ac1cb8d3
VS
26137rm -f conftest.err conftest.$ac_objext \
26138 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26139
26140 LIBS="$save_LIBS"
26141 CFLAGS=$save_CFLAGS
26142 fi
26143 done
26144 fi
26145 done
26146
26147 if test "$libs_found" = "0"; then
26148 echo "$as_me:$LINENO: result: can't find the right libraries" >&5
26149echo "${ECHO_T}can't find the right libraries" >&6
26150 { { echo "$as_me:$LINENO: error: can't link a simple motif program" >&5
26151echo "$as_me: error: can't link a simple motif program" >&2;}
26152 { (exit 1); exit 1; }; }
26153 fi
26154
26155 save_CFLAGS=$CFLAGS
26156 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
26157 echo "$as_me:$LINENO: checking for Motif 2" >&5
26158echo $ECHO_N "checking for Motif 2... $ECHO_C" >&6
26159 cat >conftest.$ac_ext <<_ACEOF
26160/* confdefs.h. */
26161_ACEOF
26162cat confdefs.h >>conftest.$ac_ext
26163cat >>conftest.$ac_ext <<_ACEOF
26164/* end confdefs.h. */
26165
26166 #include <Xm/Xm.h>
26167
26168int
26169main ()
26170{
26171
26172 #if XmVersion < 2000
26173 #error "Not Motif 2"
26174 #endif
26175
26176 ;
26177 return 0;
26178}
26179_ACEOF
26180rm -f conftest.$ac_objext
26181if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 26182 (eval $ac_compile) 2>conftest.er1
a848cd7e 26183 ac_status=$?
ac1cb8d3
VS
26184 grep -v '^ *+' conftest.er1 >conftest.err
26185 rm -f conftest.er1
26186 cat conftest.err >&5
a848cd7e
SC
26187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26188 (exit $ac_status); } &&
ffa0583f 26189 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26191 (eval $ac_try) 2>&5
26192 ac_status=$?
26193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26194 (exit $ac_status); }; } &&
26195 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
26196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26197 (eval $ac_try) 2>&5
26198 ac_status=$?
26199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26200 (exit $ac_status); }; }; then
26201
26202 cat >>confdefs.h <<\_ACEOF
26203#define __WXMOTIF20__ 1
26204_ACEOF
26205
26206 echo "$as_me:$LINENO: result: found" >&5
26207echo "${ECHO_T}found" >&6
26208
26209else
26210 echo "$as_me: failed program was:" >&5
26211sed 's/^/| /' conftest.$ac_ext >&5
26212
26213
26214 cat >>confdefs.h <<\_ACEOF
26215#define __WXMOTIF20__ 0
26216_ACEOF
26217
26218 echo "$as_me:$LINENO: result: not found" >&5
26219echo "${ECHO_T}not found" >&6
26220
26221fi
ac1cb8d3 26222rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
26223 CFLAGS=$save_CFLAGS
26224
26225 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXm${libp_link} -lXmu -lXext -lXt${libsm_ice_link} -lX11"
a848cd7e
SC
26226 TOOLKIT=MOTIF
26227 GUIDIST=MOTIF_DIST
26228 fi
26229
74b84332 26230 if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
a848cd7e
SC
26231 if test "$wxUSE_LIBXPM" = "sys"; then
26232 echo "$as_me:$LINENO: checking for Xpm library" >&5
26233echo $ECHO_N "checking for Xpm library... $ECHO_C" >&6
26234
26235ac_find_libraries=
26236for ac_dir in $SEARCH_LIB /usr/lib;
26237 do
26238 for ac_extension in a so sl dylib; do
26239 if test -f "$ac_dir/libXpm.$ac_extension"; then
26240 ac_find_libraries=$ac_dir
26241 break 2
26242 fi
26243 done
26244 done
26245
26246 if test "$ac_find_libraries" != "" ; then
26247
26248 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
26249 result=$?
26250 if test $result = 0; then
26251 ac_path_to_link=""
26252 else
26253 ac_path_to_link=" -L$ac_find_libraries"
26254 fi
26255
26256 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
26257 echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5
26258echo "${ECHO_T}found at $ac_find_libraries" >&6
26259
26260 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
26261echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
26262if test "${wx_cv_x11_xpm_h+set}" = set; then
26263 echo $ECHO_N "(cached) $ECHO_C" >&6
26264else
26265
26266 save_CFLAGS=$CFLAGS
26267 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
26268
26269 cat >conftest.$ac_ext <<_ACEOF
26270/* confdefs.h. */
26271_ACEOF
26272cat confdefs.h >>conftest.$ac_ext
26273cat >>conftest.$ac_ext <<_ACEOF
26274/* end confdefs.h. */
26275
26276 #include <X11/xpm.h>
26277
26278int
26279main ()
26280{
26281
26282 int version;
26283 version = XpmLibraryVersion();
26284
26285 ;
26286 return 0;
26287}
26288_ACEOF
26289rm -f conftest.$ac_objext
26290if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 26291 (eval $ac_compile) 2>conftest.er1
a848cd7e 26292 ac_status=$?
ac1cb8d3
VS
26293 grep -v '^ *+' conftest.er1 >conftest.err
26294 rm -f conftest.er1
26295 cat conftest.err >&5
a848cd7e
SC
26296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26297 (exit $ac_status); } &&
ffa0583f 26298 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26300 (eval $ac_try) 2>&5
26301 ac_status=$?
26302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26303 (exit $ac_status); }; } &&
26304 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
26305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26306 (eval $ac_try) 2>&5
26307 ac_status=$?
26308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26309 (exit $ac_status); }; }; then
26310 wx_cv_x11_xpm_h=yes
26311else
26312 echo "$as_me: failed program was:" >&5
26313sed 's/^/| /' conftest.$ac_ext >&5
26314
26315wx_cv_x11_xpm_h=no
26316
26317fi
ac1cb8d3 26318rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
26319
26320 CFLAGS=$save_CFLAGS
26321
26322
26323fi
26324echo "$as_me:$LINENO: result: $wx_cv_x11_xpm_h" >&5
26325echo "${ECHO_T}$wx_cv_x11_xpm_h" >&6
26326
26327 if test $wx_cv_x11_xpm_h = "yes"; then
26328 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXpm"
26329 cat >>confdefs.h <<\_ACEOF
26330#define wxHAVE_LIB_XPM 1
26331_ACEOF
26332
26333 else
26334 { echo "$as_me:$LINENO: WARNING: built-in less efficient XPM decoder will be used" >&5
26335echo "$as_me: WARNING: built-in less efficient XPM decoder will be used" >&2;}
26336 fi
26337 fi
26338
26339 fi
26340
26341 echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
26342echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6
26343if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
26344 echo $ECHO_N "(cached) $ECHO_C" >&6
26345else
26346 ac_check_lib_save_LIBS=$LIBS
26347LIBS="-lXext $GUI_TK_LIBRARY -lX11 $LIBS"
26348cat >conftest.$ac_ext <<_ACEOF
26349/* confdefs.h. */
26350_ACEOF
26351cat confdefs.h >>conftest.$ac_ext
26352cat >>conftest.$ac_ext <<_ACEOF
26353/* end confdefs.h. */
26354
26355/* Override any gcc2 internal prototype to avoid an error. */
26356#ifdef __cplusplus
26357extern "C"
26358#endif
26359/* We use char because int might match the return type of a gcc2
26360 builtin and then its argument prototype would still apply. */
26361char XShapeQueryExtension ();
26362int
26363main ()
26364{
26365XShapeQueryExtension ();
26366 ;
26367 return 0;
26368}
26369_ACEOF
26370rm -f conftest.$ac_objext conftest$ac_exeext
26371if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26372 (eval $ac_link) 2>conftest.er1
a848cd7e 26373 ac_status=$?
ac1cb8d3
VS
26374 grep -v '^ *+' conftest.er1 >conftest.err
26375 rm -f conftest.er1
26376 cat conftest.err >&5
a848cd7e
SC
26377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26378 (exit $ac_status); } &&
ffa0583f 26379 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26381 (eval $ac_try) 2>&5
26382 ac_status=$?
26383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26384 (exit $ac_status); }; } &&
26385 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26387 (eval $ac_try) 2>&5
26388 ac_status=$?
26389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26390 (exit $ac_status); }; }; then
26391 ac_cv_lib_Xext_XShapeQueryExtension=yes
26392else
26393 echo "$as_me: failed program was:" >&5
26394sed 's/^/| /' conftest.$ac_ext >&5
26395
26396ac_cv_lib_Xext_XShapeQueryExtension=no
26397fi
ac1cb8d3
VS
26398rm -f conftest.err conftest.$ac_objext \
26399 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26400LIBS=$ac_check_lib_save_LIBS
26401fi
26402echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
26403echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6
26404if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
26405
26406 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXext"
26407 wxHAVE_XEXT_LIB=1
26408
26409fi
26410
26411
26412 if test "$wxHAVE_XEXT_LIB" = 1; then
26413 save_CFLAGS="$CFLAGS"
26414 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
26415
26416 echo "$as_me:$LINENO: checking for X11/extensions/shape.h" >&5
26417echo $ECHO_N "checking for X11/extensions/shape.h... $ECHO_C" >&6
26418 cat >conftest.$ac_ext <<_ACEOF
26419/* confdefs.h. */
26420_ACEOF
26421cat confdefs.h >>conftest.$ac_ext
26422cat >>conftest.$ac_ext <<_ACEOF
26423/* end confdefs.h. */
26424
26425 #include <X11/Xlib.h>
26426 #include <X11/extensions/shape.h>
26427
26428int
26429main ()
26430{
26431
26432 int dummy1, dummy2;
26433 XShapeQueryExtension((Display*)NULL,
26434 (int*)NULL, (int*)NULL);
26435
26436 ;
26437 return 0;
26438}
26439_ACEOF
26440rm -f conftest.$ac_objext
26441if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 26442 (eval $ac_compile) 2>conftest.er1
a848cd7e 26443 ac_status=$?
ac1cb8d3
VS
26444 grep -v '^ *+' conftest.er1 >conftest.err
26445 rm -f conftest.er1
26446 cat conftest.err >&5
a848cd7e
SC
26447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26448 (exit $ac_status); } &&
ffa0583f 26449 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26451 (eval $ac_try) 2>&5
26452 ac_status=$?
26453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26454 (exit $ac_status); }; } &&
26455 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
26456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26457 (eval $ac_try) 2>&5
26458 ac_status=$?
26459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26460 (exit $ac_status); }; }; then
26461
26462 cat >>confdefs.h <<\_ACEOF
26463#define HAVE_XSHAPE 1
26464_ACEOF
26465
26466 echo "$as_me:$LINENO: result: found" >&5
26467echo "${ECHO_T}found" >&6
26468
26469else
26470 echo "$as_me: failed program was:" >&5
26471sed 's/^/| /' conftest.$ac_ext >&5
26472
26473
26474 echo "$as_me:$LINENO: result: not found" >&5
26475echo "${ECHO_T}not found" >&6
26476
26477fi
ac1cb8d3 26478rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
26479 CFLAGS="$save_CFLAGS"
26480
26481 fi
26482 fi
26483
26484 if test "$wxUSE_MAC" = 1; then
26485 echo "$as_me:$LINENO: checking for compiler syntax to enable Pascal strings" >&5
26486echo $ECHO_N "checking for compiler syntax to enable Pascal strings... $ECHO_C" >&6
26487 if test "$GCC" = yes; then
26488 echo "$as_me:$LINENO: result: gcc" >&5
26489echo "${ECHO_T}gcc" >&6
26490 CPPFLAGS_PASCAL="-fpascal-strings"
26491 elif test "`echo $CXX | sed -e 's@.*/@@'`" = "xlC"; then
26492 echo "$as_me:$LINENO: result: xlc" >&5
26493echo "${ECHO_T}xlc" >&6
26494 CPPFLAGS_PASCAL="-qmacpstr"
26495 else
26496 echo "$as_me:$LINENO: result: none" >&5
26497echo "${ECHO_T}none" >&6
26498 fi
26499
26500 CPPFLAGS="$CPPFLAGS $CPPFLAGS_PASCAL -I\${top_srcdir}/src/mac/carbon/morefilex -I/Developer/Headers/FlatCarbon"
26501
a848cd7e
SC
26502 TOOLKIT=MAC
26503 GUIDIST=MACX_DIST
dd21ced8 26504 WXBASEPORT="_carbon"
a848cd7e
SC
26505 fi
26506
26507 if test "$wxUSE_COCOA" = 1; then
a848cd7e
SC
26508 TOOLKIT=COCOA
26509 GUIDIST=COCOA_DIST
26510 fi
26511
26512 if test "$wxUSE_PM" = 1; then
26513 TOOLKIT=PM
de59c161
RD
26514 GUIDIST=PM_DIST
26515 echo "$as_me:$LINENO: checking for type SPBCDATA" >&5
26516echo $ECHO_N "checking for type SPBCDATA... $ECHO_C" >&6
26517if test "${wx_cv_spbcdata+set}" = set; then
26518 echo $ECHO_N "(cached) $ECHO_C" >&6
26519else
26520
26521 cat >conftest.$ac_ext <<_ACEOF
de59c161
RD
26522/* confdefs.h. */
26523_ACEOF
26524cat confdefs.h >>conftest.$ac_ext
26525cat >>conftest.$ac_ext <<_ACEOF
26526/* end confdefs.h. */
26527
26528 #define INCL_PM
26529 #include <os2.h>
26530
26531int
26532main ()
26533{
26534
26535 SPBCDATA test;
26536
26537 ;
26538 return 0;
26539}
26540_ACEOF
26541rm -f conftest.$ac_objext
26542if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 26543 (eval $ac_compile) 2>conftest.er1
de59c161 26544 ac_status=$?
ac1cb8d3
VS
26545 grep -v '^ *+' conftest.er1 >conftest.err
26546 rm -f conftest.er1
26547 cat conftest.err >&5
de59c161
RD
26548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26549 (exit $ac_status); } &&
ffa0583f 26550 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26552 (eval $ac_try) 2>&5
26553 ac_status=$?
26554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26555 (exit $ac_status); }; } &&
26556 { ac_try='test -s conftest.$ac_objext'
de59c161
RD
26557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26558 (eval $ac_try) 2>&5
26559 ac_status=$?
26560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26561 (exit $ac_status); }; }; then
26562 wx_cv_spbcdata=yes
26563else
26564 echo "$as_me: failed program was:" >&5
26565sed 's/^/| /' conftest.$ac_ext >&5
26566
26567wx_cv_spbcdata=no
26568
26569fi
ac1cb8d3 26570rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
de59c161
RD
26571
26572
26573fi
26574echo "$as_me:$LINENO: result: $wx_cv_spbcdata" >&5
26575echo "${ECHO_T}$wx_cv_spbcdata" >&6
26576
26577 if test $wx_cv_spbcdata = "yes"; then
26578 cat >>confdefs.h <<\_ACEOF
26579#define HAVE_SPBCDATA 1
26580_ACEOF
26581
26582 fi
a848cd7e
SC
26583 fi
26584
26585 if test "$TOOLKIT" = "PM" ; then
26586 TOOLKIT_DIR="os2"
26587 else
26588 TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"`
26589 fi
26590
a848cd7e 26591 if test "$wxUSE_UNIVERSAL" = "yes"; then
a848cd7e
SC
26592 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__"
26593 WIDGET_SET=univ
a848cd7e
SC
26594 fi
26595
26596 GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST"
26597 DISTDIR="wx\$(TOOLKIT)"
26598else
26599 USE_GUI=0
26600
26601 TOOLKIT_DIR="base"
26602
26603 if test "$USE_WIN32" = 1 ; then
a848cd7e 26604 TOOLKIT="MSW"
a848cd7e
SC
26605 fi
26606
a848cd7e
SC
26607 GUIDIST="BASE_DIST"
26608 DISTDIR="wxBase"
26609fi
26610
26611
26612
26613
26614IODBC_C_SRC=""
26615
26616
26617if test "$TOOLKIT" != "MSW" ; then
26618
26619 if test "$wxUSE_ODBC" = "sys" -o "$wxUSE_ODBC" = "yes" ; then
26620
26621 if test "${ac_cv_header_sql_h+set}" = set; then
26622 echo "$as_me:$LINENO: checking for sql.h" >&5
26623echo $ECHO_N "checking for sql.h... $ECHO_C" >&6
26624if test "${ac_cv_header_sql_h+set}" = set; then
26625 echo $ECHO_N "(cached) $ECHO_C" >&6
26626fi
26627echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
26628echo "${ECHO_T}$ac_cv_header_sql_h" >&6
26629else
26630 # Is the header compilable?
26631echo "$as_me:$LINENO: checking sql.h usability" >&5
26632echo $ECHO_N "checking sql.h usability... $ECHO_C" >&6
26633cat >conftest.$ac_ext <<_ACEOF
26634/* confdefs.h. */
26635_ACEOF
26636cat confdefs.h >>conftest.$ac_ext
26637cat >>conftest.$ac_ext <<_ACEOF
26638/* end confdefs.h. */
26639$ac_includes_default
26640#include <sql.h>
26641_ACEOF
26642rm -f conftest.$ac_objext
26643if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 26644 (eval $ac_compile) 2>conftest.er1
a848cd7e 26645 ac_status=$?
ac1cb8d3
VS
26646 grep -v '^ *+' conftest.er1 >conftest.err
26647 rm -f conftest.er1
26648 cat conftest.err >&5
a848cd7e
SC
26649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26650 (exit $ac_status); } &&
ffa0583f 26651 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26653 (eval $ac_try) 2>&5
26654 ac_status=$?
26655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26656 (exit $ac_status); }; } &&
26657 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
26658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26659 (eval $ac_try) 2>&5
26660 ac_status=$?
26661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26662 (exit $ac_status); }; }; then
26663 ac_header_compiler=yes
26664else
26665 echo "$as_me: failed program was:" >&5
26666sed 's/^/| /' conftest.$ac_ext >&5
26667
26668ac_header_compiler=no
26669fi
ac1cb8d3 26670rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
26671echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26672echo "${ECHO_T}$ac_header_compiler" >&6
26673
26674# Is the header present?
26675echo "$as_me:$LINENO: checking sql.h presence" >&5
26676echo $ECHO_N "checking sql.h presence... $ECHO_C" >&6
26677cat >conftest.$ac_ext <<_ACEOF
26678/* confdefs.h. */
26679_ACEOF
26680cat confdefs.h >>conftest.$ac_ext
26681cat >>conftest.$ac_ext <<_ACEOF
26682/* end confdefs.h. */
26683#include <sql.h>
26684_ACEOF
26685if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26686 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26687 ac_status=$?
26688 grep -v '^ *+' conftest.er1 >conftest.err
26689 rm -f conftest.er1
26690 cat conftest.err >&5
26691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26692 (exit $ac_status); } >/dev/null; then
26693 if test -s conftest.err; then
26694 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 26695 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
26696 else
26697 ac_cpp_err=
26698 fi
26699else
26700 ac_cpp_err=yes
26701fi
26702if test -z "$ac_cpp_err"; then
26703 ac_header_preproc=yes
26704else
26705 echo "$as_me: failed program was:" >&5
26706sed 's/^/| /' conftest.$ac_ext >&5
26707
26708 ac_header_preproc=no
26709fi
26710rm -f conftest.err conftest.$ac_ext
26711echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26712echo "${ECHO_T}$ac_header_preproc" >&6
26713
26714# So? What about this header?
ac1cb8d3
VS
26715case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26716 yes:no: )
a848cd7e
SC
26717 { echo "$as_me:$LINENO: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&5
26718echo "$as_me: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
26719 { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the compiler's result" >&5
26720echo "$as_me: WARNING: sql.h: proceeding with the compiler's result" >&2;}
26721 ac_header_preproc=yes
a848cd7e 26722 ;;
ac1cb8d3 26723 no:yes:* )
a848cd7e
SC
26724 { echo "$as_me:$LINENO: WARNING: sql.h: present but cannot be compiled" >&5
26725echo "$as_me: WARNING: sql.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
26726 { echo "$as_me:$LINENO: WARNING: sql.h: check for missing prerequisite headers?" >&5
26727echo "$as_me: WARNING: sql.h: check for missing prerequisite headers?" >&2;}
26728 { echo "$as_me:$LINENO: WARNING: sql.h: see the Autoconf documentation" >&5
26729echo "$as_me: WARNING: sql.h: see the Autoconf documentation" >&2;}
26730 { echo "$as_me:$LINENO: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&5
26731echo "$as_me: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
26732 { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the preprocessor's result" >&5
26733echo "$as_me: WARNING: sql.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
26734 { echo "$as_me:$LINENO: WARNING: sql.h: in the future, the compiler will take precedence" >&5
26735echo "$as_me: WARNING: sql.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
26736 (
26737 cat <<\_ASBOX
ac1cb8d3
VS
26738## ----------------------------------------- ##
26739## Report this to wx-dev@lists.wxwidgets.org ##
26740## ----------------------------------------- ##
a848cd7e
SC
26741_ASBOX
26742 ) |
26743 sed "s/^/$as_me: WARNING: /" >&2
26744 ;;
26745esac
26746echo "$as_me:$LINENO: checking for sql.h" >&5
26747echo $ECHO_N "checking for sql.h... $ECHO_C" >&6
26748if test "${ac_cv_header_sql_h+set}" = set; then
26749 echo $ECHO_N "(cached) $ECHO_C" >&6
26750else
26751 ac_cv_header_sql_h=$ac_header_preproc
26752fi
26753echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
26754echo "${ECHO_T}$ac_cv_header_sql_h" >&6
26755
26756fi
26757if test $ac_cv_header_sql_h = yes; then
26758 found_sql_h=1
26759fi
26760
26761
26762 if test "x$found_sql_h" = "x1" ; then
26763 echo "$as_me:$LINENO: checking for SQLAllocEnv in -liodbc" >&5
26764echo $ECHO_N "checking for SQLAllocEnv in -liodbc... $ECHO_C" >&6
26765if test "${ac_cv_lib_iodbc_SQLAllocEnv+set}" = set; then
26766 echo $ECHO_N "(cached) $ECHO_C" >&6
26767else
26768 ac_check_lib_save_LIBS=$LIBS
26769LIBS="-liodbc $LIBS"
26770cat >conftest.$ac_ext <<_ACEOF
26771/* confdefs.h. */
26772_ACEOF
26773cat confdefs.h >>conftest.$ac_ext
26774cat >>conftest.$ac_ext <<_ACEOF
26775/* end confdefs.h. */
26776
26777/* Override any gcc2 internal prototype to avoid an error. */
26778#ifdef __cplusplus
26779extern "C"
26780#endif
26781/* We use char because int might match the return type of a gcc2
26782 builtin and then its argument prototype would still apply. */
26783char SQLAllocEnv ();
26784int
26785main ()
26786{
26787SQLAllocEnv ();
26788 ;
26789 return 0;
26790}
26791_ACEOF
26792rm -f conftest.$ac_objext conftest$ac_exeext
26793if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26794 (eval $ac_link) 2>conftest.er1
a848cd7e 26795 ac_status=$?
ac1cb8d3
VS
26796 grep -v '^ *+' conftest.er1 >conftest.err
26797 rm -f conftest.er1
26798 cat conftest.err >&5
a848cd7e
SC
26799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26800 (exit $ac_status); } &&
ffa0583f 26801 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26803 (eval $ac_try) 2>&5
26804 ac_status=$?
26805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26806 (exit $ac_status); }; } &&
26807 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26809 (eval $ac_try) 2>&5
26810 ac_status=$?
26811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26812 (exit $ac_status); }; }; then
26813 ac_cv_lib_iodbc_SQLAllocEnv=yes
26814else
26815 echo "$as_me: failed program was:" >&5
26816sed 's/^/| /' conftest.$ac_ext >&5
26817
26818ac_cv_lib_iodbc_SQLAllocEnv=no
26819fi
ac1cb8d3
VS
26820rm -f conftest.err conftest.$ac_objext \
26821 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26822LIBS=$ac_check_lib_save_LIBS
26823fi
26824echo "$as_me:$LINENO: result: $ac_cv_lib_iodbc_SQLAllocEnv" >&5
26825echo "${ECHO_T}$ac_cv_lib_iodbc_SQLAllocEnv" >&6
26826if test $ac_cv_lib_iodbc_SQLAllocEnv = yes; then
26827 ODBC_LINK=" -liodbc"
26828else
26829
26830 echo "$as_me:$LINENO: checking for SQLAllocEnv in -lunixodbc" >&5
26831echo $ECHO_N "checking for SQLAllocEnv in -lunixodbc... $ECHO_C" >&6
26832if test "${ac_cv_lib_unixodbc_SQLAllocEnv+set}" = set; then
26833 echo $ECHO_N "(cached) $ECHO_C" >&6
26834else
26835 ac_check_lib_save_LIBS=$LIBS
26836LIBS="-lunixodbc $LIBS"
26837cat >conftest.$ac_ext <<_ACEOF
26838/* confdefs.h. */
26839_ACEOF
26840cat confdefs.h >>conftest.$ac_ext
26841cat >>conftest.$ac_ext <<_ACEOF
26842/* end confdefs.h. */
26843
26844/* Override any gcc2 internal prototype to avoid an error. */
26845#ifdef __cplusplus
26846extern "C"
26847#endif
26848/* We use char because int might match the return type of a gcc2
26849 builtin and then its argument prototype would still apply. */
26850char SQLAllocEnv ();
26851int
26852main ()
26853{
26854SQLAllocEnv ();
26855 ;
26856 return 0;
26857}
26858_ACEOF
26859rm -f conftest.$ac_objext conftest$ac_exeext
26860if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26861 (eval $ac_link) 2>conftest.er1
a848cd7e 26862 ac_status=$?
ac1cb8d3
VS
26863 grep -v '^ *+' conftest.er1 >conftest.err
26864 rm -f conftest.er1
26865 cat conftest.err >&5
a848cd7e
SC
26866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26867 (exit $ac_status); } &&
ffa0583f 26868 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26870 (eval $ac_try) 2>&5
26871 ac_status=$?
26872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26873 (exit $ac_status); }; } &&
26874 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26876 (eval $ac_try) 2>&5
26877 ac_status=$?
26878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26879 (exit $ac_status); }; }; then
26880 ac_cv_lib_unixodbc_SQLAllocEnv=yes
26881else
26882 echo "$as_me: failed program was:" >&5
26883sed 's/^/| /' conftest.$ac_ext >&5
26884
26885ac_cv_lib_unixodbc_SQLAllocEnv=no
26886fi
ac1cb8d3
VS
26887rm -f conftest.err conftest.$ac_objext \
26888 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26889LIBS=$ac_check_lib_save_LIBS
26890fi
26891echo "$as_me:$LINENO: result: $ac_cv_lib_unixodbc_SQLAllocEnv" >&5
26892echo "${ECHO_T}$ac_cv_lib_unixodbc_SQLAllocEnv" >&6
26893if test $ac_cv_lib_unixodbc_SQLAllocEnv = yes; then
26894 ODBC_LINK=" -lunixodbc"
26895else
26896
26897 echo "$as_me:$LINENO: checking for SQLAllocEnv in -lodbc" >&5
26898echo $ECHO_N "checking for SQLAllocEnv in -lodbc... $ECHO_C" >&6
26899if test "${ac_cv_lib_odbc_SQLAllocEnv+set}" = set; then
26900 echo $ECHO_N "(cached) $ECHO_C" >&6
26901else
26902 ac_check_lib_save_LIBS=$LIBS
26903LIBS="-lodbc $LIBS"
26904cat >conftest.$ac_ext <<_ACEOF
26905/* confdefs.h. */
26906_ACEOF
26907cat confdefs.h >>conftest.$ac_ext
26908cat >>conftest.$ac_ext <<_ACEOF
26909/* end confdefs.h. */
26910
26911/* Override any gcc2 internal prototype to avoid an error. */
26912#ifdef __cplusplus
26913extern "C"
26914#endif
26915/* We use char because int might match the return type of a gcc2
26916 builtin and then its argument prototype would still apply. */
26917char SQLAllocEnv ();
26918int
26919main ()
26920{
26921SQLAllocEnv ();
26922 ;
26923 return 0;
26924}
26925_ACEOF
26926rm -f conftest.$ac_objext conftest$ac_exeext
26927if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26928 (eval $ac_link) 2>conftest.er1
a848cd7e 26929 ac_status=$?
ac1cb8d3
VS
26930 grep -v '^ *+' conftest.er1 >conftest.err
26931 rm -f conftest.er1
26932 cat conftest.err >&5
a848cd7e
SC
26933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26934 (exit $ac_status); } &&
ffa0583f 26935 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26937 (eval $ac_try) 2>&5
26938 ac_status=$?
26939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26940 (exit $ac_status); }; } &&
26941 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26943 (eval $ac_try) 2>&5
26944 ac_status=$?
26945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26946 (exit $ac_status); }; }; then
26947 ac_cv_lib_odbc_SQLAllocEnv=yes
26948else
26949 echo "$as_me: failed program was:" >&5
26950sed 's/^/| /' conftest.$ac_ext >&5
26951
26952ac_cv_lib_odbc_SQLAllocEnv=no
26953fi
ac1cb8d3
VS
26954rm -f conftest.err conftest.$ac_objext \
26955 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26956LIBS=$ac_check_lib_save_LIBS
26957fi
26958echo "$as_me:$LINENO: result: $ac_cv_lib_odbc_SQLAllocEnv" >&5
26959echo "${ECHO_T}$ac_cv_lib_odbc_SQLAllocEnv" >&6
26960if test $ac_cv_lib_odbc_SQLAllocEnv = yes; then
26961 ODBC_LINK=" -lodbc"
26962fi
26963
26964
26965fi
26966
26967
26968fi
26969
26970 fi
26971 if test "x$ODBC_LINK" = "x" ; then
26972 if test "$wxUSE_ODBC" = "sys" ; then
26973 { { echo "$as_me:$LINENO: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&5
26974echo "$as_me: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&2;}
26975 { (exit 1); exit 1; }; }
26976 else
26977 { echo "$as_me:$LINENO: WARNING: system ODBC library not found, will use built-in instead" >&5
26978echo "$as_me: WARNING: system ODBC library not found, will use built-in instead" >&2;}
26979 wxUSE_ODBC=builtin
26980 fi
26981 else
26982 wxUSE_ODBC=sys
26983 fi
26984 fi
26985 if test "$wxUSE_ODBC" != "no" ; then
26986 cat >>confdefs.h <<\_ACEOF
26987#define wxUSE_ODBC 1
26988_ACEOF
26989
26990 if test "$wxUSE_ODBC" = "builtin" ; then
26991 cat >>confdefs.h <<\_ACEOF
26992#define wxUSE_BUILTIN_IODBC 1
26993_ACEOF
26994
26995 fi
26996 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db"
26997
26998 WXODBCFLAG="-D_IODBC_"
26999 fi
27000fi
27001
a848cd7e 27002
01cb68df 27003
a848cd7e 27004if test "$wxUSE_DISPLAY" = "yes"; then
2a5d7a98 27005 if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_MAC" != 1 -a "$wxUSE_COCOA" != 1; then
a848cd7e
SC
27006 echo "$as_me:$LINENO: checking for Xinerama" >&5
27007echo $ECHO_N "checking for Xinerama... $ECHO_C" >&6
27008
27009ac_find_libraries=
27010for ac_dir in $SEARCH_LIB /usr/lib;
27011 do
27012 for ac_extension in a so sl dylib; do
27013 if test -f "$ac_dir/libXinerama.$ac_extension"; then
27014 ac_find_libraries=$ac_dir
27015 break 2
27016 fi
27017 done
27018 done
27019
27020 if test "$ac_find_libraries" != "" ; then
27021
27022 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
27023 result=$?
27024 if test $result = 0; then
27025 ac_path_to_link=""
27026 else
27027 ac_path_to_link=" -L$ac_find_libraries"
27028 fi
27029
27030 if test "$ac_path_to_link" != " -L/usr/lib" ; then
27031 LDFLAGS="$LDFLAGS $ac_path_to_link"
27032 fi
27033 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXinerama"
27034 echo "$as_me:$LINENO: result: yes" >&5
27035echo "${ECHO_T}yes" >&6
27036
27037 echo "$as_me:$LINENO: checking for Xxf86vm extension" >&5
27038echo $ECHO_N "checking for Xxf86vm extension... $ECHO_C" >&6
27039
27040ac_find_libraries=
27041for ac_dir in $SEARCH_LIB /usr/lib;
27042 do
27043 for ac_extension in a so sl dylib; do
27044 if test -f "$ac_dir/libXxf86vm.$ac_extension"; then
27045 ac_find_libraries=$ac_dir
27046 break 2
27047 fi
27048 done
27049 done
27050
27051 if test "$ac_find_libraries" != "" ; then
27052 echo "$as_me:$LINENO: result: yes" >&5
27053echo "${ECHO_T}yes" >&6
27054
27055for ac_header in X11/extensions/xf86vmode.h
27056do
27057as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27058echo "$as_me:$LINENO: checking for $ac_header" >&5
27059echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27060if eval "test \"\${$as_ac_Header+set}\" = set"; then
27061 echo $ECHO_N "(cached) $ECHO_C" >&6
27062else
27063 cat >conftest.$ac_ext <<_ACEOF
27064/* confdefs.h. */
27065_ACEOF
27066cat confdefs.h >>conftest.$ac_ext
27067cat >>conftest.$ac_ext <<_ACEOF
27068/* end confdefs.h. */
27069
27070 #if HAVE_X11_XLIB_H
27071 #include <X11/Xlib.h>
27072 #endif
27073
27074
27075#include <$ac_header>
27076_ACEOF
27077rm -f conftest.$ac_objext
27078if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 27079 (eval $ac_compile) 2>conftest.er1
a848cd7e 27080 ac_status=$?
ac1cb8d3
VS
27081 grep -v '^ *+' conftest.er1 >conftest.err
27082 rm -f conftest.er1
27083 cat conftest.err >&5
a848cd7e
SC
27084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27085 (exit $ac_status); } &&
ffa0583f 27086 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
27087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27088 (eval $ac_try) 2>&5
27089 ac_status=$?
27090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27091 (exit $ac_status); }; } &&
27092 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
27093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27094 (eval $ac_try) 2>&5
27095 ac_status=$?
27096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27097 (exit $ac_status); }; }; then
27098 eval "$as_ac_Header=yes"
27099else
27100 echo "$as_me: failed program was:" >&5
27101sed 's/^/| /' conftest.$ac_ext >&5
27102
27103eval "$as_ac_Header=no"
27104fi
ac1cb8d3 27105rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
27106fi
27107echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27108echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27109if test `eval echo '${'$as_ac_Header'}'` = yes; then
27110 cat >>confdefs.h <<_ACEOF
27111#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27112_ACEOF
27113
27114 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXxf86vm"
27115
27116fi
27117
27118done
27119
27120 else
27121 echo "$as_me:$LINENO: result: no" >&5
27122echo "${ECHO_T}no" >&6
27123 fi
27124
27125 else
27126 echo "$as_me:$LINENO: result: no" >&5
27127echo "${ECHO_T}no" >&6
dcc1b6ad
VS
27128 { echo "$as_me:$LINENO: WARNING: Xinerama not found; disabling wxDisplay" >&5
27129echo "$as_me: WARNING: Xinerama not found; disabling wxDisplay" >&2;}
a848cd7e
SC
27130 wxUSE_DISPLAY="no"
27131 fi
01cb68df
RG
27132 elif test "$wxUSE_MSW" = 1; then
27133
27134
27135for ac_header in multimon.h ddraw.h
27136do
27137as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27138if eval "test \"\${$as_ac_Header+set}\" = set"; then
27139 echo "$as_me:$LINENO: checking for $ac_header" >&5
27140echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27141if eval "test \"\${$as_ac_Header+set}\" = set"; then
27142 echo $ECHO_N "(cached) $ECHO_C" >&6
27143fi
27144echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27145echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27146else
27147 # Is the header compilable?
27148echo "$as_me:$LINENO: checking $ac_header usability" >&5
27149echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
27150cat >conftest.$ac_ext <<_ACEOF
27151/* confdefs.h. */
27152_ACEOF
27153cat confdefs.h >>conftest.$ac_ext
27154cat >>conftest.$ac_ext <<_ACEOF
27155/* end confdefs.h. */
27156$ac_includes_default
27157#include <$ac_header>
27158_ACEOF
27159rm -f conftest.$ac_objext
27160if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 27161 (eval $ac_compile) 2>conftest.er1
01cb68df 27162 ac_status=$?
ac1cb8d3
VS
27163 grep -v '^ *+' conftest.er1 >conftest.err
27164 rm -f conftest.er1
27165 cat conftest.err >&5
01cb68df
RG
27166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27167 (exit $ac_status); } &&
ffa0583f 27168 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
27169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27170 (eval $ac_try) 2>&5
27171 ac_status=$?
27172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27173 (exit $ac_status); }; } &&
27174 { ac_try='test -s conftest.$ac_objext'
01cb68df
RG
27175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27176 (eval $ac_try) 2>&5
27177 ac_status=$?
27178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27179 (exit $ac_status); }; }; then
27180 ac_header_compiler=yes
27181else
27182 echo "$as_me: failed program was:" >&5
27183sed 's/^/| /' conftest.$ac_ext >&5
27184
27185ac_header_compiler=no
27186fi
ac1cb8d3 27187rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
01cb68df
RG
27188echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27189echo "${ECHO_T}$ac_header_compiler" >&6
27190
27191# Is the header present?
27192echo "$as_me:$LINENO: checking $ac_header presence" >&5
27193echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
27194cat >conftest.$ac_ext <<_ACEOF
27195/* confdefs.h. */
27196_ACEOF
27197cat confdefs.h >>conftest.$ac_ext
27198cat >>conftest.$ac_ext <<_ACEOF
27199/* end confdefs.h. */
27200#include <$ac_header>
27201_ACEOF
27202if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27203 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27204 ac_status=$?
27205 grep -v '^ *+' conftest.er1 >conftest.err
27206 rm -f conftest.er1
27207 cat conftest.err >&5
27208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27209 (exit $ac_status); } >/dev/null; then
27210 if test -s conftest.err; then
27211 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 27212 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
01cb68df
RG
27213 else
27214 ac_cpp_err=
27215 fi
27216else
27217 ac_cpp_err=yes
27218fi
27219if test -z "$ac_cpp_err"; then
27220 ac_header_preproc=yes
27221else
27222 echo "$as_me: failed program was:" >&5
27223sed 's/^/| /' conftest.$ac_ext >&5
27224
27225 ac_header_preproc=no
27226fi
27227rm -f conftest.err conftest.$ac_ext
27228echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27229echo "${ECHO_T}$ac_header_preproc" >&6
27230
27231# So? What about this header?
ac1cb8d3
VS
27232case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27233 yes:no: )
01cb68df
RG
27234 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27235echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
27236 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27237echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27238 ac_header_preproc=yes
01cb68df 27239 ;;
ac1cb8d3 27240 no:yes:* )
01cb68df
RG
27241 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27242echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
27243 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
27244echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
27245 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27246echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27247 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
27248echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
01cb68df
RG
27249 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27250echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
27251 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27252echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
01cb68df
RG
27253 (
27254 cat <<\_ASBOX
ac1cb8d3
VS
27255## ----------------------------------------- ##
27256## Report this to wx-dev@lists.wxwidgets.org ##
27257## ----------------------------------------- ##
01cb68df
RG
27258_ASBOX
27259 ) |
27260 sed "s/^/$as_me: WARNING: /" >&2
27261 ;;
27262esac
27263echo "$as_me:$LINENO: checking for $ac_header" >&5
27264echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27265if eval "test \"\${$as_ac_Header+set}\" = set"; then
27266 echo $ECHO_N "(cached) $ECHO_C" >&6
27267else
ac1cb8d3 27268 eval "$as_ac_Header=\$ac_header_preproc"
01cb68df
RG
27269fi
27270echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27271echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27272
27273fi
27274if test `eval echo '${'$as_ac_Header'}'` = yes; then
27275 cat >>confdefs.h <<_ACEOF
27276#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27277_ACEOF
27278
27279else
27280
27281 wxUSE_DISPLAY="no"
dcc1b6ad
VS
27282 { echo "$as_me:$LINENO: WARNING: ddraw.h or multimon.h not found; disabling wxDisplay" >&5
27283echo "$as_me: WARNING: ddraw.h or multimon.h not found; disabling wxDisplay" >&2;}
01cb68df
RG
27284
27285fi
27286
27287done
27288
a848cd7e
SC
27289 fi
27290fi
27291
27292
27293USE_OPENGL=0
27294if test "$wxUSE_OPENGL" = "yes"; then
27295 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = "1"; then
27296 OPENGL_LIBS="-framework OpenGL -framework AGL"
27297 elif test "$wxUSE_MSW" = 1; then
27298 OPENGL_LIBS="-lopengl32 -lglu32"
27299 else
27300
27301
27302ac_find_includes=
27303for ac_dir in $SEARCH_INCLUDE /usr/include;
27304 do
27305 if test -f "$ac_dir/GL/gl.h"; then
27306 ac_find_includes=$ac_dir
27307 break
27308 fi
27309 done
27310
27311 if test "$ac_find_includes" != "" ; then
27312 echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
27313echo "${ECHO_T}found in $ac_find_includes" >&6
27314
27315 if test "x$ac_find_includes" = "x/usr/include"; then
27316 ac_path_to_include=""
27317 else
27318 echo "$CPPFLAGS" | grep "\-I$ac_find_includes" > /dev/null
27319 result=$?
27320 if test $result = 0; then
27321 ac_path_to_include=""
27322 else
27323 ac_path_to_include=" -I$ac_find_includes"
27324 fi
27325 fi
27326
27327 CPPFLAGS="$CPPFLAGS$ac_path_to_include"
27328 fi
27329
27330 if test "${ac_cv_header_GL_gl_h+set}" = set; then
27331 echo "$as_me:$LINENO: checking for GL/gl.h" >&5
27332echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6
27333if test "${ac_cv_header_GL_gl_h+set}" = set; then
27334 echo $ECHO_N "(cached) $ECHO_C" >&6
27335fi
27336echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
27337echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6
27338else
27339 # Is the header compilable?
27340echo "$as_me:$LINENO: checking GL/gl.h usability" >&5
27341echo $ECHO_N "checking GL/gl.h usability... $ECHO_C" >&6
27342cat >conftest.$ac_ext <<_ACEOF
27343/* confdefs.h. */
27344_ACEOF
27345cat confdefs.h >>conftest.$ac_ext
27346cat >>conftest.$ac_ext <<_ACEOF
27347/* end confdefs.h. */
27348$ac_includes_default
27349#include <GL/gl.h>
27350_ACEOF
27351rm -f conftest.$ac_objext
27352if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 27353 (eval $ac_compile) 2>conftest.er1
a848cd7e 27354 ac_status=$?
ac1cb8d3
VS
27355 grep -v '^ *+' conftest.er1 >conftest.err
27356 rm -f conftest.er1
27357 cat conftest.err >&5
a848cd7e
SC
27358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27359 (exit $ac_status); } &&
ffa0583f 27360 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
27361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27362 (eval $ac_try) 2>&5
27363 ac_status=$?
27364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27365 (exit $ac_status); }; } &&
27366 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
27367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27368 (eval $ac_try) 2>&5
27369 ac_status=$?
27370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27371 (exit $ac_status); }; }; then
27372 ac_header_compiler=yes
27373else
27374 echo "$as_me: failed program was:" >&5
27375sed 's/^/| /' conftest.$ac_ext >&5
27376
27377ac_header_compiler=no
27378fi
ac1cb8d3 27379rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
27380echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27381echo "${ECHO_T}$ac_header_compiler" >&6
27382
27383# Is the header present?
27384echo "$as_me:$LINENO: checking GL/gl.h presence" >&5
27385echo $ECHO_N "checking GL/gl.h presence... $ECHO_C" >&6
27386cat >conftest.$ac_ext <<_ACEOF
27387/* confdefs.h. */
27388_ACEOF
27389cat confdefs.h >>conftest.$ac_ext
27390cat >>conftest.$ac_ext <<_ACEOF
27391/* end confdefs.h. */
27392#include <GL/gl.h>
27393_ACEOF
27394if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27395 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27396 ac_status=$?
27397 grep -v '^ *+' conftest.er1 >conftest.err
27398 rm -f conftest.er1
27399 cat conftest.err >&5
27400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27401 (exit $ac_status); } >/dev/null; then
27402 if test -s conftest.err; then
27403 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 27404 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
27405 else
27406 ac_cpp_err=
27407 fi
27408else
27409 ac_cpp_err=yes
27410fi
27411if test -z "$ac_cpp_err"; then
27412 ac_header_preproc=yes
27413else
27414 echo "$as_me: failed program was:" >&5
27415sed 's/^/| /' conftest.$ac_ext >&5
27416
27417 ac_header_preproc=no
27418fi
27419rm -f conftest.err conftest.$ac_ext
27420echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27421echo "${ECHO_T}$ac_header_preproc" >&6
27422
27423# So? What about this header?
ac1cb8d3
VS
27424case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27425 yes:no: )
a848cd7e
SC
27426 { echo "$as_me:$LINENO: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&5
27427echo "$as_me: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
27428 { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the compiler's result" >&5
27429echo "$as_me: WARNING: GL/gl.h: proceeding with the compiler's result" >&2;}
27430 ac_header_preproc=yes
a848cd7e 27431 ;;
ac1cb8d3 27432 no:yes:* )
a848cd7e
SC
27433 { echo "$as_me:$LINENO: WARNING: GL/gl.h: present but cannot be compiled" >&5
27434echo "$as_me: WARNING: GL/gl.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
27435 { echo "$as_me:$LINENO: WARNING: GL/gl.h: check for missing prerequisite headers?" >&5
27436echo "$as_me: WARNING: GL/gl.h: check for missing prerequisite headers?" >&2;}
27437 { echo "$as_me:$LINENO: WARNING: GL/gl.h: see the Autoconf documentation" >&5
27438echo "$as_me: WARNING: GL/gl.h: see the Autoconf documentation" >&2;}
27439 { echo "$as_me:$LINENO: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&5
27440echo "$as_me: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
27441 { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&5
27442echo "$as_me: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
27443 { echo "$as_me:$LINENO: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&5
27444echo "$as_me: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
27445 (
27446 cat <<\_ASBOX
ac1cb8d3
VS
27447## ----------------------------------------- ##
27448## Report this to wx-dev@lists.wxwidgets.org ##
27449## ----------------------------------------- ##
a848cd7e
SC
27450_ASBOX
27451 ) |
27452 sed "s/^/$as_me: WARNING: /" >&2
27453 ;;
27454esac
27455echo "$as_me:$LINENO: checking for GL/gl.h" >&5
27456echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6
27457if test "${ac_cv_header_GL_gl_h+set}" = set; then
27458 echo $ECHO_N "(cached) $ECHO_C" >&6
27459else
27460 ac_cv_header_GL_gl_h=$ac_header_preproc
27461fi
27462echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
27463echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6
27464
27465fi
27466if test $ac_cv_header_GL_gl_h = yes; then
27467
27468 found_gl=0
27469
27470 echo "$as_me:$LINENO: checking for -lGL" >&5
27471echo $ECHO_N "checking for -lGL... $ECHO_C" >&6
27472
27473ac_find_libraries=
27474for ac_dir in $SEARCH_LIB /usr/lib;
27475 do
27476 for ac_extension in a so sl dylib; do
27477 if test -f "$ac_dir/libGL.$ac_extension"; then
27478 ac_find_libraries=$ac_dir
27479 break 2
27480 fi
27481 done
27482 done
27483
27484 if test "$ac_find_libraries" != "" ; then
27485
27486 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
27487 result=$?
27488 if test $result = 0; then
27489 ac_path_to_link=""
27490 else
27491 ac_path_to_link=" -L$ac_find_libraries"
27492 fi
27493
27494 if test "$ac_path_to_link" != " -L/usr/lib" ; then
27495 LDFLAGS_GL="$ac_path_to_link"
27496 fi
27497
27498
27499ac_find_libraries=
27500for ac_dir in $SEARCH_LIB /usr/lib;
27501 do
27502 for ac_extension in a so sl dylib; do
27503 if test -f "$ac_dir/libGLU.$ac_extension"; then
27504 ac_find_libraries=$ac_dir
27505 break 2
27506 fi
27507 done
27508 done
27509
27510 if test "$ac_find_libraries" != "" ; then
27511
27512 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
27513 result=$?
27514 if test $result = 0; then
27515 ac_path_to_link=""
27516 else
27517 ac_path_to_link=" -L$ac_find_libraries"
27518 fi
27519
27520 if test "$ac_path_to_link" != " -L/usr/lib" -a \
27521 "$ac_path_to_link" != "$LDFLAGS_GL"; then
27522 LDFLAGS_GL="$LDFLAGS_GL$ac_path_to_link"
27523 fi
27524
27525 found_gl=1
27526 OPENGL_LIBS="-lGL -lGLU"
27527 echo "$as_me:$LINENO: result: yes" >&5
27528echo "${ECHO_T}yes" >&6
27529 fi
27530 fi
27531
27532 if test "$found_gl" != 1; then
27533 echo "$as_me:$LINENO: result: no" >&5
27534echo "${ECHO_T}no" >&6
27535 echo "$as_me:$LINENO: checking for -lMesaGL" >&5
27536echo $ECHO_N "checking for -lMesaGL... $ECHO_C" >&6
27537
27538ac_find_libraries=
27539for ac_dir in $SEARCH_LIB /usr/lib;
27540 do
27541 for ac_extension in a so sl dylib; do
27542 if test -f "$ac_dir/libMesaGL.$ac_extension"; then
27543 ac_find_libraries=$ac_dir
27544 break 2
27545 fi
27546 done
27547 done
27548
27549 if test "$ac_find_libraries" != "" ; then
27550
27551 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
27552 result=$?
27553 if test $result = 0; then
27554 ac_path_to_link=""
27555 else
27556 ac_path_to_link=" -L$ac_find_libraries"
27557 fi
27558
27559 LDFLAGS_GL="$LDFLAGS$ac_path_to_link"
27560 OPENGL_LIBS="-lMesaGL -lMesaGLU"
27561 echo "$as_me:$LINENO: result: yes" >&5
27562echo "${ECHO_T}yes" >&6
27563 else
27564 echo "$as_me:$LINENO: result: no" >&5
27565echo "${ECHO_T}no" >&6
27566 fi
27567 fi
27568
27569fi
27570
27571
27572
27573 if test "x$OPENGL_LIBS" = "x"; then
27574 { { echo "$as_me:$LINENO: error: OpenGL libraries not available" >&5
27575echo "$as_me: error: OpenGL libraries not available" >&2;}
27576 { (exit 1); exit 1; }; }
27577 fi
27578 fi
27579
27580 if test "$wxUSE_OPENGL" = "yes"; then
27581 USE_OPENGL=1
27582 cat >>confdefs.h <<\_ACEOF
27583#define wxUSE_OPENGL 1
27584_ACEOF
27585
27586 cat >>confdefs.h <<\_ACEOF
27587#define wxUSE_GLCANVAS 1
27588_ACEOF
27589
27590 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl opengl/cube opengl/penguin opengl/isosurf"
27591 fi
27592fi
27593
a848cd7e
SC
27594
27595if test -n "$TOOLKIT" ; then
27596 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WX${TOOLKIT}__"
27597fi
27598
a848cd7e
SC
27599
27600
27601if test "$wxUSE_SHARED" = "yes"; then
27602 case "${host}" in
27603 *-pc-msdosdjgpp )
27604 wxUSE_SHARED=no
27605 { echo "$as_me:$LINENO: WARNING: Host system doesn't support shared libraries, disabling" >&5
27606echo "$as_me: WARNING: Host system doesn't support shared libraries, disabling" >&2;}
27607 ;;
27608 esac
27609fi
27610
a848cd7e 27611if test "$wxUSE_SHARED" = "yes"; then
a848cd7e
SC
27612
27613
27614 found_versioning=no
27615
27616
27617 if test $found_versioning = no ; then
27618 echo "$as_me:$LINENO: checking if the linker accepts --version-script" >&5
27619echo $ECHO_N "checking if the linker accepts --version-script... $ECHO_C" >&6
27620if test "${wx_cv_version_script+set}" = set; then
27621 echo $ECHO_N "(cached) $ECHO_C" >&6
27622else
27623
27624 echo "VER_1 { *; };" >conftest.sym
27625 echo "int main() { return 0; }" >conftest.cpp
27626
27627 if { ac_try='
27628 $CXX -o conftest.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
27629 -Wl,--version-script,conftest.sym >/dev/null 2>conftest.stderr'
27630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27631 (eval $ac_try) 2>&5
27632 ac_status=$?
27633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27634 (exit $ac_status); }; } ; then
27635 if test -s conftest.stderr ; then
27636 wx_cv_version_script=no
27637 else
27638 wx_cv_version_script=yes
27639 fi
27640 else
27641 wx_cv_version_script=no
27642 fi
27643 rm -f conftest.output conftest.stderr conftest.sym conftest.cpp
27644
27645fi
27646echo "$as_me:$LINENO: result: $wx_cv_version_script" >&5
27647echo "${ECHO_T}$wx_cv_version_script" >&6
27648 if test $wx_cv_version_script = yes ; then
27649 LDFLAGS_VERSIONING="-Wl,--version-script,\$(top_builddir)version-script"
27650 fi
27651 fi
27652
27653
27654 case "${host}" in
27655 *-*-linux* | *-*-gnu* )
27656 SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib"
ffa0583f 27657 WXCONFIG_RPATH="-Wl,-rpath,\$libdir"
a848cd7e
SC
27658 ;;
27659
27660 *-*-solaris2* )
27661 if test "$GCC" = yes ; then
27662 CPPFLAGS="$CPPFLAGS -isystem /usr/openwin/include"
27663
27664 saveLdflags="$LDFLAGS"
27665 LDFLAGS="$saveLdflags -Wl,-rpath,/"
27666 echo "$as_me:$LINENO: checking if the linker accepts -rpath" >&5
27667echo $ECHO_N "checking if the linker accepts -rpath... $ECHO_C" >&6
27668 cat >conftest.$ac_ext <<_ACEOF
27669/* confdefs.h. */
27670_ACEOF
27671cat confdefs.h >>conftest.$ac_ext
27672cat >>conftest.$ac_ext <<_ACEOF
27673/* end confdefs.h. */
27674
27675int
27676main ()
27677{
27678
27679 ;
27680 return 0;
27681}
27682_ACEOF
27683rm -f conftest.$ac_objext conftest$ac_exeext
27684if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27685 (eval $ac_link) 2>conftest.er1
a848cd7e 27686 ac_status=$?
ac1cb8d3
VS
27687 grep -v '^ *+' conftest.er1 >conftest.err
27688 rm -f conftest.er1
27689 cat conftest.err >&5
a848cd7e
SC
27690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27691 (exit $ac_status); } &&
ffa0583f 27692 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
27693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27694 (eval $ac_try) 2>&5
27695 ac_status=$?
27696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27697 (exit $ac_status); }; } &&
27698 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27700 (eval $ac_try) 2>&5
27701 ac_status=$?
27702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27703 (exit $ac_status); }; }; then
27704
27705 echo "$as_me:$LINENO: result: yes" >&5
27706echo "${ECHO_T}yes" >&6
27707 SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib"
ffa0583f 27708 WXCONFIG_RPATH="-Wl,-rpath,\$libdir"
a848cd7e
SC
27709
27710else
27711 echo "$as_me: failed program was:" >&5
27712sed 's/^/| /' conftest.$ac_ext >&5
27713
27714
27715 echo "$as_me:$LINENO: result: no" >&5
27716echo "${ECHO_T}no" >&6
27717 echo "$as_me:$LINENO: checking if the linker accepts -R" >&5
27718echo $ECHO_N "checking if the linker accepts -R... $ECHO_C" >&6
27719 LDFLAGS="$saveLdflags -Wl,-R,/"
27720 cat >conftest.$ac_ext <<_ACEOF
27721/* confdefs.h. */
27722_ACEOF
27723cat confdefs.h >>conftest.$ac_ext
27724cat >>conftest.$ac_ext <<_ACEOF
27725/* end confdefs.h. */
27726
27727int
27728main ()
27729{
27730
27731 ;
27732 return 0;
27733}
27734_ACEOF
27735rm -f conftest.$ac_objext conftest$ac_exeext
27736if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27737 (eval $ac_link) 2>conftest.er1
a848cd7e 27738 ac_status=$?
ac1cb8d3
VS
27739 grep -v '^ *+' conftest.er1 >conftest.err
27740 rm -f conftest.er1
27741 cat conftest.err >&5
a848cd7e
SC
27742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27743 (exit $ac_status); } &&
ffa0583f 27744 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
27745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27746 (eval $ac_try) 2>&5
27747 ac_status=$?
27748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27749 (exit $ac_status); }; } &&
27750 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27752 (eval $ac_try) 2>&5
27753 ac_status=$?
27754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27755 (exit $ac_status); }; }; then
27756
ffa0583f 27757 echo "$as_me:$LINENO: result: yes" >&5
a848cd7e 27758echo "${ECHO_T}yes" >&6
ffa0583f
RL
27759 SAMPLES_RPATH_FLAG="-Wl,-R,\$(top_builddir)lib"
27760 WXCONFIG_RPATH="-Wl,-R,\$libdir"
27761
a848cd7e
SC
27762else
27763 echo "$as_me: failed program was:" >&5
27764sed 's/^/| /' conftest.$ac_ext >&5
27765
27766
27767 echo "$as_me:$LINENO: result: no" >&5
27768echo "${ECHO_T}no" >&6
27769
27770fi
ac1cb8d3
VS
27771rm -f conftest.err conftest.$ac_objext \
27772 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27773
27774fi
ac1cb8d3
VS
27775rm -f conftest.err conftest.$ac_objext \
27776 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27777 LDFLAGS="$saveLdflags"
27778 else
a848cd7e 27779 SAMPLES_RPATH_FLAG="-R\$(top_builddir)lib"
ffa0583f 27780 WXCONFIG_RPATH="-R\$libdir"
a848cd7e
SC
27781 fi
27782 ;;
27783
27784 powerpc-*-darwin* )
27785 SAMPLES_RPATH_POSTLINK="\$(top_builddir)change-install-names \$(LIBDIRNAME) \$(prefix) \$@"
27786 cat <<EOF >change-install-names
27787#!/bin/sh
27788libnames=\`cd \${1} ; ls -1 | grep '\.[0-9][0-9]*\.dylib\$'\`
27789inst_cmd="install_name_tool "
27790for i in \${libnames} ; do
27791 inst_cmd="\${inst_cmd} -change \${2}/lib/\${i} \${1}/\${i}"
27792done
27793\${inst_cmd} \${3}
27794EOF
27795 chmod +x change-install-names
27796 ;;
27797
27798 *-*-cygwin* | *-*-mingw32* )
27799 TOOLCHAIN_DLL_DEFS="${TOOLCHAIN_DLL_DEFS} -DWXUSINGDLL=1"
27800 ;;
27801
27802 esac
ceec2216 27803
ffa0583f
RL
27804 if test $wxUSE_RPATH = "no"; then
27805 SAMPLES_RPATH_FLAG=''
27806 SAMPLES_RPATH_POSTLINK=''
27807 WXCONFIG_RPATH=''
27808 fi
27809
27810 SHARED=1
27811
27812else
27813
ceec2216
RL
27814 config_linkage_component="-static"
27815 SHARED=0
ffa0583f 27816
ceec2216 27817fi
a848cd7e 27818
a848cd7e 27819
ceec2216
RL
27820UNICODE=0
27821lib_unicode_suffix=
27822WX_CHARTYPE="ansi"
27823if test "$wxUSE_UNICODE" = "yes"; then
27824 lib_unicode_suffix=u
27825 WX_CHARTYPE="unicode"
27826 UNICODE=1
a848cd7e
SC
27827fi
27828
ceec2216
RL
27829lib_debug_suffix=
27830WX_DEBUGTYPE="release"
27831DEBUG_FLAG=0
27832if test "$wxUSE_DEBUG_FLAG" = "yes"; then
27833 lib_debug_suffix=d
27834 WX_DEBUGTYPE="debug"
27835 DEBUG_FLAG=1
27836fi
a848cd7e 27837
ceec2216
RL
27838WX_FLAVOUR=${WX_FLAVOUR:+-$WX_FLAVOUR}
27839WX_LIB_FLAVOUR=`echo $WX_FLAVOUR | tr '-' '_'`
a848cd7e 27840
ceec2216
RL
27841DEBUG_INFO=0
27842if test "$wxUSE_DEBUG_INFO" = "yes"; then
27843 DEBUG_INFO=1
27844fi
a848cd7e 27845
ceec2216 27846WX_VERSION_TAG=`echo WX${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}_${WX_RELEASE} | tr "[a-z]" "[A-Z]"`
a848cd7e 27847
ceec2216 27848TOOLCHAIN_NAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}-${WX_RELEASE}"
a848cd7e 27849
ceec2216 27850TOOLCHAIN_FULLNAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}-${WX_CHARTYPE}-${WX_DEBUGTYPE}${config_linkage_component}-${WX_RELEASE}${WX_FLAVOUR}"
a848cd7e 27851
ceec2216
RL
27852if test "$cross_compiling" = "yes"; then
27853 HOST_SUFFIX="-$host_alias"
27854 TOOLCHAIN_NAME="$TOOLCHAIN_NAME$HOST_SUFFIX"
27855 TOOLCHAIN_FULLNAME="${host_alias}-$TOOLCHAIN_FULLNAME"
a848cd7e
SC
27856fi
27857
dd21ced8 27858WX_LIBRARY_BASENAME_NOGUI="wx_base${WXBASEPORT}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}"
ceec2216
RL
27859WX_LIBRARY_BASENAME_GUI="wx_${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}"
27860
27861
27862
a848cd7e 27863if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1; then
ceec2216
RL
27864 WX_RESOURCES_MACOSX_ASCII="libwx_${TOOLCHAIN_NAME}.${WX_CURRENT}.r"
27865 WX_RESOURCES_MACOSX_DATA="libwx_${TOOLCHAIN_NAME}.${WX_CURRENT}.rsrc"
27866
a848cd7e 27867 LIBWXMACRES="\$(top_builddir)lib/${WX_RESOURCES_MACOSX_ASCII}"
a848cd7e
SC
27868
27869 # Extract the first word of "Rez", so it can be a program name with args.
27870set dummy Rez; ac_word=$2
27871echo "$as_me:$LINENO: checking for $ac_word" >&5
27872echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
27873if test "${ac_cv_prog_RESCOMP+set}" = set; then
27874 echo $ECHO_N "(cached) $ECHO_C" >&6
27875else
27876 if test -n "$RESCOMP"; then
27877 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
27878else
27879as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27880for as_dir in $PATH
27881do
27882 IFS=$as_save_IFS
27883 test -z "$as_dir" && as_dir=.
27884 for ac_exec_ext in '' $ac_executable_extensions; do
27885 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27886 ac_cv_prog_RESCOMP="Rez"
27887 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27888 break 2
27889 fi
27890done
27891done
27892
27893 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez"
27894fi
27895fi
27896RESCOMP=$ac_cv_prog_RESCOMP
27897if test -n "$RESCOMP"; then
27898 echo "$as_me:$LINENO: result: $RESCOMP" >&5
27899echo "${ECHO_T}$RESCOMP" >&6
27900else
27901 echo "$as_me:$LINENO: result: no" >&5
27902echo "${ECHO_T}no" >&6
27903fi
27904
27905 # Extract the first word of "DeRez", so it can be a program name with args.
27906set dummy DeRez; ac_word=$2
27907echo "$as_me:$LINENO: checking for $ac_word" >&5
27908echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
27909if test "${ac_cv_prog_DEREZ+set}" = set; then
27910 echo $ECHO_N "(cached) $ECHO_C" >&6
27911else
27912 if test -n "$DEREZ"; then
27913 ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test.
27914else
27915as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27916for as_dir in $PATH
27917do
27918 IFS=$as_save_IFS
27919 test -z "$as_dir" && as_dir=.
27920 for ac_exec_ext in '' $ac_executable_extensions; do
27921 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27922 ac_cv_prog_DEREZ="DeRez"
27923 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27924 break 2
27925 fi
27926done
27927done
27928
27929 test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez"
27930fi
27931fi
27932DEREZ=$ac_cv_prog_DEREZ
27933if test -n "$DEREZ"; then
27934 echo "$as_me:$LINENO: result: $DEREZ" >&5
27935echo "${ECHO_T}$DEREZ" >&6
27936else
27937 echo "$as_me:$LINENO: result: no" >&5
27938echo "${ECHO_T}no" >&6
27939fi
27940
27941 # Extract the first word of "SetFile", so it can be a program name with args.
27942set dummy SetFile; ac_word=$2
27943echo "$as_me:$LINENO: checking for $ac_word" >&5
27944echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
27945if test "${ac_cv_prog_SETFILE+set}" = set; then
27946 echo $ECHO_N "(cached) $ECHO_C" >&6
27947else
27948 if test -n "$SETFILE"; then
27949 ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
27950else
27951as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27952for as_dir in $PATH
27953do
27954 IFS=$as_save_IFS
27955 test -z "$as_dir" && as_dir=.
27956 for ac_exec_ext in '' $ac_executable_extensions; do
27957 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27958 ac_cv_prog_SETFILE="SetFile"
27959 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27960 break 2
27961 fi
27962done
27963done
27964
27965 test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
27966fi
27967fi
27968SETFILE=$ac_cv_prog_SETFILE
27969if test -n "$SETFILE"; then
27970 echo "$as_me:$LINENO: result: $SETFILE" >&5
27971echo "${ECHO_T}$SETFILE" >&6
27972else
27973 echo "$as_me:$LINENO: result: no" >&5
27974echo "${ECHO_T}no" >&6
27975fi
27976
27977
27978 MACSETFILE="\$(SETFILE)"
27979
27980 if test "$wxUSE_MAC" = 1; then
27981 MACRESCOMP="\$(RESCOMP) -d __DARWIN__ -t APPL Carbon.r ${LIBWXMACRES} -o"
27982
27983 MACRESWXCONFIG="${RESCOMP} -d __DARWIN__ -t APPL Carbon.r \\\${exec_prefix}/lib/${WX_RESOURCES_MACOSX_ASCII} -o"
27984 else
27985 MACRESCOMP="echo -n | \$(RESCOMP) -d __DARWIN__ -t APPL ${LIBWXMACRES} -o"
27986 MACRESWXCONFIG="echo -n \\\| ${RESCOMP} -d __DARWIN__ -t APPL \\\${exec_prefix}/lib/${WX_RESOURCES_MACOSX_ASCII} -o"
27987 fi
27988else
ffa0583f
RL
27989 MACSETFILE="@true"
27990 MACRESWXCONFIG="@true"
a848cd7e
SC
27991
27992 if test "$wxUSE_PM" = 1; then
27993 MACRESCOMP="emxbind -ep"
27994 else
ffa0583f 27995 MACRESCOMP="@true"
a848cd7e
SC
27996 fi
27997fi
27998
27999
28000
28001echo "$as_me:$LINENO: checking for mode_t" >&5
28002echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
28003if test "${ac_cv_type_mode_t+set}" = set; then
28004 echo $ECHO_N "(cached) $ECHO_C" >&6
28005else
28006 cat >conftest.$ac_ext <<_ACEOF
28007/* confdefs.h. */
28008_ACEOF
28009cat confdefs.h >>conftest.$ac_ext
28010cat >>conftest.$ac_ext <<_ACEOF
28011/* end confdefs.h. */
28012$ac_includes_default
28013int
28014main ()
28015{
28016if ((mode_t *) 0)
28017 return 0;
28018if (sizeof (mode_t))
28019 return 0;
28020 ;
28021 return 0;
28022}
28023_ACEOF
28024rm -f conftest.$ac_objext
28025if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 28026 (eval $ac_compile) 2>conftest.er1
a848cd7e 28027 ac_status=$?
ac1cb8d3
VS
28028 grep -v '^ *+' conftest.er1 >conftest.err
28029 rm -f conftest.er1
28030 cat conftest.err >&5
a848cd7e
SC
28031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28032 (exit $ac_status); } &&
ffa0583f 28033 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28035 (eval $ac_try) 2>&5
28036 ac_status=$?
28037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28038 (exit $ac_status); }; } &&
28039 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
28040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28041 (eval $ac_try) 2>&5
28042 ac_status=$?
28043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28044 (exit $ac_status); }; }; then
28045 ac_cv_type_mode_t=yes
28046else
28047 echo "$as_me: failed program was:" >&5
28048sed 's/^/| /' conftest.$ac_ext >&5
28049
28050ac_cv_type_mode_t=no
28051fi
ac1cb8d3 28052rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
28053fi
28054echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
28055echo "${ECHO_T}$ac_cv_type_mode_t" >&6
28056if test $ac_cv_type_mode_t = yes; then
28057 :
28058else
28059
28060cat >>confdefs.h <<_ACEOF
28061#define mode_t int
28062_ACEOF
28063
28064fi
28065
28066echo "$as_me:$LINENO: checking for off_t" >&5
28067echo $ECHO_N "checking for off_t... $ECHO_C" >&6
28068if test "${ac_cv_type_off_t+set}" = set; then
28069 echo $ECHO_N "(cached) $ECHO_C" >&6
28070else
28071 cat >conftest.$ac_ext <<_ACEOF
28072/* confdefs.h. */
28073_ACEOF
28074cat confdefs.h >>conftest.$ac_ext
28075cat >>conftest.$ac_ext <<_ACEOF
28076/* end confdefs.h. */
28077$ac_includes_default
28078int
28079main ()
28080{
28081if ((off_t *) 0)
28082 return 0;
28083if (sizeof (off_t))
28084 return 0;
28085 ;
28086 return 0;
28087}
28088_ACEOF
28089rm -f conftest.$ac_objext
28090if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 28091 (eval $ac_compile) 2>conftest.er1
a848cd7e 28092 ac_status=$?
ac1cb8d3
VS
28093 grep -v '^ *+' conftest.er1 >conftest.err
28094 rm -f conftest.er1
28095 cat conftest.err >&5
a848cd7e
SC
28096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28097 (exit $ac_status); } &&
ffa0583f 28098 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28100 (eval $ac_try) 2>&5
28101 ac_status=$?
28102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28103 (exit $ac_status); }; } &&
28104 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
28105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28106 (eval $ac_try) 2>&5
28107 ac_status=$?
28108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28109 (exit $ac_status); }; }; then
28110 ac_cv_type_off_t=yes
28111else
28112 echo "$as_me: failed program was:" >&5
28113sed 's/^/| /' conftest.$ac_ext >&5
28114
28115ac_cv_type_off_t=no
28116fi
ac1cb8d3 28117rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
28118fi
28119echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
28120echo "${ECHO_T}$ac_cv_type_off_t" >&6
28121if test $ac_cv_type_off_t = yes; then
28122 :
28123else
28124
28125cat >>confdefs.h <<_ACEOF
28126#define off_t long
28127_ACEOF
28128
28129fi
28130
28131echo "$as_me:$LINENO: checking for pid_t" >&5
28132echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
28133if test "${ac_cv_type_pid_t+set}" = set; then
28134 echo $ECHO_N "(cached) $ECHO_C" >&6
28135else
28136 cat >conftest.$ac_ext <<_ACEOF
28137/* confdefs.h. */
28138_ACEOF
28139cat confdefs.h >>conftest.$ac_ext
28140cat >>conftest.$ac_ext <<_ACEOF
28141/* end confdefs.h. */
28142$ac_includes_default
28143int
28144main ()
28145{
28146if ((pid_t *) 0)
28147 return 0;
28148if (sizeof (pid_t))
28149 return 0;
28150 ;
28151 return 0;
28152}
28153_ACEOF
28154rm -f conftest.$ac_objext
28155if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 28156 (eval $ac_compile) 2>conftest.er1
a848cd7e 28157 ac_status=$?
ac1cb8d3
VS
28158 grep -v '^ *+' conftest.er1 >conftest.err
28159 rm -f conftest.er1
28160 cat conftest.err >&5
a848cd7e
SC
28161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28162 (exit $ac_status); } &&
ffa0583f 28163 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28165 (eval $ac_try) 2>&5
28166 ac_status=$?
28167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28168 (exit $ac_status); }; } &&
28169 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
28170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28171 (eval $ac_try) 2>&5
28172 ac_status=$?
28173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28174 (exit $ac_status); }; }; then
28175 ac_cv_type_pid_t=yes
28176else
28177 echo "$as_me: failed program was:" >&5
28178sed 's/^/| /' conftest.$ac_ext >&5
28179
28180ac_cv_type_pid_t=no
28181fi
ac1cb8d3 28182rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
28183fi
28184echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
28185echo "${ECHO_T}$ac_cv_type_pid_t" >&6
28186if test $ac_cv_type_pid_t = yes; then
28187 :
28188else
28189
28190cat >>confdefs.h <<_ACEOF
28191#define pid_t int
28192_ACEOF
28193
28194fi
28195
28196echo "$as_me:$LINENO: checking for size_t" >&5
28197echo $ECHO_N "checking for size_t... $ECHO_C" >&6
28198if test "${ac_cv_type_size_t+set}" = set; then
28199 echo $ECHO_N "(cached) $ECHO_C" >&6
28200else
28201 cat >conftest.$ac_ext <<_ACEOF
28202/* confdefs.h. */
28203_ACEOF
28204cat confdefs.h >>conftest.$ac_ext
28205cat >>conftest.$ac_ext <<_ACEOF
28206/* end confdefs.h. */
28207$ac_includes_default
28208int
28209main ()
28210{
28211if ((size_t *) 0)
28212 return 0;
28213if (sizeof (size_t))
28214 return 0;
28215 ;
28216 return 0;
28217}
28218_ACEOF
28219rm -f conftest.$ac_objext
28220if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 28221 (eval $ac_compile) 2>conftest.er1
a848cd7e 28222 ac_status=$?
ac1cb8d3
VS
28223 grep -v '^ *+' conftest.er1 >conftest.err
28224 rm -f conftest.er1
28225 cat conftest.err >&5
a848cd7e
SC
28226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28227 (exit $ac_status); } &&
ffa0583f 28228 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28230 (eval $ac_try) 2>&5
28231 ac_status=$?
28232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28233 (exit $ac_status); }; } &&
28234 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
28235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28236 (eval $ac_try) 2>&5
28237 ac_status=$?
28238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28239 (exit $ac_status); }; }; then
28240 ac_cv_type_size_t=yes
28241else
28242 echo "$as_me: failed program was:" >&5
28243sed 's/^/| /' conftest.$ac_ext >&5
28244
28245ac_cv_type_size_t=no
28246fi
ac1cb8d3 28247rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
28248fi
28249echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
28250echo "${ECHO_T}$ac_cv_type_size_t" >&6
28251if test $ac_cv_type_size_t = yes; then
28252 :
28253else
28254
28255cat >>confdefs.h <<_ACEOF
28256#define size_t unsigned
28257_ACEOF
28258
28259fi
28260
28261echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
28262echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
28263if test "${ac_cv_type_uid_t+set}" = set; then
28264 echo $ECHO_N "(cached) $ECHO_C" >&6
28265else
28266 cat >conftest.$ac_ext <<_ACEOF
28267/* confdefs.h. */
28268_ACEOF
28269cat confdefs.h >>conftest.$ac_ext
28270cat >>conftest.$ac_ext <<_ACEOF
28271/* end confdefs.h. */
28272#include <sys/types.h>
28273
28274_ACEOF
28275if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28276 $EGREP "uid_t" >/dev/null 2>&1; then
28277 ac_cv_type_uid_t=yes
28278else
28279 ac_cv_type_uid_t=no
28280fi
28281rm -f conftest*
28282
28283fi
28284echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
28285echo "${ECHO_T}$ac_cv_type_uid_t" >&6
28286if test $ac_cv_type_uid_t = no; then
28287
28288cat >>confdefs.h <<\_ACEOF
28289#define uid_t int
28290_ACEOF
28291
28292
28293cat >>confdefs.h <<\_ACEOF
28294#define gid_t int
28295_ACEOF
28296
28297fi
28298
28299
28300
28301
28302ac_ext=cc
28303ac_cpp='$CXXCPP $CPPFLAGS'
28304ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28305ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28306ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28307
28308echo "$as_me:$LINENO: checking if size_t is unsigned int" >&5
28309echo $ECHO_N "checking if size_t is unsigned int... $ECHO_C" >&6
28310if test "${wx_cv_size_t_is_uint+set}" = set; then
28311 echo $ECHO_N "(cached) $ECHO_C" >&6
28312else
28313
28314 cat >conftest.$ac_ext <<_ACEOF
28315/* confdefs.h. */
28316_ACEOF
28317cat confdefs.h >>conftest.$ac_ext
28318cat >>conftest.$ac_ext <<_ACEOF
28319/* end confdefs.h. */
28320#include <stddef.h>
28321int
28322main ()
28323{
28324
28325 return 0; }
28326
28327 struct Foo { void foo(size_t); void foo(unsigned int); };
28328
28329 int bar() {
28330
28331 ;
28332 return 0;
28333}
28334_ACEOF
28335rm -f conftest.$ac_objext
28336if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 28337 (eval $ac_compile) 2>conftest.er1
a848cd7e 28338 ac_status=$?
ac1cb8d3
VS
28339 grep -v '^ *+' conftest.er1 >conftest.err
28340 rm -f conftest.er1
28341 cat conftest.err >&5
a848cd7e
SC
28342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28343 (exit $ac_status); } &&
ffa0583f 28344 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28346 (eval $ac_try) 2>&5
28347 ac_status=$?
28348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28349 (exit $ac_status); }; } &&
28350 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
28351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28352 (eval $ac_try) 2>&5
28353 ac_status=$?
28354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28355 (exit $ac_status); }; }; then
28356 wx_cv_size_t_is_uint=no
28357else
28358 echo "$as_me: failed program was:" >&5
28359sed 's/^/| /' conftest.$ac_ext >&5
28360
28361wx_cv_size_t_is_uint=yes
28362
28363fi
ac1cb8d3 28364rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
28365
28366
28367fi
28368echo "$as_me:$LINENO: result: $wx_cv_size_t_is_uint" >&5
28369echo "${ECHO_T}$wx_cv_size_t_is_uint" >&6
28370
28371if test "$wx_cv_size_t_is_uint" = "yes"; then
28372 cat >>confdefs.h <<\_ACEOF
28373#define wxSIZE_T_IS_UINT 1
28374_ACEOF
28375
28376else
28377 echo "$as_me:$LINENO: checking if size_t is unsigned long" >&5
28378echo $ECHO_N "checking if size_t is unsigned long... $ECHO_C" >&6
28379if test "${wx_cv_size_t_is_ulong+set}" = set; then
28380 echo $ECHO_N "(cached) $ECHO_C" >&6
28381else
28382 cat >conftest.$ac_ext <<_ACEOF
28383/* confdefs.h. */
28384_ACEOF
28385cat confdefs.h >>conftest.$ac_ext
28386cat >>conftest.$ac_ext <<_ACEOF
28387/* end confdefs.h. */
28388#include <stddef.h>
28389int
28390main ()
28391{
28392
28393 return 0; }
28394
28395 struct Foo { void foo(size_t); void foo(unsigned long); };
28396
28397 int bar() {
28398
28399 ;
28400 return 0;
28401}
28402_ACEOF
28403rm -f conftest.$ac_objext
28404if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 28405 (eval $ac_compile) 2>conftest.er1
a848cd7e 28406 ac_status=$?
ac1cb8d3
VS
28407 grep -v '^ *+' conftest.er1 >conftest.err
28408 rm -f conftest.er1
28409 cat conftest.err >&5
a848cd7e
SC
28410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28411 (exit $ac_status); } &&
ffa0583f 28412 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28414 (eval $ac_try) 2>&5
28415 ac_status=$?
28416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28417 (exit $ac_status); }; } &&
28418 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
28419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28420 (eval $ac_try) 2>&5
28421 ac_status=$?
28422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28423 (exit $ac_status); }; }; then
28424 wx_cv_size_t_is_ulong=no
28425else
28426 echo "$as_me: failed program was:" >&5
28427sed 's/^/| /' conftest.$ac_ext >&5
28428
28429wx_cv_size_t_is_ulong=yes
28430
28431fi
ac1cb8d3 28432rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
28433
28434fi
28435echo "$as_me:$LINENO: result: $wx_cv_size_t_is_ulong" >&5
28436echo "${ECHO_T}$wx_cv_size_t_is_ulong" >&6
28437
28438 if test "$wx_cv_size_t_is_ulong" = "yes"; then
28439 cat >>confdefs.h <<\_ACEOF
28440#define wxSIZE_T_IS_ULONG 1
28441_ACEOF
28442
28443 fi
28444fi
28445
28446ac_ext=c
28447ac_cpp='$CPP $CPPFLAGS'
28448ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28449ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28450ac_compiler_gnu=$ac_cv_c_compiler_gnu
28451
28452
28453
28454echo "$as_me:$LINENO: checking for pw_gecos in struct passwd" >&5
28455echo $ECHO_N "checking for pw_gecos in struct passwd... $ECHO_C" >&6
28456if test "${wx_cv_struct_pw_gecos+set}" = set; then
28457 echo $ECHO_N "(cached) $ECHO_C" >&6
28458else
28459
28460 cat >conftest.$ac_ext <<_ACEOF
28461/* confdefs.h. */
28462_ACEOF
28463cat confdefs.h >>conftest.$ac_ext
28464cat >>conftest.$ac_ext <<_ACEOF
28465/* end confdefs.h. */
28466#include <pwd.h>
28467int
28468main ()
28469{
28470
28471 char *p;
28472 struct passwd *pw;
28473 p = pw->pw_gecos;
28474
28475 ;
28476 return 0;
28477}
28478_ACEOF
28479rm -f conftest.$ac_objext
28480if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 28481 (eval $ac_compile) 2>conftest.er1
a848cd7e 28482 ac_status=$?
ac1cb8d3
VS
28483 grep -v '^ *+' conftest.er1 >conftest.err
28484 rm -f conftest.er1
28485 cat conftest.err >&5
a848cd7e
SC
28486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28487 (exit $ac_status); } &&
ffa0583f 28488 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28490 (eval $ac_try) 2>&5
28491 ac_status=$?
28492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28493 (exit $ac_status); }; } &&
28494 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
28495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28496 (eval $ac_try) 2>&5
28497 ac_status=$?
28498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28499 (exit $ac_status); }; }; then
28500
28501 wx_cv_struct_pw_gecos=yes
28502
28503else
28504 echo "$as_me: failed program was:" >&5
28505sed 's/^/| /' conftest.$ac_ext >&5
28506
28507
28508 wx_cv_struct_pw_gecos=no
28509
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_struct_pw_gecos" >&5
28517echo "${ECHO_T}$wx_cv_struct_pw_gecos" >&6
28518
28519if test "$wx_cv_struct_pw_gecos" = "yes"; then
28520 cat >>confdefs.h <<\_ACEOF
28521#define HAVE_PW_GECOS 1
28522_ACEOF
28523
28524fi
28525
28526
28527if test "$wx_cv_sizeof_wchar_t" != "0"; then
28528 cat >>confdefs.h <<\_ACEOF
28529#define wxUSE_WCHAR_T 1
28530_ACEOF
28531
28532
28533 WCSLEN_FOUND=0
28534 WCHAR_LINK=
28535
28536for ac_func in wcslen
28537do
28538as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28539echo "$as_me:$LINENO: checking for $ac_func" >&5
28540echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28541if eval "test \"\${$as_ac_var+set}\" = set"; then
28542 echo $ECHO_N "(cached) $ECHO_C" >&6
28543else
28544 cat >conftest.$ac_ext <<_ACEOF
28545/* confdefs.h. */
28546_ACEOF
28547cat confdefs.h >>conftest.$ac_ext
28548cat >>conftest.$ac_ext <<_ACEOF
28549/* end confdefs.h. */
ac1cb8d3
VS
28550/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28551 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28552#define $ac_func innocuous_$ac_func
28553
a848cd7e
SC
28554/* System header to define __stub macros and hopefully few prototypes,
28555 which can conflict with char $ac_func (); below.
28556 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28557 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 28558
a848cd7e
SC
28559#ifdef __STDC__
28560# include <limits.h>
28561#else
28562# include <assert.h>
28563#endif
ac1cb8d3
VS
28564
28565#undef $ac_func
28566
a848cd7e
SC
28567/* Override any gcc2 internal prototype to avoid an error. */
28568#ifdef __cplusplus
28569extern "C"
28570{
28571#endif
28572/* We use char because int might match the return type of a gcc2
28573 builtin and then its argument prototype would still apply. */
28574char $ac_func ();
28575/* The GNU C library defines this for functions which it implements
28576 to always fail with ENOSYS. Some functions are actually named
28577 something starting with __ and the normal name is an alias. */
28578#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28579choke me
28580#else
28581char (*f) () = $ac_func;
28582#endif
28583#ifdef __cplusplus
28584}
28585#endif
28586
28587int
28588main ()
28589{
28590return f != $ac_func;
28591 ;
28592 return 0;
28593}
28594_ACEOF
28595rm -f conftest.$ac_objext conftest$ac_exeext
28596if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28597 (eval $ac_link) 2>conftest.er1
a848cd7e 28598 ac_status=$?
ac1cb8d3
VS
28599 grep -v '^ *+' conftest.er1 >conftest.err
28600 rm -f conftest.er1
28601 cat conftest.err >&5
a848cd7e
SC
28602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28603 (exit $ac_status); } &&
ffa0583f 28604 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28606 (eval $ac_try) 2>&5
28607 ac_status=$?
28608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28609 (exit $ac_status); }; } &&
28610 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28612 (eval $ac_try) 2>&5
28613 ac_status=$?
28614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28615 (exit $ac_status); }; }; then
28616 eval "$as_ac_var=yes"
28617else
28618 echo "$as_me: failed program was:" >&5
28619sed 's/^/| /' conftest.$ac_ext >&5
28620
28621eval "$as_ac_var=no"
28622fi
ac1cb8d3
VS
28623rm -f conftest.err conftest.$ac_objext \
28624 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28625fi
28626echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28627echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28628if test `eval echo '${'$as_ac_var'}'` = yes; then
28629 cat >>confdefs.h <<_ACEOF
28630#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28631_ACEOF
28632 WCSLEN_FOUND=1
28633fi
28634done
28635
28636
28637 if test "$WCSLEN_FOUND" = 0; then
28638 if test "$TOOLKIT" = "MSW"; then
28639 echo "$as_me:$LINENO: checking for wcslen in -lmsvcrt" >&5
28640echo $ECHO_N "checking for wcslen in -lmsvcrt... $ECHO_C" >&6
28641if test "${ac_cv_lib_msvcrt_wcslen+set}" = set; then
28642 echo $ECHO_N "(cached) $ECHO_C" >&6
28643else
28644 ac_check_lib_save_LIBS=$LIBS
28645LIBS="-lmsvcrt $LIBS"
28646cat >conftest.$ac_ext <<_ACEOF
28647/* confdefs.h. */
28648_ACEOF
28649cat confdefs.h >>conftest.$ac_ext
28650cat >>conftest.$ac_ext <<_ACEOF
28651/* end confdefs.h. */
28652
28653/* Override any gcc2 internal prototype to avoid an error. */
28654#ifdef __cplusplus
28655extern "C"
28656#endif
28657/* We use char because int might match the return type of a gcc2
28658 builtin and then its argument prototype would still apply. */
28659char wcslen ();
28660int
28661main ()
28662{
28663wcslen ();
28664 ;
28665 return 0;
28666}
28667_ACEOF
28668rm -f conftest.$ac_objext conftest$ac_exeext
28669if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28670 (eval $ac_link) 2>conftest.er1
a848cd7e 28671 ac_status=$?
ac1cb8d3
VS
28672 grep -v '^ *+' conftest.er1 >conftest.err
28673 rm -f conftest.er1
28674 cat conftest.err >&5
a848cd7e
SC
28675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28676 (exit $ac_status); } &&
ffa0583f 28677 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28679 (eval $ac_try) 2>&5
28680 ac_status=$?
28681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28682 (exit $ac_status); }; } &&
28683 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28685 (eval $ac_try) 2>&5
28686 ac_status=$?
28687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28688 (exit $ac_status); }; }; then
28689 ac_cv_lib_msvcrt_wcslen=yes
28690else
28691 echo "$as_me: failed program was:" >&5
28692sed 's/^/| /' conftest.$ac_ext >&5
28693
28694ac_cv_lib_msvcrt_wcslen=no
28695fi
ac1cb8d3
VS
28696rm -f conftest.err conftest.$ac_objext \
28697 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28698LIBS=$ac_check_lib_save_LIBS
28699fi
28700echo "$as_me:$LINENO: result: $ac_cv_lib_msvcrt_wcslen" >&5
28701echo "${ECHO_T}$ac_cv_lib_msvcrt_wcslen" >&6
28702if test $ac_cv_lib_msvcrt_wcslen = yes; then
28703 WCHAR_OK=1
28704fi
28705
28706 else
28707 echo "$as_me:$LINENO: checking for wcslen in -lw" >&5
28708echo $ECHO_N "checking for wcslen in -lw... $ECHO_C" >&6
28709if test "${ac_cv_lib_w_wcslen+set}" = set; then
28710 echo $ECHO_N "(cached) $ECHO_C" >&6
28711else
28712 ac_check_lib_save_LIBS=$LIBS
28713LIBS="-lw $LIBS"
28714cat >conftest.$ac_ext <<_ACEOF
28715/* confdefs.h. */
28716_ACEOF
28717cat confdefs.h >>conftest.$ac_ext
28718cat >>conftest.$ac_ext <<_ACEOF
28719/* end confdefs.h. */
28720
28721/* Override any gcc2 internal prototype to avoid an error. */
28722#ifdef __cplusplus
28723extern "C"
28724#endif
28725/* We use char because int might match the return type of a gcc2
28726 builtin and then its argument prototype would still apply. */
28727char wcslen ();
28728int
28729main ()
28730{
28731wcslen ();
28732 ;
28733 return 0;
28734}
28735_ACEOF
28736rm -f conftest.$ac_objext conftest$ac_exeext
28737if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28738 (eval $ac_link) 2>conftest.er1
a848cd7e 28739 ac_status=$?
ac1cb8d3
VS
28740 grep -v '^ *+' conftest.er1 >conftest.err
28741 rm -f conftest.er1
28742 cat conftest.err >&5
a848cd7e
SC
28743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28744 (exit $ac_status); } &&
ffa0583f 28745 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28747 (eval $ac_try) 2>&5
28748 ac_status=$?
28749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28750 (exit $ac_status); }; } &&
28751 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28753 (eval $ac_try) 2>&5
28754 ac_status=$?
28755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28756 (exit $ac_status); }; }; then
28757 ac_cv_lib_w_wcslen=yes
28758else
28759 echo "$as_me: failed program was:" >&5
28760sed 's/^/| /' conftest.$ac_ext >&5
28761
28762ac_cv_lib_w_wcslen=no
28763fi
ac1cb8d3
VS
28764rm -f conftest.err conftest.$ac_objext \
28765 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28766LIBS=$ac_check_lib_save_LIBS
28767fi
28768echo "$as_me:$LINENO: result: $ac_cv_lib_w_wcslen" >&5
28769echo "${ECHO_T}$ac_cv_lib_w_wcslen" >&6
28770if test $ac_cv_lib_w_wcslen = yes; then
28771
28772 WCHAR_LINK=" -lw"
28773 WCSLEN_FOUND=1
28774
28775fi
28776
28777 fi
28778 fi
28779
28780 if test "$WCSLEN_FOUND" = 1; then
28781 cat >>confdefs.h <<\_ACEOF
28782#define HAVE_WCSLEN 1
28783_ACEOF
28784
28785 fi
28786
473276a9
VS
28787 if test "$USE_HPUX" = 1 -a "x$GCC" != "xyes"; then
28788 CPPFLAGS="$CPPFLAGS -D_INCLUDE__STDC_A1_SOURCE "
28789 fi
28790
a848cd7e
SC
28791
28792for ac_func in wcsrtombs
28793do
28794as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28795echo "$as_me:$LINENO: checking for $ac_func" >&5
28796echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28797if eval "test \"\${$as_ac_var+set}\" = set"; then
28798 echo $ECHO_N "(cached) $ECHO_C" >&6
28799else
28800 cat >conftest.$ac_ext <<_ACEOF
28801/* confdefs.h. */
28802_ACEOF
28803cat confdefs.h >>conftest.$ac_ext
28804cat >>conftest.$ac_ext <<_ACEOF
28805/* end confdefs.h. */
ac1cb8d3
VS
28806/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28807 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28808#define $ac_func innocuous_$ac_func
28809
a848cd7e
SC
28810/* System header to define __stub macros and hopefully few prototypes,
28811 which can conflict with char $ac_func (); below.
28812 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28813 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 28814
a848cd7e
SC
28815#ifdef __STDC__
28816# include <limits.h>
28817#else
28818# include <assert.h>
28819#endif
ac1cb8d3
VS
28820
28821#undef $ac_func
28822
a848cd7e
SC
28823/* Override any gcc2 internal prototype to avoid an error. */
28824#ifdef __cplusplus
28825extern "C"
28826{
28827#endif
28828/* We use char because int might match the return type of a gcc2
28829 builtin and then its argument prototype would still apply. */
28830char $ac_func ();
28831/* The GNU C library defines this for functions which it implements
28832 to always fail with ENOSYS. Some functions are actually named
28833 something starting with __ and the normal name is an alias. */
28834#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28835choke me
28836#else
28837char (*f) () = $ac_func;
28838#endif
28839#ifdef __cplusplus
28840}
28841#endif
28842
28843int
28844main ()
28845{
28846return f != $ac_func;
28847 ;
28848 return 0;
28849}
28850_ACEOF
28851rm -f conftest.$ac_objext conftest$ac_exeext
28852if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28853 (eval $ac_link) 2>conftest.er1
a848cd7e 28854 ac_status=$?
ac1cb8d3
VS
28855 grep -v '^ *+' conftest.er1 >conftest.err
28856 rm -f conftest.er1
28857 cat conftest.err >&5
a848cd7e
SC
28858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28859 (exit $ac_status); } &&
ffa0583f 28860 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28862 (eval $ac_try) 2>&5
28863 ac_status=$?
28864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28865 (exit $ac_status); }; } &&
28866 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28868 (eval $ac_try) 2>&5
28869 ac_status=$?
28870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28871 (exit $ac_status); }; }; then
28872 eval "$as_ac_var=yes"
28873else
28874 echo "$as_me: failed program was:" >&5
28875sed 's/^/| /' conftest.$ac_ext >&5
28876
28877eval "$as_ac_var=no"
28878fi
ac1cb8d3
VS
28879rm -f conftest.err conftest.$ac_objext \
28880 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28881fi
28882echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28883echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28884if test `eval echo '${'$as_ac_var'}'` = yes; then
28885 cat >>confdefs.h <<_ACEOF
28886#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28887_ACEOF
28888
28889fi
28890done
28891
28892else
28893 { echo "$as_me:$LINENO: WARNING: Wide character support is unavailable" >&5
28894echo "$as_me: WARNING: Wide character support is unavailable" >&2;}
28895fi
28896
28897
28898
28899ac_ext=cc
28900ac_cpp='$CXXCPP $CPPFLAGS'
28901ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28902ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28903ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28904
28905
28906
28907for ac_func in vsnprintf
28908do
28909as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28910echo "$as_me:$LINENO: checking for $ac_func" >&5
28911echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28912if eval "test \"\${$as_ac_var+set}\" = set"; then
28913 echo $ECHO_N "(cached) $ECHO_C" >&6
28914else
28915 cat >conftest.$ac_ext <<_ACEOF
28916/* confdefs.h. */
28917_ACEOF
28918cat confdefs.h >>conftest.$ac_ext
28919cat >>conftest.$ac_ext <<_ACEOF
28920/* end confdefs.h. */
ac1cb8d3
VS
28921/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28922 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28923#define $ac_func innocuous_$ac_func
28924
a848cd7e
SC
28925/* System header to define __stub macros and hopefully few prototypes,
28926 which can conflict with char $ac_func (); below.
28927 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28928 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 28929
a848cd7e
SC
28930#ifdef __STDC__
28931# include <limits.h>
28932#else
28933# include <assert.h>
28934#endif
ac1cb8d3
VS
28935
28936#undef $ac_func
28937
a848cd7e
SC
28938/* Override any gcc2 internal prototype to avoid an error. */
28939#ifdef __cplusplus
28940extern "C"
28941{
28942#endif
28943/* We use char because int might match the return type of a gcc2
28944 builtin and then its argument prototype would still apply. */
28945char $ac_func ();
28946/* The GNU C library defines this for functions which it implements
28947 to always fail with ENOSYS. Some functions are actually named
28948 something starting with __ and the normal name is an alias. */
28949#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28950choke me
28951#else
28952char (*f) () = $ac_func;
28953#endif
28954#ifdef __cplusplus
28955}
28956#endif
28957
28958int
28959main ()
28960{
28961return f != $ac_func;
28962 ;
28963 return 0;
28964}
28965_ACEOF
28966rm -f conftest.$ac_objext conftest$ac_exeext
28967if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28968 (eval $ac_link) 2>conftest.er1
a848cd7e 28969 ac_status=$?
ac1cb8d3
VS
28970 grep -v '^ *+' conftest.er1 >conftest.err
28971 rm -f conftest.er1
28972 cat conftest.err >&5
a848cd7e
SC
28973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28974 (exit $ac_status); } &&
ffa0583f 28975 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28977 (eval $ac_try) 2>&5
28978 ac_status=$?
28979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28980 (exit $ac_status); }; } &&
28981 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28983 (eval $ac_try) 2>&5
28984 ac_status=$?
28985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28986 (exit $ac_status); }; }; then
28987 eval "$as_ac_var=yes"
28988else
28989 echo "$as_me: failed program was:" >&5
28990sed 's/^/| /' conftest.$ac_ext >&5
28991
28992eval "$as_ac_var=no"
28993fi
ac1cb8d3
VS
28994rm -f conftest.err conftest.$ac_objext \
28995 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28996fi
28997echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28998echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28999if test `eval echo '${'$as_ac_var'}'` = yes; then
29000 cat >>confdefs.h <<_ACEOF
29001#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29002_ACEOF
29003
29004fi
29005done
29006
29007
29008if test "$ac_cv_func_vsnprintf" = "yes"; then
29009 echo "$as_me:$LINENO: checking for vsnprintf declaration" >&5
29010echo $ECHO_N "checking for vsnprintf declaration... $ECHO_C" >&6
29011if test "${wx_cv_func_vsnprintf_decl+set}" = set; then
29012 echo $ECHO_N "(cached) $ECHO_C" >&6
29013else
29014
29015 cat >conftest.$ac_ext <<_ACEOF
29016/* confdefs.h. */
29017_ACEOF
29018cat confdefs.h >>conftest.$ac_ext
29019cat >>conftest.$ac_ext <<_ACEOF
29020/* end confdefs.h. */
29021
29022 #include <stdio.h>
29023 #include <stdarg.h>
29024
29025int
29026main ()
29027{
29028
29029 char *buf;
29030 va_list ap;
29031 vsnprintf(buf, 10u, "%s", ap);
29032
29033 ;
29034 return 0;
29035}
29036_ACEOF
29037rm -f conftest.$ac_objext
29038if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 29039 (eval $ac_compile) 2>conftest.er1
a848cd7e 29040 ac_status=$?
ac1cb8d3
VS
29041 grep -v '^ *+' conftest.er1 >conftest.err
29042 rm -f conftest.er1
29043 cat conftest.err >&5
a848cd7e
SC
29044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29045 (exit $ac_status); } &&
ffa0583f 29046 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29048 (eval $ac_try) 2>&5
29049 ac_status=$?
29050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29051 (exit $ac_status); }; } &&
29052 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
29053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29054 (eval $ac_try) 2>&5
29055 ac_status=$?
29056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29057 (exit $ac_status); }; }; then
29058 wx_cv_func_vsnprintf_decl=yes
29059else
29060 echo "$as_me: failed program was:" >&5
29061sed 's/^/| /' conftest.$ac_ext >&5
29062
29063wx_cv_func_vsnprintf_decl=no
29064
29065fi
ac1cb8d3 29066rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
29067
29068
29069fi
29070echo "$as_me:$LINENO: result: $wx_cv_func_vsnprintf_decl" >&5
29071echo "${ECHO_T}$wx_cv_func_vsnprintf_decl" >&6
29072
29073 if test "$wx_cv_func_vsnprintf_decl" = "yes"; then
29074 cat >>confdefs.h <<\_ACEOF
29075#define HAVE_VSNPRINTF_DECL 1
29076_ACEOF
29077
29078 fi
29079fi
29080
29081if test "$wxUSE_UNICODE" = yes; then
29082
29083
29084
fbe47c7b
VS
29085
29086
29087
29088for ac_func in wputc wputchar putws fputws wprintf vswprintf
a848cd7e
SC
29089do
29090as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29091echo "$as_me:$LINENO: checking for $ac_func" >&5
29092echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29093if eval "test \"\${$as_ac_var+set}\" = set"; then
29094 echo $ECHO_N "(cached) $ECHO_C" >&6
29095else
29096 cat >conftest.$ac_ext <<_ACEOF
29097/* confdefs.h. */
29098_ACEOF
29099cat confdefs.h >>conftest.$ac_ext
29100cat >>conftest.$ac_ext <<_ACEOF
29101/* end confdefs.h. */
ac1cb8d3
VS
29102/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29103 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29104#define $ac_func innocuous_$ac_func
29105
a848cd7e
SC
29106/* System header to define __stub macros and hopefully few prototypes,
29107 which can conflict with char $ac_func (); below.
29108 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29109 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 29110
a848cd7e
SC
29111#ifdef __STDC__
29112# include <limits.h>
29113#else
29114# include <assert.h>
29115#endif
ac1cb8d3
VS
29116
29117#undef $ac_func
29118
a848cd7e
SC
29119/* Override any gcc2 internal prototype to avoid an error. */
29120#ifdef __cplusplus
29121extern "C"
29122{
29123#endif
29124/* We use char because int might match the return type of a gcc2
29125 builtin and then its argument prototype would still apply. */
29126char $ac_func ();
29127/* The GNU C library defines this for functions which it implements
29128 to always fail with ENOSYS. Some functions are actually named
29129 something starting with __ and the normal name is an alias. */
29130#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29131choke me
29132#else
29133char (*f) () = $ac_func;
29134#endif
29135#ifdef __cplusplus
29136}
29137#endif
29138
29139int
29140main ()
29141{
29142return f != $ac_func;
29143 ;
29144 return 0;
29145}
29146_ACEOF
29147rm -f conftest.$ac_objext conftest$ac_exeext
29148if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29149 (eval $ac_link) 2>conftest.er1
a848cd7e 29150 ac_status=$?
ac1cb8d3
VS
29151 grep -v '^ *+' conftest.er1 >conftest.err
29152 rm -f conftest.er1
29153 cat conftest.err >&5
a848cd7e
SC
29154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29155 (exit $ac_status); } &&
ffa0583f 29156 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29158 (eval $ac_try) 2>&5
29159 ac_status=$?
29160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29161 (exit $ac_status); }; } &&
29162 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29164 (eval $ac_try) 2>&5
29165 ac_status=$?
29166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29167 (exit $ac_status); }; }; then
29168 eval "$as_ac_var=yes"
29169else
29170 echo "$as_me: failed program was:" >&5
29171sed 's/^/| /' conftest.$ac_ext >&5
29172
29173eval "$as_ac_var=no"
29174fi
ac1cb8d3
VS
29175rm -f conftest.err conftest.$ac_objext \
29176 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29177fi
29178echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29179echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29180if test `eval echo '${'$as_ac_var'}'` = yes; then
29181 cat >>confdefs.h <<_ACEOF
29182#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29183_ACEOF
29184
29185fi
29186done
29187
29188
29189 echo "$as_me:$LINENO: checking for _vsnwprintf" >&5
29190echo $ECHO_N "checking for _vsnwprintf... $ECHO_C" >&6
29191 cat >conftest.$ac_ext <<_ACEOF
29192/* confdefs.h. */
29193_ACEOF
29194cat confdefs.h >>conftest.$ac_ext
29195cat >>conftest.$ac_ext <<_ACEOF
29196/* end confdefs.h. */
29197#include <wchar.h>
29198int
29199main ()
29200{
29201&_vsnwprintf;
29202 ;
29203 return 0;
29204}
29205_ACEOF
29206rm -f conftest.$ac_objext
29207if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 29208 (eval $ac_compile) 2>conftest.er1
a848cd7e 29209 ac_status=$?
ac1cb8d3
VS
29210 grep -v '^ *+' conftest.er1 >conftest.err
29211 rm -f conftest.er1
29212 cat conftest.err >&5
a848cd7e
SC
29213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29214 (exit $ac_status); } &&
ffa0583f 29215 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29217 (eval $ac_try) 2>&5
29218 ac_status=$?
29219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29220 (exit $ac_status); }; } &&
29221 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
29222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29223 (eval $ac_try) 2>&5
29224 ac_status=$?
29225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29226 (exit $ac_status); }; }; then
29227 echo "$as_me:$LINENO: result: yes" >&5
29228echo "${ECHO_T}yes" >&6
29229 cat >>confdefs.h <<\_ACEOF
29230#define HAVE__VSNWPRINTF 1
29231_ACEOF
29232
29233else
29234 echo "$as_me: failed program was:" >&5
29235sed 's/^/| /' conftest.$ac_ext >&5
29236
29237echo "$as_me:$LINENO: result: no" >&5
29238echo "${ECHO_T}no" >&6
29239fi
ac1cb8d3 29240rm -f conftest.err conftest.$ac_objext conftest.$ac_ext;
a848cd7e
SC
29241fi
29242
29243ac_ext=c
29244ac_cpp='$CPP $CPPFLAGS'
29245ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29246ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29247ac_compiler_gnu=$ac_cv_c_compiler_gnu
29248
29249
29250
29251
29252if test "$TOOLKIT" != "MSW"; then
29253
29254
29255
29256
29257ac_ext=cc
29258ac_cpp='$CXXCPP $CPPFLAGS'
29259ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29260ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29261ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29262
29263
29264
29265
29266# Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
29267if test "${with_libiconv_prefix+set}" = set; then
29268 withval="$with_libiconv_prefix"
29269
29270 for dir in `echo "$withval" | tr : ' '`; do
29271 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
29272 if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
29273 done
29274
29275fi;
29276
29277 echo "$as_me:$LINENO: checking for iconv" >&5
29278echo $ECHO_N "checking for iconv... $ECHO_C" >&6
29279if test "${am_cv_func_iconv+set}" = set; then
29280 echo $ECHO_N "(cached) $ECHO_C" >&6
29281else
29282
29283 am_cv_func_iconv="no, consider installing GNU libiconv"
29284 am_cv_lib_iconv=no
29285 cat >conftest.$ac_ext <<_ACEOF
29286/* confdefs.h. */
29287_ACEOF
29288cat confdefs.h >>conftest.$ac_ext
29289cat >>conftest.$ac_ext <<_ACEOF
29290/* end confdefs.h. */
29291#include <stdlib.h>
29292#include <iconv.h>
29293int
29294main ()
29295{
29296iconv_t cd = iconv_open("","");
29297 iconv(cd,NULL,NULL,NULL,NULL);
29298 iconv_close(cd);
29299 ;
29300 return 0;
29301}
29302_ACEOF
29303rm -f conftest.$ac_objext conftest$ac_exeext
29304if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29305 (eval $ac_link) 2>conftest.er1
a848cd7e 29306 ac_status=$?
ac1cb8d3
VS
29307 grep -v '^ *+' conftest.er1 >conftest.err
29308 rm -f conftest.er1
29309 cat conftest.err >&5
a848cd7e
SC
29310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29311 (exit $ac_status); } &&
ffa0583f 29312 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29314 (eval $ac_try) 2>&5
29315 ac_status=$?
29316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29317 (exit $ac_status); }; } &&
29318 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29320 (eval $ac_try) 2>&5
29321 ac_status=$?
29322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29323 (exit $ac_status); }; }; then
29324 am_cv_func_iconv=yes
29325else
29326 echo "$as_me: failed program was:" >&5
29327sed 's/^/| /' conftest.$ac_ext >&5
29328
29329fi
ac1cb8d3
VS
29330rm -f conftest.err conftest.$ac_objext \
29331 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29332 if test "$am_cv_func_iconv" != yes; then
29333 am_save_LIBS="$LIBS"
29334 LIBS="$LIBS -liconv"
29335 cat >conftest.$ac_ext <<_ACEOF
29336/* confdefs.h. */
29337_ACEOF
29338cat confdefs.h >>conftest.$ac_ext
29339cat >>conftest.$ac_ext <<_ACEOF
29340/* end confdefs.h. */
29341#include <stdlib.h>
29342#include <iconv.h>
29343int
29344main ()
29345{
29346iconv_t cd = iconv_open("","");
29347 iconv(cd,NULL,NULL,NULL,NULL);
29348 iconv_close(cd);
29349 ;
29350 return 0;
29351}
29352_ACEOF
29353rm -f conftest.$ac_objext conftest$ac_exeext
29354if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29355 (eval $ac_link) 2>conftest.er1
a848cd7e 29356 ac_status=$?
ac1cb8d3
VS
29357 grep -v '^ *+' conftest.er1 >conftest.err
29358 rm -f conftest.er1
29359 cat conftest.err >&5
a848cd7e
SC
29360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29361 (exit $ac_status); } &&
ffa0583f 29362 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29364 (eval $ac_try) 2>&5
29365 ac_status=$?
29366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29367 (exit $ac_status); }; } &&
29368 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29370 (eval $ac_try) 2>&5
29371 ac_status=$?
29372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29373 (exit $ac_status); }; }; then
29374 am_cv_lib_iconv=yes
29375 am_cv_func_iconv=yes
29376else
29377 echo "$as_me: failed program was:" >&5
29378sed 's/^/| /' conftest.$ac_ext >&5
29379
29380fi
ac1cb8d3
VS
29381rm -f conftest.err conftest.$ac_objext \
29382 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29383 LIBS="$am_save_LIBS"
29384 fi
29385
29386fi
29387echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
29388echo "${ECHO_T}$am_cv_func_iconv" >&6
29389 if test "$am_cv_func_iconv" = yes; then
29390
29391cat >>confdefs.h <<\_ACEOF
29392#define HAVE_ICONV 1
29393_ACEOF
29394
29395 echo "$as_me:$LINENO: checking if iconv needs const" >&5
29396echo $ECHO_N "checking if iconv needs const... $ECHO_C" >&6
29397if test "${wx_cv_func_iconv_const+set}" = set; then
29398 echo $ECHO_N "(cached) $ECHO_C" >&6
29399else
29400 cat >conftest.$ac_ext <<_ACEOF
29401/* confdefs.h. */
29402_ACEOF
29403cat confdefs.h >>conftest.$ac_ext
29404cat >>conftest.$ac_ext <<_ACEOF
29405/* end confdefs.h. */
29406
29407#include <stdlib.h>
29408#include <iconv.h>
29409extern
29410#ifdef __cplusplus
29411"C"
29412#endif
29413#if defined(__STDC__) || defined(__cplusplus)
29414size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
29415#else
29416size_t iconv();
29417#endif
29418
29419int
29420main ()
29421{
29422
29423 ;
29424 return 0;
29425}
29426_ACEOF
29427rm -f conftest.$ac_objext
29428if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 29429 (eval $ac_compile) 2>conftest.er1
a848cd7e 29430 ac_status=$?
ac1cb8d3
VS
29431 grep -v '^ *+' conftest.er1 >conftest.err
29432 rm -f conftest.er1
29433 cat conftest.err >&5
a848cd7e
SC
29434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29435 (exit $ac_status); } &&
ffa0583f 29436 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29438 (eval $ac_try) 2>&5
29439 ac_status=$?
29440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29441 (exit $ac_status); }; } &&
29442 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
29443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29444 (eval $ac_try) 2>&5
29445 ac_status=$?
29446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29447 (exit $ac_status); }; }; then
29448 wx_cv_func_iconv_const="no"
29449else
29450 echo "$as_me: failed program was:" >&5
29451sed 's/^/| /' conftest.$ac_ext >&5
29452
29453wx_cv_func_iconv_const="yes"
29454
29455fi
ac1cb8d3 29456rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
29457
29458fi
29459echo "$as_me:$LINENO: result: $wx_cv_func_iconv_const" >&5
29460echo "${ECHO_T}$wx_cv_func_iconv_const" >&6
29461
29462 iconv_const=
29463 if test "x$wx_cv_func_iconv_const" = "xyes"; then
29464 iconv_const="const"
29465 fi
29466
29467
29468cat >>confdefs.h <<_ACEOF
29469#define ICONV_CONST $iconv_const
29470_ACEOF
29471
29472 fi
29473 LIBICONV=
29474 if test "$am_cv_lib_iconv" = yes; then
29475 LIBICONV="-liconv"
29476 fi
29477
29478
29479LIBS="$LIBICONV $LIBS"
29480ac_ext=c
29481ac_cpp='$CPP $CPPFLAGS'
29482ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29483ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29484ac_compiler_gnu=$ac_cv_c_compiler_gnu
29485
29486
29487if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then
29488
29489for ac_func in sigaction
29490do
29491as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29492echo "$as_me:$LINENO: checking for $ac_func" >&5
29493echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29494if eval "test \"\${$as_ac_var+set}\" = set"; then
29495 echo $ECHO_N "(cached) $ECHO_C" >&6
29496else
29497 cat >conftest.$ac_ext <<_ACEOF
29498/* confdefs.h. */
29499_ACEOF
29500cat confdefs.h >>conftest.$ac_ext
29501cat >>conftest.$ac_ext <<_ACEOF
29502/* end confdefs.h. */
ac1cb8d3
VS
29503/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29504 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29505#define $ac_func innocuous_$ac_func
29506
a848cd7e
SC
29507/* System header to define __stub macros and hopefully few prototypes,
29508 which can conflict with char $ac_func (); below.
29509 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29510 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 29511
a848cd7e
SC
29512#ifdef __STDC__
29513# include <limits.h>
29514#else
29515# include <assert.h>
29516#endif
ac1cb8d3
VS
29517
29518#undef $ac_func
29519
a848cd7e
SC
29520/* Override any gcc2 internal prototype to avoid an error. */
29521#ifdef __cplusplus
29522extern "C"
29523{
29524#endif
29525/* We use char because int might match the return type of a gcc2
29526 builtin and then its argument prototype would still apply. */
29527char $ac_func ();
29528/* The GNU C library defines this for functions which it implements
29529 to always fail with ENOSYS. Some functions are actually named
29530 something starting with __ and the normal name is an alias. */
29531#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29532choke me
29533#else
29534char (*f) () = $ac_func;
29535#endif
29536#ifdef __cplusplus
29537}
29538#endif
29539
29540int
29541main ()
29542{
29543return f != $ac_func;
29544 ;
29545 return 0;
29546}
29547_ACEOF
29548rm -f conftest.$ac_objext conftest$ac_exeext
29549if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29550 (eval $ac_link) 2>conftest.er1
a848cd7e 29551 ac_status=$?
ac1cb8d3
VS
29552 grep -v '^ *+' conftest.er1 >conftest.err
29553 rm -f conftest.er1
29554 cat conftest.err >&5
a848cd7e
SC
29555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29556 (exit $ac_status); } &&
ffa0583f 29557 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29559 (eval $ac_try) 2>&5
29560 ac_status=$?
29561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29562 (exit $ac_status); }; } &&
29563 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29565 (eval $ac_try) 2>&5
29566 ac_status=$?
29567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29568 (exit $ac_status); }; }; then
29569 eval "$as_ac_var=yes"
29570else
29571 echo "$as_me: failed program was:" >&5
29572sed 's/^/| /' conftest.$ac_ext >&5
29573
29574eval "$as_ac_var=no"
29575fi
ac1cb8d3
VS
29576rm -f conftest.err conftest.$ac_objext \
29577 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29578fi
29579echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29580echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29581if test `eval echo '${'$as_ac_var'}'` = yes; then
29582 cat >>confdefs.h <<_ACEOF
29583#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29584_ACEOF
29585
29586fi
29587done
29588
29589
29590 if test "$ac_cv_func_sigaction" = "no"; then
29591 { echo "$as_me:$LINENO: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&5
29592echo "$as_me: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&2;}
29593 wxUSE_ON_FATAL_EXCEPTION=no
29594 fi
29595
29596 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
29597
29598
29599 ac_ext=cc
29600ac_cpp='$CXXCPP $CPPFLAGS'
29601ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29602ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29603ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29604
29605
29606 echo "$as_me:$LINENO: checking for sa_handler type" >&5
29607echo $ECHO_N "checking for sa_handler type... $ECHO_C" >&6
29608if test "${wx_cv_type_sa_handler+set}" = set; then
29609 echo $ECHO_N "(cached) $ECHO_C" >&6
29610else
29611
29612 cat >conftest.$ac_ext <<_ACEOF
29613/* confdefs.h. */
29614_ACEOF
29615cat confdefs.h >>conftest.$ac_ext
29616cat >>conftest.$ac_ext <<_ACEOF
29617/* end confdefs.h. */
29618#include <signal.h>
29619int
29620main ()
29621{
29622
29623 extern void testSigHandler(int);
29624
29625 struct sigaction sa;
29626 sa.sa_handler = testSigHandler;
29627
29628 ;
29629 return 0;
29630}
29631_ACEOF
29632rm -f conftest.$ac_objext
29633if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 29634 (eval $ac_compile) 2>conftest.er1
a848cd7e 29635 ac_status=$?
ac1cb8d3
VS
29636 grep -v '^ *+' conftest.er1 >conftest.err
29637 rm -f conftest.er1
29638 cat conftest.err >&5
a848cd7e
SC
29639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29640 (exit $ac_status); } &&
ffa0583f 29641 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29643 (eval $ac_try) 2>&5
29644 ac_status=$?
29645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29646 (exit $ac_status); }; } &&
29647 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
29648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29649 (eval $ac_try) 2>&5
29650 ac_status=$?
29651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29652 (exit $ac_status); }; }; then
29653
29654 wx_cv_type_sa_handler=int
29655
29656else
29657 echo "$as_me: failed program was:" >&5
29658sed 's/^/| /' conftest.$ac_ext >&5
29659
29660
29661 wx_cv_type_sa_handler=void
29662
29663fi
ac1cb8d3 29664rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
29665
29666fi
29667echo "$as_me:$LINENO: result: $wx_cv_type_sa_handler" >&5
29668echo "${ECHO_T}$wx_cv_type_sa_handler" >&6
29669
29670 ac_ext=c
29671ac_cpp='$CPP $CPPFLAGS'
29672ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29673ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29674ac_compiler_gnu=$ac_cv_c_compiler_gnu
29675
29676
29677 cat >>confdefs.h <<_ACEOF
29678#define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler
29679_ACEOF
29680
29681 fi
29682fi
29683
29684
29685
29686for ac_func in mkstemp mktemp
29687do
29688as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29689echo "$as_me:$LINENO: checking for $ac_func" >&5
29690echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29691if eval "test \"\${$as_ac_var+set}\" = set"; then
29692 echo $ECHO_N "(cached) $ECHO_C" >&6
29693else
29694 cat >conftest.$ac_ext <<_ACEOF
29695/* confdefs.h. */
29696_ACEOF
29697cat confdefs.h >>conftest.$ac_ext
29698cat >>conftest.$ac_ext <<_ACEOF
29699/* end confdefs.h. */
ac1cb8d3
VS
29700/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29701 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29702#define $ac_func innocuous_$ac_func
29703
a848cd7e
SC
29704/* System header to define __stub macros and hopefully few prototypes,
29705 which can conflict with char $ac_func (); below.
29706 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29707 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 29708
a848cd7e
SC
29709#ifdef __STDC__
29710# include <limits.h>
29711#else
29712# include <assert.h>
29713#endif
ac1cb8d3
VS
29714
29715#undef $ac_func
29716
a848cd7e
SC
29717/* Override any gcc2 internal prototype to avoid an error. */
29718#ifdef __cplusplus
29719extern "C"
29720{
29721#endif
29722/* We use char because int might match the return type of a gcc2
29723 builtin and then its argument prototype would still apply. */
29724char $ac_func ();
29725/* The GNU C library defines this for functions which it implements
29726 to always fail with ENOSYS. Some functions are actually named
29727 something starting with __ and the normal name is an alias. */
29728#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29729choke me
29730#else
29731char (*f) () = $ac_func;
29732#endif
29733#ifdef __cplusplus
29734}
29735#endif
29736
29737int
29738main ()
29739{
29740return f != $ac_func;
29741 ;
29742 return 0;
29743}
29744_ACEOF
29745rm -f conftest.$ac_objext conftest$ac_exeext
29746if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29747 (eval $ac_link) 2>conftest.er1
a848cd7e 29748 ac_status=$?
ac1cb8d3
VS
29749 grep -v '^ *+' conftest.er1 >conftest.err
29750 rm -f conftest.er1
29751 cat conftest.err >&5
a848cd7e
SC
29752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29753 (exit $ac_status); } &&
ffa0583f 29754 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29756 (eval $ac_try) 2>&5
29757 ac_status=$?
29758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29759 (exit $ac_status); }; } &&
29760 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29762 (eval $ac_try) 2>&5
29763 ac_status=$?
29764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29765 (exit $ac_status); }; }; then
29766 eval "$as_ac_var=yes"
29767else
29768 echo "$as_me: failed program was:" >&5
29769sed 's/^/| /' conftest.$ac_ext >&5
29770
29771eval "$as_ac_var=no"
29772fi
ac1cb8d3
VS
29773rm -f conftest.err conftest.$ac_objext \
29774 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29775fi
29776echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29777echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29778if test `eval echo '${'$as_ac_var'}'` = yes; then
29779 cat >>confdefs.h <<_ACEOF
29780#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29781_ACEOF
29782 break
29783fi
29784done
29785
29786
29787echo "$as_me:$LINENO: checking for statfs" >&5
29788echo $ECHO_N "checking for statfs... $ECHO_C" >&6
29789if test "${wx_cv_func_statfs+set}" = set; then
29790 echo $ECHO_N "(cached) $ECHO_C" >&6
29791else
29792 cat >conftest.$ac_ext <<_ACEOF
29793/* confdefs.h. */
29794_ACEOF
29795cat confdefs.h >>conftest.$ac_ext
29796cat >>conftest.$ac_ext <<_ACEOF
29797/* end confdefs.h. */
29798
29799 #if defined(__BSD__)
29800 #include <sys/param.h>
29801 #include <sys/mount.h>
29802 #else
29803 #include <sys/vfs.h>
29804 #endif
29805
29806int
29807main ()
29808{
29809
29810 long l;
29811 struct statfs fs;
29812 statfs("/", &fs);
29813 l = fs.f_bsize;
29814 l += fs.f_blocks;
29815 l += fs.f_bavail;
29816
29817 ;
29818 return 0;
29819}
29820_ACEOF
29821rm -f conftest.$ac_objext
29822if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 29823 (eval $ac_compile) 2>conftest.er1
a848cd7e 29824 ac_status=$?
ac1cb8d3
VS
29825 grep -v '^ *+' conftest.er1 >conftest.err
29826 rm -f conftest.er1
29827 cat conftest.err >&5
a848cd7e
SC
29828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29829 (exit $ac_status); } &&
ffa0583f 29830 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29832 (eval $ac_try) 2>&5
29833 ac_status=$?
29834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29835 (exit $ac_status); }; } &&
29836 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
29837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29838 (eval $ac_try) 2>&5
29839 ac_status=$?
29840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29841 (exit $ac_status); }; }; then
29842
29843 wx_cv_func_statfs=yes
29844
29845else
29846 echo "$as_me: failed program was:" >&5
29847sed 's/^/| /' conftest.$ac_ext >&5
29848
29849
29850 wx_cv_func_statfs=no
29851
29852
29853fi
ac1cb8d3 29854rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
29855
29856fi
29857echo "$as_me:$LINENO: result: $wx_cv_func_statfs" >&5
29858echo "${ECHO_T}$wx_cv_func_statfs" >&6
29859
29860if test "$wx_cv_func_statfs" = "yes"; then
29861 wx_cv_type_statvfs_t="struct statfs"
29862 cat >>confdefs.h <<\_ACEOF
29863#define HAVE_STATFS 1
29864_ACEOF
29865
29866else
29867 echo "$as_me:$LINENO: checking for statvfs" >&5
29868echo $ECHO_N "checking for statvfs... $ECHO_C" >&6
29869if test "${wx_cv_func_statvfs+set}" = set; then
29870 echo $ECHO_N "(cached) $ECHO_C" >&6
29871else
29872 cat >conftest.$ac_ext <<_ACEOF
29873/* confdefs.h. */
29874_ACEOF
29875cat confdefs.h >>conftest.$ac_ext
29876cat >>conftest.$ac_ext <<_ACEOF
29877/* end confdefs.h. */
29878
29879 #include <stddef.h>
29880 #include <sys/statvfs.h>
29881
29882int
29883main ()
29884{
29885
29886 statvfs("/", NULL);
29887
29888 ;
29889 return 0;
29890}
29891_ACEOF
29892rm -f conftest.$ac_objext
29893if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 29894 (eval $ac_compile) 2>conftest.er1
a848cd7e 29895 ac_status=$?
ac1cb8d3
VS
29896 grep -v '^ *+' conftest.er1 >conftest.err
29897 rm -f conftest.er1
29898 cat conftest.err >&5
a848cd7e
SC
29899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29900 (exit $ac_status); } &&
ffa0583f 29901 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29903 (eval $ac_try) 2>&5
29904 ac_status=$?
29905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29906 (exit $ac_status); }; } &&
29907 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
29908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29909 (eval $ac_try) 2>&5
29910 ac_status=$?
29911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29912 (exit $ac_status); }; }; then
29913 wx_cv_func_statvfs=yes
29914else
29915 echo "$as_me: failed program was:" >&5
29916sed 's/^/| /' conftest.$ac_ext >&5
29917
29918wx_cv_func_statvfs=no
29919
29920fi
ac1cb8d3 29921rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
29922
29923fi
29924echo "$as_me:$LINENO: result: $wx_cv_func_statvfs" >&5
29925echo "${ECHO_T}$wx_cv_func_statvfs" >&6
29926
29927 if test "$wx_cv_func_statvfs" = "yes"; then
29928
29929
29930 ac_ext=cc
29931ac_cpp='$CXXCPP $CPPFLAGS'
29932ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29933ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29934ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29935
29936
29937 echo "$as_me:$LINENO: checking for statvfs argument type" >&5
29938echo $ECHO_N "checking for statvfs argument type... $ECHO_C" >&6
29939if test "${wx_cv_type_statvfs_t+set}" = set; then
29940 echo $ECHO_N "(cached) $ECHO_C" >&6
29941else
29942 cat >conftest.$ac_ext <<_ACEOF
29943/* confdefs.h. */
29944_ACEOF
29945cat confdefs.h >>conftest.$ac_ext
29946cat >>conftest.$ac_ext <<_ACEOF
29947/* end confdefs.h. */
29948
29949 #include <sys/statvfs.h>
29950
29951int
29952main ()
29953{
29954
29955 long l;
29956 statvfs_t fs;
29957 statvfs("/", &fs);
29958 l = fs.f_bsize;
29959 l += fs.f_blocks;
29960 l += fs.f_bavail;
29961
29962 ;
29963 return 0;
29964}
29965_ACEOF
29966rm -f conftest.$ac_objext
29967if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 29968 (eval $ac_compile) 2>conftest.er1
a848cd7e 29969 ac_status=$?
ac1cb8d3
VS
29970 grep -v '^ *+' conftest.er1 >conftest.err
29971 rm -f conftest.er1
29972 cat conftest.err >&5
a848cd7e
SC
29973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29974 (exit $ac_status); } &&
ffa0583f 29975 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29977 (eval $ac_try) 2>&5
29978 ac_status=$?
29979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29980 (exit $ac_status); }; } &&
29981 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
29982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29983 (eval $ac_try) 2>&5
29984 ac_status=$?
29985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29986 (exit $ac_status); }; }; then
29987 wx_cv_type_statvfs_t=statvfs_t
29988else
29989 echo "$as_me: failed program was:" >&5
29990sed 's/^/| /' conftest.$ac_ext >&5
29991
29992
29993 cat >conftest.$ac_ext <<_ACEOF
29994/* confdefs.h. */
29995_ACEOF
29996cat confdefs.h >>conftest.$ac_ext
29997cat >>conftest.$ac_ext <<_ACEOF
29998/* end confdefs.h. */
29999
30000 #include <sys/statvfs.h>
30001
30002int
30003main ()
30004{
30005
30006 long l;
30007 struct statvfs fs;
30008 statvfs("/", &fs);
30009 l = fs.f_bsize;
30010 l += fs.f_blocks;
30011 l += fs.f_bavail;
30012
30013 ;
30014 return 0;
30015}
30016_ACEOF
30017rm -f conftest.$ac_objext
30018if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 30019 (eval $ac_compile) 2>conftest.er1
a848cd7e 30020 ac_status=$?
ac1cb8d3
VS
30021 grep -v '^ *+' conftest.er1 >conftest.err
30022 rm -f conftest.er1
30023 cat conftest.err >&5
a848cd7e
SC
30024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30025 (exit $ac_status); } &&
ffa0583f 30026 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30028 (eval $ac_try) 2>&5
30029 ac_status=$?
30030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30031 (exit $ac_status); }; } &&
30032 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
30033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30034 (eval $ac_try) 2>&5
30035 ac_status=$?
30036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30037 (exit $ac_status); }; }; then
30038 wx_cv_type_statvfs_t="struct statvfs"
30039else
30040 echo "$as_me: failed program was:" >&5
30041sed 's/^/| /' conftest.$ac_ext >&5
30042
30043wx_cv_type_statvfs_t="unknown"
30044
30045fi
ac1cb8d3 30046rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
30047
30048
30049fi
ac1cb8d3 30050rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
30051
30052fi
30053echo "$as_me:$LINENO: result: $wx_cv_type_statvfs_t" >&5
30054echo "${ECHO_T}$wx_cv_type_statvfs_t" >&6
30055
30056 ac_ext=c
30057ac_cpp='$CPP $CPPFLAGS'
30058ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30059ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30060ac_compiler_gnu=$ac_cv_c_compiler_gnu
30061
30062
30063 if test "$wx_cv_type_statvfs_t" != "unknown"; then
30064 cat >>confdefs.h <<\_ACEOF
30065#define HAVE_STATVFS 1
30066_ACEOF
30067
30068 fi
30069 else
30070 wx_cv_type_statvfs_t="unknown"
30071 fi
30072fi
30073
30074if test "$wx_cv_type_statvfs_t" != "unknown"; then
30075 cat >>confdefs.h <<_ACEOF
30076#define WX_STATFS_T $wx_cv_type_statvfs_t
30077_ACEOF
30078
30079else
30080 { echo "$as_me:$LINENO: WARNING: wxGetDiskSpace() function won't work without statfs()" >&5
30081echo "$as_me: WARNING: wxGetDiskSpace() function won't work without statfs()" >&2;}
30082fi
30083
30084if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
30085
30086
30087for ac_func in fcntl flock
30088do
30089as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30090echo "$as_me:$LINENO: checking for $ac_func" >&5
30091echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30092if eval "test \"\${$as_ac_var+set}\" = set"; then
30093 echo $ECHO_N "(cached) $ECHO_C" >&6
30094else
30095 cat >conftest.$ac_ext <<_ACEOF
30096/* confdefs.h. */
30097_ACEOF
30098cat confdefs.h >>conftest.$ac_ext
30099cat >>conftest.$ac_ext <<_ACEOF
30100/* end confdefs.h. */
ac1cb8d3
VS
30101/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30102 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30103#define $ac_func innocuous_$ac_func
30104
a848cd7e
SC
30105/* System header to define __stub macros and hopefully few prototypes,
30106 which can conflict with char $ac_func (); below.
30107 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30108 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 30109
a848cd7e
SC
30110#ifdef __STDC__
30111# include <limits.h>
30112#else
30113# include <assert.h>
30114#endif
ac1cb8d3
VS
30115
30116#undef $ac_func
30117
a848cd7e
SC
30118/* Override any gcc2 internal prototype to avoid an error. */
30119#ifdef __cplusplus
30120extern "C"
30121{
30122#endif
30123/* We use char because int might match the return type of a gcc2
30124 builtin and then its argument prototype would still apply. */
30125char $ac_func ();
30126/* The GNU C library defines this for functions which it implements
30127 to always fail with ENOSYS. Some functions are actually named
30128 something starting with __ and the normal name is an alias. */
30129#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30130choke me
30131#else
30132char (*f) () = $ac_func;
30133#endif
30134#ifdef __cplusplus
30135}
30136#endif
30137
30138int
30139main ()
30140{
30141return f != $ac_func;
30142 ;
30143 return 0;
30144}
30145_ACEOF
30146rm -f conftest.$ac_objext conftest$ac_exeext
30147if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30148 (eval $ac_link) 2>conftest.er1
a848cd7e 30149 ac_status=$?
ac1cb8d3
VS
30150 grep -v '^ *+' conftest.er1 >conftest.err
30151 rm -f conftest.er1
30152 cat conftest.err >&5
a848cd7e
SC
30153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30154 (exit $ac_status); } &&
ffa0583f 30155 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30157 (eval $ac_try) 2>&5
30158 ac_status=$?
30159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30160 (exit $ac_status); }; } &&
30161 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30163 (eval $ac_try) 2>&5
30164 ac_status=$?
30165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30166 (exit $ac_status); }; }; then
30167 eval "$as_ac_var=yes"
30168else
30169 echo "$as_me: failed program was:" >&5
30170sed 's/^/| /' conftest.$ac_ext >&5
30171
30172eval "$as_ac_var=no"
30173fi
ac1cb8d3
VS
30174rm -f conftest.err conftest.$ac_objext \
30175 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30176fi
30177echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30178echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30179if test `eval echo '${'$as_ac_var'}'` = yes; then
30180 cat >>confdefs.h <<_ACEOF
30181#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30182_ACEOF
30183 break
30184fi
30185done
30186
30187
30188 if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then
30189 { echo "$as_me:$LINENO: WARNING: wxSingleInstanceChecker not available" >&5
30190echo "$as_me: WARNING: wxSingleInstanceChecker not available" >&2;}
30191 wxUSE_SNGLINST_CHECKER=no
30192 fi
30193fi
30194
30195
30196for ac_func in timegm
30197do
30198as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30199echo "$as_me:$LINENO: checking for $ac_func" >&5
30200echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30201if eval "test \"\${$as_ac_var+set}\" = set"; then
30202 echo $ECHO_N "(cached) $ECHO_C" >&6
30203else
30204 cat >conftest.$ac_ext <<_ACEOF
30205/* confdefs.h. */
30206_ACEOF
30207cat confdefs.h >>conftest.$ac_ext
30208cat >>conftest.$ac_ext <<_ACEOF
30209/* end confdefs.h. */
ac1cb8d3
VS
30210/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30211 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30212#define $ac_func innocuous_$ac_func
30213
a848cd7e
SC
30214/* System header to define __stub macros and hopefully few prototypes,
30215 which can conflict with char $ac_func (); below.
30216 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30217 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 30218
a848cd7e
SC
30219#ifdef __STDC__
30220# include <limits.h>
30221#else
30222# include <assert.h>
30223#endif
ac1cb8d3
VS
30224
30225#undef $ac_func
30226
a848cd7e
SC
30227/* Override any gcc2 internal prototype to avoid an error. */
30228#ifdef __cplusplus
30229extern "C"
30230{
30231#endif
30232/* We use char because int might match the return type of a gcc2
30233 builtin and then its argument prototype would still apply. */
30234char $ac_func ();
30235/* The GNU C library defines this for functions which it implements
30236 to always fail with ENOSYS. Some functions are actually named
30237 something starting with __ and the normal name is an alias. */
30238#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30239choke me
30240#else
30241char (*f) () = $ac_func;
30242#endif
30243#ifdef __cplusplus
30244}
30245#endif
30246
30247int
30248main ()
30249{
30250return f != $ac_func;
30251 ;
30252 return 0;
30253}
30254_ACEOF
30255rm -f conftest.$ac_objext conftest$ac_exeext
30256if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30257 (eval $ac_link) 2>conftest.er1
a848cd7e 30258 ac_status=$?
ac1cb8d3
VS
30259 grep -v '^ *+' conftest.er1 >conftest.err
30260 rm -f conftest.er1
30261 cat conftest.err >&5
a848cd7e
SC
30262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30263 (exit $ac_status); } &&
ffa0583f 30264 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30266 (eval $ac_try) 2>&5
30267 ac_status=$?
30268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30269 (exit $ac_status); }; } &&
30270 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30272 (eval $ac_try) 2>&5
30273 ac_status=$?
30274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30275 (exit $ac_status); }; }; then
30276 eval "$as_ac_var=yes"
30277else
30278 echo "$as_me: failed program was:" >&5
30279sed 's/^/| /' conftest.$ac_ext >&5
30280
30281eval "$as_ac_var=no"
30282fi
ac1cb8d3
VS
30283rm -f conftest.err conftest.$ac_objext \
30284 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30285fi
30286echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30287echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30288if test `eval echo '${'$as_ac_var'}'` = yes; then
30289 cat >>confdefs.h <<_ACEOF
30290#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30291_ACEOF
30292
30293fi
30294done
30295
30296
30297
30298
30299for ac_func in putenv setenv
30300do
30301as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30302echo "$as_me:$LINENO: checking for $ac_func" >&5
30303echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30304if eval "test \"\${$as_ac_var+set}\" = set"; then
30305 echo $ECHO_N "(cached) $ECHO_C" >&6
30306else
30307 cat >conftest.$ac_ext <<_ACEOF
30308/* confdefs.h. */
30309_ACEOF
30310cat confdefs.h >>conftest.$ac_ext
30311cat >>conftest.$ac_ext <<_ACEOF
30312/* end confdefs.h. */
ac1cb8d3
VS
30313/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30314 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30315#define $ac_func innocuous_$ac_func
30316
a848cd7e
SC
30317/* System header to define __stub macros and hopefully few prototypes,
30318 which can conflict with char $ac_func (); below.
30319 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30320 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 30321
a848cd7e
SC
30322#ifdef __STDC__
30323# include <limits.h>
30324#else
30325# include <assert.h>
30326#endif
ac1cb8d3
VS
30327
30328#undef $ac_func
30329
a848cd7e
SC
30330/* Override any gcc2 internal prototype to avoid an error. */
30331#ifdef __cplusplus
30332extern "C"
30333{
30334#endif
30335/* We use char because int might match the return type of a gcc2
30336 builtin and then its argument prototype would still apply. */
30337char $ac_func ();
30338/* The GNU C library defines this for functions which it implements
30339 to always fail with ENOSYS. Some functions are actually named
30340 something starting with __ and the normal name is an alias. */
30341#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30342choke me
30343#else
30344char (*f) () = $ac_func;
30345#endif
30346#ifdef __cplusplus
30347}
30348#endif
30349
30350int
30351main ()
30352{
30353return f != $ac_func;
30354 ;
30355 return 0;
30356}
30357_ACEOF
30358rm -f conftest.$ac_objext conftest$ac_exeext
30359if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30360 (eval $ac_link) 2>conftest.er1
a848cd7e 30361 ac_status=$?
ac1cb8d3
VS
30362 grep -v '^ *+' conftest.er1 >conftest.err
30363 rm -f conftest.er1
30364 cat conftest.err >&5
a848cd7e
SC
30365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30366 (exit $ac_status); } &&
ffa0583f 30367 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30369 (eval $ac_try) 2>&5
30370 ac_status=$?
30371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30372 (exit $ac_status); }; } &&
30373 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30375 (eval $ac_try) 2>&5
30376 ac_status=$?
30377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30378 (exit $ac_status); }; }; then
30379 eval "$as_ac_var=yes"
30380else
30381 echo "$as_me: failed program was:" >&5
30382sed 's/^/| /' conftest.$ac_ext >&5
30383
30384eval "$as_ac_var=no"
30385fi
ac1cb8d3
VS
30386rm -f conftest.err conftest.$ac_objext \
30387 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30388fi
30389echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30390echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30391if test `eval echo '${'$as_ac_var'}'` = yes; then
30392 cat >>confdefs.h <<_ACEOF
30393#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30394_ACEOF
30395 break
30396fi
30397done
30398
30399
30400HAVE_SOME_SLEEP_FUNC=0
30401if test "$USE_BEOS" = 1; then
30402 cat >>confdefs.h <<\_ACEOF
30403#define HAVE_SLEEP 1
30404_ACEOF
30405
30406 HAVE_SOME_SLEEP_FUNC=1
30407fi
30408
30409if test "$USE_DARWIN" = 1; then
30410 cat >>confdefs.h <<\_ACEOF
30411#define HAVE_USLEEP 1
30412_ACEOF
30413
30414 HAVE_SOME_SLEEP_FUNC=1
30415fi
30416
30417if test "$HAVE_SOME_SLEEP_FUNC" != 1; then
30418 POSIX4_LINK=
30419
30420for ac_func in nanosleep
30421do
30422as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30423echo "$as_me:$LINENO: checking for $ac_func" >&5
30424echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30425if eval "test \"\${$as_ac_var+set}\" = set"; then
30426 echo $ECHO_N "(cached) $ECHO_C" >&6
30427else
30428 cat >conftest.$ac_ext <<_ACEOF
30429/* confdefs.h. */
30430_ACEOF
30431cat confdefs.h >>conftest.$ac_ext
30432cat >>conftest.$ac_ext <<_ACEOF
30433/* end confdefs.h. */
ac1cb8d3
VS
30434/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30435 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30436#define $ac_func innocuous_$ac_func
30437
a848cd7e
SC
30438/* System header to define __stub macros and hopefully few prototypes,
30439 which can conflict with char $ac_func (); below.
30440 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30441 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 30442
a848cd7e
SC
30443#ifdef __STDC__
30444# include <limits.h>
30445#else
30446# include <assert.h>
30447#endif
ac1cb8d3
VS
30448
30449#undef $ac_func
30450
a848cd7e
SC
30451/* Override any gcc2 internal prototype to avoid an error. */
30452#ifdef __cplusplus
30453extern "C"
30454{
30455#endif
30456/* We use char because int might match the return type of a gcc2
30457 builtin and then its argument prototype would still apply. */
30458char $ac_func ();
30459/* The GNU C library defines this for functions which it implements
30460 to always fail with ENOSYS. Some functions are actually named
30461 something starting with __ and the normal name is an alias. */
30462#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30463choke me
30464#else
30465char (*f) () = $ac_func;
30466#endif
30467#ifdef __cplusplus
30468}
30469#endif
30470
30471int
30472main ()
30473{
30474return f != $ac_func;
30475 ;
30476 return 0;
30477}
30478_ACEOF
30479rm -f conftest.$ac_objext conftest$ac_exeext
30480if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30481 (eval $ac_link) 2>conftest.er1
a848cd7e 30482 ac_status=$?
ac1cb8d3
VS
30483 grep -v '^ *+' conftest.er1 >conftest.err
30484 rm -f conftest.er1
30485 cat conftest.err >&5
a848cd7e
SC
30486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30487 (exit $ac_status); } &&
ffa0583f 30488 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30490 (eval $ac_try) 2>&5
30491 ac_status=$?
30492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30493 (exit $ac_status); }; } &&
30494 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30496 (eval $ac_try) 2>&5
30497 ac_status=$?
30498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30499 (exit $ac_status); }; }; then
30500 eval "$as_ac_var=yes"
30501else
30502 echo "$as_me: failed program was:" >&5
30503sed 's/^/| /' conftest.$ac_ext >&5
30504
30505eval "$as_ac_var=no"
30506fi
ac1cb8d3
VS
30507rm -f conftest.err conftest.$ac_objext \
30508 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30509fi
30510echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30511echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30512if test `eval echo '${'$as_ac_var'}'` = yes; then
30513 cat >>confdefs.h <<_ACEOF
30514#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30515_ACEOF
30516 cat >>confdefs.h <<\_ACEOF
30517#define HAVE_NANOSLEEP 1
30518_ACEOF
30519
30520else
30521
30522 echo "$as_me:$LINENO: checking for nanosleep in -lposix4" >&5
30523echo $ECHO_N "checking for nanosleep in -lposix4... $ECHO_C" >&6
30524if test "${ac_cv_lib_posix4_nanosleep+set}" = set; then
30525 echo $ECHO_N "(cached) $ECHO_C" >&6
30526else
30527 ac_check_lib_save_LIBS=$LIBS
30528LIBS="-lposix4 $LIBS"
30529cat >conftest.$ac_ext <<_ACEOF
30530/* confdefs.h. */
30531_ACEOF
30532cat confdefs.h >>conftest.$ac_ext
30533cat >>conftest.$ac_ext <<_ACEOF
30534/* end confdefs.h. */
30535
30536/* Override any gcc2 internal prototype to avoid an error. */
30537#ifdef __cplusplus
30538extern "C"
30539#endif
30540/* We use char because int might match the return type of a gcc2
30541 builtin and then its argument prototype would still apply. */
30542char nanosleep ();
30543int
30544main ()
30545{
30546nanosleep ();
30547 ;
30548 return 0;
30549}
30550_ACEOF
30551rm -f conftest.$ac_objext conftest$ac_exeext
30552if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30553 (eval $ac_link) 2>conftest.er1
a848cd7e 30554 ac_status=$?
ac1cb8d3
VS
30555 grep -v '^ *+' conftest.er1 >conftest.err
30556 rm -f conftest.er1
30557 cat conftest.err >&5
a848cd7e
SC
30558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30559 (exit $ac_status); } &&
ffa0583f 30560 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30562 (eval $ac_try) 2>&5
30563 ac_status=$?
30564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30565 (exit $ac_status); }; } &&
30566 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30568 (eval $ac_try) 2>&5
30569 ac_status=$?
30570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30571 (exit $ac_status); }; }; then
30572 ac_cv_lib_posix4_nanosleep=yes
30573else
30574 echo "$as_me: failed program was:" >&5
30575sed 's/^/| /' conftest.$ac_ext >&5
30576
30577ac_cv_lib_posix4_nanosleep=no
30578fi
ac1cb8d3
VS
30579rm -f conftest.err conftest.$ac_objext \
30580 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30581LIBS=$ac_check_lib_save_LIBS
30582fi
30583echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_nanosleep" >&5
30584echo "${ECHO_T}$ac_cv_lib_posix4_nanosleep" >&6
30585if test $ac_cv_lib_posix4_nanosleep = yes; then
30586
30587 cat >>confdefs.h <<\_ACEOF
30588#define HAVE_NANOSLEEP 1
30589_ACEOF
30590
30591 POSIX4_LINK=" -lposix4"
30592
30593else
30594
30595
30596for ac_func in usleep
30597do
30598as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30599echo "$as_me:$LINENO: checking for $ac_func" >&5
30600echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30601if eval "test \"\${$as_ac_var+set}\" = set"; then
30602 echo $ECHO_N "(cached) $ECHO_C" >&6
30603else
30604 cat >conftest.$ac_ext <<_ACEOF
30605/* confdefs.h. */
30606_ACEOF
30607cat confdefs.h >>conftest.$ac_ext
30608cat >>conftest.$ac_ext <<_ACEOF
30609/* end confdefs.h. */
ac1cb8d3
VS
30610/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30611 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30612#define $ac_func innocuous_$ac_func
30613
a848cd7e
SC
30614/* System header to define __stub macros and hopefully few prototypes,
30615 which can conflict with char $ac_func (); below.
30616 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30617 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 30618
a848cd7e
SC
30619#ifdef __STDC__
30620# include <limits.h>
30621#else
30622# include <assert.h>
30623#endif
ac1cb8d3
VS
30624
30625#undef $ac_func
30626
a848cd7e
SC
30627/* Override any gcc2 internal prototype to avoid an error. */
30628#ifdef __cplusplus
30629extern "C"
30630{
30631#endif
30632/* We use char because int might match the return type of a gcc2
30633 builtin and then its argument prototype would still apply. */
30634char $ac_func ();
30635/* The GNU C library defines this for functions which it implements
30636 to always fail with ENOSYS. Some functions are actually named
30637 something starting with __ and the normal name is an alias. */
30638#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30639choke me
30640#else
30641char (*f) () = $ac_func;
30642#endif
30643#ifdef __cplusplus
30644}
30645#endif
30646
30647int
30648main ()
30649{
30650return f != $ac_func;
30651 ;
30652 return 0;
30653}
30654_ACEOF
30655rm -f conftest.$ac_objext conftest$ac_exeext
30656if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30657 (eval $ac_link) 2>conftest.er1
a848cd7e 30658 ac_status=$?
ac1cb8d3
VS
30659 grep -v '^ *+' conftest.er1 >conftest.err
30660 rm -f conftest.er1
30661 cat conftest.err >&5
a848cd7e
SC
30662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30663 (exit $ac_status); } &&
ffa0583f 30664 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30666 (eval $ac_try) 2>&5
30667 ac_status=$?
30668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30669 (exit $ac_status); }; } &&
30670 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30672 (eval $ac_try) 2>&5
30673 ac_status=$?
30674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30675 (exit $ac_status); }; }; then
30676 eval "$as_ac_var=yes"
30677else
30678 echo "$as_me: failed program was:" >&5
30679sed 's/^/| /' conftest.$ac_ext >&5
30680
30681eval "$as_ac_var=no"
30682fi
ac1cb8d3
VS
30683rm -f conftest.err conftest.$ac_objext \
30684 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30685fi
30686echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30687echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30688if test `eval echo '${'$as_ac_var'}'` = yes; then
30689 cat >>confdefs.h <<_ACEOF
30690#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30691_ACEOF
30692 cat >>confdefs.h <<\_ACEOF
30693#define HAVE_USLEEP 1
30694_ACEOF
30695
30696else
30697 { echo "$as_me:$LINENO: WARNING: wxSleep() function will not work" >&5
30698echo "$as_me: WARNING: wxSleep() function will not work" >&2;}
30699
30700fi
30701done
30702
30703
30704
30705fi
30706
30707
30708
30709fi
30710done
30711
30712fi
30713
30714
30715
30716for ac_func in uname gethostname
30717do
30718as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30719echo "$as_me:$LINENO: checking for $ac_func" >&5
30720echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30721if eval "test \"\${$as_ac_var+set}\" = set"; then
30722 echo $ECHO_N "(cached) $ECHO_C" >&6
30723else
30724 cat >conftest.$ac_ext <<_ACEOF
30725/* confdefs.h. */
30726_ACEOF
30727cat confdefs.h >>conftest.$ac_ext
30728cat >>conftest.$ac_ext <<_ACEOF
30729/* end confdefs.h. */
ac1cb8d3
VS
30730/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30731 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30732#define $ac_func innocuous_$ac_func
30733
a848cd7e
SC
30734/* System header to define __stub macros and hopefully few prototypes,
30735 which can conflict with char $ac_func (); below.
30736 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30737 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 30738
a848cd7e
SC
30739#ifdef __STDC__
30740# include <limits.h>
30741#else
30742# include <assert.h>
30743#endif
ac1cb8d3
VS
30744
30745#undef $ac_func
30746
a848cd7e
SC
30747/* Override any gcc2 internal prototype to avoid an error. */
30748#ifdef __cplusplus
30749extern "C"
30750{
30751#endif
30752/* We use char because int might match the return type of a gcc2
30753 builtin and then its argument prototype would still apply. */
30754char $ac_func ();
30755/* The GNU C library defines this for functions which it implements
30756 to always fail with ENOSYS. Some functions are actually named
30757 something starting with __ and the normal name is an alias. */
30758#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30759choke me
30760#else
30761char (*f) () = $ac_func;
30762#endif
30763#ifdef __cplusplus
30764}
30765#endif
30766
30767int
30768main ()
30769{
30770return f != $ac_func;
30771 ;
30772 return 0;
30773}
30774_ACEOF
30775rm -f conftest.$ac_objext conftest$ac_exeext
30776if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30777 (eval $ac_link) 2>conftest.er1
a848cd7e 30778 ac_status=$?
ac1cb8d3
VS
30779 grep -v '^ *+' conftest.er1 >conftest.err
30780 rm -f conftest.er1
30781 cat conftest.err >&5
a848cd7e
SC
30782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30783 (exit $ac_status); } &&
ffa0583f 30784 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30786 (eval $ac_try) 2>&5
30787 ac_status=$?
30788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30789 (exit $ac_status); }; } &&
30790 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30792 (eval $ac_try) 2>&5
30793 ac_status=$?
30794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30795 (exit $ac_status); }; }; then
30796 eval "$as_ac_var=yes"
30797else
30798 echo "$as_me: failed program was:" >&5
30799sed 's/^/| /' conftest.$ac_ext >&5
30800
30801eval "$as_ac_var=no"
30802fi
ac1cb8d3
VS
30803rm -f conftest.err conftest.$ac_objext \
30804 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30805fi
30806echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30807echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30808if test `eval echo '${'$as_ac_var'}'` = yes; then
30809 cat >>confdefs.h <<_ACEOF
30810#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30811_ACEOF
30812 break
30813fi
30814done
30815
30816
30817
30818
30819ac_ext=cc
30820ac_cpp='$CXXCPP $CPPFLAGS'
30821ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30822ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30823ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30824
30825
30826
30827for ac_func in strtok_r
30828do
30829as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30830echo "$as_me:$LINENO: checking for $ac_func" >&5
30831echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30832if eval "test \"\${$as_ac_var+set}\" = set"; then
30833 echo $ECHO_N "(cached) $ECHO_C" >&6
30834else
30835 cat >conftest.$ac_ext <<_ACEOF
30836/* confdefs.h. */
30837_ACEOF
30838cat confdefs.h >>conftest.$ac_ext
30839cat >>conftest.$ac_ext <<_ACEOF
30840/* end confdefs.h. */
ac1cb8d3
VS
30841/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30842 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30843#define $ac_func innocuous_$ac_func
30844
a848cd7e
SC
30845/* System header to define __stub macros and hopefully few prototypes,
30846 which can conflict with char $ac_func (); below.
30847 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30848 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 30849
a848cd7e
SC
30850#ifdef __STDC__
30851# include <limits.h>
30852#else
30853# include <assert.h>
30854#endif
ac1cb8d3
VS
30855
30856#undef $ac_func
30857
a848cd7e
SC
30858/* Override any gcc2 internal prototype to avoid an error. */
30859#ifdef __cplusplus
30860extern "C"
30861{
30862#endif
30863/* We use char because int might match the return type of a gcc2
30864 builtin and then its argument prototype would still apply. */
30865char $ac_func ();
30866/* The GNU C library defines this for functions which it implements
30867 to always fail with ENOSYS. Some functions are actually named
30868 something starting with __ and the normal name is an alias. */
30869#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30870choke me
30871#else
30872char (*f) () = $ac_func;
30873#endif
30874#ifdef __cplusplus
30875}
30876#endif
30877
30878int
30879main ()
30880{
30881return f != $ac_func;
30882 ;
30883 return 0;
30884}
30885_ACEOF
30886rm -f conftest.$ac_objext conftest$ac_exeext
30887if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30888 (eval $ac_link) 2>conftest.er1
a848cd7e 30889 ac_status=$?
ac1cb8d3
VS
30890 grep -v '^ *+' conftest.er1 >conftest.err
30891 rm -f conftest.er1
30892 cat conftest.err >&5
a848cd7e
SC
30893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30894 (exit $ac_status); } &&
ffa0583f 30895 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30897 (eval $ac_try) 2>&5
30898 ac_status=$?
30899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30900 (exit $ac_status); }; } &&
30901 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30903 (eval $ac_try) 2>&5
30904 ac_status=$?
30905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30906 (exit $ac_status); }; }; then
30907 eval "$as_ac_var=yes"
30908else
30909 echo "$as_me: failed program was:" >&5
30910sed 's/^/| /' conftest.$ac_ext >&5
30911
30912eval "$as_ac_var=no"
30913fi
ac1cb8d3
VS
30914rm -f conftest.err conftest.$ac_objext \
30915 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30916fi
30917echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30918echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30919if test `eval echo '${'$as_ac_var'}'` = yes; then
30920 cat >>confdefs.h <<_ACEOF
30921#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30922_ACEOF
30923
30924fi
30925done
30926
30927
30928ac_ext=c
30929ac_cpp='$CPP $CPPFLAGS'
30930ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30931ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30932ac_compiler_gnu=$ac_cv_c_compiler_gnu
30933
30934
30935INET_LINK=
30936
30937for ac_func in inet_addr
30938do
30939as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30940echo "$as_me:$LINENO: checking for $ac_func" >&5
30941echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30942if eval "test \"\${$as_ac_var+set}\" = set"; then
30943 echo $ECHO_N "(cached) $ECHO_C" >&6
30944else
30945 cat >conftest.$ac_ext <<_ACEOF
30946/* confdefs.h. */
30947_ACEOF
30948cat confdefs.h >>conftest.$ac_ext
30949cat >>conftest.$ac_ext <<_ACEOF
30950/* end confdefs.h. */
ac1cb8d3
VS
30951/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30952 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30953#define $ac_func innocuous_$ac_func
30954
a848cd7e
SC
30955/* System header to define __stub macros and hopefully few prototypes,
30956 which can conflict with char $ac_func (); below.
30957 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30958 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 30959
a848cd7e
SC
30960#ifdef __STDC__
30961# include <limits.h>
30962#else
30963# include <assert.h>
30964#endif
ac1cb8d3
VS
30965
30966#undef $ac_func
30967
a848cd7e
SC
30968/* Override any gcc2 internal prototype to avoid an error. */
30969#ifdef __cplusplus
30970extern "C"
30971{
30972#endif
30973/* We use char because int might match the return type of a gcc2
30974 builtin and then its argument prototype would still apply. */
30975char $ac_func ();
30976/* The GNU C library defines this for functions which it implements
30977 to always fail with ENOSYS. Some functions are actually named
30978 something starting with __ and the normal name is an alias. */
30979#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30980choke me
30981#else
30982char (*f) () = $ac_func;
30983#endif
30984#ifdef __cplusplus
30985}
30986#endif
30987
30988int
30989main ()
30990{
30991return f != $ac_func;
30992 ;
30993 return 0;
30994}
30995_ACEOF
30996rm -f conftest.$ac_objext conftest$ac_exeext
30997if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30998 (eval $ac_link) 2>conftest.er1
a848cd7e 30999 ac_status=$?
ac1cb8d3
VS
31000 grep -v '^ *+' conftest.er1 >conftest.err
31001 rm -f conftest.er1
31002 cat conftest.err >&5
a848cd7e
SC
31003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31004 (exit $ac_status); } &&
ffa0583f 31005 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31007 (eval $ac_try) 2>&5
31008 ac_status=$?
31009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31010 (exit $ac_status); }; } &&
31011 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31013 (eval $ac_try) 2>&5
31014 ac_status=$?
31015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31016 (exit $ac_status); }; }; then
31017 eval "$as_ac_var=yes"
31018else
31019 echo "$as_me: failed program was:" >&5
31020sed 's/^/| /' conftest.$ac_ext >&5
31021
31022eval "$as_ac_var=no"
31023fi
ac1cb8d3
VS
31024rm -f conftest.err conftest.$ac_objext \
31025 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31026fi
31027echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31028echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31029if test `eval echo '${'$as_ac_var'}'` = yes; then
31030 cat >>confdefs.h <<_ACEOF
31031#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31032_ACEOF
31033 cat >>confdefs.h <<\_ACEOF
31034#define HAVE_INET_ADDR 1
31035_ACEOF
31036
31037else
31038
31039 echo "$as_me:$LINENO: checking for inet_addr in -lnsl" >&5
31040echo $ECHO_N "checking for inet_addr in -lnsl... $ECHO_C" >&6
31041if test "${ac_cv_lib_nsl_inet_addr+set}" = set; then
31042 echo $ECHO_N "(cached) $ECHO_C" >&6
31043else
31044 ac_check_lib_save_LIBS=$LIBS
31045LIBS="-lnsl $LIBS"
31046cat >conftest.$ac_ext <<_ACEOF
31047/* confdefs.h. */
31048_ACEOF
31049cat confdefs.h >>conftest.$ac_ext
31050cat >>conftest.$ac_ext <<_ACEOF
31051/* end confdefs.h. */
31052
31053/* Override any gcc2 internal prototype to avoid an error. */
31054#ifdef __cplusplus
31055extern "C"
31056#endif
31057/* We use char because int might match the return type of a gcc2
31058 builtin and then its argument prototype would still apply. */
31059char inet_addr ();
31060int
31061main ()
31062{
31063inet_addr ();
31064 ;
31065 return 0;
31066}
31067_ACEOF
31068rm -f conftest.$ac_objext conftest$ac_exeext
31069if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31070 (eval $ac_link) 2>conftest.er1
a848cd7e 31071 ac_status=$?
ac1cb8d3
VS
31072 grep -v '^ *+' conftest.er1 >conftest.err
31073 rm -f conftest.er1
31074 cat conftest.err >&5
a848cd7e
SC
31075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31076 (exit $ac_status); } &&
ffa0583f 31077 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31079 (eval $ac_try) 2>&5
31080 ac_status=$?
31081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31082 (exit $ac_status); }; } &&
31083 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31085 (eval $ac_try) 2>&5
31086 ac_status=$?
31087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31088 (exit $ac_status); }; }; then
31089 ac_cv_lib_nsl_inet_addr=yes
31090else
31091 echo "$as_me: failed program was:" >&5
31092sed 's/^/| /' conftest.$ac_ext >&5
31093
31094ac_cv_lib_nsl_inet_addr=no
31095fi
ac1cb8d3
VS
31096rm -f conftest.err conftest.$ac_objext \
31097 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31098LIBS=$ac_check_lib_save_LIBS
31099fi
31100echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_inet_addr" >&5
31101echo "${ECHO_T}$ac_cv_lib_nsl_inet_addr" >&6
31102if test $ac_cv_lib_nsl_inet_addr = yes; then
31103 INET_LINK="nsl"
31104else
31105
31106 echo "$as_me:$LINENO: checking for inet_addr in -lresolv" >&5
31107echo $ECHO_N "checking for inet_addr in -lresolv... $ECHO_C" >&6
31108if test "${ac_cv_lib_resolv_inet_addr+set}" = set; then
31109 echo $ECHO_N "(cached) $ECHO_C" >&6
31110else
31111 ac_check_lib_save_LIBS=$LIBS
31112LIBS="-lresolv $LIBS"
31113cat >conftest.$ac_ext <<_ACEOF
31114/* confdefs.h. */
31115_ACEOF
31116cat confdefs.h >>conftest.$ac_ext
31117cat >>conftest.$ac_ext <<_ACEOF
31118/* end confdefs.h. */
31119
31120/* Override any gcc2 internal prototype to avoid an error. */
31121#ifdef __cplusplus
31122extern "C"
31123#endif
31124/* We use char because int might match the return type of a gcc2
31125 builtin and then its argument prototype would still apply. */
31126char inet_addr ();
31127int
31128main ()
31129{
31130inet_addr ();
31131 ;
31132 return 0;
31133}
31134_ACEOF
31135rm -f conftest.$ac_objext conftest$ac_exeext
31136if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31137 (eval $ac_link) 2>conftest.er1
a848cd7e 31138 ac_status=$?
ac1cb8d3
VS
31139 grep -v '^ *+' conftest.er1 >conftest.err
31140 rm -f conftest.er1
31141 cat conftest.err >&5
a848cd7e
SC
31142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31143 (exit $ac_status); } &&
ffa0583f 31144 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31146 (eval $ac_try) 2>&5
31147 ac_status=$?
31148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31149 (exit $ac_status); }; } &&
31150 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31152 (eval $ac_try) 2>&5
31153 ac_status=$?
31154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31155 (exit $ac_status); }; }; then
31156 ac_cv_lib_resolv_inet_addr=yes
31157else
31158 echo "$as_me: failed program was:" >&5
31159sed 's/^/| /' conftest.$ac_ext >&5
31160
31161ac_cv_lib_resolv_inet_addr=no
31162fi
ac1cb8d3
VS
31163rm -f conftest.err conftest.$ac_objext \
31164 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31165LIBS=$ac_check_lib_save_LIBS
31166fi
31167echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_addr" >&5
31168echo "${ECHO_T}$ac_cv_lib_resolv_inet_addr" >&6
31169if test $ac_cv_lib_resolv_inet_addr = yes; then
31170 INET_LINK="resolv"
31171else
31172
31173 echo "$as_me:$LINENO: checking for inet_addr in -lsocket" >&5
31174echo $ECHO_N "checking for inet_addr in -lsocket... $ECHO_C" >&6
31175if test "${ac_cv_lib_socket_inet_addr+set}" = set; then
31176 echo $ECHO_N "(cached) $ECHO_C" >&6
31177else
31178 ac_check_lib_save_LIBS=$LIBS
31179LIBS="-lsocket $LIBS"
31180cat >conftest.$ac_ext <<_ACEOF
31181/* confdefs.h. */
31182_ACEOF
31183cat confdefs.h >>conftest.$ac_ext
31184cat >>conftest.$ac_ext <<_ACEOF
31185/* end confdefs.h. */
31186
31187/* Override any gcc2 internal prototype to avoid an error. */
31188#ifdef __cplusplus
31189extern "C"
31190#endif
31191/* We use char because int might match the return type of a gcc2
31192 builtin and then its argument prototype would still apply. */
31193char inet_addr ();
31194int
31195main ()
31196{
31197inet_addr ();
31198 ;
31199 return 0;
31200}
31201_ACEOF
31202rm -f conftest.$ac_objext conftest$ac_exeext
31203if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31204 (eval $ac_link) 2>conftest.er1
a848cd7e 31205 ac_status=$?
ac1cb8d3
VS
31206 grep -v '^ *+' conftest.er1 >conftest.err
31207 rm -f conftest.er1
31208 cat conftest.err >&5
a848cd7e
SC
31209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31210 (exit $ac_status); } &&
ffa0583f 31211 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31213 (eval $ac_try) 2>&5
31214 ac_status=$?
31215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31216 (exit $ac_status); }; } &&
31217 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31219 (eval $ac_try) 2>&5
31220 ac_status=$?
31221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31222 (exit $ac_status); }; }; then
31223 ac_cv_lib_socket_inet_addr=yes
31224else
31225 echo "$as_me: failed program was:" >&5
31226sed 's/^/| /' conftest.$ac_ext >&5
31227
31228ac_cv_lib_socket_inet_addr=no
31229fi
ac1cb8d3
VS
31230rm -f conftest.err conftest.$ac_objext \
31231 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31232LIBS=$ac_check_lib_save_LIBS
31233fi
31234echo "$as_me:$LINENO: result: $ac_cv_lib_socket_inet_addr" >&5
31235echo "${ECHO_T}$ac_cv_lib_socket_inet_addr" >&6
31236if test $ac_cv_lib_socket_inet_addr = yes; then
31237 INET_LINK="socket"
31238
31239fi
31240
31241
31242
31243fi
31244
31245
31246
31247fi
31248
31249
31250
31251fi
31252done
31253
31254
31255
31256for ac_func in inet_aton
31257do
31258as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31259echo "$as_me:$LINENO: checking for $ac_func" >&5
31260echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31261if eval "test \"\${$as_ac_var+set}\" = set"; then
31262 echo $ECHO_N "(cached) $ECHO_C" >&6
31263else
31264 cat >conftest.$ac_ext <<_ACEOF
31265/* confdefs.h. */
31266_ACEOF
31267cat confdefs.h >>conftest.$ac_ext
31268cat >>conftest.$ac_ext <<_ACEOF
31269/* end confdefs.h. */
ac1cb8d3
VS
31270/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31271 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31272#define $ac_func innocuous_$ac_func
31273
a848cd7e
SC
31274/* System header to define __stub macros and hopefully few prototypes,
31275 which can conflict with char $ac_func (); below.
31276 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31277 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 31278
a848cd7e
SC
31279#ifdef __STDC__
31280# include <limits.h>
31281#else
31282# include <assert.h>
31283#endif
ac1cb8d3
VS
31284
31285#undef $ac_func
31286
a848cd7e
SC
31287/* Override any gcc2 internal prototype to avoid an error. */
31288#ifdef __cplusplus
31289extern "C"
31290{
31291#endif
31292/* We use char because int might match the return type of a gcc2
31293 builtin and then its argument prototype would still apply. */
31294char $ac_func ();
31295/* The GNU C library defines this for functions which it implements
31296 to always fail with ENOSYS. Some functions are actually named
31297 something starting with __ and the normal name is an alias. */
31298#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31299choke me
31300#else
31301char (*f) () = $ac_func;
31302#endif
31303#ifdef __cplusplus
31304}
31305#endif
31306
31307int
31308main ()
31309{
31310return f != $ac_func;
31311 ;
31312 return 0;
31313}
31314_ACEOF
31315rm -f conftest.$ac_objext conftest$ac_exeext
31316if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31317 (eval $ac_link) 2>conftest.er1
a848cd7e 31318 ac_status=$?
ac1cb8d3
VS
31319 grep -v '^ *+' conftest.er1 >conftest.err
31320 rm -f conftest.er1
31321 cat conftest.err >&5
a848cd7e
SC
31322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31323 (exit $ac_status); } &&
ffa0583f 31324 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31326 (eval $ac_try) 2>&5
31327 ac_status=$?
31328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31329 (exit $ac_status); }; } &&
31330 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31332 (eval $ac_try) 2>&5
31333 ac_status=$?
31334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31335 (exit $ac_status); }; }; then
31336 eval "$as_ac_var=yes"
31337else
31338 echo "$as_me: failed program was:" >&5
31339sed 's/^/| /' conftest.$ac_ext >&5
31340
31341eval "$as_ac_var=no"
31342fi
ac1cb8d3
VS
31343rm -f conftest.err conftest.$ac_objext \
31344 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31345fi
31346echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31347echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31348if test `eval echo '${'$as_ac_var'}'` = yes; then
31349 cat >>confdefs.h <<_ACEOF
31350#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31351_ACEOF
31352 cat >>confdefs.h <<\_ACEOF
31353#define HAVE_INET_ATON 1
31354_ACEOF
31355
31356else
31357
31358 as_ac_Lib=`echo "ac_cv_lib_$INET_LINK''_inet_aton" | $as_tr_sh`
31359echo "$as_me:$LINENO: checking for inet_aton in -l$INET_LINK" >&5
31360echo $ECHO_N "checking for inet_aton in -l$INET_LINK... $ECHO_C" >&6
31361if eval "test \"\${$as_ac_Lib+set}\" = set"; then
31362 echo $ECHO_N "(cached) $ECHO_C" >&6
31363else
31364 ac_check_lib_save_LIBS=$LIBS
31365LIBS="-l$INET_LINK $LIBS"
31366cat >conftest.$ac_ext <<_ACEOF
31367/* confdefs.h. */
31368_ACEOF
31369cat confdefs.h >>conftest.$ac_ext
31370cat >>conftest.$ac_ext <<_ACEOF
31371/* end confdefs.h. */
31372
31373/* Override any gcc2 internal prototype to avoid an error. */
31374#ifdef __cplusplus
31375extern "C"
31376#endif
31377/* We use char because int might match the return type of a gcc2
31378 builtin and then its argument prototype would still apply. */
31379char inet_aton ();
31380int
31381main ()
31382{
31383inet_aton ();
31384 ;
31385 return 0;
31386}
31387_ACEOF
31388rm -f conftest.$ac_objext conftest$ac_exeext
31389if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31390 (eval $ac_link) 2>conftest.er1
a848cd7e 31391 ac_status=$?
ac1cb8d3
VS
31392 grep -v '^ *+' conftest.er1 >conftest.err
31393 rm -f conftest.er1
31394 cat conftest.err >&5
a848cd7e
SC
31395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31396 (exit $ac_status); } &&
ffa0583f 31397 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31399 (eval $ac_try) 2>&5
31400 ac_status=$?
31401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31402 (exit $ac_status); }; } &&
31403 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31405 (eval $ac_try) 2>&5
31406 ac_status=$?
31407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31408 (exit $ac_status); }; }; then
31409 eval "$as_ac_Lib=yes"
31410else
31411 echo "$as_me: failed program was:" >&5
31412sed 's/^/| /' conftest.$ac_ext >&5
31413
31414eval "$as_ac_Lib=no"
31415fi
ac1cb8d3
VS
31416rm -f conftest.err conftest.$ac_objext \
31417 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31418LIBS=$ac_check_lib_save_LIBS
31419fi
31420echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
31421echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
31422if test `eval echo '${'$as_ac_Lib'}'` = yes; then
31423 cat >>confdefs.h <<\_ACEOF
31424#define HAVE_INET_ATON 1
31425_ACEOF
31426
31427fi
31428
31429
31430fi
31431done
31432
31433
31434if test "x$INET_LINK" != "x"; then
31435 cat >>confdefs.h <<\_ACEOF
31436#define HAVE_INET_ADDR 1
31437_ACEOF
31438
31439 INET_LINK=" -l$INET_LINK"
31440fi
31441
31442fi
31443
31444
31445
31446EXTRALIBS_ESD=
31447echo "$as_me:$LINENO: checking for esd_close in -lesd" >&5
31448echo $ECHO_N "checking for esd_close in -lesd... $ECHO_C" >&6
31449if test "${ac_cv_lib_esd_esd_close+set}" = set; then
31450 echo $ECHO_N "(cached) $ECHO_C" >&6
31451else
31452 ac_check_lib_save_LIBS=$LIBS
31453LIBS="-lesd $LIBS"
31454cat >conftest.$ac_ext <<_ACEOF
31455/* confdefs.h. */
31456_ACEOF
31457cat confdefs.h >>conftest.$ac_ext
31458cat >>conftest.$ac_ext <<_ACEOF
31459/* end confdefs.h. */
31460
31461/* Override any gcc2 internal prototype to avoid an error. */
31462#ifdef __cplusplus
31463extern "C"
31464#endif
31465/* We use char because int might match the return type of a gcc2
31466 builtin and then its argument prototype would still apply. */
31467char esd_close ();
31468int
31469main ()
31470{
31471esd_close ();
31472 ;
31473 return 0;
31474}
31475_ACEOF
31476rm -f conftest.$ac_objext conftest$ac_exeext
31477if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31478 (eval $ac_link) 2>conftest.er1
a848cd7e 31479 ac_status=$?
ac1cb8d3
VS
31480 grep -v '^ *+' conftest.er1 >conftest.err
31481 rm -f conftest.er1
31482 cat conftest.err >&5
a848cd7e
SC
31483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31484 (exit $ac_status); } &&
ffa0583f 31485 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31487 (eval $ac_try) 2>&5
31488 ac_status=$?
31489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31490 (exit $ac_status); }; } &&
31491 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31493 (eval $ac_try) 2>&5
31494 ac_status=$?
31495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31496 (exit $ac_status); }; }; then
31497 ac_cv_lib_esd_esd_close=yes
31498else
31499 echo "$as_me: failed program was:" >&5
31500sed 's/^/| /' conftest.$ac_ext >&5
31501
31502ac_cv_lib_esd_esd_close=no
31503fi
ac1cb8d3
VS
31504rm -f conftest.err conftest.$ac_objext \
31505 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31506LIBS=$ac_check_lib_save_LIBS
31507fi
31508echo "$as_me:$LINENO: result: $ac_cv_lib_esd_esd_close" >&5
31509echo "${ECHO_T}$ac_cv_lib_esd_esd_close" >&6
31510if test $ac_cv_lib_esd_esd_close = yes; then
31511
31512
31513for ac_header in esd.h
31514do
31515as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
31516if eval "test \"\${$as_ac_Header+set}\" = set"; then
31517 echo "$as_me:$LINENO: checking for $ac_header" >&5
31518echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31519if eval "test \"\${$as_ac_Header+set}\" = set"; then
31520 echo $ECHO_N "(cached) $ECHO_C" >&6
31521fi
31522echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31523echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31524else
31525 # Is the header compilable?
31526echo "$as_me:$LINENO: checking $ac_header usability" >&5
31527echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
31528cat >conftest.$ac_ext <<_ACEOF
31529/* confdefs.h. */
31530_ACEOF
31531cat confdefs.h >>conftest.$ac_ext
31532cat >>conftest.$ac_ext <<_ACEOF
31533/* end confdefs.h. */
31534$ac_includes_default
31535#include <$ac_header>
31536_ACEOF
31537rm -f conftest.$ac_objext
31538if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 31539 (eval $ac_compile) 2>conftest.er1
a848cd7e 31540 ac_status=$?
ac1cb8d3
VS
31541 grep -v '^ *+' conftest.er1 >conftest.err
31542 rm -f conftest.er1
31543 cat conftest.err >&5
a848cd7e
SC
31544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31545 (exit $ac_status); } &&
ffa0583f 31546 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31548 (eval $ac_try) 2>&5
31549 ac_status=$?
31550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31551 (exit $ac_status); }; } &&
31552 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
31553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31554 (eval $ac_try) 2>&5
31555 ac_status=$?
31556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31557 (exit $ac_status); }; }; then
31558 ac_header_compiler=yes
31559else
31560 echo "$as_me: failed program was:" >&5
31561sed 's/^/| /' conftest.$ac_ext >&5
31562
31563ac_header_compiler=no
31564fi
ac1cb8d3 31565rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
31566echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31567echo "${ECHO_T}$ac_header_compiler" >&6
31568
31569# Is the header present?
31570echo "$as_me:$LINENO: checking $ac_header presence" >&5
31571echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
31572cat >conftest.$ac_ext <<_ACEOF
31573/* confdefs.h. */
31574_ACEOF
31575cat confdefs.h >>conftest.$ac_ext
31576cat >>conftest.$ac_ext <<_ACEOF
31577/* end confdefs.h. */
31578#include <$ac_header>
31579_ACEOF
31580if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
31581 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
31582 ac_status=$?
31583 grep -v '^ *+' conftest.er1 >conftest.err
31584 rm -f conftest.er1
31585 cat conftest.err >&5
31586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31587 (exit $ac_status); } >/dev/null; then
31588 if test -s conftest.err; then
31589 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 31590 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
31591 else
31592 ac_cpp_err=
31593 fi
31594else
31595 ac_cpp_err=yes
31596fi
31597if test -z "$ac_cpp_err"; then
31598 ac_header_preproc=yes
31599else
31600 echo "$as_me: failed program was:" >&5
31601sed 's/^/| /' conftest.$ac_ext >&5
31602
31603 ac_header_preproc=no
31604fi
31605rm -f conftest.err conftest.$ac_ext
31606echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31607echo "${ECHO_T}$ac_header_preproc" >&6
31608
31609# So? What about this header?
ac1cb8d3
VS
31610case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31611 yes:no: )
a848cd7e
SC
31612 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
31613echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
31614 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
31615echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
31616 ac_header_preproc=yes
a848cd7e 31617 ;;
ac1cb8d3 31618 no:yes:* )
a848cd7e
SC
31619 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
31620echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
31621 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
31622echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
31623 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
31624echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
31625 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
31626echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
31627 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
31628echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
31629 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
31630echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
31631 (
31632 cat <<\_ASBOX
ac1cb8d3
VS
31633## ----------------------------------------- ##
31634## Report this to wx-dev@lists.wxwidgets.org ##
31635## ----------------------------------------- ##
a848cd7e
SC
31636_ASBOX
31637 ) |
31638 sed "s/^/$as_me: WARNING: /" >&2
31639 ;;
31640esac
31641echo "$as_me:$LINENO: checking for $ac_header" >&5
31642echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31643if eval "test \"\${$as_ac_Header+set}\" = set"; then
31644 echo $ECHO_N "(cached) $ECHO_C" >&6
31645else
ac1cb8d3 31646 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
31647fi
31648echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31649echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31650
31651fi
31652if test `eval echo '${'$as_ac_Header'}'` = yes; then
31653 cat >>confdefs.h <<_ACEOF
31654#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
31655_ACEOF
31656
31657 EXTRALIBS_ESD="-lesd"
31658
31659fi
31660
31661done
31662
31663
31664fi
31665
31666
31667
31668echo "$as_me:$LINENO: checking for known CD-ROM interface" >&5
31669echo $ECHO_N "checking for known CD-ROM interface... $ECHO_C" >&6
31670cat >conftest.$ac_ext <<_ACEOF
31671/* confdefs.h. */
31672_ACEOF
31673cat confdefs.h >>conftest.$ac_ext
31674cat >>conftest.$ac_ext <<_ACEOF
31675/* end confdefs.h. */
31676#ifdef __linux__
31677 #include <linux/cdrom.h>
31678 #else
31679 /* For Solaris */
31680 #include <sys/cdio.h>
31681 #endif
31682
31683int
31684main ()
31685{
31686struct cdrom_tocentry entry, old_entry;
31687 ;
31688 return 0;
31689}
31690_ACEOF
31691rm -f conftest.$ac_objext
31692if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 31693 (eval $ac_compile) 2>conftest.er1
a848cd7e 31694 ac_status=$?
ac1cb8d3
VS
31695 grep -v '^ *+' conftest.er1 >conftest.err
31696 rm -f conftest.er1
31697 cat conftest.err >&5
a848cd7e
SC
31698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31699 (exit $ac_status); } &&
ffa0583f 31700 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
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); }; } &&
31706 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
31707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31708 (eval $ac_try) 2>&5
31709 ac_status=$?
31710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31711 (exit $ac_status); }; }; then
31712 echo "$as_me:$LINENO: result: yes" >&5
31713echo "${ECHO_T}yes" >&6
31714 cat >>confdefs.h <<\_ACEOF
31715#define HAVE_KNOWN_CDROM_INTERFACE 1
31716_ACEOF
31717
31718else
31719 echo "$as_me: failed program was:" >&5
31720sed 's/^/| /' conftest.$ac_ext >&5
31721
31722echo "$as_me:$LINENO: result: no" >&5
31723echo "${ECHO_T}no" >&6
31724fi
ac1cb8d3 31725rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
31726
31727
31728cat >confcache <<\_ACEOF
31729# This file is a shell script that caches the results of configure
31730# tests run on this system so they can be shared between configure
31731# scripts and configure runs, see configure's option --config-cache.
31732# It is not useful on other systems. If it contains results you don't
31733# want to keep, you may remove or edit it.
31734#
31735# config.status only pays attention to the cache file if you give it
31736# the --recheck option to rerun configure.
31737#
31738# `ac_cv_env_foo' variables (set or unset) will be overridden when
31739# loading this file, other *unset* `ac_cv_foo' will be assigned the
31740# following values.
31741
31742_ACEOF
31743
31744# The following way of writing the cache mishandles newlines in values,
31745# but we know of no workaround that is simple, portable, and efficient.
31746# So, don't put newlines in cache variables' values.
31747# Ultrix sh set writes to stderr and can't be redirected directly,
31748# and sets the high bit in the cache file unless we assign to the vars.
31749{
31750 (set) 2>&1 |
31751 case `(ac_space=' '; set | grep ac_space) 2>&1` in
31752 *ac_space=\ *)
31753 # `set' does not quote correctly, so add quotes (double-quote
31754 # substitution turns \\\\ into \\, and sed turns \\ into \).
31755 sed -n \
ac1cb8d3
VS
31756 "s/'/'\\\\''/g;
31757 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a848cd7e
SC
31758 ;;
31759 *)
31760 # `set' quotes correctly as required by POSIX, so do not add quotes.
31761 sed -n \
ac1cb8d3 31762 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
31763 ;;
31764 esac;
31765} |
31766 sed '
31767 t clear
31768 : clear
31769 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
31770 t end
31771 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
31772 : end' >>confcache
31773if diff $cache_file confcache >/dev/null 2>&1; then :; else
31774 if test -w $cache_file; then
31775 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
31776 cat confcache >$cache_file
31777 else
31778 echo "not updating unwritable cache $cache_file"
31779 fi
31780fi
31781rm -f confcache
31782
31783
31784CPP_MT_FLAG=
31785if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then
31786
31787
31788 THREADS_LINK=
31789 THREADS_CFLAGS=
31790
31791 if test "$wxUSE_THREADS" = "yes" ; then
31792 if test "$USE_BEOS" = 1; then
31793 { echo "$as_me:$LINENO: WARNING: BeOS threads are not yet supported... disabled" >&5
31794echo "$as_me: WARNING: BeOS threads are not yet supported... disabled" >&2;}
31795 wxUSE_THREADS="no"
31796 fi
31797 fi
31798
31799 if test "$wxUSE_THREADS" = "yes" ; then
31800
31801
31802 THREAD_OPTS="-pthread"
31803 case "${host}" in
31804 *-*-solaris2* | *-*-sunos4* )
31805 if test "x$GCC" = "xyes"; then
31806 THREAD_OPTS="-pthreads $THREAD_OPTS"
31807 else
31808 THREAD_OPTS="-mt $THREAD_OPTS"
31809 fi
31810 ;;
31811 *-*-freebsd*)
31812 THREAD_OPTS="-kthread lthread $THREAD_OPTS c_r"
31813 ;;
31814 *-*-darwin* | *-*-cygwin* )
31815 THREAD_OPTS=""
31816 ;;
31817 *-*-aix*)
31818 THREAD_OPTS="pthreads"
31819 ;;
31820 *-hp-hpux* )
31821 if test "x$GCC" != "xyes"; then
31822 THREAD_OPTS=""
31823 fi
31824 ;;
31825
31826 *-*-irix* )
31827 if test "x$GCC" = "xyes"; then
31828 THREAD_OPTS=""
31829 fi
31830 ;;
31831
31832 *-*-*UnixWare*)
31833 if test "x$GCC" != "xyes"; then
31834 THREAD_OPTS="-Ethread"
31835 fi
31836 ;;
31837 esac
31838
31839 THREAD_OPTS="$THREAD_OPTS pthread none"
31840
31841 THREADS_OK=no
31842 for flag in $THREAD_OPTS; do
31843 case $flag in
31844 none)
31845 echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
31846echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6
31847 ;;
31848
31849 -*)
31850 echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
31851echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6
31852 THREADS_CFLAGS="$flag"
31853 ;;
31854
31855 *)
31856 echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
31857echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6
31858 THREADS_LINK="-l$flag"
31859 ;;
31860 esac
31861
31862 save_LIBS="$LIBS"
31863 save_CFLAGS="$CFLAGS"
31864 LIBS="$THREADS_LINK $LIBS"
31865 CFLAGS="$THREADS_CFLAGS $CFLAGS"
31866
31867 cat >conftest.$ac_ext <<_ACEOF
31868/* confdefs.h. */
31869_ACEOF
31870cat confdefs.h >>conftest.$ac_ext
31871cat >>conftest.$ac_ext <<_ACEOF
31872/* end confdefs.h. */
31873#include <pthread.h>
31874int
31875main ()
31876{
31877pthread_create(0,0,0,0);
31878 ;
31879 return 0;
31880}
31881_ACEOF
31882rm -f conftest.$ac_objext conftest$ac_exeext
31883if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31884 (eval $ac_link) 2>conftest.er1
a848cd7e 31885 ac_status=$?
ac1cb8d3
VS
31886 grep -v '^ *+' conftest.er1 >conftest.err
31887 rm -f conftest.er1
31888 cat conftest.err >&5
a848cd7e
SC
31889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31890 (exit $ac_status); } &&
ffa0583f 31891 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31893 (eval $ac_try) 2>&5
31894 ac_status=$?
31895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31896 (exit $ac_status); }; } &&
31897 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31899 (eval $ac_try) 2>&5
31900 ac_status=$?
31901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31902 (exit $ac_status); }; }; then
31903 THREADS_OK=yes
31904else
31905 echo "$as_me: failed program was:" >&5
31906sed 's/^/| /' conftest.$ac_ext >&5
31907
31908fi
ac1cb8d3
VS
31909rm -f conftest.err conftest.$ac_objext \
31910 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31911
31912 LIBS="$save_LIBS"
31913 CFLAGS="$save_CFLAGS"
31914
31915 echo "$as_me:$LINENO: result: $THREADS_OK" >&5
31916echo "${ECHO_T}$THREADS_OK" >&6
31917 if test "x$THREADS_OK" = "xyes"; then
31918 break;
31919 fi
31920
31921 THREADS_LINK=""
31922 THREADS_CFLAGS=""
31923 done
31924
31925 if test "x$THREADS_OK" != "xyes"; then
31926 wxUSE_THREADS=no
31927 { echo "$as_me:$LINENO: WARNING: No thread support on this system... disabled" >&5
31928echo "$as_me: WARNING: No thread support on this system... disabled" >&2;}
31929 else
31930 LDFLAGS="$THREADS_CFLAGS $LDFLAGS"
31931 LIBS="$THREADS_LINK $LIBS"
31932
31933 echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
31934echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6
31935 flag=no
31936 case "${host}" in
31937 *-aix*)
31938 LDFLAGS="-L/usr/lib/threads $LDFLAGS"
31939 flag="-D_THREAD_SAFE"
31940 ;;
31941 *-freebsd*)
31942 flag="-D_THREAD_SAFE"
31943 ;;
31944 *-hp-hpux* )
31945 flag="-D_REENTRANT"
31946 if test "x$GCC" != "xyes"; then
31947 flag="$flag -D_RWSTD_MULTI_THREAD"
473276a9
VS
31948
31949 LIBS="$LIBS -lcma"
a848cd7e
SC
31950 fi
31951 ;;
31952 *solaris* | alpha*-osf*)
31953 flag="-D_REENTRANT"
31954 ;;
31955 esac
31956 echo "$as_me:$LINENO: result: ${flag}" >&5
31957echo "${ECHO_T}${flag}" >&6
31958 if test "x$flag" != xno; then
31959 THREADS_CFLAGS="$THREADS_CFLAGS $flag"
31960 fi
31961
31962 if test "x$THREADS_CFLAGS" != "x"; then
31963 CFLAGS="$CFLAGS $THREADS_CFLAGS"
31964 CXXFLAGS="$CXXFLAGS $THREADS_CFLAGS"
31965 fi
31966 fi
31967 fi
31968
31969 if test "$wxUSE_THREADS" = "yes" ; then
31970
31971for ac_func in thr_setconcurrency
31972do
31973as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31974echo "$as_me:$LINENO: checking for $ac_func" >&5
31975echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31976if eval "test \"\${$as_ac_var+set}\" = set"; then
31977 echo $ECHO_N "(cached) $ECHO_C" >&6
31978else
31979 cat >conftest.$ac_ext <<_ACEOF
31980/* confdefs.h. */
31981_ACEOF
31982cat confdefs.h >>conftest.$ac_ext
31983cat >>conftest.$ac_ext <<_ACEOF
31984/* end confdefs.h. */
ac1cb8d3
VS
31985/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31986 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31987#define $ac_func innocuous_$ac_func
31988
a848cd7e
SC
31989/* System header to define __stub macros and hopefully few prototypes,
31990 which can conflict with char $ac_func (); below.
31991 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31992 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 31993
a848cd7e
SC
31994#ifdef __STDC__
31995# include <limits.h>
31996#else
31997# include <assert.h>
31998#endif
ac1cb8d3
VS
31999
32000#undef $ac_func
32001
a848cd7e
SC
32002/* Override any gcc2 internal prototype to avoid an error. */
32003#ifdef __cplusplus
32004extern "C"
32005{
32006#endif
32007/* We use char because int might match the return type of a gcc2
32008 builtin and then its argument prototype would still apply. */
32009char $ac_func ();
32010/* The GNU C library defines this for functions which it implements
32011 to always fail with ENOSYS. Some functions are actually named
32012 something starting with __ and the normal name is an alias. */
32013#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32014choke me
32015#else
32016char (*f) () = $ac_func;
32017#endif
32018#ifdef __cplusplus
32019}
32020#endif
32021
32022int
32023main ()
32024{
32025return f != $ac_func;
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); } &&
ffa0583f 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 eval "$as_ac_var=yes"
32052else
32053 echo "$as_me: failed program was:" >&5
32054sed 's/^/| /' conftest.$ac_ext >&5
32055
32056eval "$as_ac_var=no"
32057fi
ac1cb8d3
VS
32058rm -f conftest.err conftest.$ac_objext \
32059 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32060fi
32061echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32062echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32063if test `eval echo '${'$as_ac_var'}'` = yes; then
32064 cat >>confdefs.h <<_ACEOF
32065#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32066_ACEOF
32067
32068fi
32069done
32070
32071
32072
32073for ac_header in sched.h
32074do
32075as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
32076if eval "test \"\${$as_ac_Header+set}\" = set"; then
32077 echo "$as_me:$LINENO: checking for $ac_header" >&5
32078echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
32079if eval "test \"\${$as_ac_Header+set}\" = set"; then
32080 echo $ECHO_N "(cached) $ECHO_C" >&6
32081fi
32082echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
32083echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
32084else
32085 # Is the header compilable?
32086echo "$as_me:$LINENO: checking $ac_header usability" >&5
32087echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
32088cat >conftest.$ac_ext <<_ACEOF
32089/* confdefs.h. */
32090_ACEOF
32091cat confdefs.h >>conftest.$ac_ext
32092cat >>conftest.$ac_ext <<_ACEOF
32093/* end confdefs.h. */
32094$ac_includes_default
32095#include <$ac_header>
32096_ACEOF
32097rm -f conftest.$ac_objext
32098if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 32099 (eval $ac_compile) 2>conftest.er1
a848cd7e 32100 ac_status=$?
ac1cb8d3
VS
32101 grep -v '^ *+' conftest.er1 >conftest.err
32102 rm -f conftest.er1
32103 cat conftest.err >&5
a848cd7e
SC
32104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32105 (exit $ac_status); } &&
ffa0583f 32106 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32108 (eval $ac_try) 2>&5
32109 ac_status=$?
32110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32111 (exit $ac_status); }; } &&
32112 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
32113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32114 (eval $ac_try) 2>&5
32115 ac_status=$?
32116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32117 (exit $ac_status); }; }; then
32118 ac_header_compiler=yes
32119else
32120 echo "$as_me: failed program was:" >&5
32121sed 's/^/| /' conftest.$ac_ext >&5
32122
32123ac_header_compiler=no
32124fi
ac1cb8d3 32125rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
32126echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32127echo "${ECHO_T}$ac_header_compiler" >&6
32128
32129# Is the header present?
32130echo "$as_me:$LINENO: checking $ac_header presence" >&5
32131echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
32132cat >conftest.$ac_ext <<_ACEOF
32133/* confdefs.h. */
32134_ACEOF
32135cat confdefs.h >>conftest.$ac_ext
32136cat >>conftest.$ac_ext <<_ACEOF
32137/* end confdefs.h. */
32138#include <$ac_header>
32139_ACEOF
32140if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
32141 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
32142 ac_status=$?
32143 grep -v '^ *+' conftest.er1 >conftest.err
32144 rm -f conftest.er1
32145 cat conftest.err >&5
32146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32147 (exit $ac_status); } >/dev/null; then
32148 if test -s conftest.err; then
32149 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 32150 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
32151 else
32152 ac_cpp_err=
32153 fi
32154else
32155 ac_cpp_err=yes
32156fi
32157if test -z "$ac_cpp_err"; then
32158 ac_header_preproc=yes
32159else
32160 echo "$as_me: failed program was:" >&5
32161sed 's/^/| /' conftest.$ac_ext >&5
32162
32163 ac_header_preproc=no
32164fi
32165rm -f conftest.err conftest.$ac_ext
32166echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32167echo "${ECHO_T}$ac_header_preproc" >&6
32168
32169# So? What about this header?
ac1cb8d3
VS
32170case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32171 yes:no: )
a848cd7e
SC
32172 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
32173echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
32174 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
32175echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
32176 ac_header_preproc=yes
a848cd7e 32177 ;;
ac1cb8d3 32178 no:yes:* )
a848cd7e
SC
32179 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
32180echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
32181 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
32182echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
32183 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
32184echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
32185 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
32186echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
32187 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
32188echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
32189 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
32190echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
32191 (
32192 cat <<\_ASBOX
ac1cb8d3
VS
32193## ----------------------------------------- ##
32194## Report this to wx-dev@lists.wxwidgets.org ##
32195## ----------------------------------------- ##
a848cd7e
SC
32196_ASBOX
32197 ) |
32198 sed "s/^/$as_me: WARNING: /" >&2
32199 ;;
32200esac
32201echo "$as_me:$LINENO: checking for $ac_header" >&5
32202echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
32203if eval "test \"\${$as_ac_Header+set}\" = set"; then
32204 echo $ECHO_N "(cached) $ECHO_C" >&6
32205else
ac1cb8d3 32206 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
32207fi
32208echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
32209echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
32210
32211fi
32212if test `eval echo '${'$as_ac_Header'}'` = yes; then
32213 cat >>confdefs.h <<_ACEOF
32214#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
32215_ACEOF
32216
32217fi
32218
32219done
32220
32221 if test "$ac_cv_header_sched_h" = "yes"; then
32222 echo "$as_me:$LINENO: checking for sched_yield" >&5
32223echo $ECHO_N "checking for sched_yield... $ECHO_C" >&6
32224if test "${ac_cv_func_sched_yield+set}" = set; then
32225 echo $ECHO_N "(cached) $ECHO_C" >&6
32226else
32227 cat >conftest.$ac_ext <<_ACEOF
32228/* confdefs.h. */
32229_ACEOF
32230cat confdefs.h >>conftest.$ac_ext
32231cat >>conftest.$ac_ext <<_ACEOF
32232/* end confdefs.h. */
ac1cb8d3
VS
32233/* Define sched_yield to an innocuous variant, in case <limits.h> declares sched_yield.
32234 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32235#define sched_yield innocuous_sched_yield
32236
a848cd7e
SC
32237/* System header to define __stub macros and hopefully few prototypes,
32238 which can conflict with char sched_yield (); below.
32239 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32240 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 32241
a848cd7e
SC
32242#ifdef __STDC__
32243# include <limits.h>
32244#else
32245# include <assert.h>
32246#endif
ac1cb8d3
VS
32247
32248#undef sched_yield
32249
a848cd7e
SC
32250/* Override any gcc2 internal prototype to avoid an error. */
32251#ifdef __cplusplus
32252extern "C"
32253{
32254#endif
32255/* We use char because int might match the return type of a gcc2
32256 builtin and then its argument prototype would still apply. */
32257char sched_yield ();
32258/* The GNU C library defines this for functions which it implements
32259 to always fail with ENOSYS. Some functions are actually named
32260 something starting with __ and the normal name is an alias. */
32261#if defined (__stub_sched_yield) || defined (__stub___sched_yield)
32262choke me
32263#else
32264char (*f) () = sched_yield;
32265#endif
32266#ifdef __cplusplus
32267}
32268#endif
32269
32270int
32271main ()
32272{
32273return f != sched_yield;
32274 ;
32275 return 0;
32276}
32277_ACEOF
32278rm -f conftest.$ac_objext conftest$ac_exeext
32279if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32280 (eval $ac_link) 2>conftest.er1
a848cd7e 32281 ac_status=$?
ac1cb8d3
VS
32282 grep -v '^ *+' conftest.er1 >conftest.err
32283 rm -f conftest.er1
32284 cat conftest.err >&5
a848cd7e
SC
32285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32286 (exit $ac_status); } &&
ffa0583f 32287 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32289 (eval $ac_try) 2>&5
32290 ac_status=$?
32291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32292 (exit $ac_status); }; } &&
32293 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32295 (eval $ac_try) 2>&5
32296 ac_status=$?
32297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32298 (exit $ac_status); }; }; then
32299 ac_cv_func_sched_yield=yes
32300else
32301 echo "$as_me: failed program was:" >&5
32302sed 's/^/| /' conftest.$ac_ext >&5
32303
32304ac_cv_func_sched_yield=no
32305fi
ac1cb8d3
VS
32306rm -f conftest.err conftest.$ac_objext \
32307 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32308fi
32309echo "$as_me:$LINENO: result: $ac_cv_func_sched_yield" >&5
32310echo "${ECHO_T}$ac_cv_func_sched_yield" >&6
32311if test $ac_cv_func_sched_yield = yes; then
32312 cat >>confdefs.h <<\_ACEOF
32313#define HAVE_SCHED_YIELD 1
32314_ACEOF
32315
32316else
32317
32318 echo "$as_me:$LINENO: checking for sched_yield in -lposix4" >&5
32319echo $ECHO_N "checking for sched_yield in -lposix4... $ECHO_C" >&6
32320if test "${ac_cv_lib_posix4_sched_yield+set}" = set; then
32321 echo $ECHO_N "(cached) $ECHO_C" >&6
32322else
32323 ac_check_lib_save_LIBS=$LIBS
32324LIBS="-lposix4 $LIBS"
32325cat >conftest.$ac_ext <<_ACEOF
32326/* confdefs.h. */
32327_ACEOF
32328cat confdefs.h >>conftest.$ac_ext
32329cat >>conftest.$ac_ext <<_ACEOF
32330/* end confdefs.h. */
32331
32332/* Override any gcc2 internal prototype to avoid an error. */
32333#ifdef __cplusplus
32334extern "C"
32335#endif
32336/* We use char because int might match the return type of a gcc2
32337 builtin and then its argument prototype would still apply. */
32338char sched_yield ();
32339int
32340main ()
32341{
32342sched_yield ();
32343 ;
32344 return 0;
32345}
32346_ACEOF
32347rm -f conftest.$ac_objext conftest$ac_exeext
32348if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32349 (eval $ac_link) 2>conftest.er1
a848cd7e 32350 ac_status=$?
ac1cb8d3
VS
32351 grep -v '^ *+' conftest.er1 >conftest.err
32352 rm -f conftest.er1
32353 cat conftest.err >&5
a848cd7e
SC
32354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32355 (exit $ac_status); } &&
ffa0583f 32356 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32358 (eval $ac_try) 2>&5
32359 ac_status=$?
32360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32361 (exit $ac_status); }; } &&
32362 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32364 (eval $ac_try) 2>&5
32365 ac_status=$?
32366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32367 (exit $ac_status); }; }; then
32368 ac_cv_lib_posix4_sched_yield=yes
32369else
32370 echo "$as_me: failed program was:" >&5
32371sed 's/^/| /' conftest.$ac_ext >&5
32372
32373ac_cv_lib_posix4_sched_yield=no
32374fi
ac1cb8d3
VS
32375rm -f conftest.err conftest.$ac_objext \
32376 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32377LIBS=$ac_check_lib_save_LIBS
32378fi
32379echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_yield" >&5
32380echo "${ECHO_T}$ac_cv_lib_posix4_sched_yield" >&6
32381if test $ac_cv_lib_posix4_sched_yield = yes; then
32382 cat >>confdefs.h <<\_ACEOF
32383#define HAVE_SCHED_YIELD 1
32384_ACEOF
32385 POSIX4_LINK=" -lposix4"
32386else
32387 { echo "$as_me:$LINENO: WARNING: wxThread::Yield will not work properly" >&5
32388echo "$as_me: WARNING: wxThread::Yield will not work properly" >&2;}
32389
32390fi
32391
32392
32393
32394fi
32395
32396 fi
32397
32398 HAVE_PRIOR_FUNCS=0
32399 echo "$as_me:$LINENO: checking for pthread_attr_getschedpolicy" >&5
32400echo $ECHO_N "checking for pthread_attr_getschedpolicy... $ECHO_C" >&6
32401if test "${ac_cv_func_pthread_attr_getschedpolicy+set}" = set; then
32402 echo $ECHO_N "(cached) $ECHO_C" >&6
32403else
32404 cat >conftest.$ac_ext <<_ACEOF
32405/* confdefs.h. */
32406_ACEOF
32407cat confdefs.h >>conftest.$ac_ext
32408cat >>conftest.$ac_ext <<_ACEOF
32409/* end confdefs.h. */
ac1cb8d3
VS
32410/* Define pthread_attr_getschedpolicy to an innocuous variant, in case <limits.h> declares pthread_attr_getschedpolicy.
32411 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32412#define pthread_attr_getschedpolicy innocuous_pthread_attr_getschedpolicy
32413
a848cd7e
SC
32414/* System header to define __stub macros and hopefully few prototypes,
32415 which can conflict with char pthread_attr_getschedpolicy (); below.
32416 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32417 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 32418
a848cd7e
SC
32419#ifdef __STDC__
32420# include <limits.h>
32421#else
32422# include <assert.h>
32423#endif
ac1cb8d3
VS
32424
32425#undef pthread_attr_getschedpolicy
32426
a848cd7e
SC
32427/* Override any gcc2 internal prototype to avoid an error. */
32428#ifdef __cplusplus
32429extern "C"
32430{
32431#endif
32432/* We use char because int might match the return type of a gcc2
32433 builtin and then its argument prototype would still apply. */
32434char pthread_attr_getschedpolicy ();
32435/* The GNU C library defines this for functions which it implements
32436 to always fail with ENOSYS. Some functions are actually named
32437 something starting with __ and the normal name is an alias. */
32438#if defined (__stub_pthread_attr_getschedpolicy) || defined (__stub___pthread_attr_getschedpolicy)
32439choke me
32440#else
32441char (*f) () = pthread_attr_getschedpolicy;
32442#endif
32443#ifdef __cplusplus
32444}
32445#endif
32446
32447int
32448main ()
32449{
32450return f != pthread_attr_getschedpolicy;
32451 ;
32452 return 0;
32453}
32454_ACEOF
32455rm -f conftest.$ac_objext conftest$ac_exeext
32456if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32457 (eval $ac_link) 2>conftest.er1
a848cd7e 32458 ac_status=$?
ac1cb8d3
VS
32459 grep -v '^ *+' conftest.er1 >conftest.err
32460 rm -f conftest.er1
32461 cat conftest.err >&5
a848cd7e
SC
32462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32463 (exit $ac_status); } &&
ffa0583f 32464 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32466 (eval $ac_try) 2>&5
32467 ac_status=$?
32468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32469 (exit $ac_status); }; } &&
32470 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32472 (eval $ac_try) 2>&5
32473 ac_status=$?
32474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32475 (exit $ac_status); }; }; then
32476 ac_cv_func_pthread_attr_getschedpolicy=yes
32477else
32478 echo "$as_me: failed program was:" >&5
32479sed 's/^/| /' conftest.$ac_ext >&5
32480
32481ac_cv_func_pthread_attr_getschedpolicy=no
32482fi
ac1cb8d3
VS
32483rm -f conftest.err conftest.$ac_objext \
32484 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32485fi
32486echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_getschedpolicy" >&5
32487echo "${ECHO_T}$ac_cv_func_pthread_attr_getschedpolicy" >&6
32488if test $ac_cv_func_pthread_attr_getschedpolicy = yes; then
32489 echo "$as_me:$LINENO: checking for pthread_attr_setschedparam" >&5
32490echo $ECHO_N "checking for pthread_attr_setschedparam... $ECHO_C" >&6
32491if test "${ac_cv_func_pthread_attr_setschedparam+set}" = set; then
32492 echo $ECHO_N "(cached) $ECHO_C" >&6
32493else
32494 cat >conftest.$ac_ext <<_ACEOF
32495/* confdefs.h. */
32496_ACEOF
32497cat confdefs.h >>conftest.$ac_ext
32498cat >>conftest.$ac_ext <<_ACEOF
32499/* end confdefs.h. */
ac1cb8d3
VS
32500/* Define pthread_attr_setschedparam to an innocuous variant, in case <limits.h> declares pthread_attr_setschedparam.
32501 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32502#define pthread_attr_setschedparam innocuous_pthread_attr_setschedparam
32503
a848cd7e
SC
32504/* System header to define __stub macros and hopefully few prototypes,
32505 which can conflict with char pthread_attr_setschedparam (); below.
32506 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32507 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 32508
a848cd7e
SC
32509#ifdef __STDC__
32510# include <limits.h>
32511#else
32512# include <assert.h>
32513#endif
ac1cb8d3
VS
32514
32515#undef pthread_attr_setschedparam
32516
a848cd7e
SC
32517/* Override any gcc2 internal prototype to avoid an error. */
32518#ifdef __cplusplus
32519extern "C"
32520{
32521#endif
32522/* We use char because int might match the return type of a gcc2
32523 builtin and then its argument prototype would still apply. */
32524char pthread_attr_setschedparam ();
32525/* The GNU C library defines this for functions which it implements
32526 to always fail with ENOSYS. Some functions are actually named
32527 something starting with __ and the normal name is an alias. */
32528#if defined (__stub_pthread_attr_setschedparam) || defined (__stub___pthread_attr_setschedparam)
32529choke me
32530#else
32531char (*f) () = pthread_attr_setschedparam;
32532#endif
32533#ifdef __cplusplus
32534}
32535#endif
32536
32537int
32538main ()
32539{
32540return f != pthread_attr_setschedparam;
32541 ;
32542 return 0;
32543}
32544_ACEOF
32545rm -f conftest.$ac_objext conftest$ac_exeext
32546if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32547 (eval $ac_link) 2>conftest.er1
a848cd7e 32548 ac_status=$?
ac1cb8d3
VS
32549 grep -v '^ *+' conftest.er1 >conftest.err
32550 rm -f conftest.er1
32551 cat conftest.err >&5
a848cd7e
SC
32552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32553 (exit $ac_status); } &&
ffa0583f 32554 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32556 (eval $ac_try) 2>&5
32557 ac_status=$?
32558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32559 (exit $ac_status); }; } &&
32560 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32562 (eval $ac_try) 2>&5
32563 ac_status=$?
32564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32565 (exit $ac_status); }; }; then
32566 ac_cv_func_pthread_attr_setschedparam=yes
32567else
32568 echo "$as_me: failed program was:" >&5
32569sed 's/^/| /' conftest.$ac_ext >&5
32570
32571ac_cv_func_pthread_attr_setschedparam=no
32572fi
ac1cb8d3
VS
32573rm -f conftest.err conftest.$ac_objext \
32574 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32575fi
32576echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_setschedparam" >&5
32577echo "${ECHO_T}$ac_cv_func_pthread_attr_setschedparam" >&6
32578if test $ac_cv_func_pthread_attr_setschedparam = yes; then
32579 echo "$as_me:$LINENO: checking for sched_get_priority_max" >&5
32580echo $ECHO_N "checking for sched_get_priority_max... $ECHO_C" >&6
32581if test "${ac_cv_func_sched_get_priority_max+set}" = set; then
32582 echo $ECHO_N "(cached) $ECHO_C" >&6
32583else
32584 cat >conftest.$ac_ext <<_ACEOF
32585/* confdefs.h. */
32586_ACEOF
32587cat confdefs.h >>conftest.$ac_ext
32588cat >>conftest.$ac_ext <<_ACEOF
32589/* end confdefs.h. */
ac1cb8d3
VS
32590/* Define sched_get_priority_max to an innocuous variant, in case <limits.h> declares sched_get_priority_max.
32591 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32592#define sched_get_priority_max innocuous_sched_get_priority_max
32593
a848cd7e
SC
32594/* System header to define __stub macros and hopefully few prototypes,
32595 which can conflict with char sched_get_priority_max (); below.
32596 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32597 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 32598
a848cd7e
SC
32599#ifdef __STDC__
32600# include <limits.h>
32601#else
32602# include <assert.h>
32603#endif
ac1cb8d3
VS
32604
32605#undef sched_get_priority_max
32606
a848cd7e
SC
32607/* Override any gcc2 internal prototype to avoid an error. */
32608#ifdef __cplusplus
32609extern "C"
32610{
32611#endif
32612/* We use char because int might match the return type of a gcc2
32613 builtin and then its argument prototype would still apply. */
32614char sched_get_priority_max ();
32615/* The GNU C library defines this for functions which it implements
32616 to always fail with ENOSYS. Some functions are actually named
32617 something starting with __ and the normal name is an alias. */
32618#if defined (__stub_sched_get_priority_max) || defined (__stub___sched_get_priority_max)
32619choke me
32620#else
32621char (*f) () = sched_get_priority_max;
32622#endif
32623#ifdef __cplusplus
32624}
32625#endif
32626
32627int
32628main ()
32629{
32630return f != sched_get_priority_max;
32631 ;
32632 return 0;
32633}
32634_ACEOF
32635rm -f conftest.$ac_objext conftest$ac_exeext
32636if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32637 (eval $ac_link) 2>conftest.er1
a848cd7e 32638 ac_status=$?
ac1cb8d3
VS
32639 grep -v '^ *+' conftest.er1 >conftest.err
32640 rm -f conftest.er1
32641 cat conftest.err >&5
a848cd7e
SC
32642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32643 (exit $ac_status); } &&
ffa0583f 32644 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32646 (eval $ac_try) 2>&5
32647 ac_status=$?
32648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32649 (exit $ac_status); }; } &&
32650 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32652 (eval $ac_try) 2>&5
32653 ac_status=$?
32654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32655 (exit $ac_status); }; }; then
32656 ac_cv_func_sched_get_priority_max=yes
32657else
32658 echo "$as_me: failed program was:" >&5
32659sed 's/^/| /' conftest.$ac_ext >&5
32660
32661ac_cv_func_sched_get_priority_max=no
32662fi
ac1cb8d3
VS
32663rm -f conftest.err conftest.$ac_objext \
32664 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32665fi
32666echo "$as_me:$LINENO: result: $ac_cv_func_sched_get_priority_max" >&5
32667echo "${ECHO_T}$ac_cv_func_sched_get_priority_max" >&6
32668if test $ac_cv_func_sched_get_priority_max = yes; then
32669 HAVE_PRIOR_FUNCS=1
32670else
32671 echo "$as_me:$LINENO: checking for sched_get_priority_max in -lposix4" >&5
32672echo $ECHO_N "checking for sched_get_priority_max in -lposix4... $ECHO_C" >&6
32673if test "${ac_cv_lib_posix4_sched_get_priority_max+set}" = set; then
32674 echo $ECHO_N "(cached) $ECHO_C" >&6
32675else
32676 ac_check_lib_save_LIBS=$LIBS
32677LIBS="-lposix4 $LIBS"
32678cat >conftest.$ac_ext <<_ACEOF
32679/* confdefs.h. */
32680_ACEOF
32681cat confdefs.h >>conftest.$ac_ext
32682cat >>conftest.$ac_ext <<_ACEOF
32683/* end confdefs.h. */
32684
32685/* Override any gcc2 internal prototype to avoid an error. */
32686#ifdef __cplusplus
32687extern "C"
32688#endif
32689/* We use char because int might match the return type of a gcc2
32690 builtin and then its argument prototype would still apply. */
32691char sched_get_priority_max ();
32692int
32693main ()
32694{
32695sched_get_priority_max ();
32696 ;
32697 return 0;
32698}
32699_ACEOF
32700rm -f conftest.$ac_objext conftest$ac_exeext
32701if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32702 (eval $ac_link) 2>conftest.er1
a848cd7e 32703 ac_status=$?
ac1cb8d3
VS
32704 grep -v '^ *+' conftest.er1 >conftest.err
32705 rm -f conftest.er1
32706 cat conftest.err >&5
a848cd7e
SC
32707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32708 (exit $ac_status); } &&
ffa0583f 32709 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32711 (eval $ac_try) 2>&5
32712 ac_status=$?
32713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32714 (exit $ac_status); }; } &&
32715 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32717 (eval $ac_try) 2>&5
32718 ac_status=$?
32719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32720 (exit $ac_status); }; }; then
32721 ac_cv_lib_posix4_sched_get_priority_max=yes
32722else
32723 echo "$as_me: failed program was:" >&5
32724sed 's/^/| /' conftest.$ac_ext >&5
32725
32726ac_cv_lib_posix4_sched_get_priority_max=no
32727fi
ac1cb8d3
VS
32728rm -f conftest.err conftest.$ac_objext \
32729 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32730LIBS=$ac_check_lib_save_LIBS
32731fi
32732echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_get_priority_max" >&5
32733echo "${ECHO_T}$ac_cv_lib_posix4_sched_get_priority_max" >&6
32734if test $ac_cv_lib_posix4_sched_get_priority_max = yes; then
32735
32736 HAVE_PRIOR_FUNCS=1
32737 POSIX4_LINK=" -lposix4"
32738
32739fi
32740
32741
32742fi
32743
32744
32745fi
32746
32747
32748fi
32749
32750
32751 if test "$HAVE_PRIOR_FUNCS" = 1; then
32752 cat >>confdefs.h <<\_ACEOF
32753#define HAVE_THREAD_PRIORITY_FUNCTIONS 1
32754_ACEOF
32755
32756 else
32757 { echo "$as_me:$LINENO: WARNING: Setting thread priority will not work" >&5
32758echo "$as_me: WARNING: Setting thread priority will not work" >&2;}
32759 fi
32760
32761 echo "$as_me:$LINENO: checking for pthread_cancel" >&5
32762echo $ECHO_N "checking for pthread_cancel... $ECHO_C" >&6
32763if test "${ac_cv_func_pthread_cancel+set}" = set; then
32764 echo $ECHO_N "(cached) $ECHO_C" >&6
32765else
32766 cat >conftest.$ac_ext <<_ACEOF
32767/* confdefs.h. */
32768_ACEOF
32769cat confdefs.h >>conftest.$ac_ext
32770cat >>conftest.$ac_ext <<_ACEOF
32771/* end confdefs.h. */
ac1cb8d3
VS
32772/* Define pthread_cancel to an innocuous variant, in case <limits.h> declares pthread_cancel.
32773 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32774#define pthread_cancel innocuous_pthread_cancel
32775
a848cd7e
SC
32776/* System header to define __stub macros and hopefully few prototypes,
32777 which can conflict with char pthread_cancel (); below.
32778 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32779 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 32780
a848cd7e
SC
32781#ifdef __STDC__
32782# include <limits.h>
32783#else
32784# include <assert.h>
32785#endif
ac1cb8d3
VS
32786
32787#undef pthread_cancel
32788
a848cd7e
SC
32789/* Override any gcc2 internal prototype to avoid an error. */
32790#ifdef __cplusplus
32791extern "C"
32792{
32793#endif
32794/* We use char because int might match the return type of a gcc2
32795 builtin and then its argument prototype would still apply. */
32796char pthread_cancel ();
32797/* The GNU C library defines this for functions which it implements
32798 to always fail with ENOSYS. Some functions are actually named
32799 something starting with __ and the normal name is an alias. */
32800#if defined (__stub_pthread_cancel) || defined (__stub___pthread_cancel)
32801choke me
32802#else
32803char (*f) () = pthread_cancel;
32804#endif
32805#ifdef __cplusplus
32806}
32807#endif
32808
32809int
32810main ()
32811{
32812return f != pthread_cancel;
32813 ;
32814 return 0;
32815}
32816_ACEOF
32817rm -f conftest.$ac_objext conftest$ac_exeext
32818if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32819 (eval $ac_link) 2>conftest.er1
a848cd7e 32820 ac_status=$?
ac1cb8d3
VS
32821 grep -v '^ *+' conftest.er1 >conftest.err
32822 rm -f conftest.er1
32823 cat conftest.err >&5
a848cd7e
SC
32824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32825 (exit $ac_status); } &&
ffa0583f 32826 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32828 (eval $ac_try) 2>&5
32829 ac_status=$?
32830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32831 (exit $ac_status); }; } &&
32832 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32834 (eval $ac_try) 2>&5
32835 ac_status=$?
32836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32837 (exit $ac_status); }; }; then
32838 ac_cv_func_pthread_cancel=yes
32839else
32840 echo "$as_me: failed program was:" >&5
32841sed 's/^/| /' conftest.$ac_ext >&5
32842
32843ac_cv_func_pthread_cancel=no
32844fi
ac1cb8d3
VS
32845rm -f conftest.err conftest.$ac_objext \
32846 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32847fi
32848echo "$as_me:$LINENO: result: $ac_cv_func_pthread_cancel" >&5
32849echo "${ECHO_T}$ac_cv_func_pthread_cancel" >&6
32850if test $ac_cv_func_pthread_cancel = yes; then
32851 cat >>confdefs.h <<\_ACEOF
32852#define HAVE_PTHREAD_CANCEL 1
32853_ACEOF
32854
32855else
32856 { echo "$as_me:$LINENO: WARNING: wxThread::Kill() will not work properly" >&5
32857echo "$as_me: WARNING: wxThread::Kill() will not work properly" >&2;}
32858fi
32859
32860
32861
32862
32863 echo "$as_me:$LINENO: checking for pthread_mutexattr_t" >&5
32864echo $ECHO_N "checking for pthread_mutexattr_t... $ECHO_C" >&6
32865if test "${wx_cv_type_pthread_mutexattr_t+set}" = set; then
32866 echo $ECHO_N "(cached) $ECHO_C" >&6
32867else
32868
32869 cat >conftest.$ac_ext <<_ACEOF
32870/* confdefs.h. */
32871_ACEOF
32872cat confdefs.h >>conftest.$ac_ext
32873cat >>conftest.$ac_ext <<_ACEOF
32874/* end confdefs.h. */
32875#include <pthread.h>
32876int
32877main ()
32878{
32879
32880 pthread_mutexattr_t attr;
32881 pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
32882
32883 ;
32884 return 0;
32885}
32886_ACEOF
32887rm -f conftest.$ac_objext
32888if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 32889 (eval $ac_compile) 2>conftest.er1
a848cd7e 32890 ac_status=$?
ac1cb8d3
VS
32891 grep -v '^ *+' conftest.er1 >conftest.err
32892 rm -f conftest.er1
32893 cat conftest.err >&5
a848cd7e
SC
32894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32895 (exit $ac_status); } &&
ffa0583f 32896 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32898 (eval $ac_try) 2>&5
32899 ac_status=$?
32900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32901 (exit $ac_status); }; } &&
32902 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
32903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32904 (eval $ac_try) 2>&5
32905 ac_status=$?
32906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32907 (exit $ac_status); }; }; then
32908
32909 wx_cv_type_pthread_mutexattr_t=yes
32910
32911else
32912 echo "$as_me: failed program was:" >&5
32913sed 's/^/| /' conftest.$ac_ext >&5
32914
32915
32916 wx_cv_type_pthread_mutexattr_t=no
32917
32918
32919fi
ac1cb8d3 32920rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
32921
32922fi
32923echo "$as_me:$LINENO: result: $wx_cv_type_pthread_mutexattr_t" >&5
32924echo "${ECHO_T}$wx_cv_type_pthread_mutexattr_t" >&6
32925
32926 if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then
32927 cat >>confdefs.h <<\_ACEOF
32928#define HAVE_PTHREAD_MUTEXATTR_T 1
32929_ACEOF
32930
32931 else
32932 echo "$as_me:$LINENO: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5
32933echo $ECHO_N "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER... $ECHO_C" >&6
32934if test "${wx_cv_type_pthread_rec_mutex_init+set}" = set; then
32935 echo $ECHO_N "(cached) $ECHO_C" >&6
32936else
32937
32938 cat >conftest.$ac_ext <<_ACEOF
32939/* confdefs.h. */
32940_ACEOF
32941cat confdefs.h >>conftest.$ac_ext
32942cat >>conftest.$ac_ext <<_ACEOF
32943/* end confdefs.h. */
32944#include <pthread.h>
32945int
32946main ()
32947{
32948
32949 pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;
32950
32951 ;
32952 return 0;
32953}
32954_ACEOF
32955rm -f conftest.$ac_objext
32956if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 32957 (eval $ac_compile) 2>conftest.er1
a848cd7e 32958 ac_status=$?
ac1cb8d3
VS
32959 grep -v '^ *+' conftest.er1 >conftest.err
32960 rm -f conftest.er1
32961 cat conftest.err >&5
a848cd7e
SC
32962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32963 (exit $ac_status); } &&
ffa0583f 32964 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32966 (eval $ac_try) 2>&5
32967 ac_status=$?
32968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32969 (exit $ac_status); }; } &&
32970 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
32971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32972 (eval $ac_try) 2>&5
32973 ac_status=$?
32974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32975 (exit $ac_status); }; }; then
32976
32977 wx_cv_type_pthread_rec_mutex_init=yes
32978
32979else
32980 echo "$as_me: failed program was:" >&5
32981sed 's/^/| /' conftest.$ac_ext >&5
32982
32983
32984 wx_cv_type_pthread_rec_mutex_init=no
32985
32986
32987fi
ac1cb8d3 32988rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
32989
32990fi
32991echo "$as_me:$LINENO: result: $wx_cv_type_pthread_rec_mutex_init" >&5
32992echo "${ECHO_T}$wx_cv_type_pthread_rec_mutex_init" >&6
32993 if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then
32994 cat >>confdefs.h <<\_ACEOF
32995#define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1
32996_ACEOF
32997
32998 else
32999 { echo "$as_me:$LINENO: WARNING: wxMutex won't be recursive on this platform" >&5
33000echo "$as_me: WARNING: wxMutex won't be recursive on this platform" >&2;}
33001 fi
33002 fi
33003 fi
33004
33005else
33006 if test "$wxUSE_THREADS" = "yes" ; then
33007 case "${host}" in
33008 *-*-mingw32* )
33009 echo "$as_me:$LINENO: checking if compiler supports -mthreads" >&5
33010echo $ECHO_N "checking if compiler supports -mthreads... $ECHO_C" >&6
33011if test "${wx_cv_cflags_mthread+set}" = set; then
33012 echo $ECHO_N "(cached) $ECHO_C" >&6
33013else
33014
33015 CFLAGS_OLD="$CFLAGS"
33016 CFLAGS="$CFLAGS -mthreads"
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
33024int
33025main ()
33026{
33027
33028 ;
33029 return 0;
33030}
33031_ACEOF
33032rm -f conftest.$ac_objext
33033if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 33034 (eval $ac_compile) 2>conftest.er1
a848cd7e 33035 ac_status=$?
ac1cb8d3
VS
33036 grep -v '^ *+' conftest.er1 >conftest.err
33037 rm -f conftest.er1
33038 cat conftest.err >&5
a848cd7e
SC
33039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33040 (exit $ac_status); } &&
ffa0583f 33041 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33043 (eval $ac_try) 2>&5
33044 ac_status=$?
33045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33046 (exit $ac_status); }; } &&
33047 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
33048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33049 (eval $ac_try) 2>&5
33050 ac_status=$?
33051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33052 (exit $ac_status); }; }; then
33053 wx_cv_cflags_mthread=yes
33054else
33055 echo "$as_me: failed program was:" >&5
33056sed 's/^/| /' conftest.$ac_ext >&5
33057
33058wx_cv_cflags_mthread=no
33059
33060fi
ac1cb8d3 33061rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
33062
33063
33064fi
33065echo "$as_me:$LINENO: result: $wx_cv_cflags_mthread" >&5
33066echo "${ECHO_T}$wx_cv_cflags_mthread" >&6
33067
33068 if test "$wx_cv_cflags_mthread" = "yes"; then
33069 CXXFLAGS="$CXXFLAGS -mthreads"
33070 TOOLCHAIN_DEFS="$TOOLCHAIN_DEFS -mthreads"
33071 LDFLAGS="$LDFLAGS -mthreads"
33072 else
33073 CFLAGS="$CFLAGS_OLD"
33074 fi
33075 ;;
33076 *-pc-os2*emx )
33077 CFLAGS="$CFLAGS -Zmt -D__ST_MT_ERRNO__"
33078 CXXFLAGS="$CXXFLAGS -Zmt -D__ST_MT_ERRNO__"
33079 LDFLAGS="$LDFLAGS -Zmt"
33080 ;;
33081 esac
33082 fi
33083fi
33084
33085if test "$wxUSE_THREADS" = "yes"; then
33086 cat >>confdefs.h <<\_ACEOF
33087#define wxUSE_THREADS 1
33088_ACEOF
33089
33090
33091 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread"
33092else
33093 if test "$ac_cv_func_strtok_r" = "yes"; then
33094 echo "$as_me:$LINENO: checking if -D_REENTRANT is needed" >&5
33095echo $ECHO_N "checking if -D_REENTRANT is needed... $ECHO_C" >&6
33096 if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then
33097 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D_REENTRANT"
33098 echo "$as_me:$LINENO: result: yes" >&5
33099echo "${ECHO_T}yes" >&6
33100 else
33101 echo "$as_me:$LINENO: result: no" >&5
33102echo "${ECHO_T}no" >&6
33103 fi
33104 fi
33105fi
33106
33107if test "$WXGTK20" = 1 ; then
33108 cat >>confdefs.h <<_ACEOF
33109#define __WXGTK20__ $WXGTK20
33110_ACEOF
33111
33112 WXGTK12=1
33113fi
33114
33115if test "$WXGTK12" = 1 ; then
33116 cat >>confdefs.h <<_ACEOF
33117#define __WXGTK12__ $WXGTK12
33118_ACEOF
33119
33120fi
33121
33122if test "$WXGTK127" = 1 ; then
33123 cat >>confdefs.h <<_ACEOF
33124#define __WXGTK127__ $WXGTK127
33125_ACEOF
33126
33127fi
33128
33129if test "$WXGPE" = 1 ; then
33130 cat >>confdefs.h <<_ACEOF
33131#define __WXGPE__ $WXGPE
33132_ACEOF
33133
33134fi
33135
33136WXDEBUG=
33137
33138if test "$wxUSE_DEBUG_INFO" = "yes" ; then
33139 WXDEBUG="-g"
33140 wxUSE_OPTIMISE=no
33141fi
33142
33143if test "$wxUSE_DEBUG_GDB" = "yes" ; then
33144 wxUSE_DEBUG_INFO=yes
33145 WXDEBUG="-ggdb"
33146fi
33147
33148if test "$wxUSE_DEBUG_FLAG" = "yes" ; then
33149 cat >>confdefs.h <<\_ACEOF
33150#define WXDEBUG 1
33151_ACEOF
33152
33153 WXDEBUG_DEFINE="-D__WXDEBUG__"
33154else
33155 if test "$wxUSE_GTK" = 1 ; then
33156 WXDEBUG_DEFINE="-DGTK_NO_CHECK_CASTS"
33157 fi
33158fi
33159
33160if test "$wxUSE_MEM_TRACING" = "yes" ; then
33161 cat >>confdefs.h <<\_ACEOF
33162#define wxUSE_MEMORY_TRACING 1
33163_ACEOF
33164
33165 cat >>confdefs.h <<\_ACEOF
33166#define wxUSE_GLOBAL_MEMORY_OPERATORS 1
33167_ACEOF
33168
33169 cat >>confdefs.h <<\_ACEOF
33170#define wxUSE_DEBUG_NEW_ALWAYS 1
33171_ACEOF
33172
33173 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck"
33174fi
33175
33176if test "$wxUSE_DMALLOC" = "yes" ; then
33177 DMALLOC_LIBS="-ldmalloc"
33178fi
33179
33180PROFILE=
33181if test "$wxUSE_PROFILE" = "yes" ; then
33182 PROFILE=" -pg"
33183fi
33184
33185CODE_GEN_FLAGS=
33186CODE_GEN_FLAGS_CXX=
33187if test "$GCC" = "yes" ; then
33188 if test "$wxUSE_NO_RTTI" = "yes" ; then
33189 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-rtti"
33190 fi
33191 if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
33192 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-exceptions"
33193 fi
33194 if test "$wxUSE_PERMISSIVE" = "yes" ; then
33195 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fpermissive"
33196 fi
33197
33198 case "${host}" in
33199 powerpc*-*-aix* )
33200 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -mminimal-toc"
33201 ;;
33202 *-hppa* )
33203 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -ffunction-sections"
33204 ;;
33205 esac
33206fi
33207
33208OPTIMISE=
33209if test "$wxUSE_OPTIMISE" = "no" ; then
33210 if test "$GCC" = yes ; then
33211 OPTIMISE="-O0"
33212 fi
33213else
33214 if test "$GCC" = yes ; then
33215 OPTIMISE="-O2"
33216
33217 case "${host}" in
33218 i586-*-*|i686-*-* )
33219 OPTIMISE="${OPTIMISE} "
33220 ;;
33221 esac
33222 else
33223 OPTIMISE="-O"
33224 fi
33225fi
33226
33227
33228if test "x$WXWIN_COMPATIBILITY_2_2" = "xyes"; then
33229 cat >>confdefs.h <<\_ACEOF
33230#define WXWIN_COMPATIBILITY_2_2 1
33231_ACEOF
33232
33233
33234 WXWIN_COMPATIBILITY_2_4="yes"
33235fi
33236
33237if test "x$WXWIN_COMPATIBILITY_2_4" != "xno"; then
33238 cat >>confdefs.h <<\_ACEOF
33239#define WXWIN_COMPATIBILITY_2_4 1
33240_ACEOF
33241
33242fi
33243
33244
33245if test "$wxUSE_GUI" = "yes"; then
33246 cat >>confdefs.h <<\_ACEOF
33247#define wxUSE_GUI 1
33248_ACEOF
33249
33250
33251 else
33252 cat >>confdefs.h <<\_ACEOF
33253#define wxUSE_NOGUI 1
33254_ACEOF
33255
33256fi
33257
33258
33259if test "$wxUSE_UNIX" = "yes"; then
33260 cat >>confdefs.h <<\_ACEOF
33261#define wxUSE_UNIX 1
33262_ACEOF
33263
33264fi
33265
33266
33267if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then
33268
33269 HAVE_DL_FUNCS=0
33270 HAVE_SHL_FUNCS=0
33271 if test "$wxUSE_DYNAMIC_LOADER" = "yes" -o "$wxUSE_DYNLIB_CLASS" = "yes" ; then
33272 if test "$USE_DARWIN" = 1; then
33273 HAVE_DL_FUNCS=1
33274 else
33275
33276for ac_func in dlopen
33277do
33278as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33279echo "$as_me:$LINENO: checking for $ac_func" >&5
33280echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33281if eval "test \"\${$as_ac_var+set}\" = set"; then
33282 echo $ECHO_N "(cached) $ECHO_C" >&6
33283else
33284 cat >conftest.$ac_ext <<_ACEOF
33285/* confdefs.h. */
33286_ACEOF
33287cat confdefs.h >>conftest.$ac_ext
33288cat >>conftest.$ac_ext <<_ACEOF
33289/* end confdefs.h. */
ac1cb8d3
VS
33290/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33291 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33292#define $ac_func innocuous_$ac_func
33293
a848cd7e
SC
33294/* System header to define __stub macros and hopefully few prototypes,
33295 which can conflict with char $ac_func (); below.
33296 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33297 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 33298
a848cd7e
SC
33299#ifdef __STDC__
33300# include <limits.h>
33301#else
33302# include <assert.h>
33303#endif
ac1cb8d3
VS
33304
33305#undef $ac_func
33306
a848cd7e
SC
33307/* Override any gcc2 internal prototype to avoid an error. */
33308#ifdef __cplusplus
33309extern "C"
33310{
33311#endif
33312/* We use char because int might match the return type of a gcc2
33313 builtin and then its argument prototype would still apply. */
33314char $ac_func ();
33315/* The GNU C library defines this for functions which it implements
33316 to always fail with ENOSYS. Some functions are actually named
33317 something starting with __ and the normal name is an alias. */
33318#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33319choke me
33320#else
33321char (*f) () = $ac_func;
33322#endif
33323#ifdef __cplusplus
33324}
33325#endif
33326
33327int
33328main ()
33329{
33330return f != $ac_func;
33331 ;
33332 return 0;
33333}
33334_ACEOF
33335rm -f conftest.$ac_objext conftest$ac_exeext
33336if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33337 (eval $ac_link) 2>conftest.er1
a848cd7e 33338 ac_status=$?
ac1cb8d3
VS
33339 grep -v '^ *+' conftest.er1 >conftest.err
33340 rm -f conftest.er1
33341 cat conftest.err >&5
a848cd7e
SC
33342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33343 (exit $ac_status); } &&
ffa0583f 33344 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33346 (eval $ac_try) 2>&5
33347 ac_status=$?
33348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33349 (exit $ac_status); }; } &&
33350 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33352 (eval $ac_try) 2>&5
33353 ac_status=$?
33354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33355 (exit $ac_status); }; }; then
33356 eval "$as_ac_var=yes"
33357else
33358 echo "$as_me: failed program was:" >&5
33359sed 's/^/| /' conftest.$ac_ext >&5
33360
33361eval "$as_ac_var=no"
33362fi
ac1cb8d3
VS
33363rm -f conftest.err conftest.$ac_objext \
33364 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33365fi
33366echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33367echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33368if test `eval echo '${'$as_ac_var'}'` = yes; then
33369 cat >>confdefs.h <<_ACEOF
33370#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33371_ACEOF
33372
33373 cat >>confdefs.h <<\_ACEOF
33374#define HAVE_DLOPEN 1
33375_ACEOF
33376
33377 HAVE_DL_FUNCS=1
33378
33379else
33380
33381 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
33382echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
33383if test "${ac_cv_lib_dl_dlopen+set}" = set; then
33384 echo $ECHO_N "(cached) $ECHO_C" >&6
33385else
33386 ac_check_lib_save_LIBS=$LIBS
33387LIBS="-ldl $LIBS"
33388cat >conftest.$ac_ext <<_ACEOF
33389/* confdefs.h. */
33390_ACEOF
33391cat confdefs.h >>conftest.$ac_ext
33392cat >>conftest.$ac_ext <<_ACEOF
33393/* end confdefs.h. */
33394
33395/* Override any gcc2 internal prototype to avoid an error. */
33396#ifdef __cplusplus
33397extern "C"
33398#endif
33399/* We use char because int might match the return type of a gcc2
33400 builtin and then its argument prototype would still apply. */
33401char dlopen ();
33402int
33403main ()
33404{
33405dlopen ();
33406 ;
33407 return 0;
33408}
33409_ACEOF
33410rm -f conftest.$ac_objext conftest$ac_exeext
33411if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33412 (eval $ac_link) 2>conftest.er1
a848cd7e 33413 ac_status=$?
ac1cb8d3
VS
33414 grep -v '^ *+' conftest.er1 >conftest.err
33415 rm -f conftest.er1
33416 cat conftest.err >&5
a848cd7e
SC
33417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33418 (exit $ac_status); } &&
ffa0583f 33419 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33421 (eval $ac_try) 2>&5
33422 ac_status=$?
33423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33424 (exit $ac_status); }; } &&
33425 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33427 (eval $ac_try) 2>&5
33428 ac_status=$?
33429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33430 (exit $ac_status); }; }; then
33431 ac_cv_lib_dl_dlopen=yes
33432else
33433 echo "$as_me: failed program was:" >&5
33434sed 's/^/| /' conftest.$ac_ext >&5
33435
33436ac_cv_lib_dl_dlopen=no
33437fi
ac1cb8d3
VS
33438rm -f conftest.err conftest.$ac_objext \
33439 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33440LIBS=$ac_check_lib_save_LIBS
33441fi
33442echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
33443echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
33444if test $ac_cv_lib_dl_dlopen = yes; then
33445
33446 cat >>confdefs.h <<\_ACEOF
33447#define HAVE_DLOPEN 1
33448_ACEOF
33449
33450 HAVE_DL_FUNCS=1
33451 DL_LINK=" -ldl$DL_LINK"
33452
33453else
33454
33455
33456for ac_func in shl_load
33457do
33458as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33459echo "$as_me:$LINENO: checking for $ac_func" >&5
33460echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33461if eval "test \"\${$as_ac_var+set}\" = set"; then
33462 echo $ECHO_N "(cached) $ECHO_C" >&6
33463else
33464 cat >conftest.$ac_ext <<_ACEOF
33465/* confdefs.h. */
33466_ACEOF
33467cat confdefs.h >>conftest.$ac_ext
33468cat >>conftest.$ac_ext <<_ACEOF
33469/* end confdefs.h. */
ac1cb8d3
VS
33470/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33471 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33472#define $ac_func innocuous_$ac_func
33473
a848cd7e
SC
33474/* System header to define __stub macros and hopefully few prototypes,
33475 which can conflict with char $ac_func (); below.
33476 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33477 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 33478
a848cd7e
SC
33479#ifdef __STDC__
33480# include <limits.h>
33481#else
33482# include <assert.h>
33483#endif
ac1cb8d3
VS
33484
33485#undef $ac_func
33486
a848cd7e
SC
33487/* Override any gcc2 internal prototype to avoid an error. */
33488#ifdef __cplusplus
33489extern "C"
33490{
33491#endif
33492/* We use char because int might match the return type of a gcc2
33493 builtin and then its argument prototype would still apply. */
33494char $ac_func ();
33495/* The GNU C library defines this for functions which it implements
33496 to always fail with ENOSYS. Some functions are actually named
33497 something starting with __ and the normal name is an alias. */
33498#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33499choke me
33500#else
33501char (*f) () = $ac_func;
33502#endif
33503#ifdef __cplusplus
33504}
33505#endif
33506
33507int
33508main ()
33509{
33510return f != $ac_func;
33511 ;
33512 return 0;
33513}
33514_ACEOF
33515rm -f conftest.$ac_objext conftest$ac_exeext
33516if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33517 (eval $ac_link) 2>conftest.er1
a848cd7e 33518 ac_status=$?
ac1cb8d3
VS
33519 grep -v '^ *+' conftest.er1 >conftest.err
33520 rm -f conftest.er1
33521 cat conftest.err >&5
a848cd7e
SC
33522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33523 (exit $ac_status); } &&
ffa0583f 33524 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33526 (eval $ac_try) 2>&5
33527 ac_status=$?
33528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33529 (exit $ac_status); }; } &&
33530 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33532 (eval $ac_try) 2>&5
33533 ac_status=$?
33534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33535 (exit $ac_status); }; }; then
33536 eval "$as_ac_var=yes"
33537else
33538 echo "$as_me: failed program was:" >&5
33539sed 's/^/| /' conftest.$ac_ext >&5
33540
33541eval "$as_ac_var=no"
33542fi
ac1cb8d3
VS
33543rm -f conftest.err conftest.$ac_objext \
33544 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33545fi
33546echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33547echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33548if test `eval echo '${'$as_ac_var'}'` = yes; then
33549 cat >>confdefs.h <<_ACEOF
33550#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33551_ACEOF
33552
33553 cat >>confdefs.h <<\_ACEOF
33554#define HAVE_SHL_LOAD 1
33555_ACEOF
33556
33557 HAVE_SHL_FUNCS=1
33558
33559else
33560
33561 echo "$as_me:$LINENO: checking for dld in -lshl_load" >&5
33562echo $ECHO_N "checking for dld in -lshl_load... $ECHO_C" >&6
33563if test "${ac_cv_lib_shl_load_dld+set}" = set; then
33564 echo $ECHO_N "(cached) $ECHO_C" >&6
33565else
33566 ac_check_lib_save_LIBS=$LIBS
33567LIBS="-lshl_load $LIBS"
33568cat >conftest.$ac_ext <<_ACEOF
33569/* confdefs.h. */
33570_ACEOF
33571cat confdefs.h >>conftest.$ac_ext
33572cat >>conftest.$ac_ext <<_ACEOF
33573/* end confdefs.h. */
33574
33575/* Override any gcc2 internal prototype to avoid an error. */
33576#ifdef __cplusplus
33577extern "C"
33578#endif
33579/* We use char because int might match the return type of a gcc2
33580 builtin and then its argument prototype would still apply. */
33581char dld ();
33582int
33583main ()
33584{
33585dld ();
33586 ;
33587 return 0;
33588}
33589_ACEOF
33590rm -f conftest.$ac_objext conftest$ac_exeext
33591if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33592 (eval $ac_link) 2>conftest.er1
a848cd7e 33593 ac_status=$?
ac1cb8d3
VS
33594 grep -v '^ *+' conftest.er1 >conftest.err
33595 rm -f conftest.er1
33596 cat conftest.err >&5
a848cd7e
SC
33597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33598 (exit $ac_status); } &&
ffa0583f 33599 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33601 (eval $ac_try) 2>&5
33602 ac_status=$?
33603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33604 (exit $ac_status); }; } &&
33605 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33607 (eval $ac_try) 2>&5
33608 ac_status=$?
33609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33610 (exit $ac_status); }; }; then
33611 ac_cv_lib_shl_load_dld=yes
33612else
33613 echo "$as_me: failed program was:" >&5
33614sed 's/^/| /' conftest.$ac_ext >&5
33615
33616ac_cv_lib_shl_load_dld=no
33617fi
ac1cb8d3
VS
33618rm -f conftest.err conftest.$ac_objext \
33619 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33620LIBS=$ac_check_lib_save_LIBS
33621fi
33622echo "$as_me:$LINENO: result: $ac_cv_lib_shl_load_dld" >&5
33623echo "${ECHO_T}$ac_cv_lib_shl_load_dld" >&6
33624if test $ac_cv_lib_shl_load_dld = yes; then
33625
33626 HAVE_SHL_FUNCS=1
33627 DL_LINK=" -ldld$DL_LINK"
33628
33629fi
33630
33631
33632fi
33633done
33634
33635
33636fi
33637
33638
33639fi
33640done
33641
33642
33643 if test "$HAVE_DL_FUNCS" = 1; then
33644
33645for ac_func in dlerror
33646do
33647as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33648echo "$as_me:$LINENO: checking for $ac_func" >&5
33649echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33650if eval "test \"\${$as_ac_var+set}\" = set"; then
33651 echo $ECHO_N "(cached) $ECHO_C" >&6
33652else
33653 cat >conftest.$ac_ext <<_ACEOF
33654/* confdefs.h. */
33655_ACEOF
33656cat confdefs.h >>conftest.$ac_ext
33657cat >>conftest.$ac_ext <<_ACEOF
33658/* end confdefs.h. */
ac1cb8d3
VS
33659/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33660 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33661#define $ac_func innocuous_$ac_func
33662
a848cd7e
SC
33663/* System header to define __stub macros and hopefully few prototypes,
33664 which can conflict with char $ac_func (); below.
33665 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33666 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 33667
a848cd7e
SC
33668#ifdef __STDC__
33669# include <limits.h>
33670#else
33671# include <assert.h>
33672#endif
ac1cb8d3
VS
33673
33674#undef $ac_func
33675
a848cd7e
SC
33676/* Override any gcc2 internal prototype to avoid an error. */
33677#ifdef __cplusplus
33678extern "C"
33679{
33680#endif
33681/* We use char because int might match the return type of a gcc2
33682 builtin and then its argument prototype would still apply. */
33683char $ac_func ();
33684/* The GNU C library defines this for functions which it implements
33685 to always fail with ENOSYS. Some functions are actually named
33686 something starting with __ and the normal name is an alias. */
33687#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33688choke me
33689#else
33690char (*f) () = $ac_func;
33691#endif
33692#ifdef __cplusplus
33693}
33694#endif
33695
33696int
33697main ()
33698{
33699return f != $ac_func;
33700 ;
33701 return 0;
33702}
33703_ACEOF
33704rm -f conftest.$ac_objext conftest$ac_exeext
33705if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33706 (eval $ac_link) 2>conftest.er1
a848cd7e 33707 ac_status=$?
ac1cb8d3
VS
33708 grep -v '^ *+' conftest.er1 >conftest.err
33709 rm -f conftest.er1
33710 cat conftest.err >&5
a848cd7e
SC
33711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33712 (exit $ac_status); } &&
ffa0583f 33713 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33715 (eval $ac_try) 2>&5
33716 ac_status=$?
33717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33718 (exit $ac_status); }; } &&
33719 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33721 (eval $ac_try) 2>&5
33722 ac_status=$?
33723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33724 (exit $ac_status); }; }; then
33725 eval "$as_ac_var=yes"
33726else
33727 echo "$as_me: failed program was:" >&5
33728sed 's/^/| /' conftest.$ac_ext >&5
33729
33730eval "$as_ac_var=no"
33731fi
ac1cb8d3
VS
33732rm -f conftest.err conftest.$ac_objext \
33733 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33734fi
33735echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33736echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33737if test `eval echo '${'$as_ac_var'}'` = yes; then
33738 cat >>confdefs.h <<_ACEOF
33739#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33740_ACEOF
33741 cat >>confdefs.h <<\_ACEOF
33742#define HAVE_DLERROR 1
33743_ACEOF
33744
33745else
33746
33747 echo "$as_me:$LINENO: checking for dlerror in -ldl" >&5
33748echo $ECHO_N "checking for dlerror in -ldl... $ECHO_C" >&6
33749if test "${ac_cv_lib_dl_dlerror+set}" = set; then
33750 echo $ECHO_N "(cached) $ECHO_C" >&6
33751else
33752 ac_check_lib_save_LIBS=$LIBS
33753LIBS="-ldl $LIBS"
33754cat >conftest.$ac_ext <<_ACEOF
33755/* confdefs.h. */
33756_ACEOF
33757cat confdefs.h >>conftest.$ac_ext
33758cat >>conftest.$ac_ext <<_ACEOF
33759/* end confdefs.h. */
33760
33761/* Override any gcc2 internal prototype to avoid an error. */
33762#ifdef __cplusplus
33763extern "C"
33764#endif
33765/* We use char because int might match the return type of a gcc2
33766 builtin and then its argument prototype would still apply. */
33767char dlerror ();
33768int
33769main ()
33770{
33771dlerror ();
33772 ;
33773 return 0;
33774}
33775_ACEOF
33776rm -f conftest.$ac_objext conftest$ac_exeext
33777if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33778 (eval $ac_link) 2>conftest.er1
a848cd7e 33779 ac_status=$?
ac1cb8d3
VS
33780 grep -v '^ *+' conftest.er1 >conftest.err
33781 rm -f conftest.er1
33782 cat conftest.err >&5
a848cd7e
SC
33783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33784 (exit $ac_status); } &&
ffa0583f 33785 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33787 (eval $ac_try) 2>&5
33788 ac_status=$?
33789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33790 (exit $ac_status); }; } &&
33791 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33793 (eval $ac_try) 2>&5
33794 ac_status=$?
33795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33796 (exit $ac_status); }; }; then
33797 ac_cv_lib_dl_dlerror=yes
33798else
33799 echo "$as_me: failed program was:" >&5
33800sed 's/^/| /' conftest.$ac_ext >&5
33801
33802ac_cv_lib_dl_dlerror=no
33803fi
ac1cb8d3
VS
33804rm -f conftest.err conftest.$ac_objext \
33805 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33806LIBS=$ac_check_lib_save_LIBS
33807fi
33808echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlerror" >&5
33809echo "${ECHO_T}$ac_cv_lib_dl_dlerror" >&6
33810if test $ac_cv_lib_dl_dlerror = yes; then
33811 cat >>confdefs.h <<\_ACEOF
33812#define HAVE_DLERROR 1
33813_ACEOF
33814
33815fi
33816
33817
33818
33819fi
33820done
33821
33822 fi
33823 fi
33824
33825 if test "$HAVE_DL_FUNCS" = 0; then
33826 if test "$HAVE_SHL_FUNCS" = 0; then
33827 if test "$USE_UNIX" = 1; then
33828 { echo "$as_me:$LINENO: WARNING: Missing dynamic loading support, several features will be disabled" >&5
33829echo "$as_me: WARNING: Missing dynamic loading support, several features will be disabled" >&2;}
33830 wxUSE_DYNAMIC_LOADER=no
33831 wxUSE_DYNLIB_CLASS=no
33832 else
33833 { echo "$as_me:$LINENO: WARNING: Assuming wxLibrary class works on this platform" >&5
33834echo "$as_me: WARNING: Assuming wxLibrary class works on this platform" >&2;}
33835 fi
33836 fi
33837 fi
33838 fi
33839fi
33840
33841if test "$wxUSE_DYNAMIC_LOADER" = "yes" ; then
33842 cat >>confdefs.h <<\_ACEOF
33843#define wxUSE_DYNAMIC_LOADER 1
33844_ACEOF
33845
33846fi
33847if test "$wxUSE_DYNLIB_CLASS" = "yes" ; then
33848 cat >>confdefs.h <<\_ACEOF
33849#define wxUSE_DYNLIB_CLASS 1
33850_ACEOF
33851
33852fi
33853
33854
33855
33856if test "$wxUSE_PLUGINS" = "yes" ; then
33857 if test "$wxUSE_SHARED" = "no" ; then
33858 { echo "$as_me:$LINENO: WARNING: plugins supported only in shared build, disabling" >&5
33859echo "$as_me: WARNING: plugins supported only in shared build, disabling" >&2;}
33860 wxUSE_PLUGINS=no
33861 fi
33862 if test "$wxUSE_MONOLITHIC" = "yes" ; then
33863 { echo "$as_me:$LINENO: WARNING: plugins not supported monolithic build, disabling" >&5
33864echo "$as_me: WARNING: plugins not supported monolithic build, disabling" >&2;}
33865 wxUSE_PLUGINS=no
33866 fi
33867 if test "$wxUSE_DYNLIB_CLASS" = "no" ; then
33868 { echo "$as_me:$LINENO: WARNING: plugins require wxDynamicLibrary, disabling" >&5
33869echo "$as_me: WARNING: plugins require wxDynamicLibrary, disabling" >&2;}
33870 wxUSE_PLUGINS=no
33871 fi
33872 if test "$wxUSE_PLUGINS" = "yes" ; then
33873 cat >>confdefs.h <<\_ACEOF
33874#define wxUSE_PLUGINS 1
33875_ACEOF
33876
33877 fi
33878fi
33879
33880
33881if test "$wxUSE_STL" = "yes"; then
33882 cat >>confdefs.h <<\_ACEOF
33883#define wxUSE_STL 1
33884_ACEOF
33885
33886fi
33887
33888if test "$wxUSE_APPLE_IEEE" = "yes"; then
33889 cat >>confdefs.h <<\_ACEOF
33890#define wxUSE_APPLE_IEEE 1
33891_ACEOF
33892
33893fi
33894
33895if test "$wxUSE_TIMER" = "yes"; then
33896 cat >>confdefs.h <<\_ACEOF
33897#define wxUSE_TIMER 1
33898_ACEOF
33899
33900fi
33901
33902WITH_PLUGIN_SDL=0
33903if test "$wxUSE_SOUND" = "yes"; then
33904 if test "$USE_UNIX" = "1" ; then
33905
33906for ac_header in sys/soundcard.h
33907do
33908as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
33909if eval "test \"\${$as_ac_Header+set}\" = set"; then
33910 echo "$as_me:$LINENO: checking for $ac_header" >&5
33911echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
33912if eval "test \"\${$as_ac_Header+set}\" = set"; then
33913 echo $ECHO_N "(cached) $ECHO_C" >&6
33914fi
33915echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
33916echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
33917else
33918 # Is the header compilable?
33919echo "$as_me:$LINENO: checking $ac_header usability" >&5
33920echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
33921cat >conftest.$ac_ext <<_ACEOF
33922/* confdefs.h. */
33923_ACEOF
33924cat confdefs.h >>conftest.$ac_ext
33925cat >>conftest.$ac_ext <<_ACEOF
33926/* end confdefs.h. */
33927$ac_includes_default
33928#include <$ac_header>
33929_ACEOF
33930rm -f conftest.$ac_objext
33931if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 33932 (eval $ac_compile) 2>conftest.er1
a848cd7e 33933 ac_status=$?
ac1cb8d3
VS
33934 grep -v '^ *+' conftest.er1 >conftest.err
33935 rm -f conftest.er1
33936 cat conftest.err >&5
a848cd7e
SC
33937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33938 (exit $ac_status); } &&
ffa0583f 33939 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
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); }; } &&
33945 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
33946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33947 (eval $ac_try) 2>&5
33948 ac_status=$?
33949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33950 (exit $ac_status); }; }; then
33951 ac_header_compiler=yes
33952else
33953 echo "$as_me: failed program was:" >&5
33954sed 's/^/| /' conftest.$ac_ext >&5
33955
33956ac_header_compiler=no
33957fi
ac1cb8d3 33958rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
33959echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33960echo "${ECHO_T}$ac_header_compiler" >&6
33961
33962# Is the header present?
33963echo "$as_me:$LINENO: checking $ac_header presence" >&5
33964echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
33965cat >conftest.$ac_ext <<_ACEOF
33966/* confdefs.h. */
33967_ACEOF
33968cat confdefs.h >>conftest.$ac_ext
33969cat >>conftest.$ac_ext <<_ACEOF
33970/* end confdefs.h. */
33971#include <$ac_header>
33972_ACEOF
33973if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
33974 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
33975 ac_status=$?
33976 grep -v '^ *+' conftest.er1 >conftest.err
33977 rm -f conftest.er1
33978 cat conftest.err >&5
33979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33980 (exit $ac_status); } >/dev/null; then
33981 if test -s conftest.err; then
33982 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 33983 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
33984 else
33985 ac_cpp_err=
33986 fi
33987else
33988 ac_cpp_err=yes
33989fi
33990if test -z "$ac_cpp_err"; then
33991 ac_header_preproc=yes
33992else
33993 echo "$as_me: failed program was:" >&5
33994sed 's/^/| /' conftest.$ac_ext >&5
33995
33996 ac_header_preproc=no
33997fi
33998rm -f conftest.err conftest.$ac_ext
33999echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
34000echo "${ECHO_T}$ac_header_preproc" >&6
34001
34002# So? What about this header?
ac1cb8d3
VS
34003case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
34004 yes:no: )
a848cd7e
SC
34005 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
34006echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
34007 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
34008echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
34009 ac_header_preproc=yes
a848cd7e 34010 ;;
ac1cb8d3 34011 no:yes:* )
a848cd7e
SC
34012 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
34013echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
34014 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
34015echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
34016 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
34017echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
34018 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
34019echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
34020 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
34021echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
34022 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
34023echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
34024 (
34025 cat <<\_ASBOX
ac1cb8d3
VS
34026## ----------------------------------------- ##
34027## Report this to wx-dev@lists.wxwidgets.org ##
34028## ----------------------------------------- ##
a848cd7e
SC
34029_ASBOX
34030 ) |
34031 sed "s/^/$as_me: WARNING: /" >&2
34032 ;;
34033esac
34034echo "$as_me:$LINENO: checking for $ac_header" >&5
34035echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
34036if eval "test \"\${$as_ac_Header+set}\" = set"; then
34037 echo $ECHO_N "(cached) $ECHO_C" >&6
34038else
ac1cb8d3 34039 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
34040fi
34041echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
34042echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
34043
34044fi
34045if test `eval echo '${'$as_ac_Header'}'` = yes; then
34046 cat >>confdefs.h <<_ACEOF
34047#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
34048_ACEOF
34049
34050fi
34051
34052done
34053
34054
34055 if test "$wxUSE_LIBSDL" != "no"; then
34056
34057# Check whether --with-sdl-prefix or --without-sdl-prefix was given.
34058if test "${with_sdl_prefix+set}" = set; then
34059 withval="$with_sdl_prefix"
34060 sdl_prefix="$withval"
34061else
34062 sdl_prefix=""
34063fi;
34064
34065# Check whether --with-sdl-exec-prefix or --without-sdl-exec-prefix was given.
34066if test "${with_sdl_exec_prefix+set}" = set; then
34067 withval="$with_sdl_exec_prefix"
34068 sdl_exec_prefix="$withval"
34069else
34070 sdl_exec_prefix=""
34071fi;
34072# Check whether --enable-sdltest or --disable-sdltest was given.
34073if test "${enable_sdltest+set}" = set; then
34074 enableval="$enable_sdltest"
34075
34076else
34077 enable_sdltest=yes
34078fi;
34079
34080 if test x$sdl_exec_prefix != x ; then
34081 sdl_args="$sdl_args --exec-prefix=$sdl_exec_prefix"
34082 if test x${SDL_CONFIG+set} != xset ; then
34083 SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config
34084 fi
34085 fi
34086 if test x$sdl_prefix != x ; then
34087 sdl_args="$sdl_args --prefix=$sdl_prefix"
34088 if test x${SDL_CONFIG+set} != xset ; then
34089 SDL_CONFIG=$sdl_prefix/bin/sdl-config
34090 fi
34091 fi
34092
34093
34094 PATH="$prefix/bin:$prefix/usr/bin:$PATH"
34095 # Extract the first word of "sdl-config", so it can be a program name with args.
34096set dummy sdl-config; ac_word=$2
34097echo "$as_me:$LINENO: checking for $ac_word" >&5
34098echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
34099if test "${ac_cv_path_SDL_CONFIG+set}" = set; then
34100 echo $ECHO_N "(cached) $ECHO_C" >&6
34101else
34102 case $SDL_CONFIG in
34103 [\\/]* | ?:[\\/]*)
34104 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
34105 ;;
34106 *)
34107 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34108for as_dir in $PATH
34109do
34110 IFS=$as_save_IFS
34111 test -z "$as_dir" && as_dir=.
34112 for ac_exec_ext in '' $ac_executable_extensions; do
34113 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34114 ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
34115 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
34116 break 2
34117 fi
34118done
34119done
34120
34121 test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
34122 ;;
34123esac
34124fi
34125SDL_CONFIG=$ac_cv_path_SDL_CONFIG
34126
34127if test -n "$SDL_CONFIG"; then
34128 echo "$as_me:$LINENO: result: $SDL_CONFIG" >&5
34129echo "${ECHO_T}$SDL_CONFIG" >&6
34130else
34131 echo "$as_me:$LINENO: result: no" >&5
34132echo "${ECHO_T}no" >&6
34133fi
34134
34135 min_sdl_version=1.2.0
34136 echo "$as_me:$LINENO: checking for SDL - version >= $min_sdl_version" >&5
34137echo $ECHO_N "checking for SDL - version >= $min_sdl_version... $ECHO_C" >&6
34138 no_sdl=""
34139 if test "$SDL_CONFIG" = "no" ; then
34140 no_sdl=yes
34141 else
34142 SDL_CFLAGS=`$SDL_CONFIG $sdlconf_args --cflags`
34143 SDL_LIBS=`$SDL_CONFIG $sdlconf_args --libs`
34144
34145 sdl_major_version=`$SDL_CONFIG $sdl_args --version | \
34146 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
34147 sdl_minor_version=`$SDL_CONFIG $sdl_args --version | \
34148 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
34149 sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
34150 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
34151 if test "x$enable_sdltest" = "xyes" ; then
34152 ac_save_CFLAGS="$CFLAGS"
34153 ac_save_LIBS="$LIBS"
34154 CFLAGS="$CFLAGS $SDL_CFLAGS"
34155 LIBS="$LIBS $SDL_LIBS"
34156 rm -f conf.sdltest
34157 if test "$cross_compiling" = yes; then
34158 echo $ac_n "cross compiling; assumed OK... $ac_c"
34159else
34160 cat >conftest.$ac_ext <<_ACEOF
34161/* confdefs.h. */
34162_ACEOF
34163cat confdefs.h >>conftest.$ac_ext
34164cat >>conftest.$ac_ext <<_ACEOF
34165/* end confdefs.h. */
34166
34167#include <stdio.h>
34168#include <stdlib.h>
34169#include <string.h>
34170#include "SDL.h"
34171
34172char*
34173my_strdup (char *str)
34174{
34175 char *new_str;
34176
34177 if (str)
34178 {
34179 new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
34180 strcpy (new_str, str);
34181 }
34182 else
34183 new_str = NULL;
34184
34185 return new_str;
34186}
34187
34188int main (int argc, char *argv[])
34189{
34190 int major, minor, micro;
34191 char *tmp_version;
34192
34193 /* This hangs on some systems (?)
34194 system ("touch conf.sdltest");
34195 */
34196 { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
34197
34198 /* HP/UX 9 (%@#!) writes to sscanf strings */
34199 tmp_version = my_strdup("$min_sdl_version");
34200 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
34201 printf("%s, bad version string\n", "$min_sdl_version");
34202 exit(1);
34203 }
34204
34205 if (($sdl_major_version > major) ||
34206 (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
34207 (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
34208 {
34209 return 0;
34210 }
34211 else
34212 {
34213 printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
34214 printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
34215 printf("*** best to upgrade to the required version.\n");
34216 printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
34217 printf("*** to point to the correct copy of sdl-config, and remove the file\n");
34218 printf("*** config.cache before re-running configure\n");
34219 return 1;
34220 }
34221}
34222
34223
34224_ACEOF
34225rm -f conftest$ac_exeext
34226if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34227 (eval $ac_link) 2>&5
34228 ac_status=$?
34229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34230 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34232 (eval $ac_try) 2>&5
34233 ac_status=$?
34234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34235 (exit $ac_status); }; }; then
34236 :
34237else
34238 echo "$as_me: program exited with status $ac_status" >&5
34239echo "$as_me: failed program was:" >&5
34240sed 's/^/| /' conftest.$ac_ext >&5
34241
34242( exit $ac_status )
34243no_sdl=yes
34244fi
ac1cb8d3 34245rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
34246fi
34247 CFLAGS="$ac_save_CFLAGS"
34248 LIBS="$ac_save_LIBS"
34249 fi
34250 fi
34251 if test "x$no_sdl" = x ; then
34252 echo "$as_me:$LINENO: result: yes" >&5
34253echo "${ECHO_T}yes" >&6
34254
34255 EXTRALIBS_SDL="$SDL_LIBS"
34256 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
34257 cat >>confdefs.h <<\_ACEOF
34258#define wxUSE_LIBSDL 1
34259_ACEOF
34260
34261
34262 else
34263 echo "$as_me:$LINENO: result: no" >&5
34264echo "${ECHO_T}no" >&6
34265 if test "$SDL_CONFIG" = "no" ; then
34266 echo "*** The sdl-config script installed by SDL could not be found"
34267 echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
34268 echo "*** your path, or set the SDL_CONFIG environment variable to the"
34269 echo "*** full path to sdl-config."
34270 else
34271 if test -f conf.sdltest ; then
34272 :
34273 else
34274 echo "*** Could not run SDL test program, checking why..."
34275 CFLAGS="$CFLAGS $SDL_CFLAGS"
34276 LIBS="$LIBS $SDL_LIBS"
34277 cat >conftest.$ac_ext <<_ACEOF
34278/* confdefs.h. */
34279_ACEOF
34280cat confdefs.h >>conftest.$ac_ext
34281cat >>conftest.$ac_ext <<_ACEOF
34282/* end confdefs.h. */
34283
34284#include <stdio.h>
34285#include "SDL.h"
34286
34287int main(int argc, char *argv[])
34288{ return 0; }
34289#undef main
34290#define main K_and_R_C_main
34291
34292int
34293main ()
34294{
34295 return 0;
34296 ;
34297 return 0;
34298}
34299_ACEOF
34300rm -f conftest.$ac_objext conftest$ac_exeext
34301if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34302 (eval $ac_link) 2>conftest.er1
a848cd7e 34303 ac_status=$?
ac1cb8d3
VS
34304 grep -v '^ *+' conftest.er1 >conftest.err
34305 rm -f conftest.er1
34306 cat conftest.err >&5
a848cd7e
SC
34307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34308 (exit $ac_status); } &&
ffa0583f 34309 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34311 (eval $ac_try) 2>&5
34312 ac_status=$?
34313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34314 (exit $ac_status); }; } &&
34315 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34317 (eval $ac_try) 2>&5
34318 ac_status=$?
34319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34320 (exit $ac_status); }; }; then
34321 echo "*** The test program compiled, but did not run. This usually means"
34322 echo "*** that the run-time linker is not finding SDL or finding the wrong"
34323 echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
34324 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
34325 echo "*** to the installed location Also, make sure you have run ldconfig if that"
34326 echo "*** is required on your system"
34327 echo "***"
34328 echo "*** If you have an old version installed, it is best to remove it, although"
34329 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
34330else
34331 echo "$as_me: failed program was:" >&5
34332sed 's/^/| /' conftest.$ac_ext >&5
34333
34334 echo "*** The test program failed to compile or link. See the file config.log for the"
34335 echo "*** exact error that occured. This usually means SDL was incorrectly installed"
34336 echo "*** or that you have moved SDL since it was installed. In the latter case, you"
34337 echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
34338fi
ac1cb8d3
VS
34339rm -f conftest.err conftest.$ac_objext \
34340 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34341 CFLAGS="$ac_save_CFLAGS"
34342 LIBS="$ac_save_LIBS"
34343 fi
34344 fi
34345 SDL_CFLAGS=""
34346 SDL_LIBS=""
34347 wxUSE_LIBSDL="no"
34348 fi
34349
34350
34351 rm -f conf.sdltest
34352
34353 if test "$wxUSE_LIBSDL" = "yes" -a "$wxUSE_PLUGINS" = "yes" ; then
34354 WITH_PLUGIN_SDL=1
34355 fi
34356 fi
34357 fi
34358
34359 cat >>confdefs.h <<\_ACEOF
34360#define wxUSE_SOUND 1
34361_ACEOF
34362
34363 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sound"
34364fi
34365
34366if test "$wxUSE_CMDLINE_PARSER" = "yes"; then
34367 cat >>confdefs.h <<\_ACEOF
34368#define wxUSE_CMDLINE_PARSER 1
34369_ACEOF
34370
34371fi
34372
34373if test "$wxUSE_STOPWATCH" = "yes"; then
34374 cat >>confdefs.h <<\_ACEOF
34375#define wxUSE_STOPWATCH 1
34376_ACEOF
34377
34378fi
34379
34380if test "$wxUSE_DATETIME" = "yes"; then
34381 cat >>confdefs.h <<\_ACEOF
34382#define wxUSE_DATETIME 1
34383_ACEOF
34384
34385fi
34386
34387if test "$wxUSE_FILE" = "yes"; then
34388 cat >>confdefs.h <<\_ACEOF
34389#define wxUSE_FILE 1
34390_ACEOF
34391
34392fi
34393
34394if test "$wxUSE_FFILE" = "yes"; then
34395 cat >>confdefs.h <<\_ACEOF
34396#define wxUSE_FFILE 1
34397_ACEOF
34398
34399fi
34400
34401if test "$wxUSE_FILESYSTEM" = "yes"; then
34402 cat >>confdefs.h <<\_ACEOF
34403#define wxUSE_FILESYSTEM 1
34404_ACEOF
34405
34406fi
34407
34408if test "$wxUSE_FS_ZIP" = "yes"; then
34409 cat >>confdefs.h <<\_ACEOF
34410#define wxUSE_FS_ZIP 1
34411_ACEOF
34412
34413fi
34414
34415if test "$wxUSE_ZIPSTREAM" = "yes"; then
34416 cat >>confdefs.h <<\_ACEOF
34417#define wxUSE_ZIPSTREAM 1
34418_ACEOF
34419
34420fi
34421
a848cd7e
SC
34422if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
34423 cat >>confdefs.h <<\_ACEOF
34424#define wxUSE_ON_FATAL_EXCEPTION 1
34425_ACEOF
34426
34427fi
34428
34429if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
34430 cat >>confdefs.h <<\_ACEOF
34431#define wxUSE_SNGLINST_CHECKER 1
34432_ACEOF
34433
34434fi
34435
34436if test "$wxUSE_BUSYINFO" = "yes"; then
34437 cat >>confdefs.h <<\_ACEOF
34438#define wxUSE_BUSYINFO 1
34439_ACEOF
34440
34441fi
34442
34443if test "$wxUSE_STD_IOSTREAM" = "yes"; then
34444 cat >>confdefs.h <<\_ACEOF
34445#define wxUSE_STD_IOSTREAM 1
34446_ACEOF
34447
34448fi
34449
34450if test "$wxUSE_TEXTBUFFER" = "yes"; then
34451 cat >>confdefs.h <<\_ACEOF
34452#define wxUSE_TEXTBUFFER 1
34453_ACEOF
34454
34455fi
34456
34457if test "$wxUSE_TEXTFILE" = "yes"; then
34458 if test "$wxUSE_FILE" != "yes" -o "$wxUSE_TEXTBUFFER" != "yes" ; then
34459 { echo "$as_me:$LINENO: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&5
34460echo "$as_me: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&2;}
34461 else
34462 cat >>confdefs.h <<\_ACEOF
34463#define wxUSE_TEXTFILE 1
34464_ACEOF
34465
34466 fi
34467fi
34468
34469if test "$wxUSE_CONFIG" = "yes" ; then
34470 if test "$wxUSE_TEXTFILE" != "yes"; then
34471 { echo "$as_me:$LINENO: WARNING: wxConfig requires wxTextFile... disabled" >&5
34472echo "$as_me: WARNING: wxConfig requires wxTextFile... disabled" >&2;}
34473 else
34474 cat >>confdefs.h <<\_ACEOF
34475#define wxUSE_CONFIG 1
34476_ACEOF
34477
34478 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config"
34479 fi
34480fi
34481
34482if test "$wxUSE_INTL" = "yes" ; then
34483 if test "$wxUSE_FILE" != "yes"; then
34484 { echo "$as_me:$LINENO: WARNING: I18n code requires wxFile... disabled" >&5
34485echo "$as_me: WARNING: I18n code requires wxFile... disabled" >&2;}
34486 else
34487 cat >>confdefs.h <<\_ACEOF
34488#define wxUSE_INTL 1
34489_ACEOF
34490
34491 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat"
34492 GUIDIST="$GUIDIST INTL_DIST"
34493 fi
34494fi
34495
34496if test "$wxUSE_LOG" = "yes"; then
34497 cat >>confdefs.h <<\_ACEOF
34498#define wxUSE_LOG 1
34499_ACEOF
34500
34501
34502 if test "$wxUSE_LOGGUI" = "yes"; then
34503 cat >>confdefs.h <<\_ACEOF
34504#define wxUSE_LOGGUI 1
34505_ACEOF
34506
34507 fi
34508
34509 if test "$wxUSE_LOGWINDOW" = "yes"; then
34510 cat >>confdefs.h <<\_ACEOF
34511#define wxUSE_LOGWINDOW 1
34512_ACEOF
34513
34514 fi
34515
34516 if test "$wxUSE_LOGDIALOG" = "yes"; then
34517 cat >>confdefs.h <<\_ACEOF
34518#define wxUSE_LOG_DIALOG 1
34519_ACEOF
34520
34521 fi
34522fi
34523
34524if test "$wxUSE_LONGLONG" = "yes"; then
34525 cat >>confdefs.h <<\_ACEOF
34526#define wxUSE_LONGLONG 1
34527_ACEOF
34528
34529fi
34530
34531if test "$wxUSE_GEOMETRY" = "yes"; then
34532 cat >>confdefs.h <<\_ACEOF
34533#define wxUSE_GEOMETRY 1
34534_ACEOF
34535
34536fi
34537
34538if test "$wxUSE_DIALUP_MANAGER" = "yes" ; then
34539 cat >>confdefs.h <<\_ACEOF
34540#define wxUSE_DIALUP_MANAGER 1
34541_ACEOF
34542
34543 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup"
34544fi
34545
34546if test "$wxUSE_STREAMS" = "yes" ; then
34547 cat >>confdefs.h <<\_ACEOF
34548#define wxUSE_STREAMS 1
34549_ACEOF
34550
34551fi
34552
34553
34554if test "$wxUSE_DATETIME" = "yes"; then
34555
34556for ac_func in strptime
34557do
34558as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34559echo "$as_me:$LINENO: checking for $ac_func" >&5
34560echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34561if eval "test \"\${$as_ac_var+set}\" = set"; then
34562 echo $ECHO_N "(cached) $ECHO_C" >&6
34563else
34564 cat >conftest.$ac_ext <<_ACEOF
34565/* confdefs.h. */
34566_ACEOF
34567cat confdefs.h >>conftest.$ac_ext
34568cat >>conftest.$ac_ext <<_ACEOF
34569/* end confdefs.h. */
ac1cb8d3
VS
34570/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34571 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34572#define $ac_func innocuous_$ac_func
34573
a848cd7e
SC
34574/* System header to define __stub macros and hopefully few prototypes,
34575 which can conflict with char $ac_func (); below.
34576 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34577 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 34578
a848cd7e
SC
34579#ifdef __STDC__
34580# include <limits.h>
34581#else
34582# include <assert.h>
34583#endif
ac1cb8d3
VS
34584
34585#undef $ac_func
34586
a848cd7e
SC
34587/* Override any gcc2 internal prototype to avoid an error. */
34588#ifdef __cplusplus
34589extern "C"
34590{
34591#endif
34592/* We use char because int might match the return type of a gcc2
34593 builtin and then its argument prototype would still apply. */
34594char $ac_func ();
34595/* The GNU C library defines this for functions which it implements
34596 to always fail with ENOSYS. Some functions are actually named
34597 something starting with __ and the normal name is an alias. */
34598#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34599choke me
34600#else
34601char (*f) () = $ac_func;
34602#endif
34603#ifdef __cplusplus
34604}
34605#endif
34606
34607int
34608main ()
34609{
34610return f != $ac_func;
34611 ;
34612 return 0;
34613}
34614_ACEOF
34615rm -f conftest.$ac_objext conftest$ac_exeext
34616if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34617 (eval $ac_link) 2>conftest.er1
a848cd7e 34618 ac_status=$?
ac1cb8d3
VS
34619 grep -v '^ *+' conftest.er1 >conftest.err
34620 rm -f conftest.er1
34621 cat conftest.err >&5
a848cd7e
SC
34622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34623 (exit $ac_status); } &&
ffa0583f 34624 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34626 (eval $ac_try) 2>&5
34627 ac_status=$?
34628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34629 (exit $ac_status); }; } &&
34630 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34632 (eval $ac_try) 2>&5
34633 ac_status=$?
34634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34635 (exit $ac_status); }; }; then
34636 eval "$as_ac_var=yes"
34637else
34638 echo "$as_me: failed program was:" >&5
34639sed 's/^/| /' conftest.$ac_ext >&5
34640
34641eval "$as_ac_var=no"
34642fi
ac1cb8d3
VS
34643rm -f conftest.err conftest.$ac_objext \
34644 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34645fi
34646echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34647echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34648if test `eval echo '${'$as_ac_var'}'` = yes; then
34649 cat >>confdefs.h <<_ACEOF
34650#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34651_ACEOF
34652
34653fi
34654done
34655
34656
34657 echo "$as_me:$LINENO: checking for timezone variable in <time.h>" >&5
34658echo $ECHO_N "checking for timezone variable in <time.h>... $ECHO_C" >&6
34659if test "${wx_cv_var_timezone+set}" = set; then
34660 echo $ECHO_N "(cached) $ECHO_C" >&6
34661else
34662
34663 cat >conftest.$ac_ext <<_ACEOF
34664/* confdefs.h. */
34665_ACEOF
34666cat confdefs.h >>conftest.$ac_ext
34667cat >>conftest.$ac_ext <<_ACEOF
34668/* end confdefs.h. */
34669
34670 #include <time.h>
34671
34672int
34673main ()
34674{
34675
34676 int tz;
34677 tz = timezone;
34678
34679 ;
34680 return 0;
34681}
34682_ACEOF
34683rm -f conftest.$ac_objext
34684if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 34685 (eval $ac_compile) 2>conftest.er1
a848cd7e 34686 ac_status=$?
ac1cb8d3
VS
34687 grep -v '^ *+' conftest.er1 >conftest.err
34688 rm -f conftest.er1
34689 cat conftest.err >&5
a848cd7e
SC
34690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34691 (exit $ac_status); } &&
ffa0583f 34692 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34694 (eval $ac_try) 2>&5
34695 ac_status=$?
34696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34697 (exit $ac_status); }; } &&
34698 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
34699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34700 (eval $ac_try) 2>&5
34701 ac_status=$?
34702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34703 (exit $ac_status); }; }; then
34704
34705 wx_cv_var_timezone=timezone
34706
34707else
34708 echo "$as_me: failed program was:" >&5
34709sed 's/^/| /' conftest.$ac_ext >&5
34710
34711
34712 cat >conftest.$ac_ext <<_ACEOF
34713/* confdefs.h. */
34714_ACEOF
34715cat confdefs.h >>conftest.$ac_ext
34716cat >>conftest.$ac_ext <<_ACEOF
34717/* end confdefs.h. */
34718
34719 #include <time.h>
34720
34721int
34722main ()
34723{
34724
34725 int tz;
34726 tz = _timezone;
34727
34728 ;
34729 return 0;
34730}
34731_ACEOF
34732rm -f conftest.$ac_objext
34733if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 34734 (eval $ac_compile) 2>conftest.er1
a848cd7e 34735 ac_status=$?
ac1cb8d3
VS
34736 grep -v '^ *+' conftest.er1 >conftest.err
34737 rm -f conftest.er1
34738 cat conftest.err >&5
a848cd7e
SC
34739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34740 (exit $ac_status); } &&
ffa0583f 34741 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34743 (eval $ac_try) 2>&5
34744 ac_status=$?
34745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34746 (exit $ac_status); }; } &&
34747 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
34748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34749 (eval $ac_try) 2>&5
34750 ac_status=$?
34751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34752 (exit $ac_status); }; }; then
34753
34754 wx_cv_var_timezone=_timezone
34755
34756else
34757 echo "$as_me: failed program was:" >&5
34758sed 's/^/| /' conftest.$ac_ext >&5
34759
34760
34761 cat >conftest.$ac_ext <<_ACEOF
34762/* confdefs.h. */
34763_ACEOF
34764cat confdefs.h >>conftest.$ac_ext
34765cat >>conftest.$ac_ext <<_ACEOF
34766/* end confdefs.h. */
34767
34768 #include <time.h>
34769
34770int
34771main ()
34772{
34773
34774 int tz;
34775 tz = __timezone;
34776
34777 ;
34778 return 0;
34779}
34780_ACEOF
34781rm -f conftest.$ac_objext
34782if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 34783 (eval $ac_compile) 2>conftest.er1
a848cd7e 34784 ac_status=$?
ac1cb8d3
VS
34785 grep -v '^ *+' conftest.er1 >conftest.err
34786 rm -f conftest.er1
34787 cat conftest.err >&5
a848cd7e
SC
34788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34789 (exit $ac_status); } &&
ffa0583f 34790 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34792 (eval $ac_try) 2>&5
34793 ac_status=$?
34794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34795 (exit $ac_status); }; } &&
34796 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
34797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34798 (eval $ac_try) 2>&5
34799 ac_status=$?
34800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34801 (exit $ac_status); }; }; then
34802
34803 wx_cv_var_timezone=__timezone
34804
34805else
34806 echo "$as_me: failed program was:" >&5
34807sed 's/^/| /' conftest.$ac_ext >&5
34808
34809
34810 if test "$USE_DOS" = 0 ; then
34811 { echo "$as_me:$LINENO: WARNING: no timezone variable" >&5
34812echo "$as_me: WARNING: no timezone variable" >&2;}
34813 fi
34814
34815
34816fi
ac1cb8d3 34817rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
34818
34819
34820fi
ac1cb8d3 34821rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
34822
34823
34824fi
ac1cb8d3 34825rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
34826
34827
34828fi
34829echo "$as_me:$LINENO: result: $wx_cv_var_timezone" >&5
34830echo "${ECHO_T}$wx_cv_var_timezone" >&6
34831
34832 if test "x$wx_cv_var_timezone" != x ; then
34833 cat >>confdefs.h <<_ACEOF
34834#define WX_TIMEZONE $wx_cv_var_timezone
34835_ACEOF
34836
34837 fi
34838
34839
34840for ac_func in localtime
34841do
34842as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34843echo "$as_me:$LINENO: checking for $ac_func" >&5
34844echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34845if eval "test \"\${$as_ac_var+set}\" = set"; then
34846 echo $ECHO_N "(cached) $ECHO_C" >&6
34847else
34848 cat >conftest.$ac_ext <<_ACEOF
34849/* confdefs.h. */
34850_ACEOF
34851cat confdefs.h >>conftest.$ac_ext
34852cat >>conftest.$ac_ext <<_ACEOF
34853/* end confdefs.h. */
ac1cb8d3
VS
34854/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34855 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34856#define $ac_func innocuous_$ac_func
34857
a848cd7e
SC
34858/* System header to define __stub macros and hopefully few prototypes,
34859 which can conflict with char $ac_func (); below.
34860 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34861 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 34862
a848cd7e
SC
34863#ifdef __STDC__
34864# include <limits.h>
34865#else
34866# include <assert.h>
34867#endif
ac1cb8d3
VS
34868
34869#undef $ac_func
34870
a848cd7e
SC
34871/* Override any gcc2 internal prototype to avoid an error. */
34872#ifdef __cplusplus
34873extern "C"
34874{
34875#endif
34876/* We use char because int might match the return type of a gcc2
34877 builtin and then its argument prototype would still apply. */
34878char $ac_func ();
34879/* The GNU C library defines this for functions which it implements
34880 to always fail with ENOSYS. Some functions are actually named
34881 something starting with __ and the normal name is an alias. */
34882#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34883choke me
34884#else
34885char (*f) () = $ac_func;
34886#endif
34887#ifdef __cplusplus
34888}
34889#endif
34890
34891int
34892main ()
34893{
34894return f != $ac_func;
34895 ;
34896 return 0;
34897}
34898_ACEOF
34899rm -f conftest.$ac_objext conftest$ac_exeext
34900if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34901 (eval $ac_link) 2>conftest.er1
a848cd7e 34902 ac_status=$?
ac1cb8d3
VS
34903 grep -v '^ *+' conftest.er1 >conftest.err
34904 rm -f conftest.er1
34905 cat conftest.err >&5
a848cd7e
SC
34906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34907 (exit $ac_status); } &&
ffa0583f 34908 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34910 (eval $ac_try) 2>&5
34911 ac_status=$?
34912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34913 (exit $ac_status); }; } &&
34914 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34916 (eval $ac_try) 2>&5
34917 ac_status=$?
34918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34919 (exit $ac_status); }; }; then
34920 eval "$as_ac_var=yes"
34921else
34922 echo "$as_me: failed program was:" >&5
34923sed 's/^/| /' conftest.$ac_ext >&5
34924
34925eval "$as_ac_var=no"
34926fi
ac1cb8d3
VS
34927rm -f conftest.err conftest.$ac_objext \
34928 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34929fi
34930echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34931echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34932if test `eval echo '${'$as_ac_var'}'` = yes; then
34933 cat >>confdefs.h <<_ACEOF
34934#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34935_ACEOF
34936
34937fi
34938done
34939
34940
34941 if test "$ac_cv_func_localtime" = "yes"; then
34942 echo "$as_me:$LINENO: checking for tm_gmtoff in struct tm" >&5
34943echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6
34944if test "${wx_cv_struct_tm_has_gmtoff+set}" = set; then
34945 echo $ECHO_N "(cached) $ECHO_C" >&6
34946else
34947
34948 cat >conftest.$ac_ext <<_ACEOF
34949/* confdefs.h. */
34950_ACEOF
34951cat confdefs.h >>conftest.$ac_ext
34952cat >>conftest.$ac_ext <<_ACEOF
34953/* end confdefs.h. */
34954
34955 #include <time.h>
34956
34957int
34958main ()
34959{
34960
34961 struct tm tm;
34962 tm.tm_gmtoff++;
34963
34964 ;
34965 return 0;
34966}
34967_ACEOF
34968rm -f conftest.$ac_objext
34969if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 34970 (eval $ac_compile) 2>conftest.er1
a848cd7e 34971 ac_status=$?
ac1cb8d3
VS
34972 grep -v '^ *+' conftest.er1 >conftest.err
34973 rm -f conftest.er1
34974 cat conftest.err >&5
a848cd7e
SC
34975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34976 (exit $ac_status); } &&
ffa0583f 34977 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34979 (eval $ac_try) 2>&5
34980 ac_status=$?
34981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34982 (exit $ac_status); }; } &&
34983 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
34984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34985 (eval $ac_try) 2>&5
34986 ac_status=$?
34987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34988 (exit $ac_status); }; }; then
34989
34990 wx_cv_struct_tm_has_gmtoff=yes
34991
34992else
34993 echo "$as_me: failed program was:" >&5
34994sed 's/^/| /' conftest.$ac_ext >&5
34995
34996wx_cv_struct_tm_has_gmtoff=no
34997
34998fi
ac1cb8d3 34999rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
35000
35001fi
35002echo "$as_me:$LINENO: result: $wx_cv_struct_tm_has_gmtoff" >&5
35003echo "${ECHO_T}$wx_cv_struct_tm_has_gmtoff" >&6
35004 fi
35005
35006 if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then
35007 cat >>confdefs.h <<\_ACEOF
35008#define WX_GMTOFF_IN_TM 1
35009_ACEOF
35010
35011 fi
35012
35013
35014
35015for ac_func in gettimeofday ftime
35016do
35017as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35018echo "$as_me:$LINENO: checking for $ac_func" >&5
35019echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35020if eval "test \"\${$as_ac_var+set}\" = set"; then
35021 echo $ECHO_N "(cached) $ECHO_C" >&6
35022else
35023 cat >conftest.$ac_ext <<_ACEOF
35024/* confdefs.h. */
35025_ACEOF
35026cat confdefs.h >>conftest.$ac_ext
35027cat >>conftest.$ac_ext <<_ACEOF
35028/* end confdefs.h. */
ac1cb8d3
VS
35029/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35030 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35031#define $ac_func innocuous_$ac_func
35032
a848cd7e
SC
35033/* System header to define __stub macros and hopefully few prototypes,
35034 which can conflict with char $ac_func (); below.
35035 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35036 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 35037
a848cd7e
SC
35038#ifdef __STDC__
35039# include <limits.h>
35040#else
35041# include <assert.h>
35042#endif
ac1cb8d3
VS
35043
35044#undef $ac_func
35045
a848cd7e
SC
35046/* Override any gcc2 internal prototype to avoid an error. */
35047#ifdef __cplusplus
35048extern "C"
35049{
35050#endif
35051/* We use char because int might match the return type of a gcc2
35052 builtin and then its argument prototype would still apply. */
35053char $ac_func ();
35054/* The GNU C library defines this for functions which it implements
35055 to always fail with ENOSYS. Some functions are actually named
35056 something starting with __ and the normal name is an alias. */
35057#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35058choke me
35059#else
35060char (*f) () = $ac_func;
35061#endif
35062#ifdef __cplusplus
35063}
35064#endif
35065
35066int
35067main ()
35068{
35069return f != $ac_func;
35070 ;
35071 return 0;
35072}
35073_ACEOF
35074rm -f conftest.$ac_objext conftest$ac_exeext
35075if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35076 (eval $ac_link) 2>conftest.er1
a848cd7e 35077 ac_status=$?
ac1cb8d3
VS
35078 grep -v '^ *+' conftest.er1 >conftest.err
35079 rm -f conftest.er1
35080 cat conftest.err >&5
a848cd7e
SC
35081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35082 (exit $ac_status); } &&
ffa0583f 35083 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35085 (eval $ac_try) 2>&5
35086 ac_status=$?
35087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35088 (exit $ac_status); }; } &&
35089 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35091 (eval $ac_try) 2>&5
35092 ac_status=$?
35093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35094 (exit $ac_status); }; }; then
35095 eval "$as_ac_var=yes"
35096else
35097 echo "$as_me: failed program was:" >&5
35098sed 's/^/| /' conftest.$ac_ext >&5
35099
35100eval "$as_ac_var=no"
35101fi
ac1cb8d3
VS
35102rm -f conftest.err conftest.$ac_objext \
35103 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35104fi
35105echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35106echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35107if test `eval echo '${'$as_ac_var'}'` = yes; then
35108 cat >>confdefs.h <<_ACEOF
35109#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35110_ACEOF
35111 break
35112fi
35113done
35114
35115
35116 if test "$ac_cv_func_gettimeofday" = "yes"; then
35117 echo "$as_me:$LINENO: checking whether gettimeofday takes two arguments" >&5
35118echo $ECHO_N "checking whether gettimeofday takes two arguments... $ECHO_C" >&6
35119if test "${wx_cv_func_gettimeofday_has_2_args+set}" = set; then
35120 echo $ECHO_N "(cached) $ECHO_C" >&6
35121else
35122
35123
35124
35125 ac_ext=cc
35126ac_cpp='$CXXCPP $CPPFLAGS'
35127ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35128ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35129ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
35130
35131
35132 cat >conftest.$ac_ext <<_ACEOF
35133/* confdefs.h. */
35134_ACEOF
35135cat confdefs.h >>conftest.$ac_ext
35136cat >>conftest.$ac_ext <<_ACEOF
35137/* end confdefs.h. */
35138
35139 #include <sys/time.h>
35140 #include <unistd.h>
35141
35142int
35143main ()
35144{
35145
35146 struct timeval tv;
35147 gettimeofday(&tv, NULL);
35148
35149 ;
35150 return 0;
35151}
35152_ACEOF
35153rm -f conftest.$ac_objext
35154if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 35155 (eval $ac_compile) 2>conftest.er1
a848cd7e 35156 ac_status=$?
ac1cb8d3
VS
35157 grep -v '^ *+' conftest.er1 >conftest.err
35158 rm -f conftest.er1
35159 cat conftest.err >&5
a848cd7e
SC
35160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35161 (exit $ac_status); } &&
ffa0583f 35162 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35164 (eval $ac_try) 2>&5
35165 ac_status=$?
35166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35167 (exit $ac_status); }; } &&
35168 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
35169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35170 (eval $ac_try) 2>&5
35171 ac_status=$?
35172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35173 (exit $ac_status); }; }; then
35174 wx_cv_func_gettimeofday_has_2_args=yes
35175else
35176 echo "$as_me: failed program was:" >&5
35177sed 's/^/| /' conftest.$ac_ext >&5
35178
35179cat >conftest.$ac_ext <<_ACEOF
35180/* confdefs.h. */
35181_ACEOF
35182cat confdefs.h >>conftest.$ac_ext
35183cat >>conftest.$ac_ext <<_ACEOF
35184/* end confdefs.h. */
35185
35186 #include <sys/time.h>
35187 #include <unistd.h>
35188
35189int
35190main ()
35191{
35192
35193 struct timeval tv;
35194 gettimeofday(&tv);
35195
35196 ;
35197 return 0;
35198}
35199_ACEOF
35200rm -f conftest.$ac_objext
35201if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 35202 (eval $ac_compile) 2>conftest.er1
a848cd7e 35203 ac_status=$?
ac1cb8d3
VS
35204 grep -v '^ *+' conftest.er1 >conftest.err
35205 rm -f conftest.er1
35206 cat conftest.err >&5
a848cd7e
SC
35207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35208 (exit $ac_status); } &&
ffa0583f 35209 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35211 (eval $ac_try) 2>&5
35212 ac_status=$?
35213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35214 (exit $ac_status); }; } &&
35215 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
35216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35217 (eval $ac_try) 2>&5
35218 ac_status=$?
35219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35220 (exit $ac_status); }; }; then
35221 wx_cv_func_gettimeofday_has_2_args=no
35222else
35223 echo "$as_me: failed program was:" >&5
35224sed 's/^/| /' conftest.$ac_ext >&5
35225
35226
35227 { echo "$as_me:$LINENO: WARNING: failed to determine number of gettimeofday() arguments" >&5
35228echo "$as_me: WARNING: failed to determine number of gettimeofday() arguments" >&2;}
35229 wx_cv_func_gettimeofday_has_2_args=unknown
35230
35231
35232fi
ac1cb8d3 35233rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
35234
35235fi
ac1cb8d3 35236rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
35237 ac_ext=c
35238ac_cpp='$CPP $CPPFLAGS'
35239ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35240ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35241ac_compiler_gnu=$ac_cv_c_compiler_gnu
35242
35243
35244fi
35245echo "$as_me:$LINENO: result: $wx_cv_func_gettimeofday_has_2_args" >&5
35246echo "${ECHO_T}$wx_cv_func_gettimeofday_has_2_args" >&6
35247
35248 if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then
35249 cat >>confdefs.h <<\_ACEOF
35250#define WX_GETTIMEOFDAY_NO_TZ 1
35251_ACEOF
35252
35253 fi
35254 fi
35255
35256 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest"
35257fi
35258
35259
35260if test "$wxUSE_SOCKETS" = "yes"; then
35261 if test "$wxUSE_MGL" = "1"; then
35262 { echo "$as_me:$LINENO: WARNING: wxSocket not yet supported under MGL... disabled" >&5
35263echo "$as_me: WARNING: wxSocket not yet supported under MGL... disabled" >&2;}
35264 wxUSE_SOCKETS="no"
35265 fi
35266fi
35267
35268if test "$wxUSE_SOCKETS" = "yes"; then
35269 if test "$TOOLKIT" != "MSW"; then
35270 echo "$as_me:$LINENO: checking for socket" >&5
35271echo $ECHO_N "checking for socket... $ECHO_C" >&6
35272if test "${ac_cv_func_socket+set}" = set; then
35273 echo $ECHO_N "(cached) $ECHO_C" >&6
35274else
35275 cat >conftest.$ac_ext <<_ACEOF
35276/* confdefs.h. */
35277_ACEOF
35278cat confdefs.h >>conftest.$ac_ext
35279cat >>conftest.$ac_ext <<_ACEOF
35280/* end confdefs.h. */
ac1cb8d3
VS
35281/* Define socket to an innocuous variant, in case <limits.h> declares socket.
35282 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35283#define socket innocuous_socket
35284
a848cd7e
SC
35285/* System header to define __stub macros and hopefully few prototypes,
35286 which can conflict with char socket (); below.
35287 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35288 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 35289
a848cd7e
SC
35290#ifdef __STDC__
35291# include <limits.h>
35292#else
35293# include <assert.h>
35294#endif
ac1cb8d3
VS
35295
35296#undef socket
35297
a848cd7e
SC
35298/* Override any gcc2 internal prototype to avoid an error. */
35299#ifdef __cplusplus
35300extern "C"
35301{
35302#endif
35303/* We use char because int might match the return type of a gcc2
35304 builtin and then its argument prototype would still apply. */
35305char socket ();
35306/* The GNU C library defines this for functions which it implements
35307 to always fail with ENOSYS. Some functions are actually named
35308 something starting with __ and the normal name is an alias. */
35309#if defined (__stub_socket) || defined (__stub___socket)
35310choke me
35311#else
35312char (*f) () = socket;
35313#endif
35314#ifdef __cplusplus
35315}
35316#endif
35317
35318int
35319main ()
35320{
35321return f != socket;
35322 ;
35323 return 0;
35324}
35325_ACEOF
35326rm -f conftest.$ac_objext conftest$ac_exeext
35327if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35328 (eval $ac_link) 2>conftest.er1
a848cd7e 35329 ac_status=$?
ac1cb8d3
VS
35330 grep -v '^ *+' conftest.er1 >conftest.err
35331 rm -f conftest.er1
35332 cat conftest.err >&5
a848cd7e
SC
35333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35334 (exit $ac_status); } &&
ffa0583f 35335 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35337 (eval $ac_try) 2>&5
35338 ac_status=$?
35339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35340 (exit $ac_status); }; } &&
35341 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35343 (eval $ac_try) 2>&5
35344 ac_status=$?
35345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35346 (exit $ac_status); }; }; then
35347 ac_cv_func_socket=yes
35348else
35349 echo "$as_me: failed program was:" >&5
35350sed 's/^/| /' conftest.$ac_ext >&5
35351
35352ac_cv_func_socket=no
35353fi
ac1cb8d3
VS
35354rm -f conftest.err conftest.$ac_objext \
35355 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35356fi
35357echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
35358echo "${ECHO_T}$ac_cv_func_socket" >&6
35359if test $ac_cv_func_socket = yes; then
35360 :
35361else
35362
35363 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
35364echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
35365if test "${ac_cv_lib_socket_socket+set}" = set; then
35366 echo $ECHO_N "(cached) $ECHO_C" >&6
35367else
35368 ac_check_lib_save_LIBS=$LIBS
35369LIBS="-lsocket $LIBS"
35370cat >conftest.$ac_ext <<_ACEOF
35371/* confdefs.h. */
35372_ACEOF
35373cat confdefs.h >>conftest.$ac_ext
35374cat >>conftest.$ac_ext <<_ACEOF
35375/* end confdefs.h. */
35376
35377/* Override any gcc2 internal prototype to avoid an error. */
35378#ifdef __cplusplus
35379extern "C"
35380#endif
35381/* We use char because int might match the return type of a gcc2
35382 builtin and then its argument prototype would still apply. */
35383char socket ();
35384int
35385main ()
35386{
35387socket ();
35388 ;
35389 return 0;
35390}
35391_ACEOF
35392rm -f conftest.$ac_objext conftest$ac_exeext
35393if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35394 (eval $ac_link) 2>conftest.er1
a848cd7e 35395 ac_status=$?
ac1cb8d3
VS
35396 grep -v '^ *+' conftest.er1 >conftest.err
35397 rm -f conftest.er1
35398 cat conftest.err >&5
a848cd7e
SC
35399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35400 (exit $ac_status); } &&
ffa0583f 35401 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35403 (eval $ac_try) 2>&5
35404 ac_status=$?
35405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35406 (exit $ac_status); }; } &&
35407 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35409 (eval $ac_try) 2>&5
35410 ac_status=$?
35411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35412 (exit $ac_status); }; }; then
35413 ac_cv_lib_socket_socket=yes
35414else
35415 echo "$as_me: failed program was:" >&5
35416sed 's/^/| /' conftest.$ac_ext >&5
35417
35418ac_cv_lib_socket_socket=no
35419fi
ac1cb8d3
VS
35420rm -f conftest.err conftest.$ac_objext \
35421 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35422LIBS=$ac_check_lib_save_LIBS
35423fi
35424echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
35425echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
35426if test $ac_cv_lib_socket_socket = yes; then
35427 if test "$INET_LINK" != " -lsocket"; then
35428 INET_LINK="$INET_LINK -lsocket"
35429 fi
35430else
35431
35432 { echo "$as_me:$LINENO: WARNING: socket library not found - sockets will be disabled" >&5
35433echo "$as_me: WARNING: socket library not found - sockets will be disabled" >&2;}
35434 wxUSE_SOCKETS=no
35435
35436
35437fi
35438
35439
35440
35441fi
35442
35443 fi
35444fi
35445
35446if test "$wxUSE_SOCKETS" = "yes" ; then
35447 if test "$TOOLKIT" != "MSW"; then
4d4ff94c
VZ
35448 ac_ext=cc
35449ac_cpp='$CXXCPP $CPPFLAGS'
35450ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35451ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35452ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
35453
35454 echo "$as_me:$LINENO: checking what is the type of the third argument of getsockname" >&5
a848cd7e
SC
35455echo $ECHO_N "checking what is the type of the third argument of getsockname... $ECHO_C" >&6
35456if test "${wx_cv_type_getsockname3+set}" = set; then
35457 echo $ECHO_N "(cached) $ECHO_C" >&6
35458else
35459
35460 cat >conftest.$ac_ext <<_ACEOF
35461/* confdefs.h. */
35462_ACEOF
35463cat confdefs.h >>conftest.$ac_ext
35464cat >>conftest.$ac_ext <<_ACEOF
35465/* end confdefs.h. */
35466
35467 #include <sys/types.h>
35468 #include <sys/socket.h>
35469
35470int
35471main ()
35472{
35473
35474 socklen_t len;
35475 getsockname(0, 0, &len);
35476
35477 ;
35478 return 0;
35479}
35480_ACEOF
35481rm -f conftest.$ac_objext
35482if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 35483 (eval $ac_compile) 2>conftest.er1
a848cd7e 35484 ac_status=$?
ac1cb8d3
VS
35485 grep -v '^ *+' conftest.er1 >conftest.err
35486 rm -f conftest.er1
35487 cat conftest.err >&5
a848cd7e
SC
35488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35489 (exit $ac_status); } &&
ffa0583f 35490 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35492 (eval $ac_try) 2>&5
35493 ac_status=$?
35494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35495 (exit $ac_status); }; } &&
35496 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
35497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35498 (eval $ac_try) 2>&5
35499 ac_status=$?
35500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35501 (exit $ac_status); }; }; then
35502 wx_cv_type_getsockname3=socklen_t
35503else
35504 echo "$as_me: failed program was:" >&5
35505sed 's/^/| /' conftest.$ac_ext >&5
35506
35507
35508 CFLAGS_OLD="$CFLAGS"
35509 if test "$GCC" = yes ; then
35510 CFLAGS="$CFLAGS -Werror"
35511 fi
35512
35513 cat >conftest.$ac_ext <<_ACEOF
35514/* confdefs.h. */
35515_ACEOF
35516cat confdefs.h >>conftest.$ac_ext
35517cat >>conftest.$ac_ext <<_ACEOF
35518/* end confdefs.h. */
35519
35520 #include <sys/types.h>
35521 #include <sys/socket.h>
35522
35523int
35524main ()
35525{
35526
35527 size_t len;
35528 getsockname(0, 0, &len);
35529
35530 ;
35531 return 0;
35532}
35533_ACEOF
35534rm -f conftest.$ac_objext
35535if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 35536 (eval $ac_compile) 2>conftest.er1
a848cd7e 35537 ac_status=$?
ac1cb8d3
VS
35538 grep -v '^ *+' conftest.er1 >conftest.err
35539 rm -f conftest.er1
35540 cat conftest.err >&5
a848cd7e
SC
35541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35542 (exit $ac_status); } &&
ffa0583f 35543 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35545 (eval $ac_try) 2>&5
35546 ac_status=$?
35547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35548 (exit $ac_status); }; } &&
35549 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
35550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35551 (eval $ac_try) 2>&5
35552 ac_status=$?
35553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35554 (exit $ac_status); }; }; then
35555 wx_cv_type_getsockname3=size_t
35556else
35557 echo "$as_me: failed program was:" >&5
35558sed 's/^/| /' conftest.$ac_ext >&5
35559
35560cat >conftest.$ac_ext <<_ACEOF
35561/* confdefs.h. */
35562_ACEOF
35563cat confdefs.h >>conftest.$ac_ext
35564cat >>conftest.$ac_ext <<_ACEOF
35565/* end confdefs.h. */
35566
35567 #include <sys/types.h>
35568 #include <sys/socket.h>
35569
35570int
35571main ()
35572{
35573
35574 int len;
35575 getsockname(0, 0, &len);
35576
35577 ;
35578 return 0;
35579}
35580_ACEOF
35581rm -f conftest.$ac_objext
35582if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 35583 (eval $ac_compile) 2>conftest.er1
a848cd7e 35584 ac_status=$?
ac1cb8d3
VS
35585 grep -v '^ *+' conftest.er1 >conftest.err
35586 rm -f conftest.er1
35587 cat conftest.err >&5
a848cd7e
SC
35588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35589 (exit $ac_status); } &&
ffa0583f 35590 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35592 (eval $ac_try) 2>&5
35593 ac_status=$?
35594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35595 (exit $ac_status); }; } &&
35596 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
35597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35598 (eval $ac_try) 2>&5
35599 ac_status=$?
35600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35601 (exit $ac_status); }; }; then
35602 wx_cv_type_getsockname3=int
35603else
35604 echo "$as_me: failed program was:" >&5
35605sed 's/^/| /' conftest.$ac_ext >&5
35606
35607wx_cv_type_getsockname3=unknown
35608
35609fi
ac1cb8d3 35610rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
35611
35612fi
ac1cb8d3 35613rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
35614
35615 CFLAGS="$CFLAGS_OLD"
35616
35617
35618fi
ac1cb8d3 35619rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
35620
35621fi
35622echo "$as_me:$LINENO: result: $wx_cv_type_getsockname3" >&5
35623echo "${ECHO_T}$wx_cv_type_getsockname3" >&6
35624
35625 if test "$wx_cv_type_getsockname3" = "unknown"; then
35626 wxUSE_SOCKETS=no
35627 { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5
35628echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;}
35629 else
35630 cat >>confdefs.h <<_ACEOF
35631#define SOCKLEN_T $wx_cv_type_getsockname3
35632_ACEOF
35633
35634 fi
4d4ff94c
VZ
35635 ac_ext=c
35636ac_cpp='$CPP $CPPFLAGS'
35637ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35638ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35639ac_compiler_gnu=$ac_cv_c_compiler_gnu
35640
a848cd7e
SC
35641 fi
35642fi
35643
35644if test "$wxUSE_SOCKETS" = "yes" ; then
35645 cat >>confdefs.h <<\_ACEOF
35646#define wxUSE_SOCKETS 1
35647_ACEOF
35648
35649 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets"
35650fi
35651
35652if test "$wxUSE_PROTOCOL" = "yes"; then
35653 if test "$wxUSE_SOCKETS" != "yes"; then
35654 { echo "$as_me:$LINENO: WARNING: Protocol classes require sockets... disabled" >&5
35655echo "$as_me: WARNING: Protocol classes require sockets... disabled" >&2;}
35656 wxUSE_PROTOCOL=no
35657 fi
35658fi
35659
35660if test "$wxUSE_PROTOCOL" = "yes"; then
35661 cat >>confdefs.h <<\_ACEOF
35662#define wxUSE_PROTOCOL 1
35663_ACEOF
35664
35665
35666 if test "$wxUSE_PROTOCOL_HTTP" = "yes"; then
35667 cat >>confdefs.h <<\_ACEOF
35668#define wxUSE_PROTOCOL_HTTP 1
35669_ACEOF
35670
35671 fi
35672 if test "$wxUSE_PROTOCOL_FTP" = "yes"; then
35673 cat >>confdefs.h <<\_ACEOF
35674#define wxUSE_PROTOCOL_FTP 1
35675_ACEOF
35676
35677 fi
35678 if test "$wxUSE_PROTOCOL_FILE" = "yes"; then
35679 cat >>confdefs.h <<\_ACEOF
35680#define wxUSE_PROTOCOL_FILE 1
35681_ACEOF
35682
35683 fi
35684else
35685 if test "$wxUSE_FS_INET" = "yes"; then
35686 { echo "$as_me:$LINENO: WARNING: HTTP filesystem require protocol classes... disabled" >&5
35687echo "$as_me: WARNING: HTTP filesystem require protocol classes... disabled" >&2;}
35688 wxUSE_FS_INET="no"
35689 fi
35690fi
35691
35692if test "$wxUSE_URL" = "yes"; then
35693 if test "$wxUSE_PROTOCOL" != "yes"; then
35694 { echo "$as_me:$LINENO: WARNING: wxURL class requires wxProtocol... disabled" >&5
35695echo "$as_me: WARNING: wxURL class requires wxProtocol... disabled" >&2;}
35696 wxUSE_URL=no
35697 fi
35698 if test "$wxUSE_URL" = "yes"; then
35699 cat >>confdefs.h <<\_ACEOF
35700#define wxUSE_URL 1
35701_ACEOF
35702
35703 fi
35704fi
35705
35706if test "$wxUSE_FS_INET" = "yes"; then
35707 cat >>confdefs.h <<\_ACEOF
35708#define wxUSE_FS_INET 1
35709_ACEOF
35710
35711fi
35712
35713
35714if test "$wxUSE_GUI" = "yes"; then
35715
35716 if test "$TOOLKIT" = "MAC" -o "$TOOLKIT" = "COCOA"; then
35717 { echo "$as_me:$LINENO: WARNING: Joystick not yet supported under Mac OS X... disabled" >&5
35718echo "$as_me: WARNING: Joystick not yet supported under Mac OS X... disabled" >&2;}
35719 wxUSE_JOYSTICK=no
35720 fi
35721
35722 if test "$TOOLKIT" != "MSW"; then
35723 if test "$wxUSE_JOYSTICK" = "yes"; then
35724
35725for ac_header in linux/joystick.h
35726do
35727as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
35728if eval "test \"\${$as_ac_Header+set}\" = set"; then
35729 echo "$as_me:$LINENO: checking for $ac_header" >&5
35730echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35731if eval "test \"\${$as_ac_Header+set}\" = set"; then
35732 echo $ECHO_N "(cached) $ECHO_C" >&6
35733fi
35734echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35735echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35736else
35737 # Is the header compilable?
35738echo "$as_me:$LINENO: checking $ac_header usability" >&5
35739echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
35740cat >conftest.$ac_ext <<_ACEOF
35741/* confdefs.h. */
35742_ACEOF
35743cat confdefs.h >>conftest.$ac_ext
35744cat >>conftest.$ac_ext <<_ACEOF
35745/* end confdefs.h. */
35746$ac_includes_default
35747#include <$ac_header>
35748_ACEOF
35749rm -f conftest.$ac_objext
35750if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 35751 (eval $ac_compile) 2>conftest.er1
a848cd7e 35752 ac_status=$?
ac1cb8d3
VS
35753 grep -v '^ *+' conftest.er1 >conftest.err
35754 rm -f conftest.er1
35755 cat conftest.err >&5
a848cd7e
SC
35756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35757 (exit $ac_status); } &&
ffa0583f 35758 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35760 (eval $ac_try) 2>&5
35761 ac_status=$?
35762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35763 (exit $ac_status); }; } &&
35764 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
35765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35766 (eval $ac_try) 2>&5
35767 ac_status=$?
35768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35769 (exit $ac_status); }; }; then
35770 ac_header_compiler=yes
35771else
35772 echo "$as_me: failed program was:" >&5
35773sed 's/^/| /' conftest.$ac_ext >&5
35774
35775ac_header_compiler=no
35776fi
ac1cb8d3 35777rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
35778echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
35779echo "${ECHO_T}$ac_header_compiler" >&6
35780
35781# Is the header present?
35782echo "$as_me:$LINENO: checking $ac_header presence" >&5
35783echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
35784cat >conftest.$ac_ext <<_ACEOF
35785/* confdefs.h. */
35786_ACEOF
35787cat confdefs.h >>conftest.$ac_ext
35788cat >>conftest.$ac_ext <<_ACEOF
35789/* end confdefs.h. */
35790#include <$ac_header>
35791_ACEOF
35792if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
35793 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
35794 ac_status=$?
35795 grep -v '^ *+' conftest.er1 >conftest.err
35796 rm -f conftest.er1
35797 cat conftest.err >&5
35798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35799 (exit $ac_status); } >/dev/null; then
35800 if test -s conftest.err; then
35801 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 35802 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
35803 else
35804 ac_cpp_err=
35805 fi
35806else
35807 ac_cpp_err=yes
35808fi
35809if test -z "$ac_cpp_err"; then
35810 ac_header_preproc=yes
35811else
35812 echo "$as_me: failed program was:" >&5
35813sed 's/^/| /' conftest.$ac_ext >&5
35814
35815 ac_header_preproc=no
35816fi
35817rm -f conftest.err conftest.$ac_ext
35818echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
35819echo "${ECHO_T}$ac_header_preproc" >&6
35820
35821# So? What about this header?
ac1cb8d3
VS
35822case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
35823 yes:no: )
a848cd7e
SC
35824 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
35825echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
35826 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
35827echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
35828 ac_header_preproc=yes
a848cd7e 35829 ;;
ac1cb8d3 35830 no:yes:* )
a848cd7e
SC
35831 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
35832echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
35833 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
35834echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
35835 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
35836echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
35837 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
35838echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
35839 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
35840echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
35841 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
35842echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
35843 (
35844 cat <<\_ASBOX
ac1cb8d3
VS
35845## ----------------------------------------- ##
35846## Report this to wx-dev@lists.wxwidgets.org ##
35847## ----------------------------------------- ##
a848cd7e
SC
35848_ASBOX
35849 ) |
35850 sed "s/^/$as_me: WARNING: /" >&2
35851 ;;
35852esac
35853echo "$as_me:$LINENO: checking for $ac_header" >&5
35854echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35855if eval "test \"\${$as_ac_Header+set}\" = set"; then
35856 echo $ECHO_N "(cached) $ECHO_C" >&6
35857else
ac1cb8d3 35858 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
35859fi
35860echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35861echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35862
35863fi
35864if test `eval echo '${'$as_ac_Header'}'` = yes; then
35865 cat >>confdefs.h <<_ACEOF
35866#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
35867_ACEOF
35868
35869fi
35870
35871done
35872
35873 if test "$ac_cv_header_linux_joystick_h" != "yes"; then
35874 wxUSE_JOYSTICK=no
35875 { echo "$as_me:$LINENO: WARNING: Joystick not supported by this system... disabled" >&5
35876echo "$as_me: WARNING: Joystick not supported by this system... disabled" >&2;}
35877 fi
35878 fi
35879 fi
35880
35881 if test "$wxUSE_JOYSTICK" = "yes"; then
35882 cat >>confdefs.h <<\_ACEOF
35883#define wxUSE_JOYSTICK 1
35884_ACEOF
35885
35886 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest"
35887 fi
35888fi
35889
35890
35891
35892if test "$wxUSE_FONTMAP" = "yes" ; then
35893 cat >>confdefs.h <<\_ACEOF
35894#define wxUSE_FONTMAP 1
35895_ACEOF
35896
35897fi
35898
35899if test "$wxUSE_UNICODE" = "yes" ; then
35900 cat >>confdefs.h <<\_ACEOF
35901#define wxUSE_UNICODE 1
35902_ACEOF
35903
35904
35905 if test "$USE_WIN32" != 1; then
35906 wxUSE_UNICODE_MSLU=no
35907 fi
35908
35909 if test "$USE_WIN32" = 1 -a "$wxUSE_UNICODE_MSLU" = "yes"; then
35910 echo "$as_me:$LINENO: checking for main in -lunicows" >&5
35911echo $ECHO_N "checking for main in -lunicows... $ECHO_C" >&6
35912if test "${ac_cv_lib_unicows_main+set}" = set; then
35913 echo $ECHO_N "(cached) $ECHO_C" >&6
35914else
35915 ac_check_lib_save_LIBS=$LIBS
35916LIBS="-lunicows $LIBS"
35917cat >conftest.$ac_ext <<_ACEOF
35918/* confdefs.h. */
35919_ACEOF
35920cat confdefs.h >>conftest.$ac_ext
35921cat >>conftest.$ac_ext <<_ACEOF
35922/* end confdefs.h. */
35923
35924
35925int
35926main ()
35927{
35928main ();
35929 ;
35930 return 0;
35931}
35932_ACEOF
35933rm -f conftest.$ac_objext conftest$ac_exeext
35934if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35935 (eval $ac_link) 2>conftest.er1
a848cd7e 35936 ac_status=$?
ac1cb8d3
VS
35937 grep -v '^ *+' conftest.er1 >conftest.err
35938 rm -f conftest.er1
35939 cat conftest.err >&5
a848cd7e
SC
35940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35941 (exit $ac_status); } &&
ffa0583f 35942 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35944 (eval $ac_try) 2>&5
35945 ac_status=$?
35946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35947 (exit $ac_status); }; } &&
35948 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35950 (eval $ac_try) 2>&5
35951 ac_status=$?
35952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35953 (exit $ac_status); }; }; then
35954 ac_cv_lib_unicows_main=yes
35955else
35956 echo "$as_me: failed program was:" >&5
35957sed 's/^/| /' conftest.$ac_ext >&5
35958
35959ac_cv_lib_unicows_main=no
35960fi
ac1cb8d3
VS
35961rm -f conftest.err conftest.$ac_objext \
35962 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35963LIBS=$ac_check_lib_save_LIBS
35964fi
35965echo "$as_me:$LINENO: result: $ac_cv_lib_unicows_main" >&5
35966echo "${ECHO_T}$ac_cv_lib_unicows_main" >&6
35967if test $ac_cv_lib_unicows_main = yes; then
35968
35969 cat >>confdefs.h <<\_ACEOF
35970#define wxUSE_UNICODE_MSLU 1
35971_ACEOF
35972
35973
35974else
35975
35976 { echo "$as_me:$LINENO: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
35977 Applications will only run on Windows NT/2000/XP!" >&5
35978echo "$as_me: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
35979 Applications will only run on Windows NT/2000/XP!" >&2;}
35980 wxUSE_UNICODE_MSLU=no
35981
35982fi
35983
35984 fi
35985fi
35986
35987if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then
35988 cat >>confdefs.h <<\_ACEOF
35989#define wxUSE_EXPERIMENTAL_PRINTF 1
35990_ACEOF
35991
35992fi
35993
35994
35995if test "$wxUSE_POSTSCRIPT" = "yes" ; then
35996 cat >>confdefs.h <<\_ACEOF
35997#define wxUSE_POSTSCRIPT 1
35998_ACEOF
35999
36000fi
36001
36002cat >>confdefs.h <<\_ACEOF
36003#define wxUSE_AFM_FOR_POSTSCRIPT 1
36004_ACEOF
36005
36006
36007cat >>confdefs.h <<\_ACEOF
36008#define wxUSE_NORMALIZED_PS_FONTS 1
36009_ACEOF
36010
36011
36012
36013if test "$wxUSE_CONSTRAINTS" = "yes"; then
36014 cat >>confdefs.h <<\_ACEOF
36015#define wxUSE_CONSTRAINTS 1
36016_ACEOF
36017
36018 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout"
36019fi
36020
8a7b1113
VZ
36021if test "$wxUSE_MDI" = "yes"; then
36022 cat >>confdefs.h <<\_ACEOF
36023#define wxUSE_MDI 1
36024_ACEOF
36025
36026
36027 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
36028 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
36029#define wxUSE_MDI_ARCHITECTURE 1
36030_ACEOF
36031
8a7b1113
VZ
36032 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi"
36033 fi
a848cd7e
SC
36034fi
36035
36036if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then
36037 cat >>confdefs.h <<\_ACEOF
36038#define wxUSE_DOC_VIEW_ARCHITECTURE 1
36039_ACEOF
36040
36041 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview"
36042 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
36043 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi"
36044 fi
36045fi
36046
36047if test "$wxUSE_HELP" = "yes"; then
36048 cat >>confdefs.h <<\_ACEOF
36049#define wxUSE_HELP 1
36050_ACEOF
36051
36052 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help"
36053
36054 if test "$wxUSE_MSW" = 1; then
36055 if test "$wxUSE_MS_HTML_HELP" = "yes"; then
36056 cat >>confdefs.h <<\_ACEOF
36057#define wxUSE_MS_HTML_HELP 1
36058_ACEOF
36059
36060 fi
36061 fi
36062
36063 if test "$wxUSE_WXHTML_HELP" = "yes"; then
36064 if test "$wxUSE_HTML" = "yes"; then
36065 cat >>confdefs.h <<\_ACEOF
36066#define wxUSE_WXHTML_HELP 1
36067_ACEOF
36068
36069 else
36070 { echo "$as_me:$LINENO: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&5
36071echo "$as_me: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&2;}
36072 wxUSE_WXHTML_HELP=no
36073 fi
36074 fi
36075fi
36076
36077if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
36078 if test "$wxUSE_CONSTRAINTS" != "yes"; then
36079 { echo "$as_me:$LINENO: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&5
36080echo "$as_me: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&2;}
36081 else
36082 cat >>confdefs.h <<\_ACEOF
36083#define wxUSE_PRINTING_ARCHITECTURE 1
36084_ACEOF
36085
36086 fi
36087 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing"
36088fi
36089
36090if test "$wxUSE_PROLOGIO" = "yes" -o "$wxUSE_RESOURCES" = "yes"; then
36091 { { echo "$as_me:$LINENO: error: wxExpr and old-style resources are now available in contrib only" >&5
36092echo "$as_me: error: wxExpr and old-style resources are now available in contrib only" >&2;}
36093 { (exit 1); exit 1; }; }
36094fi
36095
36096
36097if test "$USE_WIN32" = 1 -a \( "$wxUSE_DATAOBJ" = "yes" \
36098 -o "$wxUSE_CLIPBOARD" = "yes" \
36099 -o "$wxUSE_OLE" = "yes" \
36100 -o "$wxUSE_DRAG_AND_DROP" = "yes" \) ; then
36101
36102for ac_header in ole2.h
36103do
36104as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
36105if eval "test \"\${$as_ac_Header+set}\" = set"; then
36106 echo "$as_me:$LINENO: checking for $ac_header" >&5
36107echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36108if eval "test \"\${$as_ac_Header+set}\" = set"; then
36109 echo $ECHO_N "(cached) $ECHO_C" >&6
36110fi
36111echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36112echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36113else
36114 # Is the header compilable?
36115echo "$as_me:$LINENO: checking $ac_header usability" >&5
36116echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
36117cat >conftest.$ac_ext <<_ACEOF
36118/* confdefs.h. */
36119_ACEOF
36120cat confdefs.h >>conftest.$ac_ext
36121cat >>conftest.$ac_ext <<_ACEOF
36122/* end confdefs.h. */
36123$ac_includes_default
36124#include <$ac_header>
36125_ACEOF
36126rm -f conftest.$ac_objext
36127if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 36128 (eval $ac_compile) 2>conftest.er1
a848cd7e 36129 ac_status=$?
ac1cb8d3
VS
36130 grep -v '^ *+' conftest.er1 >conftest.err
36131 rm -f conftest.er1
36132 cat conftest.err >&5
a848cd7e
SC
36133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36134 (exit $ac_status); } &&
ffa0583f 36135 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36137 (eval $ac_try) 2>&5
36138 ac_status=$?
36139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36140 (exit $ac_status); }; } &&
36141 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
36142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36143 (eval $ac_try) 2>&5
36144 ac_status=$?
36145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36146 (exit $ac_status); }; }; then
36147 ac_header_compiler=yes
36148else
36149 echo "$as_me: failed program was:" >&5
36150sed 's/^/| /' conftest.$ac_ext >&5
36151
36152ac_header_compiler=no
36153fi
ac1cb8d3 36154rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
36155echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36156echo "${ECHO_T}$ac_header_compiler" >&6
36157
36158# Is the header present?
36159echo "$as_me:$LINENO: checking $ac_header presence" >&5
36160echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
36161cat >conftest.$ac_ext <<_ACEOF
36162/* confdefs.h. */
36163_ACEOF
36164cat confdefs.h >>conftest.$ac_ext
36165cat >>conftest.$ac_ext <<_ACEOF
36166/* end confdefs.h. */
36167#include <$ac_header>
36168_ACEOF
36169if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
36170 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
36171 ac_status=$?
36172 grep -v '^ *+' conftest.er1 >conftest.err
36173 rm -f conftest.er1
36174 cat conftest.err >&5
36175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36176 (exit $ac_status); } >/dev/null; then
36177 if test -s conftest.err; then
36178 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 36179 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
36180 else
36181 ac_cpp_err=
36182 fi
36183else
36184 ac_cpp_err=yes
36185fi
36186if test -z "$ac_cpp_err"; then
36187 ac_header_preproc=yes
36188else
36189 echo "$as_me: failed program was:" >&5
36190sed 's/^/| /' conftest.$ac_ext >&5
36191
36192 ac_header_preproc=no
36193fi
36194rm -f conftest.err conftest.$ac_ext
36195echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36196echo "${ECHO_T}$ac_header_preproc" >&6
36197
36198# So? What about this header?
ac1cb8d3
VS
36199case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36200 yes:no: )
a848cd7e
SC
36201 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
36202echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
36203 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
36204echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
36205 ac_header_preproc=yes
a848cd7e 36206 ;;
ac1cb8d3 36207 no:yes:* )
a848cd7e
SC
36208 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
36209echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
36210 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
36211echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
36212 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
36213echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
36214 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
36215echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
36216 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
36217echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
36218 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
36219echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
36220 (
36221 cat <<\_ASBOX
ac1cb8d3
VS
36222## ----------------------------------------- ##
36223## Report this to wx-dev@lists.wxwidgets.org ##
36224## ----------------------------------------- ##
a848cd7e
SC
36225_ASBOX
36226 ) |
36227 sed "s/^/$as_me: WARNING: /" >&2
36228 ;;
36229esac
36230echo "$as_me:$LINENO: checking for $ac_header" >&5
36231echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36232if eval "test \"\${$as_ac_Header+set}\" = set"; then
36233 echo $ECHO_N "(cached) $ECHO_C" >&6
36234else
ac1cb8d3 36235 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
36236fi
36237echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36238echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36239
36240fi
36241if test `eval echo '${'$as_ac_Header'}'` = yes; then
36242 cat >>confdefs.h <<_ACEOF
36243#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
36244_ACEOF
36245
36246fi
36247
36248done
36249
36250
36251 if test "$ac_cv_header_ole2_h" = "yes" ; then
36252 if test "$GCC" = yes ; then
36253
36254
36255 ac_ext=cc
36256ac_cpp='$CXXCPP $CPPFLAGS'
36257ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36258ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36259ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
36260
36261
36262 echo "$as_me:$LINENO: checking if g++ requires -fvtable-thunks" >&5
36263echo $ECHO_N "checking if g++ requires -fvtable-thunks... $ECHO_C" >&6
36264 cat >conftest.$ac_ext <<_ACEOF
36265/* confdefs.h. */
36266_ACEOF
36267cat confdefs.h >>conftest.$ac_ext
36268cat >>conftest.$ac_ext <<_ACEOF
36269/* end confdefs.h. */
36270#include <windows.h>
36271 #include <ole2.h>
36272int
36273main ()
36274{
36275
36276 ;
36277 return 0;
36278}
36279_ACEOF
36280rm -f conftest.$ac_objext
36281if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 36282 (eval $ac_compile) 2>conftest.er1
a848cd7e 36283 ac_status=$?
ac1cb8d3
VS
36284 grep -v '^ *+' conftest.er1 >conftest.err
36285 rm -f conftest.er1
36286 cat conftest.err >&5
a848cd7e
SC
36287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36288 (exit $ac_status); } &&
ffa0583f 36289 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36291 (eval $ac_try) 2>&5
36292 ac_status=$?
36293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36294 (exit $ac_status); }; } &&
36295 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
36296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36297 (eval $ac_try) 2>&5
36298 ac_status=$?
36299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36300 (exit $ac_status); }; }; then
36301 echo "$as_me:$LINENO: result: no" >&5
36302echo "${ECHO_T}no" >&6
36303else
36304 echo "$as_me: failed program was:" >&5
36305sed 's/^/| /' conftest.$ac_ext >&5
36306
36307echo "$as_me:$LINENO: result: yes" >&5
36308echo "${ECHO_T}yes" >&6
36309 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fvtable-thunks"
36310fi
ac1cb8d3 36311rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
36312 ac_ext=c
36313ac_cpp='$CPP $CPPFLAGS'
36314ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36315ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36316ac_compiler_gnu=$ac_cv_c_compiler_gnu
36317
a848cd7e
SC
36318 LIBS=" -lrpcrt4 -loleaut32 -lole32 -luuid$LIBS"
36319 if test "$wxUSE_OLE" = "yes" ; then
36320 cat >>confdefs.h <<\_ACEOF
36321#define wxUSE_OLE 1
36322_ACEOF
36323
36324 fi
36325 fi
36326
36327 if test "$wxUSE_DATAOBJ" = "yes" ; then
36328 cat >>confdefs.h <<\_ACEOF
36329#define wxUSE_DATAOBJ 1
36330_ACEOF
36331
36332 fi
36333 else
36334 { echo "$as_me:$LINENO: WARNING: Some features disabled because OLE headers not found" >&5
36335echo "$as_me: WARNING: Some features disabled because OLE headers not found" >&2;}
36336
36337 wxUSE_CLIPBOARD=no
36338 wxUSE_DRAG_AND_DROP=no
36339 wxUSE_DATAOBJ=no
36340 wxUSE_OLE=no
36341 fi
36342
36343 if test "$wxUSE_METAFILE" = "yes"; then
36344 cat >>confdefs.h <<\_ACEOF
36345#define wxUSE_METAFILE 1
36346_ACEOF
36347
36348
36349 cat >>confdefs.h <<\_ACEOF
36350#define wxUSE_ENH_METAFILE 1
36351_ACEOF
36352
36353 fi
36354fi
36355
36356if test "$wxUSE_IPC" = "yes"; then
36357 if test "$wxUSE_SOCKETS" != "yes"; then
77ffb593
JS
36358 { echo "$as_me:$LINENO: WARNING: wxWidgets IPC classes require sockets... disabled" >&5
36359echo "$as_me: WARNING: wxWidgets IPC classes require sockets... disabled" >&2;}
a848cd7e
SC
36360 fi
36361
36362 cat >>confdefs.h <<\_ACEOF
36363#define wxUSE_IPC 1
36364_ACEOF
36365
36366fi
36367
36368if test "$wxUSE_CLIPBOARD" = "yes"; then
36369 if test "$wxUSE_MGL" = 1; then
36370 { echo "$as_me:$LINENO: WARNING: Clipboard not yet supported under MGL... disabled" >&5
36371echo "$as_me: WARNING: Clipboard not yet supported under MGL... disabled" >&2;}
36372 wxUSE_CLIPBOARD=no
36373 fi
36374
36375 if test "$wxUSE_CLIPBOARD" = "yes"; then
36376 cat >>confdefs.h <<\_ACEOF
36377#define wxUSE_CLIPBOARD 1
36378_ACEOF
36379
36380
36381 cat >>confdefs.h <<\_ACEOF
36382#define wxUSE_DATAOBJ 1
36383_ACEOF
36384
36385 fi
36386fi
36387
36388if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then
36389 if test "$wxUSE_GTK" = 1; then
36390 if test "$WXGTK12" != 1; then
36391 { echo "$as_me:$LINENO: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&5
36392echo "$as_me: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&2;}
36393 wxUSE_DRAG_AND_DROP=no
36394 fi
36395 fi
36396
36397 if test "$wxUSE_MOTIF" = 1; then
36398 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under Motif... disabled" >&5
36399echo "$as_me: WARNING: Drag and drop not yet supported under Motif... disabled" >&2;}
36400 wxUSE_DRAG_AND_DROP=no
36401 fi
36402
36403 if test "$wxUSE_X11" = 1; then
36404 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under X11... disabled" >&5
36405echo "$as_me: WARNING: Drag and drop not yet supported under X11... disabled" >&2;}
36406 wxUSE_DRAG_AND_DROP=no
36407 fi
36408
36409 if test "$wxUSE_MGL" = 1; then
36410 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under MGL... disabled" >&5
36411echo "$as_me: WARNING: Drag and drop not yet supported under MGL... disabled" >&2;}
36412 wxUSE_DRAG_AND_DROP=no
36413 fi
36414
36415 if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
36416 cat >>confdefs.h <<\_ACEOF
36417#define wxUSE_DRAG_AND_DROP 1
36418_ACEOF
36419
36420 fi
36421
36422fi
36423
36424if test "$wxUSE_DRAG_AND_DROP" = "yes" -o "$wxUSE_CLIPBOARD" = "yes"; then
36425 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd"
36426fi
36427
36428if test "$wxUSE_SPLINES" = "yes" ; then
36429 cat >>confdefs.h <<\_ACEOF
36430#define wxUSE_SPLINES 1
36431_ACEOF
36432
36433fi
36434
36435
36436USES_CONTROLS=0
36437if test "$wxUSE_CONTROLS" = "yes"; then
36438 USES_CONTROLS=1
36439fi
36440
36441if test "$wxUSE_ACCEL" = "yes"; then
36442 cat >>confdefs.h <<\_ACEOF
36443#define wxUSE_ACCEL 1
36444_ACEOF
36445
36446 USES_CONTROLS=1
36447fi
36448
36449if test "$wxUSE_BUTTON" = "yes"; then
36450 cat >>confdefs.h <<\_ACEOF
36451#define wxUSE_BUTTON 1
36452_ACEOF
36453
36454 USES_CONTROLS=1
36455fi
36456
36457if test "$wxUSE_BMPBUTTON" = "yes"; then
36458 cat >>confdefs.h <<\_ACEOF
36459#define wxUSE_BMPBUTTON 1
36460_ACEOF
36461
36462 USES_CONTROLS=1
36463fi
36464
36465if test "$wxUSE_CALCTRL" = "yes"; then
36466 cat >>confdefs.h <<\_ACEOF
36467#define wxUSE_CALENDARCTRL 1
36468_ACEOF
36469
36470 USES_CONTROLS=1
36471 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar"
36472fi
36473
36474if test "$wxUSE_CARET" = "yes"; then
36475 cat >>confdefs.h <<\_ACEOF
36476#define wxUSE_CARET 1
36477_ACEOF
36478
36479 USES_CONTROLS=1
36480 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret"
36481fi
36482
36483if test "$wxUSE_COMBOBOX" = "yes"; then
36484 cat >>confdefs.h <<\_ACEOF
36485#define wxUSE_COMBOBOX 1
36486_ACEOF
36487
36488 USES_CONTROLS=1
36489fi
36490
36491if test "$wxUSE_CHOICE" = "yes"; then
36492 cat >>confdefs.h <<\_ACEOF
36493#define wxUSE_CHOICE 1
36494_ACEOF
36495
36496 USES_CONTROLS=1
36497fi
36498
92bbdbcd
WS
36499if test "$wxUSE_CHOICEBOOK" = "yes"; then
36500 cat >>confdefs.h <<\_ACEOF
36501#define wxUSE_CHOICEBOOK 1
36502_ACEOF
36503
36504 USES_CONTROLS=1
36505fi
36506
a848cd7e
SC
36507if test "$wxUSE_CHECKBOX" = "yes"; then
36508 cat >>confdefs.h <<\_ACEOF
36509#define wxUSE_CHECKBOX 1
36510_ACEOF
36511
36512 USES_CONTROLS=1
36513fi
36514
36515if test "$wxUSE_CHECKLST" = "yes"; then
36516 cat >>confdefs.h <<\_ACEOF
36517#define wxUSE_CHECKLISTBOX 1
36518_ACEOF
36519
36520 USES_CONTROLS=1
36521 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst"
36522fi
36523
36524if test "$wxUSE_DISPLAY" = "yes"; then
36525 cat >>confdefs.h <<\_ACEOF
36526#define wxUSE_DISPLAY 1
36527_ACEOF
36528
36529 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS display"
36530fi
36531
36532if test "$wxUSE_GAUGE" = "yes"; then
36533 cat >>confdefs.h <<\_ACEOF
36534#define wxUSE_GAUGE 1
36535_ACEOF
36536
36537 USES_CONTROLS=1
36538fi
36539
36540if test "$wxUSE_GRID" = "yes"; then
36541 cat >>confdefs.h <<\_ACEOF
36542#define wxUSE_GRID 1
36543_ACEOF
36544
36545 USES_CONTROLS=1
36546 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid"
36547fi
36548
36549if test "$wxUSE_IMAGLIST" = "yes"; then
36550 cat >>confdefs.h <<\_ACEOF
36551#define wxUSE_IMAGLIST 1
36552_ACEOF
36553
36554fi
36555
36556if test "$wxUSE_LISTBOOK" = "yes"; then
36557 cat >>confdefs.h <<\_ACEOF
36558#define wxUSE_LISTBOOK 1
36559_ACEOF
36560
36561 USES_CONTROLS=1
36562fi
36563
36564if test "$wxUSE_LISTBOX" = "yes"; then
36565 cat >>confdefs.h <<\_ACEOF
36566#define wxUSE_LISTBOX 1
36567_ACEOF
36568
36569 USES_CONTROLS=1
36570fi
36571
36572if test "$wxUSE_LISTCTRL" = "yes"; then
36573 if test "$wxUSE_IMAGLIST" = "yes"; then
36574 cat >>confdefs.h <<\_ACEOF
36575#define wxUSE_LISTCTRL 1
36576_ACEOF
36577
36578 USES_CONTROLS=1
36579 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl"
36580 else
36581 { echo "$as_me:$LINENO: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&5
36582echo "$as_me: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&2;}
36583 fi
36584fi
36585
36586if test "$wxUSE_NOTEBOOK" = "yes"; then
36587 cat >>confdefs.h <<\_ACEOF
36588#define wxUSE_NOTEBOOK 1
36589_ACEOF
36590
36591 USES_CONTROLS=1
36592 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook"
36593fi
36594
36595
36596if test "$wxUSE_RADIOBOX" = "yes"; then
36597 cat >>confdefs.h <<\_ACEOF
36598#define wxUSE_RADIOBOX 1
36599_ACEOF
36600
36601 USES_CONTROLS=1
36602fi
36603
36604if test "$wxUSE_RADIOBTN" = "yes"; then
36605 cat >>confdefs.h <<\_ACEOF
36606#define wxUSE_RADIOBTN 1
36607_ACEOF
36608
36609 USES_CONTROLS=1
36610fi
36611
36612if test "$wxUSE_SASH" = "yes"; then
36613 cat >>confdefs.h <<\_ACEOF
36614#define wxUSE_SASH 1
36615_ACEOF
36616
36617 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest"
36618fi
36619
36620if test "$wxUSE_SCROLLBAR" = "yes"; then
36621 cat >>confdefs.h <<\_ACEOF
36622#define wxUSE_SCROLLBAR 1
36623_ACEOF
36624
36625 USES_CONTROLS=1
36626 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub"
36627fi
36628
36629if test "$wxUSE_SLIDER" = "yes"; then
36630 cat >>confdefs.h <<\_ACEOF
36631#define wxUSE_SLIDER 1
36632_ACEOF
36633
36634 USES_CONTROLS=1
36635fi
36636
36637if test "$wxUSE_SPINBTN" = "yes"; then
36638 cat >>confdefs.h <<\_ACEOF
36639#define wxUSE_SPINBTN 1
36640_ACEOF
36641
36642 USES_CONTROLS=1
36643fi
36644
36645if test "$wxUSE_SPINCTRL" = "yes"; then
36646 cat >>confdefs.h <<\_ACEOF
36647#define wxUSE_SPINCTRL 1
36648_ACEOF
36649
36650 USES_CONTROLS=1
36651fi
36652
36653if test "$wxUSE_SPLITTER" = "yes"; then
36654 cat >>confdefs.h <<\_ACEOF
36655#define wxUSE_SPLITTER 1
36656_ACEOF
36657
36658 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter"
36659fi
36660
36661if test "$wxUSE_STATBMP" = "yes"; then
36662 cat >>confdefs.h <<\_ACEOF
36663#define wxUSE_STATBMP 1
36664_ACEOF
36665
36666 USES_CONTROLS=1
36667fi
36668
36669if test "$wxUSE_STATBOX" = "yes"; then
36670 cat >>confdefs.h <<\_ACEOF
36671#define wxUSE_STATBOX 1
36672_ACEOF
36673
36674 USES_CONTROLS=1
36675fi
36676
36677if test "$wxUSE_STATTEXT" = "yes"; then
36678 cat >>confdefs.h <<\_ACEOF
36679#define wxUSE_STATTEXT 1
36680_ACEOF
36681
36682 USES_CONTROLS=1
36683fi
36684
36685if test "$wxUSE_STATLINE" = "yes"; then
36686 cat >>confdefs.h <<\_ACEOF
36687#define wxUSE_STATLINE 1
36688_ACEOF
36689
36690 USES_CONTROLS=1
36691fi
36692
36693if test "$wxUSE_STATUSBAR" = "yes"; then
36694 cat >>confdefs.h <<\_ACEOF
36695#define wxUSE_STATUSBAR 1
36696_ACEOF
36697
36698 USES_CONTROLS=1
36699
36700 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar"
36701fi
36702
36703if test "$wxUSE_TABDIALOG" = "yes"; then
36704 cat >>confdefs.h <<\_ACEOF
36705#define wxUSE_TAB_DIALOG 1
36706_ACEOF
36707
36708 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS tab"
36709fi
36710
36711if test "$wxUSE_TEXTCTRL" = "yes"; then
36712 cat >>confdefs.h <<\_ACEOF
36713#define wxUSE_TEXTCTRL 1
36714_ACEOF
36715
36716 USES_CONTROLS=1
36717 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text"
36718fi
36719
36720if test "$wxUSE_TOGGLEBTN" = "yes"; then
36721 if test "$wxUSE_COCOA" = 1 ; then
36722 { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&5
36723echo "$as_me: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&2;}
36724 wxUSE_TOGGLEBTN=no
bdcade0a
MB
36725 else
36726 if test "$wxUSE_PM" = 1; then
36727 { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under PM... disabled" >&5
36728echo "$as_me: WARNING: Toggle button not yet supported under PM... disabled" >&2;}
36729 wxUSE_TOGGLEBTN=no
36730 fi
a848cd7e
SC
36731 fi
36732 if test "$wxUSE_UNIVERSAL" = "yes"; then
36733 { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under wxUniversal... disabled" >&5
36734echo "$as_me: WARNING: Toggle button not yet supported under wxUniversal... disabled" >&2;}
36735 wxUSE_TOGGLEBTN=no
36736 fi
36737
36738 if test "$wxUSE_TOGGLEBTN" = "yes"; then
36739 cat >>confdefs.h <<\_ACEOF
36740#define wxUSE_TOGGLEBTN 1
36741_ACEOF
36742
36743 USES_CONTROLS=1
36744 fi
36745fi
36746
36747if test "$wxUSE_TOOLBAR_SIMPLE" = "yes"; then
36748 cat >>confdefs.h <<\_ACEOF
36749#define wxUSE_TOOLBAR_SIMPLE 1
36750_ACEOF
36751
36752 wxUSE_TOOLBAR="yes"
36753 USES_CONTROLS=1
36754fi
36755
36756if test "$wxUSE_TOOLBAR" = "yes"; then
36757 cat >>confdefs.h <<\_ACEOF
36758#define wxUSE_TOOLBAR 1
36759_ACEOF
36760
36761 USES_CONTROLS=1
36762
36763 if test "$wxUSE_TOOLBAR_SIMPLE" != "yes"; then
36764 wxUSE_TOOLBAR_NATIVE="yes"
36765 fi
36766
36767 if test "$wxUSE_TOOLBAR_NATIVE" = "yes"; then
36768 cat >>confdefs.h <<\_ACEOF
36769#define wxUSE_TOOLBAR_NATIVE 1
36770_ACEOF
36771
36772 USES_CONTROLS=1
36773 fi
36774
36775 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar"
36776fi
36777
36778if test "$wxUSE_TOOLTIPS" = "yes"; then
36779 if test "$wxUSE_MOTIF" = 1; then
36780 { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet under Motif... disabled" >&5
36781echo "$as_me: WARNING: wxTooltip not supported yet under Motif... disabled" >&2;}
36782 else
36783 if test "$wxUSE_UNIVERSAL" = "yes"; then
36784 { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&5
36785echo "$as_me: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&2;}
36786 else
36787 cat >>confdefs.h <<\_ACEOF
36788#define wxUSE_TOOLTIPS 1
36789_ACEOF
36790
36791 fi
36792 fi
36793fi
36794
36795if test "$wxUSE_TREECTRL" = "yes"; then
36796 if test "$wxUSE_IMAGLIST" = "yes"; then
36797 cat >>confdefs.h <<\_ACEOF
36798#define wxUSE_TREECTRL 1
36799_ACEOF
36800
36801 USES_CONTROLS=1
36802 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl"
36803 else
36804 { echo "$as_me:$LINENO: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&5
36805echo "$as_me: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&2;}
36806 fi
36807fi
36808
36809if test "$wxUSE_POPUPWIN" = "yes"; then
36810 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
36811 { echo "$as_me:$LINENO: WARNING: Popup window not yet supported under Mac OS X... disabled" >&5
36812echo "$as_me: WARNING: Popup window not yet supported under Mac OS X... disabled" >&2;}
36813 else
36814 if test "$wxUSE_PM" = 1; then
36815 { echo "$as_me:$LINENO: WARNING: wxPopupWindow not yet supported under PM... disabled" >&5
36816echo "$as_me: WARNING: wxPopupWindow not yet supported under PM... disabled" >&2;}
36817 else
36818 cat >>confdefs.h <<\_ACEOF
36819#define wxUSE_POPUPWIN 1
36820_ACEOF
36821
36822
36823 USES_CONTROLS=1
36824 fi
36825 fi
36826fi
36827
36828if test "$wxUSE_TIPWINDOW" = "yes"; then
36829 if test "$wxUSE_PM" = 1; then
36830 { echo "$as_me:$LINENO: WARNING: wxTipWindow not yet supported under PM... disabled" >&5
36831echo "$as_me: WARNING: wxTipWindow not yet supported under PM... disabled" >&2;}
36832 else
36833 cat >>confdefs.h <<\_ACEOF
36834#define wxUSE_TIPWINDOW 1
36835_ACEOF
36836
36837 fi
36838fi
36839
36840if test "$USES_CONTROLS" = 1; then
36841 cat >>confdefs.h <<\_ACEOF
36842#define wxUSE_CONTROLS 1
36843_ACEOF
36844
36845fi
36846
36847
36848if test "$wxUSE_ACCESSIBILITY" = "yes"; then
36849 cat >>confdefs.h <<\_ACEOF
36850#define wxUSE_ACCESSIBILITY 1
36851_ACEOF
36852
36853 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS access"
36854fi
36855
36856if test "$wxUSE_DRAGIMAGE" = "yes"; then
36857 cat >>confdefs.h <<\_ACEOF
36858#define wxUSE_DRAGIMAGE 1
36859_ACEOF
36860
36861 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag"
36862fi
36863
36864if test "$wxUSE_EXCEPTIONS" = "yes"; then
07bea8f0
VS
36865 if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
36866 { echo "$as_me:$LINENO: WARNING: --enable-exceptions can't be used with --enable-no_exceptions" >&5
36867echo "$as_me: WARNING: --enable-exceptions can't be used with --enable-no_exceptions" >&2;}
36868 else
36869 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
36870#define wxUSE_EXCEPTIONS 1
36871_ACEOF
36872
07bea8f0
VS
36873 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS except"
36874 fi
a848cd7e
SC
36875fi
36876
36877USE_HTML=0
36878if test "$wxUSE_HTML" = "yes"; then
36879 cat >>confdefs.h <<\_ACEOF
36880#define wxUSE_HTML 1
36881_ACEOF
36882
36883 USE_HTML=1
36884 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html html/about html/help html/helpview html/printing html/test html/virtual html/widget html/zip htlbox"
de59c161
RD
36885 if test "$wxUSE_MAC" = 1; then
36886 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html/htmlctrl"
36887 fi
a848cd7e 36888fi
646b6ec1 36889if test "$wxUSE_WEBKIT" = "yes"; then
07bea8f0
VS
36890 if test "$wxUSE_MAC" = 1; then
36891 old_CPPFLAGS="$CPPFLAGS"
36892 CPPFLAGS="$CPPFLAGS -x objective-c++"
36893 echo "$as_me:$LINENO: checking for WebKit/HIWebView.h" >&5
36894echo $ECHO_N "checking for WebKit/HIWebView.h... $ECHO_C" >&6
36895if test "${ac_cv_header_WebKit_HIWebView_h+set}" = set; then
36896 echo $ECHO_N "(cached) $ECHO_C" >&6
36897else
36898 cat >conftest.$ac_ext <<_ACEOF
36899/* confdefs.h. */
36900_ACEOF
36901cat confdefs.h >>conftest.$ac_ext
36902cat >>conftest.$ac_ext <<_ACEOF
36903/* end confdefs.h. */
36904#include <Carbon/Carbon.h>
36905
36906#include <WebKit/HIWebView.h>
36907_ACEOF
36908rm -f conftest.$ac_objext
36909if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36910 (eval $ac_compile) 2>conftest.er1
36911 ac_status=$?
36912 grep -v '^ *+' conftest.er1 >conftest.err
36913 rm -f conftest.er1
36914 cat conftest.err >&5
36915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36916 (exit $ac_status); } &&
ffa0583f 36917 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
07bea8f0
VS
36918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36919 (eval $ac_try) 2>&5
36920 ac_status=$?
36921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36922 (exit $ac_status); }; } &&
36923 { ac_try='test -s conftest.$ac_objext'
36924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36925 (eval $ac_try) 2>&5
36926 ac_status=$?
36927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36928 (exit $ac_status); }; }; then
36929 ac_cv_header_WebKit_HIWebView_h=yes
36930else
36931 echo "$as_me: failed program was:" >&5
36932sed 's/^/| /' conftest.$ac_ext >&5
36933
36934ac_cv_header_WebKit_HIWebView_h=no
36935fi
36936rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36937fi
36938echo "$as_me:$LINENO: result: $ac_cv_header_WebKit_HIWebView_h" >&5
36939echo "${ECHO_T}$ac_cv_header_WebKit_HIWebView_h" >&6
36940if test $ac_cv_header_WebKit_HIWebView_h = yes; then
36941
36942 cat >>confdefs.h <<\_ACEOF
646b6ec1
VS
36943#define wxUSE_WEBKIT 1
36944_ACEOF
36945
07bea8f0
VS
36946 WEBKIT_LINK="-framework WebKit"
36947
36948else
36949
36950 { echo "$as_me:$LINENO: WARNING: WebKit headers not found; disabling wxWebKit" >&5
36951echo "$as_me: WARNING: WebKit headers not found; disabling wxWebKit" >&2;}
36952 wxUSE_WEBKIT=no
36953
646b6ec1
VS
36954fi
36955
07bea8f0
VS
36956
36957 CPPFLAGS="$old_CPPFLAGS"
36958 elif test "$wxUSE_COCOA" = 1; then
36959 cat >>confdefs.h <<\_ACEOF
36960#define wxUSE_WEBKIT 1
36961_ACEOF
36962
36963 else
36964 wxUSE_WEBKIT=no
36965 fi
36966fi
36967
9a8f0513
VS
36968USE_XRC=0
36969if test "$wxUSE_XRC" = "yes"; then
d2ebf0b7
VS
36970 if test "$wxUSE_XML" != "yes"; then
36971 { echo "$as_me:$LINENO: WARNING: XML library not built, XRC resources disabled" >&5
36972echo "$as_me: WARNING: XML library not built, XRC resources disabled" >&2;}
36973 wxUSE_XRC=no
36974 else
36975 cat >>confdefs.h <<\_ACEOF
9a8f0513
VS
36976#define wxUSE_XRC 1
36977_ACEOF
36978
d2ebf0b7
VS
36979 USE_XRC=1
36980 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS xrc"
36981 fi
9a8f0513 36982fi
07bea8f0 36983
a848cd7e
SC
36984if test "$wxUSE_MENUS" = "yes"; then
36985 cat >>confdefs.h <<\_ACEOF
36986#define wxUSE_MENUS 1
36987_ACEOF
36988
36989 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu"
36990fi
36991
36992if test "$wxUSE_METAFILE" = "yes"; then
36993 cat >>confdefs.h <<\_ACEOF
36994#define wxUSE_METAFILE 1
36995_ACEOF
36996
36997fi
36998
36999if test "$wxUSE_MIMETYPE" = "yes"; then
37000 cat >>confdefs.h <<\_ACEOF
37001#define wxUSE_MIMETYPE 1
37002_ACEOF
37003
37004fi
37005
37006if test "$wxUSE_MINIFRAME" = "yes"; then
37007 cat >>confdefs.h <<\_ACEOF
37008#define wxUSE_MINIFRAME 1
37009_ACEOF
37010
37011 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram"
37012fi
37013
37014if test "$wxUSE_SYSTEM_OPTIONS" = "yes"; then
37015 cat >>confdefs.h <<\_ACEOF
37016#define wxUSE_SYSTEM_OPTIONS 1
37017_ACEOF
37018
37019 if test "$TOOLKIT" = "MSW" -o "$TOOLKIT" = "GTK" -o "$TOOLKIT" = "X11" -o \
a49baeab 37020 "$TOOLKIT" = "MOTIF" -o "$TOOLKIT" = "COCOA"; then
a848cd7e
SC
37021 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS taskbar"
37022 fi
37023fi
37024
37025
37026if test "$wxUSE_VALIDATORS" = "yes"; then
37027 cat >>confdefs.h <<\_ACEOF
37028#define wxUSE_VALIDATORS 1
37029_ACEOF
37030
37031 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate"
37032fi
37033
37034if test "$wxUSE_PALETTE" = "yes" ; then
37035 cat >>confdefs.h <<\_ACEOF
37036#define wxUSE_PALETTE 1
37037_ACEOF
37038
37039fi
37040
37041if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_MSLU" = "yes" ; then
37042 LIBS=" -lunicows $LIBS"
37043fi
37044
37045
37046if test "$wxUSE_IMAGE" = "yes" ; then
37047 cat >>confdefs.h <<\_ACEOF
37048#define wxUSE_IMAGE 1
37049_ACEOF
37050
37051
37052 if test "$wxUSE_GIF" = "yes" ; then
37053 cat >>confdefs.h <<\_ACEOF
37054#define wxUSE_GIF 1
37055_ACEOF
37056
37057 fi
37058
37059 if test "$wxUSE_PCX" = "yes" ; then
37060 cat >>confdefs.h <<\_ACEOF
37061#define wxUSE_PCX 1
37062_ACEOF
37063
37064 fi
37065
37066 if test "$wxUSE_IFF" = "yes" ; then
37067 cat >>confdefs.h <<\_ACEOF
37068#define wxUSE_IFF 1
37069_ACEOF
37070
37071 fi
37072
37073 if test "$wxUSE_PNM" = "yes" ; then
37074 cat >>confdefs.h <<\_ACEOF
37075#define wxUSE_PNM 1
37076_ACEOF
37077
37078 fi
37079
37080 if test "$wxUSE_XPM" = "yes" ; then
37081 cat >>confdefs.h <<\_ACEOF
37082#define wxUSE_XPM 1
37083_ACEOF
37084
37085 fi
37086
37087 if test "$wxUSE_ICO_CUR" = "yes" ; then
37088 cat >>confdefs.h <<\_ACEOF
37089#define wxUSE_ICO_CUR 1
37090_ACEOF
37091
37092 fi
37093fi
37094
37095
37096if test "$wxUSE_CHOICEDLG" = "yes"; then
37097 cat >>confdefs.h <<\_ACEOF
37098#define wxUSE_CHOICEDLG 1
37099_ACEOF
37100
37101fi
37102
37103if test "$wxUSE_COLOURDLG" = "yes"; then
37104 cat >>confdefs.h <<\_ACEOF
37105#define wxUSE_COLOURDLG 1
37106_ACEOF
37107
37108fi
37109
37110if test "$wxUSE_FILEDLG" = "yes"; then
37111 cat >>confdefs.h <<\_ACEOF
37112#define wxUSE_FILEDLG 1
37113_ACEOF
37114
37115fi
37116
37117if test "$wxUSE_FINDREPLDLG" = "yes"; then
37118 cat >>confdefs.h <<\_ACEOF
37119#define wxUSE_FINDREPLDLG 1
37120_ACEOF
37121
37122fi
37123
37124if test "$wxUSE_FONTDLG" = "yes"; then
37125 cat >>confdefs.h <<\_ACEOF
37126#define wxUSE_FONTDLG 1
37127_ACEOF
37128
37129fi
37130
37131if test "$wxUSE_DIRDLG" = "yes"; then
37132 if test "$wxUSE_TREECTRL" != "yes"; then
37133 { echo "$as_me:$LINENO: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&5
37134echo "$as_me: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&2;}
37135 else
37136 cat >>confdefs.h <<\_ACEOF
37137#define wxUSE_DIRDLG 1
37138_ACEOF
37139
37140 fi
37141fi
37142
37143if test "$wxUSE_MSGDLG" = "yes"; then
37144 cat >>confdefs.h <<\_ACEOF
37145#define wxUSE_MSGDLG 1
37146_ACEOF
37147
37148fi
37149
37150if test "$wxUSE_NUMBERDLG" = "yes"; then
37151 cat >>confdefs.h <<\_ACEOF
37152#define wxUSE_NUMBERDLG 1
37153_ACEOF
37154
37155fi
37156
37157if test "$wxUSE_PROGRESSDLG" = "yes"; then
37158 if test "$wxUSE_CONSTRAINTS" != "yes"; then
37159 { echo "$as_me:$LINENO: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&5
37160echo "$as_me: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&2;}
37161 else
37162 cat >>confdefs.h <<\_ACEOF
37163#define wxUSE_PROGRESSDLG 1
37164_ACEOF
37165
37166 fi
37167fi
37168
37169if test "$wxUSE_SPLASH" = "yes"; then
37170 cat >>confdefs.h <<\_ACEOF
37171#define wxUSE_SPLASH 1
37172_ACEOF
37173
2057db16 37174 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splash"
a848cd7e
SC
37175fi
37176
37177if test "$wxUSE_STARTUP_TIPS" = "yes"; then
37178 if test "$wxUSE_CONSTRAINTS" != "yes"; then
37179 { echo "$as_me:$LINENO: WARNING: Startup tips requires constraints and won't be compiled without them" >&5
37180echo "$as_me: WARNING: Startup tips requires constraints and won't be compiled without them" >&2;}
37181 else
37182 cat >>confdefs.h <<\_ACEOF
37183#define wxUSE_STARTUP_TIPS 1
37184_ACEOF
37185
37186 fi
37187fi
37188
37189if test "$wxUSE_TEXTDLG" = "yes"; then
37190 cat >>confdefs.h <<\_ACEOF
37191#define wxUSE_TEXTDLG 1
37192_ACEOF
37193
37194fi
37195
37196if test "$wxUSE_WIZARDDLG" = "yes"; then
37197 cat >>confdefs.h <<\_ACEOF
37198#define wxUSE_WIZARDDLG 1
37199_ACEOF
37200
37201 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard"
37202fi
37203
37204
37205if test "$cross_compiling" = "yes"; then
37206 OSINFO="\"$host\""
37207else
37208 OSINFO=`uname -s -r -m`
37209 OSINFO="\"$OSINFO\""
37210fi
37211
37212cat >>confdefs.h <<_ACEOF
37213#define WXWIN_OS_DESCRIPTION $OSINFO
37214_ACEOF
37215
37216
37217
37218if test "x$prefix" != "xNONE"; then
37219 wxPREFIX=$prefix
37220else
37221 wxPREFIX=$ac_default_prefix
37222fi
37223
37224cat >>confdefs.h <<_ACEOF
37225#define wxINSTALL_PREFIX "$wxPREFIX"
37226_ACEOF
37227
37228
a848cd7e
SC
37229
37230
37231CORE_BASE_LIBS="net base"
37232CORE_GUI_LIBS="adv core"
37233
37234if test "$wxUSE_XML" = "yes" ; then
37235 CORE_BASE_LIBS="xml $CORE_BASE_LIBS"
37236fi
37237if test "$wxUSE_ODBC" != "no" ; then
37238 CORE_BASE_LIBS="odbc $CORE_BASE_LIBS"
37239 CORE_GUI_LIBS="dbgrid $CORE_GUI_LIBS"
37240fi
37241if test "$wxUSE_HTML" = "yes" ; then
37242 CORE_GUI_LIBS="html $CORE_GUI_LIBS"
37243fi
9a8f0513
VS
37244if test "$wxUSE_XRC" = "yes" ; then
37245 CORE_GUI_LIBS="xrc $CORE_GUI_LIBS"
37246fi
a848cd7e
SC
37247
37248if test "$wxUSE_GUI" != "yes"; then
37249 CORE_GUI_LIBS=""
37250fi
37251
37252
37253
37254
37255
37256
37257
37258
37259if test "$wxUSE_MAC" = 1 ; then
07bea8f0
VS
37260 if test "$wxUSE_SOUND" = "yes"; then
37261 LDFLAGS="$LDFLAGS -framework QuickTime"
37262 fi
5dcf30a0
RN
37263 if test "$USE_DARWIN" = 1; then
37264 LDFLAGS="$LDFLAGS -framework IOKit"
37265 fi
07bea8f0 37266 LDFLAGS="$LDFLAGS -framework Carbon -framework Cocoa -framework System"
a848cd7e
SC
37267fi
37268if test "$wxUSE_COCOA" = 1 ; then
f7e98dee 37269 LDFLAGS="$LDFLAGS -framework Cocoa"
a848cd7e
SC
37270fi
37271
37272
37273LIBS="$ZLIB_LINK $POSIX4_LINK $INET_LINK $WCHAR_LINK $DL_LINK $LIBS"
37274
37275have_cos=0
37276have_floor=0
37277
37278for ac_func in cos
37279do
37280as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37281echo "$as_me:$LINENO: checking for $ac_func" >&5
37282echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37283if eval "test \"\${$as_ac_var+set}\" = set"; then
37284 echo $ECHO_N "(cached) $ECHO_C" >&6
37285else
37286 cat >conftest.$ac_ext <<_ACEOF
37287/* confdefs.h. */
37288_ACEOF
37289cat confdefs.h >>conftest.$ac_ext
37290cat >>conftest.$ac_ext <<_ACEOF
37291/* end confdefs.h. */
ac1cb8d3
VS
37292/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37293 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37294#define $ac_func innocuous_$ac_func
37295
a848cd7e
SC
37296/* System header to define __stub macros and hopefully few prototypes,
37297 which can conflict with char $ac_func (); below.
37298 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37299 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 37300
a848cd7e
SC
37301#ifdef __STDC__
37302# include <limits.h>
37303#else
37304# include <assert.h>
37305#endif
ac1cb8d3
VS
37306
37307#undef $ac_func
37308
a848cd7e
SC
37309/* Override any gcc2 internal prototype to avoid an error. */
37310#ifdef __cplusplus
37311extern "C"
37312{
37313#endif
37314/* We use char because int might match the return type of a gcc2
37315 builtin and then its argument prototype would still apply. */
37316char $ac_func ();
37317/* The GNU C library defines this for functions which it implements
37318 to always fail with ENOSYS. Some functions are actually named
37319 something starting with __ and the normal name is an alias. */
37320#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37321choke me
37322#else
37323char (*f) () = $ac_func;
37324#endif
37325#ifdef __cplusplus
37326}
37327#endif
37328
37329int
37330main ()
37331{
37332return f != $ac_func;
37333 ;
37334 return 0;
37335}
37336_ACEOF
37337rm -f conftest.$ac_objext conftest$ac_exeext
37338if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37339 (eval $ac_link) 2>conftest.er1
a848cd7e 37340 ac_status=$?
ac1cb8d3
VS
37341 grep -v '^ *+' conftest.er1 >conftest.err
37342 rm -f conftest.er1
37343 cat conftest.err >&5
a848cd7e
SC
37344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37345 (exit $ac_status); } &&
ffa0583f 37346 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37348 (eval $ac_try) 2>&5
37349 ac_status=$?
37350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37351 (exit $ac_status); }; } &&
37352 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37354 (eval $ac_try) 2>&5
37355 ac_status=$?
37356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37357 (exit $ac_status); }; }; then
37358 eval "$as_ac_var=yes"
37359else
37360 echo "$as_me: failed program was:" >&5
37361sed 's/^/| /' conftest.$ac_ext >&5
37362
37363eval "$as_ac_var=no"
37364fi
ac1cb8d3
VS
37365rm -f conftest.err conftest.$ac_objext \
37366 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37367fi
37368echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37369echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37370if test `eval echo '${'$as_ac_var'}'` = yes; then
37371 cat >>confdefs.h <<_ACEOF
37372#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37373_ACEOF
37374 have_cos=1
37375fi
37376done
37377
37378
37379for ac_func in floor
37380do
37381as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37382echo "$as_me:$LINENO: checking for $ac_func" >&5
37383echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37384if eval "test \"\${$as_ac_var+set}\" = set"; then
37385 echo $ECHO_N "(cached) $ECHO_C" >&6
37386else
37387 cat >conftest.$ac_ext <<_ACEOF
37388/* confdefs.h. */
37389_ACEOF
37390cat confdefs.h >>conftest.$ac_ext
37391cat >>conftest.$ac_ext <<_ACEOF
37392/* end confdefs.h. */
ac1cb8d3
VS
37393/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37394 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37395#define $ac_func innocuous_$ac_func
37396
a848cd7e
SC
37397/* System header to define __stub macros and hopefully few prototypes,
37398 which can conflict with char $ac_func (); below.
37399 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37400 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 37401
a848cd7e
SC
37402#ifdef __STDC__
37403# include <limits.h>
37404#else
37405# include <assert.h>
37406#endif
ac1cb8d3
VS
37407
37408#undef $ac_func
37409
a848cd7e
SC
37410/* Override any gcc2 internal prototype to avoid an error. */
37411#ifdef __cplusplus
37412extern "C"
37413{
37414#endif
37415/* We use char because int might match the return type of a gcc2
37416 builtin and then its argument prototype would still apply. */
37417char $ac_func ();
37418/* The GNU C library defines this for functions which it implements
37419 to always fail with ENOSYS. Some functions are actually named
37420 something starting with __ and the normal name is an alias. */
37421#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37422choke me
37423#else
37424char (*f) () = $ac_func;
37425#endif
37426#ifdef __cplusplus
37427}
37428#endif
37429
37430int
37431main ()
37432{
37433return f != $ac_func;
37434 ;
37435 return 0;
37436}
37437_ACEOF
37438rm -f conftest.$ac_objext conftest$ac_exeext
37439if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37440 (eval $ac_link) 2>conftest.er1
a848cd7e 37441 ac_status=$?
ac1cb8d3
VS
37442 grep -v '^ *+' conftest.er1 >conftest.err
37443 rm -f conftest.er1
37444 cat conftest.err >&5
a848cd7e
SC
37445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37446 (exit $ac_status); } &&
ffa0583f 37447 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37449 (eval $ac_try) 2>&5
37450 ac_status=$?
37451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37452 (exit $ac_status); }; } &&
37453 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37455 (eval $ac_try) 2>&5
37456 ac_status=$?
37457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37458 (exit $ac_status); }; }; then
37459 eval "$as_ac_var=yes"
37460else
37461 echo "$as_me: failed program was:" >&5
37462sed 's/^/| /' conftest.$ac_ext >&5
37463
37464eval "$as_ac_var=no"
37465fi
ac1cb8d3
VS
37466rm -f conftest.err conftest.$ac_objext \
37467 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37468fi
37469echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37470echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37471if test `eval echo '${'$as_ac_var'}'` = yes; then
37472 cat >>confdefs.h <<_ACEOF
37473#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37474_ACEOF
37475 have_floor=1
37476fi
37477done
37478
37479echo "$as_me:$LINENO: checking if floating point functions link without -lm" >&5
37480echo $ECHO_N "checking if floating point functions link without -lm... $ECHO_C" >&6
37481if test "$have_cos" = 1 -a "$have_floor" = 1; then
37482 echo "$as_me:$LINENO: result: yes" >&5
37483echo "${ECHO_T}yes" >&6
37484else
37485 echo "$as_me:$LINENO: result: no" >&5
37486echo "${ECHO_T}no" >&6
37487 LIBS="$LIBS -lm"
37488 # use different functions to avoid configure caching
37489 have_sin=0
37490 have_ceil=0
37491
37492for ac_func in sin
37493do
37494as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37495echo "$as_me:$LINENO: checking for $ac_func" >&5
37496echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37497if eval "test \"\${$as_ac_var+set}\" = set"; then
37498 echo $ECHO_N "(cached) $ECHO_C" >&6
37499else
37500 cat >conftest.$ac_ext <<_ACEOF
37501/* confdefs.h. */
37502_ACEOF
37503cat confdefs.h >>conftest.$ac_ext
37504cat >>conftest.$ac_ext <<_ACEOF
37505/* end confdefs.h. */
ac1cb8d3
VS
37506/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37507 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37508#define $ac_func innocuous_$ac_func
37509
a848cd7e
SC
37510/* System header to define __stub macros and hopefully few prototypes,
37511 which can conflict with char $ac_func (); below.
37512 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37513 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 37514
a848cd7e
SC
37515#ifdef __STDC__
37516# include <limits.h>
37517#else
37518# include <assert.h>
37519#endif
ac1cb8d3
VS
37520
37521#undef $ac_func
37522
a848cd7e
SC
37523/* Override any gcc2 internal prototype to avoid an error. */
37524#ifdef __cplusplus
37525extern "C"
37526{
37527#endif
37528/* We use char because int might match the return type of a gcc2
37529 builtin and then its argument prototype would still apply. */
37530char $ac_func ();
37531/* The GNU C library defines this for functions which it implements
37532 to always fail with ENOSYS. Some functions are actually named
37533 something starting with __ and the normal name is an alias. */
37534#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37535choke me
37536#else
37537char (*f) () = $ac_func;
37538#endif
37539#ifdef __cplusplus
37540}
37541#endif
37542
37543int
37544main ()
37545{
37546return f != $ac_func;
37547 ;
37548 return 0;
37549}
37550_ACEOF
37551rm -f conftest.$ac_objext conftest$ac_exeext
37552if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37553 (eval $ac_link) 2>conftest.er1
a848cd7e 37554 ac_status=$?
ac1cb8d3
VS
37555 grep -v '^ *+' conftest.er1 >conftest.err
37556 rm -f conftest.er1
37557 cat conftest.err >&5
a848cd7e
SC
37558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37559 (exit $ac_status); } &&
ffa0583f 37560 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37562 (eval $ac_try) 2>&5
37563 ac_status=$?
37564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37565 (exit $ac_status); }; } &&
37566 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37568 (eval $ac_try) 2>&5
37569 ac_status=$?
37570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37571 (exit $ac_status); }; }; then
37572 eval "$as_ac_var=yes"
37573else
37574 echo "$as_me: failed program was:" >&5
37575sed 's/^/| /' conftest.$ac_ext >&5
37576
37577eval "$as_ac_var=no"
37578fi
ac1cb8d3
VS
37579rm -f conftest.err conftest.$ac_objext \
37580 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37581fi
37582echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37583echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37584if test `eval echo '${'$as_ac_var'}'` = yes; then
37585 cat >>confdefs.h <<_ACEOF
37586#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37587_ACEOF
37588 have_sin=1
37589fi
37590done
37591
37592
37593for ac_func in ceil
37594do
37595as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37596echo "$as_me:$LINENO: checking for $ac_func" >&5
37597echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37598if eval "test \"\${$as_ac_var+set}\" = set"; then
37599 echo $ECHO_N "(cached) $ECHO_C" >&6
37600else
37601 cat >conftest.$ac_ext <<_ACEOF
37602/* confdefs.h. */
37603_ACEOF
37604cat confdefs.h >>conftest.$ac_ext
37605cat >>conftest.$ac_ext <<_ACEOF
37606/* end confdefs.h. */
ac1cb8d3
VS
37607/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37608 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37609#define $ac_func innocuous_$ac_func
37610
a848cd7e
SC
37611/* System header to define __stub macros and hopefully few prototypes,
37612 which can conflict with char $ac_func (); below.
37613 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37614 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 37615
a848cd7e
SC
37616#ifdef __STDC__
37617# include <limits.h>
37618#else
37619# include <assert.h>
37620#endif
ac1cb8d3
VS
37621
37622#undef $ac_func
37623
a848cd7e
SC
37624/* Override any gcc2 internal prototype to avoid an error. */
37625#ifdef __cplusplus
37626extern "C"
37627{
37628#endif
37629/* We use char because int might match the return type of a gcc2
37630 builtin and then its argument prototype would still apply. */
37631char $ac_func ();
37632/* The GNU C library defines this for functions which it implements
37633 to always fail with ENOSYS. Some functions are actually named
37634 something starting with __ and the normal name is an alias. */
37635#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37636choke me
37637#else
37638char (*f) () = $ac_func;
37639#endif
37640#ifdef __cplusplus
37641}
37642#endif
37643
37644int
37645main ()
37646{
37647return f != $ac_func;
37648 ;
37649 return 0;
37650}
37651_ACEOF
37652rm -f conftest.$ac_objext conftest$ac_exeext
37653if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37654 (eval $ac_link) 2>conftest.er1
a848cd7e 37655 ac_status=$?
ac1cb8d3
VS
37656 grep -v '^ *+' conftest.er1 >conftest.err
37657 rm -f conftest.er1
37658 cat conftest.err >&5
a848cd7e
SC
37659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37660 (exit $ac_status); } &&
ffa0583f 37661 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37663 (eval $ac_try) 2>&5
37664 ac_status=$?
37665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37666 (exit $ac_status); }; } &&
37667 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37669 (eval $ac_try) 2>&5
37670 ac_status=$?
37671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37672 (exit $ac_status); }; }; then
37673 eval "$as_ac_var=yes"
37674else
37675 echo "$as_me: failed program was:" >&5
37676sed 's/^/| /' conftest.$ac_ext >&5
37677
37678eval "$as_ac_var=no"
37679fi
ac1cb8d3
VS
37680rm -f conftest.err conftest.$ac_objext \
37681 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37682fi
37683echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37684echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37685if test `eval echo '${'$as_ac_var'}'` = yes; then
37686 cat >>confdefs.h <<_ACEOF
37687#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37688_ACEOF
37689 have_ceil=1
37690fi
37691done
37692
37693 echo "$as_me:$LINENO: checking if floating point functions link with -lm" >&5
37694echo $ECHO_N "checking if floating point functions link with -lm... $ECHO_C" >&6
37695 if test "$have_sin" = 1 -a "$have_ceil" = 1; then
37696 echo "$as_me:$LINENO: result: yes" >&5
37697echo "${ECHO_T}yes" >&6
37698 else
37699 echo "$as_me:$LINENO: result: no" >&5
37700echo "${ECHO_T}no" >&6
37701 # not sure we should warn the user, crash, etc.
37702 fi
37703fi
37704
37705if test "$wxUSE_GUI" = "yes"; then
37706
37707
37708 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS artprov controls dialogs \
37709 drawing dynamic erase event exec font image \
37710 minimal propsize rotate shaped widgets render"
37711
37712 if test "$wxUSE_MONOLITHIC" != "yes"; then
37713 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS console"
37714 fi
37715else
37716 SAMPLES_SUBDIRS="console"
37717fi
37718
37719
ceec2216 37720INCLUDES="-I\${top_builddir}lib/wx/include/${TOOLCHAIN_FULLNAME} \
a848cd7e
SC
37721-I\${top_srcdir}/include $TOOLKIT_INCLUDE"
37722
37723if test "$GXX" = yes ; then
37724 CXXWARNINGS="-Wall"
37725 fi
37726
37727EXTRA_CFLAGS="$WXDEBUG $WXODBCFLAG $PROFILE $OPTIMISE"
37728
0c3c69fc
VS
37729CPPFLAGS=`echo $WXDEBUG_DEFINE $INCLUDES $CPPFLAGS`
37730CFLAGS=`echo $CODE_GEN_FLAGS $EXTRA_CFLAGS $CFLAGS $CXXWARNINGS`
37731CXXFLAGS=`echo $CODE_GEN_FLAGS $CODE_GEN_FLAGS_CXX $EXTRA_CFLAGS $CXXFLAGS $CXXWARNINGS`
a848cd7e
SC
37732
37733
0c3c69fc 37734LIBS=`echo $LIBS`
a848cd7e
SC
37735EXTRALIBS="$LDFLAGS $LDFLAGS_VERSIONING $LIBS $DMALLOC_LIBS"
37736EXTRALIBS_XML="$EXPAT_LINK"
37737EXTRALIBS_HTML="$MSPACK_LINK"
37738EXTRALIBS_ODBC="$ODBC_LINK"
37739if test "$wxUSE_GUI" = "yes"; then
0c3c69fc 37740 EXTRALIBS_GUI=`echo $GUI_TK_LIBRARY $PNG_LINK $JPEG_LINK $TIFF_LINK $WEBKIT_LINK`
a848cd7e
SC
37741fi
37742if test "$wxUSE_OPENGL" = "yes"; then
37743 EXTRALIBS_OPENGL="$LDFLAGS_GL $OPENGL_LIBS"
37744fi
37745
37746LDFLAGS="$LDFLAGS $PROFILE"
37747
37748if test "$wxUSE_GTK" = 1; then
37749 WXCONFIG_INCLUDE=
37750else
37751 WXCONFIG_INCLUDE="$TOOLKIT_INCLUDE"
37752fi
37753
37754WXCONFIG_EXTRALIBS="$LIBS"
37755
37756if test "$wxUSE_REGEX" = "builtin" ; then
37757 wxconfig_3rdparty="$wxconfig_3rdparty regex${lib_unicode_suffix}"
37758fi
37759if test "$wxUSE_EXPAT" = "builtin" ; then
37760 wxconfig_3rdparty="$wxconfig_3rdparty expat"
37761fi
37762if test "$wxUSE_ODBC" = "builtin" ; then
37763 wxconfig_3rdparty="$wxconfig_3rdparty odbc"
37764fi
37765if test "$wxUSE_LIBTIFF" = "builtin" ; then
37766 wxconfig_3rdparty="$wxconfig_3rdparty tiff"
37767fi
37768if test "$wxUSE_LIBJPEG" = "builtin" ; then
37769 wxconfig_3rdparty="$wxconfig_3rdparty jpeg"
37770fi
37771if test "$wxUSE_LIBPNG" = "builtin" ; then
37772 wxconfig_3rdparty="$wxconfig_3rdparty png"
37773fi
37774if test "$wxUSE_ZLIB" = "builtin" ; then
37775 wxconfig_3rdparty="$wxconfig_3rdparty zlib"
37776fi
37777if test "$wxUSE_ODBC" = "builtin" ; then
37778 wxconfig_3rdparty="$wxconfig_3rdparty odbc"
37779fi
37780
37781for i in $wxconfig_3rdparty ; do
ceec2216 37782 WXCONFIG_EXTRALIBS="$WXCONFIG_EXTRALIBS -lwx${i}${lib_debug_suffix}${WX_LIB_FLAVOUR}-${WX_RELEASE}${HOST_SUFFIX}"
a848cd7e
SC
37783done
37784
37785
37786if test "x$wxUSE_UNIVERSAL" = "xyes" ; then
37787 WXUNIV=1
37788else
37789 WXUNIV=0
37790fi
37791
37792
37793
37794
37795
37796
37797
37798
37799
37800if test $wxUSE_MONOLITHIC = "yes" ; then
37801 MONOLITHIC=1
37802else
37803 MONOLITHIC=0
37804fi
37805
37806if test $wxUSE_PLUGINS = "yes" ; then
37807 USE_PLUGINS=1
37808else
37809 USE_PLUGINS=0
37810fi
37811
37812if test $wxUSE_ODBC != "no" ; then
37813 USE_ODBC=1
37814else
37815 USE_ODBC=0
37816fi
37817
37818if test $wxUSE_OFFICIAL_BUILD = "yes" ; then
37819 OFFICIAL_BUILD=1
37820else
37821 OFFICIAL_BUILD=0
37822fi
37823
37824
37825
37826
37827
37828
37829
37830
37831
37832
37833
37834
37835
37836
37837
37838
37839
37840
37841
ceec2216 37842
a848cd7e
SC
37843
37844
37845TOOLKIT_LOWERCASE=`echo $TOOLKIT | tr "[A-Z]" "[a-z]"`
37846
37847
37848
37849
37850
37851
37852
37853
4d4ff94c
VZ
37854case "$TOOLKIT" in
37855 GTK)
37856 TOOLKIT_USER="GTK+"
37857 if test "$WXGTK20" = 1; then
37858 TOOLKIT_USER="$TOOLKIT_USER 2"
37859 fi
9a8f0513 37860 ;;
4d4ff94c
VZ
37861
37862 *)
37863 TOOLKIT_USER=$TOOLKIT_LOWERCASE
9a8f0513 37864 ;;
4d4ff94c 37865esac
a848cd7e 37866
9a8f0513 37867
a848cd7e
SC
37868 if test "x$BAKEFILE_HOST" = "x"; then
37869 BAKEFILE_HOST="${host}"
37870 fi
37871
37872 if test "x$BAKEFILE_CHECK_BASICS" != "xno"; then
37873
37874 if test -n "$ac_tool_prefix"; then
37875 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
37876set dummy ${ac_tool_prefix}ranlib; ac_word=$2
37877echo "$as_me:$LINENO: checking for $ac_word" >&5
37878echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
37879if test "${ac_cv_prog_RANLIB+set}" = set; then
37880 echo $ECHO_N "(cached) $ECHO_C" >&6
37881else
37882 if test -n "$RANLIB"; then
37883 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
37884else
37885as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
37886for as_dir in $PATH
37887do
37888 IFS=$as_save_IFS
37889 test -z "$as_dir" && as_dir=.
37890 for ac_exec_ext in '' $ac_executable_extensions; do
37891 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
37892 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
37893 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
37894 break 2
37895 fi
37896done
37897done
37898
37899fi
37900fi
37901RANLIB=$ac_cv_prog_RANLIB
37902if test -n "$RANLIB"; then
37903 echo "$as_me:$LINENO: result: $RANLIB" >&5
37904echo "${ECHO_T}$RANLIB" >&6
37905else
37906 echo "$as_me:$LINENO: result: no" >&5
37907echo "${ECHO_T}no" >&6
37908fi
37909
37910fi
37911if test -z "$ac_cv_prog_RANLIB"; then
37912 ac_ct_RANLIB=$RANLIB
37913 # Extract the first word of "ranlib", so it can be a program name with args.
37914set dummy ranlib; ac_word=$2
37915echo "$as_me:$LINENO: checking for $ac_word" >&5
37916echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
37917if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
37918 echo $ECHO_N "(cached) $ECHO_C" >&6
37919else
37920 if test -n "$ac_ct_RANLIB"; then
37921 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
37922else
37923as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
37924for as_dir in $PATH
37925do
37926 IFS=$as_save_IFS
37927 test -z "$as_dir" && as_dir=.
37928 for ac_exec_ext in '' $ac_executable_extensions; do
37929 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
37930 ac_cv_prog_ac_ct_RANLIB="ranlib"
37931 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
37932 break 2
37933 fi
37934done
37935done
37936
37937 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
37938fi
37939fi
37940ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
37941if test -n "$ac_ct_RANLIB"; then
37942 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
37943echo "${ECHO_T}$ac_ct_RANLIB" >&6
37944else
37945 echo "$as_me:$LINENO: result: no" >&5
37946echo "${ECHO_T}no" >&6
37947fi
37948
37949 RANLIB=$ac_ct_RANLIB
37950else
37951 RANLIB="$ac_cv_prog_RANLIB"
37952fi
37953
37954 # Find a good install program. We prefer a C program (faster),
37955# so one script is as good as another. But avoid the broken or
37956# incompatible versions:
37957# SysV /etc/install, /usr/sbin/install
37958# SunOS /usr/etc/install
37959# IRIX /sbin/install
37960# AIX /bin/install
37961# AmigaOS /C/install, which installs bootblocks on floppy discs
37962# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
37963# AFS /usr/afsws/bin/install, which mishandles nonexistent args
37964# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
ac1cb8d3 37965# OS/2's system install, which has a completely different semantic
a848cd7e
SC
37966# ./install, which can be erroneously created by make from ./install.sh.
37967echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
37968echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
37969if test -z "$INSTALL"; then
37970if test "${ac_cv_path_install+set}" = set; then
37971 echo $ECHO_N "(cached) $ECHO_C" >&6
37972else
37973 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
37974for as_dir in $PATH
37975do
37976 IFS=$as_save_IFS
37977 test -z "$as_dir" && as_dir=.
37978 # Account for people who put trailing slashes in PATH elements.
37979case $as_dir/ in
37980 ./ | .// | /cC/* | \
37981 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
ac1cb8d3 37982 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
a848cd7e
SC
37983 /usr/ucb/* ) ;;
37984 *)
37985 # OSF1 and SCO ODT 3.0 have their own names for install.
37986 # Don't use installbsd from OSF since it installs stuff as root
37987 # by default.
37988 for ac_prog in ginstall scoinst install; do
37989 for ac_exec_ext in '' $ac_executable_extensions; do
ac1cb8d3
VS
37990 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
37991 if test $ac_prog = install &&
37992 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
37993 # AIX install. It has an incompatible calling convention.
37994 :
37995 elif test $ac_prog = install &&
37996 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
37997 # program-specific install script used by HP pwplus--don't use.
37998 :
37999 else
38000 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
38001 break 3
38002 fi
38003 fi
a848cd7e
SC
38004 done
38005 done
38006 ;;
38007esac
38008done
38009
38010
38011fi
38012 if test "${ac_cv_path_install+set}" = set; then
38013 INSTALL=$ac_cv_path_install
38014 else
38015 # As a last resort, use the slow shell script. We don't cache a
38016 # path for INSTALL within a source directory, because that will
38017 # break other packages using the cache if that directory is
38018 # removed, or if the path is relative.
38019 INSTALL=$ac_install_sh
38020 fi
38021fi
38022echo "$as_me:$LINENO: result: $INSTALL" >&5
38023echo "${ECHO_T}$INSTALL" >&6
38024
38025# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
38026# It thinks the first close brace ends the variable substitution.
38027test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
38028
38029test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
38030
38031test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
38032
38033 echo "$as_me:$LINENO: checking whether ln -s works" >&5
38034echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
38035LN_S=$as_ln_s
38036if test "$LN_S" = "ln -s"; then
38037 echo "$as_me:$LINENO: result: yes" >&5
38038echo "${ECHO_T}yes" >&6
38039else
38040 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
38041echo "${ECHO_T}no, using $LN_S" >&6
38042fi
38043
38044
38045 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
38046echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
ac1cb8d3 38047set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
a848cd7e
SC
38048if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
38049 echo $ECHO_N "(cached) $ECHO_C" >&6
38050else
38051 cat >conftest.make <<\_ACEOF
38052all:
38053 @echo 'ac_maketemp="$(MAKE)"'
38054_ACEOF
38055# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
38056eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
38057if test -n "$ac_maketemp"; then
38058 eval ac_cv_prog_make_${ac_make}_set=yes
38059else
38060 eval ac_cv_prog_make_${ac_make}_set=no
38061fi
38062rm -f conftest.make
38063fi
38064if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
38065 echo "$as_me:$LINENO: result: yes" >&5
38066echo "${ECHO_T}yes" >&6
38067 SET_MAKE=
38068else
38069 echo "$as_me:$LINENO: result: no" >&5
38070echo "${ECHO_T}no" >&6
38071 SET_MAKE="MAKE=${MAKE-make}"
38072fi
38073
38074
38075
38076 if test -n "$ac_tool_prefix"; then
38077 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
38078set dummy ${ac_tool_prefix}ar; ac_word=$2
38079echo "$as_me:$LINENO: checking for $ac_word" >&5
38080echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
38081if test "${ac_cv_prog_AR+set}" = set; then
38082 echo $ECHO_N "(cached) $ECHO_C" >&6
38083else
38084 if test -n "$AR"; then
38085 ac_cv_prog_AR="$AR" # Let the user override the test.
38086else
38087as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38088for as_dir in $PATH
38089do
38090 IFS=$as_save_IFS
38091 test -z "$as_dir" && as_dir=.
38092 for ac_exec_ext in '' $ac_executable_extensions; do
38093 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
38094 ac_cv_prog_AR="${ac_tool_prefix}ar"
38095 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
38096 break 2
38097 fi
38098done
38099done
38100
38101fi
38102fi
38103AR=$ac_cv_prog_AR
38104if test -n "$AR"; then
38105 echo "$as_me:$LINENO: result: $AR" >&5
38106echo "${ECHO_T}$AR" >&6
38107else
38108 echo "$as_me:$LINENO: result: no" >&5
38109echo "${ECHO_T}no" >&6
38110fi
38111
38112fi
38113if test -z "$ac_cv_prog_AR"; then
38114 ac_ct_AR=$AR
38115 # Extract the first word of "ar", so it can be a program name with args.
38116set dummy ar; ac_word=$2
38117echo "$as_me:$LINENO: checking for $ac_word" >&5
38118echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
38119if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
38120 echo $ECHO_N "(cached) $ECHO_C" >&6
38121else
38122 if test -n "$ac_ct_AR"; then
38123 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
38124else
38125as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38126for as_dir in $PATH
38127do
38128 IFS=$as_save_IFS
38129 test -z "$as_dir" && as_dir=.
38130 for ac_exec_ext in '' $ac_executable_extensions; do
38131 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
38132 ac_cv_prog_ac_ct_AR="ar"
38133 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
38134 break 2
38135 fi
38136done
38137done
38138
38139 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
38140fi
38141fi
38142ac_ct_AR=$ac_cv_prog_ac_ct_AR
38143if test -n "$ac_ct_AR"; then
38144 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
38145echo "${ECHO_T}$ac_ct_AR" >&6
38146else
38147 echo "$as_me:$LINENO: result: no" >&5
38148echo "${ECHO_T}no" >&6
38149fi
38150
38151 AR=$ac_ct_AR
38152else
38153 AR="$ac_cv_prog_AR"
38154fi
38155
38156 if test -n "$ac_tool_prefix"; then
38157 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
38158set dummy ${ac_tool_prefix}strip; ac_word=$2
38159echo "$as_me:$LINENO: checking for $ac_word" >&5
38160echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
38161if test "${ac_cv_prog_STRIP+set}" = set; then
38162 echo $ECHO_N "(cached) $ECHO_C" >&6
38163else
38164 if test -n "$STRIP"; then
38165 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
38166else
38167as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38168for as_dir in $PATH
38169do
38170 IFS=$as_save_IFS
38171 test -z "$as_dir" && as_dir=.
38172 for ac_exec_ext in '' $ac_executable_extensions; do
38173 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
38174 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
38175 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
38176 break 2
38177 fi
38178done
38179done
38180
38181fi
38182fi
38183STRIP=$ac_cv_prog_STRIP
38184if test -n "$STRIP"; then
38185 echo "$as_me:$LINENO: result: $STRIP" >&5
38186echo "${ECHO_T}$STRIP" >&6
38187else
38188 echo "$as_me:$LINENO: result: no" >&5
38189echo "${ECHO_T}no" >&6
38190fi
38191
38192fi
38193if test -z "$ac_cv_prog_STRIP"; then
38194 ac_ct_STRIP=$STRIP
38195 # Extract the first word of "strip", so it can be a program name with args.
38196set dummy strip; ac_word=$2
38197echo "$as_me:$LINENO: checking for $ac_word" >&5
38198echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
38199if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
38200 echo $ECHO_N "(cached) $ECHO_C" >&6
38201else
38202 if test -n "$ac_ct_STRIP"; then
38203 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
38204else
38205as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38206for as_dir in $PATH
38207do
38208 IFS=$as_save_IFS
38209 test -z "$as_dir" && as_dir=.
38210 for ac_exec_ext in '' $ac_executable_extensions; do
38211 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
38212 ac_cv_prog_ac_ct_STRIP="strip"
38213 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
38214 break 2
38215 fi
38216done
38217done
38218
38219 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
38220fi
38221fi
38222ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
38223if test -n "$ac_ct_STRIP"; then
38224 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
38225echo "${ECHO_T}$ac_ct_STRIP" >&6
38226else
38227 echo "$as_me:$LINENO: result: no" >&5
38228echo "${ECHO_T}no" >&6
38229fi
38230
38231 STRIP=$ac_ct_STRIP
38232else
38233 STRIP="$ac_cv_prog_STRIP"
38234fi
38235
38236 if test -n "$ac_tool_prefix"; then
38237 # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
38238set dummy ${ac_tool_prefix}nm; ac_word=$2
38239echo "$as_me:$LINENO: checking for $ac_word" >&5
38240echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
38241if test "${ac_cv_prog_NM+set}" = set; then
38242 echo $ECHO_N "(cached) $ECHO_C" >&6
38243else
38244 if test -n "$NM"; then
38245 ac_cv_prog_NM="$NM" # Let the user override the test.
38246else
38247as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38248for as_dir in $PATH
38249do
38250 IFS=$as_save_IFS
38251 test -z "$as_dir" && as_dir=.
38252 for ac_exec_ext in '' $ac_executable_extensions; do
38253 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
38254 ac_cv_prog_NM="${ac_tool_prefix}nm"
38255 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
38256 break 2
38257 fi
38258done
38259done
38260
38261fi
38262fi
38263NM=$ac_cv_prog_NM
38264if test -n "$NM"; then
38265 echo "$as_me:$LINENO: result: $NM" >&5
38266echo "${ECHO_T}$NM" >&6
38267else
38268 echo "$as_me:$LINENO: result: no" >&5
38269echo "${ECHO_T}no" >&6
38270fi
38271
38272fi
38273if test -z "$ac_cv_prog_NM"; then
38274 ac_ct_NM=$NM
38275 # Extract the first word of "nm", so it can be a program name with args.
38276set dummy nm; ac_word=$2
38277echo "$as_me:$LINENO: checking for $ac_word" >&5
38278echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
38279if test "${ac_cv_prog_ac_ct_NM+set}" = set; then
38280 echo $ECHO_N "(cached) $ECHO_C" >&6
38281else
38282 if test -n "$ac_ct_NM"; then
38283 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
38284else
38285as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38286for as_dir in $PATH
38287do
38288 IFS=$as_save_IFS
38289 test -z "$as_dir" && as_dir=.
38290 for ac_exec_ext in '' $ac_executable_extensions; do
38291 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
38292 ac_cv_prog_ac_ct_NM="nm"
38293 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
38294 break 2
38295 fi
38296done
38297done
38298
38299 test -z "$ac_cv_prog_ac_ct_NM" && ac_cv_prog_ac_ct_NM=":"
38300fi
38301fi
38302ac_ct_NM=$ac_cv_prog_ac_ct_NM
38303if test -n "$ac_ct_NM"; then
38304 echo "$as_me:$LINENO: result: $ac_ct_NM" >&5
38305echo "${ECHO_T}$ac_ct_NM" >&6
38306else
38307 echo "$as_me:$LINENO: result: no" >&5
38308echo "${ECHO_T}no" >&6
38309fi
38310
38311 NM=$ac_ct_NM
38312else
38313 NM="$ac_cv_prog_NM"
38314fi
38315
38316
38317 case ${BAKEFILE_HOST} in
38318 *-hp-hpux* )
a49baeab 38319 INSTALL_DIR="mkdir -p"
a848cd7e
SC
38320 ;;
38321 *) INSTALL_DIR="$INSTALL -d"
38322 ;;
38323 esac
38324
38325
38326 LDFLAGS_GUI=
38327 case ${BAKEFILE_HOST} in
38328 *-*-cygwin* | *-*-mingw32* )
38329 LDFLAGS_GUI="-mwindows"
38330 esac
38331
38332
38333 fi
38334
38335 echo "$as_me:$LINENO: checking if make is GNU make" >&5
38336echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6
38337if test "${bakefile_cv_prog_makeisgnu+set}" = set; then
38338 echo $ECHO_N "(cached) $ECHO_C" >&6
38339else
38340
38341 if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
38342 egrep -s GNU > /dev/null); then
38343 bakefile_cv_prog_makeisgnu="yes"
38344 else
38345 bakefile_cv_prog_makeisgnu="no"
38346 fi
38347
38348fi
38349echo "$as_me:$LINENO: result: $bakefile_cv_prog_makeisgnu" >&5
38350echo "${ECHO_T}$bakefile_cv_prog_makeisgnu" >&6
38351
38352 if test "x$bakefile_cv_prog_makeisgnu" = "xyes"; then
38353 IF_GNU_MAKE=""
38354 else
38355 IF_GNU_MAKE="#"
38356 fi
38357
38358
38359
38360 PLATFORM_UNIX=0
38361 PLATFORM_WIN32=0
38362 PLATFORM_MSDOS=0
38363 PLATFORM_MAC=0
38364 PLATFORM_MACOSX=0
38365 PLATFORM_OS2=0
38366
38367 if test "x$BAKEFILE_FORCE_PLATFORM" = "x"; then
38368 case "${BAKEFILE_HOST}" in
38369 *-*-cygwin* | *-*-mingw32* )
38370 PLATFORM_WIN32=1
38371 ;;
38372 *-pc-msdosdjgpp )
38373 PLATFORM_MSDOS=1
38374 ;;
38375 *-pc-os2_emx | *-pc-os2-emx )
38376 PLATFORM_OS2=1
38377 ;;
38378 powerpc-*-darwin* )
38379 PLATFORM_MAC=1
38380 PLATFORM_MACOSX=1
38381 ;;
38382 * )
38383 PLATFORM_UNIX=1
38384 ;;
38385 esac
38386 else
38387 case "$BAKEFILE_FORCE_PLATFORM" in
38388 win32 )
38389 PLATFORM_WIN32=1
38390 ;;
38391 msdos )
38392 PLATFORM_MSDOS=1
38393 ;;
38394 os2 )
38395 PLATFORM_OS2=1
38396 ;;
38397 darwin )
38398 PLATFORM_MAC=1
38399 PLATFORM_MACOSX=1
38400 ;;
38401 unix )
38402 PLATFORM_UNIX=1
38403 ;;
38404 * )
38405 { { echo "$as_me:$LINENO: error: Unknown platform: $BAKEFILE_FORCE_PLATFORM" >&5
38406echo "$as_me: error: Unknown platform: $BAKEFILE_FORCE_PLATFORM" >&2;}
38407 { (exit 1); exit 1; }; }
38408 ;;
38409 esac
38410 fi
38411
38412
38413
38414
38415
38416
38417
38418
38419
38420 # Check whether --enable-omf or --disable-omf was given.
38421if test "${enable_omf+set}" = set; then
38422 enableval="$enable_omf"
38423 bk_os2_use_omf="$enableval"
38424fi;
38425
38426 case "${BAKEFILE_HOST}" in
38427 *-*-darwin* )
38428 CFLAGS="$CFLAGS -fno-common"
38429 CXXFLAGS="$CXXFLAGS -fno-common"
38430 ;;
38431
38432 *-pc-os2_emx | *-pc-os2-emx )
38433 if test "x$bk_os2_use_omf" = "xyes" ; then
38434 AR=emxomfar
38435 RANLIB=:
38436 LDFLAGS="-Zomf $LDFLAGS"
38437 CFLAGS="-Zomf $CFLAGS"
38438 CXXFLAGS="-Zomf $CXXFLAGS"
38439 OS2_LIBEXT="lib"
38440 else
38441 OS2_LIBEXT="a"
38442 fi
38443 ;;
38444 esac
38445
38446
38447 SO_SUFFIX="so"
38448 SO_SUFFIX_MODULE="so"
38449 EXEEXT=""
38450 LIBPREFIX="lib"
38451 LIBEXT=".a"
38452 DLLPREFIX="lib"
38453 DLLPREFIX_MODULE=""
38454 DLLIMP_SUFFIX=""
38455
38456 case "${BAKEFILE_HOST}" in
38457 *-hp-hpux* )
38458 SO_SUFFIX="sl"
38459 SO_SUFFIX_MODULE="sl"
38460 ;;
38461 *-*-aix* )
38462 SO_SUFFIX="a"
38463 SO_SUFFIX_MODULE="a"
38464 ;;
38465 *-*-cygwin* | *-*-mingw32* )
38466 SO_SUFFIX="dll"
38467 SO_SUFFIX_MODULE="dll"
38468 DLLIMP_SUFFIX="dll.a"
38469 EXEEXT=".exe"
38470 DLLPREFIX=""
38471 ;;
38472 *-pc-msdosdjgpp )
38473 EXEEXT=".exe"
38474 DLLPREFIX=""
38475 ;;
38476 *-pc-os2_emx | *-pc-os2-emx )
38477 SO_SUFFIX="dll"
38478 SO_SUFFIX_MODULE="dll"
38479 DLLIMP_SUFFIX=$OS2_LIBEXT
38480 EXEEXT=".exe"
38481 DLLPREFIX=""
38482 LIBPREFIX=""
38483 LIBEXT=".$OS2_LIBEXT"
38484 ;;
38485 powerpc-*-darwin* )
38486 SO_SUFFIX="dylib"
38487 SO_SUFFIX_MODULE="bundle"
38488 ;;
38489 esac
38490
38491 if test "x$DLLIMP_SUFFIX" = "x" ; then
38492 DLLIMP_SUFFIX="$SO_SUFFIX"
38493 fi
38494
38495
38496
38497
38498
38499
38500
38501
38502
38503
38504
38505 SHARED_LD_CC="\$(CC) -shared -o"
38506 SHARED_LD_CXX="\$(CXX) -shared -o"
38507
38508 if test "x$GCC" = "xyes"; then
38509 PIC_FLAG="-fPIC"
38510 fi
38511
38512 case "${BAKEFILE_HOST}" in
38513 *-hp-hpux* )
38514 if test "x$GCC" = "xyes"; then
38515 SHARED_LD_CC="${CC} -shared ${PIC_FLAG} -o"
38516 SHARED_LD_CXX="${CXX} -shared ${PIC_FLAG} -o"
38517 else
38518 LDFLAGS="$LDFLAGS -L/usr/lib"
38519
38520 SHARED_LD_CC="${CC} -b -o"
38521 SHARED_LD_CXX="${CXX} -b -o"
38522 PIC_FLAG="+Z"
38523 fi
38524 ;;
38525
38526 *-*-linux* )
38527 if test "x$GCC" != "xyes"; then
38528 echo "$as_me:$LINENO: checking for Intel compiler" >&5
38529echo $ECHO_N "checking for Intel compiler... $ECHO_C" >&6
38530if test "${bakefile_cv_prog_icc+set}" = set; then
38531 echo $ECHO_N "(cached) $ECHO_C" >&6
38532else
38533
38534 cat >conftest.$ac_ext <<_ACEOF
38535/* confdefs.h. */
38536_ACEOF
38537cat confdefs.h >>conftest.$ac_ext
38538cat >>conftest.$ac_ext <<_ACEOF
38539/* end confdefs.h. */
38540
38541int
38542main ()
38543{
38544
38545 #ifndef __INTEL_COMPILER
38546 #error Not icc
38547 #endif
38548
38549 ;
38550 return 0;
38551}
38552_ACEOF
38553rm -f conftest.$ac_objext
38554if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 38555 (eval $ac_compile) 2>conftest.er1
a848cd7e 38556 ac_status=$?
ac1cb8d3
VS
38557 grep -v '^ *+' conftest.er1 >conftest.err
38558 rm -f conftest.er1
38559 cat conftest.err >&5
a848cd7e
SC
38560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38561 (exit $ac_status); } &&
ffa0583f 38562 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
38563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38564 (eval $ac_try) 2>&5
38565 ac_status=$?
38566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38567 (exit $ac_status); }; } &&
38568 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
38569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38570 (eval $ac_try) 2>&5
38571 ac_status=$?
38572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38573 (exit $ac_status); }; }; then
38574 bakefile_cv_prog_icc=yes
38575else
38576 echo "$as_me: failed program was:" >&5
38577sed 's/^/| /' conftest.$ac_ext >&5
38578
38579bakefile_cv_prog_icc=no
38580
38581fi
ac1cb8d3 38582rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
38583
38584fi
38585echo "$as_me:$LINENO: result: $bakefile_cv_prog_icc" >&5
38586echo "${ECHO_T}$bakefile_cv_prog_icc" >&6
38587 if test "$bakefile_cv_prog_icc" = "yes"; then
38588 PIC_FLAG="-KPIC"
38589 fi
38590 fi
38591 ;;
38592
38593 *-*-solaris2* )
38594 if test "x$GCC" != xyes ; then
38595 SHARED_LD_CC="${CC} -G -o"
38596 SHARED_LD_CXX="${CXX} -G -o"
38597 PIC_FLAG="-KPIC"
38598 fi
38599 ;;
38600
38601 *-*-darwin* )
38602
38603 echo "$as_me:$LINENO: checking for gcc 3.1 or later" >&5
38604echo $ECHO_N "checking for gcc 3.1 or later... $ECHO_C" >&6
38605if test "${wx_cv_gcc31+set}" = set; then
38606 echo $ECHO_N "(cached) $ECHO_C" >&6
38607else
38608
38609 cat >conftest.$ac_ext <<_ACEOF
38610/* confdefs.h. */
38611_ACEOF
38612cat confdefs.h >>conftest.$ac_ext
38613cat >>conftest.$ac_ext <<_ACEOF
38614/* end confdefs.h. */
38615
38616int
38617main ()
38618{
38619
38620 #if (__GNUC__ < 3) || \
38621 ((__GNUC__ == 3) && (__GNUC_MINOR__ < 1))
38622 #error old gcc
38623 #endif
38624
38625 ;
38626 return 0;
38627}
38628_ACEOF
38629rm -f conftest.$ac_objext
38630if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 38631 (eval $ac_compile) 2>conftest.er1
a848cd7e 38632 ac_status=$?
ac1cb8d3
VS
38633 grep -v '^ *+' conftest.er1 >conftest.err
38634 rm -f conftest.er1
38635 cat conftest.err >&5
a848cd7e
SC
38636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38637 (exit $ac_status); } &&
ffa0583f 38638 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
38639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38640 (eval $ac_try) 2>&5
38641 ac_status=$?
38642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38643 (exit $ac_status); }; } &&
38644 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
38645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38646 (eval $ac_try) 2>&5
38647 ac_status=$?
38648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38649 (exit $ac_status); }; }; then
38650
38651 wx_cv_gcc31=yes
38652
38653else
38654 echo "$as_me: failed program was:" >&5
38655sed 's/^/| /' conftest.$ac_ext >&5
38656
38657
38658 wx_cv_gcc31=no
38659
38660
38661fi
ac1cb8d3 38662rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
38663
38664fi
38665echo "$as_me:$LINENO: result: $wx_cv_gcc31" >&5
38666echo "${ECHO_T}$wx_cv_gcc31" >&6
38667 if test "$wx_cv_gcc31" = "no"; then
473276a9
VS
38668
38669D='$'
38670cat <<EOF >shared-ld-sh
a848cd7e
SC
38671#!/bin/sh
38672#-----------------------------------------------------------------------------
38673#-- Name: distrib/mac/shared-ld-sh
38674#-- Purpose: Link a mach-o dynamic shared library for Darwin / Mac OS X
38675#-- Author: Gilles Depeyrot
38676#-- Copyright: (c) 2002 Gilles Depeyrot
38677#-- Licence: any use permitted
38678#-----------------------------------------------------------------------------
38679
38680verbose=0
38681args=""
38682objects=""
38683linking_flag="-dynamiclib"
38684
473276a9
VS
38685while test ${D}# -gt 0; do
38686 case ${D}1 in
a848cd7e
SC
38687
38688 -v)
38689 verbose=1
38690 ;;
38691
38692 -o|-compatibility_version|-current_version|-framework|-undefined|-install_name)
38693 # collect these options and values
473276a9 38694 args="${D}{args} ${D}1 ${D}2"
a848cd7e
SC
38695 shift
38696 ;;
38697
38698 -l*|-L*|-flat_namespace|-headerpad_max_install_names)
38699 # collect these options
473276a9 38700 args="${D}{args} ${D}1"
a848cd7e
SC
38701 ;;
38702
38703 -dynamiclib|-bundle)
473276a9 38704 linking_flag="${D}1"
a848cd7e
SC
38705 ;;
38706
38707 -*)
473276a9 38708 echo "shared-ld: unhandled option '${D}1'"
a848cd7e
SC
38709 exit 1
38710 ;;
38711
38712 *.o | *.a | *.dylib)
38713 # collect object files
473276a9 38714 objects="${D}{objects} ${D}1"
a848cd7e
SC
38715 ;;
38716
38717 *)
473276a9 38718 echo "shared-ld: unhandled argument '${D}1'"
a848cd7e
SC
38719 exit 1
38720 ;;
38721
38722 esac
38723 shift
38724done
38725
38726#
38727# Link one module containing all the others
38728#
473276a9
VS
38729if test ${D}{verbose} = 1; then
38730 echo "c++ -r -keep_private_externs -nostdlib ${D}{objects} -o master.${D}${D}.o"
a848cd7e 38731fi
473276a9
VS
38732c++ -r -keep_private_externs -nostdlib ${D}{objects} -o master.${D}${D}.o
38733status=${D}?
38734if test ${D}{status} != 0; then
38735 exit ${D}{status}
a848cd7e
SC
38736fi
38737
38738#
38739# Link the shared library from the single module created
38740#
473276a9
VS
38741if test ${D}{verbose} = 1; then
38742 echo "cc ${D}{linking_flag} master.${D}${D}.o ${D}{args}"
a848cd7e 38743fi
473276a9
VS
38744c++ ${D}{linking_flag} master.${D}${D}.o ${D}{args}
38745status=${D}?
38746if test ${D}{status} != 0; then
38747 exit ${D}{status}
a848cd7e
SC
38748fi
38749
38750#
38751# Remove intermediate module
38752#
473276a9 38753rm -f master.${D}${D}.o
a848cd7e
SC
38754
38755exit 0
38756EOF
473276a9 38757
a848cd7e
SC
38758 chmod +x shared-ld-sh
38759
38760 SHARED_LD_CC="`pwd`/shared-ld-sh -dynamiclib -headerpad_max_install_names -o"
38761 SHARED_LD_MODULE_CC="`pwd`/shared-ld-sh -bundle -headerpad_max_install_names -o"
38762 SHARED_LD_CXX="$SHARED_LD_CC"
38763 SHARED_LD_MODULE_CXX="$SHARED_LD_MODULE_CC"
38764 else
38765 SHARED_LD_CC="\${CC} -dynamiclib -single_module -headerpad_max_install_names -o"
38766 SHARED_LD_MODULE_CC="\${CC} -bundle -single_module -headerpad_max_install_names -o"
38767 SHARED_LD_CXX="\${CXX} -dynamiclib -single_module -headerpad_max_install_names -o"
38768 SHARED_LD_MODULE_CXX="\${CXX} -bundle -single_module -headerpad_max_install_names -o"
38769 fi
38770
38771 PIC_FLAG="-dynamic -fPIC"
38772 ;;
38773
38774 *-*-aix* )
38775 if test "x$GCC" != "xyes"; then
38776 # Extract the first word of "makeC++SharedLib", so it can be a program name with args.
38777set dummy makeC++SharedLib; ac_word=$2
38778echo "$as_me:$LINENO: checking for $ac_word" >&5
38779echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
38780if test "${ac_cv_prog_AIX_CXX_LD+set}" = set; then
38781 echo $ECHO_N "(cached) $ECHO_C" >&6
38782else
38783 if test -n "$AIX_CXX_LD"; then
38784 ac_cv_prog_AIX_CXX_LD="$AIX_CXX_LD" # Let the user override the test.
38785else
38786as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38787for as_dir in $PATH
38788do
38789 IFS=$as_save_IFS
38790 test -z "$as_dir" && as_dir=.
38791 for ac_exec_ext in '' $ac_executable_extensions; do
38792 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
38793 ac_cv_prog_AIX_CXX_LD="makeC++SharedLib"
38794 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
38795 break 2
38796 fi
38797done
38798done
38799
38800 test -z "$ac_cv_prog_AIX_CXX_LD" && ac_cv_prog_AIX_CXX_LD="/usr/lpp/xlC/bin/makeC++SharedLib"
38801fi
38802fi
38803AIX_CXX_LD=$ac_cv_prog_AIX_CXX_LD
38804if test -n "$AIX_CXX_LD"; then
38805 echo "$as_me:$LINENO: result: $AIX_CXX_LD" >&5
38806echo "${ECHO_T}$AIX_CXX_LD" >&6
38807else
38808 echo "$as_me:$LINENO: result: no" >&5
38809echo "${ECHO_T}no" >&6
38810fi
38811
38812 SHARED_LD_CC="$AIX_CC_LD -p 0 -o"
38813 SHARED_LD_CXX="$AIX_CXX_LD -p 0 -o"
38814 fi
38815 ;;
38816
38817 *-*-beos* )
38818 SHARED_LD_CC="${LD} -shared -o"
38819 SHARED_LD_CXX="${LD} -shared -o"
38820 ;;
38821
38822 *-*-irix* )
38823 if test "x$GCC" != "xyes"; then
38824 PIC_FLAG="-KPIC"
38825 fi
38826 ;;
38827
38828 *-*-cygwin* | *-*-mingw32* )
38829 PIC_FLAG=""
38830 ;;
38831
38832 *-pc-os2_emx | *-pc-os2-emx )
473276a9
VS
38833 SHARED_LD_CC="`pwd`/dllar.sh -o"
38834 SHARED_LD_CXX="`pwd`/dllar.sh -o"
a848cd7e 38835 PIC_FLAG=""
473276a9
VS
38836
38837D='$'
38838cat <<EOF >dllar.sh
38839#!/bin/sh
38840#
38841# dllar - a tool to build both a .dll and an .a file
38842# from a set of object (.o) files for EMX/OS2.
38843#
38844# Written by Andrew Zabolotny, bit@freya.etu.ru
38845# Ported to Unix like shell by Stefan Neis, Stefan.Neis@t-online.de
38846#
38847# This script will accept a set of files on the command line.
38848# All the public symbols from the .o files will be exported into
38849# a .DEF file, then linker will be run (through gcc) against them to
38850# build a shared library consisting of all given .o files. All libraries
38851# (.a) will be first decompressed into component .o files then act as
38852# described above. You can optionally give a description (-d "description")
38853# which will be put into .DLL. To see the list of accepted options (as well
38854# as command-line format) simply run this program without options. The .DLL
38855# is built to be imported by name (there is no guarantee that new versions
38856# of the library you build will have same ordinals for same symbols).
38857#
38858# dllar is free software; you can redistribute it and/or modify
38859# it under the terms of the GNU General Public License as published by
38860# the Free Software Foundation; either version 2, or (at your option)
38861# any later version.
38862#
38863# dllar is distributed in the hope that it will be useful,
38864# but WITHOUT ANY WARRANTY; without even the implied warranty of
38865# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
38866# GNU General Public License for more details.
38867#
38868# You should have received a copy of the GNU General Public License
38869# along with dllar; see the file COPYING. If not, write to the Free
38870# Software Foundation, 59 Temple Place - Suite 330, Boston, MA
38871# 02111-1307, USA.
38872
38873# To successfuly run this program you will need:
38874# - Current drive should have LFN support (HPFS, ext2, network, etc)
38875# (Sometimes dllar generates filenames which won't fit 8.3 scheme)
38876# - gcc
38877# (used to build the .dll)
38878# - emxexp
38879# (used to create .def file from .o files)
38880# - emximp
38881# (used to create .a file from .def file)
38882# - GNU text utilites (cat, sort, uniq)
38883# used to process emxexp output
38884# - GNU file utilities (mv, rm)
38885# - GNU sed
38886# - lxlite (optional, see flag below)
38887# (used for general .dll cleanup)
38888#
38889
38890flag_USE_LXLITE=1;
38891
38892#
38893# helper functions
38894# basnam, variant of basename, which does _not_ remove the path, _iff_
38895# second argument (suffix to remove) is given
38896basnam(){
38897 case ${D}# in
38898 1)
38899 echo ${D}1 | sed 's/.*\///' | sed 's/.*\\//'
38900 ;;
38901 2)
38902 echo ${D}1 | sed 's/'${D}2'${D}//'
38903 ;;
38904 *)
38905 echo "error in basnam ${D}*"
38906 exit 8
38907 ;;
38908 esac
38909}
38910
38911# Cleanup temporary files and output
38912CleanUp() {
38913 cd ${D}curDir
38914 for i in ${D}inputFiles ; do
38915 case ${D}i in
38916 *!)
38917 rm -rf \`basnam ${D}i !\`
38918 ;;
38919 *)
38920 ;;
38921 esac
38922 done
38923
38924 # Kill result in case of failure as there is just to many stupid make/nmake
38925 # things out there which doesn't do this.
2057db16 38926 if [] ${D}# -eq 0 []; then
473276a9
VS
38927 rm -f ${D}arcFile ${D}arcFile2 ${D}defFile ${D}dllFile
38928 fi
38929}
38930
38931# Print usage and exit script with rc=1.
38932PrintHelp() {
2057db16
VS
38933 echo 'Usage: dllar []-o[[]utput[]] output_file[] []-i[[]mport[]] importlib_name[]'
38934 echo ' []-d[[]escription[]] "dll descrption"[] []-cc "CC"[] []-f[[]lags[]] "CFLAGS"[]'
38935 echo ' []-ord[[]inals[]][] -ex[]clude[] "symbol(s)"'
38936 echo ' []-libf[[]lags[]] "{INIT|TERM}{GLOBAL|INSTANCE}"[] []-nocrt[[]dll[]][] []-nolxl[[]ite[]][]'
38937 echo ' []*.o[] []*.a[]'
473276a9
VS
38938 echo '*> "output_file" should have no extension.'
38939 echo ' If it has the .o, .a or .dll extension, it is automatically removed.'
38940 echo ' The import library name is derived from this and is set to "name".a,'
38941 echo ' unless overridden by -import'
38942 echo '*> "importlib_name" should have no extension.'
38943 echo ' If it has the .o, or .a extension, it is automatically removed.'
38944 echo ' This name is used as the import library name and may be longer and'
38945 echo ' more descriptive than the DLL name which has to follow the old '
38946 echo ' 8.3 convention of FAT.'
38947 echo '*> "cc" is used to use another GCC executable. (default: gcc.exe)'
38948 echo '*> "flags" should be any set of valid GCC flags. (default: -s -Zcrtdll)'
38949 echo ' These flags will be put at the start of GCC command line.'
2057db16
VS
38950 echo '*> -ord[]inals[] tells dllar to export entries by ordinals. Be careful.'
38951 echo '*> -ex[]clude[] defines symbols which will not be exported. You can define'
473276a9
VS
38952 echo ' multiple symbols, for example -ex "myfunc yourfunc _GLOBAL*".'
38953 echo ' If the last character of a symbol is "*", all symbols beginning'
38954 echo ' with the prefix before "*" will be exclude, (see _GLOBAL* above).'
2057db16 38955 echo '*> -libf[]lags[] can be used to add INITGLOBAL/INITINSTANCE and/or'
473276a9 38956 echo ' TERMGLOBAL/TERMINSTANCE flags to the dynamically-linked library.'
2057db16 38957 echo '*> -nocrt[]dll[] switch will disable linking the library against emx''s'
473276a9 38958 echo ' C runtime DLLs.'
2057db16 38959 echo '*> -nolxl[]ite[] switch will disable running lxlite on the resulting DLL.'
473276a9
VS
38960 echo '*> All other switches (for example -L./ or -lmylib) will be passed'
38961 echo ' unchanged to GCC at the end of command line.'
38962 echo '*> If you create a DLL from a library and you do not specify -o,'
38963 echo ' the basename for DLL and import library will be set to library name,'
38964 echo ' the initial library will be renamed to 'name'_s.a (_s for static)'
38965 echo ' i.e. "dllar gcc.a" will create gcc.dll and gcc.a, and the initial'
38966 echo ' library will be renamed into gcc_s.a.'
38967 echo '--------'
38968 echo 'Example:'
38969 echo ' dllar -o gcc290.dll libgcc.a -d "GNU C runtime library" -ord'
38970 echo ' -ex "__main __ctordtor*" -libf "INITINSTANCE TERMINSTANCE"'
38971 CleanUp
38972 exit 1
38973}
38974
38975# Execute a command.
38976# If exit code of the commnad <> 0 CleanUp() is called and we'll exit the script.
38977# @Uses Whatever CleanUp() uses.
38978doCommand() {
38979 echo "${D}*"
38980 eval ${D}*
38981 rcCmd=${D}?
38982
2057db16 38983 if [] ${D}rcCmd -ne 0 []; then
473276a9
VS
38984 echo "command failed, exit code="${D}rcCmd
38985 CleanUp
38986 exit ${D}rcCmd
38987 fi
38988}
38989
38990# main routine
38991# setup globals
38992cmdLine=${D}*
38993outFile=""
38994outimpFile=""
38995inputFiles=""
38996description=""
38997CC=gcc.exe
38998CFLAGS="-s -Zcrtdll"
38999EXTRA_CFLAGS=""
39000EXPORT_BY_ORDINALS=0
39001exclude_symbols=""
39002library_flags=""
39003curDir=\`pwd\`
39004curDirS=curDir
39005case ${D}curDirS in
39006*/)
39007 ;;
39008*)
39009 curDirS=${D}{curDirS}"/"
39010 ;;
39011esac
39012# Parse commandline
39013libsToLink=0
2057db16 39014while [] ${D}1 []; do
473276a9
VS
39015 case ${D}1 in
39016 -ord*)
39017 EXPORT_BY_ORDINALS=1;
39018 ;;
39019 -o*)
39020 shift
39021 outFile=${D}1
39022 ;;
39023 -i*)
39024 shift
39025 outimpFile=${D}1
39026 ;;
39027 -d*)
39028 shift
39029 description=${D}1
39030 ;;
39031 -f*)
39032 shift
39033 CFLAGS=${D}1
39034 ;;
39035 -c*)
39036 shift
39037 CC=${D}1
39038 ;;
39039 -h*)
39040 PrintHelp
39041 ;;
39042 -ex*)
39043 shift
39044 exclude_symbols=${D}{exclude_symbols}${D}1" "
39045 ;;
39046 -libf*)
39047 shift
39048 library_flags=${D}{library_flags}${D}1" "
39049 ;;
39050 -nocrt*)
39051 CFLAGS="-s"
39052 ;;
39053 -nolxl*)
39054 flag_USE_LXLITE=0
39055 ;;
39056 -* | /*)
39057 case ${D}1 in
39058 -L* | -l*)
39059 libsToLink=1
39060 ;;
39061 *)
39062 ;;
39063 esac
39064 EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1
39065 ;;
39066 *)
39067 found=0;
2057db16 39068 if [] ${D}libsToLink -ne 0 []; then
473276a9
VS
39069 EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1
39070 else
39071 for file in ${D}1 ; do
2057db16 39072 if [] -f ${D}file []; then
473276a9
VS
39073 inputFiles="${D}{inputFiles} ${D}file"
39074 found=1
39075 fi
39076 done
2057db16 39077 if [] ${D}found -eq 0 []; then
473276a9
VS
39078 echo "ERROR: No file(s) found: "${D}1
39079 exit 8
39080 fi
39081 fi
39082 ;;
39083 esac
39084 shift
39085done # iterate cmdline words
39086
39087#
2057db16 39088if [] -z "${D}inputFiles" []; then
473276a9
VS
39089 echo "dllar: no input files"
39090 PrintHelp
39091fi
39092
39093# Now extract all .o files from .a files
39094newInputFiles=""
39095for file in ${D}inputFiles ; do
39096 case ${D}file in
39097 *.a | *.lib)
39098 case ${D}file in
39099 *.a)
39100 suffix=".a"
39101 AR="ar"
39102 ;;
39103 *.lib)
39104 suffix=".lib"
39105 AR="emxomfar"
39106 EXTRA_CFLAGS="${D}EXTRA_CFLAGS -Zomf"
39107 ;;
39108 *)
39109 ;;
39110 esac
39111 dirname=\`basnam ${D}file ${D}suffix\`"_%"
39112 mkdir ${D}dirname
2057db16 39113 if [] ${D}? -ne 0 []; then
473276a9
VS
39114 echo "Failed to create subdirectory ./${D}dirname"
39115 CleanUp
39116 exit 8;
39117 fi
39118 # Append '!' to indicate archive
39119 newInputFiles="${D}newInputFiles ${D}{dirname}!"
39120 doCommand "cd ${D}dirname; ${D}AR x ../${D}file"
39121 cd ${D}curDir
39122 found=0;
39123 for subfile in ${D}dirname/*.o* ; do
2057db16 39124 if [] -f ${D}subfile []; then
473276a9 39125 found=1
2057db16 39126 if [] -s ${D}subfile []; then
473276a9
VS
39127 # FIXME: This should be: is file size > 32 byte, _not_ > 0!
39128 newInputFiles="${D}newInputFiles ${D}subfile"
39129 fi
39130 fi
39131 done
2057db16 39132 if [] ${D}found -eq 0 []; then
473276a9
VS
39133 echo "WARNING: there are no files in archive \'${D}file\'"
39134 fi
39135 ;;
39136 *)
39137 newInputFiles="${D}{newInputFiles} ${D}file"
39138 ;;
39139 esac
39140done
39141inputFiles="${D}newInputFiles"
39142
39143# Output filename(s).
39144do_backup=0;
2057db16 39145if [] -z ${D}outFile []; then
473276a9
VS
39146 do_backup=1;
39147 set outFile ${D}inputFiles; outFile=${D}2
39148fi
39149
39150# If it is an archive, remove the '!' and the '_%' suffixes
39151case ${D}outFile in
39152*_%!)
39153 outFile=\`basnam ${D}outFile _%!\`
39154 ;;
39155*)
39156 ;;
39157esac
39158case ${D}outFile in
39159*.dll)
39160 outFile=\`basnam ${D}outFile .dll\`
39161 ;;
39162*.DLL)
39163 outFile=\`basnam ${D}outFile .DLL\`
39164 ;;
39165*.o)
39166 outFile=\`basnam ${D}outFile .o\`
39167 ;;
39168*.obj)
39169 outFile=\`basnam ${D}outFile .obj\`
39170 ;;
39171*.a)
39172 outFile=\`basnam ${D}outFile .a\`
39173 ;;
39174*.lib)
39175 outFile=\`basnam ${D}outFile .lib\`
39176 ;;
39177*)
39178 ;;
39179esac
39180case ${D}outimpFile in
39181*.a)
39182 outimpFile=\`basnam ${D}outimpFile .a\`
39183 ;;
39184*.lib)
39185 outimpFile=\`basnam ${D}outimpFile .lib\`
39186 ;;
39187*)
39188 ;;
39189esac
2057db16 39190if [] -z ${D}outimpFile []; then
473276a9
VS
39191 outimpFile=${D}outFile
39192fi
39193defFile="${D}{outFile}.def"
39194arcFile="${D}{outimpFile}.a"
39195arcFile2="${D}{outimpFile}.lib"
39196dllFile="${D}outFile"
39197# Add suffix to dllFile later, first we need a version to use as
39198# name in .def file.
39199
2057db16
VS
39200if [] ${D}do_backup -ne 0 [] ; then
39201 if [] -f ${D}arcFile [] ; then
473276a9
VS
39202 doCommand "mv ${D}arcFile ${D}{outFile}_s.a"
39203 fi
2057db16 39204 if [] -f ${D}arcFile2 [] ; then
473276a9
VS
39205 doCommand "mv ${D}arcFile2 ${D}{outFile}_s.lib"
39206 fi
39207fi
39208
39209# Extract public symbols from all the object files.
39210tmpdefFile=${D}{defFile}_%
39211rm -f ${D}tmpdefFile
39212for file in ${D}inputFiles ; do
39213 case ${D}file in
39214 *!)
39215 ;;
39216 *)
39217 doCommand "emxexp -u ${D}file >> ${D}tmpdefFile"
39218 ;;
39219 esac
39220done
39221
39222# Create the def file.
39223rm -f ${D}defFile
39224echo "LIBRARY \`basnam ${D}dllFile\` ${D}library_flags" >> ${D}defFile
39225dllFile="${D}dllFile.dll"
2057db16 39226if [] -n ${D}description []; then
473276a9
VS
39227 echo "DESCRIPTION \"${D}{description}\"" >> ${D}defFile
39228fi
39229echo "EXPORTS" >> ${D}defFile
39230
39231doCommand "cat ${D}tmpdefFile | sort.exe | uniq.exe > ${D}{tmpdefFile}%"
39232grep -v "^ *;" < ${D}{tmpdefFile}% | grep -v "^ *${D}" >${D}tmpdefFile
39233
39234# Checks if the export is ok or not.
39235for word in ${D}exclude_symbols; do
39236 grep -v ${D}word < ${D}tmpdefFile >${D}{tmpdefFile}%
39237 mv ${D}{tmpdefFile}% ${D}tmpdefFile
39238done
39239
39240
2057db16 39241if [] ${D}EXPORT_BY_ORDINALS -ne 0 []; then
473276a9
VS
39242 sed "=" < ${D}tmpdefFile | \
39243 sed '
39244 N
39245 : loop
2057db16 39246 s/^\([]0-9[]\+\)\([]^;[]*\)\(;.*\)\?/\2 @\1 NONAME/
473276a9
VS
39247 t loop
39248 ' > ${D}{tmpdefFile}%
39249 grep -v "^ *${D}" < ${D}{tmpdefFile}% > ${D}tmpdefFile
39250else
39251 rm -f ${D}{tmpdefFile}%
39252fi
39253cat ${D}tmpdefFile >> ${D}defFile
39254rm -f ${D}tmpdefFile
39255
39256# Do linking, create implib, and apply lxlite.
39257gccCmdl="";
39258for file in ${D}inputFiles ; do
39259 case ${D}file in
39260 *!)
39261 ;;
39262 *)
39263 gccCmdl="${D}gccCmdl ${D}file"
39264 ;;
39265 esac
39266done
39267doCommand "${D}CC ${D}CFLAGS -Zdll -o ${D}dllFile ${D}defFile ${D}gccCmdl ${D}EXTRA_CFLAGS"
39268touch "${D}{outFile}.dll"
39269
39270doCommand "emximp -o ${D}arcFile ${D}defFile"
2057db16 39271if [] ${D}flag_USE_LXLITE -ne 0 []; then
473276a9 39272 add_flags="";
2057db16 39273 if [] ${D}EXPORT_BY_ORDINALS -ne 0 []; then
473276a9
VS
39274 add_flags="-ynd"
39275 fi
39276 doCommand "lxlite -cs -t: -mrn -mln ${D}add_flags ${D}dllFile"
39277fi
39278doCommand "emxomf -s -l ${D}arcFile"
39279
39280# Successful exit.
39281CleanUp 1
39282exit 0
39283EOF
39284
39285 chmod +x dllar.sh
a848cd7e
SC
39286 ;;
39287
39288 *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | \
39289 *-*-sunos4* | \
39290 *-*-osf* | \
39291 *-*-dgux5* | \
39292 *-*-sysv5* )
39293 ;;
39294
39295 *)
39296 { { echo "$as_me:$LINENO: error: unknown system type $BAKEFILE_HOST." >&5
39297echo "$as_me: error: unknown system type $BAKEFILE_HOST." >&2;}
39298 { (exit 1); exit 1; }; }
39299 esac
39300
2057db16
VS
39301 if test "x$PIC_FLAG" != "x" ; then
39302 PIC_FLAG="$PIC_FLAG -DPIC"
39303 fi
39304
a848cd7e
SC
39305 if test "x$SHARED_LD_MODULE_CC" = "x" ; then
39306 SHARED_LD_MODULE_CC="$SHARED_LD_CC"
39307 fi
39308 if test "x$SHARED_LD_MODULE_CXX" = "x" ; then
39309 SHARED_LD_MODULE_CXX="$SHARED_LD_CXX"
39310 fi
39311
39312
39313
39314
39315
39316
39317
39318
39319 USE_SOVERSION=0
39320 USE_SOVERLINUX=0
39321 USE_SOVERSOLARIS=0
39322 USE_SOSYMLINKS=0
39323 USE_MACVERSION=0
39324 SONAME_FLAG=
39325
39326 case "${BAKEFILE_HOST}" in
39327 *-*-linux* )
39328 SONAME_FLAG="-Wl,-soname,"
39329 USE_SOVERSION=1
39330 USE_SOVERLINUX=1
39331 USE_SOSYMLINKS=1
39332 ;;
39333
39334 *-*-solaris2* )
39335 SONAME_FLAG="-h "
39336 USE_SOVERSION=1
39337 USE_SOVERSOLARIS=1
39338 USE_SOSYMLINKS=1
39339 ;;
39340
39341 *-*-darwin* )
39342 USE_MACVERSION=1
39343 USE_SOVERSION=1
39344 USE_SOSYMLINKS=1
39345 ;;
39346 esac
39347
39348
39349
39350
39351
39352
39353
39354
39355
39356 echo "$as_me:$LINENO: checking for dependency tracking method" >&5
39357echo $ECHO_N "checking for dependency tracking method... $ECHO_C" >&6
39358 DEPS_TRACKING=0
39359
39360 if test "x$GCC" = "xyes"; then
39361 DEPSMODE=gcc
39362 DEPS_TRACKING=1
39363 case "${BAKEFILE_HOST}" in
39364 powerpc-*-darwin* )
39365 DEPSFLAG_GCC="-no-cpp-precomp -MMD"
39366 ;;
39367 * )
39368 DEPSFLAG_GCC="-MMD"
39369 ;;
39370 esac
39371 echo "$as_me:$LINENO: result: gcc" >&5
39372echo "${ECHO_T}gcc" >&6
39373 else
39374 echo "$as_me:$LINENO: result: none" >&5
39375echo "${ECHO_T}none" >&6
39376 fi
39377
39378 if test $DEPS_TRACKING = 1 ; then
473276a9
VS
39379
39380D='$'
39381cat <<EOF >bk-deps
a848cd7e
SC
39382#!/bin/sh
39383
39384# This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf
39385# script. It is used to track C/C++ files dependencies in portable way.
39386#
39387# Permission is given to use this file in any way.
39388
473276a9 39389DEPSMODE=${DEPSMODE}
a848cd7e 39390DEPSDIR=.deps
473276a9 39391DEPSFLAG_GCC="${DEPSFLAG_GCC}"
a848cd7e 39392
473276a9 39393mkdir -p ${D}DEPSDIR
a848cd7e 39394
473276a9
VS
39395if test ${D}DEPSMODE = gcc ; then
39396 ${D}* ${D}{DEPSFLAG_GCC}
39397 status=${D}?
39398 if test ${D}{status} != 0 ; then
39399 exit ${D}{status}
a848cd7e
SC
39400 fi
39401 # move created file to the location we want it in:
473276a9
VS
39402 while test ${D}# -gt 0; do
39403 case "${D}1" in
a848cd7e
SC
39404 -o )
39405 shift
473276a9 39406 objfile=${D}1
a848cd7e
SC
39407 ;;
39408 -* )
39409 ;;
39410 * )
473276a9 39411 srcfile=${D}1
a848cd7e
SC
39412 ;;
39413 esac
39414 shift
39415 done
473276a9
VS
39416 depfile=\`basename ${D}srcfile | sed -e 's/\..*${D}/.d/g'\`
39417 depobjname=\`echo ${D}depfile |sed -e 's/\.d/.o/g'\`
39418 if test -f ${D}depfile ; then
39419 sed -e "s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{DEPSDIR}/${D}{objfile}.d
39420 rm -f ${D}depfile
a848cd7e 39421 else
473276a9
VS
39422 depfile=\`basename ${D}objfile | sed -e 's/\..*${D}/.d/g'\`
39423 if test -f ${D}depfile ; then
39424 sed -e "/^${D}objfile/!s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{DEPSDIR}/${D}{objfile}.d
39425 rm -f ${D}depfile
a848cd7e
SC
39426 fi
39427 fi
39428 exit 0
39429else
473276a9
VS
39430 ${D}*
39431 exit ${D}?
a848cd7e
SC
39432fi
39433EOF
473276a9 39434
a848cd7e
SC
39435 chmod +x bk-deps
39436 fi
39437
39438
39439
39440
39441 RESCOMP=
39442 SETFILE=
39443
39444 case ${BAKEFILE_HOST} in
39445 *-*-cygwin* | *-*-mingw32* )
39446 if test "$build" != "$host" ; then
39447 RESCOMP=$host_alias-windres
39448 else
39449 # Extract the first word of "windres", so it can be a program name with args.
39450set dummy windres; ac_word=$2
39451echo "$as_me:$LINENO: checking for $ac_word" >&5
39452echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
39453if test "${ac_cv_prog_RESCOMP+set}" = set; then
39454 echo $ECHO_N "(cached) $ECHO_C" >&6
39455else
39456 if test -n "$RESCOMP"; then
39457 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
39458else
39459as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
39460for as_dir in $PATH
39461do
39462 IFS=$as_save_IFS
39463 test -z "$as_dir" && as_dir=.
39464 for ac_exec_ext in '' $ac_executable_extensions; do
39465 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
39466 ac_cv_prog_RESCOMP="windres"
39467 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
39468 break 2
39469 fi
39470done
39471done
39472
39473 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="windres"
39474fi
39475fi
39476RESCOMP=$ac_cv_prog_RESCOMP
39477if test -n "$RESCOMP"; then
39478 echo "$as_me:$LINENO: result: $RESCOMP" >&5
39479echo "${ECHO_T}$RESCOMP" >&6
39480else
39481 echo "$as_me:$LINENO: result: no" >&5
39482echo "${ECHO_T}no" >&6
39483fi
39484
39485 fi
39486 ;;
39487
39488 *-*-darwin* )
39489 # Extract the first word of "Rez", so it can be a program name with args.
39490set dummy Rez; ac_word=$2
39491echo "$as_me:$LINENO: checking for $ac_word" >&5
39492echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
39493if test "${ac_cv_prog_RESCOMP+set}" = set; then
39494 echo $ECHO_N "(cached) $ECHO_C" >&6
39495else
39496 if test -n "$RESCOMP"; then
39497 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
39498else
39499as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
39500for as_dir in $PATH
39501do
39502 IFS=$as_save_IFS
39503 test -z "$as_dir" && as_dir=.
39504 for ac_exec_ext in '' $ac_executable_extensions; do
39505 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
39506 ac_cv_prog_RESCOMP="Rez"
39507 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
39508 break 2
39509 fi
39510done
39511done
39512
39513 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez"
39514fi
39515fi
39516RESCOMP=$ac_cv_prog_RESCOMP
39517if test -n "$RESCOMP"; then
39518 echo "$as_me:$LINENO: result: $RESCOMP" >&5
39519echo "${ECHO_T}$RESCOMP" >&6
39520else
39521 echo "$as_me:$LINENO: result: no" >&5
39522echo "${ECHO_T}no" >&6
39523fi
39524
39525 # Extract the first word of "SetFile", so it can be a program name with args.
39526set dummy SetFile; ac_word=$2
39527echo "$as_me:$LINENO: checking for $ac_word" >&5
39528echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
39529if test "${ac_cv_prog_SETFILE+set}" = set; then
39530 echo $ECHO_N "(cached) $ECHO_C" >&6
39531else
39532 if test -n "$SETFILE"; then
39533 ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
39534else
39535as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
39536for as_dir in $PATH
39537do
39538 IFS=$as_save_IFS
39539 test -z "$as_dir" && as_dir=.
39540 for ac_exec_ext in '' $ac_executable_extensions; do
39541 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
39542 ac_cv_prog_SETFILE="SetFile"
39543 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
39544 break 2
39545 fi
39546done
39547done
39548
39549 test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
39550fi
39551fi
39552SETFILE=$ac_cv_prog_SETFILE
39553if test -n "$SETFILE"; then
39554 echo "$as_me:$LINENO: result: $SETFILE" >&5
39555echo "${ECHO_T}$SETFILE" >&6
39556else
39557 echo "$as_me:$LINENO: result: no" >&5
39558echo "${ECHO_T}no" >&6
39559fi
39560
39561 ;;
39562 esac
39563
39564
39565
39566
39567
2057db16 39568 BAKEFILE_BAKEFILE_M4_VERSION="0.1.4"
a848cd7e 39569
dcc1b6ad 39570
a49baeab
DE
39571
39572
39573
9f45f08e 39574BAKEFILE_AUTOCONF_INC_M4_VERSION="0.1.4"
a848cd7e 39575
646b6ec1 39576
74b84332 39577
a848cd7e
SC
39578 # Check whether --enable-precomp-headers or --disable-precomp-headers was given.
39579if test "${enable_precomp_headers+set}" = set; then
39580 enableval="$enable_precomp_headers"
39581 bk_use_pch="$enableval"
39582fi;
39583
39584 GCC_PCH=0
39585
39586 if test "x$bk_use_pch" = "x" -o "x$bk_use_pch" = "xyes" ; then
39587 if test "x$GCC" = "xyes"; then
39588 echo "$as_me:$LINENO: checking if the compiler supports precompiled headers" >&5
39589echo $ECHO_N "checking if the compiler supports precompiled headers... $ECHO_C" >&6
39590 cat >conftest.$ac_ext <<_ACEOF
39591/* confdefs.h. */
39592_ACEOF
39593cat confdefs.h >>conftest.$ac_ext
39594cat >>conftest.$ac_ext <<_ACEOF
39595/* end confdefs.h. */
39596
39597int
39598main ()
39599{
39600
39601 #if !defined(__GNUC__) || !defined(__GNUC_MINOR__)
39602 #error "no pch support"
39603 #endif
39604 #if (__GNUC__ < 3)
39605 #error "no pch support"
39606 #endif
39607 #if (__GNUC__ == 3) && \
39608 ((!defined(__APPLE_CC__) && (__GNUC_MINOR__ < 4)) || \
39609 ( defined(__APPLE_CC__) && (__GNUC_MINOR__ < 3)))
39610 #error "no pch support"
39611 #endif
39612
39613 ;
39614 return 0;
39615}
39616_ACEOF
39617rm -f conftest.$ac_objext
39618if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 39619 (eval $ac_compile) 2>conftest.er1
a848cd7e 39620 ac_status=$?
ac1cb8d3
VS
39621 grep -v '^ *+' conftest.er1 >conftest.err
39622 rm -f conftest.er1
39623 cat conftest.err >&5
a848cd7e
SC
39624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39625 (exit $ac_status); } &&
ffa0583f 39626 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
39627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39628 (eval $ac_try) 2>&5
39629 ac_status=$?
39630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39631 (exit $ac_status); }; } &&
39632 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
39633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39634 (eval $ac_try) 2>&5
39635 ac_status=$?
39636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39637 (exit $ac_status); }; }; then
39638
39639 echo "$as_me:$LINENO: result: yes" >&5
39640echo "${ECHO_T}yes" >&6
a848cd7e
SC
39641 GCC_PCH=1
39642
39643else
39644 echo "$as_me: failed program was:" >&5
39645sed 's/^/| /' conftest.$ac_ext >&5
39646
39647
39648 echo "$as_me:$LINENO: result: no" >&5
39649echo "${ECHO_T}no" >&6
39650
39651fi
ac1cb8d3 39652rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
39653 if test $GCC_PCH = 1 ; then
39654 cat <<EOF >bk-make-pch
39655#!/bin/sh
39656
39657# This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf
39658# script. It is used to generated precompiled headers.
39659#
39660# Permission is given to use this file in any way.
39661
39662outfile="\${1}"
39663header="\${2}"
39664shift
39665shift
39666
39667compiler=
39668headerfile=
39669while test \${#} -gt 0; do
39670 case "\${1}" in
39671 -I* )
39672 incdir=\`echo \${1} | sed -e 's/-I\(.*\)/\1/g'\`
39673 if test "x\${headerfile}" = "x" -a -f "\${incdir}/\${header}" ; then
39674 headerfile="\${incdir}/\${header}"
39675 fi
39676 ;;
39677 esac
39678 compiler="\${compiler} \${1}"
39679 shift
39680done
39681
39682if test "x\${headerfile}" = "x" ; then
39683 echo "error: can't find header \${header} in include paths" >2
39684else
39685 if test -f \${outfile} ; then
39686 rm -f \${outfile}
39687 else
39688 mkdir -p \`dirname \${outfile}\`
39689 fi
39690 depsfile=".deps/\`basename \${outfile}\`.d"
39691 mkdir -p .deps
39692 # can do this because gcc is >= 3.4:
39693 \${compiler} -o \${outfile} -MMD -MF "\${depsfile}" "\${headerfile}"
39694 exit \${?}
39695fi
39696EOF
39697 chmod +x bk-make-pch
39698 fi
39699 fi
39700 fi
39701
39702
39703
39704
39705
dcc1b6ad
VS
39706
39707
39708 # Check whether --enable-precomp-headers or --disable-precomp-headers was given.
39709if test "${enable_precomp_headers+set}" = set; then
39710 enableval="$enable_precomp_headers"
39711 bk_use_pch="$enableval"
39712fi;
39713
39714 GCC_PCH=0
39715
39716 if test "x$bk_use_pch" = "x" -o "x$bk_use_pch" = "xyes" ; then
39717 if test "x$GCC" = "xyes"; then
39718 echo "$as_me:$LINENO: checking if the compiler supports precompiled headers" >&5
39719echo $ECHO_N "checking if the compiler supports precompiled headers... $ECHO_C" >&6
39720 cat >conftest.$ac_ext <<_ACEOF
39721/* confdefs.h. */
39722_ACEOF
39723cat confdefs.h >>conftest.$ac_ext
39724cat >>conftest.$ac_ext <<_ACEOF
39725/* end confdefs.h. */
39726
39727int
39728main ()
39729{
39730
39731 #if !defined(__GNUC__) || !defined(__GNUC_MINOR__)
39732 #error "no pch support"
39733 #endif
39734 #if (__GNUC__ < 3)
39735 #error "no pch support"
39736 #endif
39737 #if (__GNUC__ == 3) && \
39738 ((!defined(__APPLE_CC__) && (__GNUC_MINOR__ < 4)) || \
39739 ( defined(__APPLE_CC__) && (__GNUC_MINOR__ < 3)))
39740 #error "no pch support"
39741 #endif
39742
39743 ;
39744 return 0;
39745}
39746_ACEOF
39747rm -f conftest.$ac_objext
39748if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 39749 (eval $ac_compile) 2>conftest.er1
dcc1b6ad 39750 ac_status=$?
ac1cb8d3
VS
39751 grep -v '^ *+' conftest.er1 >conftest.err
39752 rm -f conftest.er1
39753 cat conftest.err >&5
dcc1b6ad
VS
39754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39755 (exit $ac_status); } &&
ffa0583f 39756 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
39757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39758 (eval $ac_try) 2>&5
39759 ac_status=$?
39760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39761 (exit $ac_status); }; } &&
39762 { ac_try='test -s conftest.$ac_objext'
dcc1b6ad
VS
39763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39764 (eval $ac_try) 2>&5
39765 ac_status=$?
39766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39767 (exit $ac_status); }; }; then
39768
39769 echo "$as_me:$LINENO: result: yes" >&5
39770echo "${ECHO_T}yes" >&6
dcc1b6ad
VS
39771 GCC_PCH=1
39772
39773else
39774 echo "$as_me: failed program was:" >&5
39775sed 's/^/| /' conftest.$ac_ext >&5
39776
39777
39778 echo "$as_me:$LINENO: result: no" >&5
39779echo "${ECHO_T}no" >&6
39780
39781fi
ac1cb8d3 39782rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
dcc1b6ad
VS
39783 if test $GCC_PCH = 1 ; then
39784 cat <<EOF >bk-make-pch
39785#!/bin/sh
39786
39787# This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf
39788# script. It is used to generated precompiled headers.
39789#
39790# Permission is given to use this file in any way.
39791
39792outfile="\${1}"
39793header="\${2}"
39794shift
39795shift
39796
39797compiler=
39798headerfile=
39799while test \${#} -gt 0; do
39800 case "\${1}" in
39801 -I* )
39802 incdir=\`echo \${1} | sed -e 's/-I\(.*\)/\1/g'\`
39803 if test "x\${headerfile}" = "x" -a -f "\${incdir}/\${header}" ; then
39804 headerfile="\${incdir}/\${header}"
39805 fi
39806 ;;
39807 esac
39808 compiler="\${compiler} \${1}"
39809 shift
39810done
39811
39812if test "x\${headerfile}" = "x" ; then
39813 echo "error: can't find header \${header} in include paths" >2
39814else
39815 if test -f \${outfile} ; then
39816 rm -f \${outfile}
39817 else
39818 mkdir -p \`dirname \${outfile}\`
39819 fi
39820 depsfile=".deps/\`basename \${outfile}\`.d"
39821 mkdir -p .deps
39822 # can do this because gcc is >= 3.4:
39823 \${compiler} -o \${outfile} -MMD -MF "\${depsfile}" "\${headerfile}"
39824 exit \${?}
39825fi
39826EOF
39827 chmod +x bk-make-pch
39828 fi
39829 fi
39830 fi
39831
39832
39833
a848cd7e
SC
39834 COND_BUILD_DEBUG="#"
39835 if test "x$BUILD" = "xdebug" ; then
39836 COND_BUILD_DEBUG=""
39837 fi
39838
39839 COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT="#"
39840 if test "x$BUILD" = "xdebug" -a "x$DEBUG_FLAG" = "xdefault" ; then
39841 COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT=""
39842 fi
39843
39844 COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT="#"
39845 if test "x$BUILD" = "xdebug" -a "x$DEBUG_INFO" = "xdefault" ; then
39846 COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT=""
39847 fi
39848
39849 COND_BUILD_DEBUG_UNICODE_0="#"
39850 if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x0" ; then
39851 COND_BUILD_DEBUG_UNICODE_0=""
39852 fi
39853
39854 COND_BUILD_DEBUG_UNICODE_1="#"
39855 if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x1" ; then
39856 COND_BUILD_DEBUG_UNICODE_1=""
39857 fi
39858
39859 COND_BUILD_RELEASE="#"
39860 if test "x$BUILD" = "xrelease" ; then
39861 COND_BUILD_RELEASE=""
39862 fi
39863
39864 COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT="#"
39865 if test "x$BUILD" = "xrelease" -a "x$DEBUG_INFO" = "xdefault" ; then
39866 COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT=""
39867 fi
39868
39869 COND_BUILD_RELEASE_UNICODE_0="#"
39870 if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x0" ; then
39871 COND_BUILD_RELEASE_UNICODE_0=""
39872 fi
39873
39874 COND_BUILD_RELEASE_UNICODE_1="#"
39875 if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x1" ; then
39876 COND_BUILD_RELEASE_UNICODE_1=""
39877 fi
39878
39879 COND_DEBUG_FLAG_1="#"
39880 if test "x$DEBUG_FLAG" = "x1" ; then
39881 COND_DEBUG_FLAG_1=""
39882 fi
39883
39884 COND_DEBUG_INFO_0="#"
39885 if test "x$DEBUG_INFO" = "x0" ; then
39886 COND_DEBUG_INFO_0=""
39887 fi
39888
39889 COND_DEBUG_INFO_1="#"
39890 if test "x$DEBUG_INFO" = "x1" ; then
39891 COND_DEBUG_INFO_1=""
39892 fi
39893
39894 COND_DEPS_TRACKING_0="#"
39895 if test "x$DEPS_TRACKING" = "x0" ; then
39896 COND_DEPS_TRACKING_0=""
39897 fi
39898
39899 COND_DEPS_TRACKING_1="#"
39900 if test "x$DEPS_TRACKING" = "x1" ; then
39901 COND_DEPS_TRACKING_1=""
39902 fi
39903
39904 COND_GCC_PCH_1="#"
39905 if test "x$GCC_PCH" = "x1" ; then
39906 COND_GCC_PCH_1=""
39907 fi
39908
39909 COND_MONOLITHIC_0="#"
39910 if test "x$MONOLITHIC" = "x0" ; then
39911 COND_MONOLITHIC_0=""
39912 fi
39913
39914 COND_MONOLITHIC_0_SHARED_0="#"
39915 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" ; then
39916 COND_MONOLITHIC_0_SHARED_0=""
39917 fi
39918
39919 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1="#"
39920 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" ; then
39921 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1=""
39922 fi
39923
39924 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1="#"
39925 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then
39926 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1=""
39927 fi
39928
39929 COND_MONOLITHIC_0_SHARED_0_USE_HTML_1="#"
39930 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_HTML" = "x1" ; then
39931 COND_MONOLITHIC_0_SHARED_0_USE_HTML_1=""
39932 fi
39933
39934 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1="#"
39935 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_ODBC" = "x1" ; then
39936 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1=""
39937 fi
39938
ceec2216
RL
39939 COND_MONOLITHIC_0_SHARED_0_USE_XRC_1="#"
39940 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_XRC" = "x1" ; then
39941 COND_MONOLITHIC_0_SHARED_0_USE_XRC_1=""
39942 fi
39943
a848cd7e
SC
39944 COND_MONOLITHIC_0_SHARED_1="#"
39945 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" ; then
39946 COND_MONOLITHIC_0_SHARED_1=""
39947 fi
39948
39949 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1="#"
39950 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" ; then
39951 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1=""
39952 fi
39953
39954 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1="#"
39955 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then
39956 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1=""
39957 fi
39958
39959 COND_MONOLITHIC_0_SHARED_1_USE_HTML_1="#"
39960 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_HTML" = "x1" ; then
39961 COND_MONOLITHIC_0_SHARED_1_USE_HTML_1=""
39962 fi
39963
39964 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1="#"
39965 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_ODBC" = "x1" ; then
39966 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1=""
39967 fi
39968
ceec2216
RL
39969 COND_MONOLITHIC_0_SHARED_1_USE_XRC_1="#"
39970 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_XRC" = "x1" ; then
39971 COND_MONOLITHIC_0_SHARED_1_USE_XRC_1=""
39972 fi
39973
a848cd7e
SC
39974 COND_MONOLITHIC_0_USE_ODBC_1="#"
39975 if test "x$MONOLITHIC" = "x0" -a "x$USE_ODBC" = "x1" ; then
39976 COND_MONOLITHIC_0_USE_ODBC_1=""
39977 fi
39978
39979 COND_MONOLITHIC_1="#"
39980 if test "x$MONOLITHIC" = "x1" ; then
39981 COND_MONOLITHIC_1=""
39982 fi
39983
39984 COND_MONOLITHIC_1_SHARED_0="#"
39985 if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x0" ; then
39986 COND_MONOLITHIC_1_SHARED_0=""
39987 fi
39988
39989 COND_MONOLITHIC_1_SHARED_1="#"
39990 if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x1" ; then
39991 COND_MONOLITHIC_1_SHARED_1=""
39992 fi
39993
39994 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1="#"
39995 if test "x$OFFICIAL_BUILD" = "x0" -a "x$PLATFORM_WIN32" = "x1" ; then
39996 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1=""
39997 fi
39998
39999 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1="#"
40000 if test "x$OFFICIAL_BUILD" = "x1" -a "x$PLATFORM_WIN32" = "x1" ; then
40001 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1=""
40002 fi
40003
40004 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1="#"
40005 if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERSION" = "x1" ; then
40006 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1=""
40007 fi
40008
40009 COND_PLATFORM_MACOSX_1="#"
40010 if test "x$PLATFORM_MACOSX" = "x1" ; then
40011 COND_PLATFORM_MACOSX_1=""
40012 fi
40013
a30f955f
VS
40014 COND_PLATFORM_MACOSX_1_TOOLKIT_="#"
40015 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "x" ; then
40016 COND_PLATFORM_MACOSX_1_TOOLKIT_=""
40017 fi
40018
a848cd7e
SC
40019 COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA="#"
40020 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xCOCOA" ; then
40021 COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA=""
40022 fi
40023
40024 COND_PLATFORM_MACOSX_1_TOOLKIT_GTK="#"
40025 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xGTK" ; then
40026 COND_PLATFORM_MACOSX_1_TOOLKIT_GTK=""
40027 fi
40028
40029 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC="#"
40030 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" ; then
40031 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC=""
40032 fi
40033
ebee3cd0
VS
40034 COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF="#"
40035 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMOTIF" ; then
40036 COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF=""
40037 fi
40038
40039 COND_PLATFORM_MACOSX_1_TOOLKIT_X11="#"
40040 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xX11" ; then
40041 COND_PLATFORM_MACOSX_1_TOOLKIT_X11=""
40042 fi
40043
a848cd7e
SC
40044 COND_PLATFORM_MACOSX_1_USE_GUI_1="#"
40045 if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_GUI" = "x1" ; then
40046 COND_PLATFORM_MACOSX_1_USE_GUI_1=""
40047 fi
40048
40049 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1="#"
40050 if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_SOVERSION" = "x1" ; then
40051 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1=""
40052 fi
40053
40054 COND_PLATFORM_MAC_1="#"
40055 if test "x$PLATFORM_MAC" = "x1" ; then
40056 COND_PLATFORM_MAC_1=""
40057 fi
40058
40059 COND_PLATFORM_OS2_1="#"
40060 if test "x$PLATFORM_OS2" = "x1" ; then
40061 COND_PLATFORM_OS2_1=""
40062 fi
40063
40064 COND_PLATFORM_UNIX_0="#"
40065 if test "x$PLATFORM_UNIX" = "x0" ; then
40066 COND_PLATFORM_UNIX_0=""
40067 fi
40068
40069 COND_PLATFORM_UNIX_1="#"
40070 if test "x$PLATFORM_UNIX" = "x1" ; then
40071 COND_PLATFORM_UNIX_1=""
40072 fi
40073
40074 COND_PLATFORM_UNIX_1_USE_GUI_1="#"
40075 if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_GUI" = "x1" ; then
40076 COND_PLATFORM_UNIX_1_USE_GUI_1=""
40077 fi
40078
40079 COND_PLATFORM_UNIX_1_USE_PLUGINS_0="#"
40080 if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_PLUGINS" = "x0" ; then
40081 COND_PLATFORM_UNIX_1_USE_PLUGINS_0=""
40082 fi
40083
40084 COND_PLATFORM_WIN32_0="#"
40085 if test "x$PLATFORM_WIN32" = "x0" ; then
40086 COND_PLATFORM_WIN32_0=""
40087 fi
40088
40089 COND_PLATFORM_WIN32_1="#"
40090 if test "x$PLATFORM_WIN32" = "x1" ; then
40091 COND_PLATFORM_WIN32_1=""
40092 fi
40093
40094 COND_SHARED_0="#"
40095 if test "x$SHARED" = "x0" ; then
40096 COND_SHARED_0=""
40097 fi
40098
ceec2216
RL
40099 COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0="#"
40100 if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xMAC" -a "x$WXUNIV" = "x0" ; then
40101 COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0=""
40102 fi
40103
40104 COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0="#"
40105 if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xMSW" -a "x$WXUNIV" = "x0" ; then
40106 COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0=""
40107 fi
40108
40109 COND_SHARED_0_TOOLKIT_PM_WXUNIV_0="#"
40110 if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xPM" -a "x$WXUNIV" = "x0" ; then
40111 COND_SHARED_0_TOOLKIT_PM_WXUNIV_0=""
40112 fi
40113
a848cd7e
SC
40114 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1="#"
40115 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
40116 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1=""
40117 fi
40118
40119 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
40120 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
40121 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
40122 fi
40123
40124 COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
40125 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
40126 COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
40127 fi
40128
40129 COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
40130 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
40131 COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
40132 fi
40133
40134 COND_SHARED_0_WXUSE_EXPAT_BUILTIN="#"
40135 if test "x$SHARED" = "x0" -a "x$wxUSE_EXPAT" = "xbuiltin" ; then
40136 COND_SHARED_0_WXUSE_EXPAT_BUILTIN=""
40137 fi
40138
40139 COND_SHARED_0_WXUSE_ODBC_BUILTIN="#"
40140 if test "x$SHARED" = "x0" -a "x$wxUSE_ODBC" = "xbuiltin" ; then
40141 COND_SHARED_0_WXUSE_ODBC_BUILTIN=""
40142 fi
40143
40144 COND_SHARED_0_WXUSE_REGEX_BUILTIN="#"
40145 if test "x$SHARED" = "x0" -a "x$wxUSE_REGEX" = "xbuiltin" ; then
40146 COND_SHARED_0_WXUSE_REGEX_BUILTIN=""
40147 fi
40148
40149 COND_SHARED_0_WXUSE_ZLIB_BUILTIN="#"
40150 if test "x$SHARED" = "x0" -a "x$wxUSE_ZLIB" = "xbuiltin" ; then
40151 COND_SHARED_0_WXUSE_ZLIB_BUILTIN=""
40152 fi
40153
40154 COND_SHARED_1="#"
40155 if test "x$SHARED" = "x1" ; then
40156 COND_SHARED_1=""
40157 fi
40158
40159 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1="#"
40160 if test "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
40161 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1=""
40162 fi
40163
a30f955f
VS
40164 COND_TOOLKIT_="#"
40165 if test "x$TOOLKIT" = "x" ; then
40166 COND_TOOLKIT_=""
40167 fi
40168
a848cd7e
SC
40169 COND_TOOLKIT_COCOA="#"
40170 if test "x$TOOLKIT" = "xCOCOA" ; then
40171 COND_TOOLKIT_COCOA=""
40172 fi
40173
a49baeab
DE
40174 COND_TOOLKIT_COCOA_USE_GUI_1="#"
40175 if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" ; then
40176 COND_TOOLKIT_COCOA_USE_GUI_1=""
40177 fi
40178
a848cd7e
SC
40179 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0="#"
40180 if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
40181 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0=""
40182 fi
40183
40184 COND_TOOLKIT_GTK="#"
40185 if test "x$TOOLKIT" = "xGTK" ; then
40186 COND_TOOLKIT_GTK=""
40187 fi
40188
40189 COND_TOOLKIT_GTK_USE_GUI_1="#"
40190 if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" ; then
40191 COND_TOOLKIT_GTK_USE_GUI_1=""
40192 fi
40193
40194 COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0="#"
40195 if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
40196 COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0=""
40197 fi
40198
40199 COND_TOOLKIT_MAC="#"
40200 if test "x$TOOLKIT" = "xMAC" ; then
40201 COND_TOOLKIT_MAC=""
40202 fi
40203
40204 COND_TOOLKIT_MAC_USE_GUI_1="#"
40205 if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" ; then
40206 COND_TOOLKIT_MAC_USE_GUI_1=""
40207 fi
40208
40209 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="#"
40210 if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
40211 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0=""
40212 fi
40213
40214 COND_TOOLKIT_MGL="#"
40215 if test "x$TOOLKIT" = "xMGL" ; then
40216 COND_TOOLKIT_MGL=""
40217 fi
40218
40219 COND_TOOLKIT_MGL_USE_GUI_1="#"
40220 if test "x$TOOLKIT" = "xMGL" -a "x$USE_GUI" = "x1" ; then
40221 COND_TOOLKIT_MGL_USE_GUI_1=""
40222 fi
40223
40224 COND_TOOLKIT_MOTIF="#"
40225 if test "x$TOOLKIT" = "xMOTIF" ; then
40226 COND_TOOLKIT_MOTIF=""
40227 fi
40228
40229 COND_TOOLKIT_MOTIF_USE_GUI_1="#"
40230 if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" ; then
40231 COND_TOOLKIT_MOTIF_USE_GUI_1=""
40232 fi
40233
40234 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0="#"
40235 if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
40236 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0=""
40237 fi
40238
40239 COND_TOOLKIT_MSW="#"
40240 if test "x$TOOLKIT" = "xMSW" ; then
40241 COND_TOOLKIT_MSW=""
40242 fi
40243
40244 COND_TOOLKIT_MSW_USE_GUI_1="#"
40245 if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" ; then
40246 COND_TOOLKIT_MSW_USE_GUI_1=""
40247 fi
40248
40249 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0="#"
40250 if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
40251 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0=""
40252 fi
40253
40254 COND_TOOLKIT_PM="#"
40255 if test "x$TOOLKIT" = "xPM" ; then
40256 COND_TOOLKIT_PM=""
40257 fi
40258
40259 COND_TOOLKIT_PM_USE_GUI_1="#"
40260 if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" ; then
40261 COND_TOOLKIT_PM_USE_GUI_1=""
40262 fi
40263
40264 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0="#"
40265 if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
40266 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0=""
40267 fi
40268
3fd9c298
DE
40269 COND_TOOLKIT_WINCE="#"
40270 if test "x$TOOLKIT" = "xWINCE" ; then
40271 COND_TOOLKIT_WINCE=""
40272 fi
40273
40274 COND_TOOLKIT_WINCE_USE_GUI_1="#"
40275 if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" ; then
40276 COND_TOOLKIT_WINCE_USE_GUI_1=""
40277 fi
40278
40279 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0="#"
40280 if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
40281 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0=""
40282 fi
40283
a848cd7e
SC
40284 COND_TOOLKIT_X11="#"
40285 if test "x$TOOLKIT" = "xX11" ; then
40286 COND_TOOLKIT_X11=""
40287 fi
40288
40289 COND_TOOLKIT_X11_USE_GUI_1="#"
40290 if test "x$TOOLKIT" = "xX11" -a "x$USE_GUI" = "x1" ; then
40291 COND_TOOLKIT_X11_USE_GUI_1=""
40292 fi
40293
40294 COND_UNICODE_1="#"
40295 if test "x$UNICODE" = "x1" ; then
40296 COND_UNICODE_1=""
40297 fi
40298
40299 COND_USE_EXCEPTIONS_0="#"
40300 if test "x$USE_EXCEPTIONS" = "x0" ; then
40301 COND_USE_EXCEPTIONS_0=""
40302 fi
40303
40304 COND_USE_EXCEPTIONS_1="#"
40305 if test "x$USE_EXCEPTIONS" = "x1" ; then
40306 COND_USE_EXCEPTIONS_1=""
40307 fi
40308
40309 COND_USE_GUI_0="#"
40310 if test "x$USE_GUI" = "x0" ; then
40311 COND_USE_GUI_0=""
40312 fi
40313
40314 COND_USE_GUI_1="#"
40315 if test "x$USE_GUI" = "x1" ; then
40316 COND_USE_GUI_1=""
40317 fi
40318
40319 COND_USE_GUI_1_WXUNIV_0="#"
40320 if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
40321 COND_USE_GUI_1_WXUNIV_0=""
40322 fi
40323
40324 COND_USE_GUI_1_WXUNIV_1="#"
40325 if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x1" ; then
40326 COND_USE_GUI_1_WXUNIV_1=""
40327 fi
40328
40329 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
40330 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
40331 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
40332 fi
40333
40334 COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
40335 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
40336 COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
40337 fi
40338
40339 COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
40340 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
40341 COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
40342 fi
40343
ceec2216
RL
40344 COND_USE_ODBC_1="#"
40345 if test "x$USE_ODBC" = "x1" ; then
40346 COND_USE_ODBC_1=""
40347 fi
40348
ffa0583f
RL
40349 COND_USE_OPENGL_1="#"
40350 if test "x$USE_OPENGL" = "x1" ; then
40351 COND_USE_OPENGL_1=""
40352 fi
40353
a848cd7e
SC
40354 COND_USE_PLUGINS_0="#"
40355 if test "x$USE_PLUGINS" = "x0" ; then
40356 COND_USE_PLUGINS_0=""
40357 fi
40358
40359 COND_USE_SOSYMLINKS_1="#"
40360 if test "x$USE_SOSYMLINKS" = "x1" ; then
40361 COND_USE_SOSYMLINKS_1=""
40362 fi
40363
40364 COND_USE_SOVERLINUX_1="#"
40365 if test "x$USE_SOVERLINUX" = "x1" ; then
40366 COND_USE_SOVERLINUX_1=""
40367 fi
40368
40369 COND_USE_SOVERSION_0="#"
40370 if test "x$USE_SOVERSION" = "x0" ; then
40371 COND_USE_SOVERSION_0=""
40372 fi
40373
40374 COND_USE_SOVERSOLARIS_1="#"
40375 if test "x$USE_SOVERSOLARIS" = "x1" ; then
40376 COND_USE_SOVERSOLARIS_1=""
40377 fi
40378
a13a7f89
RL
40379 COND_USE_XRC_1="#"
40380 if test "x$USE_XRC" = "x1" ; then
40381 COND_USE_XRC_1=""
40382 fi
40383
a848cd7e
SC
40384 COND_WITH_PLUGIN_SDL_1="#"
40385 if test "x$WITH_PLUGIN_SDL" = "x1" ; then
40386 COND_WITH_PLUGIN_SDL_1=""
40387 fi
40388
a848cd7e
SC
40389 COND_WXUNIV_1="#"
40390 if test "x$WXUNIV" = "x1" ; then
40391 COND_WXUNIV_1=""
40392 fi
40393
40394 COND_WXUSE_EXPAT_BUILTIN="#"
40395 if test "x$wxUSE_EXPAT" = "xbuiltin" ; then
40396 COND_WXUSE_EXPAT_BUILTIN=""
40397 fi
40398
40399 COND_WXUSE_LIBJPEG_BUILTIN="#"
40400 if test "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
40401 COND_WXUSE_LIBJPEG_BUILTIN=""
40402 fi
40403
40404 COND_WXUSE_LIBPNG_BUILTIN="#"
40405 if test "x$wxUSE_LIBPNG" = "xbuiltin" ; then
40406 COND_WXUSE_LIBPNG_BUILTIN=""
40407 fi
40408
40409 COND_WXUSE_LIBTIFF_BUILTIN="#"
40410 if test "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
40411 COND_WXUSE_LIBTIFF_BUILTIN=""
40412 fi
40413
40414 COND_WXUSE_ODBC_BUILTIN="#"
40415 if test "x$wxUSE_ODBC" = "xbuiltin" ; then
40416 COND_WXUSE_ODBC_BUILTIN=""
40417 fi
40418
40419 COND_WXUSE_REGEX_BUILTIN="#"
40420 if test "x$wxUSE_REGEX" = "xbuiltin" ; then
40421 COND_WXUSE_REGEX_BUILTIN=""
40422 fi
40423
40424 COND_WXUSE_ZLIB_BUILTIN="#"
40425 if test "x$wxUSE_ZLIB" = "xbuiltin" ; then
40426 COND_WXUSE_ZLIB_BUILTIN=""
40427 fi
40428
dcc1b6ad
VS
40429 COND_BUILD_DEBUG="#"
40430 if test "x$BUILD" = "xdebug" ; then
40431 COND_BUILD_DEBUG=""
40432 fi
40433
40434 COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT="#"
40435 if test "x$BUILD" = "xdebug" -a "x$DEBUG_FLAG" = "xdefault" ; then
40436 COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT=""
40437 fi
40438
40439 COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT="#"
40440 if test "x$BUILD" = "xdebug" -a "x$DEBUG_INFO" = "xdefault" ; then
40441 COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT=""
40442 fi
40443
40444 COND_BUILD_DEBUG_UNICODE_0="#"
40445 if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x0" ; then
40446 COND_BUILD_DEBUG_UNICODE_0=""
40447 fi
40448
40449 COND_BUILD_DEBUG_UNICODE_1="#"
40450 if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x1" ; then
40451 COND_BUILD_DEBUG_UNICODE_1=""
40452 fi
40453
40454 COND_BUILD_RELEASE="#"
40455 if test "x$BUILD" = "xrelease" ; then
40456 COND_BUILD_RELEASE=""
40457 fi
40458
40459 COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT="#"
40460 if test "x$BUILD" = "xrelease" -a "x$DEBUG_INFO" = "xdefault" ; then
40461 COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT=""
40462 fi
40463
40464 COND_BUILD_RELEASE_UNICODE_0="#"
40465 if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x0" ; then
40466 COND_BUILD_RELEASE_UNICODE_0=""
40467 fi
40468
40469 COND_BUILD_RELEASE_UNICODE_1="#"
40470 if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x1" ; then
40471 COND_BUILD_RELEASE_UNICODE_1=""
40472 fi
40473
40474 COND_DEBUG_FLAG_1="#"
40475 if test "x$DEBUG_FLAG" = "x1" ; then
40476 COND_DEBUG_FLAG_1=""
40477 fi
40478
40479 COND_DEBUG_INFO_0="#"
40480 if test "x$DEBUG_INFO" = "x0" ; then
40481 COND_DEBUG_INFO_0=""
40482 fi
40483
40484 COND_DEBUG_INFO_1="#"
40485 if test "x$DEBUG_INFO" = "x1" ; then
40486 COND_DEBUG_INFO_1=""
40487 fi
40488
40489 COND_DEPS_TRACKING_0="#"
40490 if test "x$DEPS_TRACKING" = "x0" ; then
40491 COND_DEPS_TRACKING_0=""
40492 fi
40493
40494 COND_DEPS_TRACKING_1="#"
40495 if test "x$DEPS_TRACKING" = "x1" ; then
40496 COND_DEPS_TRACKING_1=""
40497 fi
40498
40499 COND_GCC_PCH_1="#"
40500 if test "x$GCC_PCH" = "x1" ; then
40501 COND_GCC_PCH_1=""
40502 fi
40503
40504 COND_MONOLITHIC_0="#"
40505 if test "x$MONOLITHIC" = "x0" ; then
40506 COND_MONOLITHIC_0=""
40507 fi
40508
40509 COND_MONOLITHIC_0_SHARED_0="#"
40510 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" ; then
40511 COND_MONOLITHIC_0_SHARED_0=""
40512 fi
40513
40514 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1="#"
40515 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" ; then
40516 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1=""
40517 fi
40518
40519 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1="#"
40520 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then
40521 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1=""
40522 fi
40523
40524 COND_MONOLITHIC_0_SHARED_0_USE_HTML_1="#"
40525 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_HTML" = "x1" ; then
40526 COND_MONOLITHIC_0_SHARED_0_USE_HTML_1=""
40527 fi
40528
40529 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1="#"
40530 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_ODBC" = "x1" ; then
40531 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1=""
40532 fi
40533
9a8f0513
VS
40534 COND_MONOLITHIC_0_SHARED_0_USE_XRC_1="#"
40535 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_XRC" = "x1" ; then
40536 COND_MONOLITHIC_0_SHARED_0_USE_XRC_1=""
40537 fi
40538
dcc1b6ad
VS
40539 COND_MONOLITHIC_0_SHARED_1="#"
40540 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" ; then
40541 COND_MONOLITHIC_0_SHARED_1=""
40542 fi
40543
40544 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1="#"
40545 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" ; then
40546 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1=""
40547 fi
40548
40549 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1="#"
40550 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then
40551 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1=""
40552 fi
40553
40554 COND_MONOLITHIC_0_SHARED_1_USE_HTML_1="#"
40555 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_HTML" = "x1" ; then
40556 COND_MONOLITHIC_0_SHARED_1_USE_HTML_1=""
40557 fi
40558
40559 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1="#"
40560 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_ODBC" = "x1" ; then
40561 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1=""
40562 fi
40563
9a8f0513
VS
40564 COND_MONOLITHIC_0_SHARED_1_USE_XRC_1="#"
40565 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_XRC" = "x1" ; then
40566 COND_MONOLITHIC_0_SHARED_1_USE_XRC_1=""
40567 fi
40568
dcc1b6ad
VS
40569 COND_MONOLITHIC_0_USE_ODBC_1="#"
40570 if test "x$MONOLITHIC" = "x0" -a "x$USE_ODBC" = "x1" ; then
40571 COND_MONOLITHIC_0_USE_ODBC_1=""
40572 fi
40573
40574 COND_MONOLITHIC_1="#"
40575 if test "x$MONOLITHIC" = "x1" ; then
40576 COND_MONOLITHIC_1=""
40577 fi
40578
40579 COND_MONOLITHIC_1_SHARED_0="#"
40580 if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x0" ; then
40581 COND_MONOLITHIC_1_SHARED_0=""
40582 fi
40583
40584 COND_MONOLITHIC_1_SHARED_1="#"
40585 if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x1" ; then
40586 COND_MONOLITHIC_1_SHARED_1=""
40587 fi
40588
40589 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1="#"
40590 if test "x$OFFICIAL_BUILD" = "x0" -a "x$PLATFORM_WIN32" = "x1" ; then
40591 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1=""
40592 fi
40593
40594 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1="#"
40595 if test "x$OFFICIAL_BUILD" = "x1" -a "x$PLATFORM_WIN32" = "x1" ; then
40596 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1=""
40597 fi
40598
40599 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1="#"
40600 if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERSION" = "x1" ; then
40601 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1=""
40602 fi
40603
40604 COND_PLATFORM_MACOSX_1="#"
40605 if test "x$PLATFORM_MACOSX" = "x1" ; then
40606 COND_PLATFORM_MACOSX_1=""
40607 fi
40608
40609 COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA="#"
40610 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xCOCOA" ; then
40611 COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA=""
40612 fi
40613
40614 COND_PLATFORM_MACOSX_1_TOOLKIT_GTK="#"
40615 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xGTK" ; then
40616 COND_PLATFORM_MACOSX_1_TOOLKIT_GTK=""
40617 fi
40618
40619 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC="#"
40620 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" ; then
40621 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC=""
40622 fi
40623
9a8f0513
VS
40624 COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF="#"
40625 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMOTIF" ; then
40626 COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF=""
40627 fi
40628
40629 COND_PLATFORM_MACOSX_1_TOOLKIT_X11="#"
40630 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xX11" ; then
40631 COND_PLATFORM_MACOSX_1_TOOLKIT_X11=""
40632 fi
40633
dcc1b6ad
VS
40634 COND_PLATFORM_MACOSX_1_USE_GUI_1="#"
40635 if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_GUI" = "x1" ; then
40636 COND_PLATFORM_MACOSX_1_USE_GUI_1=""
40637 fi
40638
40639 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1="#"
40640 if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_SOVERSION" = "x1" ; then
40641 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1=""
40642 fi
40643
40644 COND_PLATFORM_MAC_1="#"
40645 if test "x$PLATFORM_MAC" = "x1" ; then
40646 COND_PLATFORM_MAC_1=""
40647 fi
40648
40649 COND_PLATFORM_OS2_1="#"
40650 if test "x$PLATFORM_OS2" = "x1" ; then
40651 COND_PLATFORM_OS2_1=""
40652 fi
40653
40654 COND_PLATFORM_UNIX_0="#"
40655 if test "x$PLATFORM_UNIX" = "x0" ; then
40656 COND_PLATFORM_UNIX_0=""
40657 fi
40658
40659 COND_PLATFORM_UNIX_1="#"
40660 if test "x$PLATFORM_UNIX" = "x1" ; then
40661 COND_PLATFORM_UNIX_1=""
40662 fi
40663
40664 COND_PLATFORM_UNIX_1_USE_GUI_1="#"
40665 if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_GUI" = "x1" ; then
40666 COND_PLATFORM_UNIX_1_USE_GUI_1=""
40667 fi
40668
40669 COND_PLATFORM_UNIX_1_USE_PLUGINS_0="#"
40670 if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_PLUGINS" = "x0" ; then
40671 COND_PLATFORM_UNIX_1_USE_PLUGINS_0=""
40672 fi
40673
40674 COND_PLATFORM_WIN32_0="#"
40675 if test "x$PLATFORM_WIN32" = "x0" ; then
40676 COND_PLATFORM_WIN32_0=""
40677 fi
40678
40679 COND_PLATFORM_WIN32_1="#"
40680 if test "x$PLATFORM_WIN32" = "x1" ; then
40681 COND_PLATFORM_WIN32_1=""
40682 fi
40683
40684 COND_SHARED_0="#"
40685 if test "x$SHARED" = "x0" ; then
40686 COND_SHARED_0=""
40687 fi
40688
40689 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1="#"
40690 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
40691 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1=""
40692 fi
40693
40694 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
40695 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
40696 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
40697 fi
40698
40699 COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
40700 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
40701 COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
40702 fi
40703
40704 COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
40705 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
40706 COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
40707 fi
40708
40709 COND_SHARED_0_WXUSE_EXPAT_BUILTIN="#"
40710 if test "x$SHARED" = "x0" -a "x$wxUSE_EXPAT" = "xbuiltin" ; then
40711 COND_SHARED_0_WXUSE_EXPAT_BUILTIN=""
40712 fi
40713
40714 COND_SHARED_0_WXUSE_ODBC_BUILTIN="#"
40715 if test "x$SHARED" = "x0" -a "x$wxUSE_ODBC" = "xbuiltin" ; then
40716 COND_SHARED_0_WXUSE_ODBC_BUILTIN=""
40717 fi
40718
40719 COND_SHARED_0_WXUSE_REGEX_BUILTIN="#"
40720 if test "x$SHARED" = "x0" -a "x$wxUSE_REGEX" = "xbuiltin" ; then
40721 COND_SHARED_0_WXUSE_REGEX_BUILTIN=""
40722 fi
40723
40724 COND_SHARED_0_WXUSE_ZLIB_BUILTIN="#"
40725 if test "x$SHARED" = "x0" -a "x$wxUSE_ZLIB" = "xbuiltin" ; then
40726 COND_SHARED_0_WXUSE_ZLIB_BUILTIN=""
40727 fi
40728
40729 COND_SHARED_1="#"
40730 if test "x$SHARED" = "x1" ; then
40731 COND_SHARED_1=""
40732 fi
40733
40734 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1="#"
40735 if test "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
40736 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1=""
40737 fi
40738
40739 COND_TOOLKIT_COCOA="#"
40740 if test "x$TOOLKIT" = "xCOCOA" ; then
40741 COND_TOOLKIT_COCOA=""
40742 fi
40743
40744 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0="#"
40745 if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
40746 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0=""
40747 fi
40748
40749 COND_TOOLKIT_GTK="#"
40750 if test "x$TOOLKIT" = "xGTK" ; then
40751 COND_TOOLKIT_GTK=""
40752 fi
40753
40754 COND_TOOLKIT_GTK_USE_GUI_1="#"
40755 if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" ; then
40756 COND_TOOLKIT_GTK_USE_GUI_1=""
40757 fi
40758
40759 COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0="#"
40760 if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
40761 COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0=""
40762 fi
40763
40764 COND_TOOLKIT_MAC="#"
40765 if test "x$TOOLKIT" = "xMAC" ; then
40766 COND_TOOLKIT_MAC=""
40767 fi
40768
40769 COND_TOOLKIT_MAC_USE_GUI_1="#"
40770 if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" ; then
40771 COND_TOOLKIT_MAC_USE_GUI_1=""
40772 fi
40773
40774 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="#"
40775 if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
40776 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0=""
40777 fi
40778
9a8f0513
VS
40779 COND_TOOLKIT_MAC_WXUNIV_0="#"
40780 if test "x$TOOLKIT" = "xMAC" -a "x$WXUNIV" = "x0" ; then
40781 COND_TOOLKIT_MAC_WXUNIV_0=""
40782 fi
40783
dcc1b6ad
VS
40784 COND_TOOLKIT_MGL="#"
40785 if test "x$TOOLKIT" = "xMGL" ; then
40786 COND_TOOLKIT_MGL=""
40787 fi
40788
40789 COND_TOOLKIT_MGL_USE_GUI_1="#"
40790 if test "x$TOOLKIT" = "xMGL" -a "x$USE_GUI" = "x1" ; then
40791 COND_TOOLKIT_MGL_USE_GUI_1=""
40792 fi
40793
40794 COND_TOOLKIT_MOTIF="#"
40795 if test "x$TOOLKIT" = "xMOTIF" ; then
40796 COND_TOOLKIT_MOTIF=""
40797 fi
40798
40799 COND_TOOLKIT_MOTIF_USE_GUI_1="#"
40800 if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" ; then
40801 COND_TOOLKIT_MOTIF_USE_GUI_1=""
40802 fi
40803
40804 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0="#"
40805 if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
40806 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0=""
40807 fi
40808
40809 COND_TOOLKIT_MSW="#"
40810 if test "x$TOOLKIT" = "xMSW" ; then
40811 COND_TOOLKIT_MSW=""
40812 fi
40813
40814 COND_TOOLKIT_MSW_USE_GUI_1="#"
40815 if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" ; then
40816 COND_TOOLKIT_MSW_USE_GUI_1=""
40817 fi
40818
40819 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0="#"
40820 if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
40821 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0=""
40822 fi
40823
9a8f0513
VS
40824 COND_TOOLKIT_MSW_WXUNIV_0="#"
40825 if test "x$TOOLKIT" = "xMSW" -a "x$WXUNIV" = "x0" ; then
40826 COND_TOOLKIT_MSW_WXUNIV_0=""
40827 fi
40828
dcc1b6ad
VS
40829 COND_TOOLKIT_PM="#"
40830 if test "x$TOOLKIT" = "xPM" ; then
40831 COND_TOOLKIT_PM=""
40832 fi
40833
40834 COND_TOOLKIT_PM_USE_GUI_1="#"
40835 if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" ; then
40836 COND_TOOLKIT_PM_USE_GUI_1=""
40837 fi
40838
40839 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0="#"
40840 if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
40841 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0=""
40842 fi
40843
9a8f0513
VS
40844 COND_TOOLKIT_PM_WXUNIV_0="#"
40845 if test "x$TOOLKIT" = "xPM" -a "x$WXUNIV" = "x0" ; then
40846 COND_TOOLKIT_PM_WXUNIV_0=""
40847 fi
40848
dcc1b6ad
VS
40849 COND_TOOLKIT_WINCE="#"
40850 if test "x$TOOLKIT" = "xWINCE" ; then
40851 COND_TOOLKIT_WINCE=""
40852 fi
40853
40854 COND_TOOLKIT_WINCE_USE_GUI_1="#"
40855 if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" ; then
40856 COND_TOOLKIT_WINCE_USE_GUI_1=""
40857 fi
40858
40859 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0="#"
40860 if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
40861 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0=""
40862 fi
40863
40864 COND_TOOLKIT_X11="#"
40865 if test "x$TOOLKIT" = "xX11" ; then
40866 COND_TOOLKIT_X11=""
40867 fi
40868
40869 COND_TOOLKIT_X11_USE_GUI_1="#"
40870 if test "x$TOOLKIT" = "xX11" -a "x$USE_GUI" = "x1" ; then
40871 COND_TOOLKIT_X11_USE_GUI_1=""
40872 fi
40873
40874 COND_UNICODE_1="#"
40875 if test "x$UNICODE" = "x1" ; then
40876 COND_UNICODE_1=""
40877 fi
40878
40879 COND_USE_EXCEPTIONS_0="#"
40880 if test "x$USE_EXCEPTIONS" = "x0" ; then
40881 COND_USE_EXCEPTIONS_0=""
40882 fi
40883
40884 COND_USE_EXCEPTIONS_1="#"
40885 if test "x$USE_EXCEPTIONS" = "x1" ; then
40886 COND_USE_EXCEPTIONS_1=""
40887 fi
40888
40889 COND_USE_GUI_0="#"
40890 if test "x$USE_GUI" = "x0" ; then
40891 COND_USE_GUI_0=""
40892 fi
40893
40894 COND_USE_GUI_1="#"
40895 if test "x$USE_GUI" = "x1" ; then
40896 COND_USE_GUI_1=""
40897 fi
40898
40899 COND_USE_GUI_1_WXUNIV_0="#"
40900 if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
40901 COND_USE_GUI_1_WXUNIV_0=""
40902 fi
40903
40904 COND_USE_GUI_1_WXUNIV_1="#"
40905 if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x1" ; then
40906 COND_USE_GUI_1_WXUNIV_1=""
40907 fi
40908
40909 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
40910 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
40911 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
40912 fi
40913
40914 COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
40915 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
40916 COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
40917 fi
40918
40919 COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
40920 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
40921 COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
40922 fi
40923
40924 COND_USE_ODBC_1="#"
40925 if test "x$USE_ODBC" = "x1" ; then
40926 COND_USE_ODBC_1=""
40927 fi
40928
40929 COND_USE_PLUGINS_0="#"
40930 if test "x$USE_PLUGINS" = "x0" ; then
40931 COND_USE_PLUGINS_0=""
40932 fi
40933
40934 COND_USE_SOSYMLINKS_1="#"
40935 if test "x$USE_SOSYMLINKS" = "x1" ; then
40936 COND_USE_SOSYMLINKS_1=""
40937 fi
40938
40939 COND_USE_SOVERLINUX_1="#"
40940 if test "x$USE_SOVERLINUX" = "x1" ; then
40941 COND_USE_SOVERLINUX_1=""
40942 fi
40943
40944 COND_USE_SOVERSION_0="#"
40945 if test "x$USE_SOVERSION" = "x0" ; then
40946 COND_USE_SOVERSION_0=""
40947 fi
40948
40949 COND_USE_SOVERSOLARIS_1="#"
40950 if test "x$USE_SOVERSOLARIS" = "x1" ; then
40951 COND_USE_SOVERSOLARIS_1=""
40952 fi
40953
40954 COND_WITH_PLUGIN_SDL_1="#"
40955 if test "x$WITH_PLUGIN_SDL" = "x1" ; then
40956 COND_WITH_PLUGIN_SDL_1=""
40957 fi
40958
40959 COND_WXUNIV_1="#"
40960 if test "x$WXUNIV" = "x1" ; then
40961 COND_WXUNIV_1=""
40962 fi
40963
40964 COND_WXUSE_EXPAT_BUILTIN="#"
40965 if test "x$wxUSE_EXPAT" = "xbuiltin" ; then
40966 COND_WXUSE_EXPAT_BUILTIN=""
40967 fi
40968
40969 COND_WXUSE_LIBJPEG_BUILTIN="#"
40970 if test "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
40971 COND_WXUSE_LIBJPEG_BUILTIN=""
40972 fi
40973
40974 COND_WXUSE_LIBPNG_BUILTIN="#"
40975 if test "x$wxUSE_LIBPNG" = "xbuiltin" ; then
40976 COND_WXUSE_LIBPNG_BUILTIN=""
40977 fi
40978
40979 COND_WXUSE_LIBTIFF_BUILTIN="#"
40980 if test "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
40981 COND_WXUSE_LIBTIFF_BUILTIN=""
40982 fi
40983
40984 COND_WXUSE_ODBC_BUILTIN="#"
40985 if test "x$wxUSE_ODBC" = "xbuiltin" ; then
40986 COND_WXUSE_ODBC_BUILTIN=""
40987 fi
40988
40989 COND_WXUSE_REGEX_BUILTIN="#"
40990 if test "x$wxUSE_REGEX" = "xbuiltin" ; then
40991 COND_WXUSE_REGEX_BUILTIN=""
40992 fi
40993
40994 COND_WXUSE_ZLIB_BUILTIN="#"
40995 if test "x$wxUSE_ZLIB" = "xbuiltin" ; then
40996 COND_WXUSE_ZLIB_BUILTIN=""
40997 fi
40998
a848cd7e
SC
40999
41000
2057db16
VS
41001 if test "$BAKEFILE_BAKEFILE_M4_VERSION" != "$BAKEFILE_AUTOCONF_INC_M4_VERSION" ; then
41002 { { 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
41003echo "$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;}
41004 { (exit 1); exit 1; }; }
41005 fi
41006
a848cd7e 41007
ceec2216
RL
41008if test "$wxUSE_SHARED" = "yes"; then
41009
41010 sanitised_bakefile_mess=`echo "$SHARED_LD_CXX" | tr -d '()'`
41011 EXE_LINKER=`eval echo "$sanitised_bakefile_mess"`
41012
41013else
41014
41015 EXE_LINKER="$CXX -o"
41016
41017fi
a848cd7e 41018
74b84332 41019GCC_PRAGMA_FLAGS=""
a848cd7e 41020if test $GCC_PCH = 1 ; then
74b84332 41021 GCC_PRAGMA_FLAGS="-DWX_PRECOMP -DNO_GCC_PRAGMA"
a848cd7e
SC
41022else
41023 case "${host}" in
41024 powerpc-*-darwin* )
74b84332 41025 GCC_PRAGMA_FLAGS="-DNO_GCC_PRAGMA"
a848cd7e 41026 ;;
bea8e651 41027 *-*-mingw32* )
1f344abf
VS
41028 if test "$wxUSE_STL" = "yes" -o \
41029 "$wxUSE_NO_EXCEPTIONS" != "yes" -o \
41030 "$wxUSE_NO_RTTI" != "yes"; then
41031 echo "$as_me:$LINENO: checking if this MinGW version needs -DNO_GCC_PRAGMA" >&5
41032echo $ECHO_N "checking if this MinGW version needs -DNO_GCC_PRAGMA... $ECHO_C" >&6
bea8e651
MB
41033 cat >conftest.$ac_ext <<_ACEOF
41034/* confdefs.h. */
41035_ACEOF
41036cat confdefs.h >>conftest.$ac_ext
41037cat >>conftest.$ac_ext <<_ACEOF
41038/* end confdefs.h. */
41039
41040int
41041main ()
41042{
1f344abf 41043#if !(__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 2))
bea8e651
MB
41044 #error "Not GCC 3.2 or greater"
41045 #endif
41046
41047 ;
41048 return 0;
41049}
41050_ACEOF
41051rm -f conftest.$ac_objext
41052if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 41053 (eval $ac_compile) 2>conftest.er1
bea8e651 41054 ac_status=$?
ac1cb8d3
VS
41055 grep -v '^ *+' conftest.er1 >conftest.err
41056 rm -f conftest.er1
41057 cat conftest.err >&5
bea8e651
MB
41058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41059 (exit $ac_status); } &&
ffa0583f 41060 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
41061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41062 (eval $ac_try) 2>&5
41063 ac_status=$?
41064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41065 (exit $ac_status); }; } &&
41066 { ac_try='test -s conftest.$ac_objext'
bea8e651
MB
41067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41068 (eval $ac_try) 2>&5
41069 ac_status=$?
41070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41071 (exit $ac_status); }; }; then
74b84332 41072 GCC_PRAGMA_FLAGS="-DNO_GCC_PRAGMA"
bea8e651
MB
41073 echo "$as_me:$LINENO: result: yes" >&5
41074echo "${ECHO_T}yes" >&6
41075else
41076 echo "$as_me: failed program was:" >&5
41077sed 's/^/| /' conftest.$ac_ext >&5
41078
41079echo "$as_me:$LINENO: result: no" >&5
41080echo "${ECHO_T}no" >&6
41081fi
ac1cb8d3 41082rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bea8e651
MB
41083 fi
41084 ;;
a848cd7e
SC
41085 esac
41086fi
74b84332 41087CPPFLAGS="$GCC_PRAGMA_FLAGS $CPPFLAGS"
a848cd7e
SC
41088
41089
41090SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`"
41091
41092
41093
41094
41095
41096
41097
41098
41099
41100
41101
41102
41103
41104
41105
41106
41107
41108
41109
41110
41111
41112
41113
41114
41115
41116
41117
41118
41119
41120
41121
41122
41123
41124
41125
41126
41127
41128
41129
41130
41131
41132
a848cd7e
SC
41133
41134
41135
41136
41137
41138
41139
41140
41141
41142
41143
41144
41145
41146
41147
41148
41149
41150
74b84332 41151
a848cd7e
SC
41152
41153
41154echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
41155echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
ac1cb8d3 41156set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
a848cd7e
SC
41157if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
41158 echo $ECHO_N "(cached) $ECHO_C" >&6
41159else
41160 cat >conftest.make <<\_ACEOF
41161all:
41162 @echo 'ac_maketemp="$(MAKE)"'
41163_ACEOF
41164# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
41165eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
41166if test -n "$ac_maketemp"; then
41167 eval ac_cv_prog_make_${ac_make}_set=yes
41168else
41169 eval ac_cv_prog_make_${ac_make}_set=no
41170fi
41171rm -f conftest.make
41172fi
41173if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
41174 echo "$as_me:$LINENO: result: yes" >&5
41175echo "${ECHO_T}yes" >&6
41176 SET_MAKE=
41177else
41178 echo "$as_me:$LINENO: result: no" >&5
41179echo "${ECHO_T}no" >&6
41180 SET_MAKE="MAKE=${MAKE-make}"
41181fi
41182
41183
a848cd7e 41184
ceec2216
RL
41185 ac_config_headers="$ac_config_headers lib/wx/include/${TOOLCHAIN_FULLNAME}/wx/setup.h:setup.h.in"
41186
a848cd7e 41187
ceec2216 41188 ac_config_files="$ac_config_files lib/wx/config/${TOOLCHAIN_FULLNAME}:wx-config.in"
a848cd7e 41189
a848cd7e 41190
ceec2216 41191 ac_config_files="$ac_config_files lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}:wx-config-inplace.in"
a848cd7e 41192
ceec2216
RL
41193
41194 ac_config_files="$ac_config_files version-script Makefile"
41195
41196
41197 ac_config_commands="$ac_config_commands wx-config
41198 "
a848cd7e
SC
41199
41200
9103d280
RL
41201
41202
a848cd7e
SC
41203if test "$wxUSE_GUI" = "yes"; then
41204 SUBDIRS="samples demos utils contrib"
41205else SUBDIRS="samples utils"
41206fi
41207
41208
41209
41210# Check whether --with-cppunit-prefix or --without-cppunit-prefix was given.
41211if test "${with_cppunit_prefix+set}" = set; then
41212 withval="$with_cppunit_prefix"
41213 cppunit_config_prefix="$withval"
41214else
41215 cppunit_config_prefix=""
41216fi;
41217
41218# Check whether --with-cppunit-exec-prefix or --without-cppunit-exec-prefix was given.
41219if test "${with_cppunit_exec_prefix+set}" = set; then
41220 withval="$with_cppunit_exec_prefix"
41221 cppunit_config_exec_prefix="$withval"
41222else
41223 cppunit_config_exec_prefix=""
41224fi;
41225
41226 if test x$cppunit_config_exec_prefix != x ; then
41227 cppunit_config_args="$cppunit_config_args --exec-prefix=$cppunit_config_exec_prefix"
41228 if test x${CPPUNIT_CONFIG+set} != xset ; then
41229 CPPUNIT_CONFIG=$cppunit_config_exec_prefix/bin/cppunit-config
41230 fi
41231 fi
41232 if test x$cppunit_config_prefix != x ; then
41233 cppunit_config_args="$cppunit_config_args --prefix=$cppunit_config_prefix"
41234 if test x${CPPUNIT_CONFIG+set} != xset ; then
41235 CPPUNIT_CONFIG=$cppunit_config_prefix/bin/cppunit-config
41236 fi
41237 fi
41238
41239 # Extract the first word of "cppunit-config", so it can be a program name with args.
41240set dummy cppunit-config; ac_word=$2
41241echo "$as_me:$LINENO: checking for $ac_word" >&5
41242echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
41243if test "${ac_cv_path_CPPUNIT_CONFIG+set}" = set; then
41244 echo $ECHO_N "(cached) $ECHO_C" >&6
41245else
41246 case $CPPUNIT_CONFIG in
41247 [\\/]* | ?:[\\/]*)
41248 ac_cv_path_CPPUNIT_CONFIG="$CPPUNIT_CONFIG" # Let the user override the test with a path.
41249 ;;
41250 *)
41251 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
41252for as_dir in $PATH
41253do
41254 IFS=$as_save_IFS
41255 test -z "$as_dir" && as_dir=.
41256 for ac_exec_ext in '' $ac_executable_extensions; do
41257 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
41258 ac_cv_path_CPPUNIT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
41259 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
41260 break 2
41261 fi
41262done
41263done
41264
41265 test -z "$ac_cv_path_CPPUNIT_CONFIG" && ac_cv_path_CPPUNIT_CONFIG="no"
41266 ;;
41267esac
41268fi
41269CPPUNIT_CONFIG=$ac_cv_path_CPPUNIT_CONFIG
41270
41271if test -n "$CPPUNIT_CONFIG"; then
41272 echo "$as_me:$LINENO: result: $CPPUNIT_CONFIG" >&5
41273echo "${ECHO_T}$CPPUNIT_CONFIG" >&6
41274else
41275 echo "$as_me:$LINENO: result: no" >&5
41276echo "${ECHO_T}no" >&6
41277fi
41278
41279 cppunit_version_min=1.8.0
41280
41281 echo "$as_me:$LINENO: checking for Cppunit - version >= $cppunit_version_min" >&5
41282echo $ECHO_N "checking for Cppunit - version >= $cppunit_version_min... $ECHO_C" >&6
41283 no_cppunit=""
41284 if test "$CPPUNIT_CONFIG" = "no" ; then
41285 no_cppunit=yes
41286 else
41287 CPPUNIT_CFLAGS=`$CPPUNIT_CONFIG --cflags`
41288 CPPUNIT_LIBS=`$CPPUNIT_CONFIG --libs`
41289 cppunit_version=`$CPPUNIT_CONFIG --version`
41290
41291 cppunit_major_version=`echo $cppunit_version | \
41292 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
41293 cppunit_minor_version=`echo $cppunit_version | \
41294 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
41295 cppunit_micro_version=`echo $cppunit_version | \
41296 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
41297
41298 cppunit_major_min=`echo $cppunit_version_min | \
41299 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
41300 cppunit_minor_min=`echo $cppunit_version_min | \
41301 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
41302 cppunit_micro_min=`echo $cppunit_version_min | \
41303 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
41304
41305 cppunit_version_proper=`expr \
41306 $cppunit_major_version \> $cppunit_major_min \| \
41307 $cppunit_major_version \= $cppunit_major_min \& \
41308 $cppunit_minor_version \> $cppunit_minor_min \| \
41309 $cppunit_major_version \= $cppunit_major_min \& \
41310 $cppunit_minor_version \= $cppunit_minor_min \& \
41311 $cppunit_micro_version \>= $cppunit_micro_min `
41312
41313 if test "$cppunit_version_proper" = "1" ; then
41314 echo "$as_me:$LINENO: result: $cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&5
41315echo "${ECHO_T}$cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&6
41316 else
41317 echo "$as_me:$LINENO: result: no" >&5
41318echo "${ECHO_T}no" >&6
41319 no_cppunit=yes
41320 fi
41321 fi
41322
41323 if test "x$no_cppunit" = x ; then
c2218763 41324 SUBDIRS="$SUBDIRS tests"
a848cd7e
SC
41325 else
41326 CPPUNIT_CFLAGS=""
41327 CPPUNIT_LIBS=""
c2218763 41328 :
a848cd7e
SC
41329 fi
41330
41331
41332
41333
41334
41335for subdir in `echo $SUBDIRS`; do
41336 if test -d ${srcdir}/${subdir} ; then
41337 if test "$wxUSE_GUI" = "yes"; then
41338 if test ${subdir} = "samples"; then
41339 makefiles="samples/Makefile.in $makefiles"
41340 for sample in `echo $SAMPLES_SUBDIRS`; do
41341 if test -d $srcdir/samples/$sample; then
41342 makefiles="samples/$sample/Makefile.in $makefiles"
41343 fi
41344 done
41345 else makefiles=`(cd $srcdir ; find $subdir -name Makefile.in)`
41346 fi
41347 else if test ${subdir} = "samples"; then
41348 makefiles="samples/Makefile.in samples/console/Makefile.in"
41349 elif test ${subdir} = "utils"; then
6537ccf8
VS
41350 makefiles=""
41351 for util in HelpGen tex2rtf ; do
41352 if test -d $srcdir/utils/$util ; then
41353 makefiles="utils/$util/Makefile.in \
41354 utils/$util/src/Makefile.in \
41355 $makefiles"
41356 fi
41357 done
a848cd7e
SC
41358 else makefiles=`(cd $srcdir ; find $subdir -name Makefile.in)`
41359 fi
41360 fi
41361
41362 for mkin in $makefiles ; do
41363 mk=`echo $mkin | sed 's/Makefile\.in/Makefile/g'`
41364 ac_config_files="$ac_config_files $mk"
41365
41366 done
41367 fi
41368done
41369
41370
41371cat >confcache <<\_ACEOF
41372# This file is a shell script that caches the results of configure
41373# tests run on this system so they can be shared between configure
41374# scripts and configure runs, see configure's option --config-cache.
41375# It is not useful on other systems. If it contains results you don't
41376# want to keep, you may remove or edit it.
41377#
41378# config.status only pays attention to the cache file if you give it
41379# the --recheck option to rerun configure.
41380#
41381# `ac_cv_env_foo' variables (set or unset) will be overridden when
41382# loading this file, other *unset* `ac_cv_foo' will be assigned the
41383# following values.
41384
41385_ACEOF
41386
41387# The following way of writing the cache mishandles newlines in values,
41388# but we know of no workaround that is simple, portable, and efficient.
41389# So, don't put newlines in cache variables' values.
41390# Ultrix sh set writes to stderr and can't be redirected directly,
41391# and sets the high bit in the cache file unless we assign to the vars.
41392{
41393 (set) 2>&1 |
41394 case `(ac_space=' '; set | grep ac_space) 2>&1` in
41395 *ac_space=\ *)
41396 # `set' does not quote correctly, so add quotes (double-quote
41397 # substitution turns \\\\ into \\, and sed turns \\ into \).
41398 sed -n \
ac1cb8d3
VS
41399 "s/'/'\\\\''/g;
41400 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a848cd7e
SC
41401 ;;
41402 *)
41403 # `set' quotes correctly as required by POSIX, so do not add quotes.
41404 sed -n \
ac1cb8d3 41405 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
41406 ;;
41407 esac;
41408} |
41409 sed '
41410 t clear
41411 : clear
41412 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
41413 t end
41414 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
41415 : end' >>confcache
41416if diff $cache_file confcache >/dev/null 2>&1; then :; else
41417 if test -w $cache_file; then
41418 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
41419 cat confcache >$cache_file
41420 else
41421 echo "not updating unwritable cache $cache_file"
41422 fi
41423fi
41424rm -f confcache
41425
41426test "x$prefix" = xNONE && prefix=$ac_default_prefix
41427# Let make expand exec_prefix.
41428test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
41429
41430# VPATH may cause trouble with some makes, so we remove $(srcdir),
41431# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
41432# trailing colons and then remove the whole line if VPATH becomes empty
41433# (actually we leave an empty line to preserve line numbers).
41434if test "x$srcdir" = x.; then
ac1cb8d3 41435 ac_vpsub='/^[ ]*VPATH[ ]*=/{
a848cd7e
SC
41436s/:*\$(srcdir):*/:/;
41437s/:*\${srcdir}:*/:/;
41438s/:*@srcdir@:*/:/;
ac1cb8d3 41439s/^\([^=]*=[ ]*\):*/\1/;
a848cd7e 41440s/:*$//;
ac1cb8d3 41441s/^[^=]*=[ ]*$//;
a848cd7e
SC
41442}'
41443fi
41444
41445DEFS=-DHAVE_CONFIG_H
41446
41447ac_libobjs=
41448ac_ltlibobjs=
41449for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
41450 # 1. Remove the extension, and $U if already installed.
41451 ac_i=`echo "$ac_i" |
ac1cb8d3 41452 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
a848cd7e
SC
41453 # 2. Add them.
41454 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
41455 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
41456done
41457LIBOBJS=$ac_libobjs
41458
41459LTLIBOBJS=$ac_ltlibobjs
41460
41461
41462
41463: ${CONFIG_STATUS=./config.status}
41464ac_clean_files_save=$ac_clean_files
41465ac_clean_files="$ac_clean_files $CONFIG_STATUS"
41466{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
41467echo "$as_me: creating $CONFIG_STATUS" >&6;}
41468cat >$CONFIG_STATUS <<_ACEOF
41469#! $SHELL
41470# Generated by $as_me.
41471# Run this file to recreate the current configuration.
41472# Compiler output produced by configure, useful for debugging
41473# configure, is in config.log if it exists.
41474
41475debug=false
41476ac_cs_recheck=false
41477ac_cs_silent=false
41478SHELL=\${CONFIG_SHELL-$SHELL}
41479_ACEOF
41480
41481cat >>$CONFIG_STATUS <<\_ACEOF
41482## --------------------- ##
41483## M4sh Initialization. ##
41484## --------------------- ##
41485
41486# Be Bourne compatible
41487if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
41488 emulate sh
41489 NULLCMD=:
41490 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
41491 # is contrary to our usage. Disable this feature.
41492 alias -g '${1+"$@"}'='"$@"'
41493elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
41494 set -o posix
41495fi
ac1cb8d3 41496DUALCASE=1; export DUALCASE # for MKS sh
a848cd7e
SC
41497
41498# Support unset when possible.
ac1cb8d3 41499if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
a848cd7e
SC
41500 as_unset=unset
41501else
41502 as_unset=false
41503fi
41504
41505
41506# Work around bugs in pre-3.0 UWIN ksh.
41507$as_unset ENV MAIL MAILPATH
41508PS1='$ '
41509PS2='> '
41510PS4='+ '
41511
41512# NLS nuisances.
41513for as_var in \
41514 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41515 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
41516 LC_TELEPHONE LC_TIME
41517do
ac1cb8d3 41518 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
a848cd7e
SC
41519 eval $as_var=C; export $as_var
41520 else
41521 $as_unset $as_var
41522 fi
41523done
41524
41525# Required to use basename.
41526if expr a : '\(a\)' >/dev/null 2>&1; then
41527 as_expr=expr
41528else
41529 as_expr=false
41530fi
41531
41532if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
41533 as_basename=basename
41534else
41535 as_basename=false
41536fi
41537
41538
41539# Name of the executable.
41540as_me=`$as_basename "$0" ||
41541$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
41542 X"$0" : 'X\(//\)$' \| \
41543 X"$0" : 'X\(/\)$' \| \
41544 . : '\(.\)' 2>/dev/null ||
41545echo X/"$0" |
41546 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
41547 /^X\/\(\/\/\)$/{ s//\1/; q; }
41548 /^X\/\(\/\).*/{ s//\1/; q; }
41549 s/.*/./; q'`
41550
41551
41552# PATH needs CR, and LINENO needs CR and PATH.
41553# Avoid depending upon Character Ranges.
41554as_cr_letters='abcdefghijklmnopqrstuvwxyz'
41555as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
41556as_cr_Letters=$as_cr_letters$as_cr_LETTERS
41557as_cr_digits='0123456789'
41558as_cr_alnum=$as_cr_Letters$as_cr_digits
41559
41560# The user is always right.
41561if test "${PATH_SEPARATOR+set}" != set; then
41562 echo "#! /bin/sh" >conf$$.sh
41563 echo "exit 0" >>conf$$.sh
41564 chmod +x conf$$.sh
41565 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
41566 PATH_SEPARATOR=';'
41567 else
41568 PATH_SEPARATOR=:
41569 fi
41570 rm -f conf$$.sh
41571fi
41572
41573
41574 as_lineno_1=$LINENO
41575 as_lineno_2=$LINENO
41576 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
41577 test "x$as_lineno_1" != "x$as_lineno_2" &&
41578 test "x$as_lineno_3" = "x$as_lineno_2" || {
41579 # Find who we are. Look in the path if we contain no path at all
41580 # relative or not.
41581 case $0 in
41582 *[\\/]* ) as_myself=$0 ;;
41583 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
41584for as_dir in $PATH
41585do
41586 IFS=$as_save_IFS
41587 test -z "$as_dir" && as_dir=.
41588 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
41589done
41590
41591 ;;
41592 esac
41593 # We did not find ourselves, most probably we were run as `sh COMMAND'
41594 # in which case we are not to be found in the path.
41595 if test "x$as_myself" = x; then
41596 as_myself=$0
41597 fi
41598 if test ! -f "$as_myself"; then
41599 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
41600echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
41601 { (exit 1); exit 1; }; }
41602 fi
41603 case $CONFIG_SHELL in
41604 '')
41605 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
41606for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
41607do
41608 IFS=$as_save_IFS
41609 test -z "$as_dir" && as_dir=.
41610 for as_base in sh bash ksh sh5; do
41611 case $as_dir in
41612 /*)
41613 if ("$as_dir/$as_base" -c '
41614 as_lineno_1=$LINENO
41615 as_lineno_2=$LINENO
41616 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
41617 test "x$as_lineno_1" != "x$as_lineno_2" &&
41618 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
41619 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
41620 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
41621 CONFIG_SHELL=$as_dir/$as_base
41622 export CONFIG_SHELL
41623 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
41624 fi;;
41625 esac
41626 done
41627done
41628;;
41629 esac
41630
41631 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
41632 # uniformly replaced by the line number. The first 'sed' inserts a
41633 # line-number line before each line; the second 'sed' does the real
41634 # work. The second script uses 'N' to pair each line-number line
41635 # with the numbered line, and appends trailing '-' during
41636 # substitution so that $LINENO is not a special case at line end.
41637 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
41638 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
41639 sed '=' <$as_myself |
41640 sed '
41641 N
41642 s,$,-,
41643 : loop
41644 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
41645 t loop
41646 s,-$,,
41647 s,^['$as_cr_digits']*\n,,
41648 ' >$as_me.lineno &&
41649 chmod +x $as_me.lineno ||
41650 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
41651echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
41652 { (exit 1); exit 1; }; }
41653
41654 # Don't try to exec as it changes $[0], causing all sort of problems
41655 # (the dirname of $[0] is not the place where we might find the
41656 # original and so on. Autoconf is especially sensible to this).
41657 . ./$as_me.lineno
41658 # Exit status is that of the last command.
41659 exit
41660}
41661
41662
41663case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
41664 *c*,-n*) ECHO_N= ECHO_C='
41665' ECHO_T=' ' ;;
41666 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
41667 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
41668esac
41669
41670if expr a : '\(a\)' >/dev/null 2>&1; then
41671 as_expr=expr
41672else
41673 as_expr=false
41674fi
41675
41676rm -f conf$$ conf$$.exe conf$$.file
41677echo >conf$$.file
41678if ln -s conf$$.file conf$$ 2>/dev/null; then
41679 # We could just check for DJGPP; but this test a) works b) is more generic
41680 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
41681 if test -f conf$$.exe; then
41682 # Don't use ln at all; we don't have any links
41683 as_ln_s='cp -p'
41684 else
41685 as_ln_s='ln -s'
41686 fi
41687elif ln conf$$.file conf$$ 2>/dev/null; then
41688 as_ln_s=ln
41689else
41690 as_ln_s='cp -p'
41691fi
41692rm -f conf$$ conf$$.exe conf$$.file
41693
41694if mkdir -p . 2>/dev/null; then
41695 as_mkdir_p=:
41696else
ac1cb8d3 41697 test -d ./-p && rmdir ./-p
a848cd7e
SC
41698 as_mkdir_p=false
41699fi
41700
41701as_executable_p="test -f"
41702
41703# Sed expression to map a string onto a valid CPP name.
ac1cb8d3 41704as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
a848cd7e
SC
41705
41706# Sed expression to map a string onto a valid variable name.
ac1cb8d3 41707as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
a848cd7e
SC
41708
41709
41710# IFS
41711# We need space, tab and new line, in precisely that order.
41712as_nl='
41713'
41714IFS=" $as_nl"
41715
41716# CDPATH.
41717$as_unset CDPATH
41718
41719exec 6>&1
41720
41721# Open the log real soon, to keep \$[0] and so on meaningful, and to
41722# report actual input values of CONFIG_FILES etc. instead of their
41723# values after options handling. Logging --version etc. is OK.
41724exec 5>>config.log
41725{
41726 echo
41727 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
41728## Running $as_me. ##
41729_ASBOX
41730} >&5
41731cat >&5 <<_CSEOF
41732
7714864e 41733This file was extended by wxWidgets $as_me 2.5.3, which was
ac1cb8d3 41734generated by GNU Autoconf 2.59. Invocation command line was
a848cd7e
SC
41735
41736 CONFIG_FILES = $CONFIG_FILES
41737 CONFIG_HEADERS = $CONFIG_HEADERS
41738 CONFIG_LINKS = $CONFIG_LINKS
41739 CONFIG_COMMANDS = $CONFIG_COMMANDS
41740 $ $0 $@
41741
41742_CSEOF
41743echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
41744echo >&5
41745_ACEOF
41746
41747# Files that config.status was made for.
41748if test -n "$ac_config_files"; then
41749 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
41750fi
41751
41752if test -n "$ac_config_headers"; then
41753 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
41754fi
41755
41756if test -n "$ac_config_links"; then
41757 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
41758fi
41759
41760if test -n "$ac_config_commands"; then
41761 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
41762fi
41763
41764cat >>$CONFIG_STATUS <<\_ACEOF
41765
41766ac_cs_usage="\
41767\`$as_me' instantiates files from templates according to the
41768current configuration.
41769
41770Usage: $0 [OPTIONS] [FILE]...
41771
41772 -h, --help print this help, then exit
41773 -V, --version print version number, then exit
41774 -q, --quiet do not print progress messages
41775 -d, --debug don't remove temporary files
41776 --recheck update $as_me by reconfiguring in the same conditions
41777 --file=FILE[:TEMPLATE]
ac1cb8d3 41778 instantiate the configuration file FILE
a848cd7e 41779 --header=FILE[:TEMPLATE]
ac1cb8d3 41780 instantiate the configuration header FILE
a848cd7e
SC
41781
41782Configuration files:
41783$config_files
41784
41785Configuration headers:
41786$config_headers
41787
41788Configuration commands:
41789$config_commands
41790
41791Report bugs to <bug-autoconf@gnu.org>."
41792_ACEOF
41793
41794cat >>$CONFIG_STATUS <<_ACEOF
41795ac_cs_version="\\
7714864e 41796wxWidgets config.status 2.5.3
ac1cb8d3 41797configured by $0, generated by GNU Autoconf 2.59,
a848cd7e
SC
41798 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
41799
ac1cb8d3 41800Copyright (C) 2003 Free Software Foundation, Inc.
a848cd7e
SC
41801This config.status script is free software; the Free Software Foundation
41802gives unlimited permission to copy, distribute and modify it."
41803srcdir=$srcdir
41804INSTALL="$INSTALL"
41805_ACEOF
41806
41807cat >>$CONFIG_STATUS <<\_ACEOF
41808# If no file are specified by the user, then we need to provide default
41809# value. By we need to know if files were specified by the user.
41810ac_need_defaults=:
41811while test $# != 0
41812do
41813 case $1 in
41814 --*=*)
41815 ac_option=`expr "x$1" : 'x\([^=]*\)='`
41816 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
41817 ac_shift=:
41818 ;;
41819 -*)
41820 ac_option=$1
41821 ac_optarg=$2
41822 ac_shift=shift
41823 ;;
41824 *) # This is not an option, so the user has probably given explicit
41825 # arguments.
41826 ac_option=$1
41827 ac_need_defaults=false;;
41828 esac
41829
41830 case $ac_option in
41831 # Handling of the options.
41832_ACEOF
41833cat >>$CONFIG_STATUS <<\_ACEOF
41834 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
41835 ac_cs_recheck=: ;;
41836 --version | --vers* | -V )
41837 echo "$ac_cs_version"; exit 0 ;;
41838 --he | --h)
41839 # Conflict between --help and --header
41840 { { echo "$as_me:$LINENO: error: ambiguous option: $1
41841Try \`$0 --help' for more information." >&5
41842echo "$as_me: error: ambiguous option: $1
41843Try \`$0 --help' for more information." >&2;}
41844 { (exit 1); exit 1; }; };;
41845 --help | --hel | -h )
41846 echo "$ac_cs_usage"; exit 0 ;;
41847 --debug | --d* | -d )
41848 debug=: ;;
41849 --file | --fil | --fi | --f )
41850 $ac_shift
41851 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
41852 ac_need_defaults=false;;
41853 --header | --heade | --head | --hea )
41854 $ac_shift
41855 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
41856 ac_need_defaults=false;;
41857 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
41858 | -silent | --silent | --silen | --sile | --sil | --si | --s)
41859 ac_cs_silent=: ;;
41860
41861 # This is an error.
41862 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
41863Try \`$0 --help' for more information." >&5
41864echo "$as_me: error: unrecognized option: $1
41865Try \`$0 --help' for more information." >&2;}
41866 { (exit 1); exit 1; }; } ;;
41867
41868 *) ac_config_targets="$ac_config_targets $1" ;;
41869
41870 esac
41871 shift
41872done
41873
41874ac_configure_extra_args=
41875
41876if $ac_cs_silent; then
41877 exec 6>/dev/null
41878 ac_configure_extra_args="$ac_configure_extra_args --silent"
41879fi
41880
41881_ACEOF
41882cat >>$CONFIG_STATUS <<_ACEOF
41883if \$ac_cs_recheck; then
41884 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
41885 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
41886fi
41887
41888_ACEOF
41889
41890cat >>$CONFIG_STATUS <<_ACEOF
41891#
41892# INIT-COMMANDS section.
41893#
41894
ceec2216
RL
41895 TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
41896 TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
41897 TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
41898 LN_S="${LN_S}"
a848cd7e
SC
41899
41900
41901_ACEOF
41902
41903
41904
41905cat >>$CONFIG_STATUS <<\_ACEOF
41906for ac_config_target in $ac_config_targets
41907do
41908 case "$ac_config_target" in
41909 # Handling of arguments.
ceec2216
RL
41910 "lib/wx/config/${TOOLCHAIN_FULLNAME}" ) CONFIG_FILES="$CONFIG_FILES lib/wx/config/${TOOLCHAIN_FULLNAME}:wx-config.in" ;;
41911 "lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}" ) CONFIG_FILES="$CONFIG_FILES lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}:wx-config-inplace.in" ;;
a848cd7e
SC
41912 "version-script" ) CONFIG_FILES="$CONFIG_FILES version-script" ;;
41913 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
41914 "$mk" ) CONFIG_FILES="$CONFIG_FILES $mk" ;;
ceec2216
RL
41915 "wx-config" ) CONFIG_COMMANDS="$CONFIG_COMMANDS wx-config" ;;
41916 "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
41917 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
41918echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
41919 { (exit 1); exit 1; }; };;
41920 esac
41921done
41922
41923# If the user did not use the arguments to specify the items to instantiate,
41924# then the envvar interface is used. Set only those that are not.
41925# We use the long form for the default assignment because of an extremely
41926# bizarre bug on SunOS 4.1.3.
41927if $ac_need_defaults; then
41928 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
41929 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
41930 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
41931fi
41932
41933# Have a temporary directory for convenience. Make it in the build tree
41934# simply because there is no reason to put it here, and in addition,
41935# creating and moving files from /tmp can sometimes cause problems.
41936# Create a temporary directory, and hook for its removal unless debugging.
41937$debug ||
41938{
41939 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
41940 trap '{ (exit 1); exit 1; }' 1 2 13 15
41941}
41942
41943# Create a (secure) tmp directory for tmp files.
41944
41945{
41946 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
41947 test -n "$tmp" && test -d "$tmp"
41948} ||
41949{
41950 tmp=./confstat$$-$RANDOM
41951 (umask 077 && mkdir $tmp)
41952} ||
41953{
41954 echo "$me: cannot create a temporary directory in ." >&2
41955 { (exit 1); exit 1; }
41956}
41957
41958_ACEOF
41959
41960cat >>$CONFIG_STATUS <<_ACEOF
41961
41962#
41963# CONFIG_FILES section.
41964#
41965
41966# No need to generate the scripts if there are no CONFIG_FILES.
41967# This happens for instance when ./config.status config.h
41968if test -n "\$CONFIG_FILES"; then
41969 # Protect against being on the right side of a sed subst in config.status.
41970 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
41971 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
41972s,@SHELL@,$SHELL,;t t
41973s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
41974s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
41975s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
41976s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
41977s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
41978s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
41979s,@exec_prefix@,$exec_prefix,;t t
41980s,@prefix@,$prefix,;t t
41981s,@program_transform_name@,$program_transform_name,;t t
41982s,@bindir@,$bindir,;t t
41983s,@sbindir@,$sbindir,;t t
41984s,@libexecdir@,$libexecdir,;t t
41985s,@datadir@,$datadir,;t t
41986s,@sysconfdir@,$sysconfdir,;t t
41987s,@sharedstatedir@,$sharedstatedir,;t t
41988s,@localstatedir@,$localstatedir,;t t
41989s,@libdir@,$libdir,;t t
41990s,@includedir@,$includedir,;t t
41991s,@oldincludedir@,$oldincludedir,;t t
41992s,@infodir@,$infodir,;t t
41993s,@mandir@,$mandir,;t t
41994s,@build_alias@,$build_alias,;t t
41995s,@host_alias@,$host_alias,;t t
41996s,@target_alias@,$target_alias,;t t
41997s,@DEFS@,$DEFS,;t t
41998s,@ECHO_C@,$ECHO_C,;t t
41999s,@ECHO_N@,$ECHO_N,;t t
42000s,@ECHO_T@,$ECHO_T,;t t
42001s,@LIBS@,$LIBS,;t t
42002s,@build@,$build,;t t
42003s,@build_cpu@,$build_cpu,;t t
42004s,@build_vendor@,$build_vendor,;t t
42005s,@build_os@,$build_os,;t t
42006s,@host@,$host,;t t
42007s,@host_cpu@,$host_cpu,;t t
42008s,@host_vendor@,$host_vendor,;t t
42009s,@host_os@,$host_os,;t t
42010s,@target@,$target,;t t
42011s,@target_cpu@,$target_cpu,;t t
42012s,@target_vendor@,$target_vendor,;t t
42013s,@target_os@,$target_os,;t t
42014s,@CC@,$CC,;t t
42015s,@CFLAGS@,$CFLAGS,;t t
42016s,@LDFLAGS@,$LDFLAGS,;t t
42017s,@CPPFLAGS@,$CPPFLAGS,;t t
42018s,@ac_ct_CC@,$ac_ct_CC,;t t
42019s,@EXEEXT@,$EXEEXT,;t t
42020s,@OBJEXT@,$OBJEXT,;t t
42021s,@CPP@,$CPP,;t t
42022s,@EGREP@,$EGREP,;t t
42023s,@CXX@,$CXX,;t t
42024s,@CXXFLAGS@,$CXXFLAGS,;t t
42025s,@ac_ct_CXX@,$ac_ct_CXX,;t t
42026s,@RANLIB@,$RANLIB,;t t
42027s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
42028s,@AR@,$AR,;t t
42029s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
42030s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
42031s,@INSTALL_DATA@,$INSTALL_DATA,;t t
42032s,@STRIP@,$STRIP,;t t
42033s,@IF_GNU_MAKE@,$IF_GNU_MAKE,;t t
42034s,@LN_S@,$LN_S,;t t
42035s,@CXXCPP@,$CXXCPP,;t t
42036s,@subdirs@,$subdirs,;t t
42037s,@PKG_CONFIG@,$PKG_CONFIG,;t t
42038s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
42039s,@GTK_LIBS@,$GTK_LIBS,;t t
42040s,@GTK_CONFIG@,$GTK_CONFIG,;t t
42041s,@PANGOFT2_CFLAGS@,$PANGOFT2_CFLAGS,;t t
42042s,@PANGOFT2_LIBS@,$PANGOFT2_LIBS,;t t
42043s,@X_CFLAGS@,$X_CFLAGS,;t t
42044s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
42045s,@X_LIBS@,$X_LIBS,;t t
42046s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
42047s,@PANGOX_CFLAGS@,$PANGOX_CFLAGS,;t t
42048s,@PANGOX_LIBS@,$PANGOX_LIBS,;t t
42049s,@PANGOXFT_CFLAGS@,$PANGOXFT_CFLAGS,;t t
42050s,@PANGOXFT_LIBS@,$PANGOXFT_LIBS,;t t
42051s,@RESCOMP@,$RESCOMP,;t t
42052s,@DEREZ@,$DEREZ,;t t
42053s,@SETFILE@,$SETFILE,;t t
42054s,@LIBICONV@,$LIBICONV,;t t
42055s,@EXTRALIBS_ESD@,$EXTRALIBS_ESD,;t t
42056s,@SDL_CONFIG@,$SDL_CONFIG,;t t
42057s,@SDL_CFLAGS@,$SDL_CFLAGS,;t t
42058s,@SDL_LIBS@,$SDL_LIBS,;t t
42059s,@CORE_BASE_LIBS@,$CORE_BASE_LIBS,;t t
42060s,@CORE_GUI_LIBS@,$CORE_GUI_LIBS,;t t
42061s,@wxUSE_ZLIB@,$wxUSE_ZLIB,;t t
42062s,@wxUSE_REGEX@,$wxUSE_REGEX,;t t
42063s,@wxUSE_EXPAT@,$wxUSE_EXPAT,;t t
42064s,@wxUSE_ODBC@,$wxUSE_ODBC,;t t
42065s,@wxUSE_LIBJPEG@,$wxUSE_LIBJPEG,;t t
42066s,@wxUSE_LIBPNG@,$wxUSE_LIBPNG,;t t
42067s,@wxUSE_LIBTIFF@,$wxUSE_LIBTIFF,;t t
42068s,@VENDOR@,$VENDOR,;t t
42069s,@OFFICIAL_BUILD@,$OFFICIAL_BUILD,;t t
ceec2216
RL
42070s,@WX_FLAVOUR@,$WX_FLAVOUR,;t t
42071s,@WX_LIB_FLAVOUR@,$WX_LIB_FLAVOUR,;t t
a848cd7e
SC
42072s,@WXUNIV@,$WXUNIV,;t t
42073s,@MONOLITHIC@,$MONOLITHIC,;t t
42074s,@USE_PLUGINS@,$USE_PLUGINS,;t t
42075s,@EXTRALIBS@,$EXTRALIBS,;t t
42076s,@EXTRALIBS_XML@,$EXTRALIBS_XML,;t t
42077s,@EXTRALIBS_HTML@,$EXTRALIBS_HTML,;t t
42078s,@EXTRALIBS_ODBC@,$EXTRALIBS_ODBC,;t t
42079s,@EXTRALIBS_GUI@,$EXTRALIBS_GUI,;t t
42080s,@EXTRALIBS_OPENGL@,$EXTRALIBS_OPENGL,;t t
42081s,@EXTRALIBS_SDL@,$EXTRALIBS_SDL,;t t
42082s,@WITH_PLUGIN_SDL@,$WITH_PLUGIN_SDL,;t t
42083s,@UNICODE@,$UNICODE,;t t
42084s,@BUILD@,$BUILD,;t t
42085s,@DEBUG_INFO@,$DEBUG_INFO,;t t
42086s,@DEBUG_FLAG@,$DEBUG_FLAG,;t t
a848cd7e
SC
42087s,@TOOLKIT_LOWERCASE@,$TOOLKIT_LOWERCASE,;t t
42088s,@TOOLKIT_VERSION@,$TOOLKIT_VERSION,;t t
42089s,@SAMPLES_RPATH_FLAG@,$SAMPLES_RPATH_FLAG,;t t
42090s,@SAMPLES_RPATH_POSTLINK@,$SAMPLES_RPATH_POSTLINK,;t t
42091s,@HOST_SUFFIX@,$HOST_SUFFIX,;t t
42092s,@CPPUNIT_CFLAGS@,$CPPUNIT_CFLAGS,;t t
42093s,@CPPUNIT_LIBS@,$CPPUNIT_LIBS,;t t
42094s,@SET_MAKE@,$SET_MAKE,;t t
42095s,@MAKE_SET@,$MAKE_SET,;t t
42096s,@ac_ct_AR@,$ac_ct_AR,;t t
42097s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
42098s,@NM@,$NM,;t t
42099s,@ac_ct_NM@,$ac_ct_NM,;t t
42100s,@INSTALL_DIR@,$INSTALL_DIR,;t t
42101s,@LDFLAGS_GUI@,$LDFLAGS_GUI,;t t
42102s,@PLATFORM_UNIX@,$PLATFORM_UNIX,;t t
42103s,@PLATFORM_WIN32@,$PLATFORM_WIN32,;t t
42104s,@PLATFORM_MSDOS@,$PLATFORM_MSDOS,;t t
42105s,@PLATFORM_MAC@,$PLATFORM_MAC,;t t
42106s,@PLATFORM_MACOSX@,$PLATFORM_MACOSX,;t t
42107s,@PLATFORM_OS2@,$PLATFORM_OS2,;t t
42108s,@SO_SUFFIX@,$SO_SUFFIX,;t t
42109s,@SO_SUFFIX_MODULE@,$SO_SUFFIX_MODULE,;t t
42110s,@DLLIMP_SUFFIX@,$DLLIMP_SUFFIX,;t t
42111s,@LIBPREFIX@,$LIBPREFIX,;t t
42112s,@LIBEXT@,$LIBEXT,;t t
42113s,@DLLPREFIX@,$DLLPREFIX,;t t
42114s,@DLLPREFIX_MODULE@,$DLLPREFIX_MODULE,;t t
42115s,@AIX_CXX_LD@,$AIX_CXX_LD,;t t
42116s,@SHARED_LD_CC@,$SHARED_LD_CC,;t t
42117s,@SHARED_LD_CXX@,$SHARED_LD_CXX,;t t
42118s,@SHARED_LD_MODULE_CC@,$SHARED_LD_MODULE_CC,;t t
42119s,@SHARED_LD_MODULE_CXX@,$SHARED_LD_MODULE_CXX,;t t
42120s,@PIC_FLAG@,$PIC_FLAG,;t t
42121s,@USE_SOVERSION@,$USE_SOVERSION,;t t
42122s,@USE_SOVERLINUX@,$USE_SOVERLINUX,;t t
42123s,@USE_SOVERSOLARIS@,$USE_SOVERSOLARIS,;t t
42124s,@USE_MACVERSION@,$USE_MACVERSION,;t t
42125s,@USE_SOSYMLINKS@,$USE_SOSYMLINKS,;t t
42126s,@SONAME_FLAG@,$SONAME_FLAG,;t t
42127s,@DEPS_TRACKING@,$DEPS_TRACKING,;t t
42128s,@GCC_PCH@,$GCC_PCH,;t t
42129s,@COND_BUILD_DEBUG@,$COND_BUILD_DEBUG,;t t
42130s,@COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT@,$COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT,;t t
42131s,@COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT@,$COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT,;t t
42132s,@COND_BUILD_DEBUG_UNICODE_0@,$COND_BUILD_DEBUG_UNICODE_0,;t t
42133s,@COND_BUILD_DEBUG_UNICODE_1@,$COND_BUILD_DEBUG_UNICODE_1,;t t
42134s,@COND_BUILD_RELEASE@,$COND_BUILD_RELEASE,;t t
42135s,@COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT@,$COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT,;t t
42136s,@COND_BUILD_RELEASE_UNICODE_0@,$COND_BUILD_RELEASE_UNICODE_0,;t t
42137s,@COND_BUILD_RELEASE_UNICODE_1@,$COND_BUILD_RELEASE_UNICODE_1,;t t
42138s,@COND_DEBUG_FLAG_1@,$COND_DEBUG_FLAG_1,;t t
42139s,@COND_DEBUG_INFO_0@,$COND_DEBUG_INFO_0,;t t
42140s,@COND_DEBUG_INFO_1@,$COND_DEBUG_INFO_1,;t t
42141s,@COND_DEPS_TRACKING_0@,$COND_DEPS_TRACKING_0,;t t
42142s,@COND_DEPS_TRACKING_1@,$COND_DEPS_TRACKING_1,;t t
42143s,@COND_GCC_PCH_1@,$COND_GCC_PCH_1,;t t
42144s,@COND_MONOLITHIC_0@,$COND_MONOLITHIC_0,;t t
42145s,@COND_MONOLITHIC_0_SHARED_0@,$COND_MONOLITHIC_0_SHARED_0,;t t
42146s,@COND_MONOLITHIC_0_SHARED_0_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1,;t t
42147s,@COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1,;t t
42148s,@COND_MONOLITHIC_0_SHARED_0_USE_HTML_1@,$COND_MONOLITHIC_0_SHARED_0_USE_HTML_1,;t t
42149s,@COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1,;t t
ceec2216 42150s,@COND_MONOLITHIC_0_SHARED_0_USE_XRC_1@,$COND_MONOLITHIC_0_SHARED_0_USE_XRC_1,;t t
a848cd7e
SC
42151s,@COND_MONOLITHIC_0_SHARED_1@,$COND_MONOLITHIC_0_SHARED_1,;t t
42152s,@COND_MONOLITHIC_0_SHARED_1_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1,;t t
42153s,@COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1,;t t
42154s,@COND_MONOLITHIC_0_SHARED_1_USE_HTML_1@,$COND_MONOLITHIC_0_SHARED_1_USE_HTML_1,;t t
42155s,@COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1,;t t
ceec2216 42156s,@COND_MONOLITHIC_0_SHARED_1_USE_XRC_1@,$COND_MONOLITHIC_0_SHARED_1_USE_XRC_1,;t t
a848cd7e
SC
42157s,@COND_MONOLITHIC_0_USE_ODBC_1@,$COND_MONOLITHIC_0_USE_ODBC_1,;t t
42158s,@COND_MONOLITHIC_1@,$COND_MONOLITHIC_1,;t t
42159s,@COND_MONOLITHIC_1_SHARED_0@,$COND_MONOLITHIC_1_SHARED_0,;t t
42160s,@COND_MONOLITHIC_1_SHARED_1@,$COND_MONOLITHIC_1_SHARED_1,;t t
42161s,@COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1,;t t
42162s,@COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1,;t t
42163s,@COND_PLATFORM_MACOSX_0_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_0_USE_SOVERSION_1,;t t
42164s,@COND_PLATFORM_MACOSX_1@,$COND_PLATFORM_MACOSX_1,;t t
a30f955f 42165s,@COND_PLATFORM_MACOSX_1_TOOLKIT_@,$COND_PLATFORM_MACOSX_1_TOOLKIT_,;t t
a848cd7e
SC
42166s,@COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA@,$COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA,;t t
42167s,@COND_PLATFORM_MACOSX_1_TOOLKIT_GTK@,$COND_PLATFORM_MACOSX_1_TOOLKIT_GTK,;t t
42168s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MAC@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MAC,;t t
ebee3cd0
VS
42169s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF,;t t
42170s,@COND_PLATFORM_MACOSX_1_TOOLKIT_X11@,$COND_PLATFORM_MACOSX_1_TOOLKIT_X11,;t t
a848cd7e
SC
42171s,@COND_PLATFORM_MACOSX_1_USE_GUI_1@,$COND_PLATFORM_MACOSX_1_USE_GUI_1,;t t
42172s,@COND_PLATFORM_MACOSX_1_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_1_USE_SOVERSION_1,;t t
42173s,@COND_PLATFORM_MAC_1@,$COND_PLATFORM_MAC_1,;t t
42174s,@COND_PLATFORM_OS2_1@,$COND_PLATFORM_OS2_1,;t t
42175s,@COND_PLATFORM_UNIX_0@,$COND_PLATFORM_UNIX_0,;t t
42176s,@COND_PLATFORM_UNIX_1@,$COND_PLATFORM_UNIX_1,;t t
42177s,@COND_PLATFORM_UNIX_1_USE_GUI_1@,$COND_PLATFORM_UNIX_1_USE_GUI_1,;t t
42178s,@COND_PLATFORM_UNIX_1_USE_PLUGINS_0@,$COND_PLATFORM_UNIX_1_USE_PLUGINS_0,;t t
42179s,@COND_PLATFORM_WIN32_0@,$COND_PLATFORM_WIN32_0,;t t
42180s,@COND_PLATFORM_WIN32_1@,$COND_PLATFORM_WIN32_1,;t t
42181s,@COND_SHARED_0@,$COND_SHARED_0,;t t
ceec2216
RL
42182s,@COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0,;t t
42183s,@COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0,;t t
42184s,@COND_SHARED_0_TOOLKIT_PM_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_PM_WXUNIV_0,;t t
a848cd7e
SC
42185s,@COND_SHARED_0_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_0_USE_GUI_1_USE_OPENGL_1,;t t
42186s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN,;t t
42187s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN,;t t
42188s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN,;t t
42189s,@COND_SHARED_0_WXUSE_EXPAT_BUILTIN@,$COND_SHARED_0_WXUSE_EXPAT_BUILTIN,;t t
42190s,@COND_SHARED_0_WXUSE_ODBC_BUILTIN@,$COND_SHARED_0_WXUSE_ODBC_BUILTIN,;t t
42191s,@COND_SHARED_0_WXUSE_REGEX_BUILTIN@,$COND_SHARED_0_WXUSE_REGEX_BUILTIN,;t t
42192s,@COND_SHARED_0_WXUSE_ZLIB_BUILTIN@,$COND_SHARED_0_WXUSE_ZLIB_BUILTIN,;t t
42193s,@COND_SHARED_1@,$COND_SHARED_1,;t t
42194s,@COND_SHARED_1_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_1_USE_GUI_1_USE_OPENGL_1,;t t
a30f955f 42195s,@COND_TOOLKIT_@,$COND_TOOLKIT_,;t t
a848cd7e 42196s,@COND_TOOLKIT_COCOA@,$COND_TOOLKIT_COCOA,;t t
a49baeab 42197s,@COND_TOOLKIT_COCOA_USE_GUI_1@,$COND_TOOLKIT_COCOA_USE_GUI_1,;t t
a848cd7e
SC
42198s,@COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0,;t t
42199s,@COND_TOOLKIT_GTK@,$COND_TOOLKIT_GTK,;t t
42200s,@COND_TOOLKIT_GTK_USE_GUI_1@,$COND_TOOLKIT_GTK_USE_GUI_1,;t t
42201s,@COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0,;t t
42202s,@COND_TOOLKIT_MAC@,$COND_TOOLKIT_MAC,;t t
42203s,@COND_TOOLKIT_MAC_USE_GUI_1@,$COND_TOOLKIT_MAC_USE_GUI_1,;t t
42204s,@COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0,;t t
42205s,@COND_TOOLKIT_MGL@,$COND_TOOLKIT_MGL,;t t
42206s,@COND_TOOLKIT_MGL_USE_GUI_1@,$COND_TOOLKIT_MGL_USE_GUI_1,;t t
42207s,@COND_TOOLKIT_MOTIF@,$COND_TOOLKIT_MOTIF,;t t
42208s,@COND_TOOLKIT_MOTIF_USE_GUI_1@,$COND_TOOLKIT_MOTIF_USE_GUI_1,;t t
42209s,@COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0,;t t
42210s,@COND_TOOLKIT_MSW@,$COND_TOOLKIT_MSW,;t t
42211s,@COND_TOOLKIT_MSW_USE_GUI_1@,$COND_TOOLKIT_MSW_USE_GUI_1,;t t
42212s,@COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0,;t t
42213s,@COND_TOOLKIT_PM@,$COND_TOOLKIT_PM,;t t
42214s,@COND_TOOLKIT_PM_USE_GUI_1@,$COND_TOOLKIT_PM_USE_GUI_1,;t t
42215s,@COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0,;t t
3fd9c298
DE
42216s,@COND_TOOLKIT_WINCE@,$COND_TOOLKIT_WINCE,;t t
42217s,@COND_TOOLKIT_WINCE_USE_GUI_1@,$COND_TOOLKIT_WINCE_USE_GUI_1,;t t
42218s,@COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0,;t t
a848cd7e
SC
42219s,@COND_TOOLKIT_X11@,$COND_TOOLKIT_X11,;t t
42220s,@COND_TOOLKIT_X11_USE_GUI_1@,$COND_TOOLKIT_X11_USE_GUI_1,;t t
42221s,@COND_UNICODE_1@,$COND_UNICODE_1,;t t
42222s,@COND_USE_EXCEPTIONS_0@,$COND_USE_EXCEPTIONS_0,;t t
42223s,@COND_USE_EXCEPTIONS_1@,$COND_USE_EXCEPTIONS_1,;t t
42224s,@COND_USE_GUI_0@,$COND_USE_GUI_0,;t t
42225s,@COND_USE_GUI_1@,$COND_USE_GUI_1,;t t
42226s,@COND_USE_GUI_1_WXUNIV_0@,$COND_USE_GUI_1_WXUNIV_0,;t t
42227s,@COND_USE_GUI_1_WXUNIV_1@,$COND_USE_GUI_1_WXUNIV_1,;t t
42228s,@COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN,;t t
42229s,@COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN,;t t
42230s,@COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN,;t t
ceec2216 42231s,@COND_USE_ODBC_1@,$COND_USE_ODBC_1,;t t
ffa0583f 42232s,@COND_USE_OPENGL_1@,$COND_USE_OPENGL_1,;t t
a848cd7e
SC
42233s,@COND_USE_PLUGINS_0@,$COND_USE_PLUGINS_0,;t t
42234s,@COND_USE_SOSYMLINKS_1@,$COND_USE_SOSYMLINKS_1,;t t
42235s,@COND_USE_SOVERLINUX_1@,$COND_USE_SOVERLINUX_1,;t t
42236s,@COND_USE_SOVERSION_0@,$COND_USE_SOVERSION_0,;t t
42237s,@COND_USE_SOVERSOLARIS_1@,$COND_USE_SOVERSOLARIS_1,;t t
a13a7f89 42238s,@COND_USE_XRC_1@,$COND_USE_XRC_1,;t t
a848cd7e 42239s,@COND_WITH_PLUGIN_SDL_1@,$COND_WITH_PLUGIN_SDL_1,;t t
a848cd7e
SC
42240s,@COND_WXUNIV_1@,$COND_WXUNIV_1,;t t
42241s,@COND_WXUSE_EXPAT_BUILTIN@,$COND_WXUSE_EXPAT_BUILTIN,;t t
42242s,@COND_WXUSE_LIBJPEG_BUILTIN@,$COND_WXUSE_LIBJPEG_BUILTIN,;t t
42243s,@COND_WXUSE_LIBPNG_BUILTIN@,$COND_WXUSE_LIBPNG_BUILTIN,;t t
42244s,@COND_WXUSE_LIBTIFF_BUILTIN@,$COND_WXUSE_LIBTIFF_BUILTIN,;t t
42245s,@COND_WXUSE_ODBC_BUILTIN@,$COND_WXUSE_ODBC_BUILTIN,;t t
42246s,@COND_WXUSE_REGEX_BUILTIN@,$COND_WXUSE_REGEX_BUILTIN,;t t
42247s,@COND_WXUSE_ZLIB_BUILTIN@,$COND_WXUSE_ZLIB_BUILTIN,;t t
9a8f0513
VS
42248s,@COND_TOOLKIT_MAC_WXUNIV_0@,$COND_TOOLKIT_MAC_WXUNIV_0,;t t
42249s,@COND_TOOLKIT_MSW_WXUNIV_0@,$COND_TOOLKIT_MSW_WXUNIV_0,;t t
42250s,@COND_TOOLKIT_PM_WXUNIV_0@,$COND_TOOLKIT_PM_WXUNIV_0,;t t
ceec2216 42251s,@SHARED@,$SHARED,;t t
a848cd7e
SC
42252s,@WX_LIBRARY_BASENAME_NOGUI@,$WX_LIBRARY_BASENAME_NOGUI,;t t
42253s,@WX_LIBRARY_BASENAME_GUI@,$WX_LIBRARY_BASENAME_GUI,;t t
a848cd7e
SC
42254s,@WXDEBUG_DEFINE@,$WXDEBUG_DEFINE,;t t
42255s,@USE_GUI@,$USE_GUI,;t t
42256s,@AFMINSTALL@,$AFMINSTALL,;t t
42257s,@WIN32INSTALL@,$WIN32INSTALL,;t t
42258s,@TOOLKIT@,$TOOLKIT,;t t
42259s,@TOOLKIT_DIR@,$TOOLKIT_DIR,;t t
a848cd7e 42260s,@TOOLCHAIN_NAME@,$TOOLCHAIN_NAME,;t t
ceec2216 42261s,@TOOLCHAIN_FULLNAME@,$TOOLCHAIN_FULLNAME,;t t
a848cd7e
SC
42262s,@TOOLCHAIN_DEFS@,$TOOLCHAIN_DEFS,;t t
42263s,@TOOLCHAIN_DLL_DEFS@,$TOOLCHAIN_DLL_DEFS,;t t
a848cd7e 42264s,@cross_compiling@,$cross_compiling,;t t
ceec2216
RL
42265s,@WIDGET_SET@,$WIDGET_SET,;t t
42266s,@WX_RELEASE@,$WX_RELEASE,;t t
42267s,@WX_VERSION@,$WX_VERSION,;t t
42268s,@WX_SUBVERSION@,$WX_SUBVERSION,;t t
42269s,@WX_CHARTYPE@,$WX_CHARTYPE,;t t
42270s,@WX_DEBUGTYPE@,$WX_DEBUGTYPE,;t t
a848cd7e 42271s,@WXCONFIG_EXTRALIBS@,$WXCONFIG_EXTRALIBS,;t t
a848cd7e
SC
42272s,@WXCONFIG_INCLUDE@,$WXCONFIG_INCLUDE,;t t
42273s,@WXCONFIG_RPATH@,$WXCONFIG_RPATH,;t t
42274s,@WXCONFIG_LDFLAGS_GUI@,$WXCONFIG_LDFLAGS_GUI,;t t
42275s,@WX_LARGEFILE_FLAGS@,$WX_LARGEFILE_FLAGS,;t t
74b84332 42276s,@GCC_PRAGMA_FLAGS@,$GCC_PRAGMA_FLAGS,;t t
a848cd7e
SC
42277s,@CODE_GEN_FLAGS@,$CODE_GEN_FLAGS,;t t
42278s,@CODE_GEN_FLAGS_CXX@,$CODE_GEN_FLAGS_CXX,;t t
ceec2216 42279s,@EXE_LINKER@,$EXE_LINKER,;t t
a848cd7e 42280s,@GUIDIST@,$GUIDIST,;t t
a848cd7e
SC
42281s,@DISTDIR@,$DISTDIR,;t t
42282s,@SAMPLES_SUBDIRS@,$SAMPLES_SUBDIRS,;t t
42283s,@LDFLAGS_GL@,$LDFLAGS_GL,;t t
a848cd7e
SC
42284s,@OPENGL_LIBS@,$OPENGL_LIBS,;t t
42285s,@DMALLOC_LIBS@,$DMALLOC_LIBS,;t t
42286s,@WX_VERSION_TAG@,$WX_VERSION_TAG,;t t
42287s,@RESFLAGS@,$RESFLAGS,;t t
42288s,@RESPROGRAMOBJ@,$RESPROGRAMOBJ,;t t
42289s,@WX_RESOURCES_MACOSX_ASCII@,$WX_RESOURCES_MACOSX_ASCII,;t t
42290s,@WX_RESOURCES_MACOSX_DATA@,$WX_RESOURCES_MACOSX_DATA,;t t
42291s,@LIBWXMACRES@,$LIBWXMACRES,;t t
42292s,@MACRESCOMP@,$MACRESCOMP,;t t
42293s,@MACSETFILE@,$MACSETFILE,;t t
42294s,@MACRESWXCONFIG@,$MACRESWXCONFIG,;t t
42295s,@GCC@,$GCC,;t t
a848cd7e 42296s,@DLLTOOL@,$DLLTOOL,;t t
a848cd7e
SC
42297s,@CPPUNIT_CONFIG@,$CPPUNIT_CONFIG,;t t
42298s,@LIBOBJS@,$LIBOBJS,;t t
42299s,@LTLIBOBJS@,$LTLIBOBJS,;t t
42300CEOF
42301
42302_ACEOF
42303
42304 cat >>$CONFIG_STATUS <<\_ACEOF
42305 # Split the substitutions into bite-sized pieces for seds with
42306 # small command number limits, like on Digital OSF/1 and HP-UX.
42307 ac_max_sed_lines=48
42308 ac_sed_frag=1 # Number of current file.
42309 ac_beg=1 # First line for current file.
42310 ac_end=$ac_max_sed_lines # Line after last line for current file.
42311 ac_more_lines=:
42312 ac_sed_cmds=
42313 while $ac_more_lines; do
42314 if test $ac_beg -gt 1; then
42315 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
42316 else
42317 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
42318 fi
42319 if test ! -s $tmp/subs.frag; then
42320 ac_more_lines=false
42321 else
42322 # The purpose of the label and of the branching condition is to
42323 # speed up the sed processing (if there are no `@' at all, there
42324 # is no need to browse any of the substitutions).
42325 # These are the two extra sed commands mentioned above.
42326 (echo ':t
42327 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
42328 if test -z "$ac_sed_cmds"; then
ac1cb8d3 42329 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
a848cd7e 42330 else
ac1cb8d3 42331 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
a848cd7e
SC
42332 fi
42333 ac_sed_frag=`expr $ac_sed_frag + 1`
42334 ac_beg=$ac_end
42335 ac_end=`expr $ac_end + $ac_max_sed_lines`
42336 fi
42337 done
42338 if test -z "$ac_sed_cmds"; then
42339 ac_sed_cmds=cat
42340 fi
42341fi # test -n "$CONFIG_FILES"
42342
42343_ACEOF
42344cat >>$CONFIG_STATUS <<\_ACEOF
42345for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
42346 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
42347 case $ac_file in
42348 - | *:- | *:-:* ) # input from stdin
ac1cb8d3
VS
42349 cat >$tmp/stdin
42350 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
42351 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e 42352 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
ac1cb8d3 42353 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e
SC
42354 * ) ac_file_in=$ac_file.in ;;
42355 esac
42356
42357 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
42358 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
42359$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
42360 X"$ac_file" : 'X\(//\)[^/]' \| \
42361 X"$ac_file" : 'X\(//\)$' \| \
42362 X"$ac_file" : 'X\(/\)' \| \
42363 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
42364echo X"$ac_file" |
42365 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
42366 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
42367 /^X\(\/\/\)$/{ s//\1/; q; }
42368 /^X\(\/\).*/{ s//\1/; q; }
42369 s/.*/./; q'`
42370 { if $as_mkdir_p; then
42371 mkdir -p "$ac_dir"
42372 else
42373 as_dir="$ac_dir"
42374 as_dirs=
42375 while test ! -d "$as_dir"; do
42376 as_dirs="$as_dir $as_dirs"
42377 as_dir=`(dirname "$as_dir") 2>/dev/null ||
42378$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
42379 X"$as_dir" : 'X\(//\)[^/]' \| \
42380 X"$as_dir" : 'X\(//\)$' \| \
42381 X"$as_dir" : 'X\(/\)' \| \
42382 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
42383echo X"$as_dir" |
42384 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
42385 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
42386 /^X\(\/\/\)$/{ s//\1/; q; }
42387 /^X\(\/\).*/{ s//\1/; q; }
42388 s/.*/./; q'`
42389 done
42390 test ! -n "$as_dirs" || mkdir $as_dirs
42391 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
42392echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
42393 { (exit 1); exit 1; }; }; }
42394
42395 ac_builddir=.
42396
42397if test "$ac_dir" != .; then
42398 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
42399 # A "../" for each directory in $ac_dir_suffix.
42400 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
42401else
42402 ac_dir_suffix= ac_top_builddir=
42403fi
42404
42405case $srcdir in
42406 .) # No --srcdir option. We are building in place.
42407 ac_srcdir=.
42408 if test -z "$ac_top_builddir"; then
42409 ac_top_srcdir=.
42410 else
42411 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
42412 fi ;;
42413 [\\/]* | ?:[\\/]* ) # Absolute path.
42414 ac_srcdir=$srcdir$ac_dir_suffix;
42415 ac_top_srcdir=$srcdir ;;
42416 *) # Relative path.
42417 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
42418 ac_top_srcdir=$ac_top_builddir$srcdir ;;
42419esac
ac1cb8d3
VS
42420
42421# Do not use `cd foo && pwd` to compute absolute paths, because
42422# the directories may not exist.
42423case `pwd` in
42424.) ac_abs_builddir="$ac_dir";;
42425*)
42426 case "$ac_dir" in
42427 .) ac_abs_builddir=`pwd`;;
42428 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
42429 *) ac_abs_builddir=`pwd`/"$ac_dir";;
42430 esac;;
42431esac
42432case $ac_abs_builddir in
42433.) ac_abs_top_builddir=${ac_top_builddir}.;;
42434*)
42435 case ${ac_top_builddir}. in
42436 .) ac_abs_top_builddir=$ac_abs_builddir;;
42437 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
42438 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
42439 esac;;
42440esac
42441case $ac_abs_builddir in
42442.) ac_abs_srcdir=$ac_srcdir;;
42443*)
42444 case $ac_srcdir in
42445 .) ac_abs_srcdir=$ac_abs_builddir;;
42446 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
42447 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
42448 esac;;
42449esac
42450case $ac_abs_builddir in
42451.) ac_abs_top_srcdir=$ac_top_srcdir;;
42452*)
42453 case $ac_top_srcdir in
42454 .) ac_abs_top_srcdir=$ac_abs_builddir;;
42455 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
42456 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
42457 esac;;
42458esac
a848cd7e
SC
42459
42460
42461 case $INSTALL in
42462 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
42463 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
42464 esac
42465
a848cd7e
SC
42466 # Let's still pretend it is `configure' which instantiates (i.e., don't
42467 # use $as_me), people would be surprised to read:
42468 # /* config.h. Generated by config.status. */
42469 if test x"$ac_file" = x-; then
42470 configure_input=
42471 else
42472 configure_input="$ac_file. "
42473 fi
42474 configure_input=$configure_input"Generated from `echo $ac_file_in |
ac1cb8d3 42475 sed 's,.*/,,'` by configure."
a848cd7e
SC
42476
42477 # First look for the input files in the build tree, otherwise in the
42478 # src tree.
42479 ac_file_inputs=`IFS=:
42480 for f in $ac_file_in; do
42481 case $f in
42482 -) echo $tmp/stdin ;;
42483 [\\/$]*)
ac1cb8d3
VS
42484 # Absolute (can't be DOS-style, as IFS=:)
42485 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
42486echo "$as_me: error: cannot find input file: $f" >&2;}
42487 { (exit 1); exit 1; }; }
ac1cb8d3 42488 echo "$f";;
a848cd7e 42489 *) # Relative
ac1cb8d3
VS
42490 if test -f "$f"; then
42491 # Build tree
42492 echo "$f"
42493 elif test -f "$srcdir/$f"; then
42494 # Source tree
42495 echo "$srcdir/$f"
42496 else
42497 # /dev/null tree
42498 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
42499echo "$as_me: error: cannot find input file: $f" >&2;}
42500 { (exit 1); exit 1; }; }
ac1cb8d3 42501 fi;;
a848cd7e
SC
42502 esac
42503 done` || { (exit 1); exit 1; }
ffa0583f
RL
42504
42505 if test x"$ac_file" != x-; then
42506 { echo "$as_me:$LINENO: creating $ac_file" >&5
42507echo "$as_me: creating $ac_file" >&6;}
42508 rm -f "$ac_file"
42509 fi
a848cd7e
SC
42510_ACEOF
42511cat >>$CONFIG_STATUS <<_ACEOF
42512 sed "$ac_vpsub
42513$extrasub
42514_ACEOF
42515cat >>$CONFIG_STATUS <<\_ACEOF
42516:t
42517/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
42518s,@configure_input@,$configure_input,;t t
42519s,@srcdir@,$ac_srcdir,;t t
42520s,@abs_srcdir@,$ac_abs_srcdir,;t t
42521s,@top_srcdir@,$ac_top_srcdir,;t t
42522s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
42523s,@builddir@,$ac_builddir,;t t
42524s,@abs_builddir@,$ac_abs_builddir,;t t
42525s,@top_builddir@,$ac_top_builddir,;t t
42526s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
42527s,@INSTALL@,$ac_INSTALL,;t t
42528" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
42529 rm -f $tmp/stdin
42530 if test x"$ac_file" != x-; then
42531 mv $tmp/out $ac_file
42532 else
42533 cat $tmp/out
42534 rm -f $tmp/out
42535 fi
42536
ceec2216
RL
42537 # Run the commands associated with the file.
42538 case $ac_file in
42539 lib/wx/config/${TOOLCHAIN_FULLNAME} ) chmod +x lib/wx/config/${TOOLCHAIN_FULLNAME} ;;
42540 lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} ) chmod +x lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} ;;
42541 esac
a848cd7e
SC
42542done
42543_ACEOF
42544cat >>$CONFIG_STATUS <<\_ACEOF
42545
42546#
42547# CONFIG_HEADER section.
42548#
42549
42550# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
42551# NAME is the cpp macro being defined and VALUE is the value it is being given.
42552#
42553# ac_d sets the value in "#define NAME VALUE" lines.
ac1cb8d3
VS
42554ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
42555ac_dB='[ ].*$,\1#\2'
a848cd7e
SC
42556ac_dC=' '
42557ac_dD=',;t'
42558# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
ac1cb8d3 42559ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
a848cd7e
SC
42560ac_uB='$,\1#\2define\3'
42561ac_uC=' '
42562ac_uD=',;t'
42563
42564for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
42565 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
42566 case $ac_file in
42567 - | *:- | *:-:* ) # input from stdin
ac1cb8d3
VS
42568 cat >$tmp/stdin
42569 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
42570 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e 42571 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
ac1cb8d3 42572 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e
SC
42573 * ) ac_file_in=$ac_file.in ;;
42574 esac
42575
42576 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
42577echo "$as_me: creating $ac_file" >&6;}
42578
42579 # First look for the input files in the build tree, otherwise in the
42580 # src tree.
42581 ac_file_inputs=`IFS=:
42582 for f in $ac_file_in; do
42583 case $f in
42584 -) echo $tmp/stdin ;;
42585 [\\/$]*)
ac1cb8d3
VS
42586 # Absolute (can't be DOS-style, as IFS=:)
42587 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
42588echo "$as_me: error: cannot find input file: $f" >&2;}
42589 { (exit 1); exit 1; }; }
ac1cb8d3
VS
42590 # Do quote $f, to prevent DOS paths from being IFS'd.
42591 echo "$f";;
a848cd7e 42592 *) # Relative
ac1cb8d3
VS
42593 if test -f "$f"; then
42594 # Build tree
42595 echo "$f"
42596 elif test -f "$srcdir/$f"; then
42597 # Source tree
42598 echo "$srcdir/$f"
42599 else
42600 # /dev/null tree
42601 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
42602echo "$as_me: error: cannot find input file: $f" >&2;}
42603 { (exit 1); exit 1; }; }
ac1cb8d3 42604 fi;;
a848cd7e
SC
42605 esac
42606 done` || { (exit 1); exit 1; }
42607 # Remove the trailing spaces.
ac1cb8d3 42608 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
a848cd7e
SC
42609
42610_ACEOF
42611
42612# Transform confdefs.h into two sed scripts, `conftest.defines' and
42613# `conftest.undefs', that substitutes the proper values into
42614# config.h.in to produce config.h. The first handles `#define'
42615# templates, and the second `#undef' templates.
42616# And first: Protect against being on the right side of a sed subst in
42617# config.status. Protect against being in an unquoted here document
42618# in config.status.
42619rm -f conftest.defines conftest.undefs
42620# Using a here document instead of a string reduces the quoting nightmare.
42621# Putting comments in sed scripts is not portable.
42622#
42623# `end' is used to avoid that the second main sed command (meant for
42624# 0-ary CPP macros) applies to n-ary macro definitions.
42625# See the Autoconf documentation for `clear'.
42626cat >confdef2sed.sed <<\_ACEOF
42627s/[\\&,]/\\&/g
42628s,[\\$`],\\&,g
42629t clear
42630: clear
ac1cb8d3 42631s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
a848cd7e 42632t end
ac1cb8d3 42633s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
a848cd7e
SC
42634: end
42635_ACEOF
42636# If some macros were called several times there might be several times
42637# the same #defines, which is useless. Nevertheless, we may not want to
42638# sort them, since we want the *last* AC-DEFINE to be honored.
42639uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
42640sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
42641rm -f confdef2sed.sed
42642
42643# This sed command replaces #undef with comments. This is necessary, for
42644# example, in the case of _POSIX_SOURCE, which is predefined and required
42645# on some systems where configure will not decide to define it.
42646cat >>conftest.undefs <<\_ACEOF
ac1cb8d3 42647s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
a848cd7e
SC
42648_ACEOF
42649
42650# Break up conftest.defines because some shells have a limit on the size
42651# of here documents, and old seds have small limits too (100 cmds).
42652echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
ac1cb8d3 42653echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
a848cd7e
SC
42654echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
42655echo ' :' >>$CONFIG_STATUS
42656rm -f conftest.tail
42657while grep . conftest.defines >/dev/null
42658do
42659 # Write a limited-size here document to $tmp/defines.sed.
42660 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
42661 # Speed up: don't consider the non `#define' lines.
ac1cb8d3 42662 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
a848cd7e
SC
42663 # Work around the forget-to-reset-the-flag bug.
42664 echo 't clr' >>$CONFIG_STATUS
42665 echo ': clr' >>$CONFIG_STATUS
42666 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
42667 echo 'CEOF
42668 sed -f $tmp/defines.sed $tmp/in >$tmp/out
42669 rm -f $tmp/in
42670 mv $tmp/out $tmp/in
42671' >>$CONFIG_STATUS
42672 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
42673 rm -f conftest.defines
42674 mv conftest.tail conftest.defines
42675done
42676rm -f conftest.defines
42677echo ' fi # grep' >>$CONFIG_STATUS
42678echo >>$CONFIG_STATUS
42679
42680# Break up conftest.undefs because some shells have a limit on the size
42681# of here documents, and old seds have small limits too (100 cmds).
42682echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
42683rm -f conftest.tail
42684while grep . conftest.undefs >/dev/null
42685do
42686 # Write a limited-size here document to $tmp/undefs.sed.
42687 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
42688 # Speed up: don't consider the non `#undef'
ac1cb8d3 42689 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
a848cd7e
SC
42690 # Work around the forget-to-reset-the-flag bug.
42691 echo 't clr' >>$CONFIG_STATUS
42692 echo ': clr' >>$CONFIG_STATUS
42693 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
42694 echo 'CEOF
42695 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
42696 rm -f $tmp/in
42697 mv $tmp/out $tmp/in
42698' >>$CONFIG_STATUS
42699 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
42700 rm -f conftest.undefs
42701 mv conftest.tail conftest.undefs
42702done
42703rm -f conftest.undefs
42704
42705cat >>$CONFIG_STATUS <<\_ACEOF
42706 # Let's still pretend it is `configure' which instantiates (i.e., don't
42707 # use $as_me), people would be surprised to read:
42708 # /* config.h. Generated by config.status. */
42709 if test x"$ac_file" = x-; then
42710 echo "/* Generated by configure. */" >$tmp/config.h
42711 else
42712 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
42713 fi
42714 cat $tmp/in >>$tmp/config.h
42715 rm -f $tmp/in
42716 if test x"$ac_file" != x-; then
42717 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
42718 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
42719echo "$as_me: $ac_file is unchanged" >&6;}
42720 else
42721 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
42722$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
42723 X"$ac_file" : 'X\(//\)[^/]' \| \
42724 X"$ac_file" : 'X\(//\)$' \| \
42725 X"$ac_file" : 'X\(/\)' \| \
42726 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
42727echo X"$ac_file" |
42728 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
42729 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
42730 /^X\(\/\/\)$/{ s//\1/; q; }
42731 /^X\(\/\).*/{ s//\1/; q; }
42732 s/.*/./; q'`
42733 { if $as_mkdir_p; then
42734 mkdir -p "$ac_dir"
42735 else
42736 as_dir="$ac_dir"
42737 as_dirs=
42738 while test ! -d "$as_dir"; do
42739 as_dirs="$as_dir $as_dirs"
42740 as_dir=`(dirname "$as_dir") 2>/dev/null ||
42741$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
42742 X"$as_dir" : 'X\(//\)[^/]' \| \
42743 X"$as_dir" : 'X\(//\)$' \| \
42744 X"$as_dir" : 'X\(/\)' \| \
42745 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
42746echo X"$as_dir" |
42747 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
42748 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
42749 /^X\(\/\/\)$/{ s//\1/; q; }
42750 /^X\(\/\).*/{ s//\1/; q; }
42751 s/.*/./; q'`
42752 done
42753 test ! -n "$as_dirs" || mkdir $as_dirs
42754 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
42755echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
42756 { (exit 1); exit 1; }; }; }
42757
42758 rm -f $ac_file
42759 mv $tmp/config.h $ac_file
42760 fi
42761 else
42762 cat $tmp/config.h
42763 rm -f $tmp/config.h
42764 fi
42765done
42766_ACEOF
42767cat >>$CONFIG_STATUS <<\_ACEOF
42768
42769#
42770# CONFIG_COMMANDS section.
42771#
42772for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
42773 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
42774 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
42775 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
42776$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
42777 X"$ac_dest" : 'X\(//\)[^/]' \| \
42778 X"$ac_dest" : 'X\(//\)$' \| \
42779 X"$ac_dest" : 'X\(/\)' \| \
42780 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
42781echo X"$ac_dest" |
42782 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
42783 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
42784 /^X\(\/\/\)$/{ s//\1/; q; }
42785 /^X\(\/\).*/{ s//\1/; q; }
42786 s/.*/./; q'`
ac1cb8d3
VS
42787 { if $as_mkdir_p; then
42788 mkdir -p "$ac_dir"
42789 else
42790 as_dir="$ac_dir"
42791 as_dirs=
42792 while test ! -d "$as_dir"; do
42793 as_dirs="$as_dir $as_dirs"
42794 as_dir=`(dirname "$as_dir") 2>/dev/null ||
42795$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
42796 X"$as_dir" : 'X\(//\)[^/]' \| \
42797 X"$as_dir" : 'X\(//\)$' \| \
42798 X"$as_dir" : 'X\(/\)' \| \
42799 . : '\(.\)' 2>/dev/null ||
42800echo X"$as_dir" |
42801 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
42802 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
42803 /^X\(\/\/\)$/{ s//\1/; q; }
42804 /^X\(\/\).*/{ s//\1/; q; }
42805 s/.*/./; q'`
42806 done
42807 test ! -n "$as_dirs" || mkdir $as_dirs
42808 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
42809echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
42810 { (exit 1); exit 1; }; }; }
42811
a848cd7e
SC
42812 ac_builddir=.
42813
42814if test "$ac_dir" != .; then
42815 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
42816 # A "../" for each directory in $ac_dir_suffix.
42817 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
42818else
42819 ac_dir_suffix= ac_top_builddir=
42820fi
42821
42822case $srcdir in
42823 .) # No --srcdir option. We are building in place.
42824 ac_srcdir=.
42825 if test -z "$ac_top_builddir"; then
42826 ac_top_srcdir=.
42827 else
42828 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
42829 fi ;;
42830 [\\/]* | ?:[\\/]* ) # Absolute path.
42831 ac_srcdir=$srcdir$ac_dir_suffix;
42832 ac_top_srcdir=$srcdir ;;
42833 *) # Relative path.
42834 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
42835 ac_top_srcdir=$ac_top_builddir$srcdir ;;
42836esac
ac1cb8d3
VS
42837
42838# Do not use `cd foo && pwd` to compute absolute paths, because
42839# the directories may not exist.
42840case `pwd` in
42841.) ac_abs_builddir="$ac_dir";;
42842*)
42843 case "$ac_dir" in
42844 .) ac_abs_builddir=`pwd`;;
42845 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
42846 *) ac_abs_builddir=`pwd`/"$ac_dir";;
42847 esac;;
42848esac
42849case $ac_abs_builddir in
42850.) ac_abs_top_builddir=${ac_top_builddir}.;;
42851*)
42852 case ${ac_top_builddir}. in
42853 .) ac_abs_top_builddir=$ac_abs_builddir;;
42854 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
42855 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
42856 esac;;
42857esac
42858case $ac_abs_builddir in
42859.) ac_abs_srcdir=$ac_srcdir;;
42860*)
42861 case $ac_srcdir in
42862 .) ac_abs_srcdir=$ac_abs_builddir;;
42863 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
42864 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
42865 esac;;
42866esac
42867case $ac_abs_builddir in
42868.) ac_abs_top_srcdir=$ac_top_srcdir;;
42869*)
42870 case $ac_top_srcdir in
42871 .) ac_abs_top_srcdir=$ac_abs_builddir;;
42872 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
42873 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
42874 esac;;
42875esac
a848cd7e
SC
42876
42877
42878 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
42879echo "$as_me: executing $ac_dest commands" >&6;}
42880 case $ac_dest in
ceec2216
RL
42881 wx-config ) rm -f wx-config
42882 ${LN_S} lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} wx-config
42883 ;;
a848cd7e
SC
42884 esac
42885done
42886_ACEOF
42887
42888cat >>$CONFIG_STATUS <<\_ACEOF
42889
42890{ (exit 0); exit 0; }
42891_ACEOF
42892chmod +x $CONFIG_STATUS
42893ac_clean_files=$ac_clean_files_save
42894
42895
42896# configure is writing to config.log, and then calls config.status.
42897# config.status does its own redirection, appending to config.log.
42898# Unfortunately, on DOS this fails, as config.log is still kept open
42899# by configure, so config.status won't be able to write to it; its
42900# output is simply discarded. So we exec the FD to /dev/null,
42901# effectively closing config.log, so it can be properly (re)opened and
42902# appended to by config.status. When coming back to configure, we
42903# need to make the FD available again.
42904if test "$no_create" != yes; then
42905 ac_cs_success=:
42906 ac_config_status_args=
42907 test "$silent" = yes &&
42908 ac_config_status_args="$ac_config_status_args --quiet"
42909 exec 5>/dev/null
42910 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
42911 exec 5>>config.log
42912 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
42913 # would make configure fail if this is the last instruction.
42914 $ac_cs_success || { (exit 1); exit 1; }
42915fi
42916
42917#
42918# CONFIG_SUBDIRS section.
42919#
42920if test "$no_recursion" != yes; then
42921
42922 # Remove --cache-file and --srcdir arguments so they do not pile up.
42923 ac_sub_configure_args=
42924 ac_prev=
42925 for ac_arg in $ac_configure_args; do
42926 if test -n "$ac_prev"; then
42927 ac_prev=
42928 continue
42929 fi
42930 case $ac_arg in
42931 -cache-file | --cache-file | --cache-fil | --cache-fi \
42932 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
42933 ac_prev=cache_file ;;
42934 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
42935 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
42936 | --c=*)
42937 ;;
42938 --config-cache | -C)
42939 ;;
42940 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
42941 ac_prev=srcdir ;;
42942 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
42943 ;;
42944 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
42945 ac_prev=prefix ;;
42946 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
42947 ;;
42948 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
42949 esac
42950 done
42951
42952 # Always prepend --prefix to ensure using the same prefix
42953 # in subdir configurations.
42954 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
42955
42956 ac_popdir=`pwd`
42957 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
42958
42959 # Do not complain, so a configure script can configure whichever
42960 # parts of a large source tree are present.
42961 test -d $srcdir/$ac_dir || continue
42962
42963 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
42964echo "$as_me: configuring in $ac_dir" >&6;}
42965 { if $as_mkdir_p; then
42966 mkdir -p "$ac_dir"
42967 else
42968 as_dir="$ac_dir"
42969 as_dirs=
42970 while test ! -d "$as_dir"; do
42971 as_dirs="$as_dir $as_dirs"
42972 as_dir=`(dirname "$as_dir") 2>/dev/null ||
42973$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
42974 X"$as_dir" : 'X\(//\)[^/]' \| \
42975 X"$as_dir" : 'X\(//\)$' \| \
42976 X"$as_dir" : 'X\(/\)' \| \
42977 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
42978echo X"$as_dir" |
42979 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
42980 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
42981 /^X\(\/\/\)$/{ s//\1/; q; }
42982 /^X\(\/\).*/{ s//\1/; q; }
42983 s/.*/./; q'`
42984 done
42985 test ! -n "$as_dirs" || mkdir $as_dirs
42986 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
42987echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
42988 { (exit 1); exit 1; }; }; }
42989
42990 ac_builddir=.
42991
42992if test "$ac_dir" != .; then
42993 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
42994 # A "../" for each directory in $ac_dir_suffix.
42995 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
42996else
42997 ac_dir_suffix= ac_top_builddir=
42998fi
42999
43000case $srcdir in
43001 .) # No --srcdir option. We are building in place.
43002 ac_srcdir=.
43003 if test -z "$ac_top_builddir"; then
43004 ac_top_srcdir=.
43005 else
43006 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
43007 fi ;;
43008 [\\/]* | ?:[\\/]* ) # Absolute path.
43009 ac_srcdir=$srcdir$ac_dir_suffix;
43010 ac_top_srcdir=$srcdir ;;
43011 *) # Relative path.
43012 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
43013 ac_top_srcdir=$ac_top_builddir$srcdir ;;
43014esac
ac1cb8d3
VS
43015
43016# Do not use `cd foo && pwd` to compute absolute paths, because
43017# the directories may not exist.
43018case `pwd` in
43019.) ac_abs_builddir="$ac_dir";;
43020*)
43021 case "$ac_dir" in
43022 .) ac_abs_builddir=`pwd`;;
43023 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
43024 *) ac_abs_builddir=`pwd`/"$ac_dir";;
43025 esac;;
43026esac
43027case $ac_abs_builddir in
43028.) ac_abs_top_builddir=${ac_top_builddir}.;;
43029*)
43030 case ${ac_top_builddir}. in
43031 .) ac_abs_top_builddir=$ac_abs_builddir;;
43032 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
43033 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
43034 esac;;
43035esac
43036case $ac_abs_builddir in
43037.) ac_abs_srcdir=$ac_srcdir;;
43038*)
43039 case $ac_srcdir in
43040 .) ac_abs_srcdir=$ac_abs_builddir;;
43041 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
43042 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
43043 esac;;
43044esac
43045case $ac_abs_builddir in
43046.) ac_abs_top_srcdir=$ac_top_srcdir;;
43047*)
43048 case $ac_top_srcdir in
43049 .) ac_abs_top_srcdir=$ac_abs_builddir;;
43050 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
43051 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
43052 esac;;
43053esac
a848cd7e
SC
43054
43055
43056 cd $ac_dir
43057
43058 # Check for guested configure; otherwise get Cygnus style configure.
43059 if test -f $ac_srcdir/configure.gnu; then
43060 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
43061 elif test -f $ac_srcdir/configure; then
43062 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
43063 elif test -f $ac_srcdir/configure.in; then
43064 ac_sub_configure=$ac_configure
43065 else
43066 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
43067echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
43068 ac_sub_configure=
43069 fi
43070
43071 # The recursion is here.
43072 if test -n "$ac_sub_configure"; then
43073 # Make the cache file name correct relative to the subdirectory.
43074 case $cache_file in
43075 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
43076 *) # Relative path.
ac1cb8d3 43077 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
a848cd7e
SC
43078 esac
43079
43080 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
43081echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
43082 # The eval makes quoting arguments work.
43083 eval $ac_sub_configure $ac_sub_configure_args \
ac1cb8d3
VS
43084 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
43085 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
a848cd7e
SC
43086echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
43087 { (exit 1); exit 1; }; }
43088 fi
43089
ffa0583f 43090 cd "$ac_popdir"
a848cd7e
SC
43091 done
43092fi
43093
43094
43095echo
77ffb593 43096echo "Configured wxWidgets ${WX_VERSION} for \`${host}'"
a848cd7e 43097echo ""
4d4ff94c 43098echo " Which GUI toolkit should wxWidgets use? ${TOOLKIT_USER:-base only}"
77ffb593 43099echo " Should wxWidgets be compiled into single library? ${wxUSE_MONOLITHIC:-yes}"
a848cd7e 43100
77ffb593
JS
43101echo " Should wxWidgets be compiled in debug mode? ${wxUSE_DEBUG:-no}"
43102echo " Should wxWidgets be linked as a shared library? ${wxUSE_SHARED:-no}"
43103echo " Should wxWidgets be compiled in Unicode mode? ${wxUSE_UNICODE:-no}"
a848cd7e 43104
77ffb593
JS
43105echo " What level of wxWidgets compatibility should be enabled?"
43106echo " wxWidgets 2.2 ${WXWIN_COMPATIBILITY_2_2:-no}"
43107echo " wxWidgets 2.4 ${WXWIN_COMPATIBILITY_2_4:-yes}"
a848cd7e 43108
77ffb593 43109echo " Which libraries should wxWidgets use?"
a848cd7e
SC
43110echo " jpeg ${wxUSE_LIBJPEG-none}"
43111echo " png ${wxUSE_LIBPNG-none}"
43112echo " regex ${wxUSE_REGEX}"
43113echo " tiff ${wxUSE_LIBTIFF-none}"
43114if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
43115echo " xpm ${wxUSE_LIBXPM-none}"
43116fi
43117echo " zlib ${wxUSE_ZLIB}"
43118echo " odbc ${wxUSE_ODBC}"
43119echo " expat ${wxUSE_EXPAT}"
43120echo " libmspack ${wxUSE_LIBMSPACK}"
43121echo " sdl ${wxUSE_LIBSDL}"
43122
43123echo ""
43124